configure revision 23a0898a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXfont 1.3.2. 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='libXfont' 730PACKAGE_TARNAME='libXfont' 731PACKAGE_VERSION='1.3.2' 732PACKAGE_STRING='libXfont 1.3.2' 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 830CC 831CFLAGS 832LDFLAGS 833CPPFLAGS 834ac_ct_CC 835EXEEXT 836OBJEXT 837DEPDIR 838am__include 839am__quote 840AMDEP_TRUE 841AMDEP_FALSE 842AMDEPBACKSLASH 843CCDEPMODE 844am__fastdepCC_TRUE 845am__fastdepCC_FALSE 846build 847build_cpu 848build_vendor 849build_os 850host 851host_cpu 852host_vendor 853host_os 854SED 855GREP 856EGREP 857LN_S 858ECHO 859AR 860RANLIB 861CPP 862CXX 863CXXFLAGS 864ac_ct_CXX 865CXXDEPMODE 866am__fastdepCXX_TRUE 867am__fastdepCXX_FALSE 868CXXCPP 869F77 870FFLAGS 871ac_ct_F77 872LIBTOOL 873PKG_CONFIG 874ENCODINGSDIR 875XFONT_FREETYPE_TRUE 876XFONT_FREETYPE_FALSE 877FREETYPE_CFLAGS 878FREETYPE_LIBS 879ft_config 880FREETYPE_REQUIRES 881XFONT_TYPE1_TRUE 882XFONT_TYPE1_FALSE 883XFONT_SPEEDO_TRUE 884XFONT_SPEEDO_FALSE 885X_GZIP_FONT_COMPRESSION 886XFONT_BUILTINS_TRUE 887XFONT_BUILTINS_FALSE 888XFONT_PCFFORMAT_TRUE 889XFONT_PCFFORMAT_FALSE 890XFONT_BDFFORMAT_TRUE 891XFONT_BDFFORMAT_FALSE 892XFONT_SNFFORMAT_TRUE 893XFONT_SNFFORMAT_FALSE 894XFONT_BITMAP_TRUE 895XFONT_BITMAP_FALSE 896XFONT_FONTFILE_TRUE 897XFONT_FONTFILE_FALSE 898XFONT_FONTCACHE_TRUE 899XFONT_FONTCACHE_FALSE 900FONTCACHEPROTO_CFLAGS 901FONTCACHEPROTO_LIBS 902XFONT_FC_TRUE 903XFONT_FC_FALSE 904Z_LIBS 905MATH_LIBS 906XFONT_CFLAGS 907XFONT_LIBS 908LIBOBJS 909LTLIBOBJS' 910ac_subst_files='' 911 ac_precious_vars='build_alias 912host_alias 913target_alias 914CC 915CFLAGS 916LDFLAGS 917LIBS 918CPPFLAGS 919CPP 920CXX 921CXXFLAGS 922CCC 923CXXCPP 924F77 925FFLAGS 926PKG_CONFIG 927FREETYPE_CFLAGS 928FREETYPE_LIBS 929FONTCACHEPROTO_CFLAGS 930FONTCACHEPROTO_LIBS 931XFONT_CFLAGS 932XFONT_LIBS' 933 934 935# Initialize some variables set by options. 936ac_init_help= 937ac_init_version=false 938# The variables have the same names as the options, with 939# dashes changed to underlines. 940cache_file=/dev/null 941exec_prefix=NONE 942no_create= 943no_recursion= 944prefix=NONE 945program_prefix=NONE 946program_suffix=NONE 947program_transform_name=s,x,x, 948silent= 949site= 950srcdir= 951verbose= 952x_includes=NONE 953x_libraries=NONE 954 955# Installation directory options. 956# These are left unexpanded so users can "make install exec_prefix=/foo" 957# and all the variables that are supposed to be based on exec_prefix 958# by default will actually change. 959# Use braces instead of parens because sh, perl, etc. also accept them. 960# (The list follows the same order as the GNU Coding Standards.) 961bindir='${exec_prefix}/bin' 962sbindir='${exec_prefix}/sbin' 963libexecdir='${exec_prefix}/libexec' 964datarootdir='${prefix}/share' 965datadir='${datarootdir}' 966sysconfdir='${prefix}/etc' 967sharedstatedir='${prefix}/com' 968localstatedir='${prefix}/var' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1040 { (exit 1); exit 1; }; } 1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1042 eval enable_$ac_feature=no ;; 1043 1044 -docdir | --docdir | --docdi | --doc | --do) 1045 ac_prev=docdir ;; 1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1047 docdir=$ac_optarg ;; 1048 1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1050 ac_prev=dvidir ;; 1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1052 dvidir=$ac_optarg ;; 1053 1054 -enable-* | --enable-*) 1055 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1059 { (exit 1); exit 1; }; } 1060 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1061 eval enable_$ac_feature=\$ac_optarg ;; 1062 1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1065 | --exec | --exe | --ex) 1066 ac_prev=exec_prefix ;; 1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1069 | --exec=* | --exe=* | --ex=*) 1070 exec_prefix=$ac_optarg ;; 1071 1072 -gas | --gas | --ga | --g) 1073 # Obsolete; use --with-gas. 1074 with_gas=yes ;; 1075 1076 -help | --help | --hel | --he | -h) 1077 ac_init_help=long ;; 1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1079 ac_init_help=recursive ;; 1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1081 ac_init_help=short ;; 1082 1083 -host | --host | --hos | --ho) 1084 ac_prev=host_alias ;; 1085 -host=* | --host=* | --hos=* | --ho=*) 1086 host_alias=$ac_optarg ;; 1087 1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1089 ac_prev=htmldir ;; 1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1091 | --ht=*) 1092 htmldir=$ac_optarg ;; 1093 1094 -includedir | --includedir | --includedi | --included | --include \ 1095 | --includ | --inclu | --incl | --inc) 1096 ac_prev=includedir ;; 1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1098 | --includ=* | --inclu=* | --incl=* | --inc=*) 1099 includedir=$ac_optarg ;; 1100 1101 -infodir | --infodir | --infodi | --infod | --info | --inf) 1102 ac_prev=infodir ;; 1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1104 infodir=$ac_optarg ;; 1105 1106 -libdir | --libdir | --libdi | --libd) 1107 ac_prev=libdir ;; 1108 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1109 libdir=$ac_optarg ;; 1110 1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1112 | --libexe | --libex | --libe) 1113 ac_prev=libexecdir ;; 1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1115 | --libexe=* | --libex=* | --libe=*) 1116 libexecdir=$ac_optarg ;; 1117 1118 -localedir | --localedir | --localedi | --localed | --locale) 1119 ac_prev=localedir ;; 1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1121 localedir=$ac_optarg ;; 1122 1123 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1124 | --localstate | --localstat | --localsta | --localst | --locals) 1125 ac_prev=localstatedir ;; 1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1128 localstatedir=$ac_optarg ;; 1129 1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1131 ac_prev=mandir ;; 1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1133 mandir=$ac_optarg ;; 1134 1135 -nfp | --nfp | --nf) 1136 # Obsolete; use --without-fp. 1137 with_fp=no ;; 1138 1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1140 | --no-cr | --no-c | -n) 1141 no_create=yes ;; 1142 1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1145 no_recursion=yes ;; 1146 1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1149 | --oldin | --oldi | --old | --ol | --o) 1150 ac_prev=oldincludedir ;; 1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1154 oldincludedir=$ac_optarg ;; 1155 1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1157 ac_prev=prefix ;; 1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1159 prefix=$ac_optarg ;; 1160 1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1162 | --program-pre | --program-pr | --program-p) 1163 ac_prev=program_prefix ;; 1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1166 program_prefix=$ac_optarg ;; 1167 1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1169 | --program-suf | --program-su | --program-s) 1170 ac_prev=program_suffix ;; 1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1173 program_suffix=$ac_optarg ;; 1174 1175 -program-transform-name | --program-transform-name \ 1176 | --program-transform-nam | --program-transform-na \ 1177 | --program-transform-n | --program-transform- \ 1178 | --program-transform | --program-transfor \ 1179 | --program-transfo | --program-transf \ 1180 | --program-trans | --program-tran \ 1181 | --progr-tra | --program-tr | --program-t) 1182 ac_prev=program_transform_name ;; 1183 -program-transform-name=* | --program-transform-name=* \ 1184 | --program-transform-nam=* | --program-transform-na=* \ 1185 | --program-transform-n=* | --program-transform-=* \ 1186 | --program-transform=* | --program-transfor=* \ 1187 | --program-transfo=* | --program-transf=* \ 1188 | --program-trans=* | --program-tran=* \ 1189 | --progr-tra=* | --program-tr=* | --program-t=*) 1190 program_transform_name=$ac_optarg ;; 1191 1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1193 ac_prev=pdfdir ;; 1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1195 pdfdir=$ac_optarg ;; 1196 1197 -psdir | --psdir | --psdi | --psd | --ps) 1198 ac_prev=psdir ;; 1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1200 psdir=$ac_optarg ;; 1201 1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1203 | -silent | --silent | --silen | --sile | --sil) 1204 silent=yes ;; 1205 1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1207 ac_prev=sbindir ;; 1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1209 | --sbi=* | --sb=*) 1210 sbindir=$ac_optarg ;; 1211 1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1214 | --sharedst | --shareds | --shared | --share | --shar \ 1215 | --sha | --sh) 1216 ac_prev=sharedstatedir ;; 1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1220 | --sha=* | --sh=*) 1221 sharedstatedir=$ac_optarg ;; 1222 1223 -site | --site | --sit) 1224 ac_prev=site ;; 1225 -site=* | --site=* | --sit=*) 1226 site=$ac_optarg ;; 1227 1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1229 ac_prev=srcdir ;; 1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1231 srcdir=$ac_optarg ;; 1232 1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1234 | --syscon | --sysco | --sysc | --sys | --sy) 1235 ac_prev=sysconfdir ;; 1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1238 sysconfdir=$ac_optarg ;; 1239 1240 -target | --target | --targe | --targ | --tar | --ta | --t) 1241 ac_prev=target_alias ;; 1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1243 target_alias=$ac_optarg ;; 1244 1245 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1246 verbose=yes ;; 1247 1248 -version | --version | --versio | --versi | --vers | -V) 1249 ac_init_version=: ;; 1250 1251 -with-* | --with-*) 1252 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1255 { echo "$as_me: error: invalid package name: $ac_package" >&2 1256 { (exit 1); exit 1; }; } 1257 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1258 eval with_$ac_package=\$ac_optarg ;; 1259 1260 -without-* | --without-*) 1261 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1262 # Reject names that are not valid shell variable names. 1263 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 { echo "$as_me: error: invalid package name: $ac_package" >&2 1265 { (exit 1); exit 1; }; } 1266 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1267 eval with_$ac_package=no ;; 1268 1269 --x) 1270 # Obsolete; use --with-x. 1271 with_x=yes ;; 1272 1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1274 | --x-incl | --x-inc | --x-in | --x-i) 1275 ac_prev=x_includes ;; 1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1278 x_includes=$ac_optarg ;; 1279 1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1282 ac_prev=x_libraries ;; 1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1285 x_libraries=$ac_optarg ;; 1286 1287 -*) { echo "$as_me: error: unrecognized option: $ac_option 1288Try \`$0 --help' for more information." >&2 1289 { (exit 1); exit 1; }; } 1290 ;; 1291 1292 *=*) 1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1296 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1297 { (exit 1); exit 1; }; } 1298 eval $ac_envvar=\$ac_optarg 1299 export $ac_envvar ;; 1300 1301 *) 1302 # FIXME: should be removed in autoconf 3.0. 1303 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1305 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1307 ;; 1308 1309 esac 1310done 1311 1312if test -n "$ac_prev"; then 1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1314 { echo "$as_me: error: missing argument to $ac_option" >&2 1315 { (exit 1); exit 1; }; } 1316fi 1317 1318# Be sure to have absolute directory names. 1319for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1320 datadir sysconfdir sharedstatedir localstatedir includedir \ 1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1322 libdir localedir mandir 1323do 1324 eval ac_val=\$$ac_var 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1330 { (exit 1); exit 1; }; } 1331done 1332 1333# There might be people who depend on the old broken behavior: `$host' 1334# used to hold the argument of --host etc. 1335# FIXME: To remove some day. 1336build=$build_alias 1337host=$host_alias 1338target=$target_alias 1339 1340# FIXME: To remove some day. 1341if test "x$host_alias" != x; then 1342 if test "x$build_alias" = x; then 1343 cross_compiling=maybe 1344 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1345 If a cross compiler is detected then cross compile mode will be used." >&2 1346 elif test "x$build_alias" != "x$host_alias"; then 1347 cross_compiling=yes 1348 fi 1349fi 1350 1351ac_tool_prefix= 1352test -n "$host_alias" && ac_tool_prefix=$host_alias- 1353 1354test "$silent" = yes && exec 6>/dev/null 1355 1356 1357ac_pwd=`pwd` && test -n "$ac_pwd" && 1358ac_ls_di=`ls -di .` && 1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1360 { echo "$as_me: error: Working directory cannot be determined" >&2 1361 { (exit 1); exit 1; }; } 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1363 { echo "$as_me: error: pwd does not report name of working directory" >&2 1364 { (exit 1); exit 1; }; } 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$0" || 1372$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$0" : 'X\(//\)[^/]' \| \ 1374 X"$0" : 'X\(//\)$' \| \ 1375 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1376echo X"$0" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1404 { (exit 1); exit 1; }; } 1405fi 1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1407ac_abs_confdir=`( 1408 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1409 { (exit 1); exit 1; }; } 1410 pwd)` 1411# When building in place, set srcdir=. 1412if test "$ac_abs_confdir" = "$ac_pwd"; then 1413 srcdir=. 1414fi 1415# Remove unnecessary trailing slashes from srcdir. 1416# Double slashes in file names in object file debugging info 1417# mess up M-x gdb in Emacs. 1418case $srcdir in 1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1420esac 1421for ac_var in $ac_precious_vars; do 1422 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_env_${ac_var}_value=\$${ac_var} 1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1425 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1426done 1427 1428# 1429# Report the --help message. 1430# 1431if test "$ac_init_help" = "long"; then 1432 # Omit some internal or obsolete options to make the list less imposing. 1433 # This message is too long to be a string in the A/UX 3.1 sh. 1434 cat <<_ACEOF 1435\`configure' configures libXfont 1.3.2 to adapt to many kinds of systems. 1436 1437Usage: $0 [OPTION]... [VAR=VALUE]... 1438 1439To assign environment variables (e.g., CC, CFLAGS...), specify them as 1440VAR=VALUE. See below for descriptions of some of the useful variables. 1441 1442Defaults for the options are specified in brackets. 1443 1444Configuration: 1445 -h, --help display this help and exit 1446 --help=short display options specific to this package 1447 --help=recursive display the short help of all the included packages 1448 -V, --version display version information and exit 1449 -q, --quiet, --silent do not print \`checking...' messages 1450 --cache-file=FILE cache test results in FILE [disabled] 1451 -C, --config-cache alias for \`--cache-file=config.cache' 1452 -n, --no-create do not create output files 1453 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1454 1455Installation directories: 1456 --prefix=PREFIX install architecture-independent files in PREFIX 1457 [$ac_default_prefix] 1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1459 [PREFIX] 1460 1461By default, \`make install' will install all the files in 1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1463an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1464for instance \`--prefix=\$HOME'. 1465 1466For better control, use the options below. 1467 1468Fine tuning of the installation directories: 1469 --bindir=DIR user executables [EPREFIX/bin] 1470 --sbindir=DIR system admin executables [EPREFIX/sbin] 1471 --libexecdir=DIR program executables [EPREFIX/libexec] 1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1475 --libdir=DIR object code libraries [EPREFIX/lib] 1476 --includedir=DIR C header files [PREFIX/include] 1477 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1480 --infodir=DIR info documentation [DATAROOTDIR/info] 1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1482 --mandir=DIR man documentation [DATAROOTDIR/man] 1483 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont] 1484 --htmldir=DIR html documentation [DOCDIR] 1485 --dvidir=DIR dvi documentation [DOCDIR] 1486 --pdfdir=DIR pdf documentation [DOCDIR] 1487 --psdir=DIR ps documentation [DOCDIR] 1488_ACEOF 1489 1490 cat <<\_ACEOF 1491 1492Program names: 1493 --program-prefix=PREFIX prepend PREFIX to installed program names 1494 --program-suffix=SUFFIX append SUFFIX to installed program names 1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1496 1497System types: 1498 --build=BUILD configure for building on BUILD [guessed] 1499 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1500_ACEOF 1501fi 1502 1503if test -n "$ac_init_help"; then 1504 case $ac_init_help in 1505 short | recursive ) echo "Configuration of libXfont 1.3.2:";; 1506 esac 1507 cat <<\_ACEOF 1508 1509Optional Features: 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --disable-dependency-tracking speeds up one-time build 1513 --enable-dependency-tracking do not reject slow dependency extractors 1514 --enable-shared[=PKGS] build shared libraries [default=yes] 1515 --enable-static[=PKGS] build static libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 --disable-freetype 1520 --enable-type1 1521 --disable-speedo 1522 --disable-builtins 1523 --disable-pcfformat 1524 --disable-bdfformat 1525 --disable-snfformat 1526 --disable-loadable-font-modules 1527 support dynamically loaded font modules (default is 1528 enabled) 1529 --disable-fontcache 1530 --disable-fc 1531 --enable-unix-transport Enable UNIX domain socket transport 1532 --enable-tcp-transport Enable TCP socket transport 1533 --enable-IPv6 Enable IPv6 support 1534 --enable-local-transport 1535 Enable os-specific local transport 1536 1537Optional Packages: 1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1541 --with-pic try to use only PIC/non-PIC objects [default=use 1542 both] 1543 --with-tags[=TAGS] include additional configurations [automatic] 1544 --with-encodingsdir=ENCODINGSDIR 1545 Path to font encodings 1546 --with-freetype-config=PROG Use FreeType configuration program PROG 1547 --with-release-version=STRING 1548 Use release version string in package name 1549 1550Some influential environment variables: 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 CPP C preprocessor 1559 CXX C++ compiler command 1560 CXXFLAGS C++ compiler flags 1561 CXXCPP C++ preprocessor 1562 F77 Fortran 77 compiler command 1563 FFLAGS Fortran 77 compiler flags 1564 PKG_CONFIG path to pkg-config utility 1565 FREETYPE_CFLAGS 1566 C compiler flags for FREETYPE, overriding pkg-config 1567 FREETYPE_LIBS 1568 linker flags for FREETYPE, overriding pkg-config 1569 FONTCACHEPROTO_CFLAGS 1570 C compiler flags for FONTCACHEPROTO, overriding pkg-config 1571 FONTCACHEPROTO_LIBS 1572 linker flags for FONTCACHEPROTO, overriding pkg-config 1573 XFONT_CFLAGS 1574 C compiler flags for XFONT, overriding pkg-config 1575 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1576 1577Use these variables to override the choices made by `configure' or to help 1578it to find libraries and programs with nonstandard names/locations. 1579 1580Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1581_ACEOF 1582ac_status=$? 1583fi 1584 1585if test "$ac_init_help" = "recursive"; then 1586 # If there are subdirs, report their specific --help. 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1588 test -d "$ac_dir" || continue 1589 ac_builddir=. 1590 1591case "$ac_dir" in 1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1593*) 1594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1595 # A ".." for each directory in $ac_dir_suffix. 1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1597 case $ac_top_builddir_sub in 1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1600 esac ;; 1601esac 1602ac_abs_top_builddir=$ac_pwd 1603ac_abs_builddir=$ac_pwd$ac_dir_suffix 1604# for backward compatibility: 1605ac_top_builddir=$ac_top_build_prefix 1606 1607case $srcdir in 1608 .) # We are building in place. 1609 ac_srcdir=. 1610 ac_top_srcdir=$ac_top_builddir_sub 1611 ac_abs_top_srcdir=$ac_pwd ;; 1612 [\\/]* | ?:[\\/]* ) # Absolute name. 1613 ac_srcdir=$srcdir$ac_dir_suffix; 1614 ac_top_srcdir=$srcdir 1615 ac_abs_top_srcdir=$srcdir ;; 1616 *) # Relative name. 1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1618 ac_top_srcdir=$ac_top_build_prefix$srcdir 1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1620esac 1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1622 1623 cd "$ac_dir" || { ac_status=$?; continue; } 1624 # Check for guested configure. 1625 if test -f "$ac_srcdir/configure.gnu"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1628 elif test -f "$ac_srcdir/configure"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure" --help=recursive 1631 else 1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1633 fi || ac_status=$? 1634 cd "$ac_pwd" || { ac_status=$?; break; } 1635 done 1636fi 1637 1638test -n "$ac_init_help" && exit $ac_status 1639if $ac_init_version; then 1640 cat <<\_ACEOF 1641libXfont configure 1.3.2 1642generated by GNU Autoconf 2.61 1643 1644Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1646This configure script is free software; the Free Software Foundation 1647gives unlimited permission to copy, distribute and modify it. 1648_ACEOF 1649 exit 1650fi 1651cat >config.log <<_ACEOF 1652This file contains any messages produced by compilers while 1653running configure, to aid debugging if configure makes a mistake. 1654 1655It was created by libXfont $as_me 1.3.2, which was 1656generated by GNU Autoconf 2.61. Invocation command line was 1657 1658 $ $0 $@ 1659 1660_ACEOF 1661exec 5>>config.log 1662{ 1663cat <<_ASUNAME 1664## --------- ## 1665## Platform. ## 1666## --------- ## 1667 1668hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1669uname -m = `(uname -m) 2>/dev/null || echo unknown` 1670uname -r = `(uname -r) 2>/dev/null || echo unknown` 1671uname -s = `(uname -s) 2>/dev/null || echo unknown` 1672uname -v = `(uname -v) 2>/dev/null || echo unknown` 1673 1674/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1675/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1676 1677/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1678/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1679/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1680/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1681/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1682/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1683/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1684 1685_ASUNAME 1686 1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1688for as_dir in $PATH 1689do 1690 IFS=$as_save_IFS 1691 test -z "$as_dir" && as_dir=. 1692 echo "PATH: $as_dir" 1693done 1694IFS=$as_save_IFS 1695 1696} >&5 1697 1698cat >&5 <<_ACEOF 1699 1700 1701## ----------- ## 1702## Core tests. ## 1703## ----------- ## 1704 1705_ACEOF 1706 1707 1708# Keep a trace of the command line. 1709# Strip out --no-create and --no-recursion so they do not pile up. 1710# Strip out --silent because we don't want to record it for future runs. 1711# Also quote any args containing shell meta-characters. 1712# Make two passes to allow for proper duplicate-argument suppression. 1713ac_configure_args= 1714ac_configure_args0= 1715ac_configure_args1= 1716ac_must_keep_next=false 1717for ac_pass in 1 2 1718do 1719 for ac_arg 1720 do 1721 case $ac_arg in 1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1724 | -silent | --silent | --silen | --sile | --sil) 1725 continue ;; 1726 *\'*) 1727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1728 esac 1729 case $ac_pass in 1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1731 2) 1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1733 if test $ac_must_keep_next = true; then 1734 ac_must_keep_next=false # Got value, back to normal. 1735 else 1736 case $ac_arg in 1737 *=* | --config-cache | -C | -disable-* | --disable-* \ 1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1740 | -with-* | --with-* | -without-* | --without-* | --x) 1741 case "$ac_configure_args0 " in 1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1743 esac 1744 ;; 1745 -* ) ac_must_keep_next=true ;; 1746 esac 1747 fi 1748 ac_configure_args="$ac_configure_args '$ac_arg'" 1749 ;; 1750 esac 1751 done 1752done 1753$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1754$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1755 1756# When interrupted or exit'd, cleanup temporary files, and complete 1757# config.log. We remove comments because anyway the quotes in there 1758# would cause problems or look ugly. 1759# WARNING: Use '\'' to represent an apostrophe within the trap. 1760# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1761trap 'exit_status=$? 1762 # Save into config.log some information that might help in debugging. 1763 { 1764 echo 1765 1766 cat <<\_ASBOX 1767## ---------------- ## 1768## Cache variables. ## 1769## ---------------- ## 1770_ASBOX 1771 echo 1772 # The following way of writing the cache mishandles newlines in values, 1773( 1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1775 eval ac_val=\$$ac_var 1776 case $ac_val in #( 1777 *${as_nl}*) 1778 case $ac_var in #( 1779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1780echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1781 esac 1782 case $ac_var in #( 1783 _ | IFS | as_nl) ;; #( 1784 *) $as_unset $ac_var ;; 1785 esac ;; 1786 esac 1787 done 1788 (set) 2>&1 | 1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1790 *${as_nl}ac_space=\ *) 1791 sed -n \ 1792 "s/'\''/'\''\\\\'\'''\''/g; 1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1794 ;; #( 1795 *) 1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1797 ;; 1798 esac | 1799 sort 1800) 1801 echo 1802 1803 cat <<\_ASBOX 1804## ----------------- ## 1805## Output variables. ## 1806## ----------------- ## 1807_ASBOX 1808 echo 1809 for ac_var in $ac_subst_vars 1810 do 1811 eval ac_val=\$$ac_var 1812 case $ac_val in 1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1814 esac 1815 echo "$ac_var='\''$ac_val'\''" 1816 done | sort 1817 echo 1818 1819 if test -n "$ac_subst_files"; then 1820 cat <<\_ASBOX 1821## ------------------- ## 1822## File substitutions. ## 1823## ------------------- ## 1824_ASBOX 1825 echo 1826 for ac_var in $ac_subst_files 1827 do 1828 eval ac_val=\$$ac_var 1829 case $ac_val in 1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1831 esac 1832 echo "$ac_var='\''$ac_val'\''" 1833 done | sort 1834 echo 1835 fi 1836 1837 if test -s confdefs.h; then 1838 cat <<\_ASBOX 1839## ----------- ## 1840## confdefs.h. ## 1841## ----------- ## 1842_ASBOX 1843 echo 1844 cat confdefs.h 1845 echo 1846 fi 1847 test "$ac_signal" != 0 && 1848 echo "$as_me: caught signal $ac_signal" 1849 echo "$as_me: exit $exit_status" 1850 } >&5 1851 rm -f core *.core core.conftest.* && 1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1853 exit $exit_status 1854' 0 1855for ac_signal in 1 2 13 15; do 1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1857done 1858ac_signal=0 1859 1860# confdefs.h avoids OS command line length limits that DEFS can exceed. 1861rm -f -r conftest* confdefs.h 1862 1863# Predefined preprocessor variables. 1864 1865cat >>confdefs.h <<_ACEOF 1866#define PACKAGE_NAME "$PACKAGE_NAME" 1867_ACEOF 1868 1869 1870cat >>confdefs.h <<_ACEOF 1871#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1872_ACEOF 1873 1874 1875cat >>confdefs.h <<_ACEOF 1876#define PACKAGE_VERSION "$PACKAGE_VERSION" 1877_ACEOF 1878 1879 1880cat >>confdefs.h <<_ACEOF 1881#define PACKAGE_STRING "$PACKAGE_STRING" 1882_ACEOF 1883 1884 1885cat >>confdefs.h <<_ACEOF 1886#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1887_ACEOF 1888 1889 1890# Let the site file select an alternate cache file if it wants to. 1891# Prefer explicitly selected file to automatically selected ones. 1892if test -n "$CONFIG_SITE"; then 1893 set x "$CONFIG_SITE" 1894elif test "x$prefix" != xNONE; then 1895 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1896else 1897 set x "$ac_default_prefix/share/config.site" \ 1898 "$ac_default_prefix/etc/config.site" 1899fi 1900shift 1901for ac_site_file 1902do 1903 if test -r "$ac_site_file"; then 1904 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1905echo "$as_me: loading site script $ac_site_file" >&6;} 1906 sed 's/^/| /' "$ac_site_file" >&5 1907 . "$ac_site_file" 1908 fi 1909done 1910 1911if test -r "$cache_file"; then 1912 # Some versions of bash will fail to source /dev/null (special 1913 # files actually), so we avoid doing that. 1914 if test -f "$cache_file"; then 1915 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1916echo "$as_me: loading cache $cache_file" >&6;} 1917 case $cache_file in 1918 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1919 *) . "./$cache_file";; 1920 esac 1921 fi 1922else 1923 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1924echo "$as_me: creating cache $cache_file" >&6;} 1925 >$cache_file 1926fi 1927 1928# Check that the precious variables saved in the cache have kept the same 1929# value. 1930ac_cache_corrupted=false 1931for ac_var in $ac_precious_vars; do 1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1933 eval ac_new_set=\$ac_env_${ac_var}_set 1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1935 eval ac_new_val=\$ac_env_${ac_var}_value 1936 case $ac_old_set,$ac_new_set in 1937 set,) 1938 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1939echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1940 ac_cache_corrupted=: ;; 1941 ,set) 1942 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1943echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1944 ac_cache_corrupted=: ;; 1945 ,);; 1946 *) 1947 if test "x$ac_old_val" != "x$ac_new_val"; then 1948 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1949echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1950 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1951echo "$as_me: former value: $ac_old_val" >&2;} 1952 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1953echo "$as_me: current value: $ac_new_val" >&2;} 1954 ac_cache_corrupted=: 1955 fi;; 1956 esac 1957 # Pass precious variables to config.status. 1958 if test "$ac_new_set" = set; then 1959 case $ac_new_val in 1960 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 *) ac_arg=$ac_var=$ac_new_val ;; 1962 esac 1963 case " $ac_configure_args " in 1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1966 esac 1967 fi 1968done 1969if $ac_cache_corrupted; then 1970 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1971echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1972 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1973echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1974 { (exit 1); exit 1; }; } 1975fi 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001ac_ext=c 2002ac_cpp='$CPP $CPPFLAGS' 2003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2005ac_compiler_gnu=$ac_cv_c_compiler_gnu 2006 2007 2008am__api_version='1.10' 2009 2010ac_aux_dir= 2011for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2012 if test -f "$ac_dir/install-sh"; then 2013 ac_aux_dir=$ac_dir 2014 ac_install_sh="$ac_aux_dir/install-sh -c" 2015 break 2016 elif test -f "$ac_dir/install.sh"; then 2017 ac_aux_dir=$ac_dir 2018 ac_install_sh="$ac_aux_dir/install.sh -c" 2019 break 2020 elif test -f "$ac_dir/shtool"; then 2021 ac_aux_dir=$ac_dir 2022 ac_install_sh="$ac_aux_dir/shtool install -c" 2023 break 2024 fi 2025done 2026if test -z "$ac_aux_dir"; then 2027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2028echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2029 { (exit 1); exit 1; }; } 2030fi 2031 2032# These three variables are undocumented and unsupported, 2033# and are intended to be withdrawn in a future Autoconf release. 2034# They can cause serious problems if a builder's source tree is in a directory 2035# whose full name contains unusual characters. 2036ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2037ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2038ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2039 2040 2041# Find a good install program. We prefer a C program (faster), 2042# so one script is as good as another. But avoid the broken or 2043# incompatible versions: 2044# SysV /etc/install, /usr/sbin/install 2045# SunOS /usr/etc/install 2046# IRIX /sbin/install 2047# AIX /bin/install 2048# AmigaOS /C/install, which installs bootblocks on floppy discs 2049# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2050# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2051# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2052# OS/2's system install, which has a completely different semantic 2053# ./install, which can be erroneously created by make from ./install.sh. 2054{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2055echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2056if test -z "$INSTALL"; then 2057if test "${ac_cv_path_install+set}" = set; then 2058 echo $ECHO_N "(cached) $ECHO_C" >&6 2059else 2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2061for as_dir in $PATH 2062do 2063 IFS=$as_save_IFS 2064 test -z "$as_dir" && as_dir=. 2065 # Account for people who put trailing slashes in PATH elements. 2066case $as_dir/ in 2067 ./ | .// | /cC/* | \ 2068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2069 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2070 /usr/ucb/* ) ;; 2071 *) 2072 # OSF1 and SCO ODT 3.0 have their own names for install. 2073 # Don't use installbsd from OSF since it installs stuff as root 2074 # by default. 2075 for ac_prog in ginstall scoinst install; do 2076 for ac_exec_ext in '' $ac_executable_extensions; do 2077 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2078 if test $ac_prog = install && 2079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2080 # AIX install. It has an incompatible calling convention. 2081 : 2082 elif test $ac_prog = install && 2083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2084 # program-specific install script used by HP pwplus--don't use. 2085 : 2086 else 2087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2088 break 3 2089 fi 2090 fi 2091 done 2092 done 2093 ;; 2094esac 2095done 2096IFS=$as_save_IFS 2097 2098 2099fi 2100 if test "${ac_cv_path_install+set}" = set; then 2101 INSTALL=$ac_cv_path_install 2102 else 2103 # As a last resort, use the slow shell script. Don't cache a 2104 # value for INSTALL within a source directory, because that will 2105 # break other packages using the cache if that directory is 2106 # removed, or if the value is a relative name. 2107 INSTALL=$ac_install_sh 2108 fi 2109fi 2110{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2111echo "${ECHO_T}$INSTALL" >&6; } 2112 2113# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2114# It thinks the first close brace ends the variable substitution. 2115test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2116 2117test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2118 2119test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2120 2121{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2122echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2123# Just in case 2124sleep 1 2125echo timestamp > conftest.file 2126# Do `set' in a subshell so we don't clobber the current shell's 2127# arguments. Must try -L first in case configure is actually a 2128# symlink; some systems play weird games with the mod time of symlinks 2129# (eg FreeBSD returns the mod time of the symlink's containing 2130# directory). 2131if ( 2132 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2133 if test "$*" = "X"; then 2134 # -L didn't work. 2135 set X `ls -t $srcdir/configure conftest.file` 2136 fi 2137 rm -f conftest.file 2138 if test "$*" != "X $srcdir/configure conftest.file" \ 2139 && test "$*" != "X conftest.file $srcdir/configure"; then 2140 2141 # If neither matched, then we have a broken ls. This can happen 2142 # if, for instance, CONFIG_SHELL is bash and it inherits a 2143 # broken ls alias from the environment. This has actually 2144 # happened. Such a system could not be considered "sane". 2145 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2146alias in your environment" >&5 2147echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2148alias in your environment" >&2;} 2149 { (exit 1); exit 1; }; } 2150 fi 2151 2152 test "$2" = conftest.file 2153 ) 2154then 2155 # Ok. 2156 : 2157else 2158 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2159Check your system clock" >&5 2160echo "$as_me: error: newly created file is older than distributed files! 2161Check your system clock" >&2;} 2162 { (exit 1); exit 1; }; } 2163fi 2164{ echo "$as_me:$LINENO: result: yes" >&5 2165echo "${ECHO_T}yes" >&6; } 2166test "$program_prefix" != NONE && 2167 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2168# Use a double $ so make ignores it. 2169test "$program_suffix" != NONE && 2170 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2171# Double any \ or $. echo might interpret backslashes. 2172# By default was `s,x,x', remove it if useless. 2173cat <<\_ACEOF >conftest.sed 2174s/[\\$]/&&/g;s/;s,x,x,$// 2175_ACEOF 2176program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2177rm -f conftest.sed 2178 2179# expand $ac_aux_dir to an absolute path 2180am_aux_dir=`cd $ac_aux_dir && pwd` 2181 2182test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2183# Use eval to expand $SHELL 2184if eval "$MISSING --run true"; then 2185 am_missing_run="$MISSING --run " 2186else 2187 am_missing_run= 2188 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2189echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2190fi 2191 2192{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2193echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2194if test -z "$MKDIR_P"; then 2195 if test "${ac_cv_path_mkdir+set}" = set; then 2196 echo $ECHO_N "(cached) $ECHO_C" >&6 2197else 2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2200do 2201 IFS=$as_save_IFS 2202 test -z "$as_dir" && as_dir=. 2203 for ac_prog in mkdir gmkdir; do 2204 for ac_exec_ext in '' $ac_executable_extensions; do 2205 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2207 'mkdir (GNU coreutils) '* | \ 2208 'mkdir (coreutils) '* | \ 2209 'mkdir (fileutils) '4.1*) 2210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2211 break 3;; 2212 esac 2213 done 2214 done 2215done 2216IFS=$as_save_IFS 2217 2218fi 2219 2220 if test "${ac_cv_path_mkdir+set}" = set; then 2221 MKDIR_P="$ac_cv_path_mkdir -p" 2222 else 2223 # As a last resort, use the slow shell script. Don't cache a 2224 # value for MKDIR_P within a source directory, because that will 2225 # break other packages using the cache if that directory is 2226 # removed, or if the value is a relative name. 2227 test -d ./--version && rmdir ./--version 2228 MKDIR_P="$ac_install_sh -d" 2229 fi 2230fi 2231{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2232echo "${ECHO_T}$MKDIR_P" >&6; } 2233 2234mkdir_p="$MKDIR_P" 2235case $mkdir_p in 2236 [\\/$]* | ?:[\\/]*) ;; 2237 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2238esac 2239 2240for ac_prog in gawk mawk nawk awk 2241do 2242 # Extract the first word of "$ac_prog", so it can be a program name with args. 2243set dummy $ac_prog; ac_word=$2 2244{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2246if test "${ac_cv_prog_AWK+set}" = set; then 2247 echo $ECHO_N "(cached) $ECHO_C" >&6 2248else 2249 if test -n "$AWK"; then 2250 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2251else 2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2259 ac_cv_prog_AWK="$ac_prog" 2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2261 break 2 2262 fi 2263done 2264done 2265IFS=$as_save_IFS 2266 2267fi 2268fi 2269AWK=$ac_cv_prog_AWK 2270if test -n "$AWK"; then 2271 { echo "$as_me:$LINENO: result: $AWK" >&5 2272echo "${ECHO_T}$AWK" >&6; } 2273else 2274 { echo "$as_me:$LINENO: result: no" >&5 2275echo "${ECHO_T}no" >&6; } 2276fi 2277 2278 2279 test -n "$AWK" && break 2280done 2281 2282{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2283echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2284set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2285if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287else 2288 cat >conftest.make <<\_ACEOF 2289SHELL = /bin/sh 2290all: 2291 @echo '@@@%%%=$(MAKE)=@@@%%%' 2292_ACEOF 2293# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2294case `${MAKE-make} -f conftest.make 2>/dev/null` in 2295 *@@@%%%=?*=@@@%%%*) 2296 eval ac_cv_prog_make_${ac_make}_set=yes;; 2297 *) 2298 eval ac_cv_prog_make_${ac_make}_set=no;; 2299esac 2300rm -f conftest.make 2301fi 2302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2303 { echo "$as_me:$LINENO: result: yes" >&5 2304echo "${ECHO_T}yes" >&6; } 2305 SET_MAKE= 2306else 2307 { echo "$as_me:$LINENO: result: no" >&5 2308echo "${ECHO_T}no" >&6; } 2309 SET_MAKE="MAKE=${MAKE-make}" 2310fi 2311 2312rm -rf .tst 2>/dev/null 2313mkdir .tst 2>/dev/null 2314if test -d .tst; then 2315 am__leading_dot=. 2316else 2317 am__leading_dot=_ 2318fi 2319rmdir .tst 2>/dev/null 2320 2321if test "`cd $srcdir && pwd`" != "`pwd`"; then 2322 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2323 # is not polluted with repeated "-I." 2324 am__isrc=' -I$(srcdir)' 2325 # test to see if srcdir already configured 2326 if test -f $srcdir/config.status; then 2327 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2328echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2329 { (exit 1); exit 1; }; } 2330 fi 2331fi 2332 2333# test whether we have cygpath 2334if test -z "$CYGPATH_W"; then 2335 if (cygpath --version) >/dev/null 2>/dev/null; then 2336 CYGPATH_W='cygpath -w' 2337 else 2338 CYGPATH_W=echo 2339 fi 2340fi 2341 2342 2343# Define the identity of the package. 2344 PACKAGE='libXfont' 2345 VERSION='1.3.2' 2346 2347 2348cat >>confdefs.h <<_ACEOF 2349#define PACKAGE "$PACKAGE" 2350_ACEOF 2351 2352 2353cat >>confdefs.h <<_ACEOF 2354#define VERSION "$VERSION" 2355_ACEOF 2356 2357# Some tools Automake needs. 2358 2359ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2360 2361 2362AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2363 2364 2365AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2366 2367 2368AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2369 2370 2371MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2372 2373install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2374 2375# Installed binaries are usually stripped using `strip' when the user 2376# run `make install-strip'. However `strip' might not be the right 2377# tool to use in cross-compilation environments, therefore Automake 2378# will honor the `STRIP' environment variable to overrule this program. 2379if test "$cross_compiling" != no; then 2380 if test -n "$ac_tool_prefix"; then 2381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2382set dummy ${ac_tool_prefix}strip; ac_word=$2 2383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2385if test "${ac_cv_prog_STRIP+set}" = set; then 2386 echo $ECHO_N "(cached) $ECHO_C" >&6 2387else 2388 if test -n "$STRIP"; then 2389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2390else 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2398 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2400 break 2 2401 fi 2402done 2403done 2404IFS=$as_save_IFS 2405 2406fi 2407fi 2408STRIP=$ac_cv_prog_STRIP 2409if test -n "$STRIP"; then 2410 { echo "$as_me:$LINENO: result: $STRIP" >&5 2411echo "${ECHO_T}$STRIP" >&6; } 2412else 2413 { echo "$as_me:$LINENO: result: no" >&5 2414echo "${ECHO_T}no" >&6; } 2415fi 2416 2417 2418fi 2419if test -z "$ac_cv_prog_STRIP"; then 2420 ac_ct_STRIP=$STRIP 2421 # Extract the first word of "strip", so it can be a program name with args. 2422set dummy strip; ac_word=$2 2423{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2425if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2426 echo $ECHO_N "(cached) $ECHO_C" >&6 2427else 2428 if test -n "$ac_ct_STRIP"; then 2429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2430else 2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2432for as_dir in $PATH 2433do 2434 IFS=$as_save_IFS 2435 test -z "$as_dir" && as_dir=. 2436 for ac_exec_ext in '' $ac_executable_extensions; do 2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2438 ac_cv_prog_ac_ct_STRIP="strip" 2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2440 break 2 2441 fi 2442done 2443done 2444IFS=$as_save_IFS 2445 2446fi 2447fi 2448ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2449if test -n "$ac_ct_STRIP"; then 2450 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2451echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2452else 2453 { echo "$as_me:$LINENO: result: no" >&5 2454echo "${ECHO_T}no" >&6; } 2455fi 2456 2457 if test "x$ac_ct_STRIP" = x; then 2458 STRIP=":" 2459 else 2460 case $cross_compiling:$ac_tool_warned in 2461yes:) 2462{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2463whose name does not start with the host triplet. If you think this 2464configuration is useful to you, please write to autoconf@gnu.org." >&5 2465echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2466whose name does not start with the host triplet. If you think this 2467configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2468ac_tool_warned=yes ;; 2469esac 2470 STRIP=$ac_ct_STRIP 2471 fi 2472else 2473 STRIP="$ac_cv_prog_STRIP" 2474fi 2475 2476fi 2477INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2478 2479# We need awk for the "check" target. The system "awk" is bad on 2480# some platforms. 2481# Always define AMTAR for backward compatibility. 2482 2483AMTAR=${AMTAR-"${am_missing_run}tar"} 2484 2485am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2486 2487 2488 2489 2490 2491ac_config_headers="$ac_config_headers config.h" 2492 2493ac_config_headers="$ac_config_headers include/X11/fonts/fontconf.h" 2494 2495 2496# Check for progs 2497ac_ext=c 2498ac_cpp='$CPP $CPPFLAGS' 2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2501ac_compiler_gnu=$ac_cv_c_compiler_gnu 2502if test -n "$ac_tool_prefix"; then 2503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2504set dummy ${ac_tool_prefix}gcc; ac_word=$2 2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2507if test "${ac_cv_prog_CC+set}" = set; then 2508 echo $ECHO_N "(cached) $ECHO_C" >&6 2509else 2510 if test -n "$CC"; then 2511 ac_cv_prog_CC="$CC" # Let the user override the test. 2512else 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_exec_ext in '' $ac_executable_extensions; do 2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2522 break 2 2523 fi 2524done 2525done 2526IFS=$as_save_IFS 2527 2528fi 2529fi 2530CC=$ac_cv_prog_CC 2531if test -n "$CC"; then 2532 { echo "$as_me:$LINENO: result: $CC" >&5 2533echo "${ECHO_T}$CC" >&6; } 2534else 2535 { echo "$as_me:$LINENO: result: no" >&5 2536echo "${ECHO_T}no" >&6; } 2537fi 2538 2539 2540fi 2541if test -z "$ac_cv_prog_CC"; then 2542 ac_ct_CC=$CC 2543 # Extract the first word of "gcc", so it can be a program name with args. 2544set dummy gcc; ac_word=$2 2545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2547if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2548 echo $ECHO_N "(cached) $ECHO_C" >&6 2549else 2550 if test -n "$ac_ct_CC"; then 2551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2552else 2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2554for as_dir in $PATH 2555do 2556 IFS=$as_save_IFS 2557 test -z "$as_dir" && as_dir=. 2558 for ac_exec_ext in '' $ac_executable_extensions; do 2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2560 ac_cv_prog_ac_ct_CC="gcc" 2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2562 break 2 2563 fi 2564done 2565done 2566IFS=$as_save_IFS 2567 2568fi 2569fi 2570ac_ct_CC=$ac_cv_prog_ac_ct_CC 2571if test -n "$ac_ct_CC"; then 2572 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2573echo "${ECHO_T}$ac_ct_CC" >&6; } 2574else 2575 { echo "$as_me:$LINENO: result: no" >&5 2576echo "${ECHO_T}no" >&6; } 2577fi 2578 2579 if test "x$ac_ct_CC" = x; then 2580 CC="" 2581 else 2582 case $cross_compiling:$ac_tool_warned in 2583yes:) 2584{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2585whose name does not start with the host triplet. If you think this 2586configuration is useful to you, please write to autoconf@gnu.org." >&5 2587echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2588whose name does not start with the host triplet. If you think this 2589configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2590ac_tool_warned=yes ;; 2591esac 2592 CC=$ac_ct_CC 2593 fi 2594else 2595 CC="$ac_cv_prog_CC" 2596fi 2597 2598if test -z "$CC"; then 2599 if test -n "$ac_tool_prefix"; then 2600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2601set dummy ${ac_tool_prefix}cc; ac_word=$2 2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2604if test "${ac_cv_prog_CC+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 if test -n "$CC"; then 2608 ac_cv_prog_CC="$CC" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2617 ac_cv_prog_CC="${ac_tool_prefix}cc" 2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627CC=$ac_cv_prog_CC 2628if test -n "$CC"; then 2629 { echo "$as_me:$LINENO: result: $CC" >&5 2630echo "${ECHO_T}$CC" >&6; } 2631else 2632 { echo "$as_me:$LINENO: result: no" >&5 2633echo "${ECHO_T}no" >&6; } 2634fi 2635 2636 2637 fi 2638fi 2639if test -z "$CC"; then 2640 # Extract the first word of "cc", so it can be a program name with args. 2641set dummy cc; ac_word=$2 2642{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2644if test "${ac_cv_prog_CC+set}" = set; then 2645 echo $ECHO_N "(cached) $ECHO_C" >&6 2646else 2647 if test -n "$CC"; then 2648 ac_cv_prog_CC="$CC" # Let the user override the test. 2649else 2650 ac_prog_rejected=no 2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2652for as_dir in $PATH 2653do 2654 IFS=$as_save_IFS 2655 test -z "$as_dir" && as_dir=. 2656 for ac_exec_ext in '' $ac_executable_extensions; do 2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2659 ac_prog_rejected=yes 2660 continue 2661 fi 2662 ac_cv_prog_CC="cc" 2663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2664 break 2 2665 fi 2666done 2667done 2668IFS=$as_save_IFS 2669 2670if test $ac_prog_rejected = yes; then 2671 # We found a bogon in the path, so make sure we never use it. 2672 set dummy $ac_cv_prog_CC 2673 shift 2674 if test $# != 0; then 2675 # We chose a different compiler from the bogus one. 2676 # However, it has the same basename, so the bogon will be chosen 2677 # first if we set CC to just the basename; use the full file name. 2678 shift 2679 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2680 fi 2681fi 2682fi 2683fi 2684CC=$ac_cv_prog_CC 2685if test -n "$CC"; then 2686 { echo "$as_me:$LINENO: result: $CC" >&5 2687echo "${ECHO_T}$CC" >&6; } 2688else 2689 { echo "$as_me:$LINENO: result: no" >&5 2690echo "${ECHO_T}no" >&6; } 2691fi 2692 2693 2694fi 2695if test -z "$CC"; then 2696 if test -n "$ac_tool_prefix"; then 2697 for ac_prog in cl.exe 2698 do 2699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2700set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2703if test "${ac_cv_prog_CC+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 if test -n "$CC"; then 2707 ac_cv_prog_CC="$CC" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726CC=$ac_cv_prog_CC 2727if test -n "$CC"; then 2728 { echo "$as_me:$LINENO: result: $CC" >&5 2729echo "${ECHO_T}$CC" >&6; } 2730else 2731 { echo "$as_me:$LINENO: result: no" >&5 2732echo "${ECHO_T}no" >&6; } 2733fi 2734 2735 2736 test -n "$CC" && break 2737 done 2738fi 2739if test -z "$CC"; then 2740 ac_ct_CC=$CC 2741 for ac_prog in cl.exe 2742do 2743 # Extract the first word of "$ac_prog", so it can be a program name with args. 2744set dummy $ac_prog; ac_word=$2 2745{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2747if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2748 echo $ECHO_N "(cached) $ECHO_C" >&6 2749else 2750 if test -n "$ac_ct_CC"; then 2751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2752else 2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2754for as_dir in $PATH 2755do 2756 IFS=$as_save_IFS 2757 test -z "$as_dir" && as_dir=. 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2760 ac_cv_prog_ac_ct_CC="$ac_prog" 2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2762 break 2 2763 fi 2764done 2765done 2766IFS=$as_save_IFS 2767 2768fi 2769fi 2770ac_ct_CC=$ac_cv_prog_ac_ct_CC 2771if test -n "$ac_ct_CC"; then 2772 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2773echo "${ECHO_T}$ac_ct_CC" >&6; } 2774else 2775 { echo "$as_me:$LINENO: result: no" >&5 2776echo "${ECHO_T}no" >&6; } 2777fi 2778 2779 2780 test -n "$ac_ct_CC" && break 2781done 2782 2783 if test "x$ac_ct_CC" = x; then 2784 CC="" 2785 else 2786 case $cross_compiling:$ac_tool_warned in 2787yes:) 2788{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2789whose name does not start with the host triplet. If you think this 2790configuration is useful to you, please write to autoconf@gnu.org." >&5 2791echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2792whose name does not start with the host triplet. If you think this 2793configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2794ac_tool_warned=yes ;; 2795esac 2796 CC=$ac_ct_CC 2797 fi 2798fi 2799 2800fi 2801 2802 2803test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2804See \`config.log' for more details." >&5 2805echo "$as_me: error: no acceptable C compiler found in \$PATH 2806See \`config.log' for more details." >&2;} 2807 { (exit 1); exit 1; }; } 2808 2809# Provide some information about the compiler. 2810echo "$as_me:$LINENO: checking for C compiler version" >&5 2811ac_compiler=`set X $ac_compile; echo $2` 2812{ (ac_try="$ac_compiler --version >&5" 2813case "(($ac_try" in 2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2815 *) ac_try_echo=$ac_try;; 2816esac 2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2818 (eval "$ac_compiler --version >&5") 2>&5 2819 ac_status=$? 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); } 2822{ (ac_try="$ac_compiler -v >&5" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2828 (eval "$ac_compiler -v >&5") 2>&5 2829 ac_status=$? 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); } 2832{ (ac_try="$ac_compiler -V >&5" 2833case "(($ac_try" in 2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2835 *) ac_try_echo=$ac_try;; 2836esac 2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2838 (eval "$ac_compiler -V >&5") 2>&5 2839 ac_status=$? 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); } 2842 2843cat >conftest.$ac_ext <<_ACEOF 2844/* confdefs.h. */ 2845_ACEOF 2846cat confdefs.h >>conftest.$ac_ext 2847cat >>conftest.$ac_ext <<_ACEOF 2848/* end confdefs.h. */ 2849 2850int 2851main () 2852{ 2853 2854 ; 2855 return 0; 2856} 2857_ACEOF 2858ac_clean_files_save=$ac_clean_files 2859ac_clean_files="$ac_clean_files a.out a.exe b.out" 2860# Try to create an executable without -o first, disregard a.out. 2861# It will help us diagnose broken compilers, and finding out an intuition 2862# of exeext. 2863{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2864echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2865ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2866# 2867# List of possible output files, starting from the most likely. 2868# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2869# only as a last resort. b.out is created by i960 compilers. 2870ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2871# 2872# The IRIX 6 linker writes into existing files which may not be 2873# executable, retaining their permissions. Remove them first so a 2874# subsequent execution test works. 2875ac_rmfiles= 2876for ac_file in $ac_files 2877do 2878 case $ac_file in 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2880 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2881 esac 2882done 2883rm -f $ac_rmfiles 2884 2885if { (ac_try="$ac_link_default" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2891 (eval "$ac_link_default") 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); }; then 2895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2896# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2897# in a Makefile. We should not override ac_cv_exeext if it was cached, 2898# so that the user can short-circuit this test for compilers unknown to 2899# Autoconf. 2900for ac_file in $ac_files '' 2901do 2902 test -f "$ac_file" || continue 2903 case $ac_file in 2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2905 ;; 2906 [ab].out ) 2907 # We found the default executable, but exeext='' is most 2908 # certainly right. 2909 break;; 2910 *.* ) 2911 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2912 then :; else 2913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2914 fi 2915 # We set ac_cv_exeext here because the later test for it is not 2916 # safe: cross compilers may not add the suffix if given an `-o' 2917 # argument, so we may need to know it at that point already. 2918 # Even if this section looks crufty: it has the advantage of 2919 # actually working. 2920 break;; 2921 * ) 2922 break;; 2923 esac 2924done 2925test "$ac_cv_exeext" = no && ac_cv_exeext= 2926 2927else 2928 ac_file='' 2929fi 2930 2931{ echo "$as_me:$LINENO: result: $ac_file" >&5 2932echo "${ECHO_T}$ac_file" >&6; } 2933if test -z "$ac_file"; then 2934 echo "$as_me: failed program was:" >&5 2935sed 's/^/| /' conftest.$ac_ext >&5 2936 2937{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2938See \`config.log' for more details." >&5 2939echo "$as_me: error: C compiler cannot create executables 2940See \`config.log' for more details." >&2;} 2941 { (exit 77); exit 77; }; } 2942fi 2943 2944ac_exeext=$ac_cv_exeext 2945 2946# Check that the compiler produces executables we can run. If not, either 2947# the compiler is broken, or we cross compile. 2948{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2949echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2950# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2951# If not cross compiling, check that we can run a simple program. 2952if test "$cross_compiling" != yes; then 2953 if { ac_try='./$ac_file' 2954 { (case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2959 (eval "$ac_try") 2>&5 2960 ac_status=$? 2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); }; }; then 2963 cross_compiling=no 2964 else 2965 if test "$cross_compiling" = maybe; then 2966 cross_compiling=yes 2967 else 2968 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2969If you meant to cross compile, use \`--host'. 2970See \`config.log' for more details." >&5 2971echo "$as_me: error: cannot run C compiled programs. 2972If you meant to cross compile, use \`--host'. 2973See \`config.log' for more details." >&2;} 2974 { (exit 1); exit 1; }; } 2975 fi 2976 fi 2977fi 2978{ echo "$as_me:$LINENO: result: yes" >&5 2979echo "${ECHO_T}yes" >&6; } 2980 2981rm -f a.out a.exe conftest$ac_cv_exeext b.out 2982ac_clean_files=$ac_clean_files_save 2983# Check that the compiler produces executables we can run. If not, either 2984# the compiler is broken, or we cross compile. 2985{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2986echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2987{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2988echo "${ECHO_T}$cross_compiling" >&6; } 2989 2990{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2991echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2992if { (ac_try="$ac_link" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2998 (eval "$ac_link") 2>&5 2999 ac_status=$? 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); }; then 3002 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3003# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3004# work properly (i.e., refer to `conftest.exe'), while it won't with 3005# `rm'. 3006for ac_file in conftest.exe conftest conftest.*; do 3007 test -f "$ac_file" || continue 3008 case $ac_file in 3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3010 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3011 break;; 3012 * ) break;; 3013 esac 3014done 3015else 3016 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3017See \`config.log' for more details." >&5 3018echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3019See \`config.log' for more details." >&2;} 3020 { (exit 1); exit 1; }; } 3021fi 3022 3023rm -f conftest$ac_cv_exeext 3024{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3025echo "${ECHO_T}$ac_cv_exeext" >&6; } 3026 3027rm -f conftest.$ac_ext 3028EXEEXT=$ac_cv_exeext 3029ac_exeext=$EXEEXT 3030{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3031echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3032if test "${ac_cv_objext+set}" = set; then 3033 echo $ECHO_N "(cached) $ECHO_C" >&6 3034else 3035 cat >conftest.$ac_ext <<_ACEOF 3036/* confdefs.h. */ 3037_ACEOF 3038cat confdefs.h >>conftest.$ac_ext 3039cat >>conftest.$ac_ext <<_ACEOF 3040/* end confdefs.h. */ 3041 3042int 3043main () 3044{ 3045 3046 ; 3047 return 0; 3048} 3049_ACEOF 3050rm -f conftest.o conftest.obj 3051if { (ac_try="$ac_compile" 3052case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055esac 3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3057 (eval "$ac_compile") 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); }; then 3061 for ac_file in conftest.o conftest.obj conftest.*; do 3062 test -f "$ac_file" || continue; 3063 case $ac_file in 3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3066 break;; 3067 esac 3068done 3069else 3070 echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3074See \`config.log' for more details." >&5 3075echo "$as_me: error: cannot compute suffix of object files: cannot compile 3076See \`config.log' for more details." >&2;} 3077 { (exit 1); exit 1; }; } 3078fi 3079 3080rm -f conftest.$ac_cv_objext conftest.$ac_ext 3081fi 3082{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3083echo "${ECHO_T}$ac_cv_objext" >&6; } 3084OBJEXT=$ac_cv_objext 3085ac_objext=$OBJEXT 3086{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3087echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3088if test "${ac_cv_c_compiler_gnu+set}" = set; then 3089 echo $ECHO_N "(cached) $ECHO_C" >&6 3090else 3091 cat >conftest.$ac_ext <<_ACEOF 3092/* confdefs.h. */ 3093_ACEOF 3094cat confdefs.h >>conftest.$ac_ext 3095cat >>conftest.$ac_ext <<_ACEOF 3096/* end confdefs.h. */ 3097 3098int 3099main () 3100{ 3101#ifndef __GNUC__ 3102 choke me 3103#endif 3104 3105 ; 3106 return 0; 3107} 3108_ACEOF 3109rm -f conftest.$ac_objext 3110if { (ac_try="$ac_compile" 3111case "(($ac_try" in 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3113 *) ac_try_echo=$ac_try;; 3114esac 3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3116 (eval "$ac_compile") 2>conftest.er1 3117 ac_status=$? 3118 grep -v '^ *+' conftest.er1 >conftest.err 3119 rm -f conftest.er1 3120 cat conftest.err >&5 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); } && { 3123 test -z "$ac_c_werror_flag" || 3124 test ! -s conftest.err 3125 } && test -s conftest.$ac_objext; then 3126 ac_compiler_gnu=yes 3127else 3128 echo "$as_me: failed program was:" >&5 3129sed 's/^/| /' conftest.$ac_ext >&5 3130 3131 ac_compiler_gnu=no 3132fi 3133 3134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3135ac_cv_c_compiler_gnu=$ac_compiler_gnu 3136 3137fi 3138{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3139echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3140GCC=`test $ac_compiler_gnu = yes && echo yes` 3141ac_test_CFLAGS=${CFLAGS+set} 3142ac_save_CFLAGS=$CFLAGS 3143{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3144echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3145if test "${ac_cv_prog_cc_g+set}" = set; then 3146 echo $ECHO_N "(cached) $ECHO_C" >&6 3147else 3148 ac_save_c_werror_flag=$ac_c_werror_flag 3149 ac_c_werror_flag=yes 3150 ac_cv_prog_cc_g=no 3151 CFLAGS="-g" 3152 cat >conftest.$ac_ext <<_ACEOF 3153/* confdefs.h. */ 3154_ACEOF 3155cat confdefs.h >>conftest.$ac_ext 3156cat >>conftest.$ac_ext <<_ACEOF 3157/* end confdefs.h. */ 3158 3159int 3160main () 3161{ 3162 3163 ; 3164 return 0; 3165} 3166_ACEOF 3167rm -f conftest.$ac_objext 3168if { (ac_try="$ac_compile" 3169case "(($ac_try" in 3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171 *) ac_try_echo=$ac_try;; 3172esac 3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3174 (eval "$ac_compile") 2>conftest.er1 3175 ac_status=$? 3176 grep -v '^ *+' conftest.er1 >conftest.err 3177 rm -f conftest.er1 3178 cat conftest.err >&5 3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); } && { 3181 test -z "$ac_c_werror_flag" || 3182 test ! -s conftest.err 3183 } && test -s conftest.$ac_objext; then 3184 ac_cv_prog_cc_g=yes 3185else 3186 echo "$as_me: failed program was:" >&5 3187sed 's/^/| /' conftest.$ac_ext >&5 3188 3189 CFLAGS="" 3190 cat >conftest.$ac_ext <<_ACEOF 3191/* confdefs.h. */ 3192_ACEOF 3193cat confdefs.h >>conftest.$ac_ext 3194cat >>conftest.$ac_ext <<_ACEOF 3195/* end confdefs.h. */ 3196 3197int 3198main () 3199{ 3200 3201 ; 3202 return 0; 3203} 3204_ACEOF 3205rm -f conftest.$ac_objext 3206if { (ac_try="$ac_compile" 3207case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210esac 3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3212 (eval "$ac_compile") 2>conftest.er1 3213 ac_status=$? 3214 grep -v '^ *+' conftest.er1 >conftest.err 3215 rm -f conftest.er1 3216 cat conftest.err >&5 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); } && { 3219 test -z "$ac_c_werror_flag" || 3220 test ! -s conftest.err 3221 } && test -s conftest.$ac_objext; then 3222 : 3223else 3224 echo "$as_me: failed program was:" >&5 3225sed 's/^/| /' conftest.$ac_ext >&5 3226 3227 ac_c_werror_flag=$ac_save_c_werror_flag 3228 CFLAGS="-g" 3229 cat >conftest.$ac_ext <<_ACEOF 3230/* confdefs.h. */ 3231_ACEOF 3232cat confdefs.h >>conftest.$ac_ext 3233cat >>conftest.$ac_ext <<_ACEOF 3234/* end confdefs.h. */ 3235 3236int 3237main () 3238{ 3239 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244rm -f conftest.$ac_objext 3245if { (ac_try="$ac_compile" 3246case "(($ac_try" in 3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3248 *) ac_try_echo=$ac_try;; 3249esac 3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3251 (eval "$ac_compile") 2>conftest.er1 3252 ac_status=$? 3253 grep -v '^ *+' conftest.er1 >conftest.err 3254 rm -f conftest.er1 3255 cat conftest.err >&5 3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3257 (exit $ac_status); } && { 3258 test -z "$ac_c_werror_flag" || 3259 test ! -s conftest.err 3260 } && test -s conftest.$ac_objext; then 3261 ac_cv_prog_cc_g=yes 3262else 3263 echo "$as_me: failed program was:" >&5 3264sed 's/^/| /' conftest.$ac_ext >&5 3265 3266 3267fi 3268 3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3270fi 3271 3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3273fi 3274 3275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3276 ac_c_werror_flag=$ac_save_c_werror_flag 3277fi 3278{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3279echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3280if test "$ac_test_CFLAGS" = set; then 3281 CFLAGS=$ac_save_CFLAGS 3282elif test $ac_cv_prog_cc_g = yes; then 3283 if test "$GCC" = yes; then 3284 CFLAGS="-g -O2" 3285 else 3286 CFLAGS="-g" 3287 fi 3288else 3289 if test "$GCC" = yes; then 3290 CFLAGS="-O2" 3291 else 3292 CFLAGS= 3293 fi 3294fi 3295{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3296echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3297if test "${ac_cv_prog_cc_c89+set}" = set; then 3298 echo $ECHO_N "(cached) $ECHO_C" >&6 3299else 3300 ac_cv_prog_cc_c89=no 3301ac_save_CC=$CC 3302cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308#include <stdarg.h> 3309#include <stdio.h> 3310#include <sys/types.h> 3311#include <sys/stat.h> 3312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3313struct buf { int x; }; 3314FILE * (*rcsopen) (struct buf *, struct stat *, int); 3315static char *e (p, i) 3316 char **p; 3317 int i; 3318{ 3319 return p[i]; 3320} 3321static char *f (char * (*g) (char **, int), char **p, ...) 3322{ 3323 char *s; 3324 va_list v; 3325 va_start (v,p); 3326 s = g (p, va_arg (v,int)); 3327 va_end (v); 3328 return s; 3329} 3330 3331/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3332 function prototypes and stuff, but not '\xHH' hex character constants. 3333 These don't provoke an error unfortunately, instead are silently treated 3334 as 'x'. The following induces an error, until -std is added to get 3335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3336 array size at least. It's necessary to write '\x00'==0 to get something 3337 that's true only with -std. */ 3338int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3339 3340/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3341 inside strings and character constants. */ 3342#define FOO(x) 'x' 3343int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3344 3345int test (int i, double x); 3346struct s1 {int (*f) (int a);}; 3347struct s2 {int (*f) (double a);}; 3348int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3349int argc; 3350char **argv; 3351int 3352main () 3353{ 3354return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3361do 3362 CC="$ac_save_CC $ac_arg" 3363 rm -f conftest.$ac_objext 3364if { (ac_try="$ac_compile" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3370 (eval "$ac_compile") 2>conftest.er1 3371 ac_status=$? 3372 grep -v '^ *+' conftest.er1 >conftest.err 3373 rm -f conftest.er1 3374 cat conftest.err >&5 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } && { 3377 test -z "$ac_c_werror_flag" || 3378 test ! -s conftest.err 3379 } && test -s conftest.$ac_objext; then 3380 ac_cv_prog_cc_c89=$ac_arg 3381else 3382 echo "$as_me: failed program was:" >&5 3383sed 's/^/| /' conftest.$ac_ext >&5 3384 3385 3386fi 3387 3388rm -f core conftest.err conftest.$ac_objext 3389 test "x$ac_cv_prog_cc_c89" != "xno" && break 3390done 3391rm -f conftest.$ac_ext 3392CC=$ac_save_CC 3393 3394fi 3395# AC_CACHE_VAL 3396case "x$ac_cv_prog_cc_c89" in 3397 x) 3398 { echo "$as_me:$LINENO: result: none needed" >&5 3399echo "${ECHO_T}none needed" >&6; } ;; 3400 xno) 3401 { echo "$as_me:$LINENO: result: unsupported" >&5 3402echo "${ECHO_T}unsupported" >&6; } ;; 3403 *) 3404 CC="$CC $ac_cv_prog_cc_c89" 3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3406echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3407esac 3408 3409 3410ac_ext=c 3411ac_cpp='$CPP $CPPFLAGS' 3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3414ac_compiler_gnu=$ac_cv_c_compiler_gnu 3415DEPDIR="${am__leading_dot}deps" 3416 3417ac_config_commands="$ac_config_commands depfiles" 3418 3419 3420am_make=${MAKE-make} 3421cat > confinc << 'END' 3422am__doit: 3423 @echo done 3424.PHONY: am__doit 3425END 3426# If we don't find an include directive, just comment out the code. 3427{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3428echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3429am__include="#" 3430am__quote= 3431_am_result=none 3432# First try GNU make style include. 3433echo "include confinc" > confmf 3434# We grep out `Entering directory' and `Leaving directory' 3435# messages which can occur if `w' ends up in MAKEFLAGS. 3436# In particular we don't look at `^make:' because GNU make might 3437# be invoked under some other name (usually "gmake"), in which 3438# case it prints its new name instead of `make'. 3439if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3440 am__include=include 3441 am__quote= 3442 _am_result=GNU 3443fi 3444# Now try BSD make style include. 3445if test "$am__include" = "#"; then 3446 echo '.include "confinc"' > confmf 3447 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3448 am__include=.include 3449 am__quote="\"" 3450 _am_result=BSD 3451 fi 3452fi 3453 3454 3455{ echo "$as_me:$LINENO: result: $_am_result" >&5 3456echo "${ECHO_T}$_am_result" >&6; } 3457rm -f confinc confmf 3458 3459# Check whether --enable-dependency-tracking was given. 3460if test "${enable_dependency_tracking+set}" = set; then 3461 enableval=$enable_dependency_tracking; 3462fi 3463 3464if test "x$enable_dependency_tracking" != xno; then 3465 am_depcomp="$ac_aux_dir/depcomp" 3466 AMDEPBACKSLASH='\' 3467fi 3468 if test "x$enable_dependency_tracking" != xno; then 3469 AMDEP_TRUE= 3470 AMDEP_FALSE='#' 3471else 3472 AMDEP_TRUE='#' 3473 AMDEP_FALSE= 3474fi 3475 3476 3477 3478depcc="$CC" am_compiler_list= 3479 3480{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3481echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3482if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3483 echo $ECHO_N "(cached) $ECHO_C" >&6 3484else 3485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3486 # We make a subdir and do the tests there. Otherwise we can end up 3487 # making bogus files that we don't know about and never remove. For 3488 # instance it was reported that on HP-UX the gcc test will end up 3489 # making a dummy file named `D' -- because `-MD' means `put the output 3490 # in D'. 3491 mkdir conftest.dir 3492 # Copy depcomp to subdir because otherwise we won't find it if we're 3493 # using a relative directory. 3494 cp "$am_depcomp" conftest.dir 3495 cd conftest.dir 3496 # We will build objects and dependencies in a subdirectory because 3497 # it helps to detect inapplicable dependency modes. For instance 3498 # both Tru64's cc and ICC support -MD to output dependencies as a 3499 # side effect of compilation, but ICC will put the dependencies in 3500 # the current directory while Tru64 will put them in the object 3501 # directory. 3502 mkdir sub 3503 3504 am_cv_CC_dependencies_compiler_type=none 3505 if test "$am_compiler_list" = ""; then 3506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3507 fi 3508 for depmode in $am_compiler_list; do 3509 # Setup a source with many dependencies, because some compilers 3510 # like to wrap large dependency lists on column 80 (with \), and 3511 # we should not choose a depcomp mode which is confused by this. 3512 # 3513 # We need to recreate these files for each test, as the compiler may 3514 # overwrite some of them when testing with obscure command lines. 3515 # This happens at least with the AIX C compiler. 3516 : > sub/conftest.c 3517 for i in 1 2 3 4 5 6; do 3518 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3520 # Solaris 8's {/usr,}/bin/sh. 3521 touch sub/conftst$i.h 3522 done 3523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3524 3525 case $depmode in 3526 nosideeffect) 3527 # after this tag, mechanisms are not by side-effect, so they'll 3528 # only be used when explicitly requested 3529 if test "x$enable_dependency_tracking" = xyes; then 3530 continue 3531 else 3532 break 3533 fi 3534 ;; 3535 none) break ;; 3536 esac 3537 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3538 # mode. It turns out that the SunPro C++ compiler does not properly 3539 # handle `-M -o', and we need to detect this. 3540 if depmode=$depmode \ 3541 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3543 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3544 >/dev/null 2>conftest.err && 3545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3547 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3549 # icc doesn't choke on unknown options, it will just issue warnings 3550 # or remarks (even with -Werror). So we grep stderr for any message 3551 # that says an option was ignored or not supported. 3552 # When given -MP, icc 7.0 and 7.1 complain thusly: 3553 # icc: Command line warning: ignoring option '-M'; no argument required 3554 # The diagnosis changed in icc 8.0: 3555 # icc: Command line remark: option '-MP' not supported 3556 if (grep 'ignoring option' conftest.err || 3557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3558 am_cv_CC_dependencies_compiler_type=$depmode 3559 break 3560 fi 3561 fi 3562 done 3563 3564 cd .. 3565 rm -rf conftest.dir 3566else 3567 am_cv_CC_dependencies_compiler_type=none 3568fi 3569 3570fi 3571{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3572echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3574 3575 if 3576 test "x$enable_dependency_tracking" != xno \ 3577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3578 am__fastdepCC_TRUE= 3579 am__fastdepCC_FALSE='#' 3580else 3581 am__fastdepCC_TRUE='#' 3582 am__fastdepCC_FALSE= 3583fi 3584 3585 3586# Check whether --enable-shared was given. 3587if test "${enable_shared+set}" = set; then 3588 enableval=$enable_shared; p=${PACKAGE-default} 3589 case $enableval in 3590 yes) enable_shared=yes ;; 3591 no) enable_shared=no ;; 3592 *) 3593 enable_shared=no 3594 # Look at the argument we got. We use all the common list separators. 3595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3596 for pkg in $enableval; do 3597 IFS="$lt_save_ifs" 3598 if test "X$pkg" = "X$p"; then 3599 enable_shared=yes 3600 fi 3601 done 3602 IFS="$lt_save_ifs" 3603 ;; 3604 esac 3605else 3606 enable_shared=yes 3607fi 3608 3609 3610# Check whether --enable-static was given. 3611if test "${enable_static+set}" = set; then 3612 enableval=$enable_static; p=${PACKAGE-default} 3613 case $enableval in 3614 yes) enable_static=yes ;; 3615 no) enable_static=no ;; 3616 *) 3617 enable_static=no 3618 # Look at the argument we got. We use all the common list separators. 3619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3620 for pkg in $enableval; do 3621 IFS="$lt_save_ifs" 3622 if test "X$pkg" = "X$p"; then 3623 enable_static=yes 3624 fi 3625 done 3626 IFS="$lt_save_ifs" 3627 ;; 3628 esac 3629else 3630 enable_static=yes 3631fi 3632 3633 3634# Check whether --enable-fast-install was given. 3635if test "${enable_fast_install+set}" = set; then 3636 enableval=$enable_fast_install; p=${PACKAGE-default} 3637 case $enableval in 3638 yes) enable_fast_install=yes ;; 3639 no) enable_fast_install=no ;; 3640 *) 3641 enable_fast_install=no 3642 # Look at the argument we got. We use all the common list separators. 3643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3644 for pkg in $enableval; do 3645 IFS="$lt_save_ifs" 3646 if test "X$pkg" = "X$p"; then 3647 enable_fast_install=yes 3648 fi 3649 done 3650 IFS="$lt_save_ifs" 3651 ;; 3652 esac 3653else 3654 enable_fast_install=yes 3655fi 3656 3657 3658# Make sure we can run config.sub. 3659$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3660 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3661echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3662 { (exit 1); exit 1; }; } 3663 3664{ echo "$as_me:$LINENO: checking build system type" >&5 3665echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3666if test "${ac_cv_build+set}" = set; then 3667 echo $ECHO_N "(cached) $ECHO_C" >&6 3668else 3669 ac_build_alias=$build_alias 3670test "x$ac_build_alias" = x && 3671 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3672test "x$ac_build_alias" = x && 3673 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3674echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3675 { (exit 1); exit 1; }; } 3676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3677 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3678echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3679 { (exit 1); exit 1; }; } 3680 3681fi 3682{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3683echo "${ECHO_T}$ac_cv_build" >&6; } 3684case $ac_cv_build in 3685*-*-*) ;; 3686*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3687echo "$as_me: error: invalid value of canonical build" >&2;} 3688 { (exit 1); exit 1; }; };; 3689esac 3690build=$ac_cv_build 3691ac_save_IFS=$IFS; IFS='-' 3692set x $ac_cv_build 3693shift 3694build_cpu=$1 3695build_vendor=$2 3696shift; shift 3697# Remember, the first character of IFS is used to create $*, 3698# except with old shells: 3699build_os=$* 3700IFS=$ac_save_IFS 3701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3702 3703 3704{ echo "$as_me:$LINENO: checking host system type" >&5 3705echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3706if test "${ac_cv_host+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 if test "x$host_alias" = x; then 3710 ac_cv_host=$ac_cv_build 3711else 3712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3713 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3714echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3715 { (exit 1); exit 1; }; } 3716fi 3717 3718fi 3719{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3720echo "${ECHO_T}$ac_cv_host" >&6; } 3721case $ac_cv_host in 3722*-*-*) ;; 3723*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3724echo "$as_me: error: invalid value of canonical host" >&2;} 3725 { (exit 1); exit 1; }; };; 3726esac 3727host=$ac_cv_host 3728ac_save_IFS=$IFS; IFS='-' 3729set x $ac_cv_host 3730shift 3731host_cpu=$1 3732host_vendor=$2 3733shift; shift 3734# Remember, the first character of IFS is used to create $*, 3735# except with old shells: 3736host_os=$* 3737IFS=$ac_save_IFS 3738case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3739 3740 3741{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3742echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3743if test "${lt_cv_path_SED+set}" = set; then 3744 echo $ECHO_N "(cached) $ECHO_C" >&6 3745else 3746 # Loop through the user's path and test for sed and gsed. 3747# Then use that list of sed's as ones to test for truncation. 3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749for as_dir in $PATH 3750do 3751 IFS=$as_save_IFS 3752 test -z "$as_dir" && as_dir=. 3753 for lt_ac_prog in sed gsed; do 3754 for ac_exec_ext in '' $ac_executable_extensions; do 3755 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3756 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3757 fi 3758 done 3759 done 3760done 3761IFS=$as_save_IFS 3762lt_ac_max=0 3763lt_ac_count=0 3764# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3765# along with /bin/sed that truncates output. 3766for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3767 test ! -f $lt_ac_sed && continue 3768 cat /dev/null > conftest.in 3769 lt_ac_count=0 3770 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3771 # Check for GNU sed and select it if it is found. 3772 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3773 lt_cv_path_SED=$lt_ac_sed 3774 break 3775 fi 3776 while true; do 3777 cat conftest.in conftest.in >conftest.tmp 3778 mv conftest.tmp conftest.in 3779 cp conftest.in conftest.nl 3780 echo >>conftest.nl 3781 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3782 cmp -s conftest.out conftest.nl || break 3783 # 10000 chars as input seems more than enough 3784 test $lt_ac_count -gt 10 && break 3785 lt_ac_count=`expr $lt_ac_count + 1` 3786 if test $lt_ac_count -gt $lt_ac_max; then 3787 lt_ac_max=$lt_ac_count 3788 lt_cv_path_SED=$lt_ac_sed 3789 fi 3790 done 3791done 3792 3793fi 3794 3795SED=$lt_cv_path_SED 3796 3797{ echo "$as_me:$LINENO: result: $SED" >&5 3798echo "${ECHO_T}$SED" >&6; } 3799 3800{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3801echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3802if test "${ac_cv_path_GREP+set}" = set; then 3803 echo $ECHO_N "(cached) $ECHO_C" >&6 3804else 3805 # Extract the first word of "grep ggrep" to use in msg output 3806if test -z "$GREP"; then 3807set dummy grep ggrep; ac_prog_name=$2 3808if test "${ac_cv_path_GREP+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 ac_path_GREP_found=false 3812# Loop through the user's path and test for each of PROGNAME-LIST 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_prog in grep ggrep; do 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3821 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3822 # Check for GNU ac_path_GREP and select it if it is found. 3823 # Check for GNU $ac_path_GREP 3824case `"$ac_path_GREP" --version 2>&1` in 3825*GNU*) 3826 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3827*) 3828 ac_count=0 3829 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3830 while : 3831 do 3832 cat "conftest.in" "conftest.in" >"conftest.tmp" 3833 mv "conftest.tmp" "conftest.in" 3834 cp "conftest.in" "conftest.nl" 3835 echo 'GREP' >> "conftest.nl" 3836 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3838 ac_count=`expr $ac_count + 1` 3839 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3840 # Best one so far, save it but keep looking for a better one 3841 ac_cv_path_GREP="$ac_path_GREP" 3842 ac_path_GREP_max=$ac_count 3843 fi 3844 # 10*(2^10) chars as input seems more than enough 3845 test $ac_count -gt 10 && break 3846 done 3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3848esac 3849 3850 3851 $ac_path_GREP_found && break 3 3852 done 3853done 3854 3855done 3856IFS=$as_save_IFS 3857 3858 3859fi 3860 3861GREP="$ac_cv_path_GREP" 3862if test -z "$GREP"; then 3863 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3864echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3865 { (exit 1); exit 1; }; } 3866fi 3867 3868else 3869 ac_cv_path_GREP=$GREP 3870fi 3871 3872 3873fi 3874{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3875echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3876 GREP="$ac_cv_path_GREP" 3877 3878 3879{ echo "$as_me:$LINENO: checking for egrep" >&5 3880echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3881if test "${ac_cv_path_EGREP+set}" = set; then 3882 echo $ECHO_N "(cached) $ECHO_C" >&6 3883else 3884 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3885 then ac_cv_path_EGREP="$GREP -E" 3886 else 3887 # Extract the first word of "egrep" to use in msg output 3888if test -z "$EGREP"; then 3889set dummy egrep; ac_prog_name=$2 3890if test "${ac_cv_path_EGREP+set}" = set; then 3891 echo $ECHO_N "(cached) $ECHO_C" >&6 3892else 3893 ac_path_EGREP_found=false 3894# Loop through the user's path and test for each of PROGNAME-LIST 3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3897do 3898 IFS=$as_save_IFS 3899 test -z "$as_dir" && as_dir=. 3900 for ac_prog in egrep; do 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3903 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3904 # Check for GNU ac_path_EGREP and select it if it is found. 3905 # Check for GNU $ac_path_EGREP 3906case `"$ac_path_EGREP" --version 2>&1` in 3907*GNU*) 3908 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3909*) 3910 ac_count=0 3911 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3912 while : 3913 do 3914 cat "conftest.in" "conftest.in" >"conftest.tmp" 3915 mv "conftest.tmp" "conftest.in" 3916 cp "conftest.in" "conftest.nl" 3917 echo 'EGREP' >> "conftest.nl" 3918 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3920 ac_count=`expr $ac_count + 1` 3921 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3922 # Best one so far, save it but keep looking for a better one 3923 ac_cv_path_EGREP="$ac_path_EGREP" 3924 ac_path_EGREP_max=$ac_count 3925 fi 3926 # 10*(2^10) chars as input seems more than enough 3927 test $ac_count -gt 10 && break 3928 done 3929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3930esac 3931 3932 3933 $ac_path_EGREP_found && break 3 3934 done 3935done 3936 3937done 3938IFS=$as_save_IFS 3939 3940 3941fi 3942 3943EGREP="$ac_cv_path_EGREP" 3944if test -z "$EGREP"; then 3945 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3946echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3947 { (exit 1); exit 1; }; } 3948fi 3949 3950else 3951 ac_cv_path_EGREP=$EGREP 3952fi 3953 3954 3955 fi 3956fi 3957{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3958echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3959 EGREP="$ac_cv_path_EGREP" 3960 3961 3962 3963# Check whether --with-gnu-ld was given. 3964if test "${with_gnu_ld+set}" = set; then 3965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3966else 3967 with_gnu_ld=no 3968fi 3969 3970ac_prog=ld 3971if test "$GCC" = yes; then 3972 # Check if gcc -print-prog-name=ld gives a path. 3973 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3974echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3975 case $host in 3976 *-*-mingw*) 3977 # gcc leaves a trailing carriage return which upsets mingw 3978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3979 *) 3980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3981 esac 3982 case $ac_prog in 3983 # Accept absolute paths. 3984 [\\/]* | ?:[\\/]*) 3985 re_direlt='/[^/][^/]*/\.\./' 3986 # Canonicalize the pathname of ld 3987 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3988 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3989 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3990 done 3991 test -z "$LD" && LD="$ac_prog" 3992 ;; 3993 "") 3994 # If it fails, then pretend we aren't using GCC. 3995 ac_prog=ld 3996 ;; 3997 *) 3998 # If it is relative, then search for the first ld in PATH. 3999 with_gnu_ld=unknown 4000 ;; 4001 esac 4002elif test "$with_gnu_ld" = yes; then 4003 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4004echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4005else 4006 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4007echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4008fi 4009if test "${lt_cv_path_LD+set}" = set; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011else 4012 if test -z "$LD"; then 4013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4014 for ac_dir in $PATH; do 4015 IFS="$lt_save_ifs" 4016 test -z "$ac_dir" && ac_dir=. 4017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4018 lt_cv_path_LD="$ac_dir/$ac_prog" 4019 # Check to see if the program is GNU ld. I'd rather use --version, 4020 # but apparently some variants of GNU ld only accept -v. 4021 # Break only if it was the GNU/non-GNU ld that we prefer. 4022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4023 *GNU* | *'with BFD'*) 4024 test "$with_gnu_ld" != no && break 4025 ;; 4026 *) 4027 test "$with_gnu_ld" != yes && break 4028 ;; 4029 esac 4030 fi 4031 done 4032 IFS="$lt_save_ifs" 4033else 4034 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4035fi 4036fi 4037 4038LD="$lt_cv_path_LD" 4039if test -n "$LD"; then 4040 { echo "$as_me:$LINENO: result: $LD" >&5 4041echo "${ECHO_T}$LD" >&6; } 4042else 4043 { echo "$as_me:$LINENO: result: no" >&5 4044echo "${ECHO_T}no" >&6; } 4045fi 4046test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4047echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4048 { (exit 1); exit 1; }; } 4049{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4050echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4051if test "${lt_cv_prog_gnu_ld+set}" = set; then 4052 echo $ECHO_N "(cached) $ECHO_C" >&6 4053else 4054 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4055case `$LD -v 2>&1 </dev/null` in 4056*GNU* | *'with BFD'*) 4057 lt_cv_prog_gnu_ld=yes 4058 ;; 4059*) 4060 lt_cv_prog_gnu_ld=no 4061 ;; 4062esac 4063fi 4064{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4065echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4066with_gnu_ld=$lt_cv_prog_gnu_ld 4067 4068 4069{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4070echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4071if test "${lt_cv_ld_reload_flag+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 lt_cv_ld_reload_flag='-r' 4075fi 4076{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4077echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4078reload_flag=$lt_cv_ld_reload_flag 4079case $reload_flag in 4080"" | " "*) ;; 4081*) reload_flag=" $reload_flag" ;; 4082esac 4083reload_cmds='$LD$reload_flag -o $output$reload_objs' 4084case $host_os in 4085 darwin*) 4086 if test "$GCC" = yes; then 4087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4088 else 4089 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4090 fi 4091 ;; 4092esac 4093 4094{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4095echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4096if test "${lt_cv_path_NM+set}" = set; then 4097 echo $ECHO_N "(cached) $ECHO_C" >&6 4098else 4099 if test -n "$NM"; then 4100 # Let the user override the test. 4101 lt_cv_path_NM="$NM" 4102else 4103 lt_nm_to_check="${ac_tool_prefix}nm" 4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4105 lt_nm_to_check="$lt_nm_to_check nm" 4106 fi 4107 for lt_tmp_nm in $lt_nm_to_check; do 4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4110 IFS="$lt_save_ifs" 4111 test -z "$ac_dir" && ac_dir=. 4112 tmp_nm="$ac_dir/$lt_tmp_nm" 4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4114 # Check to see if the nm accepts a BSD-compat flag. 4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4116 # nm: unknown option "B" ignored 4117 # Tru64's nm complains that /dev/null is an invalid object file 4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4119 */dev/null* | *'Invalid file or object type'*) 4120 lt_cv_path_NM="$tmp_nm -B" 4121 break 4122 ;; 4123 *) 4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4125 */dev/null*) 4126 lt_cv_path_NM="$tmp_nm -p" 4127 break 4128 ;; 4129 *) 4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4131 continue # so that we can try to find one that supports BSD flags 4132 ;; 4133 esac 4134 ;; 4135 esac 4136 fi 4137 done 4138 IFS="$lt_save_ifs" 4139 done 4140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4141fi 4142fi 4143{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4144echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4145NM="$lt_cv_path_NM" 4146 4147{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4148echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4149LN_S=$as_ln_s 4150if test "$LN_S" = "ln -s"; then 4151 { echo "$as_me:$LINENO: result: yes" >&5 4152echo "${ECHO_T}yes" >&6; } 4153else 4154 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4155echo "${ECHO_T}no, using $LN_S" >&6; } 4156fi 4157 4158{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4159echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4160if test "${lt_cv_deplibs_check_method+set}" = set; then 4161 echo $ECHO_N "(cached) $ECHO_C" >&6 4162else 4163 lt_cv_file_magic_cmd='$MAGIC_CMD' 4164lt_cv_file_magic_test_file= 4165lt_cv_deplibs_check_method='unknown' 4166# Need to set the preceding variable on all platforms that support 4167# interlibrary dependencies. 4168# 'none' -- dependencies not supported. 4169# `unknown' -- same as none, but documents that we really don't know. 4170# 'pass_all' -- all dependencies passed with no checks. 4171# 'test_compile' -- check by making test program. 4172# 'file_magic [[regex]]' -- check by looking for files in library path 4173# which responds to the $file_magic_cmd with a given extended regex. 4174# If you have `file' or equivalent on your system and you're not sure 4175# whether `pass_all' will *always* work, you probably want this one. 4176 4177case $host_os in 4178aix4* | aix5*) 4179 lt_cv_deplibs_check_method=pass_all 4180 ;; 4181 4182beos*) 4183 lt_cv_deplibs_check_method=pass_all 4184 ;; 4185 4186bsdi[45]*) 4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4188 lt_cv_file_magic_cmd='/usr/bin/file -L' 4189 lt_cv_file_magic_test_file=/shlib/libc.so 4190 ;; 4191 4192cygwin*) 4193 # func_win32_libid is a shell function defined in ltmain.sh 4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4195 lt_cv_file_magic_cmd='func_win32_libid' 4196 ;; 4197 4198mingw* | pw32*) 4199 # Base MSYS/MinGW do not provide the 'file' command needed by 4200 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4201 # unless we find 'file', for example because we are cross-compiling. 4202 if ( file / ) >/dev/null 2>&1; then 4203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4204 lt_cv_file_magic_cmd='func_win32_libid' 4205 else 4206 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4207 lt_cv_file_magic_cmd='$OBJDUMP -f' 4208 fi 4209 ;; 4210 4211darwin* | rhapsody*) 4212 lt_cv_deplibs_check_method=pass_all 4213 ;; 4214 4215freebsd* | dragonfly*) 4216 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4217 case $host_cpu in 4218 i*86 ) 4219 # Not sure whether the presence of OpenBSD here was a mistake. 4220 # Let's accept both of them until this is cleared up. 4221 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4222 lt_cv_file_magic_cmd=/usr/bin/file 4223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4224 ;; 4225 esac 4226 else 4227 lt_cv_deplibs_check_method=pass_all 4228 fi 4229 ;; 4230 4231gnu*) 4232 lt_cv_deplibs_check_method=pass_all 4233 ;; 4234 4235hpux10.20* | hpux11*) 4236 lt_cv_file_magic_cmd=/usr/bin/file 4237 case $host_cpu in 4238 ia64*) 4239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4240 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4241 ;; 4242 hppa*64*) 4243 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]' 4244 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4245 ;; 4246 *) 4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4248 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4249 ;; 4250 esac 4251 ;; 4252 4253interix[3-9]*) 4254 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4256 ;; 4257 4258irix5* | irix6* | nonstopux*) 4259 case $LD in 4260 *-32|*"-32 ") libmagic=32-bit;; 4261 *-n32|*"-n32 ") libmagic=N32;; 4262 *-64|*"-64 ") libmagic=64-bit;; 4263 *) libmagic=never-match;; 4264 esac 4265 lt_cv_deplibs_check_method=pass_all 4266 ;; 4267 4268# This must be Linux ELF. 4269linux* | k*bsd*-gnu) 4270 lt_cv_deplibs_check_method=pass_all 4271 ;; 4272 4273netbsd*) 4274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4276 else 4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4278 fi 4279 ;; 4280 4281newos6*) 4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4283 lt_cv_file_magic_cmd=/usr/bin/file 4284 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4285 ;; 4286 4287nto-qnx*) 4288 lt_cv_deplibs_check_method=unknown 4289 ;; 4290 4291openbsd*) 4292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4294 else 4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4296 fi 4297 ;; 4298 4299osf3* | osf4* | osf5*) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 4303rdos*) 4304 lt_cv_deplibs_check_method=pass_all 4305 ;; 4306 4307solaris*) 4308 lt_cv_deplibs_check_method=pass_all 4309 ;; 4310 4311sysv4 | sysv4.3*) 4312 case $host_vendor in 4313 motorola) 4314 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]' 4315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4316 ;; 4317 ncr) 4318 lt_cv_deplibs_check_method=pass_all 4319 ;; 4320 sequent) 4321 lt_cv_file_magic_cmd='/bin/file' 4322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4323 ;; 4324 sni) 4325 lt_cv_file_magic_cmd='/bin/file' 4326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4327 lt_cv_file_magic_test_file=/lib/libc.so 4328 ;; 4329 siemens) 4330 lt_cv_deplibs_check_method=pass_all 4331 ;; 4332 pc) 4333 lt_cv_deplibs_check_method=pass_all 4334 ;; 4335 esac 4336 ;; 4337 4338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4339 lt_cv_deplibs_check_method=pass_all 4340 ;; 4341esac 4342 4343fi 4344{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4345echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4346file_magic_cmd=$lt_cv_file_magic_cmd 4347deplibs_check_method=$lt_cv_deplibs_check_method 4348test -z "$deplibs_check_method" && deplibs_check_method=unknown 4349 4350 4351 4352 4353# If no C compiler was specified, use CC. 4354LTCC=${LTCC-"$CC"} 4355 4356# If no C compiler flags were specified, use CFLAGS. 4357LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4358 4359# Allow CC to be a program name with arguments. 4360compiler=$CC 4361 4362 4363# Check whether --enable-libtool-lock was given. 4364if test "${enable_libtool_lock+set}" = set; then 4365 enableval=$enable_libtool_lock; 4366fi 4367 4368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4369 4370# Some flags need to be propagated to the compiler or linker for good 4371# libtool support. 4372case $host in 4373ia64-*-hpux*) 4374 # Find out which ABI we are using. 4375 echo 'int i;' > conftest.$ac_ext 4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4377 (eval $ac_compile) 2>&5 4378 ac_status=$? 4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); }; then 4381 case `/usr/bin/file conftest.$ac_objext` in 4382 *ELF-32*) 4383 HPUX_IA64_MODE="32" 4384 ;; 4385 *ELF-64*) 4386 HPUX_IA64_MODE="64" 4387 ;; 4388 esac 4389 fi 4390 rm -rf conftest* 4391 ;; 4392*-*-irix6*) 4393 # Find out which ABI we are using. 4394 echo '#line 4394 "configure"' > conftest.$ac_ext 4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4396 (eval $ac_compile) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; then 4400 if test "$lt_cv_prog_gnu_ld" = yes; then 4401 case `/usr/bin/file conftest.$ac_objext` in 4402 *32-bit*) 4403 LD="${LD-ld} -melf32bsmip" 4404 ;; 4405 *N32*) 4406 LD="${LD-ld} -melf32bmipn32" 4407 ;; 4408 *64-bit*) 4409 LD="${LD-ld} -melf64bmip" 4410 ;; 4411 esac 4412 else 4413 case `/usr/bin/file conftest.$ac_objext` in 4414 *32-bit*) 4415 LD="${LD-ld} -32" 4416 ;; 4417 *N32*) 4418 LD="${LD-ld} -n32" 4419 ;; 4420 *64-bit*) 4421 LD="${LD-ld} -64" 4422 ;; 4423 esac 4424 fi 4425 fi 4426 rm -rf conftest* 4427 ;; 4428 4429x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4430s390*-*linux*|sparc*-*linux*) 4431 # Find out which ABI we are using. 4432 echo 'int i;' > conftest.$ac_ext 4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4434 (eval $ac_compile) 2>&5 4435 ac_status=$? 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); }; then 4438 case `/usr/bin/file conftest.o` in 4439 *32-bit*) 4440 case $host in 4441 x86_64-*kfreebsd*-gnu) 4442 LD="${LD-ld} -m elf_i386_fbsd" 4443 ;; 4444 x86_64-*linux*) 4445 LD="${LD-ld} -m elf_i386" 4446 ;; 4447 ppc64-*linux*|powerpc64-*linux*) 4448 LD="${LD-ld} -m elf32ppclinux" 4449 ;; 4450 s390x-*linux*) 4451 LD="${LD-ld} -m elf_s390" 4452 ;; 4453 sparc64-*linux*) 4454 LD="${LD-ld} -m elf32_sparc" 4455 ;; 4456 esac 4457 ;; 4458 *64-bit*) 4459 libsuff=64 4460 case $host in 4461 x86_64-*kfreebsd*-gnu) 4462 LD="${LD-ld} -m elf_x86_64_fbsd" 4463 ;; 4464 x86_64-*linux*) 4465 LD="${LD-ld} -m elf_x86_64" 4466 ;; 4467 ppc*-*linux*|powerpc*-*linux*) 4468 LD="${LD-ld} -m elf64ppc" 4469 ;; 4470 s390*-*linux*) 4471 LD="${LD-ld} -m elf64_s390" 4472 ;; 4473 sparc*-*linux*) 4474 LD="${LD-ld} -m elf64_sparc" 4475 ;; 4476 esac 4477 ;; 4478 esac 4479 fi 4480 rm -rf conftest* 4481 ;; 4482 4483*-*-sco3.2v5*) 4484 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4485 SAVE_CFLAGS="$CFLAGS" 4486 CFLAGS="$CFLAGS -belf" 4487 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4488echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4489if test "${lt_cv_cc_needs_belf+set}" = set; then 4490 echo $ECHO_N "(cached) $ECHO_C" >&6 4491else 4492 ac_ext=c 4493ac_cpp='$CPP $CPPFLAGS' 4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4496ac_compiler_gnu=$ac_cv_c_compiler_gnu 4497 4498 cat >conftest.$ac_ext <<_ACEOF 4499/* confdefs.h. */ 4500_ACEOF 4501cat confdefs.h >>conftest.$ac_ext 4502cat >>conftest.$ac_ext <<_ACEOF 4503/* end confdefs.h. */ 4504 4505int 4506main () 4507{ 4508 4509 ; 4510 return 0; 4511} 4512_ACEOF 4513rm -f conftest.$ac_objext conftest$ac_exeext 4514if { (ac_try="$ac_link" 4515case "(($ac_try" in 4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4517 *) ac_try_echo=$ac_try;; 4518esac 4519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4520 (eval "$ac_link") 2>conftest.er1 4521 ac_status=$? 4522 grep -v '^ *+' conftest.er1 >conftest.err 4523 rm -f conftest.er1 4524 cat conftest.err >&5 4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 (exit $ac_status); } && { 4527 test -z "$ac_c_werror_flag" || 4528 test ! -s conftest.err 4529 } && test -s conftest$ac_exeext && 4530 $as_test_x conftest$ac_exeext; then 4531 lt_cv_cc_needs_belf=yes 4532else 4533 echo "$as_me: failed program was:" >&5 4534sed 's/^/| /' conftest.$ac_ext >&5 4535 4536 lt_cv_cc_needs_belf=no 4537fi 4538 4539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4540 conftest$ac_exeext conftest.$ac_ext 4541 ac_ext=c 4542ac_cpp='$CPP $CPPFLAGS' 4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546 4547fi 4548{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4549echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4550 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4552 CFLAGS="$SAVE_CFLAGS" 4553 fi 4554 ;; 4555sparc*-*solaris*) 4556 # Find out which ABI we are using. 4557 echo 'int i;' > conftest.$ac_ext 4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4559 (eval $ac_compile) 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); }; then 4563 case `/usr/bin/file conftest.o` in 4564 *64-bit*) 4565 case $lt_cv_prog_gnu_ld in 4566 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4567 *) LD="${LD-ld} -64" ;; 4568 esac 4569 ;; 4570 esac 4571 fi 4572 rm -rf conftest* 4573 ;; 4574 4575 4576esac 4577 4578need_locks="$enable_libtool_lock" 4579 4580 4581ac_ext=c 4582ac_cpp='$CPP $CPPFLAGS' 4583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4585ac_compiler_gnu=$ac_cv_c_compiler_gnu 4586{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4587echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4588# On Suns, sometimes $CPP names a directory. 4589if test -n "$CPP" && test -d "$CPP"; then 4590 CPP= 4591fi 4592if test -z "$CPP"; then 4593 if test "${ac_cv_prog_CPP+set}" = set; then 4594 echo $ECHO_N "(cached) $ECHO_C" >&6 4595else 4596 # Double quotes because CPP needs to be expanded 4597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4598 do 4599 ac_preproc_ok=false 4600for ac_c_preproc_warn_flag in '' yes 4601do 4602 # Use a header file that comes with gcc, so configuring glibc 4603 # with a fresh cross-compiler works. 4604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4605 # <limits.h> exists even on freestanding compilers. 4606 # On the NeXT, cc -E runs the code through the compiler's parser, 4607 # not just through cpp. "Syntax error" is here to catch this case. 4608 cat >conftest.$ac_ext <<_ACEOF 4609/* confdefs.h. */ 4610_ACEOF 4611cat confdefs.h >>conftest.$ac_ext 4612cat >>conftest.$ac_ext <<_ACEOF 4613/* end confdefs.h. */ 4614#ifdef __STDC__ 4615# include <limits.h> 4616#else 4617# include <assert.h> 4618#endif 4619 Syntax error 4620_ACEOF 4621if { (ac_try="$ac_cpp conftest.$ac_ext" 4622case "(($ac_try" in 4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4624 *) ac_try_echo=$ac_try;; 4625esac 4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4628 ac_status=$? 4629 grep -v '^ *+' conftest.er1 >conftest.err 4630 rm -f conftest.er1 4631 cat conftest.err >&5 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } >/dev/null && { 4634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4635 test ! -s conftest.err 4636 }; then 4637 : 4638else 4639 echo "$as_me: failed program was:" >&5 4640sed 's/^/| /' conftest.$ac_ext >&5 4641 4642 # Broken: fails on valid input. 4643continue 4644fi 4645 4646rm -f conftest.err conftest.$ac_ext 4647 4648 # OK, works on sane cases. Now check whether nonexistent headers 4649 # can be detected and how. 4650 cat >conftest.$ac_ext <<_ACEOF 4651/* confdefs.h. */ 4652_ACEOF 4653cat confdefs.h >>conftest.$ac_ext 4654cat >>conftest.$ac_ext <<_ACEOF 4655/* end confdefs.h. */ 4656#include <ac_nonexistent.h> 4657_ACEOF 4658if { (ac_try="$ac_cpp conftest.$ac_ext" 4659case "(($ac_try" in 4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4661 *) ac_try_echo=$ac_try;; 4662esac 4663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4665 ac_status=$? 4666 grep -v '^ *+' conftest.er1 >conftest.err 4667 rm -f conftest.er1 4668 cat conftest.err >&5 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); } >/dev/null && { 4671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4672 test ! -s conftest.err 4673 }; then 4674 # Broken: success on invalid input. 4675continue 4676else 4677 echo "$as_me: failed program was:" >&5 4678sed 's/^/| /' conftest.$ac_ext >&5 4679 4680 # Passes both tests. 4681ac_preproc_ok=: 4682break 4683fi 4684 4685rm -f conftest.err conftest.$ac_ext 4686 4687done 4688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4689rm -f conftest.err conftest.$ac_ext 4690if $ac_preproc_ok; then 4691 break 4692fi 4693 4694 done 4695 ac_cv_prog_CPP=$CPP 4696 4697fi 4698 CPP=$ac_cv_prog_CPP 4699else 4700 ac_cv_prog_CPP=$CPP 4701fi 4702{ echo "$as_me:$LINENO: result: $CPP" >&5 4703echo "${ECHO_T}$CPP" >&6; } 4704ac_preproc_ok=false 4705for ac_c_preproc_warn_flag in '' yes 4706do 4707 # Use a header file that comes with gcc, so configuring glibc 4708 # with a fresh cross-compiler works. 4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4710 # <limits.h> exists even on freestanding compilers. 4711 # On the NeXT, cc -E runs the code through the compiler's parser, 4712 # not just through cpp. "Syntax error" is here to catch this case. 4713 cat >conftest.$ac_ext <<_ACEOF 4714/* confdefs.h. */ 4715_ACEOF 4716cat confdefs.h >>conftest.$ac_ext 4717cat >>conftest.$ac_ext <<_ACEOF 4718/* end confdefs.h. */ 4719#ifdef __STDC__ 4720# include <limits.h> 4721#else 4722# include <assert.h> 4723#endif 4724 Syntax error 4725_ACEOF 4726if { (ac_try="$ac_cpp conftest.$ac_ext" 4727case "(($ac_try" in 4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4729 *) ac_try_echo=$ac_try;; 4730esac 4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4733 ac_status=$? 4734 grep -v '^ *+' conftest.er1 >conftest.err 4735 rm -f conftest.er1 4736 cat conftest.err >&5 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); } >/dev/null && { 4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4740 test ! -s conftest.err 4741 }; then 4742 : 4743else 4744 echo "$as_me: failed program was:" >&5 4745sed 's/^/| /' conftest.$ac_ext >&5 4746 4747 # Broken: fails on valid input. 4748continue 4749fi 4750 4751rm -f conftest.err conftest.$ac_ext 4752 4753 # OK, works on sane cases. Now check whether nonexistent headers 4754 # can be detected and how. 4755 cat >conftest.$ac_ext <<_ACEOF 4756/* confdefs.h. */ 4757_ACEOF 4758cat confdefs.h >>conftest.$ac_ext 4759cat >>conftest.$ac_ext <<_ACEOF 4760/* end confdefs.h. */ 4761#include <ac_nonexistent.h> 4762_ACEOF 4763if { (ac_try="$ac_cpp conftest.$ac_ext" 4764case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767esac 4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4770 ac_status=$? 4771 grep -v '^ *+' conftest.er1 >conftest.err 4772 rm -f conftest.er1 4773 cat conftest.err >&5 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); } >/dev/null && { 4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4777 test ! -s conftest.err 4778 }; then 4779 # Broken: success on invalid input. 4780continue 4781else 4782 echo "$as_me: failed program was:" >&5 4783sed 's/^/| /' conftest.$ac_ext >&5 4784 4785 # Passes both tests. 4786ac_preproc_ok=: 4787break 4788fi 4789 4790rm -f conftest.err conftest.$ac_ext 4791 4792done 4793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4794rm -f conftest.err conftest.$ac_ext 4795if $ac_preproc_ok; then 4796 : 4797else 4798 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4799See \`config.log' for more details." >&5 4800echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4801See \`config.log' for more details." >&2;} 4802 { (exit 1); exit 1; }; } 4803fi 4804 4805ac_ext=c 4806ac_cpp='$CPP $CPPFLAGS' 4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4809ac_compiler_gnu=$ac_cv_c_compiler_gnu 4810 4811 4812{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4813echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4814if test "${ac_cv_header_stdc+set}" = set; then 4815 echo $ECHO_N "(cached) $ECHO_C" >&6 4816else 4817 cat >conftest.$ac_ext <<_ACEOF 4818/* confdefs.h. */ 4819_ACEOF 4820cat confdefs.h >>conftest.$ac_ext 4821cat >>conftest.$ac_ext <<_ACEOF 4822/* end confdefs.h. */ 4823#include <stdlib.h> 4824#include <stdarg.h> 4825#include <string.h> 4826#include <float.h> 4827 4828int 4829main () 4830{ 4831 4832 ; 4833 return 0; 4834} 4835_ACEOF 4836rm -f conftest.$ac_objext 4837if { (ac_try="$ac_compile" 4838case "(($ac_try" in 4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4840 *) ac_try_echo=$ac_try;; 4841esac 4842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4843 (eval "$ac_compile") 2>conftest.er1 4844 ac_status=$? 4845 grep -v '^ *+' conftest.er1 >conftest.err 4846 rm -f conftest.er1 4847 cat conftest.err >&5 4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4849 (exit $ac_status); } && { 4850 test -z "$ac_c_werror_flag" || 4851 test ! -s conftest.err 4852 } && test -s conftest.$ac_objext; then 4853 ac_cv_header_stdc=yes 4854else 4855 echo "$as_me: failed program was:" >&5 4856sed 's/^/| /' conftest.$ac_ext >&5 4857 4858 ac_cv_header_stdc=no 4859fi 4860 4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4862 4863if test $ac_cv_header_stdc = yes; then 4864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4865 cat >conftest.$ac_ext <<_ACEOF 4866/* confdefs.h. */ 4867_ACEOF 4868cat confdefs.h >>conftest.$ac_ext 4869cat >>conftest.$ac_ext <<_ACEOF 4870/* end confdefs.h. */ 4871#include <string.h> 4872 4873_ACEOF 4874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4875 $EGREP "memchr" >/dev/null 2>&1; then 4876 : 4877else 4878 ac_cv_header_stdc=no 4879fi 4880rm -f conftest* 4881 4882fi 4883 4884if test $ac_cv_header_stdc = yes; then 4885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4886 cat >conftest.$ac_ext <<_ACEOF 4887/* confdefs.h. */ 4888_ACEOF 4889cat confdefs.h >>conftest.$ac_ext 4890cat >>conftest.$ac_ext <<_ACEOF 4891/* end confdefs.h. */ 4892#include <stdlib.h> 4893 4894_ACEOF 4895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4896 $EGREP "free" >/dev/null 2>&1; then 4897 : 4898else 4899 ac_cv_header_stdc=no 4900fi 4901rm -f conftest* 4902 4903fi 4904 4905if test $ac_cv_header_stdc = yes; then 4906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4907 if test "$cross_compiling" = yes; then 4908 : 4909else 4910 cat >conftest.$ac_ext <<_ACEOF 4911/* confdefs.h. */ 4912_ACEOF 4913cat confdefs.h >>conftest.$ac_ext 4914cat >>conftest.$ac_ext <<_ACEOF 4915/* end confdefs.h. */ 4916#include <ctype.h> 4917#include <stdlib.h> 4918#if ((' ' & 0x0FF) == 0x020) 4919# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4920# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4921#else 4922# define ISLOWER(c) \ 4923 (('a' <= (c) && (c) <= 'i') \ 4924 || ('j' <= (c) && (c) <= 'r') \ 4925 || ('s' <= (c) && (c) <= 'z')) 4926# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4927#endif 4928 4929#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4930int 4931main () 4932{ 4933 int i; 4934 for (i = 0; i < 256; i++) 4935 if (XOR (islower (i), ISLOWER (i)) 4936 || toupper (i) != TOUPPER (i)) 4937 return 2; 4938 return 0; 4939} 4940_ACEOF 4941rm -f conftest$ac_exeext 4942if { (ac_try="$ac_link" 4943case "(($ac_try" in 4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4945 *) ac_try_echo=$ac_try;; 4946esac 4947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4948 (eval "$ac_link") 2>&5 4949 ac_status=$? 4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4952 { (case "(($ac_try" in 4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4954 *) ac_try_echo=$ac_try;; 4955esac 4956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4957 (eval "$ac_try") 2>&5 4958 ac_status=$? 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); }; }; then 4961 : 4962else 4963 echo "$as_me: program exited with status $ac_status" >&5 4964echo "$as_me: failed program was:" >&5 4965sed 's/^/| /' conftest.$ac_ext >&5 4966 4967( exit $ac_status ) 4968ac_cv_header_stdc=no 4969fi 4970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4971fi 4972 4973 4974fi 4975fi 4976{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4977echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4978if test $ac_cv_header_stdc = yes; then 4979 4980cat >>confdefs.h <<\_ACEOF 4981#define STDC_HEADERS 1 4982_ACEOF 4983 4984fi 4985 4986# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4997 inttypes.h stdint.h unistd.h 4998do 4999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5000{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5003 echo $ECHO_N "(cached) $ECHO_C" >&6 5004else 5005 cat >conftest.$ac_ext <<_ACEOF 5006/* confdefs.h. */ 5007_ACEOF 5008cat confdefs.h >>conftest.$ac_ext 5009cat >>conftest.$ac_ext <<_ACEOF 5010/* end confdefs.h. */ 5011$ac_includes_default 5012 5013#include <$ac_header> 5014_ACEOF 5015rm -f conftest.$ac_objext 5016if { (ac_try="$ac_compile" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_compile") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && { 5029 test -z "$ac_c_werror_flag" || 5030 test ! -s conftest.err 5031 } && test -s conftest.$ac_objext; then 5032 eval "$as_ac_Header=yes" 5033else 5034 echo "$as_me: failed program was:" >&5 5035sed 's/^/| /' conftest.$ac_ext >&5 5036 5037 eval "$as_ac_Header=no" 5038fi 5039 5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5041fi 5042ac_res=`eval echo '${'$as_ac_Header'}'` 5043 { echo "$as_me:$LINENO: result: $ac_res" >&5 5044echo "${ECHO_T}$ac_res" >&6; } 5045if test `eval echo '${'$as_ac_Header'}'` = yes; then 5046 cat >>confdefs.h <<_ACEOF 5047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5048_ACEOF 5049 5050fi 5051 5052done 5053 5054 5055 5056for ac_header in dlfcn.h 5057do 5058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5060 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 5064fi 5065ac_res=`eval echo '${'$as_ac_Header'}'` 5066 { echo "$as_me:$LINENO: result: $ac_res" >&5 5067echo "${ECHO_T}$ac_res" >&6; } 5068else 5069 # Is the header compilable? 5070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5072cat >conftest.$ac_ext <<_ACEOF 5073/* confdefs.h. */ 5074_ACEOF 5075cat confdefs.h >>conftest.$ac_ext 5076cat >>conftest.$ac_ext <<_ACEOF 5077/* end confdefs.h. */ 5078$ac_includes_default 5079#include <$ac_header> 5080_ACEOF 5081rm -f conftest.$ac_objext 5082if { (ac_try="$ac_compile" 5083case "(($ac_try" in 5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5085 *) ac_try_echo=$ac_try;; 5086esac 5087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5088 (eval "$ac_compile") 2>conftest.er1 5089 ac_status=$? 5090 grep -v '^ *+' conftest.er1 >conftest.err 5091 rm -f conftest.er1 5092 cat conftest.err >&5 5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); } && { 5095 test -z "$ac_c_werror_flag" || 5096 test ! -s conftest.err 5097 } && test -s conftest.$ac_objext; then 5098 ac_header_compiler=yes 5099else 5100 echo "$as_me: failed program was:" >&5 5101sed 's/^/| /' conftest.$ac_ext >&5 5102 5103 ac_header_compiler=no 5104fi 5105 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5108echo "${ECHO_T}$ac_header_compiler" >&6; } 5109 5110# Is the header present? 5111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5113cat >conftest.$ac_ext <<_ACEOF 5114/* confdefs.h. */ 5115_ACEOF 5116cat confdefs.h >>conftest.$ac_ext 5117cat >>conftest.$ac_ext <<_ACEOF 5118/* end confdefs.h. */ 5119#include <$ac_header> 5120_ACEOF 5121if { (ac_try="$ac_cpp conftest.$ac_ext" 5122case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5128 ac_status=$? 5129 grep -v '^ *+' conftest.er1 >conftest.err 5130 rm -f conftest.er1 5131 cat conftest.err >&5 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } >/dev/null && { 5134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5135 test ! -s conftest.err 5136 }; then 5137 ac_header_preproc=yes 5138else 5139 echo "$as_me: failed program was:" >&5 5140sed 's/^/| /' conftest.$ac_ext >&5 5141 5142 ac_header_preproc=no 5143fi 5144 5145rm -f conftest.err conftest.$ac_ext 5146{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5147echo "${ECHO_T}$ac_header_preproc" >&6; } 5148 5149# So? What about this header? 5150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5151 yes:no: ) 5152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5156 ac_header_preproc=yes 5157 ;; 5158 no:yes:* ) 5159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5171 ( cat <<\_ASBOX 5172## ---------------------------------------------------------------------- ## 5173## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5174## ---------------------------------------------------------------------- ## 5175_ASBOX 5176 ) | sed "s/^/$as_me: WARNING: /" >&2 5177 ;; 5178esac 5179{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5182 echo $ECHO_N "(cached) $ECHO_C" >&6 5183else 5184 eval "$as_ac_Header=\$ac_header_preproc" 5185fi 5186ac_res=`eval echo '${'$as_ac_Header'}'` 5187 { echo "$as_me:$LINENO: result: $ac_res" >&5 5188echo "${ECHO_T}$ac_res" >&6; } 5189 5190fi 5191if test `eval echo '${'$as_ac_Header'}'` = yes; then 5192 cat >>confdefs.h <<_ACEOF 5193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5194_ACEOF 5195 5196fi 5197 5198done 5199 5200ac_ext=cpp 5201ac_cpp='$CXXCPP $CPPFLAGS' 5202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5205if test -z "$CXX"; then 5206 if test -n "$CCC"; then 5207 CXX=$CCC 5208 else 5209 if test -n "$ac_tool_prefix"; then 5210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5211 do 5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5213set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5216if test "${ac_cv_prog_CXX+set}" = set; then 5217 echo $ECHO_N "(cached) $ECHO_C" >&6 5218else 5219 if test -n "$CXX"; then 5220 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239CXX=$ac_cv_prog_CXX 5240if test -n "$CXX"; then 5241 { echo "$as_me:$LINENO: result: $CXX" >&5 5242echo "${ECHO_T}$CXX" >&6; } 5243else 5244 { echo "$as_me:$LINENO: result: no" >&5 5245echo "${ECHO_T}no" >&6; } 5246fi 5247 5248 5249 test -n "$CXX" && break 5250 done 5251fi 5252if test -z "$CXX"; then 5253 ac_ct_CXX=$CXX 5254 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5255do 5256 # Extract the first word of "$ac_prog", so it can be a program name with args. 5257set dummy $ac_prog; ac_word=$2 5258{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5260if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262else 5263 if test -n "$ac_ct_CXX"; then 5264 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5265else 5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH 5268do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5273 ac_cv_prog_ac_ct_CXX="$ac_prog" 5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277done 5278done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5284if test -n "$ac_ct_CXX"; then 5285 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5286echo "${ECHO_T}$ac_ct_CXX" >&6; } 5287else 5288 { echo "$as_me:$LINENO: result: no" >&5 5289echo "${ECHO_T}no" >&6; } 5290fi 5291 5292 5293 test -n "$ac_ct_CXX" && break 5294done 5295 5296 if test "x$ac_ct_CXX" = x; then 5297 CXX="g++" 5298 else 5299 case $cross_compiling:$ac_tool_warned in 5300yes:) 5301{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5302whose name does not start with the host triplet. If you think this 5303configuration is useful to you, please write to autoconf@gnu.org." >&5 5304echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5305whose name does not start with the host triplet. If you think this 5306configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5307ac_tool_warned=yes ;; 5308esac 5309 CXX=$ac_ct_CXX 5310 fi 5311fi 5312 5313 fi 5314fi 5315# Provide some information about the compiler. 5316echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5317ac_compiler=`set X $ac_compile; echo $2` 5318{ (ac_try="$ac_compiler --version >&5" 5319case "(($ac_try" in 5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5321 *) ac_try_echo=$ac_try;; 5322esac 5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5324 (eval "$ac_compiler --version >&5") 2>&5 5325 ac_status=$? 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5327 (exit $ac_status); } 5328{ (ac_try="$ac_compiler -v >&5" 5329case "(($ac_try" in 5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5331 *) ac_try_echo=$ac_try;; 5332esac 5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5334 (eval "$ac_compiler -v >&5") 2>&5 5335 ac_status=$? 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); } 5338{ (ac_try="$ac_compiler -V >&5" 5339case "(($ac_try" in 5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5341 *) ac_try_echo=$ac_try;; 5342esac 5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5344 (eval "$ac_compiler -V >&5") 2>&5 5345 ac_status=$? 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } 5348 5349{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5350echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5351if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5352 echo $ECHO_N "(cached) $ECHO_C" >&6 5353else 5354 cat >conftest.$ac_ext <<_ACEOF 5355/* confdefs.h. */ 5356_ACEOF 5357cat confdefs.h >>conftest.$ac_ext 5358cat >>conftest.$ac_ext <<_ACEOF 5359/* end confdefs.h. */ 5360 5361int 5362main () 5363{ 5364#ifndef __GNUC__ 5365 choke me 5366#endif 5367 5368 ; 5369 return 0; 5370} 5371_ACEOF 5372rm -f conftest.$ac_objext 5373if { (ac_try="$ac_compile" 5374case "(($ac_try" in 5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5376 *) ac_try_echo=$ac_try;; 5377esac 5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5379 (eval "$ac_compile") 2>conftest.er1 5380 ac_status=$? 5381 grep -v '^ *+' conftest.er1 >conftest.err 5382 rm -f conftest.er1 5383 cat conftest.err >&5 5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5385 (exit $ac_status); } && { 5386 test -z "$ac_cxx_werror_flag" || 5387 test ! -s conftest.err 5388 } && test -s conftest.$ac_objext; then 5389 ac_compiler_gnu=yes 5390else 5391 echo "$as_me: failed program was:" >&5 5392sed 's/^/| /' conftest.$ac_ext >&5 5393 5394 ac_compiler_gnu=no 5395fi 5396 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5399 5400fi 5401{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5402echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5403GXX=`test $ac_compiler_gnu = yes && echo yes` 5404ac_test_CXXFLAGS=${CXXFLAGS+set} 5405ac_save_CXXFLAGS=$CXXFLAGS 5406{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5407echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5408if test "${ac_cv_prog_cxx_g+set}" = set; then 5409 echo $ECHO_N "(cached) $ECHO_C" >&6 5410else 5411 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5412 ac_cxx_werror_flag=yes 5413 ac_cv_prog_cxx_g=no 5414 CXXFLAGS="-g" 5415 cat >conftest.$ac_ext <<_ACEOF 5416/* confdefs.h. */ 5417_ACEOF 5418cat confdefs.h >>conftest.$ac_ext 5419cat >>conftest.$ac_ext <<_ACEOF 5420/* end confdefs.h. */ 5421 5422int 5423main () 5424{ 5425 5426 ; 5427 return 0; 5428} 5429_ACEOF 5430rm -f conftest.$ac_objext 5431if { (ac_try="$ac_compile" 5432case "(($ac_try" in 5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5434 *) ac_try_echo=$ac_try;; 5435esac 5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5437 (eval "$ac_compile") 2>conftest.er1 5438 ac_status=$? 5439 grep -v '^ *+' conftest.er1 >conftest.err 5440 rm -f conftest.er1 5441 cat conftest.err >&5 5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); } && { 5444 test -z "$ac_cxx_werror_flag" || 5445 test ! -s conftest.err 5446 } && test -s conftest.$ac_objext; then 5447 ac_cv_prog_cxx_g=yes 5448else 5449 echo "$as_me: failed program was:" >&5 5450sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 CXXFLAGS="" 5453 cat >conftest.$ac_ext <<_ACEOF 5454/* confdefs.h. */ 5455_ACEOF 5456cat confdefs.h >>conftest.$ac_ext 5457cat >>conftest.$ac_ext <<_ACEOF 5458/* end confdefs.h. */ 5459 5460int 5461main () 5462{ 5463 5464 ; 5465 return 0; 5466} 5467_ACEOF 5468rm -f conftest.$ac_objext 5469if { (ac_try="$ac_compile" 5470case "(($ac_try" in 5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5472 *) ac_try_echo=$ac_try;; 5473esac 5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5475 (eval "$ac_compile") 2>conftest.er1 5476 ac_status=$? 5477 grep -v '^ *+' conftest.er1 >conftest.err 5478 rm -f conftest.er1 5479 cat conftest.err >&5 5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5481 (exit $ac_status); } && { 5482 test -z "$ac_cxx_werror_flag" || 5483 test ! -s conftest.err 5484 } && test -s conftest.$ac_objext; then 5485 : 5486else 5487 echo "$as_me: failed program was:" >&5 5488sed 's/^/| /' conftest.$ac_ext >&5 5489 5490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5491 CXXFLAGS="-g" 5492 cat >conftest.$ac_ext <<_ACEOF 5493/* confdefs.h. */ 5494_ACEOF 5495cat confdefs.h >>conftest.$ac_ext 5496cat >>conftest.$ac_ext <<_ACEOF 5497/* end confdefs.h. */ 5498 5499int 5500main () 5501{ 5502 5503 ; 5504 return 0; 5505} 5506_ACEOF 5507rm -f conftest.$ac_objext 5508if { (ac_try="$ac_compile" 5509case "(($ac_try" in 5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5511 *) ac_try_echo=$ac_try;; 5512esac 5513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5514 (eval "$ac_compile") 2>conftest.er1 5515 ac_status=$? 5516 grep -v '^ *+' conftest.er1 >conftest.err 5517 rm -f conftest.er1 5518 cat conftest.err >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5520 (exit $ac_status); } && { 5521 test -z "$ac_cxx_werror_flag" || 5522 test ! -s conftest.err 5523 } && test -s conftest.$ac_objext; then 5524 ac_cv_prog_cxx_g=yes 5525else 5526 echo "$as_me: failed program was:" >&5 5527sed 's/^/| /' conftest.$ac_ext >&5 5528 5529 5530fi 5531 5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5533fi 5534 5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5536fi 5537 5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5542echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5543if test "$ac_test_CXXFLAGS" = set; then 5544 CXXFLAGS=$ac_save_CXXFLAGS 5545elif test $ac_cv_prog_cxx_g = yes; then 5546 if test "$GXX" = yes; then 5547 CXXFLAGS="-g -O2" 5548 else 5549 CXXFLAGS="-g" 5550 fi 5551else 5552 if test "$GXX" = yes; then 5553 CXXFLAGS="-O2" 5554 else 5555 CXXFLAGS= 5556 fi 5557fi 5558ac_ext=cpp 5559ac_cpp='$CXXCPP $CPPFLAGS' 5560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5563 5564depcc="$CXX" am_compiler_list= 5565 5566{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5567echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5568if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570else 5571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5572 # We make a subdir and do the tests there. Otherwise we can end up 5573 # making bogus files that we don't know about and never remove. For 5574 # instance it was reported that on HP-UX the gcc test will end up 5575 # making a dummy file named `D' -- because `-MD' means `put the output 5576 # in D'. 5577 mkdir conftest.dir 5578 # Copy depcomp to subdir because otherwise we won't find it if we're 5579 # using a relative directory. 5580 cp "$am_depcomp" conftest.dir 5581 cd conftest.dir 5582 # We will build objects and dependencies in a subdirectory because 5583 # it helps to detect inapplicable dependency modes. For instance 5584 # both Tru64's cc and ICC support -MD to output dependencies as a 5585 # side effect of compilation, but ICC will put the dependencies in 5586 # the current directory while Tru64 will put them in the object 5587 # directory. 5588 mkdir sub 5589 5590 am_cv_CXX_dependencies_compiler_type=none 5591 if test "$am_compiler_list" = ""; then 5592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5593 fi 5594 for depmode in $am_compiler_list; do 5595 # Setup a source with many dependencies, because some compilers 5596 # like to wrap large dependency lists on column 80 (with \), and 5597 # we should not choose a depcomp mode which is confused by this. 5598 # 5599 # We need to recreate these files for each test, as the compiler may 5600 # overwrite some of them when testing with obscure command lines. 5601 # This happens at least with the AIX C compiler. 5602 : > sub/conftest.c 5603 for i in 1 2 3 4 5 6; do 5604 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5606 # Solaris 8's {/usr,}/bin/sh. 5607 touch sub/conftst$i.h 5608 done 5609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5610 5611 case $depmode in 5612 nosideeffect) 5613 # after this tag, mechanisms are not by side-effect, so they'll 5614 # only be used when explicitly requested 5615 if test "x$enable_dependency_tracking" = xyes; then 5616 continue 5617 else 5618 break 5619 fi 5620 ;; 5621 none) break ;; 5622 esac 5623 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5624 # mode. It turns out that the SunPro C++ compiler does not properly 5625 # handle `-M -o', and we need to detect this. 5626 if depmode=$depmode \ 5627 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5629 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5630 >/dev/null 2>conftest.err && 5631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5635 # icc doesn't choke on unknown options, it will just issue warnings 5636 # or remarks (even with -Werror). So we grep stderr for any message 5637 # that says an option was ignored or not supported. 5638 # When given -MP, icc 7.0 and 7.1 complain thusly: 5639 # icc: Command line warning: ignoring option '-M'; no argument required 5640 # The diagnosis changed in icc 8.0: 5641 # icc: Command line remark: option '-MP' not supported 5642 if (grep 'ignoring option' conftest.err || 5643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5644 am_cv_CXX_dependencies_compiler_type=$depmode 5645 break 5646 fi 5647 fi 5648 done 5649 5650 cd .. 5651 rm -rf conftest.dir 5652else 5653 am_cv_CXX_dependencies_compiler_type=none 5654fi 5655 5656fi 5657{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5658echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5659CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5660 5661 if 5662 test "x$enable_dependency_tracking" != xno \ 5663 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5664 am__fastdepCXX_TRUE= 5665 am__fastdepCXX_FALSE='#' 5666else 5667 am__fastdepCXX_TRUE='#' 5668 am__fastdepCXX_FALSE= 5669fi 5670 5671 5672 5673 5674if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5675 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5676 (test "X$CXX" != "Xg++"))) ; then 5677 ac_ext=cpp 5678ac_cpp='$CXXCPP $CPPFLAGS' 5679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5682{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5683echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5684if test -z "$CXXCPP"; then 5685 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5686 echo $ECHO_N "(cached) $ECHO_C" >&6 5687else 5688 # Double quotes because CXXCPP needs to be expanded 5689 for CXXCPP in "$CXX -E" "/lib/cpp" 5690 do 5691 ac_preproc_ok=false 5692for ac_cxx_preproc_warn_flag in '' yes 5693do 5694 # Use a header file that comes with gcc, so configuring glibc 5695 # with a fresh cross-compiler works. 5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5697 # <limits.h> exists even on freestanding compilers. 5698 # On the NeXT, cc -E runs the code through the compiler's parser, 5699 # not just through cpp. "Syntax error" is here to catch this case. 5700 cat >conftest.$ac_ext <<_ACEOF 5701/* confdefs.h. */ 5702_ACEOF 5703cat confdefs.h >>conftest.$ac_ext 5704cat >>conftest.$ac_ext <<_ACEOF 5705/* end confdefs.h. */ 5706#ifdef __STDC__ 5707# include <limits.h> 5708#else 5709# include <assert.h> 5710#endif 5711 Syntax error 5712_ACEOF 5713if { (ac_try="$ac_cpp conftest.$ac_ext" 5714case "(($ac_try" in 5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5716 *) ac_try_echo=$ac_try;; 5717esac 5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5720 ac_status=$? 5721 grep -v '^ *+' conftest.er1 >conftest.err 5722 rm -f conftest.er1 5723 cat conftest.err >&5 5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5725 (exit $ac_status); } >/dev/null && { 5726 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5727 test ! -s conftest.err 5728 }; then 5729 : 5730else 5731 echo "$as_me: failed program was:" >&5 5732sed 's/^/| /' conftest.$ac_ext >&5 5733 5734 # Broken: fails on valid input. 5735continue 5736fi 5737 5738rm -f conftest.err conftest.$ac_ext 5739 5740 # OK, works on sane cases. Now check whether nonexistent headers 5741 # can be detected and how. 5742 cat >conftest.$ac_ext <<_ACEOF 5743/* confdefs.h. */ 5744_ACEOF 5745cat confdefs.h >>conftest.$ac_ext 5746cat >>conftest.$ac_ext <<_ACEOF 5747/* end confdefs.h. */ 5748#include <ac_nonexistent.h> 5749_ACEOF 5750if { (ac_try="$ac_cpp conftest.$ac_ext" 5751case "(($ac_try" in 5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5753 *) ac_try_echo=$ac_try;; 5754esac 5755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5757 ac_status=$? 5758 grep -v '^ *+' conftest.er1 >conftest.err 5759 rm -f conftest.er1 5760 cat conftest.err >&5 5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); } >/dev/null && { 5763 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5764 test ! -s conftest.err 5765 }; then 5766 # Broken: success on invalid input. 5767continue 5768else 5769 echo "$as_me: failed program was:" >&5 5770sed 's/^/| /' conftest.$ac_ext >&5 5771 5772 # Passes both tests. 5773ac_preproc_ok=: 5774break 5775fi 5776 5777rm -f conftest.err conftest.$ac_ext 5778 5779done 5780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5781rm -f conftest.err conftest.$ac_ext 5782if $ac_preproc_ok; then 5783 break 5784fi 5785 5786 done 5787 ac_cv_prog_CXXCPP=$CXXCPP 5788 5789fi 5790 CXXCPP=$ac_cv_prog_CXXCPP 5791else 5792 ac_cv_prog_CXXCPP=$CXXCPP 5793fi 5794{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5795echo "${ECHO_T}$CXXCPP" >&6; } 5796ac_preproc_ok=false 5797for ac_cxx_preproc_warn_flag in '' yes 5798do 5799 # Use a header file that comes with gcc, so configuring glibc 5800 # with a fresh cross-compiler works. 5801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5802 # <limits.h> exists even on freestanding compilers. 5803 # On the NeXT, cc -E runs the code through the compiler's parser, 5804 # not just through cpp. "Syntax error" is here to catch this case. 5805 cat >conftest.$ac_ext <<_ACEOF 5806/* confdefs.h. */ 5807_ACEOF 5808cat confdefs.h >>conftest.$ac_ext 5809cat >>conftest.$ac_ext <<_ACEOF 5810/* end confdefs.h. */ 5811#ifdef __STDC__ 5812# include <limits.h> 5813#else 5814# include <assert.h> 5815#endif 5816 Syntax error 5817_ACEOF 5818if { (ac_try="$ac_cpp conftest.$ac_ext" 5819case "(($ac_try" in 5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5821 *) ac_try_echo=$ac_try;; 5822esac 5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5825 ac_status=$? 5826 grep -v '^ *+' conftest.er1 >conftest.err 5827 rm -f conftest.er1 5828 cat conftest.err >&5 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5830 (exit $ac_status); } >/dev/null && { 5831 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5832 test ! -s conftest.err 5833 }; then 5834 : 5835else 5836 echo "$as_me: failed program was:" >&5 5837sed 's/^/| /' conftest.$ac_ext >&5 5838 5839 # Broken: fails on valid input. 5840continue 5841fi 5842 5843rm -f conftest.err conftest.$ac_ext 5844 5845 # OK, works on sane cases. Now check whether nonexistent headers 5846 # can be detected and how. 5847 cat >conftest.$ac_ext <<_ACEOF 5848/* confdefs.h. */ 5849_ACEOF 5850cat confdefs.h >>conftest.$ac_ext 5851cat >>conftest.$ac_ext <<_ACEOF 5852/* end confdefs.h. */ 5853#include <ac_nonexistent.h> 5854_ACEOF 5855if { (ac_try="$ac_cpp conftest.$ac_ext" 5856case "(($ac_try" in 5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5858 *) ac_try_echo=$ac_try;; 5859esac 5860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5862 ac_status=$? 5863 grep -v '^ *+' conftest.er1 >conftest.err 5864 rm -f conftest.er1 5865 cat conftest.err >&5 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); } >/dev/null && { 5868 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5869 test ! -s conftest.err 5870 }; then 5871 # Broken: success on invalid input. 5872continue 5873else 5874 echo "$as_me: failed program was:" >&5 5875sed 's/^/| /' conftest.$ac_ext >&5 5876 5877 # Passes both tests. 5878ac_preproc_ok=: 5879break 5880fi 5881 5882rm -f conftest.err conftest.$ac_ext 5883 5884done 5885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5886rm -f conftest.err conftest.$ac_ext 5887if $ac_preproc_ok; then 5888 : 5889else 5890 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5891See \`config.log' for more details." >&5 5892echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5893See \`config.log' for more details." >&2;} 5894 { (exit 1); exit 1; }; } 5895fi 5896 5897ac_ext=cpp 5898ac_cpp='$CXXCPP $CPPFLAGS' 5899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5902 5903fi 5904 5905 5906ac_ext=f 5907ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5908ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5909ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5910if test -n "$ac_tool_prefix"; then 5911 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 5912 do 5913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5914set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5915{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5917if test "${ac_cv_prog_F77+set}" = set; then 5918 echo $ECHO_N "(cached) $ECHO_C" >&6 5919else 5920 if test -n "$F77"; then 5921 ac_cv_prog_F77="$F77" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5930 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940F77=$ac_cv_prog_F77 5941if test -n "$F77"; then 5942 { echo "$as_me:$LINENO: result: $F77" >&5 5943echo "${ECHO_T}$F77" >&6; } 5944else 5945 { echo "$as_me:$LINENO: result: no" >&5 5946echo "${ECHO_T}no" >&6; } 5947fi 5948 5949 5950 test -n "$F77" && break 5951 done 5952fi 5953if test -z "$F77"; then 5954 ac_ct_F77=$F77 5955 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 5956do 5957 # Extract the first word of "$ac_prog", so it can be a program name with args. 5958set dummy $ac_prog; ac_word=$2 5959{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5961if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5962 echo $ECHO_N "(cached) $ECHO_C" >&6 5963else 5964 if test -n "$ac_ct_F77"; then 5965 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5966else 5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5968for as_dir in $PATH 5969do 5970 IFS=$as_save_IFS 5971 test -z "$as_dir" && as_dir=. 5972 for ac_exec_ext in '' $ac_executable_extensions; do 5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5974 ac_cv_prog_ac_ct_F77="$ac_prog" 5975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5976 break 2 5977 fi 5978done 5979done 5980IFS=$as_save_IFS 5981 5982fi 5983fi 5984ac_ct_F77=$ac_cv_prog_ac_ct_F77 5985if test -n "$ac_ct_F77"; then 5986 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5987echo "${ECHO_T}$ac_ct_F77" >&6; } 5988else 5989 { echo "$as_me:$LINENO: result: no" >&5 5990echo "${ECHO_T}no" >&6; } 5991fi 5992 5993 5994 test -n "$ac_ct_F77" && break 5995done 5996 5997 if test "x$ac_ct_F77" = x; then 5998 F77="" 5999 else 6000 case $cross_compiling:$ac_tool_warned in 6001yes:) 6002{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6003whose name does not start with the host triplet. If you think this 6004configuration is useful to you, please write to autoconf@gnu.org." >&5 6005echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6006whose name does not start with the host triplet. If you think this 6007configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6008ac_tool_warned=yes ;; 6009esac 6010 F77=$ac_ct_F77 6011 fi 6012fi 6013 6014 6015# Provide some information about the compiler. 6016echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6017ac_compiler=`set X $ac_compile; echo $2` 6018{ (ac_try="$ac_compiler --version >&5" 6019case "(($ac_try" in 6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6021 *) ac_try_echo=$ac_try;; 6022esac 6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6024 (eval "$ac_compiler --version >&5") 2>&5 6025 ac_status=$? 6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6027 (exit $ac_status); } 6028{ (ac_try="$ac_compiler -v >&5" 6029case "(($ac_try" in 6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6031 *) ac_try_echo=$ac_try;; 6032esac 6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6034 (eval "$ac_compiler -v >&5") 2>&5 6035 ac_status=$? 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } 6038{ (ac_try="$ac_compiler -V >&5" 6039case "(($ac_try" in 6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6041 *) ac_try_echo=$ac_try;; 6042esac 6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6044 (eval "$ac_compiler -V >&5") 2>&5 6045 ac_status=$? 6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 (exit $ac_status); } 6048rm -f a.out 6049 6050# If we don't use `.F' as extension, the preprocessor is not run on the 6051# input file. (Note that this only needs to work for GNU compilers.) 6052ac_save_ext=$ac_ext 6053ac_ext=F 6054{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6055echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6056if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6057 echo $ECHO_N "(cached) $ECHO_C" >&6 6058else 6059 cat >conftest.$ac_ext <<_ACEOF 6060 program main 6061#ifndef __GNUC__ 6062 choke me 6063#endif 6064 6065 end 6066_ACEOF 6067rm -f conftest.$ac_objext 6068if { (ac_try="$ac_compile" 6069case "(($ac_try" in 6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6071 *) ac_try_echo=$ac_try;; 6072esac 6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6074 (eval "$ac_compile") 2>conftest.er1 6075 ac_status=$? 6076 grep -v '^ *+' conftest.er1 >conftest.err 6077 rm -f conftest.er1 6078 cat conftest.err >&5 6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6080 (exit $ac_status); } && { 6081 test -z "$ac_f77_werror_flag" || 6082 test ! -s conftest.err 6083 } && test -s conftest.$ac_objext; then 6084 ac_compiler_gnu=yes 6085else 6086 echo "$as_me: failed program was:" >&5 6087sed 's/^/| /' conftest.$ac_ext >&5 6088 6089 ac_compiler_gnu=no 6090fi 6091 6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6093ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6094 6095fi 6096{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6097echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6098ac_ext=$ac_save_ext 6099ac_test_FFLAGS=${FFLAGS+set} 6100ac_save_FFLAGS=$FFLAGS 6101FFLAGS= 6102{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6103echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6104if test "${ac_cv_prog_f77_g+set}" = set; then 6105 echo $ECHO_N "(cached) $ECHO_C" >&6 6106else 6107 FFLAGS=-g 6108cat >conftest.$ac_ext <<_ACEOF 6109 program main 6110 6111 end 6112_ACEOF 6113rm -f conftest.$ac_objext 6114if { (ac_try="$ac_compile" 6115case "(($ac_try" in 6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6117 *) ac_try_echo=$ac_try;; 6118esac 6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6120 (eval "$ac_compile") 2>conftest.er1 6121 ac_status=$? 6122 grep -v '^ *+' conftest.er1 >conftest.err 6123 rm -f conftest.er1 6124 cat conftest.err >&5 6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6126 (exit $ac_status); } && { 6127 test -z "$ac_f77_werror_flag" || 6128 test ! -s conftest.err 6129 } && test -s conftest.$ac_objext; then 6130 ac_cv_prog_f77_g=yes 6131else 6132 echo "$as_me: failed program was:" >&5 6133sed 's/^/| /' conftest.$ac_ext >&5 6134 6135 ac_cv_prog_f77_g=no 6136fi 6137 6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6139 6140fi 6141{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6142echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6143if test "$ac_test_FFLAGS" = set; then 6144 FFLAGS=$ac_save_FFLAGS 6145elif test $ac_cv_prog_f77_g = yes; then 6146 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6147 FFLAGS="-g -O2" 6148 else 6149 FFLAGS="-g" 6150 fi 6151else 6152 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6153 FFLAGS="-O2" 6154 else 6155 FFLAGS= 6156 fi 6157fi 6158 6159G77=`test $ac_compiler_gnu = yes && echo yes` 6160ac_ext=c 6161ac_cpp='$CPP $CPPFLAGS' 6162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6164ac_compiler_gnu=$ac_cv_c_compiler_gnu 6165 6166 6167 6168# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6169 6170# find the maximum length of command line arguments 6171{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6172echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6173if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6174 echo $ECHO_N "(cached) $ECHO_C" >&6 6175else 6176 i=0 6177 teststring="ABCD" 6178 6179 case $build_os in 6180 msdosdjgpp*) 6181 # On DJGPP, this test can blow up pretty badly due to problems in libc 6182 # (any single argument exceeding 2000 bytes causes a buffer overrun 6183 # during glob expansion). Even if it were fixed, the result of this 6184 # check would be larger than it should be. 6185 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6186 ;; 6187 6188 gnu*) 6189 # Under GNU Hurd, this test is not required because there is 6190 # no limit to the length of command line arguments. 6191 # Libtool will interpret -1 as no limit whatsoever 6192 lt_cv_sys_max_cmd_len=-1; 6193 ;; 6194 6195 cygwin* | mingw*) 6196 # On Win9x/ME, this test blows up -- it succeeds, but takes 6197 # about 5 minutes as the teststring grows exponentially. 6198 # Worse, since 9x/ME are not pre-emptively multitasking, 6199 # you end up with a "frozen" computer, even though with patience 6200 # the test eventually succeeds (with a max line length of 256k). 6201 # Instead, let's just punt: use the minimum linelength reported by 6202 # all of the supported platforms: 8192 (on NT/2K/XP). 6203 lt_cv_sys_max_cmd_len=8192; 6204 ;; 6205 6206 amigaos*) 6207 # On AmigaOS with pdksh, this test takes hours, literally. 6208 # So we just punt and use a minimum line length of 8192. 6209 lt_cv_sys_max_cmd_len=8192; 6210 ;; 6211 6212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6213 # This has been around since 386BSD, at least. Likely further. 6214 if test -x /sbin/sysctl; then 6215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6216 elif test -x /usr/sbin/sysctl; then 6217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6218 else 6219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6220 fi 6221 # And add a safety zone 6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6224 ;; 6225 6226 interix*) 6227 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6228 lt_cv_sys_max_cmd_len=196608 6229 ;; 6230 6231 osf*) 6232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6234 # nice to cause kernel panics so lets avoid the loop below. 6235 # First set a reasonable default. 6236 lt_cv_sys_max_cmd_len=16384 6237 # 6238 if test -x /sbin/sysconfig; then 6239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6240 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6241 esac 6242 fi 6243 ;; 6244 sco3.2v5*) 6245 lt_cv_sys_max_cmd_len=102400 6246 ;; 6247 sysv5* | sco5v6* | sysv4.2uw2*) 6248 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6249 if test -n "$kargmax"; then 6250 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6251 else 6252 lt_cv_sys_max_cmd_len=32768 6253 fi 6254 ;; 6255 *) 6256 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6257 if test -n "$lt_cv_sys_max_cmd_len"; then 6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6260 else 6261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6262 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6263 = "XX$teststring") >/dev/null 2>&1 && 6264 new_result=`expr "X$teststring" : ".*" 2>&1` && 6265 lt_cv_sys_max_cmd_len=$new_result && 6266 test $i != 17 # 1/2 MB should be enough 6267 do 6268 i=`expr $i + 1` 6269 teststring=$teststring$teststring 6270 done 6271 teststring= 6272 # Add a significant safety factor because C++ compilers can tack on massive 6273 # amounts of additional arguments before passing them to the linker. 6274 # It appears as though 1/2 is a usable value. 6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6276 fi 6277 ;; 6278 esac 6279 6280fi 6281 6282if test -n $lt_cv_sys_max_cmd_len ; then 6283 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6284echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6285else 6286 { echo "$as_me:$LINENO: result: none" >&5 6287echo "${ECHO_T}none" >&6; } 6288fi 6289 6290 6291 6292 6293 6294# Check for command to grab the raw symbol name followed by C symbol from nm. 6295{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6296echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6298 echo $ECHO_N "(cached) $ECHO_C" >&6 6299else 6300 6301# These are sane defaults that work on at least a few old systems. 6302# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6303 6304# Character class describing NM global symbol codes. 6305symcode='[BCDEGRST]' 6306 6307# Regexp to match symbols that can be accessed directly from C. 6308sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6309 6310# Transform an extracted symbol line into a proper C declaration 6311lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6312 6313# Transform an extracted symbol line into symbol name and symbol address 6314lt_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'" 6315 6316# Define system-specific variables. 6317case $host_os in 6318aix*) 6319 symcode='[BCDT]' 6320 ;; 6321cygwin* | mingw* | pw32*) 6322 symcode='[ABCDGISTW]' 6323 ;; 6324hpux*) # Its linker distinguishes data from code symbols 6325 if test "$host_cpu" = ia64; then 6326 symcode='[ABCDEGRST]' 6327 fi 6328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6329 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'" 6330 ;; 6331linux* | k*bsd*-gnu) 6332 if test "$host_cpu" = ia64; then 6333 symcode='[ABCDGIRSTW]' 6334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6335 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'" 6336 fi 6337 ;; 6338irix* | nonstopux*) 6339 symcode='[BCDEGRST]' 6340 ;; 6341osf*) 6342 symcode='[BCDEGQRST]' 6343 ;; 6344solaris*) 6345 symcode='[BDRT]' 6346 ;; 6347sco3.2v5*) 6348 symcode='[DT]' 6349 ;; 6350sysv4.2uw2*) 6351 symcode='[DT]' 6352 ;; 6353sysv5* | sco5v6* | unixware* | OpenUNIX*) 6354 symcode='[ABDT]' 6355 ;; 6356sysv4) 6357 symcode='[DFNSTU]' 6358 ;; 6359esac 6360 6361# Handle CRLF in mingw tool chain 6362opt_cr= 6363case $build_os in 6364mingw*) 6365 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6366 ;; 6367esac 6368 6369# If we're using GNU nm, then use its standard symbol codes. 6370case `$NM -V 2>&1` in 6371*GNU* | *'with BFD'*) 6372 symcode='[ABCDGIRSTW]' ;; 6373esac 6374 6375# Try without a prefix undercore, then with it. 6376for ac_symprfx in "" "_"; do 6377 6378 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6379 symxfrm="\\1 $ac_symprfx\\2 \\2" 6380 6381 # Write the raw and C identifiers. 6382 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6383 6384 # Check to see that the pipe works correctly. 6385 pipe_works=no 6386 6387 rm -f conftest* 6388 cat > conftest.$ac_ext <<EOF 6389#ifdef __cplusplus 6390extern "C" { 6391#endif 6392char nm_test_var; 6393void nm_test_func(){} 6394#ifdef __cplusplus 6395} 6396#endif 6397int main(){nm_test_var='a';nm_test_func();return(0);} 6398EOF 6399 6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6401 (eval $ac_compile) 2>&5 6402 ac_status=$? 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); }; then 6405 # Now try to grab the symbols. 6406 nlist=conftest.nm 6407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6409 ac_status=$? 6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); } && test -s "$nlist"; then 6412 # Try sorting and uniquifying the output. 6413 if sort "$nlist" | uniq > "$nlist"T; then 6414 mv -f "$nlist"T "$nlist" 6415 else 6416 rm -f "$nlist"T 6417 fi 6418 6419 # Make sure that we snagged all the symbols we need. 6420 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6421 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6422 cat <<EOF > conftest.$ac_ext 6423#ifdef __cplusplus 6424extern "C" { 6425#endif 6426 6427EOF 6428 # Now generate the symbol file. 6429 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6430 6431 cat <<EOF >> conftest.$ac_ext 6432#if defined (__STDC__) && __STDC__ 6433# define lt_ptr_t void * 6434#else 6435# define lt_ptr_t char * 6436# define const 6437#endif 6438 6439/* The mapping between symbol names and symbols. */ 6440const struct { 6441 const char *name; 6442 lt_ptr_t address; 6443} 6444lt_preloaded_symbols[] = 6445{ 6446EOF 6447 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6448 cat <<\EOF >> conftest.$ac_ext 6449 {0, (lt_ptr_t) 0} 6450}; 6451 6452#ifdef __cplusplus 6453} 6454#endif 6455EOF 6456 # Now try linking the two files. 6457 mv conftest.$ac_objext conftstm.$ac_objext 6458 lt_save_LIBS="$LIBS" 6459 lt_save_CFLAGS="$CFLAGS" 6460 LIBS="conftstm.$ac_objext" 6461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6463 (eval $ac_link) 2>&5 6464 ac_status=$? 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6467 pipe_works=yes 6468 fi 6469 LIBS="$lt_save_LIBS" 6470 CFLAGS="$lt_save_CFLAGS" 6471 else 6472 echo "cannot find nm_test_func in $nlist" >&5 6473 fi 6474 else 6475 echo "cannot find nm_test_var in $nlist" >&5 6476 fi 6477 else 6478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6479 fi 6480 else 6481 echo "$progname: failed program was:" >&5 6482 cat conftest.$ac_ext >&5 6483 fi 6484 rm -f conftest* conftst* 6485 6486 # Do not use the global_symbol_pipe unless it works. 6487 if test "$pipe_works" = yes; then 6488 break 6489 else 6490 lt_cv_sys_global_symbol_pipe= 6491 fi 6492done 6493 6494fi 6495 6496if test -z "$lt_cv_sys_global_symbol_pipe"; then 6497 lt_cv_sys_global_symbol_to_cdecl= 6498fi 6499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6500 { echo "$as_me:$LINENO: result: failed" >&5 6501echo "${ECHO_T}failed" >&6; } 6502else 6503 { echo "$as_me:$LINENO: result: ok" >&5 6504echo "${ECHO_T}ok" >&6; } 6505fi 6506 6507{ echo "$as_me:$LINENO: checking for objdir" >&5 6508echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6509if test "${lt_cv_objdir+set}" = set; then 6510 echo $ECHO_N "(cached) $ECHO_C" >&6 6511else 6512 rm -f .libs 2>/dev/null 6513mkdir .libs 2>/dev/null 6514if test -d .libs; then 6515 lt_cv_objdir=.libs 6516else 6517 # MS-DOS does not allow filenames that begin with a dot. 6518 lt_cv_objdir=_libs 6519fi 6520rmdir .libs 2>/dev/null 6521fi 6522{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6523echo "${ECHO_T}$lt_cv_objdir" >&6; } 6524objdir=$lt_cv_objdir 6525 6526 6527 6528 6529 6530case $host_os in 6531aix3*) 6532 # AIX sometimes has problems with the GCC collect2 program. For some 6533 # reason, if we set the COLLECT_NAMES environment variable, the problems 6534 # vanish in a puff of smoke. 6535 if test "X${COLLECT_NAMES+set}" != Xset; then 6536 COLLECT_NAMES= 6537 export COLLECT_NAMES 6538 fi 6539 ;; 6540esac 6541 6542# Sed substitution that helps us do robust quoting. It backslashifies 6543# metacharacters that are still active within double-quoted strings. 6544Xsed='sed -e 1s/^X//' 6545sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6546 6547# Same as above, but do not quote variable references. 6548double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6549 6550# Sed substitution to delay expansion of an escaped shell variable in a 6551# double_quote_subst'ed string. 6552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6553 6554# Sed substitution to avoid accidental globbing in evaled expressions 6555no_glob_subst='s/\*/\\\*/g' 6556 6557# Constants: 6558rm="rm -f" 6559 6560# Global variables: 6561default_ofile=libtool 6562can_build_shared=yes 6563 6564# All known linkers require a `.a' archive for static linking (except MSVC, 6565# which needs '.lib'). 6566libext=a 6567ltmain="$ac_aux_dir/ltmain.sh" 6568ofile="$default_ofile" 6569with_gnu_ld="$lt_cv_prog_gnu_ld" 6570 6571if test -n "$ac_tool_prefix"; then 6572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6573set dummy ${ac_tool_prefix}ar; ac_word=$2 6574{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6576if test "${ac_cv_prog_AR+set}" = set; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578else 6579 if test -n "$AR"; then 6580 ac_cv_prog_AR="$AR" # Let the user override the test. 6581else 6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6589 ac_cv_prog_AR="${ac_tool_prefix}ar" 6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593done 6594done 6595IFS=$as_save_IFS 6596 6597fi 6598fi 6599AR=$ac_cv_prog_AR 6600if test -n "$AR"; then 6601 { echo "$as_me:$LINENO: result: $AR" >&5 6602echo "${ECHO_T}$AR" >&6; } 6603else 6604 { echo "$as_me:$LINENO: result: no" >&5 6605echo "${ECHO_T}no" >&6; } 6606fi 6607 6608 6609fi 6610if test -z "$ac_cv_prog_AR"; then 6611 ac_ct_AR=$AR 6612 # Extract the first word of "ar", so it can be a program name with args. 6613set dummy ar; ac_word=$2 6614{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6616if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6617 echo $ECHO_N "(cached) $ECHO_C" >&6 6618else 6619 if test -n "$ac_ct_AR"; then 6620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6621else 6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623for as_dir in $PATH 6624do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6629 ac_cv_prog_ac_ct_AR="ar" 6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633done 6634done 6635IFS=$as_save_IFS 6636 6637fi 6638fi 6639ac_ct_AR=$ac_cv_prog_ac_ct_AR 6640if test -n "$ac_ct_AR"; then 6641 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6642echo "${ECHO_T}$ac_ct_AR" >&6; } 6643else 6644 { echo "$as_me:$LINENO: result: no" >&5 6645echo "${ECHO_T}no" >&6; } 6646fi 6647 6648 if test "x$ac_ct_AR" = x; then 6649 AR="false" 6650 else 6651 case $cross_compiling:$ac_tool_warned in 6652yes:) 6653{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6654whose name does not start with the host triplet. If you think this 6655configuration is useful to you, please write to autoconf@gnu.org." >&5 6656echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6657whose name does not start with the host triplet. If you think this 6658configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6659ac_tool_warned=yes ;; 6660esac 6661 AR=$ac_ct_AR 6662 fi 6663else 6664 AR="$ac_cv_prog_AR" 6665fi 6666 6667if test -n "$ac_tool_prefix"; then 6668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6669set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6670{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6672if test "${ac_cv_prog_RANLIB+set}" = set; then 6673 echo $ECHO_N "(cached) $ECHO_C" >&6 6674else 6675 if test -n "$RANLIB"; then 6676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695RANLIB=$ac_cv_prog_RANLIB 6696if test -n "$RANLIB"; then 6697 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6698echo "${ECHO_T}$RANLIB" >&6; } 6699else 6700 { echo "$as_me:$LINENO: result: no" >&5 6701echo "${ECHO_T}no" >&6; } 6702fi 6703 6704 6705fi 6706if test -z "$ac_cv_prog_RANLIB"; then 6707 ac_ct_RANLIB=$RANLIB 6708 # Extract the first word of "ranlib", so it can be a program name with args. 6709set dummy ranlib; ac_word=$2 6710{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6712if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6713 echo $ECHO_N "(cached) $ECHO_C" >&6 6714else 6715 if test -n "$ac_ct_RANLIB"; then 6716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6717else 6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6725 ac_cv_prog_ac_ct_RANLIB="ranlib" 6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6736if test -n "$ac_ct_RANLIB"; then 6737 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6738echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6739else 6740 { echo "$as_me:$LINENO: result: no" >&5 6741echo "${ECHO_T}no" >&6; } 6742fi 6743 6744 if test "x$ac_ct_RANLIB" = x; then 6745 RANLIB=":" 6746 else 6747 case $cross_compiling:$ac_tool_warned in 6748yes:) 6749{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6750whose name does not start with the host triplet. If you think this 6751configuration is useful to you, please write to autoconf@gnu.org." >&5 6752echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6753whose name does not start with the host triplet. If you think this 6754configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6755ac_tool_warned=yes ;; 6756esac 6757 RANLIB=$ac_ct_RANLIB 6758 fi 6759else 6760 RANLIB="$ac_cv_prog_RANLIB" 6761fi 6762 6763if test -n "$ac_tool_prefix"; then 6764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6765set dummy ${ac_tool_prefix}strip; ac_word=$2 6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6768if test "${ac_cv_prog_STRIP+set}" = set; then 6769 echo $ECHO_N "(cached) $ECHO_C" >&6 6770else 6771 if test -n "$STRIP"; then 6772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6773else 6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6781 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785done 6786done 6787IFS=$as_save_IFS 6788 6789fi 6790fi 6791STRIP=$ac_cv_prog_STRIP 6792if test -n "$STRIP"; then 6793 { echo "$as_me:$LINENO: result: $STRIP" >&5 6794echo "${ECHO_T}$STRIP" >&6; } 6795else 6796 { echo "$as_me:$LINENO: result: no" >&5 6797echo "${ECHO_T}no" >&6; } 6798fi 6799 6800 6801fi 6802if test -z "$ac_cv_prog_STRIP"; then 6803 ac_ct_STRIP=$STRIP 6804 # Extract the first word of "strip", so it can be a program name with args. 6805set dummy strip; ac_word=$2 6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6809 echo $ECHO_N "(cached) $ECHO_C" >&6 6810else 6811 if test -n "$ac_ct_STRIP"; then 6812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6813else 6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 test -z "$as_dir" && as_dir=. 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6821 ac_cv_prog_ac_ct_STRIP="strip" 6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826done 6827IFS=$as_save_IFS 6828 6829fi 6830fi 6831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6832if test -n "$ac_ct_STRIP"; then 6833 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6834echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6835else 6836 { echo "$as_me:$LINENO: result: no" >&5 6837echo "${ECHO_T}no" >&6; } 6838fi 6839 6840 if test "x$ac_ct_STRIP" = x; then 6841 STRIP=":" 6842 else 6843 case $cross_compiling:$ac_tool_warned in 6844yes:) 6845{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6846whose name does not start with the host triplet. If you think this 6847configuration is useful to you, please write to autoconf@gnu.org." >&5 6848echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6849whose name does not start with the host triplet. If you think this 6850configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6851ac_tool_warned=yes ;; 6852esac 6853 STRIP=$ac_ct_STRIP 6854 fi 6855else 6856 STRIP="$ac_cv_prog_STRIP" 6857fi 6858 6859 6860old_CC="$CC" 6861old_CFLAGS="$CFLAGS" 6862 6863# Set sane defaults for various variables 6864test -z "$AR" && AR=ar 6865test -z "$AR_FLAGS" && AR_FLAGS=cru 6866test -z "$AS" && AS=as 6867test -z "$CC" && CC=cc 6868test -z "$LTCC" && LTCC=$CC 6869test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6870test -z "$DLLTOOL" && DLLTOOL=dlltool 6871test -z "$LD" && LD=ld 6872test -z "$LN_S" && LN_S="ln -s" 6873test -z "$MAGIC_CMD" && MAGIC_CMD=file 6874test -z "$NM" && NM=nm 6875test -z "$SED" && SED=sed 6876test -z "$OBJDUMP" && OBJDUMP=objdump 6877test -z "$RANLIB" && RANLIB=: 6878test -z "$STRIP" && STRIP=: 6879test -z "$ac_objext" && ac_objext=o 6880 6881# Determine commands to create old-style static archives. 6882old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6883old_postinstall_cmds='chmod 644 $oldlib' 6884old_postuninstall_cmds= 6885 6886if test -n "$RANLIB"; then 6887 case $host_os in 6888 openbsd*) 6889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6890 ;; 6891 *) 6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6893 ;; 6894 esac 6895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6896fi 6897 6898for cc_temp in $compiler""; do 6899 case $cc_temp in 6900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6902 \-*) ;; 6903 *) break;; 6904 esac 6905done 6906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6907 6908 6909# Only perform the check for file, if the check method requires it 6910case $deplibs_check_method in 6911file_magic*) 6912 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6913 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6914echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6915if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6916 echo $ECHO_N "(cached) $ECHO_C" >&6 6917else 6918 case $MAGIC_CMD in 6919[\\/*] | ?:[\\/]*) 6920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6921 ;; 6922*) 6923 lt_save_MAGIC_CMD="$MAGIC_CMD" 6924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6926 for ac_dir in $ac_dummy; do 6927 IFS="$lt_save_ifs" 6928 test -z "$ac_dir" && ac_dir=. 6929 if test -f $ac_dir/${ac_tool_prefix}file; then 6930 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6931 if test -n "$file_magic_test_file"; then 6932 case $deplibs_check_method in 6933 "file_magic "*) 6934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6937 $EGREP "$file_magic_regex" > /dev/null; then 6938 : 6939 else 6940 cat <<EOF 1>&2 6941 6942*** Warning: the command libtool uses to detect shared libraries, 6943*** $file_magic_cmd, produces output that libtool cannot recognize. 6944*** The result is that libtool may fail to recognize shared libraries 6945*** as such. This will affect the creation of libtool libraries that 6946*** depend on shared libraries, but programs linked with such libtool 6947*** libraries will work regardless of this problem. Nevertheless, you 6948*** may want to report the problem to your system manager and/or to 6949*** bug-libtool@gnu.org 6950 6951EOF 6952 fi ;; 6953 esac 6954 fi 6955 break 6956 fi 6957 done 6958 IFS="$lt_save_ifs" 6959 MAGIC_CMD="$lt_save_MAGIC_CMD" 6960 ;; 6961esac 6962fi 6963 6964MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6965if test -n "$MAGIC_CMD"; then 6966 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6967echo "${ECHO_T}$MAGIC_CMD" >&6; } 6968else 6969 { echo "$as_me:$LINENO: result: no" >&5 6970echo "${ECHO_T}no" >&6; } 6971fi 6972 6973if test -z "$lt_cv_path_MAGIC_CMD"; then 6974 if test -n "$ac_tool_prefix"; then 6975 { echo "$as_me:$LINENO: checking for file" >&5 6976echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6977if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6978 echo $ECHO_N "(cached) $ECHO_C" >&6 6979else 6980 case $MAGIC_CMD in 6981[\\/*] | ?:[\\/]*) 6982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6983 ;; 6984*) 6985 lt_save_MAGIC_CMD="$MAGIC_CMD" 6986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6988 for ac_dir in $ac_dummy; do 6989 IFS="$lt_save_ifs" 6990 test -z "$ac_dir" && ac_dir=. 6991 if test -f $ac_dir/file; then 6992 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6993 if test -n "$file_magic_test_file"; then 6994 case $deplibs_check_method in 6995 "file_magic "*) 6996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6999 $EGREP "$file_magic_regex" > /dev/null; then 7000 : 7001 else 7002 cat <<EOF 1>&2 7003 7004*** Warning: the command libtool uses to detect shared libraries, 7005*** $file_magic_cmd, produces output that libtool cannot recognize. 7006*** The result is that libtool may fail to recognize shared libraries 7007*** as such. This will affect the creation of libtool libraries that 7008*** depend on shared libraries, but programs linked with such libtool 7009*** libraries will work regardless of this problem. Nevertheless, you 7010*** may want to report the problem to your system manager and/or to 7011*** bug-libtool@gnu.org 7012 7013EOF 7014 fi ;; 7015 esac 7016 fi 7017 break 7018 fi 7019 done 7020 IFS="$lt_save_ifs" 7021 MAGIC_CMD="$lt_save_MAGIC_CMD" 7022 ;; 7023esac 7024fi 7025 7026MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7027if test -n "$MAGIC_CMD"; then 7028 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7029echo "${ECHO_T}$MAGIC_CMD" >&6; } 7030else 7031 { echo "$as_me:$LINENO: result: no" >&5 7032echo "${ECHO_T}no" >&6; } 7033fi 7034 7035 else 7036 MAGIC_CMD=: 7037 fi 7038fi 7039 7040 fi 7041 ;; 7042esac 7043 7044enable_dlopen=no 7045enable_win32_dll=no 7046 7047# Check whether --enable-libtool-lock was given. 7048if test "${enable_libtool_lock+set}" = set; then 7049 enableval=$enable_libtool_lock; 7050fi 7051 7052test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7053 7054 7055# Check whether --with-pic was given. 7056if test "${with_pic+set}" = set; then 7057 withval=$with_pic; pic_mode="$withval" 7058else 7059 pic_mode=default 7060fi 7061 7062test -z "$pic_mode" && pic_mode=default 7063 7064# Use C for the default configuration in the libtool script 7065tagname= 7066lt_save_CC="$CC" 7067ac_ext=c 7068ac_cpp='$CPP $CPPFLAGS' 7069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7071ac_compiler_gnu=$ac_cv_c_compiler_gnu 7072 7073 7074# Source file extension for C test sources. 7075ac_ext=c 7076 7077# Object file extension for compiled C test sources. 7078objext=o 7079objext=$objext 7080 7081# Code to be used in simple compile tests 7082lt_simple_compile_test_code="int some_variable = 0;" 7083 7084# Code to be used in simple link tests 7085lt_simple_link_test_code='int main(){return(0);}' 7086 7087 7088# If no C compiler was specified, use CC. 7089LTCC=${LTCC-"$CC"} 7090 7091# If no C compiler flags were specified, use CFLAGS. 7092LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7093 7094# Allow CC to be a program name with arguments. 7095compiler=$CC 7096 7097 7098# save warnings/boilerplate of simple test code 7099ac_outfile=conftest.$ac_objext 7100echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7102_lt_compiler_boilerplate=`cat conftest.err` 7103$rm conftest* 7104 7105ac_outfile=conftest.$ac_objext 7106echo "$lt_simple_link_test_code" >conftest.$ac_ext 7107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7108_lt_linker_boilerplate=`cat conftest.err` 7109$rm conftest* 7110 7111 7112 7113lt_prog_compiler_no_builtin_flag= 7114 7115if test "$GCC" = yes; then 7116 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7117 7118 7119{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7120echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7121if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 lt_cv_prog_compiler_rtti_exceptions=no 7125 ac_outfile=conftest.$ac_objext 7126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7127 lt_compiler_flag="-fno-rtti -fno-exceptions" 7128 # Insert the option either (1) after the last *FLAGS variable, or 7129 # (2) before a word containing "conftest.", or (3) at the end. 7130 # Note that $ac_compile itself does not contain backslashes and begins 7131 # with a dollar sign (not a hyphen), so the echo should work correctly. 7132 # The option is referenced via a variable to avoid confusing sed. 7133 lt_compile=`echo "$ac_compile" | $SED \ 7134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7136 -e 's:$: $lt_compiler_flag:'` 7137 (eval echo "\"\$as_me:7137: $lt_compile\"" >&5) 7138 (eval "$lt_compile" 2>conftest.err) 7139 ac_status=$? 7140 cat conftest.err >&5 7141 echo "$as_me:7141: \$? = $ac_status" >&5 7142 if (exit $ac_status) && test -s "$ac_outfile"; then 7143 # The compiler can only warn and ignore the option if not recognized 7144 # So say no if there are warnings other than the usual output. 7145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7148 lt_cv_prog_compiler_rtti_exceptions=yes 7149 fi 7150 fi 7151 $rm conftest* 7152 7153fi 7154{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7155echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7156 7157if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7158 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7159else 7160 : 7161fi 7162 7163fi 7164 7165lt_prog_compiler_wl= 7166lt_prog_compiler_pic= 7167lt_prog_compiler_static= 7168 7169{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7170echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7171 7172 if test "$GCC" = yes; then 7173 lt_prog_compiler_wl='-Wl,' 7174 lt_prog_compiler_static='-static' 7175 7176 case $host_os in 7177 aix*) 7178 # All AIX code is PIC. 7179 if test "$host_cpu" = ia64; then 7180 # AIX 5 now supports IA64 processor 7181 lt_prog_compiler_static='-Bstatic' 7182 fi 7183 ;; 7184 7185 amigaos*) 7186 # FIXME: we need at least 68020 code to build shared libraries, but 7187 # adding the `-m68020' flag to GCC prevents building anything better, 7188 # like `-m68040'. 7189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7190 ;; 7191 7192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7193 # PIC is the default for these OSes. 7194 ;; 7195 7196 mingw* | cygwin* | pw32* | os2*) 7197 # This hack is so that the source file can tell whether it is being 7198 # built for inclusion in a dll (and should export symbols for example). 7199 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7200 # (--disable-auto-import) libraries 7201 lt_prog_compiler_pic='-DDLL_EXPORT' 7202 ;; 7203 7204 darwin* | rhapsody*) 7205 # PIC is the default on this platform 7206 # Common symbols not allowed in MH_DYLIB files 7207 lt_prog_compiler_pic='-fno-common' 7208 ;; 7209 7210 interix[3-9]*) 7211 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7212 # Instead, we relocate shared libraries at runtime. 7213 ;; 7214 7215 msdosdjgpp*) 7216 # Just because we use GCC doesn't mean we suddenly get shared libraries 7217 # on systems that don't support them. 7218 lt_prog_compiler_can_build_shared=no 7219 enable_shared=no 7220 ;; 7221 7222 sysv4*MP*) 7223 if test -d /usr/nec; then 7224 lt_prog_compiler_pic=-Kconform_pic 7225 fi 7226 ;; 7227 7228 hpux*) 7229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7230 # not for PA HP-UX. 7231 case $host_cpu in 7232 hppa*64*|ia64*) 7233 # +Z the default 7234 ;; 7235 *) 7236 lt_prog_compiler_pic='-fPIC' 7237 ;; 7238 esac 7239 ;; 7240 7241 *) 7242 lt_prog_compiler_pic='-fPIC' 7243 ;; 7244 esac 7245 else 7246 # PORTME Check for flag to pass linker flags through the system compiler. 7247 case $host_os in 7248 aix*) 7249 lt_prog_compiler_wl='-Wl,' 7250 if test "$host_cpu" = ia64; then 7251 # AIX 5 now supports IA64 processor 7252 lt_prog_compiler_static='-Bstatic' 7253 else 7254 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7255 fi 7256 ;; 7257 darwin*) 7258 # PIC is the default on this platform 7259 # Common symbols not allowed in MH_DYLIB files 7260 case $cc_basename in 7261 xlc*) 7262 lt_prog_compiler_pic='-qnocommon' 7263 lt_prog_compiler_wl='-Wl,' 7264 ;; 7265 esac 7266 ;; 7267 7268 mingw* | cygwin* | pw32* | os2*) 7269 # This hack is so that the source file can tell whether it is being 7270 # built for inclusion in a dll (and should export symbols for example). 7271 lt_prog_compiler_pic='-DDLL_EXPORT' 7272 ;; 7273 7274 hpux9* | hpux10* | hpux11*) 7275 lt_prog_compiler_wl='-Wl,' 7276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7277 # not for PA HP-UX. 7278 case $host_cpu in 7279 hppa*64*|ia64*) 7280 # +Z the default 7281 ;; 7282 *) 7283 lt_prog_compiler_pic='+Z' 7284 ;; 7285 esac 7286 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7287 lt_prog_compiler_static='${wl}-a ${wl}archive' 7288 ;; 7289 7290 irix5* | irix6* | nonstopux*) 7291 lt_prog_compiler_wl='-Wl,' 7292 # PIC (with -KPIC) is the default. 7293 lt_prog_compiler_static='-non_shared' 7294 ;; 7295 7296 newsos6) 7297 lt_prog_compiler_pic='-KPIC' 7298 lt_prog_compiler_static='-Bstatic' 7299 ;; 7300 7301 linux* | k*bsd*-gnu) 7302 case $cc_basename in 7303 icc* | ecc*) 7304 lt_prog_compiler_wl='-Wl,' 7305 lt_prog_compiler_pic='-KPIC' 7306 lt_prog_compiler_static='-static' 7307 ;; 7308 pgcc* | pgf77* | pgf90* | pgf95*) 7309 # Portland Group compilers (*not* the Pentium gcc compiler, 7310 # which looks to be a dead project) 7311 lt_prog_compiler_wl='-Wl,' 7312 lt_prog_compiler_pic='-fpic' 7313 lt_prog_compiler_static='-Bstatic' 7314 ;; 7315 ccc*) 7316 lt_prog_compiler_wl='-Wl,' 7317 # All Alpha code is PIC. 7318 lt_prog_compiler_static='-non_shared' 7319 ;; 7320 *) 7321 case `$CC -V 2>&1 | sed 5q` in 7322 *Sun\ C*) 7323 # Sun C 5.9 7324 lt_prog_compiler_pic='-KPIC' 7325 lt_prog_compiler_static='-Bstatic' 7326 lt_prog_compiler_wl='-Wl,' 7327 ;; 7328 *Sun\ F*) 7329 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7330 lt_prog_compiler_pic='-KPIC' 7331 lt_prog_compiler_static='-Bstatic' 7332 lt_prog_compiler_wl='' 7333 ;; 7334 esac 7335 ;; 7336 esac 7337 ;; 7338 7339 osf3* | osf4* | osf5*) 7340 lt_prog_compiler_wl='-Wl,' 7341 # All OSF/1 code is PIC. 7342 lt_prog_compiler_static='-non_shared' 7343 ;; 7344 7345 rdos*) 7346 lt_prog_compiler_static='-non_shared' 7347 ;; 7348 7349 solaris*) 7350 lt_prog_compiler_pic='-KPIC' 7351 lt_prog_compiler_static='-Bstatic' 7352 case $cc_basename in 7353 f77* | f90* | f95*) 7354 lt_prog_compiler_wl='-Qoption ld ';; 7355 *) 7356 lt_prog_compiler_wl='-Wl,';; 7357 esac 7358 ;; 7359 7360 sunos4*) 7361 lt_prog_compiler_wl='-Qoption ld ' 7362 lt_prog_compiler_pic='-PIC' 7363 lt_prog_compiler_static='-Bstatic' 7364 ;; 7365 7366 sysv4 | sysv4.2uw2* | sysv4.3*) 7367 lt_prog_compiler_wl='-Wl,' 7368 lt_prog_compiler_pic='-KPIC' 7369 lt_prog_compiler_static='-Bstatic' 7370 ;; 7371 7372 sysv4*MP*) 7373 if test -d /usr/nec ;then 7374 lt_prog_compiler_pic='-Kconform_pic' 7375 lt_prog_compiler_static='-Bstatic' 7376 fi 7377 ;; 7378 7379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7380 lt_prog_compiler_wl='-Wl,' 7381 lt_prog_compiler_pic='-KPIC' 7382 lt_prog_compiler_static='-Bstatic' 7383 ;; 7384 7385 unicos*) 7386 lt_prog_compiler_wl='-Wl,' 7387 lt_prog_compiler_can_build_shared=no 7388 ;; 7389 7390 uts4*) 7391 lt_prog_compiler_pic='-pic' 7392 lt_prog_compiler_static='-Bstatic' 7393 ;; 7394 7395 *) 7396 lt_prog_compiler_can_build_shared=no 7397 ;; 7398 esac 7399 fi 7400 7401{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7402echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7403 7404# 7405# Check to make sure the PIC flag actually works. 7406# 7407if test -n "$lt_prog_compiler_pic"; then 7408 7409{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7410echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7411if test "${lt_prog_compiler_pic_works+set}" = set; then 7412 echo $ECHO_N "(cached) $ECHO_C" >&6 7413else 7414 lt_prog_compiler_pic_works=no 7415 ac_outfile=conftest.$ac_objext 7416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7417 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7418 # Insert the option either (1) after the last *FLAGS variable, or 7419 # (2) before a word containing "conftest.", or (3) at the end. 7420 # Note that $ac_compile itself does not contain backslashes and begins 7421 # with a dollar sign (not a hyphen), so the echo should work correctly. 7422 # The option is referenced via a variable to avoid confusing sed. 7423 lt_compile=`echo "$ac_compile" | $SED \ 7424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7426 -e 's:$: $lt_compiler_flag:'` 7427 (eval echo "\"\$as_me:7427: $lt_compile\"" >&5) 7428 (eval "$lt_compile" 2>conftest.err) 7429 ac_status=$? 7430 cat conftest.err >&5 7431 echo "$as_me:7431: \$? = $ac_status" >&5 7432 if (exit $ac_status) && test -s "$ac_outfile"; then 7433 # The compiler can only warn and ignore the option if not recognized 7434 # So say no if there are warnings other than the usual output. 7435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7438 lt_prog_compiler_pic_works=yes 7439 fi 7440 fi 7441 $rm conftest* 7442 7443fi 7444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7445echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7446 7447if test x"$lt_prog_compiler_pic_works" = xyes; then 7448 case $lt_prog_compiler_pic in 7449 "" | " "*) ;; 7450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7451 esac 7452else 7453 lt_prog_compiler_pic= 7454 lt_prog_compiler_can_build_shared=no 7455fi 7456 7457fi 7458case $host_os in 7459 # For platforms which do not support PIC, -DPIC is meaningless: 7460 *djgpp*) 7461 lt_prog_compiler_pic= 7462 ;; 7463 *) 7464 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7465 ;; 7466esac 7467 7468# 7469# Check to make sure the static flag actually works. 7470# 7471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7472{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7473echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7474if test "${lt_prog_compiler_static_works+set}" = set; then 7475 echo $ECHO_N "(cached) $ECHO_C" >&6 7476else 7477 lt_prog_compiler_static_works=no 7478 save_LDFLAGS="$LDFLAGS" 7479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7480 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7482 # The linker can only warn and ignore the option if not recognized 7483 # So say no if there are warnings 7484 if test -s conftest.err; then 7485 # Append any errors to the config.log. 7486 cat conftest.err 1>&5 7487 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7489 if diff conftest.exp conftest.er2 >/dev/null; then 7490 lt_prog_compiler_static_works=yes 7491 fi 7492 else 7493 lt_prog_compiler_static_works=yes 7494 fi 7495 fi 7496 $rm conftest* 7497 LDFLAGS="$save_LDFLAGS" 7498 7499fi 7500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7501echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7502 7503if test x"$lt_prog_compiler_static_works" = xyes; then 7504 : 7505else 7506 lt_prog_compiler_static= 7507fi 7508 7509 7510{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7511echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7512if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7513 echo $ECHO_N "(cached) $ECHO_C" >&6 7514else 7515 lt_cv_prog_compiler_c_o=no 7516 $rm -r conftest 2>/dev/null 7517 mkdir conftest 7518 cd conftest 7519 mkdir out 7520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7521 7522 lt_compiler_flag="-o out/conftest2.$ac_objext" 7523 # Insert the option either (1) after the last *FLAGS variable, or 7524 # (2) before a word containing "conftest.", or (3) at the end. 7525 # Note that $ac_compile itself does not contain backslashes and begins 7526 # with a dollar sign (not a hyphen), so the echo should work correctly. 7527 lt_compile=`echo "$ac_compile" | $SED \ 7528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7530 -e 's:$: $lt_compiler_flag:'` 7531 (eval echo "\"\$as_me:7531: $lt_compile\"" >&5) 7532 (eval "$lt_compile" 2>out/conftest.err) 7533 ac_status=$? 7534 cat out/conftest.err >&5 7535 echo "$as_me:7535: \$? = $ac_status" >&5 7536 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7537 then 7538 # The compiler can only warn and ignore the option if not recognized 7539 # So say no if there are warnings 7540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7543 lt_cv_prog_compiler_c_o=yes 7544 fi 7545 fi 7546 chmod u+w . 2>&5 7547 $rm conftest* 7548 # SGI C++ compiler will create directory out/ii_files/ for 7549 # template instantiation 7550 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7551 $rm out/* && rmdir out 7552 cd .. 7553 rmdir conftest 7554 $rm conftest* 7555 7556fi 7557{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7558echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7559 7560 7561hard_links="nottested" 7562if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7563 # do not overwrite the value of need_locks provided by the user 7564 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7565echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7566 hard_links=yes 7567 $rm conftest* 7568 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7569 touch conftest.a 7570 ln conftest.a conftest.b 2>&5 || hard_links=no 7571 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7572 { echo "$as_me:$LINENO: result: $hard_links" >&5 7573echo "${ECHO_T}$hard_links" >&6; } 7574 if test "$hard_links" = no; then 7575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7576echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7577 need_locks=warn 7578 fi 7579else 7580 need_locks=no 7581fi 7582 7583{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7585 7586 runpath_var= 7587 allow_undefined_flag= 7588 enable_shared_with_static_runtimes=no 7589 archive_cmds= 7590 archive_expsym_cmds= 7591 old_archive_From_new_cmds= 7592 old_archive_from_expsyms_cmds= 7593 export_dynamic_flag_spec= 7594 whole_archive_flag_spec= 7595 thread_safe_flag_spec= 7596 hardcode_libdir_flag_spec= 7597 hardcode_libdir_flag_spec_ld= 7598 hardcode_libdir_separator= 7599 hardcode_direct=no 7600 hardcode_minus_L=no 7601 hardcode_shlibpath_var=unsupported 7602 link_all_deplibs=unknown 7603 hardcode_automatic=no 7604 module_cmds= 7605 module_expsym_cmds= 7606 always_export_symbols=no 7607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7608 # include_expsyms should be a list of space-separated symbols to be *always* 7609 # included in the symbol list 7610 include_expsyms= 7611 # exclude_expsyms can be an extended regexp of symbols to exclude 7612 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7614 # as well as any symbol that contains `d'. 7615 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7617 # platforms (ab)use it in PIC code, but their linkers get confused if 7618 # the symbol is explicitly referenced. Since portable code cannot 7619 # rely on this symbol name, it's probably fine to never include it in 7620 # preloaded symbol tables. 7621 extract_expsyms_cmds= 7622 # Just being paranoid about ensuring that cc_basename is set. 7623 for cc_temp in $compiler""; do 7624 case $cc_temp in 7625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7627 \-*) ;; 7628 *) break;; 7629 esac 7630done 7631cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7632 7633 case $host_os in 7634 cygwin* | mingw* | pw32*) 7635 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7636 # When not using gcc, we currently assume that we are using 7637 # Microsoft Visual C++. 7638 if test "$GCC" != yes; then 7639 with_gnu_ld=no 7640 fi 7641 ;; 7642 interix*) 7643 # we just hope/assume this is gcc and not c89 (= MSVC++) 7644 with_gnu_ld=yes 7645 ;; 7646 openbsd*) 7647 with_gnu_ld=no 7648 ;; 7649 esac 7650 7651 ld_shlibs=yes 7652 if test "$with_gnu_ld" = yes; then 7653 # If archive_cmds runs LD, not CC, wlarc should be empty 7654 wlarc='${wl}' 7655 7656 # Set some defaults for GNU ld with shared library support. These 7657 # are reset later if shared libraries are not supported. Putting them 7658 # here allows them to be overridden if necessary. 7659 runpath_var=LD_RUN_PATH 7660 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7661 export_dynamic_flag_spec='${wl}--export-dynamic' 7662 # ancient GNU ld didn't support --whole-archive et. al. 7663 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7664 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7665 else 7666 whole_archive_flag_spec= 7667 fi 7668 supports_anon_versioning=no 7669 case `$LD -v 2>/dev/null` in 7670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7673 *\ 2.11.*) ;; # other 2.11 versions 7674 *) supports_anon_versioning=yes ;; 7675 esac 7676 7677 # See if GNU ld supports shared libraries. 7678 case $host_os in 7679 aix3* | aix4* | aix5*) 7680 # On AIX/PPC, the GNU linker is very broken 7681 if test "$host_cpu" != ia64; then 7682 ld_shlibs=no 7683 cat <<EOF 1>&2 7684 7685*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7686*** to be unable to reliably create shared libraries on AIX. 7687*** Therefore, libtool is disabling shared libraries support. If you 7688*** really care for shared libraries, you may want to modify your PATH 7689*** so that a non-GNU linker is found, and then restart. 7690 7691EOF 7692 fi 7693 ;; 7694 7695 amigaos*) 7696 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)' 7697 hardcode_libdir_flag_spec='-L$libdir' 7698 hardcode_minus_L=yes 7699 7700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7701 # that the semantics of dynamic libraries on AmigaOS, at least up 7702 # to version 4, is to share data among multiple programs linked 7703 # with the same dynamic library. Since this doesn't match the 7704 # behavior of shared libraries on other platforms, we can't use 7705 # them. 7706 ld_shlibs=no 7707 ;; 7708 7709 beos*) 7710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7711 allow_undefined_flag=unsupported 7712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7713 # support --undefined. This deserves some investigation. FIXME 7714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7715 else 7716 ld_shlibs=no 7717 fi 7718 ;; 7719 7720 cygwin* | mingw* | pw32*) 7721 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7722 # as there is no search path for DLLs. 7723 hardcode_libdir_flag_spec='-L$libdir' 7724 allow_undefined_flag=unsupported 7725 always_export_symbols=no 7726 enable_shared_with_static_runtimes=yes 7727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7728 7729 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7731 # If the export-symbols file already is a .def file (1st line 7732 # is EXPORTS), use it as is; otherwise, prepend... 7733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7734 cp $export_symbols $output_objdir/$soname.def; 7735 else 7736 echo EXPORTS > $output_objdir/$soname.def; 7737 cat $export_symbols >> $output_objdir/$soname.def; 7738 fi~ 7739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7740 else 7741 ld_shlibs=no 7742 fi 7743 ;; 7744 7745 interix[3-9]*) 7746 hardcode_direct=no 7747 hardcode_shlibpath_var=no 7748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7749 export_dynamic_flag_spec='${wl}-E' 7750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7751 # Instead, shared libraries are loaded at an image base (0x10000000 by 7752 # default) and relocated if they conflict, which is a slow very memory 7753 # consuming and fragmenting process. To avoid this, we pick a random, 7754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7755 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7756 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7757 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' 7758 ;; 7759 7760 gnu* | linux* | k*bsd*-gnu) 7761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7762 tmp_addflag= 7763 case $cc_basename,$host_cpu in 7764 pgcc*) # Portland Group C compiler 7765 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' 7766 tmp_addflag=' $pic_flag' 7767 ;; 7768 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7769 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' 7770 tmp_addflag=' $pic_flag -Mnomain' ;; 7771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7772 tmp_addflag=' -i_dynamic' ;; 7773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7774 tmp_addflag=' -i_dynamic -nofor_main' ;; 7775 ifc* | ifort*) # Intel Fortran compiler 7776 tmp_addflag=' -nofor_main' ;; 7777 esac 7778 case `$CC -V 2>&1 | sed 5q` in 7779 *Sun\ C*) # Sun C 5.9 7780 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' 7781 tmp_sharedflag='-G' ;; 7782 *Sun\ F*) # Sun Fortran 8.3 7783 tmp_sharedflag='-G' ;; 7784 *) 7785 tmp_sharedflag='-shared' ;; 7786 esac 7787 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7788 7789 if test $supports_anon_versioning = yes; then 7790 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7792 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7793 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7794 fi 7795 else 7796 ld_shlibs=no 7797 fi 7798 ;; 7799 7800 netbsd*) 7801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7802 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7803 wlarc= 7804 else 7805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7807 fi 7808 ;; 7809 7810 solaris*) 7811 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7812 ld_shlibs=no 7813 cat <<EOF 1>&2 7814 7815*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7816*** create shared libraries on Solaris systems. Therefore, libtool 7817*** is disabling shared libraries support. We urge you to upgrade GNU 7818*** binutils to release 2.9.1 or newer. Another option is to modify 7819*** your PATH or compiler configuration so that the native linker is 7820*** used, and then restart. 7821 7822EOF 7823 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7826 else 7827 ld_shlibs=no 7828 fi 7829 ;; 7830 7831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7832 case `$LD -v 2>&1` in 7833 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7834 ld_shlibs=no 7835 cat <<_LT_EOF 1>&2 7836 7837*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7838*** reliably create shared libraries on SCO systems. Therefore, libtool 7839*** is disabling shared libraries support. We urge you to upgrade GNU 7840*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7841*** your PATH or compiler configuration so that the native linker is 7842*** used, and then restart. 7843 7844_LT_EOF 7845 ;; 7846 *) 7847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7848 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7851 else 7852 ld_shlibs=no 7853 fi 7854 ;; 7855 esac 7856 ;; 7857 7858 sunos4*) 7859 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7860 wlarc= 7861 hardcode_direct=yes 7862 hardcode_shlibpath_var=no 7863 ;; 7864 7865 *) 7866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7869 else 7870 ld_shlibs=no 7871 fi 7872 ;; 7873 esac 7874 7875 if test "$ld_shlibs" = no; then 7876 runpath_var= 7877 hardcode_libdir_flag_spec= 7878 export_dynamic_flag_spec= 7879 whole_archive_flag_spec= 7880 fi 7881 else 7882 # PORTME fill in a description of your system's linker (not GNU ld) 7883 case $host_os in 7884 aix3*) 7885 allow_undefined_flag=unsupported 7886 always_export_symbols=yes 7887 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' 7888 # Note: this linker hardcodes the directories in LIBPATH if there 7889 # are no directories specified by -L. 7890 hardcode_minus_L=yes 7891 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7892 # Neither direct hardcoding nor static linking is supported with a 7893 # broken collect2. 7894 hardcode_direct=unsupported 7895 fi 7896 ;; 7897 7898 aix4* | aix5*) 7899 if test "$host_cpu" = ia64; then 7900 # On IA64, the linker does run time linking by default, so we don't 7901 # have to do anything special. 7902 aix_use_runtimelinking=no 7903 exp_sym_flag='-Bexport' 7904 no_entry_flag="" 7905 else 7906 # If we're using GNU nm, then we don't want the "-C" option. 7907 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7908 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7909 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' 7910 else 7911 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' 7912 fi 7913 aix_use_runtimelinking=no 7914 7915 # Test if we are trying to use run time linking or normal 7916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7917 # need to do runtime linking. 7918 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7919 for ld_flag in $LDFLAGS; do 7920 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7921 aix_use_runtimelinking=yes 7922 break 7923 fi 7924 done 7925 ;; 7926 esac 7927 7928 exp_sym_flag='-bexport' 7929 no_entry_flag='-bnoentry' 7930 fi 7931 7932 # When large executables or shared objects are built, AIX ld can 7933 # have problems creating the table of contents. If linking a library 7934 # or program results in "error TOC overflow" add -mminimal-toc to 7935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7937 7938 archive_cmds='' 7939 hardcode_direct=yes 7940 hardcode_libdir_separator=':' 7941 link_all_deplibs=yes 7942 7943 if test "$GCC" = yes; then 7944 case $host_os in aix4.[012]|aix4.[012].*) 7945 # We only want to do this on AIX 4.2 and lower, the check 7946 # below for broken collect2 doesn't work under 4.3+ 7947 collect2name=`${CC} -print-prog-name=collect2` 7948 if test -f "$collect2name" && \ 7949 strings "$collect2name" | grep resolve_lib_name >/dev/null 7950 then 7951 # We have reworked collect2 7952 : 7953 else 7954 # We have old collect2 7955 hardcode_direct=unsupported 7956 # It fails to find uninstalled libraries when the uninstalled 7957 # path is not listed in the libpath. Setting hardcode_minus_L 7958 # to unsupported forces relinking 7959 hardcode_minus_L=yes 7960 hardcode_libdir_flag_spec='-L$libdir' 7961 hardcode_libdir_separator= 7962 fi 7963 ;; 7964 esac 7965 shared_flag='-shared' 7966 if test "$aix_use_runtimelinking" = yes; then 7967 shared_flag="$shared_flag "'${wl}-G' 7968 fi 7969 else 7970 # not using gcc 7971 if test "$host_cpu" = ia64; then 7972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7973 # chokes on -Wl,-G. The following line is correct: 7974 shared_flag='-G' 7975 else 7976 if test "$aix_use_runtimelinking" = yes; then 7977 shared_flag='${wl}-G' 7978 else 7979 shared_flag='${wl}-bM:SRE' 7980 fi 7981 fi 7982 fi 7983 7984 # It seems that -bexpall does not export symbols beginning with 7985 # underscore (_), so it is better to generate a list of symbols to export. 7986 always_export_symbols=yes 7987 if test "$aix_use_runtimelinking" = yes; then 7988 # Warning - without using the other runtime loading flags (-brtl), 7989 # -berok will link without error, but may produce a broken library. 7990 allow_undefined_flag='-berok' 7991 # Determine the default libpath from the value encoded in an empty executable. 7992 cat >conftest.$ac_ext <<_ACEOF 7993/* confdefs.h. */ 7994_ACEOF 7995cat confdefs.h >>conftest.$ac_ext 7996cat >>conftest.$ac_ext <<_ACEOF 7997/* end confdefs.h. */ 7998 7999int 8000main () 8001{ 8002 8003 ; 8004 return 0; 8005} 8006_ACEOF 8007rm -f conftest.$ac_objext conftest$ac_exeext 8008if { (ac_try="$ac_link" 8009case "(($ac_try" in 8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8011 *) ac_try_echo=$ac_try;; 8012esac 8013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8014 (eval "$ac_link") 2>conftest.er1 8015 ac_status=$? 8016 grep -v '^ *+' conftest.er1 >conftest.err 8017 rm -f conftest.er1 8018 cat conftest.err >&5 8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8020 (exit $ac_status); } && { 8021 test -z "$ac_c_werror_flag" || 8022 test ! -s conftest.err 8023 } && test -s conftest$ac_exeext && 8024 $as_test_x conftest$ac_exeext; then 8025 8026lt_aix_libpath_sed=' 8027 /Import File Strings/,/^$/ { 8028 /^0/ { 8029 s/^0 *\(.*\)$/\1/ 8030 p 8031 } 8032 }' 8033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8034# Check for a 64-bit object if we didn't find anything. 8035if test -z "$aix_libpath"; then 8036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8037fi 8038else 8039 echo "$as_me: failed program was:" >&5 8040sed 's/^/| /' conftest.$ac_ext >&5 8041 8042 8043fi 8044 8045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8046 conftest$ac_exeext conftest.$ac_ext 8047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8048 8049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8050 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" 8051 else 8052 if test "$host_cpu" = ia64; then 8053 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8054 allow_undefined_flag="-z nodefs" 8055 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" 8056 else 8057 # Determine the default libpath from the value encoded in an empty executable. 8058 cat >conftest.$ac_ext <<_ACEOF 8059/* confdefs.h. */ 8060_ACEOF 8061cat confdefs.h >>conftest.$ac_ext 8062cat >>conftest.$ac_ext <<_ACEOF 8063/* end confdefs.h. */ 8064 8065int 8066main () 8067{ 8068 8069 ; 8070 return 0; 8071} 8072_ACEOF 8073rm -f conftest.$ac_objext conftest$ac_exeext 8074if { (ac_try="$ac_link" 8075case "(($ac_try" in 8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8077 *) ac_try_echo=$ac_try;; 8078esac 8079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8080 (eval "$ac_link") 2>conftest.er1 8081 ac_status=$? 8082 grep -v '^ *+' conftest.er1 >conftest.err 8083 rm -f conftest.er1 8084 cat conftest.err >&5 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 (exit $ac_status); } && { 8087 test -z "$ac_c_werror_flag" || 8088 test ! -s conftest.err 8089 } && test -s conftest$ac_exeext && 8090 $as_test_x conftest$ac_exeext; then 8091 8092lt_aix_libpath_sed=' 8093 /Import File Strings/,/^$/ { 8094 /^0/ { 8095 s/^0 *\(.*\)$/\1/ 8096 p 8097 } 8098 }' 8099aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8100# Check for a 64-bit object if we didn't find anything. 8101if test -z "$aix_libpath"; then 8102 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8103fi 8104else 8105 echo "$as_me: failed program was:" >&5 8106sed 's/^/| /' conftest.$ac_ext >&5 8107 8108 8109fi 8110 8111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8112 conftest$ac_exeext conftest.$ac_ext 8113if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8114 8115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8116 # Warning - without using the other run time loading flags, 8117 # -berok will link without error, but may produce a broken library. 8118 no_undefined_flag=' ${wl}-bernotok' 8119 allow_undefined_flag=' ${wl}-berok' 8120 # Exported symbols can be pulled into shared objects from archives 8121 whole_archive_flag_spec='$convenience' 8122 archive_cmds_need_lc=yes 8123 # This is similar to how AIX traditionally builds its shared libraries. 8124 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' 8125 fi 8126 fi 8127 ;; 8128 8129 amigaos*) 8130 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)' 8131 hardcode_libdir_flag_spec='-L$libdir' 8132 hardcode_minus_L=yes 8133 # see comment about different semantics on the GNU ld section 8134 ld_shlibs=no 8135 ;; 8136 8137 bsdi[45]*) 8138 export_dynamic_flag_spec=-rdynamic 8139 ;; 8140 8141 cygwin* | mingw* | pw32*) 8142 # When not using gcc, we currently assume that we are using 8143 # Microsoft Visual C++. 8144 # hardcode_libdir_flag_spec is actually meaningless, as there is 8145 # no search path for DLLs. 8146 hardcode_libdir_flag_spec=' ' 8147 allow_undefined_flag=unsupported 8148 # Tell ltmain to make .lib files, not .a files. 8149 libext=lib 8150 # Tell ltmain to make .dll files, not .so files. 8151 shrext_cmds=".dll" 8152 # FIXME: Setting linknames here is a bad hack. 8153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8154 # The linker will automatically build a .lib file if we build a DLL. 8155 old_archive_From_new_cmds='true' 8156 # FIXME: Should let the user specify the lib program. 8157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8158 fix_srcfile_path='`cygpath -w "$srcfile"`' 8159 enable_shared_with_static_runtimes=yes 8160 ;; 8161 8162 darwin* | rhapsody*) 8163 case $host_os in 8164 rhapsody* | darwin1.[012]) 8165 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8166 ;; 8167 *) # Darwin 1.3 on 8168 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8169 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8170 else 8171 case ${MACOSX_DEPLOYMENT_TARGET} in 8172 10.[012]) 8173 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8174 ;; 8175 10.*) 8176 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8177 ;; 8178 esac 8179 fi 8180 ;; 8181 esac 8182 archive_cmds_need_lc=no 8183 hardcode_direct=no 8184 hardcode_automatic=yes 8185 hardcode_shlibpath_var=unsupported 8186 whole_archive_flag_spec='' 8187 link_all_deplibs=yes 8188 if test "$GCC" = yes ; then 8189 output_verbose_link_cmd='echo' 8190 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8191 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8193 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}' 8194 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}' 8195 else 8196 case $cc_basename in 8197 xlc*) 8198 output_verbose_link_cmd='echo' 8199 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8200 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8202 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}' 8203 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}' 8204 ;; 8205 *) 8206 ld_shlibs=no 8207 ;; 8208 esac 8209 fi 8210 ;; 8211 8212 dgux*) 8213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8214 hardcode_libdir_flag_spec='-L$libdir' 8215 hardcode_shlibpath_var=no 8216 ;; 8217 8218 freebsd1*) 8219 ld_shlibs=no 8220 ;; 8221 8222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8223 # support. Future versions do this automatically, but an explicit c++rt0.o 8224 # does not break anything, and helps significantly (at the cost of a little 8225 # extra space). 8226 freebsd2.2*) 8227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8228 hardcode_libdir_flag_spec='-R$libdir' 8229 hardcode_direct=yes 8230 hardcode_shlibpath_var=no 8231 ;; 8232 8233 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8234 freebsd2*) 8235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8236 hardcode_direct=yes 8237 hardcode_minus_L=yes 8238 hardcode_shlibpath_var=no 8239 ;; 8240 8241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8242 freebsd* | dragonfly*) 8243 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8244 hardcode_libdir_flag_spec='-R$libdir' 8245 hardcode_direct=yes 8246 hardcode_shlibpath_var=no 8247 ;; 8248 8249 hpux9*) 8250 if test "$GCC" = yes; then 8251 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' 8252 else 8253 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' 8254 fi 8255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8256 hardcode_libdir_separator=: 8257 hardcode_direct=yes 8258 8259 # hardcode_minus_L: Not really in the search PATH, 8260 # but as the default location of the library. 8261 hardcode_minus_L=yes 8262 export_dynamic_flag_spec='${wl}-E' 8263 ;; 8264 8265 hpux10*) 8266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8268 else 8269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8270 fi 8271 if test "$with_gnu_ld" = no; then 8272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8273 hardcode_libdir_separator=: 8274 8275 hardcode_direct=yes 8276 export_dynamic_flag_spec='${wl}-E' 8277 8278 # hardcode_minus_L: Not really in the search PATH, 8279 # but as the default location of the library. 8280 hardcode_minus_L=yes 8281 fi 8282 ;; 8283 8284 hpux11*) 8285 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8286 case $host_cpu in 8287 hppa*64*) 8288 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8289 ;; 8290 ia64*) 8291 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8292 ;; 8293 *) 8294 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8295 ;; 8296 esac 8297 else 8298 case $host_cpu in 8299 hppa*64*) 8300 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8301 ;; 8302 ia64*) 8303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8304 ;; 8305 *) 8306 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8307 ;; 8308 esac 8309 fi 8310 if test "$with_gnu_ld" = no; then 8311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8312 hardcode_libdir_separator=: 8313 8314 case $host_cpu in 8315 hppa*64*|ia64*) 8316 hardcode_libdir_flag_spec_ld='+b $libdir' 8317 hardcode_direct=no 8318 hardcode_shlibpath_var=no 8319 ;; 8320 *) 8321 hardcode_direct=yes 8322 export_dynamic_flag_spec='${wl}-E' 8323 8324 # hardcode_minus_L: Not really in the search PATH, 8325 # but as the default location of the library. 8326 hardcode_minus_L=yes 8327 ;; 8328 esac 8329 fi 8330 ;; 8331 8332 irix5* | irix6* | nonstopux*) 8333 if test "$GCC" = yes; then 8334 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' 8335 else 8336 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' 8337 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8338 fi 8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8340 hardcode_libdir_separator=: 8341 link_all_deplibs=yes 8342 ;; 8343 8344 netbsd*) 8345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8347 else 8348 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8349 fi 8350 hardcode_libdir_flag_spec='-R$libdir' 8351 hardcode_direct=yes 8352 hardcode_shlibpath_var=no 8353 ;; 8354 8355 newsos6) 8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8357 hardcode_direct=yes 8358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8359 hardcode_libdir_separator=: 8360 hardcode_shlibpath_var=no 8361 ;; 8362 8363 openbsd*) 8364 if test -f /usr/libexec/ld.so; then 8365 hardcode_direct=yes 8366 hardcode_shlibpath_var=no 8367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8368 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8369 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8371 export_dynamic_flag_spec='${wl}-E' 8372 else 8373 case $host_os in 8374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8376 hardcode_libdir_flag_spec='-R$libdir' 8377 ;; 8378 *) 8379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8381 ;; 8382 esac 8383 fi 8384 else 8385 ld_shlibs=no 8386 fi 8387 ;; 8388 8389 os2*) 8390 hardcode_libdir_flag_spec='-L$libdir' 8391 hardcode_minus_L=yes 8392 allow_undefined_flag=unsupported 8393 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' 8394 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8395 ;; 8396 8397 osf3*) 8398 if test "$GCC" = yes; then 8399 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8400 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' 8401 else 8402 allow_undefined_flag=' -expect_unresolved \*' 8403 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' 8404 fi 8405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8406 hardcode_libdir_separator=: 8407 ;; 8408 8409 osf4* | osf5*) # as osf3* with the addition of -msym flag 8410 if test "$GCC" = yes; then 8411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8412 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' 8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8414 else 8415 allow_undefined_flag=' -expect_unresolved \*' 8416 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' 8417 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8418 $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' 8419 8420 # Both c and cxx compiler support -rpath directly 8421 hardcode_libdir_flag_spec='-rpath $libdir' 8422 fi 8423 hardcode_libdir_separator=: 8424 ;; 8425 8426 solaris*) 8427 no_undefined_flag=' -z text' 8428 if test "$GCC" = yes; then 8429 wlarc='${wl}' 8430 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8431 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8432 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8433 else 8434 wlarc='' 8435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8436 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8438 fi 8439 hardcode_libdir_flag_spec='-R$libdir' 8440 hardcode_shlibpath_var=no 8441 case $host_os in 8442 solaris2.[0-5] | solaris2.[0-5].*) ;; 8443 *) 8444 # The compiler driver will combine and reorder linker options, 8445 # but understands `-z linker_flag'. GCC discards it without `$wl', 8446 # but is careful enough not to reorder. 8447 # Supported since Solaris 2.6 (maybe 2.5.1?) 8448 if test "$GCC" = yes; then 8449 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8450 else 8451 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8452 fi 8453 ;; 8454 esac 8455 link_all_deplibs=yes 8456 ;; 8457 8458 sunos4*) 8459 if test "x$host_vendor" = xsequent; then 8460 # Use $CC to link under sequent, because it throws in some extra .o 8461 # files that make .init and .fini sections work. 8462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8463 else 8464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8465 fi 8466 hardcode_libdir_flag_spec='-L$libdir' 8467 hardcode_direct=yes 8468 hardcode_minus_L=yes 8469 hardcode_shlibpath_var=no 8470 ;; 8471 8472 sysv4) 8473 case $host_vendor in 8474 sni) 8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8476 hardcode_direct=yes # is this really true??? 8477 ;; 8478 siemens) 8479 ## LD is ld it makes a PLAMLIB 8480 ## CC just makes a GrossModule. 8481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8482 reload_cmds='$CC -r -o $output$reload_objs' 8483 hardcode_direct=no 8484 ;; 8485 motorola) 8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8487 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8488 ;; 8489 esac 8490 runpath_var='LD_RUN_PATH' 8491 hardcode_shlibpath_var=no 8492 ;; 8493 8494 sysv4.3*) 8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8496 hardcode_shlibpath_var=no 8497 export_dynamic_flag_spec='-Bexport' 8498 ;; 8499 8500 sysv4*MP*) 8501 if test -d /usr/nec; then 8502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8503 hardcode_shlibpath_var=no 8504 runpath_var=LD_RUN_PATH 8505 hardcode_runpath_var=yes 8506 ld_shlibs=yes 8507 fi 8508 ;; 8509 8510 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8511 no_undefined_flag='${wl}-z,text' 8512 archive_cmds_need_lc=no 8513 hardcode_shlibpath_var=no 8514 runpath_var='LD_RUN_PATH' 8515 8516 if test "$GCC" = yes; then 8517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8519 else 8520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8522 fi 8523 ;; 8524 8525 sysv5* | sco3.2v5* | sco5v6*) 8526 # Note: We can NOT use -z defs as we might desire, because we do not 8527 # link with -lc, and that would cause any symbols used from libc to 8528 # always be unresolved, which means just about no library would 8529 # ever link correctly. If we're not using GNU ld we use -z text 8530 # though, which does catch some bad symbols but isn't as heavy-handed 8531 # as -z defs. 8532 no_undefined_flag='${wl}-z,text' 8533 allow_undefined_flag='${wl}-z,nodefs' 8534 archive_cmds_need_lc=no 8535 hardcode_shlibpath_var=no 8536 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8537 hardcode_libdir_separator=':' 8538 link_all_deplibs=yes 8539 export_dynamic_flag_spec='${wl}-Bexport' 8540 runpath_var='LD_RUN_PATH' 8541 8542 if test "$GCC" = yes; then 8543 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8544 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8545 else 8546 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8547 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8548 fi 8549 ;; 8550 8551 uts4*) 8552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8553 hardcode_libdir_flag_spec='-L$libdir' 8554 hardcode_shlibpath_var=no 8555 ;; 8556 8557 *) 8558 ld_shlibs=no 8559 ;; 8560 esac 8561 fi 8562 8563{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8564echo "${ECHO_T}$ld_shlibs" >&6; } 8565test "$ld_shlibs" = no && can_build_shared=no 8566 8567# 8568# Do we need to explicitly link libc? 8569# 8570case "x$archive_cmds_need_lc" in 8571x|xyes) 8572 # Assume -lc should be added 8573 archive_cmds_need_lc=yes 8574 8575 if test "$enable_shared" = yes && test "$GCC" = yes; then 8576 case $archive_cmds in 8577 *'~'*) 8578 # FIXME: we may have to deal with multi-command sequences. 8579 ;; 8580 '$CC '*) 8581 # Test whether the compiler implicitly links with -lc since on some 8582 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8583 # to ld, don't add -lc before -lgcc. 8584 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8585echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8586 $rm conftest* 8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8588 8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8590 (eval $ac_compile) 2>&5 8591 ac_status=$? 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); } 2>conftest.err; then 8594 soname=conftest 8595 lib=conftest 8596 libobjs=conftest.$ac_objext 8597 deplibs= 8598 wl=$lt_prog_compiler_wl 8599 pic_flag=$lt_prog_compiler_pic 8600 compiler_flags=-v 8601 linker_flags=-v 8602 verstring= 8603 output_objdir=. 8604 libname=conftest 8605 lt_save_allow_undefined_flag=$allow_undefined_flag 8606 allow_undefined_flag= 8607 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8608 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8609 ac_status=$? 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 (exit $ac_status); } 8612 then 8613 archive_cmds_need_lc=no 8614 else 8615 archive_cmds_need_lc=yes 8616 fi 8617 allow_undefined_flag=$lt_save_allow_undefined_flag 8618 else 8619 cat conftest.err 1>&5 8620 fi 8621 $rm conftest* 8622 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8623echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8624 ;; 8625 esac 8626 fi 8627 ;; 8628esac 8629 8630{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8631echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8632library_names_spec= 8633libname_spec='lib$name' 8634soname_spec= 8635shrext_cmds=".so" 8636postinstall_cmds= 8637postuninstall_cmds= 8638finish_cmds= 8639finish_eval= 8640shlibpath_var= 8641shlibpath_overrides_runpath=unknown 8642version_type=none 8643dynamic_linker="$host_os ld.so" 8644sys_lib_dlsearch_path_spec="/lib /usr/lib" 8645 8646if test "$GCC" = yes; then 8647 case $host_os in 8648 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8649 *) lt_awk_arg="/^libraries:/" ;; 8650 esac 8651 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8652 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8653 # if the path contains ";" then we assume it to be the separator 8654 # otherwise default to the standard path separator (i.e. ":") - it is 8655 # assumed that no part of a normal pathname contains ";" but that should 8656 # okay in the real world where ";" in dirpaths is itself problematic. 8657 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8658 else 8659 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8660 fi 8661 # Ok, now we have the path, separated by spaces, we can step through it 8662 # and add multilib dir if necessary. 8663 lt_tmp_lt_search_path_spec= 8664 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8665 for lt_sys_path in $lt_search_path_spec; do 8666 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8667 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8668 else 8669 test -d "$lt_sys_path" && \ 8670 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8671 fi 8672 done 8673 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8674BEGIN {RS=" "; FS="/|\n";} { 8675 lt_foo=""; 8676 lt_count=0; 8677 for (lt_i = NF; lt_i > 0; lt_i--) { 8678 if ($lt_i != "" && $lt_i != ".") { 8679 if ($lt_i == "..") { 8680 lt_count++; 8681 } else { 8682 if (lt_count == 0) { 8683 lt_foo="/" $lt_i lt_foo; 8684 } else { 8685 lt_count--; 8686 } 8687 } 8688 } 8689 } 8690 if (lt_foo != "") { lt_freq[lt_foo]++; } 8691 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8692}'` 8693 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8694else 8695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8696fi 8697need_lib_prefix=unknown 8698hardcode_into_libs=no 8699 8700# when you set need_version to no, make sure it does not cause -set_version 8701# flags to be left without arguments 8702need_version=unknown 8703 8704case $host_os in 8705aix3*) 8706 version_type=linux 8707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8708 shlibpath_var=LIBPATH 8709 8710 # AIX 3 has no versioning support, so we append a major version to the name. 8711 soname_spec='${libname}${release}${shared_ext}$major' 8712 ;; 8713 8714aix4* | aix5*) 8715 version_type=linux 8716 need_lib_prefix=no 8717 need_version=no 8718 hardcode_into_libs=yes 8719 if test "$host_cpu" = ia64; then 8720 # AIX 5 supports IA64 8721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8722 shlibpath_var=LD_LIBRARY_PATH 8723 else 8724 # With GCC up to 2.95.x, collect2 would create an import file 8725 # for dependence libraries. The import file would start with 8726 # the line `#! .'. This would cause the generated library to 8727 # depend on `.', always an invalid library. This was fixed in 8728 # development snapshots of GCC prior to 3.0. 8729 case $host_os in 8730 aix4 | aix4.[01] | aix4.[01].*) 8731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8732 echo ' yes ' 8733 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8734 : 8735 else 8736 can_build_shared=no 8737 fi 8738 ;; 8739 esac 8740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8741 # soname into executable. Probably we can add versioning support to 8742 # collect2, so additional links can be useful in future. 8743 if test "$aix_use_runtimelinking" = yes; then 8744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8745 # instead of lib<name>.a to let people know that these are not 8746 # typical AIX shared libraries. 8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8748 else 8749 # We preserve .a as extension for shared libraries through AIX4.2 8750 # and later when we are not doing run time linking. 8751 library_names_spec='${libname}${release}.a $libname.a' 8752 soname_spec='${libname}${release}${shared_ext}$major' 8753 fi 8754 shlibpath_var=LIBPATH 8755 fi 8756 ;; 8757 8758amigaos*) 8759 library_names_spec='$libname.ixlibrary $libname.a' 8760 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8761 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' 8762 ;; 8763 8764beos*) 8765 library_names_spec='${libname}${shared_ext}' 8766 dynamic_linker="$host_os ld.so" 8767 shlibpath_var=LIBRARY_PATH 8768 ;; 8769 8770bsdi[45]*) 8771 version_type=linux 8772 need_version=no 8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8774 soname_spec='${libname}${release}${shared_ext}$major' 8775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8776 shlibpath_var=LD_LIBRARY_PATH 8777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8779 # the default ld.so.conf also contains /usr/contrib/lib and 8780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8781 # libtool to hard-code these into programs 8782 ;; 8783 8784cygwin* | mingw* | pw32*) 8785 version_type=windows 8786 shrext_cmds=".dll" 8787 need_version=no 8788 need_lib_prefix=no 8789 8790 case $GCC,$host_os in 8791 yes,cygwin* | yes,mingw* | yes,pw32*) 8792 library_names_spec='$libname.dll.a' 8793 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8794 postinstall_cmds='base_file=`basename \${file}`~ 8795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8796 dldir=$destdir/`dirname \$dlpath`~ 8797 test -d \$dldir || mkdir -p \$dldir~ 8798 $install_prog $dir/$dlname \$dldir/$dlname~ 8799 chmod a+x \$dldir/$dlname' 8800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8801 dlpath=$dir/\$dldll~ 8802 $rm \$dlpath' 8803 shlibpath_overrides_runpath=yes 8804 8805 case $host_os in 8806 cygwin*) 8807 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8810 ;; 8811 mingw*) 8812 # MinGW DLLs use traditional 'lib' prefix 8813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8815 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8816 # It is most probably a Windows format PATH printed by 8817 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8818 # path with ; separators, and with drive letters. We can handle the 8819 # drive letters (cygwin fileutils understands them), so leave them, 8820 # especially as we might pass files found there to a mingw objdump, 8821 # which wouldn't understand a cygwinified path. Ahh. 8822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8823 else 8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8825 fi 8826 ;; 8827 pw32*) 8828 # pw32 DLLs use 'pw' prefix rather than 'lib' 8829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8830 ;; 8831 esac 8832 ;; 8833 8834 *) 8835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8836 ;; 8837 esac 8838 dynamic_linker='Win32 ld.exe' 8839 # FIXME: first we should search . and the directory the executable is in 8840 shlibpath_var=PATH 8841 ;; 8842 8843darwin* | rhapsody*) 8844 dynamic_linker="$host_os dyld" 8845 version_type=darwin 8846 need_lib_prefix=no 8847 need_version=no 8848 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8849 soname_spec='${libname}${release}${major}$shared_ext' 8850 shlibpath_overrides_runpath=yes 8851 shlibpath_var=DYLD_LIBRARY_PATH 8852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8853 8854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8856 ;; 8857 8858dgux*) 8859 version_type=linux 8860 need_lib_prefix=no 8861 need_version=no 8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8863 soname_spec='${libname}${release}${shared_ext}$major' 8864 shlibpath_var=LD_LIBRARY_PATH 8865 ;; 8866 8867freebsd1*) 8868 dynamic_linker=no 8869 ;; 8870 8871freebsd* | dragonfly*) 8872 # DragonFly does not have aout. When/if they implement a new 8873 # versioning mechanism, adjust this. 8874 if test -x /usr/bin/objformat; then 8875 objformat=`/usr/bin/objformat` 8876 else 8877 case $host_os in 8878 freebsd[123]*) objformat=aout ;; 8879 *) objformat=elf ;; 8880 esac 8881 fi 8882 version_type=freebsd-$objformat 8883 case $version_type in 8884 freebsd-elf*) 8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8886 need_version=no 8887 need_lib_prefix=no 8888 ;; 8889 freebsd-*) 8890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8891 need_version=yes 8892 ;; 8893 esac 8894 shlibpath_var=LD_LIBRARY_PATH 8895 case $host_os in 8896 freebsd2*) 8897 shlibpath_overrides_runpath=yes 8898 ;; 8899 freebsd3.[01]* | freebsdelf3.[01]*) 8900 shlibpath_overrides_runpath=yes 8901 hardcode_into_libs=yes 8902 ;; 8903 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8904 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8905 shlibpath_overrides_runpath=no 8906 hardcode_into_libs=yes 8907 ;; 8908 *) # from 4.6 on, and DragonFly 8909 shlibpath_overrides_runpath=yes 8910 hardcode_into_libs=yes 8911 ;; 8912 esac 8913 ;; 8914 8915gnu*) 8916 version_type=linux 8917 need_lib_prefix=no 8918 need_version=no 8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8920 soname_spec='${libname}${release}${shared_ext}$major' 8921 shlibpath_var=LD_LIBRARY_PATH 8922 hardcode_into_libs=yes 8923 ;; 8924 8925hpux9* | hpux10* | hpux11*) 8926 # Give a soname corresponding to the major version so that dld.sl refuses to 8927 # link against other versions. 8928 version_type=sunos 8929 need_lib_prefix=no 8930 need_version=no 8931 case $host_cpu in 8932 ia64*) 8933 shrext_cmds='.so' 8934 hardcode_into_libs=yes 8935 dynamic_linker="$host_os dld.so" 8936 shlibpath_var=LD_LIBRARY_PATH 8937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8939 soname_spec='${libname}${release}${shared_ext}$major' 8940 if test "X$HPUX_IA64_MODE" = X32; then 8941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8942 else 8943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8944 fi 8945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8946 ;; 8947 hppa*64*) 8948 shrext_cmds='.sl' 8949 hardcode_into_libs=yes 8950 dynamic_linker="$host_os dld.sl" 8951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8954 soname_spec='${libname}${release}${shared_ext}$major' 8955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8957 ;; 8958 *) 8959 shrext_cmds='.sl' 8960 dynamic_linker="$host_os dld.sl" 8961 shlibpath_var=SHLIB_PATH 8962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8964 soname_spec='${libname}${release}${shared_ext}$major' 8965 ;; 8966 esac 8967 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8968 postinstall_cmds='chmod 555 $lib' 8969 ;; 8970 8971interix[3-9]*) 8972 version_type=linux 8973 need_lib_prefix=no 8974 need_version=no 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8976 soname_spec='${libname}${release}${shared_ext}$major' 8977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8978 shlibpath_var=LD_LIBRARY_PATH 8979 shlibpath_overrides_runpath=no 8980 hardcode_into_libs=yes 8981 ;; 8982 8983irix5* | irix6* | nonstopux*) 8984 case $host_os in 8985 nonstopux*) version_type=nonstopux ;; 8986 *) 8987 if test "$lt_cv_prog_gnu_ld" = yes; then 8988 version_type=linux 8989 else 8990 version_type=irix 8991 fi ;; 8992 esac 8993 need_lib_prefix=no 8994 need_version=no 8995 soname_spec='${libname}${release}${shared_ext}$major' 8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8997 case $host_os in 8998 irix5* | nonstopux*) 8999 libsuff= shlibsuff= 9000 ;; 9001 *) 9002 case $LD in # libtool.m4 will add one of these switches to LD 9003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9004 libsuff= shlibsuff= libmagic=32-bit;; 9005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9006 libsuff=32 shlibsuff=N32 libmagic=N32;; 9007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9008 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9009 *) libsuff= shlibsuff= libmagic=never-match;; 9010 esac 9011 ;; 9012 esac 9013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9014 shlibpath_overrides_runpath=no 9015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9017 hardcode_into_libs=yes 9018 ;; 9019 9020# No shared lib support for Linux oldld, aout, or coff. 9021linux*oldld* | linux*aout* | linux*coff*) 9022 dynamic_linker=no 9023 ;; 9024 9025# This must be Linux ELF. 9026linux* | k*bsd*-gnu) 9027 version_type=linux 9028 need_lib_prefix=no 9029 need_version=no 9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9033 shlibpath_var=LD_LIBRARY_PATH 9034 shlibpath_overrides_runpath=no 9035 # This implies no fast_install, which is unacceptable. 9036 # Some rework will be needed to allow for fast_install 9037 # before this can be enabled. 9038 hardcode_into_libs=yes 9039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9041 9042 # Append ld.so.conf contents to the search path 9043 if test -f /etc/ld.so.conf; then 9044 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' ' '` 9045 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9046 fi 9047 9048 # We used to test for /lib/ld.so.1 and disable shared libraries on 9049 # powerpc, because MkLinux only supported shared libraries with the 9050 # GNU dynamic linker. Since this was broken with cross compilers, 9051 # most powerpc-linux boxes support dynamic linking these days and 9052 # people can always --disable-shared, the test was removed, and we 9053 # assume the GNU/Linux dynamic linker is in use. 9054 dynamic_linker='GNU/Linux ld.so' 9055 ;; 9056 9057netbsd*) 9058 version_type=sunos 9059 need_lib_prefix=no 9060 need_version=no 9061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9064 dynamic_linker='NetBSD (a.out) ld.so' 9065 else 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9067 soname_spec='${libname}${release}${shared_ext}$major' 9068 dynamic_linker='NetBSD ld.elf_so' 9069 fi 9070 shlibpath_var=LD_LIBRARY_PATH 9071 shlibpath_overrides_runpath=yes 9072 hardcode_into_libs=yes 9073 ;; 9074 9075newsos6) 9076 version_type=linux 9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9078 shlibpath_var=LD_LIBRARY_PATH 9079 shlibpath_overrides_runpath=yes 9080 ;; 9081 9082nto-qnx*) 9083 version_type=linux 9084 need_lib_prefix=no 9085 need_version=no 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9087 soname_spec='${libname}${release}${shared_ext}$major' 9088 shlibpath_var=LD_LIBRARY_PATH 9089 shlibpath_overrides_runpath=yes 9090 ;; 9091 9092openbsd*) 9093 version_type=sunos 9094 sys_lib_dlsearch_path_spec="/usr/lib" 9095 need_lib_prefix=no 9096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9097 case $host_os in 9098 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9099 *) need_version=no ;; 9100 esac 9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9103 shlibpath_var=LD_LIBRARY_PATH 9104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9105 case $host_os in 9106 openbsd2.[89] | openbsd2.[89].*) 9107 shlibpath_overrides_runpath=no 9108 ;; 9109 *) 9110 shlibpath_overrides_runpath=yes 9111 ;; 9112 esac 9113 else 9114 shlibpath_overrides_runpath=yes 9115 fi 9116 ;; 9117 9118os2*) 9119 libname_spec='$name' 9120 shrext_cmds=".dll" 9121 need_lib_prefix=no 9122 library_names_spec='$libname${shared_ext} $libname.a' 9123 dynamic_linker='OS/2 ld.exe' 9124 shlibpath_var=LIBPATH 9125 ;; 9126 9127osf3* | osf4* | osf5*) 9128 version_type=osf 9129 need_lib_prefix=no 9130 need_version=no 9131 soname_spec='${libname}${release}${shared_ext}$major' 9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9133 shlibpath_var=LD_LIBRARY_PATH 9134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9136 ;; 9137 9138rdos*) 9139 dynamic_linker=no 9140 ;; 9141 9142solaris*) 9143 version_type=linux 9144 need_lib_prefix=no 9145 need_version=no 9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9147 soname_spec='${libname}${release}${shared_ext}$major' 9148 shlibpath_var=LD_LIBRARY_PATH 9149 shlibpath_overrides_runpath=yes 9150 hardcode_into_libs=yes 9151 # ldd complains unless libraries are executable 9152 postinstall_cmds='chmod +x $lib' 9153 ;; 9154 9155sunos4*) 9156 version_type=sunos 9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9159 shlibpath_var=LD_LIBRARY_PATH 9160 shlibpath_overrides_runpath=yes 9161 if test "$with_gnu_ld" = yes; then 9162 need_lib_prefix=no 9163 fi 9164 need_version=yes 9165 ;; 9166 9167sysv4 | sysv4.3*) 9168 version_type=linux 9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9170 soname_spec='${libname}${release}${shared_ext}$major' 9171 shlibpath_var=LD_LIBRARY_PATH 9172 case $host_vendor in 9173 sni) 9174 shlibpath_overrides_runpath=no 9175 need_lib_prefix=no 9176 export_dynamic_flag_spec='${wl}-Blargedynsym' 9177 runpath_var=LD_RUN_PATH 9178 ;; 9179 siemens) 9180 need_lib_prefix=no 9181 ;; 9182 motorola) 9183 need_lib_prefix=no 9184 need_version=no 9185 shlibpath_overrides_runpath=no 9186 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9187 ;; 9188 esac 9189 ;; 9190 9191sysv4*MP*) 9192 if test -d /usr/nec ;then 9193 version_type=linux 9194 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9195 soname_spec='$libname${shared_ext}.$major' 9196 shlibpath_var=LD_LIBRARY_PATH 9197 fi 9198 ;; 9199 9200sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9201 version_type=freebsd-elf 9202 need_lib_prefix=no 9203 need_version=no 9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9205 soname_spec='${libname}${release}${shared_ext}$major' 9206 shlibpath_var=LD_LIBRARY_PATH 9207 hardcode_into_libs=yes 9208 if test "$with_gnu_ld" = yes; then 9209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9210 shlibpath_overrides_runpath=no 9211 else 9212 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9213 shlibpath_overrides_runpath=yes 9214 case $host_os in 9215 sco3.2v5*) 9216 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9217 ;; 9218 esac 9219 fi 9220 sys_lib_dlsearch_path_spec='/usr/lib' 9221 ;; 9222 9223uts4*) 9224 version_type=linux 9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9226 soname_spec='${libname}${release}${shared_ext}$major' 9227 shlibpath_var=LD_LIBRARY_PATH 9228 ;; 9229 9230*) 9231 dynamic_linker=no 9232 ;; 9233esac 9234{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9235echo "${ECHO_T}$dynamic_linker" >&6; } 9236test "$dynamic_linker" = no && can_build_shared=no 9237 9238variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9239if test "$GCC" = yes; then 9240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9241fi 9242 9243{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9244echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9245hardcode_action= 9246if test -n "$hardcode_libdir_flag_spec" || \ 9247 test -n "$runpath_var" || \ 9248 test "X$hardcode_automatic" = "Xyes" ; then 9249 9250 # We can hardcode non-existant directories. 9251 if test "$hardcode_direct" != no && 9252 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9253 # have to relink, otherwise we might link with an installed library 9254 # when we should be linking with a yet-to-be-installed one 9255 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9256 test "$hardcode_minus_L" != no; then 9257 # Linking always hardcodes the temporary library directory. 9258 hardcode_action=relink 9259 else 9260 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9261 hardcode_action=immediate 9262 fi 9263else 9264 # We cannot hardcode anything, or else we can only hardcode existing 9265 # directories. 9266 hardcode_action=unsupported 9267fi 9268{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9269echo "${ECHO_T}$hardcode_action" >&6; } 9270 9271if test "$hardcode_action" = relink; then 9272 # Fast installation is not supported 9273 enable_fast_install=no 9274elif test "$shlibpath_overrides_runpath" = yes || 9275 test "$enable_shared" = no; then 9276 # Fast installation is not necessary 9277 enable_fast_install=needless 9278fi 9279 9280striplib= 9281old_striplib= 9282{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9283echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9284if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9286 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9287 { echo "$as_me:$LINENO: result: yes" >&5 9288echo "${ECHO_T}yes" >&6; } 9289else 9290# FIXME - insert some real tests, host_os isn't really good enough 9291 case $host_os in 9292 darwin*) 9293 if test -n "$STRIP" ; then 9294 striplib="$STRIP -x" 9295 old_striplib="$STRIP -S" 9296 { echo "$as_me:$LINENO: result: yes" >&5 9297echo "${ECHO_T}yes" >&6; } 9298 else 9299 { echo "$as_me:$LINENO: result: no" >&5 9300echo "${ECHO_T}no" >&6; } 9301fi 9302 ;; 9303 *) 9304 { echo "$as_me:$LINENO: result: no" >&5 9305echo "${ECHO_T}no" >&6; } 9306 ;; 9307 esac 9308fi 9309 9310if test "x$enable_dlopen" != xyes; then 9311 enable_dlopen=unknown 9312 enable_dlopen_self=unknown 9313 enable_dlopen_self_static=unknown 9314else 9315 lt_cv_dlopen=no 9316 lt_cv_dlopen_libs= 9317 9318 case $host_os in 9319 beos*) 9320 lt_cv_dlopen="load_add_on" 9321 lt_cv_dlopen_libs= 9322 lt_cv_dlopen_self=yes 9323 ;; 9324 9325 mingw* | pw32*) 9326 lt_cv_dlopen="LoadLibrary" 9327 lt_cv_dlopen_libs= 9328 ;; 9329 9330 cygwin*) 9331 lt_cv_dlopen="dlopen" 9332 lt_cv_dlopen_libs= 9333 ;; 9334 9335 darwin*) 9336 # if libdl is installed we need to link against it 9337 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9338echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9339if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9340 echo $ECHO_N "(cached) $ECHO_C" >&6 9341else 9342 ac_check_lib_save_LIBS=$LIBS 9343LIBS="-ldl $LIBS" 9344cat >conftest.$ac_ext <<_ACEOF 9345/* confdefs.h. */ 9346_ACEOF 9347cat confdefs.h >>conftest.$ac_ext 9348cat >>conftest.$ac_ext <<_ACEOF 9349/* end confdefs.h. */ 9350 9351/* Override any GCC internal prototype to avoid an error. 9352 Use char because int might match the return type of a GCC 9353 builtin and then its argument prototype would still apply. */ 9354#ifdef __cplusplus 9355extern "C" 9356#endif 9357char dlopen (); 9358int 9359main () 9360{ 9361return dlopen (); 9362 ; 9363 return 0; 9364} 9365_ACEOF 9366rm -f conftest.$ac_objext conftest$ac_exeext 9367if { (ac_try="$ac_link" 9368case "(($ac_try" in 9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9370 *) ac_try_echo=$ac_try;; 9371esac 9372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9373 (eval "$ac_link") 2>conftest.er1 9374 ac_status=$? 9375 grep -v '^ *+' conftest.er1 >conftest.err 9376 rm -f conftest.er1 9377 cat conftest.err >&5 9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9379 (exit $ac_status); } && { 9380 test -z "$ac_c_werror_flag" || 9381 test ! -s conftest.err 9382 } && test -s conftest$ac_exeext && 9383 $as_test_x conftest$ac_exeext; then 9384 ac_cv_lib_dl_dlopen=yes 9385else 9386 echo "$as_me: failed program was:" >&5 9387sed 's/^/| /' conftest.$ac_ext >&5 9388 9389 ac_cv_lib_dl_dlopen=no 9390fi 9391 9392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9393 conftest$ac_exeext conftest.$ac_ext 9394LIBS=$ac_check_lib_save_LIBS 9395fi 9396{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9398if test $ac_cv_lib_dl_dlopen = yes; then 9399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9400else 9401 9402 lt_cv_dlopen="dyld" 9403 lt_cv_dlopen_libs= 9404 lt_cv_dlopen_self=yes 9405 9406fi 9407 9408 ;; 9409 9410 *) 9411 { echo "$as_me:$LINENO: checking for shl_load" >&5 9412echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9413if test "${ac_cv_func_shl_load+set}" = set; then 9414 echo $ECHO_N "(cached) $ECHO_C" >&6 9415else 9416 cat >conftest.$ac_ext <<_ACEOF 9417/* confdefs.h. */ 9418_ACEOF 9419cat confdefs.h >>conftest.$ac_ext 9420cat >>conftest.$ac_ext <<_ACEOF 9421/* end confdefs.h. */ 9422/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9424#define shl_load innocuous_shl_load 9425 9426/* System header to define __stub macros and hopefully few prototypes, 9427 which can conflict with char shl_load (); below. 9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9429 <limits.h> exists even on freestanding compilers. */ 9430 9431#ifdef __STDC__ 9432# include <limits.h> 9433#else 9434# include <assert.h> 9435#endif 9436 9437#undef shl_load 9438 9439/* Override any GCC internal prototype to avoid an error. 9440 Use char because int might match the return type of a GCC 9441 builtin and then its argument prototype would still apply. */ 9442#ifdef __cplusplus 9443extern "C" 9444#endif 9445char shl_load (); 9446/* The GNU C library defines this for functions which it implements 9447 to always fail with ENOSYS. Some functions are actually named 9448 something starting with __ and the normal name is an alias. */ 9449#if defined __stub_shl_load || defined __stub___shl_load 9450choke me 9451#endif 9452 9453int 9454main () 9455{ 9456return shl_load (); 9457 ; 9458 return 0; 9459} 9460_ACEOF 9461rm -f conftest.$ac_objext conftest$ac_exeext 9462if { (ac_try="$ac_link" 9463case "(($ac_try" in 9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9465 *) ac_try_echo=$ac_try;; 9466esac 9467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9468 (eval "$ac_link") 2>conftest.er1 9469 ac_status=$? 9470 grep -v '^ *+' conftest.er1 >conftest.err 9471 rm -f conftest.er1 9472 cat conftest.err >&5 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); } && { 9475 test -z "$ac_c_werror_flag" || 9476 test ! -s conftest.err 9477 } && test -s conftest$ac_exeext && 9478 $as_test_x conftest$ac_exeext; then 9479 ac_cv_func_shl_load=yes 9480else 9481 echo "$as_me: failed program was:" >&5 9482sed 's/^/| /' conftest.$ac_ext >&5 9483 9484 ac_cv_func_shl_load=no 9485fi 9486 9487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9488 conftest$ac_exeext conftest.$ac_ext 9489fi 9490{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9491echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9492if test $ac_cv_func_shl_load = yes; then 9493 lt_cv_dlopen="shl_load" 9494else 9495 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9496echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9497if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9498 echo $ECHO_N "(cached) $ECHO_C" >&6 9499else 9500 ac_check_lib_save_LIBS=$LIBS 9501LIBS="-ldld $LIBS" 9502cat >conftest.$ac_ext <<_ACEOF 9503/* confdefs.h. */ 9504_ACEOF 9505cat confdefs.h >>conftest.$ac_ext 9506cat >>conftest.$ac_ext <<_ACEOF 9507/* end confdefs.h. */ 9508 9509/* Override any GCC internal prototype to avoid an error. 9510 Use char because int might match the return type of a GCC 9511 builtin and then its argument prototype would still apply. */ 9512#ifdef __cplusplus 9513extern "C" 9514#endif 9515char shl_load (); 9516int 9517main () 9518{ 9519return shl_load (); 9520 ; 9521 return 0; 9522} 9523_ACEOF 9524rm -f conftest.$ac_objext conftest$ac_exeext 9525if { (ac_try="$ac_link" 9526case "(($ac_try" in 9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9528 *) ac_try_echo=$ac_try;; 9529esac 9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9531 (eval "$ac_link") 2>conftest.er1 9532 ac_status=$? 9533 grep -v '^ *+' conftest.er1 >conftest.err 9534 rm -f conftest.er1 9535 cat conftest.err >&5 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } && { 9538 test -z "$ac_c_werror_flag" || 9539 test ! -s conftest.err 9540 } && test -s conftest$ac_exeext && 9541 $as_test_x conftest$ac_exeext; then 9542 ac_cv_lib_dld_shl_load=yes 9543else 9544 echo "$as_me: failed program was:" >&5 9545sed 's/^/| /' conftest.$ac_ext >&5 9546 9547 ac_cv_lib_dld_shl_load=no 9548fi 9549 9550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9551 conftest$ac_exeext conftest.$ac_ext 9552LIBS=$ac_check_lib_save_LIBS 9553fi 9554{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9555echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9556if test $ac_cv_lib_dld_shl_load = yes; then 9557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9558else 9559 { echo "$as_me:$LINENO: checking for dlopen" >&5 9560echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9561if test "${ac_cv_func_dlopen+set}" = set; then 9562 echo $ECHO_N "(cached) $ECHO_C" >&6 9563else 9564 cat >conftest.$ac_ext <<_ACEOF 9565/* confdefs.h. */ 9566_ACEOF 9567cat confdefs.h >>conftest.$ac_ext 9568cat >>conftest.$ac_ext <<_ACEOF 9569/* end confdefs.h. */ 9570/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9572#define dlopen innocuous_dlopen 9573 9574/* System header to define __stub macros and hopefully few prototypes, 9575 which can conflict with char dlopen (); below. 9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9577 <limits.h> exists even on freestanding compilers. */ 9578 9579#ifdef __STDC__ 9580# include <limits.h> 9581#else 9582# include <assert.h> 9583#endif 9584 9585#undef dlopen 9586 9587/* Override any GCC internal prototype to avoid an error. 9588 Use char because int might match the return type of a GCC 9589 builtin and then its argument prototype would still apply. */ 9590#ifdef __cplusplus 9591extern "C" 9592#endif 9593char dlopen (); 9594/* The GNU C library defines this for functions which it implements 9595 to always fail with ENOSYS. Some functions are actually named 9596 something starting with __ and the normal name is an alias. */ 9597#if defined __stub_dlopen || defined __stub___dlopen 9598choke me 9599#endif 9600 9601int 9602main () 9603{ 9604return dlopen (); 9605 ; 9606 return 0; 9607} 9608_ACEOF 9609rm -f conftest.$ac_objext conftest$ac_exeext 9610if { (ac_try="$ac_link" 9611case "(($ac_try" in 9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9613 *) ac_try_echo=$ac_try;; 9614esac 9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9616 (eval "$ac_link") 2>conftest.er1 9617 ac_status=$? 9618 grep -v '^ *+' conftest.er1 >conftest.err 9619 rm -f conftest.er1 9620 cat conftest.err >&5 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 (exit $ac_status); } && { 9623 test -z "$ac_c_werror_flag" || 9624 test ! -s conftest.err 9625 } && test -s conftest$ac_exeext && 9626 $as_test_x conftest$ac_exeext; then 9627 ac_cv_func_dlopen=yes 9628else 9629 echo "$as_me: failed program was:" >&5 9630sed 's/^/| /' conftest.$ac_ext >&5 9631 9632 ac_cv_func_dlopen=no 9633fi 9634 9635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9636 conftest$ac_exeext conftest.$ac_ext 9637fi 9638{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9639echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9640if test $ac_cv_func_dlopen = yes; then 9641 lt_cv_dlopen="dlopen" 9642else 9643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9645if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9646 echo $ECHO_N "(cached) $ECHO_C" >&6 9647else 9648 ac_check_lib_save_LIBS=$LIBS 9649LIBS="-ldl $LIBS" 9650cat >conftest.$ac_ext <<_ACEOF 9651/* confdefs.h. */ 9652_ACEOF 9653cat confdefs.h >>conftest.$ac_ext 9654cat >>conftest.$ac_ext <<_ACEOF 9655/* end confdefs.h. */ 9656 9657/* Override any GCC internal prototype to avoid an error. 9658 Use char because int might match the return type of a GCC 9659 builtin and then its argument prototype would still apply. */ 9660#ifdef __cplusplus 9661extern "C" 9662#endif 9663char dlopen (); 9664int 9665main () 9666{ 9667return dlopen (); 9668 ; 9669 return 0; 9670} 9671_ACEOF 9672rm -f conftest.$ac_objext conftest$ac_exeext 9673if { (ac_try="$ac_link" 9674case "(($ac_try" in 9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9676 *) ac_try_echo=$ac_try;; 9677esac 9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9679 (eval "$ac_link") 2>conftest.er1 9680 ac_status=$? 9681 grep -v '^ *+' conftest.er1 >conftest.err 9682 rm -f conftest.er1 9683 cat conftest.err >&5 9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9685 (exit $ac_status); } && { 9686 test -z "$ac_c_werror_flag" || 9687 test ! -s conftest.err 9688 } && test -s conftest$ac_exeext && 9689 $as_test_x conftest$ac_exeext; then 9690 ac_cv_lib_dl_dlopen=yes 9691else 9692 echo "$as_me: failed program was:" >&5 9693sed 's/^/| /' conftest.$ac_ext >&5 9694 9695 ac_cv_lib_dl_dlopen=no 9696fi 9697 9698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9699 conftest$ac_exeext conftest.$ac_ext 9700LIBS=$ac_check_lib_save_LIBS 9701fi 9702{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9703echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9704if test $ac_cv_lib_dl_dlopen = yes; then 9705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9706else 9707 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9708echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9709if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9710 echo $ECHO_N "(cached) $ECHO_C" >&6 9711else 9712 ac_check_lib_save_LIBS=$LIBS 9713LIBS="-lsvld $LIBS" 9714cat >conftest.$ac_ext <<_ACEOF 9715/* confdefs.h. */ 9716_ACEOF 9717cat confdefs.h >>conftest.$ac_ext 9718cat >>conftest.$ac_ext <<_ACEOF 9719/* end confdefs.h. */ 9720 9721/* Override any GCC internal prototype to avoid an error. 9722 Use char because int might match the return type of a GCC 9723 builtin and then its argument prototype would still apply. */ 9724#ifdef __cplusplus 9725extern "C" 9726#endif 9727char dlopen (); 9728int 9729main () 9730{ 9731return dlopen (); 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736rm -f conftest.$ac_objext conftest$ac_exeext 9737if { (ac_try="$ac_link" 9738case "(($ac_try" in 9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9740 *) ac_try_echo=$ac_try;; 9741esac 9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9743 (eval "$ac_link") 2>conftest.er1 9744 ac_status=$? 9745 grep -v '^ *+' conftest.er1 >conftest.err 9746 rm -f conftest.er1 9747 cat conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); } && { 9750 test -z "$ac_c_werror_flag" || 9751 test ! -s conftest.err 9752 } && test -s conftest$ac_exeext && 9753 $as_test_x conftest$ac_exeext; then 9754 ac_cv_lib_svld_dlopen=yes 9755else 9756 echo "$as_me: failed program was:" >&5 9757sed 's/^/| /' conftest.$ac_ext >&5 9758 9759 ac_cv_lib_svld_dlopen=no 9760fi 9761 9762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9763 conftest$ac_exeext conftest.$ac_ext 9764LIBS=$ac_check_lib_save_LIBS 9765fi 9766{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9767echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9768if test $ac_cv_lib_svld_dlopen = yes; then 9769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9770else 9771 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9772echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9773if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9774 echo $ECHO_N "(cached) $ECHO_C" >&6 9775else 9776 ac_check_lib_save_LIBS=$LIBS 9777LIBS="-ldld $LIBS" 9778cat >conftest.$ac_ext <<_ACEOF 9779/* confdefs.h. */ 9780_ACEOF 9781cat confdefs.h >>conftest.$ac_ext 9782cat >>conftest.$ac_ext <<_ACEOF 9783/* end confdefs.h. */ 9784 9785/* Override any GCC internal prototype to avoid an error. 9786 Use char because int might match the return type of a GCC 9787 builtin and then its argument prototype would still apply. */ 9788#ifdef __cplusplus 9789extern "C" 9790#endif 9791char dld_link (); 9792int 9793main () 9794{ 9795return dld_link (); 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800rm -f conftest.$ac_objext conftest$ac_exeext 9801if { (ac_try="$ac_link" 9802case "(($ac_try" in 9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9804 *) ac_try_echo=$ac_try;; 9805esac 9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9807 (eval "$ac_link") 2>conftest.er1 9808 ac_status=$? 9809 grep -v '^ *+' conftest.er1 >conftest.err 9810 rm -f conftest.er1 9811 cat conftest.err >&5 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); } && { 9814 test -z "$ac_c_werror_flag" || 9815 test ! -s conftest.err 9816 } && test -s conftest$ac_exeext && 9817 $as_test_x conftest$ac_exeext; then 9818 ac_cv_lib_dld_dld_link=yes 9819else 9820 echo "$as_me: failed program was:" >&5 9821sed 's/^/| /' conftest.$ac_ext >&5 9822 9823 ac_cv_lib_dld_dld_link=no 9824fi 9825 9826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9827 conftest$ac_exeext conftest.$ac_ext 9828LIBS=$ac_check_lib_save_LIBS 9829fi 9830{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9831echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9832if test $ac_cv_lib_dld_dld_link = yes; then 9833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9834fi 9835 9836 9837fi 9838 9839 9840fi 9841 9842 9843fi 9844 9845 9846fi 9847 9848 9849fi 9850 9851 ;; 9852 esac 9853 9854 if test "x$lt_cv_dlopen" != xno; then 9855 enable_dlopen=yes 9856 else 9857 enable_dlopen=no 9858 fi 9859 9860 case $lt_cv_dlopen in 9861 dlopen) 9862 save_CPPFLAGS="$CPPFLAGS" 9863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9864 9865 save_LDFLAGS="$LDFLAGS" 9866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9867 9868 save_LIBS="$LIBS" 9869 LIBS="$lt_cv_dlopen_libs $LIBS" 9870 9871 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9872echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9873if test "${lt_cv_dlopen_self+set}" = set; then 9874 echo $ECHO_N "(cached) $ECHO_C" >&6 9875else 9876 if test "$cross_compiling" = yes; then : 9877 lt_cv_dlopen_self=cross 9878else 9879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9880 lt_status=$lt_dlunknown 9881 cat > conftest.$ac_ext <<EOF 9882#line 9882 "configure" 9883#include "confdefs.h" 9884 9885#if HAVE_DLFCN_H 9886#include <dlfcn.h> 9887#endif 9888 9889#include <stdio.h> 9890 9891#ifdef RTLD_GLOBAL 9892# define LT_DLGLOBAL RTLD_GLOBAL 9893#else 9894# ifdef DL_GLOBAL 9895# define LT_DLGLOBAL DL_GLOBAL 9896# else 9897# define LT_DLGLOBAL 0 9898# endif 9899#endif 9900 9901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9902 find out it does not work in some platform. */ 9903#ifndef LT_DLLAZY_OR_NOW 9904# ifdef RTLD_LAZY 9905# define LT_DLLAZY_OR_NOW RTLD_LAZY 9906# else 9907# ifdef DL_LAZY 9908# define LT_DLLAZY_OR_NOW DL_LAZY 9909# else 9910# ifdef RTLD_NOW 9911# define LT_DLLAZY_OR_NOW RTLD_NOW 9912# else 9913# ifdef DL_NOW 9914# define LT_DLLAZY_OR_NOW DL_NOW 9915# else 9916# define LT_DLLAZY_OR_NOW 0 9917# endif 9918# endif 9919# endif 9920# endif 9921#endif 9922 9923#ifdef __cplusplus 9924extern "C" void exit (int); 9925#endif 9926 9927void fnord() { int i=42;} 9928int main () 9929{ 9930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9931 int status = $lt_dlunknown; 9932 9933 if (self) 9934 { 9935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9936 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9937 /* dlclose (self); */ 9938 } 9939 else 9940 puts (dlerror ()); 9941 9942 exit (status); 9943} 9944EOF 9945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9946 (eval $ac_link) 2>&5 9947 ac_status=$? 9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9949 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9950 (./conftest; exit; ) >&5 2>/dev/null 9951 lt_status=$? 9952 case x$lt_status in 9953 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9954 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9955 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9956 esac 9957 else : 9958 # compilation failed 9959 lt_cv_dlopen_self=no 9960 fi 9961fi 9962rm -fr conftest* 9963 9964 9965fi 9966{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9967echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9968 9969 if test "x$lt_cv_dlopen_self" = xyes; then 9970 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9971 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9972echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9973if test "${lt_cv_dlopen_self_static+set}" = set; then 9974 echo $ECHO_N "(cached) $ECHO_C" >&6 9975else 9976 if test "$cross_compiling" = yes; then : 9977 lt_cv_dlopen_self_static=cross 9978else 9979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9980 lt_status=$lt_dlunknown 9981 cat > conftest.$ac_ext <<EOF 9982#line 9982 "configure" 9983#include "confdefs.h" 9984 9985#if HAVE_DLFCN_H 9986#include <dlfcn.h> 9987#endif 9988 9989#include <stdio.h> 9990 9991#ifdef RTLD_GLOBAL 9992# define LT_DLGLOBAL RTLD_GLOBAL 9993#else 9994# ifdef DL_GLOBAL 9995# define LT_DLGLOBAL DL_GLOBAL 9996# else 9997# define LT_DLGLOBAL 0 9998# endif 9999#endif 10000 10001/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10002 find out it does not work in some platform. */ 10003#ifndef LT_DLLAZY_OR_NOW 10004# ifdef RTLD_LAZY 10005# define LT_DLLAZY_OR_NOW RTLD_LAZY 10006# else 10007# ifdef DL_LAZY 10008# define LT_DLLAZY_OR_NOW DL_LAZY 10009# else 10010# ifdef RTLD_NOW 10011# define LT_DLLAZY_OR_NOW RTLD_NOW 10012# else 10013# ifdef DL_NOW 10014# define LT_DLLAZY_OR_NOW DL_NOW 10015# else 10016# define LT_DLLAZY_OR_NOW 0 10017# endif 10018# endif 10019# endif 10020# endif 10021#endif 10022 10023#ifdef __cplusplus 10024extern "C" void exit (int); 10025#endif 10026 10027void fnord() { int i=42;} 10028int main () 10029{ 10030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10031 int status = $lt_dlunknown; 10032 10033 if (self) 10034 { 10035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10037 /* dlclose (self); */ 10038 } 10039 else 10040 puts (dlerror ()); 10041 10042 exit (status); 10043} 10044EOF 10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10046 (eval $ac_link) 2>&5 10047 ac_status=$? 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10050 (./conftest; exit; ) >&5 2>/dev/null 10051 lt_status=$? 10052 case x$lt_status in 10053 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10054 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10055 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10056 esac 10057 else : 10058 # compilation failed 10059 lt_cv_dlopen_self_static=no 10060 fi 10061fi 10062rm -fr conftest* 10063 10064 10065fi 10066{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10067echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10068 fi 10069 10070 CPPFLAGS="$save_CPPFLAGS" 10071 LDFLAGS="$save_LDFLAGS" 10072 LIBS="$save_LIBS" 10073 ;; 10074 esac 10075 10076 case $lt_cv_dlopen_self in 10077 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10078 *) enable_dlopen_self=unknown ;; 10079 esac 10080 10081 case $lt_cv_dlopen_self_static in 10082 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10083 *) enable_dlopen_self_static=unknown ;; 10084 esac 10085fi 10086 10087 10088# Report which library types will actually be built 10089{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10090echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10091{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10092echo "${ECHO_T}$can_build_shared" >&6; } 10093 10094{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10095echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10096test "$can_build_shared" = "no" && enable_shared=no 10097 10098# On AIX, shared libraries and static libraries use the same namespace, and 10099# are all built from PIC. 10100case $host_os in 10101aix3*) 10102 test "$enable_shared" = yes && enable_static=no 10103 if test -n "$RANLIB"; then 10104 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10105 postinstall_cmds='$RANLIB $lib' 10106 fi 10107 ;; 10108 10109aix4* | aix5*) 10110 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10111 test "$enable_shared" = yes && enable_static=no 10112 fi 10113 ;; 10114esac 10115{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10116echo "${ECHO_T}$enable_shared" >&6; } 10117 10118{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10119echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10120# Make sure either enable_shared or enable_static is yes. 10121test "$enable_shared" = yes || enable_static=yes 10122{ echo "$as_me:$LINENO: result: $enable_static" >&5 10123echo "${ECHO_T}$enable_static" >&6; } 10124 10125# The else clause should only fire when bootstrapping the 10126# libtool distribution, otherwise you forgot to ship ltmain.sh 10127# with your package, and you will get complaints that there are 10128# no rules to generate ltmain.sh. 10129if test -f "$ltmain"; then 10130 # See if we are running on zsh, and set the options which allow our commands through 10131 # without removal of \ escapes. 10132 if test -n "${ZSH_VERSION+set}" ; then 10133 setopt NO_GLOB_SUBST 10134 fi 10135 # Now quote all the things that may contain metacharacters while being 10136 # careful not to overquote the AC_SUBSTed values. We take copies of the 10137 # variables and quote the copies for generation of the libtool script. 10138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10139 SED SHELL STRIP \ 10140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10142 deplibs_check_method reload_flag reload_cmds need_locks \ 10143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10144 lt_cv_sys_global_symbol_to_c_name_address \ 10145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10146 old_postinstall_cmds old_postuninstall_cmds \ 10147 compiler \ 10148 CC \ 10149 LD \ 10150 lt_prog_compiler_wl \ 10151 lt_prog_compiler_pic \ 10152 lt_prog_compiler_static \ 10153 lt_prog_compiler_no_builtin_flag \ 10154 export_dynamic_flag_spec \ 10155 thread_safe_flag_spec \ 10156 whole_archive_flag_spec \ 10157 enable_shared_with_static_runtimes \ 10158 old_archive_cmds \ 10159 old_archive_from_new_cmds \ 10160 predep_objects \ 10161 postdep_objects \ 10162 predeps \ 10163 postdeps \ 10164 compiler_lib_search_path \ 10165 archive_cmds \ 10166 archive_expsym_cmds \ 10167 postinstall_cmds \ 10168 postuninstall_cmds \ 10169 old_archive_from_expsyms_cmds \ 10170 allow_undefined_flag \ 10171 no_undefined_flag \ 10172 export_symbols_cmds \ 10173 hardcode_libdir_flag_spec \ 10174 hardcode_libdir_flag_spec_ld \ 10175 hardcode_libdir_separator \ 10176 hardcode_automatic \ 10177 module_cmds \ 10178 module_expsym_cmds \ 10179 lt_cv_prog_compiler_c_o \ 10180 fix_srcfile_path \ 10181 exclude_expsyms \ 10182 include_expsyms; do 10183 10184 case $var in 10185 old_archive_cmds | \ 10186 old_archive_from_new_cmds | \ 10187 archive_cmds | \ 10188 archive_expsym_cmds | \ 10189 module_cmds | \ 10190 module_expsym_cmds | \ 10191 old_archive_from_expsyms_cmds | \ 10192 export_symbols_cmds | \ 10193 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10194 postinstall_cmds | postuninstall_cmds | \ 10195 old_postinstall_cmds | old_postuninstall_cmds | \ 10196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10197 # Double-quote double-evaled strings. 10198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10199 ;; 10200 *) 10201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10202 ;; 10203 esac 10204 done 10205 10206 case $lt_echo in 10207 *'\$0 --fallback-echo"') 10208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10209 ;; 10210 esac 10211 10212cfgfile="${ofile}T" 10213 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10214 $rm -f "$cfgfile" 10215 { echo "$as_me:$LINENO: creating $ofile" >&5 10216echo "$as_me: creating $ofile" >&6;} 10217 10218 cat <<__EOF__ >> "$cfgfile" 10219#! $SHELL 10220 10221# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10222# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10223# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10224# 10225# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10226# Free Software Foundation, Inc. 10227# 10228# This file is part of GNU Libtool: 10229# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10230# 10231# This program is free software; you can redistribute it and/or modify 10232# it under the terms of the GNU General Public License as published by 10233# the Free Software Foundation; either version 2 of the License, or 10234# (at your option) any later version. 10235# 10236# This program is distributed in the hope that it will be useful, but 10237# WITHOUT ANY WARRANTY; without even the implied warranty of 10238# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10239# General Public License for more details. 10240# 10241# You should have received a copy of the GNU General Public License 10242# along with this program; if not, write to the Free Software 10243# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10244# 10245# As a special exception to the GNU General Public License, if you 10246# distribute this file as part of a program that contains a 10247# configuration script generated by Autoconf, you may include it under 10248# the same distribution terms that you use for the rest of that program. 10249 10250# A sed program that does not truncate output. 10251SED=$lt_SED 10252 10253# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10254Xsed="$SED -e 1s/^X//" 10255 10256# The HP-UX ksh and POSIX shell print the target directory to stdout 10257# if CDPATH is set. 10258(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10259 10260# The names of the tagged configurations supported by this script. 10261available_tags= 10262 10263# ### BEGIN LIBTOOL CONFIG 10264 10265# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10266 10267# Shell to use when invoking shell scripts. 10268SHELL=$lt_SHELL 10269 10270# Whether or not to build shared libraries. 10271build_libtool_libs=$enable_shared 10272 10273# Whether or not to build static libraries. 10274build_old_libs=$enable_static 10275 10276# Whether or not to add -lc for building shared libraries. 10277build_libtool_need_lc=$archive_cmds_need_lc 10278 10279# Whether or not to disallow shared libs when runtime libs are static 10280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10281 10282# Whether or not to optimize for fast installation. 10283fast_install=$enable_fast_install 10284 10285# The host system. 10286host_alias=$host_alias 10287host=$host 10288host_os=$host_os 10289 10290# The build system. 10291build_alias=$build_alias 10292build=$build 10293build_os=$build_os 10294 10295# An echo program that does not interpret backslashes. 10296echo=$lt_echo 10297 10298# The archiver. 10299AR=$lt_AR 10300AR_FLAGS=$lt_AR_FLAGS 10301 10302# A C compiler. 10303LTCC=$lt_LTCC 10304 10305# LTCC compiler flags. 10306LTCFLAGS=$lt_LTCFLAGS 10307 10308# A language-specific compiler. 10309CC=$lt_compiler 10310 10311# Is the compiler the GNU C compiler? 10312with_gcc=$GCC 10313 10314# An ERE matcher. 10315EGREP=$lt_EGREP 10316 10317# The linker used to build libraries. 10318LD=$lt_LD 10319 10320# Whether we need hard or soft links. 10321LN_S=$lt_LN_S 10322 10323# A BSD-compatible nm program. 10324NM=$lt_NM 10325 10326# A symbol stripping program 10327STRIP=$lt_STRIP 10328 10329# Used to examine libraries when file_magic_cmd begins "file" 10330MAGIC_CMD=$MAGIC_CMD 10331 10332# Used on cygwin: DLL creation program. 10333DLLTOOL="$DLLTOOL" 10334 10335# Used on cygwin: object dumper. 10336OBJDUMP="$OBJDUMP" 10337 10338# Used on cygwin: assembler. 10339AS="$AS" 10340 10341# The name of the directory that contains temporary libtool files. 10342objdir=$objdir 10343 10344# How to create reloadable object files. 10345reload_flag=$lt_reload_flag 10346reload_cmds=$lt_reload_cmds 10347 10348# How to pass a linker flag through the compiler. 10349wl=$lt_lt_prog_compiler_wl 10350 10351# Object file suffix (normally "o"). 10352objext="$ac_objext" 10353 10354# Old archive suffix (normally "a"). 10355libext="$libext" 10356 10357# Shared library suffix (normally ".so"). 10358shrext_cmds='$shrext_cmds' 10359 10360# Executable file suffix (normally ""). 10361exeext="$exeext" 10362 10363# Additional compiler flags for building library objects. 10364pic_flag=$lt_lt_prog_compiler_pic 10365pic_mode=$pic_mode 10366 10367# What is the maximum length of a command? 10368max_cmd_len=$lt_cv_sys_max_cmd_len 10369 10370# Does compiler simultaneously support -c and -o options? 10371compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10372 10373# Must we lock files when doing compilation? 10374need_locks=$lt_need_locks 10375 10376# Do we need the lib prefix for modules? 10377need_lib_prefix=$need_lib_prefix 10378 10379# Do we need a version for libraries? 10380need_version=$need_version 10381 10382# Whether dlopen is supported. 10383dlopen_support=$enable_dlopen 10384 10385# Whether dlopen of programs is supported. 10386dlopen_self=$enable_dlopen_self 10387 10388# Whether dlopen of statically linked programs is supported. 10389dlopen_self_static=$enable_dlopen_self_static 10390 10391# Compiler flag to prevent dynamic linking. 10392link_static_flag=$lt_lt_prog_compiler_static 10393 10394# Compiler flag to turn off builtin functions. 10395no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10396 10397# Compiler flag to allow reflexive dlopens. 10398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10399 10400# Compiler flag to generate shared objects directly from archives. 10401whole_archive_flag_spec=$lt_whole_archive_flag_spec 10402 10403# Compiler flag to generate thread-safe objects. 10404thread_safe_flag_spec=$lt_thread_safe_flag_spec 10405 10406# Library versioning type. 10407version_type=$version_type 10408 10409# Format of library name prefix. 10410libname_spec=$lt_libname_spec 10411 10412# List of archive names. First name is the real one, the rest are links. 10413# The last name is the one that the linker finds with -lNAME. 10414library_names_spec=$lt_library_names_spec 10415 10416# The coded name of the library, if different from the real name. 10417soname_spec=$lt_soname_spec 10418 10419# Commands used to build and install an old-style archive. 10420RANLIB=$lt_RANLIB 10421old_archive_cmds=$lt_old_archive_cmds 10422old_postinstall_cmds=$lt_old_postinstall_cmds 10423old_postuninstall_cmds=$lt_old_postuninstall_cmds 10424 10425# Create an old-style archive from a shared archive. 10426old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10427 10428# Create a temporary old-style archive to link instead of a shared archive. 10429old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10430 10431# Commands used to build and install a shared archive. 10432archive_cmds=$lt_archive_cmds 10433archive_expsym_cmds=$lt_archive_expsym_cmds 10434postinstall_cmds=$lt_postinstall_cmds 10435postuninstall_cmds=$lt_postuninstall_cmds 10436 10437# Commands used to build a loadable module (assumed same as above if empty) 10438module_cmds=$lt_module_cmds 10439module_expsym_cmds=$lt_module_expsym_cmds 10440 10441# Commands to strip libraries. 10442old_striplib=$lt_old_striplib 10443striplib=$lt_striplib 10444 10445# Dependencies to place before the objects being linked to create a 10446# shared library. 10447predep_objects=$lt_predep_objects 10448 10449# Dependencies to place after the objects being linked to create a 10450# shared library. 10451postdep_objects=$lt_postdep_objects 10452 10453# Dependencies to place before the objects being linked to create a 10454# shared library. 10455predeps=$lt_predeps 10456 10457# Dependencies to place after the objects being linked to create a 10458# shared library. 10459postdeps=$lt_postdeps 10460 10461# The library search path used internally by the compiler when linking 10462# a shared library. 10463compiler_lib_search_path=$lt_compiler_lib_search_path 10464 10465# Method to check whether dependent libraries are shared objects. 10466deplibs_check_method=$lt_deplibs_check_method 10467 10468# Command to use when deplibs_check_method == file_magic. 10469file_magic_cmd=$lt_file_magic_cmd 10470 10471# Flag that allows shared libraries with undefined symbols to be built. 10472allow_undefined_flag=$lt_allow_undefined_flag 10473 10474# Flag that forces no undefined symbols. 10475no_undefined_flag=$lt_no_undefined_flag 10476 10477# Commands used to finish a libtool library installation in a directory. 10478finish_cmds=$lt_finish_cmds 10479 10480# Same as above, but a single script fragment to be evaled but not shown. 10481finish_eval=$lt_finish_eval 10482 10483# Take the output of nm and produce a listing of raw symbols and C names. 10484global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10485 10486# Transform the output of nm in a proper C declaration 10487global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10488 10489# Transform the output of nm in a C name address pair 10490global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10491 10492# This is the shared library runtime path variable. 10493runpath_var=$runpath_var 10494 10495# This is the shared library path variable. 10496shlibpath_var=$shlibpath_var 10497 10498# Is shlibpath searched before the hard-coded library search path? 10499shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10500 10501# How to hardcode a shared library path into an executable. 10502hardcode_action=$hardcode_action 10503 10504# Whether we should hardcode library paths into libraries. 10505hardcode_into_libs=$hardcode_into_libs 10506 10507# Flag to hardcode \$libdir into a binary during linking. 10508# This must work even if \$libdir does not exist. 10509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10510 10511# If ld is used when linking, flag to hardcode \$libdir into 10512# a binary during linking. This must work even if \$libdir does 10513# not exist. 10514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10515 10516# Whether we need a single -rpath flag with a separated argument. 10517hardcode_libdir_separator=$lt_hardcode_libdir_separator 10518 10519# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10520# resulting binary. 10521hardcode_direct=$hardcode_direct 10522 10523# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10524# resulting binary. 10525hardcode_minus_L=$hardcode_minus_L 10526 10527# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10528# the resulting binary. 10529hardcode_shlibpath_var=$hardcode_shlibpath_var 10530 10531# Set to yes if building a shared library automatically hardcodes DIR into the library 10532# and all subsequent libraries and executables linked against it. 10533hardcode_automatic=$hardcode_automatic 10534 10535# Variables whose values should be saved in libtool wrapper scripts and 10536# restored at relink time. 10537variables_saved_for_relink="$variables_saved_for_relink" 10538 10539# Whether libtool must link a program against all its dependency libraries. 10540link_all_deplibs=$link_all_deplibs 10541 10542# Compile-time system search path for libraries 10543sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10544 10545# Run-time system search path for libraries 10546sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10547 10548# Fix the shell variable \$srcfile for the compiler. 10549fix_srcfile_path=$lt_fix_srcfile_path 10550 10551# Set to yes if exported symbols are required. 10552always_export_symbols=$always_export_symbols 10553 10554# The commands to list exported symbols. 10555export_symbols_cmds=$lt_export_symbols_cmds 10556 10557# The commands to extract the exported symbol list from a shared archive. 10558extract_expsyms_cmds=$lt_extract_expsyms_cmds 10559 10560# Symbols that should not be listed in the preloaded symbols. 10561exclude_expsyms=$lt_exclude_expsyms 10562 10563# Symbols that must always be exported. 10564include_expsyms=$lt_include_expsyms 10565 10566# ### END LIBTOOL CONFIG 10567 10568__EOF__ 10569 10570 10571 case $host_os in 10572 aix3*) 10573 cat <<\EOF >> "$cfgfile" 10574 10575# AIX sometimes has problems with the GCC collect2 program. For some 10576# reason, if we set the COLLECT_NAMES environment variable, the problems 10577# vanish in a puff of smoke. 10578if test "X${COLLECT_NAMES+set}" != Xset; then 10579 COLLECT_NAMES= 10580 export COLLECT_NAMES 10581fi 10582EOF 10583 ;; 10584 esac 10585 10586 # We use sed instead of cat because bash on DJGPP gets confused if 10587 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10588 # text mode, it properly converts lines to CR/LF. This bash problem 10589 # is reportedly fixed, but why not run on old versions too? 10590 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10591 10592 mv -f "$cfgfile" "$ofile" || \ 10593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10594 chmod +x "$ofile" 10595 10596else 10597 # If there is no Makefile yet, we rely on a make rule to execute 10598 # `config.status --recheck' to rerun these tests and create the 10599 # libtool script then. 10600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10601 if test -f "$ltmain_in"; then 10602 test -f Makefile && make "$ltmain" 10603 fi 10604fi 10605 10606 10607ac_ext=c 10608ac_cpp='$CPP $CPPFLAGS' 10609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10611ac_compiler_gnu=$ac_cv_c_compiler_gnu 10612 10613CC="$lt_save_CC" 10614 10615 10616# Check whether --with-tags was given. 10617if test "${with_tags+set}" = set; then 10618 withval=$with_tags; tagnames="$withval" 10619fi 10620 10621 10622if test -f "$ltmain" && test -n "$tagnames"; then 10623 if test ! -f "${ofile}"; then 10624 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10625echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10626 fi 10627 10628 if test -z "$LTCC"; then 10629 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10630 if test -z "$LTCC"; then 10631 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10632echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10633 else 10634 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10635echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10636 fi 10637 fi 10638 if test -z "$LTCFLAGS"; then 10639 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10640 fi 10641 10642 # Extract list of available tagged configurations in $ofile. 10643 # Note that this assumes the entire list is on one line. 10644 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10645 10646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10647 for tagname in $tagnames; do 10648 IFS="$lt_save_ifs" 10649 # Check whether tagname contains only valid characters 10650 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10651 "") ;; 10652 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10653echo "$as_me: error: invalid tag name: $tagname" >&2;} 10654 { (exit 1); exit 1; }; } 10655 ;; 10656 esac 10657 10658 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10659 then 10660 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10661echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10662 { (exit 1); exit 1; }; } 10663 fi 10664 10665 # Update the list of available tags. 10666 if test -n "$tagname"; then 10667 echo appending configuration tag \"$tagname\" to $ofile 10668 10669 case $tagname in 10670 CXX) 10671 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10673 (test "X$CXX" != "Xg++"))) ; then 10674 ac_ext=cpp 10675ac_cpp='$CXXCPP $CPPFLAGS' 10676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10679 10680 10681 10682 10683archive_cmds_need_lc_CXX=no 10684allow_undefined_flag_CXX= 10685always_export_symbols_CXX=no 10686archive_expsym_cmds_CXX= 10687export_dynamic_flag_spec_CXX= 10688hardcode_direct_CXX=no 10689hardcode_libdir_flag_spec_CXX= 10690hardcode_libdir_flag_spec_ld_CXX= 10691hardcode_libdir_separator_CXX= 10692hardcode_minus_L_CXX=no 10693hardcode_shlibpath_var_CXX=unsupported 10694hardcode_automatic_CXX=no 10695module_cmds_CXX= 10696module_expsym_cmds_CXX= 10697link_all_deplibs_CXX=unknown 10698old_archive_cmds_CXX=$old_archive_cmds 10699no_undefined_flag_CXX= 10700whole_archive_flag_spec_CXX= 10701enable_shared_with_static_runtimes_CXX=no 10702 10703# Dependencies to place before and after the object being linked: 10704predep_objects_CXX= 10705postdep_objects_CXX= 10706predeps_CXX= 10707postdeps_CXX= 10708compiler_lib_search_path_CXX= 10709 10710# Source file extension for C++ test sources. 10711ac_ext=cpp 10712 10713# Object file extension for compiled C++ test sources. 10714objext=o 10715objext_CXX=$objext 10716 10717# Code to be used in simple compile tests 10718lt_simple_compile_test_code="int some_variable = 0;" 10719 10720# Code to be used in simple link tests 10721lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10722 10723# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10724 10725# If no C compiler was specified, use CC. 10726LTCC=${LTCC-"$CC"} 10727 10728# If no C compiler flags were specified, use CFLAGS. 10729LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10730 10731# Allow CC to be a program name with arguments. 10732compiler=$CC 10733 10734 10735# save warnings/boilerplate of simple test code 10736ac_outfile=conftest.$ac_objext 10737echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10738eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10739_lt_compiler_boilerplate=`cat conftest.err` 10740$rm conftest* 10741 10742ac_outfile=conftest.$ac_objext 10743echo "$lt_simple_link_test_code" >conftest.$ac_ext 10744eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10745_lt_linker_boilerplate=`cat conftest.err` 10746$rm conftest* 10747 10748 10749# Allow CC to be a program name with arguments. 10750lt_save_CC=$CC 10751lt_save_LD=$LD 10752lt_save_GCC=$GCC 10753GCC=$GXX 10754lt_save_with_gnu_ld=$with_gnu_ld 10755lt_save_path_LD=$lt_cv_path_LD 10756if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10757 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10758else 10759 $as_unset lt_cv_prog_gnu_ld 10760fi 10761if test -n "${lt_cv_path_LDCXX+set}"; then 10762 lt_cv_path_LD=$lt_cv_path_LDCXX 10763else 10764 $as_unset lt_cv_path_LD 10765fi 10766test -z "${LDCXX+set}" || LD=$LDCXX 10767CC=${CXX-"c++"} 10768compiler=$CC 10769compiler_CXX=$CC 10770for cc_temp in $compiler""; do 10771 case $cc_temp in 10772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10774 \-*) ;; 10775 *) break;; 10776 esac 10777done 10778cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10779 10780 10781# We don't want -fno-exception wen compiling C++ code, so set the 10782# no_builtin_flag separately 10783if test "$GXX" = yes; then 10784 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10785else 10786 lt_prog_compiler_no_builtin_flag_CXX= 10787fi 10788 10789if test "$GXX" = yes; then 10790 # Set up default GNU C++ configuration 10791 10792 10793# Check whether --with-gnu-ld was given. 10794if test "${with_gnu_ld+set}" = set; then 10795 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10796else 10797 with_gnu_ld=no 10798fi 10799 10800ac_prog=ld 10801if test "$GCC" = yes; then 10802 # Check if gcc -print-prog-name=ld gives a path. 10803 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10804echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10805 case $host in 10806 *-*-mingw*) 10807 # gcc leaves a trailing carriage return which upsets mingw 10808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10809 *) 10810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10811 esac 10812 case $ac_prog in 10813 # Accept absolute paths. 10814 [\\/]* | ?:[\\/]*) 10815 re_direlt='/[^/][^/]*/\.\./' 10816 # Canonicalize the pathname of ld 10817 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10819 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10820 done 10821 test -z "$LD" && LD="$ac_prog" 10822 ;; 10823 "") 10824 # If it fails, then pretend we aren't using GCC. 10825 ac_prog=ld 10826 ;; 10827 *) 10828 # If it is relative, then search for the first ld in PATH. 10829 with_gnu_ld=unknown 10830 ;; 10831 esac 10832elif test "$with_gnu_ld" = yes; then 10833 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10834echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10835else 10836 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10837echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10838fi 10839if test "${lt_cv_path_LD+set}" = set; then 10840 echo $ECHO_N "(cached) $ECHO_C" >&6 10841else 10842 if test -z "$LD"; then 10843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10844 for ac_dir in $PATH; do 10845 IFS="$lt_save_ifs" 10846 test -z "$ac_dir" && ac_dir=. 10847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10848 lt_cv_path_LD="$ac_dir/$ac_prog" 10849 # Check to see if the program is GNU ld. I'd rather use --version, 10850 # but apparently some variants of GNU ld only accept -v. 10851 # Break only if it was the GNU/non-GNU ld that we prefer. 10852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10853 *GNU* | *'with BFD'*) 10854 test "$with_gnu_ld" != no && break 10855 ;; 10856 *) 10857 test "$with_gnu_ld" != yes && break 10858 ;; 10859 esac 10860 fi 10861 done 10862 IFS="$lt_save_ifs" 10863else 10864 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10865fi 10866fi 10867 10868LD="$lt_cv_path_LD" 10869if test -n "$LD"; then 10870 { echo "$as_me:$LINENO: result: $LD" >&5 10871echo "${ECHO_T}$LD" >&6; } 10872else 10873 { echo "$as_me:$LINENO: result: no" >&5 10874echo "${ECHO_T}no" >&6; } 10875fi 10876test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10877echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10878 { (exit 1); exit 1; }; } 10879{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10880echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10881if test "${lt_cv_prog_gnu_ld+set}" = set; then 10882 echo $ECHO_N "(cached) $ECHO_C" >&6 10883else 10884 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10885case `$LD -v 2>&1 </dev/null` in 10886*GNU* | *'with BFD'*) 10887 lt_cv_prog_gnu_ld=yes 10888 ;; 10889*) 10890 lt_cv_prog_gnu_ld=no 10891 ;; 10892esac 10893fi 10894{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10895echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10896with_gnu_ld=$lt_cv_prog_gnu_ld 10897 10898 10899 10900 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10901 # archiving commands below assume that GNU ld is being used. 10902 if test "$with_gnu_ld" = yes; then 10903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10904 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' 10905 10906 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10907 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10908 10909 # If archive_cmds runs LD, not CC, wlarc should be empty 10910 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10911 # investigate it a little bit more. (MM) 10912 wlarc='${wl}' 10913 10914 # ancient GNU ld didn't support --whole-archive et. al. 10915 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10916 grep 'no-whole-archive' > /dev/null; then 10917 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10918 else 10919 whole_archive_flag_spec_CXX= 10920 fi 10921 else 10922 with_gnu_ld=no 10923 wlarc= 10924 10925 # A generic and very simple default shared library creation 10926 # command for GNU C++ for the case where it uses the native 10927 # linker, instead of GNU ld. If possible, this setting should 10928 # overridden to take advantage of the native linker features on 10929 # the platform it is being used on. 10930 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10931 fi 10932 10933 # Commands to make compiler produce verbose output that lists 10934 # what "hidden" libraries, object files and flags are used when 10935 # linking a shared library. 10936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10937 10938else 10939 GXX=no 10940 with_gnu_ld=no 10941 wlarc= 10942fi 10943 10944# PORTME: fill in a description of your system's C++ link characteristics 10945{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10946echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10947ld_shlibs_CXX=yes 10948case $host_os in 10949 aix3*) 10950 # FIXME: insert proper C++ library support 10951 ld_shlibs_CXX=no 10952 ;; 10953 aix4* | aix5*) 10954 if test "$host_cpu" = ia64; then 10955 # On IA64, the linker does run time linking by default, so we don't 10956 # have to do anything special. 10957 aix_use_runtimelinking=no 10958 exp_sym_flag='-Bexport' 10959 no_entry_flag="" 10960 else 10961 aix_use_runtimelinking=no 10962 10963 # Test if we are trying to use run time linking or normal 10964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10965 # need to do runtime linking. 10966 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10967 for ld_flag in $LDFLAGS; do 10968 case $ld_flag in 10969 *-brtl*) 10970 aix_use_runtimelinking=yes 10971 break 10972 ;; 10973 esac 10974 done 10975 ;; 10976 esac 10977 10978 exp_sym_flag='-bexport' 10979 no_entry_flag='-bnoentry' 10980 fi 10981 10982 # When large executables or shared objects are built, AIX ld can 10983 # have problems creating the table of contents. If linking a library 10984 # or program results in "error TOC overflow" add -mminimal-toc to 10985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10987 10988 archive_cmds_CXX='' 10989 hardcode_direct_CXX=yes 10990 hardcode_libdir_separator_CXX=':' 10991 link_all_deplibs_CXX=yes 10992 10993 if test "$GXX" = yes; then 10994 case $host_os in aix4.[012]|aix4.[012].*) 10995 # We only want to do this on AIX 4.2 and lower, the check 10996 # below for broken collect2 doesn't work under 4.3+ 10997 collect2name=`${CC} -print-prog-name=collect2` 10998 if test -f "$collect2name" && \ 10999 strings "$collect2name" | grep resolve_lib_name >/dev/null 11000 then 11001 # We have reworked collect2 11002 : 11003 else 11004 # We have old collect2 11005 hardcode_direct_CXX=unsupported 11006 # It fails to find uninstalled libraries when the uninstalled 11007 # path is not listed in the libpath. Setting hardcode_minus_L 11008 # to unsupported forces relinking 11009 hardcode_minus_L_CXX=yes 11010 hardcode_libdir_flag_spec_CXX='-L$libdir' 11011 hardcode_libdir_separator_CXX= 11012 fi 11013 ;; 11014 esac 11015 shared_flag='-shared' 11016 if test "$aix_use_runtimelinking" = yes; then 11017 shared_flag="$shared_flag "'${wl}-G' 11018 fi 11019 else 11020 # not using gcc 11021 if test "$host_cpu" = ia64; then 11022 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11023 # chokes on -Wl,-G. The following line is correct: 11024 shared_flag='-G' 11025 else 11026 if test "$aix_use_runtimelinking" = yes; then 11027 shared_flag='${wl}-G' 11028 else 11029 shared_flag='${wl}-bM:SRE' 11030 fi 11031 fi 11032 fi 11033 11034 # It seems that -bexpall does not export symbols beginning with 11035 # underscore (_), so it is better to generate a list of symbols to export. 11036 always_export_symbols_CXX=yes 11037 if test "$aix_use_runtimelinking" = yes; then 11038 # Warning - without using the other runtime loading flags (-brtl), 11039 # -berok will link without error, but may produce a broken library. 11040 allow_undefined_flag_CXX='-berok' 11041 # Determine the default libpath from the value encoded in an empty executable. 11042 cat >conftest.$ac_ext <<_ACEOF 11043/* confdefs.h. */ 11044_ACEOF 11045cat confdefs.h >>conftest.$ac_ext 11046cat >>conftest.$ac_ext <<_ACEOF 11047/* end confdefs.h. */ 11048 11049int 11050main () 11051{ 11052 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057rm -f conftest.$ac_objext conftest$ac_exeext 11058if { (ac_try="$ac_link" 11059case "(($ac_try" in 11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11061 *) ac_try_echo=$ac_try;; 11062esac 11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11064 (eval "$ac_link") 2>conftest.er1 11065 ac_status=$? 11066 grep -v '^ *+' conftest.er1 >conftest.err 11067 rm -f conftest.er1 11068 cat conftest.err >&5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11070 (exit $ac_status); } && { 11071 test -z "$ac_cxx_werror_flag" || 11072 test ! -s conftest.err 11073 } && test -s conftest$ac_exeext && 11074 $as_test_x conftest$ac_exeext; then 11075 11076lt_aix_libpath_sed=' 11077 /Import File Strings/,/^$/ { 11078 /^0/ { 11079 s/^0 *\(.*\)$/\1/ 11080 p 11081 } 11082 }' 11083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11084# Check for a 64-bit object if we didn't find anything. 11085if test -z "$aix_libpath"; then 11086 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11087fi 11088else 11089 echo "$as_me: failed program was:" >&5 11090sed 's/^/| /' conftest.$ac_ext >&5 11091 11092 11093fi 11094 11095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11096 conftest$ac_exeext conftest.$ac_ext 11097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11098 11099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11100 11101 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" 11102 else 11103 if test "$host_cpu" = ia64; then 11104 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11105 allow_undefined_flag_CXX="-z nodefs" 11106 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" 11107 else 11108 # Determine the default libpath from the value encoded in an empty executable. 11109 cat >conftest.$ac_ext <<_ACEOF 11110/* confdefs.h. */ 11111_ACEOF 11112cat confdefs.h >>conftest.$ac_ext 11113cat >>conftest.$ac_ext <<_ACEOF 11114/* end confdefs.h. */ 11115 11116int 11117main () 11118{ 11119 11120 ; 11121 return 0; 11122} 11123_ACEOF 11124rm -f conftest.$ac_objext conftest$ac_exeext 11125if { (ac_try="$ac_link" 11126case "(($ac_try" in 11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11128 *) ac_try_echo=$ac_try;; 11129esac 11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11131 (eval "$ac_link") 2>conftest.er1 11132 ac_status=$? 11133 grep -v '^ *+' conftest.er1 >conftest.err 11134 rm -f conftest.er1 11135 cat conftest.err >&5 11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11137 (exit $ac_status); } && { 11138 test -z "$ac_cxx_werror_flag" || 11139 test ! -s conftest.err 11140 } && test -s conftest$ac_exeext && 11141 $as_test_x conftest$ac_exeext; then 11142 11143lt_aix_libpath_sed=' 11144 /Import File Strings/,/^$/ { 11145 /^0/ { 11146 s/^0 *\(.*\)$/\1/ 11147 p 11148 } 11149 }' 11150aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11151# Check for a 64-bit object if we didn't find anything. 11152if test -z "$aix_libpath"; then 11153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11154fi 11155else 11156 echo "$as_me: failed program was:" >&5 11157sed 's/^/| /' conftest.$ac_ext >&5 11158 11159 11160fi 11161 11162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11163 conftest$ac_exeext conftest.$ac_ext 11164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11165 11166 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11167 # Warning - without using the other run time loading flags, 11168 # -berok will link without error, but may produce a broken library. 11169 no_undefined_flag_CXX=' ${wl}-bernotok' 11170 allow_undefined_flag_CXX=' ${wl}-berok' 11171 # Exported symbols can be pulled into shared objects from archives 11172 whole_archive_flag_spec_CXX='$convenience' 11173 archive_cmds_need_lc_CXX=yes 11174 # This is similar to how AIX traditionally builds its shared libraries. 11175 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' 11176 fi 11177 fi 11178 ;; 11179 11180 beos*) 11181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11182 allow_undefined_flag_CXX=unsupported 11183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11184 # support --undefined. This deserves some investigation. FIXME 11185 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11186 else 11187 ld_shlibs_CXX=no 11188 fi 11189 ;; 11190 11191 chorus*) 11192 case $cc_basename in 11193 *) 11194 # FIXME: insert proper C++ library support 11195 ld_shlibs_CXX=no 11196 ;; 11197 esac 11198 ;; 11199 11200 cygwin* | mingw* | pw32*) 11201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11202 # as there is no search path for DLLs. 11203 hardcode_libdir_flag_spec_CXX='-L$libdir' 11204 allow_undefined_flag_CXX=unsupported 11205 always_export_symbols_CXX=no 11206 enable_shared_with_static_runtimes_CXX=yes 11207 11208 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11209 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' 11210 # If the export-symbols file already is a .def file (1st line 11211 # is EXPORTS), use it as is; otherwise, prepend... 11212 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11213 cp $export_symbols $output_objdir/$soname.def; 11214 else 11215 echo EXPORTS > $output_objdir/$soname.def; 11216 cat $export_symbols >> $output_objdir/$soname.def; 11217 fi~ 11218 $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' 11219 else 11220 ld_shlibs_CXX=no 11221 fi 11222 ;; 11223 darwin* | rhapsody*) 11224 case $host_os in 11225 rhapsody* | darwin1.[012]) 11226 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11227 ;; 11228 *) # Darwin 1.3 on 11229 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11230 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11231 else 11232 case ${MACOSX_DEPLOYMENT_TARGET} in 11233 10.[012]) 11234 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11235 ;; 11236 10.*) 11237 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11238 ;; 11239 esac 11240 fi 11241 ;; 11242 esac 11243 archive_cmds_need_lc_CXX=no 11244 hardcode_direct_CXX=no 11245 hardcode_automatic_CXX=yes 11246 hardcode_shlibpath_var_CXX=unsupported 11247 whole_archive_flag_spec_CXX='' 11248 link_all_deplibs_CXX=yes 11249 11250 if test "$GXX" = yes ; then 11251 lt_int_apple_cc_single_mod=no 11252 output_verbose_link_cmd='echo' 11253 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11254 lt_int_apple_cc_single_mod=yes 11255 fi 11256 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11257 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11258 else 11259 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' 11260 fi 11261 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11263 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11264 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}' 11265 else 11266 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}' 11267 fi 11268 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}' 11269 else 11270 case $cc_basename in 11271 xlc*) 11272 output_verbose_link_cmd='echo' 11273 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' 11274 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11275 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11276 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}' 11277 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}' 11278 ;; 11279 *) 11280 ld_shlibs_CXX=no 11281 ;; 11282 esac 11283 fi 11284 ;; 11285 11286 dgux*) 11287 case $cc_basename in 11288 ec++*) 11289 # FIXME: insert proper C++ library support 11290 ld_shlibs_CXX=no 11291 ;; 11292 ghcx*) 11293 # Green Hills C++ Compiler 11294 # FIXME: insert proper C++ library support 11295 ld_shlibs_CXX=no 11296 ;; 11297 *) 11298 # FIXME: insert proper C++ library support 11299 ld_shlibs_CXX=no 11300 ;; 11301 esac 11302 ;; 11303 freebsd[12]*) 11304 # C++ shared libraries reported to be fairly broken before switch to ELF 11305 ld_shlibs_CXX=no 11306 ;; 11307 freebsd-elf*) 11308 archive_cmds_need_lc_CXX=no 11309 ;; 11310 freebsd* | dragonfly*) 11311 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11312 # conventions 11313 ld_shlibs_CXX=yes 11314 ;; 11315 gnu*) 11316 ;; 11317 hpux9*) 11318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11319 hardcode_libdir_separator_CXX=: 11320 export_dynamic_flag_spec_CXX='${wl}-E' 11321 hardcode_direct_CXX=yes 11322 hardcode_minus_L_CXX=yes # Not in the search PATH, 11323 # but as the default 11324 # location of the library. 11325 11326 case $cc_basename in 11327 CC*) 11328 # FIXME: insert proper C++ library support 11329 ld_shlibs_CXX=no 11330 ;; 11331 aCC*) 11332 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' 11333 # Commands to make compiler produce verbose output that lists 11334 # what "hidden" libraries, object files and flags are used when 11335 # linking a shared library. 11336 # 11337 # There doesn't appear to be a way to prevent this compiler from 11338 # explicitly linking system object files so we need to strip them 11339 # from the output so that they don't get included in the library 11340 # dependencies. 11341 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' 11342 ;; 11343 *) 11344 if test "$GXX" = yes; then 11345 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' 11346 else 11347 # FIXME: insert proper C++ library support 11348 ld_shlibs_CXX=no 11349 fi 11350 ;; 11351 esac 11352 ;; 11353 hpux10*|hpux11*) 11354 if test $with_gnu_ld = no; then 11355 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11356 hardcode_libdir_separator_CXX=: 11357 11358 case $host_cpu in 11359 hppa*64*|ia64*) ;; 11360 *) 11361 export_dynamic_flag_spec_CXX='${wl}-E' 11362 ;; 11363 esac 11364 fi 11365 case $host_cpu in 11366 hppa*64*|ia64*) 11367 hardcode_direct_CXX=no 11368 hardcode_shlibpath_var_CXX=no 11369 ;; 11370 *) 11371 hardcode_direct_CXX=yes 11372 hardcode_minus_L_CXX=yes # Not in the search PATH, 11373 # but as the default 11374 # location of the library. 11375 ;; 11376 esac 11377 11378 case $cc_basename in 11379 CC*) 11380 # FIXME: insert proper C++ library support 11381 ld_shlibs_CXX=no 11382 ;; 11383 aCC*) 11384 case $host_cpu in 11385 hppa*64*) 11386 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11387 ;; 11388 ia64*) 11389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11390 ;; 11391 *) 11392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11393 ;; 11394 esac 11395 # Commands to make compiler produce verbose output that lists 11396 # what "hidden" libraries, object files and flags are used when 11397 # linking a shared library. 11398 # 11399 # There doesn't appear to be a way to prevent this compiler from 11400 # explicitly linking system object files so we need to strip them 11401 # from the output so that they don't get included in the library 11402 # dependencies. 11403 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' 11404 ;; 11405 *) 11406 if test "$GXX" = yes; then 11407 if test $with_gnu_ld = no; then 11408 case $host_cpu in 11409 hppa*64*) 11410 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11411 ;; 11412 ia64*) 11413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11414 ;; 11415 *) 11416 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' 11417 ;; 11418 esac 11419 fi 11420 else 11421 # FIXME: insert proper C++ library support 11422 ld_shlibs_CXX=no 11423 fi 11424 ;; 11425 esac 11426 ;; 11427 interix[3-9]*) 11428 hardcode_direct_CXX=no 11429 hardcode_shlibpath_var_CXX=no 11430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11431 export_dynamic_flag_spec_CXX='${wl}-E' 11432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11433 # Instead, shared libraries are loaded at an image base (0x10000000 by 11434 # default) and relocated if they conflict, which is a slow very memory 11435 # consuming and fragmenting process. To avoid this, we pick a random, 11436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11437 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11438 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' 11439 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' 11440 ;; 11441 irix5* | irix6*) 11442 case $cc_basename in 11443 CC*) 11444 # SGI C++ 11445 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' 11446 11447 # Archives containing C++ object files must be created using 11448 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11449 # necessary to make sure instantiated templates are included 11450 # in the archive. 11451 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11452 ;; 11453 *) 11454 if test "$GXX" = yes; then 11455 if test "$with_gnu_ld" = no; then 11456 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' 11457 else 11458 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' 11459 fi 11460 fi 11461 link_all_deplibs_CXX=yes 11462 ;; 11463 esac 11464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11465 hardcode_libdir_separator_CXX=: 11466 ;; 11467 linux* | k*bsd*-gnu) 11468 case $cc_basename in 11469 KCC*) 11470 # Kuck and Associates, Inc. (KAI) C++ Compiler 11471 11472 # KCC will only create a shared library if the output file 11473 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11474 # to its proper name (with version) after linking. 11475 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' 11476 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' 11477 # Commands to make compiler produce verbose output that lists 11478 # what "hidden" libraries, object files and flags are used when 11479 # linking a shared library. 11480 # 11481 # There doesn't appear to be a way to prevent this compiler from 11482 # explicitly linking system object files so we need to strip them 11483 # from the output so that they don't get included in the library 11484 # dependencies. 11485 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' 11486 11487 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11489 11490 # Archives containing C++ object files must be created using 11491 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11492 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11493 ;; 11494 icpc*) 11495 # Intel C++ 11496 with_gnu_ld=yes 11497 # version 8.0 and above of icpc choke on multiply defined symbols 11498 # if we add $predep_objects and $postdep_objects, however 7.1 and 11499 # earlier do not add the objects themselves. 11500 case `$CC -V 2>&1` in 11501 *"Version 7."*) 11502 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11503 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' 11504 ;; 11505 *) # Version 8.0 or newer 11506 tmp_idyn= 11507 case $host_cpu in 11508 ia64*) tmp_idyn=' -i_dynamic';; 11509 esac 11510 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11511 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' 11512 ;; 11513 esac 11514 archive_cmds_need_lc_CXX=no 11515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11517 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11518 ;; 11519 pgCC*) 11520 # Portland Group C++ compiler 11521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11522 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' 11523 11524 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11526 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' 11527 ;; 11528 cxx*) 11529 # Compaq C++ 11530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11531 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' 11532 11533 runpath_var=LD_RUN_PATH 11534 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11535 hardcode_libdir_separator_CXX=: 11536 11537 # Commands to make compiler produce verbose output that lists 11538 # what "hidden" libraries, object files and flags are used when 11539 # linking a shared library. 11540 # 11541 # There doesn't appear to be a way to prevent this compiler from 11542 # explicitly linking system object files so we need to strip them 11543 # from the output so that they don't get included in the library 11544 # dependencies. 11545 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' 11546 ;; 11547 *) 11548 case `$CC -V 2>&1 | sed 5q` in 11549 *Sun\ C*) 11550 # Sun C++ 5.9 11551 no_undefined_flag_CXX=' -zdefs' 11552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11553 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' 11554 hardcode_libdir_flag_spec_CXX='-R$libdir' 11555 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' 11556 11557 # Not sure whether something based on 11558 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11559 # would be better. 11560 output_verbose_link_cmd='echo' 11561 11562 # Archives containing C++ object files must be created using 11563 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11564 # necessary to make sure instantiated templates are included 11565 # in the archive. 11566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11567 ;; 11568 esac 11569 ;; 11570 esac 11571 ;; 11572 lynxos*) 11573 # FIXME: insert proper C++ library support 11574 ld_shlibs_CXX=no 11575 ;; 11576 m88k*) 11577 # FIXME: insert proper C++ library support 11578 ld_shlibs_CXX=no 11579 ;; 11580 mvs*) 11581 case $cc_basename in 11582 cxx*) 11583 # FIXME: insert proper C++ library support 11584 ld_shlibs_CXX=no 11585 ;; 11586 *) 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 ;; 11590 esac 11591 ;; 11592 netbsd*) 11593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11594 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11595 wlarc= 11596 hardcode_libdir_flag_spec_CXX='-R$libdir' 11597 hardcode_direct_CXX=yes 11598 hardcode_shlibpath_var_CXX=no 11599 fi 11600 # Workaround some broken pre-1.5 toolchains 11601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11602 ;; 11603 openbsd2*) 11604 # C++ shared libraries are fairly broken 11605 ld_shlibs_CXX=no 11606 ;; 11607 openbsd*) 11608 if test -f /usr/libexec/ld.so; then 11609 hardcode_direct_CXX=yes 11610 hardcode_shlibpath_var_CXX=no 11611 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11614 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11615 export_dynamic_flag_spec_CXX='${wl}-E' 11616 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11617 fi 11618 output_verbose_link_cmd='echo' 11619 else 11620 ld_shlibs_CXX=no 11621 fi 11622 ;; 11623 osf3*) 11624 case $cc_basename in 11625 KCC*) 11626 # Kuck and Associates, Inc. (KAI) C++ Compiler 11627 11628 # KCC will only create a shared library if the output file 11629 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11630 # to its proper name (with version) after linking. 11631 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' 11632 11633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11634 hardcode_libdir_separator_CXX=: 11635 11636 # Archives containing C++ object files must be created using 11637 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11639 11640 ;; 11641 RCC*) 11642 # Rational C++ 2.4.1 11643 # FIXME: insert proper C++ library support 11644 ld_shlibs_CXX=no 11645 ;; 11646 cxx*) 11647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11648 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' 11649 11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11651 hardcode_libdir_separator_CXX=: 11652 11653 # Commands to make compiler produce verbose output that lists 11654 # what "hidden" libraries, object files and flags are used when 11655 # linking a shared library. 11656 # 11657 # There doesn't appear to be a way to prevent this compiler from 11658 # explicitly linking system object files so we need to strip them 11659 # from the output so that they don't get included in the library 11660 # dependencies. 11661 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' 11662 ;; 11663 *) 11664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11666 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' 11667 11668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11669 hardcode_libdir_separator_CXX=: 11670 11671 # Commands to make compiler produce verbose output that lists 11672 # what "hidden" libraries, object files and flags are used when 11673 # linking a shared library. 11674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11675 11676 else 11677 # FIXME: insert proper C++ library support 11678 ld_shlibs_CXX=no 11679 fi 11680 ;; 11681 esac 11682 ;; 11683 osf4* | osf5*) 11684 case $cc_basename in 11685 KCC*) 11686 # Kuck and Associates, Inc. (KAI) C++ Compiler 11687 11688 # KCC will only create a shared library if the output file 11689 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11690 # to its proper name (with version) after linking. 11691 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' 11692 11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11694 hardcode_libdir_separator_CXX=: 11695 11696 # Archives containing C++ object files must be created using 11697 # the KAI C++ compiler. 11698 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11699 ;; 11700 RCC*) 11701 # Rational C++ 2.4.1 11702 # FIXME: insert proper C++ library support 11703 ld_shlibs_CXX=no 11704 ;; 11705 cxx*) 11706 allow_undefined_flag_CXX=' -expect_unresolved \*' 11707 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' 11708 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11709 echo "-hidden">> $lib.exp~ 11710 $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~ 11711 $rm $lib.exp' 11712 11713 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11714 hardcode_libdir_separator_CXX=: 11715 11716 # Commands to make compiler produce verbose output that lists 11717 # what "hidden" libraries, object files and flags are used when 11718 # linking a shared library. 11719 # 11720 # There doesn't appear to be a way to prevent this compiler from 11721 # explicitly linking system object files so we need to strip them 11722 # from the output so that they don't get included in the library 11723 # dependencies. 11724 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' 11725 ;; 11726 *) 11727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11728 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11729 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' 11730 11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11732 hardcode_libdir_separator_CXX=: 11733 11734 # Commands to make compiler produce verbose output that lists 11735 # what "hidden" libraries, object files and flags are used when 11736 # linking a shared library. 11737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11738 11739 else 11740 # FIXME: insert proper C++ library support 11741 ld_shlibs_CXX=no 11742 fi 11743 ;; 11744 esac 11745 ;; 11746 psos*) 11747 # FIXME: insert proper C++ library support 11748 ld_shlibs_CXX=no 11749 ;; 11750 sunos4*) 11751 case $cc_basename in 11752 CC*) 11753 # Sun C++ 4.x 11754 # FIXME: insert proper C++ library support 11755 ld_shlibs_CXX=no 11756 ;; 11757 lcc*) 11758 # Lucid 11759 # FIXME: insert proper C++ library support 11760 ld_shlibs_CXX=no 11761 ;; 11762 *) 11763 # FIXME: insert proper C++ library support 11764 ld_shlibs_CXX=no 11765 ;; 11766 esac 11767 ;; 11768 solaris*) 11769 case $cc_basename in 11770 CC*) 11771 # Sun C++ 4.2, 5.x and Centerline C++ 11772 archive_cmds_need_lc_CXX=yes 11773 no_undefined_flag_CXX=' -zdefs' 11774 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11775 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11776 $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' 11777 11778 hardcode_libdir_flag_spec_CXX='-R$libdir' 11779 hardcode_shlibpath_var_CXX=no 11780 case $host_os in 11781 solaris2.[0-5] | solaris2.[0-5].*) ;; 11782 *) 11783 # The compiler driver will combine and reorder linker options, 11784 # but understands `-z linker_flag'. 11785 # Supported since Solaris 2.6 (maybe 2.5.1?) 11786 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11787 ;; 11788 esac 11789 link_all_deplibs_CXX=yes 11790 11791 output_verbose_link_cmd='echo' 11792 11793 # Archives containing C++ object files must be created using 11794 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11795 # necessary to make sure instantiated templates are included 11796 # in the archive. 11797 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11798 ;; 11799 gcx*) 11800 # Green Hills C++ Compiler 11801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11802 11803 # The C++ compiler must be used to create the archive. 11804 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11805 ;; 11806 *) 11807 # GNU C++ compiler with Solaris linker 11808 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11809 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11810 if $CC --version | grep -v '^2\.7' > /dev/null; then 11811 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11812 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11813 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11814 11815 # Commands to make compiler produce verbose output that lists 11816 # what "hidden" libraries, object files and flags are used when 11817 # linking a shared library. 11818 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11819 else 11820 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11821 # platform. 11822 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11830 fi 11831 11832 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11833 case $host_os in 11834 solaris2.[0-5] | solaris2.[0-5].*) ;; 11835 *) 11836 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11837 ;; 11838 esac 11839 fi 11840 ;; 11841 esac 11842 ;; 11843 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11844 no_undefined_flag_CXX='${wl}-z,text' 11845 archive_cmds_need_lc_CXX=no 11846 hardcode_shlibpath_var_CXX=no 11847 runpath_var='LD_RUN_PATH' 11848 11849 case $cc_basename in 11850 CC*) 11851 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11852 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11853 ;; 11854 *) 11855 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11856 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11857 ;; 11858 esac 11859 ;; 11860 sysv5* | sco3.2v5* | sco5v6*) 11861 # Note: We can NOT use -z defs as we might desire, because we do not 11862 # link with -lc, and that would cause any symbols used from libc to 11863 # always be unresolved, which means just about no library would 11864 # ever link correctly. If we're not using GNU ld we use -z text 11865 # though, which does catch some bad symbols but isn't as heavy-handed 11866 # as -z defs. 11867 # For security reasons, it is highly recommended that you always 11868 # use absolute paths for naming shared libraries, and exclude the 11869 # DT_RUNPATH tag from executables and libraries. But doing so 11870 # requires that you compile everything twice, which is a pain. 11871 # So that behaviour is only enabled if SCOABSPATH is set to a 11872 # non-empty value in the environment. Most likely only useful for 11873 # creating official distributions of packages. 11874 # This is a hack until libtool officially supports absolute path 11875 # names for shared libraries. 11876 no_undefined_flag_CXX='${wl}-z,text' 11877 allow_undefined_flag_CXX='${wl}-z,nodefs' 11878 archive_cmds_need_lc_CXX=no 11879 hardcode_shlibpath_var_CXX=no 11880 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11881 hardcode_libdir_separator_CXX=':' 11882 link_all_deplibs_CXX=yes 11883 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11884 runpath_var='LD_RUN_PATH' 11885 11886 case $cc_basename in 11887 CC*) 11888 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11889 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11890 ;; 11891 *) 11892 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11893 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11894 ;; 11895 esac 11896 ;; 11897 tandem*) 11898 case $cc_basename in 11899 NCC*) 11900 # NonStop-UX NCC 3.20 11901 # FIXME: insert proper C++ library support 11902 ld_shlibs_CXX=no 11903 ;; 11904 *) 11905 # FIXME: insert proper C++ library support 11906 ld_shlibs_CXX=no 11907 ;; 11908 esac 11909 ;; 11910 vxworks*) 11911 # FIXME: insert proper C++ library support 11912 ld_shlibs_CXX=no 11913 ;; 11914 *) 11915 # FIXME: insert proper C++ library support 11916 ld_shlibs_CXX=no 11917 ;; 11918esac 11919{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11920echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11921test "$ld_shlibs_CXX" = no && can_build_shared=no 11922 11923GCC_CXX="$GXX" 11924LD_CXX="$LD" 11925 11926 11927cat > conftest.$ac_ext <<EOF 11928class Foo 11929{ 11930public: 11931 Foo (void) { a = 0; } 11932private: 11933 int a; 11934}; 11935EOF 11936 11937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11938 (eval $ac_compile) 2>&5 11939 ac_status=$? 11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); }; then 11942 # Parse the compiler output and extract the necessary 11943 # objects, libraries and library flags. 11944 11945 # Sentinel used to keep track of whether or not we are before 11946 # the conftest object file. 11947 pre_test_object_deps_done=no 11948 11949 # The `*' in the case matches for architectures that use `case' in 11950 # $output_verbose_cmd can trigger glob expansion during the loop 11951 # eval without this substitution. 11952 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11953 11954 for p in `eval $output_verbose_link_cmd`; do 11955 case $p in 11956 11957 -L* | -R* | -l*) 11958 # Some compilers place space between "-{L,R}" and the path. 11959 # Remove the space. 11960 if test $p = "-L" \ 11961 || test $p = "-R"; then 11962 prev=$p 11963 continue 11964 else 11965 prev= 11966 fi 11967 11968 if test "$pre_test_object_deps_done" = no; then 11969 case $p in 11970 -L* | -R*) 11971 # Internal compiler library paths should come after those 11972 # provided the user. The postdeps already come after the 11973 # user supplied libs so there is no need to process them. 11974 if test -z "$compiler_lib_search_path_CXX"; then 11975 compiler_lib_search_path_CXX="${prev}${p}" 11976 else 11977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11978 fi 11979 ;; 11980 # The "-l" case would never come before the object being 11981 # linked, so don't bother handling this case. 11982 esac 11983 else 11984 if test -z "$postdeps_CXX"; then 11985 postdeps_CXX="${prev}${p}" 11986 else 11987 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11988 fi 11989 fi 11990 ;; 11991 11992 *.$objext) 11993 # This assumes that the test object file only shows up 11994 # once in the compiler output. 11995 if test "$p" = "conftest.$objext"; then 11996 pre_test_object_deps_done=yes 11997 continue 11998 fi 11999 12000 if test "$pre_test_object_deps_done" = no; then 12001 if test -z "$predep_objects_CXX"; then 12002 predep_objects_CXX="$p" 12003 else 12004 predep_objects_CXX="$predep_objects_CXX $p" 12005 fi 12006 else 12007 if test -z "$postdep_objects_CXX"; then 12008 postdep_objects_CXX="$p" 12009 else 12010 postdep_objects_CXX="$postdep_objects_CXX $p" 12011 fi 12012 fi 12013 ;; 12014 12015 *) ;; # Ignore the rest. 12016 12017 esac 12018 done 12019 12020 # Clean up. 12021 rm -f a.out a.exe 12022else 12023 echo "libtool.m4: error: problem compiling CXX test program" 12024fi 12025 12026$rm -f confest.$objext 12027 12028# PORTME: override above test on systems where it is broken 12029case $host_os in 12030interix[3-9]*) 12031 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12032 # hack all around it, let's just trust "g++" to DTRT. 12033 predep_objects_CXX= 12034 postdep_objects_CXX= 12035 postdeps_CXX= 12036 ;; 12037 12038linux*) 12039 case `$CC -V 2>&1 | sed 5q` in 12040 *Sun\ C*) 12041 # Sun C++ 5.9 12042 # 12043 # The more standards-conforming stlport4 library is 12044 # incompatible with the Cstd library. Avoid specifying 12045 # it if it's in CXXFLAGS. Ignore libCrun as 12046 # -library=stlport4 depends on it. 12047 case " $CXX $CXXFLAGS " in 12048 *" -library=stlport4 "*) 12049 solaris_use_stlport4=yes 12050 ;; 12051 esac 12052 if test "$solaris_use_stlport4" != yes; then 12053 postdeps_CXX='-library=Cstd -library=Crun' 12054 fi 12055 ;; 12056 esac 12057 ;; 12058 12059solaris*) 12060 case $cc_basename in 12061 CC*) 12062 # The more standards-conforming stlport4 library is 12063 # incompatible with the Cstd library. Avoid specifying 12064 # it if it's in CXXFLAGS. Ignore libCrun as 12065 # -library=stlport4 depends on it. 12066 case " $CXX $CXXFLAGS " in 12067 *" -library=stlport4 "*) 12068 solaris_use_stlport4=yes 12069 ;; 12070 esac 12071 12072 # Adding this requires a known-good setup of shared libraries for 12073 # Sun compiler versions before 5.6, else PIC objects from an old 12074 # archive will be linked into the output, leading to subtle bugs. 12075 if test "$solaris_use_stlport4" != yes; then 12076 postdeps_CXX='-library=Cstd -library=Crun' 12077 fi 12078 ;; 12079 esac 12080 ;; 12081esac 12082 12083 12084case " $postdeps_CXX " in 12085*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12086esac 12087 12088lt_prog_compiler_wl_CXX= 12089lt_prog_compiler_pic_CXX= 12090lt_prog_compiler_static_CXX= 12091 12092{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12093echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12094 12095 # C++ specific cases for pic, static, wl, etc. 12096 if test "$GXX" = yes; then 12097 lt_prog_compiler_wl_CXX='-Wl,' 12098 lt_prog_compiler_static_CXX='-static' 12099 12100 case $host_os in 12101 aix*) 12102 # All AIX code is PIC. 12103 if test "$host_cpu" = ia64; then 12104 # AIX 5 now supports IA64 processor 12105 lt_prog_compiler_static_CXX='-Bstatic' 12106 fi 12107 ;; 12108 amigaos*) 12109 # FIXME: we need at least 68020 code to build shared libraries, but 12110 # adding the `-m68020' flag to GCC prevents building anything better, 12111 # like `-m68040'. 12112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12113 ;; 12114 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12115 # PIC is the default for these OSes. 12116 ;; 12117 mingw* | cygwin* | os2* | pw32*) 12118 # This hack is so that the source file can tell whether it is being 12119 # built for inclusion in a dll (and should export symbols for example). 12120 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12121 # (--disable-auto-import) libraries 12122 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12123 ;; 12124 darwin* | rhapsody*) 12125 # PIC is the default on this platform 12126 # Common symbols not allowed in MH_DYLIB files 12127 lt_prog_compiler_pic_CXX='-fno-common' 12128 ;; 12129 *djgpp*) 12130 # DJGPP does not support shared libraries at all 12131 lt_prog_compiler_pic_CXX= 12132 ;; 12133 interix[3-9]*) 12134 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12135 # Instead, we relocate shared libraries at runtime. 12136 ;; 12137 sysv4*MP*) 12138 if test -d /usr/nec; then 12139 lt_prog_compiler_pic_CXX=-Kconform_pic 12140 fi 12141 ;; 12142 hpux*) 12143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12144 # not for PA HP-UX. 12145 case $host_cpu in 12146 hppa*64*|ia64*) 12147 ;; 12148 *) 12149 lt_prog_compiler_pic_CXX='-fPIC' 12150 ;; 12151 esac 12152 ;; 12153 *) 12154 lt_prog_compiler_pic_CXX='-fPIC' 12155 ;; 12156 esac 12157 else 12158 case $host_os in 12159 aix4* | aix5*) 12160 # All AIX code is PIC. 12161 if test "$host_cpu" = ia64; then 12162 # AIX 5 now supports IA64 processor 12163 lt_prog_compiler_static_CXX='-Bstatic' 12164 else 12165 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12166 fi 12167 ;; 12168 chorus*) 12169 case $cc_basename in 12170 cxch68*) 12171 # Green Hills C++ Compiler 12172 # _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" 12173 ;; 12174 esac 12175 ;; 12176 darwin*) 12177 # PIC is the default on this platform 12178 # Common symbols not allowed in MH_DYLIB files 12179 case $cc_basename in 12180 xlc*) 12181 lt_prog_compiler_pic_CXX='-qnocommon' 12182 lt_prog_compiler_wl_CXX='-Wl,' 12183 ;; 12184 esac 12185 ;; 12186 dgux*) 12187 case $cc_basename in 12188 ec++*) 12189 lt_prog_compiler_pic_CXX='-KPIC' 12190 ;; 12191 ghcx*) 12192 # Green Hills C++ Compiler 12193 lt_prog_compiler_pic_CXX='-pic' 12194 ;; 12195 *) 12196 ;; 12197 esac 12198 ;; 12199 freebsd* | dragonfly*) 12200 # FreeBSD uses GNU C++ 12201 ;; 12202 hpux9* | hpux10* | hpux11*) 12203 case $cc_basename in 12204 CC*) 12205 lt_prog_compiler_wl_CXX='-Wl,' 12206 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12207 if test "$host_cpu" != ia64; then 12208 lt_prog_compiler_pic_CXX='+Z' 12209 fi 12210 ;; 12211 aCC*) 12212 lt_prog_compiler_wl_CXX='-Wl,' 12213 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12214 case $host_cpu in 12215 hppa*64*|ia64*) 12216 # +Z the default 12217 ;; 12218 *) 12219 lt_prog_compiler_pic_CXX='+Z' 12220 ;; 12221 esac 12222 ;; 12223 *) 12224 ;; 12225 esac 12226 ;; 12227 interix*) 12228 # This is c89, which is MS Visual C++ (no shared libs) 12229 # Anyone wants to do a port? 12230 ;; 12231 irix5* | irix6* | nonstopux*) 12232 case $cc_basename in 12233 CC*) 12234 lt_prog_compiler_wl_CXX='-Wl,' 12235 lt_prog_compiler_static_CXX='-non_shared' 12236 # CC pic flag -KPIC is the default. 12237 ;; 12238 *) 12239 ;; 12240 esac 12241 ;; 12242 linux* | k*bsd*-gnu) 12243 case $cc_basename in 12244 KCC*) 12245 # KAI C++ Compiler 12246 lt_prog_compiler_wl_CXX='--backend -Wl,' 12247 lt_prog_compiler_pic_CXX='-fPIC' 12248 ;; 12249 icpc* | ecpc*) 12250 # Intel C++ 12251 lt_prog_compiler_wl_CXX='-Wl,' 12252 lt_prog_compiler_pic_CXX='-KPIC' 12253 lt_prog_compiler_static_CXX='-static' 12254 ;; 12255 pgCC*) 12256 # Portland Group C++ compiler. 12257 lt_prog_compiler_wl_CXX='-Wl,' 12258 lt_prog_compiler_pic_CXX='-fpic' 12259 lt_prog_compiler_static_CXX='-Bstatic' 12260 ;; 12261 cxx*) 12262 # Compaq C++ 12263 # Make sure the PIC flag is empty. It appears that all Alpha 12264 # Linux and Compaq Tru64 Unix objects are PIC. 12265 lt_prog_compiler_pic_CXX= 12266 lt_prog_compiler_static_CXX='-non_shared' 12267 ;; 12268 *) 12269 case `$CC -V 2>&1 | sed 5q` in 12270 *Sun\ C*) 12271 # Sun C++ 5.9 12272 lt_prog_compiler_pic_CXX='-KPIC' 12273 lt_prog_compiler_static_CXX='-Bstatic' 12274 lt_prog_compiler_wl_CXX='-Qoption ld ' 12275 ;; 12276 esac 12277 ;; 12278 esac 12279 ;; 12280 lynxos*) 12281 ;; 12282 m88k*) 12283 ;; 12284 mvs*) 12285 case $cc_basename in 12286 cxx*) 12287 lt_prog_compiler_pic_CXX='-W c,exportall' 12288 ;; 12289 *) 12290 ;; 12291 esac 12292 ;; 12293 netbsd*) 12294 ;; 12295 osf3* | osf4* | osf5*) 12296 case $cc_basename in 12297 KCC*) 12298 lt_prog_compiler_wl_CXX='--backend -Wl,' 12299 ;; 12300 RCC*) 12301 # Rational C++ 2.4.1 12302 lt_prog_compiler_pic_CXX='-pic' 12303 ;; 12304 cxx*) 12305 # Digital/Compaq C++ 12306 lt_prog_compiler_wl_CXX='-Wl,' 12307 # Make sure the PIC flag is empty. It appears that all Alpha 12308 # Linux and Compaq Tru64 Unix objects are PIC. 12309 lt_prog_compiler_pic_CXX= 12310 lt_prog_compiler_static_CXX='-non_shared' 12311 ;; 12312 *) 12313 ;; 12314 esac 12315 ;; 12316 psos*) 12317 ;; 12318 solaris*) 12319 case $cc_basename in 12320 CC*) 12321 # Sun C++ 4.2, 5.x and Centerline C++ 12322 lt_prog_compiler_pic_CXX='-KPIC' 12323 lt_prog_compiler_static_CXX='-Bstatic' 12324 lt_prog_compiler_wl_CXX='-Qoption ld ' 12325 ;; 12326 gcx*) 12327 # Green Hills C++ Compiler 12328 lt_prog_compiler_pic_CXX='-PIC' 12329 ;; 12330 *) 12331 ;; 12332 esac 12333 ;; 12334 sunos4*) 12335 case $cc_basename in 12336 CC*) 12337 # Sun C++ 4.x 12338 lt_prog_compiler_pic_CXX='-pic' 12339 lt_prog_compiler_static_CXX='-Bstatic' 12340 ;; 12341 lcc*) 12342 # Lucid 12343 lt_prog_compiler_pic_CXX='-pic' 12344 ;; 12345 *) 12346 ;; 12347 esac 12348 ;; 12349 tandem*) 12350 case $cc_basename in 12351 NCC*) 12352 # NonStop-UX NCC 3.20 12353 lt_prog_compiler_pic_CXX='-KPIC' 12354 ;; 12355 *) 12356 ;; 12357 esac 12358 ;; 12359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12360 case $cc_basename in 12361 CC*) 12362 lt_prog_compiler_wl_CXX='-Wl,' 12363 lt_prog_compiler_pic_CXX='-KPIC' 12364 lt_prog_compiler_static_CXX='-Bstatic' 12365 ;; 12366 esac 12367 ;; 12368 vxworks*) 12369 ;; 12370 *) 12371 lt_prog_compiler_can_build_shared_CXX=no 12372 ;; 12373 esac 12374 fi 12375 12376{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12377echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12378 12379# 12380# Check to make sure the PIC flag actually works. 12381# 12382if test -n "$lt_prog_compiler_pic_CXX"; then 12383 12384{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12385echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12386if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12387 echo $ECHO_N "(cached) $ECHO_C" >&6 12388else 12389 lt_prog_compiler_pic_works_CXX=no 12390 ac_outfile=conftest.$ac_objext 12391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12392 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12393 # Insert the option either (1) after the last *FLAGS variable, or 12394 # (2) before a word containing "conftest.", or (3) at the end. 12395 # Note that $ac_compile itself does not contain backslashes and begins 12396 # with a dollar sign (not a hyphen), so the echo should work correctly. 12397 # The option is referenced via a variable to avoid confusing sed. 12398 lt_compile=`echo "$ac_compile" | $SED \ 12399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12401 -e 's:$: $lt_compiler_flag:'` 12402 (eval echo "\"\$as_me:12402: $lt_compile\"" >&5) 12403 (eval "$lt_compile" 2>conftest.err) 12404 ac_status=$? 12405 cat conftest.err >&5 12406 echo "$as_me:12406: \$? = $ac_status" >&5 12407 if (exit $ac_status) && test -s "$ac_outfile"; then 12408 # The compiler can only warn and ignore the option if not recognized 12409 # So say no if there are warnings other than the usual output. 12410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12413 lt_prog_compiler_pic_works_CXX=yes 12414 fi 12415 fi 12416 $rm conftest* 12417 12418fi 12419{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12420echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12421 12422if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12423 case $lt_prog_compiler_pic_CXX in 12424 "" | " "*) ;; 12425 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12426 esac 12427else 12428 lt_prog_compiler_pic_CXX= 12429 lt_prog_compiler_can_build_shared_CXX=no 12430fi 12431 12432fi 12433case $host_os in 12434 # For platforms which do not support PIC, -DPIC is meaningless: 12435 *djgpp*) 12436 lt_prog_compiler_pic_CXX= 12437 ;; 12438 *) 12439 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12440 ;; 12441esac 12442 12443# 12444# Check to make sure the static flag actually works. 12445# 12446wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12447{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12448echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12449if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12450 echo $ECHO_N "(cached) $ECHO_C" >&6 12451else 12452 lt_prog_compiler_static_works_CXX=no 12453 save_LDFLAGS="$LDFLAGS" 12454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12455 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12457 # The linker can only warn and ignore the option if not recognized 12458 # So say no if there are warnings 12459 if test -s conftest.err; then 12460 # Append any errors to the config.log. 12461 cat conftest.err 1>&5 12462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12464 if diff conftest.exp conftest.er2 >/dev/null; then 12465 lt_prog_compiler_static_works_CXX=yes 12466 fi 12467 else 12468 lt_prog_compiler_static_works_CXX=yes 12469 fi 12470 fi 12471 $rm conftest* 12472 LDFLAGS="$save_LDFLAGS" 12473 12474fi 12475{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12476echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12477 12478if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12479 : 12480else 12481 lt_prog_compiler_static_CXX= 12482fi 12483 12484 12485{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12486echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12487if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12488 echo $ECHO_N "(cached) $ECHO_C" >&6 12489else 12490 lt_cv_prog_compiler_c_o_CXX=no 12491 $rm -r conftest 2>/dev/null 12492 mkdir conftest 12493 cd conftest 12494 mkdir out 12495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12496 12497 lt_compiler_flag="-o out/conftest2.$ac_objext" 12498 # Insert the option either (1) after the last *FLAGS variable, or 12499 # (2) before a word containing "conftest.", or (3) at the end. 12500 # Note that $ac_compile itself does not contain backslashes and begins 12501 # with a dollar sign (not a hyphen), so the echo should work correctly. 12502 lt_compile=`echo "$ac_compile" | $SED \ 12503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12505 -e 's:$: $lt_compiler_flag:'` 12506 (eval echo "\"\$as_me:12506: $lt_compile\"" >&5) 12507 (eval "$lt_compile" 2>out/conftest.err) 12508 ac_status=$? 12509 cat out/conftest.err >&5 12510 echo "$as_me:12510: \$? = $ac_status" >&5 12511 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12512 then 12513 # The compiler can only warn and ignore the option if not recognized 12514 # So say no if there are warnings 12515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12518 lt_cv_prog_compiler_c_o_CXX=yes 12519 fi 12520 fi 12521 chmod u+w . 2>&5 12522 $rm conftest* 12523 # SGI C++ compiler will create directory out/ii_files/ for 12524 # template instantiation 12525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12526 $rm out/* && rmdir out 12527 cd .. 12528 rmdir conftest 12529 $rm conftest* 12530 12531fi 12532{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12533echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12534 12535 12536hard_links="nottested" 12537if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12538 # do not overwrite the value of need_locks provided by the user 12539 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12540echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12541 hard_links=yes 12542 $rm conftest* 12543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12544 touch conftest.a 12545 ln conftest.a conftest.b 2>&5 || hard_links=no 12546 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12547 { echo "$as_me:$LINENO: result: $hard_links" >&5 12548echo "${ECHO_T}$hard_links" >&6; } 12549 if test "$hard_links" = no; then 12550 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12551echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12552 need_locks=warn 12553 fi 12554else 12555 need_locks=no 12556fi 12557 12558{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12559echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12560 12561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12562 case $host_os in 12563 aix4* | aix5*) 12564 # If we're using GNU nm, then we don't want the "-C" option. 12565 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12567 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' 12568 else 12569 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' 12570 fi 12571 ;; 12572 pw32*) 12573 export_symbols_cmds_CXX="$ltdll_cmds" 12574 ;; 12575 cygwin* | mingw*) 12576 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' 12577 ;; 12578 *) 12579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12580 ;; 12581 esac 12582 12583{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12584echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12585test "$ld_shlibs_CXX" = no && can_build_shared=no 12586 12587# 12588# Do we need to explicitly link libc? 12589# 12590case "x$archive_cmds_need_lc_CXX" in 12591x|xyes) 12592 # Assume -lc should be added 12593 archive_cmds_need_lc_CXX=yes 12594 12595 if test "$enable_shared" = yes && test "$GCC" = yes; then 12596 case $archive_cmds_CXX in 12597 *'~'*) 12598 # FIXME: we may have to deal with multi-command sequences. 12599 ;; 12600 '$CC '*) 12601 # Test whether the compiler implicitly links with -lc since on some 12602 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12603 # to ld, don't add -lc before -lgcc. 12604 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12605echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12606 $rm conftest* 12607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12608 12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12610 (eval $ac_compile) 2>&5 12611 ac_status=$? 12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 (exit $ac_status); } 2>conftest.err; then 12614 soname=conftest 12615 lib=conftest 12616 libobjs=conftest.$ac_objext 12617 deplibs= 12618 wl=$lt_prog_compiler_wl_CXX 12619 pic_flag=$lt_prog_compiler_pic_CXX 12620 compiler_flags=-v 12621 linker_flags=-v 12622 verstring= 12623 output_objdir=. 12624 libname=conftest 12625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12626 allow_undefined_flag_CXX= 12627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12629 ac_status=$? 12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12631 (exit $ac_status); } 12632 then 12633 archive_cmds_need_lc_CXX=no 12634 else 12635 archive_cmds_need_lc_CXX=yes 12636 fi 12637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12638 else 12639 cat conftest.err 1>&5 12640 fi 12641 $rm conftest* 12642 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12643echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12644 ;; 12645 esac 12646 fi 12647 ;; 12648esac 12649 12650{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12651echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12652library_names_spec= 12653libname_spec='lib$name' 12654soname_spec= 12655shrext_cmds=".so" 12656postinstall_cmds= 12657postuninstall_cmds= 12658finish_cmds= 12659finish_eval= 12660shlibpath_var= 12661shlibpath_overrides_runpath=unknown 12662version_type=none 12663dynamic_linker="$host_os ld.so" 12664sys_lib_dlsearch_path_spec="/lib /usr/lib" 12665 12666need_lib_prefix=unknown 12667hardcode_into_libs=no 12668 12669# when you set need_version to no, make sure it does not cause -set_version 12670# flags to be left without arguments 12671need_version=unknown 12672 12673case $host_os in 12674aix3*) 12675 version_type=linux 12676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12677 shlibpath_var=LIBPATH 12678 12679 # AIX 3 has no versioning support, so we append a major version to the name. 12680 soname_spec='${libname}${release}${shared_ext}$major' 12681 ;; 12682 12683aix4* | aix5*) 12684 version_type=linux 12685 need_lib_prefix=no 12686 need_version=no 12687 hardcode_into_libs=yes 12688 if test "$host_cpu" = ia64; then 12689 # AIX 5 supports IA64 12690 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12691 shlibpath_var=LD_LIBRARY_PATH 12692 else 12693 # With GCC up to 2.95.x, collect2 would create an import file 12694 # for dependence libraries. The import file would start with 12695 # the line `#! .'. This would cause the generated library to 12696 # depend on `.', always an invalid library. This was fixed in 12697 # development snapshots of GCC prior to 3.0. 12698 case $host_os in 12699 aix4 | aix4.[01] | aix4.[01].*) 12700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12701 echo ' yes ' 12702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12703 : 12704 else 12705 can_build_shared=no 12706 fi 12707 ;; 12708 esac 12709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12710 # soname into executable. Probably we can add versioning support to 12711 # collect2, so additional links can be useful in future. 12712 if test "$aix_use_runtimelinking" = yes; then 12713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12714 # instead of lib<name>.a to let people know that these are not 12715 # typical AIX shared libraries. 12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12717 else 12718 # We preserve .a as extension for shared libraries through AIX4.2 12719 # and later when we are not doing run time linking. 12720 library_names_spec='${libname}${release}.a $libname.a' 12721 soname_spec='${libname}${release}${shared_ext}$major' 12722 fi 12723 shlibpath_var=LIBPATH 12724 fi 12725 ;; 12726 12727amigaos*) 12728 library_names_spec='$libname.ixlibrary $libname.a' 12729 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12730 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' 12731 ;; 12732 12733beos*) 12734 library_names_spec='${libname}${shared_ext}' 12735 dynamic_linker="$host_os ld.so" 12736 shlibpath_var=LIBRARY_PATH 12737 ;; 12738 12739bsdi[45]*) 12740 version_type=linux 12741 need_version=no 12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12743 soname_spec='${libname}${release}${shared_ext}$major' 12744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12745 shlibpath_var=LD_LIBRARY_PATH 12746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12748 # the default ld.so.conf also contains /usr/contrib/lib and 12749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12750 # libtool to hard-code these into programs 12751 ;; 12752 12753cygwin* | mingw* | pw32*) 12754 version_type=windows 12755 shrext_cmds=".dll" 12756 need_version=no 12757 need_lib_prefix=no 12758 12759 case $GCC,$host_os in 12760 yes,cygwin* | yes,mingw* | yes,pw32*) 12761 library_names_spec='$libname.dll.a' 12762 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12763 postinstall_cmds='base_file=`basename \${file}`~ 12764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12765 dldir=$destdir/`dirname \$dlpath`~ 12766 test -d \$dldir || mkdir -p \$dldir~ 12767 $install_prog $dir/$dlname \$dldir/$dlname~ 12768 chmod a+x \$dldir/$dlname' 12769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12770 dlpath=$dir/\$dldll~ 12771 $rm \$dlpath' 12772 shlibpath_overrides_runpath=yes 12773 12774 case $host_os in 12775 cygwin*) 12776 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12778 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12779 ;; 12780 mingw*) 12781 # MinGW DLLs use traditional 'lib' prefix 12782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12784 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12785 # It is most probably a Windows format PATH printed by 12786 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12787 # path with ; separators, and with drive letters. We can handle the 12788 # drive letters (cygwin fileutils understands them), so leave them, 12789 # especially as we might pass files found there to a mingw objdump, 12790 # which wouldn't understand a cygwinified path. Ahh. 12791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12792 else 12793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12794 fi 12795 ;; 12796 pw32*) 12797 # pw32 DLLs use 'pw' prefix rather than 'lib' 12798 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12799 ;; 12800 esac 12801 ;; 12802 12803 *) 12804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12805 ;; 12806 esac 12807 dynamic_linker='Win32 ld.exe' 12808 # FIXME: first we should search . and the directory the executable is in 12809 shlibpath_var=PATH 12810 ;; 12811 12812darwin* | rhapsody*) 12813 dynamic_linker="$host_os dyld" 12814 version_type=darwin 12815 need_lib_prefix=no 12816 need_version=no 12817 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12818 soname_spec='${libname}${release}${major}$shared_ext' 12819 shlibpath_overrides_runpath=yes 12820 shlibpath_var=DYLD_LIBRARY_PATH 12821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12822 12823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12824 ;; 12825 12826dgux*) 12827 version_type=linux 12828 need_lib_prefix=no 12829 need_version=no 12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12831 soname_spec='${libname}${release}${shared_ext}$major' 12832 shlibpath_var=LD_LIBRARY_PATH 12833 ;; 12834 12835freebsd1*) 12836 dynamic_linker=no 12837 ;; 12838 12839freebsd* | dragonfly*) 12840 # DragonFly does not have aout. When/if they implement a new 12841 # versioning mechanism, adjust this. 12842 if test -x /usr/bin/objformat; then 12843 objformat=`/usr/bin/objformat` 12844 else 12845 case $host_os in 12846 freebsd[123]*) objformat=aout ;; 12847 *) objformat=elf ;; 12848 esac 12849 fi 12850 version_type=freebsd-$objformat 12851 case $version_type in 12852 freebsd-elf*) 12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12854 need_version=no 12855 need_lib_prefix=no 12856 ;; 12857 freebsd-*) 12858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12859 need_version=yes 12860 ;; 12861 esac 12862 shlibpath_var=LD_LIBRARY_PATH 12863 case $host_os in 12864 freebsd2*) 12865 shlibpath_overrides_runpath=yes 12866 ;; 12867 freebsd3.[01]* | freebsdelf3.[01]*) 12868 shlibpath_overrides_runpath=yes 12869 hardcode_into_libs=yes 12870 ;; 12871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12873 shlibpath_overrides_runpath=no 12874 hardcode_into_libs=yes 12875 ;; 12876 *) # from 4.6 on, and DragonFly 12877 shlibpath_overrides_runpath=yes 12878 hardcode_into_libs=yes 12879 ;; 12880 esac 12881 ;; 12882 12883gnu*) 12884 version_type=linux 12885 need_lib_prefix=no 12886 need_version=no 12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12888 soname_spec='${libname}${release}${shared_ext}$major' 12889 shlibpath_var=LD_LIBRARY_PATH 12890 hardcode_into_libs=yes 12891 ;; 12892 12893hpux9* | hpux10* | hpux11*) 12894 # Give a soname corresponding to the major version so that dld.sl refuses to 12895 # link against other versions. 12896 version_type=sunos 12897 need_lib_prefix=no 12898 need_version=no 12899 case $host_cpu in 12900 ia64*) 12901 shrext_cmds='.so' 12902 hardcode_into_libs=yes 12903 dynamic_linker="$host_os dld.so" 12904 shlibpath_var=LD_LIBRARY_PATH 12905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 if test "X$HPUX_IA64_MODE" = X32; then 12909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12910 else 12911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12912 fi 12913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12914 ;; 12915 hppa*64*) 12916 shrext_cmds='.sl' 12917 hardcode_into_libs=yes 12918 dynamic_linker="$host_os dld.sl" 12919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12922 soname_spec='${libname}${release}${shared_ext}$major' 12923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12925 ;; 12926 *) 12927 shrext_cmds='.sl' 12928 dynamic_linker="$host_os dld.sl" 12929 shlibpath_var=SHLIB_PATH 12930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12932 soname_spec='${libname}${release}${shared_ext}$major' 12933 ;; 12934 esac 12935 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12936 postinstall_cmds='chmod 555 $lib' 12937 ;; 12938 12939interix[3-9]*) 12940 version_type=linux 12941 need_lib_prefix=no 12942 need_version=no 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12944 soname_spec='${libname}${release}${shared_ext}$major' 12945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12946 shlibpath_var=LD_LIBRARY_PATH 12947 shlibpath_overrides_runpath=no 12948 hardcode_into_libs=yes 12949 ;; 12950 12951irix5* | irix6* | nonstopux*) 12952 case $host_os in 12953 nonstopux*) version_type=nonstopux ;; 12954 *) 12955 if test "$lt_cv_prog_gnu_ld" = yes; then 12956 version_type=linux 12957 else 12958 version_type=irix 12959 fi ;; 12960 esac 12961 need_lib_prefix=no 12962 need_version=no 12963 soname_spec='${libname}${release}${shared_ext}$major' 12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12965 case $host_os in 12966 irix5* | nonstopux*) 12967 libsuff= shlibsuff= 12968 ;; 12969 *) 12970 case $LD in # libtool.m4 will add one of these switches to LD 12971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12972 libsuff= shlibsuff= libmagic=32-bit;; 12973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12974 libsuff=32 shlibsuff=N32 libmagic=N32;; 12975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12976 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12977 *) libsuff= shlibsuff= libmagic=never-match;; 12978 esac 12979 ;; 12980 esac 12981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12982 shlibpath_overrides_runpath=no 12983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12985 hardcode_into_libs=yes 12986 ;; 12987 12988# No shared lib support for Linux oldld, aout, or coff. 12989linux*oldld* | linux*aout* | linux*coff*) 12990 dynamic_linker=no 12991 ;; 12992 12993# This must be Linux ELF. 12994linux* | k*bsd*-gnu) 12995 version_type=linux 12996 need_lib_prefix=no 12997 need_version=no 12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12999 soname_spec='${libname}${release}${shared_ext}$major' 13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13001 shlibpath_var=LD_LIBRARY_PATH 13002 shlibpath_overrides_runpath=no 13003 # This implies no fast_install, which is unacceptable. 13004 # Some rework will be needed to allow for fast_install 13005 # before this can be enabled. 13006 hardcode_into_libs=yes 13007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13009 13010 # Append ld.so.conf contents to the search path 13011 if test -f /etc/ld.so.conf; then 13012 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' ' '` 13013 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13014 fi 13015 13016 # We used to test for /lib/ld.so.1 and disable shared libraries on 13017 # powerpc, because MkLinux only supported shared libraries with the 13018 # GNU dynamic linker. Since this was broken with cross compilers, 13019 # most powerpc-linux boxes support dynamic linking these days and 13020 # people can always --disable-shared, the test was removed, and we 13021 # assume the GNU/Linux dynamic linker is in use. 13022 dynamic_linker='GNU/Linux ld.so' 13023 ;; 13024 13025netbsd*) 13026 version_type=sunos 13027 need_lib_prefix=no 13028 need_version=no 13029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13032 dynamic_linker='NetBSD (a.out) ld.so' 13033 else 13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13035 soname_spec='${libname}${release}${shared_ext}$major' 13036 dynamic_linker='NetBSD ld.elf_so' 13037 fi 13038 shlibpath_var=LD_LIBRARY_PATH 13039 shlibpath_overrides_runpath=yes 13040 hardcode_into_libs=yes 13041 ;; 13042 13043newsos6) 13044 version_type=linux 13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13046 shlibpath_var=LD_LIBRARY_PATH 13047 shlibpath_overrides_runpath=yes 13048 ;; 13049 13050nto-qnx*) 13051 version_type=linux 13052 need_lib_prefix=no 13053 need_version=no 13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13055 soname_spec='${libname}${release}${shared_ext}$major' 13056 shlibpath_var=LD_LIBRARY_PATH 13057 shlibpath_overrides_runpath=yes 13058 ;; 13059 13060openbsd*) 13061 version_type=sunos 13062 sys_lib_dlsearch_path_spec="/usr/lib" 13063 need_lib_prefix=no 13064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13065 case $host_os in 13066 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13067 *) need_version=no ;; 13068 esac 13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13071 shlibpath_var=LD_LIBRARY_PATH 13072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13073 case $host_os in 13074 openbsd2.[89] | openbsd2.[89].*) 13075 shlibpath_overrides_runpath=no 13076 ;; 13077 *) 13078 shlibpath_overrides_runpath=yes 13079 ;; 13080 esac 13081 else 13082 shlibpath_overrides_runpath=yes 13083 fi 13084 ;; 13085 13086os2*) 13087 libname_spec='$name' 13088 shrext_cmds=".dll" 13089 need_lib_prefix=no 13090 library_names_spec='$libname${shared_ext} $libname.a' 13091 dynamic_linker='OS/2 ld.exe' 13092 shlibpath_var=LIBPATH 13093 ;; 13094 13095osf3* | osf4* | osf5*) 13096 version_type=osf 13097 need_lib_prefix=no 13098 need_version=no 13099 soname_spec='${libname}${release}${shared_ext}$major' 13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13101 shlibpath_var=LD_LIBRARY_PATH 13102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13104 ;; 13105 13106rdos*) 13107 dynamic_linker=no 13108 ;; 13109 13110solaris*) 13111 version_type=linux 13112 need_lib_prefix=no 13113 need_version=no 13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13115 soname_spec='${libname}${release}${shared_ext}$major' 13116 shlibpath_var=LD_LIBRARY_PATH 13117 shlibpath_overrides_runpath=yes 13118 hardcode_into_libs=yes 13119 # ldd complains unless libraries are executable 13120 postinstall_cmds='chmod +x $lib' 13121 ;; 13122 13123sunos4*) 13124 version_type=sunos 13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 shlibpath_overrides_runpath=yes 13129 if test "$with_gnu_ld" = yes; then 13130 need_lib_prefix=no 13131 fi 13132 need_version=yes 13133 ;; 13134 13135sysv4 | sysv4.3*) 13136 version_type=linux 13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13138 soname_spec='${libname}${release}${shared_ext}$major' 13139 shlibpath_var=LD_LIBRARY_PATH 13140 case $host_vendor in 13141 sni) 13142 shlibpath_overrides_runpath=no 13143 need_lib_prefix=no 13144 export_dynamic_flag_spec='${wl}-Blargedynsym' 13145 runpath_var=LD_RUN_PATH 13146 ;; 13147 siemens) 13148 need_lib_prefix=no 13149 ;; 13150 motorola) 13151 need_lib_prefix=no 13152 need_version=no 13153 shlibpath_overrides_runpath=no 13154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13155 ;; 13156 esac 13157 ;; 13158 13159sysv4*MP*) 13160 if test -d /usr/nec ;then 13161 version_type=linux 13162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13163 soname_spec='$libname${shared_ext}.$major' 13164 shlibpath_var=LD_LIBRARY_PATH 13165 fi 13166 ;; 13167 13168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13169 version_type=freebsd-elf 13170 need_lib_prefix=no 13171 need_version=no 13172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13173 soname_spec='${libname}${release}${shared_ext}$major' 13174 shlibpath_var=LD_LIBRARY_PATH 13175 hardcode_into_libs=yes 13176 if test "$with_gnu_ld" = yes; then 13177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13178 shlibpath_overrides_runpath=no 13179 else 13180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13181 shlibpath_overrides_runpath=yes 13182 case $host_os in 13183 sco3.2v5*) 13184 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13185 ;; 13186 esac 13187 fi 13188 sys_lib_dlsearch_path_spec='/usr/lib' 13189 ;; 13190 13191uts4*) 13192 version_type=linux 13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13194 soname_spec='${libname}${release}${shared_ext}$major' 13195 shlibpath_var=LD_LIBRARY_PATH 13196 ;; 13197 13198*) 13199 dynamic_linker=no 13200 ;; 13201esac 13202{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13203echo "${ECHO_T}$dynamic_linker" >&6; } 13204test "$dynamic_linker" = no && can_build_shared=no 13205 13206variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13207if test "$GCC" = yes; then 13208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13209fi 13210 13211{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13212echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13213hardcode_action_CXX= 13214if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13215 test -n "$runpath_var_CXX" || \ 13216 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13217 13218 # We can hardcode non-existant directories. 13219 if test "$hardcode_direct_CXX" != no && 13220 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13221 # have to relink, otherwise we might link with an installed library 13222 # when we should be linking with a yet-to-be-installed one 13223 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13224 test "$hardcode_minus_L_CXX" != no; then 13225 # Linking always hardcodes the temporary library directory. 13226 hardcode_action_CXX=relink 13227 else 13228 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13229 hardcode_action_CXX=immediate 13230 fi 13231else 13232 # We cannot hardcode anything, or else we can only hardcode existing 13233 # directories. 13234 hardcode_action_CXX=unsupported 13235fi 13236{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13237echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13238 13239if test "$hardcode_action_CXX" = relink; then 13240 # Fast installation is not supported 13241 enable_fast_install=no 13242elif test "$shlibpath_overrides_runpath" = yes || 13243 test "$enable_shared" = no; then 13244 # Fast installation is not necessary 13245 enable_fast_install=needless 13246fi 13247 13248 13249# The else clause should only fire when bootstrapping the 13250# libtool distribution, otherwise you forgot to ship ltmain.sh 13251# with your package, and you will get complaints that there are 13252# no rules to generate ltmain.sh. 13253if test -f "$ltmain"; then 13254 # See if we are running on zsh, and set the options which allow our commands through 13255 # without removal of \ escapes. 13256 if test -n "${ZSH_VERSION+set}" ; then 13257 setopt NO_GLOB_SUBST 13258 fi 13259 # Now quote all the things that may contain metacharacters while being 13260 # careful not to overquote the AC_SUBSTed values. We take copies of the 13261 # variables and quote the copies for generation of the libtool script. 13262 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13263 SED SHELL STRIP \ 13264 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13265 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13266 deplibs_check_method reload_flag reload_cmds need_locks \ 13267 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13268 lt_cv_sys_global_symbol_to_c_name_address \ 13269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13270 old_postinstall_cmds old_postuninstall_cmds \ 13271 compiler_CXX \ 13272 CC_CXX \ 13273 LD_CXX \ 13274 lt_prog_compiler_wl_CXX \ 13275 lt_prog_compiler_pic_CXX \ 13276 lt_prog_compiler_static_CXX \ 13277 lt_prog_compiler_no_builtin_flag_CXX \ 13278 export_dynamic_flag_spec_CXX \ 13279 thread_safe_flag_spec_CXX \ 13280 whole_archive_flag_spec_CXX \ 13281 enable_shared_with_static_runtimes_CXX \ 13282 old_archive_cmds_CXX \ 13283 old_archive_from_new_cmds_CXX \ 13284 predep_objects_CXX \ 13285 postdep_objects_CXX \ 13286 predeps_CXX \ 13287 postdeps_CXX \ 13288 compiler_lib_search_path_CXX \ 13289 archive_cmds_CXX \ 13290 archive_expsym_cmds_CXX \ 13291 postinstall_cmds_CXX \ 13292 postuninstall_cmds_CXX \ 13293 old_archive_from_expsyms_cmds_CXX \ 13294 allow_undefined_flag_CXX \ 13295 no_undefined_flag_CXX \ 13296 export_symbols_cmds_CXX \ 13297 hardcode_libdir_flag_spec_CXX \ 13298 hardcode_libdir_flag_spec_ld_CXX \ 13299 hardcode_libdir_separator_CXX \ 13300 hardcode_automatic_CXX \ 13301 module_cmds_CXX \ 13302 module_expsym_cmds_CXX \ 13303 lt_cv_prog_compiler_c_o_CXX \ 13304 fix_srcfile_path_CXX \ 13305 exclude_expsyms_CXX \ 13306 include_expsyms_CXX; do 13307 13308 case $var in 13309 old_archive_cmds_CXX | \ 13310 old_archive_from_new_cmds_CXX | \ 13311 archive_cmds_CXX | \ 13312 archive_expsym_cmds_CXX | \ 13313 module_cmds_CXX | \ 13314 module_expsym_cmds_CXX | \ 13315 old_archive_from_expsyms_cmds_CXX | \ 13316 export_symbols_cmds_CXX | \ 13317 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13318 postinstall_cmds | postuninstall_cmds | \ 13319 old_postinstall_cmds | old_postuninstall_cmds | \ 13320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13321 # Double-quote double-evaled strings. 13322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13323 ;; 13324 *) 13325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13326 ;; 13327 esac 13328 done 13329 13330 case $lt_echo in 13331 *'\$0 --fallback-echo"') 13332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13333 ;; 13334 esac 13335 13336cfgfile="$ofile" 13337 13338 cat <<__EOF__ >> "$cfgfile" 13339# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13340 13341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13342 13343# Shell to use when invoking shell scripts. 13344SHELL=$lt_SHELL 13345 13346# Whether or not to build shared libraries. 13347build_libtool_libs=$enable_shared 13348 13349# Whether or not to build static libraries. 13350build_old_libs=$enable_static 13351 13352# Whether or not to add -lc for building shared libraries. 13353build_libtool_need_lc=$archive_cmds_need_lc_CXX 13354 13355# Whether or not to disallow shared libs when runtime libs are static 13356allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13357 13358# Whether or not to optimize for fast installation. 13359fast_install=$enable_fast_install 13360 13361# The host system. 13362host_alias=$host_alias 13363host=$host 13364host_os=$host_os 13365 13366# The build system. 13367build_alias=$build_alias 13368build=$build 13369build_os=$build_os 13370 13371# An echo program that does not interpret backslashes. 13372echo=$lt_echo 13373 13374# The archiver. 13375AR=$lt_AR 13376AR_FLAGS=$lt_AR_FLAGS 13377 13378# A C compiler. 13379LTCC=$lt_LTCC 13380 13381# LTCC compiler flags. 13382LTCFLAGS=$lt_LTCFLAGS 13383 13384# A language-specific compiler. 13385CC=$lt_compiler_CXX 13386 13387# Is the compiler the GNU C compiler? 13388with_gcc=$GCC_CXX 13389 13390# An ERE matcher. 13391EGREP=$lt_EGREP 13392 13393# The linker used to build libraries. 13394LD=$lt_LD_CXX 13395 13396# Whether we need hard or soft links. 13397LN_S=$lt_LN_S 13398 13399# A BSD-compatible nm program. 13400NM=$lt_NM 13401 13402# A symbol stripping program 13403STRIP=$lt_STRIP 13404 13405# Used to examine libraries when file_magic_cmd begins "file" 13406MAGIC_CMD=$MAGIC_CMD 13407 13408# Used on cygwin: DLL creation program. 13409DLLTOOL="$DLLTOOL" 13410 13411# Used on cygwin: object dumper. 13412OBJDUMP="$OBJDUMP" 13413 13414# Used on cygwin: assembler. 13415AS="$AS" 13416 13417# The name of the directory that contains temporary libtool files. 13418objdir=$objdir 13419 13420# How to create reloadable object files. 13421reload_flag=$lt_reload_flag 13422reload_cmds=$lt_reload_cmds 13423 13424# How to pass a linker flag through the compiler. 13425wl=$lt_lt_prog_compiler_wl_CXX 13426 13427# Object file suffix (normally "o"). 13428objext="$ac_objext" 13429 13430# Old archive suffix (normally "a"). 13431libext="$libext" 13432 13433# Shared library suffix (normally ".so"). 13434shrext_cmds='$shrext_cmds' 13435 13436# Executable file suffix (normally ""). 13437exeext="$exeext" 13438 13439# Additional compiler flags for building library objects. 13440pic_flag=$lt_lt_prog_compiler_pic_CXX 13441pic_mode=$pic_mode 13442 13443# What is the maximum length of a command? 13444max_cmd_len=$lt_cv_sys_max_cmd_len 13445 13446# Does compiler simultaneously support -c and -o options? 13447compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13448 13449# Must we lock files when doing compilation? 13450need_locks=$lt_need_locks 13451 13452# Do we need the lib prefix for modules? 13453need_lib_prefix=$need_lib_prefix 13454 13455# Do we need a version for libraries? 13456need_version=$need_version 13457 13458# Whether dlopen is supported. 13459dlopen_support=$enable_dlopen 13460 13461# Whether dlopen of programs is supported. 13462dlopen_self=$enable_dlopen_self 13463 13464# Whether dlopen of statically linked programs is supported. 13465dlopen_self_static=$enable_dlopen_self_static 13466 13467# Compiler flag to prevent dynamic linking. 13468link_static_flag=$lt_lt_prog_compiler_static_CXX 13469 13470# Compiler flag to turn off builtin functions. 13471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13472 13473# Compiler flag to allow reflexive dlopens. 13474export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13475 13476# Compiler flag to generate shared objects directly from archives. 13477whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13478 13479# Compiler flag to generate thread-safe objects. 13480thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13481 13482# Library versioning type. 13483version_type=$version_type 13484 13485# Format of library name prefix. 13486libname_spec=$lt_libname_spec 13487 13488# List of archive names. First name is the real one, the rest are links. 13489# The last name is the one that the linker finds with -lNAME. 13490library_names_spec=$lt_library_names_spec 13491 13492# The coded name of the library, if different from the real name. 13493soname_spec=$lt_soname_spec 13494 13495# Commands used to build and install an old-style archive. 13496RANLIB=$lt_RANLIB 13497old_archive_cmds=$lt_old_archive_cmds_CXX 13498old_postinstall_cmds=$lt_old_postinstall_cmds 13499old_postuninstall_cmds=$lt_old_postuninstall_cmds 13500 13501# Create an old-style archive from a shared archive. 13502old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13503 13504# Create a temporary old-style archive to link instead of a shared archive. 13505old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13506 13507# Commands used to build and install a shared archive. 13508archive_cmds=$lt_archive_cmds_CXX 13509archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13510postinstall_cmds=$lt_postinstall_cmds 13511postuninstall_cmds=$lt_postuninstall_cmds 13512 13513# Commands used to build a loadable module (assumed same as above if empty) 13514module_cmds=$lt_module_cmds_CXX 13515module_expsym_cmds=$lt_module_expsym_cmds_CXX 13516 13517# Commands to strip libraries. 13518old_striplib=$lt_old_striplib 13519striplib=$lt_striplib 13520 13521# Dependencies to place before the objects being linked to create a 13522# shared library. 13523predep_objects=$lt_predep_objects_CXX 13524 13525# Dependencies to place after the objects being linked to create a 13526# shared library. 13527postdep_objects=$lt_postdep_objects_CXX 13528 13529# Dependencies to place before the objects being linked to create a 13530# shared library. 13531predeps=$lt_predeps_CXX 13532 13533# Dependencies to place after the objects being linked to create a 13534# shared library. 13535postdeps=$lt_postdeps_CXX 13536 13537# The library search path used internally by the compiler when linking 13538# a shared library. 13539compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13540 13541# Method to check whether dependent libraries are shared objects. 13542deplibs_check_method=$lt_deplibs_check_method 13543 13544# Command to use when deplibs_check_method == file_magic. 13545file_magic_cmd=$lt_file_magic_cmd 13546 13547# Flag that allows shared libraries with undefined symbols to be built. 13548allow_undefined_flag=$lt_allow_undefined_flag_CXX 13549 13550# Flag that forces no undefined symbols. 13551no_undefined_flag=$lt_no_undefined_flag_CXX 13552 13553# Commands used to finish a libtool library installation in a directory. 13554finish_cmds=$lt_finish_cmds 13555 13556# Same as above, but a single script fragment to be evaled but not shown. 13557finish_eval=$lt_finish_eval 13558 13559# Take the output of nm and produce a listing of raw symbols and C names. 13560global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13561 13562# Transform the output of nm in a proper C declaration 13563global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13564 13565# Transform the output of nm in a C name address pair 13566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13567 13568# This is the shared library runtime path variable. 13569runpath_var=$runpath_var 13570 13571# This is the shared library path variable. 13572shlibpath_var=$shlibpath_var 13573 13574# Is shlibpath searched before the hard-coded library search path? 13575shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13576 13577# How to hardcode a shared library path into an executable. 13578hardcode_action=$hardcode_action_CXX 13579 13580# Whether we should hardcode library paths into libraries. 13581hardcode_into_libs=$hardcode_into_libs 13582 13583# Flag to hardcode \$libdir into a binary during linking. 13584# This must work even if \$libdir does not exist. 13585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13586 13587# If ld is used when linking, flag to hardcode \$libdir into 13588# a binary during linking. This must work even if \$libdir does 13589# not exist. 13590hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13591 13592# Whether we need a single -rpath flag with a separated argument. 13593hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13594 13595# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13596# resulting binary. 13597hardcode_direct=$hardcode_direct_CXX 13598 13599# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13600# resulting binary. 13601hardcode_minus_L=$hardcode_minus_L_CXX 13602 13603# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13604# the resulting binary. 13605hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13606 13607# Set to yes if building a shared library automatically hardcodes DIR into the library 13608# and all subsequent libraries and executables linked against it. 13609hardcode_automatic=$hardcode_automatic_CXX 13610 13611# Variables whose values should be saved in libtool wrapper scripts and 13612# restored at relink time. 13613variables_saved_for_relink="$variables_saved_for_relink" 13614 13615# Whether libtool must link a program against all its dependency libraries. 13616link_all_deplibs=$link_all_deplibs_CXX 13617 13618# Compile-time system search path for libraries 13619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13620 13621# Run-time system search path for libraries 13622sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13623 13624# Fix the shell variable \$srcfile for the compiler. 13625fix_srcfile_path=$lt_fix_srcfile_path 13626 13627# Set to yes if exported symbols are required. 13628always_export_symbols=$always_export_symbols_CXX 13629 13630# The commands to list exported symbols. 13631export_symbols_cmds=$lt_export_symbols_cmds_CXX 13632 13633# The commands to extract the exported symbol list from a shared archive. 13634extract_expsyms_cmds=$lt_extract_expsyms_cmds 13635 13636# Symbols that should not be listed in the preloaded symbols. 13637exclude_expsyms=$lt_exclude_expsyms_CXX 13638 13639# Symbols that must always be exported. 13640include_expsyms=$lt_include_expsyms_CXX 13641 13642# ### END LIBTOOL TAG CONFIG: $tagname 13643 13644__EOF__ 13645 13646 13647else 13648 # If there is no Makefile yet, we rely on a make rule to execute 13649 # `config.status --recheck' to rerun these tests and create the 13650 # libtool script then. 13651 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13652 if test -f "$ltmain_in"; then 13653 test -f Makefile && make "$ltmain" 13654 fi 13655fi 13656 13657 13658ac_ext=c 13659ac_cpp='$CPP $CPPFLAGS' 13660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13662ac_compiler_gnu=$ac_cv_c_compiler_gnu 13663 13664CC=$lt_save_CC 13665LDCXX=$LD 13666LD=$lt_save_LD 13667GCC=$lt_save_GCC 13668with_gnu_ldcxx=$with_gnu_ld 13669with_gnu_ld=$lt_save_with_gnu_ld 13670lt_cv_path_LDCXX=$lt_cv_path_LD 13671lt_cv_path_LD=$lt_save_path_LD 13672lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13673lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13674 13675 else 13676 tagname="" 13677 fi 13678 ;; 13679 13680 F77) 13681 if test -n "$F77" && test "X$F77" != "Xno"; then 13682 13683ac_ext=f 13684ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13685ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13686ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13687 13688 13689archive_cmds_need_lc_F77=no 13690allow_undefined_flag_F77= 13691always_export_symbols_F77=no 13692archive_expsym_cmds_F77= 13693export_dynamic_flag_spec_F77= 13694hardcode_direct_F77=no 13695hardcode_libdir_flag_spec_F77= 13696hardcode_libdir_flag_spec_ld_F77= 13697hardcode_libdir_separator_F77= 13698hardcode_minus_L_F77=no 13699hardcode_automatic_F77=no 13700module_cmds_F77= 13701module_expsym_cmds_F77= 13702link_all_deplibs_F77=unknown 13703old_archive_cmds_F77=$old_archive_cmds 13704no_undefined_flag_F77= 13705whole_archive_flag_spec_F77= 13706enable_shared_with_static_runtimes_F77=no 13707 13708# Source file extension for f77 test sources. 13709ac_ext=f 13710 13711# Object file extension for compiled f77 test sources. 13712objext=o 13713objext_F77=$objext 13714 13715# Code to be used in simple compile tests 13716lt_simple_compile_test_code="\ 13717 subroutine t 13718 return 13719 end 13720" 13721 13722# Code to be used in simple link tests 13723lt_simple_link_test_code="\ 13724 program t 13725 end 13726" 13727 13728# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13729 13730# If no C compiler was specified, use CC. 13731LTCC=${LTCC-"$CC"} 13732 13733# If no C compiler flags were specified, use CFLAGS. 13734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13735 13736# Allow CC to be a program name with arguments. 13737compiler=$CC 13738 13739 13740# save warnings/boilerplate of simple test code 13741ac_outfile=conftest.$ac_objext 13742echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13744_lt_compiler_boilerplate=`cat conftest.err` 13745$rm conftest* 13746 13747ac_outfile=conftest.$ac_objext 13748echo "$lt_simple_link_test_code" >conftest.$ac_ext 13749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13750_lt_linker_boilerplate=`cat conftest.err` 13751$rm conftest* 13752 13753 13754# Allow CC to be a program name with arguments. 13755lt_save_CC="$CC" 13756CC=${F77-"f77"} 13757compiler=$CC 13758compiler_F77=$CC 13759for cc_temp in $compiler""; do 13760 case $cc_temp in 13761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13763 \-*) ;; 13764 *) break;; 13765 esac 13766done 13767cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13768 13769 13770{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13771echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13772{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13773echo "${ECHO_T}$can_build_shared" >&6; } 13774 13775{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13776echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13777test "$can_build_shared" = "no" && enable_shared=no 13778 13779# On AIX, shared libraries and static libraries use the same namespace, and 13780# are all built from PIC. 13781case $host_os in 13782aix3*) 13783 test "$enable_shared" = yes && enable_static=no 13784 if test -n "$RANLIB"; then 13785 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13786 postinstall_cmds='$RANLIB $lib' 13787 fi 13788 ;; 13789aix4* | aix5*) 13790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13791 test "$enable_shared" = yes && enable_static=no 13792 fi 13793 ;; 13794esac 13795{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13796echo "${ECHO_T}$enable_shared" >&6; } 13797 13798{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13799echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13800# Make sure either enable_shared or enable_static is yes. 13801test "$enable_shared" = yes || enable_static=yes 13802{ echo "$as_me:$LINENO: result: $enable_static" >&5 13803echo "${ECHO_T}$enable_static" >&6; } 13804 13805GCC_F77="$G77" 13806LD_F77="$LD" 13807 13808lt_prog_compiler_wl_F77= 13809lt_prog_compiler_pic_F77= 13810lt_prog_compiler_static_F77= 13811 13812{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13813echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13814 13815 if test "$GCC" = yes; then 13816 lt_prog_compiler_wl_F77='-Wl,' 13817 lt_prog_compiler_static_F77='-static' 13818 13819 case $host_os in 13820 aix*) 13821 # All AIX code is PIC. 13822 if test "$host_cpu" = ia64; then 13823 # AIX 5 now supports IA64 processor 13824 lt_prog_compiler_static_F77='-Bstatic' 13825 fi 13826 ;; 13827 13828 amigaos*) 13829 # FIXME: we need at least 68020 code to build shared libraries, but 13830 # adding the `-m68020' flag to GCC prevents building anything better, 13831 # like `-m68040'. 13832 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13833 ;; 13834 13835 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13836 # PIC is the default for these OSes. 13837 ;; 13838 13839 mingw* | cygwin* | pw32* | os2*) 13840 # This hack is so that the source file can tell whether it is being 13841 # built for inclusion in a dll (and should export symbols for example). 13842 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13843 # (--disable-auto-import) libraries 13844 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13845 ;; 13846 13847 darwin* | rhapsody*) 13848 # PIC is the default on this platform 13849 # Common symbols not allowed in MH_DYLIB files 13850 lt_prog_compiler_pic_F77='-fno-common' 13851 ;; 13852 13853 interix[3-9]*) 13854 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13855 # Instead, we relocate shared libraries at runtime. 13856 ;; 13857 13858 msdosdjgpp*) 13859 # Just because we use GCC doesn't mean we suddenly get shared libraries 13860 # on systems that don't support them. 13861 lt_prog_compiler_can_build_shared_F77=no 13862 enable_shared=no 13863 ;; 13864 13865 sysv4*MP*) 13866 if test -d /usr/nec; then 13867 lt_prog_compiler_pic_F77=-Kconform_pic 13868 fi 13869 ;; 13870 13871 hpux*) 13872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13873 # not for PA HP-UX. 13874 case $host_cpu in 13875 hppa*64*|ia64*) 13876 # +Z the default 13877 ;; 13878 *) 13879 lt_prog_compiler_pic_F77='-fPIC' 13880 ;; 13881 esac 13882 ;; 13883 13884 *) 13885 lt_prog_compiler_pic_F77='-fPIC' 13886 ;; 13887 esac 13888 else 13889 # PORTME Check for flag to pass linker flags through the system compiler. 13890 case $host_os in 13891 aix*) 13892 lt_prog_compiler_wl_F77='-Wl,' 13893 if test "$host_cpu" = ia64; then 13894 # AIX 5 now supports IA64 processor 13895 lt_prog_compiler_static_F77='-Bstatic' 13896 else 13897 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13898 fi 13899 ;; 13900 darwin*) 13901 # PIC is the default on this platform 13902 # Common symbols not allowed in MH_DYLIB files 13903 case $cc_basename in 13904 xlc*) 13905 lt_prog_compiler_pic_F77='-qnocommon' 13906 lt_prog_compiler_wl_F77='-Wl,' 13907 ;; 13908 esac 13909 ;; 13910 13911 mingw* | cygwin* | pw32* | os2*) 13912 # This hack is so that the source file can tell whether it is being 13913 # built for inclusion in a dll (and should export symbols for example). 13914 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13915 ;; 13916 13917 hpux9* | hpux10* | hpux11*) 13918 lt_prog_compiler_wl_F77='-Wl,' 13919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13920 # not for PA HP-UX. 13921 case $host_cpu in 13922 hppa*64*|ia64*) 13923 # +Z the default 13924 ;; 13925 *) 13926 lt_prog_compiler_pic_F77='+Z' 13927 ;; 13928 esac 13929 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13930 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13931 ;; 13932 13933 irix5* | irix6* | nonstopux*) 13934 lt_prog_compiler_wl_F77='-Wl,' 13935 # PIC (with -KPIC) is the default. 13936 lt_prog_compiler_static_F77='-non_shared' 13937 ;; 13938 13939 newsos6) 13940 lt_prog_compiler_pic_F77='-KPIC' 13941 lt_prog_compiler_static_F77='-Bstatic' 13942 ;; 13943 13944 linux* | k*bsd*-gnu) 13945 case $cc_basename in 13946 icc* | ecc*) 13947 lt_prog_compiler_wl_F77='-Wl,' 13948 lt_prog_compiler_pic_F77='-KPIC' 13949 lt_prog_compiler_static_F77='-static' 13950 ;; 13951 pgcc* | pgf77* | pgf90* | pgf95*) 13952 # Portland Group compilers (*not* the Pentium gcc compiler, 13953 # which looks to be a dead project) 13954 lt_prog_compiler_wl_F77='-Wl,' 13955 lt_prog_compiler_pic_F77='-fpic' 13956 lt_prog_compiler_static_F77='-Bstatic' 13957 ;; 13958 ccc*) 13959 lt_prog_compiler_wl_F77='-Wl,' 13960 # All Alpha code is PIC. 13961 lt_prog_compiler_static_F77='-non_shared' 13962 ;; 13963 *) 13964 case `$CC -V 2>&1 | sed 5q` in 13965 *Sun\ C*) 13966 # Sun C 5.9 13967 lt_prog_compiler_pic_F77='-KPIC' 13968 lt_prog_compiler_static_F77='-Bstatic' 13969 lt_prog_compiler_wl_F77='-Wl,' 13970 ;; 13971 *Sun\ F*) 13972 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13973 lt_prog_compiler_pic_F77='-KPIC' 13974 lt_prog_compiler_static_F77='-Bstatic' 13975 lt_prog_compiler_wl_F77='' 13976 ;; 13977 esac 13978 ;; 13979 esac 13980 ;; 13981 13982 osf3* | osf4* | osf5*) 13983 lt_prog_compiler_wl_F77='-Wl,' 13984 # All OSF/1 code is PIC. 13985 lt_prog_compiler_static_F77='-non_shared' 13986 ;; 13987 13988 rdos*) 13989 lt_prog_compiler_static_F77='-non_shared' 13990 ;; 13991 13992 solaris*) 13993 lt_prog_compiler_pic_F77='-KPIC' 13994 lt_prog_compiler_static_F77='-Bstatic' 13995 case $cc_basename in 13996 f77* | f90* | f95*) 13997 lt_prog_compiler_wl_F77='-Qoption ld ';; 13998 *) 13999 lt_prog_compiler_wl_F77='-Wl,';; 14000 esac 14001 ;; 14002 14003 sunos4*) 14004 lt_prog_compiler_wl_F77='-Qoption ld ' 14005 lt_prog_compiler_pic_F77='-PIC' 14006 lt_prog_compiler_static_F77='-Bstatic' 14007 ;; 14008 14009 sysv4 | sysv4.2uw2* | sysv4.3*) 14010 lt_prog_compiler_wl_F77='-Wl,' 14011 lt_prog_compiler_pic_F77='-KPIC' 14012 lt_prog_compiler_static_F77='-Bstatic' 14013 ;; 14014 14015 sysv4*MP*) 14016 if test -d /usr/nec ;then 14017 lt_prog_compiler_pic_F77='-Kconform_pic' 14018 lt_prog_compiler_static_F77='-Bstatic' 14019 fi 14020 ;; 14021 14022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14023 lt_prog_compiler_wl_F77='-Wl,' 14024 lt_prog_compiler_pic_F77='-KPIC' 14025 lt_prog_compiler_static_F77='-Bstatic' 14026 ;; 14027 14028 unicos*) 14029 lt_prog_compiler_wl_F77='-Wl,' 14030 lt_prog_compiler_can_build_shared_F77=no 14031 ;; 14032 14033 uts4*) 14034 lt_prog_compiler_pic_F77='-pic' 14035 lt_prog_compiler_static_F77='-Bstatic' 14036 ;; 14037 14038 *) 14039 lt_prog_compiler_can_build_shared_F77=no 14040 ;; 14041 esac 14042 fi 14043 14044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14045echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14046 14047# 14048# Check to make sure the PIC flag actually works. 14049# 14050if test -n "$lt_prog_compiler_pic_F77"; then 14051 14052{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14053echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14054if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14055 echo $ECHO_N "(cached) $ECHO_C" >&6 14056else 14057 lt_prog_compiler_pic_works_F77=no 14058 ac_outfile=conftest.$ac_objext 14059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14060 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14061 # Insert the option either (1) after the last *FLAGS variable, or 14062 # (2) before a word containing "conftest.", or (3) at the end. 14063 # Note that $ac_compile itself does not contain backslashes and begins 14064 # with a dollar sign (not a hyphen), so the echo should work correctly. 14065 # The option is referenced via a variable to avoid confusing sed. 14066 lt_compile=`echo "$ac_compile" | $SED \ 14067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14069 -e 's:$: $lt_compiler_flag:'` 14070 (eval echo "\"\$as_me:14070: $lt_compile\"" >&5) 14071 (eval "$lt_compile" 2>conftest.err) 14072 ac_status=$? 14073 cat conftest.err >&5 14074 echo "$as_me:14074: \$? = $ac_status" >&5 14075 if (exit $ac_status) && test -s "$ac_outfile"; then 14076 # The compiler can only warn and ignore the option if not recognized 14077 # So say no if there are warnings other than the usual output. 14078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14081 lt_prog_compiler_pic_works_F77=yes 14082 fi 14083 fi 14084 $rm conftest* 14085 14086fi 14087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14088echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14089 14090if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14091 case $lt_prog_compiler_pic_F77 in 14092 "" | " "*) ;; 14093 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14094 esac 14095else 14096 lt_prog_compiler_pic_F77= 14097 lt_prog_compiler_can_build_shared_F77=no 14098fi 14099 14100fi 14101case $host_os in 14102 # For platforms which do not support PIC, -DPIC is meaningless: 14103 *djgpp*) 14104 lt_prog_compiler_pic_F77= 14105 ;; 14106 *) 14107 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14108 ;; 14109esac 14110 14111# 14112# Check to make sure the static flag actually works. 14113# 14114wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14115{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14116echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14117if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14118 echo $ECHO_N "(cached) $ECHO_C" >&6 14119else 14120 lt_prog_compiler_static_works_F77=no 14121 save_LDFLAGS="$LDFLAGS" 14122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14123 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14125 # The linker can only warn and ignore the option if not recognized 14126 # So say no if there are warnings 14127 if test -s conftest.err; then 14128 # Append any errors to the config.log. 14129 cat conftest.err 1>&5 14130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14132 if diff conftest.exp conftest.er2 >/dev/null; then 14133 lt_prog_compiler_static_works_F77=yes 14134 fi 14135 else 14136 lt_prog_compiler_static_works_F77=yes 14137 fi 14138 fi 14139 $rm conftest* 14140 LDFLAGS="$save_LDFLAGS" 14141 14142fi 14143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14144echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14145 14146if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14147 : 14148else 14149 lt_prog_compiler_static_F77= 14150fi 14151 14152 14153{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14155if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14156 echo $ECHO_N "(cached) $ECHO_C" >&6 14157else 14158 lt_cv_prog_compiler_c_o_F77=no 14159 $rm -r conftest 2>/dev/null 14160 mkdir conftest 14161 cd conftest 14162 mkdir out 14163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14164 14165 lt_compiler_flag="-o out/conftest2.$ac_objext" 14166 # Insert the option either (1) after the last *FLAGS variable, or 14167 # (2) before a word containing "conftest.", or (3) at the end. 14168 # Note that $ac_compile itself does not contain backslashes and begins 14169 # with a dollar sign (not a hyphen), so the echo should work correctly. 14170 lt_compile=`echo "$ac_compile" | $SED \ 14171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14173 -e 's:$: $lt_compiler_flag:'` 14174 (eval echo "\"\$as_me:14174: $lt_compile\"" >&5) 14175 (eval "$lt_compile" 2>out/conftest.err) 14176 ac_status=$? 14177 cat out/conftest.err >&5 14178 echo "$as_me:14178: \$? = $ac_status" >&5 14179 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14180 then 14181 # The compiler can only warn and ignore the option if not recognized 14182 # So say no if there are warnings 14183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14186 lt_cv_prog_compiler_c_o_F77=yes 14187 fi 14188 fi 14189 chmod u+w . 2>&5 14190 $rm conftest* 14191 # SGI C++ compiler will create directory out/ii_files/ for 14192 # template instantiation 14193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14194 $rm out/* && rmdir out 14195 cd .. 14196 rmdir conftest 14197 $rm conftest* 14198 14199fi 14200{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14201echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14202 14203 14204hard_links="nottested" 14205if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14206 # do not overwrite the value of need_locks provided by the user 14207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14208echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14209 hard_links=yes 14210 $rm conftest* 14211 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14212 touch conftest.a 14213 ln conftest.a conftest.b 2>&5 || hard_links=no 14214 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14215 { echo "$as_me:$LINENO: result: $hard_links" >&5 14216echo "${ECHO_T}$hard_links" >&6; } 14217 if test "$hard_links" = no; then 14218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14219echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14220 need_locks=warn 14221 fi 14222else 14223 need_locks=no 14224fi 14225 14226{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14227echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14228 14229 runpath_var= 14230 allow_undefined_flag_F77= 14231 enable_shared_with_static_runtimes_F77=no 14232 archive_cmds_F77= 14233 archive_expsym_cmds_F77= 14234 old_archive_From_new_cmds_F77= 14235 old_archive_from_expsyms_cmds_F77= 14236 export_dynamic_flag_spec_F77= 14237 whole_archive_flag_spec_F77= 14238 thread_safe_flag_spec_F77= 14239 hardcode_libdir_flag_spec_F77= 14240 hardcode_libdir_flag_spec_ld_F77= 14241 hardcode_libdir_separator_F77= 14242 hardcode_direct_F77=no 14243 hardcode_minus_L_F77=no 14244 hardcode_shlibpath_var_F77=unsupported 14245 link_all_deplibs_F77=unknown 14246 hardcode_automatic_F77=no 14247 module_cmds_F77= 14248 module_expsym_cmds_F77= 14249 always_export_symbols_F77=no 14250 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14251 # include_expsyms should be a list of space-separated symbols to be *always* 14252 # included in the symbol list 14253 include_expsyms_F77= 14254 # exclude_expsyms can be an extended regexp of symbols to exclude 14255 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14257 # as well as any symbol that contains `d'. 14258 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14260 # platforms (ab)use it in PIC code, but their linkers get confused if 14261 # the symbol is explicitly referenced. Since portable code cannot 14262 # rely on this symbol name, it's probably fine to never include it in 14263 # preloaded symbol tables. 14264 extract_expsyms_cmds= 14265 # Just being paranoid about ensuring that cc_basename is set. 14266 for cc_temp in $compiler""; do 14267 case $cc_temp in 14268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14270 \-*) ;; 14271 *) break;; 14272 esac 14273done 14274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14275 14276 case $host_os in 14277 cygwin* | mingw* | pw32*) 14278 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14279 # When not using gcc, we currently assume that we are using 14280 # Microsoft Visual C++. 14281 if test "$GCC" != yes; then 14282 with_gnu_ld=no 14283 fi 14284 ;; 14285 interix*) 14286 # we just hope/assume this is gcc and not c89 (= MSVC++) 14287 with_gnu_ld=yes 14288 ;; 14289 openbsd*) 14290 with_gnu_ld=no 14291 ;; 14292 esac 14293 14294 ld_shlibs_F77=yes 14295 if test "$with_gnu_ld" = yes; then 14296 # If archive_cmds runs LD, not CC, wlarc should be empty 14297 wlarc='${wl}' 14298 14299 # Set some defaults for GNU ld with shared library support. These 14300 # are reset later if shared libraries are not supported. Putting them 14301 # here allows them to be overridden if necessary. 14302 runpath_var=LD_RUN_PATH 14303 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14304 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14305 # ancient GNU ld didn't support --whole-archive et. al. 14306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14307 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14308 else 14309 whole_archive_flag_spec_F77= 14310 fi 14311 supports_anon_versioning=no 14312 case `$LD -v 2>/dev/null` in 14313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14316 *\ 2.11.*) ;; # other 2.11 versions 14317 *) supports_anon_versioning=yes ;; 14318 esac 14319 14320 # See if GNU ld supports shared libraries. 14321 case $host_os in 14322 aix3* | aix4* | aix5*) 14323 # On AIX/PPC, the GNU linker is very broken 14324 if test "$host_cpu" != ia64; then 14325 ld_shlibs_F77=no 14326 cat <<EOF 1>&2 14327 14328*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14329*** to be unable to reliably create shared libraries on AIX. 14330*** Therefore, libtool is disabling shared libraries support. If you 14331*** really care for shared libraries, you may want to modify your PATH 14332*** so that a non-GNU linker is found, and then restart. 14333 14334EOF 14335 fi 14336 ;; 14337 14338 amigaos*) 14339 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)' 14340 hardcode_libdir_flag_spec_F77='-L$libdir' 14341 hardcode_minus_L_F77=yes 14342 14343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14344 # that the semantics of dynamic libraries on AmigaOS, at least up 14345 # to version 4, is to share data among multiple programs linked 14346 # with the same dynamic library. Since this doesn't match the 14347 # behavior of shared libraries on other platforms, we can't use 14348 # them. 14349 ld_shlibs_F77=no 14350 ;; 14351 14352 beos*) 14353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14354 allow_undefined_flag_F77=unsupported 14355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14356 # support --undefined. This deserves some investigation. FIXME 14357 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14358 else 14359 ld_shlibs_F77=no 14360 fi 14361 ;; 14362 14363 cygwin* | mingw* | pw32*) 14364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14365 # as there is no search path for DLLs. 14366 hardcode_libdir_flag_spec_F77='-L$libdir' 14367 allow_undefined_flag_F77=unsupported 14368 always_export_symbols_F77=no 14369 enable_shared_with_static_runtimes_F77=yes 14370 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14371 14372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14373 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14374 # If the export-symbols file already is a .def file (1st line 14375 # is EXPORTS), use it as is; otherwise, prepend... 14376 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14377 cp $export_symbols $output_objdir/$soname.def; 14378 else 14379 echo EXPORTS > $output_objdir/$soname.def; 14380 cat $export_symbols >> $output_objdir/$soname.def; 14381 fi~ 14382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14383 else 14384 ld_shlibs_F77=no 14385 fi 14386 ;; 14387 14388 interix[3-9]*) 14389 hardcode_direct_F77=no 14390 hardcode_shlibpath_var_F77=no 14391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14392 export_dynamic_flag_spec_F77='${wl}-E' 14393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14394 # Instead, shared libraries are loaded at an image base (0x10000000 by 14395 # default) and relocated if they conflict, which is a slow very memory 14396 # consuming and fragmenting process. To avoid this, we pick a random, 14397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14398 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14399 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' 14400 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' 14401 ;; 14402 14403 gnu* | linux* | k*bsd*-gnu) 14404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14405 tmp_addflag= 14406 case $cc_basename,$host_cpu in 14407 pgcc*) # Portland Group C compiler 14408 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' 14409 tmp_addflag=' $pic_flag' 14410 ;; 14411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14412 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' 14413 tmp_addflag=' $pic_flag -Mnomain' ;; 14414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14415 tmp_addflag=' -i_dynamic' ;; 14416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14417 tmp_addflag=' -i_dynamic -nofor_main' ;; 14418 ifc* | ifort*) # Intel Fortran compiler 14419 tmp_addflag=' -nofor_main' ;; 14420 esac 14421 case `$CC -V 2>&1 | sed 5q` in 14422 *Sun\ C*) # Sun C 5.9 14423 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' 14424 tmp_sharedflag='-G' ;; 14425 *Sun\ F*) # Sun Fortran 8.3 14426 tmp_sharedflag='-G' ;; 14427 *) 14428 tmp_sharedflag='-shared' ;; 14429 esac 14430 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14431 14432 if test $supports_anon_versioning = yes; then 14433 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14435 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14437 fi 14438 else 14439 ld_shlibs_F77=no 14440 fi 14441 ;; 14442 14443 netbsd*) 14444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14445 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14446 wlarc= 14447 else 14448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14449 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14450 fi 14451 ;; 14452 14453 solaris*) 14454 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14455 ld_shlibs_F77=no 14456 cat <<EOF 1>&2 14457 14458*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14459*** create shared libraries on Solaris systems. Therefore, libtool 14460*** is disabling shared libraries support. We urge you to upgrade GNU 14461*** binutils to release 2.9.1 or newer. Another option is to modify 14462*** your PATH or compiler configuration so that the native linker is 14463*** used, and then restart. 14464 14465EOF 14466 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14467 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14468 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14469 else 14470 ld_shlibs_F77=no 14471 fi 14472 ;; 14473 14474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14475 case `$LD -v 2>&1` in 14476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14477 ld_shlibs_F77=no 14478 cat <<_LT_EOF 1>&2 14479 14480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14481*** reliably create shared libraries on SCO systems. Therefore, libtool 14482*** is disabling shared libraries support. We urge you to upgrade GNU 14483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14484*** your PATH or compiler configuration so that the native linker is 14485*** used, and then restart. 14486 14487_LT_EOF 14488 ;; 14489 *) 14490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14491 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14493 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14494 else 14495 ld_shlibs_F77=no 14496 fi 14497 ;; 14498 esac 14499 ;; 14500 14501 sunos4*) 14502 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14503 wlarc= 14504 hardcode_direct_F77=yes 14505 hardcode_shlibpath_var_F77=no 14506 ;; 14507 14508 *) 14509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14512 else 14513 ld_shlibs_F77=no 14514 fi 14515 ;; 14516 esac 14517 14518 if test "$ld_shlibs_F77" = no; then 14519 runpath_var= 14520 hardcode_libdir_flag_spec_F77= 14521 export_dynamic_flag_spec_F77= 14522 whole_archive_flag_spec_F77= 14523 fi 14524 else 14525 # PORTME fill in a description of your system's linker (not GNU ld) 14526 case $host_os in 14527 aix3*) 14528 allow_undefined_flag_F77=unsupported 14529 always_export_symbols_F77=yes 14530 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' 14531 # Note: this linker hardcodes the directories in LIBPATH if there 14532 # are no directories specified by -L. 14533 hardcode_minus_L_F77=yes 14534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14535 # Neither direct hardcoding nor static linking is supported with a 14536 # broken collect2. 14537 hardcode_direct_F77=unsupported 14538 fi 14539 ;; 14540 14541 aix4* | aix5*) 14542 if test "$host_cpu" = ia64; then 14543 # On IA64, the linker does run time linking by default, so we don't 14544 # have to do anything special. 14545 aix_use_runtimelinking=no 14546 exp_sym_flag='-Bexport' 14547 no_entry_flag="" 14548 else 14549 # If we're using GNU nm, then we don't want the "-C" option. 14550 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14552 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' 14553 else 14554 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' 14555 fi 14556 aix_use_runtimelinking=no 14557 14558 # Test if we are trying to use run time linking or normal 14559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14560 # need to do runtime linking. 14561 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14562 for ld_flag in $LDFLAGS; do 14563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14564 aix_use_runtimelinking=yes 14565 break 14566 fi 14567 done 14568 ;; 14569 esac 14570 14571 exp_sym_flag='-bexport' 14572 no_entry_flag='-bnoentry' 14573 fi 14574 14575 # When large executables or shared objects are built, AIX ld can 14576 # have problems creating the table of contents. If linking a library 14577 # or program results in "error TOC overflow" add -mminimal-toc to 14578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14580 14581 archive_cmds_F77='' 14582 hardcode_direct_F77=yes 14583 hardcode_libdir_separator_F77=':' 14584 link_all_deplibs_F77=yes 14585 14586 if test "$GCC" = yes; then 14587 case $host_os in aix4.[012]|aix4.[012].*) 14588 # We only want to do this on AIX 4.2 and lower, the check 14589 # below for broken collect2 doesn't work under 4.3+ 14590 collect2name=`${CC} -print-prog-name=collect2` 14591 if test -f "$collect2name" && \ 14592 strings "$collect2name" | grep resolve_lib_name >/dev/null 14593 then 14594 # We have reworked collect2 14595 : 14596 else 14597 # We have old collect2 14598 hardcode_direct_F77=unsupported 14599 # It fails to find uninstalled libraries when the uninstalled 14600 # path is not listed in the libpath. Setting hardcode_minus_L 14601 # to unsupported forces relinking 14602 hardcode_minus_L_F77=yes 14603 hardcode_libdir_flag_spec_F77='-L$libdir' 14604 hardcode_libdir_separator_F77= 14605 fi 14606 ;; 14607 esac 14608 shared_flag='-shared' 14609 if test "$aix_use_runtimelinking" = yes; then 14610 shared_flag="$shared_flag "'${wl}-G' 14611 fi 14612 else 14613 # not using gcc 14614 if test "$host_cpu" = ia64; then 14615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14616 # chokes on -Wl,-G. The following line is correct: 14617 shared_flag='-G' 14618 else 14619 if test "$aix_use_runtimelinking" = yes; then 14620 shared_flag='${wl}-G' 14621 else 14622 shared_flag='${wl}-bM:SRE' 14623 fi 14624 fi 14625 fi 14626 14627 # It seems that -bexpall does not export symbols beginning with 14628 # underscore (_), so it is better to generate a list of symbols to export. 14629 always_export_symbols_F77=yes 14630 if test "$aix_use_runtimelinking" = yes; then 14631 # Warning - without using the other runtime loading flags (-brtl), 14632 # -berok will link without error, but may produce a broken library. 14633 allow_undefined_flag_F77='-berok' 14634 # Determine the default libpath from the value encoded in an empty executable. 14635 cat >conftest.$ac_ext <<_ACEOF 14636 program main 14637 14638 end 14639_ACEOF 14640rm -f conftest.$ac_objext conftest$ac_exeext 14641if { (ac_try="$ac_link" 14642case "(($ac_try" in 14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14644 *) ac_try_echo=$ac_try;; 14645esac 14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14647 (eval "$ac_link") 2>conftest.er1 14648 ac_status=$? 14649 grep -v '^ *+' conftest.er1 >conftest.err 14650 rm -f conftest.er1 14651 cat conftest.err >&5 14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14653 (exit $ac_status); } && { 14654 test -z "$ac_f77_werror_flag" || 14655 test ! -s conftest.err 14656 } && test -s conftest$ac_exeext && 14657 $as_test_x conftest$ac_exeext; then 14658 14659lt_aix_libpath_sed=' 14660 /Import File Strings/,/^$/ { 14661 /^0/ { 14662 s/^0 *\(.*\)$/\1/ 14663 p 14664 } 14665 }' 14666aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14667# Check for a 64-bit object if we didn't find anything. 14668if test -z "$aix_libpath"; then 14669 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14670fi 14671else 14672 echo "$as_me: failed program was:" >&5 14673sed 's/^/| /' conftest.$ac_ext >&5 14674 14675 14676fi 14677 14678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14679 conftest$ac_exeext conftest.$ac_ext 14680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14681 14682 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14683 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" 14684 else 14685 if test "$host_cpu" = ia64; then 14686 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14687 allow_undefined_flag_F77="-z nodefs" 14688 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" 14689 else 14690 # Determine the default libpath from the value encoded in an empty executable. 14691 cat >conftest.$ac_ext <<_ACEOF 14692 program main 14693 14694 end 14695_ACEOF 14696rm -f conftest.$ac_objext conftest$ac_exeext 14697if { (ac_try="$ac_link" 14698case "(($ac_try" in 14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14700 *) ac_try_echo=$ac_try;; 14701esac 14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14703 (eval "$ac_link") 2>conftest.er1 14704 ac_status=$? 14705 grep -v '^ *+' conftest.er1 >conftest.err 14706 rm -f conftest.er1 14707 cat conftest.err >&5 14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14709 (exit $ac_status); } && { 14710 test -z "$ac_f77_werror_flag" || 14711 test ! -s conftest.err 14712 } && test -s conftest$ac_exeext && 14713 $as_test_x conftest$ac_exeext; then 14714 14715lt_aix_libpath_sed=' 14716 /Import File Strings/,/^$/ { 14717 /^0/ { 14718 s/^0 *\(.*\)$/\1/ 14719 p 14720 } 14721 }' 14722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14723# Check for a 64-bit object if we didn't find anything. 14724if test -z "$aix_libpath"; then 14725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14726fi 14727else 14728 echo "$as_me: failed program was:" >&5 14729sed 's/^/| /' conftest.$ac_ext >&5 14730 14731 14732fi 14733 14734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14735 conftest$ac_exeext conftest.$ac_ext 14736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14737 14738 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14739 # Warning - without using the other run time loading flags, 14740 # -berok will link without error, but may produce a broken library. 14741 no_undefined_flag_F77=' ${wl}-bernotok' 14742 allow_undefined_flag_F77=' ${wl}-berok' 14743 # Exported symbols can be pulled into shared objects from archives 14744 whole_archive_flag_spec_F77='$convenience' 14745 archive_cmds_need_lc_F77=yes 14746 # This is similar to how AIX traditionally builds its shared libraries. 14747 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' 14748 fi 14749 fi 14750 ;; 14751 14752 amigaos*) 14753 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)' 14754 hardcode_libdir_flag_spec_F77='-L$libdir' 14755 hardcode_minus_L_F77=yes 14756 # see comment about different semantics on the GNU ld section 14757 ld_shlibs_F77=no 14758 ;; 14759 14760 bsdi[45]*) 14761 export_dynamic_flag_spec_F77=-rdynamic 14762 ;; 14763 14764 cygwin* | mingw* | pw32*) 14765 # When not using gcc, we currently assume that we are using 14766 # Microsoft Visual C++. 14767 # hardcode_libdir_flag_spec is actually meaningless, as there is 14768 # no search path for DLLs. 14769 hardcode_libdir_flag_spec_F77=' ' 14770 allow_undefined_flag_F77=unsupported 14771 # Tell ltmain to make .lib files, not .a files. 14772 libext=lib 14773 # Tell ltmain to make .dll files, not .so files. 14774 shrext_cmds=".dll" 14775 # FIXME: Setting linknames here is a bad hack. 14776 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14777 # The linker will automatically build a .lib file if we build a DLL. 14778 old_archive_From_new_cmds_F77='true' 14779 # FIXME: Should let the user specify the lib program. 14780 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14781 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14782 enable_shared_with_static_runtimes_F77=yes 14783 ;; 14784 14785 darwin* | rhapsody*) 14786 case $host_os in 14787 rhapsody* | darwin1.[012]) 14788 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14789 ;; 14790 *) # Darwin 1.3 on 14791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14792 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14793 else 14794 case ${MACOSX_DEPLOYMENT_TARGET} in 14795 10.[012]) 14796 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14797 ;; 14798 10.*) 14799 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14800 ;; 14801 esac 14802 fi 14803 ;; 14804 esac 14805 archive_cmds_need_lc_F77=no 14806 hardcode_direct_F77=no 14807 hardcode_automatic_F77=yes 14808 hardcode_shlibpath_var_F77=unsupported 14809 whole_archive_flag_spec_F77='' 14810 link_all_deplibs_F77=yes 14811 if test "$GCC" = yes ; then 14812 output_verbose_link_cmd='echo' 14813 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14814 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14816 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}' 14817 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}' 14818 else 14819 case $cc_basename in 14820 xlc*) 14821 output_verbose_link_cmd='echo' 14822 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14823 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14825 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}' 14826 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}' 14827 ;; 14828 *) 14829 ld_shlibs_F77=no 14830 ;; 14831 esac 14832 fi 14833 ;; 14834 14835 dgux*) 14836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14837 hardcode_libdir_flag_spec_F77='-L$libdir' 14838 hardcode_shlibpath_var_F77=no 14839 ;; 14840 14841 freebsd1*) 14842 ld_shlibs_F77=no 14843 ;; 14844 14845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14846 # support. Future versions do this automatically, but an explicit c++rt0.o 14847 # does not break anything, and helps significantly (at the cost of a little 14848 # extra space). 14849 freebsd2.2*) 14850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14851 hardcode_libdir_flag_spec_F77='-R$libdir' 14852 hardcode_direct_F77=yes 14853 hardcode_shlibpath_var_F77=no 14854 ;; 14855 14856 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14857 freebsd2*) 14858 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14859 hardcode_direct_F77=yes 14860 hardcode_minus_L_F77=yes 14861 hardcode_shlibpath_var_F77=no 14862 ;; 14863 14864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14865 freebsd* | dragonfly*) 14866 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14867 hardcode_libdir_flag_spec_F77='-R$libdir' 14868 hardcode_direct_F77=yes 14869 hardcode_shlibpath_var_F77=no 14870 ;; 14871 14872 hpux9*) 14873 if test "$GCC" = yes; then 14874 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' 14875 else 14876 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' 14877 fi 14878 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14879 hardcode_libdir_separator_F77=: 14880 hardcode_direct_F77=yes 14881 14882 # hardcode_minus_L: Not really in the search PATH, 14883 # but as the default location of the library. 14884 hardcode_minus_L_F77=yes 14885 export_dynamic_flag_spec_F77='${wl}-E' 14886 ;; 14887 14888 hpux10*) 14889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14890 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14891 else 14892 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14893 fi 14894 if test "$with_gnu_ld" = no; then 14895 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14896 hardcode_libdir_separator_F77=: 14897 14898 hardcode_direct_F77=yes 14899 export_dynamic_flag_spec_F77='${wl}-E' 14900 14901 # hardcode_minus_L: Not really in the search PATH, 14902 # but as the default location of the library. 14903 hardcode_minus_L_F77=yes 14904 fi 14905 ;; 14906 14907 hpux11*) 14908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14909 case $host_cpu in 14910 hppa*64*) 14911 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14912 ;; 14913 ia64*) 14914 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14915 ;; 14916 *) 14917 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14918 ;; 14919 esac 14920 else 14921 case $host_cpu in 14922 hppa*64*) 14923 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14924 ;; 14925 ia64*) 14926 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14927 ;; 14928 *) 14929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14930 ;; 14931 esac 14932 fi 14933 if test "$with_gnu_ld" = no; then 14934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14935 hardcode_libdir_separator_F77=: 14936 14937 case $host_cpu in 14938 hppa*64*|ia64*) 14939 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14940 hardcode_direct_F77=no 14941 hardcode_shlibpath_var_F77=no 14942 ;; 14943 *) 14944 hardcode_direct_F77=yes 14945 export_dynamic_flag_spec_F77='${wl}-E' 14946 14947 # hardcode_minus_L: Not really in the search PATH, 14948 # but as the default location of the library. 14949 hardcode_minus_L_F77=yes 14950 ;; 14951 esac 14952 fi 14953 ;; 14954 14955 irix5* | irix6* | nonstopux*) 14956 if test "$GCC" = yes; then 14957 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' 14958 else 14959 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' 14960 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14961 fi 14962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14963 hardcode_libdir_separator_F77=: 14964 link_all_deplibs_F77=yes 14965 ;; 14966 14967 netbsd*) 14968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14970 else 14971 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14972 fi 14973 hardcode_libdir_flag_spec_F77='-R$libdir' 14974 hardcode_direct_F77=yes 14975 hardcode_shlibpath_var_F77=no 14976 ;; 14977 14978 newsos6) 14979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14980 hardcode_direct_F77=yes 14981 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14982 hardcode_libdir_separator_F77=: 14983 hardcode_shlibpath_var_F77=no 14984 ;; 14985 14986 openbsd*) 14987 if test -f /usr/libexec/ld.so; then 14988 hardcode_direct_F77=yes 14989 hardcode_shlibpath_var_F77=no 14990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14991 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14992 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14993 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14994 export_dynamic_flag_spec_F77='${wl}-E' 14995 else 14996 case $host_os in 14997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14999 hardcode_libdir_flag_spec_F77='-R$libdir' 15000 ;; 15001 *) 15002 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15004 ;; 15005 esac 15006 fi 15007 else 15008 ld_shlibs_F77=no 15009 fi 15010 ;; 15011 15012 os2*) 15013 hardcode_libdir_flag_spec_F77='-L$libdir' 15014 hardcode_minus_L_F77=yes 15015 allow_undefined_flag_F77=unsupported 15016 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' 15017 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15018 ;; 15019 15020 osf3*) 15021 if test "$GCC" = yes; then 15022 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15023 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' 15024 else 15025 allow_undefined_flag_F77=' -expect_unresolved \*' 15026 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' 15027 fi 15028 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15029 hardcode_libdir_separator_F77=: 15030 ;; 15031 15032 osf4* | osf5*) # as osf3* with the addition of -msym flag 15033 if test "$GCC" = yes; then 15034 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15035 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' 15036 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15037 else 15038 allow_undefined_flag_F77=' -expect_unresolved \*' 15039 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' 15040 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~ 15041 $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' 15042 15043 # Both c and cxx compiler support -rpath directly 15044 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15045 fi 15046 hardcode_libdir_separator_F77=: 15047 ;; 15048 15049 solaris*) 15050 no_undefined_flag_F77=' -z text' 15051 if test "$GCC" = yes; then 15052 wlarc='${wl}' 15053 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15054 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15055 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15056 else 15057 wlarc='' 15058 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15059 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15061 fi 15062 hardcode_libdir_flag_spec_F77='-R$libdir' 15063 hardcode_shlibpath_var_F77=no 15064 case $host_os in 15065 solaris2.[0-5] | solaris2.[0-5].*) ;; 15066 *) 15067 # The compiler driver will combine and reorder linker options, 15068 # but understands `-z linker_flag'. GCC discards it without `$wl', 15069 # but is careful enough not to reorder. 15070 # Supported since Solaris 2.6 (maybe 2.5.1?) 15071 if test "$GCC" = yes; then 15072 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15073 else 15074 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15075 fi 15076 ;; 15077 esac 15078 link_all_deplibs_F77=yes 15079 ;; 15080 15081 sunos4*) 15082 if test "x$host_vendor" = xsequent; then 15083 # Use $CC to link under sequent, because it throws in some extra .o 15084 # files that make .init and .fini sections work. 15085 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15086 else 15087 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15088 fi 15089 hardcode_libdir_flag_spec_F77='-L$libdir' 15090 hardcode_direct_F77=yes 15091 hardcode_minus_L_F77=yes 15092 hardcode_shlibpath_var_F77=no 15093 ;; 15094 15095 sysv4) 15096 case $host_vendor in 15097 sni) 15098 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15099 hardcode_direct_F77=yes # is this really true??? 15100 ;; 15101 siemens) 15102 ## LD is ld it makes a PLAMLIB 15103 ## CC just makes a GrossModule. 15104 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15105 reload_cmds_F77='$CC -r -o $output$reload_objs' 15106 hardcode_direct_F77=no 15107 ;; 15108 motorola) 15109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15110 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15111 ;; 15112 esac 15113 runpath_var='LD_RUN_PATH' 15114 hardcode_shlibpath_var_F77=no 15115 ;; 15116 15117 sysv4.3*) 15118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15119 hardcode_shlibpath_var_F77=no 15120 export_dynamic_flag_spec_F77='-Bexport' 15121 ;; 15122 15123 sysv4*MP*) 15124 if test -d /usr/nec; then 15125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15126 hardcode_shlibpath_var_F77=no 15127 runpath_var=LD_RUN_PATH 15128 hardcode_runpath_var=yes 15129 ld_shlibs_F77=yes 15130 fi 15131 ;; 15132 15133 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15134 no_undefined_flag_F77='${wl}-z,text' 15135 archive_cmds_need_lc_F77=no 15136 hardcode_shlibpath_var_F77=no 15137 runpath_var='LD_RUN_PATH' 15138 15139 if test "$GCC" = yes; then 15140 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15141 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15142 else 15143 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15144 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15145 fi 15146 ;; 15147 15148 sysv5* | sco3.2v5* | sco5v6*) 15149 # Note: We can NOT use -z defs as we might desire, because we do not 15150 # link with -lc, and that would cause any symbols used from libc to 15151 # always be unresolved, which means just about no library would 15152 # ever link correctly. If we're not using GNU ld we use -z text 15153 # though, which does catch some bad symbols but isn't as heavy-handed 15154 # as -z defs. 15155 no_undefined_flag_F77='${wl}-z,text' 15156 allow_undefined_flag_F77='${wl}-z,nodefs' 15157 archive_cmds_need_lc_F77=no 15158 hardcode_shlibpath_var_F77=no 15159 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15160 hardcode_libdir_separator_F77=':' 15161 link_all_deplibs_F77=yes 15162 export_dynamic_flag_spec_F77='${wl}-Bexport' 15163 runpath_var='LD_RUN_PATH' 15164 15165 if test "$GCC" = yes; then 15166 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15167 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15168 else 15169 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15170 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15171 fi 15172 ;; 15173 15174 uts4*) 15175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15176 hardcode_libdir_flag_spec_F77='-L$libdir' 15177 hardcode_shlibpath_var_F77=no 15178 ;; 15179 15180 *) 15181 ld_shlibs_F77=no 15182 ;; 15183 esac 15184 fi 15185 15186{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15187echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15188test "$ld_shlibs_F77" = no && can_build_shared=no 15189 15190# 15191# Do we need to explicitly link libc? 15192# 15193case "x$archive_cmds_need_lc_F77" in 15194x|xyes) 15195 # Assume -lc should be added 15196 archive_cmds_need_lc_F77=yes 15197 15198 if test "$enable_shared" = yes && test "$GCC" = yes; then 15199 case $archive_cmds_F77 in 15200 *'~'*) 15201 # FIXME: we may have to deal with multi-command sequences. 15202 ;; 15203 '$CC '*) 15204 # Test whether the compiler implicitly links with -lc since on some 15205 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15206 # to ld, don't add -lc before -lgcc. 15207 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15208echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15209 $rm conftest* 15210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15211 15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15213 (eval $ac_compile) 2>&5 15214 ac_status=$? 15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15216 (exit $ac_status); } 2>conftest.err; then 15217 soname=conftest 15218 lib=conftest 15219 libobjs=conftest.$ac_objext 15220 deplibs= 15221 wl=$lt_prog_compiler_wl_F77 15222 pic_flag=$lt_prog_compiler_pic_F77 15223 compiler_flags=-v 15224 linker_flags=-v 15225 verstring= 15226 output_objdir=. 15227 libname=conftest 15228 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15229 allow_undefined_flag_F77= 15230 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15231 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15232 ac_status=$? 15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15234 (exit $ac_status); } 15235 then 15236 archive_cmds_need_lc_F77=no 15237 else 15238 archive_cmds_need_lc_F77=yes 15239 fi 15240 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15241 else 15242 cat conftest.err 1>&5 15243 fi 15244 $rm conftest* 15245 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15246echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15247 ;; 15248 esac 15249 fi 15250 ;; 15251esac 15252 15253{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15254echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15255library_names_spec= 15256libname_spec='lib$name' 15257soname_spec= 15258shrext_cmds=".so" 15259postinstall_cmds= 15260postuninstall_cmds= 15261finish_cmds= 15262finish_eval= 15263shlibpath_var= 15264shlibpath_overrides_runpath=unknown 15265version_type=none 15266dynamic_linker="$host_os ld.so" 15267sys_lib_dlsearch_path_spec="/lib /usr/lib" 15268 15269need_lib_prefix=unknown 15270hardcode_into_libs=no 15271 15272# when you set need_version to no, make sure it does not cause -set_version 15273# flags to be left without arguments 15274need_version=unknown 15275 15276case $host_os in 15277aix3*) 15278 version_type=linux 15279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15280 shlibpath_var=LIBPATH 15281 15282 # AIX 3 has no versioning support, so we append a major version to the name. 15283 soname_spec='${libname}${release}${shared_ext}$major' 15284 ;; 15285 15286aix4* | aix5*) 15287 version_type=linux 15288 need_lib_prefix=no 15289 need_version=no 15290 hardcode_into_libs=yes 15291 if test "$host_cpu" = ia64; then 15292 # AIX 5 supports IA64 15293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15294 shlibpath_var=LD_LIBRARY_PATH 15295 else 15296 # With GCC up to 2.95.x, collect2 would create an import file 15297 # for dependence libraries. The import file would start with 15298 # the line `#! .'. This would cause the generated library to 15299 # depend on `.', always an invalid library. This was fixed in 15300 # development snapshots of GCC prior to 3.0. 15301 case $host_os in 15302 aix4 | aix4.[01] | aix4.[01].*) 15303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15304 echo ' yes ' 15305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15306 : 15307 else 15308 can_build_shared=no 15309 fi 15310 ;; 15311 esac 15312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15313 # soname into executable. Probably we can add versioning support to 15314 # collect2, so additional links can be useful in future. 15315 if test "$aix_use_runtimelinking" = yes; then 15316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15317 # instead of lib<name>.a to let people know that these are not 15318 # typical AIX shared libraries. 15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15320 else 15321 # We preserve .a as extension for shared libraries through AIX4.2 15322 # and later when we are not doing run time linking. 15323 library_names_spec='${libname}${release}.a $libname.a' 15324 soname_spec='${libname}${release}${shared_ext}$major' 15325 fi 15326 shlibpath_var=LIBPATH 15327 fi 15328 ;; 15329 15330amigaos*) 15331 library_names_spec='$libname.ixlibrary $libname.a' 15332 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15333 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' 15334 ;; 15335 15336beos*) 15337 library_names_spec='${libname}${shared_ext}' 15338 dynamic_linker="$host_os ld.so" 15339 shlibpath_var=LIBRARY_PATH 15340 ;; 15341 15342bsdi[45]*) 15343 version_type=linux 15344 need_version=no 15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15346 soname_spec='${libname}${release}${shared_ext}$major' 15347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15348 shlibpath_var=LD_LIBRARY_PATH 15349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15351 # the default ld.so.conf also contains /usr/contrib/lib and 15352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15353 # libtool to hard-code these into programs 15354 ;; 15355 15356cygwin* | mingw* | pw32*) 15357 version_type=windows 15358 shrext_cmds=".dll" 15359 need_version=no 15360 need_lib_prefix=no 15361 15362 case $GCC,$host_os in 15363 yes,cygwin* | yes,mingw* | yes,pw32*) 15364 library_names_spec='$libname.dll.a' 15365 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15366 postinstall_cmds='base_file=`basename \${file}`~ 15367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15368 dldir=$destdir/`dirname \$dlpath`~ 15369 test -d \$dldir || mkdir -p \$dldir~ 15370 $install_prog $dir/$dlname \$dldir/$dlname~ 15371 chmod a+x \$dldir/$dlname' 15372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15373 dlpath=$dir/\$dldll~ 15374 $rm \$dlpath' 15375 shlibpath_overrides_runpath=yes 15376 15377 case $host_os in 15378 cygwin*) 15379 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15382 ;; 15383 mingw*) 15384 # MinGW DLLs use traditional 'lib' prefix 15385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15388 # It is most probably a Windows format PATH printed by 15389 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15390 # path with ; separators, and with drive letters. We can handle the 15391 # drive letters (cygwin fileutils understands them), so leave them, 15392 # especially as we might pass files found there to a mingw objdump, 15393 # which wouldn't understand a cygwinified path. Ahh. 15394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15395 else 15396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15397 fi 15398 ;; 15399 pw32*) 15400 # pw32 DLLs use 'pw' prefix rather than 'lib' 15401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15402 ;; 15403 esac 15404 ;; 15405 15406 *) 15407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15408 ;; 15409 esac 15410 dynamic_linker='Win32 ld.exe' 15411 # FIXME: first we should search . and the directory the executable is in 15412 shlibpath_var=PATH 15413 ;; 15414 15415darwin* | rhapsody*) 15416 dynamic_linker="$host_os dyld" 15417 version_type=darwin 15418 need_lib_prefix=no 15419 need_version=no 15420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15421 soname_spec='${libname}${release}${major}$shared_ext' 15422 shlibpath_overrides_runpath=yes 15423 shlibpath_var=DYLD_LIBRARY_PATH 15424 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15425 15426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15427 ;; 15428 15429dgux*) 15430 version_type=linux 15431 need_lib_prefix=no 15432 need_version=no 15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15434 soname_spec='${libname}${release}${shared_ext}$major' 15435 shlibpath_var=LD_LIBRARY_PATH 15436 ;; 15437 15438freebsd1*) 15439 dynamic_linker=no 15440 ;; 15441 15442freebsd* | dragonfly*) 15443 # DragonFly does not have aout. When/if they implement a new 15444 # versioning mechanism, adjust this. 15445 if test -x /usr/bin/objformat; then 15446 objformat=`/usr/bin/objformat` 15447 else 15448 case $host_os in 15449 freebsd[123]*) objformat=aout ;; 15450 *) objformat=elf ;; 15451 esac 15452 fi 15453 version_type=freebsd-$objformat 15454 case $version_type in 15455 freebsd-elf*) 15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15457 need_version=no 15458 need_lib_prefix=no 15459 ;; 15460 freebsd-*) 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15462 need_version=yes 15463 ;; 15464 esac 15465 shlibpath_var=LD_LIBRARY_PATH 15466 case $host_os in 15467 freebsd2*) 15468 shlibpath_overrides_runpath=yes 15469 ;; 15470 freebsd3.[01]* | freebsdelf3.[01]*) 15471 shlibpath_overrides_runpath=yes 15472 hardcode_into_libs=yes 15473 ;; 15474 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15475 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15476 shlibpath_overrides_runpath=no 15477 hardcode_into_libs=yes 15478 ;; 15479 *) # from 4.6 on, and DragonFly 15480 shlibpath_overrides_runpath=yes 15481 hardcode_into_libs=yes 15482 ;; 15483 esac 15484 ;; 15485 15486gnu*) 15487 version_type=linux 15488 need_lib_prefix=no 15489 need_version=no 15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15491 soname_spec='${libname}${release}${shared_ext}$major' 15492 shlibpath_var=LD_LIBRARY_PATH 15493 hardcode_into_libs=yes 15494 ;; 15495 15496hpux9* | hpux10* | hpux11*) 15497 # Give a soname corresponding to the major version so that dld.sl refuses to 15498 # link against other versions. 15499 version_type=sunos 15500 need_lib_prefix=no 15501 need_version=no 15502 case $host_cpu in 15503 ia64*) 15504 shrext_cmds='.so' 15505 hardcode_into_libs=yes 15506 dynamic_linker="$host_os dld.so" 15507 shlibpath_var=LD_LIBRARY_PATH 15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15510 soname_spec='${libname}${release}${shared_ext}$major' 15511 if test "X$HPUX_IA64_MODE" = X32; then 15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15513 else 15514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15515 fi 15516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15517 ;; 15518 hppa*64*) 15519 shrext_cmds='.sl' 15520 hardcode_into_libs=yes 15521 dynamic_linker="$host_os dld.sl" 15522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15528 ;; 15529 *) 15530 shrext_cmds='.sl' 15531 dynamic_linker="$host_os dld.sl" 15532 shlibpath_var=SHLIB_PATH 15533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15535 soname_spec='${libname}${release}${shared_ext}$major' 15536 ;; 15537 esac 15538 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15539 postinstall_cmds='chmod 555 $lib' 15540 ;; 15541 15542interix[3-9]*) 15543 version_type=linux 15544 need_lib_prefix=no 15545 need_version=no 15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15547 soname_spec='${libname}${release}${shared_ext}$major' 15548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15549 shlibpath_var=LD_LIBRARY_PATH 15550 shlibpath_overrides_runpath=no 15551 hardcode_into_libs=yes 15552 ;; 15553 15554irix5* | irix6* | nonstopux*) 15555 case $host_os in 15556 nonstopux*) version_type=nonstopux ;; 15557 *) 15558 if test "$lt_cv_prog_gnu_ld" = yes; then 15559 version_type=linux 15560 else 15561 version_type=irix 15562 fi ;; 15563 esac 15564 need_lib_prefix=no 15565 need_version=no 15566 soname_spec='${libname}${release}${shared_ext}$major' 15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15568 case $host_os in 15569 irix5* | nonstopux*) 15570 libsuff= shlibsuff= 15571 ;; 15572 *) 15573 case $LD in # libtool.m4 will add one of these switches to LD 15574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15575 libsuff= shlibsuff= libmagic=32-bit;; 15576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15577 libsuff=32 shlibsuff=N32 libmagic=N32;; 15578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15579 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15580 *) libsuff= shlibsuff= libmagic=never-match;; 15581 esac 15582 ;; 15583 esac 15584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15585 shlibpath_overrides_runpath=no 15586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15588 hardcode_into_libs=yes 15589 ;; 15590 15591# No shared lib support for Linux oldld, aout, or coff. 15592linux*oldld* | linux*aout* | linux*coff*) 15593 dynamic_linker=no 15594 ;; 15595 15596# This must be Linux ELF. 15597linux* | k*bsd*-gnu) 15598 version_type=linux 15599 need_lib_prefix=no 15600 need_version=no 15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15602 soname_spec='${libname}${release}${shared_ext}$major' 15603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15604 shlibpath_var=LD_LIBRARY_PATH 15605 shlibpath_overrides_runpath=no 15606 # This implies no fast_install, which is unacceptable. 15607 # Some rework will be needed to allow for fast_install 15608 # before this can be enabled. 15609 hardcode_into_libs=yes 15610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15612 15613 # Append ld.so.conf contents to the search path 15614 if test -f /etc/ld.so.conf; then 15615 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' ' '` 15616 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15617 fi 15618 15619 # We used to test for /lib/ld.so.1 and disable shared libraries on 15620 # powerpc, because MkLinux only supported shared libraries with the 15621 # GNU dynamic linker. Since this was broken with cross compilers, 15622 # most powerpc-linux boxes support dynamic linking these days and 15623 # people can always --disable-shared, the test was removed, and we 15624 # assume the GNU/Linux dynamic linker is in use. 15625 dynamic_linker='GNU/Linux ld.so' 15626 ;; 15627 15628netbsd*) 15629 version_type=sunos 15630 need_lib_prefix=no 15631 need_version=no 15632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15635 dynamic_linker='NetBSD (a.out) ld.so' 15636 else 15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15638 soname_spec='${libname}${release}${shared_ext}$major' 15639 dynamic_linker='NetBSD ld.elf_so' 15640 fi 15641 shlibpath_var=LD_LIBRARY_PATH 15642 shlibpath_overrides_runpath=yes 15643 hardcode_into_libs=yes 15644 ;; 15645 15646newsos6) 15647 version_type=linux 15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15649 shlibpath_var=LD_LIBRARY_PATH 15650 shlibpath_overrides_runpath=yes 15651 ;; 15652 15653nto-qnx*) 15654 version_type=linux 15655 need_lib_prefix=no 15656 need_version=no 15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15658 soname_spec='${libname}${release}${shared_ext}$major' 15659 shlibpath_var=LD_LIBRARY_PATH 15660 shlibpath_overrides_runpath=yes 15661 ;; 15662 15663openbsd*) 15664 version_type=sunos 15665 sys_lib_dlsearch_path_spec="/usr/lib" 15666 need_lib_prefix=no 15667 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15668 case $host_os in 15669 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15670 *) need_version=no ;; 15671 esac 15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15674 shlibpath_var=LD_LIBRARY_PATH 15675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15676 case $host_os in 15677 openbsd2.[89] | openbsd2.[89].*) 15678 shlibpath_overrides_runpath=no 15679 ;; 15680 *) 15681 shlibpath_overrides_runpath=yes 15682 ;; 15683 esac 15684 else 15685 shlibpath_overrides_runpath=yes 15686 fi 15687 ;; 15688 15689os2*) 15690 libname_spec='$name' 15691 shrext_cmds=".dll" 15692 need_lib_prefix=no 15693 library_names_spec='$libname${shared_ext} $libname.a' 15694 dynamic_linker='OS/2 ld.exe' 15695 shlibpath_var=LIBPATH 15696 ;; 15697 15698osf3* | osf4* | osf5*) 15699 version_type=osf 15700 need_lib_prefix=no 15701 need_version=no 15702 soname_spec='${libname}${release}${shared_ext}$major' 15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15704 shlibpath_var=LD_LIBRARY_PATH 15705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15707 ;; 15708 15709rdos*) 15710 dynamic_linker=no 15711 ;; 15712 15713solaris*) 15714 version_type=linux 15715 need_lib_prefix=no 15716 need_version=no 15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15718 soname_spec='${libname}${release}${shared_ext}$major' 15719 shlibpath_var=LD_LIBRARY_PATH 15720 shlibpath_overrides_runpath=yes 15721 hardcode_into_libs=yes 15722 # ldd complains unless libraries are executable 15723 postinstall_cmds='chmod +x $lib' 15724 ;; 15725 15726sunos4*) 15727 version_type=sunos 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 shlibpath_overrides_runpath=yes 15732 if test "$with_gnu_ld" = yes; then 15733 need_lib_prefix=no 15734 fi 15735 need_version=yes 15736 ;; 15737 15738sysv4 | sysv4.3*) 15739 version_type=linux 15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15741 soname_spec='${libname}${release}${shared_ext}$major' 15742 shlibpath_var=LD_LIBRARY_PATH 15743 case $host_vendor in 15744 sni) 15745 shlibpath_overrides_runpath=no 15746 need_lib_prefix=no 15747 export_dynamic_flag_spec='${wl}-Blargedynsym' 15748 runpath_var=LD_RUN_PATH 15749 ;; 15750 siemens) 15751 need_lib_prefix=no 15752 ;; 15753 motorola) 15754 need_lib_prefix=no 15755 need_version=no 15756 shlibpath_overrides_runpath=no 15757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15758 ;; 15759 esac 15760 ;; 15761 15762sysv4*MP*) 15763 if test -d /usr/nec ;then 15764 version_type=linux 15765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15766 soname_spec='$libname${shared_ext}.$major' 15767 shlibpath_var=LD_LIBRARY_PATH 15768 fi 15769 ;; 15770 15771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15772 version_type=freebsd-elf 15773 need_lib_prefix=no 15774 need_version=no 15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15776 soname_spec='${libname}${release}${shared_ext}$major' 15777 shlibpath_var=LD_LIBRARY_PATH 15778 hardcode_into_libs=yes 15779 if test "$with_gnu_ld" = yes; then 15780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15781 shlibpath_overrides_runpath=no 15782 else 15783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15784 shlibpath_overrides_runpath=yes 15785 case $host_os in 15786 sco3.2v5*) 15787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15788 ;; 15789 esac 15790 fi 15791 sys_lib_dlsearch_path_spec='/usr/lib' 15792 ;; 15793 15794uts4*) 15795 version_type=linux 15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15797 soname_spec='${libname}${release}${shared_ext}$major' 15798 shlibpath_var=LD_LIBRARY_PATH 15799 ;; 15800 15801*) 15802 dynamic_linker=no 15803 ;; 15804esac 15805{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15806echo "${ECHO_T}$dynamic_linker" >&6; } 15807test "$dynamic_linker" = no && can_build_shared=no 15808 15809variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15810if test "$GCC" = yes; then 15811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15812fi 15813 15814{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15815echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15816hardcode_action_F77= 15817if test -n "$hardcode_libdir_flag_spec_F77" || \ 15818 test -n "$runpath_var_F77" || \ 15819 test "X$hardcode_automatic_F77" = "Xyes" ; then 15820 15821 # We can hardcode non-existant directories. 15822 if test "$hardcode_direct_F77" != no && 15823 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15824 # have to relink, otherwise we might link with an installed library 15825 # when we should be linking with a yet-to-be-installed one 15826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15827 test "$hardcode_minus_L_F77" != no; then 15828 # Linking always hardcodes the temporary library directory. 15829 hardcode_action_F77=relink 15830 else 15831 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15832 hardcode_action_F77=immediate 15833 fi 15834else 15835 # We cannot hardcode anything, or else we can only hardcode existing 15836 # directories. 15837 hardcode_action_F77=unsupported 15838fi 15839{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15840echo "${ECHO_T}$hardcode_action_F77" >&6; } 15841 15842if test "$hardcode_action_F77" = relink; then 15843 # Fast installation is not supported 15844 enable_fast_install=no 15845elif test "$shlibpath_overrides_runpath" = yes || 15846 test "$enable_shared" = no; then 15847 # Fast installation is not necessary 15848 enable_fast_install=needless 15849fi 15850 15851 15852# The else clause should only fire when bootstrapping the 15853# libtool distribution, otherwise you forgot to ship ltmain.sh 15854# with your package, and you will get complaints that there are 15855# no rules to generate ltmain.sh. 15856if test -f "$ltmain"; then 15857 # See if we are running on zsh, and set the options which allow our commands through 15858 # without removal of \ escapes. 15859 if test -n "${ZSH_VERSION+set}" ; then 15860 setopt NO_GLOB_SUBST 15861 fi 15862 # Now quote all the things that may contain metacharacters while being 15863 # careful not to overquote the AC_SUBSTed values. We take copies of the 15864 # variables and quote the copies for generation of the libtool script. 15865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15866 SED SHELL STRIP \ 15867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15869 deplibs_check_method reload_flag reload_cmds need_locks \ 15870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15871 lt_cv_sys_global_symbol_to_c_name_address \ 15872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15873 old_postinstall_cmds old_postuninstall_cmds \ 15874 compiler_F77 \ 15875 CC_F77 \ 15876 LD_F77 \ 15877 lt_prog_compiler_wl_F77 \ 15878 lt_prog_compiler_pic_F77 \ 15879 lt_prog_compiler_static_F77 \ 15880 lt_prog_compiler_no_builtin_flag_F77 \ 15881 export_dynamic_flag_spec_F77 \ 15882 thread_safe_flag_spec_F77 \ 15883 whole_archive_flag_spec_F77 \ 15884 enable_shared_with_static_runtimes_F77 \ 15885 old_archive_cmds_F77 \ 15886 old_archive_from_new_cmds_F77 \ 15887 predep_objects_F77 \ 15888 postdep_objects_F77 \ 15889 predeps_F77 \ 15890 postdeps_F77 \ 15891 compiler_lib_search_path_F77 \ 15892 archive_cmds_F77 \ 15893 archive_expsym_cmds_F77 \ 15894 postinstall_cmds_F77 \ 15895 postuninstall_cmds_F77 \ 15896 old_archive_from_expsyms_cmds_F77 \ 15897 allow_undefined_flag_F77 \ 15898 no_undefined_flag_F77 \ 15899 export_symbols_cmds_F77 \ 15900 hardcode_libdir_flag_spec_F77 \ 15901 hardcode_libdir_flag_spec_ld_F77 \ 15902 hardcode_libdir_separator_F77 \ 15903 hardcode_automatic_F77 \ 15904 module_cmds_F77 \ 15905 module_expsym_cmds_F77 \ 15906 lt_cv_prog_compiler_c_o_F77 \ 15907 fix_srcfile_path_F77 \ 15908 exclude_expsyms_F77 \ 15909 include_expsyms_F77; do 15910 15911 case $var in 15912 old_archive_cmds_F77 | \ 15913 old_archive_from_new_cmds_F77 | \ 15914 archive_cmds_F77 | \ 15915 archive_expsym_cmds_F77 | \ 15916 module_cmds_F77 | \ 15917 module_expsym_cmds_F77 | \ 15918 old_archive_from_expsyms_cmds_F77 | \ 15919 export_symbols_cmds_F77 | \ 15920 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15921 postinstall_cmds | postuninstall_cmds | \ 15922 old_postinstall_cmds | old_postuninstall_cmds | \ 15923 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15924 # Double-quote double-evaled strings. 15925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15926 ;; 15927 *) 15928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15929 ;; 15930 esac 15931 done 15932 15933 case $lt_echo in 15934 *'\$0 --fallback-echo"') 15935 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15936 ;; 15937 esac 15938 15939cfgfile="$ofile" 15940 15941 cat <<__EOF__ >> "$cfgfile" 15942# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15943 15944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15945 15946# Shell to use when invoking shell scripts. 15947SHELL=$lt_SHELL 15948 15949# Whether or not to build shared libraries. 15950build_libtool_libs=$enable_shared 15951 15952# Whether or not to build static libraries. 15953build_old_libs=$enable_static 15954 15955# Whether or not to add -lc for building shared libraries. 15956build_libtool_need_lc=$archive_cmds_need_lc_F77 15957 15958# Whether or not to disallow shared libs when runtime libs are static 15959allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15960 15961# Whether or not to optimize for fast installation. 15962fast_install=$enable_fast_install 15963 15964# The host system. 15965host_alias=$host_alias 15966host=$host 15967host_os=$host_os 15968 15969# The build system. 15970build_alias=$build_alias 15971build=$build 15972build_os=$build_os 15973 15974# An echo program that does not interpret backslashes. 15975echo=$lt_echo 15976 15977# The archiver. 15978AR=$lt_AR 15979AR_FLAGS=$lt_AR_FLAGS 15980 15981# A C compiler. 15982LTCC=$lt_LTCC 15983 15984# LTCC compiler flags. 15985LTCFLAGS=$lt_LTCFLAGS 15986 15987# A language-specific compiler. 15988CC=$lt_compiler_F77 15989 15990# Is the compiler the GNU C compiler? 15991with_gcc=$GCC_F77 15992 15993# An ERE matcher. 15994EGREP=$lt_EGREP 15995 15996# The linker used to build libraries. 15997LD=$lt_LD_F77 15998 15999# Whether we need hard or soft links. 16000LN_S=$lt_LN_S 16001 16002# A BSD-compatible nm program. 16003NM=$lt_NM 16004 16005# A symbol stripping program 16006STRIP=$lt_STRIP 16007 16008# Used to examine libraries when file_magic_cmd begins "file" 16009MAGIC_CMD=$MAGIC_CMD 16010 16011# Used on cygwin: DLL creation program. 16012DLLTOOL="$DLLTOOL" 16013 16014# Used on cygwin: object dumper. 16015OBJDUMP="$OBJDUMP" 16016 16017# Used on cygwin: assembler. 16018AS="$AS" 16019 16020# The name of the directory that contains temporary libtool files. 16021objdir=$objdir 16022 16023# How to create reloadable object files. 16024reload_flag=$lt_reload_flag 16025reload_cmds=$lt_reload_cmds 16026 16027# How to pass a linker flag through the compiler. 16028wl=$lt_lt_prog_compiler_wl_F77 16029 16030# Object file suffix (normally "o"). 16031objext="$ac_objext" 16032 16033# Old archive suffix (normally "a"). 16034libext="$libext" 16035 16036# Shared library suffix (normally ".so"). 16037shrext_cmds='$shrext_cmds' 16038 16039# Executable file suffix (normally ""). 16040exeext="$exeext" 16041 16042# Additional compiler flags for building library objects. 16043pic_flag=$lt_lt_prog_compiler_pic_F77 16044pic_mode=$pic_mode 16045 16046# What is the maximum length of a command? 16047max_cmd_len=$lt_cv_sys_max_cmd_len 16048 16049# Does compiler simultaneously support -c and -o options? 16050compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16051 16052# Must we lock files when doing compilation? 16053need_locks=$lt_need_locks 16054 16055# Do we need the lib prefix for modules? 16056need_lib_prefix=$need_lib_prefix 16057 16058# Do we need a version for libraries? 16059need_version=$need_version 16060 16061# Whether dlopen is supported. 16062dlopen_support=$enable_dlopen 16063 16064# Whether dlopen of programs is supported. 16065dlopen_self=$enable_dlopen_self 16066 16067# Whether dlopen of statically linked programs is supported. 16068dlopen_self_static=$enable_dlopen_self_static 16069 16070# Compiler flag to prevent dynamic linking. 16071link_static_flag=$lt_lt_prog_compiler_static_F77 16072 16073# Compiler flag to turn off builtin functions. 16074no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16075 16076# Compiler flag to allow reflexive dlopens. 16077export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16078 16079# Compiler flag to generate shared objects directly from archives. 16080whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16081 16082# Compiler flag to generate thread-safe objects. 16083thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16084 16085# Library versioning type. 16086version_type=$version_type 16087 16088# Format of library name prefix. 16089libname_spec=$lt_libname_spec 16090 16091# List of archive names. First name is the real one, the rest are links. 16092# The last name is the one that the linker finds with -lNAME. 16093library_names_spec=$lt_library_names_spec 16094 16095# The coded name of the library, if different from the real name. 16096soname_spec=$lt_soname_spec 16097 16098# Commands used to build and install an old-style archive. 16099RANLIB=$lt_RANLIB 16100old_archive_cmds=$lt_old_archive_cmds_F77 16101old_postinstall_cmds=$lt_old_postinstall_cmds 16102old_postuninstall_cmds=$lt_old_postuninstall_cmds 16103 16104# Create an old-style archive from a shared archive. 16105old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16106 16107# Create a temporary old-style archive to link instead of a shared archive. 16108old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16109 16110# Commands used to build and install a shared archive. 16111archive_cmds=$lt_archive_cmds_F77 16112archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16113postinstall_cmds=$lt_postinstall_cmds 16114postuninstall_cmds=$lt_postuninstall_cmds 16115 16116# Commands used to build a loadable module (assumed same as above if empty) 16117module_cmds=$lt_module_cmds_F77 16118module_expsym_cmds=$lt_module_expsym_cmds_F77 16119 16120# Commands to strip libraries. 16121old_striplib=$lt_old_striplib 16122striplib=$lt_striplib 16123 16124# Dependencies to place before the objects being linked to create a 16125# shared library. 16126predep_objects=$lt_predep_objects_F77 16127 16128# Dependencies to place after the objects being linked to create a 16129# shared library. 16130postdep_objects=$lt_postdep_objects_F77 16131 16132# Dependencies to place before the objects being linked to create a 16133# shared library. 16134predeps=$lt_predeps_F77 16135 16136# Dependencies to place after the objects being linked to create a 16137# shared library. 16138postdeps=$lt_postdeps_F77 16139 16140# The library search path used internally by the compiler when linking 16141# a shared library. 16142compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16143 16144# Method to check whether dependent libraries are shared objects. 16145deplibs_check_method=$lt_deplibs_check_method 16146 16147# Command to use when deplibs_check_method == file_magic. 16148file_magic_cmd=$lt_file_magic_cmd 16149 16150# Flag that allows shared libraries with undefined symbols to be built. 16151allow_undefined_flag=$lt_allow_undefined_flag_F77 16152 16153# Flag that forces no undefined symbols. 16154no_undefined_flag=$lt_no_undefined_flag_F77 16155 16156# Commands used to finish a libtool library installation in a directory. 16157finish_cmds=$lt_finish_cmds 16158 16159# Same as above, but a single script fragment to be evaled but not shown. 16160finish_eval=$lt_finish_eval 16161 16162# Take the output of nm and produce a listing of raw symbols and C names. 16163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16164 16165# Transform the output of nm in a proper C declaration 16166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16167 16168# Transform the output of nm in a C name address pair 16169global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16170 16171# This is the shared library runtime path variable. 16172runpath_var=$runpath_var 16173 16174# This is the shared library path variable. 16175shlibpath_var=$shlibpath_var 16176 16177# Is shlibpath searched before the hard-coded library search path? 16178shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16179 16180# How to hardcode a shared library path into an executable. 16181hardcode_action=$hardcode_action_F77 16182 16183# Whether we should hardcode library paths into libraries. 16184hardcode_into_libs=$hardcode_into_libs 16185 16186# Flag to hardcode \$libdir into a binary during linking. 16187# This must work even if \$libdir does not exist. 16188hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16189 16190# If ld is used when linking, flag to hardcode \$libdir into 16191# a binary during linking. This must work even if \$libdir does 16192# not exist. 16193hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16194 16195# Whether we need a single -rpath flag with a separated argument. 16196hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16197 16198# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16199# resulting binary. 16200hardcode_direct=$hardcode_direct_F77 16201 16202# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16203# resulting binary. 16204hardcode_minus_L=$hardcode_minus_L_F77 16205 16206# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16207# the resulting binary. 16208hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16209 16210# Set to yes if building a shared library automatically hardcodes DIR into the library 16211# and all subsequent libraries and executables linked against it. 16212hardcode_automatic=$hardcode_automatic_F77 16213 16214# Variables whose values should be saved in libtool wrapper scripts and 16215# restored at relink time. 16216variables_saved_for_relink="$variables_saved_for_relink" 16217 16218# Whether libtool must link a program against all its dependency libraries. 16219link_all_deplibs=$link_all_deplibs_F77 16220 16221# Compile-time system search path for libraries 16222sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16223 16224# Run-time system search path for libraries 16225sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16226 16227# Fix the shell variable \$srcfile for the compiler. 16228fix_srcfile_path=$lt_fix_srcfile_path 16229 16230# Set to yes if exported symbols are required. 16231always_export_symbols=$always_export_symbols_F77 16232 16233# The commands to list exported symbols. 16234export_symbols_cmds=$lt_export_symbols_cmds_F77 16235 16236# The commands to extract the exported symbol list from a shared archive. 16237extract_expsyms_cmds=$lt_extract_expsyms_cmds 16238 16239# Symbols that should not be listed in the preloaded symbols. 16240exclude_expsyms=$lt_exclude_expsyms_F77 16241 16242# Symbols that must always be exported. 16243include_expsyms=$lt_include_expsyms_F77 16244 16245# ### END LIBTOOL TAG CONFIG: $tagname 16246 16247__EOF__ 16248 16249 16250else 16251 # If there is no Makefile yet, we rely on a make rule to execute 16252 # `config.status --recheck' to rerun these tests and create the 16253 # libtool script then. 16254 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16255 if test -f "$ltmain_in"; then 16256 test -f Makefile && make "$ltmain" 16257 fi 16258fi 16259 16260 16261ac_ext=c 16262ac_cpp='$CPP $CPPFLAGS' 16263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16265ac_compiler_gnu=$ac_cv_c_compiler_gnu 16266 16267CC="$lt_save_CC" 16268 16269 else 16270 tagname="" 16271 fi 16272 ;; 16273 16274 GCJ) 16275 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16276 16277 16278# Source file extension for Java test sources. 16279ac_ext=java 16280 16281# Object file extension for compiled Java test sources. 16282objext=o 16283objext_GCJ=$objext 16284 16285# Code to be used in simple compile tests 16286lt_simple_compile_test_code="class foo {}" 16287 16288# Code to be used in simple link tests 16289lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16290 16291# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16292 16293# If no C compiler was specified, use CC. 16294LTCC=${LTCC-"$CC"} 16295 16296# If no C compiler flags were specified, use CFLAGS. 16297LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16298 16299# Allow CC to be a program name with arguments. 16300compiler=$CC 16301 16302 16303# save warnings/boilerplate of simple test code 16304ac_outfile=conftest.$ac_objext 16305echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16306eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16307_lt_compiler_boilerplate=`cat conftest.err` 16308$rm conftest* 16309 16310ac_outfile=conftest.$ac_objext 16311echo "$lt_simple_link_test_code" >conftest.$ac_ext 16312eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16313_lt_linker_boilerplate=`cat conftest.err` 16314$rm conftest* 16315 16316 16317# Allow CC to be a program name with arguments. 16318lt_save_CC="$CC" 16319CC=${GCJ-"gcj"} 16320compiler=$CC 16321compiler_GCJ=$CC 16322for cc_temp in $compiler""; do 16323 case $cc_temp in 16324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16326 \-*) ;; 16327 *) break;; 16328 esac 16329done 16330cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16331 16332 16333# GCJ did not exist at the time GCC didn't implicitly link libc in. 16334archive_cmds_need_lc_GCJ=no 16335 16336old_archive_cmds_GCJ=$old_archive_cmds 16337 16338 16339lt_prog_compiler_no_builtin_flag_GCJ= 16340 16341if test "$GCC" = yes; then 16342 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16343 16344 16345{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16346echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16347if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16348 echo $ECHO_N "(cached) $ECHO_C" >&6 16349else 16350 lt_cv_prog_compiler_rtti_exceptions=no 16351 ac_outfile=conftest.$ac_objext 16352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16353 lt_compiler_flag="-fno-rtti -fno-exceptions" 16354 # Insert the option either (1) after the last *FLAGS variable, or 16355 # (2) before a word containing "conftest.", or (3) at the end. 16356 # Note that $ac_compile itself does not contain backslashes and begins 16357 # with a dollar sign (not a hyphen), so the echo should work correctly. 16358 # The option is referenced via a variable to avoid confusing sed. 16359 lt_compile=`echo "$ac_compile" | $SED \ 16360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16362 -e 's:$: $lt_compiler_flag:'` 16363 (eval echo "\"\$as_me:16363: $lt_compile\"" >&5) 16364 (eval "$lt_compile" 2>conftest.err) 16365 ac_status=$? 16366 cat conftest.err >&5 16367 echo "$as_me:16367: \$? = $ac_status" >&5 16368 if (exit $ac_status) && test -s "$ac_outfile"; then 16369 # The compiler can only warn and ignore the option if not recognized 16370 # So say no if there are warnings other than the usual output. 16371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16374 lt_cv_prog_compiler_rtti_exceptions=yes 16375 fi 16376 fi 16377 $rm conftest* 16378 16379fi 16380{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16381echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16382 16383if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16384 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16385else 16386 : 16387fi 16388 16389fi 16390 16391lt_prog_compiler_wl_GCJ= 16392lt_prog_compiler_pic_GCJ= 16393lt_prog_compiler_static_GCJ= 16394 16395{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16397 16398 if test "$GCC" = yes; then 16399 lt_prog_compiler_wl_GCJ='-Wl,' 16400 lt_prog_compiler_static_GCJ='-static' 16401 16402 case $host_os in 16403 aix*) 16404 # All AIX code is PIC. 16405 if test "$host_cpu" = ia64; then 16406 # AIX 5 now supports IA64 processor 16407 lt_prog_compiler_static_GCJ='-Bstatic' 16408 fi 16409 ;; 16410 16411 amigaos*) 16412 # FIXME: we need at least 68020 code to build shared libraries, but 16413 # adding the `-m68020' flag to GCC prevents building anything better, 16414 # like `-m68040'. 16415 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16416 ;; 16417 16418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16419 # PIC is the default for these OSes. 16420 ;; 16421 16422 mingw* | cygwin* | pw32* | os2*) 16423 # This hack is so that the source file can tell whether it is being 16424 # built for inclusion in a dll (and should export symbols for example). 16425 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16426 # (--disable-auto-import) libraries 16427 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16428 ;; 16429 16430 darwin* | rhapsody*) 16431 # PIC is the default on this platform 16432 # Common symbols not allowed in MH_DYLIB files 16433 lt_prog_compiler_pic_GCJ='-fno-common' 16434 ;; 16435 16436 interix[3-9]*) 16437 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16438 # Instead, we relocate shared libraries at runtime. 16439 ;; 16440 16441 msdosdjgpp*) 16442 # Just because we use GCC doesn't mean we suddenly get shared libraries 16443 # on systems that don't support them. 16444 lt_prog_compiler_can_build_shared_GCJ=no 16445 enable_shared=no 16446 ;; 16447 16448 sysv4*MP*) 16449 if test -d /usr/nec; then 16450 lt_prog_compiler_pic_GCJ=-Kconform_pic 16451 fi 16452 ;; 16453 16454 hpux*) 16455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16456 # not for PA HP-UX. 16457 case $host_cpu in 16458 hppa*64*|ia64*) 16459 # +Z the default 16460 ;; 16461 *) 16462 lt_prog_compiler_pic_GCJ='-fPIC' 16463 ;; 16464 esac 16465 ;; 16466 16467 *) 16468 lt_prog_compiler_pic_GCJ='-fPIC' 16469 ;; 16470 esac 16471 else 16472 # PORTME Check for flag to pass linker flags through the system compiler. 16473 case $host_os in 16474 aix*) 16475 lt_prog_compiler_wl_GCJ='-Wl,' 16476 if test "$host_cpu" = ia64; then 16477 # AIX 5 now supports IA64 processor 16478 lt_prog_compiler_static_GCJ='-Bstatic' 16479 else 16480 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16481 fi 16482 ;; 16483 darwin*) 16484 # PIC is the default on this platform 16485 # Common symbols not allowed in MH_DYLIB files 16486 case $cc_basename in 16487 xlc*) 16488 lt_prog_compiler_pic_GCJ='-qnocommon' 16489 lt_prog_compiler_wl_GCJ='-Wl,' 16490 ;; 16491 esac 16492 ;; 16493 16494 mingw* | cygwin* | pw32* | os2*) 16495 # This hack is so that the source file can tell whether it is being 16496 # built for inclusion in a dll (and should export symbols for example). 16497 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16498 ;; 16499 16500 hpux9* | hpux10* | hpux11*) 16501 lt_prog_compiler_wl_GCJ='-Wl,' 16502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16503 # not for PA HP-UX. 16504 case $host_cpu in 16505 hppa*64*|ia64*) 16506 # +Z the default 16507 ;; 16508 *) 16509 lt_prog_compiler_pic_GCJ='+Z' 16510 ;; 16511 esac 16512 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16513 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16514 ;; 16515 16516 irix5* | irix6* | nonstopux*) 16517 lt_prog_compiler_wl_GCJ='-Wl,' 16518 # PIC (with -KPIC) is the default. 16519 lt_prog_compiler_static_GCJ='-non_shared' 16520 ;; 16521 16522 newsos6) 16523 lt_prog_compiler_pic_GCJ='-KPIC' 16524 lt_prog_compiler_static_GCJ='-Bstatic' 16525 ;; 16526 16527 linux* | k*bsd*-gnu) 16528 case $cc_basename in 16529 icc* | ecc*) 16530 lt_prog_compiler_wl_GCJ='-Wl,' 16531 lt_prog_compiler_pic_GCJ='-KPIC' 16532 lt_prog_compiler_static_GCJ='-static' 16533 ;; 16534 pgcc* | pgf77* | pgf90* | pgf95*) 16535 # Portland Group compilers (*not* the Pentium gcc compiler, 16536 # which looks to be a dead project) 16537 lt_prog_compiler_wl_GCJ='-Wl,' 16538 lt_prog_compiler_pic_GCJ='-fpic' 16539 lt_prog_compiler_static_GCJ='-Bstatic' 16540 ;; 16541 ccc*) 16542 lt_prog_compiler_wl_GCJ='-Wl,' 16543 # All Alpha code is PIC. 16544 lt_prog_compiler_static_GCJ='-non_shared' 16545 ;; 16546 *) 16547 case `$CC -V 2>&1 | sed 5q` in 16548 *Sun\ C*) 16549 # Sun C 5.9 16550 lt_prog_compiler_pic_GCJ='-KPIC' 16551 lt_prog_compiler_static_GCJ='-Bstatic' 16552 lt_prog_compiler_wl_GCJ='-Wl,' 16553 ;; 16554 *Sun\ F*) 16555 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16556 lt_prog_compiler_pic_GCJ='-KPIC' 16557 lt_prog_compiler_static_GCJ='-Bstatic' 16558 lt_prog_compiler_wl_GCJ='' 16559 ;; 16560 esac 16561 ;; 16562 esac 16563 ;; 16564 16565 osf3* | osf4* | osf5*) 16566 lt_prog_compiler_wl_GCJ='-Wl,' 16567 # All OSF/1 code is PIC. 16568 lt_prog_compiler_static_GCJ='-non_shared' 16569 ;; 16570 16571 rdos*) 16572 lt_prog_compiler_static_GCJ='-non_shared' 16573 ;; 16574 16575 solaris*) 16576 lt_prog_compiler_pic_GCJ='-KPIC' 16577 lt_prog_compiler_static_GCJ='-Bstatic' 16578 case $cc_basename in 16579 f77* | f90* | f95*) 16580 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16581 *) 16582 lt_prog_compiler_wl_GCJ='-Wl,';; 16583 esac 16584 ;; 16585 16586 sunos4*) 16587 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16588 lt_prog_compiler_pic_GCJ='-PIC' 16589 lt_prog_compiler_static_GCJ='-Bstatic' 16590 ;; 16591 16592 sysv4 | sysv4.2uw2* | sysv4.3*) 16593 lt_prog_compiler_wl_GCJ='-Wl,' 16594 lt_prog_compiler_pic_GCJ='-KPIC' 16595 lt_prog_compiler_static_GCJ='-Bstatic' 16596 ;; 16597 16598 sysv4*MP*) 16599 if test -d /usr/nec ;then 16600 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16601 lt_prog_compiler_static_GCJ='-Bstatic' 16602 fi 16603 ;; 16604 16605 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16606 lt_prog_compiler_wl_GCJ='-Wl,' 16607 lt_prog_compiler_pic_GCJ='-KPIC' 16608 lt_prog_compiler_static_GCJ='-Bstatic' 16609 ;; 16610 16611 unicos*) 16612 lt_prog_compiler_wl_GCJ='-Wl,' 16613 lt_prog_compiler_can_build_shared_GCJ=no 16614 ;; 16615 16616 uts4*) 16617 lt_prog_compiler_pic_GCJ='-pic' 16618 lt_prog_compiler_static_GCJ='-Bstatic' 16619 ;; 16620 16621 *) 16622 lt_prog_compiler_can_build_shared_GCJ=no 16623 ;; 16624 esac 16625 fi 16626 16627{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16628echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16629 16630# 16631# Check to make sure the PIC flag actually works. 16632# 16633if test -n "$lt_prog_compiler_pic_GCJ"; then 16634 16635{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16636echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16637if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16638 echo $ECHO_N "(cached) $ECHO_C" >&6 16639else 16640 lt_prog_compiler_pic_works_GCJ=no 16641 ac_outfile=conftest.$ac_objext 16642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16643 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16644 # Insert the option either (1) after the last *FLAGS variable, or 16645 # (2) before a word containing "conftest.", or (3) at the end. 16646 # Note that $ac_compile itself does not contain backslashes and begins 16647 # with a dollar sign (not a hyphen), so the echo should work correctly. 16648 # The option is referenced via a variable to avoid confusing sed. 16649 lt_compile=`echo "$ac_compile" | $SED \ 16650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16652 -e 's:$: $lt_compiler_flag:'` 16653 (eval echo "\"\$as_me:16653: $lt_compile\"" >&5) 16654 (eval "$lt_compile" 2>conftest.err) 16655 ac_status=$? 16656 cat conftest.err >&5 16657 echo "$as_me:16657: \$? = $ac_status" >&5 16658 if (exit $ac_status) && test -s "$ac_outfile"; then 16659 # The compiler can only warn and ignore the option if not recognized 16660 # So say no if there are warnings other than the usual output. 16661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16664 lt_prog_compiler_pic_works_GCJ=yes 16665 fi 16666 fi 16667 $rm conftest* 16668 16669fi 16670{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16671echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16672 16673if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16674 case $lt_prog_compiler_pic_GCJ in 16675 "" | " "*) ;; 16676 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16677 esac 16678else 16679 lt_prog_compiler_pic_GCJ= 16680 lt_prog_compiler_can_build_shared_GCJ=no 16681fi 16682 16683fi 16684case $host_os in 16685 # For platforms which do not support PIC, -DPIC is meaningless: 16686 *djgpp*) 16687 lt_prog_compiler_pic_GCJ= 16688 ;; 16689 *) 16690 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16691 ;; 16692esac 16693 16694# 16695# Check to make sure the static flag actually works. 16696# 16697wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16698{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16699echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16700if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16701 echo $ECHO_N "(cached) $ECHO_C" >&6 16702else 16703 lt_prog_compiler_static_works_GCJ=no 16704 save_LDFLAGS="$LDFLAGS" 16705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16706 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16708 # The linker can only warn and ignore the option if not recognized 16709 # So say no if there are warnings 16710 if test -s conftest.err; then 16711 # Append any errors to the config.log. 16712 cat conftest.err 1>&5 16713 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16715 if diff conftest.exp conftest.er2 >/dev/null; then 16716 lt_prog_compiler_static_works_GCJ=yes 16717 fi 16718 else 16719 lt_prog_compiler_static_works_GCJ=yes 16720 fi 16721 fi 16722 $rm conftest* 16723 LDFLAGS="$save_LDFLAGS" 16724 16725fi 16726{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16727echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16728 16729if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16730 : 16731else 16732 lt_prog_compiler_static_GCJ= 16733fi 16734 16735 16736{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16737echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16738if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16739 echo $ECHO_N "(cached) $ECHO_C" >&6 16740else 16741 lt_cv_prog_compiler_c_o_GCJ=no 16742 $rm -r conftest 2>/dev/null 16743 mkdir conftest 16744 cd conftest 16745 mkdir out 16746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16747 16748 lt_compiler_flag="-o out/conftest2.$ac_objext" 16749 # Insert the option either (1) after the last *FLAGS variable, or 16750 # (2) before a word containing "conftest.", or (3) at the end. 16751 # Note that $ac_compile itself does not contain backslashes and begins 16752 # with a dollar sign (not a hyphen), so the echo should work correctly. 16753 lt_compile=`echo "$ac_compile" | $SED \ 16754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16756 -e 's:$: $lt_compiler_flag:'` 16757 (eval echo "\"\$as_me:16757: $lt_compile\"" >&5) 16758 (eval "$lt_compile" 2>out/conftest.err) 16759 ac_status=$? 16760 cat out/conftest.err >&5 16761 echo "$as_me:16761: \$? = $ac_status" >&5 16762 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16763 then 16764 # The compiler can only warn and ignore the option if not recognized 16765 # So say no if there are warnings 16766 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16769 lt_cv_prog_compiler_c_o_GCJ=yes 16770 fi 16771 fi 16772 chmod u+w . 2>&5 16773 $rm conftest* 16774 # SGI C++ compiler will create directory out/ii_files/ for 16775 # template instantiation 16776 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16777 $rm out/* && rmdir out 16778 cd .. 16779 rmdir conftest 16780 $rm conftest* 16781 16782fi 16783{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16784echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16785 16786 16787hard_links="nottested" 16788if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16789 # do not overwrite the value of need_locks provided by the user 16790 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16791echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16792 hard_links=yes 16793 $rm conftest* 16794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16795 touch conftest.a 16796 ln conftest.a conftest.b 2>&5 || hard_links=no 16797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16798 { echo "$as_me:$LINENO: result: $hard_links" >&5 16799echo "${ECHO_T}$hard_links" >&6; } 16800 if test "$hard_links" = no; then 16801 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16802echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16803 need_locks=warn 16804 fi 16805else 16806 need_locks=no 16807fi 16808 16809{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16810echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16811 16812 runpath_var= 16813 allow_undefined_flag_GCJ= 16814 enable_shared_with_static_runtimes_GCJ=no 16815 archive_cmds_GCJ= 16816 archive_expsym_cmds_GCJ= 16817 old_archive_From_new_cmds_GCJ= 16818 old_archive_from_expsyms_cmds_GCJ= 16819 export_dynamic_flag_spec_GCJ= 16820 whole_archive_flag_spec_GCJ= 16821 thread_safe_flag_spec_GCJ= 16822 hardcode_libdir_flag_spec_GCJ= 16823 hardcode_libdir_flag_spec_ld_GCJ= 16824 hardcode_libdir_separator_GCJ= 16825 hardcode_direct_GCJ=no 16826 hardcode_minus_L_GCJ=no 16827 hardcode_shlibpath_var_GCJ=unsupported 16828 link_all_deplibs_GCJ=unknown 16829 hardcode_automatic_GCJ=no 16830 module_cmds_GCJ= 16831 module_expsym_cmds_GCJ= 16832 always_export_symbols_GCJ=no 16833 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16834 # include_expsyms should be a list of space-separated symbols to be *always* 16835 # included in the symbol list 16836 include_expsyms_GCJ= 16837 # exclude_expsyms can be an extended regexp of symbols to exclude 16838 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16839 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16840 # as well as any symbol that contains `d'. 16841 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16842 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16843 # platforms (ab)use it in PIC code, but their linkers get confused if 16844 # the symbol is explicitly referenced. Since portable code cannot 16845 # rely on this symbol name, it's probably fine to never include it in 16846 # preloaded symbol tables. 16847 extract_expsyms_cmds= 16848 # Just being paranoid about ensuring that cc_basename is set. 16849 for cc_temp in $compiler""; do 16850 case $cc_temp in 16851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16853 \-*) ;; 16854 *) break;; 16855 esac 16856done 16857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16858 16859 case $host_os in 16860 cygwin* | mingw* | pw32*) 16861 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16862 # When not using gcc, we currently assume that we are using 16863 # Microsoft Visual C++. 16864 if test "$GCC" != yes; then 16865 with_gnu_ld=no 16866 fi 16867 ;; 16868 interix*) 16869 # we just hope/assume this is gcc and not c89 (= MSVC++) 16870 with_gnu_ld=yes 16871 ;; 16872 openbsd*) 16873 with_gnu_ld=no 16874 ;; 16875 esac 16876 16877 ld_shlibs_GCJ=yes 16878 if test "$with_gnu_ld" = yes; then 16879 # If archive_cmds runs LD, not CC, wlarc should be empty 16880 wlarc='${wl}' 16881 16882 # Set some defaults for GNU ld with shared library support. These 16883 # are reset later if shared libraries are not supported. Putting them 16884 # here allows them to be overridden if necessary. 16885 runpath_var=LD_RUN_PATH 16886 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16887 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16888 # ancient GNU ld didn't support --whole-archive et. al. 16889 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16890 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16891 else 16892 whole_archive_flag_spec_GCJ= 16893 fi 16894 supports_anon_versioning=no 16895 case `$LD -v 2>/dev/null` in 16896 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16897 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16898 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16899 *\ 2.11.*) ;; # other 2.11 versions 16900 *) supports_anon_versioning=yes ;; 16901 esac 16902 16903 # See if GNU ld supports shared libraries. 16904 case $host_os in 16905 aix3* | aix4* | aix5*) 16906 # On AIX/PPC, the GNU linker is very broken 16907 if test "$host_cpu" != ia64; then 16908 ld_shlibs_GCJ=no 16909 cat <<EOF 1>&2 16910 16911*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16912*** to be unable to reliably create shared libraries on AIX. 16913*** Therefore, libtool is disabling shared libraries support. If you 16914*** really care for shared libraries, you may want to modify your PATH 16915*** so that a non-GNU linker is found, and then restart. 16916 16917EOF 16918 fi 16919 ;; 16920 16921 amigaos*) 16922 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)' 16923 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16924 hardcode_minus_L_GCJ=yes 16925 16926 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16927 # that the semantics of dynamic libraries on AmigaOS, at least up 16928 # to version 4, is to share data among multiple programs linked 16929 # with the same dynamic library. Since this doesn't match the 16930 # behavior of shared libraries on other platforms, we can't use 16931 # them. 16932 ld_shlibs_GCJ=no 16933 ;; 16934 16935 beos*) 16936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16937 allow_undefined_flag_GCJ=unsupported 16938 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16939 # support --undefined. This deserves some investigation. FIXME 16940 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16941 else 16942 ld_shlibs_GCJ=no 16943 fi 16944 ;; 16945 16946 cygwin* | mingw* | pw32*) 16947 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16948 # as there is no search path for DLLs. 16949 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16950 allow_undefined_flag_GCJ=unsupported 16951 always_export_symbols_GCJ=no 16952 enable_shared_with_static_runtimes_GCJ=yes 16953 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16954 16955 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16957 # If the export-symbols file already is a .def file (1st line 16958 # is EXPORTS), use it as is; otherwise, prepend... 16959 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16960 cp $export_symbols $output_objdir/$soname.def; 16961 else 16962 echo EXPORTS > $output_objdir/$soname.def; 16963 cat $export_symbols >> $output_objdir/$soname.def; 16964 fi~ 16965 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16966 else 16967 ld_shlibs_GCJ=no 16968 fi 16969 ;; 16970 16971 interix[3-9]*) 16972 hardcode_direct_GCJ=no 16973 hardcode_shlibpath_var_GCJ=no 16974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16975 export_dynamic_flag_spec_GCJ='${wl}-E' 16976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16977 # Instead, shared libraries are loaded at an image base (0x10000000 by 16978 # default) and relocated if they conflict, which is a slow very memory 16979 # consuming and fragmenting process. To avoid this, we pick a random, 16980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16981 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16982 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' 16983 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' 16984 ;; 16985 16986 gnu* | linux* | k*bsd*-gnu) 16987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16988 tmp_addflag= 16989 case $cc_basename,$host_cpu in 16990 pgcc*) # Portland Group C compiler 16991 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' 16992 tmp_addflag=' $pic_flag' 16993 ;; 16994 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16995 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' 16996 tmp_addflag=' $pic_flag -Mnomain' ;; 16997 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16998 tmp_addflag=' -i_dynamic' ;; 16999 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17000 tmp_addflag=' -i_dynamic -nofor_main' ;; 17001 ifc* | ifort*) # Intel Fortran compiler 17002 tmp_addflag=' -nofor_main' ;; 17003 esac 17004 case `$CC -V 2>&1 | sed 5q` in 17005 *Sun\ C*) # Sun C 5.9 17006 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' 17007 tmp_sharedflag='-G' ;; 17008 *Sun\ F*) # Sun Fortran 8.3 17009 tmp_sharedflag='-G' ;; 17010 *) 17011 tmp_sharedflag='-shared' ;; 17012 esac 17013 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17014 17015 if test $supports_anon_versioning = yes; then 17016 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17018 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17019 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17020 fi 17021 else 17022 ld_shlibs_GCJ=no 17023 fi 17024 ;; 17025 17026 netbsd*) 17027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17028 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17029 wlarc= 17030 else 17031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17032 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17033 fi 17034 ;; 17035 17036 solaris*) 17037 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17038 ld_shlibs_GCJ=no 17039 cat <<EOF 1>&2 17040 17041*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17042*** create shared libraries on Solaris systems. Therefore, libtool 17043*** is disabling shared libraries support. We urge you to upgrade GNU 17044*** binutils to release 2.9.1 or newer. Another option is to modify 17045*** your PATH or compiler configuration so that the native linker is 17046*** used, and then restart. 17047 17048EOF 17049 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17050 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17051 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17052 else 17053 ld_shlibs_GCJ=no 17054 fi 17055 ;; 17056 17057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17058 case `$LD -v 2>&1` in 17059 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17060 ld_shlibs_GCJ=no 17061 cat <<_LT_EOF 1>&2 17062 17063*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17064*** reliably create shared libraries on SCO systems. Therefore, libtool 17065*** is disabling shared libraries support. We urge you to upgrade GNU 17066*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17067*** your PATH or compiler configuration so that the native linker is 17068*** used, and then restart. 17069 17070_LT_EOF 17071 ;; 17072 *) 17073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17074 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17075 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17076 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17077 else 17078 ld_shlibs_GCJ=no 17079 fi 17080 ;; 17081 esac 17082 ;; 17083 17084 sunos4*) 17085 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17086 wlarc= 17087 hardcode_direct_GCJ=yes 17088 hardcode_shlibpath_var_GCJ=no 17089 ;; 17090 17091 *) 17092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17095 else 17096 ld_shlibs_GCJ=no 17097 fi 17098 ;; 17099 esac 17100 17101 if test "$ld_shlibs_GCJ" = no; then 17102 runpath_var= 17103 hardcode_libdir_flag_spec_GCJ= 17104 export_dynamic_flag_spec_GCJ= 17105 whole_archive_flag_spec_GCJ= 17106 fi 17107 else 17108 # PORTME fill in a description of your system's linker (not GNU ld) 17109 case $host_os in 17110 aix3*) 17111 allow_undefined_flag_GCJ=unsupported 17112 always_export_symbols_GCJ=yes 17113 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' 17114 # Note: this linker hardcodes the directories in LIBPATH if there 17115 # are no directories specified by -L. 17116 hardcode_minus_L_GCJ=yes 17117 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17118 # Neither direct hardcoding nor static linking is supported with a 17119 # broken collect2. 17120 hardcode_direct_GCJ=unsupported 17121 fi 17122 ;; 17123 17124 aix4* | aix5*) 17125 if test "$host_cpu" = ia64; then 17126 # On IA64, the linker does run time linking by default, so we don't 17127 # have to do anything special. 17128 aix_use_runtimelinking=no 17129 exp_sym_flag='-Bexport' 17130 no_entry_flag="" 17131 else 17132 # If we're using GNU nm, then we don't want the "-C" option. 17133 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17134 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17135 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' 17136 else 17137 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' 17138 fi 17139 aix_use_runtimelinking=no 17140 17141 # Test if we are trying to use run time linking or normal 17142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17143 # need to do runtime linking. 17144 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17145 for ld_flag in $LDFLAGS; do 17146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17147 aix_use_runtimelinking=yes 17148 break 17149 fi 17150 done 17151 ;; 17152 esac 17153 17154 exp_sym_flag='-bexport' 17155 no_entry_flag='-bnoentry' 17156 fi 17157 17158 # When large executables or shared objects are built, AIX ld can 17159 # have problems creating the table of contents. If linking a library 17160 # or program results in "error TOC overflow" add -mminimal-toc to 17161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17163 17164 archive_cmds_GCJ='' 17165 hardcode_direct_GCJ=yes 17166 hardcode_libdir_separator_GCJ=':' 17167 link_all_deplibs_GCJ=yes 17168 17169 if test "$GCC" = yes; then 17170 case $host_os in aix4.[012]|aix4.[012].*) 17171 # We only want to do this on AIX 4.2 and lower, the check 17172 # below for broken collect2 doesn't work under 4.3+ 17173 collect2name=`${CC} -print-prog-name=collect2` 17174 if test -f "$collect2name" && \ 17175 strings "$collect2name" | grep resolve_lib_name >/dev/null 17176 then 17177 # We have reworked collect2 17178 : 17179 else 17180 # We have old collect2 17181 hardcode_direct_GCJ=unsupported 17182 # It fails to find uninstalled libraries when the uninstalled 17183 # path is not listed in the libpath. Setting hardcode_minus_L 17184 # to unsupported forces relinking 17185 hardcode_minus_L_GCJ=yes 17186 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17187 hardcode_libdir_separator_GCJ= 17188 fi 17189 ;; 17190 esac 17191 shared_flag='-shared' 17192 if test "$aix_use_runtimelinking" = yes; then 17193 shared_flag="$shared_flag "'${wl}-G' 17194 fi 17195 else 17196 # not using gcc 17197 if test "$host_cpu" = ia64; then 17198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17199 # chokes on -Wl,-G. The following line is correct: 17200 shared_flag='-G' 17201 else 17202 if test "$aix_use_runtimelinking" = yes; then 17203 shared_flag='${wl}-G' 17204 else 17205 shared_flag='${wl}-bM:SRE' 17206 fi 17207 fi 17208 fi 17209 17210 # It seems that -bexpall does not export symbols beginning with 17211 # underscore (_), so it is better to generate a list of symbols to export. 17212 always_export_symbols_GCJ=yes 17213 if test "$aix_use_runtimelinking" = yes; then 17214 # Warning - without using the other runtime loading flags (-brtl), 17215 # -berok will link without error, but may produce a broken library. 17216 allow_undefined_flag_GCJ='-berok' 17217 # Determine the default libpath from the value encoded in an empty executable. 17218 cat >conftest.$ac_ext <<_ACEOF 17219/* confdefs.h. */ 17220_ACEOF 17221cat confdefs.h >>conftest.$ac_ext 17222cat >>conftest.$ac_ext <<_ACEOF 17223/* end confdefs.h. */ 17224 17225int 17226main () 17227{ 17228 17229 ; 17230 return 0; 17231} 17232_ACEOF 17233rm -f conftest.$ac_objext conftest$ac_exeext 17234if { (ac_try="$ac_link" 17235case "(($ac_try" in 17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17237 *) ac_try_echo=$ac_try;; 17238esac 17239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17240 (eval "$ac_link") 2>conftest.er1 17241 ac_status=$? 17242 grep -v '^ *+' conftest.er1 >conftest.err 17243 rm -f conftest.er1 17244 cat conftest.err >&5 17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17246 (exit $ac_status); } && { 17247 test -z "$ac_c_werror_flag" || 17248 test ! -s conftest.err 17249 } && test -s conftest$ac_exeext && 17250 $as_test_x conftest$ac_exeext; then 17251 17252lt_aix_libpath_sed=' 17253 /Import File Strings/,/^$/ { 17254 /^0/ { 17255 s/^0 *\(.*\)$/\1/ 17256 p 17257 } 17258 }' 17259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17260# Check for a 64-bit object if we didn't find anything. 17261if test -z "$aix_libpath"; then 17262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17263fi 17264else 17265 echo "$as_me: failed program was:" >&5 17266sed 's/^/| /' conftest.$ac_ext >&5 17267 17268 17269fi 17270 17271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17272 conftest$ac_exeext conftest.$ac_ext 17273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17274 17275 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17276 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" 17277 else 17278 if test "$host_cpu" = ia64; then 17279 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17280 allow_undefined_flag_GCJ="-z nodefs" 17281 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" 17282 else 17283 # Determine the default libpath from the value encoded in an empty executable. 17284 cat >conftest.$ac_ext <<_ACEOF 17285/* confdefs.h. */ 17286_ACEOF 17287cat confdefs.h >>conftest.$ac_ext 17288cat >>conftest.$ac_ext <<_ACEOF 17289/* end confdefs.h. */ 17290 17291int 17292main () 17293{ 17294 17295 ; 17296 return 0; 17297} 17298_ACEOF 17299rm -f conftest.$ac_objext conftest$ac_exeext 17300if { (ac_try="$ac_link" 17301case "(($ac_try" in 17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17303 *) ac_try_echo=$ac_try;; 17304esac 17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17306 (eval "$ac_link") 2>conftest.er1 17307 ac_status=$? 17308 grep -v '^ *+' conftest.er1 >conftest.err 17309 rm -f conftest.er1 17310 cat conftest.err >&5 17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17312 (exit $ac_status); } && { 17313 test -z "$ac_c_werror_flag" || 17314 test ! -s conftest.err 17315 } && test -s conftest$ac_exeext && 17316 $as_test_x conftest$ac_exeext; then 17317 17318lt_aix_libpath_sed=' 17319 /Import File Strings/,/^$/ { 17320 /^0/ { 17321 s/^0 *\(.*\)$/\1/ 17322 p 17323 } 17324 }' 17325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17326# Check for a 64-bit object if we didn't find anything. 17327if test -z "$aix_libpath"; then 17328 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17329fi 17330else 17331 echo "$as_me: failed program was:" >&5 17332sed 's/^/| /' conftest.$ac_ext >&5 17333 17334 17335fi 17336 17337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17338 conftest$ac_exeext conftest.$ac_ext 17339if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17340 17341 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17342 # Warning - without using the other run time loading flags, 17343 # -berok will link without error, but may produce a broken library. 17344 no_undefined_flag_GCJ=' ${wl}-bernotok' 17345 allow_undefined_flag_GCJ=' ${wl}-berok' 17346 # Exported symbols can be pulled into shared objects from archives 17347 whole_archive_flag_spec_GCJ='$convenience' 17348 archive_cmds_need_lc_GCJ=yes 17349 # This is similar to how AIX traditionally builds its shared libraries. 17350 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' 17351 fi 17352 fi 17353 ;; 17354 17355 amigaos*) 17356 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)' 17357 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17358 hardcode_minus_L_GCJ=yes 17359 # see comment about different semantics on the GNU ld section 17360 ld_shlibs_GCJ=no 17361 ;; 17362 17363 bsdi[45]*) 17364 export_dynamic_flag_spec_GCJ=-rdynamic 17365 ;; 17366 17367 cygwin* | mingw* | pw32*) 17368 # When not using gcc, we currently assume that we are using 17369 # Microsoft Visual C++. 17370 # hardcode_libdir_flag_spec is actually meaningless, as there is 17371 # no search path for DLLs. 17372 hardcode_libdir_flag_spec_GCJ=' ' 17373 allow_undefined_flag_GCJ=unsupported 17374 # Tell ltmain to make .lib files, not .a files. 17375 libext=lib 17376 # Tell ltmain to make .dll files, not .so files. 17377 shrext_cmds=".dll" 17378 # FIXME: Setting linknames here is a bad hack. 17379 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17380 # The linker will automatically build a .lib file if we build a DLL. 17381 old_archive_From_new_cmds_GCJ='true' 17382 # FIXME: Should let the user specify the lib program. 17383 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17384 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17385 enable_shared_with_static_runtimes_GCJ=yes 17386 ;; 17387 17388 darwin* | rhapsody*) 17389 case $host_os in 17390 rhapsody* | darwin1.[012]) 17391 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17392 ;; 17393 *) # Darwin 1.3 on 17394 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17395 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17396 else 17397 case ${MACOSX_DEPLOYMENT_TARGET} in 17398 10.[012]) 17399 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17400 ;; 17401 10.*) 17402 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17403 ;; 17404 esac 17405 fi 17406 ;; 17407 esac 17408 archive_cmds_need_lc_GCJ=no 17409 hardcode_direct_GCJ=no 17410 hardcode_automatic_GCJ=yes 17411 hardcode_shlibpath_var_GCJ=unsupported 17412 whole_archive_flag_spec_GCJ='' 17413 link_all_deplibs_GCJ=yes 17414 if test "$GCC" = yes ; then 17415 output_verbose_link_cmd='echo' 17416 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17417 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17418 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17419 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}' 17420 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}' 17421 else 17422 case $cc_basename in 17423 xlc*) 17424 output_verbose_link_cmd='echo' 17425 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17426 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17427 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17428 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}' 17429 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}' 17430 ;; 17431 *) 17432 ld_shlibs_GCJ=no 17433 ;; 17434 esac 17435 fi 17436 ;; 17437 17438 dgux*) 17439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17440 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17441 hardcode_shlibpath_var_GCJ=no 17442 ;; 17443 17444 freebsd1*) 17445 ld_shlibs_GCJ=no 17446 ;; 17447 17448 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17449 # support. Future versions do this automatically, but an explicit c++rt0.o 17450 # does not break anything, and helps significantly (at the cost of a little 17451 # extra space). 17452 freebsd2.2*) 17453 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17454 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17455 hardcode_direct_GCJ=yes 17456 hardcode_shlibpath_var_GCJ=no 17457 ;; 17458 17459 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17460 freebsd2*) 17461 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17462 hardcode_direct_GCJ=yes 17463 hardcode_minus_L_GCJ=yes 17464 hardcode_shlibpath_var_GCJ=no 17465 ;; 17466 17467 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17468 freebsd* | dragonfly*) 17469 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17470 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17471 hardcode_direct_GCJ=yes 17472 hardcode_shlibpath_var_GCJ=no 17473 ;; 17474 17475 hpux9*) 17476 if test "$GCC" = yes; then 17477 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' 17478 else 17479 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' 17480 fi 17481 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17482 hardcode_libdir_separator_GCJ=: 17483 hardcode_direct_GCJ=yes 17484 17485 # hardcode_minus_L: Not really in the search PATH, 17486 # but as the default location of the library. 17487 hardcode_minus_L_GCJ=yes 17488 export_dynamic_flag_spec_GCJ='${wl}-E' 17489 ;; 17490 17491 hpux10*) 17492 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17493 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17494 else 17495 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17496 fi 17497 if test "$with_gnu_ld" = no; then 17498 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17499 hardcode_libdir_separator_GCJ=: 17500 17501 hardcode_direct_GCJ=yes 17502 export_dynamic_flag_spec_GCJ='${wl}-E' 17503 17504 # hardcode_minus_L: Not really in the search PATH, 17505 # but as the default location of the library. 17506 hardcode_minus_L_GCJ=yes 17507 fi 17508 ;; 17509 17510 hpux11*) 17511 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17512 case $host_cpu in 17513 hppa*64*) 17514 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17515 ;; 17516 ia64*) 17517 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17518 ;; 17519 *) 17520 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17521 ;; 17522 esac 17523 else 17524 case $host_cpu in 17525 hppa*64*) 17526 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17527 ;; 17528 ia64*) 17529 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17530 ;; 17531 *) 17532 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17533 ;; 17534 esac 17535 fi 17536 if test "$with_gnu_ld" = no; then 17537 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17538 hardcode_libdir_separator_GCJ=: 17539 17540 case $host_cpu in 17541 hppa*64*|ia64*) 17542 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17543 hardcode_direct_GCJ=no 17544 hardcode_shlibpath_var_GCJ=no 17545 ;; 17546 *) 17547 hardcode_direct_GCJ=yes 17548 export_dynamic_flag_spec_GCJ='${wl}-E' 17549 17550 # hardcode_minus_L: Not really in the search PATH, 17551 # but as the default location of the library. 17552 hardcode_minus_L_GCJ=yes 17553 ;; 17554 esac 17555 fi 17556 ;; 17557 17558 irix5* | irix6* | nonstopux*) 17559 if test "$GCC" = yes; then 17560 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' 17561 else 17562 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' 17563 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17564 fi 17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17566 hardcode_libdir_separator_GCJ=: 17567 link_all_deplibs_GCJ=yes 17568 ;; 17569 17570 netbsd*) 17571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17573 else 17574 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17575 fi 17576 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17577 hardcode_direct_GCJ=yes 17578 hardcode_shlibpath_var_GCJ=no 17579 ;; 17580 17581 newsos6) 17582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17583 hardcode_direct_GCJ=yes 17584 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17585 hardcode_libdir_separator_GCJ=: 17586 hardcode_shlibpath_var_GCJ=no 17587 ;; 17588 17589 openbsd*) 17590 if test -f /usr/libexec/ld.so; then 17591 hardcode_direct_GCJ=yes 17592 hardcode_shlibpath_var_GCJ=no 17593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17594 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17595 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17597 export_dynamic_flag_spec_GCJ='${wl}-E' 17598 else 17599 case $host_os in 17600 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17601 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17602 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17603 ;; 17604 *) 17605 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17606 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17607 ;; 17608 esac 17609 fi 17610 else 17611 ld_shlibs_GCJ=no 17612 fi 17613 ;; 17614 17615 os2*) 17616 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17617 hardcode_minus_L_GCJ=yes 17618 allow_undefined_flag_GCJ=unsupported 17619 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' 17620 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17621 ;; 17622 17623 osf3*) 17624 if test "$GCC" = yes; then 17625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17626 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' 17627 else 17628 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17629 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' 17630 fi 17631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17632 hardcode_libdir_separator_GCJ=: 17633 ;; 17634 17635 osf4* | osf5*) # as osf3* with the addition of -msym flag 17636 if test "$GCC" = yes; then 17637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17638 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' 17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17640 else 17641 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17642 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' 17643 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~ 17644 $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' 17645 17646 # Both c and cxx compiler support -rpath directly 17647 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17648 fi 17649 hardcode_libdir_separator_GCJ=: 17650 ;; 17651 17652 solaris*) 17653 no_undefined_flag_GCJ=' -z text' 17654 if test "$GCC" = yes; then 17655 wlarc='${wl}' 17656 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17657 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17658 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17659 else 17660 wlarc='' 17661 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17662 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17664 fi 17665 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17666 hardcode_shlibpath_var_GCJ=no 17667 case $host_os in 17668 solaris2.[0-5] | solaris2.[0-5].*) ;; 17669 *) 17670 # The compiler driver will combine and reorder linker options, 17671 # but understands `-z linker_flag'. GCC discards it without `$wl', 17672 # but is careful enough not to reorder. 17673 # Supported since Solaris 2.6 (maybe 2.5.1?) 17674 if test "$GCC" = yes; then 17675 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17676 else 17677 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17678 fi 17679 ;; 17680 esac 17681 link_all_deplibs_GCJ=yes 17682 ;; 17683 17684 sunos4*) 17685 if test "x$host_vendor" = xsequent; then 17686 # Use $CC to link under sequent, because it throws in some extra .o 17687 # files that make .init and .fini sections work. 17688 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17689 else 17690 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17691 fi 17692 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17693 hardcode_direct_GCJ=yes 17694 hardcode_minus_L_GCJ=yes 17695 hardcode_shlibpath_var_GCJ=no 17696 ;; 17697 17698 sysv4) 17699 case $host_vendor in 17700 sni) 17701 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17702 hardcode_direct_GCJ=yes # is this really true??? 17703 ;; 17704 siemens) 17705 ## LD is ld it makes a PLAMLIB 17706 ## CC just makes a GrossModule. 17707 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17708 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17709 hardcode_direct_GCJ=no 17710 ;; 17711 motorola) 17712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17713 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17714 ;; 17715 esac 17716 runpath_var='LD_RUN_PATH' 17717 hardcode_shlibpath_var_GCJ=no 17718 ;; 17719 17720 sysv4.3*) 17721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17722 hardcode_shlibpath_var_GCJ=no 17723 export_dynamic_flag_spec_GCJ='-Bexport' 17724 ;; 17725 17726 sysv4*MP*) 17727 if test -d /usr/nec; then 17728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17729 hardcode_shlibpath_var_GCJ=no 17730 runpath_var=LD_RUN_PATH 17731 hardcode_runpath_var=yes 17732 ld_shlibs_GCJ=yes 17733 fi 17734 ;; 17735 17736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17737 no_undefined_flag_GCJ='${wl}-z,text' 17738 archive_cmds_need_lc_GCJ=no 17739 hardcode_shlibpath_var_GCJ=no 17740 runpath_var='LD_RUN_PATH' 17741 17742 if test "$GCC" = yes; then 17743 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17744 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17745 else 17746 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17747 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17748 fi 17749 ;; 17750 17751 sysv5* | sco3.2v5* | sco5v6*) 17752 # Note: We can NOT use -z defs as we might desire, because we do not 17753 # link with -lc, and that would cause any symbols used from libc to 17754 # always be unresolved, which means just about no library would 17755 # ever link correctly. If we're not using GNU ld we use -z text 17756 # though, which does catch some bad symbols but isn't as heavy-handed 17757 # as -z defs. 17758 no_undefined_flag_GCJ='${wl}-z,text' 17759 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17760 archive_cmds_need_lc_GCJ=no 17761 hardcode_shlibpath_var_GCJ=no 17762 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17763 hardcode_libdir_separator_GCJ=':' 17764 link_all_deplibs_GCJ=yes 17765 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17766 runpath_var='LD_RUN_PATH' 17767 17768 if test "$GCC" = yes; then 17769 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17770 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17771 else 17772 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17773 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17774 fi 17775 ;; 17776 17777 uts4*) 17778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17779 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17780 hardcode_shlibpath_var_GCJ=no 17781 ;; 17782 17783 *) 17784 ld_shlibs_GCJ=no 17785 ;; 17786 esac 17787 fi 17788 17789{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17790echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17791test "$ld_shlibs_GCJ" = no && can_build_shared=no 17792 17793# 17794# Do we need to explicitly link libc? 17795# 17796case "x$archive_cmds_need_lc_GCJ" in 17797x|xyes) 17798 # Assume -lc should be added 17799 archive_cmds_need_lc_GCJ=yes 17800 17801 if test "$enable_shared" = yes && test "$GCC" = yes; then 17802 case $archive_cmds_GCJ in 17803 *'~'*) 17804 # FIXME: we may have to deal with multi-command sequences. 17805 ;; 17806 '$CC '*) 17807 # Test whether the compiler implicitly links with -lc since on some 17808 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17809 # to ld, don't add -lc before -lgcc. 17810 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17812 $rm conftest* 17813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17814 17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17816 (eval $ac_compile) 2>&5 17817 ac_status=$? 17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17819 (exit $ac_status); } 2>conftest.err; then 17820 soname=conftest 17821 lib=conftest 17822 libobjs=conftest.$ac_objext 17823 deplibs= 17824 wl=$lt_prog_compiler_wl_GCJ 17825 pic_flag=$lt_prog_compiler_pic_GCJ 17826 compiler_flags=-v 17827 linker_flags=-v 17828 verstring= 17829 output_objdir=. 17830 libname=conftest 17831 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17832 allow_undefined_flag_GCJ= 17833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17834 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17835 ac_status=$? 17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17837 (exit $ac_status); } 17838 then 17839 archive_cmds_need_lc_GCJ=no 17840 else 17841 archive_cmds_need_lc_GCJ=yes 17842 fi 17843 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17844 else 17845 cat conftest.err 1>&5 17846 fi 17847 $rm conftest* 17848 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17849echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17850 ;; 17851 esac 17852 fi 17853 ;; 17854esac 17855 17856{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17858library_names_spec= 17859libname_spec='lib$name' 17860soname_spec= 17861shrext_cmds=".so" 17862postinstall_cmds= 17863postuninstall_cmds= 17864finish_cmds= 17865finish_eval= 17866shlibpath_var= 17867shlibpath_overrides_runpath=unknown 17868version_type=none 17869dynamic_linker="$host_os ld.so" 17870sys_lib_dlsearch_path_spec="/lib /usr/lib" 17871 17872need_lib_prefix=unknown 17873hardcode_into_libs=no 17874 17875# when you set need_version to no, make sure it does not cause -set_version 17876# flags to be left without arguments 17877need_version=unknown 17878 17879case $host_os in 17880aix3*) 17881 version_type=linux 17882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17883 shlibpath_var=LIBPATH 17884 17885 # AIX 3 has no versioning support, so we append a major version to the name. 17886 soname_spec='${libname}${release}${shared_ext}$major' 17887 ;; 17888 17889aix4* | aix5*) 17890 version_type=linux 17891 need_lib_prefix=no 17892 need_version=no 17893 hardcode_into_libs=yes 17894 if test "$host_cpu" = ia64; then 17895 # AIX 5 supports IA64 17896 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17897 shlibpath_var=LD_LIBRARY_PATH 17898 else 17899 # With GCC up to 2.95.x, collect2 would create an import file 17900 # for dependence libraries. The import file would start with 17901 # the line `#! .'. This would cause the generated library to 17902 # depend on `.', always an invalid library. This was fixed in 17903 # development snapshots of GCC prior to 3.0. 17904 case $host_os in 17905 aix4 | aix4.[01] | aix4.[01].*) 17906 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17907 echo ' yes ' 17908 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17909 : 17910 else 17911 can_build_shared=no 17912 fi 17913 ;; 17914 esac 17915 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17916 # soname into executable. Probably we can add versioning support to 17917 # collect2, so additional links can be useful in future. 17918 if test "$aix_use_runtimelinking" = yes; then 17919 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17920 # instead of lib<name>.a to let people know that these are not 17921 # typical AIX shared libraries. 17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17923 else 17924 # We preserve .a as extension for shared libraries through AIX4.2 17925 # and later when we are not doing run time linking. 17926 library_names_spec='${libname}${release}.a $libname.a' 17927 soname_spec='${libname}${release}${shared_ext}$major' 17928 fi 17929 shlibpath_var=LIBPATH 17930 fi 17931 ;; 17932 17933amigaos*) 17934 library_names_spec='$libname.ixlibrary $libname.a' 17935 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17936 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' 17937 ;; 17938 17939beos*) 17940 library_names_spec='${libname}${shared_ext}' 17941 dynamic_linker="$host_os ld.so" 17942 shlibpath_var=LIBRARY_PATH 17943 ;; 17944 17945bsdi[45]*) 17946 version_type=linux 17947 need_version=no 17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17949 soname_spec='${libname}${release}${shared_ext}$major' 17950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17951 shlibpath_var=LD_LIBRARY_PATH 17952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17954 # the default ld.so.conf also contains /usr/contrib/lib and 17955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17956 # libtool to hard-code these into programs 17957 ;; 17958 17959cygwin* | mingw* | pw32*) 17960 version_type=windows 17961 shrext_cmds=".dll" 17962 need_version=no 17963 need_lib_prefix=no 17964 17965 case $GCC,$host_os in 17966 yes,cygwin* | yes,mingw* | yes,pw32*) 17967 library_names_spec='$libname.dll.a' 17968 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17969 postinstall_cmds='base_file=`basename \${file}`~ 17970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17971 dldir=$destdir/`dirname \$dlpath`~ 17972 test -d \$dldir || mkdir -p \$dldir~ 17973 $install_prog $dir/$dlname \$dldir/$dlname~ 17974 chmod a+x \$dldir/$dlname' 17975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17976 dlpath=$dir/\$dldll~ 17977 $rm \$dlpath' 17978 shlibpath_overrides_runpath=yes 17979 17980 case $host_os in 17981 cygwin*) 17982 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17983 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17984 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17985 ;; 17986 mingw*) 17987 # MinGW DLLs use traditional 'lib' prefix 17988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17990 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17991 # It is most probably a Windows format PATH printed by 17992 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17993 # path with ; separators, and with drive letters. We can handle the 17994 # drive letters (cygwin fileutils understands them), so leave them, 17995 # especially as we might pass files found there to a mingw objdump, 17996 # which wouldn't understand a cygwinified path. Ahh. 17997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17998 else 17999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18000 fi 18001 ;; 18002 pw32*) 18003 # pw32 DLLs use 'pw' prefix rather than 'lib' 18004 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18005 ;; 18006 esac 18007 ;; 18008 18009 *) 18010 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18011 ;; 18012 esac 18013 dynamic_linker='Win32 ld.exe' 18014 # FIXME: first we should search . and the directory the executable is in 18015 shlibpath_var=PATH 18016 ;; 18017 18018darwin* | rhapsody*) 18019 dynamic_linker="$host_os dyld" 18020 version_type=darwin 18021 need_lib_prefix=no 18022 need_version=no 18023 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18024 soname_spec='${libname}${release}${major}$shared_ext' 18025 shlibpath_overrides_runpath=yes 18026 shlibpath_var=DYLD_LIBRARY_PATH 18027 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18028 18029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18030 ;; 18031 18032dgux*) 18033 version_type=linux 18034 need_lib_prefix=no 18035 need_version=no 18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18037 soname_spec='${libname}${release}${shared_ext}$major' 18038 shlibpath_var=LD_LIBRARY_PATH 18039 ;; 18040 18041freebsd1*) 18042 dynamic_linker=no 18043 ;; 18044 18045freebsd* | dragonfly*) 18046 # DragonFly does not have aout. When/if they implement a new 18047 # versioning mechanism, adjust this. 18048 if test -x /usr/bin/objformat; then 18049 objformat=`/usr/bin/objformat` 18050 else 18051 case $host_os in 18052 freebsd[123]*) objformat=aout ;; 18053 *) objformat=elf ;; 18054 esac 18055 fi 18056 version_type=freebsd-$objformat 18057 case $version_type in 18058 freebsd-elf*) 18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18060 need_version=no 18061 need_lib_prefix=no 18062 ;; 18063 freebsd-*) 18064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18065 need_version=yes 18066 ;; 18067 esac 18068 shlibpath_var=LD_LIBRARY_PATH 18069 case $host_os in 18070 freebsd2*) 18071 shlibpath_overrides_runpath=yes 18072 ;; 18073 freebsd3.[01]* | freebsdelf3.[01]*) 18074 shlibpath_overrides_runpath=yes 18075 hardcode_into_libs=yes 18076 ;; 18077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18079 shlibpath_overrides_runpath=no 18080 hardcode_into_libs=yes 18081 ;; 18082 *) # from 4.6 on, and DragonFly 18083 shlibpath_overrides_runpath=yes 18084 hardcode_into_libs=yes 18085 ;; 18086 esac 18087 ;; 18088 18089gnu*) 18090 version_type=linux 18091 need_lib_prefix=no 18092 need_version=no 18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18094 soname_spec='${libname}${release}${shared_ext}$major' 18095 shlibpath_var=LD_LIBRARY_PATH 18096 hardcode_into_libs=yes 18097 ;; 18098 18099hpux9* | hpux10* | hpux11*) 18100 # Give a soname corresponding to the major version so that dld.sl refuses to 18101 # link against other versions. 18102 version_type=sunos 18103 need_lib_prefix=no 18104 need_version=no 18105 case $host_cpu in 18106 ia64*) 18107 shrext_cmds='.so' 18108 hardcode_into_libs=yes 18109 dynamic_linker="$host_os dld.so" 18110 shlibpath_var=LD_LIBRARY_PATH 18111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18113 soname_spec='${libname}${release}${shared_ext}$major' 18114 if test "X$HPUX_IA64_MODE" = X32; then 18115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18116 else 18117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18118 fi 18119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18120 ;; 18121 hppa*64*) 18122 shrext_cmds='.sl' 18123 hardcode_into_libs=yes 18124 dynamic_linker="$host_os dld.sl" 18125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18128 soname_spec='${libname}${release}${shared_ext}$major' 18129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18131 ;; 18132 *) 18133 shrext_cmds='.sl' 18134 dynamic_linker="$host_os dld.sl" 18135 shlibpath_var=SHLIB_PATH 18136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18138 soname_spec='${libname}${release}${shared_ext}$major' 18139 ;; 18140 esac 18141 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18142 postinstall_cmds='chmod 555 $lib' 18143 ;; 18144 18145interix[3-9]*) 18146 version_type=linux 18147 need_lib_prefix=no 18148 need_version=no 18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18150 soname_spec='${libname}${release}${shared_ext}$major' 18151 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18152 shlibpath_var=LD_LIBRARY_PATH 18153 shlibpath_overrides_runpath=no 18154 hardcode_into_libs=yes 18155 ;; 18156 18157irix5* | irix6* | nonstopux*) 18158 case $host_os in 18159 nonstopux*) version_type=nonstopux ;; 18160 *) 18161 if test "$lt_cv_prog_gnu_ld" = yes; then 18162 version_type=linux 18163 else 18164 version_type=irix 18165 fi ;; 18166 esac 18167 need_lib_prefix=no 18168 need_version=no 18169 soname_spec='${libname}${release}${shared_ext}$major' 18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18171 case $host_os in 18172 irix5* | nonstopux*) 18173 libsuff= shlibsuff= 18174 ;; 18175 *) 18176 case $LD in # libtool.m4 will add one of these switches to LD 18177 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18178 libsuff= shlibsuff= libmagic=32-bit;; 18179 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18180 libsuff=32 shlibsuff=N32 libmagic=N32;; 18181 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18182 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18183 *) libsuff= shlibsuff= libmagic=never-match;; 18184 esac 18185 ;; 18186 esac 18187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18188 shlibpath_overrides_runpath=no 18189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18191 hardcode_into_libs=yes 18192 ;; 18193 18194# No shared lib support for Linux oldld, aout, or coff. 18195linux*oldld* | linux*aout* | linux*coff*) 18196 dynamic_linker=no 18197 ;; 18198 18199# This must be Linux ELF. 18200linux* | k*bsd*-gnu) 18201 version_type=linux 18202 need_lib_prefix=no 18203 need_version=no 18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18205 soname_spec='${libname}${release}${shared_ext}$major' 18206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18207 shlibpath_var=LD_LIBRARY_PATH 18208 shlibpath_overrides_runpath=no 18209 # This implies no fast_install, which is unacceptable. 18210 # Some rework will be needed to allow for fast_install 18211 # before this can be enabled. 18212 hardcode_into_libs=yes 18213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18215 18216 # Append ld.so.conf contents to the search path 18217 if test -f /etc/ld.so.conf; then 18218 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' ' '` 18219 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18220 fi 18221 18222 # We used to test for /lib/ld.so.1 and disable shared libraries on 18223 # powerpc, because MkLinux only supported shared libraries with the 18224 # GNU dynamic linker. Since this was broken with cross compilers, 18225 # most powerpc-linux boxes support dynamic linking these days and 18226 # people can always --disable-shared, the test was removed, and we 18227 # assume the GNU/Linux dynamic linker is in use. 18228 dynamic_linker='GNU/Linux ld.so' 18229 ;; 18230 18231netbsd*) 18232 version_type=sunos 18233 need_lib_prefix=no 18234 need_version=no 18235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18238 dynamic_linker='NetBSD (a.out) ld.so' 18239 else 18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18241 soname_spec='${libname}${release}${shared_ext}$major' 18242 dynamic_linker='NetBSD ld.elf_so' 18243 fi 18244 shlibpath_var=LD_LIBRARY_PATH 18245 shlibpath_overrides_runpath=yes 18246 hardcode_into_libs=yes 18247 ;; 18248 18249newsos6) 18250 version_type=linux 18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18252 shlibpath_var=LD_LIBRARY_PATH 18253 shlibpath_overrides_runpath=yes 18254 ;; 18255 18256nto-qnx*) 18257 version_type=linux 18258 need_lib_prefix=no 18259 need_version=no 18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18261 soname_spec='${libname}${release}${shared_ext}$major' 18262 shlibpath_var=LD_LIBRARY_PATH 18263 shlibpath_overrides_runpath=yes 18264 ;; 18265 18266openbsd*) 18267 version_type=sunos 18268 sys_lib_dlsearch_path_spec="/usr/lib" 18269 need_lib_prefix=no 18270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18271 case $host_os in 18272 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18273 *) need_version=no ;; 18274 esac 18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18277 shlibpath_var=LD_LIBRARY_PATH 18278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18279 case $host_os in 18280 openbsd2.[89] | openbsd2.[89].*) 18281 shlibpath_overrides_runpath=no 18282 ;; 18283 *) 18284 shlibpath_overrides_runpath=yes 18285 ;; 18286 esac 18287 else 18288 shlibpath_overrides_runpath=yes 18289 fi 18290 ;; 18291 18292os2*) 18293 libname_spec='$name' 18294 shrext_cmds=".dll" 18295 need_lib_prefix=no 18296 library_names_spec='$libname${shared_ext} $libname.a' 18297 dynamic_linker='OS/2 ld.exe' 18298 shlibpath_var=LIBPATH 18299 ;; 18300 18301osf3* | osf4* | osf5*) 18302 version_type=osf 18303 need_lib_prefix=no 18304 need_version=no 18305 soname_spec='${libname}${release}${shared_ext}$major' 18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18307 shlibpath_var=LD_LIBRARY_PATH 18308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18310 ;; 18311 18312rdos*) 18313 dynamic_linker=no 18314 ;; 18315 18316solaris*) 18317 version_type=linux 18318 need_lib_prefix=no 18319 need_version=no 18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18321 soname_spec='${libname}${release}${shared_ext}$major' 18322 shlibpath_var=LD_LIBRARY_PATH 18323 shlibpath_overrides_runpath=yes 18324 hardcode_into_libs=yes 18325 # ldd complains unless libraries are executable 18326 postinstall_cmds='chmod +x $lib' 18327 ;; 18328 18329sunos4*) 18330 version_type=sunos 18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18333 shlibpath_var=LD_LIBRARY_PATH 18334 shlibpath_overrides_runpath=yes 18335 if test "$with_gnu_ld" = yes; then 18336 need_lib_prefix=no 18337 fi 18338 need_version=yes 18339 ;; 18340 18341sysv4 | sysv4.3*) 18342 version_type=linux 18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18344 soname_spec='${libname}${release}${shared_ext}$major' 18345 shlibpath_var=LD_LIBRARY_PATH 18346 case $host_vendor in 18347 sni) 18348 shlibpath_overrides_runpath=no 18349 need_lib_prefix=no 18350 export_dynamic_flag_spec='${wl}-Blargedynsym' 18351 runpath_var=LD_RUN_PATH 18352 ;; 18353 siemens) 18354 need_lib_prefix=no 18355 ;; 18356 motorola) 18357 need_lib_prefix=no 18358 need_version=no 18359 shlibpath_overrides_runpath=no 18360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18361 ;; 18362 esac 18363 ;; 18364 18365sysv4*MP*) 18366 if test -d /usr/nec ;then 18367 version_type=linux 18368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18369 soname_spec='$libname${shared_ext}.$major' 18370 shlibpath_var=LD_LIBRARY_PATH 18371 fi 18372 ;; 18373 18374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18375 version_type=freebsd-elf 18376 need_lib_prefix=no 18377 need_version=no 18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18379 soname_spec='${libname}${release}${shared_ext}$major' 18380 shlibpath_var=LD_LIBRARY_PATH 18381 hardcode_into_libs=yes 18382 if test "$with_gnu_ld" = yes; then 18383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18384 shlibpath_overrides_runpath=no 18385 else 18386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18387 shlibpath_overrides_runpath=yes 18388 case $host_os in 18389 sco3.2v5*) 18390 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18391 ;; 18392 esac 18393 fi 18394 sys_lib_dlsearch_path_spec='/usr/lib' 18395 ;; 18396 18397uts4*) 18398 version_type=linux 18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18400 soname_spec='${libname}${release}${shared_ext}$major' 18401 shlibpath_var=LD_LIBRARY_PATH 18402 ;; 18403 18404*) 18405 dynamic_linker=no 18406 ;; 18407esac 18408{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18409echo "${ECHO_T}$dynamic_linker" >&6; } 18410test "$dynamic_linker" = no && can_build_shared=no 18411 18412variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18413if test "$GCC" = yes; then 18414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18415fi 18416 18417{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18418echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18419hardcode_action_GCJ= 18420if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18421 test -n "$runpath_var_GCJ" || \ 18422 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18423 18424 # We can hardcode non-existant directories. 18425 if test "$hardcode_direct_GCJ" != no && 18426 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18427 # have to relink, otherwise we might link with an installed library 18428 # when we should be linking with a yet-to-be-installed one 18429 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18430 test "$hardcode_minus_L_GCJ" != no; then 18431 # Linking always hardcodes the temporary library directory. 18432 hardcode_action_GCJ=relink 18433 else 18434 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18435 hardcode_action_GCJ=immediate 18436 fi 18437else 18438 # We cannot hardcode anything, or else we can only hardcode existing 18439 # directories. 18440 hardcode_action_GCJ=unsupported 18441fi 18442{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18443echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18444 18445if test "$hardcode_action_GCJ" = relink; then 18446 # Fast installation is not supported 18447 enable_fast_install=no 18448elif test "$shlibpath_overrides_runpath" = yes || 18449 test "$enable_shared" = no; then 18450 # Fast installation is not necessary 18451 enable_fast_install=needless 18452fi 18453 18454 18455# The else clause should only fire when bootstrapping the 18456# libtool distribution, otherwise you forgot to ship ltmain.sh 18457# with your package, and you will get complaints that there are 18458# no rules to generate ltmain.sh. 18459if test -f "$ltmain"; then 18460 # See if we are running on zsh, and set the options which allow our commands through 18461 # without removal of \ escapes. 18462 if test -n "${ZSH_VERSION+set}" ; then 18463 setopt NO_GLOB_SUBST 18464 fi 18465 # Now quote all the things that may contain metacharacters while being 18466 # careful not to overquote the AC_SUBSTed values. We take copies of the 18467 # variables and quote the copies for generation of the libtool script. 18468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18469 SED SHELL STRIP \ 18470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18472 deplibs_check_method reload_flag reload_cmds need_locks \ 18473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18474 lt_cv_sys_global_symbol_to_c_name_address \ 18475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18476 old_postinstall_cmds old_postuninstall_cmds \ 18477 compiler_GCJ \ 18478 CC_GCJ \ 18479 LD_GCJ \ 18480 lt_prog_compiler_wl_GCJ \ 18481 lt_prog_compiler_pic_GCJ \ 18482 lt_prog_compiler_static_GCJ \ 18483 lt_prog_compiler_no_builtin_flag_GCJ \ 18484 export_dynamic_flag_spec_GCJ \ 18485 thread_safe_flag_spec_GCJ \ 18486 whole_archive_flag_spec_GCJ \ 18487 enable_shared_with_static_runtimes_GCJ \ 18488 old_archive_cmds_GCJ \ 18489 old_archive_from_new_cmds_GCJ \ 18490 predep_objects_GCJ \ 18491 postdep_objects_GCJ \ 18492 predeps_GCJ \ 18493 postdeps_GCJ \ 18494 compiler_lib_search_path_GCJ \ 18495 archive_cmds_GCJ \ 18496 archive_expsym_cmds_GCJ \ 18497 postinstall_cmds_GCJ \ 18498 postuninstall_cmds_GCJ \ 18499 old_archive_from_expsyms_cmds_GCJ \ 18500 allow_undefined_flag_GCJ \ 18501 no_undefined_flag_GCJ \ 18502 export_symbols_cmds_GCJ \ 18503 hardcode_libdir_flag_spec_GCJ \ 18504 hardcode_libdir_flag_spec_ld_GCJ \ 18505 hardcode_libdir_separator_GCJ \ 18506 hardcode_automatic_GCJ \ 18507 module_cmds_GCJ \ 18508 module_expsym_cmds_GCJ \ 18509 lt_cv_prog_compiler_c_o_GCJ \ 18510 fix_srcfile_path_GCJ \ 18511 exclude_expsyms_GCJ \ 18512 include_expsyms_GCJ; do 18513 18514 case $var in 18515 old_archive_cmds_GCJ | \ 18516 old_archive_from_new_cmds_GCJ | \ 18517 archive_cmds_GCJ | \ 18518 archive_expsym_cmds_GCJ | \ 18519 module_cmds_GCJ | \ 18520 module_expsym_cmds_GCJ | \ 18521 old_archive_from_expsyms_cmds_GCJ | \ 18522 export_symbols_cmds_GCJ | \ 18523 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18524 postinstall_cmds | postuninstall_cmds | \ 18525 old_postinstall_cmds | old_postuninstall_cmds | \ 18526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18527 # Double-quote double-evaled strings. 18528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18529 ;; 18530 *) 18531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18532 ;; 18533 esac 18534 done 18535 18536 case $lt_echo in 18537 *'\$0 --fallback-echo"') 18538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18539 ;; 18540 esac 18541 18542cfgfile="$ofile" 18543 18544 cat <<__EOF__ >> "$cfgfile" 18545# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18546 18547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18548 18549# Shell to use when invoking shell scripts. 18550SHELL=$lt_SHELL 18551 18552# Whether or not to build shared libraries. 18553build_libtool_libs=$enable_shared 18554 18555# Whether or not to build static libraries. 18556build_old_libs=$enable_static 18557 18558# Whether or not to add -lc for building shared libraries. 18559build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18560 18561# Whether or not to disallow shared libs when runtime libs are static 18562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18563 18564# Whether or not to optimize for fast installation. 18565fast_install=$enable_fast_install 18566 18567# The host system. 18568host_alias=$host_alias 18569host=$host 18570host_os=$host_os 18571 18572# The build system. 18573build_alias=$build_alias 18574build=$build 18575build_os=$build_os 18576 18577# An echo program that does not interpret backslashes. 18578echo=$lt_echo 18579 18580# The archiver. 18581AR=$lt_AR 18582AR_FLAGS=$lt_AR_FLAGS 18583 18584# A C compiler. 18585LTCC=$lt_LTCC 18586 18587# LTCC compiler flags. 18588LTCFLAGS=$lt_LTCFLAGS 18589 18590# A language-specific compiler. 18591CC=$lt_compiler_GCJ 18592 18593# Is the compiler the GNU C compiler? 18594with_gcc=$GCC_GCJ 18595 18596# An ERE matcher. 18597EGREP=$lt_EGREP 18598 18599# The linker used to build libraries. 18600LD=$lt_LD_GCJ 18601 18602# Whether we need hard or soft links. 18603LN_S=$lt_LN_S 18604 18605# A BSD-compatible nm program. 18606NM=$lt_NM 18607 18608# A symbol stripping program 18609STRIP=$lt_STRIP 18610 18611# Used to examine libraries when file_magic_cmd begins "file" 18612MAGIC_CMD=$MAGIC_CMD 18613 18614# Used on cygwin: DLL creation program. 18615DLLTOOL="$DLLTOOL" 18616 18617# Used on cygwin: object dumper. 18618OBJDUMP="$OBJDUMP" 18619 18620# Used on cygwin: assembler. 18621AS="$AS" 18622 18623# The name of the directory that contains temporary libtool files. 18624objdir=$objdir 18625 18626# How to create reloadable object files. 18627reload_flag=$lt_reload_flag 18628reload_cmds=$lt_reload_cmds 18629 18630# How to pass a linker flag through the compiler. 18631wl=$lt_lt_prog_compiler_wl_GCJ 18632 18633# Object file suffix (normally "o"). 18634objext="$ac_objext" 18635 18636# Old archive suffix (normally "a"). 18637libext="$libext" 18638 18639# Shared library suffix (normally ".so"). 18640shrext_cmds='$shrext_cmds' 18641 18642# Executable file suffix (normally ""). 18643exeext="$exeext" 18644 18645# Additional compiler flags for building library objects. 18646pic_flag=$lt_lt_prog_compiler_pic_GCJ 18647pic_mode=$pic_mode 18648 18649# What is the maximum length of a command? 18650max_cmd_len=$lt_cv_sys_max_cmd_len 18651 18652# Does compiler simultaneously support -c and -o options? 18653compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18654 18655# Must we lock files when doing compilation? 18656need_locks=$lt_need_locks 18657 18658# Do we need the lib prefix for modules? 18659need_lib_prefix=$need_lib_prefix 18660 18661# Do we need a version for libraries? 18662need_version=$need_version 18663 18664# Whether dlopen is supported. 18665dlopen_support=$enable_dlopen 18666 18667# Whether dlopen of programs is supported. 18668dlopen_self=$enable_dlopen_self 18669 18670# Whether dlopen of statically linked programs is supported. 18671dlopen_self_static=$enable_dlopen_self_static 18672 18673# Compiler flag to prevent dynamic linking. 18674link_static_flag=$lt_lt_prog_compiler_static_GCJ 18675 18676# Compiler flag to turn off builtin functions. 18677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18678 18679# Compiler flag to allow reflexive dlopens. 18680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18681 18682# Compiler flag to generate shared objects directly from archives. 18683whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18684 18685# Compiler flag to generate thread-safe objects. 18686thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18687 18688# Library versioning type. 18689version_type=$version_type 18690 18691# Format of library name prefix. 18692libname_spec=$lt_libname_spec 18693 18694# List of archive names. First name is the real one, the rest are links. 18695# The last name is the one that the linker finds with -lNAME. 18696library_names_spec=$lt_library_names_spec 18697 18698# The coded name of the library, if different from the real name. 18699soname_spec=$lt_soname_spec 18700 18701# Commands used to build and install an old-style archive. 18702RANLIB=$lt_RANLIB 18703old_archive_cmds=$lt_old_archive_cmds_GCJ 18704old_postinstall_cmds=$lt_old_postinstall_cmds 18705old_postuninstall_cmds=$lt_old_postuninstall_cmds 18706 18707# Create an old-style archive from a shared archive. 18708old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18709 18710# Create a temporary old-style archive to link instead of a shared archive. 18711old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18712 18713# Commands used to build and install a shared archive. 18714archive_cmds=$lt_archive_cmds_GCJ 18715archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18716postinstall_cmds=$lt_postinstall_cmds 18717postuninstall_cmds=$lt_postuninstall_cmds 18718 18719# Commands used to build a loadable module (assumed same as above if empty) 18720module_cmds=$lt_module_cmds_GCJ 18721module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18722 18723# Commands to strip libraries. 18724old_striplib=$lt_old_striplib 18725striplib=$lt_striplib 18726 18727# Dependencies to place before the objects being linked to create a 18728# shared library. 18729predep_objects=$lt_predep_objects_GCJ 18730 18731# Dependencies to place after the objects being linked to create a 18732# shared library. 18733postdep_objects=$lt_postdep_objects_GCJ 18734 18735# Dependencies to place before the objects being linked to create a 18736# shared library. 18737predeps=$lt_predeps_GCJ 18738 18739# Dependencies to place after the objects being linked to create a 18740# shared library. 18741postdeps=$lt_postdeps_GCJ 18742 18743# The library search path used internally by the compiler when linking 18744# a shared library. 18745compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18746 18747# Method to check whether dependent libraries are shared objects. 18748deplibs_check_method=$lt_deplibs_check_method 18749 18750# Command to use when deplibs_check_method == file_magic. 18751file_magic_cmd=$lt_file_magic_cmd 18752 18753# Flag that allows shared libraries with undefined symbols to be built. 18754allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18755 18756# Flag that forces no undefined symbols. 18757no_undefined_flag=$lt_no_undefined_flag_GCJ 18758 18759# Commands used to finish a libtool library installation in a directory. 18760finish_cmds=$lt_finish_cmds 18761 18762# Same as above, but a single script fragment to be evaled but not shown. 18763finish_eval=$lt_finish_eval 18764 18765# Take the output of nm and produce a listing of raw symbols and C names. 18766global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18767 18768# Transform the output of nm in a proper C declaration 18769global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18770 18771# Transform the output of nm in a C name address pair 18772global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18773 18774# This is the shared library runtime path variable. 18775runpath_var=$runpath_var 18776 18777# This is the shared library path variable. 18778shlibpath_var=$shlibpath_var 18779 18780# Is shlibpath searched before the hard-coded library search path? 18781shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18782 18783# How to hardcode a shared library path into an executable. 18784hardcode_action=$hardcode_action_GCJ 18785 18786# Whether we should hardcode library paths into libraries. 18787hardcode_into_libs=$hardcode_into_libs 18788 18789# Flag to hardcode \$libdir into a binary during linking. 18790# This must work even if \$libdir does not exist. 18791hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18792 18793# If ld is used when linking, flag to hardcode \$libdir into 18794# a binary during linking. This must work even if \$libdir does 18795# not exist. 18796hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18797 18798# Whether we need a single -rpath flag with a separated argument. 18799hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18800 18801# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18802# resulting binary. 18803hardcode_direct=$hardcode_direct_GCJ 18804 18805# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18806# resulting binary. 18807hardcode_minus_L=$hardcode_minus_L_GCJ 18808 18809# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18810# the resulting binary. 18811hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18812 18813# Set to yes if building a shared library automatically hardcodes DIR into the library 18814# and all subsequent libraries and executables linked against it. 18815hardcode_automatic=$hardcode_automatic_GCJ 18816 18817# Variables whose values should be saved in libtool wrapper scripts and 18818# restored at relink time. 18819variables_saved_for_relink="$variables_saved_for_relink" 18820 18821# Whether libtool must link a program against all its dependency libraries. 18822link_all_deplibs=$link_all_deplibs_GCJ 18823 18824# Compile-time system search path for libraries 18825sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18826 18827# Run-time system search path for libraries 18828sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18829 18830# Fix the shell variable \$srcfile for the compiler. 18831fix_srcfile_path=$lt_fix_srcfile_path 18832 18833# Set to yes if exported symbols are required. 18834always_export_symbols=$always_export_symbols_GCJ 18835 18836# The commands to list exported symbols. 18837export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18838 18839# The commands to extract the exported symbol list from a shared archive. 18840extract_expsyms_cmds=$lt_extract_expsyms_cmds 18841 18842# Symbols that should not be listed in the preloaded symbols. 18843exclude_expsyms=$lt_exclude_expsyms_GCJ 18844 18845# Symbols that must always be exported. 18846include_expsyms=$lt_include_expsyms_GCJ 18847 18848# ### END LIBTOOL TAG CONFIG: $tagname 18849 18850__EOF__ 18851 18852 18853else 18854 # If there is no Makefile yet, we rely on a make rule to execute 18855 # `config.status --recheck' to rerun these tests and create the 18856 # libtool script then. 18857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18858 if test -f "$ltmain_in"; then 18859 test -f Makefile && make "$ltmain" 18860 fi 18861fi 18862 18863 18864ac_ext=c 18865ac_cpp='$CPP $CPPFLAGS' 18866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18868ac_compiler_gnu=$ac_cv_c_compiler_gnu 18869 18870CC="$lt_save_CC" 18871 18872 else 18873 tagname="" 18874 fi 18875 ;; 18876 18877 RC) 18878 18879 18880# Source file extension for RC test sources. 18881ac_ext=rc 18882 18883# Object file extension for compiled RC test sources. 18884objext=o 18885objext_RC=$objext 18886 18887# Code to be used in simple compile tests 18888lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18889 18890# Code to be used in simple link tests 18891lt_simple_link_test_code="$lt_simple_compile_test_code" 18892 18893# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18894 18895# If no C compiler was specified, use CC. 18896LTCC=${LTCC-"$CC"} 18897 18898# If no C compiler flags were specified, use CFLAGS. 18899LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18900 18901# Allow CC to be a program name with arguments. 18902compiler=$CC 18903 18904 18905# save warnings/boilerplate of simple test code 18906ac_outfile=conftest.$ac_objext 18907echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18908eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18909_lt_compiler_boilerplate=`cat conftest.err` 18910$rm conftest* 18911 18912ac_outfile=conftest.$ac_objext 18913echo "$lt_simple_link_test_code" >conftest.$ac_ext 18914eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18915_lt_linker_boilerplate=`cat conftest.err` 18916$rm conftest* 18917 18918 18919# Allow CC to be a program name with arguments. 18920lt_save_CC="$CC" 18921CC=${RC-"windres"} 18922compiler=$CC 18923compiler_RC=$CC 18924for cc_temp in $compiler""; do 18925 case $cc_temp in 18926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18928 \-*) ;; 18929 *) break;; 18930 esac 18931done 18932cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18933 18934lt_cv_prog_compiler_c_o_RC=yes 18935 18936# The else clause should only fire when bootstrapping the 18937# libtool distribution, otherwise you forgot to ship ltmain.sh 18938# with your package, and you will get complaints that there are 18939# no rules to generate ltmain.sh. 18940if test -f "$ltmain"; then 18941 # See if we are running on zsh, and set the options which allow our commands through 18942 # without removal of \ escapes. 18943 if test -n "${ZSH_VERSION+set}" ; then 18944 setopt NO_GLOB_SUBST 18945 fi 18946 # Now quote all the things that may contain metacharacters while being 18947 # careful not to overquote the AC_SUBSTed values. We take copies of the 18948 # variables and quote the copies for generation of the libtool script. 18949 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18950 SED SHELL STRIP \ 18951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18953 deplibs_check_method reload_flag reload_cmds need_locks \ 18954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18955 lt_cv_sys_global_symbol_to_c_name_address \ 18956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18957 old_postinstall_cmds old_postuninstall_cmds \ 18958 compiler_RC \ 18959 CC_RC \ 18960 LD_RC \ 18961 lt_prog_compiler_wl_RC \ 18962 lt_prog_compiler_pic_RC \ 18963 lt_prog_compiler_static_RC \ 18964 lt_prog_compiler_no_builtin_flag_RC \ 18965 export_dynamic_flag_spec_RC \ 18966 thread_safe_flag_spec_RC \ 18967 whole_archive_flag_spec_RC \ 18968 enable_shared_with_static_runtimes_RC \ 18969 old_archive_cmds_RC \ 18970 old_archive_from_new_cmds_RC \ 18971 predep_objects_RC \ 18972 postdep_objects_RC \ 18973 predeps_RC \ 18974 postdeps_RC \ 18975 compiler_lib_search_path_RC \ 18976 archive_cmds_RC \ 18977 archive_expsym_cmds_RC \ 18978 postinstall_cmds_RC \ 18979 postuninstall_cmds_RC \ 18980 old_archive_from_expsyms_cmds_RC \ 18981 allow_undefined_flag_RC \ 18982 no_undefined_flag_RC \ 18983 export_symbols_cmds_RC \ 18984 hardcode_libdir_flag_spec_RC \ 18985 hardcode_libdir_flag_spec_ld_RC \ 18986 hardcode_libdir_separator_RC \ 18987 hardcode_automatic_RC \ 18988 module_cmds_RC \ 18989 module_expsym_cmds_RC \ 18990 lt_cv_prog_compiler_c_o_RC \ 18991 fix_srcfile_path_RC \ 18992 exclude_expsyms_RC \ 18993 include_expsyms_RC; do 18994 18995 case $var in 18996 old_archive_cmds_RC | \ 18997 old_archive_from_new_cmds_RC | \ 18998 archive_cmds_RC | \ 18999 archive_expsym_cmds_RC | \ 19000 module_cmds_RC | \ 19001 module_expsym_cmds_RC | \ 19002 old_archive_from_expsyms_cmds_RC | \ 19003 export_symbols_cmds_RC | \ 19004 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19005 postinstall_cmds | postuninstall_cmds | \ 19006 old_postinstall_cmds | old_postuninstall_cmds | \ 19007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19008 # Double-quote double-evaled strings. 19009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19010 ;; 19011 *) 19012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19013 ;; 19014 esac 19015 done 19016 19017 case $lt_echo in 19018 *'\$0 --fallback-echo"') 19019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19020 ;; 19021 esac 19022 19023cfgfile="$ofile" 19024 19025 cat <<__EOF__ >> "$cfgfile" 19026# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19027 19028# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19029 19030# Shell to use when invoking shell scripts. 19031SHELL=$lt_SHELL 19032 19033# Whether or not to build shared libraries. 19034build_libtool_libs=$enable_shared 19035 19036# Whether or not to build static libraries. 19037build_old_libs=$enable_static 19038 19039# Whether or not to add -lc for building shared libraries. 19040build_libtool_need_lc=$archive_cmds_need_lc_RC 19041 19042# Whether or not to disallow shared libs when runtime libs are static 19043allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19044 19045# Whether or not to optimize for fast installation. 19046fast_install=$enable_fast_install 19047 19048# The host system. 19049host_alias=$host_alias 19050host=$host 19051host_os=$host_os 19052 19053# The build system. 19054build_alias=$build_alias 19055build=$build 19056build_os=$build_os 19057 19058# An echo program that does not interpret backslashes. 19059echo=$lt_echo 19060 19061# The archiver. 19062AR=$lt_AR 19063AR_FLAGS=$lt_AR_FLAGS 19064 19065# A C compiler. 19066LTCC=$lt_LTCC 19067 19068# LTCC compiler flags. 19069LTCFLAGS=$lt_LTCFLAGS 19070 19071# A language-specific compiler. 19072CC=$lt_compiler_RC 19073 19074# Is the compiler the GNU C compiler? 19075with_gcc=$GCC_RC 19076 19077# An ERE matcher. 19078EGREP=$lt_EGREP 19079 19080# The linker used to build libraries. 19081LD=$lt_LD_RC 19082 19083# Whether we need hard or soft links. 19084LN_S=$lt_LN_S 19085 19086# A BSD-compatible nm program. 19087NM=$lt_NM 19088 19089# A symbol stripping program 19090STRIP=$lt_STRIP 19091 19092# Used to examine libraries when file_magic_cmd begins "file" 19093MAGIC_CMD=$MAGIC_CMD 19094 19095# Used on cygwin: DLL creation program. 19096DLLTOOL="$DLLTOOL" 19097 19098# Used on cygwin: object dumper. 19099OBJDUMP="$OBJDUMP" 19100 19101# Used on cygwin: assembler. 19102AS="$AS" 19103 19104# The name of the directory that contains temporary libtool files. 19105objdir=$objdir 19106 19107# How to create reloadable object files. 19108reload_flag=$lt_reload_flag 19109reload_cmds=$lt_reload_cmds 19110 19111# How to pass a linker flag through the compiler. 19112wl=$lt_lt_prog_compiler_wl_RC 19113 19114# Object file suffix (normally "o"). 19115objext="$ac_objext" 19116 19117# Old archive suffix (normally "a"). 19118libext="$libext" 19119 19120# Shared library suffix (normally ".so"). 19121shrext_cmds='$shrext_cmds' 19122 19123# Executable file suffix (normally ""). 19124exeext="$exeext" 19125 19126# Additional compiler flags for building library objects. 19127pic_flag=$lt_lt_prog_compiler_pic_RC 19128pic_mode=$pic_mode 19129 19130# What is the maximum length of a command? 19131max_cmd_len=$lt_cv_sys_max_cmd_len 19132 19133# Does compiler simultaneously support -c and -o options? 19134compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19135 19136# Must we lock files when doing compilation? 19137need_locks=$lt_need_locks 19138 19139# Do we need the lib prefix for modules? 19140need_lib_prefix=$need_lib_prefix 19141 19142# Do we need a version for libraries? 19143need_version=$need_version 19144 19145# Whether dlopen is supported. 19146dlopen_support=$enable_dlopen 19147 19148# Whether dlopen of programs is supported. 19149dlopen_self=$enable_dlopen_self 19150 19151# Whether dlopen of statically linked programs is supported. 19152dlopen_self_static=$enable_dlopen_self_static 19153 19154# Compiler flag to prevent dynamic linking. 19155link_static_flag=$lt_lt_prog_compiler_static_RC 19156 19157# Compiler flag to turn off builtin functions. 19158no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19159 19160# Compiler flag to allow reflexive dlopens. 19161export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19162 19163# Compiler flag to generate shared objects directly from archives. 19164whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19165 19166# Compiler flag to generate thread-safe objects. 19167thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19168 19169# Library versioning type. 19170version_type=$version_type 19171 19172# Format of library name prefix. 19173libname_spec=$lt_libname_spec 19174 19175# List of archive names. First name is the real one, the rest are links. 19176# The last name is the one that the linker finds with -lNAME. 19177library_names_spec=$lt_library_names_spec 19178 19179# The coded name of the library, if different from the real name. 19180soname_spec=$lt_soname_spec 19181 19182# Commands used to build and install an old-style archive. 19183RANLIB=$lt_RANLIB 19184old_archive_cmds=$lt_old_archive_cmds_RC 19185old_postinstall_cmds=$lt_old_postinstall_cmds 19186old_postuninstall_cmds=$lt_old_postuninstall_cmds 19187 19188# Create an old-style archive from a shared archive. 19189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19190 19191# Create a temporary old-style archive to link instead of a shared archive. 19192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19193 19194# Commands used to build and install a shared archive. 19195archive_cmds=$lt_archive_cmds_RC 19196archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19197postinstall_cmds=$lt_postinstall_cmds 19198postuninstall_cmds=$lt_postuninstall_cmds 19199 19200# Commands used to build a loadable module (assumed same as above if empty) 19201module_cmds=$lt_module_cmds_RC 19202module_expsym_cmds=$lt_module_expsym_cmds_RC 19203 19204# Commands to strip libraries. 19205old_striplib=$lt_old_striplib 19206striplib=$lt_striplib 19207 19208# Dependencies to place before the objects being linked to create a 19209# shared library. 19210predep_objects=$lt_predep_objects_RC 19211 19212# Dependencies to place after the objects being linked to create a 19213# shared library. 19214postdep_objects=$lt_postdep_objects_RC 19215 19216# Dependencies to place before the objects being linked to create a 19217# shared library. 19218predeps=$lt_predeps_RC 19219 19220# Dependencies to place after the objects being linked to create a 19221# shared library. 19222postdeps=$lt_postdeps_RC 19223 19224# The library search path used internally by the compiler when linking 19225# a shared library. 19226compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19227 19228# Method to check whether dependent libraries are shared objects. 19229deplibs_check_method=$lt_deplibs_check_method 19230 19231# Command to use when deplibs_check_method == file_magic. 19232file_magic_cmd=$lt_file_magic_cmd 19233 19234# Flag that allows shared libraries with undefined symbols to be built. 19235allow_undefined_flag=$lt_allow_undefined_flag_RC 19236 19237# Flag that forces no undefined symbols. 19238no_undefined_flag=$lt_no_undefined_flag_RC 19239 19240# Commands used to finish a libtool library installation in a directory. 19241finish_cmds=$lt_finish_cmds 19242 19243# Same as above, but a single script fragment to be evaled but not shown. 19244finish_eval=$lt_finish_eval 19245 19246# Take the output of nm and produce a listing of raw symbols and C names. 19247global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19248 19249# Transform the output of nm in a proper C declaration 19250global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19251 19252# Transform the output of nm in a C name address pair 19253global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19254 19255# This is the shared library runtime path variable. 19256runpath_var=$runpath_var 19257 19258# This is the shared library path variable. 19259shlibpath_var=$shlibpath_var 19260 19261# Is shlibpath searched before the hard-coded library search path? 19262shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19263 19264# How to hardcode a shared library path into an executable. 19265hardcode_action=$hardcode_action_RC 19266 19267# Whether we should hardcode library paths into libraries. 19268hardcode_into_libs=$hardcode_into_libs 19269 19270# Flag to hardcode \$libdir into a binary during linking. 19271# This must work even if \$libdir does not exist. 19272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19273 19274# If ld is used when linking, flag to hardcode \$libdir into 19275# a binary during linking. This must work even if \$libdir does 19276# not exist. 19277hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19278 19279# Whether we need a single -rpath flag with a separated argument. 19280hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19281 19282# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19283# resulting binary. 19284hardcode_direct=$hardcode_direct_RC 19285 19286# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19287# resulting binary. 19288hardcode_minus_L=$hardcode_minus_L_RC 19289 19290# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19291# the resulting binary. 19292hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19293 19294# Set to yes if building a shared library automatically hardcodes DIR into the library 19295# and all subsequent libraries and executables linked against it. 19296hardcode_automatic=$hardcode_automatic_RC 19297 19298# Variables whose values should be saved in libtool wrapper scripts and 19299# restored at relink time. 19300variables_saved_for_relink="$variables_saved_for_relink" 19301 19302# Whether libtool must link a program against all its dependency libraries. 19303link_all_deplibs=$link_all_deplibs_RC 19304 19305# Compile-time system search path for libraries 19306sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19307 19308# Run-time system search path for libraries 19309sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19310 19311# Fix the shell variable \$srcfile for the compiler. 19312fix_srcfile_path=$lt_fix_srcfile_path 19313 19314# Set to yes if exported symbols are required. 19315always_export_symbols=$always_export_symbols_RC 19316 19317# The commands to list exported symbols. 19318export_symbols_cmds=$lt_export_symbols_cmds_RC 19319 19320# The commands to extract the exported symbol list from a shared archive. 19321extract_expsyms_cmds=$lt_extract_expsyms_cmds 19322 19323# Symbols that should not be listed in the preloaded symbols. 19324exclude_expsyms=$lt_exclude_expsyms_RC 19325 19326# Symbols that must always be exported. 19327include_expsyms=$lt_include_expsyms_RC 19328 19329# ### END LIBTOOL TAG CONFIG: $tagname 19330 19331__EOF__ 19332 19333 19334else 19335 # If there is no Makefile yet, we rely on a make rule to execute 19336 # `config.status --recheck' to rerun these tests and create the 19337 # libtool script then. 19338 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19339 if test -f "$ltmain_in"; then 19340 test -f Makefile && make "$ltmain" 19341 fi 19342fi 19343 19344 19345ac_ext=c 19346ac_cpp='$CPP $CPPFLAGS' 19347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19349ac_compiler_gnu=$ac_cv_c_compiler_gnu 19350 19351CC="$lt_save_CC" 19352 19353 ;; 19354 19355 *) 19356 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19357echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19358 { (exit 1); exit 1; }; } 19359 ;; 19360 esac 19361 19362 # Append the new tag name to the list of available tags. 19363 if test -n "$tagname" ; then 19364 available_tags="$available_tags $tagname" 19365 fi 19366 fi 19367 done 19368 IFS="$lt_save_ifs" 19369 19370 # Now substitute the updated list of available tags. 19371 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19372 mv "${ofile}T" "$ofile" 19373 chmod +x "$ofile" 19374 else 19375 rm -f "${ofile}T" 19376 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19377echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19378 { (exit 1); exit 1; }; } 19379 fi 19380fi 19381 19382 19383 19384# This can be used to rebuild libtool when needed 19385LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19386 19387# Always use our own libtool. 19388LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19389 19390# Prevent multiple expansion 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19414 if test -n "$ac_tool_prefix"; then 19415 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19416set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19419if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19420 echo $ECHO_N "(cached) $ECHO_C" >&6 19421else 19422 case $PKG_CONFIG in 19423 [\\/]* | ?:[\\/]*) 19424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19425 ;; 19426 *) 19427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19428for as_dir in $PATH 19429do 19430 IFS=$as_save_IFS 19431 test -z "$as_dir" && as_dir=. 19432 for ac_exec_ext in '' $ac_executable_extensions; do 19433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19436 break 2 19437 fi 19438done 19439done 19440IFS=$as_save_IFS 19441 19442 ;; 19443esac 19444fi 19445PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19446if test -n "$PKG_CONFIG"; then 19447 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19448echo "${ECHO_T}$PKG_CONFIG" >&6; } 19449else 19450 { echo "$as_me:$LINENO: result: no" >&5 19451echo "${ECHO_T}no" >&6; } 19452fi 19453 19454 19455fi 19456if test -z "$ac_cv_path_PKG_CONFIG"; then 19457 ac_pt_PKG_CONFIG=$PKG_CONFIG 19458 # Extract the first word of "pkg-config", so it can be a program name with args. 19459set dummy pkg-config; ac_word=$2 19460{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19462if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19463 echo $ECHO_N "(cached) $ECHO_C" >&6 19464else 19465 case $ac_pt_PKG_CONFIG in 19466 [\\/]* | ?:[\\/]*) 19467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19468 ;; 19469 *) 19470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19471for as_dir in $PATH 19472do 19473 IFS=$as_save_IFS 19474 test -z "$as_dir" && as_dir=. 19475 for ac_exec_ext in '' $ac_executable_extensions; do 19476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19477 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19479 break 2 19480 fi 19481done 19482done 19483IFS=$as_save_IFS 19484 19485 ;; 19486esac 19487fi 19488ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19489if test -n "$ac_pt_PKG_CONFIG"; then 19490 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19491echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19492else 19493 { echo "$as_me:$LINENO: result: no" >&5 19494echo "${ECHO_T}no" >&6; } 19495fi 19496 19497 if test "x$ac_pt_PKG_CONFIG" = x; then 19498 PKG_CONFIG="" 19499 else 19500 case $cross_compiling:$ac_tool_warned in 19501yes:) 19502{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19503whose name does not start with the host triplet. If you think this 19504configuration is useful to you, please write to autoconf@gnu.org." >&5 19505echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19506whose name does not start with the host triplet. If you think this 19507configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19508ac_tool_warned=yes ;; 19509esac 19510 PKG_CONFIG=$ac_pt_PKG_CONFIG 19511 fi 19512else 19513 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19514fi 19515 19516fi 19517if test -n "$PKG_CONFIG"; then 19518 _pkg_min_version=0.9.0 19519 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19520echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19521 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19522 { echo "$as_me:$LINENO: result: yes" >&5 19523echo "${ECHO_T}yes" >&6; } 19524 else 19525 { echo "$as_me:$LINENO: result: no" >&5 19526echo "${ECHO_T}no" >&6; } 19527 PKG_CONFIG="" 19528 fi 19529 19530fi 19531 19532# Look for headers 19533 19534 19535 19536for ac_header in endian.h poll.h sys/poll.h 19537do 19538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19540 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19543 echo $ECHO_N "(cached) $ECHO_C" >&6 19544fi 19545ac_res=`eval echo '${'$as_ac_Header'}'` 19546 { echo "$as_me:$LINENO: result: $ac_res" >&5 19547echo "${ECHO_T}$ac_res" >&6; } 19548else 19549 # Is the header compilable? 19550{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19552cat >conftest.$ac_ext <<_ACEOF 19553/* confdefs.h. */ 19554_ACEOF 19555cat confdefs.h >>conftest.$ac_ext 19556cat >>conftest.$ac_ext <<_ACEOF 19557/* end confdefs.h. */ 19558$ac_includes_default 19559#include <$ac_header> 19560_ACEOF 19561rm -f conftest.$ac_objext 19562if { (ac_try="$ac_compile" 19563case "(($ac_try" in 19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19565 *) ac_try_echo=$ac_try;; 19566esac 19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19568 (eval "$ac_compile") 2>conftest.er1 19569 ac_status=$? 19570 grep -v '^ *+' conftest.er1 >conftest.err 19571 rm -f conftest.er1 19572 cat conftest.err >&5 19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19574 (exit $ac_status); } && { 19575 test -z "$ac_c_werror_flag" || 19576 test ! -s conftest.err 19577 } && test -s conftest.$ac_objext; then 19578 ac_header_compiler=yes 19579else 19580 echo "$as_me: failed program was:" >&5 19581sed 's/^/| /' conftest.$ac_ext >&5 19582 19583 ac_header_compiler=no 19584fi 19585 19586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19587{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19588echo "${ECHO_T}$ac_header_compiler" >&6; } 19589 19590# Is the header present? 19591{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19593cat >conftest.$ac_ext <<_ACEOF 19594/* confdefs.h. */ 19595_ACEOF 19596cat confdefs.h >>conftest.$ac_ext 19597cat >>conftest.$ac_ext <<_ACEOF 19598/* end confdefs.h. */ 19599#include <$ac_header> 19600_ACEOF 19601if { (ac_try="$ac_cpp conftest.$ac_ext" 19602case "(($ac_try" in 19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19604 *) ac_try_echo=$ac_try;; 19605esac 19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19608 ac_status=$? 19609 grep -v '^ *+' conftest.er1 >conftest.err 19610 rm -f conftest.er1 19611 cat conftest.err >&5 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19613 (exit $ac_status); } >/dev/null && { 19614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19615 test ! -s conftest.err 19616 }; then 19617 ac_header_preproc=yes 19618else 19619 echo "$as_me: failed program was:" >&5 19620sed 's/^/| /' conftest.$ac_ext >&5 19621 19622 ac_header_preproc=no 19623fi 19624 19625rm -f conftest.err conftest.$ac_ext 19626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19627echo "${ECHO_T}$ac_header_preproc" >&6; } 19628 19629# So? What about this header? 19630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19631 yes:no: ) 19632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19636 ac_header_preproc=yes 19637 ;; 19638 no:yes:* ) 19639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19646echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19651 ( cat <<\_ASBOX 19652## ---------------------------------------------------------------------- ## 19653## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 19654## ---------------------------------------------------------------------- ## 19655_ASBOX 19656 ) | sed "s/^/$as_me: WARNING: /" >&2 19657 ;; 19658esac 19659{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19662 echo $ECHO_N "(cached) $ECHO_C" >&6 19663else 19664 eval "$as_ac_Header=\$ac_header_preproc" 19665fi 19666ac_res=`eval echo '${'$as_ac_Header'}'` 19667 { echo "$as_me:$LINENO: result: $ac_res" >&5 19668echo "${ECHO_T}$ac_res" >&6; } 19669 19670fi 19671if test `eval echo '${'$as_ac_Header'}'` = yes; then 19672 cat >>confdefs.h <<_ACEOF 19673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19674_ACEOF 19675 19676fi 19677 19678done 19679 19680 19681for ac_func in poll 19682do 19683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19684{ echo "$as_me:$LINENO: checking for $ac_func" >&5 19685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19687 echo $ECHO_N "(cached) $ECHO_C" >&6 19688else 19689 cat >conftest.$ac_ext <<_ACEOF 19690/* confdefs.h. */ 19691_ACEOF 19692cat confdefs.h >>conftest.$ac_ext 19693cat >>conftest.$ac_ext <<_ACEOF 19694/* end confdefs.h. */ 19695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19696 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19697#define $ac_func innocuous_$ac_func 19698 19699/* System header to define __stub macros and hopefully few prototypes, 19700 which can conflict with char $ac_func (); below. 19701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19702 <limits.h> exists even on freestanding compilers. */ 19703 19704#ifdef __STDC__ 19705# include <limits.h> 19706#else 19707# include <assert.h> 19708#endif 19709 19710#undef $ac_func 19711 19712/* Override any GCC internal prototype to avoid an error. 19713 Use char because int might match the return type of a GCC 19714 builtin and then its argument prototype would still apply. */ 19715#ifdef __cplusplus 19716extern "C" 19717#endif 19718char $ac_func (); 19719/* The GNU C library defines this for functions which it implements 19720 to always fail with ENOSYS. Some functions are actually named 19721 something starting with __ and the normal name is an alias. */ 19722#if defined __stub_$ac_func || defined __stub___$ac_func 19723choke me 19724#endif 19725 19726int 19727main () 19728{ 19729return $ac_func (); 19730 ; 19731 return 0; 19732} 19733_ACEOF 19734rm -f conftest.$ac_objext conftest$ac_exeext 19735if { (ac_try="$ac_link" 19736case "(($ac_try" in 19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19738 *) ac_try_echo=$ac_try;; 19739esac 19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19741 (eval "$ac_link") 2>conftest.er1 19742 ac_status=$? 19743 grep -v '^ *+' conftest.er1 >conftest.err 19744 rm -f conftest.er1 19745 cat conftest.err >&5 19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19747 (exit $ac_status); } && { 19748 test -z "$ac_c_werror_flag" || 19749 test ! -s conftest.err 19750 } && test -s conftest$ac_exeext && 19751 $as_test_x conftest$ac_exeext; then 19752 eval "$as_ac_var=yes" 19753else 19754 echo "$as_me: failed program was:" >&5 19755sed 's/^/| /' conftest.$ac_ext >&5 19756 19757 eval "$as_ac_var=no" 19758fi 19759 19760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19761 conftest$ac_exeext conftest.$ac_ext 19762fi 19763ac_res=`eval echo '${'$as_ac_var'}'` 19764 { echo "$as_me:$LINENO: result: $ac_res" >&5 19765echo "${ECHO_T}$ac_res" >&6; } 19766if test `eval echo '${'$as_ac_var'}'` = yes; then 19767 cat >>confdefs.h <<_ACEOF 19768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19769_ACEOF 19770 19771fi 19772done 19773 19774 19775 19776 19777DEFAULT_ENCODINGSDIR=${libdir}/X11/fonts/encodings 19778 19779# Check whether --with-encodingsdir was given. 19780if test "${with_encodingsdir+set}" = set; then 19781 withval=$with_encodingsdir; ENCODINGSDIR="$withval" 19782else 19783 ENCODINGSDIR="$DEFAULT_ENCODINGSDIR" 19784fi 19785 19786 19787 19788# 19789# select libraries to include 19790# 19791 19792XFONT_FONTFILE=no 19793 19794# 19795# Scalable fonts in files: 19796# FreeType 19797# IBM Type1 rasterizer 19798# Bitstream Speedo rasterizer 19799# 19800# Check whether --enable-freetype was given. 19801if test "${enable_freetype+set}" = set; then 19802 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 19803else 19804 XFONT_FREETYPE=yes 19805fi 19806 19807 if test x$XFONT_FREETYPE = xyes; then 19808 XFONT_FREETYPE_TRUE= 19809 XFONT_FREETYPE_FALSE='#' 19810else 19811 XFONT_FREETYPE_TRUE='#' 19812 XFONT_FREETYPE_FALSE= 19813fi 19814 19815if test x$XFONT_FREETYPE = xyes; then 19816 19817cat >>confdefs.h <<\_ACEOF 19818#define XFONT_FREETYPE 1 19819_ACEOF 19820 19821 19822# Check whether --with-freetype-config was given. 19823if test "${with_freetype_config+set}" = set; then 19824 withval=$with_freetype_config; freetype_config=$withval 19825else 19826 freetype_config=auto 19827fi 19828 19829 19830 if test "$freetype_config" = "auto" ; then 19831 19832pkg_failed=no 19833{ echo "$as_me:$LINENO: checking for FREETYPE" >&5 19834echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6; } 19835 19836if test -n "$FREETYPE_CFLAGS"; then 19837 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 19838 elif test -n "$PKG_CONFIG"; then 19839 if test -n "$PKG_CONFIG" && \ 19840 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 19841 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 19842 ac_status=$? 19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19844 (exit $ac_status); }; then 19845 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 19846else 19847 pkg_failed=yes 19848fi 19849 else 19850 pkg_failed=untried 19851fi 19852if test -n "$FREETYPE_LIBS"; then 19853 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 19854 elif test -n "$PKG_CONFIG"; then 19855 if test -n "$PKG_CONFIG" && \ 19856 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 19857 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 19858 ac_status=$? 19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19860 (exit $ac_status); }; then 19861 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 19862else 19863 pkg_failed=yes 19864fi 19865 else 19866 pkg_failed=untried 19867fi 19868 19869 19870 19871if test $pkg_failed = yes; then 19872 19873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19874 _pkg_short_errors_supported=yes 19875else 19876 _pkg_short_errors_supported=no 19877fi 19878 if test $_pkg_short_errors_supported = yes; then 19879 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 19880 else 19881 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 19882 fi 19883 # Put the nasty error message in config.log where it belongs 19884 echo "$FREETYPE_PKG_ERRORS" >&5 19885 19886 { echo "$as_me:$LINENO: result: no" >&5 19887echo "${ECHO_T}no" >&6; } 19888 freetype_config=yes 19889elif test $pkg_failed = untried; then 19890 freetype_config=yes 19891else 19892 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 19893 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 19894 { echo "$as_me:$LINENO: result: yes" >&5 19895echo "${ECHO_T}yes" >&6; } 19896 freetype_config=no 19897fi 19898 fi 19899 19900 if test "$freetype_config" = "yes"; then 19901 # Extract the first word of "freetype-config", so it can be a program name with args. 19902set dummy freetype-config; ac_word=$2 19903{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19905if test "${ac_cv_path_ft_config+set}" = set; then 19906 echo $ECHO_N "(cached) $ECHO_C" >&6 19907else 19908 case $ft_config in 19909 [\\/]* | ?:[\\/]*) 19910 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 19911 ;; 19912 *) 19913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19914for as_dir in $PATH 19915do 19916 IFS=$as_save_IFS 19917 test -z "$as_dir" && as_dir=. 19918 for ac_exec_ext in '' $ac_executable_extensions; do 19919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19920 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext" 19921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19922 break 2 19923 fi 19924done 19925done 19926IFS=$as_save_IFS 19927 19928 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 19929 ;; 19930esac 19931fi 19932ft_config=$ac_cv_path_ft_config 19933if test -n "$ft_config"; then 19934 { echo "$as_me:$LINENO: result: $ft_config" >&5 19935echo "${ECHO_T}$ft_config" >&6; } 19936else 19937 { echo "$as_me:$LINENO: result: no" >&5 19938echo "${ECHO_T}no" >&6; } 19939fi 19940 19941 19942 if test "$ft_config" = "no"; then 19943 { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5 19944echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;} 19945 { (exit 1); exit 1; }; } 19946 fi 19947 else 19948 ft_config="$freetype_config" 19949 fi 19950 19951 if test "$freetype_config" != "no"; then 19952 FREETYPE_CFLAGS="`$ft_config --cflags`" 19953 FREETYPE_LIBS="`$ft_config --libs`" 19954 fi 19955 FREETYPE_REQUIRES="freetype2" 19956 XFONT_FONTFILE=yes 19957else 19958 FREETYPE_CFLAGS="" 19959 FREETYPE_LIBS="" 19960 FREETYPE_REQUIRES="" 19961fi 19962 19963 19964 19965 19966# Check whether --enable-type1 was given. 19967if test "${enable_type1+set}" = set; then 19968 enableval=$enable_type1; XFONT_TYPE1=$enableval 19969else 19970 XFONT_TYPE1=yes 19971fi 19972 19973if test "x$XFONT_TYPE1" = xyes; then 19974 19975cat >>confdefs.h <<\_ACEOF 19976#define XFONT_TYPE1 1 19977_ACEOF 19978 19979 XFONT_FONTFILE=yes 19980fi 19981 if test "x$XFONT_TYPE1" = xyes ; then 19982 XFONT_TYPE1_TRUE= 19983 XFONT_TYPE1_FALSE='#' 19984else 19985 XFONT_TYPE1_TRUE='#' 19986 XFONT_TYPE1_FALSE= 19987fi 19988 19989 19990# Check whether --enable-speedo was given. 19991if test "${enable_speedo+set}" = set; then 19992 enableval=$enable_speedo; XFONT_SPEEDO=$enableval 19993else 19994 XFONT_SPEEDO=yes 19995fi 19996 19997 if test "x$XFONT_SPEEDO" = xyes ; then 19998 XFONT_SPEEDO_TRUE= 19999 XFONT_SPEEDO_FALSE='#' 20000else 20001 XFONT_SPEEDO_TRUE='#' 20002 XFONT_SPEEDO_FALSE= 20003fi 20004 20005if test "x$XFONT_SPEEDO" = xyes; then 20006 20007cat >>confdefs.h <<\_ACEOF 20008#define XFONT_SPEEDO 1 20009_ACEOF 20010 20011 XFONT_FONTFILE=yes 20012fi 20013 20014# 20015# Bitmap fonts in files: 20016# Builtins (gzipped pcf format in .text segment) 20017# PCF 20018# BDF 20019# SNF 20020# 20021 20022 20023cat >>confdefs.h <<\_ACEOF 20024#define X_GZIP_FONT_COMPRESSION 1 20025_ACEOF 20026 20027X_GZIP_FONT_COMPRESSION=1 20028 20029 20030# Check whether --enable-builtins was given. 20031if test "${enable_builtins+set}" = set; then 20032 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 20033else 20034 XFONT_BUILTINS=yes 20035fi 20036 20037 if test "x$XFONT_BUILTINS" = xyes ; then 20038 XFONT_BUILTINS_TRUE= 20039 XFONT_BUILTINS_FALSE='#' 20040else 20041 XFONT_BUILTINS_TRUE='#' 20042 XFONT_BUILTINS_FALSE= 20043fi 20044 20045if test "x$XFONT_BUILTINS" = xyes; then 20046 20047cat >>confdefs.h <<\_ACEOF 20048#define XFONT_BUILTINS 1 20049_ACEOF 20050 20051 XFONT_BITMAP=yes 20052fi 20053 20054# Check whether --enable-pcfformat was given. 20055if test "${enable_pcfformat+set}" = set; then 20056 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 20057else 20058 XFONT_PCFFORMAT=yes 20059fi 20060 20061 if test "x$XFONT_PCFFORMAT" = xyes; then 20062 XFONT_PCFFORMAT_TRUE= 20063 XFONT_PCFFORMAT_FALSE='#' 20064else 20065 XFONT_PCFFORMAT_TRUE='#' 20066 XFONT_PCFFORMAT_FALSE= 20067fi 20068 20069if test "x$XFONT_PCFFORMAT" = xyes; then 20070 20071cat >>confdefs.h <<\_ACEOF 20072#define XFONT_PCFFORMAT 1 20073_ACEOF 20074 20075 XFONT_BITMAP=yes 20076fi 20077 20078# Check whether --enable-bdfformat was given. 20079if test "${enable_bdfformat+set}" = set; then 20080 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 20081else 20082 XFONT_BDFFORMAT=yes 20083fi 20084 20085 if test "x$XFONT_BDFFORMAT" = xyes; then 20086 XFONT_BDFFORMAT_TRUE= 20087 XFONT_BDFFORMAT_FALSE='#' 20088else 20089 XFONT_BDFFORMAT_TRUE='#' 20090 XFONT_BDFFORMAT_FALSE= 20091fi 20092 20093if test "x$XFONT_BDFFORMAT" = xyes; then 20094 20095cat >>confdefs.h <<\_ACEOF 20096#define XFONT_BDFFORMAT 1 20097_ACEOF 20098 20099 XFONT_BITMAP=yes 20100fi 20101 20102# Check whether --enable-snfformat was given. 20103if test "${enable_snfformat+set}" = set; then 20104 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 20105else 20106 XFONT_SNFFORMAT=yes 20107fi 20108 20109 if test "x$XFONT_SNFFORMAT" = xyes; then 20110 XFONT_SNFFORMAT_TRUE= 20111 XFONT_SNFFORMAT_FALSE='#' 20112else 20113 XFONT_SNFFORMAT_TRUE='#' 20114 XFONT_SNFFORMAT_FALSE= 20115fi 20116 20117if test "x$XFONT_SNFFORMAT" = xyes; then 20118 20119cat >>confdefs.h <<\_ACEOF 20120#define XFONT_SNFFORMAT 1 20121_ACEOF 20122 20123 XFONT_BITMAP=yes 20124fi 20125 20126 if test "x$XFONT_BITMAP" = xyes ; then 20127 XFONT_BITMAP_TRUE= 20128 XFONT_BITMAP_FALSE='#' 20129else 20130 XFONT_BITMAP_TRUE='#' 20131 XFONT_BITMAP_FALSE= 20132fi 20133 20134if test "x$XFONT_BITMAP" = xyes; then 20135 20136cat >>confdefs.h <<\_ACEOF 20137#define XFONT_BITMAP 1 20138_ACEOF 20139 20140 XFONT_FONTFILE=yes 20141fi 20142 20143 if test "x$XFONT_FONTFILE" = xyes; then 20144 XFONT_FONTFILE_TRUE= 20145 XFONT_FONTFILE_FALSE='#' 20146else 20147 XFONT_FONTFILE_TRUE='#' 20148 XFONT_FONTFILE_FALSE= 20149fi 20150 20151if test "x$XFONT_FONTFILE" = xyes; then 20152 20153cat >>confdefs.h <<\_ACEOF 20154#define XFONT_FONTFILE 1 20155_ACEOF 20156 20157fi 20158 20159# Check whether --enable-loadable-font-modules was given. 20160if test "${enable_loadable_font_modules+set}" = set; then 20161 enableval=$enable_loadable_font_modules; LOADABLE_FONTS=$enableval 20162else 20163 LOADABLE_FONTS=yes 20164fi 20165 20166if test "x$LOADABLE_FONTS" = xyes; then 20167 20168cat >>confdefs.h <<\_ACEOF 20169#define LOADABLEFONTS 1 20170_ACEOF 20171 20172fi 20173 20174# 20175# Font cache extension support? 20176# 20177 20178# Check whether --enable-fontcache was given. 20179if test "${enable_fontcache+set}" = set; then 20180 enableval=$enable_fontcache; XFONT_FONTCACHE=$enableval 20181else 20182 XFONT_FONTCACHE=yes 20183fi 20184 20185 if test "x$XFONT_FONTCACHE" = xyes; then 20186 XFONT_FONTCACHE_TRUE= 20187 XFONT_FONTCACHE_FALSE='#' 20188else 20189 XFONT_FONTCACHE_TRUE='#' 20190 XFONT_FONTCACHE_FALSE= 20191fi 20192 20193if test "x$XFONT_FONTCACHE" = xyes; then 20194 20195cat >>confdefs.h <<\_ACEOF 20196#define FONTCACHE 1 20197_ACEOF 20198 20199 20200pkg_failed=no 20201{ echo "$as_me:$LINENO: checking for FONTCACHEPROTO" >&5 20202echo $ECHO_N "checking for FONTCACHEPROTO... $ECHO_C" >&6; } 20203 20204if test -n "$FONTCACHEPROTO_CFLAGS"; then 20205 pkg_cv_FONTCACHEPROTO_CFLAGS="$FONTCACHEPROTO_CFLAGS" 20206 elif test -n "$PKG_CONFIG"; then 20207 if test -n "$PKG_CONFIG" && \ 20208 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontcacheproto\"") >&5 20209 ($PKG_CONFIG --exists --print-errors "fontcacheproto") 2>&5 20210 ac_status=$? 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); }; then 20213 pkg_cv_FONTCACHEPROTO_CFLAGS=`$PKG_CONFIG --cflags "fontcacheproto" 2>/dev/null` 20214else 20215 pkg_failed=yes 20216fi 20217 else 20218 pkg_failed=untried 20219fi 20220if test -n "$FONTCACHEPROTO_LIBS"; then 20221 pkg_cv_FONTCACHEPROTO_LIBS="$FONTCACHEPROTO_LIBS" 20222 elif test -n "$PKG_CONFIG"; then 20223 if test -n "$PKG_CONFIG" && \ 20224 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontcacheproto\"") >&5 20225 ($PKG_CONFIG --exists --print-errors "fontcacheproto") 2>&5 20226 ac_status=$? 20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20228 (exit $ac_status); }; then 20229 pkg_cv_FONTCACHEPROTO_LIBS=`$PKG_CONFIG --libs "fontcacheproto" 2>/dev/null` 20230else 20231 pkg_failed=yes 20232fi 20233 else 20234 pkg_failed=untried 20235fi 20236 20237 20238 20239if test $pkg_failed = yes; then 20240 20241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20242 _pkg_short_errors_supported=yes 20243else 20244 _pkg_short_errors_supported=no 20245fi 20246 if test $_pkg_short_errors_supported = yes; then 20247 FONTCACHEPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontcacheproto" 2>&1` 20248 else 20249 FONTCACHEPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontcacheproto" 2>&1` 20250 fi 20251 # Put the nasty error message in config.log where it belongs 20252 echo "$FONTCACHEPROTO_PKG_ERRORS" >&5 20253 20254 { { echo "$as_me:$LINENO: error: Package requirements (fontcacheproto) were not met: 20255 20256$FONTCACHEPROTO_PKG_ERRORS 20257 20258Consider adjusting the PKG_CONFIG_PATH environment variable if you 20259installed software in a non-standard prefix. 20260 20261Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS 20262and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config. 20263See the pkg-config man page for more details. 20264" >&5 20265echo "$as_me: error: Package requirements (fontcacheproto) were not met: 20266 20267$FONTCACHEPROTO_PKG_ERRORS 20268 20269Consider adjusting the PKG_CONFIG_PATH environment variable if you 20270installed software in a non-standard prefix. 20271 20272Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS 20273and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config. 20274See the pkg-config man page for more details. 20275" >&2;} 20276 { (exit 1); exit 1; }; } 20277elif test $pkg_failed = untried; then 20278 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20279is in your PATH or set the PKG_CONFIG environment variable to the full 20280path to pkg-config. 20281 20282Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS 20283and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config. 20284See the pkg-config man page for more details. 20285 20286To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20287See \`config.log' for more details." >&5 20288echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20289is in your PATH or set the PKG_CONFIG environment variable to the full 20290path to pkg-config. 20291 20292Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS 20293and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config. 20294See the pkg-config man page for more details. 20295 20296To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20297See \`config.log' for more details." >&2;} 20298 { (exit 1); exit 1; }; } 20299else 20300 FONTCACHEPROTO_CFLAGS=$pkg_cv_FONTCACHEPROTO_CFLAGS 20301 FONTCACHEPROTO_LIBS=$pkg_cv_FONTCACHEPROTO_LIBS 20302 { echo "$as_me:$LINENO: result: yes" >&5 20303echo "${ECHO_T}yes" >&6; } 20304 : 20305fi 20306else 20307 FONTCACHEPROTO_CFLAGS="" 20308fi 20309 20310 20311# 20312# Support connection to font servers? 20313# 20314 20315# Check whether --enable-fc was given. 20316if test "${enable_fc+set}" = set; then 20317 enableval=$enable_fc; XFONT_FC=$enableval 20318else 20319 XFONT_FC=yes 20320fi 20321 20322 if test "x$XFONT_FC" = xyes; then 20323 XFONT_FC_TRUE= 20324 XFONT_FC_FALSE='#' 20325else 20326 XFONT_FC_TRUE='#' 20327 XFONT_FC_FALSE= 20328fi 20329 20330if test "x$XFONT_FC" = xyes; then 20331 20332cat >>confdefs.h <<\_ACEOF 20333#define XFONT_FC 1 20334_ACEOF 20335 20336fi 20337 20338{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 20339echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } 20340if test "${ac_cv_lib_z_gzopen+set}" = set; then 20341 echo $ECHO_N "(cached) $ECHO_C" >&6 20342else 20343 ac_check_lib_save_LIBS=$LIBS 20344LIBS="-lz $LIBS" 20345cat >conftest.$ac_ext <<_ACEOF 20346/* confdefs.h. */ 20347_ACEOF 20348cat confdefs.h >>conftest.$ac_ext 20349cat >>conftest.$ac_ext <<_ACEOF 20350/* end confdefs.h. */ 20351 20352/* Override any GCC internal prototype to avoid an error. 20353 Use char because int might match the return type of a GCC 20354 builtin and then its argument prototype would still apply. */ 20355#ifdef __cplusplus 20356extern "C" 20357#endif 20358char gzopen (); 20359int 20360main () 20361{ 20362return gzopen (); 20363 ; 20364 return 0; 20365} 20366_ACEOF 20367rm -f conftest.$ac_objext conftest$ac_exeext 20368if { (ac_try="$ac_link" 20369case "(($ac_try" in 20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20371 *) ac_try_echo=$ac_try;; 20372esac 20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20374 (eval "$ac_link") 2>conftest.er1 20375 ac_status=$? 20376 grep -v '^ *+' conftest.er1 >conftest.err 20377 rm -f conftest.er1 20378 cat conftest.err >&5 20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); } && { 20381 test -z "$ac_c_werror_flag" || 20382 test ! -s conftest.err 20383 } && test -s conftest$ac_exeext && 20384 $as_test_x conftest$ac_exeext; then 20385 ac_cv_lib_z_gzopen=yes 20386else 20387 echo "$as_me: failed program was:" >&5 20388sed 's/^/| /' conftest.$ac_ext >&5 20389 20390 ac_cv_lib_z_gzopen=no 20391fi 20392 20393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20394 conftest$ac_exeext conftest.$ac_ext 20395LIBS=$ac_check_lib_save_LIBS 20396fi 20397{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 20398echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } 20399if test $ac_cv_lib_z_gzopen = yes; then 20400 Z_LIBS=-lz 20401 20402else 20403 { { echo "$as_me:$LINENO: error: *** zlib is required" >&5 20404echo "$as_me: error: *** zlib is required" >&2;} 20405 { (exit 1); exit 1; }; } 20406fi 20407 20408 20409 20410{ echo "$as_me:$LINENO: checking for hypot in -lm" >&5 20411echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6; } 20412if test "${ac_cv_lib_m_hypot+set}" = set; then 20413 echo $ECHO_N "(cached) $ECHO_C" >&6 20414else 20415 ac_check_lib_save_LIBS=$LIBS 20416LIBS="-lm $LIBS" 20417cat >conftest.$ac_ext <<_ACEOF 20418/* confdefs.h. */ 20419_ACEOF 20420cat confdefs.h >>conftest.$ac_ext 20421cat >>conftest.$ac_ext <<_ACEOF 20422/* end confdefs.h. */ 20423 20424/* Override any GCC internal prototype to avoid an error. 20425 Use char because int might match the return type of a GCC 20426 builtin and then its argument prototype would still apply. */ 20427#ifdef __cplusplus 20428extern "C" 20429#endif 20430char hypot (); 20431int 20432main () 20433{ 20434return hypot (); 20435 ; 20436 return 0; 20437} 20438_ACEOF 20439rm -f conftest.$ac_objext conftest$ac_exeext 20440if { (ac_try="$ac_link" 20441case "(($ac_try" in 20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20443 *) ac_try_echo=$ac_try;; 20444esac 20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20446 (eval "$ac_link") 2>conftest.er1 20447 ac_status=$? 20448 grep -v '^ *+' conftest.er1 >conftest.err 20449 rm -f conftest.er1 20450 cat conftest.err >&5 20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20452 (exit $ac_status); } && { 20453 test -z "$ac_c_werror_flag" || 20454 test ! -s conftest.err 20455 } && test -s conftest$ac_exeext && 20456 $as_test_x conftest$ac_exeext; then 20457 ac_cv_lib_m_hypot=yes 20458else 20459 echo "$as_me: failed program was:" >&5 20460sed 's/^/| /' conftest.$ac_ext >&5 20461 20462 ac_cv_lib_m_hypot=no 20463fi 20464 20465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20466 conftest$ac_exeext conftest.$ac_ext 20467LIBS=$ac_check_lib_save_LIBS 20468fi 20469{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 20470echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6; } 20471if test $ac_cv_lib_m_hypot = yes; then 20472 MATH_LIBS=-lm 20473 20474else 20475 { { echo "$as_me:$LINENO: error: *** libm is required" >&5 20476echo "$as_me: error: *** libm is required" >&2;} 20477 { (exit 1); exit 1; }; } 20478fi 20479 20480 20481 20482pkg_failed=no 20483{ echo "$as_me:$LINENO: checking for XFONT" >&5 20484echo $ECHO_N "checking for XFONT... $ECHO_C" >&6; } 20485 20486if test -n "$XFONT_CFLAGS"; then 20487 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 20488 elif test -n "$PKG_CONFIG"; then 20489 if test -n "$PKG_CONFIG" && \ 20490 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5 20491 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5 20492 ac_status=$? 20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20494 (exit $ac_status); }; then 20495 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto fontenc" 2>/dev/null` 20496else 20497 pkg_failed=yes 20498fi 20499 else 20500 pkg_failed=untried 20501fi 20502if test -n "$XFONT_LIBS"; then 20503 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 20504 elif test -n "$PKG_CONFIG"; then 20505 if test -n "$PKG_CONFIG" && \ 20506 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5 20507 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5 20508 ac_status=$? 20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20510 (exit $ac_status); }; then 20511 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto fontenc" 2>/dev/null` 20512else 20513 pkg_failed=yes 20514fi 20515 else 20516 pkg_failed=untried 20517fi 20518 20519 20520 20521if test $pkg_failed = yes; then 20522 20523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20524 _pkg_short_errors_supported=yes 20525else 20526 _pkg_short_errors_supported=no 20527fi 20528 if test $_pkg_short_errors_supported = yes; then 20529 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto fontenc" 2>&1` 20530 else 20531 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto fontenc" 2>&1` 20532 fi 20533 # Put the nasty error message in config.log where it belongs 20534 echo "$XFONT_PKG_ERRORS" >&5 20535 20536 { { echo "$as_me:$LINENO: error: Package requirements (xproto xtrans fontsproto fontenc) were not met: 20537 20538$XFONT_PKG_ERRORS 20539 20540Consider adjusting the PKG_CONFIG_PATH environment variable if you 20541installed software in a non-standard prefix. 20542 20543Alternatively, you may set the environment variables XFONT_CFLAGS 20544and XFONT_LIBS to avoid the need to call pkg-config. 20545See the pkg-config man page for more details. 20546" >&5 20547echo "$as_me: error: Package requirements (xproto xtrans fontsproto fontenc) were not met: 20548 20549$XFONT_PKG_ERRORS 20550 20551Consider adjusting the PKG_CONFIG_PATH environment variable if you 20552installed software in a non-standard prefix. 20553 20554Alternatively, you may set the environment variables XFONT_CFLAGS 20555and XFONT_LIBS to avoid the need to call pkg-config. 20556See the pkg-config man page for more details. 20557" >&2;} 20558 { (exit 1); exit 1; }; } 20559elif test $pkg_failed = untried; then 20560 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20561is in your PATH or set the PKG_CONFIG environment variable to the full 20562path to pkg-config. 20563 20564Alternatively, you may set the environment variables XFONT_CFLAGS 20565and XFONT_LIBS to avoid the need to call pkg-config. 20566See the pkg-config man page for more details. 20567 20568To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20569See \`config.log' for more details." >&5 20570echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20571is in your PATH or set the PKG_CONFIG environment variable to the full 20572path to pkg-config. 20573 20574Alternatively, you may set the environment variables XFONT_CFLAGS 20575and XFONT_LIBS to avoid the need to call pkg-config. 20576See the pkg-config man page for more details. 20577 20578To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20579See \`config.log' for more details." >&2;} 20580 { (exit 1); exit 1; }; } 20581else 20582 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 20583 XFONT_LIBS=$pkg_cv_XFONT_LIBS 20584 { echo "$as_me:$LINENO: result: yes" >&5 20585echo "${ECHO_T}yes" >&6; } 20586 : 20587fi 20588 20589# Transport selection macro from xtrans.m4 20590{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 20591echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 20592if test "${ac_cv_type_signal+set}" = set; then 20593 echo $ECHO_N "(cached) $ECHO_C" >&6 20594else 20595 cat >conftest.$ac_ext <<_ACEOF 20596/* confdefs.h. */ 20597_ACEOF 20598cat confdefs.h >>conftest.$ac_ext 20599cat >>conftest.$ac_ext <<_ACEOF 20600/* end confdefs.h. */ 20601#include <sys/types.h> 20602#include <signal.h> 20603 20604int 20605main () 20606{ 20607return *(signal (0, 0)) (0) == 1; 20608 ; 20609 return 0; 20610} 20611_ACEOF 20612rm -f conftest.$ac_objext 20613if { (ac_try="$ac_compile" 20614case "(($ac_try" in 20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20616 *) ac_try_echo=$ac_try;; 20617esac 20618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20619 (eval "$ac_compile") 2>conftest.er1 20620 ac_status=$? 20621 grep -v '^ *+' conftest.er1 >conftest.err 20622 rm -f conftest.er1 20623 cat conftest.err >&5 20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20625 (exit $ac_status); } && { 20626 test -z "$ac_c_werror_flag" || 20627 test ! -s conftest.err 20628 } && test -s conftest.$ac_objext; then 20629 ac_cv_type_signal=int 20630else 20631 echo "$as_me: failed program was:" >&5 20632sed 's/^/| /' conftest.$ac_ext >&5 20633 20634 ac_cv_type_signal=void 20635fi 20636 20637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20638fi 20639{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20640echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20641 20642cat >>confdefs.h <<_ACEOF 20643#define RETSIGTYPE $ac_cv_type_signal 20644_ACEOF 20645 20646 20647 20648 20649 20650 # Check whether --enable-unix-transport was given. 20651if test "${enable_unix_transport+set}" = set; then 20652 enableval=$enable_unix_transport; UNIXCONN=$enableval 20653else 20654 UNIXCONN=yes 20655fi 20656 20657 # Check whether --enable-tcp-transport was given. 20658if test "${enable_tcp_transport+set}" = set; then 20659 enableval=$enable_tcp_transport; TCPCONN=$enableval 20660else 20661 TCPCONN=yes 20662fi 20663 20664 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5 20665echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; } 20666 if test "$UNIXCONN" = "yes"; then 20667 20668cat >>confdefs.h <<\_ACEOF 20669#define UNIXCONN 1 20670_ACEOF 20671 20672 fi 20673 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5 20674echo "${ECHO_T}$UNIXCONN" >&6; } 20675 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5 20676echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; } 20677 { echo "$as_me:$LINENO: result: $TCPCONN" >&5 20678echo "${ECHO_T}$TCPCONN" >&6; } 20679 if test "$TCPCONN" = "yes"; then 20680 20681cat >>confdefs.h <<\_ACEOF 20682#define TCPCONN 1 20683_ACEOF 20684 20685 20686 # SVR4 hides these in libraries other than libc 20687 { echo "$as_me:$LINENO: checking for library containing socket" >&5 20688echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } 20689if test "${ac_cv_search_socket+set}" = set; then 20690 echo $ECHO_N "(cached) $ECHO_C" >&6 20691else 20692 ac_func_search_save_LIBS=$LIBS 20693cat >conftest.$ac_ext <<_ACEOF 20694/* confdefs.h. */ 20695_ACEOF 20696cat confdefs.h >>conftest.$ac_ext 20697cat >>conftest.$ac_ext <<_ACEOF 20698/* end confdefs.h. */ 20699 20700/* Override any GCC internal prototype to avoid an error. 20701 Use char because int might match the return type of a GCC 20702 builtin and then its argument prototype would still apply. */ 20703#ifdef __cplusplus 20704extern "C" 20705#endif 20706char socket (); 20707int 20708main () 20709{ 20710return socket (); 20711 ; 20712 return 0; 20713} 20714_ACEOF 20715for ac_lib in '' socket; do 20716 if test -z "$ac_lib"; then 20717 ac_res="none required" 20718 else 20719 ac_res=-l$ac_lib 20720 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20721 fi 20722 rm -f conftest.$ac_objext conftest$ac_exeext 20723if { (ac_try="$ac_link" 20724case "(($ac_try" in 20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20726 *) ac_try_echo=$ac_try;; 20727esac 20728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20729 (eval "$ac_link") 2>conftest.er1 20730 ac_status=$? 20731 grep -v '^ *+' conftest.er1 >conftest.err 20732 rm -f conftest.er1 20733 cat conftest.err >&5 20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20735 (exit $ac_status); } && { 20736 test -z "$ac_c_werror_flag" || 20737 test ! -s conftest.err 20738 } && test -s conftest$ac_exeext && 20739 $as_test_x conftest$ac_exeext; then 20740 ac_cv_search_socket=$ac_res 20741else 20742 echo "$as_me: failed program was:" >&5 20743sed 's/^/| /' conftest.$ac_ext >&5 20744 20745 20746fi 20747 20748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20749 conftest$ac_exeext 20750 if test "${ac_cv_search_socket+set}" = set; then 20751 break 20752fi 20753done 20754if test "${ac_cv_search_socket+set}" = set; then 20755 : 20756else 20757 ac_cv_search_socket=no 20758fi 20759rm conftest.$ac_ext 20760LIBS=$ac_func_search_save_LIBS 20761fi 20762{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 20763echo "${ECHO_T}$ac_cv_search_socket" >&6; } 20764ac_res=$ac_cv_search_socket 20765if test "$ac_res" != no; then 20766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20767 20768fi 20769 20770 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 20771echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 20772if test "${ac_cv_search_gethostbyname+set}" = set; then 20773 echo $ECHO_N "(cached) $ECHO_C" >&6 20774else 20775 ac_func_search_save_LIBS=$LIBS 20776cat >conftest.$ac_ext <<_ACEOF 20777/* confdefs.h. */ 20778_ACEOF 20779cat confdefs.h >>conftest.$ac_ext 20780cat >>conftest.$ac_ext <<_ACEOF 20781/* end confdefs.h. */ 20782 20783/* Override any GCC internal prototype to avoid an error. 20784 Use char because int might match the return type of a GCC 20785 builtin and then its argument prototype would still apply. */ 20786#ifdef __cplusplus 20787extern "C" 20788#endif 20789char gethostbyname (); 20790int 20791main () 20792{ 20793return gethostbyname (); 20794 ; 20795 return 0; 20796} 20797_ACEOF 20798for ac_lib in '' nsl; do 20799 if test -z "$ac_lib"; then 20800 ac_res="none required" 20801 else 20802 ac_res=-l$ac_lib 20803 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20804 fi 20805 rm -f conftest.$ac_objext conftest$ac_exeext 20806if { (ac_try="$ac_link" 20807case "(($ac_try" in 20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20809 *) ac_try_echo=$ac_try;; 20810esac 20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20812 (eval "$ac_link") 2>conftest.er1 20813 ac_status=$? 20814 grep -v '^ *+' conftest.er1 >conftest.err 20815 rm -f conftest.er1 20816 cat conftest.err >&5 20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20818 (exit $ac_status); } && { 20819 test -z "$ac_c_werror_flag" || 20820 test ! -s conftest.err 20821 } && test -s conftest$ac_exeext && 20822 $as_test_x conftest$ac_exeext; then 20823 ac_cv_search_gethostbyname=$ac_res 20824else 20825 echo "$as_me: failed program was:" >&5 20826sed 's/^/| /' conftest.$ac_ext >&5 20827 20828 20829fi 20830 20831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20832 conftest$ac_exeext 20833 if test "${ac_cv_search_gethostbyname+set}" = set; then 20834 break 20835fi 20836done 20837if test "${ac_cv_search_gethostbyname+set}" = set; then 20838 : 20839else 20840 ac_cv_search_gethostbyname=no 20841fi 20842rm conftest.$ac_ext 20843LIBS=$ac_func_search_save_LIBS 20844fi 20845{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 20846echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 20847ac_res=$ac_cv_search_gethostbyname 20848if test "$ac_res" != no; then 20849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20850 20851fi 20852 20853 20854 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20855 # Check whether --enable-ipv6 was given. 20856if test "${enable_ipv6+set}" = set; then 20857 enableval=$enable_ipv6; IPV6CONN=$enableval 20858else 20859 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 20860echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } 20861if test "${ac_cv_func_getaddrinfo+set}" = set; then 20862 echo $ECHO_N "(cached) $ECHO_C" >&6 20863else 20864 cat >conftest.$ac_ext <<_ACEOF 20865/* confdefs.h. */ 20866_ACEOF 20867cat confdefs.h >>conftest.$ac_ext 20868cat >>conftest.$ac_ext <<_ACEOF 20869/* end confdefs.h. */ 20870/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 20871 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20872#define getaddrinfo innocuous_getaddrinfo 20873 20874/* System header to define __stub macros and hopefully few prototypes, 20875 which can conflict with char getaddrinfo (); below. 20876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20877 <limits.h> exists even on freestanding compilers. */ 20878 20879#ifdef __STDC__ 20880# include <limits.h> 20881#else 20882# include <assert.h> 20883#endif 20884 20885#undef getaddrinfo 20886 20887/* Override any GCC internal prototype to avoid an error. 20888 Use char because int might match the return type of a GCC 20889 builtin and then its argument prototype would still apply. */ 20890#ifdef __cplusplus 20891extern "C" 20892#endif 20893char getaddrinfo (); 20894/* The GNU C library defines this for functions which it implements 20895 to always fail with ENOSYS. Some functions are actually named 20896 something starting with __ and the normal name is an alias. */ 20897#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 20898choke me 20899#endif 20900 20901int 20902main () 20903{ 20904return getaddrinfo (); 20905 ; 20906 return 0; 20907} 20908_ACEOF 20909rm -f conftest.$ac_objext conftest$ac_exeext 20910if { (ac_try="$ac_link" 20911case "(($ac_try" in 20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20913 *) ac_try_echo=$ac_try;; 20914esac 20915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20916 (eval "$ac_link") 2>conftest.er1 20917 ac_status=$? 20918 grep -v '^ *+' conftest.er1 >conftest.err 20919 rm -f conftest.er1 20920 cat conftest.err >&5 20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20922 (exit $ac_status); } && { 20923 test -z "$ac_c_werror_flag" || 20924 test ! -s conftest.err 20925 } && test -s conftest$ac_exeext && 20926 $as_test_x conftest$ac_exeext; then 20927 ac_cv_func_getaddrinfo=yes 20928else 20929 echo "$as_me: failed program was:" >&5 20930sed 's/^/| /' conftest.$ac_ext >&5 20931 20932 ac_cv_func_getaddrinfo=no 20933fi 20934 20935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20936 conftest$ac_exeext conftest.$ac_ext 20937fi 20938{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 20939echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; } 20940if test $ac_cv_func_getaddrinfo = yes; then 20941 IPV6CONN=yes 20942else 20943 IPV6CONN=no 20944fi 20945 20946fi 20947 20948 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5 20949echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; } 20950 if test "$IPV6CONN" = "yes"; then 20951 20952cat >>confdefs.h <<\_ACEOF 20953#define IPv6 1 20954_ACEOF 20955 20956 fi 20957 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5 20958echo "${ECHO_T}$IPV6CONN" >&6; } 20959 20960 # 4.3BSD-Reno added a new member to struct sockaddr_in 20961 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 20962echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; } 20963if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 20964 echo $ECHO_N "(cached) $ECHO_C" >&6 20965else 20966 cat >conftest.$ac_ext <<_ACEOF 20967/* confdefs.h. */ 20968_ACEOF 20969cat confdefs.h >>conftest.$ac_ext 20970cat >>conftest.$ac_ext <<_ACEOF 20971/* end confdefs.h. */ 20972 20973#include <sys/types.h> 20974#include <sys/socket.h> 20975#include <netinet/in.h> 20976 20977 20978int 20979main () 20980{ 20981static struct sockaddr_in ac_aggr; 20982if (ac_aggr.sin_len) 20983return 0; 20984 ; 20985 return 0; 20986} 20987_ACEOF 20988rm -f conftest.$ac_objext 20989if { (ac_try="$ac_compile" 20990case "(($ac_try" in 20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20992 *) ac_try_echo=$ac_try;; 20993esac 20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20995 (eval "$ac_compile") 2>conftest.er1 20996 ac_status=$? 20997 grep -v '^ *+' conftest.er1 >conftest.err 20998 rm -f conftest.er1 20999 cat conftest.err >&5 21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21001 (exit $ac_status); } && { 21002 test -z "$ac_c_werror_flag" || 21003 test ! -s conftest.err 21004 } && test -s conftest.$ac_objext; then 21005 ac_cv_member_struct_sockaddr_in_sin_len=yes 21006else 21007 echo "$as_me: failed program was:" >&5 21008sed 's/^/| /' conftest.$ac_ext >&5 21009 21010 cat >conftest.$ac_ext <<_ACEOF 21011/* confdefs.h. */ 21012_ACEOF 21013cat confdefs.h >>conftest.$ac_ext 21014cat >>conftest.$ac_ext <<_ACEOF 21015/* end confdefs.h. */ 21016 21017#include <sys/types.h> 21018#include <sys/socket.h> 21019#include <netinet/in.h> 21020 21021 21022int 21023main () 21024{ 21025static struct sockaddr_in ac_aggr; 21026if (sizeof ac_aggr.sin_len) 21027return 0; 21028 ; 21029 return 0; 21030} 21031_ACEOF 21032rm -f conftest.$ac_objext 21033if { (ac_try="$ac_compile" 21034case "(($ac_try" in 21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21036 *) ac_try_echo=$ac_try;; 21037esac 21038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21039 (eval "$ac_compile") 2>conftest.er1 21040 ac_status=$? 21041 grep -v '^ *+' conftest.er1 >conftest.err 21042 rm -f conftest.er1 21043 cat conftest.err >&5 21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21045 (exit $ac_status); } && { 21046 test -z "$ac_c_werror_flag" || 21047 test ! -s conftest.err 21048 } && test -s conftest.$ac_objext; then 21049 ac_cv_member_struct_sockaddr_in_sin_len=yes 21050else 21051 echo "$as_me: failed program was:" >&5 21052sed 's/^/| /' conftest.$ac_ext >&5 21053 21054 ac_cv_member_struct_sockaddr_in_sin_len=no 21055fi 21056 21057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21058fi 21059 21060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21061fi 21062{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 21063echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 21064if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then 21065 21066cat >>confdefs.h <<\_ACEOF 21067#define BSD44SOCKETS 1 21068_ACEOF 21069 21070fi 21071 21072 21073 fi 21074 case $host_os in 21075 solaris*|sco*|sysv4*) localdef="yes" ;; 21076 *) localdef="no" ;; 21077 esac 21078 # Check whether --enable-local-transport was given. 21079if test "${enable_local_transport+set}" = set; then 21080 enableval=$enable_local_transport; LOCALCONN=$enableval 21081else 21082 LOCALCONN=$localdef 21083fi 21084 21085 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5 21086echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; } 21087 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5 21088echo "${ECHO_T}$LOCALCONN" >&6; } 21089 if test "$LOCALCONN" = "yes"; then 21090 21091cat >>confdefs.h <<\_ACEOF 21092#define LOCALCONN 1 21093_ACEOF 21094 21095 fi 21096 21097 21098 21099if test "x$GCC" = "xyes"; then 21100 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 21101 -Wmissing-prototypes -Wmissing-declarations \ 21102 -Wnested-externs -fno-strict-aliasing" 21103 CFLAGS="$GCC_WARNINGS $CFLAGS" 21104fi 21105 21106case $host_os in 21107 linux*) 21108 OS_CFLAGS="-D_XOPEN_SOURCE" 21109 ;; 21110 darwin*) 21111 OS_CFLAGS="-Wl,-flat_namespace" 21112 ;; 21113 *) 21114 OS_CFLAGS= 21115 ;; 21116esac 21117 21118CFLAGS="$CFLAGS $XFONT_CFLAGS $OS_CFLAGS" 21119LIBS="$LIBS $XFONT_LIBS" 21120 21121 21122 21123# Check whether --with-release-version was given. 21124if test "${with_release_version+set}" = set; then 21125 withval=$with_release_version; RELEASE_VERSION="$withval" 21126else 21127 RELEASE_VERSION="" 21128fi 21129 21130 if test "x$RELEASE_VERSION" != "x"; then 21131 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21132 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21133 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21134echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21135 fi 21136 21137cat >>confdefs.h <<_ACEOF 21138#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21139_ACEOF 21140 21141 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21142 if test "x$PVM" = "x"; then 21143 PVM="0" 21144 fi 21145 21146cat >>confdefs.h <<_ACEOF 21147#define PACKAGE_VERSION_MINOR $PVM 21148_ACEOF 21149 21150 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21151 if test "x$PVP" = "x"; then 21152 PVP="0" 21153 fi 21154 21155cat >>confdefs.h <<_ACEOF 21156#define PACKAGE_VERSION_PATCHLEVEL $PVP 21157_ACEOF 21158 21159 21160 21161ac_config_files="$ac_config_files Makefile src/Makefile src/fontcache/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/Type1/Makefile src/Speedo/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc" 21162 21163cat >confcache <<\_ACEOF 21164# This file is a shell script that caches the results of configure 21165# tests run on this system so they can be shared between configure 21166# scripts and configure runs, see configure's option --config-cache. 21167# It is not useful on other systems. If it contains results you don't 21168# want to keep, you may remove or edit it. 21169# 21170# config.status only pays attention to the cache file if you give it 21171# the --recheck option to rerun configure. 21172# 21173# `ac_cv_env_foo' variables (set or unset) will be overridden when 21174# loading this file, other *unset* `ac_cv_foo' will be assigned the 21175# following values. 21176 21177_ACEOF 21178 21179# The following way of writing the cache mishandles newlines in values, 21180# but we know of no workaround that is simple, portable, and efficient. 21181# So, we kill variables containing newlines. 21182# Ultrix sh set writes to stderr and can't be redirected directly, 21183# and sets the high bit in the cache file unless we assign to the vars. 21184( 21185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21186 eval ac_val=\$$ac_var 21187 case $ac_val in #( 21188 *${as_nl}*) 21189 case $ac_var in #( 21190 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21191echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21192 esac 21193 case $ac_var in #( 21194 _ | IFS | as_nl) ;; #( 21195 *) $as_unset $ac_var ;; 21196 esac ;; 21197 esac 21198 done 21199 21200 (set) 2>&1 | 21201 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21202 *${as_nl}ac_space=\ *) 21203 # `set' does not quote correctly, so add quotes (double-quote 21204 # substitution turns \\\\ into \\, and sed turns \\ into \). 21205 sed -n \ 21206 "s/'/'\\\\''/g; 21207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21208 ;; #( 21209 *) 21210 # `set' quotes correctly as required by POSIX, so do not add quotes. 21211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21212 ;; 21213 esac | 21214 sort 21215) | 21216 sed ' 21217 /^ac_cv_env_/b end 21218 t clear 21219 :clear 21220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21221 t end 21222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21223 :end' >>confcache 21224if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21225 if test -w "$cache_file"; then 21226 test "x$cache_file" != "x/dev/null" && 21227 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21228echo "$as_me: updating cache $cache_file" >&6;} 21229 cat confcache >$cache_file 21230 else 21231 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21232echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21233 fi 21234fi 21235rm -f confcache 21236 21237test "x$prefix" = xNONE && prefix=$ac_default_prefix 21238# Let make expand exec_prefix. 21239test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21240 21241DEFS=-DHAVE_CONFIG_H 21242 21243ac_libobjs= 21244ac_ltlibobjs= 21245for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21246 # 1. Remove the extension, and $U if already installed. 21247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21248 ac_i=`echo "$ac_i" | sed "$ac_script"` 21249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21250 # will be set to the directory where LIBOBJS objects are built. 21251 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21252 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21253done 21254LIBOBJS=$ac_libobjs 21255 21256LTLIBOBJS=$ac_ltlibobjs 21257 21258 21259if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21261Usually this means the macro was only invoked conditionally." >&5 21262echo "$as_me: error: conditional \"AMDEP\" was never defined. 21263Usually this means the macro was only invoked conditionally." >&2;} 21264 { (exit 1); exit 1; }; } 21265fi 21266if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21268Usually this means the macro was only invoked conditionally." >&5 21269echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21270Usually this means the macro was only invoked conditionally." >&2;} 21271 { (exit 1); exit 1; }; } 21272fi 21273if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21274 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21275Usually this means the macro was only invoked conditionally." >&5 21276echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21277Usually this means the macro was only invoked conditionally." >&2;} 21278 { (exit 1); exit 1; }; } 21279fi 21280if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 21281 { { echo "$as_me:$LINENO: error: conditional \"XFONT_FREETYPE\" was never defined. 21282Usually this means the macro was only invoked conditionally." >&5 21283echo "$as_me: error: conditional \"XFONT_FREETYPE\" was never defined. 21284Usually this means the macro was only invoked conditionally." >&2;} 21285 { (exit 1); exit 1; }; } 21286fi 21287if test -z "${XFONT_TYPE1_TRUE}" && test -z "${XFONT_TYPE1_FALSE}"; then 21288 { { echo "$as_me:$LINENO: error: conditional \"XFONT_TYPE1\" was never defined. 21289Usually this means the macro was only invoked conditionally." >&5 21290echo "$as_me: error: conditional \"XFONT_TYPE1\" was never defined. 21291Usually this means the macro was only invoked conditionally." >&2;} 21292 { (exit 1); exit 1; }; } 21293fi 21294if test -z "${XFONT_SPEEDO_TRUE}" && test -z "${XFONT_SPEEDO_FALSE}"; then 21295 { { echo "$as_me:$LINENO: error: conditional \"XFONT_SPEEDO\" was never defined. 21296Usually this means the macro was only invoked conditionally." >&5 21297echo "$as_me: error: conditional \"XFONT_SPEEDO\" was never defined. 21298Usually this means the macro was only invoked conditionally." >&2;} 21299 { (exit 1); exit 1; }; } 21300fi 21301if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 21302 { { echo "$as_me:$LINENO: error: conditional \"XFONT_BUILTINS\" was never defined. 21303Usually this means the macro was only invoked conditionally." >&5 21304echo "$as_me: error: conditional \"XFONT_BUILTINS\" was never defined. 21305Usually this means the macro was only invoked conditionally." >&2;} 21306 { (exit 1); exit 1; }; } 21307fi 21308if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 21309 { { echo "$as_me:$LINENO: error: conditional \"XFONT_PCFFORMAT\" was never defined. 21310Usually this means the macro was only invoked conditionally." >&5 21311echo "$as_me: error: conditional \"XFONT_PCFFORMAT\" was never defined. 21312Usually this means the macro was only invoked conditionally." >&2;} 21313 { (exit 1); exit 1; }; } 21314fi 21315if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 21316 { { echo "$as_me:$LINENO: error: conditional \"XFONT_BDFFORMAT\" was never defined. 21317Usually this means the macro was only invoked conditionally." >&5 21318echo "$as_me: error: conditional \"XFONT_BDFFORMAT\" was never defined. 21319Usually this means the macro was only invoked conditionally." >&2;} 21320 { (exit 1); exit 1; }; } 21321fi 21322if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 21323 { { echo "$as_me:$LINENO: error: conditional \"XFONT_SNFFORMAT\" was never defined. 21324Usually this means the macro was only invoked conditionally." >&5 21325echo "$as_me: error: conditional \"XFONT_SNFFORMAT\" was never defined. 21326Usually this means the macro was only invoked conditionally." >&2;} 21327 { (exit 1); exit 1; }; } 21328fi 21329if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 21330 { { echo "$as_me:$LINENO: error: conditional \"XFONT_BITMAP\" was never defined. 21331Usually this means the macro was only invoked conditionally." >&5 21332echo "$as_me: error: conditional \"XFONT_BITMAP\" was never defined. 21333Usually this means the macro was only invoked conditionally." >&2;} 21334 { (exit 1); exit 1; }; } 21335fi 21336if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 21337 { { echo "$as_me:$LINENO: error: conditional \"XFONT_FONTFILE\" was never defined. 21338Usually this means the macro was only invoked conditionally." >&5 21339echo "$as_me: error: conditional \"XFONT_FONTFILE\" was never defined. 21340Usually this means the macro was only invoked conditionally." >&2;} 21341 { (exit 1); exit 1; }; } 21342fi 21343if test -z "${XFONT_FONTCACHE_TRUE}" && test -z "${XFONT_FONTCACHE_FALSE}"; then 21344 { { echo "$as_me:$LINENO: error: conditional \"XFONT_FONTCACHE\" was never defined. 21345Usually this means the macro was only invoked conditionally." >&5 21346echo "$as_me: error: conditional \"XFONT_FONTCACHE\" was never defined. 21347Usually this means the macro was only invoked conditionally." >&2;} 21348 { (exit 1); exit 1; }; } 21349fi 21350if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 21351 { { echo "$as_me:$LINENO: error: conditional \"XFONT_FC\" was never defined. 21352Usually this means the macro was only invoked conditionally." >&5 21353echo "$as_me: error: conditional \"XFONT_FC\" was never defined. 21354Usually this means the macro was only invoked conditionally." >&2;} 21355 { (exit 1); exit 1; }; } 21356fi 21357 21358: ${CONFIG_STATUS=./config.status} 21359ac_clean_files_save=$ac_clean_files 21360ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21361{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21362echo "$as_me: creating $CONFIG_STATUS" >&6;} 21363cat >$CONFIG_STATUS <<_ACEOF 21364#! $SHELL 21365# Generated by $as_me. 21366# Run this file to recreate the current configuration. 21367# Compiler output produced by configure, useful for debugging 21368# configure, is in config.log if it exists. 21369 21370debug=false 21371ac_cs_recheck=false 21372ac_cs_silent=false 21373SHELL=\${CONFIG_SHELL-$SHELL} 21374_ACEOF 21375 21376cat >>$CONFIG_STATUS <<\_ACEOF 21377## --------------------- ## 21378## M4sh Initialization. ## 21379## --------------------- ## 21380 21381# Be more Bourne compatible 21382DUALCASE=1; export DUALCASE # for MKS sh 21383if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21384 emulate sh 21385 NULLCMD=: 21386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21387 # is contrary to our usage. Disable this feature. 21388 alias -g '${1+"$@"}'='"$@"' 21389 setopt NO_GLOB_SUBST 21390else 21391 case `(set -o) 2>/dev/null` in 21392 *posix*) set -o posix ;; 21393esac 21394 21395fi 21396 21397 21398 21399 21400# PATH needs CR 21401# Avoid depending upon Character Ranges. 21402as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21403as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21404as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21405as_cr_digits='0123456789' 21406as_cr_alnum=$as_cr_Letters$as_cr_digits 21407 21408# The user is always right. 21409if test "${PATH_SEPARATOR+set}" != set; then 21410 echo "#! /bin/sh" >conf$$.sh 21411 echo "exit 0" >>conf$$.sh 21412 chmod +x conf$$.sh 21413 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21414 PATH_SEPARATOR=';' 21415 else 21416 PATH_SEPARATOR=: 21417 fi 21418 rm -f conf$$.sh 21419fi 21420 21421# Support unset when possible. 21422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21423 as_unset=unset 21424else 21425 as_unset=false 21426fi 21427 21428 21429# IFS 21430# We need space, tab and new line, in precisely that order. Quoting is 21431# there to prevent editors from complaining about space-tab. 21432# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21433# splitting by setting IFS to empty value.) 21434as_nl=' 21435' 21436IFS=" "" $as_nl" 21437 21438# Find who we are. Look in the path if we contain no directory separator. 21439case $0 in 21440 *[\\/]* ) as_myself=$0 ;; 21441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21442for as_dir in $PATH 21443do 21444 IFS=$as_save_IFS 21445 test -z "$as_dir" && as_dir=. 21446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21447done 21448IFS=$as_save_IFS 21449 21450 ;; 21451esac 21452# We did not find ourselves, most probably we were run as `sh COMMAND' 21453# in which case we are not to be found in the path. 21454if test "x$as_myself" = x; then 21455 as_myself=$0 21456fi 21457if test ! -f "$as_myself"; then 21458 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21459 { (exit 1); exit 1; } 21460fi 21461 21462# Work around bugs in pre-3.0 UWIN ksh. 21463for as_var in ENV MAIL MAILPATH 21464do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21465done 21466PS1='$ ' 21467PS2='> ' 21468PS4='+ ' 21469 21470# NLS nuisances. 21471for as_var in \ 21472 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21473 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21474 LC_TELEPHONE LC_TIME 21475do 21476 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21477 eval $as_var=C; export $as_var 21478 else 21479 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21480 fi 21481done 21482 21483# Required to use basename. 21484if expr a : '\(a\)' >/dev/null 2>&1 && 21485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21486 as_expr=expr 21487else 21488 as_expr=false 21489fi 21490 21491if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21492 as_basename=basename 21493else 21494 as_basename=false 21495fi 21496 21497 21498# Name of the executable. 21499as_me=`$as_basename -- "$0" || 21500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21501 X"$0" : 'X\(//\)$' \| \ 21502 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21503echo X/"$0" | 21504 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21505 s//\1/ 21506 q 21507 } 21508 /^X\/\(\/\/\)$/{ 21509 s//\1/ 21510 q 21511 } 21512 /^X\/\(\/\).*/{ 21513 s//\1/ 21514 q 21515 } 21516 s/.*/./; q'` 21517 21518# CDPATH. 21519$as_unset CDPATH 21520 21521 21522 21523 as_lineno_1=$LINENO 21524 as_lineno_2=$LINENO 21525 test "x$as_lineno_1" != "x$as_lineno_2" && 21526 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21527 21528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21529 # uniformly replaced by the line number. The first 'sed' inserts a 21530 # line-number line after each line using $LINENO; the second 'sed' 21531 # does the real work. The second script uses 'N' to pair each 21532 # line-number line with the line containing $LINENO, and appends 21533 # trailing '-' during substitution so that $LINENO is not a special 21534 # case at line end. 21535 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21536 # scripts with optimization help from Paolo Bonzini. Blame Lee 21537 # E. McMahon (1931-1989) for sed's syntax. :-) 21538 sed -n ' 21539 p 21540 /[$]LINENO/= 21541 ' <$as_myself | 21542 sed ' 21543 s/[$]LINENO.*/&-/ 21544 t lineno 21545 b 21546 :lineno 21547 N 21548 :loop 21549 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21550 t loop 21551 s/-\n.*// 21552 ' >$as_me.lineno && 21553 chmod +x "$as_me.lineno" || 21554 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21555 { (exit 1); exit 1; }; } 21556 21557 # Don't try to exec as it changes $[0], causing all sort of problems 21558 # (the dirname of $[0] is not the place where we might find the 21559 # original and so on. Autoconf is especially sensitive to this). 21560 . "./$as_me.lineno" 21561 # Exit status is that of the last command. 21562 exit 21563} 21564 21565 21566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21567 as_dirname=dirname 21568else 21569 as_dirname=false 21570fi 21571 21572ECHO_C= ECHO_N= ECHO_T= 21573case `echo -n x` in 21574-n*) 21575 case `echo 'x\c'` in 21576 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21577 *) ECHO_C='\c';; 21578 esac;; 21579*) 21580 ECHO_N='-n';; 21581esac 21582 21583if expr a : '\(a\)' >/dev/null 2>&1 && 21584 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21585 as_expr=expr 21586else 21587 as_expr=false 21588fi 21589 21590rm -f conf$$ conf$$.exe conf$$.file 21591if test -d conf$$.dir; then 21592 rm -f conf$$.dir/conf$$.file 21593else 21594 rm -f conf$$.dir 21595 mkdir conf$$.dir 21596fi 21597echo >conf$$.file 21598if ln -s conf$$.file conf$$ 2>/dev/null; then 21599 as_ln_s='ln -s' 21600 # ... but there are two gotchas: 21601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21603 # In both cases, we have to default to `cp -p'. 21604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21605 as_ln_s='cp -p' 21606elif ln conf$$.file conf$$ 2>/dev/null; then 21607 as_ln_s=ln 21608else 21609 as_ln_s='cp -p' 21610fi 21611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21612rmdir conf$$.dir 2>/dev/null 21613 21614if mkdir -p . 2>/dev/null; then 21615 as_mkdir_p=: 21616else 21617 test -d ./-p && rmdir ./-p 21618 as_mkdir_p=false 21619fi 21620 21621if test -x / >/dev/null 2>&1; then 21622 as_test_x='test -x' 21623else 21624 if ls -dL / >/dev/null 2>&1; then 21625 as_ls_L_option=L 21626 else 21627 as_ls_L_option= 21628 fi 21629 as_test_x=' 21630 eval sh -c '\'' 21631 if test -d "$1"; then 21632 test -d "$1/."; 21633 else 21634 case $1 in 21635 -*)set "./$1";; 21636 esac; 21637 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21638 ???[sx]*):;;*)false;;esac;fi 21639 '\'' sh 21640 ' 21641fi 21642as_executable_p=$as_test_x 21643 21644# Sed expression to map a string onto a valid CPP name. 21645as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21646 21647# Sed expression to map a string onto a valid variable name. 21648as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21649 21650 21651exec 6>&1 21652 21653# Save the log message, to keep $[0] and so on meaningful, and to 21654# report actual input values of CONFIG_FILES etc. instead of their 21655# values after options handling. 21656ac_log=" 21657This file was extended by libXfont $as_me 1.3.2, which was 21658generated by GNU Autoconf 2.61. Invocation command line was 21659 21660 CONFIG_FILES = $CONFIG_FILES 21661 CONFIG_HEADERS = $CONFIG_HEADERS 21662 CONFIG_LINKS = $CONFIG_LINKS 21663 CONFIG_COMMANDS = $CONFIG_COMMANDS 21664 $ $0 $@ 21665 21666on `(hostname || uname -n) 2>/dev/null | sed 1q` 21667" 21668 21669_ACEOF 21670 21671cat >>$CONFIG_STATUS <<_ACEOF 21672# Files that config.status was made for. 21673config_files="$ac_config_files" 21674config_headers="$ac_config_headers" 21675config_commands="$ac_config_commands" 21676 21677_ACEOF 21678 21679cat >>$CONFIG_STATUS <<\_ACEOF 21680ac_cs_usage="\ 21681\`$as_me' instantiates files from templates according to the 21682current configuration. 21683 21684Usage: $0 [OPTIONS] [FILE]... 21685 21686 -h, --help print this help, then exit 21687 -V, --version print version number and configuration settings, then exit 21688 -q, --quiet do not print progress messages 21689 -d, --debug don't remove temporary files 21690 --recheck update $as_me by reconfiguring in the same conditions 21691 --file=FILE[:TEMPLATE] 21692 instantiate the configuration file FILE 21693 --header=FILE[:TEMPLATE] 21694 instantiate the configuration header FILE 21695 21696Configuration files: 21697$config_files 21698 21699Configuration headers: 21700$config_headers 21701 21702Configuration commands: 21703$config_commands 21704 21705Report bugs to <bug-autoconf@gnu.org>." 21706 21707_ACEOF 21708cat >>$CONFIG_STATUS <<_ACEOF 21709ac_cs_version="\\ 21710libXfont config.status 1.3.2 21711configured by $0, generated by GNU Autoconf 2.61, 21712 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21713 21714Copyright (C) 2006 Free Software Foundation, Inc. 21715This config.status script is free software; the Free Software Foundation 21716gives unlimited permission to copy, distribute and modify it." 21717 21718ac_pwd='$ac_pwd' 21719srcdir='$srcdir' 21720INSTALL='$INSTALL' 21721MKDIR_P='$MKDIR_P' 21722_ACEOF 21723 21724cat >>$CONFIG_STATUS <<\_ACEOF 21725# If no file are specified by the user, then we need to provide default 21726# value. By we need to know if files were specified by the user. 21727ac_need_defaults=: 21728while test $# != 0 21729do 21730 case $1 in 21731 --*=*) 21732 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21733 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21734 ac_shift=: 21735 ;; 21736 *) 21737 ac_option=$1 21738 ac_optarg=$2 21739 ac_shift=shift 21740 ;; 21741 esac 21742 21743 case $ac_option in 21744 # Handling of the options. 21745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21746 ac_cs_recheck=: ;; 21747 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21748 echo "$ac_cs_version"; exit ;; 21749 --debug | --debu | --deb | --de | --d | -d ) 21750 debug=: ;; 21751 --file | --fil | --fi | --f ) 21752 $ac_shift 21753 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21754 ac_need_defaults=false;; 21755 --header | --heade | --head | --hea ) 21756 $ac_shift 21757 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21758 ac_need_defaults=false;; 21759 --he | --h) 21760 # Conflict between --help and --header 21761 { echo "$as_me: error: ambiguous option: $1 21762Try \`$0 --help' for more information." >&2 21763 { (exit 1); exit 1; }; };; 21764 --help | --hel | -h ) 21765 echo "$ac_cs_usage"; exit ;; 21766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21767 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21768 ac_cs_silent=: ;; 21769 21770 # This is an error. 21771 -*) { echo "$as_me: error: unrecognized option: $1 21772Try \`$0 --help' for more information." >&2 21773 { (exit 1); exit 1; }; } ;; 21774 21775 *) ac_config_targets="$ac_config_targets $1" 21776 ac_need_defaults=false ;; 21777 21778 esac 21779 shift 21780done 21781 21782ac_configure_extra_args= 21783 21784if $ac_cs_silent; then 21785 exec 6>/dev/null 21786 ac_configure_extra_args="$ac_configure_extra_args --silent" 21787fi 21788 21789_ACEOF 21790cat >>$CONFIG_STATUS <<_ACEOF 21791if \$ac_cs_recheck; then 21792 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21793 CONFIG_SHELL=$SHELL 21794 export CONFIG_SHELL 21795 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21796fi 21797 21798_ACEOF 21799cat >>$CONFIG_STATUS <<\_ACEOF 21800exec 5>>config.log 21801{ 21802 echo 21803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21804## Running $as_me. ## 21805_ASBOX 21806 echo "$ac_log" 21807} >&5 21808 21809_ACEOF 21810cat >>$CONFIG_STATUS <<_ACEOF 21811# 21812# INIT-COMMANDS 21813# 21814AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21815 21816_ACEOF 21817 21818cat >>$CONFIG_STATUS <<\_ACEOF 21819 21820# Handling of arguments. 21821for ac_config_target in $ac_config_targets 21822do 21823 case $ac_config_target in 21824 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21825 "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;; 21826 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21828 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21829 "src/fontcache/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontcache/Makefile" ;; 21830 "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;; 21831 "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;; 21832 "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;; 21833 "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;; 21834 "src/Type1/Makefile") CONFIG_FILES="$CONFIG_FILES src/Type1/Makefile" ;; 21835 "src/Speedo/Makefile") CONFIG_FILES="$CONFIG_FILES src/Speedo/Makefile" ;; 21836 "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;; 21837 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 21838 "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;; 21839 "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;; 21840 21841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21842echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21843 { (exit 1); exit 1; }; };; 21844 esac 21845done 21846 21847 21848# If the user did not use the arguments to specify the items to instantiate, 21849# then the envvar interface is used. Set only those that are not. 21850# We use the long form for the default assignment because of an extremely 21851# bizarre bug on SunOS 4.1.3. 21852if $ac_need_defaults; then 21853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21856fi 21857 21858# Have a temporary directory for convenience. Make it in the build tree 21859# simply because there is no reason against having it here, and in addition, 21860# creating and moving files from /tmp can sometimes cause problems. 21861# Hook for its removal unless debugging. 21862# Note that there is a small window in which the directory will not be cleaned: 21863# after its creation but before its name has been assigned to `$tmp'. 21864$debug || 21865{ 21866 tmp= 21867 trap 'exit_status=$? 21868 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21869' 0 21870 trap '{ (exit 1); exit 1; }' 1 2 13 15 21871} 21872# Create a (secure) tmp directory for tmp files. 21873 21874{ 21875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21876 test -n "$tmp" && test -d "$tmp" 21877} || 21878{ 21879 tmp=./conf$$-$RANDOM 21880 (umask 077 && mkdir "$tmp") 21881} || 21882{ 21883 echo "$me: cannot create a temporary directory in ." >&2 21884 { (exit 1); exit 1; } 21885} 21886 21887# 21888# Set up the sed scripts for CONFIG_FILES section. 21889# 21890 21891# No need to generate the scripts if there are no CONFIG_FILES. 21892# This happens for instance when ./config.status config.h 21893if test -n "$CONFIG_FILES"; then 21894 21895_ACEOF 21896 21897 21898 21899ac_delim='%!_!# ' 21900for ac_last_try in false false false false false :; do 21901 cat >conf$$subs.sed <<_ACEOF 21902SHELL!$SHELL$ac_delim 21903PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21904PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21905PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21906PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21907PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21908PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21909exec_prefix!$exec_prefix$ac_delim 21910prefix!$prefix$ac_delim 21911program_transform_name!$program_transform_name$ac_delim 21912bindir!$bindir$ac_delim 21913sbindir!$sbindir$ac_delim 21914libexecdir!$libexecdir$ac_delim 21915datarootdir!$datarootdir$ac_delim 21916datadir!$datadir$ac_delim 21917sysconfdir!$sysconfdir$ac_delim 21918sharedstatedir!$sharedstatedir$ac_delim 21919localstatedir!$localstatedir$ac_delim 21920includedir!$includedir$ac_delim 21921oldincludedir!$oldincludedir$ac_delim 21922docdir!$docdir$ac_delim 21923infodir!$infodir$ac_delim 21924htmldir!$htmldir$ac_delim 21925dvidir!$dvidir$ac_delim 21926pdfdir!$pdfdir$ac_delim 21927psdir!$psdir$ac_delim 21928libdir!$libdir$ac_delim 21929localedir!$localedir$ac_delim 21930mandir!$mandir$ac_delim 21931DEFS!$DEFS$ac_delim 21932ECHO_C!$ECHO_C$ac_delim 21933ECHO_N!$ECHO_N$ac_delim 21934ECHO_T!$ECHO_T$ac_delim 21935LIBS!$LIBS$ac_delim 21936build_alias!$build_alias$ac_delim 21937host_alias!$host_alias$ac_delim 21938target_alias!$target_alias$ac_delim 21939INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21940INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21941INSTALL_DATA!$INSTALL_DATA$ac_delim 21942am__isrc!$am__isrc$ac_delim 21943CYGPATH_W!$CYGPATH_W$ac_delim 21944PACKAGE!$PACKAGE$ac_delim 21945VERSION!$VERSION$ac_delim 21946ACLOCAL!$ACLOCAL$ac_delim 21947AUTOCONF!$AUTOCONF$ac_delim 21948AUTOMAKE!$AUTOMAKE$ac_delim 21949AUTOHEADER!$AUTOHEADER$ac_delim 21950MAKEINFO!$MAKEINFO$ac_delim 21951install_sh!$install_sh$ac_delim 21952STRIP!$STRIP$ac_delim 21953INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21954mkdir_p!$mkdir_p$ac_delim 21955AWK!$AWK$ac_delim 21956SET_MAKE!$SET_MAKE$ac_delim 21957am__leading_dot!$am__leading_dot$ac_delim 21958AMTAR!$AMTAR$ac_delim 21959am__tar!$am__tar$ac_delim 21960am__untar!$am__untar$ac_delim 21961CC!$CC$ac_delim 21962CFLAGS!$CFLAGS$ac_delim 21963LDFLAGS!$LDFLAGS$ac_delim 21964CPPFLAGS!$CPPFLAGS$ac_delim 21965ac_ct_CC!$ac_ct_CC$ac_delim 21966EXEEXT!$EXEEXT$ac_delim 21967OBJEXT!$OBJEXT$ac_delim 21968DEPDIR!$DEPDIR$ac_delim 21969am__include!$am__include$ac_delim 21970am__quote!$am__quote$ac_delim 21971AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21972AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21973AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21974CCDEPMODE!$CCDEPMODE$ac_delim 21975am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21976am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21977build!$build$ac_delim 21978build_cpu!$build_cpu$ac_delim 21979build_vendor!$build_vendor$ac_delim 21980build_os!$build_os$ac_delim 21981host!$host$ac_delim 21982host_cpu!$host_cpu$ac_delim 21983host_vendor!$host_vendor$ac_delim 21984host_os!$host_os$ac_delim 21985SED!$SED$ac_delim 21986GREP!$GREP$ac_delim 21987EGREP!$EGREP$ac_delim 21988LN_S!$LN_S$ac_delim 21989ECHO!$ECHO$ac_delim 21990AR!$AR$ac_delim 21991RANLIB!$RANLIB$ac_delim 21992CPP!$CPP$ac_delim 21993CXX!$CXX$ac_delim 21994CXXFLAGS!$CXXFLAGS$ac_delim 21995ac_ct_CXX!$ac_ct_CXX$ac_delim 21996CXXDEPMODE!$CXXDEPMODE$ac_delim 21997am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21998am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21999_ACEOF 22000 22001 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22002 break 22003 elif $ac_last_try; then 22004 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22005echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22006 { (exit 1); exit 1; }; } 22007 else 22008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22009 fi 22010done 22011 22012ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22013if test -n "$ac_eof"; then 22014 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22015 ac_eof=`expr $ac_eof + 1` 22016fi 22017 22018cat >>$CONFIG_STATUS <<_ACEOF 22019cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22020/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22021_ACEOF 22022sed ' 22023s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22024s/^/s,@/; s/!/@,|#_!!_#|/ 22025:n 22026t n 22027s/'"$ac_delim"'$/,g/; t 22028s/$/\\/; p 22029N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22030' >>$CONFIG_STATUS <conf$$subs.sed 22031rm -f conf$$subs.sed 22032cat >>$CONFIG_STATUS <<_ACEOF 22033CEOF$ac_eof 22034_ACEOF 22035 22036 22037ac_delim='%!_!# ' 22038for ac_last_try in false false false false false :; do 22039 cat >conf$$subs.sed <<_ACEOF 22040CXXCPP!$CXXCPP$ac_delim 22041F77!$F77$ac_delim 22042FFLAGS!$FFLAGS$ac_delim 22043ac_ct_F77!$ac_ct_F77$ac_delim 22044LIBTOOL!$LIBTOOL$ac_delim 22045PKG_CONFIG!$PKG_CONFIG$ac_delim 22046ENCODINGSDIR!$ENCODINGSDIR$ac_delim 22047XFONT_FREETYPE_TRUE!$XFONT_FREETYPE_TRUE$ac_delim 22048XFONT_FREETYPE_FALSE!$XFONT_FREETYPE_FALSE$ac_delim 22049FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim 22050FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim 22051ft_config!$ft_config$ac_delim 22052FREETYPE_REQUIRES!$FREETYPE_REQUIRES$ac_delim 22053XFONT_TYPE1_TRUE!$XFONT_TYPE1_TRUE$ac_delim 22054XFONT_TYPE1_FALSE!$XFONT_TYPE1_FALSE$ac_delim 22055XFONT_SPEEDO_TRUE!$XFONT_SPEEDO_TRUE$ac_delim 22056XFONT_SPEEDO_FALSE!$XFONT_SPEEDO_FALSE$ac_delim 22057X_GZIP_FONT_COMPRESSION!$X_GZIP_FONT_COMPRESSION$ac_delim 22058XFONT_BUILTINS_TRUE!$XFONT_BUILTINS_TRUE$ac_delim 22059XFONT_BUILTINS_FALSE!$XFONT_BUILTINS_FALSE$ac_delim 22060XFONT_PCFFORMAT_TRUE!$XFONT_PCFFORMAT_TRUE$ac_delim 22061XFONT_PCFFORMAT_FALSE!$XFONT_PCFFORMAT_FALSE$ac_delim 22062XFONT_BDFFORMAT_TRUE!$XFONT_BDFFORMAT_TRUE$ac_delim 22063XFONT_BDFFORMAT_FALSE!$XFONT_BDFFORMAT_FALSE$ac_delim 22064XFONT_SNFFORMAT_TRUE!$XFONT_SNFFORMAT_TRUE$ac_delim 22065XFONT_SNFFORMAT_FALSE!$XFONT_SNFFORMAT_FALSE$ac_delim 22066XFONT_BITMAP_TRUE!$XFONT_BITMAP_TRUE$ac_delim 22067XFONT_BITMAP_FALSE!$XFONT_BITMAP_FALSE$ac_delim 22068XFONT_FONTFILE_TRUE!$XFONT_FONTFILE_TRUE$ac_delim 22069XFONT_FONTFILE_FALSE!$XFONT_FONTFILE_FALSE$ac_delim 22070XFONT_FONTCACHE_TRUE!$XFONT_FONTCACHE_TRUE$ac_delim 22071XFONT_FONTCACHE_FALSE!$XFONT_FONTCACHE_FALSE$ac_delim 22072FONTCACHEPROTO_CFLAGS!$FONTCACHEPROTO_CFLAGS$ac_delim 22073FONTCACHEPROTO_LIBS!$FONTCACHEPROTO_LIBS$ac_delim 22074XFONT_FC_TRUE!$XFONT_FC_TRUE$ac_delim 22075XFONT_FC_FALSE!$XFONT_FC_FALSE$ac_delim 22076Z_LIBS!$Z_LIBS$ac_delim 22077MATH_LIBS!$MATH_LIBS$ac_delim 22078XFONT_CFLAGS!$XFONT_CFLAGS$ac_delim 22079XFONT_LIBS!$XFONT_LIBS$ac_delim 22080LIBOBJS!$LIBOBJS$ac_delim 22081LTLIBOBJS!$LTLIBOBJS$ac_delim 22082_ACEOF 22083 22084 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then 22085 break 22086 elif $ac_last_try; then 22087 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22088echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22089 { (exit 1); exit 1; }; } 22090 else 22091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22092 fi 22093done 22094 22095ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22096if test -n "$ac_eof"; then 22097 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22098 ac_eof=`expr $ac_eof + 1` 22099fi 22100 22101cat >>$CONFIG_STATUS <<_ACEOF 22102cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22104_ACEOF 22105sed ' 22106s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22107s/^/s,@/; s/!/@,|#_!!_#|/ 22108:n 22109t n 22110s/'"$ac_delim"'$/,g/; t 22111s/$/\\/; p 22112N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22113' >>$CONFIG_STATUS <conf$$subs.sed 22114rm -f conf$$subs.sed 22115cat >>$CONFIG_STATUS <<_ACEOF 22116:end 22117s/|#_!!_#|//g 22118CEOF$ac_eof 22119_ACEOF 22120 22121 22122# VPATH may cause trouble with some makes, so we remove $(srcdir), 22123# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22124# trailing colons and then remove the whole line if VPATH becomes empty 22125# (actually we leave an empty line to preserve line numbers). 22126if test "x$srcdir" = x.; then 22127 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22128s/:*\$(srcdir):*/:/ 22129s/:*\${srcdir}:*/:/ 22130s/:*@srcdir@:*/:/ 22131s/^\([^=]*=[ ]*\):*/\1/ 22132s/:*$// 22133s/^[^=]*=[ ]*$// 22134}' 22135fi 22136 22137cat >>$CONFIG_STATUS <<\_ACEOF 22138fi # test -n "$CONFIG_FILES" 22139 22140 22141for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22142do 22143 case $ac_tag in 22144 :[FHLC]) ac_mode=$ac_tag; continue;; 22145 esac 22146 case $ac_mode$ac_tag in 22147 :[FHL]*:*);; 22148 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22149echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22150 { (exit 1); exit 1; }; };; 22151 :[FH]-) ac_tag=-:-;; 22152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22153 esac 22154 ac_save_IFS=$IFS 22155 IFS=: 22156 set x $ac_tag 22157 IFS=$ac_save_IFS 22158 shift 22159 ac_file=$1 22160 shift 22161 22162 case $ac_mode in 22163 :L) ac_source=$1;; 22164 :[FH]) 22165 ac_file_inputs= 22166 for ac_f 22167 do 22168 case $ac_f in 22169 -) ac_f="$tmp/stdin";; 22170 *) # Look for the file first in the build tree, then in the source tree 22171 # (if the path is not absolute). The absolute path cannot be DOS-style, 22172 # because $ac_f cannot contain `:'. 22173 test -f "$ac_f" || 22174 case $ac_f in 22175 [\\/$]*) false;; 22176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22177 esac || 22178 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22179echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22180 { (exit 1); exit 1; }; };; 22181 esac 22182 ac_file_inputs="$ac_file_inputs $ac_f" 22183 done 22184 22185 # Let's still pretend it is `configure' which instantiates (i.e., don't 22186 # use $as_me), people would be surprised to read: 22187 # /* config.h. Generated by config.status. */ 22188 configure_input="Generated from "`IFS=: 22189 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22190 if test x"$ac_file" != x-; then 22191 configure_input="$ac_file. $configure_input" 22192 { echo "$as_me:$LINENO: creating $ac_file" >&5 22193echo "$as_me: creating $ac_file" >&6;} 22194 fi 22195 22196 case $ac_tag in 22197 *:-:* | *:-) cat >"$tmp/stdin";; 22198 esac 22199 ;; 22200 esac 22201 22202 ac_dir=`$as_dirname -- "$ac_file" || 22203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22204 X"$ac_file" : 'X\(//\)[^/]' \| \ 22205 X"$ac_file" : 'X\(//\)$' \| \ 22206 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22207echo X"$ac_file" | 22208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22209 s//\1/ 22210 q 22211 } 22212 /^X\(\/\/\)[^/].*/{ 22213 s//\1/ 22214 q 22215 } 22216 /^X\(\/\/\)$/{ 22217 s//\1/ 22218 q 22219 } 22220 /^X\(\/\).*/{ 22221 s//\1/ 22222 q 22223 } 22224 s/.*/./; q'` 22225 { as_dir="$ac_dir" 22226 case $as_dir in #( 22227 -*) as_dir=./$as_dir;; 22228 esac 22229 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22230 as_dirs= 22231 while :; do 22232 case $as_dir in #( 22233 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22234 *) as_qdir=$as_dir;; 22235 esac 22236 as_dirs="'$as_qdir' $as_dirs" 22237 as_dir=`$as_dirname -- "$as_dir" || 22238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22239 X"$as_dir" : 'X\(//\)[^/]' \| \ 22240 X"$as_dir" : 'X\(//\)$' \| \ 22241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22242echo X"$as_dir" | 22243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22244 s//\1/ 22245 q 22246 } 22247 /^X\(\/\/\)[^/].*/{ 22248 s//\1/ 22249 q 22250 } 22251 /^X\(\/\/\)$/{ 22252 s//\1/ 22253 q 22254 } 22255 /^X\(\/\).*/{ 22256 s//\1/ 22257 q 22258 } 22259 s/.*/./; q'` 22260 test -d "$as_dir" && break 22261 done 22262 test -z "$as_dirs" || eval "mkdir $as_dirs" 22263 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22264echo "$as_me: error: cannot create directory $as_dir" >&2;} 22265 { (exit 1); exit 1; }; }; } 22266 ac_builddir=. 22267 22268case "$ac_dir" in 22269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22270*) 22271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22272 # A ".." for each directory in $ac_dir_suffix. 22273 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22274 case $ac_top_builddir_sub in 22275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22277 esac ;; 22278esac 22279ac_abs_top_builddir=$ac_pwd 22280ac_abs_builddir=$ac_pwd$ac_dir_suffix 22281# for backward compatibility: 22282ac_top_builddir=$ac_top_build_prefix 22283 22284case $srcdir in 22285 .) # We are building in place. 22286 ac_srcdir=. 22287 ac_top_srcdir=$ac_top_builddir_sub 22288 ac_abs_top_srcdir=$ac_pwd ;; 22289 [\\/]* | ?:[\\/]* ) # Absolute name. 22290 ac_srcdir=$srcdir$ac_dir_suffix; 22291 ac_top_srcdir=$srcdir 22292 ac_abs_top_srcdir=$srcdir ;; 22293 *) # Relative name. 22294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22295 ac_top_srcdir=$ac_top_build_prefix$srcdir 22296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22297esac 22298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22299 22300 22301 case $ac_mode in 22302 :F) 22303 # 22304 # CONFIG_FILE 22305 # 22306 22307 case $INSTALL in 22308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22310 esac 22311 ac_MKDIR_P=$MKDIR_P 22312 case $MKDIR_P in 22313 [\\/$]* | ?:[\\/]* ) ;; 22314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22315 esac 22316_ACEOF 22317 22318cat >>$CONFIG_STATUS <<\_ACEOF 22319# If the template does not know about datarootdir, expand it. 22320# FIXME: This hack should be removed a few years after 2.60. 22321ac_datarootdir_hack=; ac_datarootdir_seen= 22322 22323case `sed -n '/datarootdir/ { 22324 p 22325 q 22326} 22327/@datadir@/p 22328/@docdir@/p 22329/@infodir@/p 22330/@localedir@/p 22331/@mandir@/p 22332' $ac_file_inputs` in 22333*datarootdir*) ac_datarootdir_seen=yes;; 22334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22335 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22336echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22337_ACEOF 22338cat >>$CONFIG_STATUS <<_ACEOF 22339 ac_datarootdir_hack=' 22340 s&@datadir@&$datadir&g 22341 s&@docdir@&$docdir&g 22342 s&@infodir@&$infodir&g 22343 s&@localedir@&$localedir&g 22344 s&@mandir@&$mandir&g 22345 s&\\\${datarootdir}&$datarootdir&g' ;; 22346esac 22347_ACEOF 22348 22349# Neutralize VPATH when `$srcdir' = `.'. 22350# Shell code in configure.ac might set extrasub. 22351# FIXME: do we really want to maintain this feature? 22352cat >>$CONFIG_STATUS <<_ACEOF 22353 sed "$ac_vpsub 22354$extrasub 22355_ACEOF 22356cat >>$CONFIG_STATUS <<\_ACEOF 22357:t 22358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22359s&@configure_input@&$configure_input&;t t 22360s&@top_builddir@&$ac_top_builddir_sub&;t t 22361s&@srcdir@&$ac_srcdir&;t t 22362s&@abs_srcdir@&$ac_abs_srcdir&;t t 22363s&@top_srcdir@&$ac_top_srcdir&;t t 22364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22365s&@builddir@&$ac_builddir&;t t 22366s&@abs_builddir@&$ac_abs_builddir&;t t 22367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22368s&@INSTALL@&$ac_INSTALL&;t t 22369s&@MKDIR_P@&$ac_MKDIR_P&;t t 22370$ac_datarootdir_hack 22371" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22372 22373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22374 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22376 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22377which seems to be undefined. Please make sure it is defined." >&5 22378echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22379which seems to be undefined. Please make sure it is defined." >&2;} 22380 22381 rm -f "$tmp/stdin" 22382 case $ac_file in 22383 -) cat "$tmp/out"; rm -f "$tmp/out";; 22384 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22385 esac 22386 ;; 22387 :H) 22388 # 22389 # CONFIG_HEADER 22390 # 22391_ACEOF 22392 22393# Transform confdefs.h into a sed script `conftest.defines', that 22394# substitutes the proper values into config.h.in to produce config.h. 22395rm -f conftest.defines conftest.tail 22396# First, append a space to every undef/define line, to ease matching. 22397echo 's/$/ /' >conftest.defines 22398# Then, protect against being on the right side of a sed subst, or in 22399# an unquoted here document, in config.status. If some macros were 22400# called several times there might be several #defines for the same 22401# symbol, which is useless. But do not sort them, since the last 22402# AC_DEFINE must be honored. 22403ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22404# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22405# NAME is the cpp macro being defined, VALUE is the value it is being given. 22406# PARAMS is the parameter list in the macro definition--in most cases, it's 22407# just an empty string. 22408ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22409ac_dB='\\)[ (].*,\\1define\\2' 22410ac_dC=' ' 22411ac_dD=' ,' 22412 22413uniq confdefs.h | 22414 sed -n ' 22415 t rset 22416 :rset 22417 s/^[ ]*#[ ]*define[ ][ ]*// 22418 t ok 22419 d 22420 :ok 22421 s/[\\&,]/\\&/g 22422 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22423 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22424 ' >>conftest.defines 22425 22426# Remove the space that was appended to ease matching. 22427# Then replace #undef with comments. This is necessary, for 22428# example, in the case of _POSIX_SOURCE, which is predefined and required 22429# on some systems where configure will not decide to define it. 22430# (The regexp can be short, since the line contains either #define or #undef.) 22431echo 's/ $// 22432s,^[ #]*u.*,/* & */,' >>conftest.defines 22433 22434# Break up conftest.defines: 22435ac_max_sed_lines=50 22436 22437# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22438# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22439# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22440# et cetera. 22441ac_in='$ac_file_inputs' 22442ac_out='"$tmp/out1"' 22443ac_nxt='"$tmp/out2"' 22444 22445while : 22446do 22447 # Write a here document: 22448 cat >>$CONFIG_STATUS <<_ACEOF 22449 # First, check the format of the line: 22450 cat >"\$tmp/defines.sed" <<\\CEOF 22451/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22452/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22453b 22454:def 22455_ACEOF 22456 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22457 echo 'CEOF 22458 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22459 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22460 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22461 grep . conftest.tail >/dev/null || break 22462 rm -f conftest.defines 22463 mv conftest.tail conftest.defines 22464done 22465rm -f conftest.defines conftest.tail 22466 22467echo "ac_result=$ac_in" >>$CONFIG_STATUS 22468cat >>$CONFIG_STATUS <<\_ACEOF 22469 if test x"$ac_file" != x-; then 22470 echo "/* $configure_input */" >"$tmp/config.h" 22471 cat "$ac_result" >>"$tmp/config.h" 22472 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22474echo "$as_me: $ac_file is unchanged" >&6;} 22475 else 22476 rm -f $ac_file 22477 mv "$tmp/config.h" $ac_file 22478 fi 22479 else 22480 echo "/* $configure_input */" 22481 cat "$ac_result" 22482 fi 22483 rm -f "$tmp/out12" 22484# Compute $ac_file's index in $config_headers. 22485_am_arg=$ac_file 22486_am_stamp_count=1 22487for _am_header in $config_headers :; do 22488 case $_am_header in 22489 $_am_arg | $_am_arg:* ) 22490 break ;; 22491 * ) 22492 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22493 esac 22494done 22495echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22496$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22497 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22498 X"$_am_arg" : 'X\(//\)$' \| \ 22499 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22500echo X"$_am_arg" | 22501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22502 s//\1/ 22503 q 22504 } 22505 /^X\(\/\/\)[^/].*/{ 22506 s//\1/ 22507 q 22508 } 22509 /^X\(\/\/\)$/{ 22510 s//\1/ 22511 q 22512 } 22513 /^X\(\/\).*/{ 22514 s//\1/ 22515 q 22516 } 22517 s/.*/./; q'`/stamp-h$_am_stamp_count 22518 ;; 22519 22520 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22521echo "$as_me: executing $ac_file commands" >&6;} 22522 ;; 22523 esac 22524 22525 22526 case $ac_file$ac_mode in 22527 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22528 # Strip MF so we end up with the name of the file. 22529 mf=`echo "$mf" | sed -e 's/:.*$//'` 22530 # Check whether this is an Automake generated Makefile or not. 22531 # We used to match only the files named `Makefile.in', but 22532 # some people rename them; so instead we look at the file content. 22533 # Grep'ing the first line is not enough: some people post-process 22534 # each Makefile.in and add a new line on top of each file to say so. 22535 # Grep'ing the whole file is not good either: AIX grep has a line 22536 # limit of 2048, but all sed's we know have understand at least 4000. 22537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22538 dirpart=`$as_dirname -- "$mf" || 22539$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22540 X"$mf" : 'X\(//\)[^/]' \| \ 22541 X"$mf" : 'X\(//\)$' \| \ 22542 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22543echo X"$mf" | 22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22545 s//\1/ 22546 q 22547 } 22548 /^X\(\/\/\)[^/].*/{ 22549 s//\1/ 22550 q 22551 } 22552 /^X\(\/\/\)$/{ 22553 s//\1/ 22554 q 22555 } 22556 /^X\(\/\).*/{ 22557 s//\1/ 22558 q 22559 } 22560 s/.*/./; q'` 22561 else 22562 continue 22563 fi 22564 # Extract the definition of DEPDIR, am__include, and am__quote 22565 # from the Makefile without running `make'. 22566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22567 test -z "$DEPDIR" && continue 22568 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22569 test -z "am__include" && continue 22570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22571 # When using ansi2knr, U may be empty or an underscore; expand it 22572 U=`sed -n 's/^U = //p' < "$mf"` 22573 # Find all dependency output files, they are included files with 22574 # $(DEPDIR) in their names. We invoke sed twice because it is the 22575 # simplest approach to changing $(DEPDIR) to its actual value in the 22576 # expansion. 22577 for file in `sed -n " 22578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22580 # Make sure the directory exists. 22581 test -f "$dirpart/$file" && continue 22582 fdir=`$as_dirname -- "$file" || 22583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22584 X"$file" : 'X\(//\)[^/]' \| \ 22585 X"$file" : 'X\(//\)$' \| \ 22586 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22587echo X"$file" | 22588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22589 s//\1/ 22590 q 22591 } 22592 /^X\(\/\/\)[^/].*/{ 22593 s//\1/ 22594 q 22595 } 22596 /^X\(\/\/\)$/{ 22597 s//\1/ 22598 q 22599 } 22600 /^X\(\/\).*/{ 22601 s//\1/ 22602 q 22603 } 22604 s/.*/./; q'` 22605 { as_dir=$dirpart/$fdir 22606 case $as_dir in #( 22607 -*) as_dir=./$as_dir;; 22608 esac 22609 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22610 as_dirs= 22611 while :; do 22612 case $as_dir in #( 22613 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22614 *) as_qdir=$as_dir;; 22615 esac 22616 as_dirs="'$as_qdir' $as_dirs" 22617 as_dir=`$as_dirname -- "$as_dir" || 22618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22619 X"$as_dir" : 'X\(//\)[^/]' \| \ 22620 X"$as_dir" : 'X\(//\)$' \| \ 22621 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22622echo X"$as_dir" | 22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22624 s//\1/ 22625 q 22626 } 22627 /^X\(\/\/\)[^/].*/{ 22628 s//\1/ 22629 q 22630 } 22631 /^X\(\/\/\)$/{ 22632 s//\1/ 22633 q 22634 } 22635 /^X\(\/\).*/{ 22636 s//\1/ 22637 q 22638 } 22639 s/.*/./; q'` 22640 test -d "$as_dir" && break 22641 done 22642 test -z "$as_dirs" || eval "mkdir $as_dirs" 22643 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22644echo "$as_me: error: cannot create directory $as_dir" >&2;} 22645 { (exit 1); exit 1; }; }; } 22646 # echo "creating $dirpart/$file" 22647 echo '# dummy' > "$dirpart/$file" 22648 done 22649done 22650 ;; 22651 22652 esac 22653done # for ac_tag 22654 22655 22656{ (exit 0); exit 0; } 22657_ACEOF 22658chmod +x $CONFIG_STATUS 22659ac_clean_files=$ac_clean_files_save 22660 22661 22662# configure is writing to config.log, and then calls config.status. 22663# config.status does its own redirection, appending to config.log. 22664# Unfortunately, on DOS this fails, as config.log is still kept open 22665# by configure, so config.status won't be able to write to it; its 22666# output is simply discarded. So we exec the FD to /dev/null, 22667# effectively closing config.log, so it can be properly (re)opened and 22668# appended to by config.status. When coming back to configure, we 22669# need to make the FD available again. 22670if test "$no_create" != yes; then 22671 ac_cs_success=: 22672 ac_config_status_args= 22673 test "$silent" = yes && 22674 ac_config_status_args="$ac_config_status_args --quiet" 22675 exec 5>/dev/null 22676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22677 exec 5>>config.log 22678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22679 # would make configure fail if this is the last instruction. 22680 $ac_cs_success || { (exit 1); exit 1; } 22681fi 22682 22683