configure revision a966c04f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXpm 3.5.7. 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='libXpm' 730PACKAGE_TARNAME='libXpm' 731PACKAGE_VERSION='3.5.7' 732PACKAGE_STRING='libXpm 3.5.7' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735ac_unique_file="Makefile.am" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834build 835build_cpu 836build_vendor 837build_os 838host 839host_cpu 840host_vendor 841host_os 842CC 843CFLAGS 844LDFLAGS 845CPPFLAGS 846ac_ct_CC 847EXEEXT 848OBJEXT 849DEPDIR 850am__include 851am__quote 852AMDEP_TRUE 853AMDEP_FALSE 854AMDEPBACKSLASH 855CCDEPMODE 856am__fastdepCC_TRUE 857am__fastdepCC_FALSE 858GREP 859EGREP 860LN_S 861ECHO 862AR 863RANLIB 864CPP 865CXX 866CXXFLAGS 867ac_ct_CXX 868CXXDEPMODE 869am__fastdepCXX_TRUE 870am__fastdepCXX_FALSE 871CXXCPP 872F77 873FFLAGS 874ac_ct_F77 875LIBTOOL 876PKG_CONFIG 877XPM_CFLAGS 878XPM_LIBS 879LOCALEDIR 880USE_GETTEXT_TRUE 881USE_GETTEXT_FALSE 882SXPM_CFLAGS 883SXPM_LIBS 884BUILD_SXPM_TRUE 885BUILD_SXPM_FALSE 886APP_MAN_SUFFIX 887LIB_MAN_SUFFIX 888FILE_MAN_SUFFIX 889MISC_MAN_SUFFIX 890DRIVER_MAN_SUFFIX 891ADMIN_MAN_SUFFIX 892APP_MAN_DIR 893LIB_MAN_DIR 894FILE_MAN_DIR 895MISC_MAN_DIR 896DRIVER_MAN_DIR 897ADMIN_MAN_DIR 898LIBOBJS 899LTLIBOBJS' 900ac_subst_files='' 901 ac_precious_vars='build_alias 902host_alias 903target_alias 904CC 905CFLAGS 906LDFLAGS 907LIBS 908CPPFLAGS 909CPP 910CXX 911CXXFLAGS 912CCC 913CXXCPP 914F77 915FFLAGS 916PKG_CONFIG 917XPM_CFLAGS 918XPM_LIBS 919SXPM_CFLAGS 920SXPM_LIBS' 921 922 923# Initialize some variables set by options. 924ac_init_help= 925ac_init_version=false 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1030 eval enable_$ac_feature=no ;; 1031 1032 -docdir | --docdir | --docdi | --doc | --do) 1033 ac_prev=docdir ;; 1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1035 docdir=$ac_optarg ;; 1036 1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1038 ac_prev=dvidir ;; 1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1040 dvidir=$ac_optarg ;; 1041 1042 -enable-* | --enable-*) 1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1047 { (exit 1); exit 1; }; } 1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1049 eval enable_$ac_feature=\$ac_optarg ;; 1050 1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1053 | --exec | --exe | --ex) 1054 ac_prev=exec_prefix ;; 1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1057 | --exec=* | --exe=* | --ex=*) 1058 exec_prefix=$ac_optarg ;; 1059 1060 -gas | --gas | --ga | --g) 1061 # Obsolete; use --with-gas. 1062 with_gas=yes ;; 1063 1064 -help | --help | --hel | --he | -h) 1065 ac_init_help=long ;; 1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1067 ac_init_help=recursive ;; 1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1069 ac_init_help=short ;; 1070 1071 -host | --host | --hos | --ho) 1072 ac_prev=host_alias ;; 1073 -host=* | --host=* | --hos=* | --ho=*) 1074 host_alias=$ac_optarg ;; 1075 1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1077 ac_prev=htmldir ;; 1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1079 | --ht=*) 1080 htmldir=$ac_optarg ;; 1081 1082 -includedir | --includedir | --includedi | --included | --include \ 1083 | --includ | --inclu | --incl | --inc) 1084 ac_prev=includedir ;; 1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1086 | --includ=* | --inclu=* | --incl=* | --inc=*) 1087 includedir=$ac_optarg ;; 1088 1089 -infodir | --infodir | --infodi | --infod | --info | --inf) 1090 ac_prev=infodir ;; 1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1092 infodir=$ac_optarg ;; 1093 1094 -libdir | --libdir | --libdi | --libd) 1095 ac_prev=libdir ;; 1096 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1097 libdir=$ac_optarg ;; 1098 1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1100 | --libexe | --libex | --libe) 1101 ac_prev=libexecdir ;; 1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1103 | --libexe=* | --libex=* | --libe=*) 1104 libexecdir=$ac_optarg ;; 1105 1106 -localedir | --localedir | --localedi | --localed | --locale) 1107 ac_prev=localedir ;; 1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1109 localedir=$ac_optarg ;; 1110 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1112 | --localstate | --localstat | --localsta | --localst | --locals) 1113 ac_prev=localstatedir ;; 1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1116 localstatedir=$ac_optarg ;; 1117 1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1119 ac_prev=mandir ;; 1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1121 mandir=$ac_optarg ;; 1122 1123 -nfp | --nfp | --nf) 1124 # Obsolete; use --without-fp. 1125 with_fp=no ;; 1126 1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1128 | --no-cr | --no-c | -n) 1129 no_create=yes ;; 1130 1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1133 no_recursion=yes ;; 1134 1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1137 | --oldin | --oldi | --old | --ol | --o) 1138 ac_prev=oldincludedir ;; 1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1142 oldincludedir=$ac_optarg ;; 1143 1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1145 ac_prev=prefix ;; 1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1147 prefix=$ac_optarg ;; 1148 1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1150 | --program-pre | --program-pr | --program-p) 1151 ac_prev=program_prefix ;; 1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1154 program_prefix=$ac_optarg ;; 1155 1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1157 | --program-suf | --program-su | --program-s) 1158 ac_prev=program_suffix ;; 1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1161 program_suffix=$ac_optarg ;; 1162 1163 -program-transform-name | --program-transform-name \ 1164 | --program-transform-nam | --program-transform-na \ 1165 | --program-transform-n | --program-transform- \ 1166 | --program-transform | --program-transfor \ 1167 | --program-transfo | --program-transf \ 1168 | --program-trans | --program-tran \ 1169 | --progr-tra | --program-tr | --program-t) 1170 ac_prev=program_transform_name ;; 1171 -program-transform-name=* | --program-transform-name=* \ 1172 | --program-transform-nam=* | --program-transform-na=* \ 1173 | --program-transform-n=* | --program-transform-=* \ 1174 | --program-transform=* | --program-transfor=* \ 1175 | --program-transfo=* | --program-transf=* \ 1176 | --program-trans=* | --program-tran=* \ 1177 | --progr-tra=* | --program-tr=* | --program-t=*) 1178 program_transform_name=$ac_optarg ;; 1179 1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1181 ac_prev=pdfdir ;; 1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1183 pdfdir=$ac_optarg ;; 1184 1185 -psdir | --psdir | --psdi | --psd | --ps) 1186 ac_prev=psdir ;; 1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1188 psdir=$ac_optarg ;; 1189 1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1191 | -silent | --silent | --silen | --sile | --sil) 1192 silent=yes ;; 1193 1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1195 ac_prev=sbindir ;; 1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1197 | --sbi=* | --sb=*) 1198 sbindir=$ac_optarg ;; 1199 1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1202 | --sharedst | --shareds | --shared | --share | --shar \ 1203 | --sha | --sh) 1204 ac_prev=sharedstatedir ;; 1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1208 | --sha=* | --sh=*) 1209 sharedstatedir=$ac_optarg ;; 1210 1211 -site | --site | --sit) 1212 ac_prev=site ;; 1213 -site=* | --site=* | --sit=*) 1214 site=$ac_optarg ;; 1215 1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1217 ac_prev=srcdir ;; 1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1219 srcdir=$ac_optarg ;; 1220 1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1222 | --syscon | --sysco | --sysc | --sys | --sy) 1223 ac_prev=sysconfdir ;; 1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1226 sysconfdir=$ac_optarg ;; 1227 1228 -target | --target | --targe | --targ | --tar | --ta | --t) 1229 ac_prev=target_alias ;; 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1231 target_alias=$ac_optarg ;; 1232 1233 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1234 verbose=yes ;; 1235 1236 -version | --version | --versio | --versi | --vers | -V) 1237 ac_init_version=: ;; 1238 1239 -with-* | --with-*) 1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 { echo "$as_me: error: invalid package name: $ac_package" >&2 1244 { (exit 1); exit 1; }; } 1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1246 eval with_$ac_package=\$ac_optarg ;; 1247 1248 -without-* | --without-*) 1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid package name: $ac_package" >&2 1253 { (exit 1); exit 1; }; } 1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1255 eval with_$ac_package=no ;; 1256 1257 --x) 1258 # Obsolete; use --with-x. 1259 with_x=yes ;; 1260 1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1262 | --x-incl | --x-inc | --x-in | --x-i) 1263 ac_prev=x_includes ;; 1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1266 x_includes=$ac_optarg ;; 1267 1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1270 ac_prev=x_libraries ;; 1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1273 x_libraries=$ac_optarg ;; 1274 1275 -*) { echo "$as_me: error: unrecognized option: $ac_option 1276Try \`$0 --help' for more information." >&2 1277 { (exit 1); exit 1; }; } 1278 ;; 1279 1280 *=*) 1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1285 { (exit 1); exit 1; }; } 1286 eval $ac_envvar=\$ac_optarg 1287 export $ac_envvar ;; 1288 1289 *) 1290 # FIXME: should be removed in autoconf 3.0. 1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1295 ;; 1296 1297 esac 1298done 1299 1300if test -n "$ac_prev"; then 1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1302 { echo "$as_me: error: missing argument to $ac_option" >&2 1303 { (exit 1); exit 1; }; } 1304fi 1305 1306# Be sure to have absolute directory names. 1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1308 datadir sysconfdir sharedstatedir localstatedir includedir \ 1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1310 libdir localedir mandir 1311do 1312 eval ac_val=\$$ac_var 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1318 { (exit 1); exit 1; }; } 1319done 1320 1321# There might be people who depend on the old broken behavior: `$host' 1322# used to hold the argument of --host etc. 1323# FIXME: To remove some day. 1324build=$build_alias 1325host=$host_alias 1326target=$target_alias 1327 1328# FIXME: To remove some day. 1329if test "x$host_alias" != x; then 1330 if test "x$build_alias" = x; then 1331 cross_compiling=maybe 1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1333 If a cross compiler is detected then cross compile mode will be used." >&2 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337fi 1338 1339ac_tool_prefix= 1340test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342test "$silent" = yes && exec 6>/dev/null 1343 1344 1345ac_pwd=`pwd` && test -n "$ac_pwd" && 1346ac_ls_di=`ls -di .` && 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 { echo "$as_me: error: Working directory cannot be determined" >&2 1349 { (exit 1); exit 1; }; } 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 { echo "$as_me: error: pwd does not report name of working directory" >&2 1352 { (exit 1); exit 1; }; } 1353 1354 1355# Find the source files, if location was not specified. 1356if test -z "$srcdir"; then 1357 ac_srcdir_defaulted=yes 1358 # Try the directory containing this script, then the parent directory. 1359 ac_confdir=`$as_dirname -- "$0" || 1360$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1361 X"$0" : 'X\(//\)[^/]' \| \ 1362 X"$0" : 'X\(//\)$' \| \ 1363 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1364echo X"$0" | 1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\/\)[^/].*/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)$/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\).*/{ 1378 s//\1/ 1379 q 1380 } 1381 s/.*/./; q'` 1382 srcdir=$ac_confdir 1383 if test ! -r "$srcdir/$ac_unique_file"; then 1384 srcdir=.. 1385 fi 1386else 1387 ac_srcdir_defaulted=no 1388fi 1389if test ! -r "$srcdir/$ac_unique_file"; then 1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1392 { (exit 1); exit 1; }; } 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1397 { (exit 1); exit 1; }; } 1398 pwd)` 1399# When building in place, set srcdir=. 1400if test "$ac_abs_confdir" = "$ac_pwd"; then 1401 srcdir=. 1402fi 1403# Remove unnecessary trailing slashes from srcdir. 1404# Double slashes in file names in object file debugging info 1405# mess up M-x gdb in Emacs. 1406case $srcdir in 1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1408esac 1409for ac_var in $ac_precious_vars; do 1410 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_env_${ac_var}_value=\$${ac_var} 1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1414done 1415 1416# 1417# Report the --help message. 1418# 1419if test "$ac_init_help" = "long"; then 1420 # Omit some internal or obsolete options to make the list less imposing. 1421 # This message is too long to be a string in the A/UX 3.1 sh. 1422 cat <<_ACEOF 1423\`configure' configures libXpm 3.5.7 to adapt to many kinds of systems. 1424 1425Usage: $0 [OPTION]... [VAR=VALUE]... 1426 1427To assign environment variables (e.g., CC, CFLAGS...), specify them as 1428VAR=VALUE. See below for descriptions of some of the useful variables. 1429 1430Defaults for the options are specified in brackets. 1431 1432Configuration: 1433 -h, --help display this help and exit 1434 --help=short display options specific to this package 1435 --help=recursive display the short help of all the included packages 1436 -V, --version display version information and exit 1437 -q, --quiet, --silent do not print \`checking...' messages 1438 --cache-file=FILE cache test results in FILE [disabled] 1439 -C, --config-cache alias for \`--cache-file=config.cache' 1440 -n, --no-create do not create output files 1441 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1442 1443Installation directories: 1444 --prefix=PREFIX install architecture-independent files in PREFIX 1445 [$ac_default_prefix] 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1447 [PREFIX] 1448 1449By default, \`make install' will install all the files in 1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1451an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1452for instance \`--prefix=\$HOME'. 1453 1454For better control, use the options below. 1455 1456Fine tuning of the installation directories: 1457 --bindir=DIR user executables [EPREFIX/bin] 1458 --sbindir=DIR system admin executables [EPREFIX/sbin] 1459 --libexecdir=DIR program executables [EPREFIX/libexec] 1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485System types: 1486 --build=BUILD configure for building on BUILD [guessed] 1487 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1488_ACEOF 1489fi 1490 1491if test -n "$ac_init_help"; then 1492 case $ac_init_help in 1493 short | recursive ) echo "Configuration of libXpm 3.5.7:";; 1494 esac 1495 cat <<\_ACEOF 1496 1497Optional Features: 1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1500 --enable-maintainer-mode enable make rules and dependencies not useful 1501 (and sometimes confusing) to the casual installer 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-static[=PKGS] build static libraries [default=yes] 1504 --enable-fast-install[=PKGS] 1505 optimize for fast installation [default=yes] 1506 --disable-dependency-tracking speeds up one-time build 1507 --enable-dependency-tracking do not reject slow dependency extractors 1508 --disable-libtool-lock avoid locking (might break parallel builds) 1509 --enable-stat-zfile Search for files with .Z & .gz extensions 1510 automatically [default=yes] 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1516 --with-pic try to use only PIC/non-PIC objects [default=use 1517 both] 1518 --with-tags[=TAGS] include additional configurations [automatic] 1519 --with-localedir=<path> Path to install message files in (default: 1520 datadir/locale) 1521 --with-release-version=STRING 1522 Use release version string in package name 1523 1524Some influential environment variables: 1525 CC C compiler command 1526 CFLAGS C compiler flags 1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1528 nonstandard directory <lib dir> 1529 LIBS libraries to pass to the linker, e.g. -l<library> 1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1531 you have headers in a nonstandard directory <include dir> 1532 CPP C preprocessor 1533 CXX C++ compiler command 1534 CXXFLAGS C++ compiler flags 1535 CXXCPP C++ preprocessor 1536 F77 Fortran 77 compiler command 1537 FFLAGS Fortran 77 compiler flags 1538 PKG_CONFIG path to pkg-config utility 1539 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1540 XPM_LIBS linker flags for XPM, overriding pkg-config 1541 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config 1542 SXPM_LIBS linker flags for SXPM, overriding pkg-config 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for guested configure. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608libXpm configure 3.5.7 1609generated by GNU Autoconf 2.61 1610 1611Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16122002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618cat >config.log <<_ACEOF 1619This file contains any messages produced by compilers while 1620running configure, to aid debugging if configure makes a mistake. 1621 1622It was created by libXpm $as_me 3.5.7, which was 1623generated by GNU Autoconf 2.61. Invocation command line was 1624 1625 $ $0 $@ 1626 1627_ACEOF 1628exec 5>>config.log 1629{ 1630cat <<_ASUNAME 1631## --------- ## 1632## Platform. ## 1633## --------- ## 1634 1635hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1636uname -m = `(uname -m) 2>/dev/null || echo unknown` 1637uname -r = `(uname -r) 2>/dev/null || echo unknown` 1638uname -s = `(uname -s) 2>/dev/null || echo unknown` 1639uname -v = `(uname -v) 2>/dev/null || echo unknown` 1640 1641/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1642/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1643 1644/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1645/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1646/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1647/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1648/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1649/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1650/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1651 1652_ASUNAME 1653 1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1655for as_dir in $PATH 1656do 1657 IFS=$as_save_IFS 1658 test -z "$as_dir" && as_dir=. 1659 echo "PATH: $as_dir" 1660done 1661IFS=$as_save_IFS 1662 1663} >&5 1664 1665cat >&5 <<_ACEOF 1666 1667 1668## ----------- ## 1669## Core tests. ## 1670## ----------- ## 1671 1672_ACEOF 1673 1674 1675# Keep a trace of the command line. 1676# Strip out --no-create and --no-recursion so they do not pile up. 1677# Strip out --silent because we don't want to record it for future runs. 1678# Also quote any args containing shell meta-characters. 1679# Make two passes to allow for proper duplicate-argument suppression. 1680ac_configure_args= 1681ac_configure_args0= 1682ac_configure_args1= 1683ac_must_keep_next=false 1684for ac_pass in 1 2 1685do 1686 for ac_arg 1687 do 1688 case $ac_arg in 1689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1691 | -silent | --silent | --silen | --sile | --sil) 1692 continue ;; 1693 *\'*) 1694 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1695 esac 1696 case $ac_pass in 1697 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1698 2) 1699 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1700 if test $ac_must_keep_next = true; then 1701 ac_must_keep_next=false # Got value, back to normal. 1702 else 1703 case $ac_arg in 1704 *=* | --config-cache | -C | -disable-* | --disable-* \ 1705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1707 | -with-* | --with-* | -without-* | --without-* | --x) 1708 case "$ac_configure_args0 " in 1709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1710 esac 1711 ;; 1712 -* ) ac_must_keep_next=true ;; 1713 esac 1714 fi 1715 ac_configure_args="$ac_configure_args '$ac_arg'" 1716 ;; 1717 esac 1718 done 1719done 1720$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1721$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1722 1723# When interrupted or exit'd, cleanup temporary files, and complete 1724# config.log. We remove comments because anyway the quotes in there 1725# would cause problems or look ugly. 1726# WARNING: Use '\'' to represent an apostrophe within the trap. 1727# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1728trap 'exit_status=$? 1729 # Save into config.log some information that might help in debugging. 1730 { 1731 echo 1732 1733 cat <<\_ASBOX 1734## ---------------- ## 1735## Cache variables. ## 1736## ---------------- ## 1737_ASBOX 1738 echo 1739 # The following way of writing the cache mishandles newlines in values, 1740( 1741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1742 eval ac_val=\$$ac_var 1743 case $ac_val in #( 1744 *${as_nl}*) 1745 case $ac_var in #( 1746 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1747echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1748 esac 1749 case $ac_var in #( 1750 _ | IFS | as_nl) ;; #( 1751 *) $as_unset $ac_var ;; 1752 esac ;; 1753 esac 1754 done 1755 (set) 2>&1 | 1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1757 *${as_nl}ac_space=\ *) 1758 sed -n \ 1759 "s/'\''/'\''\\\\'\'''\''/g; 1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1761 ;; #( 1762 *) 1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1764 ;; 1765 esac | 1766 sort 1767) 1768 echo 1769 1770 cat <<\_ASBOX 1771## ----------------- ## 1772## Output variables. ## 1773## ----------------- ## 1774_ASBOX 1775 echo 1776 for ac_var in $ac_subst_vars 1777 do 1778 eval ac_val=\$$ac_var 1779 case $ac_val in 1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1781 esac 1782 echo "$ac_var='\''$ac_val'\''" 1783 done | sort 1784 echo 1785 1786 if test -n "$ac_subst_files"; then 1787 cat <<\_ASBOX 1788## ------------------- ## 1789## File substitutions. ## 1790## ------------------- ## 1791_ASBOX 1792 echo 1793 for ac_var in $ac_subst_files 1794 do 1795 eval ac_val=\$$ac_var 1796 case $ac_val in 1797 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1798 esac 1799 echo "$ac_var='\''$ac_val'\''" 1800 done | sort 1801 echo 1802 fi 1803 1804 if test -s confdefs.h; then 1805 cat <<\_ASBOX 1806## ----------- ## 1807## confdefs.h. ## 1808## ----------- ## 1809_ASBOX 1810 echo 1811 cat confdefs.h 1812 echo 1813 fi 1814 test "$ac_signal" != 0 && 1815 echo "$as_me: caught signal $ac_signal" 1816 echo "$as_me: exit $exit_status" 1817 } >&5 1818 rm -f core *.core core.conftest.* && 1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1820 exit $exit_status 1821' 0 1822for ac_signal in 1 2 13 15; do 1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1824done 1825ac_signal=0 1826 1827# confdefs.h avoids OS command line length limits that DEFS can exceed. 1828rm -f -r conftest* confdefs.h 1829 1830# Predefined preprocessor variables. 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_NAME "$PACKAGE_NAME" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1839_ACEOF 1840 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_VERSION "$PACKAGE_VERSION" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_STRING "$PACKAGE_STRING" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1854_ACEOF 1855 1856 1857# Let the site file select an alternate cache file if it wants to. 1858# Prefer explicitly selected file to automatically selected ones. 1859if test -n "$CONFIG_SITE"; then 1860 set x "$CONFIG_SITE" 1861elif test "x$prefix" != xNONE; then 1862 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1863else 1864 set x "$ac_default_prefix/share/config.site" \ 1865 "$ac_default_prefix/etc/config.site" 1866fi 1867shift 1868for ac_site_file 1869do 1870 if test -r "$ac_site_file"; then 1871 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1872echo "$as_me: loading site script $ac_site_file" >&6;} 1873 sed 's/^/| /' "$ac_site_file" >&5 1874 . "$ac_site_file" 1875 fi 1876done 1877 1878if test -r "$cache_file"; then 1879 # Some versions of bash will fail to source /dev/null (special 1880 # files actually), so we avoid doing that. 1881 if test -f "$cache_file"; then 1882 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1883echo "$as_me: loading cache $cache_file" >&6;} 1884 case $cache_file in 1885 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1886 *) . "./$cache_file";; 1887 esac 1888 fi 1889else 1890 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1891echo "$as_me: creating cache $cache_file" >&6;} 1892 >$cache_file 1893fi 1894 1895# Check that the precious variables saved in the cache have kept the same 1896# value. 1897ac_cache_corrupted=false 1898for ac_var in $ac_precious_vars; do 1899 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1900 eval ac_new_set=\$ac_env_${ac_var}_set 1901 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1902 eval ac_new_val=\$ac_env_${ac_var}_value 1903 case $ac_old_set,$ac_new_set in 1904 set,) 1905 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1906echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1907 ac_cache_corrupted=: ;; 1908 ,set) 1909 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1910echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1911 ac_cache_corrupted=: ;; 1912 ,);; 1913 *) 1914 if test "x$ac_old_val" != "x$ac_new_val"; then 1915 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1916echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1917 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1918echo "$as_me: former value: $ac_old_val" >&2;} 1919 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1920echo "$as_me: current value: $ac_new_val" >&2;} 1921 ac_cache_corrupted=: 1922 fi;; 1923 esac 1924 # Pass precious variables to config.status. 1925 if test "$ac_new_set" = set; then 1926 case $ac_new_val in 1927 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1928 *) ac_arg=$ac_var=$ac_new_val ;; 1929 esac 1930 case " $ac_configure_args " in 1931 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1932 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1933 esac 1934 fi 1935done 1936if $ac_cache_corrupted; then 1937 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1938echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1939 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1940echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1941 { (exit 1); exit 1; }; } 1942fi 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968ac_ext=c 1969ac_cpp='$CPP $CPPFLAGS' 1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1972ac_compiler_gnu=$ac_cv_c_compiler_gnu 1973 1974 1975 1976am__api_version='1.10' 1977 1978ac_aux_dir= 1979for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1980 if test -f "$ac_dir/install-sh"; then 1981 ac_aux_dir=$ac_dir 1982 ac_install_sh="$ac_aux_dir/install-sh -c" 1983 break 1984 elif test -f "$ac_dir/install.sh"; then 1985 ac_aux_dir=$ac_dir 1986 ac_install_sh="$ac_aux_dir/install.sh -c" 1987 break 1988 elif test -f "$ac_dir/shtool"; then 1989 ac_aux_dir=$ac_dir 1990 ac_install_sh="$ac_aux_dir/shtool install -c" 1991 break 1992 fi 1993done 1994if test -z "$ac_aux_dir"; then 1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1996echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1997 { (exit 1); exit 1; }; } 1998fi 1999 2000# These three variables are undocumented and unsupported, 2001# and are intended to be withdrawn in a future Autoconf release. 2002# They can cause serious problems if a builder's source tree is in a directory 2003# whose full name contains unusual characters. 2004ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2005ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2006ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2007 2008 2009# Find a good install program. We prefer a C program (faster), 2010# so one script is as good as another. But avoid the broken or 2011# incompatible versions: 2012# SysV /etc/install, /usr/sbin/install 2013# SunOS /usr/etc/install 2014# IRIX /sbin/install 2015# AIX /bin/install 2016# AmigaOS /C/install, which installs bootblocks on floppy discs 2017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2018# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2020# OS/2's system install, which has a completely different semantic 2021# ./install, which can be erroneously created by make from ./install.sh. 2022{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2023echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2024if test -z "$INSTALL"; then 2025if test "${ac_cv_path_install+set}" = set; then 2026 echo $ECHO_N "(cached) $ECHO_C" >&6 2027else 2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2029for as_dir in $PATH 2030do 2031 IFS=$as_save_IFS 2032 test -z "$as_dir" && as_dir=. 2033 # Account for people who put trailing slashes in PATH elements. 2034case $as_dir/ in 2035 ./ | .// | /cC/* | \ 2036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2038 /usr/ucb/* ) ;; 2039 *) 2040 # OSF1 and SCO ODT 3.0 have their own names for install. 2041 # Don't use installbsd from OSF since it installs stuff as root 2042 # by default. 2043 for ac_prog in ginstall scoinst install; do 2044 for ac_exec_ext in '' $ac_executable_extensions; do 2045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2046 if test $ac_prog = install && 2047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2048 # AIX install. It has an incompatible calling convention. 2049 : 2050 elif test $ac_prog = install && 2051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2052 # program-specific install script used by HP pwplus--don't use. 2053 : 2054 else 2055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2056 break 3 2057 fi 2058 fi 2059 done 2060 done 2061 ;; 2062esac 2063done 2064IFS=$as_save_IFS 2065 2066 2067fi 2068 if test "${ac_cv_path_install+set}" = set; then 2069 INSTALL=$ac_cv_path_install 2070 else 2071 # As a last resort, use the slow shell script. Don't cache a 2072 # value for INSTALL within a source directory, because that will 2073 # break other packages using the cache if that directory is 2074 # removed, or if the value is a relative name. 2075 INSTALL=$ac_install_sh 2076 fi 2077fi 2078{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2079echo "${ECHO_T}$INSTALL" >&6; } 2080 2081# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2082# It thinks the first close brace ends the variable substitution. 2083test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2084 2085test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2086 2087test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2088 2089{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2090echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2091# Just in case 2092sleep 1 2093echo timestamp > conftest.file 2094# Do `set' in a subshell so we don't clobber the current shell's 2095# arguments. Must try -L first in case configure is actually a 2096# symlink; some systems play weird games with the mod time of symlinks 2097# (eg FreeBSD returns the mod time of the symlink's containing 2098# directory). 2099if ( 2100 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2101 if test "$*" = "X"; then 2102 # -L didn't work. 2103 set X `ls -t $srcdir/configure conftest.file` 2104 fi 2105 rm -f conftest.file 2106 if test "$*" != "X $srcdir/configure conftest.file" \ 2107 && test "$*" != "X conftest.file $srcdir/configure"; then 2108 2109 # If neither matched, then we have a broken ls. This can happen 2110 # if, for instance, CONFIG_SHELL is bash and it inherits a 2111 # broken ls alias from the environment. This has actually 2112 # happened. Such a system could not be considered "sane". 2113 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2114alias in your environment" >&5 2115echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2116alias in your environment" >&2;} 2117 { (exit 1); exit 1; }; } 2118 fi 2119 2120 test "$2" = conftest.file 2121 ) 2122then 2123 # Ok. 2124 : 2125else 2126 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2127Check your system clock" >&5 2128echo "$as_me: error: newly created file is older than distributed files! 2129Check your system clock" >&2;} 2130 { (exit 1); exit 1; }; } 2131fi 2132{ echo "$as_me:$LINENO: result: yes" >&5 2133echo "${ECHO_T}yes" >&6; } 2134test "$program_prefix" != NONE && 2135 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2136# Use a double $ so make ignores it. 2137test "$program_suffix" != NONE && 2138 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2139# Double any \ or $. echo might interpret backslashes. 2140# By default was `s,x,x', remove it if useless. 2141cat <<\_ACEOF >conftest.sed 2142s/[\\$]/&&/g;s/;s,x,x,$// 2143_ACEOF 2144program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2145rm -f conftest.sed 2146 2147# expand $ac_aux_dir to an absolute path 2148am_aux_dir=`cd $ac_aux_dir && pwd` 2149 2150test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2151# Use eval to expand $SHELL 2152if eval "$MISSING --run true"; then 2153 am_missing_run="$MISSING --run " 2154else 2155 am_missing_run= 2156 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2157echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2158fi 2159 2160{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2161echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2162if test -z "$MKDIR_P"; then 2163 if test "${ac_cv_path_mkdir+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165else 2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2167for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2168do 2169 IFS=$as_save_IFS 2170 test -z "$as_dir" && as_dir=. 2171 for ac_prog in mkdir gmkdir; do 2172 for ac_exec_ext in '' $ac_executable_extensions; do 2173 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2174 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2175 'mkdir (GNU coreutils) '* | \ 2176 'mkdir (coreutils) '* | \ 2177 'mkdir (fileutils) '4.1*) 2178 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2179 break 3;; 2180 esac 2181 done 2182 done 2183done 2184IFS=$as_save_IFS 2185 2186fi 2187 2188 if test "${ac_cv_path_mkdir+set}" = set; then 2189 MKDIR_P="$ac_cv_path_mkdir -p" 2190 else 2191 # As a last resort, use the slow shell script. Don't cache a 2192 # value for MKDIR_P within a source directory, because that will 2193 # break other packages using the cache if that directory is 2194 # removed, or if the value is a relative name. 2195 test -d ./--version && rmdir ./--version 2196 MKDIR_P="$ac_install_sh -d" 2197 fi 2198fi 2199{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2200echo "${ECHO_T}$MKDIR_P" >&6; } 2201 2202mkdir_p="$MKDIR_P" 2203case $mkdir_p in 2204 [\\/$]* | ?:[\\/]*) ;; 2205 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2206esac 2207 2208for ac_prog in gawk mawk nawk awk 2209do 2210 # Extract the first word of "$ac_prog", so it can be a program name with args. 2211set dummy $ac_prog; ac_word=$2 2212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2214if test "${ac_cv_prog_AWK+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216else 2217 if test -n "$AWK"; then 2218 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2219else 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2227 ac_cv_prog_AWK="$ac_prog" 2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2229 break 2 2230 fi 2231done 2232done 2233IFS=$as_save_IFS 2234 2235fi 2236fi 2237AWK=$ac_cv_prog_AWK 2238if test -n "$AWK"; then 2239 { echo "$as_me:$LINENO: result: $AWK" >&5 2240echo "${ECHO_T}$AWK" >&6; } 2241else 2242 { echo "$as_me:$LINENO: result: no" >&5 2243echo "${ECHO_T}no" >&6; } 2244fi 2245 2246 2247 test -n "$AWK" && break 2248done 2249 2250{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2251echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2252set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2253if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2254 echo $ECHO_N "(cached) $ECHO_C" >&6 2255else 2256 cat >conftest.make <<\_ACEOF 2257SHELL = /bin/sh 2258all: 2259 @echo '@@@%%%=$(MAKE)=@@@%%%' 2260_ACEOF 2261# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2262case `${MAKE-make} -f conftest.make 2>/dev/null` in 2263 *@@@%%%=?*=@@@%%%*) 2264 eval ac_cv_prog_make_${ac_make}_set=yes;; 2265 *) 2266 eval ac_cv_prog_make_${ac_make}_set=no;; 2267esac 2268rm -f conftest.make 2269fi 2270if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2271 { echo "$as_me:$LINENO: result: yes" >&5 2272echo "${ECHO_T}yes" >&6; } 2273 SET_MAKE= 2274else 2275 { echo "$as_me:$LINENO: result: no" >&5 2276echo "${ECHO_T}no" >&6; } 2277 SET_MAKE="MAKE=${MAKE-make}" 2278fi 2279 2280rm -rf .tst 2>/dev/null 2281mkdir .tst 2>/dev/null 2282if test -d .tst; then 2283 am__leading_dot=. 2284else 2285 am__leading_dot=_ 2286fi 2287rmdir .tst 2>/dev/null 2288 2289if test "`cd $srcdir && pwd`" != "`pwd`"; then 2290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2291 # is not polluted with repeated "-I." 2292 am__isrc=' -I$(srcdir)' 2293 # test to see if srcdir already configured 2294 if test -f $srcdir/config.status; then 2295 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2296echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2297 { (exit 1); exit 1; }; } 2298 fi 2299fi 2300 2301# test whether we have cygpath 2302if test -z "$CYGPATH_W"; then 2303 if (cygpath --version) >/dev/null 2>/dev/null; then 2304 CYGPATH_W='cygpath -w' 2305 else 2306 CYGPATH_W=echo 2307 fi 2308fi 2309 2310 2311# Define the identity of the package. 2312 PACKAGE='libXpm' 2313 VERSION='3.5.7' 2314 2315 2316cat >>confdefs.h <<_ACEOF 2317#define PACKAGE "$PACKAGE" 2318_ACEOF 2319 2320 2321cat >>confdefs.h <<_ACEOF 2322#define VERSION "$VERSION" 2323_ACEOF 2324 2325# Some tools Automake needs. 2326 2327ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2328 2329 2330AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2331 2332 2333AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2334 2335 2336AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2337 2338 2339MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2340 2341install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2342 2343# Installed binaries are usually stripped using `strip' when the user 2344# run `make install-strip'. However `strip' might not be the right 2345# tool to use in cross-compilation environments, therefore Automake 2346# will honor the `STRIP' environment variable to overrule this program. 2347if test "$cross_compiling" != no; then 2348 if test -n "$ac_tool_prefix"; then 2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2350set dummy ${ac_tool_prefix}strip; ac_word=$2 2351{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2353if test "${ac_cv_prog_STRIP+set}" = set; then 2354 echo $ECHO_N "(cached) $ECHO_C" >&6 2355else 2356 if test -n "$STRIP"; then 2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2358else 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370done 2371done 2372IFS=$as_save_IFS 2373 2374fi 2375fi 2376STRIP=$ac_cv_prog_STRIP 2377if test -n "$STRIP"; then 2378 { echo "$as_me:$LINENO: result: $STRIP" >&5 2379echo "${ECHO_T}$STRIP" >&6; } 2380else 2381 { echo "$as_me:$LINENO: result: no" >&5 2382echo "${ECHO_T}no" >&6; } 2383fi 2384 2385 2386fi 2387if test -z "$ac_cv_prog_STRIP"; then 2388 ac_ct_STRIP=$STRIP 2389 # Extract the first word of "strip", so it can be a program name with args. 2390set dummy strip; ac_word=$2 2391{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test -n "$ac_ct_STRIP"; then 2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2398else 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2406 ac_cv_prog_ac_ct_STRIP="strip" 2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410done 2411done 2412IFS=$as_save_IFS 2413 2414fi 2415fi 2416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2417if test -n "$ac_ct_STRIP"; then 2418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2419echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2420else 2421 { echo "$as_me:$LINENO: result: no" >&5 2422echo "${ECHO_T}no" >&6; } 2423fi 2424 2425 if test "x$ac_ct_STRIP" = x; then 2426 STRIP=":" 2427 else 2428 case $cross_compiling:$ac_tool_warned in 2429yes:) 2430{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2431whose name does not start with the host triplet. If you think this 2432configuration is useful to you, please write to autoconf@gnu.org." >&5 2433echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2434whose name does not start with the host triplet. If you think this 2435configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2436ac_tool_warned=yes ;; 2437esac 2438 STRIP=$ac_ct_STRIP 2439 fi 2440else 2441 STRIP="$ac_cv_prog_STRIP" 2442fi 2443 2444fi 2445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2446 2447# We need awk for the "check" target. The system "awk" is bad on 2448# some platforms. 2449# Always define AMTAR for backward compatibility. 2450 2451AMTAR=${AMTAR-"${am_missing_run}tar"} 2452 2453am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2454 2455 2456 2457 2458 2459 2460{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2461echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2462 # Check whether --enable-maintainer-mode was given. 2463if test "${enable_maintainer_mode+set}" = set; then 2464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2465else 2466 USE_MAINTAINER_MODE=no 2467fi 2468 2469 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2470echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2471 if test $USE_MAINTAINER_MODE = yes; then 2472 MAINTAINER_MODE_TRUE= 2473 MAINTAINER_MODE_FALSE='#' 2474else 2475 MAINTAINER_MODE_TRUE='#' 2476 MAINTAINER_MODE_FALSE= 2477fi 2478 2479 MAINT=$MAINTAINER_MODE_TRUE 2480 2481 2482 2483ac_config_headers="$ac_config_headers config.h" 2484 2485 2486# Checks for programs. 2487# Check whether --enable-shared was given. 2488if test "${enable_shared+set}" = set; then 2489 enableval=$enable_shared; p=${PACKAGE-default} 2490 case $enableval in 2491 yes) enable_shared=yes ;; 2492 no) enable_shared=no ;; 2493 *) 2494 enable_shared=no 2495 # Look at the argument we got. We use all the common list separators. 2496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2497 for pkg in $enableval; do 2498 IFS="$lt_save_ifs" 2499 if test "X$pkg" = "X$p"; then 2500 enable_shared=yes 2501 fi 2502 done 2503 IFS="$lt_save_ifs" 2504 ;; 2505 esac 2506else 2507 enable_shared=yes 2508fi 2509 2510 2511# Check whether --enable-static was given. 2512if test "${enable_static+set}" = set; then 2513 enableval=$enable_static; p=${PACKAGE-default} 2514 case $enableval in 2515 yes) enable_static=yes ;; 2516 no) enable_static=no ;; 2517 *) 2518 enable_static=no 2519 # Look at the argument we got. We use all the common list separators. 2520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2521 for pkg in $enableval; do 2522 IFS="$lt_save_ifs" 2523 if test "X$pkg" = "X$p"; then 2524 enable_static=yes 2525 fi 2526 done 2527 IFS="$lt_save_ifs" 2528 ;; 2529 esac 2530else 2531 enable_static=yes 2532fi 2533 2534 2535# Check whether --enable-fast-install was given. 2536if test "${enable_fast_install+set}" = set; then 2537 enableval=$enable_fast_install; p=${PACKAGE-default} 2538 case $enableval in 2539 yes) enable_fast_install=yes ;; 2540 no) enable_fast_install=no ;; 2541 *) 2542 enable_fast_install=no 2543 # Look at the argument we got. We use all the common list separators. 2544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2545 for pkg in $enableval; do 2546 IFS="$lt_save_ifs" 2547 if test "X$pkg" = "X$p"; then 2548 enable_fast_install=yes 2549 fi 2550 done 2551 IFS="$lt_save_ifs" 2552 ;; 2553 esac 2554else 2555 enable_fast_install=yes 2556fi 2557 2558 2559# Make sure we can run config.sub. 2560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2561 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2562echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2563 { (exit 1); exit 1; }; } 2564 2565{ echo "$as_me:$LINENO: checking build system type" >&5 2566echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2567if test "${ac_cv_build+set}" = set; then 2568 echo $ECHO_N "(cached) $ECHO_C" >&6 2569else 2570 ac_build_alias=$build_alias 2571test "x$ac_build_alias" = x && 2572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2573test "x$ac_build_alias" = x && 2574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2575echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2576 { (exit 1); exit 1; }; } 2577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2579echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2580 { (exit 1); exit 1; }; } 2581 2582fi 2583{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2584echo "${ECHO_T}$ac_cv_build" >&6; } 2585case $ac_cv_build in 2586*-*-*) ;; 2587*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2588echo "$as_me: error: invalid value of canonical build" >&2;} 2589 { (exit 1); exit 1; }; };; 2590esac 2591build=$ac_cv_build 2592ac_save_IFS=$IFS; IFS='-' 2593set x $ac_cv_build 2594shift 2595build_cpu=$1 2596build_vendor=$2 2597shift; shift 2598# Remember, the first character of IFS is used to create $*, 2599# except with old shells: 2600build_os=$* 2601IFS=$ac_save_IFS 2602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2603 2604 2605{ echo "$as_me:$LINENO: checking host system type" >&5 2606echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2607if test "${ac_cv_host+set}" = set; then 2608 echo $ECHO_N "(cached) $ECHO_C" >&6 2609else 2610 if test "x$host_alias" = x; then 2611 ac_cv_host=$ac_cv_build 2612else 2613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2614 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2615echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2616 { (exit 1); exit 1; }; } 2617fi 2618 2619fi 2620{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2621echo "${ECHO_T}$ac_cv_host" >&6; } 2622case $ac_cv_host in 2623*-*-*) ;; 2624*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2625echo "$as_me: error: invalid value of canonical host" >&2;} 2626 { (exit 1); exit 1; }; };; 2627esac 2628host=$ac_cv_host 2629ac_save_IFS=$IFS; IFS='-' 2630set x $ac_cv_host 2631shift 2632host_cpu=$1 2633host_vendor=$2 2634shift; shift 2635# Remember, the first character of IFS is used to create $*, 2636# except with old shells: 2637host_os=$* 2638IFS=$ac_save_IFS 2639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2640 2641 2642DEPDIR="${am__leading_dot}deps" 2643 2644ac_config_commands="$ac_config_commands depfiles" 2645 2646 2647am_make=${MAKE-make} 2648cat > confinc << 'END' 2649am__doit: 2650 @echo done 2651.PHONY: am__doit 2652END 2653# If we don't find an include directive, just comment out the code. 2654{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2655echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2656am__include="#" 2657am__quote= 2658_am_result=none 2659# First try GNU make style include. 2660echo "include confinc" > confmf 2661# We grep out `Entering directory' and `Leaving directory' 2662# messages which can occur if `w' ends up in MAKEFLAGS. 2663# In particular we don't look at `^make:' because GNU make might 2664# be invoked under some other name (usually "gmake"), in which 2665# case it prints its new name instead of `make'. 2666if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2667 am__include=include 2668 am__quote= 2669 _am_result=GNU 2670fi 2671# Now try BSD make style include. 2672if test "$am__include" = "#"; then 2673 echo '.include "confinc"' > confmf 2674 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2675 am__include=.include 2676 am__quote="\"" 2677 _am_result=BSD 2678 fi 2679fi 2680 2681 2682{ echo "$as_me:$LINENO: result: $_am_result" >&5 2683echo "${ECHO_T}$_am_result" >&6; } 2684rm -f confinc confmf 2685 2686# Check whether --enable-dependency-tracking was given. 2687if test "${enable_dependency_tracking+set}" = set; then 2688 enableval=$enable_dependency_tracking; 2689fi 2690 2691if test "x$enable_dependency_tracking" != xno; then 2692 am_depcomp="$ac_aux_dir/depcomp" 2693 AMDEPBACKSLASH='\' 2694fi 2695 if test "x$enable_dependency_tracking" != xno; then 2696 AMDEP_TRUE= 2697 AMDEP_FALSE='#' 2698else 2699 AMDEP_TRUE='#' 2700 AMDEP_FALSE= 2701fi 2702 2703 2704ac_ext=c 2705ac_cpp='$CPP $CPPFLAGS' 2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2708ac_compiler_gnu=$ac_cv_c_compiler_gnu 2709if test -n "$ac_tool_prefix"; then 2710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2711set dummy ${ac_tool_prefix}gcc; ac_word=$2 2712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2714if test "${ac_cv_prog_CC+set}" = set; then 2715 echo $ECHO_N "(cached) $ECHO_C" >&6 2716else 2717 if test -n "$CC"; then 2718 ac_cv_prog_CC="$CC" # Let the user override the test. 2719else 2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 test -z "$as_dir" && as_dir=. 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2727 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { echo "$as_me:$LINENO: result: $CC" >&5 2740echo "${ECHO_T}$CC" >&6; } 2741else 2742 { echo "$as_me:$LINENO: result: no" >&5 2743echo "${ECHO_T}no" >&6; } 2744fi 2745 2746 2747fi 2748if test -z "$ac_cv_prog_CC"; then 2749 ac_ct_CC=$CC 2750 # Extract the first word of "gcc", so it can be a program name with args. 2751set dummy gcc; ac_word=$2 2752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 if test -n "$ac_ct_CC"; then 2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2767 ac_cv_prog_ac_ct_CC="gcc" 2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777ac_ct_CC=$ac_cv_prog_ac_ct_CC 2778if test -n "$ac_ct_CC"; then 2779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2780echo "${ECHO_T}$ac_ct_CC" >&6; } 2781else 2782 { echo "$as_me:$LINENO: result: no" >&5 2783echo "${ECHO_T}no" >&6; } 2784fi 2785 2786 if test "x$ac_ct_CC" = x; then 2787 CC="" 2788 else 2789 case $cross_compiling:$ac_tool_warned in 2790yes:) 2791{ echo "$as_me:$LINENO: 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." >&5 2794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2795whose name does not start with the host triplet. If you think this 2796configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2797ac_tool_warned=yes ;; 2798esac 2799 CC=$ac_ct_CC 2800 fi 2801else 2802 CC="$ac_cv_prog_CC" 2803fi 2804 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2808set dummy ${ac_tool_prefix}cc; ac_word=$2 2809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2811if test "${ac_cv_prog_CC+set}" = set; then 2812 echo $ECHO_N "(cached) $ECHO_C" >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_CC="${ac_tool_prefix}cc" 2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834CC=$ac_cv_prog_CC 2835if test -n "$CC"; then 2836 { echo "$as_me:$LINENO: result: $CC" >&5 2837echo "${ECHO_T}$CC" >&6; } 2838else 2839 { echo "$as_me:$LINENO: result: no" >&5 2840echo "${ECHO_T}no" >&6; } 2841fi 2842 2843 2844 fi 2845fi 2846if test -z "$CC"; then 2847 # Extract the first word of "cc", so it can be a program name with args. 2848set dummy cc; ac_word=$2 2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851if test "${ac_cv_prog_CC+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857 ac_prog_rejected=no 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2866 ac_prog_rejected=yes 2867 continue 2868 fi 2869 ac_cv_prog_CC="cc" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874done 2875IFS=$as_save_IFS 2876 2877if test $ac_prog_rejected = yes; then 2878 # We found a bogon in the path, so make sure we never use it. 2879 set dummy $ac_cv_prog_CC 2880 shift 2881 if test $# != 0; then 2882 # We chose a different compiler from the bogus one. 2883 # However, it has the same basename, so the bogon will be chosen 2884 # first if we set CC to just the basename; use the full file name. 2885 shift 2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2887 fi 2888fi 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { echo "$as_me:$LINENO: result: $CC" >&5 2894echo "${ECHO_T}$CC" >&6; } 2895else 2896 { echo "$as_me:$LINENO: result: no" >&5 2897echo "${ECHO_T}no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$CC"; then 2903 if test -n "$ac_tool_prefix"; then 2904 for ac_prog in cl.exe 2905 do 2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2908{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2910if test "${ac_cv_prog_CC+set}" = set; then 2911 echo $ECHO_N "(cached) $ECHO_C" >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933CC=$ac_cv_prog_CC 2934if test -n "$CC"; then 2935 { echo "$as_me:$LINENO: result: $CC" >&5 2936echo "${ECHO_T}$CC" >&6; } 2937else 2938 { echo "$as_me:$LINENO: result: no" >&5 2939echo "${ECHO_T}no" >&6; } 2940fi 2941 2942 2943 test -n "$CC" && break 2944 done 2945fi 2946if test -z "$CC"; then 2947 ac_ct_CC=$CC 2948 for ac_prog in cl.exe 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2955 echo $ECHO_N "(cached) $ECHO_C" >&6 2956else 2957 if test -n "$ac_ct_CC"; then 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_ac_ct_CC="$ac_prog" 2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978if test -n "$ac_ct_CC"; then 2979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2980echo "${ECHO_T}$ac_ct_CC" >&6; } 2981else 2982 { echo "$as_me:$LINENO: result: no" >&5 2983echo "${ECHO_T}no" >&6; } 2984fi 2985 2986 2987 test -n "$ac_ct_CC" && break 2988done 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994yes:) 2995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2996whose name does not start with the host triplet. If you think this 2997configuration is useful to you, please write to autoconf@gnu.org." >&5 2998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2999whose name does not start with the host triplet. If you think this 3000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3001ac_tool_warned=yes ;; 3002esac 3003 CC=$ac_ct_CC 3004 fi 3005fi 3006 3007fi 3008 3009 3010test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3011See \`config.log' for more details." >&5 3012echo "$as_me: error: no acceptable C compiler found in \$PATH 3013See \`config.log' for more details." >&2;} 3014 { (exit 1); exit 1; }; } 3015 3016# Provide some information about the compiler. 3017echo "$as_me:$LINENO: checking for C compiler version" >&5 3018ac_compiler=`set X $ac_compile; echo $2` 3019{ (ac_try="$ac_compiler --version >&5" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3025 (eval "$ac_compiler --version >&5") 2>&5 3026 ac_status=$? 3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } 3029{ (ac_try="$ac_compiler -v >&5" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compiler -v >&5") 2>&5 3036 ac_status=$? 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } 3039{ (ac_try="$ac_compiler -V >&5" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3045 (eval "$ac_compiler -V >&5") 2>&5 3046 ac_status=$? 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } 3049 3050cat >conftest.$ac_ext <<_ACEOF 3051/* confdefs.h. */ 3052_ACEOF 3053cat confdefs.h >>conftest.$ac_ext 3054cat >>conftest.$ac_ext <<_ACEOF 3055/* end confdefs.h. */ 3056 3057int 3058main () 3059{ 3060 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065ac_clean_files_save=$ac_clean_files 3066ac_clean_files="$ac_clean_files a.out a.exe b.out" 3067# Try to create an executable without -o first, disregard a.out. 3068# It will help us diagnose broken compilers, and finding out an intuition 3069# of exeext. 3070{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3071echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3072ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3073# 3074# List of possible output files, starting from the most likely. 3075# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3076# only as a last resort. b.out is created by i960 compilers. 3077ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3078# 3079# The IRIX 6 linker writes into existing files which may not be 3080# executable, retaining their permissions. Remove them first so a 3081# subsequent execution test works. 3082ac_rmfiles= 3083for ac_file in $ac_files 3084do 3085 case $ac_file in 3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3088 esac 3089done 3090rm -f $ac_rmfiles 3091 3092if { (ac_try="$ac_link_default" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3098 (eval "$ac_link_default") 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; then 3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3103# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3104# in a Makefile. We should not override ac_cv_exeext if it was cached, 3105# so that the user can short-circuit this test for compilers unknown to 3106# Autoconf. 3107for ac_file in $ac_files '' 3108do 3109 test -f "$ac_file" || continue 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3112 ;; 3113 [ab].out ) 3114 # We found the default executable, but exeext='' is most 3115 # certainly right. 3116 break;; 3117 *.* ) 3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3119 then :; else 3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 fi 3122 # We set ac_cv_exeext here because the later test for it is not 3123 # safe: cross compilers may not add the suffix if given an `-o' 3124 # argument, so we may need to know it at that point already. 3125 # Even if this section looks crufty: it has the advantage of 3126 # actually working. 3127 break;; 3128 * ) 3129 break;; 3130 esac 3131done 3132test "$ac_cv_exeext" = no && ac_cv_exeext= 3133 3134else 3135 ac_file='' 3136fi 3137 3138{ echo "$as_me:$LINENO: result: $ac_file" >&5 3139echo "${ECHO_T}$ac_file" >&6; } 3140if test -z "$ac_file"; then 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3145See \`config.log' for more details." >&5 3146echo "$as_me: error: C compiler cannot create executables 3147See \`config.log' for more details." >&2;} 3148 { (exit 77); exit 77; }; } 3149fi 3150 3151ac_exeext=$ac_cv_exeext 3152 3153# Check that the compiler produces executables we can run. If not, either 3154# the compiler is broken, or we cross compile. 3155{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3158# If not cross compiling, check that we can run a simple program. 3159if test "$cross_compiling" != yes; then 3160 if { ac_try='./$ac_file' 3161 { (case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_try") 2>&5 3167 ac_status=$? 3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); }; }; then 3170 cross_compiling=no 3171 else 3172 if test "$cross_compiling" = maybe; then 3173 cross_compiling=yes 3174 else 3175 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3176If you meant to cross compile, use \`--host'. 3177See \`config.log' for more details." >&5 3178echo "$as_me: error: cannot run C compiled programs. 3179If you meant to cross compile, use \`--host'. 3180See \`config.log' for more details." >&2;} 3181 { (exit 1); exit 1; }; } 3182 fi 3183 fi 3184fi 3185{ echo "$as_me:$LINENO: result: yes" >&5 3186echo "${ECHO_T}yes" >&6; } 3187 3188rm -f a.out a.exe conftest$ac_cv_exeext b.out 3189ac_clean_files=$ac_clean_files_save 3190# Check that the compiler produces executables we can run. If not, either 3191# the compiler is broken, or we cross compile. 3192{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3193echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3194{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3195echo "${ECHO_T}$cross_compiling" >&6; } 3196 3197{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3198echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3199if { (ac_try="$ac_link" 3200case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203esac 3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3205 (eval "$ac_link") 2>&5 3206 ac_status=$? 3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 (exit $ac_status); }; then 3209 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3210# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3211# work properly (i.e., refer to `conftest.exe'), while it won't with 3212# `rm'. 3213for ac_file in conftest.exe conftest conftest.*; do 3214 test -f "$ac_file" || continue 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3218 break;; 3219 * ) break;; 3220 esac 3221done 3222else 3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3224See \`config.log' for more details." >&5 3225echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3226See \`config.log' for more details." >&2;} 3227 { (exit 1); exit 1; }; } 3228fi 3229 3230rm -f conftest$ac_cv_exeext 3231{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3232echo "${ECHO_T}$ac_cv_exeext" >&6; } 3233 3234rm -f conftest.$ac_ext 3235EXEEXT=$ac_cv_exeext 3236ac_exeext=$EXEEXT 3237{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3238echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3239if test "${ac_cv_objext+set}" = set; then 3240 echo $ECHO_N "(cached) $ECHO_C" >&6 3241else 3242 cat >conftest.$ac_ext <<_ACEOF 3243/* confdefs.h. */ 3244_ACEOF 3245cat confdefs.h >>conftest.$ac_ext 3246cat >>conftest.$ac_ext <<_ACEOF 3247/* end confdefs.h. */ 3248 3249int 3250main () 3251{ 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257rm -f conftest.o conftest.obj 3258if { (ac_try="$ac_compile" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3264 (eval "$ac_compile") 2>&5 3265 ac_status=$? 3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); }; then 3268 for ac_file in conftest.o conftest.obj conftest.*; do 3269 test -f "$ac_file" || continue; 3270 case $ac_file in 3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3273 break;; 3274 esac 3275done 3276else 3277 echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3281See \`config.log' for more details." >&5 3282echo "$as_me: error: cannot compute suffix of object files: cannot compile 3283See \`config.log' for more details." >&2;} 3284 { (exit 1); exit 1; }; } 3285fi 3286 3287rm -f conftest.$ac_cv_objext conftest.$ac_ext 3288fi 3289{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3290echo "${ECHO_T}$ac_cv_objext" >&6; } 3291OBJEXT=$ac_cv_objext 3292ac_objext=$OBJEXT 3293{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3294echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3295if test "${ac_cv_c_compiler_gnu+set}" = set; then 3296 echo $ECHO_N "(cached) $ECHO_C" >&6 3297else 3298 cat >conftest.$ac_ext <<_ACEOF 3299/* confdefs.h. */ 3300_ACEOF 3301cat confdefs.h >>conftest.$ac_ext 3302cat >>conftest.$ac_ext <<_ACEOF 3303/* end confdefs.h. */ 3304 3305int 3306main () 3307{ 3308#ifndef __GNUC__ 3309 choke me 3310#endif 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316rm -f conftest.$ac_objext 3317if { (ac_try="$ac_compile" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3323 (eval "$ac_compile") 2>conftest.er1 3324 ac_status=$? 3325 grep -v '^ *+' conftest.er1 >conftest.err 3326 rm -f conftest.er1 3327 cat conftest.err >&5 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } && { 3330 test -z "$ac_c_werror_flag" || 3331 test ! -s conftest.err 3332 } && test -s conftest.$ac_objext; then 3333 ac_compiler_gnu=yes 3334else 3335 echo "$as_me: failed program was:" >&5 3336sed 's/^/| /' conftest.$ac_ext >&5 3337 3338 ac_compiler_gnu=no 3339fi 3340 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342ac_cv_c_compiler_gnu=$ac_compiler_gnu 3343 3344fi 3345{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3346echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3347GCC=`test $ac_compiler_gnu = yes && echo yes` 3348ac_test_CFLAGS=${CFLAGS+set} 3349ac_save_CFLAGS=$CFLAGS 3350{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3352if test "${ac_cv_prog_cc_g+set}" = set; then 3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3354else 3355 ac_save_c_werror_flag=$ac_c_werror_flag 3356 ac_c_werror_flag=yes 3357 ac_cv_prog_cc_g=no 3358 CFLAGS="-g" 3359 cat >conftest.$ac_ext <<_ACEOF 3360/* confdefs.h. */ 3361_ACEOF 3362cat confdefs.h >>conftest.$ac_ext 3363cat >>conftest.$ac_ext <<_ACEOF 3364/* end confdefs.h. */ 3365 3366int 3367main () 3368{ 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374rm -f conftest.$ac_objext 3375if { (ac_try="$ac_compile" 3376case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379esac 3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3381 (eval "$ac_compile") 2>conftest.er1 3382 ac_status=$? 3383 grep -v '^ *+' conftest.er1 >conftest.err 3384 rm -f conftest.er1 3385 cat conftest.err >&5 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); } && { 3388 test -z "$ac_c_werror_flag" || 3389 test ! -s conftest.err 3390 } && test -s conftest.$ac_objext; then 3391 ac_cv_prog_cc_g=yes 3392else 3393 echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396 CFLAGS="" 3397 cat >conftest.$ac_ext <<_ACEOF 3398/* confdefs.h. */ 3399_ACEOF 3400cat confdefs.h >>conftest.$ac_ext 3401cat >>conftest.$ac_ext <<_ACEOF 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412rm -f conftest.$ac_objext 3413if { (ac_try="$ac_compile" 3414case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417esac 3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3419 (eval "$ac_compile") 2>conftest.er1 3420 ac_status=$? 3421 grep -v '^ *+' conftest.er1 >conftest.err 3422 rm -f conftest.er1 3423 cat conftest.err >&5 3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3425 (exit $ac_status); } && { 3426 test -z "$ac_c_werror_flag" || 3427 test ! -s conftest.err 3428 } && test -s conftest.$ac_objext; then 3429 : 3430else 3431 echo "$as_me: failed program was:" >&5 3432sed 's/^/| /' conftest.$ac_ext >&5 3433 3434 ac_c_werror_flag=$ac_save_c_werror_flag 3435 CFLAGS="-g" 3436 cat >conftest.$ac_ext <<_ACEOF 3437/* confdefs.h. */ 3438_ACEOF 3439cat confdefs.h >>conftest.$ac_ext 3440cat >>conftest.$ac_ext <<_ACEOF 3441/* end confdefs.h. */ 3442 3443int 3444main () 3445{ 3446 3447 ; 3448 return 0; 3449} 3450_ACEOF 3451rm -f conftest.$ac_objext 3452if { (ac_try="$ac_compile" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3458 (eval "$ac_compile") 2>conftest.er1 3459 ac_status=$? 3460 grep -v '^ *+' conftest.er1 >conftest.err 3461 rm -f conftest.er1 3462 cat conftest.err >&5 3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3464 (exit $ac_status); } && { 3465 test -z "$ac_c_werror_flag" || 3466 test ! -s conftest.err 3467 } && test -s conftest.$ac_objext; then 3468 ac_cv_prog_cc_g=yes 3469else 3470 echo "$as_me: failed program was:" >&5 3471sed 's/^/| /' conftest.$ac_ext >&5 3472 3473 3474fi 3475 3476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3477fi 3478 3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3480fi 3481 3482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3483 ac_c_werror_flag=$ac_save_c_werror_flag 3484fi 3485{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3487if test "$ac_test_CFLAGS" = set; then 3488 CFLAGS=$ac_save_CFLAGS 3489elif test $ac_cv_prog_cc_g = yes; then 3490 if test "$GCC" = yes; then 3491 CFLAGS="-g -O2" 3492 else 3493 CFLAGS="-g" 3494 fi 3495else 3496 if test "$GCC" = yes; then 3497 CFLAGS="-O2" 3498 else 3499 CFLAGS= 3500 fi 3501fi 3502{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3503echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3504if test "${ac_cv_prog_cc_c89+set}" = set; then 3505 echo $ECHO_N "(cached) $ECHO_C" >&6 3506else 3507 ac_cv_prog_cc_c89=no 3508ac_save_CC=$CC 3509cat >conftest.$ac_ext <<_ACEOF 3510/* confdefs.h. */ 3511_ACEOF 3512cat confdefs.h >>conftest.$ac_ext 3513cat >>conftest.$ac_ext <<_ACEOF 3514/* end confdefs.h. */ 3515#include <stdarg.h> 3516#include <stdio.h> 3517#include <sys/types.h> 3518#include <sys/stat.h> 3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3520struct buf { int x; }; 3521FILE * (*rcsopen) (struct buf *, struct stat *, int); 3522static char *e (p, i) 3523 char **p; 3524 int i; 3525{ 3526 return p[i]; 3527} 3528static char *f (char * (*g) (char **, int), char **p, ...) 3529{ 3530 char *s; 3531 va_list v; 3532 va_start (v,p); 3533 s = g (p, va_arg (v,int)); 3534 va_end (v); 3535 return s; 3536} 3537 3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3539 function prototypes and stuff, but not '\xHH' hex character constants. 3540 These don't provoke an error unfortunately, instead are silently treated 3541 as 'x'. The following induces an error, until -std is added to get 3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3543 array size at least. It's necessary to write '\x00'==0 to get something 3544 that's true only with -std. */ 3545int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3546 3547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3548 inside strings and character constants. */ 3549#define FOO(x) 'x' 3550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3551 3552int test (int i, double x); 3553struct s1 {int (*f) (int a);}; 3554struct s2 {int (*f) (double a);}; 3555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3556int argc; 3557char **argv; 3558int 3559main () 3560{ 3561return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3568do 3569 CC="$ac_save_CC $ac_arg" 3570 rm -f conftest.$ac_objext 3571if { (ac_try="$ac_compile" 3572case "(($ac_try" in 3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *) ac_try_echo=$ac_try;; 3575esac 3576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3577 (eval "$ac_compile") 2>conftest.er1 3578 ac_status=$? 3579 grep -v '^ *+' conftest.er1 >conftest.err 3580 rm -f conftest.er1 3581 cat conftest.err >&5 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); } && { 3584 test -z "$ac_c_werror_flag" || 3585 test ! -s conftest.err 3586 } && test -s conftest.$ac_objext; then 3587 ac_cv_prog_cc_c89=$ac_arg 3588else 3589 echo "$as_me: failed program was:" >&5 3590sed 's/^/| /' conftest.$ac_ext >&5 3591 3592 3593fi 3594 3595rm -f core conftest.err conftest.$ac_objext 3596 test "x$ac_cv_prog_cc_c89" != "xno" && break 3597done 3598rm -f conftest.$ac_ext 3599CC=$ac_save_CC 3600 3601fi 3602# AC_CACHE_VAL 3603case "x$ac_cv_prog_cc_c89" in 3604 x) 3605 { echo "$as_me:$LINENO: result: none needed" >&5 3606echo "${ECHO_T}none needed" >&6; } ;; 3607 xno) 3608 { echo "$as_me:$LINENO: result: unsupported" >&5 3609echo "${ECHO_T}unsupported" >&6; } ;; 3610 *) 3611 CC="$CC $ac_cv_prog_cc_c89" 3612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3613echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3614esac 3615 3616 3617ac_ext=c 3618ac_cpp='$CPP $CPPFLAGS' 3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3621ac_compiler_gnu=$ac_cv_c_compiler_gnu 3622 3623depcc="$CC" am_compiler_list= 3624 3625{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3626echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3627if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3628 echo $ECHO_N "(cached) $ECHO_C" >&6 3629else 3630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3631 # We make a subdir and do the tests there. Otherwise we can end up 3632 # making bogus files that we don't know about and never remove. For 3633 # instance it was reported that on HP-UX the gcc test will end up 3634 # making a dummy file named `D' -- because `-MD' means `put the output 3635 # in D'. 3636 mkdir conftest.dir 3637 # Copy depcomp to subdir because otherwise we won't find it if we're 3638 # using a relative directory. 3639 cp "$am_depcomp" conftest.dir 3640 cd conftest.dir 3641 # We will build objects and dependencies in a subdirectory because 3642 # it helps to detect inapplicable dependency modes. For instance 3643 # both Tru64's cc and ICC support -MD to output dependencies as a 3644 # side effect of compilation, but ICC will put the dependencies in 3645 # the current directory while Tru64 will put them in the object 3646 # directory. 3647 mkdir sub 3648 3649 am_cv_CC_dependencies_compiler_type=none 3650 if test "$am_compiler_list" = ""; then 3651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3652 fi 3653 for depmode in $am_compiler_list; do 3654 # Setup a source with many dependencies, because some compilers 3655 # like to wrap large dependency lists on column 80 (with \), and 3656 # we should not choose a depcomp mode which is confused by this. 3657 # 3658 # We need to recreate these files for each test, as the compiler may 3659 # overwrite some of them when testing with obscure command lines. 3660 # This happens at least with the AIX C compiler. 3661 : > sub/conftest.c 3662 for i in 1 2 3 4 5 6; do 3663 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3665 # Solaris 8's {/usr,}/bin/sh. 3666 touch sub/conftst$i.h 3667 done 3668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3669 3670 case $depmode in 3671 nosideeffect) 3672 # after this tag, mechanisms are not by side-effect, so they'll 3673 # only be used when explicitly requested 3674 if test "x$enable_dependency_tracking" = xyes; then 3675 continue 3676 else 3677 break 3678 fi 3679 ;; 3680 none) break ;; 3681 esac 3682 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3683 # mode. It turns out that the SunPro C++ compiler does not properly 3684 # handle `-M -o', and we need to detect this. 3685 if depmode=$depmode \ 3686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3689 >/dev/null 2>conftest.err && 3690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3692 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3694 # icc doesn't choke on unknown options, it will just issue warnings 3695 # or remarks (even with -Werror). So we grep stderr for any message 3696 # that says an option was ignored or not supported. 3697 # When given -MP, icc 7.0 and 7.1 complain thusly: 3698 # icc: Command line warning: ignoring option '-M'; no argument required 3699 # The diagnosis changed in icc 8.0: 3700 # icc: Command line remark: option '-MP' not supported 3701 if (grep 'ignoring option' conftest.err || 3702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3703 am_cv_CC_dependencies_compiler_type=$depmode 3704 break 3705 fi 3706 fi 3707 done 3708 3709 cd .. 3710 rm -rf conftest.dir 3711else 3712 am_cv_CC_dependencies_compiler_type=none 3713fi 3714 3715fi 3716{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3717echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3718CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3719 3720 if 3721 test "x$enable_dependency_tracking" != xno \ 3722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3723 am__fastdepCC_TRUE= 3724 am__fastdepCC_FALSE='#' 3725else 3726 am__fastdepCC_TRUE='#' 3727 am__fastdepCC_FALSE= 3728fi 3729 3730 3731{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3732echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3733if test "${lt_cv_path_SED+set}" = set; then 3734 echo $ECHO_N "(cached) $ECHO_C" >&6 3735else 3736 # Loop through the user's path and test for sed and gsed. 3737# Then use that list of sed's as ones to test for truncation. 3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3739for as_dir in $PATH 3740do 3741 IFS=$as_save_IFS 3742 test -z "$as_dir" && as_dir=. 3743 for lt_ac_prog in sed gsed; do 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3746 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3747 fi 3748 done 3749 done 3750done 3751lt_ac_max=0 3752lt_ac_count=0 3753# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3754# along with /bin/sed that truncates output. 3755for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3756 test ! -f $lt_ac_sed && continue 3757 cat /dev/null > conftest.in 3758 lt_ac_count=0 3759 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3760 # Check for GNU sed and select it if it is found. 3761 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3762 lt_cv_path_SED=$lt_ac_sed 3763 break 3764 fi 3765 while true; do 3766 cat conftest.in conftest.in >conftest.tmp 3767 mv conftest.tmp conftest.in 3768 cp conftest.in conftest.nl 3769 echo >>conftest.nl 3770 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3771 cmp -s conftest.out conftest.nl || break 3772 # 10000 chars as input seems more than enough 3773 test $lt_ac_count -gt 10 && break 3774 lt_ac_count=`expr $lt_ac_count + 1` 3775 if test $lt_ac_count -gt $lt_ac_max; then 3776 lt_ac_max=$lt_ac_count 3777 lt_cv_path_SED=$lt_ac_sed 3778 fi 3779 done 3780done 3781 3782fi 3783 3784SED=$lt_cv_path_SED 3785{ echo "$as_me:$LINENO: result: $SED" >&5 3786echo "${ECHO_T}$SED" >&6; } 3787 3788{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3789echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3790if test "${ac_cv_path_GREP+set}" = set; then 3791 echo $ECHO_N "(cached) $ECHO_C" >&6 3792else 3793 # Extract the first word of "grep ggrep" to use in msg output 3794if test -z "$GREP"; then 3795set dummy grep ggrep; ac_prog_name=$2 3796if test "${ac_cv_path_GREP+set}" = set; then 3797 echo $ECHO_N "(cached) $ECHO_C" >&6 3798else 3799 ac_path_GREP_found=false 3800# Loop through the user's path and test for each of PROGNAME-LIST 3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3803do 3804 IFS=$as_save_IFS 3805 test -z "$as_dir" && as_dir=. 3806 for ac_prog in grep ggrep; do 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3810 # Check for GNU ac_path_GREP and select it if it is found. 3811 # Check for GNU $ac_path_GREP 3812case `"$ac_path_GREP" --version 2>&1` in 3813*GNU*) 3814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3815*) 3816 ac_count=0 3817 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3818 while : 3819 do 3820 cat "conftest.in" "conftest.in" >"conftest.tmp" 3821 mv "conftest.tmp" "conftest.in" 3822 cp "conftest.in" "conftest.nl" 3823 echo 'GREP' >> "conftest.nl" 3824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3826 ac_count=`expr $ac_count + 1` 3827 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3828 # Best one so far, save it but keep looking for a better one 3829 ac_cv_path_GREP="$ac_path_GREP" 3830 ac_path_GREP_max=$ac_count 3831 fi 3832 # 10*(2^10) chars as input seems more than enough 3833 test $ac_count -gt 10 && break 3834 done 3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3836esac 3837 3838 3839 $ac_path_GREP_found && break 3 3840 done 3841done 3842 3843done 3844IFS=$as_save_IFS 3845 3846 3847fi 3848 3849GREP="$ac_cv_path_GREP" 3850if test -z "$GREP"; then 3851 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3852echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3853 { (exit 1); exit 1; }; } 3854fi 3855 3856else 3857 ac_cv_path_GREP=$GREP 3858fi 3859 3860 3861fi 3862{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3863echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3864 GREP="$ac_cv_path_GREP" 3865 3866 3867{ echo "$as_me:$LINENO: checking for egrep" >&5 3868echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3869if test "${ac_cv_path_EGREP+set}" = set; then 3870 echo $ECHO_N "(cached) $ECHO_C" >&6 3871else 3872 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3873 then ac_cv_path_EGREP="$GREP -E" 3874 else 3875 # Extract the first word of "egrep" to use in msg output 3876if test -z "$EGREP"; then 3877set dummy egrep; ac_prog_name=$2 3878if test "${ac_cv_path_EGREP+set}" = set; then 3879 echo $ECHO_N "(cached) $ECHO_C" >&6 3880else 3881 ac_path_EGREP_found=false 3882# Loop through the user's path and test for each of PROGNAME-LIST 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_prog in egrep; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3892 # Check for GNU ac_path_EGREP and select it if it is found. 3893 # Check for GNU $ac_path_EGREP 3894case `"$ac_path_EGREP" --version 2>&1` in 3895*GNU*) 3896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3897*) 3898 ac_count=0 3899 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3900 while : 3901 do 3902 cat "conftest.in" "conftest.in" >"conftest.tmp" 3903 mv "conftest.tmp" "conftest.in" 3904 cp "conftest.in" "conftest.nl" 3905 echo 'EGREP' >> "conftest.nl" 3906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3908 ac_count=`expr $ac_count + 1` 3909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3910 # Best one so far, save it but keep looking for a better one 3911 ac_cv_path_EGREP="$ac_path_EGREP" 3912 ac_path_EGREP_max=$ac_count 3913 fi 3914 # 10*(2^10) chars as input seems more than enough 3915 test $ac_count -gt 10 && break 3916 done 3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3918esac 3919 3920 3921 $ac_path_EGREP_found && break 3 3922 done 3923done 3924 3925done 3926IFS=$as_save_IFS 3927 3928 3929fi 3930 3931EGREP="$ac_cv_path_EGREP" 3932if test -z "$EGREP"; then 3933 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3934echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3935 { (exit 1); exit 1; }; } 3936fi 3937 3938else 3939 ac_cv_path_EGREP=$EGREP 3940fi 3941 3942 3943 fi 3944fi 3945{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3946echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3947 EGREP="$ac_cv_path_EGREP" 3948 3949 3950 3951# Check whether --with-gnu-ld was given. 3952if test "${with_gnu_ld+set}" = set; then 3953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3954else 3955 with_gnu_ld=no 3956fi 3957 3958ac_prog=ld 3959if test "$GCC" = yes; then 3960 # Check if gcc -print-prog-name=ld gives a path. 3961 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3962echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3963 case $host in 3964 *-*-mingw*) 3965 # gcc leaves a trailing carriage return which upsets mingw 3966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3967 *) 3968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3969 esac 3970 case $ac_prog in 3971 # Accept absolute paths. 3972 [\\/]* | ?:[\\/]*) 3973 re_direlt='/[^/][^/]*/\.\./' 3974 # Canonicalize the pathname of ld 3975 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3976 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3977 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3978 done 3979 test -z "$LD" && LD="$ac_prog" 3980 ;; 3981 "") 3982 # If it fails, then pretend we aren't using GCC. 3983 ac_prog=ld 3984 ;; 3985 *) 3986 # If it is relative, then search for the first ld in PATH. 3987 with_gnu_ld=unknown 3988 ;; 3989 esac 3990elif test "$with_gnu_ld" = yes; then 3991 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3992echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3993else 3994 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3995echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3996fi 3997if test "${lt_cv_path_LD+set}" = set; then 3998 echo $ECHO_N "(cached) $ECHO_C" >&6 3999else 4000 if test -z "$LD"; then 4001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4002 for ac_dir in $PATH; do 4003 IFS="$lt_save_ifs" 4004 test -z "$ac_dir" && ac_dir=. 4005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4006 lt_cv_path_LD="$ac_dir/$ac_prog" 4007 # Check to see if the program is GNU ld. I'd rather use --version, 4008 # but apparently some variants of GNU ld only accept -v. 4009 # Break only if it was the GNU/non-GNU ld that we prefer. 4010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4011 *GNU* | *'with BFD'*) 4012 test "$with_gnu_ld" != no && break 4013 ;; 4014 *) 4015 test "$with_gnu_ld" != yes && break 4016 ;; 4017 esac 4018 fi 4019 done 4020 IFS="$lt_save_ifs" 4021else 4022 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4023fi 4024fi 4025 4026LD="$lt_cv_path_LD" 4027if test -n "$LD"; then 4028 { echo "$as_me:$LINENO: result: $LD" >&5 4029echo "${ECHO_T}$LD" >&6; } 4030else 4031 { echo "$as_me:$LINENO: result: no" >&5 4032echo "${ECHO_T}no" >&6; } 4033fi 4034test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4035echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4036 { (exit 1); exit 1; }; } 4037{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4038echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4039if test "${lt_cv_prog_gnu_ld+set}" = set; then 4040 echo $ECHO_N "(cached) $ECHO_C" >&6 4041else 4042 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4043case `$LD -v 2>&1 </dev/null` in 4044*GNU* | *'with BFD'*) 4045 lt_cv_prog_gnu_ld=yes 4046 ;; 4047*) 4048 lt_cv_prog_gnu_ld=no 4049 ;; 4050esac 4051fi 4052{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4053echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4054with_gnu_ld=$lt_cv_prog_gnu_ld 4055 4056 4057{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4058echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4059if test "${lt_cv_ld_reload_flag+set}" = set; then 4060 echo $ECHO_N "(cached) $ECHO_C" >&6 4061else 4062 lt_cv_ld_reload_flag='-r' 4063fi 4064{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4065echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4066reload_flag=$lt_cv_ld_reload_flag 4067case $reload_flag in 4068"" | " "*) ;; 4069*) reload_flag=" $reload_flag" ;; 4070esac 4071reload_cmds='$LD$reload_flag -o $output$reload_objs' 4072case $host_os in 4073 darwin*) 4074 if test "$GCC" = yes; then 4075 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4076 else 4077 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4078 fi 4079 ;; 4080esac 4081 4082{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4083echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4084if test "${lt_cv_path_NM+set}" = set; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086else 4087 if test -n "$NM"; then 4088 # Let the user override the test. 4089 lt_cv_path_NM="$NM" 4090else 4091 lt_nm_to_check="${ac_tool_prefix}nm" 4092 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4093 lt_nm_to_check="$lt_nm_to_check nm" 4094 fi 4095 for lt_tmp_nm in $lt_nm_to_check; do 4096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4097 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4098 IFS="$lt_save_ifs" 4099 test -z "$ac_dir" && ac_dir=. 4100 tmp_nm="$ac_dir/$lt_tmp_nm" 4101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4102 # Check to see if the nm accepts a BSD-compat flag. 4103 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4104 # nm: unknown option "B" ignored 4105 # Tru64's nm complains that /dev/null is an invalid object file 4106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4107 */dev/null* | *'Invalid file or object type'*) 4108 lt_cv_path_NM="$tmp_nm -B" 4109 break 4110 ;; 4111 *) 4112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4113 */dev/null*) 4114 lt_cv_path_NM="$tmp_nm -p" 4115 break 4116 ;; 4117 *) 4118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4119 continue # so that we can try to find one that supports BSD flags 4120 ;; 4121 esac 4122 ;; 4123 esac 4124 fi 4125 done 4126 IFS="$lt_save_ifs" 4127 done 4128 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4129fi 4130fi 4131{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4132echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4133NM="$lt_cv_path_NM" 4134 4135{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4136echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4137LN_S=$as_ln_s 4138if test "$LN_S" = "ln -s"; then 4139 { echo "$as_me:$LINENO: result: yes" >&5 4140echo "${ECHO_T}yes" >&6; } 4141else 4142 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4143echo "${ECHO_T}no, using $LN_S" >&6; } 4144fi 4145 4146{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4147echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4148if test "${lt_cv_deplibs_check_method+set}" = set; then 4149 echo $ECHO_N "(cached) $ECHO_C" >&6 4150else 4151 lt_cv_file_magic_cmd='$MAGIC_CMD' 4152lt_cv_file_magic_test_file= 4153lt_cv_deplibs_check_method='unknown' 4154# Need to set the preceding variable on all platforms that support 4155# interlibrary dependencies. 4156# 'none' -- dependencies not supported. 4157# `unknown' -- same as none, but documents that we really don't know. 4158# 'pass_all' -- all dependencies passed with no checks. 4159# 'test_compile' -- check by making test program. 4160# 'file_magic [[regex]]' -- check by looking for files in library path 4161# which responds to the $file_magic_cmd with a given extended regex. 4162# If you have `file' or equivalent on your system and you're not sure 4163# whether `pass_all' will *always* work, you probably want this one. 4164 4165case $host_os in 4166aix4* | aix5*) 4167 lt_cv_deplibs_check_method=pass_all 4168 ;; 4169 4170beos*) 4171 lt_cv_deplibs_check_method=pass_all 4172 ;; 4173 4174bsdi[45]*) 4175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4176 lt_cv_file_magic_cmd='/usr/bin/file -L' 4177 lt_cv_file_magic_test_file=/shlib/libc.so 4178 ;; 4179 4180cygwin*) 4181 # func_win32_libid is a shell function defined in ltmain.sh 4182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4183 lt_cv_file_magic_cmd='func_win32_libid' 4184 ;; 4185 4186mingw* | pw32*) 4187 # Base MSYS/MinGW do not provide the 'file' command needed by 4188 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4190 lt_cv_file_magic_cmd='$OBJDUMP -f' 4191 ;; 4192 4193darwin* | rhapsody*) 4194 lt_cv_deplibs_check_method=pass_all 4195 ;; 4196 4197freebsd* | kfreebsd*-gnu | dragonfly*) 4198 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4199 case $host_cpu in 4200 i*86 ) 4201 # Not sure whether the presence of OpenBSD here was a mistake. 4202 # Let's accept both of them until this is cleared up. 4203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4204 lt_cv_file_magic_cmd=/usr/bin/file 4205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4206 ;; 4207 esac 4208 else 4209 lt_cv_deplibs_check_method=pass_all 4210 fi 4211 ;; 4212 4213gnu*) 4214 lt_cv_deplibs_check_method=pass_all 4215 ;; 4216 4217hpux10.20* | hpux11*) 4218 lt_cv_file_magic_cmd=/usr/bin/file 4219 case $host_cpu in 4220 ia64*) 4221 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4222 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4223 ;; 4224 hppa*64*) 4225 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]' 4226 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4227 ;; 4228 *) 4229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4230 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4231 ;; 4232 esac 4233 ;; 4234 4235interix3*) 4236 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4238 ;; 4239 4240irix5* | irix6* | nonstopux*) 4241 case $LD in 4242 *-32|*"-32 ") libmagic=32-bit;; 4243 *-n32|*"-n32 ") libmagic=N32;; 4244 *-64|*"-64 ") libmagic=64-bit;; 4245 *) libmagic=never-match;; 4246 esac 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250# This must be Linux ELF. 4251linux*) 4252 lt_cv_deplibs_check_method=pass_all 4253 ;; 4254 4255netbsd*) 4256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4258 else 4259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4260 fi 4261 ;; 4262 4263newos6*) 4264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4265 lt_cv_file_magic_cmd=/usr/bin/file 4266 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4267 ;; 4268 4269nto-qnx*) 4270 lt_cv_deplibs_check_method=unknown 4271 ;; 4272 4273openbsd*) 4274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4276 else 4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4278 fi 4279 ;; 4280 4281osf3* | osf4* | osf5*) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 4285solaris*) 4286 lt_cv_deplibs_check_method=pass_all 4287 ;; 4288 4289sysv4 | sysv4.3*) 4290 case $host_vendor in 4291 motorola) 4292 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]' 4293 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4294 ;; 4295 ncr) 4296 lt_cv_deplibs_check_method=pass_all 4297 ;; 4298 sequent) 4299 lt_cv_file_magic_cmd='/bin/file' 4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4301 ;; 4302 sni) 4303 lt_cv_file_magic_cmd='/bin/file' 4304 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4305 lt_cv_file_magic_test_file=/lib/libc.so 4306 ;; 4307 siemens) 4308 lt_cv_deplibs_check_method=pass_all 4309 ;; 4310 pc) 4311 lt_cv_deplibs_check_method=pass_all 4312 ;; 4313 esac 4314 ;; 4315 4316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4317 lt_cv_deplibs_check_method=pass_all 4318 ;; 4319esac 4320 4321fi 4322{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4323echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4324file_magic_cmd=$lt_cv_file_magic_cmd 4325deplibs_check_method=$lt_cv_deplibs_check_method 4326test -z "$deplibs_check_method" && deplibs_check_method=unknown 4327 4328 4329 4330 4331# If no C compiler was specified, use CC. 4332LTCC=${LTCC-"$CC"} 4333 4334# If no C compiler flags were specified, use CFLAGS. 4335LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4336 4337# Allow CC to be a program name with arguments. 4338compiler=$CC 4339 4340 4341# Check whether --enable-libtool-lock was given. 4342if test "${enable_libtool_lock+set}" = set; then 4343 enableval=$enable_libtool_lock; 4344fi 4345 4346test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4347 4348# Some flags need to be propagated to the compiler or linker for good 4349# libtool support. 4350case $host in 4351ia64-*-hpux*) 4352 # Find out which ABI we are using. 4353 echo 'int i;' > conftest.$ac_ext 4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4355 (eval $ac_compile) 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); }; then 4359 case `/usr/bin/file conftest.$ac_objext` in 4360 *ELF-32*) 4361 HPUX_IA64_MODE="32" 4362 ;; 4363 *ELF-64*) 4364 HPUX_IA64_MODE="64" 4365 ;; 4366 esac 4367 fi 4368 rm -rf conftest* 4369 ;; 4370*-*-irix6*) 4371 # Find out which ABI we are using. 4372 echo '#line 4372 "configure"' > conftest.$ac_ext 4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4374 (eval $ac_compile) 2>&5 4375 ac_status=$? 4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4377 (exit $ac_status); }; then 4378 if test "$lt_cv_prog_gnu_ld" = yes; then 4379 case `/usr/bin/file conftest.$ac_objext` in 4380 *32-bit*) 4381 LD="${LD-ld} -melf32bsmip" 4382 ;; 4383 *N32*) 4384 LD="${LD-ld} -melf32bmipn32" 4385 ;; 4386 *64-bit*) 4387 LD="${LD-ld} -melf64bmip" 4388 ;; 4389 esac 4390 else 4391 case `/usr/bin/file conftest.$ac_objext` in 4392 *32-bit*) 4393 LD="${LD-ld} -32" 4394 ;; 4395 *N32*) 4396 LD="${LD-ld} -n32" 4397 ;; 4398 *64-bit*) 4399 LD="${LD-ld} -64" 4400 ;; 4401 esac 4402 fi 4403 fi 4404 rm -rf conftest* 4405 ;; 4406 4407x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4408 # Find out which ABI we are using. 4409 echo 'int i;' > conftest.$ac_ext 4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4411 (eval $ac_compile) 2>&5 4412 ac_status=$? 4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4414 (exit $ac_status); }; then 4415 case `/usr/bin/file conftest.o` in 4416 *32-bit*) 4417 case $host in 4418 x86_64-*linux*) 4419 LD="${LD-ld} -m elf_i386" 4420 ;; 4421 ppc64-*linux*|powerpc64-*linux*) 4422 LD="${LD-ld} -m elf32ppclinux" 4423 ;; 4424 s390x-*linux*) 4425 LD="${LD-ld} -m elf_s390" 4426 ;; 4427 sparc64-*linux*) 4428 LD="${LD-ld} -m elf32_sparc" 4429 ;; 4430 esac 4431 ;; 4432 *64-bit*) 4433 case $host in 4434 x86_64-*linux*) 4435 LD="${LD-ld} -m elf_x86_64" 4436 ;; 4437 ppc*-*linux*|powerpc*-*linux*) 4438 LD="${LD-ld} -m elf64ppc" 4439 ;; 4440 s390*-*linux*) 4441 LD="${LD-ld} -m elf64_s390" 4442 ;; 4443 sparc*-*linux*) 4444 LD="${LD-ld} -m elf64_sparc" 4445 ;; 4446 esac 4447 ;; 4448 esac 4449 fi 4450 rm -rf conftest* 4451 ;; 4452 4453*-*-sco3.2v5*) 4454 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4455 SAVE_CFLAGS="$CFLAGS" 4456 CFLAGS="$CFLAGS -belf" 4457 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4458echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4459if test "${lt_cv_cc_needs_belf+set}" = set; then 4460 echo $ECHO_N "(cached) $ECHO_C" >&6 4461else 4462 ac_ext=c 4463ac_cpp='$CPP $CPPFLAGS' 4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4466ac_compiler_gnu=$ac_cv_c_compiler_gnu 4467 4468 cat >conftest.$ac_ext <<_ACEOF 4469/* confdefs.h. */ 4470_ACEOF 4471cat confdefs.h >>conftest.$ac_ext 4472cat >>conftest.$ac_ext <<_ACEOF 4473/* end confdefs.h. */ 4474 4475int 4476main () 4477{ 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483rm -f conftest.$ac_objext conftest$ac_exeext 4484if { (ac_try="$ac_link" 4485case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488esac 4489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4490 (eval "$ac_link") 2>conftest.er1 4491 ac_status=$? 4492 grep -v '^ *+' conftest.er1 >conftest.err 4493 rm -f conftest.er1 4494 cat conftest.err >&5 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4496 (exit $ac_status); } && { 4497 test -z "$ac_c_werror_flag" || 4498 test ! -s conftest.err 4499 } && test -s conftest$ac_exeext && 4500 $as_test_x conftest$ac_exeext; then 4501 lt_cv_cc_needs_belf=yes 4502else 4503 echo "$as_me: failed program was:" >&5 4504sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 lt_cv_cc_needs_belf=no 4507fi 4508 4509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4510 conftest$ac_exeext conftest.$ac_ext 4511 ac_ext=c 4512ac_cpp='$CPP $CPPFLAGS' 4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4515ac_compiler_gnu=$ac_cv_c_compiler_gnu 4516 4517fi 4518{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4519echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4520 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4521 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4522 CFLAGS="$SAVE_CFLAGS" 4523 fi 4524 ;; 4525sparc*-*solaris*) 4526 # Find out which ABI we are using. 4527 echo 'int i;' > conftest.$ac_ext 4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4529 (eval $ac_compile) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); }; then 4533 case `/usr/bin/file conftest.o` in 4534 *64-bit*) 4535 case $lt_cv_prog_gnu_ld in 4536 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4537 *) LD="${LD-ld} -64" ;; 4538 esac 4539 ;; 4540 esac 4541 fi 4542 rm -rf conftest* 4543 ;; 4544 4545 4546esac 4547 4548need_locks="$enable_libtool_lock" 4549 4550 4551ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4557echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4558# On Suns, sometimes $CPP names a directory. 4559if test -n "$CPP" && test -d "$CPP"; then 4560 CPP= 4561fi 4562if test -z "$CPP"; then 4563 if test "${ac_cv_prog_CPP+set}" = set; then 4564 echo $ECHO_N "(cached) $ECHO_C" >&6 4565else 4566 # Double quotes because CPP needs to be expanded 4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4568 do 4569 ac_preproc_ok=false 4570for ac_c_preproc_warn_flag in '' yes 4571do 4572 # Use a header file that comes with gcc, so configuring glibc 4573 # with a fresh cross-compiler works. 4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4575 # <limits.h> exists even on freestanding compilers. 4576 # On the NeXT, cc -E runs the code through the compiler's parser, 4577 # not just through cpp. "Syntax error" is here to catch this case. 4578 cat >conftest.$ac_ext <<_ACEOF 4579/* confdefs.h. */ 4580_ACEOF 4581cat confdefs.h >>conftest.$ac_ext 4582cat >>conftest.$ac_ext <<_ACEOF 4583/* end confdefs.h. */ 4584#ifdef __STDC__ 4585# include <limits.h> 4586#else 4587# include <assert.h> 4588#endif 4589 Syntax error 4590_ACEOF 4591if { (ac_try="$ac_cpp conftest.$ac_ext" 4592case "(($ac_try" in 4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4594 *) ac_try_echo=$ac_try;; 4595esac 4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4598 ac_status=$? 4599 grep -v '^ *+' conftest.er1 >conftest.err 4600 rm -f conftest.er1 4601 cat conftest.err >&5 4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4603 (exit $ac_status); } >/dev/null && { 4604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4605 test ! -s conftest.err 4606 }; then 4607 : 4608else 4609 echo "$as_me: failed program was:" >&5 4610sed 's/^/| /' conftest.$ac_ext >&5 4611 4612 # Broken: fails on valid input. 4613continue 4614fi 4615 4616rm -f conftest.err conftest.$ac_ext 4617 4618 # OK, works on sane cases. Now check whether nonexistent headers 4619 # can be detected and how. 4620 cat >conftest.$ac_ext <<_ACEOF 4621/* confdefs.h. */ 4622_ACEOF 4623cat confdefs.h >>conftest.$ac_ext 4624cat >>conftest.$ac_ext <<_ACEOF 4625/* end confdefs.h. */ 4626#include <ac_nonexistent.h> 4627_ACEOF 4628if { (ac_try="$ac_cpp conftest.$ac_ext" 4629case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4635 ac_status=$? 4636 grep -v '^ *+' conftest.er1 >conftest.err 4637 rm -f conftest.er1 4638 cat conftest.err >&5 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); } >/dev/null && { 4641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4642 test ! -s conftest.err 4643 }; then 4644 # Broken: success on invalid input. 4645continue 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650 # Passes both tests. 4651ac_preproc_ok=: 4652break 4653fi 4654 4655rm -f conftest.err conftest.$ac_ext 4656 4657done 4658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4659rm -f conftest.err conftest.$ac_ext 4660if $ac_preproc_ok; then 4661 break 4662fi 4663 4664 done 4665 ac_cv_prog_CPP=$CPP 4666 4667fi 4668 CPP=$ac_cv_prog_CPP 4669else 4670 ac_cv_prog_CPP=$CPP 4671fi 4672{ echo "$as_me:$LINENO: result: $CPP" >&5 4673echo "${ECHO_T}$CPP" >&6; } 4674ac_preproc_ok=false 4675for ac_c_preproc_warn_flag in '' yes 4676do 4677 # Use a header file that comes with gcc, so configuring glibc 4678 # with a fresh cross-compiler works. 4679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4680 # <limits.h> exists even on freestanding compilers. 4681 # On the NeXT, cc -E runs the code through the compiler's parser, 4682 # not just through cpp. "Syntax error" is here to catch this case. 4683 cat >conftest.$ac_ext <<_ACEOF 4684/* confdefs.h. */ 4685_ACEOF 4686cat confdefs.h >>conftest.$ac_ext 4687cat >>conftest.$ac_ext <<_ACEOF 4688/* end confdefs.h. */ 4689#ifdef __STDC__ 4690# include <limits.h> 4691#else 4692# include <assert.h> 4693#endif 4694 Syntax error 4695_ACEOF 4696if { (ac_try="$ac_cpp conftest.$ac_ext" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } >/dev/null && { 4709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4710 test ! -s conftest.err 4711 }; then 4712 : 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 # Broken: fails on valid input. 4718continue 4719fi 4720 4721rm -f conftest.err conftest.$ac_ext 4722 4723 # OK, works on sane cases. Now check whether nonexistent headers 4724 # can be detected and how. 4725 cat >conftest.$ac_ext <<_ACEOF 4726/* confdefs.h. */ 4727_ACEOF 4728cat confdefs.h >>conftest.$ac_ext 4729cat >>conftest.$ac_ext <<_ACEOF 4730/* end confdefs.h. */ 4731#include <ac_nonexistent.h> 4732_ACEOF 4733if { (ac_try="$ac_cpp conftest.$ac_ext" 4734case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } >/dev/null && { 4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4747 test ! -s conftest.err 4748 }; then 4749 # Broken: success on invalid input. 4750continue 4751else 4752 echo "$as_me: failed program was:" >&5 4753sed 's/^/| /' conftest.$ac_ext >&5 4754 4755 # Passes both tests. 4756ac_preproc_ok=: 4757break 4758fi 4759 4760rm -f conftest.err conftest.$ac_ext 4761 4762done 4763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4764rm -f conftest.err conftest.$ac_ext 4765if $ac_preproc_ok; then 4766 : 4767else 4768 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4769See \`config.log' for more details." >&5 4770echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4771See \`config.log' for more details." >&2;} 4772 { (exit 1); exit 1; }; } 4773fi 4774 4775ac_ext=c 4776ac_cpp='$CPP $CPPFLAGS' 4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4779ac_compiler_gnu=$ac_cv_c_compiler_gnu 4780 4781 4782{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4784if test "${ac_cv_header_stdc+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793#include <stdlib.h> 4794#include <stdarg.h> 4795#include <string.h> 4796#include <float.h> 4797 4798int 4799main () 4800{ 4801 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806rm -f conftest.$ac_objext 4807if { (ac_try="$ac_compile" 4808case "(($ac_try" in 4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4810 *) ac_try_echo=$ac_try;; 4811esac 4812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4813 (eval "$ac_compile") 2>conftest.er1 4814 ac_status=$? 4815 grep -v '^ *+' conftest.er1 >conftest.err 4816 rm -f conftest.er1 4817 cat conftest.err >&5 4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4819 (exit $ac_status); } && { 4820 test -z "$ac_c_werror_flag" || 4821 test ! -s conftest.err 4822 } && test -s conftest.$ac_objext; then 4823 ac_cv_header_stdc=yes 4824else 4825 echo "$as_me: failed program was:" >&5 4826sed 's/^/| /' conftest.$ac_ext >&5 4827 4828 ac_cv_header_stdc=no 4829fi 4830 4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4832 4833if test $ac_cv_header_stdc = yes; then 4834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4835 cat >conftest.$ac_ext <<_ACEOF 4836/* confdefs.h. */ 4837_ACEOF 4838cat confdefs.h >>conftest.$ac_ext 4839cat >>conftest.$ac_ext <<_ACEOF 4840/* end confdefs.h. */ 4841#include <string.h> 4842 4843_ACEOF 4844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4845 $EGREP "memchr" >/dev/null 2>&1; then 4846 : 4847else 4848 ac_cv_header_stdc=no 4849fi 4850rm -f conftest* 4851 4852fi 4853 4854if test $ac_cv_header_stdc = yes; then 4855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4856 cat >conftest.$ac_ext <<_ACEOF 4857/* confdefs.h. */ 4858_ACEOF 4859cat confdefs.h >>conftest.$ac_ext 4860cat >>conftest.$ac_ext <<_ACEOF 4861/* end confdefs.h. */ 4862#include <stdlib.h> 4863 4864_ACEOF 4865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4866 $EGREP "free" >/dev/null 2>&1; then 4867 : 4868else 4869 ac_cv_header_stdc=no 4870fi 4871rm -f conftest* 4872 4873fi 4874 4875if test $ac_cv_header_stdc = yes; then 4876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4877 if test "$cross_compiling" = yes; then 4878 : 4879else 4880 cat >conftest.$ac_ext <<_ACEOF 4881/* confdefs.h. */ 4882_ACEOF 4883cat confdefs.h >>conftest.$ac_ext 4884cat >>conftest.$ac_ext <<_ACEOF 4885/* end confdefs.h. */ 4886#include <ctype.h> 4887#include <stdlib.h> 4888#if ((' ' & 0x0FF) == 0x020) 4889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4891#else 4892# define ISLOWER(c) \ 4893 (('a' <= (c) && (c) <= 'i') \ 4894 || ('j' <= (c) && (c) <= 'r') \ 4895 || ('s' <= (c) && (c) <= 'z')) 4896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4897#endif 4898 4899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4900int 4901main () 4902{ 4903 int i; 4904 for (i = 0; i < 256; i++) 4905 if (XOR (islower (i), ISLOWER (i)) 4906 || toupper (i) != TOUPPER (i)) 4907 return 2; 4908 return 0; 4909} 4910_ACEOF 4911rm -f conftest$ac_exeext 4912if { (ac_try="$ac_link" 4913case "(($ac_try" in 4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4915 *) ac_try_echo=$ac_try;; 4916esac 4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4918 (eval "$ac_link") 2>&5 4919 ac_status=$? 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4922 { (case "(($ac_try" in 4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4924 *) ac_try_echo=$ac_try;; 4925esac 4926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4927 (eval "$ac_try") 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); }; }; then 4931 : 4932else 4933 echo "$as_me: program exited with status $ac_status" >&5 4934echo "$as_me: failed program was:" >&5 4935sed 's/^/| /' conftest.$ac_ext >&5 4936 4937( exit $ac_status ) 4938ac_cv_header_stdc=no 4939fi 4940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4941fi 4942 4943 4944fi 4945fi 4946{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4947echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4948if test $ac_cv_header_stdc = yes; then 4949 4950cat >>confdefs.h <<\_ACEOF 4951#define STDC_HEADERS 1 4952_ACEOF 4953 4954fi 4955 4956# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4967 inttypes.h stdint.h unistd.h 4968do 4969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4970{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974else 4975 cat >conftest.$ac_ext <<_ACEOF 4976/* confdefs.h. */ 4977_ACEOF 4978cat confdefs.h >>conftest.$ac_ext 4979cat >>conftest.$ac_ext <<_ACEOF 4980/* end confdefs.h. */ 4981$ac_includes_default 4982 4983#include <$ac_header> 4984_ACEOF 4985rm -f conftest.$ac_objext 4986if { (ac_try="$ac_compile" 4987case "(($ac_try" in 4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4989 *) ac_try_echo=$ac_try;; 4990esac 4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4992 (eval "$ac_compile") 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && { 4999 test -z "$ac_c_werror_flag" || 5000 test ! -s conftest.err 5001 } && test -s conftest.$ac_objext; then 5002 eval "$as_ac_Header=yes" 5003else 5004 echo "$as_me: failed program was:" >&5 5005sed 's/^/| /' conftest.$ac_ext >&5 5006 5007 eval "$as_ac_Header=no" 5008fi 5009 5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011fi 5012ac_res=`eval echo '${'$as_ac_Header'}'` 5013 { echo "$as_me:$LINENO: result: $ac_res" >&5 5014echo "${ECHO_T}$ac_res" >&6; } 5015if test `eval echo '${'$as_ac_Header'}'` = yes; then 5016 cat >>confdefs.h <<_ACEOF 5017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5018_ACEOF 5019 5020fi 5021 5022done 5023 5024 5025 5026for ac_header in dlfcn.h 5027do 5028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5030 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034fi 5035ac_res=`eval echo '${'$as_ac_Header'}'` 5036 { echo "$as_me:$LINENO: result: $ac_res" >&5 5037echo "${ECHO_T}$ac_res" >&6; } 5038else 5039 # Is the header compilable? 5040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5042cat >conftest.$ac_ext <<_ACEOF 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048$ac_includes_default 5049#include <$ac_header> 5050_ACEOF 5051rm -f conftest.$ac_objext 5052if { (ac_try="$ac_compile" 5053case "(($ac_try" in 5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5055 *) ac_try_echo=$ac_try;; 5056esac 5057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5058 (eval "$ac_compile") 2>conftest.er1 5059 ac_status=$? 5060 grep -v '^ *+' conftest.er1 >conftest.err 5061 rm -f conftest.er1 5062 cat conftest.err >&5 5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); } && { 5065 test -z "$ac_c_werror_flag" || 5066 test ! -s conftest.err 5067 } && test -s conftest.$ac_objext; then 5068 ac_header_compiler=yes 5069else 5070 echo "$as_me: failed program was:" >&5 5071sed 's/^/| /' conftest.$ac_ext >&5 5072 5073 ac_header_compiler=no 5074fi 5075 5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5077{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5078echo "${ECHO_T}$ac_header_compiler" >&6; } 5079 5080# Is the header present? 5081{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5083cat >conftest.$ac_ext <<_ACEOF 5084/* confdefs.h. */ 5085_ACEOF 5086cat confdefs.h >>conftest.$ac_ext 5087cat >>conftest.$ac_ext <<_ACEOF 5088/* end confdefs.h. */ 5089#include <$ac_header> 5090_ACEOF 5091if { (ac_try="$ac_cpp conftest.$ac_ext" 5092case "(($ac_try" in 5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5094 *) ac_try_echo=$ac_try;; 5095esac 5096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5098 ac_status=$? 5099 grep -v '^ *+' conftest.er1 >conftest.err 5100 rm -f conftest.er1 5101 cat conftest.err >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); } >/dev/null && { 5104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5105 test ! -s conftest.err 5106 }; then 5107 ac_header_preproc=yes 5108else 5109 echo "$as_me: failed program was:" >&5 5110sed 's/^/| /' conftest.$ac_ext >&5 5111 5112 ac_header_preproc=no 5113fi 5114 5115rm -f conftest.err conftest.$ac_ext 5116{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5117echo "${ECHO_T}$ac_header_preproc" >&6; } 5118 5119# So? What about this header? 5120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5121 yes:no: ) 5122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5126 ac_header_preproc=yes 5127 ;; 5128 no:yes:* ) 5129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5141 ( cat <<\_ASBOX 5142## ---------------------------------------------------------------------- ## 5143## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5144## ---------------------------------------------------------------------- ## 5145_ASBOX 5146 ) | sed "s/^/$as_me: WARNING: /" >&2 5147 ;; 5148esac 5149{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5152 echo $ECHO_N "(cached) $ECHO_C" >&6 5153else 5154 eval "$as_ac_Header=\$ac_header_preproc" 5155fi 5156ac_res=`eval echo '${'$as_ac_Header'}'` 5157 { echo "$as_me:$LINENO: result: $ac_res" >&5 5158echo "${ECHO_T}$ac_res" >&6; } 5159 5160fi 5161if test `eval echo '${'$as_ac_Header'}'` = yes; then 5162 cat >>confdefs.h <<_ACEOF 5163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5164_ACEOF 5165 5166fi 5167 5168done 5169 5170ac_ext=cpp 5171ac_cpp='$CXXCPP $CPPFLAGS' 5172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5175if test -z "$CXX"; then 5176 if test -n "$CCC"; then 5177 CXX=$CCC 5178 else 5179 if test -n "$ac_tool_prefix"; then 5180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5181 do 5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5183set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5184{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5186if test "${ac_cv_prog_CXX+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 if test -n "$CXX"; then 5190 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5191else 5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5193for as_dir in $PATH 5194do 5195 IFS=$as_save_IFS 5196 test -z "$as_dir" && as_dir=. 5197 for ac_exec_ext in '' $ac_executable_extensions; do 5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5201 break 2 5202 fi 5203done 5204done 5205IFS=$as_save_IFS 5206 5207fi 5208fi 5209CXX=$ac_cv_prog_CXX 5210if test -n "$CXX"; then 5211 { echo "$as_me:$LINENO: result: $CXX" >&5 5212echo "${ECHO_T}$CXX" >&6; } 5213else 5214 { echo "$as_me:$LINENO: result: no" >&5 5215echo "${ECHO_T}no" >&6; } 5216fi 5217 5218 5219 test -n "$CXX" && break 5220 done 5221fi 5222if test -z "$CXX"; then 5223 ac_ct_CXX=$CXX 5224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5225do 5226 # Extract the first word of "$ac_prog", so it can be a program name with args. 5227set dummy $ac_prog; ac_word=$2 5228{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5230if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5231 echo $ECHO_N "(cached) $ECHO_C" >&6 5232else 5233 if test -n "$ac_ct_CXX"; then 5234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5243 ac_cv_prog_ac_ct_CXX="$ac_prog" 5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5254if test -n "$ac_ct_CXX"; then 5255 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5256echo "${ECHO_T}$ac_ct_CXX" >&6; } 5257else 5258 { echo "$as_me:$LINENO: result: no" >&5 5259echo "${ECHO_T}no" >&6; } 5260fi 5261 5262 5263 test -n "$ac_ct_CXX" && break 5264done 5265 5266 if test "x$ac_ct_CXX" = x; then 5267 CXX="g++" 5268 else 5269 case $cross_compiling:$ac_tool_warned in 5270yes:) 5271{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5272whose name does not start with the host triplet. If you think this 5273configuration is useful to you, please write to autoconf@gnu.org." >&5 5274echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5275whose name does not start with the host triplet. If you think this 5276configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5277ac_tool_warned=yes ;; 5278esac 5279 CXX=$ac_ct_CXX 5280 fi 5281fi 5282 5283 fi 5284fi 5285# Provide some information about the compiler. 5286echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5287ac_compiler=`set X $ac_compile; echo $2` 5288{ (ac_try="$ac_compiler --version >&5" 5289case "(($ac_try" in 5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5291 *) ac_try_echo=$ac_try;; 5292esac 5293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5294 (eval "$ac_compiler --version >&5") 2>&5 5295 ac_status=$? 5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5297 (exit $ac_status); } 5298{ (ac_try="$ac_compiler -v >&5" 5299case "(($ac_try" in 5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5301 *) ac_try_echo=$ac_try;; 5302esac 5303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5304 (eval "$ac_compiler -v >&5") 2>&5 5305 ac_status=$? 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5307 (exit $ac_status); } 5308{ (ac_try="$ac_compiler -V >&5" 5309case "(($ac_try" in 5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5311 *) ac_try_echo=$ac_try;; 5312esac 5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5314 (eval "$ac_compiler -V >&5") 2>&5 5315 ac_status=$? 5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5317 (exit $ac_status); } 5318 5319{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5320echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5321if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5322 echo $ECHO_N "(cached) $ECHO_C" >&6 5323else 5324 cat >conftest.$ac_ext <<_ACEOF 5325/* confdefs.h. */ 5326_ACEOF 5327cat confdefs.h >>conftest.$ac_ext 5328cat >>conftest.$ac_ext <<_ACEOF 5329/* end confdefs.h. */ 5330 5331int 5332main () 5333{ 5334#ifndef __GNUC__ 5335 choke me 5336#endif 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342rm -f conftest.$ac_objext 5343if { (ac_try="$ac_compile" 5344case "(($ac_try" in 5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5346 *) ac_try_echo=$ac_try;; 5347esac 5348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5349 (eval "$ac_compile") 2>conftest.er1 5350 ac_status=$? 5351 grep -v '^ *+' conftest.er1 >conftest.err 5352 rm -f conftest.er1 5353 cat conftest.err >&5 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); } && { 5356 test -z "$ac_cxx_werror_flag" || 5357 test ! -s conftest.err 5358 } && test -s conftest.$ac_objext; then 5359 ac_compiler_gnu=yes 5360else 5361 echo "$as_me: failed program was:" >&5 5362sed 's/^/| /' conftest.$ac_ext >&5 5363 5364 ac_compiler_gnu=no 5365fi 5366 5367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5369 5370fi 5371{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5372echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5373GXX=`test $ac_compiler_gnu = yes && echo yes` 5374ac_test_CXXFLAGS=${CXXFLAGS+set} 5375ac_save_CXXFLAGS=$CXXFLAGS 5376{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5377echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5378if test "${ac_cv_prog_cxx_g+set}" = set; then 5379 echo $ECHO_N "(cached) $ECHO_C" >&6 5380else 5381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5382 ac_cxx_werror_flag=yes 5383 ac_cv_prog_cxx_g=no 5384 CXXFLAGS="-g" 5385 cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391 5392int 5393main () 5394{ 5395 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400rm -f conftest.$ac_objext 5401if { (ac_try="$ac_compile" 5402case "(($ac_try" in 5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5404 *) ac_try_echo=$ac_try;; 5405esac 5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5407 (eval "$ac_compile") 2>conftest.er1 5408 ac_status=$? 5409 grep -v '^ *+' conftest.er1 >conftest.err 5410 rm -f conftest.er1 5411 cat conftest.err >&5 5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5413 (exit $ac_status); } && { 5414 test -z "$ac_cxx_werror_flag" || 5415 test ! -s conftest.err 5416 } && test -s conftest.$ac_objext; then 5417 ac_cv_prog_cxx_g=yes 5418else 5419 echo "$as_me: failed program was:" >&5 5420sed 's/^/| /' conftest.$ac_ext >&5 5421 5422 CXXFLAGS="" 5423 cat >conftest.$ac_ext <<_ACEOF 5424/* confdefs.h. */ 5425_ACEOF 5426cat confdefs.h >>conftest.$ac_ext 5427cat >>conftest.$ac_ext <<_ACEOF 5428/* end confdefs.h. */ 5429 5430int 5431main () 5432{ 5433 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438rm -f conftest.$ac_objext 5439if { (ac_try="$ac_compile" 5440case "(($ac_try" in 5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5442 *) ac_try_echo=$ac_try;; 5443esac 5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5445 (eval "$ac_compile") 2>conftest.er1 5446 ac_status=$? 5447 grep -v '^ *+' conftest.er1 >conftest.err 5448 rm -f conftest.er1 5449 cat conftest.err >&5 5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5451 (exit $ac_status); } && { 5452 test -z "$ac_cxx_werror_flag" || 5453 test ! -s conftest.err 5454 } && test -s conftest.$ac_objext; then 5455 : 5456else 5457 echo "$as_me: failed program was:" >&5 5458sed 's/^/| /' conftest.$ac_ext >&5 5459 5460 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5461 CXXFLAGS="-g" 5462 cat >conftest.$ac_ext <<_ACEOF 5463/* confdefs.h. */ 5464_ACEOF 5465cat confdefs.h >>conftest.$ac_ext 5466cat >>conftest.$ac_ext <<_ACEOF 5467/* end confdefs.h. */ 5468 5469int 5470main () 5471{ 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477rm -f conftest.$ac_objext 5478if { (ac_try="$ac_compile" 5479case "(($ac_try" in 5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5481 *) ac_try_echo=$ac_try;; 5482esac 5483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5484 (eval "$ac_compile") 2>conftest.er1 5485 ac_status=$? 5486 grep -v '^ *+' conftest.er1 >conftest.err 5487 rm -f conftest.er1 5488 cat conftest.err >&5 5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5490 (exit $ac_status); } && { 5491 test -z "$ac_cxx_werror_flag" || 5492 test ! -s conftest.err 5493 } && test -s conftest.$ac_objext; then 5494 ac_cv_prog_cxx_g=yes 5495else 5496 echo "$as_me: failed program was:" >&5 5497sed 's/^/| /' conftest.$ac_ext >&5 5498 5499 5500fi 5501 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503fi 5504 5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5506fi 5507 5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5510fi 5511{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5512echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5513if test "$ac_test_CXXFLAGS" = set; then 5514 CXXFLAGS=$ac_save_CXXFLAGS 5515elif test $ac_cv_prog_cxx_g = yes; then 5516 if test "$GXX" = yes; then 5517 CXXFLAGS="-g -O2" 5518 else 5519 CXXFLAGS="-g" 5520 fi 5521else 5522 if test "$GXX" = yes; then 5523 CXXFLAGS="-O2" 5524 else 5525 CXXFLAGS= 5526 fi 5527fi 5528ac_ext=cpp 5529ac_cpp='$CXXCPP $CPPFLAGS' 5530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5533 5534depcc="$CXX" am_compiler_list= 5535 5536{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5537echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5538if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540else 5541 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5542 # We make a subdir and do the tests there. Otherwise we can end up 5543 # making bogus files that we don't know about and never remove. For 5544 # instance it was reported that on HP-UX the gcc test will end up 5545 # making a dummy file named `D' -- because `-MD' means `put the output 5546 # in D'. 5547 mkdir conftest.dir 5548 # Copy depcomp to subdir because otherwise we won't find it if we're 5549 # using a relative directory. 5550 cp "$am_depcomp" conftest.dir 5551 cd conftest.dir 5552 # We will build objects and dependencies in a subdirectory because 5553 # it helps to detect inapplicable dependency modes. For instance 5554 # both Tru64's cc and ICC support -MD to output dependencies as a 5555 # side effect of compilation, but ICC will put the dependencies in 5556 # the current directory while Tru64 will put them in the object 5557 # directory. 5558 mkdir sub 5559 5560 am_cv_CXX_dependencies_compiler_type=none 5561 if test "$am_compiler_list" = ""; then 5562 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5563 fi 5564 for depmode in $am_compiler_list; do 5565 # Setup a source with many dependencies, because some compilers 5566 # like to wrap large dependency lists on column 80 (with \), and 5567 # we should not choose a depcomp mode which is confused by this. 5568 # 5569 # We need to recreate these files for each test, as the compiler may 5570 # overwrite some of them when testing with obscure command lines. 5571 # This happens at least with the AIX C compiler. 5572 : > sub/conftest.c 5573 for i in 1 2 3 4 5 6; do 5574 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5575 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5576 # Solaris 8's {/usr,}/bin/sh. 5577 touch sub/conftst$i.h 5578 done 5579 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5580 5581 case $depmode in 5582 nosideeffect) 5583 # after this tag, mechanisms are not by side-effect, so they'll 5584 # only be used when explicitly requested 5585 if test "x$enable_dependency_tracking" = xyes; then 5586 continue 5587 else 5588 break 5589 fi 5590 ;; 5591 none) break ;; 5592 esac 5593 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5594 # mode. It turns out that the SunPro C++ compiler does not properly 5595 # handle `-M -o', and we need to detect this. 5596 if depmode=$depmode \ 5597 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5598 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5599 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5600 >/dev/null 2>conftest.err && 5601 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5603 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5605 # icc doesn't choke on unknown options, it will just issue warnings 5606 # or remarks (even with -Werror). So we grep stderr for any message 5607 # that says an option was ignored or not supported. 5608 # When given -MP, icc 7.0 and 7.1 complain thusly: 5609 # icc: Command line warning: ignoring option '-M'; no argument required 5610 # The diagnosis changed in icc 8.0: 5611 # icc: Command line remark: option '-MP' not supported 5612 if (grep 'ignoring option' conftest.err || 5613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5614 am_cv_CXX_dependencies_compiler_type=$depmode 5615 break 5616 fi 5617 fi 5618 done 5619 5620 cd .. 5621 rm -rf conftest.dir 5622else 5623 am_cv_CXX_dependencies_compiler_type=none 5624fi 5625 5626fi 5627{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5628echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5629CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5630 5631 if 5632 test "x$enable_dependency_tracking" != xno \ 5633 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5634 am__fastdepCXX_TRUE= 5635 am__fastdepCXX_FALSE='#' 5636else 5637 am__fastdepCXX_TRUE='#' 5638 am__fastdepCXX_FALSE= 5639fi 5640 5641 5642 5643 5644if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5646 (test "X$CXX" != "Xg++"))) ; then 5647 ac_ext=cpp 5648ac_cpp='$CXXCPP $CPPFLAGS' 5649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5652{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5653echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5654if test -z "$CXXCPP"; then 5655 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5656 echo $ECHO_N "(cached) $ECHO_C" >&6 5657else 5658 # Double quotes because CXXCPP needs to be expanded 5659 for CXXCPP in "$CXX -E" "/lib/cpp" 5660 do 5661 ac_preproc_ok=false 5662for ac_cxx_preproc_warn_flag in '' yes 5663do 5664 # Use a header file that comes with gcc, so configuring glibc 5665 # with a fresh cross-compiler works. 5666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5667 # <limits.h> exists even on freestanding compilers. 5668 # On the NeXT, cc -E runs the code through the compiler's parser, 5669 # not just through cpp. "Syntax error" is here to catch this case. 5670 cat >conftest.$ac_ext <<_ACEOF 5671/* confdefs.h. */ 5672_ACEOF 5673cat confdefs.h >>conftest.$ac_ext 5674cat >>conftest.$ac_ext <<_ACEOF 5675/* end confdefs.h. */ 5676#ifdef __STDC__ 5677# include <limits.h> 5678#else 5679# include <assert.h> 5680#endif 5681 Syntax error 5682_ACEOF 5683if { (ac_try="$ac_cpp conftest.$ac_ext" 5684case "(($ac_try" in 5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5686 *) ac_try_echo=$ac_try;; 5687esac 5688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5690 ac_status=$? 5691 grep -v '^ *+' conftest.er1 >conftest.err 5692 rm -f conftest.er1 5693 cat conftest.err >&5 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); } >/dev/null && { 5696 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5697 test ! -s conftest.err 5698 }; then 5699 : 5700else 5701 echo "$as_me: failed program was:" >&5 5702sed 's/^/| /' conftest.$ac_ext >&5 5703 5704 # Broken: fails on valid input. 5705continue 5706fi 5707 5708rm -f conftest.err conftest.$ac_ext 5709 5710 # OK, works on sane cases. Now check whether nonexistent headers 5711 # can be detected and how. 5712 cat >conftest.$ac_ext <<_ACEOF 5713/* confdefs.h. */ 5714_ACEOF 5715cat confdefs.h >>conftest.$ac_ext 5716cat >>conftest.$ac_ext <<_ACEOF 5717/* end confdefs.h. */ 5718#include <ac_nonexistent.h> 5719_ACEOF 5720if { (ac_try="$ac_cpp conftest.$ac_ext" 5721case "(($ac_try" in 5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5723 *) ac_try_echo=$ac_try;; 5724esac 5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5727 ac_status=$? 5728 grep -v '^ *+' conftest.er1 >conftest.err 5729 rm -f conftest.er1 5730 cat conftest.err >&5 5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5732 (exit $ac_status); } >/dev/null && { 5733 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5734 test ! -s conftest.err 5735 }; then 5736 # Broken: success on invalid input. 5737continue 5738else 5739 echo "$as_me: failed program was:" >&5 5740sed 's/^/| /' conftest.$ac_ext >&5 5741 5742 # Passes both tests. 5743ac_preproc_ok=: 5744break 5745fi 5746 5747rm -f conftest.err conftest.$ac_ext 5748 5749done 5750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5751rm -f conftest.err conftest.$ac_ext 5752if $ac_preproc_ok; then 5753 break 5754fi 5755 5756 done 5757 ac_cv_prog_CXXCPP=$CXXCPP 5758 5759fi 5760 CXXCPP=$ac_cv_prog_CXXCPP 5761else 5762 ac_cv_prog_CXXCPP=$CXXCPP 5763fi 5764{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5765echo "${ECHO_T}$CXXCPP" >&6; } 5766ac_preproc_ok=false 5767for ac_cxx_preproc_warn_flag in '' yes 5768do 5769 # Use a header file that comes with gcc, so configuring glibc 5770 # with a fresh cross-compiler works. 5771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5772 # <limits.h> exists even on freestanding compilers. 5773 # On the NeXT, cc -E runs the code through the compiler's parser, 5774 # not just through cpp. "Syntax error" is here to catch this case. 5775 cat >conftest.$ac_ext <<_ACEOF 5776/* confdefs.h. */ 5777_ACEOF 5778cat confdefs.h >>conftest.$ac_ext 5779cat >>conftest.$ac_ext <<_ACEOF 5780/* end confdefs.h. */ 5781#ifdef __STDC__ 5782# include <limits.h> 5783#else 5784# include <assert.h> 5785#endif 5786 Syntax error 5787_ACEOF 5788if { (ac_try="$ac_cpp conftest.$ac_ext" 5789case "(($ac_try" in 5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5791 *) ac_try_echo=$ac_try;; 5792esac 5793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5795 ac_status=$? 5796 grep -v '^ *+' conftest.er1 >conftest.err 5797 rm -f conftest.er1 5798 cat conftest.err >&5 5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5800 (exit $ac_status); } >/dev/null && { 5801 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5802 test ! -s conftest.err 5803 }; then 5804 : 5805else 5806 echo "$as_me: failed program was:" >&5 5807sed 's/^/| /' conftest.$ac_ext >&5 5808 5809 # Broken: fails on valid input. 5810continue 5811fi 5812 5813rm -f conftest.err conftest.$ac_ext 5814 5815 # OK, works on sane cases. Now check whether nonexistent headers 5816 # can be detected and how. 5817 cat >conftest.$ac_ext <<_ACEOF 5818/* confdefs.h. */ 5819_ACEOF 5820cat confdefs.h >>conftest.$ac_ext 5821cat >>conftest.$ac_ext <<_ACEOF 5822/* end confdefs.h. */ 5823#include <ac_nonexistent.h> 5824_ACEOF 5825if { (ac_try="$ac_cpp conftest.$ac_ext" 5826case "(($ac_try" in 5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5828 *) ac_try_echo=$ac_try;; 5829esac 5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5832 ac_status=$? 5833 grep -v '^ *+' conftest.er1 >conftest.err 5834 rm -f conftest.er1 5835 cat conftest.err >&5 5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5837 (exit $ac_status); } >/dev/null && { 5838 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5839 test ! -s conftest.err 5840 }; then 5841 # Broken: success on invalid input. 5842continue 5843else 5844 echo "$as_me: failed program was:" >&5 5845sed 's/^/| /' conftest.$ac_ext >&5 5846 5847 # Passes both tests. 5848ac_preproc_ok=: 5849break 5850fi 5851 5852rm -f conftest.err conftest.$ac_ext 5853 5854done 5855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5856rm -f conftest.err conftest.$ac_ext 5857if $ac_preproc_ok; then 5858 : 5859else 5860 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5861See \`config.log' for more details." >&5 5862echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5863See \`config.log' for more details." >&2;} 5864 { (exit 1); exit 1; }; } 5865fi 5866 5867ac_ext=cpp 5868ac_cpp='$CXXCPP $CPPFLAGS' 5869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5872 5873fi 5874 5875 5876ac_ext=f 5877ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5878ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5879ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5880if test -n "$ac_tool_prefix"; then 5881 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 5882 do 5883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5884set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5887if test "${ac_cv_prog_F77+set}" = set; then 5888 echo $ECHO_N "(cached) $ECHO_C" >&6 5889else 5890 if test -n "$F77"; then 5891 ac_cv_prog_F77="$F77" # Let the user override the test. 5892else 5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5900 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905done 5906IFS=$as_save_IFS 5907 5908fi 5909fi 5910F77=$ac_cv_prog_F77 5911if test -n "$F77"; then 5912 { echo "$as_me:$LINENO: result: $F77" >&5 5913echo "${ECHO_T}$F77" >&6; } 5914else 5915 { echo "$as_me:$LINENO: result: no" >&5 5916echo "${ECHO_T}no" >&6; } 5917fi 5918 5919 5920 test -n "$F77" && break 5921 done 5922fi 5923if test -z "$F77"; then 5924 ac_ct_F77=$F77 5925 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 5926do 5927 # Extract the first word of "$ac_prog", so it can be a program name with args. 5928set dummy $ac_prog; ac_word=$2 5929{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5931if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5932 echo $ECHO_N "(cached) $ECHO_C" >&6 5933else 5934 if test -n "$ac_ct_F77"; then 5935 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5944 ac_cv_prog_ac_ct_F77="$ac_prog" 5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949done 5950IFS=$as_save_IFS 5951 5952fi 5953fi 5954ac_ct_F77=$ac_cv_prog_ac_ct_F77 5955if test -n "$ac_ct_F77"; then 5956 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5957echo "${ECHO_T}$ac_ct_F77" >&6; } 5958else 5959 { echo "$as_me:$LINENO: result: no" >&5 5960echo "${ECHO_T}no" >&6; } 5961fi 5962 5963 5964 test -n "$ac_ct_F77" && break 5965done 5966 5967 if test "x$ac_ct_F77" = x; then 5968 F77="" 5969 else 5970 case $cross_compiling:$ac_tool_warned in 5971yes:) 5972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5973whose name does not start with the host triplet. If you think this 5974configuration is useful to you, please write to autoconf@gnu.org." >&5 5975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5976whose name does not start with the host triplet. If you think this 5977configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5978ac_tool_warned=yes ;; 5979esac 5980 F77=$ac_ct_F77 5981 fi 5982fi 5983 5984 5985# Provide some information about the compiler. 5986echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5987ac_compiler=`set X $ac_compile; echo $2` 5988{ (ac_try="$ac_compiler --version >&5" 5989case "(($ac_try" in 5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5991 *) ac_try_echo=$ac_try;; 5992esac 5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5994 (eval "$ac_compiler --version >&5") 2>&5 5995 ac_status=$? 5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5997 (exit $ac_status); } 5998{ (ac_try="$ac_compiler -v >&5" 5999case "(($ac_try" in 6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6001 *) ac_try_echo=$ac_try;; 6002esac 6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6004 (eval "$ac_compiler -v >&5") 2>&5 6005 ac_status=$? 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } 6008{ (ac_try="$ac_compiler -V >&5" 6009case "(($ac_try" in 6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6011 *) ac_try_echo=$ac_try;; 6012esac 6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6014 (eval "$ac_compiler -V >&5") 2>&5 6015 ac_status=$? 6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6017 (exit $ac_status); } 6018rm -f a.out 6019 6020# If we don't use `.F' as extension, the preprocessor is not run on the 6021# input file. (Note that this only needs to work for GNU compilers.) 6022ac_save_ext=$ac_ext 6023ac_ext=F 6024{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6025echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6026if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6027 echo $ECHO_N "(cached) $ECHO_C" >&6 6028else 6029 cat >conftest.$ac_ext <<_ACEOF 6030 program main 6031#ifndef __GNUC__ 6032 choke me 6033#endif 6034 6035 end 6036_ACEOF 6037rm -f conftest.$ac_objext 6038if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 6045 ac_status=$? 6046 grep -v '^ *+' conftest.er1 >conftest.err 6047 rm -f conftest.er1 6048 cat conftest.err >&5 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); } && { 6051 test -z "$ac_f77_werror_flag" || 6052 test ! -s conftest.err 6053 } && test -s conftest.$ac_objext; then 6054 ac_compiler_gnu=yes 6055else 6056 echo "$as_me: failed program was:" >&5 6057sed 's/^/| /' conftest.$ac_ext >&5 6058 6059 ac_compiler_gnu=no 6060fi 6061 6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6063ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6064 6065fi 6066{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6067echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6068ac_ext=$ac_save_ext 6069ac_test_FFLAGS=${FFLAGS+set} 6070ac_save_FFLAGS=$FFLAGS 6071FFLAGS= 6072{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6073echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6074if test "${ac_cv_prog_f77_g+set}" = set; then 6075 echo $ECHO_N "(cached) $ECHO_C" >&6 6076else 6077 FFLAGS=-g 6078cat >conftest.$ac_ext <<_ACEOF 6079 program main 6080 6081 end 6082_ACEOF 6083rm -f conftest.$ac_objext 6084if { (ac_try="$ac_compile" 6085case "(($ac_try" in 6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6087 *) ac_try_echo=$ac_try;; 6088esac 6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6090 (eval "$ac_compile") 2>conftest.er1 6091 ac_status=$? 6092 grep -v '^ *+' conftest.er1 >conftest.err 6093 rm -f conftest.er1 6094 cat conftest.err >&5 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); } && { 6097 test -z "$ac_f77_werror_flag" || 6098 test ! -s conftest.err 6099 } && test -s conftest.$ac_objext; then 6100 ac_cv_prog_f77_g=yes 6101else 6102 echo "$as_me: failed program was:" >&5 6103sed 's/^/| /' conftest.$ac_ext >&5 6104 6105 ac_cv_prog_f77_g=no 6106fi 6107 6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109 6110fi 6111{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6112echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6113if test "$ac_test_FFLAGS" = set; then 6114 FFLAGS=$ac_save_FFLAGS 6115elif test $ac_cv_prog_f77_g = yes; then 6116 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6117 FFLAGS="-g -O2" 6118 else 6119 FFLAGS="-g" 6120 fi 6121else 6122 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6123 FFLAGS="-O2" 6124 else 6125 FFLAGS= 6126 fi 6127fi 6128 6129G77=`test $ac_compiler_gnu = yes && echo yes` 6130ac_ext=c 6131ac_cpp='$CPP $CPPFLAGS' 6132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6134ac_compiler_gnu=$ac_cv_c_compiler_gnu 6135 6136 6137 6138# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6139 6140# find the maximum length of command line arguments 6141{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6142echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6143if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6144 echo $ECHO_N "(cached) $ECHO_C" >&6 6145else 6146 i=0 6147 teststring="ABCD" 6148 6149 case $build_os in 6150 msdosdjgpp*) 6151 # On DJGPP, this test can blow up pretty badly due to problems in libc 6152 # (any single argument exceeding 2000 bytes causes a buffer overrun 6153 # during glob expansion). Even if it were fixed, the result of this 6154 # check would be larger than it should be. 6155 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6156 ;; 6157 6158 gnu*) 6159 # Under GNU Hurd, this test is not required because there is 6160 # no limit to the length of command line arguments. 6161 # Libtool will interpret -1 as no limit whatsoever 6162 lt_cv_sys_max_cmd_len=-1; 6163 ;; 6164 6165 cygwin* | mingw*) 6166 # On Win9x/ME, this test blows up -- it succeeds, but takes 6167 # about 5 minutes as the teststring grows exponentially. 6168 # Worse, since 9x/ME are not pre-emptively multitasking, 6169 # you end up with a "frozen" computer, even though with patience 6170 # the test eventually succeeds (with a max line length of 256k). 6171 # Instead, let's just punt: use the minimum linelength reported by 6172 # all of the supported platforms: 8192 (on NT/2K/XP). 6173 lt_cv_sys_max_cmd_len=8192; 6174 ;; 6175 6176 amigaos*) 6177 # On AmigaOS with pdksh, this test takes hours, literally. 6178 # So we just punt and use a minimum line length of 8192. 6179 lt_cv_sys_max_cmd_len=8192; 6180 ;; 6181 6182 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6183 # This has been around since 386BSD, at least. Likely further. 6184 if test -x /sbin/sysctl; then 6185 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6186 elif test -x /usr/sbin/sysctl; then 6187 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6188 else 6189 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6190 fi 6191 # And add a safety zone 6192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6194 ;; 6195 6196 interix*) 6197 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6198 lt_cv_sys_max_cmd_len=196608 6199 ;; 6200 6201 osf*) 6202 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6203 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6204 # nice to cause kernel panics so lets avoid the loop below. 6205 # First set a reasonable default. 6206 lt_cv_sys_max_cmd_len=16384 6207 # 6208 if test -x /sbin/sysconfig; then 6209 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6210 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6211 esac 6212 fi 6213 ;; 6214 sco3.2v5*) 6215 lt_cv_sys_max_cmd_len=102400 6216 ;; 6217 sysv5* | sco5v6* | sysv4.2uw2*) 6218 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6219 if test -n "$kargmax"; then 6220 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6221 else 6222 lt_cv_sys_max_cmd_len=32768 6223 fi 6224 ;; 6225 *) 6226 # If test is not a shell built-in, we'll probably end up computing a 6227 # maximum length that is only half of the actual maximum length, but 6228 # we can't tell. 6229 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6230 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6231 = "XX$teststring") >/dev/null 2>&1 && 6232 new_result=`expr "X$teststring" : ".*" 2>&1` && 6233 lt_cv_sys_max_cmd_len=$new_result && 6234 test $i != 17 # 1/2 MB should be enough 6235 do 6236 i=`expr $i + 1` 6237 teststring=$teststring$teststring 6238 done 6239 teststring= 6240 # Add a significant safety factor because C++ compilers can tack on massive 6241 # amounts of additional arguments before passing them to the linker. 6242 # It appears as though 1/2 is a usable value. 6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6244 ;; 6245 esac 6246 6247fi 6248 6249if test -n $lt_cv_sys_max_cmd_len ; then 6250 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6251echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6252else 6253 { echo "$as_me:$LINENO: result: none" >&5 6254echo "${ECHO_T}none" >&6; } 6255fi 6256 6257 6258 6259 6260# Check for command to grab the raw symbol name followed by C symbol from nm. 6261{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6262echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6263if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6264 echo $ECHO_N "(cached) $ECHO_C" >&6 6265else 6266 6267# These are sane defaults that work on at least a few old systems. 6268# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6269 6270# Character class describing NM global symbol codes. 6271symcode='[BCDEGRST]' 6272 6273# Regexp to match symbols that can be accessed directly from C. 6274sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6275 6276# Transform an extracted symbol line into a proper C declaration 6277lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6278 6279# Transform an extracted symbol line into symbol name and symbol address 6280lt_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'" 6281 6282# Define system-specific variables. 6283case $host_os in 6284aix*) 6285 symcode='[BCDT]' 6286 ;; 6287cygwin* | mingw* | pw32*) 6288 symcode='[ABCDGISTW]' 6289 ;; 6290hpux*) # Its linker distinguishes data from code symbols 6291 if test "$host_cpu" = ia64; then 6292 symcode='[ABCDEGRST]' 6293 fi 6294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6295 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'" 6296 ;; 6297linux*) 6298 if test "$host_cpu" = ia64; then 6299 symcode='[ABCDGIRSTW]' 6300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6301 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'" 6302 fi 6303 ;; 6304irix* | nonstopux*) 6305 symcode='[BCDEGRST]' 6306 ;; 6307osf*) 6308 symcode='[BCDEGQRST]' 6309 ;; 6310solaris*) 6311 symcode='[BDRT]' 6312 ;; 6313sco3.2v5*) 6314 symcode='[DT]' 6315 ;; 6316sysv4.2uw2*) 6317 symcode='[DT]' 6318 ;; 6319sysv5* | sco5v6* | unixware* | OpenUNIX*) 6320 symcode='[ABDT]' 6321 ;; 6322sysv4) 6323 symcode='[DFNSTU]' 6324 ;; 6325esac 6326 6327# Handle CRLF in mingw tool chain 6328opt_cr= 6329case $build_os in 6330mingw*) 6331 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6332 ;; 6333esac 6334 6335# If we're using GNU nm, then use its standard symbol codes. 6336case `$NM -V 2>&1` in 6337*GNU* | *'with BFD'*) 6338 symcode='[ABCDGIRSTW]' ;; 6339esac 6340 6341# Try without a prefix undercore, then with it. 6342for ac_symprfx in "" "_"; do 6343 6344 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6345 symxfrm="\\1 $ac_symprfx\\2 \\2" 6346 6347 # Write the raw and C identifiers. 6348 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6349 6350 # Check to see that the pipe works correctly. 6351 pipe_works=no 6352 6353 rm -f conftest* 6354 cat > conftest.$ac_ext <<EOF 6355#ifdef __cplusplus 6356extern "C" { 6357#endif 6358char nm_test_var; 6359void nm_test_func(){} 6360#ifdef __cplusplus 6361} 6362#endif 6363int main(){nm_test_var='a';nm_test_func();return(0);} 6364EOF 6365 6366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6367 (eval $ac_compile) 2>&5 6368 ac_status=$? 6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6370 (exit $ac_status); }; then 6371 # Now try to grab the symbols. 6372 nlist=conftest.nm 6373 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6374 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6375 ac_status=$? 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6377 (exit $ac_status); } && test -s "$nlist"; then 6378 # Try sorting and uniquifying the output. 6379 if sort "$nlist" | uniq > "$nlist"T; then 6380 mv -f "$nlist"T "$nlist" 6381 else 6382 rm -f "$nlist"T 6383 fi 6384 6385 # Make sure that we snagged all the symbols we need. 6386 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6387 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6388 cat <<EOF > conftest.$ac_ext 6389#ifdef __cplusplus 6390extern "C" { 6391#endif 6392 6393EOF 6394 # Now generate the symbol file. 6395 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6396 6397 cat <<EOF >> conftest.$ac_ext 6398#if defined (__STDC__) && __STDC__ 6399# define lt_ptr_t void * 6400#else 6401# define lt_ptr_t char * 6402# define const 6403#endif 6404 6405/* The mapping between symbol names and symbols. */ 6406const struct { 6407 const char *name; 6408 lt_ptr_t address; 6409} 6410lt_preloaded_symbols[] = 6411{ 6412EOF 6413 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6414 cat <<\EOF >> conftest.$ac_ext 6415 {0, (lt_ptr_t) 0} 6416}; 6417 6418#ifdef __cplusplus 6419} 6420#endif 6421EOF 6422 # Now try linking the two files. 6423 mv conftest.$ac_objext conftstm.$ac_objext 6424 lt_save_LIBS="$LIBS" 6425 lt_save_CFLAGS="$CFLAGS" 6426 LIBS="conftstm.$ac_objext" 6427 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6429 (eval $ac_link) 2>&5 6430 ac_status=$? 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6433 pipe_works=yes 6434 fi 6435 LIBS="$lt_save_LIBS" 6436 CFLAGS="$lt_save_CFLAGS" 6437 else 6438 echo "cannot find nm_test_func in $nlist" >&5 6439 fi 6440 else 6441 echo "cannot find nm_test_var in $nlist" >&5 6442 fi 6443 else 6444 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6445 fi 6446 else 6447 echo "$progname: failed program was:" >&5 6448 cat conftest.$ac_ext >&5 6449 fi 6450 rm -f conftest* conftst* 6451 6452 # Do not use the global_symbol_pipe unless it works. 6453 if test "$pipe_works" = yes; then 6454 break 6455 else 6456 lt_cv_sys_global_symbol_pipe= 6457 fi 6458done 6459 6460fi 6461 6462if test -z "$lt_cv_sys_global_symbol_pipe"; then 6463 lt_cv_sys_global_symbol_to_cdecl= 6464fi 6465if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6466 { echo "$as_me:$LINENO: result: failed" >&5 6467echo "${ECHO_T}failed" >&6; } 6468else 6469 { echo "$as_me:$LINENO: result: ok" >&5 6470echo "${ECHO_T}ok" >&6; } 6471fi 6472 6473{ echo "$as_me:$LINENO: checking for objdir" >&5 6474echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6475if test "${lt_cv_objdir+set}" = set; then 6476 echo $ECHO_N "(cached) $ECHO_C" >&6 6477else 6478 rm -f .libs 2>/dev/null 6479mkdir .libs 2>/dev/null 6480if test -d .libs; then 6481 lt_cv_objdir=.libs 6482else 6483 # MS-DOS does not allow filenames that begin with a dot. 6484 lt_cv_objdir=_libs 6485fi 6486rmdir .libs 2>/dev/null 6487fi 6488{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6489echo "${ECHO_T}$lt_cv_objdir" >&6; } 6490objdir=$lt_cv_objdir 6491 6492 6493 6494 6495 6496case $host_os in 6497aix3*) 6498 # AIX sometimes has problems with the GCC collect2 program. For some 6499 # reason, if we set the COLLECT_NAMES environment variable, the problems 6500 # vanish in a puff of smoke. 6501 if test "X${COLLECT_NAMES+set}" != Xset; then 6502 COLLECT_NAMES= 6503 export COLLECT_NAMES 6504 fi 6505 ;; 6506esac 6507 6508# Sed substitution that helps us do robust quoting. It backslashifies 6509# metacharacters that are still active within double-quoted strings. 6510Xsed='sed -e 1s/^X//' 6511sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6512 6513# Same as above, but do not quote variable references. 6514double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6515 6516# Sed substitution to delay expansion of an escaped shell variable in a 6517# double_quote_subst'ed string. 6518delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6519 6520# Sed substitution to avoid accidental globbing in evaled expressions 6521no_glob_subst='s/\*/\\\*/g' 6522 6523# Constants: 6524rm="rm -f" 6525 6526# Global variables: 6527default_ofile=libtool 6528can_build_shared=yes 6529 6530# All known linkers require a `.a' archive for static linking (except MSVC, 6531# which needs '.lib'). 6532libext=a 6533ltmain="$ac_aux_dir/ltmain.sh" 6534ofile="$default_ofile" 6535with_gnu_ld="$lt_cv_prog_gnu_ld" 6536 6537if test -n "$ac_tool_prefix"; then 6538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6539set dummy ${ac_tool_prefix}ar; ac_word=$2 6540{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6542if test "${ac_cv_prog_AR+set}" = set; then 6543 echo $ECHO_N "(cached) $ECHO_C" >&6 6544else 6545 if test -n "$AR"; then 6546 ac_cv_prog_AR="$AR" # Let the user override the test. 6547else 6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6549for as_dir in $PATH 6550do 6551 IFS=$as_save_IFS 6552 test -z "$as_dir" && as_dir=. 6553 for ac_exec_ext in '' $ac_executable_extensions; do 6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6555 ac_cv_prog_AR="${ac_tool_prefix}ar" 6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6557 break 2 6558 fi 6559done 6560done 6561IFS=$as_save_IFS 6562 6563fi 6564fi 6565AR=$ac_cv_prog_AR 6566if test -n "$AR"; then 6567 { echo "$as_me:$LINENO: result: $AR" >&5 6568echo "${ECHO_T}$AR" >&6; } 6569else 6570 { echo "$as_me:$LINENO: result: no" >&5 6571echo "${ECHO_T}no" >&6; } 6572fi 6573 6574 6575fi 6576if test -z "$ac_cv_prog_AR"; then 6577 ac_ct_AR=$AR 6578 # Extract the first word of "ar", so it can be a program name with args. 6579set dummy ar; ac_word=$2 6580{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6582if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 if test -n "$ac_ct_AR"; then 6586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6587else 6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6589for as_dir in $PATH 6590do 6591 IFS=$as_save_IFS 6592 test -z "$as_dir" && as_dir=. 6593 for ac_exec_ext in '' $ac_executable_extensions; do 6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6595 ac_cv_prog_ac_ct_AR="ar" 6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6597 break 2 6598 fi 6599done 6600done 6601IFS=$as_save_IFS 6602 6603fi 6604fi 6605ac_ct_AR=$ac_cv_prog_ac_ct_AR 6606if test -n "$ac_ct_AR"; then 6607 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6608echo "${ECHO_T}$ac_ct_AR" >&6; } 6609else 6610 { echo "$as_me:$LINENO: result: no" >&5 6611echo "${ECHO_T}no" >&6; } 6612fi 6613 6614 if test "x$ac_ct_AR" = x; then 6615 AR="false" 6616 else 6617 case $cross_compiling:$ac_tool_warned in 6618yes:) 6619{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6620whose name does not start with the host triplet. If you think this 6621configuration is useful to you, please write to autoconf@gnu.org." >&5 6622echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6623whose name does not start with the host triplet. If you think this 6624configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6625ac_tool_warned=yes ;; 6626esac 6627 AR=$ac_ct_AR 6628 fi 6629else 6630 AR="$ac_cv_prog_AR" 6631fi 6632 6633if test -n "$ac_tool_prefix"; then 6634 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6635set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6636{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6638if test "${ac_cv_prog_RANLIB+set}" = set; then 6639 echo $ECHO_N "(cached) $ECHO_C" >&6 6640else 6641 if test -n "$RANLIB"; then 6642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6643else 6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6645for as_dir in $PATH 6646do 6647 IFS=$as_save_IFS 6648 test -z "$as_dir" && as_dir=. 6649 for ac_exec_ext in '' $ac_executable_extensions; do 6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6651 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6653 break 2 6654 fi 6655done 6656done 6657IFS=$as_save_IFS 6658 6659fi 6660fi 6661RANLIB=$ac_cv_prog_RANLIB 6662if test -n "$RANLIB"; then 6663 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6664echo "${ECHO_T}$RANLIB" >&6; } 6665else 6666 { echo "$as_me:$LINENO: result: no" >&5 6667echo "${ECHO_T}no" >&6; } 6668fi 6669 6670 6671fi 6672if test -z "$ac_cv_prog_RANLIB"; then 6673 ac_ct_RANLIB=$RANLIB 6674 # Extract the first word of "ranlib", so it can be a program name with args. 6675set dummy ranlib; ac_word=$2 6676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6678if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6679 echo $ECHO_N "(cached) $ECHO_C" >&6 6680else 6681 if test -n "$ac_ct_RANLIB"; then 6682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6683else 6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685for as_dir in $PATH 6686do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6691 ac_cv_prog_ac_ct_RANLIB="ranlib" 6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6693 break 2 6694 fi 6695done 6696done 6697IFS=$as_save_IFS 6698 6699fi 6700fi 6701ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6702if test -n "$ac_ct_RANLIB"; then 6703 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6704echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6705else 6706 { echo "$as_me:$LINENO: result: no" >&5 6707echo "${ECHO_T}no" >&6; } 6708fi 6709 6710 if test "x$ac_ct_RANLIB" = x; then 6711 RANLIB=":" 6712 else 6713 case $cross_compiling:$ac_tool_warned in 6714yes:) 6715{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6716whose name does not start with the host triplet. If you think this 6717configuration is useful to you, please write to autoconf@gnu.org." >&5 6718echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6719whose name does not start with the host triplet. If you think this 6720configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6721ac_tool_warned=yes ;; 6722esac 6723 RANLIB=$ac_ct_RANLIB 6724 fi 6725else 6726 RANLIB="$ac_cv_prog_RANLIB" 6727fi 6728 6729if test -n "$ac_tool_prefix"; then 6730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6731set dummy ${ac_tool_prefix}strip; ac_word=$2 6732{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6734if test "${ac_cv_prog_STRIP+set}" = set; then 6735 echo $ECHO_N "(cached) $ECHO_C" >&6 6736else 6737 if test -n "$STRIP"; then 6738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6747 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751done 6752done 6753IFS=$as_save_IFS 6754 6755fi 6756fi 6757STRIP=$ac_cv_prog_STRIP 6758if test -n "$STRIP"; then 6759 { echo "$as_me:$LINENO: result: $STRIP" >&5 6760echo "${ECHO_T}$STRIP" >&6; } 6761else 6762 { echo "$as_me:$LINENO: result: no" >&5 6763echo "${ECHO_T}no" >&6; } 6764fi 6765 6766 6767fi 6768if test -z "$ac_cv_prog_STRIP"; then 6769 ac_ct_STRIP=$STRIP 6770 # Extract the first word of "strip", so it can be a program name with args. 6771set dummy strip; ac_word=$2 6772{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6775 echo $ECHO_N "(cached) $ECHO_C" >&6 6776else 6777 if test -n "$ac_ct_STRIP"; then 6778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6779else 6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781for as_dir in $PATH 6782do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6787 ac_cv_prog_ac_ct_STRIP="strip" 6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791done 6792done 6793IFS=$as_save_IFS 6794 6795fi 6796fi 6797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6798if test -n "$ac_ct_STRIP"; then 6799 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6800echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6801else 6802 { echo "$as_me:$LINENO: result: no" >&5 6803echo "${ECHO_T}no" >&6; } 6804fi 6805 6806 if test "x$ac_ct_STRIP" = x; then 6807 STRIP=":" 6808 else 6809 case $cross_compiling:$ac_tool_warned in 6810yes:) 6811{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6812whose name does not start with the host triplet. If you think this 6813configuration is useful to you, please write to autoconf@gnu.org." >&5 6814echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6815whose name does not start with the host triplet. If you think this 6816configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6817ac_tool_warned=yes ;; 6818esac 6819 STRIP=$ac_ct_STRIP 6820 fi 6821else 6822 STRIP="$ac_cv_prog_STRIP" 6823fi 6824 6825 6826old_CC="$CC" 6827old_CFLAGS="$CFLAGS" 6828 6829# Set sane defaults for various variables 6830test -z "$AR" && AR=ar 6831test -z "$AR_FLAGS" && AR_FLAGS=cru 6832test -z "$AS" && AS=as 6833test -z "$CC" && CC=cc 6834test -z "$LTCC" && LTCC=$CC 6835test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6836test -z "$DLLTOOL" && DLLTOOL=dlltool 6837test -z "$LD" && LD=ld 6838test -z "$LN_S" && LN_S="ln -s" 6839test -z "$MAGIC_CMD" && MAGIC_CMD=file 6840test -z "$NM" && NM=nm 6841test -z "$SED" && SED=sed 6842test -z "$OBJDUMP" && OBJDUMP=objdump 6843test -z "$RANLIB" && RANLIB=: 6844test -z "$STRIP" && STRIP=: 6845test -z "$ac_objext" && ac_objext=o 6846 6847# Determine commands to create old-style static archives. 6848old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6849old_postinstall_cmds='chmod 644 $oldlib' 6850old_postuninstall_cmds= 6851 6852if test -n "$RANLIB"; then 6853 case $host_os in 6854 openbsd*) 6855 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6856 ;; 6857 *) 6858 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6859 ;; 6860 esac 6861 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6862fi 6863 6864for cc_temp in $compiler""; do 6865 case $cc_temp in 6866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6868 \-*) ;; 6869 *) break;; 6870 esac 6871done 6872cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6873 6874 6875# Only perform the check for file, if the check method requires it 6876case $deplibs_check_method in 6877file_magic*) 6878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6879 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6880echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6881if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 case $MAGIC_CMD in 6885[\\/*] | ?:[\\/]*) 6886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6887 ;; 6888*) 6889 lt_save_MAGIC_CMD="$MAGIC_CMD" 6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6892 for ac_dir in $ac_dummy; do 6893 IFS="$lt_save_ifs" 6894 test -z "$ac_dir" && ac_dir=. 6895 if test -f $ac_dir/${ac_tool_prefix}file; then 6896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6897 if test -n "$file_magic_test_file"; then 6898 case $deplibs_check_method in 6899 "file_magic "*) 6900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6903 $EGREP "$file_magic_regex" > /dev/null; then 6904 : 6905 else 6906 cat <<EOF 1>&2 6907 6908*** Warning: the command libtool uses to detect shared libraries, 6909*** $file_magic_cmd, produces output that libtool cannot recognize. 6910*** The result is that libtool may fail to recognize shared libraries 6911*** as such. This will affect the creation of libtool libraries that 6912*** depend on shared libraries, but programs linked with such libtool 6913*** libraries will work regardless of this problem. Nevertheless, you 6914*** may want to report the problem to your system manager and/or to 6915*** bug-libtool@gnu.org 6916 6917EOF 6918 fi ;; 6919 esac 6920 fi 6921 break 6922 fi 6923 done 6924 IFS="$lt_save_ifs" 6925 MAGIC_CMD="$lt_save_MAGIC_CMD" 6926 ;; 6927esac 6928fi 6929 6930MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6931if test -n "$MAGIC_CMD"; then 6932 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6933echo "${ECHO_T}$MAGIC_CMD" >&6; } 6934else 6935 { echo "$as_me:$LINENO: result: no" >&5 6936echo "${ECHO_T}no" >&6; } 6937fi 6938 6939if test -z "$lt_cv_path_MAGIC_CMD"; then 6940 if test -n "$ac_tool_prefix"; then 6941 { echo "$as_me:$LINENO: checking for file" >&5 6942echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6943if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6944 echo $ECHO_N "(cached) $ECHO_C" >&6 6945else 6946 case $MAGIC_CMD in 6947[\\/*] | ?:[\\/]*) 6948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6949 ;; 6950*) 6951 lt_save_MAGIC_CMD="$MAGIC_CMD" 6952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6954 for ac_dir in $ac_dummy; do 6955 IFS="$lt_save_ifs" 6956 test -z "$ac_dir" && ac_dir=. 6957 if test -f $ac_dir/file; then 6958 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6959 if test -n "$file_magic_test_file"; then 6960 case $deplibs_check_method in 6961 "file_magic "*) 6962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6965 $EGREP "$file_magic_regex" > /dev/null; then 6966 : 6967 else 6968 cat <<EOF 1>&2 6969 6970*** Warning: the command libtool uses to detect shared libraries, 6971*** $file_magic_cmd, produces output that libtool cannot recognize. 6972*** The result is that libtool may fail to recognize shared libraries 6973*** as such. This will affect the creation of libtool libraries that 6974*** depend on shared libraries, but programs linked with such libtool 6975*** libraries will work regardless of this problem. Nevertheless, you 6976*** may want to report the problem to your system manager and/or to 6977*** bug-libtool@gnu.org 6978 6979EOF 6980 fi ;; 6981 esac 6982 fi 6983 break 6984 fi 6985 done 6986 IFS="$lt_save_ifs" 6987 MAGIC_CMD="$lt_save_MAGIC_CMD" 6988 ;; 6989esac 6990fi 6991 6992MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6993if test -n "$MAGIC_CMD"; then 6994 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6995echo "${ECHO_T}$MAGIC_CMD" >&6; } 6996else 6997 { echo "$as_me:$LINENO: result: no" >&5 6998echo "${ECHO_T}no" >&6; } 6999fi 7000 7001 else 7002 MAGIC_CMD=: 7003 fi 7004fi 7005 7006 fi 7007 ;; 7008esac 7009 7010enable_dlopen=no 7011enable_win32_dll=no 7012 7013# Check whether --enable-libtool-lock was given. 7014if test "${enable_libtool_lock+set}" = set; then 7015 enableval=$enable_libtool_lock; 7016fi 7017 7018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7019 7020 7021# Check whether --with-pic was given. 7022if test "${with_pic+set}" = set; then 7023 withval=$with_pic; pic_mode="$withval" 7024else 7025 pic_mode=default 7026fi 7027 7028test -z "$pic_mode" && pic_mode=default 7029 7030# Use C for the default configuration in the libtool script 7031tagname= 7032lt_save_CC="$CC" 7033ac_ext=c 7034ac_cpp='$CPP $CPPFLAGS' 7035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7037ac_compiler_gnu=$ac_cv_c_compiler_gnu 7038 7039 7040# Source file extension for C test sources. 7041ac_ext=c 7042 7043# Object file extension for compiled C test sources. 7044objext=o 7045objext=$objext 7046 7047# Code to be used in simple compile tests 7048lt_simple_compile_test_code="int some_variable = 0;\n" 7049 7050# Code to be used in simple link tests 7051lt_simple_link_test_code='int main(){return(0);}\n' 7052 7053 7054# If no C compiler was specified, use CC. 7055LTCC=${LTCC-"$CC"} 7056 7057# If no C compiler flags were specified, use CFLAGS. 7058LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7059 7060# Allow CC to be a program name with arguments. 7061compiler=$CC 7062 7063 7064# save warnings/boilerplate of simple test code 7065ac_outfile=conftest.$ac_objext 7066printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7067eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7068_lt_compiler_boilerplate=`cat conftest.err` 7069$rm conftest* 7070 7071ac_outfile=conftest.$ac_objext 7072printf "$lt_simple_link_test_code" >conftest.$ac_ext 7073eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7074_lt_linker_boilerplate=`cat conftest.err` 7075$rm conftest* 7076 7077 7078 7079lt_prog_compiler_no_builtin_flag= 7080 7081if test "$GCC" = yes; then 7082 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7083 7084 7085{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7086echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7087if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7088 echo $ECHO_N "(cached) $ECHO_C" >&6 7089else 7090 lt_cv_prog_compiler_rtti_exceptions=no 7091 ac_outfile=conftest.$ac_objext 7092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7093 lt_compiler_flag="-fno-rtti -fno-exceptions" 7094 # Insert the option either (1) after the last *FLAGS variable, or 7095 # (2) before a word containing "conftest.", or (3) at the end. 7096 # Note that $ac_compile itself does not contain backslashes and begins 7097 # with a dollar sign (not a hyphen), so the echo should work correctly. 7098 # The option is referenced via a variable to avoid confusing sed. 7099 lt_compile=`echo "$ac_compile" | $SED \ 7100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7102 -e 's:$: $lt_compiler_flag:'` 7103 (eval echo "\"\$as_me:7103: $lt_compile\"" >&5) 7104 (eval "$lt_compile" 2>conftest.err) 7105 ac_status=$? 7106 cat conftest.err >&5 7107 echo "$as_me:7107: \$? = $ac_status" >&5 7108 if (exit $ac_status) && test -s "$ac_outfile"; then 7109 # The compiler can only warn and ignore the option if not recognized 7110 # So say no if there are warnings other than the usual output. 7111 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7114 lt_cv_prog_compiler_rtti_exceptions=yes 7115 fi 7116 fi 7117 $rm conftest* 7118 7119fi 7120{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7121echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7122 7123if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7125else 7126 : 7127fi 7128 7129fi 7130 7131lt_prog_compiler_wl= 7132lt_prog_compiler_pic= 7133lt_prog_compiler_static= 7134 7135{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7136echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7137 7138 if test "$GCC" = yes; then 7139 lt_prog_compiler_wl='-Wl,' 7140 lt_prog_compiler_static='-static' 7141 7142 case $host_os in 7143 aix*) 7144 # All AIX code is PIC. 7145 if test "$host_cpu" = ia64; then 7146 # AIX 5 now supports IA64 processor 7147 lt_prog_compiler_static='-Bstatic' 7148 fi 7149 ;; 7150 7151 amigaos*) 7152 # FIXME: we need at least 68020 code to build shared libraries, but 7153 # adding the `-m68020' flag to GCC prevents building anything better, 7154 # like `-m68040'. 7155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7156 ;; 7157 7158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7159 # PIC is the default for these OSes. 7160 ;; 7161 7162 mingw* | pw32* | os2*) 7163 # This hack is so that the source file can tell whether it is being 7164 # built for inclusion in a dll (and should export symbols for example). 7165 lt_prog_compiler_pic='-DDLL_EXPORT' 7166 ;; 7167 7168 darwin* | rhapsody*) 7169 # PIC is the default on this platform 7170 # Common symbols not allowed in MH_DYLIB files 7171 lt_prog_compiler_pic='-fno-common' 7172 ;; 7173 7174 interix3*) 7175 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7176 # Instead, we relocate shared libraries at runtime. 7177 ;; 7178 7179 msdosdjgpp*) 7180 # Just because we use GCC doesn't mean we suddenly get shared libraries 7181 # on systems that don't support them. 7182 lt_prog_compiler_can_build_shared=no 7183 enable_shared=no 7184 ;; 7185 7186 sysv4*MP*) 7187 if test -d /usr/nec; then 7188 lt_prog_compiler_pic=-Kconform_pic 7189 fi 7190 ;; 7191 7192 hpux*) 7193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7194 # not for PA HP-UX. 7195 case $host_cpu in 7196 hppa*64*|ia64*) 7197 # +Z the default 7198 ;; 7199 *) 7200 lt_prog_compiler_pic='-fPIC' 7201 ;; 7202 esac 7203 ;; 7204 7205 *) 7206 lt_prog_compiler_pic='-fPIC' 7207 ;; 7208 esac 7209 else 7210 # PORTME Check for flag to pass linker flags through the system compiler. 7211 case $host_os in 7212 aix*) 7213 lt_prog_compiler_wl='-Wl,' 7214 if test "$host_cpu" = ia64; then 7215 # AIX 5 now supports IA64 processor 7216 lt_prog_compiler_static='-Bstatic' 7217 else 7218 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7219 fi 7220 ;; 7221 darwin*) 7222 # PIC is the default on this platform 7223 # Common symbols not allowed in MH_DYLIB files 7224 case $cc_basename in 7225 xlc*) 7226 lt_prog_compiler_pic='-qnocommon' 7227 lt_prog_compiler_wl='-Wl,' 7228 ;; 7229 esac 7230 ;; 7231 7232 mingw* | pw32* | os2*) 7233 # This hack is so that the source file can tell whether it is being 7234 # built for inclusion in a dll (and should export symbols for example). 7235 lt_prog_compiler_pic='-DDLL_EXPORT' 7236 ;; 7237 7238 hpux9* | hpux10* | hpux11*) 7239 lt_prog_compiler_wl='-Wl,' 7240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7241 # not for PA HP-UX. 7242 case $host_cpu in 7243 hppa*64*|ia64*) 7244 # +Z the default 7245 ;; 7246 *) 7247 lt_prog_compiler_pic='+Z' 7248 ;; 7249 esac 7250 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7251 lt_prog_compiler_static='${wl}-a ${wl}archive' 7252 ;; 7253 7254 irix5* | irix6* | nonstopux*) 7255 lt_prog_compiler_wl='-Wl,' 7256 # PIC (with -KPIC) is the default. 7257 lt_prog_compiler_static='-non_shared' 7258 ;; 7259 7260 newsos6) 7261 lt_prog_compiler_pic='-KPIC' 7262 lt_prog_compiler_static='-Bstatic' 7263 ;; 7264 7265 linux*) 7266 case $cc_basename in 7267 icc* | ecc*) 7268 lt_prog_compiler_wl='-Wl,' 7269 lt_prog_compiler_pic='-KPIC' 7270 lt_prog_compiler_static='-static' 7271 ;; 7272 pgcc* | pgf77* | pgf90* | pgf95*) 7273 # Portland Group compilers (*not* the Pentium gcc compiler, 7274 # which looks to be a dead project) 7275 lt_prog_compiler_wl='-Wl,' 7276 lt_prog_compiler_pic='-fpic' 7277 lt_prog_compiler_static='-Bstatic' 7278 ;; 7279 ccc*) 7280 lt_prog_compiler_wl='-Wl,' 7281 # All Alpha code is PIC. 7282 lt_prog_compiler_static='-non_shared' 7283 ;; 7284 esac 7285 ;; 7286 7287 osf3* | osf4* | osf5*) 7288 lt_prog_compiler_wl='-Wl,' 7289 # All OSF/1 code is PIC. 7290 lt_prog_compiler_static='-non_shared' 7291 ;; 7292 7293 solaris*) 7294 lt_prog_compiler_pic='-KPIC' 7295 lt_prog_compiler_static='-Bstatic' 7296 case $cc_basename in 7297 f77* | f90* | f95*) 7298 lt_prog_compiler_wl='-Qoption ld ';; 7299 *) 7300 lt_prog_compiler_wl='-Wl,';; 7301 esac 7302 ;; 7303 7304 sunos4*) 7305 lt_prog_compiler_wl='-Qoption ld ' 7306 lt_prog_compiler_pic='-PIC' 7307 lt_prog_compiler_static='-Bstatic' 7308 ;; 7309 7310 sysv4 | sysv4.2uw2* | sysv4.3*) 7311 lt_prog_compiler_wl='-Wl,' 7312 lt_prog_compiler_pic='-KPIC' 7313 lt_prog_compiler_static='-Bstatic' 7314 ;; 7315 7316 sysv4*MP*) 7317 if test -d /usr/nec ;then 7318 lt_prog_compiler_pic='-Kconform_pic' 7319 lt_prog_compiler_static='-Bstatic' 7320 fi 7321 ;; 7322 7323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7324 lt_prog_compiler_wl='-Wl,' 7325 lt_prog_compiler_pic='-KPIC' 7326 lt_prog_compiler_static='-Bstatic' 7327 ;; 7328 7329 unicos*) 7330 lt_prog_compiler_wl='-Wl,' 7331 lt_prog_compiler_can_build_shared=no 7332 ;; 7333 7334 uts4*) 7335 lt_prog_compiler_pic='-pic' 7336 lt_prog_compiler_static='-Bstatic' 7337 ;; 7338 7339 *) 7340 lt_prog_compiler_can_build_shared=no 7341 ;; 7342 esac 7343 fi 7344 7345{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7346echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7347 7348# 7349# Check to make sure the PIC flag actually works. 7350# 7351if test -n "$lt_prog_compiler_pic"; then 7352 7353{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7354echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7355if test "${lt_prog_compiler_pic_works+set}" = set; then 7356 echo $ECHO_N "(cached) $ECHO_C" >&6 7357else 7358 lt_prog_compiler_pic_works=no 7359 ac_outfile=conftest.$ac_objext 7360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7362 # Insert the option either (1) after the last *FLAGS variable, or 7363 # (2) before a word containing "conftest.", or (3) at the end. 7364 # Note that $ac_compile itself does not contain backslashes and begins 7365 # with a dollar sign (not a hyphen), so the echo should work correctly. 7366 # The option is referenced via a variable to avoid confusing sed. 7367 lt_compile=`echo "$ac_compile" | $SED \ 7368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7370 -e 's:$: $lt_compiler_flag:'` 7371 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5) 7372 (eval "$lt_compile" 2>conftest.err) 7373 ac_status=$? 7374 cat conftest.err >&5 7375 echo "$as_me:7375: \$? = $ac_status" >&5 7376 if (exit $ac_status) && test -s "$ac_outfile"; then 7377 # The compiler can only warn and ignore the option if not recognized 7378 # So say no if there are warnings other than the usual output. 7379 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7382 lt_prog_compiler_pic_works=yes 7383 fi 7384 fi 7385 $rm conftest* 7386 7387fi 7388{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7389echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7390 7391if test x"$lt_prog_compiler_pic_works" = xyes; then 7392 case $lt_prog_compiler_pic in 7393 "" | " "*) ;; 7394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7395 esac 7396else 7397 lt_prog_compiler_pic= 7398 lt_prog_compiler_can_build_shared=no 7399fi 7400 7401fi 7402case $host_os in 7403 # For platforms which do not support PIC, -DPIC is meaningless: 7404 *djgpp*) 7405 lt_prog_compiler_pic= 7406 ;; 7407 *) 7408 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7409 ;; 7410esac 7411 7412# 7413# Check to make sure the static flag actually works. 7414# 7415wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7416{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7417echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7418if test "${lt_prog_compiler_static_works+set}" = set; then 7419 echo $ECHO_N "(cached) $ECHO_C" >&6 7420else 7421 lt_prog_compiler_static_works=no 7422 save_LDFLAGS="$LDFLAGS" 7423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7424 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7426 # The linker can only warn and ignore the option if not recognized 7427 # So say no if there are warnings 7428 if test -s conftest.err; then 7429 # Append any errors to the config.log. 7430 cat conftest.err 1>&5 7431 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7433 if diff conftest.exp conftest.er2 >/dev/null; then 7434 lt_prog_compiler_static_works=yes 7435 fi 7436 else 7437 lt_prog_compiler_static_works=yes 7438 fi 7439 fi 7440 $rm conftest* 7441 LDFLAGS="$save_LDFLAGS" 7442 7443fi 7444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7445echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7446 7447if test x"$lt_prog_compiler_static_works" = xyes; then 7448 : 7449else 7450 lt_prog_compiler_static= 7451fi 7452 7453 7454{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7455echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7456if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7457 echo $ECHO_N "(cached) $ECHO_C" >&6 7458else 7459 lt_cv_prog_compiler_c_o=no 7460 $rm -r conftest 2>/dev/null 7461 mkdir conftest 7462 cd conftest 7463 mkdir out 7464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7465 7466 lt_compiler_flag="-o out/conftest2.$ac_objext" 7467 # Insert the option either (1) after the last *FLAGS variable, or 7468 # (2) before a word containing "conftest.", or (3) at the end. 7469 # Note that $ac_compile itself does not contain backslashes and begins 7470 # with a dollar sign (not a hyphen), so the echo should work correctly. 7471 lt_compile=`echo "$ac_compile" | $SED \ 7472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7474 -e 's:$: $lt_compiler_flag:'` 7475 (eval echo "\"\$as_me:7475: $lt_compile\"" >&5) 7476 (eval "$lt_compile" 2>out/conftest.err) 7477 ac_status=$? 7478 cat out/conftest.err >&5 7479 echo "$as_me:7479: \$? = $ac_status" >&5 7480 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7481 then 7482 # The compiler can only warn and ignore the option if not recognized 7483 # So say no if there are warnings 7484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7487 lt_cv_prog_compiler_c_o=yes 7488 fi 7489 fi 7490 chmod u+w . 2>&5 7491 $rm conftest* 7492 # SGI C++ compiler will create directory out/ii_files/ for 7493 # template instantiation 7494 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7495 $rm out/* && rmdir out 7496 cd .. 7497 rmdir conftest 7498 $rm conftest* 7499 7500fi 7501{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7502echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7503 7504 7505hard_links="nottested" 7506if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7507 # do not overwrite the value of need_locks provided by the user 7508 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7509echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7510 hard_links=yes 7511 $rm conftest* 7512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7513 touch conftest.a 7514 ln conftest.a conftest.b 2>&5 || hard_links=no 7515 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7516 { echo "$as_me:$LINENO: result: $hard_links" >&5 7517echo "${ECHO_T}$hard_links" >&6; } 7518 if test "$hard_links" = no; then 7519 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7520echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7521 need_locks=warn 7522 fi 7523else 7524 need_locks=no 7525fi 7526 7527{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7528echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7529 7530 runpath_var= 7531 allow_undefined_flag= 7532 enable_shared_with_static_runtimes=no 7533 archive_cmds= 7534 archive_expsym_cmds= 7535 old_archive_From_new_cmds= 7536 old_archive_from_expsyms_cmds= 7537 export_dynamic_flag_spec= 7538 whole_archive_flag_spec= 7539 thread_safe_flag_spec= 7540 hardcode_libdir_flag_spec= 7541 hardcode_libdir_flag_spec_ld= 7542 hardcode_libdir_separator= 7543 hardcode_direct=no 7544 hardcode_minus_L=no 7545 hardcode_shlibpath_var=unsupported 7546 link_all_deplibs=unknown 7547 hardcode_automatic=no 7548 module_cmds= 7549 module_expsym_cmds= 7550 always_export_symbols=no 7551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7552 # include_expsyms should be a list of space-separated symbols to be *always* 7553 # included in the symbol list 7554 include_expsyms= 7555 # exclude_expsyms can be an extended regexp of symbols to exclude 7556 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7558 # as well as any symbol that contains `d'. 7559 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7561 # platforms (ab)use it in PIC code, but their linkers get confused if 7562 # the symbol is explicitly referenced. Since portable code cannot 7563 # rely on this symbol name, it's probably fine to never include it in 7564 # preloaded symbol tables. 7565 extract_expsyms_cmds= 7566 # Just being paranoid about ensuring that cc_basename is set. 7567 for cc_temp in $compiler""; do 7568 case $cc_temp in 7569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7571 \-*) ;; 7572 *) break;; 7573 esac 7574done 7575cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7576 7577 case $host_os in 7578 cygwin* | mingw* | pw32*) 7579 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7580 # When not using gcc, we currently assume that we are using 7581 # Microsoft Visual C++. 7582 if test "$GCC" != yes; then 7583 with_gnu_ld=no 7584 fi 7585 ;; 7586 interix*) 7587 # we just hope/assume this is gcc and not c89 (= MSVC++) 7588 with_gnu_ld=yes 7589 ;; 7590 openbsd*) 7591 with_gnu_ld=no 7592 ;; 7593 esac 7594 7595 ld_shlibs=yes 7596 if test "$with_gnu_ld" = yes; then 7597 # If archive_cmds runs LD, not CC, wlarc should be empty 7598 wlarc='${wl}' 7599 7600 # Set some defaults for GNU ld with shared library support. These 7601 # are reset later if shared libraries are not supported. Putting them 7602 # here allows them to be overridden if necessary. 7603 runpath_var=LD_RUN_PATH 7604 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7605 export_dynamic_flag_spec='${wl}--export-dynamic' 7606 # ancient GNU ld didn't support --whole-archive et. al. 7607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7608 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7609 else 7610 whole_archive_flag_spec= 7611 fi 7612 supports_anon_versioning=no 7613 case `$LD -v 2>/dev/null` in 7614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7617 *\ 2.11.*) ;; # other 2.11 versions 7618 *) supports_anon_versioning=yes ;; 7619 esac 7620 7621 # See if GNU ld supports shared libraries. 7622 case $host_os in 7623 aix3* | aix4* | aix5*) 7624 # On AIX/PPC, the GNU linker is very broken 7625 if test "$host_cpu" != ia64; then 7626 ld_shlibs=no 7627 cat <<EOF 1>&2 7628 7629*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7630*** to be unable to reliably create shared libraries on AIX. 7631*** Therefore, libtool is disabling shared libraries support. If you 7632*** really care for shared libraries, you may want to modify your PATH 7633*** so that a non-GNU linker is found, and then restart. 7634 7635EOF 7636 fi 7637 ;; 7638 7639 amigaos*) 7640 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)' 7641 hardcode_libdir_flag_spec='-L$libdir' 7642 hardcode_minus_L=yes 7643 7644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7645 # that the semantics of dynamic libraries on AmigaOS, at least up 7646 # to version 4, is to share data among multiple programs linked 7647 # with the same dynamic library. Since this doesn't match the 7648 # behavior of shared libraries on other platforms, we can't use 7649 # them. 7650 ld_shlibs=no 7651 ;; 7652 7653 beos*) 7654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7655 allow_undefined_flag=unsupported 7656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7657 # support --undefined. This deserves some investigation. FIXME 7658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7659 else 7660 ld_shlibs=no 7661 fi 7662 ;; 7663 7664 cygwin* | mingw* | pw32*) 7665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7666 # as there is no search path for DLLs. 7667 hardcode_libdir_flag_spec='-L$libdir' 7668 allow_undefined_flag=unsupported 7669 always_export_symbols=no 7670 enable_shared_with_static_runtimes=yes 7671 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7672 7673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7675 # If the export-symbols file already is a .def file (1st line 7676 # is EXPORTS), use it as is; otherwise, prepend... 7677 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7678 cp $export_symbols $output_objdir/$soname.def; 7679 else 7680 echo EXPORTS > $output_objdir/$soname.def; 7681 cat $export_symbols >> $output_objdir/$soname.def; 7682 fi~ 7683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7684 else 7685 ld_shlibs=no 7686 fi 7687 ;; 7688 7689 interix3*) 7690 hardcode_direct=no 7691 hardcode_shlibpath_var=no 7692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7693 export_dynamic_flag_spec='${wl}-E' 7694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7695 # Instead, shared libraries are loaded at an image base (0x10000000 by 7696 # default) and relocated if they conflict, which is a slow very memory 7697 # consuming and fragmenting process. To avoid this, we pick a random, 7698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7699 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7701 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' 7702 ;; 7703 7704 linux*) 7705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7706 tmp_addflag= 7707 case $cc_basename,$host_cpu in 7708 pgcc*) # Portland Group C compiler 7709 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' 7710 tmp_addflag=' $pic_flag' 7711 ;; 7712 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7713 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' 7714 tmp_addflag=' $pic_flag -Mnomain' ;; 7715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7716 tmp_addflag=' -i_dynamic' ;; 7717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7718 tmp_addflag=' -i_dynamic -nofor_main' ;; 7719 ifc* | ifort*) # Intel Fortran compiler 7720 tmp_addflag=' -nofor_main' ;; 7721 esac 7722 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7723 7724 if test $supports_anon_versioning = yes; then 7725 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7727 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7728 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7729 fi 7730 else 7731 ld_shlibs=no 7732 fi 7733 ;; 7734 7735 netbsd*) 7736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7737 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7738 wlarc= 7739 else 7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7742 fi 7743 ;; 7744 7745 solaris*) 7746 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7747 ld_shlibs=no 7748 cat <<EOF 1>&2 7749 7750*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7751*** create shared libraries on Solaris systems. Therefore, libtool 7752*** is disabling shared libraries support. We urge you to upgrade GNU 7753*** binutils to release 2.9.1 or newer. Another option is to modify 7754*** your PATH or compiler configuration so that the native linker is 7755*** used, and then restart. 7756 7757EOF 7758 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7761 else 7762 ld_shlibs=no 7763 fi 7764 ;; 7765 7766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7767 case `$LD -v 2>&1` in 7768 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7769 ld_shlibs=no 7770 cat <<_LT_EOF 1>&2 7771 7772*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7773*** reliably create shared libraries on SCO systems. Therefore, libtool 7774*** is disabling shared libraries support. We urge you to upgrade GNU 7775*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7776*** your PATH or compiler configuration so that the native linker is 7777*** used, and then restart. 7778 7779_LT_EOF 7780 ;; 7781 *) 7782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7783 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7786 else 7787 ld_shlibs=no 7788 fi 7789 ;; 7790 esac 7791 ;; 7792 7793 sunos4*) 7794 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7795 wlarc= 7796 hardcode_direct=yes 7797 hardcode_shlibpath_var=no 7798 ;; 7799 7800 *) 7801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7804 else 7805 ld_shlibs=no 7806 fi 7807 ;; 7808 esac 7809 7810 if test "$ld_shlibs" = no; then 7811 runpath_var= 7812 hardcode_libdir_flag_spec= 7813 export_dynamic_flag_spec= 7814 whole_archive_flag_spec= 7815 fi 7816 else 7817 # PORTME fill in a description of your system's linker (not GNU ld) 7818 case $host_os in 7819 aix3*) 7820 allow_undefined_flag=unsupported 7821 always_export_symbols=yes 7822 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' 7823 # Note: this linker hardcodes the directories in LIBPATH if there 7824 # are no directories specified by -L. 7825 hardcode_minus_L=yes 7826 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7827 # Neither direct hardcoding nor static linking is supported with a 7828 # broken collect2. 7829 hardcode_direct=unsupported 7830 fi 7831 ;; 7832 7833 aix4* | aix5*) 7834 if test "$host_cpu" = ia64; then 7835 # On IA64, the linker does run time linking by default, so we don't 7836 # have to do anything special. 7837 aix_use_runtimelinking=no 7838 exp_sym_flag='-Bexport' 7839 no_entry_flag="" 7840 else 7841 # If we're using GNU nm, then we don't want the "-C" option. 7842 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7844 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' 7845 else 7846 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' 7847 fi 7848 aix_use_runtimelinking=no 7849 7850 # Test if we are trying to use run time linking or normal 7851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7852 # need to do runtime linking. 7853 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7854 for ld_flag in $LDFLAGS; do 7855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7856 aix_use_runtimelinking=yes 7857 break 7858 fi 7859 done 7860 ;; 7861 esac 7862 7863 exp_sym_flag='-bexport' 7864 no_entry_flag='-bnoentry' 7865 fi 7866 7867 # When large executables or shared objects are built, AIX ld can 7868 # have problems creating the table of contents. If linking a library 7869 # or program results in "error TOC overflow" add -mminimal-toc to 7870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7872 7873 archive_cmds='' 7874 hardcode_direct=yes 7875 hardcode_libdir_separator=':' 7876 link_all_deplibs=yes 7877 7878 if test "$GCC" = yes; then 7879 case $host_os in aix4.[012]|aix4.[012].*) 7880 # We only want to do this on AIX 4.2 and lower, the check 7881 # below for broken collect2 doesn't work under 4.3+ 7882 collect2name=`${CC} -print-prog-name=collect2` 7883 if test -f "$collect2name" && \ 7884 strings "$collect2name" | grep resolve_lib_name >/dev/null 7885 then 7886 # We have reworked collect2 7887 hardcode_direct=yes 7888 else 7889 # We have old collect2 7890 hardcode_direct=unsupported 7891 # It fails to find uninstalled libraries when the uninstalled 7892 # path is not listed in the libpath. Setting hardcode_minus_L 7893 # to unsupported forces relinking 7894 hardcode_minus_L=yes 7895 hardcode_libdir_flag_spec='-L$libdir' 7896 hardcode_libdir_separator= 7897 fi 7898 ;; 7899 esac 7900 shared_flag='-shared' 7901 if test "$aix_use_runtimelinking" = yes; then 7902 shared_flag="$shared_flag "'${wl}-G' 7903 fi 7904 else 7905 # not using gcc 7906 if test "$host_cpu" = ia64; then 7907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7908 # chokes on -Wl,-G. The following line is correct: 7909 shared_flag='-G' 7910 else 7911 if test "$aix_use_runtimelinking" = yes; then 7912 shared_flag='${wl}-G' 7913 else 7914 shared_flag='${wl}-bM:SRE' 7915 fi 7916 fi 7917 fi 7918 7919 # It seems that -bexpall does not export symbols beginning with 7920 # underscore (_), so it is better to generate a list of symbols to export. 7921 always_export_symbols=yes 7922 if test "$aix_use_runtimelinking" = yes; then 7923 # Warning - without using the other runtime loading flags (-brtl), 7924 # -berok will link without error, but may produce a broken library. 7925 allow_undefined_flag='-berok' 7926 # Determine the default libpath from the value encoded in an empty executable. 7927 cat >conftest.$ac_ext <<_ACEOF 7928/* confdefs.h. */ 7929_ACEOF 7930cat confdefs.h >>conftest.$ac_ext 7931cat >>conftest.$ac_ext <<_ACEOF 7932/* end confdefs.h. */ 7933 7934int 7935main () 7936{ 7937 7938 ; 7939 return 0; 7940} 7941_ACEOF 7942rm -f conftest.$ac_objext conftest$ac_exeext 7943if { (ac_try="$ac_link" 7944case "(($ac_try" in 7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7946 *) ac_try_echo=$ac_try;; 7947esac 7948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7949 (eval "$ac_link") 2>conftest.er1 7950 ac_status=$? 7951 grep -v '^ *+' conftest.er1 >conftest.err 7952 rm -f conftest.er1 7953 cat conftest.err >&5 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 (exit $ac_status); } && { 7956 test -z "$ac_c_werror_flag" || 7957 test ! -s conftest.err 7958 } && test -s conftest$ac_exeext && 7959 $as_test_x conftest$ac_exeext; then 7960 7961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7962}'` 7963# Check for a 64-bit object if we didn't find anything. 7964if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7965}'`; fi 7966else 7967 echo "$as_me: failed program was:" >&5 7968sed 's/^/| /' conftest.$ac_ext >&5 7969 7970 7971fi 7972 7973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7974 conftest$ac_exeext conftest.$ac_ext 7975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7976 7977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7978 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" 7979 else 7980 if test "$host_cpu" = ia64; then 7981 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7982 allow_undefined_flag="-z nodefs" 7983 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" 7984 else 7985 # Determine the default libpath from the value encoded in an empty executable. 7986 cat >conftest.$ac_ext <<_ACEOF 7987/* confdefs.h. */ 7988_ACEOF 7989cat confdefs.h >>conftest.$ac_ext 7990cat >>conftest.$ac_ext <<_ACEOF 7991/* end confdefs.h. */ 7992 7993int 7994main () 7995{ 7996 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001rm -f conftest.$ac_objext conftest$ac_exeext 8002if { (ac_try="$ac_link" 8003case "(($ac_try" in 8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8005 *) ac_try_echo=$ac_try;; 8006esac 8007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8008 (eval "$ac_link") 2>conftest.er1 8009 ac_status=$? 8010 grep -v '^ *+' conftest.er1 >conftest.err 8011 rm -f conftest.er1 8012 cat conftest.err >&5 8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8014 (exit $ac_status); } && { 8015 test -z "$ac_c_werror_flag" || 8016 test ! -s conftest.err 8017 } && test -s conftest$ac_exeext && 8018 $as_test_x conftest$ac_exeext; then 8019 8020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8021}'` 8022# Check for a 64-bit object if we didn't find anything. 8023if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8024}'`; fi 8025else 8026 echo "$as_me: failed program was:" >&5 8027sed 's/^/| /' conftest.$ac_ext >&5 8028 8029 8030fi 8031 8032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8033 conftest$ac_exeext conftest.$ac_ext 8034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8035 8036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8037 # Warning - without using the other run time loading flags, 8038 # -berok will link without error, but may produce a broken library. 8039 no_undefined_flag=' ${wl}-bernotok' 8040 allow_undefined_flag=' ${wl}-berok' 8041 # Exported symbols can be pulled into shared objects from archives 8042 whole_archive_flag_spec='$convenience' 8043 archive_cmds_need_lc=yes 8044 # This is similar to how AIX traditionally builds its shared libraries. 8045 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' 8046 fi 8047 fi 8048 ;; 8049 8050 amigaos*) 8051 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)' 8052 hardcode_libdir_flag_spec='-L$libdir' 8053 hardcode_minus_L=yes 8054 # see comment about different semantics on the GNU ld section 8055 ld_shlibs=no 8056 ;; 8057 8058 bsdi[45]*) 8059 export_dynamic_flag_spec=-rdynamic 8060 ;; 8061 8062 cygwin* | mingw* | pw32*) 8063 # When not using gcc, we currently assume that we are using 8064 # Microsoft Visual C++. 8065 # hardcode_libdir_flag_spec is actually meaningless, as there is 8066 # no search path for DLLs. 8067 hardcode_libdir_flag_spec=' ' 8068 allow_undefined_flag=unsupported 8069 # Tell ltmain to make .lib files, not .a files. 8070 libext=lib 8071 # Tell ltmain to make .dll files, not .so files. 8072 shrext_cmds=".dll" 8073 # FIXME: Setting linknames here is a bad hack. 8074 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8075 # The linker will automatically build a .lib file if we build a DLL. 8076 old_archive_From_new_cmds='true' 8077 # FIXME: Should let the user specify the lib program. 8078 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8079 fix_srcfile_path='`cygpath -w "$srcfile"`' 8080 enable_shared_with_static_runtimes=yes 8081 ;; 8082 8083 darwin* | rhapsody*) 8084 case $host_os in 8085 rhapsody* | darwin1.[012]) 8086 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8087 ;; 8088 *) # Darwin 1.3 on 8089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8090 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8091 else 8092 case ${MACOSX_DEPLOYMENT_TARGET} in 8093 10.[012]) 8094 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8095 ;; 8096 10.*) 8097 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8098 ;; 8099 esac 8100 fi 8101 ;; 8102 esac 8103 archive_cmds_need_lc=no 8104 hardcode_direct=no 8105 hardcode_automatic=yes 8106 hardcode_shlibpath_var=unsupported 8107 whole_archive_flag_spec='' 8108 link_all_deplibs=yes 8109 if test "$GCC" = yes ; then 8110 output_verbose_link_cmd='echo' 8111 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8114 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}' 8115 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}' 8116 else 8117 case $cc_basename in 8118 xlc*) 8119 output_verbose_link_cmd='echo' 8120 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8121 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8123 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8124 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}' 8125 ;; 8126 *) 8127 ld_shlibs=no 8128 ;; 8129 esac 8130 fi 8131 ;; 8132 8133 dgux*) 8134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8135 hardcode_libdir_flag_spec='-L$libdir' 8136 hardcode_shlibpath_var=no 8137 ;; 8138 8139 freebsd1*) 8140 ld_shlibs=no 8141 ;; 8142 8143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8144 # support. Future versions do this automatically, but an explicit c++rt0.o 8145 # does not break anything, and helps significantly (at the cost of a little 8146 # extra space). 8147 freebsd2.2*) 8148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8149 hardcode_libdir_flag_spec='-R$libdir' 8150 hardcode_direct=yes 8151 hardcode_shlibpath_var=no 8152 ;; 8153 8154 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8155 freebsd2*) 8156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8157 hardcode_direct=yes 8158 hardcode_minus_L=yes 8159 hardcode_shlibpath_var=no 8160 ;; 8161 8162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8163 freebsd* | kfreebsd*-gnu | dragonfly*) 8164 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8165 hardcode_libdir_flag_spec='-R$libdir' 8166 hardcode_direct=yes 8167 hardcode_shlibpath_var=no 8168 ;; 8169 8170 hpux9*) 8171 if test "$GCC" = yes; then 8172 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' 8173 else 8174 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' 8175 fi 8176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8177 hardcode_libdir_separator=: 8178 hardcode_direct=yes 8179 8180 # hardcode_minus_L: Not really in the search PATH, 8181 # but as the default location of the library. 8182 hardcode_minus_L=yes 8183 export_dynamic_flag_spec='${wl}-E' 8184 ;; 8185 8186 hpux10*) 8187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8189 else 8190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8191 fi 8192 if test "$with_gnu_ld" = no; then 8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8194 hardcode_libdir_separator=: 8195 8196 hardcode_direct=yes 8197 export_dynamic_flag_spec='${wl}-E' 8198 8199 # hardcode_minus_L: Not really in the search PATH, 8200 # but as the default location of the library. 8201 hardcode_minus_L=yes 8202 fi 8203 ;; 8204 8205 hpux11*) 8206 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8207 case $host_cpu in 8208 hppa*64*) 8209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8210 ;; 8211 ia64*) 8212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8213 ;; 8214 *) 8215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8216 ;; 8217 esac 8218 else 8219 case $host_cpu in 8220 hppa*64*) 8221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8222 ;; 8223 ia64*) 8224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8225 ;; 8226 *) 8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8228 ;; 8229 esac 8230 fi 8231 if test "$with_gnu_ld" = no; then 8232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8233 hardcode_libdir_separator=: 8234 8235 case $host_cpu in 8236 hppa*64*|ia64*) 8237 hardcode_libdir_flag_spec_ld='+b $libdir' 8238 hardcode_direct=no 8239 hardcode_shlibpath_var=no 8240 ;; 8241 *) 8242 hardcode_direct=yes 8243 export_dynamic_flag_spec='${wl}-E' 8244 8245 # hardcode_minus_L: Not really in the search PATH, 8246 # but as the default location of the library. 8247 hardcode_minus_L=yes 8248 ;; 8249 esac 8250 fi 8251 ;; 8252 8253 irix5* | irix6* | nonstopux*) 8254 if test "$GCC" = yes; then 8255 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' 8256 else 8257 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' 8258 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8259 fi 8260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8261 hardcode_libdir_separator=: 8262 link_all_deplibs=yes 8263 ;; 8264 8265 netbsd*) 8266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8268 else 8269 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8270 fi 8271 hardcode_libdir_flag_spec='-R$libdir' 8272 hardcode_direct=yes 8273 hardcode_shlibpath_var=no 8274 ;; 8275 8276 newsos6) 8277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8278 hardcode_direct=yes 8279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8280 hardcode_libdir_separator=: 8281 hardcode_shlibpath_var=no 8282 ;; 8283 8284 openbsd*) 8285 hardcode_direct=yes 8286 hardcode_shlibpath_var=no 8287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8289 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8291 export_dynamic_flag_spec='${wl}-E' 8292 else 8293 case $host_os in 8294 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8296 hardcode_libdir_flag_spec='-R$libdir' 8297 ;; 8298 *) 8299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8301 ;; 8302 esac 8303 fi 8304 ;; 8305 8306 os2*) 8307 hardcode_libdir_flag_spec='-L$libdir' 8308 hardcode_minus_L=yes 8309 allow_undefined_flag=unsupported 8310 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' 8311 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8312 ;; 8313 8314 osf3*) 8315 if test "$GCC" = yes; then 8316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8317 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' 8318 else 8319 allow_undefined_flag=' -expect_unresolved \*' 8320 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' 8321 fi 8322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8323 hardcode_libdir_separator=: 8324 ;; 8325 8326 osf4* | osf5*) # as osf3* with the addition of -msym flag 8327 if test "$GCC" = yes; then 8328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8329 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' 8330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8331 else 8332 allow_undefined_flag=' -expect_unresolved \*' 8333 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' 8334 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8335 $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' 8336 8337 # Both c and cxx compiler support -rpath directly 8338 hardcode_libdir_flag_spec='-rpath $libdir' 8339 fi 8340 hardcode_libdir_separator=: 8341 ;; 8342 8343 solaris*) 8344 no_undefined_flag=' -z text' 8345 if test "$GCC" = yes; then 8346 wlarc='${wl}' 8347 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8349 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8350 else 8351 wlarc='' 8352 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8353 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8354 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8355 fi 8356 hardcode_libdir_flag_spec='-R$libdir' 8357 hardcode_shlibpath_var=no 8358 case $host_os in 8359 solaris2.[0-5] | solaris2.[0-5].*) ;; 8360 *) 8361 # The compiler driver will combine linker options so we 8362 # cannot just pass the convience library names through 8363 # without $wl, iff we do not link with $LD. 8364 # Luckily, gcc supports the same syntax we need for Sun Studio. 8365 # Supported since Solaris 2.6 (maybe 2.5.1?) 8366 case $wlarc in 8367 '') 8368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8369 *) 8370 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8371 esac ;; 8372 esac 8373 link_all_deplibs=yes 8374 ;; 8375 8376 sunos4*) 8377 if test "x$host_vendor" = xsequent; then 8378 # Use $CC to link under sequent, because it throws in some extra .o 8379 # files that make .init and .fini sections work. 8380 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8381 else 8382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8383 fi 8384 hardcode_libdir_flag_spec='-L$libdir' 8385 hardcode_direct=yes 8386 hardcode_minus_L=yes 8387 hardcode_shlibpath_var=no 8388 ;; 8389 8390 sysv4) 8391 case $host_vendor in 8392 sni) 8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8394 hardcode_direct=yes # is this really true??? 8395 ;; 8396 siemens) 8397 ## LD is ld it makes a PLAMLIB 8398 ## CC just makes a GrossModule. 8399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8400 reload_cmds='$CC -r -o $output$reload_objs' 8401 hardcode_direct=no 8402 ;; 8403 motorola) 8404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8406 ;; 8407 esac 8408 runpath_var='LD_RUN_PATH' 8409 hardcode_shlibpath_var=no 8410 ;; 8411 8412 sysv4.3*) 8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8414 hardcode_shlibpath_var=no 8415 export_dynamic_flag_spec='-Bexport' 8416 ;; 8417 8418 sysv4*MP*) 8419 if test -d /usr/nec; then 8420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8421 hardcode_shlibpath_var=no 8422 runpath_var=LD_RUN_PATH 8423 hardcode_runpath_var=yes 8424 ld_shlibs=yes 8425 fi 8426 ;; 8427 8428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8429 no_undefined_flag='${wl}-z,text' 8430 archive_cmds_need_lc=no 8431 hardcode_shlibpath_var=no 8432 runpath_var='LD_RUN_PATH' 8433 8434 if test "$GCC" = yes; then 8435 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8436 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8437 else 8438 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8439 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8440 fi 8441 ;; 8442 8443 sysv5* | sco3.2v5* | sco5v6*) 8444 # Note: We can NOT use -z defs as we might desire, because we do not 8445 # link with -lc, and that would cause any symbols used from libc to 8446 # always be unresolved, which means just about no library would 8447 # ever link correctly. If we're not using GNU ld we use -z text 8448 # though, which does catch some bad symbols but isn't as heavy-handed 8449 # as -z defs. 8450 no_undefined_flag='${wl}-z,text' 8451 allow_undefined_flag='${wl}-z,nodefs' 8452 archive_cmds_need_lc=no 8453 hardcode_shlibpath_var=no 8454 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8455 hardcode_libdir_separator=':' 8456 link_all_deplibs=yes 8457 export_dynamic_flag_spec='${wl}-Bexport' 8458 runpath_var='LD_RUN_PATH' 8459 8460 if test "$GCC" = yes; then 8461 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8462 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8463 else 8464 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8465 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8466 fi 8467 ;; 8468 8469 uts4*) 8470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8471 hardcode_libdir_flag_spec='-L$libdir' 8472 hardcode_shlibpath_var=no 8473 ;; 8474 8475 *) 8476 ld_shlibs=no 8477 ;; 8478 esac 8479 fi 8480 8481{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8482echo "${ECHO_T}$ld_shlibs" >&6; } 8483test "$ld_shlibs" = no && can_build_shared=no 8484 8485# 8486# Do we need to explicitly link libc? 8487# 8488case "x$archive_cmds_need_lc" in 8489x|xyes) 8490 # Assume -lc should be added 8491 archive_cmds_need_lc=yes 8492 8493 if test "$enable_shared" = yes && test "$GCC" = yes; then 8494 case $archive_cmds in 8495 *'~'*) 8496 # FIXME: we may have to deal with multi-command sequences. 8497 ;; 8498 '$CC '*) 8499 # Test whether the compiler implicitly links with -lc since on some 8500 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8501 # to ld, don't add -lc before -lgcc. 8502 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8503echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8504 $rm conftest* 8505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8506 8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8508 (eval $ac_compile) 2>&5 8509 ac_status=$? 8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8511 (exit $ac_status); } 2>conftest.err; then 8512 soname=conftest 8513 lib=conftest 8514 libobjs=conftest.$ac_objext 8515 deplibs= 8516 wl=$lt_prog_compiler_wl 8517 pic_flag=$lt_prog_compiler_pic 8518 compiler_flags=-v 8519 linker_flags=-v 8520 verstring= 8521 output_objdir=. 8522 libname=conftest 8523 lt_save_allow_undefined_flag=$allow_undefined_flag 8524 allow_undefined_flag= 8525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8526 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8527 ac_status=$? 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); } 8530 then 8531 archive_cmds_need_lc=no 8532 else 8533 archive_cmds_need_lc=yes 8534 fi 8535 allow_undefined_flag=$lt_save_allow_undefined_flag 8536 else 8537 cat conftest.err 1>&5 8538 fi 8539 $rm conftest* 8540 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8541echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8542 ;; 8543 esac 8544 fi 8545 ;; 8546esac 8547 8548{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8549echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8550library_names_spec= 8551libname_spec='lib$name' 8552soname_spec= 8553shrext_cmds=".so" 8554postinstall_cmds= 8555postuninstall_cmds= 8556finish_cmds= 8557finish_eval= 8558shlibpath_var= 8559shlibpath_overrides_runpath=unknown 8560version_type=none 8561dynamic_linker="$host_os ld.so" 8562sys_lib_dlsearch_path_spec="/lib /usr/lib" 8563if test "$GCC" = yes; then 8564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8565 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8566 # if the path contains ";" then we assume it to be the separator 8567 # otherwise default to the standard path separator (i.e. ":") - it is 8568 # assumed that no part of a normal pathname contains ";" but that should 8569 # okay in the real world where ";" in dirpaths is itself problematic. 8570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8571 else 8572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8573 fi 8574else 8575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8576fi 8577need_lib_prefix=unknown 8578hardcode_into_libs=no 8579 8580# when you set need_version to no, make sure it does not cause -set_version 8581# flags to be left without arguments 8582need_version=unknown 8583 8584case $host_os in 8585aix3*) 8586 version_type=linux 8587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8588 shlibpath_var=LIBPATH 8589 8590 # AIX 3 has no versioning support, so we append a major version to the name. 8591 soname_spec='${libname}${release}${shared_ext}$major' 8592 ;; 8593 8594aix4* | aix5*) 8595 version_type=linux 8596 need_lib_prefix=no 8597 need_version=no 8598 hardcode_into_libs=yes 8599 if test "$host_cpu" = ia64; then 8600 # AIX 5 supports IA64 8601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8602 shlibpath_var=LD_LIBRARY_PATH 8603 else 8604 # With GCC up to 2.95.x, collect2 would create an import file 8605 # for dependence libraries. The import file would start with 8606 # the line `#! .'. This would cause the generated library to 8607 # depend on `.', always an invalid library. This was fixed in 8608 # development snapshots of GCC prior to 3.0. 8609 case $host_os in 8610 aix4 | aix4.[01] | aix4.[01].*) 8611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8612 echo ' yes ' 8613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8614 : 8615 else 8616 can_build_shared=no 8617 fi 8618 ;; 8619 esac 8620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8621 # soname into executable. Probably we can add versioning support to 8622 # collect2, so additional links can be useful in future. 8623 if test "$aix_use_runtimelinking" = yes; then 8624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8625 # instead of lib<name>.a to let people know that these are not 8626 # typical AIX shared libraries. 8627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8628 else 8629 # We preserve .a as extension for shared libraries through AIX4.2 8630 # and later when we are not doing run time linking. 8631 library_names_spec='${libname}${release}.a $libname.a' 8632 soname_spec='${libname}${release}${shared_ext}$major' 8633 fi 8634 shlibpath_var=LIBPATH 8635 fi 8636 ;; 8637 8638amigaos*) 8639 library_names_spec='$libname.ixlibrary $libname.a' 8640 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8641 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' 8642 ;; 8643 8644beos*) 8645 library_names_spec='${libname}${shared_ext}' 8646 dynamic_linker="$host_os ld.so" 8647 shlibpath_var=LIBRARY_PATH 8648 ;; 8649 8650bsdi[45]*) 8651 version_type=linux 8652 need_version=no 8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8654 soname_spec='${libname}${release}${shared_ext}$major' 8655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8656 shlibpath_var=LD_LIBRARY_PATH 8657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8659 # the default ld.so.conf also contains /usr/contrib/lib and 8660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8661 # libtool to hard-code these into programs 8662 ;; 8663 8664cygwin* | mingw* | pw32*) 8665 version_type=windows 8666 shrext_cmds=".dll" 8667 need_version=no 8668 need_lib_prefix=no 8669 8670 case $GCC,$host_os in 8671 yes,cygwin* | yes,mingw* | yes,pw32*) 8672 library_names_spec='$libname.dll.a' 8673 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8674 postinstall_cmds='base_file=`basename \${file}`~ 8675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8676 dldir=$destdir/`dirname \$dlpath`~ 8677 test -d \$dldir || mkdir -p \$dldir~ 8678 $install_prog $dir/$dlname \$dldir/$dlname~ 8679 chmod a+x \$dldir/$dlname' 8680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8681 dlpath=$dir/\$dldll~ 8682 $rm \$dlpath' 8683 shlibpath_overrides_runpath=yes 8684 8685 case $host_os in 8686 cygwin*) 8687 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8690 ;; 8691 mingw*) 8692 # MinGW DLLs use traditional 'lib' prefix 8693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8696 # It is most probably a Windows format PATH printed by 8697 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8698 # path with ; separators, and with drive letters. We can handle the 8699 # drive letters (cygwin fileutils understands them), so leave them, 8700 # especially as we might pass files found there to a mingw objdump, 8701 # which wouldn't understand a cygwinified path. Ahh. 8702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8703 else 8704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8705 fi 8706 ;; 8707 pw32*) 8708 # pw32 DLLs use 'pw' prefix rather than 'lib' 8709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8710 ;; 8711 esac 8712 ;; 8713 8714 *) 8715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8716 ;; 8717 esac 8718 dynamic_linker='Win32 ld.exe' 8719 # FIXME: first we should search . and the directory the executable is in 8720 shlibpath_var=PATH 8721 ;; 8722 8723darwin* | rhapsody*) 8724 dynamic_linker="$host_os dyld" 8725 version_type=darwin 8726 need_lib_prefix=no 8727 need_version=no 8728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8729 soname_spec='${libname}${release}${major}$shared_ext' 8730 shlibpath_overrides_runpath=yes 8731 shlibpath_var=DYLD_LIBRARY_PATH 8732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8733 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8734 if test "$GCC" = yes; then 8735 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8736 else 8737 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8738 fi 8739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8740 ;; 8741 8742dgux*) 8743 version_type=linux 8744 need_lib_prefix=no 8745 need_version=no 8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8747 soname_spec='${libname}${release}${shared_ext}$major' 8748 shlibpath_var=LD_LIBRARY_PATH 8749 ;; 8750 8751freebsd1*) 8752 dynamic_linker=no 8753 ;; 8754 8755kfreebsd*-gnu) 8756 version_type=linux 8757 need_lib_prefix=no 8758 need_version=no 8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8760 soname_spec='${libname}${release}${shared_ext}$major' 8761 shlibpath_var=LD_LIBRARY_PATH 8762 shlibpath_overrides_runpath=no 8763 hardcode_into_libs=yes 8764 dynamic_linker='GNU ld.so' 8765 ;; 8766 8767freebsd* | dragonfly*) 8768 # DragonFly does not have aout. When/if they implement a new 8769 # versioning mechanism, adjust this. 8770 if test -x /usr/bin/objformat; then 8771 objformat=`/usr/bin/objformat` 8772 else 8773 case $host_os in 8774 freebsd[123]*) objformat=aout ;; 8775 *) objformat=elf ;; 8776 esac 8777 fi 8778 version_type=freebsd-$objformat 8779 case $version_type in 8780 freebsd-elf*) 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8782 need_version=no 8783 need_lib_prefix=no 8784 ;; 8785 freebsd-*) 8786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8787 need_version=yes 8788 ;; 8789 esac 8790 shlibpath_var=LD_LIBRARY_PATH 8791 case $host_os in 8792 freebsd2*) 8793 shlibpath_overrides_runpath=yes 8794 ;; 8795 freebsd3.[01]* | freebsdelf3.[01]*) 8796 shlibpath_overrides_runpath=yes 8797 hardcode_into_libs=yes 8798 ;; 8799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8801 shlibpath_overrides_runpath=no 8802 hardcode_into_libs=yes 8803 ;; 8804 freebsd*) # from 4.6 on 8805 shlibpath_overrides_runpath=yes 8806 hardcode_into_libs=yes 8807 ;; 8808 esac 8809 ;; 8810 8811gnu*) 8812 version_type=linux 8813 need_lib_prefix=no 8814 need_version=no 8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8816 soname_spec='${libname}${release}${shared_ext}$major' 8817 shlibpath_var=LD_LIBRARY_PATH 8818 hardcode_into_libs=yes 8819 ;; 8820 8821hpux9* | hpux10* | hpux11*) 8822 # Give a soname corresponding to the major version so that dld.sl refuses to 8823 # link against other versions. 8824 version_type=sunos 8825 need_lib_prefix=no 8826 need_version=no 8827 case $host_cpu in 8828 ia64*) 8829 shrext_cmds='.so' 8830 hardcode_into_libs=yes 8831 dynamic_linker="$host_os dld.so" 8832 shlibpath_var=LD_LIBRARY_PATH 8833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8835 soname_spec='${libname}${release}${shared_ext}$major' 8836 if test "X$HPUX_IA64_MODE" = X32; then 8837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8838 else 8839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8840 fi 8841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8842 ;; 8843 hppa*64*) 8844 shrext_cmds='.sl' 8845 hardcode_into_libs=yes 8846 dynamic_linker="$host_os dld.sl" 8847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8850 soname_spec='${libname}${release}${shared_ext}$major' 8851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8853 ;; 8854 *) 8855 shrext_cmds='.sl' 8856 dynamic_linker="$host_os dld.sl" 8857 shlibpath_var=SHLIB_PATH 8858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8860 soname_spec='${libname}${release}${shared_ext}$major' 8861 ;; 8862 esac 8863 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8864 postinstall_cmds='chmod 555 $lib' 8865 ;; 8866 8867interix3*) 8868 version_type=linux 8869 need_lib_prefix=no 8870 need_version=no 8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8872 soname_spec='${libname}${release}${shared_ext}$major' 8873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8874 shlibpath_var=LD_LIBRARY_PATH 8875 shlibpath_overrides_runpath=no 8876 hardcode_into_libs=yes 8877 ;; 8878 8879irix5* | irix6* | nonstopux*) 8880 case $host_os in 8881 nonstopux*) version_type=nonstopux ;; 8882 *) 8883 if test "$lt_cv_prog_gnu_ld" = yes; then 8884 version_type=linux 8885 else 8886 version_type=irix 8887 fi ;; 8888 esac 8889 need_lib_prefix=no 8890 need_version=no 8891 soname_spec='${libname}${release}${shared_ext}$major' 8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8893 case $host_os in 8894 irix5* | nonstopux*) 8895 libsuff= shlibsuff= 8896 ;; 8897 *) 8898 case $LD in # libtool.m4 will add one of these switches to LD 8899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8900 libsuff= shlibsuff= libmagic=32-bit;; 8901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8902 libsuff=32 shlibsuff=N32 libmagic=N32;; 8903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8904 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8905 *) libsuff= shlibsuff= libmagic=never-match;; 8906 esac 8907 ;; 8908 esac 8909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8910 shlibpath_overrides_runpath=no 8911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8913 hardcode_into_libs=yes 8914 ;; 8915 8916# No shared lib support for Linux oldld, aout, or coff. 8917linux*oldld* | linux*aout* | linux*coff*) 8918 dynamic_linker=no 8919 ;; 8920 8921# This must be Linux ELF. 8922linux*) 8923 version_type=linux 8924 need_lib_prefix=no 8925 need_version=no 8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8927 soname_spec='${libname}${release}${shared_ext}$major' 8928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8929 shlibpath_var=LD_LIBRARY_PATH 8930 shlibpath_overrides_runpath=no 8931 # This implies no fast_install, which is unacceptable. 8932 # Some rework will be needed to allow for fast_install 8933 # before this can be enabled. 8934 hardcode_into_libs=yes 8935 8936 # Append ld.so.conf contents to the search path 8937 if test -f /etc/ld.so.conf; then 8938 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8940 fi 8941 8942 # We used to test for /lib/ld.so.1 and disable shared libraries on 8943 # powerpc, because MkLinux only supported shared libraries with the 8944 # GNU dynamic linker. Since this was broken with cross compilers, 8945 # most powerpc-linux boxes support dynamic linking these days and 8946 # people can always --disable-shared, the test was removed, and we 8947 # assume the GNU/Linux dynamic linker is in use. 8948 dynamic_linker='GNU/Linux ld.so' 8949 ;; 8950 8951knetbsd*-gnu) 8952 version_type=linux 8953 need_lib_prefix=no 8954 need_version=no 8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8956 soname_spec='${libname}${release}${shared_ext}$major' 8957 shlibpath_var=LD_LIBRARY_PATH 8958 shlibpath_overrides_runpath=no 8959 hardcode_into_libs=yes 8960 dynamic_linker='GNU ld.so' 8961 ;; 8962 8963netbsd*) 8964 version_type=sunos 8965 need_lib_prefix=no 8966 need_version=no 8967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8970 dynamic_linker='NetBSD (a.out) ld.so' 8971 else 8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8973 soname_spec='${libname}${release}${shared_ext}$major' 8974 dynamic_linker='NetBSD ld.elf_so' 8975 fi 8976 shlibpath_var=LD_LIBRARY_PATH 8977 shlibpath_overrides_runpath=yes 8978 hardcode_into_libs=yes 8979 ;; 8980 8981newsos6) 8982 version_type=linux 8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8984 shlibpath_var=LD_LIBRARY_PATH 8985 shlibpath_overrides_runpath=yes 8986 ;; 8987 8988nto-qnx*) 8989 version_type=linux 8990 need_lib_prefix=no 8991 need_version=no 8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8993 soname_spec='${libname}${release}${shared_ext}$major' 8994 shlibpath_var=LD_LIBRARY_PATH 8995 shlibpath_overrides_runpath=yes 8996 ;; 8997 8998openbsd*) 8999 version_type=sunos 9000 sys_lib_dlsearch_path_spec="/usr/lib" 9001 need_lib_prefix=no 9002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9003 case $host_os in 9004 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9005 *) need_version=no ;; 9006 esac 9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9009 shlibpath_var=LD_LIBRARY_PATH 9010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9011 case $host_os in 9012 openbsd2.[89] | openbsd2.[89].*) 9013 shlibpath_overrides_runpath=no 9014 ;; 9015 *) 9016 shlibpath_overrides_runpath=yes 9017 ;; 9018 esac 9019 else 9020 shlibpath_overrides_runpath=yes 9021 fi 9022 ;; 9023 9024os2*) 9025 libname_spec='$name' 9026 shrext_cmds=".dll" 9027 need_lib_prefix=no 9028 library_names_spec='$libname${shared_ext} $libname.a' 9029 dynamic_linker='OS/2 ld.exe' 9030 shlibpath_var=LIBPATH 9031 ;; 9032 9033osf3* | osf4* | osf5*) 9034 version_type=osf 9035 need_lib_prefix=no 9036 need_version=no 9037 soname_spec='${libname}${release}${shared_ext}$major' 9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9039 shlibpath_var=LD_LIBRARY_PATH 9040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9042 ;; 9043 9044solaris*) 9045 version_type=linux 9046 need_lib_prefix=no 9047 need_version=no 9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9049 soname_spec='${libname}${release}${shared_ext}$major' 9050 shlibpath_var=LD_LIBRARY_PATH 9051 shlibpath_overrides_runpath=yes 9052 hardcode_into_libs=yes 9053 # ldd complains unless libraries are executable 9054 postinstall_cmds='chmod +x $lib' 9055 ;; 9056 9057sunos4*) 9058 version_type=sunos 9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9061 shlibpath_var=LD_LIBRARY_PATH 9062 shlibpath_overrides_runpath=yes 9063 if test "$with_gnu_ld" = yes; then 9064 need_lib_prefix=no 9065 fi 9066 need_version=yes 9067 ;; 9068 9069sysv4 | sysv4.3*) 9070 version_type=linux 9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 shlibpath_var=LD_LIBRARY_PATH 9074 case $host_vendor in 9075 sni) 9076 shlibpath_overrides_runpath=no 9077 need_lib_prefix=no 9078 export_dynamic_flag_spec='${wl}-Blargedynsym' 9079 runpath_var=LD_RUN_PATH 9080 ;; 9081 siemens) 9082 need_lib_prefix=no 9083 ;; 9084 motorola) 9085 need_lib_prefix=no 9086 need_version=no 9087 shlibpath_overrides_runpath=no 9088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9089 ;; 9090 esac 9091 ;; 9092 9093sysv4*MP*) 9094 if test -d /usr/nec ;then 9095 version_type=linux 9096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9097 soname_spec='$libname${shared_ext}.$major' 9098 shlibpath_var=LD_LIBRARY_PATH 9099 fi 9100 ;; 9101 9102sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9103 version_type=freebsd-elf 9104 need_lib_prefix=no 9105 need_version=no 9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9107 soname_spec='${libname}${release}${shared_ext}$major' 9108 shlibpath_var=LD_LIBRARY_PATH 9109 hardcode_into_libs=yes 9110 if test "$with_gnu_ld" = yes; then 9111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9112 shlibpath_overrides_runpath=no 9113 else 9114 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9115 shlibpath_overrides_runpath=yes 9116 case $host_os in 9117 sco3.2v5*) 9118 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9119 ;; 9120 esac 9121 fi 9122 sys_lib_dlsearch_path_spec='/usr/lib' 9123 ;; 9124 9125uts4*) 9126 version_type=linux 9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9128 soname_spec='${libname}${release}${shared_ext}$major' 9129 shlibpath_var=LD_LIBRARY_PATH 9130 ;; 9131 9132*) 9133 dynamic_linker=no 9134 ;; 9135esac 9136{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9137echo "${ECHO_T}$dynamic_linker" >&6; } 9138test "$dynamic_linker" = no && can_build_shared=no 9139 9140variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9141if test "$GCC" = yes; then 9142 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9143fi 9144 9145{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9146echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9147hardcode_action= 9148if test -n "$hardcode_libdir_flag_spec" || \ 9149 test -n "$runpath_var" || \ 9150 test "X$hardcode_automatic" = "Xyes" ; then 9151 9152 # We can hardcode non-existant directories. 9153 if test "$hardcode_direct" != no && 9154 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9155 # have to relink, otherwise we might link with an installed library 9156 # when we should be linking with a yet-to-be-installed one 9157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9158 test "$hardcode_minus_L" != no; then 9159 # Linking always hardcodes the temporary library directory. 9160 hardcode_action=relink 9161 else 9162 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9163 hardcode_action=immediate 9164 fi 9165else 9166 # We cannot hardcode anything, or else we can only hardcode existing 9167 # directories. 9168 hardcode_action=unsupported 9169fi 9170{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9171echo "${ECHO_T}$hardcode_action" >&6; } 9172 9173if test "$hardcode_action" = relink; then 9174 # Fast installation is not supported 9175 enable_fast_install=no 9176elif test "$shlibpath_overrides_runpath" = yes || 9177 test "$enable_shared" = no; then 9178 # Fast installation is not necessary 9179 enable_fast_install=needless 9180fi 9181 9182striplib= 9183old_striplib= 9184{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9185echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9186if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9188 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9189 { echo "$as_me:$LINENO: result: yes" >&5 9190echo "${ECHO_T}yes" >&6; } 9191else 9192# FIXME - insert some real tests, host_os isn't really good enough 9193 case $host_os in 9194 darwin*) 9195 if test -n "$STRIP" ; then 9196 striplib="$STRIP -x" 9197 { echo "$as_me:$LINENO: result: yes" >&5 9198echo "${ECHO_T}yes" >&6; } 9199 else 9200 { echo "$as_me:$LINENO: result: no" >&5 9201echo "${ECHO_T}no" >&6; } 9202fi 9203 ;; 9204 *) 9205 { echo "$as_me:$LINENO: result: no" >&5 9206echo "${ECHO_T}no" >&6; } 9207 ;; 9208 esac 9209fi 9210 9211if test "x$enable_dlopen" != xyes; then 9212 enable_dlopen=unknown 9213 enable_dlopen_self=unknown 9214 enable_dlopen_self_static=unknown 9215else 9216 lt_cv_dlopen=no 9217 lt_cv_dlopen_libs= 9218 9219 case $host_os in 9220 beos*) 9221 lt_cv_dlopen="load_add_on" 9222 lt_cv_dlopen_libs= 9223 lt_cv_dlopen_self=yes 9224 ;; 9225 9226 mingw* | pw32*) 9227 lt_cv_dlopen="LoadLibrary" 9228 lt_cv_dlopen_libs= 9229 ;; 9230 9231 cygwin*) 9232 lt_cv_dlopen="dlopen" 9233 lt_cv_dlopen_libs= 9234 ;; 9235 9236 darwin*) 9237 # if libdl is installed we need to link against it 9238 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9239echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9240if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9241 echo $ECHO_N "(cached) $ECHO_C" >&6 9242else 9243 ac_check_lib_save_LIBS=$LIBS 9244LIBS="-ldl $LIBS" 9245cat >conftest.$ac_ext <<_ACEOF 9246/* confdefs.h. */ 9247_ACEOF 9248cat confdefs.h >>conftest.$ac_ext 9249cat >>conftest.$ac_ext <<_ACEOF 9250/* end confdefs.h. */ 9251 9252/* Override any GCC internal prototype to avoid an error. 9253 Use char because int might match the return type of a GCC 9254 builtin and then its argument prototype would still apply. */ 9255#ifdef __cplusplus 9256extern "C" 9257#endif 9258char dlopen (); 9259int 9260main () 9261{ 9262return dlopen (); 9263 ; 9264 return 0; 9265} 9266_ACEOF 9267rm -f conftest.$ac_objext conftest$ac_exeext 9268if { (ac_try="$ac_link" 9269case "(($ac_try" in 9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9271 *) ac_try_echo=$ac_try;; 9272esac 9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9274 (eval "$ac_link") 2>conftest.er1 9275 ac_status=$? 9276 grep -v '^ *+' conftest.er1 >conftest.err 9277 rm -f conftest.er1 9278 cat conftest.err >&5 9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 (exit $ac_status); } && { 9281 test -z "$ac_c_werror_flag" || 9282 test ! -s conftest.err 9283 } && test -s conftest$ac_exeext && 9284 $as_test_x conftest$ac_exeext; then 9285 ac_cv_lib_dl_dlopen=yes 9286else 9287 echo "$as_me: failed program was:" >&5 9288sed 's/^/| /' conftest.$ac_ext >&5 9289 9290 ac_cv_lib_dl_dlopen=no 9291fi 9292 9293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9294 conftest$ac_exeext conftest.$ac_ext 9295LIBS=$ac_check_lib_save_LIBS 9296fi 9297{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9299if test $ac_cv_lib_dl_dlopen = yes; then 9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9301else 9302 9303 lt_cv_dlopen="dyld" 9304 lt_cv_dlopen_libs= 9305 lt_cv_dlopen_self=yes 9306 9307fi 9308 9309 ;; 9310 9311 *) 9312 { echo "$as_me:$LINENO: checking for shl_load" >&5 9313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9314if test "${ac_cv_func_shl_load+set}" = set; then 9315 echo $ECHO_N "(cached) $ECHO_C" >&6 9316else 9317 cat >conftest.$ac_ext <<_ACEOF 9318/* confdefs.h. */ 9319_ACEOF 9320cat confdefs.h >>conftest.$ac_ext 9321cat >>conftest.$ac_ext <<_ACEOF 9322/* end confdefs.h. */ 9323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9324 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9325#define shl_load innocuous_shl_load 9326 9327/* System header to define __stub macros and hopefully few prototypes, 9328 which can conflict with char shl_load (); below. 9329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9330 <limits.h> exists even on freestanding compilers. */ 9331 9332#ifdef __STDC__ 9333# include <limits.h> 9334#else 9335# include <assert.h> 9336#endif 9337 9338#undef shl_load 9339 9340/* Override any GCC internal prototype to avoid an error. 9341 Use char because int might match the return type of a GCC 9342 builtin and then its argument prototype would still apply. */ 9343#ifdef __cplusplus 9344extern "C" 9345#endif 9346char shl_load (); 9347/* The GNU C library defines this for functions which it implements 9348 to always fail with ENOSYS. Some functions are actually named 9349 something starting with __ and the normal name is an alias. */ 9350#if defined __stub_shl_load || defined __stub___shl_load 9351choke me 9352#endif 9353 9354int 9355main () 9356{ 9357return shl_load (); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362rm -f conftest.$ac_objext conftest$ac_exeext 9363if { (ac_try="$ac_link" 9364case "(($ac_try" in 9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9366 *) ac_try_echo=$ac_try;; 9367esac 9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9369 (eval "$ac_link") 2>conftest.er1 9370 ac_status=$? 9371 grep -v '^ *+' conftest.er1 >conftest.err 9372 rm -f conftest.er1 9373 cat conftest.err >&5 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 (exit $ac_status); } && { 9376 test -z "$ac_c_werror_flag" || 9377 test ! -s conftest.err 9378 } && test -s conftest$ac_exeext && 9379 $as_test_x conftest$ac_exeext; then 9380 ac_cv_func_shl_load=yes 9381else 9382 echo "$as_me: failed program was:" >&5 9383sed 's/^/| /' conftest.$ac_ext >&5 9384 9385 ac_cv_func_shl_load=no 9386fi 9387 9388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9389 conftest$ac_exeext conftest.$ac_ext 9390fi 9391{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9392echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9393if test $ac_cv_func_shl_load = yes; then 9394 lt_cv_dlopen="shl_load" 9395else 9396 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9397echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9398if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9399 echo $ECHO_N "(cached) $ECHO_C" >&6 9400else 9401 ac_check_lib_save_LIBS=$LIBS 9402LIBS="-ldld $LIBS" 9403cat >conftest.$ac_ext <<_ACEOF 9404/* confdefs.h. */ 9405_ACEOF 9406cat confdefs.h >>conftest.$ac_ext 9407cat >>conftest.$ac_ext <<_ACEOF 9408/* end confdefs.h. */ 9409 9410/* Override any GCC internal prototype to avoid an error. 9411 Use char because int might match the return type of a GCC 9412 builtin and then its argument prototype would still apply. */ 9413#ifdef __cplusplus 9414extern "C" 9415#endif 9416char shl_load (); 9417int 9418main () 9419{ 9420return shl_load (); 9421 ; 9422 return 0; 9423} 9424_ACEOF 9425rm -f conftest.$ac_objext conftest$ac_exeext 9426if { (ac_try="$ac_link" 9427case "(($ac_try" in 9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9429 *) ac_try_echo=$ac_try;; 9430esac 9431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9432 (eval "$ac_link") 2>conftest.er1 9433 ac_status=$? 9434 grep -v '^ *+' conftest.er1 >conftest.err 9435 rm -f conftest.er1 9436 cat conftest.err >&5 9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9438 (exit $ac_status); } && { 9439 test -z "$ac_c_werror_flag" || 9440 test ! -s conftest.err 9441 } && test -s conftest$ac_exeext && 9442 $as_test_x conftest$ac_exeext; then 9443 ac_cv_lib_dld_shl_load=yes 9444else 9445 echo "$as_me: failed program was:" >&5 9446sed 's/^/| /' conftest.$ac_ext >&5 9447 9448 ac_cv_lib_dld_shl_load=no 9449fi 9450 9451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9452 conftest$ac_exeext conftest.$ac_ext 9453LIBS=$ac_check_lib_save_LIBS 9454fi 9455{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9456echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9457if test $ac_cv_lib_dld_shl_load = yes; then 9458 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9459else 9460 { echo "$as_me:$LINENO: checking for dlopen" >&5 9461echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9462if test "${ac_cv_func_dlopen+set}" = set; then 9463 echo $ECHO_N "(cached) $ECHO_C" >&6 9464else 9465 cat >conftest.$ac_ext <<_ACEOF 9466/* confdefs.h. */ 9467_ACEOF 9468cat confdefs.h >>conftest.$ac_ext 9469cat >>conftest.$ac_ext <<_ACEOF 9470/* end confdefs.h. */ 9471/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9472 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9473#define dlopen innocuous_dlopen 9474 9475/* System header to define __stub macros and hopefully few prototypes, 9476 which can conflict with char dlopen (); below. 9477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9478 <limits.h> exists even on freestanding compilers. */ 9479 9480#ifdef __STDC__ 9481# include <limits.h> 9482#else 9483# include <assert.h> 9484#endif 9485 9486#undef dlopen 9487 9488/* Override any GCC internal prototype to avoid an error. 9489 Use char because int might match the return type of a GCC 9490 builtin and then its argument prototype would still apply. */ 9491#ifdef __cplusplus 9492extern "C" 9493#endif 9494char dlopen (); 9495/* The GNU C library defines this for functions which it implements 9496 to always fail with ENOSYS. Some functions are actually named 9497 something starting with __ and the normal name is an alias. */ 9498#if defined __stub_dlopen || defined __stub___dlopen 9499choke me 9500#endif 9501 9502int 9503main () 9504{ 9505return dlopen (); 9506 ; 9507 return 0; 9508} 9509_ACEOF 9510rm -f conftest.$ac_objext conftest$ac_exeext 9511if { (ac_try="$ac_link" 9512case "(($ac_try" in 9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9514 *) ac_try_echo=$ac_try;; 9515esac 9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9517 (eval "$ac_link") 2>conftest.er1 9518 ac_status=$? 9519 grep -v '^ *+' conftest.er1 >conftest.err 9520 rm -f conftest.er1 9521 cat conftest.err >&5 9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9523 (exit $ac_status); } && { 9524 test -z "$ac_c_werror_flag" || 9525 test ! -s conftest.err 9526 } && test -s conftest$ac_exeext && 9527 $as_test_x conftest$ac_exeext; then 9528 ac_cv_func_dlopen=yes 9529else 9530 echo "$as_me: failed program was:" >&5 9531sed 's/^/| /' conftest.$ac_ext >&5 9532 9533 ac_cv_func_dlopen=no 9534fi 9535 9536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9537 conftest$ac_exeext conftest.$ac_ext 9538fi 9539{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9540echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9541if test $ac_cv_func_dlopen = yes; then 9542 lt_cv_dlopen="dlopen" 9543else 9544 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9545echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9546if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9547 echo $ECHO_N "(cached) $ECHO_C" >&6 9548else 9549 ac_check_lib_save_LIBS=$LIBS 9550LIBS="-ldl $LIBS" 9551cat >conftest.$ac_ext <<_ACEOF 9552/* confdefs.h. */ 9553_ACEOF 9554cat confdefs.h >>conftest.$ac_ext 9555cat >>conftest.$ac_ext <<_ACEOF 9556/* end confdefs.h. */ 9557 9558/* Override any GCC internal prototype to avoid an error. 9559 Use char because int might match the return type of a GCC 9560 builtin and then its argument prototype would still apply. */ 9561#ifdef __cplusplus 9562extern "C" 9563#endif 9564char dlopen (); 9565int 9566main () 9567{ 9568return dlopen (); 9569 ; 9570 return 0; 9571} 9572_ACEOF 9573rm -f conftest.$ac_objext conftest$ac_exeext 9574if { (ac_try="$ac_link" 9575case "(($ac_try" in 9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9577 *) ac_try_echo=$ac_try;; 9578esac 9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9580 (eval "$ac_link") 2>conftest.er1 9581 ac_status=$? 9582 grep -v '^ *+' conftest.er1 >conftest.err 9583 rm -f conftest.er1 9584 cat conftest.err >&5 9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9586 (exit $ac_status); } && { 9587 test -z "$ac_c_werror_flag" || 9588 test ! -s conftest.err 9589 } && test -s conftest$ac_exeext && 9590 $as_test_x conftest$ac_exeext; then 9591 ac_cv_lib_dl_dlopen=yes 9592else 9593 echo "$as_me: failed program was:" >&5 9594sed 's/^/| /' conftest.$ac_ext >&5 9595 9596 ac_cv_lib_dl_dlopen=no 9597fi 9598 9599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9600 conftest$ac_exeext conftest.$ac_ext 9601LIBS=$ac_check_lib_save_LIBS 9602fi 9603{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9604echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9605if test $ac_cv_lib_dl_dlopen = yes; then 9606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9607else 9608 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9609echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9610if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9611 echo $ECHO_N "(cached) $ECHO_C" >&6 9612else 9613 ac_check_lib_save_LIBS=$LIBS 9614LIBS="-lsvld $LIBS" 9615cat >conftest.$ac_ext <<_ACEOF 9616/* confdefs.h. */ 9617_ACEOF 9618cat confdefs.h >>conftest.$ac_ext 9619cat >>conftest.$ac_ext <<_ACEOF 9620/* end confdefs.h. */ 9621 9622/* Override any GCC internal prototype to avoid an error. 9623 Use char because int might match the return type of a GCC 9624 builtin and then its argument prototype would still apply. */ 9625#ifdef __cplusplus 9626extern "C" 9627#endif 9628char dlopen (); 9629int 9630main () 9631{ 9632return dlopen (); 9633 ; 9634 return 0; 9635} 9636_ACEOF 9637rm -f conftest.$ac_objext conftest$ac_exeext 9638if { (ac_try="$ac_link" 9639case "(($ac_try" in 9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9641 *) ac_try_echo=$ac_try;; 9642esac 9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9644 (eval "$ac_link") 2>conftest.er1 9645 ac_status=$? 9646 grep -v '^ *+' conftest.er1 >conftest.err 9647 rm -f conftest.er1 9648 cat conftest.err >&5 9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9650 (exit $ac_status); } && { 9651 test -z "$ac_c_werror_flag" || 9652 test ! -s conftest.err 9653 } && test -s conftest$ac_exeext && 9654 $as_test_x conftest$ac_exeext; then 9655 ac_cv_lib_svld_dlopen=yes 9656else 9657 echo "$as_me: failed program was:" >&5 9658sed 's/^/| /' conftest.$ac_ext >&5 9659 9660 ac_cv_lib_svld_dlopen=no 9661fi 9662 9663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9664 conftest$ac_exeext conftest.$ac_ext 9665LIBS=$ac_check_lib_save_LIBS 9666fi 9667{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9668echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9669if test $ac_cv_lib_svld_dlopen = yes; then 9670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9671else 9672 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9673echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9674if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9675 echo $ECHO_N "(cached) $ECHO_C" >&6 9676else 9677 ac_check_lib_save_LIBS=$LIBS 9678LIBS="-ldld $LIBS" 9679cat >conftest.$ac_ext <<_ACEOF 9680/* confdefs.h. */ 9681_ACEOF 9682cat confdefs.h >>conftest.$ac_ext 9683cat >>conftest.$ac_ext <<_ACEOF 9684/* end confdefs.h. */ 9685 9686/* Override any GCC internal prototype to avoid an error. 9687 Use char because int might match the return type of a GCC 9688 builtin and then its argument prototype would still apply. */ 9689#ifdef __cplusplus 9690extern "C" 9691#endif 9692char dld_link (); 9693int 9694main () 9695{ 9696return dld_link (); 9697 ; 9698 return 0; 9699} 9700_ACEOF 9701rm -f conftest.$ac_objext conftest$ac_exeext 9702if { (ac_try="$ac_link" 9703case "(($ac_try" in 9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9705 *) ac_try_echo=$ac_try;; 9706esac 9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9708 (eval "$ac_link") 2>conftest.er1 9709 ac_status=$? 9710 grep -v '^ *+' conftest.er1 >conftest.err 9711 rm -f conftest.er1 9712 cat conftest.err >&5 9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9714 (exit $ac_status); } && { 9715 test -z "$ac_c_werror_flag" || 9716 test ! -s conftest.err 9717 } && test -s conftest$ac_exeext && 9718 $as_test_x conftest$ac_exeext; then 9719 ac_cv_lib_dld_dld_link=yes 9720else 9721 echo "$as_me: failed program was:" >&5 9722sed 's/^/| /' conftest.$ac_ext >&5 9723 9724 ac_cv_lib_dld_dld_link=no 9725fi 9726 9727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9728 conftest$ac_exeext conftest.$ac_ext 9729LIBS=$ac_check_lib_save_LIBS 9730fi 9731{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9732echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9733if test $ac_cv_lib_dld_dld_link = yes; then 9734 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9735fi 9736 9737 9738fi 9739 9740 9741fi 9742 9743 9744fi 9745 9746 9747fi 9748 9749 9750fi 9751 9752 ;; 9753 esac 9754 9755 if test "x$lt_cv_dlopen" != xno; then 9756 enable_dlopen=yes 9757 else 9758 enable_dlopen=no 9759 fi 9760 9761 case $lt_cv_dlopen in 9762 dlopen) 9763 save_CPPFLAGS="$CPPFLAGS" 9764 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9765 9766 save_LDFLAGS="$LDFLAGS" 9767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9768 9769 save_LIBS="$LIBS" 9770 LIBS="$lt_cv_dlopen_libs $LIBS" 9771 9772 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9773echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9774if test "${lt_cv_dlopen_self+set}" = set; then 9775 echo $ECHO_N "(cached) $ECHO_C" >&6 9776else 9777 if test "$cross_compiling" = yes; then : 9778 lt_cv_dlopen_self=cross 9779else 9780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9781 lt_status=$lt_dlunknown 9782 cat > conftest.$ac_ext <<EOF 9783#line 9783 "configure" 9784#include "confdefs.h" 9785 9786#if HAVE_DLFCN_H 9787#include <dlfcn.h> 9788#endif 9789 9790#include <stdio.h> 9791 9792#ifdef RTLD_GLOBAL 9793# define LT_DLGLOBAL RTLD_GLOBAL 9794#else 9795# ifdef DL_GLOBAL 9796# define LT_DLGLOBAL DL_GLOBAL 9797# else 9798# define LT_DLGLOBAL 0 9799# endif 9800#endif 9801 9802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9803 find out it does not work in some platform. */ 9804#ifndef LT_DLLAZY_OR_NOW 9805# ifdef RTLD_LAZY 9806# define LT_DLLAZY_OR_NOW RTLD_LAZY 9807# else 9808# ifdef DL_LAZY 9809# define LT_DLLAZY_OR_NOW DL_LAZY 9810# else 9811# ifdef RTLD_NOW 9812# define LT_DLLAZY_OR_NOW RTLD_NOW 9813# else 9814# ifdef DL_NOW 9815# define LT_DLLAZY_OR_NOW DL_NOW 9816# else 9817# define LT_DLLAZY_OR_NOW 0 9818# endif 9819# endif 9820# endif 9821# endif 9822#endif 9823 9824#ifdef __cplusplus 9825extern "C" void exit (int); 9826#endif 9827 9828void fnord() { int i=42;} 9829int main () 9830{ 9831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9832 int status = $lt_dlunknown; 9833 9834 if (self) 9835 { 9836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9838 /* dlclose (self); */ 9839 } 9840 else 9841 puts (dlerror ()); 9842 9843 exit (status); 9844} 9845EOF 9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9847 (eval $ac_link) 2>&5 9848 ac_status=$? 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9851 (./conftest; exit; ) >&5 2>/dev/null 9852 lt_status=$? 9853 case x$lt_status in 9854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9857 esac 9858 else : 9859 # compilation failed 9860 lt_cv_dlopen_self=no 9861 fi 9862fi 9863rm -fr conftest* 9864 9865 9866fi 9867{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9868echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9869 9870 if test "x$lt_cv_dlopen_self" = xyes; then 9871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9872 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9873echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9874if test "${lt_cv_dlopen_self_static+set}" = set; then 9875 echo $ECHO_N "(cached) $ECHO_C" >&6 9876else 9877 if test "$cross_compiling" = yes; then : 9878 lt_cv_dlopen_self_static=cross 9879else 9880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9881 lt_status=$lt_dlunknown 9882 cat > conftest.$ac_ext <<EOF 9883#line 9883 "configure" 9884#include "confdefs.h" 9885 9886#if HAVE_DLFCN_H 9887#include <dlfcn.h> 9888#endif 9889 9890#include <stdio.h> 9891 9892#ifdef RTLD_GLOBAL 9893# define LT_DLGLOBAL RTLD_GLOBAL 9894#else 9895# ifdef DL_GLOBAL 9896# define LT_DLGLOBAL DL_GLOBAL 9897# else 9898# define LT_DLGLOBAL 0 9899# endif 9900#endif 9901 9902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9903 find out it does not work in some platform. */ 9904#ifndef LT_DLLAZY_OR_NOW 9905# ifdef RTLD_LAZY 9906# define LT_DLLAZY_OR_NOW RTLD_LAZY 9907# else 9908# ifdef DL_LAZY 9909# define LT_DLLAZY_OR_NOW DL_LAZY 9910# else 9911# ifdef RTLD_NOW 9912# define LT_DLLAZY_OR_NOW RTLD_NOW 9913# else 9914# ifdef DL_NOW 9915# define LT_DLLAZY_OR_NOW DL_NOW 9916# else 9917# define LT_DLLAZY_OR_NOW 0 9918# endif 9919# endif 9920# endif 9921# endif 9922#endif 9923 9924#ifdef __cplusplus 9925extern "C" void exit (int); 9926#endif 9927 9928void fnord() { int i=42;} 9929int main () 9930{ 9931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9932 int status = $lt_dlunknown; 9933 9934 if (self) 9935 { 9936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9938 /* dlclose (self); */ 9939 } 9940 else 9941 puts (dlerror ()); 9942 9943 exit (status); 9944} 9945EOF 9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9947 (eval $ac_link) 2>&5 9948 ac_status=$? 9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9950 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9951 (./conftest; exit; ) >&5 2>/dev/null 9952 lt_status=$? 9953 case x$lt_status in 9954 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9955 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9956 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9957 esac 9958 else : 9959 # compilation failed 9960 lt_cv_dlopen_self_static=no 9961 fi 9962fi 9963rm -fr conftest* 9964 9965 9966fi 9967{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9968echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9969 fi 9970 9971 CPPFLAGS="$save_CPPFLAGS" 9972 LDFLAGS="$save_LDFLAGS" 9973 LIBS="$save_LIBS" 9974 ;; 9975 esac 9976 9977 case $lt_cv_dlopen_self in 9978 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9979 *) enable_dlopen_self=unknown ;; 9980 esac 9981 9982 case $lt_cv_dlopen_self_static in 9983 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9984 *) enable_dlopen_self_static=unknown ;; 9985 esac 9986fi 9987 9988 9989# Report which library types will actually be built 9990{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9991echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9992{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9993echo "${ECHO_T}$can_build_shared" >&6; } 9994 9995{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9996echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9997test "$can_build_shared" = "no" && enable_shared=no 9998 9999# On AIX, shared libraries and static libraries use the same namespace, and 10000# are all built from PIC. 10001case $host_os in 10002aix3*) 10003 test "$enable_shared" = yes && enable_static=no 10004 if test -n "$RANLIB"; then 10005 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10006 postinstall_cmds='$RANLIB $lib' 10007 fi 10008 ;; 10009 10010aix4* | aix5*) 10011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10012 test "$enable_shared" = yes && enable_static=no 10013 fi 10014 ;; 10015esac 10016{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10017echo "${ECHO_T}$enable_shared" >&6; } 10018 10019{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10020echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10021# Make sure either enable_shared or enable_static is yes. 10022test "$enable_shared" = yes || enable_static=yes 10023{ echo "$as_me:$LINENO: result: $enable_static" >&5 10024echo "${ECHO_T}$enable_static" >&6; } 10025 10026# The else clause should only fire when bootstrapping the 10027# libtool distribution, otherwise you forgot to ship ltmain.sh 10028# with your package, and you will get complaints that there are 10029# no rules to generate ltmain.sh. 10030if test -f "$ltmain"; then 10031 # See if we are running on zsh, and set the options which allow our commands through 10032 # without removal of \ escapes. 10033 if test -n "${ZSH_VERSION+set}" ; then 10034 setopt NO_GLOB_SUBST 10035 fi 10036 # Now quote all the things that may contain metacharacters while being 10037 # careful not to overquote the AC_SUBSTed values. We take copies of the 10038 # variables and quote the copies for generation of the libtool script. 10039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10040 SED SHELL STRIP \ 10041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10043 deplibs_check_method reload_flag reload_cmds need_locks \ 10044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10045 lt_cv_sys_global_symbol_to_c_name_address \ 10046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10047 old_postinstall_cmds old_postuninstall_cmds \ 10048 compiler \ 10049 CC \ 10050 LD \ 10051 lt_prog_compiler_wl \ 10052 lt_prog_compiler_pic \ 10053 lt_prog_compiler_static \ 10054 lt_prog_compiler_no_builtin_flag \ 10055 export_dynamic_flag_spec \ 10056 thread_safe_flag_spec \ 10057 whole_archive_flag_spec \ 10058 enable_shared_with_static_runtimes \ 10059 old_archive_cmds \ 10060 old_archive_from_new_cmds \ 10061 predep_objects \ 10062 postdep_objects \ 10063 predeps \ 10064 postdeps \ 10065 compiler_lib_search_path \ 10066 archive_cmds \ 10067 archive_expsym_cmds \ 10068 postinstall_cmds \ 10069 postuninstall_cmds \ 10070 old_archive_from_expsyms_cmds \ 10071 allow_undefined_flag \ 10072 no_undefined_flag \ 10073 export_symbols_cmds \ 10074 hardcode_libdir_flag_spec \ 10075 hardcode_libdir_flag_spec_ld \ 10076 hardcode_libdir_separator \ 10077 hardcode_automatic \ 10078 module_cmds \ 10079 module_expsym_cmds \ 10080 lt_cv_prog_compiler_c_o \ 10081 exclude_expsyms \ 10082 include_expsyms; do 10083 10084 case $var in 10085 old_archive_cmds | \ 10086 old_archive_from_new_cmds | \ 10087 archive_cmds | \ 10088 archive_expsym_cmds | \ 10089 module_cmds | \ 10090 module_expsym_cmds | \ 10091 old_archive_from_expsyms_cmds | \ 10092 export_symbols_cmds | \ 10093 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10094 postinstall_cmds | postuninstall_cmds | \ 10095 old_postinstall_cmds | old_postuninstall_cmds | \ 10096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10097 # Double-quote double-evaled strings. 10098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10099 ;; 10100 *) 10101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10102 ;; 10103 esac 10104 done 10105 10106 case $lt_echo in 10107 *'\$0 --fallback-echo"') 10108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10109 ;; 10110 esac 10111 10112cfgfile="${ofile}T" 10113 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10114 $rm -f "$cfgfile" 10115 { echo "$as_me:$LINENO: creating $ofile" >&5 10116echo "$as_me: creating $ofile" >&6;} 10117 10118 cat <<__EOF__ >> "$cfgfile" 10119#! $SHELL 10120 10121# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10122# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10123# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10124# 10125# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10126# Free Software Foundation, Inc. 10127# 10128# This file is part of GNU Libtool: 10129# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10130# 10131# This program is free software; you can redistribute it and/or modify 10132# it under the terms of the GNU General Public License as published by 10133# the Free Software Foundation; either version 2 of the License, or 10134# (at your option) any later version. 10135# 10136# This program is distributed in the hope that it will be useful, but 10137# WITHOUT ANY WARRANTY; without even the implied warranty of 10138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10139# General Public License for more details. 10140# 10141# You should have received a copy of the GNU General Public License 10142# along with this program; if not, write to the Free Software 10143# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10144# 10145# As a special exception to the GNU General Public License, if you 10146# distribute this file as part of a program that contains a 10147# configuration script generated by Autoconf, you may include it under 10148# the same distribution terms that you use for the rest of that program. 10149 10150# A sed program that does not truncate output. 10151SED=$lt_SED 10152 10153# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10154Xsed="$SED -e 1s/^X//" 10155 10156# The HP-UX ksh and POSIX shell print the target directory to stdout 10157# if CDPATH is set. 10158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10159 10160# The names of the tagged configurations supported by this script. 10161available_tags= 10162 10163# ### BEGIN LIBTOOL CONFIG 10164 10165# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10166 10167# Shell to use when invoking shell scripts. 10168SHELL=$lt_SHELL 10169 10170# Whether or not to build shared libraries. 10171build_libtool_libs=$enable_shared 10172 10173# Whether or not to build static libraries. 10174build_old_libs=$enable_static 10175 10176# Whether or not to add -lc for building shared libraries. 10177build_libtool_need_lc=$archive_cmds_need_lc 10178 10179# Whether or not to disallow shared libs when runtime libs are static 10180allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10181 10182# Whether or not to optimize for fast installation. 10183fast_install=$enable_fast_install 10184 10185# The host system. 10186host_alias=$host_alias 10187host=$host 10188host_os=$host_os 10189 10190# The build system. 10191build_alias=$build_alias 10192build=$build 10193build_os=$build_os 10194 10195# An echo program that does not interpret backslashes. 10196echo=$lt_echo 10197 10198# The archiver. 10199AR=$lt_AR 10200AR_FLAGS=$lt_AR_FLAGS 10201 10202# A C compiler. 10203LTCC=$lt_LTCC 10204 10205# LTCC compiler flags. 10206LTCFLAGS=$lt_LTCFLAGS 10207 10208# A language-specific compiler. 10209CC=$lt_compiler 10210 10211# Is the compiler the GNU C compiler? 10212with_gcc=$GCC 10213 10214# An ERE matcher. 10215EGREP=$lt_EGREP 10216 10217# The linker used to build libraries. 10218LD=$lt_LD 10219 10220# Whether we need hard or soft links. 10221LN_S=$lt_LN_S 10222 10223# A BSD-compatible nm program. 10224NM=$lt_NM 10225 10226# A symbol stripping program 10227STRIP=$lt_STRIP 10228 10229# Used to examine libraries when file_magic_cmd begins "file" 10230MAGIC_CMD=$MAGIC_CMD 10231 10232# Used on cygwin: DLL creation program. 10233DLLTOOL="$DLLTOOL" 10234 10235# Used on cygwin: object dumper. 10236OBJDUMP="$OBJDUMP" 10237 10238# Used on cygwin: assembler. 10239AS="$AS" 10240 10241# The name of the directory that contains temporary libtool files. 10242objdir=$objdir 10243 10244# How to create reloadable object files. 10245reload_flag=$lt_reload_flag 10246reload_cmds=$lt_reload_cmds 10247 10248# How to pass a linker flag through the compiler. 10249wl=$lt_lt_prog_compiler_wl 10250 10251# Object file suffix (normally "o"). 10252objext="$ac_objext" 10253 10254# Old archive suffix (normally "a"). 10255libext="$libext" 10256 10257# Shared library suffix (normally ".so"). 10258shrext_cmds='$shrext_cmds' 10259 10260# Executable file suffix (normally ""). 10261exeext="$exeext" 10262 10263# Additional compiler flags for building library objects. 10264pic_flag=$lt_lt_prog_compiler_pic 10265pic_mode=$pic_mode 10266 10267# What is the maximum length of a command? 10268max_cmd_len=$lt_cv_sys_max_cmd_len 10269 10270# Does compiler simultaneously support -c and -o options? 10271compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10272 10273# Must we lock files when doing compilation? 10274need_locks=$lt_need_locks 10275 10276# Do we need the lib prefix for modules? 10277need_lib_prefix=$need_lib_prefix 10278 10279# Do we need a version for libraries? 10280need_version=$need_version 10281 10282# Whether dlopen is supported. 10283dlopen_support=$enable_dlopen 10284 10285# Whether dlopen of programs is supported. 10286dlopen_self=$enable_dlopen_self 10287 10288# Whether dlopen of statically linked programs is supported. 10289dlopen_self_static=$enable_dlopen_self_static 10290 10291# Compiler flag to prevent dynamic linking. 10292link_static_flag=$lt_lt_prog_compiler_static 10293 10294# Compiler flag to turn off builtin functions. 10295no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10296 10297# Compiler flag to allow reflexive dlopens. 10298export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10299 10300# Compiler flag to generate shared objects directly from archives. 10301whole_archive_flag_spec=$lt_whole_archive_flag_spec 10302 10303# Compiler flag to generate thread-safe objects. 10304thread_safe_flag_spec=$lt_thread_safe_flag_spec 10305 10306# Library versioning type. 10307version_type=$version_type 10308 10309# Format of library name prefix. 10310libname_spec=$lt_libname_spec 10311 10312# List of archive names. First name is the real one, the rest are links. 10313# The last name is the one that the linker finds with -lNAME. 10314library_names_spec=$lt_library_names_spec 10315 10316# The coded name of the library, if different from the real name. 10317soname_spec=$lt_soname_spec 10318 10319# Commands used to build and install an old-style archive. 10320RANLIB=$lt_RANLIB 10321old_archive_cmds=$lt_old_archive_cmds 10322old_postinstall_cmds=$lt_old_postinstall_cmds 10323old_postuninstall_cmds=$lt_old_postuninstall_cmds 10324 10325# Create an old-style archive from a shared archive. 10326old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10327 10328# Create a temporary old-style archive to link instead of a shared archive. 10329old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10330 10331# Commands used to build and install a shared archive. 10332archive_cmds=$lt_archive_cmds 10333archive_expsym_cmds=$lt_archive_expsym_cmds 10334postinstall_cmds=$lt_postinstall_cmds 10335postuninstall_cmds=$lt_postuninstall_cmds 10336 10337# Commands used to build a loadable module (assumed same as above if empty) 10338module_cmds=$lt_module_cmds 10339module_expsym_cmds=$lt_module_expsym_cmds 10340 10341# Commands to strip libraries. 10342old_striplib=$lt_old_striplib 10343striplib=$lt_striplib 10344 10345# Dependencies to place before the objects being linked to create a 10346# shared library. 10347predep_objects=$lt_predep_objects 10348 10349# Dependencies to place after the objects being linked to create a 10350# shared library. 10351postdep_objects=$lt_postdep_objects 10352 10353# Dependencies to place before the objects being linked to create a 10354# shared library. 10355predeps=$lt_predeps 10356 10357# Dependencies to place after the objects being linked to create a 10358# shared library. 10359postdeps=$lt_postdeps 10360 10361# The library search path used internally by the compiler when linking 10362# a shared library. 10363compiler_lib_search_path=$lt_compiler_lib_search_path 10364 10365# Method to check whether dependent libraries are shared objects. 10366deplibs_check_method=$lt_deplibs_check_method 10367 10368# Command to use when deplibs_check_method == file_magic. 10369file_magic_cmd=$lt_file_magic_cmd 10370 10371# Flag that allows shared libraries with undefined symbols to be built. 10372allow_undefined_flag=$lt_allow_undefined_flag 10373 10374# Flag that forces no undefined symbols. 10375no_undefined_flag=$lt_no_undefined_flag 10376 10377# Commands used to finish a libtool library installation in a directory. 10378finish_cmds=$lt_finish_cmds 10379 10380# Same as above, but a single script fragment to be evaled but not shown. 10381finish_eval=$lt_finish_eval 10382 10383# Take the output of nm and produce a listing of raw symbols and C names. 10384global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10385 10386# Transform the output of nm in a proper C declaration 10387global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10388 10389# Transform the output of nm in a C name address pair 10390global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10391 10392# This is the shared library runtime path variable. 10393runpath_var=$runpath_var 10394 10395# This is the shared library path variable. 10396shlibpath_var=$shlibpath_var 10397 10398# Is shlibpath searched before the hard-coded library search path? 10399shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10400 10401# How to hardcode a shared library path into an executable. 10402hardcode_action=$hardcode_action 10403 10404# Whether we should hardcode library paths into libraries. 10405hardcode_into_libs=$hardcode_into_libs 10406 10407# Flag to hardcode \$libdir into a binary during linking. 10408# This must work even if \$libdir does not exist. 10409hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10410 10411# If ld is used when linking, flag to hardcode \$libdir into 10412# a binary during linking. This must work even if \$libdir does 10413# not exist. 10414hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10415 10416# Whether we need a single -rpath flag with a separated argument. 10417hardcode_libdir_separator=$lt_hardcode_libdir_separator 10418 10419# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10420# resulting binary. 10421hardcode_direct=$hardcode_direct 10422 10423# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10424# resulting binary. 10425hardcode_minus_L=$hardcode_minus_L 10426 10427# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10428# the resulting binary. 10429hardcode_shlibpath_var=$hardcode_shlibpath_var 10430 10431# Set to yes if building a shared library automatically hardcodes DIR into the library 10432# and all subsequent libraries and executables linked against it. 10433hardcode_automatic=$hardcode_automatic 10434 10435# Variables whose values should be saved in libtool wrapper scripts and 10436# restored at relink time. 10437variables_saved_for_relink="$variables_saved_for_relink" 10438 10439# Whether libtool must link a program against all its dependency libraries. 10440link_all_deplibs=$link_all_deplibs 10441 10442# Compile-time system search path for libraries 10443sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10444 10445# Run-time system search path for libraries 10446sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10447 10448# Fix the shell variable \$srcfile for the compiler. 10449fix_srcfile_path="$fix_srcfile_path" 10450 10451# Set to yes if exported symbols are required. 10452always_export_symbols=$always_export_symbols 10453 10454# The commands to list exported symbols. 10455export_symbols_cmds=$lt_export_symbols_cmds 10456 10457# The commands to extract the exported symbol list from a shared archive. 10458extract_expsyms_cmds=$lt_extract_expsyms_cmds 10459 10460# Symbols that should not be listed in the preloaded symbols. 10461exclude_expsyms=$lt_exclude_expsyms 10462 10463# Symbols that must always be exported. 10464include_expsyms=$lt_include_expsyms 10465 10466# ### END LIBTOOL CONFIG 10467 10468__EOF__ 10469 10470 10471 case $host_os in 10472 aix3*) 10473 cat <<\EOF >> "$cfgfile" 10474 10475# AIX sometimes has problems with the GCC collect2 program. For some 10476# reason, if we set the COLLECT_NAMES environment variable, the problems 10477# vanish in a puff of smoke. 10478if test "X${COLLECT_NAMES+set}" != Xset; then 10479 COLLECT_NAMES= 10480 export COLLECT_NAMES 10481fi 10482EOF 10483 ;; 10484 esac 10485 10486 # We use sed instead of cat because bash on DJGPP gets confused if 10487 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10488 # text mode, it properly converts lines to CR/LF. This bash problem 10489 # is reportedly fixed, but why not run on old versions too? 10490 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10491 10492 mv -f "$cfgfile" "$ofile" || \ 10493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10494 chmod +x "$ofile" 10495 10496else 10497 # If there is no Makefile yet, we rely on a make rule to execute 10498 # `config.status --recheck' to rerun these tests and create the 10499 # libtool script then. 10500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10501 if test -f "$ltmain_in"; then 10502 test -f Makefile && make "$ltmain" 10503 fi 10504fi 10505 10506 10507ac_ext=c 10508ac_cpp='$CPP $CPPFLAGS' 10509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10511ac_compiler_gnu=$ac_cv_c_compiler_gnu 10512 10513CC="$lt_save_CC" 10514 10515 10516# Check whether --with-tags was given. 10517if test "${with_tags+set}" = set; then 10518 withval=$with_tags; tagnames="$withval" 10519fi 10520 10521 10522if test -f "$ltmain" && test -n "$tagnames"; then 10523 if test ! -f "${ofile}"; then 10524 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10525echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10526 fi 10527 10528 if test -z "$LTCC"; then 10529 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10530 if test -z "$LTCC"; then 10531 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10532echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10533 else 10534 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10535echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10536 fi 10537 fi 10538 if test -z "$LTCFLAGS"; then 10539 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10540 fi 10541 10542 # Extract list of available tagged configurations in $ofile. 10543 # Note that this assumes the entire list is on one line. 10544 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10545 10546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10547 for tagname in $tagnames; do 10548 IFS="$lt_save_ifs" 10549 # Check whether tagname contains only valid characters 10550 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10551 "") ;; 10552 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10553echo "$as_me: error: invalid tag name: $tagname" >&2;} 10554 { (exit 1); exit 1; }; } 10555 ;; 10556 esac 10557 10558 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10559 then 10560 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10561echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10562 { (exit 1); exit 1; }; } 10563 fi 10564 10565 # Update the list of available tags. 10566 if test -n "$tagname"; then 10567 echo appending configuration tag \"$tagname\" to $ofile 10568 10569 case $tagname in 10570 CXX) 10571 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10572 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10573 (test "X$CXX" != "Xg++"))) ; then 10574 ac_ext=cpp 10575ac_cpp='$CXXCPP $CPPFLAGS' 10576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10579 10580 10581 10582 10583archive_cmds_need_lc_CXX=no 10584allow_undefined_flag_CXX= 10585always_export_symbols_CXX=no 10586archive_expsym_cmds_CXX= 10587export_dynamic_flag_spec_CXX= 10588hardcode_direct_CXX=no 10589hardcode_libdir_flag_spec_CXX= 10590hardcode_libdir_flag_spec_ld_CXX= 10591hardcode_libdir_separator_CXX= 10592hardcode_minus_L_CXX=no 10593hardcode_shlibpath_var_CXX=unsupported 10594hardcode_automatic_CXX=no 10595module_cmds_CXX= 10596module_expsym_cmds_CXX= 10597link_all_deplibs_CXX=unknown 10598old_archive_cmds_CXX=$old_archive_cmds 10599no_undefined_flag_CXX= 10600whole_archive_flag_spec_CXX= 10601enable_shared_with_static_runtimes_CXX=no 10602 10603# Dependencies to place before and after the object being linked: 10604predep_objects_CXX= 10605postdep_objects_CXX= 10606predeps_CXX= 10607postdeps_CXX= 10608compiler_lib_search_path_CXX= 10609 10610# Source file extension for C++ test sources. 10611ac_ext=cpp 10612 10613# Object file extension for compiled C++ test sources. 10614objext=o 10615objext_CXX=$objext 10616 10617# Code to be used in simple compile tests 10618lt_simple_compile_test_code="int some_variable = 0;\n" 10619 10620# Code to be used in simple link tests 10621lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10622 10623# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10624 10625# If no C compiler was specified, use CC. 10626LTCC=${LTCC-"$CC"} 10627 10628# If no C compiler flags were specified, use CFLAGS. 10629LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10630 10631# Allow CC to be a program name with arguments. 10632compiler=$CC 10633 10634 10635# save warnings/boilerplate of simple test code 10636ac_outfile=conftest.$ac_objext 10637printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10639_lt_compiler_boilerplate=`cat conftest.err` 10640$rm conftest* 10641 10642ac_outfile=conftest.$ac_objext 10643printf "$lt_simple_link_test_code" >conftest.$ac_ext 10644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10645_lt_linker_boilerplate=`cat conftest.err` 10646$rm conftest* 10647 10648 10649# Allow CC to be a program name with arguments. 10650lt_save_CC=$CC 10651lt_save_LD=$LD 10652lt_save_GCC=$GCC 10653GCC=$GXX 10654lt_save_with_gnu_ld=$with_gnu_ld 10655lt_save_path_LD=$lt_cv_path_LD 10656if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10657 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10658else 10659 $as_unset lt_cv_prog_gnu_ld 10660fi 10661if test -n "${lt_cv_path_LDCXX+set}"; then 10662 lt_cv_path_LD=$lt_cv_path_LDCXX 10663else 10664 $as_unset lt_cv_path_LD 10665fi 10666test -z "${LDCXX+set}" || LD=$LDCXX 10667CC=${CXX-"c++"} 10668compiler=$CC 10669compiler_CXX=$CC 10670for cc_temp in $compiler""; do 10671 case $cc_temp in 10672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10674 \-*) ;; 10675 *) break;; 10676 esac 10677done 10678cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10679 10680 10681# We don't want -fno-exception wen compiling C++ code, so set the 10682# no_builtin_flag separately 10683if test "$GXX" = yes; then 10684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10685else 10686 lt_prog_compiler_no_builtin_flag_CXX= 10687fi 10688 10689if test "$GXX" = yes; then 10690 # Set up default GNU C++ configuration 10691 10692 10693# Check whether --with-gnu-ld was given. 10694if test "${with_gnu_ld+set}" = set; then 10695 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10696else 10697 with_gnu_ld=no 10698fi 10699 10700ac_prog=ld 10701if test "$GCC" = yes; then 10702 # Check if gcc -print-prog-name=ld gives a path. 10703 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10704echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10705 case $host in 10706 *-*-mingw*) 10707 # gcc leaves a trailing carriage return which upsets mingw 10708 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10709 *) 10710 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10711 esac 10712 case $ac_prog in 10713 # Accept absolute paths. 10714 [\\/]* | ?:[\\/]*) 10715 re_direlt='/[^/][^/]*/\.\./' 10716 # Canonicalize the pathname of ld 10717 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10718 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10719 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10720 done 10721 test -z "$LD" && LD="$ac_prog" 10722 ;; 10723 "") 10724 # If it fails, then pretend we aren't using GCC. 10725 ac_prog=ld 10726 ;; 10727 *) 10728 # If it is relative, then search for the first ld in PATH. 10729 with_gnu_ld=unknown 10730 ;; 10731 esac 10732elif test "$with_gnu_ld" = yes; then 10733 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10734echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10735else 10736 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10737echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10738fi 10739if test "${lt_cv_path_LD+set}" = set; then 10740 echo $ECHO_N "(cached) $ECHO_C" >&6 10741else 10742 if test -z "$LD"; then 10743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10744 for ac_dir in $PATH; do 10745 IFS="$lt_save_ifs" 10746 test -z "$ac_dir" && ac_dir=. 10747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10748 lt_cv_path_LD="$ac_dir/$ac_prog" 10749 # Check to see if the program is GNU ld. I'd rather use --version, 10750 # but apparently some variants of GNU ld only accept -v. 10751 # Break only if it was the GNU/non-GNU ld that we prefer. 10752 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10753 *GNU* | *'with BFD'*) 10754 test "$with_gnu_ld" != no && break 10755 ;; 10756 *) 10757 test "$with_gnu_ld" != yes && break 10758 ;; 10759 esac 10760 fi 10761 done 10762 IFS="$lt_save_ifs" 10763else 10764 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10765fi 10766fi 10767 10768LD="$lt_cv_path_LD" 10769if test -n "$LD"; then 10770 { echo "$as_me:$LINENO: result: $LD" >&5 10771echo "${ECHO_T}$LD" >&6; } 10772else 10773 { echo "$as_me:$LINENO: result: no" >&5 10774echo "${ECHO_T}no" >&6; } 10775fi 10776test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10777echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10778 { (exit 1); exit 1; }; } 10779{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10780echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10781if test "${lt_cv_prog_gnu_ld+set}" = set; then 10782 echo $ECHO_N "(cached) $ECHO_C" >&6 10783else 10784 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10785case `$LD -v 2>&1 </dev/null` in 10786*GNU* | *'with BFD'*) 10787 lt_cv_prog_gnu_ld=yes 10788 ;; 10789*) 10790 lt_cv_prog_gnu_ld=no 10791 ;; 10792esac 10793fi 10794{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10795echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10796with_gnu_ld=$lt_cv_prog_gnu_ld 10797 10798 10799 10800 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10801 # archiving commands below assume that GNU ld is being used. 10802 if test "$with_gnu_ld" = yes; then 10803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10804 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' 10805 10806 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10808 10809 # If archive_cmds runs LD, not CC, wlarc should be empty 10810 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10811 # investigate it a little bit more. (MM) 10812 wlarc='${wl}' 10813 10814 # ancient GNU ld didn't support --whole-archive et. al. 10815 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10816 grep 'no-whole-archive' > /dev/null; then 10817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10818 else 10819 whole_archive_flag_spec_CXX= 10820 fi 10821 else 10822 with_gnu_ld=no 10823 wlarc= 10824 10825 # A generic and very simple default shared library creation 10826 # command for GNU C++ for the case where it uses the native 10827 # linker, instead of GNU ld. If possible, this setting should 10828 # overridden to take advantage of the native linker features on 10829 # the platform it is being used on. 10830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10831 fi 10832 10833 # Commands to make compiler produce verbose output that lists 10834 # what "hidden" libraries, object files and flags are used when 10835 # linking a shared library. 10836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10837 10838else 10839 GXX=no 10840 with_gnu_ld=no 10841 wlarc= 10842fi 10843 10844# PORTME: fill in a description of your system's C++ link characteristics 10845{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10847ld_shlibs_CXX=yes 10848case $host_os in 10849 aix3*) 10850 # FIXME: insert proper C++ library support 10851 ld_shlibs_CXX=no 10852 ;; 10853 aix4* | aix5*) 10854 if test "$host_cpu" = ia64; then 10855 # On IA64, the linker does run time linking by default, so we don't 10856 # have to do anything special. 10857 aix_use_runtimelinking=no 10858 exp_sym_flag='-Bexport' 10859 no_entry_flag="" 10860 else 10861 aix_use_runtimelinking=no 10862 10863 # Test if we are trying to use run time linking or normal 10864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10865 # need to do runtime linking. 10866 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10867 for ld_flag in $LDFLAGS; do 10868 case $ld_flag in 10869 *-brtl*) 10870 aix_use_runtimelinking=yes 10871 break 10872 ;; 10873 esac 10874 done 10875 ;; 10876 esac 10877 10878 exp_sym_flag='-bexport' 10879 no_entry_flag='-bnoentry' 10880 fi 10881 10882 # When large executables or shared objects are built, AIX ld can 10883 # have problems creating the table of contents. If linking a library 10884 # or program results in "error TOC overflow" add -mminimal-toc to 10885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10887 10888 archive_cmds_CXX='' 10889 hardcode_direct_CXX=yes 10890 hardcode_libdir_separator_CXX=':' 10891 link_all_deplibs_CXX=yes 10892 10893 if test "$GXX" = yes; then 10894 case $host_os in aix4.[012]|aix4.[012].*) 10895 # We only want to do this on AIX 4.2 and lower, the check 10896 # below for broken collect2 doesn't work under 4.3+ 10897 collect2name=`${CC} -print-prog-name=collect2` 10898 if test -f "$collect2name" && \ 10899 strings "$collect2name" | grep resolve_lib_name >/dev/null 10900 then 10901 # We have reworked collect2 10902 hardcode_direct_CXX=yes 10903 else 10904 # We have old collect2 10905 hardcode_direct_CXX=unsupported 10906 # It fails to find uninstalled libraries when the uninstalled 10907 # path is not listed in the libpath. Setting hardcode_minus_L 10908 # to unsupported forces relinking 10909 hardcode_minus_L_CXX=yes 10910 hardcode_libdir_flag_spec_CXX='-L$libdir' 10911 hardcode_libdir_separator_CXX= 10912 fi 10913 ;; 10914 esac 10915 shared_flag='-shared' 10916 if test "$aix_use_runtimelinking" = yes; then 10917 shared_flag="$shared_flag "'${wl}-G' 10918 fi 10919 else 10920 # not using gcc 10921 if test "$host_cpu" = ia64; then 10922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10923 # chokes on -Wl,-G. The following line is correct: 10924 shared_flag='-G' 10925 else 10926 if test "$aix_use_runtimelinking" = yes; then 10927 shared_flag='${wl}-G' 10928 else 10929 shared_flag='${wl}-bM:SRE' 10930 fi 10931 fi 10932 fi 10933 10934 # It seems that -bexpall does not export symbols beginning with 10935 # underscore (_), so it is better to generate a list of symbols to export. 10936 always_export_symbols_CXX=yes 10937 if test "$aix_use_runtimelinking" = yes; then 10938 # Warning - without using the other runtime loading flags (-brtl), 10939 # -berok will link without error, but may produce a broken library. 10940 allow_undefined_flag_CXX='-berok' 10941 # Determine the default libpath from the value encoded in an empty executable. 10942 cat >conftest.$ac_ext <<_ACEOF 10943/* confdefs.h. */ 10944_ACEOF 10945cat confdefs.h >>conftest.$ac_ext 10946cat >>conftest.$ac_ext <<_ACEOF 10947/* end confdefs.h. */ 10948 10949int 10950main () 10951{ 10952 10953 ; 10954 return 0; 10955} 10956_ACEOF 10957rm -f conftest.$ac_objext conftest$ac_exeext 10958if { (ac_try="$ac_link" 10959case "(($ac_try" in 10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10961 *) ac_try_echo=$ac_try;; 10962esac 10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10964 (eval "$ac_link") 2>conftest.er1 10965 ac_status=$? 10966 grep -v '^ *+' conftest.er1 >conftest.err 10967 rm -f conftest.er1 10968 cat conftest.err >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); } && { 10971 test -z "$ac_cxx_werror_flag" || 10972 test ! -s conftest.err 10973 } && test -s conftest$ac_exeext && 10974 $as_test_x conftest$ac_exeext; then 10975 10976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10977}'` 10978# Check for a 64-bit object if we didn't find anything. 10979if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10980}'`; fi 10981else 10982 echo "$as_me: failed program was:" >&5 10983sed 's/^/| /' conftest.$ac_ext >&5 10984 10985 10986fi 10987 10988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10989 conftest$ac_exeext conftest.$ac_ext 10990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10991 10992 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10993 10994 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" 10995 else 10996 if test "$host_cpu" = ia64; then 10997 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10998 allow_undefined_flag_CXX="-z nodefs" 10999 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" 11000 else 11001 # Determine the default libpath from the value encoded in an empty executable. 11002 cat >conftest.$ac_ext <<_ACEOF 11003/* confdefs.h. */ 11004_ACEOF 11005cat confdefs.h >>conftest.$ac_ext 11006cat >>conftest.$ac_ext <<_ACEOF 11007/* end confdefs.h. */ 11008 11009int 11010main () 11011{ 11012 11013 ; 11014 return 0; 11015} 11016_ACEOF 11017rm -f conftest.$ac_objext conftest$ac_exeext 11018if { (ac_try="$ac_link" 11019case "(($ac_try" in 11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11021 *) ac_try_echo=$ac_try;; 11022esac 11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11024 (eval "$ac_link") 2>conftest.er1 11025 ac_status=$? 11026 grep -v '^ *+' conftest.er1 >conftest.err 11027 rm -f conftest.er1 11028 cat conftest.err >&5 11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); } && { 11031 test -z "$ac_cxx_werror_flag" || 11032 test ! -s conftest.err 11033 } && test -s conftest$ac_exeext && 11034 $as_test_x conftest$ac_exeext; then 11035 11036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11037}'` 11038# Check for a 64-bit object if we didn't find anything. 11039if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11040}'`; fi 11041else 11042 echo "$as_me: failed program was:" >&5 11043sed 's/^/| /' conftest.$ac_ext >&5 11044 11045 11046fi 11047 11048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11049 conftest$ac_exeext conftest.$ac_ext 11050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11051 11052 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11053 # Warning - without using the other run time loading flags, 11054 # -berok will link without error, but may produce a broken library. 11055 no_undefined_flag_CXX=' ${wl}-bernotok' 11056 allow_undefined_flag_CXX=' ${wl}-berok' 11057 # Exported symbols can be pulled into shared objects from archives 11058 whole_archive_flag_spec_CXX='$convenience' 11059 archive_cmds_need_lc_CXX=yes 11060 # This is similar to how AIX traditionally builds its shared libraries. 11061 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' 11062 fi 11063 fi 11064 ;; 11065 11066 beos*) 11067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11068 allow_undefined_flag_CXX=unsupported 11069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11070 # support --undefined. This deserves some investigation. FIXME 11071 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11072 else 11073 ld_shlibs_CXX=no 11074 fi 11075 ;; 11076 11077 chorus*) 11078 case $cc_basename in 11079 *) 11080 # FIXME: insert proper C++ library support 11081 ld_shlibs_CXX=no 11082 ;; 11083 esac 11084 ;; 11085 11086 cygwin* | mingw* | pw32*) 11087 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11088 # as there is no search path for DLLs. 11089 hardcode_libdir_flag_spec_CXX='-L$libdir' 11090 allow_undefined_flag_CXX=unsupported 11091 always_export_symbols_CXX=no 11092 enable_shared_with_static_runtimes_CXX=yes 11093 11094 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11095 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' 11096 # If the export-symbols file already is a .def file (1st line 11097 # is EXPORTS), use it as is; otherwise, prepend... 11098 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11099 cp $export_symbols $output_objdir/$soname.def; 11100 else 11101 echo EXPORTS > $output_objdir/$soname.def; 11102 cat $export_symbols >> $output_objdir/$soname.def; 11103 fi~ 11104 $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' 11105 else 11106 ld_shlibs_CXX=no 11107 fi 11108 ;; 11109 darwin* | rhapsody*) 11110 case $host_os in 11111 rhapsody* | darwin1.[012]) 11112 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11113 ;; 11114 *) # Darwin 1.3 on 11115 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11116 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11117 else 11118 case ${MACOSX_DEPLOYMENT_TARGET} in 11119 10.[012]) 11120 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11121 ;; 11122 10.*) 11123 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11124 ;; 11125 esac 11126 fi 11127 ;; 11128 esac 11129 archive_cmds_need_lc_CXX=no 11130 hardcode_direct_CXX=no 11131 hardcode_automatic_CXX=yes 11132 hardcode_shlibpath_var_CXX=unsupported 11133 whole_archive_flag_spec_CXX='' 11134 link_all_deplibs_CXX=yes 11135 11136 if test "$GXX" = yes ; then 11137 lt_int_apple_cc_single_mod=no 11138 output_verbose_link_cmd='echo' 11139 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11140 lt_int_apple_cc_single_mod=yes 11141 fi 11142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11143 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11144 else 11145 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' 11146 fi 11147 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11149 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11150 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}' 11151 else 11152 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}' 11153 fi 11154 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}' 11155 else 11156 case $cc_basename in 11157 xlc*) 11158 output_verbose_link_cmd='echo' 11159 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11160 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11162 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11163 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}' 11164 ;; 11165 *) 11166 ld_shlibs_CXX=no 11167 ;; 11168 esac 11169 fi 11170 ;; 11171 11172 dgux*) 11173 case $cc_basename in 11174 ec++*) 11175 # FIXME: insert proper C++ library support 11176 ld_shlibs_CXX=no 11177 ;; 11178 ghcx*) 11179 # Green Hills C++ Compiler 11180 # FIXME: insert proper C++ library support 11181 ld_shlibs_CXX=no 11182 ;; 11183 *) 11184 # FIXME: insert proper C++ library support 11185 ld_shlibs_CXX=no 11186 ;; 11187 esac 11188 ;; 11189 freebsd[12]*) 11190 # C++ shared libraries reported to be fairly broken before switch to ELF 11191 ld_shlibs_CXX=no 11192 ;; 11193 freebsd-elf*) 11194 archive_cmds_need_lc_CXX=no 11195 ;; 11196 freebsd* | kfreebsd*-gnu | dragonfly*) 11197 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11198 # conventions 11199 ld_shlibs_CXX=yes 11200 ;; 11201 gnu*) 11202 ;; 11203 hpux9*) 11204 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11205 hardcode_libdir_separator_CXX=: 11206 export_dynamic_flag_spec_CXX='${wl}-E' 11207 hardcode_direct_CXX=yes 11208 hardcode_minus_L_CXX=yes # Not in the search PATH, 11209 # but as the default 11210 # location of the library. 11211 11212 case $cc_basename in 11213 CC*) 11214 # FIXME: insert proper C++ library support 11215 ld_shlibs_CXX=no 11216 ;; 11217 aCC*) 11218 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' 11219 # Commands to make compiler produce verbose output that lists 11220 # what "hidden" libraries, object files and flags are used when 11221 # linking a shared library. 11222 # 11223 # There doesn't appear to be a way to prevent this compiler from 11224 # explicitly linking system object files so we need to strip them 11225 # from the output so that they don't get included in the library 11226 # dependencies. 11227 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' 11228 ;; 11229 *) 11230 if test "$GXX" = yes; then 11231 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' 11232 else 11233 # FIXME: insert proper C++ library support 11234 ld_shlibs_CXX=no 11235 fi 11236 ;; 11237 esac 11238 ;; 11239 hpux10*|hpux11*) 11240 if test $with_gnu_ld = no; then 11241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11242 hardcode_libdir_separator_CXX=: 11243 11244 case $host_cpu in 11245 hppa*64*|ia64*) 11246 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11247 ;; 11248 *) 11249 export_dynamic_flag_spec_CXX='${wl}-E' 11250 ;; 11251 esac 11252 fi 11253 case $host_cpu in 11254 hppa*64*|ia64*) 11255 hardcode_direct_CXX=no 11256 hardcode_shlibpath_var_CXX=no 11257 ;; 11258 *) 11259 hardcode_direct_CXX=yes 11260 hardcode_minus_L_CXX=yes # Not in the search PATH, 11261 # but as the default 11262 # location of the library. 11263 ;; 11264 esac 11265 11266 case $cc_basename in 11267 CC*) 11268 # FIXME: insert proper C++ library support 11269 ld_shlibs_CXX=no 11270 ;; 11271 aCC*) 11272 case $host_cpu in 11273 hppa*64*) 11274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11275 ;; 11276 ia64*) 11277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11278 ;; 11279 *) 11280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11281 ;; 11282 esac 11283 # Commands to make compiler produce verbose output that lists 11284 # what "hidden" libraries, object files and flags are used when 11285 # linking a shared library. 11286 # 11287 # There doesn't appear to be a way to prevent this compiler from 11288 # explicitly linking system object files so we need to strip them 11289 # from the output so that they don't get included in the library 11290 # dependencies. 11291 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' 11292 ;; 11293 *) 11294 if test "$GXX" = yes; then 11295 if test $with_gnu_ld = no; then 11296 case $host_cpu in 11297 hppa*64*) 11298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11299 ;; 11300 ia64*) 11301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11302 ;; 11303 *) 11304 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' 11305 ;; 11306 esac 11307 fi 11308 else 11309 # FIXME: insert proper C++ library support 11310 ld_shlibs_CXX=no 11311 fi 11312 ;; 11313 esac 11314 ;; 11315 interix3*) 11316 hardcode_direct_CXX=no 11317 hardcode_shlibpath_var_CXX=no 11318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11319 export_dynamic_flag_spec_CXX='${wl}-E' 11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11321 # Instead, shared libraries are loaded at an image base (0x10000000 by 11322 # default) and relocated if they conflict, which is a slow very memory 11323 # consuming and fragmenting process. To avoid this, we pick a random, 11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11326 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' 11327 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' 11328 ;; 11329 irix5* | irix6*) 11330 case $cc_basename in 11331 CC*) 11332 # SGI C++ 11333 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' 11334 11335 # Archives containing C++ object files must be created using 11336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11337 # necessary to make sure instantiated templates are included 11338 # in the archive. 11339 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11340 ;; 11341 *) 11342 if test "$GXX" = yes; then 11343 if test "$with_gnu_ld" = no; then 11344 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' 11345 else 11346 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' 11347 fi 11348 fi 11349 link_all_deplibs_CXX=yes 11350 ;; 11351 esac 11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11353 hardcode_libdir_separator_CXX=: 11354 ;; 11355 linux*) 11356 case $cc_basename in 11357 KCC*) 11358 # Kuck and Associates, Inc. (KAI) C++ Compiler 11359 11360 # KCC will only create a shared library if the output file 11361 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11362 # to its proper name (with version) after linking. 11363 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' 11364 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' 11365 # Commands to make compiler produce verbose output that lists 11366 # what "hidden" libraries, object files and flags are used when 11367 # linking a shared library. 11368 # 11369 # There doesn't appear to be a way to prevent this compiler from 11370 # explicitly linking system object files so we need to strip them 11371 # from the output so that they don't get included in the library 11372 # dependencies. 11373 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' 11374 11375 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11377 11378 # Archives containing C++ object files must be created using 11379 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11380 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11381 ;; 11382 icpc*) 11383 # Intel C++ 11384 with_gnu_ld=yes 11385 # version 8.0 and above of icpc choke on multiply defined symbols 11386 # if we add $predep_objects and $postdep_objects, however 7.1 and 11387 # earlier do not add the objects themselves. 11388 case `$CC -V 2>&1` in 11389 *"Version 7."*) 11390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11391 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' 11392 ;; 11393 *) # Version 8.0 or newer 11394 tmp_idyn= 11395 case $host_cpu in 11396 ia64*) tmp_idyn=' -i_dynamic';; 11397 esac 11398 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11399 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' 11400 ;; 11401 esac 11402 archive_cmds_need_lc_CXX=no 11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11405 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11406 ;; 11407 pgCC*) 11408 # Portland Group C++ compiler 11409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11410 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' 11411 11412 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11414 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' 11415 ;; 11416 cxx*) 11417 # Compaq C++ 11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11419 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' 11420 11421 runpath_var=LD_RUN_PATH 11422 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11423 hardcode_libdir_separator_CXX=: 11424 11425 # Commands to make compiler produce verbose output that lists 11426 # what "hidden" libraries, object files and flags are used when 11427 # linking a shared library. 11428 # 11429 # There doesn't appear to be a way to prevent this compiler from 11430 # explicitly linking system object files so we need to strip them 11431 # from the output so that they don't get included in the library 11432 # dependencies. 11433 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' 11434 ;; 11435 esac 11436 ;; 11437 lynxos*) 11438 # FIXME: insert proper C++ library support 11439 ld_shlibs_CXX=no 11440 ;; 11441 m88k*) 11442 # FIXME: insert proper C++ library support 11443 ld_shlibs_CXX=no 11444 ;; 11445 mvs*) 11446 case $cc_basename in 11447 cxx*) 11448 # FIXME: insert proper C++ library support 11449 ld_shlibs_CXX=no 11450 ;; 11451 *) 11452 # FIXME: insert proper C++ library support 11453 ld_shlibs_CXX=no 11454 ;; 11455 esac 11456 ;; 11457 netbsd*) 11458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11459 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11460 wlarc= 11461 hardcode_libdir_flag_spec_CXX='-R$libdir' 11462 hardcode_direct_CXX=yes 11463 hardcode_shlibpath_var_CXX=no 11464 fi 11465 # Workaround some broken pre-1.5 toolchains 11466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11467 ;; 11468 openbsd2*) 11469 # C++ shared libraries are fairly broken 11470 ld_shlibs_CXX=no 11471 ;; 11472 openbsd*) 11473 hardcode_direct_CXX=yes 11474 hardcode_shlibpath_var_CXX=no 11475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11478 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11479 export_dynamic_flag_spec_CXX='${wl}-E' 11480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11481 fi 11482 output_verbose_link_cmd='echo' 11483 ;; 11484 osf3*) 11485 case $cc_basename in 11486 KCC*) 11487 # Kuck and Associates, Inc. (KAI) C++ Compiler 11488 11489 # KCC will only create a shared library if the output file 11490 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11491 # to its proper name (with version) after linking. 11492 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' 11493 11494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11495 hardcode_libdir_separator_CXX=: 11496 11497 # Archives containing C++ object files must be created using 11498 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11499 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11500 11501 ;; 11502 RCC*) 11503 # Rational C++ 2.4.1 11504 # FIXME: insert proper C++ library support 11505 ld_shlibs_CXX=no 11506 ;; 11507 cxx*) 11508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11509 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' 11510 11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11512 hardcode_libdir_separator_CXX=: 11513 11514 # Commands to make compiler produce verbose output that lists 11515 # what "hidden" libraries, object files and flags are used when 11516 # linking a shared library. 11517 # 11518 # There doesn't appear to be a way to prevent this compiler from 11519 # explicitly linking system object files so we need to strip them 11520 # from the output so that they don't get included in the library 11521 # dependencies. 11522 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' 11523 ;; 11524 *) 11525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11526 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11527 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' 11528 11529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11530 hardcode_libdir_separator_CXX=: 11531 11532 # Commands to make compiler produce verbose output that lists 11533 # what "hidden" libraries, object files and flags are used when 11534 # linking a shared library. 11535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11536 11537 else 11538 # FIXME: insert proper C++ library support 11539 ld_shlibs_CXX=no 11540 fi 11541 ;; 11542 esac 11543 ;; 11544 osf4* | osf5*) 11545 case $cc_basename in 11546 KCC*) 11547 # Kuck and Associates, Inc. (KAI) C++ Compiler 11548 11549 # KCC will only create a shared library if the output file 11550 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11551 # to its proper name (with version) after linking. 11552 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' 11553 11554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11555 hardcode_libdir_separator_CXX=: 11556 11557 # Archives containing C++ object files must be created using 11558 # the KAI C++ compiler. 11559 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11560 ;; 11561 RCC*) 11562 # Rational C++ 2.4.1 11563 # FIXME: insert proper C++ library support 11564 ld_shlibs_CXX=no 11565 ;; 11566 cxx*) 11567 allow_undefined_flag_CXX=' -expect_unresolved \*' 11568 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' 11569 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11570 echo "-hidden">> $lib.exp~ 11571 $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~ 11572 $rm $lib.exp' 11573 11574 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11575 hardcode_libdir_separator_CXX=: 11576 11577 # Commands to make compiler produce verbose output that lists 11578 # what "hidden" libraries, object files and flags are used when 11579 # linking a shared library. 11580 # 11581 # There doesn't appear to be a way to prevent this compiler from 11582 # explicitly linking system object files so we need to strip them 11583 # from the output so that they don't get included in the library 11584 # dependencies. 11585 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' 11586 ;; 11587 *) 11588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11590 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' 11591 11592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11593 hardcode_libdir_separator_CXX=: 11594 11595 # Commands to make compiler produce verbose output that lists 11596 # what "hidden" libraries, object files and flags are used when 11597 # linking a shared library. 11598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11599 11600 else 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 fi 11604 ;; 11605 esac 11606 ;; 11607 psos*) 11608 # FIXME: insert proper C++ library support 11609 ld_shlibs_CXX=no 11610 ;; 11611 sunos4*) 11612 case $cc_basename in 11613 CC*) 11614 # Sun C++ 4.x 11615 # FIXME: insert proper C++ library support 11616 ld_shlibs_CXX=no 11617 ;; 11618 lcc*) 11619 # Lucid 11620 # FIXME: insert proper C++ library support 11621 ld_shlibs_CXX=no 11622 ;; 11623 *) 11624 # FIXME: insert proper C++ library support 11625 ld_shlibs_CXX=no 11626 ;; 11627 esac 11628 ;; 11629 solaris*) 11630 case $cc_basename in 11631 CC*) 11632 # Sun C++ 4.2, 5.x and Centerline C++ 11633 archive_cmds_need_lc_CXX=yes 11634 no_undefined_flag_CXX=' -zdefs' 11635 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11636 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11637 $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' 11638 11639 hardcode_libdir_flag_spec_CXX='-R$libdir' 11640 hardcode_shlibpath_var_CXX=no 11641 case $host_os in 11642 solaris2.[0-5] | solaris2.[0-5].*) ;; 11643 *) 11644 # The C++ compiler is used as linker so we must use $wl 11645 # flag to pass the commands to the underlying system 11646 # linker. We must also pass each convience library through 11647 # to the system linker between allextract/defaultextract. 11648 # The C++ compiler will combine linker options so we 11649 # cannot just pass the convience library names through 11650 # without $wl. 11651 # Supported since Solaris 2.6 (maybe 2.5.1?) 11652 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11653 ;; 11654 esac 11655 link_all_deplibs_CXX=yes 11656 11657 output_verbose_link_cmd='echo' 11658 11659 # Archives containing C++ object files must be created using 11660 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11661 # necessary to make sure instantiated templates are included 11662 # in the archive. 11663 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11664 ;; 11665 gcx*) 11666 # Green Hills C++ Compiler 11667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11668 11669 # The C++ compiler must be used to create the archive. 11670 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11671 ;; 11672 *) 11673 # GNU C++ compiler with Solaris linker 11674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11675 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11676 if $CC --version | grep -v '^2\.7' > /dev/null; then 11677 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11678 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11679 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11680 11681 # Commands to make compiler produce verbose output that lists 11682 # what "hidden" libraries, object files and flags are used when 11683 # linking a shared library. 11684 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11685 else 11686 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11687 # platform. 11688 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11689 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11690 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11691 11692 # Commands to make compiler produce verbose output that lists 11693 # what "hidden" libraries, object files and flags are used when 11694 # linking a shared library. 11695 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11696 fi 11697 11698 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11699 fi 11700 ;; 11701 esac 11702 ;; 11703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11704 no_undefined_flag_CXX='${wl}-z,text' 11705 archive_cmds_need_lc_CXX=no 11706 hardcode_shlibpath_var_CXX=no 11707 runpath_var='LD_RUN_PATH' 11708 11709 case $cc_basename in 11710 CC*) 11711 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11712 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11713 ;; 11714 *) 11715 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11716 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11717 ;; 11718 esac 11719 ;; 11720 sysv5* | sco3.2v5* | sco5v6*) 11721 # Note: We can NOT use -z defs as we might desire, because we do not 11722 # link with -lc, and that would cause any symbols used from libc to 11723 # always be unresolved, which means just about no library would 11724 # ever link correctly. If we're not using GNU ld we use -z text 11725 # though, which does catch some bad symbols but isn't as heavy-handed 11726 # as -z defs. 11727 # For security reasons, it is highly recommended that you always 11728 # use absolute paths for naming shared libraries, and exclude the 11729 # DT_RUNPATH tag from executables and libraries. But doing so 11730 # requires that you compile everything twice, which is a pain. 11731 # So that behaviour is only enabled if SCOABSPATH is set to a 11732 # non-empty value in the environment. Most likely only useful for 11733 # creating official distributions of packages. 11734 # This is a hack until libtool officially supports absolute path 11735 # names for shared libraries. 11736 no_undefined_flag_CXX='${wl}-z,text' 11737 allow_undefined_flag_CXX='${wl}-z,nodefs' 11738 archive_cmds_need_lc_CXX=no 11739 hardcode_shlibpath_var_CXX=no 11740 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11741 hardcode_libdir_separator_CXX=':' 11742 link_all_deplibs_CXX=yes 11743 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11744 runpath_var='LD_RUN_PATH' 11745 11746 case $cc_basename in 11747 CC*) 11748 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11750 ;; 11751 *) 11752 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11753 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11754 ;; 11755 esac 11756 ;; 11757 tandem*) 11758 case $cc_basename in 11759 NCC*) 11760 # NonStop-UX NCC 3.20 11761 # FIXME: insert proper C++ library support 11762 ld_shlibs_CXX=no 11763 ;; 11764 *) 11765 # FIXME: insert proper C++ library support 11766 ld_shlibs_CXX=no 11767 ;; 11768 esac 11769 ;; 11770 vxworks*) 11771 # FIXME: insert proper C++ library support 11772 ld_shlibs_CXX=no 11773 ;; 11774 *) 11775 # FIXME: insert proper C++ library support 11776 ld_shlibs_CXX=no 11777 ;; 11778esac 11779{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11780echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11781test "$ld_shlibs_CXX" = no && can_build_shared=no 11782 11783GCC_CXX="$GXX" 11784LD_CXX="$LD" 11785 11786 11787cat > conftest.$ac_ext <<EOF 11788class Foo 11789{ 11790public: 11791 Foo (void) { a = 0; } 11792private: 11793 int a; 11794}; 11795EOF 11796 11797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11798 (eval $ac_compile) 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); }; then 11802 # Parse the compiler output and extract the necessary 11803 # objects, libraries and library flags. 11804 11805 # Sentinel used to keep track of whether or not we are before 11806 # the conftest object file. 11807 pre_test_object_deps_done=no 11808 11809 # The `*' in the case matches for architectures that use `case' in 11810 # $output_verbose_cmd can trigger glob expansion during the loop 11811 # eval without this substitution. 11812 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11813 11814 for p in `eval $output_verbose_link_cmd`; do 11815 case $p in 11816 11817 -L* | -R* | -l*) 11818 # Some compilers place space between "-{L,R}" and the path. 11819 # Remove the space. 11820 if test $p = "-L" \ 11821 || test $p = "-R"; then 11822 prev=$p 11823 continue 11824 else 11825 prev= 11826 fi 11827 11828 if test "$pre_test_object_deps_done" = no; then 11829 case $p in 11830 -L* | -R*) 11831 # Internal compiler library paths should come after those 11832 # provided the user. The postdeps already come after the 11833 # user supplied libs so there is no need to process them. 11834 if test -z "$compiler_lib_search_path_CXX"; then 11835 compiler_lib_search_path_CXX="${prev}${p}" 11836 else 11837 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11838 fi 11839 ;; 11840 # The "-l" case would never come before the object being 11841 # linked, so don't bother handling this case. 11842 esac 11843 else 11844 if test -z "$postdeps_CXX"; then 11845 postdeps_CXX="${prev}${p}" 11846 else 11847 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11848 fi 11849 fi 11850 ;; 11851 11852 *.$objext) 11853 # This assumes that the test object file only shows up 11854 # once in the compiler output. 11855 if test "$p" = "conftest.$objext"; then 11856 pre_test_object_deps_done=yes 11857 continue 11858 fi 11859 11860 if test "$pre_test_object_deps_done" = no; then 11861 if test -z "$predep_objects_CXX"; then 11862 predep_objects_CXX="$p" 11863 else 11864 predep_objects_CXX="$predep_objects_CXX $p" 11865 fi 11866 else 11867 if test -z "$postdep_objects_CXX"; then 11868 postdep_objects_CXX="$p" 11869 else 11870 postdep_objects_CXX="$postdep_objects_CXX $p" 11871 fi 11872 fi 11873 ;; 11874 11875 *) ;; # Ignore the rest. 11876 11877 esac 11878 done 11879 11880 # Clean up. 11881 rm -f a.out a.exe 11882else 11883 echo "libtool.m4: error: problem compiling CXX test program" 11884fi 11885 11886$rm -f confest.$objext 11887 11888# PORTME: override above test on systems where it is broken 11889case $host_os in 11890interix3*) 11891 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11892 # hack all around it, let's just trust "g++" to DTRT. 11893 predep_objects_CXX= 11894 postdep_objects_CXX= 11895 postdeps_CXX= 11896 ;; 11897 11898solaris*) 11899 case $cc_basename in 11900 CC*) 11901 # Adding this requires a known-good setup of shared libraries for 11902 # Sun compiler versions before 5.6, else PIC objects from an old 11903 # archive will be linked into the output, leading to subtle bugs. 11904 postdeps_CXX='-lCstd -lCrun' 11905 ;; 11906 esac 11907 ;; 11908esac 11909 11910 11911case " $postdeps_CXX " in 11912*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11913esac 11914 11915lt_prog_compiler_wl_CXX= 11916lt_prog_compiler_pic_CXX= 11917lt_prog_compiler_static_CXX= 11918 11919{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11920echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11921 11922 # C++ specific cases for pic, static, wl, etc. 11923 if test "$GXX" = yes; then 11924 lt_prog_compiler_wl_CXX='-Wl,' 11925 lt_prog_compiler_static_CXX='-static' 11926 11927 case $host_os in 11928 aix*) 11929 # All AIX code is PIC. 11930 if test "$host_cpu" = ia64; then 11931 # AIX 5 now supports IA64 processor 11932 lt_prog_compiler_static_CXX='-Bstatic' 11933 fi 11934 ;; 11935 amigaos*) 11936 # FIXME: we need at least 68020 code to build shared libraries, but 11937 # adding the `-m68020' flag to GCC prevents building anything better, 11938 # like `-m68040'. 11939 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11940 ;; 11941 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11942 # PIC is the default for these OSes. 11943 ;; 11944 mingw* | os2* | pw32*) 11945 # This hack is so that the source file can tell whether it is being 11946 # built for inclusion in a dll (and should export symbols for example). 11947 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11948 ;; 11949 darwin* | rhapsody*) 11950 # PIC is the default on this platform 11951 # Common symbols not allowed in MH_DYLIB files 11952 lt_prog_compiler_pic_CXX='-fno-common' 11953 ;; 11954 *djgpp*) 11955 # DJGPP does not support shared libraries at all 11956 lt_prog_compiler_pic_CXX= 11957 ;; 11958 interix3*) 11959 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11960 # Instead, we relocate shared libraries at runtime. 11961 ;; 11962 sysv4*MP*) 11963 if test -d /usr/nec; then 11964 lt_prog_compiler_pic_CXX=-Kconform_pic 11965 fi 11966 ;; 11967 hpux*) 11968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11969 # not for PA HP-UX. 11970 case $host_cpu in 11971 hppa*64*|ia64*) 11972 ;; 11973 *) 11974 lt_prog_compiler_pic_CXX='-fPIC' 11975 ;; 11976 esac 11977 ;; 11978 *) 11979 lt_prog_compiler_pic_CXX='-fPIC' 11980 ;; 11981 esac 11982 else 11983 case $host_os in 11984 aix4* | aix5*) 11985 # All AIX code is PIC. 11986 if test "$host_cpu" = ia64; then 11987 # AIX 5 now supports IA64 processor 11988 lt_prog_compiler_static_CXX='-Bstatic' 11989 else 11990 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11991 fi 11992 ;; 11993 chorus*) 11994 case $cc_basename in 11995 cxch68*) 11996 # Green Hills C++ Compiler 11997 # _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" 11998 ;; 11999 esac 12000 ;; 12001 darwin*) 12002 # PIC is the default on this platform 12003 # Common symbols not allowed in MH_DYLIB files 12004 case $cc_basename in 12005 xlc*) 12006 lt_prog_compiler_pic_CXX='-qnocommon' 12007 lt_prog_compiler_wl_CXX='-Wl,' 12008 ;; 12009 esac 12010 ;; 12011 dgux*) 12012 case $cc_basename in 12013 ec++*) 12014 lt_prog_compiler_pic_CXX='-KPIC' 12015 ;; 12016 ghcx*) 12017 # Green Hills C++ Compiler 12018 lt_prog_compiler_pic_CXX='-pic' 12019 ;; 12020 *) 12021 ;; 12022 esac 12023 ;; 12024 freebsd* | kfreebsd*-gnu | dragonfly*) 12025 # FreeBSD uses GNU C++ 12026 ;; 12027 hpux9* | hpux10* | hpux11*) 12028 case $cc_basename in 12029 CC*) 12030 lt_prog_compiler_wl_CXX='-Wl,' 12031 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12032 if test "$host_cpu" != ia64; then 12033 lt_prog_compiler_pic_CXX='+Z' 12034 fi 12035 ;; 12036 aCC*) 12037 lt_prog_compiler_wl_CXX='-Wl,' 12038 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12039 case $host_cpu in 12040 hppa*64*|ia64*) 12041 # +Z the default 12042 ;; 12043 *) 12044 lt_prog_compiler_pic_CXX='+Z' 12045 ;; 12046 esac 12047 ;; 12048 *) 12049 ;; 12050 esac 12051 ;; 12052 interix*) 12053 # This is c89, which is MS Visual C++ (no shared libs) 12054 # Anyone wants to do a port? 12055 ;; 12056 irix5* | irix6* | nonstopux*) 12057 case $cc_basename in 12058 CC*) 12059 lt_prog_compiler_wl_CXX='-Wl,' 12060 lt_prog_compiler_static_CXX='-non_shared' 12061 # CC pic flag -KPIC is the default. 12062 ;; 12063 *) 12064 ;; 12065 esac 12066 ;; 12067 linux*) 12068 case $cc_basename in 12069 KCC*) 12070 # KAI C++ Compiler 12071 lt_prog_compiler_wl_CXX='--backend -Wl,' 12072 lt_prog_compiler_pic_CXX='-fPIC' 12073 ;; 12074 icpc* | ecpc*) 12075 # Intel C++ 12076 lt_prog_compiler_wl_CXX='-Wl,' 12077 lt_prog_compiler_pic_CXX='-KPIC' 12078 lt_prog_compiler_static_CXX='-static' 12079 ;; 12080 pgCC*) 12081 # Portland Group C++ compiler. 12082 lt_prog_compiler_wl_CXX='-Wl,' 12083 lt_prog_compiler_pic_CXX='-fpic' 12084 lt_prog_compiler_static_CXX='-Bstatic' 12085 ;; 12086 cxx*) 12087 # Compaq C++ 12088 # Make sure the PIC flag is empty. It appears that all Alpha 12089 # Linux and Compaq Tru64 Unix objects are PIC. 12090 lt_prog_compiler_pic_CXX= 12091 lt_prog_compiler_static_CXX='-non_shared' 12092 ;; 12093 *) 12094 ;; 12095 esac 12096 ;; 12097 lynxos*) 12098 ;; 12099 m88k*) 12100 ;; 12101 mvs*) 12102 case $cc_basename in 12103 cxx*) 12104 lt_prog_compiler_pic_CXX='-W c,exportall' 12105 ;; 12106 *) 12107 ;; 12108 esac 12109 ;; 12110 netbsd*) 12111 ;; 12112 osf3* | osf4* | osf5*) 12113 case $cc_basename in 12114 KCC*) 12115 lt_prog_compiler_wl_CXX='--backend -Wl,' 12116 ;; 12117 RCC*) 12118 # Rational C++ 2.4.1 12119 lt_prog_compiler_pic_CXX='-pic' 12120 ;; 12121 cxx*) 12122 # Digital/Compaq C++ 12123 lt_prog_compiler_wl_CXX='-Wl,' 12124 # Make sure the PIC flag is empty. It appears that all Alpha 12125 # Linux and Compaq Tru64 Unix objects are PIC. 12126 lt_prog_compiler_pic_CXX= 12127 lt_prog_compiler_static_CXX='-non_shared' 12128 ;; 12129 *) 12130 ;; 12131 esac 12132 ;; 12133 psos*) 12134 ;; 12135 solaris*) 12136 case $cc_basename in 12137 CC*) 12138 # Sun C++ 4.2, 5.x and Centerline C++ 12139 lt_prog_compiler_pic_CXX='-KPIC' 12140 lt_prog_compiler_static_CXX='-Bstatic' 12141 lt_prog_compiler_wl_CXX='-Qoption ld ' 12142 ;; 12143 gcx*) 12144 # Green Hills C++ Compiler 12145 lt_prog_compiler_pic_CXX='-PIC' 12146 ;; 12147 *) 12148 ;; 12149 esac 12150 ;; 12151 sunos4*) 12152 case $cc_basename in 12153 CC*) 12154 # Sun C++ 4.x 12155 lt_prog_compiler_pic_CXX='-pic' 12156 lt_prog_compiler_static_CXX='-Bstatic' 12157 ;; 12158 lcc*) 12159 # Lucid 12160 lt_prog_compiler_pic_CXX='-pic' 12161 ;; 12162 *) 12163 ;; 12164 esac 12165 ;; 12166 tandem*) 12167 case $cc_basename in 12168 NCC*) 12169 # NonStop-UX NCC 3.20 12170 lt_prog_compiler_pic_CXX='-KPIC' 12171 ;; 12172 *) 12173 ;; 12174 esac 12175 ;; 12176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12177 case $cc_basename in 12178 CC*) 12179 lt_prog_compiler_wl_CXX='-Wl,' 12180 lt_prog_compiler_pic_CXX='-KPIC' 12181 lt_prog_compiler_static_CXX='-Bstatic' 12182 ;; 12183 esac 12184 ;; 12185 vxworks*) 12186 ;; 12187 *) 12188 lt_prog_compiler_can_build_shared_CXX=no 12189 ;; 12190 esac 12191 fi 12192 12193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12194echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12195 12196# 12197# Check to make sure the PIC flag actually works. 12198# 12199if test -n "$lt_prog_compiler_pic_CXX"; then 12200 12201{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12202echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12203if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12204 echo $ECHO_N "(cached) $ECHO_C" >&6 12205else 12206 lt_prog_compiler_pic_works_CXX=no 12207 ac_outfile=conftest.$ac_objext 12208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12209 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12210 # Insert the option either (1) after the last *FLAGS variable, or 12211 # (2) before a word containing "conftest.", or (3) at the end. 12212 # Note that $ac_compile itself does not contain backslashes and begins 12213 # with a dollar sign (not a hyphen), so the echo should work correctly. 12214 # The option is referenced via a variable to avoid confusing sed. 12215 lt_compile=`echo "$ac_compile" | $SED \ 12216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12218 -e 's:$: $lt_compiler_flag:'` 12219 (eval echo "\"\$as_me:12219: $lt_compile\"" >&5) 12220 (eval "$lt_compile" 2>conftest.err) 12221 ac_status=$? 12222 cat conftest.err >&5 12223 echo "$as_me:12223: \$? = $ac_status" >&5 12224 if (exit $ac_status) && test -s "$ac_outfile"; then 12225 # The compiler can only warn and ignore the option if not recognized 12226 # So say no if there are warnings other than the usual output. 12227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12230 lt_prog_compiler_pic_works_CXX=yes 12231 fi 12232 fi 12233 $rm conftest* 12234 12235fi 12236{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12237echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12238 12239if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12240 case $lt_prog_compiler_pic_CXX in 12241 "" | " "*) ;; 12242 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12243 esac 12244else 12245 lt_prog_compiler_pic_CXX= 12246 lt_prog_compiler_can_build_shared_CXX=no 12247fi 12248 12249fi 12250case $host_os in 12251 # For platforms which do not support PIC, -DPIC is meaningless: 12252 *djgpp*) 12253 lt_prog_compiler_pic_CXX= 12254 ;; 12255 *) 12256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12257 ;; 12258esac 12259 12260# 12261# Check to make sure the static flag actually works. 12262# 12263wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12264{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12265echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12266if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12267 echo $ECHO_N "(cached) $ECHO_C" >&6 12268else 12269 lt_prog_compiler_static_works_CXX=no 12270 save_LDFLAGS="$LDFLAGS" 12271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12272 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12274 # The linker can only warn and ignore the option if not recognized 12275 # So say no if there are warnings 12276 if test -s conftest.err; then 12277 # Append any errors to the config.log. 12278 cat conftest.err 1>&5 12279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12281 if diff conftest.exp conftest.er2 >/dev/null; then 12282 lt_prog_compiler_static_works_CXX=yes 12283 fi 12284 else 12285 lt_prog_compiler_static_works_CXX=yes 12286 fi 12287 fi 12288 $rm conftest* 12289 LDFLAGS="$save_LDFLAGS" 12290 12291fi 12292{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12293echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12294 12295if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12296 : 12297else 12298 lt_prog_compiler_static_CXX= 12299fi 12300 12301 12302{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12304if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12305 echo $ECHO_N "(cached) $ECHO_C" >&6 12306else 12307 lt_cv_prog_compiler_c_o_CXX=no 12308 $rm -r conftest 2>/dev/null 12309 mkdir conftest 12310 cd conftest 12311 mkdir out 12312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12313 12314 lt_compiler_flag="-o out/conftest2.$ac_objext" 12315 # Insert the option either (1) after the last *FLAGS variable, or 12316 # (2) before a word containing "conftest.", or (3) at the end. 12317 # Note that $ac_compile itself does not contain backslashes and begins 12318 # with a dollar sign (not a hyphen), so the echo should work correctly. 12319 lt_compile=`echo "$ac_compile" | $SED \ 12320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12322 -e 's:$: $lt_compiler_flag:'` 12323 (eval echo "\"\$as_me:12323: $lt_compile\"" >&5) 12324 (eval "$lt_compile" 2>out/conftest.err) 12325 ac_status=$? 12326 cat out/conftest.err >&5 12327 echo "$as_me:12327: \$? = $ac_status" >&5 12328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12329 then 12330 # The compiler can only warn and ignore the option if not recognized 12331 # So say no if there are warnings 12332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12335 lt_cv_prog_compiler_c_o_CXX=yes 12336 fi 12337 fi 12338 chmod u+w . 2>&5 12339 $rm conftest* 12340 # SGI C++ compiler will create directory out/ii_files/ for 12341 # template instantiation 12342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12343 $rm out/* && rmdir out 12344 cd .. 12345 rmdir conftest 12346 $rm conftest* 12347 12348fi 12349{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12351 12352 12353hard_links="nottested" 12354if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12355 # do not overwrite the value of need_locks provided by the user 12356 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12358 hard_links=yes 12359 $rm conftest* 12360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12361 touch conftest.a 12362 ln conftest.a conftest.b 2>&5 || hard_links=no 12363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12364 { echo "$as_me:$LINENO: result: $hard_links" >&5 12365echo "${ECHO_T}$hard_links" >&6; } 12366 if test "$hard_links" = no; then 12367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12369 need_locks=warn 12370 fi 12371else 12372 need_locks=no 12373fi 12374 12375{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12377 12378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12379 case $host_os in 12380 aix4* | aix5*) 12381 # If we're using GNU nm, then we don't want the "-C" option. 12382 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12384 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' 12385 else 12386 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' 12387 fi 12388 ;; 12389 pw32*) 12390 export_symbols_cmds_CXX="$ltdll_cmds" 12391 ;; 12392 cygwin* | mingw*) 12393 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' 12394 ;; 12395 *) 12396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12397 ;; 12398 esac 12399 12400{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12401echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12402test "$ld_shlibs_CXX" = no && can_build_shared=no 12403 12404# 12405# Do we need to explicitly link libc? 12406# 12407case "x$archive_cmds_need_lc_CXX" in 12408x|xyes) 12409 # Assume -lc should be added 12410 archive_cmds_need_lc_CXX=yes 12411 12412 if test "$enable_shared" = yes && test "$GCC" = yes; then 12413 case $archive_cmds_CXX in 12414 *'~'*) 12415 # FIXME: we may have to deal with multi-command sequences. 12416 ;; 12417 '$CC '*) 12418 # Test whether the compiler implicitly links with -lc since on some 12419 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12420 # to ld, don't add -lc before -lgcc. 12421 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12422echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12423 $rm conftest* 12424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12425 12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12427 (eval $ac_compile) 2>&5 12428 ac_status=$? 12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12430 (exit $ac_status); } 2>conftest.err; then 12431 soname=conftest 12432 lib=conftest 12433 libobjs=conftest.$ac_objext 12434 deplibs= 12435 wl=$lt_prog_compiler_wl_CXX 12436 pic_flag=$lt_prog_compiler_pic_CXX 12437 compiler_flags=-v 12438 linker_flags=-v 12439 verstring= 12440 output_objdir=. 12441 libname=conftest 12442 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12443 allow_undefined_flag_CXX= 12444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12445 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12446 ac_status=$? 12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12448 (exit $ac_status); } 12449 then 12450 archive_cmds_need_lc_CXX=no 12451 else 12452 archive_cmds_need_lc_CXX=yes 12453 fi 12454 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12455 else 12456 cat conftest.err 1>&5 12457 fi 12458 $rm conftest* 12459 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12460echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12461 ;; 12462 esac 12463 fi 12464 ;; 12465esac 12466 12467{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12468echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12469library_names_spec= 12470libname_spec='lib$name' 12471soname_spec= 12472shrext_cmds=".so" 12473postinstall_cmds= 12474postuninstall_cmds= 12475finish_cmds= 12476finish_eval= 12477shlibpath_var= 12478shlibpath_overrides_runpath=unknown 12479version_type=none 12480dynamic_linker="$host_os ld.so" 12481sys_lib_dlsearch_path_spec="/lib /usr/lib" 12482if test "$GCC" = yes; then 12483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12484 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12485 # if the path contains ";" then we assume it to be the separator 12486 # otherwise default to the standard path separator (i.e. ":") - it is 12487 # assumed that no part of a normal pathname contains ";" but that should 12488 # okay in the real world where ";" in dirpaths is itself problematic. 12489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12490 else 12491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12492 fi 12493else 12494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12495fi 12496need_lib_prefix=unknown 12497hardcode_into_libs=no 12498 12499# when you set need_version to no, make sure it does not cause -set_version 12500# flags to be left without arguments 12501need_version=unknown 12502 12503case $host_os in 12504aix3*) 12505 version_type=linux 12506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12507 shlibpath_var=LIBPATH 12508 12509 # AIX 3 has no versioning support, so we append a major version to the name. 12510 soname_spec='${libname}${release}${shared_ext}$major' 12511 ;; 12512 12513aix4* | aix5*) 12514 version_type=linux 12515 need_lib_prefix=no 12516 need_version=no 12517 hardcode_into_libs=yes 12518 if test "$host_cpu" = ia64; then 12519 # AIX 5 supports IA64 12520 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 else 12523 # With GCC up to 2.95.x, collect2 would create an import file 12524 # for dependence libraries. The import file would start with 12525 # the line `#! .'. This would cause the generated library to 12526 # depend on `.', always an invalid library. This was fixed in 12527 # development snapshots of GCC prior to 3.0. 12528 case $host_os in 12529 aix4 | aix4.[01] | aix4.[01].*) 12530 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12531 echo ' yes ' 12532 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12533 : 12534 else 12535 can_build_shared=no 12536 fi 12537 ;; 12538 esac 12539 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12540 # soname into executable. Probably we can add versioning support to 12541 # collect2, so additional links can be useful in future. 12542 if test "$aix_use_runtimelinking" = yes; then 12543 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12544 # instead of lib<name>.a to let people know that these are not 12545 # typical AIX shared libraries. 12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12547 else 12548 # We preserve .a as extension for shared libraries through AIX4.2 12549 # and later when we are not doing run time linking. 12550 library_names_spec='${libname}${release}.a $libname.a' 12551 soname_spec='${libname}${release}${shared_ext}$major' 12552 fi 12553 shlibpath_var=LIBPATH 12554 fi 12555 ;; 12556 12557amigaos*) 12558 library_names_spec='$libname.ixlibrary $libname.a' 12559 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12560 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' 12561 ;; 12562 12563beos*) 12564 library_names_spec='${libname}${shared_ext}' 12565 dynamic_linker="$host_os ld.so" 12566 shlibpath_var=LIBRARY_PATH 12567 ;; 12568 12569bsdi[45]*) 12570 version_type=linux 12571 need_version=no 12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12573 soname_spec='${libname}${release}${shared_ext}$major' 12574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12575 shlibpath_var=LD_LIBRARY_PATH 12576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12578 # the default ld.so.conf also contains /usr/contrib/lib and 12579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12580 # libtool to hard-code these into programs 12581 ;; 12582 12583cygwin* | mingw* | pw32*) 12584 version_type=windows 12585 shrext_cmds=".dll" 12586 need_version=no 12587 need_lib_prefix=no 12588 12589 case $GCC,$host_os in 12590 yes,cygwin* | yes,mingw* | yes,pw32*) 12591 library_names_spec='$libname.dll.a' 12592 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12593 postinstall_cmds='base_file=`basename \${file}`~ 12594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12595 dldir=$destdir/`dirname \$dlpath`~ 12596 test -d \$dldir || mkdir -p \$dldir~ 12597 $install_prog $dir/$dlname \$dldir/$dlname~ 12598 chmod a+x \$dldir/$dlname' 12599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12600 dlpath=$dir/\$dldll~ 12601 $rm \$dlpath' 12602 shlibpath_overrides_runpath=yes 12603 12604 case $host_os in 12605 cygwin*) 12606 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12608 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12609 ;; 12610 mingw*) 12611 # MinGW DLLs use traditional 'lib' prefix 12612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12614 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12615 # It is most probably a Windows format PATH printed by 12616 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12617 # path with ; separators, and with drive letters. We can handle the 12618 # drive letters (cygwin fileutils understands them), so leave them, 12619 # especially as we might pass files found there to a mingw objdump, 12620 # which wouldn't understand a cygwinified path. Ahh. 12621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12622 else 12623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12624 fi 12625 ;; 12626 pw32*) 12627 # pw32 DLLs use 'pw' prefix rather than 'lib' 12628 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12629 ;; 12630 esac 12631 ;; 12632 12633 *) 12634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12635 ;; 12636 esac 12637 dynamic_linker='Win32 ld.exe' 12638 # FIXME: first we should search . and the directory the executable is in 12639 shlibpath_var=PATH 12640 ;; 12641 12642darwin* | rhapsody*) 12643 dynamic_linker="$host_os dyld" 12644 version_type=darwin 12645 need_lib_prefix=no 12646 need_version=no 12647 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12648 soname_spec='${libname}${release}${major}$shared_ext' 12649 shlibpath_overrides_runpath=yes 12650 shlibpath_var=DYLD_LIBRARY_PATH 12651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12652 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12653 if test "$GCC" = yes; then 12654 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12655 else 12656 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12657 fi 12658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12659 ;; 12660 12661dgux*) 12662 version_type=linux 12663 need_lib_prefix=no 12664 need_version=no 12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12666 soname_spec='${libname}${release}${shared_ext}$major' 12667 shlibpath_var=LD_LIBRARY_PATH 12668 ;; 12669 12670freebsd1*) 12671 dynamic_linker=no 12672 ;; 12673 12674kfreebsd*-gnu) 12675 version_type=linux 12676 need_lib_prefix=no 12677 need_version=no 12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12679 soname_spec='${libname}${release}${shared_ext}$major' 12680 shlibpath_var=LD_LIBRARY_PATH 12681 shlibpath_overrides_runpath=no 12682 hardcode_into_libs=yes 12683 dynamic_linker='GNU ld.so' 12684 ;; 12685 12686freebsd* | dragonfly*) 12687 # DragonFly does not have aout. When/if they implement a new 12688 # versioning mechanism, adjust this. 12689 if test -x /usr/bin/objformat; then 12690 objformat=`/usr/bin/objformat` 12691 else 12692 case $host_os in 12693 freebsd[123]*) objformat=aout ;; 12694 *) objformat=elf ;; 12695 esac 12696 fi 12697 version_type=freebsd-$objformat 12698 case $version_type in 12699 freebsd-elf*) 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12701 need_version=no 12702 need_lib_prefix=no 12703 ;; 12704 freebsd-*) 12705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12706 need_version=yes 12707 ;; 12708 esac 12709 shlibpath_var=LD_LIBRARY_PATH 12710 case $host_os in 12711 freebsd2*) 12712 shlibpath_overrides_runpath=yes 12713 ;; 12714 freebsd3.[01]* | freebsdelf3.[01]*) 12715 shlibpath_overrides_runpath=yes 12716 hardcode_into_libs=yes 12717 ;; 12718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12720 shlibpath_overrides_runpath=no 12721 hardcode_into_libs=yes 12722 ;; 12723 freebsd*) # from 4.6 on 12724 shlibpath_overrides_runpath=yes 12725 hardcode_into_libs=yes 12726 ;; 12727 esac 12728 ;; 12729 12730gnu*) 12731 version_type=linux 12732 need_lib_prefix=no 12733 need_version=no 12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12735 soname_spec='${libname}${release}${shared_ext}$major' 12736 shlibpath_var=LD_LIBRARY_PATH 12737 hardcode_into_libs=yes 12738 ;; 12739 12740hpux9* | hpux10* | hpux11*) 12741 # Give a soname corresponding to the major version so that dld.sl refuses to 12742 # link against other versions. 12743 version_type=sunos 12744 need_lib_prefix=no 12745 need_version=no 12746 case $host_cpu in 12747 ia64*) 12748 shrext_cmds='.so' 12749 hardcode_into_libs=yes 12750 dynamic_linker="$host_os dld.so" 12751 shlibpath_var=LD_LIBRARY_PATH 12752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12754 soname_spec='${libname}${release}${shared_ext}$major' 12755 if test "X$HPUX_IA64_MODE" = X32; then 12756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12757 else 12758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12759 fi 12760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12761 ;; 12762 hppa*64*) 12763 shrext_cmds='.sl' 12764 hardcode_into_libs=yes 12765 dynamic_linker="$host_os dld.sl" 12766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12769 soname_spec='${libname}${release}${shared_ext}$major' 12770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12772 ;; 12773 *) 12774 shrext_cmds='.sl' 12775 dynamic_linker="$host_os dld.sl" 12776 shlibpath_var=SHLIB_PATH 12777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12779 soname_spec='${libname}${release}${shared_ext}$major' 12780 ;; 12781 esac 12782 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12783 postinstall_cmds='chmod 555 $lib' 12784 ;; 12785 12786interix3*) 12787 version_type=linux 12788 need_lib_prefix=no 12789 need_version=no 12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12791 soname_spec='${libname}${release}${shared_ext}$major' 12792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12793 shlibpath_var=LD_LIBRARY_PATH 12794 shlibpath_overrides_runpath=no 12795 hardcode_into_libs=yes 12796 ;; 12797 12798irix5* | irix6* | nonstopux*) 12799 case $host_os in 12800 nonstopux*) version_type=nonstopux ;; 12801 *) 12802 if test "$lt_cv_prog_gnu_ld" = yes; then 12803 version_type=linux 12804 else 12805 version_type=irix 12806 fi ;; 12807 esac 12808 need_lib_prefix=no 12809 need_version=no 12810 soname_spec='${libname}${release}${shared_ext}$major' 12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12812 case $host_os in 12813 irix5* | nonstopux*) 12814 libsuff= shlibsuff= 12815 ;; 12816 *) 12817 case $LD in # libtool.m4 will add one of these switches to LD 12818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12819 libsuff= shlibsuff= libmagic=32-bit;; 12820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12821 libsuff=32 shlibsuff=N32 libmagic=N32;; 12822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12823 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12824 *) libsuff= shlibsuff= libmagic=never-match;; 12825 esac 12826 ;; 12827 esac 12828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12829 shlibpath_overrides_runpath=no 12830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12832 hardcode_into_libs=yes 12833 ;; 12834 12835# No shared lib support for Linux oldld, aout, or coff. 12836linux*oldld* | linux*aout* | linux*coff*) 12837 dynamic_linker=no 12838 ;; 12839 12840# This must be Linux ELF. 12841linux*) 12842 version_type=linux 12843 need_lib_prefix=no 12844 need_version=no 12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12846 soname_spec='${libname}${release}${shared_ext}$major' 12847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12848 shlibpath_var=LD_LIBRARY_PATH 12849 shlibpath_overrides_runpath=no 12850 # This implies no fast_install, which is unacceptable. 12851 # Some rework will be needed to allow for fast_install 12852 # before this can be enabled. 12853 hardcode_into_libs=yes 12854 12855 # Append ld.so.conf contents to the search path 12856 if test -f /etc/ld.so.conf; then 12857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12858 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12859 fi 12860 12861 # We used to test for /lib/ld.so.1 and disable shared libraries on 12862 # powerpc, because MkLinux only supported shared libraries with the 12863 # GNU dynamic linker. Since this was broken with cross compilers, 12864 # most powerpc-linux boxes support dynamic linking these days and 12865 # people can always --disable-shared, the test was removed, and we 12866 # assume the GNU/Linux dynamic linker is in use. 12867 dynamic_linker='GNU/Linux ld.so' 12868 ;; 12869 12870knetbsd*-gnu) 12871 version_type=linux 12872 need_lib_prefix=no 12873 need_version=no 12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12875 soname_spec='${libname}${release}${shared_ext}$major' 12876 shlibpath_var=LD_LIBRARY_PATH 12877 shlibpath_overrides_runpath=no 12878 hardcode_into_libs=yes 12879 dynamic_linker='GNU ld.so' 12880 ;; 12881 12882netbsd*) 12883 version_type=sunos 12884 need_lib_prefix=no 12885 need_version=no 12886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12889 dynamic_linker='NetBSD (a.out) ld.so' 12890 else 12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12892 soname_spec='${libname}${release}${shared_ext}$major' 12893 dynamic_linker='NetBSD ld.elf_so' 12894 fi 12895 shlibpath_var=LD_LIBRARY_PATH 12896 shlibpath_overrides_runpath=yes 12897 hardcode_into_libs=yes 12898 ;; 12899 12900newsos6) 12901 version_type=linux 12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12903 shlibpath_var=LD_LIBRARY_PATH 12904 shlibpath_overrides_runpath=yes 12905 ;; 12906 12907nto-qnx*) 12908 version_type=linux 12909 need_lib_prefix=no 12910 need_version=no 12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12912 soname_spec='${libname}${release}${shared_ext}$major' 12913 shlibpath_var=LD_LIBRARY_PATH 12914 shlibpath_overrides_runpath=yes 12915 ;; 12916 12917openbsd*) 12918 version_type=sunos 12919 sys_lib_dlsearch_path_spec="/usr/lib" 12920 need_lib_prefix=no 12921 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12922 case $host_os in 12923 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12924 *) need_version=no ;; 12925 esac 12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12928 shlibpath_var=LD_LIBRARY_PATH 12929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12930 case $host_os in 12931 openbsd2.[89] | openbsd2.[89].*) 12932 shlibpath_overrides_runpath=no 12933 ;; 12934 *) 12935 shlibpath_overrides_runpath=yes 12936 ;; 12937 esac 12938 else 12939 shlibpath_overrides_runpath=yes 12940 fi 12941 ;; 12942 12943os2*) 12944 libname_spec='$name' 12945 shrext_cmds=".dll" 12946 need_lib_prefix=no 12947 library_names_spec='$libname${shared_ext} $libname.a' 12948 dynamic_linker='OS/2 ld.exe' 12949 shlibpath_var=LIBPATH 12950 ;; 12951 12952osf3* | osf4* | osf5*) 12953 version_type=osf 12954 need_lib_prefix=no 12955 need_version=no 12956 soname_spec='${libname}${release}${shared_ext}$major' 12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12960 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12961 ;; 12962 12963solaris*) 12964 version_type=linux 12965 need_lib_prefix=no 12966 need_version=no 12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12968 soname_spec='${libname}${release}${shared_ext}$major' 12969 shlibpath_var=LD_LIBRARY_PATH 12970 shlibpath_overrides_runpath=yes 12971 hardcode_into_libs=yes 12972 # ldd complains unless libraries are executable 12973 postinstall_cmds='chmod +x $lib' 12974 ;; 12975 12976sunos4*) 12977 version_type=sunos 12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12980 shlibpath_var=LD_LIBRARY_PATH 12981 shlibpath_overrides_runpath=yes 12982 if test "$with_gnu_ld" = yes; then 12983 need_lib_prefix=no 12984 fi 12985 need_version=yes 12986 ;; 12987 12988sysv4 | sysv4.3*) 12989 version_type=linux 12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12991 soname_spec='${libname}${release}${shared_ext}$major' 12992 shlibpath_var=LD_LIBRARY_PATH 12993 case $host_vendor in 12994 sni) 12995 shlibpath_overrides_runpath=no 12996 need_lib_prefix=no 12997 export_dynamic_flag_spec='${wl}-Blargedynsym' 12998 runpath_var=LD_RUN_PATH 12999 ;; 13000 siemens) 13001 need_lib_prefix=no 13002 ;; 13003 motorola) 13004 need_lib_prefix=no 13005 need_version=no 13006 shlibpath_overrides_runpath=no 13007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13008 ;; 13009 esac 13010 ;; 13011 13012sysv4*MP*) 13013 if test -d /usr/nec ;then 13014 version_type=linux 13015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13016 soname_spec='$libname${shared_ext}.$major' 13017 shlibpath_var=LD_LIBRARY_PATH 13018 fi 13019 ;; 13020 13021sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13022 version_type=freebsd-elf 13023 need_lib_prefix=no 13024 need_version=no 13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13026 soname_spec='${libname}${release}${shared_ext}$major' 13027 shlibpath_var=LD_LIBRARY_PATH 13028 hardcode_into_libs=yes 13029 if test "$with_gnu_ld" = yes; then 13030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13031 shlibpath_overrides_runpath=no 13032 else 13033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13034 shlibpath_overrides_runpath=yes 13035 case $host_os in 13036 sco3.2v5*) 13037 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13038 ;; 13039 esac 13040 fi 13041 sys_lib_dlsearch_path_spec='/usr/lib' 13042 ;; 13043 13044uts4*) 13045 version_type=linux 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13047 soname_spec='${libname}${release}${shared_ext}$major' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 ;; 13050 13051*) 13052 dynamic_linker=no 13053 ;; 13054esac 13055{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13056echo "${ECHO_T}$dynamic_linker" >&6; } 13057test "$dynamic_linker" = no && can_build_shared=no 13058 13059variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13060if test "$GCC" = yes; then 13061 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13062fi 13063 13064{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13065echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13066hardcode_action_CXX= 13067if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13068 test -n "$runpath_var_CXX" || \ 13069 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13070 13071 # We can hardcode non-existant directories. 13072 if test "$hardcode_direct_CXX" != no && 13073 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13074 # have to relink, otherwise we might link with an installed library 13075 # when we should be linking with a yet-to-be-installed one 13076 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13077 test "$hardcode_minus_L_CXX" != no; then 13078 # Linking always hardcodes the temporary library directory. 13079 hardcode_action_CXX=relink 13080 else 13081 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13082 hardcode_action_CXX=immediate 13083 fi 13084else 13085 # We cannot hardcode anything, or else we can only hardcode existing 13086 # directories. 13087 hardcode_action_CXX=unsupported 13088fi 13089{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13090echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13091 13092if test "$hardcode_action_CXX" = relink; then 13093 # Fast installation is not supported 13094 enable_fast_install=no 13095elif test "$shlibpath_overrides_runpath" = yes || 13096 test "$enable_shared" = no; then 13097 # Fast installation is not necessary 13098 enable_fast_install=needless 13099fi 13100 13101 13102# The else clause should only fire when bootstrapping the 13103# libtool distribution, otherwise you forgot to ship ltmain.sh 13104# with your package, and you will get complaints that there are 13105# no rules to generate ltmain.sh. 13106if test -f "$ltmain"; then 13107 # See if we are running on zsh, and set the options which allow our commands through 13108 # without removal of \ escapes. 13109 if test -n "${ZSH_VERSION+set}" ; then 13110 setopt NO_GLOB_SUBST 13111 fi 13112 # Now quote all the things that may contain metacharacters while being 13113 # careful not to overquote the AC_SUBSTed values. We take copies of the 13114 # variables and quote the copies for generation of the libtool script. 13115 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13116 SED SHELL STRIP \ 13117 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13118 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13119 deplibs_check_method reload_flag reload_cmds need_locks \ 13120 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13121 lt_cv_sys_global_symbol_to_c_name_address \ 13122 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13123 old_postinstall_cmds old_postuninstall_cmds \ 13124 compiler_CXX \ 13125 CC_CXX \ 13126 LD_CXX \ 13127 lt_prog_compiler_wl_CXX \ 13128 lt_prog_compiler_pic_CXX \ 13129 lt_prog_compiler_static_CXX \ 13130 lt_prog_compiler_no_builtin_flag_CXX \ 13131 export_dynamic_flag_spec_CXX \ 13132 thread_safe_flag_spec_CXX \ 13133 whole_archive_flag_spec_CXX \ 13134 enable_shared_with_static_runtimes_CXX \ 13135 old_archive_cmds_CXX \ 13136 old_archive_from_new_cmds_CXX \ 13137 predep_objects_CXX \ 13138 postdep_objects_CXX \ 13139 predeps_CXX \ 13140 postdeps_CXX \ 13141 compiler_lib_search_path_CXX \ 13142 archive_cmds_CXX \ 13143 archive_expsym_cmds_CXX \ 13144 postinstall_cmds_CXX \ 13145 postuninstall_cmds_CXX \ 13146 old_archive_from_expsyms_cmds_CXX \ 13147 allow_undefined_flag_CXX \ 13148 no_undefined_flag_CXX \ 13149 export_symbols_cmds_CXX \ 13150 hardcode_libdir_flag_spec_CXX \ 13151 hardcode_libdir_flag_spec_ld_CXX \ 13152 hardcode_libdir_separator_CXX \ 13153 hardcode_automatic_CXX \ 13154 module_cmds_CXX \ 13155 module_expsym_cmds_CXX \ 13156 lt_cv_prog_compiler_c_o_CXX \ 13157 exclude_expsyms_CXX \ 13158 include_expsyms_CXX; do 13159 13160 case $var in 13161 old_archive_cmds_CXX | \ 13162 old_archive_from_new_cmds_CXX | \ 13163 archive_cmds_CXX | \ 13164 archive_expsym_cmds_CXX | \ 13165 module_cmds_CXX | \ 13166 module_expsym_cmds_CXX | \ 13167 old_archive_from_expsyms_cmds_CXX | \ 13168 export_symbols_cmds_CXX | \ 13169 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13170 postinstall_cmds | postuninstall_cmds | \ 13171 old_postinstall_cmds | old_postuninstall_cmds | \ 13172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13173 # Double-quote double-evaled strings. 13174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13175 ;; 13176 *) 13177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13178 ;; 13179 esac 13180 done 13181 13182 case $lt_echo in 13183 *'\$0 --fallback-echo"') 13184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13185 ;; 13186 esac 13187 13188cfgfile="$ofile" 13189 13190 cat <<__EOF__ >> "$cfgfile" 13191# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13192 13193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13194 13195# Shell to use when invoking shell scripts. 13196SHELL=$lt_SHELL 13197 13198# Whether or not to build shared libraries. 13199build_libtool_libs=$enable_shared 13200 13201# Whether or not to build static libraries. 13202build_old_libs=$enable_static 13203 13204# Whether or not to add -lc for building shared libraries. 13205build_libtool_need_lc=$archive_cmds_need_lc_CXX 13206 13207# Whether or not to disallow shared libs when runtime libs are static 13208allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13209 13210# Whether or not to optimize for fast installation. 13211fast_install=$enable_fast_install 13212 13213# The host system. 13214host_alias=$host_alias 13215host=$host 13216host_os=$host_os 13217 13218# The build system. 13219build_alias=$build_alias 13220build=$build 13221build_os=$build_os 13222 13223# An echo program that does not interpret backslashes. 13224echo=$lt_echo 13225 13226# The archiver. 13227AR=$lt_AR 13228AR_FLAGS=$lt_AR_FLAGS 13229 13230# A C compiler. 13231LTCC=$lt_LTCC 13232 13233# LTCC compiler flags. 13234LTCFLAGS=$lt_LTCFLAGS 13235 13236# A language-specific compiler. 13237CC=$lt_compiler_CXX 13238 13239# Is the compiler the GNU C compiler? 13240with_gcc=$GCC_CXX 13241 13242# An ERE matcher. 13243EGREP=$lt_EGREP 13244 13245# The linker used to build libraries. 13246LD=$lt_LD_CXX 13247 13248# Whether we need hard or soft links. 13249LN_S=$lt_LN_S 13250 13251# A BSD-compatible nm program. 13252NM=$lt_NM 13253 13254# A symbol stripping program 13255STRIP=$lt_STRIP 13256 13257# Used to examine libraries when file_magic_cmd begins "file" 13258MAGIC_CMD=$MAGIC_CMD 13259 13260# Used on cygwin: DLL creation program. 13261DLLTOOL="$DLLTOOL" 13262 13263# Used on cygwin: object dumper. 13264OBJDUMP="$OBJDUMP" 13265 13266# Used on cygwin: assembler. 13267AS="$AS" 13268 13269# The name of the directory that contains temporary libtool files. 13270objdir=$objdir 13271 13272# How to create reloadable object files. 13273reload_flag=$lt_reload_flag 13274reload_cmds=$lt_reload_cmds 13275 13276# How to pass a linker flag through the compiler. 13277wl=$lt_lt_prog_compiler_wl_CXX 13278 13279# Object file suffix (normally "o"). 13280objext="$ac_objext" 13281 13282# Old archive suffix (normally "a"). 13283libext="$libext" 13284 13285# Shared library suffix (normally ".so"). 13286shrext_cmds='$shrext_cmds' 13287 13288# Executable file suffix (normally ""). 13289exeext="$exeext" 13290 13291# Additional compiler flags for building library objects. 13292pic_flag=$lt_lt_prog_compiler_pic_CXX 13293pic_mode=$pic_mode 13294 13295# What is the maximum length of a command? 13296max_cmd_len=$lt_cv_sys_max_cmd_len 13297 13298# Does compiler simultaneously support -c and -o options? 13299compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13300 13301# Must we lock files when doing compilation? 13302need_locks=$lt_need_locks 13303 13304# Do we need the lib prefix for modules? 13305need_lib_prefix=$need_lib_prefix 13306 13307# Do we need a version for libraries? 13308need_version=$need_version 13309 13310# Whether dlopen is supported. 13311dlopen_support=$enable_dlopen 13312 13313# Whether dlopen of programs is supported. 13314dlopen_self=$enable_dlopen_self 13315 13316# Whether dlopen of statically linked programs is supported. 13317dlopen_self_static=$enable_dlopen_self_static 13318 13319# Compiler flag to prevent dynamic linking. 13320link_static_flag=$lt_lt_prog_compiler_static_CXX 13321 13322# Compiler flag to turn off builtin functions. 13323no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13324 13325# Compiler flag to allow reflexive dlopens. 13326export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13327 13328# Compiler flag to generate shared objects directly from archives. 13329whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13330 13331# Compiler flag to generate thread-safe objects. 13332thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13333 13334# Library versioning type. 13335version_type=$version_type 13336 13337# Format of library name prefix. 13338libname_spec=$lt_libname_spec 13339 13340# List of archive names. First name is the real one, the rest are links. 13341# The last name is the one that the linker finds with -lNAME. 13342library_names_spec=$lt_library_names_spec 13343 13344# The coded name of the library, if different from the real name. 13345soname_spec=$lt_soname_spec 13346 13347# Commands used to build and install an old-style archive. 13348RANLIB=$lt_RANLIB 13349old_archive_cmds=$lt_old_archive_cmds_CXX 13350old_postinstall_cmds=$lt_old_postinstall_cmds 13351old_postuninstall_cmds=$lt_old_postuninstall_cmds 13352 13353# Create an old-style archive from a shared archive. 13354old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13355 13356# Create a temporary old-style archive to link instead of a shared archive. 13357old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13358 13359# Commands used to build and install a shared archive. 13360archive_cmds=$lt_archive_cmds_CXX 13361archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13362postinstall_cmds=$lt_postinstall_cmds 13363postuninstall_cmds=$lt_postuninstall_cmds 13364 13365# Commands used to build a loadable module (assumed same as above if empty) 13366module_cmds=$lt_module_cmds_CXX 13367module_expsym_cmds=$lt_module_expsym_cmds_CXX 13368 13369# Commands to strip libraries. 13370old_striplib=$lt_old_striplib 13371striplib=$lt_striplib 13372 13373# Dependencies to place before the objects being linked to create a 13374# shared library. 13375predep_objects=$lt_predep_objects_CXX 13376 13377# Dependencies to place after the objects being linked to create a 13378# shared library. 13379postdep_objects=$lt_postdep_objects_CXX 13380 13381# Dependencies to place before the objects being linked to create a 13382# shared library. 13383predeps=$lt_predeps_CXX 13384 13385# Dependencies to place after the objects being linked to create a 13386# shared library. 13387postdeps=$lt_postdeps_CXX 13388 13389# The library search path used internally by the compiler when linking 13390# a shared library. 13391compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13392 13393# Method to check whether dependent libraries are shared objects. 13394deplibs_check_method=$lt_deplibs_check_method 13395 13396# Command to use when deplibs_check_method == file_magic. 13397file_magic_cmd=$lt_file_magic_cmd 13398 13399# Flag that allows shared libraries with undefined symbols to be built. 13400allow_undefined_flag=$lt_allow_undefined_flag_CXX 13401 13402# Flag that forces no undefined symbols. 13403no_undefined_flag=$lt_no_undefined_flag_CXX 13404 13405# Commands used to finish a libtool library installation in a directory. 13406finish_cmds=$lt_finish_cmds 13407 13408# Same as above, but a single script fragment to be evaled but not shown. 13409finish_eval=$lt_finish_eval 13410 13411# Take the output of nm and produce a listing of raw symbols and C names. 13412global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13413 13414# Transform the output of nm in a proper C declaration 13415global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13416 13417# Transform the output of nm in a C name address pair 13418global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13419 13420# This is the shared library runtime path variable. 13421runpath_var=$runpath_var 13422 13423# This is the shared library path variable. 13424shlibpath_var=$shlibpath_var 13425 13426# Is shlibpath searched before the hard-coded library search path? 13427shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13428 13429# How to hardcode a shared library path into an executable. 13430hardcode_action=$hardcode_action_CXX 13431 13432# Whether we should hardcode library paths into libraries. 13433hardcode_into_libs=$hardcode_into_libs 13434 13435# Flag to hardcode \$libdir into a binary during linking. 13436# This must work even if \$libdir does not exist. 13437hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13438 13439# If ld is used when linking, flag to hardcode \$libdir into 13440# a binary during linking. This must work even if \$libdir does 13441# not exist. 13442hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13443 13444# Whether we need a single -rpath flag with a separated argument. 13445hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13446 13447# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13448# resulting binary. 13449hardcode_direct=$hardcode_direct_CXX 13450 13451# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13452# resulting binary. 13453hardcode_minus_L=$hardcode_minus_L_CXX 13454 13455# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13456# the resulting binary. 13457hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13458 13459# Set to yes if building a shared library automatically hardcodes DIR into the library 13460# and all subsequent libraries and executables linked against it. 13461hardcode_automatic=$hardcode_automatic_CXX 13462 13463# Variables whose values should be saved in libtool wrapper scripts and 13464# restored at relink time. 13465variables_saved_for_relink="$variables_saved_for_relink" 13466 13467# Whether libtool must link a program against all its dependency libraries. 13468link_all_deplibs=$link_all_deplibs_CXX 13469 13470# Compile-time system search path for libraries 13471sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13472 13473# Run-time system search path for libraries 13474sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13475 13476# Fix the shell variable \$srcfile for the compiler. 13477fix_srcfile_path="$fix_srcfile_path_CXX" 13478 13479# Set to yes if exported symbols are required. 13480always_export_symbols=$always_export_symbols_CXX 13481 13482# The commands to list exported symbols. 13483export_symbols_cmds=$lt_export_symbols_cmds_CXX 13484 13485# The commands to extract the exported symbol list from a shared archive. 13486extract_expsyms_cmds=$lt_extract_expsyms_cmds 13487 13488# Symbols that should not be listed in the preloaded symbols. 13489exclude_expsyms=$lt_exclude_expsyms_CXX 13490 13491# Symbols that must always be exported. 13492include_expsyms=$lt_include_expsyms_CXX 13493 13494# ### END LIBTOOL TAG CONFIG: $tagname 13495 13496__EOF__ 13497 13498 13499else 13500 # If there is no Makefile yet, we rely on a make rule to execute 13501 # `config.status --recheck' to rerun these tests and create the 13502 # libtool script then. 13503 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13504 if test -f "$ltmain_in"; then 13505 test -f Makefile && make "$ltmain" 13506 fi 13507fi 13508 13509 13510ac_ext=c 13511ac_cpp='$CPP $CPPFLAGS' 13512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13514ac_compiler_gnu=$ac_cv_c_compiler_gnu 13515 13516CC=$lt_save_CC 13517LDCXX=$LD 13518LD=$lt_save_LD 13519GCC=$lt_save_GCC 13520with_gnu_ldcxx=$with_gnu_ld 13521with_gnu_ld=$lt_save_with_gnu_ld 13522lt_cv_path_LDCXX=$lt_cv_path_LD 13523lt_cv_path_LD=$lt_save_path_LD 13524lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13525lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13526 13527 else 13528 tagname="" 13529 fi 13530 ;; 13531 13532 F77) 13533 if test -n "$F77" && test "X$F77" != "Xno"; then 13534 13535ac_ext=f 13536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13538ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13539 13540 13541archive_cmds_need_lc_F77=no 13542allow_undefined_flag_F77= 13543always_export_symbols_F77=no 13544archive_expsym_cmds_F77= 13545export_dynamic_flag_spec_F77= 13546hardcode_direct_F77=no 13547hardcode_libdir_flag_spec_F77= 13548hardcode_libdir_flag_spec_ld_F77= 13549hardcode_libdir_separator_F77= 13550hardcode_minus_L_F77=no 13551hardcode_automatic_F77=no 13552module_cmds_F77= 13553module_expsym_cmds_F77= 13554link_all_deplibs_F77=unknown 13555old_archive_cmds_F77=$old_archive_cmds 13556no_undefined_flag_F77= 13557whole_archive_flag_spec_F77= 13558enable_shared_with_static_runtimes_F77=no 13559 13560# Source file extension for f77 test sources. 13561ac_ext=f 13562 13563# Object file extension for compiled f77 test sources. 13564objext=o 13565objext_F77=$objext 13566 13567# Code to be used in simple compile tests 13568lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13569 13570# Code to be used in simple link tests 13571lt_simple_link_test_code=" program t\n end\n" 13572 13573# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13574 13575# If no C compiler was specified, use CC. 13576LTCC=${LTCC-"$CC"} 13577 13578# If no C compiler flags were specified, use CFLAGS. 13579LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13580 13581# Allow CC to be a program name with arguments. 13582compiler=$CC 13583 13584 13585# save warnings/boilerplate of simple test code 13586ac_outfile=conftest.$ac_objext 13587printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13588eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13589_lt_compiler_boilerplate=`cat conftest.err` 13590$rm conftest* 13591 13592ac_outfile=conftest.$ac_objext 13593printf "$lt_simple_link_test_code" >conftest.$ac_ext 13594eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13595_lt_linker_boilerplate=`cat conftest.err` 13596$rm conftest* 13597 13598 13599# Allow CC to be a program name with arguments. 13600lt_save_CC="$CC" 13601CC=${F77-"f77"} 13602compiler=$CC 13603compiler_F77=$CC 13604for cc_temp in $compiler""; do 13605 case $cc_temp in 13606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13608 \-*) ;; 13609 *) break;; 13610 esac 13611done 13612cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13613 13614 13615{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13616echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13617{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13618echo "${ECHO_T}$can_build_shared" >&6; } 13619 13620{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13621echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13622test "$can_build_shared" = "no" && enable_shared=no 13623 13624# On AIX, shared libraries and static libraries use the same namespace, and 13625# are all built from PIC. 13626case $host_os in 13627aix3*) 13628 test "$enable_shared" = yes && enable_static=no 13629 if test -n "$RANLIB"; then 13630 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13631 postinstall_cmds='$RANLIB $lib' 13632 fi 13633 ;; 13634aix4* | aix5*) 13635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13636 test "$enable_shared" = yes && enable_static=no 13637 fi 13638 ;; 13639esac 13640{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13641echo "${ECHO_T}$enable_shared" >&6; } 13642 13643{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13644echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13645# Make sure either enable_shared or enable_static is yes. 13646test "$enable_shared" = yes || enable_static=yes 13647{ echo "$as_me:$LINENO: result: $enable_static" >&5 13648echo "${ECHO_T}$enable_static" >&6; } 13649 13650GCC_F77="$G77" 13651LD_F77="$LD" 13652 13653lt_prog_compiler_wl_F77= 13654lt_prog_compiler_pic_F77= 13655lt_prog_compiler_static_F77= 13656 13657{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13658echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13659 13660 if test "$GCC" = yes; then 13661 lt_prog_compiler_wl_F77='-Wl,' 13662 lt_prog_compiler_static_F77='-static' 13663 13664 case $host_os in 13665 aix*) 13666 # All AIX code is PIC. 13667 if test "$host_cpu" = ia64; then 13668 # AIX 5 now supports IA64 processor 13669 lt_prog_compiler_static_F77='-Bstatic' 13670 fi 13671 ;; 13672 13673 amigaos*) 13674 # FIXME: we need at least 68020 code to build shared libraries, but 13675 # adding the `-m68020' flag to GCC prevents building anything better, 13676 # like `-m68040'. 13677 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13678 ;; 13679 13680 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13681 # PIC is the default for these OSes. 13682 ;; 13683 13684 mingw* | pw32* | os2*) 13685 # This hack is so that the source file can tell whether it is being 13686 # built for inclusion in a dll (and should export symbols for example). 13687 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13688 ;; 13689 13690 darwin* | rhapsody*) 13691 # PIC is the default on this platform 13692 # Common symbols not allowed in MH_DYLIB files 13693 lt_prog_compiler_pic_F77='-fno-common' 13694 ;; 13695 13696 interix3*) 13697 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13698 # Instead, we relocate shared libraries at runtime. 13699 ;; 13700 13701 msdosdjgpp*) 13702 # Just because we use GCC doesn't mean we suddenly get shared libraries 13703 # on systems that don't support them. 13704 lt_prog_compiler_can_build_shared_F77=no 13705 enable_shared=no 13706 ;; 13707 13708 sysv4*MP*) 13709 if test -d /usr/nec; then 13710 lt_prog_compiler_pic_F77=-Kconform_pic 13711 fi 13712 ;; 13713 13714 hpux*) 13715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13716 # not for PA HP-UX. 13717 case $host_cpu in 13718 hppa*64*|ia64*) 13719 # +Z the default 13720 ;; 13721 *) 13722 lt_prog_compiler_pic_F77='-fPIC' 13723 ;; 13724 esac 13725 ;; 13726 13727 *) 13728 lt_prog_compiler_pic_F77='-fPIC' 13729 ;; 13730 esac 13731 else 13732 # PORTME Check for flag to pass linker flags through the system compiler. 13733 case $host_os in 13734 aix*) 13735 lt_prog_compiler_wl_F77='-Wl,' 13736 if test "$host_cpu" = ia64; then 13737 # AIX 5 now supports IA64 processor 13738 lt_prog_compiler_static_F77='-Bstatic' 13739 else 13740 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13741 fi 13742 ;; 13743 darwin*) 13744 # PIC is the default on this platform 13745 # Common symbols not allowed in MH_DYLIB files 13746 case $cc_basename in 13747 xlc*) 13748 lt_prog_compiler_pic_F77='-qnocommon' 13749 lt_prog_compiler_wl_F77='-Wl,' 13750 ;; 13751 esac 13752 ;; 13753 13754 mingw* | pw32* | os2*) 13755 # This hack is so that the source file can tell whether it is being 13756 # built for inclusion in a dll (and should export symbols for example). 13757 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13758 ;; 13759 13760 hpux9* | hpux10* | hpux11*) 13761 lt_prog_compiler_wl_F77='-Wl,' 13762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13763 # not for PA HP-UX. 13764 case $host_cpu in 13765 hppa*64*|ia64*) 13766 # +Z the default 13767 ;; 13768 *) 13769 lt_prog_compiler_pic_F77='+Z' 13770 ;; 13771 esac 13772 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13773 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13774 ;; 13775 13776 irix5* | irix6* | nonstopux*) 13777 lt_prog_compiler_wl_F77='-Wl,' 13778 # PIC (with -KPIC) is the default. 13779 lt_prog_compiler_static_F77='-non_shared' 13780 ;; 13781 13782 newsos6) 13783 lt_prog_compiler_pic_F77='-KPIC' 13784 lt_prog_compiler_static_F77='-Bstatic' 13785 ;; 13786 13787 linux*) 13788 case $cc_basename in 13789 icc* | ecc*) 13790 lt_prog_compiler_wl_F77='-Wl,' 13791 lt_prog_compiler_pic_F77='-KPIC' 13792 lt_prog_compiler_static_F77='-static' 13793 ;; 13794 pgcc* | pgf77* | pgf90* | pgf95*) 13795 # Portland Group compilers (*not* the Pentium gcc compiler, 13796 # which looks to be a dead project) 13797 lt_prog_compiler_wl_F77='-Wl,' 13798 lt_prog_compiler_pic_F77='-fpic' 13799 lt_prog_compiler_static_F77='-Bstatic' 13800 ;; 13801 ccc*) 13802 lt_prog_compiler_wl_F77='-Wl,' 13803 # All Alpha code is PIC. 13804 lt_prog_compiler_static_F77='-non_shared' 13805 ;; 13806 esac 13807 ;; 13808 13809 osf3* | osf4* | osf5*) 13810 lt_prog_compiler_wl_F77='-Wl,' 13811 # All OSF/1 code is PIC. 13812 lt_prog_compiler_static_F77='-non_shared' 13813 ;; 13814 13815 solaris*) 13816 lt_prog_compiler_pic_F77='-KPIC' 13817 lt_prog_compiler_static_F77='-Bstatic' 13818 case $cc_basename in 13819 f77* | f90* | f95*) 13820 lt_prog_compiler_wl_F77='-Qoption ld ';; 13821 *) 13822 lt_prog_compiler_wl_F77='-Wl,';; 13823 esac 13824 ;; 13825 13826 sunos4*) 13827 lt_prog_compiler_wl_F77='-Qoption ld ' 13828 lt_prog_compiler_pic_F77='-PIC' 13829 lt_prog_compiler_static_F77='-Bstatic' 13830 ;; 13831 13832 sysv4 | sysv4.2uw2* | sysv4.3*) 13833 lt_prog_compiler_wl_F77='-Wl,' 13834 lt_prog_compiler_pic_F77='-KPIC' 13835 lt_prog_compiler_static_F77='-Bstatic' 13836 ;; 13837 13838 sysv4*MP*) 13839 if test -d /usr/nec ;then 13840 lt_prog_compiler_pic_F77='-Kconform_pic' 13841 lt_prog_compiler_static_F77='-Bstatic' 13842 fi 13843 ;; 13844 13845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13846 lt_prog_compiler_wl_F77='-Wl,' 13847 lt_prog_compiler_pic_F77='-KPIC' 13848 lt_prog_compiler_static_F77='-Bstatic' 13849 ;; 13850 13851 unicos*) 13852 lt_prog_compiler_wl_F77='-Wl,' 13853 lt_prog_compiler_can_build_shared_F77=no 13854 ;; 13855 13856 uts4*) 13857 lt_prog_compiler_pic_F77='-pic' 13858 lt_prog_compiler_static_F77='-Bstatic' 13859 ;; 13860 13861 *) 13862 lt_prog_compiler_can_build_shared_F77=no 13863 ;; 13864 esac 13865 fi 13866 13867{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13868echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13869 13870# 13871# Check to make sure the PIC flag actually works. 13872# 13873if test -n "$lt_prog_compiler_pic_F77"; then 13874 13875{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13876echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13877if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13878 echo $ECHO_N "(cached) $ECHO_C" >&6 13879else 13880 lt_prog_compiler_pic_works_F77=no 13881 ac_outfile=conftest.$ac_objext 13882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13883 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13884 # Insert the option either (1) after the last *FLAGS variable, or 13885 # (2) before a word containing "conftest.", or (3) at the end. 13886 # Note that $ac_compile itself does not contain backslashes and begins 13887 # with a dollar sign (not a hyphen), so the echo should work correctly. 13888 # The option is referenced via a variable to avoid confusing sed. 13889 lt_compile=`echo "$ac_compile" | $SED \ 13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13892 -e 's:$: $lt_compiler_flag:'` 13893 (eval echo "\"\$as_me:13893: $lt_compile\"" >&5) 13894 (eval "$lt_compile" 2>conftest.err) 13895 ac_status=$? 13896 cat conftest.err >&5 13897 echo "$as_me:13897: \$? = $ac_status" >&5 13898 if (exit $ac_status) && test -s "$ac_outfile"; then 13899 # The compiler can only warn and ignore the option if not recognized 13900 # So say no if there are warnings other than the usual output. 13901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13903 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13904 lt_prog_compiler_pic_works_F77=yes 13905 fi 13906 fi 13907 $rm conftest* 13908 13909fi 13910{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13911echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13912 13913if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13914 case $lt_prog_compiler_pic_F77 in 13915 "" | " "*) ;; 13916 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13917 esac 13918else 13919 lt_prog_compiler_pic_F77= 13920 lt_prog_compiler_can_build_shared_F77=no 13921fi 13922 13923fi 13924case $host_os in 13925 # For platforms which do not support PIC, -DPIC is meaningless: 13926 *djgpp*) 13927 lt_prog_compiler_pic_F77= 13928 ;; 13929 *) 13930 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13931 ;; 13932esac 13933 13934# 13935# Check to make sure the static flag actually works. 13936# 13937wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13938{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13939echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13940if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13941 echo $ECHO_N "(cached) $ECHO_C" >&6 13942else 13943 lt_prog_compiler_static_works_F77=no 13944 save_LDFLAGS="$LDFLAGS" 13945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13946 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13948 # The linker can only warn and ignore the option if not recognized 13949 # So say no if there are warnings 13950 if test -s conftest.err; then 13951 # Append any errors to the config.log. 13952 cat conftest.err 1>&5 13953 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13955 if diff conftest.exp conftest.er2 >/dev/null; then 13956 lt_prog_compiler_static_works_F77=yes 13957 fi 13958 else 13959 lt_prog_compiler_static_works_F77=yes 13960 fi 13961 fi 13962 $rm conftest* 13963 LDFLAGS="$save_LDFLAGS" 13964 13965fi 13966{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13967echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13968 13969if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13970 : 13971else 13972 lt_prog_compiler_static_F77= 13973fi 13974 13975 13976{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13977echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13978if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13979 echo $ECHO_N "(cached) $ECHO_C" >&6 13980else 13981 lt_cv_prog_compiler_c_o_F77=no 13982 $rm -r conftest 2>/dev/null 13983 mkdir conftest 13984 cd conftest 13985 mkdir out 13986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13987 13988 lt_compiler_flag="-o out/conftest2.$ac_objext" 13989 # Insert the option either (1) after the last *FLAGS variable, or 13990 # (2) before a word containing "conftest.", or (3) at the end. 13991 # Note that $ac_compile itself does not contain backslashes and begins 13992 # with a dollar sign (not a hyphen), so the echo should work correctly. 13993 lt_compile=`echo "$ac_compile" | $SED \ 13994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13996 -e 's:$: $lt_compiler_flag:'` 13997 (eval echo "\"\$as_me:13997: $lt_compile\"" >&5) 13998 (eval "$lt_compile" 2>out/conftest.err) 13999 ac_status=$? 14000 cat out/conftest.err >&5 14001 echo "$as_me:14001: \$? = $ac_status" >&5 14002 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14003 then 14004 # The compiler can only warn and ignore the option if not recognized 14005 # So say no if there are warnings 14006 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14009 lt_cv_prog_compiler_c_o_F77=yes 14010 fi 14011 fi 14012 chmod u+w . 2>&5 14013 $rm conftest* 14014 # SGI C++ compiler will create directory out/ii_files/ for 14015 # template instantiation 14016 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14017 $rm out/* && rmdir out 14018 cd .. 14019 rmdir conftest 14020 $rm conftest* 14021 14022fi 14023{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14024echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14025 14026 14027hard_links="nottested" 14028if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14029 # do not overwrite the value of need_locks provided by the user 14030 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14031echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14032 hard_links=yes 14033 $rm conftest* 14034 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14035 touch conftest.a 14036 ln conftest.a conftest.b 2>&5 || hard_links=no 14037 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14038 { echo "$as_me:$LINENO: result: $hard_links" >&5 14039echo "${ECHO_T}$hard_links" >&6; } 14040 if test "$hard_links" = no; then 14041 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14042echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14043 need_locks=warn 14044 fi 14045else 14046 need_locks=no 14047fi 14048 14049{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14050echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14051 14052 runpath_var= 14053 allow_undefined_flag_F77= 14054 enable_shared_with_static_runtimes_F77=no 14055 archive_cmds_F77= 14056 archive_expsym_cmds_F77= 14057 old_archive_From_new_cmds_F77= 14058 old_archive_from_expsyms_cmds_F77= 14059 export_dynamic_flag_spec_F77= 14060 whole_archive_flag_spec_F77= 14061 thread_safe_flag_spec_F77= 14062 hardcode_libdir_flag_spec_F77= 14063 hardcode_libdir_flag_spec_ld_F77= 14064 hardcode_libdir_separator_F77= 14065 hardcode_direct_F77=no 14066 hardcode_minus_L_F77=no 14067 hardcode_shlibpath_var_F77=unsupported 14068 link_all_deplibs_F77=unknown 14069 hardcode_automatic_F77=no 14070 module_cmds_F77= 14071 module_expsym_cmds_F77= 14072 always_export_symbols_F77=no 14073 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14074 # include_expsyms should be a list of space-separated symbols to be *always* 14075 # included in the symbol list 14076 include_expsyms_F77= 14077 # exclude_expsyms can be an extended regexp of symbols to exclude 14078 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14080 # as well as any symbol that contains `d'. 14081 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14083 # platforms (ab)use it in PIC code, but their linkers get confused if 14084 # the symbol is explicitly referenced. Since portable code cannot 14085 # rely on this symbol name, it's probably fine to never include it in 14086 # preloaded symbol tables. 14087 extract_expsyms_cmds= 14088 # Just being paranoid about ensuring that cc_basename is set. 14089 for cc_temp in $compiler""; do 14090 case $cc_temp in 14091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14093 \-*) ;; 14094 *) break;; 14095 esac 14096done 14097cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14098 14099 case $host_os in 14100 cygwin* | mingw* | pw32*) 14101 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14102 # When not using gcc, we currently assume that we are using 14103 # Microsoft Visual C++. 14104 if test "$GCC" != yes; then 14105 with_gnu_ld=no 14106 fi 14107 ;; 14108 interix*) 14109 # we just hope/assume this is gcc and not c89 (= MSVC++) 14110 with_gnu_ld=yes 14111 ;; 14112 openbsd*) 14113 with_gnu_ld=no 14114 ;; 14115 esac 14116 14117 ld_shlibs_F77=yes 14118 if test "$with_gnu_ld" = yes; then 14119 # If archive_cmds runs LD, not CC, wlarc should be empty 14120 wlarc='${wl}' 14121 14122 # Set some defaults for GNU ld with shared library support. These 14123 # are reset later if shared libraries are not supported. Putting them 14124 # here allows them to be overridden if necessary. 14125 runpath_var=LD_RUN_PATH 14126 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14127 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14128 # ancient GNU ld didn't support --whole-archive et. al. 14129 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14130 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14131 else 14132 whole_archive_flag_spec_F77= 14133 fi 14134 supports_anon_versioning=no 14135 case `$LD -v 2>/dev/null` in 14136 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14137 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14138 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14139 *\ 2.11.*) ;; # other 2.11 versions 14140 *) supports_anon_versioning=yes ;; 14141 esac 14142 14143 # See if GNU ld supports shared libraries. 14144 case $host_os in 14145 aix3* | aix4* | aix5*) 14146 # On AIX/PPC, the GNU linker is very broken 14147 if test "$host_cpu" != ia64; then 14148 ld_shlibs_F77=no 14149 cat <<EOF 1>&2 14150 14151*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14152*** to be unable to reliably create shared libraries on AIX. 14153*** Therefore, libtool is disabling shared libraries support. If you 14154*** really care for shared libraries, you may want to modify your PATH 14155*** so that a non-GNU linker is found, and then restart. 14156 14157EOF 14158 fi 14159 ;; 14160 14161 amigaos*) 14162 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)' 14163 hardcode_libdir_flag_spec_F77='-L$libdir' 14164 hardcode_minus_L_F77=yes 14165 14166 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14167 # that the semantics of dynamic libraries on AmigaOS, at least up 14168 # to version 4, is to share data among multiple programs linked 14169 # with the same dynamic library. Since this doesn't match the 14170 # behavior of shared libraries on other platforms, we can't use 14171 # them. 14172 ld_shlibs_F77=no 14173 ;; 14174 14175 beos*) 14176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14177 allow_undefined_flag_F77=unsupported 14178 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14179 # support --undefined. This deserves some investigation. FIXME 14180 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14181 else 14182 ld_shlibs_F77=no 14183 fi 14184 ;; 14185 14186 cygwin* | mingw* | pw32*) 14187 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14188 # as there is no search path for DLLs. 14189 hardcode_libdir_flag_spec_F77='-L$libdir' 14190 allow_undefined_flag_F77=unsupported 14191 always_export_symbols_F77=no 14192 enable_shared_with_static_runtimes_F77=yes 14193 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14194 14195 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14196 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14197 # If the export-symbols file already is a .def file (1st line 14198 # is EXPORTS), use it as is; otherwise, prepend... 14199 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14200 cp $export_symbols $output_objdir/$soname.def; 14201 else 14202 echo EXPORTS > $output_objdir/$soname.def; 14203 cat $export_symbols >> $output_objdir/$soname.def; 14204 fi~ 14205 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14206 else 14207 ld_shlibs_F77=no 14208 fi 14209 ;; 14210 14211 interix3*) 14212 hardcode_direct_F77=no 14213 hardcode_shlibpath_var_F77=no 14214 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14215 export_dynamic_flag_spec_F77='${wl}-E' 14216 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14217 # Instead, shared libraries are loaded at an image base (0x10000000 by 14218 # default) and relocated if they conflict, which is a slow very memory 14219 # consuming and fragmenting process. To avoid this, we pick a random, 14220 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14221 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14222 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' 14223 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' 14224 ;; 14225 14226 linux*) 14227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14228 tmp_addflag= 14229 case $cc_basename,$host_cpu in 14230 pgcc*) # Portland Group C compiler 14231 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' 14232 tmp_addflag=' $pic_flag' 14233 ;; 14234 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14235 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' 14236 tmp_addflag=' $pic_flag -Mnomain' ;; 14237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14238 tmp_addflag=' -i_dynamic' ;; 14239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14240 tmp_addflag=' -i_dynamic -nofor_main' ;; 14241 ifc* | ifort*) # Intel Fortran compiler 14242 tmp_addflag=' -nofor_main' ;; 14243 esac 14244 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14245 14246 if test $supports_anon_versioning = yes; then 14247 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14249 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14250 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14251 fi 14252 else 14253 ld_shlibs_F77=no 14254 fi 14255 ;; 14256 14257 netbsd*) 14258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14259 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14260 wlarc= 14261 else 14262 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14263 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14264 fi 14265 ;; 14266 14267 solaris*) 14268 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14269 ld_shlibs_F77=no 14270 cat <<EOF 1>&2 14271 14272*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14273*** create shared libraries on Solaris systems. Therefore, libtool 14274*** is disabling shared libraries support. We urge you to upgrade GNU 14275*** binutils to release 2.9.1 or newer. Another option is to modify 14276*** your PATH or compiler configuration so that the native linker is 14277*** used, and then restart. 14278 14279EOF 14280 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14281 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14282 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14283 else 14284 ld_shlibs_F77=no 14285 fi 14286 ;; 14287 14288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14289 case `$LD -v 2>&1` in 14290 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14291 ld_shlibs_F77=no 14292 cat <<_LT_EOF 1>&2 14293 14294*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14295*** reliably create shared libraries on SCO systems. Therefore, libtool 14296*** is disabling shared libraries support. We urge you to upgrade GNU 14297*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14298*** your PATH or compiler configuration so that the native linker is 14299*** used, and then restart. 14300 14301_LT_EOF 14302 ;; 14303 *) 14304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14305 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14308 else 14309 ld_shlibs_F77=no 14310 fi 14311 ;; 14312 esac 14313 ;; 14314 14315 sunos4*) 14316 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14317 wlarc= 14318 hardcode_direct_F77=yes 14319 hardcode_shlibpath_var_F77=no 14320 ;; 14321 14322 *) 14323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14324 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14325 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14326 else 14327 ld_shlibs_F77=no 14328 fi 14329 ;; 14330 esac 14331 14332 if test "$ld_shlibs_F77" = no; then 14333 runpath_var= 14334 hardcode_libdir_flag_spec_F77= 14335 export_dynamic_flag_spec_F77= 14336 whole_archive_flag_spec_F77= 14337 fi 14338 else 14339 # PORTME fill in a description of your system's linker (not GNU ld) 14340 case $host_os in 14341 aix3*) 14342 allow_undefined_flag_F77=unsupported 14343 always_export_symbols_F77=yes 14344 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' 14345 # Note: this linker hardcodes the directories in LIBPATH if there 14346 # are no directories specified by -L. 14347 hardcode_minus_L_F77=yes 14348 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14349 # Neither direct hardcoding nor static linking is supported with a 14350 # broken collect2. 14351 hardcode_direct_F77=unsupported 14352 fi 14353 ;; 14354 14355 aix4* | aix5*) 14356 if test "$host_cpu" = ia64; then 14357 # On IA64, the linker does run time linking by default, so we don't 14358 # have to do anything special. 14359 aix_use_runtimelinking=no 14360 exp_sym_flag='-Bexport' 14361 no_entry_flag="" 14362 else 14363 # If we're using GNU nm, then we don't want the "-C" option. 14364 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14365 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14366 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' 14367 else 14368 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' 14369 fi 14370 aix_use_runtimelinking=no 14371 14372 # Test if we are trying to use run time linking or normal 14373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14374 # need to do runtime linking. 14375 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14376 for ld_flag in $LDFLAGS; do 14377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14378 aix_use_runtimelinking=yes 14379 break 14380 fi 14381 done 14382 ;; 14383 esac 14384 14385 exp_sym_flag='-bexport' 14386 no_entry_flag='-bnoentry' 14387 fi 14388 14389 # When large executables or shared objects are built, AIX ld can 14390 # have problems creating the table of contents. If linking a library 14391 # or program results in "error TOC overflow" add -mminimal-toc to 14392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14394 14395 archive_cmds_F77='' 14396 hardcode_direct_F77=yes 14397 hardcode_libdir_separator_F77=':' 14398 link_all_deplibs_F77=yes 14399 14400 if test "$GCC" = yes; then 14401 case $host_os in aix4.[012]|aix4.[012].*) 14402 # We only want to do this on AIX 4.2 and lower, the check 14403 # below for broken collect2 doesn't work under 4.3+ 14404 collect2name=`${CC} -print-prog-name=collect2` 14405 if test -f "$collect2name" && \ 14406 strings "$collect2name" | grep resolve_lib_name >/dev/null 14407 then 14408 # We have reworked collect2 14409 hardcode_direct_F77=yes 14410 else 14411 # We have old collect2 14412 hardcode_direct_F77=unsupported 14413 # It fails to find uninstalled libraries when the uninstalled 14414 # path is not listed in the libpath. Setting hardcode_minus_L 14415 # to unsupported forces relinking 14416 hardcode_minus_L_F77=yes 14417 hardcode_libdir_flag_spec_F77='-L$libdir' 14418 hardcode_libdir_separator_F77= 14419 fi 14420 ;; 14421 esac 14422 shared_flag='-shared' 14423 if test "$aix_use_runtimelinking" = yes; then 14424 shared_flag="$shared_flag "'${wl}-G' 14425 fi 14426 else 14427 # not using gcc 14428 if test "$host_cpu" = ia64; then 14429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14430 # chokes on -Wl,-G. The following line is correct: 14431 shared_flag='-G' 14432 else 14433 if test "$aix_use_runtimelinking" = yes; then 14434 shared_flag='${wl}-G' 14435 else 14436 shared_flag='${wl}-bM:SRE' 14437 fi 14438 fi 14439 fi 14440 14441 # It seems that -bexpall does not export symbols beginning with 14442 # underscore (_), so it is better to generate a list of symbols to export. 14443 always_export_symbols_F77=yes 14444 if test "$aix_use_runtimelinking" = yes; then 14445 # Warning - without using the other runtime loading flags (-brtl), 14446 # -berok will link without error, but may produce a broken library. 14447 allow_undefined_flag_F77='-berok' 14448 # Determine the default libpath from the value encoded in an empty executable. 14449 cat >conftest.$ac_ext <<_ACEOF 14450 program main 14451 14452 end 14453_ACEOF 14454rm -f conftest.$ac_objext conftest$ac_exeext 14455if { (ac_try="$ac_link" 14456case "(($ac_try" in 14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14458 *) ac_try_echo=$ac_try;; 14459esac 14460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14461 (eval "$ac_link") 2>conftest.er1 14462 ac_status=$? 14463 grep -v '^ *+' conftest.er1 >conftest.err 14464 rm -f conftest.er1 14465 cat conftest.err >&5 14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14467 (exit $ac_status); } && { 14468 test -z "$ac_f77_werror_flag" || 14469 test ! -s conftest.err 14470 } && test -s conftest$ac_exeext && 14471 $as_test_x conftest$ac_exeext; then 14472 14473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14474}'` 14475# Check for a 64-bit object if we didn't find anything. 14476if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14477}'`; fi 14478else 14479 echo "$as_me: failed program was:" >&5 14480sed 's/^/| /' conftest.$ac_ext >&5 14481 14482 14483fi 14484 14485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14486 conftest$ac_exeext conftest.$ac_ext 14487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14488 14489 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14490 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" 14491 else 14492 if test "$host_cpu" = ia64; then 14493 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14494 allow_undefined_flag_F77="-z nodefs" 14495 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" 14496 else 14497 # Determine the default libpath from the value encoded in an empty executable. 14498 cat >conftest.$ac_ext <<_ACEOF 14499 program main 14500 14501 end 14502_ACEOF 14503rm -f conftest.$ac_objext conftest$ac_exeext 14504if { (ac_try="$ac_link" 14505case "(($ac_try" in 14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14507 *) ac_try_echo=$ac_try;; 14508esac 14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14510 (eval "$ac_link") 2>conftest.er1 14511 ac_status=$? 14512 grep -v '^ *+' conftest.er1 >conftest.err 14513 rm -f conftest.er1 14514 cat conftest.err >&5 14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14516 (exit $ac_status); } && { 14517 test -z "$ac_f77_werror_flag" || 14518 test ! -s conftest.err 14519 } && test -s conftest$ac_exeext && 14520 $as_test_x conftest$ac_exeext; then 14521 14522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14523}'` 14524# Check for a 64-bit object if we didn't find anything. 14525if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14526}'`; fi 14527else 14528 echo "$as_me: failed program was:" >&5 14529sed 's/^/| /' conftest.$ac_ext >&5 14530 14531 14532fi 14533 14534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14535 conftest$ac_exeext conftest.$ac_ext 14536if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14537 14538 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14539 # Warning - without using the other run time loading flags, 14540 # -berok will link without error, but may produce a broken library. 14541 no_undefined_flag_F77=' ${wl}-bernotok' 14542 allow_undefined_flag_F77=' ${wl}-berok' 14543 # Exported symbols can be pulled into shared objects from archives 14544 whole_archive_flag_spec_F77='$convenience' 14545 archive_cmds_need_lc_F77=yes 14546 # This is similar to how AIX traditionally builds its shared libraries. 14547 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' 14548 fi 14549 fi 14550 ;; 14551 14552 amigaos*) 14553 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)' 14554 hardcode_libdir_flag_spec_F77='-L$libdir' 14555 hardcode_minus_L_F77=yes 14556 # see comment about different semantics on the GNU ld section 14557 ld_shlibs_F77=no 14558 ;; 14559 14560 bsdi[45]*) 14561 export_dynamic_flag_spec_F77=-rdynamic 14562 ;; 14563 14564 cygwin* | mingw* | pw32*) 14565 # When not using gcc, we currently assume that we are using 14566 # Microsoft Visual C++. 14567 # hardcode_libdir_flag_spec is actually meaningless, as there is 14568 # no search path for DLLs. 14569 hardcode_libdir_flag_spec_F77=' ' 14570 allow_undefined_flag_F77=unsupported 14571 # Tell ltmain to make .lib files, not .a files. 14572 libext=lib 14573 # Tell ltmain to make .dll files, not .so files. 14574 shrext_cmds=".dll" 14575 # FIXME: Setting linknames here is a bad hack. 14576 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14577 # The linker will automatically build a .lib file if we build a DLL. 14578 old_archive_From_new_cmds_F77='true' 14579 # FIXME: Should let the user specify the lib program. 14580 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14581 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14582 enable_shared_with_static_runtimes_F77=yes 14583 ;; 14584 14585 darwin* | rhapsody*) 14586 case $host_os in 14587 rhapsody* | darwin1.[012]) 14588 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14589 ;; 14590 *) # Darwin 1.3 on 14591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14592 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14593 else 14594 case ${MACOSX_DEPLOYMENT_TARGET} in 14595 10.[012]) 14596 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14597 ;; 14598 10.*) 14599 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14600 ;; 14601 esac 14602 fi 14603 ;; 14604 esac 14605 archive_cmds_need_lc_F77=no 14606 hardcode_direct_F77=no 14607 hardcode_automatic_F77=yes 14608 hardcode_shlibpath_var_F77=unsupported 14609 whole_archive_flag_spec_F77='' 14610 link_all_deplibs_F77=yes 14611 if test "$GCC" = yes ; then 14612 output_verbose_link_cmd='echo' 14613 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14614 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14616 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}' 14617 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}' 14618 else 14619 case $cc_basename in 14620 xlc*) 14621 output_verbose_link_cmd='echo' 14622 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14623 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14625 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14626 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}' 14627 ;; 14628 *) 14629 ld_shlibs_F77=no 14630 ;; 14631 esac 14632 fi 14633 ;; 14634 14635 dgux*) 14636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14637 hardcode_libdir_flag_spec_F77='-L$libdir' 14638 hardcode_shlibpath_var_F77=no 14639 ;; 14640 14641 freebsd1*) 14642 ld_shlibs_F77=no 14643 ;; 14644 14645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14646 # support. Future versions do this automatically, but an explicit c++rt0.o 14647 # does not break anything, and helps significantly (at the cost of a little 14648 # extra space). 14649 freebsd2.2*) 14650 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14651 hardcode_libdir_flag_spec_F77='-R$libdir' 14652 hardcode_direct_F77=yes 14653 hardcode_shlibpath_var_F77=no 14654 ;; 14655 14656 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14657 freebsd2*) 14658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14659 hardcode_direct_F77=yes 14660 hardcode_minus_L_F77=yes 14661 hardcode_shlibpath_var_F77=no 14662 ;; 14663 14664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14665 freebsd* | kfreebsd*-gnu | dragonfly*) 14666 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14667 hardcode_libdir_flag_spec_F77='-R$libdir' 14668 hardcode_direct_F77=yes 14669 hardcode_shlibpath_var_F77=no 14670 ;; 14671 14672 hpux9*) 14673 if test "$GCC" = yes; then 14674 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' 14675 else 14676 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' 14677 fi 14678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14679 hardcode_libdir_separator_F77=: 14680 hardcode_direct_F77=yes 14681 14682 # hardcode_minus_L: Not really in the search PATH, 14683 # but as the default location of the library. 14684 hardcode_minus_L_F77=yes 14685 export_dynamic_flag_spec_F77='${wl}-E' 14686 ;; 14687 14688 hpux10*) 14689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14690 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14691 else 14692 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14693 fi 14694 if test "$with_gnu_ld" = no; then 14695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14696 hardcode_libdir_separator_F77=: 14697 14698 hardcode_direct_F77=yes 14699 export_dynamic_flag_spec_F77='${wl}-E' 14700 14701 # hardcode_minus_L: Not really in the search PATH, 14702 # but as the default location of the library. 14703 hardcode_minus_L_F77=yes 14704 fi 14705 ;; 14706 14707 hpux11*) 14708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14709 case $host_cpu in 14710 hppa*64*) 14711 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14712 ;; 14713 ia64*) 14714 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14715 ;; 14716 *) 14717 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14718 ;; 14719 esac 14720 else 14721 case $host_cpu in 14722 hppa*64*) 14723 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14724 ;; 14725 ia64*) 14726 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14727 ;; 14728 *) 14729 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14730 ;; 14731 esac 14732 fi 14733 if test "$with_gnu_ld" = no; then 14734 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14735 hardcode_libdir_separator_F77=: 14736 14737 case $host_cpu in 14738 hppa*64*|ia64*) 14739 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14740 hardcode_direct_F77=no 14741 hardcode_shlibpath_var_F77=no 14742 ;; 14743 *) 14744 hardcode_direct_F77=yes 14745 export_dynamic_flag_spec_F77='${wl}-E' 14746 14747 # hardcode_minus_L: Not really in the search PATH, 14748 # but as the default location of the library. 14749 hardcode_minus_L_F77=yes 14750 ;; 14751 esac 14752 fi 14753 ;; 14754 14755 irix5* | irix6* | nonstopux*) 14756 if test "$GCC" = yes; then 14757 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' 14758 else 14759 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' 14760 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14761 fi 14762 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14763 hardcode_libdir_separator_F77=: 14764 link_all_deplibs_F77=yes 14765 ;; 14766 14767 netbsd*) 14768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14769 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14770 else 14771 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14772 fi 14773 hardcode_libdir_flag_spec_F77='-R$libdir' 14774 hardcode_direct_F77=yes 14775 hardcode_shlibpath_var_F77=no 14776 ;; 14777 14778 newsos6) 14779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14780 hardcode_direct_F77=yes 14781 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14782 hardcode_libdir_separator_F77=: 14783 hardcode_shlibpath_var_F77=no 14784 ;; 14785 14786 openbsd*) 14787 hardcode_direct_F77=yes 14788 hardcode_shlibpath_var_F77=no 14789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14790 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14791 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14792 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14793 export_dynamic_flag_spec_F77='${wl}-E' 14794 else 14795 case $host_os in 14796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14797 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14798 hardcode_libdir_flag_spec_F77='-R$libdir' 14799 ;; 14800 *) 14801 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14802 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14803 ;; 14804 esac 14805 fi 14806 ;; 14807 14808 os2*) 14809 hardcode_libdir_flag_spec_F77='-L$libdir' 14810 hardcode_minus_L_F77=yes 14811 allow_undefined_flag_F77=unsupported 14812 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' 14813 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14814 ;; 14815 14816 osf3*) 14817 if test "$GCC" = yes; then 14818 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14819 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' 14820 else 14821 allow_undefined_flag_F77=' -expect_unresolved \*' 14822 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' 14823 fi 14824 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14825 hardcode_libdir_separator_F77=: 14826 ;; 14827 14828 osf4* | osf5*) # as osf3* with the addition of -msym flag 14829 if test "$GCC" = yes; then 14830 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14831 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' 14832 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14833 else 14834 allow_undefined_flag_F77=' -expect_unresolved \*' 14835 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' 14836 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~ 14837 $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' 14838 14839 # Both c and cxx compiler support -rpath directly 14840 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14841 fi 14842 hardcode_libdir_separator_F77=: 14843 ;; 14844 14845 solaris*) 14846 no_undefined_flag_F77=' -z text' 14847 if test "$GCC" = yes; then 14848 wlarc='${wl}' 14849 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14850 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14852 else 14853 wlarc='' 14854 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14855 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14857 fi 14858 hardcode_libdir_flag_spec_F77='-R$libdir' 14859 hardcode_shlibpath_var_F77=no 14860 case $host_os in 14861 solaris2.[0-5] | solaris2.[0-5].*) ;; 14862 *) 14863 # The compiler driver will combine linker options so we 14864 # cannot just pass the convience library names through 14865 # without $wl, iff we do not link with $LD. 14866 # Luckily, gcc supports the same syntax we need for Sun Studio. 14867 # Supported since Solaris 2.6 (maybe 2.5.1?) 14868 case $wlarc in 14869 '') 14870 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14871 *) 14872 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14873 esac ;; 14874 esac 14875 link_all_deplibs_F77=yes 14876 ;; 14877 14878 sunos4*) 14879 if test "x$host_vendor" = xsequent; then 14880 # Use $CC to link under sequent, because it throws in some extra .o 14881 # files that make .init and .fini sections work. 14882 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14883 else 14884 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14885 fi 14886 hardcode_libdir_flag_spec_F77='-L$libdir' 14887 hardcode_direct_F77=yes 14888 hardcode_minus_L_F77=yes 14889 hardcode_shlibpath_var_F77=no 14890 ;; 14891 14892 sysv4) 14893 case $host_vendor in 14894 sni) 14895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14896 hardcode_direct_F77=yes # is this really true??? 14897 ;; 14898 siemens) 14899 ## LD is ld it makes a PLAMLIB 14900 ## CC just makes a GrossModule. 14901 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14902 reload_cmds_F77='$CC -r -o $output$reload_objs' 14903 hardcode_direct_F77=no 14904 ;; 14905 motorola) 14906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14907 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14908 ;; 14909 esac 14910 runpath_var='LD_RUN_PATH' 14911 hardcode_shlibpath_var_F77=no 14912 ;; 14913 14914 sysv4.3*) 14915 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14916 hardcode_shlibpath_var_F77=no 14917 export_dynamic_flag_spec_F77='-Bexport' 14918 ;; 14919 14920 sysv4*MP*) 14921 if test -d /usr/nec; then 14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14923 hardcode_shlibpath_var_F77=no 14924 runpath_var=LD_RUN_PATH 14925 hardcode_runpath_var=yes 14926 ld_shlibs_F77=yes 14927 fi 14928 ;; 14929 14930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14931 no_undefined_flag_F77='${wl}-z,text' 14932 archive_cmds_need_lc_F77=no 14933 hardcode_shlibpath_var_F77=no 14934 runpath_var='LD_RUN_PATH' 14935 14936 if test "$GCC" = yes; then 14937 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14938 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14939 else 14940 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14941 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14942 fi 14943 ;; 14944 14945 sysv5* | sco3.2v5* | sco5v6*) 14946 # Note: We can NOT use -z defs as we might desire, because we do not 14947 # link with -lc, and that would cause any symbols used from libc to 14948 # always be unresolved, which means just about no library would 14949 # ever link correctly. If we're not using GNU ld we use -z text 14950 # though, which does catch some bad symbols but isn't as heavy-handed 14951 # as -z defs. 14952 no_undefined_flag_F77='${wl}-z,text' 14953 allow_undefined_flag_F77='${wl}-z,nodefs' 14954 archive_cmds_need_lc_F77=no 14955 hardcode_shlibpath_var_F77=no 14956 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14957 hardcode_libdir_separator_F77=':' 14958 link_all_deplibs_F77=yes 14959 export_dynamic_flag_spec_F77='${wl}-Bexport' 14960 runpath_var='LD_RUN_PATH' 14961 14962 if test "$GCC" = yes; then 14963 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14964 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14965 else 14966 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14967 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14968 fi 14969 ;; 14970 14971 uts4*) 14972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14973 hardcode_libdir_flag_spec_F77='-L$libdir' 14974 hardcode_shlibpath_var_F77=no 14975 ;; 14976 14977 *) 14978 ld_shlibs_F77=no 14979 ;; 14980 esac 14981 fi 14982 14983{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14984echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14985test "$ld_shlibs_F77" = no && can_build_shared=no 14986 14987# 14988# Do we need to explicitly link libc? 14989# 14990case "x$archive_cmds_need_lc_F77" in 14991x|xyes) 14992 # Assume -lc should be added 14993 archive_cmds_need_lc_F77=yes 14994 14995 if test "$enable_shared" = yes && test "$GCC" = yes; then 14996 case $archive_cmds_F77 in 14997 *'~'*) 14998 # FIXME: we may have to deal with multi-command sequences. 14999 ;; 15000 '$CC '*) 15001 # Test whether the compiler implicitly links with -lc since on some 15002 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15003 # to ld, don't add -lc before -lgcc. 15004 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15005echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15006 $rm conftest* 15007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15008 15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15010 (eval $ac_compile) 2>&5 15011 ac_status=$? 15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15013 (exit $ac_status); } 2>conftest.err; then 15014 soname=conftest 15015 lib=conftest 15016 libobjs=conftest.$ac_objext 15017 deplibs= 15018 wl=$lt_prog_compiler_wl_F77 15019 pic_flag=$lt_prog_compiler_pic_F77 15020 compiler_flags=-v 15021 linker_flags=-v 15022 verstring= 15023 output_objdir=. 15024 libname=conftest 15025 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15026 allow_undefined_flag_F77= 15027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15028 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15029 ac_status=$? 15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15031 (exit $ac_status); } 15032 then 15033 archive_cmds_need_lc_F77=no 15034 else 15035 archive_cmds_need_lc_F77=yes 15036 fi 15037 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15038 else 15039 cat conftest.err 1>&5 15040 fi 15041 $rm conftest* 15042 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15043echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15044 ;; 15045 esac 15046 fi 15047 ;; 15048esac 15049 15050{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15051echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15052library_names_spec= 15053libname_spec='lib$name' 15054soname_spec= 15055shrext_cmds=".so" 15056postinstall_cmds= 15057postuninstall_cmds= 15058finish_cmds= 15059finish_eval= 15060shlibpath_var= 15061shlibpath_overrides_runpath=unknown 15062version_type=none 15063dynamic_linker="$host_os ld.so" 15064sys_lib_dlsearch_path_spec="/lib /usr/lib" 15065if test "$GCC" = yes; then 15066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15068 # if the path contains ";" then we assume it to be the separator 15069 # otherwise default to the standard path separator (i.e. ":") - it is 15070 # assumed that no part of a normal pathname contains ";" but that should 15071 # okay in the real world where ";" in dirpaths is itself problematic. 15072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15073 else 15074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15075 fi 15076else 15077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15078fi 15079need_lib_prefix=unknown 15080hardcode_into_libs=no 15081 15082# when you set need_version to no, make sure it does not cause -set_version 15083# flags to be left without arguments 15084need_version=unknown 15085 15086case $host_os in 15087aix3*) 15088 version_type=linux 15089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15090 shlibpath_var=LIBPATH 15091 15092 # AIX 3 has no versioning support, so we append a major version to the name. 15093 soname_spec='${libname}${release}${shared_ext}$major' 15094 ;; 15095 15096aix4* | aix5*) 15097 version_type=linux 15098 need_lib_prefix=no 15099 need_version=no 15100 hardcode_into_libs=yes 15101 if test "$host_cpu" = ia64; then 15102 # AIX 5 supports IA64 15103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15104 shlibpath_var=LD_LIBRARY_PATH 15105 else 15106 # With GCC up to 2.95.x, collect2 would create an import file 15107 # for dependence libraries. The import file would start with 15108 # the line `#! .'. This would cause the generated library to 15109 # depend on `.', always an invalid library. This was fixed in 15110 # development snapshots of GCC prior to 3.0. 15111 case $host_os in 15112 aix4 | aix4.[01] | aix4.[01].*) 15113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15114 echo ' yes ' 15115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15116 : 15117 else 15118 can_build_shared=no 15119 fi 15120 ;; 15121 esac 15122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15123 # soname into executable. Probably we can add versioning support to 15124 # collect2, so additional links can be useful in future. 15125 if test "$aix_use_runtimelinking" = yes; then 15126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15127 # instead of lib<name>.a to let people know that these are not 15128 # typical AIX shared libraries. 15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15130 else 15131 # We preserve .a as extension for shared libraries through AIX4.2 15132 # and later when we are not doing run time linking. 15133 library_names_spec='${libname}${release}.a $libname.a' 15134 soname_spec='${libname}${release}${shared_ext}$major' 15135 fi 15136 shlibpath_var=LIBPATH 15137 fi 15138 ;; 15139 15140amigaos*) 15141 library_names_spec='$libname.ixlibrary $libname.a' 15142 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15143 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' 15144 ;; 15145 15146beos*) 15147 library_names_spec='${libname}${shared_ext}' 15148 dynamic_linker="$host_os ld.so" 15149 shlibpath_var=LIBRARY_PATH 15150 ;; 15151 15152bsdi[45]*) 15153 version_type=linux 15154 need_version=no 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15158 shlibpath_var=LD_LIBRARY_PATH 15159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15161 # the default ld.so.conf also contains /usr/contrib/lib and 15162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15163 # libtool to hard-code these into programs 15164 ;; 15165 15166cygwin* | mingw* | pw32*) 15167 version_type=windows 15168 shrext_cmds=".dll" 15169 need_version=no 15170 need_lib_prefix=no 15171 15172 case $GCC,$host_os in 15173 yes,cygwin* | yes,mingw* | yes,pw32*) 15174 library_names_spec='$libname.dll.a' 15175 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15176 postinstall_cmds='base_file=`basename \${file}`~ 15177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15178 dldir=$destdir/`dirname \$dlpath`~ 15179 test -d \$dldir || mkdir -p \$dldir~ 15180 $install_prog $dir/$dlname \$dldir/$dlname~ 15181 chmod a+x \$dldir/$dlname' 15182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15183 dlpath=$dir/\$dldll~ 15184 $rm \$dlpath' 15185 shlibpath_overrides_runpath=yes 15186 15187 case $host_os in 15188 cygwin*) 15189 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15192 ;; 15193 mingw*) 15194 # MinGW DLLs use traditional 'lib' prefix 15195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15198 # It is most probably a Windows format PATH printed by 15199 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15200 # path with ; separators, and with drive letters. We can handle the 15201 # drive letters (cygwin fileutils understands them), so leave them, 15202 # especially as we might pass files found there to a mingw objdump, 15203 # which wouldn't understand a cygwinified path. Ahh. 15204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15205 else 15206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15207 fi 15208 ;; 15209 pw32*) 15210 # pw32 DLLs use 'pw' prefix rather than 'lib' 15211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15212 ;; 15213 esac 15214 ;; 15215 15216 *) 15217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15218 ;; 15219 esac 15220 dynamic_linker='Win32 ld.exe' 15221 # FIXME: first we should search . and the directory the executable is in 15222 shlibpath_var=PATH 15223 ;; 15224 15225darwin* | rhapsody*) 15226 dynamic_linker="$host_os dyld" 15227 version_type=darwin 15228 need_lib_prefix=no 15229 need_version=no 15230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15231 soname_spec='${libname}${release}${major}$shared_ext' 15232 shlibpath_overrides_runpath=yes 15233 shlibpath_var=DYLD_LIBRARY_PATH 15234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15236 if test "$GCC" = yes; then 15237 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15238 else 15239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15240 fi 15241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15242 ;; 15243 15244dgux*) 15245 version_type=linux 15246 need_lib_prefix=no 15247 need_version=no 15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15249 soname_spec='${libname}${release}${shared_ext}$major' 15250 shlibpath_var=LD_LIBRARY_PATH 15251 ;; 15252 15253freebsd1*) 15254 dynamic_linker=no 15255 ;; 15256 15257kfreebsd*-gnu) 15258 version_type=linux 15259 need_lib_prefix=no 15260 need_version=no 15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15262 soname_spec='${libname}${release}${shared_ext}$major' 15263 shlibpath_var=LD_LIBRARY_PATH 15264 shlibpath_overrides_runpath=no 15265 hardcode_into_libs=yes 15266 dynamic_linker='GNU ld.so' 15267 ;; 15268 15269freebsd* | dragonfly*) 15270 # DragonFly does not have aout. When/if they implement a new 15271 # versioning mechanism, adjust this. 15272 if test -x /usr/bin/objformat; then 15273 objformat=`/usr/bin/objformat` 15274 else 15275 case $host_os in 15276 freebsd[123]*) objformat=aout ;; 15277 *) objformat=elf ;; 15278 esac 15279 fi 15280 version_type=freebsd-$objformat 15281 case $version_type in 15282 freebsd-elf*) 15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15284 need_version=no 15285 need_lib_prefix=no 15286 ;; 15287 freebsd-*) 15288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15289 need_version=yes 15290 ;; 15291 esac 15292 shlibpath_var=LD_LIBRARY_PATH 15293 case $host_os in 15294 freebsd2*) 15295 shlibpath_overrides_runpath=yes 15296 ;; 15297 freebsd3.[01]* | freebsdelf3.[01]*) 15298 shlibpath_overrides_runpath=yes 15299 hardcode_into_libs=yes 15300 ;; 15301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15303 shlibpath_overrides_runpath=no 15304 hardcode_into_libs=yes 15305 ;; 15306 freebsd*) # from 4.6 on 15307 shlibpath_overrides_runpath=yes 15308 hardcode_into_libs=yes 15309 ;; 15310 esac 15311 ;; 15312 15313gnu*) 15314 version_type=linux 15315 need_lib_prefix=no 15316 need_version=no 15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15318 soname_spec='${libname}${release}${shared_ext}$major' 15319 shlibpath_var=LD_LIBRARY_PATH 15320 hardcode_into_libs=yes 15321 ;; 15322 15323hpux9* | hpux10* | hpux11*) 15324 # Give a soname corresponding to the major version so that dld.sl refuses to 15325 # link against other versions. 15326 version_type=sunos 15327 need_lib_prefix=no 15328 need_version=no 15329 case $host_cpu in 15330 ia64*) 15331 shrext_cmds='.so' 15332 hardcode_into_libs=yes 15333 dynamic_linker="$host_os dld.so" 15334 shlibpath_var=LD_LIBRARY_PATH 15335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15337 soname_spec='${libname}${release}${shared_ext}$major' 15338 if test "X$HPUX_IA64_MODE" = X32; then 15339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15340 else 15341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15342 fi 15343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15344 ;; 15345 hppa*64*) 15346 shrext_cmds='.sl' 15347 hardcode_into_libs=yes 15348 dynamic_linker="$host_os dld.sl" 15349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15352 soname_spec='${libname}${release}${shared_ext}$major' 15353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15355 ;; 15356 *) 15357 shrext_cmds='.sl' 15358 dynamic_linker="$host_os dld.sl" 15359 shlibpath_var=SHLIB_PATH 15360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15362 soname_spec='${libname}${release}${shared_ext}$major' 15363 ;; 15364 esac 15365 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15366 postinstall_cmds='chmod 555 $lib' 15367 ;; 15368 15369interix3*) 15370 version_type=linux 15371 need_lib_prefix=no 15372 need_version=no 15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15374 soname_spec='${libname}${release}${shared_ext}$major' 15375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15376 shlibpath_var=LD_LIBRARY_PATH 15377 shlibpath_overrides_runpath=no 15378 hardcode_into_libs=yes 15379 ;; 15380 15381irix5* | irix6* | nonstopux*) 15382 case $host_os in 15383 nonstopux*) version_type=nonstopux ;; 15384 *) 15385 if test "$lt_cv_prog_gnu_ld" = yes; then 15386 version_type=linux 15387 else 15388 version_type=irix 15389 fi ;; 15390 esac 15391 need_lib_prefix=no 15392 need_version=no 15393 soname_spec='${libname}${release}${shared_ext}$major' 15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15395 case $host_os in 15396 irix5* | nonstopux*) 15397 libsuff= shlibsuff= 15398 ;; 15399 *) 15400 case $LD in # libtool.m4 will add one of these switches to LD 15401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15402 libsuff= shlibsuff= libmagic=32-bit;; 15403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15404 libsuff=32 shlibsuff=N32 libmagic=N32;; 15405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15406 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15407 *) libsuff= shlibsuff= libmagic=never-match;; 15408 esac 15409 ;; 15410 esac 15411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15412 shlibpath_overrides_runpath=no 15413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15415 hardcode_into_libs=yes 15416 ;; 15417 15418# No shared lib support for Linux oldld, aout, or coff. 15419linux*oldld* | linux*aout* | linux*coff*) 15420 dynamic_linker=no 15421 ;; 15422 15423# This must be Linux ELF. 15424linux*) 15425 version_type=linux 15426 need_lib_prefix=no 15427 need_version=no 15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15429 soname_spec='${libname}${release}${shared_ext}$major' 15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15431 shlibpath_var=LD_LIBRARY_PATH 15432 shlibpath_overrides_runpath=no 15433 # This implies no fast_install, which is unacceptable. 15434 # Some rework will be needed to allow for fast_install 15435 # before this can be enabled. 15436 hardcode_into_libs=yes 15437 15438 # Append ld.so.conf contents to the search path 15439 if test -f /etc/ld.so.conf; then 15440 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15441 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15442 fi 15443 15444 # We used to test for /lib/ld.so.1 and disable shared libraries on 15445 # powerpc, because MkLinux only supported shared libraries with the 15446 # GNU dynamic linker. Since this was broken with cross compilers, 15447 # most powerpc-linux boxes support dynamic linking these days and 15448 # people can always --disable-shared, the test was removed, and we 15449 # assume the GNU/Linux dynamic linker is in use. 15450 dynamic_linker='GNU/Linux ld.so' 15451 ;; 15452 15453knetbsd*-gnu) 15454 version_type=linux 15455 need_lib_prefix=no 15456 need_version=no 15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15458 soname_spec='${libname}${release}${shared_ext}$major' 15459 shlibpath_var=LD_LIBRARY_PATH 15460 shlibpath_overrides_runpath=no 15461 hardcode_into_libs=yes 15462 dynamic_linker='GNU ld.so' 15463 ;; 15464 15465netbsd*) 15466 version_type=sunos 15467 need_lib_prefix=no 15468 need_version=no 15469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15472 dynamic_linker='NetBSD (a.out) ld.so' 15473 else 15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15475 soname_spec='${libname}${release}${shared_ext}$major' 15476 dynamic_linker='NetBSD ld.elf_so' 15477 fi 15478 shlibpath_var=LD_LIBRARY_PATH 15479 shlibpath_overrides_runpath=yes 15480 hardcode_into_libs=yes 15481 ;; 15482 15483newsos6) 15484 version_type=linux 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15486 shlibpath_var=LD_LIBRARY_PATH 15487 shlibpath_overrides_runpath=yes 15488 ;; 15489 15490nto-qnx*) 15491 version_type=linux 15492 need_lib_prefix=no 15493 need_version=no 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15495 soname_spec='${libname}${release}${shared_ext}$major' 15496 shlibpath_var=LD_LIBRARY_PATH 15497 shlibpath_overrides_runpath=yes 15498 ;; 15499 15500openbsd*) 15501 version_type=sunos 15502 sys_lib_dlsearch_path_spec="/usr/lib" 15503 need_lib_prefix=no 15504 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15505 case $host_os in 15506 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15507 *) need_version=no ;; 15508 esac 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15513 case $host_os in 15514 openbsd2.[89] | openbsd2.[89].*) 15515 shlibpath_overrides_runpath=no 15516 ;; 15517 *) 15518 shlibpath_overrides_runpath=yes 15519 ;; 15520 esac 15521 else 15522 shlibpath_overrides_runpath=yes 15523 fi 15524 ;; 15525 15526os2*) 15527 libname_spec='$name' 15528 shrext_cmds=".dll" 15529 need_lib_prefix=no 15530 library_names_spec='$libname${shared_ext} $libname.a' 15531 dynamic_linker='OS/2 ld.exe' 15532 shlibpath_var=LIBPATH 15533 ;; 15534 15535osf3* | osf4* | osf5*) 15536 version_type=osf 15537 need_lib_prefix=no 15538 need_version=no 15539 soname_spec='${libname}${release}${shared_ext}$major' 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15541 shlibpath_var=LD_LIBRARY_PATH 15542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15544 ;; 15545 15546solaris*) 15547 version_type=linux 15548 need_lib_prefix=no 15549 need_version=no 15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15551 soname_spec='${libname}${release}${shared_ext}$major' 15552 shlibpath_var=LD_LIBRARY_PATH 15553 shlibpath_overrides_runpath=yes 15554 hardcode_into_libs=yes 15555 # ldd complains unless libraries are executable 15556 postinstall_cmds='chmod +x $lib' 15557 ;; 15558 15559sunos4*) 15560 version_type=sunos 15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15563 shlibpath_var=LD_LIBRARY_PATH 15564 shlibpath_overrides_runpath=yes 15565 if test "$with_gnu_ld" = yes; then 15566 need_lib_prefix=no 15567 fi 15568 need_version=yes 15569 ;; 15570 15571sysv4 | sysv4.3*) 15572 version_type=linux 15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15574 soname_spec='${libname}${release}${shared_ext}$major' 15575 shlibpath_var=LD_LIBRARY_PATH 15576 case $host_vendor in 15577 sni) 15578 shlibpath_overrides_runpath=no 15579 need_lib_prefix=no 15580 export_dynamic_flag_spec='${wl}-Blargedynsym' 15581 runpath_var=LD_RUN_PATH 15582 ;; 15583 siemens) 15584 need_lib_prefix=no 15585 ;; 15586 motorola) 15587 need_lib_prefix=no 15588 need_version=no 15589 shlibpath_overrides_runpath=no 15590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15591 ;; 15592 esac 15593 ;; 15594 15595sysv4*MP*) 15596 if test -d /usr/nec ;then 15597 version_type=linux 15598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15599 soname_spec='$libname${shared_ext}.$major' 15600 shlibpath_var=LD_LIBRARY_PATH 15601 fi 15602 ;; 15603 15604sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15605 version_type=freebsd-elf 15606 need_lib_prefix=no 15607 need_version=no 15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15609 soname_spec='${libname}${release}${shared_ext}$major' 15610 shlibpath_var=LD_LIBRARY_PATH 15611 hardcode_into_libs=yes 15612 if test "$with_gnu_ld" = yes; then 15613 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15614 shlibpath_overrides_runpath=no 15615 else 15616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15617 shlibpath_overrides_runpath=yes 15618 case $host_os in 15619 sco3.2v5*) 15620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15621 ;; 15622 esac 15623 fi 15624 sys_lib_dlsearch_path_spec='/usr/lib' 15625 ;; 15626 15627uts4*) 15628 version_type=linux 15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15630 soname_spec='${libname}${release}${shared_ext}$major' 15631 shlibpath_var=LD_LIBRARY_PATH 15632 ;; 15633 15634*) 15635 dynamic_linker=no 15636 ;; 15637esac 15638{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15639echo "${ECHO_T}$dynamic_linker" >&6; } 15640test "$dynamic_linker" = no && can_build_shared=no 15641 15642variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15643if test "$GCC" = yes; then 15644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15645fi 15646 15647{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15648echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15649hardcode_action_F77= 15650if test -n "$hardcode_libdir_flag_spec_F77" || \ 15651 test -n "$runpath_var_F77" || \ 15652 test "X$hardcode_automatic_F77" = "Xyes" ; then 15653 15654 # We can hardcode non-existant directories. 15655 if test "$hardcode_direct_F77" != no && 15656 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15657 # have to relink, otherwise we might link with an installed library 15658 # when we should be linking with a yet-to-be-installed one 15659 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15660 test "$hardcode_minus_L_F77" != no; then 15661 # Linking always hardcodes the temporary library directory. 15662 hardcode_action_F77=relink 15663 else 15664 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15665 hardcode_action_F77=immediate 15666 fi 15667else 15668 # We cannot hardcode anything, or else we can only hardcode existing 15669 # directories. 15670 hardcode_action_F77=unsupported 15671fi 15672{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15673echo "${ECHO_T}$hardcode_action_F77" >&6; } 15674 15675if test "$hardcode_action_F77" = relink; then 15676 # Fast installation is not supported 15677 enable_fast_install=no 15678elif test "$shlibpath_overrides_runpath" = yes || 15679 test "$enable_shared" = no; then 15680 # Fast installation is not necessary 15681 enable_fast_install=needless 15682fi 15683 15684 15685# The else clause should only fire when bootstrapping the 15686# libtool distribution, otherwise you forgot to ship ltmain.sh 15687# with your package, and you will get complaints that there are 15688# no rules to generate ltmain.sh. 15689if test -f "$ltmain"; then 15690 # See if we are running on zsh, and set the options which allow our commands through 15691 # without removal of \ escapes. 15692 if test -n "${ZSH_VERSION+set}" ; then 15693 setopt NO_GLOB_SUBST 15694 fi 15695 # Now quote all the things that may contain metacharacters while being 15696 # careful not to overquote the AC_SUBSTed values. We take copies of the 15697 # variables and quote the copies for generation of the libtool script. 15698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15699 SED SHELL STRIP \ 15700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15702 deplibs_check_method reload_flag reload_cmds need_locks \ 15703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15704 lt_cv_sys_global_symbol_to_c_name_address \ 15705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15706 old_postinstall_cmds old_postuninstall_cmds \ 15707 compiler_F77 \ 15708 CC_F77 \ 15709 LD_F77 \ 15710 lt_prog_compiler_wl_F77 \ 15711 lt_prog_compiler_pic_F77 \ 15712 lt_prog_compiler_static_F77 \ 15713 lt_prog_compiler_no_builtin_flag_F77 \ 15714 export_dynamic_flag_spec_F77 \ 15715 thread_safe_flag_spec_F77 \ 15716 whole_archive_flag_spec_F77 \ 15717 enable_shared_with_static_runtimes_F77 \ 15718 old_archive_cmds_F77 \ 15719 old_archive_from_new_cmds_F77 \ 15720 predep_objects_F77 \ 15721 postdep_objects_F77 \ 15722 predeps_F77 \ 15723 postdeps_F77 \ 15724 compiler_lib_search_path_F77 \ 15725 archive_cmds_F77 \ 15726 archive_expsym_cmds_F77 \ 15727 postinstall_cmds_F77 \ 15728 postuninstall_cmds_F77 \ 15729 old_archive_from_expsyms_cmds_F77 \ 15730 allow_undefined_flag_F77 \ 15731 no_undefined_flag_F77 \ 15732 export_symbols_cmds_F77 \ 15733 hardcode_libdir_flag_spec_F77 \ 15734 hardcode_libdir_flag_spec_ld_F77 \ 15735 hardcode_libdir_separator_F77 \ 15736 hardcode_automatic_F77 \ 15737 module_cmds_F77 \ 15738 module_expsym_cmds_F77 \ 15739 lt_cv_prog_compiler_c_o_F77 \ 15740 exclude_expsyms_F77 \ 15741 include_expsyms_F77; do 15742 15743 case $var in 15744 old_archive_cmds_F77 | \ 15745 old_archive_from_new_cmds_F77 | \ 15746 archive_cmds_F77 | \ 15747 archive_expsym_cmds_F77 | \ 15748 module_cmds_F77 | \ 15749 module_expsym_cmds_F77 | \ 15750 old_archive_from_expsyms_cmds_F77 | \ 15751 export_symbols_cmds_F77 | \ 15752 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15753 postinstall_cmds | postuninstall_cmds | \ 15754 old_postinstall_cmds | old_postuninstall_cmds | \ 15755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15756 # Double-quote double-evaled strings. 15757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15758 ;; 15759 *) 15760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15761 ;; 15762 esac 15763 done 15764 15765 case $lt_echo in 15766 *'\$0 --fallback-echo"') 15767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15768 ;; 15769 esac 15770 15771cfgfile="$ofile" 15772 15773 cat <<__EOF__ >> "$cfgfile" 15774# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15775 15776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15777 15778# Shell to use when invoking shell scripts. 15779SHELL=$lt_SHELL 15780 15781# Whether or not to build shared libraries. 15782build_libtool_libs=$enable_shared 15783 15784# Whether or not to build static libraries. 15785build_old_libs=$enable_static 15786 15787# Whether or not to add -lc for building shared libraries. 15788build_libtool_need_lc=$archive_cmds_need_lc_F77 15789 15790# Whether or not to disallow shared libs when runtime libs are static 15791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15792 15793# Whether or not to optimize for fast installation. 15794fast_install=$enable_fast_install 15795 15796# The host system. 15797host_alias=$host_alias 15798host=$host 15799host_os=$host_os 15800 15801# The build system. 15802build_alias=$build_alias 15803build=$build 15804build_os=$build_os 15805 15806# An echo program that does not interpret backslashes. 15807echo=$lt_echo 15808 15809# The archiver. 15810AR=$lt_AR 15811AR_FLAGS=$lt_AR_FLAGS 15812 15813# A C compiler. 15814LTCC=$lt_LTCC 15815 15816# LTCC compiler flags. 15817LTCFLAGS=$lt_LTCFLAGS 15818 15819# A language-specific compiler. 15820CC=$lt_compiler_F77 15821 15822# Is the compiler the GNU C compiler? 15823with_gcc=$GCC_F77 15824 15825# An ERE matcher. 15826EGREP=$lt_EGREP 15827 15828# The linker used to build libraries. 15829LD=$lt_LD_F77 15830 15831# Whether we need hard or soft links. 15832LN_S=$lt_LN_S 15833 15834# A BSD-compatible nm program. 15835NM=$lt_NM 15836 15837# A symbol stripping program 15838STRIP=$lt_STRIP 15839 15840# Used to examine libraries when file_magic_cmd begins "file" 15841MAGIC_CMD=$MAGIC_CMD 15842 15843# Used on cygwin: DLL creation program. 15844DLLTOOL="$DLLTOOL" 15845 15846# Used on cygwin: object dumper. 15847OBJDUMP="$OBJDUMP" 15848 15849# Used on cygwin: assembler. 15850AS="$AS" 15851 15852# The name of the directory that contains temporary libtool files. 15853objdir=$objdir 15854 15855# How to create reloadable object files. 15856reload_flag=$lt_reload_flag 15857reload_cmds=$lt_reload_cmds 15858 15859# How to pass a linker flag through the compiler. 15860wl=$lt_lt_prog_compiler_wl_F77 15861 15862# Object file suffix (normally "o"). 15863objext="$ac_objext" 15864 15865# Old archive suffix (normally "a"). 15866libext="$libext" 15867 15868# Shared library suffix (normally ".so"). 15869shrext_cmds='$shrext_cmds' 15870 15871# Executable file suffix (normally ""). 15872exeext="$exeext" 15873 15874# Additional compiler flags for building library objects. 15875pic_flag=$lt_lt_prog_compiler_pic_F77 15876pic_mode=$pic_mode 15877 15878# What is the maximum length of a command? 15879max_cmd_len=$lt_cv_sys_max_cmd_len 15880 15881# Does compiler simultaneously support -c and -o options? 15882compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15883 15884# Must we lock files when doing compilation? 15885need_locks=$lt_need_locks 15886 15887# Do we need the lib prefix for modules? 15888need_lib_prefix=$need_lib_prefix 15889 15890# Do we need a version for libraries? 15891need_version=$need_version 15892 15893# Whether dlopen is supported. 15894dlopen_support=$enable_dlopen 15895 15896# Whether dlopen of programs is supported. 15897dlopen_self=$enable_dlopen_self 15898 15899# Whether dlopen of statically linked programs is supported. 15900dlopen_self_static=$enable_dlopen_self_static 15901 15902# Compiler flag to prevent dynamic linking. 15903link_static_flag=$lt_lt_prog_compiler_static_F77 15904 15905# Compiler flag to turn off builtin functions. 15906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15907 15908# Compiler flag to allow reflexive dlopens. 15909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15910 15911# Compiler flag to generate shared objects directly from archives. 15912whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15913 15914# Compiler flag to generate thread-safe objects. 15915thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15916 15917# Library versioning type. 15918version_type=$version_type 15919 15920# Format of library name prefix. 15921libname_spec=$lt_libname_spec 15922 15923# List of archive names. First name is the real one, the rest are links. 15924# The last name is the one that the linker finds with -lNAME. 15925library_names_spec=$lt_library_names_spec 15926 15927# The coded name of the library, if different from the real name. 15928soname_spec=$lt_soname_spec 15929 15930# Commands used to build and install an old-style archive. 15931RANLIB=$lt_RANLIB 15932old_archive_cmds=$lt_old_archive_cmds_F77 15933old_postinstall_cmds=$lt_old_postinstall_cmds 15934old_postuninstall_cmds=$lt_old_postuninstall_cmds 15935 15936# Create an old-style archive from a shared archive. 15937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15938 15939# Create a temporary old-style archive to link instead of a shared archive. 15940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15941 15942# Commands used to build and install a shared archive. 15943archive_cmds=$lt_archive_cmds_F77 15944archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15945postinstall_cmds=$lt_postinstall_cmds 15946postuninstall_cmds=$lt_postuninstall_cmds 15947 15948# Commands used to build a loadable module (assumed same as above if empty) 15949module_cmds=$lt_module_cmds_F77 15950module_expsym_cmds=$lt_module_expsym_cmds_F77 15951 15952# Commands to strip libraries. 15953old_striplib=$lt_old_striplib 15954striplib=$lt_striplib 15955 15956# Dependencies to place before the objects being linked to create a 15957# shared library. 15958predep_objects=$lt_predep_objects_F77 15959 15960# Dependencies to place after the objects being linked to create a 15961# shared library. 15962postdep_objects=$lt_postdep_objects_F77 15963 15964# Dependencies to place before the objects being linked to create a 15965# shared library. 15966predeps=$lt_predeps_F77 15967 15968# Dependencies to place after the objects being linked to create a 15969# shared library. 15970postdeps=$lt_postdeps_F77 15971 15972# The library search path used internally by the compiler when linking 15973# a shared library. 15974compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15975 15976# Method to check whether dependent libraries are shared objects. 15977deplibs_check_method=$lt_deplibs_check_method 15978 15979# Command to use when deplibs_check_method == file_magic. 15980file_magic_cmd=$lt_file_magic_cmd 15981 15982# Flag that allows shared libraries with undefined symbols to be built. 15983allow_undefined_flag=$lt_allow_undefined_flag_F77 15984 15985# Flag that forces no undefined symbols. 15986no_undefined_flag=$lt_no_undefined_flag_F77 15987 15988# Commands used to finish a libtool library installation in a directory. 15989finish_cmds=$lt_finish_cmds 15990 15991# Same as above, but a single script fragment to be evaled but not shown. 15992finish_eval=$lt_finish_eval 15993 15994# Take the output of nm and produce a listing of raw symbols and C names. 15995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15996 15997# Transform the output of nm in a proper C declaration 15998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15999 16000# Transform the output of nm in a C name address pair 16001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16002 16003# This is the shared library runtime path variable. 16004runpath_var=$runpath_var 16005 16006# This is the shared library path variable. 16007shlibpath_var=$shlibpath_var 16008 16009# Is shlibpath searched before the hard-coded library search path? 16010shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16011 16012# How to hardcode a shared library path into an executable. 16013hardcode_action=$hardcode_action_F77 16014 16015# Whether we should hardcode library paths into libraries. 16016hardcode_into_libs=$hardcode_into_libs 16017 16018# Flag to hardcode \$libdir into a binary during linking. 16019# This must work even if \$libdir does not exist. 16020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16021 16022# If ld is used when linking, flag to hardcode \$libdir into 16023# a binary during linking. This must work even if \$libdir does 16024# not exist. 16025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16026 16027# Whether we need a single -rpath flag with a separated argument. 16028hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16029 16030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16031# resulting binary. 16032hardcode_direct=$hardcode_direct_F77 16033 16034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16035# resulting binary. 16036hardcode_minus_L=$hardcode_minus_L_F77 16037 16038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16039# the resulting binary. 16040hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16041 16042# Set to yes if building a shared library automatically hardcodes DIR into the library 16043# and all subsequent libraries and executables linked against it. 16044hardcode_automatic=$hardcode_automatic_F77 16045 16046# Variables whose values should be saved in libtool wrapper scripts and 16047# restored at relink time. 16048variables_saved_for_relink="$variables_saved_for_relink" 16049 16050# Whether libtool must link a program against all its dependency libraries. 16051link_all_deplibs=$link_all_deplibs_F77 16052 16053# Compile-time system search path for libraries 16054sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16055 16056# Run-time system search path for libraries 16057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16058 16059# Fix the shell variable \$srcfile for the compiler. 16060fix_srcfile_path="$fix_srcfile_path_F77" 16061 16062# Set to yes if exported symbols are required. 16063always_export_symbols=$always_export_symbols_F77 16064 16065# The commands to list exported symbols. 16066export_symbols_cmds=$lt_export_symbols_cmds_F77 16067 16068# The commands to extract the exported symbol list from a shared archive. 16069extract_expsyms_cmds=$lt_extract_expsyms_cmds 16070 16071# Symbols that should not be listed in the preloaded symbols. 16072exclude_expsyms=$lt_exclude_expsyms_F77 16073 16074# Symbols that must always be exported. 16075include_expsyms=$lt_include_expsyms_F77 16076 16077# ### END LIBTOOL TAG CONFIG: $tagname 16078 16079__EOF__ 16080 16081 16082else 16083 # If there is no Makefile yet, we rely on a make rule to execute 16084 # `config.status --recheck' to rerun these tests and create the 16085 # libtool script then. 16086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16087 if test -f "$ltmain_in"; then 16088 test -f Makefile && make "$ltmain" 16089 fi 16090fi 16091 16092 16093ac_ext=c 16094ac_cpp='$CPP $CPPFLAGS' 16095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16097ac_compiler_gnu=$ac_cv_c_compiler_gnu 16098 16099CC="$lt_save_CC" 16100 16101 else 16102 tagname="" 16103 fi 16104 ;; 16105 16106 GCJ) 16107 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16108 16109 16110# Source file extension for Java test sources. 16111ac_ext=java 16112 16113# Object file extension for compiled Java test sources. 16114objext=o 16115objext_GCJ=$objext 16116 16117# Code to be used in simple compile tests 16118lt_simple_compile_test_code="class foo {}\n" 16119 16120# Code to be used in simple link tests 16121lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16122 16123# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16124 16125# If no C compiler was specified, use CC. 16126LTCC=${LTCC-"$CC"} 16127 16128# If no C compiler flags were specified, use CFLAGS. 16129LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16130 16131# Allow CC to be a program name with arguments. 16132compiler=$CC 16133 16134 16135# save warnings/boilerplate of simple test code 16136ac_outfile=conftest.$ac_objext 16137printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16139_lt_compiler_boilerplate=`cat conftest.err` 16140$rm conftest* 16141 16142ac_outfile=conftest.$ac_objext 16143printf "$lt_simple_link_test_code" >conftest.$ac_ext 16144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16145_lt_linker_boilerplate=`cat conftest.err` 16146$rm conftest* 16147 16148 16149# Allow CC to be a program name with arguments. 16150lt_save_CC="$CC" 16151CC=${GCJ-"gcj"} 16152compiler=$CC 16153compiler_GCJ=$CC 16154for cc_temp in $compiler""; do 16155 case $cc_temp in 16156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16158 \-*) ;; 16159 *) break;; 16160 esac 16161done 16162cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16163 16164 16165# GCJ did not exist at the time GCC didn't implicitly link libc in. 16166archive_cmds_need_lc_GCJ=no 16167 16168old_archive_cmds_GCJ=$old_archive_cmds 16169 16170 16171lt_prog_compiler_no_builtin_flag_GCJ= 16172 16173if test "$GCC" = yes; then 16174 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16175 16176 16177{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16178echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16179if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16180 echo $ECHO_N "(cached) $ECHO_C" >&6 16181else 16182 lt_cv_prog_compiler_rtti_exceptions=no 16183 ac_outfile=conftest.$ac_objext 16184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16185 lt_compiler_flag="-fno-rtti -fno-exceptions" 16186 # Insert the option either (1) after the last *FLAGS variable, or 16187 # (2) before a word containing "conftest.", or (3) at the end. 16188 # Note that $ac_compile itself does not contain backslashes and begins 16189 # with a dollar sign (not a hyphen), so the echo should work correctly. 16190 # The option is referenced via a variable to avoid confusing sed. 16191 lt_compile=`echo "$ac_compile" | $SED \ 16192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16194 -e 's:$: $lt_compiler_flag:'` 16195 (eval echo "\"\$as_me:16195: $lt_compile\"" >&5) 16196 (eval "$lt_compile" 2>conftest.err) 16197 ac_status=$? 16198 cat conftest.err >&5 16199 echo "$as_me:16199: \$? = $ac_status" >&5 16200 if (exit $ac_status) && test -s "$ac_outfile"; then 16201 # The compiler can only warn and ignore the option if not recognized 16202 # So say no if there are warnings other than the usual output. 16203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16206 lt_cv_prog_compiler_rtti_exceptions=yes 16207 fi 16208 fi 16209 $rm conftest* 16210 16211fi 16212{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16213echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16214 16215if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16216 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16217else 16218 : 16219fi 16220 16221fi 16222 16223lt_prog_compiler_wl_GCJ= 16224lt_prog_compiler_pic_GCJ= 16225lt_prog_compiler_static_GCJ= 16226 16227{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16228echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16229 16230 if test "$GCC" = yes; then 16231 lt_prog_compiler_wl_GCJ='-Wl,' 16232 lt_prog_compiler_static_GCJ='-static' 16233 16234 case $host_os in 16235 aix*) 16236 # All AIX code is PIC. 16237 if test "$host_cpu" = ia64; then 16238 # AIX 5 now supports IA64 processor 16239 lt_prog_compiler_static_GCJ='-Bstatic' 16240 fi 16241 ;; 16242 16243 amigaos*) 16244 # FIXME: we need at least 68020 code to build shared libraries, but 16245 # adding the `-m68020' flag to GCC prevents building anything better, 16246 # like `-m68040'. 16247 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16248 ;; 16249 16250 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16251 # PIC is the default for these OSes. 16252 ;; 16253 16254 mingw* | pw32* | os2*) 16255 # This hack is so that the source file can tell whether it is being 16256 # built for inclusion in a dll (and should export symbols for example). 16257 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16258 ;; 16259 16260 darwin* | rhapsody*) 16261 # PIC is the default on this platform 16262 # Common symbols not allowed in MH_DYLIB files 16263 lt_prog_compiler_pic_GCJ='-fno-common' 16264 ;; 16265 16266 interix3*) 16267 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16268 # Instead, we relocate shared libraries at runtime. 16269 ;; 16270 16271 msdosdjgpp*) 16272 # Just because we use GCC doesn't mean we suddenly get shared libraries 16273 # on systems that don't support them. 16274 lt_prog_compiler_can_build_shared_GCJ=no 16275 enable_shared=no 16276 ;; 16277 16278 sysv4*MP*) 16279 if test -d /usr/nec; then 16280 lt_prog_compiler_pic_GCJ=-Kconform_pic 16281 fi 16282 ;; 16283 16284 hpux*) 16285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16286 # not for PA HP-UX. 16287 case $host_cpu in 16288 hppa*64*|ia64*) 16289 # +Z the default 16290 ;; 16291 *) 16292 lt_prog_compiler_pic_GCJ='-fPIC' 16293 ;; 16294 esac 16295 ;; 16296 16297 *) 16298 lt_prog_compiler_pic_GCJ='-fPIC' 16299 ;; 16300 esac 16301 else 16302 # PORTME Check for flag to pass linker flags through the system compiler. 16303 case $host_os in 16304 aix*) 16305 lt_prog_compiler_wl_GCJ='-Wl,' 16306 if test "$host_cpu" = ia64; then 16307 # AIX 5 now supports IA64 processor 16308 lt_prog_compiler_static_GCJ='-Bstatic' 16309 else 16310 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16311 fi 16312 ;; 16313 darwin*) 16314 # PIC is the default on this platform 16315 # Common symbols not allowed in MH_DYLIB files 16316 case $cc_basename in 16317 xlc*) 16318 lt_prog_compiler_pic_GCJ='-qnocommon' 16319 lt_prog_compiler_wl_GCJ='-Wl,' 16320 ;; 16321 esac 16322 ;; 16323 16324 mingw* | pw32* | os2*) 16325 # This hack is so that the source file can tell whether it is being 16326 # built for inclusion in a dll (and should export symbols for example). 16327 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16328 ;; 16329 16330 hpux9* | hpux10* | hpux11*) 16331 lt_prog_compiler_wl_GCJ='-Wl,' 16332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16333 # not for PA HP-UX. 16334 case $host_cpu in 16335 hppa*64*|ia64*) 16336 # +Z the default 16337 ;; 16338 *) 16339 lt_prog_compiler_pic_GCJ='+Z' 16340 ;; 16341 esac 16342 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16343 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16344 ;; 16345 16346 irix5* | irix6* | nonstopux*) 16347 lt_prog_compiler_wl_GCJ='-Wl,' 16348 # PIC (with -KPIC) is the default. 16349 lt_prog_compiler_static_GCJ='-non_shared' 16350 ;; 16351 16352 newsos6) 16353 lt_prog_compiler_pic_GCJ='-KPIC' 16354 lt_prog_compiler_static_GCJ='-Bstatic' 16355 ;; 16356 16357 linux*) 16358 case $cc_basename in 16359 icc* | ecc*) 16360 lt_prog_compiler_wl_GCJ='-Wl,' 16361 lt_prog_compiler_pic_GCJ='-KPIC' 16362 lt_prog_compiler_static_GCJ='-static' 16363 ;; 16364 pgcc* | pgf77* | pgf90* | pgf95*) 16365 # Portland Group compilers (*not* the Pentium gcc compiler, 16366 # which looks to be a dead project) 16367 lt_prog_compiler_wl_GCJ='-Wl,' 16368 lt_prog_compiler_pic_GCJ='-fpic' 16369 lt_prog_compiler_static_GCJ='-Bstatic' 16370 ;; 16371 ccc*) 16372 lt_prog_compiler_wl_GCJ='-Wl,' 16373 # All Alpha code is PIC. 16374 lt_prog_compiler_static_GCJ='-non_shared' 16375 ;; 16376 esac 16377 ;; 16378 16379 osf3* | osf4* | osf5*) 16380 lt_prog_compiler_wl_GCJ='-Wl,' 16381 # All OSF/1 code is PIC. 16382 lt_prog_compiler_static_GCJ='-non_shared' 16383 ;; 16384 16385 solaris*) 16386 lt_prog_compiler_pic_GCJ='-KPIC' 16387 lt_prog_compiler_static_GCJ='-Bstatic' 16388 case $cc_basename in 16389 f77* | f90* | f95*) 16390 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16391 *) 16392 lt_prog_compiler_wl_GCJ='-Wl,';; 16393 esac 16394 ;; 16395 16396 sunos4*) 16397 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16398 lt_prog_compiler_pic_GCJ='-PIC' 16399 lt_prog_compiler_static_GCJ='-Bstatic' 16400 ;; 16401 16402 sysv4 | sysv4.2uw2* | sysv4.3*) 16403 lt_prog_compiler_wl_GCJ='-Wl,' 16404 lt_prog_compiler_pic_GCJ='-KPIC' 16405 lt_prog_compiler_static_GCJ='-Bstatic' 16406 ;; 16407 16408 sysv4*MP*) 16409 if test -d /usr/nec ;then 16410 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16411 lt_prog_compiler_static_GCJ='-Bstatic' 16412 fi 16413 ;; 16414 16415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16416 lt_prog_compiler_wl_GCJ='-Wl,' 16417 lt_prog_compiler_pic_GCJ='-KPIC' 16418 lt_prog_compiler_static_GCJ='-Bstatic' 16419 ;; 16420 16421 unicos*) 16422 lt_prog_compiler_wl_GCJ='-Wl,' 16423 lt_prog_compiler_can_build_shared_GCJ=no 16424 ;; 16425 16426 uts4*) 16427 lt_prog_compiler_pic_GCJ='-pic' 16428 lt_prog_compiler_static_GCJ='-Bstatic' 16429 ;; 16430 16431 *) 16432 lt_prog_compiler_can_build_shared_GCJ=no 16433 ;; 16434 esac 16435 fi 16436 16437{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16438echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16439 16440# 16441# Check to make sure the PIC flag actually works. 16442# 16443if test -n "$lt_prog_compiler_pic_GCJ"; then 16444 16445{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16446echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16447if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16448 echo $ECHO_N "(cached) $ECHO_C" >&6 16449else 16450 lt_prog_compiler_pic_works_GCJ=no 16451 ac_outfile=conftest.$ac_objext 16452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16453 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16454 # Insert the option either (1) after the last *FLAGS variable, or 16455 # (2) before a word containing "conftest.", or (3) at the end. 16456 # Note that $ac_compile itself does not contain backslashes and begins 16457 # with a dollar sign (not a hyphen), so the echo should work correctly. 16458 # The option is referenced via a variable to avoid confusing sed. 16459 lt_compile=`echo "$ac_compile" | $SED \ 16460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16462 -e 's:$: $lt_compiler_flag:'` 16463 (eval echo "\"\$as_me:16463: $lt_compile\"" >&5) 16464 (eval "$lt_compile" 2>conftest.err) 16465 ac_status=$? 16466 cat conftest.err >&5 16467 echo "$as_me:16467: \$? = $ac_status" >&5 16468 if (exit $ac_status) && test -s "$ac_outfile"; then 16469 # The compiler can only warn and ignore the option if not recognized 16470 # So say no if there are warnings other than the usual output. 16471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16474 lt_prog_compiler_pic_works_GCJ=yes 16475 fi 16476 fi 16477 $rm conftest* 16478 16479fi 16480{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16481echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16482 16483if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16484 case $lt_prog_compiler_pic_GCJ in 16485 "" | " "*) ;; 16486 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16487 esac 16488else 16489 lt_prog_compiler_pic_GCJ= 16490 lt_prog_compiler_can_build_shared_GCJ=no 16491fi 16492 16493fi 16494case $host_os in 16495 # For platforms which do not support PIC, -DPIC is meaningless: 16496 *djgpp*) 16497 lt_prog_compiler_pic_GCJ= 16498 ;; 16499 *) 16500 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16501 ;; 16502esac 16503 16504# 16505# Check to make sure the static flag actually works. 16506# 16507wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16508{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16509echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16510if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16511 echo $ECHO_N "(cached) $ECHO_C" >&6 16512else 16513 lt_prog_compiler_static_works_GCJ=no 16514 save_LDFLAGS="$LDFLAGS" 16515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16516 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16518 # The linker can only warn and ignore the option if not recognized 16519 # So say no if there are warnings 16520 if test -s conftest.err; then 16521 # Append any errors to the config.log. 16522 cat conftest.err 1>&5 16523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16525 if diff conftest.exp conftest.er2 >/dev/null; then 16526 lt_prog_compiler_static_works_GCJ=yes 16527 fi 16528 else 16529 lt_prog_compiler_static_works_GCJ=yes 16530 fi 16531 fi 16532 $rm conftest* 16533 LDFLAGS="$save_LDFLAGS" 16534 16535fi 16536{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16537echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16538 16539if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16540 : 16541else 16542 lt_prog_compiler_static_GCJ= 16543fi 16544 16545 16546{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16547echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16548if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16549 echo $ECHO_N "(cached) $ECHO_C" >&6 16550else 16551 lt_cv_prog_compiler_c_o_GCJ=no 16552 $rm -r conftest 2>/dev/null 16553 mkdir conftest 16554 cd conftest 16555 mkdir out 16556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16557 16558 lt_compiler_flag="-o out/conftest2.$ac_objext" 16559 # Insert the option either (1) after the last *FLAGS variable, or 16560 # (2) before a word containing "conftest.", or (3) at the end. 16561 # Note that $ac_compile itself does not contain backslashes and begins 16562 # with a dollar sign (not a hyphen), so the echo should work correctly. 16563 lt_compile=`echo "$ac_compile" | $SED \ 16564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16566 -e 's:$: $lt_compiler_flag:'` 16567 (eval echo "\"\$as_me:16567: $lt_compile\"" >&5) 16568 (eval "$lt_compile" 2>out/conftest.err) 16569 ac_status=$? 16570 cat out/conftest.err >&5 16571 echo "$as_me:16571: \$? = $ac_status" >&5 16572 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16573 then 16574 # The compiler can only warn and ignore the option if not recognized 16575 # So say no if there are warnings 16576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16579 lt_cv_prog_compiler_c_o_GCJ=yes 16580 fi 16581 fi 16582 chmod u+w . 2>&5 16583 $rm conftest* 16584 # SGI C++ compiler will create directory out/ii_files/ for 16585 # template instantiation 16586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16587 $rm out/* && rmdir out 16588 cd .. 16589 rmdir conftest 16590 $rm conftest* 16591 16592fi 16593{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16594echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16595 16596 16597hard_links="nottested" 16598if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16599 # do not overwrite the value of need_locks provided by the user 16600 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16601echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16602 hard_links=yes 16603 $rm conftest* 16604 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16605 touch conftest.a 16606 ln conftest.a conftest.b 2>&5 || hard_links=no 16607 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16608 { echo "$as_me:$LINENO: result: $hard_links" >&5 16609echo "${ECHO_T}$hard_links" >&6; } 16610 if test "$hard_links" = no; then 16611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16612echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16613 need_locks=warn 16614 fi 16615else 16616 need_locks=no 16617fi 16618 16619{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16621 16622 runpath_var= 16623 allow_undefined_flag_GCJ= 16624 enable_shared_with_static_runtimes_GCJ=no 16625 archive_cmds_GCJ= 16626 archive_expsym_cmds_GCJ= 16627 old_archive_From_new_cmds_GCJ= 16628 old_archive_from_expsyms_cmds_GCJ= 16629 export_dynamic_flag_spec_GCJ= 16630 whole_archive_flag_spec_GCJ= 16631 thread_safe_flag_spec_GCJ= 16632 hardcode_libdir_flag_spec_GCJ= 16633 hardcode_libdir_flag_spec_ld_GCJ= 16634 hardcode_libdir_separator_GCJ= 16635 hardcode_direct_GCJ=no 16636 hardcode_minus_L_GCJ=no 16637 hardcode_shlibpath_var_GCJ=unsupported 16638 link_all_deplibs_GCJ=unknown 16639 hardcode_automatic_GCJ=no 16640 module_cmds_GCJ= 16641 module_expsym_cmds_GCJ= 16642 always_export_symbols_GCJ=no 16643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16644 # include_expsyms should be a list of space-separated symbols to be *always* 16645 # included in the symbol list 16646 include_expsyms_GCJ= 16647 # exclude_expsyms can be an extended regexp of symbols to exclude 16648 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16650 # as well as any symbol that contains `d'. 16651 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16653 # platforms (ab)use it in PIC code, but their linkers get confused if 16654 # the symbol is explicitly referenced. Since portable code cannot 16655 # rely on this symbol name, it's probably fine to never include it in 16656 # preloaded symbol tables. 16657 extract_expsyms_cmds= 16658 # Just being paranoid about ensuring that cc_basename is set. 16659 for cc_temp in $compiler""; do 16660 case $cc_temp in 16661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16663 \-*) ;; 16664 *) break;; 16665 esac 16666done 16667cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16668 16669 case $host_os in 16670 cygwin* | mingw* | pw32*) 16671 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16672 # When not using gcc, we currently assume that we are using 16673 # Microsoft Visual C++. 16674 if test "$GCC" != yes; then 16675 with_gnu_ld=no 16676 fi 16677 ;; 16678 interix*) 16679 # we just hope/assume this is gcc and not c89 (= MSVC++) 16680 with_gnu_ld=yes 16681 ;; 16682 openbsd*) 16683 with_gnu_ld=no 16684 ;; 16685 esac 16686 16687 ld_shlibs_GCJ=yes 16688 if test "$with_gnu_ld" = yes; then 16689 # If archive_cmds runs LD, not CC, wlarc should be empty 16690 wlarc='${wl}' 16691 16692 # Set some defaults for GNU ld with shared library support. These 16693 # are reset later if shared libraries are not supported. Putting them 16694 # here allows them to be overridden if necessary. 16695 runpath_var=LD_RUN_PATH 16696 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16697 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16698 # ancient GNU ld didn't support --whole-archive et. al. 16699 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16700 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16701 else 16702 whole_archive_flag_spec_GCJ= 16703 fi 16704 supports_anon_versioning=no 16705 case `$LD -v 2>/dev/null` in 16706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16709 *\ 2.11.*) ;; # other 2.11 versions 16710 *) supports_anon_versioning=yes ;; 16711 esac 16712 16713 # See if GNU ld supports shared libraries. 16714 case $host_os in 16715 aix3* | aix4* | aix5*) 16716 # On AIX/PPC, the GNU linker is very broken 16717 if test "$host_cpu" != ia64; then 16718 ld_shlibs_GCJ=no 16719 cat <<EOF 1>&2 16720 16721*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16722*** to be unable to reliably create shared libraries on AIX. 16723*** Therefore, libtool is disabling shared libraries support. If you 16724*** really care for shared libraries, you may want to modify your PATH 16725*** so that a non-GNU linker is found, and then restart. 16726 16727EOF 16728 fi 16729 ;; 16730 16731 amigaos*) 16732 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)' 16733 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16734 hardcode_minus_L_GCJ=yes 16735 16736 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16737 # that the semantics of dynamic libraries on AmigaOS, at least up 16738 # to version 4, is to share data among multiple programs linked 16739 # with the same dynamic library. Since this doesn't match the 16740 # behavior of shared libraries on other platforms, we can't use 16741 # them. 16742 ld_shlibs_GCJ=no 16743 ;; 16744 16745 beos*) 16746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16747 allow_undefined_flag_GCJ=unsupported 16748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16749 # support --undefined. This deserves some investigation. FIXME 16750 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16751 else 16752 ld_shlibs_GCJ=no 16753 fi 16754 ;; 16755 16756 cygwin* | mingw* | pw32*) 16757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16758 # as there is no search path for DLLs. 16759 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16760 allow_undefined_flag_GCJ=unsupported 16761 always_export_symbols_GCJ=no 16762 enable_shared_with_static_runtimes_GCJ=yes 16763 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16764 16765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16767 # If the export-symbols file already is a .def file (1st line 16768 # is EXPORTS), use it as is; otherwise, prepend... 16769 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16770 cp $export_symbols $output_objdir/$soname.def; 16771 else 16772 echo EXPORTS > $output_objdir/$soname.def; 16773 cat $export_symbols >> $output_objdir/$soname.def; 16774 fi~ 16775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16776 else 16777 ld_shlibs_GCJ=no 16778 fi 16779 ;; 16780 16781 interix3*) 16782 hardcode_direct_GCJ=no 16783 hardcode_shlibpath_var_GCJ=no 16784 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16785 export_dynamic_flag_spec_GCJ='${wl}-E' 16786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16787 # Instead, shared libraries are loaded at an image base (0x10000000 by 16788 # default) and relocated if they conflict, which is a slow very memory 16789 # consuming and fragmenting process. To avoid this, we pick a random, 16790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16791 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16792 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' 16793 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' 16794 ;; 16795 16796 linux*) 16797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16798 tmp_addflag= 16799 case $cc_basename,$host_cpu in 16800 pgcc*) # Portland Group C compiler 16801 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' 16802 tmp_addflag=' $pic_flag' 16803 ;; 16804 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16805 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' 16806 tmp_addflag=' $pic_flag -Mnomain' ;; 16807 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16808 tmp_addflag=' -i_dynamic' ;; 16809 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16810 tmp_addflag=' -i_dynamic -nofor_main' ;; 16811 ifc* | ifort*) # Intel Fortran compiler 16812 tmp_addflag=' -nofor_main' ;; 16813 esac 16814 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16815 16816 if test $supports_anon_versioning = yes; then 16817 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16819 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16820 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16821 fi 16822 else 16823 ld_shlibs_GCJ=no 16824 fi 16825 ;; 16826 16827 netbsd*) 16828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16829 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16830 wlarc= 16831 else 16832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16833 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16834 fi 16835 ;; 16836 16837 solaris*) 16838 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16839 ld_shlibs_GCJ=no 16840 cat <<EOF 1>&2 16841 16842*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16843*** create shared libraries on Solaris systems. Therefore, libtool 16844*** is disabling shared libraries support. We urge you to upgrade GNU 16845*** binutils to release 2.9.1 or newer. Another option is to modify 16846*** your PATH or compiler configuration so that the native linker is 16847*** used, and then restart. 16848 16849EOF 16850 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16852 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16853 else 16854 ld_shlibs_GCJ=no 16855 fi 16856 ;; 16857 16858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16859 case `$LD -v 2>&1` in 16860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16861 ld_shlibs_GCJ=no 16862 cat <<_LT_EOF 1>&2 16863 16864*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16865*** reliably create shared libraries on SCO systems. Therefore, libtool 16866*** is disabling shared libraries support. We urge you to upgrade GNU 16867*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16868*** your PATH or compiler configuration so that the native linker is 16869*** used, and then restart. 16870 16871_LT_EOF 16872 ;; 16873 *) 16874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16875 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16877 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16878 else 16879 ld_shlibs_GCJ=no 16880 fi 16881 ;; 16882 esac 16883 ;; 16884 16885 sunos4*) 16886 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16887 wlarc= 16888 hardcode_direct_GCJ=yes 16889 hardcode_shlibpath_var_GCJ=no 16890 ;; 16891 16892 *) 16893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16896 else 16897 ld_shlibs_GCJ=no 16898 fi 16899 ;; 16900 esac 16901 16902 if test "$ld_shlibs_GCJ" = no; then 16903 runpath_var= 16904 hardcode_libdir_flag_spec_GCJ= 16905 export_dynamic_flag_spec_GCJ= 16906 whole_archive_flag_spec_GCJ= 16907 fi 16908 else 16909 # PORTME fill in a description of your system's linker (not GNU ld) 16910 case $host_os in 16911 aix3*) 16912 allow_undefined_flag_GCJ=unsupported 16913 always_export_symbols_GCJ=yes 16914 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' 16915 # Note: this linker hardcodes the directories in LIBPATH if there 16916 # are no directories specified by -L. 16917 hardcode_minus_L_GCJ=yes 16918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16919 # Neither direct hardcoding nor static linking is supported with a 16920 # broken collect2. 16921 hardcode_direct_GCJ=unsupported 16922 fi 16923 ;; 16924 16925 aix4* | aix5*) 16926 if test "$host_cpu" = ia64; then 16927 # On IA64, the linker does run time linking by default, so we don't 16928 # have to do anything special. 16929 aix_use_runtimelinking=no 16930 exp_sym_flag='-Bexport' 16931 no_entry_flag="" 16932 else 16933 # If we're using GNU nm, then we don't want the "-C" option. 16934 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16936 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' 16937 else 16938 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' 16939 fi 16940 aix_use_runtimelinking=no 16941 16942 # Test if we are trying to use run time linking or normal 16943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16944 # need to do runtime linking. 16945 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16946 for ld_flag in $LDFLAGS; do 16947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16948 aix_use_runtimelinking=yes 16949 break 16950 fi 16951 done 16952 ;; 16953 esac 16954 16955 exp_sym_flag='-bexport' 16956 no_entry_flag='-bnoentry' 16957 fi 16958 16959 # When large executables or shared objects are built, AIX ld can 16960 # have problems creating the table of contents. If linking a library 16961 # or program results in "error TOC overflow" add -mminimal-toc to 16962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16964 16965 archive_cmds_GCJ='' 16966 hardcode_direct_GCJ=yes 16967 hardcode_libdir_separator_GCJ=':' 16968 link_all_deplibs_GCJ=yes 16969 16970 if test "$GCC" = yes; then 16971 case $host_os in aix4.[012]|aix4.[012].*) 16972 # We only want to do this on AIX 4.2 and lower, the check 16973 # below for broken collect2 doesn't work under 4.3+ 16974 collect2name=`${CC} -print-prog-name=collect2` 16975 if test -f "$collect2name" && \ 16976 strings "$collect2name" | grep resolve_lib_name >/dev/null 16977 then 16978 # We have reworked collect2 16979 hardcode_direct_GCJ=yes 16980 else 16981 # We have old collect2 16982 hardcode_direct_GCJ=unsupported 16983 # It fails to find uninstalled libraries when the uninstalled 16984 # path is not listed in the libpath. Setting hardcode_minus_L 16985 # to unsupported forces relinking 16986 hardcode_minus_L_GCJ=yes 16987 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16988 hardcode_libdir_separator_GCJ= 16989 fi 16990 ;; 16991 esac 16992 shared_flag='-shared' 16993 if test "$aix_use_runtimelinking" = yes; then 16994 shared_flag="$shared_flag "'${wl}-G' 16995 fi 16996 else 16997 # not using gcc 16998 if test "$host_cpu" = ia64; then 16999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17000 # chokes on -Wl,-G. The following line is correct: 17001 shared_flag='-G' 17002 else 17003 if test "$aix_use_runtimelinking" = yes; then 17004 shared_flag='${wl}-G' 17005 else 17006 shared_flag='${wl}-bM:SRE' 17007 fi 17008 fi 17009 fi 17010 17011 # It seems that -bexpall does not export symbols beginning with 17012 # underscore (_), so it is better to generate a list of symbols to export. 17013 always_export_symbols_GCJ=yes 17014 if test "$aix_use_runtimelinking" = yes; then 17015 # Warning - without using the other runtime loading flags (-brtl), 17016 # -berok will link without error, but may produce a broken library. 17017 allow_undefined_flag_GCJ='-berok' 17018 # Determine the default libpath from the value encoded in an empty executable. 17019 cat >conftest.$ac_ext <<_ACEOF 17020/* confdefs.h. */ 17021_ACEOF 17022cat confdefs.h >>conftest.$ac_ext 17023cat >>conftest.$ac_ext <<_ACEOF 17024/* end confdefs.h. */ 17025 17026int 17027main () 17028{ 17029 17030 ; 17031 return 0; 17032} 17033_ACEOF 17034rm -f conftest.$ac_objext conftest$ac_exeext 17035if { (ac_try="$ac_link" 17036case "(($ac_try" in 17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17038 *) ac_try_echo=$ac_try;; 17039esac 17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17041 (eval "$ac_link") 2>conftest.er1 17042 ac_status=$? 17043 grep -v '^ *+' conftest.er1 >conftest.err 17044 rm -f conftest.er1 17045 cat conftest.err >&5 17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17047 (exit $ac_status); } && { 17048 test -z "$ac_c_werror_flag" || 17049 test ! -s conftest.err 17050 } && test -s conftest$ac_exeext && 17051 $as_test_x conftest$ac_exeext; then 17052 17053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17054}'` 17055# Check for a 64-bit object if we didn't find anything. 17056if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17057}'`; fi 17058else 17059 echo "$as_me: failed program was:" >&5 17060sed 's/^/| /' conftest.$ac_ext >&5 17061 17062 17063fi 17064 17065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17066 conftest$ac_exeext conftest.$ac_ext 17067if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17068 17069 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17070 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" 17071 else 17072 if test "$host_cpu" = ia64; then 17073 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17074 allow_undefined_flag_GCJ="-z nodefs" 17075 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" 17076 else 17077 # Determine the default libpath from the value encoded in an empty executable. 17078 cat >conftest.$ac_ext <<_ACEOF 17079/* confdefs.h. */ 17080_ACEOF 17081cat confdefs.h >>conftest.$ac_ext 17082cat >>conftest.$ac_ext <<_ACEOF 17083/* end confdefs.h. */ 17084 17085int 17086main () 17087{ 17088 17089 ; 17090 return 0; 17091} 17092_ACEOF 17093rm -f conftest.$ac_objext conftest$ac_exeext 17094if { (ac_try="$ac_link" 17095case "(($ac_try" in 17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17097 *) ac_try_echo=$ac_try;; 17098esac 17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17100 (eval "$ac_link") 2>conftest.er1 17101 ac_status=$? 17102 grep -v '^ *+' conftest.er1 >conftest.err 17103 rm -f conftest.er1 17104 cat conftest.err >&5 17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17106 (exit $ac_status); } && { 17107 test -z "$ac_c_werror_flag" || 17108 test ! -s conftest.err 17109 } && test -s conftest$ac_exeext && 17110 $as_test_x conftest$ac_exeext; then 17111 17112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17113}'` 17114# Check for a 64-bit object if we didn't find anything. 17115if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17116}'`; fi 17117else 17118 echo "$as_me: failed program was:" >&5 17119sed 's/^/| /' conftest.$ac_ext >&5 17120 17121 17122fi 17123 17124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17125 conftest$ac_exeext conftest.$ac_ext 17126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17127 17128 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17129 # Warning - without using the other run time loading flags, 17130 # -berok will link without error, but may produce a broken library. 17131 no_undefined_flag_GCJ=' ${wl}-bernotok' 17132 allow_undefined_flag_GCJ=' ${wl}-berok' 17133 # Exported symbols can be pulled into shared objects from archives 17134 whole_archive_flag_spec_GCJ='$convenience' 17135 archive_cmds_need_lc_GCJ=yes 17136 # This is similar to how AIX traditionally builds its shared libraries. 17137 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' 17138 fi 17139 fi 17140 ;; 17141 17142 amigaos*) 17143 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)' 17144 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17145 hardcode_minus_L_GCJ=yes 17146 # see comment about different semantics on the GNU ld section 17147 ld_shlibs_GCJ=no 17148 ;; 17149 17150 bsdi[45]*) 17151 export_dynamic_flag_spec_GCJ=-rdynamic 17152 ;; 17153 17154 cygwin* | mingw* | pw32*) 17155 # When not using gcc, we currently assume that we are using 17156 # Microsoft Visual C++. 17157 # hardcode_libdir_flag_spec is actually meaningless, as there is 17158 # no search path for DLLs. 17159 hardcode_libdir_flag_spec_GCJ=' ' 17160 allow_undefined_flag_GCJ=unsupported 17161 # Tell ltmain to make .lib files, not .a files. 17162 libext=lib 17163 # Tell ltmain to make .dll files, not .so files. 17164 shrext_cmds=".dll" 17165 # FIXME: Setting linknames here is a bad hack. 17166 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17167 # The linker will automatically build a .lib file if we build a DLL. 17168 old_archive_From_new_cmds_GCJ='true' 17169 # FIXME: Should let the user specify the lib program. 17170 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17171 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17172 enable_shared_with_static_runtimes_GCJ=yes 17173 ;; 17174 17175 darwin* | rhapsody*) 17176 case $host_os in 17177 rhapsody* | darwin1.[012]) 17178 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17179 ;; 17180 *) # Darwin 1.3 on 17181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17182 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17183 else 17184 case ${MACOSX_DEPLOYMENT_TARGET} in 17185 10.[012]) 17186 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17187 ;; 17188 10.*) 17189 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17190 ;; 17191 esac 17192 fi 17193 ;; 17194 esac 17195 archive_cmds_need_lc_GCJ=no 17196 hardcode_direct_GCJ=no 17197 hardcode_automatic_GCJ=yes 17198 hardcode_shlibpath_var_GCJ=unsupported 17199 whole_archive_flag_spec_GCJ='' 17200 link_all_deplibs_GCJ=yes 17201 if test "$GCC" = yes ; then 17202 output_verbose_link_cmd='echo' 17203 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17204 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17206 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}' 17207 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}' 17208 else 17209 case $cc_basename in 17210 xlc*) 17211 output_verbose_link_cmd='echo' 17212 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17213 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17215 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17216 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}' 17217 ;; 17218 *) 17219 ld_shlibs_GCJ=no 17220 ;; 17221 esac 17222 fi 17223 ;; 17224 17225 dgux*) 17226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17227 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17228 hardcode_shlibpath_var_GCJ=no 17229 ;; 17230 17231 freebsd1*) 17232 ld_shlibs_GCJ=no 17233 ;; 17234 17235 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17236 # support. Future versions do this automatically, but an explicit c++rt0.o 17237 # does not break anything, and helps significantly (at the cost of a little 17238 # extra space). 17239 freebsd2.2*) 17240 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17241 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17242 hardcode_direct_GCJ=yes 17243 hardcode_shlibpath_var_GCJ=no 17244 ;; 17245 17246 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17247 freebsd2*) 17248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17249 hardcode_direct_GCJ=yes 17250 hardcode_minus_L_GCJ=yes 17251 hardcode_shlibpath_var_GCJ=no 17252 ;; 17253 17254 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17255 freebsd* | kfreebsd*-gnu | dragonfly*) 17256 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17257 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17258 hardcode_direct_GCJ=yes 17259 hardcode_shlibpath_var_GCJ=no 17260 ;; 17261 17262 hpux9*) 17263 if test "$GCC" = yes; then 17264 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' 17265 else 17266 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' 17267 fi 17268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17269 hardcode_libdir_separator_GCJ=: 17270 hardcode_direct_GCJ=yes 17271 17272 # hardcode_minus_L: Not really in the search PATH, 17273 # but as the default location of the library. 17274 hardcode_minus_L_GCJ=yes 17275 export_dynamic_flag_spec_GCJ='${wl}-E' 17276 ;; 17277 17278 hpux10*) 17279 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17280 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17281 else 17282 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17283 fi 17284 if test "$with_gnu_ld" = no; then 17285 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17286 hardcode_libdir_separator_GCJ=: 17287 17288 hardcode_direct_GCJ=yes 17289 export_dynamic_flag_spec_GCJ='${wl}-E' 17290 17291 # hardcode_minus_L: Not really in the search PATH, 17292 # but as the default location of the library. 17293 hardcode_minus_L_GCJ=yes 17294 fi 17295 ;; 17296 17297 hpux11*) 17298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17299 case $host_cpu in 17300 hppa*64*) 17301 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17302 ;; 17303 ia64*) 17304 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17305 ;; 17306 *) 17307 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17308 ;; 17309 esac 17310 else 17311 case $host_cpu in 17312 hppa*64*) 17313 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17314 ;; 17315 ia64*) 17316 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17317 ;; 17318 *) 17319 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17320 ;; 17321 esac 17322 fi 17323 if test "$with_gnu_ld" = no; then 17324 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17325 hardcode_libdir_separator_GCJ=: 17326 17327 case $host_cpu in 17328 hppa*64*|ia64*) 17329 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17330 hardcode_direct_GCJ=no 17331 hardcode_shlibpath_var_GCJ=no 17332 ;; 17333 *) 17334 hardcode_direct_GCJ=yes 17335 export_dynamic_flag_spec_GCJ='${wl}-E' 17336 17337 # hardcode_minus_L: Not really in the search PATH, 17338 # but as the default location of the library. 17339 hardcode_minus_L_GCJ=yes 17340 ;; 17341 esac 17342 fi 17343 ;; 17344 17345 irix5* | irix6* | nonstopux*) 17346 if test "$GCC" = yes; then 17347 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' 17348 else 17349 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' 17350 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17351 fi 17352 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17353 hardcode_libdir_separator_GCJ=: 17354 link_all_deplibs_GCJ=yes 17355 ;; 17356 17357 netbsd*) 17358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17359 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17360 else 17361 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17362 fi 17363 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17364 hardcode_direct_GCJ=yes 17365 hardcode_shlibpath_var_GCJ=no 17366 ;; 17367 17368 newsos6) 17369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17370 hardcode_direct_GCJ=yes 17371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17372 hardcode_libdir_separator_GCJ=: 17373 hardcode_shlibpath_var_GCJ=no 17374 ;; 17375 17376 openbsd*) 17377 hardcode_direct_GCJ=yes 17378 hardcode_shlibpath_var_GCJ=no 17379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17380 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17381 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17382 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17383 export_dynamic_flag_spec_GCJ='${wl}-E' 17384 else 17385 case $host_os in 17386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17387 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17388 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17389 ;; 17390 *) 17391 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17393 ;; 17394 esac 17395 fi 17396 ;; 17397 17398 os2*) 17399 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17400 hardcode_minus_L_GCJ=yes 17401 allow_undefined_flag_GCJ=unsupported 17402 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' 17403 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17404 ;; 17405 17406 osf3*) 17407 if test "$GCC" = yes; then 17408 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17409 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' 17410 else 17411 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17412 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' 17413 fi 17414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17415 hardcode_libdir_separator_GCJ=: 17416 ;; 17417 17418 osf4* | osf5*) # as osf3* with the addition of -msym flag 17419 if test "$GCC" = yes; then 17420 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17421 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' 17422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17423 else 17424 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17425 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' 17426 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~ 17427 $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' 17428 17429 # Both c and cxx compiler support -rpath directly 17430 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17431 fi 17432 hardcode_libdir_separator_GCJ=: 17433 ;; 17434 17435 solaris*) 17436 no_undefined_flag_GCJ=' -z text' 17437 if test "$GCC" = yes; then 17438 wlarc='${wl}' 17439 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17442 else 17443 wlarc='' 17444 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17447 fi 17448 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17449 hardcode_shlibpath_var_GCJ=no 17450 case $host_os in 17451 solaris2.[0-5] | solaris2.[0-5].*) ;; 17452 *) 17453 # The compiler driver will combine linker options so we 17454 # cannot just pass the convience library names through 17455 # without $wl, iff we do not link with $LD. 17456 # Luckily, gcc supports the same syntax we need for Sun Studio. 17457 # Supported since Solaris 2.6 (maybe 2.5.1?) 17458 case $wlarc in 17459 '') 17460 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17461 *) 17462 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17463 esac ;; 17464 esac 17465 link_all_deplibs_GCJ=yes 17466 ;; 17467 17468 sunos4*) 17469 if test "x$host_vendor" = xsequent; then 17470 # Use $CC to link under sequent, because it throws in some extra .o 17471 # files that make .init and .fini sections work. 17472 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17473 else 17474 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17475 fi 17476 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17477 hardcode_direct_GCJ=yes 17478 hardcode_minus_L_GCJ=yes 17479 hardcode_shlibpath_var_GCJ=no 17480 ;; 17481 17482 sysv4) 17483 case $host_vendor in 17484 sni) 17485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17486 hardcode_direct_GCJ=yes # is this really true??? 17487 ;; 17488 siemens) 17489 ## LD is ld it makes a PLAMLIB 17490 ## CC just makes a GrossModule. 17491 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17492 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17493 hardcode_direct_GCJ=no 17494 ;; 17495 motorola) 17496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17497 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17498 ;; 17499 esac 17500 runpath_var='LD_RUN_PATH' 17501 hardcode_shlibpath_var_GCJ=no 17502 ;; 17503 17504 sysv4.3*) 17505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17506 hardcode_shlibpath_var_GCJ=no 17507 export_dynamic_flag_spec_GCJ='-Bexport' 17508 ;; 17509 17510 sysv4*MP*) 17511 if test -d /usr/nec; then 17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17513 hardcode_shlibpath_var_GCJ=no 17514 runpath_var=LD_RUN_PATH 17515 hardcode_runpath_var=yes 17516 ld_shlibs_GCJ=yes 17517 fi 17518 ;; 17519 17520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17521 no_undefined_flag_GCJ='${wl}-z,text' 17522 archive_cmds_need_lc_GCJ=no 17523 hardcode_shlibpath_var_GCJ=no 17524 runpath_var='LD_RUN_PATH' 17525 17526 if test "$GCC" = yes; then 17527 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17528 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17529 else 17530 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17531 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17532 fi 17533 ;; 17534 17535 sysv5* | sco3.2v5* | sco5v6*) 17536 # Note: We can NOT use -z defs as we might desire, because we do not 17537 # link with -lc, and that would cause any symbols used from libc to 17538 # always be unresolved, which means just about no library would 17539 # ever link correctly. If we're not using GNU ld we use -z text 17540 # though, which does catch some bad symbols but isn't as heavy-handed 17541 # as -z defs. 17542 no_undefined_flag_GCJ='${wl}-z,text' 17543 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17544 archive_cmds_need_lc_GCJ=no 17545 hardcode_shlibpath_var_GCJ=no 17546 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17547 hardcode_libdir_separator_GCJ=':' 17548 link_all_deplibs_GCJ=yes 17549 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17550 runpath_var='LD_RUN_PATH' 17551 17552 if test "$GCC" = yes; then 17553 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17554 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17555 else 17556 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17557 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17558 fi 17559 ;; 17560 17561 uts4*) 17562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17563 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17564 hardcode_shlibpath_var_GCJ=no 17565 ;; 17566 17567 *) 17568 ld_shlibs_GCJ=no 17569 ;; 17570 esac 17571 fi 17572 17573{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17574echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17575test "$ld_shlibs_GCJ" = no && can_build_shared=no 17576 17577# 17578# Do we need to explicitly link libc? 17579# 17580case "x$archive_cmds_need_lc_GCJ" in 17581x|xyes) 17582 # Assume -lc should be added 17583 archive_cmds_need_lc_GCJ=yes 17584 17585 if test "$enable_shared" = yes && test "$GCC" = yes; then 17586 case $archive_cmds_GCJ in 17587 *'~'*) 17588 # FIXME: we may have to deal with multi-command sequences. 17589 ;; 17590 '$CC '*) 17591 # Test whether the compiler implicitly links with -lc since on some 17592 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17593 # to ld, don't add -lc before -lgcc. 17594 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17595echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17596 $rm conftest* 17597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17598 17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17600 (eval $ac_compile) 2>&5 17601 ac_status=$? 17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17603 (exit $ac_status); } 2>conftest.err; then 17604 soname=conftest 17605 lib=conftest 17606 libobjs=conftest.$ac_objext 17607 deplibs= 17608 wl=$lt_prog_compiler_wl_GCJ 17609 pic_flag=$lt_prog_compiler_pic_GCJ 17610 compiler_flags=-v 17611 linker_flags=-v 17612 verstring= 17613 output_objdir=. 17614 libname=conftest 17615 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17616 allow_undefined_flag_GCJ= 17617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17618 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17619 ac_status=$? 17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17621 (exit $ac_status); } 17622 then 17623 archive_cmds_need_lc_GCJ=no 17624 else 17625 archive_cmds_need_lc_GCJ=yes 17626 fi 17627 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17628 else 17629 cat conftest.err 1>&5 17630 fi 17631 $rm conftest* 17632 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17633echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17634 ;; 17635 esac 17636 fi 17637 ;; 17638esac 17639 17640{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17641echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17642library_names_spec= 17643libname_spec='lib$name' 17644soname_spec= 17645shrext_cmds=".so" 17646postinstall_cmds= 17647postuninstall_cmds= 17648finish_cmds= 17649finish_eval= 17650shlibpath_var= 17651shlibpath_overrides_runpath=unknown 17652version_type=none 17653dynamic_linker="$host_os ld.so" 17654sys_lib_dlsearch_path_spec="/lib /usr/lib" 17655if test "$GCC" = yes; then 17656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17658 # if the path contains ";" then we assume it to be the separator 17659 # otherwise default to the standard path separator (i.e. ":") - it is 17660 # assumed that no part of a normal pathname contains ";" but that should 17661 # okay in the real world where ";" in dirpaths is itself problematic. 17662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17663 else 17664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17665 fi 17666else 17667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17668fi 17669need_lib_prefix=unknown 17670hardcode_into_libs=no 17671 17672# when you set need_version to no, make sure it does not cause -set_version 17673# flags to be left without arguments 17674need_version=unknown 17675 17676case $host_os in 17677aix3*) 17678 version_type=linux 17679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17680 shlibpath_var=LIBPATH 17681 17682 # AIX 3 has no versioning support, so we append a major version to the name. 17683 soname_spec='${libname}${release}${shared_ext}$major' 17684 ;; 17685 17686aix4* | aix5*) 17687 version_type=linux 17688 need_lib_prefix=no 17689 need_version=no 17690 hardcode_into_libs=yes 17691 if test "$host_cpu" = ia64; then 17692 # AIX 5 supports IA64 17693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17694 shlibpath_var=LD_LIBRARY_PATH 17695 else 17696 # With GCC up to 2.95.x, collect2 would create an import file 17697 # for dependence libraries. The import file would start with 17698 # the line `#! .'. This would cause the generated library to 17699 # depend on `.', always an invalid library. This was fixed in 17700 # development snapshots of GCC prior to 3.0. 17701 case $host_os in 17702 aix4 | aix4.[01] | aix4.[01].*) 17703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17704 echo ' yes ' 17705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17706 : 17707 else 17708 can_build_shared=no 17709 fi 17710 ;; 17711 esac 17712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17713 # soname into executable. Probably we can add versioning support to 17714 # collect2, so additional links can be useful in future. 17715 if test "$aix_use_runtimelinking" = yes; then 17716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17717 # instead of lib<name>.a to let people know that these are not 17718 # typical AIX shared libraries. 17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17720 else 17721 # We preserve .a as extension for shared libraries through AIX4.2 17722 # and later when we are not doing run time linking. 17723 library_names_spec='${libname}${release}.a $libname.a' 17724 soname_spec='${libname}${release}${shared_ext}$major' 17725 fi 17726 shlibpath_var=LIBPATH 17727 fi 17728 ;; 17729 17730amigaos*) 17731 library_names_spec='$libname.ixlibrary $libname.a' 17732 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17733 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' 17734 ;; 17735 17736beos*) 17737 library_names_spec='${libname}${shared_ext}' 17738 dynamic_linker="$host_os ld.so" 17739 shlibpath_var=LIBRARY_PATH 17740 ;; 17741 17742bsdi[45]*) 17743 version_type=linux 17744 need_version=no 17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17746 soname_spec='${libname}${release}${shared_ext}$major' 17747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17748 shlibpath_var=LD_LIBRARY_PATH 17749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17751 # the default ld.so.conf also contains /usr/contrib/lib and 17752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17753 # libtool to hard-code these into programs 17754 ;; 17755 17756cygwin* | mingw* | pw32*) 17757 version_type=windows 17758 shrext_cmds=".dll" 17759 need_version=no 17760 need_lib_prefix=no 17761 17762 case $GCC,$host_os in 17763 yes,cygwin* | yes,mingw* | yes,pw32*) 17764 library_names_spec='$libname.dll.a' 17765 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17766 postinstall_cmds='base_file=`basename \${file}`~ 17767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17768 dldir=$destdir/`dirname \$dlpath`~ 17769 test -d \$dldir || mkdir -p \$dldir~ 17770 $install_prog $dir/$dlname \$dldir/$dlname~ 17771 chmod a+x \$dldir/$dlname' 17772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17773 dlpath=$dir/\$dldll~ 17774 $rm \$dlpath' 17775 shlibpath_overrides_runpath=yes 17776 17777 case $host_os in 17778 cygwin*) 17779 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17782 ;; 17783 mingw*) 17784 # MinGW DLLs use traditional 'lib' prefix 17785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17788 # It is most probably a Windows format PATH printed by 17789 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17790 # path with ; separators, and with drive letters. We can handle the 17791 # drive letters (cygwin fileutils understands them), so leave them, 17792 # especially as we might pass files found there to a mingw objdump, 17793 # which wouldn't understand a cygwinified path. Ahh. 17794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17795 else 17796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17797 fi 17798 ;; 17799 pw32*) 17800 # pw32 DLLs use 'pw' prefix rather than 'lib' 17801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17802 ;; 17803 esac 17804 ;; 17805 17806 *) 17807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17808 ;; 17809 esac 17810 dynamic_linker='Win32 ld.exe' 17811 # FIXME: first we should search . and the directory the executable is in 17812 shlibpath_var=PATH 17813 ;; 17814 17815darwin* | rhapsody*) 17816 dynamic_linker="$host_os dyld" 17817 version_type=darwin 17818 need_lib_prefix=no 17819 need_version=no 17820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17821 soname_spec='${libname}${release}${major}$shared_ext' 17822 shlibpath_overrides_runpath=yes 17823 shlibpath_var=DYLD_LIBRARY_PATH 17824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17826 if test "$GCC" = yes; then 17827 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17828 else 17829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17830 fi 17831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17832 ;; 17833 17834dgux*) 17835 version_type=linux 17836 need_lib_prefix=no 17837 need_version=no 17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17839 soname_spec='${libname}${release}${shared_ext}$major' 17840 shlibpath_var=LD_LIBRARY_PATH 17841 ;; 17842 17843freebsd1*) 17844 dynamic_linker=no 17845 ;; 17846 17847kfreebsd*-gnu) 17848 version_type=linux 17849 need_lib_prefix=no 17850 need_version=no 17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17852 soname_spec='${libname}${release}${shared_ext}$major' 17853 shlibpath_var=LD_LIBRARY_PATH 17854 shlibpath_overrides_runpath=no 17855 hardcode_into_libs=yes 17856 dynamic_linker='GNU ld.so' 17857 ;; 17858 17859freebsd* | dragonfly*) 17860 # DragonFly does not have aout. When/if they implement a new 17861 # versioning mechanism, adjust this. 17862 if test -x /usr/bin/objformat; then 17863 objformat=`/usr/bin/objformat` 17864 else 17865 case $host_os in 17866 freebsd[123]*) objformat=aout ;; 17867 *) objformat=elf ;; 17868 esac 17869 fi 17870 version_type=freebsd-$objformat 17871 case $version_type in 17872 freebsd-elf*) 17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17874 need_version=no 17875 need_lib_prefix=no 17876 ;; 17877 freebsd-*) 17878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17879 need_version=yes 17880 ;; 17881 esac 17882 shlibpath_var=LD_LIBRARY_PATH 17883 case $host_os in 17884 freebsd2*) 17885 shlibpath_overrides_runpath=yes 17886 ;; 17887 freebsd3.[01]* | freebsdelf3.[01]*) 17888 shlibpath_overrides_runpath=yes 17889 hardcode_into_libs=yes 17890 ;; 17891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17893 shlibpath_overrides_runpath=no 17894 hardcode_into_libs=yes 17895 ;; 17896 freebsd*) # from 4.6 on 17897 shlibpath_overrides_runpath=yes 17898 hardcode_into_libs=yes 17899 ;; 17900 esac 17901 ;; 17902 17903gnu*) 17904 version_type=linux 17905 need_lib_prefix=no 17906 need_version=no 17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17908 soname_spec='${libname}${release}${shared_ext}$major' 17909 shlibpath_var=LD_LIBRARY_PATH 17910 hardcode_into_libs=yes 17911 ;; 17912 17913hpux9* | hpux10* | hpux11*) 17914 # Give a soname corresponding to the major version so that dld.sl refuses to 17915 # link against other versions. 17916 version_type=sunos 17917 need_lib_prefix=no 17918 need_version=no 17919 case $host_cpu in 17920 ia64*) 17921 shrext_cmds='.so' 17922 hardcode_into_libs=yes 17923 dynamic_linker="$host_os dld.so" 17924 shlibpath_var=LD_LIBRARY_PATH 17925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17927 soname_spec='${libname}${release}${shared_ext}$major' 17928 if test "X$HPUX_IA64_MODE" = X32; then 17929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17930 else 17931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17932 fi 17933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17934 ;; 17935 hppa*64*) 17936 shrext_cmds='.sl' 17937 hardcode_into_libs=yes 17938 dynamic_linker="$host_os dld.sl" 17939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17942 soname_spec='${libname}${release}${shared_ext}$major' 17943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17945 ;; 17946 *) 17947 shrext_cmds='.sl' 17948 dynamic_linker="$host_os dld.sl" 17949 shlibpath_var=SHLIB_PATH 17950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17952 soname_spec='${libname}${release}${shared_ext}$major' 17953 ;; 17954 esac 17955 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17956 postinstall_cmds='chmod 555 $lib' 17957 ;; 17958 17959interix3*) 17960 version_type=linux 17961 need_lib_prefix=no 17962 need_version=no 17963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17964 soname_spec='${libname}${release}${shared_ext}$major' 17965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17966 shlibpath_var=LD_LIBRARY_PATH 17967 shlibpath_overrides_runpath=no 17968 hardcode_into_libs=yes 17969 ;; 17970 17971irix5* | irix6* | nonstopux*) 17972 case $host_os in 17973 nonstopux*) version_type=nonstopux ;; 17974 *) 17975 if test "$lt_cv_prog_gnu_ld" = yes; then 17976 version_type=linux 17977 else 17978 version_type=irix 17979 fi ;; 17980 esac 17981 need_lib_prefix=no 17982 need_version=no 17983 soname_spec='${libname}${release}${shared_ext}$major' 17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17985 case $host_os in 17986 irix5* | nonstopux*) 17987 libsuff= shlibsuff= 17988 ;; 17989 *) 17990 case $LD in # libtool.m4 will add one of these switches to LD 17991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17992 libsuff= shlibsuff= libmagic=32-bit;; 17993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17994 libsuff=32 shlibsuff=N32 libmagic=N32;; 17995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17996 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17997 *) libsuff= shlibsuff= libmagic=never-match;; 17998 esac 17999 ;; 18000 esac 18001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18002 shlibpath_overrides_runpath=no 18003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18005 hardcode_into_libs=yes 18006 ;; 18007 18008# No shared lib support for Linux oldld, aout, or coff. 18009linux*oldld* | linux*aout* | linux*coff*) 18010 dynamic_linker=no 18011 ;; 18012 18013# This must be Linux ELF. 18014linux*) 18015 version_type=linux 18016 need_lib_prefix=no 18017 need_version=no 18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18019 soname_spec='${libname}${release}${shared_ext}$major' 18020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18021 shlibpath_var=LD_LIBRARY_PATH 18022 shlibpath_overrides_runpath=no 18023 # This implies no fast_install, which is unacceptable. 18024 # Some rework will be needed to allow for fast_install 18025 # before this can be enabled. 18026 hardcode_into_libs=yes 18027 18028 # Append ld.so.conf contents to the search path 18029 if test -f /etc/ld.so.conf; then 18030 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18032 fi 18033 18034 # We used to test for /lib/ld.so.1 and disable shared libraries on 18035 # powerpc, because MkLinux only supported shared libraries with the 18036 # GNU dynamic linker. Since this was broken with cross compilers, 18037 # most powerpc-linux boxes support dynamic linking these days and 18038 # people can always --disable-shared, the test was removed, and we 18039 # assume the GNU/Linux dynamic linker is in use. 18040 dynamic_linker='GNU/Linux ld.so' 18041 ;; 18042 18043knetbsd*-gnu) 18044 version_type=linux 18045 need_lib_prefix=no 18046 need_version=no 18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18048 soname_spec='${libname}${release}${shared_ext}$major' 18049 shlibpath_var=LD_LIBRARY_PATH 18050 shlibpath_overrides_runpath=no 18051 hardcode_into_libs=yes 18052 dynamic_linker='GNU ld.so' 18053 ;; 18054 18055netbsd*) 18056 version_type=sunos 18057 need_lib_prefix=no 18058 need_version=no 18059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18062 dynamic_linker='NetBSD (a.out) ld.so' 18063 else 18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18065 soname_spec='${libname}${release}${shared_ext}$major' 18066 dynamic_linker='NetBSD ld.elf_so' 18067 fi 18068 shlibpath_var=LD_LIBRARY_PATH 18069 shlibpath_overrides_runpath=yes 18070 hardcode_into_libs=yes 18071 ;; 18072 18073newsos6) 18074 version_type=linux 18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18076 shlibpath_var=LD_LIBRARY_PATH 18077 shlibpath_overrides_runpath=yes 18078 ;; 18079 18080nto-qnx*) 18081 version_type=linux 18082 need_lib_prefix=no 18083 need_version=no 18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18085 soname_spec='${libname}${release}${shared_ext}$major' 18086 shlibpath_var=LD_LIBRARY_PATH 18087 shlibpath_overrides_runpath=yes 18088 ;; 18089 18090openbsd*) 18091 version_type=sunos 18092 sys_lib_dlsearch_path_spec="/usr/lib" 18093 need_lib_prefix=no 18094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18095 case $host_os in 18096 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18097 *) need_version=no ;; 18098 esac 18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18101 shlibpath_var=LD_LIBRARY_PATH 18102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18103 case $host_os in 18104 openbsd2.[89] | openbsd2.[89].*) 18105 shlibpath_overrides_runpath=no 18106 ;; 18107 *) 18108 shlibpath_overrides_runpath=yes 18109 ;; 18110 esac 18111 else 18112 shlibpath_overrides_runpath=yes 18113 fi 18114 ;; 18115 18116os2*) 18117 libname_spec='$name' 18118 shrext_cmds=".dll" 18119 need_lib_prefix=no 18120 library_names_spec='$libname${shared_ext} $libname.a' 18121 dynamic_linker='OS/2 ld.exe' 18122 shlibpath_var=LIBPATH 18123 ;; 18124 18125osf3* | osf4* | osf5*) 18126 version_type=osf 18127 need_lib_prefix=no 18128 need_version=no 18129 soname_spec='${libname}${release}${shared_ext}$major' 18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18131 shlibpath_var=LD_LIBRARY_PATH 18132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18134 ;; 18135 18136solaris*) 18137 version_type=linux 18138 need_lib_prefix=no 18139 need_version=no 18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18141 soname_spec='${libname}${release}${shared_ext}$major' 18142 shlibpath_var=LD_LIBRARY_PATH 18143 shlibpath_overrides_runpath=yes 18144 hardcode_into_libs=yes 18145 # ldd complains unless libraries are executable 18146 postinstall_cmds='chmod +x $lib' 18147 ;; 18148 18149sunos4*) 18150 version_type=sunos 18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18153 shlibpath_var=LD_LIBRARY_PATH 18154 shlibpath_overrides_runpath=yes 18155 if test "$with_gnu_ld" = yes; then 18156 need_lib_prefix=no 18157 fi 18158 need_version=yes 18159 ;; 18160 18161sysv4 | sysv4.3*) 18162 version_type=linux 18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18164 soname_spec='${libname}${release}${shared_ext}$major' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 case $host_vendor in 18167 sni) 18168 shlibpath_overrides_runpath=no 18169 need_lib_prefix=no 18170 export_dynamic_flag_spec='${wl}-Blargedynsym' 18171 runpath_var=LD_RUN_PATH 18172 ;; 18173 siemens) 18174 need_lib_prefix=no 18175 ;; 18176 motorola) 18177 need_lib_prefix=no 18178 need_version=no 18179 shlibpath_overrides_runpath=no 18180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18181 ;; 18182 esac 18183 ;; 18184 18185sysv4*MP*) 18186 if test -d /usr/nec ;then 18187 version_type=linux 18188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18189 soname_spec='$libname${shared_ext}.$major' 18190 shlibpath_var=LD_LIBRARY_PATH 18191 fi 18192 ;; 18193 18194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18195 version_type=freebsd-elf 18196 need_lib_prefix=no 18197 need_version=no 18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18199 soname_spec='${libname}${release}${shared_ext}$major' 18200 shlibpath_var=LD_LIBRARY_PATH 18201 hardcode_into_libs=yes 18202 if test "$with_gnu_ld" = yes; then 18203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18204 shlibpath_overrides_runpath=no 18205 else 18206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18207 shlibpath_overrides_runpath=yes 18208 case $host_os in 18209 sco3.2v5*) 18210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18211 ;; 18212 esac 18213 fi 18214 sys_lib_dlsearch_path_spec='/usr/lib' 18215 ;; 18216 18217uts4*) 18218 version_type=linux 18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18220 soname_spec='${libname}${release}${shared_ext}$major' 18221 shlibpath_var=LD_LIBRARY_PATH 18222 ;; 18223 18224*) 18225 dynamic_linker=no 18226 ;; 18227esac 18228{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18229echo "${ECHO_T}$dynamic_linker" >&6; } 18230test "$dynamic_linker" = no && can_build_shared=no 18231 18232variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18233if test "$GCC" = yes; then 18234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18235fi 18236 18237{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18239hardcode_action_GCJ= 18240if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18241 test -n "$runpath_var_GCJ" || \ 18242 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18243 18244 # We can hardcode non-existant directories. 18245 if test "$hardcode_direct_GCJ" != no && 18246 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18247 # have to relink, otherwise we might link with an installed library 18248 # when we should be linking with a yet-to-be-installed one 18249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18250 test "$hardcode_minus_L_GCJ" != no; then 18251 # Linking always hardcodes the temporary library directory. 18252 hardcode_action_GCJ=relink 18253 else 18254 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18255 hardcode_action_GCJ=immediate 18256 fi 18257else 18258 # We cannot hardcode anything, or else we can only hardcode existing 18259 # directories. 18260 hardcode_action_GCJ=unsupported 18261fi 18262{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18263echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18264 18265if test "$hardcode_action_GCJ" = relink; then 18266 # Fast installation is not supported 18267 enable_fast_install=no 18268elif test "$shlibpath_overrides_runpath" = yes || 18269 test "$enable_shared" = no; then 18270 # Fast installation is not necessary 18271 enable_fast_install=needless 18272fi 18273 18274 18275# The else clause should only fire when bootstrapping the 18276# libtool distribution, otherwise you forgot to ship ltmain.sh 18277# with your package, and you will get complaints that there are 18278# no rules to generate ltmain.sh. 18279if test -f "$ltmain"; then 18280 # See if we are running on zsh, and set the options which allow our commands through 18281 # without removal of \ escapes. 18282 if test -n "${ZSH_VERSION+set}" ; then 18283 setopt NO_GLOB_SUBST 18284 fi 18285 # Now quote all the things that may contain metacharacters while being 18286 # careful not to overquote the AC_SUBSTed values. We take copies of the 18287 # variables and quote the copies for generation of the libtool script. 18288 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18289 SED SHELL STRIP \ 18290 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18291 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18292 deplibs_check_method reload_flag reload_cmds need_locks \ 18293 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18294 lt_cv_sys_global_symbol_to_c_name_address \ 18295 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18296 old_postinstall_cmds old_postuninstall_cmds \ 18297 compiler_GCJ \ 18298 CC_GCJ \ 18299 LD_GCJ \ 18300 lt_prog_compiler_wl_GCJ \ 18301 lt_prog_compiler_pic_GCJ \ 18302 lt_prog_compiler_static_GCJ \ 18303 lt_prog_compiler_no_builtin_flag_GCJ \ 18304 export_dynamic_flag_spec_GCJ \ 18305 thread_safe_flag_spec_GCJ \ 18306 whole_archive_flag_spec_GCJ \ 18307 enable_shared_with_static_runtimes_GCJ \ 18308 old_archive_cmds_GCJ \ 18309 old_archive_from_new_cmds_GCJ \ 18310 predep_objects_GCJ \ 18311 postdep_objects_GCJ \ 18312 predeps_GCJ \ 18313 postdeps_GCJ \ 18314 compiler_lib_search_path_GCJ \ 18315 archive_cmds_GCJ \ 18316 archive_expsym_cmds_GCJ \ 18317 postinstall_cmds_GCJ \ 18318 postuninstall_cmds_GCJ \ 18319 old_archive_from_expsyms_cmds_GCJ \ 18320 allow_undefined_flag_GCJ \ 18321 no_undefined_flag_GCJ \ 18322 export_symbols_cmds_GCJ \ 18323 hardcode_libdir_flag_spec_GCJ \ 18324 hardcode_libdir_flag_spec_ld_GCJ \ 18325 hardcode_libdir_separator_GCJ \ 18326 hardcode_automatic_GCJ \ 18327 module_cmds_GCJ \ 18328 module_expsym_cmds_GCJ \ 18329 lt_cv_prog_compiler_c_o_GCJ \ 18330 exclude_expsyms_GCJ \ 18331 include_expsyms_GCJ; do 18332 18333 case $var in 18334 old_archive_cmds_GCJ | \ 18335 old_archive_from_new_cmds_GCJ | \ 18336 archive_cmds_GCJ | \ 18337 archive_expsym_cmds_GCJ | \ 18338 module_cmds_GCJ | \ 18339 module_expsym_cmds_GCJ | \ 18340 old_archive_from_expsyms_cmds_GCJ | \ 18341 export_symbols_cmds_GCJ | \ 18342 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18343 postinstall_cmds | postuninstall_cmds | \ 18344 old_postinstall_cmds | old_postuninstall_cmds | \ 18345 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18346 # Double-quote double-evaled strings. 18347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18348 ;; 18349 *) 18350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18351 ;; 18352 esac 18353 done 18354 18355 case $lt_echo in 18356 *'\$0 --fallback-echo"') 18357 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18358 ;; 18359 esac 18360 18361cfgfile="$ofile" 18362 18363 cat <<__EOF__ >> "$cfgfile" 18364# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18365 18366# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18367 18368# Shell to use when invoking shell scripts. 18369SHELL=$lt_SHELL 18370 18371# Whether or not to build shared libraries. 18372build_libtool_libs=$enable_shared 18373 18374# Whether or not to build static libraries. 18375build_old_libs=$enable_static 18376 18377# Whether or not to add -lc for building shared libraries. 18378build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18379 18380# Whether or not to disallow shared libs when runtime libs are static 18381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18382 18383# Whether or not to optimize for fast installation. 18384fast_install=$enable_fast_install 18385 18386# The host system. 18387host_alias=$host_alias 18388host=$host 18389host_os=$host_os 18390 18391# The build system. 18392build_alias=$build_alias 18393build=$build 18394build_os=$build_os 18395 18396# An echo program that does not interpret backslashes. 18397echo=$lt_echo 18398 18399# The archiver. 18400AR=$lt_AR 18401AR_FLAGS=$lt_AR_FLAGS 18402 18403# A C compiler. 18404LTCC=$lt_LTCC 18405 18406# LTCC compiler flags. 18407LTCFLAGS=$lt_LTCFLAGS 18408 18409# A language-specific compiler. 18410CC=$lt_compiler_GCJ 18411 18412# Is the compiler the GNU C compiler? 18413with_gcc=$GCC_GCJ 18414 18415# An ERE matcher. 18416EGREP=$lt_EGREP 18417 18418# The linker used to build libraries. 18419LD=$lt_LD_GCJ 18420 18421# Whether we need hard or soft links. 18422LN_S=$lt_LN_S 18423 18424# A BSD-compatible nm program. 18425NM=$lt_NM 18426 18427# A symbol stripping program 18428STRIP=$lt_STRIP 18429 18430# Used to examine libraries when file_magic_cmd begins "file" 18431MAGIC_CMD=$MAGIC_CMD 18432 18433# Used on cygwin: DLL creation program. 18434DLLTOOL="$DLLTOOL" 18435 18436# Used on cygwin: object dumper. 18437OBJDUMP="$OBJDUMP" 18438 18439# Used on cygwin: assembler. 18440AS="$AS" 18441 18442# The name of the directory that contains temporary libtool files. 18443objdir=$objdir 18444 18445# How to create reloadable object files. 18446reload_flag=$lt_reload_flag 18447reload_cmds=$lt_reload_cmds 18448 18449# How to pass a linker flag through the compiler. 18450wl=$lt_lt_prog_compiler_wl_GCJ 18451 18452# Object file suffix (normally "o"). 18453objext="$ac_objext" 18454 18455# Old archive suffix (normally "a"). 18456libext="$libext" 18457 18458# Shared library suffix (normally ".so"). 18459shrext_cmds='$shrext_cmds' 18460 18461# Executable file suffix (normally ""). 18462exeext="$exeext" 18463 18464# Additional compiler flags for building library objects. 18465pic_flag=$lt_lt_prog_compiler_pic_GCJ 18466pic_mode=$pic_mode 18467 18468# What is the maximum length of a command? 18469max_cmd_len=$lt_cv_sys_max_cmd_len 18470 18471# Does compiler simultaneously support -c and -o options? 18472compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18473 18474# Must we lock files when doing compilation? 18475need_locks=$lt_need_locks 18476 18477# Do we need the lib prefix for modules? 18478need_lib_prefix=$need_lib_prefix 18479 18480# Do we need a version for libraries? 18481need_version=$need_version 18482 18483# Whether dlopen is supported. 18484dlopen_support=$enable_dlopen 18485 18486# Whether dlopen of programs is supported. 18487dlopen_self=$enable_dlopen_self 18488 18489# Whether dlopen of statically linked programs is supported. 18490dlopen_self_static=$enable_dlopen_self_static 18491 18492# Compiler flag to prevent dynamic linking. 18493link_static_flag=$lt_lt_prog_compiler_static_GCJ 18494 18495# Compiler flag to turn off builtin functions. 18496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18497 18498# Compiler flag to allow reflexive dlopens. 18499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18500 18501# Compiler flag to generate shared objects directly from archives. 18502whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18503 18504# Compiler flag to generate thread-safe objects. 18505thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18506 18507# Library versioning type. 18508version_type=$version_type 18509 18510# Format of library name prefix. 18511libname_spec=$lt_libname_spec 18512 18513# List of archive names. First name is the real one, the rest are links. 18514# The last name is the one that the linker finds with -lNAME. 18515library_names_spec=$lt_library_names_spec 18516 18517# The coded name of the library, if different from the real name. 18518soname_spec=$lt_soname_spec 18519 18520# Commands used to build and install an old-style archive. 18521RANLIB=$lt_RANLIB 18522old_archive_cmds=$lt_old_archive_cmds_GCJ 18523old_postinstall_cmds=$lt_old_postinstall_cmds 18524old_postuninstall_cmds=$lt_old_postuninstall_cmds 18525 18526# Create an old-style archive from a shared archive. 18527old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18528 18529# Create a temporary old-style archive to link instead of a shared archive. 18530old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18531 18532# Commands used to build and install a shared archive. 18533archive_cmds=$lt_archive_cmds_GCJ 18534archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18535postinstall_cmds=$lt_postinstall_cmds 18536postuninstall_cmds=$lt_postuninstall_cmds 18537 18538# Commands used to build a loadable module (assumed same as above if empty) 18539module_cmds=$lt_module_cmds_GCJ 18540module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18541 18542# Commands to strip libraries. 18543old_striplib=$lt_old_striplib 18544striplib=$lt_striplib 18545 18546# Dependencies to place before the objects being linked to create a 18547# shared library. 18548predep_objects=$lt_predep_objects_GCJ 18549 18550# Dependencies to place after the objects being linked to create a 18551# shared library. 18552postdep_objects=$lt_postdep_objects_GCJ 18553 18554# Dependencies to place before the objects being linked to create a 18555# shared library. 18556predeps=$lt_predeps_GCJ 18557 18558# Dependencies to place after the objects being linked to create a 18559# shared library. 18560postdeps=$lt_postdeps_GCJ 18561 18562# The library search path used internally by the compiler when linking 18563# a shared library. 18564compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18565 18566# Method to check whether dependent libraries are shared objects. 18567deplibs_check_method=$lt_deplibs_check_method 18568 18569# Command to use when deplibs_check_method == file_magic. 18570file_magic_cmd=$lt_file_magic_cmd 18571 18572# Flag that allows shared libraries with undefined symbols to be built. 18573allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18574 18575# Flag that forces no undefined symbols. 18576no_undefined_flag=$lt_no_undefined_flag_GCJ 18577 18578# Commands used to finish a libtool library installation in a directory. 18579finish_cmds=$lt_finish_cmds 18580 18581# Same as above, but a single script fragment to be evaled but not shown. 18582finish_eval=$lt_finish_eval 18583 18584# Take the output of nm and produce a listing of raw symbols and C names. 18585global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18586 18587# Transform the output of nm in a proper C declaration 18588global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18589 18590# Transform the output of nm in a C name address pair 18591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18592 18593# This is the shared library runtime path variable. 18594runpath_var=$runpath_var 18595 18596# This is the shared library path variable. 18597shlibpath_var=$shlibpath_var 18598 18599# Is shlibpath searched before the hard-coded library search path? 18600shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18601 18602# How to hardcode a shared library path into an executable. 18603hardcode_action=$hardcode_action_GCJ 18604 18605# Whether we should hardcode library paths into libraries. 18606hardcode_into_libs=$hardcode_into_libs 18607 18608# Flag to hardcode \$libdir into a binary during linking. 18609# This must work even if \$libdir does not exist. 18610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18611 18612# If ld is used when linking, flag to hardcode \$libdir into 18613# a binary during linking. This must work even if \$libdir does 18614# not exist. 18615hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18616 18617# Whether we need a single -rpath flag with a separated argument. 18618hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18619 18620# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18621# resulting binary. 18622hardcode_direct=$hardcode_direct_GCJ 18623 18624# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18625# resulting binary. 18626hardcode_minus_L=$hardcode_minus_L_GCJ 18627 18628# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18629# the resulting binary. 18630hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18631 18632# Set to yes if building a shared library automatically hardcodes DIR into the library 18633# and all subsequent libraries and executables linked against it. 18634hardcode_automatic=$hardcode_automatic_GCJ 18635 18636# Variables whose values should be saved in libtool wrapper scripts and 18637# restored at relink time. 18638variables_saved_for_relink="$variables_saved_for_relink" 18639 18640# Whether libtool must link a program against all its dependency libraries. 18641link_all_deplibs=$link_all_deplibs_GCJ 18642 18643# Compile-time system search path for libraries 18644sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18645 18646# Run-time system search path for libraries 18647sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18648 18649# Fix the shell variable \$srcfile for the compiler. 18650fix_srcfile_path="$fix_srcfile_path_GCJ" 18651 18652# Set to yes if exported symbols are required. 18653always_export_symbols=$always_export_symbols_GCJ 18654 18655# The commands to list exported symbols. 18656export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18657 18658# The commands to extract the exported symbol list from a shared archive. 18659extract_expsyms_cmds=$lt_extract_expsyms_cmds 18660 18661# Symbols that should not be listed in the preloaded symbols. 18662exclude_expsyms=$lt_exclude_expsyms_GCJ 18663 18664# Symbols that must always be exported. 18665include_expsyms=$lt_include_expsyms_GCJ 18666 18667# ### END LIBTOOL TAG CONFIG: $tagname 18668 18669__EOF__ 18670 18671 18672else 18673 # If there is no Makefile yet, we rely on a make rule to execute 18674 # `config.status --recheck' to rerun these tests and create the 18675 # libtool script then. 18676 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18677 if test -f "$ltmain_in"; then 18678 test -f Makefile && make "$ltmain" 18679 fi 18680fi 18681 18682 18683ac_ext=c 18684ac_cpp='$CPP $CPPFLAGS' 18685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18687ac_compiler_gnu=$ac_cv_c_compiler_gnu 18688 18689CC="$lt_save_CC" 18690 18691 else 18692 tagname="" 18693 fi 18694 ;; 18695 18696 RC) 18697 18698 18699# Source file extension for RC test sources. 18700ac_ext=rc 18701 18702# Object file extension for compiled RC test sources. 18703objext=o 18704objext_RC=$objext 18705 18706# Code to be used in simple compile tests 18707lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18708 18709# Code to be used in simple link tests 18710lt_simple_link_test_code="$lt_simple_compile_test_code" 18711 18712# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18713 18714# If no C compiler was specified, use CC. 18715LTCC=${LTCC-"$CC"} 18716 18717# If no C compiler flags were specified, use CFLAGS. 18718LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18719 18720# Allow CC to be a program name with arguments. 18721compiler=$CC 18722 18723 18724# save warnings/boilerplate of simple test code 18725ac_outfile=conftest.$ac_objext 18726printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18728_lt_compiler_boilerplate=`cat conftest.err` 18729$rm conftest* 18730 18731ac_outfile=conftest.$ac_objext 18732printf "$lt_simple_link_test_code" >conftest.$ac_ext 18733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18734_lt_linker_boilerplate=`cat conftest.err` 18735$rm conftest* 18736 18737 18738# Allow CC to be a program name with arguments. 18739lt_save_CC="$CC" 18740CC=${RC-"windres"} 18741compiler=$CC 18742compiler_RC=$CC 18743for cc_temp in $compiler""; do 18744 case $cc_temp in 18745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18747 \-*) ;; 18748 *) break;; 18749 esac 18750done 18751cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18752 18753lt_cv_prog_compiler_c_o_RC=yes 18754 18755# The else clause should only fire when bootstrapping the 18756# libtool distribution, otherwise you forgot to ship ltmain.sh 18757# with your package, and you will get complaints that there are 18758# no rules to generate ltmain.sh. 18759if test -f "$ltmain"; then 18760 # See if we are running on zsh, and set the options which allow our commands through 18761 # without removal of \ escapes. 18762 if test -n "${ZSH_VERSION+set}" ; then 18763 setopt NO_GLOB_SUBST 18764 fi 18765 # Now quote all the things that may contain metacharacters while being 18766 # careful not to overquote the AC_SUBSTed values. We take copies of the 18767 # variables and quote the copies for generation of the libtool script. 18768 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18769 SED SHELL STRIP \ 18770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18772 deplibs_check_method reload_flag reload_cmds need_locks \ 18773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18774 lt_cv_sys_global_symbol_to_c_name_address \ 18775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18776 old_postinstall_cmds old_postuninstall_cmds \ 18777 compiler_RC \ 18778 CC_RC \ 18779 LD_RC \ 18780 lt_prog_compiler_wl_RC \ 18781 lt_prog_compiler_pic_RC \ 18782 lt_prog_compiler_static_RC \ 18783 lt_prog_compiler_no_builtin_flag_RC \ 18784 export_dynamic_flag_spec_RC \ 18785 thread_safe_flag_spec_RC \ 18786 whole_archive_flag_spec_RC \ 18787 enable_shared_with_static_runtimes_RC \ 18788 old_archive_cmds_RC \ 18789 old_archive_from_new_cmds_RC \ 18790 predep_objects_RC \ 18791 postdep_objects_RC \ 18792 predeps_RC \ 18793 postdeps_RC \ 18794 compiler_lib_search_path_RC \ 18795 archive_cmds_RC \ 18796 archive_expsym_cmds_RC \ 18797 postinstall_cmds_RC \ 18798 postuninstall_cmds_RC \ 18799 old_archive_from_expsyms_cmds_RC \ 18800 allow_undefined_flag_RC \ 18801 no_undefined_flag_RC \ 18802 export_symbols_cmds_RC \ 18803 hardcode_libdir_flag_spec_RC \ 18804 hardcode_libdir_flag_spec_ld_RC \ 18805 hardcode_libdir_separator_RC \ 18806 hardcode_automatic_RC \ 18807 module_cmds_RC \ 18808 module_expsym_cmds_RC \ 18809 lt_cv_prog_compiler_c_o_RC \ 18810 exclude_expsyms_RC \ 18811 include_expsyms_RC; do 18812 18813 case $var in 18814 old_archive_cmds_RC | \ 18815 old_archive_from_new_cmds_RC | \ 18816 archive_cmds_RC | \ 18817 archive_expsym_cmds_RC | \ 18818 module_cmds_RC | \ 18819 module_expsym_cmds_RC | \ 18820 old_archive_from_expsyms_cmds_RC | \ 18821 export_symbols_cmds_RC | \ 18822 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18823 postinstall_cmds | postuninstall_cmds | \ 18824 old_postinstall_cmds | old_postuninstall_cmds | \ 18825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18826 # Double-quote double-evaled strings. 18827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18828 ;; 18829 *) 18830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18831 ;; 18832 esac 18833 done 18834 18835 case $lt_echo in 18836 *'\$0 --fallback-echo"') 18837 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18838 ;; 18839 esac 18840 18841cfgfile="$ofile" 18842 18843 cat <<__EOF__ >> "$cfgfile" 18844# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18845 18846# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18847 18848# Shell to use when invoking shell scripts. 18849SHELL=$lt_SHELL 18850 18851# Whether or not to build shared libraries. 18852build_libtool_libs=$enable_shared 18853 18854# Whether or not to build static libraries. 18855build_old_libs=$enable_static 18856 18857# Whether or not to add -lc for building shared libraries. 18858build_libtool_need_lc=$archive_cmds_need_lc_RC 18859 18860# Whether or not to disallow shared libs when runtime libs are static 18861allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18862 18863# Whether or not to optimize for fast installation. 18864fast_install=$enable_fast_install 18865 18866# The host system. 18867host_alias=$host_alias 18868host=$host 18869host_os=$host_os 18870 18871# The build system. 18872build_alias=$build_alias 18873build=$build 18874build_os=$build_os 18875 18876# An echo program that does not interpret backslashes. 18877echo=$lt_echo 18878 18879# The archiver. 18880AR=$lt_AR 18881AR_FLAGS=$lt_AR_FLAGS 18882 18883# A C compiler. 18884LTCC=$lt_LTCC 18885 18886# LTCC compiler flags. 18887LTCFLAGS=$lt_LTCFLAGS 18888 18889# A language-specific compiler. 18890CC=$lt_compiler_RC 18891 18892# Is the compiler the GNU C compiler? 18893with_gcc=$GCC_RC 18894 18895# An ERE matcher. 18896EGREP=$lt_EGREP 18897 18898# The linker used to build libraries. 18899LD=$lt_LD_RC 18900 18901# Whether we need hard or soft links. 18902LN_S=$lt_LN_S 18903 18904# A BSD-compatible nm program. 18905NM=$lt_NM 18906 18907# A symbol stripping program 18908STRIP=$lt_STRIP 18909 18910# Used to examine libraries when file_magic_cmd begins "file" 18911MAGIC_CMD=$MAGIC_CMD 18912 18913# Used on cygwin: DLL creation program. 18914DLLTOOL="$DLLTOOL" 18915 18916# Used on cygwin: object dumper. 18917OBJDUMP="$OBJDUMP" 18918 18919# Used on cygwin: assembler. 18920AS="$AS" 18921 18922# The name of the directory that contains temporary libtool files. 18923objdir=$objdir 18924 18925# How to create reloadable object files. 18926reload_flag=$lt_reload_flag 18927reload_cmds=$lt_reload_cmds 18928 18929# How to pass a linker flag through the compiler. 18930wl=$lt_lt_prog_compiler_wl_RC 18931 18932# Object file suffix (normally "o"). 18933objext="$ac_objext" 18934 18935# Old archive suffix (normally "a"). 18936libext="$libext" 18937 18938# Shared library suffix (normally ".so"). 18939shrext_cmds='$shrext_cmds' 18940 18941# Executable file suffix (normally ""). 18942exeext="$exeext" 18943 18944# Additional compiler flags for building library objects. 18945pic_flag=$lt_lt_prog_compiler_pic_RC 18946pic_mode=$pic_mode 18947 18948# What is the maximum length of a command? 18949max_cmd_len=$lt_cv_sys_max_cmd_len 18950 18951# Does compiler simultaneously support -c and -o options? 18952compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18953 18954# Must we lock files when doing compilation? 18955need_locks=$lt_need_locks 18956 18957# Do we need the lib prefix for modules? 18958need_lib_prefix=$need_lib_prefix 18959 18960# Do we need a version for libraries? 18961need_version=$need_version 18962 18963# Whether dlopen is supported. 18964dlopen_support=$enable_dlopen 18965 18966# Whether dlopen of programs is supported. 18967dlopen_self=$enable_dlopen_self 18968 18969# Whether dlopen of statically linked programs is supported. 18970dlopen_self_static=$enable_dlopen_self_static 18971 18972# Compiler flag to prevent dynamic linking. 18973link_static_flag=$lt_lt_prog_compiler_static_RC 18974 18975# Compiler flag to turn off builtin functions. 18976no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18977 18978# Compiler flag to allow reflexive dlopens. 18979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18980 18981# Compiler flag to generate shared objects directly from archives. 18982whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18983 18984# Compiler flag to generate thread-safe objects. 18985thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18986 18987# Library versioning type. 18988version_type=$version_type 18989 18990# Format of library name prefix. 18991libname_spec=$lt_libname_spec 18992 18993# List of archive names. First name is the real one, the rest are links. 18994# The last name is the one that the linker finds with -lNAME. 18995library_names_spec=$lt_library_names_spec 18996 18997# The coded name of the library, if different from the real name. 18998soname_spec=$lt_soname_spec 18999 19000# Commands used to build and install an old-style archive. 19001RANLIB=$lt_RANLIB 19002old_archive_cmds=$lt_old_archive_cmds_RC 19003old_postinstall_cmds=$lt_old_postinstall_cmds 19004old_postuninstall_cmds=$lt_old_postuninstall_cmds 19005 19006# Create an old-style archive from a shared archive. 19007old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19008 19009# Create a temporary old-style archive to link instead of a shared archive. 19010old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19011 19012# Commands used to build and install a shared archive. 19013archive_cmds=$lt_archive_cmds_RC 19014archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19015postinstall_cmds=$lt_postinstall_cmds 19016postuninstall_cmds=$lt_postuninstall_cmds 19017 19018# Commands used to build a loadable module (assumed same as above if empty) 19019module_cmds=$lt_module_cmds_RC 19020module_expsym_cmds=$lt_module_expsym_cmds_RC 19021 19022# Commands to strip libraries. 19023old_striplib=$lt_old_striplib 19024striplib=$lt_striplib 19025 19026# Dependencies to place before the objects being linked to create a 19027# shared library. 19028predep_objects=$lt_predep_objects_RC 19029 19030# Dependencies to place after the objects being linked to create a 19031# shared library. 19032postdep_objects=$lt_postdep_objects_RC 19033 19034# Dependencies to place before the objects being linked to create a 19035# shared library. 19036predeps=$lt_predeps_RC 19037 19038# Dependencies to place after the objects being linked to create a 19039# shared library. 19040postdeps=$lt_postdeps_RC 19041 19042# The library search path used internally by the compiler when linking 19043# a shared library. 19044compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19045 19046# Method to check whether dependent libraries are shared objects. 19047deplibs_check_method=$lt_deplibs_check_method 19048 19049# Command to use when deplibs_check_method == file_magic. 19050file_magic_cmd=$lt_file_magic_cmd 19051 19052# Flag that allows shared libraries with undefined symbols to be built. 19053allow_undefined_flag=$lt_allow_undefined_flag_RC 19054 19055# Flag that forces no undefined symbols. 19056no_undefined_flag=$lt_no_undefined_flag_RC 19057 19058# Commands used to finish a libtool library installation in a directory. 19059finish_cmds=$lt_finish_cmds 19060 19061# Same as above, but a single script fragment to be evaled but not shown. 19062finish_eval=$lt_finish_eval 19063 19064# Take the output of nm and produce a listing of raw symbols and C names. 19065global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19066 19067# Transform the output of nm in a proper C declaration 19068global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19069 19070# Transform the output of nm in a C name address pair 19071global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19072 19073# This is the shared library runtime path variable. 19074runpath_var=$runpath_var 19075 19076# This is the shared library path variable. 19077shlibpath_var=$shlibpath_var 19078 19079# Is shlibpath searched before the hard-coded library search path? 19080shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19081 19082# How to hardcode a shared library path into an executable. 19083hardcode_action=$hardcode_action_RC 19084 19085# Whether we should hardcode library paths into libraries. 19086hardcode_into_libs=$hardcode_into_libs 19087 19088# Flag to hardcode \$libdir into a binary during linking. 19089# This must work even if \$libdir does not exist. 19090hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19091 19092# If ld is used when linking, flag to hardcode \$libdir into 19093# a binary during linking. This must work even if \$libdir does 19094# not exist. 19095hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19096 19097# Whether we need a single -rpath flag with a separated argument. 19098hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19099 19100# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19101# resulting binary. 19102hardcode_direct=$hardcode_direct_RC 19103 19104# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19105# resulting binary. 19106hardcode_minus_L=$hardcode_minus_L_RC 19107 19108# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19109# the resulting binary. 19110hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19111 19112# Set to yes if building a shared library automatically hardcodes DIR into the library 19113# and all subsequent libraries and executables linked against it. 19114hardcode_automatic=$hardcode_automatic_RC 19115 19116# Variables whose values should be saved in libtool wrapper scripts and 19117# restored at relink time. 19118variables_saved_for_relink="$variables_saved_for_relink" 19119 19120# Whether libtool must link a program against all its dependency libraries. 19121link_all_deplibs=$link_all_deplibs_RC 19122 19123# Compile-time system search path for libraries 19124sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19125 19126# Run-time system search path for libraries 19127sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19128 19129# Fix the shell variable \$srcfile for the compiler. 19130fix_srcfile_path="$fix_srcfile_path_RC" 19131 19132# Set to yes if exported symbols are required. 19133always_export_symbols=$always_export_symbols_RC 19134 19135# The commands to list exported symbols. 19136export_symbols_cmds=$lt_export_symbols_cmds_RC 19137 19138# The commands to extract the exported symbol list from a shared archive. 19139extract_expsyms_cmds=$lt_extract_expsyms_cmds 19140 19141# Symbols that should not be listed in the preloaded symbols. 19142exclude_expsyms=$lt_exclude_expsyms_RC 19143 19144# Symbols that must always be exported. 19145include_expsyms=$lt_include_expsyms_RC 19146 19147# ### END LIBTOOL TAG CONFIG: $tagname 19148 19149__EOF__ 19150 19151 19152else 19153 # If there is no Makefile yet, we rely on a make rule to execute 19154 # `config.status --recheck' to rerun these tests and create the 19155 # libtool script then. 19156 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19157 if test -f "$ltmain_in"; then 19158 test -f Makefile && make "$ltmain" 19159 fi 19160fi 19161 19162 19163ac_ext=c 19164ac_cpp='$CPP $CPPFLAGS' 19165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19167ac_compiler_gnu=$ac_cv_c_compiler_gnu 19168 19169CC="$lt_save_CC" 19170 19171 ;; 19172 19173 *) 19174 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19175echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19176 { (exit 1); exit 1; }; } 19177 ;; 19178 esac 19179 19180 # Append the new tag name to the list of available tags. 19181 if test -n "$tagname" ; then 19182 available_tags="$available_tags $tagname" 19183 fi 19184 fi 19185 done 19186 IFS="$lt_save_ifs" 19187 19188 # Now substitute the updated list of available tags. 19189 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19190 mv "${ofile}T" "$ofile" 19191 chmod +x "$ofile" 19192 else 19193 rm -f "${ofile}T" 19194 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19195echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19196 { (exit 1); exit 1; }; } 19197 fi 19198fi 19199 19200 19201 19202# This can be used to rebuild libtool when needed 19203LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19204 19205# Always use our own libtool. 19206LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19207 19208# Prevent multiple expansion 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229ac_ext=c 19230ac_cpp='$CPP $CPPFLAGS' 19231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19233ac_compiler_gnu=$ac_cv_c_compiler_gnu 19234if test -n "$ac_tool_prefix"; then 19235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19236set dummy ${ac_tool_prefix}gcc; ac_word=$2 19237{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19239if test "${ac_cv_prog_CC+set}" = set; then 19240 echo $ECHO_N "(cached) $ECHO_C" >&6 19241else 19242 if test -n "$CC"; then 19243 ac_cv_prog_CC="$CC" # Let the user override the test. 19244else 19245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19246for as_dir in $PATH 19247do 19248 IFS=$as_save_IFS 19249 test -z "$as_dir" && as_dir=. 19250 for ac_exec_ext in '' $ac_executable_extensions; do 19251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19252 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19254 break 2 19255 fi 19256done 19257done 19258IFS=$as_save_IFS 19259 19260fi 19261fi 19262CC=$ac_cv_prog_CC 19263if test -n "$CC"; then 19264 { echo "$as_me:$LINENO: result: $CC" >&5 19265echo "${ECHO_T}$CC" >&6; } 19266else 19267 { echo "$as_me:$LINENO: result: no" >&5 19268echo "${ECHO_T}no" >&6; } 19269fi 19270 19271 19272fi 19273if test -z "$ac_cv_prog_CC"; then 19274 ac_ct_CC=$CC 19275 # Extract the first word of "gcc", so it can be a program name with args. 19276set dummy gcc; ac_word=$2 19277{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19280 echo $ECHO_N "(cached) $ECHO_C" >&6 19281else 19282 if test -n "$ac_ct_CC"; then 19283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19284else 19285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19286for as_dir in $PATH 19287do 19288 IFS=$as_save_IFS 19289 test -z "$as_dir" && as_dir=. 19290 for ac_exec_ext in '' $ac_executable_extensions; do 19291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19292 ac_cv_prog_ac_ct_CC="gcc" 19293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19294 break 2 19295 fi 19296done 19297done 19298IFS=$as_save_IFS 19299 19300fi 19301fi 19302ac_ct_CC=$ac_cv_prog_ac_ct_CC 19303if test -n "$ac_ct_CC"; then 19304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19305echo "${ECHO_T}$ac_ct_CC" >&6; } 19306else 19307 { echo "$as_me:$LINENO: result: no" >&5 19308echo "${ECHO_T}no" >&6; } 19309fi 19310 19311 if test "x$ac_ct_CC" = x; then 19312 CC="" 19313 else 19314 case $cross_compiling:$ac_tool_warned in 19315yes:) 19316{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19317whose name does not start with the host triplet. If you think this 19318configuration is useful to you, please write to autoconf@gnu.org." >&5 19319echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19320whose name does not start with the host triplet. If you think this 19321configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19322ac_tool_warned=yes ;; 19323esac 19324 CC=$ac_ct_CC 19325 fi 19326else 19327 CC="$ac_cv_prog_CC" 19328fi 19329 19330if test -z "$CC"; then 19331 if test -n "$ac_tool_prefix"; then 19332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19333set dummy ${ac_tool_prefix}cc; ac_word=$2 19334{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19336if test "${ac_cv_prog_CC+set}" = set; then 19337 echo $ECHO_N "(cached) $ECHO_C" >&6 19338else 19339 if test -n "$CC"; then 19340 ac_cv_prog_CC="$CC" # Let the user override the test. 19341else 19342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19343for as_dir in $PATH 19344do 19345 IFS=$as_save_IFS 19346 test -z "$as_dir" && as_dir=. 19347 for ac_exec_ext in '' $ac_executable_extensions; do 19348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19349 ac_cv_prog_CC="${ac_tool_prefix}cc" 19350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19351 break 2 19352 fi 19353done 19354done 19355IFS=$as_save_IFS 19356 19357fi 19358fi 19359CC=$ac_cv_prog_CC 19360if test -n "$CC"; then 19361 { echo "$as_me:$LINENO: result: $CC" >&5 19362echo "${ECHO_T}$CC" >&6; } 19363else 19364 { echo "$as_me:$LINENO: result: no" >&5 19365echo "${ECHO_T}no" >&6; } 19366fi 19367 19368 19369 fi 19370fi 19371if test -z "$CC"; then 19372 # Extract the first word of "cc", so it can be a program name with args. 19373set dummy cc; ac_word=$2 19374{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19376if test "${ac_cv_prog_CC+set}" = set; then 19377 echo $ECHO_N "(cached) $ECHO_C" >&6 19378else 19379 if test -n "$CC"; then 19380 ac_cv_prog_CC="$CC" # Let the user override the test. 19381else 19382 ac_prog_rejected=no 19383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19384for as_dir in $PATH 19385do 19386 IFS=$as_save_IFS 19387 test -z "$as_dir" && as_dir=. 19388 for ac_exec_ext in '' $ac_executable_extensions; do 19389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19391 ac_prog_rejected=yes 19392 continue 19393 fi 19394 ac_cv_prog_CC="cc" 19395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19396 break 2 19397 fi 19398done 19399done 19400IFS=$as_save_IFS 19401 19402if test $ac_prog_rejected = yes; then 19403 # We found a bogon in the path, so make sure we never use it. 19404 set dummy $ac_cv_prog_CC 19405 shift 19406 if test $# != 0; then 19407 # We chose a different compiler from the bogus one. 19408 # However, it has the same basename, so the bogon will be chosen 19409 # first if we set CC to just the basename; use the full file name. 19410 shift 19411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19412 fi 19413fi 19414fi 19415fi 19416CC=$ac_cv_prog_CC 19417if test -n "$CC"; then 19418 { echo "$as_me:$LINENO: result: $CC" >&5 19419echo "${ECHO_T}$CC" >&6; } 19420else 19421 { echo "$as_me:$LINENO: result: no" >&5 19422echo "${ECHO_T}no" >&6; } 19423fi 19424 19425 19426fi 19427if test -z "$CC"; then 19428 if test -n "$ac_tool_prefix"; then 19429 for ac_prog in cl.exe 19430 do 19431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19432set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19433{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19435if test "${ac_cv_prog_CC+set}" = set; then 19436 echo $ECHO_N "(cached) $ECHO_C" >&6 19437else 19438 if test -n "$CC"; then 19439 ac_cv_prog_CC="$CC" # Let the user override the test. 19440else 19441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19442for as_dir in $PATH 19443do 19444 IFS=$as_save_IFS 19445 test -z "$as_dir" && as_dir=. 19446 for ac_exec_ext in '' $ac_executable_extensions; do 19447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19450 break 2 19451 fi 19452done 19453done 19454IFS=$as_save_IFS 19455 19456fi 19457fi 19458CC=$ac_cv_prog_CC 19459if test -n "$CC"; then 19460 { echo "$as_me:$LINENO: result: $CC" >&5 19461echo "${ECHO_T}$CC" >&6; } 19462else 19463 { echo "$as_me:$LINENO: result: no" >&5 19464echo "${ECHO_T}no" >&6; } 19465fi 19466 19467 19468 test -n "$CC" && break 19469 done 19470fi 19471if test -z "$CC"; then 19472 ac_ct_CC=$CC 19473 for ac_prog in cl.exe 19474do 19475 # Extract the first word of "$ac_prog", so it can be a program name with args. 19476set dummy $ac_prog; ac_word=$2 19477{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19480 echo $ECHO_N "(cached) $ECHO_C" >&6 19481else 19482 if test -n "$ac_ct_CC"; then 19483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19484else 19485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19486for as_dir in $PATH 19487do 19488 IFS=$as_save_IFS 19489 test -z "$as_dir" && as_dir=. 19490 for ac_exec_ext in '' $ac_executable_extensions; do 19491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19492 ac_cv_prog_ac_ct_CC="$ac_prog" 19493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19494 break 2 19495 fi 19496done 19497done 19498IFS=$as_save_IFS 19499 19500fi 19501fi 19502ac_ct_CC=$ac_cv_prog_ac_ct_CC 19503if test -n "$ac_ct_CC"; then 19504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19505echo "${ECHO_T}$ac_ct_CC" >&6; } 19506else 19507 { echo "$as_me:$LINENO: result: no" >&5 19508echo "${ECHO_T}no" >&6; } 19509fi 19510 19511 19512 test -n "$ac_ct_CC" && break 19513done 19514 19515 if test "x$ac_ct_CC" = x; then 19516 CC="" 19517 else 19518 case $cross_compiling:$ac_tool_warned in 19519yes:) 19520{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19521whose name does not start with the host triplet. If you think this 19522configuration is useful to you, please write to autoconf@gnu.org." >&5 19523echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19524whose name does not start with the host triplet. If you think this 19525configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19526ac_tool_warned=yes ;; 19527esac 19528 CC=$ac_ct_CC 19529 fi 19530fi 19531 19532fi 19533 19534 19535test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19536See \`config.log' for more details." >&5 19537echo "$as_me: error: no acceptable C compiler found in \$PATH 19538See \`config.log' for more details." >&2;} 19539 { (exit 1); exit 1; }; } 19540 19541# Provide some information about the compiler. 19542echo "$as_me:$LINENO: checking for C compiler version" >&5 19543ac_compiler=`set X $ac_compile; echo $2` 19544{ (ac_try="$ac_compiler --version >&5" 19545case "(($ac_try" in 19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19547 *) ac_try_echo=$ac_try;; 19548esac 19549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19550 (eval "$ac_compiler --version >&5") 2>&5 19551 ac_status=$? 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19553 (exit $ac_status); } 19554{ (ac_try="$ac_compiler -v >&5" 19555case "(($ac_try" in 19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19557 *) ac_try_echo=$ac_try;; 19558esac 19559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19560 (eval "$ac_compiler -v >&5") 2>&5 19561 ac_status=$? 19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19563 (exit $ac_status); } 19564{ (ac_try="$ac_compiler -V >&5" 19565case "(($ac_try" in 19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19567 *) ac_try_echo=$ac_try;; 19568esac 19569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19570 (eval "$ac_compiler -V >&5") 2>&5 19571 ac_status=$? 19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19573 (exit $ac_status); } 19574 19575{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19576echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19577if test "${ac_cv_c_compiler_gnu+set}" = set; then 19578 echo $ECHO_N "(cached) $ECHO_C" >&6 19579else 19580 cat >conftest.$ac_ext <<_ACEOF 19581/* confdefs.h. */ 19582_ACEOF 19583cat confdefs.h >>conftest.$ac_ext 19584cat >>conftest.$ac_ext <<_ACEOF 19585/* end confdefs.h. */ 19586 19587int 19588main () 19589{ 19590#ifndef __GNUC__ 19591 choke me 19592#endif 19593 19594 ; 19595 return 0; 19596} 19597_ACEOF 19598rm -f conftest.$ac_objext 19599if { (ac_try="$ac_compile" 19600case "(($ac_try" in 19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19602 *) ac_try_echo=$ac_try;; 19603esac 19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19605 (eval "$ac_compile") 2>conftest.er1 19606 ac_status=$? 19607 grep -v '^ *+' conftest.er1 >conftest.err 19608 rm -f conftest.er1 19609 cat conftest.err >&5 19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19611 (exit $ac_status); } && { 19612 test -z "$ac_c_werror_flag" || 19613 test ! -s conftest.err 19614 } && test -s conftest.$ac_objext; then 19615 ac_compiler_gnu=yes 19616else 19617 echo "$as_me: failed program was:" >&5 19618sed 's/^/| /' conftest.$ac_ext >&5 19619 19620 ac_compiler_gnu=no 19621fi 19622 19623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19624ac_cv_c_compiler_gnu=$ac_compiler_gnu 19625 19626fi 19627{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19628echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19629GCC=`test $ac_compiler_gnu = yes && echo yes` 19630ac_test_CFLAGS=${CFLAGS+set} 19631ac_save_CFLAGS=$CFLAGS 19632{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19633echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19634if test "${ac_cv_prog_cc_g+set}" = set; then 19635 echo $ECHO_N "(cached) $ECHO_C" >&6 19636else 19637 ac_save_c_werror_flag=$ac_c_werror_flag 19638 ac_c_werror_flag=yes 19639 ac_cv_prog_cc_g=no 19640 CFLAGS="-g" 19641 cat >conftest.$ac_ext <<_ACEOF 19642/* confdefs.h. */ 19643_ACEOF 19644cat confdefs.h >>conftest.$ac_ext 19645cat >>conftest.$ac_ext <<_ACEOF 19646/* end confdefs.h. */ 19647 19648int 19649main () 19650{ 19651 19652 ; 19653 return 0; 19654} 19655_ACEOF 19656rm -f conftest.$ac_objext 19657if { (ac_try="$ac_compile" 19658case "(($ac_try" in 19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19660 *) ac_try_echo=$ac_try;; 19661esac 19662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19663 (eval "$ac_compile") 2>conftest.er1 19664 ac_status=$? 19665 grep -v '^ *+' conftest.er1 >conftest.err 19666 rm -f conftest.er1 19667 cat conftest.err >&5 19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19669 (exit $ac_status); } && { 19670 test -z "$ac_c_werror_flag" || 19671 test ! -s conftest.err 19672 } && test -s conftest.$ac_objext; then 19673 ac_cv_prog_cc_g=yes 19674else 19675 echo "$as_me: failed program was:" >&5 19676sed 's/^/| /' conftest.$ac_ext >&5 19677 19678 CFLAGS="" 19679 cat >conftest.$ac_ext <<_ACEOF 19680/* confdefs.h. */ 19681_ACEOF 19682cat confdefs.h >>conftest.$ac_ext 19683cat >>conftest.$ac_ext <<_ACEOF 19684/* end confdefs.h. */ 19685 19686int 19687main () 19688{ 19689 19690 ; 19691 return 0; 19692} 19693_ACEOF 19694rm -f conftest.$ac_objext 19695if { (ac_try="$ac_compile" 19696case "(($ac_try" in 19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19698 *) ac_try_echo=$ac_try;; 19699esac 19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19701 (eval "$ac_compile") 2>conftest.er1 19702 ac_status=$? 19703 grep -v '^ *+' conftest.er1 >conftest.err 19704 rm -f conftest.er1 19705 cat conftest.err >&5 19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19707 (exit $ac_status); } && { 19708 test -z "$ac_c_werror_flag" || 19709 test ! -s conftest.err 19710 } && test -s conftest.$ac_objext; then 19711 : 19712else 19713 echo "$as_me: failed program was:" >&5 19714sed 's/^/| /' conftest.$ac_ext >&5 19715 19716 ac_c_werror_flag=$ac_save_c_werror_flag 19717 CFLAGS="-g" 19718 cat >conftest.$ac_ext <<_ACEOF 19719/* confdefs.h. */ 19720_ACEOF 19721cat confdefs.h >>conftest.$ac_ext 19722cat >>conftest.$ac_ext <<_ACEOF 19723/* end confdefs.h. */ 19724 19725int 19726main () 19727{ 19728 19729 ; 19730 return 0; 19731} 19732_ACEOF 19733rm -f conftest.$ac_objext 19734if { (ac_try="$ac_compile" 19735case "(($ac_try" in 19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19737 *) ac_try_echo=$ac_try;; 19738esac 19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19740 (eval "$ac_compile") 2>conftest.er1 19741 ac_status=$? 19742 grep -v '^ *+' conftest.er1 >conftest.err 19743 rm -f conftest.er1 19744 cat conftest.err >&5 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); } && { 19747 test -z "$ac_c_werror_flag" || 19748 test ! -s conftest.err 19749 } && test -s conftest.$ac_objext; then 19750 ac_cv_prog_cc_g=yes 19751else 19752 echo "$as_me: failed program was:" >&5 19753sed 's/^/| /' conftest.$ac_ext >&5 19754 19755 19756fi 19757 19758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19759fi 19760 19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762fi 19763 19764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19765 ac_c_werror_flag=$ac_save_c_werror_flag 19766fi 19767{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19768echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19769if test "$ac_test_CFLAGS" = set; then 19770 CFLAGS=$ac_save_CFLAGS 19771elif test $ac_cv_prog_cc_g = yes; then 19772 if test "$GCC" = yes; then 19773 CFLAGS="-g -O2" 19774 else 19775 CFLAGS="-g" 19776 fi 19777else 19778 if test "$GCC" = yes; then 19779 CFLAGS="-O2" 19780 else 19781 CFLAGS= 19782 fi 19783fi 19784{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19785echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19786if test "${ac_cv_prog_cc_c89+set}" = set; then 19787 echo $ECHO_N "(cached) $ECHO_C" >&6 19788else 19789 ac_cv_prog_cc_c89=no 19790ac_save_CC=$CC 19791cat >conftest.$ac_ext <<_ACEOF 19792/* confdefs.h. */ 19793_ACEOF 19794cat confdefs.h >>conftest.$ac_ext 19795cat >>conftest.$ac_ext <<_ACEOF 19796/* end confdefs.h. */ 19797#include <stdarg.h> 19798#include <stdio.h> 19799#include <sys/types.h> 19800#include <sys/stat.h> 19801/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19802struct buf { int x; }; 19803FILE * (*rcsopen) (struct buf *, struct stat *, int); 19804static char *e (p, i) 19805 char **p; 19806 int i; 19807{ 19808 return p[i]; 19809} 19810static char *f (char * (*g) (char **, int), char **p, ...) 19811{ 19812 char *s; 19813 va_list v; 19814 va_start (v,p); 19815 s = g (p, va_arg (v,int)); 19816 va_end (v); 19817 return s; 19818} 19819 19820/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19821 function prototypes and stuff, but not '\xHH' hex character constants. 19822 These don't provoke an error unfortunately, instead are silently treated 19823 as 'x'. The following induces an error, until -std is added to get 19824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19825 array size at least. It's necessary to write '\x00'==0 to get something 19826 that's true only with -std. */ 19827int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19828 19829/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19830 inside strings and character constants. */ 19831#define FOO(x) 'x' 19832int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19833 19834int test (int i, double x); 19835struct s1 {int (*f) (int a);}; 19836struct s2 {int (*f) (double a);}; 19837int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19838int argc; 19839char **argv; 19840int 19841main () 19842{ 19843return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19844 ; 19845 return 0; 19846} 19847_ACEOF 19848for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19849 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19850do 19851 CC="$ac_save_CC $ac_arg" 19852 rm -f conftest.$ac_objext 19853if { (ac_try="$ac_compile" 19854case "(($ac_try" in 19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19856 *) ac_try_echo=$ac_try;; 19857esac 19858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19859 (eval "$ac_compile") 2>conftest.er1 19860 ac_status=$? 19861 grep -v '^ *+' conftest.er1 >conftest.err 19862 rm -f conftest.er1 19863 cat conftest.err >&5 19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19865 (exit $ac_status); } && { 19866 test -z "$ac_c_werror_flag" || 19867 test ! -s conftest.err 19868 } && test -s conftest.$ac_objext; then 19869 ac_cv_prog_cc_c89=$ac_arg 19870else 19871 echo "$as_me: failed program was:" >&5 19872sed 's/^/| /' conftest.$ac_ext >&5 19873 19874 19875fi 19876 19877rm -f core conftest.err conftest.$ac_objext 19878 test "x$ac_cv_prog_cc_c89" != "xno" && break 19879done 19880rm -f conftest.$ac_ext 19881CC=$ac_save_CC 19882 19883fi 19884# AC_CACHE_VAL 19885case "x$ac_cv_prog_cc_c89" in 19886 x) 19887 { echo "$as_me:$LINENO: result: none needed" >&5 19888echo "${ECHO_T}none needed" >&6; } ;; 19889 xno) 19890 { echo "$as_me:$LINENO: result: unsupported" >&5 19891echo "${ECHO_T}unsupported" >&6; } ;; 19892 *) 19893 CC="$CC $ac_cv_prog_cc_c89" 19894 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 19895echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 19896esac 19897 19898 19899ac_ext=c 19900ac_cpp='$CPP $CPPFLAGS' 19901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19903ac_compiler_gnu=$ac_cv_c_compiler_gnu 19904 19905depcc="$CC" am_compiler_list= 19906 19907{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19908echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 19909if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19910 echo $ECHO_N "(cached) $ECHO_C" >&6 19911else 19912 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19913 # We make a subdir and do the tests there. Otherwise we can end up 19914 # making bogus files that we don't know about and never remove. For 19915 # instance it was reported that on HP-UX the gcc test will end up 19916 # making a dummy file named `D' -- because `-MD' means `put the output 19917 # in D'. 19918 mkdir conftest.dir 19919 # Copy depcomp to subdir because otherwise we won't find it if we're 19920 # using a relative directory. 19921 cp "$am_depcomp" conftest.dir 19922 cd conftest.dir 19923 # We will build objects and dependencies in a subdirectory because 19924 # it helps to detect inapplicable dependency modes. For instance 19925 # both Tru64's cc and ICC support -MD to output dependencies as a 19926 # side effect of compilation, but ICC will put the dependencies in 19927 # the current directory while Tru64 will put them in the object 19928 # directory. 19929 mkdir sub 19930 19931 am_cv_CC_dependencies_compiler_type=none 19932 if test "$am_compiler_list" = ""; then 19933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19934 fi 19935 for depmode in $am_compiler_list; do 19936 # Setup a source with many dependencies, because some compilers 19937 # like to wrap large dependency lists on column 80 (with \), and 19938 # we should not choose a depcomp mode which is confused by this. 19939 # 19940 # We need to recreate these files for each test, as the compiler may 19941 # overwrite some of them when testing with obscure command lines. 19942 # This happens at least with the AIX C compiler. 19943 : > sub/conftest.c 19944 for i in 1 2 3 4 5 6; do 19945 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19946 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19947 # Solaris 8's {/usr,}/bin/sh. 19948 touch sub/conftst$i.h 19949 done 19950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19951 19952 case $depmode in 19953 nosideeffect) 19954 # after this tag, mechanisms are not by side-effect, so they'll 19955 # only be used when explicitly requested 19956 if test "x$enable_dependency_tracking" = xyes; then 19957 continue 19958 else 19959 break 19960 fi 19961 ;; 19962 none) break ;; 19963 esac 19964 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19965 # mode. It turns out that the SunPro C++ compiler does not properly 19966 # handle `-M -o', and we need to detect this. 19967 if depmode=$depmode \ 19968 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19970 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19971 >/dev/null 2>conftest.err && 19972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19974 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19976 # icc doesn't choke on unknown options, it will just issue warnings 19977 # or remarks (even with -Werror). So we grep stderr for any message 19978 # that says an option was ignored or not supported. 19979 # When given -MP, icc 7.0 and 7.1 complain thusly: 19980 # icc: Command line warning: ignoring option '-M'; no argument required 19981 # The diagnosis changed in icc 8.0: 19982 # icc: Command line remark: option '-MP' not supported 19983 if (grep 'ignoring option' conftest.err || 19984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19985 am_cv_CC_dependencies_compiler_type=$depmode 19986 break 19987 fi 19988 fi 19989 done 19990 19991 cd .. 19992 rm -rf conftest.dir 19993else 19994 am_cv_CC_dependencies_compiler_type=none 19995fi 19996 19997fi 19998{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19999echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20001 20002 if 20003 test "x$enable_dependency_tracking" != xno \ 20004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20005 am__fastdepCC_TRUE= 20006 am__fastdepCC_FALSE='#' 20007else 20008 am__fastdepCC_TRUE='#' 20009 am__fastdepCC_FALSE= 20010fi 20011 20012 20013 20014# Checks for pkg-config packages 20015 20016 20017if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20018 if test -n "$ac_tool_prefix"; then 20019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20020set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20021{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20023if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20024 echo $ECHO_N "(cached) $ECHO_C" >&6 20025else 20026 case $PKG_CONFIG in 20027 [\\/]* | ?:[\\/]*) 20028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20029 ;; 20030 *) 20031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20032for as_dir in $PATH 20033do 20034 IFS=$as_save_IFS 20035 test -z "$as_dir" && as_dir=. 20036 for ac_exec_ext in '' $ac_executable_extensions; do 20037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20040 break 2 20041 fi 20042done 20043done 20044IFS=$as_save_IFS 20045 20046 ;; 20047esac 20048fi 20049PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20050if test -n "$PKG_CONFIG"; then 20051 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20052echo "${ECHO_T}$PKG_CONFIG" >&6; } 20053else 20054 { echo "$as_me:$LINENO: result: no" >&5 20055echo "${ECHO_T}no" >&6; } 20056fi 20057 20058 20059fi 20060if test -z "$ac_cv_path_PKG_CONFIG"; then 20061 ac_pt_PKG_CONFIG=$PKG_CONFIG 20062 # Extract the first word of "pkg-config", so it can be a program name with args. 20063set dummy pkg-config; ac_word=$2 20064{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20066if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20067 echo $ECHO_N "(cached) $ECHO_C" >&6 20068else 20069 case $ac_pt_PKG_CONFIG in 20070 [\\/]* | ?:[\\/]*) 20071 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20072 ;; 20073 *) 20074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20075for as_dir in $PATH 20076do 20077 IFS=$as_save_IFS 20078 test -z "$as_dir" && as_dir=. 20079 for ac_exec_ext in '' $ac_executable_extensions; do 20080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20081 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20083 break 2 20084 fi 20085done 20086done 20087IFS=$as_save_IFS 20088 20089 ;; 20090esac 20091fi 20092ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20093if test -n "$ac_pt_PKG_CONFIG"; then 20094 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20095echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20096else 20097 { echo "$as_me:$LINENO: result: no" >&5 20098echo "${ECHO_T}no" >&6; } 20099fi 20100 20101 if test "x$ac_pt_PKG_CONFIG" = x; then 20102 PKG_CONFIG="" 20103 else 20104 case $cross_compiling:$ac_tool_warned in 20105yes:) 20106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20107whose name does not start with the host triplet. If you think this 20108configuration is useful to you, please write to autoconf@gnu.org." >&5 20109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20110whose name does not start with the host triplet. If you think this 20111configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20112ac_tool_warned=yes ;; 20113esac 20114 PKG_CONFIG=$ac_pt_PKG_CONFIG 20115 fi 20116else 20117 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20118fi 20119 20120fi 20121if test -n "$PKG_CONFIG"; then 20122 _pkg_min_version=0.9.0 20123 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20124echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20125 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20126 { echo "$as_me:$LINENO: result: yes" >&5 20127echo "${ECHO_T}yes" >&6; } 20128 else 20129 { echo "$as_me:$LINENO: result: no" >&5 20130echo "${ECHO_T}no" >&6; } 20131 PKG_CONFIG="" 20132 fi 20133 20134fi 20135 20136pkg_failed=no 20137{ echo "$as_me:$LINENO: checking for XPM" >&5 20138echo $ECHO_N "checking for XPM... $ECHO_C" >&6; } 20139 20140if test -n "$PKG_CONFIG"; then 20141 if test -n "$PKG_CONFIG" && \ 20142 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5 20143 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 20144 ac_status=$? 20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20146 (exit $ac_status); }; then 20147 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null` 20148else 20149 pkg_failed=yes 20150fi 20151else 20152 pkg_failed=untried 20153fi 20154if test -n "$PKG_CONFIG"; then 20155 if test -n "$PKG_CONFIG" && \ 20156 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5 20157 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 20158 ac_status=$? 20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20160 (exit $ac_status); }; then 20161 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null` 20162else 20163 pkg_failed=yes 20164fi 20165else 20166 pkg_failed=untried 20167fi 20168 20169if test $pkg_failed = yes; then 20170 XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11"` 20171 # Put the nasty error message in config.log where it belongs 20172 echo "$XPM_PKG_ERRORS" 1>&5 20173 20174 { { echo "$as_me:$LINENO: error: Package requirements (xproto x11) were not met. 20175Consider adjusting the PKG_CONFIG_PATH environment variable if you 20176installed software in a non-standard prefix. 20177 20178Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables 20179to avoid the need to call pkg-config. See the pkg-config man page for 20180more details." >&5 20181echo "$as_me: error: Package requirements (xproto x11) were not met. 20182Consider adjusting the PKG_CONFIG_PATH environment variable if you 20183installed software in a non-standard prefix. 20184 20185Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables 20186to avoid the need to call pkg-config. See the pkg-config man page for 20187more details." >&2;} 20188 { (exit 1); exit 1; }; } 20189elif test $pkg_failed = untried; then 20190 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20191is in your PATH or set the PKG_CONFIG environment variable to the full 20192path to pkg-config. 20193 20194Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables 20195to avoid the need to call pkg-config. See the pkg-config man page for 20196more details. 20197 20198To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20199See \`config.log' for more details." >&5 20200echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20201is in your PATH or set the PKG_CONFIG environment variable to the full 20202path to pkg-config. 20203 20204Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables 20205to avoid the need to call pkg-config. See the pkg-config man page for 20206more details. 20207 20208To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20209See \`config.log' for more details." >&2;} 20210 { (exit 1); exit 1; }; } 20211else 20212 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 20213 XPM_LIBS=$pkg_cv_XPM_LIBS 20214 { echo "$as_me:$LINENO: result: yes" >&5 20215echo "${ECHO_T}yes" >&6; } 20216 : 20217fi 20218 20219 20220 20221# Checks for header files. 20222{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20223echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20224if test "${ac_cv_header_stdc+set}" = set; then 20225 echo $ECHO_N "(cached) $ECHO_C" >&6 20226else 20227 cat >conftest.$ac_ext <<_ACEOF 20228/* confdefs.h. */ 20229_ACEOF 20230cat confdefs.h >>conftest.$ac_ext 20231cat >>conftest.$ac_ext <<_ACEOF 20232/* end confdefs.h. */ 20233#include <stdlib.h> 20234#include <stdarg.h> 20235#include <string.h> 20236#include <float.h> 20237 20238int 20239main () 20240{ 20241 20242 ; 20243 return 0; 20244} 20245_ACEOF 20246rm -f conftest.$ac_objext 20247if { (ac_try="$ac_compile" 20248case "(($ac_try" in 20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20250 *) ac_try_echo=$ac_try;; 20251esac 20252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20253 (eval "$ac_compile") 2>conftest.er1 20254 ac_status=$? 20255 grep -v '^ *+' conftest.er1 >conftest.err 20256 rm -f conftest.er1 20257 cat conftest.err >&5 20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20259 (exit $ac_status); } && { 20260 test -z "$ac_c_werror_flag" || 20261 test ! -s conftest.err 20262 } && test -s conftest.$ac_objext; then 20263 ac_cv_header_stdc=yes 20264else 20265 echo "$as_me: failed program was:" >&5 20266sed 's/^/| /' conftest.$ac_ext >&5 20267 20268 ac_cv_header_stdc=no 20269fi 20270 20271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20272 20273if test $ac_cv_header_stdc = yes; then 20274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20275 cat >conftest.$ac_ext <<_ACEOF 20276/* confdefs.h. */ 20277_ACEOF 20278cat confdefs.h >>conftest.$ac_ext 20279cat >>conftest.$ac_ext <<_ACEOF 20280/* end confdefs.h. */ 20281#include <string.h> 20282 20283_ACEOF 20284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20285 $EGREP "memchr" >/dev/null 2>&1; then 20286 : 20287else 20288 ac_cv_header_stdc=no 20289fi 20290rm -f conftest* 20291 20292fi 20293 20294if test $ac_cv_header_stdc = yes; then 20295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20296 cat >conftest.$ac_ext <<_ACEOF 20297/* confdefs.h. */ 20298_ACEOF 20299cat confdefs.h >>conftest.$ac_ext 20300cat >>conftest.$ac_ext <<_ACEOF 20301/* end confdefs.h. */ 20302#include <stdlib.h> 20303 20304_ACEOF 20305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20306 $EGREP "free" >/dev/null 2>&1; then 20307 : 20308else 20309 ac_cv_header_stdc=no 20310fi 20311rm -f conftest* 20312 20313fi 20314 20315if test $ac_cv_header_stdc = yes; then 20316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20317 if test "$cross_compiling" = yes; then 20318 : 20319else 20320 cat >conftest.$ac_ext <<_ACEOF 20321/* confdefs.h. */ 20322_ACEOF 20323cat confdefs.h >>conftest.$ac_ext 20324cat >>conftest.$ac_ext <<_ACEOF 20325/* end confdefs.h. */ 20326#include <ctype.h> 20327#include <stdlib.h> 20328#if ((' ' & 0x0FF) == 0x020) 20329# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20330# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20331#else 20332# define ISLOWER(c) \ 20333 (('a' <= (c) && (c) <= 'i') \ 20334 || ('j' <= (c) && (c) <= 'r') \ 20335 || ('s' <= (c) && (c) <= 'z')) 20336# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20337#endif 20338 20339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20340int 20341main () 20342{ 20343 int i; 20344 for (i = 0; i < 256; i++) 20345 if (XOR (islower (i), ISLOWER (i)) 20346 || toupper (i) != TOUPPER (i)) 20347 return 2; 20348 return 0; 20349} 20350_ACEOF 20351rm -f conftest$ac_exeext 20352if { (ac_try="$ac_link" 20353case "(($ac_try" in 20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20355 *) ac_try_echo=$ac_try;; 20356esac 20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20358 (eval "$ac_link") 2>&5 20359 ac_status=$? 20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20362 { (case "(($ac_try" in 20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20364 *) ac_try_echo=$ac_try;; 20365esac 20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20367 (eval "$ac_try") 2>&5 20368 ac_status=$? 20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20370 (exit $ac_status); }; }; then 20371 : 20372else 20373 echo "$as_me: program exited with status $ac_status" >&5 20374echo "$as_me: failed program was:" >&5 20375sed 's/^/| /' conftest.$ac_ext >&5 20376 20377( exit $ac_status ) 20378ac_cv_header_stdc=no 20379fi 20380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20381fi 20382 20383 20384fi 20385fi 20386{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20387echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20388if test $ac_cv_header_stdc = yes; then 20389 20390cat >>confdefs.h <<\_ACEOF 20391#define STDC_HEADERS 1 20392_ACEOF 20393 20394fi 20395 20396 20397# Checks for functions 20398 20399for ac_func in strlcat 20400do 20401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20402{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20405 echo $ECHO_N "(cached) $ECHO_C" >&6 20406else 20407 cat >conftest.$ac_ext <<_ACEOF 20408/* confdefs.h. */ 20409_ACEOF 20410cat confdefs.h >>conftest.$ac_ext 20411cat >>conftest.$ac_ext <<_ACEOF 20412/* end confdefs.h. */ 20413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20414 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20415#define $ac_func innocuous_$ac_func 20416 20417/* System header to define __stub macros and hopefully few prototypes, 20418 which can conflict with char $ac_func (); below. 20419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20420 <limits.h> exists even on freestanding compilers. */ 20421 20422#ifdef __STDC__ 20423# include <limits.h> 20424#else 20425# include <assert.h> 20426#endif 20427 20428#undef $ac_func 20429 20430/* Override any GCC internal prototype to avoid an error. 20431 Use char because int might match the return type of a GCC 20432 builtin and then its argument prototype would still apply. */ 20433#ifdef __cplusplus 20434extern "C" 20435#endif 20436char $ac_func (); 20437/* The GNU C library defines this for functions which it implements 20438 to always fail with ENOSYS. Some functions are actually named 20439 something starting with __ and the normal name is an alias. */ 20440#if defined __stub_$ac_func || defined __stub___$ac_func 20441choke me 20442#endif 20443 20444int 20445main () 20446{ 20447return $ac_func (); 20448 ; 20449 return 0; 20450} 20451_ACEOF 20452rm -f conftest.$ac_objext conftest$ac_exeext 20453if { (ac_try="$ac_link" 20454case "(($ac_try" in 20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20456 *) ac_try_echo=$ac_try;; 20457esac 20458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20459 (eval "$ac_link") 2>conftest.er1 20460 ac_status=$? 20461 grep -v '^ *+' conftest.er1 >conftest.err 20462 rm -f conftest.er1 20463 cat conftest.err >&5 20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20465 (exit $ac_status); } && { 20466 test -z "$ac_c_werror_flag" || 20467 test ! -s conftest.err 20468 } && test -s conftest$ac_exeext && 20469 $as_test_x conftest$ac_exeext; then 20470 eval "$as_ac_var=yes" 20471else 20472 echo "$as_me: failed program was:" >&5 20473sed 's/^/| /' conftest.$ac_ext >&5 20474 20475 eval "$as_ac_var=no" 20476fi 20477 20478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20479 conftest$ac_exeext conftest.$ac_ext 20480fi 20481ac_res=`eval echo '${'$as_ac_var'}'` 20482 { echo "$as_me:$LINENO: result: $ac_res" >&5 20483echo "${ECHO_T}$ac_res" >&6; } 20484if test `eval echo '${'$as_ac_var'}'` = yes; then 20485 cat >>confdefs.h <<_ACEOF 20486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20487_ACEOF 20488 20489fi 20490done 20491 20492 20493# Checks for typedefs, structures, and compiler characteristics. 20494 20495if test "x$GCC" = "xyes"; then 20496 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 20497 -Wmissing-prototypes -Wmissing-declarations \ 20498 -Wnested-externs -fno-strict-aliasing" 20499 CFLAGS="$GCC_WARNINGS $CFLAGS" 20500fi 20501 20502# Internationalization & localization support 20503{ echo "$as_me:$LINENO: checking for library containing gettext" >&5 20504echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; } 20505if test "${ac_cv_search_gettext+set}" = set; then 20506 echo $ECHO_N "(cached) $ECHO_C" >&6 20507else 20508 ac_func_search_save_LIBS=$LIBS 20509cat >conftest.$ac_ext <<_ACEOF 20510/* confdefs.h. */ 20511_ACEOF 20512cat confdefs.h >>conftest.$ac_ext 20513cat >>conftest.$ac_ext <<_ACEOF 20514/* end confdefs.h. */ 20515 20516/* Override any GCC internal prototype to avoid an error. 20517 Use char because int might match the return type of a GCC 20518 builtin and then its argument prototype would still apply. */ 20519#ifdef __cplusplus 20520extern "C" 20521#endif 20522char gettext (); 20523int 20524main () 20525{ 20526return gettext (); 20527 ; 20528 return 0; 20529} 20530_ACEOF 20531for ac_lib in '' intl; do 20532 if test -z "$ac_lib"; then 20533 ac_res="none required" 20534 else 20535 ac_res=-l$ac_lib 20536 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20537 fi 20538 rm -f conftest.$ac_objext conftest$ac_exeext 20539if { (ac_try="$ac_link" 20540case "(($ac_try" in 20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20542 *) ac_try_echo=$ac_try;; 20543esac 20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20545 (eval "$ac_link") 2>conftest.er1 20546 ac_status=$? 20547 grep -v '^ *+' conftest.er1 >conftest.err 20548 rm -f conftest.er1 20549 cat conftest.err >&5 20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20551 (exit $ac_status); } && { 20552 test -z "$ac_c_werror_flag" || 20553 test ! -s conftest.err 20554 } && test -s conftest$ac_exeext && 20555 $as_test_x conftest$ac_exeext; then 20556 ac_cv_search_gettext=$ac_res 20557else 20558 echo "$as_me: failed program was:" >&5 20559sed 's/^/| /' conftest.$ac_ext >&5 20560 20561 20562fi 20563 20564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20565 conftest$ac_exeext 20566 if test "${ac_cv_search_gettext+set}" = set; then 20567 break 20568fi 20569done 20570if test "${ac_cv_search_gettext+set}" = set; then 20571 : 20572else 20573 ac_cv_search_gettext=no 20574fi 20575rm conftest.$ac_ext 20576LIBS=$ac_func_search_save_LIBS 20577fi 20578{ echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5 20579echo "${ECHO_T}$ac_cv_search_gettext" >&6; } 20580ac_res=$ac_cv_search_gettext 20581if test "$ac_res" != no; then 20582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20583 USE_GETTEXT="yes" 20584else 20585 USE_GETTEXT="no" 20586fi 20587 20588{ echo "$as_me:$LINENO: checking where to install localized messages" >&5 20589echo $ECHO_N "checking where to install localized messages... $ECHO_C" >&6; } 20590 20591# Check whether --with-localedir was given. 20592if test "${with_localedir+set}" = set; then 20593 withval=$with_localedir; LOCALEDIR=${withval} 20594else 20595 LOCALEDIR=${datadir}/locale 20596fi 20597 20598 20599 prefix_NONE= 20600 exec_prefix_NONE= 20601 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20602 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20603 eval ac_define_dir="\"$LOCALEDIR\"" 20604 eval ac_define_dir="\"$ac_define_dir\"" 20605 LOCALEDIR="$ac_define_dir" 20606 20607 20608cat >>confdefs.h <<_ACEOF 20609#define LOCALEDIR "$ac_define_dir" 20610_ACEOF 20611 20612 test "$prefix_NONE" && prefix=NONE 20613 test "$exec_prefix_NONE" && exec_prefix=NONE 20614 20615if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 20616 { echo "$as_me:$LINENO: result: nowhere" >&5 20617echo "${ECHO_T}nowhere" >&6; } 20618 USE_GETTEXT="no" 20619else 20620 { echo "$as_me:$LINENO: result: $LOCALEDIR" >&5 20621echo "${ECHO_T}$LOCALEDIR" >&6; } 20622fi 20623 20624if test "x$USE_GETTEXT" = "xyes" ; then 20625 20626cat >>confdefs.h <<\_ACEOF 20627#define USE_GETTEXT 1 20628_ACEOF 20629 20630fi 20631 if test "x$USE_GETTEXT" = "xyes"; then 20632 USE_GETTEXT_TRUE= 20633 USE_GETTEXT_FALSE='#' 20634else 20635 USE_GETTEXT_TRUE='#' 20636 USE_GETTEXT_FALSE= 20637fi 20638 20639 20640# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz 20641# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile 20642# Check whether --enable-stat-zfile was given. 20643if test "${enable_stat_zfile+set}" = set; then 20644 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval 20645else 20646 STAT_ZFILE=yes 20647fi 20648 20649if test x$STAT_ZFILE = xyes ; then 20650 20651cat >>confdefs.h <<\_ACEOF 20652#define STAT_ZFILE 1 20653_ACEOF 20654 20655fi 20656 20657 20658pkg_failed=no 20659{ echo "$as_me:$LINENO: checking for SXPM" >&5 20660echo $ECHO_N "checking for SXPM... $ECHO_C" >&6; } 20661 20662if test -n "$PKG_CONFIG"; then 20663 if test -n "$PKG_CONFIG" && \ 20664 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\"") >&5 20665 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5 20666 ac_status=$? 20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20668 (exit $ac_status); }; then 20669 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "xt xext xextproto" 2>/dev/null` 20670else 20671 pkg_failed=yes 20672fi 20673else 20674 pkg_failed=untried 20675fi 20676if test -n "$PKG_CONFIG"; then 20677 if test -n "$PKG_CONFIG" && \ 20678 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\"") >&5 20679 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5 20680 ac_status=$? 20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20682 (exit $ac_status); }; then 20683 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "xt xext xextproto" 2>/dev/null` 20684else 20685 pkg_failed=yes 20686fi 20687else 20688 pkg_failed=untried 20689fi 20690 20691if test $pkg_failed = yes; then 20692 SXPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt xext xextproto"` 20693 # Put the nasty error message in config.log where it belongs 20694 echo "$SXPM_PKG_ERRORS" 1>&5 20695 20696 build_sxpm=false 20697elif test $pkg_failed = untried; then 20698 build_sxpm=false 20699else 20700 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS 20701 SXPM_LIBS=$pkg_cv_SXPM_LIBS 20702 { echo "$as_me:$LINENO: result: yes" >&5 20703echo "${ECHO_T}yes" >&6; } 20704 build_sxpm=true 20705fi 20706 20707 if test x$build_sxpm = xtrue; then 20708 BUILD_SXPM_TRUE= 20709 BUILD_SXPM_FALSE='#' 20710else 20711 BUILD_SXPM_TRUE='#' 20712 BUILD_SXPM_FALSE= 20713fi 20714 20715 20716 20717 20718 20719if test x$APP_MAN_SUFFIX = x ; then 20720 APP_MAN_SUFFIX=1 20721fi 20722if test x$APP_MAN_DIR = x ; then 20723 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20724fi 20725 20726if test x$LIB_MAN_SUFFIX = x ; then 20727 LIB_MAN_SUFFIX=3 20728fi 20729if test x$LIB_MAN_DIR = x ; then 20730 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20731fi 20732 20733if test x$FILE_MAN_SUFFIX = x ; then 20734 case $host_os in 20735 solaris*) FILE_MAN_SUFFIX=4 ;; 20736 *) FILE_MAN_SUFFIX=5 ;; 20737 esac 20738fi 20739if test x$FILE_MAN_DIR = x ; then 20740 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20741fi 20742 20743if test x$MISC_MAN_SUFFIX = x ; then 20744 case $host_os in 20745 solaris*) MISC_MAN_SUFFIX=5 ;; 20746 *) MISC_MAN_SUFFIX=7 ;; 20747 esac 20748fi 20749if test x$MISC_MAN_DIR = x ; then 20750 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20751fi 20752 20753if test x$DRIVER_MAN_SUFFIX = x ; then 20754 case $host_os in 20755 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20756 *) DRIVER_MAN_SUFFIX=4 ;; 20757 esac 20758fi 20759if test x$DRIVER_MAN_DIR = x ; then 20760 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20761fi 20762 20763if test x$ADMIN_MAN_SUFFIX = x ; then 20764 case $host_os in 20765 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20766 *) ADMIN_MAN_SUFFIX=8 ;; 20767 esac 20768fi 20769if test x$ADMIN_MAN_DIR = x ; then 20770 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20771fi 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789# Check whether --with-release-version was given. 20790if test "${with_release_version+set}" = set; then 20791 withval=$with_release_version; RELEASE_VERSION="$withval" 20792else 20793 RELEASE_VERSION="" 20794fi 20795 20796 if test "x$RELEASE_VERSION" != "x"; then 20797 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20798 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20799 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20800echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20801 fi 20802 20803cat >>confdefs.h <<_ACEOF 20804#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20805_ACEOF 20806 20807 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 20808 if test "x$PVM" = "x"; then 20809 PVM="0" 20810 fi 20811 20812cat >>confdefs.h <<_ACEOF 20813#define PACKAGE_VERSION_MINOR $PVM 20814_ACEOF 20815 20816 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 20817 if test "x$PVP" = "x"; then 20818 PVP="0" 20819 fi 20820 20821cat >>confdefs.h <<_ACEOF 20822#define PACKAGE_VERSION_PATCHLEVEL $PVP 20823_ACEOF 20824 20825 20826 20827ac_config_files="$ac_config_files Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc" 20828 20829cat >confcache <<\_ACEOF 20830# This file is a shell script that caches the results of configure 20831# tests run on this system so they can be shared between configure 20832# scripts and configure runs, see configure's option --config-cache. 20833# It is not useful on other systems. If it contains results you don't 20834# want to keep, you may remove or edit it. 20835# 20836# config.status only pays attention to the cache file if you give it 20837# the --recheck option to rerun configure. 20838# 20839# `ac_cv_env_foo' variables (set or unset) will be overridden when 20840# loading this file, other *unset* `ac_cv_foo' will be assigned the 20841# following values. 20842 20843_ACEOF 20844 20845# The following way of writing the cache mishandles newlines in values, 20846# but we know of no workaround that is simple, portable, and efficient. 20847# So, we kill variables containing newlines. 20848# Ultrix sh set writes to stderr and can't be redirected directly, 20849# and sets the high bit in the cache file unless we assign to the vars. 20850( 20851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20852 eval ac_val=\$$ac_var 20853 case $ac_val in #( 20854 *${as_nl}*) 20855 case $ac_var in #( 20856 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20857echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20858 esac 20859 case $ac_var in #( 20860 _ | IFS | as_nl) ;; #( 20861 *) $as_unset $ac_var ;; 20862 esac ;; 20863 esac 20864 done 20865 20866 (set) 2>&1 | 20867 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20868 *${as_nl}ac_space=\ *) 20869 # `set' does not quote correctly, so add quotes (double-quote 20870 # substitution turns \\\\ into \\, and sed turns \\ into \). 20871 sed -n \ 20872 "s/'/'\\\\''/g; 20873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20874 ;; #( 20875 *) 20876 # `set' quotes correctly as required by POSIX, so do not add quotes. 20877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20878 ;; 20879 esac | 20880 sort 20881) | 20882 sed ' 20883 /^ac_cv_env_/b end 20884 t clear 20885 :clear 20886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20887 t end 20888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20889 :end' >>confcache 20890if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20891 if test -w "$cache_file"; then 20892 test "x$cache_file" != "x/dev/null" && 20893 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20894echo "$as_me: updating cache $cache_file" >&6;} 20895 cat confcache >$cache_file 20896 else 20897 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20898echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20899 fi 20900fi 20901rm -f confcache 20902 20903test "x$prefix" = xNONE && prefix=$ac_default_prefix 20904# Let make expand exec_prefix. 20905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20906 20907DEFS=-DHAVE_CONFIG_H 20908 20909ac_libobjs= 20910ac_ltlibobjs= 20911for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20912 # 1. Remove the extension, and $U if already installed. 20913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20914 ac_i=`echo "$ac_i" | sed "$ac_script"` 20915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20916 # will be set to the directory where LIBOBJS objects are built. 20917 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20918 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20919done 20920LIBOBJS=$ac_libobjs 20921 20922LTLIBOBJS=$ac_ltlibobjs 20923 20924 20925if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20926 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20927Usually this means the macro was only invoked conditionally." >&5 20928echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20929Usually this means the macro was only invoked conditionally." >&2;} 20930 { (exit 1); exit 1; }; } 20931fi 20932if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20933 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20934Usually this means the macro was only invoked conditionally." >&5 20935echo "$as_me: error: conditional \"AMDEP\" was never defined. 20936Usually this means the macro was only invoked conditionally." >&2;} 20937 { (exit 1); exit 1; }; } 20938fi 20939if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20941Usually this means the macro was only invoked conditionally." >&5 20942echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20943Usually this means the macro was only invoked conditionally." >&2;} 20944 { (exit 1); exit 1; }; } 20945fi 20946if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20947 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20948Usually this means the macro was only invoked conditionally." >&5 20949echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20950Usually this means the macro was only invoked conditionally." >&2;} 20951 { (exit 1); exit 1; }; } 20952fi 20953if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20954 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20955Usually this means the macro was only invoked conditionally." >&5 20956echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20957Usually this means the macro was only invoked conditionally." >&2;} 20958 { (exit 1); exit 1; }; } 20959fi 20960if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 20961 { { echo "$as_me:$LINENO: error: conditional \"USE_GETTEXT\" was never defined. 20962Usually this means the macro was only invoked conditionally." >&5 20963echo "$as_me: error: conditional \"USE_GETTEXT\" was never defined. 20964Usually this means the macro was only invoked conditionally." >&2;} 20965 { (exit 1); exit 1; }; } 20966fi 20967if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then 20968 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SXPM\" was never defined. 20969Usually this means the macro was only invoked conditionally." >&5 20970echo "$as_me: error: conditional \"BUILD_SXPM\" was never defined. 20971Usually this means the macro was only invoked conditionally." >&2;} 20972 { (exit 1); exit 1; }; } 20973fi 20974 20975: ${CONFIG_STATUS=./config.status} 20976ac_clean_files_save=$ac_clean_files 20977ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20978{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20979echo "$as_me: creating $CONFIG_STATUS" >&6;} 20980cat >$CONFIG_STATUS <<_ACEOF 20981#! $SHELL 20982# Generated by $as_me. 20983# Run this file to recreate the current configuration. 20984# Compiler output produced by configure, useful for debugging 20985# configure, is in config.log if it exists. 20986 20987debug=false 20988ac_cs_recheck=false 20989ac_cs_silent=false 20990SHELL=\${CONFIG_SHELL-$SHELL} 20991_ACEOF 20992 20993cat >>$CONFIG_STATUS <<\_ACEOF 20994## --------------------- ## 20995## M4sh Initialization. ## 20996## --------------------- ## 20997 20998# Be more Bourne compatible 20999DUALCASE=1; export DUALCASE # for MKS sh 21000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21001 emulate sh 21002 NULLCMD=: 21003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21004 # is contrary to our usage. Disable this feature. 21005 alias -g '${1+"$@"}'='"$@"' 21006 setopt NO_GLOB_SUBST 21007else 21008 case `(set -o) 2>/dev/null` in 21009 *posix*) set -o posix ;; 21010esac 21011 21012fi 21013 21014 21015 21016 21017# PATH needs CR 21018# Avoid depending upon Character Ranges. 21019as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21021as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21022as_cr_digits='0123456789' 21023as_cr_alnum=$as_cr_Letters$as_cr_digits 21024 21025# The user is always right. 21026if test "${PATH_SEPARATOR+set}" != set; then 21027 echo "#! /bin/sh" >conf$$.sh 21028 echo "exit 0" >>conf$$.sh 21029 chmod +x conf$$.sh 21030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21031 PATH_SEPARATOR=';' 21032 else 21033 PATH_SEPARATOR=: 21034 fi 21035 rm -f conf$$.sh 21036fi 21037 21038# Support unset when possible. 21039if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21040 as_unset=unset 21041else 21042 as_unset=false 21043fi 21044 21045 21046# IFS 21047# We need space, tab and new line, in precisely that order. Quoting is 21048# there to prevent editors from complaining about space-tab. 21049# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21050# splitting by setting IFS to empty value.) 21051as_nl=' 21052' 21053IFS=" "" $as_nl" 21054 21055# Find who we are. Look in the path if we contain no directory separator. 21056case $0 in 21057 *[\\/]* ) as_myself=$0 ;; 21058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21059for as_dir in $PATH 21060do 21061 IFS=$as_save_IFS 21062 test -z "$as_dir" && as_dir=. 21063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21064done 21065IFS=$as_save_IFS 21066 21067 ;; 21068esac 21069# We did not find ourselves, most probably we were run as `sh COMMAND' 21070# in which case we are not to be found in the path. 21071if test "x$as_myself" = x; then 21072 as_myself=$0 21073fi 21074if test ! -f "$as_myself"; then 21075 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21076 { (exit 1); exit 1; } 21077fi 21078 21079# Work around bugs in pre-3.0 UWIN ksh. 21080for as_var in ENV MAIL MAILPATH 21081do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21082done 21083PS1='$ ' 21084PS2='> ' 21085PS4='+ ' 21086 21087# NLS nuisances. 21088for as_var in \ 21089 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21090 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21091 LC_TELEPHONE LC_TIME 21092do 21093 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21094 eval $as_var=C; export $as_var 21095 else 21096 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21097 fi 21098done 21099 21100# Required to use basename. 21101if expr a : '\(a\)' >/dev/null 2>&1 && 21102 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21103 as_expr=expr 21104else 21105 as_expr=false 21106fi 21107 21108if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21109 as_basename=basename 21110else 21111 as_basename=false 21112fi 21113 21114 21115# Name of the executable. 21116as_me=`$as_basename -- "$0" || 21117$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21118 X"$0" : 'X\(//\)$' \| \ 21119 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21120echo X/"$0" | 21121 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21122 s//\1/ 21123 q 21124 } 21125 /^X\/\(\/\/\)$/{ 21126 s//\1/ 21127 q 21128 } 21129 /^X\/\(\/\).*/{ 21130 s//\1/ 21131 q 21132 } 21133 s/.*/./; q'` 21134 21135# CDPATH. 21136$as_unset CDPATH 21137 21138 21139 21140 as_lineno_1=$LINENO 21141 as_lineno_2=$LINENO 21142 test "x$as_lineno_1" != "x$as_lineno_2" && 21143 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21144 21145 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21146 # uniformly replaced by the line number. The first 'sed' inserts a 21147 # line-number line after each line using $LINENO; the second 'sed' 21148 # does the real work. The second script uses 'N' to pair each 21149 # line-number line with the line containing $LINENO, and appends 21150 # trailing '-' during substitution so that $LINENO is not a special 21151 # case at line end. 21152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21153 # scripts with optimization help from Paolo Bonzini. Blame Lee 21154 # E. McMahon (1931-1989) for sed's syntax. :-) 21155 sed -n ' 21156 p 21157 /[$]LINENO/= 21158 ' <$as_myself | 21159 sed ' 21160 s/[$]LINENO.*/&-/ 21161 t lineno 21162 b 21163 :lineno 21164 N 21165 :loop 21166 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21167 t loop 21168 s/-\n.*// 21169 ' >$as_me.lineno && 21170 chmod +x "$as_me.lineno" || 21171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21172 { (exit 1); exit 1; }; } 21173 21174 # Don't try to exec as it changes $[0], causing all sort of problems 21175 # (the dirname of $[0] is not the place where we might find the 21176 # original and so on. Autoconf is especially sensitive to this). 21177 . "./$as_me.lineno" 21178 # Exit status is that of the last command. 21179 exit 21180} 21181 21182 21183if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21184 as_dirname=dirname 21185else 21186 as_dirname=false 21187fi 21188 21189ECHO_C= ECHO_N= ECHO_T= 21190case `echo -n x` in 21191-n*) 21192 case `echo 'x\c'` in 21193 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21194 *) ECHO_C='\c';; 21195 esac;; 21196*) 21197 ECHO_N='-n';; 21198esac 21199 21200if expr a : '\(a\)' >/dev/null 2>&1 && 21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21202 as_expr=expr 21203else 21204 as_expr=false 21205fi 21206 21207rm -f conf$$ conf$$.exe conf$$.file 21208if test -d conf$$.dir; then 21209 rm -f conf$$.dir/conf$$.file 21210else 21211 rm -f conf$$.dir 21212 mkdir conf$$.dir 21213fi 21214echo >conf$$.file 21215if ln -s conf$$.file conf$$ 2>/dev/null; then 21216 as_ln_s='ln -s' 21217 # ... but there are two gotchas: 21218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21220 # In both cases, we have to default to `cp -p'. 21221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21222 as_ln_s='cp -p' 21223elif ln conf$$.file conf$$ 2>/dev/null; then 21224 as_ln_s=ln 21225else 21226 as_ln_s='cp -p' 21227fi 21228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21229rmdir conf$$.dir 2>/dev/null 21230 21231if mkdir -p . 2>/dev/null; then 21232 as_mkdir_p=: 21233else 21234 test -d ./-p && rmdir ./-p 21235 as_mkdir_p=false 21236fi 21237 21238if test -x / >/dev/null 2>&1; then 21239 as_test_x='test -x' 21240else 21241 if ls -dL / >/dev/null 2>&1; then 21242 as_ls_L_option=L 21243 else 21244 as_ls_L_option= 21245 fi 21246 as_test_x=' 21247 eval sh -c '\'' 21248 if test -d "$1"; then 21249 test -d "$1/."; 21250 else 21251 case $1 in 21252 -*)set "./$1";; 21253 esac; 21254 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21255 ???[sx]*):;;*)false;;esac;fi 21256 '\'' sh 21257 ' 21258fi 21259as_executable_p=$as_test_x 21260 21261# Sed expression to map a string onto a valid CPP name. 21262as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21263 21264# Sed expression to map a string onto a valid variable name. 21265as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21266 21267 21268exec 6>&1 21269 21270# Save the log message, to keep $[0] and so on meaningful, and to 21271# report actual input values of CONFIG_FILES etc. instead of their 21272# values after options handling. 21273ac_log=" 21274This file was extended by libXpm $as_me 3.5.7, which was 21275generated by GNU Autoconf 2.61. Invocation command line was 21276 21277 CONFIG_FILES = $CONFIG_FILES 21278 CONFIG_HEADERS = $CONFIG_HEADERS 21279 CONFIG_LINKS = $CONFIG_LINKS 21280 CONFIG_COMMANDS = $CONFIG_COMMANDS 21281 $ $0 $@ 21282 21283on `(hostname || uname -n) 2>/dev/null | sed 1q` 21284" 21285 21286_ACEOF 21287 21288cat >>$CONFIG_STATUS <<_ACEOF 21289# Files that config.status was made for. 21290config_files="$ac_config_files" 21291config_headers="$ac_config_headers" 21292config_commands="$ac_config_commands" 21293 21294_ACEOF 21295 21296cat >>$CONFIG_STATUS <<\_ACEOF 21297ac_cs_usage="\ 21298\`$as_me' instantiates files from templates according to the 21299current configuration. 21300 21301Usage: $0 [OPTIONS] [FILE]... 21302 21303 -h, --help print this help, then exit 21304 -V, --version print version number and configuration settings, then exit 21305 -q, --quiet do not print progress messages 21306 -d, --debug don't remove temporary files 21307 --recheck update $as_me by reconfiguring in the same conditions 21308 --file=FILE[:TEMPLATE] 21309 instantiate the configuration file FILE 21310 --header=FILE[:TEMPLATE] 21311 instantiate the configuration header FILE 21312 21313Configuration files: 21314$config_files 21315 21316Configuration headers: 21317$config_headers 21318 21319Configuration commands: 21320$config_commands 21321 21322Report bugs to <bug-autoconf@gnu.org>." 21323 21324_ACEOF 21325cat >>$CONFIG_STATUS <<_ACEOF 21326ac_cs_version="\\ 21327libXpm config.status 3.5.7 21328configured by $0, generated by GNU Autoconf 2.61, 21329 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21330 21331Copyright (C) 2006 Free Software Foundation, Inc. 21332This config.status script is free software; the Free Software Foundation 21333gives unlimited permission to copy, distribute and modify it." 21334 21335ac_pwd='$ac_pwd' 21336srcdir='$srcdir' 21337INSTALL='$INSTALL' 21338MKDIR_P='$MKDIR_P' 21339_ACEOF 21340 21341cat >>$CONFIG_STATUS <<\_ACEOF 21342# If no file are specified by the user, then we need to provide default 21343# value. By we need to know if files were specified by the user. 21344ac_need_defaults=: 21345while test $# != 0 21346do 21347 case $1 in 21348 --*=*) 21349 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21351 ac_shift=: 21352 ;; 21353 *) 21354 ac_option=$1 21355 ac_optarg=$2 21356 ac_shift=shift 21357 ;; 21358 esac 21359 21360 case $ac_option in 21361 # Handling of the options. 21362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21363 ac_cs_recheck=: ;; 21364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21365 echo "$ac_cs_version"; exit ;; 21366 --debug | --debu | --deb | --de | --d | -d ) 21367 debug=: ;; 21368 --file | --fil | --fi | --f ) 21369 $ac_shift 21370 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21371 ac_need_defaults=false;; 21372 --header | --heade | --head | --hea ) 21373 $ac_shift 21374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21375 ac_need_defaults=false;; 21376 --he | --h) 21377 # Conflict between --help and --header 21378 { echo "$as_me: error: ambiguous option: $1 21379Try \`$0 --help' for more information." >&2 21380 { (exit 1); exit 1; }; };; 21381 --help | --hel | -h ) 21382 echo "$ac_cs_usage"; exit ;; 21383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21384 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21385 ac_cs_silent=: ;; 21386 21387 # This is an error. 21388 -*) { echo "$as_me: error: unrecognized option: $1 21389Try \`$0 --help' for more information." >&2 21390 { (exit 1); exit 1; }; } ;; 21391 21392 *) ac_config_targets="$ac_config_targets $1" 21393 ac_need_defaults=false ;; 21394 21395 esac 21396 shift 21397done 21398 21399ac_configure_extra_args= 21400 21401if $ac_cs_silent; then 21402 exec 6>/dev/null 21403 ac_configure_extra_args="$ac_configure_extra_args --silent" 21404fi 21405 21406_ACEOF 21407cat >>$CONFIG_STATUS <<_ACEOF 21408if \$ac_cs_recheck; then 21409 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21410 CONFIG_SHELL=$SHELL 21411 export CONFIG_SHELL 21412 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21413fi 21414 21415_ACEOF 21416cat >>$CONFIG_STATUS <<\_ACEOF 21417exec 5>>config.log 21418{ 21419 echo 21420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21421## Running $as_me. ## 21422_ASBOX 21423 echo "$ac_log" 21424} >&5 21425 21426_ACEOF 21427cat >>$CONFIG_STATUS <<_ACEOF 21428# 21429# INIT-COMMANDS 21430# 21431AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21432 21433_ACEOF 21434 21435cat >>$CONFIG_STATUS <<\_ACEOF 21436 21437# Handling of arguments. 21438for ac_config_target in $ac_config_targets 21439do 21440 case $ac_config_target in 21441 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21442 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21444 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21445 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;; 21446 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;; 21447 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;; 21448 21449 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21450echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21451 { (exit 1); exit 1; }; };; 21452 esac 21453done 21454 21455 21456# If the user did not use the arguments to specify the items to instantiate, 21457# then the envvar interface is used. Set only those that are not. 21458# We use the long form for the default assignment because of an extremely 21459# bizarre bug on SunOS 4.1.3. 21460if $ac_need_defaults; then 21461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21464fi 21465 21466# Have a temporary directory for convenience. Make it in the build tree 21467# simply because there is no reason against having it here, and in addition, 21468# creating and moving files from /tmp can sometimes cause problems. 21469# Hook for its removal unless debugging. 21470# Note that there is a small window in which the directory will not be cleaned: 21471# after its creation but before its name has been assigned to `$tmp'. 21472$debug || 21473{ 21474 tmp= 21475 trap 'exit_status=$? 21476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21477' 0 21478 trap '{ (exit 1); exit 1; }' 1 2 13 15 21479} 21480# Create a (secure) tmp directory for tmp files. 21481 21482{ 21483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21484 test -n "$tmp" && test -d "$tmp" 21485} || 21486{ 21487 tmp=./conf$$-$RANDOM 21488 (umask 077 && mkdir "$tmp") 21489} || 21490{ 21491 echo "$me: cannot create a temporary directory in ." >&2 21492 { (exit 1); exit 1; } 21493} 21494 21495# 21496# Set up the sed scripts for CONFIG_FILES section. 21497# 21498 21499# No need to generate the scripts if there are no CONFIG_FILES. 21500# This happens for instance when ./config.status config.h 21501if test -n "$CONFIG_FILES"; then 21502 21503_ACEOF 21504 21505 21506 21507ac_delim='%!_!# ' 21508for ac_last_try in false false false false false :; do 21509 cat >conf$$subs.sed <<_ACEOF 21510SHELL!$SHELL$ac_delim 21511PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21512PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21513PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21514PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21515PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21516PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21517exec_prefix!$exec_prefix$ac_delim 21518prefix!$prefix$ac_delim 21519program_transform_name!$program_transform_name$ac_delim 21520bindir!$bindir$ac_delim 21521sbindir!$sbindir$ac_delim 21522libexecdir!$libexecdir$ac_delim 21523datarootdir!$datarootdir$ac_delim 21524datadir!$datadir$ac_delim 21525sysconfdir!$sysconfdir$ac_delim 21526sharedstatedir!$sharedstatedir$ac_delim 21527localstatedir!$localstatedir$ac_delim 21528includedir!$includedir$ac_delim 21529oldincludedir!$oldincludedir$ac_delim 21530docdir!$docdir$ac_delim 21531infodir!$infodir$ac_delim 21532htmldir!$htmldir$ac_delim 21533dvidir!$dvidir$ac_delim 21534pdfdir!$pdfdir$ac_delim 21535psdir!$psdir$ac_delim 21536libdir!$libdir$ac_delim 21537localedir!$localedir$ac_delim 21538mandir!$mandir$ac_delim 21539DEFS!$DEFS$ac_delim 21540ECHO_C!$ECHO_C$ac_delim 21541ECHO_N!$ECHO_N$ac_delim 21542ECHO_T!$ECHO_T$ac_delim 21543LIBS!$LIBS$ac_delim 21544build_alias!$build_alias$ac_delim 21545host_alias!$host_alias$ac_delim 21546target_alias!$target_alias$ac_delim 21547INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21548INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21549INSTALL_DATA!$INSTALL_DATA$ac_delim 21550am__isrc!$am__isrc$ac_delim 21551CYGPATH_W!$CYGPATH_W$ac_delim 21552PACKAGE!$PACKAGE$ac_delim 21553VERSION!$VERSION$ac_delim 21554ACLOCAL!$ACLOCAL$ac_delim 21555AUTOCONF!$AUTOCONF$ac_delim 21556AUTOMAKE!$AUTOMAKE$ac_delim 21557AUTOHEADER!$AUTOHEADER$ac_delim 21558MAKEINFO!$MAKEINFO$ac_delim 21559install_sh!$install_sh$ac_delim 21560STRIP!$STRIP$ac_delim 21561INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21562mkdir_p!$mkdir_p$ac_delim 21563AWK!$AWK$ac_delim 21564SET_MAKE!$SET_MAKE$ac_delim 21565am__leading_dot!$am__leading_dot$ac_delim 21566AMTAR!$AMTAR$ac_delim 21567am__tar!$am__tar$ac_delim 21568am__untar!$am__untar$ac_delim 21569MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21570MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21571MAINT!$MAINT$ac_delim 21572build!$build$ac_delim 21573build_cpu!$build_cpu$ac_delim 21574build_vendor!$build_vendor$ac_delim 21575build_os!$build_os$ac_delim 21576host!$host$ac_delim 21577host_cpu!$host_cpu$ac_delim 21578host_vendor!$host_vendor$ac_delim 21579host_os!$host_os$ac_delim 21580CC!$CC$ac_delim 21581CFLAGS!$CFLAGS$ac_delim 21582LDFLAGS!$LDFLAGS$ac_delim 21583CPPFLAGS!$CPPFLAGS$ac_delim 21584ac_ct_CC!$ac_ct_CC$ac_delim 21585EXEEXT!$EXEEXT$ac_delim 21586OBJEXT!$OBJEXT$ac_delim 21587DEPDIR!$DEPDIR$ac_delim 21588am__include!$am__include$ac_delim 21589am__quote!$am__quote$ac_delim 21590AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21591AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21592AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21593CCDEPMODE!$CCDEPMODE$ac_delim 21594am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21595am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21596GREP!$GREP$ac_delim 21597EGREP!$EGREP$ac_delim 21598LN_S!$LN_S$ac_delim 21599ECHO!$ECHO$ac_delim 21600AR!$AR$ac_delim 21601RANLIB!$RANLIB$ac_delim 21602CPP!$CPP$ac_delim 21603CXX!$CXX$ac_delim 21604CXXFLAGS!$CXXFLAGS$ac_delim 21605ac_ct_CXX!$ac_ct_CXX$ac_delim 21606CXXDEPMODE!$CXXDEPMODE$ac_delim 21607_ACEOF 21608 21609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21610 break 21611 elif $ac_last_try; then 21612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21613echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21614 { (exit 1); exit 1; }; } 21615 else 21616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21617 fi 21618done 21619 21620ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21621if test -n "$ac_eof"; then 21622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21623 ac_eof=`expr $ac_eof + 1` 21624fi 21625 21626cat >>$CONFIG_STATUS <<_ACEOF 21627cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21629_ACEOF 21630sed ' 21631s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21632s/^/s,@/; s/!/@,|#_!!_#|/ 21633:n 21634t n 21635s/'"$ac_delim"'$/,g/; t 21636s/$/\\/; p 21637N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21638' >>$CONFIG_STATUS <conf$$subs.sed 21639rm -f conf$$subs.sed 21640cat >>$CONFIG_STATUS <<_ACEOF 21641CEOF$ac_eof 21642_ACEOF 21643 21644 21645ac_delim='%!_!# ' 21646for ac_last_try in false false false false false :; do 21647 cat >conf$$subs.sed <<_ACEOF 21648am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21649am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21650CXXCPP!$CXXCPP$ac_delim 21651F77!$F77$ac_delim 21652FFLAGS!$FFLAGS$ac_delim 21653ac_ct_F77!$ac_ct_F77$ac_delim 21654LIBTOOL!$LIBTOOL$ac_delim 21655PKG_CONFIG!$PKG_CONFIG$ac_delim 21656XPM_CFLAGS!$XPM_CFLAGS$ac_delim 21657XPM_LIBS!$XPM_LIBS$ac_delim 21658LOCALEDIR!$LOCALEDIR$ac_delim 21659USE_GETTEXT_TRUE!$USE_GETTEXT_TRUE$ac_delim 21660USE_GETTEXT_FALSE!$USE_GETTEXT_FALSE$ac_delim 21661SXPM_CFLAGS!$SXPM_CFLAGS$ac_delim 21662SXPM_LIBS!$SXPM_LIBS$ac_delim 21663BUILD_SXPM_TRUE!$BUILD_SXPM_TRUE$ac_delim 21664BUILD_SXPM_FALSE!$BUILD_SXPM_FALSE$ac_delim 21665APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 21666LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 21667FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 21668MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 21669DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 21670ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 21671APP_MAN_DIR!$APP_MAN_DIR$ac_delim 21672LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 21673FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 21674MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 21675DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 21676ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 21677LIBOBJS!$LIBOBJS$ac_delim 21678LTLIBOBJS!$LTLIBOBJS$ac_delim 21679_ACEOF 21680 21681 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then 21682 break 21683 elif $ac_last_try; then 21684 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21685echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21686 { (exit 1); exit 1; }; } 21687 else 21688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21689 fi 21690done 21691 21692ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21693if test -n "$ac_eof"; then 21694 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21695 ac_eof=`expr $ac_eof + 1` 21696fi 21697 21698cat >>$CONFIG_STATUS <<_ACEOF 21699cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21700/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21701_ACEOF 21702sed ' 21703s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21704s/^/s,@/; s/!/@,|#_!!_#|/ 21705:n 21706t n 21707s/'"$ac_delim"'$/,g/; t 21708s/$/\\/; p 21709N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21710' >>$CONFIG_STATUS <conf$$subs.sed 21711rm -f conf$$subs.sed 21712cat >>$CONFIG_STATUS <<_ACEOF 21713:end 21714s/|#_!!_#|//g 21715CEOF$ac_eof 21716_ACEOF 21717 21718 21719# VPATH may cause trouble with some makes, so we remove $(srcdir), 21720# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21721# trailing colons and then remove the whole line if VPATH becomes empty 21722# (actually we leave an empty line to preserve line numbers). 21723if test "x$srcdir" = x.; then 21724 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21725s/:*\$(srcdir):*/:/ 21726s/:*\${srcdir}:*/:/ 21727s/:*@srcdir@:*/:/ 21728s/^\([^=]*=[ ]*\):*/\1/ 21729s/:*$// 21730s/^[^=]*=[ ]*$// 21731}' 21732fi 21733 21734cat >>$CONFIG_STATUS <<\_ACEOF 21735fi # test -n "$CONFIG_FILES" 21736 21737 21738for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21739do 21740 case $ac_tag in 21741 :[FHLC]) ac_mode=$ac_tag; continue;; 21742 esac 21743 case $ac_mode$ac_tag in 21744 :[FHL]*:*);; 21745 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21746echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21747 { (exit 1); exit 1; }; };; 21748 :[FH]-) ac_tag=-:-;; 21749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21750 esac 21751 ac_save_IFS=$IFS 21752 IFS=: 21753 set x $ac_tag 21754 IFS=$ac_save_IFS 21755 shift 21756 ac_file=$1 21757 shift 21758 21759 case $ac_mode in 21760 :L) ac_source=$1;; 21761 :[FH]) 21762 ac_file_inputs= 21763 for ac_f 21764 do 21765 case $ac_f in 21766 -) ac_f="$tmp/stdin";; 21767 *) # Look for the file first in the build tree, then in the source tree 21768 # (if the path is not absolute). The absolute path cannot be DOS-style, 21769 # because $ac_f cannot contain `:'. 21770 test -f "$ac_f" || 21771 case $ac_f in 21772 [\\/$]*) false;; 21773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21774 esac || 21775 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21776echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21777 { (exit 1); exit 1; }; };; 21778 esac 21779 ac_file_inputs="$ac_file_inputs $ac_f" 21780 done 21781 21782 # Let's still pretend it is `configure' which instantiates (i.e., don't 21783 # use $as_me), people would be surprised to read: 21784 # /* config.h. Generated by config.status. */ 21785 configure_input="Generated from "`IFS=: 21786 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21787 if test x"$ac_file" != x-; then 21788 configure_input="$ac_file. $configure_input" 21789 { echo "$as_me:$LINENO: creating $ac_file" >&5 21790echo "$as_me: creating $ac_file" >&6;} 21791 fi 21792 21793 case $ac_tag in 21794 *:-:* | *:-) cat >"$tmp/stdin";; 21795 esac 21796 ;; 21797 esac 21798 21799 ac_dir=`$as_dirname -- "$ac_file" || 21800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21801 X"$ac_file" : 'X\(//\)[^/]' \| \ 21802 X"$ac_file" : 'X\(//\)$' \| \ 21803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21804echo X"$ac_file" | 21805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21806 s//\1/ 21807 q 21808 } 21809 /^X\(\/\/\)[^/].*/{ 21810 s//\1/ 21811 q 21812 } 21813 /^X\(\/\/\)$/{ 21814 s//\1/ 21815 q 21816 } 21817 /^X\(\/\).*/{ 21818 s//\1/ 21819 q 21820 } 21821 s/.*/./; q'` 21822 { as_dir="$ac_dir" 21823 case $as_dir in #( 21824 -*) as_dir=./$as_dir;; 21825 esac 21826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21827 as_dirs= 21828 while :; do 21829 case $as_dir in #( 21830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21831 *) as_qdir=$as_dir;; 21832 esac 21833 as_dirs="'$as_qdir' $as_dirs" 21834 as_dir=`$as_dirname -- "$as_dir" || 21835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21836 X"$as_dir" : 'X\(//\)[^/]' \| \ 21837 X"$as_dir" : 'X\(//\)$' \| \ 21838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21839echo X"$as_dir" | 21840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21841 s//\1/ 21842 q 21843 } 21844 /^X\(\/\/\)[^/].*/{ 21845 s//\1/ 21846 q 21847 } 21848 /^X\(\/\/\)$/{ 21849 s//\1/ 21850 q 21851 } 21852 /^X\(\/\).*/{ 21853 s//\1/ 21854 q 21855 } 21856 s/.*/./; q'` 21857 test -d "$as_dir" && break 21858 done 21859 test -z "$as_dirs" || eval "mkdir $as_dirs" 21860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21861echo "$as_me: error: cannot create directory $as_dir" >&2;} 21862 { (exit 1); exit 1; }; }; } 21863 ac_builddir=. 21864 21865case "$ac_dir" in 21866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21867*) 21868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21869 # A ".." for each directory in $ac_dir_suffix. 21870 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21871 case $ac_top_builddir_sub in 21872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21874 esac ;; 21875esac 21876ac_abs_top_builddir=$ac_pwd 21877ac_abs_builddir=$ac_pwd$ac_dir_suffix 21878# for backward compatibility: 21879ac_top_builddir=$ac_top_build_prefix 21880 21881case $srcdir in 21882 .) # We are building in place. 21883 ac_srcdir=. 21884 ac_top_srcdir=$ac_top_builddir_sub 21885 ac_abs_top_srcdir=$ac_pwd ;; 21886 [\\/]* | ?:[\\/]* ) # Absolute name. 21887 ac_srcdir=$srcdir$ac_dir_suffix; 21888 ac_top_srcdir=$srcdir 21889 ac_abs_top_srcdir=$srcdir ;; 21890 *) # Relative name. 21891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21892 ac_top_srcdir=$ac_top_build_prefix$srcdir 21893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21894esac 21895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21896 21897 21898 case $ac_mode in 21899 :F) 21900 # 21901 # CONFIG_FILE 21902 # 21903 21904 case $INSTALL in 21905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21907 esac 21908 ac_MKDIR_P=$MKDIR_P 21909 case $MKDIR_P in 21910 [\\/$]* | ?:[\\/]* ) ;; 21911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21912 esac 21913_ACEOF 21914 21915cat >>$CONFIG_STATUS <<\_ACEOF 21916# If the template does not know about datarootdir, expand it. 21917# FIXME: This hack should be removed a few years after 2.60. 21918ac_datarootdir_hack=; ac_datarootdir_seen= 21919 21920case `sed -n '/datarootdir/ { 21921 p 21922 q 21923} 21924/@datadir@/p 21925/@docdir@/p 21926/@infodir@/p 21927/@localedir@/p 21928/@mandir@/p 21929' $ac_file_inputs` in 21930*datarootdir*) ac_datarootdir_seen=yes;; 21931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21932 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21933echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21934_ACEOF 21935cat >>$CONFIG_STATUS <<_ACEOF 21936 ac_datarootdir_hack=' 21937 s&@datadir@&$datadir&g 21938 s&@docdir@&$docdir&g 21939 s&@infodir@&$infodir&g 21940 s&@localedir@&$localedir&g 21941 s&@mandir@&$mandir&g 21942 s&\\\${datarootdir}&$datarootdir&g' ;; 21943esac 21944_ACEOF 21945 21946# Neutralize VPATH when `$srcdir' = `.'. 21947# Shell code in configure.ac might set extrasub. 21948# FIXME: do we really want to maintain this feature? 21949cat >>$CONFIG_STATUS <<_ACEOF 21950 sed "$ac_vpsub 21951$extrasub 21952_ACEOF 21953cat >>$CONFIG_STATUS <<\_ACEOF 21954:t 21955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21956s&@configure_input@&$configure_input&;t t 21957s&@top_builddir@&$ac_top_builddir_sub&;t t 21958s&@srcdir@&$ac_srcdir&;t t 21959s&@abs_srcdir@&$ac_abs_srcdir&;t t 21960s&@top_srcdir@&$ac_top_srcdir&;t t 21961s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21962s&@builddir@&$ac_builddir&;t t 21963s&@abs_builddir@&$ac_abs_builddir&;t t 21964s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21965s&@INSTALL@&$ac_INSTALL&;t t 21966s&@MKDIR_P@&$ac_MKDIR_P&;t t 21967$ac_datarootdir_hack 21968" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21969 21970test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21973 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21974which seems to be undefined. Please make sure it is defined." >&5 21975echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21976which seems to be undefined. Please make sure it is defined." >&2;} 21977 21978 rm -f "$tmp/stdin" 21979 case $ac_file in 21980 -) cat "$tmp/out"; rm -f "$tmp/out";; 21981 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21982 esac 21983 ;; 21984 :H) 21985 # 21986 # CONFIG_HEADER 21987 # 21988_ACEOF 21989 21990# Transform confdefs.h into a sed script `conftest.defines', that 21991# substitutes the proper values into config.h.in to produce config.h. 21992rm -f conftest.defines conftest.tail 21993# First, append a space to every undef/define line, to ease matching. 21994echo 's/$/ /' >conftest.defines 21995# Then, protect against being on the right side of a sed subst, or in 21996# an unquoted here document, in config.status. If some macros were 21997# called several times there might be several #defines for the same 21998# symbol, which is useless. But do not sort them, since the last 21999# AC_DEFINE must be honored. 22000ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22001# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22002# NAME is the cpp macro being defined, VALUE is the value it is being given. 22003# PARAMS is the parameter list in the macro definition--in most cases, it's 22004# just an empty string. 22005ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22006ac_dB='\\)[ (].*,\\1define\\2' 22007ac_dC=' ' 22008ac_dD=' ,' 22009 22010uniq confdefs.h | 22011 sed -n ' 22012 t rset 22013 :rset 22014 s/^[ ]*#[ ]*define[ ][ ]*// 22015 t ok 22016 d 22017 :ok 22018 s/[\\&,]/\\&/g 22019 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22020 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22021 ' >>conftest.defines 22022 22023# Remove the space that was appended to ease matching. 22024# Then replace #undef with comments. This is necessary, for 22025# example, in the case of _POSIX_SOURCE, which is predefined and required 22026# on some systems where configure will not decide to define it. 22027# (The regexp can be short, since the line contains either #define or #undef.) 22028echo 's/ $// 22029s,^[ #]*u.*,/* & */,' >>conftest.defines 22030 22031# Break up conftest.defines: 22032ac_max_sed_lines=50 22033 22034# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22035# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22036# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22037# et cetera. 22038ac_in='$ac_file_inputs' 22039ac_out='"$tmp/out1"' 22040ac_nxt='"$tmp/out2"' 22041 22042while : 22043do 22044 # Write a here document: 22045 cat >>$CONFIG_STATUS <<_ACEOF 22046 # First, check the format of the line: 22047 cat >"\$tmp/defines.sed" <<\\CEOF 22048/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22049/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22050b 22051:def 22052_ACEOF 22053 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22054 echo 'CEOF 22055 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22056 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22057 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22058 grep . conftest.tail >/dev/null || break 22059 rm -f conftest.defines 22060 mv conftest.tail conftest.defines 22061done 22062rm -f conftest.defines conftest.tail 22063 22064echo "ac_result=$ac_in" >>$CONFIG_STATUS 22065cat >>$CONFIG_STATUS <<\_ACEOF 22066 if test x"$ac_file" != x-; then 22067 echo "/* $configure_input */" >"$tmp/config.h" 22068 cat "$ac_result" >>"$tmp/config.h" 22069 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22070 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22071echo "$as_me: $ac_file is unchanged" >&6;} 22072 else 22073 rm -f $ac_file 22074 mv "$tmp/config.h" $ac_file 22075 fi 22076 else 22077 echo "/* $configure_input */" 22078 cat "$ac_result" 22079 fi 22080 rm -f "$tmp/out12" 22081# Compute $ac_file's index in $config_headers. 22082_am_stamp_count=1 22083for _am_header in $config_headers :; do 22084 case $_am_header in 22085 $ac_file | $ac_file:* ) 22086 break ;; 22087 * ) 22088 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22089 esac 22090done 22091echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22092$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22093 X$ac_file : 'X\(//\)[^/]' \| \ 22094 X$ac_file : 'X\(//\)$' \| \ 22095 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22096echo X$ac_file | 22097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22098 s//\1/ 22099 q 22100 } 22101 /^X\(\/\/\)[^/].*/{ 22102 s//\1/ 22103 q 22104 } 22105 /^X\(\/\/\)$/{ 22106 s//\1/ 22107 q 22108 } 22109 /^X\(\/\).*/{ 22110 s//\1/ 22111 q 22112 } 22113 s/.*/./; q'`/stamp-h$_am_stamp_count 22114 ;; 22115 22116 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22117echo "$as_me: executing $ac_file commands" >&6;} 22118 ;; 22119 esac 22120 22121 22122 case $ac_file$ac_mode in 22123 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22124 # Strip MF so we end up with the name of the file. 22125 mf=`echo "$mf" | sed -e 's/:.*$//'` 22126 # Check whether this is an Automake generated Makefile or not. 22127 # We used to match only the files named `Makefile.in', but 22128 # some people rename them; so instead we look at the file content. 22129 # Grep'ing the first line is not enough: some people post-process 22130 # each Makefile.in and add a new line on top of each file to say so. 22131 # Grep'ing the whole file is not good either: AIX grep has a line 22132 # limit of 2048, but all sed's we know have understand at least 4000. 22133 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22134 dirpart=`$as_dirname -- "$mf" || 22135$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22136 X"$mf" : 'X\(//\)[^/]' \| \ 22137 X"$mf" : 'X\(//\)$' \| \ 22138 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22139echo X"$mf" | 22140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22141 s//\1/ 22142 q 22143 } 22144 /^X\(\/\/\)[^/].*/{ 22145 s//\1/ 22146 q 22147 } 22148 /^X\(\/\/\)$/{ 22149 s//\1/ 22150 q 22151 } 22152 /^X\(\/\).*/{ 22153 s//\1/ 22154 q 22155 } 22156 s/.*/./; q'` 22157 else 22158 continue 22159 fi 22160 # Extract the definition of DEPDIR, am__include, and am__quote 22161 # from the Makefile without running `make'. 22162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22163 test -z "$DEPDIR" && continue 22164 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22165 test -z "am__include" && continue 22166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22167 # When using ansi2knr, U may be empty or an underscore; expand it 22168 U=`sed -n 's/^U = //p' < "$mf"` 22169 # Find all dependency output files, they are included files with 22170 # $(DEPDIR) in their names. We invoke sed twice because it is the 22171 # simplest approach to changing $(DEPDIR) to its actual value in the 22172 # expansion. 22173 for file in `sed -n " 22174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22176 # Make sure the directory exists. 22177 test -f "$dirpart/$file" && continue 22178 fdir=`$as_dirname -- "$file" || 22179$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22180 X"$file" : 'X\(//\)[^/]' \| \ 22181 X"$file" : 'X\(//\)$' \| \ 22182 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22183echo X"$file" | 22184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22185 s//\1/ 22186 q 22187 } 22188 /^X\(\/\/\)[^/].*/{ 22189 s//\1/ 22190 q 22191 } 22192 /^X\(\/\/\)$/{ 22193 s//\1/ 22194 q 22195 } 22196 /^X\(\/\).*/{ 22197 s//\1/ 22198 q 22199 } 22200 s/.*/./; q'` 22201 { as_dir=$dirpart/$fdir 22202 case $as_dir in #( 22203 -*) as_dir=./$as_dir;; 22204 esac 22205 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22206 as_dirs= 22207 while :; do 22208 case $as_dir in #( 22209 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22210 *) as_qdir=$as_dir;; 22211 esac 22212 as_dirs="'$as_qdir' $as_dirs" 22213 as_dir=`$as_dirname -- "$as_dir" || 22214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22215 X"$as_dir" : 'X\(//\)[^/]' \| \ 22216 X"$as_dir" : 'X\(//\)$' \| \ 22217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22218echo X"$as_dir" | 22219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22220 s//\1/ 22221 q 22222 } 22223 /^X\(\/\/\)[^/].*/{ 22224 s//\1/ 22225 q 22226 } 22227 /^X\(\/\/\)$/{ 22228 s//\1/ 22229 q 22230 } 22231 /^X\(\/\).*/{ 22232 s//\1/ 22233 q 22234 } 22235 s/.*/./; q'` 22236 test -d "$as_dir" && break 22237 done 22238 test -z "$as_dirs" || eval "mkdir $as_dirs" 22239 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22240echo "$as_me: error: cannot create directory $as_dir" >&2;} 22241 { (exit 1); exit 1; }; }; } 22242 # echo "creating $dirpart/$file" 22243 echo '# dummy' > "$dirpart/$file" 22244 done 22245done 22246 ;; 22247 22248 esac 22249done # for ac_tag 22250 22251 22252{ (exit 0); exit 0; } 22253_ACEOF 22254chmod +x $CONFIG_STATUS 22255ac_clean_files=$ac_clean_files_save 22256 22257 22258# configure is writing to config.log, and then calls config.status. 22259# config.status does its own redirection, appending to config.log. 22260# Unfortunately, on DOS this fails, as config.log is still kept open 22261# by configure, so config.status won't be able to write to it; its 22262# output is simply discarded. So we exec the FD to /dev/null, 22263# effectively closing config.log, so it can be properly (re)opened and 22264# appended to by config.status. When coming back to configure, we 22265# need to make the FD available again. 22266if test "$no_create" != yes; then 22267 ac_cs_success=: 22268 ac_config_status_args= 22269 test "$silent" = yes && 22270 ac_config_status_args="$ac_config_status_args --quiet" 22271 exec 5>/dev/null 22272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22273 exec 5>>config.log 22274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22275 # would make configure fail if this is the last instruction. 22276 $ac_cs_success || { (exit 1); exit 1; } 22277fi 22278 22279