1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for gkmap 0.2. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME='gkmap' 728PACKAGE_TARNAME='gkmap' 729PACKAGE_VERSION='0.2' 730PACKAGE_STRING='gkmap 0.2' 731PACKAGE_BUGREPORT='' 732 733# Factoring default headers for most tests. 734ac_includes_default="\ 735#include <stdio.h> 736#ifdef HAVE_SYS_TYPES_H 737# include <sys/types.h> 738#endif 739#ifdef HAVE_SYS_STAT_H 740# include <sys/stat.h> 741#endif 742#ifdef STDC_HEADERS 743# include <stdlib.h> 744# include <stddef.h> 745#else 746# ifdef HAVE_STDLIB_H 747# include <stdlib.h> 748# endif 749#endif 750#ifdef HAVE_STRING_H 751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 752# include <memory.h> 753# endif 754# include <string.h> 755#endif 756#ifdef HAVE_STRINGS_H 757# include <strings.h> 758#endif 759#ifdef HAVE_INTTYPES_H 760# include <inttypes.h> 761#endif 762#ifdef HAVE_STDINT_H 763# include <stdint.h> 764#endif 765#ifdef HAVE_UNISTD_H 766# include <unistd.h> 767#endif" 768 769ac_subst_vars='SHELL 770PATH_SEPARATOR 771PACKAGE_NAME 772PACKAGE_TARNAME 773PACKAGE_VERSION 774PACKAGE_STRING 775PACKAGE_BUGREPORT 776exec_prefix 777prefix 778program_transform_name 779bindir 780sbindir 781libexecdir 782datarootdir 783datadir 784sysconfdir 785sharedstatedir 786localstatedir 787includedir 788oldincludedir 789docdir 790infodir 791htmldir 792dvidir 793pdfdir 794psdir 795libdir 796localedir 797mandir 798DEFS 799ECHO_C 800ECHO_N 801ECHO_T 802LIBS 803build_alias 804host_alias 805target_alias 806INSTALL_PROGRAM 807INSTALL_SCRIPT 808INSTALL_DATA 809am__isrc 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 818install_sh 819STRIP 820INSTALL_STRIP_PROGRAM 821mkdir_p 822AWK 823SET_MAKE 824am__leading_dot 825AMTAR 826am__tar 827am__untar 828MAINTAINER_MODE_TRUE 829MAINTAINER_MODE_FALSE 830MAINT 831CC 832CFLAGS 833LDFLAGS 834CPPFLAGS 835ac_ct_CC 836EXEEXT 837OBJEXT 838DEPDIR 839am__include 840am__quote 841AMDEP_TRUE 842AMDEP_FALSE 843AMDEPBACKSLASH 844CCDEPMODE 845am__fastdepCC_TRUE 846am__fastdepCC_FALSE 847CPP 848GREP 849EGREP 850build 851build_cpu 852build_vendor 853build_os 854host 855host_cpu 856host_vendor 857host_os 858SED 859LN_S 860ECHO 861AR 862RANLIB 863CXX 864CXXFLAGS 865ac_ct_CXX 866CXXDEPMODE 867am__fastdepCXX_TRUE 868am__fastdepCXX_FALSE 869CXXCPP 870F77 871FFLAGS 872ac_ct_F77 873LIBTOOL 874PKG_CONFIG 875GKMAP_CFLAGS 876GKMAP_LIBS 877LIBOBJS 878LTLIBOBJS' 879ac_subst_files='' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CPP 889CXX 890CXXFLAGS 891CCC 892CXXCPP 893F77 894FFLAGS 895PKG_CONFIG 896GKMAP_CFLAGS 897GKMAP_LIBS' 898 899 900# Initialize some variables set by options. 901ac_init_help= 902ac_init_version=false 903# The variables have the same names as the options, with 904# dashes changed to underlines. 905cache_file=/dev/null 906exec_prefix=NONE 907no_create= 908no_recursion= 909prefix=NONE 910program_prefix=NONE 911program_suffix=NONE 912program_transform_name=s,x,x, 913silent= 914site= 915srcdir= 916verbose= 917x_includes=NONE 918x_libraries=NONE 919 920# Installation directory options. 921# These are left unexpanded so users can "make install exec_prefix=/foo" 922# and all the variables that are supposed to be based on exec_prefix 923# by default will actually change. 924# Use braces instead of parens because sh, perl, etc. also accept them. 925# (The list follows the same order as the GNU Coding Standards.) 926bindir='${exec_prefix}/bin' 927sbindir='${exec_prefix}/sbin' 928libexecdir='${exec_prefix}/libexec' 929datarootdir='${prefix}/share' 930datadir='${datarootdir}' 931sysconfdir='${prefix}/etc' 932sharedstatedir='${prefix}/com' 933localstatedir='${prefix}/var' 934includedir='${prefix}/include' 935oldincludedir='/usr/include' 936docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 937infodir='${datarootdir}/info' 938htmldir='${docdir}' 939dvidir='${docdir}' 940pdfdir='${docdir}' 941psdir='${docdir}' 942libdir='${exec_prefix}/lib' 943localedir='${datarootdir}/locale' 944mandir='${datarootdir}/man' 945 946ac_prev= 947ac_dashdash= 948for ac_option 949do 950 # If the previous option needs an argument, assign it. 951 if test -n "$ac_prev"; then 952 eval $ac_prev=\$ac_option 953 ac_prev= 954 continue 955 fi 956 957 case $ac_option in 958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 959 *) ac_optarg=yes ;; 960 esac 961 962 # Accept the important Cygnus configure options, so we can diagnose typos. 963 964 case $ac_dashdash$ac_option in 965 --) 966 ac_dashdash=yes ;; 967 968 -bindir | --bindir | --bindi | --bind | --bin | --bi) 969 ac_prev=bindir ;; 970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 971 bindir=$ac_optarg ;; 972 973 -build | --build | --buil | --bui | --bu) 974 ac_prev=build_alias ;; 975 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 976 build_alias=$ac_optarg ;; 977 978 -cache-file | --cache-file | --cache-fil | --cache-fi \ 979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 980 ac_prev=cache_file ;; 981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 983 cache_file=$ac_optarg ;; 984 985 --config-cache | -C) 986 cache_file=config.cache ;; 987 988 -datadir | --datadir | --datadi | --datad) 989 ac_prev=datadir ;; 990 -datadir=* | --datadir=* | --datadi=* | --datad=*) 991 datadir=$ac_optarg ;; 992 993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 994 | --dataroo | --dataro | --datar) 995 ac_prev=datarootdir ;; 996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 998 datarootdir=$ac_optarg ;; 999 1000 -disable-* | --disable-*) 1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1005 { (exit 1); exit 1; }; } 1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1007 eval enable_$ac_feature=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1024 { (exit 1); exit 1; }; } 1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1026 eval enable_$ac_feature=\$ac_optarg ;; 1027 1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1030 | --exec | --exe | --ex) 1031 ac_prev=exec_prefix ;; 1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1034 | --exec=* | --exe=* | --ex=*) 1035 exec_prefix=$ac_optarg ;; 1036 1037 -gas | --gas | --ga | --g) 1038 # Obsolete; use --with-gas. 1039 with_gas=yes ;; 1040 1041 -help | --help | --hel | --he | -h) 1042 ac_init_help=long ;; 1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1044 ac_init_help=recursive ;; 1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1046 ac_init_help=short ;; 1047 1048 -host | --host | --hos | --ho) 1049 ac_prev=host_alias ;; 1050 -host=* | --host=* | --hos=* | --ho=*) 1051 host_alias=$ac_optarg ;; 1052 1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1054 ac_prev=htmldir ;; 1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1056 | --ht=*) 1057 htmldir=$ac_optarg ;; 1058 1059 -includedir | --includedir | --includedi | --included | --include \ 1060 | --includ | --inclu | --incl | --inc) 1061 ac_prev=includedir ;; 1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1063 | --includ=* | --inclu=* | --incl=* | --inc=*) 1064 includedir=$ac_optarg ;; 1065 1066 -infodir | --infodir | --infodi | --infod | --info | --inf) 1067 ac_prev=infodir ;; 1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1069 infodir=$ac_optarg ;; 1070 1071 -libdir | --libdir | --libdi | --libd) 1072 ac_prev=libdir ;; 1073 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1074 libdir=$ac_optarg ;; 1075 1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1077 | --libexe | --libex | --libe) 1078 ac_prev=libexecdir ;; 1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1080 | --libexe=* | --libex=* | --libe=*) 1081 libexecdir=$ac_optarg ;; 1082 1083 -localedir | --localedir | --localedi | --localed | --locale) 1084 ac_prev=localedir ;; 1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1086 localedir=$ac_optarg ;; 1087 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1089 | --localstate | --localstat | --localsta | --localst | --locals) 1090 ac_prev=localstatedir ;; 1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1093 localstatedir=$ac_optarg ;; 1094 1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1096 ac_prev=mandir ;; 1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1098 mandir=$ac_optarg ;; 1099 1100 -nfp | --nfp | --nf) 1101 # Obsolete; use --without-fp. 1102 with_fp=no ;; 1103 1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1105 | --no-cr | --no-c | -n) 1106 no_create=yes ;; 1107 1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1110 no_recursion=yes ;; 1111 1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1114 | --oldin | --oldi | --old | --ol | --o) 1115 ac_prev=oldincludedir ;; 1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1119 oldincludedir=$ac_optarg ;; 1120 1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1122 ac_prev=prefix ;; 1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1124 prefix=$ac_optarg ;; 1125 1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1127 | --program-pre | --program-pr | --program-p) 1128 ac_prev=program_prefix ;; 1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1131 program_prefix=$ac_optarg ;; 1132 1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1134 | --program-suf | --program-su | --program-s) 1135 ac_prev=program_suffix ;; 1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1138 program_suffix=$ac_optarg ;; 1139 1140 -program-transform-name | --program-transform-name \ 1141 | --program-transform-nam | --program-transform-na \ 1142 | --program-transform-n | --program-transform- \ 1143 | --program-transform | --program-transfor \ 1144 | --program-transfo | --program-transf \ 1145 | --program-trans | --program-tran \ 1146 | --progr-tra | --program-tr | --program-t) 1147 ac_prev=program_transform_name ;; 1148 -program-transform-name=* | --program-transform-name=* \ 1149 | --program-transform-nam=* | --program-transform-na=* \ 1150 | --program-transform-n=* | --program-transform-=* \ 1151 | --program-transform=* | --program-transfor=* \ 1152 | --program-transfo=* | --program-transf=* \ 1153 | --program-trans=* | --program-tran=* \ 1154 | --progr-tra=* | --program-tr=* | --program-t=*) 1155 program_transform_name=$ac_optarg ;; 1156 1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1158 ac_prev=pdfdir ;; 1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1160 pdfdir=$ac_optarg ;; 1161 1162 -psdir | --psdir | --psdi | --psd | --ps) 1163 ac_prev=psdir ;; 1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1165 psdir=$ac_optarg ;; 1166 1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1168 | -silent | --silent | --silen | --sile | --sil) 1169 silent=yes ;; 1170 1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1172 ac_prev=sbindir ;; 1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1174 | --sbi=* | --sb=*) 1175 sbindir=$ac_optarg ;; 1176 1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1179 | --sharedst | --shareds | --shared | --share | --shar \ 1180 | --sha | --sh) 1181 ac_prev=sharedstatedir ;; 1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1185 | --sha=* | --sh=*) 1186 sharedstatedir=$ac_optarg ;; 1187 1188 -site | --site | --sit) 1189 ac_prev=site ;; 1190 -site=* | --site=* | --sit=*) 1191 site=$ac_optarg ;; 1192 1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1194 ac_prev=srcdir ;; 1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1196 srcdir=$ac_optarg ;; 1197 1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1199 | --syscon | --sysco | --sysc | --sys | --sy) 1200 ac_prev=sysconfdir ;; 1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1203 sysconfdir=$ac_optarg ;; 1204 1205 -target | --target | --targe | --targ | --tar | --ta | --t) 1206 ac_prev=target_alias ;; 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1208 target_alias=$ac_optarg ;; 1209 1210 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1211 verbose=yes ;; 1212 1213 -version | --version | --versio | --versi | --vers | -V) 1214 ac_init_version=: ;; 1215 1216 -with-* | --with-*) 1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1223 eval with_$ac_package=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1232 eval with_$ac_package=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) { echo "$as_me: error: unrecognized option: $ac_option 1253Try \`$0 --help' for more information." >&2 1254 { (exit 1); exit 1; }; } 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1262 { (exit 1); exit 1; }; } 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 { echo "$as_me: error: missing argument to $ac_option" >&2 1280 { (exit 1); exit 1; }; } 1281fi 1282 1283# Be sure to have absolute directory names. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1295 { (exit 1); exit 1; }; } 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1310 If a cross compiler is detected then cross compile mode will be used." >&2 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314fi 1315 1316ac_tool_prefix= 1317test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319test "$silent" = yes && exec 6>/dev/null 1320 1321 1322ac_pwd=`pwd` && test -n "$ac_pwd" && 1323ac_ls_di=`ls -di .` && 1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 { echo "$as_me: error: Working directory cannot be determined" >&2 1326 { (exit 1); exit 1; }; } 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 { echo "$as_me: error: pwd does not report name of working directory" >&2 1329 { (exit 1); exit 1; }; } 1330 1331 1332# Find the source files, if location was not specified. 1333if test -z "$srcdir"; then 1334 ac_srcdir_defaulted=yes 1335 # Try the directory containing this script, then the parent directory. 1336 ac_confdir=`$as_dirname -- "$0" || 1337$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1338 X"$0" : 'X\(//\)[^/]' \| \ 1339 X"$0" : 'X\(//\)$' \| \ 1340 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1341echo X"$0" | 1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)[^/].*/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\).*/{ 1355 s//\1/ 1356 q 1357 } 1358 s/.*/./; q'` 1359 srcdir=$ac_confdir 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 srcdir=.. 1362 fi 1363else 1364 ac_srcdir_defaulted=no 1365fi 1366if test ! -r "$srcdir/$ac_unique_file"; then 1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1369 { (exit 1); exit 1; }; } 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1374 { (exit 1); exit 1; }; } 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures gkmap 0.2 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/gkmap] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of gkmap 0.2:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1477 --enable-maintainer-mode enable make rules and dependencies not useful 1478 (and sometimes confusing) to the casual installer 1479 --disable-dependency-tracking speeds up one-time build 1480 --enable-dependency-tracking do not reject slow dependency extractors 1481 --enable-shared[=PKGS] build shared libraries [default=yes] 1482 --enable-static[=PKGS] build static libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 1487Optional Packages: 1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1491 --with-pic try to use only PIC/non-PIC objects [default=use 1492 both] 1493 --with-tags[=TAGS] include additional configurations [automatic] 1494 1495Some influential environment variables: 1496 CC C compiler command 1497 CFLAGS C compiler flags 1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1499 nonstandard directory <lib dir> 1500 LIBS libraries to pass to the linker, e.g. -l<library> 1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1502 you have headers in a nonstandard directory <include dir> 1503 CPP C preprocessor 1504 CXX C++ compiler command 1505 CXXFLAGS C++ compiler flags 1506 CXXCPP C++ preprocessor 1507 F77 Fortran 77 compiler command 1508 FFLAGS Fortran 77 compiler flags 1509 PKG_CONFIG path to pkg-config utility 1510 GKMAP_CFLAGS 1511 C compiler flags for GKMAP, overriding pkg-config 1512 GKMAP_LIBS linker flags for GKMAP, overriding pkg-config 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517_ACEOF 1518ac_status=$? 1519fi 1520 1521if test "$ac_init_help" = "recursive"; then 1522 # If there are subdirs, report their specific --help. 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1524 test -d "$ac_dir" || continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577gkmap configure 0.2 1578generated by GNU Autoconf 2.61 1579 1580Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1582This configure script is free software; the Free Software Foundation 1583gives unlimited permission to copy, distribute and modify it. 1584_ACEOF 1585 exit 1586fi 1587cat >config.log <<_ACEOF 1588This file contains any messages produced by compilers while 1589running configure, to aid debugging if configure makes a mistake. 1590 1591It was created by gkmap $as_me 0.2, which was 1592generated by GNU Autoconf 2.61. Invocation command line was 1593 1594 $ $0 $@ 1595 1596_ACEOF 1597exec 5>>config.log 1598{ 1599cat <<_ASUNAME 1600## --------- ## 1601## Platform. ## 1602## --------- ## 1603 1604hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1605uname -m = `(uname -m) 2>/dev/null || echo unknown` 1606uname -r = `(uname -r) 2>/dev/null || echo unknown` 1607uname -s = `(uname -s) 2>/dev/null || echo unknown` 1608uname -v = `(uname -v) 2>/dev/null || echo unknown` 1609 1610/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1611/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1612 1613/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1614/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1615/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1616/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1617/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1618/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1619/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1620 1621_ASUNAME 1622 1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1624for as_dir in $PATH 1625do 1626 IFS=$as_save_IFS 1627 test -z "$as_dir" && as_dir=. 1628 echo "PATH: $as_dir" 1629done 1630IFS=$as_save_IFS 1631 1632} >&5 1633 1634cat >&5 <<_ACEOF 1635 1636 1637## ----------- ## 1638## Core tests. ## 1639## ----------- ## 1640 1641_ACEOF 1642 1643 1644# Keep a trace of the command line. 1645# Strip out --no-create and --no-recursion so they do not pile up. 1646# Strip out --silent because we don't want to record it for future runs. 1647# Also quote any args containing shell meta-characters. 1648# Make two passes to allow for proper duplicate-argument suppression. 1649ac_configure_args= 1650ac_configure_args0= 1651ac_configure_args1= 1652ac_must_keep_next=false 1653for ac_pass in 1 2 1654do 1655 for ac_arg 1656 do 1657 case $ac_arg in 1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1660 | -silent | --silent | --silen | --sile | --sil) 1661 continue ;; 1662 *\'*) 1663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1664 esac 1665 case $ac_pass in 1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1667 2) 1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1669 if test $ac_must_keep_next = true; then 1670 ac_must_keep_next=false # Got value, back to normal. 1671 else 1672 case $ac_arg in 1673 *=* | --config-cache | -C | -disable-* | --disable-* \ 1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1676 | -with-* | --with-* | -without-* | --without-* | --x) 1677 case "$ac_configure_args0 " in 1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1679 esac 1680 ;; 1681 -* ) ac_must_keep_next=true ;; 1682 esac 1683 fi 1684 ac_configure_args="$ac_configure_args '$ac_arg'" 1685 ;; 1686 esac 1687 done 1688done 1689$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1690$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1691 1692# When interrupted or exit'd, cleanup temporary files, and complete 1693# config.log. We remove comments because anyway the quotes in there 1694# would cause problems or look ugly. 1695# WARNING: Use '\'' to represent an apostrophe within the trap. 1696# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1697trap 'exit_status=$? 1698 # Save into config.log some information that might help in debugging. 1699 { 1700 echo 1701 1702 cat <<\_ASBOX 1703## ---------------- ## 1704## Cache variables. ## 1705## ---------------- ## 1706_ASBOX 1707 echo 1708 # The following way of writing the cache mishandles newlines in values, 1709( 1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1711 eval ac_val=\$$ac_var 1712 case $ac_val in #( 1713 *${as_nl}*) 1714 case $ac_var in #( 1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1716echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1717 esac 1718 case $ac_var in #( 1719 _ | IFS | as_nl) ;; #( 1720 *) $as_unset $ac_var ;; 1721 esac ;; 1722 esac 1723 done 1724 (set) 2>&1 | 1725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1726 *${as_nl}ac_space=\ *) 1727 sed -n \ 1728 "s/'\''/'\''\\\\'\'''\''/g; 1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1730 ;; #( 1731 *) 1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1733 ;; 1734 esac | 1735 sort 1736) 1737 echo 1738 1739 cat <<\_ASBOX 1740## ----------------- ## 1741## Output variables. ## 1742## ----------------- ## 1743_ASBOX 1744 echo 1745 for ac_var in $ac_subst_vars 1746 do 1747 eval ac_val=\$$ac_var 1748 case $ac_val in 1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1750 esac 1751 echo "$ac_var='\''$ac_val'\''" 1752 done | sort 1753 echo 1754 1755 if test -n "$ac_subst_files"; then 1756 cat <<\_ASBOX 1757## ------------------- ## 1758## File substitutions. ## 1759## ------------------- ## 1760_ASBOX 1761 echo 1762 for ac_var in $ac_subst_files 1763 do 1764 eval ac_val=\$$ac_var 1765 case $ac_val in 1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1767 esac 1768 echo "$ac_var='\''$ac_val'\''" 1769 done | sort 1770 echo 1771 fi 1772 1773 if test -s confdefs.h; then 1774 cat <<\_ASBOX 1775## ----------- ## 1776## confdefs.h. ## 1777## ----------- ## 1778_ASBOX 1779 echo 1780 cat confdefs.h 1781 echo 1782 fi 1783 test "$ac_signal" != 0 && 1784 echo "$as_me: caught signal $ac_signal" 1785 echo "$as_me: exit $exit_status" 1786 } >&5 1787 rm -f core *.core core.conftest.* && 1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1789 exit $exit_status 1790' 0 1791for ac_signal in 1 2 13 15; do 1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1793done 1794ac_signal=0 1795 1796# confdefs.h avoids OS command line length limits that DEFS can exceed. 1797rm -f -r conftest* confdefs.h 1798 1799# Predefined preprocessor variables. 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_NAME "$PACKAGE_NAME" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_VERSION "$PACKAGE_VERSION" 1813_ACEOF 1814 1815 1816cat >>confdefs.h <<_ACEOF 1817#define PACKAGE_STRING "$PACKAGE_STRING" 1818_ACEOF 1819 1820 1821cat >>confdefs.h <<_ACEOF 1822#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1823_ACEOF 1824 1825 1826# Let the site file select an alternate cache file if it wants to. 1827# Prefer explicitly selected file to automatically selected ones. 1828if test -n "$CONFIG_SITE"; then 1829 set x "$CONFIG_SITE" 1830elif test "x$prefix" != xNONE; then 1831 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1832else 1833 set x "$ac_default_prefix/share/config.site" \ 1834 "$ac_default_prefix/etc/config.site" 1835fi 1836shift 1837for ac_site_file 1838do 1839 if test -r "$ac_site_file"; then 1840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1841echo "$as_me: loading site script $ac_site_file" >&6;} 1842 sed 's/^/| /' "$ac_site_file" >&5 1843 . "$ac_site_file" 1844 fi 1845done 1846 1847if test -r "$cache_file"; then 1848 # Some versions of bash will fail to source /dev/null (special 1849 # files actually), so we avoid doing that. 1850 if test -f "$cache_file"; then 1851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1852echo "$as_me: loading cache $cache_file" >&6;} 1853 case $cache_file in 1854 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1855 *) . "./$cache_file";; 1856 esac 1857 fi 1858else 1859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1860echo "$as_me: creating cache $cache_file" >&6;} 1861 >$cache_file 1862fi 1863 1864# Check that the precious variables saved in the cache have kept the same 1865# value. 1866ac_cache_corrupted=false 1867for ac_var in $ac_precious_vars; do 1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1869 eval ac_new_set=\$ac_env_${ac_var}_set 1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1871 eval ac_new_val=\$ac_env_${ac_var}_value 1872 case $ac_old_set,$ac_new_set in 1873 set,) 1874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1875echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1876 ac_cache_corrupted=: ;; 1877 ,set) 1878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1879echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1880 ac_cache_corrupted=: ;; 1881 ,);; 1882 *) 1883 if test "x$ac_old_val" != "x$ac_new_val"; then 1884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1885echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1887echo "$as_me: former value: $ac_old_val" >&2;} 1888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1889echo "$as_me: current value: $ac_new_val" >&2;} 1890 ac_cache_corrupted=: 1891 fi;; 1892 esac 1893 # Pass precious variables to config.status. 1894 if test "$ac_new_set" = set; then 1895 case $ac_new_val in 1896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 *) ac_arg=$ac_var=$ac_new_val ;; 1898 esac 1899 case " $ac_configure_args " in 1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1902 esac 1903 fi 1904done 1905if $ac_cache_corrupted; then 1906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1907echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1909echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1910 { (exit 1); exit 1; }; } 1911fi 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937ac_ext=c 1938ac_cpp='$CPP $CPPFLAGS' 1939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1941ac_compiler_gnu=$ac_cv_c_compiler_gnu 1942 1943 1944 1945am__api_version='1.10' 1946 1947ac_aux_dir= 1948for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1949 if test -f "$ac_dir/install-sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install-sh -c" 1952 break 1953 elif test -f "$ac_dir/install.sh"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/install.sh -c" 1956 break 1957 elif test -f "$ac_dir/shtool"; then 1958 ac_aux_dir=$ac_dir 1959 ac_install_sh="$ac_aux_dir/shtool install -c" 1960 break 1961 fi 1962done 1963if test -z "$ac_aux_dir"; then 1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1965echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1966 { (exit 1); exit 1; }; } 1967fi 1968 1969# These three variables are undocumented and unsupported, 1970# and are intended to be withdrawn in a future Autoconf release. 1971# They can cause serious problems if a builder's source tree is in a directory 1972# whose full name contains unusual characters. 1973ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1974ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1975ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1976 1977 1978# Find a good install program. We prefer a C program (faster), 1979# so one script is as good as another. But avoid the broken or 1980# incompatible versions: 1981# SysV /etc/install, /usr/sbin/install 1982# SunOS /usr/etc/install 1983# IRIX /sbin/install 1984# AIX /bin/install 1985# AmigaOS /C/install, which installs bootblocks on floppy discs 1986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1987# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1989# OS/2's system install, which has a completely different semantic 1990# ./install, which can be erroneously created by make from ./install.sh. 1991{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1992echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1993if test -z "$INSTALL"; then 1994if test "${ac_cv_path_install+set}" = set; then 1995 echo $ECHO_N "(cached) $ECHO_C" >&6 1996else 1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1998for as_dir in $PATH 1999do 2000 IFS=$as_save_IFS 2001 test -z "$as_dir" && as_dir=. 2002 # Account for people who put trailing slashes in PATH elements. 2003case $as_dir/ in 2004 ./ | .// | /cC/* | \ 2005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2007 /usr/ucb/* ) ;; 2008 *) 2009 # OSF1 and SCO ODT 3.0 have their own names for install. 2010 # Don't use installbsd from OSF since it installs stuff as root 2011 # by default. 2012 for ac_prog in ginstall scoinst install; do 2013 for ac_exec_ext in '' $ac_executable_extensions; do 2014 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2015 if test $ac_prog = install && 2016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2017 # AIX install. It has an incompatible calling convention. 2018 : 2019 elif test $ac_prog = install && 2020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2021 # program-specific install script used by HP pwplus--don't use. 2022 : 2023 else 2024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2025 break 3 2026 fi 2027 fi 2028 done 2029 done 2030 ;; 2031esac 2032done 2033IFS=$as_save_IFS 2034 2035 2036fi 2037 if test "${ac_cv_path_install+set}" = set; then 2038 INSTALL=$ac_cv_path_install 2039 else 2040 # As a last resort, use the slow shell script. Don't cache a 2041 # value for INSTALL within a source directory, because that will 2042 # break other packages using the cache if that directory is 2043 # removed, or if the value is a relative name. 2044 INSTALL=$ac_install_sh 2045 fi 2046fi 2047{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2048echo "${ECHO_T}$INSTALL" >&6; } 2049 2050# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2051# It thinks the first close brace ends the variable substitution. 2052test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2053 2054test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2055 2056test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2057 2058{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2059echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2060# Just in case 2061sleep 1 2062echo timestamp > conftest.file 2063# Do `set' in a subshell so we don't clobber the current shell's 2064# arguments. Must try -L first in case configure is actually a 2065# symlink; some systems play weird games with the mod time of symlinks 2066# (eg FreeBSD returns the mod time of the symlink's containing 2067# directory). 2068if ( 2069 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2070 if test "$*" = "X"; then 2071 # -L didn't work. 2072 set X `ls -t $srcdir/configure conftest.file` 2073 fi 2074 rm -f conftest.file 2075 if test "$*" != "X $srcdir/configure conftest.file" \ 2076 && test "$*" != "X conftest.file $srcdir/configure"; then 2077 2078 # If neither matched, then we have a broken ls. This can happen 2079 # if, for instance, CONFIG_SHELL is bash and it inherits a 2080 # broken ls alias from the environment. This has actually 2081 # happened. Such a system could not be considered "sane". 2082 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2083alias in your environment" >&5 2084echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2085alias in your environment" >&2;} 2086 { (exit 1); exit 1; }; } 2087 fi 2088 2089 test "$2" = conftest.file 2090 ) 2091then 2092 # Ok. 2093 : 2094else 2095 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2096Check your system clock" >&5 2097echo "$as_me: error: newly created file is older than distributed files! 2098Check your system clock" >&2;} 2099 { (exit 1); exit 1; }; } 2100fi 2101{ echo "$as_me:$LINENO: result: yes" >&5 2102echo "${ECHO_T}yes" >&6; } 2103test "$program_prefix" != NONE && 2104 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2105# Use a double $ so make ignores it. 2106test "$program_suffix" != NONE && 2107 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2108# Double any \ or $. echo might interpret backslashes. 2109# By default was `s,x,x', remove it if useless. 2110cat <<\_ACEOF >conftest.sed 2111s/[\\$]/&&/g;s/;s,x,x,$// 2112_ACEOF 2113program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2114rm -f conftest.sed 2115 2116# expand $ac_aux_dir to an absolute path 2117am_aux_dir=`cd $ac_aux_dir && pwd` 2118 2119test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2120# Use eval to expand $SHELL 2121if eval "$MISSING --run true"; then 2122 am_missing_run="$MISSING --run " 2123else 2124 am_missing_run= 2125 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2126echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2127fi 2128 2129{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2130echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2131if test -z "$MKDIR_P"; then 2132 if test "${ac_cv_path_mkdir+set}" = set; then 2133 echo $ECHO_N "(cached) $ECHO_C" >&6 2134else 2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2136for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2137do 2138 IFS=$as_save_IFS 2139 test -z "$as_dir" && as_dir=. 2140 for ac_prog in mkdir gmkdir; do 2141 for ac_exec_ext in '' $ac_executable_extensions; do 2142 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2144 'mkdir (GNU coreutils) '* | \ 2145 'mkdir (coreutils) '* | \ 2146 'mkdir (fileutils) '4.1*) 2147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2148 break 3;; 2149 esac 2150 done 2151 done 2152done 2153IFS=$as_save_IFS 2154 2155fi 2156 2157 if test "${ac_cv_path_mkdir+set}" = set; then 2158 MKDIR_P="$ac_cv_path_mkdir -p" 2159 else 2160 # As a last resort, use the slow shell script. Don't cache a 2161 # value for MKDIR_P within a source directory, because that will 2162 # break other packages using the cache if that directory is 2163 # removed, or if the value is a relative name. 2164 test -d ./--version && rmdir ./--version 2165 MKDIR_P="$ac_install_sh -d" 2166 fi 2167fi 2168{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2169echo "${ECHO_T}$MKDIR_P" >&6; } 2170 2171mkdir_p="$MKDIR_P" 2172case $mkdir_p in 2173 [\\/$]* | ?:[\\/]*) ;; 2174 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2175esac 2176 2177for ac_prog in gawk mawk nawk awk 2178do 2179 # Extract the first word of "$ac_prog", so it can be a program name with args. 2180set dummy $ac_prog; ac_word=$2 2181{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2183if test "${ac_cv_prog_AWK+set}" = set; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 if test -n "$AWK"; then 2187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2188else 2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2190for as_dir in $PATH 2191do 2192 IFS=$as_save_IFS 2193 test -z "$as_dir" && as_dir=. 2194 for ac_exec_ext in '' $ac_executable_extensions; do 2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2196 ac_cv_prog_AWK="$ac_prog" 2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2198 break 2 2199 fi 2200done 2201done 2202IFS=$as_save_IFS 2203 2204fi 2205fi 2206AWK=$ac_cv_prog_AWK 2207if test -n "$AWK"; then 2208 { echo "$as_me:$LINENO: result: $AWK" >&5 2209echo "${ECHO_T}$AWK" >&6; } 2210else 2211 { echo "$as_me:$LINENO: result: no" >&5 2212echo "${ECHO_T}no" >&6; } 2213fi 2214 2215 2216 test -n "$AWK" && break 2217done 2218 2219{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2220echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2221set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2222if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 cat >conftest.make <<\_ACEOF 2226SHELL = /bin/sh 2227all: 2228 @echo '@@@%%%=$(MAKE)=@@@%%%' 2229_ACEOF 2230# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2231case `${MAKE-make} -f conftest.make 2>/dev/null` in 2232 *@@@%%%=?*=@@@%%%*) 2233 eval ac_cv_prog_make_${ac_make}_set=yes;; 2234 *) 2235 eval ac_cv_prog_make_${ac_make}_set=no;; 2236esac 2237rm -f conftest.make 2238fi 2239if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2240 { echo "$as_me:$LINENO: result: yes" >&5 2241echo "${ECHO_T}yes" >&6; } 2242 SET_MAKE= 2243else 2244 { echo "$as_me:$LINENO: result: no" >&5 2245echo "${ECHO_T}no" >&6; } 2246 SET_MAKE="MAKE=${MAKE-make}" 2247fi 2248 2249rm -rf .tst 2>/dev/null 2250mkdir .tst 2>/dev/null 2251if test -d .tst; then 2252 am__leading_dot=. 2253else 2254 am__leading_dot=_ 2255fi 2256rmdir .tst 2>/dev/null 2257 2258if test "`cd $srcdir && pwd`" != "`pwd`"; then 2259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2260 # is not polluted with repeated "-I." 2261 am__isrc=' -I$(srcdir)' 2262 # test to see if srcdir already configured 2263 if test -f $srcdir/config.status; then 2264 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2265echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2266 { (exit 1); exit 1; }; } 2267 fi 2268fi 2269 2270# test whether we have cygpath 2271if test -z "$CYGPATH_W"; then 2272 if (cygpath --version) >/dev/null 2>/dev/null; then 2273 CYGPATH_W='cygpath -w' 2274 else 2275 CYGPATH_W=echo 2276 fi 2277fi 2278 2279 2280# Define the identity of the package. 2281 PACKAGE=gkmap 2282 VERSION=0.2 2283 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE "$PACKAGE" 2287_ACEOF 2288 2289 2290cat >>confdefs.h <<_ACEOF 2291#define VERSION "$VERSION" 2292_ACEOF 2293 2294# Some tools Automake needs. 2295 2296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2297 2298 2299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2300 2301 2302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2303 2304 2305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2306 2307 2308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2309 2310install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2311 2312# Installed binaries are usually stripped using `strip' when the user 2313# run `make install-strip'. However `strip' might not be the right 2314# tool to use in cross-compilation environments, therefore Automake 2315# will honor the `STRIP' environment variable to overrule this program. 2316if test "$cross_compiling" != no; then 2317 if test -n "$ac_tool_prefix"; then 2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2319set dummy ${ac_tool_prefix}strip; ac_word=$2 2320{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2322if test "${ac_cv_prog_STRIP+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 if test -n "$STRIP"; then 2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2327else 2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329for as_dir in $PATH 2330do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339done 2340done 2341IFS=$as_save_IFS 2342 2343fi 2344fi 2345STRIP=$ac_cv_prog_STRIP 2346if test -n "$STRIP"; then 2347 { echo "$as_me:$LINENO: result: $STRIP" >&5 2348echo "${ECHO_T}$STRIP" >&6; } 2349else 2350 { echo "$as_me:$LINENO: result: no" >&5 2351echo "${ECHO_T}no" >&6; } 2352fi 2353 2354 2355fi 2356if test -z "$ac_cv_prog_STRIP"; then 2357 ac_ct_STRIP=$STRIP 2358 # Extract the first word of "strip", so it can be a program name with args. 2359set dummy strip; ac_word=$2 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2362if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 if test -n "$ac_ct_STRIP"; then 2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_ac_ct_STRIP="strip" 2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2386if test -n "$ac_ct_STRIP"; then 2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2388echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2389else 2390 { echo "$as_me:$LINENO: result: no" >&5 2391echo "${ECHO_T}no" >&6; } 2392fi 2393 2394 if test "x$ac_ct_STRIP" = x; then 2395 STRIP=":" 2396 else 2397 case $cross_compiling:$ac_tool_warned in 2398yes:) 2399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2400whose name does not start with the host triplet. If you think this 2401configuration is useful to you, please write to autoconf@gnu.org." >&5 2402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2403whose name does not start with the host triplet. If you think this 2404configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2405ac_tool_warned=yes ;; 2406esac 2407 STRIP=$ac_ct_STRIP 2408 fi 2409else 2410 STRIP="$ac_cv_prog_STRIP" 2411fi 2412 2413fi 2414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2415 2416# We need awk for the "check" target. The system "awk" is bad on 2417# some platforms. 2418# Always define AMTAR for backward compatibility. 2419 2420AMTAR=${AMTAR-"${am_missing_run}tar"} 2421 2422am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2423 2424 2425 2426 2427 2428ac_config_headers="$ac_config_headers config.h" 2429 2430{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2431echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2432 # Check whether --enable-maintainer-mode was given. 2433if test "${enable_maintainer_mode+set}" = set; then 2434 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2435else 2436 USE_MAINTAINER_MODE=no 2437fi 2438 2439 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2440echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2441 if test $USE_MAINTAINER_MODE = yes; then 2442 MAINTAINER_MODE_TRUE= 2443 MAINTAINER_MODE_FALSE='#' 2444else 2445 MAINTAINER_MODE_TRUE='#' 2446 MAINTAINER_MODE_FALSE= 2447fi 2448 2449 MAINT=$MAINTAINER_MODE_TRUE 2450 2451 2452 2453DEPDIR="${am__leading_dot}deps" 2454 2455ac_config_commands="$ac_config_commands depfiles" 2456 2457 2458am_make=${MAKE-make} 2459cat > confinc << 'END' 2460am__doit: 2461 @echo done 2462.PHONY: am__doit 2463END 2464# If we don't find an include directive, just comment out the code. 2465{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2466echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2467am__include="#" 2468am__quote= 2469_am_result=none 2470# First try GNU make style include. 2471echo "include confinc" > confmf 2472# We grep out `Entering directory' and `Leaving directory' 2473# messages which can occur if `w' ends up in MAKEFLAGS. 2474# In particular we don't look at `^make:' because GNU make might 2475# be invoked under some other name (usually "gmake"), in which 2476# case it prints its new name instead of `make'. 2477if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2478 am__include=include 2479 am__quote= 2480 _am_result=GNU 2481fi 2482# Now try BSD make style include. 2483if test "$am__include" = "#"; then 2484 echo '.include "confinc"' > confmf 2485 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2486 am__include=.include 2487 am__quote="\"" 2488 _am_result=BSD 2489 fi 2490fi 2491 2492 2493{ echo "$as_me:$LINENO: result: $_am_result" >&5 2494echo "${ECHO_T}$_am_result" >&6; } 2495rm -f confinc confmf 2496 2497# Check whether --enable-dependency-tracking was given. 2498if test "${enable_dependency_tracking+set}" = set; then 2499 enableval=$enable_dependency_tracking; 2500fi 2501 2502if test "x$enable_dependency_tracking" != xno; then 2503 am_depcomp="$ac_aux_dir/depcomp" 2504 AMDEPBACKSLASH='\' 2505fi 2506 if test "x$enable_dependency_tracking" != xno; then 2507 AMDEP_TRUE= 2508 AMDEP_FALSE='#' 2509else 2510 AMDEP_TRUE='#' 2511 AMDEP_FALSE= 2512fi 2513 2514 2515ac_ext=c 2516ac_cpp='$CPP $CPPFLAGS' 2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2519ac_compiler_gnu=$ac_cv_c_compiler_gnu 2520if test -n "$ac_tool_prefix"; then 2521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2522set dummy ${ac_tool_prefix}gcc; ac_word=$2 2523{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2525if test "${ac_cv_prog_CC+set}" = set; then 2526 echo $ECHO_N "(cached) $ECHO_C" >&6 2527else 2528 if test -n "$CC"; then 2529 ac_cv_prog_CC="$CC" # Let the user override the test. 2530else 2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 for ac_exec_ext in '' $ac_executable_extensions; do 2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2538 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2540 break 2 2541 fi 2542done 2543done 2544IFS=$as_save_IFS 2545 2546fi 2547fi 2548CC=$ac_cv_prog_CC 2549if test -n "$CC"; then 2550 { echo "$as_me:$LINENO: result: $CC" >&5 2551echo "${ECHO_T}$CC" >&6; } 2552else 2553 { echo "$as_me:$LINENO: result: no" >&5 2554echo "${ECHO_T}no" >&6; } 2555fi 2556 2557 2558fi 2559if test -z "$ac_cv_prog_CC"; then 2560 ac_ct_CC=$CC 2561 # Extract the first word of "gcc", so it can be a program name with args. 2562set dummy gcc; ac_word=$2 2563{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2566 echo $ECHO_N "(cached) $ECHO_C" >&6 2567else 2568 if test -n "$ac_ct_CC"; then 2569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2570else 2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2578 ac_cv_prog_ac_ct_CC="gcc" 2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2580 break 2 2581 fi 2582done 2583done 2584IFS=$as_save_IFS 2585 2586fi 2587fi 2588ac_ct_CC=$ac_cv_prog_ac_ct_CC 2589if test -n "$ac_ct_CC"; then 2590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2591echo "${ECHO_T}$ac_ct_CC" >&6; } 2592else 2593 { echo "$as_me:$LINENO: result: no" >&5 2594echo "${ECHO_T}no" >&6; } 2595fi 2596 2597 if test "x$ac_ct_CC" = x; then 2598 CC="" 2599 else 2600 case $cross_compiling:$ac_tool_warned in 2601yes:) 2602{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2603whose name does not start with the host triplet. If you think this 2604configuration is useful to you, please write to autoconf@gnu.org." >&5 2605echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2606whose name does not start with the host triplet. If you think this 2607configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2608ac_tool_warned=yes ;; 2609esac 2610 CC=$ac_ct_CC 2611 fi 2612else 2613 CC="$ac_cv_prog_CC" 2614fi 2615 2616if test -z "$CC"; then 2617 if test -n "$ac_tool_prefix"; then 2618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2619set dummy ${ac_tool_prefix}cc; ac_word=$2 2620{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2622if test "${ac_cv_prog_CC+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 if test -n "$CC"; then 2626 ac_cv_prog_CC="$CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_CC="${ac_tool_prefix}cc" 2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645CC=$ac_cv_prog_CC 2646if test -n "$CC"; then 2647 { echo "$as_me:$LINENO: result: $CC" >&5 2648echo "${ECHO_T}$CC" >&6; } 2649else 2650 { echo "$as_me:$LINENO: result: no" >&5 2651echo "${ECHO_T}no" >&6; } 2652fi 2653 2654 2655 fi 2656fi 2657if test -z "$CC"; then 2658 # Extract the first word of "cc", so it can be a program name with args. 2659set dummy cc; ac_word=$2 2660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2662if test "${ac_cv_prog_CC+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 if test -n "$CC"; then 2666 ac_cv_prog_CC="$CC" # Let the user override the test. 2667else 2668 ac_prog_rejected=no 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2677 ac_prog_rejected=yes 2678 continue 2679 fi 2680 ac_cv_prog_CC="cc" 2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685done 2686IFS=$as_save_IFS 2687 2688if test $ac_prog_rejected = yes; then 2689 # We found a bogon in the path, so make sure we never use it. 2690 set dummy $ac_cv_prog_CC 2691 shift 2692 if test $# != 0; then 2693 # We chose a different compiler from the bogus one. 2694 # However, it has the same basename, so the bogon will be chosen 2695 # first if we set CC to just the basename; use the full file name. 2696 shift 2697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2698 fi 2699fi 2700fi 2701fi 2702CC=$ac_cv_prog_CC 2703if test -n "$CC"; then 2704 { echo "$as_me:$LINENO: result: $CC" >&5 2705echo "${ECHO_T}$CC" >&6; } 2706else 2707 { echo "$as_me:$LINENO: result: no" >&5 2708echo "${ECHO_T}no" >&6; } 2709fi 2710 2711 2712fi 2713if test -z "$CC"; then 2714 if test -n "$ac_tool_prefix"; then 2715 for ac_prog in cl.exe 2716 do 2717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2718set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2719{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2721if test "${ac_cv_prog_CC+set}" = set; then 2722 echo $ECHO_N "(cached) $ECHO_C" >&6 2723else 2724 if test -n "$CC"; then 2725 ac_cv_prog_CC="$CC" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744CC=$ac_cv_prog_CC 2745if test -n "$CC"; then 2746 { echo "$as_me:$LINENO: result: $CC" >&5 2747echo "${ECHO_T}$CC" >&6; } 2748else 2749 { echo "$as_me:$LINENO: result: no" >&5 2750echo "${ECHO_T}no" >&6; } 2751fi 2752 2753 2754 test -n "$CC" && break 2755 done 2756fi 2757if test -z "$CC"; then 2758 ac_ct_CC=$CC 2759 for ac_prog in cl.exe 2760do 2761 # Extract the first word of "$ac_prog", so it can be a program name with args. 2762set dummy $ac_prog; ac_word=$2 2763{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 if test -n "$ac_ct_CC"; then 2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2770else 2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772for as_dir in $PATH 2773do 2774 IFS=$as_save_IFS 2775 test -z "$as_dir" && as_dir=. 2776 for ac_exec_ext in '' $ac_executable_extensions; do 2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2778 ac_cv_prog_ac_ct_CC="$ac_prog" 2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2780 break 2 2781 fi 2782done 2783done 2784IFS=$as_save_IFS 2785 2786fi 2787fi 2788ac_ct_CC=$ac_cv_prog_ac_ct_CC 2789if test -n "$ac_ct_CC"; then 2790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2791echo "${ECHO_T}$ac_ct_CC" >&6; } 2792else 2793 { echo "$as_me:$LINENO: result: no" >&5 2794echo "${ECHO_T}no" >&6; } 2795fi 2796 2797 2798 test -n "$ac_ct_CC" && break 2799done 2800 2801 if test "x$ac_ct_CC" = x; then 2802 CC="" 2803 else 2804 case $cross_compiling:$ac_tool_warned in 2805yes:) 2806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2807whose name does not start with the host triplet. If you think this 2808configuration is useful to you, please write to autoconf@gnu.org." >&5 2809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2810whose name does not start with the host triplet. If you think this 2811configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2812ac_tool_warned=yes ;; 2813esac 2814 CC=$ac_ct_CC 2815 fi 2816fi 2817 2818fi 2819 2820 2821test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2822See \`config.log' for more details." >&5 2823echo "$as_me: error: no acceptable C compiler found in \$PATH 2824See \`config.log' for more details." >&2;} 2825 { (exit 1); exit 1; }; } 2826 2827# Provide some information about the compiler. 2828echo "$as_me:$LINENO: checking for C compiler version" >&5 2829ac_compiler=`set X $ac_compile; echo $2` 2830{ (ac_try="$ac_compiler --version >&5" 2831case "(($ac_try" in 2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2833 *) ac_try_echo=$ac_try;; 2834esac 2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2836 (eval "$ac_compiler --version >&5") 2>&5 2837 ac_status=$? 2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2839 (exit $ac_status); } 2840{ (ac_try="$ac_compiler -v >&5" 2841case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844esac 2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2846 (eval "$ac_compiler -v >&5") 2>&5 2847 ac_status=$? 2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2849 (exit $ac_status); } 2850{ (ac_try="$ac_compiler -V >&5" 2851case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854esac 2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2856 (eval "$ac_compiler -V >&5") 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); } 2860 2861cat >conftest.$ac_ext <<_ACEOF 2862/* confdefs.h. */ 2863_ACEOF 2864cat confdefs.h >>conftest.$ac_ext 2865cat >>conftest.$ac_ext <<_ACEOF 2866/* end confdefs.h. */ 2867 2868int 2869main () 2870{ 2871 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876ac_clean_files_save=$ac_clean_files 2877ac_clean_files="$ac_clean_files a.out a.exe b.out" 2878# Try to create an executable without -o first, disregard a.out. 2879# It will help us diagnose broken compilers, and finding out an intuition 2880# of exeext. 2881{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2882echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2883ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2884# 2885# List of possible output files, starting from the most likely. 2886# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2887# only as a last resort. b.out is created by i960 compilers. 2888ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2889# 2890# The IRIX 6 linker writes into existing files which may not be 2891# executable, retaining their permissions. Remove them first so a 2892# subsequent execution test works. 2893ac_rmfiles= 2894for ac_file in $ac_files 2895do 2896 case $ac_file in 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2898 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2899 esac 2900done 2901rm -f $ac_rmfiles 2902 2903if { (ac_try="$ac_link_default" 2904case "(($ac_try" in 2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2906 *) ac_try_echo=$ac_try;; 2907esac 2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2909 (eval "$ac_link_default") 2>&5 2910 ac_status=$? 2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); }; then 2913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2915# in a Makefile. We should not override ac_cv_exeext if it was cached, 2916# so that the user can short-circuit this test for compilers unknown to 2917# Autoconf. 2918for ac_file in $ac_files '' 2919do 2920 test -f "$ac_file" || continue 2921 case $ac_file in 2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2923 ;; 2924 [ab].out ) 2925 # We found the default executable, but exeext='' is most 2926 # certainly right. 2927 break;; 2928 *.* ) 2929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2930 then :; else 2931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2932 fi 2933 # We set ac_cv_exeext here because the later test for it is not 2934 # safe: cross compilers may not add the suffix if given an `-o' 2935 # argument, so we may need to know it at that point already. 2936 # Even if this section looks crufty: it has the advantage of 2937 # actually working. 2938 break;; 2939 * ) 2940 break;; 2941 esac 2942done 2943test "$ac_cv_exeext" = no && ac_cv_exeext= 2944 2945else 2946 ac_file='' 2947fi 2948 2949{ echo "$as_me:$LINENO: result: $ac_file" >&5 2950echo "${ECHO_T}$ac_file" >&6; } 2951if test -z "$ac_file"; then 2952 echo "$as_me: failed program was:" >&5 2953sed 's/^/| /' conftest.$ac_ext >&5 2954 2955{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2956See \`config.log' for more details." >&5 2957echo "$as_me: error: C compiler cannot create executables 2958See \`config.log' for more details." >&2;} 2959 { (exit 77); exit 77; }; } 2960fi 2961 2962ac_exeext=$ac_cv_exeext 2963 2964# Check that the compiler produces executables we can run. If not, either 2965# the compiler is broken, or we cross compile. 2966{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2967echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2968# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2969# If not cross compiling, check that we can run a simple program. 2970if test "$cross_compiling" != yes; then 2971 if { ac_try='./$ac_file' 2972 { (case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_try") 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); }; }; then 2981 cross_compiling=no 2982 else 2983 if test "$cross_compiling" = maybe; then 2984 cross_compiling=yes 2985 else 2986 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2987If you meant to cross compile, use \`--host'. 2988See \`config.log' for more details." >&5 2989echo "$as_me: error: cannot run C compiled programs. 2990If you meant to cross compile, use \`--host'. 2991See \`config.log' for more details." >&2;} 2992 { (exit 1); exit 1; }; } 2993 fi 2994 fi 2995fi 2996{ echo "$as_me:$LINENO: result: yes" >&5 2997echo "${ECHO_T}yes" >&6; } 2998 2999rm -f a.out a.exe conftest$ac_cv_exeext b.out 3000ac_clean_files=$ac_clean_files_save 3001# Check that the compiler produces executables we can run. If not, either 3002# the compiler is broken, or we cross compile. 3003{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3004echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3005{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3006echo "${ECHO_T}$cross_compiling" >&6; } 3007 3008{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3009echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3010if { (ac_try="$ac_link" 3011case "(($ac_try" in 3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3013 *) ac_try_echo=$ac_try;; 3014esac 3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3016 (eval "$ac_link") 2>&5 3017 ac_status=$? 3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3019 (exit $ac_status); }; then 3020 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3021# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3022# work properly (i.e., refer to `conftest.exe'), while it won't with 3023# `rm'. 3024for ac_file in conftest.exe conftest conftest.*; do 3025 test -f "$ac_file" || continue 3026 case $ac_file in 3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3029 break;; 3030 * ) break;; 3031 esac 3032done 3033else 3034 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3035See \`config.log' for more details." >&5 3036echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3037See \`config.log' for more details." >&2;} 3038 { (exit 1); exit 1; }; } 3039fi 3040 3041rm -f conftest$ac_cv_exeext 3042{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3043echo "${ECHO_T}$ac_cv_exeext" >&6; } 3044 3045rm -f conftest.$ac_ext 3046EXEEXT=$ac_cv_exeext 3047ac_exeext=$EXEEXT 3048{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3049echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3050if test "${ac_cv_objext+set}" = set; then 3051 echo $ECHO_N "(cached) $ECHO_C" >&6 3052else 3053 cat >conftest.$ac_ext <<_ACEOF 3054/* confdefs.h. */ 3055_ACEOF 3056cat confdefs.h >>conftest.$ac_ext 3057cat >>conftest.$ac_ext <<_ACEOF 3058/* end confdefs.h. */ 3059 3060int 3061main () 3062{ 3063 3064 ; 3065 return 0; 3066} 3067_ACEOF 3068rm -f conftest.o conftest.obj 3069if { (ac_try="$ac_compile" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3075 (eval "$ac_compile") 2>&5 3076 ac_status=$? 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); }; then 3079 for ac_file in conftest.o conftest.obj conftest.*; do 3080 test -f "$ac_file" || continue; 3081 case $ac_file in 3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3084 break;; 3085 esac 3086done 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3092See \`config.log' for more details." >&5 3093echo "$as_me: error: cannot compute suffix of object files: cannot compile 3094See \`config.log' for more details." >&2;} 3095 { (exit 1); exit 1; }; } 3096fi 3097 3098rm -f conftest.$ac_cv_objext conftest.$ac_ext 3099fi 3100{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3101echo "${ECHO_T}$ac_cv_objext" >&6; } 3102OBJEXT=$ac_cv_objext 3103ac_objext=$OBJEXT 3104{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3105echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3106if test "${ac_cv_c_compiler_gnu+set}" = set; then 3107 echo $ECHO_N "(cached) $ECHO_C" >&6 3108else 3109 cat >conftest.$ac_ext <<_ACEOF 3110/* confdefs.h. */ 3111_ACEOF 3112cat confdefs.h >>conftest.$ac_ext 3113cat >>conftest.$ac_ext <<_ACEOF 3114/* end confdefs.h. */ 3115 3116int 3117main () 3118{ 3119#ifndef __GNUC__ 3120 choke me 3121#endif 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127rm -f conftest.$ac_objext 3128if { (ac_try="$ac_compile" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3134 (eval "$ac_compile") 2>conftest.er1 3135 ac_status=$? 3136 grep -v '^ *+' conftest.er1 >conftest.err 3137 rm -f conftest.er1 3138 cat conftest.err >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); } && { 3141 test -z "$ac_c_werror_flag" || 3142 test ! -s conftest.err 3143 } && test -s conftest.$ac_objext; then 3144 ac_compiler_gnu=yes 3145else 3146 echo "$as_me: failed program was:" >&5 3147sed 's/^/| /' conftest.$ac_ext >&5 3148 3149 ac_compiler_gnu=no 3150fi 3151 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153ac_cv_c_compiler_gnu=$ac_compiler_gnu 3154 3155fi 3156{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3157echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3158GCC=`test $ac_compiler_gnu = yes && echo yes` 3159ac_test_CFLAGS=${CFLAGS+set} 3160ac_save_CFLAGS=$CFLAGS 3161{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3162echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3163if test "${ac_cv_prog_cc_g+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 ac_save_c_werror_flag=$ac_c_werror_flag 3167 ac_c_werror_flag=yes 3168 ac_cv_prog_cc_g=no 3169 CFLAGS="-g" 3170 cat >conftest.$ac_ext <<_ACEOF 3171/* confdefs.h. */ 3172_ACEOF 3173cat confdefs.h >>conftest.$ac_ext 3174cat >>conftest.$ac_ext <<_ACEOF 3175/* end confdefs.h. */ 3176 3177int 3178main () 3179{ 3180 3181 ; 3182 return 0; 3183} 3184_ACEOF 3185rm -f conftest.$ac_objext 3186if { (ac_try="$ac_compile" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3192 (eval "$ac_compile") 2>conftest.er1 3193 ac_status=$? 3194 grep -v '^ *+' conftest.er1 >conftest.err 3195 rm -f conftest.er1 3196 cat conftest.err >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } && { 3199 test -z "$ac_c_werror_flag" || 3200 test ! -s conftest.err 3201 } && test -s conftest.$ac_objext; then 3202 ac_cv_prog_cc_g=yes 3203else 3204 echo "$as_me: failed program was:" >&5 3205sed 's/^/| /' conftest.$ac_ext >&5 3206 3207 CFLAGS="" 3208 cat >conftest.$ac_ext <<_ACEOF 3209/* confdefs.h. */ 3210_ACEOF 3211cat confdefs.h >>conftest.$ac_ext 3212cat >>conftest.$ac_ext <<_ACEOF 3213/* end confdefs.h. */ 3214 3215int 3216main () 3217{ 3218 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223rm -f conftest.$ac_objext 3224if { (ac_try="$ac_compile" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3230 (eval "$ac_compile") 2>conftest.er1 3231 ac_status=$? 3232 grep -v '^ *+' conftest.er1 >conftest.err 3233 rm -f conftest.er1 3234 cat conftest.err >&5 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } && { 3237 test -z "$ac_c_werror_flag" || 3238 test ! -s conftest.err 3239 } && test -s conftest.$ac_objext; then 3240 : 3241else 3242 echo "$as_me: failed program was:" >&5 3243sed 's/^/| /' conftest.$ac_ext >&5 3244 3245 ac_c_werror_flag=$ac_save_c_werror_flag 3246 CFLAGS="-g" 3247 cat >conftest.$ac_ext <<_ACEOF 3248/* confdefs.h. */ 3249_ACEOF 3250cat confdefs.h >>conftest.$ac_ext 3251cat >>conftest.$ac_ext <<_ACEOF 3252/* end confdefs.h. */ 3253 3254int 3255main () 3256{ 3257 3258 ; 3259 return 0; 3260} 3261_ACEOF 3262rm -f conftest.$ac_objext 3263if { (ac_try="$ac_compile" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3269 (eval "$ac_compile") 2>conftest.er1 3270 ac_status=$? 3271 grep -v '^ *+' conftest.er1 >conftest.err 3272 rm -f conftest.er1 3273 cat conftest.err >&5 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); } && { 3276 test -z "$ac_c_werror_flag" || 3277 test ! -s conftest.err 3278 } && test -s conftest.$ac_objext; then 3279 ac_cv_prog_cc_g=yes 3280else 3281 echo "$as_me: failed program was:" >&5 3282sed 's/^/| /' conftest.$ac_ext >&5 3283 3284 3285fi 3286 3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3288fi 3289 3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3291fi 3292 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3294 ac_c_werror_flag=$ac_save_c_werror_flag 3295fi 3296{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3297echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3298if test "$ac_test_CFLAGS" = set; then 3299 CFLAGS=$ac_save_CFLAGS 3300elif test $ac_cv_prog_cc_g = yes; then 3301 if test "$GCC" = yes; then 3302 CFLAGS="-g -O2" 3303 else 3304 CFLAGS="-g" 3305 fi 3306else 3307 if test "$GCC" = yes; then 3308 CFLAGS="-O2" 3309 else 3310 CFLAGS= 3311 fi 3312fi 3313{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3314echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3315if test "${ac_cv_prog_cc_c89+set}" = set; then 3316 echo $ECHO_N "(cached) $ECHO_C" >&6 3317else 3318 ac_cv_prog_cc_c89=no 3319ac_save_CC=$CC 3320cat >conftest.$ac_ext <<_ACEOF 3321/* confdefs.h. */ 3322_ACEOF 3323cat confdefs.h >>conftest.$ac_ext 3324cat >>conftest.$ac_ext <<_ACEOF 3325/* end confdefs.h. */ 3326#include <stdarg.h> 3327#include <stdio.h> 3328#include <sys/types.h> 3329#include <sys/stat.h> 3330/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3331struct buf { int x; }; 3332FILE * (*rcsopen) (struct buf *, struct stat *, int); 3333static char *e (p, i) 3334 char **p; 3335 int i; 3336{ 3337 return p[i]; 3338} 3339static char *f (char * (*g) (char **, int), char **p, ...) 3340{ 3341 char *s; 3342 va_list v; 3343 va_start (v,p); 3344 s = g (p, va_arg (v,int)); 3345 va_end (v); 3346 return s; 3347} 3348 3349/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3350 function prototypes and stuff, but not '\xHH' hex character constants. 3351 These don't provoke an error unfortunately, instead are silently treated 3352 as 'x'. The following induces an error, until -std is added to get 3353 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3354 array size at least. It's necessary to write '\x00'==0 to get something 3355 that's true only with -std. */ 3356int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3357 3358/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3359 inside strings and character constants. */ 3360#define FOO(x) 'x' 3361int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3362 3363int test (int i, double x); 3364struct s1 {int (*f) (int a);}; 3365struct s2 {int (*f) (double a);}; 3366int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3367int argc; 3368char **argv; 3369int 3370main () 3371{ 3372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3378 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3379do 3380 CC="$ac_save_CC $ac_arg" 3381 rm -f conftest.$ac_objext 3382if { (ac_try="$ac_compile" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_compile") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } && { 3395 test -z "$ac_c_werror_flag" || 3396 test ! -s conftest.err 3397 } && test -s conftest.$ac_objext; then 3398 ac_cv_prog_cc_c89=$ac_arg 3399else 3400 echo "$as_me: failed program was:" >&5 3401sed 's/^/| /' conftest.$ac_ext >&5 3402 3403 3404fi 3405 3406rm -f core conftest.err conftest.$ac_objext 3407 test "x$ac_cv_prog_cc_c89" != "xno" && break 3408done 3409rm -f conftest.$ac_ext 3410CC=$ac_save_CC 3411 3412fi 3413# AC_CACHE_VAL 3414case "x$ac_cv_prog_cc_c89" in 3415 x) 3416 { echo "$as_me:$LINENO: result: none needed" >&5 3417echo "${ECHO_T}none needed" >&6; } ;; 3418 xno) 3419 { echo "$as_me:$LINENO: result: unsupported" >&5 3420echo "${ECHO_T}unsupported" >&6; } ;; 3421 *) 3422 CC="$CC $ac_cv_prog_cc_c89" 3423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3424echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3425esac 3426 3427 3428ac_ext=c 3429ac_cpp='$CPP $CPPFLAGS' 3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3432ac_compiler_gnu=$ac_cv_c_compiler_gnu 3433 3434depcc="$CC" am_compiler_list= 3435 3436{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3437echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3438if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3439 echo $ECHO_N "(cached) $ECHO_C" >&6 3440else 3441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3442 # We make a subdir and do the tests there. Otherwise we can end up 3443 # making bogus files that we don't know about and never remove. For 3444 # instance it was reported that on HP-UX the gcc test will end up 3445 # making a dummy file named `D' -- because `-MD' means `put the output 3446 # in D'. 3447 mkdir conftest.dir 3448 # Copy depcomp to subdir because otherwise we won't find it if we're 3449 # using a relative directory. 3450 cp "$am_depcomp" conftest.dir 3451 cd conftest.dir 3452 # We will build objects and dependencies in a subdirectory because 3453 # it helps to detect inapplicable dependency modes. For instance 3454 # both Tru64's cc and ICC support -MD to output dependencies as a 3455 # side effect of compilation, but ICC will put the dependencies in 3456 # the current directory while Tru64 will put them in the object 3457 # directory. 3458 mkdir sub 3459 3460 am_cv_CC_dependencies_compiler_type=none 3461 if test "$am_compiler_list" = ""; then 3462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3463 fi 3464 for depmode in $am_compiler_list; do 3465 # Setup a source with many dependencies, because some compilers 3466 # like to wrap large dependency lists on column 80 (with \), and 3467 # we should not choose a depcomp mode which is confused by this. 3468 # 3469 # We need to recreate these files for each test, as the compiler may 3470 # overwrite some of them when testing with obscure command lines. 3471 # This happens at least with the AIX C compiler. 3472 : > sub/conftest.c 3473 for i in 1 2 3 4 5 6; do 3474 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3475 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3476 # Solaris 8's {/usr,}/bin/sh. 3477 touch sub/conftst$i.h 3478 done 3479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3480 3481 case $depmode in 3482 nosideeffect) 3483 # after this tag, mechanisms are not by side-effect, so they'll 3484 # only be used when explicitly requested 3485 if test "x$enable_dependency_tracking" = xyes; then 3486 continue 3487 else 3488 break 3489 fi 3490 ;; 3491 none) break ;; 3492 esac 3493 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3494 # mode. It turns out that the SunPro C++ compiler does not properly 3495 # handle `-M -o', and we need to detect this. 3496 if depmode=$depmode \ 3497 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3499 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3500 >/dev/null 2>conftest.err && 3501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3505 # icc doesn't choke on unknown options, it will just issue warnings 3506 # or remarks (even with -Werror). So we grep stderr for any message 3507 # that says an option was ignored or not supported. 3508 # When given -MP, icc 7.0 and 7.1 complain thusly: 3509 # icc: Command line warning: ignoring option '-M'; no argument required 3510 # The diagnosis changed in icc 8.0: 3511 # icc: Command line remark: option '-MP' not supported 3512 if (grep 'ignoring option' conftest.err || 3513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3514 am_cv_CC_dependencies_compiler_type=$depmode 3515 break 3516 fi 3517 fi 3518 done 3519 3520 cd .. 3521 rm -rf conftest.dir 3522else 3523 am_cv_CC_dependencies_compiler_type=none 3524fi 3525 3526fi 3527{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3528echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3529CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3530 3531 if 3532 test "x$enable_dependency_tracking" != xno \ 3533 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3534 am__fastdepCC_TRUE= 3535 am__fastdepCC_FALSE='#' 3536else 3537 am__fastdepCC_TRUE='#' 3538 am__fastdepCC_FALSE= 3539fi 3540 3541 3542 3543{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3544echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3545if test "${ac_cv_search_strerror+set}" = set; then 3546 echo $ECHO_N "(cached) $ECHO_C" >&6 3547else 3548 ac_func_search_save_LIBS=$LIBS 3549cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555 3556/* Override any GCC internal prototype to avoid an error. 3557 Use char because int might match the return type of a GCC 3558 builtin and then its argument prototype would still apply. */ 3559#ifdef __cplusplus 3560extern "C" 3561#endif 3562char strerror (); 3563int 3564main () 3565{ 3566return strerror (); 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571for ac_lib in '' cposix; do 3572 if test -z "$ac_lib"; then 3573 ac_res="none required" 3574 else 3575 ac_res=-l$ac_lib 3576 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3577 fi 3578 rm -f conftest.$ac_objext conftest$ac_exeext 3579if { (ac_try="$ac_link" 3580case "(($ac_try" in 3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *) ac_try_echo=$ac_try;; 3583esac 3584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3585 (eval "$ac_link") 2>conftest.er1 3586 ac_status=$? 3587 grep -v '^ *+' conftest.er1 >conftest.err 3588 rm -f conftest.er1 3589 cat conftest.err >&5 3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3591 (exit $ac_status); } && { 3592 test -z "$ac_c_werror_flag" || 3593 test ! -s conftest.err 3594 } && test -s conftest$ac_exeext && 3595 $as_test_x conftest$ac_exeext; then 3596 ac_cv_search_strerror=$ac_res 3597else 3598 echo "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601 3602fi 3603 3604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3605 conftest$ac_exeext 3606 if test "${ac_cv_search_strerror+set}" = set; then 3607 break 3608fi 3609done 3610if test "${ac_cv_search_strerror+set}" = set; then 3611 : 3612else 3613 ac_cv_search_strerror=no 3614fi 3615rm conftest.$ac_ext 3616LIBS=$ac_func_search_save_LIBS 3617fi 3618{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3619echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3620ac_res=$ac_cv_search_strerror 3621if test "$ac_res" != no; then 3622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3623 3624fi 3625 3626ac_ext=c 3627ac_cpp='$CPP $CPPFLAGS' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 3631if test -n "$ac_tool_prefix"; then 3632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3633set dummy ${ac_tool_prefix}gcc; ac_word=$2 3634{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3636if test "${ac_cv_prog_CC+set}" = set; then 3637 echo $ECHO_N "(cached) $ECHO_C" >&6 3638else 3639 if test -n "$CC"; then 3640 ac_cv_prog_CC="$CC" # Let the user override the test. 3641else 3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643for as_dir in $PATH 3644do 3645 IFS=$as_save_IFS 3646 test -z "$as_dir" && as_dir=. 3647 for ac_exec_ext in '' $ac_executable_extensions; do 3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3649 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3651 break 2 3652 fi 3653done 3654done 3655IFS=$as_save_IFS 3656 3657fi 3658fi 3659CC=$ac_cv_prog_CC 3660if test -n "$CC"; then 3661 { echo "$as_me:$LINENO: result: $CC" >&5 3662echo "${ECHO_T}$CC" >&6; } 3663else 3664 { echo "$as_me:$LINENO: result: no" >&5 3665echo "${ECHO_T}no" >&6; } 3666fi 3667 3668 3669fi 3670if test -z "$ac_cv_prog_CC"; then 3671 ac_ct_CC=$CC 3672 # Extract the first word of "gcc", so it can be a program name with args. 3673set dummy gcc; ac_word=$2 3674{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3677 echo $ECHO_N "(cached) $ECHO_C" >&6 3678else 3679 if test -n "$ac_ct_CC"; then 3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3681else 3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3689 ac_cv_prog_ac_ct_CC="gcc" 3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693done 3694done 3695IFS=$as_save_IFS 3696 3697fi 3698fi 3699ac_ct_CC=$ac_cv_prog_ac_ct_CC 3700if test -n "$ac_ct_CC"; then 3701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3702echo "${ECHO_T}$ac_ct_CC" >&6; } 3703else 3704 { echo "$as_me:$LINENO: result: no" >&5 3705echo "${ECHO_T}no" >&6; } 3706fi 3707 3708 if test "x$ac_ct_CC" = x; then 3709 CC="" 3710 else 3711 case $cross_compiling:$ac_tool_warned in 3712yes:) 3713{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3714whose name does not start with the host triplet. If you think this 3715configuration is useful to you, please write to autoconf@gnu.org." >&5 3716echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3717whose name does not start with the host triplet. If you think this 3718configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3719ac_tool_warned=yes ;; 3720esac 3721 CC=$ac_ct_CC 3722 fi 3723else 3724 CC="$ac_cv_prog_CC" 3725fi 3726 3727if test -z "$CC"; then 3728 if test -n "$ac_tool_prefix"; then 3729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3730set dummy ${ac_tool_prefix}cc; ac_word=$2 3731{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3733if test "${ac_cv_prog_CC+set}" = set; then 3734 echo $ECHO_N "(cached) $ECHO_C" >&6 3735else 3736 if test -n "$CC"; then 3737 ac_cv_prog_CC="$CC" # Let the user override the test. 3738else 3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3740for as_dir in $PATH 3741do 3742 IFS=$as_save_IFS 3743 test -z "$as_dir" && as_dir=. 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3746 ac_cv_prog_CC="${ac_tool_prefix}cc" 3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751done 3752IFS=$as_save_IFS 3753 3754fi 3755fi 3756CC=$ac_cv_prog_CC 3757if test -n "$CC"; then 3758 { echo "$as_me:$LINENO: result: $CC" >&5 3759echo "${ECHO_T}$CC" >&6; } 3760else 3761 { echo "$as_me:$LINENO: result: no" >&5 3762echo "${ECHO_T}no" >&6; } 3763fi 3764 3765 3766 fi 3767fi 3768if test -z "$CC"; then 3769 # Extract the first word of "cc", so it can be a program name with args. 3770set dummy cc; ac_word=$2 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3773if test "${ac_cv_prog_CC+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 if test -n "$CC"; then 3777 ac_cv_prog_CC="$CC" # Let the user override the test. 3778else 3779 ac_prog_rejected=no 3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781for as_dir in $PATH 3782do 3783 IFS=$as_save_IFS 3784 test -z "$as_dir" && as_dir=. 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3788 ac_prog_rejected=yes 3789 continue 3790 fi 3791 ac_cv_prog_CC="cc" 3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3793 break 2 3794 fi 3795done 3796done 3797IFS=$as_save_IFS 3798 3799if test $ac_prog_rejected = yes; then 3800 # We found a bogon in the path, so make sure we never use it. 3801 set dummy $ac_cv_prog_CC 3802 shift 3803 if test $# != 0; then 3804 # We chose a different compiler from the bogus one. 3805 # However, it has the same basename, so the bogon will be chosen 3806 # first if we set CC to just the basename; use the full file name. 3807 shift 3808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3809 fi 3810fi 3811fi 3812fi 3813CC=$ac_cv_prog_CC 3814if test -n "$CC"; then 3815 { echo "$as_me:$LINENO: result: $CC" >&5 3816echo "${ECHO_T}$CC" >&6; } 3817else 3818 { echo "$as_me:$LINENO: result: no" >&5 3819echo "${ECHO_T}no" >&6; } 3820fi 3821 3822 3823fi 3824if test -z "$CC"; then 3825 if test -n "$ac_tool_prefix"; then 3826 for ac_prog in cl.exe 3827 do 3828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3829set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3830{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3832if test "${ac_cv_prog_CC+set}" = set; then 3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3834else 3835 if test -n "$CC"; then 3836 ac_cv_prog_CC="$CC" # Let the user override the test. 3837else 3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3839for as_dir in $PATH 3840do 3841 IFS=$as_save_IFS 3842 test -z "$as_dir" && as_dir=. 3843 for ac_exec_ext in '' $ac_executable_extensions; do 3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3847 break 2 3848 fi 3849done 3850done 3851IFS=$as_save_IFS 3852 3853fi 3854fi 3855CC=$ac_cv_prog_CC 3856if test -n "$CC"; then 3857 { echo "$as_me:$LINENO: result: $CC" >&5 3858echo "${ECHO_T}$CC" >&6; } 3859else 3860 { echo "$as_me:$LINENO: result: no" >&5 3861echo "${ECHO_T}no" >&6; } 3862fi 3863 3864 3865 test -n "$CC" && break 3866 done 3867fi 3868if test -z "$CC"; then 3869 ac_ct_CC=$CC 3870 for ac_prog in cl.exe 3871do 3872 # Extract the first word of "$ac_prog", so it can be a program name with args. 3873set dummy $ac_prog; ac_word=$2 3874{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 if test -n "$ac_ct_CC"; then 3880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3881else 3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3883for as_dir in $PATH 3884do 3885 IFS=$as_save_IFS 3886 test -z "$as_dir" && as_dir=. 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3889 ac_cv_prog_ac_ct_CC="$ac_prog" 3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893done 3894done 3895IFS=$as_save_IFS 3896 3897fi 3898fi 3899ac_ct_CC=$ac_cv_prog_ac_ct_CC 3900if test -n "$ac_ct_CC"; then 3901 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3902echo "${ECHO_T}$ac_ct_CC" >&6; } 3903else 3904 { echo "$as_me:$LINENO: result: no" >&5 3905echo "${ECHO_T}no" >&6; } 3906fi 3907 3908 3909 test -n "$ac_ct_CC" && break 3910done 3911 3912 if test "x$ac_ct_CC" = x; then 3913 CC="" 3914 else 3915 case $cross_compiling:$ac_tool_warned in 3916yes:) 3917{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3918whose name does not start with the host triplet. If you think this 3919configuration is useful to you, please write to autoconf@gnu.org." >&5 3920echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3921whose name does not start with the host triplet. If you think this 3922configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3923ac_tool_warned=yes ;; 3924esac 3925 CC=$ac_ct_CC 3926 fi 3927fi 3928 3929fi 3930 3931 3932test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3933See \`config.log' for more details." >&5 3934echo "$as_me: error: no acceptable C compiler found in \$PATH 3935See \`config.log' for more details." >&2;} 3936 { (exit 1); exit 1; }; } 3937 3938# Provide some information about the compiler. 3939echo "$as_me:$LINENO: checking for C compiler version" >&5 3940ac_compiler=`set X $ac_compile; echo $2` 3941{ (ac_try="$ac_compiler --version >&5" 3942case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3947 (eval "$ac_compiler --version >&5") 2>&5 3948 ac_status=$? 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); } 3951{ (ac_try="$ac_compiler -v >&5" 3952case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3957 (eval "$ac_compiler -v >&5") 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); } 3961{ (ac_try="$ac_compiler -V >&5" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3967 (eval "$ac_compiler -V >&5") 2>&5 3968 ac_status=$? 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3970 (exit $ac_status); } 3971 3972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3974if test "${ac_cv_c_compiler_gnu+set}" = set; then 3975 echo $ECHO_N "(cached) $ECHO_C" >&6 3976else 3977 cat >conftest.$ac_ext <<_ACEOF 3978/* confdefs.h. */ 3979_ACEOF 3980cat confdefs.h >>conftest.$ac_ext 3981cat >>conftest.$ac_ext <<_ACEOF 3982/* end confdefs.h. */ 3983 3984int 3985main () 3986{ 3987#ifndef __GNUC__ 3988 choke me 3989#endif 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995rm -f conftest.$ac_objext 3996if { (ac_try="$ac_compile" 3997case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4002 (eval "$ac_compile") 2>conftest.er1 4003 ac_status=$? 4004 grep -v '^ *+' conftest.er1 >conftest.err 4005 rm -f conftest.er1 4006 cat conftest.err >&5 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); } && { 4009 test -z "$ac_c_werror_flag" || 4010 test ! -s conftest.err 4011 } && test -s conftest.$ac_objext; then 4012 ac_compiler_gnu=yes 4013else 4014 echo "$as_me: failed program was:" >&5 4015sed 's/^/| /' conftest.$ac_ext >&5 4016 4017 ac_compiler_gnu=no 4018fi 4019 4020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4021ac_cv_c_compiler_gnu=$ac_compiler_gnu 4022 4023fi 4024{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4026GCC=`test $ac_compiler_gnu = yes && echo yes` 4027ac_test_CFLAGS=${CFLAGS+set} 4028ac_save_CFLAGS=$CFLAGS 4029{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4031if test "${ac_cv_prog_cc_g+set}" = set; then 4032 echo $ECHO_N "(cached) $ECHO_C" >&6 4033else 4034 ac_save_c_werror_flag=$ac_c_werror_flag 4035 ac_c_werror_flag=yes 4036 ac_cv_prog_cc_g=no 4037 CFLAGS="-g" 4038 cat >conftest.$ac_ext <<_ACEOF 4039/* confdefs.h. */ 4040_ACEOF 4041cat confdefs.h >>conftest.$ac_ext 4042cat >>conftest.$ac_ext <<_ACEOF 4043/* end confdefs.h. */ 4044 4045int 4046main () 4047{ 4048 4049 ; 4050 return 0; 4051} 4052_ACEOF 4053rm -f conftest.$ac_objext 4054if { (ac_try="$ac_compile" 4055case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4060 (eval "$ac_compile") 2>conftest.er1 4061 ac_status=$? 4062 grep -v '^ *+' conftest.er1 >conftest.err 4063 rm -f conftest.er1 4064 cat conftest.err >&5 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } && { 4067 test -z "$ac_c_werror_flag" || 4068 test ! -s conftest.err 4069 } && test -s conftest.$ac_objext; then 4070 ac_cv_prog_cc_g=yes 4071else 4072 echo "$as_me: failed program was:" >&5 4073sed 's/^/| /' conftest.$ac_ext >&5 4074 4075 CFLAGS="" 4076 cat >conftest.$ac_ext <<_ACEOF 4077/* confdefs.h. */ 4078_ACEOF 4079cat confdefs.h >>conftest.$ac_ext 4080cat >>conftest.$ac_ext <<_ACEOF 4081/* end confdefs.h. */ 4082 4083int 4084main () 4085{ 4086 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091rm -f conftest.$ac_objext 4092if { (ac_try="$ac_compile" 4093case "(($ac_try" in 4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4095 *) ac_try_echo=$ac_try;; 4096esac 4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4098 (eval "$ac_compile") 2>conftest.er1 4099 ac_status=$? 4100 grep -v '^ *+' conftest.er1 >conftest.err 4101 rm -f conftest.er1 4102 cat conftest.err >&5 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } && { 4105 test -z "$ac_c_werror_flag" || 4106 test ! -s conftest.err 4107 } && test -s conftest.$ac_objext; then 4108 : 4109else 4110 echo "$as_me: failed program was:" >&5 4111sed 's/^/| /' conftest.$ac_ext >&5 4112 4113 ac_c_werror_flag=$ac_save_c_werror_flag 4114 CFLAGS="-g" 4115 cat >conftest.$ac_ext <<_ACEOF 4116/* confdefs.h. */ 4117_ACEOF 4118cat confdefs.h >>conftest.$ac_ext 4119cat >>conftest.$ac_ext <<_ACEOF 4120/* end confdefs.h. */ 4121 4122int 4123main () 4124{ 4125 4126 ; 4127 return 0; 4128} 4129_ACEOF 4130rm -f conftest.$ac_objext 4131if { (ac_try="$ac_compile" 4132case "(($ac_try" in 4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4134 *) ac_try_echo=$ac_try;; 4135esac 4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4137 (eval "$ac_compile") 2>conftest.er1 4138 ac_status=$? 4139 grep -v '^ *+' conftest.er1 >conftest.err 4140 rm -f conftest.er1 4141 cat conftest.err >&5 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); } && { 4144 test -z "$ac_c_werror_flag" || 4145 test ! -s conftest.err 4146 } && test -s conftest.$ac_objext; then 4147 ac_cv_prog_cc_g=yes 4148else 4149 echo "$as_me: failed program was:" >&5 4150sed 's/^/| /' conftest.$ac_ext >&5 4151 4152 4153fi 4154 4155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4156fi 4157 4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4159fi 4160 4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4162 ac_c_werror_flag=$ac_save_c_werror_flag 4163fi 4164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4165echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4166if test "$ac_test_CFLAGS" = set; then 4167 CFLAGS=$ac_save_CFLAGS 4168elif test $ac_cv_prog_cc_g = yes; then 4169 if test "$GCC" = yes; then 4170 CFLAGS="-g -O2" 4171 else 4172 CFLAGS="-g" 4173 fi 4174else 4175 if test "$GCC" = yes; then 4176 CFLAGS="-O2" 4177 else 4178 CFLAGS= 4179 fi 4180fi 4181{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4182echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4183if test "${ac_cv_prog_cc_c89+set}" = set; then 4184 echo $ECHO_N "(cached) $ECHO_C" >&6 4185else 4186 ac_cv_prog_cc_c89=no 4187ac_save_CC=$CC 4188cat >conftest.$ac_ext <<_ACEOF 4189/* confdefs.h. */ 4190_ACEOF 4191cat confdefs.h >>conftest.$ac_ext 4192cat >>conftest.$ac_ext <<_ACEOF 4193/* end confdefs.h. */ 4194#include <stdarg.h> 4195#include <stdio.h> 4196#include <sys/types.h> 4197#include <sys/stat.h> 4198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4199struct buf { int x; }; 4200FILE * (*rcsopen) (struct buf *, struct stat *, int); 4201static char *e (p, i) 4202 char **p; 4203 int i; 4204{ 4205 return p[i]; 4206} 4207static char *f (char * (*g) (char **, int), char **p, ...) 4208{ 4209 char *s; 4210 va_list v; 4211 va_start (v,p); 4212 s = g (p, va_arg (v,int)); 4213 va_end (v); 4214 return s; 4215} 4216 4217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4218 function prototypes and stuff, but not '\xHH' hex character constants. 4219 These don't provoke an error unfortunately, instead are silently treated 4220 as 'x'. The following induces an error, until -std is added to get 4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4222 array size at least. It's necessary to write '\x00'==0 to get something 4223 that's true only with -std. */ 4224int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4225 4226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4227 inside strings and character constants. */ 4228#define FOO(x) 'x' 4229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4230 4231int test (int i, double x); 4232struct s1 {int (*f) (int a);}; 4233struct s2 {int (*f) (double a);}; 4234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4235int argc; 4236char **argv; 4237int 4238main () 4239{ 4240return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4241 ; 4242 return 0; 4243} 4244_ACEOF 4245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4247do 4248 CC="$ac_save_CC $ac_arg" 4249 rm -f conftest.$ac_objext 4250if { (ac_try="$ac_compile" 4251case "(($ac_try" in 4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4253 *) ac_try_echo=$ac_try;; 4254esac 4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4256 (eval "$ac_compile") 2>conftest.er1 4257 ac_status=$? 4258 grep -v '^ *+' conftest.er1 >conftest.err 4259 rm -f conftest.er1 4260 cat conftest.err >&5 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); } && { 4263 test -z "$ac_c_werror_flag" || 4264 test ! -s conftest.err 4265 } && test -s conftest.$ac_objext; then 4266 ac_cv_prog_cc_c89=$ac_arg 4267else 4268 echo "$as_me: failed program was:" >&5 4269sed 's/^/| /' conftest.$ac_ext >&5 4270 4271 4272fi 4273 4274rm -f core conftest.err conftest.$ac_objext 4275 test "x$ac_cv_prog_cc_c89" != "xno" && break 4276done 4277rm -f conftest.$ac_ext 4278CC=$ac_save_CC 4279 4280fi 4281# AC_CACHE_VAL 4282case "x$ac_cv_prog_cc_c89" in 4283 x) 4284 { echo "$as_me:$LINENO: result: none needed" >&5 4285echo "${ECHO_T}none needed" >&6; } ;; 4286 xno) 4287 { echo "$as_me:$LINENO: result: unsupported" >&5 4288echo "${ECHO_T}unsupported" >&6; } ;; 4289 *) 4290 CC="$CC $ac_cv_prog_cc_c89" 4291 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4292echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4293esac 4294 4295 4296ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301 4302depcc="$CC" am_compiler_list= 4303 4304{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4305echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4306if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4307 echo $ECHO_N "(cached) $ECHO_C" >&6 4308else 4309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4310 # We make a subdir and do the tests there. Otherwise we can end up 4311 # making bogus files that we don't know about and never remove. For 4312 # instance it was reported that on HP-UX the gcc test will end up 4313 # making a dummy file named `D' -- because `-MD' means `put the output 4314 # in D'. 4315 mkdir conftest.dir 4316 # Copy depcomp to subdir because otherwise we won't find it if we're 4317 # using a relative directory. 4318 cp "$am_depcomp" conftest.dir 4319 cd conftest.dir 4320 # We will build objects and dependencies in a subdirectory because 4321 # it helps to detect inapplicable dependency modes. For instance 4322 # both Tru64's cc and ICC support -MD to output dependencies as a 4323 # side effect of compilation, but ICC will put the dependencies in 4324 # the current directory while Tru64 will put them in the object 4325 # directory. 4326 mkdir sub 4327 4328 am_cv_CC_dependencies_compiler_type=none 4329 if test "$am_compiler_list" = ""; then 4330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4331 fi 4332 for depmode in $am_compiler_list; do 4333 # Setup a source with many dependencies, because some compilers 4334 # like to wrap large dependency lists on column 80 (with \), and 4335 # we should not choose a depcomp mode which is confused by this. 4336 # 4337 # We need to recreate these files for each test, as the compiler may 4338 # overwrite some of them when testing with obscure command lines. 4339 # This happens at least with the AIX C compiler. 4340 : > sub/conftest.c 4341 for i in 1 2 3 4 5 6; do 4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4343 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4344 # Solaris 8's {/usr,}/bin/sh. 4345 touch sub/conftst$i.h 4346 done 4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4348 4349 case $depmode in 4350 nosideeffect) 4351 # after this tag, mechanisms are not by side-effect, so they'll 4352 # only be used when explicitly requested 4353 if test "x$enable_dependency_tracking" = xyes; then 4354 continue 4355 else 4356 break 4357 fi 4358 ;; 4359 none) break ;; 4360 esac 4361 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4362 # mode. It turns out that the SunPro C++ compiler does not properly 4363 # handle `-M -o', and we need to detect this. 4364 if depmode=$depmode \ 4365 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4367 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4368 >/dev/null 2>conftest.err && 4369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4371 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4373 # icc doesn't choke on unknown options, it will just issue warnings 4374 # or remarks (even with -Werror). So we grep stderr for any message 4375 # that says an option was ignored or not supported. 4376 # When given -MP, icc 7.0 and 7.1 complain thusly: 4377 # icc: Command line warning: ignoring option '-M'; no argument required 4378 # The diagnosis changed in icc 8.0: 4379 # icc: Command line remark: option '-MP' not supported 4380 if (grep 'ignoring option' conftest.err || 4381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4382 am_cv_CC_dependencies_compiler_type=$depmode 4383 break 4384 fi 4385 fi 4386 done 4387 4388 cd .. 4389 rm -rf conftest.dir 4390else 4391 am_cv_CC_dependencies_compiler_type=none 4392fi 4393 4394fi 4395{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4396echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4398 4399 if 4400 test "x$enable_dependency_tracking" != xno \ 4401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4402 am__fastdepCC_TRUE= 4403 am__fastdepCC_FALSE='#' 4404else 4405 am__fastdepCC_TRUE='#' 4406 am__fastdepCC_FALSE= 4407fi 4408 4409 4410ac_ext=c 4411ac_cpp='$CPP $CPPFLAGS' 4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_compiler_gnu=$ac_cv_c_compiler_gnu 4415if test -n "$ac_tool_prefix"; then 4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4417set dummy ${ac_tool_prefix}gcc; ac_word=$2 4418{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4420if test "${ac_cv_prog_CC+set}" = set; then 4421 echo $ECHO_N "(cached) $ECHO_C" >&6 4422else 4423 if test -n "$CC"; then 4424 ac_cv_prog_CC="$CC" # Let the user override the test. 4425else 4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4435 break 2 4436 fi 4437done 4438done 4439IFS=$as_save_IFS 4440 4441fi 4442fi 4443CC=$ac_cv_prog_CC 4444if test -n "$CC"; then 4445 { echo "$as_me:$LINENO: result: $CC" >&5 4446echo "${ECHO_T}$CC" >&6; } 4447else 4448 { echo "$as_me:$LINENO: result: no" >&5 4449echo "${ECHO_T}no" >&6; } 4450fi 4451 4452 4453fi 4454if test -z "$ac_cv_prog_CC"; then 4455 ac_ct_CC=$CC 4456 # Extract the first word of "gcc", so it can be a program name with args. 4457set dummy gcc; ac_word=$2 4458{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4461 echo $ECHO_N "(cached) $ECHO_C" >&6 4462else 4463 if test -n "$ac_ct_CC"; then 4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4465else 4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467for as_dir in $PATH 4468do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4473 ac_cv_prog_ac_ct_CC="gcc" 4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4475 break 2 4476 fi 4477done 4478done 4479IFS=$as_save_IFS 4480 4481fi 4482fi 4483ac_ct_CC=$ac_cv_prog_ac_ct_CC 4484if test -n "$ac_ct_CC"; then 4485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4486echo "${ECHO_T}$ac_ct_CC" >&6; } 4487else 4488 { echo "$as_me:$LINENO: result: no" >&5 4489echo "${ECHO_T}no" >&6; } 4490fi 4491 4492 if test "x$ac_ct_CC" = x; then 4493 CC="" 4494 else 4495 case $cross_compiling:$ac_tool_warned in 4496yes:) 4497{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4498whose name does not start with the host triplet. If you think this 4499configuration is useful to you, please write to autoconf@gnu.org." >&5 4500echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4501whose name does not start with the host triplet. If you think this 4502configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4503ac_tool_warned=yes ;; 4504esac 4505 CC=$ac_ct_CC 4506 fi 4507else 4508 CC="$ac_cv_prog_CC" 4509fi 4510 4511if test -z "$CC"; then 4512 if test -n "$ac_tool_prefix"; then 4513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4514set dummy ${ac_tool_prefix}cc; ac_word=$2 4515{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4517if test "${ac_cv_prog_CC+set}" = set; then 4518 echo $ECHO_N "(cached) $ECHO_C" >&6 4519else 4520 if test -n "$CC"; then 4521 ac_cv_prog_CC="$CC" # Let the user override the test. 4522else 4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524for as_dir in $PATH 4525do 4526 IFS=$as_save_IFS 4527 test -z "$as_dir" && as_dir=. 4528 for ac_exec_ext in '' $ac_executable_extensions; do 4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4530 ac_cv_prog_CC="${ac_tool_prefix}cc" 4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4532 break 2 4533 fi 4534done 4535done 4536IFS=$as_save_IFS 4537 4538fi 4539fi 4540CC=$ac_cv_prog_CC 4541if test -n "$CC"; then 4542 { echo "$as_me:$LINENO: result: $CC" >&5 4543echo "${ECHO_T}$CC" >&6; } 4544else 4545 { echo "$as_me:$LINENO: result: no" >&5 4546echo "${ECHO_T}no" >&6; } 4547fi 4548 4549 4550 fi 4551fi 4552if test -z "$CC"; then 4553 # Extract the first word of "cc", so it can be a program name with args. 4554set dummy cc; ac_word=$2 4555{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4557if test "${ac_cv_prog_CC+set}" = set; then 4558 echo $ECHO_N "(cached) $ECHO_C" >&6 4559else 4560 if test -n "$CC"; then 4561 ac_cv_prog_CC="$CC" # Let the user override the test. 4562else 4563 ac_prog_rejected=no 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4572 ac_prog_rejected=yes 4573 continue 4574 fi 4575 ac_cv_prog_CC="cc" 4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4577 break 2 4578 fi 4579done 4580done 4581IFS=$as_save_IFS 4582 4583if test $ac_prog_rejected = yes; then 4584 # We found a bogon in the path, so make sure we never use it. 4585 set dummy $ac_cv_prog_CC 4586 shift 4587 if test $# != 0; then 4588 # We chose a different compiler from the bogus one. 4589 # However, it has the same basename, so the bogon will be chosen 4590 # first if we set CC to just the basename; use the full file name. 4591 shift 4592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4593 fi 4594fi 4595fi 4596fi 4597CC=$ac_cv_prog_CC 4598if test -n "$CC"; then 4599 { echo "$as_me:$LINENO: result: $CC" >&5 4600echo "${ECHO_T}$CC" >&6; } 4601else 4602 { echo "$as_me:$LINENO: result: no" >&5 4603echo "${ECHO_T}no" >&6; } 4604fi 4605 4606 4607fi 4608if test -z "$CC"; then 4609 if test -n "$ac_tool_prefix"; then 4610 for ac_prog in cl.exe 4611 do 4612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4613set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4614{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4616if test "${ac_cv_prog_CC+set}" = set; then 4617 echo $ECHO_N "(cached) $ECHO_C" >&6 4618else 4619 if test -n "$CC"; then 4620 ac_cv_prog_CC="$CC" # Let the user override the test. 4621else 4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4623for as_dir in $PATH 4624do 4625 IFS=$as_save_IFS 4626 test -z "$as_dir" && as_dir=. 4627 for ac_exec_ext in '' $ac_executable_extensions; do 4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4631 break 2 4632 fi 4633done 4634done 4635IFS=$as_save_IFS 4636 4637fi 4638fi 4639CC=$ac_cv_prog_CC 4640if test -n "$CC"; then 4641 { echo "$as_me:$LINENO: result: $CC" >&5 4642echo "${ECHO_T}$CC" >&6; } 4643else 4644 { echo "$as_me:$LINENO: result: no" >&5 4645echo "${ECHO_T}no" >&6; } 4646fi 4647 4648 4649 test -n "$CC" && break 4650 done 4651fi 4652if test -z "$CC"; then 4653 ac_ct_CC=$CC 4654 for ac_prog in cl.exe 4655do 4656 # Extract the first word of "$ac_prog", so it can be a program name with args. 4657set dummy $ac_prog; ac_word=$2 4658{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4661 echo $ECHO_N "(cached) $ECHO_C" >&6 4662else 4663 if test -n "$ac_ct_CC"; then 4664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4665else 4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4673 ac_cv_prog_ac_ct_CC="$ac_prog" 4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678done 4679IFS=$as_save_IFS 4680 4681fi 4682fi 4683ac_ct_CC=$ac_cv_prog_ac_ct_CC 4684if test -n "$ac_ct_CC"; then 4685 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4686echo "${ECHO_T}$ac_ct_CC" >&6; } 4687else 4688 { echo "$as_me:$LINENO: result: no" >&5 4689echo "${ECHO_T}no" >&6; } 4690fi 4691 4692 4693 test -n "$ac_ct_CC" && break 4694done 4695 4696 if test "x$ac_ct_CC" = x; then 4697 CC="" 4698 else 4699 case $cross_compiling:$ac_tool_warned in 4700yes:) 4701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4702whose name does not start with the host triplet. If you think this 4703configuration is useful to you, please write to autoconf@gnu.org." >&5 4704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4705whose name does not start with the host triplet. If you think this 4706configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4707ac_tool_warned=yes ;; 4708esac 4709 CC=$ac_ct_CC 4710 fi 4711fi 4712 4713fi 4714 4715 4716test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4717See \`config.log' for more details." >&5 4718echo "$as_me: error: no acceptable C compiler found in \$PATH 4719See \`config.log' for more details." >&2;} 4720 { (exit 1); exit 1; }; } 4721 4722# Provide some information about the compiler. 4723echo "$as_me:$LINENO: checking for C compiler version" >&5 4724ac_compiler=`set X $ac_compile; echo $2` 4725{ (ac_try="$ac_compiler --version >&5" 4726case "(($ac_try" in 4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4728 *) ac_try_echo=$ac_try;; 4729esac 4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4731 (eval "$ac_compiler --version >&5") 2>&5 4732 ac_status=$? 4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4734 (exit $ac_status); } 4735{ (ac_try="$ac_compiler -v >&5" 4736case "(($ac_try" in 4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4738 *) ac_try_echo=$ac_try;; 4739esac 4740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4741 (eval "$ac_compiler -v >&5") 2>&5 4742 ac_status=$? 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); } 4745{ (ac_try="$ac_compiler -V >&5" 4746case "(($ac_try" in 4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4748 *) ac_try_echo=$ac_try;; 4749esac 4750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4751 (eval "$ac_compiler -V >&5") 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); } 4755 4756{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4757echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4758if test "${ac_cv_c_compiler_gnu+set}" = set; then 4759 echo $ECHO_N "(cached) $ECHO_C" >&6 4760else 4761 cat >conftest.$ac_ext <<_ACEOF 4762/* confdefs.h. */ 4763_ACEOF 4764cat confdefs.h >>conftest.$ac_ext 4765cat >>conftest.$ac_ext <<_ACEOF 4766/* end confdefs.h. */ 4767 4768int 4769main () 4770{ 4771#ifndef __GNUC__ 4772 choke me 4773#endif 4774 4775 ; 4776 return 0; 4777} 4778_ACEOF 4779rm -f conftest.$ac_objext 4780if { (ac_try="$ac_compile" 4781case "(($ac_try" in 4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4783 *) ac_try_echo=$ac_try;; 4784esac 4785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4786 (eval "$ac_compile") 2>conftest.er1 4787 ac_status=$? 4788 grep -v '^ *+' conftest.er1 >conftest.err 4789 rm -f conftest.er1 4790 cat conftest.err >&5 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 (exit $ac_status); } && { 4793 test -z "$ac_c_werror_flag" || 4794 test ! -s conftest.err 4795 } && test -s conftest.$ac_objext; then 4796 ac_compiler_gnu=yes 4797else 4798 echo "$as_me: failed program was:" >&5 4799sed 's/^/| /' conftest.$ac_ext >&5 4800 4801 ac_compiler_gnu=no 4802fi 4803 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4805ac_cv_c_compiler_gnu=$ac_compiler_gnu 4806 4807fi 4808{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4809echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4810GCC=`test $ac_compiler_gnu = yes && echo yes` 4811ac_test_CFLAGS=${CFLAGS+set} 4812ac_save_CFLAGS=$CFLAGS 4813{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4814echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4815if test "${ac_cv_prog_cc_g+set}" = set; then 4816 echo $ECHO_N "(cached) $ECHO_C" >&6 4817else 4818 ac_save_c_werror_flag=$ac_c_werror_flag 4819 ac_c_werror_flag=yes 4820 ac_cv_prog_cc_g=no 4821 CFLAGS="-g" 4822 cat >conftest.$ac_ext <<_ACEOF 4823/* confdefs.h. */ 4824_ACEOF 4825cat confdefs.h >>conftest.$ac_ext 4826cat >>conftest.$ac_ext <<_ACEOF 4827/* end confdefs.h. */ 4828 4829int 4830main () 4831{ 4832 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837rm -f conftest.$ac_objext 4838if { (ac_try="$ac_compile" 4839case "(($ac_try" in 4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4841 *) ac_try_echo=$ac_try;; 4842esac 4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4844 (eval "$ac_compile") 2>conftest.er1 4845 ac_status=$? 4846 grep -v '^ *+' conftest.er1 >conftest.err 4847 rm -f conftest.er1 4848 cat conftest.err >&5 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); } && { 4851 test -z "$ac_c_werror_flag" || 4852 test ! -s conftest.err 4853 } && test -s conftest.$ac_objext; then 4854 ac_cv_prog_cc_g=yes 4855else 4856 echo "$as_me: failed program was:" >&5 4857sed 's/^/| /' conftest.$ac_ext >&5 4858 4859 CFLAGS="" 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875rm -f conftest.$ac_objext 4876if { (ac_try="$ac_compile" 4877case "(($ac_try" in 4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4879 *) ac_try_echo=$ac_try;; 4880esac 4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4882 (eval "$ac_compile") 2>conftest.er1 4883 ac_status=$? 4884 grep -v '^ *+' conftest.er1 >conftest.err 4885 rm -f conftest.er1 4886 cat conftest.err >&5 4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4888 (exit $ac_status); } && { 4889 test -z "$ac_c_werror_flag" || 4890 test ! -s conftest.err 4891 } && test -s conftest.$ac_objext; then 4892 : 4893else 4894 echo "$as_me: failed program was:" >&5 4895sed 's/^/| /' conftest.$ac_ext >&5 4896 4897 ac_c_werror_flag=$ac_save_c_werror_flag 4898 CFLAGS="-g" 4899 cat >conftest.$ac_ext <<_ACEOF 4900/* confdefs.h. */ 4901_ACEOF 4902cat confdefs.h >>conftest.$ac_ext 4903cat >>conftest.$ac_ext <<_ACEOF 4904/* end confdefs.h. */ 4905 4906int 4907main () 4908{ 4909 4910 ; 4911 return 0; 4912} 4913_ACEOF 4914rm -f conftest.$ac_objext 4915if { (ac_try="$ac_compile" 4916case "(($ac_try" in 4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4918 *) ac_try_echo=$ac_try;; 4919esac 4920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4921 (eval "$ac_compile") 2>conftest.er1 4922 ac_status=$? 4923 grep -v '^ *+' conftest.er1 >conftest.err 4924 rm -f conftest.er1 4925 cat conftest.err >&5 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); } && { 4928 test -z "$ac_c_werror_flag" || 4929 test ! -s conftest.err 4930 } && test -s conftest.$ac_objext; then 4931 ac_cv_prog_cc_g=yes 4932else 4933 echo "$as_me: failed program was:" >&5 4934sed 's/^/| /' conftest.$ac_ext >&5 4935 4936 4937fi 4938 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4940fi 4941 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4946 ac_c_werror_flag=$ac_save_c_werror_flag 4947fi 4948{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4949echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4950if test "$ac_test_CFLAGS" = set; then 4951 CFLAGS=$ac_save_CFLAGS 4952elif test $ac_cv_prog_cc_g = yes; then 4953 if test "$GCC" = yes; then 4954 CFLAGS="-g -O2" 4955 else 4956 CFLAGS="-g" 4957 fi 4958else 4959 if test "$GCC" = yes; then 4960 CFLAGS="-O2" 4961 else 4962 CFLAGS= 4963 fi 4964fi 4965{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4966echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4967if test "${ac_cv_prog_cc_c89+set}" = set; then 4968 echo $ECHO_N "(cached) $ECHO_C" >&6 4969else 4970 ac_cv_prog_cc_c89=no 4971ac_save_CC=$CC 4972cat >conftest.$ac_ext <<_ACEOF 4973/* confdefs.h. */ 4974_ACEOF 4975cat confdefs.h >>conftest.$ac_ext 4976cat >>conftest.$ac_ext <<_ACEOF 4977/* end confdefs.h. */ 4978#include <stdarg.h> 4979#include <stdio.h> 4980#include <sys/types.h> 4981#include <sys/stat.h> 4982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4983struct buf { int x; }; 4984FILE * (*rcsopen) (struct buf *, struct stat *, int); 4985static char *e (p, i) 4986 char **p; 4987 int i; 4988{ 4989 return p[i]; 4990} 4991static char *f (char * (*g) (char **, int), char **p, ...) 4992{ 4993 char *s; 4994 va_list v; 4995 va_start (v,p); 4996 s = g (p, va_arg (v,int)); 4997 va_end (v); 4998 return s; 4999} 5000 5001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5002 function prototypes and stuff, but not '\xHH' hex character constants. 5003 These don't provoke an error unfortunately, instead are silently treated 5004 as 'x'. The following induces an error, until -std is added to get 5005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5006 array size at least. It's necessary to write '\x00'==0 to get something 5007 that's true only with -std. */ 5008int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5009 5010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5011 inside strings and character constants. */ 5012#define FOO(x) 'x' 5013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5014 5015int test (int i, double x); 5016struct s1 {int (*f) (int a);}; 5017struct s2 {int (*f) (double a);}; 5018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5019int argc; 5020char **argv; 5021int 5022main () 5023{ 5024return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5025 ; 5026 return 0; 5027} 5028_ACEOF 5029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5030 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5031do 5032 CC="$ac_save_CC $ac_arg" 5033 rm -f conftest.$ac_objext 5034if { (ac_try="$ac_compile" 5035case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5040 (eval "$ac_compile") 2>conftest.er1 5041 ac_status=$? 5042 grep -v '^ *+' conftest.er1 >conftest.err 5043 rm -f conftest.er1 5044 cat conftest.err >&5 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); } && { 5047 test -z "$ac_c_werror_flag" || 5048 test ! -s conftest.err 5049 } && test -s conftest.$ac_objext; then 5050 ac_cv_prog_cc_c89=$ac_arg 5051else 5052 echo "$as_me: failed program was:" >&5 5053sed 's/^/| /' conftest.$ac_ext >&5 5054 5055 5056fi 5057 5058rm -f core conftest.err conftest.$ac_objext 5059 test "x$ac_cv_prog_cc_c89" != "xno" && break 5060done 5061rm -f conftest.$ac_ext 5062CC=$ac_save_CC 5063 5064fi 5065# AC_CACHE_VAL 5066case "x$ac_cv_prog_cc_c89" in 5067 x) 5068 { echo "$as_me:$LINENO: result: none needed" >&5 5069echo "${ECHO_T}none needed" >&6; } ;; 5070 xno) 5071 { echo "$as_me:$LINENO: result: unsupported" >&5 5072echo "${ECHO_T}unsupported" >&6; } ;; 5073 *) 5074 CC="$CC $ac_cv_prog_cc_c89" 5075 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5076echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 5077esac 5078 5079 5080ac_ext=c 5081ac_cpp='$CPP $CPPFLAGS' 5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5084ac_compiler_gnu=$ac_cv_c_compiler_gnu 5085 5086depcc="$CC" am_compiler_list= 5087 5088{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5089echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5090if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5091 echo $ECHO_N "(cached) $ECHO_C" >&6 5092else 5093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5094 # We make a subdir and do the tests there. Otherwise we can end up 5095 # making bogus files that we don't know about and never remove. For 5096 # instance it was reported that on HP-UX the gcc test will end up 5097 # making a dummy file named `D' -- because `-MD' means `put the output 5098 # in D'. 5099 mkdir conftest.dir 5100 # Copy depcomp to subdir because otherwise we won't find it if we're 5101 # using a relative directory. 5102 cp "$am_depcomp" conftest.dir 5103 cd conftest.dir 5104 # We will build objects and dependencies in a subdirectory because 5105 # it helps to detect inapplicable dependency modes. For instance 5106 # both Tru64's cc and ICC support -MD to output dependencies as a 5107 # side effect of compilation, but ICC will put the dependencies in 5108 # the current directory while Tru64 will put them in the object 5109 # directory. 5110 mkdir sub 5111 5112 am_cv_CC_dependencies_compiler_type=none 5113 if test "$am_compiler_list" = ""; then 5114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5115 fi 5116 for depmode in $am_compiler_list; do 5117 # Setup a source with many dependencies, because some compilers 5118 # like to wrap large dependency lists on column 80 (with \), and 5119 # we should not choose a depcomp mode which is confused by this. 5120 # 5121 # We need to recreate these files for each test, as the compiler may 5122 # overwrite some of them when testing with obscure command lines. 5123 # This happens at least with the AIX C compiler. 5124 : > sub/conftest.c 5125 for i in 1 2 3 4 5 6; do 5126 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5128 # Solaris 8's {/usr,}/bin/sh. 5129 touch sub/conftst$i.h 5130 done 5131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5132 5133 case $depmode in 5134 nosideeffect) 5135 # after this tag, mechanisms are not by side-effect, so they'll 5136 # only be used when explicitly requested 5137 if test "x$enable_dependency_tracking" = xyes; then 5138 continue 5139 else 5140 break 5141 fi 5142 ;; 5143 none) break ;; 5144 esac 5145 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5146 # mode. It turns out that the SunPro C++ compiler does not properly 5147 # handle `-M -o', and we need to detect this. 5148 if depmode=$depmode \ 5149 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5151 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5152 >/dev/null 2>conftest.err && 5153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5155 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5157 # icc doesn't choke on unknown options, it will just issue warnings 5158 # or remarks (even with -Werror). So we grep stderr for any message 5159 # that says an option was ignored or not supported. 5160 # When given -MP, icc 7.0 and 7.1 complain thusly: 5161 # icc: Command line warning: ignoring option '-M'; no argument required 5162 # The diagnosis changed in icc 8.0: 5163 # icc: Command line remark: option '-MP' not supported 5164 if (grep 'ignoring option' conftest.err || 5165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5166 am_cv_CC_dependencies_compiler_type=$depmode 5167 break 5168 fi 5169 fi 5170 done 5171 5172 cd .. 5173 rm -rf conftest.dir 5174else 5175 am_cv_CC_dependencies_compiler_type=none 5176fi 5177 5178fi 5179{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5180echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 5181CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5182 5183 if 5184 test "x$enable_dependency_tracking" != xno \ 5185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5186 am__fastdepCC_TRUE= 5187 am__fastdepCC_FALSE='#' 5188else 5189 am__fastdepCC_TRUE='#' 5190 am__fastdepCC_FALSE= 5191fi 5192 5193 5194 5195am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 5196 5197ac_ext=c 5198ac_cpp='$CPP $CPPFLAGS' 5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5201ac_compiler_gnu=$ac_cv_c_compiler_gnu 5202{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5203echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5204# On Suns, sometimes $CPP names a directory. 5205if test -n "$CPP" && test -d "$CPP"; then 5206 CPP= 5207fi 5208if test -z "$CPP"; then 5209 if test "${ac_cv_prog_CPP+set}" = set; then 5210 echo $ECHO_N "(cached) $ECHO_C" >&6 5211else 5212 # Double quotes because CPP needs to be expanded 5213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5214 do 5215 ac_preproc_ok=false 5216for ac_c_preproc_warn_flag in '' yes 5217do 5218 # Use a header file that comes with gcc, so configuring glibc 5219 # with a fresh cross-compiler works. 5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5221 # <limits.h> exists even on freestanding compilers. 5222 # On the NeXT, cc -E runs the code through the compiler's parser, 5223 # not just through cpp. "Syntax error" is here to catch this case. 5224 cat >conftest.$ac_ext <<_ACEOF 5225/* confdefs.h. */ 5226_ACEOF 5227cat confdefs.h >>conftest.$ac_ext 5228cat >>conftest.$ac_ext <<_ACEOF 5229/* end confdefs.h. */ 5230#ifdef __STDC__ 5231# include <limits.h> 5232#else 5233# include <assert.h> 5234#endif 5235 Syntax error 5236_ACEOF 5237if { (ac_try="$ac_cpp conftest.$ac_ext" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5244 ac_status=$? 5245 grep -v '^ *+' conftest.er1 >conftest.err 5246 rm -f conftest.er1 5247 cat conftest.err >&5 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } >/dev/null && { 5250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5251 test ! -s conftest.err 5252 }; then 5253 : 5254else 5255 echo "$as_me: failed program was:" >&5 5256sed 's/^/| /' conftest.$ac_ext >&5 5257 5258 # Broken: fails on valid input. 5259continue 5260fi 5261 5262rm -f conftest.err conftest.$ac_ext 5263 5264 # OK, works on sane cases. Now check whether nonexistent headers 5265 # can be detected and how. 5266 cat >conftest.$ac_ext <<_ACEOF 5267/* confdefs.h. */ 5268_ACEOF 5269cat confdefs.h >>conftest.$ac_ext 5270cat >>conftest.$ac_ext <<_ACEOF 5271/* end confdefs.h. */ 5272#include <ac_nonexistent.h> 5273_ACEOF 5274if { (ac_try="$ac_cpp conftest.$ac_ext" 5275case "(($ac_try" in 5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5277 *) ac_try_echo=$ac_try;; 5278esac 5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5281 ac_status=$? 5282 grep -v '^ *+' conftest.er1 >conftest.err 5283 rm -f conftest.er1 5284 cat conftest.err >&5 5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5286 (exit $ac_status); } >/dev/null && { 5287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5288 test ! -s conftest.err 5289 }; then 5290 # Broken: success on invalid input. 5291continue 5292else 5293 echo "$as_me: failed program was:" >&5 5294sed 's/^/| /' conftest.$ac_ext >&5 5295 5296 # Passes both tests. 5297ac_preproc_ok=: 5298break 5299fi 5300 5301rm -f conftest.err conftest.$ac_ext 5302 5303done 5304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5305rm -f conftest.err conftest.$ac_ext 5306if $ac_preproc_ok; then 5307 break 5308fi 5309 5310 done 5311 ac_cv_prog_CPP=$CPP 5312 5313fi 5314 CPP=$ac_cv_prog_CPP 5315else 5316 ac_cv_prog_CPP=$CPP 5317fi 5318{ echo "$as_me:$LINENO: result: $CPP" >&5 5319echo "${ECHO_T}$CPP" >&6; } 5320ac_preproc_ok=false 5321for ac_c_preproc_warn_flag in '' yes 5322do 5323 # Use a header file that comes with gcc, so configuring glibc 5324 # with a fresh cross-compiler works. 5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5326 # <limits.h> exists even on freestanding compilers. 5327 # On the NeXT, cc -E runs the code through the compiler's parser, 5328 # not just through cpp. "Syntax error" is here to catch this case. 5329 cat >conftest.$ac_ext <<_ACEOF 5330/* confdefs.h. */ 5331_ACEOF 5332cat confdefs.h >>conftest.$ac_ext 5333cat >>conftest.$ac_ext <<_ACEOF 5334/* end confdefs.h. */ 5335#ifdef __STDC__ 5336# include <limits.h> 5337#else 5338# include <assert.h> 5339#endif 5340 Syntax error 5341_ACEOF 5342if { (ac_try="$ac_cpp conftest.$ac_ext" 5343case "(($ac_try" in 5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5345 *) ac_try_echo=$ac_try;; 5346esac 5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5349 ac_status=$? 5350 grep -v '^ *+' conftest.er1 >conftest.err 5351 rm -f conftest.er1 5352 cat conftest.err >&5 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 (exit $ac_status); } >/dev/null && { 5355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5356 test ! -s conftest.err 5357 }; then 5358 : 5359else 5360 echo "$as_me: failed program was:" >&5 5361sed 's/^/| /' conftest.$ac_ext >&5 5362 5363 # Broken: fails on valid input. 5364continue 5365fi 5366 5367rm -f conftest.err conftest.$ac_ext 5368 5369 # OK, works on sane cases. Now check whether nonexistent headers 5370 # can be detected and how. 5371 cat >conftest.$ac_ext <<_ACEOF 5372/* confdefs.h. */ 5373_ACEOF 5374cat confdefs.h >>conftest.$ac_ext 5375cat >>conftest.$ac_ext <<_ACEOF 5376/* end confdefs.h. */ 5377#include <ac_nonexistent.h> 5378_ACEOF 5379if { (ac_try="$ac_cpp conftest.$ac_ext" 5380case "(($ac_try" in 5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5382 *) ac_try_echo=$ac_try;; 5383esac 5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } >/dev/null && { 5392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5393 test ! -s conftest.err 5394 }; then 5395 # Broken: success on invalid input. 5396continue 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401 # Passes both tests. 5402ac_preproc_ok=: 5403break 5404fi 5405 5406rm -f conftest.err conftest.$ac_ext 5407 5408done 5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5410rm -f conftest.err conftest.$ac_ext 5411if $ac_preproc_ok; then 5412 : 5413else 5414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5415See \`config.log' for more details." >&5 5416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5417See \`config.log' for more details." >&2;} 5418 { (exit 1); exit 1; }; } 5419fi 5420 5421ac_ext=c 5422ac_cpp='$CPP $CPPFLAGS' 5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5425ac_compiler_gnu=$ac_cv_c_compiler_gnu 5426 5427 5428{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5429echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5430if test "${ac_cv_path_GREP+set}" = set; then 5431 echo $ECHO_N "(cached) $ECHO_C" >&6 5432else 5433 # Extract the first word of "grep ggrep" to use in msg output 5434if test -z "$GREP"; then 5435set dummy grep ggrep; ac_prog_name=$2 5436if test "${ac_cv_path_GREP+set}" = set; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438else 5439 ac_path_GREP_found=false 5440# Loop through the user's path and test for each of PROGNAME-LIST 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5443do 5444 IFS=$as_save_IFS 5445 test -z "$as_dir" && as_dir=. 5446 for ac_prog in grep ggrep; do 5447 for ac_exec_ext in '' $ac_executable_extensions; do 5448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5450 # Check for GNU ac_path_GREP and select it if it is found. 5451 # Check for GNU $ac_path_GREP 5452case `"$ac_path_GREP" --version 2>&1` in 5453*GNU*) 5454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5455*) 5456 ac_count=0 5457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5458 while : 5459 do 5460 cat "conftest.in" "conftest.in" >"conftest.tmp" 5461 mv "conftest.tmp" "conftest.in" 5462 cp "conftest.in" "conftest.nl" 5463 echo 'GREP' >> "conftest.nl" 5464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5466 ac_count=`expr $ac_count + 1` 5467 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5468 # Best one so far, save it but keep looking for a better one 5469 ac_cv_path_GREP="$ac_path_GREP" 5470 ac_path_GREP_max=$ac_count 5471 fi 5472 # 10*(2^10) chars as input seems more than enough 5473 test $ac_count -gt 10 && break 5474 done 5475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5476esac 5477 5478 5479 $ac_path_GREP_found && break 3 5480 done 5481done 5482 5483done 5484IFS=$as_save_IFS 5485 5486 5487fi 5488 5489GREP="$ac_cv_path_GREP" 5490if test -z "$GREP"; then 5491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5492echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5493 { (exit 1); exit 1; }; } 5494fi 5495 5496else 5497 ac_cv_path_GREP=$GREP 5498fi 5499 5500 5501fi 5502{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5503echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5504 GREP="$ac_cv_path_GREP" 5505 5506 5507{ echo "$as_me:$LINENO: checking for egrep" >&5 5508echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5509if test "${ac_cv_path_EGREP+set}" = set; then 5510 echo $ECHO_N "(cached) $ECHO_C" >&6 5511else 5512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5513 then ac_cv_path_EGREP="$GREP -E" 5514 else 5515 # Extract the first word of "egrep" to use in msg output 5516if test -z "$EGREP"; then 5517set dummy egrep; ac_prog_name=$2 5518if test "${ac_cv_path_EGREP+set}" = set; then 5519 echo $ECHO_N "(cached) $ECHO_C" >&6 5520else 5521 ac_path_EGREP_found=false 5522# Loop through the user's path and test for each of PROGNAME-LIST 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_prog in egrep; do 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5532 # Check for GNU ac_path_EGREP and select it if it is found. 5533 # Check for GNU $ac_path_EGREP 5534case `"$ac_path_EGREP" --version 2>&1` in 5535*GNU*) 5536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5537*) 5538 ac_count=0 5539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5540 while : 5541 do 5542 cat "conftest.in" "conftest.in" >"conftest.tmp" 5543 mv "conftest.tmp" "conftest.in" 5544 cp "conftest.in" "conftest.nl" 5545 echo 'EGREP' >> "conftest.nl" 5546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5548 ac_count=`expr $ac_count + 1` 5549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5550 # Best one so far, save it but keep looking for a better one 5551 ac_cv_path_EGREP="$ac_path_EGREP" 5552 ac_path_EGREP_max=$ac_count 5553 fi 5554 # 10*(2^10) chars as input seems more than enough 5555 test $ac_count -gt 10 && break 5556 done 5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5558esac 5559 5560 5561 $ac_path_EGREP_found && break 3 5562 done 5563done 5564 5565done 5566IFS=$as_save_IFS 5567 5568 5569fi 5570 5571EGREP="$ac_cv_path_EGREP" 5572if test -z "$EGREP"; then 5573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5574echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5575 { (exit 1); exit 1; }; } 5576fi 5577 5578else 5579 ac_cv_path_EGREP=$EGREP 5580fi 5581 5582 5583 fi 5584fi 5585{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5586echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5587 EGREP="$ac_cv_path_EGREP" 5588 5589 5590{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5591echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5592if test "${ac_cv_header_stdc+set}" = set; then 5593 echo $ECHO_N "(cached) $ECHO_C" >&6 5594else 5595 cat >conftest.$ac_ext <<_ACEOF 5596/* confdefs.h. */ 5597_ACEOF 5598cat confdefs.h >>conftest.$ac_ext 5599cat >>conftest.$ac_ext <<_ACEOF 5600/* end confdefs.h. */ 5601#include <stdlib.h> 5602#include <stdarg.h> 5603#include <string.h> 5604#include <float.h> 5605 5606int 5607main () 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614rm -f conftest.$ac_objext 5615if { (ac_try="$ac_compile" 5616case "(($ac_try" in 5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5618 *) ac_try_echo=$ac_try;; 5619esac 5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5621 (eval "$ac_compile") 2>conftest.er1 5622 ac_status=$? 5623 grep -v '^ *+' conftest.er1 >conftest.err 5624 rm -f conftest.er1 5625 cat conftest.err >&5 5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5627 (exit $ac_status); } && { 5628 test -z "$ac_c_werror_flag" || 5629 test ! -s conftest.err 5630 } && test -s conftest.$ac_objext; then 5631 ac_cv_header_stdc=yes 5632else 5633 echo "$as_me: failed program was:" >&5 5634sed 's/^/| /' conftest.$ac_ext >&5 5635 5636 ac_cv_header_stdc=no 5637fi 5638 5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5640 5641if test $ac_cv_header_stdc = yes; then 5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5643 cat >conftest.$ac_ext <<_ACEOF 5644/* confdefs.h. */ 5645_ACEOF 5646cat confdefs.h >>conftest.$ac_ext 5647cat >>conftest.$ac_ext <<_ACEOF 5648/* end confdefs.h. */ 5649#include <string.h> 5650 5651_ACEOF 5652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5653 $EGREP "memchr" >/dev/null 2>&1; then 5654 : 5655else 5656 ac_cv_header_stdc=no 5657fi 5658rm -f conftest* 5659 5660fi 5661 5662if test $ac_cv_header_stdc = yes; then 5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5664 cat >conftest.$ac_ext <<_ACEOF 5665/* confdefs.h. */ 5666_ACEOF 5667cat confdefs.h >>conftest.$ac_ext 5668cat >>conftest.$ac_ext <<_ACEOF 5669/* end confdefs.h. */ 5670#include <stdlib.h> 5671 5672_ACEOF 5673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5674 $EGREP "free" >/dev/null 2>&1; then 5675 : 5676else 5677 ac_cv_header_stdc=no 5678fi 5679rm -f conftest* 5680 5681fi 5682 5683if test $ac_cv_header_stdc = yes; then 5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5685 if test "$cross_compiling" = yes; then 5686 : 5687else 5688 cat >conftest.$ac_ext <<_ACEOF 5689/* confdefs.h. */ 5690_ACEOF 5691cat confdefs.h >>conftest.$ac_ext 5692cat >>conftest.$ac_ext <<_ACEOF 5693/* end confdefs.h. */ 5694#include <ctype.h> 5695#include <stdlib.h> 5696#if ((' ' & 0x0FF) == 0x020) 5697# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5698# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5699#else 5700# define ISLOWER(c) \ 5701 (('a' <= (c) && (c) <= 'i') \ 5702 || ('j' <= (c) && (c) <= 'r') \ 5703 || ('s' <= (c) && (c) <= 'z')) 5704# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5705#endif 5706 5707#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5708int 5709main () 5710{ 5711 int i; 5712 for (i = 0; i < 256; i++) 5713 if (XOR (islower (i), ISLOWER (i)) 5714 || toupper (i) != TOUPPER (i)) 5715 return 2; 5716 return 0; 5717} 5718_ACEOF 5719rm -f conftest$ac_exeext 5720if { (ac_try="$ac_link" 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_link") 2>&5 5727 ac_status=$? 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5730 { (case "(($ac_try" in 5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5732 *) ac_try_echo=$ac_try;; 5733esac 5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5735 (eval "$ac_try") 2>&5 5736 ac_status=$? 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); }; }; then 5739 : 5740else 5741 echo "$as_me: program exited with status $ac_status" >&5 5742echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745( exit $ac_status ) 5746ac_cv_header_stdc=no 5747fi 5748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5749fi 5750 5751 5752fi 5753fi 5754{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5755echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5756if test $ac_cv_header_stdc = yes; then 5757 5758cat >>confdefs.h <<\_ACEOF 5759#define STDC_HEADERS 1 5760_ACEOF 5761 5762fi 5763 5764 5765 5766 5767 5768 5769 5770# Check whether --enable-shared was given. 5771if test "${enable_shared+set}" = set; then 5772 enableval=$enable_shared; p=${PACKAGE-default} 5773 case $enableval in 5774 yes) enable_shared=yes ;; 5775 no) enable_shared=no ;; 5776 *) 5777 enable_shared=no 5778 # Look at the argument we got. We use all the common list separators. 5779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5780 for pkg in $enableval; do 5781 IFS="$lt_save_ifs" 5782 if test "X$pkg" = "X$p"; then 5783 enable_shared=yes 5784 fi 5785 done 5786 IFS="$lt_save_ifs" 5787 ;; 5788 esac 5789else 5790 enable_shared=yes 5791fi 5792 5793 5794# Check whether --enable-static was given. 5795if test "${enable_static+set}" = set; then 5796 enableval=$enable_static; p=${PACKAGE-default} 5797 case $enableval in 5798 yes) enable_static=yes ;; 5799 no) enable_static=no ;; 5800 *) 5801 enable_static=no 5802 # Look at the argument we got. We use all the common list separators. 5803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5804 for pkg in $enableval; do 5805 IFS="$lt_save_ifs" 5806 if test "X$pkg" = "X$p"; then 5807 enable_static=yes 5808 fi 5809 done 5810 IFS="$lt_save_ifs" 5811 ;; 5812 esac 5813else 5814 enable_static=yes 5815fi 5816 5817 5818# Check whether --enable-fast-install was given. 5819if test "${enable_fast_install+set}" = set; then 5820 enableval=$enable_fast_install; p=${PACKAGE-default} 5821 case $enableval in 5822 yes) enable_fast_install=yes ;; 5823 no) enable_fast_install=no ;; 5824 *) 5825 enable_fast_install=no 5826 # Look at the argument we got. We use all the common list separators. 5827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5828 for pkg in $enableval; do 5829 IFS="$lt_save_ifs" 5830 if test "X$pkg" = "X$p"; then 5831 enable_fast_install=yes 5832 fi 5833 done 5834 IFS="$lt_save_ifs" 5835 ;; 5836 esac 5837else 5838 enable_fast_install=yes 5839fi 5840 5841 5842# Make sure we can run config.sub. 5843$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5844 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 5845echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 5846 { (exit 1); exit 1; }; } 5847 5848{ echo "$as_me:$LINENO: checking build system type" >&5 5849echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 5850if test "${ac_cv_build+set}" = set; then 5851 echo $ECHO_N "(cached) $ECHO_C" >&6 5852else 5853 ac_build_alias=$build_alias 5854test "x$ac_build_alias" = x && 5855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5856test "x$ac_build_alias" = x && 5857 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 5858echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 5859 { (exit 1); exit 1; }; } 5860ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5861 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 5862echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 5863 { (exit 1); exit 1; }; } 5864 5865fi 5866{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 5867echo "${ECHO_T}$ac_cv_build" >&6; } 5868case $ac_cv_build in 5869*-*-*) ;; 5870*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 5871echo "$as_me: error: invalid value of canonical build" >&2;} 5872 { (exit 1); exit 1; }; };; 5873esac 5874build=$ac_cv_build 5875ac_save_IFS=$IFS; IFS='-' 5876set x $ac_cv_build 5877shift 5878build_cpu=$1 5879build_vendor=$2 5880shift; shift 5881# Remember, the first character of IFS is used to create $*, 5882# except with old shells: 5883build_os=$* 5884IFS=$ac_save_IFS 5885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5886 5887 5888{ echo "$as_me:$LINENO: checking host system type" >&5 5889echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 5890if test "${ac_cv_host+set}" = set; then 5891 echo $ECHO_N "(cached) $ECHO_C" >&6 5892else 5893 if test "x$host_alias" = x; then 5894 ac_cv_host=$ac_cv_build 5895else 5896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 5898echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 5899 { (exit 1); exit 1; }; } 5900fi 5901 5902fi 5903{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5904echo "${ECHO_T}$ac_cv_host" >&6; } 5905case $ac_cv_host in 5906*-*-*) ;; 5907*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 5908echo "$as_me: error: invalid value of canonical host" >&2;} 5909 { (exit 1); exit 1; }; };; 5910esac 5911host=$ac_cv_host 5912ac_save_IFS=$IFS; IFS='-' 5913set x $ac_cv_host 5914shift 5915host_cpu=$1 5916host_vendor=$2 5917shift; shift 5918# Remember, the first character of IFS is used to create $*, 5919# except with old shells: 5920host_os=$* 5921IFS=$ac_save_IFS 5922case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5923 5924 5925{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5926echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5927if test "${lt_cv_path_SED+set}" = set; then 5928 echo $ECHO_N "(cached) $ECHO_C" >&6 5929else 5930 # Loop through the user's path and test for sed and gsed. 5931# Then use that list of sed's as ones to test for truncation. 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5933for as_dir in $PATH 5934do 5935 IFS=$as_save_IFS 5936 test -z "$as_dir" && as_dir=. 5937 for lt_ac_prog in sed gsed; do 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 5940 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5941 fi 5942 done 5943 done 5944done 5945IFS=$as_save_IFS 5946lt_ac_max=0 5947lt_ac_count=0 5948# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5949# along with /bin/sed that truncates output. 5950for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5951 test ! -f $lt_ac_sed && continue 5952 cat /dev/null > conftest.in 5953 lt_ac_count=0 5954 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5955 # Check for GNU sed and select it if it is found. 5956 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5957 lt_cv_path_SED=$lt_ac_sed 5958 break 5959 fi 5960 while true; do 5961 cat conftest.in conftest.in >conftest.tmp 5962 mv conftest.tmp conftest.in 5963 cp conftest.in conftest.nl 5964 echo >>conftest.nl 5965 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5966 cmp -s conftest.out conftest.nl || break 5967 # 10000 chars as input seems more than enough 5968 test $lt_ac_count -gt 10 && break 5969 lt_ac_count=`expr $lt_ac_count + 1` 5970 if test $lt_ac_count -gt $lt_ac_max; then 5971 lt_ac_max=$lt_ac_count 5972 lt_cv_path_SED=$lt_ac_sed 5973 fi 5974 done 5975done 5976 5977fi 5978 5979SED=$lt_cv_path_SED 5980 5981{ echo "$as_me:$LINENO: result: $SED" >&5 5982echo "${ECHO_T}$SED" >&6; } 5983 5984 5985# Check whether --with-gnu-ld was given. 5986if test "${with_gnu_ld+set}" = set; then 5987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5988else 5989 with_gnu_ld=no 5990fi 5991 5992ac_prog=ld 5993if test "$GCC" = yes; then 5994 # Check if gcc -print-prog-name=ld gives a path. 5995 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5996echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5997 case $host in 5998 *-*-mingw*) 5999 # gcc leaves a trailing carriage return which upsets mingw 6000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6001 *) 6002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6003 esac 6004 case $ac_prog in 6005 # Accept absolute paths. 6006 [\\/]* | ?:[\\/]*) 6007 re_direlt='/[^/][^/]*/\.\./' 6008 # Canonicalize the pathname of ld 6009 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6010 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6011 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6012 done 6013 test -z "$LD" && LD="$ac_prog" 6014 ;; 6015 "") 6016 # If it fails, then pretend we aren't using GCC. 6017 ac_prog=ld 6018 ;; 6019 *) 6020 # If it is relative, then search for the first ld in PATH. 6021 with_gnu_ld=unknown 6022 ;; 6023 esac 6024elif test "$with_gnu_ld" = yes; then 6025 { echo "$as_me:$LINENO: checking for GNU ld" >&5 6026echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 6027else 6028 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6029echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 6030fi 6031if test "${lt_cv_path_LD+set}" = set; then 6032 echo $ECHO_N "(cached) $ECHO_C" >&6 6033else 6034 if test -z "$LD"; then 6035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6036 for ac_dir in $PATH; do 6037 IFS="$lt_save_ifs" 6038 test -z "$ac_dir" && ac_dir=. 6039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6040 lt_cv_path_LD="$ac_dir/$ac_prog" 6041 # Check to see if the program is GNU ld. I'd rather use --version, 6042 # but apparently some variants of GNU ld only accept -v. 6043 # Break only if it was the GNU/non-GNU ld that we prefer. 6044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6045 *GNU* | *'with BFD'*) 6046 test "$with_gnu_ld" != no && break 6047 ;; 6048 *) 6049 test "$with_gnu_ld" != yes && break 6050 ;; 6051 esac 6052 fi 6053 done 6054 IFS="$lt_save_ifs" 6055else 6056 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6057fi 6058fi 6059 6060LD="$lt_cv_path_LD" 6061if test -n "$LD"; then 6062 { echo "$as_me:$LINENO: result: $LD" >&5 6063echo "${ECHO_T}$LD" >&6; } 6064else 6065 { echo "$as_me:$LINENO: result: no" >&5 6066echo "${ECHO_T}no" >&6; } 6067fi 6068test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6069echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6070 { (exit 1); exit 1; }; } 6071{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6072echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 6073if test "${lt_cv_prog_gnu_ld+set}" = set; then 6074 echo $ECHO_N "(cached) $ECHO_C" >&6 6075else 6076 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6077case `$LD -v 2>&1 </dev/null` in 6078*GNU* | *'with BFD'*) 6079 lt_cv_prog_gnu_ld=yes 6080 ;; 6081*) 6082 lt_cv_prog_gnu_ld=no 6083 ;; 6084esac 6085fi 6086{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6087echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 6088with_gnu_ld=$lt_cv_prog_gnu_ld 6089 6090 6091{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6092echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 6093if test "${lt_cv_ld_reload_flag+set}" = set; then 6094 echo $ECHO_N "(cached) $ECHO_C" >&6 6095else 6096 lt_cv_ld_reload_flag='-r' 6097fi 6098{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6099echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 6100reload_flag=$lt_cv_ld_reload_flag 6101case $reload_flag in 6102"" | " "*) ;; 6103*) reload_flag=" $reload_flag" ;; 6104esac 6105reload_cmds='$LD$reload_flag -o $output$reload_objs' 6106case $host_os in 6107 darwin*) 6108 if test "$GCC" = yes; then 6109 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6110 else 6111 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6112 fi 6113 ;; 6114esac 6115 6116{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6117echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6118if test "${lt_cv_path_NM+set}" = set; then 6119 echo $ECHO_N "(cached) $ECHO_C" >&6 6120else 6121 if test -n "$NM"; then 6122 # Let the user override the test. 6123 lt_cv_path_NM="$NM" 6124else 6125 lt_nm_to_check="${ac_tool_prefix}nm" 6126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6127 lt_nm_to_check="$lt_nm_to_check nm" 6128 fi 6129 for lt_tmp_nm in $lt_nm_to_check; do 6130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6132 IFS="$lt_save_ifs" 6133 test -z "$ac_dir" && ac_dir=. 6134 tmp_nm="$ac_dir/$lt_tmp_nm" 6135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6136 # Check to see if the nm accepts a BSD-compat flag. 6137 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6138 # nm: unknown option "B" ignored 6139 # Tru64's nm complains that /dev/null is an invalid object file 6140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6141 */dev/null* | *'Invalid file or object type'*) 6142 lt_cv_path_NM="$tmp_nm -B" 6143 break 6144 ;; 6145 *) 6146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6147 */dev/null*) 6148 lt_cv_path_NM="$tmp_nm -p" 6149 break 6150 ;; 6151 *) 6152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6153 continue # so that we can try to find one that supports BSD flags 6154 ;; 6155 esac 6156 ;; 6157 esac 6158 fi 6159 done 6160 IFS="$lt_save_ifs" 6161 done 6162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6163fi 6164fi 6165{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6166echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6167NM="$lt_cv_path_NM" 6168 6169{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6170echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6171LN_S=$as_ln_s 6172if test "$LN_S" = "ln -s"; then 6173 { echo "$as_me:$LINENO: result: yes" >&5 6174echo "${ECHO_T}yes" >&6; } 6175else 6176 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6177echo "${ECHO_T}no, using $LN_S" >&6; } 6178fi 6179 6180{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6181echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 6182if test "${lt_cv_deplibs_check_method+set}" = set; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184else 6185 lt_cv_file_magic_cmd='$MAGIC_CMD' 6186lt_cv_file_magic_test_file= 6187lt_cv_deplibs_check_method='unknown' 6188# Need to set the preceding variable on all platforms that support 6189# interlibrary dependencies. 6190# 'none' -- dependencies not supported. 6191# `unknown' -- same as none, but documents that we really don't know. 6192# 'pass_all' -- all dependencies passed with no checks. 6193# 'test_compile' -- check by making test program. 6194# 'file_magic [[regex]]' -- check by looking for files in library path 6195# which responds to the $file_magic_cmd with a given extended regex. 6196# If you have `file' or equivalent on your system and you're not sure 6197# whether `pass_all' will *always* work, you probably want this one. 6198 6199case $host_os in 6200aix4* | aix5*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204beos*) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207 6208bsdi[45]*) 6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6210 lt_cv_file_magic_cmd='/usr/bin/file -L' 6211 lt_cv_file_magic_test_file=/shlib/libc.so 6212 ;; 6213 6214cygwin*) 6215 # func_win32_libid is a shell function defined in ltmain.sh 6216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6217 lt_cv_file_magic_cmd='func_win32_libid' 6218 ;; 6219 6220mingw* | pw32*) 6221 # Base MSYS/MinGW do not provide the 'file' command needed by 6222 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6223 # unless we find 'file', for example because we are cross-compiling. 6224 if ( file / ) >/dev/null 2>&1; then 6225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6226 lt_cv_file_magic_cmd='func_win32_libid' 6227 else 6228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6229 lt_cv_file_magic_cmd='$OBJDUMP -f' 6230 fi 6231 ;; 6232 6233darwin* | rhapsody*) 6234 lt_cv_deplibs_check_method=pass_all 6235 ;; 6236 6237freebsd* | dragonfly*) 6238 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6239 case $host_cpu in 6240 i*86 ) 6241 # Not sure whether the presence of OpenBSD here was a mistake. 6242 # Let's accept both of them until this is cleared up. 6243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6244 lt_cv_file_magic_cmd=/usr/bin/file 6245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6246 ;; 6247 esac 6248 else 6249 lt_cv_deplibs_check_method=pass_all 6250 fi 6251 ;; 6252 6253gnu*) 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257hpux10.20* | hpux11*) 6258 lt_cv_file_magic_cmd=/usr/bin/file 6259 case $host_cpu in 6260 ia64*) 6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6263 ;; 6264 hppa*64*) 6265 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]' 6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6267 ;; 6268 *) 6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6271 ;; 6272 esac 6273 ;; 6274 6275interix[3-9]*) 6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6278 ;; 6279 6280irix5* | irix6* | nonstopux*) 6281 case $LD in 6282 *-32|*"-32 ") libmagic=32-bit;; 6283 *-n32|*"-n32 ") libmagic=N32;; 6284 *-64|*"-64 ") libmagic=64-bit;; 6285 *) libmagic=never-match;; 6286 esac 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 6290# This must be Linux ELF. 6291linux* | k*bsd*-gnu) 6292 lt_cv_deplibs_check_method=pass_all 6293 ;; 6294 6295netbsd*) 6296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6298 else 6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6300 fi 6301 ;; 6302 6303newos6*) 6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6305 lt_cv_file_magic_cmd=/usr/bin/file 6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6307 ;; 6308 6309nto-qnx*) 6310 lt_cv_deplibs_check_method=unknown 6311 ;; 6312 6313openbsd*) 6314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6316 else 6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6318 fi 6319 ;; 6320 6321osf3* | osf4* | osf5*) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 6325rdos*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329solaris*) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 6333sysv4 | sysv4.3*) 6334 case $host_vendor in 6335 motorola) 6336 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]' 6337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6338 ;; 6339 ncr) 6340 lt_cv_deplibs_check_method=pass_all 6341 ;; 6342 sequent) 6343 lt_cv_file_magic_cmd='/bin/file' 6344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6345 ;; 6346 sni) 6347 lt_cv_file_magic_cmd='/bin/file' 6348 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6349 lt_cv_file_magic_test_file=/lib/libc.so 6350 ;; 6351 siemens) 6352 lt_cv_deplibs_check_method=pass_all 6353 ;; 6354 pc) 6355 lt_cv_deplibs_check_method=pass_all 6356 ;; 6357 esac 6358 ;; 6359 6360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6361 lt_cv_deplibs_check_method=pass_all 6362 ;; 6363esac 6364 6365fi 6366{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6367echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 6368file_magic_cmd=$lt_cv_file_magic_cmd 6369deplibs_check_method=$lt_cv_deplibs_check_method 6370test -z "$deplibs_check_method" && deplibs_check_method=unknown 6371 6372 6373 6374 6375# If no C compiler was specified, use CC. 6376LTCC=${LTCC-"$CC"} 6377 6378# If no C compiler flags were specified, use CFLAGS. 6379LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6380 6381# Allow CC to be a program name with arguments. 6382compiler=$CC 6383 6384# Check whether --enable-libtool-lock was given. 6385if test "${enable_libtool_lock+set}" = set; then 6386 enableval=$enable_libtool_lock; 6387fi 6388 6389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6390 6391# Some flags need to be propagated to the compiler or linker for good 6392# libtool support. 6393case $host in 6394ia64-*-hpux*) 6395 # Find out which ABI we are using. 6396 echo 'int i;' > conftest.$ac_ext 6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6398 (eval $ac_compile) 2>&5 6399 ac_status=$? 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); }; then 6402 case `/usr/bin/file conftest.$ac_objext` in 6403 *ELF-32*) 6404 HPUX_IA64_MODE="32" 6405 ;; 6406 *ELF-64*) 6407 HPUX_IA64_MODE="64" 6408 ;; 6409 esac 6410 fi 6411 rm -rf conftest* 6412 ;; 6413*-*-irix6*) 6414 # Find out which ABI we are using. 6415 echo '#line 6415 "configure"' > conftest.$ac_ext 6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6417 (eval $ac_compile) 2>&5 6418 ac_status=$? 6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); }; then 6421 if test "$lt_cv_prog_gnu_ld" = yes; then 6422 case `/usr/bin/file conftest.$ac_objext` in 6423 *32-bit*) 6424 LD="${LD-ld} -melf32bsmip" 6425 ;; 6426 *N32*) 6427 LD="${LD-ld} -melf32bmipn32" 6428 ;; 6429 *64-bit*) 6430 LD="${LD-ld} -melf64bmip" 6431 ;; 6432 esac 6433 else 6434 case `/usr/bin/file conftest.$ac_objext` in 6435 *32-bit*) 6436 LD="${LD-ld} -32" 6437 ;; 6438 *N32*) 6439 LD="${LD-ld} -n32" 6440 ;; 6441 *64-bit*) 6442 LD="${LD-ld} -64" 6443 ;; 6444 esac 6445 fi 6446 fi 6447 rm -rf conftest* 6448 ;; 6449 6450x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6451s390*-*linux*|sparc*-*linux*) 6452 # Find out which ABI we are using. 6453 echo 'int i;' > conftest.$ac_ext 6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6455 (eval $ac_compile) 2>&5 6456 ac_status=$? 6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6458 (exit $ac_status); }; then 6459 case `/usr/bin/file conftest.o` in 6460 *32-bit*) 6461 case $host in 6462 x86_64-*kfreebsd*-gnu) 6463 LD="${LD-ld} -m elf_i386_fbsd" 6464 ;; 6465 x86_64-*linux*) 6466 LD="${LD-ld} -m elf_i386" 6467 ;; 6468 ppc64-*linux*|powerpc64-*linux*) 6469 LD="${LD-ld} -m elf32ppclinux" 6470 ;; 6471 s390x-*linux*) 6472 LD="${LD-ld} -m elf_s390" 6473 ;; 6474 sparc64-*linux*) 6475 LD="${LD-ld} -m elf32_sparc" 6476 ;; 6477 esac 6478 ;; 6479 *64-bit*) 6480 libsuff=64 6481 case $host in 6482 x86_64-*kfreebsd*-gnu) 6483 LD="${LD-ld} -m elf_x86_64_fbsd" 6484 ;; 6485 x86_64-*linux*) 6486 LD="${LD-ld} -m elf_x86_64" 6487 ;; 6488 ppc*-*linux*|powerpc*-*linux*) 6489 LD="${LD-ld} -m elf64ppc" 6490 ;; 6491 s390*-*linux*) 6492 LD="${LD-ld} -m elf64_s390" 6493 ;; 6494 sparc*-*linux*) 6495 LD="${LD-ld} -m elf64_sparc" 6496 ;; 6497 esac 6498 ;; 6499 esac 6500 fi 6501 rm -rf conftest* 6502 ;; 6503 6504*-*-sco3.2v5*) 6505 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6506 SAVE_CFLAGS="$CFLAGS" 6507 CFLAGS="$CFLAGS -belf" 6508 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 6510if test "${lt_cv_cc_needs_belf+set}" = set; then 6511 echo $ECHO_N "(cached) $ECHO_C" >&6 6512else 6513 ac_ext=c 6514ac_cpp='$CPP $CPPFLAGS' 6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6517ac_compiler_gnu=$ac_cv_c_compiler_gnu 6518 6519 cat >conftest.$ac_ext <<_ACEOF 6520/* confdefs.h. */ 6521_ACEOF 6522cat confdefs.h >>conftest.$ac_ext 6523cat >>conftest.$ac_ext <<_ACEOF 6524/* end confdefs.h. */ 6525 6526int 6527main () 6528{ 6529 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534rm -f conftest.$ac_objext conftest$ac_exeext 6535if { (ac_try="$ac_link" 6536case "(($ac_try" in 6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6538 *) ac_try_echo=$ac_try;; 6539esac 6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6541 (eval "$ac_link") 2>conftest.er1 6542 ac_status=$? 6543 grep -v '^ *+' conftest.er1 >conftest.err 6544 rm -f conftest.er1 6545 cat conftest.err >&5 6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); } && { 6548 test -z "$ac_c_werror_flag" || 6549 test ! -s conftest.err 6550 } && test -s conftest$ac_exeext && 6551 $as_test_x conftest$ac_exeext; then 6552 lt_cv_cc_needs_belf=yes 6553else 6554 echo "$as_me: failed program was:" >&5 6555sed 's/^/| /' conftest.$ac_ext >&5 6556 6557 lt_cv_cc_needs_belf=no 6558fi 6559 6560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6561 conftest$ac_exeext conftest.$ac_ext 6562 ac_ext=c 6563ac_cpp='$CPP $CPPFLAGS' 6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_c_compiler_gnu 6567 6568fi 6569{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6570echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 6571 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6572 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6573 CFLAGS="$SAVE_CFLAGS" 6574 fi 6575 ;; 6576sparc*-*solaris*) 6577 # Find out which ABI we are using. 6578 echo 'int i;' > conftest.$ac_ext 6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6580 (eval $ac_compile) 2>&5 6581 ac_status=$? 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); }; then 6584 case `/usr/bin/file conftest.o` in 6585 *64-bit*) 6586 case $lt_cv_prog_gnu_ld in 6587 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6588 *) LD="${LD-ld} -64" ;; 6589 esac 6590 ;; 6591 esac 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 6596 6597esac 6598 6599need_locks="$enable_libtool_lock" 6600 6601 6602# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6613 inttypes.h stdint.h unistd.h 6614do 6615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6616{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6619 echo $ECHO_N "(cached) $ECHO_C" >&6 6620else 6621 cat >conftest.$ac_ext <<_ACEOF 6622/* confdefs.h. */ 6623_ACEOF 6624cat confdefs.h >>conftest.$ac_ext 6625cat >>conftest.$ac_ext <<_ACEOF 6626/* end confdefs.h. */ 6627$ac_includes_default 6628 6629#include <$ac_header> 6630_ACEOF 6631rm -f conftest.$ac_objext 6632if { (ac_try="$ac_compile" 6633case "(($ac_try" in 6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6635 *) ac_try_echo=$ac_try;; 6636esac 6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6638 (eval "$ac_compile") 2>conftest.er1 6639 ac_status=$? 6640 grep -v '^ *+' conftest.er1 >conftest.err 6641 rm -f conftest.er1 6642 cat conftest.err >&5 6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6644 (exit $ac_status); } && { 6645 test -z "$ac_c_werror_flag" || 6646 test ! -s conftest.err 6647 } && test -s conftest.$ac_objext; then 6648 eval "$as_ac_Header=yes" 6649else 6650 echo "$as_me: failed program was:" >&5 6651sed 's/^/| /' conftest.$ac_ext >&5 6652 6653 eval "$as_ac_Header=no" 6654fi 6655 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657fi 6658ac_res=`eval echo '${'$as_ac_Header'}'` 6659 { echo "$as_me:$LINENO: result: $ac_res" >&5 6660echo "${ECHO_T}$ac_res" >&6; } 6661if test `eval echo '${'$as_ac_Header'}'` = yes; then 6662 cat >>confdefs.h <<_ACEOF 6663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6664_ACEOF 6665 6666fi 6667 6668done 6669 6670 6671 6672for ac_header in dlfcn.h 6673do 6674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6676 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6679 echo $ECHO_N "(cached) $ECHO_C" >&6 6680fi 6681ac_res=`eval echo '${'$as_ac_Header'}'` 6682 { echo "$as_me:$LINENO: result: $ac_res" >&5 6683echo "${ECHO_T}$ac_res" >&6; } 6684else 6685 # Is the header compilable? 6686{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6688cat >conftest.$ac_ext <<_ACEOF 6689/* confdefs.h. */ 6690_ACEOF 6691cat confdefs.h >>conftest.$ac_ext 6692cat >>conftest.$ac_ext <<_ACEOF 6693/* end confdefs.h. */ 6694$ac_includes_default 6695#include <$ac_header> 6696_ACEOF 6697rm -f conftest.$ac_objext 6698if { (ac_try="$ac_compile" 6699case "(($ac_try" in 6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6701 *) ac_try_echo=$ac_try;; 6702esac 6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6704 (eval "$ac_compile") 2>conftest.er1 6705 ac_status=$? 6706 grep -v '^ *+' conftest.er1 >conftest.err 6707 rm -f conftest.er1 6708 cat conftest.err >&5 6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6710 (exit $ac_status); } && { 6711 test -z "$ac_c_werror_flag" || 6712 test ! -s conftest.err 6713 } && test -s conftest.$ac_objext; then 6714 ac_header_compiler=yes 6715else 6716 echo "$as_me: failed program was:" >&5 6717sed 's/^/| /' conftest.$ac_ext >&5 6718 6719 ac_header_compiler=no 6720fi 6721 6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6724echo "${ECHO_T}$ac_header_compiler" >&6; } 6725 6726# Is the header present? 6727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6729cat >conftest.$ac_ext <<_ACEOF 6730/* confdefs.h. */ 6731_ACEOF 6732cat confdefs.h >>conftest.$ac_ext 6733cat >>conftest.$ac_ext <<_ACEOF 6734/* end confdefs.h. */ 6735#include <$ac_header> 6736_ACEOF 6737if { (ac_try="$ac_cpp conftest.$ac_ext" 6738case "(($ac_try" in 6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6740 *) ac_try_echo=$ac_try;; 6741esac 6742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6744 ac_status=$? 6745 grep -v '^ *+' conftest.er1 >conftest.err 6746 rm -f conftest.er1 6747 cat conftest.err >&5 6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); } >/dev/null && { 6750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6751 test ! -s conftest.err 6752 }; then 6753 ac_header_preproc=yes 6754else 6755 echo "$as_me: failed program was:" >&5 6756sed 's/^/| /' conftest.$ac_ext >&5 6757 6758 ac_header_preproc=no 6759fi 6760 6761rm -f conftest.err conftest.$ac_ext 6762{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6763echo "${ECHO_T}$ac_header_preproc" >&6; } 6764 6765# So? What about this header? 6766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6767 yes:no: ) 6768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6772 ac_header_preproc=yes 6773 ;; 6774 no:yes:* ) 6775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6787 6788 ;; 6789esac 6790{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6793 echo $ECHO_N "(cached) $ECHO_C" >&6 6794else 6795 eval "$as_ac_Header=\$ac_header_preproc" 6796fi 6797ac_res=`eval echo '${'$as_ac_Header'}'` 6798 { echo "$as_me:$LINENO: result: $ac_res" >&5 6799echo "${ECHO_T}$ac_res" >&6; } 6800 6801fi 6802if test `eval echo '${'$as_ac_Header'}'` = yes; then 6803 cat >>confdefs.h <<_ACEOF 6804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6805_ACEOF 6806 6807fi 6808 6809done 6810 6811ac_ext=cpp 6812ac_cpp='$CXXCPP $CPPFLAGS' 6813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6816if test -z "$CXX"; then 6817 if test -n "$CCC"; then 6818 CXX=$CCC 6819 else 6820 if test -n "$ac_tool_prefix"; then 6821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6822 do 6823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6824set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6827if test "${ac_cv_prog_CXX+set}" = set; then 6828 echo $ECHO_N "(cached) $ECHO_C" >&6 6829else 6830 if test -n "$CXX"; then 6831 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6832else 6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834for as_dir in $PATH 6835do 6836 IFS=$as_save_IFS 6837 test -z "$as_dir" && as_dir=. 6838 for ac_exec_ext in '' $ac_executable_extensions; do 6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6842 break 2 6843 fi 6844done 6845done 6846IFS=$as_save_IFS 6847 6848fi 6849fi 6850CXX=$ac_cv_prog_CXX 6851if test -n "$CXX"; then 6852 { echo "$as_me:$LINENO: result: $CXX" >&5 6853echo "${ECHO_T}$CXX" >&6; } 6854else 6855 { echo "$as_me:$LINENO: result: no" >&5 6856echo "${ECHO_T}no" >&6; } 6857fi 6858 6859 6860 test -n "$CXX" && break 6861 done 6862fi 6863if test -z "$CXX"; then 6864 ac_ct_CXX=$CXX 6865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6866do 6867 # Extract the first word of "$ac_prog", so it can be a program name with args. 6868set dummy $ac_prog; ac_word=$2 6869{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6871if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873else 6874 if test -n "$ac_ct_CXX"; then 6875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6876else 6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878for as_dir in $PATH 6879do 6880 IFS=$as_save_IFS 6881 test -z "$as_dir" && as_dir=. 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6884 ac_cv_prog_ac_ct_CXX="$ac_prog" 6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889done 6890IFS=$as_save_IFS 6891 6892fi 6893fi 6894ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6895if test -n "$ac_ct_CXX"; then 6896 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6897echo "${ECHO_T}$ac_ct_CXX" >&6; } 6898else 6899 { echo "$as_me:$LINENO: result: no" >&5 6900echo "${ECHO_T}no" >&6; } 6901fi 6902 6903 6904 test -n "$ac_ct_CXX" && break 6905done 6906 6907 if test "x$ac_ct_CXX" = x; then 6908 CXX="g++" 6909 else 6910 case $cross_compiling:$ac_tool_warned in 6911yes:) 6912{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6913whose name does not start with the host triplet. If you think this 6914configuration is useful to you, please write to autoconf@gnu.org." >&5 6915echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6916whose name does not start with the host triplet. If you think this 6917configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6918ac_tool_warned=yes ;; 6919esac 6920 CXX=$ac_ct_CXX 6921 fi 6922fi 6923 6924 fi 6925fi 6926# Provide some information about the compiler. 6927echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6928ac_compiler=`set X $ac_compile; echo $2` 6929{ (ac_try="$ac_compiler --version >&5" 6930case "(($ac_try" in 6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6932 *) ac_try_echo=$ac_try;; 6933esac 6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6935 (eval "$ac_compiler --version >&5") 2>&5 6936 ac_status=$? 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); } 6939{ (ac_try="$ac_compiler -v >&5" 6940case "(($ac_try" in 6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6942 *) ac_try_echo=$ac_try;; 6943esac 6944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6945 (eval "$ac_compiler -v >&5") 2>&5 6946 ac_status=$? 6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6948 (exit $ac_status); } 6949{ (ac_try="$ac_compiler -V >&5" 6950case "(($ac_try" in 6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6952 *) ac_try_echo=$ac_try;; 6953esac 6954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6955 (eval "$ac_compiler -V >&5") 2>&5 6956 ac_status=$? 6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6958 (exit $ac_status); } 6959 6960{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6961echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6962if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6963 echo $ECHO_N "(cached) $ECHO_C" >&6 6964else 6965 cat >conftest.$ac_ext <<_ACEOF 6966/* confdefs.h. */ 6967_ACEOF 6968cat confdefs.h >>conftest.$ac_ext 6969cat >>conftest.$ac_ext <<_ACEOF 6970/* end confdefs.h. */ 6971 6972int 6973main () 6974{ 6975#ifndef __GNUC__ 6976 choke me 6977#endif 6978 6979 ; 6980 return 0; 6981} 6982_ACEOF 6983rm -f conftest.$ac_objext 6984if { (ac_try="$ac_compile" 6985case "(($ac_try" in 6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6987 *) ac_try_echo=$ac_try;; 6988esac 6989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6990 (eval "$ac_compile") 2>conftest.er1 6991 ac_status=$? 6992 grep -v '^ *+' conftest.er1 >conftest.err 6993 rm -f conftest.er1 6994 cat conftest.err >&5 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); } && { 6997 test -z "$ac_cxx_werror_flag" || 6998 test ! -s conftest.err 6999 } && test -s conftest.$ac_objext; then 7000 ac_compiler_gnu=yes 7001else 7002 echo "$as_me: failed program was:" >&5 7003sed 's/^/| /' conftest.$ac_ext >&5 7004 7005 ac_compiler_gnu=no 7006fi 7007 7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7010 7011fi 7012{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 7014GXX=`test $ac_compiler_gnu = yes && echo yes` 7015ac_test_CXXFLAGS=${CXXFLAGS+set} 7016ac_save_CXXFLAGS=$CXXFLAGS 7017{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 7019if test "${ac_cv_prog_cxx_g+set}" = set; then 7020 echo $ECHO_N "(cached) $ECHO_C" >&6 7021else 7022 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7023 ac_cxx_werror_flag=yes 7024 ac_cv_prog_cxx_g=no 7025 CXXFLAGS="-g" 7026 cat >conftest.$ac_ext <<_ACEOF 7027/* confdefs.h. */ 7028_ACEOF 7029cat confdefs.h >>conftest.$ac_ext 7030cat >>conftest.$ac_ext <<_ACEOF 7031/* end confdefs.h. */ 7032 7033int 7034main () 7035{ 7036 7037 ; 7038 return 0; 7039} 7040_ACEOF 7041rm -f conftest.$ac_objext 7042if { (ac_try="$ac_compile" 7043case "(($ac_try" in 7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7045 *) ac_try_echo=$ac_try;; 7046esac 7047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7048 (eval "$ac_compile") 2>conftest.er1 7049 ac_status=$? 7050 grep -v '^ *+' conftest.er1 >conftest.err 7051 rm -f conftest.er1 7052 cat conftest.err >&5 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); } && { 7055 test -z "$ac_cxx_werror_flag" || 7056 test ! -s conftest.err 7057 } && test -s conftest.$ac_objext; then 7058 ac_cv_prog_cxx_g=yes 7059else 7060 echo "$as_me: failed program was:" >&5 7061sed 's/^/| /' conftest.$ac_ext >&5 7062 7063 CXXFLAGS="" 7064 cat >conftest.$ac_ext <<_ACEOF 7065/* confdefs.h. */ 7066_ACEOF 7067cat confdefs.h >>conftest.$ac_ext 7068cat >>conftest.$ac_ext <<_ACEOF 7069/* end confdefs.h. */ 7070 7071int 7072main () 7073{ 7074 7075 ; 7076 return 0; 7077} 7078_ACEOF 7079rm -f conftest.$ac_objext 7080if { (ac_try="$ac_compile" 7081case "(($ac_try" in 7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7083 *) ac_try_echo=$ac_try;; 7084esac 7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7086 (eval "$ac_compile") 2>conftest.er1 7087 ac_status=$? 7088 grep -v '^ *+' conftest.er1 >conftest.err 7089 rm -f conftest.er1 7090 cat conftest.err >&5 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); } && { 7093 test -z "$ac_cxx_werror_flag" || 7094 test ! -s conftest.err 7095 } && test -s conftest.$ac_objext; then 7096 : 7097else 7098 echo "$as_me: failed program was:" >&5 7099sed 's/^/| /' conftest.$ac_ext >&5 7100 7101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7102 CXXFLAGS="-g" 7103 cat >conftest.$ac_ext <<_ACEOF 7104/* confdefs.h. */ 7105_ACEOF 7106cat confdefs.h >>conftest.$ac_ext 7107cat >>conftest.$ac_ext <<_ACEOF 7108/* end confdefs.h. */ 7109 7110int 7111main () 7112{ 7113 7114 ; 7115 return 0; 7116} 7117_ACEOF 7118rm -f conftest.$ac_objext 7119if { (ac_try="$ac_compile" 7120case "(($ac_try" in 7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7122 *) ac_try_echo=$ac_try;; 7123esac 7124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7125 (eval "$ac_compile") 2>conftest.er1 7126 ac_status=$? 7127 grep -v '^ *+' conftest.er1 >conftest.err 7128 rm -f conftest.er1 7129 cat conftest.err >&5 7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7131 (exit $ac_status); } && { 7132 test -z "$ac_cxx_werror_flag" || 7133 test ! -s conftest.err 7134 } && test -s conftest.$ac_objext; then 7135 ac_cv_prog_cxx_g=yes 7136else 7137 echo "$as_me: failed program was:" >&5 7138sed 's/^/| /' conftest.$ac_ext >&5 7139 7140 7141fi 7142 7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7144fi 7145 7146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7147fi 7148 7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7151fi 7152{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7153echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 7154if test "$ac_test_CXXFLAGS" = set; then 7155 CXXFLAGS=$ac_save_CXXFLAGS 7156elif test $ac_cv_prog_cxx_g = yes; then 7157 if test "$GXX" = yes; then 7158 CXXFLAGS="-g -O2" 7159 else 7160 CXXFLAGS="-g" 7161 fi 7162else 7163 if test "$GXX" = yes; then 7164 CXXFLAGS="-O2" 7165 else 7166 CXXFLAGS= 7167 fi 7168fi 7169ac_ext=cpp 7170ac_cpp='$CXXCPP $CPPFLAGS' 7171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7174 7175depcc="$CXX" am_compiler_list= 7176 7177{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7178echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 7179if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7180 echo $ECHO_N "(cached) $ECHO_C" >&6 7181else 7182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7183 # We make a subdir and do the tests there. Otherwise we can end up 7184 # making bogus files that we don't know about and never remove. For 7185 # instance it was reported that on HP-UX the gcc test will end up 7186 # making a dummy file named `D' -- because `-MD' means `put the output 7187 # in D'. 7188 mkdir conftest.dir 7189 # Copy depcomp to subdir because otherwise we won't find it if we're 7190 # using a relative directory. 7191 cp "$am_depcomp" conftest.dir 7192 cd conftest.dir 7193 # We will build objects and dependencies in a subdirectory because 7194 # it helps to detect inapplicable dependency modes. For instance 7195 # both Tru64's cc and ICC support -MD to output dependencies as a 7196 # side effect of compilation, but ICC will put the dependencies in 7197 # the current directory while Tru64 will put them in the object 7198 # directory. 7199 mkdir sub 7200 7201 am_cv_CXX_dependencies_compiler_type=none 7202 if test "$am_compiler_list" = ""; then 7203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7204 fi 7205 for depmode in $am_compiler_list; do 7206 # Setup a source with many dependencies, because some compilers 7207 # like to wrap large dependency lists on column 80 (with \), and 7208 # we should not choose a depcomp mode which is confused by this. 7209 # 7210 # We need to recreate these files for each test, as the compiler may 7211 # overwrite some of them when testing with obscure command lines. 7212 # This happens at least with the AIX C compiler. 7213 : > sub/conftest.c 7214 for i in 1 2 3 4 5 6; do 7215 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7216 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7217 # Solaris 8's {/usr,}/bin/sh. 7218 touch sub/conftst$i.h 7219 done 7220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7221 7222 case $depmode in 7223 nosideeffect) 7224 # after this tag, mechanisms are not by side-effect, so they'll 7225 # only be used when explicitly requested 7226 if test "x$enable_dependency_tracking" = xyes; then 7227 continue 7228 else 7229 break 7230 fi 7231 ;; 7232 none) break ;; 7233 esac 7234 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7235 # mode. It turns out that the SunPro C++ compiler does not properly 7236 # handle `-M -o', and we need to detect this. 7237 if depmode=$depmode \ 7238 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7240 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7241 >/dev/null 2>conftest.err && 7242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7244 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7246 # icc doesn't choke on unknown options, it will just issue warnings 7247 # or remarks (even with -Werror). So we grep stderr for any message 7248 # that says an option was ignored or not supported. 7249 # When given -MP, icc 7.0 and 7.1 complain thusly: 7250 # icc: Command line warning: ignoring option '-M'; no argument required 7251 # The diagnosis changed in icc 8.0: 7252 # icc: Command line remark: option '-MP' not supported 7253 if (grep 'ignoring option' conftest.err || 7254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7255 am_cv_CXX_dependencies_compiler_type=$depmode 7256 break 7257 fi 7258 fi 7259 done 7260 7261 cd .. 7262 rm -rf conftest.dir 7263else 7264 am_cv_CXX_dependencies_compiler_type=none 7265fi 7266 7267fi 7268{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7269echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 7270CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7271 7272 if 7273 test "x$enable_dependency_tracking" != xno \ 7274 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7275 am__fastdepCXX_TRUE= 7276 am__fastdepCXX_FALSE='#' 7277else 7278 am__fastdepCXX_TRUE='#' 7279 am__fastdepCXX_FALSE= 7280fi 7281 7282 7283 7284 7285if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7286 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7287 (test "X$CXX" != "Xg++"))) ; then 7288 ac_ext=cpp 7289ac_cpp='$CXXCPP $CPPFLAGS' 7290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7293{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7294echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 7295if test -z "$CXXCPP"; then 7296 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298else 7299 # Double quotes because CXXCPP needs to be expanded 7300 for CXXCPP in "$CXX -E" "/lib/cpp" 7301 do 7302 ac_preproc_ok=false 7303for ac_cxx_preproc_warn_flag in '' yes 7304do 7305 # Use a header file that comes with gcc, so configuring glibc 7306 # with a fresh cross-compiler works. 7307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7308 # <limits.h> exists even on freestanding compilers. 7309 # On the NeXT, cc -E runs the code through the compiler's parser, 7310 # not just through cpp. "Syntax error" is here to catch this case. 7311 cat >conftest.$ac_ext <<_ACEOF 7312/* confdefs.h. */ 7313_ACEOF 7314cat confdefs.h >>conftest.$ac_ext 7315cat >>conftest.$ac_ext <<_ACEOF 7316/* end confdefs.h. */ 7317#ifdef __STDC__ 7318# include <limits.h> 7319#else 7320# include <assert.h> 7321#endif 7322 Syntax error 7323_ACEOF 7324if { (ac_try="$ac_cpp conftest.$ac_ext" 7325case "(($ac_try" in 7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7327 *) ac_try_echo=$ac_try;; 7328esac 7329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7331 ac_status=$? 7332 grep -v '^ *+' conftest.er1 >conftest.err 7333 rm -f conftest.er1 7334 cat conftest.err >&5 7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7336 (exit $ac_status); } >/dev/null && { 7337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7338 test ! -s conftest.err 7339 }; then 7340 : 7341else 7342 echo "$as_me: failed program was:" >&5 7343sed 's/^/| /' conftest.$ac_ext >&5 7344 7345 # Broken: fails on valid input. 7346continue 7347fi 7348 7349rm -f conftest.err conftest.$ac_ext 7350 7351 # OK, works on sane cases. Now check whether nonexistent headers 7352 # can be detected and how. 7353 cat >conftest.$ac_ext <<_ACEOF 7354/* confdefs.h. */ 7355_ACEOF 7356cat confdefs.h >>conftest.$ac_ext 7357cat >>conftest.$ac_ext <<_ACEOF 7358/* end confdefs.h. */ 7359#include <ac_nonexistent.h> 7360_ACEOF 7361if { (ac_try="$ac_cpp conftest.$ac_ext" 7362case "(($ac_try" in 7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7364 *) ac_try_echo=$ac_try;; 7365esac 7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7368 ac_status=$? 7369 grep -v '^ *+' conftest.er1 >conftest.err 7370 rm -f conftest.er1 7371 cat conftest.err >&5 7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7373 (exit $ac_status); } >/dev/null && { 7374 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7375 test ! -s conftest.err 7376 }; then 7377 # Broken: success on invalid input. 7378continue 7379else 7380 echo "$as_me: failed program was:" >&5 7381sed 's/^/| /' conftest.$ac_ext >&5 7382 7383 # Passes both tests. 7384ac_preproc_ok=: 7385break 7386fi 7387 7388rm -f conftest.err conftest.$ac_ext 7389 7390done 7391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7392rm -f conftest.err conftest.$ac_ext 7393if $ac_preproc_ok; then 7394 break 7395fi 7396 7397 done 7398 ac_cv_prog_CXXCPP=$CXXCPP 7399 7400fi 7401 CXXCPP=$ac_cv_prog_CXXCPP 7402else 7403 ac_cv_prog_CXXCPP=$CXXCPP 7404fi 7405{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 7406echo "${ECHO_T}$CXXCPP" >&6; } 7407ac_preproc_ok=false 7408for ac_cxx_preproc_warn_flag in '' yes 7409do 7410 # Use a header file that comes with gcc, so configuring glibc 7411 # with a fresh cross-compiler works. 7412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7413 # <limits.h> exists even on freestanding compilers. 7414 # On the NeXT, cc -E runs the code through the compiler's parser, 7415 # not just through cpp. "Syntax error" is here to catch this case. 7416 cat >conftest.$ac_ext <<_ACEOF 7417/* confdefs.h. */ 7418_ACEOF 7419cat confdefs.h >>conftest.$ac_ext 7420cat >>conftest.$ac_ext <<_ACEOF 7421/* end confdefs.h. */ 7422#ifdef __STDC__ 7423# include <limits.h> 7424#else 7425# include <assert.h> 7426#endif 7427 Syntax error 7428_ACEOF 7429if { (ac_try="$ac_cpp conftest.$ac_ext" 7430case "(($ac_try" in 7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7432 *) ac_try_echo=$ac_try;; 7433esac 7434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7436 ac_status=$? 7437 grep -v '^ *+' conftest.er1 >conftest.err 7438 rm -f conftest.er1 7439 cat conftest.err >&5 7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7441 (exit $ac_status); } >/dev/null && { 7442 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7443 test ! -s conftest.err 7444 }; then 7445 : 7446else 7447 echo "$as_me: failed program was:" >&5 7448sed 's/^/| /' conftest.$ac_ext >&5 7449 7450 # Broken: fails on valid input. 7451continue 7452fi 7453 7454rm -f conftest.err conftest.$ac_ext 7455 7456 # OK, works on sane cases. Now check whether nonexistent headers 7457 # can be detected and how. 7458 cat >conftest.$ac_ext <<_ACEOF 7459/* confdefs.h. */ 7460_ACEOF 7461cat confdefs.h >>conftest.$ac_ext 7462cat >>conftest.$ac_ext <<_ACEOF 7463/* end confdefs.h. */ 7464#include <ac_nonexistent.h> 7465_ACEOF 7466if { (ac_try="$ac_cpp conftest.$ac_ext" 7467case "(($ac_try" in 7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7469 *) ac_try_echo=$ac_try;; 7470esac 7471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7473 ac_status=$? 7474 grep -v '^ *+' conftest.er1 >conftest.err 7475 rm -f conftest.er1 7476 cat conftest.err >&5 7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7478 (exit $ac_status); } >/dev/null && { 7479 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7480 test ! -s conftest.err 7481 }; then 7482 # Broken: success on invalid input. 7483continue 7484else 7485 echo "$as_me: failed program was:" >&5 7486sed 's/^/| /' conftest.$ac_ext >&5 7487 7488 # Passes both tests. 7489ac_preproc_ok=: 7490break 7491fi 7492 7493rm -f conftest.err conftest.$ac_ext 7494 7495done 7496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7497rm -f conftest.err conftest.$ac_ext 7498if $ac_preproc_ok; then 7499 : 7500else 7501 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7502See \`config.log' for more details." >&5 7503echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7504See \`config.log' for more details." >&2;} 7505 { (exit 1); exit 1; }; } 7506fi 7507 7508ac_ext=cpp 7509ac_cpp='$CXXCPP $CPPFLAGS' 7510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7513 7514fi 7515 7516 7517ac_ext=f 7518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7520ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7521if test -n "$ac_tool_prefix"; then 7522 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 7523 do 7524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7528if test "${ac_cv_prog_F77+set}" = set; then 7529 echo $ECHO_N "(cached) $ECHO_C" >&6 7530else 7531 if test -n "$F77"; then 7532 ac_cv_prog_F77="$F77" # Let the user override the test. 7533else 7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7535for as_dir in $PATH 7536do 7537 IFS=$as_save_IFS 7538 test -z "$as_dir" && as_dir=. 7539 for ac_exec_ext in '' $ac_executable_extensions; do 7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7541 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7543 break 2 7544 fi 7545done 7546done 7547IFS=$as_save_IFS 7548 7549fi 7550fi 7551F77=$ac_cv_prog_F77 7552if test -n "$F77"; then 7553 { echo "$as_me:$LINENO: result: $F77" >&5 7554echo "${ECHO_T}$F77" >&6; } 7555else 7556 { echo "$as_me:$LINENO: result: no" >&5 7557echo "${ECHO_T}no" >&6; } 7558fi 7559 7560 7561 test -n "$F77" && break 7562 done 7563fi 7564if test -z "$F77"; then 7565 ac_ct_F77=$F77 7566 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 7567do 7568 # Extract the first word of "$ac_prog", so it can be a program name with args. 7569set dummy $ac_prog; ac_word=$2 7570{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7572if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7573 echo $ECHO_N "(cached) $ECHO_C" >&6 7574else 7575 if test -n "$ac_ct_F77"; then 7576 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7577else 7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7579for as_dir in $PATH 7580do 7581 IFS=$as_save_IFS 7582 test -z "$as_dir" && as_dir=. 7583 for ac_exec_ext in '' $ac_executable_extensions; do 7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7585 ac_cv_prog_ac_ct_F77="$ac_prog" 7586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7587 break 2 7588 fi 7589done 7590done 7591IFS=$as_save_IFS 7592 7593fi 7594fi 7595ac_ct_F77=$ac_cv_prog_ac_ct_F77 7596if test -n "$ac_ct_F77"; then 7597 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7598echo "${ECHO_T}$ac_ct_F77" >&6; } 7599else 7600 { echo "$as_me:$LINENO: result: no" >&5 7601echo "${ECHO_T}no" >&6; } 7602fi 7603 7604 7605 test -n "$ac_ct_F77" && break 7606done 7607 7608 if test "x$ac_ct_F77" = x; then 7609 F77="" 7610 else 7611 case $cross_compiling:$ac_tool_warned in 7612yes:) 7613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7614whose name does not start with the host triplet. If you think this 7615configuration is useful to you, please write to autoconf@gnu.org." >&5 7616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7617whose name does not start with the host triplet. If you think this 7618configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7619ac_tool_warned=yes ;; 7620esac 7621 F77=$ac_ct_F77 7622 fi 7623fi 7624 7625 7626# Provide some information about the compiler. 7627echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7628ac_compiler=`set X $ac_compile; echo $2` 7629{ (ac_try="$ac_compiler --version >&5" 7630case "(($ac_try" in 7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7632 *) ac_try_echo=$ac_try;; 7633esac 7634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7635 (eval "$ac_compiler --version >&5") 2>&5 7636 ac_status=$? 7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7638 (exit $ac_status); } 7639{ (ac_try="$ac_compiler -v >&5" 7640case "(($ac_try" in 7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7642 *) ac_try_echo=$ac_try;; 7643esac 7644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7645 (eval "$ac_compiler -v >&5") 2>&5 7646 ac_status=$? 7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 (exit $ac_status); } 7649{ (ac_try="$ac_compiler -V >&5" 7650case "(($ac_try" in 7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7652 *) ac_try_echo=$ac_try;; 7653esac 7654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7655 (eval "$ac_compiler -V >&5") 2>&5 7656 ac_status=$? 7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7658 (exit $ac_status); } 7659rm -f a.out 7660 7661# If we don't use `.F' as extension, the preprocessor is not run on the 7662# input file. (Note that this only needs to work for GNU compilers.) 7663ac_save_ext=$ac_ext 7664ac_ext=F 7665{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7666echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 7667if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7668 echo $ECHO_N "(cached) $ECHO_C" >&6 7669else 7670 cat >conftest.$ac_ext <<_ACEOF 7671 program main 7672#ifndef __GNUC__ 7673 choke me 7674#endif 7675 7676 end 7677_ACEOF 7678rm -f conftest.$ac_objext 7679if { (ac_try="$ac_compile" 7680case "(($ac_try" in 7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7682 *) ac_try_echo=$ac_try;; 7683esac 7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7685 (eval "$ac_compile") 2>conftest.er1 7686 ac_status=$? 7687 grep -v '^ *+' conftest.er1 >conftest.err 7688 rm -f conftest.er1 7689 cat conftest.err >&5 7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7691 (exit $ac_status); } && { 7692 test -z "$ac_f77_werror_flag" || 7693 test ! -s conftest.err 7694 } && test -s conftest.$ac_objext; then 7695 ac_compiler_gnu=yes 7696else 7697 echo "$as_me: failed program was:" >&5 7698sed 's/^/| /' conftest.$ac_ext >&5 7699 7700 ac_compiler_gnu=no 7701fi 7702 7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7704ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7705 7706fi 7707{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7708echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 7709ac_ext=$ac_save_ext 7710ac_test_FFLAGS=${FFLAGS+set} 7711ac_save_FFLAGS=$FFLAGS 7712FFLAGS= 7713{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7714echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 7715if test "${ac_cv_prog_f77_g+set}" = set; then 7716 echo $ECHO_N "(cached) $ECHO_C" >&6 7717else 7718 FFLAGS=-g 7719cat >conftest.$ac_ext <<_ACEOF 7720 program main 7721 7722 end 7723_ACEOF 7724rm -f conftest.$ac_objext 7725if { (ac_try="$ac_compile" 7726case "(($ac_try" in 7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7728 *) ac_try_echo=$ac_try;; 7729esac 7730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7731 (eval "$ac_compile") 2>conftest.er1 7732 ac_status=$? 7733 grep -v '^ *+' conftest.er1 >conftest.err 7734 rm -f conftest.er1 7735 cat conftest.err >&5 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); } && { 7738 test -z "$ac_f77_werror_flag" || 7739 test ! -s conftest.err 7740 } && test -s conftest.$ac_objext; then 7741 ac_cv_prog_f77_g=yes 7742else 7743 echo "$as_me: failed program was:" >&5 7744sed 's/^/| /' conftest.$ac_ext >&5 7745 7746 ac_cv_prog_f77_g=no 7747fi 7748 7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7750 7751fi 7752{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7753echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 7754if test "$ac_test_FFLAGS" = set; then 7755 FFLAGS=$ac_save_FFLAGS 7756elif test $ac_cv_prog_f77_g = yes; then 7757 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7758 FFLAGS="-g -O2" 7759 else 7760 FFLAGS="-g" 7761 fi 7762else 7763 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7764 FFLAGS="-O2" 7765 else 7766 FFLAGS= 7767 fi 7768fi 7769 7770G77=`test $ac_compiler_gnu = yes && echo yes` 7771ac_ext=c 7772ac_cpp='$CPP $CPPFLAGS' 7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7775ac_compiler_gnu=$ac_cv_c_compiler_gnu 7776 7777 7778 7779# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7780 7781# find the maximum length of command line arguments 7782{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7783echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 7784if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7785 echo $ECHO_N "(cached) $ECHO_C" >&6 7786else 7787 i=0 7788 teststring="ABCD" 7789 7790 case $build_os in 7791 msdosdjgpp*) 7792 # On DJGPP, this test can blow up pretty badly due to problems in libc 7793 # (any single argument exceeding 2000 bytes causes a buffer overrun 7794 # during glob expansion). Even if it were fixed, the result of this 7795 # check would be larger than it should be. 7796 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7797 ;; 7798 7799 gnu*) 7800 # Under GNU Hurd, this test is not required because there is 7801 # no limit to the length of command line arguments. 7802 # Libtool will interpret -1 as no limit whatsoever 7803 lt_cv_sys_max_cmd_len=-1; 7804 ;; 7805 7806 cygwin* | mingw*) 7807 # On Win9x/ME, this test blows up -- it succeeds, but takes 7808 # about 5 minutes as the teststring grows exponentially. 7809 # Worse, since 9x/ME are not pre-emptively multitasking, 7810 # you end up with a "frozen" computer, even though with patience 7811 # the test eventually succeeds (with a max line length of 256k). 7812 # Instead, let's just punt: use the minimum linelength reported by 7813 # all of the supported platforms: 8192 (on NT/2K/XP). 7814 lt_cv_sys_max_cmd_len=8192; 7815 ;; 7816 7817 amigaos*) 7818 # On AmigaOS with pdksh, this test takes hours, literally. 7819 # So we just punt and use a minimum line length of 8192. 7820 lt_cv_sys_max_cmd_len=8192; 7821 ;; 7822 7823 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7824 # This has been around since 386BSD, at least. Likely further. 7825 if test -x /sbin/sysctl; then 7826 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7827 elif test -x /usr/sbin/sysctl; then 7828 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7829 else 7830 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7831 fi 7832 # And add a safety zone 7833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7835 ;; 7836 7837 interix*) 7838 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7839 lt_cv_sys_max_cmd_len=196608 7840 ;; 7841 7842 osf*) 7843 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7844 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7845 # nice to cause kernel panics so lets avoid the loop below. 7846 # First set a reasonable default. 7847 lt_cv_sys_max_cmd_len=16384 7848 # 7849 if test -x /sbin/sysconfig; then 7850 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7851 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7852 esac 7853 fi 7854 ;; 7855 sco3.2v5*) 7856 lt_cv_sys_max_cmd_len=102400 7857 ;; 7858 sysv5* | sco5v6* | sysv4.2uw2*) 7859 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7860 if test -n "$kargmax"; then 7861 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7862 else 7863 lt_cv_sys_max_cmd_len=32768 7864 fi 7865 ;; 7866 *) 7867 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7868 if test -n "$lt_cv_sys_max_cmd_len"; then 7869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7871 else 7872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7873 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7874 = "XX$teststring") >/dev/null 2>&1 && 7875 new_result=`expr "X$teststring" : ".*" 2>&1` && 7876 lt_cv_sys_max_cmd_len=$new_result && 7877 test $i != 17 # 1/2 MB should be enough 7878 do 7879 i=`expr $i + 1` 7880 teststring=$teststring$teststring 7881 done 7882 teststring= 7883 # Add a significant safety factor because C++ compilers can tack on massive 7884 # amounts of additional arguments before passing them to the linker. 7885 # It appears as though 1/2 is a usable value. 7886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7887 fi 7888 ;; 7889 esac 7890 7891fi 7892 7893if test -n $lt_cv_sys_max_cmd_len ; then 7894 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7895echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 7896else 7897 { echo "$as_me:$LINENO: result: none" >&5 7898echo "${ECHO_T}none" >&6; } 7899fi 7900 7901 7902 7903 7904 7905# Check for command to grab the raw symbol name followed by C symbol from nm. 7906{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7907echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 7908if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7909 echo $ECHO_N "(cached) $ECHO_C" >&6 7910else 7911 7912# These are sane defaults that work on at least a few old systems. 7913# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7914 7915# Character class describing NM global symbol codes. 7916symcode='[BCDEGRST]' 7917 7918# Regexp to match symbols that can be accessed directly from C. 7919sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7920 7921# Transform an extracted symbol line into a proper C declaration 7922lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7923 7924# Transform an extracted symbol line into symbol name and symbol address 7925lt_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'" 7926 7927# Define system-specific variables. 7928case $host_os in 7929aix*) 7930 symcode='[BCDT]' 7931 ;; 7932cygwin* | mingw* | pw32*) 7933 symcode='[ABCDGISTW]' 7934 ;; 7935hpux*) # Its linker distinguishes data from code symbols 7936 if test "$host_cpu" = ia64; then 7937 symcode='[ABCDEGRST]' 7938 fi 7939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7940 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'" 7941 ;; 7942linux* | k*bsd*-gnu) 7943 if test "$host_cpu" = ia64; then 7944 symcode='[ABCDGIRSTW]' 7945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7946 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'" 7947 fi 7948 ;; 7949irix* | nonstopux*) 7950 symcode='[BCDEGRST]' 7951 ;; 7952osf*) 7953 symcode='[BCDEGQRST]' 7954 ;; 7955solaris*) 7956 symcode='[BDRT]' 7957 ;; 7958sco3.2v5*) 7959 symcode='[DT]' 7960 ;; 7961sysv4.2uw2*) 7962 symcode='[DT]' 7963 ;; 7964sysv5* | sco5v6* | unixware* | OpenUNIX*) 7965 symcode='[ABDT]' 7966 ;; 7967sysv4) 7968 symcode='[DFNSTU]' 7969 ;; 7970esac 7971 7972# Handle CRLF in mingw tool chain 7973opt_cr= 7974case $build_os in 7975mingw*) 7976 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7977 ;; 7978esac 7979 7980# If we're using GNU nm, then use its standard symbol codes. 7981case `$NM -V 2>&1` in 7982*GNU* | *'with BFD'*) 7983 symcode='[ABCDGIRSTW]' ;; 7984esac 7985 7986# Try without a prefix undercore, then with it. 7987for ac_symprfx in "" "_"; do 7988 7989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7990 symxfrm="\\1 $ac_symprfx\\2 \\2" 7991 7992 # Write the raw and C identifiers. 7993 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7994 7995 # Check to see that the pipe works correctly. 7996 pipe_works=no 7997 7998 rm -f conftest* 7999 cat > conftest.$ac_ext <<EOF 8000#ifdef __cplusplus 8001extern "C" { 8002#endif 8003char nm_test_var; 8004void nm_test_func(){} 8005#ifdef __cplusplus 8006} 8007#endif 8008int main(){nm_test_var='a';nm_test_func();return(0);} 8009EOF 8010 8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8012 (eval $ac_compile) 2>&5 8013 ac_status=$? 8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8015 (exit $ac_status); }; then 8016 # Now try to grab the symbols. 8017 nlist=conftest.nm 8018 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 8019 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 8020 ac_status=$? 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8022 (exit $ac_status); } && test -s "$nlist"; then 8023 # Try sorting and uniquifying the output. 8024 if sort "$nlist" | uniq > "$nlist"T; then 8025 mv -f "$nlist"T "$nlist" 8026 else 8027 rm -f "$nlist"T 8028 fi 8029 8030 # Make sure that we snagged all the symbols we need. 8031 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8032 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8033 cat <<EOF > conftest.$ac_ext 8034#ifdef __cplusplus 8035extern "C" { 8036#endif 8037 8038EOF 8039 # Now generate the symbol file. 8040 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8041 8042 cat <<EOF >> conftest.$ac_ext 8043#if defined (__STDC__) && __STDC__ 8044# define lt_ptr_t void * 8045#else 8046# define lt_ptr_t char * 8047# define const 8048#endif 8049 8050/* The mapping between symbol names and symbols. */ 8051const struct { 8052 const char *name; 8053 lt_ptr_t address; 8054} 8055lt_preloaded_symbols[] = 8056{ 8057EOF 8058 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8059 cat <<\EOF >> conftest.$ac_ext 8060 {0, (lt_ptr_t) 0} 8061}; 8062 8063#ifdef __cplusplus 8064} 8065#endif 8066EOF 8067 # Now try linking the two files. 8068 mv conftest.$ac_objext conftstm.$ac_objext 8069 lt_save_LIBS="$LIBS" 8070 lt_save_CFLAGS="$CFLAGS" 8071 LIBS="conftstm.$ac_objext" 8072 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8074 (eval $ac_link) 2>&5 8075 ac_status=$? 8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8077 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8078 pipe_works=yes 8079 fi 8080 LIBS="$lt_save_LIBS" 8081 CFLAGS="$lt_save_CFLAGS" 8082 else 8083 echo "cannot find nm_test_func in $nlist" >&5 8084 fi 8085 else 8086 echo "cannot find nm_test_var in $nlist" >&5 8087 fi 8088 else 8089 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8090 fi 8091 else 8092 echo "$progname: failed program was:" >&5 8093 cat conftest.$ac_ext >&5 8094 fi 8095 rm -f conftest* conftst* 8096 8097 # Do not use the global_symbol_pipe unless it works. 8098 if test "$pipe_works" = yes; then 8099 break 8100 else 8101 lt_cv_sys_global_symbol_pipe= 8102 fi 8103done 8104 8105fi 8106 8107if test -z "$lt_cv_sys_global_symbol_pipe"; then 8108 lt_cv_sys_global_symbol_to_cdecl= 8109fi 8110if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8111 { echo "$as_me:$LINENO: result: failed" >&5 8112echo "${ECHO_T}failed" >&6; } 8113else 8114 { echo "$as_me:$LINENO: result: ok" >&5 8115echo "${ECHO_T}ok" >&6; } 8116fi 8117 8118{ echo "$as_me:$LINENO: checking for objdir" >&5 8119echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8120if test "${lt_cv_objdir+set}" = set; then 8121 echo $ECHO_N "(cached) $ECHO_C" >&6 8122else 8123 rm -f .libs 2>/dev/null 8124mkdir .libs 2>/dev/null 8125if test -d .libs; then 8126 lt_cv_objdir=.libs 8127else 8128 # MS-DOS does not allow filenames that begin with a dot. 8129 lt_cv_objdir=_libs 8130fi 8131rmdir .libs 2>/dev/null 8132fi 8133{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8134echo "${ECHO_T}$lt_cv_objdir" >&6; } 8135objdir=$lt_cv_objdir 8136 8137 8138 8139 8140 8141case $host_os in 8142aix3*) 8143 # AIX sometimes has problems with the GCC collect2 program. For some 8144 # reason, if we set the COLLECT_NAMES environment variable, the problems 8145 # vanish in a puff of smoke. 8146 if test "X${COLLECT_NAMES+set}" != Xset; then 8147 COLLECT_NAMES= 8148 export COLLECT_NAMES 8149 fi 8150 ;; 8151esac 8152 8153# Sed substitution that helps us do robust quoting. It backslashifies 8154# metacharacters that are still active within double-quoted strings. 8155Xsed='sed -e 1s/^X//' 8156sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8157 8158# Same as above, but do not quote variable references. 8159double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8160 8161# Sed substitution to delay expansion of an escaped shell variable in a 8162# double_quote_subst'ed string. 8163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8164 8165# Sed substitution to avoid accidental globbing in evaled expressions 8166no_glob_subst='s/\*/\\\*/g' 8167 8168# Constants: 8169rm="rm -f" 8170 8171# Global variables: 8172default_ofile=libtool 8173can_build_shared=yes 8174 8175# All known linkers require a `.a' archive for static linking (except MSVC, 8176# which needs '.lib'). 8177libext=a 8178ltmain="$ac_aux_dir/ltmain.sh" 8179ofile="$default_ofile" 8180with_gnu_ld="$lt_cv_prog_gnu_ld" 8181 8182if test -n "$ac_tool_prefix"; then 8183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8184set dummy ${ac_tool_prefix}ar; ac_word=$2 8185{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8187if test "${ac_cv_prog_AR+set}" = set; then 8188 echo $ECHO_N "(cached) $ECHO_C" >&6 8189else 8190 if test -n "$AR"; then 8191 ac_cv_prog_AR="$AR" # Let the user override the test. 8192else 8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8194for as_dir in $PATH 8195do 8196 IFS=$as_save_IFS 8197 test -z "$as_dir" && as_dir=. 8198 for ac_exec_ext in '' $ac_executable_extensions; do 8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8200 ac_cv_prog_AR="${ac_tool_prefix}ar" 8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8202 break 2 8203 fi 8204done 8205done 8206IFS=$as_save_IFS 8207 8208fi 8209fi 8210AR=$ac_cv_prog_AR 8211if test -n "$AR"; then 8212 { echo "$as_me:$LINENO: result: $AR" >&5 8213echo "${ECHO_T}$AR" >&6; } 8214else 8215 { echo "$as_me:$LINENO: result: no" >&5 8216echo "${ECHO_T}no" >&6; } 8217fi 8218 8219 8220fi 8221if test -z "$ac_cv_prog_AR"; then 8222 ac_ct_AR=$AR 8223 # Extract the first word of "ar", so it can be a program name with args. 8224set dummy ar; ac_word=$2 8225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8227if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8228 echo $ECHO_N "(cached) $ECHO_C" >&6 8229else 8230 if test -n "$ac_ct_AR"; then 8231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8240 ac_cv_prog_ac_ct_AR="ar" 8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250ac_ct_AR=$ac_cv_prog_ac_ct_AR 8251if test -n "$ac_ct_AR"; then 8252 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8253echo "${ECHO_T}$ac_ct_AR" >&6; } 8254else 8255 { echo "$as_me:$LINENO: result: no" >&5 8256echo "${ECHO_T}no" >&6; } 8257fi 8258 8259 if test "x$ac_ct_AR" = x; then 8260 AR="false" 8261 else 8262 case $cross_compiling:$ac_tool_warned in 8263yes:) 8264{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8265whose name does not start with the host triplet. If you think this 8266configuration is useful to you, please write to autoconf@gnu.org." >&5 8267echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8268whose name does not start with the host triplet. If you think this 8269configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8270ac_tool_warned=yes ;; 8271esac 8272 AR=$ac_ct_AR 8273 fi 8274else 8275 AR="$ac_cv_prog_AR" 8276fi 8277 8278if test -n "$ac_tool_prefix"; then 8279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8280set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8281{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8283if test "${ac_cv_prog_RANLIB+set}" = set; then 8284 echo $ECHO_N "(cached) $ECHO_C" >&6 8285else 8286 if test -n "$RANLIB"; then 8287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8288else 8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8290for as_dir in $PATH 8291do 8292 IFS=$as_save_IFS 8293 test -z "$as_dir" && as_dir=. 8294 for ac_exec_ext in '' $ac_executable_extensions; do 8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8298 break 2 8299 fi 8300done 8301done 8302IFS=$as_save_IFS 8303 8304fi 8305fi 8306RANLIB=$ac_cv_prog_RANLIB 8307if test -n "$RANLIB"; then 8308 { echo "$as_me:$LINENO: result: $RANLIB" >&5 8309echo "${ECHO_T}$RANLIB" >&6; } 8310else 8311 { echo "$as_me:$LINENO: result: no" >&5 8312echo "${ECHO_T}no" >&6; } 8313fi 8314 8315 8316fi 8317if test -z "$ac_cv_prog_RANLIB"; then 8318 ac_ct_RANLIB=$RANLIB 8319 # Extract the first word of "ranlib", so it can be a program name with args. 8320set dummy ranlib; ac_word=$2 8321{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8324 echo $ECHO_N "(cached) $ECHO_C" >&6 8325else 8326 if test -n "$ac_ct_RANLIB"; then 8327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8328else 8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330for as_dir in $PATH 8331do 8332 IFS=$as_save_IFS 8333 test -z "$as_dir" && as_dir=. 8334 for ac_exec_ext in '' $ac_executable_extensions; do 8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8336 ac_cv_prog_ac_ct_RANLIB="ranlib" 8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8338 break 2 8339 fi 8340done 8341done 8342IFS=$as_save_IFS 8343 8344fi 8345fi 8346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8347if test -n "$ac_ct_RANLIB"; then 8348 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8349echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 8350else 8351 { echo "$as_me:$LINENO: result: no" >&5 8352echo "${ECHO_T}no" >&6; } 8353fi 8354 8355 if test "x$ac_ct_RANLIB" = x; then 8356 RANLIB=":" 8357 else 8358 case $cross_compiling:$ac_tool_warned in 8359yes:) 8360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8361whose name does not start with the host triplet. If you think this 8362configuration is useful to you, please write to autoconf@gnu.org." >&5 8363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8364whose name does not start with the host triplet. If you think this 8365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8366ac_tool_warned=yes ;; 8367esac 8368 RANLIB=$ac_ct_RANLIB 8369 fi 8370else 8371 RANLIB="$ac_cv_prog_RANLIB" 8372fi 8373 8374if test -n "$ac_tool_prefix"; then 8375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8376set dummy ${ac_tool_prefix}strip; ac_word=$2 8377{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8379if test "${ac_cv_prog_STRIP+set}" = set; then 8380 echo $ECHO_N "(cached) $ECHO_C" >&6 8381else 8382 if test -n "$STRIP"; then 8383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8384else 8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8386for as_dir in $PATH 8387do 8388 IFS=$as_save_IFS 8389 test -z "$as_dir" && as_dir=. 8390 for ac_exec_ext in '' $ac_executable_extensions; do 8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8392 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8394 break 2 8395 fi 8396done 8397done 8398IFS=$as_save_IFS 8399 8400fi 8401fi 8402STRIP=$ac_cv_prog_STRIP 8403if test -n "$STRIP"; then 8404 { echo "$as_me:$LINENO: result: $STRIP" >&5 8405echo "${ECHO_T}$STRIP" >&6; } 8406else 8407 { echo "$as_me:$LINENO: result: no" >&5 8408echo "${ECHO_T}no" >&6; } 8409fi 8410 8411 8412fi 8413if test -z "$ac_cv_prog_STRIP"; then 8414 ac_ct_STRIP=$STRIP 8415 # Extract the first word of "strip", so it can be a program name with args. 8416set dummy strip; ac_word=$2 8417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8419if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8420 echo $ECHO_N "(cached) $ECHO_C" >&6 8421else 8422 if test -n "$ac_ct_STRIP"; then 8423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8424else 8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8426for as_dir in $PATH 8427do 8428 IFS=$as_save_IFS 8429 test -z "$as_dir" && as_dir=. 8430 for ac_exec_ext in '' $ac_executable_extensions; do 8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8432 ac_cv_prog_ac_ct_STRIP="strip" 8433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8434 break 2 8435 fi 8436done 8437done 8438IFS=$as_save_IFS 8439 8440fi 8441fi 8442ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8443if test -n "$ac_ct_STRIP"; then 8444 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8445echo "${ECHO_T}$ac_ct_STRIP" >&6; } 8446else 8447 { echo "$as_me:$LINENO: result: no" >&5 8448echo "${ECHO_T}no" >&6; } 8449fi 8450 8451 if test "x$ac_ct_STRIP" = x; then 8452 STRIP=":" 8453 else 8454 case $cross_compiling:$ac_tool_warned in 8455yes:) 8456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8457whose name does not start with the host triplet. If you think this 8458configuration is useful to you, please write to autoconf@gnu.org." >&5 8459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8460whose name does not start with the host triplet. If you think this 8461configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8462ac_tool_warned=yes ;; 8463esac 8464 STRIP=$ac_ct_STRIP 8465 fi 8466else 8467 STRIP="$ac_cv_prog_STRIP" 8468fi 8469 8470 8471old_CC="$CC" 8472old_CFLAGS="$CFLAGS" 8473 8474# Set sane defaults for various variables 8475test -z "$AR" && AR=ar 8476test -z "$AR_FLAGS" && AR_FLAGS=cru 8477test -z "$AS" && AS=as 8478test -z "$CC" && CC=cc 8479test -z "$LTCC" && LTCC=$CC 8480test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8481test -z "$DLLTOOL" && DLLTOOL=dlltool 8482test -z "$LD" && LD=ld 8483test -z "$LN_S" && LN_S="ln -s" 8484test -z "$MAGIC_CMD" && MAGIC_CMD=file 8485test -z "$NM" && NM=nm 8486test -z "$SED" && SED=sed 8487test -z "$OBJDUMP" && OBJDUMP=objdump 8488test -z "$RANLIB" && RANLIB=: 8489test -z "$STRIP" && STRIP=: 8490test -z "$ac_objext" && ac_objext=o 8491 8492# Determine commands to create old-style static archives. 8493old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8494old_postinstall_cmds='chmod 644 $oldlib' 8495old_postuninstall_cmds= 8496 8497if test -n "$RANLIB"; then 8498 case $host_os in 8499 openbsd*) 8500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8501 ;; 8502 *) 8503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8504 ;; 8505 esac 8506 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8507fi 8508 8509for cc_temp in $compiler""; do 8510 case $cc_temp in 8511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8513 \-*) ;; 8514 *) break;; 8515 esac 8516done 8517cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8518 8519 8520# Only perform the check for file, if the check method requires it 8521case $deplibs_check_method in 8522file_magic*) 8523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8524 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8525echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8526if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8527 echo $ECHO_N "(cached) $ECHO_C" >&6 8528else 8529 case $MAGIC_CMD in 8530[\\/*] | ?:[\\/]*) 8531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8532 ;; 8533*) 8534 lt_save_MAGIC_CMD="$MAGIC_CMD" 8535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8537 for ac_dir in $ac_dummy; do 8538 IFS="$lt_save_ifs" 8539 test -z "$ac_dir" && ac_dir=. 8540 if test -f $ac_dir/${ac_tool_prefix}file; then 8541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8542 if test -n "$file_magic_test_file"; then 8543 case $deplibs_check_method in 8544 "file_magic "*) 8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8548 $EGREP "$file_magic_regex" > /dev/null; then 8549 : 8550 else 8551 cat <<EOF 1>&2 8552 8553*** Warning: the command libtool uses to detect shared libraries, 8554*** $file_magic_cmd, produces output that libtool cannot recognize. 8555*** The result is that libtool may fail to recognize shared libraries 8556*** as such. This will affect the creation of libtool libraries that 8557*** depend on shared libraries, but programs linked with such libtool 8558*** libraries will work regardless of this problem. Nevertheless, you 8559*** may want to report the problem to your system manager and/or to 8560*** bug-libtool@gnu.org 8561 8562EOF 8563 fi ;; 8564 esac 8565 fi 8566 break 8567 fi 8568 done 8569 IFS="$lt_save_ifs" 8570 MAGIC_CMD="$lt_save_MAGIC_CMD" 8571 ;; 8572esac 8573fi 8574 8575MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8576if test -n "$MAGIC_CMD"; then 8577 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8578echo "${ECHO_T}$MAGIC_CMD" >&6; } 8579else 8580 { echo "$as_me:$LINENO: result: no" >&5 8581echo "${ECHO_T}no" >&6; } 8582fi 8583 8584if test -z "$lt_cv_path_MAGIC_CMD"; then 8585 if test -n "$ac_tool_prefix"; then 8586 { echo "$as_me:$LINENO: checking for file" >&5 8587echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8588if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8589 echo $ECHO_N "(cached) $ECHO_C" >&6 8590else 8591 case $MAGIC_CMD in 8592[\\/*] | ?:[\\/]*) 8593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8594 ;; 8595*) 8596 lt_save_MAGIC_CMD="$MAGIC_CMD" 8597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8599 for ac_dir in $ac_dummy; do 8600 IFS="$lt_save_ifs" 8601 test -z "$ac_dir" && ac_dir=. 8602 if test -f $ac_dir/file; then 8603 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8604 if test -n "$file_magic_test_file"; then 8605 case $deplibs_check_method in 8606 "file_magic "*) 8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8610 $EGREP "$file_magic_regex" > /dev/null; then 8611 : 8612 else 8613 cat <<EOF 1>&2 8614 8615*** Warning: the command libtool uses to detect shared libraries, 8616*** $file_magic_cmd, produces output that libtool cannot recognize. 8617*** The result is that libtool may fail to recognize shared libraries 8618*** as such. This will affect the creation of libtool libraries that 8619*** depend on shared libraries, but programs linked with such libtool 8620*** libraries will work regardless of this problem. Nevertheless, you 8621*** may want to report the problem to your system manager and/or to 8622*** bug-libtool@gnu.org 8623 8624EOF 8625 fi ;; 8626 esac 8627 fi 8628 break 8629 fi 8630 done 8631 IFS="$lt_save_ifs" 8632 MAGIC_CMD="$lt_save_MAGIC_CMD" 8633 ;; 8634esac 8635fi 8636 8637MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8638if test -n "$MAGIC_CMD"; then 8639 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8640echo "${ECHO_T}$MAGIC_CMD" >&6; } 8641else 8642 { echo "$as_me:$LINENO: result: no" >&5 8643echo "${ECHO_T}no" >&6; } 8644fi 8645 8646 else 8647 MAGIC_CMD=: 8648 fi 8649fi 8650 8651 fi 8652 ;; 8653esac 8654 8655enable_dlopen=no 8656enable_win32_dll=no 8657 8658# Check whether --enable-libtool-lock was given. 8659if test "${enable_libtool_lock+set}" = set; then 8660 enableval=$enable_libtool_lock; 8661fi 8662 8663test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8664 8665 8666# Check whether --with-pic was given. 8667if test "${with_pic+set}" = set; then 8668 withval=$with_pic; pic_mode="$withval" 8669else 8670 pic_mode=default 8671fi 8672 8673test -z "$pic_mode" && pic_mode=default 8674 8675# Use C for the default configuration in the libtool script 8676tagname= 8677lt_save_CC="$CC" 8678ac_ext=c 8679ac_cpp='$CPP $CPPFLAGS' 8680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8682ac_compiler_gnu=$ac_cv_c_compiler_gnu 8683 8684 8685# Source file extension for C test sources. 8686ac_ext=c 8687 8688# Object file extension for compiled C test sources. 8689objext=o 8690objext=$objext 8691 8692# Code to be used in simple compile tests 8693lt_simple_compile_test_code="int some_variable = 0;" 8694 8695# Code to be used in simple link tests 8696lt_simple_link_test_code='int main(){return(0);}' 8697 8698 8699# If no C compiler was specified, use CC. 8700LTCC=${LTCC-"$CC"} 8701 8702# If no C compiler flags were specified, use CFLAGS. 8703LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8704 8705# Allow CC to be a program name with arguments. 8706compiler=$CC 8707 8708 8709# save warnings/boilerplate of simple test code 8710ac_outfile=conftest.$ac_objext 8711echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8712eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8713_lt_compiler_boilerplate=`cat conftest.err` 8714$rm conftest* 8715 8716ac_outfile=conftest.$ac_objext 8717echo "$lt_simple_link_test_code" >conftest.$ac_ext 8718eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8719_lt_linker_boilerplate=`cat conftest.err` 8720$rm conftest* 8721 8722 8723 8724lt_prog_compiler_no_builtin_flag= 8725 8726if test "$GCC" = yes; then 8727 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8728 8729 8730{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8731echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8732if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 lt_cv_prog_compiler_rtti_exceptions=no 8736 ac_outfile=conftest.$ac_objext 8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8738 lt_compiler_flag="-fno-rtti -fno-exceptions" 8739 # Insert the option either (1) after the last *FLAGS variable, or 8740 # (2) before a word containing "conftest.", or (3) at the end. 8741 # Note that $ac_compile itself does not contain backslashes and begins 8742 # with a dollar sign (not a hyphen), so the echo should work correctly. 8743 # The option is referenced via a variable to avoid confusing sed. 8744 lt_compile=`echo "$ac_compile" | $SED \ 8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8747 -e 's:$: $lt_compiler_flag:'` 8748 (eval echo "\"\$as_me:8748: $lt_compile\"" >&5) 8749 (eval "$lt_compile" 2>conftest.err) 8750 ac_status=$? 8751 cat conftest.err >&5 8752 echo "$as_me:8752: \$? = $ac_status" >&5 8753 if (exit $ac_status) && test -s "$ac_outfile"; then 8754 # The compiler can only warn and ignore the option if not recognized 8755 # So say no if there are warnings other than the usual output. 8756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8759 lt_cv_prog_compiler_rtti_exceptions=yes 8760 fi 8761 fi 8762 $rm conftest* 8763 8764fi 8765{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8766echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8767 8768if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8769 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8770else 8771 : 8772fi 8773 8774fi 8775 8776lt_prog_compiler_wl= 8777lt_prog_compiler_pic= 8778lt_prog_compiler_static= 8779 8780{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8781echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8782 8783 if test "$GCC" = yes; then 8784 lt_prog_compiler_wl='-Wl,' 8785 lt_prog_compiler_static='-static' 8786 8787 case $host_os in 8788 aix*) 8789 # All AIX code is PIC. 8790 if test "$host_cpu" = ia64; then 8791 # AIX 5 now supports IA64 processor 8792 lt_prog_compiler_static='-Bstatic' 8793 fi 8794 ;; 8795 8796 amigaos*) 8797 # FIXME: we need at least 68020 code to build shared libraries, but 8798 # adding the `-m68020' flag to GCC prevents building anything better, 8799 # like `-m68040'. 8800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8801 ;; 8802 8803 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8804 # PIC is the default for these OSes. 8805 ;; 8806 8807 mingw* | cygwin* | pw32* | os2*) 8808 # This hack is so that the source file can tell whether it is being 8809 # built for inclusion in a dll (and should export symbols for example). 8810 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8811 # (--disable-auto-import) libraries 8812 lt_prog_compiler_pic='-DDLL_EXPORT' 8813 ;; 8814 8815 darwin* | rhapsody*) 8816 # PIC is the default on this platform 8817 # Common symbols not allowed in MH_DYLIB files 8818 lt_prog_compiler_pic='-fno-common' 8819 ;; 8820 8821 interix[3-9]*) 8822 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8823 # Instead, we relocate shared libraries at runtime. 8824 ;; 8825 8826 msdosdjgpp*) 8827 # Just because we use GCC doesn't mean we suddenly get shared libraries 8828 # on systems that don't support them. 8829 lt_prog_compiler_can_build_shared=no 8830 enable_shared=no 8831 ;; 8832 8833 sysv4*MP*) 8834 if test -d /usr/nec; then 8835 lt_prog_compiler_pic=-Kconform_pic 8836 fi 8837 ;; 8838 8839 hpux*) 8840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8841 # not for PA HP-UX. 8842 case $host_cpu in 8843 hppa*64*|ia64*) 8844 # +Z the default 8845 ;; 8846 *) 8847 lt_prog_compiler_pic='-fPIC' 8848 ;; 8849 esac 8850 ;; 8851 8852 *) 8853 lt_prog_compiler_pic='-fPIC' 8854 ;; 8855 esac 8856 else 8857 # PORTME Check for flag to pass linker flags through the system compiler. 8858 case $host_os in 8859 aix*) 8860 lt_prog_compiler_wl='-Wl,' 8861 if test "$host_cpu" = ia64; then 8862 # AIX 5 now supports IA64 processor 8863 lt_prog_compiler_static='-Bstatic' 8864 else 8865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8866 fi 8867 ;; 8868 darwin*) 8869 # PIC is the default on this platform 8870 # Common symbols not allowed in MH_DYLIB files 8871 case $cc_basename in 8872 xlc*) 8873 lt_prog_compiler_pic='-qnocommon' 8874 lt_prog_compiler_wl='-Wl,' 8875 ;; 8876 esac 8877 ;; 8878 8879 mingw* | cygwin* | pw32* | os2*) 8880 # This hack is so that the source file can tell whether it is being 8881 # built for inclusion in a dll (and should export symbols for example). 8882 lt_prog_compiler_pic='-DDLL_EXPORT' 8883 ;; 8884 8885 hpux9* | hpux10* | hpux11*) 8886 lt_prog_compiler_wl='-Wl,' 8887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8888 # not for PA HP-UX. 8889 case $host_cpu in 8890 hppa*64*|ia64*) 8891 # +Z the default 8892 ;; 8893 *) 8894 lt_prog_compiler_pic='+Z' 8895 ;; 8896 esac 8897 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8898 lt_prog_compiler_static='${wl}-a ${wl}archive' 8899 ;; 8900 8901 irix5* | irix6* | nonstopux*) 8902 lt_prog_compiler_wl='-Wl,' 8903 # PIC (with -KPIC) is the default. 8904 lt_prog_compiler_static='-non_shared' 8905 ;; 8906 8907 newsos6) 8908 lt_prog_compiler_pic='-KPIC' 8909 lt_prog_compiler_static='-Bstatic' 8910 ;; 8911 8912 linux* | k*bsd*-gnu) 8913 case $cc_basename in 8914 icc* | ecc*) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-KPIC' 8917 lt_prog_compiler_static='-static' 8918 ;; 8919 pgcc* | pgf77* | pgf90* | pgf95*) 8920 # Portland Group compilers (*not* the Pentium gcc compiler, 8921 # which looks to be a dead project) 8922 lt_prog_compiler_wl='-Wl,' 8923 lt_prog_compiler_pic='-fpic' 8924 lt_prog_compiler_static='-Bstatic' 8925 ;; 8926 ccc*) 8927 lt_prog_compiler_wl='-Wl,' 8928 # All Alpha code is PIC. 8929 lt_prog_compiler_static='-non_shared' 8930 ;; 8931 *) 8932 case `$CC -V 2>&1 | sed 5q` in 8933 *Sun\ C*) 8934 # Sun C 5.9 8935 lt_prog_compiler_pic='-KPIC' 8936 lt_prog_compiler_static='-Bstatic' 8937 lt_prog_compiler_wl='-Wl,' 8938 ;; 8939 *Sun\ F*) 8940 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8941 lt_prog_compiler_pic='-KPIC' 8942 lt_prog_compiler_static='-Bstatic' 8943 lt_prog_compiler_wl='' 8944 ;; 8945 esac 8946 ;; 8947 esac 8948 ;; 8949 8950 osf3* | osf4* | osf5*) 8951 lt_prog_compiler_wl='-Wl,' 8952 # All OSF/1 code is PIC. 8953 lt_prog_compiler_static='-non_shared' 8954 ;; 8955 8956 rdos*) 8957 lt_prog_compiler_static='-non_shared' 8958 ;; 8959 8960 solaris*) 8961 lt_prog_compiler_pic='-KPIC' 8962 lt_prog_compiler_static='-Bstatic' 8963 case $cc_basename in 8964 f77* | f90* | f95*) 8965 lt_prog_compiler_wl='-Qoption ld ';; 8966 *) 8967 lt_prog_compiler_wl='-Wl,';; 8968 esac 8969 ;; 8970 8971 sunos4*) 8972 lt_prog_compiler_wl='-Qoption ld ' 8973 lt_prog_compiler_pic='-PIC' 8974 lt_prog_compiler_static='-Bstatic' 8975 ;; 8976 8977 sysv4 | sysv4.2uw2* | sysv4.3*) 8978 lt_prog_compiler_wl='-Wl,' 8979 lt_prog_compiler_pic='-KPIC' 8980 lt_prog_compiler_static='-Bstatic' 8981 ;; 8982 8983 sysv4*MP*) 8984 if test -d /usr/nec ;then 8985 lt_prog_compiler_pic='-Kconform_pic' 8986 lt_prog_compiler_static='-Bstatic' 8987 fi 8988 ;; 8989 8990 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8991 lt_prog_compiler_wl='-Wl,' 8992 lt_prog_compiler_pic='-KPIC' 8993 lt_prog_compiler_static='-Bstatic' 8994 ;; 8995 8996 unicos*) 8997 lt_prog_compiler_wl='-Wl,' 8998 lt_prog_compiler_can_build_shared=no 8999 ;; 9000 9001 uts4*) 9002 lt_prog_compiler_pic='-pic' 9003 lt_prog_compiler_static='-Bstatic' 9004 ;; 9005 9006 *) 9007 lt_prog_compiler_can_build_shared=no 9008 ;; 9009 esac 9010 fi 9011 9012{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9013echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 9014 9015# 9016# Check to make sure the PIC flag actually works. 9017# 9018if test -n "$lt_prog_compiler_pic"; then 9019 9020{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9021echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 9022if test "${lt_prog_compiler_pic_works+set}" = set; then 9023 echo $ECHO_N "(cached) $ECHO_C" >&6 9024else 9025 lt_prog_compiler_pic_works=no 9026 ac_outfile=conftest.$ac_objext 9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9028 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9029 # Insert the option either (1) after the last *FLAGS variable, or 9030 # (2) before a word containing "conftest.", or (3) at the end. 9031 # Note that $ac_compile itself does not contain backslashes and begins 9032 # with a dollar sign (not a hyphen), so the echo should work correctly. 9033 # The option is referenced via a variable to avoid confusing sed. 9034 lt_compile=`echo "$ac_compile" | $SED \ 9035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9037 -e 's:$: $lt_compiler_flag:'` 9038 (eval echo "\"\$as_me:9038: $lt_compile\"" >&5) 9039 (eval "$lt_compile" 2>conftest.err) 9040 ac_status=$? 9041 cat conftest.err >&5 9042 echo "$as_me:9042: \$? = $ac_status" >&5 9043 if (exit $ac_status) && test -s "$ac_outfile"; then 9044 # The compiler can only warn and ignore the option if not recognized 9045 # So say no if there are warnings other than the usual output. 9046 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9049 lt_prog_compiler_pic_works=yes 9050 fi 9051 fi 9052 $rm conftest* 9053 9054fi 9055{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9056echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 9057 9058if test x"$lt_prog_compiler_pic_works" = xyes; then 9059 case $lt_prog_compiler_pic in 9060 "" | " "*) ;; 9061 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9062 esac 9063else 9064 lt_prog_compiler_pic= 9065 lt_prog_compiler_can_build_shared=no 9066fi 9067 9068fi 9069case $host_os in 9070 # For platforms which do not support PIC, -DPIC is meaningless: 9071 *djgpp*) 9072 lt_prog_compiler_pic= 9073 ;; 9074 *) 9075 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9076 ;; 9077esac 9078 9079# 9080# Check to make sure the static flag actually works. 9081# 9082wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9083{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9084echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9085if test "${lt_prog_compiler_static_works+set}" = set; then 9086 echo $ECHO_N "(cached) $ECHO_C" >&6 9087else 9088 lt_prog_compiler_static_works=no 9089 save_LDFLAGS="$LDFLAGS" 9090 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9091 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9093 # The linker can only warn and ignore the option if not recognized 9094 # So say no if there are warnings 9095 if test -s conftest.err; then 9096 # Append any errors to the config.log. 9097 cat conftest.err 1>&5 9098 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9100 if diff conftest.exp conftest.er2 >/dev/null; then 9101 lt_prog_compiler_static_works=yes 9102 fi 9103 else 9104 lt_prog_compiler_static_works=yes 9105 fi 9106 fi 9107 $rm conftest* 9108 LDFLAGS="$save_LDFLAGS" 9109 9110fi 9111{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9112echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 9113 9114if test x"$lt_prog_compiler_static_works" = xyes; then 9115 : 9116else 9117 lt_prog_compiler_static= 9118fi 9119 9120 9121{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9122echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9123if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9124 echo $ECHO_N "(cached) $ECHO_C" >&6 9125else 9126 lt_cv_prog_compiler_c_o=no 9127 $rm -r conftest 2>/dev/null 9128 mkdir conftest 9129 cd conftest 9130 mkdir out 9131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9132 9133 lt_compiler_flag="-o out/conftest2.$ac_objext" 9134 # Insert the option either (1) after the last *FLAGS variable, or 9135 # (2) before a word containing "conftest.", or (3) at the end. 9136 # Note that $ac_compile itself does not contain backslashes and begins 9137 # with a dollar sign (not a hyphen), so the echo should work correctly. 9138 lt_compile=`echo "$ac_compile" | $SED \ 9139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9141 -e 's:$: $lt_compiler_flag:'` 9142 (eval echo "\"\$as_me:9142: $lt_compile\"" >&5) 9143 (eval "$lt_compile" 2>out/conftest.err) 9144 ac_status=$? 9145 cat out/conftest.err >&5 9146 echo "$as_me:9146: \$? = $ac_status" >&5 9147 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9148 then 9149 # The compiler can only warn and ignore the option if not recognized 9150 # So say no if there are warnings 9151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9154 lt_cv_prog_compiler_c_o=yes 9155 fi 9156 fi 9157 chmod u+w . 2>&5 9158 $rm conftest* 9159 # SGI C++ compiler will create directory out/ii_files/ for 9160 # template instantiation 9161 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9162 $rm out/* && rmdir out 9163 cd .. 9164 rmdir conftest 9165 $rm conftest* 9166 9167fi 9168{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9169echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9170 9171 9172hard_links="nottested" 9173if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9174 # do not overwrite the value of need_locks provided by the user 9175 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9176echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9177 hard_links=yes 9178 $rm conftest* 9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9180 touch conftest.a 9181 ln conftest.a conftest.b 2>&5 || hard_links=no 9182 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9183 { echo "$as_me:$LINENO: result: $hard_links" >&5 9184echo "${ECHO_T}$hard_links" >&6; } 9185 if test "$hard_links" = no; then 9186 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9187echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9188 need_locks=warn 9189 fi 9190else 9191 need_locks=no 9192fi 9193 9194{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9195echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9196 9197 runpath_var= 9198 allow_undefined_flag= 9199 enable_shared_with_static_runtimes=no 9200 archive_cmds= 9201 archive_expsym_cmds= 9202 old_archive_From_new_cmds= 9203 old_archive_from_expsyms_cmds= 9204 export_dynamic_flag_spec= 9205 whole_archive_flag_spec= 9206 thread_safe_flag_spec= 9207 hardcode_libdir_flag_spec= 9208 hardcode_libdir_flag_spec_ld= 9209 hardcode_libdir_separator= 9210 hardcode_direct=no 9211 hardcode_minus_L=no 9212 hardcode_shlibpath_var=unsupported 9213 link_all_deplibs=unknown 9214 hardcode_automatic=no 9215 module_cmds= 9216 module_expsym_cmds= 9217 always_export_symbols=no 9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9219 # include_expsyms should be a list of space-separated symbols to be *always* 9220 # included in the symbol list 9221 include_expsyms= 9222 # exclude_expsyms can be an extended regexp of symbols to exclude 9223 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9224 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9225 # as well as any symbol that contains `d'. 9226 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9228 # platforms (ab)use it in PIC code, but their linkers get confused if 9229 # the symbol is explicitly referenced. Since portable code cannot 9230 # rely on this symbol name, it's probably fine to never include it in 9231 # preloaded symbol tables. 9232 extract_expsyms_cmds= 9233 # Just being paranoid about ensuring that cc_basename is set. 9234 for cc_temp in $compiler""; do 9235 case $cc_temp in 9236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9238 \-*) ;; 9239 *) break;; 9240 esac 9241done 9242cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9243 9244 case $host_os in 9245 cygwin* | mingw* | pw32*) 9246 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9247 # When not using gcc, we currently assume that we are using 9248 # Microsoft Visual C++. 9249 if test "$GCC" != yes; then 9250 with_gnu_ld=no 9251 fi 9252 ;; 9253 interix*) 9254 # we just hope/assume this is gcc and not c89 (= MSVC++) 9255 with_gnu_ld=yes 9256 ;; 9257 openbsd*) 9258 with_gnu_ld=no 9259 ;; 9260 esac 9261 9262 ld_shlibs=yes 9263 if test "$with_gnu_ld" = yes; then 9264 # If archive_cmds runs LD, not CC, wlarc should be empty 9265 wlarc='${wl}' 9266 9267 # Set some defaults for GNU ld with shared library support. These 9268 # are reset later if shared libraries are not supported. Putting them 9269 # here allows them to be overridden if necessary. 9270 runpath_var=LD_RUN_PATH 9271 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9272 export_dynamic_flag_spec='${wl}--export-dynamic' 9273 # ancient GNU ld didn't support --whole-archive et. al. 9274 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9276 else 9277 whole_archive_flag_spec= 9278 fi 9279 supports_anon_versioning=no 9280 case `$LD -v 2>/dev/null` in 9281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9284 *\ 2.11.*) ;; # other 2.11 versions 9285 *) supports_anon_versioning=yes ;; 9286 esac 9287 9288 # See if GNU ld supports shared libraries. 9289 case $host_os in 9290 aix3* | aix4* | aix5*) 9291 # On AIX/PPC, the GNU linker is very broken 9292 if test "$host_cpu" != ia64; then 9293 ld_shlibs=no 9294 cat <<EOF 1>&2 9295 9296*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9297*** to be unable to reliably create shared libraries on AIX. 9298*** Therefore, libtool is disabling shared libraries support. If you 9299*** really care for shared libraries, you may want to modify your PATH 9300*** so that a non-GNU linker is found, and then restart. 9301 9302EOF 9303 fi 9304 ;; 9305 9306 amigaos*) 9307 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)' 9308 hardcode_libdir_flag_spec='-L$libdir' 9309 hardcode_minus_L=yes 9310 9311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9312 # that the semantics of dynamic libraries on AmigaOS, at least up 9313 # to version 4, is to share data among multiple programs linked 9314 # with the same dynamic library. Since this doesn't match the 9315 # behavior of shared libraries on other platforms, we can't use 9316 # them. 9317 ld_shlibs=no 9318 ;; 9319 9320 beos*) 9321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9322 allow_undefined_flag=unsupported 9323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9324 # support --undefined. This deserves some investigation. FIXME 9325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9326 else 9327 ld_shlibs=no 9328 fi 9329 ;; 9330 9331 cygwin* | mingw* | pw32*) 9332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9333 # as there is no search path for DLLs. 9334 hardcode_libdir_flag_spec='-L$libdir' 9335 allow_undefined_flag=unsupported 9336 always_export_symbols=no 9337 enable_shared_with_static_runtimes=yes 9338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9339 9340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9342 # If the export-symbols file already is a .def file (1st line 9343 # is EXPORTS), use it as is; otherwise, prepend... 9344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9345 cp $export_symbols $output_objdir/$soname.def; 9346 else 9347 echo EXPORTS > $output_objdir/$soname.def; 9348 cat $export_symbols >> $output_objdir/$soname.def; 9349 fi~ 9350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9351 else 9352 ld_shlibs=no 9353 fi 9354 ;; 9355 9356 interix[3-9]*) 9357 hardcode_direct=no 9358 hardcode_shlibpath_var=no 9359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9360 export_dynamic_flag_spec='${wl}-E' 9361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9362 # Instead, shared libraries are loaded at an image base (0x10000000 by 9363 # default) and relocated if they conflict, which is a slow very memory 9364 # consuming and fragmenting process. To avoid this, we pick a random, 9365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9366 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9368 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' 9369 ;; 9370 9371 gnu* | linux* | k*bsd*-gnu) 9372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9373 tmp_addflag= 9374 case $cc_basename,$host_cpu in 9375 pgcc*) # Portland Group C compiler 9376 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' 9377 tmp_addflag=' $pic_flag' 9378 ;; 9379 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9380 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' 9381 tmp_addflag=' $pic_flag -Mnomain' ;; 9382 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9383 tmp_addflag=' -i_dynamic' ;; 9384 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9385 tmp_addflag=' -i_dynamic -nofor_main' ;; 9386 ifc* | ifort*) # Intel Fortran compiler 9387 tmp_addflag=' -nofor_main' ;; 9388 esac 9389 case `$CC -V 2>&1 | sed 5q` in 9390 *Sun\ C*) # Sun C 5.9 9391 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9392 tmp_sharedflag='-G' ;; 9393 *Sun\ F*) # Sun Fortran 8.3 9394 tmp_sharedflag='-G' ;; 9395 *) 9396 tmp_sharedflag='-shared' ;; 9397 esac 9398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9399 9400 if test $supports_anon_versioning = yes; then 9401 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9403 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9405 fi 9406 else 9407 ld_shlibs=no 9408 fi 9409 ;; 9410 9411 netbsd*) 9412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9414 wlarc= 9415 else 9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9418 fi 9419 ;; 9420 9421 solaris*) 9422 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9423 ld_shlibs=no 9424 cat <<EOF 1>&2 9425 9426*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9427*** create shared libraries on Solaris systems. Therefore, libtool 9428*** is disabling shared libraries support. We urge you to upgrade GNU 9429*** binutils to release 2.9.1 or newer. Another option is to modify 9430*** your PATH or compiler configuration so that the native linker is 9431*** used, and then restart. 9432 9433EOF 9434 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9437 else 9438 ld_shlibs=no 9439 fi 9440 ;; 9441 9442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9443 case `$LD -v 2>&1` in 9444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9445 ld_shlibs=no 9446 cat <<_LT_EOF 1>&2 9447 9448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9449*** reliably create shared libraries on SCO systems. Therefore, libtool 9450*** is disabling shared libraries support. We urge you to upgrade GNU 9451*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9452*** your PATH or compiler configuration so that the native linker is 9453*** used, and then restart. 9454 9455_LT_EOF 9456 ;; 9457 *) 9458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9459 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9462 else 9463 ld_shlibs=no 9464 fi 9465 ;; 9466 esac 9467 ;; 9468 9469 sunos4*) 9470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9471 wlarc= 9472 hardcode_direct=yes 9473 hardcode_shlibpath_var=no 9474 ;; 9475 9476 *) 9477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9480 else 9481 ld_shlibs=no 9482 fi 9483 ;; 9484 esac 9485 9486 if test "$ld_shlibs" = no; then 9487 runpath_var= 9488 hardcode_libdir_flag_spec= 9489 export_dynamic_flag_spec= 9490 whole_archive_flag_spec= 9491 fi 9492 else 9493 # PORTME fill in a description of your system's linker (not GNU ld) 9494 case $host_os in 9495 aix3*) 9496 allow_undefined_flag=unsupported 9497 always_export_symbols=yes 9498 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' 9499 # Note: this linker hardcodes the directories in LIBPATH if there 9500 # are no directories specified by -L. 9501 hardcode_minus_L=yes 9502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9503 # Neither direct hardcoding nor static linking is supported with a 9504 # broken collect2. 9505 hardcode_direct=unsupported 9506 fi 9507 ;; 9508 9509 aix4* | aix5*) 9510 if test "$host_cpu" = ia64; then 9511 # On IA64, the linker does run time linking by default, so we don't 9512 # have to do anything special. 9513 aix_use_runtimelinking=no 9514 exp_sym_flag='-Bexport' 9515 no_entry_flag="" 9516 else 9517 # If we're using GNU nm, then we don't want the "-C" option. 9518 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9519 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9520 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' 9521 else 9522 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' 9523 fi 9524 aix_use_runtimelinking=no 9525 9526 # Test if we are trying to use run time linking or normal 9527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9528 # need to do runtime linking. 9529 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9530 for ld_flag in $LDFLAGS; do 9531 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9532 aix_use_runtimelinking=yes 9533 break 9534 fi 9535 done 9536 ;; 9537 esac 9538 9539 exp_sym_flag='-bexport' 9540 no_entry_flag='-bnoentry' 9541 fi 9542 9543 # When large executables or shared objects are built, AIX ld can 9544 # have problems creating the table of contents. If linking a library 9545 # or program results in "error TOC overflow" add -mminimal-toc to 9546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9548 9549 archive_cmds='' 9550 hardcode_direct=yes 9551 hardcode_libdir_separator=':' 9552 link_all_deplibs=yes 9553 9554 if test "$GCC" = yes; then 9555 case $host_os in aix4.[012]|aix4.[012].*) 9556 # We only want to do this on AIX 4.2 and lower, the check 9557 # below for broken collect2 doesn't work under 4.3+ 9558 collect2name=`${CC} -print-prog-name=collect2` 9559 if test -f "$collect2name" && \ 9560 strings "$collect2name" | grep resolve_lib_name >/dev/null 9561 then 9562 # We have reworked collect2 9563 : 9564 else 9565 # We have old collect2 9566 hardcode_direct=unsupported 9567 # It fails to find uninstalled libraries when the uninstalled 9568 # path is not listed in the libpath. Setting hardcode_minus_L 9569 # to unsupported forces relinking 9570 hardcode_minus_L=yes 9571 hardcode_libdir_flag_spec='-L$libdir' 9572 hardcode_libdir_separator= 9573 fi 9574 ;; 9575 esac 9576 shared_flag='-shared' 9577 if test "$aix_use_runtimelinking" = yes; then 9578 shared_flag="$shared_flag "'${wl}-G' 9579 fi 9580 else 9581 # not using gcc 9582 if test "$host_cpu" = ia64; then 9583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9584 # chokes on -Wl,-G. The following line is correct: 9585 shared_flag='-G' 9586 else 9587 if test "$aix_use_runtimelinking" = yes; then 9588 shared_flag='${wl}-G' 9589 else 9590 shared_flag='${wl}-bM:SRE' 9591 fi 9592 fi 9593 fi 9594 9595 # It seems that -bexpall does not export symbols beginning with 9596 # underscore (_), so it is better to generate a list of symbols to export. 9597 always_export_symbols=yes 9598 if test "$aix_use_runtimelinking" = yes; then 9599 # Warning - without using the other runtime loading flags (-brtl), 9600 # -berok will link without error, but may produce a broken library. 9601 allow_undefined_flag='-berok' 9602 # Determine the default libpath from the value encoded in an empty executable. 9603 cat >conftest.$ac_ext <<_ACEOF 9604/* confdefs.h. */ 9605_ACEOF 9606cat confdefs.h >>conftest.$ac_ext 9607cat >>conftest.$ac_ext <<_ACEOF 9608/* end confdefs.h. */ 9609 9610int 9611main () 9612{ 9613 9614 ; 9615 return 0; 9616} 9617_ACEOF 9618rm -f conftest.$ac_objext conftest$ac_exeext 9619if { (ac_try="$ac_link" 9620case "(($ac_try" in 9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9622 *) ac_try_echo=$ac_try;; 9623esac 9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9625 (eval "$ac_link") 2>conftest.er1 9626 ac_status=$? 9627 grep -v '^ *+' conftest.er1 >conftest.err 9628 rm -f conftest.er1 9629 cat conftest.err >&5 9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9631 (exit $ac_status); } && { 9632 test -z "$ac_c_werror_flag" || 9633 test ! -s conftest.err 9634 } && test -s conftest$ac_exeext && 9635 $as_test_x conftest$ac_exeext; then 9636 9637lt_aix_libpath_sed=' 9638 /Import File Strings/,/^$/ { 9639 /^0/ { 9640 s/^0 *\(.*\)$/\1/ 9641 p 9642 } 9643 }' 9644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9645# Check for a 64-bit object if we didn't find anything. 9646if test -z "$aix_libpath"; then 9647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9648fi 9649else 9650 echo "$as_me: failed program was:" >&5 9651sed 's/^/| /' conftest.$ac_ext >&5 9652 9653 9654fi 9655 9656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9657 conftest$ac_exeext conftest.$ac_ext 9658if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9659 9660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9661 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" 9662 else 9663 if test "$host_cpu" = ia64; then 9664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9665 allow_undefined_flag="-z nodefs" 9666 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" 9667 else 9668 # Determine the default libpath from the value encoded in an empty executable. 9669 cat >conftest.$ac_ext <<_ACEOF 9670/* confdefs.h. */ 9671_ACEOF 9672cat confdefs.h >>conftest.$ac_ext 9673cat >>conftest.$ac_ext <<_ACEOF 9674/* end confdefs.h. */ 9675 9676int 9677main () 9678{ 9679 9680 ; 9681 return 0; 9682} 9683_ACEOF 9684rm -f conftest.$ac_objext conftest$ac_exeext 9685if { (ac_try="$ac_link" 9686case "(($ac_try" in 9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9688 *) ac_try_echo=$ac_try;; 9689esac 9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9691 (eval "$ac_link") 2>conftest.er1 9692 ac_status=$? 9693 grep -v '^ *+' conftest.er1 >conftest.err 9694 rm -f conftest.er1 9695 cat conftest.err >&5 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 (exit $ac_status); } && { 9698 test -z "$ac_c_werror_flag" || 9699 test ! -s conftest.err 9700 } && test -s conftest$ac_exeext && 9701 $as_test_x conftest$ac_exeext; then 9702 9703lt_aix_libpath_sed=' 9704 /Import File Strings/,/^$/ { 9705 /^0/ { 9706 s/^0 *\(.*\)$/\1/ 9707 p 9708 } 9709 }' 9710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9711# Check for a 64-bit object if we didn't find anything. 9712if test -z "$aix_libpath"; then 9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9714fi 9715else 9716 echo "$as_me: failed program was:" >&5 9717sed 's/^/| /' conftest.$ac_ext >&5 9718 9719 9720fi 9721 9722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9723 conftest$ac_exeext conftest.$ac_ext 9724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9725 9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9727 # Warning - without using the other run time loading flags, 9728 # -berok will link without error, but may produce a broken library. 9729 no_undefined_flag=' ${wl}-bernotok' 9730 allow_undefined_flag=' ${wl}-berok' 9731 # Exported symbols can be pulled into shared objects from archives 9732 whole_archive_flag_spec='$convenience' 9733 archive_cmds_need_lc=yes 9734 # This is similar to how AIX traditionally builds its shared libraries. 9735 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' 9736 fi 9737 fi 9738 ;; 9739 9740 amigaos*) 9741 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)' 9742 hardcode_libdir_flag_spec='-L$libdir' 9743 hardcode_minus_L=yes 9744 # see comment about different semantics on the GNU ld section 9745 ld_shlibs=no 9746 ;; 9747 9748 bsdi[45]*) 9749 export_dynamic_flag_spec=-rdynamic 9750 ;; 9751 9752 cygwin* | mingw* | pw32*) 9753 # When not using gcc, we currently assume that we are using 9754 # Microsoft Visual C++. 9755 # hardcode_libdir_flag_spec is actually meaningless, as there is 9756 # no search path for DLLs. 9757 hardcode_libdir_flag_spec=' ' 9758 allow_undefined_flag=unsupported 9759 # Tell ltmain to make .lib files, not .a files. 9760 libext=lib 9761 # Tell ltmain to make .dll files, not .so files. 9762 shrext_cmds=".dll" 9763 # FIXME: Setting linknames here is a bad hack. 9764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9765 # The linker will automatically build a .lib file if we build a DLL. 9766 old_archive_From_new_cmds='true' 9767 # FIXME: Should let the user specify the lib program. 9768 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9769 fix_srcfile_path='`cygpath -w "$srcfile"`' 9770 enable_shared_with_static_runtimes=yes 9771 ;; 9772 9773 darwin* | rhapsody*) 9774 case $host_os in 9775 rhapsody* | darwin1.[012]) 9776 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9777 ;; 9778 *) # Darwin 1.3 on 9779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9780 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9781 else 9782 case ${MACOSX_DEPLOYMENT_TARGET} in 9783 10.[012]) 9784 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9785 ;; 9786 10.*) 9787 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9788 ;; 9789 esac 9790 fi 9791 ;; 9792 esac 9793 archive_cmds_need_lc=no 9794 hardcode_direct=no 9795 hardcode_automatic=yes 9796 hardcode_shlibpath_var=unsupported 9797 whole_archive_flag_spec='' 9798 link_all_deplibs=yes 9799 if test "$GCC" = yes ; then 9800 output_verbose_link_cmd='echo' 9801 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9802 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9804 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}' 9805 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}' 9806 else 9807 case $cc_basename in 9808 xlc*) 9809 output_verbose_link_cmd='echo' 9810 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9811 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9813 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9814 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}' 9815 ;; 9816 *) 9817 ld_shlibs=no 9818 ;; 9819 esac 9820 fi 9821 ;; 9822 9823 dgux*) 9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9825 hardcode_libdir_flag_spec='-L$libdir' 9826 hardcode_shlibpath_var=no 9827 ;; 9828 9829 freebsd1*) 9830 ld_shlibs=no 9831 ;; 9832 9833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9834 # support. Future versions do this automatically, but an explicit c++rt0.o 9835 # does not break anything, and helps significantly (at the cost of a little 9836 # extra space). 9837 freebsd2.2*) 9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9839 hardcode_libdir_flag_spec='-R$libdir' 9840 hardcode_direct=yes 9841 hardcode_shlibpath_var=no 9842 ;; 9843 9844 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9845 freebsd2*) 9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9847 hardcode_direct=yes 9848 hardcode_minus_L=yes 9849 hardcode_shlibpath_var=no 9850 ;; 9851 9852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9853 freebsd* | dragonfly*) 9854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9855 hardcode_libdir_flag_spec='-R$libdir' 9856 hardcode_direct=yes 9857 hardcode_shlibpath_var=no 9858 ;; 9859 9860 hpux9*) 9861 if test "$GCC" = yes; then 9862 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' 9863 else 9864 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' 9865 fi 9866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9867 hardcode_libdir_separator=: 9868 hardcode_direct=yes 9869 9870 # hardcode_minus_L: Not really in the search PATH, 9871 # but as the default location of the library. 9872 hardcode_minus_L=yes 9873 export_dynamic_flag_spec='${wl}-E' 9874 ;; 9875 9876 hpux10*) 9877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9879 else 9880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9881 fi 9882 if test "$with_gnu_ld" = no; then 9883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9884 hardcode_libdir_separator=: 9885 9886 hardcode_direct=yes 9887 export_dynamic_flag_spec='${wl}-E' 9888 9889 # hardcode_minus_L: Not really in the search PATH, 9890 # but as the default location of the library. 9891 hardcode_minus_L=yes 9892 fi 9893 ;; 9894 9895 hpux11*) 9896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9897 case $host_cpu in 9898 hppa*64*) 9899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9900 ;; 9901 ia64*) 9902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9903 ;; 9904 *) 9905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9906 ;; 9907 esac 9908 else 9909 case $host_cpu in 9910 hppa*64*) 9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9912 ;; 9913 ia64*) 9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9915 ;; 9916 *) 9917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9918 ;; 9919 esac 9920 fi 9921 if test "$with_gnu_ld" = no; then 9922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9923 hardcode_libdir_separator=: 9924 9925 case $host_cpu in 9926 hppa*64*|ia64*) 9927 hardcode_libdir_flag_spec_ld='+b $libdir' 9928 hardcode_direct=no 9929 hardcode_shlibpath_var=no 9930 ;; 9931 *) 9932 hardcode_direct=yes 9933 export_dynamic_flag_spec='${wl}-E' 9934 9935 # hardcode_minus_L: Not really in the search PATH, 9936 # but as the default location of the library. 9937 hardcode_minus_L=yes 9938 ;; 9939 esac 9940 fi 9941 ;; 9942 9943 irix5* | irix6* | nonstopux*) 9944 if test "$GCC" = yes; then 9945 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' 9946 else 9947 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' 9948 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9949 fi 9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9951 hardcode_libdir_separator=: 9952 link_all_deplibs=yes 9953 ;; 9954 9955 netbsd*) 9956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9958 else 9959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9960 fi 9961 hardcode_libdir_flag_spec='-R$libdir' 9962 hardcode_direct=yes 9963 hardcode_shlibpath_var=no 9964 ;; 9965 9966 newsos6) 9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9968 hardcode_direct=yes 9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9970 hardcode_libdir_separator=: 9971 hardcode_shlibpath_var=no 9972 ;; 9973 9974 openbsd*) 9975 if test -f /usr/libexec/ld.so; then 9976 hardcode_direct=yes 9977 hardcode_shlibpath_var=no 9978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9982 export_dynamic_flag_spec='${wl}-E' 9983 else 9984 case $host_os in 9985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9987 hardcode_libdir_flag_spec='-R$libdir' 9988 ;; 9989 *) 9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9992 ;; 9993 esac 9994 fi 9995 else 9996 ld_shlibs=no 9997 fi 9998 ;; 9999 10000 os2*) 10001 hardcode_libdir_flag_spec='-L$libdir' 10002 hardcode_minus_L=yes 10003 allow_undefined_flag=unsupported 10004 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' 10005 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10006 ;; 10007 10008 osf3*) 10009 if test "$GCC" = yes; then 10010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10011 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' 10012 else 10013 allow_undefined_flag=' -expect_unresolved \*' 10014 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' 10015 fi 10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10017 hardcode_libdir_separator=: 10018 ;; 10019 10020 osf4* | osf5*) # as osf3* with the addition of -msym flag 10021 if test "$GCC" = yes; then 10022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10023 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' 10024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10025 else 10026 allow_undefined_flag=' -expect_unresolved \*' 10027 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' 10028 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10029 $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' 10030 10031 # Both c and cxx compiler support -rpath directly 10032 hardcode_libdir_flag_spec='-rpath $libdir' 10033 fi 10034 hardcode_libdir_separator=: 10035 ;; 10036 10037 solaris*) 10038 no_undefined_flag=' -z text' 10039 if test "$GCC" = yes; then 10040 wlarc='${wl}' 10041 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10043 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10044 else 10045 wlarc='' 10046 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10047 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10049 fi 10050 hardcode_libdir_flag_spec='-R$libdir' 10051 hardcode_shlibpath_var=no 10052 case $host_os in 10053 solaris2.[0-5] | solaris2.[0-5].*) ;; 10054 *) 10055 # The compiler driver will combine and reorder linker options, 10056 # but understands `-z linker_flag'. GCC discards it without `$wl', 10057 # but is careful enough not to reorder. 10058 # Supported since Solaris 2.6 (maybe 2.5.1?) 10059 if test "$GCC" = yes; then 10060 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10061 else 10062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10063 fi 10064 ;; 10065 esac 10066 link_all_deplibs=yes 10067 ;; 10068 10069 sunos4*) 10070 if test "x$host_vendor" = xsequent; then 10071 # Use $CC to link under sequent, because it throws in some extra .o 10072 # files that make .init and .fini sections work. 10073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10074 else 10075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10076 fi 10077 hardcode_libdir_flag_spec='-L$libdir' 10078 hardcode_direct=yes 10079 hardcode_minus_L=yes 10080 hardcode_shlibpath_var=no 10081 ;; 10082 10083 sysv4) 10084 case $host_vendor in 10085 sni) 10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10087 hardcode_direct=yes # is this really true??? 10088 ;; 10089 siemens) 10090 ## LD is ld it makes a PLAMLIB 10091 ## CC just makes a GrossModule. 10092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10093 reload_cmds='$CC -r -o $output$reload_objs' 10094 hardcode_direct=no 10095 ;; 10096 motorola) 10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10099 ;; 10100 esac 10101 runpath_var='LD_RUN_PATH' 10102 hardcode_shlibpath_var=no 10103 ;; 10104 10105 sysv4.3*) 10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10107 hardcode_shlibpath_var=no 10108 export_dynamic_flag_spec='-Bexport' 10109 ;; 10110 10111 sysv4*MP*) 10112 if test -d /usr/nec; then 10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10114 hardcode_shlibpath_var=no 10115 runpath_var=LD_RUN_PATH 10116 hardcode_runpath_var=yes 10117 ld_shlibs=yes 10118 fi 10119 ;; 10120 10121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10122 no_undefined_flag='${wl}-z,text' 10123 archive_cmds_need_lc=no 10124 hardcode_shlibpath_var=no 10125 runpath_var='LD_RUN_PATH' 10126 10127 if test "$GCC" = yes; then 10128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10130 else 10131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10133 fi 10134 ;; 10135 10136 sysv5* | sco3.2v5* | sco5v6*) 10137 # Note: We can NOT use -z defs as we might desire, because we do not 10138 # link with -lc, and that would cause any symbols used from libc to 10139 # always be unresolved, which means just about no library would 10140 # ever link correctly. If we're not using GNU ld we use -z text 10141 # though, which does catch some bad symbols but isn't as heavy-handed 10142 # as -z defs. 10143 no_undefined_flag='${wl}-z,text' 10144 allow_undefined_flag='${wl}-z,nodefs' 10145 archive_cmds_need_lc=no 10146 hardcode_shlibpath_var=no 10147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10148 hardcode_libdir_separator=':' 10149 link_all_deplibs=yes 10150 export_dynamic_flag_spec='${wl}-Bexport' 10151 runpath_var='LD_RUN_PATH' 10152 10153 if test "$GCC" = yes; then 10154 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 else 10157 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 fi 10160 ;; 10161 10162 uts4*) 10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10164 hardcode_libdir_flag_spec='-L$libdir' 10165 hardcode_shlibpath_var=no 10166 ;; 10167 10168 *) 10169 ld_shlibs=no 10170 ;; 10171 esac 10172 fi 10173 10174{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10175echo "${ECHO_T}$ld_shlibs" >&6; } 10176test "$ld_shlibs" = no && can_build_shared=no 10177 10178# 10179# Do we need to explicitly link libc? 10180# 10181case "x$archive_cmds_need_lc" in 10182x|xyes) 10183 # Assume -lc should be added 10184 archive_cmds_need_lc=yes 10185 10186 if test "$enable_shared" = yes && test "$GCC" = yes; then 10187 case $archive_cmds in 10188 *'~'*) 10189 # FIXME: we may have to deal with multi-command sequences. 10190 ;; 10191 '$CC '*) 10192 # Test whether the compiler implicitly links with -lc since on some 10193 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10194 # to ld, don't add -lc before -lgcc. 10195 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10197 $rm conftest* 10198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10199 10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10201 (eval $ac_compile) 2>&5 10202 ac_status=$? 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10204 (exit $ac_status); } 2>conftest.err; then 10205 soname=conftest 10206 lib=conftest 10207 libobjs=conftest.$ac_objext 10208 deplibs= 10209 wl=$lt_prog_compiler_wl 10210 pic_flag=$lt_prog_compiler_pic 10211 compiler_flags=-v 10212 linker_flags=-v 10213 verstring= 10214 output_objdir=. 10215 libname=conftest 10216 lt_save_allow_undefined_flag=$allow_undefined_flag 10217 allow_undefined_flag= 10218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10219 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10220 ac_status=$? 10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10222 (exit $ac_status); } 10223 then 10224 archive_cmds_need_lc=no 10225 else 10226 archive_cmds_need_lc=yes 10227 fi 10228 allow_undefined_flag=$lt_save_allow_undefined_flag 10229 else 10230 cat conftest.err 1>&5 10231 fi 10232 $rm conftest* 10233 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10234echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10235 ;; 10236 esac 10237 fi 10238 ;; 10239esac 10240 10241{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10242echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10243library_names_spec= 10244libname_spec='lib$name' 10245soname_spec= 10246shrext_cmds=".so" 10247postinstall_cmds= 10248postuninstall_cmds= 10249finish_cmds= 10250finish_eval= 10251shlibpath_var= 10252shlibpath_overrides_runpath=unknown 10253version_type=none 10254dynamic_linker="$host_os ld.so" 10255sys_lib_dlsearch_path_spec="/lib /usr/lib" 10256 10257if test "$GCC" = yes; then 10258 case $host_os in 10259 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10260 *) lt_awk_arg="/^libraries:/" ;; 10261 esac 10262 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10263 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 10264 # if the path contains ";" then we assume it to be the separator 10265 # otherwise default to the standard path separator (i.e. ":") - it is 10266 # assumed that no part of a normal pathname contains ";" but that should 10267 # okay in the real world where ";" in dirpaths is itself problematic. 10268 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10269 else 10270 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10271 fi 10272 # Ok, now we have the path, separated by spaces, we can step through it 10273 # and add multilib dir if necessary. 10274 lt_tmp_lt_search_path_spec= 10275 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10276 for lt_sys_path in $lt_search_path_spec; do 10277 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10279 else 10280 test -d "$lt_sys_path" && \ 10281 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10282 fi 10283 done 10284 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 10285BEGIN {RS=" "; FS="/|\n";} { 10286 lt_foo=""; 10287 lt_count=0; 10288 for (lt_i = NF; lt_i > 0; lt_i--) { 10289 if ($lt_i != "" && $lt_i != ".") { 10290 if ($lt_i == "..") { 10291 lt_count++; 10292 } else { 10293 if (lt_count == 0) { 10294 lt_foo="/" $lt_i lt_foo; 10295 } else { 10296 lt_count--; 10297 } 10298 } 10299 } 10300 } 10301 if (lt_foo != "") { lt_freq[lt_foo]++; } 10302 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10303}'` 10304 sys_lib_search_path_spec=`echo $lt_search_path_spec` 10305else 10306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10307fi 10308need_lib_prefix=unknown 10309hardcode_into_libs=no 10310 10311# when you set need_version to no, make sure it does not cause -set_version 10312# flags to be left without arguments 10313need_version=unknown 10314 10315case $host_os in 10316aix3*) 10317 version_type=linux 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10319 shlibpath_var=LIBPATH 10320 10321 # AIX 3 has no versioning support, so we append a major version to the name. 10322 soname_spec='${libname}${release}${shared_ext}$major' 10323 ;; 10324 10325aix4* | aix5*) 10326 version_type=linux 10327 need_lib_prefix=no 10328 need_version=no 10329 hardcode_into_libs=yes 10330 if test "$host_cpu" = ia64; then 10331 # AIX 5 supports IA64 10332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10333 shlibpath_var=LD_LIBRARY_PATH 10334 else 10335 # With GCC up to 2.95.x, collect2 would create an import file 10336 # for dependence libraries. The import file would start with 10337 # the line `#! .'. This would cause the generated library to 10338 # depend on `.', always an invalid library. This was fixed in 10339 # development snapshots of GCC prior to 3.0. 10340 case $host_os in 10341 aix4 | aix4.[01] | aix4.[01].*) 10342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10343 echo ' yes ' 10344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10345 : 10346 else 10347 can_build_shared=no 10348 fi 10349 ;; 10350 esac 10351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10352 # soname into executable. Probably we can add versioning support to 10353 # collect2, so additional links can be useful in future. 10354 if test "$aix_use_runtimelinking" = yes; then 10355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10356 # instead of lib<name>.a to let people know that these are not 10357 # typical AIX shared libraries. 10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10359 else 10360 # We preserve .a as extension for shared libraries through AIX4.2 10361 # and later when we are not doing run time linking. 10362 library_names_spec='${libname}${release}.a $libname.a' 10363 soname_spec='${libname}${release}${shared_ext}$major' 10364 fi 10365 shlibpath_var=LIBPATH 10366 fi 10367 ;; 10368 10369amigaos*) 10370 library_names_spec='$libname.ixlibrary $libname.a' 10371 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10372 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' 10373 ;; 10374 10375beos*) 10376 library_names_spec='${libname}${shared_ext}' 10377 dynamic_linker="$host_os ld.so" 10378 shlibpath_var=LIBRARY_PATH 10379 ;; 10380 10381bsdi[45]*) 10382 version_type=linux 10383 need_version=no 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10385 soname_spec='${libname}${release}${shared_ext}$major' 10386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10387 shlibpath_var=LD_LIBRARY_PATH 10388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10390 # the default ld.so.conf also contains /usr/contrib/lib and 10391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10392 # libtool to hard-code these into programs 10393 ;; 10394 10395cygwin* | mingw* | pw32*) 10396 version_type=windows 10397 shrext_cmds=".dll" 10398 need_version=no 10399 need_lib_prefix=no 10400 10401 case $GCC,$host_os in 10402 yes,cygwin* | yes,mingw* | yes,pw32*) 10403 library_names_spec='$libname.dll.a' 10404 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10405 postinstall_cmds='base_file=`basename \${file}`~ 10406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10407 dldir=$destdir/`dirname \$dlpath`~ 10408 test -d \$dldir || mkdir -p \$dldir~ 10409 $install_prog $dir/$dlname \$dldir/$dlname~ 10410 chmod a+x \$dldir/$dlname' 10411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10412 dlpath=$dir/\$dldll~ 10413 $rm \$dlpath' 10414 shlibpath_overrides_runpath=yes 10415 10416 case $host_os in 10417 cygwin*) 10418 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10421 ;; 10422 mingw*) 10423 # MinGW DLLs use traditional 'lib' prefix 10424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10427 # It is most probably a Windows format PATH printed by 10428 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10429 # path with ; separators, and with drive letters. We can handle the 10430 # drive letters (cygwin fileutils understands them), so leave them, 10431 # especially as we might pass files found there to a mingw objdump, 10432 # which wouldn't understand a cygwinified path. Ahh. 10433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10434 else 10435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10436 fi 10437 ;; 10438 pw32*) 10439 # pw32 DLLs use 'pw' prefix rather than 'lib' 10440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10441 ;; 10442 esac 10443 ;; 10444 10445 *) 10446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10447 ;; 10448 esac 10449 dynamic_linker='Win32 ld.exe' 10450 # FIXME: first we should search . and the directory the executable is in 10451 shlibpath_var=PATH 10452 ;; 10453 10454darwin* | rhapsody*) 10455 dynamic_linker="$host_os dyld" 10456 version_type=darwin 10457 need_lib_prefix=no 10458 need_version=no 10459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10460 soname_spec='${libname}${release}${major}$shared_ext' 10461 shlibpath_overrides_runpath=yes 10462 shlibpath_var=DYLD_LIBRARY_PATH 10463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10464 10465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10467 ;; 10468 10469dgux*) 10470 version_type=linux 10471 need_lib_prefix=no 10472 need_version=no 10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10474 soname_spec='${libname}${release}${shared_ext}$major' 10475 shlibpath_var=LD_LIBRARY_PATH 10476 ;; 10477 10478freebsd1*) 10479 dynamic_linker=no 10480 ;; 10481 10482freebsd* | dragonfly*) 10483 # DragonFly does not have aout. When/if they implement a new 10484 # versioning mechanism, adjust this. 10485 if test -x /usr/bin/objformat; then 10486 objformat=`/usr/bin/objformat` 10487 else 10488 case $host_os in 10489 freebsd[123]*) objformat=aout ;; 10490 *) objformat=elf ;; 10491 esac 10492 fi 10493 version_type=freebsd-$objformat 10494 case $version_type in 10495 freebsd-elf*) 10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10497 need_version=no 10498 need_lib_prefix=no 10499 ;; 10500 freebsd-*) 10501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10502 need_version=yes 10503 ;; 10504 esac 10505 shlibpath_var=LD_LIBRARY_PATH 10506 case $host_os in 10507 freebsd2*) 10508 shlibpath_overrides_runpath=yes 10509 ;; 10510 freebsd3.[01]* | freebsdelf3.[01]*) 10511 shlibpath_overrides_runpath=yes 10512 hardcode_into_libs=yes 10513 ;; 10514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10516 shlibpath_overrides_runpath=no 10517 hardcode_into_libs=yes 10518 ;; 10519 *) # from 4.6 on, and DragonFly 10520 shlibpath_overrides_runpath=yes 10521 hardcode_into_libs=yes 10522 ;; 10523 esac 10524 ;; 10525 10526gnu*) 10527 version_type=linux 10528 need_lib_prefix=no 10529 need_version=no 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10531 soname_spec='${libname}${release}${shared_ext}$major' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 hardcode_into_libs=yes 10534 ;; 10535 10536hpux9* | hpux10* | hpux11*) 10537 # Give a soname corresponding to the major version so that dld.sl refuses to 10538 # link against other versions. 10539 version_type=sunos 10540 need_lib_prefix=no 10541 need_version=no 10542 case $host_cpu in 10543 ia64*) 10544 shrext_cmds='.so' 10545 hardcode_into_libs=yes 10546 dynamic_linker="$host_os dld.so" 10547 shlibpath_var=LD_LIBRARY_PATH 10548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10550 soname_spec='${libname}${release}${shared_ext}$major' 10551 if test "X$HPUX_IA64_MODE" = X32; then 10552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10553 else 10554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10555 fi 10556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10557 ;; 10558 hppa*64*) 10559 shrext_cmds='.sl' 10560 hardcode_into_libs=yes 10561 dynamic_linker="$host_os dld.sl" 10562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10568 ;; 10569 *) 10570 shrext_cmds='.sl' 10571 dynamic_linker="$host_os dld.sl" 10572 shlibpath_var=SHLIB_PATH 10573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10575 soname_spec='${libname}${release}${shared_ext}$major' 10576 ;; 10577 esac 10578 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10579 postinstall_cmds='chmod 555 $lib' 10580 ;; 10581 10582interix[3-9]*) 10583 version_type=linux 10584 need_lib_prefix=no 10585 need_version=no 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10587 soname_spec='${libname}${release}${shared_ext}$major' 10588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 shlibpath_overrides_runpath=no 10591 hardcode_into_libs=yes 10592 ;; 10593 10594irix5* | irix6* | nonstopux*) 10595 case $host_os in 10596 nonstopux*) version_type=nonstopux ;; 10597 *) 10598 if test "$lt_cv_prog_gnu_ld" = yes; then 10599 version_type=linux 10600 else 10601 version_type=irix 10602 fi ;; 10603 esac 10604 need_lib_prefix=no 10605 need_version=no 10606 soname_spec='${libname}${release}${shared_ext}$major' 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10608 case $host_os in 10609 irix5* | nonstopux*) 10610 libsuff= shlibsuff= 10611 ;; 10612 *) 10613 case $LD in # libtool.m4 will add one of these switches to LD 10614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10615 libsuff= shlibsuff= libmagic=32-bit;; 10616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10617 libsuff=32 shlibsuff=N32 libmagic=N32;; 10618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10619 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10620 *) libsuff= shlibsuff= libmagic=never-match;; 10621 esac 10622 ;; 10623 esac 10624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10625 shlibpath_overrides_runpath=no 10626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10628 hardcode_into_libs=yes 10629 ;; 10630 10631# No shared lib support for Linux oldld, aout, or coff. 10632linux*oldld* | linux*aout* | linux*coff*) 10633 dynamic_linker=no 10634 ;; 10635 10636# This must be Linux ELF. 10637linux* | k*bsd*-gnu) 10638 version_type=linux 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10644 shlibpath_var=LD_LIBRARY_PATH 10645 shlibpath_overrides_runpath=no 10646 # This implies no fast_install, which is unacceptable. 10647 # Some rework will be needed to allow for fast_install 10648 # before this can be enabled. 10649 hardcode_into_libs=yes 10650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10652 10653 # Append ld.so.conf contents to the search path 10654 if test -f /etc/ld.so.conf; then 10655 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10656 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10657 fi 10658 10659 # We used to test for /lib/ld.so.1 and disable shared libraries on 10660 # powerpc, because MkLinux only supported shared libraries with the 10661 # GNU dynamic linker. Since this was broken with cross compilers, 10662 # most powerpc-linux boxes support dynamic linking these days and 10663 # people can always --disable-shared, the test was removed, and we 10664 # assume the GNU/Linux dynamic linker is in use. 10665 dynamic_linker='GNU/Linux ld.so' 10666 ;; 10667 10668netbsd*) 10669 version_type=sunos 10670 need_lib_prefix=no 10671 need_version=no 10672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10675 dynamic_linker='NetBSD (a.out) ld.so' 10676 else 10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10678 soname_spec='${libname}${release}${shared_ext}$major' 10679 dynamic_linker='NetBSD ld.elf_so' 10680 fi 10681 shlibpath_var=LD_LIBRARY_PATH 10682 shlibpath_overrides_runpath=yes 10683 hardcode_into_libs=yes 10684 ;; 10685 10686newsos6) 10687 version_type=linux 10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10689 shlibpath_var=LD_LIBRARY_PATH 10690 shlibpath_overrides_runpath=yes 10691 ;; 10692 10693nto-qnx*) 10694 version_type=linux 10695 need_lib_prefix=no 10696 need_version=no 10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 shlibpath_var=LD_LIBRARY_PATH 10700 shlibpath_overrides_runpath=yes 10701 ;; 10702 10703openbsd*) 10704 version_type=sunos 10705 sys_lib_dlsearch_path_spec="/usr/lib" 10706 need_lib_prefix=no 10707 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10708 case $host_os in 10709 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10710 *) need_version=no ;; 10711 esac 10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10714 shlibpath_var=LD_LIBRARY_PATH 10715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10716 case $host_os in 10717 openbsd2.[89] | openbsd2.[89].*) 10718 shlibpath_overrides_runpath=no 10719 ;; 10720 *) 10721 shlibpath_overrides_runpath=yes 10722 ;; 10723 esac 10724 else 10725 shlibpath_overrides_runpath=yes 10726 fi 10727 ;; 10728 10729os2*) 10730 libname_spec='$name' 10731 shrext_cmds=".dll" 10732 need_lib_prefix=no 10733 library_names_spec='$libname${shared_ext} $libname.a' 10734 dynamic_linker='OS/2 ld.exe' 10735 shlibpath_var=LIBPATH 10736 ;; 10737 10738osf3* | osf4* | osf5*) 10739 version_type=osf 10740 need_lib_prefix=no 10741 need_version=no 10742 soname_spec='${libname}${release}${shared_ext}$major' 10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10744 shlibpath_var=LD_LIBRARY_PATH 10745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10747 ;; 10748 10749rdos*) 10750 dynamic_linker=no 10751 ;; 10752 10753solaris*) 10754 version_type=linux 10755 need_lib_prefix=no 10756 need_version=no 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 shlibpath_overrides_runpath=yes 10761 hardcode_into_libs=yes 10762 # ldd complains unless libraries are executable 10763 postinstall_cmds='chmod +x $lib' 10764 ;; 10765 10766sunos4*) 10767 version_type=sunos 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10769 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10770 shlibpath_var=LD_LIBRARY_PATH 10771 shlibpath_overrides_runpath=yes 10772 if test "$with_gnu_ld" = yes; then 10773 need_lib_prefix=no 10774 fi 10775 need_version=yes 10776 ;; 10777 10778sysv4 | sysv4.3*) 10779 version_type=linux 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10781 soname_spec='${libname}${release}${shared_ext}$major' 10782 shlibpath_var=LD_LIBRARY_PATH 10783 case $host_vendor in 10784 sni) 10785 shlibpath_overrides_runpath=no 10786 need_lib_prefix=no 10787 export_dynamic_flag_spec='${wl}-Blargedynsym' 10788 runpath_var=LD_RUN_PATH 10789 ;; 10790 siemens) 10791 need_lib_prefix=no 10792 ;; 10793 motorola) 10794 need_lib_prefix=no 10795 need_version=no 10796 shlibpath_overrides_runpath=no 10797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10798 ;; 10799 esac 10800 ;; 10801 10802sysv4*MP*) 10803 if test -d /usr/nec ;then 10804 version_type=linux 10805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10806 soname_spec='$libname${shared_ext}.$major' 10807 shlibpath_var=LD_LIBRARY_PATH 10808 fi 10809 ;; 10810 10811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10812 version_type=freebsd-elf 10813 need_lib_prefix=no 10814 need_version=no 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 shlibpath_var=LD_LIBRARY_PATH 10818 hardcode_into_libs=yes 10819 if test "$with_gnu_ld" = yes; then 10820 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10821 shlibpath_overrides_runpath=no 10822 else 10823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10824 shlibpath_overrides_runpath=yes 10825 case $host_os in 10826 sco3.2v5*) 10827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10828 ;; 10829 esac 10830 fi 10831 sys_lib_dlsearch_path_spec='/usr/lib' 10832 ;; 10833 10834uts4*) 10835 version_type=linux 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10837 soname_spec='${libname}${release}${shared_ext}$major' 10838 shlibpath_var=LD_LIBRARY_PATH 10839 ;; 10840 10841*) 10842 dynamic_linker=no 10843 ;; 10844esac 10845{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10846echo "${ECHO_T}$dynamic_linker" >&6; } 10847test "$dynamic_linker" = no && can_build_shared=no 10848 10849variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10850if test "$GCC" = yes; then 10851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10852fi 10853 10854{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10855echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10856hardcode_action= 10857if test -n "$hardcode_libdir_flag_spec" || \ 10858 test -n "$runpath_var" || \ 10859 test "X$hardcode_automatic" = "Xyes" ; then 10860 10861 # We can hardcode non-existant directories. 10862 if test "$hardcode_direct" != no && 10863 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10864 # have to relink, otherwise we might link with an installed library 10865 # when we should be linking with a yet-to-be-installed one 10866 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10867 test "$hardcode_minus_L" != no; then 10868 # Linking always hardcodes the temporary library directory. 10869 hardcode_action=relink 10870 else 10871 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10872 hardcode_action=immediate 10873 fi 10874else 10875 # We cannot hardcode anything, or else we can only hardcode existing 10876 # directories. 10877 hardcode_action=unsupported 10878fi 10879{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10880echo "${ECHO_T}$hardcode_action" >&6; } 10881 10882if test "$hardcode_action" = relink; then 10883 # Fast installation is not supported 10884 enable_fast_install=no 10885elif test "$shlibpath_overrides_runpath" = yes || 10886 test "$enable_shared" = no; then 10887 # Fast installation is not necessary 10888 enable_fast_install=needless 10889fi 10890 10891striplib= 10892old_striplib= 10893{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10894echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10895if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10897 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10898 { echo "$as_me:$LINENO: result: yes" >&5 10899echo "${ECHO_T}yes" >&6; } 10900else 10901# FIXME - insert some real tests, host_os isn't really good enough 10902 case $host_os in 10903 darwin*) 10904 if test -n "$STRIP" ; then 10905 striplib="$STRIP -x" 10906 old_striplib="$STRIP -S" 10907 { echo "$as_me:$LINENO: result: yes" >&5 10908echo "${ECHO_T}yes" >&6; } 10909 else 10910 { echo "$as_me:$LINENO: result: no" >&5 10911echo "${ECHO_T}no" >&6; } 10912fi 10913 ;; 10914 *) 10915 { echo "$as_me:$LINENO: result: no" >&5 10916echo "${ECHO_T}no" >&6; } 10917 ;; 10918 esac 10919fi 10920 10921if test "x$enable_dlopen" != xyes; then 10922 enable_dlopen=unknown 10923 enable_dlopen_self=unknown 10924 enable_dlopen_self_static=unknown 10925else 10926 lt_cv_dlopen=no 10927 lt_cv_dlopen_libs= 10928 10929 case $host_os in 10930 beos*) 10931 lt_cv_dlopen="load_add_on" 10932 lt_cv_dlopen_libs= 10933 lt_cv_dlopen_self=yes 10934 ;; 10935 10936 mingw* | pw32*) 10937 lt_cv_dlopen="LoadLibrary" 10938 lt_cv_dlopen_libs= 10939 ;; 10940 10941 cygwin*) 10942 lt_cv_dlopen="dlopen" 10943 lt_cv_dlopen_libs= 10944 ;; 10945 10946 darwin*) 10947 # if libdl is installed we need to link against it 10948 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10950if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10951 echo $ECHO_N "(cached) $ECHO_C" >&6 10952else 10953 ac_check_lib_save_LIBS=$LIBS 10954LIBS="-ldl $LIBS" 10955cat >conftest.$ac_ext <<_ACEOF 10956/* confdefs.h. */ 10957_ACEOF 10958cat confdefs.h >>conftest.$ac_ext 10959cat >>conftest.$ac_ext <<_ACEOF 10960/* end confdefs.h. */ 10961 10962/* Override any GCC internal prototype to avoid an error. 10963 Use char because int might match the return type of a GCC 10964 builtin and then its argument prototype would still apply. */ 10965#ifdef __cplusplus 10966extern "C" 10967#endif 10968char dlopen (); 10969int 10970main () 10971{ 10972return dlopen (); 10973 ; 10974 return 0; 10975} 10976_ACEOF 10977rm -f conftest.$ac_objext conftest$ac_exeext 10978if { (ac_try="$ac_link" 10979case "(($ac_try" in 10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10981 *) ac_try_echo=$ac_try;; 10982esac 10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10984 (eval "$ac_link") 2>conftest.er1 10985 ac_status=$? 10986 grep -v '^ *+' conftest.er1 >conftest.err 10987 rm -f conftest.er1 10988 cat conftest.err >&5 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); } && { 10991 test -z "$ac_c_werror_flag" || 10992 test ! -s conftest.err 10993 } && test -s conftest$ac_exeext && 10994 $as_test_x conftest$ac_exeext; then 10995 ac_cv_lib_dl_dlopen=yes 10996else 10997 echo "$as_me: failed program was:" >&5 10998sed 's/^/| /' conftest.$ac_ext >&5 10999 11000 ac_cv_lib_dl_dlopen=no 11001fi 11002 11003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11004 conftest$ac_exeext conftest.$ac_ext 11005LIBS=$ac_check_lib_save_LIBS 11006fi 11007{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11008echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11009if test $ac_cv_lib_dl_dlopen = yes; then 11010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11011else 11012 11013 lt_cv_dlopen="dyld" 11014 lt_cv_dlopen_libs= 11015 lt_cv_dlopen_self=yes 11016 11017fi 11018 11019 ;; 11020 11021 *) 11022 { echo "$as_me:$LINENO: checking for shl_load" >&5 11023echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11024if test "${ac_cv_func_shl_load+set}" = set; then 11025 echo $ECHO_N "(cached) $ECHO_C" >&6 11026else 11027 cat >conftest.$ac_ext <<_ACEOF 11028/* confdefs.h. */ 11029_ACEOF 11030cat confdefs.h >>conftest.$ac_ext 11031cat >>conftest.$ac_ext <<_ACEOF 11032/* end confdefs.h. */ 11033/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11035#define shl_load innocuous_shl_load 11036 11037/* System header to define __stub macros and hopefully few prototypes, 11038 which can conflict with char shl_load (); below. 11039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11040 <limits.h> exists even on freestanding compilers. */ 11041 11042#ifdef __STDC__ 11043# include <limits.h> 11044#else 11045# include <assert.h> 11046#endif 11047 11048#undef shl_load 11049 11050/* Override any GCC internal prototype to avoid an error. 11051 Use char because int might match the return type of a GCC 11052 builtin and then its argument prototype would still apply. */ 11053#ifdef __cplusplus 11054extern "C" 11055#endif 11056char shl_load (); 11057/* The GNU C library defines this for functions which it implements 11058 to always fail with ENOSYS. Some functions are actually named 11059 something starting with __ and the normal name is an alias. */ 11060#if defined __stub_shl_load || defined __stub___shl_load 11061choke me 11062#endif 11063 11064int 11065main () 11066{ 11067return shl_load (); 11068 ; 11069 return 0; 11070} 11071_ACEOF 11072rm -f conftest.$ac_objext conftest$ac_exeext 11073if { (ac_try="$ac_link" 11074case "(($ac_try" in 11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11076 *) ac_try_echo=$ac_try;; 11077esac 11078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11079 (eval "$ac_link") 2>conftest.er1 11080 ac_status=$? 11081 grep -v '^ *+' conftest.er1 >conftest.err 11082 rm -f conftest.er1 11083 cat conftest.err >&5 11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11085 (exit $ac_status); } && { 11086 test -z "$ac_c_werror_flag" || 11087 test ! -s conftest.err 11088 } && test -s conftest$ac_exeext && 11089 $as_test_x conftest$ac_exeext; then 11090 ac_cv_func_shl_load=yes 11091else 11092 echo "$as_me: failed program was:" >&5 11093sed 's/^/| /' conftest.$ac_ext >&5 11094 11095 ac_cv_func_shl_load=no 11096fi 11097 11098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11099 conftest$ac_exeext conftest.$ac_ext 11100fi 11101{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11102echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11103if test $ac_cv_func_shl_load = yes; then 11104 lt_cv_dlopen="shl_load" 11105else 11106 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11107echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11108if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11109 echo $ECHO_N "(cached) $ECHO_C" >&6 11110else 11111 ac_check_lib_save_LIBS=$LIBS 11112LIBS="-ldld $LIBS" 11113cat >conftest.$ac_ext <<_ACEOF 11114/* confdefs.h. */ 11115_ACEOF 11116cat confdefs.h >>conftest.$ac_ext 11117cat >>conftest.$ac_ext <<_ACEOF 11118/* end confdefs.h. */ 11119 11120/* Override any GCC internal prototype to avoid an error. 11121 Use char because int might match the return type of a GCC 11122 builtin and then its argument prototype would still apply. */ 11123#ifdef __cplusplus 11124extern "C" 11125#endif 11126char shl_load (); 11127int 11128main () 11129{ 11130return shl_load (); 11131 ; 11132 return 0; 11133} 11134_ACEOF 11135rm -f conftest.$ac_objext conftest$ac_exeext 11136if { (ac_try="$ac_link" 11137case "(($ac_try" in 11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11139 *) ac_try_echo=$ac_try;; 11140esac 11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11142 (eval "$ac_link") 2>conftest.er1 11143 ac_status=$? 11144 grep -v '^ *+' conftest.er1 >conftest.err 11145 rm -f conftest.er1 11146 cat conftest.err >&5 11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11148 (exit $ac_status); } && { 11149 test -z "$ac_c_werror_flag" || 11150 test ! -s conftest.err 11151 } && test -s conftest$ac_exeext && 11152 $as_test_x conftest$ac_exeext; then 11153 ac_cv_lib_dld_shl_load=yes 11154else 11155 echo "$as_me: failed program was:" >&5 11156sed 's/^/| /' conftest.$ac_ext >&5 11157 11158 ac_cv_lib_dld_shl_load=no 11159fi 11160 11161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11162 conftest$ac_exeext conftest.$ac_ext 11163LIBS=$ac_check_lib_save_LIBS 11164fi 11165{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11166echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11167if test $ac_cv_lib_dld_shl_load = yes; then 11168 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11169else 11170 { echo "$as_me:$LINENO: checking for dlopen" >&5 11171echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11172if test "${ac_cv_func_dlopen+set}" = set; then 11173 echo $ECHO_N "(cached) $ECHO_C" >&6 11174else 11175 cat >conftest.$ac_ext <<_ACEOF 11176/* confdefs.h. */ 11177_ACEOF 11178cat confdefs.h >>conftest.$ac_ext 11179cat >>conftest.$ac_ext <<_ACEOF 11180/* end confdefs.h. */ 11181/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11183#define dlopen innocuous_dlopen 11184 11185/* System header to define __stub macros and hopefully few prototypes, 11186 which can conflict with char dlopen (); below. 11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11188 <limits.h> exists even on freestanding compilers. */ 11189 11190#ifdef __STDC__ 11191# include <limits.h> 11192#else 11193# include <assert.h> 11194#endif 11195 11196#undef dlopen 11197 11198/* Override any GCC internal prototype to avoid an error. 11199 Use char because int might match the return type of a GCC 11200 builtin and then its argument prototype would still apply. */ 11201#ifdef __cplusplus 11202extern "C" 11203#endif 11204char dlopen (); 11205/* The GNU C library defines this for functions which it implements 11206 to always fail with ENOSYS. Some functions are actually named 11207 something starting with __ and the normal name is an alias. */ 11208#if defined __stub_dlopen || defined __stub___dlopen 11209choke me 11210#endif 11211 11212int 11213main () 11214{ 11215return dlopen (); 11216 ; 11217 return 0; 11218} 11219_ACEOF 11220rm -f conftest.$ac_objext conftest$ac_exeext 11221if { (ac_try="$ac_link" 11222case "(($ac_try" in 11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11224 *) ac_try_echo=$ac_try;; 11225esac 11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11227 (eval "$ac_link") 2>conftest.er1 11228 ac_status=$? 11229 grep -v '^ *+' conftest.er1 >conftest.err 11230 rm -f conftest.er1 11231 cat conftest.err >&5 11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11233 (exit $ac_status); } && { 11234 test -z "$ac_c_werror_flag" || 11235 test ! -s conftest.err 11236 } && test -s conftest$ac_exeext && 11237 $as_test_x conftest$ac_exeext; then 11238 ac_cv_func_dlopen=yes 11239else 11240 echo "$as_me: failed program was:" >&5 11241sed 's/^/| /' conftest.$ac_ext >&5 11242 11243 ac_cv_func_dlopen=no 11244fi 11245 11246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11247 conftest$ac_exeext conftest.$ac_ext 11248fi 11249{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11250echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11251if test $ac_cv_func_dlopen = yes; then 11252 lt_cv_dlopen="dlopen" 11253else 11254 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11255echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11256if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11257 echo $ECHO_N "(cached) $ECHO_C" >&6 11258else 11259 ac_check_lib_save_LIBS=$LIBS 11260LIBS="-ldl $LIBS" 11261cat >conftest.$ac_ext <<_ACEOF 11262/* confdefs.h. */ 11263_ACEOF 11264cat confdefs.h >>conftest.$ac_ext 11265cat >>conftest.$ac_ext <<_ACEOF 11266/* end confdefs.h. */ 11267 11268/* Override any GCC internal prototype to avoid an error. 11269 Use char because int might match the return type of a GCC 11270 builtin and then its argument prototype would still apply. */ 11271#ifdef __cplusplus 11272extern "C" 11273#endif 11274char dlopen (); 11275int 11276main () 11277{ 11278return dlopen (); 11279 ; 11280 return 0; 11281} 11282_ACEOF 11283rm -f conftest.$ac_objext conftest$ac_exeext 11284if { (ac_try="$ac_link" 11285case "(($ac_try" in 11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11287 *) ac_try_echo=$ac_try;; 11288esac 11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11290 (eval "$ac_link") 2>conftest.er1 11291 ac_status=$? 11292 grep -v '^ *+' conftest.er1 >conftest.err 11293 rm -f conftest.er1 11294 cat conftest.err >&5 11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11296 (exit $ac_status); } && { 11297 test -z "$ac_c_werror_flag" || 11298 test ! -s conftest.err 11299 } && test -s conftest$ac_exeext && 11300 $as_test_x conftest$ac_exeext; then 11301 ac_cv_lib_dl_dlopen=yes 11302else 11303 echo "$as_me: failed program was:" >&5 11304sed 's/^/| /' conftest.$ac_ext >&5 11305 11306 ac_cv_lib_dl_dlopen=no 11307fi 11308 11309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11310 conftest$ac_exeext conftest.$ac_ext 11311LIBS=$ac_check_lib_save_LIBS 11312fi 11313{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11314echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11315if test $ac_cv_lib_dl_dlopen = yes; then 11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11317else 11318 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11319echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11320if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11321 echo $ECHO_N "(cached) $ECHO_C" >&6 11322else 11323 ac_check_lib_save_LIBS=$LIBS 11324LIBS="-lsvld $LIBS" 11325cat >conftest.$ac_ext <<_ACEOF 11326/* confdefs.h. */ 11327_ACEOF 11328cat confdefs.h >>conftest.$ac_ext 11329cat >>conftest.$ac_ext <<_ACEOF 11330/* end confdefs.h. */ 11331 11332/* Override any GCC internal prototype to avoid an error. 11333 Use char because int might match the return type of a GCC 11334 builtin and then its argument prototype would still apply. */ 11335#ifdef __cplusplus 11336extern "C" 11337#endif 11338char dlopen (); 11339int 11340main () 11341{ 11342return dlopen (); 11343 ; 11344 return 0; 11345} 11346_ACEOF 11347rm -f conftest.$ac_objext conftest$ac_exeext 11348if { (ac_try="$ac_link" 11349case "(($ac_try" in 11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11351 *) ac_try_echo=$ac_try;; 11352esac 11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11354 (eval "$ac_link") 2>conftest.er1 11355 ac_status=$? 11356 grep -v '^ *+' conftest.er1 >conftest.err 11357 rm -f conftest.er1 11358 cat conftest.err >&5 11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11360 (exit $ac_status); } && { 11361 test -z "$ac_c_werror_flag" || 11362 test ! -s conftest.err 11363 } && test -s conftest$ac_exeext && 11364 $as_test_x conftest$ac_exeext; then 11365 ac_cv_lib_svld_dlopen=yes 11366else 11367 echo "$as_me: failed program was:" >&5 11368sed 's/^/| /' conftest.$ac_ext >&5 11369 11370 ac_cv_lib_svld_dlopen=no 11371fi 11372 11373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11374 conftest$ac_exeext conftest.$ac_ext 11375LIBS=$ac_check_lib_save_LIBS 11376fi 11377{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11378echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11379if test $ac_cv_lib_svld_dlopen = yes; then 11380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11381else 11382 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11383echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11384if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11385 echo $ECHO_N "(cached) $ECHO_C" >&6 11386else 11387 ac_check_lib_save_LIBS=$LIBS 11388LIBS="-ldld $LIBS" 11389cat >conftest.$ac_ext <<_ACEOF 11390/* confdefs.h. */ 11391_ACEOF 11392cat confdefs.h >>conftest.$ac_ext 11393cat >>conftest.$ac_ext <<_ACEOF 11394/* end confdefs.h. */ 11395 11396/* Override any GCC internal prototype to avoid an error. 11397 Use char because int might match the return type of a GCC 11398 builtin and then its argument prototype would still apply. */ 11399#ifdef __cplusplus 11400extern "C" 11401#endif 11402char dld_link (); 11403int 11404main () 11405{ 11406return dld_link (); 11407 ; 11408 return 0; 11409} 11410_ACEOF 11411rm -f conftest.$ac_objext conftest$ac_exeext 11412if { (ac_try="$ac_link" 11413case "(($ac_try" in 11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11415 *) ac_try_echo=$ac_try;; 11416esac 11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11418 (eval "$ac_link") 2>conftest.er1 11419 ac_status=$? 11420 grep -v '^ *+' conftest.er1 >conftest.err 11421 rm -f conftest.er1 11422 cat conftest.err >&5 11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11424 (exit $ac_status); } && { 11425 test -z "$ac_c_werror_flag" || 11426 test ! -s conftest.err 11427 } && test -s conftest$ac_exeext && 11428 $as_test_x conftest$ac_exeext; then 11429 ac_cv_lib_dld_dld_link=yes 11430else 11431 echo "$as_me: failed program was:" >&5 11432sed 's/^/| /' conftest.$ac_ext >&5 11433 11434 ac_cv_lib_dld_dld_link=no 11435fi 11436 11437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11438 conftest$ac_exeext conftest.$ac_ext 11439LIBS=$ac_check_lib_save_LIBS 11440fi 11441{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11442echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11443if test $ac_cv_lib_dld_dld_link = yes; then 11444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11445fi 11446 11447 11448fi 11449 11450 11451fi 11452 11453 11454fi 11455 11456 11457fi 11458 11459 11460fi 11461 11462 ;; 11463 esac 11464 11465 if test "x$lt_cv_dlopen" != xno; then 11466 enable_dlopen=yes 11467 else 11468 enable_dlopen=no 11469 fi 11470 11471 case $lt_cv_dlopen in 11472 dlopen) 11473 save_CPPFLAGS="$CPPFLAGS" 11474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11475 11476 save_LDFLAGS="$LDFLAGS" 11477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11478 11479 save_LIBS="$LIBS" 11480 LIBS="$lt_cv_dlopen_libs $LIBS" 11481 11482 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11483echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11484if test "${lt_cv_dlopen_self+set}" = set; then 11485 echo $ECHO_N "(cached) $ECHO_C" >&6 11486else 11487 if test "$cross_compiling" = yes; then : 11488 lt_cv_dlopen_self=cross 11489else 11490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11491 lt_status=$lt_dlunknown 11492 cat > conftest.$ac_ext <<EOF 11493#line 11493 "configure" 11494#include "confdefs.h" 11495 11496#if HAVE_DLFCN_H 11497#include <dlfcn.h> 11498#endif 11499 11500#include <stdio.h> 11501 11502#ifdef RTLD_GLOBAL 11503# define LT_DLGLOBAL RTLD_GLOBAL 11504#else 11505# ifdef DL_GLOBAL 11506# define LT_DLGLOBAL DL_GLOBAL 11507# else 11508# define LT_DLGLOBAL 0 11509# endif 11510#endif 11511 11512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11513 find out it does not work in some platform. */ 11514#ifndef LT_DLLAZY_OR_NOW 11515# ifdef RTLD_LAZY 11516# define LT_DLLAZY_OR_NOW RTLD_LAZY 11517# else 11518# ifdef DL_LAZY 11519# define LT_DLLAZY_OR_NOW DL_LAZY 11520# else 11521# ifdef RTLD_NOW 11522# define LT_DLLAZY_OR_NOW RTLD_NOW 11523# else 11524# ifdef DL_NOW 11525# define LT_DLLAZY_OR_NOW DL_NOW 11526# else 11527# define LT_DLLAZY_OR_NOW 0 11528# endif 11529# endif 11530# endif 11531# endif 11532#endif 11533 11534#ifdef __cplusplus 11535extern "C" void exit (int); 11536#endif 11537 11538void fnord() { int i=42;} 11539int main () 11540{ 11541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11542 int status = $lt_dlunknown; 11543 11544 if (self) 11545 { 11546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11548 /* dlclose (self); */ 11549 } 11550 else 11551 puts (dlerror ()); 11552 11553 exit (status); 11554} 11555EOF 11556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11557 (eval $ac_link) 2>&5 11558 ac_status=$? 11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11561 (./conftest; exit; ) >&5 2>/dev/null 11562 lt_status=$? 11563 case x$lt_status in 11564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11566 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11567 esac 11568 else : 11569 # compilation failed 11570 lt_cv_dlopen_self=no 11571 fi 11572fi 11573rm -fr conftest* 11574 11575 11576fi 11577{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11578echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11579 11580 if test "x$lt_cv_dlopen_self" = xyes; then 11581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11582 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11583echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11584if test "${lt_cv_dlopen_self_static+set}" = set; then 11585 echo $ECHO_N "(cached) $ECHO_C" >&6 11586else 11587 if test "$cross_compiling" = yes; then : 11588 lt_cv_dlopen_self_static=cross 11589else 11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11591 lt_status=$lt_dlunknown 11592 cat > conftest.$ac_ext <<EOF 11593#line 11593 "configure" 11594#include "confdefs.h" 11595 11596#if HAVE_DLFCN_H 11597#include <dlfcn.h> 11598#endif 11599 11600#include <stdio.h> 11601 11602#ifdef RTLD_GLOBAL 11603# define LT_DLGLOBAL RTLD_GLOBAL 11604#else 11605# ifdef DL_GLOBAL 11606# define LT_DLGLOBAL DL_GLOBAL 11607# else 11608# define LT_DLGLOBAL 0 11609# endif 11610#endif 11611 11612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11613 find out it does not work in some platform. */ 11614#ifndef LT_DLLAZY_OR_NOW 11615# ifdef RTLD_LAZY 11616# define LT_DLLAZY_OR_NOW RTLD_LAZY 11617# else 11618# ifdef DL_LAZY 11619# define LT_DLLAZY_OR_NOW DL_LAZY 11620# else 11621# ifdef RTLD_NOW 11622# define LT_DLLAZY_OR_NOW RTLD_NOW 11623# else 11624# ifdef DL_NOW 11625# define LT_DLLAZY_OR_NOW DL_NOW 11626# else 11627# define LT_DLLAZY_OR_NOW 0 11628# endif 11629# endif 11630# endif 11631# endif 11632#endif 11633 11634#ifdef __cplusplus 11635extern "C" void exit (int); 11636#endif 11637 11638void fnord() { int i=42;} 11639int main () 11640{ 11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11642 int status = $lt_dlunknown; 11643 11644 if (self) 11645 { 11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11648 /* dlclose (self); */ 11649 } 11650 else 11651 puts (dlerror ()); 11652 11653 exit (status); 11654} 11655EOF 11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11657 (eval $ac_link) 2>&5 11658 ac_status=$? 11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11661 (./conftest; exit; ) >&5 2>/dev/null 11662 lt_status=$? 11663 case x$lt_status in 11664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11666 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11667 esac 11668 else : 11669 # compilation failed 11670 lt_cv_dlopen_self_static=no 11671 fi 11672fi 11673rm -fr conftest* 11674 11675 11676fi 11677{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11678echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11679 fi 11680 11681 CPPFLAGS="$save_CPPFLAGS" 11682 LDFLAGS="$save_LDFLAGS" 11683 LIBS="$save_LIBS" 11684 ;; 11685 esac 11686 11687 case $lt_cv_dlopen_self in 11688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11689 *) enable_dlopen_self=unknown ;; 11690 esac 11691 11692 case $lt_cv_dlopen_self_static in 11693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11694 *) enable_dlopen_self_static=unknown ;; 11695 esac 11696fi 11697 11698 11699# Report which library types will actually be built 11700{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11701echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11702{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 11703echo "${ECHO_T}$can_build_shared" >&6; } 11704 11705{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11706echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11707test "$can_build_shared" = "no" && enable_shared=no 11708 11709# On AIX, shared libraries and static libraries use the same namespace, and 11710# are all built from PIC. 11711case $host_os in 11712aix3*) 11713 test "$enable_shared" = yes && enable_static=no 11714 if test -n "$RANLIB"; then 11715 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11716 postinstall_cmds='$RANLIB $lib' 11717 fi 11718 ;; 11719 11720aix4* | aix5*) 11721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11722 test "$enable_shared" = yes && enable_static=no 11723 fi 11724 ;; 11725esac 11726{ echo "$as_me:$LINENO: result: $enable_shared" >&5 11727echo "${ECHO_T}$enable_shared" >&6; } 11728 11729{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11730echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11731# Make sure either enable_shared or enable_static is yes. 11732test "$enable_shared" = yes || enable_static=yes 11733{ echo "$as_me:$LINENO: result: $enable_static" >&5 11734echo "${ECHO_T}$enable_static" >&6; } 11735 11736# The else clause should only fire when bootstrapping the 11737# libtool distribution, otherwise you forgot to ship ltmain.sh 11738# with your package, and you will get complaints that there are 11739# no rules to generate ltmain.sh. 11740if test -f "$ltmain"; then 11741 # See if we are running on zsh, and set the options which allow our commands through 11742 # without removal of \ escapes. 11743 if test -n "${ZSH_VERSION+set}" ; then 11744 setopt NO_GLOB_SUBST 11745 fi 11746 # Now quote all the things that may contain metacharacters while being 11747 # careful not to overquote the AC_SUBSTed values. We take copies of the 11748 # variables and quote the copies for generation of the libtool script. 11749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11750 SED SHELL STRIP \ 11751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11753 deplibs_check_method reload_flag reload_cmds need_locks \ 11754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11755 lt_cv_sys_global_symbol_to_c_name_address \ 11756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11757 old_postinstall_cmds old_postuninstall_cmds \ 11758 compiler \ 11759 CC \ 11760 LD \ 11761 lt_prog_compiler_wl \ 11762 lt_prog_compiler_pic \ 11763 lt_prog_compiler_static \ 11764 lt_prog_compiler_no_builtin_flag \ 11765 export_dynamic_flag_spec \ 11766 thread_safe_flag_spec \ 11767 whole_archive_flag_spec \ 11768 enable_shared_with_static_runtimes \ 11769 old_archive_cmds \ 11770 old_archive_from_new_cmds \ 11771 predep_objects \ 11772 postdep_objects \ 11773 predeps \ 11774 postdeps \ 11775 compiler_lib_search_path \ 11776 archive_cmds \ 11777 archive_expsym_cmds \ 11778 postinstall_cmds \ 11779 postuninstall_cmds \ 11780 old_archive_from_expsyms_cmds \ 11781 allow_undefined_flag \ 11782 no_undefined_flag \ 11783 export_symbols_cmds \ 11784 hardcode_libdir_flag_spec \ 11785 hardcode_libdir_flag_spec_ld \ 11786 hardcode_libdir_separator \ 11787 hardcode_automatic \ 11788 module_cmds \ 11789 module_expsym_cmds \ 11790 lt_cv_prog_compiler_c_o \ 11791 fix_srcfile_path \ 11792 exclude_expsyms \ 11793 include_expsyms; do 11794 11795 case $var in 11796 old_archive_cmds | \ 11797 old_archive_from_new_cmds | \ 11798 archive_cmds | \ 11799 archive_expsym_cmds | \ 11800 module_cmds | \ 11801 module_expsym_cmds | \ 11802 old_archive_from_expsyms_cmds | \ 11803 export_symbols_cmds | \ 11804 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11805 postinstall_cmds | postuninstall_cmds | \ 11806 old_postinstall_cmds | old_postuninstall_cmds | \ 11807 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11808 # Double-quote double-evaled strings. 11809 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11810 ;; 11811 *) 11812 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11813 ;; 11814 esac 11815 done 11816 11817 case $lt_echo in 11818 *'\$0 --fallback-echo"') 11819 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11820 ;; 11821 esac 11822 11823cfgfile="${ofile}T" 11824 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11825 $rm -f "$cfgfile" 11826 { echo "$as_me:$LINENO: creating $ofile" >&5 11827echo "$as_me: creating $ofile" >&6;} 11828 11829 cat <<__EOF__ >> "$cfgfile" 11830#! $SHELL 11831 11832# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11833# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11834# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11835# 11836# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 11837# Free Software Foundation, Inc. 11838# 11839# This file is part of GNU Libtool: 11840# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11841# 11842# This program is free software; you can redistribute it and/or modify 11843# it under the terms of the GNU General Public License as published by 11844# the Free Software Foundation; either version 2 of the License, or 11845# (at your option) any later version. 11846# 11847# This program is distributed in the hope that it will be useful, but 11848# WITHOUT ANY WARRANTY; without even the implied warranty of 11849# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11850# General Public License for more details. 11851# 11852# You should have received a copy of the GNU General Public License 11853# along with this program; if not, write to the Free Software 11854# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11855# 11856# As a special exception to the GNU General Public License, if you 11857# distribute this file as part of a program that contains a 11858# configuration script generated by Autoconf, you may include it under 11859# the same distribution terms that you use for the rest of that program. 11860 11861# A sed program that does not truncate output. 11862SED=$lt_SED 11863 11864# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11865Xsed="$SED -e 1s/^X//" 11866 11867# The HP-UX ksh and POSIX shell print the target directory to stdout 11868# if CDPATH is set. 11869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11870 11871# The names of the tagged configurations supported by this script. 11872available_tags= 11873 11874# ### BEGIN LIBTOOL CONFIG 11875 11876# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11877 11878# Shell to use when invoking shell scripts. 11879SHELL=$lt_SHELL 11880 11881# Whether or not to build shared libraries. 11882build_libtool_libs=$enable_shared 11883 11884# Whether or not to build static libraries. 11885build_old_libs=$enable_static 11886 11887# Whether or not to add -lc for building shared libraries. 11888build_libtool_need_lc=$archive_cmds_need_lc 11889 11890# Whether or not to disallow shared libs when runtime libs are static 11891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11892 11893# Whether or not to optimize for fast installation. 11894fast_install=$enable_fast_install 11895 11896# The host system. 11897host_alias=$host_alias 11898host=$host 11899host_os=$host_os 11900 11901# The build system. 11902build_alias=$build_alias 11903build=$build 11904build_os=$build_os 11905 11906# An echo program that does not interpret backslashes. 11907echo=$lt_echo 11908 11909# The archiver. 11910AR=$lt_AR 11911AR_FLAGS=$lt_AR_FLAGS 11912 11913# A C compiler. 11914LTCC=$lt_LTCC 11915 11916# LTCC compiler flags. 11917LTCFLAGS=$lt_LTCFLAGS 11918 11919# A language-specific compiler. 11920CC=$lt_compiler 11921 11922# Is the compiler the GNU C compiler? 11923with_gcc=$GCC 11924 11925# An ERE matcher. 11926EGREP=$lt_EGREP 11927 11928# The linker used to build libraries. 11929LD=$lt_LD 11930 11931# Whether we need hard or soft links. 11932LN_S=$lt_LN_S 11933 11934# A BSD-compatible nm program. 11935NM=$lt_NM 11936 11937# A symbol stripping program 11938STRIP=$lt_STRIP 11939 11940# Used to examine libraries when file_magic_cmd begins "file" 11941MAGIC_CMD=$MAGIC_CMD 11942 11943# Used on cygwin: DLL creation program. 11944DLLTOOL="$DLLTOOL" 11945 11946# Used on cygwin: object dumper. 11947OBJDUMP="$OBJDUMP" 11948 11949# Used on cygwin: assembler. 11950AS="$AS" 11951 11952# The name of the directory that contains temporary libtool files. 11953objdir=$objdir 11954 11955# How to create reloadable object files. 11956reload_flag=$lt_reload_flag 11957reload_cmds=$lt_reload_cmds 11958 11959# How to pass a linker flag through the compiler. 11960wl=$lt_lt_prog_compiler_wl 11961 11962# Object file suffix (normally "o"). 11963objext="$ac_objext" 11964 11965# Old archive suffix (normally "a"). 11966libext="$libext" 11967 11968# Shared library suffix (normally ".so"). 11969shrext_cmds='$shrext_cmds' 11970 11971# Executable file suffix (normally ""). 11972exeext="$exeext" 11973 11974# Additional compiler flags for building library objects. 11975pic_flag=$lt_lt_prog_compiler_pic 11976pic_mode=$pic_mode 11977 11978# What is the maximum length of a command? 11979max_cmd_len=$lt_cv_sys_max_cmd_len 11980 11981# Does compiler simultaneously support -c and -o options? 11982compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11983 11984# Must we lock files when doing compilation? 11985need_locks=$lt_need_locks 11986 11987# Do we need the lib prefix for modules? 11988need_lib_prefix=$need_lib_prefix 11989 11990# Do we need a version for libraries? 11991need_version=$need_version 11992 11993# Whether dlopen is supported. 11994dlopen_support=$enable_dlopen 11995 11996# Whether dlopen of programs is supported. 11997dlopen_self=$enable_dlopen_self 11998 11999# Whether dlopen of statically linked programs is supported. 12000dlopen_self_static=$enable_dlopen_self_static 12001 12002# Compiler flag to prevent dynamic linking. 12003link_static_flag=$lt_lt_prog_compiler_static 12004 12005# Compiler flag to turn off builtin functions. 12006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12007 12008# Compiler flag to allow reflexive dlopens. 12009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12010 12011# Compiler flag to generate shared objects directly from archives. 12012whole_archive_flag_spec=$lt_whole_archive_flag_spec 12013 12014# Compiler flag to generate thread-safe objects. 12015thread_safe_flag_spec=$lt_thread_safe_flag_spec 12016 12017# Library versioning type. 12018version_type=$version_type 12019 12020# Format of library name prefix. 12021libname_spec=$lt_libname_spec 12022 12023# List of archive names. First name is the real one, the rest are links. 12024# The last name is the one that the linker finds with -lNAME. 12025library_names_spec=$lt_library_names_spec 12026 12027# The coded name of the library, if different from the real name. 12028soname_spec=$lt_soname_spec 12029 12030# Commands used to build and install an old-style archive. 12031RANLIB=$lt_RANLIB 12032old_archive_cmds=$lt_old_archive_cmds 12033old_postinstall_cmds=$lt_old_postinstall_cmds 12034old_postuninstall_cmds=$lt_old_postuninstall_cmds 12035 12036# Create an old-style archive from a shared archive. 12037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12038 12039# Create a temporary old-style archive to link instead of a shared archive. 12040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12041 12042# Commands used to build and install a shared archive. 12043archive_cmds=$lt_archive_cmds 12044archive_expsym_cmds=$lt_archive_expsym_cmds 12045postinstall_cmds=$lt_postinstall_cmds 12046postuninstall_cmds=$lt_postuninstall_cmds 12047 12048# Commands used to build a loadable module (assumed same as above if empty) 12049module_cmds=$lt_module_cmds 12050module_expsym_cmds=$lt_module_expsym_cmds 12051 12052# Commands to strip libraries. 12053old_striplib=$lt_old_striplib 12054striplib=$lt_striplib 12055 12056# Dependencies to place before the objects being linked to create a 12057# shared library. 12058predep_objects=$lt_predep_objects 12059 12060# Dependencies to place after the objects being linked to create a 12061# shared library. 12062postdep_objects=$lt_postdep_objects 12063 12064# Dependencies to place before the objects being linked to create a 12065# shared library. 12066predeps=$lt_predeps 12067 12068# Dependencies to place after the objects being linked to create a 12069# shared library. 12070postdeps=$lt_postdeps 12071 12072# The library search path used internally by the compiler when linking 12073# a shared library. 12074compiler_lib_search_path=$lt_compiler_lib_search_path 12075 12076# Method to check whether dependent libraries are shared objects. 12077deplibs_check_method=$lt_deplibs_check_method 12078 12079# Command to use when deplibs_check_method == file_magic. 12080file_magic_cmd=$lt_file_magic_cmd 12081 12082# Flag that allows shared libraries with undefined symbols to be built. 12083allow_undefined_flag=$lt_allow_undefined_flag 12084 12085# Flag that forces no undefined symbols. 12086no_undefined_flag=$lt_no_undefined_flag 12087 12088# Commands used to finish a libtool library installation in a directory. 12089finish_cmds=$lt_finish_cmds 12090 12091# Same as above, but a single script fragment to be evaled but not shown. 12092finish_eval=$lt_finish_eval 12093 12094# Take the output of nm and produce a listing of raw symbols and C names. 12095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12096 12097# Transform the output of nm in a proper C declaration 12098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12099 12100# Transform the output of nm in a C name address pair 12101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12102 12103# This is the shared library runtime path variable. 12104runpath_var=$runpath_var 12105 12106# This is the shared library path variable. 12107shlibpath_var=$shlibpath_var 12108 12109# Is shlibpath searched before the hard-coded library search path? 12110shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12111 12112# How to hardcode a shared library path into an executable. 12113hardcode_action=$hardcode_action 12114 12115# Whether we should hardcode library paths into libraries. 12116hardcode_into_libs=$hardcode_into_libs 12117 12118# Flag to hardcode \$libdir into a binary during linking. 12119# This must work even if \$libdir does not exist. 12120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12121 12122# If ld is used when linking, flag to hardcode \$libdir into 12123# a binary during linking. This must work even if \$libdir does 12124# not exist. 12125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12126 12127# Whether we need a single -rpath flag with a separated argument. 12128hardcode_libdir_separator=$lt_hardcode_libdir_separator 12129 12130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12131# resulting binary. 12132hardcode_direct=$hardcode_direct 12133 12134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12135# resulting binary. 12136hardcode_minus_L=$hardcode_minus_L 12137 12138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12139# the resulting binary. 12140hardcode_shlibpath_var=$hardcode_shlibpath_var 12141 12142# Set to yes if building a shared library automatically hardcodes DIR into the library 12143# and all subsequent libraries and executables linked against it. 12144hardcode_automatic=$hardcode_automatic 12145 12146# Variables whose values should be saved in libtool wrapper scripts and 12147# restored at relink time. 12148variables_saved_for_relink="$variables_saved_for_relink" 12149 12150# Whether libtool must link a program against all its dependency libraries. 12151link_all_deplibs=$link_all_deplibs 12152 12153# Compile-time system search path for libraries 12154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12155 12156# Run-time system search path for libraries 12157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12158 12159# Fix the shell variable \$srcfile for the compiler. 12160fix_srcfile_path=$lt_fix_srcfile_path 12161 12162# Set to yes if exported symbols are required. 12163always_export_symbols=$always_export_symbols 12164 12165# The commands to list exported symbols. 12166export_symbols_cmds=$lt_export_symbols_cmds 12167 12168# The commands to extract the exported symbol list from a shared archive. 12169extract_expsyms_cmds=$lt_extract_expsyms_cmds 12170 12171# Symbols that should not be listed in the preloaded symbols. 12172exclude_expsyms=$lt_exclude_expsyms 12173 12174# Symbols that must always be exported. 12175include_expsyms=$lt_include_expsyms 12176 12177# ### END LIBTOOL CONFIG 12178 12179__EOF__ 12180 12181 12182 case $host_os in 12183 aix3*) 12184 cat <<\EOF >> "$cfgfile" 12185 12186# AIX sometimes has problems with the GCC collect2 program. For some 12187# reason, if we set the COLLECT_NAMES environment variable, the problems 12188# vanish in a puff of smoke. 12189if test "X${COLLECT_NAMES+set}" != Xset; then 12190 COLLECT_NAMES= 12191 export COLLECT_NAMES 12192fi 12193EOF 12194 ;; 12195 esac 12196 12197 # We use sed instead of cat because bash on DJGPP gets confused if 12198 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12199 # text mode, it properly converts lines to CR/LF. This bash problem 12200 # is reportedly fixed, but why not run on old versions too? 12201 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12202 12203 mv -f "$cfgfile" "$ofile" || \ 12204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12205 chmod +x "$ofile" 12206 12207else 12208 # If there is no Makefile yet, we rely on a make rule to execute 12209 # `config.status --recheck' to rerun these tests and create the 12210 # libtool script then. 12211 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12212 if test -f "$ltmain_in"; then 12213 test -f Makefile && make "$ltmain" 12214 fi 12215fi 12216 12217 12218ac_ext=c 12219ac_cpp='$CPP $CPPFLAGS' 12220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12222ac_compiler_gnu=$ac_cv_c_compiler_gnu 12223 12224CC="$lt_save_CC" 12225 12226 12227# Check whether --with-tags was given. 12228if test "${with_tags+set}" = set; then 12229 withval=$with_tags; tagnames="$withval" 12230fi 12231 12232 12233if test -f "$ltmain" && test -n "$tagnames"; then 12234 if test ! -f "${ofile}"; then 12235 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12236echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12237 fi 12238 12239 if test -z "$LTCC"; then 12240 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12241 if test -z "$LTCC"; then 12242 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12243echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12244 else 12245 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12246echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12247 fi 12248 fi 12249 if test -z "$LTCFLAGS"; then 12250 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12251 fi 12252 12253 # Extract list of available tagged configurations in $ofile. 12254 # Note that this assumes the entire list is on one line. 12255 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12256 12257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12258 for tagname in $tagnames; do 12259 IFS="$lt_save_ifs" 12260 # Check whether tagname contains only valid characters 12261 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12262 "") ;; 12263 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12264echo "$as_me: error: invalid tag name: $tagname" >&2;} 12265 { (exit 1); exit 1; }; } 12266 ;; 12267 esac 12268 12269 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12270 then 12271 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12272echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12273 { (exit 1); exit 1; }; } 12274 fi 12275 12276 # Update the list of available tags. 12277 if test -n "$tagname"; then 12278 echo appending configuration tag \"$tagname\" to $ofile 12279 12280 case $tagname in 12281 CXX) 12282 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12283 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12284 (test "X$CXX" != "Xg++"))) ; then 12285 ac_ext=cpp 12286ac_cpp='$CXXCPP $CPPFLAGS' 12287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12290 12291 12292 12293 12294archive_cmds_need_lc_CXX=no 12295allow_undefined_flag_CXX= 12296always_export_symbols_CXX=no 12297archive_expsym_cmds_CXX= 12298export_dynamic_flag_spec_CXX= 12299hardcode_direct_CXX=no 12300hardcode_libdir_flag_spec_CXX= 12301hardcode_libdir_flag_spec_ld_CXX= 12302hardcode_libdir_separator_CXX= 12303hardcode_minus_L_CXX=no 12304hardcode_shlibpath_var_CXX=unsupported 12305hardcode_automatic_CXX=no 12306module_cmds_CXX= 12307module_expsym_cmds_CXX= 12308link_all_deplibs_CXX=unknown 12309old_archive_cmds_CXX=$old_archive_cmds 12310no_undefined_flag_CXX= 12311whole_archive_flag_spec_CXX= 12312enable_shared_with_static_runtimes_CXX=no 12313 12314# Dependencies to place before and after the object being linked: 12315predep_objects_CXX= 12316postdep_objects_CXX= 12317predeps_CXX= 12318postdeps_CXX= 12319compiler_lib_search_path_CXX= 12320 12321# Source file extension for C++ test sources. 12322ac_ext=cpp 12323 12324# Object file extension for compiled C++ test sources. 12325objext=o 12326objext_CXX=$objext 12327 12328# Code to be used in simple compile tests 12329lt_simple_compile_test_code="int some_variable = 0;" 12330 12331# Code to be used in simple link tests 12332lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12333 12334# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12335 12336# If no C compiler was specified, use CC. 12337LTCC=${LTCC-"$CC"} 12338 12339# If no C compiler flags were specified, use CFLAGS. 12340LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12341 12342# Allow CC to be a program name with arguments. 12343compiler=$CC 12344 12345 12346# save warnings/boilerplate of simple test code 12347ac_outfile=conftest.$ac_objext 12348echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12350_lt_compiler_boilerplate=`cat conftest.err` 12351$rm conftest* 12352 12353ac_outfile=conftest.$ac_objext 12354echo "$lt_simple_link_test_code" >conftest.$ac_ext 12355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12356_lt_linker_boilerplate=`cat conftest.err` 12357$rm conftest* 12358 12359 12360# Allow CC to be a program name with arguments. 12361lt_save_CC=$CC 12362lt_save_LD=$LD 12363lt_save_GCC=$GCC 12364GCC=$GXX 12365lt_save_with_gnu_ld=$with_gnu_ld 12366lt_save_path_LD=$lt_cv_path_LD 12367if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12369else 12370 $as_unset lt_cv_prog_gnu_ld 12371fi 12372if test -n "${lt_cv_path_LDCXX+set}"; then 12373 lt_cv_path_LD=$lt_cv_path_LDCXX 12374else 12375 $as_unset lt_cv_path_LD 12376fi 12377test -z "${LDCXX+set}" || LD=$LDCXX 12378CC=${CXX-"c++"} 12379compiler=$CC 12380compiler_CXX=$CC 12381for cc_temp in $compiler""; do 12382 case $cc_temp in 12383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12385 \-*) ;; 12386 *) break;; 12387 esac 12388done 12389cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12390 12391 12392# We don't want -fno-exception wen compiling C++ code, so set the 12393# no_builtin_flag separately 12394if test "$GXX" = yes; then 12395 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12396else 12397 lt_prog_compiler_no_builtin_flag_CXX= 12398fi 12399 12400if test "$GXX" = yes; then 12401 # Set up default GNU C++ configuration 12402 12403 12404# Check whether --with-gnu-ld was given. 12405if test "${with_gnu_ld+set}" = set; then 12406 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12407else 12408 with_gnu_ld=no 12409fi 12410 12411ac_prog=ld 12412if test "$GCC" = yes; then 12413 # Check if gcc -print-prog-name=ld gives a path. 12414 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12415echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12416 case $host in 12417 *-*-mingw*) 12418 # gcc leaves a trailing carriage return which upsets mingw 12419 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12420 *) 12421 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12422 esac 12423 case $ac_prog in 12424 # Accept absolute paths. 12425 [\\/]* | ?:[\\/]*) 12426 re_direlt='/[^/][^/]*/\.\./' 12427 # Canonicalize the pathname of ld 12428 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12429 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12430 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12431 done 12432 test -z "$LD" && LD="$ac_prog" 12433 ;; 12434 "") 12435 # If it fails, then pretend we aren't using GCC. 12436 ac_prog=ld 12437 ;; 12438 *) 12439 # If it is relative, then search for the first ld in PATH. 12440 with_gnu_ld=unknown 12441 ;; 12442 esac 12443elif test "$with_gnu_ld" = yes; then 12444 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12445echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12446else 12447 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12448echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12449fi 12450if test "${lt_cv_path_LD+set}" = set; then 12451 echo $ECHO_N "(cached) $ECHO_C" >&6 12452else 12453 if test -z "$LD"; then 12454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12455 for ac_dir in $PATH; do 12456 IFS="$lt_save_ifs" 12457 test -z "$ac_dir" && ac_dir=. 12458 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12459 lt_cv_path_LD="$ac_dir/$ac_prog" 12460 # Check to see if the program is GNU ld. I'd rather use --version, 12461 # but apparently some variants of GNU ld only accept -v. 12462 # Break only if it was the GNU/non-GNU ld that we prefer. 12463 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12464 *GNU* | *'with BFD'*) 12465 test "$with_gnu_ld" != no && break 12466 ;; 12467 *) 12468 test "$with_gnu_ld" != yes && break 12469 ;; 12470 esac 12471 fi 12472 done 12473 IFS="$lt_save_ifs" 12474else 12475 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12476fi 12477fi 12478 12479LD="$lt_cv_path_LD" 12480if test -n "$LD"; then 12481 { echo "$as_me:$LINENO: result: $LD" >&5 12482echo "${ECHO_T}$LD" >&6; } 12483else 12484 { echo "$as_me:$LINENO: result: no" >&5 12485echo "${ECHO_T}no" >&6; } 12486fi 12487test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12488echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12489 { (exit 1); exit 1; }; } 12490{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12491echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12492if test "${lt_cv_prog_gnu_ld+set}" = set; then 12493 echo $ECHO_N "(cached) $ECHO_C" >&6 12494else 12495 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12496case `$LD -v 2>&1 </dev/null` in 12497*GNU* | *'with BFD'*) 12498 lt_cv_prog_gnu_ld=yes 12499 ;; 12500*) 12501 lt_cv_prog_gnu_ld=no 12502 ;; 12503esac 12504fi 12505{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12506echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12507with_gnu_ld=$lt_cv_prog_gnu_ld 12508 12509 12510 12511 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12512 # archiving commands below assume that GNU ld is being used. 12513 if test "$with_gnu_ld" = yes; then 12514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12515 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' 12516 12517 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12519 12520 # If archive_cmds runs LD, not CC, wlarc should be empty 12521 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12522 # investigate it a little bit more. (MM) 12523 wlarc='${wl}' 12524 12525 # ancient GNU ld didn't support --whole-archive et. al. 12526 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12527 grep 'no-whole-archive' > /dev/null; then 12528 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12529 else 12530 whole_archive_flag_spec_CXX= 12531 fi 12532 else 12533 with_gnu_ld=no 12534 wlarc= 12535 12536 # A generic and very simple default shared library creation 12537 # command for GNU C++ for the case where it uses the native 12538 # linker, instead of GNU ld. If possible, this setting should 12539 # overridden to take advantage of the native linker features on 12540 # the platform it is being used on. 12541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12542 fi 12543 12544 # Commands to make compiler produce verbose output that lists 12545 # what "hidden" libraries, object files and flags are used when 12546 # linking a shared library. 12547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12548 12549else 12550 GXX=no 12551 with_gnu_ld=no 12552 wlarc= 12553fi 12554 12555# PORTME: fill in a description of your system's C++ link characteristics 12556{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12557echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12558ld_shlibs_CXX=yes 12559case $host_os in 12560 aix3*) 12561 # FIXME: insert proper C++ library support 12562 ld_shlibs_CXX=no 12563 ;; 12564 aix4* | aix5*) 12565 if test "$host_cpu" = ia64; then 12566 # On IA64, the linker does run time linking by default, so we don't 12567 # have to do anything special. 12568 aix_use_runtimelinking=no 12569 exp_sym_flag='-Bexport' 12570 no_entry_flag="" 12571 else 12572 aix_use_runtimelinking=no 12573 12574 # Test if we are trying to use run time linking or normal 12575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12576 # need to do runtime linking. 12577 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12578 for ld_flag in $LDFLAGS; do 12579 case $ld_flag in 12580 *-brtl*) 12581 aix_use_runtimelinking=yes 12582 break 12583 ;; 12584 esac 12585 done 12586 ;; 12587 esac 12588 12589 exp_sym_flag='-bexport' 12590 no_entry_flag='-bnoentry' 12591 fi 12592 12593 # When large executables or shared objects are built, AIX ld can 12594 # have problems creating the table of contents. If linking a library 12595 # or program results in "error TOC overflow" add -mminimal-toc to 12596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12598 12599 archive_cmds_CXX='' 12600 hardcode_direct_CXX=yes 12601 hardcode_libdir_separator_CXX=':' 12602 link_all_deplibs_CXX=yes 12603 12604 if test "$GXX" = yes; then 12605 case $host_os in aix4.[012]|aix4.[012].*) 12606 # We only want to do this on AIX 4.2 and lower, the check 12607 # below for broken collect2 doesn't work under 4.3+ 12608 collect2name=`${CC} -print-prog-name=collect2` 12609 if test -f "$collect2name" && \ 12610 strings "$collect2name" | grep resolve_lib_name >/dev/null 12611 then 12612 # We have reworked collect2 12613 : 12614 else 12615 # We have old collect2 12616 hardcode_direct_CXX=unsupported 12617 # It fails to find uninstalled libraries when the uninstalled 12618 # path is not listed in the libpath. Setting hardcode_minus_L 12619 # to unsupported forces relinking 12620 hardcode_minus_L_CXX=yes 12621 hardcode_libdir_flag_spec_CXX='-L$libdir' 12622 hardcode_libdir_separator_CXX= 12623 fi 12624 ;; 12625 esac 12626 shared_flag='-shared' 12627 if test "$aix_use_runtimelinking" = yes; then 12628 shared_flag="$shared_flag "'${wl}-G' 12629 fi 12630 else 12631 # not using gcc 12632 if test "$host_cpu" = ia64; then 12633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12634 # chokes on -Wl,-G. The following line is correct: 12635 shared_flag='-G' 12636 else 12637 if test "$aix_use_runtimelinking" = yes; then 12638 shared_flag='${wl}-G' 12639 else 12640 shared_flag='${wl}-bM:SRE' 12641 fi 12642 fi 12643 fi 12644 12645 # It seems that -bexpall does not export symbols beginning with 12646 # underscore (_), so it is better to generate a list of symbols to export. 12647 always_export_symbols_CXX=yes 12648 if test "$aix_use_runtimelinking" = yes; then 12649 # Warning - without using the other runtime loading flags (-brtl), 12650 # -berok will link without error, but may produce a broken library. 12651 allow_undefined_flag_CXX='-berok' 12652 # Determine the default libpath from the value encoded in an empty executable. 12653 cat >conftest.$ac_ext <<_ACEOF 12654/* confdefs.h. */ 12655_ACEOF 12656cat confdefs.h >>conftest.$ac_ext 12657cat >>conftest.$ac_ext <<_ACEOF 12658/* end confdefs.h. */ 12659 12660int 12661main () 12662{ 12663 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668rm -f conftest.$ac_objext conftest$ac_exeext 12669if { (ac_try="$ac_link" 12670case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673esac 12674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12675 (eval "$ac_link") 2>conftest.er1 12676 ac_status=$? 12677 grep -v '^ *+' conftest.er1 >conftest.err 12678 rm -f conftest.er1 12679 cat conftest.err >&5 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); } && { 12682 test -z "$ac_cxx_werror_flag" || 12683 test ! -s conftest.err 12684 } && test -s conftest$ac_exeext && 12685 $as_test_x conftest$ac_exeext; then 12686 12687lt_aix_libpath_sed=' 12688 /Import File Strings/,/^$/ { 12689 /^0/ { 12690 s/^0 *\(.*\)$/\1/ 12691 p 12692 } 12693 }' 12694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12695# Check for a 64-bit object if we didn't find anything. 12696if test -z "$aix_libpath"; then 12697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12698fi 12699else 12700 echo "$as_me: failed program was:" >&5 12701sed 's/^/| /' conftest.$ac_ext >&5 12702 12703 12704fi 12705 12706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12707 conftest$ac_exeext conftest.$ac_ext 12708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12709 12710 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12711 12712 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" 12713 else 12714 if test "$host_cpu" = ia64; then 12715 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12716 allow_undefined_flag_CXX="-z nodefs" 12717 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" 12718 else 12719 # Determine the default libpath from the value encoded in an empty executable. 12720 cat >conftest.$ac_ext <<_ACEOF 12721/* confdefs.h. */ 12722_ACEOF 12723cat confdefs.h >>conftest.$ac_ext 12724cat >>conftest.$ac_ext <<_ACEOF 12725/* end confdefs.h. */ 12726 12727int 12728main () 12729{ 12730 12731 ; 12732 return 0; 12733} 12734_ACEOF 12735rm -f conftest.$ac_objext conftest$ac_exeext 12736if { (ac_try="$ac_link" 12737case "(($ac_try" in 12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12739 *) ac_try_echo=$ac_try;; 12740esac 12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12742 (eval "$ac_link") 2>conftest.er1 12743 ac_status=$? 12744 grep -v '^ *+' conftest.er1 >conftest.err 12745 rm -f conftest.er1 12746 cat conftest.err >&5 12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12748 (exit $ac_status); } && { 12749 test -z "$ac_cxx_werror_flag" || 12750 test ! -s conftest.err 12751 } && test -s conftest$ac_exeext && 12752 $as_test_x conftest$ac_exeext; then 12753 12754lt_aix_libpath_sed=' 12755 /Import File Strings/,/^$/ { 12756 /^0/ { 12757 s/^0 *\(.*\)$/\1/ 12758 p 12759 } 12760 }' 12761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12762# Check for a 64-bit object if we didn't find anything. 12763if test -z "$aix_libpath"; then 12764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12765fi 12766else 12767 echo "$as_me: failed program was:" >&5 12768sed 's/^/| /' conftest.$ac_ext >&5 12769 12770 12771fi 12772 12773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12774 conftest$ac_exeext conftest.$ac_ext 12775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12776 12777 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12778 # Warning - without using the other run time loading flags, 12779 # -berok will link without error, but may produce a broken library. 12780 no_undefined_flag_CXX=' ${wl}-bernotok' 12781 allow_undefined_flag_CXX=' ${wl}-berok' 12782 # Exported symbols can be pulled into shared objects from archives 12783 whole_archive_flag_spec_CXX='$convenience' 12784 archive_cmds_need_lc_CXX=yes 12785 # This is similar to how AIX traditionally builds its shared libraries. 12786 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' 12787 fi 12788 fi 12789 ;; 12790 12791 beos*) 12792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12793 allow_undefined_flag_CXX=unsupported 12794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12795 # support --undefined. This deserves some investigation. FIXME 12796 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12797 else 12798 ld_shlibs_CXX=no 12799 fi 12800 ;; 12801 12802 chorus*) 12803 case $cc_basename in 12804 *) 12805 # FIXME: insert proper C++ library support 12806 ld_shlibs_CXX=no 12807 ;; 12808 esac 12809 ;; 12810 12811 cygwin* | mingw* | pw32*) 12812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12813 # as there is no search path for DLLs. 12814 hardcode_libdir_flag_spec_CXX='-L$libdir' 12815 allow_undefined_flag_CXX=unsupported 12816 always_export_symbols_CXX=no 12817 enable_shared_with_static_runtimes_CXX=yes 12818 12819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12820 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' 12821 # If the export-symbols file already is a .def file (1st line 12822 # is EXPORTS), use it as is; otherwise, prepend... 12823 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12824 cp $export_symbols $output_objdir/$soname.def; 12825 else 12826 echo EXPORTS > $output_objdir/$soname.def; 12827 cat $export_symbols >> $output_objdir/$soname.def; 12828 fi~ 12829 $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' 12830 else 12831 ld_shlibs_CXX=no 12832 fi 12833 ;; 12834 darwin* | rhapsody*) 12835 case $host_os in 12836 rhapsody* | darwin1.[012]) 12837 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12838 ;; 12839 *) # Darwin 1.3 on 12840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12841 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12842 else 12843 case ${MACOSX_DEPLOYMENT_TARGET} in 12844 10.[012]) 12845 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12846 ;; 12847 10.*) 12848 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12849 ;; 12850 esac 12851 fi 12852 ;; 12853 esac 12854 archive_cmds_need_lc_CXX=no 12855 hardcode_direct_CXX=no 12856 hardcode_automatic_CXX=yes 12857 hardcode_shlibpath_var_CXX=unsupported 12858 whole_archive_flag_spec_CXX='' 12859 link_all_deplibs_CXX=yes 12860 12861 if test "$GXX" = yes ; then 12862 lt_int_apple_cc_single_mod=no 12863 output_verbose_link_cmd='echo' 12864 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12865 lt_int_apple_cc_single_mod=yes 12866 fi 12867 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12868 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12869 else 12870 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' 12871 fi 12872 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12874 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12875 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}' 12876 else 12877 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}' 12878 fi 12879 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}' 12880 else 12881 case $cc_basename in 12882 xlc*) 12883 output_verbose_link_cmd='echo' 12884 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 12885 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12887 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12888 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}' 12889 ;; 12890 *) 12891 ld_shlibs_CXX=no 12892 ;; 12893 esac 12894 fi 12895 ;; 12896 12897 dgux*) 12898 case $cc_basename in 12899 ec++*) 12900 # FIXME: insert proper C++ library support 12901 ld_shlibs_CXX=no 12902 ;; 12903 ghcx*) 12904 # Green Hills C++ Compiler 12905 # FIXME: insert proper C++ library support 12906 ld_shlibs_CXX=no 12907 ;; 12908 *) 12909 # FIXME: insert proper C++ library support 12910 ld_shlibs_CXX=no 12911 ;; 12912 esac 12913 ;; 12914 freebsd[12]*) 12915 # C++ shared libraries reported to be fairly broken before switch to ELF 12916 ld_shlibs_CXX=no 12917 ;; 12918 freebsd-elf*) 12919 archive_cmds_need_lc_CXX=no 12920 ;; 12921 freebsd* | dragonfly*) 12922 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12923 # conventions 12924 ld_shlibs_CXX=yes 12925 ;; 12926 gnu*) 12927 ;; 12928 hpux9*) 12929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12930 hardcode_libdir_separator_CXX=: 12931 export_dynamic_flag_spec_CXX='${wl}-E' 12932 hardcode_direct_CXX=yes 12933 hardcode_minus_L_CXX=yes # Not in the search PATH, 12934 # but as the default 12935 # location of the library. 12936 12937 case $cc_basename in 12938 CC*) 12939 # FIXME: insert proper C++ library support 12940 ld_shlibs_CXX=no 12941 ;; 12942 aCC*) 12943 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' 12944 # Commands to make compiler produce verbose output that lists 12945 # what "hidden" libraries, object files and flags are used when 12946 # linking a shared library. 12947 # 12948 # There doesn't appear to be a way to prevent this compiler from 12949 # explicitly linking system object files so we need to strip them 12950 # from the output so that they don't get included in the library 12951 # dependencies. 12952 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' 12953 ;; 12954 *) 12955 if test "$GXX" = yes; then 12956 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' 12957 else 12958 # FIXME: insert proper C++ library support 12959 ld_shlibs_CXX=no 12960 fi 12961 ;; 12962 esac 12963 ;; 12964 hpux10*|hpux11*) 12965 if test $with_gnu_ld = no; then 12966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12967 hardcode_libdir_separator_CXX=: 12968 12969 case $host_cpu in 12970 hppa*64*|ia64*) ;; 12971 *) 12972 export_dynamic_flag_spec_CXX='${wl}-E' 12973 ;; 12974 esac 12975 fi 12976 case $host_cpu in 12977 hppa*64*|ia64*) 12978 hardcode_direct_CXX=no 12979 hardcode_shlibpath_var_CXX=no 12980 ;; 12981 *) 12982 hardcode_direct_CXX=yes 12983 hardcode_minus_L_CXX=yes # Not in the search PATH, 12984 # but as the default 12985 # location of the library. 12986 ;; 12987 esac 12988 12989 case $cc_basename in 12990 CC*) 12991 # FIXME: insert proper C++ library support 12992 ld_shlibs_CXX=no 12993 ;; 12994 aCC*) 12995 case $host_cpu in 12996 hppa*64*) 12997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12998 ;; 12999 ia64*) 13000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13001 ;; 13002 *) 13003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13004 ;; 13005 esac 13006 # Commands to make compiler produce verbose output that lists 13007 # what "hidden" libraries, object files and flags are used when 13008 # linking a shared library. 13009 # 13010 # There doesn't appear to be a way to prevent this compiler from 13011 # explicitly linking system object files so we need to strip them 13012 # from the output so that they don't get included in the library 13013 # dependencies. 13014 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' 13015 ;; 13016 *) 13017 if test "$GXX" = yes; then 13018 if test $with_gnu_ld = no; then 13019 case $host_cpu in 13020 hppa*64*) 13021 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13022 ;; 13023 ia64*) 13024 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13025 ;; 13026 *) 13027 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' 13028 ;; 13029 esac 13030 fi 13031 else 13032 # FIXME: insert proper C++ library support 13033 ld_shlibs_CXX=no 13034 fi 13035 ;; 13036 esac 13037 ;; 13038 interix[3-9]*) 13039 hardcode_direct_CXX=no 13040 hardcode_shlibpath_var_CXX=no 13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13042 export_dynamic_flag_spec_CXX='${wl}-E' 13043 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13044 # Instead, shared libraries are loaded at an image base (0x10000000 by 13045 # default) and relocated if they conflict, which is a slow very memory 13046 # consuming and fragmenting process. To avoid this, we pick a random, 13047 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13048 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13049 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' 13050 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' 13051 ;; 13052 irix5* | irix6*) 13053 case $cc_basename in 13054 CC*) 13055 # SGI C++ 13056 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' 13057 13058 # Archives containing C++ object files must be created using 13059 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13060 # necessary to make sure instantiated templates are included 13061 # in the archive. 13062 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13063 ;; 13064 *) 13065 if test "$GXX" = yes; then 13066 if test "$with_gnu_ld" = no; then 13067 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' 13068 else 13069 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' 13070 fi 13071 fi 13072 link_all_deplibs_CXX=yes 13073 ;; 13074 esac 13075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13076 hardcode_libdir_separator_CXX=: 13077 ;; 13078 linux* | k*bsd*-gnu) 13079 case $cc_basename in 13080 KCC*) 13081 # Kuck and Associates, Inc. (KAI) C++ Compiler 13082 13083 # KCC will only create a shared library if the output file 13084 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13085 # to its proper name (with version) after linking. 13086 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' 13087 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' 13088 # Commands to make compiler produce verbose output that lists 13089 # what "hidden" libraries, object files and flags are used when 13090 # linking a shared library. 13091 # 13092 # There doesn't appear to be a way to prevent this compiler from 13093 # explicitly linking system object files so we need to strip them 13094 # from the output so that they don't get included in the library 13095 # dependencies. 13096 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' 13097 13098 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13100 13101 # Archives containing C++ object files must be created using 13102 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13103 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13104 ;; 13105 icpc*) 13106 # Intel C++ 13107 with_gnu_ld=yes 13108 # version 8.0 and above of icpc choke on multiply defined symbols 13109 # if we add $predep_objects and $postdep_objects, however 7.1 and 13110 # earlier do not add the objects themselves. 13111 case `$CC -V 2>&1` in 13112 *"Version 7."*) 13113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13114 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' 13115 ;; 13116 *) # Version 8.0 or newer 13117 tmp_idyn= 13118 case $host_cpu in 13119 ia64*) tmp_idyn=' -i_dynamic';; 13120 esac 13121 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13122 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' 13123 ;; 13124 esac 13125 archive_cmds_need_lc_CXX=no 13126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13128 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13129 ;; 13130 pgCC*) 13131 # Portland Group C++ compiler 13132 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13133 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' 13134 13135 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13137 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' 13138 ;; 13139 cxx*) 13140 # Compaq C++ 13141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13142 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' 13143 13144 runpath_var=LD_RUN_PATH 13145 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13146 hardcode_libdir_separator_CXX=: 13147 13148 # Commands to make compiler produce verbose output that lists 13149 # what "hidden" libraries, object files and flags are used when 13150 # linking a shared library. 13151 # 13152 # There doesn't appear to be a way to prevent this compiler from 13153 # explicitly linking system object files so we need to strip them 13154 # from the output so that they don't get included in the library 13155 # dependencies. 13156 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' 13157 ;; 13158 *) 13159 case `$CC -V 2>&1 | sed 5q` in 13160 *Sun\ C*) 13161 # Sun C++ 5.9 13162 no_undefined_flag_CXX=' -zdefs' 13163 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13164 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13165 hardcode_libdir_flag_spec_CXX='-R$libdir' 13166 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13167 13168 # Not sure whether something based on 13169 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13170 # would be better. 13171 output_verbose_link_cmd='echo' 13172 13173 # Archives containing C++ object files must be created using 13174 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13175 # necessary to make sure instantiated templates are included 13176 # in the archive. 13177 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13178 ;; 13179 esac 13180 ;; 13181 esac 13182 ;; 13183 lynxos*) 13184 # FIXME: insert proper C++ library support 13185 ld_shlibs_CXX=no 13186 ;; 13187 m88k*) 13188 # FIXME: insert proper C++ library support 13189 ld_shlibs_CXX=no 13190 ;; 13191 mvs*) 13192 case $cc_basename in 13193 cxx*) 13194 # FIXME: insert proper C++ library support 13195 ld_shlibs_CXX=no 13196 ;; 13197 *) 13198 # FIXME: insert proper C++ library support 13199 ld_shlibs_CXX=no 13200 ;; 13201 esac 13202 ;; 13203 netbsd*) 13204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13205 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13206 wlarc= 13207 hardcode_libdir_flag_spec_CXX='-R$libdir' 13208 hardcode_direct_CXX=yes 13209 hardcode_shlibpath_var_CXX=no 13210 fi 13211 # Workaround some broken pre-1.5 toolchains 13212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13213 ;; 13214 openbsd2*) 13215 # C++ shared libraries are fairly broken 13216 ld_shlibs_CXX=no 13217 ;; 13218 openbsd*) 13219 if test -f /usr/libexec/ld.so; then 13220 hardcode_direct_CXX=yes 13221 hardcode_shlibpath_var_CXX=no 13222 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13225 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13226 export_dynamic_flag_spec_CXX='${wl}-E' 13227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13228 fi 13229 output_verbose_link_cmd='echo' 13230 else 13231 ld_shlibs_CXX=no 13232 fi 13233 ;; 13234 osf3*) 13235 case $cc_basename in 13236 KCC*) 13237 # Kuck and Associates, Inc. (KAI) C++ Compiler 13238 13239 # KCC will only create a shared library if the output file 13240 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13241 # to its proper name (with version) after linking. 13242 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' 13243 13244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13245 hardcode_libdir_separator_CXX=: 13246 13247 # Archives containing C++ object files must be created using 13248 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13249 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13250 13251 ;; 13252 RCC*) 13253 # Rational C++ 2.4.1 13254 # FIXME: insert proper C++ library support 13255 ld_shlibs_CXX=no 13256 ;; 13257 cxx*) 13258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13259 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' 13260 13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13262 hardcode_libdir_separator_CXX=: 13263 13264 # Commands to make compiler produce verbose output that lists 13265 # what "hidden" libraries, object files and flags are used when 13266 # linking a shared library. 13267 # 13268 # There doesn't appear to be a way to prevent this compiler from 13269 # explicitly linking system object files so we need to strip them 13270 # from the output so that they don't get included in the library 13271 # dependencies. 13272 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' 13273 ;; 13274 *) 13275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13277 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' 13278 13279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13280 hardcode_libdir_separator_CXX=: 13281 13282 # Commands to make compiler produce verbose output that lists 13283 # what "hidden" libraries, object files and flags are used when 13284 # linking a shared library. 13285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13286 13287 else 13288 # FIXME: insert proper C++ library support 13289 ld_shlibs_CXX=no 13290 fi 13291 ;; 13292 esac 13293 ;; 13294 osf4* | osf5*) 13295 case $cc_basename in 13296 KCC*) 13297 # Kuck and Associates, Inc. (KAI) C++ Compiler 13298 13299 # KCC will only create a shared library if the output file 13300 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13301 # to its proper name (with version) after linking. 13302 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' 13303 13304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13305 hardcode_libdir_separator_CXX=: 13306 13307 # Archives containing C++ object files must be created using 13308 # the KAI C++ compiler. 13309 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13310 ;; 13311 RCC*) 13312 # Rational C++ 2.4.1 13313 # FIXME: insert proper C++ library support 13314 ld_shlibs_CXX=no 13315 ;; 13316 cxx*) 13317 allow_undefined_flag_CXX=' -expect_unresolved \*' 13318 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' 13319 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13320 echo "-hidden">> $lib.exp~ 13321 $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~ 13322 $rm $lib.exp' 13323 13324 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13325 hardcode_libdir_separator_CXX=: 13326 13327 # Commands to make compiler produce verbose output that lists 13328 # what "hidden" libraries, object files and flags are used when 13329 # linking a shared library. 13330 # 13331 # There doesn't appear to be a way to prevent this compiler from 13332 # explicitly linking system object files so we need to strip them 13333 # from the output so that they don't get included in the library 13334 # dependencies. 13335 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' 13336 ;; 13337 *) 13338 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13339 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13340 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' 13341 13342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13343 hardcode_libdir_separator_CXX=: 13344 13345 # Commands to make compiler produce verbose output that lists 13346 # what "hidden" libraries, object files and flags are used when 13347 # linking a shared library. 13348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13349 13350 else 13351 # FIXME: insert proper C++ library support 13352 ld_shlibs_CXX=no 13353 fi 13354 ;; 13355 esac 13356 ;; 13357 psos*) 13358 # FIXME: insert proper C++ library support 13359 ld_shlibs_CXX=no 13360 ;; 13361 sunos4*) 13362 case $cc_basename in 13363 CC*) 13364 # Sun C++ 4.x 13365 # FIXME: insert proper C++ library support 13366 ld_shlibs_CXX=no 13367 ;; 13368 lcc*) 13369 # Lucid 13370 # FIXME: insert proper C++ library support 13371 ld_shlibs_CXX=no 13372 ;; 13373 *) 13374 # FIXME: insert proper C++ library support 13375 ld_shlibs_CXX=no 13376 ;; 13377 esac 13378 ;; 13379 solaris*) 13380 case $cc_basename in 13381 CC*) 13382 # Sun C++ 4.2, 5.x and Centerline C++ 13383 archive_cmds_need_lc_CXX=yes 13384 no_undefined_flag_CXX=' -zdefs' 13385 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13386 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13387 $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' 13388 13389 hardcode_libdir_flag_spec_CXX='-R$libdir' 13390 hardcode_shlibpath_var_CXX=no 13391 case $host_os in 13392 solaris2.[0-5] | solaris2.[0-5].*) ;; 13393 *) 13394 # The compiler driver will combine and reorder linker options, 13395 # but understands `-z linker_flag'. 13396 # Supported since Solaris 2.6 (maybe 2.5.1?) 13397 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13398 ;; 13399 esac 13400 link_all_deplibs_CXX=yes 13401 13402 output_verbose_link_cmd='echo' 13403 13404 # Archives containing C++ object files must be created using 13405 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13406 # necessary to make sure instantiated templates are included 13407 # in the archive. 13408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13409 ;; 13410 gcx*) 13411 # Green Hills C++ Compiler 13412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13413 13414 # The C++ compiler must be used to create the archive. 13415 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13416 ;; 13417 *) 13418 # GNU C++ compiler with Solaris linker 13419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13420 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13421 if $CC --version | grep -v '^2\.7' > /dev/null; then 13422 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13423 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13424 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13425 13426 # Commands to make compiler produce verbose output that lists 13427 # what "hidden" libraries, object files and flags are used when 13428 # linking a shared library. 13429 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13430 else 13431 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13432 # platform. 13433 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13434 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13435 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13436 13437 # Commands to make compiler produce verbose output that lists 13438 # what "hidden" libraries, object files and flags are used when 13439 # linking a shared library. 13440 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13441 fi 13442 13443 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13444 case $host_os in 13445 solaris2.[0-5] | solaris2.[0-5].*) ;; 13446 *) 13447 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13448 ;; 13449 esac 13450 fi 13451 ;; 13452 esac 13453 ;; 13454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13455 no_undefined_flag_CXX='${wl}-z,text' 13456 archive_cmds_need_lc_CXX=no 13457 hardcode_shlibpath_var_CXX=no 13458 runpath_var='LD_RUN_PATH' 13459 13460 case $cc_basename in 13461 CC*) 13462 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13464 ;; 13465 *) 13466 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13468 ;; 13469 esac 13470 ;; 13471 sysv5* | sco3.2v5* | sco5v6*) 13472 # Note: We can NOT use -z defs as we might desire, because we do not 13473 # link with -lc, and that would cause any symbols used from libc to 13474 # always be unresolved, which means just about no library would 13475 # ever link correctly. If we're not using GNU ld we use -z text 13476 # though, which does catch some bad symbols but isn't as heavy-handed 13477 # as -z defs. 13478 # For security reasons, it is highly recommended that you always 13479 # use absolute paths for naming shared libraries, and exclude the 13480 # DT_RUNPATH tag from executables and libraries. But doing so 13481 # requires that you compile everything twice, which is a pain. 13482 # So that behaviour is only enabled if SCOABSPATH is set to a 13483 # non-empty value in the environment. Most likely only useful for 13484 # creating official distributions of packages. 13485 # This is a hack until libtool officially supports absolute path 13486 # names for shared libraries. 13487 no_undefined_flag_CXX='${wl}-z,text' 13488 allow_undefined_flag_CXX='${wl}-z,nodefs' 13489 archive_cmds_need_lc_CXX=no 13490 hardcode_shlibpath_var_CXX=no 13491 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13492 hardcode_libdir_separator_CXX=':' 13493 link_all_deplibs_CXX=yes 13494 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13495 runpath_var='LD_RUN_PATH' 13496 13497 case $cc_basename in 13498 CC*) 13499 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13500 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13501 ;; 13502 *) 13503 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13504 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13505 ;; 13506 esac 13507 ;; 13508 tandem*) 13509 case $cc_basename in 13510 NCC*) 13511 # NonStop-UX NCC 3.20 13512 # FIXME: insert proper C++ library support 13513 ld_shlibs_CXX=no 13514 ;; 13515 *) 13516 # FIXME: insert proper C++ library support 13517 ld_shlibs_CXX=no 13518 ;; 13519 esac 13520 ;; 13521 vxworks*) 13522 # FIXME: insert proper C++ library support 13523 ld_shlibs_CXX=no 13524 ;; 13525 *) 13526 # FIXME: insert proper C++ library support 13527 ld_shlibs_CXX=no 13528 ;; 13529esac 13530{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13531echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13532test "$ld_shlibs_CXX" = no && can_build_shared=no 13533 13534GCC_CXX="$GXX" 13535LD_CXX="$LD" 13536 13537 13538cat > conftest.$ac_ext <<EOF 13539class Foo 13540{ 13541public: 13542 Foo (void) { a = 0; } 13543private: 13544 int a; 13545}; 13546EOF 13547 13548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13549 (eval $ac_compile) 2>&5 13550 ac_status=$? 13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13552 (exit $ac_status); }; then 13553 # Parse the compiler output and extract the necessary 13554 # objects, libraries and library flags. 13555 13556 # Sentinel used to keep track of whether or not we are before 13557 # the conftest object file. 13558 pre_test_object_deps_done=no 13559 13560 # The `*' in the case matches for architectures that use `case' in 13561 # $output_verbose_cmd can trigger glob expansion during the loop 13562 # eval without this substitution. 13563 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13564 13565 for p in `eval $output_verbose_link_cmd`; do 13566 case $p in 13567 13568 -L* | -R* | -l*) 13569 # Some compilers place space between "-{L,R}" and the path. 13570 # Remove the space. 13571 if test $p = "-L" \ 13572 || test $p = "-R"; then 13573 prev=$p 13574 continue 13575 else 13576 prev= 13577 fi 13578 13579 if test "$pre_test_object_deps_done" = no; then 13580 case $p in 13581 -L* | -R*) 13582 # Internal compiler library paths should come after those 13583 # provided the user. The postdeps already come after the 13584 # user supplied libs so there is no need to process them. 13585 if test -z "$compiler_lib_search_path_CXX"; then 13586 compiler_lib_search_path_CXX="${prev}${p}" 13587 else 13588 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13589 fi 13590 ;; 13591 # The "-l" case would never come before the object being 13592 # linked, so don't bother handling this case. 13593 esac 13594 else 13595 if test -z "$postdeps_CXX"; then 13596 postdeps_CXX="${prev}${p}" 13597 else 13598 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13599 fi 13600 fi 13601 ;; 13602 13603 *.$objext) 13604 # This assumes that the test object file only shows up 13605 # once in the compiler output. 13606 if test "$p" = "conftest.$objext"; then 13607 pre_test_object_deps_done=yes 13608 continue 13609 fi 13610 13611 if test "$pre_test_object_deps_done" = no; then 13612 if test -z "$predep_objects_CXX"; then 13613 predep_objects_CXX="$p" 13614 else 13615 predep_objects_CXX="$predep_objects_CXX $p" 13616 fi 13617 else 13618 if test -z "$postdep_objects_CXX"; then 13619 postdep_objects_CXX="$p" 13620 else 13621 postdep_objects_CXX="$postdep_objects_CXX $p" 13622 fi 13623 fi 13624 ;; 13625 13626 *) ;; # Ignore the rest. 13627 13628 esac 13629 done 13630 13631 # Clean up. 13632 rm -f a.out a.exe 13633else 13634 echo "libtool.m4: error: problem compiling CXX test program" 13635fi 13636 13637$rm -f confest.$objext 13638 13639# PORTME: override above test on systems where it is broken 13640case $host_os in 13641interix[3-9]*) 13642 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13643 # hack all around it, let's just trust "g++" to DTRT. 13644 predep_objects_CXX= 13645 postdep_objects_CXX= 13646 postdeps_CXX= 13647 ;; 13648 13649linux*) 13650 case `$CC -V 2>&1 | sed 5q` in 13651 *Sun\ C*) 13652 # Sun C++ 5.9 13653 # 13654 # The more standards-conforming stlport4 library is 13655 # incompatible with the Cstd library. Avoid specifying 13656 # it if it's in CXXFLAGS. Ignore libCrun as 13657 # -library=stlport4 depends on it. 13658 case " $CXX $CXXFLAGS " in 13659 *" -library=stlport4 "*) 13660 solaris_use_stlport4=yes 13661 ;; 13662 esac 13663 if test "$solaris_use_stlport4" != yes; then 13664 postdeps_CXX='-library=Cstd -library=Crun' 13665 fi 13666 ;; 13667 esac 13668 ;; 13669 13670solaris*) 13671 case $cc_basename in 13672 CC*) 13673 # The more standards-conforming stlport4 library is 13674 # incompatible with the Cstd library. Avoid specifying 13675 # it if it's in CXXFLAGS. Ignore libCrun as 13676 # -library=stlport4 depends on it. 13677 case " $CXX $CXXFLAGS " in 13678 *" -library=stlport4 "*) 13679 solaris_use_stlport4=yes 13680 ;; 13681 esac 13682 13683 # Adding this requires a known-good setup of shared libraries for 13684 # Sun compiler versions before 5.6, else PIC objects from an old 13685 # archive will be linked into the output, leading to subtle bugs. 13686 if test "$solaris_use_stlport4" != yes; then 13687 postdeps_CXX='-library=Cstd -library=Crun' 13688 fi 13689 ;; 13690 esac 13691 ;; 13692esac 13693 13694 13695case " $postdeps_CXX " in 13696*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13697esac 13698 13699lt_prog_compiler_wl_CXX= 13700lt_prog_compiler_pic_CXX= 13701lt_prog_compiler_static_CXX= 13702 13703{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13704echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13705 13706 # C++ specific cases for pic, static, wl, etc. 13707 if test "$GXX" = yes; then 13708 lt_prog_compiler_wl_CXX='-Wl,' 13709 lt_prog_compiler_static_CXX='-static' 13710 13711 case $host_os in 13712 aix*) 13713 # All AIX code is PIC. 13714 if test "$host_cpu" = ia64; then 13715 # AIX 5 now supports IA64 processor 13716 lt_prog_compiler_static_CXX='-Bstatic' 13717 fi 13718 ;; 13719 amigaos*) 13720 # FIXME: we need at least 68020 code to build shared libraries, but 13721 # adding the `-m68020' flag to GCC prevents building anything better, 13722 # like `-m68040'. 13723 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13724 ;; 13725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13726 # PIC is the default for these OSes. 13727 ;; 13728 mingw* | cygwin* | os2* | pw32*) 13729 # This hack is so that the source file can tell whether it is being 13730 # built for inclusion in a dll (and should export symbols for example). 13731 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13732 # (--disable-auto-import) libraries 13733 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13734 ;; 13735 darwin* | rhapsody*) 13736 # PIC is the default on this platform 13737 # Common symbols not allowed in MH_DYLIB files 13738 lt_prog_compiler_pic_CXX='-fno-common' 13739 ;; 13740 *djgpp*) 13741 # DJGPP does not support shared libraries at all 13742 lt_prog_compiler_pic_CXX= 13743 ;; 13744 interix[3-9]*) 13745 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13746 # Instead, we relocate shared libraries at runtime. 13747 ;; 13748 sysv4*MP*) 13749 if test -d /usr/nec; then 13750 lt_prog_compiler_pic_CXX=-Kconform_pic 13751 fi 13752 ;; 13753 hpux*) 13754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13755 # not for PA HP-UX. 13756 case $host_cpu in 13757 hppa*64*|ia64*) 13758 ;; 13759 *) 13760 lt_prog_compiler_pic_CXX='-fPIC' 13761 ;; 13762 esac 13763 ;; 13764 *) 13765 lt_prog_compiler_pic_CXX='-fPIC' 13766 ;; 13767 esac 13768 else 13769 case $host_os in 13770 aix4* | aix5*) 13771 # All AIX code is PIC. 13772 if test "$host_cpu" = ia64; then 13773 # AIX 5 now supports IA64 processor 13774 lt_prog_compiler_static_CXX='-Bstatic' 13775 else 13776 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13777 fi 13778 ;; 13779 chorus*) 13780 case $cc_basename in 13781 cxch68*) 13782 # Green Hills C++ Compiler 13783 # _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" 13784 ;; 13785 esac 13786 ;; 13787 darwin*) 13788 # PIC is the default on this platform 13789 # Common symbols not allowed in MH_DYLIB files 13790 case $cc_basename in 13791 xlc*) 13792 lt_prog_compiler_pic_CXX='-qnocommon' 13793 lt_prog_compiler_wl_CXX='-Wl,' 13794 ;; 13795 esac 13796 ;; 13797 dgux*) 13798 case $cc_basename in 13799 ec++*) 13800 lt_prog_compiler_pic_CXX='-KPIC' 13801 ;; 13802 ghcx*) 13803 # Green Hills C++ Compiler 13804 lt_prog_compiler_pic_CXX='-pic' 13805 ;; 13806 *) 13807 ;; 13808 esac 13809 ;; 13810 freebsd* | dragonfly*) 13811 # FreeBSD uses GNU C++ 13812 ;; 13813 hpux9* | hpux10* | hpux11*) 13814 case $cc_basename in 13815 CC*) 13816 lt_prog_compiler_wl_CXX='-Wl,' 13817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13818 if test "$host_cpu" != ia64; then 13819 lt_prog_compiler_pic_CXX='+Z' 13820 fi 13821 ;; 13822 aCC*) 13823 lt_prog_compiler_wl_CXX='-Wl,' 13824 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13825 case $host_cpu in 13826 hppa*64*|ia64*) 13827 # +Z the default 13828 ;; 13829 *) 13830 lt_prog_compiler_pic_CXX='+Z' 13831 ;; 13832 esac 13833 ;; 13834 *) 13835 ;; 13836 esac 13837 ;; 13838 interix*) 13839 # This is c89, which is MS Visual C++ (no shared libs) 13840 # Anyone wants to do a port? 13841 ;; 13842 irix5* | irix6* | nonstopux*) 13843 case $cc_basename in 13844 CC*) 13845 lt_prog_compiler_wl_CXX='-Wl,' 13846 lt_prog_compiler_static_CXX='-non_shared' 13847 # CC pic flag -KPIC is the default. 13848 ;; 13849 *) 13850 ;; 13851 esac 13852 ;; 13853 linux* | k*bsd*-gnu) 13854 case $cc_basename in 13855 KCC*) 13856 # KAI C++ Compiler 13857 lt_prog_compiler_wl_CXX='--backend -Wl,' 13858 lt_prog_compiler_pic_CXX='-fPIC' 13859 ;; 13860 icpc* | ecpc*) 13861 # Intel C++ 13862 lt_prog_compiler_wl_CXX='-Wl,' 13863 lt_prog_compiler_pic_CXX='-KPIC' 13864 lt_prog_compiler_static_CXX='-static' 13865 ;; 13866 pgCC*) 13867 # Portland Group C++ compiler. 13868 lt_prog_compiler_wl_CXX='-Wl,' 13869 lt_prog_compiler_pic_CXX='-fpic' 13870 lt_prog_compiler_static_CXX='-Bstatic' 13871 ;; 13872 cxx*) 13873 # Compaq C++ 13874 # Make sure the PIC flag is empty. It appears that all Alpha 13875 # Linux and Compaq Tru64 Unix objects are PIC. 13876 lt_prog_compiler_pic_CXX= 13877 lt_prog_compiler_static_CXX='-non_shared' 13878 ;; 13879 *) 13880 case `$CC -V 2>&1 | sed 5q` in 13881 *Sun\ C*) 13882 # Sun C++ 5.9 13883 lt_prog_compiler_pic_CXX='-KPIC' 13884 lt_prog_compiler_static_CXX='-Bstatic' 13885 lt_prog_compiler_wl_CXX='-Qoption ld ' 13886 ;; 13887 esac 13888 ;; 13889 esac 13890 ;; 13891 lynxos*) 13892 ;; 13893 m88k*) 13894 ;; 13895 mvs*) 13896 case $cc_basename in 13897 cxx*) 13898 lt_prog_compiler_pic_CXX='-W c,exportall' 13899 ;; 13900 *) 13901 ;; 13902 esac 13903 ;; 13904 netbsd*) 13905 ;; 13906 osf3* | osf4* | osf5*) 13907 case $cc_basename in 13908 KCC*) 13909 lt_prog_compiler_wl_CXX='--backend -Wl,' 13910 ;; 13911 RCC*) 13912 # Rational C++ 2.4.1 13913 lt_prog_compiler_pic_CXX='-pic' 13914 ;; 13915 cxx*) 13916 # Digital/Compaq C++ 13917 lt_prog_compiler_wl_CXX='-Wl,' 13918 # Make sure the PIC flag is empty. It appears that all Alpha 13919 # Linux and Compaq Tru64 Unix objects are PIC. 13920 lt_prog_compiler_pic_CXX= 13921 lt_prog_compiler_static_CXX='-non_shared' 13922 ;; 13923 *) 13924 ;; 13925 esac 13926 ;; 13927 psos*) 13928 ;; 13929 solaris*) 13930 case $cc_basename in 13931 CC*) 13932 # Sun C++ 4.2, 5.x and Centerline C++ 13933 lt_prog_compiler_pic_CXX='-KPIC' 13934 lt_prog_compiler_static_CXX='-Bstatic' 13935 lt_prog_compiler_wl_CXX='-Qoption ld ' 13936 ;; 13937 gcx*) 13938 # Green Hills C++ Compiler 13939 lt_prog_compiler_pic_CXX='-PIC' 13940 ;; 13941 *) 13942 ;; 13943 esac 13944 ;; 13945 sunos4*) 13946 case $cc_basename in 13947 CC*) 13948 # Sun C++ 4.x 13949 lt_prog_compiler_pic_CXX='-pic' 13950 lt_prog_compiler_static_CXX='-Bstatic' 13951 ;; 13952 lcc*) 13953 # Lucid 13954 lt_prog_compiler_pic_CXX='-pic' 13955 ;; 13956 *) 13957 ;; 13958 esac 13959 ;; 13960 tandem*) 13961 case $cc_basename in 13962 NCC*) 13963 # NonStop-UX NCC 3.20 13964 lt_prog_compiler_pic_CXX='-KPIC' 13965 ;; 13966 *) 13967 ;; 13968 esac 13969 ;; 13970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13971 case $cc_basename in 13972 CC*) 13973 lt_prog_compiler_wl_CXX='-Wl,' 13974 lt_prog_compiler_pic_CXX='-KPIC' 13975 lt_prog_compiler_static_CXX='-Bstatic' 13976 ;; 13977 esac 13978 ;; 13979 vxworks*) 13980 ;; 13981 *) 13982 lt_prog_compiler_can_build_shared_CXX=no 13983 ;; 13984 esac 13985 fi 13986 13987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13988echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13989 13990# 13991# Check to make sure the PIC flag actually works. 13992# 13993if test -n "$lt_prog_compiler_pic_CXX"; then 13994 13995{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13996echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13997if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13998 echo $ECHO_N "(cached) $ECHO_C" >&6 13999else 14000 lt_prog_compiler_pic_works_CXX=no 14001 ac_outfile=conftest.$ac_objext 14002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14003 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14004 # Insert the option either (1) after the last *FLAGS variable, or 14005 # (2) before a word containing "conftest.", or (3) at the end. 14006 # Note that $ac_compile itself does not contain backslashes and begins 14007 # with a dollar sign (not a hyphen), so the echo should work correctly. 14008 # The option is referenced via a variable to avoid confusing sed. 14009 lt_compile=`echo "$ac_compile" | $SED \ 14010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14012 -e 's:$: $lt_compiler_flag:'` 14013 (eval echo "\"\$as_me:14013: $lt_compile\"" >&5) 14014 (eval "$lt_compile" 2>conftest.err) 14015 ac_status=$? 14016 cat conftest.err >&5 14017 echo "$as_me:14017: \$? = $ac_status" >&5 14018 if (exit $ac_status) && test -s "$ac_outfile"; then 14019 # The compiler can only warn and ignore the option if not recognized 14020 # So say no if there are warnings other than the usual output. 14021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14024 lt_prog_compiler_pic_works_CXX=yes 14025 fi 14026 fi 14027 $rm conftest* 14028 14029fi 14030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 14031echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 14032 14033if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 14034 case $lt_prog_compiler_pic_CXX in 14035 "" | " "*) ;; 14036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14037 esac 14038else 14039 lt_prog_compiler_pic_CXX= 14040 lt_prog_compiler_can_build_shared_CXX=no 14041fi 14042 14043fi 14044case $host_os in 14045 # For platforms which do not support PIC, -DPIC is meaningless: 14046 *djgpp*) 14047 lt_prog_compiler_pic_CXX= 14048 ;; 14049 *) 14050 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14051 ;; 14052esac 14053 14054# 14055# Check to make sure the static flag actually works. 14056# 14057wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14058{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14059echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14060if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 14061 echo $ECHO_N "(cached) $ECHO_C" >&6 14062else 14063 lt_prog_compiler_static_works_CXX=no 14064 save_LDFLAGS="$LDFLAGS" 14065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14066 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14068 # The linker can only warn and ignore the option if not recognized 14069 # So say no if there are warnings 14070 if test -s conftest.err; then 14071 # Append any errors to the config.log. 14072 cat conftest.err 1>&5 14073 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14075 if diff conftest.exp conftest.er2 >/dev/null; then 14076 lt_prog_compiler_static_works_CXX=yes 14077 fi 14078 else 14079 lt_prog_compiler_static_works_CXX=yes 14080 fi 14081 fi 14082 $rm conftest* 14083 LDFLAGS="$save_LDFLAGS" 14084 14085fi 14086{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 14087echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 14088 14089if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 14090 : 14091else 14092 lt_prog_compiler_static_CXX= 14093fi 14094 14095 14096{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14097echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14098if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14099 echo $ECHO_N "(cached) $ECHO_C" >&6 14100else 14101 lt_cv_prog_compiler_c_o_CXX=no 14102 $rm -r conftest 2>/dev/null 14103 mkdir conftest 14104 cd conftest 14105 mkdir out 14106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14107 14108 lt_compiler_flag="-o out/conftest2.$ac_objext" 14109 # Insert the option either (1) after the last *FLAGS variable, or 14110 # (2) before a word containing "conftest.", or (3) at the end. 14111 # Note that $ac_compile itself does not contain backslashes and begins 14112 # with a dollar sign (not a hyphen), so the echo should work correctly. 14113 lt_compile=`echo "$ac_compile" | $SED \ 14114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14116 -e 's:$: $lt_compiler_flag:'` 14117 (eval echo "\"\$as_me:14117: $lt_compile\"" >&5) 14118 (eval "$lt_compile" 2>out/conftest.err) 14119 ac_status=$? 14120 cat out/conftest.err >&5 14121 echo "$as_me:14121: \$? = $ac_status" >&5 14122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14123 then 14124 # The compiler can only warn and ignore the option if not recognized 14125 # So say no if there are warnings 14126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14129 lt_cv_prog_compiler_c_o_CXX=yes 14130 fi 14131 fi 14132 chmod u+w . 2>&5 14133 $rm conftest* 14134 # SGI C++ compiler will create directory out/ii_files/ for 14135 # template instantiation 14136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14137 $rm out/* && rmdir out 14138 cd .. 14139 rmdir conftest 14140 $rm conftest* 14141 14142fi 14143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14144echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14145 14146 14147hard_links="nottested" 14148if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14149 # do not overwrite the value of need_locks provided by the user 14150 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14151echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14152 hard_links=yes 14153 $rm conftest* 14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14155 touch conftest.a 14156 ln conftest.a conftest.b 2>&5 || hard_links=no 14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14158 { echo "$as_me:$LINENO: result: $hard_links" >&5 14159echo "${ECHO_T}$hard_links" >&6; } 14160 if test "$hard_links" = no; then 14161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14162echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14163 need_locks=warn 14164 fi 14165else 14166 need_locks=no 14167fi 14168 14169{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14170echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14171 14172 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14173 case $host_os in 14174 aix4* | aix5*) 14175 # If we're using GNU nm, then we don't want the "-C" option. 14176 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14178 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' 14179 else 14180 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' 14181 fi 14182 ;; 14183 pw32*) 14184 export_symbols_cmds_CXX="$ltdll_cmds" 14185 ;; 14186 cygwin* | mingw*) 14187 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' 14188 ;; 14189 *) 14190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14191 ;; 14192 esac 14193 14194{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14195echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14196test "$ld_shlibs_CXX" = no && can_build_shared=no 14197 14198# 14199# Do we need to explicitly link libc? 14200# 14201case "x$archive_cmds_need_lc_CXX" in 14202x|xyes) 14203 # Assume -lc should be added 14204 archive_cmds_need_lc_CXX=yes 14205 14206 if test "$enable_shared" = yes && test "$GCC" = yes; then 14207 case $archive_cmds_CXX in 14208 *'~'*) 14209 # FIXME: we may have to deal with multi-command sequences. 14210 ;; 14211 '$CC '*) 14212 # Test whether the compiler implicitly links with -lc since on some 14213 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14214 # to ld, don't add -lc before -lgcc. 14215 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14217 $rm conftest* 14218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14219 14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14221 (eval $ac_compile) 2>&5 14222 ac_status=$? 14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14224 (exit $ac_status); } 2>conftest.err; then 14225 soname=conftest 14226 lib=conftest 14227 libobjs=conftest.$ac_objext 14228 deplibs= 14229 wl=$lt_prog_compiler_wl_CXX 14230 pic_flag=$lt_prog_compiler_pic_CXX 14231 compiler_flags=-v 14232 linker_flags=-v 14233 verstring= 14234 output_objdir=. 14235 libname=conftest 14236 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14237 allow_undefined_flag_CXX= 14238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14239 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14240 ac_status=$? 14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14242 (exit $ac_status); } 14243 then 14244 archive_cmds_need_lc_CXX=no 14245 else 14246 archive_cmds_need_lc_CXX=yes 14247 fi 14248 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14249 else 14250 cat conftest.err 1>&5 14251 fi 14252 $rm conftest* 14253 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14254echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14255 ;; 14256 esac 14257 fi 14258 ;; 14259esac 14260 14261{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14262echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14263library_names_spec= 14264libname_spec='lib$name' 14265soname_spec= 14266shrext_cmds=".so" 14267postinstall_cmds= 14268postuninstall_cmds= 14269finish_cmds= 14270finish_eval= 14271shlibpath_var= 14272shlibpath_overrides_runpath=unknown 14273version_type=none 14274dynamic_linker="$host_os ld.so" 14275sys_lib_dlsearch_path_spec="/lib /usr/lib" 14276 14277need_lib_prefix=unknown 14278hardcode_into_libs=no 14279 14280# when you set need_version to no, make sure it does not cause -set_version 14281# flags to be left without arguments 14282need_version=unknown 14283 14284case $host_os in 14285aix3*) 14286 version_type=linux 14287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14288 shlibpath_var=LIBPATH 14289 14290 # AIX 3 has no versioning support, so we append a major version to the name. 14291 soname_spec='${libname}${release}${shared_ext}$major' 14292 ;; 14293 14294aix4* | aix5*) 14295 version_type=linux 14296 need_lib_prefix=no 14297 need_version=no 14298 hardcode_into_libs=yes 14299 if test "$host_cpu" = ia64; then 14300 # AIX 5 supports IA64 14301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14302 shlibpath_var=LD_LIBRARY_PATH 14303 else 14304 # With GCC up to 2.95.x, collect2 would create an import file 14305 # for dependence libraries. The import file would start with 14306 # the line `#! .'. This would cause the generated library to 14307 # depend on `.', always an invalid library. This was fixed in 14308 # development snapshots of GCC prior to 3.0. 14309 case $host_os in 14310 aix4 | aix4.[01] | aix4.[01].*) 14311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14312 echo ' yes ' 14313 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14314 : 14315 else 14316 can_build_shared=no 14317 fi 14318 ;; 14319 esac 14320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14321 # soname into executable. Probably we can add versioning support to 14322 # collect2, so additional links can be useful in future. 14323 if test "$aix_use_runtimelinking" = yes; then 14324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14325 # instead of lib<name>.a to let people know that these are not 14326 # typical AIX shared libraries. 14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14328 else 14329 # We preserve .a as extension for shared libraries through AIX4.2 14330 # and later when we are not doing run time linking. 14331 library_names_spec='${libname}${release}.a $libname.a' 14332 soname_spec='${libname}${release}${shared_ext}$major' 14333 fi 14334 shlibpath_var=LIBPATH 14335 fi 14336 ;; 14337 14338amigaos*) 14339 library_names_spec='$libname.ixlibrary $libname.a' 14340 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14341 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' 14342 ;; 14343 14344beos*) 14345 library_names_spec='${libname}${shared_ext}' 14346 dynamic_linker="$host_os ld.so" 14347 shlibpath_var=LIBRARY_PATH 14348 ;; 14349 14350bsdi[45]*) 14351 version_type=linux 14352 need_version=no 14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14354 soname_spec='${libname}${release}${shared_ext}$major' 14355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14356 shlibpath_var=LD_LIBRARY_PATH 14357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14359 # the default ld.so.conf also contains /usr/contrib/lib and 14360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14361 # libtool to hard-code these into programs 14362 ;; 14363 14364cygwin* | mingw* | pw32*) 14365 version_type=windows 14366 shrext_cmds=".dll" 14367 need_version=no 14368 need_lib_prefix=no 14369 14370 case $GCC,$host_os in 14371 yes,cygwin* | yes,mingw* | yes,pw32*) 14372 library_names_spec='$libname.dll.a' 14373 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14374 postinstall_cmds='base_file=`basename \${file}`~ 14375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14376 dldir=$destdir/`dirname \$dlpath`~ 14377 test -d \$dldir || mkdir -p \$dldir~ 14378 $install_prog $dir/$dlname \$dldir/$dlname~ 14379 chmod a+x \$dldir/$dlname' 14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14381 dlpath=$dir/\$dldll~ 14382 $rm \$dlpath' 14383 shlibpath_overrides_runpath=yes 14384 14385 case $host_os in 14386 cygwin*) 14387 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14388 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14389 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14390 ;; 14391 mingw*) 14392 # MinGW DLLs use traditional 'lib' prefix 14393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14395 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14396 # It is most probably a Windows format PATH printed by 14397 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14398 # path with ; separators, and with drive letters. We can handle the 14399 # drive letters (cygwin fileutils understands them), so leave them, 14400 # especially as we might pass files found there to a mingw objdump, 14401 # which wouldn't understand a cygwinified path. Ahh. 14402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14403 else 14404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14405 fi 14406 ;; 14407 pw32*) 14408 # pw32 DLLs use 'pw' prefix rather than 'lib' 14409 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14410 ;; 14411 esac 14412 ;; 14413 14414 *) 14415 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14416 ;; 14417 esac 14418 dynamic_linker='Win32 ld.exe' 14419 # FIXME: first we should search . and the directory the executable is in 14420 shlibpath_var=PATH 14421 ;; 14422 14423darwin* | rhapsody*) 14424 dynamic_linker="$host_os dyld" 14425 version_type=darwin 14426 need_lib_prefix=no 14427 need_version=no 14428 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14429 soname_spec='${libname}${release}${major}$shared_ext' 14430 shlibpath_overrides_runpath=yes 14431 shlibpath_var=DYLD_LIBRARY_PATH 14432 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14433 14434 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14435 ;; 14436 14437dgux*) 14438 version_type=linux 14439 need_lib_prefix=no 14440 need_version=no 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 shlibpath_var=LD_LIBRARY_PATH 14444 ;; 14445 14446freebsd1*) 14447 dynamic_linker=no 14448 ;; 14449 14450freebsd* | dragonfly*) 14451 # DragonFly does not have aout. When/if they implement a new 14452 # versioning mechanism, adjust this. 14453 if test -x /usr/bin/objformat; then 14454 objformat=`/usr/bin/objformat` 14455 else 14456 case $host_os in 14457 freebsd[123]*) objformat=aout ;; 14458 *) objformat=elf ;; 14459 esac 14460 fi 14461 version_type=freebsd-$objformat 14462 case $version_type in 14463 freebsd-elf*) 14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14465 need_version=no 14466 need_lib_prefix=no 14467 ;; 14468 freebsd-*) 14469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14470 need_version=yes 14471 ;; 14472 esac 14473 shlibpath_var=LD_LIBRARY_PATH 14474 case $host_os in 14475 freebsd2*) 14476 shlibpath_overrides_runpath=yes 14477 ;; 14478 freebsd3.[01]* | freebsdelf3.[01]*) 14479 shlibpath_overrides_runpath=yes 14480 hardcode_into_libs=yes 14481 ;; 14482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14484 shlibpath_overrides_runpath=no 14485 hardcode_into_libs=yes 14486 ;; 14487 *) # from 4.6 on, and DragonFly 14488 shlibpath_overrides_runpath=yes 14489 hardcode_into_libs=yes 14490 ;; 14491 esac 14492 ;; 14493 14494gnu*) 14495 version_type=linux 14496 need_lib_prefix=no 14497 need_version=no 14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14499 soname_spec='${libname}${release}${shared_ext}$major' 14500 shlibpath_var=LD_LIBRARY_PATH 14501 hardcode_into_libs=yes 14502 ;; 14503 14504hpux9* | hpux10* | hpux11*) 14505 # Give a soname corresponding to the major version so that dld.sl refuses to 14506 # link against other versions. 14507 version_type=sunos 14508 need_lib_prefix=no 14509 need_version=no 14510 case $host_cpu in 14511 ia64*) 14512 shrext_cmds='.so' 14513 hardcode_into_libs=yes 14514 dynamic_linker="$host_os dld.so" 14515 shlibpath_var=LD_LIBRARY_PATH 14516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14518 soname_spec='${libname}${release}${shared_ext}$major' 14519 if test "X$HPUX_IA64_MODE" = X32; then 14520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14521 else 14522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14523 fi 14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14525 ;; 14526 hppa*64*) 14527 shrext_cmds='.sl' 14528 hardcode_into_libs=yes 14529 dynamic_linker="$host_os dld.sl" 14530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14533 soname_spec='${libname}${release}${shared_ext}$major' 14534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14536 ;; 14537 *) 14538 shrext_cmds='.sl' 14539 dynamic_linker="$host_os dld.sl" 14540 shlibpath_var=SHLIB_PATH 14541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14543 soname_spec='${libname}${release}${shared_ext}$major' 14544 ;; 14545 esac 14546 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14547 postinstall_cmds='chmod 555 $lib' 14548 ;; 14549 14550interix[3-9]*) 14551 version_type=linux 14552 need_lib_prefix=no 14553 need_version=no 14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14555 soname_spec='${libname}${release}${shared_ext}$major' 14556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14557 shlibpath_var=LD_LIBRARY_PATH 14558 shlibpath_overrides_runpath=no 14559 hardcode_into_libs=yes 14560 ;; 14561 14562irix5* | irix6* | nonstopux*) 14563 case $host_os in 14564 nonstopux*) version_type=nonstopux ;; 14565 *) 14566 if test "$lt_cv_prog_gnu_ld" = yes; then 14567 version_type=linux 14568 else 14569 version_type=irix 14570 fi ;; 14571 esac 14572 need_lib_prefix=no 14573 need_version=no 14574 soname_spec='${libname}${release}${shared_ext}$major' 14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14576 case $host_os in 14577 irix5* | nonstopux*) 14578 libsuff= shlibsuff= 14579 ;; 14580 *) 14581 case $LD in # libtool.m4 will add one of these switches to LD 14582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14583 libsuff= shlibsuff= libmagic=32-bit;; 14584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14585 libsuff=32 shlibsuff=N32 libmagic=N32;; 14586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14587 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14588 *) libsuff= shlibsuff= libmagic=never-match;; 14589 esac 14590 ;; 14591 esac 14592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14593 shlibpath_overrides_runpath=no 14594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14596 hardcode_into_libs=yes 14597 ;; 14598 14599# No shared lib support for Linux oldld, aout, or coff. 14600linux*oldld* | linux*aout* | linux*coff*) 14601 dynamic_linker=no 14602 ;; 14603 14604# This must be Linux ELF. 14605linux* | k*bsd*-gnu) 14606 version_type=linux 14607 need_lib_prefix=no 14608 need_version=no 14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14610 soname_spec='${libname}${release}${shared_ext}$major' 14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14612 shlibpath_var=LD_LIBRARY_PATH 14613 shlibpath_overrides_runpath=no 14614 # This implies no fast_install, which is unacceptable. 14615 # Some rework will be needed to allow for fast_install 14616 # before this can be enabled. 14617 hardcode_into_libs=yes 14618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14620 14621 # Append ld.so.conf contents to the search path 14622 if test -f /etc/ld.so.conf; then 14623 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14624 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14625 fi 14626 14627 # We used to test for /lib/ld.so.1 and disable shared libraries on 14628 # powerpc, because MkLinux only supported shared libraries with the 14629 # GNU dynamic linker. Since this was broken with cross compilers, 14630 # most powerpc-linux boxes support dynamic linking these days and 14631 # people can always --disable-shared, the test was removed, and we 14632 # assume the GNU/Linux dynamic linker is in use. 14633 dynamic_linker='GNU/Linux ld.so' 14634 ;; 14635 14636netbsd*) 14637 version_type=sunos 14638 need_lib_prefix=no 14639 need_version=no 14640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14643 dynamic_linker='NetBSD (a.out) ld.so' 14644 else 14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14646 soname_spec='${libname}${release}${shared_ext}$major' 14647 dynamic_linker='NetBSD ld.elf_so' 14648 fi 14649 shlibpath_var=LD_LIBRARY_PATH 14650 shlibpath_overrides_runpath=yes 14651 hardcode_into_libs=yes 14652 ;; 14653 14654newsos6) 14655 version_type=linux 14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14657 shlibpath_var=LD_LIBRARY_PATH 14658 shlibpath_overrides_runpath=yes 14659 ;; 14660 14661nto-qnx*) 14662 version_type=linux 14663 need_lib_prefix=no 14664 need_version=no 14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14666 soname_spec='${libname}${release}${shared_ext}$major' 14667 shlibpath_var=LD_LIBRARY_PATH 14668 shlibpath_overrides_runpath=yes 14669 ;; 14670 14671openbsd*) 14672 version_type=sunos 14673 sys_lib_dlsearch_path_spec="/usr/lib" 14674 need_lib_prefix=no 14675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14676 case $host_os in 14677 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14678 *) need_version=no ;; 14679 esac 14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14682 shlibpath_var=LD_LIBRARY_PATH 14683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14684 case $host_os in 14685 openbsd2.[89] | openbsd2.[89].*) 14686 shlibpath_overrides_runpath=no 14687 ;; 14688 *) 14689 shlibpath_overrides_runpath=yes 14690 ;; 14691 esac 14692 else 14693 shlibpath_overrides_runpath=yes 14694 fi 14695 ;; 14696 14697os2*) 14698 libname_spec='$name' 14699 shrext_cmds=".dll" 14700 need_lib_prefix=no 14701 library_names_spec='$libname${shared_ext} $libname.a' 14702 dynamic_linker='OS/2 ld.exe' 14703 shlibpath_var=LIBPATH 14704 ;; 14705 14706osf3* | osf4* | osf5*) 14707 version_type=osf 14708 need_lib_prefix=no 14709 need_version=no 14710 soname_spec='${libname}${release}${shared_ext}$major' 14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14712 shlibpath_var=LD_LIBRARY_PATH 14713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14715 ;; 14716 14717rdos*) 14718 dynamic_linker=no 14719 ;; 14720 14721solaris*) 14722 version_type=linux 14723 need_lib_prefix=no 14724 need_version=no 14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14726 soname_spec='${libname}${release}${shared_ext}$major' 14727 shlibpath_var=LD_LIBRARY_PATH 14728 shlibpath_overrides_runpath=yes 14729 hardcode_into_libs=yes 14730 # ldd complains unless libraries are executable 14731 postinstall_cmds='chmod +x $lib' 14732 ;; 14733 14734sunos4*) 14735 version_type=sunos 14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14738 shlibpath_var=LD_LIBRARY_PATH 14739 shlibpath_overrides_runpath=yes 14740 if test "$with_gnu_ld" = yes; then 14741 need_lib_prefix=no 14742 fi 14743 need_version=yes 14744 ;; 14745 14746sysv4 | sysv4.3*) 14747 version_type=linux 14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14749 soname_spec='${libname}${release}${shared_ext}$major' 14750 shlibpath_var=LD_LIBRARY_PATH 14751 case $host_vendor in 14752 sni) 14753 shlibpath_overrides_runpath=no 14754 need_lib_prefix=no 14755 export_dynamic_flag_spec='${wl}-Blargedynsym' 14756 runpath_var=LD_RUN_PATH 14757 ;; 14758 siemens) 14759 need_lib_prefix=no 14760 ;; 14761 motorola) 14762 need_lib_prefix=no 14763 need_version=no 14764 shlibpath_overrides_runpath=no 14765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14766 ;; 14767 esac 14768 ;; 14769 14770sysv4*MP*) 14771 if test -d /usr/nec ;then 14772 version_type=linux 14773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14774 soname_spec='$libname${shared_ext}.$major' 14775 shlibpath_var=LD_LIBRARY_PATH 14776 fi 14777 ;; 14778 14779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14780 version_type=freebsd-elf 14781 need_lib_prefix=no 14782 need_version=no 14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14784 soname_spec='${libname}${release}${shared_ext}$major' 14785 shlibpath_var=LD_LIBRARY_PATH 14786 hardcode_into_libs=yes 14787 if test "$with_gnu_ld" = yes; then 14788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14789 shlibpath_overrides_runpath=no 14790 else 14791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14792 shlibpath_overrides_runpath=yes 14793 case $host_os in 14794 sco3.2v5*) 14795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14796 ;; 14797 esac 14798 fi 14799 sys_lib_dlsearch_path_spec='/usr/lib' 14800 ;; 14801 14802uts4*) 14803 version_type=linux 14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14805 soname_spec='${libname}${release}${shared_ext}$major' 14806 shlibpath_var=LD_LIBRARY_PATH 14807 ;; 14808 14809*) 14810 dynamic_linker=no 14811 ;; 14812esac 14813{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14814echo "${ECHO_T}$dynamic_linker" >&6; } 14815test "$dynamic_linker" = no && can_build_shared=no 14816 14817variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14818if test "$GCC" = yes; then 14819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14820fi 14821 14822{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14823echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14824hardcode_action_CXX= 14825if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14826 test -n "$runpath_var_CXX" || \ 14827 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14828 14829 # We can hardcode non-existant directories. 14830 if test "$hardcode_direct_CXX" != no && 14831 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14832 # have to relink, otherwise we might link with an installed library 14833 # when we should be linking with a yet-to-be-installed one 14834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14835 test "$hardcode_minus_L_CXX" != no; then 14836 # Linking always hardcodes the temporary library directory. 14837 hardcode_action_CXX=relink 14838 else 14839 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14840 hardcode_action_CXX=immediate 14841 fi 14842else 14843 # We cannot hardcode anything, or else we can only hardcode existing 14844 # directories. 14845 hardcode_action_CXX=unsupported 14846fi 14847{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14848echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14849 14850if test "$hardcode_action_CXX" = relink; then 14851 # Fast installation is not supported 14852 enable_fast_install=no 14853elif test "$shlibpath_overrides_runpath" = yes || 14854 test "$enable_shared" = no; then 14855 # Fast installation is not necessary 14856 enable_fast_install=needless 14857fi 14858 14859 14860# The else clause should only fire when bootstrapping the 14861# libtool distribution, otherwise you forgot to ship ltmain.sh 14862# with your package, and you will get complaints that there are 14863# no rules to generate ltmain.sh. 14864if test -f "$ltmain"; then 14865 # See if we are running on zsh, and set the options which allow our commands through 14866 # without removal of \ escapes. 14867 if test -n "${ZSH_VERSION+set}" ; then 14868 setopt NO_GLOB_SUBST 14869 fi 14870 # Now quote all the things that may contain metacharacters while being 14871 # careful not to overquote the AC_SUBSTed values. We take copies of the 14872 # variables and quote the copies for generation of the libtool script. 14873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14874 SED SHELL STRIP \ 14875 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14876 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14877 deplibs_check_method reload_flag reload_cmds need_locks \ 14878 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14879 lt_cv_sys_global_symbol_to_c_name_address \ 14880 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14881 old_postinstall_cmds old_postuninstall_cmds \ 14882 compiler_CXX \ 14883 CC_CXX \ 14884 LD_CXX \ 14885 lt_prog_compiler_wl_CXX \ 14886 lt_prog_compiler_pic_CXX \ 14887 lt_prog_compiler_static_CXX \ 14888 lt_prog_compiler_no_builtin_flag_CXX \ 14889 export_dynamic_flag_spec_CXX \ 14890 thread_safe_flag_spec_CXX \ 14891 whole_archive_flag_spec_CXX \ 14892 enable_shared_with_static_runtimes_CXX \ 14893 old_archive_cmds_CXX \ 14894 old_archive_from_new_cmds_CXX \ 14895 predep_objects_CXX \ 14896 postdep_objects_CXX \ 14897 predeps_CXX \ 14898 postdeps_CXX \ 14899 compiler_lib_search_path_CXX \ 14900 archive_cmds_CXX \ 14901 archive_expsym_cmds_CXX \ 14902 postinstall_cmds_CXX \ 14903 postuninstall_cmds_CXX \ 14904 old_archive_from_expsyms_cmds_CXX \ 14905 allow_undefined_flag_CXX \ 14906 no_undefined_flag_CXX \ 14907 export_symbols_cmds_CXX \ 14908 hardcode_libdir_flag_spec_CXX \ 14909 hardcode_libdir_flag_spec_ld_CXX \ 14910 hardcode_libdir_separator_CXX \ 14911 hardcode_automatic_CXX \ 14912 module_cmds_CXX \ 14913 module_expsym_cmds_CXX \ 14914 lt_cv_prog_compiler_c_o_CXX \ 14915 fix_srcfile_path_CXX \ 14916 exclude_expsyms_CXX \ 14917 include_expsyms_CXX; do 14918 14919 case $var in 14920 old_archive_cmds_CXX | \ 14921 old_archive_from_new_cmds_CXX | \ 14922 archive_cmds_CXX | \ 14923 archive_expsym_cmds_CXX | \ 14924 module_cmds_CXX | \ 14925 module_expsym_cmds_CXX | \ 14926 old_archive_from_expsyms_cmds_CXX | \ 14927 export_symbols_cmds_CXX | \ 14928 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14929 postinstall_cmds | postuninstall_cmds | \ 14930 old_postinstall_cmds | old_postuninstall_cmds | \ 14931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14932 # Double-quote double-evaled strings. 14933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14934 ;; 14935 *) 14936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14937 ;; 14938 esac 14939 done 14940 14941 case $lt_echo in 14942 *'\$0 --fallback-echo"') 14943 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14944 ;; 14945 esac 14946 14947cfgfile="$ofile" 14948 14949 cat <<__EOF__ >> "$cfgfile" 14950# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14951 14952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14953 14954# Shell to use when invoking shell scripts. 14955SHELL=$lt_SHELL 14956 14957# Whether or not to build shared libraries. 14958build_libtool_libs=$enable_shared 14959 14960# Whether or not to build static libraries. 14961build_old_libs=$enable_static 14962 14963# Whether or not to add -lc for building shared libraries. 14964build_libtool_need_lc=$archive_cmds_need_lc_CXX 14965 14966# Whether or not to disallow shared libs when runtime libs are static 14967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14968 14969# Whether or not to optimize for fast installation. 14970fast_install=$enable_fast_install 14971 14972# The host system. 14973host_alias=$host_alias 14974host=$host 14975host_os=$host_os 14976 14977# The build system. 14978build_alias=$build_alias 14979build=$build 14980build_os=$build_os 14981 14982# An echo program that does not interpret backslashes. 14983echo=$lt_echo 14984 14985# The archiver. 14986AR=$lt_AR 14987AR_FLAGS=$lt_AR_FLAGS 14988 14989# A C compiler. 14990LTCC=$lt_LTCC 14991 14992# LTCC compiler flags. 14993LTCFLAGS=$lt_LTCFLAGS 14994 14995# A language-specific compiler. 14996CC=$lt_compiler_CXX 14997 14998# Is the compiler the GNU C compiler? 14999with_gcc=$GCC_CXX 15000 15001# An ERE matcher. 15002EGREP=$lt_EGREP 15003 15004# The linker used to build libraries. 15005LD=$lt_LD_CXX 15006 15007# Whether we need hard or soft links. 15008LN_S=$lt_LN_S 15009 15010# A BSD-compatible nm program. 15011NM=$lt_NM 15012 15013# A symbol stripping program 15014STRIP=$lt_STRIP 15015 15016# Used to examine libraries when file_magic_cmd begins "file" 15017MAGIC_CMD=$MAGIC_CMD 15018 15019# Used on cygwin: DLL creation program. 15020DLLTOOL="$DLLTOOL" 15021 15022# Used on cygwin: object dumper. 15023OBJDUMP="$OBJDUMP" 15024 15025# Used on cygwin: assembler. 15026AS="$AS" 15027 15028# The name of the directory that contains temporary libtool files. 15029objdir=$objdir 15030 15031# How to create reloadable object files. 15032reload_flag=$lt_reload_flag 15033reload_cmds=$lt_reload_cmds 15034 15035# How to pass a linker flag through the compiler. 15036wl=$lt_lt_prog_compiler_wl_CXX 15037 15038# Object file suffix (normally "o"). 15039objext="$ac_objext" 15040 15041# Old archive suffix (normally "a"). 15042libext="$libext" 15043 15044# Shared library suffix (normally ".so"). 15045shrext_cmds='$shrext_cmds' 15046 15047# Executable file suffix (normally ""). 15048exeext="$exeext" 15049 15050# Additional compiler flags for building library objects. 15051pic_flag=$lt_lt_prog_compiler_pic_CXX 15052pic_mode=$pic_mode 15053 15054# What is the maximum length of a command? 15055max_cmd_len=$lt_cv_sys_max_cmd_len 15056 15057# Does compiler simultaneously support -c and -o options? 15058compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15059 15060# Must we lock files when doing compilation? 15061need_locks=$lt_need_locks 15062 15063# Do we need the lib prefix for modules? 15064need_lib_prefix=$need_lib_prefix 15065 15066# Do we need a version for libraries? 15067need_version=$need_version 15068 15069# Whether dlopen is supported. 15070dlopen_support=$enable_dlopen 15071 15072# Whether dlopen of programs is supported. 15073dlopen_self=$enable_dlopen_self 15074 15075# Whether dlopen of statically linked programs is supported. 15076dlopen_self_static=$enable_dlopen_self_static 15077 15078# Compiler flag to prevent dynamic linking. 15079link_static_flag=$lt_lt_prog_compiler_static_CXX 15080 15081# Compiler flag to turn off builtin functions. 15082no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15083 15084# Compiler flag to allow reflexive dlopens. 15085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15086 15087# Compiler flag to generate shared objects directly from archives. 15088whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15089 15090# Compiler flag to generate thread-safe objects. 15091thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15092 15093# Library versioning type. 15094version_type=$version_type 15095 15096# Format of library name prefix. 15097libname_spec=$lt_libname_spec 15098 15099# List of archive names. First name is the real one, the rest are links. 15100# The last name is the one that the linker finds with -lNAME. 15101library_names_spec=$lt_library_names_spec 15102 15103# The coded name of the library, if different from the real name. 15104soname_spec=$lt_soname_spec 15105 15106# Commands used to build and install an old-style archive. 15107RANLIB=$lt_RANLIB 15108old_archive_cmds=$lt_old_archive_cmds_CXX 15109old_postinstall_cmds=$lt_old_postinstall_cmds 15110old_postuninstall_cmds=$lt_old_postuninstall_cmds 15111 15112# Create an old-style archive from a shared archive. 15113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15114 15115# Create a temporary old-style archive to link instead of a shared archive. 15116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15117 15118# Commands used to build and install a shared archive. 15119archive_cmds=$lt_archive_cmds_CXX 15120archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15121postinstall_cmds=$lt_postinstall_cmds 15122postuninstall_cmds=$lt_postuninstall_cmds 15123 15124# Commands used to build a loadable module (assumed same as above if empty) 15125module_cmds=$lt_module_cmds_CXX 15126module_expsym_cmds=$lt_module_expsym_cmds_CXX 15127 15128# Commands to strip libraries. 15129old_striplib=$lt_old_striplib 15130striplib=$lt_striplib 15131 15132# Dependencies to place before the objects being linked to create a 15133# shared library. 15134predep_objects=$lt_predep_objects_CXX 15135 15136# Dependencies to place after the objects being linked to create a 15137# shared library. 15138postdep_objects=$lt_postdep_objects_CXX 15139 15140# Dependencies to place before the objects being linked to create a 15141# shared library. 15142predeps=$lt_predeps_CXX 15143 15144# Dependencies to place after the objects being linked to create a 15145# shared library. 15146postdeps=$lt_postdeps_CXX 15147 15148# The library search path used internally by the compiler when linking 15149# a shared library. 15150compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15151 15152# Method to check whether dependent libraries are shared objects. 15153deplibs_check_method=$lt_deplibs_check_method 15154 15155# Command to use when deplibs_check_method == file_magic. 15156file_magic_cmd=$lt_file_magic_cmd 15157 15158# Flag that allows shared libraries with undefined symbols to be built. 15159allow_undefined_flag=$lt_allow_undefined_flag_CXX 15160 15161# Flag that forces no undefined symbols. 15162no_undefined_flag=$lt_no_undefined_flag_CXX 15163 15164# Commands used to finish a libtool library installation in a directory. 15165finish_cmds=$lt_finish_cmds 15166 15167# Same as above, but a single script fragment to be evaled but not shown. 15168finish_eval=$lt_finish_eval 15169 15170# Take the output of nm and produce a listing of raw symbols and C names. 15171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15172 15173# Transform the output of nm in a proper C declaration 15174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15175 15176# Transform the output of nm in a C name address pair 15177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15178 15179# This is the shared library runtime path variable. 15180runpath_var=$runpath_var 15181 15182# This is the shared library path variable. 15183shlibpath_var=$shlibpath_var 15184 15185# Is shlibpath searched before the hard-coded library search path? 15186shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15187 15188# How to hardcode a shared library path into an executable. 15189hardcode_action=$hardcode_action_CXX 15190 15191# Whether we should hardcode library paths into libraries. 15192hardcode_into_libs=$hardcode_into_libs 15193 15194# Flag to hardcode \$libdir into a binary during linking. 15195# This must work even if \$libdir does not exist. 15196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15197 15198# If ld is used when linking, flag to hardcode \$libdir into 15199# a binary during linking. This must work even if \$libdir does 15200# not exist. 15201hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15202 15203# Whether we need a single -rpath flag with a separated argument. 15204hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15205 15206# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15207# resulting binary. 15208hardcode_direct=$hardcode_direct_CXX 15209 15210# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15211# resulting binary. 15212hardcode_minus_L=$hardcode_minus_L_CXX 15213 15214# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15215# the resulting binary. 15216hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15217 15218# Set to yes if building a shared library automatically hardcodes DIR into the library 15219# and all subsequent libraries and executables linked against it. 15220hardcode_automatic=$hardcode_automatic_CXX 15221 15222# Variables whose values should be saved in libtool wrapper scripts and 15223# restored at relink time. 15224variables_saved_for_relink="$variables_saved_for_relink" 15225 15226# Whether libtool must link a program against all its dependency libraries. 15227link_all_deplibs=$link_all_deplibs_CXX 15228 15229# Compile-time system search path for libraries 15230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15231 15232# Run-time system search path for libraries 15233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15234 15235# Fix the shell variable \$srcfile for the compiler. 15236fix_srcfile_path=$lt_fix_srcfile_path 15237 15238# Set to yes if exported symbols are required. 15239always_export_symbols=$always_export_symbols_CXX 15240 15241# The commands to list exported symbols. 15242export_symbols_cmds=$lt_export_symbols_cmds_CXX 15243 15244# The commands to extract the exported symbol list from a shared archive. 15245extract_expsyms_cmds=$lt_extract_expsyms_cmds 15246 15247# Symbols that should not be listed in the preloaded symbols. 15248exclude_expsyms=$lt_exclude_expsyms_CXX 15249 15250# Symbols that must always be exported. 15251include_expsyms=$lt_include_expsyms_CXX 15252 15253# ### END LIBTOOL TAG CONFIG: $tagname 15254 15255__EOF__ 15256 15257 15258else 15259 # If there is no Makefile yet, we rely on a make rule to execute 15260 # `config.status --recheck' to rerun these tests and create the 15261 # libtool script then. 15262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15263 if test -f "$ltmain_in"; then 15264 test -f Makefile && make "$ltmain" 15265 fi 15266fi 15267 15268 15269ac_ext=c 15270ac_cpp='$CPP $CPPFLAGS' 15271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15273ac_compiler_gnu=$ac_cv_c_compiler_gnu 15274 15275CC=$lt_save_CC 15276LDCXX=$LD 15277LD=$lt_save_LD 15278GCC=$lt_save_GCC 15279with_gnu_ldcxx=$with_gnu_ld 15280with_gnu_ld=$lt_save_with_gnu_ld 15281lt_cv_path_LDCXX=$lt_cv_path_LD 15282lt_cv_path_LD=$lt_save_path_LD 15283lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15284lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15285 15286 else 15287 tagname="" 15288 fi 15289 ;; 15290 15291 F77) 15292 if test -n "$F77" && test "X$F77" != "Xno"; then 15293 15294ac_ext=f 15295ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15296ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15297ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15298 15299 15300archive_cmds_need_lc_F77=no 15301allow_undefined_flag_F77= 15302always_export_symbols_F77=no 15303archive_expsym_cmds_F77= 15304export_dynamic_flag_spec_F77= 15305hardcode_direct_F77=no 15306hardcode_libdir_flag_spec_F77= 15307hardcode_libdir_flag_spec_ld_F77= 15308hardcode_libdir_separator_F77= 15309hardcode_minus_L_F77=no 15310hardcode_automatic_F77=no 15311module_cmds_F77= 15312module_expsym_cmds_F77= 15313link_all_deplibs_F77=unknown 15314old_archive_cmds_F77=$old_archive_cmds 15315no_undefined_flag_F77= 15316whole_archive_flag_spec_F77= 15317enable_shared_with_static_runtimes_F77=no 15318 15319# Source file extension for f77 test sources. 15320ac_ext=f 15321 15322# Object file extension for compiled f77 test sources. 15323objext=o 15324objext_F77=$objext 15325 15326# Code to be used in simple compile tests 15327lt_simple_compile_test_code="\ 15328 subroutine t 15329 return 15330 end 15331" 15332 15333# Code to be used in simple link tests 15334lt_simple_link_test_code="\ 15335 program t 15336 end 15337" 15338 15339# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15340 15341# If no C compiler was specified, use CC. 15342LTCC=${LTCC-"$CC"} 15343 15344# If no C compiler flags were specified, use CFLAGS. 15345LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15346 15347# Allow CC to be a program name with arguments. 15348compiler=$CC 15349 15350 15351# save warnings/boilerplate of simple test code 15352ac_outfile=conftest.$ac_objext 15353echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15355_lt_compiler_boilerplate=`cat conftest.err` 15356$rm conftest* 15357 15358ac_outfile=conftest.$ac_objext 15359echo "$lt_simple_link_test_code" >conftest.$ac_ext 15360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15361_lt_linker_boilerplate=`cat conftest.err` 15362$rm conftest* 15363 15364 15365# Allow CC to be a program name with arguments. 15366lt_save_CC="$CC" 15367CC=${F77-"f77"} 15368compiler=$CC 15369compiler_F77=$CC 15370for cc_temp in $compiler""; do 15371 case $cc_temp in 15372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15374 \-*) ;; 15375 *) break;; 15376 esac 15377done 15378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15379 15380 15381{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15382echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 15383{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 15384echo "${ECHO_T}$can_build_shared" >&6; } 15385 15386{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15387echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 15388test "$can_build_shared" = "no" && enable_shared=no 15389 15390# On AIX, shared libraries and static libraries use the same namespace, and 15391# are all built from PIC. 15392case $host_os in 15393aix3*) 15394 test "$enable_shared" = yes && enable_static=no 15395 if test -n "$RANLIB"; then 15396 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15397 postinstall_cmds='$RANLIB $lib' 15398 fi 15399 ;; 15400aix4* | aix5*) 15401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15402 test "$enable_shared" = yes && enable_static=no 15403 fi 15404 ;; 15405esac 15406{ echo "$as_me:$LINENO: result: $enable_shared" >&5 15407echo "${ECHO_T}$enable_shared" >&6; } 15408 15409{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15410echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 15411# Make sure either enable_shared or enable_static is yes. 15412test "$enable_shared" = yes || enable_static=yes 15413{ echo "$as_me:$LINENO: result: $enable_static" >&5 15414echo "${ECHO_T}$enable_static" >&6; } 15415 15416GCC_F77="$G77" 15417LD_F77="$LD" 15418 15419lt_prog_compiler_wl_F77= 15420lt_prog_compiler_pic_F77= 15421lt_prog_compiler_static_F77= 15422 15423{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15424echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15425 15426 if test "$GCC" = yes; then 15427 lt_prog_compiler_wl_F77='-Wl,' 15428 lt_prog_compiler_static_F77='-static' 15429 15430 case $host_os in 15431 aix*) 15432 # All AIX code is PIC. 15433 if test "$host_cpu" = ia64; then 15434 # AIX 5 now supports IA64 processor 15435 lt_prog_compiler_static_F77='-Bstatic' 15436 fi 15437 ;; 15438 15439 amigaos*) 15440 # FIXME: we need at least 68020 code to build shared libraries, but 15441 # adding the `-m68020' flag to GCC prevents building anything better, 15442 # like `-m68040'. 15443 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15444 ;; 15445 15446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15447 # PIC is the default for these OSes. 15448 ;; 15449 15450 mingw* | cygwin* | pw32* | os2*) 15451 # This hack is so that the source file can tell whether it is being 15452 # built for inclusion in a dll (and should export symbols for example). 15453 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15454 # (--disable-auto-import) libraries 15455 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15456 ;; 15457 15458 darwin* | rhapsody*) 15459 # PIC is the default on this platform 15460 # Common symbols not allowed in MH_DYLIB files 15461 lt_prog_compiler_pic_F77='-fno-common' 15462 ;; 15463 15464 interix[3-9]*) 15465 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15466 # Instead, we relocate shared libraries at runtime. 15467 ;; 15468 15469 msdosdjgpp*) 15470 # Just because we use GCC doesn't mean we suddenly get shared libraries 15471 # on systems that don't support them. 15472 lt_prog_compiler_can_build_shared_F77=no 15473 enable_shared=no 15474 ;; 15475 15476 sysv4*MP*) 15477 if test -d /usr/nec; then 15478 lt_prog_compiler_pic_F77=-Kconform_pic 15479 fi 15480 ;; 15481 15482 hpux*) 15483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15484 # not for PA HP-UX. 15485 case $host_cpu in 15486 hppa*64*|ia64*) 15487 # +Z the default 15488 ;; 15489 *) 15490 lt_prog_compiler_pic_F77='-fPIC' 15491 ;; 15492 esac 15493 ;; 15494 15495 *) 15496 lt_prog_compiler_pic_F77='-fPIC' 15497 ;; 15498 esac 15499 else 15500 # PORTME Check for flag to pass linker flags through the system compiler. 15501 case $host_os in 15502 aix*) 15503 lt_prog_compiler_wl_F77='-Wl,' 15504 if test "$host_cpu" = ia64; then 15505 # AIX 5 now supports IA64 processor 15506 lt_prog_compiler_static_F77='-Bstatic' 15507 else 15508 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15509 fi 15510 ;; 15511 darwin*) 15512 # PIC is the default on this platform 15513 # Common symbols not allowed in MH_DYLIB files 15514 case $cc_basename in 15515 xlc*) 15516 lt_prog_compiler_pic_F77='-qnocommon' 15517 lt_prog_compiler_wl_F77='-Wl,' 15518 ;; 15519 esac 15520 ;; 15521 15522 mingw* | cygwin* | pw32* | os2*) 15523 # This hack is so that the source file can tell whether it is being 15524 # built for inclusion in a dll (and should export symbols for example). 15525 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15526 ;; 15527 15528 hpux9* | hpux10* | hpux11*) 15529 lt_prog_compiler_wl_F77='-Wl,' 15530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15531 # not for PA HP-UX. 15532 case $host_cpu in 15533 hppa*64*|ia64*) 15534 # +Z the default 15535 ;; 15536 *) 15537 lt_prog_compiler_pic_F77='+Z' 15538 ;; 15539 esac 15540 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15541 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15542 ;; 15543 15544 irix5* | irix6* | nonstopux*) 15545 lt_prog_compiler_wl_F77='-Wl,' 15546 # PIC (with -KPIC) is the default. 15547 lt_prog_compiler_static_F77='-non_shared' 15548 ;; 15549 15550 newsos6) 15551 lt_prog_compiler_pic_F77='-KPIC' 15552 lt_prog_compiler_static_F77='-Bstatic' 15553 ;; 15554 15555 linux* | k*bsd*-gnu) 15556 case $cc_basename in 15557 icc* | ecc*) 15558 lt_prog_compiler_wl_F77='-Wl,' 15559 lt_prog_compiler_pic_F77='-KPIC' 15560 lt_prog_compiler_static_F77='-static' 15561 ;; 15562 pgcc* | pgf77* | pgf90* | pgf95*) 15563 # Portland Group compilers (*not* the Pentium gcc compiler, 15564 # which looks to be a dead project) 15565 lt_prog_compiler_wl_F77='-Wl,' 15566 lt_prog_compiler_pic_F77='-fpic' 15567 lt_prog_compiler_static_F77='-Bstatic' 15568 ;; 15569 ccc*) 15570 lt_prog_compiler_wl_F77='-Wl,' 15571 # All Alpha code is PIC. 15572 lt_prog_compiler_static_F77='-non_shared' 15573 ;; 15574 *) 15575 case `$CC -V 2>&1 | sed 5q` in 15576 *Sun\ C*) 15577 # Sun C 5.9 15578 lt_prog_compiler_pic_F77='-KPIC' 15579 lt_prog_compiler_static_F77='-Bstatic' 15580 lt_prog_compiler_wl_F77='-Wl,' 15581 ;; 15582 *Sun\ F*) 15583 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15584 lt_prog_compiler_pic_F77='-KPIC' 15585 lt_prog_compiler_static_F77='-Bstatic' 15586 lt_prog_compiler_wl_F77='' 15587 ;; 15588 esac 15589 ;; 15590 esac 15591 ;; 15592 15593 osf3* | osf4* | osf5*) 15594 lt_prog_compiler_wl_F77='-Wl,' 15595 # All OSF/1 code is PIC. 15596 lt_prog_compiler_static_F77='-non_shared' 15597 ;; 15598 15599 rdos*) 15600 lt_prog_compiler_static_F77='-non_shared' 15601 ;; 15602 15603 solaris*) 15604 lt_prog_compiler_pic_F77='-KPIC' 15605 lt_prog_compiler_static_F77='-Bstatic' 15606 case $cc_basename in 15607 f77* | f90* | f95*) 15608 lt_prog_compiler_wl_F77='-Qoption ld ';; 15609 *) 15610 lt_prog_compiler_wl_F77='-Wl,';; 15611 esac 15612 ;; 15613 15614 sunos4*) 15615 lt_prog_compiler_wl_F77='-Qoption ld ' 15616 lt_prog_compiler_pic_F77='-PIC' 15617 lt_prog_compiler_static_F77='-Bstatic' 15618 ;; 15619 15620 sysv4 | sysv4.2uw2* | sysv4.3*) 15621 lt_prog_compiler_wl_F77='-Wl,' 15622 lt_prog_compiler_pic_F77='-KPIC' 15623 lt_prog_compiler_static_F77='-Bstatic' 15624 ;; 15625 15626 sysv4*MP*) 15627 if test -d /usr/nec ;then 15628 lt_prog_compiler_pic_F77='-Kconform_pic' 15629 lt_prog_compiler_static_F77='-Bstatic' 15630 fi 15631 ;; 15632 15633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15634 lt_prog_compiler_wl_F77='-Wl,' 15635 lt_prog_compiler_pic_F77='-KPIC' 15636 lt_prog_compiler_static_F77='-Bstatic' 15637 ;; 15638 15639 unicos*) 15640 lt_prog_compiler_wl_F77='-Wl,' 15641 lt_prog_compiler_can_build_shared_F77=no 15642 ;; 15643 15644 uts4*) 15645 lt_prog_compiler_pic_F77='-pic' 15646 lt_prog_compiler_static_F77='-Bstatic' 15647 ;; 15648 15649 *) 15650 lt_prog_compiler_can_build_shared_F77=no 15651 ;; 15652 esac 15653 fi 15654 15655{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15656echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 15657 15658# 15659# Check to make sure the PIC flag actually works. 15660# 15661if test -n "$lt_prog_compiler_pic_F77"; then 15662 15663{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15664echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 15665if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15666 echo $ECHO_N "(cached) $ECHO_C" >&6 15667else 15668 lt_prog_compiler_pic_works_F77=no 15669 ac_outfile=conftest.$ac_objext 15670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15671 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15672 # Insert the option either (1) after the last *FLAGS variable, or 15673 # (2) before a word containing "conftest.", or (3) at the end. 15674 # Note that $ac_compile itself does not contain backslashes and begins 15675 # with a dollar sign (not a hyphen), so the echo should work correctly. 15676 # The option is referenced via a variable to avoid confusing sed. 15677 lt_compile=`echo "$ac_compile" | $SED \ 15678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15680 -e 's:$: $lt_compiler_flag:'` 15681 (eval echo "\"\$as_me:15681: $lt_compile\"" >&5) 15682 (eval "$lt_compile" 2>conftest.err) 15683 ac_status=$? 15684 cat conftest.err >&5 15685 echo "$as_me:15685: \$? = $ac_status" >&5 15686 if (exit $ac_status) && test -s "$ac_outfile"; then 15687 # The compiler can only warn and ignore the option if not recognized 15688 # So say no if there are warnings other than the usual output. 15689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15692 lt_prog_compiler_pic_works_F77=yes 15693 fi 15694 fi 15695 $rm conftest* 15696 15697fi 15698{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15699echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 15700 15701if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15702 case $lt_prog_compiler_pic_F77 in 15703 "" | " "*) ;; 15704 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15705 esac 15706else 15707 lt_prog_compiler_pic_F77= 15708 lt_prog_compiler_can_build_shared_F77=no 15709fi 15710 15711fi 15712case $host_os in 15713 # For platforms which do not support PIC, -DPIC is meaningless: 15714 *djgpp*) 15715 lt_prog_compiler_pic_F77= 15716 ;; 15717 *) 15718 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15719 ;; 15720esac 15721 15722# 15723# Check to make sure the static flag actually works. 15724# 15725wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15726{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15727echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15728if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15729 echo $ECHO_N "(cached) $ECHO_C" >&6 15730else 15731 lt_prog_compiler_static_works_F77=no 15732 save_LDFLAGS="$LDFLAGS" 15733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15734 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15736 # The linker can only warn and ignore the option if not recognized 15737 # So say no if there are warnings 15738 if test -s conftest.err; then 15739 # Append any errors to the config.log. 15740 cat conftest.err 1>&5 15741 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15743 if diff conftest.exp conftest.er2 >/dev/null; then 15744 lt_prog_compiler_static_works_F77=yes 15745 fi 15746 else 15747 lt_prog_compiler_static_works_F77=yes 15748 fi 15749 fi 15750 $rm conftest* 15751 LDFLAGS="$save_LDFLAGS" 15752 15753fi 15754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15755echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 15756 15757if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15758 : 15759else 15760 lt_prog_compiler_static_F77= 15761fi 15762 15763 15764{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15765echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15766if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15767 echo $ECHO_N "(cached) $ECHO_C" >&6 15768else 15769 lt_cv_prog_compiler_c_o_F77=no 15770 $rm -r conftest 2>/dev/null 15771 mkdir conftest 15772 cd conftest 15773 mkdir out 15774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15775 15776 lt_compiler_flag="-o out/conftest2.$ac_objext" 15777 # Insert the option either (1) after the last *FLAGS variable, or 15778 # (2) before a word containing "conftest.", or (3) at the end. 15779 # Note that $ac_compile itself does not contain backslashes and begins 15780 # with a dollar sign (not a hyphen), so the echo should work correctly. 15781 lt_compile=`echo "$ac_compile" | $SED \ 15782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15784 -e 's:$: $lt_compiler_flag:'` 15785 (eval echo "\"\$as_me:15785: $lt_compile\"" >&5) 15786 (eval "$lt_compile" 2>out/conftest.err) 15787 ac_status=$? 15788 cat out/conftest.err >&5 15789 echo "$as_me:15789: \$? = $ac_status" >&5 15790 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15791 then 15792 # The compiler can only warn and ignore the option if not recognized 15793 # So say no if there are warnings 15794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15797 lt_cv_prog_compiler_c_o_F77=yes 15798 fi 15799 fi 15800 chmod u+w . 2>&5 15801 $rm conftest* 15802 # SGI C++ compiler will create directory out/ii_files/ for 15803 # template instantiation 15804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15805 $rm out/* && rmdir out 15806 cd .. 15807 rmdir conftest 15808 $rm conftest* 15809 15810fi 15811{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15812echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 15813 15814 15815hard_links="nottested" 15816if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15817 # do not overwrite the value of need_locks provided by the user 15818 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15819echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15820 hard_links=yes 15821 $rm conftest* 15822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15823 touch conftest.a 15824 ln conftest.a conftest.b 2>&5 || hard_links=no 15825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15826 { echo "$as_me:$LINENO: result: $hard_links" >&5 15827echo "${ECHO_T}$hard_links" >&6; } 15828 if test "$hard_links" = no; then 15829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15830echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15831 need_locks=warn 15832 fi 15833else 15834 need_locks=no 15835fi 15836 15837{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15839 15840 runpath_var= 15841 allow_undefined_flag_F77= 15842 enable_shared_with_static_runtimes_F77=no 15843 archive_cmds_F77= 15844 archive_expsym_cmds_F77= 15845 old_archive_From_new_cmds_F77= 15846 old_archive_from_expsyms_cmds_F77= 15847 export_dynamic_flag_spec_F77= 15848 whole_archive_flag_spec_F77= 15849 thread_safe_flag_spec_F77= 15850 hardcode_libdir_flag_spec_F77= 15851 hardcode_libdir_flag_spec_ld_F77= 15852 hardcode_libdir_separator_F77= 15853 hardcode_direct_F77=no 15854 hardcode_minus_L_F77=no 15855 hardcode_shlibpath_var_F77=unsupported 15856 link_all_deplibs_F77=unknown 15857 hardcode_automatic_F77=no 15858 module_cmds_F77= 15859 module_expsym_cmds_F77= 15860 always_export_symbols_F77=no 15861 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15862 # include_expsyms should be a list of space-separated symbols to be *always* 15863 # included in the symbol list 15864 include_expsyms_F77= 15865 # exclude_expsyms can be an extended regexp of symbols to exclude 15866 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15868 # as well as any symbol that contains `d'. 15869 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15871 # platforms (ab)use it in PIC code, but their linkers get confused if 15872 # the symbol is explicitly referenced. Since portable code cannot 15873 # rely on this symbol name, it's probably fine to never include it in 15874 # preloaded symbol tables. 15875 extract_expsyms_cmds= 15876 # Just being paranoid about ensuring that cc_basename is set. 15877 for cc_temp in $compiler""; do 15878 case $cc_temp in 15879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15881 \-*) ;; 15882 *) break;; 15883 esac 15884done 15885cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15886 15887 case $host_os in 15888 cygwin* | mingw* | pw32*) 15889 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15890 # When not using gcc, we currently assume that we are using 15891 # Microsoft Visual C++. 15892 if test "$GCC" != yes; then 15893 with_gnu_ld=no 15894 fi 15895 ;; 15896 interix*) 15897 # we just hope/assume this is gcc and not c89 (= MSVC++) 15898 with_gnu_ld=yes 15899 ;; 15900 openbsd*) 15901 with_gnu_ld=no 15902 ;; 15903 esac 15904 15905 ld_shlibs_F77=yes 15906 if test "$with_gnu_ld" = yes; then 15907 # If archive_cmds runs LD, not CC, wlarc should be empty 15908 wlarc='${wl}' 15909 15910 # Set some defaults for GNU ld with shared library support. These 15911 # are reset later if shared libraries are not supported. Putting them 15912 # here allows them to be overridden if necessary. 15913 runpath_var=LD_RUN_PATH 15914 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15915 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15916 # ancient GNU ld didn't support --whole-archive et. al. 15917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15918 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15919 else 15920 whole_archive_flag_spec_F77= 15921 fi 15922 supports_anon_versioning=no 15923 case `$LD -v 2>/dev/null` in 15924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15927 *\ 2.11.*) ;; # other 2.11 versions 15928 *) supports_anon_versioning=yes ;; 15929 esac 15930 15931 # See if GNU ld supports shared libraries. 15932 case $host_os in 15933 aix3* | aix4* | aix5*) 15934 # On AIX/PPC, the GNU linker is very broken 15935 if test "$host_cpu" != ia64; then 15936 ld_shlibs_F77=no 15937 cat <<EOF 1>&2 15938 15939*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15940*** to be unable to reliably create shared libraries on AIX. 15941*** Therefore, libtool is disabling shared libraries support. If you 15942*** really care for shared libraries, you may want to modify your PATH 15943*** so that a non-GNU linker is found, and then restart. 15944 15945EOF 15946 fi 15947 ;; 15948 15949 amigaos*) 15950 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)' 15951 hardcode_libdir_flag_spec_F77='-L$libdir' 15952 hardcode_minus_L_F77=yes 15953 15954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15955 # that the semantics of dynamic libraries on AmigaOS, at least up 15956 # to version 4, is to share data among multiple programs linked 15957 # with the same dynamic library. Since this doesn't match the 15958 # behavior of shared libraries on other platforms, we can't use 15959 # them. 15960 ld_shlibs_F77=no 15961 ;; 15962 15963 beos*) 15964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15965 allow_undefined_flag_F77=unsupported 15966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15967 # support --undefined. This deserves some investigation. FIXME 15968 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15969 else 15970 ld_shlibs_F77=no 15971 fi 15972 ;; 15973 15974 cygwin* | mingw* | pw32*) 15975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15976 # as there is no search path for DLLs. 15977 hardcode_libdir_flag_spec_F77='-L$libdir' 15978 allow_undefined_flag_F77=unsupported 15979 always_export_symbols_F77=no 15980 enable_shared_with_static_runtimes_F77=yes 15981 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15982 15983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15984 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15985 # If the export-symbols file already is a .def file (1st line 15986 # is EXPORTS), use it as is; otherwise, prepend... 15987 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15988 cp $export_symbols $output_objdir/$soname.def; 15989 else 15990 echo EXPORTS > $output_objdir/$soname.def; 15991 cat $export_symbols >> $output_objdir/$soname.def; 15992 fi~ 15993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15994 else 15995 ld_shlibs_F77=no 15996 fi 15997 ;; 15998 15999 interix[3-9]*) 16000 hardcode_direct_F77=no 16001 hardcode_shlibpath_var_F77=no 16002 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16003 export_dynamic_flag_spec_F77='${wl}-E' 16004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16005 # Instead, shared libraries are loaded at an image base (0x10000000 by 16006 # default) and relocated if they conflict, which is a slow very memory 16007 # consuming and fragmenting process. To avoid this, we pick a random, 16008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16009 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16010 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' 16011 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' 16012 ;; 16013 16014 gnu* | linux* | k*bsd*-gnu) 16015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16016 tmp_addflag= 16017 case $cc_basename,$host_cpu in 16018 pgcc*) # Portland Group C compiler 16019 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' 16020 tmp_addflag=' $pic_flag' 16021 ;; 16022 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16023 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' 16024 tmp_addflag=' $pic_flag -Mnomain' ;; 16025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16026 tmp_addflag=' -i_dynamic' ;; 16027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16028 tmp_addflag=' -i_dynamic -nofor_main' ;; 16029 ifc* | ifort*) # Intel Fortran compiler 16030 tmp_addflag=' -nofor_main' ;; 16031 esac 16032 case `$CC -V 2>&1 | sed 5q` in 16033 *Sun\ C*) # Sun C 5.9 16034 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16035 tmp_sharedflag='-G' ;; 16036 *Sun\ F*) # Sun Fortran 8.3 16037 tmp_sharedflag='-G' ;; 16038 *) 16039 tmp_sharedflag='-shared' ;; 16040 esac 16041 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16042 16043 if test $supports_anon_versioning = yes; then 16044 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16046 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16047 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16048 fi 16049 else 16050 ld_shlibs_F77=no 16051 fi 16052 ;; 16053 16054 netbsd*) 16055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16056 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16057 wlarc= 16058 else 16059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16060 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16061 fi 16062 ;; 16063 16064 solaris*) 16065 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16066 ld_shlibs_F77=no 16067 cat <<EOF 1>&2 16068 16069*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16070*** create shared libraries on Solaris systems. Therefore, libtool 16071*** is disabling shared libraries support. We urge you to upgrade GNU 16072*** binutils to release 2.9.1 or newer. Another option is to modify 16073*** your PATH or compiler configuration so that the native linker is 16074*** used, and then restart. 16075 16076EOF 16077 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16078 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16079 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16080 else 16081 ld_shlibs_F77=no 16082 fi 16083 ;; 16084 16085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16086 case `$LD -v 2>&1` in 16087 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16088 ld_shlibs_F77=no 16089 cat <<_LT_EOF 1>&2 16090 16091*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16092*** reliably create shared libraries on SCO systems. Therefore, libtool 16093*** is disabling shared libraries support. We urge you to upgrade GNU 16094*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16095*** your PATH or compiler configuration so that the native linker is 16096*** used, and then restart. 16097 16098_LT_EOF 16099 ;; 16100 *) 16101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16102 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16103 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16104 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16105 else 16106 ld_shlibs_F77=no 16107 fi 16108 ;; 16109 esac 16110 ;; 16111 16112 sunos4*) 16113 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16114 wlarc= 16115 hardcode_direct_F77=yes 16116 hardcode_shlibpath_var_F77=no 16117 ;; 16118 16119 *) 16120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16122 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16123 else 16124 ld_shlibs_F77=no 16125 fi 16126 ;; 16127 esac 16128 16129 if test "$ld_shlibs_F77" = no; then 16130 runpath_var= 16131 hardcode_libdir_flag_spec_F77= 16132 export_dynamic_flag_spec_F77= 16133 whole_archive_flag_spec_F77= 16134 fi 16135 else 16136 # PORTME fill in a description of your system's linker (not GNU ld) 16137 case $host_os in 16138 aix3*) 16139 allow_undefined_flag_F77=unsupported 16140 always_export_symbols_F77=yes 16141 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' 16142 # Note: this linker hardcodes the directories in LIBPATH if there 16143 # are no directories specified by -L. 16144 hardcode_minus_L_F77=yes 16145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16146 # Neither direct hardcoding nor static linking is supported with a 16147 # broken collect2. 16148 hardcode_direct_F77=unsupported 16149 fi 16150 ;; 16151 16152 aix4* | aix5*) 16153 if test "$host_cpu" = ia64; then 16154 # On IA64, the linker does run time linking by default, so we don't 16155 # have to do anything special. 16156 aix_use_runtimelinking=no 16157 exp_sym_flag='-Bexport' 16158 no_entry_flag="" 16159 else 16160 # If we're using GNU nm, then we don't want the "-C" option. 16161 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16162 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16163 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' 16164 else 16165 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' 16166 fi 16167 aix_use_runtimelinking=no 16168 16169 # Test if we are trying to use run time linking or normal 16170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16171 # need to do runtime linking. 16172 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16173 for ld_flag in $LDFLAGS; do 16174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16175 aix_use_runtimelinking=yes 16176 break 16177 fi 16178 done 16179 ;; 16180 esac 16181 16182 exp_sym_flag='-bexport' 16183 no_entry_flag='-bnoentry' 16184 fi 16185 16186 # When large executables or shared objects are built, AIX ld can 16187 # have problems creating the table of contents. If linking a library 16188 # or program results in "error TOC overflow" add -mminimal-toc to 16189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16191 16192 archive_cmds_F77='' 16193 hardcode_direct_F77=yes 16194 hardcode_libdir_separator_F77=':' 16195 link_all_deplibs_F77=yes 16196 16197 if test "$GCC" = yes; then 16198 case $host_os in aix4.[012]|aix4.[012].*) 16199 # We only want to do this on AIX 4.2 and lower, the check 16200 # below for broken collect2 doesn't work under 4.3+ 16201 collect2name=`${CC} -print-prog-name=collect2` 16202 if test -f "$collect2name" && \ 16203 strings "$collect2name" | grep resolve_lib_name >/dev/null 16204 then 16205 # We have reworked collect2 16206 : 16207 else 16208 # We have old collect2 16209 hardcode_direct_F77=unsupported 16210 # It fails to find uninstalled libraries when the uninstalled 16211 # path is not listed in the libpath. Setting hardcode_minus_L 16212 # to unsupported forces relinking 16213 hardcode_minus_L_F77=yes 16214 hardcode_libdir_flag_spec_F77='-L$libdir' 16215 hardcode_libdir_separator_F77= 16216 fi 16217 ;; 16218 esac 16219 shared_flag='-shared' 16220 if test "$aix_use_runtimelinking" = yes; then 16221 shared_flag="$shared_flag "'${wl}-G' 16222 fi 16223 else 16224 # not using gcc 16225 if test "$host_cpu" = ia64; then 16226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16227 # chokes on -Wl,-G. The following line is correct: 16228 shared_flag='-G' 16229 else 16230 if test "$aix_use_runtimelinking" = yes; then 16231 shared_flag='${wl}-G' 16232 else 16233 shared_flag='${wl}-bM:SRE' 16234 fi 16235 fi 16236 fi 16237 16238 # It seems that -bexpall does not export symbols beginning with 16239 # underscore (_), so it is better to generate a list of symbols to export. 16240 always_export_symbols_F77=yes 16241 if test "$aix_use_runtimelinking" = yes; then 16242 # Warning - without using the other runtime loading flags (-brtl), 16243 # -berok will link without error, but may produce a broken library. 16244 allow_undefined_flag_F77='-berok' 16245 # Determine the default libpath from the value encoded in an empty executable. 16246 cat >conftest.$ac_ext <<_ACEOF 16247 program main 16248 16249 end 16250_ACEOF 16251rm -f conftest.$ac_objext conftest$ac_exeext 16252if { (ac_try="$ac_link" 16253case "(($ac_try" in 16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16255 *) ac_try_echo=$ac_try;; 16256esac 16257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16258 (eval "$ac_link") 2>conftest.er1 16259 ac_status=$? 16260 grep -v '^ *+' conftest.er1 >conftest.err 16261 rm -f conftest.er1 16262 cat conftest.err >&5 16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16264 (exit $ac_status); } && { 16265 test -z "$ac_f77_werror_flag" || 16266 test ! -s conftest.err 16267 } && test -s conftest$ac_exeext && 16268 $as_test_x conftest$ac_exeext; then 16269 16270lt_aix_libpath_sed=' 16271 /Import File Strings/,/^$/ { 16272 /^0/ { 16273 s/^0 *\(.*\)$/\1/ 16274 p 16275 } 16276 }' 16277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16278# Check for a 64-bit object if we didn't find anything. 16279if test -z "$aix_libpath"; then 16280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16281fi 16282else 16283 echo "$as_me: failed program was:" >&5 16284sed 's/^/| /' conftest.$ac_ext >&5 16285 16286 16287fi 16288 16289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16290 conftest$ac_exeext conftest.$ac_ext 16291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16292 16293 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16294 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" 16295 else 16296 if test "$host_cpu" = ia64; then 16297 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16298 allow_undefined_flag_F77="-z nodefs" 16299 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" 16300 else 16301 # Determine the default libpath from the value encoded in an empty executable. 16302 cat >conftest.$ac_ext <<_ACEOF 16303 program main 16304 16305 end 16306_ACEOF 16307rm -f conftest.$ac_objext conftest$ac_exeext 16308if { (ac_try="$ac_link" 16309case "(($ac_try" in 16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16311 *) ac_try_echo=$ac_try;; 16312esac 16313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16314 (eval "$ac_link") 2>conftest.er1 16315 ac_status=$? 16316 grep -v '^ *+' conftest.er1 >conftest.err 16317 rm -f conftest.er1 16318 cat conftest.err >&5 16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16320 (exit $ac_status); } && { 16321 test -z "$ac_f77_werror_flag" || 16322 test ! -s conftest.err 16323 } && test -s conftest$ac_exeext && 16324 $as_test_x conftest$ac_exeext; then 16325 16326lt_aix_libpath_sed=' 16327 /Import File Strings/,/^$/ { 16328 /^0/ { 16329 s/^0 *\(.*\)$/\1/ 16330 p 16331 } 16332 }' 16333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16334# Check for a 64-bit object if we didn't find anything. 16335if test -z "$aix_libpath"; then 16336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16337fi 16338else 16339 echo "$as_me: failed program was:" >&5 16340sed 's/^/| /' conftest.$ac_ext >&5 16341 16342 16343fi 16344 16345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16346 conftest$ac_exeext conftest.$ac_ext 16347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16348 16349 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16350 # Warning - without using the other run time loading flags, 16351 # -berok will link without error, but may produce a broken library. 16352 no_undefined_flag_F77=' ${wl}-bernotok' 16353 allow_undefined_flag_F77=' ${wl}-berok' 16354 # Exported symbols can be pulled into shared objects from archives 16355 whole_archive_flag_spec_F77='$convenience' 16356 archive_cmds_need_lc_F77=yes 16357 # This is similar to how AIX traditionally builds its shared libraries. 16358 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' 16359 fi 16360 fi 16361 ;; 16362 16363 amigaos*) 16364 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)' 16365 hardcode_libdir_flag_spec_F77='-L$libdir' 16366 hardcode_minus_L_F77=yes 16367 # see comment about different semantics on the GNU ld section 16368 ld_shlibs_F77=no 16369 ;; 16370 16371 bsdi[45]*) 16372 export_dynamic_flag_spec_F77=-rdynamic 16373 ;; 16374 16375 cygwin* | mingw* | pw32*) 16376 # When not using gcc, we currently assume that we are using 16377 # Microsoft Visual C++. 16378 # hardcode_libdir_flag_spec is actually meaningless, as there is 16379 # no search path for DLLs. 16380 hardcode_libdir_flag_spec_F77=' ' 16381 allow_undefined_flag_F77=unsupported 16382 # Tell ltmain to make .lib files, not .a files. 16383 libext=lib 16384 # Tell ltmain to make .dll files, not .so files. 16385 shrext_cmds=".dll" 16386 # FIXME: Setting linknames here is a bad hack. 16387 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16388 # The linker will automatically build a .lib file if we build a DLL. 16389 old_archive_From_new_cmds_F77='true' 16390 # FIXME: Should let the user specify the lib program. 16391 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 16392 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16393 enable_shared_with_static_runtimes_F77=yes 16394 ;; 16395 16396 darwin* | rhapsody*) 16397 case $host_os in 16398 rhapsody* | darwin1.[012]) 16399 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16400 ;; 16401 *) # Darwin 1.3 on 16402 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16403 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16404 else 16405 case ${MACOSX_DEPLOYMENT_TARGET} in 16406 10.[012]) 16407 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16408 ;; 16409 10.*) 16410 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16411 ;; 16412 esac 16413 fi 16414 ;; 16415 esac 16416 archive_cmds_need_lc_F77=no 16417 hardcode_direct_F77=no 16418 hardcode_automatic_F77=yes 16419 hardcode_shlibpath_var_F77=unsupported 16420 whole_archive_flag_spec_F77='' 16421 link_all_deplibs_F77=yes 16422 if test "$GCC" = yes ; then 16423 output_verbose_link_cmd='echo' 16424 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16425 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16427 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}' 16428 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}' 16429 else 16430 case $cc_basename in 16431 xlc*) 16432 output_verbose_link_cmd='echo' 16433 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 16434 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16436 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16437 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}' 16438 ;; 16439 *) 16440 ld_shlibs_F77=no 16441 ;; 16442 esac 16443 fi 16444 ;; 16445 16446 dgux*) 16447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16448 hardcode_libdir_flag_spec_F77='-L$libdir' 16449 hardcode_shlibpath_var_F77=no 16450 ;; 16451 16452 freebsd1*) 16453 ld_shlibs_F77=no 16454 ;; 16455 16456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16457 # support. Future versions do this automatically, but an explicit c++rt0.o 16458 # does not break anything, and helps significantly (at the cost of a little 16459 # extra space). 16460 freebsd2.2*) 16461 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16462 hardcode_libdir_flag_spec_F77='-R$libdir' 16463 hardcode_direct_F77=yes 16464 hardcode_shlibpath_var_F77=no 16465 ;; 16466 16467 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16468 freebsd2*) 16469 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16470 hardcode_direct_F77=yes 16471 hardcode_minus_L_F77=yes 16472 hardcode_shlibpath_var_F77=no 16473 ;; 16474 16475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16476 freebsd* | dragonfly*) 16477 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16478 hardcode_libdir_flag_spec_F77='-R$libdir' 16479 hardcode_direct_F77=yes 16480 hardcode_shlibpath_var_F77=no 16481 ;; 16482 16483 hpux9*) 16484 if test "$GCC" = yes; then 16485 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' 16486 else 16487 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' 16488 fi 16489 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16490 hardcode_libdir_separator_F77=: 16491 hardcode_direct_F77=yes 16492 16493 # hardcode_minus_L: Not really in the search PATH, 16494 # but as the default location of the library. 16495 hardcode_minus_L_F77=yes 16496 export_dynamic_flag_spec_F77='${wl}-E' 16497 ;; 16498 16499 hpux10*) 16500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16501 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16502 else 16503 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16504 fi 16505 if test "$with_gnu_ld" = no; then 16506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16507 hardcode_libdir_separator_F77=: 16508 16509 hardcode_direct_F77=yes 16510 export_dynamic_flag_spec_F77='${wl}-E' 16511 16512 # hardcode_minus_L: Not really in the search PATH, 16513 # but as the default location of the library. 16514 hardcode_minus_L_F77=yes 16515 fi 16516 ;; 16517 16518 hpux11*) 16519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16520 case $host_cpu in 16521 hppa*64*) 16522 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16523 ;; 16524 ia64*) 16525 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16526 ;; 16527 *) 16528 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16529 ;; 16530 esac 16531 else 16532 case $host_cpu in 16533 hppa*64*) 16534 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16535 ;; 16536 ia64*) 16537 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16538 ;; 16539 *) 16540 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16541 ;; 16542 esac 16543 fi 16544 if test "$with_gnu_ld" = no; then 16545 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16546 hardcode_libdir_separator_F77=: 16547 16548 case $host_cpu in 16549 hppa*64*|ia64*) 16550 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16551 hardcode_direct_F77=no 16552 hardcode_shlibpath_var_F77=no 16553 ;; 16554 *) 16555 hardcode_direct_F77=yes 16556 export_dynamic_flag_spec_F77='${wl}-E' 16557 16558 # hardcode_minus_L: Not really in the search PATH, 16559 # but as the default location of the library. 16560 hardcode_minus_L_F77=yes 16561 ;; 16562 esac 16563 fi 16564 ;; 16565 16566 irix5* | irix6* | nonstopux*) 16567 if test "$GCC" = yes; then 16568 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' 16569 else 16570 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' 16571 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16572 fi 16573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16574 hardcode_libdir_separator_F77=: 16575 link_all_deplibs_F77=yes 16576 ;; 16577 16578 netbsd*) 16579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16580 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16581 else 16582 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16583 fi 16584 hardcode_libdir_flag_spec_F77='-R$libdir' 16585 hardcode_direct_F77=yes 16586 hardcode_shlibpath_var_F77=no 16587 ;; 16588 16589 newsos6) 16590 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16591 hardcode_direct_F77=yes 16592 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16593 hardcode_libdir_separator_F77=: 16594 hardcode_shlibpath_var_F77=no 16595 ;; 16596 16597 openbsd*) 16598 if test -f /usr/libexec/ld.so; then 16599 hardcode_direct_F77=yes 16600 hardcode_shlibpath_var_F77=no 16601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16602 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16603 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16604 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16605 export_dynamic_flag_spec_F77='${wl}-E' 16606 else 16607 case $host_os in 16608 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16610 hardcode_libdir_flag_spec_F77='-R$libdir' 16611 ;; 16612 *) 16613 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16614 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16615 ;; 16616 esac 16617 fi 16618 else 16619 ld_shlibs_F77=no 16620 fi 16621 ;; 16622 16623 os2*) 16624 hardcode_libdir_flag_spec_F77='-L$libdir' 16625 hardcode_minus_L_F77=yes 16626 allow_undefined_flag_F77=unsupported 16627 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' 16628 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16629 ;; 16630 16631 osf3*) 16632 if test "$GCC" = yes; then 16633 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16634 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' 16635 else 16636 allow_undefined_flag_F77=' -expect_unresolved \*' 16637 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' 16638 fi 16639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16640 hardcode_libdir_separator_F77=: 16641 ;; 16642 16643 osf4* | osf5*) # as osf3* with the addition of -msym flag 16644 if test "$GCC" = yes; then 16645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16646 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' 16647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16648 else 16649 allow_undefined_flag_F77=' -expect_unresolved \*' 16650 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' 16651 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~ 16652 $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' 16653 16654 # Both c and cxx compiler support -rpath directly 16655 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16656 fi 16657 hardcode_libdir_separator_F77=: 16658 ;; 16659 16660 solaris*) 16661 no_undefined_flag_F77=' -z text' 16662 if test "$GCC" = yes; then 16663 wlarc='${wl}' 16664 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16667 else 16668 wlarc='' 16669 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16670 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16672 fi 16673 hardcode_libdir_flag_spec_F77='-R$libdir' 16674 hardcode_shlibpath_var_F77=no 16675 case $host_os in 16676 solaris2.[0-5] | solaris2.[0-5].*) ;; 16677 *) 16678 # The compiler driver will combine and reorder linker options, 16679 # but understands `-z linker_flag'. GCC discards it without `$wl', 16680 # but is careful enough not to reorder. 16681 # Supported since Solaris 2.6 (maybe 2.5.1?) 16682 if test "$GCC" = yes; then 16683 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16684 else 16685 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 16686 fi 16687 ;; 16688 esac 16689 link_all_deplibs_F77=yes 16690 ;; 16691 16692 sunos4*) 16693 if test "x$host_vendor" = xsequent; then 16694 # Use $CC to link under sequent, because it throws in some extra .o 16695 # files that make .init and .fini sections work. 16696 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16697 else 16698 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16699 fi 16700 hardcode_libdir_flag_spec_F77='-L$libdir' 16701 hardcode_direct_F77=yes 16702 hardcode_minus_L_F77=yes 16703 hardcode_shlibpath_var_F77=no 16704 ;; 16705 16706 sysv4) 16707 case $host_vendor in 16708 sni) 16709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16710 hardcode_direct_F77=yes # is this really true??? 16711 ;; 16712 siemens) 16713 ## LD is ld it makes a PLAMLIB 16714 ## CC just makes a GrossModule. 16715 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16716 reload_cmds_F77='$CC -r -o $output$reload_objs' 16717 hardcode_direct_F77=no 16718 ;; 16719 motorola) 16720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16721 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16722 ;; 16723 esac 16724 runpath_var='LD_RUN_PATH' 16725 hardcode_shlibpath_var_F77=no 16726 ;; 16727 16728 sysv4.3*) 16729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16730 hardcode_shlibpath_var_F77=no 16731 export_dynamic_flag_spec_F77='-Bexport' 16732 ;; 16733 16734 sysv4*MP*) 16735 if test -d /usr/nec; then 16736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16737 hardcode_shlibpath_var_F77=no 16738 runpath_var=LD_RUN_PATH 16739 hardcode_runpath_var=yes 16740 ld_shlibs_F77=yes 16741 fi 16742 ;; 16743 16744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16745 no_undefined_flag_F77='${wl}-z,text' 16746 archive_cmds_need_lc_F77=no 16747 hardcode_shlibpath_var_F77=no 16748 runpath_var='LD_RUN_PATH' 16749 16750 if test "$GCC" = yes; then 16751 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16752 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16753 else 16754 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16755 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16756 fi 16757 ;; 16758 16759 sysv5* | sco3.2v5* | sco5v6*) 16760 # Note: We can NOT use -z defs as we might desire, because we do not 16761 # link with -lc, and that would cause any symbols used from libc to 16762 # always be unresolved, which means just about no library would 16763 # ever link correctly. If we're not using GNU ld we use -z text 16764 # though, which does catch some bad symbols but isn't as heavy-handed 16765 # as -z defs. 16766 no_undefined_flag_F77='${wl}-z,text' 16767 allow_undefined_flag_F77='${wl}-z,nodefs' 16768 archive_cmds_need_lc_F77=no 16769 hardcode_shlibpath_var_F77=no 16770 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16771 hardcode_libdir_separator_F77=':' 16772 link_all_deplibs_F77=yes 16773 export_dynamic_flag_spec_F77='${wl}-Bexport' 16774 runpath_var='LD_RUN_PATH' 16775 16776 if test "$GCC" = yes; then 16777 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16778 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16779 else 16780 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16781 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16782 fi 16783 ;; 16784 16785 uts4*) 16786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16787 hardcode_libdir_flag_spec_F77='-L$libdir' 16788 hardcode_shlibpath_var_F77=no 16789 ;; 16790 16791 *) 16792 ld_shlibs_F77=no 16793 ;; 16794 esac 16795 fi 16796 16797{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16798echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16799test "$ld_shlibs_F77" = no && can_build_shared=no 16800 16801# 16802# Do we need to explicitly link libc? 16803# 16804case "x$archive_cmds_need_lc_F77" in 16805x|xyes) 16806 # Assume -lc should be added 16807 archive_cmds_need_lc_F77=yes 16808 16809 if test "$enable_shared" = yes && test "$GCC" = yes; then 16810 case $archive_cmds_F77 in 16811 *'~'*) 16812 # FIXME: we may have to deal with multi-command sequences. 16813 ;; 16814 '$CC '*) 16815 # Test whether the compiler implicitly links with -lc since on some 16816 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16817 # to ld, don't add -lc before -lgcc. 16818 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16819echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16820 $rm conftest* 16821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16822 16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16824 (eval $ac_compile) 2>&5 16825 ac_status=$? 16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16827 (exit $ac_status); } 2>conftest.err; then 16828 soname=conftest 16829 lib=conftest 16830 libobjs=conftest.$ac_objext 16831 deplibs= 16832 wl=$lt_prog_compiler_wl_F77 16833 pic_flag=$lt_prog_compiler_pic_F77 16834 compiler_flags=-v 16835 linker_flags=-v 16836 verstring= 16837 output_objdir=. 16838 libname=conftest 16839 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16840 allow_undefined_flag_F77= 16841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16842 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16843 ac_status=$? 16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16845 (exit $ac_status); } 16846 then 16847 archive_cmds_need_lc_F77=no 16848 else 16849 archive_cmds_need_lc_F77=yes 16850 fi 16851 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16852 else 16853 cat conftest.err 1>&5 16854 fi 16855 $rm conftest* 16856 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16857echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16858 ;; 16859 esac 16860 fi 16861 ;; 16862esac 16863 16864{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16865echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16866library_names_spec= 16867libname_spec='lib$name' 16868soname_spec= 16869shrext_cmds=".so" 16870postinstall_cmds= 16871postuninstall_cmds= 16872finish_cmds= 16873finish_eval= 16874shlibpath_var= 16875shlibpath_overrides_runpath=unknown 16876version_type=none 16877dynamic_linker="$host_os ld.so" 16878sys_lib_dlsearch_path_spec="/lib /usr/lib" 16879 16880need_lib_prefix=unknown 16881hardcode_into_libs=no 16882 16883# when you set need_version to no, make sure it does not cause -set_version 16884# flags to be left without arguments 16885need_version=unknown 16886 16887case $host_os in 16888aix3*) 16889 version_type=linux 16890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16891 shlibpath_var=LIBPATH 16892 16893 # AIX 3 has no versioning support, so we append a major version to the name. 16894 soname_spec='${libname}${release}${shared_ext}$major' 16895 ;; 16896 16897aix4* | aix5*) 16898 version_type=linux 16899 need_lib_prefix=no 16900 need_version=no 16901 hardcode_into_libs=yes 16902 if test "$host_cpu" = ia64; then 16903 # AIX 5 supports IA64 16904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16905 shlibpath_var=LD_LIBRARY_PATH 16906 else 16907 # With GCC up to 2.95.x, collect2 would create an import file 16908 # for dependence libraries. The import file would start with 16909 # the line `#! .'. This would cause the generated library to 16910 # depend on `.', always an invalid library. This was fixed in 16911 # development snapshots of GCC prior to 3.0. 16912 case $host_os in 16913 aix4 | aix4.[01] | aix4.[01].*) 16914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16915 echo ' yes ' 16916 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16917 : 16918 else 16919 can_build_shared=no 16920 fi 16921 ;; 16922 esac 16923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16924 # soname into executable. Probably we can add versioning support to 16925 # collect2, so additional links can be useful in future. 16926 if test "$aix_use_runtimelinking" = yes; then 16927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16928 # instead of lib<name>.a to let people know that these are not 16929 # typical AIX shared libraries. 16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16931 else 16932 # We preserve .a as extension for shared libraries through AIX4.2 16933 # and later when we are not doing run time linking. 16934 library_names_spec='${libname}${release}.a $libname.a' 16935 soname_spec='${libname}${release}${shared_ext}$major' 16936 fi 16937 shlibpath_var=LIBPATH 16938 fi 16939 ;; 16940 16941amigaos*) 16942 library_names_spec='$libname.ixlibrary $libname.a' 16943 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16944 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' 16945 ;; 16946 16947beos*) 16948 library_names_spec='${libname}${shared_ext}' 16949 dynamic_linker="$host_os ld.so" 16950 shlibpath_var=LIBRARY_PATH 16951 ;; 16952 16953bsdi[45]*) 16954 version_type=linux 16955 need_version=no 16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16957 soname_spec='${libname}${release}${shared_ext}$major' 16958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16959 shlibpath_var=LD_LIBRARY_PATH 16960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16962 # the default ld.so.conf also contains /usr/contrib/lib and 16963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16964 # libtool to hard-code these into programs 16965 ;; 16966 16967cygwin* | mingw* | pw32*) 16968 version_type=windows 16969 shrext_cmds=".dll" 16970 need_version=no 16971 need_lib_prefix=no 16972 16973 case $GCC,$host_os in 16974 yes,cygwin* | yes,mingw* | yes,pw32*) 16975 library_names_spec='$libname.dll.a' 16976 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16977 postinstall_cmds='base_file=`basename \${file}`~ 16978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16979 dldir=$destdir/`dirname \$dlpath`~ 16980 test -d \$dldir || mkdir -p \$dldir~ 16981 $install_prog $dir/$dlname \$dldir/$dlname~ 16982 chmod a+x \$dldir/$dlname' 16983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16984 dlpath=$dir/\$dldll~ 16985 $rm \$dlpath' 16986 shlibpath_overrides_runpath=yes 16987 16988 case $host_os in 16989 cygwin*) 16990 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16991 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16992 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16993 ;; 16994 mingw*) 16995 # MinGW DLLs use traditional 'lib' prefix 16996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16998 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16999 # It is most probably a Windows format PATH printed by 17000 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17001 # path with ; separators, and with drive letters. We can handle the 17002 # drive letters (cygwin fileutils understands them), so leave them, 17003 # especially as we might pass files found there to a mingw objdump, 17004 # which wouldn't understand a cygwinified path. Ahh. 17005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17006 else 17007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17008 fi 17009 ;; 17010 pw32*) 17011 # pw32 DLLs use 'pw' prefix rather than 'lib' 17012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17013 ;; 17014 esac 17015 ;; 17016 17017 *) 17018 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17019 ;; 17020 esac 17021 dynamic_linker='Win32 ld.exe' 17022 # FIXME: first we should search . and the directory the executable is in 17023 shlibpath_var=PATH 17024 ;; 17025 17026darwin* | rhapsody*) 17027 dynamic_linker="$host_os dyld" 17028 version_type=darwin 17029 need_lib_prefix=no 17030 need_version=no 17031 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17032 soname_spec='${libname}${release}${major}$shared_ext' 17033 shlibpath_overrides_runpath=yes 17034 shlibpath_var=DYLD_LIBRARY_PATH 17035 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17036 17037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17038 ;; 17039 17040dgux*) 17041 version_type=linux 17042 need_lib_prefix=no 17043 need_version=no 17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17045 soname_spec='${libname}${release}${shared_ext}$major' 17046 shlibpath_var=LD_LIBRARY_PATH 17047 ;; 17048 17049freebsd1*) 17050 dynamic_linker=no 17051 ;; 17052 17053freebsd* | dragonfly*) 17054 # DragonFly does not have aout. When/if they implement a new 17055 # versioning mechanism, adjust this. 17056 if test -x /usr/bin/objformat; then 17057 objformat=`/usr/bin/objformat` 17058 else 17059 case $host_os in 17060 freebsd[123]*) objformat=aout ;; 17061 *) objformat=elf ;; 17062 esac 17063 fi 17064 version_type=freebsd-$objformat 17065 case $version_type in 17066 freebsd-elf*) 17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17068 need_version=no 17069 need_lib_prefix=no 17070 ;; 17071 freebsd-*) 17072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17073 need_version=yes 17074 ;; 17075 esac 17076 shlibpath_var=LD_LIBRARY_PATH 17077 case $host_os in 17078 freebsd2*) 17079 shlibpath_overrides_runpath=yes 17080 ;; 17081 freebsd3.[01]* | freebsdelf3.[01]*) 17082 shlibpath_overrides_runpath=yes 17083 hardcode_into_libs=yes 17084 ;; 17085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17087 shlibpath_overrides_runpath=no 17088 hardcode_into_libs=yes 17089 ;; 17090 *) # from 4.6 on, and DragonFly 17091 shlibpath_overrides_runpath=yes 17092 hardcode_into_libs=yes 17093 ;; 17094 esac 17095 ;; 17096 17097gnu*) 17098 version_type=linux 17099 need_lib_prefix=no 17100 need_version=no 17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17102 soname_spec='${libname}${release}${shared_ext}$major' 17103 shlibpath_var=LD_LIBRARY_PATH 17104 hardcode_into_libs=yes 17105 ;; 17106 17107hpux9* | hpux10* | hpux11*) 17108 # Give a soname corresponding to the major version so that dld.sl refuses to 17109 # link against other versions. 17110 version_type=sunos 17111 need_lib_prefix=no 17112 need_version=no 17113 case $host_cpu in 17114 ia64*) 17115 shrext_cmds='.so' 17116 hardcode_into_libs=yes 17117 dynamic_linker="$host_os dld.so" 17118 shlibpath_var=LD_LIBRARY_PATH 17119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17121 soname_spec='${libname}${release}${shared_ext}$major' 17122 if test "X$HPUX_IA64_MODE" = X32; then 17123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17124 else 17125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17126 fi 17127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17128 ;; 17129 hppa*64*) 17130 shrext_cmds='.sl' 17131 hardcode_into_libs=yes 17132 dynamic_linker="$host_os dld.sl" 17133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17136 soname_spec='${libname}${release}${shared_ext}$major' 17137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17139 ;; 17140 *) 17141 shrext_cmds='.sl' 17142 dynamic_linker="$host_os dld.sl" 17143 shlibpath_var=SHLIB_PATH 17144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17146 soname_spec='${libname}${release}${shared_ext}$major' 17147 ;; 17148 esac 17149 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17150 postinstall_cmds='chmod 555 $lib' 17151 ;; 17152 17153interix[3-9]*) 17154 version_type=linux 17155 need_lib_prefix=no 17156 need_version=no 17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17158 soname_spec='${libname}${release}${shared_ext}$major' 17159 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17160 shlibpath_var=LD_LIBRARY_PATH 17161 shlibpath_overrides_runpath=no 17162 hardcode_into_libs=yes 17163 ;; 17164 17165irix5* | irix6* | nonstopux*) 17166 case $host_os in 17167 nonstopux*) version_type=nonstopux ;; 17168 *) 17169 if test "$lt_cv_prog_gnu_ld" = yes; then 17170 version_type=linux 17171 else 17172 version_type=irix 17173 fi ;; 17174 esac 17175 need_lib_prefix=no 17176 need_version=no 17177 soname_spec='${libname}${release}${shared_ext}$major' 17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17179 case $host_os in 17180 irix5* | nonstopux*) 17181 libsuff= shlibsuff= 17182 ;; 17183 *) 17184 case $LD in # libtool.m4 will add one of these switches to LD 17185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17186 libsuff= shlibsuff= libmagic=32-bit;; 17187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17188 libsuff=32 shlibsuff=N32 libmagic=N32;; 17189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17190 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17191 *) libsuff= shlibsuff= libmagic=never-match;; 17192 esac 17193 ;; 17194 esac 17195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17196 shlibpath_overrides_runpath=no 17197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17199 hardcode_into_libs=yes 17200 ;; 17201 17202# No shared lib support for Linux oldld, aout, or coff. 17203linux*oldld* | linux*aout* | linux*coff*) 17204 dynamic_linker=no 17205 ;; 17206 17207# This must be Linux ELF. 17208linux* | k*bsd*-gnu) 17209 version_type=linux 17210 need_lib_prefix=no 17211 need_version=no 17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17213 soname_spec='${libname}${release}${shared_ext}$major' 17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17215 shlibpath_var=LD_LIBRARY_PATH 17216 shlibpath_overrides_runpath=no 17217 # This implies no fast_install, which is unacceptable. 17218 # Some rework will be needed to allow for fast_install 17219 # before this can be enabled. 17220 hardcode_into_libs=yes 17221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17223 17224 # Append ld.so.conf contents to the search path 17225 if test -f /etc/ld.so.conf; then 17226 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17227 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17228 fi 17229 17230 # We used to test for /lib/ld.so.1 and disable shared libraries on 17231 # powerpc, because MkLinux only supported shared libraries with the 17232 # GNU dynamic linker. Since this was broken with cross compilers, 17233 # most powerpc-linux boxes support dynamic linking these days and 17234 # people can always --disable-shared, the test was removed, and we 17235 # assume the GNU/Linux dynamic linker is in use. 17236 dynamic_linker='GNU/Linux ld.so' 17237 ;; 17238 17239netbsd*) 17240 version_type=sunos 17241 need_lib_prefix=no 17242 need_version=no 17243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17246 dynamic_linker='NetBSD (a.out) ld.so' 17247 else 17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17249 soname_spec='${libname}${release}${shared_ext}$major' 17250 dynamic_linker='NetBSD ld.elf_so' 17251 fi 17252 shlibpath_var=LD_LIBRARY_PATH 17253 shlibpath_overrides_runpath=yes 17254 hardcode_into_libs=yes 17255 ;; 17256 17257newsos6) 17258 version_type=linux 17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17260 shlibpath_var=LD_LIBRARY_PATH 17261 shlibpath_overrides_runpath=yes 17262 ;; 17263 17264nto-qnx*) 17265 version_type=linux 17266 need_lib_prefix=no 17267 need_version=no 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17269 soname_spec='${libname}${release}${shared_ext}$major' 17270 shlibpath_var=LD_LIBRARY_PATH 17271 shlibpath_overrides_runpath=yes 17272 ;; 17273 17274openbsd*) 17275 version_type=sunos 17276 sys_lib_dlsearch_path_spec="/usr/lib" 17277 need_lib_prefix=no 17278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17279 case $host_os in 17280 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17281 *) need_version=no ;; 17282 esac 17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17285 shlibpath_var=LD_LIBRARY_PATH 17286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17287 case $host_os in 17288 openbsd2.[89] | openbsd2.[89].*) 17289 shlibpath_overrides_runpath=no 17290 ;; 17291 *) 17292 shlibpath_overrides_runpath=yes 17293 ;; 17294 esac 17295 else 17296 shlibpath_overrides_runpath=yes 17297 fi 17298 ;; 17299 17300os2*) 17301 libname_spec='$name' 17302 shrext_cmds=".dll" 17303 need_lib_prefix=no 17304 library_names_spec='$libname${shared_ext} $libname.a' 17305 dynamic_linker='OS/2 ld.exe' 17306 shlibpath_var=LIBPATH 17307 ;; 17308 17309osf3* | osf4* | osf5*) 17310 version_type=osf 17311 need_lib_prefix=no 17312 need_version=no 17313 soname_spec='${libname}${release}${shared_ext}$major' 17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17315 shlibpath_var=LD_LIBRARY_PATH 17316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17318 ;; 17319 17320rdos*) 17321 dynamic_linker=no 17322 ;; 17323 17324solaris*) 17325 version_type=linux 17326 need_lib_prefix=no 17327 need_version=no 17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17329 soname_spec='${libname}${release}${shared_ext}$major' 17330 shlibpath_var=LD_LIBRARY_PATH 17331 shlibpath_overrides_runpath=yes 17332 hardcode_into_libs=yes 17333 # ldd complains unless libraries are executable 17334 postinstall_cmds='chmod +x $lib' 17335 ;; 17336 17337sunos4*) 17338 version_type=sunos 17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17340 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17341 shlibpath_var=LD_LIBRARY_PATH 17342 shlibpath_overrides_runpath=yes 17343 if test "$with_gnu_ld" = yes; then 17344 need_lib_prefix=no 17345 fi 17346 need_version=yes 17347 ;; 17348 17349sysv4 | sysv4.3*) 17350 version_type=linux 17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17352 soname_spec='${libname}${release}${shared_ext}$major' 17353 shlibpath_var=LD_LIBRARY_PATH 17354 case $host_vendor in 17355 sni) 17356 shlibpath_overrides_runpath=no 17357 need_lib_prefix=no 17358 export_dynamic_flag_spec='${wl}-Blargedynsym' 17359 runpath_var=LD_RUN_PATH 17360 ;; 17361 siemens) 17362 need_lib_prefix=no 17363 ;; 17364 motorola) 17365 need_lib_prefix=no 17366 need_version=no 17367 shlibpath_overrides_runpath=no 17368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17369 ;; 17370 esac 17371 ;; 17372 17373sysv4*MP*) 17374 if test -d /usr/nec ;then 17375 version_type=linux 17376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17377 soname_spec='$libname${shared_ext}.$major' 17378 shlibpath_var=LD_LIBRARY_PATH 17379 fi 17380 ;; 17381 17382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17383 version_type=freebsd-elf 17384 need_lib_prefix=no 17385 need_version=no 17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17387 soname_spec='${libname}${release}${shared_ext}$major' 17388 shlibpath_var=LD_LIBRARY_PATH 17389 hardcode_into_libs=yes 17390 if test "$with_gnu_ld" = yes; then 17391 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17392 shlibpath_overrides_runpath=no 17393 else 17394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17395 shlibpath_overrides_runpath=yes 17396 case $host_os in 17397 sco3.2v5*) 17398 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17399 ;; 17400 esac 17401 fi 17402 sys_lib_dlsearch_path_spec='/usr/lib' 17403 ;; 17404 17405uts4*) 17406 version_type=linux 17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17408 soname_spec='${libname}${release}${shared_ext}$major' 17409 shlibpath_var=LD_LIBRARY_PATH 17410 ;; 17411 17412*) 17413 dynamic_linker=no 17414 ;; 17415esac 17416{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17417echo "${ECHO_T}$dynamic_linker" >&6; } 17418test "$dynamic_linker" = no && can_build_shared=no 17419 17420variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17421if test "$GCC" = yes; then 17422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17423fi 17424 17425{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17426echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17427hardcode_action_F77= 17428if test -n "$hardcode_libdir_flag_spec_F77" || \ 17429 test -n "$runpath_var_F77" || \ 17430 test "X$hardcode_automatic_F77" = "Xyes" ; then 17431 17432 # We can hardcode non-existant directories. 17433 if test "$hardcode_direct_F77" != no && 17434 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17435 # have to relink, otherwise we might link with an installed library 17436 # when we should be linking with a yet-to-be-installed one 17437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17438 test "$hardcode_minus_L_F77" != no; then 17439 # Linking always hardcodes the temporary library directory. 17440 hardcode_action_F77=relink 17441 else 17442 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17443 hardcode_action_F77=immediate 17444 fi 17445else 17446 # We cannot hardcode anything, or else we can only hardcode existing 17447 # directories. 17448 hardcode_action_F77=unsupported 17449fi 17450{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17451echo "${ECHO_T}$hardcode_action_F77" >&6; } 17452 17453if test "$hardcode_action_F77" = relink; then 17454 # Fast installation is not supported 17455 enable_fast_install=no 17456elif test "$shlibpath_overrides_runpath" = yes || 17457 test "$enable_shared" = no; then 17458 # Fast installation is not necessary 17459 enable_fast_install=needless 17460fi 17461 17462 17463# The else clause should only fire when bootstrapping the 17464# libtool distribution, otherwise you forgot to ship ltmain.sh 17465# with your package, and you will get complaints that there are 17466# no rules to generate ltmain.sh. 17467if test -f "$ltmain"; then 17468 # See if we are running on zsh, and set the options which allow our commands through 17469 # without removal of \ escapes. 17470 if test -n "${ZSH_VERSION+set}" ; then 17471 setopt NO_GLOB_SUBST 17472 fi 17473 # Now quote all the things that may contain metacharacters while being 17474 # careful not to overquote the AC_SUBSTed values. We take copies of the 17475 # variables and quote the copies for generation of the libtool script. 17476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17477 SED SHELL STRIP \ 17478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17480 deplibs_check_method reload_flag reload_cmds need_locks \ 17481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17482 lt_cv_sys_global_symbol_to_c_name_address \ 17483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17484 old_postinstall_cmds old_postuninstall_cmds \ 17485 compiler_F77 \ 17486 CC_F77 \ 17487 LD_F77 \ 17488 lt_prog_compiler_wl_F77 \ 17489 lt_prog_compiler_pic_F77 \ 17490 lt_prog_compiler_static_F77 \ 17491 lt_prog_compiler_no_builtin_flag_F77 \ 17492 export_dynamic_flag_spec_F77 \ 17493 thread_safe_flag_spec_F77 \ 17494 whole_archive_flag_spec_F77 \ 17495 enable_shared_with_static_runtimes_F77 \ 17496 old_archive_cmds_F77 \ 17497 old_archive_from_new_cmds_F77 \ 17498 predep_objects_F77 \ 17499 postdep_objects_F77 \ 17500 predeps_F77 \ 17501 postdeps_F77 \ 17502 compiler_lib_search_path_F77 \ 17503 archive_cmds_F77 \ 17504 archive_expsym_cmds_F77 \ 17505 postinstall_cmds_F77 \ 17506 postuninstall_cmds_F77 \ 17507 old_archive_from_expsyms_cmds_F77 \ 17508 allow_undefined_flag_F77 \ 17509 no_undefined_flag_F77 \ 17510 export_symbols_cmds_F77 \ 17511 hardcode_libdir_flag_spec_F77 \ 17512 hardcode_libdir_flag_spec_ld_F77 \ 17513 hardcode_libdir_separator_F77 \ 17514 hardcode_automatic_F77 \ 17515 module_cmds_F77 \ 17516 module_expsym_cmds_F77 \ 17517 lt_cv_prog_compiler_c_o_F77 \ 17518 fix_srcfile_path_F77 \ 17519 exclude_expsyms_F77 \ 17520 include_expsyms_F77; do 17521 17522 case $var in 17523 old_archive_cmds_F77 | \ 17524 old_archive_from_new_cmds_F77 | \ 17525 archive_cmds_F77 | \ 17526 archive_expsym_cmds_F77 | \ 17527 module_cmds_F77 | \ 17528 module_expsym_cmds_F77 | \ 17529 old_archive_from_expsyms_cmds_F77 | \ 17530 export_symbols_cmds_F77 | \ 17531 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17532 postinstall_cmds | postuninstall_cmds | \ 17533 old_postinstall_cmds | old_postuninstall_cmds | \ 17534 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17535 # Double-quote double-evaled strings. 17536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17537 ;; 17538 *) 17539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17540 ;; 17541 esac 17542 done 17543 17544 case $lt_echo in 17545 *'\$0 --fallback-echo"') 17546 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17547 ;; 17548 esac 17549 17550cfgfile="$ofile" 17551 17552 cat <<__EOF__ >> "$cfgfile" 17553# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17554 17555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17556 17557# Shell to use when invoking shell scripts. 17558SHELL=$lt_SHELL 17559 17560# Whether or not to build shared libraries. 17561build_libtool_libs=$enable_shared 17562 17563# Whether or not to build static libraries. 17564build_old_libs=$enable_static 17565 17566# Whether or not to add -lc for building shared libraries. 17567build_libtool_need_lc=$archive_cmds_need_lc_F77 17568 17569# Whether or not to disallow shared libs when runtime libs are static 17570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17571 17572# Whether or not to optimize for fast installation. 17573fast_install=$enable_fast_install 17574 17575# The host system. 17576host_alias=$host_alias 17577host=$host 17578host_os=$host_os 17579 17580# The build system. 17581build_alias=$build_alias 17582build=$build 17583build_os=$build_os 17584 17585# An echo program that does not interpret backslashes. 17586echo=$lt_echo 17587 17588# The archiver. 17589AR=$lt_AR 17590AR_FLAGS=$lt_AR_FLAGS 17591 17592# A C compiler. 17593LTCC=$lt_LTCC 17594 17595# LTCC compiler flags. 17596LTCFLAGS=$lt_LTCFLAGS 17597 17598# A language-specific compiler. 17599CC=$lt_compiler_F77 17600 17601# Is the compiler the GNU C compiler? 17602with_gcc=$GCC_F77 17603 17604# An ERE matcher. 17605EGREP=$lt_EGREP 17606 17607# The linker used to build libraries. 17608LD=$lt_LD_F77 17609 17610# Whether we need hard or soft links. 17611LN_S=$lt_LN_S 17612 17613# A BSD-compatible nm program. 17614NM=$lt_NM 17615 17616# A symbol stripping program 17617STRIP=$lt_STRIP 17618 17619# Used to examine libraries when file_magic_cmd begins "file" 17620MAGIC_CMD=$MAGIC_CMD 17621 17622# Used on cygwin: DLL creation program. 17623DLLTOOL="$DLLTOOL" 17624 17625# Used on cygwin: object dumper. 17626OBJDUMP="$OBJDUMP" 17627 17628# Used on cygwin: assembler. 17629AS="$AS" 17630 17631# The name of the directory that contains temporary libtool files. 17632objdir=$objdir 17633 17634# How to create reloadable object files. 17635reload_flag=$lt_reload_flag 17636reload_cmds=$lt_reload_cmds 17637 17638# How to pass a linker flag through the compiler. 17639wl=$lt_lt_prog_compiler_wl_F77 17640 17641# Object file suffix (normally "o"). 17642objext="$ac_objext" 17643 17644# Old archive suffix (normally "a"). 17645libext="$libext" 17646 17647# Shared library suffix (normally ".so"). 17648shrext_cmds='$shrext_cmds' 17649 17650# Executable file suffix (normally ""). 17651exeext="$exeext" 17652 17653# Additional compiler flags for building library objects. 17654pic_flag=$lt_lt_prog_compiler_pic_F77 17655pic_mode=$pic_mode 17656 17657# What is the maximum length of a command? 17658max_cmd_len=$lt_cv_sys_max_cmd_len 17659 17660# Does compiler simultaneously support -c and -o options? 17661compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17662 17663# Must we lock files when doing compilation? 17664need_locks=$lt_need_locks 17665 17666# Do we need the lib prefix for modules? 17667need_lib_prefix=$need_lib_prefix 17668 17669# Do we need a version for libraries? 17670need_version=$need_version 17671 17672# Whether dlopen is supported. 17673dlopen_support=$enable_dlopen 17674 17675# Whether dlopen of programs is supported. 17676dlopen_self=$enable_dlopen_self 17677 17678# Whether dlopen of statically linked programs is supported. 17679dlopen_self_static=$enable_dlopen_self_static 17680 17681# Compiler flag to prevent dynamic linking. 17682link_static_flag=$lt_lt_prog_compiler_static_F77 17683 17684# Compiler flag to turn off builtin functions. 17685no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17686 17687# Compiler flag to allow reflexive dlopens. 17688export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17689 17690# Compiler flag to generate shared objects directly from archives. 17691whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17692 17693# Compiler flag to generate thread-safe objects. 17694thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17695 17696# Library versioning type. 17697version_type=$version_type 17698 17699# Format of library name prefix. 17700libname_spec=$lt_libname_spec 17701 17702# List of archive names. First name is the real one, the rest are links. 17703# The last name is the one that the linker finds with -lNAME. 17704library_names_spec=$lt_library_names_spec 17705 17706# The coded name of the library, if different from the real name. 17707soname_spec=$lt_soname_spec 17708 17709# Commands used to build and install an old-style archive. 17710RANLIB=$lt_RANLIB 17711old_archive_cmds=$lt_old_archive_cmds_F77 17712old_postinstall_cmds=$lt_old_postinstall_cmds 17713old_postuninstall_cmds=$lt_old_postuninstall_cmds 17714 17715# Create an old-style archive from a shared archive. 17716old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17717 17718# Create a temporary old-style archive to link instead of a shared archive. 17719old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17720 17721# Commands used to build and install a shared archive. 17722archive_cmds=$lt_archive_cmds_F77 17723archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17724postinstall_cmds=$lt_postinstall_cmds 17725postuninstall_cmds=$lt_postuninstall_cmds 17726 17727# Commands used to build a loadable module (assumed same as above if empty) 17728module_cmds=$lt_module_cmds_F77 17729module_expsym_cmds=$lt_module_expsym_cmds_F77 17730 17731# Commands to strip libraries. 17732old_striplib=$lt_old_striplib 17733striplib=$lt_striplib 17734 17735# Dependencies to place before the objects being linked to create a 17736# shared library. 17737predep_objects=$lt_predep_objects_F77 17738 17739# Dependencies to place after the objects being linked to create a 17740# shared library. 17741postdep_objects=$lt_postdep_objects_F77 17742 17743# Dependencies to place before the objects being linked to create a 17744# shared library. 17745predeps=$lt_predeps_F77 17746 17747# Dependencies to place after the objects being linked to create a 17748# shared library. 17749postdeps=$lt_postdeps_F77 17750 17751# The library search path used internally by the compiler when linking 17752# a shared library. 17753compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17754 17755# Method to check whether dependent libraries are shared objects. 17756deplibs_check_method=$lt_deplibs_check_method 17757 17758# Command to use when deplibs_check_method == file_magic. 17759file_magic_cmd=$lt_file_magic_cmd 17760 17761# Flag that allows shared libraries with undefined symbols to be built. 17762allow_undefined_flag=$lt_allow_undefined_flag_F77 17763 17764# Flag that forces no undefined symbols. 17765no_undefined_flag=$lt_no_undefined_flag_F77 17766 17767# Commands used to finish a libtool library installation in a directory. 17768finish_cmds=$lt_finish_cmds 17769 17770# Same as above, but a single script fragment to be evaled but not shown. 17771finish_eval=$lt_finish_eval 17772 17773# Take the output of nm and produce a listing of raw symbols and C names. 17774global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17775 17776# Transform the output of nm in a proper C declaration 17777global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17778 17779# Transform the output of nm in a C name address pair 17780global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17781 17782# This is the shared library runtime path variable. 17783runpath_var=$runpath_var 17784 17785# This is the shared library path variable. 17786shlibpath_var=$shlibpath_var 17787 17788# Is shlibpath searched before the hard-coded library search path? 17789shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17790 17791# How to hardcode a shared library path into an executable. 17792hardcode_action=$hardcode_action_F77 17793 17794# Whether we should hardcode library paths into libraries. 17795hardcode_into_libs=$hardcode_into_libs 17796 17797# Flag to hardcode \$libdir into a binary during linking. 17798# This must work even if \$libdir does not exist. 17799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17800 17801# If ld is used when linking, flag to hardcode \$libdir into 17802# a binary during linking. This must work even if \$libdir does 17803# not exist. 17804hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17805 17806# Whether we need a single -rpath flag with a separated argument. 17807hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17808 17809# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17810# resulting binary. 17811hardcode_direct=$hardcode_direct_F77 17812 17813# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17814# resulting binary. 17815hardcode_minus_L=$hardcode_minus_L_F77 17816 17817# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17818# the resulting binary. 17819hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17820 17821# Set to yes if building a shared library automatically hardcodes DIR into the library 17822# and all subsequent libraries and executables linked against it. 17823hardcode_automatic=$hardcode_automatic_F77 17824 17825# Variables whose values should be saved in libtool wrapper scripts and 17826# restored at relink time. 17827variables_saved_for_relink="$variables_saved_for_relink" 17828 17829# Whether libtool must link a program against all its dependency libraries. 17830link_all_deplibs=$link_all_deplibs_F77 17831 17832# Compile-time system search path for libraries 17833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17834 17835# Run-time system search path for libraries 17836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17837 17838# Fix the shell variable \$srcfile for the compiler. 17839fix_srcfile_path=$lt_fix_srcfile_path 17840 17841# Set to yes if exported symbols are required. 17842always_export_symbols=$always_export_symbols_F77 17843 17844# The commands to list exported symbols. 17845export_symbols_cmds=$lt_export_symbols_cmds_F77 17846 17847# The commands to extract the exported symbol list from a shared archive. 17848extract_expsyms_cmds=$lt_extract_expsyms_cmds 17849 17850# Symbols that should not be listed in the preloaded symbols. 17851exclude_expsyms=$lt_exclude_expsyms_F77 17852 17853# Symbols that must always be exported. 17854include_expsyms=$lt_include_expsyms_F77 17855 17856# ### END LIBTOOL TAG CONFIG: $tagname 17857 17858__EOF__ 17859 17860 17861else 17862 # If there is no Makefile yet, we rely on a make rule to execute 17863 # `config.status --recheck' to rerun these tests and create the 17864 # libtool script then. 17865 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17866 if test -f "$ltmain_in"; then 17867 test -f Makefile && make "$ltmain" 17868 fi 17869fi 17870 17871 17872ac_ext=c 17873ac_cpp='$CPP $CPPFLAGS' 17874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17876ac_compiler_gnu=$ac_cv_c_compiler_gnu 17877 17878CC="$lt_save_CC" 17879 17880 else 17881 tagname="" 17882 fi 17883 ;; 17884 17885 GCJ) 17886 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17887 17888 17889# Source file extension for Java test sources. 17890ac_ext=java 17891 17892# Object file extension for compiled Java test sources. 17893objext=o 17894objext_GCJ=$objext 17895 17896# Code to be used in simple compile tests 17897lt_simple_compile_test_code="class foo {}" 17898 17899# Code to be used in simple link tests 17900lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17901 17902# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17903 17904# If no C compiler was specified, use CC. 17905LTCC=${LTCC-"$CC"} 17906 17907# If no C compiler flags were specified, use CFLAGS. 17908LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17909 17910# Allow CC to be a program name with arguments. 17911compiler=$CC 17912 17913 17914# save warnings/boilerplate of simple test code 17915ac_outfile=conftest.$ac_objext 17916echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17917eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17918_lt_compiler_boilerplate=`cat conftest.err` 17919$rm conftest* 17920 17921ac_outfile=conftest.$ac_objext 17922echo "$lt_simple_link_test_code" >conftest.$ac_ext 17923eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17924_lt_linker_boilerplate=`cat conftest.err` 17925$rm conftest* 17926 17927 17928# Allow CC to be a program name with arguments. 17929lt_save_CC="$CC" 17930CC=${GCJ-"gcj"} 17931compiler=$CC 17932compiler_GCJ=$CC 17933for cc_temp in $compiler""; do 17934 case $cc_temp in 17935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17937 \-*) ;; 17938 *) break;; 17939 esac 17940done 17941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17942 17943 17944# GCJ did not exist at the time GCC didn't implicitly link libc in. 17945archive_cmds_need_lc_GCJ=no 17946 17947old_archive_cmds_GCJ=$old_archive_cmds 17948 17949 17950lt_prog_compiler_no_builtin_flag_GCJ= 17951 17952if test "$GCC" = yes; then 17953 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17954 17955 17956{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17957echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17958if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17959 echo $ECHO_N "(cached) $ECHO_C" >&6 17960else 17961 lt_cv_prog_compiler_rtti_exceptions=no 17962 ac_outfile=conftest.$ac_objext 17963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17964 lt_compiler_flag="-fno-rtti -fno-exceptions" 17965 # Insert the option either (1) after the last *FLAGS variable, or 17966 # (2) before a word containing "conftest.", or (3) at the end. 17967 # Note that $ac_compile itself does not contain backslashes and begins 17968 # with a dollar sign (not a hyphen), so the echo should work correctly. 17969 # The option is referenced via a variable to avoid confusing sed. 17970 lt_compile=`echo "$ac_compile" | $SED \ 17971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17973 -e 's:$: $lt_compiler_flag:'` 17974 (eval echo "\"\$as_me:17974: $lt_compile\"" >&5) 17975 (eval "$lt_compile" 2>conftest.err) 17976 ac_status=$? 17977 cat conftest.err >&5 17978 echo "$as_me:17978: \$? = $ac_status" >&5 17979 if (exit $ac_status) && test -s "$ac_outfile"; then 17980 # The compiler can only warn and ignore the option if not recognized 17981 # So say no if there are warnings other than the usual output. 17982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17985 lt_cv_prog_compiler_rtti_exceptions=yes 17986 fi 17987 fi 17988 $rm conftest* 17989 17990fi 17991{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17992echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17993 17994if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17995 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17996else 17997 : 17998fi 17999 18000fi 18001 18002lt_prog_compiler_wl_GCJ= 18003lt_prog_compiler_pic_GCJ= 18004lt_prog_compiler_static_GCJ= 18005 18006{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 18008 18009 if test "$GCC" = yes; then 18010 lt_prog_compiler_wl_GCJ='-Wl,' 18011 lt_prog_compiler_static_GCJ='-static' 18012 18013 case $host_os in 18014 aix*) 18015 # All AIX code is PIC. 18016 if test "$host_cpu" = ia64; then 18017 # AIX 5 now supports IA64 processor 18018 lt_prog_compiler_static_GCJ='-Bstatic' 18019 fi 18020 ;; 18021 18022 amigaos*) 18023 # FIXME: we need at least 68020 code to build shared libraries, but 18024 # adding the `-m68020' flag to GCC prevents building anything better, 18025 # like `-m68040'. 18026 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18027 ;; 18028 18029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18030 # PIC is the default for these OSes. 18031 ;; 18032 18033 mingw* | cygwin* | pw32* | os2*) 18034 # This hack is so that the source file can tell whether it is being 18035 # built for inclusion in a dll (and should export symbols for example). 18036 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18037 # (--disable-auto-import) libraries 18038 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18039 ;; 18040 18041 darwin* | rhapsody*) 18042 # PIC is the default on this platform 18043 # Common symbols not allowed in MH_DYLIB files 18044 lt_prog_compiler_pic_GCJ='-fno-common' 18045 ;; 18046 18047 interix[3-9]*) 18048 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18049 # Instead, we relocate shared libraries at runtime. 18050 ;; 18051 18052 msdosdjgpp*) 18053 # Just because we use GCC doesn't mean we suddenly get shared libraries 18054 # on systems that don't support them. 18055 lt_prog_compiler_can_build_shared_GCJ=no 18056 enable_shared=no 18057 ;; 18058 18059 sysv4*MP*) 18060 if test -d /usr/nec; then 18061 lt_prog_compiler_pic_GCJ=-Kconform_pic 18062 fi 18063 ;; 18064 18065 hpux*) 18066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18067 # not for PA HP-UX. 18068 case $host_cpu in 18069 hppa*64*|ia64*) 18070 # +Z the default 18071 ;; 18072 *) 18073 lt_prog_compiler_pic_GCJ='-fPIC' 18074 ;; 18075 esac 18076 ;; 18077 18078 *) 18079 lt_prog_compiler_pic_GCJ='-fPIC' 18080 ;; 18081 esac 18082 else 18083 # PORTME Check for flag to pass linker flags through the system compiler. 18084 case $host_os in 18085 aix*) 18086 lt_prog_compiler_wl_GCJ='-Wl,' 18087 if test "$host_cpu" = ia64; then 18088 # AIX 5 now supports IA64 processor 18089 lt_prog_compiler_static_GCJ='-Bstatic' 18090 else 18091 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18092 fi 18093 ;; 18094 darwin*) 18095 # PIC is the default on this platform 18096 # Common symbols not allowed in MH_DYLIB files 18097 case $cc_basename in 18098 xlc*) 18099 lt_prog_compiler_pic_GCJ='-qnocommon' 18100 lt_prog_compiler_wl_GCJ='-Wl,' 18101 ;; 18102 esac 18103 ;; 18104 18105 mingw* | cygwin* | pw32* | os2*) 18106 # This hack is so that the source file can tell whether it is being 18107 # built for inclusion in a dll (and should export symbols for example). 18108 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18109 ;; 18110 18111 hpux9* | hpux10* | hpux11*) 18112 lt_prog_compiler_wl_GCJ='-Wl,' 18113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18114 # not for PA HP-UX. 18115 case $host_cpu in 18116 hppa*64*|ia64*) 18117 # +Z the default 18118 ;; 18119 *) 18120 lt_prog_compiler_pic_GCJ='+Z' 18121 ;; 18122 esac 18123 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18124 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18125 ;; 18126 18127 irix5* | irix6* | nonstopux*) 18128 lt_prog_compiler_wl_GCJ='-Wl,' 18129 # PIC (with -KPIC) is the default. 18130 lt_prog_compiler_static_GCJ='-non_shared' 18131 ;; 18132 18133 newsos6) 18134 lt_prog_compiler_pic_GCJ='-KPIC' 18135 lt_prog_compiler_static_GCJ='-Bstatic' 18136 ;; 18137 18138 linux* | k*bsd*-gnu) 18139 case $cc_basename in 18140 icc* | ecc*) 18141 lt_prog_compiler_wl_GCJ='-Wl,' 18142 lt_prog_compiler_pic_GCJ='-KPIC' 18143 lt_prog_compiler_static_GCJ='-static' 18144 ;; 18145 pgcc* | pgf77* | pgf90* | pgf95*) 18146 # Portland Group compilers (*not* the Pentium gcc compiler, 18147 # which looks to be a dead project) 18148 lt_prog_compiler_wl_GCJ='-Wl,' 18149 lt_prog_compiler_pic_GCJ='-fpic' 18150 lt_prog_compiler_static_GCJ='-Bstatic' 18151 ;; 18152 ccc*) 18153 lt_prog_compiler_wl_GCJ='-Wl,' 18154 # All Alpha code is PIC. 18155 lt_prog_compiler_static_GCJ='-non_shared' 18156 ;; 18157 *) 18158 case `$CC -V 2>&1 | sed 5q` in 18159 *Sun\ C*) 18160 # Sun C 5.9 18161 lt_prog_compiler_pic_GCJ='-KPIC' 18162 lt_prog_compiler_static_GCJ='-Bstatic' 18163 lt_prog_compiler_wl_GCJ='-Wl,' 18164 ;; 18165 *Sun\ F*) 18166 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18167 lt_prog_compiler_pic_GCJ='-KPIC' 18168 lt_prog_compiler_static_GCJ='-Bstatic' 18169 lt_prog_compiler_wl_GCJ='' 18170 ;; 18171 esac 18172 ;; 18173 esac 18174 ;; 18175 18176 osf3* | osf4* | osf5*) 18177 lt_prog_compiler_wl_GCJ='-Wl,' 18178 # All OSF/1 code is PIC. 18179 lt_prog_compiler_static_GCJ='-non_shared' 18180 ;; 18181 18182 rdos*) 18183 lt_prog_compiler_static_GCJ='-non_shared' 18184 ;; 18185 18186 solaris*) 18187 lt_prog_compiler_pic_GCJ='-KPIC' 18188 lt_prog_compiler_static_GCJ='-Bstatic' 18189 case $cc_basename in 18190 f77* | f90* | f95*) 18191 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18192 *) 18193 lt_prog_compiler_wl_GCJ='-Wl,';; 18194 esac 18195 ;; 18196 18197 sunos4*) 18198 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18199 lt_prog_compiler_pic_GCJ='-PIC' 18200 lt_prog_compiler_static_GCJ='-Bstatic' 18201 ;; 18202 18203 sysv4 | sysv4.2uw2* | sysv4.3*) 18204 lt_prog_compiler_wl_GCJ='-Wl,' 18205 lt_prog_compiler_pic_GCJ='-KPIC' 18206 lt_prog_compiler_static_GCJ='-Bstatic' 18207 ;; 18208 18209 sysv4*MP*) 18210 if test -d /usr/nec ;then 18211 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18212 lt_prog_compiler_static_GCJ='-Bstatic' 18213 fi 18214 ;; 18215 18216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18217 lt_prog_compiler_wl_GCJ='-Wl,' 18218 lt_prog_compiler_pic_GCJ='-KPIC' 18219 lt_prog_compiler_static_GCJ='-Bstatic' 18220 ;; 18221 18222 unicos*) 18223 lt_prog_compiler_wl_GCJ='-Wl,' 18224 lt_prog_compiler_can_build_shared_GCJ=no 18225 ;; 18226 18227 uts4*) 18228 lt_prog_compiler_pic_GCJ='-pic' 18229 lt_prog_compiler_static_GCJ='-Bstatic' 18230 ;; 18231 18232 *) 18233 lt_prog_compiler_can_build_shared_GCJ=no 18234 ;; 18235 esac 18236 fi 18237 18238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18239echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 18240 18241# 18242# Check to make sure the PIC flag actually works. 18243# 18244if test -n "$lt_prog_compiler_pic_GCJ"; then 18245 18246{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18247echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 18248if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18249 echo $ECHO_N "(cached) $ECHO_C" >&6 18250else 18251 lt_prog_compiler_pic_works_GCJ=no 18252 ac_outfile=conftest.$ac_objext 18253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18255 # Insert the option either (1) after the last *FLAGS variable, or 18256 # (2) before a word containing "conftest.", or (3) at the end. 18257 # Note that $ac_compile itself does not contain backslashes and begins 18258 # with a dollar sign (not a hyphen), so the echo should work correctly. 18259 # The option is referenced via a variable to avoid confusing sed. 18260 lt_compile=`echo "$ac_compile" | $SED \ 18261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18263 -e 's:$: $lt_compiler_flag:'` 18264 (eval echo "\"\$as_me:18264: $lt_compile\"" >&5) 18265 (eval "$lt_compile" 2>conftest.err) 18266 ac_status=$? 18267 cat conftest.err >&5 18268 echo "$as_me:18268: \$? = $ac_status" >&5 18269 if (exit $ac_status) && test -s "$ac_outfile"; then 18270 # The compiler can only warn and ignore the option if not recognized 18271 # So say no if there are warnings other than the usual output. 18272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18275 lt_prog_compiler_pic_works_GCJ=yes 18276 fi 18277 fi 18278 $rm conftest* 18279 18280fi 18281{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18282echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 18283 18284if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18285 case $lt_prog_compiler_pic_GCJ in 18286 "" | " "*) ;; 18287 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18288 esac 18289else 18290 lt_prog_compiler_pic_GCJ= 18291 lt_prog_compiler_can_build_shared_GCJ=no 18292fi 18293 18294fi 18295case $host_os in 18296 # For platforms which do not support PIC, -DPIC is meaningless: 18297 *djgpp*) 18298 lt_prog_compiler_pic_GCJ= 18299 ;; 18300 *) 18301 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18302 ;; 18303esac 18304 18305# 18306# Check to make sure the static flag actually works. 18307# 18308wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18309{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18310echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 18311if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 18312 echo $ECHO_N "(cached) $ECHO_C" >&6 18313else 18314 lt_prog_compiler_static_works_GCJ=no 18315 save_LDFLAGS="$LDFLAGS" 18316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18317 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18319 # The linker can only warn and ignore the option if not recognized 18320 # So say no if there are warnings 18321 if test -s conftest.err; then 18322 # Append any errors to the config.log. 18323 cat conftest.err 1>&5 18324 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18326 if diff conftest.exp conftest.er2 >/dev/null; then 18327 lt_prog_compiler_static_works_GCJ=yes 18328 fi 18329 else 18330 lt_prog_compiler_static_works_GCJ=yes 18331 fi 18332 fi 18333 $rm conftest* 18334 LDFLAGS="$save_LDFLAGS" 18335 18336fi 18337{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 18338echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 18339 18340if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 18341 : 18342else 18343 lt_prog_compiler_static_GCJ= 18344fi 18345 18346 18347{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18348echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 18349if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18350 echo $ECHO_N "(cached) $ECHO_C" >&6 18351else 18352 lt_cv_prog_compiler_c_o_GCJ=no 18353 $rm -r conftest 2>/dev/null 18354 mkdir conftest 18355 cd conftest 18356 mkdir out 18357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18358 18359 lt_compiler_flag="-o out/conftest2.$ac_objext" 18360 # Insert the option either (1) after the last *FLAGS variable, or 18361 # (2) before a word containing "conftest.", or (3) at the end. 18362 # Note that $ac_compile itself does not contain backslashes and begins 18363 # with a dollar sign (not a hyphen), so the echo should work correctly. 18364 lt_compile=`echo "$ac_compile" | $SED \ 18365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18367 -e 's:$: $lt_compiler_flag:'` 18368 (eval echo "\"\$as_me:18368: $lt_compile\"" >&5) 18369 (eval "$lt_compile" 2>out/conftest.err) 18370 ac_status=$? 18371 cat out/conftest.err >&5 18372 echo "$as_me:18372: \$? = $ac_status" >&5 18373 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18374 then 18375 # The compiler can only warn and ignore the option if not recognized 18376 # So say no if there are warnings 18377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18380 lt_cv_prog_compiler_c_o_GCJ=yes 18381 fi 18382 fi 18383 chmod u+w . 2>&5 18384 $rm conftest* 18385 # SGI C++ compiler will create directory out/ii_files/ for 18386 # template instantiation 18387 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18388 $rm out/* && rmdir out 18389 cd .. 18390 rmdir conftest 18391 $rm conftest* 18392 18393fi 18394{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18395echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 18396 18397 18398hard_links="nottested" 18399if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18400 # do not overwrite the value of need_locks provided by the user 18401 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18402echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 18403 hard_links=yes 18404 $rm conftest* 18405 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18406 touch conftest.a 18407 ln conftest.a conftest.b 2>&5 || hard_links=no 18408 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18409 { echo "$as_me:$LINENO: result: $hard_links" >&5 18410echo "${ECHO_T}$hard_links" >&6; } 18411 if test "$hard_links" = no; then 18412 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18413echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18414 need_locks=warn 18415 fi 18416else 18417 need_locks=no 18418fi 18419 18420{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18421echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18422 18423 runpath_var= 18424 allow_undefined_flag_GCJ= 18425 enable_shared_with_static_runtimes_GCJ=no 18426 archive_cmds_GCJ= 18427 archive_expsym_cmds_GCJ= 18428 old_archive_From_new_cmds_GCJ= 18429 old_archive_from_expsyms_cmds_GCJ= 18430 export_dynamic_flag_spec_GCJ= 18431 whole_archive_flag_spec_GCJ= 18432 thread_safe_flag_spec_GCJ= 18433 hardcode_libdir_flag_spec_GCJ= 18434 hardcode_libdir_flag_spec_ld_GCJ= 18435 hardcode_libdir_separator_GCJ= 18436 hardcode_direct_GCJ=no 18437 hardcode_minus_L_GCJ=no 18438 hardcode_shlibpath_var_GCJ=unsupported 18439 link_all_deplibs_GCJ=unknown 18440 hardcode_automatic_GCJ=no 18441 module_cmds_GCJ= 18442 module_expsym_cmds_GCJ= 18443 always_export_symbols_GCJ=no 18444 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18445 # include_expsyms should be a list of space-separated symbols to be *always* 18446 # included in the symbol list 18447 include_expsyms_GCJ= 18448 # exclude_expsyms can be an extended regexp of symbols to exclude 18449 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18451 # as well as any symbol that contains `d'. 18452 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18454 # platforms (ab)use it in PIC code, but their linkers get confused if 18455 # the symbol is explicitly referenced. Since portable code cannot 18456 # rely on this symbol name, it's probably fine to never include it in 18457 # preloaded symbol tables. 18458 extract_expsyms_cmds= 18459 # Just being paranoid about ensuring that cc_basename is set. 18460 for cc_temp in $compiler""; do 18461 case $cc_temp in 18462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18464 \-*) ;; 18465 *) break;; 18466 esac 18467done 18468cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18469 18470 case $host_os in 18471 cygwin* | mingw* | pw32*) 18472 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18473 # When not using gcc, we currently assume that we are using 18474 # Microsoft Visual C++. 18475 if test "$GCC" != yes; then 18476 with_gnu_ld=no 18477 fi 18478 ;; 18479 interix*) 18480 # we just hope/assume this is gcc and not c89 (= MSVC++) 18481 with_gnu_ld=yes 18482 ;; 18483 openbsd*) 18484 with_gnu_ld=no 18485 ;; 18486 esac 18487 18488 ld_shlibs_GCJ=yes 18489 if test "$with_gnu_ld" = yes; then 18490 # If archive_cmds runs LD, not CC, wlarc should be empty 18491 wlarc='${wl}' 18492 18493 # Set some defaults for GNU ld with shared library support. These 18494 # are reset later if shared libraries are not supported. Putting them 18495 # here allows them to be overridden if necessary. 18496 runpath_var=LD_RUN_PATH 18497 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18498 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18499 # ancient GNU ld didn't support --whole-archive et. al. 18500 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18501 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18502 else 18503 whole_archive_flag_spec_GCJ= 18504 fi 18505 supports_anon_versioning=no 18506 case `$LD -v 2>/dev/null` in 18507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18510 *\ 2.11.*) ;; # other 2.11 versions 18511 *) supports_anon_versioning=yes ;; 18512 esac 18513 18514 # See if GNU ld supports shared libraries. 18515 case $host_os in 18516 aix3* | aix4* | aix5*) 18517 # On AIX/PPC, the GNU linker is very broken 18518 if test "$host_cpu" != ia64; then 18519 ld_shlibs_GCJ=no 18520 cat <<EOF 1>&2 18521 18522*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18523*** to be unable to reliably create shared libraries on AIX. 18524*** Therefore, libtool is disabling shared libraries support. If you 18525*** really care for shared libraries, you may want to modify your PATH 18526*** so that a non-GNU linker is found, and then restart. 18527 18528EOF 18529 fi 18530 ;; 18531 18532 amigaos*) 18533 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)' 18534 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18535 hardcode_minus_L_GCJ=yes 18536 18537 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18538 # that the semantics of dynamic libraries on AmigaOS, at least up 18539 # to version 4, is to share data among multiple programs linked 18540 # with the same dynamic library. Since this doesn't match the 18541 # behavior of shared libraries on other platforms, we can't use 18542 # them. 18543 ld_shlibs_GCJ=no 18544 ;; 18545 18546 beos*) 18547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18548 allow_undefined_flag_GCJ=unsupported 18549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18550 # support --undefined. This deserves some investigation. FIXME 18551 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18552 else 18553 ld_shlibs_GCJ=no 18554 fi 18555 ;; 18556 18557 cygwin* | mingw* | pw32*) 18558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18559 # as there is no search path for DLLs. 18560 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18561 allow_undefined_flag_GCJ=unsupported 18562 always_export_symbols_GCJ=no 18563 enable_shared_with_static_runtimes_GCJ=yes 18564 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18565 18566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18568 # If the export-symbols file already is a .def file (1st line 18569 # is EXPORTS), use it as is; otherwise, prepend... 18570 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18571 cp $export_symbols $output_objdir/$soname.def; 18572 else 18573 echo EXPORTS > $output_objdir/$soname.def; 18574 cat $export_symbols >> $output_objdir/$soname.def; 18575 fi~ 18576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18577 else 18578 ld_shlibs_GCJ=no 18579 fi 18580 ;; 18581 18582 interix[3-9]*) 18583 hardcode_direct_GCJ=no 18584 hardcode_shlibpath_var_GCJ=no 18585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18586 export_dynamic_flag_spec_GCJ='${wl}-E' 18587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18588 # Instead, shared libraries are loaded at an image base (0x10000000 by 18589 # default) and relocated if they conflict, which is a slow very memory 18590 # consuming and fragmenting process. To avoid this, we pick a random, 18591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18592 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18593 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' 18594 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' 18595 ;; 18596 18597 gnu* | linux* | k*bsd*-gnu) 18598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18599 tmp_addflag= 18600 case $cc_basename,$host_cpu in 18601 pgcc*) # Portland Group C compiler 18602 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' 18603 tmp_addflag=' $pic_flag' 18604 ;; 18605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18606 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' 18607 tmp_addflag=' $pic_flag -Mnomain' ;; 18608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18609 tmp_addflag=' -i_dynamic' ;; 18610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18611 tmp_addflag=' -i_dynamic -nofor_main' ;; 18612 ifc* | ifort*) # Intel Fortran compiler 18613 tmp_addflag=' -nofor_main' ;; 18614 esac 18615 case `$CC -V 2>&1 | sed 5q` in 18616 *Sun\ C*) # Sun C 5.9 18617 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18618 tmp_sharedflag='-G' ;; 18619 *Sun\ F*) # Sun Fortran 8.3 18620 tmp_sharedflag='-G' ;; 18621 *) 18622 tmp_sharedflag='-shared' ;; 18623 esac 18624 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18625 18626 if test $supports_anon_versioning = yes; then 18627 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18629 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18631 fi 18632 else 18633 ld_shlibs_GCJ=no 18634 fi 18635 ;; 18636 18637 netbsd*) 18638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18639 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18640 wlarc= 18641 else 18642 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18643 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18644 fi 18645 ;; 18646 18647 solaris*) 18648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18649 ld_shlibs_GCJ=no 18650 cat <<EOF 1>&2 18651 18652*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18653*** create shared libraries on Solaris systems. Therefore, libtool 18654*** is disabling shared libraries support. We urge you to upgrade GNU 18655*** binutils to release 2.9.1 or newer. Another option is to modify 18656*** your PATH or compiler configuration so that the native linker is 18657*** used, and then restart. 18658 18659EOF 18660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18663 else 18664 ld_shlibs_GCJ=no 18665 fi 18666 ;; 18667 18668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18669 case `$LD -v 2>&1` in 18670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18671 ld_shlibs_GCJ=no 18672 cat <<_LT_EOF 1>&2 18673 18674*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18675*** reliably create shared libraries on SCO systems. Therefore, libtool 18676*** is disabling shared libraries support. We urge you to upgrade GNU 18677*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18678*** your PATH or compiler configuration so that the native linker is 18679*** used, and then restart. 18680 18681_LT_EOF 18682 ;; 18683 *) 18684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18685 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18687 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18688 else 18689 ld_shlibs_GCJ=no 18690 fi 18691 ;; 18692 esac 18693 ;; 18694 18695 sunos4*) 18696 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18697 wlarc= 18698 hardcode_direct_GCJ=yes 18699 hardcode_shlibpath_var_GCJ=no 18700 ;; 18701 18702 *) 18703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18704 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18705 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18706 else 18707 ld_shlibs_GCJ=no 18708 fi 18709 ;; 18710 esac 18711 18712 if test "$ld_shlibs_GCJ" = no; then 18713 runpath_var= 18714 hardcode_libdir_flag_spec_GCJ= 18715 export_dynamic_flag_spec_GCJ= 18716 whole_archive_flag_spec_GCJ= 18717 fi 18718 else 18719 # PORTME fill in a description of your system's linker (not GNU ld) 18720 case $host_os in 18721 aix3*) 18722 allow_undefined_flag_GCJ=unsupported 18723 always_export_symbols_GCJ=yes 18724 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' 18725 # Note: this linker hardcodes the directories in LIBPATH if there 18726 # are no directories specified by -L. 18727 hardcode_minus_L_GCJ=yes 18728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18729 # Neither direct hardcoding nor static linking is supported with a 18730 # broken collect2. 18731 hardcode_direct_GCJ=unsupported 18732 fi 18733 ;; 18734 18735 aix4* | aix5*) 18736 if test "$host_cpu" = ia64; then 18737 # On IA64, the linker does run time linking by default, so we don't 18738 # have to do anything special. 18739 aix_use_runtimelinking=no 18740 exp_sym_flag='-Bexport' 18741 no_entry_flag="" 18742 else 18743 # If we're using GNU nm, then we don't want the "-C" option. 18744 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18745 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18746 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' 18747 else 18748 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' 18749 fi 18750 aix_use_runtimelinking=no 18751 18752 # Test if we are trying to use run time linking or normal 18753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18754 # need to do runtime linking. 18755 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18756 for ld_flag in $LDFLAGS; do 18757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18758 aix_use_runtimelinking=yes 18759 break 18760 fi 18761 done 18762 ;; 18763 esac 18764 18765 exp_sym_flag='-bexport' 18766 no_entry_flag='-bnoentry' 18767 fi 18768 18769 # When large executables or shared objects are built, AIX ld can 18770 # have problems creating the table of contents. If linking a library 18771 # or program results in "error TOC overflow" add -mminimal-toc to 18772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18774 18775 archive_cmds_GCJ='' 18776 hardcode_direct_GCJ=yes 18777 hardcode_libdir_separator_GCJ=':' 18778 link_all_deplibs_GCJ=yes 18779 18780 if test "$GCC" = yes; then 18781 case $host_os in aix4.[012]|aix4.[012].*) 18782 # We only want to do this on AIX 4.2 and lower, the check 18783 # below for broken collect2 doesn't work under 4.3+ 18784 collect2name=`${CC} -print-prog-name=collect2` 18785 if test -f "$collect2name" && \ 18786 strings "$collect2name" | grep resolve_lib_name >/dev/null 18787 then 18788 # We have reworked collect2 18789 : 18790 else 18791 # We have old collect2 18792 hardcode_direct_GCJ=unsupported 18793 # It fails to find uninstalled libraries when the uninstalled 18794 # path is not listed in the libpath. Setting hardcode_minus_L 18795 # to unsupported forces relinking 18796 hardcode_minus_L_GCJ=yes 18797 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18798 hardcode_libdir_separator_GCJ= 18799 fi 18800 ;; 18801 esac 18802 shared_flag='-shared' 18803 if test "$aix_use_runtimelinking" = yes; then 18804 shared_flag="$shared_flag "'${wl}-G' 18805 fi 18806 else 18807 # not using gcc 18808 if test "$host_cpu" = ia64; then 18809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18810 # chokes on -Wl,-G. The following line is correct: 18811 shared_flag='-G' 18812 else 18813 if test "$aix_use_runtimelinking" = yes; then 18814 shared_flag='${wl}-G' 18815 else 18816 shared_flag='${wl}-bM:SRE' 18817 fi 18818 fi 18819 fi 18820 18821 # It seems that -bexpall does not export symbols beginning with 18822 # underscore (_), so it is better to generate a list of symbols to export. 18823 always_export_symbols_GCJ=yes 18824 if test "$aix_use_runtimelinking" = yes; then 18825 # Warning - without using the other runtime loading flags (-brtl), 18826 # -berok will link without error, but may produce a broken library. 18827 allow_undefined_flag_GCJ='-berok' 18828 # Determine the default libpath from the value encoded in an empty executable. 18829 cat >conftest.$ac_ext <<_ACEOF 18830/* confdefs.h. */ 18831_ACEOF 18832cat confdefs.h >>conftest.$ac_ext 18833cat >>conftest.$ac_ext <<_ACEOF 18834/* end confdefs.h. */ 18835 18836int 18837main () 18838{ 18839 18840 ; 18841 return 0; 18842} 18843_ACEOF 18844rm -f conftest.$ac_objext conftest$ac_exeext 18845if { (ac_try="$ac_link" 18846case "(($ac_try" in 18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18848 *) ac_try_echo=$ac_try;; 18849esac 18850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18851 (eval "$ac_link") 2>conftest.er1 18852 ac_status=$? 18853 grep -v '^ *+' conftest.er1 >conftest.err 18854 rm -f conftest.er1 18855 cat conftest.err >&5 18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18857 (exit $ac_status); } && { 18858 test -z "$ac_c_werror_flag" || 18859 test ! -s conftest.err 18860 } && test -s conftest$ac_exeext && 18861 $as_test_x conftest$ac_exeext; then 18862 18863lt_aix_libpath_sed=' 18864 /Import File Strings/,/^$/ { 18865 /^0/ { 18866 s/^0 *\(.*\)$/\1/ 18867 p 18868 } 18869 }' 18870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18871# Check for a 64-bit object if we didn't find anything. 18872if test -z "$aix_libpath"; then 18873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18874fi 18875else 18876 echo "$as_me: failed program was:" >&5 18877sed 's/^/| /' conftest.$ac_ext >&5 18878 18879 18880fi 18881 18882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18883 conftest$ac_exeext conftest.$ac_ext 18884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18885 18886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18887 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" 18888 else 18889 if test "$host_cpu" = ia64; then 18890 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18891 allow_undefined_flag_GCJ="-z nodefs" 18892 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" 18893 else 18894 # Determine the default libpath from the value encoded in an empty executable. 18895 cat >conftest.$ac_ext <<_ACEOF 18896/* confdefs.h. */ 18897_ACEOF 18898cat confdefs.h >>conftest.$ac_ext 18899cat >>conftest.$ac_ext <<_ACEOF 18900/* end confdefs.h. */ 18901 18902int 18903main () 18904{ 18905 18906 ; 18907 return 0; 18908} 18909_ACEOF 18910rm -f conftest.$ac_objext conftest$ac_exeext 18911if { (ac_try="$ac_link" 18912case "(($ac_try" in 18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18914 *) ac_try_echo=$ac_try;; 18915esac 18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18917 (eval "$ac_link") 2>conftest.er1 18918 ac_status=$? 18919 grep -v '^ *+' conftest.er1 >conftest.err 18920 rm -f conftest.er1 18921 cat conftest.err >&5 18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18923 (exit $ac_status); } && { 18924 test -z "$ac_c_werror_flag" || 18925 test ! -s conftest.err 18926 } && test -s conftest$ac_exeext && 18927 $as_test_x conftest$ac_exeext; then 18928 18929lt_aix_libpath_sed=' 18930 /Import File Strings/,/^$/ { 18931 /^0/ { 18932 s/^0 *\(.*\)$/\1/ 18933 p 18934 } 18935 }' 18936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18937# Check for a 64-bit object if we didn't find anything. 18938if test -z "$aix_libpath"; then 18939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18940fi 18941else 18942 echo "$as_me: failed program was:" >&5 18943sed 's/^/| /' conftest.$ac_ext >&5 18944 18945 18946fi 18947 18948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18949 conftest$ac_exeext conftest.$ac_ext 18950if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18951 18952 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18953 # Warning - without using the other run time loading flags, 18954 # -berok will link without error, but may produce a broken library. 18955 no_undefined_flag_GCJ=' ${wl}-bernotok' 18956 allow_undefined_flag_GCJ=' ${wl}-berok' 18957 # Exported symbols can be pulled into shared objects from archives 18958 whole_archive_flag_spec_GCJ='$convenience' 18959 archive_cmds_need_lc_GCJ=yes 18960 # This is similar to how AIX traditionally builds its shared libraries. 18961 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' 18962 fi 18963 fi 18964 ;; 18965 18966 amigaos*) 18967 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)' 18968 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18969 hardcode_minus_L_GCJ=yes 18970 # see comment about different semantics on the GNU ld section 18971 ld_shlibs_GCJ=no 18972 ;; 18973 18974 bsdi[45]*) 18975 export_dynamic_flag_spec_GCJ=-rdynamic 18976 ;; 18977 18978 cygwin* | mingw* | pw32*) 18979 # When not using gcc, we currently assume that we are using 18980 # Microsoft Visual C++. 18981 # hardcode_libdir_flag_spec is actually meaningless, as there is 18982 # no search path for DLLs. 18983 hardcode_libdir_flag_spec_GCJ=' ' 18984 allow_undefined_flag_GCJ=unsupported 18985 # Tell ltmain to make .lib files, not .a files. 18986 libext=lib 18987 # Tell ltmain to make .dll files, not .so files. 18988 shrext_cmds=".dll" 18989 # FIXME: Setting linknames here is a bad hack. 18990 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18991 # The linker will automatically build a .lib file if we build a DLL. 18992 old_archive_From_new_cmds_GCJ='true' 18993 # FIXME: Should let the user specify the lib program. 18994 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18995 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18996 enable_shared_with_static_runtimes_GCJ=yes 18997 ;; 18998 18999 darwin* | rhapsody*) 19000 case $host_os in 19001 rhapsody* | darwin1.[012]) 19002 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 19003 ;; 19004 *) # Darwin 1.3 on 19005 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 19006 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19007 else 19008 case ${MACOSX_DEPLOYMENT_TARGET} in 19009 10.[012]) 19010 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19011 ;; 19012 10.*) 19013 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 19014 ;; 19015 esac 19016 fi 19017 ;; 19018 esac 19019 archive_cmds_need_lc_GCJ=no 19020 hardcode_direct_GCJ=no 19021 hardcode_automatic_GCJ=yes 19022 hardcode_shlibpath_var_GCJ=unsupported 19023 whole_archive_flag_spec_GCJ='' 19024 link_all_deplibs_GCJ=yes 19025 if test "$GCC" = yes ; then 19026 output_verbose_link_cmd='echo' 19027 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19028 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19030 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}' 19031 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}' 19032 else 19033 case $cc_basename in 19034 xlc*) 19035 output_verbose_link_cmd='echo' 19036 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 19037 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19039 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19040 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}' 19041 ;; 19042 *) 19043 ld_shlibs_GCJ=no 19044 ;; 19045 esac 19046 fi 19047 ;; 19048 19049 dgux*) 19050 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19051 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19052 hardcode_shlibpath_var_GCJ=no 19053 ;; 19054 19055 freebsd1*) 19056 ld_shlibs_GCJ=no 19057 ;; 19058 19059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19060 # support. Future versions do this automatically, but an explicit c++rt0.o 19061 # does not break anything, and helps significantly (at the cost of a little 19062 # extra space). 19063 freebsd2.2*) 19064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19065 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19066 hardcode_direct_GCJ=yes 19067 hardcode_shlibpath_var_GCJ=no 19068 ;; 19069 19070 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19071 freebsd2*) 19072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19073 hardcode_direct_GCJ=yes 19074 hardcode_minus_L_GCJ=yes 19075 hardcode_shlibpath_var_GCJ=no 19076 ;; 19077 19078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19079 freebsd* | dragonfly*) 19080 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19081 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19082 hardcode_direct_GCJ=yes 19083 hardcode_shlibpath_var_GCJ=no 19084 ;; 19085 19086 hpux9*) 19087 if test "$GCC" = yes; then 19088 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' 19089 else 19090 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' 19091 fi 19092 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19093 hardcode_libdir_separator_GCJ=: 19094 hardcode_direct_GCJ=yes 19095 19096 # hardcode_minus_L: Not really in the search PATH, 19097 # but as the default location of the library. 19098 hardcode_minus_L_GCJ=yes 19099 export_dynamic_flag_spec_GCJ='${wl}-E' 19100 ;; 19101 19102 hpux10*) 19103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19104 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19105 else 19106 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19107 fi 19108 if test "$with_gnu_ld" = no; then 19109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19110 hardcode_libdir_separator_GCJ=: 19111 19112 hardcode_direct_GCJ=yes 19113 export_dynamic_flag_spec_GCJ='${wl}-E' 19114 19115 # hardcode_minus_L: Not really in the search PATH, 19116 # but as the default location of the library. 19117 hardcode_minus_L_GCJ=yes 19118 fi 19119 ;; 19120 19121 hpux11*) 19122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19123 case $host_cpu in 19124 hppa*64*) 19125 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19126 ;; 19127 ia64*) 19128 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19129 ;; 19130 *) 19131 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19132 ;; 19133 esac 19134 else 19135 case $host_cpu in 19136 hppa*64*) 19137 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19138 ;; 19139 ia64*) 19140 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19141 ;; 19142 *) 19143 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19144 ;; 19145 esac 19146 fi 19147 if test "$with_gnu_ld" = no; then 19148 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19149 hardcode_libdir_separator_GCJ=: 19150 19151 case $host_cpu in 19152 hppa*64*|ia64*) 19153 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19154 hardcode_direct_GCJ=no 19155 hardcode_shlibpath_var_GCJ=no 19156 ;; 19157 *) 19158 hardcode_direct_GCJ=yes 19159 export_dynamic_flag_spec_GCJ='${wl}-E' 19160 19161 # hardcode_minus_L: Not really in the search PATH, 19162 # but as the default location of the library. 19163 hardcode_minus_L_GCJ=yes 19164 ;; 19165 esac 19166 fi 19167 ;; 19168 19169 irix5* | irix6* | nonstopux*) 19170 if test "$GCC" = yes; then 19171 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' 19172 else 19173 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' 19174 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19175 fi 19176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19177 hardcode_libdir_separator_GCJ=: 19178 link_all_deplibs_GCJ=yes 19179 ;; 19180 19181 netbsd*) 19182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19183 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19184 else 19185 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19186 fi 19187 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19188 hardcode_direct_GCJ=yes 19189 hardcode_shlibpath_var_GCJ=no 19190 ;; 19191 19192 newsos6) 19193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19194 hardcode_direct_GCJ=yes 19195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19196 hardcode_libdir_separator_GCJ=: 19197 hardcode_shlibpath_var_GCJ=no 19198 ;; 19199 19200 openbsd*) 19201 if test -f /usr/libexec/ld.so; then 19202 hardcode_direct_GCJ=yes 19203 hardcode_shlibpath_var_GCJ=no 19204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19205 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19206 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19208 export_dynamic_flag_spec_GCJ='${wl}-E' 19209 else 19210 case $host_os in 19211 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19212 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19213 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19214 ;; 19215 *) 19216 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19218 ;; 19219 esac 19220 fi 19221 else 19222 ld_shlibs_GCJ=no 19223 fi 19224 ;; 19225 19226 os2*) 19227 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19228 hardcode_minus_L_GCJ=yes 19229 allow_undefined_flag_GCJ=unsupported 19230 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' 19231 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19232 ;; 19233 19234 osf3*) 19235 if test "$GCC" = yes; then 19236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19237 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' 19238 else 19239 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19240 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' 19241 fi 19242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19243 hardcode_libdir_separator_GCJ=: 19244 ;; 19245 19246 osf4* | osf5*) # as osf3* with the addition of -msym flag 19247 if test "$GCC" = yes; then 19248 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19249 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' 19250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19251 else 19252 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19253 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' 19254 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~ 19255 $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' 19256 19257 # Both c and cxx compiler support -rpath directly 19258 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19259 fi 19260 hardcode_libdir_separator_GCJ=: 19261 ;; 19262 19263 solaris*) 19264 no_undefined_flag_GCJ=' -z text' 19265 if test "$GCC" = yes; then 19266 wlarc='${wl}' 19267 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19268 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19270 else 19271 wlarc='' 19272 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19273 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19275 fi 19276 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19277 hardcode_shlibpath_var_GCJ=no 19278 case $host_os in 19279 solaris2.[0-5] | solaris2.[0-5].*) ;; 19280 *) 19281 # The compiler driver will combine and reorder linker options, 19282 # but understands `-z linker_flag'. GCC discards it without `$wl', 19283 # but is careful enough not to reorder. 19284 # Supported since Solaris 2.6 (maybe 2.5.1?) 19285 if test "$GCC" = yes; then 19286 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19287 else 19288 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 19289 fi 19290 ;; 19291 esac 19292 link_all_deplibs_GCJ=yes 19293 ;; 19294 19295 sunos4*) 19296 if test "x$host_vendor" = xsequent; then 19297 # Use $CC to link under sequent, because it throws in some extra .o 19298 # files that make .init and .fini sections work. 19299 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19300 else 19301 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19302 fi 19303 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19304 hardcode_direct_GCJ=yes 19305 hardcode_minus_L_GCJ=yes 19306 hardcode_shlibpath_var_GCJ=no 19307 ;; 19308 19309 sysv4) 19310 case $host_vendor in 19311 sni) 19312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19313 hardcode_direct_GCJ=yes # is this really true??? 19314 ;; 19315 siemens) 19316 ## LD is ld it makes a PLAMLIB 19317 ## CC just makes a GrossModule. 19318 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19319 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19320 hardcode_direct_GCJ=no 19321 ;; 19322 motorola) 19323 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19324 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19325 ;; 19326 esac 19327 runpath_var='LD_RUN_PATH' 19328 hardcode_shlibpath_var_GCJ=no 19329 ;; 19330 19331 sysv4.3*) 19332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19333 hardcode_shlibpath_var_GCJ=no 19334 export_dynamic_flag_spec_GCJ='-Bexport' 19335 ;; 19336 19337 sysv4*MP*) 19338 if test -d /usr/nec; then 19339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19340 hardcode_shlibpath_var_GCJ=no 19341 runpath_var=LD_RUN_PATH 19342 hardcode_runpath_var=yes 19343 ld_shlibs_GCJ=yes 19344 fi 19345 ;; 19346 19347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19348 no_undefined_flag_GCJ='${wl}-z,text' 19349 archive_cmds_need_lc_GCJ=no 19350 hardcode_shlibpath_var_GCJ=no 19351 runpath_var='LD_RUN_PATH' 19352 19353 if test "$GCC" = yes; then 19354 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19355 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19356 else 19357 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19358 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19359 fi 19360 ;; 19361 19362 sysv5* | sco3.2v5* | sco5v6*) 19363 # Note: We can NOT use -z defs as we might desire, because we do not 19364 # link with -lc, and that would cause any symbols used from libc to 19365 # always be unresolved, which means just about no library would 19366 # ever link correctly. If we're not using GNU ld we use -z text 19367 # though, which does catch some bad symbols but isn't as heavy-handed 19368 # as -z defs. 19369 no_undefined_flag_GCJ='${wl}-z,text' 19370 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19371 archive_cmds_need_lc_GCJ=no 19372 hardcode_shlibpath_var_GCJ=no 19373 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19374 hardcode_libdir_separator_GCJ=':' 19375 link_all_deplibs_GCJ=yes 19376 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19377 runpath_var='LD_RUN_PATH' 19378 19379 if test "$GCC" = yes; then 19380 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19381 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19382 else 19383 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19384 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19385 fi 19386 ;; 19387 19388 uts4*) 19389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19390 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19391 hardcode_shlibpath_var_GCJ=no 19392 ;; 19393 19394 *) 19395 ld_shlibs_GCJ=no 19396 ;; 19397 esac 19398 fi 19399 19400{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19401echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 19402test "$ld_shlibs_GCJ" = no && can_build_shared=no 19403 19404# 19405# Do we need to explicitly link libc? 19406# 19407case "x$archive_cmds_need_lc_GCJ" in 19408x|xyes) 19409 # Assume -lc should be added 19410 archive_cmds_need_lc_GCJ=yes 19411 19412 if test "$enable_shared" = yes && test "$GCC" = yes; then 19413 case $archive_cmds_GCJ in 19414 *'~'*) 19415 # FIXME: we may have to deal with multi-command sequences. 19416 ;; 19417 '$CC '*) 19418 # Test whether the compiler implicitly links with -lc since on some 19419 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19420 # to ld, don't add -lc before -lgcc. 19421 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19422echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19423 $rm conftest* 19424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19425 19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19427 (eval $ac_compile) 2>&5 19428 ac_status=$? 19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19430 (exit $ac_status); } 2>conftest.err; then 19431 soname=conftest 19432 lib=conftest 19433 libobjs=conftest.$ac_objext 19434 deplibs= 19435 wl=$lt_prog_compiler_wl_GCJ 19436 pic_flag=$lt_prog_compiler_pic_GCJ 19437 compiler_flags=-v 19438 linker_flags=-v 19439 verstring= 19440 output_objdir=. 19441 libname=conftest 19442 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19443 allow_undefined_flag_GCJ= 19444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19445 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19446 ac_status=$? 19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19448 (exit $ac_status); } 19449 then 19450 archive_cmds_need_lc_GCJ=no 19451 else 19452 archive_cmds_need_lc_GCJ=yes 19453 fi 19454 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19455 else 19456 cat conftest.err 1>&5 19457 fi 19458 $rm conftest* 19459 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19460echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 19461 ;; 19462 esac 19463 fi 19464 ;; 19465esac 19466 19467{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19468echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19469library_names_spec= 19470libname_spec='lib$name' 19471soname_spec= 19472shrext_cmds=".so" 19473postinstall_cmds= 19474postuninstall_cmds= 19475finish_cmds= 19476finish_eval= 19477shlibpath_var= 19478shlibpath_overrides_runpath=unknown 19479version_type=none 19480dynamic_linker="$host_os ld.so" 19481sys_lib_dlsearch_path_spec="/lib /usr/lib" 19482 19483need_lib_prefix=unknown 19484hardcode_into_libs=no 19485 19486# when you set need_version to no, make sure it does not cause -set_version 19487# flags to be left without arguments 19488need_version=unknown 19489 19490case $host_os in 19491aix3*) 19492 version_type=linux 19493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19494 shlibpath_var=LIBPATH 19495 19496 # AIX 3 has no versioning support, so we append a major version to the name. 19497 soname_spec='${libname}${release}${shared_ext}$major' 19498 ;; 19499 19500aix4* | aix5*) 19501 version_type=linux 19502 need_lib_prefix=no 19503 need_version=no 19504 hardcode_into_libs=yes 19505 if test "$host_cpu" = ia64; then 19506 # AIX 5 supports IA64 19507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19508 shlibpath_var=LD_LIBRARY_PATH 19509 else 19510 # With GCC up to 2.95.x, collect2 would create an import file 19511 # for dependence libraries. The import file would start with 19512 # the line `#! .'. This would cause the generated library to 19513 # depend on `.', always an invalid library. This was fixed in 19514 # development snapshots of GCC prior to 3.0. 19515 case $host_os in 19516 aix4 | aix4.[01] | aix4.[01].*) 19517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19518 echo ' yes ' 19519 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19520 : 19521 else 19522 can_build_shared=no 19523 fi 19524 ;; 19525 esac 19526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19527 # soname into executable. Probably we can add versioning support to 19528 # collect2, so additional links can be useful in future. 19529 if test "$aix_use_runtimelinking" = yes; then 19530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19531 # instead of lib<name>.a to let people know that these are not 19532 # typical AIX shared libraries. 19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19534 else 19535 # We preserve .a as extension for shared libraries through AIX4.2 19536 # and later when we are not doing run time linking. 19537 library_names_spec='${libname}${release}.a $libname.a' 19538 soname_spec='${libname}${release}${shared_ext}$major' 19539 fi 19540 shlibpath_var=LIBPATH 19541 fi 19542 ;; 19543 19544amigaos*) 19545 library_names_spec='$libname.ixlibrary $libname.a' 19546 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19547 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' 19548 ;; 19549 19550beos*) 19551 library_names_spec='${libname}${shared_ext}' 19552 dynamic_linker="$host_os ld.so" 19553 shlibpath_var=LIBRARY_PATH 19554 ;; 19555 19556bsdi[45]*) 19557 version_type=linux 19558 need_version=no 19559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19560 soname_spec='${libname}${release}${shared_ext}$major' 19561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19562 shlibpath_var=LD_LIBRARY_PATH 19563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19565 # the default ld.so.conf also contains /usr/contrib/lib and 19566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19567 # libtool to hard-code these into programs 19568 ;; 19569 19570cygwin* | mingw* | pw32*) 19571 version_type=windows 19572 shrext_cmds=".dll" 19573 need_version=no 19574 need_lib_prefix=no 19575 19576 case $GCC,$host_os in 19577 yes,cygwin* | yes,mingw* | yes,pw32*) 19578 library_names_spec='$libname.dll.a' 19579 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19580 postinstall_cmds='base_file=`basename \${file}`~ 19581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19582 dldir=$destdir/`dirname \$dlpath`~ 19583 test -d \$dldir || mkdir -p \$dldir~ 19584 $install_prog $dir/$dlname \$dldir/$dlname~ 19585 chmod a+x \$dldir/$dlname' 19586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19587 dlpath=$dir/\$dldll~ 19588 $rm \$dlpath' 19589 shlibpath_overrides_runpath=yes 19590 19591 case $host_os in 19592 cygwin*) 19593 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19595 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19596 ;; 19597 mingw*) 19598 # MinGW DLLs use traditional 'lib' prefix 19599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19601 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19602 # It is most probably a Windows format PATH printed by 19603 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19604 # path with ; separators, and with drive letters. We can handle the 19605 # drive letters (cygwin fileutils understands them), so leave them, 19606 # especially as we might pass files found there to a mingw objdump, 19607 # which wouldn't understand a cygwinified path. Ahh. 19608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19609 else 19610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19611 fi 19612 ;; 19613 pw32*) 19614 # pw32 DLLs use 'pw' prefix rather than 'lib' 19615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19616 ;; 19617 esac 19618 ;; 19619 19620 *) 19621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19622 ;; 19623 esac 19624 dynamic_linker='Win32 ld.exe' 19625 # FIXME: first we should search . and the directory the executable is in 19626 shlibpath_var=PATH 19627 ;; 19628 19629darwin* | rhapsody*) 19630 dynamic_linker="$host_os dyld" 19631 version_type=darwin 19632 need_lib_prefix=no 19633 need_version=no 19634 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19635 soname_spec='${libname}${release}${major}$shared_ext' 19636 shlibpath_overrides_runpath=yes 19637 shlibpath_var=DYLD_LIBRARY_PATH 19638 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19639 19640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19641 ;; 19642 19643dgux*) 19644 version_type=linux 19645 need_lib_prefix=no 19646 need_version=no 19647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19648 soname_spec='${libname}${release}${shared_ext}$major' 19649 shlibpath_var=LD_LIBRARY_PATH 19650 ;; 19651 19652freebsd1*) 19653 dynamic_linker=no 19654 ;; 19655 19656freebsd* | dragonfly*) 19657 # DragonFly does not have aout. When/if they implement a new 19658 # versioning mechanism, adjust this. 19659 if test -x /usr/bin/objformat; then 19660 objformat=`/usr/bin/objformat` 19661 else 19662 case $host_os in 19663 freebsd[123]*) objformat=aout ;; 19664 *) objformat=elf ;; 19665 esac 19666 fi 19667 version_type=freebsd-$objformat 19668 case $version_type in 19669 freebsd-elf*) 19670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19671 need_version=no 19672 need_lib_prefix=no 19673 ;; 19674 freebsd-*) 19675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19676 need_version=yes 19677 ;; 19678 esac 19679 shlibpath_var=LD_LIBRARY_PATH 19680 case $host_os in 19681 freebsd2*) 19682 shlibpath_overrides_runpath=yes 19683 ;; 19684 freebsd3.[01]* | freebsdelf3.[01]*) 19685 shlibpath_overrides_runpath=yes 19686 hardcode_into_libs=yes 19687 ;; 19688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19690 shlibpath_overrides_runpath=no 19691 hardcode_into_libs=yes 19692 ;; 19693 *) # from 4.6 on, and DragonFly 19694 shlibpath_overrides_runpath=yes 19695 hardcode_into_libs=yes 19696 ;; 19697 esac 19698 ;; 19699 19700gnu*) 19701 version_type=linux 19702 need_lib_prefix=no 19703 need_version=no 19704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19705 soname_spec='${libname}${release}${shared_ext}$major' 19706 shlibpath_var=LD_LIBRARY_PATH 19707 hardcode_into_libs=yes 19708 ;; 19709 19710hpux9* | hpux10* | hpux11*) 19711 # Give a soname corresponding to the major version so that dld.sl refuses to 19712 # link against other versions. 19713 version_type=sunos 19714 need_lib_prefix=no 19715 need_version=no 19716 case $host_cpu in 19717 ia64*) 19718 shrext_cmds='.so' 19719 hardcode_into_libs=yes 19720 dynamic_linker="$host_os dld.so" 19721 shlibpath_var=LD_LIBRARY_PATH 19722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19724 soname_spec='${libname}${release}${shared_ext}$major' 19725 if test "X$HPUX_IA64_MODE" = X32; then 19726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19727 else 19728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19729 fi 19730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19731 ;; 19732 hppa*64*) 19733 shrext_cmds='.sl' 19734 hardcode_into_libs=yes 19735 dynamic_linker="$host_os dld.sl" 19736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19739 soname_spec='${libname}${release}${shared_ext}$major' 19740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19742 ;; 19743 *) 19744 shrext_cmds='.sl' 19745 dynamic_linker="$host_os dld.sl" 19746 shlibpath_var=SHLIB_PATH 19747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19749 soname_spec='${libname}${release}${shared_ext}$major' 19750 ;; 19751 esac 19752 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19753 postinstall_cmds='chmod 555 $lib' 19754 ;; 19755 19756interix[3-9]*) 19757 version_type=linux 19758 need_lib_prefix=no 19759 need_version=no 19760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19761 soname_spec='${libname}${release}${shared_ext}$major' 19762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19763 shlibpath_var=LD_LIBRARY_PATH 19764 shlibpath_overrides_runpath=no 19765 hardcode_into_libs=yes 19766 ;; 19767 19768irix5* | irix6* | nonstopux*) 19769 case $host_os in 19770 nonstopux*) version_type=nonstopux ;; 19771 *) 19772 if test "$lt_cv_prog_gnu_ld" = yes; then 19773 version_type=linux 19774 else 19775 version_type=irix 19776 fi ;; 19777 esac 19778 need_lib_prefix=no 19779 need_version=no 19780 soname_spec='${libname}${release}${shared_ext}$major' 19781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19782 case $host_os in 19783 irix5* | nonstopux*) 19784 libsuff= shlibsuff= 19785 ;; 19786 *) 19787 case $LD in # libtool.m4 will add one of these switches to LD 19788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19789 libsuff= shlibsuff= libmagic=32-bit;; 19790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19791 libsuff=32 shlibsuff=N32 libmagic=N32;; 19792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19793 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19794 *) libsuff= shlibsuff= libmagic=never-match;; 19795 esac 19796 ;; 19797 esac 19798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19799 shlibpath_overrides_runpath=no 19800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19802 hardcode_into_libs=yes 19803 ;; 19804 19805# No shared lib support for Linux oldld, aout, or coff. 19806linux*oldld* | linux*aout* | linux*coff*) 19807 dynamic_linker=no 19808 ;; 19809 19810# This must be Linux ELF. 19811linux* | k*bsd*-gnu) 19812 version_type=linux 19813 need_lib_prefix=no 19814 need_version=no 19815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19816 soname_spec='${libname}${release}${shared_ext}$major' 19817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19818 shlibpath_var=LD_LIBRARY_PATH 19819 shlibpath_overrides_runpath=no 19820 # This implies no fast_install, which is unacceptable. 19821 # Some rework will be needed to allow for fast_install 19822 # before this can be enabled. 19823 hardcode_into_libs=yes 19824 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19825 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19826 19827 # Append ld.so.conf contents to the search path 19828 if test -f /etc/ld.so.conf; then 19829 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 19831 fi 19832 19833 # We used to test for /lib/ld.so.1 and disable shared libraries on 19834 # powerpc, because MkLinux only supported shared libraries with the 19835 # GNU dynamic linker. Since this was broken with cross compilers, 19836 # most powerpc-linux boxes support dynamic linking these days and 19837 # people can always --disable-shared, the test was removed, and we 19838 # assume the GNU/Linux dynamic linker is in use. 19839 dynamic_linker='GNU/Linux ld.so' 19840 ;; 19841 19842netbsd*) 19843 version_type=sunos 19844 need_lib_prefix=no 19845 need_version=no 19846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19849 dynamic_linker='NetBSD (a.out) ld.so' 19850 else 19851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19852 soname_spec='${libname}${release}${shared_ext}$major' 19853 dynamic_linker='NetBSD ld.elf_so' 19854 fi 19855 shlibpath_var=LD_LIBRARY_PATH 19856 shlibpath_overrides_runpath=yes 19857 hardcode_into_libs=yes 19858 ;; 19859 19860newsos6) 19861 version_type=linux 19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19863 shlibpath_var=LD_LIBRARY_PATH 19864 shlibpath_overrides_runpath=yes 19865 ;; 19866 19867nto-qnx*) 19868 version_type=linux 19869 need_lib_prefix=no 19870 need_version=no 19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19872 soname_spec='${libname}${release}${shared_ext}$major' 19873 shlibpath_var=LD_LIBRARY_PATH 19874 shlibpath_overrides_runpath=yes 19875 ;; 19876 19877openbsd*) 19878 version_type=sunos 19879 sys_lib_dlsearch_path_spec="/usr/lib" 19880 need_lib_prefix=no 19881 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19882 case $host_os in 19883 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19884 *) need_version=no ;; 19885 esac 19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19888 shlibpath_var=LD_LIBRARY_PATH 19889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19890 case $host_os in 19891 openbsd2.[89] | openbsd2.[89].*) 19892 shlibpath_overrides_runpath=no 19893 ;; 19894 *) 19895 shlibpath_overrides_runpath=yes 19896 ;; 19897 esac 19898 else 19899 shlibpath_overrides_runpath=yes 19900 fi 19901 ;; 19902 19903os2*) 19904 libname_spec='$name' 19905 shrext_cmds=".dll" 19906 need_lib_prefix=no 19907 library_names_spec='$libname${shared_ext} $libname.a' 19908 dynamic_linker='OS/2 ld.exe' 19909 shlibpath_var=LIBPATH 19910 ;; 19911 19912osf3* | osf4* | osf5*) 19913 version_type=osf 19914 need_lib_prefix=no 19915 need_version=no 19916 soname_spec='${libname}${release}${shared_ext}$major' 19917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19918 shlibpath_var=LD_LIBRARY_PATH 19919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19920 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19921 ;; 19922 19923rdos*) 19924 dynamic_linker=no 19925 ;; 19926 19927solaris*) 19928 version_type=linux 19929 need_lib_prefix=no 19930 need_version=no 19931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19932 soname_spec='${libname}${release}${shared_ext}$major' 19933 shlibpath_var=LD_LIBRARY_PATH 19934 shlibpath_overrides_runpath=yes 19935 hardcode_into_libs=yes 19936 # ldd complains unless libraries are executable 19937 postinstall_cmds='chmod +x $lib' 19938 ;; 19939 19940sunos4*) 19941 version_type=sunos 19942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19944 shlibpath_var=LD_LIBRARY_PATH 19945 shlibpath_overrides_runpath=yes 19946 if test "$with_gnu_ld" = yes; then 19947 need_lib_prefix=no 19948 fi 19949 need_version=yes 19950 ;; 19951 19952sysv4 | sysv4.3*) 19953 version_type=linux 19954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19955 soname_spec='${libname}${release}${shared_ext}$major' 19956 shlibpath_var=LD_LIBRARY_PATH 19957 case $host_vendor in 19958 sni) 19959 shlibpath_overrides_runpath=no 19960 need_lib_prefix=no 19961 export_dynamic_flag_spec='${wl}-Blargedynsym' 19962 runpath_var=LD_RUN_PATH 19963 ;; 19964 siemens) 19965 need_lib_prefix=no 19966 ;; 19967 motorola) 19968 need_lib_prefix=no 19969 need_version=no 19970 shlibpath_overrides_runpath=no 19971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19972 ;; 19973 esac 19974 ;; 19975 19976sysv4*MP*) 19977 if test -d /usr/nec ;then 19978 version_type=linux 19979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19980 soname_spec='$libname${shared_ext}.$major' 19981 shlibpath_var=LD_LIBRARY_PATH 19982 fi 19983 ;; 19984 19985sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19986 version_type=freebsd-elf 19987 need_lib_prefix=no 19988 need_version=no 19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19990 soname_spec='${libname}${release}${shared_ext}$major' 19991 shlibpath_var=LD_LIBRARY_PATH 19992 hardcode_into_libs=yes 19993 if test "$with_gnu_ld" = yes; then 19994 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19995 shlibpath_overrides_runpath=no 19996 else 19997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19998 shlibpath_overrides_runpath=yes 19999 case $host_os in 20000 sco3.2v5*) 20001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20002 ;; 20003 esac 20004 fi 20005 sys_lib_dlsearch_path_spec='/usr/lib' 20006 ;; 20007 20008uts4*) 20009 version_type=linux 20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20011 soname_spec='${libname}${release}${shared_ext}$major' 20012 shlibpath_var=LD_LIBRARY_PATH 20013 ;; 20014 20015*) 20016 dynamic_linker=no 20017 ;; 20018esac 20019{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20020echo "${ECHO_T}$dynamic_linker" >&6; } 20021test "$dynamic_linker" = no && can_build_shared=no 20022 20023variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20024if test "$GCC" = yes; then 20025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20026fi 20027 20028{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20029echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20030hardcode_action_GCJ= 20031if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20032 test -n "$runpath_var_GCJ" || \ 20033 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20034 20035 # We can hardcode non-existant directories. 20036 if test "$hardcode_direct_GCJ" != no && 20037 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20038 # have to relink, otherwise we might link with an installed library 20039 # when we should be linking with a yet-to-be-installed one 20040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20041 test "$hardcode_minus_L_GCJ" != no; then 20042 # Linking always hardcodes the temporary library directory. 20043 hardcode_action_GCJ=relink 20044 else 20045 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20046 hardcode_action_GCJ=immediate 20047 fi 20048else 20049 # We cannot hardcode anything, or else we can only hardcode existing 20050 # directories. 20051 hardcode_action_GCJ=unsupported 20052fi 20053{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20054echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 20055 20056if test "$hardcode_action_GCJ" = relink; then 20057 # Fast installation is not supported 20058 enable_fast_install=no 20059elif test "$shlibpath_overrides_runpath" = yes || 20060 test "$enable_shared" = no; then 20061 # Fast installation is not necessary 20062 enable_fast_install=needless 20063fi 20064 20065 20066# The else clause should only fire when bootstrapping the 20067# libtool distribution, otherwise you forgot to ship ltmain.sh 20068# with your package, and you will get complaints that there are 20069# no rules to generate ltmain.sh. 20070if test -f "$ltmain"; then 20071 # See if we are running on zsh, and set the options which allow our commands through 20072 # without removal of \ escapes. 20073 if test -n "${ZSH_VERSION+set}" ; then 20074 setopt NO_GLOB_SUBST 20075 fi 20076 # Now quote all the things that may contain metacharacters while being 20077 # careful not to overquote the AC_SUBSTed values. We take copies of the 20078 # variables and quote the copies for generation of the libtool script. 20079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20080 SED SHELL STRIP \ 20081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20083 deplibs_check_method reload_flag reload_cmds need_locks \ 20084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20085 lt_cv_sys_global_symbol_to_c_name_address \ 20086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20087 old_postinstall_cmds old_postuninstall_cmds \ 20088 compiler_GCJ \ 20089 CC_GCJ \ 20090 LD_GCJ \ 20091 lt_prog_compiler_wl_GCJ \ 20092 lt_prog_compiler_pic_GCJ \ 20093 lt_prog_compiler_static_GCJ \ 20094 lt_prog_compiler_no_builtin_flag_GCJ \ 20095 export_dynamic_flag_spec_GCJ \ 20096 thread_safe_flag_spec_GCJ \ 20097 whole_archive_flag_spec_GCJ \ 20098 enable_shared_with_static_runtimes_GCJ \ 20099 old_archive_cmds_GCJ \ 20100 old_archive_from_new_cmds_GCJ \ 20101 predep_objects_GCJ \ 20102 postdep_objects_GCJ \ 20103 predeps_GCJ \ 20104 postdeps_GCJ \ 20105 compiler_lib_search_path_GCJ \ 20106 archive_cmds_GCJ \ 20107 archive_expsym_cmds_GCJ \ 20108 postinstall_cmds_GCJ \ 20109 postuninstall_cmds_GCJ \ 20110 old_archive_from_expsyms_cmds_GCJ \ 20111 allow_undefined_flag_GCJ \ 20112 no_undefined_flag_GCJ \ 20113 export_symbols_cmds_GCJ \ 20114 hardcode_libdir_flag_spec_GCJ \ 20115 hardcode_libdir_flag_spec_ld_GCJ \ 20116 hardcode_libdir_separator_GCJ \ 20117 hardcode_automatic_GCJ \ 20118 module_cmds_GCJ \ 20119 module_expsym_cmds_GCJ \ 20120 lt_cv_prog_compiler_c_o_GCJ \ 20121 fix_srcfile_path_GCJ \ 20122 exclude_expsyms_GCJ \ 20123 include_expsyms_GCJ; do 20124 20125 case $var in 20126 old_archive_cmds_GCJ | \ 20127 old_archive_from_new_cmds_GCJ | \ 20128 archive_cmds_GCJ | \ 20129 archive_expsym_cmds_GCJ | \ 20130 module_cmds_GCJ | \ 20131 module_expsym_cmds_GCJ | \ 20132 old_archive_from_expsyms_cmds_GCJ | \ 20133 export_symbols_cmds_GCJ | \ 20134 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20135 postinstall_cmds | postuninstall_cmds | \ 20136 old_postinstall_cmds | old_postuninstall_cmds | \ 20137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20138 # Double-quote double-evaled strings. 20139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20140 ;; 20141 *) 20142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20143 ;; 20144 esac 20145 done 20146 20147 case $lt_echo in 20148 *'\$0 --fallback-echo"') 20149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20150 ;; 20151 esac 20152 20153cfgfile="$ofile" 20154 20155 cat <<__EOF__ >> "$cfgfile" 20156# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20157 20158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20159 20160# Shell to use when invoking shell scripts. 20161SHELL=$lt_SHELL 20162 20163# Whether or not to build shared libraries. 20164build_libtool_libs=$enable_shared 20165 20166# Whether or not to build static libraries. 20167build_old_libs=$enable_static 20168 20169# Whether or not to add -lc for building shared libraries. 20170build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20171 20172# Whether or not to disallow shared libs when runtime libs are static 20173allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20174 20175# Whether or not to optimize for fast installation. 20176fast_install=$enable_fast_install 20177 20178# The host system. 20179host_alias=$host_alias 20180host=$host 20181host_os=$host_os 20182 20183# The build system. 20184build_alias=$build_alias 20185build=$build 20186build_os=$build_os 20187 20188# An echo program that does not interpret backslashes. 20189echo=$lt_echo 20190 20191# The archiver. 20192AR=$lt_AR 20193AR_FLAGS=$lt_AR_FLAGS 20194 20195# A C compiler. 20196LTCC=$lt_LTCC 20197 20198# LTCC compiler flags. 20199LTCFLAGS=$lt_LTCFLAGS 20200 20201# A language-specific compiler. 20202CC=$lt_compiler_GCJ 20203 20204# Is the compiler the GNU C compiler? 20205with_gcc=$GCC_GCJ 20206 20207# An ERE matcher. 20208EGREP=$lt_EGREP 20209 20210# The linker used to build libraries. 20211LD=$lt_LD_GCJ 20212 20213# Whether we need hard or soft links. 20214LN_S=$lt_LN_S 20215 20216# A BSD-compatible nm program. 20217NM=$lt_NM 20218 20219# A symbol stripping program 20220STRIP=$lt_STRIP 20221 20222# Used to examine libraries when file_magic_cmd begins "file" 20223MAGIC_CMD=$MAGIC_CMD 20224 20225# Used on cygwin: DLL creation program. 20226DLLTOOL="$DLLTOOL" 20227 20228# Used on cygwin: object dumper. 20229OBJDUMP="$OBJDUMP" 20230 20231# Used on cygwin: assembler. 20232AS="$AS" 20233 20234# The name of the directory that contains temporary libtool files. 20235objdir=$objdir 20236 20237# How to create reloadable object files. 20238reload_flag=$lt_reload_flag 20239reload_cmds=$lt_reload_cmds 20240 20241# How to pass a linker flag through the compiler. 20242wl=$lt_lt_prog_compiler_wl_GCJ 20243 20244# Object file suffix (normally "o"). 20245objext="$ac_objext" 20246 20247# Old archive suffix (normally "a"). 20248libext="$libext" 20249 20250# Shared library suffix (normally ".so"). 20251shrext_cmds='$shrext_cmds' 20252 20253# Executable file suffix (normally ""). 20254exeext="$exeext" 20255 20256# Additional compiler flags for building library objects. 20257pic_flag=$lt_lt_prog_compiler_pic_GCJ 20258pic_mode=$pic_mode 20259 20260# What is the maximum length of a command? 20261max_cmd_len=$lt_cv_sys_max_cmd_len 20262 20263# Does compiler simultaneously support -c and -o options? 20264compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20265 20266# Must we lock files when doing compilation? 20267need_locks=$lt_need_locks 20268 20269# Do we need the lib prefix for modules? 20270need_lib_prefix=$need_lib_prefix 20271 20272# Do we need a version for libraries? 20273need_version=$need_version 20274 20275# Whether dlopen is supported. 20276dlopen_support=$enable_dlopen 20277 20278# Whether dlopen of programs is supported. 20279dlopen_self=$enable_dlopen_self 20280 20281# Whether dlopen of statically linked programs is supported. 20282dlopen_self_static=$enable_dlopen_self_static 20283 20284# Compiler flag to prevent dynamic linking. 20285link_static_flag=$lt_lt_prog_compiler_static_GCJ 20286 20287# Compiler flag to turn off builtin functions. 20288no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20289 20290# Compiler flag to allow reflexive dlopens. 20291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20292 20293# Compiler flag to generate shared objects directly from archives. 20294whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20295 20296# Compiler flag to generate thread-safe objects. 20297thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20298 20299# Library versioning type. 20300version_type=$version_type 20301 20302# Format of library name prefix. 20303libname_spec=$lt_libname_spec 20304 20305# List of archive names. First name is the real one, the rest are links. 20306# The last name is the one that the linker finds with -lNAME. 20307library_names_spec=$lt_library_names_spec 20308 20309# The coded name of the library, if different from the real name. 20310soname_spec=$lt_soname_spec 20311 20312# Commands used to build and install an old-style archive. 20313RANLIB=$lt_RANLIB 20314old_archive_cmds=$lt_old_archive_cmds_GCJ 20315old_postinstall_cmds=$lt_old_postinstall_cmds 20316old_postuninstall_cmds=$lt_old_postuninstall_cmds 20317 20318# Create an old-style archive from a shared archive. 20319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20320 20321# Create a temporary old-style archive to link instead of a shared archive. 20322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20323 20324# Commands used to build and install a shared archive. 20325archive_cmds=$lt_archive_cmds_GCJ 20326archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20327postinstall_cmds=$lt_postinstall_cmds 20328postuninstall_cmds=$lt_postuninstall_cmds 20329 20330# Commands used to build a loadable module (assumed same as above if empty) 20331module_cmds=$lt_module_cmds_GCJ 20332module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20333 20334# Commands to strip libraries. 20335old_striplib=$lt_old_striplib 20336striplib=$lt_striplib 20337 20338# Dependencies to place before the objects being linked to create a 20339# shared library. 20340predep_objects=$lt_predep_objects_GCJ 20341 20342# Dependencies to place after the objects being linked to create a 20343# shared library. 20344postdep_objects=$lt_postdep_objects_GCJ 20345 20346# Dependencies to place before the objects being linked to create a 20347# shared library. 20348predeps=$lt_predeps_GCJ 20349 20350# Dependencies to place after the objects being linked to create a 20351# shared library. 20352postdeps=$lt_postdeps_GCJ 20353 20354# The library search path used internally by the compiler when linking 20355# a shared library. 20356compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20357 20358# Method to check whether dependent libraries are shared objects. 20359deplibs_check_method=$lt_deplibs_check_method 20360 20361# Command to use when deplibs_check_method == file_magic. 20362file_magic_cmd=$lt_file_magic_cmd 20363 20364# Flag that allows shared libraries with undefined symbols to be built. 20365allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20366 20367# Flag that forces no undefined symbols. 20368no_undefined_flag=$lt_no_undefined_flag_GCJ 20369 20370# Commands used to finish a libtool library installation in a directory. 20371finish_cmds=$lt_finish_cmds 20372 20373# Same as above, but a single script fragment to be evaled but not shown. 20374finish_eval=$lt_finish_eval 20375 20376# Take the output of nm and produce a listing of raw symbols and C names. 20377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20378 20379# Transform the output of nm in a proper C declaration 20380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20381 20382# Transform the output of nm in a C name address pair 20383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20384 20385# This is the shared library runtime path variable. 20386runpath_var=$runpath_var 20387 20388# This is the shared library path variable. 20389shlibpath_var=$shlibpath_var 20390 20391# Is shlibpath searched before the hard-coded library search path? 20392shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20393 20394# How to hardcode a shared library path into an executable. 20395hardcode_action=$hardcode_action_GCJ 20396 20397# Whether we should hardcode library paths into libraries. 20398hardcode_into_libs=$hardcode_into_libs 20399 20400# Flag to hardcode \$libdir into a binary during linking. 20401# This must work even if \$libdir does not exist. 20402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20403 20404# If ld is used when linking, flag to hardcode \$libdir into 20405# a binary during linking. This must work even if \$libdir does 20406# not exist. 20407hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20408 20409# Whether we need a single -rpath flag with a separated argument. 20410hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20411 20412# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20413# resulting binary. 20414hardcode_direct=$hardcode_direct_GCJ 20415 20416# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20417# resulting binary. 20418hardcode_minus_L=$hardcode_minus_L_GCJ 20419 20420# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20421# the resulting binary. 20422hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20423 20424# Set to yes if building a shared library automatically hardcodes DIR into the library 20425# and all subsequent libraries and executables linked against it. 20426hardcode_automatic=$hardcode_automatic_GCJ 20427 20428# Variables whose values should be saved in libtool wrapper scripts and 20429# restored at relink time. 20430variables_saved_for_relink="$variables_saved_for_relink" 20431 20432# Whether libtool must link a program against all its dependency libraries. 20433link_all_deplibs=$link_all_deplibs_GCJ 20434 20435# Compile-time system search path for libraries 20436sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20437 20438# Run-time system search path for libraries 20439sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20440 20441# Fix the shell variable \$srcfile for the compiler. 20442fix_srcfile_path=$lt_fix_srcfile_path 20443 20444# Set to yes if exported symbols are required. 20445always_export_symbols=$always_export_symbols_GCJ 20446 20447# The commands to list exported symbols. 20448export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20449 20450# The commands to extract the exported symbol list from a shared archive. 20451extract_expsyms_cmds=$lt_extract_expsyms_cmds 20452 20453# Symbols that should not be listed in the preloaded symbols. 20454exclude_expsyms=$lt_exclude_expsyms_GCJ 20455 20456# Symbols that must always be exported. 20457include_expsyms=$lt_include_expsyms_GCJ 20458 20459# ### END LIBTOOL TAG CONFIG: $tagname 20460 20461__EOF__ 20462 20463 20464else 20465 # If there is no Makefile yet, we rely on a make rule to execute 20466 # `config.status --recheck' to rerun these tests and create the 20467 # libtool script then. 20468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20469 if test -f "$ltmain_in"; then 20470 test -f Makefile && make "$ltmain" 20471 fi 20472fi 20473 20474 20475ac_ext=c 20476ac_cpp='$CPP $CPPFLAGS' 20477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20479ac_compiler_gnu=$ac_cv_c_compiler_gnu 20480 20481CC="$lt_save_CC" 20482 20483 else 20484 tagname="" 20485 fi 20486 ;; 20487 20488 RC) 20489 20490 20491# Source file extension for RC test sources. 20492ac_ext=rc 20493 20494# Object file extension for compiled RC test sources. 20495objext=o 20496objext_RC=$objext 20497 20498# Code to be used in simple compile tests 20499lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 20500 20501# Code to be used in simple link tests 20502lt_simple_link_test_code="$lt_simple_compile_test_code" 20503 20504# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20505 20506# If no C compiler was specified, use CC. 20507LTCC=${LTCC-"$CC"} 20508 20509# If no C compiler flags were specified, use CFLAGS. 20510LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20511 20512# Allow CC to be a program name with arguments. 20513compiler=$CC 20514 20515 20516# save warnings/boilerplate of simple test code 20517ac_outfile=conftest.$ac_objext 20518echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20519eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20520_lt_compiler_boilerplate=`cat conftest.err` 20521$rm conftest* 20522 20523ac_outfile=conftest.$ac_objext 20524echo "$lt_simple_link_test_code" >conftest.$ac_ext 20525eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20526_lt_linker_boilerplate=`cat conftest.err` 20527$rm conftest* 20528 20529 20530# Allow CC to be a program name with arguments. 20531lt_save_CC="$CC" 20532CC=${RC-"windres"} 20533compiler=$CC 20534compiler_RC=$CC 20535for cc_temp in $compiler""; do 20536 case $cc_temp in 20537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20539 \-*) ;; 20540 *) break;; 20541 esac 20542done 20543cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20544 20545lt_cv_prog_compiler_c_o_RC=yes 20546 20547# The else clause should only fire when bootstrapping the 20548# libtool distribution, otherwise you forgot to ship ltmain.sh 20549# with your package, and you will get complaints that there are 20550# no rules to generate ltmain.sh. 20551if test -f "$ltmain"; then 20552 # See if we are running on zsh, and set the options which allow our commands through 20553 # without removal of \ escapes. 20554 if test -n "${ZSH_VERSION+set}" ; then 20555 setopt NO_GLOB_SUBST 20556 fi 20557 # Now quote all the things that may contain metacharacters while being 20558 # careful not to overquote the AC_SUBSTed values. We take copies of the 20559 # variables and quote the copies for generation of the libtool script. 20560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20561 SED SHELL STRIP \ 20562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20564 deplibs_check_method reload_flag reload_cmds need_locks \ 20565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20566 lt_cv_sys_global_symbol_to_c_name_address \ 20567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20568 old_postinstall_cmds old_postuninstall_cmds \ 20569 compiler_RC \ 20570 CC_RC \ 20571 LD_RC \ 20572 lt_prog_compiler_wl_RC \ 20573 lt_prog_compiler_pic_RC \ 20574 lt_prog_compiler_static_RC \ 20575 lt_prog_compiler_no_builtin_flag_RC \ 20576 export_dynamic_flag_spec_RC \ 20577 thread_safe_flag_spec_RC \ 20578 whole_archive_flag_spec_RC \ 20579 enable_shared_with_static_runtimes_RC \ 20580 old_archive_cmds_RC \ 20581 old_archive_from_new_cmds_RC \ 20582 predep_objects_RC \ 20583 postdep_objects_RC \ 20584 predeps_RC \ 20585 postdeps_RC \ 20586 compiler_lib_search_path_RC \ 20587 archive_cmds_RC \ 20588 archive_expsym_cmds_RC \ 20589 postinstall_cmds_RC \ 20590 postuninstall_cmds_RC \ 20591 old_archive_from_expsyms_cmds_RC \ 20592 allow_undefined_flag_RC \ 20593 no_undefined_flag_RC \ 20594 export_symbols_cmds_RC \ 20595 hardcode_libdir_flag_spec_RC \ 20596 hardcode_libdir_flag_spec_ld_RC \ 20597 hardcode_libdir_separator_RC \ 20598 hardcode_automatic_RC \ 20599 module_cmds_RC \ 20600 module_expsym_cmds_RC \ 20601 lt_cv_prog_compiler_c_o_RC \ 20602 fix_srcfile_path_RC \ 20603 exclude_expsyms_RC \ 20604 include_expsyms_RC; do 20605 20606 case $var in 20607 old_archive_cmds_RC | \ 20608 old_archive_from_new_cmds_RC | \ 20609 archive_cmds_RC | \ 20610 archive_expsym_cmds_RC | \ 20611 module_cmds_RC | \ 20612 module_expsym_cmds_RC | \ 20613 old_archive_from_expsyms_cmds_RC | \ 20614 export_symbols_cmds_RC | \ 20615 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20616 postinstall_cmds | postuninstall_cmds | \ 20617 old_postinstall_cmds | old_postuninstall_cmds | \ 20618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20619 # Double-quote double-evaled strings. 20620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20621 ;; 20622 *) 20623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20624 ;; 20625 esac 20626 done 20627 20628 case $lt_echo in 20629 *'\$0 --fallback-echo"') 20630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20631 ;; 20632 esac 20633 20634cfgfile="$ofile" 20635 20636 cat <<__EOF__ >> "$cfgfile" 20637# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20638 20639# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20640 20641# Shell to use when invoking shell scripts. 20642SHELL=$lt_SHELL 20643 20644# Whether or not to build shared libraries. 20645build_libtool_libs=$enable_shared 20646 20647# Whether or not to build static libraries. 20648build_old_libs=$enable_static 20649 20650# Whether or not to add -lc for building shared libraries. 20651build_libtool_need_lc=$archive_cmds_need_lc_RC 20652 20653# Whether or not to disallow shared libs when runtime libs are static 20654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20655 20656# Whether or not to optimize for fast installation. 20657fast_install=$enable_fast_install 20658 20659# The host system. 20660host_alias=$host_alias 20661host=$host 20662host_os=$host_os 20663 20664# The build system. 20665build_alias=$build_alias 20666build=$build 20667build_os=$build_os 20668 20669# An echo program that does not interpret backslashes. 20670echo=$lt_echo 20671 20672# The archiver. 20673AR=$lt_AR 20674AR_FLAGS=$lt_AR_FLAGS 20675 20676# A C compiler. 20677LTCC=$lt_LTCC 20678 20679# LTCC compiler flags. 20680LTCFLAGS=$lt_LTCFLAGS 20681 20682# A language-specific compiler. 20683CC=$lt_compiler_RC 20684 20685# Is the compiler the GNU C compiler? 20686with_gcc=$GCC_RC 20687 20688# An ERE matcher. 20689EGREP=$lt_EGREP 20690 20691# The linker used to build libraries. 20692LD=$lt_LD_RC 20693 20694# Whether we need hard or soft links. 20695LN_S=$lt_LN_S 20696 20697# A BSD-compatible nm program. 20698NM=$lt_NM 20699 20700# A symbol stripping program 20701STRIP=$lt_STRIP 20702 20703# Used to examine libraries when file_magic_cmd begins "file" 20704MAGIC_CMD=$MAGIC_CMD 20705 20706# Used on cygwin: DLL creation program. 20707DLLTOOL="$DLLTOOL" 20708 20709# Used on cygwin: object dumper. 20710OBJDUMP="$OBJDUMP" 20711 20712# Used on cygwin: assembler. 20713AS="$AS" 20714 20715# The name of the directory that contains temporary libtool files. 20716objdir=$objdir 20717 20718# How to create reloadable object files. 20719reload_flag=$lt_reload_flag 20720reload_cmds=$lt_reload_cmds 20721 20722# How to pass a linker flag through the compiler. 20723wl=$lt_lt_prog_compiler_wl_RC 20724 20725# Object file suffix (normally "o"). 20726objext="$ac_objext" 20727 20728# Old archive suffix (normally "a"). 20729libext="$libext" 20730 20731# Shared library suffix (normally ".so"). 20732shrext_cmds='$shrext_cmds' 20733 20734# Executable file suffix (normally ""). 20735exeext="$exeext" 20736 20737# Additional compiler flags for building library objects. 20738pic_flag=$lt_lt_prog_compiler_pic_RC 20739pic_mode=$pic_mode 20740 20741# What is the maximum length of a command? 20742max_cmd_len=$lt_cv_sys_max_cmd_len 20743 20744# Does compiler simultaneously support -c and -o options? 20745compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20746 20747# Must we lock files when doing compilation? 20748need_locks=$lt_need_locks 20749 20750# Do we need the lib prefix for modules? 20751need_lib_prefix=$need_lib_prefix 20752 20753# Do we need a version for libraries? 20754need_version=$need_version 20755 20756# Whether dlopen is supported. 20757dlopen_support=$enable_dlopen 20758 20759# Whether dlopen of programs is supported. 20760dlopen_self=$enable_dlopen_self 20761 20762# Whether dlopen of statically linked programs is supported. 20763dlopen_self_static=$enable_dlopen_self_static 20764 20765# Compiler flag to prevent dynamic linking. 20766link_static_flag=$lt_lt_prog_compiler_static_RC 20767 20768# Compiler flag to turn off builtin functions. 20769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20770 20771# Compiler flag to allow reflexive dlopens. 20772export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20773 20774# Compiler flag to generate shared objects directly from archives. 20775whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20776 20777# Compiler flag to generate thread-safe objects. 20778thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20779 20780# Library versioning type. 20781version_type=$version_type 20782 20783# Format of library name prefix. 20784libname_spec=$lt_libname_spec 20785 20786# List of archive names. First name is the real one, the rest are links. 20787# The last name is the one that the linker finds with -lNAME. 20788library_names_spec=$lt_library_names_spec 20789 20790# The coded name of the library, if different from the real name. 20791soname_spec=$lt_soname_spec 20792 20793# Commands used to build and install an old-style archive. 20794RANLIB=$lt_RANLIB 20795old_archive_cmds=$lt_old_archive_cmds_RC 20796old_postinstall_cmds=$lt_old_postinstall_cmds 20797old_postuninstall_cmds=$lt_old_postuninstall_cmds 20798 20799# Create an old-style archive from a shared archive. 20800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20801 20802# Create a temporary old-style archive to link instead of a shared archive. 20803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20804 20805# Commands used to build and install a shared archive. 20806archive_cmds=$lt_archive_cmds_RC 20807archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20808postinstall_cmds=$lt_postinstall_cmds 20809postuninstall_cmds=$lt_postuninstall_cmds 20810 20811# Commands used to build a loadable module (assumed same as above if empty) 20812module_cmds=$lt_module_cmds_RC 20813module_expsym_cmds=$lt_module_expsym_cmds_RC 20814 20815# Commands to strip libraries. 20816old_striplib=$lt_old_striplib 20817striplib=$lt_striplib 20818 20819# Dependencies to place before the objects being linked to create a 20820# shared library. 20821predep_objects=$lt_predep_objects_RC 20822 20823# Dependencies to place after the objects being linked to create a 20824# shared library. 20825postdep_objects=$lt_postdep_objects_RC 20826 20827# Dependencies to place before the objects being linked to create a 20828# shared library. 20829predeps=$lt_predeps_RC 20830 20831# Dependencies to place after the objects being linked to create a 20832# shared library. 20833postdeps=$lt_postdeps_RC 20834 20835# The library search path used internally by the compiler when linking 20836# a shared library. 20837compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20838 20839# Method to check whether dependent libraries are shared objects. 20840deplibs_check_method=$lt_deplibs_check_method 20841 20842# Command to use when deplibs_check_method == file_magic. 20843file_magic_cmd=$lt_file_magic_cmd 20844 20845# Flag that allows shared libraries with undefined symbols to be built. 20846allow_undefined_flag=$lt_allow_undefined_flag_RC 20847 20848# Flag that forces no undefined symbols. 20849no_undefined_flag=$lt_no_undefined_flag_RC 20850 20851# Commands used to finish a libtool library installation in a directory. 20852finish_cmds=$lt_finish_cmds 20853 20854# Same as above, but a single script fragment to be evaled but not shown. 20855finish_eval=$lt_finish_eval 20856 20857# Take the output of nm and produce a listing of raw symbols and C names. 20858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20859 20860# Transform the output of nm in a proper C declaration 20861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20862 20863# Transform the output of nm in a C name address pair 20864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20865 20866# This is the shared library runtime path variable. 20867runpath_var=$runpath_var 20868 20869# This is the shared library path variable. 20870shlibpath_var=$shlibpath_var 20871 20872# Is shlibpath searched before the hard-coded library search path? 20873shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20874 20875# How to hardcode a shared library path into an executable. 20876hardcode_action=$hardcode_action_RC 20877 20878# Whether we should hardcode library paths into libraries. 20879hardcode_into_libs=$hardcode_into_libs 20880 20881# Flag to hardcode \$libdir into a binary during linking. 20882# This must work even if \$libdir does not exist. 20883hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20884 20885# If ld is used when linking, flag to hardcode \$libdir into 20886# a binary during linking. This must work even if \$libdir does 20887# not exist. 20888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20889 20890# Whether we need a single -rpath flag with a separated argument. 20891hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20892 20893# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20894# resulting binary. 20895hardcode_direct=$hardcode_direct_RC 20896 20897# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20898# resulting binary. 20899hardcode_minus_L=$hardcode_minus_L_RC 20900 20901# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20902# the resulting binary. 20903hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20904 20905# Set to yes if building a shared library automatically hardcodes DIR into the library 20906# and all subsequent libraries and executables linked against it. 20907hardcode_automatic=$hardcode_automatic_RC 20908 20909# Variables whose values should be saved in libtool wrapper scripts and 20910# restored at relink time. 20911variables_saved_for_relink="$variables_saved_for_relink" 20912 20913# Whether libtool must link a program against all its dependency libraries. 20914link_all_deplibs=$link_all_deplibs_RC 20915 20916# Compile-time system search path for libraries 20917sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20918 20919# Run-time system search path for libraries 20920sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20921 20922# Fix the shell variable \$srcfile for the compiler. 20923fix_srcfile_path=$lt_fix_srcfile_path 20924 20925# Set to yes if exported symbols are required. 20926always_export_symbols=$always_export_symbols_RC 20927 20928# The commands to list exported symbols. 20929export_symbols_cmds=$lt_export_symbols_cmds_RC 20930 20931# The commands to extract the exported symbol list from a shared archive. 20932extract_expsyms_cmds=$lt_extract_expsyms_cmds 20933 20934# Symbols that should not be listed in the preloaded symbols. 20935exclude_expsyms=$lt_exclude_expsyms_RC 20936 20937# Symbols that must always be exported. 20938include_expsyms=$lt_include_expsyms_RC 20939 20940# ### END LIBTOOL TAG CONFIG: $tagname 20941 20942__EOF__ 20943 20944 20945else 20946 # If there is no Makefile yet, we rely on a make rule to execute 20947 # `config.status --recheck' to rerun these tests and create the 20948 # libtool script then. 20949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20950 if test -f "$ltmain_in"; then 20951 test -f Makefile && make "$ltmain" 20952 fi 20953fi 20954 20955 20956ac_ext=c 20957ac_cpp='$CPP $CPPFLAGS' 20958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20960ac_compiler_gnu=$ac_cv_c_compiler_gnu 20961 20962CC="$lt_save_CC" 20963 20964 ;; 20965 20966 *) 20967 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20968echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20969 { (exit 1); exit 1; }; } 20970 ;; 20971 esac 20972 20973 # Append the new tag name to the list of available tags. 20974 if test -n "$tagname" ; then 20975 available_tags="$available_tags $tagname" 20976 fi 20977 fi 20978 done 20979 IFS="$lt_save_ifs" 20980 20981 # Now substitute the updated list of available tags. 20982 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20983 mv "${ofile}T" "$ofile" 20984 chmod +x "$ofile" 20985 else 20986 rm -f "${ofile}T" 20987 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20988echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20989 { (exit 1); exit 1; }; } 20990 fi 20991fi 20992 20993 20994 20995# This can be used to rebuild libtool when needed 20996LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20997 20998# Always use our own libtool. 20999LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21000 21001# Prevent multiple expansion 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21028 if test -n "$ac_tool_prefix"; then 21029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21030set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21031{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21033if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21034 echo $ECHO_N "(cached) $ECHO_C" >&6 21035else 21036 case $PKG_CONFIG in 21037 [\\/]* | ?:[\\/]*) 21038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21039 ;; 21040 *) 21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21042for as_dir in $PATH 21043do 21044 IFS=$as_save_IFS 21045 test -z "$as_dir" && as_dir=. 21046 for ac_exec_ext in '' $ac_executable_extensions; do 21047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21050 break 2 21051 fi 21052done 21053done 21054IFS=$as_save_IFS 21055 21056 ;; 21057esac 21058fi 21059PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21060if test -n "$PKG_CONFIG"; then 21061 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21062echo "${ECHO_T}$PKG_CONFIG" >&6; } 21063else 21064 { echo "$as_me:$LINENO: result: no" >&5 21065echo "${ECHO_T}no" >&6; } 21066fi 21067 21068 21069fi 21070if test -z "$ac_cv_path_PKG_CONFIG"; then 21071 ac_pt_PKG_CONFIG=$PKG_CONFIG 21072 # Extract the first word of "pkg-config", so it can be a program name with args. 21073set dummy pkg-config; ac_word=$2 21074{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21076if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21077 echo $ECHO_N "(cached) $ECHO_C" >&6 21078else 21079 case $ac_pt_PKG_CONFIG in 21080 [\\/]* | ?:[\\/]*) 21081 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21082 ;; 21083 *) 21084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21085for as_dir in $PATH 21086do 21087 IFS=$as_save_IFS 21088 test -z "$as_dir" && as_dir=. 21089 for ac_exec_ext in '' $ac_executable_extensions; do 21090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21091 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21093 break 2 21094 fi 21095done 21096done 21097IFS=$as_save_IFS 21098 21099 ;; 21100esac 21101fi 21102ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21103if test -n "$ac_pt_PKG_CONFIG"; then 21104 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21105echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 21106else 21107 { echo "$as_me:$LINENO: result: no" >&5 21108echo "${ECHO_T}no" >&6; } 21109fi 21110 21111 if test "x$ac_pt_PKG_CONFIG" = x; then 21112 PKG_CONFIG="" 21113 else 21114 case $cross_compiling:$ac_tool_warned in 21115yes:) 21116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21117whose name does not start with the host triplet. If you think this 21118configuration is useful to you, please write to autoconf@gnu.org." >&5 21119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21120whose name does not start with the host triplet. If you think this 21121configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21122ac_tool_warned=yes ;; 21123esac 21124 PKG_CONFIG=$ac_pt_PKG_CONFIG 21125 fi 21126else 21127 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21128fi 21129 21130fi 21131if test -n "$PKG_CONFIG"; then 21132 _pkg_min_version=0.9.0 21133 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21134echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 21135 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21136 { echo "$as_me:$LINENO: result: yes" >&5 21137echo "${ECHO_T}yes" >&6; } 21138 else 21139 { echo "$as_me:$LINENO: result: no" >&5 21140echo "${ECHO_T}no" >&6; } 21141 PKG_CONFIG="" 21142 fi 21143 21144fi 21145 21146pkg_failed=no 21147{ echo "$as_me:$LINENO: checking for GKMAP" >&5 21148echo $ECHO_N "checking for GKMAP... $ECHO_C" >&6; } 21149 21150if test -n "$PKG_CONFIG"; then 21151 if test -n "$GKMAP_CFLAGS"; then 21152 pkg_cv_GKMAP_CFLAGS="$GKMAP_CFLAGS" 21153 else 21154 if test -n "$PKG_CONFIG" && \ 21155 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 \"") >&5 21156 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 ") 2>&5 21157 ac_status=$? 21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21159 (exit $ac_status); }; then 21160 pkg_cv_GKMAP_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 " 2>/dev/null` 21161else 21162 pkg_failed=yes 21163fi 21164 fi 21165else 21166 pkg_failed=untried 21167fi 21168if test -n "$PKG_CONFIG"; then 21169 if test -n "$GKMAP_LIBS"; then 21170 pkg_cv_GKMAP_LIBS="$GKMAP_LIBS" 21171 else 21172 if test -n "$PKG_CONFIG" && \ 21173 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 \"") >&5 21174 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 ") 2>&5 21175 ac_status=$? 21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21177 (exit $ac_status); }; then 21178 pkg_cv_GKMAP_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 " 2>/dev/null` 21179else 21180 pkg_failed=yes 21181fi 21182 fi 21183else 21184 pkg_failed=untried 21185fi 21186 21187 21188 21189if test $pkg_failed = yes; then 21190 21191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21192 _pkg_short_errors_supported=yes 21193else 21194 _pkg_short_errors_supported=no 21195fi 21196 if test $_pkg_short_errors_supported = yes; then 21197 GKMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 "` 21198 else 21199 GKMAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 "` 21200 fi 21201 # Put the nasty error message in config.log where it belongs 21202 echo "$GKMAP_PKG_ERRORS" >&5 21203 21204 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 ) were not met: 21205 21206$GKMAP_PKG_ERRORS 21207 21208Consider adjusting the PKG_CONFIG_PATH environment variable if you 21209installed software in a non-standard prefix. 21210 21211Alternatively, you may set the environment variables GKMAP_CFLAGS 21212and GKMAP_LIBS to avoid the need to call pkg-config. 21213See the pkg-config man page for more details. 21214" >&5 21215echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 ) were not met: 21216 21217$GKMAP_PKG_ERRORS 21218 21219Consider adjusting the PKG_CONFIG_PATH environment variable if you 21220installed software in a non-standard prefix. 21221 21222Alternatively, you may set the environment variables GKMAP_CFLAGS 21223and GKMAP_LIBS to avoid the need to call pkg-config. 21224See the pkg-config man page for more details. 21225" >&2;} 21226 { (exit 1); exit 1; }; } 21227elif test $pkg_failed = untried; then 21228 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21229is in your PATH or set the PKG_CONFIG environment variable to the full 21230path to pkg-config. 21231 21232Alternatively, you may set the environment variables GKMAP_CFLAGS 21233and GKMAP_LIBS to avoid the need to call pkg-config. 21234See the pkg-config man page for more details. 21235 21236To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21237See \`config.log' for more details." >&5 21238echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21239is in your PATH or set the PKG_CONFIG environment variable to the full 21240path to pkg-config. 21241 21242Alternatively, you may set the environment variables GKMAP_CFLAGS 21243and GKMAP_LIBS to avoid the need to call pkg-config. 21244See the pkg-config man page for more details. 21245 21246To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21247See \`config.log' for more details." >&2;} 21248 { (exit 1); exit 1; }; } 21249else 21250 GKMAP_CFLAGS=$pkg_cv_GKMAP_CFLAGS 21251 GKMAP_LIBS=$pkg_cv_GKMAP_LIBS 21252 { echo "$as_me:$LINENO: result: yes" >&5 21253echo "${ECHO_T}yes" >&6; } 21254 : 21255fi 21256 21257 21258 21259 21260 21261 21262ac_config_files="$ac_config_files Makefile pixmaps/Makefile src/Makefile" 21263 21264cat >confcache <<\_ACEOF 21265# This file is a shell script that caches the results of configure 21266# tests run on this system so they can be shared between configure 21267# scripts and configure runs, see configure's option --config-cache. 21268# It is not useful on other systems. If it contains results you don't 21269# want to keep, you may remove or edit it. 21270# 21271# config.status only pays attention to the cache file if you give it 21272# the --recheck option to rerun configure. 21273# 21274# `ac_cv_env_foo' variables (set or unset) will be overridden when 21275# loading this file, other *unset* `ac_cv_foo' will be assigned the 21276# following values. 21277 21278_ACEOF 21279 21280# The following way of writing the cache mishandles newlines in values, 21281# but we know of no workaround that is simple, portable, and efficient. 21282# So, we kill variables containing newlines. 21283# Ultrix sh set writes to stderr and can't be redirected directly, 21284# and sets the high bit in the cache file unless we assign to the vars. 21285( 21286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21287 eval ac_val=\$$ac_var 21288 case $ac_val in #( 21289 *${as_nl}*) 21290 case $ac_var in #( 21291 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21292echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21293 esac 21294 case $ac_var in #( 21295 _ | IFS | as_nl) ;; #( 21296 *) $as_unset $ac_var ;; 21297 esac ;; 21298 esac 21299 done 21300 21301 (set) 2>&1 | 21302 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21303 *${as_nl}ac_space=\ *) 21304 # `set' does not quote correctly, so add quotes (double-quote 21305 # substitution turns \\\\ into \\, and sed turns \\ into \). 21306 sed -n \ 21307 "s/'/'\\\\''/g; 21308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21309 ;; #( 21310 *) 21311 # `set' quotes correctly as required by POSIX, so do not add quotes. 21312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21313 ;; 21314 esac | 21315 sort 21316) | 21317 sed ' 21318 /^ac_cv_env_/b end 21319 t clear 21320 :clear 21321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21322 t end 21323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21324 :end' >>confcache 21325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21326 if test -w "$cache_file"; then 21327 test "x$cache_file" != "x/dev/null" && 21328 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21329echo "$as_me: updating cache $cache_file" >&6;} 21330 cat confcache >$cache_file 21331 else 21332 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21333echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21334 fi 21335fi 21336rm -f confcache 21337 21338test "x$prefix" = xNONE && prefix=$ac_default_prefix 21339# Let make expand exec_prefix. 21340test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21341 21342DEFS=-DHAVE_CONFIG_H 21343 21344ac_libobjs= 21345ac_ltlibobjs= 21346for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21347 # 1. Remove the extension, and $U if already installed. 21348 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21349 ac_i=`echo "$ac_i" | sed "$ac_script"` 21350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21351 # will be set to the directory where LIBOBJS objects are built. 21352 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21353 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21354done 21355LIBOBJS=$ac_libobjs 21356 21357LTLIBOBJS=$ac_ltlibobjs 21358 21359 21360if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21361 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21362Usually this means the macro was only invoked conditionally." >&5 21363echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21364Usually this means the macro was only invoked conditionally." >&2;} 21365 { (exit 1); exit 1; }; } 21366fi 21367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21368 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21369Usually this means the macro was only invoked conditionally." >&5 21370echo "$as_me: error: conditional \"AMDEP\" was never defined. 21371Usually this means the macro was only invoked conditionally." >&2;} 21372 { (exit 1); exit 1; }; } 21373fi 21374if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21375 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21376Usually this means the macro was only invoked conditionally." >&5 21377echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21378Usually this means the macro was only invoked conditionally." >&2;} 21379 { (exit 1); exit 1; }; } 21380fi 21381if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21382 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21383Usually this means the macro was only invoked conditionally." >&5 21384echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21385Usually this means the macro was only invoked conditionally." >&2;} 21386 { (exit 1); exit 1; }; } 21387fi 21388if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21390Usually this means the macro was only invoked conditionally." >&5 21391echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21392Usually this means the macro was only invoked conditionally." >&2;} 21393 { (exit 1); exit 1; }; } 21394fi 21395if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21397Usually this means the macro was only invoked conditionally." >&5 21398echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21399Usually this means the macro was only invoked conditionally." >&2;} 21400 { (exit 1); exit 1; }; } 21401fi 21402 21403: ${CONFIG_STATUS=./config.status} 21404ac_clean_files_save=$ac_clean_files 21405ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21406{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21407echo "$as_me: creating $CONFIG_STATUS" >&6;} 21408cat >$CONFIG_STATUS <<_ACEOF 21409#! $SHELL 21410# Generated by $as_me. 21411# Run this file to recreate the current configuration. 21412# Compiler output produced by configure, useful for debugging 21413# configure, is in config.log if it exists. 21414 21415debug=false 21416ac_cs_recheck=false 21417ac_cs_silent=false 21418SHELL=\${CONFIG_SHELL-$SHELL} 21419_ACEOF 21420 21421cat >>$CONFIG_STATUS <<\_ACEOF 21422## --------------------- ## 21423## M4sh Initialization. ## 21424## --------------------- ## 21425 21426# Be more Bourne compatible 21427DUALCASE=1; export DUALCASE # for MKS sh 21428if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21429 emulate sh 21430 NULLCMD=: 21431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21432 # is contrary to our usage. Disable this feature. 21433 alias -g '${1+"$@"}'='"$@"' 21434 setopt NO_GLOB_SUBST 21435else 21436 case `(set -o) 2>/dev/null` in 21437 *posix*) set -o posix ;; 21438esac 21439 21440fi 21441 21442 21443 21444 21445# PATH needs CR 21446# Avoid depending upon Character Ranges. 21447as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21448as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21449as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21450as_cr_digits='0123456789' 21451as_cr_alnum=$as_cr_Letters$as_cr_digits 21452 21453# The user is always right. 21454if test "${PATH_SEPARATOR+set}" != set; then 21455 echo "#! /bin/sh" >conf$$.sh 21456 echo "exit 0" >>conf$$.sh 21457 chmod +x conf$$.sh 21458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21459 PATH_SEPARATOR=';' 21460 else 21461 PATH_SEPARATOR=: 21462 fi 21463 rm -f conf$$.sh 21464fi 21465 21466# Support unset when possible. 21467if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21468 as_unset=unset 21469else 21470 as_unset=false 21471fi 21472 21473 21474# IFS 21475# We need space, tab and new line, in precisely that order. Quoting is 21476# there to prevent editors from complaining about space-tab. 21477# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21478# splitting by setting IFS to empty value.) 21479as_nl=' 21480' 21481IFS=" "" $as_nl" 21482 21483# Find who we are. Look in the path if we contain no directory separator. 21484case $0 in 21485 *[\\/]* ) as_myself=$0 ;; 21486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21487for as_dir in $PATH 21488do 21489 IFS=$as_save_IFS 21490 test -z "$as_dir" && as_dir=. 21491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21492done 21493IFS=$as_save_IFS 21494 21495 ;; 21496esac 21497# We did not find ourselves, most probably we were run as `sh COMMAND' 21498# in which case we are not to be found in the path. 21499if test "x$as_myself" = x; then 21500 as_myself=$0 21501fi 21502if test ! -f "$as_myself"; then 21503 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21504 { (exit 1); exit 1; } 21505fi 21506 21507# Work around bugs in pre-3.0 UWIN ksh. 21508for as_var in ENV MAIL MAILPATH 21509do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21510done 21511PS1='$ ' 21512PS2='> ' 21513PS4='+ ' 21514 21515# NLS nuisances. 21516for as_var in \ 21517 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21518 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21519 LC_TELEPHONE LC_TIME 21520do 21521 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21522 eval $as_var=C; export $as_var 21523 else 21524 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21525 fi 21526done 21527 21528# Required to use basename. 21529if expr a : '\(a\)' >/dev/null 2>&1 && 21530 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21531 as_expr=expr 21532else 21533 as_expr=false 21534fi 21535 21536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21537 as_basename=basename 21538else 21539 as_basename=false 21540fi 21541 21542 21543# Name of the executable. 21544as_me=`$as_basename -- "$0" || 21545$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21546 X"$0" : 'X\(//\)$' \| \ 21547 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21548echo X/"$0" | 21549 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21550 s//\1/ 21551 q 21552 } 21553 /^X\/\(\/\/\)$/{ 21554 s//\1/ 21555 q 21556 } 21557 /^X\/\(\/\).*/{ 21558 s//\1/ 21559 q 21560 } 21561 s/.*/./; q'` 21562 21563# CDPATH. 21564$as_unset CDPATH 21565 21566 21567 21568 as_lineno_1=$LINENO 21569 as_lineno_2=$LINENO 21570 test "x$as_lineno_1" != "x$as_lineno_2" && 21571 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21572 21573 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21574 # uniformly replaced by the line number. The first 'sed' inserts a 21575 # line-number line after each line using $LINENO; the second 'sed' 21576 # does the real work. The second script uses 'N' to pair each 21577 # line-number line with the line containing $LINENO, and appends 21578 # trailing '-' during substitution so that $LINENO is not a special 21579 # case at line end. 21580 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21581 # scripts with optimization help from Paolo Bonzini. Blame Lee 21582 # E. McMahon (1931-1989) for sed's syntax. :-) 21583 sed -n ' 21584 p 21585 /[$]LINENO/= 21586 ' <$as_myself | 21587 sed ' 21588 s/[$]LINENO.*/&-/ 21589 t lineno 21590 b 21591 :lineno 21592 N 21593 :loop 21594 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21595 t loop 21596 s/-\n.*// 21597 ' >$as_me.lineno && 21598 chmod +x "$as_me.lineno" || 21599 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21600 { (exit 1); exit 1; }; } 21601 21602 # Don't try to exec as it changes $[0], causing all sort of problems 21603 # (the dirname of $[0] is not the place where we might find the 21604 # original and so on. Autoconf is especially sensitive to this). 21605 . "./$as_me.lineno" 21606 # Exit status is that of the last command. 21607 exit 21608} 21609 21610 21611if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21612 as_dirname=dirname 21613else 21614 as_dirname=false 21615fi 21616 21617ECHO_C= ECHO_N= ECHO_T= 21618case `echo -n x` in 21619-n*) 21620 case `echo 'x\c'` in 21621 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21622 *) ECHO_C='\c';; 21623 esac;; 21624*) 21625 ECHO_N='-n';; 21626esac 21627 21628if expr a : '\(a\)' >/dev/null 2>&1 && 21629 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21630 as_expr=expr 21631else 21632 as_expr=false 21633fi 21634 21635rm -f conf$$ conf$$.exe conf$$.file 21636if test -d conf$$.dir; then 21637 rm -f conf$$.dir/conf$$.file 21638else 21639 rm -f conf$$.dir 21640 mkdir conf$$.dir 21641fi 21642echo >conf$$.file 21643if ln -s conf$$.file conf$$ 2>/dev/null; then 21644 as_ln_s='ln -s' 21645 # ... but there are two gotchas: 21646 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21647 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21648 # In both cases, we have to default to `cp -p'. 21649 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21650 as_ln_s='cp -p' 21651elif ln conf$$.file conf$$ 2>/dev/null; then 21652 as_ln_s=ln 21653else 21654 as_ln_s='cp -p' 21655fi 21656rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21657rmdir conf$$.dir 2>/dev/null 21658 21659if mkdir -p . 2>/dev/null; then 21660 as_mkdir_p=: 21661else 21662 test -d ./-p && rmdir ./-p 21663 as_mkdir_p=false 21664fi 21665 21666if test -x / >/dev/null 2>&1; then 21667 as_test_x='test -x' 21668else 21669 if ls -dL / >/dev/null 2>&1; then 21670 as_ls_L_option=L 21671 else 21672 as_ls_L_option= 21673 fi 21674 as_test_x=' 21675 eval sh -c '\'' 21676 if test -d "$1"; then 21677 test -d "$1/."; 21678 else 21679 case $1 in 21680 -*)set "./$1";; 21681 esac; 21682 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21683 ???[sx]*):;;*)false;;esac;fi 21684 '\'' sh 21685 ' 21686fi 21687as_executable_p=$as_test_x 21688 21689# Sed expression to map a string onto a valid CPP name. 21690as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21691 21692# Sed expression to map a string onto a valid variable name. 21693as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21694 21695 21696exec 6>&1 21697 21698# Save the log message, to keep $[0] and so on meaningful, and to 21699# report actual input values of CONFIG_FILES etc. instead of their 21700# values after options handling. 21701ac_log=" 21702This file was extended by gkmap $as_me 0.2, which was 21703generated by GNU Autoconf 2.61. Invocation command line was 21704 21705 CONFIG_FILES = $CONFIG_FILES 21706 CONFIG_HEADERS = $CONFIG_HEADERS 21707 CONFIG_LINKS = $CONFIG_LINKS 21708 CONFIG_COMMANDS = $CONFIG_COMMANDS 21709 $ $0 $@ 21710 21711on `(hostname || uname -n) 2>/dev/null | sed 1q` 21712" 21713 21714_ACEOF 21715 21716cat >>$CONFIG_STATUS <<_ACEOF 21717# Files that config.status was made for. 21718config_files="$ac_config_files" 21719config_headers="$ac_config_headers" 21720config_commands="$ac_config_commands" 21721 21722_ACEOF 21723 21724cat >>$CONFIG_STATUS <<\_ACEOF 21725ac_cs_usage="\ 21726\`$as_me' instantiates files from templates according to the 21727current configuration. 21728 21729Usage: $0 [OPTIONS] [FILE]... 21730 21731 -h, --help print this help, then exit 21732 -V, --version print version number and configuration settings, then exit 21733 -q, --quiet do not print progress messages 21734 -d, --debug don't remove temporary files 21735 --recheck update $as_me by reconfiguring in the same conditions 21736 --file=FILE[:TEMPLATE] 21737 instantiate the configuration file FILE 21738 --header=FILE[:TEMPLATE] 21739 instantiate the configuration header FILE 21740 21741Configuration files: 21742$config_files 21743 21744Configuration headers: 21745$config_headers 21746 21747Configuration commands: 21748$config_commands 21749 21750Report bugs to <bug-autoconf@gnu.org>." 21751 21752_ACEOF 21753cat >>$CONFIG_STATUS <<_ACEOF 21754ac_cs_version="\\ 21755gkmap config.status 0.2 21756configured by $0, generated by GNU Autoconf 2.61, 21757 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21758 21759Copyright (C) 2006 Free Software Foundation, Inc. 21760This config.status script is free software; the Free Software Foundation 21761gives unlimited permission to copy, distribute and modify it." 21762 21763ac_pwd='$ac_pwd' 21764srcdir='$srcdir' 21765INSTALL='$INSTALL' 21766MKDIR_P='$MKDIR_P' 21767_ACEOF 21768 21769cat >>$CONFIG_STATUS <<\_ACEOF 21770# If no file are specified by the user, then we need to provide default 21771# value. By we need to know if files were specified by the user. 21772ac_need_defaults=: 21773while test $# != 0 21774do 21775 case $1 in 21776 --*=*) 21777 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21778 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21779 ac_shift=: 21780 ;; 21781 *) 21782 ac_option=$1 21783 ac_optarg=$2 21784 ac_shift=shift 21785 ;; 21786 esac 21787 21788 case $ac_option in 21789 # Handling of the options. 21790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21791 ac_cs_recheck=: ;; 21792 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21793 echo "$ac_cs_version"; exit ;; 21794 --debug | --debu | --deb | --de | --d | -d ) 21795 debug=: ;; 21796 --file | --fil | --fi | --f ) 21797 $ac_shift 21798 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21799 ac_need_defaults=false;; 21800 --header | --heade | --head | --hea ) 21801 $ac_shift 21802 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21803 ac_need_defaults=false;; 21804 --he | --h) 21805 # Conflict between --help and --header 21806 { echo "$as_me: error: ambiguous option: $1 21807Try \`$0 --help' for more information." >&2 21808 { (exit 1); exit 1; }; };; 21809 --help | --hel | -h ) 21810 echo "$ac_cs_usage"; exit ;; 21811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21812 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21813 ac_cs_silent=: ;; 21814 21815 # This is an error. 21816 -*) { echo "$as_me: error: unrecognized option: $1 21817Try \`$0 --help' for more information." >&2 21818 { (exit 1); exit 1; }; } ;; 21819 21820 *) ac_config_targets="$ac_config_targets $1" 21821 ac_need_defaults=false ;; 21822 21823 esac 21824 shift 21825done 21826 21827ac_configure_extra_args= 21828 21829if $ac_cs_silent; then 21830 exec 6>/dev/null 21831 ac_configure_extra_args="$ac_configure_extra_args --silent" 21832fi 21833 21834_ACEOF 21835cat >>$CONFIG_STATUS <<_ACEOF 21836if \$ac_cs_recheck; then 21837 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21838 CONFIG_SHELL=$SHELL 21839 export CONFIG_SHELL 21840 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21841fi 21842 21843_ACEOF 21844cat >>$CONFIG_STATUS <<\_ACEOF 21845exec 5>>config.log 21846{ 21847 echo 21848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21849## Running $as_me. ## 21850_ASBOX 21851 echo "$ac_log" 21852} >&5 21853 21854_ACEOF 21855cat >>$CONFIG_STATUS <<_ACEOF 21856# 21857# INIT-COMMANDS 21858# 21859AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21860 21861_ACEOF 21862 21863cat >>$CONFIG_STATUS <<\_ACEOF 21864 21865# Handling of arguments. 21866for ac_config_target in $ac_config_targets 21867do 21868 case $ac_config_target in 21869 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21870 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21871 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21872 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 21873 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21874 21875 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21876echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21877 { (exit 1); exit 1; }; };; 21878 esac 21879done 21880 21881 21882# If the user did not use the arguments to specify the items to instantiate, 21883# then the envvar interface is used. Set only those that are not. 21884# We use the long form for the default assignment because of an extremely 21885# bizarre bug on SunOS 4.1.3. 21886if $ac_need_defaults; then 21887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21890fi 21891 21892# Have a temporary directory for convenience. Make it in the build tree 21893# simply because there is no reason against having it here, and in addition, 21894# creating and moving files from /tmp can sometimes cause problems. 21895# Hook for its removal unless debugging. 21896# Note that there is a small window in which the directory will not be cleaned: 21897# after its creation but before its name has been assigned to `$tmp'. 21898$debug || 21899{ 21900 tmp= 21901 trap 'exit_status=$? 21902 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21903' 0 21904 trap '{ (exit 1); exit 1; }' 1 2 13 15 21905} 21906# Create a (secure) tmp directory for tmp files. 21907 21908{ 21909 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21910 test -n "$tmp" && test -d "$tmp" 21911} || 21912{ 21913 tmp=./conf$$-$RANDOM 21914 (umask 077 && mkdir "$tmp") 21915} || 21916{ 21917 echo "$me: cannot create a temporary directory in ." >&2 21918 { (exit 1); exit 1; } 21919} 21920 21921# 21922# Set up the sed scripts for CONFIG_FILES section. 21923# 21924 21925# No need to generate the scripts if there are no CONFIG_FILES. 21926# This happens for instance when ./config.status config.h 21927if test -n "$CONFIG_FILES"; then 21928 21929_ACEOF 21930 21931 21932 21933ac_delim='%!_!# ' 21934for ac_last_try in false false false false false :; do 21935 cat >conf$$subs.sed <<_ACEOF 21936SHELL!$SHELL$ac_delim 21937PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21938PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21939PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21940PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21941PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21942PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21943exec_prefix!$exec_prefix$ac_delim 21944prefix!$prefix$ac_delim 21945program_transform_name!$program_transform_name$ac_delim 21946bindir!$bindir$ac_delim 21947sbindir!$sbindir$ac_delim 21948libexecdir!$libexecdir$ac_delim 21949datarootdir!$datarootdir$ac_delim 21950datadir!$datadir$ac_delim 21951sysconfdir!$sysconfdir$ac_delim 21952sharedstatedir!$sharedstatedir$ac_delim 21953localstatedir!$localstatedir$ac_delim 21954includedir!$includedir$ac_delim 21955oldincludedir!$oldincludedir$ac_delim 21956docdir!$docdir$ac_delim 21957infodir!$infodir$ac_delim 21958htmldir!$htmldir$ac_delim 21959dvidir!$dvidir$ac_delim 21960pdfdir!$pdfdir$ac_delim 21961psdir!$psdir$ac_delim 21962libdir!$libdir$ac_delim 21963localedir!$localedir$ac_delim 21964mandir!$mandir$ac_delim 21965DEFS!$DEFS$ac_delim 21966ECHO_C!$ECHO_C$ac_delim 21967ECHO_N!$ECHO_N$ac_delim 21968ECHO_T!$ECHO_T$ac_delim 21969LIBS!$LIBS$ac_delim 21970build_alias!$build_alias$ac_delim 21971host_alias!$host_alias$ac_delim 21972target_alias!$target_alias$ac_delim 21973INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21974INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21975INSTALL_DATA!$INSTALL_DATA$ac_delim 21976am__isrc!$am__isrc$ac_delim 21977CYGPATH_W!$CYGPATH_W$ac_delim 21978PACKAGE!$PACKAGE$ac_delim 21979VERSION!$VERSION$ac_delim 21980ACLOCAL!$ACLOCAL$ac_delim 21981AUTOCONF!$AUTOCONF$ac_delim 21982AUTOMAKE!$AUTOMAKE$ac_delim 21983AUTOHEADER!$AUTOHEADER$ac_delim 21984MAKEINFO!$MAKEINFO$ac_delim 21985install_sh!$install_sh$ac_delim 21986STRIP!$STRIP$ac_delim 21987INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21988mkdir_p!$mkdir_p$ac_delim 21989AWK!$AWK$ac_delim 21990SET_MAKE!$SET_MAKE$ac_delim 21991am__leading_dot!$am__leading_dot$ac_delim 21992AMTAR!$AMTAR$ac_delim 21993am__tar!$am__tar$ac_delim 21994am__untar!$am__untar$ac_delim 21995MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21996MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21997MAINT!$MAINT$ac_delim 21998CC!$CC$ac_delim 21999CFLAGS!$CFLAGS$ac_delim 22000LDFLAGS!$LDFLAGS$ac_delim 22001CPPFLAGS!$CPPFLAGS$ac_delim 22002ac_ct_CC!$ac_ct_CC$ac_delim 22003EXEEXT!$EXEEXT$ac_delim 22004OBJEXT!$OBJEXT$ac_delim 22005DEPDIR!$DEPDIR$ac_delim 22006am__include!$am__include$ac_delim 22007am__quote!$am__quote$ac_delim 22008AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22009AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22010AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22011CCDEPMODE!$CCDEPMODE$ac_delim 22012am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22013am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22014CPP!$CPP$ac_delim 22015GREP!$GREP$ac_delim 22016EGREP!$EGREP$ac_delim 22017build!$build$ac_delim 22018build_cpu!$build_cpu$ac_delim 22019build_vendor!$build_vendor$ac_delim 22020build_os!$build_os$ac_delim 22021host!$host$ac_delim 22022host_cpu!$host_cpu$ac_delim 22023host_vendor!$host_vendor$ac_delim 22024host_os!$host_os$ac_delim 22025SED!$SED$ac_delim 22026LN_S!$LN_S$ac_delim 22027ECHO!$ECHO$ac_delim 22028AR!$AR$ac_delim 22029RANLIB!$RANLIB$ac_delim 22030CXX!$CXX$ac_delim 22031CXXFLAGS!$CXXFLAGS$ac_delim 22032ac_ct_CXX!$ac_ct_CXX$ac_delim 22033_ACEOF 22034 22035 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22036 break 22037 elif $ac_last_try; then 22038 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22039echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22040 { (exit 1); exit 1; }; } 22041 else 22042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22043 fi 22044done 22045 22046ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22047if test -n "$ac_eof"; then 22048 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22049 ac_eof=`expr $ac_eof + 1` 22050fi 22051 22052cat >>$CONFIG_STATUS <<_ACEOF 22053cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22055_ACEOF 22056sed ' 22057s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22058s/^/s,@/; s/!/@,|#_!!_#|/ 22059:n 22060t n 22061s/'"$ac_delim"'$/,g/; t 22062s/$/\\/; p 22063N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22064' >>$CONFIG_STATUS <conf$$subs.sed 22065rm -f conf$$subs.sed 22066cat >>$CONFIG_STATUS <<_ACEOF 22067CEOF$ac_eof 22068_ACEOF 22069 22070 22071ac_delim='%!_!# ' 22072for ac_last_try in false false false false false :; do 22073 cat >conf$$subs.sed <<_ACEOF 22074CXXDEPMODE!$CXXDEPMODE$ac_delim 22075am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22076am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22077CXXCPP!$CXXCPP$ac_delim 22078F77!$F77$ac_delim 22079FFLAGS!$FFLAGS$ac_delim 22080ac_ct_F77!$ac_ct_F77$ac_delim 22081LIBTOOL!$LIBTOOL$ac_delim 22082PKG_CONFIG!$PKG_CONFIG$ac_delim 22083GKMAP_CFLAGS!$GKMAP_CFLAGS$ac_delim 22084GKMAP_LIBS!$GKMAP_LIBS$ac_delim 22085LIBOBJS!$LIBOBJS$ac_delim 22086LTLIBOBJS!$LTLIBOBJS$ac_delim 22087_ACEOF 22088 22089 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 22090 break 22091 elif $ac_last_try; then 22092 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22093echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22094 { (exit 1); exit 1; }; } 22095 else 22096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22097 fi 22098done 22099 22100ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22101if test -n "$ac_eof"; then 22102 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22103 ac_eof=`expr $ac_eof + 1` 22104fi 22105 22106cat >>$CONFIG_STATUS <<_ACEOF 22107cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22109_ACEOF 22110sed ' 22111s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22112s/^/s,@/; s/!/@,|#_!!_#|/ 22113:n 22114t n 22115s/'"$ac_delim"'$/,g/; t 22116s/$/\\/; p 22117N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22118' >>$CONFIG_STATUS <conf$$subs.sed 22119rm -f conf$$subs.sed 22120cat >>$CONFIG_STATUS <<_ACEOF 22121:end 22122s/|#_!!_#|//g 22123CEOF$ac_eof 22124_ACEOF 22125 22126 22127# VPATH may cause trouble with some makes, so we remove $(srcdir), 22128# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22129# trailing colons and then remove the whole line if VPATH becomes empty 22130# (actually we leave an empty line to preserve line numbers). 22131if test "x$srcdir" = x.; then 22132 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22133s/:*\$(srcdir):*/:/ 22134s/:*\${srcdir}:*/:/ 22135s/:*@srcdir@:*/:/ 22136s/^\([^=]*=[ ]*\):*/\1/ 22137s/:*$// 22138s/^[^=]*=[ ]*$// 22139}' 22140fi 22141 22142cat >>$CONFIG_STATUS <<\_ACEOF 22143fi # test -n "$CONFIG_FILES" 22144 22145 22146for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22147do 22148 case $ac_tag in 22149 :[FHLC]) ac_mode=$ac_tag; continue;; 22150 esac 22151 case $ac_mode$ac_tag in 22152 :[FHL]*:*);; 22153 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22154echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22155 { (exit 1); exit 1; }; };; 22156 :[FH]-) ac_tag=-:-;; 22157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22158 esac 22159 ac_save_IFS=$IFS 22160 IFS=: 22161 set x $ac_tag 22162 IFS=$ac_save_IFS 22163 shift 22164 ac_file=$1 22165 shift 22166 22167 case $ac_mode in 22168 :L) ac_source=$1;; 22169 :[FH]) 22170 ac_file_inputs= 22171 for ac_f 22172 do 22173 case $ac_f in 22174 -) ac_f="$tmp/stdin";; 22175 *) # Look for the file first in the build tree, then in the source tree 22176 # (if the path is not absolute). The absolute path cannot be DOS-style, 22177 # because $ac_f cannot contain `:'. 22178 test -f "$ac_f" || 22179 case $ac_f in 22180 [\\/$]*) false;; 22181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22182 esac || 22183 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22184echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22185 { (exit 1); exit 1; }; };; 22186 esac 22187 ac_file_inputs="$ac_file_inputs $ac_f" 22188 done 22189 22190 # Let's still pretend it is `configure' which instantiates (i.e., don't 22191 # use $as_me), people would be surprised to read: 22192 # /* config.h. Generated by config.status. */ 22193 configure_input="Generated from "`IFS=: 22194 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22195 if test x"$ac_file" != x-; then 22196 configure_input="$ac_file. $configure_input" 22197 { echo "$as_me:$LINENO: creating $ac_file" >&5 22198echo "$as_me: creating $ac_file" >&6;} 22199 fi 22200 22201 case $ac_tag in 22202 *:-:* | *:-) cat >"$tmp/stdin";; 22203 esac 22204 ;; 22205 esac 22206 22207 ac_dir=`$as_dirname -- "$ac_file" || 22208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22209 X"$ac_file" : 'X\(//\)[^/]' \| \ 22210 X"$ac_file" : 'X\(//\)$' \| \ 22211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22212echo X"$ac_file" | 22213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22214 s//\1/ 22215 q 22216 } 22217 /^X\(\/\/\)[^/].*/{ 22218 s//\1/ 22219 q 22220 } 22221 /^X\(\/\/\)$/{ 22222 s//\1/ 22223 q 22224 } 22225 /^X\(\/\).*/{ 22226 s//\1/ 22227 q 22228 } 22229 s/.*/./; q'` 22230 { as_dir="$ac_dir" 22231 case $as_dir in #( 22232 -*) as_dir=./$as_dir;; 22233 esac 22234 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22235 as_dirs= 22236 while :; do 22237 case $as_dir in #( 22238 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22239 *) as_qdir=$as_dir;; 22240 esac 22241 as_dirs="'$as_qdir' $as_dirs" 22242 as_dir=`$as_dirname -- "$as_dir" || 22243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22244 X"$as_dir" : 'X\(//\)[^/]' \| \ 22245 X"$as_dir" : 'X\(//\)$' \| \ 22246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22247echo X"$as_dir" | 22248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22249 s//\1/ 22250 q 22251 } 22252 /^X\(\/\/\)[^/].*/{ 22253 s//\1/ 22254 q 22255 } 22256 /^X\(\/\/\)$/{ 22257 s//\1/ 22258 q 22259 } 22260 /^X\(\/\).*/{ 22261 s//\1/ 22262 q 22263 } 22264 s/.*/./; q'` 22265 test -d "$as_dir" && break 22266 done 22267 test -z "$as_dirs" || eval "mkdir $as_dirs" 22268 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22269echo "$as_me: error: cannot create directory $as_dir" >&2;} 22270 { (exit 1); exit 1; }; }; } 22271 ac_builddir=. 22272 22273case "$ac_dir" in 22274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22275*) 22276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22277 # A ".." for each directory in $ac_dir_suffix. 22278 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22279 case $ac_top_builddir_sub in 22280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22282 esac ;; 22283esac 22284ac_abs_top_builddir=$ac_pwd 22285ac_abs_builddir=$ac_pwd$ac_dir_suffix 22286# for backward compatibility: 22287ac_top_builddir=$ac_top_build_prefix 22288 22289case $srcdir in 22290 .) # We are building in place. 22291 ac_srcdir=. 22292 ac_top_srcdir=$ac_top_builddir_sub 22293 ac_abs_top_srcdir=$ac_pwd ;; 22294 [\\/]* | ?:[\\/]* ) # Absolute name. 22295 ac_srcdir=$srcdir$ac_dir_suffix; 22296 ac_top_srcdir=$srcdir 22297 ac_abs_top_srcdir=$srcdir ;; 22298 *) # Relative name. 22299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22300 ac_top_srcdir=$ac_top_build_prefix$srcdir 22301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22302esac 22303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22304 22305 22306 case $ac_mode in 22307 :F) 22308 # 22309 # CONFIG_FILE 22310 # 22311 22312 case $INSTALL in 22313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22315 esac 22316 ac_MKDIR_P=$MKDIR_P 22317 case $MKDIR_P in 22318 [\\/$]* | ?:[\\/]* ) ;; 22319 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22320 esac 22321_ACEOF 22322 22323cat >>$CONFIG_STATUS <<\_ACEOF 22324# If the template does not know about datarootdir, expand it. 22325# FIXME: This hack should be removed a few years after 2.60. 22326ac_datarootdir_hack=; ac_datarootdir_seen= 22327 22328case `sed -n '/datarootdir/ { 22329 p 22330 q 22331} 22332/@datadir@/p 22333/@docdir@/p 22334/@infodir@/p 22335/@localedir@/p 22336/@mandir@/p 22337' $ac_file_inputs` in 22338*datarootdir*) ac_datarootdir_seen=yes;; 22339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22340 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22341echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22342_ACEOF 22343cat >>$CONFIG_STATUS <<_ACEOF 22344 ac_datarootdir_hack=' 22345 s&@datadir@&$datadir&g 22346 s&@docdir@&$docdir&g 22347 s&@infodir@&$infodir&g 22348 s&@localedir@&$localedir&g 22349 s&@mandir@&$mandir&g 22350 s&\\\${datarootdir}&$datarootdir&g' ;; 22351esac 22352_ACEOF 22353 22354# Neutralize VPATH when `$srcdir' = `.'. 22355# Shell code in configure.ac might set extrasub. 22356# FIXME: do we really want to maintain this feature? 22357cat >>$CONFIG_STATUS <<_ACEOF 22358 sed "$ac_vpsub 22359$extrasub 22360_ACEOF 22361cat >>$CONFIG_STATUS <<\_ACEOF 22362:t 22363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22364s&@configure_input@&$configure_input&;t t 22365s&@top_builddir@&$ac_top_builddir_sub&;t t 22366s&@srcdir@&$ac_srcdir&;t t 22367s&@abs_srcdir@&$ac_abs_srcdir&;t t 22368s&@top_srcdir@&$ac_top_srcdir&;t t 22369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22370s&@builddir@&$ac_builddir&;t t 22371s&@abs_builddir@&$ac_abs_builddir&;t t 22372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22373s&@INSTALL@&$ac_INSTALL&;t t 22374s&@MKDIR_P@&$ac_MKDIR_P&;t t 22375$ac_datarootdir_hack 22376" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22377 22378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22379 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22381 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22382which seems to be undefined. Please make sure it is defined." >&5 22383echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22384which seems to be undefined. Please make sure it is defined." >&2;} 22385 22386 rm -f "$tmp/stdin" 22387 case $ac_file in 22388 -) cat "$tmp/out"; rm -f "$tmp/out";; 22389 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22390 esac 22391 ;; 22392 :H) 22393 # 22394 # CONFIG_HEADER 22395 # 22396_ACEOF 22397 22398# Transform confdefs.h into a sed script `conftest.defines', that 22399# substitutes the proper values into config.h.in to produce config.h. 22400rm -f conftest.defines conftest.tail 22401# First, append a space to every undef/define line, to ease matching. 22402echo 's/$/ /' >conftest.defines 22403# Then, protect against being on the right side of a sed subst, or in 22404# an unquoted here document, in config.status. If some macros were 22405# called several times there might be several #defines for the same 22406# symbol, which is useless. But do not sort them, since the last 22407# AC_DEFINE must be honored. 22408ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22409# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22410# NAME is the cpp macro being defined, VALUE is the value it is being given. 22411# PARAMS is the parameter list in the macro definition--in most cases, it's 22412# just an empty string. 22413ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22414ac_dB='\\)[ (].*,\\1define\\2' 22415ac_dC=' ' 22416ac_dD=' ,' 22417 22418uniq confdefs.h | 22419 sed -n ' 22420 t rset 22421 :rset 22422 s/^[ ]*#[ ]*define[ ][ ]*// 22423 t ok 22424 d 22425 :ok 22426 s/[\\&,]/\\&/g 22427 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22428 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22429 ' >>conftest.defines 22430 22431# Remove the space that was appended to ease matching. 22432# Then replace #undef with comments. This is necessary, for 22433# example, in the case of _POSIX_SOURCE, which is predefined and required 22434# on some systems where configure will not decide to define it. 22435# (The regexp can be short, since the line contains either #define or #undef.) 22436echo 's/ $// 22437s,^[ #]*u.*,/* & */,' >>conftest.defines 22438 22439# Break up conftest.defines: 22440ac_max_sed_lines=50 22441 22442# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22443# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22444# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22445# et cetera. 22446ac_in='$ac_file_inputs' 22447ac_out='"$tmp/out1"' 22448ac_nxt='"$tmp/out2"' 22449 22450while : 22451do 22452 # Write a here document: 22453 cat >>$CONFIG_STATUS <<_ACEOF 22454 # First, check the format of the line: 22455 cat >"\$tmp/defines.sed" <<\\CEOF 22456/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22457/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22458b 22459:def 22460_ACEOF 22461 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22462 echo 'CEOF 22463 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22464 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22465 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22466 grep . conftest.tail >/dev/null || break 22467 rm -f conftest.defines 22468 mv conftest.tail conftest.defines 22469done 22470rm -f conftest.defines conftest.tail 22471 22472echo "ac_result=$ac_in" >>$CONFIG_STATUS 22473cat >>$CONFIG_STATUS <<\_ACEOF 22474 if test x"$ac_file" != x-; then 22475 echo "/* $configure_input */" >"$tmp/config.h" 22476 cat "$ac_result" >>"$tmp/config.h" 22477 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22478 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22479echo "$as_me: $ac_file is unchanged" >&6;} 22480 else 22481 rm -f $ac_file 22482 mv "$tmp/config.h" $ac_file 22483 fi 22484 else 22485 echo "/* $configure_input */" 22486 cat "$ac_result" 22487 fi 22488 rm -f "$tmp/out12" 22489# Compute $ac_file's index in $config_headers. 22490_am_stamp_count=1 22491for _am_header in $config_headers :; do 22492 case $_am_header in 22493 $ac_file | $ac_file:* ) 22494 break ;; 22495 * ) 22496 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22497 esac 22498done 22499echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22500$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22501 X$ac_file : 'X\(//\)[^/]' \| \ 22502 X$ac_file : 'X\(//\)$' \| \ 22503 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22504echo X$ac_file | 22505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22506 s//\1/ 22507 q 22508 } 22509 /^X\(\/\/\)[^/].*/{ 22510 s//\1/ 22511 q 22512 } 22513 /^X\(\/\/\)$/{ 22514 s//\1/ 22515 q 22516 } 22517 /^X\(\/\).*/{ 22518 s//\1/ 22519 q 22520 } 22521 s/.*/./; q'`/stamp-h$_am_stamp_count 22522 ;; 22523 22524 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22525echo "$as_me: executing $ac_file commands" >&6;} 22526 ;; 22527 esac 22528 22529 22530 case $ac_file$ac_mode in 22531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22532 # Strip MF so we end up with the name of the file. 22533 mf=`echo "$mf" | sed -e 's/:.*$//'` 22534 # Check whether this is an Automake generated Makefile or not. 22535 # We used to match only the files named `Makefile.in', but 22536 # some people rename them; so instead we look at the file content. 22537 # Grep'ing the first line is not enough: some people post-process 22538 # each Makefile.in and add a new line on top of each file to say so. 22539 # Grep'ing the whole file is not good either: AIX grep has a line 22540 # limit of 2048, but all sed's we know have understand at least 4000. 22541 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22542 dirpart=`$as_dirname -- "$mf" || 22543$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22544 X"$mf" : 'X\(//\)[^/]' \| \ 22545 X"$mf" : 'X\(//\)$' \| \ 22546 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22547echo X"$mf" | 22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22549 s//\1/ 22550 q 22551 } 22552 /^X\(\/\/\)[^/].*/{ 22553 s//\1/ 22554 q 22555 } 22556 /^X\(\/\/\)$/{ 22557 s//\1/ 22558 q 22559 } 22560 /^X\(\/\).*/{ 22561 s//\1/ 22562 q 22563 } 22564 s/.*/./; q'` 22565 else 22566 continue 22567 fi 22568 # Extract the definition of DEPDIR, am__include, and am__quote 22569 # from the Makefile without running `make'. 22570 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22571 test -z "$DEPDIR" && continue 22572 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22573 test -z "am__include" && continue 22574 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22575 # When using ansi2knr, U may be empty or an underscore; expand it 22576 U=`sed -n 's/^U = //p' < "$mf"` 22577 # Find all dependency output files, they are included files with 22578 # $(DEPDIR) in their names. We invoke sed twice because it is the 22579 # simplest approach to changing $(DEPDIR) to its actual value in the 22580 # expansion. 22581 for file in `sed -n " 22582 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22583 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22584 # Make sure the directory exists. 22585 test -f "$dirpart/$file" && continue 22586 fdir=`$as_dirname -- "$file" || 22587$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22588 X"$file" : 'X\(//\)[^/]' \| \ 22589 X"$file" : 'X\(//\)$' \| \ 22590 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22591echo X"$file" | 22592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22593 s//\1/ 22594 q 22595 } 22596 /^X\(\/\/\)[^/].*/{ 22597 s//\1/ 22598 q 22599 } 22600 /^X\(\/\/\)$/{ 22601 s//\1/ 22602 q 22603 } 22604 /^X\(\/\).*/{ 22605 s//\1/ 22606 q 22607 } 22608 s/.*/./; q'` 22609 { as_dir=$dirpart/$fdir 22610 case $as_dir in #( 22611 -*) as_dir=./$as_dir;; 22612 esac 22613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22614 as_dirs= 22615 while :; do 22616 case $as_dir in #( 22617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22618 *) as_qdir=$as_dir;; 22619 esac 22620 as_dirs="'$as_qdir' $as_dirs" 22621 as_dir=`$as_dirname -- "$as_dir" || 22622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22623 X"$as_dir" : 'X\(//\)[^/]' \| \ 22624 X"$as_dir" : 'X\(//\)$' \| \ 22625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22626echo X"$as_dir" | 22627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22628 s//\1/ 22629 q 22630 } 22631 /^X\(\/\/\)[^/].*/{ 22632 s//\1/ 22633 q 22634 } 22635 /^X\(\/\/\)$/{ 22636 s//\1/ 22637 q 22638 } 22639 /^X\(\/\).*/{ 22640 s//\1/ 22641 q 22642 } 22643 s/.*/./; q'` 22644 test -d "$as_dir" && break 22645 done 22646 test -z "$as_dirs" || eval "mkdir $as_dirs" 22647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22648echo "$as_me: error: cannot create directory $as_dir" >&2;} 22649 { (exit 1); exit 1; }; }; } 22650 # echo "creating $dirpart/$file" 22651 echo '# dummy' > "$dirpart/$file" 22652 done 22653done 22654 ;; 22655 22656 esac 22657done # for ac_tag 22658 22659 22660{ (exit 0); exit 0; } 22661_ACEOF 22662chmod +x $CONFIG_STATUS 22663ac_clean_files=$ac_clean_files_save 22664 22665 22666# configure is writing to config.log, and then calls config.status. 22667# config.status does its own redirection, appending to config.log. 22668# Unfortunately, on DOS this fails, as config.log is still kept open 22669# by configure, so config.status won't be able to write to it; its 22670# output is simply discarded. So we exec the FD to /dev/null, 22671# effectively closing config.log, so it can be properly (re)opened and 22672# appended to by config.status. When coming back to configure, we 22673# need to make the FD available again. 22674if test "$no_create" != yes; then 22675 ac_cs_success=: 22676 ac_config_status_args= 22677 test "$silent" = yes && 22678 ac_config_status_args="$ac_config_status_args --quiet" 22679 exec 5>/dev/null 22680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22681 exec 5>>config.log 22682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22683 # would make configure fail if this is the last instruction. 22684 $ac_cs_success || { (exit 1); exit 1; } 22685fi 22686 22687