1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for soothsayer 0.6.3. 4# 5# Report bugs to <matteo.vescovi@yahoo.co.uk>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='soothsayer' 730PACKAGE_TARNAME='soothsayer' 731PACKAGE_VERSION='0.6.3' 732PACKAGE_STRING='soothsayer 0.6.3' 733PACKAGE_BUGREPORT='matteo.vescovi@yahoo.co.uk' 734 735ac_unique_file="src/lib/soothsayer.cpp" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830CXX 831CXXFLAGS 832LDFLAGS 833CPPFLAGS 834ac_ct_CXX 835EXEEXT 836OBJEXT 837DEPDIR 838am__include 839am__quote 840AMDEP_TRUE 841AMDEP_FALSE 842AMDEPBACKSLASH 843CXXDEPMODE 844am__fastdepCXX_TRUE 845am__fastdepCXX_FALSE 846CXXCPP 847LTDLINCL 848LIBLTDL 849build 850build_cpu 851build_vendor 852build_os 853host 854host_cpu 855host_vendor 856host_os 857CC 858CFLAGS 859ac_ct_CC 860CCDEPMODE 861am__fastdepCC_TRUE 862am__fastdepCC_FALSE 863GREP 864EGREP 865LN_S 866ECHO 867AR 868RANLIB 869DLLTOOL 870AS 871OBJDUMP 872CPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877HAVE_CURSES_TRUE 878HAVE_CURSES_FALSE 879SQLITE_LIBS 880CPPUNIT_CONFIG 881CPPUNIT_CFLAGS 882CPPUNIT_LIBS 883HAVE_CPPUNIT_TRUE 884HAVE_CPPUNIT_FALSE 885SWIG 886HAVE_SWIG_TRUE 887HAVE_SWIG_FALSE 888PYTHON 889PYTHON_VERSION 890PYTHON_PREFIX 891PYTHON_EXEC_PREFIX 892PYTHON_PLATFORM 893pythondir 894pkgpythondir 895pyexecdir 896pkgpyexecdir 897HAVE_PYTHON_TRUE 898HAVE_PYTHON_FALSE 899ENABLE_PYTHON_BINDING_TRUE 900ENABLE_PYTHON_BINDING_FALSE 901HAVE_DOXYGEN 902HAVE_DOXYGEN_TRUE 903HAVE_DOXYGEN_FALSE 904HAVE_DOT 905HAVE_HELP2MAN 906HAVE_HELP2MAN_TRUE 907HAVE_HELP2MAN_FALSE 908LIBOBJS 909LTLIBOBJS' 910ac_subst_files='' 911 ac_precious_vars='build_alias 912host_alias 913target_alias 914CXX 915CXXFLAGS 916LDFLAGS 917LIBS 918CPPFLAGS 919CCC 920CXXCPP 921CC 922CFLAGS 923CPP 924F77 925FFLAGS' 926 927 928# Initialize some variables set by options. 929ac_init_help= 930ac_init_version=false 931# The variables have the same names as the options, with 932# dashes changed to underlines. 933cache_file=/dev/null 934exec_prefix=NONE 935no_create= 936no_recursion= 937prefix=NONE 938program_prefix=NONE 939program_suffix=NONE 940program_transform_name=s,x,x, 941silent= 942site= 943srcdir= 944verbose= 945x_includes=NONE 946x_libraries=NONE 947 948# Installation directory options. 949# These are left unexpanded so users can "make install exec_prefix=/foo" 950# and all the variables that are supposed to be based on exec_prefix 951# by default will actually change. 952# Use braces instead of parens because sh, perl, etc. also accept them. 953# (The list follows the same order as the GNU Coding Standards.) 954bindir='${exec_prefix}/bin' 955sbindir='${exec_prefix}/sbin' 956libexecdir='${exec_prefix}/libexec' 957datarootdir='${prefix}/share' 958datadir='${datarootdir}' 959sysconfdir='${prefix}/etc' 960sharedstatedir='${prefix}/com' 961localstatedir='${prefix}/var' 962includedir='${prefix}/include' 963oldincludedir='/usr/include' 964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 965infodir='${datarootdir}/info' 966htmldir='${docdir}' 967dvidir='${docdir}' 968pdfdir='${docdir}' 969psdir='${docdir}' 970libdir='${exec_prefix}/lib' 971localedir='${datarootdir}/locale' 972mandir='${datarootdir}/man' 973 974ac_prev= 975ac_dashdash= 976for ac_option 977do 978 # If the previous option needs an argument, assign it. 979 if test -n "$ac_prev"; then 980 eval $ac_prev=\$ac_option 981 ac_prev= 982 continue 983 fi 984 985 case $ac_option in 986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 987 *) ac_optarg=yes ;; 988 esac 989 990 # Accept the important Cygnus configure options, so we can diagnose typos. 991 992 case $ac_dashdash$ac_option in 993 --) 994 ac_dashdash=yes ;; 995 996 -bindir | --bindir | --bindi | --bind | --bin | --bi) 997 ac_prev=bindir ;; 998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 999 bindir=$ac_optarg ;; 1000 1001 -build | --build | --buil | --bui | --bu) 1002 ac_prev=build_alias ;; 1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1004 build_alias=$ac_optarg ;; 1005 1006 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1008 ac_prev=cache_file ;; 1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1011 cache_file=$ac_optarg ;; 1012 1013 --config-cache | -C) 1014 cache_file=config.cache ;; 1015 1016 -datadir | --datadir | --datadi | --datad) 1017 ac_prev=datadir ;; 1018 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1019 datadir=$ac_optarg ;; 1020 1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1022 | --dataroo | --dataro | --datar) 1023 ac_prev=datarootdir ;; 1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1026 datarootdir=$ac_optarg ;; 1027 1028 -disable-* | --disable-*) 1029 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1035 eval enable_$ac_feature=no ;; 1036 1037 -docdir | --docdir | --docdi | --doc | --do) 1038 ac_prev=docdir ;; 1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1040 docdir=$ac_optarg ;; 1041 1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1043 ac_prev=dvidir ;; 1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1045 dvidir=$ac_optarg ;; 1046 1047 -enable-* | --enable-*) 1048 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1052 { (exit 1); exit 1; }; } 1053 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1054 eval enable_$ac_feature=\$ac_optarg ;; 1055 1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1058 | --exec | --exe | --ex) 1059 ac_prev=exec_prefix ;; 1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1062 | --exec=* | --exe=* | --ex=*) 1063 exec_prefix=$ac_optarg ;; 1064 1065 -gas | --gas | --ga | --g) 1066 # Obsolete; use --with-gas. 1067 with_gas=yes ;; 1068 1069 -help | --help | --hel | --he | -h) 1070 ac_init_help=long ;; 1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1072 ac_init_help=recursive ;; 1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1074 ac_init_help=short ;; 1075 1076 -host | --host | --hos | --ho) 1077 ac_prev=host_alias ;; 1078 -host=* | --host=* | --hos=* | --ho=*) 1079 host_alias=$ac_optarg ;; 1080 1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1082 ac_prev=htmldir ;; 1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1084 | --ht=*) 1085 htmldir=$ac_optarg ;; 1086 1087 -includedir | --includedir | --includedi | --included | --include \ 1088 | --includ | --inclu | --incl | --inc) 1089 ac_prev=includedir ;; 1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1091 | --includ=* | --inclu=* | --incl=* | --inc=*) 1092 includedir=$ac_optarg ;; 1093 1094 -infodir | --infodir | --infodi | --infod | --info | --inf) 1095 ac_prev=infodir ;; 1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1097 infodir=$ac_optarg ;; 1098 1099 -libdir | --libdir | --libdi | --libd) 1100 ac_prev=libdir ;; 1101 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1102 libdir=$ac_optarg ;; 1103 1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1105 | --libexe | --libex | --libe) 1106 ac_prev=libexecdir ;; 1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1108 | --libexe=* | --libex=* | --libe=*) 1109 libexecdir=$ac_optarg ;; 1110 1111 -localedir | --localedir | --localedi | --localed | --locale) 1112 ac_prev=localedir ;; 1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1114 localedir=$ac_optarg ;; 1115 1116 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1117 | --localstate | --localstat | --localsta | --localst | --locals) 1118 ac_prev=localstatedir ;; 1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1121 localstatedir=$ac_optarg ;; 1122 1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1124 ac_prev=mandir ;; 1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1126 mandir=$ac_optarg ;; 1127 1128 -nfp | --nfp | --nf) 1129 # Obsolete; use --without-fp. 1130 with_fp=no ;; 1131 1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1133 | --no-cr | --no-c | -n) 1134 no_create=yes ;; 1135 1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1138 no_recursion=yes ;; 1139 1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1142 | --oldin | --oldi | --old | --ol | --o) 1143 ac_prev=oldincludedir ;; 1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1147 oldincludedir=$ac_optarg ;; 1148 1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1150 ac_prev=prefix ;; 1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1152 prefix=$ac_optarg ;; 1153 1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1155 | --program-pre | --program-pr | --program-p) 1156 ac_prev=program_prefix ;; 1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1159 program_prefix=$ac_optarg ;; 1160 1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1162 | --program-suf | --program-su | --program-s) 1163 ac_prev=program_suffix ;; 1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1166 program_suffix=$ac_optarg ;; 1167 1168 -program-transform-name | --program-transform-name \ 1169 | --program-transform-nam | --program-transform-na \ 1170 | --program-transform-n | --program-transform- \ 1171 | --program-transform | --program-transfor \ 1172 | --program-transfo | --program-transf \ 1173 | --program-trans | --program-tran \ 1174 | --progr-tra | --program-tr | --program-t) 1175 ac_prev=program_transform_name ;; 1176 -program-transform-name=* | --program-transform-name=* \ 1177 | --program-transform-nam=* | --program-transform-na=* \ 1178 | --program-transform-n=* | --program-transform-=* \ 1179 | --program-transform=* | --program-transfor=* \ 1180 | --program-transfo=* | --program-transf=* \ 1181 | --program-trans=* | --program-tran=* \ 1182 | --progr-tra=* | --program-tr=* | --program-t=*) 1183 program_transform_name=$ac_optarg ;; 1184 1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1186 ac_prev=pdfdir ;; 1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1188 pdfdir=$ac_optarg ;; 1189 1190 -psdir | --psdir | --psdi | --psd | --ps) 1191 ac_prev=psdir ;; 1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1193 psdir=$ac_optarg ;; 1194 1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1196 | -silent | --silent | --silen | --sile | --sil) 1197 silent=yes ;; 1198 1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1200 ac_prev=sbindir ;; 1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1202 | --sbi=* | --sb=*) 1203 sbindir=$ac_optarg ;; 1204 1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1207 | --sharedst | --shareds | --shared | --share | --shar \ 1208 | --sha | --sh) 1209 ac_prev=sharedstatedir ;; 1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1213 | --sha=* | --sh=*) 1214 sharedstatedir=$ac_optarg ;; 1215 1216 -site | --site | --sit) 1217 ac_prev=site ;; 1218 -site=* | --site=* | --sit=*) 1219 site=$ac_optarg ;; 1220 1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1222 ac_prev=srcdir ;; 1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1224 srcdir=$ac_optarg ;; 1225 1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1227 | --syscon | --sysco | --sysc | --sys | --sy) 1228 ac_prev=sysconfdir ;; 1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1231 sysconfdir=$ac_optarg ;; 1232 1233 -target | --target | --targe | --targ | --tar | --ta | --t) 1234 ac_prev=target_alias ;; 1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1236 target_alias=$ac_optarg ;; 1237 1238 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1239 verbose=yes ;; 1240 1241 -version | --version | --versio | --versi | --vers | -V) 1242 ac_init_version=: ;; 1243 1244 -with-* | --with-*) 1245 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1248 { echo "$as_me: error: invalid package name: $ac_package" >&2 1249 { (exit 1); exit 1; }; } 1250 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1251 eval with_$ac_package=\$ac_optarg ;; 1252 1253 -without-* | --without-*) 1254 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1255 # Reject names that are not valid shell variable names. 1256 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 { echo "$as_me: error: invalid package name: $ac_package" >&2 1258 { (exit 1); exit 1; }; } 1259 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1260 eval with_$ac_package=no ;; 1261 1262 --x) 1263 # Obsolete; use --with-x. 1264 with_x=yes ;; 1265 1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1267 | --x-incl | --x-inc | --x-in | --x-i) 1268 ac_prev=x_includes ;; 1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1271 x_includes=$ac_optarg ;; 1272 1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1275 ac_prev=x_libraries ;; 1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1278 x_libraries=$ac_optarg ;; 1279 1280 -*) { echo "$as_me: error: unrecognized option: $ac_option 1281Try \`$0 --help' for more information." >&2 1282 { (exit 1); exit 1; }; } 1283 ;; 1284 1285 *=*) 1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1289 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1290 { (exit 1); exit 1; }; } 1291 eval $ac_envvar=\$ac_optarg 1292 export $ac_envvar ;; 1293 1294 *) 1295 # FIXME: should be removed in autoconf 3.0. 1296 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1298 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1300 ;; 1301 1302 esac 1303done 1304 1305if test -n "$ac_prev"; then 1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1307 { echo "$as_me: error: missing argument to $ac_option" >&2 1308 { (exit 1); exit 1; }; } 1309fi 1310 1311# Be sure to have absolute directory names. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir 1316do 1317 eval ac_val=\$$ac_var 1318 case $ac_val in 1319 [\\/$]* | ?:[\\/]* ) continue;; 1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1321 esac 1322 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1323 { (exit 1); exit 1; }; } 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1338 If a cross compiler is detected then cross compile mode will be used." >&2 1339 elif test "x$build_alias" != "x$host_alias"; then 1340 cross_compiling=yes 1341 fi 1342fi 1343 1344ac_tool_prefix= 1345test -n "$host_alias" && ac_tool_prefix=$host_alias- 1346 1347test "$silent" = yes && exec 6>/dev/null 1348 1349 1350ac_pwd=`pwd` && test -n "$ac_pwd" && 1351ac_ls_di=`ls -di .` && 1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1353 { echo "$as_me: error: Working directory cannot be determined" >&2 1354 { (exit 1); exit 1; }; } 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1356 { echo "$as_me: error: pwd does not report name of working directory" >&2 1357 { (exit 1); exit 1; }; } 1358 1359 1360# Find the source files, if location was not specified. 1361if test -z "$srcdir"; then 1362 ac_srcdir_defaulted=yes 1363 # Try the directory containing this script, then the parent directory. 1364 ac_confdir=`$as_dirname -- "$0" || 1365$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1366 X"$0" : 'X\(//\)[^/]' \| \ 1367 X"$0" : 'X\(//\)$' \| \ 1368 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1369echo X"$0" | 1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)[^/].*/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\).*/{ 1383 s//\1/ 1384 q 1385 } 1386 s/.*/./; q'` 1387 srcdir=$ac_confdir 1388 if test ! -r "$srcdir/$ac_unique_file"; then 1389 srcdir=.. 1390 fi 1391else 1392 ac_srcdir_defaulted=no 1393fi 1394if test ! -r "$srcdir/$ac_unique_file"; then 1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1396 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1397 { (exit 1); exit 1; }; } 1398fi 1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1400ac_abs_confdir=`( 1401 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1402 { (exit 1); exit 1; }; } 1403 pwd)` 1404# When building in place, set srcdir=. 1405if test "$ac_abs_confdir" = "$ac_pwd"; then 1406 srcdir=. 1407fi 1408# Remove unnecessary trailing slashes from srcdir. 1409# Double slashes in file names in object file debugging info 1410# mess up M-x gdb in Emacs. 1411case $srcdir in 1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1413esac 1414for ac_var in $ac_precious_vars; do 1415 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_env_${ac_var}_value=\$${ac_var} 1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1419done 1420 1421# 1422# Report the --help message. 1423# 1424if test "$ac_init_help" = "long"; then 1425 # Omit some internal or obsolete options to make the list less imposing. 1426 # This message is too long to be a string in the A/UX 3.1 sh. 1427 cat <<_ACEOF 1428\`configure' configures soothsayer 0.6.3 to adapt to many kinds of systems. 1429 1430Usage: $0 [OPTION]... [VAR=VALUE]... 1431 1432To assign environment variables (e.g., CC, CFLAGS...), specify them as 1433VAR=VALUE. See below for descriptions of some of the useful variables. 1434 1435Defaults for the options are specified in brackets. 1436 1437Configuration: 1438 -h, --help display this help and exit 1439 --help=short display options specific to this package 1440 --help=recursive display the short help of all the included packages 1441 -V, --version display version information and exit 1442 -q, --quiet, --silent do not print \`checking...' messages 1443 --cache-file=FILE cache test results in FILE [disabled] 1444 -C, --config-cache alias for \`--cache-file=config.cache' 1445 -n, --no-create do not create output files 1446 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1447 1448Installation directories: 1449 --prefix=PREFIX install architecture-independent files in PREFIX 1450 [$ac_default_prefix] 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1452 [PREFIX] 1453 1454By default, \`make install' will install all the files in 1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1456an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1457for instance \`--prefix=\$HOME'. 1458 1459For better control, use the options below. 1460 1461Fine tuning of the installation directories: 1462 --bindir=DIR user executables [EPREFIX/bin] 1463 --sbindir=DIR system admin executables [EPREFIX/sbin] 1464 --libexecdir=DIR program executables [EPREFIX/libexec] 1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1468 --libdir=DIR object code libraries [EPREFIX/lib] 1469 --includedir=DIR C header files [PREFIX/include] 1470 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1473 --infodir=DIR info documentation [DATAROOTDIR/info] 1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1475 --mandir=DIR man documentation [DATAROOTDIR/man] 1476 --docdir=DIR documentation root [DATAROOTDIR/doc/soothsayer] 1477 --htmldir=DIR html documentation [DOCDIR] 1478 --dvidir=DIR dvi documentation [DOCDIR] 1479 --pdfdir=DIR pdf documentation [DOCDIR] 1480 --psdir=DIR ps documentation [DOCDIR] 1481_ACEOF 1482 1483 cat <<\_ACEOF 1484 1485Program names: 1486 --program-prefix=PREFIX prepend PREFIX to installed program names 1487 --program-suffix=SUFFIX append SUFFIX to installed program names 1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1489 1490System types: 1491 --build=BUILD configure for building on BUILD [guessed] 1492 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1493_ACEOF 1494fi 1495 1496if test -n "$ac_init_help"; then 1497 case $ac_init_help in 1498 short | recursive ) echo "Configuration of soothsayer 0.6.3:";; 1499 esac 1500 cat <<\_ACEOF 1501 1502Optional Features: 1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1505 --disable-dependency-tracking speeds up one-time build 1506 --enable-dependency-tracking do not reject slow dependency extractors 1507 --enable-shared[=PKGS] build shared libraries [default=yes] 1508 --enable-static[=PKGS] build static libraries [default=yes] 1509 --enable-fast-install[=PKGS] 1510 optimize for fast installation [default=yes] 1511 --disable-libtool-lock avoid locking (might break parallel builds) 1512 --disable-python-binding 1513 build python binding (default=yes) 1514 1515Optional Packages: 1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1519 --with-pic try to use only PIC/non-PIC objects [default=use 1520 both] 1521 --with-tags[=TAGS] include additional configurations [automatic] 1522 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) 1523 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) 1524 1525Some influential environment variables: 1526 CXX C++ compiler command 1527 CXXFLAGS C++ compiler flags 1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1529 nonstandard directory <lib dir> 1530 LIBS libraries to pass to the linker, e.g. -l<library> 1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1532 you have headers in a nonstandard directory <include dir> 1533 CXXCPP C++ preprocessor 1534 CC C compiler command 1535 CFLAGS C compiler flags 1536 CPP C preprocessor 1537 F77 Fortran 77 compiler command 1538 FFLAGS Fortran 77 compiler flags 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <matteo.vescovi@yahoo.co.uk>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || continue 1552 ac_builddir=. 1553 1554case "$ac_dir" in 1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556*) 1557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1558 # A ".." for each directory in $ac_dir_suffix. 1559 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1560 case $ac_top_builddir_sub in 1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1563 esac ;; 1564esac 1565ac_abs_top_builddir=$ac_pwd 1566ac_abs_builddir=$ac_pwd$ac_dir_suffix 1567# for backward compatibility: 1568ac_top_builddir=$ac_top_build_prefix 1569 1570case $srcdir in 1571 .) # We are building in place. 1572 ac_srcdir=. 1573 ac_top_srcdir=$ac_top_builddir_sub 1574 ac_abs_top_srcdir=$ac_pwd ;; 1575 [\\/]* | ?:[\\/]* ) # Absolute name. 1576 ac_srcdir=$srcdir$ac_dir_suffix; 1577 ac_top_srcdir=$srcdir 1578 ac_abs_top_srcdir=$srcdir ;; 1579 *) # Relative name. 1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1581 ac_top_srcdir=$ac_top_build_prefix$srcdir 1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1583esac 1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1585 1586 cd "$ac_dir" || { ac_status=$?; continue; } 1587 # Check for guested configure. 1588 if test -f "$ac_srcdir/configure.gnu"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1591 elif test -f "$ac_srcdir/configure"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure" --help=recursive 1594 else 1595 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1596 fi || ac_status=$? 1597 cd "$ac_pwd" || { ac_status=$?; break; } 1598 done 1599fi 1600 1601test -n "$ac_init_help" && exit $ac_status 1602if $ac_init_version; then 1603 cat <<\_ACEOF 1604soothsayer configure 0.6.3 1605generated by GNU Autoconf 2.61 1606 1607Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1609This configure script is free software; the Free Software Foundation 1610gives unlimited permission to copy, distribute and modify it. 1611_ACEOF 1612 exit 1613fi 1614cat >config.log <<_ACEOF 1615This file contains any messages produced by compilers while 1616running configure, to aid debugging if configure makes a mistake. 1617 1618It was created by soothsayer $as_me 0.6.3, which was 1619generated by GNU Autoconf 2.61. Invocation command line was 1620 1621 $ $0 $@ 1622 1623_ACEOF 1624exec 5>>config.log 1625{ 1626cat <<_ASUNAME 1627## --------- ## 1628## Platform. ## 1629## --------- ## 1630 1631hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1632uname -m = `(uname -m) 2>/dev/null || echo unknown` 1633uname -r = `(uname -r) 2>/dev/null || echo unknown` 1634uname -s = `(uname -s) 2>/dev/null || echo unknown` 1635uname -v = `(uname -v) 2>/dev/null || echo unknown` 1636 1637/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1638/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1639 1640/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1641/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1642/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1643/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1644/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1645/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1646/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1647 1648_ASUNAME 1649 1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1651for as_dir in $PATH 1652do 1653 IFS=$as_save_IFS 1654 test -z "$as_dir" && as_dir=. 1655 echo "PATH: $as_dir" 1656done 1657IFS=$as_save_IFS 1658 1659} >&5 1660 1661cat >&5 <<_ACEOF 1662 1663 1664## ----------- ## 1665## Core tests. ## 1666## ----------- ## 1667 1668_ACEOF 1669 1670 1671# Keep a trace of the command line. 1672# Strip out --no-create and --no-recursion so they do not pile up. 1673# Strip out --silent because we don't want to record it for future runs. 1674# Also quote any args containing shell meta-characters. 1675# Make two passes to allow for proper duplicate-argument suppression. 1676ac_configure_args= 1677ac_configure_args0= 1678ac_configure_args1= 1679ac_must_keep_next=false 1680for ac_pass in 1 2 1681do 1682 for ac_arg 1683 do 1684 case $ac_arg in 1685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1687 | -silent | --silent | --silen | --sile | --sil) 1688 continue ;; 1689 *\'*) 1690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1691 esac 1692 case $ac_pass in 1693 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1694 2) 1695 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1696 if test $ac_must_keep_next = true; then 1697 ac_must_keep_next=false # Got value, back to normal. 1698 else 1699 case $ac_arg in 1700 *=* | --config-cache | -C | -disable-* | --disable-* \ 1701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1703 | -with-* | --with-* | -without-* | --without-* | --x) 1704 case "$ac_configure_args0 " in 1705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1706 esac 1707 ;; 1708 -* ) ac_must_keep_next=true ;; 1709 esac 1710 fi 1711 ac_configure_args="$ac_configure_args '$ac_arg'" 1712 ;; 1713 esac 1714 done 1715done 1716$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1717$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1718 1719# When interrupted or exit'd, cleanup temporary files, and complete 1720# config.log. We remove comments because anyway the quotes in there 1721# would cause problems or look ugly. 1722# WARNING: Use '\'' to represent an apostrophe within the trap. 1723# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1724trap 'exit_status=$? 1725 # Save into config.log some information that might help in debugging. 1726 { 1727 echo 1728 1729 cat <<\_ASBOX 1730## ---------------- ## 1731## Cache variables. ## 1732## ---------------- ## 1733_ASBOX 1734 echo 1735 # The following way of writing the cache mishandles newlines in values, 1736( 1737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1738 eval ac_val=\$$ac_var 1739 case $ac_val in #( 1740 *${as_nl}*) 1741 case $ac_var in #( 1742 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1743echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1744 esac 1745 case $ac_var in #( 1746 _ | IFS | as_nl) ;; #( 1747 *) $as_unset $ac_var ;; 1748 esac ;; 1749 esac 1750 done 1751 (set) 2>&1 | 1752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1753 *${as_nl}ac_space=\ *) 1754 sed -n \ 1755 "s/'\''/'\''\\\\'\'''\''/g; 1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1757 ;; #( 1758 *) 1759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1760 ;; 1761 esac | 1762 sort 1763) 1764 echo 1765 1766 cat <<\_ASBOX 1767## ----------------- ## 1768## Output variables. ## 1769## ----------------- ## 1770_ASBOX 1771 echo 1772 for ac_var in $ac_subst_vars 1773 do 1774 eval ac_val=\$$ac_var 1775 case $ac_val in 1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1777 esac 1778 echo "$ac_var='\''$ac_val'\''" 1779 done | sort 1780 echo 1781 1782 if test -n "$ac_subst_files"; then 1783 cat <<\_ASBOX 1784## ------------------- ## 1785## File substitutions. ## 1786## ------------------- ## 1787_ASBOX 1788 echo 1789 for ac_var in $ac_subst_files 1790 do 1791 eval ac_val=\$$ac_var 1792 case $ac_val in 1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1794 esac 1795 echo "$ac_var='\''$ac_val'\''" 1796 done | sort 1797 echo 1798 fi 1799 1800 if test -s confdefs.h; then 1801 cat <<\_ASBOX 1802## ----------- ## 1803## confdefs.h. ## 1804## ----------- ## 1805_ASBOX 1806 echo 1807 cat confdefs.h 1808 echo 1809 fi 1810 test "$ac_signal" != 0 && 1811 echo "$as_me: caught signal $ac_signal" 1812 echo "$as_me: exit $exit_status" 1813 } >&5 1814 rm -f core *.core core.conftest.* && 1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1816 exit $exit_status 1817' 0 1818for ac_signal in 1 2 13 15; do 1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1820done 1821ac_signal=0 1822 1823# confdefs.h avoids OS command line length limits that DEFS can exceed. 1824rm -f -r conftest* confdefs.h 1825 1826# Predefined preprocessor variables. 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE_NAME "$PACKAGE_NAME" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define PACKAGE_VERSION "$PACKAGE_VERSION" 1840_ACEOF 1841 1842 1843cat >>confdefs.h <<_ACEOF 1844#define PACKAGE_STRING "$PACKAGE_STRING" 1845_ACEOF 1846 1847 1848cat >>confdefs.h <<_ACEOF 1849#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1850_ACEOF 1851 1852 1853# Let the site file select an alternate cache file if it wants to. 1854# Prefer explicitly selected file to automatically selected ones. 1855if test -n "$CONFIG_SITE"; then 1856 set x "$CONFIG_SITE" 1857elif test "x$prefix" != xNONE; then 1858 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1859else 1860 set x "$ac_default_prefix/share/config.site" \ 1861 "$ac_default_prefix/etc/config.site" 1862fi 1863shift 1864for ac_site_file 1865do 1866 if test -r "$ac_site_file"; then 1867 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1868echo "$as_me: loading site script $ac_site_file" >&6;} 1869 sed 's/^/| /' "$ac_site_file" >&5 1870 . "$ac_site_file" 1871 fi 1872done 1873 1874if test -r "$cache_file"; then 1875 # Some versions of bash will fail to source /dev/null (special 1876 # files actually), so we avoid doing that. 1877 if test -f "$cache_file"; then 1878 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1879echo "$as_me: loading cache $cache_file" >&6;} 1880 case $cache_file in 1881 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1882 *) . "./$cache_file";; 1883 esac 1884 fi 1885else 1886 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1887echo "$as_me: creating cache $cache_file" >&6;} 1888 >$cache_file 1889fi 1890 1891# Check that the precious variables saved in the cache have kept the same 1892# value. 1893ac_cache_corrupted=false 1894for ac_var in $ac_precious_vars; do 1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1896 eval ac_new_set=\$ac_env_${ac_var}_set 1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1898 eval ac_new_val=\$ac_env_${ac_var}_value 1899 case $ac_old_set,$ac_new_set in 1900 set,) 1901 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1902echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1903 ac_cache_corrupted=: ;; 1904 ,set) 1905 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1906echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1907 ac_cache_corrupted=: ;; 1908 ,);; 1909 *) 1910 if test "x$ac_old_val" != "x$ac_new_val"; then 1911 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1912echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1913 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1914echo "$as_me: former value: $ac_old_val" >&2;} 1915 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1916echo "$as_me: current value: $ac_new_val" >&2;} 1917 ac_cache_corrupted=: 1918 fi;; 1919 esac 1920 # Pass precious variables to config.status. 1921 if test "$ac_new_set" = set; then 1922 case $ac_new_val in 1923 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1924 *) ac_arg=$ac_var=$ac_new_val ;; 1925 esac 1926 case " $ac_configure_args " in 1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1929 esac 1930 fi 1931done 1932if $ac_cache_corrupted; then 1933 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1934echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1935 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1936echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1937 { (exit 1); exit 1; }; } 1938fi 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964ac_ext=c 1965ac_cpp='$CPP $CPPFLAGS' 1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1968ac_compiler_gnu=$ac_cv_c_compiler_gnu 1969 1970 1971am__api_version="1.9" 1972ac_aux_dir= 1973for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1974 if test -f "$ac_dir/install-sh"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/install-sh -c" 1977 break 1978 elif test -f "$ac_dir/install.sh"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/install.sh -c" 1981 break 1982 elif test -f "$ac_dir/shtool"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/shtool install -c" 1985 break 1986 fi 1987done 1988if test -z "$ac_aux_dir"; then 1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1990echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1991 { (exit 1); exit 1; }; } 1992fi 1993 1994# These three variables are undocumented and unsupported, 1995# and are intended to be withdrawn in a future Autoconf release. 1996# They can cause serious problems if a builder's source tree is in a directory 1997# whose full name contains unusual characters. 1998ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1999ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2000ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2001 2002 2003# Find a good install program. We prefer a C program (faster), 2004# so one script is as good as another. But avoid the broken or 2005# incompatible versions: 2006# SysV /etc/install, /usr/sbin/install 2007# SunOS /usr/etc/install 2008# IRIX /sbin/install 2009# AIX /bin/install 2010# AmigaOS /C/install, which installs bootblocks on floppy discs 2011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2012# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2014# OS/2's system install, which has a completely different semantic 2015# ./install, which can be erroneously created by make from ./install.sh. 2016{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2017echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2018if test -z "$INSTALL"; then 2019if test "${ac_cv_path_install+set}" = set; then 2020 echo $ECHO_N "(cached) $ECHO_C" >&6 2021else 2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 # Account for people who put trailing slashes in PATH elements. 2028case $as_dir/ in 2029 ./ | .// | /cC/* | \ 2030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2031 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2032 /usr/ucb/* ) ;; 2033 *) 2034 # OSF1 and SCO ODT 3.0 have their own names for install. 2035 # Don't use installbsd from OSF since it installs stuff as root 2036 # by default. 2037 for ac_prog in ginstall scoinst install; do 2038 for ac_exec_ext in '' $ac_executable_extensions; do 2039 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2040 if test $ac_prog = install && 2041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2042 # AIX install. It has an incompatible calling convention. 2043 : 2044 elif test $ac_prog = install && 2045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2046 # program-specific install script used by HP pwplus--don't use. 2047 : 2048 else 2049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2050 break 3 2051 fi 2052 fi 2053 done 2054 done 2055 ;; 2056esac 2057done 2058IFS=$as_save_IFS 2059 2060 2061fi 2062 if test "${ac_cv_path_install+set}" = set; then 2063 INSTALL=$ac_cv_path_install 2064 else 2065 # As a last resort, use the slow shell script. Don't cache a 2066 # value for INSTALL within a source directory, because that will 2067 # break other packages using the cache if that directory is 2068 # removed, or if the value is a relative name. 2069 INSTALL=$ac_install_sh 2070 fi 2071fi 2072{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2073echo "${ECHO_T}$INSTALL" >&6; } 2074 2075# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2076# It thinks the first close brace ends the variable substitution. 2077test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2078 2079test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2080 2081test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2082 2083{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2084echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2085# Just in case 2086sleep 1 2087echo timestamp > conftest.file 2088# Do `set' in a subshell so we don't clobber the current shell's 2089# arguments. Must try -L first in case configure is actually a 2090# symlink; some systems play weird games with the mod time of symlinks 2091# (eg FreeBSD returns the mod time of the symlink's containing 2092# directory). 2093if ( 2094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2095 if test "$*" = "X"; then 2096 # -L didn't work. 2097 set X `ls -t $srcdir/configure conftest.file` 2098 fi 2099 rm -f conftest.file 2100 if test "$*" != "X $srcdir/configure conftest.file" \ 2101 && test "$*" != "X conftest.file $srcdir/configure"; then 2102 2103 # If neither matched, then we have a broken ls. This can happen 2104 # if, for instance, CONFIG_SHELL is bash and it inherits a 2105 # broken ls alias from the environment. This has actually 2106 # happened. Such a system could not be considered "sane". 2107 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2108alias in your environment" >&5 2109echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2110alias in your environment" >&2;} 2111 { (exit 1); exit 1; }; } 2112 fi 2113 2114 test "$2" = conftest.file 2115 ) 2116then 2117 # Ok. 2118 : 2119else 2120 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2121Check your system clock" >&5 2122echo "$as_me: error: newly created file is older than distributed files! 2123Check your system clock" >&2;} 2124 { (exit 1); exit 1; }; } 2125fi 2126{ echo "$as_me:$LINENO: result: yes" >&5 2127echo "${ECHO_T}yes" >&6; } 2128test "$program_prefix" != NONE && 2129 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2130# Use a double $ so make ignores it. 2131test "$program_suffix" != NONE && 2132 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2133# Double any \ or $. echo might interpret backslashes. 2134# By default was `s,x,x', remove it if useless. 2135cat <<\_ACEOF >conftest.sed 2136s/[\\$]/&&/g;s/;s,x,x,$// 2137_ACEOF 2138program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2139rm -f conftest.sed 2140 2141# expand $ac_aux_dir to an absolute path 2142am_aux_dir=`cd $ac_aux_dir && pwd` 2143 2144test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2145# Use eval to expand $SHELL 2146if eval "$MISSING --run true"; then 2147 am_missing_run="$MISSING --run " 2148else 2149 am_missing_run= 2150 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2151echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2152fi 2153 2154if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2155 # We used to keeping the `.' as first argument, in order to 2156 # allow $(mkdir_p) to be used without argument. As in 2157 # $(mkdir_p) $(somedir) 2158 # where $(somedir) is conditionally defined. However this is wrong 2159 # for two reasons: 2160 # 1. if the package is installed by a user who cannot write `.' 2161 # make install will fail, 2162 # 2. the above comment should most certainly read 2163 # $(mkdir_p) $(DESTDIR)$(somedir) 2164 # so it does not work when $(somedir) is undefined and 2165 # $(DESTDIR) is not. 2166 # To support the latter case, we have to write 2167 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2168 # so the `.' trick is pointless. 2169 mkdir_p='mkdir -p --' 2170else 2171 # On NextStep and OpenStep, the `mkdir' command does not 2172 # recognize any option. It will interpret all options as 2173 # directories to create, and then abort because `.' already 2174 # exists. 2175 for d in ./-p ./--version; 2176 do 2177 test -d $d && rmdir $d 2178 done 2179 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2180 if test -f "$ac_aux_dir/mkinstalldirs"; then 2181 mkdir_p='$(mkinstalldirs)' 2182 else 2183 mkdir_p='$(install_sh) -d' 2184 fi 2185fi 2186 2187for ac_prog in gawk mawk nawk awk 2188do 2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 2190set dummy $ac_prog; ac_word=$2 2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2193if test "${ac_cv_prog_AWK+set}" = set; then 2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2195else 2196 if test -n "$AWK"; then 2197 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2198else 2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2200for as_dir in $PATH 2201do 2202 IFS=$as_save_IFS 2203 test -z "$as_dir" && as_dir=. 2204 for ac_exec_ext in '' $ac_executable_extensions; do 2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2206 ac_cv_prog_AWK="$ac_prog" 2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2208 break 2 2209 fi 2210done 2211done 2212IFS=$as_save_IFS 2213 2214fi 2215fi 2216AWK=$ac_cv_prog_AWK 2217if test -n "$AWK"; then 2218 { echo "$as_me:$LINENO: result: $AWK" >&5 2219echo "${ECHO_T}$AWK" >&6; } 2220else 2221 { echo "$as_me:$LINENO: result: no" >&5 2222echo "${ECHO_T}no" >&6; } 2223fi 2224 2225 2226 test -n "$AWK" && break 2227done 2228 2229{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2230echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2231set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2232if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2233 echo $ECHO_N "(cached) $ECHO_C" >&6 2234else 2235 cat >conftest.make <<\_ACEOF 2236SHELL = /bin/sh 2237all: 2238 @echo '@@@%%%=$(MAKE)=@@@%%%' 2239_ACEOF 2240# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2241case `${MAKE-make} -f conftest.make 2>/dev/null` in 2242 *@@@%%%=?*=@@@%%%*) 2243 eval ac_cv_prog_make_${ac_make}_set=yes;; 2244 *) 2245 eval ac_cv_prog_make_${ac_make}_set=no;; 2246esac 2247rm -f conftest.make 2248fi 2249if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2250 { echo "$as_me:$LINENO: result: yes" >&5 2251echo "${ECHO_T}yes" >&6; } 2252 SET_MAKE= 2253else 2254 { echo "$as_me:$LINENO: result: no" >&5 2255echo "${ECHO_T}no" >&6; } 2256 SET_MAKE="MAKE=${MAKE-make}" 2257fi 2258 2259rm -rf .tst 2>/dev/null 2260mkdir .tst 2>/dev/null 2261if test -d .tst; then 2262 am__leading_dot=. 2263else 2264 am__leading_dot=_ 2265fi 2266rmdir .tst 2>/dev/null 2267 2268# test to see if srcdir already configured 2269if test "`cd $srcdir && pwd`" != "`pwd`" && 2270 test -f $srcdir/config.status; then 2271 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2272echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2273 { (exit 1); exit 1; }; } 2274fi 2275 2276# test whether we have cygpath 2277if test -z "$CYGPATH_W"; then 2278 if (cygpath --version) >/dev/null 2>/dev/null; then 2279 CYGPATH_W='cygpath -w' 2280 else 2281 CYGPATH_W=echo 2282 fi 2283fi 2284 2285 2286# Define the identity of the package. 2287 PACKAGE='soothsayer' 2288 VERSION='0.6.3' 2289 2290 2291cat >>confdefs.h <<_ACEOF 2292#define PACKAGE "$PACKAGE" 2293_ACEOF 2294 2295 2296cat >>confdefs.h <<_ACEOF 2297#define VERSION "$VERSION" 2298_ACEOF 2299 2300# Some tools Automake needs. 2301 2302ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2303 2304 2305AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2306 2307 2308AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2309 2310 2311AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2312 2313 2314MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2315 2316install_sh=${install_sh-"$am_aux_dir/install-sh"} 2317 2318# Installed binaries are usually stripped using `strip' when the user 2319# run `make install-strip'. However `strip' might not be the right 2320# tool to use in cross-compilation environments, therefore Automake 2321# will honor the `STRIP' environment variable to overrule this program. 2322if test "$cross_compiling" != no; then 2323 if test -n "$ac_tool_prefix"; then 2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2325set dummy ${ac_tool_prefix}strip; ac_word=$2 2326{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2328if test "${ac_cv_prog_STRIP+set}" = set; then 2329 echo $ECHO_N "(cached) $ECHO_C" >&6 2330else 2331 if test -n "$STRIP"; then 2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351STRIP=$ac_cv_prog_STRIP 2352if test -n "$STRIP"; then 2353 { echo "$as_me:$LINENO: result: $STRIP" >&5 2354echo "${ECHO_T}$STRIP" >&6; } 2355else 2356 { echo "$as_me:$LINENO: result: no" >&5 2357echo "${ECHO_T}no" >&6; } 2358fi 2359 2360 2361fi 2362if test -z "$ac_cv_prog_STRIP"; then 2363 ac_ct_STRIP=$STRIP 2364 # Extract the first word of "strip", so it can be a program name with args. 2365set dummy strip; ac_word=$2 2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370else 2371 if test -n "$ac_ct_STRIP"; then 2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_ac_ct_STRIP="strip" 2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2392if test -n "$ac_ct_STRIP"; then 2393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2394echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2395else 2396 { echo "$as_me:$LINENO: result: no" >&5 2397echo "${ECHO_T}no" >&6; } 2398fi 2399 2400 if test "x$ac_ct_STRIP" = x; then 2401 STRIP=":" 2402 else 2403 case $cross_compiling:$ac_tool_warned in 2404yes:) 2405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2406whose name does not start with the host triplet. If you think this 2407configuration is useful to you, please write to autoconf@gnu.org." >&5 2408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2409whose name does not start with the host triplet. If you think this 2410configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2411ac_tool_warned=yes ;; 2412esac 2413 STRIP=$ac_ct_STRIP 2414 fi 2415else 2416 STRIP="$ac_cv_prog_STRIP" 2417fi 2418 2419fi 2420INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2421 2422# We need awk for the "check" target. The system "awk" is bad on 2423# some platforms. 2424# Always define AMTAR for backward compatibility. 2425 2426AMTAR=${AMTAR-"${am_missing_run}tar"} 2427 2428am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2429 2430 2431 2432 2433 2434 2435 2436ac_config_headers="$ac_config_headers config.h:config.hin" 2437 2438 2439# Find a good install program. We prefer a C program (faster), 2440# so one script is as good as another. But avoid the broken or 2441# incompatible versions: 2442# SysV /etc/install, /usr/sbin/install 2443# SunOS /usr/etc/install 2444# IRIX /sbin/install 2445# AIX /bin/install 2446# AmigaOS /C/install, which installs bootblocks on floppy discs 2447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2448# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2450# OS/2's system install, which has a completely different semantic 2451# ./install, which can be erroneously created by make from ./install.sh. 2452{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2453echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2454if test -z "$INSTALL"; then 2455if test "${ac_cv_path_install+set}" = set; then 2456 echo $ECHO_N "(cached) $ECHO_C" >&6 2457else 2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 # Account for people who put trailing slashes in PATH elements. 2464case $as_dir/ in 2465 ./ | .// | /cC/* | \ 2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2467 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2468 /usr/ucb/* ) ;; 2469 *) 2470 # OSF1 and SCO ODT 3.0 have their own names for install. 2471 # Don't use installbsd from OSF since it installs stuff as root 2472 # by default. 2473 for ac_prog in ginstall scoinst install; do 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2476 if test $ac_prog = install && 2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2478 # AIX install. It has an incompatible calling convention. 2479 : 2480 elif test $ac_prog = install && 2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2482 # program-specific install script used by HP pwplus--don't use. 2483 : 2484 else 2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2486 break 3 2487 fi 2488 fi 2489 done 2490 done 2491 ;; 2492esac 2493done 2494IFS=$as_save_IFS 2495 2496 2497fi 2498 if test "${ac_cv_path_install+set}" = set; then 2499 INSTALL=$ac_cv_path_install 2500 else 2501 # As a last resort, use the slow shell script. Don't cache a 2502 # value for INSTALL within a source directory, because that will 2503 # break other packages using the cache if that directory is 2504 # removed, or if the value is a relative name. 2505 INSTALL=$ac_install_sh 2506 fi 2507fi 2508{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2509echo "${ECHO_T}$INSTALL" >&6; } 2510 2511# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2512# It thinks the first close brace ends the variable substitution. 2513test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2514 2515test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2516 2517test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2518 2519ac_ext=cpp 2520ac_cpp='$CXXCPP $CPPFLAGS' 2521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2524if test -z "$CXX"; then 2525 if test -n "$CCC"; then 2526 CXX=$CCC 2527 else 2528 if test -n "$ac_tool_prefix"; then 2529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2530 do 2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2532set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2535if test "${ac_cv_prog_CXX+set}" = set; then 2536 echo $ECHO_N "(cached) $ECHO_C" >&6 2537else 2538 if test -n "$CXX"; then 2539 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558CXX=$ac_cv_prog_CXX 2559if test -n "$CXX"; then 2560 { echo "$as_me:$LINENO: result: $CXX" >&5 2561echo "${ECHO_T}$CXX" >&6; } 2562else 2563 { echo "$as_me:$LINENO: result: no" >&5 2564echo "${ECHO_T}no" >&6; } 2565fi 2566 2567 2568 test -n "$CXX" && break 2569 done 2570fi 2571if test -z "$CXX"; then 2572 ac_ct_CXX=$CXX 2573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2574do 2575 # Extract the first word of "$ac_prog", so it can be a program name with args. 2576set dummy $ac_prog; ac_word=$2 2577{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2579if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2580 echo $ECHO_N "(cached) $ECHO_C" >&6 2581else 2582 if test -n "$ac_ct_CXX"; then 2583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2584else 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586for as_dir in $PATH 2587do 2588 IFS=$as_save_IFS 2589 test -z "$as_dir" && as_dir=. 2590 for ac_exec_ext in '' $ac_executable_extensions; do 2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2592 ac_cv_prog_ac_ct_CXX="$ac_prog" 2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2594 break 2 2595 fi 2596done 2597done 2598IFS=$as_save_IFS 2599 2600fi 2601fi 2602ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2603if test -n "$ac_ct_CXX"; then 2604 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2605echo "${ECHO_T}$ac_ct_CXX" >&6; } 2606else 2607 { echo "$as_me:$LINENO: result: no" >&5 2608echo "${ECHO_T}no" >&6; } 2609fi 2610 2611 2612 test -n "$ac_ct_CXX" && break 2613done 2614 2615 if test "x$ac_ct_CXX" = x; then 2616 CXX="g++" 2617 else 2618 case $cross_compiling:$ac_tool_warned in 2619yes:) 2620{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2621whose name does not start with the host triplet. If you think this 2622configuration is useful to you, please write to autoconf@gnu.org." >&5 2623echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2624whose name does not start with the host triplet. If you think this 2625configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2626ac_tool_warned=yes ;; 2627esac 2628 CXX=$ac_ct_CXX 2629 fi 2630fi 2631 2632 fi 2633fi 2634# Provide some information about the compiler. 2635echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2636ac_compiler=`set X $ac_compile; echo $2` 2637{ (ac_try="$ac_compiler --version >&5" 2638case "(($ac_try" in 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2640 *) ac_try_echo=$ac_try;; 2641esac 2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2643 (eval "$ac_compiler --version >&5") 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } 2647{ (ac_try="$ac_compiler -v >&5" 2648case "(($ac_try" in 2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2650 *) ac_try_echo=$ac_try;; 2651esac 2652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2653 (eval "$ac_compiler -v >&5") 2>&5 2654 ac_status=$? 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 (exit $ac_status); } 2657{ (ac_try="$ac_compiler -V >&5" 2658case "(($ac_try" in 2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2660 *) ac_try_echo=$ac_try;; 2661esac 2662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2663 (eval "$ac_compiler -V >&5") 2>&5 2664 ac_status=$? 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } 2667 2668cat >conftest.$ac_ext <<_ACEOF 2669/* confdefs.h. */ 2670_ACEOF 2671cat confdefs.h >>conftest.$ac_ext 2672cat >>conftest.$ac_ext <<_ACEOF 2673/* end confdefs.h. */ 2674 2675int 2676main () 2677{ 2678 2679 ; 2680 return 0; 2681} 2682_ACEOF 2683ac_clean_files_save=$ac_clean_files 2684ac_clean_files="$ac_clean_files a.out a.exe b.out" 2685# Try to create an executable without -o first, disregard a.out. 2686# It will help us diagnose broken compilers, and finding out an intuition 2687# of exeext. 2688{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2689echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 2690ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2691# 2692# List of possible output files, starting from the most likely. 2693# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2694# only as a last resort. b.out is created by i960 compilers. 2695ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2696# 2697# The IRIX 6 linker writes into existing files which may not be 2698# executable, retaining their permissions. Remove them first so a 2699# subsequent execution test works. 2700ac_rmfiles= 2701for ac_file in $ac_files 2702do 2703 case $ac_file in 2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2705 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2706 esac 2707done 2708rm -f $ac_rmfiles 2709 2710if { (ac_try="$ac_link_default" 2711case "(($ac_try" in 2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2713 *) ac_try_echo=$ac_try;; 2714esac 2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2716 (eval "$ac_link_default") 2>&5 2717 ac_status=$? 2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2719 (exit $ac_status); }; then 2720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2721# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2722# in a Makefile. We should not override ac_cv_exeext if it was cached, 2723# so that the user can short-circuit this test for compilers unknown to 2724# Autoconf. 2725for ac_file in $ac_files '' 2726do 2727 test -f "$ac_file" || continue 2728 case $ac_file in 2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2730 ;; 2731 [ab].out ) 2732 # We found the default executable, but exeext='' is most 2733 # certainly right. 2734 break;; 2735 *.* ) 2736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2737 then :; else 2738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2739 fi 2740 # We set ac_cv_exeext here because the later test for it is not 2741 # safe: cross compilers may not add the suffix if given an `-o' 2742 # argument, so we may need to know it at that point already. 2743 # Even if this section looks crufty: it has the advantage of 2744 # actually working. 2745 break;; 2746 * ) 2747 break;; 2748 esac 2749done 2750test "$ac_cv_exeext" = no && ac_cv_exeext= 2751 2752else 2753 ac_file='' 2754fi 2755 2756{ echo "$as_me:$LINENO: result: $ac_file" >&5 2757echo "${ECHO_T}$ac_file" >&6; } 2758if test -z "$ac_file"; then 2759 echo "$as_me: failed program was:" >&5 2760sed 's/^/| /' conftest.$ac_ext >&5 2761 2762{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2763See \`config.log' for more details." >&5 2764echo "$as_me: error: C++ compiler cannot create executables 2765See \`config.log' for more details." >&2;} 2766 { (exit 77); exit 77; }; } 2767fi 2768 2769ac_exeext=$ac_cv_exeext 2770 2771# Check that the compiler produces executables we can run. If not, either 2772# the compiler is broken, or we cross compile. 2773{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2774echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 2775# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2776# If not cross compiling, check that we can run a simple program. 2777if test "$cross_compiling" != yes; then 2778 if { ac_try='./$ac_file' 2779 { (case "(($ac_try" in 2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2781 *) ac_try_echo=$ac_try;; 2782esac 2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2784 (eval "$ac_try") 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); }; }; then 2788 cross_compiling=no 2789 else 2790 if test "$cross_compiling" = maybe; then 2791 cross_compiling=yes 2792 else 2793 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2794If you meant to cross compile, use \`--host'. 2795See \`config.log' for more details." >&5 2796echo "$as_me: error: cannot run C++ compiled programs. 2797If you meant to cross compile, use \`--host'. 2798See \`config.log' for more details." >&2;} 2799 { (exit 1); exit 1; }; } 2800 fi 2801 fi 2802fi 2803{ echo "$as_me:$LINENO: result: yes" >&5 2804echo "${ECHO_T}yes" >&6; } 2805 2806rm -f a.out a.exe conftest$ac_cv_exeext b.out 2807ac_clean_files=$ac_clean_files_save 2808# Check that the compiler produces executables we can run. If not, either 2809# the compiler is broken, or we cross compile. 2810{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2811echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2812{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2813echo "${ECHO_T}$cross_compiling" >&6; } 2814 2815{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2816echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2817if { (ac_try="$ac_link" 2818case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_link") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); }; then 2827 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2829# work properly (i.e., refer to `conftest.exe'), while it won't with 2830# `rm'. 2831for ac_file in conftest.exe conftest conftest.*; do 2832 test -f "$ac_file" || continue 2833 case $ac_file in 2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2836 break;; 2837 * ) break;; 2838 esac 2839done 2840else 2841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2842See \`config.log' for more details." >&5 2843echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2844See \`config.log' for more details." >&2;} 2845 { (exit 1); exit 1; }; } 2846fi 2847 2848rm -f conftest$ac_cv_exeext 2849{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2850echo "${ECHO_T}$ac_cv_exeext" >&6; } 2851 2852rm -f conftest.$ac_ext 2853EXEEXT=$ac_cv_exeext 2854ac_exeext=$EXEEXT 2855{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2856echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2857if test "${ac_cv_objext+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 cat >conftest.$ac_ext <<_ACEOF 2861/* confdefs.h. */ 2862_ACEOF 2863cat confdefs.h >>conftest.$ac_ext 2864cat >>conftest.$ac_ext <<_ACEOF 2865/* end confdefs.h. */ 2866 2867int 2868main () 2869{ 2870 2871 ; 2872 return 0; 2873} 2874_ACEOF 2875rm -f conftest.o conftest.obj 2876if { (ac_try="$ac_compile" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2882 (eval "$ac_compile") 2>&5 2883 ac_status=$? 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); }; then 2886 for ac_file in conftest.o conftest.obj conftest.*; do 2887 test -f "$ac_file" || continue; 2888 case $ac_file in 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2891 break;; 2892 esac 2893done 2894else 2895 echo "$as_me: failed program was:" >&5 2896sed 's/^/| /' conftest.$ac_ext >&5 2897 2898{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2899See \`config.log' for more details." >&5 2900echo "$as_me: error: cannot compute suffix of object files: cannot compile 2901See \`config.log' for more details." >&2;} 2902 { (exit 1); exit 1; }; } 2903fi 2904 2905rm -f conftest.$ac_cv_objext conftest.$ac_ext 2906fi 2907{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2908echo "${ECHO_T}$ac_cv_objext" >&6; } 2909OBJEXT=$ac_cv_objext 2910ac_objext=$OBJEXT 2911{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2912echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2913if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2914 echo $ECHO_N "(cached) $ECHO_C" >&6 2915else 2916 cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926#ifndef __GNUC__ 2927 choke me 2928#endif 2929 2930 ; 2931 return 0; 2932} 2933_ACEOF 2934rm -f conftest.$ac_objext 2935if { (ac_try="$ac_compile" 2936case "(($ac_try" in 2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 *) ac_try_echo=$ac_try;; 2939esac 2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2941 (eval "$ac_compile") 2>conftest.er1 2942 ac_status=$? 2943 grep -v '^ *+' conftest.er1 >conftest.err 2944 rm -f conftest.er1 2945 cat conftest.err >&5 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2947 (exit $ac_status); } && { 2948 test -z "$ac_cxx_werror_flag" || 2949 test ! -s conftest.err 2950 } && test -s conftest.$ac_objext; then 2951 ac_compiler_gnu=yes 2952else 2953 echo "$as_me: failed program was:" >&5 2954sed 's/^/| /' conftest.$ac_ext >&5 2955 2956 ac_compiler_gnu=no 2957fi 2958 2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2960ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2961 2962fi 2963{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2964echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2965GXX=`test $ac_compiler_gnu = yes && echo yes` 2966ac_test_CXXFLAGS=${CXXFLAGS+set} 2967ac_save_CXXFLAGS=$CXXFLAGS 2968{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2969echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2970if test "${ac_cv_prog_cxx_g+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972else 2973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2974 ac_cxx_werror_flag=yes 2975 ac_cv_prog_cxx_g=no 2976 CXXFLAGS="-g" 2977 cat >conftest.$ac_ext <<_ACEOF 2978/* confdefs.h. */ 2979_ACEOF 2980cat confdefs.h >>conftest.$ac_ext 2981cat >>conftest.$ac_ext <<_ACEOF 2982/* end confdefs.h. */ 2983 2984int 2985main () 2986{ 2987 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.$ac_objext 2993if { (ac_try="$ac_compile" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_compile") 2>conftest.er1 3000 ac_status=$? 3001 grep -v '^ *+' conftest.er1 >conftest.err 3002 rm -f conftest.er1 3003 cat conftest.err >&5 3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3005 (exit $ac_status); } && { 3006 test -z "$ac_cxx_werror_flag" || 3007 test ! -s conftest.err 3008 } && test -s conftest.$ac_objext; then 3009 ac_cv_prog_cxx_g=yes 3010else 3011 echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014 CXXFLAGS="" 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021 3022int 3023main () 3024{ 3025 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.$ac_objext 3031if { (ac_try="$ac_compile" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_compile") 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } && { 3044 test -z "$ac_cxx_werror_flag" || 3045 test ! -s conftest.err 3046 } && test -s conftest.$ac_objext; then 3047 : 3048else 3049 echo "$as_me: failed program was:" >&5 3050sed 's/^/| /' conftest.$ac_ext >&5 3051 3052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3053 CXXFLAGS="-g" 3054 cat >conftest.$ac_ext <<_ACEOF 3055/* confdefs.h. */ 3056_ACEOF 3057cat confdefs.h >>conftest.$ac_ext 3058cat >>conftest.$ac_ext <<_ACEOF 3059/* end confdefs.h. */ 3060 3061int 3062main () 3063{ 3064 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext 3070if { (ac_try="$ac_compile" 3071case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_compile") 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && { 3083 test -z "$ac_cxx_werror_flag" || 3084 test ! -s conftest.err 3085 } && test -s conftest.$ac_objext; then 3086 ac_cv_prog_cxx_g=yes 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091 3092fi 3093 3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3095fi 3096 3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3098fi 3099 3100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3102fi 3103{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3104echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3105if test "$ac_test_CXXFLAGS" = set; then 3106 CXXFLAGS=$ac_save_CXXFLAGS 3107elif test $ac_cv_prog_cxx_g = yes; then 3108 if test "$GXX" = yes; then 3109 CXXFLAGS="-g -O2" 3110 else 3111 CXXFLAGS="-g" 3112 fi 3113else 3114 if test "$GXX" = yes; then 3115 CXXFLAGS="-O2" 3116 else 3117 CXXFLAGS= 3118 fi 3119fi 3120ac_ext=c 3121ac_cpp='$CPP $CPPFLAGS' 3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3124ac_compiler_gnu=$ac_cv_c_compiler_gnu 3125DEPDIR="${am__leading_dot}deps" 3126 3127ac_config_commands="$ac_config_commands depfiles" 3128 3129 3130am_make=${MAKE-make} 3131cat > confinc << 'END' 3132am__doit: 3133 @echo done 3134.PHONY: am__doit 3135END 3136# If we don't find an include directive, just comment out the code. 3137{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3138echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3139am__include="#" 3140am__quote= 3141_am_result=none 3142# First try GNU make style include. 3143echo "include confinc" > confmf 3144# We grep out `Entering directory' and `Leaving directory' 3145# messages which can occur if `w' ends up in MAKEFLAGS. 3146# In particular we don't look at `^make:' because GNU make might 3147# be invoked under some other name (usually "gmake"), in which 3148# case it prints its new name instead of `make'. 3149if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3150 am__include=include 3151 am__quote= 3152 _am_result=GNU 3153fi 3154# Now try BSD make style include. 3155if test "$am__include" = "#"; then 3156 echo '.include "confinc"' > confmf 3157 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3158 am__include=.include 3159 am__quote="\"" 3160 _am_result=BSD 3161 fi 3162fi 3163 3164 3165{ echo "$as_me:$LINENO: result: $_am_result" >&5 3166echo "${ECHO_T}$_am_result" >&6; } 3167rm -f confinc confmf 3168 3169# Check whether --enable-dependency-tracking was given. 3170if test "${enable_dependency_tracking+set}" = set; then 3171 enableval=$enable_dependency_tracking; 3172fi 3173 3174if test "x$enable_dependency_tracking" != xno; then 3175 am_depcomp="$ac_aux_dir/depcomp" 3176 AMDEPBACKSLASH='\' 3177fi 3178 3179 3180if test "x$enable_dependency_tracking" != xno; then 3181 AMDEP_TRUE= 3182 AMDEP_FALSE='#' 3183else 3184 AMDEP_TRUE='#' 3185 AMDEP_FALSE= 3186fi 3187 3188 3189 3190 3191depcc="$CXX" am_compiler_list= 3192 3193{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3194echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3195if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3196 echo $ECHO_N "(cached) $ECHO_C" >&6 3197else 3198 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3199 # We make a subdir and do the tests there. Otherwise we can end up 3200 # making bogus files that we don't know about and never remove. For 3201 # instance it was reported that on HP-UX the gcc test will end up 3202 # making a dummy file named `D' -- because `-MD' means `put the output 3203 # in D'. 3204 mkdir conftest.dir 3205 # Copy depcomp to subdir because otherwise we won't find it if we're 3206 # using a relative directory. 3207 cp "$am_depcomp" conftest.dir 3208 cd conftest.dir 3209 # We will build objects and dependencies in a subdirectory because 3210 # it helps to detect inapplicable dependency modes. For instance 3211 # both Tru64's cc and ICC support -MD to output dependencies as a 3212 # side effect of compilation, but ICC will put the dependencies in 3213 # the current directory while Tru64 will put them in the object 3214 # directory. 3215 mkdir sub 3216 3217 am_cv_CXX_dependencies_compiler_type=none 3218 if test "$am_compiler_list" = ""; then 3219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3220 fi 3221 for depmode in $am_compiler_list; do 3222 # Setup a source with many dependencies, because some compilers 3223 # like to wrap large dependency lists on column 80 (with \), and 3224 # we should not choose a depcomp mode which is confused by this. 3225 # 3226 # We need to recreate these files for each test, as the compiler may 3227 # overwrite some of them when testing with obscure command lines. 3228 # This happens at least with the AIX C compiler. 3229 : > sub/conftest.c 3230 for i in 1 2 3 4 5 6; do 3231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3233 # Solaris 8's {/usr,}/bin/sh. 3234 touch sub/conftst$i.h 3235 done 3236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3237 3238 case $depmode in 3239 nosideeffect) 3240 # after this tag, mechanisms are not by side-effect, so they'll 3241 # only be used when explicitly requested 3242 if test "x$enable_dependency_tracking" = xyes; then 3243 continue 3244 else 3245 break 3246 fi 3247 ;; 3248 none) break ;; 3249 esac 3250 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3251 # mode. It turns out that the SunPro C++ compiler does not properly 3252 # handle `-M -o', and we need to detect this. 3253 if depmode=$depmode \ 3254 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3256 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3257 >/dev/null 2>conftest.err && 3258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3259 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3261 # icc doesn't choke on unknown options, it will just issue warnings 3262 # or remarks (even with -Werror). So we grep stderr for any message 3263 # that says an option was ignored or not supported. 3264 # When given -MP, icc 7.0 and 7.1 complain thusly: 3265 # icc: Command line warning: ignoring option '-M'; no argument required 3266 # The diagnosis changed in icc 8.0: 3267 # icc: Command line remark: option '-MP' not supported 3268 if (grep 'ignoring option' conftest.err || 3269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3270 am_cv_CXX_dependencies_compiler_type=$depmode 3271 break 3272 fi 3273 fi 3274 done 3275 3276 cd .. 3277 rm -rf conftest.dir 3278else 3279 am_cv_CXX_dependencies_compiler_type=none 3280fi 3281 3282fi 3283{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3284echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3285CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3286 3287 3288 3289if 3290 test "x$enable_dependency_tracking" != xno \ 3291 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3292 am__fastdepCXX_TRUE= 3293 am__fastdepCXX_FALSE='#' 3294else 3295 am__fastdepCXX_TRUE='#' 3296 am__fastdepCXX_FALSE= 3297fi 3298 3299 3300ac_ext=cpp 3301ac_cpp='$CXXCPP $CPPFLAGS' 3302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3305{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 3306echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 3307if test -z "$CXXCPP"; then 3308 if test "${ac_cv_prog_CXXCPP+set}" = set; then 3309 echo $ECHO_N "(cached) $ECHO_C" >&6 3310else 3311 # Double quotes because CXXCPP needs to be expanded 3312 for CXXCPP in "$CXX -E" "/lib/cpp" 3313 do 3314 ac_preproc_ok=false 3315for ac_cxx_preproc_warn_flag in '' yes 3316do 3317 # Use a header file that comes with gcc, so configuring glibc 3318 # with a fresh cross-compiler works. 3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3320 # <limits.h> exists even on freestanding compilers. 3321 # On the NeXT, cc -E runs the code through the compiler's parser, 3322 # not just through cpp. "Syntax error" is here to catch this case. 3323 cat >conftest.$ac_ext <<_ACEOF 3324/* confdefs.h. */ 3325_ACEOF 3326cat confdefs.h >>conftest.$ac_ext 3327cat >>conftest.$ac_ext <<_ACEOF 3328/* end confdefs.h. */ 3329#ifdef __STDC__ 3330# include <limits.h> 3331#else 3332# include <assert.h> 3333#endif 3334 Syntax error 3335_ACEOF 3336if { (ac_try="$ac_cpp conftest.$ac_ext" 3337case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3343 ac_status=$? 3344 grep -v '^ *+' conftest.er1 >conftest.err 3345 rm -f conftest.er1 3346 cat conftest.err >&5 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); } >/dev/null && { 3349 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3350 test ! -s conftest.err 3351 }; then 3352 : 3353else 3354 echo "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357 # Broken: fails on valid input. 3358continue 3359fi 3360 3361rm -f conftest.err conftest.$ac_ext 3362 3363 # OK, works on sane cases. Now check whether nonexistent headers 3364 # can be detected and how. 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371#include <ac_nonexistent.h> 3372_ACEOF 3373if { (ac_try="$ac_cpp conftest.$ac_ext" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3380 ac_status=$? 3381 grep -v '^ *+' conftest.er1 >conftest.err 3382 rm -f conftest.er1 3383 cat conftest.err >&5 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3385 (exit $ac_status); } >/dev/null && { 3386 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3387 test ! -s conftest.err 3388 }; then 3389 # Broken: success on invalid input. 3390continue 3391else 3392 echo "$as_me: failed program was:" >&5 3393sed 's/^/| /' conftest.$ac_ext >&5 3394 3395 # Passes both tests. 3396ac_preproc_ok=: 3397break 3398fi 3399 3400rm -f conftest.err conftest.$ac_ext 3401 3402done 3403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3404rm -f conftest.err conftest.$ac_ext 3405if $ac_preproc_ok; then 3406 break 3407fi 3408 3409 done 3410 ac_cv_prog_CXXCPP=$CXXCPP 3411 3412fi 3413 CXXCPP=$ac_cv_prog_CXXCPP 3414else 3415 ac_cv_prog_CXXCPP=$CXXCPP 3416fi 3417{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 3418echo "${ECHO_T}$CXXCPP" >&6; } 3419ac_preproc_ok=false 3420for ac_cxx_preproc_warn_flag in '' yes 3421do 3422 # Use a header file that comes with gcc, so configuring glibc 3423 # with a fresh cross-compiler works. 3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3425 # <limits.h> exists even on freestanding compilers. 3426 # On the NeXT, cc -E runs the code through the compiler's parser, 3427 # not just through cpp. "Syntax error" is here to catch this case. 3428 cat >conftest.$ac_ext <<_ACEOF 3429/* confdefs.h. */ 3430_ACEOF 3431cat confdefs.h >>conftest.$ac_ext 3432cat >>conftest.$ac_ext <<_ACEOF 3433/* end confdefs.h. */ 3434#ifdef __STDC__ 3435# include <limits.h> 3436#else 3437# include <assert.h> 3438#endif 3439 Syntax error 3440_ACEOF 3441if { (ac_try="$ac_cpp conftest.$ac_ext" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3448 ac_status=$? 3449 grep -v '^ *+' conftest.er1 >conftest.err 3450 rm -f conftest.er1 3451 cat conftest.err >&5 3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } >/dev/null && { 3454 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3455 test ! -s conftest.err 3456 }; then 3457 : 3458else 3459 echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462 # Broken: fails on valid input. 3463continue 3464fi 3465 3466rm -f conftest.err conftest.$ac_ext 3467 3468 # OK, works on sane cases. Now check whether nonexistent headers 3469 # can be detected and how. 3470 cat >conftest.$ac_ext <<_ACEOF 3471/* confdefs.h. */ 3472_ACEOF 3473cat confdefs.h >>conftest.$ac_ext 3474cat >>conftest.$ac_ext <<_ACEOF 3475/* end confdefs.h. */ 3476#include <ac_nonexistent.h> 3477_ACEOF 3478if { (ac_try="$ac_cpp conftest.$ac_ext" 3479case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482esac 3483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3485 ac_status=$? 3486 grep -v '^ *+' conftest.er1 >conftest.err 3487 rm -f conftest.er1 3488 cat conftest.err >&5 3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3490 (exit $ac_status); } >/dev/null && { 3491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3492 test ! -s conftest.err 3493 }; then 3494 # Broken: success on invalid input. 3495continue 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 # Passes both tests. 3501ac_preproc_ok=: 3502break 3503fi 3504 3505rm -f conftest.err conftest.$ac_ext 3506 3507done 3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3509rm -f conftest.err conftest.$ac_ext 3510if $ac_preproc_ok; then 3511 : 3512else 3513 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3514See \`config.log' for more details." >&5 3515echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3516See \`config.log' for more details." >&2;} 3517 { (exit 1); exit 1; }; } 3518fi 3519 3520ac_ext=c 3521ac_cpp='$CPP $CPPFLAGS' 3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3524ac_compiler_gnu=$ac_cv_c_compiler_gnu 3525 3526 3527############################ 3528# Temporarily disabling this 3529#AC_LIB_LTDL 3530#AC_LIBLTDL_CONVENIENCE 3531 3532 3533 3534 3535 3536 3537# Check whether --enable-shared was given. 3538if test "${enable_shared+set}" = set; then 3539 enableval=$enable_shared; p=${PACKAGE-default} 3540 case $enableval in 3541 yes) enable_shared=yes ;; 3542 no) enable_shared=no ;; 3543 *) 3544 enable_shared=no 3545 # Look at the argument we got. We use all the common list separators. 3546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3547 for pkg in $enableval; do 3548 IFS="$lt_save_ifs" 3549 if test "X$pkg" = "X$p"; then 3550 enable_shared=yes 3551 fi 3552 done 3553 IFS="$lt_save_ifs" 3554 ;; 3555 esac 3556else 3557 enable_shared=yes 3558fi 3559 3560 3561# Check whether --enable-static was given. 3562if test "${enable_static+set}" = set; then 3563 enableval=$enable_static; p=${PACKAGE-default} 3564 case $enableval in 3565 yes) enable_static=yes ;; 3566 no) enable_static=no ;; 3567 *) 3568 enable_static=no 3569 # Look at the argument we got. We use all the common list separators. 3570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3571 for pkg in $enableval; do 3572 IFS="$lt_save_ifs" 3573 if test "X$pkg" = "X$p"; then 3574 enable_static=yes 3575 fi 3576 done 3577 IFS="$lt_save_ifs" 3578 ;; 3579 esac 3580else 3581 enable_static=yes 3582fi 3583 3584 3585# Check whether --enable-fast-install was given. 3586if test "${enable_fast_install+set}" = set; then 3587 enableval=$enable_fast_install; p=${PACKAGE-default} 3588 case $enableval in 3589 yes) enable_fast_install=yes ;; 3590 no) enable_fast_install=no ;; 3591 *) 3592 enable_fast_install=no 3593 # Look at the argument we got. We use all the common list separators. 3594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3595 for pkg in $enableval; do 3596 IFS="$lt_save_ifs" 3597 if test "X$pkg" = "X$p"; then 3598 enable_fast_install=yes 3599 fi 3600 done 3601 IFS="$lt_save_ifs" 3602 ;; 3603 esac 3604else 3605 enable_fast_install=yes 3606fi 3607 3608 3609# Make sure we can run config.sub. 3610$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3611 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3612echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3613 { (exit 1); exit 1; }; } 3614 3615{ echo "$as_me:$LINENO: checking build system type" >&5 3616echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3617if test "${ac_cv_build+set}" = set; then 3618 echo $ECHO_N "(cached) $ECHO_C" >&6 3619else 3620 ac_build_alias=$build_alias 3621test "x$ac_build_alias" = x && 3622 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3623test "x$ac_build_alias" = x && 3624 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3625echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3626 { (exit 1); exit 1; }; } 3627ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3628 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3629echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3630 { (exit 1); exit 1; }; } 3631 3632fi 3633{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3634echo "${ECHO_T}$ac_cv_build" >&6; } 3635case $ac_cv_build in 3636*-*-*) ;; 3637*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3638echo "$as_me: error: invalid value of canonical build" >&2;} 3639 { (exit 1); exit 1; }; };; 3640esac 3641build=$ac_cv_build 3642ac_save_IFS=$IFS; IFS='-' 3643set x $ac_cv_build 3644shift 3645build_cpu=$1 3646build_vendor=$2 3647shift; shift 3648# Remember, the first character of IFS is used to create $*, 3649# except with old shells: 3650build_os=$* 3651IFS=$ac_save_IFS 3652case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3653 3654 3655{ echo "$as_me:$LINENO: checking host system type" >&5 3656echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3657if test "${ac_cv_host+set}" = set; then 3658 echo $ECHO_N "(cached) $ECHO_C" >&6 3659else 3660 if test "x$host_alias" = x; then 3661 ac_cv_host=$ac_cv_build 3662else 3663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3664 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3665echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3666 { (exit 1); exit 1; }; } 3667fi 3668 3669fi 3670{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3671echo "${ECHO_T}$ac_cv_host" >&6; } 3672case $ac_cv_host in 3673*-*-*) ;; 3674*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3675echo "$as_me: error: invalid value of canonical host" >&2;} 3676 { (exit 1); exit 1; }; };; 3677esac 3678host=$ac_cv_host 3679ac_save_IFS=$IFS; IFS='-' 3680set x $ac_cv_host 3681shift 3682host_cpu=$1 3683host_vendor=$2 3684shift; shift 3685# Remember, the first character of IFS is used to create $*, 3686# except with old shells: 3687host_os=$* 3688IFS=$ac_save_IFS 3689case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3690 3691 3692ac_ext=c 3693ac_cpp='$CPP $CPPFLAGS' 3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3696ac_compiler_gnu=$ac_cv_c_compiler_gnu 3697if test -n "$ac_tool_prefix"; then 3698 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3699set dummy ${ac_tool_prefix}gcc; ac_word=$2 3700{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3702if test "${ac_cv_prog_CC+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704else 3705 if test -n "$CC"; then 3706 ac_cv_prog_CC="$CC" # Let the user override the test. 3707else 3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3709for as_dir in $PATH 3710do 3711 IFS=$as_save_IFS 3712 test -z "$as_dir" && as_dir=. 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3715 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3717 break 2 3718 fi 3719done 3720done 3721IFS=$as_save_IFS 3722 3723fi 3724fi 3725CC=$ac_cv_prog_CC 3726if test -n "$CC"; then 3727 { echo "$as_me:$LINENO: result: $CC" >&5 3728echo "${ECHO_T}$CC" >&6; } 3729else 3730 { echo "$as_me:$LINENO: result: no" >&5 3731echo "${ECHO_T}no" >&6; } 3732fi 3733 3734 3735fi 3736if test -z "$ac_cv_prog_CC"; then 3737 ac_ct_CC=$CC 3738 # Extract the first word of "gcc", so it can be a program name with args. 3739set dummy gcc; ac_word=$2 3740{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3743 echo $ECHO_N "(cached) $ECHO_C" >&6 3744else 3745 if test -n "$ac_ct_CC"; then 3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3747else 3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749for as_dir in $PATH 3750do 3751 IFS=$as_save_IFS 3752 test -z "$as_dir" && as_dir=. 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3755 ac_cv_prog_ac_ct_CC="gcc" 3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3757 break 2 3758 fi 3759done 3760done 3761IFS=$as_save_IFS 3762 3763fi 3764fi 3765ac_ct_CC=$ac_cv_prog_ac_ct_CC 3766if test -n "$ac_ct_CC"; then 3767 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3768echo "${ECHO_T}$ac_ct_CC" >&6; } 3769else 3770 { echo "$as_me:$LINENO: result: no" >&5 3771echo "${ECHO_T}no" >&6; } 3772fi 3773 3774 if test "x$ac_ct_CC" = x; then 3775 CC="" 3776 else 3777 case $cross_compiling:$ac_tool_warned in 3778yes:) 3779{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3780whose name does not start with the host triplet. If you think this 3781configuration is useful to you, please write to autoconf@gnu.org." >&5 3782echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3783whose name does not start with the host triplet. If you think this 3784configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3785ac_tool_warned=yes ;; 3786esac 3787 CC=$ac_ct_CC 3788 fi 3789else 3790 CC="$ac_cv_prog_CC" 3791fi 3792 3793if test -z "$CC"; then 3794 if test -n "$ac_tool_prefix"; then 3795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3796set dummy ${ac_tool_prefix}cc; ac_word=$2 3797{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3799if test "${ac_cv_prog_CC+set}" = set; then 3800 echo $ECHO_N "(cached) $ECHO_C" >&6 3801else 3802 if test -n "$CC"; then 3803 ac_cv_prog_CC="$CC" # Let the user override the test. 3804else 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3812 ac_cv_prog_CC="${ac_tool_prefix}cc" 3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3814 break 2 3815 fi 3816done 3817done 3818IFS=$as_save_IFS 3819 3820fi 3821fi 3822CC=$ac_cv_prog_CC 3823if test -n "$CC"; then 3824 { echo "$as_me:$LINENO: result: $CC" >&5 3825echo "${ECHO_T}$CC" >&6; } 3826else 3827 { echo "$as_me:$LINENO: result: no" >&5 3828echo "${ECHO_T}no" >&6; } 3829fi 3830 3831 3832 fi 3833fi 3834if test -z "$CC"; then 3835 # Extract the first word of "cc", so it can be a program name with args. 3836set dummy cc; ac_word=$2 3837{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3839if test "${ac_cv_prog_CC+set}" = set; then 3840 echo $ECHO_N "(cached) $ECHO_C" >&6 3841else 3842 if test -n "$CC"; then 3843 ac_cv_prog_CC="$CC" # Let the user override the test. 3844else 3845 ac_prog_rejected=no 3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3854 ac_prog_rejected=yes 3855 continue 3856 fi 3857 ac_cv_prog_CC="cc" 3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3859 break 2 3860 fi 3861done 3862done 3863IFS=$as_save_IFS 3864 3865if test $ac_prog_rejected = yes; then 3866 # We found a bogon in the path, so make sure we never use it. 3867 set dummy $ac_cv_prog_CC 3868 shift 3869 if test $# != 0; then 3870 # We chose a different compiler from the bogus one. 3871 # However, it has the same basename, so the bogon will be chosen 3872 # first if we set CC to just the basename; use the full file name. 3873 shift 3874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3875 fi 3876fi 3877fi 3878fi 3879CC=$ac_cv_prog_CC 3880if test -n "$CC"; then 3881 { echo "$as_me:$LINENO: result: $CC" >&5 3882echo "${ECHO_T}$CC" >&6; } 3883else 3884 { echo "$as_me:$LINENO: result: no" >&5 3885echo "${ECHO_T}no" >&6; } 3886fi 3887 3888 3889fi 3890if test -z "$CC"; then 3891 if test -n "$ac_tool_prefix"; then 3892 for ac_prog in cl.exe 3893 do 3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3895set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3896{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3898if test "${ac_cv_prog_CC+set}" = set; then 3899 echo $ECHO_N "(cached) $ECHO_C" >&6 3900else 3901 if test -n "$CC"; then 3902 ac_cv_prog_CC="$CC" # Let the user override the test. 3903else 3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3913 break 2 3914 fi 3915done 3916done 3917IFS=$as_save_IFS 3918 3919fi 3920fi 3921CC=$ac_cv_prog_CC 3922if test -n "$CC"; then 3923 { echo "$as_me:$LINENO: result: $CC" >&5 3924echo "${ECHO_T}$CC" >&6; } 3925else 3926 { echo "$as_me:$LINENO: result: no" >&5 3927echo "${ECHO_T}no" >&6; } 3928fi 3929 3930 3931 test -n "$CC" && break 3932 done 3933fi 3934if test -z "$CC"; then 3935 ac_ct_CC=$CC 3936 for ac_prog in cl.exe 3937do 3938 # Extract the first word of "$ac_prog", so it can be a program name with args. 3939set dummy $ac_prog; ac_word=$2 3940{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3944else 3945 if test -n "$ac_ct_CC"; then 3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3947else 3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3949for as_dir in $PATH 3950do 3951 IFS=$as_save_IFS 3952 test -z "$as_dir" && as_dir=. 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3955 ac_cv_prog_ac_ct_CC="$ac_prog" 3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960done 3961IFS=$as_save_IFS 3962 3963fi 3964fi 3965ac_ct_CC=$ac_cv_prog_ac_ct_CC 3966if test -n "$ac_ct_CC"; then 3967 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3968echo "${ECHO_T}$ac_ct_CC" >&6; } 3969else 3970 { echo "$as_me:$LINENO: result: no" >&5 3971echo "${ECHO_T}no" >&6; } 3972fi 3973 3974 3975 test -n "$ac_ct_CC" && break 3976done 3977 3978 if test "x$ac_ct_CC" = x; then 3979 CC="" 3980 else 3981 case $cross_compiling:$ac_tool_warned in 3982yes:) 3983{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3984whose name does not start with the host triplet. If you think this 3985configuration is useful to you, please write to autoconf@gnu.org." >&5 3986echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3987whose name does not start with the host triplet. If you think this 3988configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3989ac_tool_warned=yes ;; 3990esac 3991 CC=$ac_ct_CC 3992 fi 3993fi 3994 3995fi 3996 3997 3998test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3999See \`config.log' for more details." >&5 4000echo "$as_me: error: no acceptable C compiler found in \$PATH 4001See \`config.log' for more details." >&2;} 4002 { (exit 1); exit 1; }; } 4003 4004# Provide some information about the compiler. 4005echo "$as_me:$LINENO: checking for C compiler version" >&5 4006ac_compiler=`set X $ac_compile; echo $2` 4007{ (ac_try="$ac_compiler --version >&5" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4013 (eval "$ac_compiler --version >&5") 2>&5 4014 ac_status=$? 4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4016 (exit $ac_status); } 4017{ (ac_try="$ac_compiler -v >&5" 4018case "(($ac_try" in 4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4020 *) ac_try_echo=$ac_try;; 4021esac 4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4023 (eval "$ac_compiler -v >&5") 2>&5 4024 ac_status=$? 4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4026 (exit $ac_status); } 4027{ (ac_try="$ac_compiler -V >&5" 4028case "(($ac_try" in 4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4030 *) ac_try_echo=$ac_try;; 4031esac 4032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4033 (eval "$ac_compiler -V >&5") 2>&5 4034 ac_status=$? 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4036 (exit $ac_status); } 4037 4038{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4039echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4040if test "${ac_cv_c_compiler_gnu+set}" = set; then 4041 echo $ECHO_N "(cached) $ECHO_C" >&6 4042else 4043 cat >conftest.$ac_ext <<_ACEOF 4044/* confdefs.h. */ 4045_ACEOF 4046cat confdefs.h >>conftest.$ac_ext 4047cat >>conftest.$ac_ext <<_ACEOF 4048/* end confdefs.h. */ 4049 4050int 4051main () 4052{ 4053#ifndef __GNUC__ 4054 choke me 4055#endif 4056 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061rm -f conftest.$ac_objext 4062if { (ac_try="$ac_compile" 4063case "(($ac_try" in 4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4065 *) ac_try_echo=$ac_try;; 4066esac 4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4068 (eval "$ac_compile") 2>conftest.er1 4069 ac_status=$? 4070 grep -v '^ *+' conftest.er1 >conftest.err 4071 rm -f conftest.er1 4072 cat conftest.err >&5 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); } && { 4075 test -z "$ac_c_werror_flag" || 4076 test ! -s conftest.err 4077 } && test -s conftest.$ac_objext; then 4078 ac_compiler_gnu=yes 4079else 4080 echo "$as_me: failed program was:" >&5 4081sed 's/^/| /' conftest.$ac_ext >&5 4082 4083 ac_compiler_gnu=no 4084fi 4085 4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087ac_cv_c_compiler_gnu=$ac_compiler_gnu 4088 4089fi 4090{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4091echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4092GCC=`test $ac_compiler_gnu = yes && echo yes` 4093ac_test_CFLAGS=${CFLAGS+set} 4094ac_save_CFLAGS=$CFLAGS 4095{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4096echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4097if test "${ac_cv_prog_cc_g+set}" = set; then 4098 echo $ECHO_N "(cached) $ECHO_C" >&6 4099else 4100 ac_save_c_werror_flag=$ac_c_werror_flag 4101 ac_c_werror_flag=yes 4102 ac_cv_prog_cc_g=no 4103 CFLAGS="-g" 4104 cat >conftest.$ac_ext <<_ACEOF 4105/* confdefs.h. */ 4106_ACEOF 4107cat confdefs.h >>conftest.$ac_ext 4108cat >>conftest.$ac_ext <<_ACEOF 4109/* end confdefs.h. */ 4110 4111int 4112main () 4113{ 4114 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119rm -f conftest.$ac_objext 4120if { (ac_try="$ac_compile" 4121case "(($ac_try" in 4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123 *) ac_try_echo=$ac_try;; 4124esac 4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4126 (eval "$ac_compile") 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } && { 4133 test -z "$ac_c_werror_flag" || 4134 test ! -s conftest.err 4135 } && test -s conftest.$ac_objext; then 4136 ac_cv_prog_cc_g=yes 4137else 4138 echo "$as_me: failed program was:" >&5 4139sed 's/^/| /' conftest.$ac_ext >&5 4140 4141 CFLAGS="" 4142 cat >conftest.$ac_ext <<_ACEOF 4143/* confdefs.h. */ 4144_ACEOF 4145cat confdefs.h >>conftest.$ac_ext 4146cat >>conftest.$ac_ext <<_ACEOF 4147/* end confdefs.h. */ 4148 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157rm -f conftest.$ac_objext 4158if { (ac_try="$ac_compile" 4159case "(($ac_try" in 4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4161 *) ac_try_echo=$ac_try;; 4162esac 4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4164 (eval "$ac_compile") 2>conftest.er1 4165 ac_status=$? 4166 grep -v '^ *+' conftest.er1 >conftest.err 4167 rm -f conftest.er1 4168 cat conftest.err >&5 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } && { 4171 test -z "$ac_c_werror_flag" || 4172 test ! -s conftest.err 4173 } && test -s conftest.$ac_objext; then 4174 : 4175else 4176 echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179 ac_c_werror_flag=$ac_save_c_werror_flag 4180 CFLAGS="-g" 4181 cat >conftest.$ac_ext <<_ACEOF 4182/* confdefs.h. */ 4183_ACEOF 4184cat confdefs.h >>conftest.$ac_ext 4185cat >>conftest.$ac_ext <<_ACEOF 4186/* end confdefs.h. */ 4187 4188int 4189main () 4190{ 4191 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196rm -f conftest.$ac_objext 4197if { (ac_try="$ac_compile" 4198case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4203 (eval "$ac_compile") 2>conftest.er1 4204 ac_status=$? 4205 grep -v '^ *+' conftest.er1 >conftest.err 4206 rm -f conftest.er1 4207 cat conftest.err >&5 4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4209 (exit $ac_status); } && { 4210 test -z "$ac_c_werror_flag" || 4211 test ! -s conftest.err 4212 } && test -s conftest.$ac_objext; then 4213 ac_cv_prog_cc_g=yes 4214else 4215 echo "$as_me: failed program was:" >&5 4216sed 's/^/| /' conftest.$ac_ext >&5 4217 4218 4219fi 4220 4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4222fi 4223 4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4225fi 4226 4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228 ac_c_werror_flag=$ac_save_c_werror_flag 4229fi 4230{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4231echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4232if test "$ac_test_CFLAGS" = set; then 4233 CFLAGS=$ac_save_CFLAGS 4234elif test $ac_cv_prog_cc_g = yes; then 4235 if test "$GCC" = yes; then 4236 CFLAGS="-g -O2" 4237 else 4238 CFLAGS="-g" 4239 fi 4240else 4241 if test "$GCC" = yes; then 4242 CFLAGS="-O2" 4243 else 4244 CFLAGS= 4245 fi 4246fi 4247{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4248echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4249if test "${ac_cv_prog_cc_c89+set}" = set; then 4250 echo $ECHO_N "(cached) $ECHO_C" >&6 4251else 4252 ac_cv_prog_cc_c89=no 4253ac_save_CC=$CC 4254cat >conftest.$ac_ext <<_ACEOF 4255/* confdefs.h. */ 4256_ACEOF 4257cat confdefs.h >>conftest.$ac_ext 4258cat >>conftest.$ac_ext <<_ACEOF 4259/* end confdefs.h. */ 4260#include <stdarg.h> 4261#include <stdio.h> 4262#include <sys/types.h> 4263#include <sys/stat.h> 4264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4265struct buf { int x; }; 4266FILE * (*rcsopen) (struct buf *, struct stat *, int); 4267static char *e (p, i) 4268 char **p; 4269 int i; 4270{ 4271 return p[i]; 4272} 4273static char *f (char * (*g) (char **, int), char **p, ...) 4274{ 4275 char *s; 4276 va_list v; 4277 va_start (v,p); 4278 s = g (p, va_arg (v,int)); 4279 va_end (v); 4280 return s; 4281} 4282 4283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4284 function prototypes and stuff, but not '\xHH' hex character constants. 4285 These don't provoke an error unfortunately, instead are silently treated 4286 as 'x'. The following induces an error, until -std is added to get 4287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4288 array size at least. It's necessary to write '\x00'==0 to get something 4289 that's true only with -std. */ 4290int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4291 4292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4293 inside strings and character constants. */ 4294#define FOO(x) 'x' 4295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4296 4297int test (int i, double x); 4298struct s1 {int (*f) (int a);}; 4299struct s2 {int (*f) (double a);}; 4300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4301int argc; 4302char **argv; 4303int 4304main () 4305{ 4306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4313do 4314 CC="$ac_save_CC $ac_arg" 4315 rm -f conftest.$ac_objext 4316if { (ac_try="$ac_compile" 4317case "(($ac_try" in 4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4319 *) ac_try_echo=$ac_try;; 4320esac 4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4322 (eval "$ac_compile") 2>conftest.er1 4323 ac_status=$? 4324 grep -v '^ *+' conftest.er1 >conftest.err 4325 rm -f conftest.er1 4326 cat conftest.err >&5 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); } && { 4329 test -z "$ac_c_werror_flag" || 4330 test ! -s conftest.err 4331 } && test -s conftest.$ac_objext; then 4332 ac_cv_prog_cc_c89=$ac_arg 4333else 4334 echo "$as_me: failed program was:" >&5 4335sed 's/^/| /' conftest.$ac_ext >&5 4336 4337 4338fi 4339 4340rm -f core conftest.err conftest.$ac_objext 4341 test "x$ac_cv_prog_cc_c89" != "xno" && break 4342done 4343rm -f conftest.$ac_ext 4344CC=$ac_save_CC 4345 4346fi 4347# AC_CACHE_VAL 4348case "x$ac_cv_prog_cc_c89" in 4349 x) 4350 { echo "$as_me:$LINENO: result: none needed" >&5 4351echo "${ECHO_T}none needed" >&6; } ;; 4352 xno) 4353 { echo "$as_me:$LINENO: result: unsupported" >&5 4354echo "${ECHO_T}unsupported" >&6; } ;; 4355 *) 4356 CC="$CC $ac_cv_prog_cc_c89" 4357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4358echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4359esac 4360 4361 4362ac_ext=c 4363ac_cpp='$CPP $CPPFLAGS' 4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4366ac_compiler_gnu=$ac_cv_c_compiler_gnu 4367 4368depcc="$CC" am_compiler_list= 4369 4370{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4371echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4372if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4373 echo $ECHO_N "(cached) $ECHO_C" >&6 4374else 4375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4376 # We make a subdir and do the tests there. Otherwise we can end up 4377 # making bogus files that we don't know about and never remove. For 4378 # instance it was reported that on HP-UX the gcc test will end up 4379 # making a dummy file named `D' -- because `-MD' means `put the output 4380 # in D'. 4381 mkdir conftest.dir 4382 # Copy depcomp to subdir because otherwise we won't find it if we're 4383 # using a relative directory. 4384 cp "$am_depcomp" conftest.dir 4385 cd conftest.dir 4386 # We will build objects and dependencies in a subdirectory because 4387 # it helps to detect inapplicable dependency modes. For instance 4388 # both Tru64's cc and ICC support -MD to output dependencies as a 4389 # side effect of compilation, but ICC will put the dependencies in 4390 # the current directory while Tru64 will put them in the object 4391 # directory. 4392 mkdir sub 4393 4394 am_cv_CC_dependencies_compiler_type=none 4395 if test "$am_compiler_list" = ""; then 4396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4397 fi 4398 for depmode in $am_compiler_list; do 4399 # Setup a source with many dependencies, because some compilers 4400 # like to wrap large dependency lists on column 80 (with \), and 4401 # we should not choose a depcomp mode which is confused by this. 4402 # 4403 # We need to recreate these files for each test, as the compiler may 4404 # overwrite some of them when testing with obscure command lines. 4405 # This happens at least with the AIX C compiler. 4406 : > sub/conftest.c 4407 for i in 1 2 3 4 5 6; do 4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4409 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4410 # Solaris 8's {/usr,}/bin/sh. 4411 touch sub/conftst$i.h 4412 done 4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4414 4415 case $depmode in 4416 nosideeffect) 4417 # after this tag, mechanisms are not by side-effect, so they'll 4418 # only be used when explicitly requested 4419 if test "x$enable_dependency_tracking" = xyes; then 4420 continue 4421 else 4422 break 4423 fi 4424 ;; 4425 none) break ;; 4426 esac 4427 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4428 # mode. It turns out that the SunPro C++ compiler does not properly 4429 # handle `-M -o', and we need to detect this. 4430 if depmode=$depmode \ 4431 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4433 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4434 >/dev/null 2>conftest.err && 4435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4436 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4438 # icc doesn't choke on unknown options, it will just issue warnings 4439 # or remarks (even with -Werror). So we grep stderr for any message 4440 # that says an option was ignored or not supported. 4441 # When given -MP, icc 7.0 and 7.1 complain thusly: 4442 # icc: Command line warning: ignoring option '-M'; no argument required 4443 # The diagnosis changed in icc 8.0: 4444 # icc: Command line remark: option '-MP' not supported 4445 if (grep 'ignoring option' conftest.err || 4446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4447 am_cv_CC_dependencies_compiler_type=$depmode 4448 break 4449 fi 4450 fi 4451 done 4452 4453 cd .. 4454 rm -rf conftest.dir 4455else 4456 am_cv_CC_dependencies_compiler_type=none 4457fi 4458 4459fi 4460{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4461echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4462CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4463 4464 4465 4466if 4467 test "x$enable_dependency_tracking" != xno \ 4468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4469 am__fastdepCC_TRUE= 4470 am__fastdepCC_FALSE='#' 4471else 4472 am__fastdepCC_TRUE='#' 4473 am__fastdepCC_FALSE= 4474fi 4475 4476 4477{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4478echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4479if test "${lt_cv_path_SED+set}" = set; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481else 4482 # Loop through the user's path and test for sed and gsed. 4483# Then use that list of sed's as ones to test for truncation. 4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for lt_ac_prog in sed gsed; do 4490 for ac_exec_ext in '' $ac_executable_extensions; do 4491 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4492 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4493 fi 4494 done 4495 done 4496done 4497lt_ac_max=0 4498lt_ac_count=0 4499# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4500# along with /bin/sed that truncates output. 4501for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4502 test ! -f $lt_ac_sed && continue 4503 cat /dev/null > conftest.in 4504 lt_ac_count=0 4505 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4506 # Check for GNU sed and select it if it is found. 4507 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4508 lt_cv_path_SED=$lt_ac_sed 4509 break 4510 fi 4511 while true; do 4512 cat conftest.in conftest.in >conftest.tmp 4513 mv conftest.tmp conftest.in 4514 cp conftest.in conftest.nl 4515 echo >>conftest.nl 4516 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4517 cmp -s conftest.out conftest.nl || break 4518 # 10000 chars as input seems more than enough 4519 test $lt_ac_count -gt 10 && break 4520 lt_ac_count=`expr $lt_ac_count + 1` 4521 if test $lt_ac_count -gt $lt_ac_max; then 4522 lt_ac_max=$lt_ac_count 4523 lt_cv_path_SED=$lt_ac_sed 4524 fi 4525 done 4526done 4527 4528fi 4529 4530SED=$lt_cv_path_SED 4531{ echo "$as_me:$LINENO: result: $SED" >&5 4532echo "${ECHO_T}$SED" >&6; } 4533 4534{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4535echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4536if test "${ac_cv_path_GREP+set}" = set; then 4537 echo $ECHO_N "(cached) $ECHO_C" >&6 4538else 4539 # Extract the first word of "grep ggrep" to use in msg output 4540if test -z "$GREP"; then 4541set dummy grep ggrep; ac_prog_name=$2 4542if test "${ac_cv_path_GREP+set}" = set; then 4543 echo $ECHO_N "(cached) $ECHO_C" >&6 4544else 4545 ac_path_GREP_found=false 4546# Loop through the user's path and test for each of PROGNAME-LIST 4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4549do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_prog in grep ggrep; do 4553 for ac_exec_ext in '' $ac_executable_extensions; do 4554 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4555 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4556 # Check for GNU ac_path_GREP and select it if it is found. 4557 # Check for GNU $ac_path_GREP 4558case `"$ac_path_GREP" --version 2>&1` in 4559*GNU*) 4560 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4561*) 4562 ac_count=0 4563 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4564 while : 4565 do 4566 cat "conftest.in" "conftest.in" >"conftest.tmp" 4567 mv "conftest.tmp" "conftest.in" 4568 cp "conftest.in" "conftest.nl" 4569 echo 'GREP' >> "conftest.nl" 4570 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4572 ac_count=`expr $ac_count + 1` 4573 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4574 # Best one so far, save it but keep looking for a better one 4575 ac_cv_path_GREP="$ac_path_GREP" 4576 ac_path_GREP_max=$ac_count 4577 fi 4578 # 10*(2^10) chars as input seems more than enough 4579 test $ac_count -gt 10 && break 4580 done 4581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4582esac 4583 4584 4585 $ac_path_GREP_found && break 3 4586 done 4587done 4588 4589done 4590IFS=$as_save_IFS 4591 4592 4593fi 4594 4595GREP="$ac_cv_path_GREP" 4596if test -z "$GREP"; then 4597 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4598echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4599 { (exit 1); exit 1; }; } 4600fi 4601 4602else 4603 ac_cv_path_GREP=$GREP 4604fi 4605 4606 4607fi 4608{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4609echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4610 GREP="$ac_cv_path_GREP" 4611 4612 4613{ echo "$as_me:$LINENO: checking for egrep" >&5 4614echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4615if test "${ac_cv_path_EGREP+set}" = set; then 4616 echo $ECHO_N "(cached) $ECHO_C" >&6 4617else 4618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4619 then ac_cv_path_EGREP="$GREP -E" 4620 else 4621 # Extract the first word of "egrep" to use in msg output 4622if test -z "$EGREP"; then 4623set dummy egrep; ac_prog_name=$2 4624if test "${ac_cv_path_EGREP+set}" = set; then 4625 echo $ECHO_N "(cached) $ECHO_C" >&6 4626else 4627 ac_path_EGREP_found=false 4628# Loop through the user's path and test for each of PROGNAME-LIST 4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4631do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_prog in egrep; do 4635 for ac_exec_ext in '' $ac_executable_extensions; do 4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4638 # Check for GNU ac_path_EGREP and select it if it is found. 4639 # Check for GNU $ac_path_EGREP 4640case `"$ac_path_EGREP" --version 2>&1` in 4641*GNU*) 4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4643*) 4644 ac_count=0 4645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4646 while : 4647 do 4648 cat "conftest.in" "conftest.in" >"conftest.tmp" 4649 mv "conftest.tmp" "conftest.in" 4650 cp "conftest.in" "conftest.nl" 4651 echo 'EGREP' >> "conftest.nl" 4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4654 ac_count=`expr $ac_count + 1` 4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4656 # Best one so far, save it but keep looking for a better one 4657 ac_cv_path_EGREP="$ac_path_EGREP" 4658 ac_path_EGREP_max=$ac_count 4659 fi 4660 # 10*(2^10) chars as input seems more than enough 4661 test $ac_count -gt 10 && break 4662 done 4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4664esac 4665 4666 4667 $ac_path_EGREP_found && break 3 4668 done 4669done 4670 4671done 4672IFS=$as_save_IFS 4673 4674 4675fi 4676 4677EGREP="$ac_cv_path_EGREP" 4678if test -z "$EGREP"; then 4679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4680echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4681 { (exit 1); exit 1; }; } 4682fi 4683 4684else 4685 ac_cv_path_EGREP=$EGREP 4686fi 4687 4688 4689 fi 4690fi 4691{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4692echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4693 EGREP="$ac_cv_path_EGREP" 4694 4695 4696 4697# Check whether --with-gnu-ld was given. 4698if test "${with_gnu_ld+set}" = set; then 4699 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4700else 4701 with_gnu_ld=no 4702fi 4703 4704ac_prog=ld 4705if test "$GCC" = yes; then 4706 # Check if gcc -print-prog-name=ld gives a path. 4707 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4708echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4709 case $host in 4710 *-*-mingw*) 4711 # gcc leaves a trailing carriage return which upsets mingw 4712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4713 *) 4714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4715 esac 4716 case $ac_prog in 4717 # Accept absolute paths. 4718 [\\/]* | ?:[\\/]*) 4719 re_direlt='/[^/][^/]*/\.\./' 4720 # Canonicalize the pathname of ld 4721 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4723 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4724 done 4725 test -z "$LD" && LD="$ac_prog" 4726 ;; 4727 "") 4728 # If it fails, then pretend we aren't using GCC. 4729 ac_prog=ld 4730 ;; 4731 *) 4732 # If it is relative, then search for the first ld in PATH. 4733 with_gnu_ld=unknown 4734 ;; 4735 esac 4736elif test "$with_gnu_ld" = yes; then 4737 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4738echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4739else 4740 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4741echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4742fi 4743if test "${lt_cv_path_LD+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745else 4746 if test -z "$LD"; then 4747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4748 for ac_dir in $PATH; do 4749 IFS="$lt_save_ifs" 4750 test -z "$ac_dir" && ac_dir=. 4751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4752 lt_cv_path_LD="$ac_dir/$ac_prog" 4753 # Check to see if the program is GNU ld. I'd rather use --version, 4754 # but apparently some variants of GNU ld only accept -v. 4755 # Break only if it was the GNU/non-GNU ld that we prefer. 4756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4757 *GNU* | *'with BFD'*) 4758 test "$with_gnu_ld" != no && break 4759 ;; 4760 *) 4761 test "$with_gnu_ld" != yes && break 4762 ;; 4763 esac 4764 fi 4765 done 4766 IFS="$lt_save_ifs" 4767else 4768 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4769fi 4770fi 4771 4772LD="$lt_cv_path_LD" 4773if test -n "$LD"; then 4774 { echo "$as_me:$LINENO: result: $LD" >&5 4775echo "${ECHO_T}$LD" >&6; } 4776else 4777 { echo "$as_me:$LINENO: result: no" >&5 4778echo "${ECHO_T}no" >&6; } 4779fi 4780test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4781echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4782 { (exit 1); exit 1; }; } 4783{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4784echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4785if test "${lt_cv_prog_gnu_ld+set}" = set; then 4786 echo $ECHO_N "(cached) $ECHO_C" >&6 4787else 4788 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4789case `$LD -v 2>&1 </dev/null` in 4790*GNU* | *'with BFD'*) 4791 lt_cv_prog_gnu_ld=yes 4792 ;; 4793*) 4794 lt_cv_prog_gnu_ld=no 4795 ;; 4796esac 4797fi 4798{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4799echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4800with_gnu_ld=$lt_cv_prog_gnu_ld 4801 4802 4803{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4804echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4805if test "${lt_cv_ld_reload_flag+set}" = set; then 4806 echo $ECHO_N "(cached) $ECHO_C" >&6 4807else 4808 lt_cv_ld_reload_flag='-r' 4809fi 4810{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4811echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4812reload_flag=$lt_cv_ld_reload_flag 4813case $reload_flag in 4814"" | " "*) ;; 4815*) reload_flag=" $reload_flag" ;; 4816esac 4817reload_cmds='$LD$reload_flag -o $output$reload_objs' 4818case $host_os in 4819 darwin*) 4820 if test "$GCC" = yes; then 4821 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4822 else 4823 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4824 fi 4825 ;; 4826esac 4827 4828{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4829echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4830if test "${lt_cv_path_NM+set}" = set; then 4831 echo $ECHO_N "(cached) $ECHO_C" >&6 4832else 4833 if test -n "$NM"; then 4834 # Let the user override the test. 4835 lt_cv_path_NM="$NM" 4836else 4837 lt_nm_to_check="${ac_tool_prefix}nm" 4838 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4839 lt_nm_to_check="$lt_nm_to_check nm" 4840 fi 4841 for lt_tmp_nm in $lt_nm_to_check; do 4842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4843 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4844 IFS="$lt_save_ifs" 4845 test -z "$ac_dir" && ac_dir=. 4846 tmp_nm="$ac_dir/$lt_tmp_nm" 4847 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4848 # Check to see if the nm accepts a BSD-compat flag. 4849 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4850 # nm: unknown option "B" ignored 4851 # Tru64's nm complains that /dev/null is an invalid object file 4852 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4853 */dev/null* | *'Invalid file or object type'*) 4854 lt_cv_path_NM="$tmp_nm -B" 4855 break 4856 ;; 4857 *) 4858 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4859 */dev/null*) 4860 lt_cv_path_NM="$tmp_nm -p" 4861 break 4862 ;; 4863 *) 4864 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4865 continue # so that we can try to find one that supports BSD flags 4866 ;; 4867 esac 4868 ;; 4869 esac 4870 fi 4871 done 4872 IFS="$lt_save_ifs" 4873 done 4874 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4875fi 4876fi 4877{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4878echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4879NM="$lt_cv_path_NM" 4880 4881{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4882echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4883LN_S=$as_ln_s 4884if test "$LN_S" = "ln -s"; then 4885 { echo "$as_me:$LINENO: result: yes" >&5 4886echo "${ECHO_T}yes" >&6; } 4887else 4888 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4889echo "${ECHO_T}no, using $LN_S" >&6; } 4890fi 4891 4892{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4893echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4894if test "${lt_cv_deplibs_check_method+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 lt_cv_file_magic_cmd='$MAGIC_CMD' 4898lt_cv_file_magic_test_file= 4899lt_cv_deplibs_check_method='unknown' 4900# Need to set the preceding variable on all platforms that support 4901# interlibrary dependencies. 4902# 'none' -- dependencies not supported. 4903# `unknown' -- same as none, but documents that we really don't know. 4904# 'pass_all' -- all dependencies passed with no checks. 4905# 'test_compile' -- check by making test program. 4906# 'file_magic [[regex]]' -- check by looking for files in library path 4907# which responds to the $file_magic_cmd with a given extended regex. 4908# If you have `file' or equivalent on your system and you're not sure 4909# whether `pass_all' will *always* work, you probably want this one. 4910 4911case $host_os in 4912aix4* | aix5*) 4913 lt_cv_deplibs_check_method=pass_all 4914 ;; 4915 4916beos*) 4917 lt_cv_deplibs_check_method=pass_all 4918 ;; 4919 4920bsdi[45]*) 4921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4922 lt_cv_file_magic_cmd='/usr/bin/file -L' 4923 lt_cv_file_magic_test_file=/shlib/libc.so 4924 ;; 4925 4926cygwin*) 4927 # func_win32_libid is a shell function defined in ltmain.sh 4928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4929 lt_cv_file_magic_cmd='func_win32_libid' 4930 ;; 4931 4932mingw* | pw32*) 4933 # Base MSYS/MinGW do not provide the 'file' command needed by 4934 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4935 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4936 lt_cv_file_magic_cmd='$OBJDUMP -f' 4937 ;; 4938 4939darwin* | rhapsody*) 4940 lt_cv_deplibs_check_method=pass_all 4941 ;; 4942 4943freebsd* | dragonfly*) 4944 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4945 case $host_cpu in 4946 i*86 ) 4947 # Not sure whether the presence of OpenBSD here was a mistake. 4948 # Let's accept both of them until this is cleared up. 4949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4950 lt_cv_file_magic_cmd=/usr/bin/file 4951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4952 ;; 4953 esac 4954 else 4955 lt_cv_deplibs_check_method=pass_all 4956 fi 4957 ;; 4958 4959gnu*) 4960 lt_cv_deplibs_check_method=pass_all 4961 ;; 4962 4963hpux10.20* | hpux11*) 4964 lt_cv_file_magic_cmd=/usr/bin/file 4965 case $host_cpu in 4966 ia64*) 4967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4969 ;; 4970 hppa*64*) 4971 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]' 4972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4973 ;; 4974 *) 4975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4976 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4977 ;; 4978 esac 4979 ;; 4980 4981interix3*) 4982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4984 ;; 4985 4986irix5* | irix6* | nonstopux*) 4987 case $LD in 4988 *-32|*"-32 ") libmagic=32-bit;; 4989 *-n32|*"-n32 ") libmagic=N32;; 4990 *-64|*"-64 ") libmagic=64-bit;; 4991 *) libmagic=never-match;; 4992 esac 4993 lt_cv_deplibs_check_method=pass_all 4994 ;; 4995 4996# This must be Linux ELF. 4997linux* | k*bsd*-gnu) 4998 lt_cv_deplibs_check_method=pass_all 4999 ;; 5000 5001netbsd* | netbsdelf*-gnu) 5002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5004 else 5005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5006 fi 5007 ;; 5008 5009newos6*) 5010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5011 lt_cv_file_magic_cmd=/usr/bin/file 5012 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5013 ;; 5014 5015nto-qnx*) 5016 lt_cv_deplibs_check_method=unknown 5017 ;; 5018 5019openbsd*) 5020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5022 else 5023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5024 fi 5025 ;; 5026 5027osf3* | osf4* | osf5*) 5028 lt_cv_deplibs_check_method=pass_all 5029 ;; 5030 5031solaris*) 5032 lt_cv_deplibs_check_method=pass_all 5033 ;; 5034 5035sysv4 | sysv4.3*) 5036 case $host_vendor in 5037 motorola) 5038 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]' 5039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5040 ;; 5041 ncr) 5042 lt_cv_deplibs_check_method=pass_all 5043 ;; 5044 sequent) 5045 lt_cv_file_magic_cmd='/bin/file' 5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5047 ;; 5048 sni) 5049 lt_cv_file_magic_cmd='/bin/file' 5050 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5051 lt_cv_file_magic_test_file=/lib/libc.so 5052 ;; 5053 siemens) 5054 lt_cv_deplibs_check_method=pass_all 5055 ;; 5056 pc) 5057 lt_cv_deplibs_check_method=pass_all 5058 ;; 5059 esac 5060 ;; 5061 5062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5063 lt_cv_deplibs_check_method=pass_all 5064 ;; 5065esac 5066 5067fi 5068{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5069echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5070file_magic_cmd=$lt_cv_file_magic_cmd 5071deplibs_check_method=$lt_cv_deplibs_check_method 5072test -z "$deplibs_check_method" && deplibs_check_method=unknown 5073 5074 5075 5076 5077# If no C compiler was specified, use CC. 5078LTCC=${LTCC-"$CC"} 5079 5080# If no C compiler flags were specified, use CFLAGS. 5081LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5082 5083# Allow CC to be a program name with arguments. 5084compiler=$CC 5085 5086 5087# Check whether --enable-libtool-lock was given. 5088if test "${enable_libtool_lock+set}" = set; then 5089 enableval=$enable_libtool_lock; 5090fi 5091 5092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5093 5094# Some flags need to be propagated to the compiler or linker for good 5095# libtool support. 5096case $host in 5097ia64-*-hpux*) 5098 # Find out which ABI we are using. 5099 echo 'int i;' > conftest.$ac_ext 5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5101 (eval $ac_compile) 2>&5 5102 ac_status=$? 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104 (exit $ac_status); }; then 5105 case `/usr/bin/file conftest.$ac_objext` in 5106 *ELF-32*) 5107 HPUX_IA64_MODE="32" 5108 ;; 5109 *ELF-64*) 5110 HPUX_IA64_MODE="64" 5111 ;; 5112 esac 5113 fi 5114 rm -rf conftest* 5115 ;; 5116*-*-irix6*) 5117 # Find out which ABI we are using. 5118 echo '#line 5118 "configure"' > conftest.$ac_ext 5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5120 (eval $ac_compile) 2>&5 5121 ac_status=$? 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); }; then 5124 if test "$lt_cv_prog_gnu_ld" = yes; then 5125 case `/usr/bin/file conftest.$ac_objext` in 5126 *32-bit*) 5127 LD="${LD-ld} -melf32bsmip" 5128 ;; 5129 *N32*) 5130 LD="${LD-ld} -melf32bmipn32" 5131 ;; 5132 *64-bit*) 5133 LD="${LD-ld} -melf64bmip" 5134 ;; 5135 esac 5136 else 5137 case `/usr/bin/file conftest.$ac_objext` in 5138 *32-bit*) 5139 LD="${LD-ld} -32" 5140 ;; 5141 *N32*) 5142 LD="${LD-ld} -n32" 5143 ;; 5144 *64-bit*) 5145 LD="${LD-ld} -64" 5146 ;; 5147 esac 5148 fi 5149 fi 5150 rm -rf conftest* 5151 ;; 5152 5153x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5154 # Find out which ABI we are using. 5155 echo 'int i;' > conftest.$ac_ext 5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5157 (eval $ac_compile) 2>&5 5158 ac_status=$? 5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5160 (exit $ac_status); }; then 5161 case `/usr/bin/file conftest.o` in 5162 *32-bit*) 5163 case $host in 5164 x86_64-*linux*) 5165 LD="${LD-ld} -m elf_i386" 5166 ;; 5167 ppc64-*linux*|powerpc64-*linux*) 5168 LD="${LD-ld} -m elf32ppclinux" 5169 ;; 5170 s390x-*linux*) 5171 LD="${LD-ld} -m elf_s390" 5172 ;; 5173 sparc64-*linux*) 5174 LD="${LD-ld} -m elf32_sparc" 5175 ;; 5176 esac 5177 ;; 5178 *64-bit*) 5179 case $host in 5180 x86_64-*linux*) 5181 LD="${LD-ld} -m elf_x86_64" 5182 ;; 5183 ppc*-*linux*|powerpc*-*linux*) 5184 LD="${LD-ld} -m elf64ppc" 5185 ;; 5186 s390*-*linux*) 5187 LD="${LD-ld} -m elf64_s390" 5188 ;; 5189 sparc*-*linux*) 5190 LD="${LD-ld} -m elf64_sparc" 5191 ;; 5192 esac 5193 ;; 5194 esac 5195 fi 5196 rm -rf conftest* 5197 ;; 5198 5199*-*-sco3.2v5*) 5200 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5201 SAVE_CFLAGS="$CFLAGS" 5202 CFLAGS="$CFLAGS -belf" 5203 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5204echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5205if test "${lt_cv_cc_needs_belf+set}" = set; then 5206 echo $ECHO_N "(cached) $ECHO_C" >&6 5207else 5208 ac_ext=c 5209ac_cpp='$CPP $CPPFLAGS' 5210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5212ac_compiler_gnu=$ac_cv_c_compiler_gnu 5213 5214 cat >conftest.$ac_ext <<_ACEOF 5215/* confdefs.h. */ 5216_ACEOF 5217cat confdefs.h >>conftest.$ac_ext 5218cat >>conftest.$ac_ext <<_ACEOF 5219/* end confdefs.h. */ 5220 5221int 5222main () 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229rm -f conftest.$ac_objext conftest$ac_exeext 5230if { (ac_try="$ac_link" 5231case "(($ac_try" in 5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5233 *) ac_try_echo=$ac_try;; 5234esac 5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5236 (eval "$ac_link") 2>conftest.er1 5237 ac_status=$? 5238 grep -v '^ *+' conftest.er1 >conftest.err 5239 rm -f conftest.er1 5240 cat conftest.err >&5 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); } && { 5243 test -z "$ac_c_werror_flag" || 5244 test ! -s conftest.err 5245 } && test -s conftest$ac_exeext && 5246 $as_test_x conftest$ac_exeext; then 5247 lt_cv_cc_needs_belf=yes 5248else 5249 echo "$as_me: failed program was:" >&5 5250sed 's/^/| /' conftest.$ac_ext >&5 5251 5252 lt_cv_cc_needs_belf=no 5253fi 5254 5255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5256 conftest$ac_exeext conftest.$ac_ext 5257 ac_ext=c 5258ac_cpp='$CPP $CPPFLAGS' 5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5261ac_compiler_gnu=$ac_cv_c_compiler_gnu 5262 5263fi 5264{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5265echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5266 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5268 CFLAGS="$SAVE_CFLAGS" 5269 fi 5270 ;; 5271sparc*-*solaris*) 5272 # Find out which ABI we are using. 5273 echo 'int i;' > conftest.$ac_ext 5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5275 (eval $ac_compile) 2>&5 5276 ac_status=$? 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); }; then 5279 case `/usr/bin/file conftest.o` in 5280 *64-bit*) 5281 case $lt_cv_prog_gnu_ld in 5282 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5283 *) LD="${LD-ld} -64" ;; 5284 esac 5285 ;; 5286 esac 5287 fi 5288 rm -rf conftest* 5289 ;; 5290 5291*-*-cygwin* | *-*-mingw* | *-*-pw32*) 5292 if test -n "$ac_tool_prefix"; then 5293 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5294set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5295{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5297if test "${ac_cv_prog_DLLTOOL+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299else 5300 if test -n "$DLLTOOL"; then 5301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5302else 5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5310 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315done 5316IFS=$as_save_IFS 5317 5318fi 5319fi 5320DLLTOOL=$ac_cv_prog_DLLTOOL 5321if test -n "$DLLTOOL"; then 5322 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 5323echo "${ECHO_T}$DLLTOOL" >&6; } 5324else 5325 { echo "$as_me:$LINENO: result: no" >&5 5326echo "${ECHO_T}no" >&6; } 5327fi 5328 5329 5330fi 5331if test -z "$ac_cv_prog_DLLTOOL"; then 5332 ac_ct_DLLTOOL=$DLLTOOL 5333 # Extract the first word of "dlltool", so it can be a program name with args. 5334set dummy dlltool; ac_word=$2 5335{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5337if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 5338 echo $ECHO_N "(cached) $ECHO_C" >&6 5339else 5340 if test -n "$ac_ct_DLLTOOL"; then 5341 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5342else 5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344for as_dir in $PATH 5345do 5346 IFS=$as_save_IFS 5347 test -z "$as_dir" && as_dir=. 5348 for ac_exec_ext in '' $ac_executable_extensions; do 5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5350 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5352 break 2 5353 fi 5354done 5355done 5356IFS=$as_save_IFS 5357 5358fi 5359fi 5360ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5361if test -n "$ac_ct_DLLTOOL"; then 5362 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 5363echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 5364else 5365 { echo "$as_me:$LINENO: result: no" >&5 5366echo "${ECHO_T}no" >&6; } 5367fi 5368 5369 if test "x$ac_ct_DLLTOOL" = x; then 5370 DLLTOOL="false" 5371 else 5372 case $cross_compiling:$ac_tool_warned in 5373yes:) 5374{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5375whose name does not start with the host triplet. If you think this 5376configuration is useful to you, please write to autoconf@gnu.org." >&5 5377echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5378whose name does not start with the host triplet. If you think this 5379configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5380ac_tool_warned=yes ;; 5381esac 5382 DLLTOOL=$ac_ct_DLLTOOL 5383 fi 5384else 5385 DLLTOOL="$ac_cv_prog_DLLTOOL" 5386fi 5387 5388 if test -n "$ac_tool_prefix"; then 5389 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5390set dummy ${ac_tool_prefix}as; ac_word=$2 5391{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5393if test "${ac_cv_prog_AS+set}" = set; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 5395else 5396 if test -n "$AS"; then 5397 ac_cv_prog_AS="$AS" # Let the user override the test. 5398else 5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5400for as_dir in $PATH 5401do 5402 IFS=$as_save_IFS 5403 test -z "$as_dir" && as_dir=. 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5406 ac_cv_prog_AS="${ac_tool_prefix}as" 5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5408 break 2 5409 fi 5410done 5411done 5412IFS=$as_save_IFS 5413 5414fi 5415fi 5416AS=$ac_cv_prog_AS 5417if test -n "$AS"; then 5418 { echo "$as_me:$LINENO: result: $AS" >&5 5419echo "${ECHO_T}$AS" >&6; } 5420else 5421 { echo "$as_me:$LINENO: result: no" >&5 5422echo "${ECHO_T}no" >&6; } 5423fi 5424 5425 5426fi 5427if test -z "$ac_cv_prog_AS"; then 5428 ac_ct_AS=$AS 5429 # Extract the first word of "as", so it can be a program name with args. 5430set dummy as; ac_word=$2 5431{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5433if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 5434 echo $ECHO_N "(cached) $ECHO_C" >&6 5435else 5436 if test -n "$ac_ct_AS"; then 5437 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5438else 5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5446 ac_cv_prog_ac_ct_AS="as" 5447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450done 5451done 5452IFS=$as_save_IFS 5453 5454fi 5455fi 5456ac_ct_AS=$ac_cv_prog_ac_ct_AS 5457if test -n "$ac_ct_AS"; then 5458 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 5459echo "${ECHO_T}$ac_ct_AS" >&6; } 5460else 5461 { echo "$as_me:$LINENO: result: no" >&5 5462echo "${ECHO_T}no" >&6; } 5463fi 5464 5465 if test "x$ac_ct_AS" = x; then 5466 AS="false" 5467 else 5468 case $cross_compiling:$ac_tool_warned in 5469yes:) 5470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5471whose name does not start with the host triplet. If you think this 5472configuration is useful to you, please write to autoconf@gnu.org." >&5 5473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5474whose name does not start with the host triplet. If you think this 5475configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5476ac_tool_warned=yes ;; 5477esac 5478 AS=$ac_ct_AS 5479 fi 5480else 5481 AS="$ac_cv_prog_AS" 5482fi 5483 5484 if test -n "$ac_tool_prefix"; then 5485 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5486set dummy ${ac_tool_prefix}objdump; ac_word=$2 5487{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5489if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5490 echo $ECHO_N "(cached) $ECHO_C" >&6 5491else 5492 if test -n "$OBJDUMP"; then 5493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5494else 5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496for as_dir in $PATH 5497do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5502 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512OBJDUMP=$ac_cv_prog_OBJDUMP 5513if test -n "$OBJDUMP"; then 5514 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5515echo "${ECHO_T}$OBJDUMP" >&6; } 5516else 5517 { echo "$as_me:$LINENO: result: no" >&5 5518echo "${ECHO_T}no" >&6; } 5519fi 5520 5521 5522fi 5523if test -z "$ac_cv_prog_OBJDUMP"; then 5524 ac_ct_OBJDUMP=$OBJDUMP 5525 # Extract the first word of "objdump", so it can be a program name with args. 5526set dummy objdump; ac_word=$2 5527{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5529if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5530 echo $ECHO_N "(cached) $ECHO_C" >&6 5531else 5532 if test -n "$ac_ct_OBJDUMP"; then 5533 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5534else 5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5536for as_dir in $PATH 5537do 5538 IFS=$as_save_IFS 5539 test -z "$as_dir" && as_dir=. 5540 for ac_exec_ext in '' $ac_executable_extensions; do 5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5542 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5544 break 2 5545 fi 5546done 5547done 5548IFS=$as_save_IFS 5549 5550fi 5551fi 5552ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5553if test -n "$ac_ct_OBJDUMP"; then 5554 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5555echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 5556else 5557 { echo "$as_me:$LINENO: result: no" >&5 5558echo "${ECHO_T}no" >&6; } 5559fi 5560 5561 if test "x$ac_ct_OBJDUMP" = x; then 5562 OBJDUMP="false" 5563 else 5564 case $cross_compiling:$ac_tool_warned in 5565yes:) 5566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5567whose name does not start with the host triplet. If you think this 5568configuration is useful to you, please write to autoconf@gnu.org." >&5 5569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5570whose name does not start with the host triplet. If you think this 5571configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5572ac_tool_warned=yes ;; 5573esac 5574 OBJDUMP=$ac_ct_OBJDUMP 5575 fi 5576else 5577 OBJDUMP="$ac_cv_prog_OBJDUMP" 5578fi 5579 5580 ;; 5581 5582esac 5583 5584need_locks="$enable_libtool_lock" 5585 5586 5587ac_ext=c 5588ac_cpp='$CPP $CPPFLAGS' 5589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5591ac_compiler_gnu=$ac_cv_c_compiler_gnu 5592{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5593echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5594# On Suns, sometimes $CPP names a directory. 5595if test -n "$CPP" && test -d "$CPP"; then 5596 CPP= 5597fi 5598if test -z "$CPP"; then 5599 if test "${ac_cv_prog_CPP+set}" = set; then 5600 echo $ECHO_N "(cached) $ECHO_C" >&6 5601else 5602 # Double quotes because CPP needs to be expanded 5603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5604 do 5605 ac_preproc_ok=false 5606for ac_c_preproc_warn_flag in '' yes 5607do 5608 # Use a header file that comes with gcc, so configuring glibc 5609 # with a fresh cross-compiler works. 5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5611 # <limits.h> exists even on freestanding compilers. 5612 # On the NeXT, cc -E runs the code through the compiler's parser, 5613 # not just through cpp. "Syntax error" is here to catch this case. 5614 cat >conftest.$ac_ext <<_ACEOF 5615/* confdefs.h. */ 5616_ACEOF 5617cat confdefs.h >>conftest.$ac_ext 5618cat >>conftest.$ac_ext <<_ACEOF 5619/* end confdefs.h. */ 5620#ifdef __STDC__ 5621# include <limits.h> 5622#else 5623# include <assert.h> 5624#endif 5625 Syntax error 5626_ACEOF 5627if { (ac_try="$ac_cpp conftest.$ac_ext" 5628case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5634 ac_status=$? 5635 grep -v '^ *+' conftest.er1 >conftest.err 5636 rm -f conftest.er1 5637 cat conftest.err >&5 5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } >/dev/null && { 5640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5641 test ! -s conftest.err 5642 }; then 5643 : 5644else 5645 echo "$as_me: failed program was:" >&5 5646sed 's/^/| /' conftest.$ac_ext >&5 5647 5648 # Broken: fails on valid input. 5649continue 5650fi 5651 5652rm -f conftest.err conftest.$ac_ext 5653 5654 # OK, works on sane cases. Now check whether nonexistent headers 5655 # can be detected and how. 5656 cat >conftest.$ac_ext <<_ACEOF 5657/* confdefs.h. */ 5658_ACEOF 5659cat confdefs.h >>conftest.$ac_ext 5660cat >>conftest.$ac_ext <<_ACEOF 5661/* end confdefs.h. */ 5662#include <ac_nonexistent.h> 5663_ACEOF 5664if { (ac_try="$ac_cpp conftest.$ac_ext" 5665case "(($ac_try" in 5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5667 *) ac_try_echo=$ac_try;; 5668esac 5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5671 ac_status=$? 5672 grep -v '^ *+' conftest.er1 >conftest.err 5673 rm -f conftest.er1 5674 cat conftest.err >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5676 (exit $ac_status); } >/dev/null && { 5677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5678 test ! -s conftest.err 5679 }; then 5680 # Broken: success on invalid input. 5681continue 5682else 5683 echo "$as_me: failed program was:" >&5 5684sed 's/^/| /' conftest.$ac_ext >&5 5685 5686 # Passes both tests. 5687ac_preproc_ok=: 5688break 5689fi 5690 5691rm -f conftest.err conftest.$ac_ext 5692 5693done 5694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5695rm -f conftest.err conftest.$ac_ext 5696if $ac_preproc_ok; then 5697 break 5698fi 5699 5700 done 5701 ac_cv_prog_CPP=$CPP 5702 5703fi 5704 CPP=$ac_cv_prog_CPP 5705else 5706 ac_cv_prog_CPP=$CPP 5707fi 5708{ echo "$as_me:$LINENO: result: $CPP" >&5 5709echo "${ECHO_T}$CPP" >&6; } 5710ac_preproc_ok=false 5711for ac_c_preproc_warn_flag in '' yes 5712do 5713 # Use a header file that comes with gcc, so configuring glibc 5714 # with a fresh cross-compiler works. 5715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5716 # <limits.h> exists even on freestanding compilers. 5717 # On the NeXT, cc -E runs the code through the compiler's parser, 5718 # not just through cpp. "Syntax error" is here to catch this case. 5719 cat >conftest.$ac_ext <<_ACEOF 5720/* confdefs.h. */ 5721_ACEOF 5722cat confdefs.h >>conftest.$ac_ext 5723cat >>conftest.$ac_ext <<_ACEOF 5724/* end confdefs.h. */ 5725#ifdef __STDC__ 5726# include <limits.h> 5727#else 5728# include <assert.h> 5729#endif 5730 Syntax error 5731_ACEOF 5732if { (ac_try="$ac_cpp conftest.$ac_ext" 5733case "(($ac_try" in 5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5735 *) ac_try_echo=$ac_try;; 5736esac 5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5739 ac_status=$? 5740 grep -v '^ *+' conftest.er1 >conftest.err 5741 rm -f conftest.er1 5742 cat conftest.err >&5 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); } >/dev/null && { 5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5746 test ! -s conftest.err 5747 }; then 5748 : 5749else 5750 echo "$as_me: failed program was:" >&5 5751sed 's/^/| /' conftest.$ac_ext >&5 5752 5753 # Broken: fails on valid input. 5754continue 5755fi 5756 5757rm -f conftest.err conftest.$ac_ext 5758 5759 # OK, works on sane cases. Now check whether nonexistent headers 5760 # can be detected and how. 5761 cat >conftest.$ac_ext <<_ACEOF 5762/* confdefs.h. */ 5763_ACEOF 5764cat confdefs.h >>conftest.$ac_ext 5765cat >>conftest.$ac_ext <<_ACEOF 5766/* end confdefs.h. */ 5767#include <ac_nonexistent.h> 5768_ACEOF 5769if { (ac_try="$ac_cpp conftest.$ac_ext" 5770case "(($ac_try" in 5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5772 *) ac_try_echo=$ac_try;; 5773esac 5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5776 ac_status=$? 5777 grep -v '^ *+' conftest.er1 >conftest.err 5778 rm -f conftest.er1 5779 cat conftest.err >&5 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); } >/dev/null && { 5782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5783 test ! -s conftest.err 5784 }; then 5785 # Broken: success on invalid input. 5786continue 5787else 5788 echo "$as_me: failed program was:" >&5 5789sed 's/^/| /' conftest.$ac_ext >&5 5790 5791 # Passes both tests. 5792ac_preproc_ok=: 5793break 5794fi 5795 5796rm -f conftest.err conftest.$ac_ext 5797 5798done 5799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5800rm -f conftest.err conftest.$ac_ext 5801if $ac_preproc_ok; then 5802 : 5803else 5804 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5805See \`config.log' for more details." >&5 5806echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5807See \`config.log' for more details." >&2;} 5808 { (exit 1); exit 1; }; } 5809fi 5810 5811ac_ext=c 5812ac_cpp='$CPP $CPPFLAGS' 5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5815ac_compiler_gnu=$ac_cv_c_compiler_gnu 5816 5817 5818{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5819echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5820if test "${ac_cv_header_stdc+set}" = set; then 5821 echo $ECHO_N "(cached) $ECHO_C" >&6 5822else 5823 cat >conftest.$ac_ext <<_ACEOF 5824/* confdefs.h. */ 5825_ACEOF 5826cat confdefs.h >>conftest.$ac_ext 5827cat >>conftest.$ac_ext <<_ACEOF 5828/* end confdefs.h. */ 5829#include <stdlib.h> 5830#include <stdarg.h> 5831#include <string.h> 5832#include <float.h> 5833 5834int 5835main () 5836{ 5837 5838 ; 5839 return 0; 5840} 5841_ACEOF 5842rm -f conftest.$ac_objext 5843if { (ac_try="$ac_compile" 5844case "(($ac_try" in 5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5846 *) ac_try_echo=$ac_try;; 5847esac 5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5849 (eval "$ac_compile") 2>conftest.er1 5850 ac_status=$? 5851 grep -v '^ *+' conftest.er1 >conftest.err 5852 rm -f conftest.er1 5853 cat conftest.err >&5 5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5855 (exit $ac_status); } && { 5856 test -z "$ac_c_werror_flag" || 5857 test ! -s conftest.err 5858 } && test -s conftest.$ac_objext; then 5859 ac_cv_header_stdc=yes 5860else 5861 echo "$as_me: failed program was:" >&5 5862sed 's/^/| /' conftest.$ac_ext >&5 5863 5864 ac_cv_header_stdc=no 5865fi 5866 5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5868 5869if test $ac_cv_header_stdc = yes; then 5870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5871 cat >conftest.$ac_ext <<_ACEOF 5872/* confdefs.h. */ 5873_ACEOF 5874cat confdefs.h >>conftest.$ac_ext 5875cat >>conftest.$ac_ext <<_ACEOF 5876/* end confdefs.h. */ 5877#include <string.h> 5878 5879_ACEOF 5880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5881 $EGREP "memchr" >/dev/null 2>&1; then 5882 : 5883else 5884 ac_cv_header_stdc=no 5885fi 5886rm -f conftest* 5887 5888fi 5889 5890if test $ac_cv_header_stdc = yes; then 5891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5892 cat >conftest.$ac_ext <<_ACEOF 5893/* confdefs.h. */ 5894_ACEOF 5895cat confdefs.h >>conftest.$ac_ext 5896cat >>conftest.$ac_ext <<_ACEOF 5897/* end confdefs.h. */ 5898#include <stdlib.h> 5899 5900_ACEOF 5901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5902 $EGREP "free" >/dev/null 2>&1; then 5903 : 5904else 5905 ac_cv_header_stdc=no 5906fi 5907rm -f conftest* 5908 5909fi 5910 5911if test $ac_cv_header_stdc = yes; then 5912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5913 if test "$cross_compiling" = yes; then 5914 : 5915else 5916 cat >conftest.$ac_ext <<_ACEOF 5917/* confdefs.h. */ 5918_ACEOF 5919cat confdefs.h >>conftest.$ac_ext 5920cat >>conftest.$ac_ext <<_ACEOF 5921/* end confdefs.h. */ 5922#include <ctype.h> 5923#include <stdlib.h> 5924#if ((' ' & 0x0FF) == 0x020) 5925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5927#else 5928# define ISLOWER(c) \ 5929 (('a' <= (c) && (c) <= 'i') \ 5930 || ('j' <= (c) && (c) <= 'r') \ 5931 || ('s' <= (c) && (c) <= 'z')) 5932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5933#endif 5934 5935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5936int 5937main () 5938{ 5939 int i; 5940 for (i = 0; i < 256; i++) 5941 if (XOR (islower (i), ISLOWER (i)) 5942 || toupper (i) != TOUPPER (i)) 5943 return 2; 5944 return 0; 5945} 5946_ACEOF 5947rm -f conftest$ac_exeext 5948if { (ac_try="$ac_link" 5949case "(($ac_try" in 5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5951 *) ac_try_echo=$ac_try;; 5952esac 5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5954 (eval "$ac_link") 2>&5 5955 ac_status=$? 5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5958 { (case "(($ac_try" in 5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5960 *) ac_try_echo=$ac_try;; 5961esac 5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5963 (eval "$ac_try") 2>&5 5964 ac_status=$? 5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5966 (exit $ac_status); }; }; then 5967 : 5968else 5969 echo "$as_me: program exited with status $ac_status" >&5 5970echo "$as_me: failed program was:" >&5 5971sed 's/^/| /' conftest.$ac_ext >&5 5972 5973( exit $ac_status ) 5974ac_cv_header_stdc=no 5975fi 5976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5977fi 5978 5979 5980fi 5981fi 5982{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5983echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5984if test $ac_cv_header_stdc = yes; then 5985 5986cat >>confdefs.h <<\_ACEOF 5987#define STDC_HEADERS 1 5988_ACEOF 5989 5990fi 5991 5992# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6003 inttypes.h stdint.h unistd.h 6004do 6005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6006{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6009 echo $ECHO_N "(cached) $ECHO_C" >&6 6010else 6011 cat >conftest.$ac_ext <<_ACEOF 6012/* confdefs.h. */ 6013_ACEOF 6014cat confdefs.h >>conftest.$ac_ext 6015cat >>conftest.$ac_ext <<_ACEOF 6016/* end confdefs.h. */ 6017$ac_includes_default 6018 6019#include <$ac_header> 6020_ACEOF 6021rm -f conftest.$ac_objext 6022if { (ac_try="$ac_compile" 6023case "(($ac_try" in 6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6025 *) ac_try_echo=$ac_try;; 6026esac 6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6028 (eval "$ac_compile") 2>conftest.er1 6029 ac_status=$? 6030 grep -v '^ *+' conftest.er1 >conftest.err 6031 rm -f conftest.er1 6032 cat conftest.err >&5 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6034 (exit $ac_status); } && { 6035 test -z "$ac_c_werror_flag" || 6036 test ! -s conftest.err 6037 } && test -s conftest.$ac_objext; then 6038 eval "$as_ac_Header=yes" 6039else 6040 echo "$as_me: failed program was:" >&5 6041sed 's/^/| /' conftest.$ac_ext >&5 6042 6043 eval "$as_ac_Header=no" 6044fi 6045 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047fi 6048ac_res=`eval echo '${'$as_ac_Header'}'` 6049 { echo "$as_me:$LINENO: result: $ac_res" >&5 6050echo "${ECHO_T}$ac_res" >&6; } 6051if test `eval echo '${'$as_ac_Header'}'` = yes; then 6052 cat >>confdefs.h <<_ACEOF 6053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6054_ACEOF 6055 6056fi 6057 6058done 6059 6060 6061 6062for ac_header in dlfcn.h 6063do 6064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6066 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070fi 6071ac_res=`eval echo '${'$as_ac_Header'}'` 6072 { echo "$as_me:$LINENO: result: $ac_res" >&5 6073echo "${ECHO_T}$ac_res" >&6; } 6074else 6075 # Is the header compilable? 6076{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6078cat >conftest.$ac_ext <<_ACEOF 6079/* confdefs.h. */ 6080_ACEOF 6081cat confdefs.h >>conftest.$ac_ext 6082cat >>conftest.$ac_ext <<_ACEOF 6083/* end confdefs.h. */ 6084$ac_includes_default 6085#include <$ac_header> 6086_ACEOF 6087rm -f conftest.$ac_objext 6088if { (ac_try="$ac_compile" 6089case "(($ac_try" in 6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6091 *) ac_try_echo=$ac_try;; 6092esac 6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6094 (eval "$ac_compile") 2>conftest.er1 6095 ac_status=$? 6096 grep -v '^ *+' conftest.er1 >conftest.err 6097 rm -f conftest.er1 6098 cat conftest.err >&5 6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6100 (exit $ac_status); } && { 6101 test -z "$ac_c_werror_flag" || 6102 test ! -s conftest.err 6103 } && test -s conftest.$ac_objext; then 6104 ac_header_compiler=yes 6105else 6106 echo "$as_me: failed program was:" >&5 6107sed 's/^/| /' conftest.$ac_ext >&5 6108 6109 ac_header_compiler=no 6110fi 6111 6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6114echo "${ECHO_T}$ac_header_compiler" >&6; } 6115 6116# Is the header present? 6117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6119cat >conftest.$ac_ext <<_ACEOF 6120/* confdefs.h. */ 6121_ACEOF 6122cat confdefs.h >>conftest.$ac_ext 6123cat >>conftest.$ac_ext <<_ACEOF 6124/* end confdefs.h. */ 6125#include <$ac_header> 6126_ACEOF 6127if { (ac_try="$ac_cpp conftest.$ac_ext" 6128case "(($ac_try" in 6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6130 *) ac_try_echo=$ac_try;; 6131esac 6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6134 ac_status=$? 6135 grep -v '^ *+' conftest.er1 >conftest.err 6136 rm -f conftest.er1 6137 cat conftest.err >&5 6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6139 (exit $ac_status); } >/dev/null && { 6140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6141 test ! -s conftest.err 6142 }; then 6143 ac_header_preproc=yes 6144else 6145 echo "$as_me: failed program was:" >&5 6146sed 's/^/| /' conftest.$ac_ext >&5 6147 6148 ac_header_preproc=no 6149fi 6150 6151rm -f conftest.err conftest.$ac_ext 6152{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6153echo "${ECHO_T}$ac_header_preproc" >&6; } 6154 6155# So? What about this header? 6156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6157 yes:no: ) 6158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6162 ac_header_preproc=yes 6163 ;; 6164 no:yes:* ) 6165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6177 ( cat <<\_ASBOX 6178## ----------------------------------------- ## 6179## Report this to matteo.vescovi@yahoo.co.uk ## 6180## ----------------------------------------- ## 6181_ASBOX 6182 ) | sed "s/^/$as_me: WARNING: /" >&2 6183 ;; 6184esac 6185{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 eval "$as_ac_Header=\$ac_header_preproc" 6191fi 6192ac_res=`eval echo '${'$as_ac_Header'}'` 6193 { echo "$as_me:$LINENO: result: $ac_res" >&5 6194echo "${ECHO_T}$ac_res" >&6; } 6195 6196fi 6197if test `eval echo '${'$as_ac_Header'}'` = yes; then 6198 cat >>confdefs.h <<_ACEOF 6199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6200_ACEOF 6201 6202fi 6203 6204done 6205 6206 6207 6208if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6209 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6210 (test "X$CXX" != "Xg++"))) ; then 6211 ac_ext=cpp 6212ac_cpp='$CXXCPP $CPPFLAGS' 6213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6216{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6217echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6218if test -z "$CXXCPP"; then 6219 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6220 echo $ECHO_N "(cached) $ECHO_C" >&6 6221else 6222 # Double quotes because CXXCPP needs to be expanded 6223 for CXXCPP in "$CXX -E" "/lib/cpp" 6224 do 6225 ac_preproc_ok=false 6226for ac_cxx_preproc_warn_flag in '' yes 6227do 6228 # Use a header file that comes with gcc, so configuring glibc 6229 # with a fresh cross-compiler works. 6230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6231 # <limits.h> exists even on freestanding compilers. 6232 # On the NeXT, cc -E runs the code through the compiler's parser, 6233 # not just through cpp. "Syntax error" is here to catch this case. 6234 cat >conftest.$ac_ext <<_ACEOF 6235/* confdefs.h. */ 6236_ACEOF 6237cat confdefs.h >>conftest.$ac_ext 6238cat >>conftest.$ac_ext <<_ACEOF 6239/* end confdefs.h. */ 6240#ifdef __STDC__ 6241# include <limits.h> 6242#else 6243# include <assert.h> 6244#endif 6245 Syntax error 6246_ACEOF 6247if { (ac_try="$ac_cpp conftest.$ac_ext" 6248case "(($ac_try" in 6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6250 *) ac_try_echo=$ac_try;; 6251esac 6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6254 ac_status=$? 6255 grep -v '^ *+' conftest.er1 >conftest.err 6256 rm -f conftest.er1 6257 cat conftest.err >&5 6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6259 (exit $ac_status); } >/dev/null && { 6260 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6261 test ! -s conftest.err 6262 }; then 6263 : 6264else 6265 echo "$as_me: failed program was:" >&5 6266sed 's/^/| /' conftest.$ac_ext >&5 6267 6268 # Broken: fails on valid input. 6269continue 6270fi 6271 6272rm -f conftest.err conftest.$ac_ext 6273 6274 # OK, works on sane cases. Now check whether nonexistent headers 6275 # can be detected and how. 6276 cat >conftest.$ac_ext <<_ACEOF 6277/* confdefs.h. */ 6278_ACEOF 6279cat confdefs.h >>conftest.$ac_ext 6280cat >>conftest.$ac_ext <<_ACEOF 6281/* end confdefs.h. */ 6282#include <ac_nonexistent.h> 6283_ACEOF 6284if { (ac_try="$ac_cpp conftest.$ac_ext" 6285case "(($ac_try" in 6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6287 *) ac_try_echo=$ac_try;; 6288esac 6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6291 ac_status=$? 6292 grep -v '^ *+' conftest.er1 >conftest.err 6293 rm -f conftest.er1 6294 cat conftest.err >&5 6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6296 (exit $ac_status); } >/dev/null && { 6297 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6298 test ! -s conftest.err 6299 }; then 6300 # Broken: success on invalid input. 6301continue 6302else 6303 echo "$as_me: failed program was:" >&5 6304sed 's/^/| /' conftest.$ac_ext >&5 6305 6306 # Passes both tests. 6307ac_preproc_ok=: 6308break 6309fi 6310 6311rm -f conftest.err conftest.$ac_ext 6312 6313done 6314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6315rm -f conftest.err conftest.$ac_ext 6316if $ac_preproc_ok; then 6317 break 6318fi 6319 6320 done 6321 ac_cv_prog_CXXCPP=$CXXCPP 6322 6323fi 6324 CXXCPP=$ac_cv_prog_CXXCPP 6325else 6326 ac_cv_prog_CXXCPP=$CXXCPP 6327fi 6328{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6329echo "${ECHO_T}$CXXCPP" >&6; } 6330ac_preproc_ok=false 6331for ac_cxx_preproc_warn_flag in '' yes 6332do 6333 # Use a header file that comes with gcc, so configuring glibc 6334 # with a fresh cross-compiler works. 6335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6336 # <limits.h> exists even on freestanding compilers. 6337 # On the NeXT, cc -E runs the code through the compiler's parser, 6338 # not just through cpp. "Syntax error" is here to catch this case. 6339 cat >conftest.$ac_ext <<_ACEOF 6340/* confdefs.h. */ 6341_ACEOF 6342cat confdefs.h >>conftest.$ac_ext 6343cat >>conftest.$ac_ext <<_ACEOF 6344/* end confdefs.h. */ 6345#ifdef __STDC__ 6346# include <limits.h> 6347#else 6348# include <assert.h> 6349#endif 6350 Syntax error 6351_ACEOF 6352if { (ac_try="$ac_cpp conftest.$ac_ext" 6353case "(($ac_try" in 6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6355 *) ac_try_echo=$ac_try;; 6356esac 6357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6359 ac_status=$? 6360 grep -v '^ *+' conftest.er1 >conftest.err 6361 rm -f conftest.er1 6362 cat conftest.err >&5 6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6364 (exit $ac_status); } >/dev/null && { 6365 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6366 test ! -s conftest.err 6367 }; then 6368 : 6369else 6370 echo "$as_me: failed program was:" >&5 6371sed 's/^/| /' conftest.$ac_ext >&5 6372 6373 # Broken: fails on valid input. 6374continue 6375fi 6376 6377rm -f conftest.err conftest.$ac_ext 6378 6379 # OK, works on sane cases. Now check whether nonexistent headers 6380 # can be detected and how. 6381 cat >conftest.$ac_ext <<_ACEOF 6382/* confdefs.h. */ 6383_ACEOF 6384cat confdefs.h >>conftest.$ac_ext 6385cat >>conftest.$ac_ext <<_ACEOF 6386/* end confdefs.h. */ 6387#include <ac_nonexistent.h> 6388_ACEOF 6389if { (ac_try="$ac_cpp conftest.$ac_ext" 6390case "(($ac_try" in 6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6392 *) ac_try_echo=$ac_try;; 6393esac 6394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6396 ac_status=$? 6397 grep -v '^ *+' conftest.er1 >conftest.err 6398 rm -f conftest.er1 6399 cat conftest.err >&5 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } >/dev/null && { 6402 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6403 test ! -s conftest.err 6404 }; then 6405 # Broken: success on invalid input. 6406continue 6407else 6408 echo "$as_me: failed program was:" >&5 6409sed 's/^/| /' conftest.$ac_ext >&5 6410 6411 # Passes both tests. 6412ac_preproc_ok=: 6413break 6414fi 6415 6416rm -f conftest.err conftest.$ac_ext 6417 6418done 6419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6420rm -f conftest.err conftest.$ac_ext 6421if $ac_preproc_ok; then 6422 : 6423else 6424 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6425See \`config.log' for more details." >&5 6426echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6427See \`config.log' for more details." >&2;} 6428 { (exit 1); exit 1; }; } 6429fi 6430 6431ac_ext=cpp 6432ac_cpp='$CXXCPP $CPPFLAGS' 6433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6436 6437fi 6438 6439 6440ac_ext=f 6441ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6442ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6443ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6444if test -n "$ac_tool_prefix"; then 6445 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 6446 do 6447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6448set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6449{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6451if test "${ac_cv_prog_F77+set}" = set; then 6452 echo $ECHO_N "(cached) $ECHO_C" >&6 6453else 6454 if test -n "$F77"; then 6455 ac_cv_prog_F77="$F77" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6464 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468done 6469done 6470IFS=$as_save_IFS 6471 6472fi 6473fi 6474F77=$ac_cv_prog_F77 6475if test -n "$F77"; then 6476 { echo "$as_me:$LINENO: result: $F77" >&5 6477echo "${ECHO_T}$F77" >&6; } 6478else 6479 { echo "$as_me:$LINENO: result: no" >&5 6480echo "${ECHO_T}no" >&6; } 6481fi 6482 6483 6484 test -n "$F77" && break 6485 done 6486fi 6487if test -z "$F77"; then 6488 ac_ct_F77=$F77 6489 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 6490do 6491 # Extract the first word of "$ac_prog", so it can be a program name with args. 6492set dummy $ac_prog; ac_word=$2 6493{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6495if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6496 echo $ECHO_N "(cached) $ECHO_C" >&6 6497else 6498 if test -n "$ac_ct_F77"; then 6499 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6500else 6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502for as_dir in $PATH 6503do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6508 ac_cv_prog_ac_ct_F77="$ac_prog" 6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512done 6513done 6514IFS=$as_save_IFS 6515 6516fi 6517fi 6518ac_ct_F77=$ac_cv_prog_ac_ct_F77 6519if test -n "$ac_ct_F77"; then 6520 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6521echo "${ECHO_T}$ac_ct_F77" >&6; } 6522else 6523 { echo "$as_me:$LINENO: result: no" >&5 6524echo "${ECHO_T}no" >&6; } 6525fi 6526 6527 6528 test -n "$ac_ct_F77" && break 6529done 6530 6531 if test "x$ac_ct_F77" = x; then 6532 F77="" 6533 else 6534 case $cross_compiling:$ac_tool_warned in 6535yes:) 6536{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6537whose name does not start with the host triplet. If you think this 6538configuration is useful to you, please write to autoconf@gnu.org." >&5 6539echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6540whose name does not start with the host triplet. If you think this 6541configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 F77=$ac_ct_F77 6545 fi 6546fi 6547 6548 6549# Provide some information about the compiler. 6550echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6551ac_compiler=`set X $ac_compile; echo $2` 6552{ (ac_try="$ac_compiler --version >&5" 6553case "(($ac_try" in 6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6555 *) ac_try_echo=$ac_try;; 6556esac 6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6558 (eval "$ac_compiler --version >&5") 2>&5 6559 ac_status=$? 6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6561 (exit $ac_status); } 6562{ (ac_try="$ac_compiler -v >&5" 6563case "(($ac_try" in 6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6565 *) ac_try_echo=$ac_try;; 6566esac 6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6568 (eval "$ac_compiler -v >&5") 2>&5 6569 ac_status=$? 6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6571 (exit $ac_status); } 6572{ (ac_try="$ac_compiler -V >&5" 6573case "(($ac_try" in 6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6575 *) ac_try_echo=$ac_try;; 6576esac 6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6578 (eval "$ac_compiler -V >&5") 2>&5 6579 ac_status=$? 6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6581 (exit $ac_status); } 6582rm -f a.out 6583 6584# If we don't use `.F' as extension, the preprocessor is not run on the 6585# input file. (Note that this only needs to work for GNU compilers.) 6586ac_save_ext=$ac_ext 6587ac_ext=F 6588{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6589echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6590if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592else 6593 cat >conftest.$ac_ext <<_ACEOF 6594 program main 6595#ifndef __GNUC__ 6596 choke me 6597#endif 6598 6599 end 6600_ACEOF 6601rm -f conftest.$ac_objext 6602if { (ac_try="$ac_compile" 6603case "(($ac_try" in 6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6605 *) ac_try_echo=$ac_try;; 6606esac 6607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6608 (eval "$ac_compile") 2>conftest.er1 6609 ac_status=$? 6610 grep -v '^ *+' conftest.er1 >conftest.err 6611 rm -f conftest.er1 6612 cat conftest.err >&5 6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6614 (exit $ac_status); } && { 6615 test -z "$ac_f77_werror_flag" || 6616 test ! -s conftest.err 6617 } && test -s conftest.$ac_objext; then 6618 ac_compiler_gnu=yes 6619else 6620 echo "$as_me: failed program was:" >&5 6621sed 's/^/| /' conftest.$ac_ext >&5 6622 6623 ac_compiler_gnu=no 6624fi 6625 6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6627ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6628 6629fi 6630{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6631echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6632ac_ext=$ac_save_ext 6633ac_test_FFLAGS=${FFLAGS+set} 6634ac_save_FFLAGS=$FFLAGS 6635FFLAGS= 6636{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6637echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6638if test "${ac_cv_prog_f77_g+set}" = set; then 6639 echo $ECHO_N "(cached) $ECHO_C" >&6 6640else 6641 FFLAGS=-g 6642cat >conftest.$ac_ext <<_ACEOF 6643 program main 6644 6645 end 6646_ACEOF 6647rm -f conftest.$ac_objext 6648if { (ac_try="$ac_compile" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_compile") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } && { 6661 test -z "$ac_f77_werror_flag" || 6662 test ! -s conftest.err 6663 } && test -s conftest.$ac_objext; then 6664 ac_cv_prog_f77_g=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_cv_prog_f77_g=no 6670fi 6671 6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6673 6674fi 6675{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6676echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6677if test "$ac_test_FFLAGS" = set; then 6678 FFLAGS=$ac_save_FFLAGS 6679elif test $ac_cv_prog_f77_g = yes; then 6680 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6681 FFLAGS="-g -O2" 6682 else 6683 FFLAGS="-g" 6684 fi 6685else 6686 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6687 FFLAGS="-O2" 6688 else 6689 FFLAGS= 6690 fi 6691fi 6692 6693G77=`test $ac_compiler_gnu = yes && echo yes` 6694ac_ext=c 6695ac_cpp='$CPP $CPPFLAGS' 6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6698ac_compiler_gnu=$ac_cv_c_compiler_gnu 6699 6700 6701 6702# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6703 6704# find the maximum length of command line arguments 6705{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6706echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6707if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 i=0 6711 teststring="ABCD" 6712 6713 case $build_os in 6714 msdosdjgpp*) 6715 # On DJGPP, this test can blow up pretty badly due to problems in libc 6716 # (any single argument exceeding 2000 bytes causes a buffer overrun 6717 # during glob expansion). Even if it were fixed, the result of this 6718 # check would be larger than it should be. 6719 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6720 ;; 6721 6722 gnu*) 6723 # Under GNU Hurd, this test is not required because there is 6724 # no limit to the length of command line arguments. 6725 # Libtool will interpret -1 as no limit whatsoever 6726 lt_cv_sys_max_cmd_len=-1; 6727 ;; 6728 6729 cygwin* | mingw*) 6730 # On Win9x/ME, this test blows up -- it succeeds, but takes 6731 # about 5 minutes as the teststring grows exponentially. 6732 # Worse, since 9x/ME are not pre-emptively multitasking, 6733 # you end up with a "frozen" computer, even though with patience 6734 # the test eventually succeeds (with a max line length of 256k). 6735 # Instead, let's just punt: use the minimum linelength reported by 6736 # all of the supported platforms: 8192 (on NT/2K/XP). 6737 lt_cv_sys_max_cmd_len=8192; 6738 ;; 6739 6740 amigaos*) 6741 # On AmigaOS with pdksh, this test takes hours, literally. 6742 # So we just punt and use a minimum line length of 8192. 6743 lt_cv_sys_max_cmd_len=8192; 6744 ;; 6745 6746 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6747 # This has been around since 386BSD, at least. Likely further. 6748 if test -x /sbin/sysctl; then 6749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6750 elif test -x /usr/sbin/sysctl; then 6751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6752 else 6753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6754 fi 6755 # And add a safety zone 6756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6758 ;; 6759 6760 interix*) 6761 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6762 lt_cv_sys_max_cmd_len=196608 6763 ;; 6764 6765 osf*) 6766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6768 # nice to cause kernel panics so lets avoid the loop below. 6769 # First set a reasonable default. 6770 lt_cv_sys_max_cmd_len=16384 6771 # 6772 if test -x /sbin/sysconfig; then 6773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6774 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6775 esac 6776 fi 6777 ;; 6778 sco3.2v5*) 6779 lt_cv_sys_max_cmd_len=102400 6780 ;; 6781 sysv5* | sco5v6* | sysv4.2uw2*) 6782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6783 if test -n "$kargmax"; then 6784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6785 else 6786 lt_cv_sys_max_cmd_len=32768 6787 fi 6788 ;; 6789 *) 6790 # If test is not a shell built-in, we'll probably end up computing a 6791 # maximum length that is only half of the actual maximum length, but 6792 # we can't tell. 6793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6794 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6795 = "XX$teststring") >/dev/null 2>&1 && 6796 new_result=`expr "X$teststring" : ".*" 2>&1` && 6797 lt_cv_sys_max_cmd_len=$new_result && 6798 test $i != 17 # 1/2 MB should be enough 6799 do 6800 i=`expr $i + 1` 6801 teststring=$teststring$teststring 6802 done 6803 teststring= 6804 # Add a significant safety factor because C++ compilers can tack on massive 6805 # amounts of additional arguments before passing them to the linker. 6806 # It appears as though 1/2 is a usable value. 6807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6808 ;; 6809 esac 6810 6811fi 6812 6813if test -n $lt_cv_sys_max_cmd_len ; then 6814 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6815echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6816else 6817 { echo "$as_me:$LINENO: result: none" >&5 6818echo "${ECHO_T}none" >&6; } 6819fi 6820 6821 6822 6823 6824# Check for command to grab the raw symbol name followed by C symbol from nm. 6825{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6826echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6827if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6828 echo $ECHO_N "(cached) $ECHO_C" >&6 6829else 6830 6831# These are sane defaults that work on at least a few old systems. 6832# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6833 6834# Character class describing NM global symbol codes. 6835symcode='[BCDEGRST]' 6836 6837# Regexp to match symbols that can be accessed directly from C. 6838sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6839 6840# Transform an extracted symbol line into a proper C declaration 6841lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6842 6843# Transform an extracted symbol line into symbol name and symbol address 6844lt_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'" 6845 6846# Define system-specific variables. 6847case $host_os in 6848aix*) 6849 symcode='[BCDT]' 6850 ;; 6851cygwin* | mingw* | pw32*) 6852 symcode='[ABCDGISTW]' 6853 ;; 6854hpux*) # Its linker distinguishes data from code symbols 6855 if test "$host_cpu" = ia64; then 6856 symcode='[ABCDEGRST]' 6857 fi 6858 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6859 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'" 6860 ;; 6861linux* | k*bsd*-gnu) 6862 if test "$host_cpu" = ia64; then 6863 symcode='[ABCDGIRSTW]' 6864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6865 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'" 6866 fi 6867 ;; 6868irix* | nonstopux*) 6869 symcode='[BCDEGRST]' 6870 ;; 6871osf*) 6872 symcode='[BCDEGQRST]' 6873 ;; 6874solaris*) 6875 symcode='[BDRT]' 6876 ;; 6877sco3.2v5*) 6878 symcode='[DT]' 6879 ;; 6880sysv4.2uw2*) 6881 symcode='[DT]' 6882 ;; 6883sysv5* | sco5v6* | unixware* | OpenUNIX*) 6884 symcode='[ABDT]' 6885 ;; 6886sysv4) 6887 symcode='[DFNSTU]' 6888 ;; 6889esac 6890 6891# Handle CRLF in mingw tool chain 6892opt_cr= 6893case $build_os in 6894mingw*) 6895 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6896 ;; 6897esac 6898 6899# If we're using GNU nm, then use its standard symbol codes. 6900case `$NM -V 2>&1` in 6901*GNU* | *'with BFD'*) 6902 symcode='[ABCDGIRSTW]' ;; 6903esac 6904 6905# Try without a prefix undercore, then with it. 6906for ac_symprfx in "" "_"; do 6907 6908 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6909 symxfrm="\\1 $ac_symprfx\\2 \\2" 6910 6911 # Write the raw and C identifiers. 6912 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6913 6914 # Check to see that the pipe works correctly. 6915 pipe_works=no 6916 6917 rm -f conftest* 6918 cat > conftest.$ac_ext <<EOF 6919#ifdef __cplusplus 6920extern "C" { 6921#endif 6922char nm_test_var; 6923void nm_test_func(){} 6924#ifdef __cplusplus 6925} 6926#endif 6927int main(){nm_test_var='a';nm_test_func();return(0);} 6928EOF 6929 6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6931 (eval $ac_compile) 2>&5 6932 ac_status=$? 6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6934 (exit $ac_status); }; then 6935 # Now try to grab the symbols. 6936 nlist=conftest.nm 6937 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6938 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6939 ac_status=$? 6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6941 (exit $ac_status); } && test -s "$nlist"; then 6942 # Try sorting and uniquifying the output. 6943 if sort "$nlist" | uniq > "$nlist"T; then 6944 mv -f "$nlist"T "$nlist" 6945 else 6946 rm -f "$nlist"T 6947 fi 6948 6949 # Make sure that we snagged all the symbols we need. 6950 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6951 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6952 cat <<EOF > conftest.$ac_ext 6953#ifdef __cplusplus 6954extern "C" { 6955#endif 6956 6957EOF 6958 # Now generate the symbol file. 6959 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6960 6961 cat <<EOF >> conftest.$ac_ext 6962#if defined (__STDC__) && __STDC__ 6963# define lt_ptr_t void * 6964#else 6965# define lt_ptr_t char * 6966# define const 6967#endif 6968 6969/* The mapping between symbol names and symbols. */ 6970const struct { 6971 const char *name; 6972 lt_ptr_t address; 6973} 6974lt_preloaded_symbols[] = 6975{ 6976EOF 6977 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6978 cat <<\EOF >> conftest.$ac_ext 6979 {0, (lt_ptr_t) 0} 6980}; 6981 6982#ifdef __cplusplus 6983} 6984#endif 6985EOF 6986 # Now try linking the two files. 6987 mv conftest.$ac_objext conftstm.$ac_objext 6988 lt_save_LIBS="$LIBS" 6989 lt_save_CFLAGS="$CFLAGS" 6990 LIBS="conftstm.$ac_objext" 6991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6993 (eval $ac_link) 2>&5 6994 ac_status=$? 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6997 pipe_works=yes 6998 fi 6999 LIBS="$lt_save_LIBS" 7000 CFLAGS="$lt_save_CFLAGS" 7001 else 7002 echo "cannot find nm_test_func in $nlist" >&5 7003 fi 7004 else 7005 echo "cannot find nm_test_var in $nlist" >&5 7006 fi 7007 else 7008 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7009 fi 7010 else 7011 echo "$progname: failed program was:" >&5 7012 cat conftest.$ac_ext >&5 7013 fi 7014 rm -f conftest* conftst* 7015 7016 # Do not use the global_symbol_pipe unless it works. 7017 if test "$pipe_works" = yes; then 7018 break 7019 else 7020 lt_cv_sys_global_symbol_pipe= 7021 fi 7022done 7023 7024fi 7025 7026if test -z "$lt_cv_sys_global_symbol_pipe"; then 7027 lt_cv_sys_global_symbol_to_cdecl= 7028fi 7029if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7030 { echo "$as_me:$LINENO: result: failed" >&5 7031echo "${ECHO_T}failed" >&6; } 7032else 7033 { echo "$as_me:$LINENO: result: ok" >&5 7034echo "${ECHO_T}ok" >&6; } 7035fi 7036 7037{ echo "$as_me:$LINENO: checking for objdir" >&5 7038echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7039if test "${lt_cv_objdir+set}" = set; then 7040 echo $ECHO_N "(cached) $ECHO_C" >&6 7041else 7042 rm -f .libs 2>/dev/null 7043mkdir .libs 2>/dev/null 7044if test -d .libs; then 7045 lt_cv_objdir=.libs 7046else 7047 # MS-DOS does not allow filenames that begin with a dot. 7048 lt_cv_objdir=_libs 7049fi 7050rmdir .libs 2>/dev/null 7051fi 7052{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7053echo "${ECHO_T}$lt_cv_objdir" >&6; } 7054objdir=$lt_cv_objdir 7055 7056 7057 7058 7059 7060case $host_os in 7061aix3*) 7062 # AIX sometimes has problems with the GCC collect2 program. For some 7063 # reason, if we set the COLLECT_NAMES environment variable, the problems 7064 # vanish in a puff of smoke. 7065 if test "X${COLLECT_NAMES+set}" != Xset; then 7066 COLLECT_NAMES= 7067 export COLLECT_NAMES 7068 fi 7069 ;; 7070esac 7071 7072# Sed substitution that helps us do robust quoting. It backslashifies 7073# metacharacters that are still active within double-quoted strings. 7074Xsed='sed -e 1s/^X//' 7075sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7076 7077# Same as above, but do not quote variable references. 7078double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7079 7080# Sed substitution to delay expansion of an escaped shell variable in a 7081# double_quote_subst'ed string. 7082delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7083 7084# Sed substitution to avoid accidental globbing in evaled expressions 7085no_glob_subst='s/\*/\\\*/g' 7086 7087# Constants: 7088rm="rm -f" 7089 7090# Global variables: 7091default_ofile=libtool 7092can_build_shared=yes 7093 7094# All known linkers require a `.a' archive for static linking (except MSVC, 7095# which needs '.lib'). 7096libext=a 7097ltmain="$ac_aux_dir/ltmain.sh" 7098ofile="$default_ofile" 7099with_gnu_ld="$lt_cv_prog_gnu_ld" 7100 7101if test -n "$ac_tool_prefix"; then 7102 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7103set dummy ${ac_tool_prefix}ar; ac_word=$2 7104{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7106if test "${ac_cv_prog_AR+set}" = set; then 7107 echo $ECHO_N "(cached) $ECHO_C" >&6 7108else 7109 if test -n "$AR"; then 7110 ac_cv_prog_AR="$AR" # Let the user override the test. 7111else 7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7113for as_dir in $PATH 7114do 7115 IFS=$as_save_IFS 7116 test -z "$as_dir" && as_dir=. 7117 for ac_exec_ext in '' $ac_executable_extensions; do 7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7119 ac_cv_prog_AR="${ac_tool_prefix}ar" 7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7121 break 2 7122 fi 7123done 7124done 7125IFS=$as_save_IFS 7126 7127fi 7128fi 7129AR=$ac_cv_prog_AR 7130if test -n "$AR"; then 7131 { echo "$as_me:$LINENO: result: $AR" >&5 7132echo "${ECHO_T}$AR" >&6; } 7133else 7134 { echo "$as_me:$LINENO: result: no" >&5 7135echo "${ECHO_T}no" >&6; } 7136fi 7137 7138 7139fi 7140if test -z "$ac_cv_prog_AR"; then 7141 ac_ct_AR=$AR 7142 # Extract the first word of "ar", so it can be a program name with args. 7143set dummy ar; ac_word=$2 7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7146if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7147 echo $ECHO_N "(cached) $ECHO_C" >&6 7148else 7149 if test -n "$ac_ct_AR"; then 7150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7151else 7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153for as_dir in $PATH 7154do 7155 IFS=$as_save_IFS 7156 test -z "$as_dir" && as_dir=. 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7159 ac_cv_prog_ac_ct_AR="ar" 7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7161 break 2 7162 fi 7163done 7164done 7165IFS=$as_save_IFS 7166 7167fi 7168fi 7169ac_ct_AR=$ac_cv_prog_ac_ct_AR 7170if test -n "$ac_ct_AR"; then 7171 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7172echo "${ECHO_T}$ac_ct_AR" >&6; } 7173else 7174 { echo "$as_me:$LINENO: result: no" >&5 7175echo "${ECHO_T}no" >&6; } 7176fi 7177 7178 if test "x$ac_ct_AR" = x; then 7179 AR="false" 7180 else 7181 case $cross_compiling:$ac_tool_warned in 7182yes:) 7183{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7184whose name does not start with the host triplet. If you think this 7185configuration is useful to you, please write to autoconf@gnu.org." >&5 7186echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7187whose name does not start with the host triplet. If you think this 7188configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7189ac_tool_warned=yes ;; 7190esac 7191 AR=$ac_ct_AR 7192 fi 7193else 7194 AR="$ac_cv_prog_AR" 7195fi 7196 7197if test -n "$ac_tool_prefix"; then 7198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7199set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7200{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7202if test "${ac_cv_prog_RANLIB+set}" = set; then 7203 echo $ECHO_N "(cached) $ECHO_C" >&6 7204else 7205 if test -n "$RANLIB"; then 7206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7207else 7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7209for as_dir in $PATH 7210do 7211 IFS=$as_save_IFS 7212 test -z "$as_dir" && as_dir=. 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225RANLIB=$ac_cv_prog_RANLIB 7226if test -n "$RANLIB"; then 7227 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7228echo "${ECHO_T}$RANLIB" >&6; } 7229else 7230 { echo "$as_me:$LINENO: result: no" >&5 7231echo "${ECHO_T}no" >&6; } 7232fi 7233 7234 7235fi 7236if test -z "$ac_cv_prog_RANLIB"; then 7237 ac_ct_RANLIB=$RANLIB 7238 # Extract the first word of "ranlib", so it can be a program name with args. 7239set dummy ranlib; ac_word=$2 7240{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7242if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7243 echo $ECHO_N "(cached) $ECHO_C" >&6 7244else 7245 if test -n "$ac_ct_RANLIB"; then 7246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7247else 7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249for as_dir in $PATH 7250do 7251 IFS=$as_save_IFS 7252 test -z "$as_dir" && as_dir=. 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7255 ac_cv_prog_ac_ct_RANLIB="ranlib" 7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7257 break 2 7258 fi 7259done 7260done 7261IFS=$as_save_IFS 7262 7263fi 7264fi 7265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7266if test -n "$ac_ct_RANLIB"; then 7267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7268echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7269else 7270 { echo "$as_me:$LINENO: result: no" >&5 7271echo "${ECHO_T}no" >&6; } 7272fi 7273 7274 if test "x$ac_ct_RANLIB" = x; then 7275 RANLIB=":" 7276 else 7277 case $cross_compiling:$ac_tool_warned in 7278yes:) 7279{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7280whose name does not start with the host triplet. If you think this 7281configuration is useful to you, please write to autoconf@gnu.org." >&5 7282echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7283whose name does not start with the host triplet. If you think this 7284configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7285ac_tool_warned=yes ;; 7286esac 7287 RANLIB=$ac_ct_RANLIB 7288 fi 7289else 7290 RANLIB="$ac_cv_prog_RANLIB" 7291fi 7292 7293if test -n "$ac_tool_prefix"; then 7294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7295set dummy ${ac_tool_prefix}strip; ac_word=$2 7296{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7298if test "${ac_cv_prog_STRIP+set}" = set; then 7299 echo $ECHO_N "(cached) $ECHO_C" >&6 7300else 7301 if test -n "$STRIP"; then 7302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7303else 7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7305for as_dir in $PATH 7306do 7307 IFS=$as_save_IFS 7308 test -z "$as_dir" && as_dir=. 7309 for ac_exec_ext in '' $ac_executable_extensions; do 7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7311 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7313 break 2 7314 fi 7315done 7316done 7317IFS=$as_save_IFS 7318 7319fi 7320fi 7321STRIP=$ac_cv_prog_STRIP 7322if test -n "$STRIP"; then 7323 { echo "$as_me:$LINENO: result: $STRIP" >&5 7324echo "${ECHO_T}$STRIP" >&6; } 7325else 7326 { echo "$as_me:$LINENO: result: no" >&5 7327echo "${ECHO_T}no" >&6; } 7328fi 7329 7330 7331fi 7332if test -z "$ac_cv_prog_STRIP"; then 7333 ac_ct_STRIP=$STRIP 7334 # Extract the first word of "strip", so it can be a program name with args. 7335set dummy strip; ac_word=$2 7336{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7339 echo $ECHO_N "(cached) $ECHO_C" >&6 7340else 7341 if test -n "$ac_ct_STRIP"; then 7342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7343else 7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7345for as_dir in $PATH 7346do 7347 IFS=$as_save_IFS 7348 test -z "$as_dir" && as_dir=. 7349 for ac_exec_ext in '' $ac_executable_extensions; do 7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7351 ac_cv_prog_ac_ct_STRIP="strip" 7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7353 break 2 7354 fi 7355done 7356done 7357IFS=$as_save_IFS 7358 7359fi 7360fi 7361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7362if test -n "$ac_ct_STRIP"; then 7363 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7364echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7365else 7366 { echo "$as_me:$LINENO: result: no" >&5 7367echo "${ECHO_T}no" >&6; } 7368fi 7369 7370 if test "x$ac_ct_STRIP" = x; then 7371 STRIP=":" 7372 else 7373 case $cross_compiling:$ac_tool_warned in 7374yes:) 7375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7376whose name does not start with the host triplet. If you think this 7377configuration is useful to you, please write to autoconf@gnu.org." >&5 7378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7379whose name does not start with the host triplet. If you think this 7380configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7381ac_tool_warned=yes ;; 7382esac 7383 STRIP=$ac_ct_STRIP 7384 fi 7385else 7386 STRIP="$ac_cv_prog_STRIP" 7387fi 7388 7389 7390old_CC="$CC" 7391old_CFLAGS="$CFLAGS" 7392 7393# Set sane defaults for various variables 7394test -z "$AR" && AR=ar 7395test -z "$AR_FLAGS" && AR_FLAGS=cru 7396test -z "$AS" && AS=as 7397test -z "$CC" && CC=cc 7398test -z "$LTCC" && LTCC=$CC 7399test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7400test -z "$DLLTOOL" && DLLTOOL=dlltool 7401test -z "$LD" && LD=ld 7402test -z "$LN_S" && LN_S="ln -s" 7403test -z "$MAGIC_CMD" && MAGIC_CMD=file 7404test -z "$NM" && NM=nm 7405test -z "$SED" && SED=sed 7406test -z "$OBJDUMP" && OBJDUMP=objdump 7407test -z "$RANLIB" && RANLIB=: 7408test -z "$STRIP" && STRIP=: 7409test -z "$ac_objext" && ac_objext=o 7410 7411# Determine commands to create old-style static archives. 7412old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7413old_postinstall_cmds='chmod 644 $oldlib' 7414old_postuninstall_cmds= 7415 7416if test -n "$RANLIB"; then 7417 case $host_os in 7418 openbsd*) 7419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7420 ;; 7421 *) 7422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7423 ;; 7424 esac 7425 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7426fi 7427 7428for cc_temp in $compiler""; do 7429 case $cc_temp in 7430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7432 \-*) ;; 7433 *) break;; 7434 esac 7435done 7436cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7437 7438 7439# Only perform the check for file, if the check method requires it 7440case $deplibs_check_method in 7441file_magic*) 7442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7443 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7444echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7445if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7446 echo $ECHO_N "(cached) $ECHO_C" >&6 7447else 7448 case $MAGIC_CMD in 7449[\\/*] | ?:[\\/]*) 7450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7451 ;; 7452*) 7453 lt_save_MAGIC_CMD="$MAGIC_CMD" 7454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7456 for ac_dir in $ac_dummy; do 7457 IFS="$lt_save_ifs" 7458 test -z "$ac_dir" && ac_dir=. 7459 if test -f $ac_dir/${ac_tool_prefix}file; then 7460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7461 if test -n "$file_magic_test_file"; then 7462 case $deplibs_check_method in 7463 "file_magic "*) 7464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7467 $EGREP "$file_magic_regex" > /dev/null; then 7468 : 7469 else 7470 cat <<EOF 1>&2 7471 7472*** Warning: the command libtool uses to detect shared libraries, 7473*** $file_magic_cmd, produces output that libtool cannot recognize. 7474*** The result is that libtool may fail to recognize shared libraries 7475*** as such. This will affect the creation of libtool libraries that 7476*** depend on shared libraries, but programs linked with such libtool 7477*** libraries will work regardless of this problem. Nevertheless, you 7478*** may want to report the problem to your system manager and/or to 7479*** bug-libtool@gnu.org 7480 7481EOF 7482 fi ;; 7483 esac 7484 fi 7485 break 7486 fi 7487 done 7488 IFS="$lt_save_ifs" 7489 MAGIC_CMD="$lt_save_MAGIC_CMD" 7490 ;; 7491esac 7492fi 7493 7494MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7495if test -n "$MAGIC_CMD"; then 7496 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7497echo "${ECHO_T}$MAGIC_CMD" >&6; } 7498else 7499 { echo "$as_me:$LINENO: result: no" >&5 7500echo "${ECHO_T}no" >&6; } 7501fi 7502 7503if test -z "$lt_cv_path_MAGIC_CMD"; then 7504 if test -n "$ac_tool_prefix"; then 7505 { echo "$as_me:$LINENO: checking for file" >&5 7506echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7507if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7508 echo $ECHO_N "(cached) $ECHO_C" >&6 7509else 7510 case $MAGIC_CMD in 7511[\\/*] | ?:[\\/]*) 7512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7513 ;; 7514*) 7515 lt_save_MAGIC_CMD="$MAGIC_CMD" 7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7518 for ac_dir in $ac_dummy; do 7519 IFS="$lt_save_ifs" 7520 test -z "$ac_dir" && ac_dir=. 7521 if test -f $ac_dir/file; then 7522 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7523 if test -n "$file_magic_test_file"; then 7524 case $deplibs_check_method in 7525 "file_magic "*) 7526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7529 $EGREP "$file_magic_regex" > /dev/null; then 7530 : 7531 else 7532 cat <<EOF 1>&2 7533 7534*** Warning: the command libtool uses to detect shared libraries, 7535*** $file_magic_cmd, produces output that libtool cannot recognize. 7536*** The result is that libtool may fail to recognize shared libraries 7537*** as such. This will affect the creation of libtool libraries that 7538*** depend on shared libraries, but programs linked with such libtool 7539*** libraries will work regardless of this problem. Nevertheless, you 7540*** may want to report the problem to your system manager and/or to 7541*** bug-libtool@gnu.org 7542 7543EOF 7544 fi ;; 7545 esac 7546 fi 7547 break 7548 fi 7549 done 7550 IFS="$lt_save_ifs" 7551 MAGIC_CMD="$lt_save_MAGIC_CMD" 7552 ;; 7553esac 7554fi 7555 7556MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7557if test -n "$MAGIC_CMD"; then 7558 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7559echo "${ECHO_T}$MAGIC_CMD" >&6; } 7560else 7561 { echo "$as_me:$LINENO: result: no" >&5 7562echo "${ECHO_T}no" >&6; } 7563fi 7564 7565 else 7566 MAGIC_CMD=: 7567 fi 7568fi 7569 7570 fi 7571 ;; 7572esac 7573 7574enable_dlopen=yes 7575enable_win32_dll=yes 7576 7577# Check whether --enable-libtool-lock was given. 7578if test "${enable_libtool_lock+set}" = set; then 7579 enableval=$enable_libtool_lock; 7580fi 7581 7582test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7583 7584 7585# Check whether --with-pic was given. 7586if test "${with_pic+set}" = set; then 7587 withval=$with_pic; pic_mode="$withval" 7588else 7589 pic_mode=default 7590fi 7591 7592test -z "$pic_mode" && pic_mode=default 7593 7594# Use C for the default configuration in the libtool script 7595tagname= 7596lt_save_CC="$CC" 7597ac_ext=c 7598ac_cpp='$CPP $CPPFLAGS' 7599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7601ac_compiler_gnu=$ac_cv_c_compiler_gnu 7602 7603 7604# Source file extension for C test sources. 7605ac_ext=c 7606 7607# Object file extension for compiled C test sources. 7608objext=o 7609objext=$objext 7610 7611# Code to be used in simple compile tests 7612lt_simple_compile_test_code="int some_variable = 0;\n" 7613 7614# Code to be used in simple link tests 7615lt_simple_link_test_code='int main(){return(0);}\n' 7616 7617 7618# If no C compiler was specified, use CC. 7619LTCC=${LTCC-"$CC"} 7620 7621# If no C compiler flags were specified, use CFLAGS. 7622LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7623 7624# Allow CC to be a program name with arguments. 7625compiler=$CC 7626 7627 7628# save warnings/boilerplate of simple test code 7629ac_outfile=conftest.$ac_objext 7630printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7631eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7632_lt_compiler_boilerplate=`cat conftest.err` 7633$rm conftest* 7634 7635ac_outfile=conftest.$ac_objext 7636printf "$lt_simple_link_test_code" >conftest.$ac_ext 7637eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7638_lt_linker_boilerplate=`cat conftest.err` 7639$rm conftest* 7640 7641 7642 7643lt_prog_compiler_no_builtin_flag= 7644 7645if test "$GCC" = yes; then 7646 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7647 7648 7649{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7650echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7651if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7652 echo $ECHO_N "(cached) $ECHO_C" >&6 7653else 7654 lt_cv_prog_compiler_rtti_exceptions=no 7655 ac_outfile=conftest.$ac_objext 7656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7657 lt_compiler_flag="-fno-rtti -fno-exceptions" 7658 # Insert the option either (1) after the last *FLAGS variable, or 7659 # (2) before a word containing "conftest.", or (3) at the end. 7660 # Note that $ac_compile itself does not contain backslashes and begins 7661 # with a dollar sign (not a hyphen), so the echo should work correctly. 7662 # The option is referenced via a variable to avoid confusing sed. 7663 lt_compile=`echo "$ac_compile" | $SED \ 7664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7666 -e 's:$: $lt_compiler_flag:'` 7667 (eval echo "\"\$as_me:7667: $lt_compile\"" >&5) 7668 (eval "$lt_compile" 2>conftest.err) 7669 ac_status=$? 7670 cat conftest.err >&5 7671 echo "$as_me:7671: \$? = $ac_status" >&5 7672 if (exit $ac_status) && test -s "$ac_outfile"; then 7673 # The compiler can only warn and ignore the option if not recognized 7674 # So say no if there are warnings other than the usual output. 7675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7678 lt_cv_prog_compiler_rtti_exceptions=yes 7679 fi 7680 fi 7681 $rm conftest* 7682 7683fi 7684{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7685echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7686 7687if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7688 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7689else 7690 : 7691fi 7692 7693fi 7694 7695lt_prog_compiler_wl= 7696lt_prog_compiler_pic= 7697lt_prog_compiler_static= 7698 7699{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7700echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7701 7702 if test "$GCC" = yes; then 7703 lt_prog_compiler_wl='-Wl,' 7704 lt_prog_compiler_static='-static' 7705 7706 case $host_os in 7707 aix*) 7708 # All AIX code is PIC. 7709 if test "$host_cpu" = ia64; then 7710 # AIX 5 now supports IA64 processor 7711 lt_prog_compiler_static='-Bstatic' 7712 fi 7713 ;; 7714 7715 amigaos*) 7716 # FIXME: we need at least 68020 code to build shared libraries, but 7717 # adding the `-m68020' flag to GCC prevents building anything better, 7718 # like `-m68040'. 7719 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7720 ;; 7721 7722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7723 # PIC is the default for these OSes. 7724 ;; 7725 7726 mingw* | pw32* | os2*) 7727 # This hack is so that the source file can tell whether it is being 7728 # built for inclusion in a dll (and should export symbols for example). 7729 lt_prog_compiler_pic='-DDLL_EXPORT' 7730 ;; 7731 7732 darwin* | rhapsody*) 7733 # PIC is the default on this platform 7734 # Common symbols not allowed in MH_DYLIB files 7735 lt_prog_compiler_pic='-fno-common' 7736 ;; 7737 7738 interix3*) 7739 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7740 # Instead, we relocate shared libraries at runtime. 7741 ;; 7742 7743 msdosdjgpp*) 7744 # Just because we use GCC doesn't mean we suddenly get shared libraries 7745 # on systems that don't support them. 7746 lt_prog_compiler_can_build_shared=no 7747 enable_shared=no 7748 ;; 7749 7750 sysv4*MP*) 7751 if test -d /usr/nec; then 7752 lt_prog_compiler_pic=-Kconform_pic 7753 fi 7754 ;; 7755 7756 hpux*) 7757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7758 # not for PA HP-UX. 7759 case $host_cpu in 7760 hppa*64*|ia64*) 7761 # +Z the default 7762 ;; 7763 *) 7764 lt_prog_compiler_pic='-fPIC' 7765 ;; 7766 esac 7767 ;; 7768 7769 *) 7770 lt_prog_compiler_pic='-fPIC' 7771 ;; 7772 esac 7773 else 7774 # PORTME Check for flag to pass linker flags through the system compiler. 7775 case $host_os in 7776 aix*) 7777 lt_prog_compiler_wl='-Wl,' 7778 if test "$host_cpu" = ia64; then 7779 # AIX 5 now supports IA64 processor 7780 lt_prog_compiler_static='-Bstatic' 7781 else 7782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7783 fi 7784 ;; 7785 darwin*) 7786 # PIC is the default on this platform 7787 # Common symbols not allowed in MH_DYLIB files 7788 case $cc_basename in 7789 xlc*) 7790 lt_prog_compiler_pic='-qnocommon' 7791 lt_prog_compiler_wl='-Wl,' 7792 ;; 7793 esac 7794 ;; 7795 7796 mingw* | pw32* | os2*) 7797 # This hack is so that the source file can tell whether it is being 7798 # built for inclusion in a dll (and should export symbols for example). 7799 lt_prog_compiler_pic='-DDLL_EXPORT' 7800 ;; 7801 7802 hpux9* | hpux10* | hpux11*) 7803 lt_prog_compiler_wl='-Wl,' 7804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7805 # not for PA HP-UX. 7806 case $host_cpu in 7807 hppa*64*|ia64*) 7808 # +Z the default 7809 ;; 7810 *) 7811 lt_prog_compiler_pic='+Z' 7812 ;; 7813 esac 7814 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7815 lt_prog_compiler_static='${wl}-a ${wl}archive' 7816 ;; 7817 7818 irix5* | irix6* | nonstopux*) 7819 lt_prog_compiler_wl='-Wl,' 7820 # PIC (with -KPIC) is the default. 7821 lt_prog_compiler_static='-non_shared' 7822 ;; 7823 7824 newsos6) 7825 lt_prog_compiler_pic='-KPIC' 7826 lt_prog_compiler_static='-Bstatic' 7827 ;; 7828 7829 linux* | k*bsd*-gnu) 7830 case $cc_basename in 7831 icc* | ecc*) 7832 lt_prog_compiler_wl='-Wl,' 7833 lt_prog_compiler_pic='-KPIC' 7834 lt_prog_compiler_static='-static' 7835 ;; 7836 pgcc* | pgf77* | pgf90* | pgf95*) 7837 # Portland Group compilers (*not* the Pentium gcc compiler, 7838 # which looks to be a dead project) 7839 lt_prog_compiler_wl='-Wl,' 7840 lt_prog_compiler_pic='-fpic' 7841 lt_prog_compiler_static='-Bstatic' 7842 ;; 7843 ccc*) 7844 lt_prog_compiler_wl='-Wl,' 7845 # All Alpha code is PIC. 7846 lt_prog_compiler_static='-non_shared' 7847 ;; 7848 esac 7849 ;; 7850 7851 osf3* | osf4* | osf5*) 7852 lt_prog_compiler_wl='-Wl,' 7853 # All OSF/1 code is PIC. 7854 lt_prog_compiler_static='-non_shared' 7855 ;; 7856 7857 solaris*) 7858 lt_prog_compiler_pic='-KPIC' 7859 lt_prog_compiler_static='-Bstatic' 7860 case $cc_basename in 7861 f77* | f90* | f95*) 7862 lt_prog_compiler_wl='-Qoption ld ';; 7863 *) 7864 lt_prog_compiler_wl='-Wl,';; 7865 esac 7866 ;; 7867 7868 sunos4*) 7869 lt_prog_compiler_wl='-Qoption ld ' 7870 lt_prog_compiler_pic='-PIC' 7871 lt_prog_compiler_static='-Bstatic' 7872 ;; 7873 7874 sysv4 | sysv4.2uw2* | sysv4.3*) 7875 lt_prog_compiler_wl='-Wl,' 7876 lt_prog_compiler_pic='-KPIC' 7877 lt_prog_compiler_static='-Bstatic' 7878 ;; 7879 7880 sysv4*MP*) 7881 if test -d /usr/nec ;then 7882 lt_prog_compiler_pic='-Kconform_pic' 7883 lt_prog_compiler_static='-Bstatic' 7884 fi 7885 ;; 7886 7887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7888 lt_prog_compiler_wl='-Wl,' 7889 lt_prog_compiler_pic='-KPIC' 7890 lt_prog_compiler_static='-Bstatic' 7891 ;; 7892 7893 unicos*) 7894 lt_prog_compiler_wl='-Wl,' 7895 lt_prog_compiler_can_build_shared=no 7896 ;; 7897 7898 uts4*) 7899 lt_prog_compiler_pic='-pic' 7900 lt_prog_compiler_static='-Bstatic' 7901 ;; 7902 7903 *) 7904 lt_prog_compiler_can_build_shared=no 7905 ;; 7906 esac 7907 fi 7908 7909{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7910echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7911 7912# 7913# Check to make sure the PIC flag actually works. 7914# 7915if test -n "$lt_prog_compiler_pic"; then 7916 7917{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7918echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7919if test "${lt_prog_compiler_pic_works+set}" = set; then 7920 echo $ECHO_N "(cached) $ECHO_C" >&6 7921else 7922 lt_prog_compiler_pic_works=no 7923 ac_outfile=conftest.$ac_objext 7924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7926 # Insert the option either (1) after the last *FLAGS variable, or 7927 # (2) before a word containing "conftest.", or (3) at the end. 7928 # Note that $ac_compile itself does not contain backslashes and begins 7929 # with a dollar sign (not a hyphen), so the echo should work correctly. 7930 # The option is referenced via a variable to avoid confusing sed. 7931 lt_compile=`echo "$ac_compile" | $SED \ 7932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7934 -e 's:$: $lt_compiler_flag:'` 7935 (eval echo "\"\$as_me:7935: $lt_compile\"" >&5) 7936 (eval "$lt_compile" 2>conftest.err) 7937 ac_status=$? 7938 cat conftest.err >&5 7939 echo "$as_me:7939: \$? = $ac_status" >&5 7940 if (exit $ac_status) && test -s "$ac_outfile"; then 7941 # The compiler can only warn and ignore the option if not recognized 7942 # So say no if there are warnings other than the usual output. 7943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7946 lt_prog_compiler_pic_works=yes 7947 fi 7948 fi 7949 $rm conftest* 7950 7951fi 7952{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7953echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7954 7955if test x"$lt_prog_compiler_pic_works" = xyes; then 7956 case $lt_prog_compiler_pic in 7957 "" | " "*) ;; 7958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7959 esac 7960else 7961 lt_prog_compiler_pic= 7962 lt_prog_compiler_can_build_shared=no 7963fi 7964 7965fi 7966case $host_os in 7967 # For platforms which do not support PIC, -DPIC is meaningless: 7968 *djgpp*) 7969 lt_prog_compiler_pic= 7970 ;; 7971 *) 7972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7973 ;; 7974esac 7975 7976# 7977# Check to make sure the static flag actually works. 7978# 7979wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7980{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7981echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7982if test "${lt_prog_compiler_static_works+set}" = set; then 7983 echo $ECHO_N "(cached) $ECHO_C" >&6 7984else 7985 lt_prog_compiler_static_works=no 7986 save_LDFLAGS="$LDFLAGS" 7987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7988 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7990 # The linker can only warn and ignore the option if not recognized 7991 # So say no if there are warnings 7992 if test -s conftest.err; then 7993 # Append any errors to the config.log. 7994 cat conftest.err 1>&5 7995 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7997 if diff conftest.exp conftest.er2 >/dev/null; then 7998 lt_prog_compiler_static_works=yes 7999 fi 8000 else 8001 lt_prog_compiler_static_works=yes 8002 fi 8003 fi 8004 $rm conftest* 8005 LDFLAGS="$save_LDFLAGS" 8006 8007fi 8008{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8009echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8010 8011if test x"$lt_prog_compiler_static_works" = xyes; then 8012 : 8013else 8014 lt_prog_compiler_static= 8015fi 8016 8017 8018{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8019echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8020if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8021 echo $ECHO_N "(cached) $ECHO_C" >&6 8022else 8023 lt_cv_prog_compiler_c_o=no 8024 $rm -r conftest 2>/dev/null 8025 mkdir conftest 8026 cd conftest 8027 mkdir out 8028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8029 8030 lt_compiler_flag="-o out/conftest2.$ac_objext" 8031 # Insert the option either (1) after the last *FLAGS variable, or 8032 # (2) before a word containing "conftest.", or (3) at the end. 8033 # Note that $ac_compile itself does not contain backslashes and begins 8034 # with a dollar sign (not a hyphen), so the echo should work correctly. 8035 lt_compile=`echo "$ac_compile" | $SED \ 8036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8038 -e 's:$: $lt_compiler_flag:'` 8039 (eval echo "\"\$as_me:8039: $lt_compile\"" >&5) 8040 (eval "$lt_compile" 2>out/conftest.err) 8041 ac_status=$? 8042 cat out/conftest.err >&5 8043 echo "$as_me:8043: \$? = $ac_status" >&5 8044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8045 then 8046 # The compiler can only warn and ignore the option if not recognized 8047 # So say no if there are warnings 8048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8051 lt_cv_prog_compiler_c_o=yes 8052 fi 8053 fi 8054 chmod u+w . 2>&5 8055 $rm conftest* 8056 # SGI C++ compiler will create directory out/ii_files/ for 8057 # template instantiation 8058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8059 $rm out/* && rmdir out 8060 cd .. 8061 rmdir conftest 8062 $rm conftest* 8063 8064fi 8065{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8066echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8067 8068 8069hard_links="nottested" 8070if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8071 # do not overwrite the value of need_locks provided by the user 8072 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8073echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8074 hard_links=yes 8075 $rm conftest* 8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8077 touch conftest.a 8078 ln conftest.a conftest.b 2>&5 || hard_links=no 8079 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8080 { echo "$as_me:$LINENO: result: $hard_links" >&5 8081echo "${ECHO_T}$hard_links" >&6; } 8082 if test "$hard_links" = no; then 8083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8084echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8085 need_locks=warn 8086 fi 8087else 8088 need_locks=no 8089fi 8090 8091{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8093 8094 runpath_var= 8095 allow_undefined_flag= 8096 enable_shared_with_static_runtimes=no 8097 archive_cmds= 8098 archive_expsym_cmds= 8099 old_archive_From_new_cmds= 8100 old_archive_from_expsyms_cmds= 8101 export_dynamic_flag_spec= 8102 whole_archive_flag_spec= 8103 thread_safe_flag_spec= 8104 hardcode_libdir_flag_spec= 8105 hardcode_libdir_flag_spec_ld= 8106 hardcode_libdir_separator= 8107 hardcode_direct=no 8108 hardcode_minus_L=no 8109 hardcode_shlibpath_var=unsupported 8110 link_all_deplibs=unknown 8111 hardcode_automatic=no 8112 module_cmds= 8113 module_expsym_cmds= 8114 always_export_symbols=no 8115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8116 # include_expsyms should be a list of space-separated symbols to be *always* 8117 # included in the symbol list 8118 include_expsyms= 8119 # exclude_expsyms can be an extended regexp of symbols to exclude 8120 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8122 # as well as any symbol that contains `d'. 8123 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8125 # platforms (ab)use it in PIC code, but their linkers get confused if 8126 # the symbol is explicitly referenced. Since portable code cannot 8127 # rely on this symbol name, it's probably fine to never include it in 8128 # preloaded symbol tables. 8129 extract_expsyms_cmds= 8130 # Just being paranoid about ensuring that cc_basename is set. 8131 for cc_temp in $compiler""; do 8132 case $cc_temp in 8133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8135 \-*) ;; 8136 *) break;; 8137 esac 8138done 8139cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8140 8141 case $host_os in 8142 cygwin* | mingw* | pw32*) 8143 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8144 # When not using gcc, we currently assume that we are using 8145 # Microsoft Visual C++. 8146 if test "$GCC" != yes; then 8147 with_gnu_ld=no 8148 fi 8149 ;; 8150 interix*) 8151 # we just hope/assume this is gcc and not c89 (= MSVC++) 8152 with_gnu_ld=yes 8153 ;; 8154 openbsd*) 8155 with_gnu_ld=no 8156 ;; 8157 esac 8158 8159 ld_shlibs=yes 8160 if test "$with_gnu_ld" = yes; then 8161 # If archive_cmds runs LD, not CC, wlarc should be empty 8162 wlarc='${wl}' 8163 8164 # Set some defaults for GNU ld with shared library support. These 8165 # are reset later if shared libraries are not supported. Putting them 8166 # here allows them to be overridden if necessary. 8167 runpath_var=LD_RUN_PATH 8168 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8169 export_dynamic_flag_spec='${wl}--export-dynamic' 8170 # ancient GNU ld didn't support --whole-archive et. al. 8171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8172 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8173 else 8174 whole_archive_flag_spec= 8175 fi 8176 supports_anon_versioning=no 8177 case `$LD -v 2>/dev/null` in 8178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8181 *\ 2.11.*) ;; # other 2.11 versions 8182 *) supports_anon_versioning=yes ;; 8183 esac 8184 8185 # See if GNU ld supports shared libraries. 8186 case $host_os in 8187 aix3* | aix4* | aix5*) 8188 # On AIX/PPC, the GNU linker is very broken 8189 if test "$host_cpu" != ia64; then 8190 ld_shlibs=no 8191 cat <<EOF 1>&2 8192 8193*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8194*** to be unable to reliably create shared libraries on AIX. 8195*** Therefore, libtool is disabling shared libraries support. If you 8196*** really care for shared libraries, you may want to modify your PATH 8197*** so that a non-GNU linker is found, and then restart. 8198 8199EOF 8200 fi 8201 ;; 8202 8203 amigaos*) 8204 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)' 8205 hardcode_libdir_flag_spec='-L$libdir' 8206 hardcode_minus_L=yes 8207 8208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8209 # that the semantics of dynamic libraries on AmigaOS, at least up 8210 # to version 4, is to share data among multiple programs linked 8211 # with the same dynamic library. Since this doesn't match the 8212 # behavior of shared libraries on other platforms, we can't use 8213 # them. 8214 ld_shlibs=no 8215 ;; 8216 8217 beos*) 8218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8219 allow_undefined_flag=unsupported 8220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8221 # support --undefined. This deserves some investigation. FIXME 8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8223 else 8224 ld_shlibs=no 8225 fi 8226 ;; 8227 8228 cygwin* | mingw* | pw32*) 8229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8230 # as there is no search path for DLLs. 8231 hardcode_libdir_flag_spec='-L$libdir' 8232 allow_undefined_flag=unsupported 8233 always_export_symbols=no 8234 enable_shared_with_static_runtimes=yes 8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8236 8237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8239 # If the export-symbols file already is a .def file (1st line 8240 # is EXPORTS), use it as is; otherwise, prepend... 8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8242 cp $export_symbols $output_objdir/$soname.def; 8243 else 8244 echo EXPORTS > $output_objdir/$soname.def; 8245 cat $export_symbols >> $output_objdir/$soname.def; 8246 fi~ 8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8248 else 8249 ld_shlibs=no 8250 fi 8251 ;; 8252 8253 interix3*) 8254 hardcode_direct=no 8255 hardcode_shlibpath_var=no 8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8257 export_dynamic_flag_spec='${wl}-E' 8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8259 # Instead, shared libraries are loaded at an image base (0x10000000 by 8260 # default) and relocated if they conflict, which is a slow very memory 8261 # consuming and fragmenting process. To avoid this, we pick a random, 8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8265 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' 8266 ;; 8267 8268 linux* | k*bsd*-gnu) 8269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8270 tmp_addflag= 8271 case $cc_basename,$host_cpu in 8272 pgcc*) # Portland Group C compiler 8273 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' 8274 tmp_addflag=' $pic_flag' 8275 ;; 8276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8277 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' 8278 tmp_addflag=' $pic_flag -Mnomain' ;; 8279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8280 tmp_addflag=' -i_dynamic' ;; 8281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8282 tmp_addflag=' -i_dynamic -nofor_main' ;; 8283 ifc* | ifort*) # Intel Fortran compiler 8284 tmp_addflag=' -nofor_main' ;; 8285 esac 8286 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8287 8288 if test $supports_anon_versioning = yes; then 8289 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8291 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8292 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8293 fi 8294 link_all_deplibs=no 8295 else 8296 ld_shlibs=no 8297 fi 8298 ;; 8299 8300 netbsd* | netbsdelf*-gnu) 8301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8303 wlarc= 8304 else 8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8307 fi 8308 ;; 8309 8310 solaris*) 8311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8312 ld_shlibs=no 8313 cat <<EOF 1>&2 8314 8315*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8316*** create shared libraries on Solaris systems. Therefore, libtool 8317*** is disabling shared libraries support. We urge you to upgrade GNU 8318*** binutils to release 2.9.1 or newer. Another option is to modify 8319*** your PATH or compiler configuration so that the native linker is 8320*** used, and then restart. 8321 8322EOF 8323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8326 else 8327 ld_shlibs=no 8328 fi 8329 ;; 8330 8331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8332 case `$LD -v 2>&1` in 8333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8334 ld_shlibs=no 8335 cat <<_LT_EOF 1>&2 8336 8337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8338*** reliably create shared libraries on SCO systems. Therefore, libtool 8339*** is disabling shared libraries support. We urge you to upgrade GNU 8340*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8341*** your PATH or compiler configuration so that the native linker is 8342*** used, and then restart. 8343 8344_LT_EOF 8345 ;; 8346 *) 8347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8348 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8351 else 8352 ld_shlibs=no 8353 fi 8354 ;; 8355 esac 8356 ;; 8357 8358 sunos4*) 8359 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8360 wlarc= 8361 hardcode_direct=yes 8362 hardcode_shlibpath_var=no 8363 ;; 8364 8365 *) 8366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8369 else 8370 ld_shlibs=no 8371 fi 8372 ;; 8373 esac 8374 8375 if test "$ld_shlibs" = no; then 8376 runpath_var= 8377 hardcode_libdir_flag_spec= 8378 export_dynamic_flag_spec= 8379 whole_archive_flag_spec= 8380 fi 8381 else 8382 # PORTME fill in a description of your system's linker (not GNU ld) 8383 case $host_os in 8384 aix3*) 8385 allow_undefined_flag=unsupported 8386 always_export_symbols=yes 8387 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' 8388 # Note: this linker hardcodes the directories in LIBPATH if there 8389 # are no directories specified by -L. 8390 hardcode_minus_L=yes 8391 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8392 # Neither direct hardcoding nor static linking is supported with a 8393 # broken collect2. 8394 hardcode_direct=unsupported 8395 fi 8396 ;; 8397 8398 aix4* | aix5*) 8399 if test "$host_cpu" = ia64; then 8400 # On IA64, the linker does run time linking by default, so we don't 8401 # have to do anything special. 8402 aix_use_runtimelinking=no 8403 exp_sym_flag='-Bexport' 8404 no_entry_flag="" 8405 else 8406 # If we're using GNU nm, then we don't want the "-C" option. 8407 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8409 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' 8410 else 8411 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' 8412 fi 8413 aix_use_runtimelinking=no 8414 8415 # Test if we are trying to use run time linking or normal 8416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8417 # need to do runtime linking. 8418 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8419 for ld_flag in $LDFLAGS; do 8420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8421 aix_use_runtimelinking=yes 8422 break 8423 fi 8424 done 8425 ;; 8426 esac 8427 8428 exp_sym_flag='-bexport' 8429 no_entry_flag='-bnoentry' 8430 fi 8431 8432 # When large executables or shared objects are built, AIX ld can 8433 # have problems creating the table of contents. If linking a library 8434 # or program results in "error TOC overflow" add -mminimal-toc to 8435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8437 8438 archive_cmds='' 8439 hardcode_direct=yes 8440 hardcode_libdir_separator=':' 8441 link_all_deplibs=yes 8442 8443 if test "$GCC" = yes; then 8444 case $host_os in aix4.[012]|aix4.[012].*) 8445 # We only want to do this on AIX 4.2 and lower, the check 8446 # below for broken collect2 doesn't work under 4.3+ 8447 collect2name=`${CC} -print-prog-name=collect2` 8448 if test -f "$collect2name" && \ 8449 strings "$collect2name" | grep resolve_lib_name >/dev/null 8450 then 8451 # We have reworked collect2 8452 hardcode_direct=yes 8453 else 8454 # We have old collect2 8455 hardcode_direct=unsupported 8456 # It fails to find uninstalled libraries when the uninstalled 8457 # path is not listed in the libpath. Setting hardcode_minus_L 8458 # to unsupported forces relinking 8459 hardcode_minus_L=yes 8460 hardcode_libdir_flag_spec='-L$libdir' 8461 hardcode_libdir_separator= 8462 fi 8463 ;; 8464 esac 8465 shared_flag='-shared' 8466 if test "$aix_use_runtimelinking" = yes; then 8467 shared_flag="$shared_flag "'${wl}-G' 8468 fi 8469 else 8470 # not using gcc 8471 if test "$host_cpu" = ia64; then 8472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8473 # chokes on -Wl,-G. The following line is correct: 8474 shared_flag='-G' 8475 else 8476 if test "$aix_use_runtimelinking" = yes; then 8477 shared_flag='${wl}-G' 8478 else 8479 shared_flag='${wl}-bM:SRE' 8480 fi 8481 fi 8482 fi 8483 8484 # It seems that -bexpall does not export symbols beginning with 8485 # underscore (_), so it is better to generate a list of symbols to export. 8486 always_export_symbols=yes 8487 if test "$aix_use_runtimelinking" = yes; then 8488 # Warning - without using the other runtime loading flags (-brtl), 8489 # -berok will link without error, but may produce a broken library. 8490 allow_undefined_flag='-berok' 8491 # Determine the default libpath from the value encoded in an empty executable. 8492 cat >conftest.$ac_ext <<_ACEOF 8493/* confdefs.h. */ 8494_ACEOF 8495cat confdefs.h >>conftest.$ac_ext 8496cat >>conftest.$ac_ext <<_ACEOF 8497/* end confdefs.h. */ 8498 8499int 8500main () 8501{ 8502 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507rm -f conftest.$ac_objext conftest$ac_exeext 8508if { (ac_try="$ac_link" 8509case "(($ac_try" in 8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8511 *) ac_try_echo=$ac_try;; 8512esac 8513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8514 (eval "$ac_link") 2>conftest.er1 8515 ac_status=$? 8516 grep -v '^ *+' conftest.er1 >conftest.err 8517 rm -f conftest.er1 8518 cat conftest.err >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8520 (exit $ac_status); } && { 8521 test -z "$ac_c_werror_flag" || 8522 test ! -s conftest.err 8523 } && test -s conftest$ac_exeext && 8524 $as_test_x conftest$ac_exeext; then 8525 8526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8527}'` 8528# Check for a 64-bit object if we didn't find anything. 8529if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8530}'`; fi 8531else 8532 echo "$as_me: failed program was:" >&5 8533sed 's/^/| /' conftest.$ac_ext >&5 8534 8535 8536fi 8537 8538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8539 conftest$ac_exeext conftest.$ac_ext 8540if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8541 8542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8543 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" 8544 else 8545 if test "$host_cpu" = ia64; then 8546 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8547 allow_undefined_flag="-z nodefs" 8548 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" 8549 else 8550 # Determine the default libpath from the value encoded in an empty executable. 8551 cat >conftest.$ac_ext <<_ACEOF 8552/* confdefs.h. */ 8553_ACEOF 8554cat confdefs.h >>conftest.$ac_ext 8555cat >>conftest.$ac_ext <<_ACEOF 8556/* end confdefs.h. */ 8557 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566rm -f conftest.$ac_objext conftest$ac_exeext 8567if { (ac_try="$ac_link" 8568case "(($ac_try" in 8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8570 *) ac_try_echo=$ac_try;; 8571esac 8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8573 (eval "$ac_link") 2>conftest.er1 8574 ac_status=$? 8575 grep -v '^ *+' conftest.er1 >conftest.err 8576 rm -f conftest.er1 8577 cat conftest.err >&5 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); } && { 8580 test -z "$ac_c_werror_flag" || 8581 test ! -s conftest.err 8582 } && test -s conftest$ac_exeext && 8583 $as_test_x conftest$ac_exeext; then 8584 8585aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8586}'` 8587# Check for a 64-bit object if we didn't find anything. 8588if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8589}'`; fi 8590else 8591 echo "$as_me: failed program was:" >&5 8592sed 's/^/| /' conftest.$ac_ext >&5 8593 8594 8595fi 8596 8597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8598 conftest$ac_exeext conftest.$ac_ext 8599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8600 8601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8602 # Warning - without using the other run time loading flags, 8603 # -berok will link without error, but may produce a broken library. 8604 no_undefined_flag=' ${wl}-bernotok' 8605 allow_undefined_flag=' ${wl}-berok' 8606 # Exported symbols can be pulled into shared objects from archives 8607 whole_archive_flag_spec='$convenience' 8608 archive_cmds_need_lc=yes 8609 # This is similar to how AIX traditionally builds its shared libraries. 8610 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' 8611 fi 8612 fi 8613 ;; 8614 8615 amigaos*) 8616 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)' 8617 hardcode_libdir_flag_spec='-L$libdir' 8618 hardcode_minus_L=yes 8619 # see comment about different semantics on the GNU ld section 8620 ld_shlibs=no 8621 ;; 8622 8623 bsdi[45]*) 8624 export_dynamic_flag_spec=-rdynamic 8625 ;; 8626 8627 cygwin* | mingw* | pw32*) 8628 # When not using gcc, we currently assume that we are using 8629 # Microsoft Visual C++. 8630 # hardcode_libdir_flag_spec is actually meaningless, as there is 8631 # no search path for DLLs. 8632 hardcode_libdir_flag_spec=' ' 8633 allow_undefined_flag=unsupported 8634 # Tell ltmain to make .lib files, not .a files. 8635 libext=lib 8636 # Tell ltmain to make .dll files, not .so files. 8637 shrext_cmds=".dll" 8638 # FIXME: Setting linknames here is a bad hack. 8639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8640 # The linker will automatically build a .lib file if we build a DLL. 8641 old_archive_From_new_cmds='true' 8642 # FIXME: Should let the user specify the lib program. 8643 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8644 fix_srcfile_path='`cygpath -w "$srcfile"`' 8645 enable_shared_with_static_runtimes=yes 8646 ;; 8647 8648 darwin* | rhapsody*) 8649 case $host_os in 8650 rhapsody* | darwin1.[012]) 8651 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8652 ;; 8653 *) # Darwin 1.3 on 8654 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8655 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8656 else 8657 case ${MACOSX_DEPLOYMENT_TARGET} in 8658 10.[012]) 8659 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8660 ;; 8661 10.*) 8662 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8663 ;; 8664 esac 8665 fi 8666 ;; 8667 esac 8668 archive_cmds_need_lc=no 8669 hardcode_direct=no 8670 hardcode_automatic=yes 8671 hardcode_shlibpath_var=unsupported 8672 whole_archive_flag_spec='' 8673 link_all_deplibs=yes 8674 if test "$GCC" = yes ; then 8675 output_verbose_link_cmd='echo' 8676 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8677 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8679 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}' 8680 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}' 8681 else 8682 case $cc_basename in 8683 xlc*) 8684 output_verbose_link_cmd='echo' 8685 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8686 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8688 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8689 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}' 8690 ;; 8691 *) 8692 ld_shlibs=no 8693 ;; 8694 esac 8695 fi 8696 ;; 8697 8698 dgux*) 8699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8700 hardcode_libdir_flag_spec='-L$libdir' 8701 hardcode_shlibpath_var=no 8702 ;; 8703 8704 freebsd1*) 8705 ld_shlibs=no 8706 ;; 8707 8708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8709 # support. Future versions do this automatically, but an explicit c++rt0.o 8710 # does not break anything, and helps significantly (at the cost of a little 8711 # extra space). 8712 freebsd2.2*) 8713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8714 hardcode_libdir_flag_spec='-R$libdir' 8715 hardcode_direct=yes 8716 hardcode_shlibpath_var=no 8717 ;; 8718 8719 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8720 freebsd2*) 8721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8722 hardcode_direct=yes 8723 hardcode_minus_L=yes 8724 hardcode_shlibpath_var=no 8725 ;; 8726 8727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8728 freebsd* | dragonfly*) 8729 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8730 hardcode_libdir_flag_spec='-R$libdir' 8731 hardcode_direct=yes 8732 hardcode_shlibpath_var=no 8733 ;; 8734 8735 hpux9*) 8736 if test "$GCC" = yes; then 8737 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' 8738 else 8739 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' 8740 fi 8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8742 hardcode_libdir_separator=: 8743 hardcode_direct=yes 8744 8745 # hardcode_minus_L: Not really in the search PATH, 8746 # but as the default location of the library. 8747 hardcode_minus_L=yes 8748 export_dynamic_flag_spec='${wl}-E' 8749 ;; 8750 8751 hpux10*) 8752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8754 else 8755 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8756 fi 8757 if test "$with_gnu_ld" = no; then 8758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8759 hardcode_libdir_separator=: 8760 8761 hardcode_direct=yes 8762 export_dynamic_flag_spec='${wl}-E' 8763 8764 # hardcode_minus_L: Not really in the search PATH, 8765 # but as the default location of the library. 8766 hardcode_minus_L=yes 8767 fi 8768 ;; 8769 8770 hpux11*) 8771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8772 case $host_cpu in 8773 hppa*64*) 8774 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8775 ;; 8776 ia64*) 8777 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8778 ;; 8779 *) 8780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8781 ;; 8782 esac 8783 else 8784 case $host_cpu in 8785 hppa*64*) 8786 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8787 ;; 8788 ia64*) 8789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8790 ;; 8791 *) 8792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8793 ;; 8794 esac 8795 fi 8796 if test "$with_gnu_ld" = no; then 8797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8798 hardcode_libdir_separator=: 8799 8800 case $host_cpu in 8801 hppa*64*|ia64*) 8802 hardcode_libdir_flag_spec_ld='+b $libdir' 8803 hardcode_direct=no 8804 hardcode_shlibpath_var=no 8805 ;; 8806 *) 8807 hardcode_direct=yes 8808 export_dynamic_flag_spec='${wl}-E' 8809 8810 # hardcode_minus_L: Not really in the search PATH, 8811 # but as the default location of the library. 8812 hardcode_minus_L=yes 8813 ;; 8814 esac 8815 fi 8816 ;; 8817 8818 irix5* | irix6* | nonstopux*) 8819 if test "$GCC" = yes; then 8820 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' 8821 else 8822 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' 8823 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8824 fi 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8826 hardcode_libdir_separator=: 8827 link_all_deplibs=yes 8828 ;; 8829 8830 netbsd* | netbsdelf*-gnu) 8831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8833 else 8834 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8835 fi 8836 hardcode_libdir_flag_spec='-R$libdir' 8837 hardcode_direct=yes 8838 hardcode_shlibpath_var=no 8839 ;; 8840 8841 newsos6) 8842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8843 hardcode_direct=yes 8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8845 hardcode_libdir_separator=: 8846 hardcode_shlibpath_var=no 8847 ;; 8848 8849 openbsd*) 8850 hardcode_direct=yes 8851 hardcode_shlibpath_var=no 8852 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8854 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8856 export_dynamic_flag_spec='${wl}-E' 8857 else 8858 case $host_os in 8859 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8861 hardcode_libdir_flag_spec='-R$libdir' 8862 ;; 8863 *) 8864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8866 ;; 8867 esac 8868 fi 8869 ;; 8870 8871 os2*) 8872 hardcode_libdir_flag_spec='-L$libdir' 8873 hardcode_minus_L=yes 8874 allow_undefined_flag=unsupported 8875 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' 8876 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8877 ;; 8878 8879 osf3*) 8880 if test "$GCC" = yes; then 8881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8882 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' 8883 else 8884 allow_undefined_flag=' -expect_unresolved \*' 8885 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' 8886 fi 8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8888 hardcode_libdir_separator=: 8889 ;; 8890 8891 osf4* | osf5*) # as osf3* with the addition of -msym flag 8892 if test "$GCC" = yes; then 8893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8894 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' 8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8896 else 8897 allow_undefined_flag=' -expect_unresolved \*' 8898 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' 8899 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8900 $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' 8901 8902 # Both c and cxx compiler support -rpath directly 8903 hardcode_libdir_flag_spec='-rpath $libdir' 8904 fi 8905 hardcode_libdir_separator=: 8906 ;; 8907 8908 solaris*) 8909 no_undefined_flag=' -z text' 8910 if test "$GCC" = yes; then 8911 wlarc='${wl}' 8912 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8913 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8914 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8915 else 8916 wlarc='' 8917 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8918 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8920 fi 8921 hardcode_libdir_flag_spec='-R$libdir' 8922 hardcode_shlibpath_var=no 8923 case $host_os in 8924 solaris2.[0-5] | solaris2.[0-5].*) ;; 8925 *) 8926 # The compiler driver will combine linker options so we 8927 # cannot just pass the convience library names through 8928 # without $wl, iff we do not link with $LD. 8929 # Luckily, gcc supports the same syntax we need for Sun Studio. 8930 # Supported since Solaris 2.6 (maybe 2.5.1?) 8931 case $wlarc in 8932 '') 8933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8934 *) 8935 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8936 esac ;; 8937 esac 8938 link_all_deplibs=yes 8939 ;; 8940 8941 sunos4*) 8942 if test "x$host_vendor" = xsequent; then 8943 # Use $CC to link under sequent, because it throws in some extra .o 8944 # files that make .init and .fini sections work. 8945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8946 else 8947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8948 fi 8949 hardcode_libdir_flag_spec='-L$libdir' 8950 hardcode_direct=yes 8951 hardcode_minus_L=yes 8952 hardcode_shlibpath_var=no 8953 ;; 8954 8955 sysv4) 8956 case $host_vendor in 8957 sni) 8958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8959 hardcode_direct=yes # is this really true??? 8960 ;; 8961 siemens) 8962 ## LD is ld it makes a PLAMLIB 8963 ## CC just makes a GrossModule. 8964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8965 reload_cmds='$CC -r -o $output$reload_objs' 8966 hardcode_direct=no 8967 ;; 8968 motorola) 8969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8971 ;; 8972 esac 8973 runpath_var='LD_RUN_PATH' 8974 hardcode_shlibpath_var=no 8975 ;; 8976 8977 sysv4.3*) 8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8979 hardcode_shlibpath_var=no 8980 export_dynamic_flag_spec='-Bexport' 8981 ;; 8982 8983 sysv4*MP*) 8984 if test -d /usr/nec; then 8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8986 hardcode_shlibpath_var=no 8987 runpath_var=LD_RUN_PATH 8988 hardcode_runpath_var=yes 8989 ld_shlibs=yes 8990 fi 8991 ;; 8992 8993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8994 no_undefined_flag='${wl}-z,text' 8995 archive_cmds_need_lc=no 8996 hardcode_shlibpath_var=no 8997 runpath_var='LD_RUN_PATH' 8998 8999 if test "$GCC" = yes; then 9000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9002 else 9003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9005 fi 9006 ;; 9007 9008 sysv5* | sco3.2v5* | sco5v6*) 9009 # Note: We can NOT use -z defs as we might desire, because we do not 9010 # link with -lc, and that would cause any symbols used from libc to 9011 # always be unresolved, which means just about no library would 9012 # ever link correctly. If we're not using GNU ld we use -z text 9013 # though, which does catch some bad symbols but isn't as heavy-handed 9014 # as -z defs. 9015 no_undefined_flag='${wl}-z,text' 9016 allow_undefined_flag='${wl}-z,nodefs' 9017 archive_cmds_need_lc=no 9018 hardcode_shlibpath_var=no 9019 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9020 hardcode_libdir_separator=':' 9021 link_all_deplibs=yes 9022 export_dynamic_flag_spec='${wl}-Bexport' 9023 runpath_var='LD_RUN_PATH' 9024 9025 if test "$GCC" = yes; then 9026 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9028 else 9029 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9031 fi 9032 ;; 9033 9034 uts4*) 9035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9036 hardcode_libdir_flag_spec='-L$libdir' 9037 hardcode_shlibpath_var=no 9038 ;; 9039 9040 *) 9041 ld_shlibs=no 9042 ;; 9043 esac 9044 fi 9045 9046{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9047echo "${ECHO_T}$ld_shlibs" >&6; } 9048test "$ld_shlibs" = no && can_build_shared=no 9049 9050# 9051# Do we need to explicitly link libc? 9052# 9053case "x$archive_cmds_need_lc" in 9054x|xyes) 9055 # Assume -lc should be added 9056 archive_cmds_need_lc=yes 9057 9058 if test "$enable_shared" = yes && test "$GCC" = yes; then 9059 case $archive_cmds in 9060 *'~'*) 9061 # FIXME: we may have to deal with multi-command sequences. 9062 ;; 9063 '$CC '*) 9064 # Test whether the compiler implicitly links with -lc since on some 9065 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9066 # to ld, don't add -lc before -lgcc. 9067 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9069 $rm conftest* 9070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9071 9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9073 (eval $ac_compile) 2>&5 9074 ac_status=$? 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9076 (exit $ac_status); } 2>conftest.err; then 9077 soname=conftest 9078 lib=conftest 9079 libobjs=conftest.$ac_objext 9080 deplibs= 9081 wl=$lt_prog_compiler_wl 9082 pic_flag=$lt_prog_compiler_pic 9083 compiler_flags=-v 9084 linker_flags=-v 9085 verstring= 9086 output_objdir=. 9087 libname=conftest 9088 lt_save_allow_undefined_flag=$allow_undefined_flag 9089 allow_undefined_flag= 9090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9091 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9092 ac_status=$? 9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9094 (exit $ac_status); } 9095 then 9096 archive_cmds_need_lc=no 9097 else 9098 archive_cmds_need_lc=yes 9099 fi 9100 allow_undefined_flag=$lt_save_allow_undefined_flag 9101 else 9102 cat conftest.err 1>&5 9103 fi 9104 $rm conftest* 9105 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9106echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9107 ;; 9108 esac 9109 fi 9110 ;; 9111esac 9112 9113{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9114echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9115library_names_spec= 9116libname_spec='lib$name' 9117soname_spec= 9118shrext_cmds=".so" 9119postinstall_cmds= 9120postuninstall_cmds= 9121finish_cmds= 9122finish_eval= 9123shlibpath_var= 9124shlibpath_overrides_runpath=unknown 9125version_type=none 9126dynamic_linker="$host_os ld.so" 9127sys_lib_dlsearch_path_spec="/lib /usr/lib" 9128if test "$GCC" = yes; then 9129 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9130 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9131 # if the path contains ";" then we assume it to be the separator 9132 # otherwise default to the standard path separator (i.e. ":") - it is 9133 # assumed that no part of a normal pathname contains ";" but that should 9134 # okay in the real world where ";" in dirpaths is itself problematic. 9135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9136 else 9137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9138 fi 9139else 9140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9141fi 9142need_lib_prefix=unknown 9143hardcode_into_libs=no 9144 9145# when you set need_version to no, make sure it does not cause -set_version 9146# flags to be left without arguments 9147need_version=unknown 9148 9149case $host_os in 9150aix3*) 9151 version_type=linux 9152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9153 shlibpath_var=LIBPATH 9154 9155 # AIX 3 has no versioning support, so we append a major version to the name. 9156 soname_spec='${libname}${release}${shared_ext}$major' 9157 ;; 9158 9159aix4* | aix5*) 9160 version_type=linux 9161 need_lib_prefix=no 9162 need_version=no 9163 hardcode_into_libs=yes 9164 if test "$host_cpu" = ia64; then 9165 # AIX 5 supports IA64 9166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9167 shlibpath_var=LD_LIBRARY_PATH 9168 else 9169 # With GCC up to 2.95.x, collect2 would create an import file 9170 # for dependence libraries. The import file would start with 9171 # the line `#! .'. This would cause the generated library to 9172 # depend on `.', always an invalid library. This was fixed in 9173 # development snapshots of GCC prior to 3.0. 9174 case $host_os in 9175 aix4 | aix4.[01] | aix4.[01].*) 9176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9177 echo ' yes ' 9178 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9179 : 9180 else 9181 can_build_shared=no 9182 fi 9183 ;; 9184 esac 9185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9186 # soname into executable. Probably we can add versioning support to 9187 # collect2, so additional links can be useful in future. 9188 if test "$aix_use_runtimelinking" = yes; then 9189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9190 # instead of lib<name>.a to let people know that these are not 9191 # typical AIX shared libraries. 9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9193 else 9194 # We preserve .a as extension for shared libraries through AIX4.2 9195 # and later when we are not doing run time linking. 9196 library_names_spec='${libname}${release}.a $libname.a' 9197 soname_spec='${libname}${release}${shared_ext}$major' 9198 fi 9199 shlibpath_var=LIBPATH 9200 fi 9201 ;; 9202 9203amigaos*) 9204 library_names_spec='$libname.ixlibrary $libname.a' 9205 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9206 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' 9207 ;; 9208 9209beos*) 9210 library_names_spec='${libname}${shared_ext}' 9211 dynamic_linker="$host_os ld.so" 9212 shlibpath_var=LIBRARY_PATH 9213 ;; 9214 9215bsdi[45]*) 9216 version_type=linux 9217 need_version=no 9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9219 soname_spec='${libname}${release}${shared_ext}$major' 9220 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9221 shlibpath_var=LD_LIBRARY_PATH 9222 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9223 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9224 # the default ld.so.conf also contains /usr/contrib/lib and 9225 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9226 # libtool to hard-code these into programs 9227 ;; 9228 9229cygwin* | mingw* | pw32*) 9230 version_type=windows 9231 shrext_cmds=".dll" 9232 need_version=no 9233 need_lib_prefix=no 9234 9235 case $GCC,$host_os in 9236 yes,cygwin* | yes,mingw* | yes,pw32*) 9237 library_names_spec='$libname.dll.a' 9238 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9239 postinstall_cmds='base_file=`basename \${file}`~ 9240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9241 dldir=$destdir/`dirname \$dlpath`~ 9242 test -d \$dldir || mkdir -p \$dldir~ 9243 $install_prog $dir/$dlname \$dldir/$dlname~ 9244 chmod a+x \$dldir/$dlname' 9245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9246 dlpath=$dir/\$dldll~ 9247 $rm \$dlpath' 9248 shlibpath_overrides_runpath=yes 9249 9250 case $host_os in 9251 cygwin*) 9252 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9255 ;; 9256 mingw*) 9257 # MinGW DLLs use traditional 'lib' prefix 9258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9259 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9260 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9261 # It is most probably a Windows format PATH printed by 9262 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9263 # path with ; separators, and with drive letters. We can handle the 9264 # drive letters (cygwin fileutils understands them), so leave them, 9265 # especially as we might pass files found there to a mingw objdump, 9266 # which wouldn't understand a cygwinified path. Ahh. 9267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9268 else 9269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9270 fi 9271 ;; 9272 pw32*) 9273 # pw32 DLLs use 'pw' prefix rather than 'lib' 9274 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9275 ;; 9276 esac 9277 ;; 9278 9279 *) 9280 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9281 ;; 9282 esac 9283 dynamic_linker='Win32 ld.exe' 9284 # FIXME: first we should search . and the directory the executable is in 9285 shlibpath_var=PATH 9286 ;; 9287 9288darwin* | rhapsody*) 9289 dynamic_linker="$host_os dyld" 9290 version_type=darwin 9291 need_lib_prefix=no 9292 need_version=no 9293 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9294 soname_spec='${libname}${release}${major}$shared_ext' 9295 shlibpath_overrides_runpath=yes 9296 shlibpath_var=DYLD_LIBRARY_PATH 9297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9298 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9299 if test "$GCC" = yes; then 9300 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9301 else 9302 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9303 fi 9304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9305 ;; 9306 9307dgux*) 9308 version_type=linux 9309 need_lib_prefix=no 9310 need_version=no 9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9312 soname_spec='${libname}${release}${shared_ext}$major' 9313 shlibpath_var=LD_LIBRARY_PATH 9314 ;; 9315 9316freebsd1*) 9317 dynamic_linker=no 9318 ;; 9319 9320freebsd* | dragonfly*) 9321 # DragonFly does not have aout. When/if they implement a new 9322 # versioning mechanism, adjust this. 9323 if test -x /usr/bin/objformat; then 9324 objformat=`/usr/bin/objformat` 9325 else 9326 case $host_os in 9327 freebsd[123]*) objformat=aout ;; 9328 *) objformat=elf ;; 9329 esac 9330 fi 9331 version_type=freebsd-$objformat 9332 case $version_type in 9333 freebsd-elf*) 9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9335 need_version=no 9336 need_lib_prefix=no 9337 ;; 9338 freebsd-*) 9339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9340 need_version=yes 9341 ;; 9342 esac 9343 shlibpath_var=LD_LIBRARY_PATH 9344 case $host_os in 9345 freebsd2*) 9346 shlibpath_overrides_runpath=yes 9347 ;; 9348 freebsd3.[01]* | freebsdelf3.[01]*) 9349 shlibpath_overrides_runpath=yes 9350 hardcode_into_libs=yes 9351 ;; 9352 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9353 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9354 shlibpath_overrides_runpath=no 9355 hardcode_into_libs=yes 9356 ;; 9357 freebsd*) # from 4.6 on 9358 shlibpath_overrides_runpath=yes 9359 hardcode_into_libs=yes 9360 ;; 9361 esac 9362 ;; 9363 9364gnu*) 9365 version_type=linux 9366 need_lib_prefix=no 9367 need_version=no 9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9369 soname_spec='${libname}${release}${shared_ext}$major' 9370 shlibpath_var=LD_LIBRARY_PATH 9371 hardcode_into_libs=yes 9372 ;; 9373 9374hpux9* | hpux10* | hpux11*) 9375 # Give a soname corresponding to the major version so that dld.sl refuses to 9376 # link against other versions. 9377 version_type=sunos 9378 need_lib_prefix=no 9379 need_version=no 9380 case $host_cpu in 9381 ia64*) 9382 shrext_cmds='.so' 9383 hardcode_into_libs=yes 9384 dynamic_linker="$host_os dld.so" 9385 shlibpath_var=LD_LIBRARY_PATH 9386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 if test "X$HPUX_IA64_MODE" = X32; then 9390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9391 else 9392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9393 fi 9394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9395 ;; 9396 hppa*64*) 9397 shrext_cmds='.sl' 9398 hardcode_into_libs=yes 9399 dynamic_linker="$host_os dld.sl" 9400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9403 soname_spec='${libname}${release}${shared_ext}$major' 9404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9406 ;; 9407 *) 9408 shrext_cmds='.sl' 9409 dynamic_linker="$host_os dld.sl" 9410 shlibpath_var=SHLIB_PATH 9411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9413 soname_spec='${libname}${release}${shared_ext}$major' 9414 ;; 9415 esac 9416 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9417 postinstall_cmds='chmod 555 $lib' 9418 ;; 9419 9420interix3*) 9421 version_type=linux 9422 need_lib_prefix=no 9423 need_version=no 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9425 soname_spec='${libname}${release}${shared_ext}$major' 9426 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9427 shlibpath_var=LD_LIBRARY_PATH 9428 shlibpath_overrides_runpath=no 9429 hardcode_into_libs=yes 9430 ;; 9431 9432irix5* | irix6* | nonstopux*) 9433 case $host_os in 9434 nonstopux*) version_type=nonstopux ;; 9435 *) 9436 if test "$lt_cv_prog_gnu_ld" = yes; then 9437 version_type=linux 9438 else 9439 version_type=irix 9440 fi ;; 9441 esac 9442 need_lib_prefix=no 9443 need_version=no 9444 soname_spec='${libname}${release}${shared_ext}$major' 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9446 case $host_os in 9447 irix5* | nonstopux*) 9448 libsuff= shlibsuff= 9449 ;; 9450 *) 9451 case $LD in # libtool.m4 will add one of these switches to LD 9452 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9453 libsuff= shlibsuff= libmagic=32-bit;; 9454 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9455 libsuff=32 shlibsuff=N32 libmagic=N32;; 9456 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9457 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9458 *) libsuff= shlibsuff= libmagic=never-match;; 9459 esac 9460 ;; 9461 esac 9462 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9463 shlibpath_overrides_runpath=no 9464 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9465 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9466 hardcode_into_libs=yes 9467 ;; 9468 9469# No shared lib support for Linux oldld, aout, or coff. 9470linux*oldld* | linux*aout* | linux*coff*) 9471 dynamic_linker=no 9472 ;; 9473 9474# This must be Linux ELF. 9475linux* | k*bsd*-gnu) 9476 version_type=linux 9477 need_lib_prefix=no 9478 need_version=no 9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9480 soname_spec='${libname}${release}${shared_ext}$major' 9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9482 shlibpath_var=LD_LIBRARY_PATH 9483 shlibpath_overrides_runpath=no 9484 # This implies no fast_install, which is unacceptable. 9485 # Some rework will be needed to allow for fast_install 9486 # before this can be enabled. 9487 hardcode_into_libs=yes 9488 9489 # Append ld.so.conf contents to the search path 9490 if test -f /etc/ld.so.conf; then 9491 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9492 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9493 fi 9494 9495 # We used to test for /lib/ld.so.1 and disable shared libraries on 9496 # powerpc, because MkLinux only supported shared libraries with the 9497 # GNU dynamic linker. Since this was broken with cross compilers, 9498 # most powerpc-linux boxes support dynamic linking these days and 9499 # people can always --disable-shared, the test was removed, and we 9500 # assume the GNU/Linux dynamic linker is in use. 9501 dynamic_linker='GNU/Linux ld.so' 9502 ;; 9503 9504netbsdelf*-gnu) 9505 version_type=linux 9506 need_lib_prefix=no 9507 need_version=no 9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9509 soname_spec='${libname}${release}${shared_ext}$major' 9510 shlibpath_var=LD_LIBRARY_PATH 9511 shlibpath_overrides_runpath=no 9512 hardcode_into_libs=yes 9513 dynamic_linker='NetBSD ld.elf_so' 9514 ;; 9515 9516netbsd*) 9517 version_type=sunos 9518 need_lib_prefix=no 9519 need_version=no 9520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9523 dynamic_linker='NetBSD (a.out) ld.so' 9524 else 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9526 soname_spec='${libname}${release}${shared_ext}$major' 9527 dynamic_linker='NetBSD ld.elf_so' 9528 fi 9529 shlibpath_var=LD_LIBRARY_PATH 9530 shlibpath_overrides_runpath=yes 9531 hardcode_into_libs=yes 9532 ;; 9533 9534newsos6) 9535 version_type=linux 9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9537 shlibpath_var=LD_LIBRARY_PATH 9538 shlibpath_overrides_runpath=yes 9539 ;; 9540 9541nto-qnx*) 9542 version_type=linux 9543 need_lib_prefix=no 9544 need_version=no 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9546 soname_spec='${libname}${release}${shared_ext}$major' 9547 shlibpath_var=LD_LIBRARY_PATH 9548 shlibpath_overrides_runpath=yes 9549 ;; 9550 9551openbsd*) 9552 version_type=sunos 9553 sys_lib_dlsearch_path_spec="/usr/lib" 9554 need_lib_prefix=no 9555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9556 case $host_os in 9557 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9558 *) need_version=no ;; 9559 esac 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9562 shlibpath_var=LD_LIBRARY_PATH 9563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9564 case $host_os in 9565 openbsd2.[89] | openbsd2.[89].*) 9566 shlibpath_overrides_runpath=no 9567 ;; 9568 *) 9569 shlibpath_overrides_runpath=yes 9570 ;; 9571 esac 9572 else 9573 shlibpath_overrides_runpath=yes 9574 fi 9575 ;; 9576 9577os2*) 9578 libname_spec='$name' 9579 shrext_cmds=".dll" 9580 need_lib_prefix=no 9581 library_names_spec='$libname${shared_ext} $libname.a' 9582 dynamic_linker='OS/2 ld.exe' 9583 shlibpath_var=LIBPATH 9584 ;; 9585 9586osf3* | osf4* | osf5*) 9587 version_type=osf 9588 need_lib_prefix=no 9589 need_version=no 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9592 shlibpath_var=LD_LIBRARY_PATH 9593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9595 ;; 9596 9597solaris*) 9598 version_type=linux 9599 need_lib_prefix=no 9600 need_version=no 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 shlibpath_var=LD_LIBRARY_PATH 9604 shlibpath_overrides_runpath=yes 9605 hardcode_into_libs=yes 9606 # ldd complains unless libraries are executable 9607 postinstall_cmds='chmod +x $lib' 9608 ;; 9609 9610sunos4*) 9611 version_type=sunos 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9614 shlibpath_var=LD_LIBRARY_PATH 9615 shlibpath_overrides_runpath=yes 9616 if test "$with_gnu_ld" = yes; then 9617 need_lib_prefix=no 9618 fi 9619 need_version=yes 9620 ;; 9621 9622sysv4 | sysv4.3*) 9623 version_type=linux 9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9625 soname_spec='${libname}${release}${shared_ext}$major' 9626 shlibpath_var=LD_LIBRARY_PATH 9627 case $host_vendor in 9628 sni) 9629 shlibpath_overrides_runpath=no 9630 need_lib_prefix=no 9631 export_dynamic_flag_spec='${wl}-Blargedynsym' 9632 runpath_var=LD_RUN_PATH 9633 ;; 9634 siemens) 9635 need_lib_prefix=no 9636 ;; 9637 motorola) 9638 need_lib_prefix=no 9639 need_version=no 9640 shlibpath_overrides_runpath=no 9641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9642 ;; 9643 esac 9644 ;; 9645 9646sysv4*MP*) 9647 if test -d /usr/nec ;then 9648 version_type=linux 9649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9650 soname_spec='$libname${shared_ext}.$major' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 fi 9653 ;; 9654 9655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9656 version_type=freebsd-elf 9657 need_lib_prefix=no 9658 need_version=no 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9660 soname_spec='${libname}${release}${shared_ext}$major' 9661 shlibpath_var=LD_LIBRARY_PATH 9662 hardcode_into_libs=yes 9663 if test "$with_gnu_ld" = yes; then 9664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9665 shlibpath_overrides_runpath=no 9666 else 9667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9668 shlibpath_overrides_runpath=yes 9669 case $host_os in 9670 sco3.2v5*) 9671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9672 ;; 9673 esac 9674 fi 9675 sys_lib_dlsearch_path_spec='/usr/lib' 9676 ;; 9677 9678uts4*) 9679 version_type=linux 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9681 soname_spec='${libname}${release}${shared_ext}$major' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 ;; 9684 9685*) 9686 dynamic_linker=no 9687 ;; 9688esac 9689{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9690echo "${ECHO_T}$dynamic_linker" >&6; } 9691test "$dynamic_linker" = no && can_build_shared=no 9692 9693variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9694if test "$GCC" = yes; then 9695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9696fi 9697 9698{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9699echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9700hardcode_action= 9701if test -n "$hardcode_libdir_flag_spec" || \ 9702 test -n "$runpath_var" || \ 9703 test "X$hardcode_automatic" = "Xyes" ; then 9704 9705 # We can hardcode non-existant directories. 9706 if test "$hardcode_direct" != no && 9707 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9708 # have to relink, otherwise we might link with an installed library 9709 # when we should be linking with a yet-to-be-installed one 9710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9711 test "$hardcode_minus_L" != no; then 9712 # Linking always hardcodes the temporary library directory. 9713 hardcode_action=relink 9714 else 9715 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9716 hardcode_action=immediate 9717 fi 9718else 9719 # We cannot hardcode anything, or else we can only hardcode existing 9720 # directories. 9721 hardcode_action=unsupported 9722fi 9723{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9724echo "${ECHO_T}$hardcode_action" >&6; } 9725 9726if test "$hardcode_action" = relink; then 9727 # Fast installation is not supported 9728 enable_fast_install=no 9729elif test "$shlibpath_overrides_runpath" = yes || 9730 test "$enable_shared" = no; then 9731 # Fast installation is not necessary 9732 enable_fast_install=needless 9733fi 9734 9735striplib= 9736old_striplib= 9737{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9738echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9739if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9741 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9742 { echo "$as_me:$LINENO: result: yes" >&5 9743echo "${ECHO_T}yes" >&6; } 9744else 9745# FIXME - insert some real tests, host_os isn't really good enough 9746 case $host_os in 9747 darwin*) 9748 if test -n "$STRIP" ; then 9749 striplib="$STRIP -x" 9750 { echo "$as_me:$LINENO: result: yes" >&5 9751echo "${ECHO_T}yes" >&6; } 9752 else 9753 { echo "$as_me:$LINENO: result: no" >&5 9754echo "${ECHO_T}no" >&6; } 9755fi 9756 ;; 9757 *) 9758 { echo "$as_me:$LINENO: result: no" >&5 9759echo "${ECHO_T}no" >&6; } 9760 ;; 9761 esac 9762fi 9763 9764if test "x$enable_dlopen" != xyes; then 9765 enable_dlopen=unknown 9766 enable_dlopen_self=unknown 9767 enable_dlopen_self_static=unknown 9768else 9769 lt_cv_dlopen=no 9770 lt_cv_dlopen_libs= 9771 9772 case $host_os in 9773 beos*) 9774 lt_cv_dlopen="load_add_on" 9775 lt_cv_dlopen_libs= 9776 lt_cv_dlopen_self=yes 9777 ;; 9778 9779 mingw* | pw32*) 9780 lt_cv_dlopen="LoadLibrary" 9781 lt_cv_dlopen_libs= 9782 ;; 9783 9784 cygwin*) 9785 lt_cv_dlopen="dlopen" 9786 lt_cv_dlopen_libs= 9787 ;; 9788 9789 darwin*) 9790 # if libdl is installed we need to link against it 9791 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9792echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9793if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9794 echo $ECHO_N "(cached) $ECHO_C" >&6 9795else 9796 ac_check_lib_save_LIBS=$LIBS 9797LIBS="-ldl $LIBS" 9798cat >conftest.$ac_ext <<_ACEOF 9799/* confdefs.h. */ 9800_ACEOF 9801cat confdefs.h >>conftest.$ac_ext 9802cat >>conftest.$ac_ext <<_ACEOF 9803/* end confdefs.h. */ 9804 9805/* Override any GCC internal prototype to avoid an error. 9806 Use char because int might match the return type of a GCC 9807 builtin and then its argument prototype would still apply. */ 9808#ifdef __cplusplus 9809extern "C" 9810#endif 9811char dlopen (); 9812int 9813main () 9814{ 9815return dlopen (); 9816 ; 9817 return 0; 9818} 9819_ACEOF 9820rm -f conftest.$ac_objext conftest$ac_exeext 9821if { (ac_try="$ac_link" 9822case "(($ac_try" in 9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9824 *) ac_try_echo=$ac_try;; 9825esac 9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9827 (eval "$ac_link") 2>conftest.er1 9828 ac_status=$? 9829 grep -v '^ *+' conftest.er1 >conftest.err 9830 rm -f conftest.er1 9831 cat conftest.err >&5 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 (exit $ac_status); } && { 9834 test -z "$ac_c_werror_flag" || 9835 test ! -s conftest.err 9836 } && test -s conftest$ac_exeext && 9837 $as_test_x conftest$ac_exeext; then 9838 ac_cv_lib_dl_dlopen=yes 9839else 9840 echo "$as_me: failed program was:" >&5 9841sed 's/^/| /' conftest.$ac_ext >&5 9842 9843 ac_cv_lib_dl_dlopen=no 9844fi 9845 9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9847 conftest$ac_exeext conftest.$ac_ext 9848LIBS=$ac_check_lib_save_LIBS 9849fi 9850{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9851echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9852if test $ac_cv_lib_dl_dlopen = yes; then 9853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9854else 9855 9856 lt_cv_dlopen="dyld" 9857 lt_cv_dlopen_libs= 9858 lt_cv_dlopen_self=yes 9859 9860fi 9861 9862 ;; 9863 9864 *) 9865 { echo "$as_me:$LINENO: checking for shl_load" >&5 9866echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9867if test "${ac_cv_func_shl_load+set}" = set; then 9868 echo $ECHO_N "(cached) $ECHO_C" >&6 9869else 9870 cat >conftest.$ac_ext <<_ACEOF 9871/* confdefs.h. */ 9872_ACEOF 9873cat confdefs.h >>conftest.$ac_ext 9874cat >>conftest.$ac_ext <<_ACEOF 9875/* end confdefs.h. */ 9876/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9878#define shl_load innocuous_shl_load 9879 9880/* System header to define __stub macros and hopefully few prototypes, 9881 which can conflict with char shl_load (); below. 9882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9883 <limits.h> exists even on freestanding compilers. */ 9884 9885#ifdef __STDC__ 9886# include <limits.h> 9887#else 9888# include <assert.h> 9889#endif 9890 9891#undef shl_load 9892 9893/* Override any GCC internal prototype to avoid an error. 9894 Use char because int might match the return type of a GCC 9895 builtin and then its argument prototype would still apply. */ 9896#ifdef __cplusplus 9897extern "C" 9898#endif 9899char shl_load (); 9900/* The GNU C library defines this for functions which it implements 9901 to always fail with ENOSYS. Some functions are actually named 9902 something starting with __ and the normal name is an alias. */ 9903#if defined __stub_shl_load || defined __stub___shl_load 9904choke me 9905#endif 9906 9907int 9908main () 9909{ 9910return shl_load (); 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915rm -f conftest.$ac_objext conftest$ac_exeext 9916if { (ac_try="$ac_link" 9917case "(($ac_try" in 9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9919 *) ac_try_echo=$ac_try;; 9920esac 9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9922 (eval "$ac_link") 2>conftest.er1 9923 ac_status=$? 9924 grep -v '^ *+' conftest.er1 >conftest.err 9925 rm -f conftest.er1 9926 cat conftest.err >&5 9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9928 (exit $ac_status); } && { 9929 test -z "$ac_c_werror_flag" || 9930 test ! -s conftest.err 9931 } && test -s conftest$ac_exeext && 9932 $as_test_x conftest$ac_exeext; then 9933 ac_cv_func_shl_load=yes 9934else 9935 echo "$as_me: failed program was:" >&5 9936sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 ac_cv_func_shl_load=no 9939fi 9940 9941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9942 conftest$ac_exeext conftest.$ac_ext 9943fi 9944{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9945echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9946if test $ac_cv_func_shl_load = yes; then 9947 lt_cv_dlopen="shl_load" 9948else 9949 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9950echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9951if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9952 echo $ECHO_N "(cached) $ECHO_C" >&6 9953else 9954 ac_check_lib_save_LIBS=$LIBS 9955LIBS="-ldld $LIBS" 9956cat >conftest.$ac_ext <<_ACEOF 9957/* confdefs.h. */ 9958_ACEOF 9959cat confdefs.h >>conftest.$ac_ext 9960cat >>conftest.$ac_ext <<_ACEOF 9961/* end confdefs.h. */ 9962 9963/* Override any GCC internal prototype to avoid an error. 9964 Use char because int might match the return type of a GCC 9965 builtin and then its argument prototype would still apply. */ 9966#ifdef __cplusplus 9967extern "C" 9968#endif 9969char shl_load (); 9970int 9971main () 9972{ 9973return shl_load (); 9974 ; 9975 return 0; 9976} 9977_ACEOF 9978rm -f conftest.$ac_objext conftest$ac_exeext 9979if { (ac_try="$ac_link" 9980case "(($ac_try" in 9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9982 *) ac_try_echo=$ac_try;; 9983esac 9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9985 (eval "$ac_link") 2>conftest.er1 9986 ac_status=$? 9987 grep -v '^ *+' conftest.er1 >conftest.err 9988 rm -f conftest.er1 9989 cat conftest.err >&5 9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9991 (exit $ac_status); } && { 9992 test -z "$ac_c_werror_flag" || 9993 test ! -s conftest.err 9994 } && test -s conftest$ac_exeext && 9995 $as_test_x conftest$ac_exeext; then 9996 ac_cv_lib_dld_shl_load=yes 9997else 9998 echo "$as_me: failed program was:" >&5 9999sed 's/^/| /' conftest.$ac_ext >&5 10000 10001 ac_cv_lib_dld_shl_load=no 10002fi 10003 10004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10005 conftest$ac_exeext conftest.$ac_ext 10006LIBS=$ac_check_lib_save_LIBS 10007fi 10008{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10009echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10010if test $ac_cv_lib_dld_shl_load = yes; then 10011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10012else 10013 { echo "$as_me:$LINENO: checking for dlopen" >&5 10014echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10015if test "${ac_cv_func_dlopen+set}" = set; then 10016 echo $ECHO_N "(cached) $ECHO_C" >&6 10017else 10018 cat >conftest.$ac_ext <<_ACEOF 10019/* confdefs.h. */ 10020_ACEOF 10021cat confdefs.h >>conftest.$ac_ext 10022cat >>conftest.$ac_ext <<_ACEOF 10023/* end confdefs.h. */ 10024/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10026#define dlopen innocuous_dlopen 10027 10028/* System header to define __stub macros and hopefully few prototypes, 10029 which can conflict with char dlopen (); below. 10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10031 <limits.h> exists even on freestanding compilers. */ 10032 10033#ifdef __STDC__ 10034# include <limits.h> 10035#else 10036# include <assert.h> 10037#endif 10038 10039#undef dlopen 10040 10041/* Override any GCC internal prototype to avoid an error. 10042 Use char because int might match the return type of a GCC 10043 builtin and then its argument prototype would still apply. */ 10044#ifdef __cplusplus 10045extern "C" 10046#endif 10047char dlopen (); 10048/* The GNU C library defines this for functions which it implements 10049 to always fail with ENOSYS. Some functions are actually named 10050 something starting with __ and the normal name is an alias. */ 10051#if defined __stub_dlopen || defined __stub___dlopen 10052choke me 10053#endif 10054 10055int 10056main () 10057{ 10058return dlopen (); 10059 ; 10060 return 0; 10061} 10062_ACEOF 10063rm -f conftest.$ac_objext conftest$ac_exeext 10064if { (ac_try="$ac_link" 10065case "(($ac_try" in 10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10067 *) ac_try_echo=$ac_try;; 10068esac 10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10070 (eval "$ac_link") 2>conftest.er1 10071 ac_status=$? 10072 grep -v '^ *+' conftest.er1 >conftest.err 10073 rm -f conftest.er1 10074 cat conftest.err >&5 10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10076 (exit $ac_status); } && { 10077 test -z "$ac_c_werror_flag" || 10078 test ! -s conftest.err 10079 } && test -s conftest$ac_exeext && 10080 $as_test_x conftest$ac_exeext; then 10081 ac_cv_func_dlopen=yes 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086 ac_cv_func_dlopen=no 10087fi 10088 10089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10090 conftest$ac_exeext conftest.$ac_ext 10091fi 10092{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10093echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10094if test $ac_cv_func_dlopen = yes; then 10095 lt_cv_dlopen="dlopen" 10096else 10097 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10098echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10099if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10100 echo $ECHO_N "(cached) $ECHO_C" >&6 10101else 10102 ac_check_lib_save_LIBS=$LIBS 10103LIBS="-ldl $LIBS" 10104cat >conftest.$ac_ext <<_ACEOF 10105/* confdefs.h. */ 10106_ACEOF 10107cat confdefs.h >>conftest.$ac_ext 10108cat >>conftest.$ac_ext <<_ACEOF 10109/* end confdefs.h. */ 10110 10111/* Override any GCC internal prototype to avoid an error. 10112 Use char because int might match the return type of a GCC 10113 builtin and then its argument prototype would still apply. */ 10114#ifdef __cplusplus 10115extern "C" 10116#endif 10117char dlopen (); 10118int 10119main () 10120{ 10121return dlopen (); 10122 ; 10123 return 0; 10124} 10125_ACEOF 10126rm -f conftest.$ac_objext conftest$ac_exeext 10127if { (ac_try="$ac_link" 10128case "(($ac_try" in 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10130 *) ac_try_echo=$ac_try;; 10131esac 10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10133 (eval "$ac_link") 2>conftest.er1 10134 ac_status=$? 10135 grep -v '^ *+' conftest.er1 >conftest.err 10136 rm -f conftest.er1 10137 cat conftest.err >&5 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10139 (exit $ac_status); } && { 10140 test -z "$ac_c_werror_flag" || 10141 test ! -s conftest.err 10142 } && test -s conftest$ac_exeext && 10143 $as_test_x conftest$ac_exeext; then 10144 ac_cv_lib_dl_dlopen=yes 10145else 10146 echo "$as_me: failed program was:" >&5 10147sed 's/^/| /' conftest.$ac_ext >&5 10148 10149 ac_cv_lib_dl_dlopen=no 10150fi 10151 10152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10153 conftest$ac_exeext conftest.$ac_ext 10154LIBS=$ac_check_lib_save_LIBS 10155fi 10156{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10157echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10158if test $ac_cv_lib_dl_dlopen = yes; then 10159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10160else 10161 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10162echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10163if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10164 echo $ECHO_N "(cached) $ECHO_C" >&6 10165else 10166 ac_check_lib_save_LIBS=$LIBS 10167LIBS="-lsvld $LIBS" 10168cat >conftest.$ac_ext <<_ACEOF 10169/* confdefs.h. */ 10170_ACEOF 10171cat confdefs.h >>conftest.$ac_ext 10172cat >>conftest.$ac_ext <<_ACEOF 10173/* end confdefs.h. */ 10174 10175/* Override any GCC internal prototype to avoid an error. 10176 Use char because int might match the return type of a GCC 10177 builtin and then its argument prototype would still apply. */ 10178#ifdef __cplusplus 10179extern "C" 10180#endif 10181char dlopen (); 10182int 10183main () 10184{ 10185return dlopen (); 10186 ; 10187 return 0; 10188} 10189_ACEOF 10190rm -f conftest.$ac_objext conftest$ac_exeext 10191if { (ac_try="$ac_link" 10192case "(($ac_try" in 10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10194 *) ac_try_echo=$ac_try;; 10195esac 10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10197 (eval "$ac_link") 2>conftest.er1 10198 ac_status=$? 10199 grep -v '^ *+' conftest.er1 >conftest.err 10200 rm -f conftest.er1 10201 cat conftest.err >&5 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); } && { 10204 test -z "$ac_c_werror_flag" || 10205 test ! -s conftest.err 10206 } && test -s conftest$ac_exeext && 10207 $as_test_x conftest$ac_exeext; then 10208 ac_cv_lib_svld_dlopen=yes 10209else 10210 echo "$as_me: failed program was:" >&5 10211sed 's/^/| /' conftest.$ac_ext >&5 10212 10213 ac_cv_lib_svld_dlopen=no 10214fi 10215 10216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10217 conftest$ac_exeext conftest.$ac_ext 10218LIBS=$ac_check_lib_save_LIBS 10219fi 10220{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10221echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10222if test $ac_cv_lib_svld_dlopen = yes; then 10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10224else 10225 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10226echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10227if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10228 echo $ECHO_N "(cached) $ECHO_C" >&6 10229else 10230 ac_check_lib_save_LIBS=$LIBS 10231LIBS="-ldld $LIBS" 10232cat >conftest.$ac_ext <<_ACEOF 10233/* confdefs.h. */ 10234_ACEOF 10235cat confdefs.h >>conftest.$ac_ext 10236cat >>conftest.$ac_ext <<_ACEOF 10237/* end confdefs.h. */ 10238 10239/* Override any GCC internal prototype to avoid an error. 10240 Use char because int might match the return type of a GCC 10241 builtin and then its argument prototype would still apply. */ 10242#ifdef __cplusplus 10243extern "C" 10244#endif 10245char dld_link (); 10246int 10247main () 10248{ 10249return dld_link (); 10250 ; 10251 return 0; 10252} 10253_ACEOF 10254rm -f conftest.$ac_objext conftest$ac_exeext 10255if { (ac_try="$ac_link" 10256case "(($ac_try" in 10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10258 *) ac_try_echo=$ac_try;; 10259esac 10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10261 (eval "$ac_link") 2>conftest.er1 10262 ac_status=$? 10263 grep -v '^ *+' conftest.er1 >conftest.err 10264 rm -f conftest.er1 10265 cat conftest.err >&5 10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10267 (exit $ac_status); } && { 10268 test -z "$ac_c_werror_flag" || 10269 test ! -s conftest.err 10270 } && test -s conftest$ac_exeext && 10271 $as_test_x conftest$ac_exeext; then 10272 ac_cv_lib_dld_dld_link=yes 10273else 10274 echo "$as_me: failed program was:" >&5 10275sed 's/^/| /' conftest.$ac_ext >&5 10276 10277 ac_cv_lib_dld_dld_link=no 10278fi 10279 10280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10281 conftest$ac_exeext conftest.$ac_ext 10282LIBS=$ac_check_lib_save_LIBS 10283fi 10284{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10285echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10286if test $ac_cv_lib_dld_dld_link = yes; then 10287 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10288fi 10289 10290 10291fi 10292 10293 10294fi 10295 10296 10297fi 10298 10299 10300fi 10301 10302 10303fi 10304 10305 ;; 10306 esac 10307 10308 if test "x$lt_cv_dlopen" != xno; then 10309 enable_dlopen=yes 10310 else 10311 enable_dlopen=no 10312 fi 10313 10314 case $lt_cv_dlopen in 10315 dlopen) 10316 save_CPPFLAGS="$CPPFLAGS" 10317 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10318 10319 save_LDFLAGS="$LDFLAGS" 10320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10321 10322 save_LIBS="$LIBS" 10323 LIBS="$lt_cv_dlopen_libs $LIBS" 10324 10325 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10326echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10327if test "${lt_cv_dlopen_self+set}" = set; then 10328 echo $ECHO_N "(cached) $ECHO_C" >&6 10329else 10330 if test "$cross_compiling" = yes; then : 10331 lt_cv_dlopen_self=cross 10332else 10333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10334 lt_status=$lt_dlunknown 10335 cat > conftest.$ac_ext <<EOF 10336#line 10336 "configure" 10337#include "confdefs.h" 10338 10339#if HAVE_DLFCN_H 10340#include <dlfcn.h> 10341#endif 10342 10343#include <stdio.h> 10344 10345#ifdef RTLD_GLOBAL 10346# define LT_DLGLOBAL RTLD_GLOBAL 10347#else 10348# ifdef DL_GLOBAL 10349# define LT_DLGLOBAL DL_GLOBAL 10350# else 10351# define LT_DLGLOBAL 0 10352# endif 10353#endif 10354 10355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10356 find out it does not work in some platform. */ 10357#ifndef LT_DLLAZY_OR_NOW 10358# ifdef RTLD_LAZY 10359# define LT_DLLAZY_OR_NOW RTLD_LAZY 10360# else 10361# ifdef DL_LAZY 10362# define LT_DLLAZY_OR_NOW DL_LAZY 10363# else 10364# ifdef RTLD_NOW 10365# define LT_DLLAZY_OR_NOW RTLD_NOW 10366# else 10367# ifdef DL_NOW 10368# define LT_DLLAZY_OR_NOW DL_NOW 10369# else 10370# define LT_DLLAZY_OR_NOW 0 10371# endif 10372# endif 10373# endif 10374# endif 10375#endif 10376 10377#ifdef __cplusplus 10378extern "C" void exit (int); 10379#endif 10380 10381void fnord() { int i=42;} 10382int main () 10383{ 10384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10385 int status = $lt_dlunknown; 10386 10387 if (self) 10388 { 10389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10391 /* dlclose (self); */ 10392 } 10393 else 10394 puts (dlerror ()); 10395 10396 exit (status); 10397} 10398EOF 10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10400 (eval $ac_link) 2>&5 10401 ac_status=$? 10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10403 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10404 (./conftest; exit; ) >&5 2>/dev/null 10405 lt_status=$? 10406 case x$lt_status in 10407 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10408 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10409 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10410 esac 10411 else : 10412 # compilation failed 10413 lt_cv_dlopen_self=no 10414 fi 10415fi 10416rm -fr conftest* 10417 10418 10419fi 10420{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10421echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10422 10423 if test "x$lt_cv_dlopen_self" = xyes; then 10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10425 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10426echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10427if test "${lt_cv_dlopen_self_static+set}" = set; then 10428 echo $ECHO_N "(cached) $ECHO_C" >&6 10429else 10430 if test "$cross_compiling" = yes; then : 10431 lt_cv_dlopen_self_static=cross 10432else 10433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10434 lt_status=$lt_dlunknown 10435 cat > conftest.$ac_ext <<EOF 10436#line 10436 "configure" 10437#include "confdefs.h" 10438 10439#if HAVE_DLFCN_H 10440#include <dlfcn.h> 10441#endif 10442 10443#include <stdio.h> 10444 10445#ifdef RTLD_GLOBAL 10446# define LT_DLGLOBAL RTLD_GLOBAL 10447#else 10448# ifdef DL_GLOBAL 10449# define LT_DLGLOBAL DL_GLOBAL 10450# else 10451# define LT_DLGLOBAL 0 10452# endif 10453#endif 10454 10455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10456 find out it does not work in some platform. */ 10457#ifndef LT_DLLAZY_OR_NOW 10458# ifdef RTLD_LAZY 10459# define LT_DLLAZY_OR_NOW RTLD_LAZY 10460# else 10461# ifdef DL_LAZY 10462# define LT_DLLAZY_OR_NOW DL_LAZY 10463# else 10464# ifdef RTLD_NOW 10465# define LT_DLLAZY_OR_NOW RTLD_NOW 10466# else 10467# ifdef DL_NOW 10468# define LT_DLLAZY_OR_NOW DL_NOW 10469# else 10470# define LT_DLLAZY_OR_NOW 0 10471# endif 10472# endif 10473# endif 10474# endif 10475#endif 10476 10477#ifdef __cplusplus 10478extern "C" void exit (int); 10479#endif 10480 10481void fnord() { int i=42;} 10482int main () 10483{ 10484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10485 int status = $lt_dlunknown; 10486 10487 if (self) 10488 { 10489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10491 /* dlclose (self); */ 10492 } 10493 else 10494 puts (dlerror ()); 10495 10496 exit (status); 10497} 10498EOF 10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10500 (eval $ac_link) 2>&5 10501 ac_status=$? 10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10504 (./conftest; exit; ) >&5 2>/dev/null 10505 lt_status=$? 10506 case x$lt_status in 10507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10510 esac 10511 else : 10512 # compilation failed 10513 lt_cv_dlopen_self_static=no 10514 fi 10515fi 10516rm -fr conftest* 10517 10518 10519fi 10520{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10521echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10522 fi 10523 10524 CPPFLAGS="$save_CPPFLAGS" 10525 LDFLAGS="$save_LDFLAGS" 10526 LIBS="$save_LIBS" 10527 ;; 10528 esac 10529 10530 case $lt_cv_dlopen_self in 10531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10532 *) enable_dlopen_self=unknown ;; 10533 esac 10534 10535 case $lt_cv_dlopen_self_static in 10536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10537 *) enable_dlopen_self_static=unknown ;; 10538 esac 10539fi 10540 10541 10542# Report which library types will actually be built 10543{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10544echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10545{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10546echo "${ECHO_T}$can_build_shared" >&6; } 10547 10548{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10549echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10550test "$can_build_shared" = "no" && enable_shared=no 10551 10552# On AIX, shared libraries and static libraries use the same namespace, and 10553# are all built from PIC. 10554case $host_os in 10555aix3*) 10556 test "$enable_shared" = yes && enable_static=no 10557 if test -n "$RANLIB"; then 10558 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10559 postinstall_cmds='$RANLIB $lib' 10560 fi 10561 ;; 10562 10563aix4* | aix5*) 10564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10565 test "$enable_shared" = yes && enable_static=no 10566 fi 10567 ;; 10568esac 10569{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10570echo "${ECHO_T}$enable_shared" >&6; } 10571 10572{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10573echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10574# Make sure either enable_shared or enable_static is yes. 10575test "$enable_shared" = yes || enable_static=yes 10576{ echo "$as_me:$LINENO: result: $enable_static" >&5 10577echo "${ECHO_T}$enable_static" >&6; } 10578 10579# The else clause should only fire when bootstrapping the 10580# libtool distribution, otherwise you forgot to ship ltmain.sh 10581# with your package, and you will get complaints that there are 10582# no rules to generate ltmain.sh. 10583if test -f "$ltmain"; then 10584 # See if we are running on zsh, and set the options which allow our commands through 10585 # without removal of \ escapes. 10586 if test -n "${ZSH_VERSION+set}" ; then 10587 setopt NO_GLOB_SUBST 10588 fi 10589 # Now quote all the things that may contain metacharacters while being 10590 # careful not to overquote the AC_SUBSTed values. We take copies of the 10591 # variables and quote the copies for generation of the libtool script. 10592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10593 SED SHELL STRIP \ 10594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10596 deplibs_check_method reload_flag reload_cmds need_locks \ 10597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10598 lt_cv_sys_global_symbol_to_c_name_address \ 10599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10600 old_postinstall_cmds old_postuninstall_cmds \ 10601 compiler \ 10602 CC \ 10603 LD \ 10604 lt_prog_compiler_wl \ 10605 lt_prog_compiler_pic \ 10606 lt_prog_compiler_static \ 10607 lt_prog_compiler_no_builtin_flag \ 10608 export_dynamic_flag_spec \ 10609 thread_safe_flag_spec \ 10610 whole_archive_flag_spec \ 10611 enable_shared_with_static_runtimes \ 10612 old_archive_cmds \ 10613 old_archive_from_new_cmds \ 10614 predep_objects \ 10615 postdep_objects \ 10616 predeps \ 10617 postdeps \ 10618 compiler_lib_search_path \ 10619 archive_cmds \ 10620 archive_expsym_cmds \ 10621 postinstall_cmds \ 10622 postuninstall_cmds \ 10623 old_archive_from_expsyms_cmds \ 10624 allow_undefined_flag \ 10625 no_undefined_flag \ 10626 export_symbols_cmds \ 10627 hardcode_libdir_flag_spec \ 10628 hardcode_libdir_flag_spec_ld \ 10629 hardcode_libdir_separator \ 10630 hardcode_automatic \ 10631 module_cmds \ 10632 module_expsym_cmds \ 10633 lt_cv_prog_compiler_c_o \ 10634 exclude_expsyms \ 10635 include_expsyms; do 10636 10637 case $var in 10638 old_archive_cmds | \ 10639 old_archive_from_new_cmds | \ 10640 archive_cmds | \ 10641 archive_expsym_cmds | \ 10642 module_cmds | \ 10643 module_expsym_cmds | \ 10644 old_archive_from_expsyms_cmds | \ 10645 export_symbols_cmds | \ 10646 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10647 postinstall_cmds | postuninstall_cmds | \ 10648 old_postinstall_cmds | old_postuninstall_cmds | \ 10649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10650 # Double-quote double-evaled strings. 10651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10652 ;; 10653 *) 10654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10655 ;; 10656 esac 10657 done 10658 10659 case $lt_echo in 10660 *'\$0 --fallback-echo"') 10661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10662 ;; 10663 esac 10664 10665cfgfile="${ofile}T" 10666 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10667 $rm -f "$cfgfile" 10668 { echo "$as_me:$LINENO: creating $ofile" >&5 10669echo "$as_me: creating $ofile" >&6;} 10670 10671 cat <<__EOF__ >> "$cfgfile" 10672#! $SHELL 10673 10674# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10675# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10676# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10677# 10678# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10679# Free Software Foundation, Inc. 10680# 10681# This file is part of GNU Libtool: 10682# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10683# 10684# This program is free software; you can redistribute it and/or modify 10685# it under the terms of the GNU General Public License as published by 10686# the Free Software Foundation; either version 2 of the License, or 10687# (at your option) any later version. 10688# 10689# This program is distributed in the hope that it will be useful, but 10690# WITHOUT ANY WARRANTY; without even the implied warranty of 10691# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10692# General Public License for more details. 10693# 10694# You should have received a copy of the GNU General Public License 10695# along with this program; if not, write to the Free Software 10696# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10697# 10698# As a special exception to the GNU General Public License, if you 10699# distribute this file as part of a program that contains a 10700# configuration script generated by Autoconf, you may include it under 10701# the same distribution terms that you use for the rest of that program. 10702 10703# A sed program that does not truncate output. 10704SED=$lt_SED 10705 10706# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10707Xsed="$SED -e 1s/^X//" 10708 10709# The HP-UX ksh and POSIX shell print the target directory to stdout 10710# if CDPATH is set. 10711(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10712 10713# The names of the tagged configurations supported by this script. 10714available_tags= 10715 10716# ### BEGIN LIBTOOL CONFIG 10717 10718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10719 10720# Shell to use when invoking shell scripts. 10721SHELL=$lt_SHELL 10722 10723# Whether or not to build shared libraries. 10724build_libtool_libs=$enable_shared 10725 10726# Whether or not to build static libraries. 10727build_old_libs=$enable_static 10728 10729# Whether or not to add -lc for building shared libraries. 10730build_libtool_need_lc=$archive_cmds_need_lc 10731 10732# Whether or not to disallow shared libs when runtime libs are static 10733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10734 10735# Whether or not to optimize for fast installation. 10736fast_install=$enable_fast_install 10737 10738# The host system. 10739host_alias=$host_alias 10740host=$host 10741host_os=$host_os 10742 10743# The build system. 10744build_alias=$build_alias 10745build=$build 10746build_os=$build_os 10747 10748# An echo program that does not interpret backslashes. 10749echo=$lt_echo 10750 10751# The archiver. 10752AR=$lt_AR 10753AR_FLAGS=$lt_AR_FLAGS 10754 10755# A C compiler. 10756LTCC=$lt_LTCC 10757 10758# LTCC compiler flags. 10759LTCFLAGS=$lt_LTCFLAGS 10760 10761# A language-specific compiler. 10762CC=$lt_compiler 10763 10764# Is the compiler the GNU C compiler? 10765with_gcc=$GCC 10766 10767# An ERE matcher. 10768EGREP=$lt_EGREP 10769 10770# The linker used to build libraries. 10771LD=$lt_LD 10772 10773# Whether we need hard or soft links. 10774LN_S=$lt_LN_S 10775 10776# A BSD-compatible nm program. 10777NM=$lt_NM 10778 10779# A symbol stripping program 10780STRIP=$lt_STRIP 10781 10782# Used to examine libraries when file_magic_cmd begins "file" 10783MAGIC_CMD=$MAGIC_CMD 10784 10785# Used on cygwin: DLL creation program. 10786DLLTOOL="$DLLTOOL" 10787 10788# Used on cygwin: object dumper. 10789OBJDUMP="$OBJDUMP" 10790 10791# Used on cygwin: assembler. 10792AS="$AS" 10793 10794# The name of the directory that contains temporary libtool files. 10795objdir=$objdir 10796 10797# How to create reloadable object files. 10798reload_flag=$lt_reload_flag 10799reload_cmds=$lt_reload_cmds 10800 10801# How to pass a linker flag through the compiler. 10802wl=$lt_lt_prog_compiler_wl 10803 10804# Object file suffix (normally "o"). 10805objext="$ac_objext" 10806 10807# Old archive suffix (normally "a"). 10808libext="$libext" 10809 10810# Shared library suffix (normally ".so"). 10811shrext_cmds='$shrext_cmds' 10812 10813# Executable file suffix (normally ""). 10814exeext="$exeext" 10815 10816# Additional compiler flags for building library objects. 10817pic_flag=$lt_lt_prog_compiler_pic 10818pic_mode=$pic_mode 10819 10820# What is the maximum length of a command? 10821max_cmd_len=$lt_cv_sys_max_cmd_len 10822 10823# Does compiler simultaneously support -c and -o options? 10824compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10825 10826# Must we lock files when doing compilation? 10827need_locks=$lt_need_locks 10828 10829# Do we need the lib prefix for modules? 10830need_lib_prefix=$need_lib_prefix 10831 10832# Do we need a version for libraries? 10833need_version=$need_version 10834 10835# Whether dlopen is supported. 10836dlopen_support=$enable_dlopen 10837 10838# Whether dlopen of programs is supported. 10839dlopen_self=$enable_dlopen_self 10840 10841# Whether dlopen of statically linked programs is supported. 10842dlopen_self_static=$enable_dlopen_self_static 10843 10844# Compiler flag to prevent dynamic linking. 10845link_static_flag=$lt_lt_prog_compiler_static 10846 10847# Compiler flag to turn off builtin functions. 10848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10849 10850# Compiler flag to allow reflexive dlopens. 10851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10852 10853# Compiler flag to generate shared objects directly from archives. 10854whole_archive_flag_spec=$lt_whole_archive_flag_spec 10855 10856# Compiler flag to generate thread-safe objects. 10857thread_safe_flag_spec=$lt_thread_safe_flag_spec 10858 10859# Library versioning type. 10860version_type=$version_type 10861 10862# Format of library name prefix. 10863libname_spec=$lt_libname_spec 10864 10865# List of archive names. First name is the real one, the rest are links. 10866# The last name is the one that the linker finds with -lNAME. 10867library_names_spec=$lt_library_names_spec 10868 10869# The coded name of the library, if different from the real name. 10870soname_spec=$lt_soname_spec 10871 10872# Commands used to build and install an old-style archive. 10873RANLIB=$lt_RANLIB 10874old_archive_cmds=$lt_old_archive_cmds 10875old_postinstall_cmds=$lt_old_postinstall_cmds 10876old_postuninstall_cmds=$lt_old_postuninstall_cmds 10877 10878# Create an old-style archive from a shared archive. 10879old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10880 10881# Create a temporary old-style archive to link instead of a shared archive. 10882old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10883 10884# Commands used to build and install a shared archive. 10885archive_cmds=$lt_archive_cmds 10886archive_expsym_cmds=$lt_archive_expsym_cmds 10887postinstall_cmds=$lt_postinstall_cmds 10888postuninstall_cmds=$lt_postuninstall_cmds 10889 10890# Commands used to build a loadable module (assumed same as above if empty) 10891module_cmds=$lt_module_cmds 10892module_expsym_cmds=$lt_module_expsym_cmds 10893 10894# Commands to strip libraries. 10895old_striplib=$lt_old_striplib 10896striplib=$lt_striplib 10897 10898# Dependencies to place before the objects being linked to create a 10899# shared library. 10900predep_objects=$lt_predep_objects 10901 10902# Dependencies to place after the objects being linked to create a 10903# shared library. 10904postdep_objects=$lt_postdep_objects 10905 10906# Dependencies to place before the objects being linked to create a 10907# shared library. 10908predeps=$lt_predeps 10909 10910# Dependencies to place after the objects being linked to create a 10911# shared library. 10912postdeps=$lt_postdeps 10913 10914# The library search path used internally by the compiler when linking 10915# a shared library. 10916compiler_lib_search_path=$lt_compiler_lib_search_path 10917 10918# Method to check whether dependent libraries are shared objects. 10919deplibs_check_method=$lt_deplibs_check_method 10920 10921# Command to use when deplibs_check_method == file_magic. 10922file_magic_cmd=$lt_file_magic_cmd 10923 10924# Flag that allows shared libraries with undefined symbols to be built. 10925allow_undefined_flag=$lt_allow_undefined_flag 10926 10927# Flag that forces no undefined symbols. 10928no_undefined_flag=$lt_no_undefined_flag 10929 10930# Commands used to finish a libtool library installation in a directory. 10931finish_cmds=$lt_finish_cmds 10932 10933# Same as above, but a single script fragment to be evaled but not shown. 10934finish_eval=$lt_finish_eval 10935 10936# Take the output of nm and produce a listing of raw symbols and C names. 10937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10938 10939# Transform the output of nm in a proper C declaration 10940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10941 10942# Transform the output of nm in a C name address pair 10943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10944 10945# This is the shared library runtime path variable. 10946runpath_var=$runpath_var 10947 10948# This is the shared library path variable. 10949shlibpath_var=$shlibpath_var 10950 10951# Is shlibpath searched before the hard-coded library search path? 10952shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10953 10954# How to hardcode a shared library path into an executable. 10955hardcode_action=$hardcode_action 10956 10957# Whether we should hardcode library paths into libraries. 10958hardcode_into_libs=$hardcode_into_libs 10959 10960# Flag to hardcode \$libdir into a binary during linking. 10961# This must work even if \$libdir does not exist. 10962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10963 10964# If ld is used when linking, flag to hardcode \$libdir into 10965# a binary during linking. This must work even if \$libdir does 10966# not exist. 10967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10968 10969# Whether we need a single -rpath flag with a separated argument. 10970hardcode_libdir_separator=$lt_hardcode_libdir_separator 10971 10972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10973# resulting binary. 10974hardcode_direct=$hardcode_direct 10975 10976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10977# resulting binary. 10978hardcode_minus_L=$hardcode_minus_L 10979 10980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10981# the resulting binary. 10982hardcode_shlibpath_var=$hardcode_shlibpath_var 10983 10984# Set to yes if building a shared library automatically hardcodes DIR into the library 10985# and all subsequent libraries and executables linked against it. 10986hardcode_automatic=$hardcode_automatic 10987 10988# Variables whose values should be saved in libtool wrapper scripts and 10989# restored at relink time. 10990variables_saved_for_relink="$variables_saved_for_relink" 10991 10992# Whether libtool must link a program against all its dependency libraries. 10993link_all_deplibs=$link_all_deplibs 10994 10995# Compile-time system search path for libraries 10996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10997 10998# Run-time system search path for libraries 10999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11000 11001# Fix the shell variable \$srcfile for the compiler. 11002fix_srcfile_path="$fix_srcfile_path" 11003 11004# Set to yes if exported symbols are required. 11005always_export_symbols=$always_export_symbols 11006 11007# The commands to list exported symbols. 11008export_symbols_cmds=$lt_export_symbols_cmds 11009 11010# The commands to extract the exported symbol list from a shared archive. 11011extract_expsyms_cmds=$lt_extract_expsyms_cmds 11012 11013# Symbols that should not be listed in the preloaded symbols. 11014exclude_expsyms=$lt_exclude_expsyms 11015 11016# Symbols that must always be exported. 11017include_expsyms=$lt_include_expsyms 11018 11019# ### END LIBTOOL CONFIG 11020 11021__EOF__ 11022 11023 11024 case $host_os in 11025 aix3*) 11026 cat <<\EOF >> "$cfgfile" 11027 11028# AIX sometimes has problems with the GCC collect2 program. For some 11029# reason, if we set the COLLECT_NAMES environment variable, the problems 11030# vanish in a puff of smoke. 11031if test "X${COLLECT_NAMES+set}" != Xset; then 11032 COLLECT_NAMES= 11033 export COLLECT_NAMES 11034fi 11035EOF 11036 ;; 11037 esac 11038 11039 # We use sed instead of cat because bash on DJGPP gets confused if 11040 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11041 # text mode, it properly converts lines to CR/LF. This bash problem 11042 # is reportedly fixed, but why not run on old versions too? 11043 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11044 11045 mv -f "$cfgfile" "$ofile" || \ 11046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11047 chmod +x "$ofile" 11048 11049else 11050 # If there is no Makefile yet, we rely on a make rule to execute 11051 # `config.status --recheck' to rerun these tests and create the 11052 # libtool script then. 11053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11054 if test -f "$ltmain_in"; then 11055 test -f Makefile && make "$ltmain" 11056 fi 11057fi 11058 11059 11060ac_ext=c 11061ac_cpp='$CPP $CPPFLAGS' 11062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11064ac_compiler_gnu=$ac_cv_c_compiler_gnu 11065 11066CC="$lt_save_CC" 11067 11068 11069# Check whether --with-tags was given. 11070if test "${with_tags+set}" = set; then 11071 withval=$with_tags; tagnames="$withval" 11072fi 11073 11074 11075if test -f "$ltmain" && test -n "$tagnames"; then 11076 if test ! -f "${ofile}"; then 11077 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11078echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11079 fi 11080 11081 if test -z "$LTCC"; then 11082 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11083 if test -z "$LTCC"; then 11084 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11085echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11086 else 11087 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11088echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11089 fi 11090 fi 11091 if test -z "$LTCFLAGS"; then 11092 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11093 fi 11094 11095 # Extract list of available tagged configurations in $ofile. 11096 # Note that this assumes the entire list is on one line. 11097 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11098 11099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11100 for tagname in $tagnames; do 11101 IFS="$lt_save_ifs" 11102 # Check whether tagname contains only valid characters 11103 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11104 "") ;; 11105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11106echo "$as_me: error: invalid tag name: $tagname" >&2;} 11107 { (exit 1); exit 1; }; } 11108 ;; 11109 esac 11110 11111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11112 then 11113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11114echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11115 { (exit 1); exit 1; }; } 11116 fi 11117 11118 # Update the list of available tags. 11119 if test -n "$tagname"; then 11120 echo appending configuration tag \"$tagname\" to $ofile 11121 11122 case $tagname in 11123 CXX) 11124 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11126 (test "X$CXX" != "Xg++"))) ; then 11127 ac_ext=cpp 11128ac_cpp='$CXXCPP $CPPFLAGS' 11129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11132 11133 11134 11135 11136archive_cmds_need_lc_CXX=no 11137allow_undefined_flag_CXX= 11138always_export_symbols_CXX=no 11139archive_expsym_cmds_CXX= 11140export_dynamic_flag_spec_CXX= 11141hardcode_direct_CXX=no 11142hardcode_libdir_flag_spec_CXX= 11143hardcode_libdir_flag_spec_ld_CXX= 11144hardcode_libdir_separator_CXX= 11145hardcode_minus_L_CXX=no 11146hardcode_shlibpath_var_CXX=unsupported 11147hardcode_automatic_CXX=no 11148module_cmds_CXX= 11149module_expsym_cmds_CXX= 11150link_all_deplibs_CXX=unknown 11151old_archive_cmds_CXX=$old_archive_cmds 11152no_undefined_flag_CXX= 11153whole_archive_flag_spec_CXX= 11154enable_shared_with_static_runtimes_CXX=no 11155 11156# Dependencies to place before and after the object being linked: 11157predep_objects_CXX= 11158postdep_objects_CXX= 11159predeps_CXX= 11160postdeps_CXX= 11161compiler_lib_search_path_CXX= 11162 11163# Source file extension for C++ test sources. 11164ac_ext=cpp 11165 11166# Object file extension for compiled C++ test sources. 11167objext=o 11168objext_CXX=$objext 11169 11170# Code to be used in simple compile tests 11171lt_simple_compile_test_code="int some_variable = 0;\n" 11172 11173# Code to be used in simple link tests 11174lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11175 11176# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11177 11178# If no C compiler was specified, use CC. 11179LTCC=${LTCC-"$CC"} 11180 11181# If no C compiler flags were specified, use CFLAGS. 11182LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11183 11184# Allow CC to be a program name with arguments. 11185compiler=$CC 11186 11187 11188# save warnings/boilerplate of simple test code 11189ac_outfile=conftest.$ac_objext 11190printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11192_lt_compiler_boilerplate=`cat conftest.err` 11193$rm conftest* 11194 11195ac_outfile=conftest.$ac_objext 11196printf "$lt_simple_link_test_code" >conftest.$ac_ext 11197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11198_lt_linker_boilerplate=`cat conftest.err` 11199$rm conftest* 11200 11201 11202# Allow CC to be a program name with arguments. 11203lt_save_CC=$CC 11204lt_save_LD=$LD 11205lt_save_GCC=$GCC 11206GCC=$GXX 11207lt_save_with_gnu_ld=$with_gnu_ld 11208lt_save_path_LD=$lt_cv_path_LD 11209if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11210 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11211else 11212 $as_unset lt_cv_prog_gnu_ld 11213fi 11214if test -n "${lt_cv_path_LDCXX+set}"; then 11215 lt_cv_path_LD=$lt_cv_path_LDCXX 11216else 11217 $as_unset lt_cv_path_LD 11218fi 11219test -z "${LDCXX+set}" || LD=$LDCXX 11220CC=${CXX-"c++"} 11221compiler=$CC 11222compiler_CXX=$CC 11223for cc_temp in $compiler""; do 11224 case $cc_temp in 11225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11227 \-*) ;; 11228 *) break;; 11229 esac 11230done 11231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11232 11233 11234# We don't want -fno-exception wen compiling C++ code, so set the 11235# no_builtin_flag separately 11236if test "$GXX" = yes; then 11237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11238else 11239 lt_prog_compiler_no_builtin_flag_CXX= 11240fi 11241 11242if test "$GXX" = yes; then 11243 # Set up default GNU C++ configuration 11244 11245 11246# Check whether --with-gnu-ld was given. 11247if test "${with_gnu_ld+set}" = set; then 11248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11249else 11250 with_gnu_ld=no 11251fi 11252 11253ac_prog=ld 11254if test "$GCC" = yes; then 11255 # Check if gcc -print-prog-name=ld gives a path. 11256 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11257echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11258 case $host in 11259 *-*-mingw*) 11260 # gcc leaves a trailing carriage return which upsets mingw 11261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11262 *) 11263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11264 esac 11265 case $ac_prog in 11266 # Accept absolute paths. 11267 [\\/]* | ?:[\\/]*) 11268 re_direlt='/[^/][^/]*/\.\./' 11269 # Canonicalize the pathname of ld 11270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11273 done 11274 test -z "$LD" && LD="$ac_prog" 11275 ;; 11276 "") 11277 # If it fails, then pretend we aren't using GCC. 11278 ac_prog=ld 11279 ;; 11280 *) 11281 # If it is relative, then search for the first ld in PATH. 11282 with_gnu_ld=unknown 11283 ;; 11284 esac 11285elif test "$with_gnu_ld" = yes; then 11286 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11287echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11288else 11289 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11290echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11291fi 11292if test "${lt_cv_path_LD+set}" = set; then 11293 echo $ECHO_N "(cached) $ECHO_C" >&6 11294else 11295 if test -z "$LD"; then 11296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11297 for ac_dir in $PATH; do 11298 IFS="$lt_save_ifs" 11299 test -z "$ac_dir" && ac_dir=. 11300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11301 lt_cv_path_LD="$ac_dir/$ac_prog" 11302 # Check to see if the program is GNU ld. I'd rather use --version, 11303 # but apparently some variants of GNU ld only accept -v. 11304 # Break only if it was the GNU/non-GNU ld that we prefer. 11305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11306 *GNU* | *'with BFD'*) 11307 test "$with_gnu_ld" != no && break 11308 ;; 11309 *) 11310 test "$with_gnu_ld" != yes && break 11311 ;; 11312 esac 11313 fi 11314 done 11315 IFS="$lt_save_ifs" 11316else 11317 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11318fi 11319fi 11320 11321LD="$lt_cv_path_LD" 11322if test -n "$LD"; then 11323 { echo "$as_me:$LINENO: result: $LD" >&5 11324echo "${ECHO_T}$LD" >&6; } 11325else 11326 { echo "$as_me:$LINENO: result: no" >&5 11327echo "${ECHO_T}no" >&6; } 11328fi 11329test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11330echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11331 { (exit 1); exit 1; }; } 11332{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11333echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11334if test "${lt_cv_prog_gnu_ld+set}" = set; then 11335 echo $ECHO_N "(cached) $ECHO_C" >&6 11336else 11337 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11338case `$LD -v 2>&1 </dev/null` in 11339*GNU* | *'with BFD'*) 11340 lt_cv_prog_gnu_ld=yes 11341 ;; 11342*) 11343 lt_cv_prog_gnu_ld=no 11344 ;; 11345esac 11346fi 11347{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11348echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11349with_gnu_ld=$lt_cv_prog_gnu_ld 11350 11351 11352 11353 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11354 # archiving commands below assume that GNU ld is being used. 11355 if test "$with_gnu_ld" = yes; then 11356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11357 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' 11358 11359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11361 11362 # If archive_cmds runs LD, not CC, wlarc should be empty 11363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11364 # investigate it a little bit more. (MM) 11365 wlarc='${wl}' 11366 11367 # ancient GNU ld didn't support --whole-archive et. al. 11368 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11369 grep 'no-whole-archive' > /dev/null; then 11370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11371 else 11372 whole_archive_flag_spec_CXX= 11373 fi 11374 else 11375 with_gnu_ld=no 11376 wlarc= 11377 11378 # A generic and very simple default shared library creation 11379 # command for GNU C++ for the case where it uses the native 11380 # linker, instead of GNU ld. If possible, this setting should 11381 # overridden to take advantage of the native linker features on 11382 # the platform it is being used on. 11383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11384 fi 11385 11386 # Commands to make compiler produce verbose output that lists 11387 # what "hidden" libraries, object files and flags are used when 11388 # linking a shared library. 11389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11390 11391else 11392 GXX=no 11393 with_gnu_ld=no 11394 wlarc= 11395fi 11396 11397# PORTME: fill in a description of your system's C++ link characteristics 11398{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11399echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11400ld_shlibs_CXX=yes 11401case $host_os in 11402 aix3*) 11403 # FIXME: insert proper C++ library support 11404 ld_shlibs_CXX=no 11405 ;; 11406 aix4* | aix5*) 11407 if test "$host_cpu" = ia64; then 11408 # On IA64, the linker does run time linking by default, so we don't 11409 # have to do anything special. 11410 aix_use_runtimelinking=no 11411 exp_sym_flag='-Bexport' 11412 no_entry_flag="" 11413 else 11414 aix_use_runtimelinking=no 11415 11416 # Test if we are trying to use run time linking or normal 11417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11418 # need to do runtime linking. 11419 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11420 for ld_flag in $LDFLAGS; do 11421 case $ld_flag in 11422 *-brtl*) 11423 aix_use_runtimelinking=yes 11424 break 11425 ;; 11426 esac 11427 done 11428 ;; 11429 esac 11430 11431 exp_sym_flag='-bexport' 11432 no_entry_flag='-bnoentry' 11433 fi 11434 11435 # When large executables or shared objects are built, AIX ld can 11436 # have problems creating the table of contents. If linking a library 11437 # or program results in "error TOC overflow" add -mminimal-toc to 11438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11440 11441 archive_cmds_CXX='' 11442 hardcode_direct_CXX=yes 11443 hardcode_libdir_separator_CXX=':' 11444 link_all_deplibs_CXX=yes 11445 11446 if test "$GXX" = yes; then 11447 case $host_os in aix4.[012]|aix4.[012].*) 11448 # We only want to do this on AIX 4.2 and lower, the check 11449 # below for broken collect2 doesn't work under 4.3+ 11450 collect2name=`${CC} -print-prog-name=collect2` 11451 if test -f "$collect2name" && \ 11452 strings "$collect2name" | grep resolve_lib_name >/dev/null 11453 then 11454 # We have reworked collect2 11455 hardcode_direct_CXX=yes 11456 else 11457 # We have old collect2 11458 hardcode_direct_CXX=unsupported 11459 # It fails to find uninstalled libraries when the uninstalled 11460 # path is not listed in the libpath. Setting hardcode_minus_L 11461 # to unsupported forces relinking 11462 hardcode_minus_L_CXX=yes 11463 hardcode_libdir_flag_spec_CXX='-L$libdir' 11464 hardcode_libdir_separator_CXX= 11465 fi 11466 ;; 11467 esac 11468 shared_flag='-shared' 11469 if test "$aix_use_runtimelinking" = yes; then 11470 shared_flag="$shared_flag "'${wl}-G' 11471 fi 11472 else 11473 # not using gcc 11474 if test "$host_cpu" = ia64; then 11475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11476 # chokes on -Wl,-G. The following line is correct: 11477 shared_flag='-G' 11478 else 11479 if test "$aix_use_runtimelinking" = yes; then 11480 shared_flag='${wl}-G' 11481 else 11482 shared_flag='${wl}-bM:SRE' 11483 fi 11484 fi 11485 fi 11486 11487 # It seems that -bexpall does not export symbols beginning with 11488 # underscore (_), so it is better to generate a list of symbols to export. 11489 always_export_symbols_CXX=yes 11490 if test "$aix_use_runtimelinking" = yes; then 11491 # Warning - without using the other runtime loading flags (-brtl), 11492 # -berok will link without error, but may produce a broken library. 11493 allow_undefined_flag_CXX='-berok' 11494 # Determine the default libpath from the value encoded in an empty executable. 11495 cat >conftest.$ac_ext <<_ACEOF 11496/* confdefs.h. */ 11497_ACEOF 11498cat confdefs.h >>conftest.$ac_ext 11499cat >>conftest.$ac_ext <<_ACEOF 11500/* end confdefs.h. */ 11501 11502int 11503main () 11504{ 11505 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510rm -f conftest.$ac_objext conftest$ac_exeext 11511if { (ac_try="$ac_link" 11512case "(($ac_try" in 11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11514 *) ac_try_echo=$ac_try;; 11515esac 11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11517 (eval "$ac_link") 2>conftest.er1 11518 ac_status=$? 11519 grep -v '^ *+' conftest.er1 >conftest.err 11520 rm -f conftest.er1 11521 cat conftest.err >&5 11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11523 (exit $ac_status); } && { 11524 test -z "$ac_cxx_werror_flag" || 11525 test ! -s conftest.err 11526 } && test -s conftest$ac_exeext && 11527 $as_test_x conftest$ac_exeext; then 11528 11529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11530}'` 11531# Check for a 64-bit object if we didn't find anything. 11532if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11533}'`; fi 11534else 11535 echo "$as_me: failed program was:" >&5 11536sed 's/^/| /' conftest.$ac_ext >&5 11537 11538 11539fi 11540 11541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11542 conftest$ac_exeext conftest.$ac_ext 11543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11544 11545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11546 11547 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" 11548 else 11549 if test "$host_cpu" = ia64; then 11550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11551 allow_undefined_flag_CXX="-z nodefs" 11552 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" 11553 else 11554 # Determine the default libpath from the value encoded in an empty executable. 11555 cat >conftest.$ac_ext <<_ACEOF 11556/* confdefs.h. */ 11557_ACEOF 11558cat confdefs.h >>conftest.$ac_ext 11559cat >>conftest.$ac_ext <<_ACEOF 11560/* end confdefs.h. */ 11561 11562int 11563main () 11564{ 11565 11566 ; 11567 return 0; 11568} 11569_ACEOF 11570rm -f conftest.$ac_objext conftest$ac_exeext 11571if { (ac_try="$ac_link" 11572case "(($ac_try" in 11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11574 *) ac_try_echo=$ac_try;; 11575esac 11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11577 (eval "$ac_link") 2>conftest.er1 11578 ac_status=$? 11579 grep -v '^ *+' conftest.er1 >conftest.err 11580 rm -f conftest.er1 11581 cat conftest.err >&5 11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11583 (exit $ac_status); } && { 11584 test -z "$ac_cxx_werror_flag" || 11585 test ! -s conftest.err 11586 } && test -s conftest$ac_exeext && 11587 $as_test_x conftest$ac_exeext; then 11588 11589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11590}'` 11591# Check for a 64-bit object if we didn't find anything. 11592if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11593}'`; fi 11594else 11595 echo "$as_me: failed program was:" >&5 11596sed 's/^/| /' conftest.$ac_ext >&5 11597 11598 11599fi 11600 11601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11602 conftest$ac_exeext conftest.$ac_ext 11603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11604 11605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11606 # Warning - without using the other run time loading flags, 11607 # -berok will link without error, but may produce a broken library. 11608 no_undefined_flag_CXX=' ${wl}-bernotok' 11609 allow_undefined_flag_CXX=' ${wl}-berok' 11610 # Exported symbols can be pulled into shared objects from archives 11611 whole_archive_flag_spec_CXX='$convenience' 11612 archive_cmds_need_lc_CXX=yes 11613 # This is similar to how AIX traditionally builds its shared libraries. 11614 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' 11615 fi 11616 fi 11617 ;; 11618 11619 beos*) 11620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11621 allow_undefined_flag_CXX=unsupported 11622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11623 # support --undefined. This deserves some investigation. FIXME 11624 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11625 else 11626 ld_shlibs_CXX=no 11627 fi 11628 ;; 11629 11630 chorus*) 11631 case $cc_basename in 11632 *) 11633 # FIXME: insert proper C++ library support 11634 ld_shlibs_CXX=no 11635 ;; 11636 esac 11637 ;; 11638 11639 cygwin* | mingw* | pw32*) 11640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11641 # as there is no search path for DLLs. 11642 hardcode_libdir_flag_spec_CXX='-L$libdir' 11643 allow_undefined_flag_CXX=unsupported 11644 always_export_symbols_CXX=no 11645 enable_shared_with_static_runtimes_CXX=yes 11646 11647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11648 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' 11649 # If the export-symbols file already is a .def file (1st line 11650 # is EXPORTS), use it as is; otherwise, prepend... 11651 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11652 cp $export_symbols $output_objdir/$soname.def; 11653 else 11654 echo EXPORTS > $output_objdir/$soname.def; 11655 cat $export_symbols >> $output_objdir/$soname.def; 11656 fi~ 11657 $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' 11658 else 11659 ld_shlibs_CXX=no 11660 fi 11661 ;; 11662 darwin* | rhapsody*) 11663 case $host_os in 11664 rhapsody* | darwin1.[012]) 11665 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11666 ;; 11667 *) # Darwin 1.3 on 11668 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11669 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11670 else 11671 case ${MACOSX_DEPLOYMENT_TARGET} in 11672 10.[012]) 11673 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11674 ;; 11675 10.*) 11676 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11677 ;; 11678 esac 11679 fi 11680 ;; 11681 esac 11682 archive_cmds_need_lc_CXX=no 11683 hardcode_direct_CXX=no 11684 hardcode_automatic_CXX=yes 11685 hardcode_shlibpath_var_CXX=unsupported 11686 whole_archive_flag_spec_CXX='' 11687 link_all_deplibs_CXX=yes 11688 11689 if test "$GXX" = yes ; then 11690 lt_int_apple_cc_single_mod=no 11691 output_verbose_link_cmd='echo' 11692 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11693 lt_int_apple_cc_single_mod=yes 11694 fi 11695 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11696 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11697 else 11698 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' 11699 fi 11700 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11703 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}' 11704 else 11705 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}' 11706 fi 11707 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}' 11708 else 11709 case $cc_basename in 11710 xlc*) 11711 output_verbose_link_cmd='echo' 11712 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11713 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11715 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11716 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}' 11717 ;; 11718 *) 11719 ld_shlibs_CXX=no 11720 ;; 11721 esac 11722 fi 11723 ;; 11724 11725 dgux*) 11726 case $cc_basename in 11727 ec++*) 11728 # FIXME: insert proper C++ library support 11729 ld_shlibs_CXX=no 11730 ;; 11731 ghcx*) 11732 # Green Hills C++ Compiler 11733 # FIXME: insert proper C++ library support 11734 ld_shlibs_CXX=no 11735 ;; 11736 *) 11737 # FIXME: insert proper C++ library support 11738 ld_shlibs_CXX=no 11739 ;; 11740 esac 11741 ;; 11742 freebsd[12]*) 11743 # C++ shared libraries reported to be fairly broken before switch to ELF 11744 ld_shlibs_CXX=no 11745 ;; 11746 freebsd-elf*) 11747 archive_cmds_need_lc_CXX=no 11748 ;; 11749 freebsd* | dragonfly*) 11750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11751 # conventions 11752 ld_shlibs_CXX=yes 11753 ;; 11754 gnu*) 11755 ;; 11756 hpux9*) 11757 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11758 hardcode_libdir_separator_CXX=: 11759 export_dynamic_flag_spec_CXX='${wl}-E' 11760 hardcode_direct_CXX=yes 11761 hardcode_minus_L_CXX=yes # Not in the search PATH, 11762 # but as the default 11763 # location of the library. 11764 11765 case $cc_basename in 11766 CC*) 11767 # FIXME: insert proper C++ library support 11768 ld_shlibs_CXX=no 11769 ;; 11770 aCC*) 11771 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' 11772 # Commands to make compiler produce verbose output that lists 11773 # what "hidden" libraries, object files and flags are used when 11774 # linking a shared library. 11775 # 11776 # There doesn't appear to be a way to prevent this compiler from 11777 # explicitly linking system object files so we need to strip them 11778 # from the output so that they don't get included in the library 11779 # dependencies. 11780 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' 11781 ;; 11782 *) 11783 if test "$GXX" = yes; then 11784 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' 11785 else 11786 # FIXME: insert proper C++ library support 11787 ld_shlibs_CXX=no 11788 fi 11789 ;; 11790 esac 11791 ;; 11792 hpux10*|hpux11*) 11793 if test $with_gnu_ld = no; then 11794 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11795 hardcode_libdir_separator_CXX=: 11796 11797 case $host_cpu in 11798 hppa*64*|ia64*) 11799 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11800 ;; 11801 *) 11802 export_dynamic_flag_spec_CXX='${wl}-E' 11803 ;; 11804 esac 11805 fi 11806 case $host_cpu in 11807 hppa*64*|ia64*) 11808 hardcode_direct_CXX=no 11809 hardcode_shlibpath_var_CXX=no 11810 ;; 11811 *) 11812 hardcode_direct_CXX=yes 11813 hardcode_minus_L_CXX=yes # Not in the search PATH, 11814 # but as the default 11815 # location of the library. 11816 ;; 11817 esac 11818 11819 case $cc_basename in 11820 CC*) 11821 # FIXME: insert proper C++ library support 11822 ld_shlibs_CXX=no 11823 ;; 11824 aCC*) 11825 case $host_cpu in 11826 hppa*64*) 11827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11828 ;; 11829 ia64*) 11830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11831 ;; 11832 *) 11833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11834 ;; 11835 esac 11836 # Commands to make compiler produce verbose output that lists 11837 # what "hidden" libraries, object files and flags are used when 11838 # linking a shared library. 11839 # 11840 # There doesn't appear to be a way to prevent this compiler from 11841 # explicitly linking system object files so we need to strip them 11842 # from the output so that they don't get included in the library 11843 # dependencies. 11844 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' 11845 ;; 11846 *) 11847 if test "$GXX" = yes; then 11848 if test $with_gnu_ld = no; then 11849 case $host_cpu in 11850 hppa*64*) 11851 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11852 ;; 11853 ia64*) 11854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11855 ;; 11856 *) 11857 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' 11858 ;; 11859 esac 11860 fi 11861 else 11862 # FIXME: insert proper C++ library support 11863 ld_shlibs_CXX=no 11864 fi 11865 ;; 11866 esac 11867 ;; 11868 interix3*) 11869 hardcode_direct_CXX=no 11870 hardcode_shlibpath_var_CXX=no 11871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11872 export_dynamic_flag_spec_CXX='${wl}-E' 11873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11874 # Instead, shared libraries are loaded at an image base (0x10000000 by 11875 # default) and relocated if they conflict, which is a slow very memory 11876 # consuming and fragmenting process. To avoid this, we pick a random, 11877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11878 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11879 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' 11880 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' 11881 ;; 11882 irix5* | irix6*) 11883 case $cc_basename in 11884 CC*) 11885 # SGI C++ 11886 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' 11887 11888 # Archives containing C++ object files must be created using 11889 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11890 # necessary to make sure instantiated templates are included 11891 # in the archive. 11892 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11893 ;; 11894 *) 11895 if test "$GXX" = yes; then 11896 if test "$with_gnu_ld" = no; then 11897 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' 11898 else 11899 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' 11900 fi 11901 fi 11902 link_all_deplibs_CXX=yes 11903 ;; 11904 esac 11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11906 hardcode_libdir_separator_CXX=: 11907 ;; 11908 linux* | k*bsd*-gnu) 11909 case $cc_basename in 11910 KCC*) 11911 # Kuck and Associates, Inc. (KAI) C++ Compiler 11912 11913 # KCC will only create a shared library if the output file 11914 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11915 # to its proper name (with version) after linking. 11916 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' 11917 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' 11918 # Commands to make compiler produce verbose output that lists 11919 # what "hidden" libraries, object files and flags are used when 11920 # linking a shared library. 11921 # 11922 # There doesn't appear to be a way to prevent this compiler from 11923 # explicitly linking system object files so we need to strip them 11924 # from the output so that they don't get included in the library 11925 # dependencies. 11926 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' 11927 11928 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11930 11931 # Archives containing C++ object files must be created using 11932 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11934 ;; 11935 icpc*) 11936 # Intel C++ 11937 with_gnu_ld=yes 11938 # version 8.0 and above of icpc choke on multiply defined symbols 11939 # if we add $predep_objects and $postdep_objects, however 7.1 and 11940 # earlier do not add the objects themselves. 11941 case `$CC -V 2>&1` in 11942 *"Version 7."*) 11943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11944 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' 11945 ;; 11946 *) # Version 8.0 or newer 11947 tmp_idyn= 11948 case $host_cpu in 11949 ia64*) tmp_idyn=' -i_dynamic';; 11950 esac 11951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11952 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' 11953 ;; 11954 esac 11955 archive_cmds_need_lc_CXX=no 11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11958 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11959 ;; 11960 pgCC*) 11961 # Portland Group C++ compiler 11962 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11963 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' 11964 11965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11967 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' 11968 ;; 11969 cxx*) 11970 # Compaq C++ 11971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11972 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' 11973 11974 runpath_var=LD_RUN_PATH 11975 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11976 hardcode_libdir_separator_CXX=: 11977 11978 # Commands to make compiler produce verbose output that lists 11979 # what "hidden" libraries, object files and flags are used when 11980 # linking a shared library. 11981 # 11982 # There doesn't appear to be a way to prevent this compiler from 11983 # explicitly linking system object files so we need to strip them 11984 # from the output so that they don't get included in the library 11985 # dependencies. 11986 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' 11987 ;; 11988 esac 11989 ;; 11990 lynxos*) 11991 # FIXME: insert proper C++ library support 11992 ld_shlibs_CXX=no 11993 ;; 11994 m88k*) 11995 # FIXME: insert proper C++ library support 11996 ld_shlibs_CXX=no 11997 ;; 11998 mvs*) 11999 case $cc_basename in 12000 cxx*) 12001 # FIXME: insert proper C++ library support 12002 ld_shlibs_CXX=no 12003 ;; 12004 *) 12005 # FIXME: insert proper C++ library support 12006 ld_shlibs_CXX=no 12007 ;; 12008 esac 12009 ;; 12010 netbsd* | netbsdelf*-gnu) 12011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12013 wlarc= 12014 hardcode_libdir_flag_spec_CXX='-R$libdir' 12015 hardcode_direct_CXX=yes 12016 hardcode_shlibpath_var_CXX=no 12017 fi 12018 # Workaround some broken pre-1.5 toolchains 12019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12020 ;; 12021 openbsd2*) 12022 # C++ shared libraries are fairly broken 12023 ld_shlibs_CXX=no 12024 ;; 12025 openbsd*) 12026 hardcode_direct_CXX=yes 12027 hardcode_shlibpath_var_CXX=no 12028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12032 export_dynamic_flag_spec_CXX='${wl}-E' 12033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12034 fi 12035 output_verbose_link_cmd='echo' 12036 ;; 12037 osf3*) 12038 case $cc_basename in 12039 KCC*) 12040 # Kuck and Associates, Inc. (KAI) C++ Compiler 12041 12042 # KCC will only create a shared library if the output file 12043 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12044 # to its proper name (with version) after linking. 12045 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' 12046 12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12048 hardcode_libdir_separator_CXX=: 12049 12050 # Archives containing C++ object files must be created using 12051 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12053 12054 ;; 12055 RCC*) 12056 # Rational C++ 2.4.1 12057 # FIXME: insert proper C++ library support 12058 ld_shlibs_CXX=no 12059 ;; 12060 cxx*) 12061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12062 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' 12063 12064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12065 hardcode_libdir_separator_CXX=: 12066 12067 # Commands to make compiler produce verbose output that lists 12068 # what "hidden" libraries, object files and flags are used when 12069 # linking a shared library. 12070 # 12071 # There doesn't appear to be a way to prevent this compiler from 12072 # explicitly linking system object files so we need to strip them 12073 # from the output so that they don't get included in the library 12074 # dependencies. 12075 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' 12076 ;; 12077 *) 12078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12080 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' 12081 12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12083 hardcode_libdir_separator_CXX=: 12084 12085 # Commands to make compiler produce verbose output that lists 12086 # what "hidden" libraries, object files and flags are used when 12087 # linking a shared library. 12088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12089 12090 else 12091 # FIXME: insert proper C++ library support 12092 ld_shlibs_CXX=no 12093 fi 12094 ;; 12095 esac 12096 ;; 12097 osf4* | osf5*) 12098 case $cc_basename in 12099 KCC*) 12100 # Kuck and Associates, Inc. (KAI) C++ Compiler 12101 12102 # KCC will only create a shared library if the output file 12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12104 # to its proper name (with version) after linking. 12105 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' 12106 12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12108 hardcode_libdir_separator_CXX=: 12109 12110 # Archives containing C++ object files must be created using 12111 # the KAI C++ compiler. 12112 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12113 ;; 12114 RCC*) 12115 # Rational C++ 2.4.1 12116 # FIXME: insert proper C++ library support 12117 ld_shlibs_CXX=no 12118 ;; 12119 cxx*) 12120 allow_undefined_flag_CXX=' -expect_unresolved \*' 12121 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' 12122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12123 echo "-hidden">> $lib.exp~ 12124 $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~ 12125 $rm $lib.exp' 12126 12127 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12128 hardcode_libdir_separator_CXX=: 12129 12130 # Commands to make compiler produce verbose output that lists 12131 # what "hidden" libraries, object files and flags are used when 12132 # linking a shared library. 12133 # 12134 # There doesn't appear to be a way to prevent this compiler from 12135 # explicitly linking system object files so we need to strip them 12136 # from the output so that they don't get included in the library 12137 # dependencies. 12138 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' 12139 ;; 12140 *) 12141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12143 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' 12144 12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12146 hardcode_libdir_separator_CXX=: 12147 12148 # Commands to make compiler produce verbose output that lists 12149 # what "hidden" libraries, object files and flags are used when 12150 # linking a shared library. 12151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12152 12153 else 12154 # FIXME: insert proper C++ library support 12155 ld_shlibs_CXX=no 12156 fi 12157 ;; 12158 esac 12159 ;; 12160 psos*) 12161 # FIXME: insert proper C++ library support 12162 ld_shlibs_CXX=no 12163 ;; 12164 sunos4*) 12165 case $cc_basename in 12166 CC*) 12167 # Sun C++ 4.x 12168 # FIXME: insert proper C++ library support 12169 ld_shlibs_CXX=no 12170 ;; 12171 lcc*) 12172 # Lucid 12173 # FIXME: insert proper C++ library support 12174 ld_shlibs_CXX=no 12175 ;; 12176 *) 12177 # FIXME: insert proper C++ library support 12178 ld_shlibs_CXX=no 12179 ;; 12180 esac 12181 ;; 12182 solaris*) 12183 case $cc_basename in 12184 CC*) 12185 # Sun C++ 4.2, 5.x and Centerline C++ 12186 archive_cmds_need_lc_CXX=yes 12187 no_undefined_flag_CXX=' -zdefs' 12188 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12189 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12190 $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' 12191 12192 hardcode_libdir_flag_spec_CXX='-R$libdir' 12193 hardcode_shlibpath_var_CXX=no 12194 case $host_os in 12195 solaris2.[0-5] | solaris2.[0-5].*) ;; 12196 *) 12197 # The C++ compiler is used as linker so we must use $wl 12198 # flag to pass the commands to the underlying system 12199 # linker. We must also pass each convience library through 12200 # to the system linker between allextract/defaultextract. 12201 # The C++ compiler will combine linker options so we 12202 # cannot just pass the convience library names through 12203 # without $wl. 12204 # Supported since Solaris 2.6 (maybe 2.5.1?) 12205 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12206 ;; 12207 esac 12208 link_all_deplibs_CXX=yes 12209 12210 output_verbose_link_cmd='echo' 12211 12212 # Archives containing C++ object files must be created using 12213 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12214 # necessary to make sure instantiated templates are included 12215 # in the archive. 12216 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12217 ;; 12218 gcx*) 12219 # Green Hills C++ Compiler 12220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12221 12222 # The C++ compiler must be used to create the archive. 12223 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12224 ;; 12225 *) 12226 # GNU C++ compiler with Solaris linker 12227 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12228 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12229 if $CC --version | grep -v '^2\.7' > /dev/null; then 12230 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12231 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12232 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12233 12234 # Commands to make compiler produce verbose output that lists 12235 # what "hidden" libraries, object files and flags are used when 12236 # linking a shared library. 12237 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12238 else 12239 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12240 # platform. 12241 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12242 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12243 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12244 12245 # Commands to make compiler produce verbose output that lists 12246 # what "hidden" libraries, object files and flags are used when 12247 # linking a shared library. 12248 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12249 fi 12250 12251 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12252 fi 12253 ;; 12254 esac 12255 ;; 12256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12257 no_undefined_flag_CXX='${wl}-z,text' 12258 archive_cmds_need_lc_CXX=no 12259 hardcode_shlibpath_var_CXX=no 12260 runpath_var='LD_RUN_PATH' 12261 12262 case $cc_basename in 12263 CC*) 12264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12266 ;; 12267 *) 12268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12270 ;; 12271 esac 12272 ;; 12273 sysv5* | sco3.2v5* | sco5v6*) 12274 # Note: We can NOT use -z defs as we might desire, because we do not 12275 # link with -lc, and that would cause any symbols used from libc to 12276 # always be unresolved, which means just about no library would 12277 # ever link correctly. If we're not using GNU ld we use -z text 12278 # though, which does catch some bad symbols but isn't as heavy-handed 12279 # as -z defs. 12280 # For security reasons, it is highly recommended that you always 12281 # use absolute paths for naming shared libraries, and exclude the 12282 # DT_RUNPATH tag from executables and libraries. But doing so 12283 # requires that you compile everything twice, which is a pain. 12284 # So that behaviour is only enabled if SCOABSPATH is set to a 12285 # non-empty value in the environment. Most likely only useful for 12286 # creating official distributions of packages. 12287 # This is a hack until libtool officially supports absolute path 12288 # names for shared libraries. 12289 no_undefined_flag_CXX='${wl}-z,text' 12290 allow_undefined_flag_CXX='${wl}-z,nodefs' 12291 archive_cmds_need_lc_CXX=no 12292 hardcode_shlibpath_var_CXX=no 12293 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12294 hardcode_libdir_separator_CXX=':' 12295 link_all_deplibs_CXX=yes 12296 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12297 runpath_var='LD_RUN_PATH' 12298 12299 case $cc_basename in 12300 CC*) 12301 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12302 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12303 ;; 12304 *) 12305 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12306 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12307 ;; 12308 esac 12309 ;; 12310 tandem*) 12311 case $cc_basename in 12312 NCC*) 12313 # NonStop-UX NCC 3.20 12314 # FIXME: insert proper C++ library support 12315 ld_shlibs_CXX=no 12316 ;; 12317 *) 12318 # FIXME: insert proper C++ library support 12319 ld_shlibs_CXX=no 12320 ;; 12321 esac 12322 ;; 12323 vxworks*) 12324 # FIXME: insert proper C++ library support 12325 ld_shlibs_CXX=no 12326 ;; 12327 *) 12328 # FIXME: insert proper C++ library support 12329 ld_shlibs_CXX=no 12330 ;; 12331esac 12332{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12333echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12334test "$ld_shlibs_CXX" = no && can_build_shared=no 12335 12336GCC_CXX="$GXX" 12337LD_CXX="$LD" 12338 12339 12340cat > conftest.$ac_ext <<EOF 12341class Foo 12342{ 12343public: 12344 Foo (void) { a = 0; } 12345private: 12346 int a; 12347}; 12348EOF 12349 12350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12351 (eval $ac_compile) 2>&5 12352 ac_status=$? 12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12354 (exit $ac_status); }; then 12355 # Parse the compiler output and extract the necessary 12356 # objects, libraries and library flags. 12357 12358 # Sentinel used to keep track of whether or not we are before 12359 # the conftest object file. 12360 pre_test_object_deps_done=no 12361 12362 # The `*' in the case matches for architectures that use `case' in 12363 # $output_verbose_cmd can trigger glob expansion during the loop 12364 # eval without this substitution. 12365 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12366 12367 for p in `eval $output_verbose_link_cmd`; do 12368 case $p in 12369 12370 -L* | -R* | -l*) 12371 # Some compilers place space between "-{L,R}" and the path. 12372 # Remove the space. 12373 if test $p = "-L" \ 12374 || test $p = "-R"; then 12375 prev=$p 12376 continue 12377 else 12378 prev= 12379 fi 12380 12381 if test "$pre_test_object_deps_done" = no; then 12382 case $p in 12383 -L* | -R*) 12384 # Internal compiler library paths should come after those 12385 # provided the user. The postdeps already come after the 12386 # user supplied libs so there is no need to process them. 12387 if test -z "$compiler_lib_search_path_CXX"; then 12388 compiler_lib_search_path_CXX="${prev}${p}" 12389 else 12390 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12391 fi 12392 ;; 12393 # The "-l" case would never come before the object being 12394 # linked, so don't bother handling this case. 12395 esac 12396 else 12397 if test -z "$postdeps_CXX"; then 12398 postdeps_CXX="${prev}${p}" 12399 else 12400 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12401 fi 12402 fi 12403 ;; 12404 12405 *.$objext) 12406 # This assumes that the test object file only shows up 12407 # once in the compiler output. 12408 if test "$p" = "conftest.$objext"; then 12409 pre_test_object_deps_done=yes 12410 continue 12411 fi 12412 12413 if test "$pre_test_object_deps_done" = no; then 12414 if test -z "$predep_objects_CXX"; then 12415 predep_objects_CXX="$p" 12416 else 12417 predep_objects_CXX="$predep_objects_CXX $p" 12418 fi 12419 else 12420 if test -z "$postdep_objects_CXX"; then 12421 postdep_objects_CXX="$p" 12422 else 12423 postdep_objects_CXX="$postdep_objects_CXX $p" 12424 fi 12425 fi 12426 ;; 12427 12428 *) ;; # Ignore the rest. 12429 12430 esac 12431 done 12432 12433 # Clean up. 12434 rm -f a.out a.exe 12435else 12436 echo "libtool.m4: error: problem compiling CXX test program" 12437fi 12438 12439$rm -f confest.$objext 12440 12441# PORTME: override above test on systems where it is broken 12442case $host_os in 12443interix3*) 12444 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12445 # hack all around it, let's just trust "g++" to DTRT. 12446 predep_objects_CXX= 12447 postdep_objects_CXX= 12448 postdeps_CXX= 12449 ;; 12450 12451solaris*) 12452 case $cc_basename in 12453 CC*) 12454 # Adding this requires a known-good setup of shared libraries for 12455 # Sun compiler versions before 5.6, else PIC objects from an old 12456 # archive will be linked into the output, leading to subtle bugs. 12457 postdeps_CXX='-lCstd -lCrun' 12458 ;; 12459 esac 12460 ;; 12461esac 12462 12463 12464case " $postdeps_CXX " in 12465*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12466esac 12467 12468lt_prog_compiler_wl_CXX= 12469lt_prog_compiler_pic_CXX= 12470lt_prog_compiler_static_CXX= 12471 12472{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12473echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12474 12475 # C++ specific cases for pic, static, wl, etc. 12476 if test "$GXX" = yes; then 12477 lt_prog_compiler_wl_CXX='-Wl,' 12478 lt_prog_compiler_static_CXX='-static' 12479 12480 case $host_os in 12481 aix*) 12482 # All AIX code is PIC. 12483 if test "$host_cpu" = ia64; then 12484 # AIX 5 now supports IA64 processor 12485 lt_prog_compiler_static_CXX='-Bstatic' 12486 fi 12487 ;; 12488 amigaos*) 12489 # FIXME: we need at least 68020 code to build shared libraries, but 12490 # adding the `-m68020' flag to GCC prevents building anything better, 12491 # like `-m68040'. 12492 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12493 ;; 12494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12495 # PIC is the default for these OSes. 12496 ;; 12497 mingw* | os2* | pw32*) 12498 # This hack is so that the source file can tell whether it is being 12499 # built for inclusion in a dll (and should export symbols for example). 12500 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12501 ;; 12502 darwin* | rhapsody*) 12503 # PIC is the default on this platform 12504 # Common symbols not allowed in MH_DYLIB files 12505 lt_prog_compiler_pic_CXX='-fno-common' 12506 ;; 12507 *djgpp*) 12508 # DJGPP does not support shared libraries at all 12509 lt_prog_compiler_pic_CXX= 12510 ;; 12511 interix3*) 12512 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12513 # Instead, we relocate shared libraries at runtime. 12514 ;; 12515 sysv4*MP*) 12516 if test -d /usr/nec; then 12517 lt_prog_compiler_pic_CXX=-Kconform_pic 12518 fi 12519 ;; 12520 hpux*) 12521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12522 # not for PA HP-UX. 12523 case $host_cpu in 12524 hppa*64*|ia64*) 12525 ;; 12526 *) 12527 lt_prog_compiler_pic_CXX='-fPIC' 12528 ;; 12529 esac 12530 ;; 12531 *) 12532 lt_prog_compiler_pic_CXX='-fPIC' 12533 ;; 12534 esac 12535 else 12536 case $host_os in 12537 aix4* | aix5*) 12538 # All AIX code is PIC. 12539 if test "$host_cpu" = ia64; then 12540 # AIX 5 now supports IA64 processor 12541 lt_prog_compiler_static_CXX='-Bstatic' 12542 else 12543 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12544 fi 12545 ;; 12546 chorus*) 12547 case $cc_basename in 12548 cxch68*) 12549 # Green Hills C++ Compiler 12550 # _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" 12551 ;; 12552 esac 12553 ;; 12554 darwin*) 12555 # PIC is the default on this platform 12556 # Common symbols not allowed in MH_DYLIB files 12557 case $cc_basename in 12558 xlc*) 12559 lt_prog_compiler_pic_CXX='-qnocommon' 12560 lt_prog_compiler_wl_CXX='-Wl,' 12561 ;; 12562 esac 12563 ;; 12564 dgux*) 12565 case $cc_basename in 12566 ec++*) 12567 lt_prog_compiler_pic_CXX='-KPIC' 12568 ;; 12569 ghcx*) 12570 # Green Hills C++ Compiler 12571 lt_prog_compiler_pic_CXX='-pic' 12572 ;; 12573 *) 12574 ;; 12575 esac 12576 ;; 12577 freebsd* | dragonfly*) 12578 # FreeBSD uses GNU C++ 12579 ;; 12580 hpux9* | hpux10* | hpux11*) 12581 case $cc_basename in 12582 CC*) 12583 lt_prog_compiler_wl_CXX='-Wl,' 12584 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12585 if test "$host_cpu" != ia64; then 12586 lt_prog_compiler_pic_CXX='+Z' 12587 fi 12588 ;; 12589 aCC*) 12590 lt_prog_compiler_wl_CXX='-Wl,' 12591 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12592 case $host_cpu in 12593 hppa*64*|ia64*) 12594 # +Z the default 12595 ;; 12596 *) 12597 lt_prog_compiler_pic_CXX='+Z' 12598 ;; 12599 esac 12600 ;; 12601 *) 12602 ;; 12603 esac 12604 ;; 12605 interix*) 12606 # This is c89, which is MS Visual C++ (no shared libs) 12607 # Anyone wants to do a port? 12608 ;; 12609 irix5* | irix6* | nonstopux*) 12610 case $cc_basename in 12611 CC*) 12612 lt_prog_compiler_wl_CXX='-Wl,' 12613 lt_prog_compiler_static_CXX='-non_shared' 12614 # CC pic flag -KPIC is the default. 12615 ;; 12616 *) 12617 ;; 12618 esac 12619 ;; 12620 linux* | k*bsd*-gnu) 12621 case $cc_basename in 12622 KCC*) 12623 # KAI C++ Compiler 12624 lt_prog_compiler_wl_CXX='--backend -Wl,' 12625 lt_prog_compiler_pic_CXX='-fPIC' 12626 ;; 12627 icpc* | ecpc*) 12628 # Intel C++ 12629 lt_prog_compiler_wl_CXX='-Wl,' 12630 lt_prog_compiler_pic_CXX='-KPIC' 12631 lt_prog_compiler_static_CXX='-static' 12632 ;; 12633 pgCC*) 12634 # Portland Group C++ compiler. 12635 lt_prog_compiler_wl_CXX='-Wl,' 12636 lt_prog_compiler_pic_CXX='-fpic' 12637 lt_prog_compiler_static_CXX='-Bstatic' 12638 ;; 12639 cxx*) 12640 # Compaq C++ 12641 # Make sure the PIC flag is empty. It appears that all Alpha 12642 # Linux and Compaq Tru64 Unix objects are PIC. 12643 lt_prog_compiler_pic_CXX= 12644 lt_prog_compiler_static_CXX='-non_shared' 12645 ;; 12646 *) 12647 ;; 12648 esac 12649 ;; 12650 lynxos*) 12651 ;; 12652 m88k*) 12653 ;; 12654 mvs*) 12655 case $cc_basename in 12656 cxx*) 12657 lt_prog_compiler_pic_CXX='-W c,exportall' 12658 ;; 12659 *) 12660 ;; 12661 esac 12662 ;; 12663 netbsd* | netbsdelf*-gnu) 12664 ;; 12665 osf3* | osf4* | osf5*) 12666 case $cc_basename in 12667 KCC*) 12668 lt_prog_compiler_wl_CXX='--backend -Wl,' 12669 ;; 12670 RCC*) 12671 # Rational C++ 2.4.1 12672 lt_prog_compiler_pic_CXX='-pic' 12673 ;; 12674 cxx*) 12675 # Digital/Compaq C++ 12676 lt_prog_compiler_wl_CXX='-Wl,' 12677 # Make sure the PIC flag is empty. It appears that all Alpha 12678 # Linux and Compaq Tru64 Unix objects are PIC. 12679 lt_prog_compiler_pic_CXX= 12680 lt_prog_compiler_static_CXX='-non_shared' 12681 ;; 12682 *) 12683 ;; 12684 esac 12685 ;; 12686 psos*) 12687 ;; 12688 solaris*) 12689 case $cc_basename in 12690 CC*) 12691 # Sun C++ 4.2, 5.x and Centerline C++ 12692 lt_prog_compiler_pic_CXX='-KPIC' 12693 lt_prog_compiler_static_CXX='-Bstatic' 12694 lt_prog_compiler_wl_CXX='-Qoption ld ' 12695 ;; 12696 gcx*) 12697 # Green Hills C++ Compiler 12698 lt_prog_compiler_pic_CXX='-PIC' 12699 ;; 12700 *) 12701 ;; 12702 esac 12703 ;; 12704 sunos4*) 12705 case $cc_basename in 12706 CC*) 12707 # Sun C++ 4.x 12708 lt_prog_compiler_pic_CXX='-pic' 12709 lt_prog_compiler_static_CXX='-Bstatic' 12710 ;; 12711 lcc*) 12712 # Lucid 12713 lt_prog_compiler_pic_CXX='-pic' 12714 ;; 12715 *) 12716 ;; 12717 esac 12718 ;; 12719 tandem*) 12720 case $cc_basename in 12721 NCC*) 12722 # NonStop-UX NCC 3.20 12723 lt_prog_compiler_pic_CXX='-KPIC' 12724 ;; 12725 *) 12726 ;; 12727 esac 12728 ;; 12729 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12730 case $cc_basename in 12731 CC*) 12732 lt_prog_compiler_wl_CXX='-Wl,' 12733 lt_prog_compiler_pic_CXX='-KPIC' 12734 lt_prog_compiler_static_CXX='-Bstatic' 12735 ;; 12736 esac 12737 ;; 12738 vxworks*) 12739 ;; 12740 *) 12741 lt_prog_compiler_can_build_shared_CXX=no 12742 ;; 12743 esac 12744 fi 12745 12746{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12747echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12748 12749# 12750# Check to make sure the PIC flag actually works. 12751# 12752if test -n "$lt_prog_compiler_pic_CXX"; then 12753 12754{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12756if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12757 echo $ECHO_N "(cached) $ECHO_C" >&6 12758else 12759 lt_prog_compiler_pic_works_CXX=no 12760 ac_outfile=conftest.$ac_objext 12761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12762 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12763 # Insert the option either (1) after the last *FLAGS variable, or 12764 # (2) before a word containing "conftest.", or (3) at the end. 12765 # Note that $ac_compile itself does not contain backslashes and begins 12766 # with a dollar sign (not a hyphen), so the echo should work correctly. 12767 # The option is referenced via a variable to avoid confusing sed. 12768 lt_compile=`echo "$ac_compile" | $SED \ 12769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12771 -e 's:$: $lt_compiler_flag:'` 12772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5) 12773 (eval "$lt_compile" 2>conftest.err) 12774 ac_status=$? 12775 cat conftest.err >&5 12776 echo "$as_me:12776: \$? = $ac_status" >&5 12777 if (exit $ac_status) && test -s "$ac_outfile"; then 12778 # The compiler can only warn and ignore the option if not recognized 12779 # So say no if there are warnings other than the usual output. 12780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12783 lt_prog_compiler_pic_works_CXX=yes 12784 fi 12785 fi 12786 $rm conftest* 12787 12788fi 12789{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12790echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12791 12792if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12793 case $lt_prog_compiler_pic_CXX in 12794 "" | " "*) ;; 12795 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12796 esac 12797else 12798 lt_prog_compiler_pic_CXX= 12799 lt_prog_compiler_can_build_shared_CXX=no 12800fi 12801 12802fi 12803case $host_os in 12804 # For platforms which do not support PIC, -DPIC is meaningless: 12805 *djgpp*) 12806 lt_prog_compiler_pic_CXX= 12807 ;; 12808 *) 12809 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12810 ;; 12811esac 12812 12813# 12814# Check to make sure the static flag actually works. 12815# 12816wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12817{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12818echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12819if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12820 echo $ECHO_N "(cached) $ECHO_C" >&6 12821else 12822 lt_prog_compiler_static_works_CXX=no 12823 save_LDFLAGS="$LDFLAGS" 12824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12825 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12827 # The linker can only warn and ignore the option if not recognized 12828 # So say no if there are warnings 12829 if test -s conftest.err; then 12830 # Append any errors to the config.log. 12831 cat conftest.err 1>&5 12832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12834 if diff conftest.exp conftest.er2 >/dev/null; then 12835 lt_prog_compiler_static_works_CXX=yes 12836 fi 12837 else 12838 lt_prog_compiler_static_works_CXX=yes 12839 fi 12840 fi 12841 $rm conftest* 12842 LDFLAGS="$save_LDFLAGS" 12843 12844fi 12845{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12846echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12847 12848if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12849 : 12850else 12851 lt_prog_compiler_static_CXX= 12852fi 12853 12854 12855{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12857if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12858 echo $ECHO_N "(cached) $ECHO_C" >&6 12859else 12860 lt_cv_prog_compiler_c_o_CXX=no 12861 $rm -r conftest 2>/dev/null 12862 mkdir conftest 12863 cd conftest 12864 mkdir out 12865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12866 12867 lt_compiler_flag="-o out/conftest2.$ac_objext" 12868 # Insert the option either (1) after the last *FLAGS variable, or 12869 # (2) before a word containing "conftest.", or (3) at the end. 12870 # Note that $ac_compile itself does not contain backslashes and begins 12871 # with a dollar sign (not a hyphen), so the echo should work correctly. 12872 lt_compile=`echo "$ac_compile" | $SED \ 12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12875 -e 's:$: $lt_compiler_flag:'` 12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5) 12877 (eval "$lt_compile" 2>out/conftest.err) 12878 ac_status=$? 12879 cat out/conftest.err >&5 12880 echo "$as_me:12880: \$? = $ac_status" >&5 12881 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12882 then 12883 # The compiler can only warn and ignore the option if not recognized 12884 # So say no if there are warnings 12885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12888 lt_cv_prog_compiler_c_o_CXX=yes 12889 fi 12890 fi 12891 chmod u+w . 2>&5 12892 $rm conftest* 12893 # SGI C++ compiler will create directory out/ii_files/ for 12894 # template instantiation 12895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12896 $rm out/* && rmdir out 12897 cd .. 12898 rmdir conftest 12899 $rm conftest* 12900 12901fi 12902{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12903echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12904 12905 12906hard_links="nottested" 12907if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12908 # do not overwrite the value of need_locks provided by the user 12909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12911 hard_links=yes 12912 $rm conftest* 12913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12914 touch conftest.a 12915 ln conftest.a conftest.b 2>&5 || hard_links=no 12916 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12917 { echo "$as_me:$LINENO: result: $hard_links" >&5 12918echo "${ECHO_T}$hard_links" >&6; } 12919 if test "$hard_links" = no; then 12920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12922 need_locks=warn 12923 fi 12924else 12925 need_locks=no 12926fi 12927 12928{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12930 12931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12932 case $host_os in 12933 aix4* | aix5*) 12934 # If we're using GNU nm, then we don't want the "-C" option. 12935 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12937 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' 12938 else 12939 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' 12940 fi 12941 ;; 12942 pw32*) 12943 export_symbols_cmds_CXX="$ltdll_cmds" 12944 ;; 12945 cygwin* | mingw*) 12946 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' 12947 ;; 12948 linux* | k*bsd*-gnu) 12949 link_all_deplibs_CXX=no 12950 ;; 12951 *) 12952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12953 ;; 12954 esac 12955 12956{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12957echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12958test "$ld_shlibs_CXX" = no && can_build_shared=no 12959 12960# 12961# Do we need to explicitly link libc? 12962# 12963case "x$archive_cmds_need_lc_CXX" in 12964x|xyes) 12965 # Assume -lc should be added 12966 archive_cmds_need_lc_CXX=yes 12967 12968 if test "$enable_shared" = yes && test "$GCC" = yes; then 12969 case $archive_cmds_CXX in 12970 *'~'*) 12971 # FIXME: we may have to deal with multi-command sequences. 12972 ;; 12973 '$CC '*) 12974 # Test whether the compiler implicitly links with -lc since on some 12975 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12976 # to ld, don't add -lc before -lgcc. 12977 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12978echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12979 $rm conftest* 12980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12981 12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12983 (eval $ac_compile) 2>&5 12984 ac_status=$? 12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12986 (exit $ac_status); } 2>conftest.err; then 12987 soname=conftest 12988 lib=conftest 12989 libobjs=conftest.$ac_objext 12990 deplibs= 12991 wl=$lt_prog_compiler_wl_CXX 12992 pic_flag=$lt_prog_compiler_pic_CXX 12993 compiler_flags=-v 12994 linker_flags=-v 12995 verstring= 12996 output_objdir=. 12997 libname=conftest 12998 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12999 allow_undefined_flag_CXX= 13000 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13001 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13002 ac_status=$? 13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13004 (exit $ac_status); } 13005 then 13006 archive_cmds_need_lc_CXX=no 13007 else 13008 archive_cmds_need_lc_CXX=yes 13009 fi 13010 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13011 else 13012 cat conftest.err 1>&5 13013 fi 13014 $rm conftest* 13015 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13016echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13017 ;; 13018 esac 13019 fi 13020 ;; 13021esac 13022 13023{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13024echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13025library_names_spec= 13026libname_spec='lib$name' 13027soname_spec= 13028shrext_cmds=".so" 13029postinstall_cmds= 13030postuninstall_cmds= 13031finish_cmds= 13032finish_eval= 13033shlibpath_var= 13034shlibpath_overrides_runpath=unknown 13035version_type=none 13036dynamic_linker="$host_os ld.so" 13037sys_lib_dlsearch_path_spec="/lib /usr/lib" 13038if test "$GCC" = yes; then 13039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13040 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13041 # if the path contains ";" then we assume it to be the separator 13042 # otherwise default to the standard path separator (i.e. ":") - it is 13043 # assumed that no part of a normal pathname contains ";" but that should 13044 # okay in the real world where ";" in dirpaths is itself problematic. 13045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13046 else 13047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13048 fi 13049else 13050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13051fi 13052need_lib_prefix=unknown 13053hardcode_into_libs=no 13054 13055# when you set need_version to no, make sure it does not cause -set_version 13056# flags to be left without arguments 13057need_version=unknown 13058 13059case $host_os in 13060aix3*) 13061 version_type=linux 13062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13063 shlibpath_var=LIBPATH 13064 13065 # AIX 3 has no versioning support, so we append a major version to the name. 13066 soname_spec='${libname}${release}${shared_ext}$major' 13067 ;; 13068 13069aix4* | aix5*) 13070 version_type=linux 13071 need_lib_prefix=no 13072 need_version=no 13073 hardcode_into_libs=yes 13074 if test "$host_cpu" = ia64; then 13075 # AIX 5 supports IA64 13076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13077 shlibpath_var=LD_LIBRARY_PATH 13078 else 13079 # With GCC up to 2.95.x, collect2 would create an import file 13080 # for dependence libraries. The import file would start with 13081 # the line `#! .'. This would cause the generated library to 13082 # depend on `.', always an invalid library. This was fixed in 13083 # development snapshots of GCC prior to 3.0. 13084 case $host_os in 13085 aix4 | aix4.[01] | aix4.[01].*) 13086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13087 echo ' yes ' 13088 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13089 : 13090 else 13091 can_build_shared=no 13092 fi 13093 ;; 13094 esac 13095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13096 # soname into executable. Probably we can add versioning support to 13097 # collect2, so additional links can be useful in future. 13098 if test "$aix_use_runtimelinking" = yes; then 13099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13100 # instead of lib<name>.a to let people know that these are not 13101 # typical AIX shared libraries. 13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13103 else 13104 # We preserve .a as extension for shared libraries through AIX4.2 13105 # and later when we are not doing run time linking. 13106 library_names_spec='${libname}${release}.a $libname.a' 13107 soname_spec='${libname}${release}${shared_ext}$major' 13108 fi 13109 shlibpath_var=LIBPATH 13110 fi 13111 ;; 13112 13113amigaos*) 13114 library_names_spec='$libname.ixlibrary $libname.a' 13115 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13116 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' 13117 ;; 13118 13119beos*) 13120 library_names_spec='${libname}${shared_ext}' 13121 dynamic_linker="$host_os ld.so" 13122 shlibpath_var=LIBRARY_PATH 13123 ;; 13124 13125bsdi[45]*) 13126 version_type=linux 13127 need_version=no 13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13129 soname_spec='${libname}${release}${shared_ext}$major' 13130 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13131 shlibpath_var=LD_LIBRARY_PATH 13132 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13133 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13134 # the default ld.so.conf also contains /usr/contrib/lib and 13135 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13136 # libtool to hard-code these into programs 13137 ;; 13138 13139cygwin* | mingw* | pw32*) 13140 version_type=windows 13141 shrext_cmds=".dll" 13142 need_version=no 13143 need_lib_prefix=no 13144 13145 case $GCC,$host_os in 13146 yes,cygwin* | yes,mingw* | yes,pw32*) 13147 library_names_spec='$libname.dll.a' 13148 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13149 postinstall_cmds='base_file=`basename \${file}`~ 13150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13151 dldir=$destdir/`dirname \$dlpath`~ 13152 test -d \$dldir || mkdir -p \$dldir~ 13153 $install_prog $dir/$dlname \$dldir/$dlname~ 13154 chmod a+x \$dldir/$dlname' 13155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13156 dlpath=$dir/\$dldll~ 13157 $rm \$dlpath' 13158 shlibpath_overrides_runpath=yes 13159 13160 case $host_os in 13161 cygwin*) 13162 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13163 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13164 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13165 ;; 13166 mingw*) 13167 # MinGW DLLs use traditional 'lib' prefix 13168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13170 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13171 # It is most probably a Windows format PATH printed by 13172 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13173 # path with ; separators, and with drive letters. We can handle the 13174 # drive letters (cygwin fileutils understands them), so leave them, 13175 # especially as we might pass files found there to a mingw objdump, 13176 # which wouldn't understand a cygwinified path. Ahh. 13177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13178 else 13179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13180 fi 13181 ;; 13182 pw32*) 13183 # pw32 DLLs use 'pw' prefix rather than 'lib' 13184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13185 ;; 13186 esac 13187 ;; 13188 13189 *) 13190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13191 ;; 13192 esac 13193 dynamic_linker='Win32 ld.exe' 13194 # FIXME: first we should search . and the directory the executable is in 13195 shlibpath_var=PATH 13196 ;; 13197 13198darwin* | rhapsody*) 13199 dynamic_linker="$host_os dyld" 13200 version_type=darwin 13201 need_lib_prefix=no 13202 need_version=no 13203 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13204 soname_spec='${libname}${release}${major}$shared_ext' 13205 shlibpath_overrides_runpath=yes 13206 shlibpath_var=DYLD_LIBRARY_PATH 13207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13208 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13209 if test "$GCC" = yes; then 13210 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13211 else 13212 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13213 fi 13214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13215 ;; 13216 13217dgux*) 13218 version_type=linux 13219 need_lib_prefix=no 13220 need_version=no 13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13222 soname_spec='${libname}${release}${shared_ext}$major' 13223 shlibpath_var=LD_LIBRARY_PATH 13224 ;; 13225 13226freebsd1*) 13227 dynamic_linker=no 13228 ;; 13229 13230freebsd* | dragonfly*) 13231 # DragonFly does not have aout. When/if they implement a new 13232 # versioning mechanism, adjust this. 13233 if test -x /usr/bin/objformat; then 13234 objformat=`/usr/bin/objformat` 13235 else 13236 case $host_os in 13237 freebsd[123]*) objformat=aout ;; 13238 *) objformat=elf ;; 13239 esac 13240 fi 13241 version_type=freebsd-$objformat 13242 case $version_type in 13243 freebsd-elf*) 13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13245 need_version=no 13246 need_lib_prefix=no 13247 ;; 13248 freebsd-*) 13249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13250 need_version=yes 13251 ;; 13252 esac 13253 shlibpath_var=LD_LIBRARY_PATH 13254 case $host_os in 13255 freebsd2*) 13256 shlibpath_overrides_runpath=yes 13257 ;; 13258 freebsd3.[01]* | freebsdelf3.[01]*) 13259 shlibpath_overrides_runpath=yes 13260 hardcode_into_libs=yes 13261 ;; 13262 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13263 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13264 shlibpath_overrides_runpath=no 13265 hardcode_into_libs=yes 13266 ;; 13267 freebsd*) # from 4.6 on 13268 shlibpath_overrides_runpath=yes 13269 hardcode_into_libs=yes 13270 ;; 13271 esac 13272 ;; 13273 13274gnu*) 13275 version_type=linux 13276 need_lib_prefix=no 13277 need_version=no 13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13279 soname_spec='${libname}${release}${shared_ext}$major' 13280 shlibpath_var=LD_LIBRARY_PATH 13281 hardcode_into_libs=yes 13282 ;; 13283 13284hpux9* | hpux10* | hpux11*) 13285 # Give a soname corresponding to the major version so that dld.sl refuses to 13286 # link against other versions. 13287 version_type=sunos 13288 need_lib_prefix=no 13289 need_version=no 13290 case $host_cpu in 13291 ia64*) 13292 shrext_cmds='.so' 13293 hardcode_into_libs=yes 13294 dynamic_linker="$host_os dld.so" 13295 shlibpath_var=LD_LIBRARY_PATH 13296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13298 soname_spec='${libname}${release}${shared_ext}$major' 13299 if test "X$HPUX_IA64_MODE" = X32; then 13300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13301 else 13302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13303 fi 13304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13305 ;; 13306 hppa*64*) 13307 shrext_cmds='.sl' 13308 hardcode_into_libs=yes 13309 dynamic_linker="$host_os dld.sl" 13310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13313 soname_spec='${libname}${release}${shared_ext}$major' 13314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13316 ;; 13317 *) 13318 shrext_cmds='.sl' 13319 dynamic_linker="$host_os dld.sl" 13320 shlibpath_var=SHLIB_PATH 13321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13323 soname_spec='${libname}${release}${shared_ext}$major' 13324 ;; 13325 esac 13326 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13327 postinstall_cmds='chmod 555 $lib' 13328 ;; 13329 13330interix3*) 13331 version_type=linux 13332 need_lib_prefix=no 13333 need_version=no 13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13335 soname_spec='${libname}${release}${shared_ext}$major' 13336 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13337 shlibpath_var=LD_LIBRARY_PATH 13338 shlibpath_overrides_runpath=no 13339 hardcode_into_libs=yes 13340 ;; 13341 13342irix5* | irix6* | nonstopux*) 13343 case $host_os in 13344 nonstopux*) version_type=nonstopux ;; 13345 *) 13346 if test "$lt_cv_prog_gnu_ld" = yes; then 13347 version_type=linux 13348 else 13349 version_type=irix 13350 fi ;; 13351 esac 13352 need_lib_prefix=no 13353 need_version=no 13354 soname_spec='${libname}${release}${shared_ext}$major' 13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13356 case $host_os in 13357 irix5* | nonstopux*) 13358 libsuff= shlibsuff= 13359 ;; 13360 *) 13361 case $LD in # libtool.m4 will add one of these switches to LD 13362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13363 libsuff= shlibsuff= libmagic=32-bit;; 13364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13365 libsuff=32 shlibsuff=N32 libmagic=N32;; 13366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13367 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13368 *) libsuff= shlibsuff= libmagic=never-match;; 13369 esac 13370 ;; 13371 esac 13372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13373 shlibpath_overrides_runpath=no 13374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13376 hardcode_into_libs=yes 13377 ;; 13378 13379# No shared lib support for Linux oldld, aout, or coff. 13380linux*oldld* | linux*aout* | linux*coff*) 13381 dynamic_linker=no 13382 ;; 13383 13384# This must be Linux ELF. 13385linux* | k*bsd*-gnu) 13386 version_type=linux 13387 need_lib_prefix=no 13388 need_version=no 13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13390 soname_spec='${libname}${release}${shared_ext}$major' 13391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13392 shlibpath_var=LD_LIBRARY_PATH 13393 shlibpath_overrides_runpath=no 13394 # This implies no fast_install, which is unacceptable. 13395 # Some rework will be needed to allow for fast_install 13396 # before this can be enabled. 13397 hardcode_into_libs=yes 13398 13399 # Append ld.so.conf contents to the search path 13400 if test -f /etc/ld.so.conf; then 13401 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13403 fi 13404 13405 # We used to test for /lib/ld.so.1 and disable shared libraries on 13406 # powerpc, because MkLinux only supported shared libraries with the 13407 # GNU dynamic linker. Since this was broken with cross compilers, 13408 # most powerpc-linux boxes support dynamic linking these days and 13409 # people can always --disable-shared, the test was removed, and we 13410 # assume the GNU/Linux dynamic linker is in use. 13411 dynamic_linker='GNU/Linux ld.so' 13412 ;; 13413 13414netbsdelf*-gnu) 13415 version_type=linux 13416 need_lib_prefix=no 13417 need_version=no 13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13419 soname_spec='${libname}${release}${shared_ext}$major' 13420 shlibpath_var=LD_LIBRARY_PATH 13421 shlibpath_overrides_runpath=no 13422 hardcode_into_libs=yes 13423 dynamic_linker='NetBSD ld.elf_so' 13424 ;; 13425 13426netbsd*) 13427 version_type=sunos 13428 need_lib_prefix=no 13429 need_version=no 13430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13433 dynamic_linker='NetBSD (a.out) ld.so' 13434 else 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13436 soname_spec='${libname}${release}${shared_ext}$major' 13437 dynamic_linker='NetBSD ld.elf_so' 13438 fi 13439 shlibpath_var=LD_LIBRARY_PATH 13440 shlibpath_overrides_runpath=yes 13441 hardcode_into_libs=yes 13442 ;; 13443 13444newsos6) 13445 version_type=linux 13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13447 shlibpath_var=LD_LIBRARY_PATH 13448 shlibpath_overrides_runpath=yes 13449 ;; 13450 13451nto-qnx*) 13452 version_type=linux 13453 need_lib_prefix=no 13454 need_version=no 13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13456 soname_spec='${libname}${release}${shared_ext}$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 shlibpath_overrides_runpath=yes 13459 ;; 13460 13461openbsd*) 13462 version_type=sunos 13463 sys_lib_dlsearch_path_spec="/usr/lib" 13464 need_lib_prefix=no 13465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13466 case $host_os in 13467 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13468 *) need_version=no ;; 13469 esac 13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13472 shlibpath_var=LD_LIBRARY_PATH 13473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13474 case $host_os in 13475 openbsd2.[89] | openbsd2.[89].*) 13476 shlibpath_overrides_runpath=no 13477 ;; 13478 *) 13479 shlibpath_overrides_runpath=yes 13480 ;; 13481 esac 13482 else 13483 shlibpath_overrides_runpath=yes 13484 fi 13485 ;; 13486 13487os2*) 13488 libname_spec='$name' 13489 shrext_cmds=".dll" 13490 need_lib_prefix=no 13491 library_names_spec='$libname${shared_ext} $libname.a' 13492 dynamic_linker='OS/2 ld.exe' 13493 shlibpath_var=LIBPATH 13494 ;; 13495 13496osf3* | osf4* | osf5*) 13497 version_type=osf 13498 need_lib_prefix=no 13499 need_version=no 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13502 shlibpath_var=LD_LIBRARY_PATH 13503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13505 ;; 13506 13507solaris*) 13508 version_type=linux 13509 need_lib_prefix=no 13510 need_version=no 13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13512 soname_spec='${libname}${release}${shared_ext}$major' 13513 shlibpath_var=LD_LIBRARY_PATH 13514 shlibpath_overrides_runpath=yes 13515 hardcode_into_libs=yes 13516 # ldd complains unless libraries are executable 13517 postinstall_cmds='chmod +x $lib' 13518 ;; 13519 13520sunos4*) 13521 version_type=sunos 13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13524 shlibpath_var=LD_LIBRARY_PATH 13525 shlibpath_overrides_runpath=yes 13526 if test "$with_gnu_ld" = yes; then 13527 need_lib_prefix=no 13528 fi 13529 need_version=yes 13530 ;; 13531 13532sysv4 | sysv4.3*) 13533 version_type=linux 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13535 soname_spec='${libname}${release}${shared_ext}$major' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 case $host_vendor in 13538 sni) 13539 shlibpath_overrides_runpath=no 13540 need_lib_prefix=no 13541 export_dynamic_flag_spec='${wl}-Blargedynsym' 13542 runpath_var=LD_RUN_PATH 13543 ;; 13544 siemens) 13545 need_lib_prefix=no 13546 ;; 13547 motorola) 13548 need_lib_prefix=no 13549 need_version=no 13550 shlibpath_overrides_runpath=no 13551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13552 ;; 13553 esac 13554 ;; 13555 13556sysv4*MP*) 13557 if test -d /usr/nec ;then 13558 version_type=linux 13559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13560 soname_spec='$libname${shared_ext}.$major' 13561 shlibpath_var=LD_LIBRARY_PATH 13562 fi 13563 ;; 13564 13565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13566 version_type=freebsd-elf 13567 need_lib_prefix=no 13568 need_version=no 13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13570 soname_spec='${libname}${release}${shared_ext}$major' 13571 shlibpath_var=LD_LIBRARY_PATH 13572 hardcode_into_libs=yes 13573 if test "$with_gnu_ld" = yes; then 13574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13575 shlibpath_overrides_runpath=no 13576 else 13577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13578 shlibpath_overrides_runpath=yes 13579 case $host_os in 13580 sco3.2v5*) 13581 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13582 ;; 13583 esac 13584 fi 13585 sys_lib_dlsearch_path_spec='/usr/lib' 13586 ;; 13587 13588uts4*) 13589 version_type=linux 13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13591 soname_spec='${libname}${release}${shared_ext}$major' 13592 shlibpath_var=LD_LIBRARY_PATH 13593 ;; 13594 13595*) 13596 dynamic_linker=no 13597 ;; 13598esac 13599{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13600echo "${ECHO_T}$dynamic_linker" >&6; } 13601test "$dynamic_linker" = no && can_build_shared=no 13602 13603variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13604if test "$GCC" = yes; then 13605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13606fi 13607 13608{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13609echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13610hardcode_action_CXX= 13611if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13612 test -n "$runpath_var_CXX" || \ 13613 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13614 13615 # We can hardcode non-existant directories. 13616 if test "$hardcode_direct_CXX" != no && 13617 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13618 # have to relink, otherwise we might link with an installed library 13619 # when we should be linking with a yet-to-be-installed one 13620 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13621 test "$hardcode_minus_L_CXX" != no; then 13622 # Linking always hardcodes the temporary library directory. 13623 hardcode_action_CXX=relink 13624 else 13625 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13626 hardcode_action_CXX=immediate 13627 fi 13628else 13629 # We cannot hardcode anything, or else we can only hardcode existing 13630 # directories. 13631 hardcode_action_CXX=unsupported 13632fi 13633{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13634echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13635 13636if test "$hardcode_action_CXX" = relink; then 13637 # Fast installation is not supported 13638 enable_fast_install=no 13639elif test "$shlibpath_overrides_runpath" = yes || 13640 test "$enable_shared" = no; then 13641 # Fast installation is not necessary 13642 enable_fast_install=needless 13643fi 13644 13645 13646# The else clause should only fire when bootstrapping the 13647# libtool distribution, otherwise you forgot to ship ltmain.sh 13648# with your package, and you will get complaints that there are 13649# no rules to generate ltmain.sh. 13650if test -f "$ltmain"; then 13651 # See if we are running on zsh, and set the options which allow our commands through 13652 # without removal of \ escapes. 13653 if test -n "${ZSH_VERSION+set}" ; then 13654 setopt NO_GLOB_SUBST 13655 fi 13656 # Now quote all the things that may contain metacharacters while being 13657 # careful not to overquote the AC_SUBSTed values. We take copies of the 13658 # variables and quote the copies for generation of the libtool script. 13659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13660 SED SHELL STRIP \ 13661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13663 deplibs_check_method reload_flag reload_cmds need_locks \ 13664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13665 lt_cv_sys_global_symbol_to_c_name_address \ 13666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13667 old_postinstall_cmds old_postuninstall_cmds \ 13668 compiler_CXX \ 13669 CC_CXX \ 13670 LD_CXX \ 13671 lt_prog_compiler_wl_CXX \ 13672 lt_prog_compiler_pic_CXX \ 13673 lt_prog_compiler_static_CXX \ 13674 lt_prog_compiler_no_builtin_flag_CXX \ 13675 export_dynamic_flag_spec_CXX \ 13676 thread_safe_flag_spec_CXX \ 13677 whole_archive_flag_spec_CXX \ 13678 enable_shared_with_static_runtimes_CXX \ 13679 old_archive_cmds_CXX \ 13680 old_archive_from_new_cmds_CXX \ 13681 predep_objects_CXX \ 13682 postdep_objects_CXX \ 13683 predeps_CXX \ 13684 postdeps_CXX \ 13685 compiler_lib_search_path_CXX \ 13686 archive_cmds_CXX \ 13687 archive_expsym_cmds_CXX \ 13688 postinstall_cmds_CXX \ 13689 postuninstall_cmds_CXX \ 13690 old_archive_from_expsyms_cmds_CXX \ 13691 allow_undefined_flag_CXX \ 13692 no_undefined_flag_CXX \ 13693 export_symbols_cmds_CXX \ 13694 hardcode_libdir_flag_spec_CXX \ 13695 hardcode_libdir_flag_spec_ld_CXX \ 13696 hardcode_libdir_separator_CXX \ 13697 hardcode_automatic_CXX \ 13698 module_cmds_CXX \ 13699 module_expsym_cmds_CXX \ 13700 lt_cv_prog_compiler_c_o_CXX \ 13701 exclude_expsyms_CXX \ 13702 include_expsyms_CXX; do 13703 13704 case $var in 13705 old_archive_cmds_CXX | \ 13706 old_archive_from_new_cmds_CXX | \ 13707 archive_cmds_CXX | \ 13708 archive_expsym_cmds_CXX | \ 13709 module_cmds_CXX | \ 13710 module_expsym_cmds_CXX | \ 13711 old_archive_from_expsyms_cmds_CXX | \ 13712 export_symbols_cmds_CXX | \ 13713 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13714 postinstall_cmds | postuninstall_cmds | \ 13715 old_postinstall_cmds | old_postuninstall_cmds | \ 13716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13717 # Double-quote double-evaled strings. 13718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13719 ;; 13720 *) 13721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13722 ;; 13723 esac 13724 done 13725 13726 case $lt_echo in 13727 *'\$0 --fallback-echo"') 13728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13729 ;; 13730 esac 13731 13732cfgfile="$ofile" 13733 13734 cat <<__EOF__ >> "$cfgfile" 13735# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13736 13737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13738 13739# Shell to use when invoking shell scripts. 13740SHELL=$lt_SHELL 13741 13742# Whether or not to build shared libraries. 13743build_libtool_libs=$enable_shared 13744 13745# Whether or not to build static libraries. 13746build_old_libs=$enable_static 13747 13748# Whether or not to add -lc for building shared libraries. 13749build_libtool_need_lc=$archive_cmds_need_lc_CXX 13750 13751# Whether or not to disallow shared libs when runtime libs are static 13752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13753 13754# Whether or not to optimize for fast installation. 13755fast_install=$enable_fast_install 13756 13757# The host system. 13758host_alias=$host_alias 13759host=$host 13760host_os=$host_os 13761 13762# The build system. 13763build_alias=$build_alias 13764build=$build 13765build_os=$build_os 13766 13767# An echo program that does not interpret backslashes. 13768echo=$lt_echo 13769 13770# The archiver. 13771AR=$lt_AR 13772AR_FLAGS=$lt_AR_FLAGS 13773 13774# A C compiler. 13775LTCC=$lt_LTCC 13776 13777# LTCC compiler flags. 13778LTCFLAGS=$lt_LTCFLAGS 13779 13780# A language-specific compiler. 13781CC=$lt_compiler_CXX 13782 13783# Is the compiler the GNU C compiler? 13784with_gcc=$GCC_CXX 13785 13786# An ERE matcher. 13787EGREP=$lt_EGREP 13788 13789# The linker used to build libraries. 13790LD=$lt_LD_CXX 13791 13792# Whether we need hard or soft links. 13793LN_S=$lt_LN_S 13794 13795# A BSD-compatible nm program. 13796NM=$lt_NM 13797 13798# A symbol stripping program 13799STRIP=$lt_STRIP 13800 13801# Used to examine libraries when file_magic_cmd begins "file" 13802MAGIC_CMD=$MAGIC_CMD 13803 13804# Used on cygwin: DLL creation program. 13805DLLTOOL="$DLLTOOL" 13806 13807# Used on cygwin: object dumper. 13808OBJDUMP="$OBJDUMP" 13809 13810# Used on cygwin: assembler. 13811AS="$AS" 13812 13813# The name of the directory that contains temporary libtool files. 13814objdir=$objdir 13815 13816# How to create reloadable object files. 13817reload_flag=$lt_reload_flag 13818reload_cmds=$lt_reload_cmds 13819 13820# How to pass a linker flag through the compiler. 13821wl=$lt_lt_prog_compiler_wl_CXX 13822 13823# Object file suffix (normally "o"). 13824objext="$ac_objext" 13825 13826# Old archive suffix (normally "a"). 13827libext="$libext" 13828 13829# Shared library suffix (normally ".so"). 13830shrext_cmds='$shrext_cmds' 13831 13832# Executable file suffix (normally ""). 13833exeext="$exeext" 13834 13835# Additional compiler flags for building library objects. 13836pic_flag=$lt_lt_prog_compiler_pic_CXX 13837pic_mode=$pic_mode 13838 13839# What is the maximum length of a command? 13840max_cmd_len=$lt_cv_sys_max_cmd_len 13841 13842# Does compiler simultaneously support -c and -o options? 13843compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13844 13845# Must we lock files when doing compilation? 13846need_locks=$lt_need_locks 13847 13848# Do we need the lib prefix for modules? 13849need_lib_prefix=$need_lib_prefix 13850 13851# Do we need a version for libraries? 13852need_version=$need_version 13853 13854# Whether dlopen is supported. 13855dlopen_support=$enable_dlopen 13856 13857# Whether dlopen of programs is supported. 13858dlopen_self=$enable_dlopen_self 13859 13860# Whether dlopen of statically linked programs is supported. 13861dlopen_self_static=$enable_dlopen_self_static 13862 13863# Compiler flag to prevent dynamic linking. 13864link_static_flag=$lt_lt_prog_compiler_static_CXX 13865 13866# Compiler flag to turn off builtin functions. 13867no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13868 13869# Compiler flag to allow reflexive dlopens. 13870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13871 13872# Compiler flag to generate shared objects directly from archives. 13873whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13874 13875# Compiler flag to generate thread-safe objects. 13876thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13877 13878# Library versioning type. 13879version_type=$version_type 13880 13881# Format of library name prefix. 13882libname_spec=$lt_libname_spec 13883 13884# List of archive names. First name is the real one, the rest are links. 13885# The last name is the one that the linker finds with -lNAME. 13886library_names_spec=$lt_library_names_spec 13887 13888# The coded name of the library, if different from the real name. 13889soname_spec=$lt_soname_spec 13890 13891# Commands used to build and install an old-style archive. 13892RANLIB=$lt_RANLIB 13893old_archive_cmds=$lt_old_archive_cmds_CXX 13894old_postinstall_cmds=$lt_old_postinstall_cmds 13895old_postuninstall_cmds=$lt_old_postuninstall_cmds 13896 13897# Create an old-style archive from a shared archive. 13898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13899 13900# Create a temporary old-style archive to link instead of a shared archive. 13901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13902 13903# Commands used to build and install a shared archive. 13904archive_cmds=$lt_archive_cmds_CXX 13905archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13906postinstall_cmds=$lt_postinstall_cmds 13907postuninstall_cmds=$lt_postuninstall_cmds 13908 13909# Commands used to build a loadable module (assumed same as above if empty) 13910module_cmds=$lt_module_cmds_CXX 13911module_expsym_cmds=$lt_module_expsym_cmds_CXX 13912 13913# Commands to strip libraries. 13914old_striplib=$lt_old_striplib 13915striplib=$lt_striplib 13916 13917# Dependencies to place before the objects being linked to create a 13918# shared library. 13919predep_objects=$lt_predep_objects_CXX 13920 13921# Dependencies to place after the objects being linked to create a 13922# shared library. 13923postdep_objects=$lt_postdep_objects_CXX 13924 13925# Dependencies to place before the objects being linked to create a 13926# shared library. 13927predeps=$lt_predeps_CXX 13928 13929# Dependencies to place after the objects being linked to create a 13930# shared library. 13931postdeps=$lt_postdeps_CXX 13932 13933# The library search path used internally by the compiler when linking 13934# a shared library. 13935compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13936 13937# Method to check whether dependent libraries are shared objects. 13938deplibs_check_method=$lt_deplibs_check_method 13939 13940# Command to use when deplibs_check_method == file_magic. 13941file_magic_cmd=$lt_file_magic_cmd 13942 13943# Flag that allows shared libraries with undefined symbols to be built. 13944allow_undefined_flag=$lt_allow_undefined_flag_CXX 13945 13946# Flag that forces no undefined symbols. 13947no_undefined_flag=$lt_no_undefined_flag_CXX 13948 13949# Commands used to finish a libtool library installation in a directory. 13950finish_cmds=$lt_finish_cmds 13951 13952# Same as above, but a single script fragment to be evaled but not shown. 13953finish_eval=$lt_finish_eval 13954 13955# Take the output of nm and produce a listing of raw symbols and C names. 13956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13957 13958# Transform the output of nm in a proper C declaration 13959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13960 13961# Transform the output of nm in a C name address pair 13962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13963 13964# This is the shared library runtime path variable. 13965runpath_var=$runpath_var 13966 13967# This is the shared library path variable. 13968shlibpath_var=$shlibpath_var 13969 13970# Is shlibpath searched before the hard-coded library search path? 13971shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13972 13973# How to hardcode a shared library path into an executable. 13974hardcode_action=$hardcode_action_CXX 13975 13976# Whether we should hardcode library paths into libraries. 13977hardcode_into_libs=$hardcode_into_libs 13978 13979# Flag to hardcode \$libdir into a binary during linking. 13980# This must work even if \$libdir does not exist. 13981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13982 13983# If ld is used when linking, flag to hardcode \$libdir into 13984# a binary during linking. This must work even if \$libdir does 13985# not exist. 13986hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13987 13988# Whether we need a single -rpath flag with a separated argument. 13989hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13990 13991# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13992# resulting binary. 13993hardcode_direct=$hardcode_direct_CXX 13994 13995# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13996# resulting binary. 13997hardcode_minus_L=$hardcode_minus_L_CXX 13998 13999# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14000# the resulting binary. 14001hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14002 14003# Set to yes if building a shared library automatically hardcodes DIR into the library 14004# and all subsequent libraries and executables linked against it. 14005hardcode_automatic=$hardcode_automatic_CXX 14006 14007# Variables whose values should be saved in libtool wrapper scripts and 14008# restored at relink time. 14009variables_saved_for_relink="$variables_saved_for_relink" 14010 14011# Whether libtool must link a program against all its dependency libraries. 14012link_all_deplibs=$link_all_deplibs_CXX 14013 14014# Compile-time system search path for libraries 14015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14016 14017# Run-time system search path for libraries 14018sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14019 14020# Fix the shell variable \$srcfile for the compiler. 14021fix_srcfile_path="$fix_srcfile_path_CXX" 14022 14023# Set to yes if exported symbols are required. 14024always_export_symbols=$always_export_symbols_CXX 14025 14026# The commands to list exported symbols. 14027export_symbols_cmds=$lt_export_symbols_cmds_CXX 14028 14029# The commands to extract the exported symbol list from a shared archive. 14030extract_expsyms_cmds=$lt_extract_expsyms_cmds 14031 14032# Symbols that should not be listed in the preloaded symbols. 14033exclude_expsyms=$lt_exclude_expsyms_CXX 14034 14035# Symbols that must always be exported. 14036include_expsyms=$lt_include_expsyms_CXX 14037 14038# ### END LIBTOOL TAG CONFIG: $tagname 14039 14040__EOF__ 14041 14042 14043else 14044 # If there is no Makefile yet, we rely on a make rule to execute 14045 # `config.status --recheck' to rerun these tests and create the 14046 # libtool script then. 14047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14048 if test -f "$ltmain_in"; then 14049 test -f Makefile && make "$ltmain" 14050 fi 14051fi 14052 14053 14054ac_ext=c 14055ac_cpp='$CPP $CPPFLAGS' 14056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14058ac_compiler_gnu=$ac_cv_c_compiler_gnu 14059 14060CC=$lt_save_CC 14061LDCXX=$LD 14062LD=$lt_save_LD 14063GCC=$lt_save_GCC 14064with_gnu_ldcxx=$with_gnu_ld 14065with_gnu_ld=$lt_save_with_gnu_ld 14066lt_cv_path_LDCXX=$lt_cv_path_LD 14067lt_cv_path_LD=$lt_save_path_LD 14068lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14069lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14070 14071 else 14072 tagname="" 14073 fi 14074 ;; 14075 14076 F77) 14077 if test -n "$F77" && test "X$F77" != "Xno"; then 14078 14079ac_ext=f 14080ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14081ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14082ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14083 14084 14085archive_cmds_need_lc_F77=no 14086allow_undefined_flag_F77= 14087always_export_symbols_F77=no 14088archive_expsym_cmds_F77= 14089export_dynamic_flag_spec_F77= 14090hardcode_direct_F77=no 14091hardcode_libdir_flag_spec_F77= 14092hardcode_libdir_flag_spec_ld_F77= 14093hardcode_libdir_separator_F77= 14094hardcode_minus_L_F77=no 14095hardcode_automatic_F77=no 14096module_cmds_F77= 14097module_expsym_cmds_F77= 14098link_all_deplibs_F77=unknown 14099old_archive_cmds_F77=$old_archive_cmds 14100no_undefined_flag_F77= 14101whole_archive_flag_spec_F77= 14102enable_shared_with_static_runtimes_F77=no 14103 14104# Source file extension for f77 test sources. 14105ac_ext=f 14106 14107# Object file extension for compiled f77 test sources. 14108objext=o 14109objext_F77=$objext 14110 14111# Code to be used in simple compile tests 14112lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14113 14114# Code to be used in simple link tests 14115lt_simple_link_test_code=" program t\n end\n" 14116 14117# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14118 14119# If no C compiler was specified, use CC. 14120LTCC=${LTCC-"$CC"} 14121 14122# If no C compiler flags were specified, use CFLAGS. 14123LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14124 14125# Allow CC to be a program name with arguments. 14126compiler=$CC 14127 14128 14129# save warnings/boilerplate of simple test code 14130ac_outfile=conftest.$ac_objext 14131printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14133_lt_compiler_boilerplate=`cat conftest.err` 14134$rm conftest* 14135 14136ac_outfile=conftest.$ac_objext 14137printf "$lt_simple_link_test_code" >conftest.$ac_ext 14138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14139_lt_linker_boilerplate=`cat conftest.err` 14140$rm conftest* 14141 14142 14143# Allow CC to be a program name with arguments. 14144lt_save_CC="$CC" 14145CC=${F77-"f77"} 14146compiler=$CC 14147compiler_F77=$CC 14148for cc_temp in $compiler""; do 14149 case $cc_temp in 14150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14152 \-*) ;; 14153 *) break;; 14154 esac 14155done 14156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14157 14158 14159{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14160echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14161{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14162echo "${ECHO_T}$can_build_shared" >&6; } 14163 14164{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14165echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14166test "$can_build_shared" = "no" && enable_shared=no 14167 14168# On AIX, shared libraries and static libraries use the same namespace, and 14169# are all built from PIC. 14170case $host_os in 14171aix3*) 14172 test "$enable_shared" = yes && enable_static=no 14173 if test -n "$RANLIB"; then 14174 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14175 postinstall_cmds='$RANLIB $lib' 14176 fi 14177 ;; 14178aix4* | aix5*) 14179 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14180 test "$enable_shared" = yes && enable_static=no 14181 fi 14182 ;; 14183esac 14184{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14185echo "${ECHO_T}$enable_shared" >&6; } 14186 14187{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14188echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14189# Make sure either enable_shared or enable_static is yes. 14190test "$enable_shared" = yes || enable_static=yes 14191{ echo "$as_me:$LINENO: result: $enable_static" >&5 14192echo "${ECHO_T}$enable_static" >&6; } 14193 14194GCC_F77="$G77" 14195LD_F77="$LD" 14196 14197lt_prog_compiler_wl_F77= 14198lt_prog_compiler_pic_F77= 14199lt_prog_compiler_static_F77= 14200 14201{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14202echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14203 14204 if test "$GCC" = yes; then 14205 lt_prog_compiler_wl_F77='-Wl,' 14206 lt_prog_compiler_static_F77='-static' 14207 14208 case $host_os in 14209 aix*) 14210 # All AIX code is PIC. 14211 if test "$host_cpu" = ia64; then 14212 # AIX 5 now supports IA64 processor 14213 lt_prog_compiler_static_F77='-Bstatic' 14214 fi 14215 ;; 14216 14217 amigaos*) 14218 # FIXME: we need at least 68020 code to build shared libraries, but 14219 # adding the `-m68020' flag to GCC prevents building anything better, 14220 # like `-m68040'. 14221 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14222 ;; 14223 14224 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14225 # PIC is the default for these OSes. 14226 ;; 14227 14228 mingw* | pw32* | os2*) 14229 # This hack is so that the source file can tell whether it is being 14230 # built for inclusion in a dll (and should export symbols for example). 14231 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14232 ;; 14233 14234 darwin* | rhapsody*) 14235 # PIC is the default on this platform 14236 # Common symbols not allowed in MH_DYLIB files 14237 lt_prog_compiler_pic_F77='-fno-common' 14238 ;; 14239 14240 interix3*) 14241 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14242 # Instead, we relocate shared libraries at runtime. 14243 ;; 14244 14245 msdosdjgpp*) 14246 # Just because we use GCC doesn't mean we suddenly get shared libraries 14247 # on systems that don't support them. 14248 lt_prog_compiler_can_build_shared_F77=no 14249 enable_shared=no 14250 ;; 14251 14252 sysv4*MP*) 14253 if test -d /usr/nec; then 14254 lt_prog_compiler_pic_F77=-Kconform_pic 14255 fi 14256 ;; 14257 14258 hpux*) 14259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14260 # not for PA HP-UX. 14261 case $host_cpu in 14262 hppa*64*|ia64*) 14263 # +Z the default 14264 ;; 14265 *) 14266 lt_prog_compiler_pic_F77='-fPIC' 14267 ;; 14268 esac 14269 ;; 14270 14271 *) 14272 lt_prog_compiler_pic_F77='-fPIC' 14273 ;; 14274 esac 14275 else 14276 # PORTME Check for flag to pass linker flags through the system compiler. 14277 case $host_os in 14278 aix*) 14279 lt_prog_compiler_wl_F77='-Wl,' 14280 if test "$host_cpu" = ia64; then 14281 # AIX 5 now supports IA64 processor 14282 lt_prog_compiler_static_F77='-Bstatic' 14283 else 14284 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14285 fi 14286 ;; 14287 darwin*) 14288 # PIC is the default on this platform 14289 # Common symbols not allowed in MH_DYLIB files 14290 case $cc_basename in 14291 xlc*) 14292 lt_prog_compiler_pic_F77='-qnocommon' 14293 lt_prog_compiler_wl_F77='-Wl,' 14294 ;; 14295 esac 14296 ;; 14297 14298 mingw* | pw32* | os2*) 14299 # This hack is so that the source file can tell whether it is being 14300 # built for inclusion in a dll (and should export symbols for example). 14301 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14302 ;; 14303 14304 hpux9* | hpux10* | hpux11*) 14305 lt_prog_compiler_wl_F77='-Wl,' 14306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14307 # not for PA HP-UX. 14308 case $host_cpu in 14309 hppa*64*|ia64*) 14310 # +Z the default 14311 ;; 14312 *) 14313 lt_prog_compiler_pic_F77='+Z' 14314 ;; 14315 esac 14316 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14317 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14318 ;; 14319 14320 irix5* | irix6* | nonstopux*) 14321 lt_prog_compiler_wl_F77='-Wl,' 14322 # PIC (with -KPIC) is the default. 14323 lt_prog_compiler_static_F77='-non_shared' 14324 ;; 14325 14326 newsos6) 14327 lt_prog_compiler_pic_F77='-KPIC' 14328 lt_prog_compiler_static_F77='-Bstatic' 14329 ;; 14330 14331 linux* | k*bsd*-gnu) 14332 case $cc_basename in 14333 icc* | ecc*) 14334 lt_prog_compiler_wl_F77='-Wl,' 14335 lt_prog_compiler_pic_F77='-KPIC' 14336 lt_prog_compiler_static_F77='-static' 14337 ;; 14338 pgcc* | pgf77* | pgf90* | pgf95*) 14339 # Portland Group compilers (*not* the Pentium gcc compiler, 14340 # which looks to be a dead project) 14341 lt_prog_compiler_wl_F77='-Wl,' 14342 lt_prog_compiler_pic_F77='-fpic' 14343 lt_prog_compiler_static_F77='-Bstatic' 14344 ;; 14345 ccc*) 14346 lt_prog_compiler_wl_F77='-Wl,' 14347 # All Alpha code is PIC. 14348 lt_prog_compiler_static_F77='-non_shared' 14349 ;; 14350 esac 14351 ;; 14352 14353 osf3* | osf4* | osf5*) 14354 lt_prog_compiler_wl_F77='-Wl,' 14355 # All OSF/1 code is PIC. 14356 lt_prog_compiler_static_F77='-non_shared' 14357 ;; 14358 14359 solaris*) 14360 lt_prog_compiler_pic_F77='-KPIC' 14361 lt_prog_compiler_static_F77='-Bstatic' 14362 case $cc_basename in 14363 f77* | f90* | f95*) 14364 lt_prog_compiler_wl_F77='-Qoption ld ';; 14365 *) 14366 lt_prog_compiler_wl_F77='-Wl,';; 14367 esac 14368 ;; 14369 14370 sunos4*) 14371 lt_prog_compiler_wl_F77='-Qoption ld ' 14372 lt_prog_compiler_pic_F77='-PIC' 14373 lt_prog_compiler_static_F77='-Bstatic' 14374 ;; 14375 14376 sysv4 | sysv4.2uw2* | sysv4.3*) 14377 lt_prog_compiler_wl_F77='-Wl,' 14378 lt_prog_compiler_pic_F77='-KPIC' 14379 lt_prog_compiler_static_F77='-Bstatic' 14380 ;; 14381 14382 sysv4*MP*) 14383 if test -d /usr/nec ;then 14384 lt_prog_compiler_pic_F77='-Kconform_pic' 14385 lt_prog_compiler_static_F77='-Bstatic' 14386 fi 14387 ;; 14388 14389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14390 lt_prog_compiler_wl_F77='-Wl,' 14391 lt_prog_compiler_pic_F77='-KPIC' 14392 lt_prog_compiler_static_F77='-Bstatic' 14393 ;; 14394 14395 unicos*) 14396 lt_prog_compiler_wl_F77='-Wl,' 14397 lt_prog_compiler_can_build_shared_F77=no 14398 ;; 14399 14400 uts4*) 14401 lt_prog_compiler_pic_F77='-pic' 14402 lt_prog_compiler_static_F77='-Bstatic' 14403 ;; 14404 14405 *) 14406 lt_prog_compiler_can_build_shared_F77=no 14407 ;; 14408 esac 14409 fi 14410 14411{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14412echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14413 14414# 14415# Check to make sure the PIC flag actually works. 14416# 14417if test -n "$lt_prog_compiler_pic_F77"; then 14418 14419{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14420echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14421if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14422 echo $ECHO_N "(cached) $ECHO_C" >&6 14423else 14424 lt_prog_compiler_pic_works_F77=no 14425 ac_outfile=conftest.$ac_objext 14426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14427 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14428 # Insert the option either (1) after the last *FLAGS variable, or 14429 # (2) before a word containing "conftest.", or (3) at the end. 14430 # Note that $ac_compile itself does not contain backslashes and begins 14431 # with a dollar sign (not a hyphen), so the echo should work correctly. 14432 # The option is referenced via a variable to avoid confusing sed. 14433 lt_compile=`echo "$ac_compile" | $SED \ 14434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14436 -e 's:$: $lt_compiler_flag:'` 14437 (eval echo "\"\$as_me:14437: $lt_compile\"" >&5) 14438 (eval "$lt_compile" 2>conftest.err) 14439 ac_status=$? 14440 cat conftest.err >&5 14441 echo "$as_me:14441: \$? = $ac_status" >&5 14442 if (exit $ac_status) && test -s "$ac_outfile"; then 14443 # The compiler can only warn and ignore the option if not recognized 14444 # So say no if there are warnings other than the usual output. 14445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14448 lt_prog_compiler_pic_works_F77=yes 14449 fi 14450 fi 14451 $rm conftest* 14452 14453fi 14454{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14455echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14456 14457if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14458 case $lt_prog_compiler_pic_F77 in 14459 "" | " "*) ;; 14460 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14461 esac 14462else 14463 lt_prog_compiler_pic_F77= 14464 lt_prog_compiler_can_build_shared_F77=no 14465fi 14466 14467fi 14468case $host_os in 14469 # For platforms which do not support PIC, -DPIC is meaningless: 14470 *djgpp*) 14471 lt_prog_compiler_pic_F77= 14472 ;; 14473 *) 14474 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14475 ;; 14476esac 14477 14478# 14479# Check to make sure the static flag actually works. 14480# 14481wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14482{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14483echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14484if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14485 echo $ECHO_N "(cached) $ECHO_C" >&6 14486else 14487 lt_prog_compiler_static_works_F77=no 14488 save_LDFLAGS="$LDFLAGS" 14489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14490 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14492 # The linker can only warn and ignore the option if not recognized 14493 # So say no if there are warnings 14494 if test -s conftest.err; then 14495 # Append any errors to the config.log. 14496 cat conftest.err 1>&5 14497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14499 if diff conftest.exp conftest.er2 >/dev/null; then 14500 lt_prog_compiler_static_works_F77=yes 14501 fi 14502 else 14503 lt_prog_compiler_static_works_F77=yes 14504 fi 14505 fi 14506 $rm conftest* 14507 LDFLAGS="$save_LDFLAGS" 14508 14509fi 14510{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14511echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14512 14513if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14514 : 14515else 14516 lt_prog_compiler_static_F77= 14517fi 14518 14519 14520{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14522if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14523 echo $ECHO_N "(cached) $ECHO_C" >&6 14524else 14525 lt_cv_prog_compiler_c_o_F77=no 14526 $rm -r conftest 2>/dev/null 14527 mkdir conftest 14528 cd conftest 14529 mkdir out 14530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14531 14532 lt_compiler_flag="-o out/conftest2.$ac_objext" 14533 # Insert the option either (1) after the last *FLAGS variable, or 14534 # (2) before a word containing "conftest.", or (3) at the end. 14535 # Note that $ac_compile itself does not contain backslashes and begins 14536 # with a dollar sign (not a hyphen), so the echo should work correctly. 14537 lt_compile=`echo "$ac_compile" | $SED \ 14538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14540 -e 's:$: $lt_compiler_flag:'` 14541 (eval echo "\"\$as_me:14541: $lt_compile\"" >&5) 14542 (eval "$lt_compile" 2>out/conftest.err) 14543 ac_status=$? 14544 cat out/conftest.err >&5 14545 echo "$as_me:14545: \$? = $ac_status" >&5 14546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14547 then 14548 # The compiler can only warn and ignore the option if not recognized 14549 # So say no if there are warnings 14550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14553 lt_cv_prog_compiler_c_o_F77=yes 14554 fi 14555 fi 14556 chmod u+w . 2>&5 14557 $rm conftest* 14558 # SGI C++ compiler will create directory out/ii_files/ for 14559 # template instantiation 14560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14561 $rm out/* && rmdir out 14562 cd .. 14563 rmdir conftest 14564 $rm conftest* 14565 14566fi 14567{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14568echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14569 14570 14571hard_links="nottested" 14572if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14573 # do not overwrite the value of need_locks provided by the user 14574 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14576 hard_links=yes 14577 $rm conftest* 14578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14579 touch conftest.a 14580 ln conftest.a conftest.b 2>&5 || hard_links=no 14581 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14582 { echo "$as_me:$LINENO: result: $hard_links" >&5 14583echo "${ECHO_T}$hard_links" >&6; } 14584 if test "$hard_links" = no; then 14585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14587 need_locks=warn 14588 fi 14589else 14590 need_locks=no 14591fi 14592 14593{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14595 14596 runpath_var= 14597 allow_undefined_flag_F77= 14598 enable_shared_with_static_runtimes_F77=no 14599 archive_cmds_F77= 14600 archive_expsym_cmds_F77= 14601 old_archive_From_new_cmds_F77= 14602 old_archive_from_expsyms_cmds_F77= 14603 export_dynamic_flag_spec_F77= 14604 whole_archive_flag_spec_F77= 14605 thread_safe_flag_spec_F77= 14606 hardcode_libdir_flag_spec_F77= 14607 hardcode_libdir_flag_spec_ld_F77= 14608 hardcode_libdir_separator_F77= 14609 hardcode_direct_F77=no 14610 hardcode_minus_L_F77=no 14611 hardcode_shlibpath_var_F77=unsupported 14612 link_all_deplibs_F77=unknown 14613 hardcode_automatic_F77=no 14614 module_cmds_F77= 14615 module_expsym_cmds_F77= 14616 always_export_symbols_F77=no 14617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14618 # include_expsyms should be a list of space-separated symbols to be *always* 14619 # included in the symbol list 14620 include_expsyms_F77= 14621 # exclude_expsyms can be an extended regexp of symbols to exclude 14622 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14624 # as well as any symbol that contains `d'. 14625 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14627 # platforms (ab)use it in PIC code, but their linkers get confused if 14628 # the symbol is explicitly referenced. Since portable code cannot 14629 # rely on this symbol name, it's probably fine to never include it in 14630 # preloaded symbol tables. 14631 extract_expsyms_cmds= 14632 # Just being paranoid about ensuring that cc_basename is set. 14633 for cc_temp in $compiler""; do 14634 case $cc_temp in 14635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14637 \-*) ;; 14638 *) break;; 14639 esac 14640done 14641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14642 14643 case $host_os in 14644 cygwin* | mingw* | pw32*) 14645 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14646 # When not using gcc, we currently assume that we are using 14647 # Microsoft Visual C++. 14648 if test "$GCC" != yes; then 14649 with_gnu_ld=no 14650 fi 14651 ;; 14652 interix*) 14653 # we just hope/assume this is gcc and not c89 (= MSVC++) 14654 with_gnu_ld=yes 14655 ;; 14656 openbsd*) 14657 with_gnu_ld=no 14658 ;; 14659 esac 14660 14661 ld_shlibs_F77=yes 14662 if test "$with_gnu_ld" = yes; then 14663 # If archive_cmds runs LD, not CC, wlarc should be empty 14664 wlarc='${wl}' 14665 14666 # Set some defaults for GNU ld with shared library support. These 14667 # are reset later if shared libraries are not supported. Putting them 14668 # here allows them to be overridden if necessary. 14669 runpath_var=LD_RUN_PATH 14670 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14671 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14672 # ancient GNU ld didn't support --whole-archive et. al. 14673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14674 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14675 else 14676 whole_archive_flag_spec_F77= 14677 fi 14678 supports_anon_versioning=no 14679 case `$LD -v 2>/dev/null` in 14680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14683 *\ 2.11.*) ;; # other 2.11 versions 14684 *) supports_anon_versioning=yes ;; 14685 esac 14686 14687 # See if GNU ld supports shared libraries. 14688 case $host_os in 14689 aix3* | aix4* | aix5*) 14690 # On AIX/PPC, the GNU linker is very broken 14691 if test "$host_cpu" != ia64; then 14692 ld_shlibs_F77=no 14693 cat <<EOF 1>&2 14694 14695*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14696*** to be unable to reliably create shared libraries on AIX. 14697*** Therefore, libtool is disabling shared libraries support. If you 14698*** really care for shared libraries, you may want to modify your PATH 14699*** so that a non-GNU linker is found, and then restart. 14700 14701EOF 14702 fi 14703 ;; 14704 14705 amigaos*) 14706 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)' 14707 hardcode_libdir_flag_spec_F77='-L$libdir' 14708 hardcode_minus_L_F77=yes 14709 14710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14711 # that the semantics of dynamic libraries on AmigaOS, at least up 14712 # to version 4, is to share data among multiple programs linked 14713 # with the same dynamic library. Since this doesn't match the 14714 # behavior of shared libraries on other platforms, we can't use 14715 # them. 14716 ld_shlibs_F77=no 14717 ;; 14718 14719 beos*) 14720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14721 allow_undefined_flag_F77=unsupported 14722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14723 # support --undefined. This deserves some investigation. FIXME 14724 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14725 else 14726 ld_shlibs_F77=no 14727 fi 14728 ;; 14729 14730 cygwin* | mingw* | pw32*) 14731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14732 # as there is no search path for DLLs. 14733 hardcode_libdir_flag_spec_F77='-L$libdir' 14734 allow_undefined_flag_F77=unsupported 14735 always_export_symbols_F77=no 14736 enable_shared_with_static_runtimes_F77=yes 14737 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14738 14739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14740 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14741 # If the export-symbols file already is a .def file (1st line 14742 # is EXPORTS), use it as is; otherwise, prepend... 14743 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14744 cp $export_symbols $output_objdir/$soname.def; 14745 else 14746 echo EXPORTS > $output_objdir/$soname.def; 14747 cat $export_symbols >> $output_objdir/$soname.def; 14748 fi~ 14749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14750 else 14751 ld_shlibs_F77=no 14752 fi 14753 ;; 14754 14755 interix3*) 14756 hardcode_direct_F77=no 14757 hardcode_shlibpath_var_F77=no 14758 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14759 export_dynamic_flag_spec_F77='${wl}-E' 14760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14761 # Instead, shared libraries are loaded at an image base (0x10000000 by 14762 # default) and relocated if they conflict, which is a slow very memory 14763 # consuming and fragmenting process. To avoid this, we pick a random, 14764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14765 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14766 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' 14767 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' 14768 ;; 14769 14770 linux* | k*bsd*-gnu) 14771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14772 tmp_addflag= 14773 case $cc_basename,$host_cpu in 14774 pgcc*) # Portland Group C compiler 14775 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' 14776 tmp_addflag=' $pic_flag' 14777 ;; 14778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14779 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' 14780 tmp_addflag=' $pic_flag -Mnomain' ;; 14781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14782 tmp_addflag=' -i_dynamic' ;; 14783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14784 tmp_addflag=' -i_dynamic -nofor_main' ;; 14785 ifc* | ifort*) # Intel Fortran compiler 14786 tmp_addflag=' -nofor_main' ;; 14787 esac 14788 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14789 14790 if test $supports_anon_versioning = yes; then 14791 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14793 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14794 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14795 fi 14796 link_all_deplibs_F77=no 14797 else 14798 ld_shlibs_F77=no 14799 fi 14800 ;; 14801 14802 netbsd* | netbsdelf*-gnu) 14803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14804 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14805 wlarc= 14806 else 14807 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14808 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14809 fi 14810 ;; 14811 14812 solaris*) 14813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14814 ld_shlibs_F77=no 14815 cat <<EOF 1>&2 14816 14817*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14818*** create shared libraries on Solaris systems. Therefore, libtool 14819*** is disabling shared libraries support. We urge you to upgrade GNU 14820*** binutils to release 2.9.1 or newer. Another option is to modify 14821*** your PATH or compiler configuration so that the native linker is 14822*** used, and then restart. 14823 14824EOF 14825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14826 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14827 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14828 else 14829 ld_shlibs_F77=no 14830 fi 14831 ;; 14832 14833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14834 case `$LD -v 2>&1` in 14835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14836 ld_shlibs_F77=no 14837 cat <<_LT_EOF 1>&2 14838 14839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14840*** reliably create shared libraries on SCO systems. Therefore, libtool 14841*** is disabling shared libraries support. We urge you to upgrade GNU 14842*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14843*** your PATH or compiler configuration so that the native linker is 14844*** used, and then restart. 14845 14846_LT_EOF 14847 ;; 14848 *) 14849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14850 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14851 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14852 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14853 else 14854 ld_shlibs_F77=no 14855 fi 14856 ;; 14857 esac 14858 ;; 14859 14860 sunos4*) 14861 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14862 wlarc= 14863 hardcode_direct_F77=yes 14864 hardcode_shlibpath_var_F77=no 14865 ;; 14866 14867 *) 14868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14869 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14870 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14871 else 14872 ld_shlibs_F77=no 14873 fi 14874 ;; 14875 esac 14876 14877 if test "$ld_shlibs_F77" = no; then 14878 runpath_var= 14879 hardcode_libdir_flag_spec_F77= 14880 export_dynamic_flag_spec_F77= 14881 whole_archive_flag_spec_F77= 14882 fi 14883 else 14884 # PORTME fill in a description of your system's linker (not GNU ld) 14885 case $host_os in 14886 aix3*) 14887 allow_undefined_flag_F77=unsupported 14888 always_export_symbols_F77=yes 14889 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' 14890 # Note: this linker hardcodes the directories in LIBPATH if there 14891 # are no directories specified by -L. 14892 hardcode_minus_L_F77=yes 14893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14894 # Neither direct hardcoding nor static linking is supported with a 14895 # broken collect2. 14896 hardcode_direct_F77=unsupported 14897 fi 14898 ;; 14899 14900 aix4* | aix5*) 14901 if test "$host_cpu" = ia64; then 14902 # On IA64, the linker does run time linking by default, so we don't 14903 # have to do anything special. 14904 aix_use_runtimelinking=no 14905 exp_sym_flag='-Bexport' 14906 no_entry_flag="" 14907 else 14908 # If we're using GNU nm, then we don't want the "-C" option. 14909 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14911 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' 14912 else 14913 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' 14914 fi 14915 aix_use_runtimelinking=no 14916 14917 # Test if we are trying to use run time linking or normal 14918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14919 # need to do runtime linking. 14920 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14921 for ld_flag in $LDFLAGS; do 14922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14923 aix_use_runtimelinking=yes 14924 break 14925 fi 14926 done 14927 ;; 14928 esac 14929 14930 exp_sym_flag='-bexport' 14931 no_entry_flag='-bnoentry' 14932 fi 14933 14934 # When large executables or shared objects are built, AIX ld can 14935 # have problems creating the table of contents. If linking a library 14936 # or program results in "error TOC overflow" add -mminimal-toc to 14937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14939 14940 archive_cmds_F77='' 14941 hardcode_direct_F77=yes 14942 hardcode_libdir_separator_F77=':' 14943 link_all_deplibs_F77=yes 14944 14945 if test "$GCC" = yes; then 14946 case $host_os in aix4.[012]|aix4.[012].*) 14947 # We only want to do this on AIX 4.2 and lower, the check 14948 # below for broken collect2 doesn't work under 4.3+ 14949 collect2name=`${CC} -print-prog-name=collect2` 14950 if test -f "$collect2name" && \ 14951 strings "$collect2name" | grep resolve_lib_name >/dev/null 14952 then 14953 # We have reworked collect2 14954 hardcode_direct_F77=yes 14955 else 14956 # We have old collect2 14957 hardcode_direct_F77=unsupported 14958 # It fails to find uninstalled libraries when the uninstalled 14959 # path is not listed in the libpath. Setting hardcode_minus_L 14960 # to unsupported forces relinking 14961 hardcode_minus_L_F77=yes 14962 hardcode_libdir_flag_spec_F77='-L$libdir' 14963 hardcode_libdir_separator_F77= 14964 fi 14965 ;; 14966 esac 14967 shared_flag='-shared' 14968 if test "$aix_use_runtimelinking" = yes; then 14969 shared_flag="$shared_flag "'${wl}-G' 14970 fi 14971 else 14972 # not using gcc 14973 if test "$host_cpu" = ia64; then 14974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14975 # chokes on -Wl,-G. The following line is correct: 14976 shared_flag='-G' 14977 else 14978 if test "$aix_use_runtimelinking" = yes; then 14979 shared_flag='${wl}-G' 14980 else 14981 shared_flag='${wl}-bM:SRE' 14982 fi 14983 fi 14984 fi 14985 14986 # It seems that -bexpall does not export symbols beginning with 14987 # underscore (_), so it is better to generate a list of symbols to export. 14988 always_export_symbols_F77=yes 14989 if test "$aix_use_runtimelinking" = yes; then 14990 # Warning - without using the other runtime loading flags (-brtl), 14991 # -berok will link without error, but may produce a broken library. 14992 allow_undefined_flag_F77='-berok' 14993 # Determine the default libpath from the value encoded in an empty executable. 14994 cat >conftest.$ac_ext <<_ACEOF 14995 program main 14996 14997 end 14998_ACEOF 14999rm -f conftest.$ac_objext conftest$ac_exeext 15000if { (ac_try="$ac_link" 15001case "(($ac_try" in 15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15003 *) ac_try_echo=$ac_try;; 15004esac 15005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15006 (eval "$ac_link") 2>conftest.er1 15007 ac_status=$? 15008 grep -v '^ *+' conftest.er1 >conftest.err 15009 rm -f conftest.er1 15010 cat conftest.err >&5 15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15012 (exit $ac_status); } && { 15013 test -z "$ac_f77_werror_flag" || 15014 test ! -s conftest.err 15015 } && test -s conftest$ac_exeext && 15016 $as_test_x conftest$ac_exeext; then 15017 15018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15019}'` 15020# Check for a 64-bit object if we didn't find anything. 15021if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15022}'`; fi 15023else 15024 echo "$as_me: failed program was:" >&5 15025sed 's/^/| /' conftest.$ac_ext >&5 15026 15027 15028fi 15029 15030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15031 conftest$ac_exeext conftest.$ac_ext 15032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15033 15034 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15035 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" 15036 else 15037 if test "$host_cpu" = ia64; then 15038 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15039 allow_undefined_flag_F77="-z nodefs" 15040 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" 15041 else 15042 # Determine the default libpath from the value encoded in an empty executable. 15043 cat >conftest.$ac_ext <<_ACEOF 15044 program main 15045 15046 end 15047_ACEOF 15048rm -f conftest.$ac_objext conftest$ac_exeext 15049if { (ac_try="$ac_link" 15050case "(($ac_try" in 15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15052 *) ac_try_echo=$ac_try;; 15053esac 15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15055 (eval "$ac_link") 2>conftest.er1 15056 ac_status=$? 15057 grep -v '^ *+' conftest.er1 >conftest.err 15058 rm -f conftest.er1 15059 cat conftest.err >&5 15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15061 (exit $ac_status); } && { 15062 test -z "$ac_f77_werror_flag" || 15063 test ! -s conftest.err 15064 } && test -s conftest$ac_exeext && 15065 $as_test_x conftest$ac_exeext; then 15066 15067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15068}'` 15069# Check for a 64-bit object if we didn't find anything. 15070if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15071}'`; fi 15072else 15073 echo "$as_me: failed program was:" >&5 15074sed 's/^/| /' conftest.$ac_ext >&5 15075 15076 15077fi 15078 15079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15080 conftest$ac_exeext conftest.$ac_ext 15081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15082 15083 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15084 # Warning - without using the other run time loading flags, 15085 # -berok will link without error, but may produce a broken library. 15086 no_undefined_flag_F77=' ${wl}-bernotok' 15087 allow_undefined_flag_F77=' ${wl}-berok' 15088 # Exported symbols can be pulled into shared objects from archives 15089 whole_archive_flag_spec_F77='$convenience' 15090 archive_cmds_need_lc_F77=yes 15091 # This is similar to how AIX traditionally builds its shared libraries. 15092 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' 15093 fi 15094 fi 15095 ;; 15096 15097 amigaos*) 15098 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)' 15099 hardcode_libdir_flag_spec_F77='-L$libdir' 15100 hardcode_minus_L_F77=yes 15101 # see comment about different semantics on the GNU ld section 15102 ld_shlibs_F77=no 15103 ;; 15104 15105 bsdi[45]*) 15106 export_dynamic_flag_spec_F77=-rdynamic 15107 ;; 15108 15109 cygwin* | mingw* | pw32*) 15110 # When not using gcc, we currently assume that we are using 15111 # Microsoft Visual C++. 15112 # hardcode_libdir_flag_spec is actually meaningless, as there is 15113 # no search path for DLLs. 15114 hardcode_libdir_flag_spec_F77=' ' 15115 allow_undefined_flag_F77=unsupported 15116 # Tell ltmain to make .lib files, not .a files. 15117 libext=lib 15118 # Tell ltmain to make .dll files, not .so files. 15119 shrext_cmds=".dll" 15120 # FIXME: Setting linknames here is a bad hack. 15121 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15122 # The linker will automatically build a .lib file if we build a DLL. 15123 old_archive_From_new_cmds_F77='true' 15124 # FIXME: Should let the user specify the lib program. 15125 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15126 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15127 enable_shared_with_static_runtimes_F77=yes 15128 ;; 15129 15130 darwin* | rhapsody*) 15131 case $host_os in 15132 rhapsody* | darwin1.[012]) 15133 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15134 ;; 15135 *) # Darwin 1.3 on 15136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15137 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15138 else 15139 case ${MACOSX_DEPLOYMENT_TARGET} in 15140 10.[012]) 15141 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15142 ;; 15143 10.*) 15144 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15145 ;; 15146 esac 15147 fi 15148 ;; 15149 esac 15150 archive_cmds_need_lc_F77=no 15151 hardcode_direct_F77=no 15152 hardcode_automatic_F77=yes 15153 hardcode_shlibpath_var_F77=unsupported 15154 whole_archive_flag_spec_F77='' 15155 link_all_deplibs_F77=yes 15156 if test "$GCC" = yes ; then 15157 output_verbose_link_cmd='echo' 15158 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15159 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15161 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}' 15162 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}' 15163 else 15164 case $cc_basename in 15165 xlc*) 15166 output_verbose_link_cmd='echo' 15167 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15168 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15170 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15171 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}' 15172 ;; 15173 *) 15174 ld_shlibs_F77=no 15175 ;; 15176 esac 15177 fi 15178 ;; 15179 15180 dgux*) 15181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15182 hardcode_libdir_flag_spec_F77='-L$libdir' 15183 hardcode_shlibpath_var_F77=no 15184 ;; 15185 15186 freebsd1*) 15187 ld_shlibs_F77=no 15188 ;; 15189 15190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15191 # support. Future versions do this automatically, but an explicit c++rt0.o 15192 # does not break anything, and helps significantly (at the cost of a little 15193 # extra space). 15194 freebsd2.2*) 15195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15196 hardcode_libdir_flag_spec_F77='-R$libdir' 15197 hardcode_direct_F77=yes 15198 hardcode_shlibpath_var_F77=no 15199 ;; 15200 15201 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15202 freebsd2*) 15203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15204 hardcode_direct_F77=yes 15205 hardcode_minus_L_F77=yes 15206 hardcode_shlibpath_var_F77=no 15207 ;; 15208 15209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15210 freebsd* | dragonfly*) 15211 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15212 hardcode_libdir_flag_spec_F77='-R$libdir' 15213 hardcode_direct_F77=yes 15214 hardcode_shlibpath_var_F77=no 15215 ;; 15216 15217 hpux9*) 15218 if test "$GCC" = yes; then 15219 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' 15220 else 15221 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' 15222 fi 15223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15224 hardcode_libdir_separator_F77=: 15225 hardcode_direct_F77=yes 15226 15227 # hardcode_minus_L: Not really in the search PATH, 15228 # but as the default location of the library. 15229 hardcode_minus_L_F77=yes 15230 export_dynamic_flag_spec_F77='${wl}-E' 15231 ;; 15232 15233 hpux10*) 15234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15235 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15236 else 15237 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15238 fi 15239 if test "$with_gnu_ld" = no; then 15240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15241 hardcode_libdir_separator_F77=: 15242 15243 hardcode_direct_F77=yes 15244 export_dynamic_flag_spec_F77='${wl}-E' 15245 15246 # hardcode_minus_L: Not really in the search PATH, 15247 # but as the default location of the library. 15248 hardcode_minus_L_F77=yes 15249 fi 15250 ;; 15251 15252 hpux11*) 15253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15254 case $host_cpu in 15255 hppa*64*) 15256 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15257 ;; 15258 ia64*) 15259 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15260 ;; 15261 *) 15262 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15263 ;; 15264 esac 15265 else 15266 case $host_cpu in 15267 hppa*64*) 15268 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15269 ;; 15270 ia64*) 15271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15272 ;; 15273 *) 15274 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15275 ;; 15276 esac 15277 fi 15278 if test "$with_gnu_ld" = no; then 15279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15280 hardcode_libdir_separator_F77=: 15281 15282 case $host_cpu in 15283 hppa*64*|ia64*) 15284 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15285 hardcode_direct_F77=no 15286 hardcode_shlibpath_var_F77=no 15287 ;; 15288 *) 15289 hardcode_direct_F77=yes 15290 export_dynamic_flag_spec_F77='${wl}-E' 15291 15292 # hardcode_minus_L: Not really in the search PATH, 15293 # but as the default location of the library. 15294 hardcode_minus_L_F77=yes 15295 ;; 15296 esac 15297 fi 15298 ;; 15299 15300 irix5* | irix6* | nonstopux*) 15301 if test "$GCC" = yes; then 15302 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' 15303 else 15304 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' 15305 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15306 fi 15307 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15308 hardcode_libdir_separator_F77=: 15309 link_all_deplibs_F77=yes 15310 ;; 15311 15312 netbsd* | netbsdelf*-gnu) 15313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15314 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15315 else 15316 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15317 fi 15318 hardcode_libdir_flag_spec_F77='-R$libdir' 15319 hardcode_direct_F77=yes 15320 hardcode_shlibpath_var_F77=no 15321 ;; 15322 15323 newsos6) 15324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15325 hardcode_direct_F77=yes 15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15327 hardcode_libdir_separator_F77=: 15328 hardcode_shlibpath_var_F77=no 15329 ;; 15330 15331 openbsd*) 15332 hardcode_direct_F77=yes 15333 hardcode_shlibpath_var_F77=no 15334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15335 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15336 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15338 export_dynamic_flag_spec_F77='${wl}-E' 15339 else 15340 case $host_os in 15341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15343 hardcode_libdir_flag_spec_F77='-R$libdir' 15344 ;; 15345 *) 15346 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15347 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15348 ;; 15349 esac 15350 fi 15351 ;; 15352 15353 os2*) 15354 hardcode_libdir_flag_spec_F77='-L$libdir' 15355 hardcode_minus_L_F77=yes 15356 allow_undefined_flag_F77=unsupported 15357 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' 15358 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15359 ;; 15360 15361 osf3*) 15362 if test "$GCC" = yes; then 15363 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15364 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' 15365 else 15366 allow_undefined_flag_F77=' -expect_unresolved \*' 15367 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' 15368 fi 15369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15370 hardcode_libdir_separator_F77=: 15371 ;; 15372 15373 osf4* | osf5*) # as osf3* with the addition of -msym flag 15374 if test "$GCC" = yes; then 15375 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15376 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' 15377 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15378 else 15379 allow_undefined_flag_F77=' -expect_unresolved \*' 15380 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' 15381 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~ 15382 $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' 15383 15384 # Both c and cxx compiler support -rpath directly 15385 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15386 fi 15387 hardcode_libdir_separator_F77=: 15388 ;; 15389 15390 solaris*) 15391 no_undefined_flag_F77=' -z text' 15392 if test "$GCC" = yes; then 15393 wlarc='${wl}' 15394 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15396 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15397 else 15398 wlarc='' 15399 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15400 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15402 fi 15403 hardcode_libdir_flag_spec_F77='-R$libdir' 15404 hardcode_shlibpath_var_F77=no 15405 case $host_os in 15406 solaris2.[0-5] | solaris2.[0-5].*) ;; 15407 *) 15408 # The compiler driver will combine linker options so we 15409 # cannot just pass the convience library names through 15410 # without $wl, iff we do not link with $LD. 15411 # Luckily, gcc supports the same syntax we need for Sun Studio. 15412 # Supported since Solaris 2.6 (maybe 2.5.1?) 15413 case $wlarc in 15414 '') 15415 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15416 *) 15417 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15418 esac ;; 15419 esac 15420 link_all_deplibs_F77=yes 15421 ;; 15422 15423 sunos4*) 15424 if test "x$host_vendor" = xsequent; then 15425 # Use $CC to link under sequent, because it throws in some extra .o 15426 # files that make .init and .fini sections work. 15427 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15428 else 15429 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15430 fi 15431 hardcode_libdir_flag_spec_F77='-L$libdir' 15432 hardcode_direct_F77=yes 15433 hardcode_minus_L_F77=yes 15434 hardcode_shlibpath_var_F77=no 15435 ;; 15436 15437 sysv4) 15438 case $host_vendor in 15439 sni) 15440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15441 hardcode_direct_F77=yes # is this really true??? 15442 ;; 15443 siemens) 15444 ## LD is ld it makes a PLAMLIB 15445 ## CC just makes a GrossModule. 15446 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15447 reload_cmds_F77='$CC -r -o $output$reload_objs' 15448 hardcode_direct_F77=no 15449 ;; 15450 motorola) 15451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15452 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15453 ;; 15454 esac 15455 runpath_var='LD_RUN_PATH' 15456 hardcode_shlibpath_var_F77=no 15457 ;; 15458 15459 sysv4.3*) 15460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15461 hardcode_shlibpath_var_F77=no 15462 export_dynamic_flag_spec_F77='-Bexport' 15463 ;; 15464 15465 sysv4*MP*) 15466 if test -d /usr/nec; then 15467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15468 hardcode_shlibpath_var_F77=no 15469 runpath_var=LD_RUN_PATH 15470 hardcode_runpath_var=yes 15471 ld_shlibs_F77=yes 15472 fi 15473 ;; 15474 15475 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15476 no_undefined_flag_F77='${wl}-z,text' 15477 archive_cmds_need_lc_F77=no 15478 hardcode_shlibpath_var_F77=no 15479 runpath_var='LD_RUN_PATH' 15480 15481 if test "$GCC" = yes; then 15482 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15483 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15484 else 15485 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15486 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15487 fi 15488 ;; 15489 15490 sysv5* | sco3.2v5* | sco5v6*) 15491 # Note: We can NOT use -z defs as we might desire, because we do not 15492 # link with -lc, and that would cause any symbols used from libc to 15493 # always be unresolved, which means just about no library would 15494 # ever link correctly. If we're not using GNU ld we use -z text 15495 # though, which does catch some bad symbols but isn't as heavy-handed 15496 # as -z defs. 15497 no_undefined_flag_F77='${wl}-z,text' 15498 allow_undefined_flag_F77='${wl}-z,nodefs' 15499 archive_cmds_need_lc_F77=no 15500 hardcode_shlibpath_var_F77=no 15501 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15502 hardcode_libdir_separator_F77=':' 15503 link_all_deplibs_F77=yes 15504 export_dynamic_flag_spec_F77='${wl}-Bexport' 15505 runpath_var='LD_RUN_PATH' 15506 15507 if test "$GCC" = yes; then 15508 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15509 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15510 else 15511 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15512 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15513 fi 15514 ;; 15515 15516 uts4*) 15517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15518 hardcode_libdir_flag_spec_F77='-L$libdir' 15519 hardcode_shlibpath_var_F77=no 15520 ;; 15521 15522 *) 15523 ld_shlibs_F77=no 15524 ;; 15525 esac 15526 fi 15527 15528{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15529echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15530test "$ld_shlibs_F77" = no && can_build_shared=no 15531 15532# 15533# Do we need to explicitly link libc? 15534# 15535case "x$archive_cmds_need_lc_F77" in 15536x|xyes) 15537 # Assume -lc should be added 15538 archive_cmds_need_lc_F77=yes 15539 15540 if test "$enable_shared" = yes && test "$GCC" = yes; then 15541 case $archive_cmds_F77 in 15542 *'~'*) 15543 # FIXME: we may have to deal with multi-command sequences. 15544 ;; 15545 '$CC '*) 15546 # Test whether the compiler implicitly links with -lc since on some 15547 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15548 # to ld, don't add -lc before -lgcc. 15549 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15550echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15551 $rm conftest* 15552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15553 15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15555 (eval $ac_compile) 2>&5 15556 ac_status=$? 15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15558 (exit $ac_status); } 2>conftest.err; then 15559 soname=conftest 15560 lib=conftest 15561 libobjs=conftest.$ac_objext 15562 deplibs= 15563 wl=$lt_prog_compiler_wl_F77 15564 pic_flag=$lt_prog_compiler_pic_F77 15565 compiler_flags=-v 15566 linker_flags=-v 15567 verstring= 15568 output_objdir=. 15569 libname=conftest 15570 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15571 allow_undefined_flag_F77= 15572 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15573 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15574 ac_status=$? 15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15576 (exit $ac_status); } 15577 then 15578 archive_cmds_need_lc_F77=no 15579 else 15580 archive_cmds_need_lc_F77=yes 15581 fi 15582 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15583 else 15584 cat conftest.err 1>&5 15585 fi 15586 $rm conftest* 15587 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15588echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15589 ;; 15590 esac 15591 fi 15592 ;; 15593esac 15594 15595{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15596echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15597library_names_spec= 15598libname_spec='lib$name' 15599soname_spec= 15600shrext_cmds=".so" 15601postinstall_cmds= 15602postuninstall_cmds= 15603finish_cmds= 15604finish_eval= 15605shlibpath_var= 15606shlibpath_overrides_runpath=unknown 15607version_type=none 15608dynamic_linker="$host_os ld.so" 15609sys_lib_dlsearch_path_spec="/lib /usr/lib" 15610if test "$GCC" = yes; then 15611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15613 # if the path contains ";" then we assume it to be the separator 15614 # otherwise default to the standard path separator (i.e. ":") - it is 15615 # assumed that no part of a normal pathname contains ";" but that should 15616 # okay in the real world where ";" in dirpaths is itself problematic. 15617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15618 else 15619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15620 fi 15621else 15622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15623fi 15624need_lib_prefix=unknown 15625hardcode_into_libs=no 15626 15627# when you set need_version to no, make sure it does not cause -set_version 15628# flags to be left without arguments 15629need_version=unknown 15630 15631case $host_os in 15632aix3*) 15633 version_type=linux 15634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15635 shlibpath_var=LIBPATH 15636 15637 # AIX 3 has no versioning support, so we append a major version to the name. 15638 soname_spec='${libname}${release}${shared_ext}$major' 15639 ;; 15640 15641aix4* | aix5*) 15642 version_type=linux 15643 need_lib_prefix=no 15644 need_version=no 15645 hardcode_into_libs=yes 15646 if test "$host_cpu" = ia64; then 15647 # AIX 5 supports IA64 15648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15649 shlibpath_var=LD_LIBRARY_PATH 15650 else 15651 # With GCC up to 2.95.x, collect2 would create an import file 15652 # for dependence libraries. The import file would start with 15653 # the line `#! .'. This would cause the generated library to 15654 # depend on `.', always an invalid library. This was fixed in 15655 # development snapshots of GCC prior to 3.0. 15656 case $host_os in 15657 aix4 | aix4.[01] | aix4.[01].*) 15658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15659 echo ' yes ' 15660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15661 : 15662 else 15663 can_build_shared=no 15664 fi 15665 ;; 15666 esac 15667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15668 # soname into executable. Probably we can add versioning support to 15669 # collect2, so additional links can be useful in future. 15670 if test "$aix_use_runtimelinking" = yes; then 15671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15672 # instead of lib<name>.a to let people know that these are not 15673 # typical AIX shared libraries. 15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15675 else 15676 # We preserve .a as extension for shared libraries through AIX4.2 15677 # and later when we are not doing run time linking. 15678 library_names_spec='${libname}${release}.a $libname.a' 15679 soname_spec='${libname}${release}${shared_ext}$major' 15680 fi 15681 shlibpath_var=LIBPATH 15682 fi 15683 ;; 15684 15685amigaos*) 15686 library_names_spec='$libname.ixlibrary $libname.a' 15687 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15688 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' 15689 ;; 15690 15691beos*) 15692 library_names_spec='${libname}${shared_ext}' 15693 dynamic_linker="$host_os ld.so" 15694 shlibpath_var=LIBRARY_PATH 15695 ;; 15696 15697bsdi[45]*) 15698 version_type=linux 15699 need_version=no 15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15701 soname_spec='${libname}${release}${shared_ext}$major' 15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15703 shlibpath_var=LD_LIBRARY_PATH 15704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15706 # the default ld.so.conf also contains /usr/contrib/lib and 15707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15708 # libtool to hard-code these into programs 15709 ;; 15710 15711cygwin* | mingw* | pw32*) 15712 version_type=windows 15713 shrext_cmds=".dll" 15714 need_version=no 15715 need_lib_prefix=no 15716 15717 case $GCC,$host_os in 15718 yes,cygwin* | yes,mingw* | yes,pw32*) 15719 library_names_spec='$libname.dll.a' 15720 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15721 postinstall_cmds='base_file=`basename \${file}`~ 15722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15723 dldir=$destdir/`dirname \$dlpath`~ 15724 test -d \$dldir || mkdir -p \$dldir~ 15725 $install_prog $dir/$dlname \$dldir/$dlname~ 15726 chmod a+x \$dldir/$dlname' 15727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15728 dlpath=$dir/\$dldll~ 15729 $rm \$dlpath' 15730 shlibpath_overrides_runpath=yes 15731 15732 case $host_os in 15733 cygwin*) 15734 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15737 ;; 15738 mingw*) 15739 # MinGW DLLs use traditional 'lib' prefix 15740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15743 # It is most probably a Windows format PATH printed by 15744 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15745 # path with ; separators, and with drive letters. We can handle the 15746 # drive letters (cygwin fileutils understands them), so leave them, 15747 # especially as we might pass files found there to a mingw objdump, 15748 # which wouldn't understand a cygwinified path. Ahh. 15749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15750 else 15751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15752 fi 15753 ;; 15754 pw32*) 15755 # pw32 DLLs use 'pw' prefix rather than 'lib' 15756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15757 ;; 15758 esac 15759 ;; 15760 15761 *) 15762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15763 ;; 15764 esac 15765 dynamic_linker='Win32 ld.exe' 15766 # FIXME: first we should search . and the directory the executable is in 15767 shlibpath_var=PATH 15768 ;; 15769 15770darwin* | rhapsody*) 15771 dynamic_linker="$host_os dyld" 15772 version_type=darwin 15773 need_lib_prefix=no 15774 need_version=no 15775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15776 soname_spec='${libname}${release}${major}$shared_ext' 15777 shlibpath_overrides_runpath=yes 15778 shlibpath_var=DYLD_LIBRARY_PATH 15779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15781 if test "$GCC" = yes; then 15782 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15783 else 15784 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15785 fi 15786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15787 ;; 15788 15789dgux*) 15790 version_type=linux 15791 need_lib_prefix=no 15792 need_version=no 15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15794 soname_spec='${libname}${release}${shared_ext}$major' 15795 shlibpath_var=LD_LIBRARY_PATH 15796 ;; 15797 15798freebsd1*) 15799 dynamic_linker=no 15800 ;; 15801 15802freebsd* | dragonfly*) 15803 # DragonFly does not have aout. When/if they implement a new 15804 # versioning mechanism, adjust this. 15805 if test -x /usr/bin/objformat; then 15806 objformat=`/usr/bin/objformat` 15807 else 15808 case $host_os in 15809 freebsd[123]*) objformat=aout ;; 15810 *) objformat=elf ;; 15811 esac 15812 fi 15813 version_type=freebsd-$objformat 15814 case $version_type in 15815 freebsd-elf*) 15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15817 need_version=no 15818 need_lib_prefix=no 15819 ;; 15820 freebsd-*) 15821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15822 need_version=yes 15823 ;; 15824 esac 15825 shlibpath_var=LD_LIBRARY_PATH 15826 case $host_os in 15827 freebsd2*) 15828 shlibpath_overrides_runpath=yes 15829 ;; 15830 freebsd3.[01]* | freebsdelf3.[01]*) 15831 shlibpath_overrides_runpath=yes 15832 hardcode_into_libs=yes 15833 ;; 15834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15836 shlibpath_overrides_runpath=no 15837 hardcode_into_libs=yes 15838 ;; 15839 freebsd*) # from 4.6 on 15840 shlibpath_overrides_runpath=yes 15841 hardcode_into_libs=yes 15842 ;; 15843 esac 15844 ;; 15845 15846gnu*) 15847 version_type=linux 15848 need_lib_prefix=no 15849 need_version=no 15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15851 soname_spec='${libname}${release}${shared_ext}$major' 15852 shlibpath_var=LD_LIBRARY_PATH 15853 hardcode_into_libs=yes 15854 ;; 15855 15856hpux9* | hpux10* | hpux11*) 15857 # Give a soname corresponding to the major version so that dld.sl refuses to 15858 # link against other versions. 15859 version_type=sunos 15860 need_lib_prefix=no 15861 need_version=no 15862 case $host_cpu in 15863 ia64*) 15864 shrext_cmds='.so' 15865 hardcode_into_libs=yes 15866 dynamic_linker="$host_os dld.so" 15867 shlibpath_var=LD_LIBRARY_PATH 15868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15870 soname_spec='${libname}${release}${shared_ext}$major' 15871 if test "X$HPUX_IA64_MODE" = X32; then 15872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15873 else 15874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15875 fi 15876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15877 ;; 15878 hppa*64*) 15879 shrext_cmds='.sl' 15880 hardcode_into_libs=yes 15881 dynamic_linker="$host_os dld.sl" 15882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15885 soname_spec='${libname}${release}${shared_ext}$major' 15886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15888 ;; 15889 *) 15890 shrext_cmds='.sl' 15891 dynamic_linker="$host_os dld.sl" 15892 shlibpath_var=SHLIB_PATH 15893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15895 soname_spec='${libname}${release}${shared_ext}$major' 15896 ;; 15897 esac 15898 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15899 postinstall_cmds='chmod 555 $lib' 15900 ;; 15901 15902interix3*) 15903 version_type=linux 15904 need_lib_prefix=no 15905 need_version=no 15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15907 soname_spec='${libname}${release}${shared_ext}$major' 15908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15909 shlibpath_var=LD_LIBRARY_PATH 15910 shlibpath_overrides_runpath=no 15911 hardcode_into_libs=yes 15912 ;; 15913 15914irix5* | irix6* | nonstopux*) 15915 case $host_os in 15916 nonstopux*) version_type=nonstopux ;; 15917 *) 15918 if test "$lt_cv_prog_gnu_ld" = yes; then 15919 version_type=linux 15920 else 15921 version_type=irix 15922 fi ;; 15923 esac 15924 need_lib_prefix=no 15925 need_version=no 15926 soname_spec='${libname}${release}${shared_ext}$major' 15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15928 case $host_os in 15929 irix5* | nonstopux*) 15930 libsuff= shlibsuff= 15931 ;; 15932 *) 15933 case $LD in # libtool.m4 will add one of these switches to LD 15934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15935 libsuff= shlibsuff= libmagic=32-bit;; 15936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15937 libsuff=32 shlibsuff=N32 libmagic=N32;; 15938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15939 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15940 *) libsuff= shlibsuff= libmagic=never-match;; 15941 esac 15942 ;; 15943 esac 15944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15945 shlibpath_overrides_runpath=no 15946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15948 hardcode_into_libs=yes 15949 ;; 15950 15951# No shared lib support for Linux oldld, aout, or coff. 15952linux*oldld* | linux*aout* | linux*coff*) 15953 dynamic_linker=no 15954 ;; 15955 15956# This must be Linux ELF. 15957linux* | k*bsd*-gnu) 15958 version_type=linux 15959 need_lib_prefix=no 15960 need_version=no 15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15962 soname_spec='${libname}${release}${shared_ext}$major' 15963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15964 shlibpath_var=LD_LIBRARY_PATH 15965 shlibpath_overrides_runpath=no 15966 # This implies no fast_install, which is unacceptable. 15967 # Some rework will be needed to allow for fast_install 15968 # before this can be enabled. 15969 hardcode_into_libs=yes 15970 15971 # Append ld.so.conf contents to the search path 15972 if test -f /etc/ld.so.conf; then 15973 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15974 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15975 fi 15976 15977 # We used to test for /lib/ld.so.1 and disable shared libraries on 15978 # powerpc, because MkLinux only supported shared libraries with the 15979 # GNU dynamic linker. Since this was broken with cross compilers, 15980 # most powerpc-linux boxes support dynamic linking these days and 15981 # people can always --disable-shared, the test was removed, and we 15982 # assume the GNU/Linux dynamic linker is in use. 15983 dynamic_linker='GNU/Linux ld.so' 15984 ;; 15985 15986netbsdelf*-gnu) 15987 version_type=linux 15988 need_lib_prefix=no 15989 need_version=no 15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15991 soname_spec='${libname}${release}${shared_ext}$major' 15992 shlibpath_var=LD_LIBRARY_PATH 15993 shlibpath_overrides_runpath=no 15994 hardcode_into_libs=yes 15995 dynamic_linker='NetBSD ld.elf_so' 15996 ;; 15997 15998netbsd*) 15999 version_type=sunos 16000 need_lib_prefix=no 16001 need_version=no 16002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16005 dynamic_linker='NetBSD (a.out) ld.so' 16006 else 16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16008 soname_spec='${libname}${release}${shared_ext}$major' 16009 dynamic_linker='NetBSD ld.elf_so' 16010 fi 16011 shlibpath_var=LD_LIBRARY_PATH 16012 shlibpath_overrides_runpath=yes 16013 hardcode_into_libs=yes 16014 ;; 16015 16016newsos6) 16017 version_type=linux 16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16019 shlibpath_var=LD_LIBRARY_PATH 16020 shlibpath_overrides_runpath=yes 16021 ;; 16022 16023nto-qnx*) 16024 version_type=linux 16025 need_lib_prefix=no 16026 need_version=no 16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 shlibpath_var=LD_LIBRARY_PATH 16030 shlibpath_overrides_runpath=yes 16031 ;; 16032 16033openbsd*) 16034 version_type=sunos 16035 sys_lib_dlsearch_path_spec="/usr/lib" 16036 need_lib_prefix=no 16037 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16038 case $host_os in 16039 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16040 *) need_version=no ;; 16041 esac 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16046 case $host_os in 16047 openbsd2.[89] | openbsd2.[89].*) 16048 shlibpath_overrides_runpath=no 16049 ;; 16050 *) 16051 shlibpath_overrides_runpath=yes 16052 ;; 16053 esac 16054 else 16055 shlibpath_overrides_runpath=yes 16056 fi 16057 ;; 16058 16059os2*) 16060 libname_spec='$name' 16061 shrext_cmds=".dll" 16062 need_lib_prefix=no 16063 library_names_spec='$libname${shared_ext} $libname.a' 16064 dynamic_linker='OS/2 ld.exe' 16065 shlibpath_var=LIBPATH 16066 ;; 16067 16068osf3* | osf4* | osf5*) 16069 version_type=osf 16070 need_lib_prefix=no 16071 need_version=no 16072 soname_spec='${libname}${release}${shared_ext}$major' 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16074 shlibpath_var=LD_LIBRARY_PATH 16075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16077 ;; 16078 16079solaris*) 16080 version_type=linux 16081 need_lib_prefix=no 16082 need_version=no 16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16084 soname_spec='${libname}${release}${shared_ext}$major' 16085 shlibpath_var=LD_LIBRARY_PATH 16086 shlibpath_overrides_runpath=yes 16087 hardcode_into_libs=yes 16088 # ldd complains unless libraries are executable 16089 postinstall_cmds='chmod +x $lib' 16090 ;; 16091 16092sunos4*) 16093 version_type=sunos 16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16096 shlibpath_var=LD_LIBRARY_PATH 16097 shlibpath_overrides_runpath=yes 16098 if test "$with_gnu_ld" = yes; then 16099 need_lib_prefix=no 16100 fi 16101 need_version=yes 16102 ;; 16103 16104sysv4 | sysv4.3*) 16105 version_type=linux 16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16107 soname_spec='${libname}${release}${shared_ext}$major' 16108 shlibpath_var=LD_LIBRARY_PATH 16109 case $host_vendor in 16110 sni) 16111 shlibpath_overrides_runpath=no 16112 need_lib_prefix=no 16113 export_dynamic_flag_spec='${wl}-Blargedynsym' 16114 runpath_var=LD_RUN_PATH 16115 ;; 16116 siemens) 16117 need_lib_prefix=no 16118 ;; 16119 motorola) 16120 need_lib_prefix=no 16121 need_version=no 16122 shlibpath_overrides_runpath=no 16123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16124 ;; 16125 esac 16126 ;; 16127 16128sysv4*MP*) 16129 if test -d /usr/nec ;then 16130 version_type=linux 16131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16132 soname_spec='$libname${shared_ext}.$major' 16133 shlibpath_var=LD_LIBRARY_PATH 16134 fi 16135 ;; 16136 16137sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16138 version_type=freebsd-elf 16139 need_lib_prefix=no 16140 need_version=no 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16142 soname_spec='${libname}${release}${shared_ext}$major' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 hardcode_into_libs=yes 16145 if test "$with_gnu_ld" = yes; then 16146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16147 shlibpath_overrides_runpath=no 16148 else 16149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16150 shlibpath_overrides_runpath=yes 16151 case $host_os in 16152 sco3.2v5*) 16153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16154 ;; 16155 esac 16156 fi 16157 sys_lib_dlsearch_path_spec='/usr/lib' 16158 ;; 16159 16160uts4*) 16161 version_type=linux 16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16163 soname_spec='${libname}${release}${shared_ext}$major' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 ;; 16166 16167*) 16168 dynamic_linker=no 16169 ;; 16170esac 16171{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16172echo "${ECHO_T}$dynamic_linker" >&6; } 16173test "$dynamic_linker" = no && can_build_shared=no 16174 16175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16176if test "$GCC" = yes; then 16177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16178fi 16179 16180{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16181echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16182hardcode_action_F77= 16183if test -n "$hardcode_libdir_flag_spec_F77" || \ 16184 test -n "$runpath_var_F77" || \ 16185 test "X$hardcode_automatic_F77" = "Xyes" ; then 16186 16187 # We can hardcode non-existant directories. 16188 if test "$hardcode_direct_F77" != no && 16189 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16190 # have to relink, otherwise we might link with an installed library 16191 # when we should be linking with a yet-to-be-installed one 16192 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16193 test "$hardcode_minus_L_F77" != no; then 16194 # Linking always hardcodes the temporary library directory. 16195 hardcode_action_F77=relink 16196 else 16197 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16198 hardcode_action_F77=immediate 16199 fi 16200else 16201 # We cannot hardcode anything, or else we can only hardcode existing 16202 # directories. 16203 hardcode_action_F77=unsupported 16204fi 16205{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16206echo "${ECHO_T}$hardcode_action_F77" >&6; } 16207 16208if test "$hardcode_action_F77" = relink; then 16209 # Fast installation is not supported 16210 enable_fast_install=no 16211elif test "$shlibpath_overrides_runpath" = yes || 16212 test "$enable_shared" = no; then 16213 # Fast installation is not necessary 16214 enable_fast_install=needless 16215fi 16216 16217 16218# The else clause should only fire when bootstrapping the 16219# libtool distribution, otherwise you forgot to ship ltmain.sh 16220# with your package, and you will get complaints that there are 16221# no rules to generate ltmain.sh. 16222if test -f "$ltmain"; then 16223 # See if we are running on zsh, and set the options which allow our commands through 16224 # without removal of \ escapes. 16225 if test -n "${ZSH_VERSION+set}" ; then 16226 setopt NO_GLOB_SUBST 16227 fi 16228 # Now quote all the things that may contain metacharacters while being 16229 # careful not to overquote the AC_SUBSTed values. We take copies of the 16230 # variables and quote the copies for generation of the libtool script. 16231 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16232 SED SHELL STRIP \ 16233 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16234 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16235 deplibs_check_method reload_flag reload_cmds need_locks \ 16236 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16237 lt_cv_sys_global_symbol_to_c_name_address \ 16238 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16239 old_postinstall_cmds old_postuninstall_cmds \ 16240 compiler_F77 \ 16241 CC_F77 \ 16242 LD_F77 \ 16243 lt_prog_compiler_wl_F77 \ 16244 lt_prog_compiler_pic_F77 \ 16245 lt_prog_compiler_static_F77 \ 16246 lt_prog_compiler_no_builtin_flag_F77 \ 16247 export_dynamic_flag_spec_F77 \ 16248 thread_safe_flag_spec_F77 \ 16249 whole_archive_flag_spec_F77 \ 16250 enable_shared_with_static_runtimes_F77 \ 16251 old_archive_cmds_F77 \ 16252 old_archive_from_new_cmds_F77 \ 16253 predep_objects_F77 \ 16254 postdep_objects_F77 \ 16255 predeps_F77 \ 16256 postdeps_F77 \ 16257 compiler_lib_search_path_F77 \ 16258 archive_cmds_F77 \ 16259 archive_expsym_cmds_F77 \ 16260 postinstall_cmds_F77 \ 16261 postuninstall_cmds_F77 \ 16262 old_archive_from_expsyms_cmds_F77 \ 16263 allow_undefined_flag_F77 \ 16264 no_undefined_flag_F77 \ 16265 export_symbols_cmds_F77 \ 16266 hardcode_libdir_flag_spec_F77 \ 16267 hardcode_libdir_flag_spec_ld_F77 \ 16268 hardcode_libdir_separator_F77 \ 16269 hardcode_automatic_F77 \ 16270 module_cmds_F77 \ 16271 module_expsym_cmds_F77 \ 16272 lt_cv_prog_compiler_c_o_F77 \ 16273 exclude_expsyms_F77 \ 16274 include_expsyms_F77; do 16275 16276 case $var in 16277 old_archive_cmds_F77 | \ 16278 old_archive_from_new_cmds_F77 | \ 16279 archive_cmds_F77 | \ 16280 archive_expsym_cmds_F77 | \ 16281 module_cmds_F77 | \ 16282 module_expsym_cmds_F77 | \ 16283 old_archive_from_expsyms_cmds_F77 | \ 16284 export_symbols_cmds_F77 | \ 16285 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16286 postinstall_cmds | postuninstall_cmds | \ 16287 old_postinstall_cmds | old_postuninstall_cmds | \ 16288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16289 # Double-quote double-evaled strings. 16290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16291 ;; 16292 *) 16293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16294 ;; 16295 esac 16296 done 16297 16298 case $lt_echo in 16299 *'\$0 --fallback-echo"') 16300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16301 ;; 16302 esac 16303 16304cfgfile="$ofile" 16305 16306 cat <<__EOF__ >> "$cfgfile" 16307# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16308 16309# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16310 16311# Shell to use when invoking shell scripts. 16312SHELL=$lt_SHELL 16313 16314# Whether or not to build shared libraries. 16315build_libtool_libs=$enable_shared 16316 16317# Whether or not to build static libraries. 16318build_old_libs=$enable_static 16319 16320# Whether or not to add -lc for building shared libraries. 16321build_libtool_need_lc=$archive_cmds_need_lc_F77 16322 16323# Whether or not to disallow shared libs when runtime libs are static 16324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16325 16326# Whether or not to optimize for fast installation. 16327fast_install=$enable_fast_install 16328 16329# The host system. 16330host_alias=$host_alias 16331host=$host 16332host_os=$host_os 16333 16334# The build system. 16335build_alias=$build_alias 16336build=$build 16337build_os=$build_os 16338 16339# An echo program that does not interpret backslashes. 16340echo=$lt_echo 16341 16342# The archiver. 16343AR=$lt_AR 16344AR_FLAGS=$lt_AR_FLAGS 16345 16346# A C compiler. 16347LTCC=$lt_LTCC 16348 16349# LTCC compiler flags. 16350LTCFLAGS=$lt_LTCFLAGS 16351 16352# A language-specific compiler. 16353CC=$lt_compiler_F77 16354 16355# Is the compiler the GNU C compiler? 16356with_gcc=$GCC_F77 16357 16358# An ERE matcher. 16359EGREP=$lt_EGREP 16360 16361# The linker used to build libraries. 16362LD=$lt_LD_F77 16363 16364# Whether we need hard or soft links. 16365LN_S=$lt_LN_S 16366 16367# A BSD-compatible nm program. 16368NM=$lt_NM 16369 16370# A symbol stripping program 16371STRIP=$lt_STRIP 16372 16373# Used to examine libraries when file_magic_cmd begins "file" 16374MAGIC_CMD=$MAGIC_CMD 16375 16376# Used on cygwin: DLL creation program. 16377DLLTOOL="$DLLTOOL" 16378 16379# Used on cygwin: object dumper. 16380OBJDUMP="$OBJDUMP" 16381 16382# Used on cygwin: assembler. 16383AS="$AS" 16384 16385# The name of the directory that contains temporary libtool files. 16386objdir=$objdir 16387 16388# How to create reloadable object files. 16389reload_flag=$lt_reload_flag 16390reload_cmds=$lt_reload_cmds 16391 16392# How to pass a linker flag through the compiler. 16393wl=$lt_lt_prog_compiler_wl_F77 16394 16395# Object file suffix (normally "o"). 16396objext="$ac_objext" 16397 16398# Old archive suffix (normally "a"). 16399libext="$libext" 16400 16401# Shared library suffix (normally ".so"). 16402shrext_cmds='$shrext_cmds' 16403 16404# Executable file suffix (normally ""). 16405exeext="$exeext" 16406 16407# Additional compiler flags for building library objects. 16408pic_flag=$lt_lt_prog_compiler_pic_F77 16409pic_mode=$pic_mode 16410 16411# What is the maximum length of a command? 16412max_cmd_len=$lt_cv_sys_max_cmd_len 16413 16414# Does compiler simultaneously support -c and -o options? 16415compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16416 16417# Must we lock files when doing compilation? 16418need_locks=$lt_need_locks 16419 16420# Do we need the lib prefix for modules? 16421need_lib_prefix=$need_lib_prefix 16422 16423# Do we need a version for libraries? 16424need_version=$need_version 16425 16426# Whether dlopen is supported. 16427dlopen_support=$enable_dlopen 16428 16429# Whether dlopen of programs is supported. 16430dlopen_self=$enable_dlopen_self 16431 16432# Whether dlopen of statically linked programs is supported. 16433dlopen_self_static=$enable_dlopen_self_static 16434 16435# Compiler flag to prevent dynamic linking. 16436link_static_flag=$lt_lt_prog_compiler_static_F77 16437 16438# Compiler flag to turn off builtin functions. 16439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16440 16441# Compiler flag to allow reflexive dlopens. 16442export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16443 16444# Compiler flag to generate shared objects directly from archives. 16445whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16446 16447# Compiler flag to generate thread-safe objects. 16448thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16449 16450# Library versioning type. 16451version_type=$version_type 16452 16453# Format of library name prefix. 16454libname_spec=$lt_libname_spec 16455 16456# List of archive names. First name is the real one, the rest are links. 16457# The last name is the one that the linker finds with -lNAME. 16458library_names_spec=$lt_library_names_spec 16459 16460# The coded name of the library, if different from the real name. 16461soname_spec=$lt_soname_spec 16462 16463# Commands used to build and install an old-style archive. 16464RANLIB=$lt_RANLIB 16465old_archive_cmds=$lt_old_archive_cmds_F77 16466old_postinstall_cmds=$lt_old_postinstall_cmds 16467old_postuninstall_cmds=$lt_old_postuninstall_cmds 16468 16469# Create an old-style archive from a shared archive. 16470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16471 16472# Create a temporary old-style archive to link instead of a shared archive. 16473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16474 16475# Commands used to build and install a shared archive. 16476archive_cmds=$lt_archive_cmds_F77 16477archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16478postinstall_cmds=$lt_postinstall_cmds 16479postuninstall_cmds=$lt_postuninstall_cmds 16480 16481# Commands used to build a loadable module (assumed same as above if empty) 16482module_cmds=$lt_module_cmds_F77 16483module_expsym_cmds=$lt_module_expsym_cmds_F77 16484 16485# Commands to strip libraries. 16486old_striplib=$lt_old_striplib 16487striplib=$lt_striplib 16488 16489# Dependencies to place before the objects being linked to create a 16490# shared library. 16491predep_objects=$lt_predep_objects_F77 16492 16493# Dependencies to place after the objects being linked to create a 16494# shared library. 16495postdep_objects=$lt_postdep_objects_F77 16496 16497# Dependencies to place before the objects being linked to create a 16498# shared library. 16499predeps=$lt_predeps_F77 16500 16501# Dependencies to place after the objects being linked to create a 16502# shared library. 16503postdeps=$lt_postdeps_F77 16504 16505# The library search path used internally by the compiler when linking 16506# a shared library. 16507compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16508 16509# Method to check whether dependent libraries are shared objects. 16510deplibs_check_method=$lt_deplibs_check_method 16511 16512# Command to use when deplibs_check_method == file_magic. 16513file_magic_cmd=$lt_file_magic_cmd 16514 16515# Flag that allows shared libraries with undefined symbols to be built. 16516allow_undefined_flag=$lt_allow_undefined_flag_F77 16517 16518# Flag that forces no undefined symbols. 16519no_undefined_flag=$lt_no_undefined_flag_F77 16520 16521# Commands used to finish a libtool library installation in a directory. 16522finish_cmds=$lt_finish_cmds 16523 16524# Same as above, but a single script fragment to be evaled but not shown. 16525finish_eval=$lt_finish_eval 16526 16527# Take the output of nm and produce a listing of raw symbols and C names. 16528global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16529 16530# Transform the output of nm in a proper C declaration 16531global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16532 16533# Transform the output of nm in a C name address pair 16534global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16535 16536# This is the shared library runtime path variable. 16537runpath_var=$runpath_var 16538 16539# This is the shared library path variable. 16540shlibpath_var=$shlibpath_var 16541 16542# Is shlibpath searched before the hard-coded library search path? 16543shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16544 16545# How to hardcode a shared library path into an executable. 16546hardcode_action=$hardcode_action_F77 16547 16548# Whether we should hardcode library paths into libraries. 16549hardcode_into_libs=$hardcode_into_libs 16550 16551# Flag to hardcode \$libdir into a binary during linking. 16552# This must work even if \$libdir does not exist. 16553hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16554 16555# If ld is used when linking, flag to hardcode \$libdir into 16556# a binary during linking. This must work even if \$libdir does 16557# not exist. 16558hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16559 16560# Whether we need a single -rpath flag with a separated argument. 16561hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16562 16563# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16564# resulting binary. 16565hardcode_direct=$hardcode_direct_F77 16566 16567# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16568# resulting binary. 16569hardcode_minus_L=$hardcode_minus_L_F77 16570 16571# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16572# the resulting binary. 16573hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16574 16575# Set to yes if building a shared library automatically hardcodes DIR into the library 16576# and all subsequent libraries and executables linked against it. 16577hardcode_automatic=$hardcode_automatic_F77 16578 16579# Variables whose values should be saved in libtool wrapper scripts and 16580# restored at relink time. 16581variables_saved_for_relink="$variables_saved_for_relink" 16582 16583# Whether libtool must link a program against all its dependency libraries. 16584link_all_deplibs=$link_all_deplibs_F77 16585 16586# Compile-time system search path for libraries 16587sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16588 16589# Run-time system search path for libraries 16590sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16591 16592# Fix the shell variable \$srcfile for the compiler. 16593fix_srcfile_path="$fix_srcfile_path_F77" 16594 16595# Set to yes if exported symbols are required. 16596always_export_symbols=$always_export_symbols_F77 16597 16598# The commands to list exported symbols. 16599export_symbols_cmds=$lt_export_symbols_cmds_F77 16600 16601# The commands to extract the exported symbol list from a shared archive. 16602extract_expsyms_cmds=$lt_extract_expsyms_cmds 16603 16604# Symbols that should not be listed in the preloaded symbols. 16605exclude_expsyms=$lt_exclude_expsyms_F77 16606 16607# Symbols that must always be exported. 16608include_expsyms=$lt_include_expsyms_F77 16609 16610# ### END LIBTOOL TAG CONFIG: $tagname 16611 16612__EOF__ 16613 16614 16615else 16616 # If there is no Makefile yet, we rely on a make rule to execute 16617 # `config.status --recheck' to rerun these tests and create the 16618 # libtool script then. 16619 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16620 if test -f "$ltmain_in"; then 16621 test -f Makefile && make "$ltmain" 16622 fi 16623fi 16624 16625 16626ac_ext=c 16627ac_cpp='$CPP $CPPFLAGS' 16628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16630ac_compiler_gnu=$ac_cv_c_compiler_gnu 16631 16632CC="$lt_save_CC" 16633 16634 else 16635 tagname="" 16636 fi 16637 ;; 16638 16639 GCJ) 16640 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16641 16642 16643# Source file extension for Java test sources. 16644ac_ext=java 16645 16646# Object file extension for compiled Java test sources. 16647objext=o 16648objext_GCJ=$objext 16649 16650# Code to be used in simple compile tests 16651lt_simple_compile_test_code="class foo {}\n" 16652 16653# Code to be used in simple link tests 16654lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16655 16656# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16657 16658# If no C compiler was specified, use CC. 16659LTCC=${LTCC-"$CC"} 16660 16661# If no C compiler flags were specified, use CFLAGS. 16662LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16663 16664# Allow CC to be a program name with arguments. 16665compiler=$CC 16666 16667 16668# save warnings/boilerplate of simple test code 16669ac_outfile=conftest.$ac_objext 16670printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16671eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16672_lt_compiler_boilerplate=`cat conftest.err` 16673$rm conftest* 16674 16675ac_outfile=conftest.$ac_objext 16676printf "$lt_simple_link_test_code" >conftest.$ac_ext 16677eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16678_lt_linker_boilerplate=`cat conftest.err` 16679$rm conftest* 16680 16681 16682# Allow CC to be a program name with arguments. 16683lt_save_CC="$CC" 16684CC=${GCJ-"gcj"} 16685compiler=$CC 16686compiler_GCJ=$CC 16687for cc_temp in $compiler""; do 16688 case $cc_temp in 16689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16691 \-*) ;; 16692 *) break;; 16693 esac 16694done 16695cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16696 16697 16698# GCJ did not exist at the time GCC didn't implicitly link libc in. 16699archive_cmds_need_lc_GCJ=no 16700 16701old_archive_cmds_GCJ=$old_archive_cmds 16702 16703 16704lt_prog_compiler_no_builtin_flag_GCJ= 16705 16706if test "$GCC" = yes; then 16707 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16708 16709 16710{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16711echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16712if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16713 echo $ECHO_N "(cached) $ECHO_C" >&6 16714else 16715 lt_cv_prog_compiler_rtti_exceptions=no 16716 ac_outfile=conftest.$ac_objext 16717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16718 lt_compiler_flag="-fno-rtti -fno-exceptions" 16719 # Insert the option either (1) after the last *FLAGS variable, or 16720 # (2) before a word containing "conftest.", or (3) at the end. 16721 # Note that $ac_compile itself does not contain backslashes and begins 16722 # with a dollar sign (not a hyphen), so the echo should work correctly. 16723 # The option is referenced via a variable to avoid confusing sed. 16724 lt_compile=`echo "$ac_compile" | $SED \ 16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16727 -e 's:$: $lt_compiler_flag:'` 16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5) 16729 (eval "$lt_compile" 2>conftest.err) 16730 ac_status=$? 16731 cat conftest.err >&5 16732 echo "$as_me:16732: \$? = $ac_status" >&5 16733 if (exit $ac_status) && test -s "$ac_outfile"; then 16734 # The compiler can only warn and ignore the option if not recognized 16735 # So say no if there are warnings other than the usual output. 16736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16739 lt_cv_prog_compiler_rtti_exceptions=yes 16740 fi 16741 fi 16742 $rm conftest* 16743 16744fi 16745{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16746echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16747 16748if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16749 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16750else 16751 : 16752fi 16753 16754fi 16755 16756lt_prog_compiler_wl_GCJ= 16757lt_prog_compiler_pic_GCJ= 16758lt_prog_compiler_static_GCJ= 16759 16760{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16761echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16762 16763 if test "$GCC" = yes; then 16764 lt_prog_compiler_wl_GCJ='-Wl,' 16765 lt_prog_compiler_static_GCJ='-static' 16766 16767 case $host_os in 16768 aix*) 16769 # All AIX code is PIC. 16770 if test "$host_cpu" = ia64; then 16771 # AIX 5 now supports IA64 processor 16772 lt_prog_compiler_static_GCJ='-Bstatic' 16773 fi 16774 ;; 16775 16776 amigaos*) 16777 # FIXME: we need at least 68020 code to build shared libraries, but 16778 # adding the `-m68020' flag to GCC prevents building anything better, 16779 # like `-m68040'. 16780 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16781 ;; 16782 16783 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16784 # PIC is the default for these OSes. 16785 ;; 16786 16787 mingw* | pw32* | os2*) 16788 # This hack is so that the source file can tell whether it is being 16789 # built for inclusion in a dll (and should export symbols for example). 16790 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16791 ;; 16792 16793 darwin* | rhapsody*) 16794 # PIC is the default on this platform 16795 # Common symbols not allowed in MH_DYLIB files 16796 lt_prog_compiler_pic_GCJ='-fno-common' 16797 ;; 16798 16799 interix3*) 16800 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16801 # Instead, we relocate shared libraries at runtime. 16802 ;; 16803 16804 msdosdjgpp*) 16805 # Just because we use GCC doesn't mean we suddenly get shared libraries 16806 # on systems that don't support them. 16807 lt_prog_compiler_can_build_shared_GCJ=no 16808 enable_shared=no 16809 ;; 16810 16811 sysv4*MP*) 16812 if test -d /usr/nec; then 16813 lt_prog_compiler_pic_GCJ=-Kconform_pic 16814 fi 16815 ;; 16816 16817 hpux*) 16818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16819 # not for PA HP-UX. 16820 case $host_cpu in 16821 hppa*64*|ia64*) 16822 # +Z the default 16823 ;; 16824 *) 16825 lt_prog_compiler_pic_GCJ='-fPIC' 16826 ;; 16827 esac 16828 ;; 16829 16830 *) 16831 lt_prog_compiler_pic_GCJ='-fPIC' 16832 ;; 16833 esac 16834 else 16835 # PORTME Check for flag to pass linker flags through the system compiler. 16836 case $host_os in 16837 aix*) 16838 lt_prog_compiler_wl_GCJ='-Wl,' 16839 if test "$host_cpu" = ia64; then 16840 # AIX 5 now supports IA64 processor 16841 lt_prog_compiler_static_GCJ='-Bstatic' 16842 else 16843 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16844 fi 16845 ;; 16846 darwin*) 16847 # PIC is the default on this platform 16848 # Common symbols not allowed in MH_DYLIB files 16849 case $cc_basename in 16850 xlc*) 16851 lt_prog_compiler_pic_GCJ='-qnocommon' 16852 lt_prog_compiler_wl_GCJ='-Wl,' 16853 ;; 16854 esac 16855 ;; 16856 16857 mingw* | pw32* | os2*) 16858 # This hack is so that the source file can tell whether it is being 16859 # built for inclusion in a dll (and should export symbols for example). 16860 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16861 ;; 16862 16863 hpux9* | hpux10* | hpux11*) 16864 lt_prog_compiler_wl_GCJ='-Wl,' 16865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16866 # not for PA HP-UX. 16867 case $host_cpu in 16868 hppa*64*|ia64*) 16869 # +Z the default 16870 ;; 16871 *) 16872 lt_prog_compiler_pic_GCJ='+Z' 16873 ;; 16874 esac 16875 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16876 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16877 ;; 16878 16879 irix5* | irix6* | nonstopux*) 16880 lt_prog_compiler_wl_GCJ='-Wl,' 16881 # PIC (with -KPIC) is the default. 16882 lt_prog_compiler_static_GCJ='-non_shared' 16883 ;; 16884 16885 newsos6) 16886 lt_prog_compiler_pic_GCJ='-KPIC' 16887 lt_prog_compiler_static_GCJ='-Bstatic' 16888 ;; 16889 16890 linux* | k*bsd*-gnu) 16891 case $cc_basename in 16892 icc* | ecc*) 16893 lt_prog_compiler_wl_GCJ='-Wl,' 16894 lt_prog_compiler_pic_GCJ='-KPIC' 16895 lt_prog_compiler_static_GCJ='-static' 16896 ;; 16897 pgcc* | pgf77* | pgf90* | pgf95*) 16898 # Portland Group compilers (*not* the Pentium gcc compiler, 16899 # which looks to be a dead project) 16900 lt_prog_compiler_wl_GCJ='-Wl,' 16901 lt_prog_compiler_pic_GCJ='-fpic' 16902 lt_prog_compiler_static_GCJ='-Bstatic' 16903 ;; 16904 ccc*) 16905 lt_prog_compiler_wl_GCJ='-Wl,' 16906 # All Alpha code is PIC. 16907 lt_prog_compiler_static_GCJ='-non_shared' 16908 ;; 16909 esac 16910 ;; 16911 16912 osf3* | osf4* | osf5*) 16913 lt_prog_compiler_wl_GCJ='-Wl,' 16914 # All OSF/1 code is PIC. 16915 lt_prog_compiler_static_GCJ='-non_shared' 16916 ;; 16917 16918 solaris*) 16919 lt_prog_compiler_pic_GCJ='-KPIC' 16920 lt_prog_compiler_static_GCJ='-Bstatic' 16921 case $cc_basename in 16922 f77* | f90* | f95*) 16923 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16924 *) 16925 lt_prog_compiler_wl_GCJ='-Wl,';; 16926 esac 16927 ;; 16928 16929 sunos4*) 16930 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16931 lt_prog_compiler_pic_GCJ='-PIC' 16932 lt_prog_compiler_static_GCJ='-Bstatic' 16933 ;; 16934 16935 sysv4 | sysv4.2uw2* | sysv4.3*) 16936 lt_prog_compiler_wl_GCJ='-Wl,' 16937 lt_prog_compiler_pic_GCJ='-KPIC' 16938 lt_prog_compiler_static_GCJ='-Bstatic' 16939 ;; 16940 16941 sysv4*MP*) 16942 if test -d /usr/nec ;then 16943 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16944 lt_prog_compiler_static_GCJ='-Bstatic' 16945 fi 16946 ;; 16947 16948 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16949 lt_prog_compiler_wl_GCJ='-Wl,' 16950 lt_prog_compiler_pic_GCJ='-KPIC' 16951 lt_prog_compiler_static_GCJ='-Bstatic' 16952 ;; 16953 16954 unicos*) 16955 lt_prog_compiler_wl_GCJ='-Wl,' 16956 lt_prog_compiler_can_build_shared_GCJ=no 16957 ;; 16958 16959 uts4*) 16960 lt_prog_compiler_pic_GCJ='-pic' 16961 lt_prog_compiler_static_GCJ='-Bstatic' 16962 ;; 16963 16964 *) 16965 lt_prog_compiler_can_build_shared_GCJ=no 16966 ;; 16967 esac 16968 fi 16969 16970{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16971echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16972 16973# 16974# Check to make sure the PIC flag actually works. 16975# 16976if test -n "$lt_prog_compiler_pic_GCJ"; then 16977 16978{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16979echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16980if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16981 echo $ECHO_N "(cached) $ECHO_C" >&6 16982else 16983 lt_prog_compiler_pic_works_GCJ=no 16984 ac_outfile=conftest.$ac_objext 16985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16986 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16987 # Insert the option either (1) after the last *FLAGS variable, or 16988 # (2) before a word containing "conftest.", or (3) at the end. 16989 # Note that $ac_compile itself does not contain backslashes and begins 16990 # with a dollar sign (not a hyphen), so the echo should work correctly. 16991 # The option is referenced via a variable to avoid confusing sed. 16992 lt_compile=`echo "$ac_compile" | $SED \ 16993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16995 -e 's:$: $lt_compiler_flag:'` 16996 (eval echo "\"\$as_me:16996: $lt_compile\"" >&5) 16997 (eval "$lt_compile" 2>conftest.err) 16998 ac_status=$? 16999 cat conftest.err >&5 17000 echo "$as_me:17000: \$? = $ac_status" >&5 17001 if (exit $ac_status) && test -s "$ac_outfile"; then 17002 # The compiler can only warn and ignore the option if not recognized 17003 # So say no if there are warnings other than the usual output. 17004 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17006 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17007 lt_prog_compiler_pic_works_GCJ=yes 17008 fi 17009 fi 17010 $rm conftest* 17011 17012fi 17013{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17014echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17015 17016if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17017 case $lt_prog_compiler_pic_GCJ in 17018 "" | " "*) ;; 17019 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17020 esac 17021else 17022 lt_prog_compiler_pic_GCJ= 17023 lt_prog_compiler_can_build_shared_GCJ=no 17024fi 17025 17026fi 17027case $host_os in 17028 # For platforms which do not support PIC, -DPIC is meaningless: 17029 *djgpp*) 17030 lt_prog_compiler_pic_GCJ= 17031 ;; 17032 *) 17033 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17034 ;; 17035esac 17036 17037# 17038# Check to make sure the static flag actually works. 17039# 17040wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17041{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17042echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17043if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17044 echo $ECHO_N "(cached) $ECHO_C" >&6 17045else 17046 lt_prog_compiler_static_works_GCJ=no 17047 save_LDFLAGS="$LDFLAGS" 17048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17049 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17051 # The linker can only warn and ignore the option if not recognized 17052 # So say no if there are warnings 17053 if test -s conftest.err; then 17054 # Append any errors to the config.log. 17055 cat conftest.err 1>&5 17056 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17058 if diff conftest.exp conftest.er2 >/dev/null; then 17059 lt_prog_compiler_static_works_GCJ=yes 17060 fi 17061 else 17062 lt_prog_compiler_static_works_GCJ=yes 17063 fi 17064 fi 17065 $rm conftest* 17066 LDFLAGS="$save_LDFLAGS" 17067 17068fi 17069{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17070echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17071 17072if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17073 : 17074else 17075 lt_prog_compiler_static_GCJ= 17076fi 17077 17078 17079{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17080echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17081if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17082 echo $ECHO_N "(cached) $ECHO_C" >&6 17083else 17084 lt_cv_prog_compiler_c_o_GCJ=no 17085 $rm -r conftest 2>/dev/null 17086 mkdir conftest 17087 cd conftest 17088 mkdir out 17089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17090 17091 lt_compiler_flag="-o out/conftest2.$ac_objext" 17092 # Insert the option either (1) after the last *FLAGS variable, or 17093 # (2) before a word containing "conftest.", or (3) at the end. 17094 # Note that $ac_compile itself does not contain backslashes and begins 17095 # with a dollar sign (not a hyphen), so the echo should work correctly. 17096 lt_compile=`echo "$ac_compile" | $SED \ 17097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17099 -e 's:$: $lt_compiler_flag:'` 17100 (eval echo "\"\$as_me:17100: $lt_compile\"" >&5) 17101 (eval "$lt_compile" 2>out/conftest.err) 17102 ac_status=$? 17103 cat out/conftest.err >&5 17104 echo "$as_me:17104: \$? = $ac_status" >&5 17105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17106 then 17107 # The compiler can only warn and ignore the option if not recognized 17108 # So say no if there are warnings 17109 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17112 lt_cv_prog_compiler_c_o_GCJ=yes 17113 fi 17114 fi 17115 chmod u+w . 2>&5 17116 $rm conftest* 17117 # SGI C++ compiler will create directory out/ii_files/ for 17118 # template instantiation 17119 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17120 $rm out/* && rmdir out 17121 cd .. 17122 rmdir conftest 17123 $rm conftest* 17124 17125fi 17126{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17127echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17128 17129 17130hard_links="nottested" 17131if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17132 # do not overwrite the value of need_locks provided by the user 17133 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17134echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17135 hard_links=yes 17136 $rm conftest* 17137 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17138 touch conftest.a 17139 ln conftest.a conftest.b 2>&5 || hard_links=no 17140 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17141 { echo "$as_me:$LINENO: result: $hard_links" >&5 17142echo "${ECHO_T}$hard_links" >&6; } 17143 if test "$hard_links" = no; then 17144 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17145echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17146 need_locks=warn 17147 fi 17148else 17149 need_locks=no 17150fi 17151 17152{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17153echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17154 17155 runpath_var= 17156 allow_undefined_flag_GCJ= 17157 enable_shared_with_static_runtimes_GCJ=no 17158 archive_cmds_GCJ= 17159 archive_expsym_cmds_GCJ= 17160 old_archive_From_new_cmds_GCJ= 17161 old_archive_from_expsyms_cmds_GCJ= 17162 export_dynamic_flag_spec_GCJ= 17163 whole_archive_flag_spec_GCJ= 17164 thread_safe_flag_spec_GCJ= 17165 hardcode_libdir_flag_spec_GCJ= 17166 hardcode_libdir_flag_spec_ld_GCJ= 17167 hardcode_libdir_separator_GCJ= 17168 hardcode_direct_GCJ=no 17169 hardcode_minus_L_GCJ=no 17170 hardcode_shlibpath_var_GCJ=unsupported 17171 link_all_deplibs_GCJ=unknown 17172 hardcode_automatic_GCJ=no 17173 module_cmds_GCJ= 17174 module_expsym_cmds_GCJ= 17175 always_export_symbols_GCJ=no 17176 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17177 # include_expsyms should be a list of space-separated symbols to be *always* 17178 # included in the symbol list 17179 include_expsyms_GCJ= 17180 # exclude_expsyms can be an extended regexp of symbols to exclude 17181 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17182 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17183 # as well as any symbol that contains `d'. 17184 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17186 # platforms (ab)use it in PIC code, but their linkers get confused if 17187 # the symbol is explicitly referenced. Since portable code cannot 17188 # rely on this symbol name, it's probably fine to never include it in 17189 # preloaded symbol tables. 17190 extract_expsyms_cmds= 17191 # Just being paranoid about ensuring that cc_basename is set. 17192 for cc_temp in $compiler""; do 17193 case $cc_temp in 17194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17196 \-*) ;; 17197 *) break;; 17198 esac 17199done 17200cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17201 17202 case $host_os in 17203 cygwin* | mingw* | pw32*) 17204 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17205 # When not using gcc, we currently assume that we are using 17206 # Microsoft Visual C++. 17207 if test "$GCC" != yes; then 17208 with_gnu_ld=no 17209 fi 17210 ;; 17211 interix*) 17212 # we just hope/assume this is gcc and not c89 (= MSVC++) 17213 with_gnu_ld=yes 17214 ;; 17215 openbsd*) 17216 with_gnu_ld=no 17217 ;; 17218 esac 17219 17220 ld_shlibs_GCJ=yes 17221 if test "$with_gnu_ld" = yes; then 17222 # If archive_cmds runs LD, not CC, wlarc should be empty 17223 wlarc='${wl}' 17224 17225 # Set some defaults for GNU ld with shared library support. These 17226 # are reset later if shared libraries are not supported. Putting them 17227 # here allows them to be overridden if necessary. 17228 runpath_var=LD_RUN_PATH 17229 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17230 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17231 # ancient GNU ld didn't support --whole-archive et. al. 17232 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17233 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17234 else 17235 whole_archive_flag_spec_GCJ= 17236 fi 17237 supports_anon_versioning=no 17238 case `$LD -v 2>/dev/null` in 17239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17242 *\ 2.11.*) ;; # other 2.11 versions 17243 *) supports_anon_versioning=yes ;; 17244 esac 17245 17246 # See if GNU ld supports shared libraries. 17247 case $host_os in 17248 aix3* | aix4* | aix5*) 17249 # On AIX/PPC, the GNU linker is very broken 17250 if test "$host_cpu" != ia64; then 17251 ld_shlibs_GCJ=no 17252 cat <<EOF 1>&2 17253 17254*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17255*** to be unable to reliably create shared libraries on AIX. 17256*** Therefore, libtool is disabling shared libraries support. If you 17257*** really care for shared libraries, you may want to modify your PATH 17258*** so that a non-GNU linker is found, and then restart. 17259 17260EOF 17261 fi 17262 ;; 17263 17264 amigaos*) 17265 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)' 17266 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17267 hardcode_minus_L_GCJ=yes 17268 17269 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17270 # that the semantics of dynamic libraries on AmigaOS, at least up 17271 # to version 4, is to share data among multiple programs linked 17272 # with the same dynamic library. Since this doesn't match the 17273 # behavior of shared libraries on other platforms, we can't use 17274 # them. 17275 ld_shlibs_GCJ=no 17276 ;; 17277 17278 beos*) 17279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17280 allow_undefined_flag_GCJ=unsupported 17281 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17282 # support --undefined. This deserves some investigation. FIXME 17283 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17284 else 17285 ld_shlibs_GCJ=no 17286 fi 17287 ;; 17288 17289 cygwin* | mingw* | pw32*) 17290 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17291 # as there is no search path for DLLs. 17292 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17293 allow_undefined_flag_GCJ=unsupported 17294 always_export_symbols_GCJ=no 17295 enable_shared_with_static_runtimes_GCJ=yes 17296 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17297 17298 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17299 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17300 # If the export-symbols file already is a .def file (1st line 17301 # is EXPORTS), use it as is; otherwise, prepend... 17302 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17303 cp $export_symbols $output_objdir/$soname.def; 17304 else 17305 echo EXPORTS > $output_objdir/$soname.def; 17306 cat $export_symbols >> $output_objdir/$soname.def; 17307 fi~ 17308 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17309 else 17310 ld_shlibs_GCJ=no 17311 fi 17312 ;; 17313 17314 interix3*) 17315 hardcode_direct_GCJ=no 17316 hardcode_shlibpath_var_GCJ=no 17317 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17318 export_dynamic_flag_spec_GCJ='${wl}-E' 17319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17320 # Instead, shared libraries are loaded at an image base (0x10000000 by 17321 # default) and relocated if they conflict, which is a slow very memory 17322 # consuming and fragmenting process. To avoid this, we pick a random, 17323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17324 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17325 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' 17326 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' 17327 ;; 17328 17329 linux* | k*bsd*-gnu) 17330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17331 tmp_addflag= 17332 case $cc_basename,$host_cpu in 17333 pgcc*) # Portland Group C compiler 17334 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' 17335 tmp_addflag=' $pic_flag' 17336 ;; 17337 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17338 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' 17339 tmp_addflag=' $pic_flag -Mnomain' ;; 17340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17341 tmp_addflag=' -i_dynamic' ;; 17342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17343 tmp_addflag=' -i_dynamic -nofor_main' ;; 17344 ifc* | ifort*) # Intel Fortran compiler 17345 tmp_addflag=' -nofor_main' ;; 17346 esac 17347 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17348 17349 if test $supports_anon_versioning = yes; then 17350 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17352 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17353 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17354 fi 17355 link_all_deplibs_GCJ=no 17356 else 17357 ld_shlibs_GCJ=no 17358 fi 17359 ;; 17360 17361 netbsd* | netbsdelf*-gnu) 17362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17363 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17364 wlarc= 17365 else 17366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17367 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17368 fi 17369 ;; 17370 17371 solaris*) 17372 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17373 ld_shlibs_GCJ=no 17374 cat <<EOF 1>&2 17375 17376*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17377*** create shared libraries on Solaris systems. Therefore, libtool 17378*** is disabling shared libraries support. We urge you to upgrade GNU 17379*** binutils to release 2.9.1 or newer. Another option is to modify 17380*** your PATH or compiler configuration so that the native linker is 17381*** used, and then restart. 17382 17383EOF 17384 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17385 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17386 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17387 else 17388 ld_shlibs_GCJ=no 17389 fi 17390 ;; 17391 17392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17393 case `$LD -v 2>&1` in 17394 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17395 ld_shlibs_GCJ=no 17396 cat <<_LT_EOF 1>&2 17397 17398*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17399*** reliably create shared libraries on SCO systems. Therefore, libtool 17400*** is disabling shared libraries support. We urge you to upgrade GNU 17401*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17402*** your PATH or compiler configuration so that the native linker is 17403*** used, and then restart. 17404 17405_LT_EOF 17406 ;; 17407 *) 17408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17409 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17412 else 17413 ld_shlibs_GCJ=no 17414 fi 17415 ;; 17416 esac 17417 ;; 17418 17419 sunos4*) 17420 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17421 wlarc= 17422 hardcode_direct_GCJ=yes 17423 hardcode_shlibpath_var_GCJ=no 17424 ;; 17425 17426 *) 17427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17429 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17430 else 17431 ld_shlibs_GCJ=no 17432 fi 17433 ;; 17434 esac 17435 17436 if test "$ld_shlibs_GCJ" = no; then 17437 runpath_var= 17438 hardcode_libdir_flag_spec_GCJ= 17439 export_dynamic_flag_spec_GCJ= 17440 whole_archive_flag_spec_GCJ= 17441 fi 17442 else 17443 # PORTME fill in a description of your system's linker (not GNU ld) 17444 case $host_os in 17445 aix3*) 17446 allow_undefined_flag_GCJ=unsupported 17447 always_export_symbols_GCJ=yes 17448 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' 17449 # Note: this linker hardcodes the directories in LIBPATH if there 17450 # are no directories specified by -L. 17451 hardcode_minus_L_GCJ=yes 17452 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17453 # Neither direct hardcoding nor static linking is supported with a 17454 # broken collect2. 17455 hardcode_direct_GCJ=unsupported 17456 fi 17457 ;; 17458 17459 aix4* | aix5*) 17460 if test "$host_cpu" = ia64; then 17461 # On IA64, the linker does run time linking by default, so we don't 17462 # have to do anything special. 17463 aix_use_runtimelinking=no 17464 exp_sym_flag='-Bexport' 17465 no_entry_flag="" 17466 else 17467 # If we're using GNU nm, then we don't want the "-C" option. 17468 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17469 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17470 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' 17471 else 17472 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' 17473 fi 17474 aix_use_runtimelinking=no 17475 17476 # Test if we are trying to use run time linking or normal 17477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17478 # need to do runtime linking. 17479 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17480 for ld_flag in $LDFLAGS; do 17481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17482 aix_use_runtimelinking=yes 17483 break 17484 fi 17485 done 17486 ;; 17487 esac 17488 17489 exp_sym_flag='-bexport' 17490 no_entry_flag='-bnoentry' 17491 fi 17492 17493 # When large executables or shared objects are built, AIX ld can 17494 # have problems creating the table of contents. If linking a library 17495 # or program results in "error TOC overflow" add -mminimal-toc to 17496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17498 17499 archive_cmds_GCJ='' 17500 hardcode_direct_GCJ=yes 17501 hardcode_libdir_separator_GCJ=':' 17502 link_all_deplibs_GCJ=yes 17503 17504 if test "$GCC" = yes; then 17505 case $host_os in aix4.[012]|aix4.[012].*) 17506 # We only want to do this on AIX 4.2 and lower, the check 17507 # below for broken collect2 doesn't work under 4.3+ 17508 collect2name=`${CC} -print-prog-name=collect2` 17509 if test -f "$collect2name" && \ 17510 strings "$collect2name" | grep resolve_lib_name >/dev/null 17511 then 17512 # We have reworked collect2 17513 hardcode_direct_GCJ=yes 17514 else 17515 # We have old collect2 17516 hardcode_direct_GCJ=unsupported 17517 # It fails to find uninstalled libraries when the uninstalled 17518 # path is not listed in the libpath. Setting hardcode_minus_L 17519 # to unsupported forces relinking 17520 hardcode_minus_L_GCJ=yes 17521 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17522 hardcode_libdir_separator_GCJ= 17523 fi 17524 ;; 17525 esac 17526 shared_flag='-shared' 17527 if test "$aix_use_runtimelinking" = yes; then 17528 shared_flag="$shared_flag "'${wl}-G' 17529 fi 17530 else 17531 # not using gcc 17532 if test "$host_cpu" = ia64; then 17533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17534 # chokes on -Wl,-G. The following line is correct: 17535 shared_flag='-G' 17536 else 17537 if test "$aix_use_runtimelinking" = yes; then 17538 shared_flag='${wl}-G' 17539 else 17540 shared_flag='${wl}-bM:SRE' 17541 fi 17542 fi 17543 fi 17544 17545 # It seems that -bexpall does not export symbols beginning with 17546 # underscore (_), so it is better to generate a list of symbols to export. 17547 always_export_symbols_GCJ=yes 17548 if test "$aix_use_runtimelinking" = yes; then 17549 # Warning - without using the other runtime loading flags (-brtl), 17550 # -berok will link without error, but may produce a broken library. 17551 allow_undefined_flag_GCJ='-berok' 17552 # Determine the default libpath from the value encoded in an empty executable. 17553 cat >conftest.$ac_ext <<_ACEOF 17554/* confdefs.h. */ 17555_ACEOF 17556cat confdefs.h >>conftest.$ac_ext 17557cat >>conftest.$ac_ext <<_ACEOF 17558/* end confdefs.h. */ 17559 17560int 17561main () 17562{ 17563 17564 ; 17565 return 0; 17566} 17567_ACEOF 17568rm -f conftest.$ac_objext conftest$ac_exeext 17569if { (ac_try="$ac_link" 17570case "(($ac_try" in 17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17572 *) ac_try_echo=$ac_try;; 17573esac 17574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17575 (eval "$ac_link") 2>conftest.er1 17576 ac_status=$? 17577 grep -v '^ *+' conftest.er1 >conftest.err 17578 rm -f conftest.er1 17579 cat conftest.err >&5 17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17581 (exit $ac_status); } && { 17582 test -z "$ac_c_werror_flag" || 17583 test ! -s conftest.err 17584 } && test -s conftest$ac_exeext && 17585 $as_test_x conftest$ac_exeext; then 17586 17587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17588}'` 17589# Check for a 64-bit object if we didn't find anything. 17590if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17591}'`; fi 17592else 17593 echo "$as_me: failed program was:" >&5 17594sed 's/^/| /' conftest.$ac_ext >&5 17595 17596 17597fi 17598 17599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17600 conftest$ac_exeext conftest.$ac_ext 17601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17602 17603 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17604 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" 17605 else 17606 if test "$host_cpu" = ia64; then 17607 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17608 allow_undefined_flag_GCJ="-z nodefs" 17609 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" 17610 else 17611 # Determine the default libpath from the value encoded in an empty executable. 17612 cat >conftest.$ac_ext <<_ACEOF 17613/* confdefs.h. */ 17614_ACEOF 17615cat confdefs.h >>conftest.$ac_ext 17616cat >>conftest.$ac_ext <<_ACEOF 17617/* end confdefs.h. */ 17618 17619int 17620main () 17621{ 17622 17623 ; 17624 return 0; 17625} 17626_ACEOF 17627rm -f conftest.$ac_objext conftest$ac_exeext 17628if { (ac_try="$ac_link" 17629case "(($ac_try" in 17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17631 *) ac_try_echo=$ac_try;; 17632esac 17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17634 (eval "$ac_link") 2>conftest.er1 17635 ac_status=$? 17636 grep -v '^ *+' conftest.er1 >conftest.err 17637 rm -f conftest.er1 17638 cat conftest.err >&5 17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17640 (exit $ac_status); } && { 17641 test -z "$ac_c_werror_flag" || 17642 test ! -s conftest.err 17643 } && test -s conftest$ac_exeext && 17644 $as_test_x conftest$ac_exeext; then 17645 17646aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17647}'` 17648# Check for a 64-bit object if we didn't find anything. 17649if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17650}'`; fi 17651else 17652 echo "$as_me: failed program was:" >&5 17653sed 's/^/| /' conftest.$ac_ext >&5 17654 17655 17656fi 17657 17658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17659 conftest$ac_exeext conftest.$ac_ext 17660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17661 17662 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17663 # Warning - without using the other run time loading flags, 17664 # -berok will link without error, but may produce a broken library. 17665 no_undefined_flag_GCJ=' ${wl}-bernotok' 17666 allow_undefined_flag_GCJ=' ${wl}-berok' 17667 # Exported symbols can be pulled into shared objects from archives 17668 whole_archive_flag_spec_GCJ='$convenience' 17669 archive_cmds_need_lc_GCJ=yes 17670 # This is similar to how AIX traditionally builds its shared libraries. 17671 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' 17672 fi 17673 fi 17674 ;; 17675 17676 amigaos*) 17677 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)' 17678 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17679 hardcode_minus_L_GCJ=yes 17680 # see comment about different semantics on the GNU ld section 17681 ld_shlibs_GCJ=no 17682 ;; 17683 17684 bsdi[45]*) 17685 export_dynamic_flag_spec_GCJ=-rdynamic 17686 ;; 17687 17688 cygwin* | mingw* | pw32*) 17689 # When not using gcc, we currently assume that we are using 17690 # Microsoft Visual C++. 17691 # hardcode_libdir_flag_spec is actually meaningless, as there is 17692 # no search path for DLLs. 17693 hardcode_libdir_flag_spec_GCJ=' ' 17694 allow_undefined_flag_GCJ=unsupported 17695 # Tell ltmain to make .lib files, not .a files. 17696 libext=lib 17697 # Tell ltmain to make .dll files, not .so files. 17698 shrext_cmds=".dll" 17699 # FIXME: Setting linknames here is a bad hack. 17700 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17701 # The linker will automatically build a .lib file if we build a DLL. 17702 old_archive_From_new_cmds_GCJ='true' 17703 # FIXME: Should let the user specify the lib program. 17704 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17705 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17706 enable_shared_with_static_runtimes_GCJ=yes 17707 ;; 17708 17709 darwin* | rhapsody*) 17710 case $host_os in 17711 rhapsody* | darwin1.[012]) 17712 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17713 ;; 17714 *) # Darwin 1.3 on 17715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17716 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17717 else 17718 case ${MACOSX_DEPLOYMENT_TARGET} in 17719 10.[012]) 17720 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17721 ;; 17722 10.*) 17723 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17724 ;; 17725 esac 17726 fi 17727 ;; 17728 esac 17729 archive_cmds_need_lc_GCJ=no 17730 hardcode_direct_GCJ=no 17731 hardcode_automatic_GCJ=yes 17732 hardcode_shlibpath_var_GCJ=unsupported 17733 whole_archive_flag_spec_GCJ='' 17734 link_all_deplibs_GCJ=yes 17735 if test "$GCC" = yes ; then 17736 output_verbose_link_cmd='echo' 17737 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17738 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17740 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}' 17741 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}' 17742 else 17743 case $cc_basename in 17744 xlc*) 17745 output_verbose_link_cmd='echo' 17746 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17747 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17749 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17750 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}' 17751 ;; 17752 *) 17753 ld_shlibs_GCJ=no 17754 ;; 17755 esac 17756 fi 17757 ;; 17758 17759 dgux*) 17760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17761 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17762 hardcode_shlibpath_var_GCJ=no 17763 ;; 17764 17765 freebsd1*) 17766 ld_shlibs_GCJ=no 17767 ;; 17768 17769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17770 # support. Future versions do this automatically, but an explicit c++rt0.o 17771 # does not break anything, and helps significantly (at the cost of a little 17772 # extra space). 17773 freebsd2.2*) 17774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17775 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17776 hardcode_direct_GCJ=yes 17777 hardcode_shlibpath_var_GCJ=no 17778 ;; 17779 17780 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17781 freebsd2*) 17782 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17783 hardcode_direct_GCJ=yes 17784 hardcode_minus_L_GCJ=yes 17785 hardcode_shlibpath_var_GCJ=no 17786 ;; 17787 17788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17789 freebsd* | dragonfly*) 17790 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17791 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17792 hardcode_direct_GCJ=yes 17793 hardcode_shlibpath_var_GCJ=no 17794 ;; 17795 17796 hpux9*) 17797 if test "$GCC" = yes; then 17798 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' 17799 else 17800 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' 17801 fi 17802 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17803 hardcode_libdir_separator_GCJ=: 17804 hardcode_direct_GCJ=yes 17805 17806 # hardcode_minus_L: Not really in the search PATH, 17807 # but as the default location of the library. 17808 hardcode_minus_L_GCJ=yes 17809 export_dynamic_flag_spec_GCJ='${wl}-E' 17810 ;; 17811 17812 hpux10*) 17813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17814 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17815 else 17816 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17817 fi 17818 if test "$with_gnu_ld" = no; then 17819 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17820 hardcode_libdir_separator_GCJ=: 17821 17822 hardcode_direct_GCJ=yes 17823 export_dynamic_flag_spec_GCJ='${wl}-E' 17824 17825 # hardcode_minus_L: Not really in the search PATH, 17826 # but as the default location of the library. 17827 hardcode_minus_L_GCJ=yes 17828 fi 17829 ;; 17830 17831 hpux11*) 17832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17833 case $host_cpu in 17834 hppa*64*) 17835 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17836 ;; 17837 ia64*) 17838 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17839 ;; 17840 *) 17841 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17842 ;; 17843 esac 17844 else 17845 case $host_cpu in 17846 hppa*64*) 17847 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17848 ;; 17849 ia64*) 17850 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17851 ;; 17852 *) 17853 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17854 ;; 17855 esac 17856 fi 17857 if test "$with_gnu_ld" = no; then 17858 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17859 hardcode_libdir_separator_GCJ=: 17860 17861 case $host_cpu in 17862 hppa*64*|ia64*) 17863 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17864 hardcode_direct_GCJ=no 17865 hardcode_shlibpath_var_GCJ=no 17866 ;; 17867 *) 17868 hardcode_direct_GCJ=yes 17869 export_dynamic_flag_spec_GCJ='${wl}-E' 17870 17871 # hardcode_minus_L: Not really in the search PATH, 17872 # but as the default location of the library. 17873 hardcode_minus_L_GCJ=yes 17874 ;; 17875 esac 17876 fi 17877 ;; 17878 17879 irix5* | irix6* | nonstopux*) 17880 if test "$GCC" = yes; then 17881 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' 17882 else 17883 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' 17884 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17885 fi 17886 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17887 hardcode_libdir_separator_GCJ=: 17888 link_all_deplibs_GCJ=yes 17889 ;; 17890 17891 netbsd* | netbsdelf*-gnu) 17892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17893 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17894 else 17895 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17896 fi 17897 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17898 hardcode_direct_GCJ=yes 17899 hardcode_shlibpath_var_GCJ=no 17900 ;; 17901 17902 newsos6) 17903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17904 hardcode_direct_GCJ=yes 17905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17906 hardcode_libdir_separator_GCJ=: 17907 hardcode_shlibpath_var_GCJ=no 17908 ;; 17909 17910 openbsd*) 17911 hardcode_direct_GCJ=yes 17912 hardcode_shlibpath_var_GCJ=no 17913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17914 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17915 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17917 export_dynamic_flag_spec_GCJ='${wl}-E' 17918 else 17919 case $host_os in 17920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17921 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17922 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17923 ;; 17924 *) 17925 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17927 ;; 17928 esac 17929 fi 17930 ;; 17931 17932 os2*) 17933 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17934 hardcode_minus_L_GCJ=yes 17935 allow_undefined_flag_GCJ=unsupported 17936 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' 17937 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17938 ;; 17939 17940 osf3*) 17941 if test "$GCC" = yes; then 17942 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17943 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' 17944 else 17945 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17946 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' 17947 fi 17948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17949 hardcode_libdir_separator_GCJ=: 17950 ;; 17951 17952 osf4* | osf5*) # as osf3* with the addition of -msym flag 17953 if test "$GCC" = yes; then 17954 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17955 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' 17956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17957 else 17958 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17959 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' 17960 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~ 17961 $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' 17962 17963 # Both c and cxx compiler support -rpath directly 17964 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17965 fi 17966 hardcode_libdir_separator_GCJ=: 17967 ;; 17968 17969 solaris*) 17970 no_undefined_flag_GCJ=' -z text' 17971 if test "$GCC" = yes; then 17972 wlarc='${wl}' 17973 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17974 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17976 else 17977 wlarc='' 17978 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17979 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17981 fi 17982 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17983 hardcode_shlibpath_var_GCJ=no 17984 case $host_os in 17985 solaris2.[0-5] | solaris2.[0-5].*) ;; 17986 *) 17987 # The compiler driver will combine linker options so we 17988 # cannot just pass the convience library names through 17989 # without $wl, iff we do not link with $LD. 17990 # Luckily, gcc supports the same syntax we need for Sun Studio. 17991 # Supported since Solaris 2.6 (maybe 2.5.1?) 17992 case $wlarc in 17993 '') 17994 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17995 *) 17996 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17997 esac ;; 17998 esac 17999 link_all_deplibs_GCJ=yes 18000 ;; 18001 18002 sunos4*) 18003 if test "x$host_vendor" = xsequent; then 18004 # Use $CC to link under sequent, because it throws in some extra .o 18005 # files that make .init and .fini sections work. 18006 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18007 else 18008 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18009 fi 18010 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18011 hardcode_direct_GCJ=yes 18012 hardcode_minus_L_GCJ=yes 18013 hardcode_shlibpath_var_GCJ=no 18014 ;; 18015 18016 sysv4) 18017 case $host_vendor in 18018 sni) 18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18020 hardcode_direct_GCJ=yes # is this really true??? 18021 ;; 18022 siemens) 18023 ## LD is ld it makes a PLAMLIB 18024 ## CC just makes a GrossModule. 18025 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18026 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18027 hardcode_direct_GCJ=no 18028 ;; 18029 motorola) 18030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18031 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18032 ;; 18033 esac 18034 runpath_var='LD_RUN_PATH' 18035 hardcode_shlibpath_var_GCJ=no 18036 ;; 18037 18038 sysv4.3*) 18039 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18040 hardcode_shlibpath_var_GCJ=no 18041 export_dynamic_flag_spec_GCJ='-Bexport' 18042 ;; 18043 18044 sysv4*MP*) 18045 if test -d /usr/nec; then 18046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18047 hardcode_shlibpath_var_GCJ=no 18048 runpath_var=LD_RUN_PATH 18049 hardcode_runpath_var=yes 18050 ld_shlibs_GCJ=yes 18051 fi 18052 ;; 18053 18054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18055 no_undefined_flag_GCJ='${wl}-z,text' 18056 archive_cmds_need_lc_GCJ=no 18057 hardcode_shlibpath_var_GCJ=no 18058 runpath_var='LD_RUN_PATH' 18059 18060 if test "$GCC" = yes; then 18061 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18062 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18063 else 18064 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18065 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18066 fi 18067 ;; 18068 18069 sysv5* | sco3.2v5* | sco5v6*) 18070 # Note: We can NOT use -z defs as we might desire, because we do not 18071 # link with -lc, and that would cause any symbols used from libc to 18072 # always be unresolved, which means just about no library would 18073 # ever link correctly. If we're not using GNU ld we use -z text 18074 # though, which does catch some bad symbols but isn't as heavy-handed 18075 # as -z defs. 18076 no_undefined_flag_GCJ='${wl}-z,text' 18077 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18078 archive_cmds_need_lc_GCJ=no 18079 hardcode_shlibpath_var_GCJ=no 18080 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18081 hardcode_libdir_separator_GCJ=':' 18082 link_all_deplibs_GCJ=yes 18083 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18084 runpath_var='LD_RUN_PATH' 18085 18086 if test "$GCC" = yes; then 18087 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18088 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18089 else 18090 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18091 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18092 fi 18093 ;; 18094 18095 uts4*) 18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18097 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18098 hardcode_shlibpath_var_GCJ=no 18099 ;; 18100 18101 *) 18102 ld_shlibs_GCJ=no 18103 ;; 18104 esac 18105 fi 18106 18107{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18108echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18109test "$ld_shlibs_GCJ" = no && can_build_shared=no 18110 18111# 18112# Do we need to explicitly link libc? 18113# 18114case "x$archive_cmds_need_lc_GCJ" in 18115x|xyes) 18116 # Assume -lc should be added 18117 archive_cmds_need_lc_GCJ=yes 18118 18119 if test "$enable_shared" = yes && test "$GCC" = yes; then 18120 case $archive_cmds_GCJ in 18121 *'~'*) 18122 # FIXME: we may have to deal with multi-command sequences. 18123 ;; 18124 '$CC '*) 18125 # Test whether the compiler implicitly links with -lc since on some 18126 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18127 # to ld, don't add -lc before -lgcc. 18128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18129echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18130 $rm conftest* 18131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18132 18133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18134 (eval $ac_compile) 2>&5 18135 ac_status=$? 18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18137 (exit $ac_status); } 2>conftest.err; then 18138 soname=conftest 18139 lib=conftest 18140 libobjs=conftest.$ac_objext 18141 deplibs= 18142 wl=$lt_prog_compiler_wl_GCJ 18143 pic_flag=$lt_prog_compiler_pic_GCJ 18144 compiler_flags=-v 18145 linker_flags=-v 18146 verstring= 18147 output_objdir=. 18148 libname=conftest 18149 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18150 allow_undefined_flag_GCJ= 18151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18152 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18153 ac_status=$? 18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18155 (exit $ac_status); } 18156 then 18157 archive_cmds_need_lc_GCJ=no 18158 else 18159 archive_cmds_need_lc_GCJ=yes 18160 fi 18161 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18162 else 18163 cat conftest.err 1>&5 18164 fi 18165 $rm conftest* 18166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18167echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18168 ;; 18169 esac 18170 fi 18171 ;; 18172esac 18173 18174{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18175echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18176library_names_spec= 18177libname_spec='lib$name' 18178soname_spec= 18179shrext_cmds=".so" 18180postinstall_cmds= 18181postuninstall_cmds= 18182finish_cmds= 18183finish_eval= 18184shlibpath_var= 18185shlibpath_overrides_runpath=unknown 18186version_type=none 18187dynamic_linker="$host_os ld.so" 18188sys_lib_dlsearch_path_spec="/lib /usr/lib" 18189if test "$GCC" = yes; then 18190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18192 # if the path contains ";" then we assume it to be the separator 18193 # otherwise default to the standard path separator (i.e. ":") - it is 18194 # assumed that no part of a normal pathname contains ";" but that should 18195 # okay in the real world where ";" in dirpaths is itself problematic. 18196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18197 else 18198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18199 fi 18200else 18201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18202fi 18203need_lib_prefix=unknown 18204hardcode_into_libs=no 18205 18206# when you set need_version to no, make sure it does not cause -set_version 18207# flags to be left without arguments 18208need_version=unknown 18209 18210case $host_os in 18211aix3*) 18212 version_type=linux 18213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18214 shlibpath_var=LIBPATH 18215 18216 # AIX 3 has no versioning support, so we append a major version to the name. 18217 soname_spec='${libname}${release}${shared_ext}$major' 18218 ;; 18219 18220aix4* | aix5*) 18221 version_type=linux 18222 need_lib_prefix=no 18223 need_version=no 18224 hardcode_into_libs=yes 18225 if test "$host_cpu" = ia64; then 18226 # AIX 5 supports IA64 18227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18228 shlibpath_var=LD_LIBRARY_PATH 18229 else 18230 # With GCC up to 2.95.x, collect2 would create an import file 18231 # for dependence libraries. The import file would start with 18232 # the line `#! .'. This would cause the generated library to 18233 # depend on `.', always an invalid library. This was fixed in 18234 # development snapshots of GCC prior to 3.0. 18235 case $host_os in 18236 aix4 | aix4.[01] | aix4.[01].*) 18237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18238 echo ' yes ' 18239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18240 : 18241 else 18242 can_build_shared=no 18243 fi 18244 ;; 18245 esac 18246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18247 # soname into executable. Probably we can add versioning support to 18248 # collect2, so additional links can be useful in future. 18249 if test "$aix_use_runtimelinking" = yes; then 18250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18251 # instead of lib<name>.a to let people know that these are not 18252 # typical AIX shared libraries. 18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18254 else 18255 # We preserve .a as extension for shared libraries through AIX4.2 18256 # and later when we are not doing run time linking. 18257 library_names_spec='${libname}${release}.a $libname.a' 18258 soname_spec='${libname}${release}${shared_ext}$major' 18259 fi 18260 shlibpath_var=LIBPATH 18261 fi 18262 ;; 18263 18264amigaos*) 18265 library_names_spec='$libname.ixlibrary $libname.a' 18266 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18267 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' 18268 ;; 18269 18270beos*) 18271 library_names_spec='${libname}${shared_ext}' 18272 dynamic_linker="$host_os ld.so" 18273 shlibpath_var=LIBRARY_PATH 18274 ;; 18275 18276bsdi[45]*) 18277 version_type=linux 18278 need_version=no 18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18280 soname_spec='${libname}${release}${shared_ext}$major' 18281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18282 shlibpath_var=LD_LIBRARY_PATH 18283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18285 # the default ld.so.conf also contains /usr/contrib/lib and 18286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18287 # libtool to hard-code these into programs 18288 ;; 18289 18290cygwin* | mingw* | pw32*) 18291 version_type=windows 18292 shrext_cmds=".dll" 18293 need_version=no 18294 need_lib_prefix=no 18295 18296 case $GCC,$host_os in 18297 yes,cygwin* | yes,mingw* | yes,pw32*) 18298 library_names_spec='$libname.dll.a' 18299 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18300 postinstall_cmds='base_file=`basename \${file}`~ 18301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18302 dldir=$destdir/`dirname \$dlpath`~ 18303 test -d \$dldir || mkdir -p \$dldir~ 18304 $install_prog $dir/$dlname \$dldir/$dlname~ 18305 chmod a+x \$dldir/$dlname' 18306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18307 dlpath=$dir/\$dldll~ 18308 $rm \$dlpath' 18309 shlibpath_overrides_runpath=yes 18310 18311 case $host_os in 18312 cygwin*) 18313 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18316 ;; 18317 mingw*) 18318 # MinGW DLLs use traditional 'lib' prefix 18319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18322 # It is most probably a Windows format PATH printed by 18323 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18324 # path with ; separators, and with drive letters. We can handle the 18325 # drive letters (cygwin fileutils understands them), so leave them, 18326 # especially as we might pass files found there to a mingw objdump, 18327 # which wouldn't understand a cygwinified path. Ahh. 18328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18329 else 18330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18331 fi 18332 ;; 18333 pw32*) 18334 # pw32 DLLs use 'pw' prefix rather than 'lib' 18335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18336 ;; 18337 esac 18338 ;; 18339 18340 *) 18341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18342 ;; 18343 esac 18344 dynamic_linker='Win32 ld.exe' 18345 # FIXME: first we should search . and the directory the executable is in 18346 shlibpath_var=PATH 18347 ;; 18348 18349darwin* | rhapsody*) 18350 dynamic_linker="$host_os dyld" 18351 version_type=darwin 18352 need_lib_prefix=no 18353 need_version=no 18354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18355 soname_spec='${libname}${release}${major}$shared_ext' 18356 shlibpath_overrides_runpath=yes 18357 shlibpath_var=DYLD_LIBRARY_PATH 18358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18360 if test "$GCC" = yes; then 18361 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18362 else 18363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18364 fi 18365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18366 ;; 18367 18368dgux*) 18369 version_type=linux 18370 need_lib_prefix=no 18371 need_version=no 18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18373 soname_spec='${libname}${release}${shared_ext}$major' 18374 shlibpath_var=LD_LIBRARY_PATH 18375 ;; 18376 18377freebsd1*) 18378 dynamic_linker=no 18379 ;; 18380 18381freebsd* | dragonfly*) 18382 # DragonFly does not have aout. When/if they implement a new 18383 # versioning mechanism, adjust this. 18384 if test -x /usr/bin/objformat; then 18385 objformat=`/usr/bin/objformat` 18386 else 18387 case $host_os in 18388 freebsd[123]*) objformat=aout ;; 18389 *) objformat=elf ;; 18390 esac 18391 fi 18392 version_type=freebsd-$objformat 18393 case $version_type in 18394 freebsd-elf*) 18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18396 need_version=no 18397 need_lib_prefix=no 18398 ;; 18399 freebsd-*) 18400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18401 need_version=yes 18402 ;; 18403 esac 18404 shlibpath_var=LD_LIBRARY_PATH 18405 case $host_os in 18406 freebsd2*) 18407 shlibpath_overrides_runpath=yes 18408 ;; 18409 freebsd3.[01]* | freebsdelf3.[01]*) 18410 shlibpath_overrides_runpath=yes 18411 hardcode_into_libs=yes 18412 ;; 18413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18415 shlibpath_overrides_runpath=no 18416 hardcode_into_libs=yes 18417 ;; 18418 freebsd*) # from 4.6 on 18419 shlibpath_overrides_runpath=yes 18420 hardcode_into_libs=yes 18421 ;; 18422 esac 18423 ;; 18424 18425gnu*) 18426 version_type=linux 18427 need_lib_prefix=no 18428 need_version=no 18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18430 soname_spec='${libname}${release}${shared_ext}$major' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 hardcode_into_libs=yes 18433 ;; 18434 18435hpux9* | hpux10* | hpux11*) 18436 # Give a soname corresponding to the major version so that dld.sl refuses to 18437 # link against other versions. 18438 version_type=sunos 18439 need_lib_prefix=no 18440 need_version=no 18441 case $host_cpu in 18442 ia64*) 18443 shrext_cmds='.so' 18444 hardcode_into_libs=yes 18445 dynamic_linker="$host_os dld.so" 18446 shlibpath_var=LD_LIBRARY_PATH 18447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18449 soname_spec='${libname}${release}${shared_ext}$major' 18450 if test "X$HPUX_IA64_MODE" = X32; then 18451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18452 else 18453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18454 fi 18455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18456 ;; 18457 hppa*64*) 18458 shrext_cmds='.sl' 18459 hardcode_into_libs=yes 18460 dynamic_linker="$host_os dld.sl" 18461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18464 soname_spec='${libname}${release}${shared_ext}$major' 18465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18467 ;; 18468 *) 18469 shrext_cmds='.sl' 18470 dynamic_linker="$host_os dld.sl" 18471 shlibpath_var=SHLIB_PATH 18472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18474 soname_spec='${libname}${release}${shared_ext}$major' 18475 ;; 18476 esac 18477 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18478 postinstall_cmds='chmod 555 $lib' 18479 ;; 18480 18481interix3*) 18482 version_type=linux 18483 need_lib_prefix=no 18484 need_version=no 18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18486 soname_spec='${libname}${release}${shared_ext}$major' 18487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18488 shlibpath_var=LD_LIBRARY_PATH 18489 shlibpath_overrides_runpath=no 18490 hardcode_into_libs=yes 18491 ;; 18492 18493irix5* | irix6* | nonstopux*) 18494 case $host_os in 18495 nonstopux*) version_type=nonstopux ;; 18496 *) 18497 if test "$lt_cv_prog_gnu_ld" = yes; then 18498 version_type=linux 18499 else 18500 version_type=irix 18501 fi ;; 18502 esac 18503 need_lib_prefix=no 18504 need_version=no 18505 soname_spec='${libname}${release}${shared_ext}$major' 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18507 case $host_os in 18508 irix5* | nonstopux*) 18509 libsuff= shlibsuff= 18510 ;; 18511 *) 18512 case $LD in # libtool.m4 will add one of these switches to LD 18513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18514 libsuff= shlibsuff= libmagic=32-bit;; 18515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18516 libsuff=32 shlibsuff=N32 libmagic=N32;; 18517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18518 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18519 *) libsuff= shlibsuff= libmagic=never-match;; 18520 esac 18521 ;; 18522 esac 18523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18524 shlibpath_overrides_runpath=no 18525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18527 hardcode_into_libs=yes 18528 ;; 18529 18530# No shared lib support for Linux oldld, aout, or coff. 18531linux*oldld* | linux*aout* | linux*coff*) 18532 dynamic_linker=no 18533 ;; 18534 18535# This must be Linux ELF. 18536linux* | k*bsd*-gnu) 18537 version_type=linux 18538 need_lib_prefix=no 18539 need_version=no 18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18541 soname_spec='${libname}${release}${shared_ext}$major' 18542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18543 shlibpath_var=LD_LIBRARY_PATH 18544 shlibpath_overrides_runpath=no 18545 # This implies no fast_install, which is unacceptable. 18546 # Some rework will be needed to allow for fast_install 18547 # before this can be enabled. 18548 hardcode_into_libs=yes 18549 18550 # Append ld.so.conf contents to the search path 18551 if test -f /etc/ld.so.conf; then 18552 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18554 fi 18555 18556 # We used to test for /lib/ld.so.1 and disable shared libraries on 18557 # powerpc, because MkLinux only supported shared libraries with the 18558 # GNU dynamic linker. Since this was broken with cross compilers, 18559 # most powerpc-linux boxes support dynamic linking these days and 18560 # people can always --disable-shared, the test was removed, and we 18561 # assume the GNU/Linux dynamic linker is in use. 18562 dynamic_linker='GNU/Linux ld.so' 18563 ;; 18564 18565netbsdelf*-gnu) 18566 version_type=linux 18567 need_lib_prefix=no 18568 need_version=no 18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18570 soname_spec='${libname}${release}${shared_ext}$major' 18571 shlibpath_var=LD_LIBRARY_PATH 18572 shlibpath_overrides_runpath=no 18573 hardcode_into_libs=yes 18574 dynamic_linker='NetBSD ld.elf_so' 18575 ;; 18576 18577netbsd*) 18578 version_type=sunos 18579 need_lib_prefix=no 18580 need_version=no 18581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18584 dynamic_linker='NetBSD (a.out) ld.so' 18585 else 18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18587 soname_spec='${libname}${release}${shared_ext}$major' 18588 dynamic_linker='NetBSD ld.elf_so' 18589 fi 18590 shlibpath_var=LD_LIBRARY_PATH 18591 shlibpath_overrides_runpath=yes 18592 hardcode_into_libs=yes 18593 ;; 18594 18595newsos6) 18596 version_type=linux 18597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18598 shlibpath_var=LD_LIBRARY_PATH 18599 shlibpath_overrides_runpath=yes 18600 ;; 18601 18602nto-qnx*) 18603 version_type=linux 18604 need_lib_prefix=no 18605 need_version=no 18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18607 soname_spec='${libname}${release}${shared_ext}$major' 18608 shlibpath_var=LD_LIBRARY_PATH 18609 shlibpath_overrides_runpath=yes 18610 ;; 18611 18612openbsd*) 18613 version_type=sunos 18614 sys_lib_dlsearch_path_spec="/usr/lib" 18615 need_lib_prefix=no 18616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18617 case $host_os in 18618 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18619 *) need_version=no ;; 18620 esac 18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18623 shlibpath_var=LD_LIBRARY_PATH 18624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18625 case $host_os in 18626 openbsd2.[89] | openbsd2.[89].*) 18627 shlibpath_overrides_runpath=no 18628 ;; 18629 *) 18630 shlibpath_overrides_runpath=yes 18631 ;; 18632 esac 18633 else 18634 shlibpath_overrides_runpath=yes 18635 fi 18636 ;; 18637 18638os2*) 18639 libname_spec='$name' 18640 shrext_cmds=".dll" 18641 need_lib_prefix=no 18642 library_names_spec='$libname${shared_ext} $libname.a' 18643 dynamic_linker='OS/2 ld.exe' 18644 shlibpath_var=LIBPATH 18645 ;; 18646 18647osf3* | osf4* | osf5*) 18648 version_type=osf 18649 need_lib_prefix=no 18650 need_version=no 18651 soname_spec='${libname}${release}${shared_ext}$major' 18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18653 shlibpath_var=LD_LIBRARY_PATH 18654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18656 ;; 18657 18658solaris*) 18659 version_type=linux 18660 need_lib_prefix=no 18661 need_version=no 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18663 soname_spec='${libname}${release}${shared_ext}$major' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 shlibpath_overrides_runpath=yes 18666 hardcode_into_libs=yes 18667 # ldd complains unless libraries are executable 18668 postinstall_cmds='chmod +x $lib' 18669 ;; 18670 18671sunos4*) 18672 version_type=sunos 18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18675 shlibpath_var=LD_LIBRARY_PATH 18676 shlibpath_overrides_runpath=yes 18677 if test "$with_gnu_ld" = yes; then 18678 need_lib_prefix=no 18679 fi 18680 need_version=yes 18681 ;; 18682 18683sysv4 | sysv4.3*) 18684 version_type=linux 18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18686 soname_spec='${libname}${release}${shared_ext}$major' 18687 shlibpath_var=LD_LIBRARY_PATH 18688 case $host_vendor in 18689 sni) 18690 shlibpath_overrides_runpath=no 18691 need_lib_prefix=no 18692 export_dynamic_flag_spec='${wl}-Blargedynsym' 18693 runpath_var=LD_RUN_PATH 18694 ;; 18695 siemens) 18696 need_lib_prefix=no 18697 ;; 18698 motorola) 18699 need_lib_prefix=no 18700 need_version=no 18701 shlibpath_overrides_runpath=no 18702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18703 ;; 18704 esac 18705 ;; 18706 18707sysv4*MP*) 18708 if test -d /usr/nec ;then 18709 version_type=linux 18710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18711 soname_spec='$libname${shared_ext}.$major' 18712 shlibpath_var=LD_LIBRARY_PATH 18713 fi 18714 ;; 18715 18716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18717 version_type=freebsd-elf 18718 need_lib_prefix=no 18719 need_version=no 18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18721 soname_spec='${libname}${release}${shared_ext}$major' 18722 shlibpath_var=LD_LIBRARY_PATH 18723 hardcode_into_libs=yes 18724 if test "$with_gnu_ld" = yes; then 18725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18726 shlibpath_overrides_runpath=no 18727 else 18728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18729 shlibpath_overrides_runpath=yes 18730 case $host_os in 18731 sco3.2v5*) 18732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18733 ;; 18734 esac 18735 fi 18736 sys_lib_dlsearch_path_spec='/usr/lib' 18737 ;; 18738 18739uts4*) 18740 version_type=linux 18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18742 soname_spec='${libname}${release}${shared_ext}$major' 18743 shlibpath_var=LD_LIBRARY_PATH 18744 ;; 18745 18746*) 18747 dynamic_linker=no 18748 ;; 18749esac 18750{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18751echo "${ECHO_T}$dynamic_linker" >&6; } 18752test "$dynamic_linker" = no && can_build_shared=no 18753 18754variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18755if test "$GCC" = yes; then 18756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18757fi 18758 18759{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18760echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18761hardcode_action_GCJ= 18762if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18763 test -n "$runpath_var_GCJ" || \ 18764 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18765 18766 # We can hardcode non-existant directories. 18767 if test "$hardcode_direct_GCJ" != no && 18768 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18769 # have to relink, otherwise we might link with an installed library 18770 # when we should be linking with a yet-to-be-installed one 18771 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18772 test "$hardcode_minus_L_GCJ" != no; then 18773 # Linking always hardcodes the temporary library directory. 18774 hardcode_action_GCJ=relink 18775 else 18776 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18777 hardcode_action_GCJ=immediate 18778 fi 18779else 18780 # We cannot hardcode anything, or else we can only hardcode existing 18781 # directories. 18782 hardcode_action_GCJ=unsupported 18783fi 18784{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18785echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18786 18787if test "$hardcode_action_GCJ" = relink; then 18788 # Fast installation is not supported 18789 enable_fast_install=no 18790elif test "$shlibpath_overrides_runpath" = yes || 18791 test "$enable_shared" = no; then 18792 # Fast installation is not necessary 18793 enable_fast_install=needless 18794fi 18795 18796 18797# The else clause should only fire when bootstrapping the 18798# libtool distribution, otherwise you forgot to ship ltmain.sh 18799# with your package, and you will get complaints that there are 18800# no rules to generate ltmain.sh. 18801if test -f "$ltmain"; then 18802 # See if we are running on zsh, and set the options which allow our commands through 18803 # without removal of \ escapes. 18804 if test -n "${ZSH_VERSION+set}" ; then 18805 setopt NO_GLOB_SUBST 18806 fi 18807 # Now quote all the things that may contain metacharacters while being 18808 # careful not to overquote the AC_SUBSTed values. We take copies of the 18809 # variables and quote the copies for generation of the libtool script. 18810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18811 SED SHELL STRIP \ 18812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18814 deplibs_check_method reload_flag reload_cmds need_locks \ 18815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18816 lt_cv_sys_global_symbol_to_c_name_address \ 18817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18818 old_postinstall_cmds old_postuninstall_cmds \ 18819 compiler_GCJ \ 18820 CC_GCJ \ 18821 LD_GCJ \ 18822 lt_prog_compiler_wl_GCJ \ 18823 lt_prog_compiler_pic_GCJ \ 18824 lt_prog_compiler_static_GCJ \ 18825 lt_prog_compiler_no_builtin_flag_GCJ \ 18826 export_dynamic_flag_spec_GCJ \ 18827 thread_safe_flag_spec_GCJ \ 18828 whole_archive_flag_spec_GCJ \ 18829 enable_shared_with_static_runtimes_GCJ \ 18830 old_archive_cmds_GCJ \ 18831 old_archive_from_new_cmds_GCJ \ 18832 predep_objects_GCJ \ 18833 postdep_objects_GCJ \ 18834 predeps_GCJ \ 18835 postdeps_GCJ \ 18836 compiler_lib_search_path_GCJ \ 18837 archive_cmds_GCJ \ 18838 archive_expsym_cmds_GCJ \ 18839 postinstall_cmds_GCJ \ 18840 postuninstall_cmds_GCJ \ 18841 old_archive_from_expsyms_cmds_GCJ \ 18842 allow_undefined_flag_GCJ \ 18843 no_undefined_flag_GCJ \ 18844 export_symbols_cmds_GCJ \ 18845 hardcode_libdir_flag_spec_GCJ \ 18846 hardcode_libdir_flag_spec_ld_GCJ \ 18847 hardcode_libdir_separator_GCJ \ 18848 hardcode_automatic_GCJ \ 18849 module_cmds_GCJ \ 18850 module_expsym_cmds_GCJ \ 18851 lt_cv_prog_compiler_c_o_GCJ \ 18852 exclude_expsyms_GCJ \ 18853 include_expsyms_GCJ; do 18854 18855 case $var in 18856 old_archive_cmds_GCJ | \ 18857 old_archive_from_new_cmds_GCJ | \ 18858 archive_cmds_GCJ | \ 18859 archive_expsym_cmds_GCJ | \ 18860 module_cmds_GCJ | \ 18861 module_expsym_cmds_GCJ | \ 18862 old_archive_from_expsyms_cmds_GCJ | \ 18863 export_symbols_cmds_GCJ | \ 18864 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18865 postinstall_cmds | postuninstall_cmds | \ 18866 old_postinstall_cmds | old_postuninstall_cmds | \ 18867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18868 # Double-quote double-evaled strings. 18869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18870 ;; 18871 *) 18872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18873 ;; 18874 esac 18875 done 18876 18877 case $lt_echo in 18878 *'\$0 --fallback-echo"') 18879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18880 ;; 18881 esac 18882 18883cfgfile="$ofile" 18884 18885 cat <<__EOF__ >> "$cfgfile" 18886# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18887 18888# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18889 18890# Shell to use when invoking shell scripts. 18891SHELL=$lt_SHELL 18892 18893# Whether or not to build shared libraries. 18894build_libtool_libs=$enable_shared 18895 18896# Whether or not to build static libraries. 18897build_old_libs=$enable_static 18898 18899# Whether or not to add -lc for building shared libraries. 18900build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18901 18902# Whether or not to disallow shared libs when runtime libs are static 18903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18904 18905# Whether or not to optimize for fast installation. 18906fast_install=$enable_fast_install 18907 18908# The host system. 18909host_alias=$host_alias 18910host=$host 18911host_os=$host_os 18912 18913# The build system. 18914build_alias=$build_alias 18915build=$build 18916build_os=$build_os 18917 18918# An echo program that does not interpret backslashes. 18919echo=$lt_echo 18920 18921# The archiver. 18922AR=$lt_AR 18923AR_FLAGS=$lt_AR_FLAGS 18924 18925# A C compiler. 18926LTCC=$lt_LTCC 18927 18928# LTCC compiler flags. 18929LTCFLAGS=$lt_LTCFLAGS 18930 18931# A language-specific compiler. 18932CC=$lt_compiler_GCJ 18933 18934# Is the compiler the GNU C compiler? 18935with_gcc=$GCC_GCJ 18936 18937# An ERE matcher. 18938EGREP=$lt_EGREP 18939 18940# The linker used to build libraries. 18941LD=$lt_LD_GCJ 18942 18943# Whether we need hard or soft links. 18944LN_S=$lt_LN_S 18945 18946# A BSD-compatible nm program. 18947NM=$lt_NM 18948 18949# A symbol stripping program 18950STRIP=$lt_STRIP 18951 18952# Used to examine libraries when file_magic_cmd begins "file" 18953MAGIC_CMD=$MAGIC_CMD 18954 18955# Used on cygwin: DLL creation program. 18956DLLTOOL="$DLLTOOL" 18957 18958# Used on cygwin: object dumper. 18959OBJDUMP="$OBJDUMP" 18960 18961# Used on cygwin: assembler. 18962AS="$AS" 18963 18964# The name of the directory that contains temporary libtool files. 18965objdir=$objdir 18966 18967# How to create reloadable object files. 18968reload_flag=$lt_reload_flag 18969reload_cmds=$lt_reload_cmds 18970 18971# How to pass a linker flag through the compiler. 18972wl=$lt_lt_prog_compiler_wl_GCJ 18973 18974# Object file suffix (normally "o"). 18975objext="$ac_objext" 18976 18977# Old archive suffix (normally "a"). 18978libext="$libext" 18979 18980# Shared library suffix (normally ".so"). 18981shrext_cmds='$shrext_cmds' 18982 18983# Executable file suffix (normally ""). 18984exeext="$exeext" 18985 18986# Additional compiler flags for building library objects. 18987pic_flag=$lt_lt_prog_compiler_pic_GCJ 18988pic_mode=$pic_mode 18989 18990# What is the maximum length of a command? 18991max_cmd_len=$lt_cv_sys_max_cmd_len 18992 18993# Does compiler simultaneously support -c and -o options? 18994compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18995 18996# Must we lock files when doing compilation? 18997need_locks=$lt_need_locks 18998 18999# Do we need the lib prefix for modules? 19000need_lib_prefix=$need_lib_prefix 19001 19002# Do we need a version for libraries? 19003need_version=$need_version 19004 19005# Whether dlopen is supported. 19006dlopen_support=$enable_dlopen 19007 19008# Whether dlopen of programs is supported. 19009dlopen_self=$enable_dlopen_self 19010 19011# Whether dlopen of statically linked programs is supported. 19012dlopen_self_static=$enable_dlopen_self_static 19013 19014# Compiler flag to prevent dynamic linking. 19015link_static_flag=$lt_lt_prog_compiler_static_GCJ 19016 19017# Compiler flag to turn off builtin functions. 19018no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19019 19020# Compiler flag to allow reflexive dlopens. 19021export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19022 19023# Compiler flag to generate shared objects directly from archives. 19024whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19025 19026# Compiler flag to generate thread-safe objects. 19027thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19028 19029# Library versioning type. 19030version_type=$version_type 19031 19032# Format of library name prefix. 19033libname_spec=$lt_libname_spec 19034 19035# List of archive names. First name is the real one, the rest are links. 19036# The last name is the one that the linker finds with -lNAME. 19037library_names_spec=$lt_library_names_spec 19038 19039# The coded name of the library, if different from the real name. 19040soname_spec=$lt_soname_spec 19041 19042# Commands used to build and install an old-style archive. 19043RANLIB=$lt_RANLIB 19044old_archive_cmds=$lt_old_archive_cmds_GCJ 19045old_postinstall_cmds=$lt_old_postinstall_cmds 19046old_postuninstall_cmds=$lt_old_postuninstall_cmds 19047 19048# Create an old-style archive from a shared archive. 19049old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19050 19051# Create a temporary old-style archive to link instead of a shared archive. 19052old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19053 19054# Commands used to build and install a shared archive. 19055archive_cmds=$lt_archive_cmds_GCJ 19056archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19057postinstall_cmds=$lt_postinstall_cmds 19058postuninstall_cmds=$lt_postuninstall_cmds 19059 19060# Commands used to build a loadable module (assumed same as above if empty) 19061module_cmds=$lt_module_cmds_GCJ 19062module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19063 19064# Commands to strip libraries. 19065old_striplib=$lt_old_striplib 19066striplib=$lt_striplib 19067 19068# Dependencies to place before the objects being linked to create a 19069# shared library. 19070predep_objects=$lt_predep_objects_GCJ 19071 19072# Dependencies to place after the objects being linked to create a 19073# shared library. 19074postdep_objects=$lt_postdep_objects_GCJ 19075 19076# Dependencies to place before the objects being linked to create a 19077# shared library. 19078predeps=$lt_predeps_GCJ 19079 19080# Dependencies to place after the objects being linked to create a 19081# shared library. 19082postdeps=$lt_postdeps_GCJ 19083 19084# The library search path used internally by the compiler when linking 19085# a shared library. 19086compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19087 19088# Method to check whether dependent libraries are shared objects. 19089deplibs_check_method=$lt_deplibs_check_method 19090 19091# Command to use when deplibs_check_method == file_magic. 19092file_magic_cmd=$lt_file_magic_cmd 19093 19094# Flag that allows shared libraries with undefined symbols to be built. 19095allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19096 19097# Flag that forces no undefined symbols. 19098no_undefined_flag=$lt_no_undefined_flag_GCJ 19099 19100# Commands used to finish a libtool library installation in a directory. 19101finish_cmds=$lt_finish_cmds 19102 19103# Same as above, but a single script fragment to be evaled but not shown. 19104finish_eval=$lt_finish_eval 19105 19106# Take the output of nm and produce a listing of raw symbols and C names. 19107global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19108 19109# Transform the output of nm in a proper C declaration 19110global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19111 19112# Transform the output of nm in a C name address pair 19113global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19114 19115# This is the shared library runtime path variable. 19116runpath_var=$runpath_var 19117 19118# This is the shared library path variable. 19119shlibpath_var=$shlibpath_var 19120 19121# Is shlibpath searched before the hard-coded library search path? 19122shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19123 19124# How to hardcode a shared library path into an executable. 19125hardcode_action=$hardcode_action_GCJ 19126 19127# Whether we should hardcode library paths into libraries. 19128hardcode_into_libs=$hardcode_into_libs 19129 19130# Flag to hardcode \$libdir into a binary during linking. 19131# This must work even if \$libdir does not exist. 19132hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19133 19134# If ld is used when linking, flag to hardcode \$libdir into 19135# a binary during linking. This must work even if \$libdir does 19136# not exist. 19137hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19138 19139# Whether we need a single -rpath flag with a separated argument. 19140hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19141 19142# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19143# resulting binary. 19144hardcode_direct=$hardcode_direct_GCJ 19145 19146# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19147# resulting binary. 19148hardcode_minus_L=$hardcode_minus_L_GCJ 19149 19150# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19151# the resulting binary. 19152hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19153 19154# Set to yes if building a shared library automatically hardcodes DIR into the library 19155# and all subsequent libraries and executables linked against it. 19156hardcode_automatic=$hardcode_automatic_GCJ 19157 19158# Variables whose values should be saved in libtool wrapper scripts and 19159# restored at relink time. 19160variables_saved_for_relink="$variables_saved_for_relink" 19161 19162# Whether libtool must link a program against all its dependency libraries. 19163link_all_deplibs=$link_all_deplibs_GCJ 19164 19165# Compile-time system search path for libraries 19166sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19167 19168# Run-time system search path for libraries 19169sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19170 19171# Fix the shell variable \$srcfile for the compiler. 19172fix_srcfile_path="$fix_srcfile_path_GCJ" 19173 19174# Set to yes if exported symbols are required. 19175always_export_symbols=$always_export_symbols_GCJ 19176 19177# The commands to list exported symbols. 19178export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19179 19180# The commands to extract the exported symbol list from a shared archive. 19181extract_expsyms_cmds=$lt_extract_expsyms_cmds 19182 19183# Symbols that should not be listed in the preloaded symbols. 19184exclude_expsyms=$lt_exclude_expsyms_GCJ 19185 19186# Symbols that must always be exported. 19187include_expsyms=$lt_include_expsyms_GCJ 19188 19189# ### END LIBTOOL TAG CONFIG: $tagname 19190 19191__EOF__ 19192 19193 19194else 19195 # If there is no Makefile yet, we rely on a make rule to execute 19196 # `config.status --recheck' to rerun these tests and create the 19197 # libtool script then. 19198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19199 if test -f "$ltmain_in"; then 19200 test -f Makefile && make "$ltmain" 19201 fi 19202fi 19203 19204 19205ac_ext=c 19206ac_cpp='$CPP $CPPFLAGS' 19207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19209ac_compiler_gnu=$ac_cv_c_compiler_gnu 19210 19211CC="$lt_save_CC" 19212 19213 else 19214 tagname="" 19215 fi 19216 ;; 19217 19218 RC) 19219 19220 19221# Source file extension for RC test sources. 19222ac_ext=rc 19223 19224# Object file extension for compiled RC test sources. 19225objext=o 19226objext_RC=$objext 19227 19228# Code to be used in simple compile tests 19229lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19230 19231# Code to be used in simple link tests 19232lt_simple_link_test_code="$lt_simple_compile_test_code" 19233 19234# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19235 19236# If no C compiler was specified, use CC. 19237LTCC=${LTCC-"$CC"} 19238 19239# If no C compiler flags were specified, use CFLAGS. 19240LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19241 19242# Allow CC to be a program name with arguments. 19243compiler=$CC 19244 19245 19246# save warnings/boilerplate of simple test code 19247ac_outfile=conftest.$ac_objext 19248printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19250_lt_compiler_boilerplate=`cat conftest.err` 19251$rm conftest* 19252 19253ac_outfile=conftest.$ac_objext 19254printf "$lt_simple_link_test_code" >conftest.$ac_ext 19255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19256_lt_linker_boilerplate=`cat conftest.err` 19257$rm conftest* 19258 19259 19260# Allow CC to be a program name with arguments. 19261lt_save_CC="$CC" 19262CC=${RC-"windres"} 19263compiler=$CC 19264compiler_RC=$CC 19265for cc_temp in $compiler""; do 19266 case $cc_temp in 19267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19269 \-*) ;; 19270 *) break;; 19271 esac 19272done 19273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19274 19275lt_cv_prog_compiler_c_o_RC=yes 19276 19277# The else clause should only fire when bootstrapping the 19278# libtool distribution, otherwise you forgot to ship ltmain.sh 19279# with your package, and you will get complaints that there are 19280# no rules to generate ltmain.sh. 19281if test -f "$ltmain"; then 19282 # See if we are running on zsh, and set the options which allow our commands through 19283 # without removal of \ escapes. 19284 if test -n "${ZSH_VERSION+set}" ; then 19285 setopt NO_GLOB_SUBST 19286 fi 19287 # Now quote all the things that may contain metacharacters while being 19288 # careful not to overquote the AC_SUBSTed values. We take copies of the 19289 # variables and quote the copies for generation of the libtool script. 19290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19291 SED SHELL STRIP \ 19292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19294 deplibs_check_method reload_flag reload_cmds need_locks \ 19295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19296 lt_cv_sys_global_symbol_to_c_name_address \ 19297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19298 old_postinstall_cmds old_postuninstall_cmds \ 19299 compiler_RC \ 19300 CC_RC \ 19301 LD_RC \ 19302 lt_prog_compiler_wl_RC \ 19303 lt_prog_compiler_pic_RC \ 19304 lt_prog_compiler_static_RC \ 19305 lt_prog_compiler_no_builtin_flag_RC \ 19306 export_dynamic_flag_spec_RC \ 19307 thread_safe_flag_spec_RC \ 19308 whole_archive_flag_spec_RC \ 19309 enable_shared_with_static_runtimes_RC \ 19310 old_archive_cmds_RC \ 19311 old_archive_from_new_cmds_RC \ 19312 predep_objects_RC \ 19313 postdep_objects_RC \ 19314 predeps_RC \ 19315 postdeps_RC \ 19316 compiler_lib_search_path_RC \ 19317 archive_cmds_RC \ 19318 archive_expsym_cmds_RC \ 19319 postinstall_cmds_RC \ 19320 postuninstall_cmds_RC \ 19321 old_archive_from_expsyms_cmds_RC \ 19322 allow_undefined_flag_RC \ 19323 no_undefined_flag_RC \ 19324 export_symbols_cmds_RC \ 19325 hardcode_libdir_flag_spec_RC \ 19326 hardcode_libdir_flag_spec_ld_RC \ 19327 hardcode_libdir_separator_RC \ 19328 hardcode_automatic_RC \ 19329 module_cmds_RC \ 19330 module_expsym_cmds_RC \ 19331 lt_cv_prog_compiler_c_o_RC \ 19332 exclude_expsyms_RC \ 19333 include_expsyms_RC; do 19334 19335 case $var in 19336 old_archive_cmds_RC | \ 19337 old_archive_from_new_cmds_RC | \ 19338 archive_cmds_RC | \ 19339 archive_expsym_cmds_RC | \ 19340 module_cmds_RC | \ 19341 module_expsym_cmds_RC | \ 19342 old_archive_from_expsyms_cmds_RC | \ 19343 export_symbols_cmds_RC | \ 19344 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19345 postinstall_cmds | postuninstall_cmds | \ 19346 old_postinstall_cmds | old_postuninstall_cmds | \ 19347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19348 # Double-quote double-evaled strings. 19349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19350 ;; 19351 *) 19352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19353 ;; 19354 esac 19355 done 19356 19357 case $lt_echo in 19358 *'\$0 --fallback-echo"') 19359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19360 ;; 19361 esac 19362 19363cfgfile="$ofile" 19364 19365 cat <<__EOF__ >> "$cfgfile" 19366# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19367 19368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19369 19370# Shell to use when invoking shell scripts. 19371SHELL=$lt_SHELL 19372 19373# Whether or not to build shared libraries. 19374build_libtool_libs=$enable_shared 19375 19376# Whether or not to build static libraries. 19377build_old_libs=$enable_static 19378 19379# Whether or not to add -lc for building shared libraries. 19380build_libtool_need_lc=$archive_cmds_need_lc_RC 19381 19382# Whether or not to disallow shared libs when runtime libs are static 19383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19384 19385# Whether or not to optimize for fast installation. 19386fast_install=$enable_fast_install 19387 19388# The host system. 19389host_alias=$host_alias 19390host=$host 19391host_os=$host_os 19392 19393# The build system. 19394build_alias=$build_alias 19395build=$build 19396build_os=$build_os 19397 19398# An echo program that does not interpret backslashes. 19399echo=$lt_echo 19400 19401# The archiver. 19402AR=$lt_AR 19403AR_FLAGS=$lt_AR_FLAGS 19404 19405# A C compiler. 19406LTCC=$lt_LTCC 19407 19408# LTCC compiler flags. 19409LTCFLAGS=$lt_LTCFLAGS 19410 19411# A language-specific compiler. 19412CC=$lt_compiler_RC 19413 19414# Is the compiler the GNU C compiler? 19415with_gcc=$GCC_RC 19416 19417# An ERE matcher. 19418EGREP=$lt_EGREP 19419 19420# The linker used to build libraries. 19421LD=$lt_LD_RC 19422 19423# Whether we need hard or soft links. 19424LN_S=$lt_LN_S 19425 19426# A BSD-compatible nm program. 19427NM=$lt_NM 19428 19429# A symbol stripping program 19430STRIP=$lt_STRIP 19431 19432# Used to examine libraries when file_magic_cmd begins "file" 19433MAGIC_CMD=$MAGIC_CMD 19434 19435# Used on cygwin: DLL creation program. 19436DLLTOOL="$DLLTOOL" 19437 19438# Used on cygwin: object dumper. 19439OBJDUMP="$OBJDUMP" 19440 19441# Used on cygwin: assembler. 19442AS="$AS" 19443 19444# The name of the directory that contains temporary libtool files. 19445objdir=$objdir 19446 19447# How to create reloadable object files. 19448reload_flag=$lt_reload_flag 19449reload_cmds=$lt_reload_cmds 19450 19451# How to pass a linker flag through the compiler. 19452wl=$lt_lt_prog_compiler_wl_RC 19453 19454# Object file suffix (normally "o"). 19455objext="$ac_objext" 19456 19457# Old archive suffix (normally "a"). 19458libext="$libext" 19459 19460# Shared library suffix (normally ".so"). 19461shrext_cmds='$shrext_cmds' 19462 19463# Executable file suffix (normally ""). 19464exeext="$exeext" 19465 19466# Additional compiler flags for building library objects. 19467pic_flag=$lt_lt_prog_compiler_pic_RC 19468pic_mode=$pic_mode 19469 19470# What is the maximum length of a command? 19471max_cmd_len=$lt_cv_sys_max_cmd_len 19472 19473# Does compiler simultaneously support -c and -o options? 19474compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19475 19476# Must we lock files when doing compilation? 19477need_locks=$lt_need_locks 19478 19479# Do we need the lib prefix for modules? 19480need_lib_prefix=$need_lib_prefix 19481 19482# Do we need a version for libraries? 19483need_version=$need_version 19484 19485# Whether dlopen is supported. 19486dlopen_support=$enable_dlopen 19487 19488# Whether dlopen of programs is supported. 19489dlopen_self=$enable_dlopen_self 19490 19491# Whether dlopen of statically linked programs is supported. 19492dlopen_self_static=$enable_dlopen_self_static 19493 19494# Compiler flag to prevent dynamic linking. 19495link_static_flag=$lt_lt_prog_compiler_static_RC 19496 19497# Compiler flag to turn off builtin functions. 19498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19499 19500# Compiler flag to allow reflexive dlopens. 19501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19502 19503# Compiler flag to generate shared objects directly from archives. 19504whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19505 19506# Compiler flag to generate thread-safe objects. 19507thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19508 19509# Library versioning type. 19510version_type=$version_type 19511 19512# Format of library name prefix. 19513libname_spec=$lt_libname_spec 19514 19515# List of archive names. First name is the real one, the rest are links. 19516# The last name is the one that the linker finds with -lNAME. 19517library_names_spec=$lt_library_names_spec 19518 19519# The coded name of the library, if different from the real name. 19520soname_spec=$lt_soname_spec 19521 19522# Commands used to build and install an old-style archive. 19523RANLIB=$lt_RANLIB 19524old_archive_cmds=$lt_old_archive_cmds_RC 19525old_postinstall_cmds=$lt_old_postinstall_cmds 19526old_postuninstall_cmds=$lt_old_postuninstall_cmds 19527 19528# Create an old-style archive from a shared archive. 19529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19530 19531# Create a temporary old-style archive to link instead of a shared archive. 19532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19533 19534# Commands used to build and install a shared archive. 19535archive_cmds=$lt_archive_cmds_RC 19536archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19537postinstall_cmds=$lt_postinstall_cmds 19538postuninstall_cmds=$lt_postuninstall_cmds 19539 19540# Commands used to build a loadable module (assumed same as above if empty) 19541module_cmds=$lt_module_cmds_RC 19542module_expsym_cmds=$lt_module_expsym_cmds_RC 19543 19544# Commands to strip libraries. 19545old_striplib=$lt_old_striplib 19546striplib=$lt_striplib 19547 19548# Dependencies to place before the objects being linked to create a 19549# shared library. 19550predep_objects=$lt_predep_objects_RC 19551 19552# Dependencies to place after the objects being linked to create a 19553# shared library. 19554postdep_objects=$lt_postdep_objects_RC 19555 19556# Dependencies to place before the objects being linked to create a 19557# shared library. 19558predeps=$lt_predeps_RC 19559 19560# Dependencies to place after the objects being linked to create a 19561# shared library. 19562postdeps=$lt_postdeps_RC 19563 19564# The library search path used internally by the compiler when linking 19565# a shared library. 19566compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19567 19568# Method to check whether dependent libraries are shared objects. 19569deplibs_check_method=$lt_deplibs_check_method 19570 19571# Command to use when deplibs_check_method == file_magic. 19572file_magic_cmd=$lt_file_magic_cmd 19573 19574# Flag that allows shared libraries with undefined symbols to be built. 19575allow_undefined_flag=$lt_allow_undefined_flag_RC 19576 19577# Flag that forces no undefined symbols. 19578no_undefined_flag=$lt_no_undefined_flag_RC 19579 19580# Commands used to finish a libtool library installation in a directory. 19581finish_cmds=$lt_finish_cmds 19582 19583# Same as above, but a single script fragment to be evaled but not shown. 19584finish_eval=$lt_finish_eval 19585 19586# Take the output of nm and produce a listing of raw symbols and C names. 19587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19588 19589# Transform the output of nm in a proper C declaration 19590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19591 19592# Transform the output of nm in a C name address pair 19593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19594 19595# This is the shared library runtime path variable. 19596runpath_var=$runpath_var 19597 19598# This is the shared library path variable. 19599shlibpath_var=$shlibpath_var 19600 19601# Is shlibpath searched before the hard-coded library search path? 19602shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19603 19604# How to hardcode a shared library path into an executable. 19605hardcode_action=$hardcode_action_RC 19606 19607# Whether we should hardcode library paths into libraries. 19608hardcode_into_libs=$hardcode_into_libs 19609 19610# Flag to hardcode \$libdir into a binary during linking. 19611# This must work even if \$libdir does not exist. 19612hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19613 19614# If ld is used when linking, flag to hardcode \$libdir into 19615# a binary during linking. This must work even if \$libdir does 19616# not exist. 19617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19618 19619# Whether we need a single -rpath flag with a separated argument. 19620hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19621 19622# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19623# resulting binary. 19624hardcode_direct=$hardcode_direct_RC 19625 19626# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19627# resulting binary. 19628hardcode_minus_L=$hardcode_minus_L_RC 19629 19630# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19631# the resulting binary. 19632hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19633 19634# Set to yes if building a shared library automatically hardcodes DIR into the library 19635# and all subsequent libraries and executables linked against it. 19636hardcode_automatic=$hardcode_automatic_RC 19637 19638# Variables whose values should be saved in libtool wrapper scripts and 19639# restored at relink time. 19640variables_saved_for_relink="$variables_saved_for_relink" 19641 19642# Whether libtool must link a program against all its dependency libraries. 19643link_all_deplibs=$link_all_deplibs_RC 19644 19645# Compile-time system search path for libraries 19646sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19647 19648# Run-time system search path for libraries 19649sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19650 19651# Fix the shell variable \$srcfile for the compiler. 19652fix_srcfile_path="$fix_srcfile_path_RC" 19653 19654# Set to yes if exported symbols are required. 19655always_export_symbols=$always_export_symbols_RC 19656 19657# The commands to list exported symbols. 19658export_symbols_cmds=$lt_export_symbols_cmds_RC 19659 19660# The commands to extract the exported symbol list from a shared archive. 19661extract_expsyms_cmds=$lt_extract_expsyms_cmds 19662 19663# Symbols that should not be listed in the preloaded symbols. 19664exclude_expsyms=$lt_exclude_expsyms_RC 19665 19666# Symbols that must always be exported. 19667include_expsyms=$lt_include_expsyms_RC 19668 19669# ### END LIBTOOL TAG CONFIG: $tagname 19670 19671__EOF__ 19672 19673 19674else 19675 # If there is no Makefile yet, we rely on a make rule to execute 19676 # `config.status --recheck' to rerun these tests and create the 19677 # libtool script then. 19678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19679 if test -f "$ltmain_in"; then 19680 test -f Makefile && make "$ltmain" 19681 fi 19682fi 19683 19684 19685ac_ext=c 19686ac_cpp='$CPP $CPPFLAGS' 19687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19689ac_compiler_gnu=$ac_cv_c_compiler_gnu 19690 19691CC="$lt_save_CC" 19692 19693 ;; 19694 19695 *) 19696 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19697echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19698 { (exit 1); exit 1; }; } 19699 ;; 19700 esac 19701 19702 # Append the new tag name to the list of available tags. 19703 if test -n "$tagname" ; then 19704 available_tags="$available_tags $tagname" 19705 fi 19706 fi 19707 done 19708 IFS="$lt_save_ifs" 19709 19710 # Now substitute the updated list of available tags. 19711 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19712 mv "${ofile}T" "$ofile" 19713 chmod +x "$ofile" 19714 else 19715 rm -f "${ofile}T" 19716 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19717echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19718 { (exit 1); exit 1; }; } 19719 fi 19720fi 19721 19722 19723 19724# This can be used to rebuild libtool when needed 19725LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19726 19727# Always use our own libtool. 19728LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19729 19730# Prevent multiple expansion 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753LDFLAGS="-L/usr/local/lib $LDFLAGS" 19754 19755 19756{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19757echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19758if test "${ac_cv_header_stdc+set}" = set; then 19759 echo $ECHO_N "(cached) $ECHO_C" >&6 19760else 19761 cat >conftest.$ac_ext <<_ACEOF 19762/* confdefs.h. */ 19763_ACEOF 19764cat confdefs.h >>conftest.$ac_ext 19765cat >>conftest.$ac_ext <<_ACEOF 19766/* end confdefs.h. */ 19767#include <stdlib.h> 19768#include <stdarg.h> 19769#include <string.h> 19770#include <float.h> 19771 19772int 19773main () 19774{ 19775 19776 ; 19777 return 0; 19778} 19779_ACEOF 19780rm -f conftest.$ac_objext 19781if { (ac_try="$ac_compile" 19782case "(($ac_try" in 19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19784 *) ac_try_echo=$ac_try;; 19785esac 19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19787 (eval "$ac_compile") 2>conftest.er1 19788 ac_status=$? 19789 grep -v '^ *+' conftest.er1 >conftest.err 19790 rm -f conftest.er1 19791 cat conftest.err >&5 19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19793 (exit $ac_status); } && { 19794 test -z "$ac_c_werror_flag" || 19795 test ! -s conftest.err 19796 } && test -s conftest.$ac_objext; then 19797 ac_cv_header_stdc=yes 19798else 19799 echo "$as_me: failed program was:" >&5 19800sed 's/^/| /' conftest.$ac_ext >&5 19801 19802 ac_cv_header_stdc=no 19803fi 19804 19805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19806 19807if test $ac_cv_header_stdc = yes; then 19808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19809 cat >conftest.$ac_ext <<_ACEOF 19810/* confdefs.h. */ 19811_ACEOF 19812cat confdefs.h >>conftest.$ac_ext 19813cat >>conftest.$ac_ext <<_ACEOF 19814/* end confdefs.h. */ 19815#include <string.h> 19816 19817_ACEOF 19818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19819 $EGREP "memchr" >/dev/null 2>&1; then 19820 : 19821else 19822 ac_cv_header_stdc=no 19823fi 19824rm -f conftest* 19825 19826fi 19827 19828if test $ac_cv_header_stdc = yes; then 19829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19830 cat >conftest.$ac_ext <<_ACEOF 19831/* confdefs.h. */ 19832_ACEOF 19833cat confdefs.h >>conftest.$ac_ext 19834cat >>conftest.$ac_ext <<_ACEOF 19835/* end confdefs.h. */ 19836#include <stdlib.h> 19837 19838_ACEOF 19839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19840 $EGREP "free" >/dev/null 2>&1; then 19841 : 19842else 19843 ac_cv_header_stdc=no 19844fi 19845rm -f conftest* 19846 19847fi 19848 19849if test $ac_cv_header_stdc = yes; then 19850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19851 if test "$cross_compiling" = yes; then 19852 : 19853else 19854 cat >conftest.$ac_ext <<_ACEOF 19855/* confdefs.h. */ 19856_ACEOF 19857cat confdefs.h >>conftest.$ac_ext 19858cat >>conftest.$ac_ext <<_ACEOF 19859/* end confdefs.h. */ 19860#include <ctype.h> 19861#include <stdlib.h> 19862#if ((' ' & 0x0FF) == 0x020) 19863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19865#else 19866# define ISLOWER(c) \ 19867 (('a' <= (c) && (c) <= 'i') \ 19868 || ('j' <= (c) && (c) <= 'r') \ 19869 || ('s' <= (c) && (c) <= 'z')) 19870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19871#endif 19872 19873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19874int 19875main () 19876{ 19877 int i; 19878 for (i = 0; i < 256; i++) 19879 if (XOR (islower (i), ISLOWER (i)) 19880 || toupper (i) != TOUPPER (i)) 19881 return 2; 19882 return 0; 19883} 19884_ACEOF 19885rm -f conftest$ac_exeext 19886if { (ac_try="$ac_link" 19887case "(($ac_try" in 19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19889 *) ac_try_echo=$ac_try;; 19890esac 19891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19892 (eval "$ac_link") 2>&5 19893 ac_status=$? 19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19896 { (case "(($ac_try" in 19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19898 *) ac_try_echo=$ac_try;; 19899esac 19900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19901 (eval "$ac_try") 2>&5 19902 ac_status=$? 19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19904 (exit $ac_status); }; }; then 19905 : 19906else 19907 echo "$as_me: program exited with status $ac_status" >&5 19908echo "$as_me: failed program was:" >&5 19909sed 's/^/| /' conftest.$ac_ext >&5 19910 19911( exit $ac_status ) 19912ac_cv_header_stdc=no 19913fi 19914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19915fi 19916 19917 19918fi 19919fi 19920{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19921echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 19922if test $ac_cv_header_stdc = yes; then 19923 19924cat >>confdefs.h <<\_ACEOF 19925#define STDC_HEADERS 1 19926_ACEOF 19927 19928fi 19929 19930 19931 19932 19933 19934 19935ac_header_dirent=no 19936for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19937 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19938{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 19939echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 19940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19941 echo $ECHO_N "(cached) $ECHO_C" >&6 19942else 19943 cat >conftest.$ac_ext <<_ACEOF 19944/* confdefs.h. */ 19945_ACEOF 19946cat confdefs.h >>conftest.$ac_ext 19947cat >>conftest.$ac_ext <<_ACEOF 19948/* end confdefs.h. */ 19949#include <sys/types.h> 19950#include <$ac_hdr> 19951 19952int 19953main () 19954{ 19955if ((DIR *) 0) 19956return 0; 19957 ; 19958 return 0; 19959} 19960_ACEOF 19961rm -f conftest.$ac_objext 19962if { (ac_try="$ac_compile" 19963case "(($ac_try" in 19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19965 *) ac_try_echo=$ac_try;; 19966esac 19967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19968 (eval "$ac_compile") 2>conftest.er1 19969 ac_status=$? 19970 grep -v '^ *+' conftest.er1 >conftest.err 19971 rm -f conftest.er1 19972 cat conftest.err >&5 19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19974 (exit $ac_status); } && { 19975 test -z "$ac_c_werror_flag" || 19976 test ! -s conftest.err 19977 } && test -s conftest.$ac_objext; then 19978 eval "$as_ac_Header=yes" 19979else 19980 echo "$as_me: failed program was:" >&5 19981sed 's/^/| /' conftest.$ac_ext >&5 19982 19983 eval "$as_ac_Header=no" 19984fi 19985 19986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19987fi 19988ac_res=`eval echo '${'$as_ac_Header'}'` 19989 { echo "$as_me:$LINENO: result: $ac_res" >&5 19990echo "${ECHO_T}$ac_res" >&6; } 19991if test `eval echo '${'$as_ac_Header'}'` = yes; then 19992 cat >>confdefs.h <<_ACEOF 19993#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 19994_ACEOF 19995 19996ac_header_dirent=$ac_hdr; break 19997fi 19998 19999done 20000# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20001if test $ac_header_dirent = dirent.h; then 20002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 20003echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 20004if test "${ac_cv_search_opendir+set}" = set; then 20005 echo $ECHO_N "(cached) $ECHO_C" >&6 20006else 20007 ac_func_search_save_LIBS=$LIBS 20008cat >conftest.$ac_ext <<_ACEOF 20009/* confdefs.h. */ 20010_ACEOF 20011cat confdefs.h >>conftest.$ac_ext 20012cat >>conftest.$ac_ext <<_ACEOF 20013/* end confdefs.h. */ 20014 20015/* Override any GCC internal prototype to avoid an error. 20016 Use char because int might match the return type of a GCC 20017 builtin and then its argument prototype would still apply. */ 20018#ifdef __cplusplus 20019extern "C" 20020#endif 20021char opendir (); 20022int 20023main () 20024{ 20025return opendir (); 20026 ; 20027 return 0; 20028} 20029_ACEOF 20030for ac_lib in '' dir; do 20031 if test -z "$ac_lib"; then 20032 ac_res="none required" 20033 else 20034 ac_res=-l$ac_lib 20035 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20036 fi 20037 rm -f conftest.$ac_objext conftest$ac_exeext 20038if { (ac_try="$ac_link" 20039case "(($ac_try" in 20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20041 *) ac_try_echo=$ac_try;; 20042esac 20043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20044 (eval "$ac_link") 2>conftest.er1 20045 ac_status=$? 20046 grep -v '^ *+' conftest.er1 >conftest.err 20047 rm -f conftest.er1 20048 cat conftest.err >&5 20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20050 (exit $ac_status); } && { 20051 test -z "$ac_c_werror_flag" || 20052 test ! -s conftest.err 20053 } && test -s conftest$ac_exeext && 20054 $as_test_x conftest$ac_exeext; then 20055 ac_cv_search_opendir=$ac_res 20056else 20057 echo "$as_me: failed program was:" >&5 20058sed 's/^/| /' conftest.$ac_ext >&5 20059 20060 20061fi 20062 20063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20064 conftest$ac_exeext 20065 if test "${ac_cv_search_opendir+set}" = set; then 20066 break 20067fi 20068done 20069if test "${ac_cv_search_opendir+set}" = set; then 20070 : 20071else 20072 ac_cv_search_opendir=no 20073fi 20074rm conftest.$ac_ext 20075LIBS=$ac_func_search_save_LIBS 20076fi 20077{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20078echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 20079ac_res=$ac_cv_search_opendir 20080if test "$ac_res" != no; then 20081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20082 20083fi 20084 20085else 20086 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 20087echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 20088if test "${ac_cv_search_opendir+set}" = set; then 20089 echo $ECHO_N "(cached) $ECHO_C" >&6 20090else 20091 ac_func_search_save_LIBS=$LIBS 20092cat >conftest.$ac_ext <<_ACEOF 20093/* confdefs.h. */ 20094_ACEOF 20095cat confdefs.h >>conftest.$ac_ext 20096cat >>conftest.$ac_ext <<_ACEOF 20097/* end confdefs.h. */ 20098 20099/* Override any GCC internal prototype to avoid an error. 20100 Use char because int might match the return type of a GCC 20101 builtin and then its argument prototype would still apply. */ 20102#ifdef __cplusplus 20103extern "C" 20104#endif 20105char opendir (); 20106int 20107main () 20108{ 20109return opendir (); 20110 ; 20111 return 0; 20112} 20113_ACEOF 20114for ac_lib in '' x; do 20115 if test -z "$ac_lib"; then 20116 ac_res="none required" 20117 else 20118 ac_res=-l$ac_lib 20119 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20120 fi 20121 rm -f conftest.$ac_objext conftest$ac_exeext 20122if { (ac_try="$ac_link" 20123case "(($ac_try" in 20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20125 *) ac_try_echo=$ac_try;; 20126esac 20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20128 (eval "$ac_link") 2>conftest.er1 20129 ac_status=$? 20130 grep -v '^ *+' conftest.er1 >conftest.err 20131 rm -f conftest.er1 20132 cat conftest.err >&5 20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); } && { 20135 test -z "$ac_c_werror_flag" || 20136 test ! -s conftest.err 20137 } && test -s conftest$ac_exeext && 20138 $as_test_x conftest$ac_exeext; then 20139 ac_cv_search_opendir=$ac_res 20140else 20141 echo "$as_me: failed program was:" >&5 20142sed 's/^/| /' conftest.$ac_ext >&5 20143 20144 20145fi 20146 20147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20148 conftest$ac_exeext 20149 if test "${ac_cv_search_opendir+set}" = set; then 20150 break 20151fi 20152done 20153if test "${ac_cv_search_opendir+set}" = set; then 20154 : 20155else 20156 ac_cv_search_opendir=no 20157fi 20158rm conftest.$ac_ext 20159LIBS=$ac_func_search_save_LIBS 20160fi 20161{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20162echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 20163ac_res=$ac_cv_search_opendir 20164if test "$ac_res" != no; then 20165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20166 20167fi 20168 20169fi 20170 20171 20172for ac_header in pwd.h 20173do 20174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20176 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20179 echo $ECHO_N "(cached) $ECHO_C" >&6 20180fi 20181ac_res=`eval echo '${'$as_ac_Header'}'` 20182 { echo "$as_me:$LINENO: result: $ac_res" >&5 20183echo "${ECHO_T}$ac_res" >&6; } 20184else 20185 # Is the header compilable? 20186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20188cat >conftest.$ac_ext <<_ACEOF 20189/* confdefs.h. */ 20190_ACEOF 20191cat confdefs.h >>conftest.$ac_ext 20192cat >>conftest.$ac_ext <<_ACEOF 20193/* end confdefs.h. */ 20194$ac_includes_default 20195#include <$ac_header> 20196_ACEOF 20197rm -f conftest.$ac_objext 20198if { (ac_try="$ac_compile" 20199case "(($ac_try" in 20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20201 *) ac_try_echo=$ac_try;; 20202esac 20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20204 (eval "$ac_compile") 2>conftest.er1 20205 ac_status=$? 20206 grep -v '^ *+' conftest.er1 >conftest.err 20207 rm -f conftest.er1 20208 cat conftest.err >&5 20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20210 (exit $ac_status); } && { 20211 test -z "$ac_c_werror_flag" || 20212 test ! -s conftest.err 20213 } && test -s conftest.$ac_objext; then 20214 ac_header_compiler=yes 20215else 20216 echo "$as_me: failed program was:" >&5 20217sed 's/^/| /' conftest.$ac_ext >&5 20218 20219 ac_header_compiler=no 20220fi 20221 20222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20224echo "${ECHO_T}$ac_header_compiler" >&6; } 20225 20226# Is the header present? 20227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20229cat >conftest.$ac_ext <<_ACEOF 20230/* confdefs.h. */ 20231_ACEOF 20232cat confdefs.h >>conftest.$ac_ext 20233cat >>conftest.$ac_ext <<_ACEOF 20234/* end confdefs.h. */ 20235#include <$ac_header> 20236_ACEOF 20237if { (ac_try="$ac_cpp conftest.$ac_ext" 20238case "(($ac_try" in 20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20240 *) ac_try_echo=$ac_try;; 20241esac 20242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20244 ac_status=$? 20245 grep -v '^ *+' conftest.er1 >conftest.err 20246 rm -f conftest.er1 20247 cat conftest.err >&5 20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20249 (exit $ac_status); } >/dev/null && { 20250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20251 test ! -s conftest.err 20252 }; then 20253 ac_header_preproc=yes 20254else 20255 echo "$as_me: failed program was:" >&5 20256sed 's/^/| /' conftest.$ac_ext >&5 20257 20258 ac_header_preproc=no 20259fi 20260 20261rm -f conftest.err conftest.$ac_ext 20262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20263echo "${ECHO_T}$ac_header_preproc" >&6; } 20264 20265# So? What about this header? 20266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20267 yes:no: ) 20268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20272 ac_header_preproc=yes 20273 ;; 20274 no:yes:* ) 20275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20282echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20287 ( cat <<\_ASBOX 20288## ----------------------------------------- ## 20289## Report this to matteo.vescovi@yahoo.co.uk ## 20290## ----------------------------------------- ## 20291_ASBOX 20292 ) | sed "s/^/$as_me: WARNING: /" >&2 20293 ;; 20294esac 20295{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20298 echo $ECHO_N "(cached) $ECHO_C" >&6 20299else 20300 eval "$as_ac_Header=\$ac_header_preproc" 20301fi 20302ac_res=`eval echo '${'$as_ac_Header'}'` 20303 { echo "$as_me:$LINENO: result: $ac_res" >&5 20304echo "${ECHO_T}$ac_res" >&6; } 20305 20306fi 20307if test `eval echo '${'$as_ac_Header'}'` = yes; then 20308 cat >>confdefs.h <<_ACEOF 20309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20310_ACEOF 20311 20312fi 20313 20314done 20315 20316 20317{ echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 20318echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; } 20319if test "${ac_cv_lib_curses_initscr+set}" = set; then 20320 echo $ECHO_N "(cached) $ECHO_C" >&6 20321else 20322 ac_check_lib_save_LIBS=$LIBS 20323LIBS="-lncurses $LIBS" 20324cat >conftest.$ac_ext <<_ACEOF 20325/* confdefs.h. */ 20326_ACEOF 20327cat confdefs.h >>conftest.$ac_ext 20328cat >>conftest.$ac_ext <<_ACEOF 20329/* end confdefs.h. */ 20330 20331/* Override any GCC internal prototype to avoid an error. 20332 Use char because int might match the return type of a GCC 20333 builtin and then its argument prototype would still apply. */ 20334#ifdef __cplusplus 20335extern "C" 20336#endif 20337char initscr (); 20338int 20339main () 20340{ 20341return initscr (); 20342 ; 20343 return 0; 20344} 20345_ACEOF 20346rm -f conftest.$ac_objext conftest$ac_exeext 20347if { (ac_try="$ac_link" 20348case "(($ac_try" in 20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20350 *) ac_try_echo=$ac_try;; 20351esac 20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20353 (eval "$ac_link") 2>conftest.er1 20354 ac_status=$? 20355 grep -v '^ *+' conftest.er1 >conftest.err 20356 rm -f conftest.er1 20357 cat conftest.err >&5 20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20359 (exit $ac_status); } && { 20360 test -z "$ac_c_werror_flag" || 20361 test ! -s conftest.err 20362 } && test -s conftest$ac_exeext && 20363 $as_test_x conftest$ac_exeext; then 20364 ac_cv_lib_curses_initscr=yes 20365else 20366 echo "$as_me: failed program was:" >&5 20367sed 's/^/| /' conftest.$ac_ext >&5 20368 20369 ac_cv_lib_curses_initscr=no 20370fi 20371 20372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20373 conftest$ac_exeext conftest.$ac_ext 20374LIBS=$ac_check_lib_save_LIBS 20375fi 20376{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 20377echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; } 20378if test $ac_cv_lib_curses_initscr = yes; then 20379 have_curses_library=true 20380else 20381 { echo "$as_me:$LINENO: WARNING: curses library not found. curses demo programs will not be built." >&5 20382echo "$as_me: WARNING: curses library not found. curses demo programs will not be built." >&2;} 20383fi 20384 20385 20386for ac_header in curses.h 20387do 20388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20390 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20393 echo $ECHO_N "(cached) $ECHO_C" >&6 20394fi 20395ac_res=`eval echo '${'$as_ac_Header'}'` 20396 { echo "$as_me:$LINENO: result: $ac_res" >&5 20397echo "${ECHO_T}$ac_res" >&6; } 20398else 20399 # Is the header compilable? 20400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20402cat >conftest.$ac_ext <<_ACEOF 20403/* confdefs.h. */ 20404_ACEOF 20405cat confdefs.h >>conftest.$ac_ext 20406cat >>conftest.$ac_ext <<_ACEOF 20407/* end confdefs.h. */ 20408$ac_includes_default 20409#include <$ac_header> 20410_ACEOF 20411rm -f conftest.$ac_objext 20412if { (ac_try="$ac_compile" 20413case "(($ac_try" in 20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20415 *) ac_try_echo=$ac_try;; 20416esac 20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20418 (eval "$ac_compile") 2>conftest.er1 20419 ac_status=$? 20420 grep -v '^ *+' conftest.er1 >conftest.err 20421 rm -f conftest.er1 20422 cat conftest.err >&5 20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20424 (exit $ac_status); } && { 20425 test -z "$ac_c_werror_flag" || 20426 test ! -s conftest.err 20427 } && test -s conftest.$ac_objext; then 20428 ac_header_compiler=yes 20429else 20430 echo "$as_me: failed program was:" >&5 20431sed 's/^/| /' conftest.$ac_ext >&5 20432 20433 ac_header_compiler=no 20434fi 20435 20436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20438echo "${ECHO_T}$ac_header_compiler" >&6; } 20439 20440# Is the header present? 20441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20443cat >conftest.$ac_ext <<_ACEOF 20444/* confdefs.h. */ 20445_ACEOF 20446cat confdefs.h >>conftest.$ac_ext 20447cat >>conftest.$ac_ext <<_ACEOF 20448/* end confdefs.h. */ 20449#include <$ac_header> 20450_ACEOF 20451if { (ac_try="$ac_cpp conftest.$ac_ext" 20452case "(($ac_try" in 20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20454 *) ac_try_echo=$ac_try;; 20455esac 20456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20458 ac_status=$? 20459 grep -v '^ *+' conftest.er1 >conftest.err 20460 rm -f conftest.er1 20461 cat conftest.err >&5 20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20463 (exit $ac_status); } >/dev/null && { 20464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20465 test ! -s conftest.err 20466 }; then 20467 ac_header_preproc=yes 20468else 20469 echo "$as_me: failed program was:" >&5 20470sed 's/^/| /' conftest.$ac_ext >&5 20471 20472 ac_header_preproc=no 20473fi 20474 20475rm -f conftest.err conftest.$ac_ext 20476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20477echo "${ECHO_T}$ac_header_preproc" >&6; } 20478 20479# So? What about this header? 20480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20481 yes:no: ) 20482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20486 ac_header_preproc=yes 20487 ;; 20488 no:yes:* ) 20489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20501 ( cat <<\_ASBOX 20502## ----------------------------------------- ## 20503## Report this to matteo.vescovi@yahoo.co.uk ## 20504## ----------------------------------------- ## 20505_ASBOX 20506 ) | sed "s/^/$as_me: WARNING: /" >&2 20507 ;; 20508esac 20509{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20512 echo $ECHO_N "(cached) $ECHO_C" >&6 20513else 20514 eval "$as_ac_Header=\$ac_header_preproc" 20515fi 20516ac_res=`eval echo '${'$as_ac_Header'}'` 20517 { echo "$as_me:$LINENO: result: $ac_res" >&5 20518echo "${ECHO_T}$ac_res" >&6; } 20519 20520fi 20521if test `eval echo '${'$as_ac_Header'}'` = yes; then 20522 cat >>confdefs.h <<_ACEOF 20523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20524_ACEOF 20525 have_curses_header=true 20526else 20527 { echo "$as_me:$LINENO: WARNING: curses header file not found. curses demo programs will not be built." >&5 20528echo "$as_me: WARNING: curses header file not found. curses demo programs will not be built." >&2;} 20529fi 20530 20531done 20532 20533 20534 20535if test "x$have_curses_library" = "xtrue" -a "x$have_curses_header" = "xtrue"; then 20536 HAVE_CURSES_TRUE= 20537 HAVE_CURSES_FALSE='#' 20538else 20539 HAVE_CURSES_TRUE='#' 20540 HAVE_CURSES_FALSE= 20541fi 20542 20543 20544{ echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 20545echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; } 20546if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then 20547 echo $ECHO_N "(cached) $ECHO_C" >&6 20548else 20549 ac_check_lib_save_LIBS=$LIBS 20550LIBS="`pkg-config --static --libs sqlite3` $LIBS" 20551cat >conftest.$ac_ext <<_ACEOF 20552/* confdefs.h. */ 20553_ACEOF 20554cat confdefs.h >>conftest.$ac_ext 20555cat >>conftest.$ac_ext <<_ACEOF 20556/* end confdefs.h. */ 20557 20558/* Override any GCC internal prototype to avoid an error. 20559 Use char because int might match the return type of a GCC 20560 builtin and then its argument prototype would still apply. */ 20561#ifdef __cplusplus 20562extern "C" 20563#endif 20564char sqlite3_open (); 20565int 20566main () 20567{ 20568return sqlite3_open (); 20569 ; 20570 return 0; 20571} 20572_ACEOF 20573rm -f conftest.$ac_objext conftest$ac_exeext 20574if { (ac_try="$ac_link" 20575case "(($ac_try" in 20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20577 *) ac_try_echo=$ac_try;; 20578esac 20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20580 (eval "$ac_link") 2>conftest.er1 20581 ac_status=$? 20582 grep -v '^ *+' conftest.er1 >conftest.err 20583 rm -f conftest.er1 20584 cat conftest.err >&5 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); } && { 20587 test -z "$ac_c_werror_flag" || 20588 test ! -s conftest.err 20589 } && test -s conftest$ac_exeext && 20590 $as_test_x conftest$ac_exeext; then 20591 ac_cv_lib_sqlite3_sqlite3_open=yes 20592else 20593 echo "$as_me: failed program was:" >&5 20594sed 's/^/| /' conftest.$ac_ext >&5 20595 20596 ac_cv_lib_sqlite3_sqlite3_open=no 20597fi 20598 20599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20600 conftest$ac_exeext conftest.$ac_ext 20601LIBS=$ac_check_lib_save_LIBS 20602fi 20603{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20604echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20605if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then 20606 SQLITE_LIBS="`pkg-config --static --libs sqlite3`" && 20607 20608for ac_header in sqlite3.h 20609do 20610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20612 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20615 echo $ECHO_N "(cached) $ECHO_C" >&6 20616fi 20617ac_res=`eval echo '${'$as_ac_Header'}'` 20618 { echo "$as_me:$LINENO: result: $ac_res" >&5 20619echo "${ECHO_T}$ac_res" >&6; } 20620else 20621 # Is the header compilable? 20622{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20624cat >conftest.$ac_ext <<_ACEOF 20625/* confdefs.h. */ 20626_ACEOF 20627cat confdefs.h >>conftest.$ac_ext 20628cat >>conftest.$ac_ext <<_ACEOF 20629/* end confdefs.h. */ 20630$ac_includes_default 20631#include <$ac_header> 20632_ACEOF 20633rm -f conftest.$ac_objext 20634if { (ac_try="$ac_compile" 20635case "(($ac_try" in 20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20637 *) ac_try_echo=$ac_try;; 20638esac 20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20640 (eval "$ac_compile") 2>conftest.er1 20641 ac_status=$? 20642 grep -v '^ *+' conftest.er1 >conftest.err 20643 rm -f conftest.er1 20644 cat conftest.err >&5 20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20646 (exit $ac_status); } && { 20647 test -z "$ac_c_werror_flag" || 20648 test ! -s conftest.err 20649 } && test -s conftest.$ac_objext; then 20650 ac_header_compiler=yes 20651else 20652 echo "$as_me: failed program was:" >&5 20653sed 's/^/| /' conftest.$ac_ext >&5 20654 20655 ac_header_compiler=no 20656fi 20657 20658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20659{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20660echo "${ECHO_T}$ac_header_compiler" >&6; } 20661 20662# Is the header present? 20663{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20665cat >conftest.$ac_ext <<_ACEOF 20666/* confdefs.h. */ 20667_ACEOF 20668cat confdefs.h >>conftest.$ac_ext 20669cat >>conftest.$ac_ext <<_ACEOF 20670/* end confdefs.h. */ 20671#include <$ac_header> 20672_ACEOF 20673if { (ac_try="$ac_cpp conftest.$ac_ext" 20674case "(($ac_try" in 20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20676 *) ac_try_echo=$ac_try;; 20677esac 20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20680 ac_status=$? 20681 grep -v '^ *+' conftest.er1 >conftest.err 20682 rm -f conftest.er1 20683 cat conftest.err >&5 20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20685 (exit $ac_status); } >/dev/null && { 20686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20687 test ! -s conftest.err 20688 }; then 20689 ac_header_preproc=yes 20690else 20691 echo "$as_me: failed program was:" >&5 20692sed 's/^/| /' conftest.$ac_ext >&5 20693 20694 ac_header_preproc=no 20695fi 20696 20697rm -f conftest.err conftest.$ac_ext 20698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20699echo "${ECHO_T}$ac_header_preproc" >&6; } 20700 20701# So? What about this header? 20702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20703 yes:no: ) 20704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20708 ac_header_preproc=yes 20709 ;; 20710 no:yes:* ) 20711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20723 ( cat <<\_ASBOX 20724## ----------------------------------------- ## 20725## Report this to matteo.vescovi@yahoo.co.uk ## 20726## ----------------------------------------- ## 20727_ASBOX 20728 ) | sed "s/^/$as_me: WARNING: /" >&2 20729 ;; 20730esac 20731{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20734 echo $ECHO_N "(cached) $ECHO_C" >&6 20735else 20736 eval "$as_ac_Header=\$ac_header_preproc" 20737fi 20738ac_res=`eval echo '${'$as_ac_Header'}'` 20739 { echo "$as_me:$LINENO: result: $ac_res" >&5 20740echo "${ECHO_T}$ac_res" >&6; } 20741 20742fi 20743if test `eval echo '${'$as_ac_Header'}'` = yes; then 20744 cat >>confdefs.h <<_ACEOF 20745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20746_ACEOF 20747 { echo "$as_me:$LINENO: using sqlite 3" >&5 20748echo "$as_me: using sqlite 3" >&6;} 20749else 20750 { { echo "$as_me:$LINENO: error: Found sqlite3 library, but cannot find matching sqlite3.h header." >&5 20751echo "$as_me: error: Found sqlite3 library, but cannot find matching sqlite3.h header." >&2;} 20752 { (exit 1); exit 1; }; } 20753fi 20754 20755done 20756 20757else 20758 { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5 20759echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; } 20760if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then 20761 echo $ECHO_N "(cached) $ECHO_C" >&6 20762else 20763 ac_check_lib_save_LIBS=$LIBS 20764LIBS="-lsqlite $LIBS" 20765cat >conftest.$ac_ext <<_ACEOF 20766/* confdefs.h. */ 20767_ACEOF 20768cat confdefs.h >>conftest.$ac_ext 20769cat >>conftest.$ac_ext <<_ACEOF 20770/* end confdefs.h. */ 20771 20772/* Override any GCC internal prototype to avoid an error. 20773 Use char because int might match the return type of a GCC 20774 builtin and then its argument prototype would still apply. */ 20775#ifdef __cplusplus 20776extern "C" 20777#endif 20778char sqlite_open (); 20779int 20780main () 20781{ 20782return sqlite_open (); 20783 ; 20784 return 0; 20785} 20786_ACEOF 20787rm -f conftest.$ac_objext conftest$ac_exeext 20788if { (ac_try="$ac_link" 20789case "(($ac_try" in 20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20791 *) ac_try_echo=$ac_try;; 20792esac 20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20794 (eval "$ac_link") 2>conftest.er1 20795 ac_status=$? 20796 grep -v '^ *+' conftest.er1 >conftest.err 20797 rm -f conftest.er1 20798 cat conftest.err >&5 20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20800 (exit $ac_status); } && { 20801 test -z "$ac_c_werror_flag" || 20802 test ! -s conftest.err 20803 } && test -s conftest$ac_exeext && 20804 $as_test_x conftest$ac_exeext; then 20805 ac_cv_lib_sqlite_sqlite_open=yes 20806else 20807 echo "$as_me: failed program was:" >&5 20808sed 's/^/| /' conftest.$ac_ext >&5 20809 20810 ac_cv_lib_sqlite_sqlite_open=no 20811fi 20812 20813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20814 conftest$ac_exeext conftest.$ac_ext 20815LIBS=$ac_check_lib_save_LIBS 20816fi 20817{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20818echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; } 20819if test $ac_cv_lib_sqlite_sqlite_open = yes; then 20820 SQLITE_LIBS="-lsqlite" && \ 20821 20822for ac_header in sqlite.h 20823do 20824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20826 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20829 echo $ECHO_N "(cached) $ECHO_C" >&6 20830fi 20831ac_res=`eval echo '${'$as_ac_Header'}'` 20832 { echo "$as_me:$LINENO: result: $ac_res" >&5 20833echo "${ECHO_T}$ac_res" >&6; } 20834else 20835 # Is the header compilable? 20836{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20838cat >conftest.$ac_ext <<_ACEOF 20839/* confdefs.h. */ 20840_ACEOF 20841cat confdefs.h >>conftest.$ac_ext 20842cat >>conftest.$ac_ext <<_ACEOF 20843/* end confdefs.h. */ 20844$ac_includes_default 20845#include <$ac_header> 20846_ACEOF 20847rm -f conftest.$ac_objext 20848if { (ac_try="$ac_compile" 20849case "(($ac_try" in 20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20851 *) ac_try_echo=$ac_try;; 20852esac 20853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20854 (eval "$ac_compile") 2>conftest.er1 20855 ac_status=$? 20856 grep -v '^ *+' conftest.er1 >conftest.err 20857 rm -f conftest.er1 20858 cat conftest.err >&5 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); } && { 20861 test -z "$ac_c_werror_flag" || 20862 test ! -s conftest.err 20863 } && test -s conftest.$ac_objext; then 20864 ac_header_compiler=yes 20865else 20866 echo "$as_me: failed program was:" >&5 20867sed 's/^/| /' conftest.$ac_ext >&5 20868 20869 ac_header_compiler=no 20870fi 20871 20872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20874echo "${ECHO_T}$ac_header_compiler" >&6; } 20875 20876# Is the header present? 20877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20879cat >conftest.$ac_ext <<_ACEOF 20880/* confdefs.h. */ 20881_ACEOF 20882cat confdefs.h >>conftest.$ac_ext 20883cat >>conftest.$ac_ext <<_ACEOF 20884/* end confdefs.h. */ 20885#include <$ac_header> 20886_ACEOF 20887if { (ac_try="$ac_cpp conftest.$ac_ext" 20888case "(($ac_try" in 20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20890 *) ac_try_echo=$ac_try;; 20891esac 20892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20894 ac_status=$? 20895 grep -v '^ *+' conftest.er1 >conftest.err 20896 rm -f conftest.er1 20897 cat conftest.err >&5 20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20899 (exit $ac_status); } >/dev/null && { 20900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20901 test ! -s conftest.err 20902 }; then 20903 ac_header_preproc=yes 20904else 20905 echo "$as_me: failed program was:" >&5 20906sed 's/^/| /' conftest.$ac_ext >&5 20907 20908 ac_header_preproc=no 20909fi 20910 20911rm -f conftest.err conftest.$ac_ext 20912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20913echo "${ECHO_T}$ac_header_preproc" >&6; } 20914 20915# So? What about this header? 20916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20917 yes:no: ) 20918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20922 ac_header_preproc=yes 20923 ;; 20924 no:yes:* ) 20925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20937 ( cat <<\_ASBOX 20938## ----------------------------------------- ## 20939## Report this to matteo.vescovi@yahoo.co.uk ## 20940## ----------------------------------------- ## 20941_ASBOX 20942 ) | sed "s/^/$as_me: WARNING: /" >&2 20943 ;; 20944esac 20945{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20948 echo $ECHO_N "(cached) $ECHO_C" >&6 20949else 20950 eval "$as_ac_Header=\$ac_header_preproc" 20951fi 20952ac_res=`eval echo '${'$as_ac_Header'}'` 20953 { echo "$as_me:$LINENO: result: $ac_res" >&5 20954echo "${ECHO_T}$ac_res" >&6; } 20955 20956fi 20957if test `eval echo '${'$as_ac_Header'}'` = yes; then 20958 cat >>confdefs.h <<_ACEOF 20959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20960_ACEOF 20961 { echo "$as_me:$LINENO: using sqlite 2" >&5 20962echo "$as_me: using sqlite 2" >&6;} 20963else 20964 { { echo "$as_me:$LINENO: error: Found sqlite 2 library, but cannot find matching sqlite.h header." >&5 20965echo "$as_me: error: Found sqlite 2 library, but cannot find matching sqlite.h header." >&2;} 20966 { (exit 1); exit 1; }; } 20967fi 20968 20969done 20970 20971else 20972 { { echo "$as_me:$LINENO: error: SQLite library not found. SQLite can be obtained from http://sqlite.org." >&5 20973echo "$as_me: error: SQLite library not found. SQLite can be obtained from http://sqlite.org." >&2;} 20974 { (exit 1); exit 1; }; } 20975fi 20976 20977fi 20978 20979SQLITE_LIBS="$SQLITE_LIBS" 20980 20981 20982 20983 20984 20985 20986# Check whether --with-cppunit-prefix was given. 20987if test "${with_cppunit_prefix+set}" = set; then 20988 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" 20989else 20990 cppunit_config_prefix="" 20991fi 20992 20993 20994# Check whether --with-cppunit-exec-prefix was given. 20995if test "${with_cppunit_exec_prefix+set}" = set; then 20996 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" 20997else 20998 cppunit_config_exec_prefix="" 20999fi 21000 21001 21002 if test x$cppunit_config_exec_prefix != x ; then 21003 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" 21004 if test x${CPPUNIT_CONFIG+set} != xset ; then 21005 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config 21006 fi 21007 fi 21008 if test x$cppunit_config_prefix != x ; then 21009 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" 21010 if test x${CPPUNIT_CONFIG+set} != xset ; then 21011 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config 21012 fi 21013 fi 21014 21015 # Extract the first word of "cppunit-config", so it can be a program name with args. 21016set dummy cppunit-config; ac_word=$2 21017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21019if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then 21020 echo $ECHO_N "(cached) $ECHO_C" >&6 21021else 21022 case $CPPUNIT_CONFIG in 21023 [\\/]* | ?:[\\/]*) 21024 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. 21025 ;; 21026 *) 21027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21028for as_dir in $PATH 21029do 21030 IFS=$as_save_IFS 21031 test -z "$as_dir" && as_dir=. 21032 for ac_exec_ext in '' $ac_executable_extensions; do 21033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21034 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21036 break 2 21037 fi 21038done 21039done 21040IFS=$as_save_IFS 21041 21042 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" 21043 ;; 21044esac 21045fi 21046CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG 21047if test -n "$CPPUNIT_CONFIG"; then 21048 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 21049echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; } 21050else 21051 { echo "$as_me:$LINENO: result: no" >&5 21052echo "${ECHO_T}no" >&6; } 21053fi 21054 21055 21056 cppunit_version_min=1.9.6 21057 21058 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 21059echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; } 21060 no_cppunit="" 21061 if test "$CPPUNIT_CONFIG" = "no" ; then 21062 { echo "$as_me:$LINENO: result: no" >&5 21063echo "${ECHO_T}no" >&6; } 21064 no_cppunit=yes 21065 else 21066 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` 21067 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` 21068 cppunit_version=`$CPPUNIT_CONFIG --version` 21069 21070 cppunit_major_version=`echo $cppunit_version | \ 21071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21072 cppunit_minor_version=`echo $cppunit_version | \ 21073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21074 cppunit_micro_version=`echo $cppunit_version | \ 21075 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21076 21077 cppunit_major_min=`echo $cppunit_version_min | \ 21078 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21079 if test "x${cppunit_major_min}" = "x" ; then 21080 cppunit_major_min=0 21081 fi 21082 21083 cppunit_minor_min=`echo $cppunit_version_min | \ 21084 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21085 if test "x${cppunit_minor_min}" = "x" ; then 21086 cppunit_minor_min=0 21087 fi 21088 21089 cppunit_micro_min=`echo $cppunit_version_min | \ 21090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21091 if test "x${cppunit_micro_min}" = "x" ; then 21092 cppunit_micro_min=0 21093 fi 21094 21095 cppunit_version_proper=`expr \ 21096 $cppunit_major_version \> $cppunit_major_min \| \ 21097 $cppunit_major_version \= $cppunit_major_min \& \ 21098 $cppunit_minor_version \> $cppunit_minor_min \| \ 21099 $cppunit_major_version \= $cppunit_major_min \& \ 21100 $cppunit_minor_version \= $cppunit_minor_min \& \ 21101 $cppunit_micro_version \>= $cppunit_micro_min ` 21102 21103 if test "$cppunit_version_proper" = "1" ; then 21104 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 21105echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } 21106 else 21107 { echo "$as_me:$LINENO: result: no" >&5 21108echo "${ECHO_T}no" >&6; } 21109 no_cppunit=yes 21110 fi 21111 fi 21112 21113 if test "x$no_cppunit" = x ; then 21114 : 21115 else 21116 CPPUNIT_CFLAGS="" 21117 CPPUNIT_LIBS="" 21118 { echo "$as_me:$LINENO: WARNING: CppUnit not found. Unit tests will not be built. CppUnit can be obtained from http://cppunit.sourceforge.net." >&5 21119echo "$as_me: WARNING: CppUnit not found. Unit tests will not be built. CppUnit can be obtained from http://cppunit.sourceforge.net." >&2;} 21120 fi 21121 21122 21123 21124 21125 21126 21127if test "$CPPUNIT_LIBS"; then 21128 HAVE_CPPUNIT_TRUE= 21129 HAVE_CPPUNIT_FALSE='#' 21130else 21131 HAVE_CPPUNIT_TRUE='#' 21132 HAVE_CPPUNIT_FALSE= 21133fi 21134 21135 21136 21137 21138# Extract the first word of "swig", so it can be a program name with args. 21139set dummy swig; ac_word=$2 21140{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21142if test "${ac_cv_path_SWIG+set}" = set; then 21143 echo $ECHO_N "(cached) $ECHO_C" >&6 21144else 21145 case $SWIG in 21146 [\\/]* | ?:[\\/]*) 21147 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 21148 ;; 21149 *) 21150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21151for as_dir in $PATH 21152do 21153 IFS=$as_save_IFS 21154 test -z "$as_dir" && as_dir=. 21155 for ac_exec_ext in '' $ac_executable_extensions; do 21156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21157 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 21158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21159 break 2 21160 fi 21161done 21162done 21163IFS=$as_save_IFS 21164 21165 ;; 21166esac 21167fi 21168SWIG=$ac_cv_path_SWIG 21169if test -n "$SWIG"; then 21170 { echo "$as_me:$LINENO: result: $SWIG" >&5 21171echo "${ECHO_T}$SWIG" >&6; } 21172else 21173 { echo "$as_me:$LINENO: result: no" >&5 21174echo "${ECHO_T}no" >&6; } 21175fi 21176 21177 21178 21179 21180if test "$SWIG"; then 21181 HAVE_SWIG_TRUE= 21182 HAVE_SWIG_FALSE='#' 21183else 21184 HAVE_SWIG_TRUE='#' 21185 HAVE_SWIG_FALSE= 21186fi 21187 21188 21189 21190 21191 21192 21193 21194 if test -n "$PYTHON"; then 21195 # If the user set $PYTHON, use it and don't search something else. 21196 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.0" >&5 21197echo $ECHO_N "checking whether $PYTHON version >= 2.0... $ECHO_C" >&6; } 21198 prog="import sys, string 21199# split strings by '.' and convert to numeric. Append some zeros 21200# because we need at least 4 digits for the hex conversion. 21201minver = map(int, string.split('2.0', '.')) + [0, 0, 0] 21202minverhex = 0 21203for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] 21204sys.exit(sys.hexversion < minverhex)" 21205 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 21206 ($PYTHON -c "$prog") >&5 2>&5 21207 ac_status=$? 21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21209 (exit $ac_status); }; then 21210 { echo "$as_me:$LINENO: result: yes" >&5 21211echo "${ECHO_T}yes" >&6; } 21212else 21213 { { echo "$as_me:$LINENO: error: too old" >&5 21214echo "$as_me: error: too old" >&2;} 21215 { (exit 1); exit 1; }; } 21216fi 21217 21218 am_display_PYTHON=$PYTHON 21219 else 21220 # Otherwise, try each interpreter until we find one that satisfies 21221 # VERSION. 21222 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.0" >&5 21223echo $ECHO_N "checking for a Python interpreter with version >= 2.0... $ECHO_C" >&6; } 21224if test "${am_cv_pathless_PYTHON+set}" = set; then 21225 echo $ECHO_N "(cached) $ECHO_C" >&6 21226else 21227 21228 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do 21229 test "$am_cv_pathless_PYTHON" = none && break 21230 prog="import sys, string 21231# split strings by '.' and convert to numeric. Append some zeros 21232# because we need at least 4 digits for the hex conversion. 21233minver = map(int, string.split('2.0', '.')) + [0, 0, 0] 21234minverhex = 0 21235for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] 21236sys.exit(sys.hexversion < minverhex)" 21237 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 21238 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 21239 ac_status=$? 21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21241 (exit $ac_status); }; then 21242 break 21243fi 21244 21245 done 21246fi 21247{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5 21248echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; } 21249 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 21250 if test "$am_cv_pathless_PYTHON" = none; then 21251 PYTHON=: 21252 else 21253 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 21254set dummy $am_cv_pathless_PYTHON; ac_word=$2 21255{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21257if test "${ac_cv_path_PYTHON+set}" = set; then 21258 echo $ECHO_N "(cached) $ECHO_C" >&6 21259else 21260 case $PYTHON in 21261 [\\/]* | ?:[\\/]*) 21262 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 21263 ;; 21264 *) 21265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21266for as_dir in $PATH 21267do 21268 IFS=$as_save_IFS 21269 test -z "$as_dir" && as_dir=. 21270 for ac_exec_ext in '' $ac_executable_extensions; do 21271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21272 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 21273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21274 break 2 21275 fi 21276done 21277done 21278IFS=$as_save_IFS 21279 21280 ;; 21281esac 21282fi 21283PYTHON=$ac_cv_path_PYTHON 21284if test -n "$PYTHON"; then 21285 { echo "$as_me:$LINENO: result: $PYTHON" >&5 21286echo "${ECHO_T}$PYTHON" >&6; } 21287else 21288 { echo "$as_me:$LINENO: result: no" >&5 21289echo "${ECHO_T}no" >&6; } 21290fi 21291 21292 21293 fi 21294 am_display_PYTHON=$am_cv_pathless_PYTHON 21295 fi 21296 21297 21298 if test "$PYTHON" = :; then 21299 { echo "$as_me:$LINENO: WARNING: Python not found. Python is required to build soothsayer python binding. Python can be obtained from http://www.python.org" >&5 21300echo "$as_me: WARNING: Python not found. Python is required to build soothsayer python binding. Python can be obtained from http://www.python.org" >&2;} 21301 else 21302 21303 21304 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5 21305echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; } 21306if test "${am_cv_python_version+set}" = set; then 21307 echo $ECHO_N "(cached) $ECHO_C" >&6 21308else 21309 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"` 21310fi 21311{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5 21312echo "${ECHO_T}$am_cv_python_version" >&6; } 21313 PYTHON_VERSION=$am_cv_python_version 21314 21315 21316 21317 PYTHON_PREFIX='${prefix}' 21318 21319 PYTHON_EXEC_PREFIX='${exec_prefix}' 21320 21321 21322 21323 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5 21324echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; } 21325if test "${am_cv_python_platform+set}" = set; then 21326 echo $ECHO_N "(cached) $ECHO_C" >&6 21327else 21328 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"` 21329fi 21330{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5 21331echo "${ECHO_T}$am_cv_python_platform" >&6; } 21332 PYTHON_PLATFORM=$am_cv_python_platform 21333 21334 21335 21336 21337 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5 21338echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; } 21339if test "${am_cv_python_pythondir+set}" = set; then 21340 echo $ECHO_N "(cached) $ECHO_C" >&6 21341else 21342 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || 21343 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 21344fi 21345{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 21346echo "${ECHO_T}$am_cv_python_pythondir" >&6; } 21347 pythondir=$am_cv_python_pythondir 21348 21349 21350 21351 pkgpythondir=\${pythondir}/$PACKAGE 21352 21353 21354 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5 21355echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; } 21356if test "${am_cv_python_pyexecdir+set}" = set; then 21357 echo $ECHO_N "(cached) $ECHO_C" >&6 21358else 21359 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || 21360 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` 21361fi 21362{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 21363echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; } 21364 pyexecdir=$am_cv_python_pyexecdir 21365 21366 21367 21368 pkgpyexecdir=\${pyexecdir}/$PACKAGE 21369 21370 21371 21372 fi 21373 21374 21375if test "$PYTHON" 21376then 21377 python_include_path=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc();"` 21378 21379for ac_header in ${python_include_path}/Python.h 21380do 21381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21386 echo $ECHO_N "(cached) $ECHO_C" >&6 21387fi 21388ac_res=`eval echo '${'$as_ac_Header'}'` 21389 { echo "$as_me:$LINENO: result: $ac_res" >&5 21390echo "${ECHO_T}$ac_res" >&6; } 21391else 21392 # Is the header compilable? 21393{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21395cat >conftest.$ac_ext <<_ACEOF 21396/* confdefs.h. */ 21397_ACEOF 21398cat confdefs.h >>conftest.$ac_ext 21399cat >>conftest.$ac_ext <<_ACEOF 21400/* end confdefs.h. */ 21401$ac_includes_default 21402#include <$ac_header> 21403_ACEOF 21404rm -f conftest.$ac_objext 21405if { (ac_try="$ac_compile" 21406case "(($ac_try" in 21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21408 *) ac_try_echo=$ac_try;; 21409esac 21410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21411 (eval "$ac_compile") 2>conftest.er1 21412 ac_status=$? 21413 grep -v '^ *+' conftest.er1 >conftest.err 21414 rm -f conftest.er1 21415 cat conftest.err >&5 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); } && { 21418 test -z "$ac_c_werror_flag" || 21419 test ! -s conftest.err 21420 } && test -s conftest.$ac_objext; then 21421 ac_header_compiler=yes 21422else 21423 echo "$as_me: failed program was:" >&5 21424sed 's/^/| /' conftest.$ac_ext >&5 21425 21426 ac_header_compiler=no 21427fi 21428 21429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21431echo "${ECHO_T}$ac_header_compiler" >&6; } 21432 21433# Is the header present? 21434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21436cat >conftest.$ac_ext <<_ACEOF 21437/* confdefs.h. */ 21438_ACEOF 21439cat confdefs.h >>conftest.$ac_ext 21440cat >>conftest.$ac_ext <<_ACEOF 21441/* end confdefs.h. */ 21442#include <$ac_header> 21443_ACEOF 21444if { (ac_try="$ac_cpp conftest.$ac_ext" 21445case "(($ac_try" in 21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21447 *) ac_try_echo=$ac_try;; 21448esac 21449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21451 ac_status=$? 21452 grep -v '^ *+' conftest.er1 >conftest.err 21453 rm -f conftest.er1 21454 cat conftest.err >&5 21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21456 (exit $ac_status); } >/dev/null && { 21457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21458 test ! -s conftest.err 21459 }; then 21460 ac_header_preproc=yes 21461else 21462 echo "$as_me: failed program was:" >&5 21463sed 's/^/| /' conftest.$ac_ext >&5 21464 21465 ac_header_preproc=no 21466fi 21467 21468rm -f conftest.err conftest.$ac_ext 21469{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21470echo "${ECHO_T}$ac_header_preproc" >&6; } 21471 21472# So? What about this header? 21473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21474 yes:no: ) 21475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21479 ac_header_preproc=yes 21480 ;; 21481 no:yes:* ) 21482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21494 ( cat <<\_ASBOX 21495## ----------------------------------------- ## 21496## Report this to matteo.vescovi@yahoo.co.uk ## 21497## ----------------------------------------- ## 21498_ASBOX 21499 ) | sed "s/^/$as_me: WARNING: /" >&2 21500 ;; 21501esac 21502{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21505 echo $ECHO_N "(cached) $ECHO_C" >&6 21506else 21507 eval "$as_ac_Header=\$ac_header_preproc" 21508fi 21509ac_res=`eval echo '${'$as_ac_Header'}'` 21510 { echo "$as_me:$LINENO: result: $ac_res" >&5 21511echo "${ECHO_T}$ac_res" >&6; } 21512 21513fi 21514if test `eval echo '${'$as_ac_Header'}'` = yes; then 21515 cat >>confdefs.h <<_ACEOF 21516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21517_ACEOF 21518 have_python_header=true 21519else 21520 { echo "$as_me:$LINENO: WARNING: Python.h header file not found. Python development files are required to build soothsayer python binding. Python can be obtained from http://www.python.org" >&5 21521echo "$as_me: WARNING: Python.h header file not found. Python development files are required to build soothsayer python binding. Python can be obtained from http://www.python.org" >&2;} 21522fi 21523 21524done 21525 21526fi 21527 21528 21529if test "$PYTHON" -a "x$have_python_header" = "xtrue"; then 21530 HAVE_PYTHON_TRUE= 21531 HAVE_PYTHON_FALSE='#' 21532else 21533 HAVE_PYTHON_TRUE='#' 21534 HAVE_PYTHON_FALSE= 21535fi 21536 21537 21538 21539# Check whether --enable-python-binding was given. 21540if test "${enable_python_binding+set}" = set; then 21541 enableval=$enable_python_binding; ac_enable_python_binding=no 21542else 21543 ac_enable_python_binding=yes 21544fi 21545 21546if test "x$ac_enable_python_binding" = "xyes" 21547then 21548 if test ! "$SWIG" -o ! "$PYTHON" -o ! "x$have_python_header" = "xtrue" 21549 then 21550 { echo "$as_me:$LINENO: WARNING: Python binding for soothsayer cannot be built. Ensure that SWIG and Python packages are available." >&5 21551echo "$as_me: WARNING: Python binding for soothsayer cannot be built. Ensure that SWIG and Python packages are available." >&2;} 21552 fi 21553else 21554 { echo "$as_me:$LINENO: Python binding for soothsayer will not be built." >&5 21555echo "$as_me: Python binding for soothsayer will not be built." >&6;} 21556 { echo "$as_me:$LINENO: Enable Python binding module building with --enable-python-binding" >&5 21557echo "$as_me: Enable Python binding module building with --enable-python-binding" >&6;} 21558fi 21559 21560 21561if test "x$ac_enable_python_binding" = "xyes"; then 21562 ENABLE_PYTHON_BINDING_TRUE= 21563 ENABLE_PYTHON_BINDING_FALSE='#' 21564else 21565 ENABLE_PYTHON_BINDING_TRUE='#' 21566 ENABLE_PYTHON_BINDING_FALSE= 21567fi 21568 21569 21570 21571# Extract the first word of "doxygen", so it can be a program name with args. 21572set dummy doxygen; ac_word=$2 21573{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21575if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then 21576 echo $ECHO_N "(cached) $ECHO_C" >&6 21577else 21578 if test -n "$HAVE_DOXYGEN"; then 21579 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 21580else 21581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21582for as_dir in $PATH 21583do 21584 IFS=$as_save_IFS 21585 test -z "$as_dir" && as_dir=. 21586 for ac_exec_ext in '' $ac_executable_extensions; do 21587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21588 ac_cv_prog_HAVE_DOXYGEN="yes" 21589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21590 break 2 21591 fi 21592done 21593done 21594IFS=$as_save_IFS 21595 21596 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no" 21597fi 21598fi 21599HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 21600if test -n "$HAVE_DOXYGEN"; then 21601 { echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 21602echo "${ECHO_T}$HAVE_DOXYGEN" >&6; } 21603else 21604 { echo "$as_me:$LINENO: result: no" >&5 21605echo "${ECHO_T}no" >&6; } 21606fi 21607 21608 21609if test "x$HAVE_DOXYGEN" = "xno" 21610then 21611 { echo "$as_me:$LINENO: Doxygen not found. API documentation will not be built." >&5 21612echo "$as_me: Doxygen not found. API documentation will not be built." >&6;} 21613fi 21614 21615 21616if test "x$HAVE_DOXYGEN" = "xyes"; then 21617 HAVE_DOXYGEN_TRUE= 21618 HAVE_DOXYGEN_FALSE='#' 21619else 21620 HAVE_DOXYGEN_TRUE='#' 21621 HAVE_DOXYGEN_FALSE= 21622fi 21623 21624 21625 21626# Extract the first word of "dot", so it can be a program name with args. 21627set dummy dot; ac_word=$2 21628{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21630if test "${ac_cv_prog_HAVE_DOT+set}" = set; then 21631 echo $ECHO_N "(cached) $ECHO_C" >&6 21632else 21633 if test -n "$HAVE_DOT"; then 21634 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test. 21635else 21636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21637for as_dir in $PATH 21638do 21639 IFS=$as_save_IFS 21640 test -z "$as_dir" && as_dir=. 21641 for ac_exec_ext in '' $ac_executable_extensions; do 21642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21643 ac_cv_prog_HAVE_DOT="yes" 21644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21645 break 2 21646 fi 21647done 21648done 21649IFS=$as_save_IFS 21650 21651 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no" 21652fi 21653fi 21654HAVE_DOT=$ac_cv_prog_HAVE_DOT 21655if test -n "$HAVE_DOT"; then 21656 { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5 21657echo "${ECHO_T}$HAVE_DOT" >&6; } 21658else 21659 { echo "$as_me:$LINENO: result: no" >&5 21660echo "${ECHO_T}no" >&6; } 21661fi 21662 21663 21664if test "x$HAVE_DOT" = "xno" 21665then 21666 { echo "$as_me:$LINENO: dot not found. Documentation graphs and diagrams will not be generated." >&5 21667echo "$as_me: dot not found. Documentation graphs and diagrams will not be generated." >&6;} 21668fi 21669HAVE_DOT="$HAVE_DOT" 21670 21671 21672 21673# Extract the first word of "help2man", so it can be a program name with args. 21674set dummy help2man; ac_word=$2 21675{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21677if test "${ac_cv_prog_HAVE_HELP2MAN+set}" = set; then 21678 echo $ECHO_N "(cached) $ECHO_C" >&6 21679else 21680 if test -n "$HAVE_HELP2MAN"; then 21681 ac_cv_prog_HAVE_HELP2MAN="$HAVE_HELP2MAN" # Let the user override the test. 21682else 21683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21684for as_dir in $PATH 21685do 21686 IFS=$as_save_IFS 21687 test -z "$as_dir" && as_dir=. 21688 for ac_exec_ext in '' $ac_executable_extensions; do 21689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21690 ac_cv_prog_HAVE_HELP2MAN="yes" 21691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21692 break 2 21693 fi 21694done 21695done 21696IFS=$as_save_IFS 21697 21698 test -z "$ac_cv_prog_HAVE_HELP2MAN" && ac_cv_prog_HAVE_HELP2MAN="no" 21699fi 21700fi 21701HAVE_HELP2MAN=$ac_cv_prog_HAVE_HELP2MAN 21702if test -n "$HAVE_HELP2MAN"; then 21703 { echo "$as_me:$LINENO: result: $HAVE_HELP2MAN" >&5 21704echo "${ECHO_T}$HAVE_HELP2MAN" >&6; } 21705else 21706 { echo "$as_me:$LINENO: result: no" >&5 21707echo "${ECHO_T}no" >&6; } 21708fi 21709 21710 21711if test "x$HAVE_HELP2MAN" = "xno" 21712then 21713 { echo "$as_me:$LINENO: help2man not found. Man documentation pages will not be built." >&5 21714echo "$as_me: help2man not found. Man documentation pages will not be built." >&6;} 21715fi 21716 21717 21718if test "x$HAVE_HELP2MAN" = "xyes"; then 21719 HAVE_HELP2MAN_TRUE= 21720 HAVE_HELP2MAN_FALSE='#' 21721else 21722 HAVE_HELP2MAN_TRUE='#' 21723 HAVE_HELP2MAN_FALSE= 21724fi 21725 21726 21727 21728############################ 21729# Temporarily disabling this 21730#AC_CONFIG_SUBDIRS(src/plump) 21731 21732 21733ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/core/Makefile src/lib/core/tokenizer/Makefile src/lib/core/dbconnector/Makefile src/lib/simulator/Makefile src/lib/tinyxml/Makefile src/lib/plugins/Makefile src/tools/Makefile test/Makefile test/lib/Makefile test/lib/core/Makefile test/lib/core/tokenizer/Makefile test/lib/core/dbconnector/Makefile test/lib/plugins/Makefile test/lib/simulator/Makefile test/tools/Makefile test/integration/Makefile resources/Makefile resources/profiles/Makefile bindings/Makefile bindings/python/setup.py bindings/python/Makefile doc/Doxyfile doc/Makefile setup.py bindings/python/soothsayer_python_demo bindings/python/soothsayer_prompter" 21734 21735cat >confcache <<\_ACEOF 21736# This file is a shell script that caches the results of configure 21737# tests run on this system so they can be shared between configure 21738# scripts and configure runs, see configure's option --config-cache. 21739# It is not useful on other systems. If it contains results you don't 21740# want to keep, you may remove or edit it. 21741# 21742# config.status only pays attention to the cache file if you give it 21743# the --recheck option to rerun configure. 21744# 21745# `ac_cv_env_foo' variables (set or unset) will be overridden when 21746# loading this file, other *unset* `ac_cv_foo' will be assigned the 21747# following values. 21748 21749_ACEOF 21750 21751# The following way of writing the cache mishandles newlines in values, 21752# but we know of no workaround that is simple, portable, and efficient. 21753# So, we kill variables containing newlines. 21754# Ultrix sh set writes to stderr and can't be redirected directly, 21755# and sets the high bit in the cache file unless we assign to the vars. 21756( 21757 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21758 eval ac_val=\$$ac_var 21759 case $ac_val in #( 21760 *${as_nl}*) 21761 case $ac_var in #( 21762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21763echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21764 esac 21765 case $ac_var in #( 21766 _ | IFS | as_nl) ;; #( 21767 *) $as_unset $ac_var ;; 21768 esac ;; 21769 esac 21770 done 21771 21772 (set) 2>&1 | 21773 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21774 *${as_nl}ac_space=\ *) 21775 # `set' does not quote correctly, so add quotes (double-quote 21776 # substitution turns \\\\ into \\, and sed turns \\ into \). 21777 sed -n \ 21778 "s/'/'\\\\''/g; 21779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21780 ;; #( 21781 *) 21782 # `set' quotes correctly as required by POSIX, so do not add quotes. 21783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21784 ;; 21785 esac | 21786 sort 21787) | 21788 sed ' 21789 /^ac_cv_env_/b end 21790 t clear 21791 :clear 21792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21793 t end 21794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21795 :end' >>confcache 21796if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21797 if test -w "$cache_file"; then 21798 test "x$cache_file" != "x/dev/null" && 21799 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21800echo "$as_me: updating cache $cache_file" >&6;} 21801 cat confcache >$cache_file 21802 else 21803 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21804echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21805 fi 21806fi 21807rm -f confcache 21808 21809test "x$prefix" = xNONE && prefix=$ac_default_prefix 21810# Let make expand exec_prefix. 21811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21812 21813DEFS=-DHAVE_CONFIG_H 21814 21815ac_libobjs= 21816ac_ltlibobjs= 21817for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21818 # 1. Remove the extension, and $U if already installed. 21819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21820 ac_i=`echo "$ac_i" | sed "$ac_script"` 21821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21822 # will be set to the directory where LIBOBJS objects are built. 21823 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21824 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21825done 21826LIBOBJS=$ac_libobjs 21827 21828LTLIBOBJS=$ac_ltlibobjs 21829 21830 21831if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21832 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21833Usually this means the macro was only invoked conditionally." >&5 21834echo "$as_me: error: conditional \"AMDEP\" was never defined. 21835Usually this means the macro was only invoked conditionally." >&2;} 21836 { (exit 1); exit 1; }; } 21837fi 21838if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21839 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21840Usually this means the macro was only invoked conditionally." >&5 21841echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21842Usually this means the macro was only invoked conditionally." >&2;} 21843 { (exit 1); exit 1; }; } 21844fi 21845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21846 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21847Usually this means the macro was only invoked conditionally." >&5 21848echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21849Usually this means the macro was only invoked conditionally." >&2;} 21850 { (exit 1); exit 1; }; } 21851fi 21852if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then 21853 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURSES\" was never defined. 21854Usually this means the macro was only invoked conditionally." >&5 21855echo "$as_me: error: conditional \"HAVE_CURSES\" was never defined. 21856Usually this means the macro was only invoked conditionally." >&2;} 21857 { (exit 1); exit 1; }; } 21858fi 21859if test -z "${HAVE_CPPUNIT_TRUE}" && test -z "${HAVE_CPPUNIT_FALSE}"; then 21860 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CPPUNIT\" was never defined. 21861Usually this means the macro was only invoked conditionally." >&5 21862echo "$as_me: error: conditional \"HAVE_CPPUNIT\" was never defined. 21863Usually this means the macro was only invoked conditionally." >&2;} 21864 { (exit 1); exit 1; }; } 21865fi 21866if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then 21867 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SWIG\" was never defined. 21868Usually this means the macro was only invoked conditionally." >&5 21869echo "$as_me: error: conditional \"HAVE_SWIG\" was never defined. 21870Usually this means the macro was only invoked conditionally." >&2;} 21871 { (exit 1); exit 1; }; } 21872fi 21873if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 21874 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined. 21875Usually this means the macro was only invoked conditionally." >&5 21876echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined. 21877Usually this means the macro was only invoked conditionally." >&2;} 21878 { (exit 1); exit 1; }; } 21879fi 21880if test -z "${ENABLE_PYTHON_BINDING_TRUE}" && test -z "${ENABLE_PYTHON_BINDING_FALSE}"; then 21881 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PYTHON_BINDING\" was never defined. 21882Usually this means the macro was only invoked conditionally." >&5 21883echo "$as_me: error: conditional \"ENABLE_PYTHON_BINDING\" was never defined. 21884Usually this means the macro was only invoked conditionally." >&2;} 21885 { (exit 1); exit 1; }; } 21886fi 21887if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 21888 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. 21889Usually this means the macro was only invoked conditionally." >&5 21890echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. 21891Usually this means the macro was only invoked conditionally." >&2;} 21892 { (exit 1); exit 1; }; } 21893fi 21894if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then 21895 { { echo "$as_me:$LINENO: error: conditional \"HAVE_HELP2MAN\" was never defined. 21896Usually this means the macro was only invoked conditionally." >&5 21897echo "$as_me: error: conditional \"HAVE_HELP2MAN\" was never defined. 21898Usually this means the macro was only invoked conditionally." >&2;} 21899 { (exit 1); exit 1; }; } 21900fi 21901 21902: ${CONFIG_STATUS=./config.status} 21903ac_clean_files_save=$ac_clean_files 21904ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21905{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21906echo "$as_me: creating $CONFIG_STATUS" >&6;} 21907cat >$CONFIG_STATUS <<_ACEOF 21908#! $SHELL 21909# Generated by $as_me. 21910# Run this file to recreate the current configuration. 21911# Compiler output produced by configure, useful for debugging 21912# configure, is in config.log if it exists. 21913 21914debug=false 21915ac_cs_recheck=false 21916ac_cs_silent=false 21917SHELL=\${CONFIG_SHELL-$SHELL} 21918_ACEOF 21919 21920cat >>$CONFIG_STATUS <<\_ACEOF 21921## --------------------- ## 21922## M4sh Initialization. ## 21923## --------------------- ## 21924 21925# Be more Bourne compatible 21926DUALCASE=1; export DUALCASE # for MKS sh 21927if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21928 emulate sh 21929 NULLCMD=: 21930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21931 # is contrary to our usage. Disable this feature. 21932 alias -g '${1+"$@"}'='"$@"' 21933 setopt NO_GLOB_SUBST 21934else 21935 case `(set -o) 2>/dev/null` in 21936 *posix*) set -o posix ;; 21937esac 21938 21939fi 21940 21941 21942 21943 21944# PATH needs CR 21945# Avoid depending upon Character Ranges. 21946as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21948as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21949as_cr_digits='0123456789' 21950as_cr_alnum=$as_cr_Letters$as_cr_digits 21951 21952# The user is always right. 21953if test "${PATH_SEPARATOR+set}" != set; then 21954 echo "#! /bin/sh" >conf$$.sh 21955 echo "exit 0" >>conf$$.sh 21956 chmod +x conf$$.sh 21957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21958 PATH_SEPARATOR=';' 21959 else 21960 PATH_SEPARATOR=: 21961 fi 21962 rm -f conf$$.sh 21963fi 21964 21965# Support unset when possible. 21966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21967 as_unset=unset 21968else 21969 as_unset=false 21970fi 21971 21972 21973# IFS 21974# We need space, tab and new line, in precisely that order. Quoting is 21975# there to prevent editors from complaining about space-tab. 21976# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21977# splitting by setting IFS to empty value.) 21978as_nl=' 21979' 21980IFS=" "" $as_nl" 21981 21982# Find who we are. Look in the path if we contain no directory separator. 21983case $0 in 21984 *[\\/]* ) as_myself=$0 ;; 21985 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21986for as_dir in $PATH 21987do 21988 IFS=$as_save_IFS 21989 test -z "$as_dir" && as_dir=. 21990 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21991done 21992IFS=$as_save_IFS 21993 21994 ;; 21995esac 21996# We did not find ourselves, most probably we were run as `sh COMMAND' 21997# in which case we are not to be found in the path. 21998if test "x$as_myself" = x; then 21999 as_myself=$0 22000fi 22001if test ! -f "$as_myself"; then 22002 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22003 { (exit 1); exit 1; } 22004fi 22005 22006# Work around bugs in pre-3.0 UWIN ksh. 22007for as_var in ENV MAIL MAILPATH 22008do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22009done 22010PS1='$ ' 22011PS2='> ' 22012PS4='+ ' 22013 22014# NLS nuisances. 22015for as_var in \ 22016 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22017 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22018 LC_TELEPHONE LC_TIME 22019do 22020 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22021 eval $as_var=C; export $as_var 22022 else 22023 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22024 fi 22025done 22026 22027# Required to use basename. 22028if expr a : '\(a\)' >/dev/null 2>&1 && 22029 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22030 as_expr=expr 22031else 22032 as_expr=false 22033fi 22034 22035if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22036 as_basename=basename 22037else 22038 as_basename=false 22039fi 22040 22041 22042# Name of the executable. 22043as_me=`$as_basename -- "$0" || 22044$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22045 X"$0" : 'X\(//\)$' \| \ 22046 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22047echo X/"$0" | 22048 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22049 s//\1/ 22050 q 22051 } 22052 /^X\/\(\/\/\)$/{ 22053 s//\1/ 22054 q 22055 } 22056 /^X\/\(\/\).*/{ 22057 s//\1/ 22058 q 22059 } 22060 s/.*/./; q'` 22061 22062# CDPATH. 22063$as_unset CDPATH 22064 22065 22066 22067 as_lineno_1=$LINENO 22068 as_lineno_2=$LINENO 22069 test "x$as_lineno_1" != "x$as_lineno_2" && 22070 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22071 22072 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22073 # uniformly replaced by the line number. The first 'sed' inserts a 22074 # line-number line after each line using $LINENO; the second 'sed' 22075 # does the real work. The second script uses 'N' to pair each 22076 # line-number line with the line containing $LINENO, and appends 22077 # trailing '-' during substitution so that $LINENO is not a special 22078 # case at line end. 22079 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22080 # scripts with optimization help from Paolo Bonzini. Blame Lee 22081 # E. McMahon (1931-1989) for sed's syntax. :-) 22082 sed -n ' 22083 p 22084 /[$]LINENO/= 22085 ' <$as_myself | 22086 sed ' 22087 s/[$]LINENO.*/&-/ 22088 t lineno 22089 b 22090 :lineno 22091 N 22092 :loop 22093 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22094 t loop 22095 s/-\n.*// 22096 ' >$as_me.lineno && 22097 chmod +x "$as_me.lineno" || 22098 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22099 { (exit 1); exit 1; }; } 22100 22101 # Don't try to exec as it changes $[0], causing all sort of problems 22102 # (the dirname of $[0] is not the place where we might find the 22103 # original and so on. Autoconf is especially sensitive to this). 22104 . "./$as_me.lineno" 22105 # Exit status is that of the last command. 22106 exit 22107} 22108 22109 22110if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22111 as_dirname=dirname 22112else 22113 as_dirname=false 22114fi 22115 22116ECHO_C= ECHO_N= ECHO_T= 22117case `echo -n x` in 22118-n*) 22119 case `echo 'x\c'` in 22120 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22121 *) ECHO_C='\c';; 22122 esac;; 22123*) 22124 ECHO_N='-n';; 22125esac 22126 22127if expr a : '\(a\)' >/dev/null 2>&1 && 22128 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22129 as_expr=expr 22130else 22131 as_expr=false 22132fi 22133 22134rm -f conf$$ conf$$.exe conf$$.file 22135if test -d conf$$.dir; then 22136 rm -f conf$$.dir/conf$$.file 22137else 22138 rm -f conf$$.dir 22139 mkdir conf$$.dir 22140fi 22141echo >conf$$.file 22142if ln -s conf$$.file conf$$ 2>/dev/null; then 22143 as_ln_s='ln -s' 22144 # ... but there are two gotchas: 22145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22147 # In both cases, we have to default to `cp -p'. 22148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22149 as_ln_s='cp -p' 22150elif ln conf$$.file conf$$ 2>/dev/null; then 22151 as_ln_s=ln 22152else 22153 as_ln_s='cp -p' 22154fi 22155rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22156rmdir conf$$.dir 2>/dev/null 22157 22158if mkdir -p . 2>/dev/null; then 22159 as_mkdir_p=: 22160else 22161 test -d ./-p && rmdir ./-p 22162 as_mkdir_p=false 22163fi 22164 22165if test -x / >/dev/null 2>&1; then 22166 as_test_x='test -x' 22167else 22168 if ls -dL / >/dev/null 2>&1; then 22169 as_ls_L_option=L 22170 else 22171 as_ls_L_option= 22172 fi 22173 as_test_x=' 22174 eval sh -c '\'' 22175 if test -d "$1"; then 22176 test -d "$1/."; 22177 else 22178 case $1 in 22179 -*)set "./$1";; 22180 esac; 22181 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22182 ???[sx]*):;;*)false;;esac;fi 22183 '\'' sh 22184 ' 22185fi 22186as_executable_p=$as_test_x 22187 22188# Sed expression to map a string onto a valid CPP name. 22189as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22190 22191# Sed expression to map a string onto a valid variable name. 22192as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22193 22194 22195exec 6>&1 22196 22197# Save the log message, to keep $[0] and so on meaningful, and to 22198# report actual input values of CONFIG_FILES etc. instead of their 22199# values after options handling. 22200ac_log=" 22201This file was extended by soothsayer $as_me 0.6.3, which was 22202generated by GNU Autoconf 2.61. Invocation command line was 22203 22204 CONFIG_FILES = $CONFIG_FILES 22205 CONFIG_HEADERS = $CONFIG_HEADERS 22206 CONFIG_LINKS = $CONFIG_LINKS 22207 CONFIG_COMMANDS = $CONFIG_COMMANDS 22208 $ $0 $@ 22209 22210on `(hostname || uname -n) 2>/dev/null | sed 1q` 22211" 22212 22213_ACEOF 22214 22215cat >>$CONFIG_STATUS <<_ACEOF 22216# Files that config.status was made for. 22217config_files="$ac_config_files" 22218config_headers="$ac_config_headers" 22219config_commands="$ac_config_commands" 22220 22221_ACEOF 22222 22223cat >>$CONFIG_STATUS <<\_ACEOF 22224ac_cs_usage="\ 22225\`$as_me' instantiates files from templates according to the 22226current configuration. 22227 22228Usage: $0 [OPTIONS] [FILE]... 22229 22230 -h, --help print this help, then exit 22231 -V, --version print version number and configuration settings, then exit 22232 -q, --quiet do not print progress messages 22233 -d, --debug don't remove temporary files 22234 --recheck update $as_me by reconfiguring in the same conditions 22235 --file=FILE[:TEMPLATE] 22236 instantiate the configuration file FILE 22237 --header=FILE[:TEMPLATE] 22238 instantiate the configuration header FILE 22239 22240Configuration files: 22241$config_files 22242 22243Configuration headers: 22244$config_headers 22245 22246Configuration commands: 22247$config_commands 22248 22249Report bugs to <bug-autoconf@gnu.org>." 22250 22251_ACEOF 22252cat >>$CONFIG_STATUS <<_ACEOF 22253ac_cs_version="\\ 22254soothsayer config.status 0.6.3 22255configured by $0, generated by GNU Autoconf 2.61, 22256 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22257 22258Copyright (C) 2006 Free Software Foundation, Inc. 22259This config.status script is free software; the Free Software Foundation 22260gives unlimited permission to copy, distribute and modify it." 22261 22262ac_pwd='$ac_pwd' 22263srcdir='$srcdir' 22264INSTALL='$INSTALL' 22265_ACEOF 22266 22267cat >>$CONFIG_STATUS <<\_ACEOF 22268# If no file are specified by the user, then we need to provide default 22269# value. By we need to know if files were specified by the user. 22270ac_need_defaults=: 22271while test $# != 0 22272do 22273 case $1 in 22274 --*=*) 22275 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22277 ac_shift=: 22278 ;; 22279 *) 22280 ac_option=$1 22281 ac_optarg=$2 22282 ac_shift=shift 22283 ;; 22284 esac 22285 22286 case $ac_option in 22287 # Handling of the options. 22288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22289 ac_cs_recheck=: ;; 22290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22291 echo "$ac_cs_version"; exit ;; 22292 --debug | --debu | --deb | --de | --d | -d ) 22293 debug=: ;; 22294 --file | --fil | --fi | --f ) 22295 $ac_shift 22296 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22297 ac_need_defaults=false;; 22298 --header | --heade | --head | --hea ) 22299 $ac_shift 22300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22301 ac_need_defaults=false;; 22302 --he | --h) 22303 # Conflict between --help and --header 22304 { echo "$as_me: error: ambiguous option: $1 22305Try \`$0 --help' for more information." >&2 22306 { (exit 1); exit 1; }; };; 22307 --help | --hel | -h ) 22308 echo "$ac_cs_usage"; exit ;; 22309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22310 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22311 ac_cs_silent=: ;; 22312 22313 # This is an error. 22314 -*) { echo "$as_me: error: unrecognized option: $1 22315Try \`$0 --help' for more information." >&2 22316 { (exit 1); exit 1; }; } ;; 22317 22318 *) ac_config_targets="$ac_config_targets $1" 22319 ac_need_defaults=false ;; 22320 22321 esac 22322 shift 22323done 22324 22325ac_configure_extra_args= 22326 22327if $ac_cs_silent; then 22328 exec 6>/dev/null 22329 ac_configure_extra_args="$ac_configure_extra_args --silent" 22330fi 22331 22332_ACEOF 22333cat >>$CONFIG_STATUS <<_ACEOF 22334if \$ac_cs_recheck; then 22335 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22336 CONFIG_SHELL=$SHELL 22337 export CONFIG_SHELL 22338 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22339fi 22340 22341_ACEOF 22342cat >>$CONFIG_STATUS <<\_ACEOF 22343exec 5>>config.log 22344{ 22345 echo 22346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22347## Running $as_me. ## 22348_ASBOX 22349 echo "$ac_log" 22350} >&5 22351 22352_ACEOF 22353cat >>$CONFIG_STATUS <<_ACEOF 22354# 22355# INIT-COMMANDS 22356# 22357AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22358 22359_ACEOF 22360 22361cat >>$CONFIG_STATUS <<\_ACEOF 22362 22363# Handling of arguments. 22364for ac_config_target in $ac_config_targets 22365do 22366 case $ac_config_target in 22367 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; 22368 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22369 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22370 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22371 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 22372 "src/lib/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/core/Makefile" ;; 22373 "src/lib/core/tokenizer/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/core/tokenizer/Makefile" ;; 22374 "src/lib/core/dbconnector/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/core/dbconnector/Makefile" ;; 22375 "src/lib/simulator/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/simulator/Makefile" ;; 22376 "src/lib/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; 22377 "src/lib/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/plugins/Makefile" ;; 22378 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 22379 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22380 "test/lib/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/Makefile" ;; 22381 "test/lib/core/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/core/Makefile" ;; 22382 "test/lib/core/tokenizer/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/core/tokenizer/Makefile" ;; 22383 "test/lib/core/dbconnector/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/core/dbconnector/Makefile" ;; 22384 "test/lib/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/plugins/Makefile" ;; 22385 "test/lib/simulator/Makefile") CONFIG_FILES="$CONFIG_FILES test/lib/simulator/Makefile" ;; 22386 "test/tools/Makefile") CONFIG_FILES="$CONFIG_FILES test/tools/Makefile" ;; 22387 "test/integration/Makefile") CONFIG_FILES="$CONFIG_FILES test/integration/Makefile" ;; 22388 "resources/Makefile") CONFIG_FILES="$CONFIG_FILES resources/Makefile" ;; 22389 "resources/profiles/Makefile") CONFIG_FILES="$CONFIG_FILES resources/profiles/Makefile" ;; 22390 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;; 22391 "bindings/python/setup.py") CONFIG_FILES="$CONFIG_FILES bindings/python/setup.py" ;; 22392 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;; 22393 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 22394 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22395 "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;; 22396 "bindings/python/soothsayer_python_demo") CONFIG_FILES="$CONFIG_FILES bindings/python/soothsayer_python_demo" ;; 22397 "bindings/python/soothsayer_prompter") CONFIG_FILES="$CONFIG_FILES bindings/python/soothsayer_prompter" ;; 22398 22399 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22400echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22401 { (exit 1); exit 1; }; };; 22402 esac 22403done 22404 22405 22406# If the user did not use the arguments to specify the items to instantiate, 22407# then the envvar interface is used. Set only those that are not. 22408# We use the long form for the default assignment because of an extremely 22409# bizarre bug on SunOS 4.1.3. 22410if $ac_need_defaults; then 22411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22414fi 22415 22416# Have a temporary directory for convenience. Make it in the build tree 22417# simply because there is no reason against having it here, and in addition, 22418# creating and moving files from /tmp can sometimes cause problems. 22419# Hook for its removal unless debugging. 22420# Note that there is a small window in which the directory will not be cleaned: 22421# after its creation but before its name has been assigned to `$tmp'. 22422$debug || 22423{ 22424 tmp= 22425 trap 'exit_status=$? 22426 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22427' 0 22428 trap '{ (exit 1); exit 1; }' 1 2 13 15 22429} 22430# Create a (secure) tmp directory for tmp files. 22431 22432{ 22433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22434 test -n "$tmp" && test -d "$tmp" 22435} || 22436{ 22437 tmp=./conf$$-$RANDOM 22438 (umask 077 && mkdir "$tmp") 22439} || 22440{ 22441 echo "$me: cannot create a temporary directory in ." >&2 22442 { (exit 1); exit 1; } 22443} 22444 22445# 22446# Set up the sed scripts for CONFIG_FILES section. 22447# 22448 22449# No need to generate the scripts if there are no CONFIG_FILES. 22450# This happens for instance when ./config.status config.h 22451if test -n "$CONFIG_FILES"; then 22452 22453_ACEOF 22454 22455 22456 22457ac_delim='%!_!# ' 22458for ac_last_try in false false false false false :; do 22459 cat >conf$$subs.sed <<_ACEOF 22460SHELL!$SHELL$ac_delim 22461PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22462PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22463PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22464PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22465PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22466PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22467exec_prefix!$exec_prefix$ac_delim 22468prefix!$prefix$ac_delim 22469program_transform_name!$program_transform_name$ac_delim 22470bindir!$bindir$ac_delim 22471sbindir!$sbindir$ac_delim 22472libexecdir!$libexecdir$ac_delim 22473datarootdir!$datarootdir$ac_delim 22474datadir!$datadir$ac_delim 22475sysconfdir!$sysconfdir$ac_delim 22476sharedstatedir!$sharedstatedir$ac_delim 22477localstatedir!$localstatedir$ac_delim 22478includedir!$includedir$ac_delim 22479oldincludedir!$oldincludedir$ac_delim 22480docdir!$docdir$ac_delim 22481infodir!$infodir$ac_delim 22482htmldir!$htmldir$ac_delim 22483dvidir!$dvidir$ac_delim 22484pdfdir!$pdfdir$ac_delim 22485psdir!$psdir$ac_delim 22486libdir!$libdir$ac_delim 22487localedir!$localedir$ac_delim 22488mandir!$mandir$ac_delim 22489DEFS!$DEFS$ac_delim 22490ECHO_C!$ECHO_C$ac_delim 22491ECHO_N!$ECHO_N$ac_delim 22492ECHO_T!$ECHO_T$ac_delim 22493LIBS!$LIBS$ac_delim 22494build_alias!$build_alias$ac_delim 22495host_alias!$host_alias$ac_delim 22496target_alias!$target_alias$ac_delim 22497INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22498INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22499INSTALL_DATA!$INSTALL_DATA$ac_delim 22500CYGPATH_W!$CYGPATH_W$ac_delim 22501PACKAGE!$PACKAGE$ac_delim 22502VERSION!$VERSION$ac_delim 22503ACLOCAL!$ACLOCAL$ac_delim 22504AUTOCONF!$AUTOCONF$ac_delim 22505AUTOMAKE!$AUTOMAKE$ac_delim 22506AUTOHEADER!$AUTOHEADER$ac_delim 22507MAKEINFO!$MAKEINFO$ac_delim 22508install_sh!$install_sh$ac_delim 22509STRIP!$STRIP$ac_delim 22510INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22511mkdir_p!$mkdir_p$ac_delim 22512AWK!$AWK$ac_delim 22513SET_MAKE!$SET_MAKE$ac_delim 22514am__leading_dot!$am__leading_dot$ac_delim 22515AMTAR!$AMTAR$ac_delim 22516am__tar!$am__tar$ac_delim 22517am__untar!$am__untar$ac_delim 22518CXX!$CXX$ac_delim 22519CXXFLAGS!$CXXFLAGS$ac_delim 22520LDFLAGS!$LDFLAGS$ac_delim 22521CPPFLAGS!$CPPFLAGS$ac_delim 22522ac_ct_CXX!$ac_ct_CXX$ac_delim 22523EXEEXT!$EXEEXT$ac_delim 22524OBJEXT!$OBJEXT$ac_delim 22525DEPDIR!$DEPDIR$ac_delim 22526am__include!$am__include$ac_delim 22527am__quote!$am__quote$ac_delim 22528AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22529AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22530AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22531CXXDEPMODE!$CXXDEPMODE$ac_delim 22532am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22533am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22534CXXCPP!$CXXCPP$ac_delim 22535LTDLINCL!$LTDLINCL$ac_delim 22536LIBLTDL!$LIBLTDL$ac_delim 22537build!$build$ac_delim 22538build_cpu!$build_cpu$ac_delim 22539build_vendor!$build_vendor$ac_delim 22540build_os!$build_os$ac_delim 22541host!$host$ac_delim 22542host_cpu!$host_cpu$ac_delim 22543host_vendor!$host_vendor$ac_delim 22544host_os!$host_os$ac_delim 22545CC!$CC$ac_delim 22546CFLAGS!$CFLAGS$ac_delim 22547ac_ct_CC!$ac_ct_CC$ac_delim 22548CCDEPMODE!$CCDEPMODE$ac_delim 22549am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22550am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22551GREP!$GREP$ac_delim 22552EGREP!$EGREP$ac_delim 22553LN_S!$LN_S$ac_delim 22554ECHO!$ECHO$ac_delim 22555AR!$AR$ac_delim 22556RANLIB!$RANLIB$ac_delim 22557_ACEOF 22558 22559 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22560 break 22561 elif $ac_last_try; then 22562 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22563echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22564 { (exit 1); exit 1; }; } 22565 else 22566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22567 fi 22568done 22569 22570ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22571if test -n "$ac_eof"; then 22572 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22573 ac_eof=`expr $ac_eof + 1` 22574fi 22575 22576cat >>$CONFIG_STATUS <<_ACEOF 22577cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22579_ACEOF 22580sed ' 22581s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22582s/^/s,@/; s/!/@,|#_!!_#|/ 22583:n 22584t n 22585s/'"$ac_delim"'$/,g/; t 22586s/$/\\/; p 22587N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22588' >>$CONFIG_STATUS <conf$$subs.sed 22589rm -f conf$$subs.sed 22590cat >>$CONFIG_STATUS <<_ACEOF 22591CEOF$ac_eof 22592_ACEOF 22593 22594 22595ac_delim='%!_!# ' 22596for ac_last_try in false false false false false :; do 22597 cat >conf$$subs.sed <<_ACEOF 22598DLLTOOL!$DLLTOOL$ac_delim 22599AS!$AS$ac_delim 22600OBJDUMP!$OBJDUMP$ac_delim 22601CPP!$CPP$ac_delim 22602F77!$F77$ac_delim 22603FFLAGS!$FFLAGS$ac_delim 22604ac_ct_F77!$ac_ct_F77$ac_delim 22605LIBTOOL!$LIBTOOL$ac_delim 22606HAVE_CURSES_TRUE!$HAVE_CURSES_TRUE$ac_delim 22607HAVE_CURSES_FALSE!$HAVE_CURSES_FALSE$ac_delim 22608SQLITE_LIBS!$SQLITE_LIBS$ac_delim 22609CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim 22610CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim 22611CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim 22612HAVE_CPPUNIT_TRUE!$HAVE_CPPUNIT_TRUE$ac_delim 22613HAVE_CPPUNIT_FALSE!$HAVE_CPPUNIT_FALSE$ac_delim 22614SWIG!$SWIG$ac_delim 22615HAVE_SWIG_TRUE!$HAVE_SWIG_TRUE$ac_delim 22616HAVE_SWIG_FALSE!$HAVE_SWIG_FALSE$ac_delim 22617PYTHON!$PYTHON$ac_delim 22618PYTHON_VERSION!$PYTHON_VERSION$ac_delim 22619PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim 22620PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim 22621PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim 22622pythondir!$pythondir$ac_delim 22623pkgpythondir!$pkgpythondir$ac_delim 22624pyexecdir!$pyexecdir$ac_delim 22625pkgpyexecdir!$pkgpyexecdir$ac_delim 22626HAVE_PYTHON_TRUE!$HAVE_PYTHON_TRUE$ac_delim 22627HAVE_PYTHON_FALSE!$HAVE_PYTHON_FALSE$ac_delim 22628ENABLE_PYTHON_BINDING_TRUE!$ENABLE_PYTHON_BINDING_TRUE$ac_delim 22629ENABLE_PYTHON_BINDING_FALSE!$ENABLE_PYTHON_BINDING_FALSE$ac_delim 22630HAVE_DOXYGEN!$HAVE_DOXYGEN$ac_delim 22631HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim 22632HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim 22633HAVE_DOT!$HAVE_DOT$ac_delim 22634HAVE_HELP2MAN!$HAVE_HELP2MAN$ac_delim 22635HAVE_HELP2MAN_TRUE!$HAVE_HELP2MAN_TRUE$ac_delim 22636HAVE_HELP2MAN_FALSE!$HAVE_HELP2MAN_FALSE$ac_delim 22637LIBOBJS!$LIBOBJS$ac_delim 22638LTLIBOBJS!$LTLIBOBJS$ac_delim 22639_ACEOF 22640 22641 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then 22642 break 22643 elif $ac_last_try; then 22644 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22645echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22646 { (exit 1); exit 1; }; } 22647 else 22648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22649 fi 22650done 22651 22652ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22653if test -n "$ac_eof"; then 22654 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22655 ac_eof=`expr $ac_eof + 1` 22656fi 22657 22658cat >>$CONFIG_STATUS <<_ACEOF 22659cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22661_ACEOF 22662sed ' 22663s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22664s/^/s,@/; s/!/@,|#_!!_#|/ 22665:n 22666t n 22667s/'"$ac_delim"'$/,g/; t 22668s/$/\\/; p 22669N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22670' >>$CONFIG_STATUS <conf$$subs.sed 22671rm -f conf$$subs.sed 22672cat >>$CONFIG_STATUS <<_ACEOF 22673:end 22674s/|#_!!_#|//g 22675CEOF$ac_eof 22676_ACEOF 22677 22678 22679# VPATH may cause trouble with some makes, so we remove $(srcdir), 22680# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22681# trailing colons and then remove the whole line if VPATH becomes empty 22682# (actually we leave an empty line to preserve line numbers). 22683if test "x$srcdir" = x.; then 22684 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22685s/:*\$(srcdir):*/:/ 22686s/:*\${srcdir}:*/:/ 22687s/:*@srcdir@:*/:/ 22688s/^\([^=]*=[ ]*\):*/\1/ 22689s/:*$// 22690s/^[^=]*=[ ]*$// 22691}' 22692fi 22693 22694cat >>$CONFIG_STATUS <<\_ACEOF 22695fi # test -n "$CONFIG_FILES" 22696 22697 22698for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22699do 22700 case $ac_tag in 22701 :[FHLC]) ac_mode=$ac_tag; continue;; 22702 esac 22703 case $ac_mode$ac_tag in 22704 :[FHL]*:*);; 22705 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22706echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22707 { (exit 1); exit 1; }; };; 22708 :[FH]-) ac_tag=-:-;; 22709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22710 esac 22711 ac_save_IFS=$IFS 22712 IFS=: 22713 set x $ac_tag 22714 IFS=$ac_save_IFS 22715 shift 22716 ac_file=$1 22717 shift 22718 22719 case $ac_mode in 22720 :L) ac_source=$1;; 22721 :[FH]) 22722 ac_file_inputs= 22723 for ac_f 22724 do 22725 case $ac_f in 22726 -) ac_f="$tmp/stdin";; 22727 *) # Look for the file first in the build tree, then in the source tree 22728 # (if the path is not absolute). The absolute path cannot be DOS-style, 22729 # because $ac_f cannot contain `:'. 22730 test -f "$ac_f" || 22731 case $ac_f in 22732 [\\/$]*) false;; 22733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22734 esac || 22735 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22736echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22737 { (exit 1); exit 1; }; };; 22738 esac 22739 ac_file_inputs="$ac_file_inputs $ac_f" 22740 done 22741 22742 # Let's still pretend it is `configure' which instantiates (i.e., don't 22743 # use $as_me), people would be surprised to read: 22744 # /* config.h. Generated by config.status. */ 22745 configure_input="Generated from "`IFS=: 22746 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22747 if test x"$ac_file" != x-; then 22748 configure_input="$ac_file. $configure_input" 22749 { echo "$as_me:$LINENO: creating $ac_file" >&5 22750echo "$as_me: creating $ac_file" >&6;} 22751 fi 22752 22753 case $ac_tag in 22754 *:-:* | *:-) cat >"$tmp/stdin";; 22755 esac 22756 ;; 22757 esac 22758 22759 ac_dir=`$as_dirname -- "$ac_file" || 22760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22761 X"$ac_file" : 'X\(//\)[^/]' \| \ 22762 X"$ac_file" : 'X\(//\)$' \| \ 22763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22764echo X"$ac_file" | 22765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22766 s//\1/ 22767 q 22768 } 22769 /^X\(\/\/\)[^/].*/{ 22770 s//\1/ 22771 q 22772 } 22773 /^X\(\/\/\)$/{ 22774 s//\1/ 22775 q 22776 } 22777 /^X\(\/\).*/{ 22778 s//\1/ 22779 q 22780 } 22781 s/.*/./; q'` 22782 { as_dir="$ac_dir" 22783 case $as_dir in #( 22784 -*) as_dir=./$as_dir;; 22785 esac 22786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22787 as_dirs= 22788 while :; do 22789 case $as_dir in #( 22790 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22791 *) as_qdir=$as_dir;; 22792 esac 22793 as_dirs="'$as_qdir' $as_dirs" 22794 as_dir=`$as_dirname -- "$as_dir" || 22795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22796 X"$as_dir" : 'X\(//\)[^/]' \| \ 22797 X"$as_dir" : 'X\(//\)$' \| \ 22798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22799echo X"$as_dir" | 22800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22801 s//\1/ 22802 q 22803 } 22804 /^X\(\/\/\)[^/].*/{ 22805 s//\1/ 22806 q 22807 } 22808 /^X\(\/\/\)$/{ 22809 s//\1/ 22810 q 22811 } 22812 /^X\(\/\).*/{ 22813 s//\1/ 22814 q 22815 } 22816 s/.*/./; q'` 22817 test -d "$as_dir" && break 22818 done 22819 test -z "$as_dirs" || eval "mkdir $as_dirs" 22820 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22821echo "$as_me: error: cannot create directory $as_dir" >&2;} 22822 { (exit 1); exit 1; }; }; } 22823 ac_builddir=. 22824 22825case "$ac_dir" in 22826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22827*) 22828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22829 # A ".." for each directory in $ac_dir_suffix. 22830 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22831 case $ac_top_builddir_sub in 22832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22834 esac ;; 22835esac 22836ac_abs_top_builddir=$ac_pwd 22837ac_abs_builddir=$ac_pwd$ac_dir_suffix 22838# for backward compatibility: 22839ac_top_builddir=$ac_top_build_prefix 22840 22841case $srcdir in 22842 .) # We are building in place. 22843 ac_srcdir=. 22844 ac_top_srcdir=$ac_top_builddir_sub 22845 ac_abs_top_srcdir=$ac_pwd ;; 22846 [\\/]* | ?:[\\/]* ) # Absolute name. 22847 ac_srcdir=$srcdir$ac_dir_suffix; 22848 ac_top_srcdir=$srcdir 22849 ac_abs_top_srcdir=$srcdir ;; 22850 *) # Relative name. 22851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22852 ac_top_srcdir=$ac_top_build_prefix$srcdir 22853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22854esac 22855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22856 22857 22858 case $ac_mode in 22859 :F) 22860 # 22861 # CONFIG_FILE 22862 # 22863 22864 case $INSTALL in 22865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22867 esac 22868_ACEOF 22869 22870cat >>$CONFIG_STATUS <<\_ACEOF 22871# If the template does not know about datarootdir, expand it. 22872# FIXME: This hack should be removed a few years after 2.60. 22873ac_datarootdir_hack=; ac_datarootdir_seen= 22874 22875case `sed -n '/datarootdir/ { 22876 p 22877 q 22878} 22879/@datadir@/p 22880/@docdir@/p 22881/@infodir@/p 22882/@localedir@/p 22883/@mandir@/p 22884' $ac_file_inputs` in 22885*datarootdir*) ac_datarootdir_seen=yes;; 22886*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22887 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22888echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22889_ACEOF 22890cat >>$CONFIG_STATUS <<_ACEOF 22891 ac_datarootdir_hack=' 22892 s&@datadir@&$datadir&g 22893 s&@docdir@&$docdir&g 22894 s&@infodir@&$infodir&g 22895 s&@localedir@&$localedir&g 22896 s&@mandir@&$mandir&g 22897 s&\\\${datarootdir}&$datarootdir&g' ;; 22898esac 22899_ACEOF 22900 22901# Neutralize VPATH when `$srcdir' = `.'. 22902# Shell code in configure.ac might set extrasub. 22903# FIXME: do we really want to maintain this feature? 22904cat >>$CONFIG_STATUS <<_ACEOF 22905 sed "$ac_vpsub 22906$extrasub 22907_ACEOF 22908cat >>$CONFIG_STATUS <<\_ACEOF 22909:t 22910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22911s&@configure_input@&$configure_input&;t t 22912s&@top_builddir@&$ac_top_builddir_sub&;t t 22913s&@srcdir@&$ac_srcdir&;t t 22914s&@abs_srcdir@&$ac_abs_srcdir&;t t 22915s&@top_srcdir@&$ac_top_srcdir&;t t 22916s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22917s&@builddir@&$ac_builddir&;t t 22918s&@abs_builddir@&$ac_abs_builddir&;t t 22919s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22920s&@INSTALL@&$ac_INSTALL&;t t 22921$ac_datarootdir_hack 22922" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22923 22924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22925 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22927 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22928which seems to be undefined. Please make sure it is defined." >&5 22929echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22930which seems to be undefined. Please make sure it is defined." >&2;} 22931 22932 rm -f "$tmp/stdin" 22933 case $ac_file in 22934 -) cat "$tmp/out"; rm -f "$tmp/out";; 22935 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22936 esac 22937 ;; 22938 :H) 22939 # 22940 # CONFIG_HEADER 22941 # 22942_ACEOF 22943 22944# Transform confdefs.h into a sed script `conftest.defines', that 22945# substitutes the proper values into config.h.in to produce config.h. 22946rm -f conftest.defines conftest.tail 22947# First, append a space to every undef/define line, to ease matching. 22948echo 's/$/ /' >conftest.defines 22949# Then, protect against being on the right side of a sed subst, or in 22950# an unquoted here document, in config.status. If some macros were 22951# called several times there might be several #defines for the same 22952# symbol, which is useless. But do not sort them, since the last 22953# AC_DEFINE must be honored. 22954ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22955# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22956# NAME is the cpp macro being defined, VALUE is the value it is being given. 22957# PARAMS is the parameter list in the macro definition--in most cases, it's 22958# just an empty string. 22959ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22960ac_dB='\\)[ (].*,\\1define\\2' 22961ac_dC=' ' 22962ac_dD=' ,' 22963 22964uniq confdefs.h | 22965 sed -n ' 22966 t rset 22967 :rset 22968 s/^[ ]*#[ ]*define[ ][ ]*// 22969 t ok 22970 d 22971 :ok 22972 s/[\\&,]/\\&/g 22973 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22974 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22975 ' >>conftest.defines 22976 22977# Remove the space that was appended to ease matching. 22978# Then replace #undef with comments. This is necessary, for 22979# example, in the case of _POSIX_SOURCE, which is predefined and required 22980# on some systems where configure will not decide to define it. 22981# (The regexp can be short, since the line contains either #define or #undef.) 22982echo 's/ $// 22983s,^[ #]*u.*,/* & */,' >>conftest.defines 22984 22985# Break up conftest.defines: 22986ac_max_sed_lines=50 22987 22988# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22989# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22990# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22991# et cetera. 22992ac_in='$ac_file_inputs' 22993ac_out='"$tmp/out1"' 22994ac_nxt='"$tmp/out2"' 22995 22996while : 22997do 22998 # Write a here document: 22999 cat >>$CONFIG_STATUS <<_ACEOF 23000 # First, check the format of the line: 23001 cat >"\$tmp/defines.sed" <<\\CEOF 23002/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23003/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23004b 23005:def 23006_ACEOF 23007 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23008 echo 'CEOF 23009 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23010 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23011 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23012 grep . conftest.tail >/dev/null || break 23013 rm -f conftest.defines 23014 mv conftest.tail conftest.defines 23015done 23016rm -f conftest.defines conftest.tail 23017 23018echo "ac_result=$ac_in" >>$CONFIG_STATUS 23019cat >>$CONFIG_STATUS <<\_ACEOF 23020 if test x"$ac_file" != x-; then 23021 echo "/* $configure_input */" >"$tmp/config.h" 23022 cat "$ac_result" >>"$tmp/config.h" 23023 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23025echo "$as_me: $ac_file is unchanged" >&6;} 23026 else 23027 rm -f $ac_file 23028 mv "$tmp/config.h" $ac_file 23029 fi 23030 else 23031 echo "/* $configure_input */" 23032 cat "$ac_result" 23033 fi 23034 rm -f "$tmp/out12" 23035# Compute $ac_file's index in $config_headers. 23036_am_stamp_count=1 23037for _am_header in $config_headers :; do 23038 case $_am_header in 23039 $ac_file | $ac_file:* ) 23040 break ;; 23041 * ) 23042 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23043 esac 23044done 23045echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23046$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23047 X$ac_file : 'X\(//\)[^/]' \| \ 23048 X$ac_file : 'X\(//\)$' \| \ 23049 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23050echo X$ac_file | 23051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23052 s//\1/ 23053 q 23054 } 23055 /^X\(\/\/\)[^/].*/{ 23056 s//\1/ 23057 q 23058 } 23059 /^X\(\/\/\)$/{ 23060 s//\1/ 23061 q 23062 } 23063 /^X\(\/\).*/{ 23064 s//\1/ 23065 q 23066 } 23067 s/.*/./; q'`/stamp-h$_am_stamp_count 23068 ;; 23069 23070 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23071echo "$as_me: executing $ac_file commands" >&6;} 23072 ;; 23073 esac 23074 23075 23076 case $ac_file$ac_mode in 23077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23078 # Strip MF so we end up with the name of the file. 23079 mf=`echo "$mf" | sed -e 's/:.*$//'` 23080 # Check whether this is an Automake generated Makefile or not. 23081 # We used to match only the files named `Makefile.in', but 23082 # some people rename them; so instead we look at the file content. 23083 # Grep'ing the first line is not enough: some people post-process 23084 # each Makefile.in and add a new line on top of each file to say so. 23085 # So let's grep whole file. 23086 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23087 dirpart=`$as_dirname -- "$mf" || 23088$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23089 X"$mf" : 'X\(//\)[^/]' \| \ 23090 X"$mf" : 'X\(//\)$' \| \ 23091 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23092echo X"$mf" | 23093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23094 s//\1/ 23095 q 23096 } 23097 /^X\(\/\/\)[^/].*/{ 23098 s//\1/ 23099 q 23100 } 23101 /^X\(\/\/\)$/{ 23102 s//\1/ 23103 q 23104 } 23105 /^X\(\/\).*/{ 23106 s//\1/ 23107 q 23108 } 23109 s/.*/./; q'` 23110 else 23111 continue 23112 fi 23113 # Extract the definition of DEPDIR, am__include, and am__quote 23114 # from the Makefile without running `make'. 23115 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23116 test -z "$DEPDIR" && continue 23117 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23118 test -z "am__include" && continue 23119 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23120 # When using ansi2knr, U may be empty or an underscore; expand it 23121 U=`sed -n 's/^U = //p' < "$mf"` 23122 # Find all dependency output files, they are included files with 23123 # $(DEPDIR) in their names. We invoke sed twice because it is the 23124 # simplest approach to changing $(DEPDIR) to its actual value in the 23125 # expansion. 23126 for file in `sed -n " 23127 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23128 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23129 # Make sure the directory exists. 23130 test -f "$dirpart/$file" && continue 23131 fdir=`$as_dirname -- "$file" || 23132$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23133 X"$file" : 'X\(//\)[^/]' \| \ 23134 X"$file" : 'X\(//\)$' \| \ 23135 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23136echo X"$file" | 23137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23138 s//\1/ 23139 q 23140 } 23141 /^X\(\/\/\)[^/].*/{ 23142 s//\1/ 23143 q 23144 } 23145 /^X\(\/\/\)$/{ 23146 s//\1/ 23147 q 23148 } 23149 /^X\(\/\).*/{ 23150 s//\1/ 23151 q 23152 } 23153 s/.*/./; q'` 23154 { as_dir=$dirpart/$fdir 23155 case $as_dir in #( 23156 -*) as_dir=./$as_dir;; 23157 esac 23158 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23159 as_dirs= 23160 while :; do 23161 case $as_dir in #( 23162 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23163 *) as_qdir=$as_dir;; 23164 esac 23165 as_dirs="'$as_qdir' $as_dirs" 23166 as_dir=`$as_dirname -- "$as_dir" || 23167$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23168 X"$as_dir" : 'X\(//\)[^/]' \| \ 23169 X"$as_dir" : 'X\(//\)$' \| \ 23170 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23171echo X"$as_dir" | 23172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23173 s//\1/ 23174 q 23175 } 23176 /^X\(\/\/\)[^/].*/{ 23177 s//\1/ 23178 q 23179 } 23180 /^X\(\/\/\)$/{ 23181 s//\1/ 23182 q 23183 } 23184 /^X\(\/\).*/{ 23185 s//\1/ 23186 q 23187 } 23188 s/.*/./; q'` 23189 test -d "$as_dir" && break 23190 done 23191 test -z "$as_dirs" || eval "mkdir $as_dirs" 23192 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23193echo "$as_me: error: cannot create directory $as_dir" >&2;} 23194 { (exit 1); exit 1; }; }; } 23195 # echo "creating $dirpart/$file" 23196 echo '# dummy' > "$dirpart/$file" 23197 done 23198done 23199 ;; 23200 23201 esac 23202done # for ac_tag 23203 23204 23205{ (exit 0); exit 0; } 23206_ACEOF 23207chmod +x $CONFIG_STATUS 23208ac_clean_files=$ac_clean_files_save 23209 23210 23211# configure is writing to config.log, and then calls config.status. 23212# config.status does its own redirection, appending to config.log. 23213# Unfortunately, on DOS this fails, as config.log is still kept open 23214# by configure, so config.status won't be able to write to it; its 23215# output is simply discarded. So we exec the FD to /dev/null, 23216# effectively closing config.log, so it can be properly (re)opened and 23217# appended to by config.status. When coming back to configure, we 23218# need to make the FD available again. 23219if test "$no_create" != yes; then 23220 ac_cs_success=: 23221 ac_config_status_args= 23222 test "$silent" = yes && 23223 ac_config_status_args="$ac_config_status_args --quiet" 23224 exec 5>/dev/null 23225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23226 exec 5>>config.log 23227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23228 # would make configure fail if this is the last instruction. 23229 $ac_cs_success || { (exit 1); exit 1; } 23230fi 23231 23232 23233if test "x$have_curses_library" = "xtrue" -a "x$have_curses_header" = "xtrue" 23234then 23235 build_demo_application="yes" 23236else 23237 build_demo_application="no" 23238fi 23239if test "$CPPUNIT_LIBS" 23240then 23241 build_unit_tests="yes" 23242else 23243 build_unit_tests="no" 23244fi 23245if test "$SWIG" -a "$PYTHON" -a "x$have_python_header" = "xtrue" -a "x$ac_enable_python_binding" = "xyes" 23246then 23247 build_python_binding="yes" 23248else 23249 build_python_binding="no" 23250fi 23251{ echo "$as_me:$LINENO: result: 23252 $PACKAGE $VERSION configured successfully. 23253 23254 General configuration: 23255 23256 Compiler: ................... ${CXX} 23257 Curses demo application: .... ${build_demo_application} 23258 Unit tests: ................. ${build_unit_tests} 23259 Python binding: ............. ${build_python_binding} 23260 Man pages: .................. ${HAVE_HELP2MAN} 23261 API Documentation: .......... ${HAVE_DOXYGEN} 23262 23263 23264 Predictive plugins: 23265 23266 Smoothed n-gram: ............ yes 23267 Recency promotion: .......... yes 23268 Abbreviation expansion: ..... yes 23269 Smoothed count: ............. yes 23270 Dictionary: ................. yes 23271 23272 23273 Building: 23274 23275 Type \`make' to build $PACKAGE. 23276 Type \`make check' to test $PACKAGE. 23277 Type \`make install' to install $PACKAGE. 23278" >&5 23279echo "${ECHO_T} 23280 $PACKAGE $VERSION configured successfully. 23281 23282 General configuration: 23283 23284 Compiler: ................... ${CXX} 23285 Curses demo application: .... ${build_demo_application} 23286 Unit tests: ................. ${build_unit_tests} 23287 Python binding: ............. ${build_python_binding} 23288 Man pages: .................. ${HAVE_HELP2MAN} 23289 API Documentation: .......... ${HAVE_DOXYGEN} 23290 23291 23292 Predictive plugins: 23293 23294 Smoothed n-gram: ............ yes 23295 Recency promotion: .......... yes 23296 Abbreviation expansion: ..... yes 23297 Smoothed count: ............. yes 23298 Dictionary: ................. yes 23299 23300 23301 Building: 23302 23303 Type \`make' to build $PACKAGE. 23304 Type \`make check' to test $PACKAGE. 23305 Type \`make install' to install $PACKAGE. 23306" >&6; } 23307