1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for scim-uim 0.2.0. 4# 5# Report bugs to <ashie@homa.ne.jp>. 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='scim-uim' 730PACKAGE_TARNAME='scim-uim' 731PACKAGE_VERSION='0.2.0' 732PACKAGE_STRING='scim-uim 0.2.0' 733PACKAGE_BUGREPORT='ashie@homa.ne.jp' 734 735ac_unique_file="src/scim_uim_imengine.h" 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 809SCIM_UIM_MAJOR_VERSION 810SCIM_UIM_MINOR_VERSION 811SCIM_UIM_MICRO_VERSION 812SCIM_UIM_VERSION 813INSTALL_PROGRAM 814INSTALL_SCRIPT 815INSTALL_DATA 816am__isrc 817CYGPATH_W 818PACKAGE 819VERSION 820ACLOCAL 821AUTOCONF 822AUTOMAKE 823AUTOHEADER 824MAKEINFO 825install_sh 826STRIP 827INSTALL_STRIP_PROGRAM 828mkdir_p 829AWK 830SET_MAKE 831am__leading_dot 832AMTAR 833am__tar 834am__untar 835build 836build_cpu 837build_vendor 838build_os 839host 840host_cpu 841host_vendor 842host_os 843CC 844CFLAGS 845LDFLAGS 846CPPFLAGS 847ac_ct_CC 848EXEEXT 849OBJEXT 850DEPDIR 851am__include 852am__quote 853AMDEP_TRUE 854AMDEP_FALSE 855AMDEPBACKSLASH 856CCDEPMODE 857am__fastdepCC_TRUE 858am__fastdepCC_FALSE 859GREP 860EGREP 861LN_S 862ECHO 863AR 864RANLIB 865CPP 866CXX 867CXXFLAGS 868ac_ct_CXX 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872CXXCPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877INSTALL_LTDL_TRUE 878INSTALL_LTDL_FALSE 879CONVENIENCE_LTDL_TRUE 880CONVENIENCE_LTDL_FALSE 881LIBADD_DL 882LIBTOOL_DEPS 883PKG_CONFIG 884SCIM_CFLAGS 885SCIM_LIBS 886UIM_CFLAGS 887UIM_LIBS 888SCIM_VERSION 889UIM_VERSION 890ac_aux_dir 891LIBTOOL_EXPORT_OPTIONS 892SCIM_DEBUG_FLAGS 893SCIM_ICONDIR 894SCIM_MODULEDIR 895LIBOBJS 896LTLIBOBJS' 897ac_subst_files='' 898 ac_precious_vars='build_alias 899host_alias 900target_alias 901CC 902CFLAGS 903LDFLAGS 904LIBS 905CPPFLAGS 906CPP 907CXX 908CXXFLAGS 909CCC 910CXXCPP 911F77 912FFLAGS 913PKG_CONFIG 914SCIM_CFLAGS 915SCIM_LIBS 916UIM_CFLAGS 917UIM_LIBS' 918 919 920# Initialize some variables set by options. 921ac_init_help= 922ac_init_version=false 923# The variables have the same names as the options, with 924# dashes changed to underlines. 925cache_file=/dev/null 926exec_prefix=NONE 927no_create= 928no_recursion= 929prefix=NONE 930program_prefix=NONE 931program_suffix=NONE 932program_transform_name=s,x,x, 933silent= 934site= 935srcdir= 936verbose= 937x_includes=NONE 938x_libraries=NONE 939 940# Installation directory options. 941# These are left unexpanded so users can "make install exec_prefix=/foo" 942# and all the variables that are supposed to be based on exec_prefix 943# by default will actually change. 944# Use braces instead of parens because sh, perl, etc. also accept them. 945# (The list follows the same order as the GNU Coding Standards.) 946bindir='${exec_prefix}/bin' 947sbindir='${exec_prefix}/sbin' 948libexecdir='${exec_prefix}/libexec' 949datarootdir='${prefix}/share' 950datadir='${datarootdir}' 951sysconfdir='${prefix}/etc' 952sharedstatedir='${prefix}/com' 953localstatedir='${prefix}/var' 954includedir='${prefix}/include' 955oldincludedir='/usr/include' 956docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 957infodir='${datarootdir}/info' 958htmldir='${docdir}' 959dvidir='${docdir}' 960pdfdir='${docdir}' 961psdir='${docdir}' 962libdir='${exec_prefix}/lib' 963localedir='${datarootdir}/locale' 964mandir='${datarootdir}/man' 965 966ac_prev= 967ac_dashdash= 968for ac_option 969do 970 # If the previous option needs an argument, assign it. 971 if test -n "$ac_prev"; then 972 eval $ac_prev=\$ac_option 973 ac_prev= 974 continue 975 fi 976 977 case $ac_option in 978 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 979 *) ac_optarg=yes ;; 980 esac 981 982 # Accept the important Cygnus configure options, so we can diagnose typos. 983 984 case $ac_dashdash$ac_option in 985 --) 986 ac_dashdash=yes ;; 987 988 -bindir | --bindir | --bindi | --bind | --bin | --bi) 989 ac_prev=bindir ;; 990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 991 bindir=$ac_optarg ;; 992 993 -build | --build | --buil | --bui | --bu) 994 ac_prev=build_alias ;; 995 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 996 build_alias=$ac_optarg ;; 997 998 -cache-file | --cache-file | --cache-fil | --cache-fi \ 999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1000 ac_prev=cache_file ;; 1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1003 cache_file=$ac_optarg ;; 1004 1005 --config-cache | -C) 1006 cache_file=config.cache ;; 1007 1008 -datadir | --datadir | --datadi | --datad) 1009 ac_prev=datadir ;; 1010 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1011 datadir=$ac_optarg ;; 1012 1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1014 | --dataroo | --dataro | --datar) 1015 ac_prev=datarootdir ;; 1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1018 datarootdir=$ac_optarg ;; 1019 1020 -disable-* | --disable-*) 1021 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1027 eval enable_$ac_feature=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1044 { (exit 1); exit 1; }; } 1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1046 eval enable_$ac_feature=\$ac_optarg ;; 1047 1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1050 | --exec | --exe | --ex) 1051 ac_prev=exec_prefix ;; 1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1054 | --exec=* | --exe=* | --ex=*) 1055 exec_prefix=$ac_optarg ;; 1056 1057 -gas | --gas | --ga | --g) 1058 # Obsolete; use --with-gas. 1059 with_gas=yes ;; 1060 1061 -help | --help | --hel | --he | -h) 1062 ac_init_help=long ;; 1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1064 ac_init_help=recursive ;; 1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1066 ac_init_help=short ;; 1067 1068 -host | --host | --hos | --ho) 1069 ac_prev=host_alias ;; 1070 -host=* | --host=* | --hos=* | --ho=*) 1071 host_alias=$ac_optarg ;; 1072 1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1074 ac_prev=htmldir ;; 1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1076 | --ht=*) 1077 htmldir=$ac_optarg ;; 1078 1079 -includedir | --includedir | --includedi | --included | --include \ 1080 | --includ | --inclu | --incl | --inc) 1081 ac_prev=includedir ;; 1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1083 | --includ=* | --inclu=* | --incl=* | --inc=*) 1084 includedir=$ac_optarg ;; 1085 1086 -infodir | --infodir | --infodi | --infod | --info | --inf) 1087 ac_prev=infodir ;; 1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1089 infodir=$ac_optarg ;; 1090 1091 -libdir | --libdir | --libdi | --libd) 1092 ac_prev=libdir ;; 1093 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1094 libdir=$ac_optarg ;; 1095 1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1097 | --libexe | --libex | --libe) 1098 ac_prev=libexecdir ;; 1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1100 | --libexe=* | --libex=* | --libe=*) 1101 libexecdir=$ac_optarg ;; 1102 1103 -localedir | --localedir | --localedi | --localed | --locale) 1104 ac_prev=localedir ;; 1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1106 localedir=$ac_optarg ;; 1107 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1109 | --localstate | --localstat | --localsta | --localst | --locals) 1110 ac_prev=localstatedir ;; 1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1113 localstatedir=$ac_optarg ;; 1114 1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1116 ac_prev=mandir ;; 1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1118 mandir=$ac_optarg ;; 1119 1120 -nfp | --nfp | --nf) 1121 # Obsolete; use --without-fp. 1122 with_fp=no ;; 1123 1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1125 | --no-cr | --no-c | -n) 1126 no_create=yes ;; 1127 1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1130 no_recursion=yes ;; 1131 1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1134 | --oldin | --oldi | --old | --ol | --o) 1135 ac_prev=oldincludedir ;; 1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1139 oldincludedir=$ac_optarg ;; 1140 1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1142 ac_prev=prefix ;; 1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1144 prefix=$ac_optarg ;; 1145 1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1147 | --program-pre | --program-pr | --program-p) 1148 ac_prev=program_prefix ;; 1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1151 program_prefix=$ac_optarg ;; 1152 1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1154 | --program-suf | --program-su | --program-s) 1155 ac_prev=program_suffix ;; 1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1158 program_suffix=$ac_optarg ;; 1159 1160 -program-transform-name | --program-transform-name \ 1161 | --program-transform-nam | --program-transform-na \ 1162 | --program-transform-n | --program-transform- \ 1163 | --program-transform | --program-transfor \ 1164 | --program-transfo | --program-transf \ 1165 | --program-trans | --program-tran \ 1166 | --progr-tra | --program-tr | --program-t) 1167 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1176 1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1178 ac_prev=pdfdir ;; 1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1180 pdfdir=$ac_optarg ;; 1181 1182 -psdir | --psdir | --psdi | --psd | --ps) 1183 ac_prev=psdir ;; 1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1185 psdir=$ac_optarg ;; 1186 1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1188 | -silent | --silent | --silen | --sile | --sil) 1189 silent=yes ;; 1190 1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1192 ac_prev=sbindir ;; 1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1194 | --sbi=* | --sb=*) 1195 sbindir=$ac_optarg ;; 1196 1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1199 | --sharedst | --shareds | --shared | --share | --shar \ 1200 | --sha | --sh) 1201 ac_prev=sharedstatedir ;; 1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1205 | --sha=* | --sh=*) 1206 sharedstatedir=$ac_optarg ;; 1207 1208 -site | --site | --sit) 1209 ac_prev=site ;; 1210 -site=* | --site=* | --sit=*) 1211 site=$ac_optarg ;; 1212 1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1214 ac_prev=srcdir ;; 1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1216 srcdir=$ac_optarg ;; 1217 1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1219 | --syscon | --sysco | --sysc | --sys | --sy) 1220 ac_prev=sysconfdir ;; 1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1223 sysconfdir=$ac_optarg ;; 1224 1225 -target | --target | --targe | --targ | --tar | --ta | --t) 1226 ac_prev=target_alias ;; 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1228 target_alias=$ac_optarg ;; 1229 1230 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1231 verbose=yes ;; 1232 1233 -version | --version | --versio | --versi | --vers | -V) 1234 ac_init_version=: ;; 1235 1236 -with-* | --with-*) 1237 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 { echo "$as_me: error: invalid package name: $ac_package" >&2 1241 { (exit 1); exit 1; }; } 1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1243 eval with_$ac_package=\$ac_optarg ;; 1244 1245 -without-* | --without-*) 1246 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 { echo "$as_me: error: invalid package name: $ac_package" >&2 1250 { (exit 1); exit 1; }; } 1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1252 eval with_$ac_package=no ;; 1253 1254 --x) 1255 # Obsolete; use --with-x. 1256 with_x=yes ;; 1257 1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1259 | --x-incl | --x-inc | --x-in | --x-i) 1260 ac_prev=x_includes ;; 1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1263 x_includes=$ac_optarg ;; 1264 1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1267 ac_prev=x_libraries ;; 1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1270 x_libraries=$ac_optarg ;; 1271 1272 -*) { echo "$as_me: error: unrecognized option: $ac_option 1273Try \`$0 --help' for more information." >&2 1274 { (exit 1); exit 1; }; } 1275 ;; 1276 1277 *=*) 1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1279 # Reject names that are not valid shell variable names. 1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1281 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1282 { (exit 1); exit 1; }; } 1283 eval $ac_envvar=\$ac_optarg 1284 export $ac_envvar ;; 1285 1286 *) 1287 # FIXME: should be removed in autoconf 3.0. 1288 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1290 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1292 ;; 1293 1294 esac 1295done 1296 1297if test -n "$ac_prev"; then 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1299 { echo "$as_me: error: missing argument to $ac_option" >&2 1300 { (exit 1); exit 1; }; } 1301fi 1302 1303# Be sure to have absolute directory names. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1315 { (exit 1); exit 1; }; } 1316done 1317 1318# There might be people who depend on the old broken behavior: `$host' 1319# used to hold the argument of --host etc. 1320# FIXME: To remove some day. 1321build=$build_alias 1322host=$host_alias 1323target=$target_alias 1324 1325# FIXME: To remove some day. 1326if test "x$host_alias" != x; then 1327 if test "x$build_alias" = x; then 1328 cross_compiling=maybe 1329 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1330 If a cross compiler is detected then cross compile mode will be used." >&2 1331 elif test "x$build_alias" != "x$host_alias"; then 1332 cross_compiling=yes 1333 fi 1334fi 1335 1336ac_tool_prefix= 1337test -n "$host_alias" && ac_tool_prefix=$host_alias- 1338 1339test "$silent" = yes && exec 6>/dev/null 1340 1341 1342ac_pwd=`pwd` && test -n "$ac_pwd" && 1343ac_ls_di=`ls -di .` && 1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1345 { echo "$as_me: error: Working directory cannot be determined" >&2 1346 { (exit 1); exit 1; }; } 1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1348 { echo "$as_me: error: pwd does not report name of working directory" >&2 1349 { (exit 1); exit 1; }; } 1350 1351 1352# Find the source files, if location was not specified. 1353if test -z "$srcdir"; then 1354 ac_srcdir_defaulted=yes 1355 # Try the directory containing this script, then the parent directory. 1356 ac_confdir=`$as_dirname -- "$0" || 1357$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1358 X"$0" : 'X\(//\)[^/]' \| \ 1359 X"$0" : 'X\(//\)$' \| \ 1360 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1361echo X"$0" | 1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)[^/].*/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)$/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\).*/{ 1375 s//\1/ 1376 q 1377 } 1378 s/.*/./; q'` 1379 srcdir=$ac_confdir 1380 if test ! -r "$srcdir/$ac_unique_file"; then 1381 srcdir=.. 1382 fi 1383else 1384 ac_srcdir_defaulted=no 1385fi 1386if test ! -r "$srcdir/$ac_unique_file"; then 1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1388 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1389 { (exit 1); exit 1; }; } 1390fi 1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1392ac_abs_confdir=`( 1393 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1394 { (exit 1); exit 1; }; } 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406for ac_var in $ac_precious_vars; do 1407 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_env_${ac_var}_value=\$${ac_var} 1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1411done 1412 1413# 1414# Report the --help message. 1415# 1416if test "$ac_init_help" = "long"; then 1417 # Omit some internal or obsolete options to make the list less imposing. 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1419 cat <<_ACEOF 1420\`configure' configures scim-uim 0.2.0 to adapt to many kinds of systems. 1421 1422Usage: $0 [OPTION]... [VAR=VALUE]... 1423 1424To assign environment variables (e.g., CC, CFLAGS...), specify them as 1425VAR=VALUE. See below for descriptions of some of the useful variables. 1426 1427Defaults for the options are specified in brackets. 1428 1429Configuration: 1430 -h, --help display this help and exit 1431 --help=short display options specific to this package 1432 --help=recursive display the short help of all the included packages 1433 -V, --version display version information and exit 1434 -q, --quiet, --silent do not print \`checking...' messages 1435 --cache-file=FILE cache test results in FILE [disabled] 1436 -C, --config-cache alias for \`--cache-file=config.cache' 1437 -n, --no-create do not create output files 1438 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1439 1440Installation directories: 1441 --prefix=PREFIX install architecture-independent files in PREFIX 1442 [$ac_default_prefix] 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1444 [PREFIX] 1445 1446By default, \`make install' will install all the files in 1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1448an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1449for instance \`--prefix=\$HOME'. 1450 1451For better control, use the options below. 1452 1453Fine tuning of the installation directories: 1454 --bindir=DIR user executables [EPREFIX/bin] 1455 --sbindir=DIR system admin executables [EPREFIX/sbin] 1456 --libexecdir=DIR program executables [EPREFIX/libexec] 1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/scim-uim] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477Program names: 1478 --program-prefix=PREFIX prepend PREFIX to installed program names 1479 --program-suffix=SUFFIX append SUFFIX to installed program names 1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1481 1482System types: 1483 --build=BUILD configure for building on BUILD [guessed] 1484 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1485_ACEOF 1486fi 1487 1488if test -n "$ac_init_help"; then 1489 case $ac_init_help in 1490 short | recursive ) echo "Configuration of scim-uim 0.2.0:";; 1491 esac 1492 cat <<\_ACEOF 1493 1494Optional Features: 1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1497 --enable-shared[=PKGS] build shared libraries [default=yes] 1498 --enable-static[=PKGS] build static libraries [default=yes] 1499 --enable-fast-install[=PKGS] 1500 optimize for fast installation [default=yes] 1501 --disable-dependency-tracking speeds up one-time build 1502 --enable-dependency-tracking do not reject slow dependency extractors 1503 --disable-libtool-lock avoid locking (might break parallel builds) 1504 --enable-ltdl-install install libltdl 1505 --enable-debug Turn on debugging 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1511 --with-pic try to use only PIC/non-PIC objects [default=use 1512 both] 1513 --with-tags[=TAGS] include additional configurations [automatic] 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 CXX C++ compiler command 1525 CXXFLAGS C++ compiler flags 1526 CXXCPP C++ preprocessor 1527 F77 Fortran 77 compiler command 1528 FFLAGS Fortran 77 compiler flags 1529 PKG_CONFIG path to pkg-config utility 1530 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config 1531 SCIM_LIBS linker flags for SCIM, overriding pkg-config 1532 UIM_CFLAGS C compiler flags for UIM, overriding pkg-config 1533 UIM_LIBS linker flags for UIM, overriding pkg-config 1534 1535Use these variables to override the choices made by `configure' or to help 1536it to find libraries and programs with nonstandard names/locations. 1537 1538Report bugs to <ashie@homa.ne.jp>. 1539_ACEOF 1540ac_status=$? 1541fi 1542 1543if test "$ac_init_help" = "recursive"; then 1544 # If there are subdirs, report their specific --help. 1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1546 test -d "$ac_dir" || continue 1547 ac_builddir=. 1548 1549case "$ac_dir" in 1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551*) 1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1553 # A ".." for each directory in $ac_dir_suffix. 1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1555 case $ac_top_builddir_sub in 1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1558 esac ;; 1559esac 1560ac_abs_top_builddir=$ac_pwd 1561ac_abs_builddir=$ac_pwd$ac_dir_suffix 1562# for backward compatibility: 1563ac_top_builddir=$ac_top_build_prefix 1564 1565case $srcdir in 1566 .) # We are building in place. 1567 ac_srcdir=. 1568 ac_top_srcdir=$ac_top_builddir_sub 1569 ac_abs_top_srcdir=$ac_pwd ;; 1570 [\\/]* | ?:[\\/]* ) # Absolute name. 1571 ac_srcdir=$srcdir$ac_dir_suffix; 1572 ac_top_srcdir=$srcdir 1573 ac_abs_top_srcdir=$srcdir ;; 1574 *) # Relative name. 1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1576 ac_top_srcdir=$ac_top_build_prefix$srcdir 1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1578esac 1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1580 1581 cd "$ac_dir" || { ac_status=$?; continue; } 1582 # Check for guested configure. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599scim-uim configure 0.2.0 1600generated by GNU Autoconf 2.61 1601 1602Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16032002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1604This configure script is free software; the Free Software Foundation 1605gives unlimited permission to copy, distribute and modify it. 1606_ACEOF 1607 exit 1608fi 1609cat >config.log <<_ACEOF 1610This file contains any messages produced by compilers while 1611running configure, to aid debugging if configure makes a mistake. 1612 1613It was created by scim-uim $as_me 0.2.0, which was 1614generated by GNU Autoconf 2.61. Invocation command line was 1615 1616 $ $0 $@ 1617 1618_ACEOF 1619exec 5>>config.log 1620{ 1621cat <<_ASUNAME 1622## --------- ## 1623## Platform. ## 1624## --------- ## 1625 1626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1627uname -m = `(uname -m) 2>/dev/null || echo unknown` 1628uname -r = `(uname -r) 2>/dev/null || echo unknown` 1629uname -s = `(uname -s) 2>/dev/null || echo unknown` 1630uname -v = `(uname -v) 2>/dev/null || echo unknown` 1631 1632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1633/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1634 1635/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1636/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1638/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1639/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1640/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1641/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1642 1643_ASUNAME 1644 1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1646for as_dir in $PATH 1647do 1648 IFS=$as_save_IFS 1649 test -z "$as_dir" && as_dir=. 1650 echo "PATH: $as_dir" 1651done 1652IFS=$as_save_IFS 1653 1654} >&5 1655 1656cat >&5 <<_ACEOF 1657 1658 1659## ----------- ## 1660## Core tests. ## 1661## ----------- ## 1662 1663_ACEOF 1664 1665 1666# Keep a trace of the command line. 1667# Strip out --no-create and --no-recursion so they do not pile up. 1668# Strip out --silent because we don't want to record it for future runs. 1669# Also quote any args containing shell meta-characters. 1670# Make two passes to allow for proper duplicate-argument suppression. 1671ac_configure_args= 1672ac_configure_args0= 1673ac_configure_args1= 1674ac_must_keep_next=false 1675for ac_pass in 1 2 1676do 1677 for ac_arg 1678 do 1679 case $ac_arg in 1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1682 | -silent | --silent | --silen | --sile | --sil) 1683 continue ;; 1684 *\'*) 1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1686 esac 1687 case $ac_pass in 1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1689 2) 1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1691 if test $ac_must_keep_next = true; then 1692 ac_must_keep_next=false # Got value, back to normal. 1693 else 1694 case $ac_arg in 1695 *=* | --config-cache | -C | -disable-* | --disable-* \ 1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1698 | -with-* | --with-* | -without-* | --without-* | --x) 1699 case "$ac_configure_args0 " in 1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1701 esac 1702 ;; 1703 -* ) ac_must_keep_next=true ;; 1704 esac 1705 fi 1706 ac_configure_args="$ac_configure_args '$ac_arg'" 1707 ;; 1708 esac 1709 done 1710done 1711$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1712$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1713 1714# When interrupted or exit'd, cleanup temporary files, and complete 1715# config.log. We remove comments because anyway the quotes in there 1716# would cause problems or look ugly. 1717# WARNING: Use '\'' to represent an apostrophe within the trap. 1718# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1719trap 'exit_status=$? 1720 # Save into config.log some information that might help in debugging. 1721 { 1722 echo 1723 1724 cat <<\_ASBOX 1725## ---------------- ## 1726## Cache variables. ## 1727## ---------------- ## 1728_ASBOX 1729 echo 1730 # The following way of writing the cache mishandles newlines in values, 1731( 1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1733 eval ac_val=\$$ac_var 1734 case $ac_val in #( 1735 *${as_nl}*) 1736 case $ac_var in #( 1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1738echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1739 esac 1740 case $ac_var in #( 1741 _ | IFS | as_nl) ;; #( 1742 *) $as_unset $ac_var ;; 1743 esac ;; 1744 esac 1745 done 1746 (set) 2>&1 | 1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1748 *${as_nl}ac_space=\ *) 1749 sed -n \ 1750 "s/'\''/'\''\\\\'\'''\''/g; 1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1752 ;; #( 1753 *) 1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1755 ;; 1756 esac | 1757 sort 1758) 1759 echo 1760 1761 cat <<\_ASBOX 1762## ----------------- ## 1763## Output variables. ## 1764## ----------------- ## 1765_ASBOX 1766 echo 1767 for ac_var in $ac_subst_vars 1768 do 1769 eval ac_val=\$$ac_var 1770 case $ac_val in 1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1772 esac 1773 echo "$ac_var='\''$ac_val'\''" 1774 done | sort 1775 echo 1776 1777 if test -n "$ac_subst_files"; then 1778 cat <<\_ASBOX 1779## ------------------- ## 1780## File substitutions. ## 1781## ------------------- ## 1782_ASBOX 1783 echo 1784 for ac_var in $ac_subst_files 1785 do 1786 eval ac_val=\$$ac_var 1787 case $ac_val in 1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1789 esac 1790 echo "$ac_var='\''$ac_val'\''" 1791 done | sort 1792 echo 1793 fi 1794 1795 if test -s confdefs.h; then 1796 cat <<\_ASBOX 1797## ----------- ## 1798## confdefs.h. ## 1799## ----------- ## 1800_ASBOX 1801 echo 1802 cat confdefs.h 1803 echo 1804 fi 1805 test "$ac_signal" != 0 && 1806 echo "$as_me: caught signal $ac_signal" 1807 echo "$as_me: exit $exit_status" 1808 } >&5 1809 rm -f core *.core core.conftest.* && 1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1811 exit $exit_status 1812' 0 1813for ac_signal in 1 2 13 15; do 1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1815done 1816ac_signal=0 1817 1818# confdefs.h avoids OS command line length limits that DEFS can exceed. 1819rm -f -r conftest* confdefs.h 1820 1821# Predefined preprocessor variables. 1822 1823cat >>confdefs.h <<_ACEOF 1824#define PACKAGE_NAME "$PACKAGE_NAME" 1825_ACEOF 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_VERSION "$PACKAGE_VERSION" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define PACKAGE_STRING "$PACKAGE_STRING" 1840_ACEOF 1841 1842 1843cat >>confdefs.h <<_ACEOF 1844#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1845_ACEOF 1846 1847 1848# Let the site file select an alternate cache file if it wants to. 1849# Prefer explicitly selected file to automatically selected ones. 1850if test -n "$CONFIG_SITE"; then 1851 set x "$CONFIG_SITE" 1852elif test "x$prefix" != xNONE; then 1853 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1854else 1855 set x "$ac_default_prefix/share/config.site" \ 1856 "$ac_default_prefix/etc/config.site" 1857fi 1858shift 1859for ac_site_file 1860do 1861 if test -r "$ac_site_file"; then 1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1863echo "$as_me: loading site script $ac_site_file" >&6;} 1864 sed 's/^/| /' "$ac_site_file" >&5 1865 . "$ac_site_file" 1866 fi 1867done 1868 1869if test -r "$cache_file"; then 1870 # Some versions of bash will fail to source /dev/null (special 1871 # files actually), so we avoid doing that. 1872 if test -f "$cache_file"; then 1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1874echo "$as_me: loading cache $cache_file" >&6;} 1875 case $cache_file in 1876 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1877 *) . "./$cache_file";; 1878 esac 1879 fi 1880else 1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1882echo "$as_me: creating cache $cache_file" >&6;} 1883 >$cache_file 1884fi 1885 1886# Check that the precious variables saved in the cache have kept the same 1887# value. 1888ac_cache_corrupted=false 1889for ac_var in $ac_precious_vars; do 1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1891 eval ac_new_set=\$ac_env_${ac_var}_set 1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1893 eval ac_new_val=\$ac_env_${ac_var}_value 1894 case $ac_old_set,$ac_new_set in 1895 set,) 1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1897echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1898 ac_cache_corrupted=: ;; 1899 ,set) 1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1901echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1902 ac_cache_corrupted=: ;; 1903 ,);; 1904 *) 1905 if test "x$ac_old_val" != "x$ac_new_val"; then 1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1907echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1908 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1909echo "$as_me: former value: $ac_old_val" >&2;} 1910 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1911echo "$as_me: current value: $ac_new_val" >&2;} 1912 ac_cache_corrupted=: 1913 fi;; 1914 esac 1915 # Pass precious variables to config.status. 1916 if test "$ac_new_set" = set; then 1917 case $ac_new_val in 1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1919 *) ac_arg=$ac_var=$ac_new_val ;; 1920 esac 1921 case " $ac_configure_args " in 1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1924 esac 1925 fi 1926done 1927if $ac_cache_corrupted; then 1928 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1929echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1930 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1931echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1932 { (exit 1); exit 1; }; } 1933fi 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959ac_ext=c 1960ac_cpp='$CPP $CPPFLAGS' 1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1963ac_compiler_gnu=$ac_cv_c_compiler_gnu 1964 1965 1966 1967 1968# Save this value here, since automake will set cflags and cxxflags later 1969cflags_set=${CFLAGS+set} 1970cppflags_set=${CPPFLAGS+set} 1971 1972SCIM_UIM_MAJOR_VERSION=0 1973SCIM_UIM_MINOR_VERSION=2 1974SCIM_UIM_MICRO_VERSION=0 1975 1976SCIM_UIM_VERSION=$SCIM_UIM_MAJOR_VERSION.$SCIM_UIM_MINOR_VERSION.$SCIM_UIM_MICRO_VERSION 1977 1978 1979 1980 1981 1982 1983# Init automake stuff 1984am__api_version='1.10' 1985 1986ac_aux_dir= 1987for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1988 if test -f "$ac_dir/install-sh"; then 1989 ac_aux_dir=$ac_dir 1990 ac_install_sh="$ac_aux_dir/install-sh -c" 1991 break 1992 elif test -f "$ac_dir/install.sh"; then 1993 ac_aux_dir=$ac_dir 1994 ac_install_sh="$ac_aux_dir/install.sh -c" 1995 break 1996 elif test -f "$ac_dir/shtool"; then 1997 ac_aux_dir=$ac_dir 1998 ac_install_sh="$ac_aux_dir/shtool install -c" 1999 break 2000 fi 2001done 2002if test -z "$ac_aux_dir"; then 2003 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2004echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2005 { (exit 1); exit 1; }; } 2006fi 2007 2008# These three variables are undocumented and unsupported, 2009# and are intended to be withdrawn in a future Autoconf release. 2010# They can cause serious problems if a builder's source tree is in a directory 2011# whose full name contains unusual characters. 2012ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2013ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2014ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2015 2016 2017# Find a good install program. We prefer a C program (faster), 2018# so one script is as good as another. But avoid the broken or 2019# incompatible versions: 2020# SysV /etc/install, /usr/sbin/install 2021# SunOS /usr/etc/install 2022# IRIX /sbin/install 2023# AIX /bin/install 2024# AmigaOS /C/install, which installs bootblocks on floppy discs 2025# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2026# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2027# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2028# OS/2's system install, which has a completely different semantic 2029# ./install, which can be erroneously created by make from ./install.sh. 2030{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2031echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2032if test -z "$INSTALL"; then 2033if test "${ac_cv_path_install+set}" = set; then 2034 echo $ECHO_N "(cached) $ECHO_C" >&6 2035else 2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2037for as_dir in $PATH 2038do 2039 IFS=$as_save_IFS 2040 test -z "$as_dir" && as_dir=. 2041 # Account for people who put trailing slashes in PATH elements. 2042case $as_dir/ in 2043 ./ | .// | /cC/* | \ 2044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2046 /usr/ucb/* ) ;; 2047 *) 2048 # OSF1 and SCO ODT 3.0 have their own names for install. 2049 # Don't use installbsd from OSF since it installs stuff as root 2050 # by default. 2051 for ac_prog in ginstall scoinst install; do 2052 for ac_exec_ext in '' $ac_executable_extensions; do 2053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2054 if test $ac_prog = install && 2055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2056 # AIX install. It has an incompatible calling convention. 2057 : 2058 elif test $ac_prog = install && 2059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2060 # program-specific install script used by HP pwplus--don't use. 2061 : 2062 else 2063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2064 break 3 2065 fi 2066 fi 2067 done 2068 done 2069 ;; 2070esac 2071done 2072IFS=$as_save_IFS 2073 2074 2075fi 2076 if test "${ac_cv_path_install+set}" = set; then 2077 INSTALL=$ac_cv_path_install 2078 else 2079 # As a last resort, use the slow shell script. Don't cache a 2080 # value for INSTALL within a source directory, because that will 2081 # break other packages using the cache if that directory is 2082 # removed, or if the value is a relative name. 2083 INSTALL=$ac_install_sh 2084 fi 2085fi 2086{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2087echo "${ECHO_T}$INSTALL" >&6; } 2088 2089# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2090# It thinks the first close brace ends the variable substitution. 2091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2092 2093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2094 2095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2096 2097{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2098echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2099# Just in case 2100sleep 1 2101echo timestamp > conftest.file 2102# Do `set' in a subshell so we don't clobber the current shell's 2103# arguments. Must try -L first in case configure is actually a 2104# symlink; some systems play weird games with the mod time of symlinks 2105# (eg FreeBSD returns the mod time of the symlink's containing 2106# directory). 2107if ( 2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2109 if test "$*" = "X"; then 2110 # -L didn't work. 2111 set X `ls -t $srcdir/configure conftest.file` 2112 fi 2113 rm -f conftest.file 2114 if test "$*" != "X $srcdir/configure conftest.file" \ 2115 && test "$*" != "X conftest.file $srcdir/configure"; then 2116 2117 # If neither matched, then we have a broken ls. This can happen 2118 # if, for instance, CONFIG_SHELL is bash and it inherits a 2119 # broken ls alias from the environment. This has actually 2120 # happened. Such a system could not be considered "sane". 2121 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2122alias in your environment" >&5 2123echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2124alias in your environment" >&2;} 2125 { (exit 1); exit 1; }; } 2126 fi 2127 2128 test "$2" = conftest.file 2129 ) 2130then 2131 # Ok. 2132 : 2133else 2134 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2135Check your system clock" >&5 2136echo "$as_me: error: newly created file is older than distributed files! 2137Check your system clock" >&2;} 2138 { (exit 1); exit 1; }; } 2139fi 2140{ echo "$as_me:$LINENO: result: yes" >&5 2141echo "${ECHO_T}yes" >&6; } 2142test "$program_prefix" != NONE && 2143 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2144# Use a double $ so make ignores it. 2145test "$program_suffix" != NONE && 2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2147# Double any \ or $. echo might interpret backslashes. 2148# By default was `s,x,x', remove it if useless. 2149cat <<\_ACEOF >conftest.sed 2150s/[\\$]/&&/g;s/;s,x,x,$// 2151_ACEOF 2152program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2153rm -f conftest.sed 2154 2155# expand $ac_aux_dir to an absolute path 2156am_aux_dir=`cd $ac_aux_dir && pwd` 2157 2158test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2159# Use eval to expand $SHELL 2160if eval "$MISSING --run true"; then 2161 am_missing_run="$MISSING --run " 2162else 2163 am_missing_run= 2164 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2165echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2166fi 2167 2168{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2169echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2170if test -z "$MKDIR_P"; then 2171 if test "${ac_cv_path_mkdir+set}" = set; then 2172 echo $ECHO_N "(cached) $ECHO_C" >&6 2173else 2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2175for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2176do 2177 IFS=$as_save_IFS 2178 test -z "$as_dir" && as_dir=. 2179 for ac_prog in mkdir gmkdir; do 2180 for ac_exec_ext in '' $ac_executable_extensions; do 2181 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2182 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2183 'mkdir (GNU coreutils) '* | \ 2184 'mkdir (coreutils) '* | \ 2185 'mkdir (fileutils) '4.1*) 2186 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2187 break 3;; 2188 esac 2189 done 2190 done 2191done 2192IFS=$as_save_IFS 2193 2194fi 2195 2196 if test "${ac_cv_path_mkdir+set}" = set; then 2197 MKDIR_P="$ac_cv_path_mkdir -p" 2198 else 2199 # As a last resort, use the slow shell script. Don't cache a 2200 # value for MKDIR_P within a source directory, because that will 2201 # break other packages using the cache if that directory is 2202 # removed, or if the value is a relative name. 2203 test -d ./--version && rmdir ./--version 2204 MKDIR_P="$ac_install_sh -d" 2205 fi 2206fi 2207{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2208echo "${ECHO_T}$MKDIR_P" >&6; } 2209 2210mkdir_p="$MKDIR_P" 2211case $mkdir_p in 2212 [\\/$]* | ?:[\\/]*) ;; 2213 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2214esac 2215 2216for ac_prog in gawk mawk nawk awk 2217do 2218 # Extract the first word of "$ac_prog", so it can be a program name with args. 2219set dummy $ac_prog; ac_word=$2 2220{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2222if test "${ac_cv_prog_AWK+set}" = set; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 if test -n "$AWK"; then 2226 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2227else 2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 for ac_exec_ext in '' $ac_executable_extensions; do 2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2235 ac_cv_prog_AWK="$ac_prog" 2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2237 break 2 2238 fi 2239done 2240done 2241IFS=$as_save_IFS 2242 2243fi 2244fi 2245AWK=$ac_cv_prog_AWK 2246if test -n "$AWK"; then 2247 { echo "$as_me:$LINENO: result: $AWK" >&5 2248echo "${ECHO_T}$AWK" >&6; } 2249else 2250 { echo "$as_me:$LINENO: result: no" >&5 2251echo "${ECHO_T}no" >&6; } 2252fi 2253 2254 2255 test -n "$AWK" && break 2256done 2257 2258{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2259echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2260set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2261if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2262 echo $ECHO_N "(cached) $ECHO_C" >&6 2263else 2264 cat >conftest.make <<\_ACEOF 2265SHELL = /bin/sh 2266all: 2267 @echo '@@@%%%=$(MAKE)=@@@%%%' 2268_ACEOF 2269# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2270case `${MAKE-make} -f conftest.make 2>/dev/null` in 2271 *@@@%%%=?*=@@@%%%*) 2272 eval ac_cv_prog_make_${ac_make}_set=yes;; 2273 *) 2274 eval ac_cv_prog_make_${ac_make}_set=no;; 2275esac 2276rm -f conftest.make 2277fi 2278if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2279 { echo "$as_me:$LINENO: result: yes" >&5 2280echo "${ECHO_T}yes" >&6; } 2281 SET_MAKE= 2282else 2283 { echo "$as_me:$LINENO: result: no" >&5 2284echo "${ECHO_T}no" >&6; } 2285 SET_MAKE="MAKE=${MAKE-make}" 2286fi 2287 2288rm -rf .tst 2>/dev/null 2289mkdir .tst 2>/dev/null 2290if test -d .tst; then 2291 am__leading_dot=. 2292else 2293 am__leading_dot=_ 2294fi 2295rmdir .tst 2>/dev/null 2296 2297if test "`cd $srcdir && pwd`" != "`pwd`"; then 2298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2299 # is not polluted with repeated "-I." 2300 am__isrc=' -I$(srcdir)' 2301 # test to see if srcdir already configured 2302 if test -f $srcdir/config.status; then 2303 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2304echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2305 { (exit 1); exit 1; }; } 2306 fi 2307fi 2308 2309# test whether we have cygpath 2310if test -z "$CYGPATH_W"; then 2311 if (cygpath --version) >/dev/null 2>/dev/null; then 2312 CYGPATH_W='cygpath -w' 2313 else 2314 CYGPATH_W=echo 2315 fi 2316fi 2317 2318 2319# Define the identity of the package. 2320 PACKAGE='scim-uim' 2321 VERSION='0.2.0' 2322 2323 2324cat >>confdefs.h <<_ACEOF 2325#define PACKAGE "$PACKAGE" 2326_ACEOF 2327 2328 2329cat >>confdefs.h <<_ACEOF 2330#define VERSION "$VERSION" 2331_ACEOF 2332 2333# Some tools Automake needs. 2334 2335ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2336 2337 2338AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2339 2340 2341AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2342 2343 2344AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2345 2346 2347MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2348 2349install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2350 2351# Installed binaries are usually stripped using `strip' when the user 2352# run `make install-strip'. However `strip' might not be the right 2353# tool to use in cross-compilation environments, therefore Automake 2354# will honor the `STRIP' environment variable to overrule this program. 2355if test "$cross_compiling" != no; then 2356 if test -n "$ac_tool_prefix"; then 2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2358set dummy ${ac_tool_prefix}strip; ac_word=$2 2359{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2361if test "${ac_cv_prog_STRIP+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 if test -n "$STRIP"; then 2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2366else 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2376 break 2 2377 fi 2378done 2379done 2380IFS=$as_save_IFS 2381 2382fi 2383fi 2384STRIP=$ac_cv_prog_STRIP 2385if test -n "$STRIP"; then 2386 { echo "$as_me:$LINENO: result: $STRIP" >&5 2387echo "${ECHO_T}$STRIP" >&6; } 2388else 2389 { echo "$as_me:$LINENO: result: no" >&5 2390echo "${ECHO_T}no" >&6; } 2391fi 2392 2393 2394fi 2395if test -z "$ac_cv_prog_STRIP"; then 2396 ac_ct_STRIP=$STRIP 2397 # Extract the first word of "strip", so it can be a program name with args. 2398set dummy strip; ac_word=$2 2399{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2401if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2402 echo $ECHO_N "(cached) $ECHO_C" >&6 2403else 2404 if test -n "$ac_ct_STRIP"; then 2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2406else 2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2408for as_dir in $PATH 2409do 2410 IFS=$as_save_IFS 2411 test -z "$as_dir" && as_dir=. 2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2414 ac_cv_prog_ac_ct_STRIP="strip" 2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2416 break 2 2417 fi 2418done 2419done 2420IFS=$as_save_IFS 2421 2422fi 2423fi 2424ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2425if test -n "$ac_ct_STRIP"; then 2426 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2427echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2428else 2429 { echo "$as_me:$LINENO: result: no" >&5 2430echo "${ECHO_T}no" >&6; } 2431fi 2432 2433 if test "x$ac_ct_STRIP" = x; then 2434 STRIP=":" 2435 else 2436 case $cross_compiling:$ac_tool_warned in 2437yes:) 2438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2439whose name does not start with the host triplet. If you think this 2440configuration is useful to you, please write to autoconf@gnu.org." >&5 2441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2442whose name does not start with the host triplet. If you think this 2443configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2444ac_tool_warned=yes ;; 2445esac 2446 STRIP=$ac_ct_STRIP 2447 fi 2448else 2449 STRIP="$ac_cv_prog_STRIP" 2450fi 2451 2452fi 2453INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2454 2455# We need awk for the "check" target. The system "awk" is bad on 2456# some platforms. 2457# Always define AMTAR for backward compatibility. 2458 2459AMTAR=${AMTAR-"${am_missing_run}tar"} 2460 2461am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2462 2463 2464 2465 2466 2467ac_config_headers="$ac_config_headers config.h" 2468 2469 2470# Init libtool 2471 2472 2473# Check whether --enable-shared was given. 2474if test "${enable_shared+set}" = set; then 2475 enableval=$enable_shared; p=${PACKAGE-default} 2476 case $enableval in 2477 yes) enable_shared=yes ;; 2478 no) enable_shared=no ;; 2479 *) 2480 enable_shared=no 2481 # Look at the argument we got. We use all the common list separators. 2482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2483 for pkg in $enableval; do 2484 IFS="$lt_save_ifs" 2485 if test "X$pkg" = "X$p"; then 2486 enable_shared=yes 2487 fi 2488 done 2489 IFS="$lt_save_ifs" 2490 ;; 2491 esac 2492else 2493 enable_shared=yes 2494fi 2495 2496 2497# Check whether --enable-static was given. 2498if test "${enable_static+set}" = set; then 2499 enableval=$enable_static; p=${PACKAGE-default} 2500 case $enableval in 2501 yes) enable_static=yes ;; 2502 no) enable_static=no ;; 2503 *) 2504 enable_static=no 2505 # Look at the argument we got. We use all the common list separators. 2506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2507 for pkg in $enableval; do 2508 IFS="$lt_save_ifs" 2509 if test "X$pkg" = "X$p"; then 2510 enable_static=yes 2511 fi 2512 done 2513 IFS="$lt_save_ifs" 2514 ;; 2515 esac 2516else 2517 enable_static=yes 2518fi 2519 2520 2521# Check whether --enable-fast-install was given. 2522if test "${enable_fast_install+set}" = set; then 2523 enableval=$enable_fast_install; p=${PACKAGE-default} 2524 case $enableval in 2525 yes) enable_fast_install=yes ;; 2526 no) enable_fast_install=no ;; 2527 *) 2528 enable_fast_install=no 2529 # Look at the argument we got. We use all the common list separators. 2530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2531 for pkg in $enableval; do 2532 IFS="$lt_save_ifs" 2533 if test "X$pkg" = "X$p"; then 2534 enable_fast_install=yes 2535 fi 2536 done 2537 IFS="$lt_save_ifs" 2538 ;; 2539 esac 2540else 2541 enable_fast_install=yes 2542fi 2543 2544 2545# Make sure we can run config.sub. 2546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2548echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2549 { (exit 1); exit 1; }; } 2550 2551{ echo "$as_me:$LINENO: checking build system type" >&5 2552echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2553if test "${ac_cv_build+set}" = set; then 2554 echo $ECHO_N "(cached) $ECHO_C" >&6 2555else 2556 ac_build_alias=$build_alias 2557test "x$ac_build_alias" = x && 2558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2559test "x$ac_build_alias" = x && 2560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2561echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2562 { (exit 1); exit 1; }; } 2563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2565echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2566 { (exit 1); exit 1; }; } 2567 2568fi 2569{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2570echo "${ECHO_T}$ac_cv_build" >&6; } 2571case $ac_cv_build in 2572*-*-*) ;; 2573*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2574echo "$as_me: error: invalid value of canonical build" >&2;} 2575 { (exit 1); exit 1; }; };; 2576esac 2577build=$ac_cv_build 2578ac_save_IFS=$IFS; IFS='-' 2579set x $ac_cv_build 2580shift 2581build_cpu=$1 2582build_vendor=$2 2583shift; shift 2584# Remember, the first character of IFS is used to create $*, 2585# except with old shells: 2586build_os=$* 2587IFS=$ac_save_IFS 2588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2589 2590 2591{ echo "$as_me:$LINENO: checking host system type" >&5 2592echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2593if test "${ac_cv_host+set}" = set; then 2594 echo $ECHO_N "(cached) $ECHO_C" >&6 2595else 2596 if test "x$host_alias" = x; then 2597 ac_cv_host=$ac_cv_build 2598else 2599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2601echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2602 { (exit 1); exit 1; }; } 2603fi 2604 2605fi 2606{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2607echo "${ECHO_T}$ac_cv_host" >&6; } 2608case $ac_cv_host in 2609*-*-*) ;; 2610*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2611echo "$as_me: error: invalid value of canonical host" >&2;} 2612 { (exit 1); exit 1; }; };; 2613esac 2614host=$ac_cv_host 2615ac_save_IFS=$IFS; IFS='-' 2616set x $ac_cv_host 2617shift 2618host_cpu=$1 2619host_vendor=$2 2620shift; shift 2621# Remember, the first character of IFS is used to create $*, 2622# except with old shells: 2623host_os=$* 2624IFS=$ac_save_IFS 2625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2626 2627 2628DEPDIR="${am__leading_dot}deps" 2629 2630ac_config_commands="$ac_config_commands depfiles" 2631 2632 2633am_make=${MAKE-make} 2634cat > confinc << 'END' 2635am__doit: 2636 @echo done 2637.PHONY: am__doit 2638END 2639# If we don't find an include directive, just comment out the code. 2640{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2641echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2642am__include="#" 2643am__quote= 2644_am_result=none 2645# First try GNU make style include. 2646echo "include confinc" > confmf 2647# We grep out `Entering directory' and `Leaving directory' 2648# messages which can occur if `w' ends up in MAKEFLAGS. 2649# In particular we don't look at `^make:' because GNU make might 2650# be invoked under some other name (usually "gmake"), in which 2651# case it prints its new name instead of `make'. 2652if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2653 am__include=include 2654 am__quote= 2655 _am_result=GNU 2656fi 2657# Now try BSD make style include. 2658if test "$am__include" = "#"; then 2659 echo '.include "confinc"' > confmf 2660 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2661 am__include=.include 2662 am__quote="\"" 2663 _am_result=BSD 2664 fi 2665fi 2666 2667 2668{ echo "$as_me:$LINENO: result: $_am_result" >&5 2669echo "${ECHO_T}$_am_result" >&6; } 2670rm -f confinc confmf 2671 2672# Check whether --enable-dependency-tracking was given. 2673if test "${enable_dependency_tracking+set}" = set; then 2674 enableval=$enable_dependency_tracking; 2675fi 2676 2677if test "x$enable_dependency_tracking" != xno; then 2678 am_depcomp="$ac_aux_dir/depcomp" 2679 AMDEPBACKSLASH='\' 2680fi 2681 if test "x$enable_dependency_tracking" != xno; then 2682 AMDEP_TRUE= 2683 AMDEP_FALSE='#' 2684else 2685 AMDEP_TRUE='#' 2686 AMDEP_FALSE= 2687fi 2688 2689 2690ac_ext=c 2691ac_cpp='$CPP $CPPFLAGS' 2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2694ac_compiler_gnu=$ac_cv_c_compiler_gnu 2695if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}gcc; ac_word=$2 2698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2700if test "${ac_cv_prog_CC+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2713 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723CC=$ac_cv_prog_CC 2724if test -n "$CC"; then 2725 { echo "$as_me:$LINENO: result: $CC" >&5 2726echo "${ECHO_T}$CC" >&6; } 2727else 2728 { echo "$as_me:$LINENO: result: no" >&5 2729echo "${ECHO_T}no" >&6; } 2730fi 2731 2732 2733fi 2734if test -z "$ac_cv_prog_CC"; then 2735 ac_ct_CC=$CC 2736 # Extract the first word of "gcc", so it can be a program name with args. 2737set dummy gcc; ac_word=$2 2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2741 echo $ECHO_N "(cached) $ECHO_C" >&6 2742else 2743 if test -n "$ac_ct_CC"; then 2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2753 ac_cv_prog_ac_ct_CC="gcc" 2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758done 2759IFS=$as_save_IFS 2760 2761fi 2762fi 2763ac_ct_CC=$ac_cv_prog_ac_ct_CC 2764if test -n "$ac_ct_CC"; then 2765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2766echo "${ECHO_T}$ac_ct_CC" >&6; } 2767else 2768 { echo "$as_me:$LINENO: result: no" >&5 2769echo "${ECHO_T}no" >&6; } 2770fi 2771 2772 if test "x$ac_ct_CC" = x; then 2773 CC="" 2774 else 2775 case $cross_compiling:$ac_tool_warned in 2776yes:) 2777{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2778whose name does not start with the host triplet. If you think this 2779configuration is useful to you, please write to autoconf@gnu.org." >&5 2780echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2781whose name does not start with the host triplet. If you think this 2782configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2783ac_tool_warned=yes ;; 2784esac 2785 CC=$ac_ct_CC 2786 fi 2787else 2788 CC="$ac_cv_prog_CC" 2789fi 2790 2791if test -z "$CC"; then 2792 if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2794set dummy ${ac_tool_prefix}cc; ac_word=$2 2795{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2797if test "${ac_cv_prog_CC+set}" = set; then 2798 echo $ECHO_N "(cached) $ECHO_C" >&6 2799else 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 ac_cv_prog_CC="${ac_tool_prefix}cc" 2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { echo "$as_me:$LINENO: result: $CC" >&5 2823echo "${ECHO_T}$CC" >&6; } 2824else 2825 { echo "$as_me:$LINENO: result: no" >&5 2826echo "${ECHO_T}no" >&6; } 2827fi 2828 2829 2830 fi 2831fi 2832if test -z "$CC"; then 2833 # Extract the first word of "cc", so it can be a program name with args. 2834set dummy cc; ac_word=$2 2835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2837if test "${ac_cv_prog_CC+set}" = set; then 2838 echo $ECHO_N "(cached) $ECHO_C" >&6 2839else 2840 if test -n "$CC"; then 2841 ac_cv_prog_CC="$CC" # Let the user override the test. 2842else 2843 ac_prog_rejected=no 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2852 ac_prog_rejected=yes 2853 continue 2854 fi 2855 ac_cv_prog_CC="cc" 2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860done 2861IFS=$as_save_IFS 2862 2863if test $ac_prog_rejected = yes; then 2864 # We found a bogon in the path, so make sure we never use it. 2865 set dummy $ac_cv_prog_CC 2866 shift 2867 if test $# != 0; then 2868 # We chose a different compiler from the bogus one. 2869 # However, it has the same basename, so the bogon will be chosen 2870 # first if we set CC to just the basename; use the full file name. 2871 shift 2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2873 fi 2874fi 2875fi 2876fi 2877CC=$ac_cv_prog_CC 2878if test -n "$CC"; then 2879 { echo "$as_me:$LINENO: result: $CC" >&5 2880echo "${ECHO_T}$CC" >&6; } 2881else 2882 { echo "$as_me:$LINENO: result: no" >&5 2883echo "${ECHO_T}no" >&6; } 2884fi 2885 2886 2887fi 2888if test -z "$CC"; then 2889 if test -n "$ac_tool_prefix"; then 2890 for ac_prog in cl.exe 2891 do 2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2893set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2896if test "${ac_cv_prog_CC+set}" = set; then 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 2898else 2899 if test -n "$CC"; then 2900 ac_cv_prog_CC="$CC" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914done 2915IFS=$as_save_IFS 2916 2917fi 2918fi 2919CC=$ac_cv_prog_CC 2920if test -n "$CC"; then 2921 { echo "$as_me:$LINENO: result: $CC" >&5 2922echo "${ECHO_T}$CC" >&6; } 2923else 2924 { echo "$as_me:$LINENO: result: no" >&5 2925echo "${ECHO_T}no" >&6; } 2926fi 2927 2928 2929 test -n "$CC" && break 2930 done 2931fi 2932if test -z "$CC"; then 2933 ac_ct_CC=$CC 2934 for ac_prog in cl.exe 2935do 2936 # Extract the first word of "$ac_prog", so it can be a program name with args. 2937set dummy $ac_prog; ac_word=$2 2938{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2941 echo $ECHO_N "(cached) $ECHO_C" >&6 2942else 2943 if test -n "$ac_ct_CC"; then 2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_ac_ct_CC="$ac_prog" 2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963ac_ct_CC=$ac_cv_prog_ac_ct_CC 2964if test -n "$ac_ct_CC"; then 2965 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2966echo "${ECHO_T}$ac_ct_CC" >&6; } 2967else 2968 { echo "$as_me:$LINENO: result: no" >&5 2969echo "${ECHO_T}no" >&6; } 2970fi 2971 2972 2973 test -n "$ac_ct_CC" && break 2974done 2975 2976 if test "x$ac_ct_CC" = x; then 2977 CC="" 2978 else 2979 case $cross_compiling:$ac_tool_warned in 2980yes:) 2981{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2982whose name does not start with the host triplet. If you think this 2983configuration is useful to you, please write to autoconf@gnu.org." >&5 2984echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2985whose name does not start with the host triplet. If you think this 2986configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2987ac_tool_warned=yes ;; 2988esac 2989 CC=$ac_ct_CC 2990 fi 2991fi 2992 2993fi 2994 2995 2996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2997See \`config.log' for more details." >&5 2998echo "$as_me: error: no acceptable C compiler found in \$PATH 2999See \`config.log' for more details." >&2;} 3000 { (exit 1); exit 1; }; } 3001 3002# Provide some information about the compiler. 3003echo "$as_me:$LINENO: checking for C compiler version" >&5 3004ac_compiler=`set X $ac_compile; echo $2` 3005{ (ac_try="$ac_compiler --version >&5" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_compiler --version >&5") 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); } 3015{ (ac_try="$ac_compiler -v >&5" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_compiler -v >&5") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); } 3025{ (ac_try="$ac_compiler -V >&5" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_compiler -V >&5") 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } 3035 3036cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051ac_clean_files_save=$ac_clean_files 3052ac_clean_files="$ac_clean_files a.out a.exe b.out" 3053# Try to create an executable without -o first, disregard a.out. 3054# It will help us diagnose broken compilers, and finding out an intuition 3055# of exeext. 3056{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3057echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3058ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3059# 3060# List of possible output files, starting from the most likely. 3061# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3062# only as a last resort. b.out is created by i960 compilers. 3063ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3064# 3065# The IRIX 6 linker writes into existing files which may not be 3066# executable, retaining their permissions. Remove them first so a 3067# subsequent execution test works. 3068ac_rmfiles= 3069for ac_file in $ac_files 3070do 3071 case $ac_file in 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3073 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3074 esac 3075done 3076rm -f $ac_rmfiles 3077 3078if { (ac_try="$ac_link_default" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3084 (eval "$ac_link_default") 2>&5 3085 ac_status=$? 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); }; then 3088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3090# in a Makefile. We should not override ac_cv_exeext if it was cached, 3091# so that the user can short-circuit this test for compilers unknown to 3092# Autoconf. 3093for ac_file in $ac_files '' 3094do 3095 test -f "$ac_file" || continue 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3098 ;; 3099 [ab].out ) 3100 # We found the default executable, but exeext='' is most 3101 # certainly right. 3102 break;; 3103 *.* ) 3104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3105 then :; else 3106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3107 fi 3108 # We set ac_cv_exeext here because the later test for it is not 3109 # safe: cross compilers may not add the suffix if given an `-o' 3110 # argument, so we may need to know it at that point already. 3111 # Even if this section looks crufty: it has the advantage of 3112 # actually working. 3113 break;; 3114 * ) 3115 break;; 3116 esac 3117done 3118test "$ac_cv_exeext" = no && ac_cv_exeext= 3119 3120else 3121 ac_file='' 3122fi 3123 3124{ echo "$as_me:$LINENO: result: $ac_file" >&5 3125echo "${ECHO_T}$ac_file" >&6; } 3126if test -z "$ac_file"; then 3127 echo "$as_me: failed program was:" >&5 3128sed 's/^/| /' conftest.$ac_ext >&5 3129 3130{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3131See \`config.log' for more details." >&5 3132echo "$as_me: error: C compiler cannot create executables 3133See \`config.log' for more details." >&2;} 3134 { (exit 77); exit 77; }; } 3135fi 3136 3137ac_exeext=$ac_cv_exeext 3138 3139# Check that the compiler produces executables we can run. If not, either 3140# the compiler is broken, or we cross compile. 3141{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3142echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3143# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3144# If not cross compiling, check that we can run a simple program. 3145if test "$cross_compiling" != yes; then 3146 if { ac_try='./$ac_file' 3147 { (case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3152 (eval "$ac_try") 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); }; }; then 3156 cross_compiling=no 3157 else 3158 if test "$cross_compiling" = maybe; then 3159 cross_compiling=yes 3160 else 3161 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3162If you meant to cross compile, use \`--host'. 3163See \`config.log' for more details." >&5 3164echo "$as_me: error: cannot run C compiled programs. 3165If you meant to cross compile, use \`--host'. 3166See \`config.log' for more details." >&2;} 3167 { (exit 1); exit 1; }; } 3168 fi 3169 fi 3170fi 3171{ echo "$as_me:$LINENO: result: yes" >&5 3172echo "${ECHO_T}yes" >&6; } 3173 3174rm -f a.out a.exe conftest$ac_cv_exeext b.out 3175ac_clean_files=$ac_clean_files_save 3176# Check that the compiler produces executables we can run. If not, either 3177# the compiler is broken, or we cross compile. 3178{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3179echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3180{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3181echo "${ECHO_T}$cross_compiling" >&6; } 3182 3183{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3184echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3185if { (ac_try="$ac_link" 3186case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3191 (eval "$ac_link") 2>&5 3192 ac_status=$? 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); }; then 3195 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3196# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3197# work properly (i.e., refer to `conftest.exe'), while it won't with 3198# `rm'. 3199for ac_file in conftest.exe conftest conftest.*; do 3200 test -f "$ac_file" || continue 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3204 break;; 3205 * ) break;; 3206 esac 3207done 3208else 3209 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3210See \`config.log' for more details." >&5 3211echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3212See \`config.log' for more details." >&2;} 3213 { (exit 1); exit 1; }; } 3214fi 3215 3216rm -f conftest$ac_cv_exeext 3217{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3218echo "${ECHO_T}$ac_cv_exeext" >&6; } 3219 3220rm -f conftest.$ac_ext 3221EXEEXT=$ac_cv_exeext 3222ac_exeext=$EXEEXT 3223{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3224echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3225if test "${ac_cv_objext+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else 3228 cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243rm -f conftest.o conftest.obj 3244if { (ac_try="$ac_compile" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_compile") 2>&5 3251 ac_status=$? 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; then 3254 for ac_file in conftest.o conftest.obj conftest.*; do 3255 test -f "$ac_file" || continue; 3256 case $ac_file in 3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3259 break;; 3260 esac 3261done 3262else 3263 echo "$as_me: failed program was:" >&5 3264sed 's/^/| /' conftest.$ac_ext >&5 3265 3266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3267See \`config.log' for more details." >&5 3268echo "$as_me: error: cannot compute suffix of object files: cannot compile 3269See \`config.log' for more details." >&2;} 3270 { (exit 1); exit 1; }; } 3271fi 3272 3273rm -f conftest.$ac_cv_objext conftest.$ac_ext 3274fi 3275{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3276echo "${ECHO_T}$ac_cv_objext" >&6; } 3277OBJEXT=$ac_cv_objext 3278ac_objext=$OBJEXT 3279{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3281if test "${ac_cv_c_compiler_gnu+set}" = set; then 3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3283else 3284 cat >conftest.$ac_ext <<_ACEOF 3285/* confdefs.h. */ 3286_ACEOF 3287cat confdefs.h >>conftest.$ac_ext 3288cat >>conftest.$ac_ext <<_ACEOF 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294#ifndef __GNUC__ 3295 choke me 3296#endif 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302rm -f conftest.$ac_objext 3303if { (ac_try="$ac_compile" 3304case "(($ac_try" in 3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306 *) ac_try_echo=$ac_try;; 3307esac 3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3309 (eval "$ac_compile") 2>conftest.er1 3310 ac_status=$? 3311 grep -v '^ *+' conftest.er1 >conftest.err 3312 rm -f conftest.er1 3313 cat conftest.err >&5 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); } && { 3316 test -z "$ac_c_werror_flag" || 3317 test ! -s conftest.err 3318 } && test -s conftest.$ac_objext; then 3319 ac_compiler_gnu=yes 3320else 3321 echo "$as_me: failed program was:" >&5 3322sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 ac_compiler_gnu=no 3325fi 3326 3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3328ac_cv_c_compiler_gnu=$ac_compiler_gnu 3329 3330fi 3331{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3332echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3333GCC=`test $ac_compiler_gnu = yes && echo yes` 3334ac_test_CFLAGS=${CFLAGS+set} 3335ac_save_CFLAGS=$CFLAGS 3336{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3337echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3338if test "${ac_cv_prog_cc_g+set}" = set; then 3339 echo $ECHO_N "(cached) $ECHO_C" >&6 3340else 3341 ac_save_c_werror_flag=$ac_c_werror_flag 3342 ac_c_werror_flag=yes 3343 ac_cv_prog_cc_g=no 3344 CFLAGS="-g" 3345 cat >conftest.$ac_ext <<_ACEOF 3346/* confdefs.h. */ 3347_ACEOF 3348cat confdefs.h >>conftest.$ac_ext 3349cat >>conftest.$ac_ext <<_ACEOF 3350/* end confdefs.h. */ 3351 3352int 3353main () 3354{ 3355 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360rm -f conftest.$ac_objext 3361if { (ac_try="$ac_compile" 3362case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365esac 3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3367 (eval "$ac_compile") 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } && { 3374 test -z "$ac_c_werror_flag" || 3375 test ! -s conftest.err 3376 } && test -s conftest.$ac_objext; then 3377 ac_cv_prog_cc_g=yes 3378else 3379 echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382 CFLAGS="" 3383 cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.$ac_objext 3399if { (ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3405 (eval "$ac_compile") 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && { 3412 test -z "$ac_c_werror_flag" || 3413 test ! -s conftest.err 3414 } && test -s conftest.$ac_objext; then 3415 : 3416else 3417 echo "$as_me: failed program was:" >&5 3418sed 's/^/| /' conftest.$ac_ext >&5 3419 3420 ac_c_werror_flag=$ac_save_c_werror_flag 3421 CFLAGS="-g" 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext 3438if { (ac_try="$ac_compile" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3444 (eval "$ac_compile") 2>conftest.er1 3445 ac_status=$? 3446 grep -v '^ *+' conftest.er1 >conftest.err 3447 rm -f conftest.er1 3448 cat conftest.err >&5 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); } && { 3451 test -z "$ac_c_werror_flag" || 3452 test ! -s conftest.err 3453 } && test -s conftest.$ac_objext; then 3454 ac_cv_prog_cc_g=yes 3455else 3456 echo "$as_me: failed program was:" >&5 3457sed 's/^/| /' conftest.$ac_ext >&5 3458 3459 3460fi 3461 3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3463fi 3464 3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466fi 3467 3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3469 ac_c_werror_flag=$ac_save_c_werror_flag 3470fi 3471{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3472echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3473if test "$ac_test_CFLAGS" = set; then 3474 CFLAGS=$ac_save_CFLAGS 3475elif test $ac_cv_prog_cc_g = yes; then 3476 if test "$GCC" = yes; then 3477 CFLAGS="-g -O2" 3478 else 3479 CFLAGS="-g" 3480 fi 3481else 3482 if test "$GCC" = yes; then 3483 CFLAGS="-O2" 3484 else 3485 CFLAGS= 3486 fi 3487fi 3488{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3489echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3490if test "${ac_cv_prog_cc_c89+set}" = set; then 3491 echo $ECHO_N "(cached) $ECHO_C" >&6 3492else 3493 ac_cv_prog_cc_c89=no 3494ac_save_CC=$CC 3495cat >conftest.$ac_ext <<_ACEOF 3496/* confdefs.h. */ 3497_ACEOF 3498cat confdefs.h >>conftest.$ac_ext 3499cat >>conftest.$ac_ext <<_ACEOF 3500/* end confdefs.h. */ 3501#include <stdarg.h> 3502#include <stdio.h> 3503#include <sys/types.h> 3504#include <sys/stat.h> 3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3506struct buf { int x; }; 3507FILE * (*rcsopen) (struct buf *, struct stat *, int); 3508static char *e (p, i) 3509 char **p; 3510 int i; 3511{ 3512 return p[i]; 3513} 3514static char *f (char * (*g) (char **, int), char **p, ...) 3515{ 3516 char *s; 3517 va_list v; 3518 va_start (v,p); 3519 s = g (p, va_arg (v,int)); 3520 va_end (v); 3521 return s; 3522} 3523 3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3525 function prototypes and stuff, but not '\xHH' hex character constants. 3526 These don't provoke an error unfortunately, instead are silently treated 3527 as 'x'. The following induces an error, until -std is added to get 3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3529 array size at least. It's necessary to write '\x00'==0 to get something 3530 that's true only with -std. */ 3531int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3532 3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3534 inside strings and character constants. */ 3535#define FOO(x) 'x' 3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3537 3538int test (int i, double x); 3539struct s1 {int (*f) (int a);}; 3540struct s2 {int (*f) (double a);}; 3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3542int argc; 3543char **argv; 3544int 3545main () 3546{ 3547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3554do 3555 CC="$ac_save_CC $ac_arg" 3556 rm -f conftest.$ac_objext 3557if { (ac_try="$ac_compile" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3563 (eval "$ac_compile") 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && { 3570 test -z "$ac_c_werror_flag" || 3571 test ! -s conftest.err 3572 } && test -s conftest.$ac_objext; then 3573 ac_cv_prog_cc_c89=$ac_arg 3574else 3575 echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 3579fi 3580 3581rm -f core conftest.err conftest.$ac_objext 3582 test "x$ac_cv_prog_cc_c89" != "xno" && break 3583done 3584rm -f conftest.$ac_ext 3585CC=$ac_save_CC 3586 3587fi 3588# AC_CACHE_VAL 3589case "x$ac_cv_prog_cc_c89" in 3590 x) 3591 { echo "$as_me:$LINENO: result: none needed" >&5 3592echo "${ECHO_T}none needed" >&6; } ;; 3593 xno) 3594 { echo "$as_me:$LINENO: result: unsupported" >&5 3595echo "${ECHO_T}unsupported" >&6; } ;; 3596 *) 3597 CC="$CC $ac_cv_prog_cc_c89" 3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3599echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3600esac 3601 3602 3603ac_ext=c 3604ac_cpp='$CPP $CPPFLAGS' 3605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3607ac_compiler_gnu=$ac_cv_c_compiler_gnu 3608 3609depcc="$CC" am_compiler_list= 3610 3611{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3612echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3613if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3614 echo $ECHO_N "(cached) $ECHO_C" >&6 3615else 3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3617 # We make a subdir and do the tests there. Otherwise we can end up 3618 # making bogus files that we don't know about and never remove. For 3619 # instance it was reported that on HP-UX the gcc test will end up 3620 # making a dummy file named `D' -- because `-MD' means `put the output 3621 # in D'. 3622 mkdir conftest.dir 3623 # Copy depcomp to subdir because otherwise we won't find it if we're 3624 # using a relative directory. 3625 cp "$am_depcomp" conftest.dir 3626 cd conftest.dir 3627 # We will build objects and dependencies in a subdirectory because 3628 # it helps to detect inapplicable dependency modes. For instance 3629 # both Tru64's cc and ICC support -MD to output dependencies as a 3630 # side effect of compilation, but ICC will put the dependencies in 3631 # the current directory while Tru64 will put them in the object 3632 # directory. 3633 mkdir sub 3634 3635 am_cv_CC_dependencies_compiler_type=none 3636 if test "$am_compiler_list" = ""; then 3637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3638 fi 3639 for depmode in $am_compiler_list; do 3640 # Setup a source with many dependencies, because some compilers 3641 # like to wrap large dependency lists on column 80 (with \), and 3642 # we should not choose a depcomp mode which is confused by this. 3643 # 3644 # We need to recreate these files for each test, as the compiler may 3645 # overwrite some of them when testing with obscure command lines. 3646 # This happens at least with the AIX C compiler. 3647 : > sub/conftest.c 3648 for i in 1 2 3 4 5 6; do 3649 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3651 # Solaris 8's {/usr,}/bin/sh. 3652 touch sub/conftst$i.h 3653 done 3654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3655 3656 case $depmode in 3657 nosideeffect) 3658 # after this tag, mechanisms are not by side-effect, so they'll 3659 # only be used when explicitly requested 3660 if test "x$enable_dependency_tracking" = xyes; then 3661 continue 3662 else 3663 break 3664 fi 3665 ;; 3666 none) break ;; 3667 esac 3668 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3669 # mode. It turns out that the SunPro C++ compiler does not properly 3670 # handle `-M -o', and we need to detect this. 3671 if depmode=$depmode \ 3672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3675 >/dev/null 2>conftest.err && 3676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3678 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3680 # icc doesn't choke on unknown options, it will just issue warnings 3681 # or remarks (even with -Werror). So we grep stderr for any message 3682 # that says an option was ignored or not supported. 3683 # When given -MP, icc 7.0 and 7.1 complain thusly: 3684 # icc: Command line warning: ignoring option '-M'; no argument required 3685 # The diagnosis changed in icc 8.0: 3686 # icc: Command line remark: option '-MP' not supported 3687 if (grep 'ignoring option' conftest.err || 3688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3689 am_cv_CC_dependencies_compiler_type=$depmode 3690 break 3691 fi 3692 fi 3693 done 3694 3695 cd .. 3696 rm -rf conftest.dir 3697else 3698 am_cv_CC_dependencies_compiler_type=none 3699fi 3700 3701fi 3702{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3703echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3704CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3705 3706 if 3707 test "x$enable_dependency_tracking" != xno \ 3708 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3709 am__fastdepCC_TRUE= 3710 am__fastdepCC_FALSE='#' 3711else 3712 am__fastdepCC_TRUE='#' 3713 am__fastdepCC_FALSE= 3714fi 3715 3716 3717{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3718echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3719if test "${lt_cv_path_SED+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 # Loop through the user's path and test for sed and gsed. 3723# Then use that list of sed's as ones to test for truncation. 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for lt_ac_prog in sed gsed; do 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3732 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3733 fi 3734 done 3735 done 3736done 3737lt_ac_max=0 3738lt_ac_count=0 3739# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3740# along with /bin/sed that truncates output. 3741for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3742 test ! -f $lt_ac_sed && continue 3743 cat /dev/null > conftest.in 3744 lt_ac_count=0 3745 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3746 # Check for GNU sed and select it if it is found. 3747 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3748 lt_cv_path_SED=$lt_ac_sed 3749 break 3750 fi 3751 while true; do 3752 cat conftest.in conftest.in >conftest.tmp 3753 mv conftest.tmp conftest.in 3754 cp conftest.in conftest.nl 3755 echo >>conftest.nl 3756 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3757 cmp -s conftest.out conftest.nl || break 3758 # 10000 chars as input seems more than enough 3759 test $lt_ac_count -gt 10 && break 3760 lt_ac_count=`expr $lt_ac_count + 1` 3761 if test $lt_ac_count -gt $lt_ac_max; then 3762 lt_ac_max=$lt_ac_count 3763 lt_cv_path_SED=$lt_ac_sed 3764 fi 3765 done 3766done 3767 3768fi 3769 3770SED=$lt_cv_path_SED 3771{ echo "$as_me:$LINENO: result: $SED" >&5 3772echo "${ECHO_T}$SED" >&6; } 3773 3774{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3775echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3776if test "${ac_cv_path_GREP+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 # Extract the first word of "grep ggrep" to use in msg output 3780if test -z "$GREP"; then 3781set dummy grep ggrep; ac_prog_name=$2 3782if test "${ac_cv_path_GREP+set}" = set; then 3783 echo $ECHO_N "(cached) $ECHO_C" >&6 3784else 3785 ac_path_GREP_found=false 3786# Loop through the user's path and test for each of PROGNAME-LIST 3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3789do 3790 IFS=$as_save_IFS 3791 test -z "$as_dir" && as_dir=. 3792 for ac_prog in grep ggrep; do 3793 for ac_exec_ext in '' $ac_executable_extensions; do 3794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3796 # Check for GNU ac_path_GREP and select it if it is found. 3797 # Check for GNU $ac_path_GREP 3798case `"$ac_path_GREP" --version 2>&1` in 3799*GNU*) 3800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3801*) 3802 ac_count=0 3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3804 while : 3805 do 3806 cat "conftest.in" "conftest.in" >"conftest.tmp" 3807 mv "conftest.tmp" "conftest.in" 3808 cp "conftest.in" "conftest.nl" 3809 echo 'GREP' >> "conftest.nl" 3810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3812 ac_count=`expr $ac_count + 1` 3813 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3814 # Best one so far, save it but keep looking for a better one 3815 ac_cv_path_GREP="$ac_path_GREP" 3816 ac_path_GREP_max=$ac_count 3817 fi 3818 # 10*(2^10) chars as input seems more than enough 3819 test $ac_count -gt 10 && break 3820 done 3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3822esac 3823 3824 3825 $ac_path_GREP_found && break 3 3826 done 3827done 3828 3829done 3830IFS=$as_save_IFS 3831 3832 3833fi 3834 3835GREP="$ac_cv_path_GREP" 3836if test -z "$GREP"; then 3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3839 { (exit 1); exit 1; }; } 3840fi 3841 3842else 3843 ac_cv_path_GREP=$GREP 3844fi 3845 3846 3847fi 3848{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3849echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3850 GREP="$ac_cv_path_GREP" 3851 3852 3853{ echo "$as_me:$LINENO: checking for egrep" >&5 3854echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3855if test "${ac_cv_path_EGREP+set}" = set; then 3856 echo $ECHO_N "(cached) $ECHO_C" >&6 3857else 3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3859 then ac_cv_path_EGREP="$GREP -E" 3860 else 3861 # Extract the first word of "egrep" to use in msg output 3862if test -z "$EGREP"; then 3863set dummy egrep; ac_prog_name=$2 3864if test "${ac_cv_path_EGREP+set}" = set; then 3865 echo $ECHO_N "(cached) $ECHO_C" >&6 3866else 3867 ac_path_EGREP_found=false 3868# Loop through the user's path and test for each of PROGNAME-LIST 3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3871do 3872 IFS=$as_save_IFS 3873 test -z "$as_dir" && as_dir=. 3874 for ac_prog in egrep; do 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3878 # Check for GNU ac_path_EGREP and select it if it is found. 3879 # Check for GNU $ac_path_EGREP 3880case `"$ac_path_EGREP" --version 2>&1` in 3881*GNU*) 3882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3883*) 3884 ac_count=0 3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3886 while : 3887 do 3888 cat "conftest.in" "conftest.in" >"conftest.tmp" 3889 mv "conftest.tmp" "conftest.in" 3890 cp "conftest.in" "conftest.nl" 3891 echo 'EGREP' >> "conftest.nl" 3892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3894 ac_count=`expr $ac_count + 1` 3895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3896 # Best one so far, save it but keep looking for a better one 3897 ac_cv_path_EGREP="$ac_path_EGREP" 3898 ac_path_EGREP_max=$ac_count 3899 fi 3900 # 10*(2^10) chars as input seems more than enough 3901 test $ac_count -gt 10 && break 3902 done 3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3904esac 3905 3906 3907 $ac_path_EGREP_found && break 3 3908 done 3909done 3910 3911done 3912IFS=$as_save_IFS 3913 3914 3915fi 3916 3917EGREP="$ac_cv_path_EGREP" 3918if test -z "$EGREP"; then 3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3921 { (exit 1); exit 1; }; } 3922fi 3923 3924else 3925 ac_cv_path_EGREP=$EGREP 3926fi 3927 3928 3929 fi 3930fi 3931{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3932echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3933 EGREP="$ac_cv_path_EGREP" 3934 3935 3936 3937# Check whether --with-gnu-ld was given. 3938if test "${with_gnu_ld+set}" = set; then 3939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3940else 3941 with_gnu_ld=no 3942fi 3943 3944ac_prog=ld 3945if test "$GCC" = yes; then 3946 # Check if gcc -print-prog-name=ld gives a path. 3947 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3948echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3949 case $host in 3950 *-*-mingw*) 3951 # gcc leaves a trailing carriage return which upsets mingw 3952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3953 *) 3954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3955 esac 3956 case $ac_prog in 3957 # Accept absolute paths. 3958 [\\/]* | ?:[\\/]*) 3959 re_direlt='/[^/][^/]*/\.\./' 3960 # Canonicalize the pathname of ld 3961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3964 done 3965 test -z "$LD" && LD="$ac_prog" 3966 ;; 3967 "") 3968 # If it fails, then pretend we aren't using GCC. 3969 ac_prog=ld 3970 ;; 3971 *) 3972 # If it is relative, then search for the first ld in PATH. 3973 with_gnu_ld=unknown 3974 ;; 3975 esac 3976elif test "$with_gnu_ld" = yes; then 3977 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3978echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3979else 3980 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3981echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3982fi 3983if test "${lt_cv_path_LD+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 if test -z "$LD"; then 3987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3988 for ac_dir in $PATH; do 3989 IFS="$lt_save_ifs" 3990 test -z "$ac_dir" && ac_dir=. 3991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3992 lt_cv_path_LD="$ac_dir/$ac_prog" 3993 # Check to see if the program is GNU ld. I'd rather use --version, 3994 # but apparently some variants of GNU ld only accept -v. 3995 # Break only if it was the GNU/non-GNU ld that we prefer. 3996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3997 *GNU* | *'with BFD'*) 3998 test "$with_gnu_ld" != no && break 3999 ;; 4000 *) 4001 test "$with_gnu_ld" != yes && break 4002 ;; 4003 esac 4004 fi 4005 done 4006 IFS="$lt_save_ifs" 4007else 4008 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4009fi 4010fi 4011 4012LD="$lt_cv_path_LD" 4013if test -n "$LD"; then 4014 { echo "$as_me:$LINENO: result: $LD" >&5 4015echo "${ECHO_T}$LD" >&6; } 4016else 4017 { echo "$as_me:$LINENO: result: no" >&5 4018echo "${ECHO_T}no" >&6; } 4019fi 4020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4022 { (exit 1); exit 1; }; } 4023{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4025if test "${lt_cv_prog_gnu_ld+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4029case `$LD -v 2>&1 </dev/null` in 4030*GNU* | *'with BFD'*) 4031 lt_cv_prog_gnu_ld=yes 4032 ;; 4033*) 4034 lt_cv_prog_gnu_ld=no 4035 ;; 4036esac 4037fi 4038{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4039echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4040with_gnu_ld=$lt_cv_prog_gnu_ld 4041 4042 4043{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4044echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4045if test "${lt_cv_ld_reload_flag+set}" = set; then 4046 echo $ECHO_N "(cached) $ECHO_C" >&6 4047else 4048 lt_cv_ld_reload_flag='-r' 4049fi 4050{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4051echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4052reload_flag=$lt_cv_ld_reload_flag 4053case $reload_flag in 4054"" | " "*) ;; 4055*) reload_flag=" $reload_flag" ;; 4056esac 4057reload_cmds='$LD$reload_flag -o $output$reload_objs' 4058case $host_os in 4059 darwin*) 4060 if test "$GCC" = yes; then 4061 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4062 else 4063 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4064 fi 4065 ;; 4066esac 4067 4068{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4069echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4070if test "${lt_cv_path_NM+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 if test -n "$NM"; then 4074 # Let the user override the test. 4075 lt_cv_path_NM="$NM" 4076else 4077 lt_nm_to_check="${ac_tool_prefix}nm" 4078 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4079 lt_nm_to_check="$lt_nm_to_check nm" 4080 fi 4081 for lt_tmp_nm in $lt_nm_to_check; do 4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4083 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4084 IFS="$lt_save_ifs" 4085 test -z "$ac_dir" && ac_dir=. 4086 tmp_nm="$ac_dir/$lt_tmp_nm" 4087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4088 # Check to see if the nm accepts a BSD-compat flag. 4089 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4090 # nm: unknown option "B" ignored 4091 # Tru64's nm complains that /dev/null is an invalid object file 4092 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4093 */dev/null* | *'Invalid file or object type'*) 4094 lt_cv_path_NM="$tmp_nm -B" 4095 break 4096 ;; 4097 *) 4098 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4099 */dev/null*) 4100 lt_cv_path_NM="$tmp_nm -p" 4101 break 4102 ;; 4103 *) 4104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4105 continue # so that we can try to find one that supports BSD flags 4106 ;; 4107 esac 4108 ;; 4109 esac 4110 fi 4111 done 4112 IFS="$lt_save_ifs" 4113 done 4114 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4115fi 4116fi 4117{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4118echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4119NM="$lt_cv_path_NM" 4120 4121{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4122echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4123LN_S=$as_ln_s 4124if test "$LN_S" = "ln -s"; then 4125 { echo "$as_me:$LINENO: result: yes" >&5 4126echo "${ECHO_T}yes" >&6; } 4127else 4128 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4129echo "${ECHO_T}no, using $LN_S" >&6; } 4130fi 4131 4132{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4133echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4134if test "${lt_cv_deplibs_check_method+set}" = set; then 4135 echo $ECHO_N "(cached) $ECHO_C" >&6 4136else 4137 lt_cv_file_magic_cmd='$MAGIC_CMD' 4138lt_cv_file_magic_test_file= 4139lt_cv_deplibs_check_method='unknown' 4140# Need to set the preceding variable on all platforms that support 4141# interlibrary dependencies. 4142# 'none' -- dependencies not supported. 4143# `unknown' -- same as none, but documents that we really don't know. 4144# 'pass_all' -- all dependencies passed with no checks. 4145# 'test_compile' -- check by making test program. 4146# 'file_magic [[regex]]' -- check by looking for files in library path 4147# which responds to the $file_magic_cmd with a given extended regex. 4148# If you have `file' or equivalent on your system and you're not sure 4149# whether `pass_all' will *always* work, you probably want this one. 4150 4151case $host_os in 4152aix4* | aix5*) 4153 lt_cv_deplibs_check_method=pass_all 4154 ;; 4155 4156beos*) 4157 lt_cv_deplibs_check_method=pass_all 4158 ;; 4159 4160bsdi[45]*) 4161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4162 lt_cv_file_magic_cmd='/usr/bin/file -L' 4163 lt_cv_file_magic_test_file=/shlib/libc.so 4164 ;; 4165 4166cygwin*) 4167 # func_win32_libid is a shell function defined in ltmain.sh 4168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4169 lt_cv_file_magic_cmd='func_win32_libid' 4170 ;; 4171 4172mingw* | pw32*) 4173 # Base MSYS/MinGW do not provide the 'file' command needed by 4174 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4176 lt_cv_file_magic_cmd='$OBJDUMP -f' 4177 ;; 4178 4179darwin* | rhapsody*) 4180 lt_cv_deplibs_check_method=pass_all 4181 ;; 4182 4183freebsd* | dragonfly*) 4184 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4185 case $host_cpu in 4186 i*86 ) 4187 # Not sure whether the presence of OpenBSD here was a mistake. 4188 # Let's accept both of them until this is cleared up. 4189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4190 lt_cv_file_magic_cmd=/usr/bin/file 4191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4192 ;; 4193 esac 4194 else 4195 lt_cv_deplibs_check_method=pass_all 4196 fi 4197 ;; 4198 4199gnu*) 4200 lt_cv_deplibs_check_method=pass_all 4201 ;; 4202 4203hpux10.20* | hpux11*) 4204 lt_cv_file_magic_cmd=/usr/bin/file 4205 case $host_cpu in 4206 ia64*) 4207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4208 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4209 ;; 4210 hppa*64*) 4211 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]' 4212 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4213 ;; 4214 *) 4215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4216 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4217 ;; 4218 esac 4219 ;; 4220 4221interix3*) 4222 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4224 ;; 4225 4226irix5* | irix6* | nonstopux*) 4227 case $LD in 4228 *-32|*"-32 ") libmagic=32-bit;; 4229 *-n32|*"-n32 ") libmagic=N32;; 4230 *-64|*"-64 ") libmagic=64-bit;; 4231 *) libmagic=never-match;; 4232 esac 4233 lt_cv_deplibs_check_method=pass_all 4234 ;; 4235 4236# This must be Linux ELF. 4237linux* | k*bsd*-gnu) 4238 lt_cv_deplibs_check_method=pass_all 4239 ;; 4240 4241netbsd* | netbsdelf*-gnu) 4242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4244 else 4245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4246 fi 4247 ;; 4248 4249newos6*) 4250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4251 lt_cv_file_magic_cmd=/usr/bin/file 4252 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4253 ;; 4254 4255nto-qnx*) 4256 lt_cv_deplibs_check_method=unknown 4257 ;; 4258 4259openbsd*) 4260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4262 else 4263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4264 fi 4265 ;; 4266 4267osf3* | osf4* | osf5*) 4268 lt_cv_deplibs_check_method=pass_all 4269 ;; 4270 4271solaris*) 4272 lt_cv_deplibs_check_method=pass_all 4273 ;; 4274 4275sysv4 | sysv4.3*) 4276 case $host_vendor in 4277 motorola) 4278 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]' 4279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4280 ;; 4281 ncr) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 sequent) 4285 lt_cv_file_magic_cmd='/bin/file' 4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4287 ;; 4288 sni) 4289 lt_cv_file_magic_cmd='/bin/file' 4290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4291 lt_cv_file_magic_test_file=/lib/libc.so 4292 ;; 4293 siemens) 4294 lt_cv_deplibs_check_method=pass_all 4295 ;; 4296 pc) 4297 lt_cv_deplibs_check_method=pass_all 4298 ;; 4299 esac 4300 ;; 4301 4302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305esac 4306 4307fi 4308{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4309echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4310file_magic_cmd=$lt_cv_file_magic_cmd 4311deplibs_check_method=$lt_cv_deplibs_check_method 4312test -z "$deplibs_check_method" && deplibs_check_method=unknown 4313 4314 4315 4316 4317# If no C compiler was specified, use CC. 4318LTCC=${LTCC-"$CC"} 4319 4320# If no C compiler flags were specified, use CFLAGS. 4321LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4322 4323# Allow CC to be a program name with arguments. 4324compiler=$CC 4325 4326 4327# Check whether --enable-libtool-lock was given. 4328if test "${enable_libtool_lock+set}" = set; then 4329 enableval=$enable_libtool_lock; 4330fi 4331 4332test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4333 4334# Some flags need to be propagated to the compiler or linker for good 4335# libtool support. 4336case $host in 4337ia64-*-hpux*) 4338 # Find out which ABI we are using. 4339 echo 'int i;' > conftest.$ac_ext 4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4341 (eval $ac_compile) 2>&5 4342 ac_status=$? 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344 (exit $ac_status); }; then 4345 case `/usr/bin/file conftest.$ac_objext` in 4346 *ELF-32*) 4347 HPUX_IA64_MODE="32" 4348 ;; 4349 *ELF-64*) 4350 HPUX_IA64_MODE="64" 4351 ;; 4352 esac 4353 fi 4354 rm -rf conftest* 4355 ;; 4356*-*-irix6*) 4357 # Find out which ABI we are using. 4358 echo '#line 4358 "configure"' > conftest.$ac_ext 4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4360 (eval $ac_compile) 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); }; then 4364 if test "$lt_cv_prog_gnu_ld" = yes; then 4365 case `/usr/bin/file conftest.$ac_objext` in 4366 *32-bit*) 4367 LD="${LD-ld} -melf32bsmip" 4368 ;; 4369 *N32*) 4370 LD="${LD-ld} -melf32bmipn32" 4371 ;; 4372 *64-bit*) 4373 LD="${LD-ld} -melf64bmip" 4374 ;; 4375 esac 4376 else 4377 case `/usr/bin/file conftest.$ac_objext` in 4378 *32-bit*) 4379 LD="${LD-ld} -32" 4380 ;; 4381 *N32*) 4382 LD="${LD-ld} -n32" 4383 ;; 4384 *64-bit*) 4385 LD="${LD-ld} -64" 4386 ;; 4387 esac 4388 fi 4389 fi 4390 rm -rf conftest* 4391 ;; 4392 4393x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4394 # Find out which ABI we are using. 4395 echo 'int i;' > conftest.$ac_ext 4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4397 (eval $ac_compile) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; then 4401 case `/usr/bin/file conftest.o` in 4402 *32-bit*) 4403 case $host in 4404 x86_64-*linux*) 4405 LD="${LD-ld} -m elf_i386" 4406 ;; 4407 ppc64-*linux*|powerpc64-*linux*) 4408 LD="${LD-ld} -m elf32ppclinux" 4409 ;; 4410 s390x-*linux*) 4411 LD="${LD-ld} -m elf_s390" 4412 ;; 4413 sparc64-*linux*) 4414 LD="${LD-ld} -m elf32_sparc" 4415 ;; 4416 esac 4417 ;; 4418 *64-bit*) 4419 case $host in 4420 x86_64-*linux*) 4421 LD="${LD-ld} -m elf_x86_64" 4422 ;; 4423 ppc*-*linux*|powerpc*-*linux*) 4424 LD="${LD-ld} -m elf64ppc" 4425 ;; 4426 s390*-*linux*) 4427 LD="${LD-ld} -m elf64_s390" 4428 ;; 4429 sparc*-*linux*) 4430 LD="${LD-ld} -m elf64_sparc" 4431 ;; 4432 esac 4433 ;; 4434 esac 4435 fi 4436 rm -rf conftest* 4437 ;; 4438 4439*-*-sco3.2v5*) 4440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4441 SAVE_CFLAGS="$CFLAGS" 4442 CFLAGS="$CFLAGS -belf" 4443 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4444echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4445if test "${lt_cv_cc_needs_belf+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 ac_ext=c 4449ac_cpp='$CPP $CPPFLAGS' 4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453 4454 cat >conftest.$ac_ext <<_ACEOF 4455/* confdefs.h. */ 4456_ACEOF 4457cat confdefs.h >>conftest.$ac_ext 4458cat >>conftest.$ac_ext <<_ACEOF 4459/* end confdefs.h. */ 4460 4461int 4462main () 4463{ 4464 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext conftest$ac_exeext 4470if { (ac_try="$ac_link" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_link") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest$ac_exeext && 4486 $as_test_x conftest$ac_exeext; then 4487 lt_cv_cc_needs_belf=yes 4488else 4489 echo "$as_me: failed program was:" >&5 4490sed 's/^/| /' conftest.$ac_ext >&5 4491 4492 lt_cv_cc_needs_belf=no 4493fi 4494 4495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4496 conftest$ac_exeext conftest.$ac_ext 4497 ac_ext=c 4498ac_cpp='$CPP $CPPFLAGS' 4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4501ac_compiler_gnu=$ac_cv_c_compiler_gnu 4502 4503fi 4504{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4505echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4508 CFLAGS="$SAVE_CFLAGS" 4509 fi 4510 ;; 4511sparc*-*solaris*) 4512 # Find out which ABI we are using. 4513 echo 'int i;' > conftest.$ac_ext 4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4515 (eval $ac_compile) 2>&5 4516 ac_status=$? 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); }; then 4519 case `/usr/bin/file conftest.o` in 4520 *64-bit*) 4521 case $lt_cv_prog_gnu_ld in 4522 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4523 *) LD="${LD-ld} -64" ;; 4524 esac 4525 ;; 4526 esac 4527 fi 4528 rm -rf conftest* 4529 ;; 4530 4531 4532esac 4533 4534need_locks="$enable_libtool_lock" 4535 4536 4537ac_ext=c 4538ac_cpp='$CPP $CPPFLAGS' 4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4541ac_compiler_gnu=$ac_cv_c_compiler_gnu 4542{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4543echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4544# On Suns, sometimes $CPP names a directory. 4545if test -n "$CPP" && test -d "$CPP"; then 4546 CPP= 4547fi 4548if test -z "$CPP"; then 4549 if test "${ac_cv_prog_CPP+set}" = set; then 4550 echo $ECHO_N "(cached) $ECHO_C" >&6 4551else 4552 # Double quotes because CPP needs to be expanded 4553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4554 do 4555 ac_preproc_ok=false 4556for ac_c_preproc_warn_flag in '' yes 4557do 4558 # Use a header file that comes with gcc, so configuring glibc 4559 # with a fresh cross-compiler works. 4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4561 # <limits.h> exists even on freestanding compilers. 4562 # On the NeXT, cc -E runs the code through the compiler's parser, 4563 # not just through cpp. "Syntax error" is here to catch this case. 4564 cat >conftest.$ac_ext <<_ACEOF 4565/* confdefs.h. */ 4566_ACEOF 4567cat confdefs.h >>conftest.$ac_ext 4568cat >>conftest.$ac_ext <<_ACEOF 4569/* end confdefs.h. */ 4570#ifdef __STDC__ 4571# include <limits.h> 4572#else 4573# include <assert.h> 4574#endif 4575 Syntax error 4576_ACEOF 4577if { (ac_try="$ac_cpp conftest.$ac_ext" 4578case "(($ac_try" in 4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4580 *) ac_try_echo=$ac_try;; 4581esac 4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4584 ac_status=$? 4585 grep -v '^ *+' conftest.er1 >conftest.err 4586 rm -f conftest.er1 4587 cat conftest.err >&5 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); } >/dev/null && { 4590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4591 test ! -s conftest.err 4592 }; then 4593 : 4594else 4595 echo "$as_me: failed program was:" >&5 4596sed 's/^/| /' conftest.$ac_ext >&5 4597 4598 # Broken: fails on valid input. 4599continue 4600fi 4601 4602rm -f conftest.err conftest.$ac_ext 4603 4604 # OK, works on sane cases. Now check whether nonexistent headers 4605 # can be detected and how. 4606 cat >conftest.$ac_ext <<_ACEOF 4607/* confdefs.h. */ 4608_ACEOF 4609cat confdefs.h >>conftest.$ac_ext 4610cat >>conftest.$ac_ext <<_ACEOF 4611/* end confdefs.h. */ 4612#include <ac_nonexistent.h> 4613_ACEOF 4614if { (ac_try="$ac_cpp conftest.$ac_ext" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null && { 4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4628 test ! -s conftest.err 4629 }; then 4630 # Broken: success on invalid input. 4631continue 4632else 4633 echo "$as_me: failed program was:" >&5 4634sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 # Passes both tests. 4637ac_preproc_ok=: 4638break 4639fi 4640 4641rm -f conftest.err conftest.$ac_ext 4642 4643done 4644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4645rm -f conftest.err conftest.$ac_ext 4646if $ac_preproc_ok; then 4647 break 4648fi 4649 4650 done 4651 ac_cv_prog_CPP=$CPP 4652 4653fi 4654 CPP=$ac_cv_prog_CPP 4655else 4656 ac_cv_prog_CPP=$CPP 4657fi 4658{ echo "$as_me:$LINENO: result: $CPP" >&5 4659echo "${ECHO_T}$CPP" >&6; } 4660ac_preproc_ok=false 4661for ac_c_preproc_warn_flag in '' yes 4662do 4663 # Use a header file that comes with gcc, so configuring glibc 4664 # with a fresh cross-compiler works. 4665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4666 # <limits.h> exists even on freestanding compilers. 4667 # On the NeXT, cc -E runs the code through the compiler's parser, 4668 # not just through cpp. "Syntax error" is here to catch this case. 4669 cat >conftest.$ac_ext <<_ACEOF 4670/* confdefs.h. */ 4671_ACEOF 4672cat confdefs.h >>conftest.$ac_ext 4673cat >>conftest.$ac_ext <<_ACEOF 4674/* end confdefs.h. */ 4675#ifdef __STDC__ 4676# include <limits.h> 4677#else 4678# include <assert.h> 4679#endif 4680 Syntax error 4681_ACEOF 4682if { (ac_try="$ac_cpp conftest.$ac_ext" 4683case "(($ac_try" in 4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4685 *) ac_try_echo=$ac_try;; 4686esac 4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4689 ac_status=$? 4690 grep -v '^ *+' conftest.er1 >conftest.err 4691 rm -f conftest.er1 4692 cat conftest.err >&5 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); } >/dev/null && { 4695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4696 test ! -s conftest.err 4697 }; then 4698 : 4699else 4700 echo "$as_me: failed program was:" >&5 4701sed 's/^/| /' conftest.$ac_ext >&5 4702 4703 # Broken: fails on valid input. 4704continue 4705fi 4706 4707rm -f conftest.err conftest.$ac_ext 4708 4709 # OK, works on sane cases. Now check whether nonexistent headers 4710 # can be detected and how. 4711 cat >conftest.$ac_ext <<_ACEOF 4712/* confdefs.h. */ 4713_ACEOF 4714cat confdefs.h >>conftest.$ac_ext 4715cat >>conftest.$ac_ext <<_ACEOF 4716/* end confdefs.h. */ 4717#include <ac_nonexistent.h> 4718_ACEOF 4719if { (ac_try="$ac_cpp conftest.$ac_ext" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4726 ac_status=$? 4727 grep -v '^ *+' conftest.er1 >conftest.err 4728 rm -f conftest.er1 4729 cat conftest.err >&5 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); } >/dev/null && { 4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4733 test ! -s conftest.err 4734 }; then 4735 # Broken: success on invalid input. 4736continue 4737else 4738 echo "$as_me: failed program was:" >&5 4739sed 's/^/| /' conftest.$ac_ext >&5 4740 4741 # Passes both tests. 4742ac_preproc_ok=: 4743break 4744fi 4745 4746rm -f conftest.err conftest.$ac_ext 4747 4748done 4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4750rm -f conftest.err conftest.$ac_ext 4751if $ac_preproc_ok; then 4752 : 4753else 4754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4755See \`config.log' for more details." >&5 4756echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4757See \`config.log' for more details." >&2;} 4758 { (exit 1); exit 1; }; } 4759fi 4760 4761ac_ext=c 4762ac_cpp='$CPP $CPPFLAGS' 4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4765ac_compiler_gnu=$ac_cv_c_compiler_gnu 4766 4767 4768{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4769echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4770if test "${ac_cv_header_stdc+set}" = set; then 4771 echo $ECHO_N "(cached) $ECHO_C" >&6 4772else 4773 cat >conftest.$ac_ext <<_ACEOF 4774/* confdefs.h. */ 4775_ACEOF 4776cat confdefs.h >>conftest.$ac_ext 4777cat >>conftest.$ac_ext <<_ACEOF 4778/* end confdefs.h. */ 4779#include <stdlib.h> 4780#include <stdarg.h> 4781#include <string.h> 4782#include <float.h> 4783 4784int 4785main () 4786{ 4787 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792rm -f conftest.$ac_objext 4793if { (ac_try="$ac_compile" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4799 (eval "$ac_compile") 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && { 4806 test -z "$ac_c_werror_flag" || 4807 test ! -s conftest.err 4808 } && test -s conftest.$ac_objext; then 4809 ac_cv_header_stdc=yes 4810else 4811 echo "$as_me: failed program was:" >&5 4812sed 's/^/| /' conftest.$ac_ext >&5 4813 4814 ac_cv_header_stdc=no 4815fi 4816 4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4818 4819if test $ac_cv_header_stdc = yes; then 4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4821 cat >conftest.$ac_ext <<_ACEOF 4822/* confdefs.h. */ 4823_ACEOF 4824cat confdefs.h >>conftest.$ac_ext 4825cat >>conftest.$ac_ext <<_ACEOF 4826/* end confdefs.h. */ 4827#include <string.h> 4828 4829_ACEOF 4830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4831 $EGREP "memchr" >/dev/null 2>&1; then 4832 : 4833else 4834 ac_cv_header_stdc=no 4835fi 4836rm -f conftest* 4837 4838fi 4839 4840if test $ac_cv_header_stdc = yes; then 4841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4842 cat >conftest.$ac_ext <<_ACEOF 4843/* confdefs.h. */ 4844_ACEOF 4845cat confdefs.h >>conftest.$ac_ext 4846cat >>conftest.$ac_ext <<_ACEOF 4847/* end confdefs.h. */ 4848#include <stdlib.h> 4849 4850_ACEOF 4851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4852 $EGREP "free" >/dev/null 2>&1; then 4853 : 4854else 4855 ac_cv_header_stdc=no 4856fi 4857rm -f conftest* 4858 4859fi 4860 4861if test $ac_cv_header_stdc = yes; then 4862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4863 if test "$cross_compiling" = yes; then 4864 : 4865else 4866 cat >conftest.$ac_ext <<_ACEOF 4867/* confdefs.h. */ 4868_ACEOF 4869cat confdefs.h >>conftest.$ac_ext 4870cat >>conftest.$ac_ext <<_ACEOF 4871/* end confdefs.h. */ 4872#include <ctype.h> 4873#include <stdlib.h> 4874#if ((' ' & 0x0FF) == 0x020) 4875# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4876# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4877#else 4878# define ISLOWER(c) \ 4879 (('a' <= (c) && (c) <= 'i') \ 4880 || ('j' <= (c) && (c) <= 'r') \ 4881 || ('s' <= (c) && (c) <= 'z')) 4882# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4883#endif 4884 4885#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4886int 4887main () 4888{ 4889 int i; 4890 for (i = 0; i < 256; i++) 4891 if (XOR (islower (i), ISLOWER (i)) 4892 || toupper (i) != TOUPPER (i)) 4893 return 2; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest$ac_exeext 4898if { (ac_try="$ac_link" 4899case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902esac 4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4904 (eval "$ac_link") 2>&5 4905 ac_status=$? 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4908 { (case "(($ac_try" in 4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4910 *) ac_try_echo=$ac_try;; 4911esac 4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4913 (eval "$ac_try") 2>&5 4914 ac_status=$? 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); }; }; then 4917 : 4918else 4919 echo "$as_me: program exited with status $ac_status" >&5 4920echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923( exit $ac_status ) 4924ac_cv_header_stdc=no 4925fi 4926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4927fi 4928 4929 4930fi 4931fi 4932{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4933echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4934if test $ac_cv_header_stdc = yes; then 4935 4936cat >>confdefs.h <<\_ACEOF 4937#define STDC_HEADERS 1 4938_ACEOF 4939 4940fi 4941 4942# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4953 inttypes.h stdint.h unistd.h 4954do 4955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4956{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4959 echo $ECHO_N "(cached) $ECHO_C" >&6 4960else 4961 cat >conftest.$ac_ext <<_ACEOF 4962/* confdefs.h. */ 4963_ACEOF 4964cat confdefs.h >>conftest.$ac_ext 4965cat >>conftest.$ac_ext <<_ACEOF 4966/* end confdefs.h. */ 4967$ac_includes_default 4968 4969#include <$ac_header> 4970_ACEOF 4971rm -f conftest.$ac_objext 4972if { (ac_try="$ac_compile" 4973case "(($ac_try" in 4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4975 *) ac_try_echo=$ac_try;; 4976esac 4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4978 (eval "$ac_compile") 2>conftest.er1 4979 ac_status=$? 4980 grep -v '^ *+' conftest.er1 >conftest.err 4981 rm -f conftest.er1 4982 cat conftest.err >&5 4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4984 (exit $ac_status); } && { 4985 test -z "$ac_c_werror_flag" || 4986 test ! -s conftest.err 4987 } && test -s conftest.$ac_objext; then 4988 eval "$as_ac_Header=yes" 4989else 4990 echo "$as_me: failed program was:" >&5 4991sed 's/^/| /' conftest.$ac_ext >&5 4992 4993 eval "$as_ac_Header=no" 4994fi 4995 4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4997fi 4998ac_res=`eval echo '${'$as_ac_Header'}'` 4999 { echo "$as_me:$LINENO: result: $ac_res" >&5 5000echo "${ECHO_T}$ac_res" >&6; } 5001if test `eval echo '${'$as_ac_Header'}'` = yes; then 5002 cat >>confdefs.h <<_ACEOF 5003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5004_ACEOF 5005 5006fi 5007 5008done 5009 5010 5011 5012for ac_header in dlfcn.h 5013do 5014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5016 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5019 echo $ECHO_N "(cached) $ECHO_C" >&6 5020fi 5021ac_res=`eval echo '${'$as_ac_Header'}'` 5022 { echo "$as_me:$LINENO: result: $ac_res" >&5 5023echo "${ECHO_T}$ac_res" >&6; } 5024else 5025 # Is the header compilable? 5026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5028cat >conftest.$ac_ext <<_ACEOF 5029/* confdefs.h. */ 5030_ACEOF 5031cat confdefs.h >>conftest.$ac_ext 5032cat >>conftest.$ac_ext <<_ACEOF 5033/* end confdefs.h. */ 5034$ac_includes_default 5035#include <$ac_header> 5036_ACEOF 5037rm -f conftest.$ac_objext 5038if { (ac_try="$ac_compile" 5039case "(($ac_try" in 5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5041 *) ac_try_echo=$ac_try;; 5042esac 5043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5044 (eval "$ac_compile") 2>conftest.er1 5045 ac_status=$? 5046 grep -v '^ *+' conftest.er1 >conftest.err 5047 rm -f conftest.er1 5048 cat conftest.err >&5 5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); } && { 5051 test -z "$ac_c_werror_flag" || 5052 test ! -s conftest.err 5053 } && test -s conftest.$ac_objext; then 5054 ac_header_compiler=yes 5055else 5056 echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059 ac_header_compiler=no 5060fi 5061 5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5064echo "${ECHO_T}$ac_header_compiler" >&6; } 5065 5066# Is the header present? 5067{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5069cat >conftest.$ac_ext <<_ACEOF 5070/* confdefs.h. */ 5071_ACEOF 5072cat confdefs.h >>conftest.$ac_ext 5073cat >>conftest.$ac_ext <<_ACEOF 5074/* end confdefs.h. */ 5075#include <$ac_header> 5076_ACEOF 5077if { (ac_try="$ac_cpp conftest.$ac_ext" 5078case "(($ac_try" in 5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5080 *) ac_try_echo=$ac_try;; 5081esac 5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5084 ac_status=$? 5085 grep -v '^ *+' conftest.er1 >conftest.err 5086 rm -f conftest.er1 5087 cat conftest.err >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); } >/dev/null && { 5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5091 test ! -s conftest.err 5092 }; then 5093 ac_header_preproc=yes 5094else 5095 echo "$as_me: failed program was:" >&5 5096sed 's/^/| /' conftest.$ac_ext >&5 5097 5098 ac_header_preproc=no 5099fi 5100 5101rm -f conftest.err conftest.$ac_ext 5102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5103echo "${ECHO_T}$ac_header_preproc" >&6; } 5104 5105# So? What about this header? 5106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5107 yes:no: ) 5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5112 ac_header_preproc=yes 5113 ;; 5114 no:yes:* ) 5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5127 ( cat <<\_ASBOX 5128## ------------------------------- ## 5129## Report this to ashie@homa.ne.jp ## 5130## ------------------------------- ## 5131_ASBOX 5132 ) | sed "s/^/$as_me: WARNING: /" >&2 5133 ;; 5134esac 5135{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5138 echo $ECHO_N "(cached) $ECHO_C" >&6 5139else 5140 eval "$as_ac_Header=\$ac_header_preproc" 5141fi 5142ac_res=`eval echo '${'$as_ac_Header'}'` 5143 { echo "$as_me:$LINENO: result: $ac_res" >&5 5144echo "${ECHO_T}$ac_res" >&6; } 5145 5146fi 5147if test `eval echo '${'$as_ac_Header'}'` = yes; then 5148 cat >>confdefs.h <<_ACEOF 5149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5150_ACEOF 5151 5152fi 5153 5154done 5155 5156ac_ext=cpp 5157ac_cpp='$CXXCPP $CPPFLAGS' 5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5161if test -z "$CXX"; then 5162 if test -n "$CCC"; then 5163 CXX=$CCC 5164 else 5165 if test -n "$ac_tool_prefix"; then 5166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5167 do 5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5169set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5170{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5172if test "${ac_cv_prog_CXX+set}" = set; then 5173 echo $ECHO_N "(cached) $ECHO_C" >&6 5174else 5175 if test -n "$CXX"; then 5176 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195CXX=$ac_cv_prog_CXX 5196if test -n "$CXX"; then 5197 { echo "$as_me:$LINENO: result: $CXX" >&5 5198echo "${ECHO_T}$CXX" >&6; } 5199else 5200 { echo "$as_me:$LINENO: result: no" >&5 5201echo "${ECHO_T}no" >&6; } 5202fi 5203 5204 5205 test -n "$CXX" && break 5206 done 5207fi 5208if test -z "$CXX"; then 5209 ac_ct_CXX=$CXX 5210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5211do 5212 # Extract the first word of "$ac_prog", so it can be a program name with args. 5213set dummy $ac_prog; ac_word=$2 5214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5217 echo $ECHO_N "(cached) $ECHO_C" >&6 5218else 5219 if test -n "$ac_ct_CXX"; then 5220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_ac_ct_CXX="$ac_prog" 5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5240if test -n "$ac_ct_CXX"; then 5241 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5242echo "${ECHO_T}$ac_ct_CXX" >&6; } 5243else 5244 { echo "$as_me:$LINENO: result: no" >&5 5245echo "${ECHO_T}no" >&6; } 5246fi 5247 5248 5249 test -n "$ac_ct_CXX" && break 5250done 5251 5252 if test "x$ac_ct_CXX" = x; then 5253 CXX="g++" 5254 else 5255 case $cross_compiling:$ac_tool_warned in 5256yes:) 5257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5258whose name does not start with the host triplet. If you think this 5259configuration is useful to you, please write to autoconf@gnu.org." >&5 5260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5261whose name does not start with the host triplet. If you think this 5262configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5263ac_tool_warned=yes ;; 5264esac 5265 CXX=$ac_ct_CXX 5266 fi 5267fi 5268 5269 fi 5270fi 5271# Provide some information about the compiler. 5272echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5273ac_compiler=`set X $ac_compile; echo $2` 5274{ (ac_try="$ac_compiler --version >&5" 5275case "(($ac_try" in 5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5277 *) ac_try_echo=$ac_try;; 5278esac 5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5280 (eval "$ac_compiler --version >&5") 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } 5284{ (ac_try="$ac_compiler -v >&5" 5285case "(($ac_try" in 5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5287 *) ac_try_echo=$ac_try;; 5288esac 5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5290 (eval "$ac_compiler -v >&5") 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } 5294{ (ac_try="$ac_compiler -V >&5" 5295case "(($ac_try" in 5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5297 *) ac_try_echo=$ac_try;; 5298esac 5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5300 (eval "$ac_compiler -V >&5") 2>&5 5301 ac_status=$? 5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); } 5304 5305{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5306echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5307if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 cat >conftest.$ac_ext <<_ACEOF 5311/* confdefs.h. */ 5312_ACEOF 5313cat confdefs.h >>conftest.$ac_ext 5314cat >>conftest.$ac_ext <<_ACEOF 5315/* end confdefs.h. */ 5316 5317int 5318main () 5319{ 5320#ifndef __GNUC__ 5321 choke me 5322#endif 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328rm -f conftest.$ac_objext 5329if { (ac_try="$ac_compile" 5330case "(($ac_try" in 5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5332 *) ac_try_echo=$ac_try;; 5333esac 5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5335 (eval "$ac_compile") 2>conftest.er1 5336 ac_status=$? 5337 grep -v '^ *+' conftest.er1 >conftest.err 5338 rm -f conftest.er1 5339 cat conftest.err >&5 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } && { 5342 test -z "$ac_cxx_werror_flag" || 5343 test ! -s conftest.err 5344 } && test -s conftest.$ac_objext; then 5345 ac_compiler_gnu=yes 5346else 5347 echo "$as_me: failed program was:" >&5 5348sed 's/^/| /' conftest.$ac_ext >&5 5349 5350 ac_compiler_gnu=no 5351fi 5352 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5355 5356fi 5357{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5358echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5359GXX=`test $ac_compiler_gnu = yes && echo yes` 5360ac_test_CXXFLAGS=${CXXFLAGS+set} 5361ac_save_CXXFLAGS=$CXXFLAGS 5362{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5363echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5364if test "${ac_cv_prog_cxx_g+set}" = set; then 5365 echo $ECHO_N "(cached) $ECHO_C" >&6 5366else 5367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5368 ac_cxx_werror_flag=yes 5369 ac_cv_prog_cxx_g=no 5370 CXXFLAGS="-g" 5371 cat >conftest.$ac_ext <<_ACEOF 5372/* confdefs.h. */ 5373_ACEOF 5374cat confdefs.h >>conftest.$ac_ext 5375cat >>conftest.$ac_ext <<_ACEOF 5376/* end confdefs.h. */ 5377 5378int 5379main () 5380{ 5381 5382 ; 5383 return 0; 5384} 5385_ACEOF 5386rm -f conftest.$ac_objext 5387if { (ac_try="$ac_compile" 5388case "(($ac_try" in 5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5390 *) ac_try_echo=$ac_try;; 5391esac 5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5393 (eval "$ac_compile") 2>conftest.er1 5394 ac_status=$? 5395 grep -v '^ *+' conftest.er1 >conftest.err 5396 rm -f conftest.er1 5397 cat conftest.err >&5 5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5399 (exit $ac_status); } && { 5400 test -z "$ac_cxx_werror_flag" || 5401 test ! -s conftest.err 5402 } && test -s conftest.$ac_objext; then 5403 ac_cv_prog_cxx_g=yes 5404else 5405 echo "$as_me: failed program was:" >&5 5406sed 's/^/| /' conftest.$ac_ext >&5 5407 5408 CXXFLAGS="" 5409 cat >conftest.$ac_ext <<_ACEOF 5410/* confdefs.h. */ 5411_ACEOF 5412cat confdefs.h >>conftest.$ac_ext 5413cat >>conftest.$ac_ext <<_ACEOF 5414/* end confdefs.h. */ 5415 5416int 5417main () 5418{ 5419 5420 ; 5421 return 0; 5422} 5423_ACEOF 5424rm -f conftest.$ac_objext 5425if { (ac_try="$ac_compile" 5426case "(($ac_try" in 5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5428 *) ac_try_echo=$ac_try;; 5429esac 5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5431 (eval "$ac_compile") 2>conftest.er1 5432 ac_status=$? 5433 grep -v '^ *+' conftest.er1 >conftest.err 5434 rm -f conftest.er1 5435 cat conftest.err >&5 5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5437 (exit $ac_status); } && { 5438 test -z "$ac_cxx_werror_flag" || 5439 test ! -s conftest.err 5440 } && test -s conftest.$ac_objext; then 5441 : 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 5445 5446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5447 CXXFLAGS="-g" 5448 cat >conftest.$ac_ext <<_ACEOF 5449/* confdefs.h. */ 5450_ACEOF 5451cat confdefs.h >>conftest.$ac_ext 5452cat >>conftest.$ac_ext <<_ACEOF 5453/* end confdefs.h. */ 5454 5455int 5456main () 5457{ 5458 5459 ; 5460 return 0; 5461} 5462_ACEOF 5463rm -f conftest.$ac_objext 5464if { (ac_try="$ac_compile" 5465case "(($ac_try" in 5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5467 *) ac_try_echo=$ac_try;; 5468esac 5469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5470 (eval "$ac_compile") 2>conftest.er1 5471 ac_status=$? 5472 grep -v '^ *+' conftest.er1 >conftest.err 5473 rm -f conftest.er1 5474 cat conftest.err >&5 5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5476 (exit $ac_status); } && { 5477 test -z "$ac_cxx_werror_flag" || 5478 test ! -s conftest.err 5479 } && test -s conftest.$ac_objext; then 5480 ac_cv_prog_cxx_g=yes 5481else 5482 echo "$as_me: failed program was:" >&5 5483sed 's/^/| /' conftest.$ac_ext >&5 5484 5485 5486fi 5487 5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5489fi 5490 5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5492fi 5493 5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5496fi 5497{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5498echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5499if test "$ac_test_CXXFLAGS" = set; then 5500 CXXFLAGS=$ac_save_CXXFLAGS 5501elif test $ac_cv_prog_cxx_g = yes; then 5502 if test "$GXX" = yes; then 5503 CXXFLAGS="-g -O2" 5504 else 5505 CXXFLAGS="-g" 5506 fi 5507else 5508 if test "$GXX" = yes; then 5509 CXXFLAGS="-O2" 5510 else 5511 CXXFLAGS= 5512 fi 5513fi 5514ac_ext=cpp 5515ac_cpp='$CXXCPP $CPPFLAGS' 5516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5519 5520depcc="$CXX" am_compiler_list= 5521 5522{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5523echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5525 echo $ECHO_N "(cached) $ECHO_C" >&6 5526else 5527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5528 # We make a subdir and do the tests there. Otherwise we can end up 5529 # making bogus files that we don't know about and never remove. For 5530 # instance it was reported that on HP-UX the gcc test will end up 5531 # making a dummy file named `D' -- because `-MD' means `put the output 5532 # in D'. 5533 mkdir conftest.dir 5534 # Copy depcomp to subdir because otherwise we won't find it if we're 5535 # using a relative directory. 5536 cp "$am_depcomp" conftest.dir 5537 cd conftest.dir 5538 # We will build objects and dependencies in a subdirectory because 5539 # it helps to detect inapplicable dependency modes. For instance 5540 # both Tru64's cc and ICC support -MD to output dependencies as a 5541 # side effect of compilation, but ICC will put the dependencies in 5542 # the current directory while Tru64 will put them in the object 5543 # directory. 5544 mkdir sub 5545 5546 am_cv_CXX_dependencies_compiler_type=none 5547 if test "$am_compiler_list" = ""; then 5548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5549 fi 5550 for depmode in $am_compiler_list; do 5551 # Setup a source with many dependencies, because some compilers 5552 # like to wrap large dependency lists on column 80 (with \), and 5553 # we should not choose a depcomp mode which is confused by this. 5554 # 5555 # We need to recreate these files for each test, as the compiler may 5556 # overwrite some of them when testing with obscure command lines. 5557 # This happens at least with the AIX C compiler. 5558 : > sub/conftest.c 5559 for i in 1 2 3 4 5 6; do 5560 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5562 # Solaris 8's {/usr,}/bin/sh. 5563 touch sub/conftst$i.h 5564 done 5565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5566 5567 case $depmode in 5568 nosideeffect) 5569 # after this tag, mechanisms are not by side-effect, so they'll 5570 # only be used when explicitly requested 5571 if test "x$enable_dependency_tracking" = xyes; then 5572 continue 5573 else 5574 break 5575 fi 5576 ;; 5577 none) break ;; 5578 esac 5579 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5580 # mode. It turns out that the SunPro C++ compiler does not properly 5581 # handle `-M -o', and we need to detect this. 5582 if depmode=$depmode \ 5583 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5585 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5586 >/dev/null 2>conftest.err && 5587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5589 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5591 # icc doesn't choke on unknown options, it will just issue warnings 5592 # or remarks (even with -Werror). So we grep stderr for any message 5593 # that says an option was ignored or not supported. 5594 # When given -MP, icc 7.0 and 7.1 complain thusly: 5595 # icc: Command line warning: ignoring option '-M'; no argument required 5596 # The diagnosis changed in icc 8.0: 5597 # icc: Command line remark: option '-MP' not supported 5598 if (grep 'ignoring option' conftest.err || 5599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5600 am_cv_CXX_dependencies_compiler_type=$depmode 5601 break 5602 fi 5603 fi 5604 done 5605 5606 cd .. 5607 rm -rf conftest.dir 5608else 5609 am_cv_CXX_dependencies_compiler_type=none 5610fi 5611 5612fi 5613{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5614echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5616 5617 if 5618 test "x$enable_dependency_tracking" != xno \ 5619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5620 am__fastdepCXX_TRUE= 5621 am__fastdepCXX_FALSE='#' 5622else 5623 am__fastdepCXX_TRUE='#' 5624 am__fastdepCXX_FALSE= 5625fi 5626 5627 5628 5629 5630if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5631 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5632 (test "X$CXX" != "Xg++"))) ; then 5633 ac_ext=cpp 5634ac_cpp='$CXXCPP $CPPFLAGS' 5635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5638{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5639echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5640if test -z "$CXXCPP"; then 5641 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5642 echo $ECHO_N "(cached) $ECHO_C" >&6 5643else 5644 # Double quotes because CXXCPP needs to be expanded 5645 for CXXCPP in "$CXX -E" "/lib/cpp" 5646 do 5647 ac_preproc_ok=false 5648for ac_cxx_preproc_warn_flag in '' yes 5649do 5650 # Use a header file that comes with gcc, so configuring glibc 5651 # with a fresh cross-compiler works. 5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5653 # <limits.h> exists even on freestanding compilers. 5654 # On the NeXT, cc -E runs the code through the compiler's parser, 5655 # not just through cpp. "Syntax error" is here to catch this case. 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#ifdef __STDC__ 5663# include <limits.h> 5664#else 5665# include <assert.h> 5666#endif 5667 Syntax error 5668_ACEOF 5669if { (ac_try="$ac_cpp conftest.$ac_ext" 5670case "(($ac_try" in 5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5672 *) ac_try_echo=$ac_try;; 5673esac 5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5676 ac_status=$? 5677 grep -v '^ *+' conftest.er1 >conftest.err 5678 rm -f conftest.er1 5679 cat conftest.err >&5 5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5681 (exit $ac_status); } >/dev/null && { 5682 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5683 test ! -s conftest.err 5684 }; then 5685 : 5686else 5687 echo "$as_me: failed program was:" >&5 5688sed 's/^/| /' conftest.$ac_ext >&5 5689 5690 # Broken: fails on valid input. 5691continue 5692fi 5693 5694rm -f conftest.err conftest.$ac_ext 5695 5696 # OK, works on sane cases. Now check whether nonexistent headers 5697 # can be detected and how. 5698 cat >conftest.$ac_ext <<_ACEOF 5699/* confdefs.h. */ 5700_ACEOF 5701cat confdefs.h >>conftest.$ac_ext 5702cat >>conftest.$ac_ext <<_ACEOF 5703/* end confdefs.h. */ 5704#include <ac_nonexistent.h> 5705_ACEOF 5706if { (ac_try="$ac_cpp conftest.$ac_ext" 5707case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710esac 5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } >/dev/null && { 5719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5720 test ! -s conftest.err 5721 }; then 5722 # Broken: success on invalid input. 5723continue 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 # Passes both tests. 5729ac_preproc_ok=: 5730break 5731fi 5732 5733rm -f conftest.err conftest.$ac_ext 5734 5735done 5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5737rm -f conftest.err conftest.$ac_ext 5738if $ac_preproc_ok; then 5739 break 5740fi 5741 5742 done 5743 ac_cv_prog_CXXCPP=$CXXCPP 5744 5745fi 5746 CXXCPP=$ac_cv_prog_CXXCPP 5747else 5748 ac_cv_prog_CXXCPP=$CXXCPP 5749fi 5750{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5751echo "${ECHO_T}$CXXCPP" >&6; } 5752ac_preproc_ok=false 5753for ac_cxx_preproc_warn_flag in '' yes 5754do 5755 # Use a header file that comes with gcc, so configuring glibc 5756 # with a fresh cross-compiler works. 5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5758 # <limits.h> exists even on freestanding compilers. 5759 # On the NeXT, cc -E runs the code through the compiler's parser, 5760 # not just through cpp. "Syntax error" is here to catch this case. 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#ifdef __STDC__ 5768# include <limits.h> 5769#else 5770# include <assert.h> 5771#endif 5772 Syntax error 5773_ACEOF 5774if { (ac_try="$ac_cpp conftest.$ac_ext" 5775case "(($ac_try" in 5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5777 *) ac_try_echo=$ac_try;; 5778esac 5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5781 ac_status=$? 5782 grep -v '^ *+' conftest.er1 >conftest.err 5783 rm -f conftest.er1 5784 cat conftest.err >&5 5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786 (exit $ac_status); } >/dev/null && { 5787 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5788 test ! -s conftest.err 5789 }; then 5790 : 5791else 5792 echo "$as_me: failed program was:" >&5 5793sed 's/^/| /' conftest.$ac_ext >&5 5794 5795 # Broken: fails on valid input. 5796continue 5797fi 5798 5799rm -f conftest.err conftest.$ac_ext 5800 5801 # OK, works on sane cases. Now check whether nonexistent headers 5802 # can be detected and how. 5803 cat >conftest.$ac_ext <<_ACEOF 5804/* confdefs.h. */ 5805_ACEOF 5806cat confdefs.h >>conftest.$ac_ext 5807cat >>conftest.$ac_ext <<_ACEOF 5808/* end confdefs.h. */ 5809#include <ac_nonexistent.h> 5810_ACEOF 5811if { (ac_try="$ac_cpp conftest.$ac_ext" 5812case "(($ac_try" in 5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5814 *) ac_try_echo=$ac_try;; 5815esac 5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5818 ac_status=$? 5819 grep -v '^ *+' conftest.er1 >conftest.err 5820 rm -f conftest.er1 5821 cat conftest.err >&5 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } >/dev/null && { 5824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5825 test ! -s conftest.err 5826 }; then 5827 # Broken: success on invalid input. 5828continue 5829else 5830 echo "$as_me: failed program was:" >&5 5831sed 's/^/| /' conftest.$ac_ext >&5 5832 5833 # Passes both tests. 5834ac_preproc_ok=: 5835break 5836fi 5837 5838rm -f conftest.err conftest.$ac_ext 5839 5840done 5841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5842rm -f conftest.err conftest.$ac_ext 5843if $ac_preproc_ok; then 5844 : 5845else 5846 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5847See \`config.log' for more details." >&5 5848echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5849See \`config.log' for more details." >&2;} 5850 { (exit 1); exit 1; }; } 5851fi 5852 5853ac_ext=cpp 5854ac_cpp='$CXXCPP $CPPFLAGS' 5855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5858 5859fi 5860 5861 5862ac_ext=f 5863ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5864ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5865ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5866if test -n "$ac_tool_prefix"; then 5867 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 5868 do 5869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5873if test "${ac_cv_prog_F77+set}" = set; then 5874 echo $ECHO_N "(cached) $ECHO_C" >&6 5875else 5876 if test -n "$F77"; then 5877 ac_cv_prog_F77="$F77" # Let the user override the test. 5878else 5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880for as_dir in $PATH 5881do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5886 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890done 5891done 5892IFS=$as_save_IFS 5893 5894fi 5895fi 5896F77=$ac_cv_prog_F77 5897if test -n "$F77"; then 5898 { echo "$as_me:$LINENO: result: $F77" >&5 5899echo "${ECHO_T}$F77" >&6; } 5900else 5901 { echo "$as_me:$LINENO: result: no" >&5 5902echo "${ECHO_T}no" >&6; } 5903fi 5904 5905 5906 test -n "$F77" && break 5907 done 5908fi 5909if test -z "$F77"; then 5910 ac_ct_F77=$F77 5911 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5912do 5913 # Extract the first word of "$ac_prog", so it can be a program name with args. 5914set dummy $ac_prog; ac_word=$2 5915{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5917if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5918 echo $ECHO_N "(cached) $ECHO_C" >&6 5919else 5920 if test -n "$ac_ct_F77"; then 5921 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5930 ac_cv_prog_ac_ct_F77="$ac_prog" 5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940ac_ct_F77=$ac_cv_prog_ac_ct_F77 5941if test -n "$ac_ct_F77"; then 5942 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5943echo "${ECHO_T}$ac_ct_F77" >&6; } 5944else 5945 { echo "$as_me:$LINENO: result: no" >&5 5946echo "${ECHO_T}no" >&6; } 5947fi 5948 5949 5950 test -n "$ac_ct_F77" && break 5951done 5952 5953 if test "x$ac_ct_F77" = x; then 5954 F77="" 5955 else 5956 case $cross_compiling:$ac_tool_warned in 5957yes:) 5958{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5959whose name does not start with the host triplet. If you think this 5960configuration is useful to you, please write to autoconf@gnu.org." >&5 5961echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5962whose name does not start with the host triplet. If you think this 5963configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5964ac_tool_warned=yes ;; 5965esac 5966 F77=$ac_ct_F77 5967 fi 5968fi 5969 5970 5971# Provide some information about the compiler. 5972echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5973ac_compiler=`set X $ac_compile; echo $2` 5974{ (ac_try="$ac_compiler --version >&5" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_compiler --version >&5") 2>&5 5981 ac_status=$? 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); } 5984{ (ac_try="$ac_compiler -v >&5" 5985case "(($ac_try" in 5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5987 *) ac_try_echo=$ac_try;; 5988esac 5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5990 (eval "$ac_compiler -v >&5") 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); } 5994{ (ac_try="$ac_compiler -V >&5" 5995case "(($ac_try" in 5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5997 *) ac_try_echo=$ac_try;; 5998esac 5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6000 (eval "$ac_compiler -V >&5") 2>&5 6001 ac_status=$? 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 (exit $ac_status); } 6004rm -f a.out 6005 6006# If we don't use `.F' as extension, the preprocessor is not run on the 6007# input file. (Note that this only needs to work for GNU compilers.) 6008ac_save_ext=$ac_ext 6009ac_ext=F 6010{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6011echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6012if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 cat >conftest.$ac_ext <<_ACEOF 6016 program main 6017#ifndef __GNUC__ 6018 choke me 6019#endif 6020 6021 end 6022_ACEOF 6023rm -f conftest.$ac_objext 6024if { (ac_try="$ac_compile" 6025case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_compile") 2>conftest.er1 6031 ac_status=$? 6032 grep -v '^ *+' conftest.er1 >conftest.err 6033 rm -f conftest.er1 6034 cat conftest.err >&5 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } && { 6037 test -z "$ac_f77_werror_flag" || 6038 test ! -s conftest.err 6039 } && test -s conftest.$ac_objext; then 6040 ac_compiler_gnu=yes 6041else 6042 echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045 ac_compiler_gnu=no 6046fi 6047 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6050 6051fi 6052{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6053echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6054ac_ext=$ac_save_ext 6055ac_test_FFLAGS=${FFLAGS+set} 6056ac_save_FFLAGS=$FFLAGS 6057FFLAGS= 6058{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6059echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6060if test "${ac_cv_prog_f77_g+set}" = set; then 6061 echo $ECHO_N "(cached) $ECHO_C" >&6 6062else 6063 FFLAGS=-g 6064cat >conftest.$ac_ext <<_ACEOF 6065 program main 6066 6067 end 6068_ACEOF 6069rm -f conftest.$ac_objext 6070if { (ac_try="$ac_compile" 6071case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074esac 6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_compile") 2>conftest.er1 6077 ac_status=$? 6078 grep -v '^ *+' conftest.er1 >conftest.err 6079 rm -f conftest.er1 6080 cat conftest.err >&5 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } && { 6083 test -z "$ac_f77_werror_flag" || 6084 test ! -s conftest.err 6085 } && test -s conftest.$ac_objext; then 6086 ac_cv_prog_f77_g=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 ac_cv_prog_f77_g=no 6092fi 6093 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095 6096fi 6097{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6098echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6099if test "$ac_test_FFLAGS" = set; then 6100 FFLAGS=$ac_save_FFLAGS 6101elif test $ac_cv_prog_f77_g = yes; then 6102 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6103 FFLAGS="-g -O2" 6104 else 6105 FFLAGS="-g" 6106 fi 6107else 6108 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6109 FFLAGS="-O2" 6110 else 6111 FFLAGS= 6112 fi 6113fi 6114 6115G77=`test $ac_compiler_gnu = yes && echo yes` 6116ac_ext=c 6117ac_cpp='$CPP $CPPFLAGS' 6118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6120ac_compiler_gnu=$ac_cv_c_compiler_gnu 6121 6122 6123 6124# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6125 6126# find the maximum length of command line arguments 6127{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6128echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6129if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6130 echo $ECHO_N "(cached) $ECHO_C" >&6 6131else 6132 i=0 6133 teststring="ABCD" 6134 6135 case $build_os in 6136 msdosdjgpp*) 6137 # On DJGPP, this test can blow up pretty badly due to problems in libc 6138 # (any single argument exceeding 2000 bytes causes a buffer overrun 6139 # during glob expansion). Even if it were fixed, the result of this 6140 # check would be larger than it should be. 6141 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6142 ;; 6143 6144 gnu*) 6145 # Under GNU Hurd, this test is not required because there is 6146 # no limit to the length of command line arguments. 6147 # Libtool will interpret -1 as no limit whatsoever 6148 lt_cv_sys_max_cmd_len=-1; 6149 ;; 6150 6151 cygwin* | mingw*) 6152 # On Win9x/ME, this test blows up -- it succeeds, but takes 6153 # about 5 minutes as the teststring grows exponentially. 6154 # Worse, since 9x/ME are not pre-emptively multitasking, 6155 # you end up with a "frozen" computer, even though with patience 6156 # the test eventually succeeds (with a max line length of 256k). 6157 # Instead, let's just punt: use the minimum linelength reported by 6158 # all of the supported platforms: 8192 (on NT/2K/XP). 6159 lt_cv_sys_max_cmd_len=8192; 6160 ;; 6161 6162 amigaos*) 6163 # On AmigaOS with pdksh, this test takes hours, literally. 6164 # So we just punt and use a minimum line length of 8192. 6165 lt_cv_sys_max_cmd_len=8192; 6166 ;; 6167 6168 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6169 # This has been around since 386BSD, at least. Likely further. 6170 if test -x /sbin/sysctl; then 6171 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6172 elif test -x /usr/sbin/sysctl; then 6173 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6174 else 6175 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6176 fi 6177 # And add a safety zone 6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6180 ;; 6181 6182 interix*) 6183 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6184 lt_cv_sys_max_cmd_len=196608 6185 ;; 6186 6187 osf*) 6188 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6189 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6190 # nice to cause kernel panics so lets avoid the loop below. 6191 # First set a reasonable default. 6192 lt_cv_sys_max_cmd_len=16384 6193 # 6194 if test -x /sbin/sysconfig; then 6195 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6196 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6197 esac 6198 fi 6199 ;; 6200 sco3.2v5*) 6201 lt_cv_sys_max_cmd_len=102400 6202 ;; 6203 sysv5* | sco5v6* | sysv4.2uw2*) 6204 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6205 if test -n "$kargmax"; then 6206 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6207 else 6208 lt_cv_sys_max_cmd_len=32768 6209 fi 6210 ;; 6211 *) 6212 # If test is not a shell built-in, we'll probably end up computing a 6213 # maximum length that is only half of the actual maximum length, but 6214 # we can't tell. 6215 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6216 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6217 = "XX$teststring") >/dev/null 2>&1 && 6218 new_result=`expr "X$teststring" : ".*" 2>&1` && 6219 lt_cv_sys_max_cmd_len=$new_result && 6220 test $i != 17 # 1/2 MB should be enough 6221 do 6222 i=`expr $i + 1` 6223 teststring=$teststring$teststring 6224 done 6225 teststring= 6226 # Add a significant safety factor because C++ compilers can tack on massive 6227 # amounts of additional arguments before passing them to the linker. 6228 # It appears as though 1/2 is a usable value. 6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6230 ;; 6231 esac 6232 6233fi 6234 6235if test -n $lt_cv_sys_max_cmd_len ; then 6236 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6237echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6238else 6239 { echo "$as_me:$LINENO: result: none" >&5 6240echo "${ECHO_T}none" >&6; } 6241fi 6242 6243 6244 6245 6246# Check for command to grab the raw symbol name followed by C symbol from nm. 6247{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6248echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6249if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251else 6252 6253# These are sane defaults that work on at least a few old systems. 6254# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6255 6256# Character class describing NM global symbol codes. 6257symcode='[BCDEGRST]' 6258 6259# Regexp to match symbols that can be accessed directly from C. 6260sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6261 6262# Transform an extracted symbol line into a proper C declaration 6263lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6264 6265# Transform an extracted symbol line into symbol name and symbol address 6266lt_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'" 6267 6268# Define system-specific variables. 6269case $host_os in 6270aix*) 6271 symcode='[BCDT]' 6272 ;; 6273cygwin* | mingw* | pw32*) 6274 symcode='[ABCDGISTW]' 6275 ;; 6276hpux*) # Its linker distinguishes data from code symbols 6277 if test "$host_cpu" = ia64; then 6278 symcode='[ABCDEGRST]' 6279 fi 6280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6281 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'" 6282 ;; 6283linux* | k*bsd*-gnu) 6284 if test "$host_cpu" = ia64; then 6285 symcode='[ABCDGIRSTW]' 6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6287 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'" 6288 fi 6289 ;; 6290irix* | nonstopux*) 6291 symcode='[BCDEGRST]' 6292 ;; 6293osf*) 6294 symcode='[BCDEGQRST]' 6295 ;; 6296solaris*) 6297 symcode='[BDRT]' 6298 ;; 6299sco3.2v5*) 6300 symcode='[DT]' 6301 ;; 6302sysv4.2uw2*) 6303 symcode='[DT]' 6304 ;; 6305sysv5* | sco5v6* | unixware* | OpenUNIX*) 6306 symcode='[ABDT]' 6307 ;; 6308sysv4) 6309 symcode='[DFNSTU]' 6310 ;; 6311esac 6312 6313# Handle CRLF in mingw tool chain 6314opt_cr= 6315case $build_os in 6316mingw*) 6317 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6318 ;; 6319esac 6320 6321# If we're using GNU nm, then use its standard symbol codes. 6322case `$NM -V 2>&1` in 6323*GNU* | *'with BFD'*) 6324 symcode='[ABCDGIRSTW]' ;; 6325esac 6326 6327# Try without a prefix undercore, then with it. 6328for ac_symprfx in "" "_"; do 6329 6330 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6331 symxfrm="\\1 $ac_symprfx\\2 \\2" 6332 6333 # Write the raw and C identifiers. 6334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6335 6336 # Check to see that the pipe works correctly. 6337 pipe_works=no 6338 6339 rm -f conftest* 6340 cat > conftest.$ac_ext <<EOF 6341#ifdef __cplusplus 6342extern "C" { 6343#endif 6344char nm_test_var; 6345void nm_test_func(){} 6346#ifdef __cplusplus 6347} 6348#endif 6349int main(){nm_test_var='a';nm_test_func();return(0);} 6350EOF 6351 6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6353 (eval $ac_compile) 2>&5 6354 ac_status=$? 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); }; then 6357 # Now try to grab the symbols. 6358 nlist=conftest.nm 6359 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && test -s "$nlist"; then 6364 # Try sorting and uniquifying the output. 6365 if sort "$nlist" | uniq > "$nlist"T; then 6366 mv -f "$nlist"T "$nlist" 6367 else 6368 rm -f "$nlist"T 6369 fi 6370 6371 # Make sure that we snagged all the symbols we need. 6372 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6373 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6374 cat <<EOF > conftest.$ac_ext 6375#ifdef __cplusplus 6376extern "C" { 6377#endif 6378 6379EOF 6380 # Now generate the symbol file. 6381 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6382 6383 cat <<EOF >> conftest.$ac_ext 6384#if defined (__STDC__) && __STDC__ 6385# define lt_ptr_t void * 6386#else 6387# define lt_ptr_t char * 6388# define const 6389#endif 6390 6391/* The mapping between symbol names and symbols. */ 6392const struct { 6393 const char *name; 6394 lt_ptr_t address; 6395} 6396lt_preloaded_symbols[] = 6397{ 6398EOF 6399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6400 cat <<\EOF >> conftest.$ac_ext 6401 {0, (lt_ptr_t) 0} 6402}; 6403 6404#ifdef __cplusplus 6405} 6406#endif 6407EOF 6408 # Now try linking the two files. 6409 mv conftest.$ac_objext conftstm.$ac_objext 6410 lt_save_LIBS="$LIBS" 6411 lt_save_CFLAGS="$CFLAGS" 6412 LIBS="conftstm.$ac_objext" 6413 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6415 (eval $ac_link) 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6419 pipe_works=yes 6420 fi 6421 LIBS="$lt_save_LIBS" 6422 CFLAGS="$lt_save_CFLAGS" 6423 else 6424 echo "cannot find nm_test_func in $nlist" >&5 6425 fi 6426 else 6427 echo "cannot find nm_test_var in $nlist" >&5 6428 fi 6429 else 6430 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6431 fi 6432 else 6433 echo "$progname: failed program was:" >&5 6434 cat conftest.$ac_ext >&5 6435 fi 6436 rm -f conftest* conftst* 6437 6438 # Do not use the global_symbol_pipe unless it works. 6439 if test "$pipe_works" = yes; then 6440 break 6441 else 6442 lt_cv_sys_global_symbol_pipe= 6443 fi 6444done 6445 6446fi 6447 6448if test -z "$lt_cv_sys_global_symbol_pipe"; then 6449 lt_cv_sys_global_symbol_to_cdecl= 6450fi 6451if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6452 { echo "$as_me:$LINENO: result: failed" >&5 6453echo "${ECHO_T}failed" >&6; } 6454else 6455 { echo "$as_me:$LINENO: result: ok" >&5 6456echo "${ECHO_T}ok" >&6; } 6457fi 6458 6459{ echo "$as_me:$LINENO: checking for objdir" >&5 6460echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6461if test "${lt_cv_objdir+set}" = set; then 6462 echo $ECHO_N "(cached) $ECHO_C" >&6 6463else 6464 rm -f .libs 2>/dev/null 6465mkdir .libs 2>/dev/null 6466if test -d .libs; then 6467 lt_cv_objdir=.libs 6468else 6469 # MS-DOS does not allow filenames that begin with a dot. 6470 lt_cv_objdir=_libs 6471fi 6472rmdir .libs 2>/dev/null 6473fi 6474{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6475echo "${ECHO_T}$lt_cv_objdir" >&6; } 6476objdir=$lt_cv_objdir 6477 6478 6479 6480 6481 6482case $host_os in 6483aix3*) 6484 # AIX sometimes has problems with the GCC collect2 program. For some 6485 # reason, if we set the COLLECT_NAMES environment variable, the problems 6486 # vanish in a puff of smoke. 6487 if test "X${COLLECT_NAMES+set}" != Xset; then 6488 COLLECT_NAMES= 6489 export COLLECT_NAMES 6490 fi 6491 ;; 6492esac 6493 6494# Sed substitution that helps us do robust quoting. It backslashifies 6495# metacharacters that are still active within double-quoted strings. 6496Xsed='sed -e 1s/^X//' 6497sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6498 6499# Same as above, but do not quote variable references. 6500double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6501 6502# Sed substitution to delay expansion of an escaped shell variable in a 6503# double_quote_subst'ed string. 6504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6505 6506# Sed substitution to avoid accidental globbing in evaled expressions 6507no_glob_subst='s/\*/\\\*/g' 6508 6509# Constants: 6510rm="rm -f" 6511 6512# Global variables: 6513default_ofile=libtool 6514can_build_shared=yes 6515 6516# All known linkers require a `.a' archive for static linking (except MSVC, 6517# which needs '.lib'). 6518libext=a 6519ltmain="$ac_aux_dir/ltmain.sh" 6520ofile="$default_ofile" 6521with_gnu_ld="$lt_cv_prog_gnu_ld" 6522 6523if test -n "$ac_tool_prefix"; then 6524 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6525set dummy ${ac_tool_prefix}ar; ac_word=$2 6526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6528if test "${ac_cv_prog_AR+set}" = set; then 6529 echo $ECHO_N "(cached) $ECHO_C" >&6 6530else 6531 if test -n "$AR"; then 6532 ac_cv_prog_AR="$AR" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6541 ac_cv_prog_AR="${ac_tool_prefix}ar" 6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551AR=$ac_cv_prog_AR 6552if test -n "$AR"; then 6553 { echo "$as_me:$LINENO: result: $AR" >&5 6554echo "${ECHO_T}$AR" >&6; } 6555else 6556 { echo "$as_me:$LINENO: result: no" >&5 6557echo "${ECHO_T}no" >&6; } 6558fi 6559 6560 6561fi 6562if test -z "$ac_cv_prog_AR"; then 6563 ac_ct_AR=$AR 6564 # Extract the first word of "ar", so it can be a program name with args. 6565set dummy ar; ac_word=$2 6566{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6568if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6569 echo $ECHO_N "(cached) $ECHO_C" >&6 6570else 6571 if test -n "$ac_ct_AR"; then 6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6573else 6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6581 ac_cv_prog_ac_ct_AR="ar" 6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586done 6587IFS=$as_save_IFS 6588 6589fi 6590fi 6591ac_ct_AR=$ac_cv_prog_ac_ct_AR 6592if test -n "$ac_ct_AR"; then 6593 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6594echo "${ECHO_T}$ac_ct_AR" >&6; } 6595else 6596 { echo "$as_me:$LINENO: result: no" >&5 6597echo "${ECHO_T}no" >&6; } 6598fi 6599 6600 if test "x$ac_ct_AR" = x; then 6601 AR="false" 6602 else 6603 case $cross_compiling:$ac_tool_warned in 6604yes:) 6605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6606whose name does not start with the host triplet. If you think this 6607configuration is useful to you, please write to autoconf@gnu.org." >&5 6608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6609whose name does not start with the host triplet. If you think this 6610configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6611ac_tool_warned=yes ;; 6612esac 6613 AR=$ac_ct_AR 6614 fi 6615else 6616 AR="$ac_cv_prog_AR" 6617fi 6618 6619if test -n "$ac_tool_prefix"; then 6620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6621set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6624if test "${ac_cv_prog_RANLIB+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626else 6627 if test -n "$RANLIB"; then 6628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647RANLIB=$ac_cv_prog_RANLIB 6648if test -n "$RANLIB"; then 6649 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6650echo "${ECHO_T}$RANLIB" >&6; } 6651else 6652 { echo "$as_me:$LINENO: result: no" >&5 6653echo "${ECHO_T}no" >&6; } 6654fi 6655 6656 6657fi 6658if test -z "$ac_cv_prog_RANLIB"; then 6659 ac_ct_RANLIB=$RANLIB 6660 # Extract the first word of "ranlib", so it can be a program name with args. 6661set dummy ranlib; ac_word=$2 6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6665 echo $ECHO_N "(cached) $ECHO_C" >&6 6666else 6667 if test -n "$ac_ct_RANLIB"; then 6668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6669else 6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH 6672do 6673 IFS=$as_save_IFS 6674 test -z "$as_dir" && as_dir=. 6675 for ac_exec_ext in '' $ac_executable_extensions; do 6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6677 ac_cv_prog_ac_ct_RANLIB="ranlib" 6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6679 break 2 6680 fi 6681done 6682done 6683IFS=$as_save_IFS 6684 6685fi 6686fi 6687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6688if test -n "$ac_ct_RANLIB"; then 6689 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6690echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6691else 6692 { echo "$as_me:$LINENO: result: no" >&5 6693echo "${ECHO_T}no" >&6; } 6694fi 6695 6696 if test "x$ac_ct_RANLIB" = x; then 6697 RANLIB=":" 6698 else 6699 case $cross_compiling:$ac_tool_warned in 6700yes:) 6701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6702whose name does not start with the host triplet. If you think this 6703configuration is useful to you, please write to autoconf@gnu.org." >&5 6704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6705whose name does not start with the host triplet. If you think this 6706configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6707ac_tool_warned=yes ;; 6708esac 6709 RANLIB=$ac_ct_RANLIB 6710 fi 6711else 6712 RANLIB="$ac_cv_prog_RANLIB" 6713fi 6714 6715if test -n "$ac_tool_prefix"; then 6716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6717set dummy ${ac_tool_prefix}strip; ac_word=$2 6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6720if test "${ac_cv_prog_STRIP+set}" = set; then 6721 echo $ECHO_N "(cached) $ECHO_C" >&6 6722else 6723 if test -n "$STRIP"; then 6724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6733 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743STRIP=$ac_cv_prog_STRIP 6744if test -n "$STRIP"; then 6745 { echo "$as_me:$LINENO: result: $STRIP" >&5 6746echo "${ECHO_T}$STRIP" >&6; } 6747else 6748 { echo "$as_me:$LINENO: result: no" >&5 6749echo "${ECHO_T}no" >&6; } 6750fi 6751 6752 6753fi 6754if test -z "$ac_cv_prog_STRIP"; then 6755 ac_ct_STRIP=$STRIP 6756 # Extract the first word of "strip", so it can be a program name with args. 6757set dummy strip; ac_word=$2 6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6761 echo $ECHO_N "(cached) $ECHO_C" >&6 6762else 6763 if test -n "$ac_ct_STRIP"; then 6764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6773 ac_cv_prog_ac_ct_STRIP="strip" 6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6784if test -n "$ac_ct_STRIP"; then 6785 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6786echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6787else 6788 { echo "$as_me:$LINENO: result: no" >&5 6789echo "${ECHO_T}no" >&6; } 6790fi 6791 6792 if test "x$ac_ct_STRIP" = x; then 6793 STRIP=":" 6794 else 6795 case $cross_compiling:$ac_tool_warned in 6796yes:) 6797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6798whose name does not start with the host triplet. If you think this 6799configuration is useful to you, please write to autoconf@gnu.org." >&5 6800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6801whose name does not start with the host triplet. If you think this 6802configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6803ac_tool_warned=yes ;; 6804esac 6805 STRIP=$ac_ct_STRIP 6806 fi 6807else 6808 STRIP="$ac_cv_prog_STRIP" 6809fi 6810 6811 6812old_CC="$CC" 6813old_CFLAGS="$CFLAGS" 6814 6815# Set sane defaults for various variables 6816test -z "$AR" && AR=ar 6817test -z "$AR_FLAGS" && AR_FLAGS=cru 6818test -z "$AS" && AS=as 6819test -z "$CC" && CC=cc 6820test -z "$LTCC" && LTCC=$CC 6821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6822test -z "$DLLTOOL" && DLLTOOL=dlltool 6823test -z "$LD" && LD=ld 6824test -z "$LN_S" && LN_S="ln -s" 6825test -z "$MAGIC_CMD" && MAGIC_CMD=file 6826test -z "$NM" && NM=nm 6827test -z "$SED" && SED=sed 6828test -z "$OBJDUMP" && OBJDUMP=objdump 6829test -z "$RANLIB" && RANLIB=: 6830test -z "$STRIP" && STRIP=: 6831test -z "$ac_objext" && ac_objext=o 6832 6833# Determine commands to create old-style static archives. 6834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6835old_postinstall_cmds='chmod 644 $oldlib' 6836old_postuninstall_cmds= 6837 6838if test -n "$RANLIB"; then 6839 case $host_os in 6840 openbsd*) 6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6842 ;; 6843 *) 6844 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6845 ;; 6846 esac 6847 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6848fi 6849 6850for cc_temp in $compiler""; do 6851 case $cc_temp in 6852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6854 \-*) ;; 6855 *) break;; 6856 esac 6857done 6858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6859 6860 6861# Only perform the check for file, if the check method requires it 6862case $deplibs_check_method in 6863file_magic*) 6864 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6865 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869else 6870 case $MAGIC_CMD in 6871[\\/*] | ?:[\\/]*) 6872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6873 ;; 6874*) 6875 lt_save_MAGIC_CMD="$MAGIC_CMD" 6876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6878 for ac_dir in $ac_dummy; do 6879 IFS="$lt_save_ifs" 6880 test -z "$ac_dir" && ac_dir=. 6881 if test -f $ac_dir/${ac_tool_prefix}file; then 6882 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6883 if test -n "$file_magic_test_file"; then 6884 case $deplibs_check_method in 6885 "file_magic "*) 6886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6889 $EGREP "$file_magic_regex" > /dev/null; then 6890 : 6891 else 6892 cat <<EOF 1>&2 6893 6894*** Warning: the command libtool uses to detect shared libraries, 6895*** $file_magic_cmd, produces output that libtool cannot recognize. 6896*** The result is that libtool may fail to recognize shared libraries 6897*** as such. This will affect the creation of libtool libraries that 6898*** depend on shared libraries, but programs linked with such libtool 6899*** libraries will work regardless of this problem. Nevertheless, you 6900*** may want to report the problem to your system manager and/or to 6901*** bug-libtool@gnu.org 6902 6903EOF 6904 fi ;; 6905 esac 6906 fi 6907 break 6908 fi 6909 done 6910 IFS="$lt_save_ifs" 6911 MAGIC_CMD="$lt_save_MAGIC_CMD" 6912 ;; 6913esac 6914fi 6915 6916MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6917if test -n "$MAGIC_CMD"; then 6918 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6919echo "${ECHO_T}$MAGIC_CMD" >&6; } 6920else 6921 { echo "$as_me:$LINENO: result: no" >&5 6922echo "${ECHO_T}no" >&6; } 6923fi 6924 6925if test -z "$lt_cv_path_MAGIC_CMD"; then 6926 if test -n "$ac_tool_prefix"; then 6927 { echo "$as_me:$LINENO: checking for file" >&5 6928echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6930 echo $ECHO_N "(cached) $ECHO_C" >&6 6931else 6932 case $MAGIC_CMD in 6933[\\/*] | ?:[\\/]*) 6934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6935 ;; 6936*) 6937 lt_save_MAGIC_CMD="$MAGIC_CMD" 6938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6940 for ac_dir in $ac_dummy; do 6941 IFS="$lt_save_ifs" 6942 test -z "$ac_dir" && ac_dir=. 6943 if test -f $ac_dir/file; then 6944 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6945 if test -n "$file_magic_test_file"; then 6946 case $deplibs_check_method in 6947 "file_magic "*) 6948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6951 $EGREP "$file_magic_regex" > /dev/null; then 6952 : 6953 else 6954 cat <<EOF 1>&2 6955 6956*** Warning: the command libtool uses to detect shared libraries, 6957*** $file_magic_cmd, produces output that libtool cannot recognize. 6958*** The result is that libtool may fail to recognize shared libraries 6959*** as such. This will affect the creation of libtool libraries that 6960*** depend on shared libraries, but programs linked with such libtool 6961*** libraries will work regardless of this problem. Nevertheless, you 6962*** may want to report the problem to your system manager and/or to 6963*** bug-libtool@gnu.org 6964 6965EOF 6966 fi ;; 6967 esac 6968 fi 6969 break 6970 fi 6971 done 6972 IFS="$lt_save_ifs" 6973 MAGIC_CMD="$lt_save_MAGIC_CMD" 6974 ;; 6975esac 6976fi 6977 6978MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6979if test -n "$MAGIC_CMD"; then 6980 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6981echo "${ECHO_T}$MAGIC_CMD" >&6; } 6982else 6983 { echo "$as_me:$LINENO: result: no" >&5 6984echo "${ECHO_T}no" >&6; } 6985fi 6986 6987 else 6988 MAGIC_CMD=: 6989 fi 6990fi 6991 6992 fi 6993 ;; 6994esac 6995 6996enable_dlopen=yes 6997enable_win32_dll=no 6998 6999# Check whether --enable-libtool-lock was given. 7000if test "${enable_libtool_lock+set}" = set; then 7001 enableval=$enable_libtool_lock; 7002fi 7003 7004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7005 7006 7007# Check whether --with-pic was given. 7008if test "${with_pic+set}" = set; then 7009 withval=$with_pic; pic_mode="$withval" 7010else 7011 pic_mode=default 7012fi 7013 7014test -z "$pic_mode" && pic_mode=default 7015 7016# Use C for the default configuration in the libtool script 7017tagname= 7018lt_save_CC="$CC" 7019ac_ext=c 7020ac_cpp='$CPP $CPPFLAGS' 7021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7023ac_compiler_gnu=$ac_cv_c_compiler_gnu 7024 7025 7026# Source file extension for C test sources. 7027ac_ext=c 7028 7029# Object file extension for compiled C test sources. 7030objext=o 7031objext=$objext 7032 7033# Code to be used in simple compile tests 7034lt_simple_compile_test_code="int some_variable = 0;\n" 7035 7036# Code to be used in simple link tests 7037lt_simple_link_test_code='int main(){return(0);}\n' 7038 7039 7040# If no C compiler was specified, use CC. 7041LTCC=${LTCC-"$CC"} 7042 7043# If no C compiler flags were specified, use CFLAGS. 7044LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7045 7046# Allow CC to be a program name with arguments. 7047compiler=$CC 7048 7049 7050# save warnings/boilerplate of simple test code 7051ac_outfile=conftest.$ac_objext 7052printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7054_lt_compiler_boilerplate=`cat conftest.err` 7055$rm conftest* 7056 7057ac_outfile=conftest.$ac_objext 7058printf "$lt_simple_link_test_code" >conftest.$ac_ext 7059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7060_lt_linker_boilerplate=`cat conftest.err` 7061$rm conftest* 7062 7063 7064 7065lt_prog_compiler_no_builtin_flag= 7066 7067if test "$GCC" = yes; then 7068 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7069 7070 7071{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7072echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7073if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 lt_cv_prog_compiler_rtti_exceptions=no 7077 ac_outfile=conftest.$ac_objext 7078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7079 lt_compiler_flag="-fno-rtti -fno-exceptions" 7080 # Insert the option either (1) after the last *FLAGS variable, or 7081 # (2) before a word containing "conftest.", or (3) at the end. 7082 # Note that $ac_compile itself does not contain backslashes and begins 7083 # with a dollar sign (not a hyphen), so the echo should work correctly. 7084 # The option is referenced via a variable to avoid confusing sed. 7085 lt_compile=`echo "$ac_compile" | $SED \ 7086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7088 -e 's:$: $lt_compiler_flag:'` 7089 (eval echo "\"\$as_me:7089: $lt_compile\"" >&5) 7090 (eval "$lt_compile" 2>conftest.err) 7091 ac_status=$? 7092 cat conftest.err >&5 7093 echo "$as_me:7093: \$? = $ac_status" >&5 7094 if (exit $ac_status) && test -s "$ac_outfile"; then 7095 # The compiler can only warn and ignore the option if not recognized 7096 # So say no if there are warnings other than the usual output. 7097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7100 lt_cv_prog_compiler_rtti_exceptions=yes 7101 fi 7102 fi 7103 $rm conftest* 7104 7105fi 7106{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7108 7109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7111else 7112 : 7113fi 7114 7115fi 7116 7117lt_prog_compiler_wl= 7118lt_prog_compiler_pic= 7119lt_prog_compiler_static= 7120 7121{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7123 7124 if test "$GCC" = yes; then 7125 lt_prog_compiler_wl='-Wl,' 7126 lt_prog_compiler_static='-static' 7127 7128 case $host_os in 7129 aix*) 7130 # All AIX code is PIC. 7131 if test "$host_cpu" = ia64; then 7132 # AIX 5 now supports IA64 processor 7133 lt_prog_compiler_static='-Bstatic' 7134 fi 7135 ;; 7136 7137 amigaos*) 7138 # FIXME: we need at least 68020 code to build shared libraries, but 7139 # adding the `-m68020' flag to GCC prevents building anything better, 7140 # like `-m68040'. 7141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7142 ;; 7143 7144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7145 # PIC is the default for these OSes. 7146 ;; 7147 7148 mingw* | pw32* | os2*) 7149 # This hack is so that the source file can tell whether it is being 7150 # built for inclusion in a dll (and should export symbols for example). 7151 lt_prog_compiler_pic='-DDLL_EXPORT' 7152 ;; 7153 7154 darwin* | rhapsody*) 7155 # PIC is the default on this platform 7156 # Common symbols not allowed in MH_DYLIB files 7157 lt_prog_compiler_pic='-fno-common' 7158 ;; 7159 7160 interix3*) 7161 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7162 # Instead, we relocate shared libraries at runtime. 7163 ;; 7164 7165 msdosdjgpp*) 7166 # Just because we use GCC doesn't mean we suddenly get shared libraries 7167 # on systems that don't support them. 7168 lt_prog_compiler_can_build_shared=no 7169 enable_shared=no 7170 ;; 7171 7172 sysv4*MP*) 7173 if test -d /usr/nec; then 7174 lt_prog_compiler_pic=-Kconform_pic 7175 fi 7176 ;; 7177 7178 hpux*) 7179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7180 # not for PA HP-UX. 7181 case $host_cpu in 7182 hppa*64*|ia64*) 7183 # +Z the default 7184 ;; 7185 *) 7186 lt_prog_compiler_pic='-fPIC' 7187 ;; 7188 esac 7189 ;; 7190 7191 *) 7192 lt_prog_compiler_pic='-fPIC' 7193 ;; 7194 esac 7195 else 7196 # PORTME Check for flag to pass linker flags through the system compiler. 7197 case $host_os in 7198 aix*) 7199 lt_prog_compiler_wl='-Wl,' 7200 if test "$host_cpu" = ia64; then 7201 # AIX 5 now supports IA64 processor 7202 lt_prog_compiler_static='-Bstatic' 7203 else 7204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7205 fi 7206 ;; 7207 darwin*) 7208 # PIC is the default on this platform 7209 # Common symbols not allowed in MH_DYLIB files 7210 case $cc_basename in 7211 xlc*) 7212 lt_prog_compiler_pic='-qnocommon' 7213 lt_prog_compiler_wl='-Wl,' 7214 ;; 7215 esac 7216 ;; 7217 7218 mingw* | pw32* | os2*) 7219 # This hack is so that the source file can tell whether it is being 7220 # built for inclusion in a dll (and should export symbols for example). 7221 lt_prog_compiler_pic='-DDLL_EXPORT' 7222 ;; 7223 7224 hpux9* | hpux10* | hpux11*) 7225 lt_prog_compiler_wl='-Wl,' 7226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7227 # not for PA HP-UX. 7228 case $host_cpu in 7229 hppa*64*|ia64*) 7230 # +Z the default 7231 ;; 7232 *) 7233 lt_prog_compiler_pic='+Z' 7234 ;; 7235 esac 7236 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7237 lt_prog_compiler_static='${wl}-a ${wl}archive' 7238 ;; 7239 7240 irix5* | irix6* | nonstopux*) 7241 lt_prog_compiler_wl='-Wl,' 7242 # PIC (with -KPIC) is the default. 7243 lt_prog_compiler_static='-non_shared' 7244 ;; 7245 7246 newsos6) 7247 lt_prog_compiler_pic='-KPIC' 7248 lt_prog_compiler_static='-Bstatic' 7249 ;; 7250 7251 linux* | k*bsd*-gnu) 7252 case $cc_basename in 7253 icc* | ecc*) 7254 lt_prog_compiler_wl='-Wl,' 7255 lt_prog_compiler_pic='-KPIC' 7256 lt_prog_compiler_static='-static' 7257 ;; 7258 pgcc* | pgf77* | pgf90* | pgf95*) 7259 # Portland Group compilers (*not* the Pentium gcc compiler, 7260 # which looks to be a dead project) 7261 lt_prog_compiler_wl='-Wl,' 7262 lt_prog_compiler_pic='-fpic' 7263 lt_prog_compiler_static='-Bstatic' 7264 ;; 7265 ccc*) 7266 lt_prog_compiler_wl='-Wl,' 7267 # All Alpha code is PIC. 7268 lt_prog_compiler_static='-non_shared' 7269 ;; 7270 esac 7271 ;; 7272 7273 osf3* | osf4* | osf5*) 7274 lt_prog_compiler_wl='-Wl,' 7275 # All OSF/1 code is PIC. 7276 lt_prog_compiler_static='-non_shared' 7277 ;; 7278 7279 solaris*) 7280 lt_prog_compiler_pic='-KPIC' 7281 lt_prog_compiler_static='-Bstatic' 7282 case $cc_basename in 7283 f77* | f90* | f95*) 7284 lt_prog_compiler_wl='-Qoption ld ';; 7285 *) 7286 lt_prog_compiler_wl='-Wl,';; 7287 esac 7288 ;; 7289 7290 sunos4*) 7291 lt_prog_compiler_wl='-Qoption ld ' 7292 lt_prog_compiler_pic='-PIC' 7293 lt_prog_compiler_static='-Bstatic' 7294 ;; 7295 7296 sysv4 | sysv4.2uw2* | sysv4.3*) 7297 lt_prog_compiler_wl='-Wl,' 7298 lt_prog_compiler_pic='-KPIC' 7299 lt_prog_compiler_static='-Bstatic' 7300 ;; 7301 7302 sysv4*MP*) 7303 if test -d /usr/nec ;then 7304 lt_prog_compiler_pic='-Kconform_pic' 7305 lt_prog_compiler_static='-Bstatic' 7306 fi 7307 ;; 7308 7309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7310 lt_prog_compiler_wl='-Wl,' 7311 lt_prog_compiler_pic='-KPIC' 7312 lt_prog_compiler_static='-Bstatic' 7313 ;; 7314 7315 unicos*) 7316 lt_prog_compiler_wl='-Wl,' 7317 lt_prog_compiler_can_build_shared=no 7318 ;; 7319 7320 uts4*) 7321 lt_prog_compiler_pic='-pic' 7322 lt_prog_compiler_static='-Bstatic' 7323 ;; 7324 7325 *) 7326 lt_prog_compiler_can_build_shared=no 7327 ;; 7328 esac 7329 fi 7330 7331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7332echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7333 7334# 7335# Check to make sure the PIC flag actually works. 7336# 7337if test -n "$lt_prog_compiler_pic"; then 7338 7339{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7340echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7341if test "${lt_prog_compiler_pic_works+set}" = set; then 7342 echo $ECHO_N "(cached) $ECHO_C" >&6 7343else 7344 lt_prog_compiler_pic_works=no 7345 ac_outfile=conftest.$ac_objext 7346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7348 # Insert the option either (1) after the last *FLAGS variable, or 7349 # (2) before a word containing "conftest.", or (3) at the end. 7350 # Note that $ac_compile itself does not contain backslashes and begins 7351 # with a dollar sign (not a hyphen), so the echo should work correctly. 7352 # The option is referenced via a variable to avoid confusing sed. 7353 lt_compile=`echo "$ac_compile" | $SED \ 7354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7356 -e 's:$: $lt_compiler_flag:'` 7357 (eval echo "\"\$as_me:7357: $lt_compile\"" >&5) 7358 (eval "$lt_compile" 2>conftest.err) 7359 ac_status=$? 7360 cat conftest.err >&5 7361 echo "$as_me:7361: \$? = $ac_status" >&5 7362 if (exit $ac_status) && test -s "$ac_outfile"; then 7363 # The compiler can only warn and ignore the option if not recognized 7364 # So say no if there are warnings other than the usual output. 7365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7368 lt_prog_compiler_pic_works=yes 7369 fi 7370 fi 7371 $rm conftest* 7372 7373fi 7374{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7375echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7376 7377if test x"$lt_prog_compiler_pic_works" = xyes; then 7378 case $lt_prog_compiler_pic in 7379 "" | " "*) ;; 7380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7381 esac 7382else 7383 lt_prog_compiler_pic= 7384 lt_prog_compiler_can_build_shared=no 7385fi 7386 7387fi 7388case $host_os in 7389 # For platforms which do not support PIC, -DPIC is meaningless: 7390 *djgpp*) 7391 lt_prog_compiler_pic= 7392 ;; 7393 *) 7394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7395 ;; 7396esac 7397 7398# 7399# Check to make sure the static flag actually works. 7400# 7401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7402{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7403echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7404if test "${lt_prog_compiler_static_works+set}" = set; then 7405 echo $ECHO_N "(cached) $ECHO_C" >&6 7406else 7407 lt_prog_compiler_static_works=no 7408 save_LDFLAGS="$LDFLAGS" 7409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7410 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7412 # The linker can only warn and ignore the option if not recognized 7413 # So say no if there are warnings 7414 if test -s conftest.err; then 7415 # Append any errors to the config.log. 7416 cat conftest.err 1>&5 7417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7419 if diff conftest.exp conftest.er2 >/dev/null; then 7420 lt_prog_compiler_static_works=yes 7421 fi 7422 else 7423 lt_prog_compiler_static_works=yes 7424 fi 7425 fi 7426 $rm conftest* 7427 LDFLAGS="$save_LDFLAGS" 7428 7429fi 7430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7431echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7432 7433if test x"$lt_prog_compiler_static_works" = xyes; then 7434 : 7435else 7436 lt_prog_compiler_static= 7437fi 7438 7439 7440{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7441echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7442if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7443 echo $ECHO_N "(cached) $ECHO_C" >&6 7444else 7445 lt_cv_prog_compiler_c_o=no 7446 $rm -r conftest 2>/dev/null 7447 mkdir conftest 7448 cd conftest 7449 mkdir out 7450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7451 7452 lt_compiler_flag="-o out/conftest2.$ac_objext" 7453 # Insert the option either (1) after the last *FLAGS variable, or 7454 # (2) before a word containing "conftest.", or (3) at the end. 7455 # Note that $ac_compile itself does not contain backslashes and begins 7456 # with a dollar sign (not a hyphen), so the echo should work correctly. 7457 lt_compile=`echo "$ac_compile" | $SED \ 7458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7460 -e 's:$: $lt_compiler_flag:'` 7461 (eval echo "\"\$as_me:7461: $lt_compile\"" >&5) 7462 (eval "$lt_compile" 2>out/conftest.err) 7463 ac_status=$? 7464 cat out/conftest.err >&5 7465 echo "$as_me:7465: \$? = $ac_status" >&5 7466 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7467 then 7468 # The compiler can only warn and ignore the option if not recognized 7469 # So say no if there are warnings 7470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7473 lt_cv_prog_compiler_c_o=yes 7474 fi 7475 fi 7476 chmod u+w . 2>&5 7477 $rm conftest* 7478 # SGI C++ compiler will create directory out/ii_files/ for 7479 # template instantiation 7480 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7481 $rm out/* && rmdir out 7482 cd .. 7483 rmdir conftest 7484 $rm conftest* 7485 7486fi 7487{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7488echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7489 7490 7491hard_links="nottested" 7492if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7493 # do not overwrite the value of need_locks provided by the user 7494 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7495echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7496 hard_links=yes 7497 $rm conftest* 7498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7499 touch conftest.a 7500 ln conftest.a conftest.b 2>&5 || hard_links=no 7501 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7502 { echo "$as_me:$LINENO: result: $hard_links" >&5 7503echo "${ECHO_T}$hard_links" >&6; } 7504 if test "$hard_links" = no; then 7505 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7506echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7507 need_locks=warn 7508 fi 7509else 7510 need_locks=no 7511fi 7512 7513{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7515 7516 runpath_var= 7517 allow_undefined_flag= 7518 enable_shared_with_static_runtimes=no 7519 archive_cmds= 7520 archive_expsym_cmds= 7521 old_archive_From_new_cmds= 7522 old_archive_from_expsyms_cmds= 7523 export_dynamic_flag_spec= 7524 whole_archive_flag_spec= 7525 thread_safe_flag_spec= 7526 hardcode_libdir_flag_spec= 7527 hardcode_libdir_flag_spec_ld= 7528 hardcode_libdir_separator= 7529 hardcode_direct=no 7530 hardcode_minus_L=no 7531 hardcode_shlibpath_var=unsupported 7532 link_all_deplibs=unknown 7533 hardcode_automatic=no 7534 module_cmds= 7535 module_expsym_cmds= 7536 always_export_symbols=no 7537 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7538 # include_expsyms should be a list of space-separated symbols to be *always* 7539 # included in the symbol list 7540 include_expsyms= 7541 # exclude_expsyms can be an extended regexp of symbols to exclude 7542 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7544 # as well as any symbol that contains `d'. 7545 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7547 # platforms (ab)use it in PIC code, but their linkers get confused if 7548 # the symbol is explicitly referenced. Since portable code cannot 7549 # rely on this symbol name, it's probably fine to never include it in 7550 # preloaded symbol tables. 7551 extract_expsyms_cmds= 7552 # Just being paranoid about ensuring that cc_basename is set. 7553 for cc_temp in $compiler""; do 7554 case $cc_temp in 7555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7557 \-*) ;; 7558 *) break;; 7559 esac 7560done 7561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7562 7563 case $host_os in 7564 cygwin* | mingw* | pw32*) 7565 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7566 # When not using gcc, we currently assume that we are using 7567 # Microsoft Visual C++. 7568 if test "$GCC" != yes; then 7569 with_gnu_ld=no 7570 fi 7571 ;; 7572 interix*) 7573 # we just hope/assume this is gcc and not c89 (= MSVC++) 7574 with_gnu_ld=yes 7575 ;; 7576 openbsd*) 7577 with_gnu_ld=no 7578 ;; 7579 esac 7580 7581 ld_shlibs=yes 7582 if test "$with_gnu_ld" = yes; then 7583 # If archive_cmds runs LD, not CC, wlarc should be empty 7584 wlarc='${wl}' 7585 7586 # Set some defaults for GNU ld with shared library support. These 7587 # are reset later if shared libraries are not supported. Putting them 7588 # here allows them to be overridden if necessary. 7589 runpath_var=LD_RUN_PATH 7590 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7591 export_dynamic_flag_spec='${wl}--export-dynamic' 7592 # ancient GNU ld didn't support --whole-archive et. al. 7593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7594 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7595 else 7596 whole_archive_flag_spec= 7597 fi 7598 supports_anon_versioning=no 7599 case `$LD -v 2>/dev/null` in 7600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7603 *\ 2.11.*) ;; # other 2.11 versions 7604 *) supports_anon_versioning=yes ;; 7605 esac 7606 7607 # See if GNU ld supports shared libraries. 7608 case $host_os in 7609 aix3* | aix4* | aix5*) 7610 # On AIX/PPC, the GNU linker is very broken 7611 if test "$host_cpu" != ia64; then 7612 ld_shlibs=no 7613 cat <<EOF 1>&2 7614 7615*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7616*** to be unable to reliably create shared libraries on AIX. 7617*** Therefore, libtool is disabling shared libraries support. If you 7618*** really care for shared libraries, you may want to modify your PATH 7619*** so that a non-GNU linker is found, and then restart. 7620 7621EOF 7622 fi 7623 ;; 7624 7625 amigaos*) 7626 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)' 7627 hardcode_libdir_flag_spec='-L$libdir' 7628 hardcode_minus_L=yes 7629 7630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7631 # that the semantics of dynamic libraries on AmigaOS, at least up 7632 # to version 4, is to share data among multiple programs linked 7633 # with the same dynamic library. Since this doesn't match the 7634 # behavior of shared libraries on other platforms, we can't use 7635 # them. 7636 ld_shlibs=no 7637 ;; 7638 7639 beos*) 7640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7641 allow_undefined_flag=unsupported 7642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7643 # support --undefined. This deserves some investigation. FIXME 7644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7645 else 7646 ld_shlibs=no 7647 fi 7648 ;; 7649 7650 cygwin* | mingw* | pw32*) 7651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7652 # as there is no search path for DLLs. 7653 hardcode_libdir_flag_spec='-L$libdir' 7654 allow_undefined_flag=unsupported 7655 always_export_symbols=no 7656 enable_shared_with_static_runtimes=yes 7657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7658 7659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7661 # If the export-symbols file already is a .def file (1st line 7662 # is EXPORTS), use it as is; otherwise, prepend... 7663 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7664 cp $export_symbols $output_objdir/$soname.def; 7665 else 7666 echo EXPORTS > $output_objdir/$soname.def; 7667 cat $export_symbols >> $output_objdir/$soname.def; 7668 fi~ 7669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7670 else 7671 ld_shlibs=no 7672 fi 7673 ;; 7674 7675 interix3*) 7676 hardcode_direct=no 7677 hardcode_shlibpath_var=no 7678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7679 export_dynamic_flag_spec='${wl}-E' 7680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7681 # Instead, shared libraries are loaded at an image base (0x10000000 by 7682 # default) and relocated if they conflict, which is a slow very memory 7683 # consuming and fragmenting process. To avoid this, we pick a random, 7684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7685 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7686 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7687 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' 7688 ;; 7689 7690 linux* | k*bsd*-gnu) 7691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7692 tmp_addflag= 7693 case $cc_basename,$host_cpu in 7694 pgcc*) # Portland Group C compiler 7695 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' 7696 tmp_addflag=' $pic_flag' 7697 ;; 7698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7699 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' 7700 tmp_addflag=' $pic_flag -Mnomain' ;; 7701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7702 tmp_addflag=' -i_dynamic' ;; 7703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7704 tmp_addflag=' -i_dynamic -nofor_main' ;; 7705 ifc* | ifort*) # Intel Fortran compiler 7706 tmp_addflag=' -nofor_main' ;; 7707 esac 7708 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7709 7710 if test $supports_anon_versioning = yes; then 7711 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7713 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7714 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7715 fi 7716 link_all_deplibs=no 7717 else 7718 ld_shlibs=no 7719 fi 7720 ;; 7721 7722 netbsd* | netbsdelf*-gnu) 7723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7724 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7725 wlarc= 7726 else 7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7729 fi 7730 ;; 7731 7732 solaris*) 7733 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7734 ld_shlibs=no 7735 cat <<EOF 1>&2 7736 7737*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7738*** create shared libraries on Solaris systems. Therefore, libtool 7739*** is disabling shared libraries support. We urge you to upgrade GNU 7740*** binutils to release 2.9.1 or newer. Another option is to modify 7741*** your PATH or compiler configuration so that the native linker is 7742*** used, and then restart. 7743 7744EOF 7745 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7748 else 7749 ld_shlibs=no 7750 fi 7751 ;; 7752 7753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7754 case `$LD -v 2>&1` in 7755 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7756 ld_shlibs=no 7757 cat <<_LT_EOF 1>&2 7758 7759*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7760*** reliably create shared libraries on SCO systems. Therefore, libtool 7761*** is disabling shared libraries support. We urge you to upgrade GNU 7762*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7763*** your PATH or compiler configuration so that the native linker is 7764*** used, and then restart. 7765 7766_LT_EOF 7767 ;; 7768 *) 7769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7770 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7773 else 7774 ld_shlibs=no 7775 fi 7776 ;; 7777 esac 7778 ;; 7779 7780 sunos4*) 7781 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7782 wlarc= 7783 hardcode_direct=yes 7784 hardcode_shlibpath_var=no 7785 ;; 7786 7787 *) 7788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7791 else 7792 ld_shlibs=no 7793 fi 7794 ;; 7795 esac 7796 7797 if test "$ld_shlibs" = no; then 7798 runpath_var= 7799 hardcode_libdir_flag_spec= 7800 export_dynamic_flag_spec= 7801 whole_archive_flag_spec= 7802 fi 7803 else 7804 # PORTME fill in a description of your system's linker (not GNU ld) 7805 case $host_os in 7806 aix3*) 7807 allow_undefined_flag=unsupported 7808 always_export_symbols=yes 7809 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' 7810 # Note: this linker hardcodes the directories in LIBPATH if there 7811 # are no directories specified by -L. 7812 hardcode_minus_L=yes 7813 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7814 # Neither direct hardcoding nor static linking is supported with a 7815 # broken collect2. 7816 hardcode_direct=unsupported 7817 fi 7818 ;; 7819 7820 aix4* | aix5*) 7821 if test "$host_cpu" = ia64; then 7822 # On IA64, the linker does run time linking by default, so we don't 7823 # have to do anything special. 7824 aix_use_runtimelinking=no 7825 exp_sym_flag='-Bexport' 7826 no_entry_flag="" 7827 else 7828 # If we're using GNU nm, then we don't want the "-C" option. 7829 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7830 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7831 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' 7832 else 7833 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' 7834 fi 7835 aix_use_runtimelinking=no 7836 7837 # Test if we are trying to use run time linking or normal 7838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7839 # need to do runtime linking. 7840 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7841 for ld_flag in $LDFLAGS; do 7842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7843 aix_use_runtimelinking=yes 7844 break 7845 fi 7846 done 7847 ;; 7848 esac 7849 7850 exp_sym_flag='-bexport' 7851 no_entry_flag='-bnoentry' 7852 fi 7853 7854 # When large executables or shared objects are built, AIX ld can 7855 # have problems creating the table of contents. If linking a library 7856 # or program results in "error TOC overflow" add -mminimal-toc to 7857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7859 7860 archive_cmds='' 7861 hardcode_direct=yes 7862 hardcode_libdir_separator=':' 7863 link_all_deplibs=yes 7864 7865 if test "$GCC" = yes; then 7866 case $host_os in aix4.[012]|aix4.[012].*) 7867 # We only want to do this on AIX 4.2 and lower, the check 7868 # below for broken collect2 doesn't work under 4.3+ 7869 collect2name=`${CC} -print-prog-name=collect2` 7870 if test -f "$collect2name" && \ 7871 strings "$collect2name" | grep resolve_lib_name >/dev/null 7872 then 7873 # We have reworked collect2 7874 hardcode_direct=yes 7875 else 7876 # We have old collect2 7877 hardcode_direct=unsupported 7878 # It fails to find uninstalled libraries when the uninstalled 7879 # path is not listed in the libpath. Setting hardcode_minus_L 7880 # to unsupported forces relinking 7881 hardcode_minus_L=yes 7882 hardcode_libdir_flag_spec='-L$libdir' 7883 hardcode_libdir_separator= 7884 fi 7885 ;; 7886 esac 7887 shared_flag='-shared' 7888 if test "$aix_use_runtimelinking" = yes; then 7889 shared_flag="$shared_flag "'${wl}-G' 7890 fi 7891 else 7892 # not using gcc 7893 if test "$host_cpu" = ia64; then 7894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7895 # chokes on -Wl,-G. The following line is correct: 7896 shared_flag='-G' 7897 else 7898 if test "$aix_use_runtimelinking" = yes; then 7899 shared_flag='${wl}-G' 7900 else 7901 shared_flag='${wl}-bM:SRE' 7902 fi 7903 fi 7904 fi 7905 7906 # It seems that -bexpall does not export symbols beginning with 7907 # underscore (_), so it is better to generate a list of symbols to export. 7908 always_export_symbols=yes 7909 if test "$aix_use_runtimelinking" = yes; then 7910 # Warning - without using the other runtime loading flags (-brtl), 7911 # -berok will link without error, but may produce a broken library. 7912 allow_undefined_flag='-berok' 7913 # Determine the default libpath from the value encoded in an empty executable. 7914 cat >conftest.$ac_ext <<_ACEOF 7915/* confdefs.h. */ 7916_ACEOF 7917cat confdefs.h >>conftest.$ac_ext 7918cat >>conftest.$ac_ext <<_ACEOF 7919/* end confdefs.h. */ 7920 7921int 7922main () 7923{ 7924 7925 ; 7926 return 0; 7927} 7928_ACEOF 7929rm -f conftest.$ac_objext conftest$ac_exeext 7930if { (ac_try="$ac_link" 7931case "(($ac_try" in 7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7933 *) ac_try_echo=$ac_try;; 7934esac 7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7936 (eval "$ac_link") 2>conftest.er1 7937 ac_status=$? 7938 grep -v '^ *+' conftest.er1 >conftest.err 7939 rm -f conftest.er1 7940 cat conftest.err >&5 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7942 (exit $ac_status); } && { 7943 test -z "$ac_c_werror_flag" || 7944 test ! -s conftest.err 7945 } && test -s conftest$ac_exeext && 7946 $as_test_x conftest$ac_exeext; then 7947 7948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7949}'` 7950# Check for a 64-bit object if we didn't find anything. 7951if 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; } 7952}'`; fi 7953else 7954 echo "$as_me: failed program was:" >&5 7955sed 's/^/| /' conftest.$ac_ext >&5 7956 7957 7958fi 7959 7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7961 conftest$ac_exeext conftest.$ac_ext 7962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7963 7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7965 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" 7966 else 7967 if test "$host_cpu" = ia64; then 7968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7969 allow_undefined_flag="-z nodefs" 7970 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" 7971 else 7972 # Determine the default libpath from the value encoded in an empty executable. 7973 cat >conftest.$ac_ext <<_ACEOF 7974/* confdefs.h. */ 7975_ACEOF 7976cat confdefs.h >>conftest.$ac_ext 7977cat >>conftest.$ac_ext <<_ACEOF 7978/* end confdefs.h. */ 7979 7980int 7981main () 7982{ 7983 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988rm -f conftest.$ac_objext conftest$ac_exeext 7989if { (ac_try="$ac_link" 7990case "(($ac_try" in 7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7992 *) ac_try_echo=$ac_try;; 7993esac 7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7995 (eval "$ac_link") 2>conftest.er1 7996 ac_status=$? 7997 grep -v '^ *+' conftest.er1 >conftest.err 7998 rm -f conftest.er1 7999 cat conftest.err >&5 8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 (exit $ac_status); } && { 8002 test -z "$ac_c_werror_flag" || 8003 test ! -s conftest.err 8004 } && test -s conftest$ac_exeext && 8005 $as_test_x conftest$ac_exeext; then 8006 8007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8008}'` 8009# Check for a 64-bit object if we didn't find anything. 8010if 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; } 8011}'`; fi 8012else 8013 echo "$as_me: failed program was:" >&5 8014sed 's/^/| /' conftest.$ac_ext >&5 8015 8016 8017fi 8018 8019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8020 conftest$ac_exeext conftest.$ac_ext 8021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8022 8023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8024 # Warning - without using the other run time loading flags, 8025 # -berok will link without error, but may produce a broken library. 8026 no_undefined_flag=' ${wl}-bernotok' 8027 allow_undefined_flag=' ${wl}-berok' 8028 # Exported symbols can be pulled into shared objects from archives 8029 whole_archive_flag_spec='$convenience' 8030 archive_cmds_need_lc=yes 8031 # This is similar to how AIX traditionally builds its shared libraries. 8032 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' 8033 fi 8034 fi 8035 ;; 8036 8037 amigaos*) 8038 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)' 8039 hardcode_libdir_flag_spec='-L$libdir' 8040 hardcode_minus_L=yes 8041 # see comment about different semantics on the GNU ld section 8042 ld_shlibs=no 8043 ;; 8044 8045 bsdi[45]*) 8046 export_dynamic_flag_spec=-rdynamic 8047 ;; 8048 8049 cygwin* | mingw* | pw32*) 8050 # When not using gcc, we currently assume that we are using 8051 # Microsoft Visual C++. 8052 # hardcode_libdir_flag_spec is actually meaningless, as there is 8053 # no search path for DLLs. 8054 hardcode_libdir_flag_spec=' ' 8055 allow_undefined_flag=unsupported 8056 # Tell ltmain to make .lib files, not .a files. 8057 libext=lib 8058 # Tell ltmain to make .dll files, not .so files. 8059 shrext_cmds=".dll" 8060 # FIXME: Setting linknames here is a bad hack. 8061 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8062 # The linker will automatically build a .lib file if we build a DLL. 8063 old_archive_From_new_cmds='true' 8064 # FIXME: Should let the user specify the lib program. 8065 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8066 fix_srcfile_path='`cygpath -w "$srcfile"`' 8067 enable_shared_with_static_runtimes=yes 8068 ;; 8069 8070 darwin* | rhapsody*) 8071 case $host_os in 8072 rhapsody* | darwin1.[012]) 8073 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8074 ;; 8075 *) # Darwin 1.3 on 8076 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8077 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8078 else 8079 case ${MACOSX_DEPLOYMENT_TARGET} in 8080 10.[012]) 8081 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8082 ;; 8083 10.*) 8084 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8085 ;; 8086 esac 8087 fi 8088 ;; 8089 esac 8090 archive_cmds_need_lc=no 8091 hardcode_direct=no 8092 hardcode_automatic=yes 8093 hardcode_shlibpath_var=unsupported 8094 whole_archive_flag_spec='' 8095 link_all_deplibs=yes 8096 if test "$GCC" = yes ; then 8097 output_verbose_link_cmd='echo' 8098 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8099 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8101 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}' 8102 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}' 8103 else 8104 case $cc_basename in 8105 xlc*) 8106 output_verbose_link_cmd='echo' 8107 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8108 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8110 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}' 8111 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}' 8112 ;; 8113 *) 8114 ld_shlibs=no 8115 ;; 8116 esac 8117 fi 8118 ;; 8119 8120 dgux*) 8121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8122 hardcode_libdir_flag_spec='-L$libdir' 8123 hardcode_shlibpath_var=no 8124 ;; 8125 8126 freebsd1*) 8127 ld_shlibs=no 8128 ;; 8129 8130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8131 # support. Future versions do this automatically, but an explicit c++rt0.o 8132 # does not break anything, and helps significantly (at the cost of a little 8133 # extra space). 8134 freebsd2.2*) 8135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8136 hardcode_libdir_flag_spec='-R$libdir' 8137 hardcode_direct=yes 8138 hardcode_shlibpath_var=no 8139 ;; 8140 8141 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8142 freebsd2*) 8143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8144 hardcode_direct=yes 8145 hardcode_minus_L=yes 8146 hardcode_shlibpath_var=no 8147 ;; 8148 8149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8150 freebsd* | dragonfly*) 8151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8152 hardcode_libdir_flag_spec='-R$libdir' 8153 hardcode_direct=yes 8154 hardcode_shlibpath_var=no 8155 ;; 8156 8157 hpux9*) 8158 if test "$GCC" = yes; then 8159 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' 8160 else 8161 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' 8162 fi 8163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8164 hardcode_libdir_separator=: 8165 hardcode_direct=yes 8166 8167 # hardcode_minus_L: Not really in the search PATH, 8168 # but as the default location of the library. 8169 hardcode_minus_L=yes 8170 export_dynamic_flag_spec='${wl}-E' 8171 ;; 8172 8173 hpux10*) 8174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8176 else 8177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8178 fi 8179 if test "$with_gnu_ld" = no; then 8180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8181 hardcode_libdir_separator=: 8182 8183 hardcode_direct=yes 8184 export_dynamic_flag_spec='${wl}-E' 8185 8186 # hardcode_minus_L: Not really in the search PATH, 8187 # but as the default location of the library. 8188 hardcode_minus_L=yes 8189 fi 8190 ;; 8191 8192 hpux11*) 8193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8194 case $host_cpu in 8195 hppa*64*) 8196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8197 ;; 8198 ia64*) 8199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8200 ;; 8201 *) 8202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8203 ;; 8204 esac 8205 else 8206 case $host_cpu in 8207 hppa*64*) 8208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8209 ;; 8210 ia64*) 8211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8212 ;; 8213 *) 8214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8215 ;; 8216 esac 8217 fi 8218 if test "$with_gnu_ld" = no; then 8219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8220 hardcode_libdir_separator=: 8221 8222 case $host_cpu in 8223 hppa*64*|ia64*) 8224 hardcode_libdir_flag_spec_ld='+b $libdir' 8225 hardcode_direct=no 8226 hardcode_shlibpath_var=no 8227 ;; 8228 *) 8229 hardcode_direct=yes 8230 export_dynamic_flag_spec='${wl}-E' 8231 8232 # hardcode_minus_L: Not really in the search PATH, 8233 # but as the default location of the library. 8234 hardcode_minus_L=yes 8235 ;; 8236 esac 8237 fi 8238 ;; 8239 8240 irix5* | irix6* | nonstopux*) 8241 if test "$GCC" = yes; then 8242 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' 8243 else 8244 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' 8245 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8246 fi 8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8248 hardcode_libdir_separator=: 8249 link_all_deplibs=yes 8250 ;; 8251 8252 netbsd* | netbsdelf*-gnu) 8253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8255 else 8256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8257 fi 8258 hardcode_libdir_flag_spec='-R$libdir' 8259 hardcode_direct=yes 8260 hardcode_shlibpath_var=no 8261 ;; 8262 8263 newsos6) 8264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8265 hardcode_direct=yes 8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8267 hardcode_libdir_separator=: 8268 hardcode_shlibpath_var=no 8269 ;; 8270 8271 openbsd*) 8272 hardcode_direct=yes 8273 hardcode_shlibpath_var=no 8274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8278 export_dynamic_flag_spec='${wl}-E' 8279 else 8280 case $host_os in 8281 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8283 hardcode_libdir_flag_spec='-R$libdir' 8284 ;; 8285 *) 8286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8288 ;; 8289 esac 8290 fi 8291 ;; 8292 8293 os2*) 8294 hardcode_libdir_flag_spec='-L$libdir' 8295 hardcode_minus_L=yes 8296 allow_undefined_flag=unsupported 8297 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' 8298 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8299 ;; 8300 8301 osf3*) 8302 if test "$GCC" = yes; then 8303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8304 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' 8305 else 8306 allow_undefined_flag=' -expect_unresolved \*' 8307 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' 8308 fi 8309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8310 hardcode_libdir_separator=: 8311 ;; 8312 8313 osf4* | osf5*) # as osf3* with the addition of -msym flag 8314 if test "$GCC" = yes; then 8315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8316 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' 8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8318 else 8319 allow_undefined_flag=' -expect_unresolved \*' 8320 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' 8321 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8322 $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' 8323 8324 # Both c and cxx compiler support -rpath directly 8325 hardcode_libdir_flag_spec='-rpath $libdir' 8326 fi 8327 hardcode_libdir_separator=: 8328 ;; 8329 8330 solaris*) 8331 no_undefined_flag=' -z text' 8332 if test "$GCC" = yes; then 8333 wlarc='${wl}' 8334 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8335 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8336 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8337 else 8338 wlarc='' 8339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8340 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8342 fi 8343 hardcode_libdir_flag_spec='-R$libdir' 8344 hardcode_shlibpath_var=no 8345 case $host_os in 8346 solaris2.[0-5] | solaris2.[0-5].*) ;; 8347 *) 8348 # The compiler driver will combine linker options so we 8349 # cannot just pass the convience library names through 8350 # without $wl, iff we do not link with $LD. 8351 # Luckily, gcc supports the same syntax we need for Sun Studio. 8352 # Supported since Solaris 2.6 (maybe 2.5.1?) 8353 case $wlarc in 8354 '') 8355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8356 *) 8357 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' ;; 8358 esac ;; 8359 esac 8360 link_all_deplibs=yes 8361 ;; 8362 8363 sunos4*) 8364 if test "x$host_vendor" = xsequent; then 8365 # Use $CC to link under sequent, because it throws in some extra .o 8366 # files that make .init and .fini sections work. 8367 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8368 else 8369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8370 fi 8371 hardcode_libdir_flag_spec='-L$libdir' 8372 hardcode_direct=yes 8373 hardcode_minus_L=yes 8374 hardcode_shlibpath_var=no 8375 ;; 8376 8377 sysv4) 8378 case $host_vendor in 8379 sni) 8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8381 hardcode_direct=yes # is this really true??? 8382 ;; 8383 siemens) 8384 ## LD is ld it makes a PLAMLIB 8385 ## CC just makes a GrossModule. 8386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8387 reload_cmds='$CC -r -o $output$reload_objs' 8388 hardcode_direct=no 8389 ;; 8390 motorola) 8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8393 ;; 8394 esac 8395 runpath_var='LD_RUN_PATH' 8396 hardcode_shlibpath_var=no 8397 ;; 8398 8399 sysv4.3*) 8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8401 hardcode_shlibpath_var=no 8402 export_dynamic_flag_spec='-Bexport' 8403 ;; 8404 8405 sysv4*MP*) 8406 if test -d /usr/nec; then 8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8408 hardcode_shlibpath_var=no 8409 runpath_var=LD_RUN_PATH 8410 hardcode_runpath_var=yes 8411 ld_shlibs=yes 8412 fi 8413 ;; 8414 8415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8416 no_undefined_flag='${wl}-z,text' 8417 archive_cmds_need_lc=no 8418 hardcode_shlibpath_var=no 8419 runpath_var='LD_RUN_PATH' 8420 8421 if test "$GCC" = yes; then 8422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8424 else 8425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8427 fi 8428 ;; 8429 8430 sysv5* | sco3.2v5* | sco5v6*) 8431 # Note: We can NOT use -z defs as we might desire, because we do not 8432 # link with -lc, and that would cause any symbols used from libc to 8433 # always be unresolved, which means just about no library would 8434 # ever link correctly. If we're not using GNU ld we use -z text 8435 # though, which does catch some bad symbols but isn't as heavy-handed 8436 # as -z defs. 8437 no_undefined_flag='${wl}-z,text' 8438 allow_undefined_flag='${wl}-z,nodefs' 8439 archive_cmds_need_lc=no 8440 hardcode_shlibpath_var=no 8441 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8442 hardcode_libdir_separator=':' 8443 link_all_deplibs=yes 8444 export_dynamic_flag_spec='${wl}-Bexport' 8445 runpath_var='LD_RUN_PATH' 8446 8447 if test "$GCC" = yes; then 8448 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8449 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8450 else 8451 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8452 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8453 fi 8454 ;; 8455 8456 uts4*) 8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8458 hardcode_libdir_flag_spec='-L$libdir' 8459 hardcode_shlibpath_var=no 8460 ;; 8461 8462 *) 8463 ld_shlibs=no 8464 ;; 8465 esac 8466 fi 8467 8468{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8469echo "${ECHO_T}$ld_shlibs" >&6; } 8470test "$ld_shlibs" = no && can_build_shared=no 8471 8472# 8473# Do we need to explicitly link libc? 8474# 8475case "x$archive_cmds_need_lc" in 8476x|xyes) 8477 # Assume -lc should be added 8478 archive_cmds_need_lc=yes 8479 8480 if test "$enable_shared" = yes && test "$GCC" = yes; then 8481 case $archive_cmds in 8482 *'~'*) 8483 # FIXME: we may have to deal with multi-command sequences. 8484 ;; 8485 '$CC '*) 8486 # Test whether the compiler implicitly links with -lc since on some 8487 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8488 # to ld, don't add -lc before -lgcc. 8489 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8490echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8491 $rm conftest* 8492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8493 8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8495 (eval $ac_compile) 2>&5 8496 ac_status=$? 8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8498 (exit $ac_status); } 2>conftest.err; then 8499 soname=conftest 8500 lib=conftest 8501 libobjs=conftest.$ac_objext 8502 deplibs= 8503 wl=$lt_prog_compiler_wl 8504 pic_flag=$lt_prog_compiler_pic 8505 compiler_flags=-v 8506 linker_flags=-v 8507 verstring= 8508 output_objdir=. 8509 libname=conftest 8510 lt_save_allow_undefined_flag=$allow_undefined_flag 8511 allow_undefined_flag= 8512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8513 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8514 ac_status=$? 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } 8517 then 8518 archive_cmds_need_lc=no 8519 else 8520 archive_cmds_need_lc=yes 8521 fi 8522 allow_undefined_flag=$lt_save_allow_undefined_flag 8523 else 8524 cat conftest.err 1>&5 8525 fi 8526 $rm conftest* 8527 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8528echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8529 ;; 8530 esac 8531 fi 8532 ;; 8533esac 8534 8535{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8536echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8537library_names_spec= 8538libname_spec='lib$name' 8539soname_spec= 8540shrext_cmds=".so" 8541postinstall_cmds= 8542postuninstall_cmds= 8543finish_cmds= 8544finish_eval= 8545shlibpath_var= 8546shlibpath_overrides_runpath=unknown 8547version_type=none 8548dynamic_linker="$host_os ld.so" 8549sys_lib_dlsearch_path_spec="/lib /usr/lib" 8550if test "$GCC" = yes; then 8551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8553 # if the path contains ";" then we assume it to be the separator 8554 # otherwise default to the standard path separator (i.e. ":") - it is 8555 # assumed that no part of a normal pathname contains ";" but that should 8556 # okay in the real world where ";" in dirpaths is itself problematic. 8557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8558 else 8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8560 fi 8561else 8562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8563fi 8564need_lib_prefix=unknown 8565hardcode_into_libs=no 8566 8567# when you set need_version to no, make sure it does not cause -set_version 8568# flags to be left without arguments 8569need_version=unknown 8570 8571case $host_os in 8572aix3*) 8573 version_type=linux 8574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8575 shlibpath_var=LIBPATH 8576 8577 # AIX 3 has no versioning support, so we append a major version to the name. 8578 soname_spec='${libname}${release}${shared_ext}$major' 8579 ;; 8580 8581aix4* | aix5*) 8582 version_type=linux 8583 need_lib_prefix=no 8584 need_version=no 8585 hardcode_into_libs=yes 8586 if test "$host_cpu" = ia64; then 8587 # AIX 5 supports IA64 8588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8589 shlibpath_var=LD_LIBRARY_PATH 8590 else 8591 # With GCC up to 2.95.x, collect2 would create an import file 8592 # for dependence libraries. The import file would start with 8593 # the line `#! .'. This would cause the generated library to 8594 # depend on `.', always an invalid library. This was fixed in 8595 # development snapshots of GCC prior to 3.0. 8596 case $host_os in 8597 aix4 | aix4.[01] | aix4.[01].*) 8598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8599 echo ' yes ' 8600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8601 : 8602 else 8603 can_build_shared=no 8604 fi 8605 ;; 8606 esac 8607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8608 # soname into executable. Probably we can add versioning support to 8609 # collect2, so additional links can be useful in future. 8610 if test "$aix_use_runtimelinking" = yes; then 8611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8612 # instead of lib<name>.a to let people know that these are not 8613 # typical AIX shared libraries. 8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8615 else 8616 # We preserve .a as extension for shared libraries through AIX4.2 8617 # and later when we are not doing run time linking. 8618 library_names_spec='${libname}${release}.a $libname.a' 8619 soname_spec='${libname}${release}${shared_ext}$major' 8620 fi 8621 shlibpath_var=LIBPATH 8622 fi 8623 ;; 8624 8625amigaos*) 8626 library_names_spec='$libname.ixlibrary $libname.a' 8627 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8628 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' 8629 ;; 8630 8631beos*) 8632 library_names_spec='${libname}${shared_ext}' 8633 dynamic_linker="$host_os ld.so" 8634 shlibpath_var=LIBRARY_PATH 8635 ;; 8636 8637bsdi[45]*) 8638 version_type=linux 8639 need_version=no 8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8641 soname_spec='${libname}${release}${shared_ext}$major' 8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8643 shlibpath_var=LD_LIBRARY_PATH 8644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8646 # the default ld.so.conf also contains /usr/contrib/lib and 8647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8648 # libtool to hard-code these into programs 8649 ;; 8650 8651cygwin* | mingw* | pw32*) 8652 version_type=windows 8653 shrext_cmds=".dll" 8654 need_version=no 8655 need_lib_prefix=no 8656 8657 case $GCC,$host_os in 8658 yes,cygwin* | yes,mingw* | yes,pw32*) 8659 library_names_spec='$libname.dll.a' 8660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8661 postinstall_cmds='base_file=`basename \${file}`~ 8662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8663 dldir=$destdir/`dirname \$dlpath`~ 8664 test -d \$dldir || mkdir -p \$dldir~ 8665 $install_prog $dir/$dlname \$dldir/$dlname~ 8666 chmod a+x \$dldir/$dlname' 8667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8668 dlpath=$dir/\$dldll~ 8669 $rm \$dlpath' 8670 shlibpath_overrides_runpath=yes 8671 8672 case $host_os in 8673 cygwin*) 8674 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8677 ;; 8678 mingw*) 8679 # MinGW DLLs use traditional 'lib' prefix 8680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8683 # It is most probably a Windows format PATH printed by 8684 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8685 # path with ; separators, and with drive letters. We can handle the 8686 # drive letters (cygwin fileutils understands them), so leave them, 8687 # especially as we might pass files found there to a mingw objdump, 8688 # which wouldn't understand a cygwinified path. Ahh. 8689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8690 else 8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8692 fi 8693 ;; 8694 pw32*) 8695 # pw32 DLLs use 'pw' prefix rather than 'lib' 8696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8697 ;; 8698 esac 8699 ;; 8700 8701 *) 8702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8703 ;; 8704 esac 8705 dynamic_linker='Win32 ld.exe' 8706 # FIXME: first we should search . and the directory the executable is in 8707 shlibpath_var=PATH 8708 ;; 8709 8710darwin* | rhapsody*) 8711 dynamic_linker="$host_os dyld" 8712 version_type=darwin 8713 need_lib_prefix=no 8714 need_version=no 8715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8716 soname_spec='${libname}${release}${major}$shared_ext' 8717 shlibpath_overrides_runpath=yes 8718 shlibpath_var=DYLD_LIBRARY_PATH 8719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8721 if test "$GCC" = yes; then 8722 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"` 8723 else 8724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8725 fi 8726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8727 ;; 8728 8729dgux*) 8730 version_type=linux 8731 need_lib_prefix=no 8732 need_version=no 8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8734 soname_spec='${libname}${release}${shared_ext}$major' 8735 shlibpath_var=LD_LIBRARY_PATH 8736 ;; 8737 8738freebsd1*) 8739 dynamic_linker=no 8740 ;; 8741 8742freebsd* | dragonfly*) 8743 # DragonFly does not have aout. When/if they implement a new 8744 # versioning mechanism, adjust this. 8745 if test -x /usr/bin/objformat; then 8746 objformat=`/usr/bin/objformat` 8747 else 8748 case $host_os in 8749 freebsd[123]*) objformat=aout ;; 8750 *) objformat=elf ;; 8751 esac 8752 fi 8753 version_type=freebsd-$objformat 8754 case $version_type in 8755 freebsd-elf*) 8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8757 need_version=no 8758 need_lib_prefix=no 8759 ;; 8760 freebsd-*) 8761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8762 need_version=yes 8763 ;; 8764 esac 8765 shlibpath_var=LD_LIBRARY_PATH 8766 case $host_os in 8767 freebsd2*) 8768 shlibpath_overrides_runpath=yes 8769 ;; 8770 freebsd3.[01]* | freebsdelf3.[01]*) 8771 shlibpath_overrides_runpath=yes 8772 hardcode_into_libs=yes 8773 ;; 8774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8776 shlibpath_overrides_runpath=no 8777 hardcode_into_libs=yes 8778 ;; 8779 freebsd*) # from 4.6 on 8780 shlibpath_overrides_runpath=yes 8781 hardcode_into_libs=yes 8782 ;; 8783 esac 8784 ;; 8785 8786gnu*) 8787 version_type=linux 8788 need_lib_prefix=no 8789 need_version=no 8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8791 soname_spec='${libname}${release}${shared_ext}$major' 8792 shlibpath_var=LD_LIBRARY_PATH 8793 hardcode_into_libs=yes 8794 ;; 8795 8796hpux9* | hpux10* | hpux11*) 8797 # Give a soname corresponding to the major version so that dld.sl refuses to 8798 # link against other versions. 8799 version_type=sunos 8800 need_lib_prefix=no 8801 need_version=no 8802 case $host_cpu in 8803 ia64*) 8804 shrext_cmds='.so' 8805 hardcode_into_libs=yes 8806 dynamic_linker="$host_os dld.so" 8807 shlibpath_var=LD_LIBRARY_PATH 8808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8810 soname_spec='${libname}${release}${shared_ext}$major' 8811 if test "X$HPUX_IA64_MODE" = X32; then 8812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8813 else 8814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8815 fi 8816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8817 ;; 8818 hppa*64*) 8819 shrext_cmds='.sl' 8820 hardcode_into_libs=yes 8821 dynamic_linker="$host_os dld.sl" 8822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8825 soname_spec='${libname}${release}${shared_ext}$major' 8826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8828 ;; 8829 *) 8830 shrext_cmds='.sl' 8831 dynamic_linker="$host_os dld.sl" 8832 shlibpath_var=SHLIB_PATH 8833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8835 soname_spec='${libname}${release}${shared_ext}$major' 8836 ;; 8837 esac 8838 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8839 postinstall_cmds='chmod 555 $lib' 8840 ;; 8841 8842interix3*) 8843 version_type=linux 8844 need_lib_prefix=no 8845 need_version=no 8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8847 soname_spec='${libname}${release}${shared_ext}$major' 8848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8849 shlibpath_var=LD_LIBRARY_PATH 8850 shlibpath_overrides_runpath=no 8851 hardcode_into_libs=yes 8852 ;; 8853 8854irix5* | irix6* | nonstopux*) 8855 case $host_os in 8856 nonstopux*) version_type=nonstopux ;; 8857 *) 8858 if test "$lt_cv_prog_gnu_ld" = yes; then 8859 version_type=linux 8860 else 8861 version_type=irix 8862 fi ;; 8863 esac 8864 need_lib_prefix=no 8865 need_version=no 8866 soname_spec='${libname}${release}${shared_ext}$major' 8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8868 case $host_os in 8869 irix5* | nonstopux*) 8870 libsuff= shlibsuff= 8871 ;; 8872 *) 8873 case $LD in # libtool.m4 will add one of these switches to LD 8874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8875 libsuff= shlibsuff= libmagic=32-bit;; 8876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8877 libsuff=32 shlibsuff=N32 libmagic=N32;; 8878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8879 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8880 *) libsuff= shlibsuff= libmagic=never-match;; 8881 esac 8882 ;; 8883 esac 8884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8885 shlibpath_overrides_runpath=no 8886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8888 hardcode_into_libs=yes 8889 ;; 8890 8891# No shared lib support for Linux oldld, aout, or coff. 8892linux*oldld* | linux*aout* | linux*coff*) 8893 dynamic_linker=no 8894 ;; 8895 8896# This must be Linux ELF. 8897linux* | k*bsd*-gnu) 8898 version_type=linux 8899 need_lib_prefix=no 8900 need_version=no 8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8902 soname_spec='${libname}${release}${shared_ext}$major' 8903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8904 shlibpath_var=LD_LIBRARY_PATH 8905 shlibpath_overrides_runpath=no 8906 # This implies no fast_install, which is unacceptable. 8907 # Some rework will be needed to allow for fast_install 8908 # before this can be enabled. 8909 hardcode_into_libs=yes 8910 8911 # Append ld.so.conf contents to the search path 8912 if test -f /etc/ld.so.conf; then 8913 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' ' '` 8914 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8915 fi 8916 8917 # We used to test for /lib/ld.so.1 and disable shared libraries on 8918 # powerpc, because MkLinux only supported shared libraries with the 8919 # GNU dynamic linker. Since this was broken with cross compilers, 8920 # most powerpc-linux boxes support dynamic linking these days and 8921 # people can always --disable-shared, the test was removed, and we 8922 # assume the GNU/Linux dynamic linker is in use. 8923 dynamic_linker='GNU/Linux ld.so' 8924 ;; 8925 8926netbsdelf*-gnu) 8927 version_type=linux 8928 need_lib_prefix=no 8929 need_version=no 8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8931 soname_spec='${libname}${release}${shared_ext}$major' 8932 shlibpath_var=LD_LIBRARY_PATH 8933 shlibpath_overrides_runpath=no 8934 hardcode_into_libs=yes 8935 dynamic_linker='NetBSD ld.elf_so' 8936 ;; 8937 8938netbsd*) 8939 version_type=sunos 8940 need_lib_prefix=no 8941 need_version=no 8942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8945 dynamic_linker='NetBSD (a.out) ld.so' 8946 else 8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 dynamic_linker='NetBSD ld.elf_so' 8950 fi 8951 shlibpath_var=LD_LIBRARY_PATH 8952 shlibpath_overrides_runpath=yes 8953 hardcode_into_libs=yes 8954 ;; 8955 8956newsos6) 8957 version_type=linux 8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8959 shlibpath_var=LD_LIBRARY_PATH 8960 shlibpath_overrides_runpath=yes 8961 ;; 8962 8963nto-qnx*) 8964 version_type=linux 8965 need_lib_prefix=no 8966 need_version=no 8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8968 soname_spec='${libname}${release}${shared_ext}$major' 8969 shlibpath_var=LD_LIBRARY_PATH 8970 shlibpath_overrides_runpath=yes 8971 ;; 8972 8973openbsd*) 8974 version_type=sunos 8975 sys_lib_dlsearch_path_spec="/usr/lib" 8976 need_lib_prefix=no 8977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8978 case $host_os in 8979 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8980 *) need_version=no ;; 8981 esac 8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8984 shlibpath_var=LD_LIBRARY_PATH 8985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8986 case $host_os in 8987 openbsd2.[89] | openbsd2.[89].*) 8988 shlibpath_overrides_runpath=no 8989 ;; 8990 *) 8991 shlibpath_overrides_runpath=yes 8992 ;; 8993 esac 8994 else 8995 shlibpath_overrides_runpath=yes 8996 fi 8997 ;; 8998 8999os2*) 9000 libname_spec='$name' 9001 shrext_cmds=".dll" 9002 need_lib_prefix=no 9003 library_names_spec='$libname${shared_ext} $libname.a' 9004 dynamic_linker='OS/2 ld.exe' 9005 shlibpath_var=LIBPATH 9006 ;; 9007 9008osf3* | osf4* | osf5*) 9009 version_type=osf 9010 need_lib_prefix=no 9011 need_version=no 9012 soname_spec='${libname}${release}${shared_ext}$major' 9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9014 shlibpath_var=LD_LIBRARY_PATH 9015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9017 ;; 9018 9019solaris*) 9020 version_type=linux 9021 need_lib_prefix=no 9022 need_version=no 9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9024 soname_spec='${libname}${release}${shared_ext}$major' 9025 shlibpath_var=LD_LIBRARY_PATH 9026 shlibpath_overrides_runpath=yes 9027 hardcode_into_libs=yes 9028 # ldd complains unless libraries are executable 9029 postinstall_cmds='chmod +x $lib' 9030 ;; 9031 9032sunos4*) 9033 version_type=sunos 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 shlibpath_overrides_runpath=yes 9038 if test "$with_gnu_ld" = yes; then 9039 need_lib_prefix=no 9040 fi 9041 need_version=yes 9042 ;; 9043 9044sysv4 | sysv4.3*) 9045 version_type=linux 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 soname_spec='${libname}${release}${shared_ext}$major' 9048 shlibpath_var=LD_LIBRARY_PATH 9049 case $host_vendor in 9050 sni) 9051 shlibpath_overrides_runpath=no 9052 need_lib_prefix=no 9053 export_dynamic_flag_spec='${wl}-Blargedynsym' 9054 runpath_var=LD_RUN_PATH 9055 ;; 9056 siemens) 9057 need_lib_prefix=no 9058 ;; 9059 motorola) 9060 need_lib_prefix=no 9061 need_version=no 9062 shlibpath_overrides_runpath=no 9063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9064 ;; 9065 esac 9066 ;; 9067 9068sysv4*MP*) 9069 if test -d /usr/nec ;then 9070 version_type=linux 9071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9072 soname_spec='$libname${shared_ext}.$major' 9073 shlibpath_var=LD_LIBRARY_PATH 9074 fi 9075 ;; 9076 9077sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9078 version_type=freebsd-elf 9079 need_lib_prefix=no 9080 need_version=no 9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9082 soname_spec='${libname}${release}${shared_ext}$major' 9083 shlibpath_var=LD_LIBRARY_PATH 9084 hardcode_into_libs=yes 9085 if test "$with_gnu_ld" = yes; then 9086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9087 shlibpath_overrides_runpath=no 9088 else 9089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9090 shlibpath_overrides_runpath=yes 9091 case $host_os in 9092 sco3.2v5*) 9093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9094 ;; 9095 esac 9096 fi 9097 sys_lib_dlsearch_path_spec='/usr/lib' 9098 ;; 9099 9100uts4*) 9101 version_type=linux 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9103 soname_spec='${libname}${release}${shared_ext}$major' 9104 shlibpath_var=LD_LIBRARY_PATH 9105 ;; 9106 9107*) 9108 dynamic_linker=no 9109 ;; 9110esac 9111{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9112echo "${ECHO_T}$dynamic_linker" >&6; } 9113test "$dynamic_linker" = no && can_build_shared=no 9114 9115variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9116if test "$GCC" = yes; then 9117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9118fi 9119 9120{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9121echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9122hardcode_action= 9123if test -n "$hardcode_libdir_flag_spec" || \ 9124 test -n "$runpath_var" || \ 9125 test "X$hardcode_automatic" = "Xyes" ; then 9126 9127 # We can hardcode non-existant directories. 9128 if test "$hardcode_direct" != no && 9129 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9130 # have to relink, otherwise we might link with an installed library 9131 # when we should be linking with a yet-to-be-installed one 9132 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9133 test "$hardcode_minus_L" != no; then 9134 # Linking always hardcodes the temporary library directory. 9135 hardcode_action=relink 9136 else 9137 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9138 hardcode_action=immediate 9139 fi 9140else 9141 # We cannot hardcode anything, or else we can only hardcode existing 9142 # directories. 9143 hardcode_action=unsupported 9144fi 9145{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9146echo "${ECHO_T}$hardcode_action" >&6; } 9147 9148if test "$hardcode_action" = relink; then 9149 # Fast installation is not supported 9150 enable_fast_install=no 9151elif test "$shlibpath_overrides_runpath" = yes || 9152 test "$enable_shared" = no; then 9153 # Fast installation is not necessary 9154 enable_fast_install=needless 9155fi 9156 9157striplib= 9158old_striplib= 9159{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9160echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9161if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9162 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9163 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9164 { echo "$as_me:$LINENO: result: yes" >&5 9165echo "${ECHO_T}yes" >&6; } 9166else 9167# FIXME - insert some real tests, host_os isn't really good enough 9168 case $host_os in 9169 darwin*) 9170 if test -n "$STRIP" ; then 9171 striplib="$STRIP -x" 9172 { echo "$as_me:$LINENO: result: yes" >&5 9173echo "${ECHO_T}yes" >&6; } 9174 else 9175 { echo "$as_me:$LINENO: result: no" >&5 9176echo "${ECHO_T}no" >&6; } 9177fi 9178 ;; 9179 *) 9180 { echo "$as_me:$LINENO: result: no" >&5 9181echo "${ECHO_T}no" >&6; } 9182 ;; 9183 esac 9184fi 9185 9186if test "x$enable_dlopen" != xyes; then 9187 enable_dlopen=unknown 9188 enable_dlopen_self=unknown 9189 enable_dlopen_self_static=unknown 9190else 9191 lt_cv_dlopen=no 9192 lt_cv_dlopen_libs= 9193 9194 case $host_os in 9195 beos*) 9196 lt_cv_dlopen="load_add_on" 9197 lt_cv_dlopen_libs= 9198 lt_cv_dlopen_self=yes 9199 ;; 9200 9201 mingw* | pw32*) 9202 lt_cv_dlopen="LoadLibrary" 9203 lt_cv_dlopen_libs= 9204 ;; 9205 9206 cygwin*) 9207 lt_cv_dlopen="dlopen" 9208 lt_cv_dlopen_libs= 9209 ;; 9210 9211 darwin*) 9212 # if libdl is installed we need to link against it 9213 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9214echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9215if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9216 echo $ECHO_N "(cached) $ECHO_C" >&6 9217else 9218 ac_check_lib_save_LIBS=$LIBS 9219LIBS="-ldl $LIBS" 9220cat >conftest.$ac_ext <<_ACEOF 9221/* confdefs.h. */ 9222_ACEOF 9223cat confdefs.h >>conftest.$ac_ext 9224cat >>conftest.$ac_ext <<_ACEOF 9225/* end confdefs.h. */ 9226 9227/* Override any GCC internal prototype to avoid an error. 9228 Use char because int might match the return type of a GCC 9229 builtin and then its argument prototype would still apply. */ 9230#ifdef __cplusplus 9231extern "C" 9232#endif 9233char dlopen (); 9234int 9235main () 9236{ 9237return dlopen (); 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242rm -f conftest.$ac_objext conftest$ac_exeext 9243if { (ac_try="$ac_link" 9244case "(($ac_try" in 9245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9246 *) ac_try_echo=$ac_try;; 9247esac 9248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9249 (eval "$ac_link") 2>conftest.er1 9250 ac_status=$? 9251 grep -v '^ *+' conftest.er1 >conftest.err 9252 rm -f conftest.er1 9253 cat conftest.err >&5 9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9255 (exit $ac_status); } && { 9256 test -z "$ac_c_werror_flag" || 9257 test ! -s conftest.err 9258 } && test -s conftest$ac_exeext && 9259 $as_test_x conftest$ac_exeext; then 9260 ac_cv_lib_dl_dlopen=yes 9261else 9262 echo "$as_me: failed program was:" >&5 9263sed 's/^/| /' conftest.$ac_ext >&5 9264 9265 ac_cv_lib_dl_dlopen=no 9266fi 9267 9268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9269 conftest$ac_exeext conftest.$ac_ext 9270LIBS=$ac_check_lib_save_LIBS 9271fi 9272{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9273echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9274if test $ac_cv_lib_dl_dlopen = yes; then 9275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9276else 9277 9278 lt_cv_dlopen="dyld" 9279 lt_cv_dlopen_libs= 9280 lt_cv_dlopen_self=yes 9281 9282fi 9283 9284 ;; 9285 9286 *) 9287 { echo "$as_me:$LINENO: checking for shl_load" >&5 9288echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9289if test "${ac_cv_func_shl_load+set}" = set; then 9290 echo $ECHO_N "(cached) $ECHO_C" >&6 9291else 9292 cat >conftest.$ac_ext <<_ACEOF 9293/* confdefs.h. */ 9294_ACEOF 9295cat confdefs.h >>conftest.$ac_ext 9296cat >>conftest.$ac_ext <<_ACEOF 9297/* end confdefs.h. */ 9298/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9299 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9300#define shl_load innocuous_shl_load 9301 9302/* System header to define __stub macros and hopefully few prototypes, 9303 which can conflict with char shl_load (); below. 9304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9305 <limits.h> exists even on freestanding compilers. */ 9306 9307#ifdef __STDC__ 9308# include <limits.h> 9309#else 9310# include <assert.h> 9311#endif 9312 9313#undef shl_load 9314 9315/* Override any GCC internal prototype to avoid an error. 9316 Use char because int might match the return type of a GCC 9317 builtin and then its argument prototype would still apply. */ 9318#ifdef __cplusplus 9319extern "C" 9320#endif 9321char shl_load (); 9322/* The GNU C library defines this for functions which it implements 9323 to always fail with ENOSYS. Some functions are actually named 9324 something starting with __ and the normal name is an alias. */ 9325#if defined __stub_shl_load || defined __stub___shl_load 9326choke me 9327#endif 9328 9329int 9330main () 9331{ 9332return shl_load (); 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337rm -f conftest.$ac_objext conftest$ac_exeext 9338if { (ac_try="$ac_link" 9339case "(($ac_try" in 9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9341 *) ac_try_echo=$ac_try;; 9342esac 9343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9344 (eval "$ac_link") 2>conftest.er1 9345 ac_status=$? 9346 grep -v '^ *+' conftest.er1 >conftest.err 9347 rm -f conftest.er1 9348 cat conftest.err >&5 9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9350 (exit $ac_status); } && { 9351 test -z "$ac_c_werror_flag" || 9352 test ! -s conftest.err 9353 } && test -s conftest$ac_exeext && 9354 $as_test_x conftest$ac_exeext; then 9355 ac_cv_func_shl_load=yes 9356else 9357 echo "$as_me: failed program was:" >&5 9358sed 's/^/| /' conftest.$ac_ext >&5 9359 9360 ac_cv_func_shl_load=no 9361fi 9362 9363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9364 conftest$ac_exeext conftest.$ac_ext 9365fi 9366{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9367echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9368if test $ac_cv_func_shl_load = yes; then 9369 lt_cv_dlopen="shl_load" 9370else 9371 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9372echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9373if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9374 echo $ECHO_N "(cached) $ECHO_C" >&6 9375else 9376 ac_check_lib_save_LIBS=$LIBS 9377LIBS="-ldld $LIBS" 9378cat >conftest.$ac_ext <<_ACEOF 9379/* confdefs.h. */ 9380_ACEOF 9381cat confdefs.h >>conftest.$ac_ext 9382cat >>conftest.$ac_ext <<_ACEOF 9383/* end confdefs.h. */ 9384 9385/* Override any GCC internal prototype to avoid an error. 9386 Use char because int might match the return type of a GCC 9387 builtin and then its argument prototype would still apply. */ 9388#ifdef __cplusplus 9389extern "C" 9390#endif 9391char shl_load (); 9392int 9393main () 9394{ 9395return shl_load (); 9396 ; 9397 return 0; 9398} 9399_ACEOF 9400rm -f conftest.$ac_objext conftest$ac_exeext 9401if { (ac_try="$ac_link" 9402case "(($ac_try" in 9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9404 *) ac_try_echo=$ac_try;; 9405esac 9406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9407 (eval "$ac_link") 2>conftest.er1 9408 ac_status=$? 9409 grep -v '^ *+' conftest.er1 >conftest.err 9410 rm -f conftest.er1 9411 cat conftest.err >&5 9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9413 (exit $ac_status); } && { 9414 test -z "$ac_c_werror_flag" || 9415 test ! -s conftest.err 9416 } && test -s conftest$ac_exeext && 9417 $as_test_x conftest$ac_exeext; then 9418 ac_cv_lib_dld_shl_load=yes 9419else 9420 echo "$as_me: failed program was:" >&5 9421sed 's/^/| /' conftest.$ac_ext >&5 9422 9423 ac_cv_lib_dld_shl_load=no 9424fi 9425 9426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9427 conftest$ac_exeext conftest.$ac_ext 9428LIBS=$ac_check_lib_save_LIBS 9429fi 9430{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9431echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9432if test $ac_cv_lib_dld_shl_load = yes; then 9433 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9434else 9435 { echo "$as_me:$LINENO: checking for dlopen" >&5 9436echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9437if test "${ac_cv_func_dlopen+set}" = set; then 9438 echo $ECHO_N "(cached) $ECHO_C" >&6 9439else 9440 cat >conftest.$ac_ext <<_ACEOF 9441/* confdefs.h. */ 9442_ACEOF 9443cat confdefs.h >>conftest.$ac_ext 9444cat >>conftest.$ac_ext <<_ACEOF 9445/* end confdefs.h. */ 9446/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9447 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9448#define dlopen innocuous_dlopen 9449 9450/* System header to define __stub macros and hopefully few prototypes, 9451 which can conflict with char dlopen (); below. 9452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9453 <limits.h> exists even on freestanding compilers. */ 9454 9455#ifdef __STDC__ 9456# include <limits.h> 9457#else 9458# include <assert.h> 9459#endif 9460 9461#undef dlopen 9462 9463/* Override any GCC internal prototype to avoid an error. 9464 Use char because int might match the return type of a GCC 9465 builtin and then its argument prototype would still apply. */ 9466#ifdef __cplusplus 9467extern "C" 9468#endif 9469char dlopen (); 9470/* The GNU C library defines this for functions which it implements 9471 to always fail with ENOSYS. Some functions are actually named 9472 something starting with __ and the normal name is an alias. */ 9473#if defined __stub_dlopen || defined __stub___dlopen 9474choke me 9475#endif 9476 9477int 9478main () 9479{ 9480return dlopen (); 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485rm -f conftest.$ac_objext conftest$ac_exeext 9486if { (ac_try="$ac_link" 9487case "(($ac_try" in 9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9489 *) ac_try_echo=$ac_try;; 9490esac 9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9492 (eval "$ac_link") 2>conftest.er1 9493 ac_status=$? 9494 grep -v '^ *+' conftest.er1 >conftest.err 9495 rm -f conftest.er1 9496 cat conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); } && { 9499 test -z "$ac_c_werror_flag" || 9500 test ! -s conftest.err 9501 } && test -s conftest$ac_exeext && 9502 $as_test_x conftest$ac_exeext; then 9503 ac_cv_func_dlopen=yes 9504else 9505 echo "$as_me: failed program was:" >&5 9506sed 's/^/| /' conftest.$ac_ext >&5 9507 9508 ac_cv_func_dlopen=no 9509fi 9510 9511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9512 conftest$ac_exeext conftest.$ac_ext 9513fi 9514{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9515echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9516if test $ac_cv_func_dlopen = yes; then 9517 lt_cv_dlopen="dlopen" 9518else 9519 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9520echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9521if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9522 echo $ECHO_N "(cached) $ECHO_C" >&6 9523else 9524 ac_check_lib_save_LIBS=$LIBS 9525LIBS="-ldl $LIBS" 9526cat >conftest.$ac_ext <<_ACEOF 9527/* confdefs.h. */ 9528_ACEOF 9529cat confdefs.h >>conftest.$ac_ext 9530cat >>conftest.$ac_ext <<_ACEOF 9531/* end confdefs.h. */ 9532 9533/* Override any GCC internal prototype to avoid an error. 9534 Use char because int might match the return type of a GCC 9535 builtin and then its argument prototype would still apply. */ 9536#ifdef __cplusplus 9537extern "C" 9538#endif 9539char dlopen (); 9540int 9541main () 9542{ 9543return dlopen (); 9544 ; 9545 return 0; 9546} 9547_ACEOF 9548rm -f conftest.$ac_objext conftest$ac_exeext 9549if { (ac_try="$ac_link" 9550case "(($ac_try" in 9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9552 *) ac_try_echo=$ac_try;; 9553esac 9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9555 (eval "$ac_link") 2>conftest.er1 9556 ac_status=$? 9557 grep -v '^ *+' conftest.er1 >conftest.err 9558 rm -f conftest.er1 9559 cat conftest.err >&5 9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9561 (exit $ac_status); } && { 9562 test -z "$ac_c_werror_flag" || 9563 test ! -s conftest.err 9564 } && test -s conftest$ac_exeext && 9565 $as_test_x conftest$ac_exeext; then 9566 ac_cv_lib_dl_dlopen=yes 9567else 9568 echo "$as_me: failed program was:" >&5 9569sed 's/^/| /' conftest.$ac_ext >&5 9570 9571 ac_cv_lib_dl_dlopen=no 9572fi 9573 9574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9575 conftest$ac_exeext conftest.$ac_ext 9576LIBS=$ac_check_lib_save_LIBS 9577fi 9578{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9579echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9580if test $ac_cv_lib_dl_dlopen = yes; then 9581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9582else 9583 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9584echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9585if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9586 echo $ECHO_N "(cached) $ECHO_C" >&6 9587else 9588 ac_check_lib_save_LIBS=$LIBS 9589LIBS="-lsvld $LIBS" 9590cat >conftest.$ac_ext <<_ACEOF 9591/* confdefs.h. */ 9592_ACEOF 9593cat confdefs.h >>conftest.$ac_ext 9594cat >>conftest.$ac_ext <<_ACEOF 9595/* end confdefs.h. */ 9596 9597/* Override any GCC internal prototype to avoid an error. 9598 Use char because int might match the return type of a GCC 9599 builtin and then its argument prototype would still apply. */ 9600#ifdef __cplusplus 9601extern "C" 9602#endif 9603char dlopen (); 9604int 9605main () 9606{ 9607return dlopen (); 9608 ; 9609 return 0; 9610} 9611_ACEOF 9612rm -f conftest.$ac_objext conftest$ac_exeext 9613if { (ac_try="$ac_link" 9614case "(($ac_try" in 9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9616 *) ac_try_echo=$ac_try;; 9617esac 9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9619 (eval "$ac_link") 2>conftest.er1 9620 ac_status=$? 9621 grep -v '^ *+' conftest.er1 >conftest.err 9622 rm -f conftest.er1 9623 cat conftest.err >&5 9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9625 (exit $ac_status); } && { 9626 test -z "$ac_c_werror_flag" || 9627 test ! -s conftest.err 9628 } && test -s conftest$ac_exeext && 9629 $as_test_x conftest$ac_exeext; then 9630 ac_cv_lib_svld_dlopen=yes 9631else 9632 echo "$as_me: failed program was:" >&5 9633sed 's/^/| /' conftest.$ac_ext >&5 9634 9635 ac_cv_lib_svld_dlopen=no 9636fi 9637 9638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9639 conftest$ac_exeext conftest.$ac_ext 9640LIBS=$ac_check_lib_save_LIBS 9641fi 9642{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9643echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9644if test $ac_cv_lib_svld_dlopen = yes; then 9645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9646else 9647 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9648echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9649if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9650 echo $ECHO_N "(cached) $ECHO_C" >&6 9651else 9652 ac_check_lib_save_LIBS=$LIBS 9653LIBS="-ldld $LIBS" 9654cat >conftest.$ac_ext <<_ACEOF 9655/* confdefs.h. */ 9656_ACEOF 9657cat confdefs.h >>conftest.$ac_ext 9658cat >>conftest.$ac_ext <<_ACEOF 9659/* end confdefs.h. */ 9660 9661/* Override any GCC internal prototype to avoid an error. 9662 Use char because int might match the return type of a GCC 9663 builtin and then its argument prototype would still apply. */ 9664#ifdef __cplusplus 9665extern "C" 9666#endif 9667char dld_link (); 9668int 9669main () 9670{ 9671return dld_link (); 9672 ; 9673 return 0; 9674} 9675_ACEOF 9676rm -f conftest.$ac_objext conftest$ac_exeext 9677if { (ac_try="$ac_link" 9678case "(($ac_try" in 9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9680 *) ac_try_echo=$ac_try;; 9681esac 9682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9683 (eval "$ac_link") 2>conftest.er1 9684 ac_status=$? 9685 grep -v '^ *+' conftest.er1 >conftest.err 9686 rm -f conftest.er1 9687 cat conftest.err >&5 9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9689 (exit $ac_status); } && { 9690 test -z "$ac_c_werror_flag" || 9691 test ! -s conftest.err 9692 } && test -s conftest$ac_exeext && 9693 $as_test_x conftest$ac_exeext; then 9694 ac_cv_lib_dld_dld_link=yes 9695else 9696 echo "$as_me: failed program was:" >&5 9697sed 's/^/| /' conftest.$ac_ext >&5 9698 9699 ac_cv_lib_dld_dld_link=no 9700fi 9701 9702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9703 conftest$ac_exeext conftest.$ac_ext 9704LIBS=$ac_check_lib_save_LIBS 9705fi 9706{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9707echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9708if test $ac_cv_lib_dld_dld_link = yes; then 9709 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9710fi 9711 9712 9713fi 9714 9715 9716fi 9717 9718 9719fi 9720 9721 9722fi 9723 9724 9725fi 9726 9727 ;; 9728 esac 9729 9730 if test "x$lt_cv_dlopen" != xno; then 9731 enable_dlopen=yes 9732 else 9733 enable_dlopen=no 9734 fi 9735 9736 case $lt_cv_dlopen in 9737 dlopen) 9738 save_CPPFLAGS="$CPPFLAGS" 9739 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9740 9741 save_LDFLAGS="$LDFLAGS" 9742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9743 9744 save_LIBS="$LIBS" 9745 LIBS="$lt_cv_dlopen_libs $LIBS" 9746 9747 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9748echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9749if test "${lt_cv_dlopen_self+set}" = set; then 9750 echo $ECHO_N "(cached) $ECHO_C" >&6 9751else 9752 if test "$cross_compiling" = yes; then : 9753 lt_cv_dlopen_self=cross 9754else 9755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9756 lt_status=$lt_dlunknown 9757 cat > conftest.$ac_ext <<EOF 9758#line 9758 "configure" 9759#include "confdefs.h" 9760 9761#if HAVE_DLFCN_H 9762#include <dlfcn.h> 9763#endif 9764 9765#include <stdio.h> 9766 9767#ifdef RTLD_GLOBAL 9768# define LT_DLGLOBAL RTLD_GLOBAL 9769#else 9770# ifdef DL_GLOBAL 9771# define LT_DLGLOBAL DL_GLOBAL 9772# else 9773# define LT_DLGLOBAL 0 9774# endif 9775#endif 9776 9777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9778 find out it does not work in some platform. */ 9779#ifndef LT_DLLAZY_OR_NOW 9780# ifdef RTLD_LAZY 9781# define LT_DLLAZY_OR_NOW RTLD_LAZY 9782# else 9783# ifdef DL_LAZY 9784# define LT_DLLAZY_OR_NOW DL_LAZY 9785# else 9786# ifdef RTLD_NOW 9787# define LT_DLLAZY_OR_NOW RTLD_NOW 9788# else 9789# ifdef DL_NOW 9790# define LT_DLLAZY_OR_NOW DL_NOW 9791# else 9792# define LT_DLLAZY_OR_NOW 0 9793# endif 9794# endif 9795# endif 9796# endif 9797#endif 9798 9799#ifdef __cplusplus 9800extern "C" void exit (int); 9801#endif 9802 9803void fnord() { int i=42;} 9804int main () 9805{ 9806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9807 int status = $lt_dlunknown; 9808 9809 if (self) 9810 { 9811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9813 /* dlclose (self); */ 9814 } 9815 else 9816 puts (dlerror ()); 9817 9818 exit (status); 9819} 9820EOF 9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9822 (eval $ac_link) 2>&5 9823 ac_status=$? 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9826 (./conftest; exit; ) >&5 2>/dev/null 9827 lt_status=$? 9828 case x$lt_status in 9829 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9830 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9831 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9832 esac 9833 else : 9834 # compilation failed 9835 lt_cv_dlopen_self=no 9836 fi 9837fi 9838rm -fr conftest* 9839 9840 9841fi 9842{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9843echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9844 9845 if test "x$lt_cv_dlopen_self" = xyes; then 9846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9847 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9848echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9849if test "${lt_cv_dlopen_self_static+set}" = set; then 9850 echo $ECHO_N "(cached) $ECHO_C" >&6 9851else 9852 if test "$cross_compiling" = yes; then : 9853 lt_cv_dlopen_self_static=cross 9854else 9855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9856 lt_status=$lt_dlunknown 9857 cat > conftest.$ac_ext <<EOF 9858#line 9858 "configure" 9859#include "confdefs.h" 9860 9861#if HAVE_DLFCN_H 9862#include <dlfcn.h> 9863#endif 9864 9865#include <stdio.h> 9866 9867#ifdef RTLD_GLOBAL 9868# define LT_DLGLOBAL RTLD_GLOBAL 9869#else 9870# ifdef DL_GLOBAL 9871# define LT_DLGLOBAL DL_GLOBAL 9872# else 9873# define LT_DLGLOBAL 0 9874# endif 9875#endif 9876 9877/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9878 find out it does not work in some platform. */ 9879#ifndef LT_DLLAZY_OR_NOW 9880# ifdef RTLD_LAZY 9881# define LT_DLLAZY_OR_NOW RTLD_LAZY 9882# else 9883# ifdef DL_LAZY 9884# define LT_DLLAZY_OR_NOW DL_LAZY 9885# else 9886# ifdef RTLD_NOW 9887# define LT_DLLAZY_OR_NOW RTLD_NOW 9888# else 9889# ifdef DL_NOW 9890# define LT_DLLAZY_OR_NOW DL_NOW 9891# else 9892# define LT_DLLAZY_OR_NOW 0 9893# endif 9894# endif 9895# endif 9896# endif 9897#endif 9898 9899#ifdef __cplusplus 9900extern "C" void exit (int); 9901#endif 9902 9903void fnord() { int i=42;} 9904int main () 9905{ 9906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9907 int status = $lt_dlunknown; 9908 9909 if (self) 9910 { 9911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9913 /* dlclose (self); */ 9914 } 9915 else 9916 puts (dlerror ()); 9917 9918 exit (status); 9919} 9920EOF 9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9922 (eval $ac_link) 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9926 (./conftest; exit; ) >&5 2>/dev/null 9927 lt_status=$? 9928 case x$lt_status in 9929 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9930 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9931 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9932 esac 9933 else : 9934 # compilation failed 9935 lt_cv_dlopen_self_static=no 9936 fi 9937fi 9938rm -fr conftest* 9939 9940 9941fi 9942{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9943echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9944 fi 9945 9946 CPPFLAGS="$save_CPPFLAGS" 9947 LDFLAGS="$save_LDFLAGS" 9948 LIBS="$save_LIBS" 9949 ;; 9950 esac 9951 9952 case $lt_cv_dlopen_self in 9953 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9954 *) enable_dlopen_self=unknown ;; 9955 esac 9956 9957 case $lt_cv_dlopen_self_static in 9958 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9959 *) enable_dlopen_self_static=unknown ;; 9960 esac 9961fi 9962 9963 9964# Report which library types will actually be built 9965{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9966echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9967{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9968echo "${ECHO_T}$can_build_shared" >&6; } 9969 9970{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9971echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9972test "$can_build_shared" = "no" && enable_shared=no 9973 9974# On AIX, shared libraries and static libraries use the same namespace, and 9975# are all built from PIC. 9976case $host_os in 9977aix3*) 9978 test "$enable_shared" = yes && enable_static=no 9979 if test -n "$RANLIB"; then 9980 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9981 postinstall_cmds='$RANLIB $lib' 9982 fi 9983 ;; 9984 9985aix4* | aix5*) 9986 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9987 test "$enable_shared" = yes && enable_static=no 9988 fi 9989 ;; 9990esac 9991{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9992echo "${ECHO_T}$enable_shared" >&6; } 9993 9994{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9995echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9996# Make sure either enable_shared or enable_static is yes. 9997test "$enable_shared" = yes || enable_static=yes 9998{ echo "$as_me:$LINENO: result: $enable_static" >&5 9999echo "${ECHO_T}$enable_static" >&6; } 10000 10001# The else clause should only fire when bootstrapping the 10002# libtool distribution, otherwise you forgot to ship ltmain.sh 10003# with your package, and you will get complaints that there are 10004# no rules to generate ltmain.sh. 10005if test -f "$ltmain"; then 10006 # See if we are running on zsh, and set the options which allow our commands through 10007 # without removal of \ escapes. 10008 if test -n "${ZSH_VERSION+set}" ; then 10009 setopt NO_GLOB_SUBST 10010 fi 10011 # Now quote all the things that may contain metacharacters while being 10012 # careful not to overquote the AC_SUBSTed values. We take copies of the 10013 # variables and quote the copies for generation of the libtool script. 10014 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10015 SED SHELL STRIP \ 10016 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10017 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10018 deplibs_check_method reload_flag reload_cmds need_locks \ 10019 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10020 lt_cv_sys_global_symbol_to_c_name_address \ 10021 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10022 old_postinstall_cmds old_postuninstall_cmds \ 10023 compiler \ 10024 CC \ 10025 LD \ 10026 lt_prog_compiler_wl \ 10027 lt_prog_compiler_pic \ 10028 lt_prog_compiler_static \ 10029 lt_prog_compiler_no_builtin_flag \ 10030 export_dynamic_flag_spec \ 10031 thread_safe_flag_spec \ 10032 whole_archive_flag_spec \ 10033 enable_shared_with_static_runtimes \ 10034 old_archive_cmds \ 10035 old_archive_from_new_cmds \ 10036 predep_objects \ 10037 postdep_objects \ 10038 predeps \ 10039 postdeps \ 10040 compiler_lib_search_path \ 10041 archive_cmds \ 10042 archive_expsym_cmds \ 10043 postinstall_cmds \ 10044 postuninstall_cmds \ 10045 old_archive_from_expsyms_cmds \ 10046 allow_undefined_flag \ 10047 no_undefined_flag \ 10048 export_symbols_cmds \ 10049 hardcode_libdir_flag_spec \ 10050 hardcode_libdir_flag_spec_ld \ 10051 hardcode_libdir_separator \ 10052 hardcode_automatic \ 10053 module_cmds \ 10054 module_expsym_cmds \ 10055 lt_cv_prog_compiler_c_o \ 10056 exclude_expsyms \ 10057 include_expsyms; do 10058 10059 case $var in 10060 old_archive_cmds | \ 10061 old_archive_from_new_cmds | \ 10062 archive_cmds | \ 10063 archive_expsym_cmds | \ 10064 module_cmds | \ 10065 module_expsym_cmds | \ 10066 old_archive_from_expsyms_cmds | \ 10067 export_symbols_cmds | \ 10068 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10069 postinstall_cmds | postuninstall_cmds | \ 10070 old_postinstall_cmds | old_postuninstall_cmds | \ 10071 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10072 # Double-quote double-evaled strings. 10073 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10074 ;; 10075 *) 10076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10077 ;; 10078 esac 10079 done 10080 10081 case $lt_echo in 10082 *'\$0 --fallback-echo"') 10083 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10084 ;; 10085 esac 10086 10087cfgfile="${ofile}T" 10088 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10089 $rm -f "$cfgfile" 10090 { echo "$as_me:$LINENO: creating $ofile" >&5 10091echo "$as_me: creating $ofile" >&6;} 10092 10093 cat <<__EOF__ >> "$cfgfile" 10094#! $SHELL 10095 10096# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10097# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10098# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10099# 10100# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10101# Free Software Foundation, Inc. 10102# 10103# This file is part of GNU Libtool: 10104# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10105# 10106# This program is free software; you can redistribute it and/or modify 10107# it under the terms of the GNU General Public License as published by 10108# the Free Software Foundation; either version 2 of the License, or 10109# (at your option) any later version. 10110# 10111# This program is distributed in the hope that it will be useful, but 10112# WITHOUT ANY WARRANTY; without even the implied warranty of 10113# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10114# General Public License for more details. 10115# 10116# You should have received a copy of the GNU General Public License 10117# along with this program; if not, write to the Free Software 10118# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10119# 10120# As a special exception to the GNU General Public License, if you 10121# distribute this file as part of a program that contains a 10122# configuration script generated by Autoconf, you may include it under 10123# the same distribution terms that you use for the rest of that program. 10124 10125# A sed program that does not truncate output. 10126SED=$lt_SED 10127 10128# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10129Xsed="$SED -e 1s/^X//" 10130 10131# The HP-UX ksh and POSIX shell print the target directory to stdout 10132# if CDPATH is set. 10133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10134 10135# The names of the tagged configurations supported by this script. 10136available_tags= 10137 10138# ### BEGIN LIBTOOL CONFIG 10139 10140# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10141 10142# Shell to use when invoking shell scripts. 10143SHELL=$lt_SHELL 10144 10145# Whether or not to build shared libraries. 10146build_libtool_libs=$enable_shared 10147 10148# Whether or not to build static libraries. 10149build_old_libs=$enable_static 10150 10151# Whether or not to add -lc for building shared libraries. 10152build_libtool_need_lc=$archive_cmds_need_lc 10153 10154# Whether or not to disallow shared libs when runtime libs are static 10155allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10156 10157# Whether or not to optimize for fast installation. 10158fast_install=$enable_fast_install 10159 10160# The host system. 10161host_alias=$host_alias 10162host=$host 10163host_os=$host_os 10164 10165# The build system. 10166build_alias=$build_alias 10167build=$build 10168build_os=$build_os 10169 10170# An echo program that does not interpret backslashes. 10171echo=$lt_echo 10172 10173# The archiver. 10174AR=$lt_AR 10175AR_FLAGS=$lt_AR_FLAGS 10176 10177# A C compiler. 10178LTCC=$lt_LTCC 10179 10180# LTCC compiler flags. 10181LTCFLAGS=$lt_LTCFLAGS 10182 10183# A language-specific compiler. 10184CC=$lt_compiler 10185 10186# Is the compiler the GNU C compiler? 10187with_gcc=$GCC 10188 10189# An ERE matcher. 10190EGREP=$lt_EGREP 10191 10192# The linker used to build libraries. 10193LD=$lt_LD 10194 10195# Whether we need hard or soft links. 10196LN_S=$lt_LN_S 10197 10198# A BSD-compatible nm program. 10199NM=$lt_NM 10200 10201# A symbol stripping program 10202STRIP=$lt_STRIP 10203 10204# Used to examine libraries when file_magic_cmd begins "file" 10205MAGIC_CMD=$MAGIC_CMD 10206 10207# Used on cygwin: DLL creation program. 10208DLLTOOL="$DLLTOOL" 10209 10210# Used on cygwin: object dumper. 10211OBJDUMP="$OBJDUMP" 10212 10213# Used on cygwin: assembler. 10214AS="$AS" 10215 10216# The name of the directory that contains temporary libtool files. 10217objdir=$objdir 10218 10219# How to create reloadable object files. 10220reload_flag=$lt_reload_flag 10221reload_cmds=$lt_reload_cmds 10222 10223# How to pass a linker flag through the compiler. 10224wl=$lt_lt_prog_compiler_wl 10225 10226# Object file suffix (normally "o"). 10227objext="$ac_objext" 10228 10229# Old archive suffix (normally "a"). 10230libext="$libext" 10231 10232# Shared library suffix (normally ".so"). 10233shrext_cmds='$shrext_cmds' 10234 10235# Executable file suffix (normally ""). 10236exeext="$exeext" 10237 10238# Additional compiler flags for building library objects. 10239pic_flag=$lt_lt_prog_compiler_pic 10240pic_mode=$pic_mode 10241 10242# What is the maximum length of a command? 10243max_cmd_len=$lt_cv_sys_max_cmd_len 10244 10245# Does compiler simultaneously support -c and -o options? 10246compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10247 10248# Must we lock files when doing compilation? 10249need_locks=$lt_need_locks 10250 10251# Do we need the lib prefix for modules? 10252need_lib_prefix=$need_lib_prefix 10253 10254# Do we need a version for libraries? 10255need_version=$need_version 10256 10257# Whether dlopen is supported. 10258dlopen_support=$enable_dlopen 10259 10260# Whether dlopen of programs is supported. 10261dlopen_self=$enable_dlopen_self 10262 10263# Whether dlopen of statically linked programs is supported. 10264dlopen_self_static=$enable_dlopen_self_static 10265 10266# Compiler flag to prevent dynamic linking. 10267link_static_flag=$lt_lt_prog_compiler_static 10268 10269# Compiler flag to turn off builtin functions. 10270no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10271 10272# Compiler flag to allow reflexive dlopens. 10273export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10274 10275# Compiler flag to generate shared objects directly from archives. 10276whole_archive_flag_spec=$lt_whole_archive_flag_spec 10277 10278# Compiler flag to generate thread-safe objects. 10279thread_safe_flag_spec=$lt_thread_safe_flag_spec 10280 10281# Library versioning type. 10282version_type=$version_type 10283 10284# Format of library name prefix. 10285libname_spec=$lt_libname_spec 10286 10287# List of archive names. First name is the real one, the rest are links. 10288# The last name is the one that the linker finds with -lNAME. 10289library_names_spec=$lt_library_names_spec 10290 10291# The coded name of the library, if different from the real name. 10292soname_spec=$lt_soname_spec 10293 10294# Commands used to build and install an old-style archive. 10295RANLIB=$lt_RANLIB 10296old_archive_cmds=$lt_old_archive_cmds 10297old_postinstall_cmds=$lt_old_postinstall_cmds 10298old_postuninstall_cmds=$lt_old_postuninstall_cmds 10299 10300# Create an old-style archive from a shared archive. 10301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10302 10303# Create a temporary old-style archive to link instead of a shared archive. 10304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10305 10306# Commands used to build and install a shared archive. 10307archive_cmds=$lt_archive_cmds 10308archive_expsym_cmds=$lt_archive_expsym_cmds 10309postinstall_cmds=$lt_postinstall_cmds 10310postuninstall_cmds=$lt_postuninstall_cmds 10311 10312# Commands used to build a loadable module (assumed same as above if empty) 10313module_cmds=$lt_module_cmds 10314module_expsym_cmds=$lt_module_expsym_cmds 10315 10316# Commands to strip libraries. 10317old_striplib=$lt_old_striplib 10318striplib=$lt_striplib 10319 10320# Dependencies to place before the objects being linked to create a 10321# shared library. 10322predep_objects=$lt_predep_objects 10323 10324# Dependencies to place after the objects being linked to create a 10325# shared library. 10326postdep_objects=$lt_postdep_objects 10327 10328# Dependencies to place before the objects being linked to create a 10329# shared library. 10330predeps=$lt_predeps 10331 10332# Dependencies to place after the objects being linked to create a 10333# shared library. 10334postdeps=$lt_postdeps 10335 10336# The library search path used internally by the compiler when linking 10337# a shared library. 10338compiler_lib_search_path=$lt_compiler_lib_search_path 10339 10340# Method to check whether dependent libraries are shared objects. 10341deplibs_check_method=$lt_deplibs_check_method 10342 10343# Command to use when deplibs_check_method == file_magic. 10344file_magic_cmd=$lt_file_magic_cmd 10345 10346# Flag that allows shared libraries with undefined symbols to be built. 10347allow_undefined_flag=$lt_allow_undefined_flag 10348 10349# Flag that forces no undefined symbols. 10350no_undefined_flag=$lt_no_undefined_flag 10351 10352# Commands used to finish a libtool library installation in a directory. 10353finish_cmds=$lt_finish_cmds 10354 10355# Same as above, but a single script fragment to be evaled but not shown. 10356finish_eval=$lt_finish_eval 10357 10358# Take the output of nm and produce a listing of raw symbols and C names. 10359global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10360 10361# Transform the output of nm in a proper C declaration 10362global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10363 10364# Transform the output of nm in a C name address pair 10365global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10366 10367# This is the shared library runtime path variable. 10368runpath_var=$runpath_var 10369 10370# This is the shared library path variable. 10371shlibpath_var=$shlibpath_var 10372 10373# Is shlibpath searched before the hard-coded library search path? 10374shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10375 10376# How to hardcode a shared library path into an executable. 10377hardcode_action=$hardcode_action 10378 10379# Whether we should hardcode library paths into libraries. 10380hardcode_into_libs=$hardcode_into_libs 10381 10382# Flag to hardcode \$libdir into a binary during linking. 10383# This must work even if \$libdir does not exist. 10384hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10385 10386# If ld is used when linking, flag to hardcode \$libdir into 10387# a binary during linking. This must work even if \$libdir does 10388# not exist. 10389hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10390 10391# Whether we need a single -rpath flag with a separated argument. 10392hardcode_libdir_separator=$lt_hardcode_libdir_separator 10393 10394# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10395# resulting binary. 10396hardcode_direct=$hardcode_direct 10397 10398# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10399# resulting binary. 10400hardcode_minus_L=$hardcode_minus_L 10401 10402# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10403# the resulting binary. 10404hardcode_shlibpath_var=$hardcode_shlibpath_var 10405 10406# Set to yes if building a shared library automatically hardcodes DIR into the library 10407# and all subsequent libraries and executables linked against it. 10408hardcode_automatic=$hardcode_automatic 10409 10410# Variables whose values should be saved in libtool wrapper scripts and 10411# restored at relink time. 10412variables_saved_for_relink="$variables_saved_for_relink" 10413 10414# Whether libtool must link a program against all its dependency libraries. 10415link_all_deplibs=$link_all_deplibs 10416 10417# Compile-time system search path for libraries 10418sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10419 10420# Run-time system search path for libraries 10421sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10422 10423# Fix the shell variable \$srcfile for the compiler. 10424fix_srcfile_path="$fix_srcfile_path" 10425 10426# Set to yes if exported symbols are required. 10427always_export_symbols=$always_export_symbols 10428 10429# The commands to list exported symbols. 10430export_symbols_cmds=$lt_export_symbols_cmds 10431 10432# The commands to extract the exported symbol list from a shared archive. 10433extract_expsyms_cmds=$lt_extract_expsyms_cmds 10434 10435# Symbols that should not be listed in the preloaded symbols. 10436exclude_expsyms=$lt_exclude_expsyms 10437 10438# Symbols that must always be exported. 10439include_expsyms=$lt_include_expsyms 10440 10441# ### END LIBTOOL CONFIG 10442 10443__EOF__ 10444 10445 10446 case $host_os in 10447 aix3*) 10448 cat <<\EOF >> "$cfgfile" 10449 10450# AIX sometimes has problems with the GCC collect2 program. For some 10451# reason, if we set the COLLECT_NAMES environment variable, the problems 10452# vanish in a puff of smoke. 10453if test "X${COLLECT_NAMES+set}" != Xset; then 10454 COLLECT_NAMES= 10455 export COLLECT_NAMES 10456fi 10457EOF 10458 ;; 10459 esac 10460 10461 # We use sed instead of cat because bash on DJGPP gets confused if 10462 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10463 # text mode, it properly converts lines to CR/LF. This bash problem 10464 # is reportedly fixed, but why not run on old versions too? 10465 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10466 10467 mv -f "$cfgfile" "$ofile" || \ 10468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10469 chmod +x "$ofile" 10470 10471else 10472 # If there is no Makefile yet, we rely on a make rule to execute 10473 # `config.status --recheck' to rerun these tests and create the 10474 # libtool script then. 10475 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10476 if test -f "$ltmain_in"; then 10477 test -f Makefile && make "$ltmain" 10478 fi 10479fi 10480 10481 10482ac_ext=c 10483ac_cpp='$CPP $CPPFLAGS' 10484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10486ac_compiler_gnu=$ac_cv_c_compiler_gnu 10487 10488CC="$lt_save_CC" 10489 10490 10491# Check whether --with-tags was given. 10492if test "${with_tags+set}" = set; then 10493 withval=$with_tags; tagnames="$withval" 10494fi 10495 10496 10497if test -f "$ltmain" && test -n "$tagnames"; then 10498 if test ! -f "${ofile}"; then 10499 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10500echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10501 fi 10502 10503 if test -z "$LTCC"; then 10504 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10505 if test -z "$LTCC"; then 10506 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10507echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10508 else 10509 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10510echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10511 fi 10512 fi 10513 if test -z "$LTCFLAGS"; then 10514 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10515 fi 10516 10517 # Extract list of available tagged configurations in $ofile. 10518 # Note that this assumes the entire list is on one line. 10519 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10520 10521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10522 for tagname in $tagnames; do 10523 IFS="$lt_save_ifs" 10524 # Check whether tagname contains only valid characters 10525 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10526 "") ;; 10527 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10528echo "$as_me: error: invalid tag name: $tagname" >&2;} 10529 { (exit 1); exit 1; }; } 10530 ;; 10531 esac 10532 10533 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10534 then 10535 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10536echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10537 { (exit 1); exit 1; }; } 10538 fi 10539 10540 # Update the list of available tags. 10541 if test -n "$tagname"; then 10542 echo appending configuration tag \"$tagname\" to $ofile 10543 10544 case $tagname in 10545 CXX) 10546 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10547 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10548 (test "X$CXX" != "Xg++"))) ; then 10549 ac_ext=cpp 10550ac_cpp='$CXXCPP $CPPFLAGS' 10551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10554 10555 10556 10557 10558archive_cmds_need_lc_CXX=no 10559allow_undefined_flag_CXX= 10560always_export_symbols_CXX=no 10561archive_expsym_cmds_CXX= 10562export_dynamic_flag_spec_CXX= 10563hardcode_direct_CXX=no 10564hardcode_libdir_flag_spec_CXX= 10565hardcode_libdir_flag_spec_ld_CXX= 10566hardcode_libdir_separator_CXX= 10567hardcode_minus_L_CXX=no 10568hardcode_shlibpath_var_CXX=unsupported 10569hardcode_automatic_CXX=no 10570module_cmds_CXX= 10571module_expsym_cmds_CXX= 10572link_all_deplibs_CXX=unknown 10573old_archive_cmds_CXX=$old_archive_cmds 10574no_undefined_flag_CXX= 10575whole_archive_flag_spec_CXX= 10576enable_shared_with_static_runtimes_CXX=no 10577 10578# Dependencies to place before and after the object being linked: 10579predep_objects_CXX= 10580postdep_objects_CXX= 10581predeps_CXX= 10582postdeps_CXX= 10583compiler_lib_search_path_CXX= 10584 10585# Source file extension for C++ test sources. 10586ac_ext=cpp 10587 10588# Object file extension for compiled C++ test sources. 10589objext=o 10590objext_CXX=$objext 10591 10592# Code to be used in simple compile tests 10593lt_simple_compile_test_code="int some_variable = 0;\n" 10594 10595# Code to be used in simple link tests 10596lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10597 10598# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10599 10600# If no C compiler was specified, use CC. 10601LTCC=${LTCC-"$CC"} 10602 10603# If no C compiler flags were specified, use CFLAGS. 10604LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10605 10606# Allow CC to be a program name with arguments. 10607compiler=$CC 10608 10609 10610# save warnings/boilerplate of simple test code 10611ac_outfile=conftest.$ac_objext 10612printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10613eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10614_lt_compiler_boilerplate=`cat conftest.err` 10615$rm conftest* 10616 10617ac_outfile=conftest.$ac_objext 10618printf "$lt_simple_link_test_code" >conftest.$ac_ext 10619eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10620_lt_linker_boilerplate=`cat conftest.err` 10621$rm conftest* 10622 10623 10624# Allow CC to be a program name with arguments. 10625lt_save_CC=$CC 10626lt_save_LD=$LD 10627lt_save_GCC=$GCC 10628GCC=$GXX 10629lt_save_with_gnu_ld=$with_gnu_ld 10630lt_save_path_LD=$lt_cv_path_LD 10631if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10632 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10633else 10634 $as_unset lt_cv_prog_gnu_ld 10635fi 10636if test -n "${lt_cv_path_LDCXX+set}"; then 10637 lt_cv_path_LD=$lt_cv_path_LDCXX 10638else 10639 $as_unset lt_cv_path_LD 10640fi 10641test -z "${LDCXX+set}" || LD=$LDCXX 10642CC=${CXX-"c++"} 10643compiler=$CC 10644compiler_CXX=$CC 10645for cc_temp in $compiler""; do 10646 case $cc_temp in 10647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10649 \-*) ;; 10650 *) break;; 10651 esac 10652done 10653cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10654 10655 10656# We don't want -fno-exception wen compiling C++ code, so set the 10657# no_builtin_flag separately 10658if test "$GXX" = yes; then 10659 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10660else 10661 lt_prog_compiler_no_builtin_flag_CXX= 10662fi 10663 10664if test "$GXX" = yes; then 10665 # Set up default GNU C++ configuration 10666 10667 10668# Check whether --with-gnu-ld was given. 10669if test "${with_gnu_ld+set}" = set; then 10670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10671else 10672 with_gnu_ld=no 10673fi 10674 10675ac_prog=ld 10676if test "$GCC" = yes; then 10677 # Check if gcc -print-prog-name=ld gives a path. 10678 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10679echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10680 case $host in 10681 *-*-mingw*) 10682 # gcc leaves a trailing carriage return which upsets mingw 10683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10684 *) 10685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10686 esac 10687 case $ac_prog in 10688 # Accept absolute paths. 10689 [\\/]* | ?:[\\/]*) 10690 re_direlt='/[^/][^/]*/\.\./' 10691 # Canonicalize the pathname of ld 10692 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10694 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10695 done 10696 test -z "$LD" && LD="$ac_prog" 10697 ;; 10698 "") 10699 # If it fails, then pretend we aren't using GCC. 10700 ac_prog=ld 10701 ;; 10702 *) 10703 # If it is relative, then search for the first ld in PATH. 10704 with_gnu_ld=unknown 10705 ;; 10706 esac 10707elif test "$with_gnu_ld" = yes; then 10708 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10709echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10710else 10711 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10712echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10713fi 10714if test "${lt_cv_path_LD+set}" = set; then 10715 echo $ECHO_N "(cached) $ECHO_C" >&6 10716else 10717 if test -z "$LD"; then 10718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10719 for ac_dir in $PATH; do 10720 IFS="$lt_save_ifs" 10721 test -z "$ac_dir" && ac_dir=. 10722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10723 lt_cv_path_LD="$ac_dir/$ac_prog" 10724 # Check to see if the program is GNU ld. I'd rather use --version, 10725 # but apparently some variants of GNU ld only accept -v. 10726 # Break only if it was the GNU/non-GNU ld that we prefer. 10727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10728 *GNU* | *'with BFD'*) 10729 test "$with_gnu_ld" != no && break 10730 ;; 10731 *) 10732 test "$with_gnu_ld" != yes && break 10733 ;; 10734 esac 10735 fi 10736 done 10737 IFS="$lt_save_ifs" 10738else 10739 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10740fi 10741fi 10742 10743LD="$lt_cv_path_LD" 10744if test -n "$LD"; then 10745 { echo "$as_me:$LINENO: result: $LD" >&5 10746echo "${ECHO_T}$LD" >&6; } 10747else 10748 { echo "$as_me:$LINENO: result: no" >&5 10749echo "${ECHO_T}no" >&6; } 10750fi 10751test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10752echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10753 { (exit 1); exit 1; }; } 10754{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10755echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10756if test "${lt_cv_prog_gnu_ld+set}" = set; then 10757 echo $ECHO_N "(cached) $ECHO_C" >&6 10758else 10759 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10760case `$LD -v 2>&1 </dev/null` in 10761*GNU* | *'with BFD'*) 10762 lt_cv_prog_gnu_ld=yes 10763 ;; 10764*) 10765 lt_cv_prog_gnu_ld=no 10766 ;; 10767esac 10768fi 10769{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10770echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10771with_gnu_ld=$lt_cv_prog_gnu_ld 10772 10773 10774 10775 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10776 # archiving commands below assume that GNU ld is being used. 10777 if test "$with_gnu_ld" = yes; then 10778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10779 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' 10780 10781 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10783 10784 # If archive_cmds runs LD, not CC, wlarc should be empty 10785 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10786 # investigate it a little bit more. (MM) 10787 wlarc='${wl}' 10788 10789 # ancient GNU ld didn't support --whole-archive et. al. 10790 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10791 grep 'no-whole-archive' > /dev/null; then 10792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10793 else 10794 whole_archive_flag_spec_CXX= 10795 fi 10796 else 10797 with_gnu_ld=no 10798 wlarc= 10799 10800 # A generic and very simple default shared library creation 10801 # command for GNU C++ for the case where it uses the native 10802 # linker, instead of GNU ld. If possible, this setting should 10803 # overridden to take advantage of the native linker features on 10804 # the platform it is being used on. 10805 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10806 fi 10807 10808 # Commands to make compiler produce verbose output that lists 10809 # what "hidden" libraries, object files and flags are used when 10810 # linking a shared library. 10811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10812 10813else 10814 GXX=no 10815 with_gnu_ld=no 10816 wlarc= 10817fi 10818 10819# PORTME: fill in a description of your system's C++ link characteristics 10820{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10821echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10822ld_shlibs_CXX=yes 10823case $host_os in 10824 aix3*) 10825 # FIXME: insert proper C++ library support 10826 ld_shlibs_CXX=no 10827 ;; 10828 aix4* | aix5*) 10829 if test "$host_cpu" = ia64; then 10830 # On IA64, the linker does run time linking by default, so we don't 10831 # have to do anything special. 10832 aix_use_runtimelinking=no 10833 exp_sym_flag='-Bexport' 10834 no_entry_flag="" 10835 else 10836 aix_use_runtimelinking=no 10837 10838 # Test if we are trying to use run time linking or normal 10839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10840 # need to do runtime linking. 10841 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10842 for ld_flag in $LDFLAGS; do 10843 case $ld_flag in 10844 *-brtl*) 10845 aix_use_runtimelinking=yes 10846 break 10847 ;; 10848 esac 10849 done 10850 ;; 10851 esac 10852 10853 exp_sym_flag='-bexport' 10854 no_entry_flag='-bnoentry' 10855 fi 10856 10857 # When large executables or shared objects are built, AIX ld can 10858 # have problems creating the table of contents. If linking a library 10859 # or program results in "error TOC overflow" add -mminimal-toc to 10860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10862 10863 archive_cmds_CXX='' 10864 hardcode_direct_CXX=yes 10865 hardcode_libdir_separator_CXX=':' 10866 link_all_deplibs_CXX=yes 10867 10868 if test "$GXX" = yes; then 10869 case $host_os in aix4.[012]|aix4.[012].*) 10870 # We only want to do this on AIX 4.2 and lower, the check 10871 # below for broken collect2 doesn't work under 4.3+ 10872 collect2name=`${CC} -print-prog-name=collect2` 10873 if test -f "$collect2name" && \ 10874 strings "$collect2name" | grep resolve_lib_name >/dev/null 10875 then 10876 # We have reworked collect2 10877 hardcode_direct_CXX=yes 10878 else 10879 # We have old collect2 10880 hardcode_direct_CXX=unsupported 10881 # It fails to find uninstalled libraries when the uninstalled 10882 # path is not listed in the libpath. Setting hardcode_minus_L 10883 # to unsupported forces relinking 10884 hardcode_minus_L_CXX=yes 10885 hardcode_libdir_flag_spec_CXX='-L$libdir' 10886 hardcode_libdir_separator_CXX= 10887 fi 10888 ;; 10889 esac 10890 shared_flag='-shared' 10891 if test "$aix_use_runtimelinking" = yes; then 10892 shared_flag="$shared_flag "'${wl}-G' 10893 fi 10894 else 10895 # not using gcc 10896 if test "$host_cpu" = ia64; then 10897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10898 # chokes on -Wl,-G. The following line is correct: 10899 shared_flag='-G' 10900 else 10901 if test "$aix_use_runtimelinking" = yes; then 10902 shared_flag='${wl}-G' 10903 else 10904 shared_flag='${wl}-bM:SRE' 10905 fi 10906 fi 10907 fi 10908 10909 # It seems that -bexpall does not export symbols beginning with 10910 # underscore (_), so it is better to generate a list of symbols to export. 10911 always_export_symbols_CXX=yes 10912 if test "$aix_use_runtimelinking" = yes; then 10913 # Warning - without using the other runtime loading flags (-brtl), 10914 # -berok will link without error, but may produce a broken library. 10915 allow_undefined_flag_CXX='-berok' 10916 # Determine the default libpath from the value encoded in an empty executable. 10917 cat >conftest.$ac_ext <<_ACEOF 10918/* confdefs.h. */ 10919_ACEOF 10920cat confdefs.h >>conftest.$ac_ext 10921cat >>conftest.$ac_ext <<_ACEOF 10922/* end confdefs.h. */ 10923 10924int 10925main () 10926{ 10927 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932rm -f conftest.$ac_objext conftest$ac_exeext 10933if { (ac_try="$ac_link" 10934case "(($ac_try" in 10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10936 *) ac_try_echo=$ac_try;; 10937esac 10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10939 (eval "$ac_link") 2>conftest.er1 10940 ac_status=$? 10941 grep -v '^ *+' conftest.er1 >conftest.err 10942 rm -f conftest.er1 10943 cat conftest.err >&5 10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10945 (exit $ac_status); } && { 10946 test -z "$ac_cxx_werror_flag" || 10947 test ! -s conftest.err 10948 } && test -s conftest$ac_exeext && 10949 $as_test_x conftest$ac_exeext; then 10950 10951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10952}'` 10953# Check for a 64-bit object if we didn't find anything. 10954if 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; } 10955}'`; fi 10956else 10957 echo "$as_me: failed program was:" >&5 10958sed 's/^/| /' conftest.$ac_ext >&5 10959 10960 10961fi 10962 10963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10964 conftest$ac_exeext conftest.$ac_ext 10965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10966 10967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10968 10969 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" 10970 else 10971 if test "$host_cpu" = ia64; then 10972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10973 allow_undefined_flag_CXX="-z nodefs" 10974 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" 10975 else 10976 # Determine the default libpath from the value encoded in an empty executable. 10977 cat >conftest.$ac_ext <<_ACEOF 10978/* confdefs.h. */ 10979_ACEOF 10980cat confdefs.h >>conftest.$ac_ext 10981cat >>conftest.$ac_ext <<_ACEOF 10982/* end confdefs.h. */ 10983 10984int 10985main () 10986{ 10987 10988 ; 10989 return 0; 10990} 10991_ACEOF 10992rm -f conftest.$ac_objext conftest$ac_exeext 10993if { (ac_try="$ac_link" 10994case "(($ac_try" in 10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10996 *) ac_try_echo=$ac_try;; 10997esac 10998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10999 (eval "$ac_link") 2>conftest.er1 11000 ac_status=$? 11001 grep -v '^ *+' conftest.er1 >conftest.err 11002 rm -f conftest.er1 11003 cat conftest.err >&5 11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11005 (exit $ac_status); } && { 11006 test -z "$ac_cxx_werror_flag" || 11007 test ! -s conftest.err 11008 } && test -s conftest$ac_exeext && 11009 $as_test_x conftest$ac_exeext; then 11010 11011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11012}'` 11013# Check for a 64-bit object if we didn't find anything. 11014if 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; } 11015}'`; fi 11016else 11017 echo "$as_me: failed program was:" >&5 11018sed 's/^/| /' conftest.$ac_ext >&5 11019 11020 11021fi 11022 11023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11024 conftest$ac_exeext conftest.$ac_ext 11025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11026 11027 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11028 # Warning - without using the other run time loading flags, 11029 # -berok will link without error, but may produce a broken library. 11030 no_undefined_flag_CXX=' ${wl}-bernotok' 11031 allow_undefined_flag_CXX=' ${wl}-berok' 11032 # Exported symbols can be pulled into shared objects from archives 11033 whole_archive_flag_spec_CXX='$convenience' 11034 archive_cmds_need_lc_CXX=yes 11035 # This is similar to how AIX traditionally builds its shared libraries. 11036 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' 11037 fi 11038 fi 11039 ;; 11040 11041 beos*) 11042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11043 allow_undefined_flag_CXX=unsupported 11044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11045 # support --undefined. This deserves some investigation. FIXME 11046 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11047 else 11048 ld_shlibs_CXX=no 11049 fi 11050 ;; 11051 11052 chorus*) 11053 case $cc_basename in 11054 *) 11055 # FIXME: insert proper C++ library support 11056 ld_shlibs_CXX=no 11057 ;; 11058 esac 11059 ;; 11060 11061 cygwin* | mingw* | pw32*) 11062 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11063 # as there is no search path for DLLs. 11064 hardcode_libdir_flag_spec_CXX='-L$libdir' 11065 allow_undefined_flag_CXX=unsupported 11066 always_export_symbols_CXX=no 11067 enable_shared_with_static_runtimes_CXX=yes 11068 11069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11070 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' 11071 # If the export-symbols file already is a .def file (1st line 11072 # is EXPORTS), use it as is; otherwise, prepend... 11073 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11074 cp $export_symbols $output_objdir/$soname.def; 11075 else 11076 echo EXPORTS > $output_objdir/$soname.def; 11077 cat $export_symbols >> $output_objdir/$soname.def; 11078 fi~ 11079 $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' 11080 else 11081 ld_shlibs_CXX=no 11082 fi 11083 ;; 11084 darwin* | rhapsody*) 11085 case $host_os in 11086 rhapsody* | darwin1.[012]) 11087 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11088 ;; 11089 *) # Darwin 1.3 on 11090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11091 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11092 else 11093 case ${MACOSX_DEPLOYMENT_TARGET} in 11094 10.[012]) 11095 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11096 ;; 11097 10.*) 11098 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11099 ;; 11100 esac 11101 fi 11102 ;; 11103 esac 11104 archive_cmds_need_lc_CXX=no 11105 hardcode_direct_CXX=no 11106 hardcode_automatic_CXX=yes 11107 hardcode_shlibpath_var_CXX=unsupported 11108 whole_archive_flag_spec_CXX='' 11109 link_all_deplibs_CXX=yes 11110 11111 if test "$GXX" = yes ; then 11112 lt_int_apple_cc_single_mod=no 11113 output_verbose_link_cmd='echo' 11114 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11115 lt_int_apple_cc_single_mod=yes 11116 fi 11117 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11118 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11119 else 11120 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' 11121 fi 11122 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11124 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11125 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}' 11126 else 11127 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}' 11128 fi 11129 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}' 11130 else 11131 case $cc_basename in 11132 xlc*) 11133 output_verbose_link_cmd='echo' 11134 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' 11135 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11136 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11137 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}' 11138 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}' 11139 ;; 11140 *) 11141 ld_shlibs_CXX=no 11142 ;; 11143 esac 11144 fi 11145 ;; 11146 11147 dgux*) 11148 case $cc_basename in 11149 ec++*) 11150 # FIXME: insert proper C++ library support 11151 ld_shlibs_CXX=no 11152 ;; 11153 ghcx*) 11154 # Green Hills C++ Compiler 11155 # FIXME: insert proper C++ library support 11156 ld_shlibs_CXX=no 11157 ;; 11158 *) 11159 # FIXME: insert proper C++ library support 11160 ld_shlibs_CXX=no 11161 ;; 11162 esac 11163 ;; 11164 freebsd[12]*) 11165 # C++ shared libraries reported to be fairly broken before switch to ELF 11166 ld_shlibs_CXX=no 11167 ;; 11168 freebsd-elf*) 11169 archive_cmds_need_lc_CXX=no 11170 ;; 11171 freebsd* | dragonfly*) 11172 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11173 # conventions 11174 ld_shlibs_CXX=yes 11175 ;; 11176 gnu*) 11177 ;; 11178 hpux9*) 11179 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11180 hardcode_libdir_separator_CXX=: 11181 export_dynamic_flag_spec_CXX='${wl}-E' 11182 hardcode_direct_CXX=yes 11183 hardcode_minus_L_CXX=yes # Not in the search PATH, 11184 # but as the default 11185 # location of the library. 11186 11187 case $cc_basename in 11188 CC*) 11189 # FIXME: insert proper C++ library support 11190 ld_shlibs_CXX=no 11191 ;; 11192 aCC*) 11193 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' 11194 # Commands to make compiler produce verbose output that lists 11195 # what "hidden" libraries, object files and flags are used when 11196 # linking a shared library. 11197 # 11198 # There doesn't appear to be a way to prevent this compiler from 11199 # explicitly linking system object files so we need to strip them 11200 # from the output so that they don't get included in the library 11201 # dependencies. 11202 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' 11203 ;; 11204 *) 11205 if test "$GXX" = yes; then 11206 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' 11207 else 11208 # FIXME: insert proper C++ library support 11209 ld_shlibs_CXX=no 11210 fi 11211 ;; 11212 esac 11213 ;; 11214 hpux10*|hpux11*) 11215 if test $with_gnu_ld = no; then 11216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11217 hardcode_libdir_separator_CXX=: 11218 11219 case $host_cpu in 11220 hppa*64*|ia64*) 11221 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11222 ;; 11223 *) 11224 export_dynamic_flag_spec_CXX='${wl}-E' 11225 ;; 11226 esac 11227 fi 11228 case $host_cpu in 11229 hppa*64*|ia64*) 11230 hardcode_direct_CXX=no 11231 hardcode_shlibpath_var_CXX=no 11232 ;; 11233 *) 11234 hardcode_direct_CXX=yes 11235 hardcode_minus_L_CXX=yes # Not in the search PATH, 11236 # but as the default 11237 # location of the library. 11238 ;; 11239 esac 11240 11241 case $cc_basename in 11242 CC*) 11243 # FIXME: insert proper C++ library support 11244 ld_shlibs_CXX=no 11245 ;; 11246 aCC*) 11247 case $host_cpu in 11248 hppa*64*) 11249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11250 ;; 11251 ia64*) 11252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11253 ;; 11254 *) 11255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11256 ;; 11257 esac 11258 # Commands to make compiler produce verbose output that lists 11259 # what "hidden" libraries, object files and flags are used when 11260 # linking a shared library. 11261 # 11262 # There doesn't appear to be a way to prevent this compiler from 11263 # explicitly linking system object files so we need to strip them 11264 # from the output so that they don't get included in the library 11265 # dependencies. 11266 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' 11267 ;; 11268 *) 11269 if test "$GXX" = yes; then 11270 if test $with_gnu_ld = no; then 11271 case $host_cpu in 11272 hppa*64*) 11273 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11274 ;; 11275 ia64*) 11276 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11277 ;; 11278 *) 11279 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' 11280 ;; 11281 esac 11282 fi 11283 else 11284 # FIXME: insert proper C++ library support 11285 ld_shlibs_CXX=no 11286 fi 11287 ;; 11288 esac 11289 ;; 11290 interix3*) 11291 hardcode_direct_CXX=no 11292 hardcode_shlibpath_var_CXX=no 11293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11294 export_dynamic_flag_spec_CXX='${wl}-E' 11295 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11296 # Instead, shared libraries are loaded at an image base (0x10000000 by 11297 # default) and relocated if they conflict, which is a slow very memory 11298 # consuming and fragmenting process. To avoid this, we pick a random, 11299 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11300 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11301 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' 11302 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' 11303 ;; 11304 irix5* | irix6*) 11305 case $cc_basename in 11306 CC*) 11307 # SGI C++ 11308 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' 11309 11310 # Archives containing C++ object files must be created using 11311 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11312 # necessary to make sure instantiated templates are included 11313 # in the archive. 11314 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11315 ;; 11316 *) 11317 if test "$GXX" = yes; then 11318 if test "$with_gnu_ld" = no; then 11319 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' 11320 else 11321 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' 11322 fi 11323 fi 11324 link_all_deplibs_CXX=yes 11325 ;; 11326 esac 11327 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11328 hardcode_libdir_separator_CXX=: 11329 ;; 11330 linux* | k*bsd*-gnu) 11331 case $cc_basename in 11332 KCC*) 11333 # Kuck and Associates, Inc. (KAI) C++ Compiler 11334 11335 # KCC will only create a shared library if the output file 11336 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11337 # to its proper name (with version) after linking. 11338 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' 11339 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' 11340 # Commands to make compiler produce verbose output that lists 11341 # what "hidden" libraries, object files and flags are used when 11342 # linking a shared library. 11343 # 11344 # There doesn't appear to be a way to prevent this compiler from 11345 # explicitly linking system object files so we need to strip them 11346 # from the output so that they don't get included in the library 11347 # dependencies. 11348 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' 11349 11350 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11352 11353 # Archives containing C++ object files must be created using 11354 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11355 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11356 ;; 11357 icpc*) 11358 # Intel C++ 11359 with_gnu_ld=yes 11360 # version 8.0 and above of icpc choke on multiply defined symbols 11361 # if we add $predep_objects and $postdep_objects, however 7.1 and 11362 # earlier do not add the objects themselves. 11363 case `$CC -V 2>&1` in 11364 *"Version 7."*) 11365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11366 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' 11367 ;; 11368 *) # Version 8.0 or newer 11369 tmp_idyn= 11370 case $host_cpu in 11371 ia64*) tmp_idyn=' -i_dynamic';; 11372 esac 11373 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11374 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' 11375 ;; 11376 esac 11377 archive_cmds_need_lc_CXX=no 11378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11381 ;; 11382 pgCC*) 11383 # Portland Group C++ compiler 11384 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11385 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' 11386 11387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11389 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' 11390 ;; 11391 cxx*) 11392 # Compaq C++ 11393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11394 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' 11395 11396 runpath_var=LD_RUN_PATH 11397 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11398 hardcode_libdir_separator_CXX=: 11399 11400 # Commands to make compiler produce verbose output that lists 11401 # what "hidden" libraries, object files and flags are used when 11402 # linking a shared library. 11403 # 11404 # There doesn't appear to be a way to prevent this compiler from 11405 # explicitly linking system object files so we need to strip them 11406 # from the output so that they don't get included in the library 11407 # dependencies. 11408 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' 11409 ;; 11410 esac 11411 ;; 11412 lynxos*) 11413 # FIXME: insert proper C++ library support 11414 ld_shlibs_CXX=no 11415 ;; 11416 m88k*) 11417 # FIXME: insert proper C++ library support 11418 ld_shlibs_CXX=no 11419 ;; 11420 mvs*) 11421 case $cc_basename in 11422 cxx*) 11423 # FIXME: insert proper C++ library support 11424 ld_shlibs_CXX=no 11425 ;; 11426 *) 11427 # FIXME: insert proper C++ library support 11428 ld_shlibs_CXX=no 11429 ;; 11430 esac 11431 ;; 11432 netbsd* | netbsdelf*-gnu) 11433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11434 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11435 wlarc= 11436 hardcode_libdir_flag_spec_CXX='-R$libdir' 11437 hardcode_direct_CXX=yes 11438 hardcode_shlibpath_var_CXX=no 11439 fi 11440 # Workaround some broken pre-1.5 toolchains 11441 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11442 ;; 11443 openbsd2*) 11444 # C++ shared libraries are fairly broken 11445 ld_shlibs_CXX=no 11446 ;; 11447 openbsd*) 11448 hardcode_direct_CXX=yes 11449 hardcode_shlibpath_var_CXX=no 11450 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11453 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11454 export_dynamic_flag_spec_CXX='${wl}-E' 11455 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11456 fi 11457 output_verbose_link_cmd='echo' 11458 ;; 11459 osf3*) 11460 case $cc_basename in 11461 KCC*) 11462 # Kuck and Associates, Inc. (KAI) C++ Compiler 11463 11464 # KCC will only create a shared library if the output file 11465 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11466 # to its proper name (with version) after linking. 11467 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' 11468 11469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11470 hardcode_libdir_separator_CXX=: 11471 11472 # Archives containing C++ object files must be created using 11473 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11474 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11475 11476 ;; 11477 RCC*) 11478 # Rational C++ 2.4.1 11479 # FIXME: insert proper C++ library support 11480 ld_shlibs_CXX=no 11481 ;; 11482 cxx*) 11483 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11484 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' 11485 11486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11487 hardcode_libdir_separator_CXX=: 11488 11489 # Commands to make compiler produce verbose output that lists 11490 # what "hidden" libraries, object files and flags are used when 11491 # linking a shared library. 11492 # 11493 # There doesn't appear to be a way to prevent this compiler from 11494 # explicitly linking system object files so we need to strip them 11495 # from the output so that they don't get included in the library 11496 # dependencies. 11497 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' 11498 ;; 11499 *) 11500 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11502 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' 11503 11504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11505 hardcode_libdir_separator_CXX=: 11506 11507 # Commands to make compiler produce verbose output that lists 11508 # what "hidden" libraries, object files and flags are used when 11509 # linking a shared library. 11510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11511 11512 else 11513 # FIXME: insert proper C++ library support 11514 ld_shlibs_CXX=no 11515 fi 11516 ;; 11517 esac 11518 ;; 11519 osf4* | osf5*) 11520 case $cc_basename in 11521 KCC*) 11522 # Kuck and Associates, Inc. (KAI) C++ Compiler 11523 11524 # KCC will only create a shared library if the output file 11525 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11526 # to its proper name (with version) after linking. 11527 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' 11528 11529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11530 hardcode_libdir_separator_CXX=: 11531 11532 # Archives containing C++ object files must be created using 11533 # the KAI C++ compiler. 11534 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11535 ;; 11536 RCC*) 11537 # Rational C++ 2.4.1 11538 # FIXME: insert proper C++ library support 11539 ld_shlibs_CXX=no 11540 ;; 11541 cxx*) 11542 allow_undefined_flag_CXX=' -expect_unresolved \*' 11543 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' 11544 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11545 echo "-hidden">> $lib.exp~ 11546 $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~ 11547 $rm $lib.exp' 11548 11549 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11550 hardcode_libdir_separator_CXX=: 11551 11552 # Commands to make compiler produce verbose output that lists 11553 # what "hidden" libraries, object files and flags are used when 11554 # linking a shared library. 11555 # 11556 # There doesn't appear to be a way to prevent this compiler from 11557 # explicitly linking system object files so we need to strip them 11558 # from the output so that they don't get included in the library 11559 # dependencies. 11560 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' 11561 ;; 11562 *) 11563 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11564 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11565 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' 11566 11567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11568 hardcode_libdir_separator_CXX=: 11569 11570 # Commands to make compiler produce verbose output that lists 11571 # what "hidden" libraries, object files and flags are used when 11572 # linking a shared library. 11573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11574 11575 else 11576 # FIXME: insert proper C++ library support 11577 ld_shlibs_CXX=no 11578 fi 11579 ;; 11580 esac 11581 ;; 11582 psos*) 11583 # FIXME: insert proper C++ library support 11584 ld_shlibs_CXX=no 11585 ;; 11586 sunos4*) 11587 case $cc_basename in 11588 CC*) 11589 # Sun C++ 4.x 11590 # FIXME: insert proper C++ library support 11591 ld_shlibs_CXX=no 11592 ;; 11593 lcc*) 11594 # Lucid 11595 # FIXME: insert proper C++ library support 11596 ld_shlibs_CXX=no 11597 ;; 11598 *) 11599 # FIXME: insert proper C++ library support 11600 ld_shlibs_CXX=no 11601 ;; 11602 esac 11603 ;; 11604 solaris*) 11605 case $cc_basename in 11606 CC*) 11607 # Sun C++ 4.2, 5.x and Centerline C++ 11608 archive_cmds_need_lc_CXX=yes 11609 no_undefined_flag_CXX=' -zdefs' 11610 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11612 $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' 11613 11614 hardcode_libdir_flag_spec_CXX='-R$libdir' 11615 hardcode_shlibpath_var_CXX=no 11616 case $host_os in 11617 solaris2.[0-5] | solaris2.[0-5].*) ;; 11618 *) 11619 # The C++ compiler is used as linker so we must use $wl 11620 # flag to pass the commands to the underlying system 11621 # linker. We must also pass each convience library through 11622 # to the system linker between allextract/defaultextract. 11623 # The C++ compiler will combine linker options so we 11624 # cannot just pass the convience library names through 11625 # without $wl. 11626 # Supported since Solaris 2.6 (maybe 2.5.1?) 11627 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' 11628 ;; 11629 esac 11630 link_all_deplibs_CXX=yes 11631 11632 output_verbose_link_cmd='echo' 11633 11634 # Archives containing C++ object files must be created using 11635 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11636 # necessary to make sure instantiated templates are included 11637 # in the archive. 11638 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11639 ;; 11640 gcx*) 11641 # Green Hills C++ Compiler 11642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11643 11644 # The C++ compiler must be used to create the archive. 11645 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11646 ;; 11647 *) 11648 # GNU C++ compiler with Solaris linker 11649 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11650 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11651 if $CC --version | grep -v '^2\.7' > /dev/null; then 11652 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11653 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11654 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11655 11656 # Commands to make compiler produce verbose output that lists 11657 # what "hidden" libraries, object files and flags are used when 11658 # linking a shared library. 11659 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11660 else 11661 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11662 # platform. 11663 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11664 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11665 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11666 11667 # Commands to make compiler produce verbose output that lists 11668 # what "hidden" libraries, object files and flags are used when 11669 # linking a shared library. 11670 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11671 fi 11672 11673 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11674 fi 11675 ;; 11676 esac 11677 ;; 11678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11679 no_undefined_flag_CXX='${wl}-z,text' 11680 archive_cmds_need_lc_CXX=no 11681 hardcode_shlibpath_var_CXX=no 11682 runpath_var='LD_RUN_PATH' 11683 11684 case $cc_basename in 11685 CC*) 11686 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11687 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11688 ;; 11689 *) 11690 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11691 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11692 ;; 11693 esac 11694 ;; 11695 sysv5* | sco3.2v5* | sco5v6*) 11696 # Note: We can NOT use -z defs as we might desire, because we do not 11697 # link with -lc, and that would cause any symbols used from libc to 11698 # always be unresolved, which means just about no library would 11699 # ever link correctly. If we're not using GNU ld we use -z text 11700 # though, which does catch some bad symbols but isn't as heavy-handed 11701 # as -z defs. 11702 # For security reasons, it is highly recommended that you always 11703 # use absolute paths for naming shared libraries, and exclude the 11704 # DT_RUNPATH tag from executables and libraries. But doing so 11705 # requires that you compile everything twice, which is a pain. 11706 # So that behaviour is only enabled if SCOABSPATH is set to a 11707 # non-empty value in the environment. Most likely only useful for 11708 # creating official distributions of packages. 11709 # This is a hack until libtool officially supports absolute path 11710 # names for shared libraries. 11711 no_undefined_flag_CXX='${wl}-z,text' 11712 allow_undefined_flag_CXX='${wl}-z,nodefs' 11713 archive_cmds_need_lc_CXX=no 11714 hardcode_shlibpath_var_CXX=no 11715 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11716 hardcode_libdir_separator_CXX=':' 11717 link_all_deplibs_CXX=yes 11718 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11719 runpath_var='LD_RUN_PATH' 11720 11721 case $cc_basename in 11722 CC*) 11723 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11724 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11725 ;; 11726 *) 11727 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11728 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11729 ;; 11730 esac 11731 ;; 11732 tandem*) 11733 case $cc_basename in 11734 NCC*) 11735 # NonStop-UX NCC 3.20 11736 # FIXME: insert proper C++ library support 11737 ld_shlibs_CXX=no 11738 ;; 11739 *) 11740 # FIXME: insert proper C++ library support 11741 ld_shlibs_CXX=no 11742 ;; 11743 esac 11744 ;; 11745 vxworks*) 11746 # FIXME: insert proper C++ library support 11747 ld_shlibs_CXX=no 11748 ;; 11749 *) 11750 # FIXME: insert proper C++ library support 11751 ld_shlibs_CXX=no 11752 ;; 11753esac 11754{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11755echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11756test "$ld_shlibs_CXX" = no && can_build_shared=no 11757 11758GCC_CXX="$GXX" 11759LD_CXX="$LD" 11760 11761 11762cat > conftest.$ac_ext <<EOF 11763class Foo 11764{ 11765public: 11766 Foo (void) { a = 0; } 11767private: 11768 int a; 11769}; 11770EOF 11771 11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11773 (eval $ac_compile) 2>&5 11774 ac_status=$? 11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11776 (exit $ac_status); }; then 11777 # Parse the compiler output and extract the necessary 11778 # objects, libraries and library flags. 11779 11780 # Sentinel used to keep track of whether or not we are before 11781 # the conftest object file. 11782 pre_test_object_deps_done=no 11783 11784 # The `*' in the case matches for architectures that use `case' in 11785 # $output_verbose_cmd can trigger glob expansion during the loop 11786 # eval without this substitution. 11787 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11788 11789 for p in `eval $output_verbose_link_cmd`; do 11790 case $p in 11791 11792 -L* | -R* | -l*) 11793 # Some compilers place space between "-{L,R}" and the path. 11794 # Remove the space. 11795 if test $p = "-L" \ 11796 || test $p = "-R"; then 11797 prev=$p 11798 continue 11799 else 11800 prev= 11801 fi 11802 11803 if test "$pre_test_object_deps_done" = no; then 11804 case $p in 11805 -L* | -R*) 11806 # Internal compiler library paths should come after those 11807 # provided the user. The postdeps already come after the 11808 # user supplied libs so there is no need to process them. 11809 if test -z "$compiler_lib_search_path_CXX"; then 11810 compiler_lib_search_path_CXX="${prev}${p}" 11811 else 11812 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11813 fi 11814 ;; 11815 # The "-l" case would never come before the object being 11816 # linked, so don't bother handling this case. 11817 esac 11818 else 11819 if test -z "$postdeps_CXX"; then 11820 postdeps_CXX="${prev}${p}" 11821 else 11822 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11823 fi 11824 fi 11825 ;; 11826 11827 *.$objext) 11828 # This assumes that the test object file only shows up 11829 # once in the compiler output. 11830 if test "$p" = "conftest.$objext"; then 11831 pre_test_object_deps_done=yes 11832 continue 11833 fi 11834 11835 if test "$pre_test_object_deps_done" = no; then 11836 if test -z "$predep_objects_CXX"; then 11837 predep_objects_CXX="$p" 11838 else 11839 predep_objects_CXX="$predep_objects_CXX $p" 11840 fi 11841 else 11842 if test -z "$postdep_objects_CXX"; then 11843 postdep_objects_CXX="$p" 11844 else 11845 postdep_objects_CXX="$postdep_objects_CXX $p" 11846 fi 11847 fi 11848 ;; 11849 11850 *) ;; # Ignore the rest. 11851 11852 esac 11853 done 11854 11855 # Clean up. 11856 rm -f a.out a.exe 11857else 11858 echo "libtool.m4: error: problem compiling CXX test program" 11859fi 11860 11861$rm -f confest.$objext 11862 11863# PORTME: override above test on systems where it is broken 11864case $host_os in 11865interix3*) 11866 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11867 # hack all around it, let's just trust "g++" to DTRT. 11868 predep_objects_CXX= 11869 postdep_objects_CXX= 11870 postdeps_CXX= 11871 ;; 11872 11873solaris*) 11874 case $cc_basename in 11875 CC*) 11876 # Adding this requires a known-good setup of shared libraries for 11877 # Sun compiler versions before 5.6, else PIC objects from an old 11878 # archive will be linked into the output, leading to subtle bugs. 11879 postdeps_CXX='-lCstd -lCrun' 11880 ;; 11881 esac 11882 ;; 11883esac 11884 11885 11886case " $postdeps_CXX " in 11887*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11888esac 11889 11890lt_prog_compiler_wl_CXX= 11891lt_prog_compiler_pic_CXX= 11892lt_prog_compiler_static_CXX= 11893 11894{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11895echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11896 11897 # C++ specific cases for pic, static, wl, etc. 11898 if test "$GXX" = yes; then 11899 lt_prog_compiler_wl_CXX='-Wl,' 11900 lt_prog_compiler_static_CXX='-static' 11901 11902 case $host_os in 11903 aix*) 11904 # All AIX code is PIC. 11905 if test "$host_cpu" = ia64; then 11906 # AIX 5 now supports IA64 processor 11907 lt_prog_compiler_static_CXX='-Bstatic' 11908 fi 11909 ;; 11910 amigaos*) 11911 # FIXME: we need at least 68020 code to build shared libraries, but 11912 # adding the `-m68020' flag to GCC prevents building anything better, 11913 # like `-m68040'. 11914 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11915 ;; 11916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11917 # PIC is the default for these OSes. 11918 ;; 11919 mingw* | os2* | pw32*) 11920 # This hack is so that the source file can tell whether it is being 11921 # built for inclusion in a dll (and should export symbols for example). 11922 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11923 ;; 11924 darwin* | rhapsody*) 11925 # PIC is the default on this platform 11926 # Common symbols not allowed in MH_DYLIB files 11927 lt_prog_compiler_pic_CXX='-fno-common' 11928 ;; 11929 *djgpp*) 11930 # DJGPP does not support shared libraries at all 11931 lt_prog_compiler_pic_CXX= 11932 ;; 11933 interix3*) 11934 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11935 # Instead, we relocate shared libraries at runtime. 11936 ;; 11937 sysv4*MP*) 11938 if test -d /usr/nec; then 11939 lt_prog_compiler_pic_CXX=-Kconform_pic 11940 fi 11941 ;; 11942 hpux*) 11943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11944 # not for PA HP-UX. 11945 case $host_cpu in 11946 hppa*64*|ia64*) 11947 ;; 11948 *) 11949 lt_prog_compiler_pic_CXX='-fPIC' 11950 ;; 11951 esac 11952 ;; 11953 *) 11954 lt_prog_compiler_pic_CXX='-fPIC' 11955 ;; 11956 esac 11957 else 11958 case $host_os in 11959 aix4* | aix5*) 11960 # All AIX code is PIC. 11961 if test "$host_cpu" = ia64; then 11962 # AIX 5 now supports IA64 processor 11963 lt_prog_compiler_static_CXX='-Bstatic' 11964 else 11965 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11966 fi 11967 ;; 11968 chorus*) 11969 case $cc_basename in 11970 cxch68*) 11971 # Green Hills C++ Compiler 11972 # _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" 11973 ;; 11974 esac 11975 ;; 11976 darwin*) 11977 # PIC is the default on this platform 11978 # Common symbols not allowed in MH_DYLIB files 11979 case $cc_basename in 11980 xlc*) 11981 lt_prog_compiler_pic_CXX='-qnocommon' 11982 lt_prog_compiler_wl_CXX='-Wl,' 11983 ;; 11984 esac 11985 ;; 11986 dgux*) 11987 case $cc_basename in 11988 ec++*) 11989 lt_prog_compiler_pic_CXX='-KPIC' 11990 ;; 11991 ghcx*) 11992 # Green Hills C++ Compiler 11993 lt_prog_compiler_pic_CXX='-pic' 11994 ;; 11995 *) 11996 ;; 11997 esac 11998 ;; 11999 freebsd* | dragonfly*) 12000 # FreeBSD uses GNU C++ 12001 ;; 12002 hpux9* | hpux10* | hpux11*) 12003 case $cc_basename in 12004 CC*) 12005 lt_prog_compiler_wl_CXX='-Wl,' 12006 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12007 if test "$host_cpu" != ia64; then 12008 lt_prog_compiler_pic_CXX='+Z' 12009 fi 12010 ;; 12011 aCC*) 12012 lt_prog_compiler_wl_CXX='-Wl,' 12013 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12014 case $host_cpu in 12015 hppa*64*|ia64*) 12016 # +Z the default 12017 ;; 12018 *) 12019 lt_prog_compiler_pic_CXX='+Z' 12020 ;; 12021 esac 12022 ;; 12023 *) 12024 ;; 12025 esac 12026 ;; 12027 interix*) 12028 # This is c89, which is MS Visual C++ (no shared libs) 12029 # Anyone wants to do a port? 12030 ;; 12031 irix5* | irix6* | nonstopux*) 12032 case $cc_basename in 12033 CC*) 12034 lt_prog_compiler_wl_CXX='-Wl,' 12035 lt_prog_compiler_static_CXX='-non_shared' 12036 # CC pic flag -KPIC is the default. 12037 ;; 12038 *) 12039 ;; 12040 esac 12041 ;; 12042 linux* | k*bsd*-gnu) 12043 case $cc_basename in 12044 KCC*) 12045 # KAI C++ Compiler 12046 lt_prog_compiler_wl_CXX='--backend -Wl,' 12047 lt_prog_compiler_pic_CXX='-fPIC' 12048 ;; 12049 icpc* | ecpc*) 12050 # Intel C++ 12051 lt_prog_compiler_wl_CXX='-Wl,' 12052 lt_prog_compiler_pic_CXX='-KPIC' 12053 lt_prog_compiler_static_CXX='-static' 12054 ;; 12055 pgCC*) 12056 # Portland Group C++ compiler. 12057 lt_prog_compiler_wl_CXX='-Wl,' 12058 lt_prog_compiler_pic_CXX='-fpic' 12059 lt_prog_compiler_static_CXX='-Bstatic' 12060 ;; 12061 cxx*) 12062 # Compaq C++ 12063 # Make sure the PIC flag is empty. It appears that all Alpha 12064 # Linux and Compaq Tru64 Unix objects are PIC. 12065 lt_prog_compiler_pic_CXX= 12066 lt_prog_compiler_static_CXX='-non_shared' 12067 ;; 12068 *) 12069 ;; 12070 esac 12071 ;; 12072 lynxos*) 12073 ;; 12074 m88k*) 12075 ;; 12076 mvs*) 12077 case $cc_basename in 12078 cxx*) 12079 lt_prog_compiler_pic_CXX='-W c,exportall' 12080 ;; 12081 *) 12082 ;; 12083 esac 12084 ;; 12085 netbsd* | netbsdelf*-gnu) 12086 ;; 12087 osf3* | osf4* | osf5*) 12088 case $cc_basename in 12089 KCC*) 12090 lt_prog_compiler_wl_CXX='--backend -Wl,' 12091 ;; 12092 RCC*) 12093 # Rational C++ 2.4.1 12094 lt_prog_compiler_pic_CXX='-pic' 12095 ;; 12096 cxx*) 12097 # Digital/Compaq C++ 12098 lt_prog_compiler_wl_CXX='-Wl,' 12099 # Make sure the PIC flag is empty. It appears that all Alpha 12100 # Linux and Compaq Tru64 Unix objects are PIC. 12101 lt_prog_compiler_pic_CXX= 12102 lt_prog_compiler_static_CXX='-non_shared' 12103 ;; 12104 *) 12105 ;; 12106 esac 12107 ;; 12108 psos*) 12109 ;; 12110 solaris*) 12111 case $cc_basename in 12112 CC*) 12113 # Sun C++ 4.2, 5.x and Centerline C++ 12114 lt_prog_compiler_pic_CXX='-KPIC' 12115 lt_prog_compiler_static_CXX='-Bstatic' 12116 lt_prog_compiler_wl_CXX='-Qoption ld ' 12117 ;; 12118 gcx*) 12119 # Green Hills C++ Compiler 12120 lt_prog_compiler_pic_CXX='-PIC' 12121 ;; 12122 *) 12123 ;; 12124 esac 12125 ;; 12126 sunos4*) 12127 case $cc_basename in 12128 CC*) 12129 # Sun C++ 4.x 12130 lt_prog_compiler_pic_CXX='-pic' 12131 lt_prog_compiler_static_CXX='-Bstatic' 12132 ;; 12133 lcc*) 12134 # Lucid 12135 lt_prog_compiler_pic_CXX='-pic' 12136 ;; 12137 *) 12138 ;; 12139 esac 12140 ;; 12141 tandem*) 12142 case $cc_basename in 12143 NCC*) 12144 # NonStop-UX NCC 3.20 12145 lt_prog_compiler_pic_CXX='-KPIC' 12146 ;; 12147 *) 12148 ;; 12149 esac 12150 ;; 12151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12152 case $cc_basename in 12153 CC*) 12154 lt_prog_compiler_wl_CXX='-Wl,' 12155 lt_prog_compiler_pic_CXX='-KPIC' 12156 lt_prog_compiler_static_CXX='-Bstatic' 12157 ;; 12158 esac 12159 ;; 12160 vxworks*) 12161 ;; 12162 *) 12163 lt_prog_compiler_can_build_shared_CXX=no 12164 ;; 12165 esac 12166 fi 12167 12168{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12169echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12170 12171# 12172# Check to make sure the PIC flag actually works. 12173# 12174if test -n "$lt_prog_compiler_pic_CXX"; then 12175 12176{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12177echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12178if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12179 echo $ECHO_N "(cached) $ECHO_C" >&6 12180else 12181 lt_prog_compiler_pic_works_CXX=no 12182 ac_outfile=conftest.$ac_objext 12183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12184 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12185 # Insert the option either (1) after the last *FLAGS variable, or 12186 # (2) before a word containing "conftest.", or (3) at the end. 12187 # Note that $ac_compile itself does not contain backslashes and begins 12188 # with a dollar sign (not a hyphen), so the echo should work correctly. 12189 # The option is referenced via a variable to avoid confusing sed. 12190 lt_compile=`echo "$ac_compile" | $SED \ 12191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12193 -e 's:$: $lt_compiler_flag:'` 12194 (eval echo "\"\$as_me:12194: $lt_compile\"" >&5) 12195 (eval "$lt_compile" 2>conftest.err) 12196 ac_status=$? 12197 cat conftest.err >&5 12198 echo "$as_me:12198: \$? = $ac_status" >&5 12199 if (exit $ac_status) && test -s "$ac_outfile"; then 12200 # The compiler can only warn and ignore the option if not recognized 12201 # So say no if there are warnings other than the usual output. 12202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12205 lt_prog_compiler_pic_works_CXX=yes 12206 fi 12207 fi 12208 $rm conftest* 12209 12210fi 12211{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12212echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12213 12214if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12215 case $lt_prog_compiler_pic_CXX in 12216 "" | " "*) ;; 12217 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12218 esac 12219else 12220 lt_prog_compiler_pic_CXX= 12221 lt_prog_compiler_can_build_shared_CXX=no 12222fi 12223 12224fi 12225case $host_os in 12226 # For platforms which do not support PIC, -DPIC is meaningless: 12227 *djgpp*) 12228 lt_prog_compiler_pic_CXX= 12229 ;; 12230 *) 12231 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12232 ;; 12233esac 12234 12235# 12236# Check to make sure the static flag actually works. 12237# 12238wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12239{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12240echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12241if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12242 echo $ECHO_N "(cached) $ECHO_C" >&6 12243else 12244 lt_prog_compiler_static_works_CXX=no 12245 save_LDFLAGS="$LDFLAGS" 12246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12247 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12249 # The linker can only warn and ignore the option if not recognized 12250 # So say no if there are warnings 12251 if test -s conftest.err; then 12252 # Append any errors to the config.log. 12253 cat conftest.err 1>&5 12254 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12256 if diff conftest.exp conftest.er2 >/dev/null; then 12257 lt_prog_compiler_static_works_CXX=yes 12258 fi 12259 else 12260 lt_prog_compiler_static_works_CXX=yes 12261 fi 12262 fi 12263 $rm conftest* 12264 LDFLAGS="$save_LDFLAGS" 12265 12266fi 12267{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12268echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12269 12270if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12271 : 12272else 12273 lt_prog_compiler_static_CXX= 12274fi 12275 12276 12277{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12278echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12279if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12280 echo $ECHO_N "(cached) $ECHO_C" >&6 12281else 12282 lt_cv_prog_compiler_c_o_CXX=no 12283 $rm -r conftest 2>/dev/null 12284 mkdir conftest 12285 cd conftest 12286 mkdir out 12287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12288 12289 lt_compiler_flag="-o out/conftest2.$ac_objext" 12290 # Insert the option either (1) after the last *FLAGS variable, or 12291 # (2) before a word containing "conftest.", or (3) at the end. 12292 # Note that $ac_compile itself does not contain backslashes and begins 12293 # with a dollar sign (not a hyphen), so the echo should work correctly. 12294 lt_compile=`echo "$ac_compile" | $SED \ 12295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12297 -e 's:$: $lt_compiler_flag:'` 12298 (eval echo "\"\$as_me:12298: $lt_compile\"" >&5) 12299 (eval "$lt_compile" 2>out/conftest.err) 12300 ac_status=$? 12301 cat out/conftest.err >&5 12302 echo "$as_me:12302: \$? = $ac_status" >&5 12303 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12304 then 12305 # The compiler can only warn and ignore the option if not recognized 12306 # So say no if there are warnings 12307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12310 lt_cv_prog_compiler_c_o_CXX=yes 12311 fi 12312 fi 12313 chmod u+w . 2>&5 12314 $rm conftest* 12315 # SGI C++ compiler will create directory out/ii_files/ for 12316 # template instantiation 12317 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12318 $rm out/* && rmdir out 12319 cd .. 12320 rmdir conftest 12321 $rm conftest* 12322 12323fi 12324{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12325echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12326 12327 12328hard_links="nottested" 12329if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12330 # do not overwrite the value of need_locks provided by the user 12331 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12332echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12333 hard_links=yes 12334 $rm conftest* 12335 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12336 touch conftest.a 12337 ln conftest.a conftest.b 2>&5 || hard_links=no 12338 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12339 { echo "$as_me:$LINENO: result: $hard_links" >&5 12340echo "${ECHO_T}$hard_links" >&6; } 12341 if test "$hard_links" = no; then 12342 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12343echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12344 need_locks=warn 12345 fi 12346else 12347 need_locks=no 12348fi 12349 12350{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12351echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12352 12353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12354 case $host_os in 12355 aix4* | aix5*) 12356 # If we're using GNU nm, then we don't want the "-C" option. 12357 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12359 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' 12360 else 12361 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' 12362 fi 12363 ;; 12364 pw32*) 12365 export_symbols_cmds_CXX="$ltdll_cmds" 12366 ;; 12367 cygwin* | mingw*) 12368 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' 12369 ;; 12370 linux* | k*bsd*-gnu) 12371 link_all_deplibs_CXX=no 12372 ;; 12373 *) 12374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12375 ;; 12376 esac 12377 12378{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12379echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12380test "$ld_shlibs_CXX" = no && can_build_shared=no 12381 12382# 12383# Do we need to explicitly link libc? 12384# 12385case "x$archive_cmds_need_lc_CXX" in 12386x|xyes) 12387 # Assume -lc should be added 12388 archive_cmds_need_lc_CXX=yes 12389 12390 if test "$enable_shared" = yes && test "$GCC" = yes; then 12391 case $archive_cmds_CXX in 12392 *'~'*) 12393 # FIXME: we may have to deal with multi-command sequences. 12394 ;; 12395 '$CC '*) 12396 # Test whether the compiler implicitly links with -lc since on some 12397 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12398 # to ld, don't add -lc before -lgcc. 12399 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12400echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12401 $rm conftest* 12402 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12403 12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12405 (eval $ac_compile) 2>&5 12406 ac_status=$? 12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12408 (exit $ac_status); } 2>conftest.err; then 12409 soname=conftest 12410 lib=conftest 12411 libobjs=conftest.$ac_objext 12412 deplibs= 12413 wl=$lt_prog_compiler_wl_CXX 12414 pic_flag=$lt_prog_compiler_pic_CXX 12415 compiler_flags=-v 12416 linker_flags=-v 12417 verstring= 12418 output_objdir=. 12419 libname=conftest 12420 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12421 allow_undefined_flag_CXX= 12422 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12423 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); } 12427 then 12428 archive_cmds_need_lc_CXX=no 12429 else 12430 archive_cmds_need_lc_CXX=yes 12431 fi 12432 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12433 else 12434 cat conftest.err 1>&5 12435 fi 12436 $rm conftest* 12437 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12438echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12439 ;; 12440 esac 12441 fi 12442 ;; 12443esac 12444 12445{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12446echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12447library_names_spec= 12448libname_spec='lib$name' 12449soname_spec= 12450shrext_cmds=".so" 12451postinstall_cmds= 12452postuninstall_cmds= 12453finish_cmds= 12454finish_eval= 12455shlibpath_var= 12456shlibpath_overrides_runpath=unknown 12457version_type=none 12458dynamic_linker="$host_os ld.so" 12459sys_lib_dlsearch_path_spec="/lib /usr/lib" 12460if test "$GCC" = yes; then 12461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12462 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12463 # if the path contains ";" then we assume it to be the separator 12464 # otherwise default to the standard path separator (i.e. ":") - it is 12465 # assumed that no part of a normal pathname contains ";" but that should 12466 # okay in the real world where ";" in dirpaths is itself problematic. 12467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12468 else 12469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12470 fi 12471else 12472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12473fi 12474need_lib_prefix=unknown 12475hardcode_into_libs=no 12476 12477# when you set need_version to no, make sure it does not cause -set_version 12478# flags to be left without arguments 12479need_version=unknown 12480 12481case $host_os in 12482aix3*) 12483 version_type=linux 12484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12485 shlibpath_var=LIBPATH 12486 12487 # AIX 3 has no versioning support, so we append a major version to the name. 12488 soname_spec='${libname}${release}${shared_ext}$major' 12489 ;; 12490 12491aix4* | aix5*) 12492 version_type=linux 12493 need_lib_prefix=no 12494 need_version=no 12495 hardcode_into_libs=yes 12496 if test "$host_cpu" = ia64; then 12497 # AIX 5 supports IA64 12498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12499 shlibpath_var=LD_LIBRARY_PATH 12500 else 12501 # With GCC up to 2.95.x, collect2 would create an import file 12502 # for dependence libraries. The import file would start with 12503 # the line `#! .'. This would cause the generated library to 12504 # depend on `.', always an invalid library. This was fixed in 12505 # development snapshots of GCC prior to 3.0. 12506 case $host_os in 12507 aix4 | aix4.[01] | aix4.[01].*) 12508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12509 echo ' yes ' 12510 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12511 : 12512 else 12513 can_build_shared=no 12514 fi 12515 ;; 12516 esac 12517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12518 # soname into executable. Probably we can add versioning support to 12519 # collect2, so additional links can be useful in future. 12520 if test "$aix_use_runtimelinking" = yes; then 12521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12522 # instead of lib<name>.a to let people know that these are not 12523 # typical AIX shared libraries. 12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12525 else 12526 # We preserve .a as extension for shared libraries through AIX4.2 12527 # and later when we are not doing run time linking. 12528 library_names_spec='${libname}${release}.a $libname.a' 12529 soname_spec='${libname}${release}${shared_ext}$major' 12530 fi 12531 shlibpath_var=LIBPATH 12532 fi 12533 ;; 12534 12535amigaos*) 12536 library_names_spec='$libname.ixlibrary $libname.a' 12537 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12538 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' 12539 ;; 12540 12541beos*) 12542 library_names_spec='${libname}${shared_ext}' 12543 dynamic_linker="$host_os ld.so" 12544 shlibpath_var=LIBRARY_PATH 12545 ;; 12546 12547bsdi[45]*) 12548 version_type=linux 12549 need_version=no 12550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12551 soname_spec='${libname}${release}${shared_ext}$major' 12552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12553 shlibpath_var=LD_LIBRARY_PATH 12554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12556 # the default ld.so.conf also contains /usr/contrib/lib and 12557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12558 # libtool to hard-code these into programs 12559 ;; 12560 12561cygwin* | mingw* | pw32*) 12562 version_type=windows 12563 shrext_cmds=".dll" 12564 need_version=no 12565 need_lib_prefix=no 12566 12567 case $GCC,$host_os in 12568 yes,cygwin* | yes,mingw* | yes,pw32*) 12569 library_names_spec='$libname.dll.a' 12570 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12571 postinstall_cmds='base_file=`basename \${file}`~ 12572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12573 dldir=$destdir/`dirname \$dlpath`~ 12574 test -d \$dldir || mkdir -p \$dldir~ 12575 $install_prog $dir/$dlname \$dldir/$dlname~ 12576 chmod a+x \$dldir/$dlname' 12577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12578 dlpath=$dir/\$dldll~ 12579 $rm \$dlpath' 12580 shlibpath_overrides_runpath=yes 12581 12582 case $host_os in 12583 cygwin*) 12584 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12585 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12586 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12587 ;; 12588 mingw*) 12589 # MinGW DLLs use traditional 'lib' prefix 12590 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12591 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12592 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12593 # It is most probably a Windows format PATH printed by 12594 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12595 # path with ; separators, and with drive letters. We can handle the 12596 # drive letters (cygwin fileutils understands them), so leave them, 12597 # especially as we might pass files found there to a mingw objdump, 12598 # which wouldn't understand a cygwinified path. Ahh. 12599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12600 else 12601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12602 fi 12603 ;; 12604 pw32*) 12605 # pw32 DLLs use 'pw' prefix rather than 'lib' 12606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12607 ;; 12608 esac 12609 ;; 12610 12611 *) 12612 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12613 ;; 12614 esac 12615 dynamic_linker='Win32 ld.exe' 12616 # FIXME: first we should search . and the directory the executable is in 12617 shlibpath_var=PATH 12618 ;; 12619 12620darwin* | rhapsody*) 12621 dynamic_linker="$host_os dyld" 12622 version_type=darwin 12623 need_lib_prefix=no 12624 need_version=no 12625 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12626 soname_spec='${libname}${release}${major}$shared_ext' 12627 shlibpath_overrides_runpath=yes 12628 shlibpath_var=DYLD_LIBRARY_PATH 12629 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12630 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12631 if test "$GCC" = yes; then 12632 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"` 12633 else 12634 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12635 fi 12636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12637 ;; 12638 12639dgux*) 12640 version_type=linux 12641 need_lib_prefix=no 12642 need_version=no 12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12644 soname_spec='${libname}${release}${shared_ext}$major' 12645 shlibpath_var=LD_LIBRARY_PATH 12646 ;; 12647 12648freebsd1*) 12649 dynamic_linker=no 12650 ;; 12651 12652freebsd* | dragonfly*) 12653 # DragonFly does not have aout. When/if they implement a new 12654 # versioning mechanism, adjust this. 12655 if test -x /usr/bin/objformat; then 12656 objformat=`/usr/bin/objformat` 12657 else 12658 case $host_os in 12659 freebsd[123]*) objformat=aout ;; 12660 *) objformat=elf ;; 12661 esac 12662 fi 12663 version_type=freebsd-$objformat 12664 case $version_type in 12665 freebsd-elf*) 12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12667 need_version=no 12668 need_lib_prefix=no 12669 ;; 12670 freebsd-*) 12671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12672 need_version=yes 12673 ;; 12674 esac 12675 shlibpath_var=LD_LIBRARY_PATH 12676 case $host_os in 12677 freebsd2*) 12678 shlibpath_overrides_runpath=yes 12679 ;; 12680 freebsd3.[01]* | freebsdelf3.[01]*) 12681 shlibpath_overrides_runpath=yes 12682 hardcode_into_libs=yes 12683 ;; 12684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12686 shlibpath_overrides_runpath=no 12687 hardcode_into_libs=yes 12688 ;; 12689 freebsd*) # from 4.6 on 12690 shlibpath_overrides_runpath=yes 12691 hardcode_into_libs=yes 12692 ;; 12693 esac 12694 ;; 12695 12696gnu*) 12697 version_type=linux 12698 need_lib_prefix=no 12699 need_version=no 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12701 soname_spec='${libname}${release}${shared_ext}$major' 12702 shlibpath_var=LD_LIBRARY_PATH 12703 hardcode_into_libs=yes 12704 ;; 12705 12706hpux9* | hpux10* | hpux11*) 12707 # Give a soname corresponding to the major version so that dld.sl refuses to 12708 # link against other versions. 12709 version_type=sunos 12710 need_lib_prefix=no 12711 need_version=no 12712 case $host_cpu in 12713 ia64*) 12714 shrext_cmds='.so' 12715 hardcode_into_libs=yes 12716 dynamic_linker="$host_os dld.so" 12717 shlibpath_var=LD_LIBRARY_PATH 12718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12720 soname_spec='${libname}${release}${shared_ext}$major' 12721 if test "X$HPUX_IA64_MODE" = X32; then 12722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12723 else 12724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12725 fi 12726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12727 ;; 12728 hppa*64*) 12729 shrext_cmds='.sl' 12730 hardcode_into_libs=yes 12731 dynamic_linker="$host_os dld.sl" 12732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12735 soname_spec='${libname}${release}${shared_ext}$major' 12736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12738 ;; 12739 *) 12740 shrext_cmds='.sl' 12741 dynamic_linker="$host_os dld.sl" 12742 shlibpath_var=SHLIB_PATH 12743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12745 soname_spec='${libname}${release}${shared_ext}$major' 12746 ;; 12747 esac 12748 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12749 postinstall_cmds='chmod 555 $lib' 12750 ;; 12751 12752interix3*) 12753 version_type=linux 12754 need_lib_prefix=no 12755 need_version=no 12756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12757 soname_spec='${libname}${release}${shared_ext}$major' 12758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12759 shlibpath_var=LD_LIBRARY_PATH 12760 shlibpath_overrides_runpath=no 12761 hardcode_into_libs=yes 12762 ;; 12763 12764irix5* | irix6* | nonstopux*) 12765 case $host_os in 12766 nonstopux*) version_type=nonstopux ;; 12767 *) 12768 if test "$lt_cv_prog_gnu_ld" = yes; then 12769 version_type=linux 12770 else 12771 version_type=irix 12772 fi ;; 12773 esac 12774 need_lib_prefix=no 12775 need_version=no 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12778 case $host_os in 12779 irix5* | nonstopux*) 12780 libsuff= shlibsuff= 12781 ;; 12782 *) 12783 case $LD in # libtool.m4 will add one of these switches to LD 12784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12785 libsuff= shlibsuff= libmagic=32-bit;; 12786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12787 libsuff=32 shlibsuff=N32 libmagic=N32;; 12788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12790 *) libsuff= shlibsuff= libmagic=never-match;; 12791 esac 12792 ;; 12793 esac 12794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12795 shlibpath_overrides_runpath=no 12796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12798 hardcode_into_libs=yes 12799 ;; 12800 12801# No shared lib support for Linux oldld, aout, or coff. 12802linux*oldld* | linux*aout* | linux*coff*) 12803 dynamic_linker=no 12804 ;; 12805 12806# This must be Linux ELF. 12807linux* | k*bsd*-gnu) 12808 version_type=linux 12809 need_lib_prefix=no 12810 need_version=no 12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12812 soname_spec='${libname}${release}${shared_ext}$major' 12813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12814 shlibpath_var=LD_LIBRARY_PATH 12815 shlibpath_overrides_runpath=no 12816 # This implies no fast_install, which is unacceptable. 12817 # Some rework will be needed to allow for fast_install 12818 # before this can be enabled. 12819 hardcode_into_libs=yes 12820 12821 # Append ld.so.conf contents to the search path 12822 if test -f /etc/ld.so.conf; then 12823 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' ' '` 12824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12825 fi 12826 12827 # We used to test for /lib/ld.so.1 and disable shared libraries on 12828 # powerpc, because MkLinux only supported shared libraries with the 12829 # GNU dynamic linker. Since this was broken with cross compilers, 12830 # most powerpc-linux boxes support dynamic linking these days and 12831 # people can always --disable-shared, the test was removed, and we 12832 # assume the GNU/Linux dynamic linker is in use. 12833 dynamic_linker='GNU/Linux ld.so' 12834 ;; 12835 12836netbsdelf*-gnu) 12837 version_type=linux 12838 need_lib_prefix=no 12839 need_version=no 12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12841 soname_spec='${libname}${release}${shared_ext}$major' 12842 shlibpath_var=LD_LIBRARY_PATH 12843 shlibpath_overrides_runpath=no 12844 hardcode_into_libs=yes 12845 dynamic_linker='NetBSD ld.elf_so' 12846 ;; 12847 12848netbsd*) 12849 version_type=sunos 12850 need_lib_prefix=no 12851 need_version=no 12852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12855 dynamic_linker='NetBSD (a.out) ld.so' 12856 else 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12858 soname_spec='${libname}${release}${shared_ext}$major' 12859 dynamic_linker='NetBSD ld.elf_so' 12860 fi 12861 shlibpath_var=LD_LIBRARY_PATH 12862 shlibpath_overrides_runpath=yes 12863 hardcode_into_libs=yes 12864 ;; 12865 12866newsos6) 12867 version_type=linux 12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12869 shlibpath_var=LD_LIBRARY_PATH 12870 shlibpath_overrides_runpath=yes 12871 ;; 12872 12873nto-qnx*) 12874 version_type=linux 12875 need_lib_prefix=no 12876 need_version=no 12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12878 soname_spec='${libname}${release}${shared_ext}$major' 12879 shlibpath_var=LD_LIBRARY_PATH 12880 shlibpath_overrides_runpath=yes 12881 ;; 12882 12883openbsd*) 12884 version_type=sunos 12885 sys_lib_dlsearch_path_spec="/usr/lib" 12886 need_lib_prefix=no 12887 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12888 case $host_os in 12889 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12890 *) need_version=no ;; 12891 esac 12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12894 shlibpath_var=LD_LIBRARY_PATH 12895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12896 case $host_os in 12897 openbsd2.[89] | openbsd2.[89].*) 12898 shlibpath_overrides_runpath=no 12899 ;; 12900 *) 12901 shlibpath_overrides_runpath=yes 12902 ;; 12903 esac 12904 else 12905 shlibpath_overrides_runpath=yes 12906 fi 12907 ;; 12908 12909os2*) 12910 libname_spec='$name' 12911 shrext_cmds=".dll" 12912 need_lib_prefix=no 12913 library_names_spec='$libname${shared_ext} $libname.a' 12914 dynamic_linker='OS/2 ld.exe' 12915 shlibpath_var=LIBPATH 12916 ;; 12917 12918osf3* | osf4* | osf5*) 12919 version_type=osf 12920 need_lib_prefix=no 12921 need_version=no 12922 soname_spec='${libname}${release}${shared_ext}$major' 12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12924 shlibpath_var=LD_LIBRARY_PATH 12925 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12926 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12927 ;; 12928 12929solaris*) 12930 version_type=linux 12931 need_lib_prefix=no 12932 need_version=no 12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12934 soname_spec='${libname}${release}${shared_ext}$major' 12935 shlibpath_var=LD_LIBRARY_PATH 12936 shlibpath_overrides_runpath=yes 12937 hardcode_into_libs=yes 12938 # ldd complains unless libraries are executable 12939 postinstall_cmds='chmod +x $lib' 12940 ;; 12941 12942sunos4*) 12943 version_type=sunos 12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12946 shlibpath_var=LD_LIBRARY_PATH 12947 shlibpath_overrides_runpath=yes 12948 if test "$with_gnu_ld" = yes; then 12949 need_lib_prefix=no 12950 fi 12951 need_version=yes 12952 ;; 12953 12954sysv4 | sysv4.3*) 12955 version_type=linux 12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12957 soname_spec='${libname}${release}${shared_ext}$major' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 case $host_vendor in 12960 sni) 12961 shlibpath_overrides_runpath=no 12962 need_lib_prefix=no 12963 export_dynamic_flag_spec='${wl}-Blargedynsym' 12964 runpath_var=LD_RUN_PATH 12965 ;; 12966 siemens) 12967 need_lib_prefix=no 12968 ;; 12969 motorola) 12970 need_lib_prefix=no 12971 need_version=no 12972 shlibpath_overrides_runpath=no 12973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12974 ;; 12975 esac 12976 ;; 12977 12978sysv4*MP*) 12979 if test -d /usr/nec ;then 12980 version_type=linux 12981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12982 soname_spec='$libname${shared_ext}.$major' 12983 shlibpath_var=LD_LIBRARY_PATH 12984 fi 12985 ;; 12986 12987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12988 version_type=freebsd-elf 12989 need_lib_prefix=no 12990 need_version=no 12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12992 soname_spec='${libname}${release}${shared_ext}$major' 12993 shlibpath_var=LD_LIBRARY_PATH 12994 hardcode_into_libs=yes 12995 if test "$with_gnu_ld" = yes; then 12996 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12997 shlibpath_overrides_runpath=no 12998 else 12999 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13000 shlibpath_overrides_runpath=yes 13001 case $host_os in 13002 sco3.2v5*) 13003 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13004 ;; 13005 esac 13006 fi 13007 sys_lib_dlsearch_path_spec='/usr/lib' 13008 ;; 13009 13010uts4*) 13011 version_type=linux 13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13013 soname_spec='${libname}${release}${shared_ext}$major' 13014 shlibpath_var=LD_LIBRARY_PATH 13015 ;; 13016 13017*) 13018 dynamic_linker=no 13019 ;; 13020esac 13021{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13022echo "${ECHO_T}$dynamic_linker" >&6; } 13023test "$dynamic_linker" = no && can_build_shared=no 13024 13025variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13026if test "$GCC" = yes; then 13027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13028fi 13029 13030{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13031echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13032hardcode_action_CXX= 13033if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13034 test -n "$runpath_var_CXX" || \ 13035 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13036 13037 # We can hardcode non-existant directories. 13038 if test "$hardcode_direct_CXX" != no && 13039 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13040 # have to relink, otherwise we might link with an installed library 13041 # when we should be linking with a yet-to-be-installed one 13042 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13043 test "$hardcode_minus_L_CXX" != no; then 13044 # Linking always hardcodes the temporary library directory. 13045 hardcode_action_CXX=relink 13046 else 13047 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13048 hardcode_action_CXX=immediate 13049 fi 13050else 13051 # We cannot hardcode anything, or else we can only hardcode existing 13052 # directories. 13053 hardcode_action_CXX=unsupported 13054fi 13055{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13056echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13057 13058if test "$hardcode_action_CXX" = relink; then 13059 # Fast installation is not supported 13060 enable_fast_install=no 13061elif test "$shlibpath_overrides_runpath" = yes || 13062 test "$enable_shared" = no; then 13063 # Fast installation is not necessary 13064 enable_fast_install=needless 13065fi 13066 13067 13068# The else clause should only fire when bootstrapping the 13069# libtool distribution, otherwise you forgot to ship ltmain.sh 13070# with your package, and you will get complaints that there are 13071# no rules to generate ltmain.sh. 13072if test -f "$ltmain"; then 13073 # See if we are running on zsh, and set the options which allow our commands through 13074 # without removal of \ escapes. 13075 if test -n "${ZSH_VERSION+set}" ; then 13076 setopt NO_GLOB_SUBST 13077 fi 13078 # Now quote all the things that may contain metacharacters while being 13079 # careful not to overquote the AC_SUBSTed values. We take copies of the 13080 # variables and quote the copies for generation of the libtool script. 13081 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13082 SED SHELL STRIP \ 13083 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13084 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13085 deplibs_check_method reload_flag reload_cmds need_locks \ 13086 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13087 lt_cv_sys_global_symbol_to_c_name_address \ 13088 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13089 old_postinstall_cmds old_postuninstall_cmds \ 13090 compiler_CXX \ 13091 CC_CXX \ 13092 LD_CXX \ 13093 lt_prog_compiler_wl_CXX \ 13094 lt_prog_compiler_pic_CXX \ 13095 lt_prog_compiler_static_CXX \ 13096 lt_prog_compiler_no_builtin_flag_CXX \ 13097 export_dynamic_flag_spec_CXX \ 13098 thread_safe_flag_spec_CXX \ 13099 whole_archive_flag_spec_CXX \ 13100 enable_shared_with_static_runtimes_CXX \ 13101 old_archive_cmds_CXX \ 13102 old_archive_from_new_cmds_CXX \ 13103 predep_objects_CXX \ 13104 postdep_objects_CXX \ 13105 predeps_CXX \ 13106 postdeps_CXX \ 13107 compiler_lib_search_path_CXX \ 13108 archive_cmds_CXX \ 13109 archive_expsym_cmds_CXX \ 13110 postinstall_cmds_CXX \ 13111 postuninstall_cmds_CXX \ 13112 old_archive_from_expsyms_cmds_CXX \ 13113 allow_undefined_flag_CXX \ 13114 no_undefined_flag_CXX \ 13115 export_symbols_cmds_CXX \ 13116 hardcode_libdir_flag_spec_CXX \ 13117 hardcode_libdir_flag_spec_ld_CXX \ 13118 hardcode_libdir_separator_CXX \ 13119 hardcode_automatic_CXX \ 13120 module_cmds_CXX \ 13121 module_expsym_cmds_CXX \ 13122 lt_cv_prog_compiler_c_o_CXX \ 13123 exclude_expsyms_CXX \ 13124 include_expsyms_CXX; do 13125 13126 case $var in 13127 old_archive_cmds_CXX | \ 13128 old_archive_from_new_cmds_CXX | \ 13129 archive_cmds_CXX | \ 13130 archive_expsym_cmds_CXX | \ 13131 module_cmds_CXX | \ 13132 module_expsym_cmds_CXX | \ 13133 old_archive_from_expsyms_cmds_CXX | \ 13134 export_symbols_cmds_CXX | \ 13135 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13136 postinstall_cmds | postuninstall_cmds | \ 13137 old_postinstall_cmds | old_postuninstall_cmds | \ 13138 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13139 # Double-quote double-evaled strings. 13140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13141 ;; 13142 *) 13143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13144 ;; 13145 esac 13146 done 13147 13148 case $lt_echo in 13149 *'\$0 --fallback-echo"') 13150 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13151 ;; 13152 esac 13153 13154cfgfile="$ofile" 13155 13156 cat <<__EOF__ >> "$cfgfile" 13157# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13158 13159# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13160 13161# Shell to use when invoking shell scripts. 13162SHELL=$lt_SHELL 13163 13164# Whether or not to build shared libraries. 13165build_libtool_libs=$enable_shared 13166 13167# Whether or not to build static libraries. 13168build_old_libs=$enable_static 13169 13170# Whether or not to add -lc for building shared libraries. 13171build_libtool_need_lc=$archive_cmds_need_lc_CXX 13172 13173# Whether or not to disallow shared libs when runtime libs are static 13174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13175 13176# Whether or not to optimize for fast installation. 13177fast_install=$enable_fast_install 13178 13179# The host system. 13180host_alias=$host_alias 13181host=$host 13182host_os=$host_os 13183 13184# The build system. 13185build_alias=$build_alias 13186build=$build 13187build_os=$build_os 13188 13189# An echo program that does not interpret backslashes. 13190echo=$lt_echo 13191 13192# The archiver. 13193AR=$lt_AR 13194AR_FLAGS=$lt_AR_FLAGS 13195 13196# A C compiler. 13197LTCC=$lt_LTCC 13198 13199# LTCC compiler flags. 13200LTCFLAGS=$lt_LTCFLAGS 13201 13202# A language-specific compiler. 13203CC=$lt_compiler_CXX 13204 13205# Is the compiler the GNU C compiler? 13206with_gcc=$GCC_CXX 13207 13208# An ERE matcher. 13209EGREP=$lt_EGREP 13210 13211# The linker used to build libraries. 13212LD=$lt_LD_CXX 13213 13214# Whether we need hard or soft links. 13215LN_S=$lt_LN_S 13216 13217# A BSD-compatible nm program. 13218NM=$lt_NM 13219 13220# A symbol stripping program 13221STRIP=$lt_STRIP 13222 13223# Used to examine libraries when file_magic_cmd begins "file" 13224MAGIC_CMD=$MAGIC_CMD 13225 13226# Used on cygwin: DLL creation program. 13227DLLTOOL="$DLLTOOL" 13228 13229# Used on cygwin: object dumper. 13230OBJDUMP="$OBJDUMP" 13231 13232# Used on cygwin: assembler. 13233AS="$AS" 13234 13235# The name of the directory that contains temporary libtool files. 13236objdir=$objdir 13237 13238# How to create reloadable object files. 13239reload_flag=$lt_reload_flag 13240reload_cmds=$lt_reload_cmds 13241 13242# How to pass a linker flag through the compiler. 13243wl=$lt_lt_prog_compiler_wl_CXX 13244 13245# Object file suffix (normally "o"). 13246objext="$ac_objext" 13247 13248# Old archive suffix (normally "a"). 13249libext="$libext" 13250 13251# Shared library suffix (normally ".so"). 13252shrext_cmds='$shrext_cmds' 13253 13254# Executable file suffix (normally ""). 13255exeext="$exeext" 13256 13257# Additional compiler flags for building library objects. 13258pic_flag=$lt_lt_prog_compiler_pic_CXX 13259pic_mode=$pic_mode 13260 13261# What is the maximum length of a command? 13262max_cmd_len=$lt_cv_sys_max_cmd_len 13263 13264# Does compiler simultaneously support -c and -o options? 13265compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13266 13267# Must we lock files when doing compilation? 13268need_locks=$lt_need_locks 13269 13270# Do we need the lib prefix for modules? 13271need_lib_prefix=$need_lib_prefix 13272 13273# Do we need a version for libraries? 13274need_version=$need_version 13275 13276# Whether dlopen is supported. 13277dlopen_support=$enable_dlopen 13278 13279# Whether dlopen of programs is supported. 13280dlopen_self=$enable_dlopen_self 13281 13282# Whether dlopen of statically linked programs is supported. 13283dlopen_self_static=$enable_dlopen_self_static 13284 13285# Compiler flag to prevent dynamic linking. 13286link_static_flag=$lt_lt_prog_compiler_static_CXX 13287 13288# Compiler flag to turn off builtin functions. 13289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13290 13291# Compiler flag to allow reflexive dlopens. 13292export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13293 13294# Compiler flag to generate shared objects directly from archives. 13295whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13296 13297# Compiler flag to generate thread-safe objects. 13298thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13299 13300# Library versioning type. 13301version_type=$version_type 13302 13303# Format of library name prefix. 13304libname_spec=$lt_libname_spec 13305 13306# List of archive names. First name is the real one, the rest are links. 13307# The last name is the one that the linker finds with -lNAME. 13308library_names_spec=$lt_library_names_spec 13309 13310# The coded name of the library, if different from the real name. 13311soname_spec=$lt_soname_spec 13312 13313# Commands used to build and install an old-style archive. 13314RANLIB=$lt_RANLIB 13315old_archive_cmds=$lt_old_archive_cmds_CXX 13316old_postinstall_cmds=$lt_old_postinstall_cmds 13317old_postuninstall_cmds=$lt_old_postuninstall_cmds 13318 13319# Create an old-style archive from a shared archive. 13320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13321 13322# Create a temporary old-style archive to link instead of a shared archive. 13323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13324 13325# Commands used to build and install a shared archive. 13326archive_cmds=$lt_archive_cmds_CXX 13327archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13328postinstall_cmds=$lt_postinstall_cmds 13329postuninstall_cmds=$lt_postuninstall_cmds 13330 13331# Commands used to build a loadable module (assumed same as above if empty) 13332module_cmds=$lt_module_cmds_CXX 13333module_expsym_cmds=$lt_module_expsym_cmds_CXX 13334 13335# Commands to strip libraries. 13336old_striplib=$lt_old_striplib 13337striplib=$lt_striplib 13338 13339# Dependencies to place before the objects being linked to create a 13340# shared library. 13341predep_objects=$lt_predep_objects_CXX 13342 13343# Dependencies to place after the objects being linked to create a 13344# shared library. 13345postdep_objects=$lt_postdep_objects_CXX 13346 13347# Dependencies to place before the objects being linked to create a 13348# shared library. 13349predeps=$lt_predeps_CXX 13350 13351# Dependencies to place after the objects being linked to create a 13352# shared library. 13353postdeps=$lt_postdeps_CXX 13354 13355# The library search path used internally by the compiler when linking 13356# a shared library. 13357compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13358 13359# Method to check whether dependent libraries are shared objects. 13360deplibs_check_method=$lt_deplibs_check_method 13361 13362# Command to use when deplibs_check_method == file_magic. 13363file_magic_cmd=$lt_file_magic_cmd 13364 13365# Flag that allows shared libraries with undefined symbols to be built. 13366allow_undefined_flag=$lt_allow_undefined_flag_CXX 13367 13368# Flag that forces no undefined symbols. 13369no_undefined_flag=$lt_no_undefined_flag_CXX 13370 13371# Commands used to finish a libtool library installation in a directory. 13372finish_cmds=$lt_finish_cmds 13373 13374# Same as above, but a single script fragment to be evaled but not shown. 13375finish_eval=$lt_finish_eval 13376 13377# Take the output of nm and produce a listing of raw symbols and C names. 13378global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13379 13380# Transform the output of nm in a proper C declaration 13381global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13382 13383# Transform the output of nm in a C name address pair 13384global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13385 13386# This is the shared library runtime path variable. 13387runpath_var=$runpath_var 13388 13389# This is the shared library path variable. 13390shlibpath_var=$shlibpath_var 13391 13392# Is shlibpath searched before the hard-coded library search path? 13393shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13394 13395# How to hardcode a shared library path into an executable. 13396hardcode_action=$hardcode_action_CXX 13397 13398# Whether we should hardcode library paths into libraries. 13399hardcode_into_libs=$hardcode_into_libs 13400 13401# Flag to hardcode \$libdir into a binary during linking. 13402# This must work even if \$libdir does not exist. 13403hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13404 13405# If ld is used when linking, flag to hardcode \$libdir into 13406# a binary during linking. This must work even if \$libdir does 13407# not exist. 13408hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13409 13410# Whether we need a single -rpath flag with a separated argument. 13411hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13412 13413# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13414# resulting binary. 13415hardcode_direct=$hardcode_direct_CXX 13416 13417# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13418# resulting binary. 13419hardcode_minus_L=$hardcode_minus_L_CXX 13420 13421# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13422# the resulting binary. 13423hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13424 13425# Set to yes if building a shared library automatically hardcodes DIR into the library 13426# and all subsequent libraries and executables linked against it. 13427hardcode_automatic=$hardcode_automatic_CXX 13428 13429# Variables whose values should be saved in libtool wrapper scripts and 13430# restored at relink time. 13431variables_saved_for_relink="$variables_saved_for_relink" 13432 13433# Whether libtool must link a program against all its dependency libraries. 13434link_all_deplibs=$link_all_deplibs_CXX 13435 13436# Compile-time system search path for libraries 13437sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13438 13439# Run-time system search path for libraries 13440sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13441 13442# Fix the shell variable \$srcfile for the compiler. 13443fix_srcfile_path="$fix_srcfile_path_CXX" 13444 13445# Set to yes if exported symbols are required. 13446always_export_symbols=$always_export_symbols_CXX 13447 13448# The commands to list exported symbols. 13449export_symbols_cmds=$lt_export_symbols_cmds_CXX 13450 13451# The commands to extract the exported symbol list from a shared archive. 13452extract_expsyms_cmds=$lt_extract_expsyms_cmds 13453 13454# Symbols that should not be listed in the preloaded symbols. 13455exclude_expsyms=$lt_exclude_expsyms_CXX 13456 13457# Symbols that must always be exported. 13458include_expsyms=$lt_include_expsyms_CXX 13459 13460# ### END LIBTOOL TAG CONFIG: $tagname 13461 13462__EOF__ 13463 13464 13465else 13466 # If there is no Makefile yet, we rely on a make rule to execute 13467 # `config.status --recheck' to rerun these tests and create the 13468 # libtool script then. 13469 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13470 if test -f "$ltmain_in"; then 13471 test -f Makefile && make "$ltmain" 13472 fi 13473fi 13474 13475 13476ac_ext=c 13477ac_cpp='$CPP $CPPFLAGS' 13478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13480ac_compiler_gnu=$ac_cv_c_compiler_gnu 13481 13482CC=$lt_save_CC 13483LDCXX=$LD 13484LD=$lt_save_LD 13485GCC=$lt_save_GCC 13486with_gnu_ldcxx=$with_gnu_ld 13487with_gnu_ld=$lt_save_with_gnu_ld 13488lt_cv_path_LDCXX=$lt_cv_path_LD 13489lt_cv_path_LD=$lt_save_path_LD 13490lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13491lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13492 13493 else 13494 tagname="" 13495 fi 13496 ;; 13497 13498 F77) 13499 if test -n "$F77" && test "X$F77" != "Xno"; then 13500 13501ac_ext=f 13502ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13503ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13504ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13505 13506 13507archive_cmds_need_lc_F77=no 13508allow_undefined_flag_F77= 13509always_export_symbols_F77=no 13510archive_expsym_cmds_F77= 13511export_dynamic_flag_spec_F77= 13512hardcode_direct_F77=no 13513hardcode_libdir_flag_spec_F77= 13514hardcode_libdir_flag_spec_ld_F77= 13515hardcode_libdir_separator_F77= 13516hardcode_minus_L_F77=no 13517hardcode_automatic_F77=no 13518module_cmds_F77= 13519module_expsym_cmds_F77= 13520link_all_deplibs_F77=unknown 13521old_archive_cmds_F77=$old_archive_cmds 13522no_undefined_flag_F77= 13523whole_archive_flag_spec_F77= 13524enable_shared_with_static_runtimes_F77=no 13525 13526# Source file extension for f77 test sources. 13527ac_ext=f 13528 13529# Object file extension for compiled f77 test sources. 13530objext=o 13531objext_F77=$objext 13532 13533# Code to be used in simple compile tests 13534lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13535 13536# Code to be used in simple link tests 13537lt_simple_link_test_code=" program t\n end\n" 13538 13539# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13540 13541# If no C compiler was specified, use CC. 13542LTCC=${LTCC-"$CC"} 13543 13544# If no C compiler flags were specified, use CFLAGS. 13545LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13546 13547# Allow CC to be a program name with arguments. 13548compiler=$CC 13549 13550 13551# save warnings/boilerplate of simple test code 13552ac_outfile=conftest.$ac_objext 13553printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13555_lt_compiler_boilerplate=`cat conftest.err` 13556$rm conftest* 13557 13558ac_outfile=conftest.$ac_objext 13559printf "$lt_simple_link_test_code" >conftest.$ac_ext 13560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13561_lt_linker_boilerplate=`cat conftest.err` 13562$rm conftest* 13563 13564 13565# Allow CC to be a program name with arguments. 13566lt_save_CC="$CC" 13567CC=${F77-"f77"} 13568compiler=$CC 13569compiler_F77=$CC 13570for cc_temp in $compiler""; do 13571 case $cc_temp in 13572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13574 \-*) ;; 13575 *) break;; 13576 esac 13577done 13578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13579 13580 13581{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13582echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13583{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13584echo "${ECHO_T}$can_build_shared" >&6; } 13585 13586{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13587echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13588test "$can_build_shared" = "no" && enable_shared=no 13589 13590# On AIX, shared libraries and static libraries use the same namespace, and 13591# are all built from PIC. 13592case $host_os in 13593aix3*) 13594 test "$enable_shared" = yes && enable_static=no 13595 if test -n "$RANLIB"; then 13596 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13597 postinstall_cmds='$RANLIB $lib' 13598 fi 13599 ;; 13600aix4* | aix5*) 13601 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13602 test "$enable_shared" = yes && enable_static=no 13603 fi 13604 ;; 13605esac 13606{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13607echo "${ECHO_T}$enable_shared" >&6; } 13608 13609{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13610echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13611# Make sure either enable_shared or enable_static is yes. 13612test "$enable_shared" = yes || enable_static=yes 13613{ echo "$as_me:$LINENO: result: $enable_static" >&5 13614echo "${ECHO_T}$enable_static" >&6; } 13615 13616GCC_F77="$G77" 13617LD_F77="$LD" 13618 13619lt_prog_compiler_wl_F77= 13620lt_prog_compiler_pic_F77= 13621lt_prog_compiler_static_F77= 13622 13623{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13624echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13625 13626 if test "$GCC" = yes; then 13627 lt_prog_compiler_wl_F77='-Wl,' 13628 lt_prog_compiler_static_F77='-static' 13629 13630 case $host_os in 13631 aix*) 13632 # All AIX code is PIC. 13633 if test "$host_cpu" = ia64; then 13634 # AIX 5 now supports IA64 processor 13635 lt_prog_compiler_static_F77='-Bstatic' 13636 fi 13637 ;; 13638 13639 amigaos*) 13640 # FIXME: we need at least 68020 code to build shared libraries, but 13641 # adding the `-m68020' flag to GCC prevents building anything better, 13642 # like `-m68040'. 13643 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13644 ;; 13645 13646 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13647 # PIC is the default for these OSes. 13648 ;; 13649 13650 mingw* | pw32* | os2*) 13651 # This hack is so that the source file can tell whether it is being 13652 # built for inclusion in a dll (and should export symbols for example). 13653 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13654 ;; 13655 13656 darwin* | rhapsody*) 13657 # PIC is the default on this platform 13658 # Common symbols not allowed in MH_DYLIB files 13659 lt_prog_compiler_pic_F77='-fno-common' 13660 ;; 13661 13662 interix3*) 13663 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13664 # Instead, we relocate shared libraries at runtime. 13665 ;; 13666 13667 msdosdjgpp*) 13668 # Just because we use GCC doesn't mean we suddenly get shared libraries 13669 # on systems that don't support them. 13670 lt_prog_compiler_can_build_shared_F77=no 13671 enable_shared=no 13672 ;; 13673 13674 sysv4*MP*) 13675 if test -d /usr/nec; then 13676 lt_prog_compiler_pic_F77=-Kconform_pic 13677 fi 13678 ;; 13679 13680 hpux*) 13681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13682 # not for PA HP-UX. 13683 case $host_cpu in 13684 hppa*64*|ia64*) 13685 # +Z the default 13686 ;; 13687 *) 13688 lt_prog_compiler_pic_F77='-fPIC' 13689 ;; 13690 esac 13691 ;; 13692 13693 *) 13694 lt_prog_compiler_pic_F77='-fPIC' 13695 ;; 13696 esac 13697 else 13698 # PORTME Check for flag to pass linker flags through the system compiler. 13699 case $host_os in 13700 aix*) 13701 lt_prog_compiler_wl_F77='-Wl,' 13702 if test "$host_cpu" = ia64; then 13703 # AIX 5 now supports IA64 processor 13704 lt_prog_compiler_static_F77='-Bstatic' 13705 else 13706 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13707 fi 13708 ;; 13709 darwin*) 13710 # PIC is the default on this platform 13711 # Common symbols not allowed in MH_DYLIB files 13712 case $cc_basename in 13713 xlc*) 13714 lt_prog_compiler_pic_F77='-qnocommon' 13715 lt_prog_compiler_wl_F77='-Wl,' 13716 ;; 13717 esac 13718 ;; 13719 13720 mingw* | pw32* | os2*) 13721 # This hack is so that the source file can tell whether it is being 13722 # built for inclusion in a dll (and should export symbols for example). 13723 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13724 ;; 13725 13726 hpux9* | hpux10* | hpux11*) 13727 lt_prog_compiler_wl_F77='-Wl,' 13728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13729 # not for PA HP-UX. 13730 case $host_cpu in 13731 hppa*64*|ia64*) 13732 # +Z the default 13733 ;; 13734 *) 13735 lt_prog_compiler_pic_F77='+Z' 13736 ;; 13737 esac 13738 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13739 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13740 ;; 13741 13742 irix5* | irix6* | nonstopux*) 13743 lt_prog_compiler_wl_F77='-Wl,' 13744 # PIC (with -KPIC) is the default. 13745 lt_prog_compiler_static_F77='-non_shared' 13746 ;; 13747 13748 newsos6) 13749 lt_prog_compiler_pic_F77='-KPIC' 13750 lt_prog_compiler_static_F77='-Bstatic' 13751 ;; 13752 13753 linux* | k*bsd*-gnu) 13754 case $cc_basename in 13755 icc* | ecc*) 13756 lt_prog_compiler_wl_F77='-Wl,' 13757 lt_prog_compiler_pic_F77='-KPIC' 13758 lt_prog_compiler_static_F77='-static' 13759 ;; 13760 pgcc* | pgf77* | pgf90* | pgf95*) 13761 # Portland Group compilers (*not* the Pentium gcc compiler, 13762 # which looks to be a dead project) 13763 lt_prog_compiler_wl_F77='-Wl,' 13764 lt_prog_compiler_pic_F77='-fpic' 13765 lt_prog_compiler_static_F77='-Bstatic' 13766 ;; 13767 ccc*) 13768 lt_prog_compiler_wl_F77='-Wl,' 13769 # All Alpha code is PIC. 13770 lt_prog_compiler_static_F77='-non_shared' 13771 ;; 13772 esac 13773 ;; 13774 13775 osf3* | osf4* | osf5*) 13776 lt_prog_compiler_wl_F77='-Wl,' 13777 # All OSF/1 code is PIC. 13778 lt_prog_compiler_static_F77='-non_shared' 13779 ;; 13780 13781 solaris*) 13782 lt_prog_compiler_pic_F77='-KPIC' 13783 lt_prog_compiler_static_F77='-Bstatic' 13784 case $cc_basename in 13785 f77* | f90* | f95*) 13786 lt_prog_compiler_wl_F77='-Qoption ld ';; 13787 *) 13788 lt_prog_compiler_wl_F77='-Wl,';; 13789 esac 13790 ;; 13791 13792 sunos4*) 13793 lt_prog_compiler_wl_F77='-Qoption ld ' 13794 lt_prog_compiler_pic_F77='-PIC' 13795 lt_prog_compiler_static_F77='-Bstatic' 13796 ;; 13797 13798 sysv4 | sysv4.2uw2* | sysv4.3*) 13799 lt_prog_compiler_wl_F77='-Wl,' 13800 lt_prog_compiler_pic_F77='-KPIC' 13801 lt_prog_compiler_static_F77='-Bstatic' 13802 ;; 13803 13804 sysv4*MP*) 13805 if test -d /usr/nec ;then 13806 lt_prog_compiler_pic_F77='-Kconform_pic' 13807 lt_prog_compiler_static_F77='-Bstatic' 13808 fi 13809 ;; 13810 13811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13812 lt_prog_compiler_wl_F77='-Wl,' 13813 lt_prog_compiler_pic_F77='-KPIC' 13814 lt_prog_compiler_static_F77='-Bstatic' 13815 ;; 13816 13817 unicos*) 13818 lt_prog_compiler_wl_F77='-Wl,' 13819 lt_prog_compiler_can_build_shared_F77=no 13820 ;; 13821 13822 uts4*) 13823 lt_prog_compiler_pic_F77='-pic' 13824 lt_prog_compiler_static_F77='-Bstatic' 13825 ;; 13826 13827 *) 13828 lt_prog_compiler_can_build_shared_F77=no 13829 ;; 13830 esac 13831 fi 13832 13833{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13834echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13835 13836# 13837# Check to make sure the PIC flag actually works. 13838# 13839if test -n "$lt_prog_compiler_pic_F77"; then 13840 13841{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13842echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13843if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13844 echo $ECHO_N "(cached) $ECHO_C" >&6 13845else 13846 lt_prog_compiler_pic_works_F77=no 13847 ac_outfile=conftest.$ac_objext 13848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13849 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13850 # Insert the option either (1) after the last *FLAGS variable, or 13851 # (2) before a word containing "conftest.", or (3) at the end. 13852 # Note that $ac_compile itself does not contain backslashes and begins 13853 # with a dollar sign (not a hyphen), so the echo should work correctly. 13854 # The option is referenced via a variable to avoid confusing sed. 13855 lt_compile=`echo "$ac_compile" | $SED \ 13856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13858 -e 's:$: $lt_compiler_flag:'` 13859 (eval echo "\"\$as_me:13859: $lt_compile\"" >&5) 13860 (eval "$lt_compile" 2>conftest.err) 13861 ac_status=$? 13862 cat conftest.err >&5 13863 echo "$as_me:13863: \$? = $ac_status" >&5 13864 if (exit $ac_status) && test -s "$ac_outfile"; then 13865 # The compiler can only warn and ignore the option if not recognized 13866 # So say no if there are warnings other than the usual output. 13867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13870 lt_prog_compiler_pic_works_F77=yes 13871 fi 13872 fi 13873 $rm conftest* 13874 13875fi 13876{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13877echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13878 13879if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13880 case $lt_prog_compiler_pic_F77 in 13881 "" | " "*) ;; 13882 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13883 esac 13884else 13885 lt_prog_compiler_pic_F77= 13886 lt_prog_compiler_can_build_shared_F77=no 13887fi 13888 13889fi 13890case $host_os in 13891 # For platforms which do not support PIC, -DPIC is meaningless: 13892 *djgpp*) 13893 lt_prog_compiler_pic_F77= 13894 ;; 13895 *) 13896 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13897 ;; 13898esac 13899 13900# 13901# Check to make sure the static flag actually works. 13902# 13903wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13904{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13905echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13906if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13907 echo $ECHO_N "(cached) $ECHO_C" >&6 13908else 13909 lt_prog_compiler_static_works_F77=no 13910 save_LDFLAGS="$LDFLAGS" 13911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13912 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13914 # The linker can only warn and ignore the option if not recognized 13915 # So say no if there are warnings 13916 if test -s conftest.err; then 13917 # Append any errors to the config.log. 13918 cat conftest.err 1>&5 13919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13921 if diff conftest.exp conftest.er2 >/dev/null; then 13922 lt_prog_compiler_static_works_F77=yes 13923 fi 13924 else 13925 lt_prog_compiler_static_works_F77=yes 13926 fi 13927 fi 13928 $rm conftest* 13929 LDFLAGS="$save_LDFLAGS" 13930 13931fi 13932{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13933echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13934 13935if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13936 : 13937else 13938 lt_prog_compiler_static_F77= 13939fi 13940 13941 13942{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13943echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13944if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13945 echo $ECHO_N "(cached) $ECHO_C" >&6 13946else 13947 lt_cv_prog_compiler_c_o_F77=no 13948 $rm -r conftest 2>/dev/null 13949 mkdir conftest 13950 cd conftest 13951 mkdir out 13952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13953 13954 lt_compiler_flag="-o out/conftest2.$ac_objext" 13955 # Insert the option either (1) after the last *FLAGS variable, or 13956 # (2) before a word containing "conftest.", or (3) at the end. 13957 # Note that $ac_compile itself does not contain backslashes and begins 13958 # with a dollar sign (not a hyphen), so the echo should work correctly. 13959 lt_compile=`echo "$ac_compile" | $SED \ 13960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13962 -e 's:$: $lt_compiler_flag:'` 13963 (eval echo "\"\$as_me:13963: $lt_compile\"" >&5) 13964 (eval "$lt_compile" 2>out/conftest.err) 13965 ac_status=$? 13966 cat out/conftest.err >&5 13967 echo "$as_me:13967: \$? = $ac_status" >&5 13968 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13969 then 13970 # The compiler can only warn and ignore the option if not recognized 13971 # So say no if there are warnings 13972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13975 lt_cv_prog_compiler_c_o_F77=yes 13976 fi 13977 fi 13978 chmod u+w . 2>&5 13979 $rm conftest* 13980 # SGI C++ compiler will create directory out/ii_files/ for 13981 # template instantiation 13982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13983 $rm out/* && rmdir out 13984 cd .. 13985 rmdir conftest 13986 $rm conftest* 13987 13988fi 13989{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13990echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13991 13992 13993hard_links="nottested" 13994if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13995 # do not overwrite the value of need_locks provided by the user 13996 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13997echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13998 hard_links=yes 13999 $rm conftest* 14000 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14001 touch conftest.a 14002 ln conftest.a conftest.b 2>&5 || hard_links=no 14003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14004 { echo "$as_me:$LINENO: result: $hard_links" >&5 14005echo "${ECHO_T}$hard_links" >&6; } 14006 if test "$hard_links" = no; then 14007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14008echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14009 need_locks=warn 14010 fi 14011else 14012 need_locks=no 14013fi 14014 14015{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14016echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14017 14018 runpath_var= 14019 allow_undefined_flag_F77= 14020 enable_shared_with_static_runtimes_F77=no 14021 archive_cmds_F77= 14022 archive_expsym_cmds_F77= 14023 old_archive_From_new_cmds_F77= 14024 old_archive_from_expsyms_cmds_F77= 14025 export_dynamic_flag_spec_F77= 14026 whole_archive_flag_spec_F77= 14027 thread_safe_flag_spec_F77= 14028 hardcode_libdir_flag_spec_F77= 14029 hardcode_libdir_flag_spec_ld_F77= 14030 hardcode_libdir_separator_F77= 14031 hardcode_direct_F77=no 14032 hardcode_minus_L_F77=no 14033 hardcode_shlibpath_var_F77=unsupported 14034 link_all_deplibs_F77=unknown 14035 hardcode_automatic_F77=no 14036 module_cmds_F77= 14037 module_expsym_cmds_F77= 14038 always_export_symbols_F77=no 14039 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14040 # include_expsyms should be a list of space-separated symbols to be *always* 14041 # included in the symbol list 14042 include_expsyms_F77= 14043 # exclude_expsyms can be an extended regexp of symbols to exclude 14044 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14046 # as well as any symbol that contains `d'. 14047 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14049 # platforms (ab)use it in PIC code, but their linkers get confused if 14050 # the symbol is explicitly referenced. Since portable code cannot 14051 # rely on this symbol name, it's probably fine to never include it in 14052 # preloaded symbol tables. 14053 extract_expsyms_cmds= 14054 # Just being paranoid about ensuring that cc_basename is set. 14055 for cc_temp in $compiler""; do 14056 case $cc_temp in 14057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14059 \-*) ;; 14060 *) break;; 14061 esac 14062done 14063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14064 14065 case $host_os in 14066 cygwin* | mingw* | pw32*) 14067 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14068 # When not using gcc, we currently assume that we are using 14069 # Microsoft Visual C++. 14070 if test "$GCC" != yes; then 14071 with_gnu_ld=no 14072 fi 14073 ;; 14074 interix*) 14075 # we just hope/assume this is gcc and not c89 (= MSVC++) 14076 with_gnu_ld=yes 14077 ;; 14078 openbsd*) 14079 with_gnu_ld=no 14080 ;; 14081 esac 14082 14083 ld_shlibs_F77=yes 14084 if test "$with_gnu_ld" = yes; then 14085 # If archive_cmds runs LD, not CC, wlarc should be empty 14086 wlarc='${wl}' 14087 14088 # Set some defaults for GNU ld with shared library support. These 14089 # are reset later if shared libraries are not supported. Putting them 14090 # here allows them to be overridden if necessary. 14091 runpath_var=LD_RUN_PATH 14092 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14093 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14094 # ancient GNU ld didn't support --whole-archive et. al. 14095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14096 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14097 else 14098 whole_archive_flag_spec_F77= 14099 fi 14100 supports_anon_versioning=no 14101 case `$LD -v 2>/dev/null` in 14102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14105 *\ 2.11.*) ;; # other 2.11 versions 14106 *) supports_anon_versioning=yes ;; 14107 esac 14108 14109 # See if GNU ld supports shared libraries. 14110 case $host_os in 14111 aix3* | aix4* | aix5*) 14112 # On AIX/PPC, the GNU linker is very broken 14113 if test "$host_cpu" != ia64; then 14114 ld_shlibs_F77=no 14115 cat <<EOF 1>&2 14116 14117*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14118*** to be unable to reliably create shared libraries on AIX. 14119*** Therefore, libtool is disabling shared libraries support. If you 14120*** really care for shared libraries, you may want to modify your PATH 14121*** so that a non-GNU linker is found, and then restart. 14122 14123EOF 14124 fi 14125 ;; 14126 14127 amigaos*) 14128 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)' 14129 hardcode_libdir_flag_spec_F77='-L$libdir' 14130 hardcode_minus_L_F77=yes 14131 14132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14133 # that the semantics of dynamic libraries on AmigaOS, at least up 14134 # to version 4, is to share data among multiple programs linked 14135 # with the same dynamic library. Since this doesn't match the 14136 # behavior of shared libraries on other platforms, we can't use 14137 # them. 14138 ld_shlibs_F77=no 14139 ;; 14140 14141 beos*) 14142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14143 allow_undefined_flag_F77=unsupported 14144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14145 # support --undefined. This deserves some investigation. FIXME 14146 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14147 else 14148 ld_shlibs_F77=no 14149 fi 14150 ;; 14151 14152 cygwin* | mingw* | pw32*) 14153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14154 # as there is no search path for DLLs. 14155 hardcode_libdir_flag_spec_F77='-L$libdir' 14156 allow_undefined_flag_F77=unsupported 14157 always_export_symbols_F77=no 14158 enable_shared_with_static_runtimes_F77=yes 14159 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14160 14161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14162 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14163 # If the export-symbols file already is a .def file (1st line 14164 # is EXPORTS), use it as is; otherwise, prepend... 14165 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14166 cp $export_symbols $output_objdir/$soname.def; 14167 else 14168 echo EXPORTS > $output_objdir/$soname.def; 14169 cat $export_symbols >> $output_objdir/$soname.def; 14170 fi~ 14171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14172 else 14173 ld_shlibs_F77=no 14174 fi 14175 ;; 14176 14177 interix3*) 14178 hardcode_direct_F77=no 14179 hardcode_shlibpath_var_F77=no 14180 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14181 export_dynamic_flag_spec_F77='${wl}-E' 14182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14183 # Instead, shared libraries are loaded at an image base (0x10000000 by 14184 # default) and relocated if they conflict, which is a slow very memory 14185 # consuming and fragmenting process. To avoid this, we pick a random, 14186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14187 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14188 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' 14189 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' 14190 ;; 14191 14192 linux* | k*bsd*-gnu) 14193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14194 tmp_addflag= 14195 case $cc_basename,$host_cpu in 14196 pgcc*) # Portland Group C compiler 14197 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' 14198 tmp_addflag=' $pic_flag' 14199 ;; 14200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14201 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' 14202 tmp_addflag=' $pic_flag -Mnomain' ;; 14203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14204 tmp_addflag=' -i_dynamic' ;; 14205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14206 tmp_addflag=' -i_dynamic -nofor_main' ;; 14207 ifc* | ifort*) # Intel Fortran compiler 14208 tmp_addflag=' -nofor_main' ;; 14209 esac 14210 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14211 14212 if test $supports_anon_versioning = yes; then 14213 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14215 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14216 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14217 fi 14218 link_all_deplibs_F77=no 14219 else 14220 ld_shlibs_F77=no 14221 fi 14222 ;; 14223 14224 netbsd* | netbsdelf*-gnu) 14225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14226 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14227 wlarc= 14228 else 14229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14231 fi 14232 ;; 14233 14234 solaris*) 14235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14236 ld_shlibs_F77=no 14237 cat <<EOF 1>&2 14238 14239*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14240*** create shared libraries on Solaris systems. Therefore, libtool 14241*** is disabling shared libraries support. We urge you to upgrade GNU 14242*** binutils to release 2.9.1 or newer. Another option is to modify 14243*** your PATH or compiler configuration so that the native linker is 14244*** used, and then restart. 14245 14246EOF 14247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14249 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14250 else 14251 ld_shlibs_F77=no 14252 fi 14253 ;; 14254 14255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14256 case `$LD -v 2>&1` in 14257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14258 ld_shlibs_F77=no 14259 cat <<_LT_EOF 1>&2 14260 14261*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14262*** reliably create shared libraries on SCO systems. Therefore, libtool 14263*** is disabling shared libraries support. We urge you to upgrade GNU 14264*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14265*** your PATH or compiler configuration so that the native linker is 14266*** used, and then restart. 14267 14268_LT_EOF 14269 ;; 14270 *) 14271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14272 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14273 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14274 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14275 else 14276 ld_shlibs_F77=no 14277 fi 14278 ;; 14279 esac 14280 ;; 14281 14282 sunos4*) 14283 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14284 wlarc= 14285 hardcode_direct_F77=yes 14286 hardcode_shlibpath_var_F77=no 14287 ;; 14288 14289 *) 14290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14291 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14292 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14293 else 14294 ld_shlibs_F77=no 14295 fi 14296 ;; 14297 esac 14298 14299 if test "$ld_shlibs_F77" = no; then 14300 runpath_var= 14301 hardcode_libdir_flag_spec_F77= 14302 export_dynamic_flag_spec_F77= 14303 whole_archive_flag_spec_F77= 14304 fi 14305 else 14306 # PORTME fill in a description of your system's linker (not GNU ld) 14307 case $host_os in 14308 aix3*) 14309 allow_undefined_flag_F77=unsupported 14310 always_export_symbols_F77=yes 14311 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' 14312 # Note: this linker hardcodes the directories in LIBPATH if there 14313 # are no directories specified by -L. 14314 hardcode_minus_L_F77=yes 14315 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14316 # Neither direct hardcoding nor static linking is supported with a 14317 # broken collect2. 14318 hardcode_direct_F77=unsupported 14319 fi 14320 ;; 14321 14322 aix4* | aix5*) 14323 if test "$host_cpu" = ia64; then 14324 # On IA64, the linker does run time linking by default, so we don't 14325 # have to do anything special. 14326 aix_use_runtimelinking=no 14327 exp_sym_flag='-Bexport' 14328 no_entry_flag="" 14329 else 14330 # If we're using GNU nm, then we don't want the "-C" option. 14331 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14332 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14333 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' 14334 else 14335 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' 14336 fi 14337 aix_use_runtimelinking=no 14338 14339 # Test if we are trying to use run time linking or normal 14340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14341 # need to do runtime linking. 14342 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14343 for ld_flag in $LDFLAGS; do 14344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14345 aix_use_runtimelinking=yes 14346 break 14347 fi 14348 done 14349 ;; 14350 esac 14351 14352 exp_sym_flag='-bexport' 14353 no_entry_flag='-bnoentry' 14354 fi 14355 14356 # When large executables or shared objects are built, AIX ld can 14357 # have problems creating the table of contents. If linking a library 14358 # or program results in "error TOC overflow" add -mminimal-toc to 14359 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14360 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14361 14362 archive_cmds_F77='' 14363 hardcode_direct_F77=yes 14364 hardcode_libdir_separator_F77=':' 14365 link_all_deplibs_F77=yes 14366 14367 if test "$GCC" = yes; then 14368 case $host_os in aix4.[012]|aix4.[012].*) 14369 # We only want to do this on AIX 4.2 and lower, the check 14370 # below for broken collect2 doesn't work under 4.3+ 14371 collect2name=`${CC} -print-prog-name=collect2` 14372 if test -f "$collect2name" && \ 14373 strings "$collect2name" | grep resolve_lib_name >/dev/null 14374 then 14375 # We have reworked collect2 14376 hardcode_direct_F77=yes 14377 else 14378 # We have old collect2 14379 hardcode_direct_F77=unsupported 14380 # It fails to find uninstalled libraries when the uninstalled 14381 # path is not listed in the libpath. Setting hardcode_minus_L 14382 # to unsupported forces relinking 14383 hardcode_minus_L_F77=yes 14384 hardcode_libdir_flag_spec_F77='-L$libdir' 14385 hardcode_libdir_separator_F77= 14386 fi 14387 ;; 14388 esac 14389 shared_flag='-shared' 14390 if test "$aix_use_runtimelinking" = yes; then 14391 shared_flag="$shared_flag "'${wl}-G' 14392 fi 14393 else 14394 # not using gcc 14395 if test "$host_cpu" = ia64; then 14396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14397 # chokes on -Wl,-G. The following line is correct: 14398 shared_flag='-G' 14399 else 14400 if test "$aix_use_runtimelinking" = yes; then 14401 shared_flag='${wl}-G' 14402 else 14403 shared_flag='${wl}-bM:SRE' 14404 fi 14405 fi 14406 fi 14407 14408 # It seems that -bexpall does not export symbols beginning with 14409 # underscore (_), so it is better to generate a list of symbols to export. 14410 always_export_symbols_F77=yes 14411 if test "$aix_use_runtimelinking" = yes; then 14412 # Warning - without using the other runtime loading flags (-brtl), 14413 # -berok will link without error, but may produce a broken library. 14414 allow_undefined_flag_F77='-berok' 14415 # Determine the default libpath from the value encoded in an empty executable. 14416 cat >conftest.$ac_ext <<_ACEOF 14417 program main 14418 14419 end 14420_ACEOF 14421rm -f conftest.$ac_objext conftest$ac_exeext 14422if { (ac_try="$ac_link" 14423case "(($ac_try" in 14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14425 *) ac_try_echo=$ac_try;; 14426esac 14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14428 (eval "$ac_link") 2>conftest.er1 14429 ac_status=$? 14430 grep -v '^ *+' conftest.er1 >conftest.err 14431 rm -f conftest.er1 14432 cat conftest.err >&5 14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14434 (exit $ac_status); } && { 14435 test -z "$ac_f77_werror_flag" || 14436 test ! -s conftest.err 14437 } && test -s conftest$ac_exeext && 14438 $as_test_x conftest$ac_exeext; then 14439 14440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14441}'` 14442# Check for a 64-bit object if we didn't find anything. 14443if 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; } 14444}'`; fi 14445else 14446 echo "$as_me: failed program was:" >&5 14447sed 's/^/| /' conftest.$ac_ext >&5 14448 14449 14450fi 14451 14452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14453 conftest$ac_exeext conftest.$ac_ext 14454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14455 14456 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14457 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" 14458 else 14459 if test "$host_cpu" = ia64; then 14460 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14461 allow_undefined_flag_F77="-z nodefs" 14462 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" 14463 else 14464 # Determine the default libpath from the value encoded in an empty executable. 14465 cat >conftest.$ac_ext <<_ACEOF 14466 program main 14467 14468 end 14469_ACEOF 14470rm -f conftest.$ac_objext conftest$ac_exeext 14471if { (ac_try="$ac_link" 14472case "(($ac_try" in 14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14474 *) ac_try_echo=$ac_try;; 14475esac 14476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14477 (eval "$ac_link") 2>conftest.er1 14478 ac_status=$? 14479 grep -v '^ *+' conftest.er1 >conftest.err 14480 rm -f conftest.er1 14481 cat conftest.err >&5 14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14483 (exit $ac_status); } && { 14484 test -z "$ac_f77_werror_flag" || 14485 test ! -s conftest.err 14486 } && test -s conftest$ac_exeext && 14487 $as_test_x conftest$ac_exeext; then 14488 14489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14490}'` 14491# Check for a 64-bit object if we didn't find anything. 14492if 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; } 14493}'`; fi 14494else 14495 echo "$as_me: failed program was:" >&5 14496sed 's/^/| /' conftest.$ac_ext >&5 14497 14498 14499fi 14500 14501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14502 conftest$ac_exeext conftest.$ac_ext 14503if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14504 14505 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14506 # Warning - without using the other run time loading flags, 14507 # -berok will link without error, but may produce a broken library. 14508 no_undefined_flag_F77=' ${wl}-bernotok' 14509 allow_undefined_flag_F77=' ${wl}-berok' 14510 # Exported symbols can be pulled into shared objects from archives 14511 whole_archive_flag_spec_F77='$convenience' 14512 archive_cmds_need_lc_F77=yes 14513 # This is similar to how AIX traditionally builds its shared libraries. 14514 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' 14515 fi 14516 fi 14517 ;; 14518 14519 amigaos*) 14520 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)' 14521 hardcode_libdir_flag_spec_F77='-L$libdir' 14522 hardcode_minus_L_F77=yes 14523 # see comment about different semantics on the GNU ld section 14524 ld_shlibs_F77=no 14525 ;; 14526 14527 bsdi[45]*) 14528 export_dynamic_flag_spec_F77=-rdynamic 14529 ;; 14530 14531 cygwin* | mingw* | pw32*) 14532 # When not using gcc, we currently assume that we are using 14533 # Microsoft Visual C++. 14534 # hardcode_libdir_flag_spec is actually meaningless, as there is 14535 # no search path for DLLs. 14536 hardcode_libdir_flag_spec_F77=' ' 14537 allow_undefined_flag_F77=unsupported 14538 # Tell ltmain to make .lib files, not .a files. 14539 libext=lib 14540 # Tell ltmain to make .dll files, not .so files. 14541 shrext_cmds=".dll" 14542 # FIXME: Setting linknames here is a bad hack. 14543 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14544 # The linker will automatically build a .lib file if we build a DLL. 14545 old_archive_From_new_cmds_F77='true' 14546 # FIXME: Should let the user specify the lib program. 14547 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14548 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14549 enable_shared_with_static_runtimes_F77=yes 14550 ;; 14551 14552 darwin* | rhapsody*) 14553 case $host_os in 14554 rhapsody* | darwin1.[012]) 14555 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14556 ;; 14557 *) # Darwin 1.3 on 14558 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14559 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14560 else 14561 case ${MACOSX_DEPLOYMENT_TARGET} in 14562 10.[012]) 14563 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14564 ;; 14565 10.*) 14566 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14567 ;; 14568 esac 14569 fi 14570 ;; 14571 esac 14572 archive_cmds_need_lc_F77=no 14573 hardcode_direct_F77=no 14574 hardcode_automatic_F77=yes 14575 hardcode_shlibpath_var_F77=unsupported 14576 whole_archive_flag_spec_F77='' 14577 link_all_deplibs_F77=yes 14578 if test "$GCC" = yes ; then 14579 output_verbose_link_cmd='echo' 14580 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14581 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14583 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}' 14584 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}' 14585 else 14586 case $cc_basename in 14587 xlc*) 14588 output_verbose_link_cmd='echo' 14589 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14590 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14592 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}' 14593 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}' 14594 ;; 14595 *) 14596 ld_shlibs_F77=no 14597 ;; 14598 esac 14599 fi 14600 ;; 14601 14602 dgux*) 14603 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14604 hardcode_libdir_flag_spec_F77='-L$libdir' 14605 hardcode_shlibpath_var_F77=no 14606 ;; 14607 14608 freebsd1*) 14609 ld_shlibs_F77=no 14610 ;; 14611 14612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14613 # support. Future versions do this automatically, but an explicit c++rt0.o 14614 # does not break anything, and helps significantly (at the cost of a little 14615 # extra space). 14616 freebsd2.2*) 14617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14618 hardcode_libdir_flag_spec_F77='-R$libdir' 14619 hardcode_direct_F77=yes 14620 hardcode_shlibpath_var_F77=no 14621 ;; 14622 14623 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14624 freebsd2*) 14625 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14626 hardcode_direct_F77=yes 14627 hardcode_minus_L_F77=yes 14628 hardcode_shlibpath_var_F77=no 14629 ;; 14630 14631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14632 freebsd* | dragonfly*) 14633 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14634 hardcode_libdir_flag_spec_F77='-R$libdir' 14635 hardcode_direct_F77=yes 14636 hardcode_shlibpath_var_F77=no 14637 ;; 14638 14639 hpux9*) 14640 if test "$GCC" = yes; then 14641 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' 14642 else 14643 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' 14644 fi 14645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14646 hardcode_libdir_separator_F77=: 14647 hardcode_direct_F77=yes 14648 14649 # hardcode_minus_L: Not really in the search PATH, 14650 # but as the default location of the library. 14651 hardcode_minus_L_F77=yes 14652 export_dynamic_flag_spec_F77='${wl}-E' 14653 ;; 14654 14655 hpux10*) 14656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14657 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14658 else 14659 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14660 fi 14661 if test "$with_gnu_ld" = no; then 14662 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14663 hardcode_libdir_separator_F77=: 14664 14665 hardcode_direct_F77=yes 14666 export_dynamic_flag_spec_F77='${wl}-E' 14667 14668 # hardcode_minus_L: Not really in the search PATH, 14669 # but as the default location of the library. 14670 hardcode_minus_L_F77=yes 14671 fi 14672 ;; 14673 14674 hpux11*) 14675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14676 case $host_cpu in 14677 hppa*64*) 14678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14679 ;; 14680 ia64*) 14681 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14682 ;; 14683 *) 14684 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14685 ;; 14686 esac 14687 else 14688 case $host_cpu in 14689 hppa*64*) 14690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14691 ;; 14692 ia64*) 14693 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14694 ;; 14695 *) 14696 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14697 ;; 14698 esac 14699 fi 14700 if test "$with_gnu_ld" = no; then 14701 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14702 hardcode_libdir_separator_F77=: 14703 14704 case $host_cpu in 14705 hppa*64*|ia64*) 14706 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14707 hardcode_direct_F77=no 14708 hardcode_shlibpath_var_F77=no 14709 ;; 14710 *) 14711 hardcode_direct_F77=yes 14712 export_dynamic_flag_spec_F77='${wl}-E' 14713 14714 # hardcode_minus_L: Not really in the search PATH, 14715 # but as the default location of the library. 14716 hardcode_minus_L_F77=yes 14717 ;; 14718 esac 14719 fi 14720 ;; 14721 14722 irix5* | irix6* | nonstopux*) 14723 if test "$GCC" = yes; then 14724 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' 14725 else 14726 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' 14727 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14728 fi 14729 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14730 hardcode_libdir_separator_F77=: 14731 link_all_deplibs_F77=yes 14732 ;; 14733 14734 netbsd* | netbsdelf*-gnu) 14735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14736 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14737 else 14738 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14739 fi 14740 hardcode_libdir_flag_spec_F77='-R$libdir' 14741 hardcode_direct_F77=yes 14742 hardcode_shlibpath_var_F77=no 14743 ;; 14744 14745 newsos6) 14746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14747 hardcode_direct_F77=yes 14748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14749 hardcode_libdir_separator_F77=: 14750 hardcode_shlibpath_var_F77=no 14751 ;; 14752 14753 openbsd*) 14754 hardcode_direct_F77=yes 14755 hardcode_shlibpath_var_F77=no 14756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14757 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14758 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14759 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14760 export_dynamic_flag_spec_F77='${wl}-E' 14761 else 14762 case $host_os in 14763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14765 hardcode_libdir_flag_spec_F77='-R$libdir' 14766 ;; 14767 *) 14768 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14769 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14770 ;; 14771 esac 14772 fi 14773 ;; 14774 14775 os2*) 14776 hardcode_libdir_flag_spec_F77='-L$libdir' 14777 hardcode_minus_L_F77=yes 14778 allow_undefined_flag_F77=unsupported 14779 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' 14780 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14781 ;; 14782 14783 osf3*) 14784 if test "$GCC" = yes; then 14785 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14786 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' 14787 else 14788 allow_undefined_flag_F77=' -expect_unresolved \*' 14789 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' 14790 fi 14791 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14792 hardcode_libdir_separator_F77=: 14793 ;; 14794 14795 osf4* | osf5*) # as osf3* with the addition of -msym flag 14796 if test "$GCC" = yes; then 14797 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14798 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' 14799 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14800 else 14801 allow_undefined_flag_F77=' -expect_unresolved \*' 14802 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' 14803 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~ 14804 $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' 14805 14806 # Both c and cxx compiler support -rpath directly 14807 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14808 fi 14809 hardcode_libdir_separator_F77=: 14810 ;; 14811 14812 solaris*) 14813 no_undefined_flag_F77=' -z text' 14814 if test "$GCC" = yes; then 14815 wlarc='${wl}' 14816 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14817 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14819 else 14820 wlarc='' 14821 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14822 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14824 fi 14825 hardcode_libdir_flag_spec_F77='-R$libdir' 14826 hardcode_shlibpath_var_F77=no 14827 case $host_os in 14828 solaris2.[0-5] | solaris2.[0-5].*) ;; 14829 *) 14830 # The compiler driver will combine linker options so we 14831 # cannot just pass the convience library names through 14832 # without $wl, iff we do not link with $LD. 14833 # Luckily, gcc supports the same syntax we need for Sun Studio. 14834 # Supported since Solaris 2.6 (maybe 2.5.1?) 14835 case $wlarc in 14836 '') 14837 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14838 *) 14839 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' ;; 14840 esac ;; 14841 esac 14842 link_all_deplibs_F77=yes 14843 ;; 14844 14845 sunos4*) 14846 if test "x$host_vendor" = xsequent; then 14847 # Use $CC to link under sequent, because it throws in some extra .o 14848 # files that make .init and .fini sections work. 14849 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14850 else 14851 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14852 fi 14853 hardcode_libdir_flag_spec_F77='-L$libdir' 14854 hardcode_direct_F77=yes 14855 hardcode_minus_L_F77=yes 14856 hardcode_shlibpath_var_F77=no 14857 ;; 14858 14859 sysv4) 14860 case $host_vendor in 14861 sni) 14862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14863 hardcode_direct_F77=yes # is this really true??? 14864 ;; 14865 siemens) 14866 ## LD is ld it makes a PLAMLIB 14867 ## CC just makes a GrossModule. 14868 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14869 reload_cmds_F77='$CC -r -o $output$reload_objs' 14870 hardcode_direct_F77=no 14871 ;; 14872 motorola) 14873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14874 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14875 ;; 14876 esac 14877 runpath_var='LD_RUN_PATH' 14878 hardcode_shlibpath_var_F77=no 14879 ;; 14880 14881 sysv4.3*) 14882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14883 hardcode_shlibpath_var_F77=no 14884 export_dynamic_flag_spec_F77='-Bexport' 14885 ;; 14886 14887 sysv4*MP*) 14888 if test -d /usr/nec; then 14889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14890 hardcode_shlibpath_var_F77=no 14891 runpath_var=LD_RUN_PATH 14892 hardcode_runpath_var=yes 14893 ld_shlibs_F77=yes 14894 fi 14895 ;; 14896 14897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14898 no_undefined_flag_F77='${wl}-z,text' 14899 archive_cmds_need_lc_F77=no 14900 hardcode_shlibpath_var_F77=no 14901 runpath_var='LD_RUN_PATH' 14902 14903 if test "$GCC" = yes; then 14904 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14905 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14906 else 14907 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14908 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14909 fi 14910 ;; 14911 14912 sysv5* | sco3.2v5* | sco5v6*) 14913 # Note: We can NOT use -z defs as we might desire, because we do not 14914 # link with -lc, and that would cause any symbols used from libc to 14915 # always be unresolved, which means just about no library would 14916 # ever link correctly. If we're not using GNU ld we use -z text 14917 # though, which does catch some bad symbols but isn't as heavy-handed 14918 # as -z defs. 14919 no_undefined_flag_F77='${wl}-z,text' 14920 allow_undefined_flag_F77='${wl}-z,nodefs' 14921 archive_cmds_need_lc_F77=no 14922 hardcode_shlibpath_var_F77=no 14923 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14924 hardcode_libdir_separator_F77=':' 14925 link_all_deplibs_F77=yes 14926 export_dynamic_flag_spec_F77='${wl}-Bexport' 14927 runpath_var='LD_RUN_PATH' 14928 14929 if test "$GCC" = yes; then 14930 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14931 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14932 else 14933 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14934 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14935 fi 14936 ;; 14937 14938 uts4*) 14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14940 hardcode_libdir_flag_spec_F77='-L$libdir' 14941 hardcode_shlibpath_var_F77=no 14942 ;; 14943 14944 *) 14945 ld_shlibs_F77=no 14946 ;; 14947 esac 14948 fi 14949 14950{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14951echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14952test "$ld_shlibs_F77" = no && can_build_shared=no 14953 14954# 14955# Do we need to explicitly link libc? 14956# 14957case "x$archive_cmds_need_lc_F77" in 14958x|xyes) 14959 # Assume -lc should be added 14960 archive_cmds_need_lc_F77=yes 14961 14962 if test "$enable_shared" = yes && test "$GCC" = yes; then 14963 case $archive_cmds_F77 in 14964 *'~'*) 14965 # FIXME: we may have to deal with multi-command sequences. 14966 ;; 14967 '$CC '*) 14968 # Test whether the compiler implicitly links with -lc since on some 14969 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14970 # to ld, don't add -lc before -lgcc. 14971 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14972echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14973 $rm conftest* 14974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14975 14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14977 (eval $ac_compile) 2>&5 14978 ac_status=$? 14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14980 (exit $ac_status); } 2>conftest.err; then 14981 soname=conftest 14982 lib=conftest 14983 libobjs=conftest.$ac_objext 14984 deplibs= 14985 wl=$lt_prog_compiler_wl_F77 14986 pic_flag=$lt_prog_compiler_pic_F77 14987 compiler_flags=-v 14988 linker_flags=-v 14989 verstring= 14990 output_objdir=. 14991 libname=conftest 14992 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14993 allow_undefined_flag_F77= 14994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14995 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14996 ac_status=$? 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); } 14999 then 15000 archive_cmds_need_lc_F77=no 15001 else 15002 archive_cmds_need_lc_F77=yes 15003 fi 15004 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15005 else 15006 cat conftest.err 1>&5 15007 fi 15008 $rm conftest* 15009 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15010echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15011 ;; 15012 esac 15013 fi 15014 ;; 15015esac 15016 15017{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15019library_names_spec= 15020libname_spec='lib$name' 15021soname_spec= 15022shrext_cmds=".so" 15023postinstall_cmds= 15024postuninstall_cmds= 15025finish_cmds= 15026finish_eval= 15027shlibpath_var= 15028shlibpath_overrides_runpath=unknown 15029version_type=none 15030dynamic_linker="$host_os ld.so" 15031sys_lib_dlsearch_path_spec="/lib /usr/lib" 15032if test "$GCC" = yes; then 15033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15035 # if the path contains ";" then we assume it to be the separator 15036 # otherwise default to the standard path separator (i.e. ":") - it is 15037 # assumed that no part of a normal pathname contains ";" but that should 15038 # okay in the real world where ";" in dirpaths is itself problematic. 15039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15040 else 15041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15042 fi 15043else 15044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15045fi 15046need_lib_prefix=unknown 15047hardcode_into_libs=no 15048 15049# when you set need_version to no, make sure it does not cause -set_version 15050# flags to be left without arguments 15051need_version=unknown 15052 15053case $host_os in 15054aix3*) 15055 version_type=linux 15056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15057 shlibpath_var=LIBPATH 15058 15059 # AIX 3 has no versioning support, so we append a major version to the name. 15060 soname_spec='${libname}${release}${shared_ext}$major' 15061 ;; 15062 15063aix4* | aix5*) 15064 version_type=linux 15065 need_lib_prefix=no 15066 need_version=no 15067 hardcode_into_libs=yes 15068 if test "$host_cpu" = ia64; then 15069 # AIX 5 supports IA64 15070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15071 shlibpath_var=LD_LIBRARY_PATH 15072 else 15073 # With GCC up to 2.95.x, collect2 would create an import file 15074 # for dependence libraries. The import file would start with 15075 # the line `#! .'. This would cause the generated library to 15076 # depend on `.', always an invalid library. This was fixed in 15077 # development snapshots of GCC prior to 3.0. 15078 case $host_os in 15079 aix4 | aix4.[01] | aix4.[01].*) 15080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15081 echo ' yes ' 15082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15083 : 15084 else 15085 can_build_shared=no 15086 fi 15087 ;; 15088 esac 15089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15090 # soname into executable. Probably we can add versioning support to 15091 # collect2, so additional links can be useful in future. 15092 if test "$aix_use_runtimelinking" = yes; then 15093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15094 # instead of lib<name>.a to let people know that these are not 15095 # typical AIX shared libraries. 15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15097 else 15098 # We preserve .a as extension for shared libraries through AIX4.2 15099 # and later when we are not doing run time linking. 15100 library_names_spec='${libname}${release}.a $libname.a' 15101 soname_spec='${libname}${release}${shared_ext}$major' 15102 fi 15103 shlibpath_var=LIBPATH 15104 fi 15105 ;; 15106 15107amigaos*) 15108 library_names_spec='$libname.ixlibrary $libname.a' 15109 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15110 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' 15111 ;; 15112 15113beos*) 15114 library_names_spec='${libname}${shared_ext}' 15115 dynamic_linker="$host_os ld.so" 15116 shlibpath_var=LIBRARY_PATH 15117 ;; 15118 15119bsdi[45]*) 15120 version_type=linux 15121 need_version=no 15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15123 soname_spec='${libname}${release}${shared_ext}$major' 15124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15125 shlibpath_var=LD_LIBRARY_PATH 15126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15128 # the default ld.so.conf also contains /usr/contrib/lib and 15129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15130 # libtool to hard-code these into programs 15131 ;; 15132 15133cygwin* | mingw* | pw32*) 15134 version_type=windows 15135 shrext_cmds=".dll" 15136 need_version=no 15137 need_lib_prefix=no 15138 15139 case $GCC,$host_os in 15140 yes,cygwin* | yes,mingw* | yes,pw32*) 15141 library_names_spec='$libname.dll.a' 15142 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15143 postinstall_cmds='base_file=`basename \${file}`~ 15144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15145 dldir=$destdir/`dirname \$dlpath`~ 15146 test -d \$dldir || mkdir -p \$dldir~ 15147 $install_prog $dir/$dlname \$dldir/$dlname~ 15148 chmod a+x \$dldir/$dlname' 15149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15150 dlpath=$dir/\$dldll~ 15151 $rm \$dlpath' 15152 shlibpath_overrides_runpath=yes 15153 15154 case $host_os in 15155 cygwin*) 15156 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15158 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15159 ;; 15160 mingw*) 15161 # MinGW DLLs use traditional 'lib' prefix 15162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15165 # It is most probably a Windows format PATH printed by 15166 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15167 # path with ; separators, and with drive letters. We can handle the 15168 # drive letters (cygwin fileutils understands them), so leave them, 15169 # especially as we might pass files found there to a mingw objdump, 15170 # which wouldn't understand a cygwinified path. Ahh. 15171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15172 else 15173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15174 fi 15175 ;; 15176 pw32*) 15177 # pw32 DLLs use 'pw' prefix rather than 'lib' 15178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15179 ;; 15180 esac 15181 ;; 15182 15183 *) 15184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15185 ;; 15186 esac 15187 dynamic_linker='Win32 ld.exe' 15188 # FIXME: first we should search . and the directory the executable is in 15189 shlibpath_var=PATH 15190 ;; 15191 15192darwin* | rhapsody*) 15193 dynamic_linker="$host_os dyld" 15194 version_type=darwin 15195 need_lib_prefix=no 15196 need_version=no 15197 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15198 soname_spec='${libname}${release}${major}$shared_ext' 15199 shlibpath_overrides_runpath=yes 15200 shlibpath_var=DYLD_LIBRARY_PATH 15201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15202 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15203 if test "$GCC" = yes; then 15204 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"` 15205 else 15206 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15207 fi 15208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15209 ;; 15210 15211dgux*) 15212 version_type=linux 15213 need_lib_prefix=no 15214 need_version=no 15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15216 soname_spec='${libname}${release}${shared_ext}$major' 15217 shlibpath_var=LD_LIBRARY_PATH 15218 ;; 15219 15220freebsd1*) 15221 dynamic_linker=no 15222 ;; 15223 15224freebsd* | dragonfly*) 15225 # DragonFly does not have aout. When/if they implement a new 15226 # versioning mechanism, adjust this. 15227 if test -x /usr/bin/objformat; then 15228 objformat=`/usr/bin/objformat` 15229 else 15230 case $host_os in 15231 freebsd[123]*) objformat=aout ;; 15232 *) objformat=elf ;; 15233 esac 15234 fi 15235 version_type=freebsd-$objformat 15236 case $version_type in 15237 freebsd-elf*) 15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15239 need_version=no 15240 need_lib_prefix=no 15241 ;; 15242 freebsd-*) 15243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15244 need_version=yes 15245 ;; 15246 esac 15247 shlibpath_var=LD_LIBRARY_PATH 15248 case $host_os in 15249 freebsd2*) 15250 shlibpath_overrides_runpath=yes 15251 ;; 15252 freebsd3.[01]* | freebsdelf3.[01]*) 15253 shlibpath_overrides_runpath=yes 15254 hardcode_into_libs=yes 15255 ;; 15256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15258 shlibpath_overrides_runpath=no 15259 hardcode_into_libs=yes 15260 ;; 15261 freebsd*) # from 4.6 on 15262 shlibpath_overrides_runpath=yes 15263 hardcode_into_libs=yes 15264 ;; 15265 esac 15266 ;; 15267 15268gnu*) 15269 version_type=linux 15270 need_lib_prefix=no 15271 need_version=no 15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15273 soname_spec='${libname}${release}${shared_ext}$major' 15274 shlibpath_var=LD_LIBRARY_PATH 15275 hardcode_into_libs=yes 15276 ;; 15277 15278hpux9* | hpux10* | hpux11*) 15279 # Give a soname corresponding to the major version so that dld.sl refuses to 15280 # link against other versions. 15281 version_type=sunos 15282 need_lib_prefix=no 15283 need_version=no 15284 case $host_cpu in 15285 ia64*) 15286 shrext_cmds='.so' 15287 hardcode_into_libs=yes 15288 dynamic_linker="$host_os dld.so" 15289 shlibpath_var=LD_LIBRARY_PATH 15290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15292 soname_spec='${libname}${release}${shared_ext}$major' 15293 if test "X$HPUX_IA64_MODE" = X32; then 15294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15295 else 15296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15297 fi 15298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15299 ;; 15300 hppa*64*) 15301 shrext_cmds='.sl' 15302 hardcode_into_libs=yes 15303 dynamic_linker="$host_os dld.sl" 15304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15307 soname_spec='${libname}${release}${shared_ext}$major' 15308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15310 ;; 15311 *) 15312 shrext_cmds='.sl' 15313 dynamic_linker="$host_os dld.sl" 15314 shlibpath_var=SHLIB_PATH 15315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15317 soname_spec='${libname}${release}${shared_ext}$major' 15318 ;; 15319 esac 15320 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15321 postinstall_cmds='chmod 555 $lib' 15322 ;; 15323 15324interix3*) 15325 version_type=linux 15326 need_lib_prefix=no 15327 need_version=no 15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15329 soname_spec='${libname}${release}${shared_ext}$major' 15330 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15331 shlibpath_var=LD_LIBRARY_PATH 15332 shlibpath_overrides_runpath=no 15333 hardcode_into_libs=yes 15334 ;; 15335 15336irix5* | irix6* | nonstopux*) 15337 case $host_os in 15338 nonstopux*) version_type=nonstopux ;; 15339 *) 15340 if test "$lt_cv_prog_gnu_ld" = yes; then 15341 version_type=linux 15342 else 15343 version_type=irix 15344 fi ;; 15345 esac 15346 need_lib_prefix=no 15347 need_version=no 15348 soname_spec='${libname}${release}${shared_ext}$major' 15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15350 case $host_os in 15351 irix5* | nonstopux*) 15352 libsuff= shlibsuff= 15353 ;; 15354 *) 15355 case $LD in # libtool.m4 will add one of these switches to LD 15356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15357 libsuff= shlibsuff= libmagic=32-bit;; 15358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15359 libsuff=32 shlibsuff=N32 libmagic=N32;; 15360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15361 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15362 *) libsuff= shlibsuff= libmagic=never-match;; 15363 esac 15364 ;; 15365 esac 15366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15367 shlibpath_overrides_runpath=no 15368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15370 hardcode_into_libs=yes 15371 ;; 15372 15373# No shared lib support for Linux oldld, aout, or coff. 15374linux*oldld* | linux*aout* | linux*coff*) 15375 dynamic_linker=no 15376 ;; 15377 15378# This must be Linux ELF. 15379linux* | k*bsd*-gnu) 15380 version_type=linux 15381 need_lib_prefix=no 15382 need_version=no 15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15384 soname_spec='${libname}${release}${shared_ext}$major' 15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15386 shlibpath_var=LD_LIBRARY_PATH 15387 shlibpath_overrides_runpath=no 15388 # This implies no fast_install, which is unacceptable. 15389 # Some rework will be needed to allow for fast_install 15390 # before this can be enabled. 15391 hardcode_into_libs=yes 15392 15393 # Append ld.so.conf contents to the search path 15394 if test -f /etc/ld.so.conf; then 15395 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' ' '` 15396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15397 fi 15398 15399 # We used to test for /lib/ld.so.1 and disable shared libraries on 15400 # powerpc, because MkLinux only supported shared libraries with the 15401 # GNU dynamic linker. Since this was broken with cross compilers, 15402 # most powerpc-linux boxes support dynamic linking these days and 15403 # people can always --disable-shared, the test was removed, and we 15404 # assume the GNU/Linux dynamic linker is in use. 15405 dynamic_linker='GNU/Linux ld.so' 15406 ;; 15407 15408netbsdelf*-gnu) 15409 version_type=linux 15410 need_lib_prefix=no 15411 need_version=no 15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15413 soname_spec='${libname}${release}${shared_ext}$major' 15414 shlibpath_var=LD_LIBRARY_PATH 15415 shlibpath_overrides_runpath=no 15416 hardcode_into_libs=yes 15417 dynamic_linker='NetBSD ld.elf_so' 15418 ;; 15419 15420netbsd*) 15421 version_type=sunos 15422 need_lib_prefix=no 15423 need_version=no 15424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15427 dynamic_linker='NetBSD (a.out) ld.so' 15428 else 15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15430 soname_spec='${libname}${release}${shared_ext}$major' 15431 dynamic_linker='NetBSD ld.elf_so' 15432 fi 15433 shlibpath_var=LD_LIBRARY_PATH 15434 shlibpath_overrides_runpath=yes 15435 hardcode_into_libs=yes 15436 ;; 15437 15438newsos6) 15439 version_type=linux 15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15441 shlibpath_var=LD_LIBRARY_PATH 15442 shlibpath_overrides_runpath=yes 15443 ;; 15444 15445nto-qnx*) 15446 version_type=linux 15447 need_lib_prefix=no 15448 need_version=no 15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15450 soname_spec='${libname}${release}${shared_ext}$major' 15451 shlibpath_var=LD_LIBRARY_PATH 15452 shlibpath_overrides_runpath=yes 15453 ;; 15454 15455openbsd*) 15456 version_type=sunos 15457 sys_lib_dlsearch_path_spec="/usr/lib" 15458 need_lib_prefix=no 15459 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15460 case $host_os in 15461 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15462 *) need_version=no ;; 15463 esac 15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15466 shlibpath_var=LD_LIBRARY_PATH 15467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15468 case $host_os in 15469 openbsd2.[89] | openbsd2.[89].*) 15470 shlibpath_overrides_runpath=no 15471 ;; 15472 *) 15473 shlibpath_overrides_runpath=yes 15474 ;; 15475 esac 15476 else 15477 shlibpath_overrides_runpath=yes 15478 fi 15479 ;; 15480 15481os2*) 15482 libname_spec='$name' 15483 shrext_cmds=".dll" 15484 need_lib_prefix=no 15485 library_names_spec='$libname${shared_ext} $libname.a' 15486 dynamic_linker='OS/2 ld.exe' 15487 shlibpath_var=LIBPATH 15488 ;; 15489 15490osf3* | osf4* | osf5*) 15491 version_type=osf 15492 need_lib_prefix=no 15493 need_version=no 15494 soname_spec='${libname}${release}${shared_ext}$major' 15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15496 shlibpath_var=LD_LIBRARY_PATH 15497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15498 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15499 ;; 15500 15501solaris*) 15502 version_type=linux 15503 need_lib_prefix=no 15504 need_version=no 15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15506 soname_spec='${libname}${release}${shared_ext}$major' 15507 shlibpath_var=LD_LIBRARY_PATH 15508 shlibpath_overrides_runpath=yes 15509 hardcode_into_libs=yes 15510 # ldd complains unless libraries are executable 15511 postinstall_cmds='chmod +x $lib' 15512 ;; 15513 15514sunos4*) 15515 version_type=sunos 15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15518 shlibpath_var=LD_LIBRARY_PATH 15519 shlibpath_overrides_runpath=yes 15520 if test "$with_gnu_ld" = yes; then 15521 need_lib_prefix=no 15522 fi 15523 need_version=yes 15524 ;; 15525 15526sysv4 | sysv4.3*) 15527 version_type=linux 15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15529 soname_spec='${libname}${release}${shared_ext}$major' 15530 shlibpath_var=LD_LIBRARY_PATH 15531 case $host_vendor in 15532 sni) 15533 shlibpath_overrides_runpath=no 15534 need_lib_prefix=no 15535 export_dynamic_flag_spec='${wl}-Blargedynsym' 15536 runpath_var=LD_RUN_PATH 15537 ;; 15538 siemens) 15539 need_lib_prefix=no 15540 ;; 15541 motorola) 15542 need_lib_prefix=no 15543 need_version=no 15544 shlibpath_overrides_runpath=no 15545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15546 ;; 15547 esac 15548 ;; 15549 15550sysv4*MP*) 15551 if test -d /usr/nec ;then 15552 version_type=linux 15553 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15554 soname_spec='$libname${shared_ext}.$major' 15555 shlibpath_var=LD_LIBRARY_PATH 15556 fi 15557 ;; 15558 15559sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15560 version_type=freebsd-elf 15561 need_lib_prefix=no 15562 need_version=no 15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15564 soname_spec='${libname}${release}${shared_ext}$major' 15565 shlibpath_var=LD_LIBRARY_PATH 15566 hardcode_into_libs=yes 15567 if test "$with_gnu_ld" = yes; then 15568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15569 shlibpath_overrides_runpath=no 15570 else 15571 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15572 shlibpath_overrides_runpath=yes 15573 case $host_os in 15574 sco3.2v5*) 15575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15576 ;; 15577 esac 15578 fi 15579 sys_lib_dlsearch_path_spec='/usr/lib' 15580 ;; 15581 15582uts4*) 15583 version_type=linux 15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15585 soname_spec='${libname}${release}${shared_ext}$major' 15586 shlibpath_var=LD_LIBRARY_PATH 15587 ;; 15588 15589*) 15590 dynamic_linker=no 15591 ;; 15592esac 15593{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15594echo "${ECHO_T}$dynamic_linker" >&6; } 15595test "$dynamic_linker" = no && can_build_shared=no 15596 15597variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15598if test "$GCC" = yes; then 15599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15600fi 15601 15602{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15604hardcode_action_F77= 15605if test -n "$hardcode_libdir_flag_spec_F77" || \ 15606 test -n "$runpath_var_F77" || \ 15607 test "X$hardcode_automatic_F77" = "Xyes" ; then 15608 15609 # We can hardcode non-existant directories. 15610 if test "$hardcode_direct_F77" != no && 15611 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15612 # have to relink, otherwise we might link with an installed library 15613 # when we should be linking with a yet-to-be-installed one 15614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15615 test "$hardcode_minus_L_F77" != no; then 15616 # Linking always hardcodes the temporary library directory. 15617 hardcode_action_F77=relink 15618 else 15619 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15620 hardcode_action_F77=immediate 15621 fi 15622else 15623 # We cannot hardcode anything, or else we can only hardcode existing 15624 # directories. 15625 hardcode_action_F77=unsupported 15626fi 15627{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15628echo "${ECHO_T}$hardcode_action_F77" >&6; } 15629 15630if test "$hardcode_action_F77" = relink; then 15631 # Fast installation is not supported 15632 enable_fast_install=no 15633elif test "$shlibpath_overrides_runpath" = yes || 15634 test "$enable_shared" = no; then 15635 # Fast installation is not necessary 15636 enable_fast_install=needless 15637fi 15638 15639 15640# The else clause should only fire when bootstrapping the 15641# libtool distribution, otherwise you forgot to ship ltmain.sh 15642# with your package, and you will get complaints that there are 15643# no rules to generate ltmain.sh. 15644if test -f "$ltmain"; then 15645 # See if we are running on zsh, and set the options which allow our commands through 15646 # without removal of \ escapes. 15647 if test -n "${ZSH_VERSION+set}" ; then 15648 setopt NO_GLOB_SUBST 15649 fi 15650 # Now quote all the things that may contain metacharacters while being 15651 # careful not to overquote the AC_SUBSTed values. We take copies of the 15652 # variables and quote the copies for generation of the libtool script. 15653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15654 SED SHELL STRIP \ 15655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15657 deplibs_check_method reload_flag reload_cmds need_locks \ 15658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15659 lt_cv_sys_global_symbol_to_c_name_address \ 15660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15661 old_postinstall_cmds old_postuninstall_cmds \ 15662 compiler_F77 \ 15663 CC_F77 \ 15664 LD_F77 \ 15665 lt_prog_compiler_wl_F77 \ 15666 lt_prog_compiler_pic_F77 \ 15667 lt_prog_compiler_static_F77 \ 15668 lt_prog_compiler_no_builtin_flag_F77 \ 15669 export_dynamic_flag_spec_F77 \ 15670 thread_safe_flag_spec_F77 \ 15671 whole_archive_flag_spec_F77 \ 15672 enable_shared_with_static_runtimes_F77 \ 15673 old_archive_cmds_F77 \ 15674 old_archive_from_new_cmds_F77 \ 15675 predep_objects_F77 \ 15676 postdep_objects_F77 \ 15677 predeps_F77 \ 15678 postdeps_F77 \ 15679 compiler_lib_search_path_F77 \ 15680 archive_cmds_F77 \ 15681 archive_expsym_cmds_F77 \ 15682 postinstall_cmds_F77 \ 15683 postuninstall_cmds_F77 \ 15684 old_archive_from_expsyms_cmds_F77 \ 15685 allow_undefined_flag_F77 \ 15686 no_undefined_flag_F77 \ 15687 export_symbols_cmds_F77 \ 15688 hardcode_libdir_flag_spec_F77 \ 15689 hardcode_libdir_flag_spec_ld_F77 \ 15690 hardcode_libdir_separator_F77 \ 15691 hardcode_automatic_F77 \ 15692 module_cmds_F77 \ 15693 module_expsym_cmds_F77 \ 15694 lt_cv_prog_compiler_c_o_F77 \ 15695 exclude_expsyms_F77 \ 15696 include_expsyms_F77; do 15697 15698 case $var in 15699 old_archive_cmds_F77 | \ 15700 old_archive_from_new_cmds_F77 | \ 15701 archive_cmds_F77 | \ 15702 archive_expsym_cmds_F77 | \ 15703 module_cmds_F77 | \ 15704 module_expsym_cmds_F77 | \ 15705 old_archive_from_expsyms_cmds_F77 | \ 15706 export_symbols_cmds_F77 | \ 15707 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15708 postinstall_cmds | postuninstall_cmds | \ 15709 old_postinstall_cmds | old_postuninstall_cmds | \ 15710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15711 # Double-quote double-evaled strings. 15712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15713 ;; 15714 *) 15715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15716 ;; 15717 esac 15718 done 15719 15720 case $lt_echo in 15721 *'\$0 --fallback-echo"') 15722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15723 ;; 15724 esac 15725 15726cfgfile="$ofile" 15727 15728 cat <<__EOF__ >> "$cfgfile" 15729# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15730 15731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15732 15733# Shell to use when invoking shell scripts. 15734SHELL=$lt_SHELL 15735 15736# Whether or not to build shared libraries. 15737build_libtool_libs=$enable_shared 15738 15739# Whether or not to build static libraries. 15740build_old_libs=$enable_static 15741 15742# Whether or not to add -lc for building shared libraries. 15743build_libtool_need_lc=$archive_cmds_need_lc_F77 15744 15745# Whether or not to disallow shared libs when runtime libs are static 15746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15747 15748# Whether or not to optimize for fast installation. 15749fast_install=$enable_fast_install 15750 15751# The host system. 15752host_alias=$host_alias 15753host=$host 15754host_os=$host_os 15755 15756# The build system. 15757build_alias=$build_alias 15758build=$build 15759build_os=$build_os 15760 15761# An echo program that does not interpret backslashes. 15762echo=$lt_echo 15763 15764# The archiver. 15765AR=$lt_AR 15766AR_FLAGS=$lt_AR_FLAGS 15767 15768# A C compiler. 15769LTCC=$lt_LTCC 15770 15771# LTCC compiler flags. 15772LTCFLAGS=$lt_LTCFLAGS 15773 15774# A language-specific compiler. 15775CC=$lt_compiler_F77 15776 15777# Is the compiler the GNU C compiler? 15778with_gcc=$GCC_F77 15779 15780# An ERE matcher. 15781EGREP=$lt_EGREP 15782 15783# The linker used to build libraries. 15784LD=$lt_LD_F77 15785 15786# Whether we need hard or soft links. 15787LN_S=$lt_LN_S 15788 15789# A BSD-compatible nm program. 15790NM=$lt_NM 15791 15792# A symbol stripping program 15793STRIP=$lt_STRIP 15794 15795# Used to examine libraries when file_magic_cmd begins "file" 15796MAGIC_CMD=$MAGIC_CMD 15797 15798# Used on cygwin: DLL creation program. 15799DLLTOOL="$DLLTOOL" 15800 15801# Used on cygwin: object dumper. 15802OBJDUMP="$OBJDUMP" 15803 15804# Used on cygwin: assembler. 15805AS="$AS" 15806 15807# The name of the directory that contains temporary libtool files. 15808objdir=$objdir 15809 15810# How to create reloadable object files. 15811reload_flag=$lt_reload_flag 15812reload_cmds=$lt_reload_cmds 15813 15814# How to pass a linker flag through the compiler. 15815wl=$lt_lt_prog_compiler_wl_F77 15816 15817# Object file suffix (normally "o"). 15818objext="$ac_objext" 15819 15820# Old archive suffix (normally "a"). 15821libext="$libext" 15822 15823# Shared library suffix (normally ".so"). 15824shrext_cmds='$shrext_cmds' 15825 15826# Executable file suffix (normally ""). 15827exeext="$exeext" 15828 15829# Additional compiler flags for building library objects. 15830pic_flag=$lt_lt_prog_compiler_pic_F77 15831pic_mode=$pic_mode 15832 15833# What is the maximum length of a command? 15834max_cmd_len=$lt_cv_sys_max_cmd_len 15835 15836# Does compiler simultaneously support -c and -o options? 15837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15838 15839# Must we lock files when doing compilation? 15840need_locks=$lt_need_locks 15841 15842# Do we need the lib prefix for modules? 15843need_lib_prefix=$need_lib_prefix 15844 15845# Do we need a version for libraries? 15846need_version=$need_version 15847 15848# Whether dlopen is supported. 15849dlopen_support=$enable_dlopen 15850 15851# Whether dlopen of programs is supported. 15852dlopen_self=$enable_dlopen_self 15853 15854# Whether dlopen of statically linked programs is supported. 15855dlopen_self_static=$enable_dlopen_self_static 15856 15857# Compiler flag to prevent dynamic linking. 15858link_static_flag=$lt_lt_prog_compiler_static_F77 15859 15860# Compiler flag to turn off builtin functions. 15861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15862 15863# Compiler flag to allow reflexive dlopens. 15864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15865 15866# Compiler flag to generate shared objects directly from archives. 15867whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15868 15869# Compiler flag to generate thread-safe objects. 15870thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15871 15872# Library versioning type. 15873version_type=$version_type 15874 15875# Format of library name prefix. 15876libname_spec=$lt_libname_spec 15877 15878# List of archive names. First name is the real one, the rest are links. 15879# The last name is the one that the linker finds with -lNAME. 15880library_names_spec=$lt_library_names_spec 15881 15882# The coded name of the library, if different from the real name. 15883soname_spec=$lt_soname_spec 15884 15885# Commands used to build and install an old-style archive. 15886RANLIB=$lt_RANLIB 15887old_archive_cmds=$lt_old_archive_cmds_F77 15888old_postinstall_cmds=$lt_old_postinstall_cmds 15889old_postuninstall_cmds=$lt_old_postuninstall_cmds 15890 15891# Create an old-style archive from a shared archive. 15892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15893 15894# Create a temporary old-style archive to link instead of a shared archive. 15895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15896 15897# Commands used to build and install a shared archive. 15898archive_cmds=$lt_archive_cmds_F77 15899archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15900postinstall_cmds=$lt_postinstall_cmds 15901postuninstall_cmds=$lt_postuninstall_cmds 15902 15903# Commands used to build a loadable module (assumed same as above if empty) 15904module_cmds=$lt_module_cmds_F77 15905module_expsym_cmds=$lt_module_expsym_cmds_F77 15906 15907# Commands to strip libraries. 15908old_striplib=$lt_old_striplib 15909striplib=$lt_striplib 15910 15911# Dependencies to place before the objects being linked to create a 15912# shared library. 15913predep_objects=$lt_predep_objects_F77 15914 15915# Dependencies to place after the objects being linked to create a 15916# shared library. 15917postdep_objects=$lt_postdep_objects_F77 15918 15919# Dependencies to place before the objects being linked to create a 15920# shared library. 15921predeps=$lt_predeps_F77 15922 15923# Dependencies to place after the objects being linked to create a 15924# shared library. 15925postdeps=$lt_postdeps_F77 15926 15927# The library search path used internally by the compiler when linking 15928# a shared library. 15929compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15930 15931# Method to check whether dependent libraries are shared objects. 15932deplibs_check_method=$lt_deplibs_check_method 15933 15934# Command to use when deplibs_check_method == file_magic. 15935file_magic_cmd=$lt_file_magic_cmd 15936 15937# Flag that allows shared libraries with undefined symbols to be built. 15938allow_undefined_flag=$lt_allow_undefined_flag_F77 15939 15940# Flag that forces no undefined symbols. 15941no_undefined_flag=$lt_no_undefined_flag_F77 15942 15943# Commands used to finish a libtool library installation in a directory. 15944finish_cmds=$lt_finish_cmds 15945 15946# Same as above, but a single script fragment to be evaled but not shown. 15947finish_eval=$lt_finish_eval 15948 15949# Take the output of nm and produce a listing of raw symbols and C names. 15950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15951 15952# Transform the output of nm in a proper C declaration 15953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15954 15955# Transform the output of nm in a C name address pair 15956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15957 15958# This is the shared library runtime path variable. 15959runpath_var=$runpath_var 15960 15961# This is the shared library path variable. 15962shlibpath_var=$shlibpath_var 15963 15964# Is shlibpath searched before the hard-coded library search path? 15965shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15966 15967# How to hardcode a shared library path into an executable. 15968hardcode_action=$hardcode_action_F77 15969 15970# Whether we should hardcode library paths into libraries. 15971hardcode_into_libs=$hardcode_into_libs 15972 15973# Flag to hardcode \$libdir into a binary during linking. 15974# This must work even if \$libdir does not exist. 15975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15976 15977# If ld is used when linking, flag to hardcode \$libdir into 15978# a binary during linking. This must work even if \$libdir does 15979# not exist. 15980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15981 15982# Whether we need a single -rpath flag with a separated argument. 15983hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15984 15985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15986# resulting binary. 15987hardcode_direct=$hardcode_direct_F77 15988 15989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15990# resulting binary. 15991hardcode_minus_L=$hardcode_minus_L_F77 15992 15993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15994# the resulting binary. 15995hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15996 15997# Set to yes if building a shared library automatically hardcodes DIR into the library 15998# and all subsequent libraries and executables linked against it. 15999hardcode_automatic=$hardcode_automatic_F77 16000 16001# Variables whose values should be saved in libtool wrapper scripts and 16002# restored at relink time. 16003variables_saved_for_relink="$variables_saved_for_relink" 16004 16005# Whether libtool must link a program against all its dependency libraries. 16006link_all_deplibs=$link_all_deplibs_F77 16007 16008# Compile-time system search path for libraries 16009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16010 16011# Run-time system search path for libraries 16012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16013 16014# Fix the shell variable \$srcfile for the compiler. 16015fix_srcfile_path="$fix_srcfile_path_F77" 16016 16017# Set to yes if exported symbols are required. 16018always_export_symbols=$always_export_symbols_F77 16019 16020# The commands to list exported symbols. 16021export_symbols_cmds=$lt_export_symbols_cmds_F77 16022 16023# The commands to extract the exported symbol list from a shared archive. 16024extract_expsyms_cmds=$lt_extract_expsyms_cmds 16025 16026# Symbols that should not be listed in the preloaded symbols. 16027exclude_expsyms=$lt_exclude_expsyms_F77 16028 16029# Symbols that must always be exported. 16030include_expsyms=$lt_include_expsyms_F77 16031 16032# ### END LIBTOOL TAG CONFIG: $tagname 16033 16034__EOF__ 16035 16036 16037else 16038 # If there is no Makefile yet, we rely on a make rule to execute 16039 # `config.status --recheck' to rerun these tests and create the 16040 # libtool script then. 16041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16042 if test -f "$ltmain_in"; then 16043 test -f Makefile && make "$ltmain" 16044 fi 16045fi 16046 16047 16048ac_ext=c 16049ac_cpp='$CPP $CPPFLAGS' 16050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16052ac_compiler_gnu=$ac_cv_c_compiler_gnu 16053 16054CC="$lt_save_CC" 16055 16056 else 16057 tagname="" 16058 fi 16059 ;; 16060 16061 GCJ) 16062 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16063 16064 16065# Source file extension for Java test sources. 16066ac_ext=java 16067 16068# Object file extension for compiled Java test sources. 16069objext=o 16070objext_GCJ=$objext 16071 16072# Code to be used in simple compile tests 16073lt_simple_compile_test_code="class foo {}\n" 16074 16075# Code to be used in simple link tests 16076lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16077 16078# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16079 16080# If no C compiler was specified, use CC. 16081LTCC=${LTCC-"$CC"} 16082 16083# If no C compiler flags were specified, use CFLAGS. 16084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16085 16086# Allow CC to be a program name with arguments. 16087compiler=$CC 16088 16089 16090# save warnings/boilerplate of simple test code 16091ac_outfile=conftest.$ac_objext 16092printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16094_lt_compiler_boilerplate=`cat conftest.err` 16095$rm conftest* 16096 16097ac_outfile=conftest.$ac_objext 16098printf "$lt_simple_link_test_code" >conftest.$ac_ext 16099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16100_lt_linker_boilerplate=`cat conftest.err` 16101$rm conftest* 16102 16103 16104# Allow CC to be a program name with arguments. 16105lt_save_CC="$CC" 16106CC=${GCJ-"gcj"} 16107compiler=$CC 16108compiler_GCJ=$CC 16109for cc_temp in $compiler""; do 16110 case $cc_temp in 16111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16113 \-*) ;; 16114 *) break;; 16115 esac 16116done 16117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16118 16119 16120# GCJ did not exist at the time GCC didn't implicitly link libc in. 16121archive_cmds_need_lc_GCJ=no 16122 16123old_archive_cmds_GCJ=$old_archive_cmds 16124 16125 16126lt_prog_compiler_no_builtin_flag_GCJ= 16127 16128if test "$GCC" = yes; then 16129 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16130 16131 16132{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16133echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16134if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16135 echo $ECHO_N "(cached) $ECHO_C" >&6 16136else 16137 lt_cv_prog_compiler_rtti_exceptions=no 16138 ac_outfile=conftest.$ac_objext 16139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16140 lt_compiler_flag="-fno-rtti -fno-exceptions" 16141 # Insert the option either (1) after the last *FLAGS variable, or 16142 # (2) before a word containing "conftest.", or (3) at the end. 16143 # Note that $ac_compile itself does not contain backslashes and begins 16144 # with a dollar sign (not a hyphen), so the echo should work correctly. 16145 # The option is referenced via a variable to avoid confusing sed. 16146 lt_compile=`echo "$ac_compile" | $SED \ 16147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16149 -e 's:$: $lt_compiler_flag:'` 16150 (eval echo "\"\$as_me:16150: $lt_compile\"" >&5) 16151 (eval "$lt_compile" 2>conftest.err) 16152 ac_status=$? 16153 cat conftest.err >&5 16154 echo "$as_me:16154: \$? = $ac_status" >&5 16155 if (exit $ac_status) && test -s "$ac_outfile"; then 16156 # The compiler can only warn and ignore the option if not recognized 16157 # So say no if there are warnings other than the usual output. 16158 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16161 lt_cv_prog_compiler_rtti_exceptions=yes 16162 fi 16163 fi 16164 $rm conftest* 16165 16166fi 16167{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16168echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16169 16170if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16171 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16172else 16173 : 16174fi 16175 16176fi 16177 16178lt_prog_compiler_wl_GCJ= 16179lt_prog_compiler_pic_GCJ= 16180lt_prog_compiler_static_GCJ= 16181 16182{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16183echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16184 16185 if test "$GCC" = yes; then 16186 lt_prog_compiler_wl_GCJ='-Wl,' 16187 lt_prog_compiler_static_GCJ='-static' 16188 16189 case $host_os in 16190 aix*) 16191 # All AIX code is PIC. 16192 if test "$host_cpu" = ia64; then 16193 # AIX 5 now supports IA64 processor 16194 lt_prog_compiler_static_GCJ='-Bstatic' 16195 fi 16196 ;; 16197 16198 amigaos*) 16199 # FIXME: we need at least 68020 code to build shared libraries, but 16200 # adding the `-m68020' flag to GCC prevents building anything better, 16201 # like `-m68040'. 16202 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16203 ;; 16204 16205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16206 # PIC is the default for these OSes. 16207 ;; 16208 16209 mingw* | pw32* | os2*) 16210 # This hack is so that the source file can tell whether it is being 16211 # built for inclusion in a dll (and should export symbols for example). 16212 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16213 ;; 16214 16215 darwin* | rhapsody*) 16216 # PIC is the default on this platform 16217 # Common symbols not allowed in MH_DYLIB files 16218 lt_prog_compiler_pic_GCJ='-fno-common' 16219 ;; 16220 16221 interix3*) 16222 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16223 # Instead, we relocate shared libraries at runtime. 16224 ;; 16225 16226 msdosdjgpp*) 16227 # Just because we use GCC doesn't mean we suddenly get shared libraries 16228 # on systems that don't support them. 16229 lt_prog_compiler_can_build_shared_GCJ=no 16230 enable_shared=no 16231 ;; 16232 16233 sysv4*MP*) 16234 if test -d /usr/nec; then 16235 lt_prog_compiler_pic_GCJ=-Kconform_pic 16236 fi 16237 ;; 16238 16239 hpux*) 16240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16241 # not for PA HP-UX. 16242 case $host_cpu in 16243 hppa*64*|ia64*) 16244 # +Z the default 16245 ;; 16246 *) 16247 lt_prog_compiler_pic_GCJ='-fPIC' 16248 ;; 16249 esac 16250 ;; 16251 16252 *) 16253 lt_prog_compiler_pic_GCJ='-fPIC' 16254 ;; 16255 esac 16256 else 16257 # PORTME Check for flag to pass linker flags through the system compiler. 16258 case $host_os in 16259 aix*) 16260 lt_prog_compiler_wl_GCJ='-Wl,' 16261 if test "$host_cpu" = ia64; then 16262 # AIX 5 now supports IA64 processor 16263 lt_prog_compiler_static_GCJ='-Bstatic' 16264 else 16265 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16266 fi 16267 ;; 16268 darwin*) 16269 # PIC is the default on this platform 16270 # Common symbols not allowed in MH_DYLIB files 16271 case $cc_basename in 16272 xlc*) 16273 lt_prog_compiler_pic_GCJ='-qnocommon' 16274 lt_prog_compiler_wl_GCJ='-Wl,' 16275 ;; 16276 esac 16277 ;; 16278 16279 mingw* | pw32* | os2*) 16280 # This hack is so that the source file can tell whether it is being 16281 # built for inclusion in a dll (and should export symbols for example). 16282 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16283 ;; 16284 16285 hpux9* | hpux10* | hpux11*) 16286 lt_prog_compiler_wl_GCJ='-Wl,' 16287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16288 # not for PA HP-UX. 16289 case $host_cpu in 16290 hppa*64*|ia64*) 16291 # +Z the default 16292 ;; 16293 *) 16294 lt_prog_compiler_pic_GCJ='+Z' 16295 ;; 16296 esac 16297 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16298 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16299 ;; 16300 16301 irix5* | irix6* | nonstopux*) 16302 lt_prog_compiler_wl_GCJ='-Wl,' 16303 # PIC (with -KPIC) is the default. 16304 lt_prog_compiler_static_GCJ='-non_shared' 16305 ;; 16306 16307 newsos6) 16308 lt_prog_compiler_pic_GCJ='-KPIC' 16309 lt_prog_compiler_static_GCJ='-Bstatic' 16310 ;; 16311 16312 linux* | k*bsd*-gnu) 16313 case $cc_basename in 16314 icc* | ecc*) 16315 lt_prog_compiler_wl_GCJ='-Wl,' 16316 lt_prog_compiler_pic_GCJ='-KPIC' 16317 lt_prog_compiler_static_GCJ='-static' 16318 ;; 16319 pgcc* | pgf77* | pgf90* | pgf95*) 16320 # Portland Group compilers (*not* the Pentium gcc compiler, 16321 # which looks to be a dead project) 16322 lt_prog_compiler_wl_GCJ='-Wl,' 16323 lt_prog_compiler_pic_GCJ='-fpic' 16324 lt_prog_compiler_static_GCJ='-Bstatic' 16325 ;; 16326 ccc*) 16327 lt_prog_compiler_wl_GCJ='-Wl,' 16328 # All Alpha code is PIC. 16329 lt_prog_compiler_static_GCJ='-non_shared' 16330 ;; 16331 esac 16332 ;; 16333 16334 osf3* | osf4* | osf5*) 16335 lt_prog_compiler_wl_GCJ='-Wl,' 16336 # All OSF/1 code is PIC. 16337 lt_prog_compiler_static_GCJ='-non_shared' 16338 ;; 16339 16340 solaris*) 16341 lt_prog_compiler_pic_GCJ='-KPIC' 16342 lt_prog_compiler_static_GCJ='-Bstatic' 16343 case $cc_basename in 16344 f77* | f90* | f95*) 16345 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16346 *) 16347 lt_prog_compiler_wl_GCJ='-Wl,';; 16348 esac 16349 ;; 16350 16351 sunos4*) 16352 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16353 lt_prog_compiler_pic_GCJ='-PIC' 16354 lt_prog_compiler_static_GCJ='-Bstatic' 16355 ;; 16356 16357 sysv4 | sysv4.2uw2* | sysv4.3*) 16358 lt_prog_compiler_wl_GCJ='-Wl,' 16359 lt_prog_compiler_pic_GCJ='-KPIC' 16360 lt_prog_compiler_static_GCJ='-Bstatic' 16361 ;; 16362 16363 sysv4*MP*) 16364 if test -d /usr/nec ;then 16365 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16366 lt_prog_compiler_static_GCJ='-Bstatic' 16367 fi 16368 ;; 16369 16370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16371 lt_prog_compiler_wl_GCJ='-Wl,' 16372 lt_prog_compiler_pic_GCJ='-KPIC' 16373 lt_prog_compiler_static_GCJ='-Bstatic' 16374 ;; 16375 16376 unicos*) 16377 lt_prog_compiler_wl_GCJ='-Wl,' 16378 lt_prog_compiler_can_build_shared_GCJ=no 16379 ;; 16380 16381 uts4*) 16382 lt_prog_compiler_pic_GCJ='-pic' 16383 lt_prog_compiler_static_GCJ='-Bstatic' 16384 ;; 16385 16386 *) 16387 lt_prog_compiler_can_build_shared_GCJ=no 16388 ;; 16389 esac 16390 fi 16391 16392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16393echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16394 16395# 16396# Check to make sure the PIC flag actually works. 16397# 16398if test -n "$lt_prog_compiler_pic_GCJ"; then 16399 16400{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16401echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16402if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16403 echo $ECHO_N "(cached) $ECHO_C" >&6 16404else 16405 lt_prog_compiler_pic_works_GCJ=no 16406 ac_outfile=conftest.$ac_objext 16407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16408 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16409 # Insert the option either (1) after the last *FLAGS variable, or 16410 # (2) before a word containing "conftest.", or (3) at the end. 16411 # Note that $ac_compile itself does not contain backslashes and begins 16412 # with a dollar sign (not a hyphen), so the echo should work correctly. 16413 # The option is referenced via a variable to avoid confusing sed. 16414 lt_compile=`echo "$ac_compile" | $SED \ 16415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16417 -e 's:$: $lt_compiler_flag:'` 16418 (eval echo "\"\$as_me:16418: $lt_compile\"" >&5) 16419 (eval "$lt_compile" 2>conftest.err) 16420 ac_status=$? 16421 cat conftest.err >&5 16422 echo "$as_me:16422: \$? = $ac_status" >&5 16423 if (exit $ac_status) && test -s "$ac_outfile"; then 16424 # The compiler can only warn and ignore the option if not recognized 16425 # So say no if there are warnings other than the usual output. 16426 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16429 lt_prog_compiler_pic_works_GCJ=yes 16430 fi 16431 fi 16432 $rm conftest* 16433 16434fi 16435{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16436echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16437 16438if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16439 case $lt_prog_compiler_pic_GCJ in 16440 "" | " "*) ;; 16441 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16442 esac 16443else 16444 lt_prog_compiler_pic_GCJ= 16445 lt_prog_compiler_can_build_shared_GCJ=no 16446fi 16447 16448fi 16449case $host_os in 16450 # For platforms which do not support PIC, -DPIC is meaningless: 16451 *djgpp*) 16452 lt_prog_compiler_pic_GCJ= 16453 ;; 16454 *) 16455 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16456 ;; 16457esac 16458 16459# 16460# Check to make sure the static flag actually works. 16461# 16462wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16463{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16464echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16465if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16466 echo $ECHO_N "(cached) $ECHO_C" >&6 16467else 16468 lt_prog_compiler_static_works_GCJ=no 16469 save_LDFLAGS="$LDFLAGS" 16470 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16471 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16473 # The linker can only warn and ignore the option if not recognized 16474 # So say no if there are warnings 16475 if test -s conftest.err; then 16476 # Append any errors to the config.log. 16477 cat conftest.err 1>&5 16478 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16480 if diff conftest.exp conftest.er2 >/dev/null; then 16481 lt_prog_compiler_static_works_GCJ=yes 16482 fi 16483 else 16484 lt_prog_compiler_static_works_GCJ=yes 16485 fi 16486 fi 16487 $rm conftest* 16488 LDFLAGS="$save_LDFLAGS" 16489 16490fi 16491{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16492echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16493 16494if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16495 : 16496else 16497 lt_prog_compiler_static_GCJ= 16498fi 16499 16500 16501{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16502echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16503if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16504 echo $ECHO_N "(cached) $ECHO_C" >&6 16505else 16506 lt_cv_prog_compiler_c_o_GCJ=no 16507 $rm -r conftest 2>/dev/null 16508 mkdir conftest 16509 cd conftest 16510 mkdir out 16511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16512 16513 lt_compiler_flag="-o out/conftest2.$ac_objext" 16514 # Insert the option either (1) after the last *FLAGS variable, or 16515 # (2) before a word containing "conftest.", or (3) at the end. 16516 # Note that $ac_compile itself does not contain backslashes and begins 16517 # with a dollar sign (not a hyphen), so the echo should work correctly. 16518 lt_compile=`echo "$ac_compile" | $SED \ 16519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16521 -e 's:$: $lt_compiler_flag:'` 16522 (eval echo "\"\$as_me:16522: $lt_compile\"" >&5) 16523 (eval "$lt_compile" 2>out/conftest.err) 16524 ac_status=$? 16525 cat out/conftest.err >&5 16526 echo "$as_me:16526: \$? = $ac_status" >&5 16527 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16528 then 16529 # The compiler can only warn and ignore the option if not recognized 16530 # So say no if there are warnings 16531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16534 lt_cv_prog_compiler_c_o_GCJ=yes 16535 fi 16536 fi 16537 chmod u+w . 2>&5 16538 $rm conftest* 16539 # SGI C++ compiler will create directory out/ii_files/ for 16540 # template instantiation 16541 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16542 $rm out/* && rmdir out 16543 cd .. 16544 rmdir conftest 16545 $rm conftest* 16546 16547fi 16548{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16549echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16550 16551 16552hard_links="nottested" 16553if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16554 # do not overwrite the value of need_locks provided by the user 16555 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16556echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16557 hard_links=yes 16558 $rm conftest* 16559 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16560 touch conftest.a 16561 ln conftest.a conftest.b 2>&5 || hard_links=no 16562 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16563 { echo "$as_me:$LINENO: result: $hard_links" >&5 16564echo "${ECHO_T}$hard_links" >&6; } 16565 if test "$hard_links" = no; then 16566 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16567echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16568 need_locks=warn 16569 fi 16570else 16571 need_locks=no 16572fi 16573 16574{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16575echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16576 16577 runpath_var= 16578 allow_undefined_flag_GCJ= 16579 enable_shared_with_static_runtimes_GCJ=no 16580 archive_cmds_GCJ= 16581 archive_expsym_cmds_GCJ= 16582 old_archive_From_new_cmds_GCJ= 16583 old_archive_from_expsyms_cmds_GCJ= 16584 export_dynamic_flag_spec_GCJ= 16585 whole_archive_flag_spec_GCJ= 16586 thread_safe_flag_spec_GCJ= 16587 hardcode_libdir_flag_spec_GCJ= 16588 hardcode_libdir_flag_spec_ld_GCJ= 16589 hardcode_libdir_separator_GCJ= 16590 hardcode_direct_GCJ=no 16591 hardcode_minus_L_GCJ=no 16592 hardcode_shlibpath_var_GCJ=unsupported 16593 link_all_deplibs_GCJ=unknown 16594 hardcode_automatic_GCJ=no 16595 module_cmds_GCJ= 16596 module_expsym_cmds_GCJ= 16597 always_export_symbols_GCJ=no 16598 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16599 # include_expsyms should be a list of space-separated symbols to be *always* 16600 # included in the symbol list 16601 include_expsyms_GCJ= 16602 # exclude_expsyms can be an extended regexp of symbols to exclude 16603 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16605 # as well as any symbol that contains `d'. 16606 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16608 # platforms (ab)use it in PIC code, but their linkers get confused if 16609 # the symbol is explicitly referenced. Since portable code cannot 16610 # rely on this symbol name, it's probably fine to never include it in 16611 # preloaded symbol tables. 16612 extract_expsyms_cmds= 16613 # Just being paranoid about ensuring that cc_basename is set. 16614 for cc_temp in $compiler""; do 16615 case $cc_temp in 16616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16618 \-*) ;; 16619 *) break;; 16620 esac 16621done 16622cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16623 16624 case $host_os in 16625 cygwin* | mingw* | pw32*) 16626 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16627 # When not using gcc, we currently assume that we are using 16628 # Microsoft Visual C++. 16629 if test "$GCC" != yes; then 16630 with_gnu_ld=no 16631 fi 16632 ;; 16633 interix*) 16634 # we just hope/assume this is gcc and not c89 (= MSVC++) 16635 with_gnu_ld=yes 16636 ;; 16637 openbsd*) 16638 with_gnu_ld=no 16639 ;; 16640 esac 16641 16642 ld_shlibs_GCJ=yes 16643 if test "$with_gnu_ld" = yes; then 16644 # If archive_cmds runs LD, not CC, wlarc should be empty 16645 wlarc='${wl}' 16646 16647 # Set some defaults for GNU ld with shared library support. These 16648 # are reset later if shared libraries are not supported. Putting them 16649 # here allows them to be overridden if necessary. 16650 runpath_var=LD_RUN_PATH 16651 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16652 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16653 # ancient GNU ld didn't support --whole-archive et. al. 16654 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16655 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16656 else 16657 whole_archive_flag_spec_GCJ= 16658 fi 16659 supports_anon_versioning=no 16660 case `$LD -v 2>/dev/null` in 16661 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16662 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16663 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16664 *\ 2.11.*) ;; # other 2.11 versions 16665 *) supports_anon_versioning=yes ;; 16666 esac 16667 16668 # See if GNU ld supports shared libraries. 16669 case $host_os in 16670 aix3* | aix4* | aix5*) 16671 # On AIX/PPC, the GNU linker is very broken 16672 if test "$host_cpu" != ia64; then 16673 ld_shlibs_GCJ=no 16674 cat <<EOF 1>&2 16675 16676*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16677*** to be unable to reliably create shared libraries on AIX. 16678*** Therefore, libtool is disabling shared libraries support. If you 16679*** really care for shared libraries, you may want to modify your PATH 16680*** so that a non-GNU linker is found, and then restart. 16681 16682EOF 16683 fi 16684 ;; 16685 16686 amigaos*) 16687 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)' 16688 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16689 hardcode_minus_L_GCJ=yes 16690 16691 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16692 # that the semantics of dynamic libraries on AmigaOS, at least up 16693 # to version 4, is to share data among multiple programs linked 16694 # with the same dynamic library. Since this doesn't match the 16695 # behavior of shared libraries on other platforms, we can't use 16696 # them. 16697 ld_shlibs_GCJ=no 16698 ;; 16699 16700 beos*) 16701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16702 allow_undefined_flag_GCJ=unsupported 16703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16704 # support --undefined. This deserves some investigation. FIXME 16705 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16706 else 16707 ld_shlibs_GCJ=no 16708 fi 16709 ;; 16710 16711 cygwin* | mingw* | pw32*) 16712 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16713 # as there is no search path for DLLs. 16714 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16715 allow_undefined_flag_GCJ=unsupported 16716 always_export_symbols_GCJ=no 16717 enable_shared_with_static_runtimes_GCJ=yes 16718 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16719 16720 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16721 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16722 # If the export-symbols file already is a .def file (1st line 16723 # is EXPORTS), use it as is; otherwise, prepend... 16724 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16725 cp $export_symbols $output_objdir/$soname.def; 16726 else 16727 echo EXPORTS > $output_objdir/$soname.def; 16728 cat $export_symbols >> $output_objdir/$soname.def; 16729 fi~ 16730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16731 else 16732 ld_shlibs_GCJ=no 16733 fi 16734 ;; 16735 16736 interix3*) 16737 hardcode_direct_GCJ=no 16738 hardcode_shlibpath_var_GCJ=no 16739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16740 export_dynamic_flag_spec_GCJ='${wl}-E' 16741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16742 # Instead, shared libraries are loaded at an image base (0x10000000 by 16743 # default) and relocated if they conflict, which is a slow very memory 16744 # consuming and fragmenting process. To avoid this, we pick a random, 16745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16746 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16747 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' 16748 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' 16749 ;; 16750 16751 linux* | k*bsd*-gnu) 16752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16753 tmp_addflag= 16754 case $cc_basename,$host_cpu in 16755 pgcc*) # Portland Group C compiler 16756 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' 16757 tmp_addflag=' $pic_flag' 16758 ;; 16759 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16760 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' 16761 tmp_addflag=' $pic_flag -Mnomain' ;; 16762 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16763 tmp_addflag=' -i_dynamic' ;; 16764 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16765 tmp_addflag=' -i_dynamic -nofor_main' ;; 16766 ifc* | ifort*) # Intel Fortran compiler 16767 tmp_addflag=' -nofor_main' ;; 16768 esac 16769 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16770 16771 if test $supports_anon_versioning = yes; then 16772 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16774 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16775 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16776 fi 16777 link_all_deplibs_GCJ=no 16778 else 16779 ld_shlibs_GCJ=no 16780 fi 16781 ;; 16782 16783 netbsd* | netbsdelf*-gnu) 16784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16785 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16786 wlarc= 16787 else 16788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16789 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16790 fi 16791 ;; 16792 16793 solaris*) 16794 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16795 ld_shlibs_GCJ=no 16796 cat <<EOF 1>&2 16797 16798*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16799*** create shared libraries on Solaris systems. Therefore, libtool 16800*** is disabling shared libraries support. We urge you to upgrade GNU 16801*** binutils to release 2.9.1 or newer. Another option is to modify 16802*** your PATH or compiler configuration so that the native linker is 16803*** used, and then restart. 16804 16805EOF 16806 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16807 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16808 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16809 else 16810 ld_shlibs_GCJ=no 16811 fi 16812 ;; 16813 16814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16815 case `$LD -v 2>&1` in 16816 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16817 ld_shlibs_GCJ=no 16818 cat <<_LT_EOF 1>&2 16819 16820*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16821*** reliably create shared libraries on SCO systems. Therefore, libtool 16822*** is disabling shared libraries support. We urge you to upgrade GNU 16823*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16824*** your PATH or compiler configuration so that the native linker is 16825*** used, and then restart. 16826 16827_LT_EOF 16828 ;; 16829 *) 16830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16831 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16832 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16833 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16834 else 16835 ld_shlibs_GCJ=no 16836 fi 16837 ;; 16838 esac 16839 ;; 16840 16841 sunos4*) 16842 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16843 wlarc= 16844 hardcode_direct_GCJ=yes 16845 hardcode_shlibpath_var_GCJ=no 16846 ;; 16847 16848 *) 16849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16850 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16851 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16852 else 16853 ld_shlibs_GCJ=no 16854 fi 16855 ;; 16856 esac 16857 16858 if test "$ld_shlibs_GCJ" = no; then 16859 runpath_var= 16860 hardcode_libdir_flag_spec_GCJ= 16861 export_dynamic_flag_spec_GCJ= 16862 whole_archive_flag_spec_GCJ= 16863 fi 16864 else 16865 # PORTME fill in a description of your system's linker (not GNU ld) 16866 case $host_os in 16867 aix3*) 16868 allow_undefined_flag_GCJ=unsupported 16869 always_export_symbols_GCJ=yes 16870 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' 16871 # Note: this linker hardcodes the directories in LIBPATH if there 16872 # are no directories specified by -L. 16873 hardcode_minus_L_GCJ=yes 16874 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16875 # Neither direct hardcoding nor static linking is supported with a 16876 # broken collect2. 16877 hardcode_direct_GCJ=unsupported 16878 fi 16879 ;; 16880 16881 aix4* | aix5*) 16882 if test "$host_cpu" = ia64; then 16883 # On IA64, the linker does run time linking by default, so we don't 16884 # have to do anything special. 16885 aix_use_runtimelinking=no 16886 exp_sym_flag='-Bexport' 16887 no_entry_flag="" 16888 else 16889 # If we're using GNU nm, then we don't want the "-C" option. 16890 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16891 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16892 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' 16893 else 16894 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' 16895 fi 16896 aix_use_runtimelinking=no 16897 16898 # Test if we are trying to use run time linking or normal 16899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16900 # need to do runtime linking. 16901 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16902 for ld_flag in $LDFLAGS; do 16903 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16904 aix_use_runtimelinking=yes 16905 break 16906 fi 16907 done 16908 ;; 16909 esac 16910 16911 exp_sym_flag='-bexport' 16912 no_entry_flag='-bnoentry' 16913 fi 16914 16915 # When large executables or shared objects are built, AIX ld can 16916 # have problems creating the table of contents. If linking a library 16917 # or program results in "error TOC overflow" add -mminimal-toc to 16918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16920 16921 archive_cmds_GCJ='' 16922 hardcode_direct_GCJ=yes 16923 hardcode_libdir_separator_GCJ=':' 16924 link_all_deplibs_GCJ=yes 16925 16926 if test "$GCC" = yes; then 16927 case $host_os in aix4.[012]|aix4.[012].*) 16928 # We only want to do this on AIX 4.2 and lower, the check 16929 # below for broken collect2 doesn't work under 4.3+ 16930 collect2name=`${CC} -print-prog-name=collect2` 16931 if test -f "$collect2name" && \ 16932 strings "$collect2name" | grep resolve_lib_name >/dev/null 16933 then 16934 # We have reworked collect2 16935 hardcode_direct_GCJ=yes 16936 else 16937 # We have old collect2 16938 hardcode_direct_GCJ=unsupported 16939 # It fails to find uninstalled libraries when the uninstalled 16940 # path is not listed in the libpath. Setting hardcode_minus_L 16941 # to unsupported forces relinking 16942 hardcode_minus_L_GCJ=yes 16943 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16944 hardcode_libdir_separator_GCJ= 16945 fi 16946 ;; 16947 esac 16948 shared_flag='-shared' 16949 if test "$aix_use_runtimelinking" = yes; then 16950 shared_flag="$shared_flag "'${wl}-G' 16951 fi 16952 else 16953 # not using gcc 16954 if test "$host_cpu" = ia64; then 16955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16956 # chokes on -Wl,-G. The following line is correct: 16957 shared_flag='-G' 16958 else 16959 if test "$aix_use_runtimelinking" = yes; then 16960 shared_flag='${wl}-G' 16961 else 16962 shared_flag='${wl}-bM:SRE' 16963 fi 16964 fi 16965 fi 16966 16967 # It seems that -bexpall does not export symbols beginning with 16968 # underscore (_), so it is better to generate a list of symbols to export. 16969 always_export_symbols_GCJ=yes 16970 if test "$aix_use_runtimelinking" = yes; then 16971 # Warning - without using the other runtime loading flags (-brtl), 16972 # -berok will link without error, but may produce a broken library. 16973 allow_undefined_flag_GCJ='-berok' 16974 # Determine the default libpath from the value encoded in an empty executable. 16975 cat >conftest.$ac_ext <<_ACEOF 16976/* confdefs.h. */ 16977_ACEOF 16978cat confdefs.h >>conftest.$ac_ext 16979cat >>conftest.$ac_ext <<_ACEOF 16980/* end confdefs.h. */ 16981 16982int 16983main () 16984{ 16985 16986 ; 16987 return 0; 16988} 16989_ACEOF 16990rm -f conftest.$ac_objext conftest$ac_exeext 16991if { (ac_try="$ac_link" 16992case "(($ac_try" in 16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16994 *) ac_try_echo=$ac_try;; 16995esac 16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16997 (eval "$ac_link") 2>conftest.er1 16998 ac_status=$? 16999 grep -v '^ *+' conftest.er1 >conftest.err 17000 rm -f conftest.er1 17001 cat conftest.err >&5 17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17003 (exit $ac_status); } && { 17004 test -z "$ac_c_werror_flag" || 17005 test ! -s conftest.err 17006 } && test -s conftest$ac_exeext && 17007 $as_test_x conftest$ac_exeext; then 17008 17009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17010}'` 17011# Check for a 64-bit object if we didn't find anything. 17012if 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; } 17013}'`; fi 17014else 17015 echo "$as_me: failed program was:" >&5 17016sed 's/^/| /' conftest.$ac_ext >&5 17017 17018 17019fi 17020 17021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17022 conftest$ac_exeext conftest.$ac_ext 17023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17024 17025 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17026 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" 17027 else 17028 if test "$host_cpu" = ia64; then 17029 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17030 allow_undefined_flag_GCJ="-z nodefs" 17031 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" 17032 else 17033 # Determine the default libpath from the value encoded in an empty executable. 17034 cat >conftest.$ac_ext <<_ACEOF 17035/* confdefs.h. */ 17036_ACEOF 17037cat confdefs.h >>conftest.$ac_ext 17038cat >>conftest.$ac_ext <<_ACEOF 17039/* end confdefs.h. */ 17040 17041int 17042main () 17043{ 17044 17045 ; 17046 return 0; 17047} 17048_ACEOF 17049rm -f conftest.$ac_objext conftest$ac_exeext 17050if { (ac_try="$ac_link" 17051case "(($ac_try" in 17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17053 *) ac_try_echo=$ac_try;; 17054esac 17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17056 (eval "$ac_link") 2>conftest.er1 17057 ac_status=$? 17058 grep -v '^ *+' conftest.er1 >conftest.err 17059 rm -f conftest.er1 17060 cat conftest.err >&5 17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17062 (exit $ac_status); } && { 17063 test -z "$ac_c_werror_flag" || 17064 test ! -s conftest.err 17065 } && test -s conftest$ac_exeext && 17066 $as_test_x conftest$ac_exeext; then 17067 17068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17069}'` 17070# Check for a 64-bit object if we didn't find anything. 17071if 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; } 17072}'`; fi 17073else 17074 echo "$as_me: failed program was:" >&5 17075sed 's/^/| /' conftest.$ac_ext >&5 17076 17077 17078fi 17079 17080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17081 conftest$ac_exeext conftest.$ac_ext 17082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17083 17084 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17085 # Warning - without using the other run time loading flags, 17086 # -berok will link without error, but may produce a broken library. 17087 no_undefined_flag_GCJ=' ${wl}-bernotok' 17088 allow_undefined_flag_GCJ=' ${wl}-berok' 17089 # Exported symbols can be pulled into shared objects from archives 17090 whole_archive_flag_spec_GCJ='$convenience' 17091 archive_cmds_need_lc_GCJ=yes 17092 # This is similar to how AIX traditionally builds its shared libraries. 17093 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' 17094 fi 17095 fi 17096 ;; 17097 17098 amigaos*) 17099 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)' 17100 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17101 hardcode_minus_L_GCJ=yes 17102 # see comment about different semantics on the GNU ld section 17103 ld_shlibs_GCJ=no 17104 ;; 17105 17106 bsdi[45]*) 17107 export_dynamic_flag_spec_GCJ=-rdynamic 17108 ;; 17109 17110 cygwin* | mingw* | pw32*) 17111 # When not using gcc, we currently assume that we are using 17112 # Microsoft Visual C++. 17113 # hardcode_libdir_flag_spec is actually meaningless, as there is 17114 # no search path for DLLs. 17115 hardcode_libdir_flag_spec_GCJ=' ' 17116 allow_undefined_flag_GCJ=unsupported 17117 # Tell ltmain to make .lib files, not .a files. 17118 libext=lib 17119 # Tell ltmain to make .dll files, not .so files. 17120 shrext_cmds=".dll" 17121 # FIXME: Setting linknames here is a bad hack. 17122 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17123 # The linker will automatically build a .lib file if we build a DLL. 17124 old_archive_From_new_cmds_GCJ='true' 17125 # FIXME: Should let the user specify the lib program. 17126 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17127 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17128 enable_shared_with_static_runtimes_GCJ=yes 17129 ;; 17130 17131 darwin* | rhapsody*) 17132 case $host_os in 17133 rhapsody* | darwin1.[012]) 17134 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17135 ;; 17136 *) # Darwin 1.3 on 17137 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17138 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17139 else 17140 case ${MACOSX_DEPLOYMENT_TARGET} in 17141 10.[012]) 17142 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17143 ;; 17144 10.*) 17145 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17146 ;; 17147 esac 17148 fi 17149 ;; 17150 esac 17151 archive_cmds_need_lc_GCJ=no 17152 hardcode_direct_GCJ=no 17153 hardcode_automatic_GCJ=yes 17154 hardcode_shlibpath_var_GCJ=unsupported 17155 whole_archive_flag_spec_GCJ='' 17156 link_all_deplibs_GCJ=yes 17157 if test "$GCC" = yes ; then 17158 output_verbose_link_cmd='echo' 17159 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17160 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17162 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}' 17163 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}' 17164 else 17165 case $cc_basename in 17166 xlc*) 17167 output_verbose_link_cmd='echo' 17168 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17169 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17170 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17171 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}' 17172 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}' 17173 ;; 17174 *) 17175 ld_shlibs_GCJ=no 17176 ;; 17177 esac 17178 fi 17179 ;; 17180 17181 dgux*) 17182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17183 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17184 hardcode_shlibpath_var_GCJ=no 17185 ;; 17186 17187 freebsd1*) 17188 ld_shlibs_GCJ=no 17189 ;; 17190 17191 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17192 # support. Future versions do this automatically, but an explicit c++rt0.o 17193 # does not break anything, and helps significantly (at the cost of a little 17194 # extra space). 17195 freebsd2.2*) 17196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17197 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17198 hardcode_direct_GCJ=yes 17199 hardcode_shlibpath_var_GCJ=no 17200 ;; 17201 17202 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17203 freebsd2*) 17204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17205 hardcode_direct_GCJ=yes 17206 hardcode_minus_L_GCJ=yes 17207 hardcode_shlibpath_var_GCJ=no 17208 ;; 17209 17210 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17211 freebsd* | dragonfly*) 17212 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17213 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17214 hardcode_direct_GCJ=yes 17215 hardcode_shlibpath_var_GCJ=no 17216 ;; 17217 17218 hpux9*) 17219 if test "$GCC" = yes; then 17220 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' 17221 else 17222 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' 17223 fi 17224 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17225 hardcode_libdir_separator_GCJ=: 17226 hardcode_direct_GCJ=yes 17227 17228 # hardcode_minus_L: Not really in the search PATH, 17229 # but as the default location of the library. 17230 hardcode_minus_L_GCJ=yes 17231 export_dynamic_flag_spec_GCJ='${wl}-E' 17232 ;; 17233 17234 hpux10*) 17235 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17236 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17237 else 17238 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17239 fi 17240 if test "$with_gnu_ld" = no; then 17241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17242 hardcode_libdir_separator_GCJ=: 17243 17244 hardcode_direct_GCJ=yes 17245 export_dynamic_flag_spec_GCJ='${wl}-E' 17246 17247 # hardcode_minus_L: Not really in the search PATH, 17248 # but as the default location of the library. 17249 hardcode_minus_L_GCJ=yes 17250 fi 17251 ;; 17252 17253 hpux11*) 17254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17255 case $host_cpu in 17256 hppa*64*) 17257 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17258 ;; 17259 ia64*) 17260 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17261 ;; 17262 *) 17263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17264 ;; 17265 esac 17266 else 17267 case $host_cpu in 17268 hppa*64*) 17269 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17270 ;; 17271 ia64*) 17272 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17273 ;; 17274 *) 17275 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17276 ;; 17277 esac 17278 fi 17279 if test "$with_gnu_ld" = no; then 17280 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17281 hardcode_libdir_separator_GCJ=: 17282 17283 case $host_cpu in 17284 hppa*64*|ia64*) 17285 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17286 hardcode_direct_GCJ=no 17287 hardcode_shlibpath_var_GCJ=no 17288 ;; 17289 *) 17290 hardcode_direct_GCJ=yes 17291 export_dynamic_flag_spec_GCJ='${wl}-E' 17292 17293 # hardcode_minus_L: Not really in the search PATH, 17294 # but as the default location of the library. 17295 hardcode_minus_L_GCJ=yes 17296 ;; 17297 esac 17298 fi 17299 ;; 17300 17301 irix5* | irix6* | nonstopux*) 17302 if test "$GCC" = yes; then 17303 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' 17304 else 17305 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' 17306 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17307 fi 17308 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17309 hardcode_libdir_separator_GCJ=: 17310 link_all_deplibs_GCJ=yes 17311 ;; 17312 17313 netbsd* | netbsdelf*-gnu) 17314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17315 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17316 else 17317 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17318 fi 17319 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17320 hardcode_direct_GCJ=yes 17321 hardcode_shlibpath_var_GCJ=no 17322 ;; 17323 17324 newsos6) 17325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17326 hardcode_direct_GCJ=yes 17327 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17328 hardcode_libdir_separator_GCJ=: 17329 hardcode_shlibpath_var_GCJ=no 17330 ;; 17331 17332 openbsd*) 17333 hardcode_direct_GCJ=yes 17334 hardcode_shlibpath_var_GCJ=no 17335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17336 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17337 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17339 export_dynamic_flag_spec_GCJ='${wl}-E' 17340 else 17341 case $host_os in 17342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17343 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17344 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17345 ;; 17346 *) 17347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17349 ;; 17350 esac 17351 fi 17352 ;; 17353 17354 os2*) 17355 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17356 hardcode_minus_L_GCJ=yes 17357 allow_undefined_flag_GCJ=unsupported 17358 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' 17359 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17360 ;; 17361 17362 osf3*) 17363 if test "$GCC" = yes; then 17364 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17365 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' 17366 else 17367 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17368 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' 17369 fi 17370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17371 hardcode_libdir_separator_GCJ=: 17372 ;; 17373 17374 osf4* | osf5*) # as osf3* with the addition of -msym flag 17375 if test "$GCC" = yes; then 17376 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17377 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' 17378 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17379 else 17380 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17381 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' 17382 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~ 17383 $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' 17384 17385 # Both c and cxx compiler support -rpath directly 17386 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17387 fi 17388 hardcode_libdir_separator_GCJ=: 17389 ;; 17390 17391 solaris*) 17392 no_undefined_flag_GCJ=' -z text' 17393 if test "$GCC" = yes; then 17394 wlarc='${wl}' 17395 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17396 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17397 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17398 else 17399 wlarc='' 17400 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17401 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17403 fi 17404 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17405 hardcode_shlibpath_var_GCJ=no 17406 case $host_os in 17407 solaris2.[0-5] | solaris2.[0-5].*) ;; 17408 *) 17409 # The compiler driver will combine linker options so we 17410 # cannot just pass the convience library names through 17411 # without $wl, iff we do not link with $LD. 17412 # Luckily, gcc supports the same syntax we need for Sun Studio. 17413 # Supported since Solaris 2.6 (maybe 2.5.1?) 17414 case $wlarc in 17415 '') 17416 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17417 *) 17418 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' ;; 17419 esac ;; 17420 esac 17421 link_all_deplibs_GCJ=yes 17422 ;; 17423 17424 sunos4*) 17425 if test "x$host_vendor" = xsequent; then 17426 # Use $CC to link under sequent, because it throws in some extra .o 17427 # files that make .init and .fini sections work. 17428 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17429 else 17430 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17431 fi 17432 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17433 hardcode_direct_GCJ=yes 17434 hardcode_minus_L_GCJ=yes 17435 hardcode_shlibpath_var_GCJ=no 17436 ;; 17437 17438 sysv4) 17439 case $host_vendor in 17440 sni) 17441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17442 hardcode_direct_GCJ=yes # is this really true??? 17443 ;; 17444 siemens) 17445 ## LD is ld it makes a PLAMLIB 17446 ## CC just makes a GrossModule. 17447 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17448 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17449 hardcode_direct_GCJ=no 17450 ;; 17451 motorola) 17452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17453 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17454 ;; 17455 esac 17456 runpath_var='LD_RUN_PATH' 17457 hardcode_shlibpath_var_GCJ=no 17458 ;; 17459 17460 sysv4.3*) 17461 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17462 hardcode_shlibpath_var_GCJ=no 17463 export_dynamic_flag_spec_GCJ='-Bexport' 17464 ;; 17465 17466 sysv4*MP*) 17467 if test -d /usr/nec; then 17468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17469 hardcode_shlibpath_var_GCJ=no 17470 runpath_var=LD_RUN_PATH 17471 hardcode_runpath_var=yes 17472 ld_shlibs_GCJ=yes 17473 fi 17474 ;; 17475 17476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17477 no_undefined_flag_GCJ='${wl}-z,text' 17478 archive_cmds_need_lc_GCJ=no 17479 hardcode_shlibpath_var_GCJ=no 17480 runpath_var='LD_RUN_PATH' 17481 17482 if test "$GCC" = yes; then 17483 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17484 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17485 else 17486 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17487 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17488 fi 17489 ;; 17490 17491 sysv5* | sco3.2v5* | sco5v6*) 17492 # Note: We can NOT use -z defs as we might desire, because we do not 17493 # link with -lc, and that would cause any symbols used from libc to 17494 # always be unresolved, which means just about no library would 17495 # ever link correctly. If we're not using GNU ld we use -z text 17496 # though, which does catch some bad symbols but isn't as heavy-handed 17497 # as -z defs. 17498 no_undefined_flag_GCJ='${wl}-z,text' 17499 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17500 archive_cmds_need_lc_GCJ=no 17501 hardcode_shlibpath_var_GCJ=no 17502 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17503 hardcode_libdir_separator_GCJ=':' 17504 link_all_deplibs_GCJ=yes 17505 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17506 runpath_var='LD_RUN_PATH' 17507 17508 if test "$GCC" = yes; then 17509 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17510 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17511 else 17512 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17513 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17514 fi 17515 ;; 17516 17517 uts4*) 17518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17519 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17520 hardcode_shlibpath_var_GCJ=no 17521 ;; 17522 17523 *) 17524 ld_shlibs_GCJ=no 17525 ;; 17526 esac 17527 fi 17528 17529{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17530echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17531test "$ld_shlibs_GCJ" = no && can_build_shared=no 17532 17533# 17534# Do we need to explicitly link libc? 17535# 17536case "x$archive_cmds_need_lc_GCJ" in 17537x|xyes) 17538 # Assume -lc should be added 17539 archive_cmds_need_lc_GCJ=yes 17540 17541 if test "$enable_shared" = yes && test "$GCC" = yes; then 17542 case $archive_cmds_GCJ in 17543 *'~'*) 17544 # FIXME: we may have to deal with multi-command sequences. 17545 ;; 17546 '$CC '*) 17547 # Test whether the compiler implicitly links with -lc since on some 17548 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17549 # to ld, don't add -lc before -lgcc. 17550 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17551echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17552 $rm conftest* 17553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17554 17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17556 (eval $ac_compile) 2>&5 17557 ac_status=$? 17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17559 (exit $ac_status); } 2>conftest.err; then 17560 soname=conftest 17561 lib=conftest 17562 libobjs=conftest.$ac_objext 17563 deplibs= 17564 wl=$lt_prog_compiler_wl_GCJ 17565 pic_flag=$lt_prog_compiler_pic_GCJ 17566 compiler_flags=-v 17567 linker_flags=-v 17568 verstring= 17569 output_objdir=. 17570 libname=conftest 17571 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17572 allow_undefined_flag_GCJ= 17573 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17574 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17575 ac_status=$? 17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17577 (exit $ac_status); } 17578 then 17579 archive_cmds_need_lc_GCJ=no 17580 else 17581 archive_cmds_need_lc_GCJ=yes 17582 fi 17583 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17584 else 17585 cat conftest.err 1>&5 17586 fi 17587 $rm conftest* 17588 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17589echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17590 ;; 17591 esac 17592 fi 17593 ;; 17594esac 17595 17596{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17597echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17598library_names_spec= 17599libname_spec='lib$name' 17600soname_spec= 17601shrext_cmds=".so" 17602postinstall_cmds= 17603postuninstall_cmds= 17604finish_cmds= 17605finish_eval= 17606shlibpath_var= 17607shlibpath_overrides_runpath=unknown 17608version_type=none 17609dynamic_linker="$host_os ld.so" 17610sys_lib_dlsearch_path_spec="/lib /usr/lib" 17611if test "$GCC" = yes; then 17612 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17613 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17614 # if the path contains ";" then we assume it to be the separator 17615 # otherwise default to the standard path separator (i.e. ":") - it is 17616 # assumed that no part of a normal pathname contains ";" but that should 17617 # okay in the real world where ";" in dirpaths is itself problematic. 17618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17619 else 17620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17621 fi 17622else 17623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17624fi 17625need_lib_prefix=unknown 17626hardcode_into_libs=no 17627 17628# when you set need_version to no, make sure it does not cause -set_version 17629# flags to be left without arguments 17630need_version=unknown 17631 17632case $host_os in 17633aix3*) 17634 version_type=linux 17635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17636 shlibpath_var=LIBPATH 17637 17638 # AIX 3 has no versioning support, so we append a major version to the name. 17639 soname_spec='${libname}${release}${shared_ext}$major' 17640 ;; 17641 17642aix4* | aix5*) 17643 version_type=linux 17644 need_lib_prefix=no 17645 need_version=no 17646 hardcode_into_libs=yes 17647 if test "$host_cpu" = ia64; then 17648 # AIX 5 supports IA64 17649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17650 shlibpath_var=LD_LIBRARY_PATH 17651 else 17652 # With GCC up to 2.95.x, collect2 would create an import file 17653 # for dependence libraries. The import file would start with 17654 # the line `#! .'. This would cause the generated library to 17655 # depend on `.', always an invalid library. This was fixed in 17656 # development snapshots of GCC prior to 3.0. 17657 case $host_os in 17658 aix4 | aix4.[01] | aix4.[01].*) 17659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17660 echo ' yes ' 17661 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17662 : 17663 else 17664 can_build_shared=no 17665 fi 17666 ;; 17667 esac 17668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17669 # soname into executable. Probably we can add versioning support to 17670 # collect2, so additional links can be useful in future. 17671 if test "$aix_use_runtimelinking" = yes; then 17672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17673 # instead of lib<name>.a to let people know that these are not 17674 # typical AIX shared libraries. 17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17676 else 17677 # We preserve .a as extension for shared libraries through AIX4.2 17678 # and later when we are not doing run time linking. 17679 library_names_spec='${libname}${release}.a $libname.a' 17680 soname_spec='${libname}${release}${shared_ext}$major' 17681 fi 17682 shlibpath_var=LIBPATH 17683 fi 17684 ;; 17685 17686amigaos*) 17687 library_names_spec='$libname.ixlibrary $libname.a' 17688 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17689 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' 17690 ;; 17691 17692beos*) 17693 library_names_spec='${libname}${shared_ext}' 17694 dynamic_linker="$host_os ld.so" 17695 shlibpath_var=LIBRARY_PATH 17696 ;; 17697 17698bsdi[45]*) 17699 version_type=linux 17700 need_version=no 17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17702 soname_spec='${libname}${release}${shared_ext}$major' 17703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17704 shlibpath_var=LD_LIBRARY_PATH 17705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17707 # the default ld.so.conf also contains /usr/contrib/lib and 17708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17709 # libtool to hard-code these into programs 17710 ;; 17711 17712cygwin* | mingw* | pw32*) 17713 version_type=windows 17714 shrext_cmds=".dll" 17715 need_version=no 17716 need_lib_prefix=no 17717 17718 case $GCC,$host_os in 17719 yes,cygwin* | yes,mingw* | yes,pw32*) 17720 library_names_spec='$libname.dll.a' 17721 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17722 postinstall_cmds='base_file=`basename \${file}`~ 17723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17724 dldir=$destdir/`dirname \$dlpath`~ 17725 test -d \$dldir || mkdir -p \$dldir~ 17726 $install_prog $dir/$dlname \$dldir/$dlname~ 17727 chmod a+x \$dldir/$dlname' 17728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17729 dlpath=$dir/\$dldll~ 17730 $rm \$dlpath' 17731 shlibpath_overrides_runpath=yes 17732 17733 case $host_os in 17734 cygwin*) 17735 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17738 ;; 17739 mingw*) 17740 # MinGW DLLs use traditional 'lib' prefix 17741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17744 # It is most probably a Windows format PATH printed by 17745 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17746 # path with ; separators, and with drive letters. We can handle the 17747 # drive letters (cygwin fileutils understands them), so leave them, 17748 # especially as we might pass files found there to a mingw objdump, 17749 # which wouldn't understand a cygwinified path. Ahh. 17750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17751 else 17752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17753 fi 17754 ;; 17755 pw32*) 17756 # pw32 DLLs use 'pw' prefix rather than 'lib' 17757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17758 ;; 17759 esac 17760 ;; 17761 17762 *) 17763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17764 ;; 17765 esac 17766 dynamic_linker='Win32 ld.exe' 17767 # FIXME: first we should search . and the directory the executable is in 17768 shlibpath_var=PATH 17769 ;; 17770 17771darwin* | rhapsody*) 17772 dynamic_linker="$host_os dyld" 17773 version_type=darwin 17774 need_lib_prefix=no 17775 need_version=no 17776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17777 soname_spec='${libname}${release}${major}$shared_ext' 17778 shlibpath_overrides_runpath=yes 17779 shlibpath_var=DYLD_LIBRARY_PATH 17780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17782 if test "$GCC" = yes; then 17783 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"` 17784 else 17785 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17786 fi 17787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17788 ;; 17789 17790dgux*) 17791 version_type=linux 17792 need_lib_prefix=no 17793 need_version=no 17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17795 soname_spec='${libname}${release}${shared_ext}$major' 17796 shlibpath_var=LD_LIBRARY_PATH 17797 ;; 17798 17799freebsd1*) 17800 dynamic_linker=no 17801 ;; 17802 17803freebsd* | dragonfly*) 17804 # DragonFly does not have aout. When/if they implement a new 17805 # versioning mechanism, adjust this. 17806 if test -x /usr/bin/objformat; then 17807 objformat=`/usr/bin/objformat` 17808 else 17809 case $host_os in 17810 freebsd[123]*) objformat=aout ;; 17811 *) objformat=elf ;; 17812 esac 17813 fi 17814 version_type=freebsd-$objformat 17815 case $version_type in 17816 freebsd-elf*) 17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17818 need_version=no 17819 need_lib_prefix=no 17820 ;; 17821 freebsd-*) 17822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17823 need_version=yes 17824 ;; 17825 esac 17826 shlibpath_var=LD_LIBRARY_PATH 17827 case $host_os in 17828 freebsd2*) 17829 shlibpath_overrides_runpath=yes 17830 ;; 17831 freebsd3.[01]* | freebsdelf3.[01]*) 17832 shlibpath_overrides_runpath=yes 17833 hardcode_into_libs=yes 17834 ;; 17835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17837 shlibpath_overrides_runpath=no 17838 hardcode_into_libs=yes 17839 ;; 17840 freebsd*) # from 4.6 on 17841 shlibpath_overrides_runpath=yes 17842 hardcode_into_libs=yes 17843 ;; 17844 esac 17845 ;; 17846 17847gnu*) 17848 version_type=linux 17849 need_lib_prefix=no 17850 need_version=no 17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17852 soname_spec='${libname}${release}${shared_ext}$major' 17853 shlibpath_var=LD_LIBRARY_PATH 17854 hardcode_into_libs=yes 17855 ;; 17856 17857hpux9* | hpux10* | hpux11*) 17858 # Give a soname corresponding to the major version so that dld.sl refuses to 17859 # link against other versions. 17860 version_type=sunos 17861 need_lib_prefix=no 17862 need_version=no 17863 case $host_cpu in 17864 ia64*) 17865 shrext_cmds='.so' 17866 hardcode_into_libs=yes 17867 dynamic_linker="$host_os dld.so" 17868 shlibpath_var=LD_LIBRARY_PATH 17869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17871 soname_spec='${libname}${release}${shared_ext}$major' 17872 if test "X$HPUX_IA64_MODE" = X32; then 17873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17874 else 17875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17876 fi 17877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17878 ;; 17879 hppa*64*) 17880 shrext_cmds='.sl' 17881 hardcode_into_libs=yes 17882 dynamic_linker="$host_os dld.sl" 17883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17886 soname_spec='${libname}${release}${shared_ext}$major' 17887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17889 ;; 17890 *) 17891 shrext_cmds='.sl' 17892 dynamic_linker="$host_os dld.sl" 17893 shlibpath_var=SHLIB_PATH 17894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17896 soname_spec='${libname}${release}${shared_ext}$major' 17897 ;; 17898 esac 17899 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17900 postinstall_cmds='chmod 555 $lib' 17901 ;; 17902 17903interix3*) 17904 version_type=linux 17905 need_lib_prefix=no 17906 need_version=no 17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17908 soname_spec='${libname}${release}${shared_ext}$major' 17909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17910 shlibpath_var=LD_LIBRARY_PATH 17911 shlibpath_overrides_runpath=no 17912 hardcode_into_libs=yes 17913 ;; 17914 17915irix5* | irix6* | nonstopux*) 17916 case $host_os in 17917 nonstopux*) version_type=nonstopux ;; 17918 *) 17919 if test "$lt_cv_prog_gnu_ld" = yes; then 17920 version_type=linux 17921 else 17922 version_type=irix 17923 fi ;; 17924 esac 17925 need_lib_prefix=no 17926 need_version=no 17927 soname_spec='${libname}${release}${shared_ext}$major' 17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17929 case $host_os in 17930 irix5* | nonstopux*) 17931 libsuff= shlibsuff= 17932 ;; 17933 *) 17934 case $LD in # libtool.m4 will add one of these switches to LD 17935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17936 libsuff= shlibsuff= libmagic=32-bit;; 17937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17938 libsuff=32 shlibsuff=N32 libmagic=N32;; 17939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17940 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17941 *) libsuff= shlibsuff= libmagic=never-match;; 17942 esac 17943 ;; 17944 esac 17945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17946 shlibpath_overrides_runpath=no 17947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17949 hardcode_into_libs=yes 17950 ;; 17951 17952# No shared lib support for Linux oldld, aout, or coff. 17953linux*oldld* | linux*aout* | linux*coff*) 17954 dynamic_linker=no 17955 ;; 17956 17957# This must be Linux ELF. 17958linux* | k*bsd*-gnu) 17959 version_type=linux 17960 need_lib_prefix=no 17961 need_version=no 17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17963 soname_spec='${libname}${release}${shared_ext}$major' 17964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17965 shlibpath_var=LD_LIBRARY_PATH 17966 shlibpath_overrides_runpath=no 17967 # This implies no fast_install, which is unacceptable. 17968 # Some rework will be needed to allow for fast_install 17969 # before this can be enabled. 17970 hardcode_into_libs=yes 17971 17972 # Append ld.so.conf contents to the search path 17973 if test -f /etc/ld.so.conf; then 17974 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' ' '` 17975 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17976 fi 17977 17978 # We used to test for /lib/ld.so.1 and disable shared libraries on 17979 # powerpc, because MkLinux only supported shared libraries with the 17980 # GNU dynamic linker. Since this was broken with cross compilers, 17981 # most powerpc-linux boxes support dynamic linking these days and 17982 # people can always --disable-shared, the test was removed, and we 17983 # assume the GNU/Linux dynamic linker is in use. 17984 dynamic_linker='GNU/Linux ld.so' 17985 ;; 17986 17987netbsdelf*-gnu) 17988 version_type=linux 17989 need_lib_prefix=no 17990 need_version=no 17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17992 soname_spec='${libname}${release}${shared_ext}$major' 17993 shlibpath_var=LD_LIBRARY_PATH 17994 shlibpath_overrides_runpath=no 17995 hardcode_into_libs=yes 17996 dynamic_linker='NetBSD ld.elf_so' 17997 ;; 17998 17999netbsd*) 18000 version_type=sunos 18001 need_lib_prefix=no 18002 need_version=no 18003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18006 dynamic_linker='NetBSD (a.out) ld.so' 18007 else 18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18009 soname_spec='${libname}${release}${shared_ext}$major' 18010 dynamic_linker='NetBSD ld.elf_so' 18011 fi 18012 shlibpath_var=LD_LIBRARY_PATH 18013 shlibpath_overrides_runpath=yes 18014 hardcode_into_libs=yes 18015 ;; 18016 18017newsos6) 18018 version_type=linux 18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18020 shlibpath_var=LD_LIBRARY_PATH 18021 shlibpath_overrides_runpath=yes 18022 ;; 18023 18024nto-qnx*) 18025 version_type=linux 18026 need_lib_prefix=no 18027 need_version=no 18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18029 soname_spec='${libname}${release}${shared_ext}$major' 18030 shlibpath_var=LD_LIBRARY_PATH 18031 shlibpath_overrides_runpath=yes 18032 ;; 18033 18034openbsd*) 18035 version_type=sunos 18036 sys_lib_dlsearch_path_spec="/usr/lib" 18037 need_lib_prefix=no 18038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18039 case $host_os in 18040 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18041 *) need_version=no ;; 18042 esac 18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18045 shlibpath_var=LD_LIBRARY_PATH 18046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18047 case $host_os in 18048 openbsd2.[89] | openbsd2.[89].*) 18049 shlibpath_overrides_runpath=no 18050 ;; 18051 *) 18052 shlibpath_overrides_runpath=yes 18053 ;; 18054 esac 18055 else 18056 shlibpath_overrides_runpath=yes 18057 fi 18058 ;; 18059 18060os2*) 18061 libname_spec='$name' 18062 shrext_cmds=".dll" 18063 need_lib_prefix=no 18064 library_names_spec='$libname${shared_ext} $libname.a' 18065 dynamic_linker='OS/2 ld.exe' 18066 shlibpath_var=LIBPATH 18067 ;; 18068 18069osf3* | osf4* | osf5*) 18070 version_type=osf 18071 need_lib_prefix=no 18072 need_version=no 18073 soname_spec='${libname}${release}${shared_ext}$major' 18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18075 shlibpath_var=LD_LIBRARY_PATH 18076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18078 ;; 18079 18080solaris*) 18081 version_type=linux 18082 need_lib_prefix=no 18083 need_version=no 18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18085 soname_spec='${libname}${release}${shared_ext}$major' 18086 shlibpath_var=LD_LIBRARY_PATH 18087 shlibpath_overrides_runpath=yes 18088 hardcode_into_libs=yes 18089 # ldd complains unless libraries are executable 18090 postinstall_cmds='chmod +x $lib' 18091 ;; 18092 18093sunos4*) 18094 version_type=sunos 18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18097 shlibpath_var=LD_LIBRARY_PATH 18098 shlibpath_overrides_runpath=yes 18099 if test "$with_gnu_ld" = yes; then 18100 need_lib_prefix=no 18101 fi 18102 need_version=yes 18103 ;; 18104 18105sysv4 | sysv4.3*) 18106 version_type=linux 18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18108 soname_spec='${libname}${release}${shared_ext}$major' 18109 shlibpath_var=LD_LIBRARY_PATH 18110 case $host_vendor in 18111 sni) 18112 shlibpath_overrides_runpath=no 18113 need_lib_prefix=no 18114 export_dynamic_flag_spec='${wl}-Blargedynsym' 18115 runpath_var=LD_RUN_PATH 18116 ;; 18117 siemens) 18118 need_lib_prefix=no 18119 ;; 18120 motorola) 18121 need_lib_prefix=no 18122 need_version=no 18123 shlibpath_overrides_runpath=no 18124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18125 ;; 18126 esac 18127 ;; 18128 18129sysv4*MP*) 18130 if test -d /usr/nec ;then 18131 version_type=linux 18132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18133 soname_spec='$libname${shared_ext}.$major' 18134 shlibpath_var=LD_LIBRARY_PATH 18135 fi 18136 ;; 18137 18138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18139 version_type=freebsd-elf 18140 need_lib_prefix=no 18141 need_version=no 18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18143 soname_spec='${libname}${release}${shared_ext}$major' 18144 shlibpath_var=LD_LIBRARY_PATH 18145 hardcode_into_libs=yes 18146 if test "$with_gnu_ld" = yes; then 18147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18148 shlibpath_overrides_runpath=no 18149 else 18150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18151 shlibpath_overrides_runpath=yes 18152 case $host_os in 18153 sco3.2v5*) 18154 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18155 ;; 18156 esac 18157 fi 18158 sys_lib_dlsearch_path_spec='/usr/lib' 18159 ;; 18160 18161uts4*) 18162 version_type=linux 18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18164 soname_spec='${libname}${release}${shared_ext}$major' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 ;; 18167 18168*) 18169 dynamic_linker=no 18170 ;; 18171esac 18172{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18173echo "${ECHO_T}$dynamic_linker" >&6; } 18174test "$dynamic_linker" = no && can_build_shared=no 18175 18176variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18177if test "$GCC" = yes; then 18178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18179fi 18180 18181{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18182echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18183hardcode_action_GCJ= 18184if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18185 test -n "$runpath_var_GCJ" || \ 18186 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18187 18188 # We can hardcode non-existant directories. 18189 if test "$hardcode_direct_GCJ" != no && 18190 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18191 # have to relink, otherwise we might link with an installed library 18192 # when we should be linking with a yet-to-be-installed one 18193 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18194 test "$hardcode_minus_L_GCJ" != no; then 18195 # Linking always hardcodes the temporary library directory. 18196 hardcode_action_GCJ=relink 18197 else 18198 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18199 hardcode_action_GCJ=immediate 18200 fi 18201else 18202 # We cannot hardcode anything, or else we can only hardcode existing 18203 # directories. 18204 hardcode_action_GCJ=unsupported 18205fi 18206{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18207echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18208 18209if test "$hardcode_action_GCJ" = relink; then 18210 # Fast installation is not supported 18211 enable_fast_install=no 18212elif test "$shlibpath_overrides_runpath" = yes || 18213 test "$enable_shared" = no; then 18214 # Fast installation is not necessary 18215 enable_fast_install=needless 18216fi 18217 18218 18219# The else clause should only fire when bootstrapping the 18220# libtool distribution, otherwise you forgot to ship ltmain.sh 18221# with your package, and you will get complaints that there are 18222# no rules to generate ltmain.sh. 18223if test -f "$ltmain"; then 18224 # See if we are running on zsh, and set the options which allow our commands through 18225 # without removal of \ escapes. 18226 if test -n "${ZSH_VERSION+set}" ; then 18227 setopt NO_GLOB_SUBST 18228 fi 18229 # Now quote all the things that may contain metacharacters while being 18230 # careful not to overquote the AC_SUBSTed values. We take copies of the 18231 # variables and quote the copies for generation of the libtool script. 18232 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18233 SED SHELL STRIP \ 18234 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18235 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18236 deplibs_check_method reload_flag reload_cmds need_locks \ 18237 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18238 lt_cv_sys_global_symbol_to_c_name_address \ 18239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18240 old_postinstall_cmds old_postuninstall_cmds \ 18241 compiler_GCJ \ 18242 CC_GCJ \ 18243 LD_GCJ \ 18244 lt_prog_compiler_wl_GCJ \ 18245 lt_prog_compiler_pic_GCJ \ 18246 lt_prog_compiler_static_GCJ \ 18247 lt_prog_compiler_no_builtin_flag_GCJ \ 18248 export_dynamic_flag_spec_GCJ \ 18249 thread_safe_flag_spec_GCJ \ 18250 whole_archive_flag_spec_GCJ \ 18251 enable_shared_with_static_runtimes_GCJ \ 18252 old_archive_cmds_GCJ \ 18253 old_archive_from_new_cmds_GCJ \ 18254 predep_objects_GCJ \ 18255 postdep_objects_GCJ \ 18256 predeps_GCJ \ 18257 postdeps_GCJ \ 18258 compiler_lib_search_path_GCJ \ 18259 archive_cmds_GCJ \ 18260 archive_expsym_cmds_GCJ \ 18261 postinstall_cmds_GCJ \ 18262 postuninstall_cmds_GCJ \ 18263 old_archive_from_expsyms_cmds_GCJ \ 18264 allow_undefined_flag_GCJ \ 18265 no_undefined_flag_GCJ \ 18266 export_symbols_cmds_GCJ \ 18267 hardcode_libdir_flag_spec_GCJ \ 18268 hardcode_libdir_flag_spec_ld_GCJ \ 18269 hardcode_libdir_separator_GCJ \ 18270 hardcode_automatic_GCJ \ 18271 module_cmds_GCJ \ 18272 module_expsym_cmds_GCJ \ 18273 lt_cv_prog_compiler_c_o_GCJ \ 18274 exclude_expsyms_GCJ \ 18275 include_expsyms_GCJ; do 18276 18277 case $var in 18278 old_archive_cmds_GCJ | \ 18279 old_archive_from_new_cmds_GCJ | \ 18280 archive_cmds_GCJ | \ 18281 archive_expsym_cmds_GCJ | \ 18282 module_cmds_GCJ | \ 18283 module_expsym_cmds_GCJ | \ 18284 old_archive_from_expsyms_cmds_GCJ | \ 18285 export_symbols_cmds_GCJ | \ 18286 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18287 postinstall_cmds | postuninstall_cmds | \ 18288 old_postinstall_cmds | old_postuninstall_cmds | \ 18289 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18290 # Double-quote double-evaled strings. 18291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18292 ;; 18293 *) 18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18295 ;; 18296 esac 18297 done 18298 18299 case $lt_echo in 18300 *'\$0 --fallback-echo"') 18301 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18302 ;; 18303 esac 18304 18305cfgfile="$ofile" 18306 18307 cat <<__EOF__ >> "$cfgfile" 18308# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18309 18310# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18311 18312# Shell to use when invoking shell scripts. 18313SHELL=$lt_SHELL 18314 18315# Whether or not to build shared libraries. 18316build_libtool_libs=$enable_shared 18317 18318# Whether or not to build static libraries. 18319build_old_libs=$enable_static 18320 18321# Whether or not to add -lc for building shared libraries. 18322build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18323 18324# Whether or not to disallow shared libs when runtime libs are static 18325allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18326 18327# Whether or not to optimize for fast installation. 18328fast_install=$enable_fast_install 18329 18330# The host system. 18331host_alias=$host_alias 18332host=$host 18333host_os=$host_os 18334 18335# The build system. 18336build_alias=$build_alias 18337build=$build 18338build_os=$build_os 18339 18340# An echo program that does not interpret backslashes. 18341echo=$lt_echo 18342 18343# The archiver. 18344AR=$lt_AR 18345AR_FLAGS=$lt_AR_FLAGS 18346 18347# A C compiler. 18348LTCC=$lt_LTCC 18349 18350# LTCC compiler flags. 18351LTCFLAGS=$lt_LTCFLAGS 18352 18353# A language-specific compiler. 18354CC=$lt_compiler_GCJ 18355 18356# Is the compiler the GNU C compiler? 18357with_gcc=$GCC_GCJ 18358 18359# An ERE matcher. 18360EGREP=$lt_EGREP 18361 18362# The linker used to build libraries. 18363LD=$lt_LD_GCJ 18364 18365# Whether we need hard or soft links. 18366LN_S=$lt_LN_S 18367 18368# A BSD-compatible nm program. 18369NM=$lt_NM 18370 18371# A symbol stripping program 18372STRIP=$lt_STRIP 18373 18374# Used to examine libraries when file_magic_cmd begins "file" 18375MAGIC_CMD=$MAGIC_CMD 18376 18377# Used on cygwin: DLL creation program. 18378DLLTOOL="$DLLTOOL" 18379 18380# Used on cygwin: object dumper. 18381OBJDUMP="$OBJDUMP" 18382 18383# Used on cygwin: assembler. 18384AS="$AS" 18385 18386# The name of the directory that contains temporary libtool files. 18387objdir=$objdir 18388 18389# How to create reloadable object files. 18390reload_flag=$lt_reload_flag 18391reload_cmds=$lt_reload_cmds 18392 18393# How to pass a linker flag through the compiler. 18394wl=$lt_lt_prog_compiler_wl_GCJ 18395 18396# Object file suffix (normally "o"). 18397objext="$ac_objext" 18398 18399# Old archive suffix (normally "a"). 18400libext="$libext" 18401 18402# Shared library suffix (normally ".so"). 18403shrext_cmds='$shrext_cmds' 18404 18405# Executable file suffix (normally ""). 18406exeext="$exeext" 18407 18408# Additional compiler flags for building library objects. 18409pic_flag=$lt_lt_prog_compiler_pic_GCJ 18410pic_mode=$pic_mode 18411 18412# What is the maximum length of a command? 18413max_cmd_len=$lt_cv_sys_max_cmd_len 18414 18415# Does compiler simultaneously support -c and -o options? 18416compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18417 18418# Must we lock files when doing compilation? 18419need_locks=$lt_need_locks 18420 18421# Do we need the lib prefix for modules? 18422need_lib_prefix=$need_lib_prefix 18423 18424# Do we need a version for libraries? 18425need_version=$need_version 18426 18427# Whether dlopen is supported. 18428dlopen_support=$enable_dlopen 18429 18430# Whether dlopen of programs is supported. 18431dlopen_self=$enable_dlopen_self 18432 18433# Whether dlopen of statically linked programs is supported. 18434dlopen_self_static=$enable_dlopen_self_static 18435 18436# Compiler flag to prevent dynamic linking. 18437link_static_flag=$lt_lt_prog_compiler_static_GCJ 18438 18439# Compiler flag to turn off builtin functions. 18440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18441 18442# Compiler flag to allow reflexive dlopens. 18443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18444 18445# Compiler flag to generate shared objects directly from archives. 18446whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18447 18448# Compiler flag to generate thread-safe objects. 18449thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18450 18451# Library versioning type. 18452version_type=$version_type 18453 18454# Format of library name prefix. 18455libname_spec=$lt_libname_spec 18456 18457# List of archive names. First name is the real one, the rest are links. 18458# The last name is the one that the linker finds with -lNAME. 18459library_names_spec=$lt_library_names_spec 18460 18461# The coded name of the library, if different from the real name. 18462soname_spec=$lt_soname_spec 18463 18464# Commands used to build and install an old-style archive. 18465RANLIB=$lt_RANLIB 18466old_archive_cmds=$lt_old_archive_cmds_GCJ 18467old_postinstall_cmds=$lt_old_postinstall_cmds 18468old_postuninstall_cmds=$lt_old_postuninstall_cmds 18469 18470# Create an old-style archive from a shared archive. 18471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18472 18473# Create a temporary old-style archive to link instead of a shared archive. 18474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18475 18476# Commands used to build and install a shared archive. 18477archive_cmds=$lt_archive_cmds_GCJ 18478archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18479postinstall_cmds=$lt_postinstall_cmds 18480postuninstall_cmds=$lt_postuninstall_cmds 18481 18482# Commands used to build a loadable module (assumed same as above if empty) 18483module_cmds=$lt_module_cmds_GCJ 18484module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18485 18486# Commands to strip libraries. 18487old_striplib=$lt_old_striplib 18488striplib=$lt_striplib 18489 18490# Dependencies to place before the objects being linked to create a 18491# shared library. 18492predep_objects=$lt_predep_objects_GCJ 18493 18494# Dependencies to place after the objects being linked to create a 18495# shared library. 18496postdep_objects=$lt_postdep_objects_GCJ 18497 18498# Dependencies to place before the objects being linked to create a 18499# shared library. 18500predeps=$lt_predeps_GCJ 18501 18502# Dependencies to place after the objects being linked to create a 18503# shared library. 18504postdeps=$lt_postdeps_GCJ 18505 18506# The library search path used internally by the compiler when linking 18507# a shared library. 18508compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18509 18510# Method to check whether dependent libraries are shared objects. 18511deplibs_check_method=$lt_deplibs_check_method 18512 18513# Command to use when deplibs_check_method == file_magic. 18514file_magic_cmd=$lt_file_magic_cmd 18515 18516# Flag that allows shared libraries with undefined symbols to be built. 18517allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18518 18519# Flag that forces no undefined symbols. 18520no_undefined_flag=$lt_no_undefined_flag_GCJ 18521 18522# Commands used to finish a libtool library installation in a directory. 18523finish_cmds=$lt_finish_cmds 18524 18525# Same as above, but a single script fragment to be evaled but not shown. 18526finish_eval=$lt_finish_eval 18527 18528# Take the output of nm and produce a listing of raw symbols and C names. 18529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18530 18531# Transform the output of nm in a proper C declaration 18532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18533 18534# Transform the output of nm in a C name address pair 18535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18536 18537# This is the shared library runtime path variable. 18538runpath_var=$runpath_var 18539 18540# This is the shared library path variable. 18541shlibpath_var=$shlibpath_var 18542 18543# Is shlibpath searched before the hard-coded library search path? 18544shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18545 18546# How to hardcode a shared library path into an executable. 18547hardcode_action=$hardcode_action_GCJ 18548 18549# Whether we should hardcode library paths into libraries. 18550hardcode_into_libs=$hardcode_into_libs 18551 18552# Flag to hardcode \$libdir into a binary during linking. 18553# This must work even if \$libdir does not exist. 18554hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18555 18556# If ld is used when linking, flag to hardcode \$libdir into 18557# a binary during linking. This must work even if \$libdir does 18558# not exist. 18559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18560 18561# Whether we need a single -rpath flag with a separated argument. 18562hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18563 18564# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18565# resulting binary. 18566hardcode_direct=$hardcode_direct_GCJ 18567 18568# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18569# resulting binary. 18570hardcode_minus_L=$hardcode_minus_L_GCJ 18571 18572# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18573# the resulting binary. 18574hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18575 18576# Set to yes if building a shared library automatically hardcodes DIR into the library 18577# and all subsequent libraries and executables linked against it. 18578hardcode_automatic=$hardcode_automatic_GCJ 18579 18580# Variables whose values should be saved in libtool wrapper scripts and 18581# restored at relink time. 18582variables_saved_for_relink="$variables_saved_for_relink" 18583 18584# Whether libtool must link a program against all its dependency libraries. 18585link_all_deplibs=$link_all_deplibs_GCJ 18586 18587# Compile-time system search path for libraries 18588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18589 18590# Run-time system search path for libraries 18591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18592 18593# Fix the shell variable \$srcfile for the compiler. 18594fix_srcfile_path="$fix_srcfile_path_GCJ" 18595 18596# Set to yes if exported symbols are required. 18597always_export_symbols=$always_export_symbols_GCJ 18598 18599# The commands to list exported symbols. 18600export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18601 18602# The commands to extract the exported symbol list from a shared archive. 18603extract_expsyms_cmds=$lt_extract_expsyms_cmds 18604 18605# Symbols that should not be listed in the preloaded symbols. 18606exclude_expsyms=$lt_exclude_expsyms_GCJ 18607 18608# Symbols that must always be exported. 18609include_expsyms=$lt_include_expsyms_GCJ 18610 18611# ### END LIBTOOL TAG CONFIG: $tagname 18612 18613__EOF__ 18614 18615 18616else 18617 # If there is no Makefile yet, we rely on a make rule to execute 18618 # `config.status --recheck' to rerun these tests and create the 18619 # libtool script then. 18620 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18621 if test -f "$ltmain_in"; then 18622 test -f Makefile && make "$ltmain" 18623 fi 18624fi 18625 18626 18627ac_ext=c 18628ac_cpp='$CPP $CPPFLAGS' 18629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18631ac_compiler_gnu=$ac_cv_c_compiler_gnu 18632 18633CC="$lt_save_CC" 18634 18635 else 18636 tagname="" 18637 fi 18638 ;; 18639 18640 RC) 18641 18642 18643# Source file extension for RC test sources. 18644ac_ext=rc 18645 18646# Object file extension for compiled RC test sources. 18647objext=o 18648objext_RC=$objext 18649 18650# Code to be used in simple compile tests 18651lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18652 18653# Code to be used in simple link tests 18654lt_simple_link_test_code="$lt_simple_compile_test_code" 18655 18656# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18657 18658# If no C compiler was specified, use CC. 18659LTCC=${LTCC-"$CC"} 18660 18661# If no C compiler flags were specified, use CFLAGS. 18662LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18663 18664# Allow CC to be a program name with arguments. 18665compiler=$CC 18666 18667 18668# save warnings/boilerplate of simple test code 18669ac_outfile=conftest.$ac_objext 18670printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18671eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18672_lt_compiler_boilerplate=`cat conftest.err` 18673$rm conftest* 18674 18675ac_outfile=conftest.$ac_objext 18676printf "$lt_simple_link_test_code" >conftest.$ac_ext 18677eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18678_lt_linker_boilerplate=`cat conftest.err` 18679$rm conftest* 18680 18681 18682# Allow CC to be a program name with arguments. 18683lt_save_CC="$CC" 18684CC=${RC-"windres"} 18685compiler=$CC 18686compiler_RC=$CC 18687for cc_temp in $compiler""; do 18688 case $cc_temp in 18689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18691 \-*) ;; 18692 *) break;; 18693 esac 18694done 18695cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18696 18697lt_cv_prog_compiler_c_o_RC=yes 18698 18699# The else clause should only fire when bootstrapping the 18700# libtool distribution, otherwise you forgot to ship ltmain.sh 18701# with your package, and you will get complaints that there are 18702# no rules to generate ltmain.sh. 18703if test -f "$ltmain"; then 18704 # See if we are running on zsh, and set the options which allow our commands through 18705 # without removal of \ escapes. 18706 if test -n "${ZSH_VERSION+set}" ; then 18707 setopt NO_GLOB_SUBST 18708 fi 18709 # Now quote all the things that may contain metacharacters while being 18710 # careful not to overquote the AC_SUBSTed values. We take copies of the 18711 # variables and quote the copies for generation of the libtool script. 18712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18713 SED SHELL STRIP \ 18714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18716 deplibs_check_method reload_flag reload_cmds need_locks \ 18717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18718 lt_cv_sys_global_symbol_to_c_name_address \ 18719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18720 old_postinstall_cmds old_postuninstall_cmds \ 18721 compiler_RC \ 18722 CC_RC \ 18723 LD_RC \ 18724 lt_prog_compiler_wl_RC \ 18725 lt_prog_compiler_pic_RC \ 18726 lt_prog_compiler_static_RC \ 18727 lt_prog_compiler_no_builtin_flag_RC \ 18728 export_dynamic_flag_spec_RC \ 18729 thread_safe_flag_spec_RC \ 18730 whole_archive_flag_spec_RC \ 18731 enable_shared_with_static_runtimes_RC \ 18732 old_archive_cmds_RC \ 18733 old_archive_from_new_cmds_RC \ 18734 predep_objects_RC \ 18735 postdep_objects_RC \ 18736 predeps_RC \ 18737 postdeps_RC \ 18738 compiler_lib_search_path_RC \ 18739 archive_cmds_RC \ 18740 archive_expsym_cmds_RC \ 18741 postinstall_cmds_RC \ 18742 postuninstall_cmds_RC \ 18743 old_archive_from_expsyms_cmds_RC \ 18744 allow_undefined_flag_RC \ 18745 no_undefined_flag_RC \ 18746 export_symbols_cmds_RC \ 18747 hardcode_libdir_flag_spec_RC \ 18748 hardcode_libdir_flag_spec_ld_RC \ 18749 hardcode_libdir_separator_RC \ 18750 hardcode_automatic_RC \ 18751 module_cmds_RC \ 18752 module_expsym_cmds_RC \ 18753 lt_cv_prog_compiler_c_o_RC \ 18754 exclude_expsyms_RC \ 18755 include_expsyms_RC; do 18756 18757 case $var in 18758 old_archive_cmds_RC | \ 18759 old_archive_from_new_cmds_RC | \ 18760 archive_cmds_RC | \ 18761 archive_expsym_cmds_RC | \ 18762 module_cmds_RC | \ 18763 module_expsym_cmds_RC | \ 18764 old_archive_from_expsyms_cmds_RC | \ 18765 export_symbols_cmds_RC | \ 18766 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18767 postinstall_cmds | postuninstall_cmds | \ 18768 old_postinstall_cmds | old_postuninstall_cmds | \ 18769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18770 # Double-quote double-evaled strings. 18771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18772 ;; 18773 *) 18774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18775 ;; 18776 esac 18777 done 18778 18779 case $lt_echo in 18780 *'\$0 --fallback-echo"') 18781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18782 ;; 18783 esac 18784 18785cfgfile="$ofile" 18786 18787 cat <<__EOF__ >> "$cfgfile" 18788# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18789 18790# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18791 18792# Shell to use when invoking shell scripts. 18793SHELL=$lt_SHELL 18794 18795# Whether or not to build shared libraries. 18796build_libtool_libs=$enable_shared 18797 18798# Whether or not to build static libraries. 18799build_old_libs=$enable_static 18800 18801# Whether or not to add -lc for building shared libraries. 18802build_libtool_need_lc=$archive_cmds_need_lc_RC 18803 18804# Whether or not to disallow shared libs when runtime libs are static 18805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18806 18807# Whether or not to optimize for fast installation. 18808fast_install=$enable_fast_install 18809 18810# The host system. 18811host_alias=$host_alias 18812host=$host 18813host_os=$host_os 18814 18815# The build system. 18816build_alias=$build_alias 18817build=$build 18818build_os=$build_os 18819 18820# An echo program that does not interpret backslashes. 18821echo=$lt_echo 18822 18823# The archiver. 18824AR=$lt_AR 18825AR_FLAGS=$lt_AR_FLAGS 18826 18827# A C compiler. 18828LTCC=$lt_LTCC 18829 18830# LTCC compiler flags. 18831LTCFLAGS=$lt_LTCFLAGS 18832 18833# A language-specific compiler. 18834CC=$lt_compiler_RC 18835 18836# Is the compiler the GNU C compiler? 18837with_gcc=$GCC_RC 18838 18839# An ERE matcher. 18840EGREP=$lt_EGREP 18841 18842# The linker used to build libraries. 18843LD=$lt_LD_RC 18844 18845# Whether we need hard or soft links. 18846LN_S=$lt_LN_S 18847 18848# A BSD-compatible nm program. 18849NM=$lt_NM 18850 18851# A symbol stripping program 18852STRIP=$lt_STRIP 18853 18854# Used to examine libraries when file_magic_cmd begins "file" 18855MAGIC_CMD=$MAGIC_CMD 18856 18857# Used on cygwin: DLL creation program. 18858DLLTOOL="$DLLTOOL" 18859 18860# Used on cygwin: object dumper. 18861OBJDUMP="$OBJDUMP" 18862 18863# Used on cygwin: assembler. 18864AS="$AS" 18865 18866# The name of the directory that contains temporary libtool files. 18867objdir=$objdir 18868 18869# How to create reloadable object files. 18870reload_flag=$lt_reload_flag 18871reload_cmds=$lt_reload_cmds 18872 18873# How to pass a linker flag through the compiler. 18874wl=$lt_lt_prog_compiler_wl_RC 18875 18876# Object file suffix (normally "o"). 18877objext="$ac_objext" 18878 18879# Old archive suffix (normally "a"). 18880libext="$libext" 18881 18882# Shared library suffix (normally ".so"). 18883shrext_cmds='$shrext_cmds' 18884 18885# Executable file suffix (normally ""). 18886exeext="$exeext" 18887 18888# Additional compiler flags for building library objects. 18889pic_flag=$lt_lt_prog_compiler_pic_RC 18890pic_mode=$pic_mode 18891 18892# What is the maximum length of a command? 18893max_cmd_len=$lt_cv_sys_max_cmd_len 18894 18895# Does compiler simultaneously support -c and -o options? 18896compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18897 18898# Must we lock files when doing compilation? 18899need_locks=$lt_need_locks 18900 18901# Do we need the lib prefix for modules? 18902need_lib_prefix=$need_lib_prefix 18903 18904# Do we need a version for libraries? 18905need_version=$need_version 18906 18907# Whether dlopen is supported. 18908dlopen_support=$enable_dlopen 18909 18910# Whether dlopen of programs is supported. 18911dlopen_self=$enable_dlopen_self 18912 18913# Whether dlopen of statically linked programs is supported. 18914dlopen_self_static=$enable_dlopen_self_static 18915 18916# Compiler flag to prevent dynamic linking. 18917link_static_flag=$lt_lt_prog_compiler_static_RC 18918 18919# Compiler flag to turn off builtin functions. 18920no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18921 18922# Compiler flag to allow reflexive dlopens. 18923export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18924 18925# Compiler flag to generate shared objects directly from archives. 18926whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18927 18928# Compiler flag to generate thread-safe objects. 18929thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18930 18931# Library versioning type. 18932version_type=$version_type 18933 18934# Format of library name prefix. 18935libname_spec=$lt_libname_spec 18936 18937# List of archive names. First name is the real one, the rest are links. 18938# The last name is the one that the linker finds with -lNAME. 18939library_names_spec=$lt_library_names_spec 18940 18941# The coded name of the library, if different from the real name. 18942soname_spec=$lt_soname_spec 18943 18944# Commands used to build and install an old-style archive. 18945RANLIB=$lt_RANLIB 18946old_archive_cmds=$lt_old_archive_cmds_RC 18947old_postinstall_cmds=$lt_old_postinstall_cmds 18948old_postuninstall_cmds=$lt_old_postuninstall_cmds 18949 18950# Create an old-style archive from a shared archive. 18951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18952 18953# Create a temporary old-style archive to link instead of a shared archive. 18954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18955 18956# Commands used to build and install a shared archive. 18957archive_cmds=$lt_archive_cmds_RC 18958archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18959postinstall_cmds=$lt_postinstall_cmds 18960postuninstall_cmds=$lt_postuninstall_cmds 18961 18962# Commands used to build a loadable module (assumed same as above if empty) 18963module_cmds=$lt_module_cmds_RC 18964module_expsym_cmds=$lt_module_expsym_cmds_RC 18965 18966# Commands to strip libraries. 18967old_striplib=$lt_old_striplib 18968striplib=$lt_striplib 18969 18970# Dependencies to place before the objects being linked to create a 18971# shared library. 18972predep_objects=$lt_predep_objects_RC 18973 18974# Dependencies to place after the objects being linked to create a 18975# shared library. 18976postdep_objects=$lt_postdep_objects_RC 18977 18978# Dependencies to place before the objects being linked to create a 18979# shared library. 18980predeps=$lt_predeps_RC 18981 18982# Dependencies to place after the objects being linked to create a 18983# shared library. 18984postdeps=$lt_postdeps_RC 18985 18986# The library search path used internally by the compiler when linking 18987# a shared library. 18988compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18989 18990# Method to check whether dependent libraries are shared objects. 18991deplibs_check_method=$lt_deplibs_check_method 18992 18993# Command to use when deplibs_check_method == file_magic. 18994file_magic_cmd=$lt_file_magic_cmd 18995 18996# Flag that allows shared libraries with undefined symbols to be built. 18997allow_undefined_flag=$lt_allow_undefined_flag_RC 18998 18999# Flag that forces no undefined symbols. 19000no_undefined_flag=$lt_no_undefined_flag_RC 19001 19002# Commands used to finish a libtool library installation in a directory. 19003finish_cmds=$lt_finish_cmds 19004 19005# Same as above, but a single script fragment to be evaled but not shown. 19006finish_eval=$lt_finish_eval 19007 19008# Take the output of nm and produce a listing of raw symbols and C names. 19009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19010 19011# Transform the output of nm in a proper C declaration 19012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19013 19014# Transform the output of nm in a C name address pair 19015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19016 19017# This is the shared library runtime path variable. 19018runpath_var=$runpath_var 19019 19020# This is the shared library path variable. 19021shlibpath_var=$shlibpath_var 19022 19023# Is shlibpath searched before the hard-coded library search path? 19024shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19025 19026# How to hardcode a shared library path into an executable. 19027hardcode_action=$hardcode_action_RC 19028 19029# Whether we should hardcode library paths into libraries. 19030hardcode_into_libs=$hardcode_into_libs 19031 19032# Flag to hardcode \$libdir into a binary during linking. 19033# This must work even if \$libdir does not exist. 19034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19035 19036# If ld is used when linking, flag to hardcode \$libdir into 19037# a binary during linking. This must work even if \$libdir does 19038# not exist. 19039hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19040 19041# Whether we need a single -rpath flag with a separated argument. 19042hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19043 19044# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19045# resulting binary. 19046hardcode_direct=$hardcode_direct_RC 19047 19048# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19049# resulting binary. 19050hardcode_minus_L=$hardcode_minus_L_RC 19051 19052# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19053# the resulting binary. 19054hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19055 19056# Set to yes if building a shared library automatically hardcodes DIR into the library 19057# and all subsequent libraries and executables linked against it. 19058hardcode_automatic=$hardcode_automatic_RC 19059 19060# Variables whose values should be saved in libtool wrapper scripts and 19061# restored at relink time. 19062variables_saved_for_relink="$variables_saved_for_relink" 19063 19064# Whether libtool must link a program against all its dependency libraries. 19065link_all_deplibs=$link_all_deplibs_RC 19066 19067# Compile-time system search path for libraries 19068sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19069 19070# Run-time system search path for libraries 19071sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19072 19073# Fix the shell variable \$srcfile for the compiler. 19074fix_srcfile_path="$fix_srcfile_path_RC" 19075 19076# Set to yes if exported symbols are required. 19077always_export_symbols=$always_export_symbols_RC 19078 19079# The commands to list exported symbols. 19080export_symbols_cmds=$lt_export_symbols_cmds_RC 19081 19082# The commands to extract the exported symbol list from a shared archive. 19083extract_expsyms_cmds=$lt_extract_expsyms_cmds 19084 19085# Symbols that should not be listed in the preloaded symbols. 19086exclude_expsyms=$lt_exclude_expsyms_RC 19087 19088# Symbols that must always be exported. 19089include_expsyms=$lt_include_expsyms_RC 19090 19091# ### END LIBTOOL TAG CONFIG: $tagname 19092 19093__EOF__ 19094 19095 19096else 19097 # If there is no Makefile yet, we rely on a make rule to execute 19098 # `config.status --recheck' to rerun these tests and create the 19099 # libtool script then. 19100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19101 if test -f "$ltmain_in"; then 19102 test -f Makefile && make "$ltmain" 19103 fi 19104fi 19105 19106 19107ac_ext=c 19108ac_cpp='$CPP $CPPFLAGS' 19109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19111ac_compiler_gnu=$ac_cv_c_compiler_gnu 19112 19113CC="$lt_save_CC" 19114 19115 ;; 19116 19117 *) 19118 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19119echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19120 { (exit 1); exit 1; }; } 19121 ;; 19122 esac 19123 19124 # Append the new tag name to the list of available tags. 19125 if test -n "$tagname" ; then 19126 available_tags="$available_tags $tagname" 19127 fi 19128 fi 19129 done 19130 IFS="$lt_save_ifs" 19131 19132 # Now substitute the updated list of available tags. 19133 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19134 mv "${ofile}T" "$ofile" 19135 chmod +x "$ofile" 19136 else 19137 rm -f "${ofile}T" 19138 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19139echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19140 { (exit 1); exit 1; }; } 19141 fi 19142fi 19143 19144 19145 19146# This can be used to rebuild libtool when needed 19147LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19148 19149# Always use our own libtool. 19150LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19151 19152# Prevent multiple expansion 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19174echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 19175if test "${ac_cv_c_const+set}" = set; then 19176 echo $ECHO_N "(cached) $ECHO_C" >&6 19177else 19178 cat >conftest.$ac_ext <<_ACEOF 19179/* confdefs.h. */ 19180_ACEOF 19181cat confdefs.h >>conftest.$ac_ext 19182cat >>conftest.$ac_ext <<_ACEOF 19183/* end confdefs.h. */ 19184 19185int 19186main () 19187{ 19188/* FIXME: Include the comments suggested by Paul. */ 19189#ifndef __cplusplus 19190 /* Ultrix mips cc rejects this. */ 19191 typedef int charset[2]; 19192 const charset cs; 19193 /* SunOS 4.1.1 cc rejects this. */ 19194 char const *const *pcpcc; 19195 char **ppc; 19196 /* NEC SVR4.0.2 mips cc rejects this. */ 19197 struct point {int x, y;}; 19198 static struct point const zero = {0,0}; 19199 /* AIX XL C 1.02.0.0 rejects this. 19200 It does not let you subtract one const X* pointer from another in 19201 an arm of an if-expression whose if-part is not a constant 19202 expression */ 19203 const char *g = "string"; 19204 pcpcc = &g + (g ? g-g : 0); 19205 /* HPUX 7.0 cc rejects these. */ 19206 ++pcpcc; 19207 ppc = (char**) pcpcc; 19208 pcpcc = (char const *const *) ppc; 19209 { /* SCO 3.2v4 cc rejects this. */ 19210 char *t; 19211 char const *s = 0 ? (char *) 0 : (char const *) 0; 19212 19213 *t++ = 0; 19214 if (s) return 0; 19215 } 19216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19217 int x[] = {25, 17}; 19218 const int *foo = &x[0]; 19219 ++foo; 19220 } 19221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19222 typedef const int *iptr; 19223 iptr p = 0; 19224 ++p; 19225 } 19226 { /* AIX XL C 1.02.0.0 rejects this saying 19227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19228 struct s { int j; const int *ap[3]; }; 19229 struct s *b; b->j = 5; 19230 } 19231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19232 const int foo = 10; 19233 if (!foo) return 0; 19234 } 19235 return !cs[0] && !zero.x; 19236#endif 19237 19238 ; 19239 return 0; 19240} 19241_ACEOF 19242rm -f conftest.$ac_objext 19243if { (ac_try="$ac_compile" 19244case "(($ac_try" in 19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19246 *) ac_try_echo=$ac_try;; 19247esac 19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19249 (eval "$ac_compile") 2>conftest.er1 19250 ac_status=$? 19251 grep -v '^ *+' conftest.er1 >conftest.err 19252 rm -f conftest.er1 19253 cat conftest.err >&5 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19255 (exit $ac_status); } && { 19256 test -z "$ac_c_werror_flag" || 19257 test ! -s conftest.err 19258 } && test -s conftest.$ac_objext; then 19259 ac_cv_c_const=yes 19260else 19261 echo "$as_me: failed program was:" >&5 19262sed 's/^/| /' conftest.$ac_ext >&5 19263 19264 ac_cv_c_const=no 19265fi 19266 19267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19268fi 19269{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19270echo "${ECHO_T}$ac_cv_c_const" >&6; } 19271if test $ac_cv_c_const = no; then 19272 19273cat >>confdefs.h <<\_ACEOF 19274#define const 19275_ACEOF 19276 19277fi 19278 19279 19280 19281 19282 19283 19284ac_header_dirent=no 19285for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19286 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19287{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 19288echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 19289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19290 echo $ECHO_N "(cached) $ECHO_C" >&6 19291else 19292 cat >conftest.$ac_ext <<_ACEOF 19293/* confdefs.h. */ 19294_ACEOF 19295cat confdefs.h >>conftest.$ac_ext 19296cat >>conftest.$ac_ext <<_ACEOF 19297/* end confdefs.h. */ 19298#include <sys/types.h> 19299#include <$ac_hdr> 19300 19301int 19302main () 19303{ 19304if ((DIR *) 0) 19305return 0; 19306 ; 19307 return 0; 19308} 19309_ACEOF 19310rm -f conftest.$ac_objext 19311if { (ac_try="$ac_compile" 19312case "(($ac_try" in 19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19314 *) ac_try_echo=$ac_try;; 19315esac 19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19317 (eval "$ac_compile") 2>conftest.er1 19318 ac_status=$? 19319 grep -v '^ *+' conftest.er1 >conftest.err 19320 rm -f conftest.er1 19321 cat conftest.err >&5 19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19323 (exit $ac_status); } && { 19324 test -z "$ac_c_werror_flag" || 19325 test ! -s conftest.err 19326 } && test -s conftest.$ac_objext; then 19327 eval "$as_ac_Header=yes" 19328else 19329 echo "$as_me: failed program was:" >&5 19330sed 's/^/| /' conftest.$ac_ext >&5 19331 19332 eval "$as_ac_Header=no" 19333fi 19334 19335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19336fi 19337ac_res=`eval echo '${'$as_ac_Header'}'` 19338 { echo "$as_me:$LINENO: result: $ac_res" >&5 19339echo "${ECHO_T}$ac_res" >&6; } 19340if test `eval echo '${'$as_ac_Header'}'` = yes; then 19341 cat >>confdefs.h <<_ACEOF 19342#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 19343_ACEOF 19344 19345ac_header_dirent=$ac_hdr; break 19346fi 19347 19348done 19349# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 19350if test $ac_header_dirent = dirent.h; then 19351 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 19352echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 19353if test "${ac_cv_search_opendir+set}" = set; then 19354 echo $ECHO_N "(cached) $ECHO_C" >&6 19355else 19356 ac_func_search_save_LIBS=$LIBS 19357cat >conftest.$ac_ext <<_ACEOF 19358/* confdefs.h. */ 19359_ACEOF 19360cat confdefs.h >>conftest.$ac_ext 19361cat >>conftest.$ac_ext <<_ACEOF 19362/* end confdefs.h. */ 19363 19364/* Override any GCC internal prototype to avoid an error. 19365 Use char because int might match the return type of a GCC 19366 builtin and then its argument prototype would still apply. */ 19367#ifdef __cplusplus 19368extern "C" 19369#endif 19370char opendir (); 19371int 19372main () 19373{ 19374return opendir (); 19375 ; 19376 return 0; 19377} 19378_ACEOF 19379for ac_lib in '' dir; do 19380 if test -z "$ac_lib"; then 19381 ac_res="none required" 19382 else 19383 ac_res=-l$ac_lib 19384 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19385 fi 19386 rm -f conftest.$ac_objext conftest$ac_exeext 19387if { (ac_try="$ac_link" 19388case "(($ac_try" in 19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19390 *) ac_try_echo=$ac_try;; 19391esac 19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19393 (eval "$ac_link") 2>conftest.er1 19394 ac_status=$? 19395 grep -v '^ *+' conftest.er1 >conftest.err 19396 rm -f conftest.er1 19397 cat conftest.err >&5 19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19399 (exit $ac_status); } && { 19400 test -z "$ac_c_werror_flag" || 19401 test ! -s conftest.err 19402 } && test -s conftest$ac_exeext && 19403 $as_test_x conftest$ac_exeext; then 19404 ac_cv_search_opendir=$ac_res 19405else 19406 echo "$as_me: failed program was:" >&5 19407sed 's/^/| /' conftest.$ac_ext >&5 19408 19409 19410fi 19411 19412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19413 conftest$ac_exeext 19414 if test "${ac_cv_search_opendir+set}" = set; then 19415 break 19416fi 19417done 19418if test "${ac_cv_search_opendir+set}" = set; then 19419 : 19420else 19421 ac_cv_search_opendir=no 19422fi 19423rm conftest.$ac_ext 19424LIBS=$ac_func_search_save_LIBS 19425fi 19426{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 19427echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 19428ac_res=$ac_cv_search_opendir 19429if test "$ac_res" != no; then 19430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19431 19432fi 19433 19434else 19435 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 19436echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 19437if test "${ac_cv_search_opendir+set}" = set; then 19438 echo $ECHO_N "(cached) $ECHO_C" >&6 19439else 19440 ac_func_search_save_LIBS=$LIBS 19441cat >conftest.$ac_ext <<_ACEOF 19442/* confdefs.h. */ 19443_ACEOF 19444cat confdefs.h >>conftest.$ac_ext 19445cat >>conftest.$ac_ext <<_ACEOF 19446/* end confdefs.h. */ 19447 19448/* Override any GCC internal prototype to avoid an error. 19449 Use char because int might match the return type of a GCC 19450 builtin and then its argument prototype would still apply. */ 19451#ifdef __cplusplus 19452extern "C" 19453#endif 19454char opendir (); 19455int 19456main () 19457{ 19458return opendir (); 19459 ; 19460 return 0; 19461} 19462_ACEOF 19463for ac_lib in '' x; do 19464 if test -z "$ac_lib"; then 19465 ac_res="none required" 19466 else 19467 ac_res=-l$ac_lib 19468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19469 fi 19470 rm -f conftest.$ac_objext conftest$ac_exeext 19471if { (ac_try="$ac_link" 19472case "(($ac_try" in 19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19474 *) ac_try_echo=$ac_try;; 19475esac 19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19477 (eval "$ac_link") 2>conftest.er1 19478 ac_status=$? 19479 grep -v '^ *+' conftest.er1 >conftest.err 19480 rm -f conftest.er1 19481 cat conftest.err >&5 19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19483 (exit $ac_status); } && { 19484 test -z "$ac_c_werror_flag" || 19485 test ! -s conftest.err 19486 } && test -s conftest$ac_exeext && 19487 $as_test_x conftest$ac_exeext; then 19488 ac_cv_search_opendir=$ac_res 19489else 19490 echo "$as_me: failed program was:" >&5 19491sed 's/^/| /' conftest.$ac_ext >&5 19492 19493 19494fi 19495 19496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19497 conftest$ac_exeext 19498 if test "${ac_cv_search_opendir+set}" = set; then 19499 break 19500fi 19501done 19502if test "${ac_cv_search_opendir+set}" = set; then 19503 : 19504else 19505 ac_cv_search_opendir=no 19506fi 19507rm conftest.$ac_ext 19508LIBS=$ac_func_search_save_LIBS 19509fi 19510{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 19511echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 19512ac_res=$ac_cv_search_opendir 19513if test "$ac_res" != no; then 19514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19515 19516fi 19517 19518fi 19519 19520# Check whether --enable-ltdl-install was given. 19521if test "${enable_ltdl_install+set}" = set; then 19522 enableval=$enable_ltdl_install; 19523fi 19524 19525 19526 if test x"${enable_ltdl_install-no}" != xno; then 19527 INSTALL_LTDL_TRUE= 19528 INSTALL_LTDL_FALSE='#' 19529else 19530 INSTALL_LTDL_TRUE='#' 19531 INSTALL_LTDL_FALSE= 19532fi 19533 19534 if test x"${enable_ltdl_convenience-no}" != xno; then 19535 CONVENIENCE_LTDL_TRUE= 19536 CONVENIENCE_LTDL_FALSE='#' 19537else 19538 CONVENIENCE_LTDL_TRUE='#' 19539 CONVENIENCE_LTDL_FALSE= 19540fi 19541 19542 19543 19544{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 19545echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 19546if test "${libltdl_cv_shlibext+set}" = set; then 19547 echo $ECHO_N "(cached) $ECHO_C" >&6 19548else 19549 19550module=yes 19551eval libltdl_cv_shlibext=$shrext_cmds 19552 19553fi 19554{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 19555echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 19556if test -n "$libltdl_cv_shlibext"; then 19557 19558cat >>confdefs.h <<_ACEOF 19559#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 19560_ACEOF 19561 19562fi 19563 19564 19565{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 19566echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 19567if test "${libltdl_cv_shlibpath_var+set}" = set; then 19568 echo $ECHO_N "(cached) $ECHO_C" >&6 19569else 19570 libltdl_cv_shlibpath_var="$shlibpath_var" 19571fi 19572{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 19573echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 19574if test -n "$libltdl_cv_shlibpath_var"; then 19575 19576cat >>confdefs.h <<_ACEOF 19577#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 19578_ACEOF 19579 19580fi 19581 19582 19583{ echo "$as_me:$LINENO: checking for the default library search path" >&5 19584echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 19585if test "${libltdl_cv_sys_search_path+set}" = set; then 19586 echo $ECHO_N "(cached) $ECHO_C" >&6 19587else 19588 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 19589fi 19590{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 19591echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 19592if test -n "$libltdl_cv_sys_search_path"; then 19593 sys_search_path= 19594 for dir in $libltdl_cv_sys_search_path; do 19595 if test -z "$sys_search_path"; then 19596 sys_search_path="$dir" 19597 else 19598 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 19599 fi 19600 done 19601 19602cat >>confdefs.h <<_ACEOF 19603#define LTDL_SYSSEARCHPATH "$sys_search_path" 19604_ACEOF 19605 19606fi 19607 19608{ echo "$as_me:$LINENO: checking for objdir" >&5 19609echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 19610if test "${libltdl_cv_objdir+set}" = set; then 19611 echo $ECHO_N "(cached) $ECHO_C" >&6 19612else 19613 libltdl_cv_objdir="$objdir" 19614 if test -n "$objdir"; then 19615 : 19616 else 19617 rm -f .libs 2>/dev/null 19618 mkdir .libs 2>/dev/null 19619 if test -d .libs; then 19620 libltdl_cv_objdir=.libs 19621 else 19622 # MS-DOS does not allow filenames that begin with a dot. 19623 libltdl_cv_objdir=_libs 19624 fi 19625 rmdir .libs 2>/dev/null 19626 fi 19627 19628fi 19629{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 19630echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 19631 19632cat >>confdefs.h <<_ACEOF 19633#define LTDL_OBJDIR "$libltdl_cv_objdir/" 19634_ACEOF 19635 19636 19637 19638{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 19639echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 19640if test "${libltdl_cv_preloaded_symbols+set}" = set; then 19641 echo $ECHO_N "(cached) $ECHO_C" >&6 19642else 19643 if test -n "$lt_cv_sys_global_symbol_pipe"; then 19644 libltdl_cv_preloaded_symbols=yes 19645 else 19646 libltdl_cv_preloaded_symbols=no 19647 fi 19648 19649fi 19650{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 19651echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 19652if test x"$libltdl_cv_preloaded_symbols" = xyes; then 19653 19654cat >>confdefs.h <<\_ACEOF 19655#define HAVE_PRELOADED_SYMBOLS 1 19656_ACEOF 19657 19658fi 19659 19660LIBADD_DL= 19661 19662ac_ext=c 19663ac_cpp='$CPP $CPPFLAGS' 19664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19666ac_compiler_gnu=$ac_cv_c_compiler_gnu 19667 19668 19669{ echo "$as_me:$LINENO: checking for shl_load" >&5 19670echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 19671if test "${ac_cv_func_shl_load+set}" = set; then 19672 echo $ECHO_N "(cached) $ECHO_C" >&6 19673else 19674 cat >conftest.$ac_ext <<_ACEOF 19675/* confdefs.h. */ 19676_ACEOF 19677cat confdefs.h >>conftest.$ac_ext 19678cat >>conftest.$ac_ext <<_ACEOF 19679/* end confdefs.h. */ 19680/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 19681 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19682#define shl_load innocuous_shl_load 19683 19684/* System header to define __stub macros and hopefully few prototypes, 19685 which can conflict with char shl_load (); below. 19686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19687 <limits.h> exists even on freestanding compilers. */ 19688 19689#ifdef __STDC__ 19690# include <limits.h> 19691#else 19692# include <assert.h> 19693#endif 19694 19695#undef shl_load 19696 19697/* Override any GCC internal prototype to avoid an error. 19698 Use char because int might match the return type of a GCC 19699 builtin and then its argument prototype would still apply. */ 19700#ifdef __cplusplus 19701extern "C" 19702#endif 19703char shl_load (); 19704/* The GNU C library defines this for functions which it implements 19705 to always fail with ENOSYS. Some functions are actually named 19706 something starting with __ and the normal name is an alias. */ 19707#if defined __stub_shl_load || defined __stub___shl_load 19708choke me 19709#endif 19710 19711int 19712main () 19713{ 19714return shl_load (); 19715 ; 19716 return 0; 19717} 19718_ACEOF 19719rm -f conftest.$ac_objext conftest$ac_exeext 19720if { (ac_try="$ac_link" 19721case "(($ac_try" in 19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19723 *) ac_try_echo=$ac_try;; 19724esac 19725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19726 (eval "$ac_link") 2>conftest.er1 19727 ac_status=$? 19728 grep -v '^ *+' conftest.er1 >conftest.err 19729 rm -f conftest.er1 19730 cat conftest.err >&5 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); } && { 19733 test -z "$ac_c_werror_flag" || 19734 test ! -s conftest.err 19735 } && test -s conftest$ac_exeext && 19736 $as_test_x conftest$ac_exeext; then 19737 ac_cv_func_shl_load=yes 19738else 19739 echo "$as_me: failed program was:" >&5 19740sed 's/^/| /' conftest.$ac_ext >&5 19741 19742 ac_cv_func_shl_load=no 19743fi 19744 19745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19746 conftest$ac_exeext conftest.$ac_ext 19747fi 19748{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 19749echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 19750if test $ac_cv_func_shl_load = yes; then 19751 19752cat >>confdefs.h <<\_ACEOF 19753#define HAVE_SHL_LOAD 1 19754_ACEOF 19755 19756else 19757 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 19758echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 19759if test "${ac_cv_lib_dld_shl_load+set}" = set; then 19760 echo $ECHO_N "(cached) $ECHO_C" >&6 19761else 19762 ac_check_lib_save_LIBS=$LIBS 19763LIBS="-ldld $LIBS" 19764cat >conftest.$ac_ext <<_ACEOF 19765/* confdefs.h. */ 19766_ACEOF 19767cat confdefs.h >>conftest.$ac_ext 19768cat >>conftest.$ac_ext <<_ACEOF 19769/* end confdefs.h. */ 19770 19771/* Override any GCC internal prototype to avoid an error. 19772 Use char because int might match the return type of a GCC 19773 builtin and then its argument prototype would still apply. */ 19774#ifdef __cplusplus 19775extern "C" 19776#endif 19777char shl_load (); 19778int 19779main () 19780{ 19781return shl_load (); 19782 ; 19783 return 0; 19784} 19785_ACEOF 19786rm -f conftest.$ac_objext conftest$ac_exeext 19787if { (ac_try="$ac_link" 19788case "(($ac_try" in 19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19790 *) ac_try_echo=$ac_try;; 19791esac 19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19793 (eval "$ac_link") 2>conftest.er1 19794 ac_status=$? 19795 grep -v '^ *+' conftest.er1 >conftest.err 19796 rm -f conftest.er1 19797 cat conftest.err >&5 19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19799 (exit $ac_status); } && { 19800 test -z "$ac_c_werror_flag" || 19801 test ! -s conftest.err 19802 } && test -s conftest$ac_exeext && 19803 $as_test_x conftest$ac_exeext; then 19804 ac_cv_lib_dld_shl_load=yes 19805else 19806 echo "$as_me: failed program was:" >&5 19807sed 's/^/| /' conftest.$ac_ext >&5 19808 19809 ac_cv_lib_dld_shl_load=no 19810fi 19811 19812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19813 conftest$ac_exeext conftest.$ac_ext 19814LIBS=$ac_check_lib_save_LIBS 19815fi 19816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 19817echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 19818if test $ac_cv_lib_dld_shl_load = yes; then 19819 19820cat >>confdefs.h <<\_ACEOF 19821#define HAVE_SHL_LOAD 1 19822_ACEOF 19823 19824 LIBADD_DL="$LIBADD_DL -ldld" 19825else 19826 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19827echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 19828if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19829 echo $ECHO_N "(cached) $ECHO_C" >&6 19830else 19831 ac_check_lib_save_LIBS=$LIBS 19832LIBS="-ldl $LIBS" 19833cat >conftest.$ac_ext <<_ACEOF 19834/* confdefs.h. */ 19835_ACEOF 19836cat confdefs.h >>conftest.$ac_ext 19837cat >>conftest.$ac_ext <<_ACEOF 19838/* end confdefs.h. */ 19839 19840/* Override any GCC internal prototype to avoid an error. 19841 Use char because int might match the return type of a GCC 19842 builtin and then its argument prototype would still apply. */ 19843#ifdef __cplusplus 19844extern "C" 19845#endif 19846char dlopen (); 19847int 19848main () 19849{ 19850return dlopen (); 19851 ; 19852 return 0; 19853} 19854_ACEOF 19855rm -f conftest.$ac_objext conftest$ac_exeext 19856if { (ac_try="$ac_link" 19857case "(($ac_try" in 19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19859 *) ac_try_echo=$ac_try;; 19860esac 19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19862 (eval "$ac_link") 2>conftest.er1 19863 ac_status=$? 19864 grep -v '^ *+' conftest.er1 >conftest.err 19865 rm -f conftest.er1 19866 cat conftest.err >&5 19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19868 (exit $ac_status); } && { 19869 test -z "$ac_c_werror_flag" || 19870 test ! -s conftest.err 19871 } && test -s conftest$ac_exeext && 19872 $as_test_x conftest$ac_exeext; then 19873 ac_cv_lib_dl_dlopen=yes 19874else 19875 echo "$as_me: failed program was:" >&5 19876sed 's/^/| /' conftest.$ac_ext >&5 19877 19878 ac_cv_lib_dl_dlopen=no 19879fi 19880 19881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19882 conftest$ac_exeext conftest.$ac_ext 19883LIBS=$ac_check_lib_save_LIBS 19884fi 19885{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19886echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 19887if test $ac_cv_lib_dl_dlopen = yes; then 19888 19889cat >>confdefs.h <<\_ACEOF 19890#define HAVE_LIBDL 1 19891_ACEOF 19892 19893 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 19894else 19895 cat >conftest.$ac_ext <<_ACEOF 19896/* confdefs.h. */ 19897_ACEOF 19898cat confdefs.h >>conftest.$ac_ext 19899cat >>conftest.$ac_ext <<_ACEOF 19900/* end confdefs.h. */ 19901#if HAVE_DLFCN_H 19902# include <dlfcn.h> 19903#endif 19904 19905int 19906main () 19907{ 19908dlopen(0, 0); 19909 ; 19910 return 0; 19911} 19912_ACEOF 19913rm -f conftest.$ac_objext conftest$ac_exeext 19914if { (ac_try="$ac_link" 19915case "(($ac_try" in 19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19917 *) ac_try_echo=$ac_try;; 19918esac 19919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19920 (eval "$ac_link") 2>conftest.er1 19921 ac_status=$? 19922 grep -v '^ *+' conftest.er1 >conftest.err 19923 rm -f conftest.er1 19924 cat conftest.err >&5 19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19926 (exit $ac_status); } && { 19927 test -z "$ac_c_werror_flag" || 19928 test ! -s conftest.err 19929 } && test -s conftest$ac_exeext && 19930 $as_test_x conftest$ac_exeext; then 19931 19932cat >>confdefs.h <<\_ACEOF 19933#define HAVE_LIBDL 1 19934_ACEOF 19935 libltdl_cv_func_dlopen="yes" 19936else 19937 echo "$as_me: failed program was:" >&5 19938sed 's/^/| /' conftest.$ac_ext >&5 19939 19940 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 19941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 19942if test "${ac_cv_lib_svld_dlopen+set}" = set; then 19943 echo $ECHO_N "(cached) $ECHO_C" >&6 19944else 19945 ac_check_lib_save_LIBS=$LIBS 19946LIBS="-lsvld $LIBS" 19947cat >conftest.$ac_ext <<_ACEOF 19948/* confdefs.h. */ 19949_ACEOF 19950cat confdefs.h >>conftest.$ac_ext 19951cat >>conftest.$ac_ext <<_ACEOF 19952/* end confdefs.h. */ 19953 19954/* Override any GCC internal prototype to avoid an error. 19955 Use char because int might match the return type of a GCC 19956 builtin and then its argument prototype would still apply. */ 19957#ifdef __cplusplus 19958extern "C" 19959#endif 19960char dlopen (); 19961int 19962main () 19963{ 19964return dlopen (); 19965 ; 19966 return 0; 19967} 19968_ACEOF 19969rm -f conftest.$ac_objext conftest$ac_exeext 19970if { (ac_try="$ac_link" 19971case "(($ac_try" in 19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19973 *) ac_try_echo=$ac_try;; 19974esac 19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19976 (eval "$ac_link") 2>conftest.er1 19977 ac_status=$? 19978 grep -v '^ *+' conftest.er1 >conftest.err 19979 rm -f conftest.er1 19980 cat conftest.err >&5 19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19982 (exit $ac_status); } && { 19983 test -z "$ac_c_werror_flag" || 19984 test ! -s conftest.err 19985 } && test -s conftest$ac_exeext && 19986 $as_test_x conftest$ac_exeext; then 19987 ac_cv_lib_svld_dlopen=yes 19988else 19989 echo "$as_me: failed program was:" >&5 19990sed 's/^/| /' conftest.$ac_ext >&5 19991 19992 ac_cv_lib_svld_dlopen=no 19993fi 19994 19995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19996 conftest$ac_exeext conftest.$ac_ext 19997LIBS=$ac_check_lib_save_LIBS 19998fi 19999{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 20000echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 20001if test $ac_cv_lib_svld_dlopen = yes; then 20002 20003cat >>confdefs.h <<\_ACEOF 20004#define HAVE_LIBDL 1 20005_ACEOF 20006 20007 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 20008else 20009 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 20010echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 20011if test "${ac_cv_lib_dld_dld_link+set}" = set; then 20012 echo $ECHO_N "(cached) $ECHO_C" >&6 20013else 20014 ac_check_lib_save_LIBS=$LIBS 20015LIBS="-ldld $LIBS" 20016cat >conftest.$ac_ext <<_ACEOF 20017/* confdefs.h. */ 20018_ACEOF 20019cat confdefs.h >>conftest.$ac_ext 20020cat >>conftest.$ac_ext <<_ACEOF 20021/* end confdefs.h. */ 20022 20023/* Override any GCC internal prototype to avoid an error. 20024 Use char because int might match the return type of a GCC 20025 builtin and then its argument prototype would still apply. */ 20026#ifdef __cplusplus 20027extern "C" 20028#endif 20029char dld_link (); 20030int 20031main () 20032{ 20033return dld_link (); 20034 ; 20035 return 0; 20036} 20037_ACEOF 20038rm -f conftest.$ac_objext conftest$ac_exeext 20039if { (ac_try="$ac_link" 20040case "(($ac_try" in 20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20042 *) ac_try_echo=$ac_try;; 20043esac 20044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20045 (eval "$ac_link") 2>conftest.er1 20046 ac_status=$? 20047 grep -v '^ *+' conftest.er1 >conftest.err 20048 rm -f conftest.er1 20049 cat conftest.err >&5 20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20051 (exit $ac_status); } && { 20052 test -z "$ac_c_werror_flag" || 20053 test ! -s conftest.err 20054 } && test -s conftest$ac_exeext && 20055 $as_test_x conftest$ac_exeext; then 20056 ac_cv_lib_dld_dld_link=yes 20057else 20058 echo "$as_me: failed program was:" >&5 20059sed 's/^/| /' conftest.$ac_ext >&5 20060 20061 ac_cv_lib_dld_dld_link=no 20062fi 20063 20064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20065 conftest$ac_exeext conftest.$ac_ext 20066LIBS=$ac_check_lib_save_LIBS 20067fi 20068{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 20069echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 20070if test $ac_cv_lib_dld_dld_link = yes; then 20071 20072cat >>confdefs.h <<\_ACEOF 20073#define HAVE_DLD 1 20074_ACEOF 20075 20076 LIBADD_DL="$LIBADD_DL -ldld" 20077else 20078 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 20079echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 20080if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 20081 echo $ECHO_N "(cached) $ECHO_C" >&6 20082else 20083 cat >conftest.$ac_ext <<_ACEOF 20084/* confdefs.h. */ 20085_ACEOF 20086cat confdefs.h >>conftest.$ac_ext 20087cat >>conftest.$ac_ext <<_ACEOF 20088/* end confdefs.h. */ 20089/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 20090 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20091#define _dyld_func_lookup innocuous__dyld_func_lookup 20092 20093/* System header to define __stub macros and hopefully few prototypes, 20094 which can conflict with char _dyld_func_lookup (); below. 20095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20096 <limits.h> exists even on freestanding compilers. */ 20097 20098#ifdef __STDC__ 20099# include <limits.h> 20100#else 20101# include <assert.h> 20102#endif 20103 20104#undef _dyld_func_lookup 20105 20106/* Override any GCC internal prototype to avoid an error. 20107 Use char because int might match the return type of a GCC 20108 builtin and then its argument prototype would still apply. */ 20109#ifdef __cplusplus 20110extern "C" 20111#endif 20112char _dyld_func_lookup (); 20113/* The GNU C library defines this for functions which it implements 20114 to always fail with ENOSYS. Some functions are actually named 20115 something starting with __ and the normal name is an alias. */ 20116#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 20117choke me 20118#endif 20119 20120int 20121main () 20122{ 20123return _dyld_func_lookup (); 20124 ; 20125 return 0; 20126} 20127_ACEOF 20128rm -f conftest.$ac_objext conftest$ac_exeext 20129if { (ac_try="$ac_link" 20130case "(($ac_try" in 20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20132 *) ac_try_echo=$ac_try;; 20133esac 20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20135 (eval "$ac_link") 2>conftest.er1 20136 ac_status=$? 20137 grep -v '^ *+' conftest.er1 >conftest.err 20138 rm -f conftest.er1 20139 cat conftest.err >&5 20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20141 (exit $ac_status); } && { 20142 test -z "$ac_c_werror_flag" || 20143 test ! -s conftest.err 20144 } && test -s conftest$ac_exeext && 20145 $as_test_x conftest$ac_exeext; then 20146 ac_cv_func__dyld_func_lookup=yes 20147else 20148 echo "$as_me: failed program was:" >&5 20149sed 's/^/| /' conftest.$ac_ext >&5 20150 20151 ac_cv_func__dyld_func_lookup=no 20152fi 20153 20154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20155 conftest$ac_exeext conftest.$ac_ext 20156fi 20157{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 20158echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 20159if test $ac_cv_func__dyld_func_lookup = yes; then 20160 20161cat >>confdefs.h <<\_ACEOF 20162#define HAVE_DYLD 1 20163_ACEOF 20164 20165fi 20166 20167 20168fi 20169 20170 20171fi 20172 20173 20174fi 20175 20176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20177 conftest$ac_exeext conftest.$ac_ext 20178 20179fi 20180 20181 20182fi 20183 20184 20185fi 20186 20187 20188if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 20189then 20190 lt_save_LIBS="$LIBS" 20191 LIBS="$LIBS $LIBADD_DL" 20192 20193for ac_func in dlerror 20194do 20195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20196{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20198if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20199 echo $ECHO_N "(cached) $ECHO_C" >&6 20200else 20201 cat >conftest.$ac_ext <<_ACEOF 20202/* confdefs.h. */ 20203_ACEOF 20204cat confdefs.h >>conftest.$ac_ext 20205cat >>conftest.$ac_ext <<_ACEOF 20206/* end confdefs.h. */ 20207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20208 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20209#define $ac_func innocuous_$ac_func 20210 20211/* System header to define __stub macros and hopefully few prototypes, 20212 which can conflict with char $ac_func (); below. 20213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20214 <limits.h> exists even on freestanding compilers. */ 20215 20216#ifdef __STDC__ 20217# include <limits.h> 20218#else 20219# include <assert.h> 20220#endif 20221 20222#undef $ac_func 20223 20224/* Override any GCC internal prototype to avoid an error. 20225 Use char because int might match the return type of a GCC 20226 builtin and then its argument prototype would still apply. */ 20227#ifdef __cplusplus 20228extern "C" 20229#endif 20230char $ac_func (); 20231/* The GNU C library defines this for functions which it implements 20232 to always fail with ENOSYS. Some functions are actually named 20233 something starting with __ and the normal name is an alias. */ 20234#if defined __stub_$ac_func || defined __stub___$ac_func 20235choke me 20236#endif 20237 20238int 20239main () 20240{ 20241return $ac_func (); 20242 ; 20243 return 0; 20244} 20245_ACEOF 20246rm -f conftest.$ac_objext conftest$ac_exeext 20247if { (ac_try="$ac_link" 20248case "(($ac_try" in 20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20250 *) ac_try_echo=$ac_try;; 20251esac 20252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20253 (eval "$ac_link") 2>conftest.er1 20254 ac_status=$? 20255 grep -v '^ *+' conftest.er1 >conftest.err 20256 rm -f conftest.er1 20257 cat conftest.err >&5 20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20259 (exit $ac_status); } && { 20260 test -z "$ac_c_werror_flag" || 20261 test ! -s conftest.err 20262 } && test -s conftest$ac_exeext && 20263 $as_test_x conftest$ac_exeext; then 20264 eval "$as_ac_var=yes" 20265else 20266 echo "$as_me: failed program was:" >&5 20267sed 's/^/| /' conftest.$ac_ext >&5 20268 20269 eval "$as_ac_var=no" 20270fi 20271 20272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20273 conftest$ac_exeext conftest.$ac_ext 20274fi 20275ac_res=`eval echo '${'$as_ac_var'}'` 20276 { echo "$as_me:$LINENO: result: $ac_res" >&5 20277echo "${ECHO_T}$ac_res" >&6; } 20278if test `eval echo '${'$as_ac_var'}'` = yes; then 20279 cat >>confdefs.h <<_ACEOF 20280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20281_ACEOF 20282 20283fi 20284done 20285 20286 LIBS="$lt_save_LIBS" 20287fi 20288ac_ext=c 20289ac_cpp='$CPP $CPPFLAGS' 20290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20292ac_compiler_gnu=$ac_cv_c_compiler_gnu 20293 20294 20295 20296{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 20297echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 20298if test "${ac_cv_sys_symbol_underscore+set}" = set; then 20299 echo $ECHO_N "(cached) $ECHO_C" >&6 20300else 20301 ac_cv_sys_symbol_underscore=no 20302 cat > conftest.$ac_ext <<EOF 20303void nm_test_func(){} 20304int main(){nm_test_func;return 0;} 20305EOF 20306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20307 (eval $ac_compile) 2>&5 20308 ac_status=$? 20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20310 (exit $ac_status); }; then 20311 # Now try to grab the symbols. 20312 ac_nlist=conftest.nm 20313 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 20314 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 20315 ac_status=$? 20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20317 (exit $ac_status); } && test -s "$ac_nlist"; then 20318 # See whether the symbols have a leading underscore. 20319 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 20320 ac_cv_sys_symbol_underscore=yes 20321 else 20322 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 20323 : 20324 else 20325 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 20326 fi 20327 fi 20328 else 20329 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 20330 fi 20331 else 20332 echo "configure: failed program was:" >&5 20333 cat conftest.c >&5 20334 fi 20335 rm -rf conftest* 20336 20337fi 20338{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 20339echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 20340 20341 20342if test x"$ac_cv_sys_symbol_underscore" = xyes; then 20343 if test x"$libltdl_cv_func_dlopen" = xyes || 20344 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 20345 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 20346echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 20347if test "${libltdl_cv_need_uscore+set}" = set; then 20348 echo $ECHO_N "(cached) $ECHO_C" >&6 20349else 20350 libltdl_cv_need_uscore=unknown 20351 save_LIBS="$LIBS" 20352 LIBS="$LIBS $LIBADD_DL" 20353 if test "$cross_compiling" = yes; then : 20354 libltdl_cv_need_uscore=cross 20355else 20356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20357 lt_status=$lt_dlunknown 20358 cat > conftest.$ac_ext <<EOF 20359#line 20359 "configure" 20360#include "confdefs.h" 20361 20362#if HAVE_DLFCN_H 20363#include <dlfcn.h> 20364#endif 20365 20366#include <stdio.h> 20367 20368#ifdef RTLD_GLOBAL 20369# define LT_DLGLOBAL RTLD_GLOBAL 20370#else 20371# ifdef DL_GLOBAL 20372# define LT_DLGLOBAL DL_GLOBAL 20373# else 20374# define LT_DLGLOBAL 0 20375# endif 20376#endif 20377 20378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20379 find out it does not work in some platform. */ 20380#ifndef LT_DLLAZY_OR_NOW 20381# ifdef RTLD_LAZY 20382# define LT_DLLAZY_OR_NOW RTLD_LAZY 20383# else 20384# ifdef DL_LAZY 20385# define LT_DLLAZY_OR_NOW DL_LAZY 20386# else 20387# ifdef RTLD_NOW 20388# define LT_DLLAZY_OR_NOW RTLD_NOW 20389# else 20390# ifdef DL_NOW 20391# define LT_DLLAZY_OR_NOW DL_NOW 20392# else 20393# define LT_DLLAZY_OR_NOW 0 20394# endif 20395# endif 20396# endif 20397# endif 20398#endif 20399 20400#ifdef __cplusplus 20401extern "C" void exit (int); 20402#endif 20403 20404void fnord() { int i=42;} 20405int main () 20406{ 20407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20408 int status = $lt_dlunknown; 20409 20410 if (self) 20411 { 20412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20414 /* dlclose (self); */ 20415 } 20416 else 20417 puts (dlerror ()); 20418 20419 exit (status); 20420} 20421EOF 20422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20423 (eval $ac_link) 2>&5 20424 ac_status=$? 20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20427 (./conftest; exit; ) >&5 2>/dev/null 20428 lt_status=$? 20429 case x$lt_status in 20430 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 20431 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 20432 x$lt_dlunknown|x*) ;; 20433 esac 20434 else : 20435 # compilation failed 20436 20437 fi 20438fi 20439rm -fr conftest* 20440 20441 LIBS="$save_LIBS" 20442 20443fi 20444{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 20445echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 20446 fi 20447fi 20448 20449if test x"$libltdl_cv_need_uscore" = xyes; then 20450 20451cat >>confdefs.h <<\_ACEOF 20452#define NEED_USCORE 1 20453_ACEOF 20454 20455fi 20456 20457 20458{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 20459echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 20460if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 20461 echo $ECHO_N "(cached) $ECHO_C" >&6 20462else 20463 # PORTME does your system automatically load deplibs for dlopen? 20464 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 20465 # For now, we just catch OSes we know something about -- in the 20466 # future, we'll try test this programmatically. 20467 libltdl_cv_sys_dlopen_deplibs=unknown 20468 case "$host_os" in 20469 aix3*|aix4.1.*|aix4.2.*) 20470 # Unknown whether this is true for these versions of AIX, but 20471 # we want this `case' here to explicitly catch those versions. 20472 libltdl_cv_sys_dlopen_deplibs=unknown 20473 ;; 20474 aix[45]*) 20475 libltdl_cv_sys_dlopen_deplibs=yes 20476 ;; 20477 darwin*) 20478 # Assuming the user has installed a libdl from somewhere, this is true 20479 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 20480 libltdl_cv_sys_dlopen_deplibs=yes 20481 ;; 20482 gnu* | linux* | k*bsd*-gnu) 20483 # GNU and its variants, using gnu ld.so (Glibc) 20484 libltdl_cv_sys_dlopen_deplibs=yes 20485 ;; 20486 hpux10*|hpux11*) 20487 libltdl_cv_sys_dlopen_deplibs=yes 20488 ;; 20489 interix*) 20490 libltdl_cv_sys_dlopen_deplibs=yes 20491 ;; 20492 irix[12345]*|irix6.[01]*) 20493 # Catch all versions of IRIX before 6.2, and indicate that we don't 20494 # know how it worked for any of those versions. 20495 libltdl_cv_sys_dlopen_deplibs=unknown 20496 ;; 20497 irix*) 20498 # The case above catches anything before 6.2, and it's known that 20499 # at 6.2 and later dlopen does load deplibs. 20500 libltdl_cv_sys_dlopen_deplibs=yes 20501 ;; 20502 netbsd* | netbsdelf*-gnu) 20503 libltdl_cv_sys_dlopen_deplibs=yes 20504 ;; 20505 openbsd*) 20506 libltdl_cv_sys_dlopen_deplibs=yes 20507 ;; 20508 osf[1234]*) 20509 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 20510 # it did *not* use an RPATH in a shared library to find objects the 20511 # library depends on, so we explictly say `no'. 20512 libltdl_cv_sys_dlopen_deplibs=no 20513 ;; 20514 osf5.0|osf5.0a|osf5.1) 20515 # dlopen *does* load deplibs and with the right loader patch applied 20516 # it even uses RPATH in a shared library to search for shared objects 20517 # that the library depends on, but there's no easy way to know if that 20518 # patch is installed. Since this is the case, all we can really 20519 # say is unknown -- it depends on the patch being installed. If 20520 # it is, this changes to `yes'. Without it, it would be `no'. 20521 libltdl_cv_sys_dlopen_deplibs=unknown 20522 ;; 20523 osf*) 20524 # the two cases above should catch all versions of osf <= 5.1. Read 20525 # the comments above for what we know about them. 20526 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 20527 # is used to find them so we can finally say `yes'. 20528 libltdl_cv_sys_dlopen_deplibs=yes 20529 ;; 20530 solaris*) 20531 libltdl_cv_sys_dlopen_deplibs=yes 20532 ;; 20533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20534 libltdl_cv_sys_dlopen_deplibs=yes 20535 ;; 20536 esac 20537 20538fi 20539{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 20540echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 20541if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 20542 20543cat >>confdefs.h <<\_ACEOF 20544#define LTDL_DLOPEN_DEPLIBS 1 20545_ACEOF 20546 20547fi 20548 20549 20550for ac_header in argz.h 20551do 20552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20554 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20557 echo $ECHO_N "(cached) $ECHO_C" >&6 20558fi 20559ac_res=`eval echo '${'$as_ac_Header'}'` 20560 { echo "$as_me:$LINENO: result: $ac_res" >&5 20561echo "${ECHO_T}$ac_res" >&6; } 20562else 20563 # Is the header compilable? 20564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20566cat >conftest.$ac_ext <<_ACEOF 20567/* confdefs.h. */ 20568_ACEOF 20569cat confdefs.h >>conftest.$ac_ext 20570cat >>conftest.$ac_ext <<_ACEOF 20571/* end confdefs.h. */ 20572$ac_includes_default 20573#include <$ac_header> 20574_ACEOF 20575rm -f conftest.$ac_objext 20576if { (ac_try="$ac_compile" 20577case "(($ac_try" in 20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20579 *) ac_try_echo=$ac_try;; 20580esac 20581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20582 (eval "$ac_compile") 2>conftest.er1 20583 ac_status=$? 20584 grep -v '^ *+' conftest.er1 >conftest.err 20585 rm -f conftest.er1 20586 cat conftest.err >&5 20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20588 (exit $ac_status); } && { 20589 test -z "$ac_c_werror_flag" || 20590 test ! -s conftest.err 20591 } && test -s conftest.$ac_objext; then 20592 ac_header_compiler=yes 20593else 20594 echo "$as_me: failed program was:" >&5 20595sed 's/^/| /' conftest.$ac_ext >&5 20596 20597 ac_header_compiler=no 20598fi 20599 20600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20602echo "${ECHO_T}$ac_header_compiler" >&6; } 20603 20604# Is the header present? 20605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20607cat >conftest.$ac_ext <<_ACEOF 20608/* confdefs.h. */ 20609_ACEOF 20610cat confdefs.h >>conftest.$ac_ext 20611cat >>conftest.$ac_ext <<_ACEOF 20612/* end confdefs.h. */ 20613#include <$ac_header> 20614_ACEOF 20615if { (ac_try="$ac_cpp conftest.$ac_ext" 20616case "(($ac_try" in 20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20618 *) ac_try_echo=$ac_try;; 20619esac 20620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20622 ac_status=$? 20623 grep -v '^ *+' conftest.er1 >conftest.err 20624 rm -f conftest.er1 20625 cat conftest.err >&5 20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20627 (exit $ac_status); } >/dev/null && { 20628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20629 test ! -s conftest.err 20630 }; then 20631 ac_header_preproc=yes 20632else 20633 echo "$as_me: failed program was:" >&5 20634sed 's/^/| /' conftest.$ac_ext >&5 20635 20636 ac_header_preproc=no 20637fi 20638 20639rm -f conftest.err conftest.$ac_ext 20640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20641echo "${ECHO_T}$ac_header_preproc" >&6; } 20642 20643# So? What about this header? 20644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20645 yes:no: ) 20646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20650 ac_header_preproc=yes 20651 ;; 20652 no:yes:* ) 20653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20665 ( cat <<\_ASBOX 20666## ------------------------------- ## 20667## Report this to ashie@homa.ne.jp ## 20668## ------------------------------- ## 20669_ASBOX 20670 ) | sed "s/^/$as_me: WARNING: /" >&2 20671 ;; 20672esac 20673{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20676 echo $ECHO_N "(cached) $ECHO_C" >&6 20677else 20678 eval "$as_ac_Header=\$ac_header_preproc" 20679fi 20680ac_res=`eval echo '${'$as_ac_Header'}'` 20681 { echo "$as_me:$LINENO: result: $ac_res" >&5 20682echo "${ECHO_T}$ac_res" >&6; } 20683 20684fi 20685if test `eval echo '${'$as_ac_Header'}'` = yes; then 20686 cat >>confdefs.h <<_ACEOF 20687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20688_ACEOF 20689 20690fi 20691 20692done 20693 20694 20695{ echo "$as_me:$LINENO: checking for error_t" >&5 20696echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 20697if test "${ac_cv_type_error_t+set}" = set; then 20698 echo $ECHO_N "(cached) $ECHO_C" >&6 20699else 20700 cat >conftest.$ac_ext <<_ACEOF 20701/* confdefs.h. */ 20702_ACEOF 20703cat confdefs.h >>conftest.$ac_ext 20704cat >>conftest.$ac_ext <<_ACEOF 20705/* end confdefs.h. */ 20706#if HAVE_ARGZ_H 20707# include <argz.h> 20708#endif 20709 20710typedef error_t ac__type_new_; 20711int 20712main () 20713{ 20714if ((ac__type_new_ *) 0) 20715 return 0; 20716if (sizeof (ac__type_new_)) 20717 return 0; 20718 ; 20719 return 0; 20720} 20721_ACEOF 20722rm -f conftest.$ac_objext 20723if { (ac_try="$ac_compile" 20724case "(($ac_try" in 20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20726 *) ac_try_echo=$ac_try;; 20727esac 20728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20729 (eval "$ac_compile") 2>conftest.er1 20730 ac_status=$? 20731 grep -v '^ *+' conftest.er1 >conftest.err 20732 rm -f conftest.er1 20733 cat conftest.err >&5 20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20735 (exit $ac_status); } && { 20736 test -z "$ac_c_werror_flag" || 20737 test ! -s conftest.err 20738 } && test -s conftest.$ac_objext; then 20739 ac_cv_type_error_t=yes 20740else 20741 echo "$as_me: failed program was:" >&5 20742sed 's/^/| /' conftest.$ac_ext >&5 20743 20744 ac_cv_type_error_t=no 20745fi 20746 20747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20748fi 20749{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 20750echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 20751if test $ac_cv_type_error_t = yes; then 20752 20753cat >>confdefs.h <<_ACEOF 20754#define HAVE_ERROR_T 1 20755_ACEOF 20756 20757 20758else 20759 20760cat >>confdefs.h <<\_ACEOF 20761#define error_t int 20762_ACEOF 20763 20764fi 20765 20766 20767 20768 20769 20770 20771 20772for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 20773do 20774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20775{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20778 echo $ECHO_N "(cached) $ECHO_C" >&6 20779else 20780 cat >conftest.$ac_ext <<_ACEOF 20781/* confdefs.h. */ 20782_ACEOF 20783cat confdefs.h >>conftest.$ac_ext 20784cat >>conftest.$ac_ext <<_ACEOF 20785/* end confdefs.h. */ 20786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20788#define $ac_func innocuous_$ac_func 20789 20790/* System header to define __stub macros and hopefully few prototypes, 20791 which can conflict with char $ac_func (); below. 20792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20793 <limits.h> exists even on freestanding compilers. */ 20794 20795#ifdef __STDC__ 20796# include <limits.h> 20797#else 20798# include <assert.h> 20799#endif 20800 20801#undef $ac_func 20802 20803/* Override any GCC internal prototype to avoid an error. 20804 Use char because int might match the return type of a GCC 20805 builtin and then its argument prototype would still apply. */ 20806#ifdef __cplusplus 20807extern "C" 20808#endif 20809char $ac_func (); 20810/* The GNU C library defines this for functions which it implements 20811 to always fail with ENOSYS. Some functions are actually named 20812 something starting with __ and the normal name is an alias. */ 20813#if defined __stub_$ac_func || defined __stub___$ac_func 20814choke me 20815#endif 20816 20817int 20818main () 20819{ 20820return $ac_func (); 20821 ; 20822 return 0; 20823} 20824_ACEOF 20825rm -f conftest.$ac_objext conftest$ac_exeext 20826if { (ac_try="$ac_link" 20827case "(($ac_try" in 20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20829 *) ac_try_echo=$ac_try;; 20830esac 20831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20832 (eval "$ac_link") 2>conftest.er1 20833 ac_status=$? 20834 grep -v '^ *+' conftest.er1 >conftest.err 20835 rm -f conftest.er1 20836 cat conftest.err >&5 20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20838 (exit $ac_status); } && { 20839 test -z "$ac_c_werror_flag" || 20840 test ! -s conftest.err 20841 } && test -s conftest$ac_exeext && 20842 $as_test_x conftest$ac_exeext; then 20843 eval "$as_ac_var=yes" 20844else 20845 echo "$as_me: failed program was:" >&5 20846sed 's/^/| /' conftest.$ac_ext >&5 20847 20848 eval "$as_ac_var=no" 20849fi 20850 20851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20852 conftest$ac_exeext conftest.$ac_ext 20853fi 20854ac_res=`eval echo '${'$as_ac_var'}'` 20855 { echo "$as_me:$LINENO: result: $ac_res" >&5 20856echo "${ECHO_T}$ac_res" >&6; } 20857if test `eval echo '${'$as_ac_var'}'` = yes; then 20858 cat >>confdefs.h <<_ACEOF 20859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20860_ACEOF 20861 20862fi 20863done 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 20893 stdio.h unistd.h 20894do 20895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20897 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20900 echo $ECHO_N "(cached) $ECHO_C" >&6 20901fi 20902ac_res=`eval echo '${'$as_ac_Header'}'` 20903 { echo "$as_me:$LINENO: result: $ac_res" >&5 20904echo "${ECHO_T}$ac_res" >&6; } 20905else 20906 # Is the header compilable? 20907{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20909cat >conftest.$ac_ext <<_ACEOF 20910/* confdefs.h. */ 20911_ACEOF 20912cat confdefs.h >>conftest.$ac_ext 20913cat >>conftest.$ac_ext <<_ACEOF 20914/* end confdefs.h. */ 20915$ac_includes_default 20916#include <$ac_header> 20917_ACEOF 20918rm -f conftest.$ac_objext 20919if { (ac_try="$ac_compile" 20920case "(($ac_try" in 20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20922 *) ac_try_echo=$ac_try;; 20923esac 20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20925 (eval "$ac_compile") 2>conftest.er1 20926 ac_status=$? 20927 grep -v '^ *+' conftest.er1 >conftest.err 20928 rm -f conftest.er1 20929 cat conftest.err >&5 20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20931 (exit $ac_status); } && { 20932 test -z "$ac_c_werror_flag" || 20933 test ! -s conftest.err 20934 } && test -s conftest.$ac_objext; then 20935 ac_header_compiler=yes 20936else 20937 echo "$as_me: failed program was:" >&5 20938sed 's/^/| /' conftest.$ac_ext >&5 20939 20940 ac_header_compiler=no 20941fi 20942 20943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20945echo "${ECHO_T}$ac_header_compiler" >&6; } 20946 20947# Is the header present? 20948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20950cat >conftest.$ac_ext <<_ACEOF 20951/* confdefs.h. */ 20952_ACEOF 20953cat confdefs.h >>conftest.$ac_ext 20954cat >>conftest.$ac_ext <<_ACEOF 20955/* end confdefs.h. */ 20956#include <$ac_header> 20957_ACEOF 20958if { (ac_try="$ac_cpp conftest.$ac_ext" 20959case "(($ac_try" in 20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20961 *) ac_try_echo=$ac_try;; 20962esac 20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20965 ac_status=$? 20966 grep -v '^ *+' conftest.er1 >conftest.err 20967 rm -f conftest.er1 20968 cat conftest.err >&5 20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20970 (exit $ac_status); } >/dev/null && { 20971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20972 test ! -s conftest.err 20973 }; then 20974 ac_header_preproc=yes 20975else 20976 echo "$as_me: failed program was:" >&5 20977sed 's/^/| /' conftest.$ac_ext >&5 20978 20979 ac_header_preproc=no 20980fi 20981 20982rm -f conftest.err conftest.$ac_ext 20983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20984echo "${ECHO_T}$ac_header_preproc" >&6; } 20985 20986# So? What about this header? 20987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20988 yes:no: ) 20989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20993 ac_header_preproc=yes 20994 ;; 20995 no:yes:* ) 20996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21008 ( cat <<\_ASBOX 21009## ------------------------------- ## 21010## Report this to ashie@homa.ne.jp ## 21011## ------------------------------- ## 21012_ASBOX 21013 ) | sed "s/^/$as_me: WARNING: /" >&2 21014 ;; 21015esac 21016{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21019 echo $ECHO_N "(cached) $ECHO_C" >&6 21020else 21021 eval "$as_ac_Header=\$ac_header_preproc" 21022fi 21023ac_res=`eval echo '${'$as_ac_Header'}'` 21024 { echo "$as_me:$LINENO: result: $ac_res" >&5 21025echo "${ECHO_T}$ac_res" >&6; } 21026 21027fi 21028if test `eval echo '${'$as_ac_Header'}'` = yes; then 21029 cat >>confdefs.h <<_ACEOF 21030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21031_ACEOF 21032 21033fi 21034 21035done 21036 21037 21038 21039 21040 21041for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 21042do 21043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21045 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21048 echo $ECHO_N "(cached) $ECHO_C" >&6 21049fi 21050ac_res=`eval echo '${'$as_ac_Header'}'` 21051 { echo "$as_me:$LINENO: result: $ac_res" >&5 21052echo "${ECHO_T}$ac_res" >&6; } 21053else 21054 # Is the header compilable? 21055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21057cat >conftest.$ac_ext <<_ACEOF 21058/* confdefs.h. */ 21059_ACEOF 21060cat confdefs.h >>conftest.$ac_ext 21061cat >>conftest.$ac_ext <<_ACEOF 21062/* end confdefs.h. */ 21063$ac_includes_default 21064#include <$ac_header> 21065_ACEOF 21066rm -f conftest.$ac_objext 21067if { (ac_try="$ac_compile" 21068case "(($ac_try" in 21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21070 *) ac_try_echo=$ac_try;; 21071esac 21072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21073 (eval "$ac_compile") 2>conftest.er1 21074 ac_status=$? 21075 grep -v '^ *+' conftest.er1 >conftest.err 21076 rm -f conftest.er1 21077 cat conftest.err >&5 21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21079 (exit $ac_status); } && { 21080 test -z "$ac_c_werror_flag" || 21081 test ! -s conftest.err 21082 } && test -s conftest.$ac_objext; then 21083 ac_header_compiler=yes 21084else 21085 echo "$as_me: failed program was:" >&5 21086sed 's/^/| /' conftest.$ac_ext >&5 21087 21088 ac_header_compiler=no 21089fi 21090 21091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21092{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21093echo "${ECHO_T}$ac_header_compiler" >&6; } 21094 21095# Is the header present? 21096{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21098cat >conftest.$ac_ext <<_ACEOF 21099/* confdefs.h. */ 21100_ACEOF 21101cat confdefs.h >>conftest.$ac_ext 21102cat >>conftest.$ac_ext <<_ACEOF 21103/* end confdefs.h. */ 21104#include <$ac_header> 21105_ACEOF 21106if { (ac_try="$ac_cpp conftest.$ac_ext" 21107case "(($ac_try" in 21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21109 *) ac_try_echo=$ac_try;; 21110esac 21111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21113 ac_status=$? 21114 grep -v '^ *+' conftest.er1 >conftest.err 21115 rm -f conftest.er1 21116 cat conftest.err >&5 21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21118 (exit $ac_status); } >/dev/null && { 21119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21120 test ! -s conftest.err 21121 }; then 21122 ac_header_preproc=yes 21123else 21124 echo "$as_me: failed program was:" >&5 21125sed 's/^/| /' conftest.$ac_ext >&5 21126 21127 ac_header_preproc=no 21128fi 21129 21130rm -f conftest.err conftest.$ac_ext 21131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21132echo "${ECHO_T}$ac_header_preproc" >&6; } 21133 21134# So? What about this header? 21135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21136 yes:no: ) 21137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21141 ac_header_preproc=yes 21142 ;; 21143 no:yes:* ) 21144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21156 ( cat <<\_ASBOX 21157## ------------------------------- ## 21158## Report this to ashie@homa.ne.jp ## 21159## ------------------------------- ## 21160_ASBOX 21161 ) | sed "s/^/$as_me: WARNING: /" >&2 21162 ;; 21163esac 21164{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21167 echo $ECHO_N "(cached) $ECHO_C" >&6 21168else 21169 eval "$as_ac_Header=\$ac_header_preproc" 21170fi 21171ac_res=`eval echo '${'$as_ac_Header'}'` 21172 { echo "$as_me:$LINENO: result: $ac_res" >&5 21173echo "${ECHO_T}$ac_res" >&6; } 21174 21175fi 21176if test `eval echo '${'$as_ac_Header'}'` = yes; then 21177 cat >>confdefs.h <<_ACEOF 21178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21179_ACEOF 21180 21181fi 21182 21183done 21184 21185 21186 21187for ac_header in string.h strings.h 21188do 21189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21191 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21194 echo $ECHO_N "(cached) $ECHO_C" >&6 21195fi 21196ac_res=`eval echo '${'$as_ac_Header'}'` 21197 { echo "$as_me:$LINENO: result: $ac_res" >&5 21198echo "${ECHO_T}$ac_res" >&6; } 21199else 21200 # Is the header compilable? 21201{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21203cat >conftest.$ac_ext <<_ACEOF 21204/* confdefs.h. */ 21205_ACEOF 21206cat confdefs.h >>conftest.$ac_ext 21207cat >>conftest.$ac_ext <<_ACEOF 21208/* end confdefs.h. */ 21209$ac_includes_default 21210#include <$ac_header> 21211_ACEOF 21212rm -f conftest.$ac_objext 21213if { (ac_try="$ac_compile" 21214case "(($ac_try" in 21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21216 *) ac_try_echo=$ac_try;; 21217esac 21218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21219 (eval "$ac_compile") 2>conftest.er1 21220 ac_status=$? 21221 grep -v '^ *+' conftest.er1 >conftest.err 21222 rm -f conftest.er1 21223 cat conftest.err >&5 21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21225 (exit $ac_status); } && { 21226 test -z "$ac_c_werror_flag" || 21227 test ! -s conftest.err 21228 } && test -s conftest.$ac_objext; then 21229 ac_header_compiler=yes 21230else 21231 echo "$as_me: failed program was:" >&5 21232sed 's/^/| /' conftest.$ac_ext >&5 21233 21234 ac_header_compiler=no 21235fi 21236 21237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21239echo "${ECHO_T}$ac_header_compiler" >&6; } 21240 21241# Is the header present? 21242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21244cat >conftest.$ac_ext <<_ACEOF 21245/* confdefs.h. */ 21246_ACEOF 21247cat confdefs.h >>conftest.$ac_ext 21248cat >>conftest.$ac_ext <<_ACEOF 21249/* end confdefs.h. */ 21250#include <$ac_header> 21251_ACEOF 21252if { (ac_try="$ac_cpp conftest.$ac_ext" 21253case "(($ac_try" in 21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21255 *) ac_try_echo=$ac_try;; 21256esac 21257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21259 ac_status=$? 21260 grep -v '^ *+' conftest.er1 >conftest.err 21261 rm -f conftest.er1 21262 cat conftest.err >&5 21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21264 (exit $ac_status); } >/dev/null && { 21265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21266 test ! -s conftest.err 21267 }; then 21268 ac_header_preproc=yes 21269else 21270 echo "$as_me: failed program was:" >&5 21271sed 's/^/| /' conftest.$ac_ext >&5 21272 21273 ac_header_preproc=no 21274fi 21275 21276rm -f conftest.err conftest.$ac_ext 21277{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21278echo "${ECHO_T}$ac_header_preproc" >&6; } 21279 21280# So? What about this header? 21281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21282 yes:no: ) 21283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21287 ac_header_preproc=yes 21288 ;; 21289 no:yes:* ) 21290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21302 ( cat <<\_ASBOX 21303## ------------------------------- ## 21304## Report this to ashie@homa.ne.jp ## 21305## ------------------------------- ## 21306_ASBOX 21307 ) | sed "s/^/$as_me: WARNING: /" >&2 21308 ;; 21309esac 21310{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21313 echo $ECHO_N "(cached) $ECHO_C" >&6 21314else 21315 eval "$as_ac_Header=\$ac_header_preproc" 21316fi 21317ac_res=`eval echo '${'$as_ac_Header'}'` 21318 { echo "$as_me:$LINENO: result: $ac_res" >&5 21319echo "${ECHO_T}$ac_res" >&6; } 21320 21321fi 21322if test `eval echo '${'$as_ac_Header'}'` = yes; then 21323 cat >>confdefs.h <<_ACEOF 21324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21325_ACEOF 21326 break 21327fi 21328 21329done 21330 21331 21332 21333 21334for ac_func in strchr index 21335do 21336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21337{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21340 echo $ECHO_N "(cached) $ECHO_C" >&6 21341else 21342 cat >conftest.$ac_ext <<_ACEOF 21343/* confdefs.h. */ 21344_ACEOF 21345cat confdefs.h >>conftest.$ac_ext 21346cat >>conftest.$ac_ext <<_ACEOF 21347/* end confdefs.h. */ 21348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21350#define $ac_func innocuous_$ac_func 21351 21352/* System header to define __stub macros and hopefully few prototypes, 21353 which can conflict with char $ac_func (); below. 21354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21355 <limits.h> exists even on freestanding compilers. */ 21356 21357#ifdef __STDC__ 21358# include <limits.h> 21359#else 21360# include <assert.h> 21361#endif 21362 21363#undef $ac_func 21364 21365/* Override any GCC internal prototype to avoid an error. 21366 Use char because int might match the return type of a GCC 21367 builtin and then its argument prototype would still apply. */ 21368#ifdef __cplusplus 21369extern "C" 21370#endif 21371char $ac_func (); 21372/* The GNU C library defines this for functions which it implements 21373 to always fail with ENOSYS. Some functions are actually named 21374 something starting with __ and the normal name is an alias. */ 21375#if defined __stub_$ac_func || defined __stub___$ac_func 21376choke me 21377#endif 21378 21379int 21380main () 21381{ 21382return $ac_func (); 21383 ; 21384 return 0; 21385} 21386_ACEOF 21387rm -f conftest.$ac_objext conftest$ac_exeext 21388if { (ac_try="$ac_link" 21389case "(($ac_try" in 21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21391 *) ac_try_echo=$ac_try;; 21392esac 21393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21394 (eval "$ac_link") 2>conftest.er1 21395 ac_status=$? 21396 grep -v '^ *+' conftest.er1 >conftest.err 21397 rm -f conftest.er1 21398 cat conftest.err >&5 21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21400 (exit $ac_status); } && { 21401 test -z "$ac_c_werror_flag" || 21402 test ! -s conftest.err 21403 } && test -s conftest$ac_exeext && 21404 $as_test_x conftest$ac_exeext; then 21405 eval "$as_ac_var=yes" 21406else 21407 echo "$as_me: failed program was:" >&5 21408sed 's/^/| /' conftest.$ac_ext >&5 21409 21410 eval "$as_ac_var=no" 21411fi 21412 21413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21414 conftest$ac_exeext conftest.$ac_ext 21415fi 21416ac_res=`eval echo '${'$as_ac_var'}'` 21417 { echo "$as_me:$LINENO: result: $ac_res" >&5 21418echo "${ECHO_T}$ac_res" >&6; } 21419if test `eval echo '${'$as_ac_var'}'` = yes; then 21420 cat >>confdefs.h <<_ACEOF 21421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21422_ACEOF 21423 break 21424fi 21425done 21426 21427 21428 21429for ac_func in strrchr rindex 21430do 21431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21432{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21435 echo $ECHO_N "(cached) $ECHO_C" >&6 21436else 21437 cat >conftest.$ac_ext <<_ACEOF 21438/* confdefs.h. */ 21439_ACEOF 21440cat confdefs.h >>conftest.$ac_ext 21441cat >>conftest.$ac_ext <<_ACEOF 21442/* end confdefs.h. */ 21443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21444 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21445#define $ac_func innocuous_$ac_func 21446 21447/* System header to define __stub macros and hopefully few prototypes, 21448 which can conflict with char $ac_func (); below. 21449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21450 <limits.h> exists even on freestanding compilers. */ 21451 21452#ifdef __STDC__ 21453# include <limits.h> 21454#else 21455# include <assert.h> 21456#endif 21457 21458#undef $ac_func 21459 21460/* Override any GCC internal prototype to avoid an error. 21461 Use char because int might match the return type of a GCC 21462 builtin and then its argument prototype would still apply. */ 21463#ifdef __cplusplus 21464extern "C" 21465#endif 21466char $ac_func (); 21467/* The GNU C library defines this for functions which it implements 21468 to always fail with ENOSYS. Some functions are actually named 21469 something starting with __ and the normal name is an alias. */ 21470#if defined __stub_$ac_func || defined __stub___$ac_func 21471choke me 21472#endif 21473 21474int 21475main () 21476{ 21477return $ac_func (); 21478 ; 21479 return 0; 21480} 21481_ACEOF 21482rm -f conftest.$ac_objext conftest$ac_exeext 21483if { (ac_try="$ac_link" 21484case "(($ac_try" in 21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21486 *) ac_try_echo=$ac_try;; 21487esac 21488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21489 (eval "$ac_link") 2>conftest.er1 21490 ac_status=$? 21491 grep -v '^ *+' conftest.er1 >conftest.err 21492 rm -f conftest.er1 21493 cat conftest.err >&5 21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21495 (exit $ac_status); } && { 21496 test -z "$ac_c_werror_flag" || 21497 test ! -s conftest.err 21498 } && test -s conftest$ac_exeext && 21499 $as_test_x conftest$ac_exeext; then 21500 eval "$as_ac_var=yes" 21501else 21502 echo "$as_me: failed program was:" >&5 21503sed 's/^/| /' conftest.$ac_ext >&5 21504 21505 eval "$as_ac_var=no" 21506fi 21507 21508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21509 conftest$ac_exeext conftest.$ac_ext 21510fi 21511ac_res=`eval echo '${'$as_ac_var'}'` 21512 { echo "$as_me:$LINENO: result: $ac_res" >&5 21513echo "${ECHO_T}$ac_res" >&6; } 21514if test `eval echo '${'$as_ac_var'}'` = yes; then 21515 cat >>confdefs.h <<_ACEOF 21516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21517_ACEOF 21518 break 21519fi 21520done 21521 21522 21523 21524for ac_func in memcpy bcopy 21525do 21526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21527{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21530 echo $ECHO_N "(cached) $ECHO_C" >&6 21531else 21532 cat >conftest.$ac_ext <<_ACEOF 21533/* confdefs.h. */ 21534_ACEOF 21535cat confdefs.h >>conftest.$ac_ext 21536cat >>conftest.$ac_ext <<_ACEOF 21537/* end confdefs.h. */ 21538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21539 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21540#define $ac_func innocuous_$ac_func 21541 21542/* System header to define __stub macros and hopefully few prototypes, 21543 which can conflict with char $ac_func (); below. 21544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21545 <limits.h> exists even on freestanding compilers. */ 21546 21547#ifdef __STDC__ 21548# include <limits.h> 21549#else 21550# include <assert.h> 21551#endif 21552 21553#undef $ac_func 21554 21555/* Override any GCC internal prototype to avoid an error. 21556 Use char because int might match the return type of a GCC 21557 builtin and then its argument prototype would still apply. */ 21558#ifdef __cplusplus 21559extern "C" 21560#endif 21561char $ac_func (); 21562/* The GNU C library defines this for functions which it implements 21563 to always fail with ENOSYS. Some functions are actually named 21564 something starting with __ and the normal name is an alias. */ 21565#if defined __stub_$ac_func || defined __stub___$ac_func 21566choke me 21567#endif 21568 21569int 21570main () 21571{ 21572return $ac_func (); 21573 ; 21574 return 0; 21575} 21576_ACEOF 21577rm -f conftest.$ac_objext conftest$ac_exeext 21578if { (ac_try="$ac_link" 21579case "(($ac_try" in 21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21581 *) ac_try_echo=$ac_try;; 21582esac 21583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21584 (eval "$ac_link") 2>conftest.er1 21585 ac_status=$? 21586 grep -v '^ *+' conftest.er1 >conftest.err 21587 rm -f conftest.er1 21588 cat conftest.err >&5 21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21590 (exit $ac_status); } && { 21591 test -z "$ac_c_werror_flag" || 21592 test ! -s conftest.err 21593 } && test -s conftest$ac_exeext && 21594 $as_test_x conftest$ac_exeext; then 21595 eval "$as_ac_var=yes" 21596else 21597 echo "$as_me: failed program was:" >&5 21598sed 's/^/| /' conftest.$ac_ext >&5 21599 21600 eval "$as_ac_var=no" 21601fi 21602 21603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21604 conftest$ac_exeext conftest.$ac_ext 21605fi 21606ac_res=`eval echo '${'$as_ac_var'}'` 21607 { echo "$as_me:$LINENO: result: $ac_res" >&5 21608echo "${ECHO_T}$ac_res" >&6; } 21609if test `eval echo '${'$as_ac_var'}'` = yes; then 21610 cat >>confdefs.h <<_ACEOF 21611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21612_ACEOF 21613 break 21614fi 21615done 21616 21617 21618 21619for ac_func in memmove strcmp 21620do 21621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21622{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21625 echo $ECHO_N "(cached) $ECHO_C" >&6 21626else 21627 cat >conftest.$ac_ext <<_ACEOF 21628/* confdefs.h. */ 21629_ACEOF 21630cat confdefs.h >>conftest.$ac_ext 21631cat >>conftest.$ac_ext <<_ACEOF 21632/* end confdefs.h. */ 21633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21634 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21635#define $ac_func innocuous_$ac_func 21636 21637/* System header to define __stub macros and hopefully few prototypes, 21638 which can conflict with char $ac_func (); below. 21639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21640 <limits.h> exists even on freestanding compilers. */ 21641 21642#ifdef __STDC__ 21643# include <limits.h> 21644#else 21645# include <assert.h> 21646#endif 21647 21648#undef $ac_func 21649 21650/* Override any GCC internal prototype to avoid an error. 21651 Use char because int might match the return type of a GCC 21652 builtin and then its argument prototype would still apply. */ 21653#ifdef __cplusplus 21654extern "C" 21655#endif 21656char $ac_func (); 21657/* The GNU C library defines this for functions which it implements 21658 to always fail with ENOSYS. Some functions are actually named 21659 something starting with __ and the normal name is an alias. */ 21660#if defined __stub_$ac_func || defined __stub___$ac_func 21661choke me 21662#endif 21663 21664int 21665main () 21666{ 21667return $ac_func (); 21668 ; 21669 return 0; 21670} 21671_ACEOF 21672rm -f conftest.$ac_objext conftest$ac_exeext 21673if { (ac_try="$ac_link" 21674case "(($ac_try" in 21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21676 *) ac_try_echo=$ac_try;; 21677esac 21678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21679 (eval "$ac_link") 2>conftest.er1 21680 ac_status=$? 21681 grep -v '^ *+' conftest.er1 >conftest.err 21682 rm -f conftest.er1 21683 cat conftest.err >&5 21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21685 (exit $ac_status); } && { 21686 test -z "$ac_c_werror_flag" || 21687 test ! -s conftest.err 21688 } && test -s conftest$ac_exeext && 21689 $as_test_x conftest$ac_exeext; then 21690 eval "$as_ac_var=yes" 21691else 21692 echo "$as_me: failed program was:" >&5 21693sed 's/^/| /' conftest.$ac_ext >&5 21694 21695 eval "$as_ac_var=no" 21696fi 21697 21698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21699 conftest$ac_exeext conftest.$ac_ext 21700fi 21701ac_res=`eval echo '${'$as_ac_var'}'` 21702 { echo "$as_me:$LINENO: result: $ac_res" >&5 21703echo "${ECHO_T}$ac_res" >&6; } 21704if test `eval echo '${'$as_ac_var'}'` = yes; then 21705 cat >>confdefs.h <<_ACEOF 21706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21707_ACEOF 21708 21709fi 21710done 21711 21712 21713 21714 21715for ac_func in closedir opendir readdir 21716do 21717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21718{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21721 echo $ECHO_N "(cached) $ECHO_C" >&6 21722else 21723 cat >conftest.$ac_ext <<_ACEOF 21724/* confdefs.h. */ 21725_ACEOF 21726cat confdefs.h >>conftest.$ac_ext 21727cat >>conftest.$ac_ext <<_ACEOF 21728/* end confdefs.h. */ 21729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21731#define $ac_func innocuous_$ac_func 21732 21733/* System header to define __stub macros and hopefully few prototypes, 21734 which can conflict with char $ac_func (); below. 21735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21736 <limits.h> exists even on freestanding compilers. */ 21737 21738#ifdef __STDC__ 21739# include <limits.h> 21740#else 21741# include <assert.h> 21742#endif 21743 21744#undef $ac_func 21745 21746/* Override any GCC internal prototype to avoid an error. 21747 Use char because int might match the return type of a GCC 21748 builtin and then its argument prototype would still apply. */ 21749#ifdef __cplusplus 21750extern "C" 21751#endif 21752char $ac_func (); 21753/* The GNU C library defines this for functions which it implements 21754 to always fail with ENOSYS. Some functions are actually named 21755 something starting with __ and the normal name is an alias. */ 21756#if defined __stub_$ac_func || defined __stub___$ac_func 21757choke me 21758#endif 21759 21760int 21761main () 21762{ 21763return $ac_func (); 21764 ; 21765 return 0; 21766} 21767_ACEOF 21768rm -f conftest.$ac_objext conftest$ac_exeext 21769if { (ac_try="$ac_link" 21770case "(($ac_try" in 21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21772 *) ac_try_echo=$ac_try;; 21773esac 21774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21775 (eval "$ac_link") 2>conftest.er1 21776 ac_status=$? 21777 grep -v '^ *+' conftest.er1 >conftest.err 21778 rm -f conftest.er1 21779 cat conftest.err >&5 21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21781 (exit $ac_status); } && { 21782 test -z "$ac_c_werror_flag" || 21783 test ! -s conftest.err 21784 } && test -s conftest$ac_exeext && 21785 $as_test_x conftest$ac_exeext; then 21786 eval "$as_ac_var=yes" 21787else 21788 echo "$as_me: failed program was:" >&5 21789sed 's/^/| /' conftest.$ac_ext >&5 21790 21791 eval "$as_ac_var=no" 21792fi 21793 21794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21795 conftest$ac_exeext conftest.$ac_ext 21796fi 21797ac_res=`eval echo '${'$as_ac_var'}'` 21798 { echo "$as_me:$LINENO: result: $ac_res" >&5 21799echo "${ECHO_T}$ac_res" >&6; } 21800if test `eval echo '${'$as_ac_var'}'` = yes; then 21801 cat >>confdefs.h <<_ACEOF 21802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21803_ACEOF 21804 21805fi 21806done 21807 21808 21809 21810 21811# Checks for programs. 21812ac_ext=cpp 21813ac_cpp='$CXXCPP $CPPFLAGS' 21814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21817if test -z "$CXX"; then 21818 if test -n "$CCC"; then 21819 CXX=$CCC 21820 else 21821 if test -n "$ac_tool_prefix"; then 21822 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 21823 do 21824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 21825set dummy $ac_tool_prefix$ac_prog; ac_word=$2 21826{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21828if test "${ac_cv_prog_CXX+set}" = set; then 21829 echo $ECHO_N "(cached) $ECHO_C" >&6 21830else 21831 if test -n "$CXX"; then 21832 ac_cv_prog_CXX="$CXX" # Let the user override the test. 21833else 21834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21835for as_dir in $PATH 21836do 21837 IFS=$as_save_IFS 21838 test -z "$as_dir" && as_dir=. 21839 for ac_exec_ext in '' $ac_executable_extensions; do 21840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21841 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 21842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21843 break 2 21844 fi 21845done 21846done 21847IFS=$as_save_IFS 21848 21849fi 21850fi 21851CXX=$ac_cv_prog_CXX 21852if test -n "$CXX"; then 21853 { echo "$as_me:$LINENO: result: $CXX" >&5 21854echo "${ECHO_T}$CXX" >&6; } 21855else 21856 { echo "$as_me:$LINENO: result: no" >&5 21857echo "${ECHO_T}no" >&6; } 21858fi 21859 21860 21861 test -n "$CXX" && break 21862 done 21863fi 21864if test -z "$CXX"; then 21865 ac_ct_CXX=$CXX 21866 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 21867do 21868 # Extract the first word of "$ac_prog", so it can be a program name with args. 21869set dummy $ac_prog; ac_word=$2 21870{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21872if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 21873 echo $ECHO_N "(cached) $ECHO_C" >&6 21874else 21875 if test -n "$ac_ct_CXX"; then 21876 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 21877else 21878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21879for as_dir in $PATH 21880do 21881 IFS=$as_save_IFS 21882 test -z "$as_dir" && as_dir=. 21883 for ac_exec_ext in '' $ac_executable_extensions; do 21884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21885 ac_cv_prog_ac_ct_CXX="$ac_prog" 21886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21887 break 2 21888 fi 21889done 21890done 21891IFS=$as_save_IFS 21892 21893fi 21894fi 21895ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 21896if test -n "$ac_ct_CXX"; then 21897 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 21898echo "${ECHO_T}$ac_ct_CXX" >&6; } 21899else 21900 { echo "$as_me:$LINENO: result: no" >&5 21901echo "${ECHO_T}no" >&6; } 21902fi 21903 21904 21905 test -n "$ac_ct_CXX" && break 21906done 21907 21908 if test "x$ac_ct_CXX" = x; then 21909 CXX="g++" 21910 else 21911 case $cross_compiling:$ac_tool_warned in 21912yes:) 21913{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21914whose name does not start with the host triplet. If you think this 21915configuration is useful to you, please write to autoconf@gnu.org." >&5 21916echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21917whose name does not start with the host triplet. If you think this 21918configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21919ac_tool_warned=yes ;; 21920esac 21921 CXX=$ac_ct_CXX 21922 fi 21923fi 21924 21925 fi 21926fi 21927# Provide some information about the compiler. 21928echo "$as_me:$LINENO: checking for C++ compiler version" >&5 21929ac_compiler=`set X $ac_compile; echo $2` 21930{ (ac_try="$ac_compiler --version >&5" 21931case "(($ac_try" in 21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21933 *) ac_try_echo=$ac_try;; 21934esac 21935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21936 (eval "$ac_compiler --version >&5") 2>&5 21937 ac_status=$? 21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21939 (exit $ac_status); } 21940{ (ac_try="$ac_compiler -v >&5" 21941case "(($ac_try" in 21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21943 *) ac_try_echo=$ac_try;; 21944esac 21945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21946 (eval "$ac_compiler -v >&5") 2>&5 21947 ac_status=$? 21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21949 (exit $ac_status); } 21950{ (ac_try="$ac_compiler -V >&5" 21951case "(($ac_try" in 21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21953 *) ac_try_echo=$ac_try;; 21954esac 21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21956 (eval "$ac_compiler -V >&5") 2>&5 21957 ac_status=$? 21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21959 (exit $ac_status); } 21960 21961{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 21962echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 21963if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 21964 echo $ECHO_N "(cached) $ECHO_C" >&6 21965else 21966 cat >conftest.$ac_ext <<_ACEOF 21967/* confdefs.h. */ 21968_ACEOF 21969cat confdefs.h >>conftest.$ac_ext 21970cat >>conftest.$ac_ext <<_ACEOF 21971/* end confdefs.h. */ 21972 21973int 21974main () 21975{ 21976#ifndef __GNUC__ 21977 choke me 21978#endif 21979 21980 ; 21981 return 0; 21982} 21983_ACEOF 21984rm -f conftest.$ac_objext 21985if { (ac_try="$ac_compile" 21986case "(($ac_try" in 21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21988 *) ac_try_echo=$ac_try;; 21989esac 21990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21991 (eval "$ac_compile") 2>conftest.er1 21992 ac_status=$? 21993 grep -v '^ *+' conftest.er1 >conftest.err 21994 rm -f conftest.er1 21995 cat conftest.err >&5 21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21997 (exit $ac_status); } && { 21998 test -z "$ac_cxx_werror_flag" || 21999 test ! -s conftest.err 22000 } && test -s conftest.$ac_objext; then 22001 ac_compiler_gnu=yes 22002else 22003 echo "$as_me: failed program was:" >&5 22004sed 's/^/| /' conftest.$ac_ext >&5 22005 22006 ac_compiler_gnu=no 22007fi 22008 22009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22010ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 22011 22012fi 22013{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 22014echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 22015GXX=`test $ac_compiler_gnu = yes && echo yes` 22016ac_test_CXXFLAGS=${CXXFLAGS+set} 22017ac_save_CXXFLAGS=$CXXFLAGS 22018{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 22019echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 22020if test "${ac_cv_prog_cxx_g+set}" = set; then 22021 echo $ECHO_N "(cached) $ECHO_C" >&6 22022else 22023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 22024 ac_cxx_werror_flag=yes 22025 ac_cv_prog_cxx_g=no 22026 CXXFLAGS="-g" 22027 cat >conftest.$ac_ext <<_ACEOF 22028/* confdefs.h. */ 22029_ACEOF 22030cat confdefs.h >>conftest.$ac_ext 22031cat >>conftest.$ac_ext <<_ACEOF 22032/* end confdefs.h. */ 22033 22034int 22035main () 22036{ 22037 22038 ; 22039 return 0; 22040} 22041_ACEOF 22042rm -f conftest.$ac_objext 22043if { (ac_try="$ac_compile" 22044case "(($ac_try" in 22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22046 *) ac_try_echo=$ac_try;; 22047esac 22048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22049 (eval "$ac_compile") 2>conftest.er1 22050 ac_status=$? 22051 grep -v '^ *+' conftest.er1 >conftest.err 22052 rm -f conftest.er1 22053 cat conftest.err >&5 22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22055 (exit $ac_status); } && { 22056 test -z "$ac_cxx_werror_flag" || 22057 test ! -s conftest.err 22058 } && test -s conftest.$ac_objext; then 22059 ac_cv_prog_cxx_g=yes 22060else 22061 echo "$as_me: failed program was:" >&5 22062sed 's/^/| /' conftest.$ac_ext >&5 22063 22064 CXXFLAGS="" 22065 cat >conftest.$ac_ext <<_ACEOF 22066/* confdefs.h. */ 22067_ACEOF 22068cat confdefs.h >>conftest.$ac_ext 22069cat >>conftest.$ac_ext <<_ACEOF 22070/* end confdefs.h. */ 22071 22072int 22073main () 22074{ 22075 22076 ; 22077 return 0; 22078} 22079_ACEOF 22080rm -f conftest.$ac_objext 22081if { (ac_try="$ac_compile" 22082case "(($ac_try" in 22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22084 *) ac_try_echo=$ac_try;; 22085esac 22086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22087 (eval "$ac_compile") 2>conftest.er1 22088 ac_status=$? 22089 grep -v '^ *+' conftest.er1 >conftest.err 22090 rm -f conftest.er1 22091 cat conftest.err >&5 22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22093 (exit $ac_status); } && { 22094 test -z "$ac_cxx_werror_flag" || 22095 test ! -s conftest.err 22096 } && test -s conftest.$ac_objext; then 22097 : 22098else 22099 echo "$as_me: failed program was:" >&5 22100sed 's/^/| /' conftest.$ac_ext >&5 22101 22102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 22103 CXXFLAGS="-g" 22104 cat >conftest.$ac_ext <<_ACEOF 22105/* confdefs.h. */ 22106_ACEOF 22107cat confdefs.h >>conftest.$ac_ext 22108cat >>conftest.$ac_ext <<_ACEOF 22109/* end confdefs.h. */ 22110 22111int 22112main () 22113{ 22114 22115 ; 22116 return 0; 22117} 22118_ACEOF 22119rm -f conftest.$ac_objext 22120if { (ac_try="$ac_compile" 22121case "(($ac_try" in 22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22123 *) ac_try_echo=$ac_try;; 22124esac 22125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22126 (eval "$ac_compile") 2>conftest.er1 22127 ac_status=$? 22128 grep -v '^ *+' conftest.er1 >conftest.err 22129 rm -f conftest.er1 22130 cat conftest.err >&5 22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22132 (exit $ac_status); } && { 22133 test -z "$ac_cxx_werror_flag" || 22134 test ! -s conftest.err 22135 } && test -s conftest.$ac_objext; then 22136 ac_cv_prog_cxx_g=yes 22137else 22138 echo "$as_me: failed program was:" >&5 22139sed 's/^/| /' conftest.$ac_ext >&5 22140 22141 22142fi 22143 22144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22145fi 22146 22147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22148fi 22149 22150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 22152fi 22153{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 22154echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 22155if test "$ac_test_CXXFLAGS" = set; then 22156 CXXFLAGS=$ac_save_CXXFLAGS 22157elif test $ac_cv_prog_cxx_g = yes; then 22158 if test "$GXX" = yes; then 22159 CXXFLAGS="-g -O2" 22160 else 22161 CXXFLAGS="-g" 22162 fi 22163else 22164 if test "$GXX" = yes; then 22165 CXXFLAGS="-O2" 22166 else 22167 CXXFLAGS= 22168 fi 22169fi 22170ac_ext=c 22171ac_cpp='$CPP $CPPFLAGS' 22172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22174ac_compiler_gnu=$ac_cv_c_compiler_gnu 22175 22176depcc="$CXX" am_compiler_list= 22177 22178{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 22179echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 22180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 22181 echo $ECHO_N "(cached) $ECHO_C" >&6 22182else 22183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 22184 # We make a subdir and do the tests there. Otherwise we can end up 22185 # making bogus files that we don't know about and never remove. For 22186 # instance it was reported that on HP-UX the gcc test will end up 22187 # making a dummy file named `D' -- because `-MD' means `put the output 22188 # in D'. 22189 mkdir conftest.dir 22190 # Copy depcomp to subdir because otherwise we won't find it if we're 22191 # using a relative directory. 22192 cp "$am_depcomp" conftest.dir 22193 cd conftest.dir 22194 # We will build objects and dependencies in a subdirectory because 22195 # it helps to detect inapplicable dependency modes. For instance 22196 # both Tru64's cc and ICC support -MD to output dependencies as a 22197 # side effect of compilation, but ICC will put the dependencies in 22198 # the current directory while Tru64 will put them in the object 22199 # directory. 22200 mkdir sub 22201 22202 am_cv_CXX_dependencies_compiler_type=none 22203 if test "$am_compiler_list" = ""; then 22204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 22205 fi 22206 for depmode in $am_compiler_list; do 22207 # Setup a source with many dependencies, because some compilers 22208 # like to wrap large dependency lists on column 80 (with \), and 22209 # we should not choose a depcomp mode which is confused by this. 22210 # 22211 # We need to recreate these files for each test, as the compiler may 22212 # overwrite some of them when testing with obscure command lines. 22213 # This happens at least with the AIX C compiler. 22214 : > sub/conftest.c 22215 for i in 1 2 3 4 5 6; do 22216 echo '#include "conftst'$i'.h"' >> sub/conftest.c 22217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 22218 # Solaris 8's {/usr,}/bin/sh. 22219 touch sub/conftst$i.h 22220 done 22221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 22222 22223 case $depmode in 22224 nosideeffect) 22225 # after this tag, mechanisms are not by side-effect, so they'll 22226 # only be used when explicitly requested 22227 if test "x$enable_dependency_tracking" = xyes; then 22228 continue 22229 else 22230 break 22231 fi 22232 ;; 22233 none) break ;; 22234 esac 22235 # We check with `-c' and `-o' for the sake of the "dashmstdout" 22236 # mode. It turns out that the SunPro C++ compiler does not properly 22237 # handle `-M -o', and we need to detect this. 22238 if depmode=$depmode \ 22239 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 22240 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 22241 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 22242 >/dev/null 2>conftest.err && 22243 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 22244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 22245 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 22246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 22247 # icc doesn't choke on unknown options, it will just issue warnings 22248 # or remarks (even with -Werror). So we grep stderr for any message 22249 # that says an option was ignored or not supported. 22250 # When given -MP, icc 7.0 and 7.1 complain thusly: 22251 # icc: Command line warning: ignoring option '-M'; no argument required 22252 # The diagnosis changed in icc 8.0: 22253 # icc: Command line remark: option '-MP' not supported 22254 if (grep 'ignoring option' conftest.err || 22255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 22256 am_cv_CXX_dependencies_compiler_type=$depmode 22257 break 22258 fi 22259 fi 22260 done 22261 22262 cd .. 22263 rm -rf conftest.dir 22264else 22265 am_cv_CXX_dependencies_compiler_type=none 22266fi 22267 22268fi 22269{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 22270echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 22271CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 22272 22273 if 22274 test "x$enable_dependency_tracking" != xno \ 22275 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 22276 am__fastdepCXX_TRUE= 22277 am__fastdepCXX_FALSE='#' 22278else 22279 am__fastdepCXX_TRUE='#' 22280 am__fastdepCXX_FALSE= 22281fi 22282 22283 22284ac_ext=c 22285ac_cpp='$CPP $CPPFLAGS' 22286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22288ac_compiler_gnu=$ac_cv_c_compiler_gnu 22289if test -n "$ac_tool_prefix"; then 22290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 22291set dummy ${ac_tool_prefix}gcc; ac_word=$2 22292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22294if test "${ac_cv_prog_CC+set}" = set; then 22295 echo $ECHO_N "(cached) $ECHO_C" >&6 22296else 22297 if test -n "$CC"; then 22298 ac_cv_prog_CC="$CC" # Let the user override the test. 22299else 22300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22301for as_dir in $PATH 22302do 22303 IFS=$as_save_IFS 22304 test -z "$as_dir" && as_dir=. 22305 for ac_exec_ext in '' $ac_executable_extensions; do 22306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22307 ac_cv_prog_CC="${ac_tool_prefix}gcc" 22308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22309 break 2 22310 fi 22311done 22312done 22313IFS=$as_save_IFS 22314 22315fi 22316fi 22317CC=$ac_cv_prog_CC 22318if test -n "$CC"; then 22319 { echo "$as_me:$LINENO: result: $CC" >&5 22320echo "${ECHO_T}$CC" >&6; } 22321else 22322 { echo "$as_me:$LINENO: result: no" >&5 22323echo "${ECHO_T}no" >&6; } 22324fi 22325 22326 22327fi 22328if test -z "$ac_cv_prog_CC"; then 22329 ac_ct_CC=$CC 22330 # Extract the first word of "gcc", so it can be a program name with args. 22331set dummy gcc; ac_word=$2 22332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 22335 echo $ECHO_N "(cached) $ECHO_C" >&6 22336else 22337 if test -n "$ac_ct_CC"; then 22338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 22339else 22340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22341for as_dir in $PATH 22342do 22343 IFS=$as_save_IFS 22344 test -z "$as_dir" && as_dir=. 22345 for ac_exec_ext in '' $ac_executable_extensions; do 22346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22347 ac_cv_prog_ac_ct_CC="gcc" 22348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22349 break 2 22350 fi 22351done 22352done 22353IFS=$as_save_IFS 22354 22355fi 22356fi 22357ac_ct_CC=$ac_cv_prog_ac_ct_CC 22358if test -n "$ac_ct_CC"; then 22359 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 22360echo "${ECHO_T}$ac_ct_CC" >&6; } 22361else 22362 { echo "$as_me:$LINENO: result: no" >&5 22363echo "${ECHO_T}no" >&6; } 22364fi 22365 22366 if test "x$ac_ct_CC" = x; then 22367 CC="" 22368 else 22369 case $cross_compiling:$ac_tool_warned in 22370yes:) 22371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 22372whose name does not start with the host triplet. If you think this 22373configuration is useful to you, please write to autoconf@gnu.org." >&5 22374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 22375whose name does not start with the host triplet. If you think this 22376configuration is useful to you, please write to autoconf@gnu.org." >&2;} 22377ac_tool_warned=yes ;; 22378esac 22379 CC=$ac_ct_CC 22380 fi 22381else 22382 CC="$ac_cv_prog_CC" 22383fi 22384 22385if test -z "$CC"; then 22386 if test -n "$ac_tool_prefix"; then 22387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 22388set dummy ${ac_tool_prefix}cc; ac_word=$2 22389{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22391if test "${ac_cv_prog_CC+set}" = set; then 22392 echo $ECHO_N "(cached) $ECHO_C" >&6 22393else 22394 if test -n "$CC"; then 22395 ac_cv_prog_CC="$CC" # Let the user override the test. 22396else 22397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22398for as_dir in $PATH 22399do 22400 IFS=$as_save_IFS 22401 test -z "$as_dir" && as_dir=. 22402 for ac_exec_ext in '' $ac_executable_extensions; do 22403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22404 ac_cv_prog_CC="${ac_tool_prefix}cc" 22405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22406 break 2 22407 fi 22408done 22409done 22410IFS=$as_save_IFS 22411 22412fi 22413fi 22414CC=$ac_cv_prog_CC 22415if test -n "$CC"; then 22416 { echo "$as_me:$LINENO: result: $CC" >&5 22417echo "${ECHO_T}$CC" >&6; } 22418else 22419 { echo "$as_me:$LINENO: result: no" >&5 22420echo "${ECHO_T}no" >&6; } 22421fi 22422 22423 22424 fi 22425fi 22426if test -z "$CC"; then 22427 # Extract the first word of "cc", so it can be a program name with args. 22428set dummy cc; ac_word=$2 22429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22431if test "${ac_cv_prog_CC+set}" = set; then 22432 echo $ECHO_N "(cached) $ECHO_C" >&6 22433else 22434 if test -n "$CC"; then 22435 ac_cv_prog_CC="$CC" # Let the user override the test. 22436else 22437 ac_prog_rejected=no 22438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22439for as_dir in $PATH 22440do 22441 IFS=$as_save_IFS 22442 test -z "$as_dir" && as_dir=. 22443 for ac_exec_ext in '' $ac_executable_extensions; do 22444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 22446 ac_prog_rejected=yes 22447 continue 22448 fi 22449 ac_cv_prog_CC="cc" 22450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22451 break 2 22452 fi 22453done 22454done 22455IFS=$as_save_IFS 22456 22457if test $ac_prog_rejected = yes; then 22458 # We found a bogon in the path, so make sure we never use it. 22459 set dummy $ac_cv_prog_CC 22460 shift 22461 if test $# != 0; then 22462 # We chose a different compiler from the bogus one. 22463 # However, it has the same basename, so the bogon will be chosen 22464 # first if we set CC to just the basename; use the full file name. 22465 shift 22466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 22467 fi 22468fi 22469fi 22470fi 22471CC=$ac_cv_prog_CC 22472if test -n "$CC"; then 22473 { echo "$as_me:$LINENO: result: $CC" >&5 22474echo "${ECHO_T}$CC" >&6; } 22475else 22476 { echo "$as_me:$LINENO: result: no" >&5 22477echo "${ECHO_T}no" >&6; } 22478fi 22479 22480 22481fi 22482if test -z "$CC"; then 22483 if test -n "$ac_tool_prefix"; then 22484 for ac_prog in cl.exe 22485 do 22486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 22487set dummy $ac_tool_prefix$ac_prog; ac_word=$2 22488{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22490if test "${ac_cv_prog_CC+set}" = set; then 22491 echo $ECHO_N "(cached) $ECHO_C" >&6 22492else 22493 if test -n "$CC"; then 22494 ac_cv_prog_CC="$CC" # Let the user override the test. 22495else 22496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22497for as_dir in $PATH 22498do 22499 IFS=$as_save_IFS 22500 test -z "$as_dir" && as_dir=. 22501 for ac_exec_ext in '' $ac_executable_extensions; do 22502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 22504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22505 break 2 22506 fi 22507done 22508done 22509IFS=$as_save_IFS 22510 22511fi 22512fi 22513CC=$ac_cv_prog_CC 22514if test -n "$CC"; then 22515 { echo "$as_me:$LINENO: result: $CC" >&5 22516echo "${ECHO_T}$CC" >&6; } 22517else 22518 { echo "$as_me:$LINENO: result: no" >&5 22519echo "${ECHO_T}no" >&6; } 22520fi 22521 22522 22523 test -n "$CC" && break 22524 done 22525fi 22526if test -z "$CC"; then 22527 ac_ct_CC=$CC 22528 for ac_prog in cl.exe 22529do 22530 # Extract the first word of "$ac_prog", so it can be a program name with args. 22531set dummy $ac_prog; ac_word=$2 22532{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 22535 echo $ECHO_N "(cached) $ECHO_C" >&6 22536else 22537 if test -n "$ac_ct_CC"; then 22538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 22539else 22540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22541for as_dir in $PATH 22542do 22543 IFS=$as_save_IFS 22544 test -z "$as_dir" && as_dir=. 22545 for ac_exec_ext in '' $ac_executable_extensions; do 22546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22547 ac_cv_prog_ac_ct_CC="$ac_prog" 22548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22549 break 2 22550 fi 22551done 22552done 22553IFS=$as_save_IFS 22554 22555fi 22556fi 22557ac_ct_CC=$ac_cv_prog_ac_ct_CC 22558if test -n "$ac_ct_CC"; then 22559 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 22560echo "${ECHO_T}$ac_ct_CC" >&6; } 22561else 22562 { echo "$as_me:$LINENO: result: no" >&5 22563echo "${ECHO_T}no" >&6; } 22564fi 22565 22566 22567 test -n "$ac_ct_CC" && break 22568done 22569 22570 if test "x$ac_ct_CC" = x; then 22571 CC="" 22572 else 22573 case $cross_compiling:$ac_tool_warned in 22574yes:) 22575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 22576whose name does not start with the host triplet. If you think this 22577configuration is useful to you, please write to autoconf@gnu.org." >&5 22578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 22579whose name does not start with the host triplet. If you think this 22580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 22581ac_tool_warned=yes ;; 22582esac 22583 CC=$ac_ct_CC 22584 fi 22585fi 22586 22587fi 22588 22589 22590test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 22591See \`config.log' for more details." >&5 22592echo "$as_me: error: no acceptable C compiler found in \$PATH 22593See \`config.log' for more details." >&2;} 22594 { (exit 1); exit 1; }; } 22595 22596# Provide some information about the compiler. 22597echo "$as_me:$LINENO: checking for C compiler version" >&5 22598ac_compiler=`set X $ac_compile; echo $2` 22599{ (ac_try="$ac_compiler --version >&5" 22600case "(($ac_try" in 22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22602 *) ac_try_echo=$ac_try;; 22603esac 22604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22605 (eval "$ac_compiler --version >&5") 2>&5 22606 ac_status=$? 22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22608 (exit $ac_status); } 22609{ (ac_try="$ac_compiler -v >&5" 22610case "(($ac_try" in 22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22612 *) ac_try_echo=$ac_try;; 22613esac 22614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22615 (eval "$ac_compiler -v >&5") 2>&5 22616 ac_status=$? 22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22618 (exit $ac_status); } 22619{ (ac_try="$ac_compiler -V >&5" 22620case "(($ac_try" in 22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22622 *) ac_try_echo=$ac_try;; 22623esac 22624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22625 (eval "$ac_compiler -V >&5") 2>&5 22626 ac_status=$? 22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22628 (exit $ac_status); } 22629 22630{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 22631echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 22632if test "${ac_cv_c_compiler_gnu+set}" = set; then 22633 echo $ECHO_N "(cached) $ECHO_C" >&6 22634else 22635 cat >conftest.$ac_ext <<_ACEOF 22636/* confdefs.h. */ 22637_ACEOF 22638cat confdefs.h >>conftest.$ac_ext 22639cat >>conftest.$ac_ext <<_ACEOF 22640/* end confdefs.h. */ 22641 22642int 22643main () 22644{ 22645#ifndef __GNUC__ 22646 choke me 22647#endif 22648 22649 ; 22650 return 0; 22651} 22652_ACEOF 22653rm -f conftest.$ac_objext 22654if { (ac_try="$ac_compile" 22655case "(($ac_try" in 22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22657 *) ac_try_echo=$ac_try;; 22658esac 22659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22660 (eval "$ac_compile") 2>conftest.er1 22661 ac_status=$? 22662 grep -v '^ *+' conftest.er1 >conftest.err 22663 rm -f conftest.er1 22664 cat conftest.err >&5 22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22666 (exit $ac_status); } && { 22667 test -z "$ac_c_werror_flag" || 22668 test ! -s conftest.err 22669 } && test -s conftest.$ac_objext; then 22670 ac_compiler_gnu=yes 22671else 22672 echo "$as_me: failed program was:" >&5 22673sed 's/^/| /' conftest.$ac_ext >&5 22674 22675 ac_compiler_gnu=no 22676fi 22677 22678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22679ac_cv_c_compiler_gnu=$ac_compiler_gnu 22680 22681fi 22682{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 22683echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 22684GCC=`test $ac_compiler_gnu = yes && echo yes` 22685ac_test_CFLAGS=${CFLAGS+set} 22686ac_save_CFLAGS=$CFLAGS 22687{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 22688echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 22689if test "${ac_cv_prog_cc_g+set}" = set; then 22690 echo $ECHO_N "(cached) $ECHO_C" >&6 22691else 22692 ac_save_c_werror_flag=$ac_c_werror_flag 22693 ac_c_werror_flag=yes 22694 ac_cv_prog_cc_g=no 22695 CFLAGS="-g" 22696 cat >conftest.$ac_ext <<_ACEOF 22697/* confdefs.h. */ 22698_ACEOF 22699cat confdefs.h >>conftest.$ac_ext 22700cat >>conftest.$ac_ext <<_ACEOF 22701/* end confdefs.h. */ 22702 22703int 22704main () 22705{ 22706 22707 ; 22708 return 0; 22709} 22710_ACEOF 22711rm -f conftest.$ac_objext 22712if { (ac_try="$ac_compile" 22713case "(($ac_try" in 22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22715 *) ac_try_echo=$ac_try;; 22716esac 22717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22718 (eval "$ac_compile") 2>conftest.er1 22719 ac_status=$? 22720 grep -v '^ *+' conftest.er1 >conftest.err 22721 rm -f conftest.er1 22722 cat conftest.err >&5 22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22724 (exit $ac_status); } && { 22725 test -z "$ac_c_werror_flag" || 22726 test ! -s conftest.err 22727 } && test -s conftest.$ac_objext; then 22728 ac_cv_prog_cc_g=yes 22729else 22730 echo "$as_me: failed program was:" >&5 22731sed 's/^/| /' conftest.$ac_ext >&5 22732 22733 CFLAGS="" 22734 cat >conftest.$ac_ext <<_ACEOF 22735/* confdefs.h. */ 22736_ACEOF 22737cat confdefs.h >>conftest.$ac_ext 22738cat >>conftest.$ac_ext <<_ACEOF 22739/* end confdefs.h. */ 22740 22741int 22742main () 22743{ 22744 22745 ; 22746 return 0; 22747} 22748_ACEOF 22749rm -f conftest.$ac_objext 22750if { (ac_try="$ac_compile" 22751case "(($ac_try" in 22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22753 *) ac_try_echo=$ac_try;; 22754esac 22755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22756 (eval "$ac_compile") 2>conftest.er1 22757 ac_status=$? 22758 grep -v '^ *+' conftest.er1 >conftest.err 22759 rm -f conftest.er1 22760 cat conftest.err >&5 22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22762 (exit $ac_status); } && { 22763 test -z "$ac_c_werror_flag" || 22764 test ! -s conftest.err 22765 } && test -s conftest.$ac_objext; then 22766 : 22767else 22768 echo "$as_me: failed program was:" >&5 22769sed 's/^/| /' conftest.$ac_ext >&5 22770 22771 ac_c_werror_flag=$ac_save_c_werror_flag 22772 CFLAGS="-g" 22773 cat >conftest.$ac_ext <<_ACEOF 22774/* confdefs.h. */ 22775_ACEOF 22776cat confdefs.h >>conftest.$ac_ext 22777cat >>conftest.$ac_ext <<_ACEOF 22778/* end confdefs.h. */ 22779 22780int 22781main () 22782{ 22783 22784 ; 22785 return 0; 22786} 22787_ACEOF 22788rm -f conftest.$ac_objext 22789if { (ac_try="$ac_compile" 22790case "(($ac_try" in 22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22792 *) ac_try_echo=$ac_try;; 22793esac 22794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22795 (eval "$ac_compile") 2>conftest.er1 22796 ac_status=$? 22797 grep -v '^ *+' conftest.er1 >conftest.err 22798 rm -f conftest.er1 22799 cat conftest.err >&5 22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22801 (exit $ac_status); } && { 22802 test -z "$ac_c_werror_flag" || 22803 test ! -s conftest.err 22804 } && test -s conftest.$ac_objext; then 22805 ac_cv_prog_cc_g=yes 22806else 22807 echo "$as_me: failed program was:" >&5 22808sed 's/^/| /' conftest.$ac_ext >&5 22809 22810 22811fi 22812 22813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22814fi 22815 22816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22817fi 22818 22819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22820 ac_c_werror_flag=$ac_save_c_werror_flag 22821fi 22822{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 22823echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 22824if test "$ac_test_CFLAGS" = set; then 22825 CFLAGS=$ac_save_CFLAGS 22826elif test $ac_cv_prog_cc_g = yes; then 22827 if test "$GCC" = yes; then 22828 CFLAGS="-g -O2" 22829 else 22830 CFLAGS="-g" 22831 fi 22832else 22833 if test "$GCC" = yes; then 22834 CFLAGS="-O2" 22835 else 22836 CFLAGS= 22837 fi 22838fi 22839{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 22840echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 22841if test "${ac_cv_prog_cc_c89+set}" = set; then 22842 echo $ECHO_N "(cached) $ECHO_C" >&6 22843else 22844 ac_cv_prog_cc_c89=no 22845ac_save_CC=$CC 22846cat >conftest.$ac_ext <<_ACEOF 22847/* confdefs.h. */ 22848_ACEOF 22849cat confdefs.h >>conftest.$ac_ext 22850cat >>conftest.$ac_ext <<_ACEOF 22851/* end confdefs.h. */ 22852#include <stdarg.h> 22853#include <stdio.h> 22854#include <sys/types.h> 22855#include <sys/stat.h> 22856/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 22857struct buf { int x; }; 22858FILE * (*rcsopen) (struct buf *, struct stat *, int); 22859static char *e (p, i) 22860 char **p; 22861 int i; 22862{ 22863 return p[i]; 22864} 22865static char *f (char * (*g) (char **, int), char **p, ...) 22866{ 22867 char *s; 22868 va_list v; 22869 va_start (v,p); 22870 s = g (p, va_arg (v,int)); 22871 va_end (v); 22872 return s; 22873} 22874 22875/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 22876 function prototypes and stuff, but not '\xHH' hex character constants. 22877 These don't provoke an error unfortunately, instead are silently treated 22878 as 'x'. The following induces an error, until -std is added to get 22879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 22880 array size at least. It's necessary to write '\x00'==0 to get something 22881 that's true only with -std. */ 22882int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 22883 22884/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 22885 inside strings and character constants. */ 22886#define FOO(x) 'x' 22887int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 22888 22889int test (int i, double x); 22890struct s1 {int (*f) (int a);}; 22891struct s2 {int (*f) (double a);}; 22892int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 22893int argc; 22894char **argv; 22895int 22896main () 22897{ 22898return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 22899 ; 22900 return 0; 22901} 22902_ACEOF 22903for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 22904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 22905do 22906 CC="$ac_save_CC $ac_arg" 22907 rm -f conftest.$ac_objext 22908if { (ac_try="$ac_compile" 22909case "(($ac_try" in 22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22911 *) ac_try_echo=$ac_try;; 22912esac 22913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22914 (eval "$ac_compile") 2>conftest.er1 22915 ac_status=$? 22916 grep -v '^ *+' conftest.er1 >conftest.err 22917 rm -f conftest.er1 22918 cat conftest.err >&5 22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22920 (exit $ac_status); } && { 22921 test -z "$ac_c_werror_flag" || 22922 test ! -s conftest.err 22923 } && test -s conftest.$ac_objext; then 22924 ac_cv_prog_cc_c89=$ac_arg 22925else 22926 echo "$as_me: failed program was:" >&5 22927sed 's/^/| /' conftest.$ac_ext >&5 22928 22929 22930fi 22931 22932rm -f core conftest.err conftest.$ac_objext 22933 test "x$ac_cv_prog_cc_c89" != "xno" && break 22934done 22935rm -f conftest.$ac_ext 22936CC=$ac_save_CC 22937 22938fi 22939# AC_CACHE_VAL 22940case "x$ac_cv_prog_cc_c89" in 22941 x) 22942 { echo "$as_me:$LINENO: result: none needed" >&5 22943echo "${ECHO_T}none needed" >&6; } ;; 22944 xno) 22945 { echo "$as_me:$LINENO: result: unsupported" >&5 22946echo "${ECHO_T}unsupported" >&6; } ;; 22947 *) 22948 CC="$CC $ac_cv_prog_cc_c89" 22949 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 22950echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 22951esac 22952 22953 22954ac_ext=c 22955ac_cpp='$CPP $CPPFLAGS' 22956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22958ac_compiler_gnu=$ac_cv_c_compiler_gnu 22959 22960depcc="$CC" am_compiler_list= 22961 22962{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 22963echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 22964if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 22965 echo $ECHO_N "(cached) $ECHO_C" >&6 22966else 22967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 22968 # We make a subdir and do the tests there. Otherwise we can end up 22969 # making bogus files that we don't know about and never remove. For 22970 # instance it was reported that on HP-UX the gcc test will end up 22971 # making a dummy file named `D' -- because `-MD' means `put the output 22972 # in D'. 22973 mkdir conftest.dir 22974 # Copy depcomp to subdir because otherwise we won't find it if we're 22975 # using a relative directory. 22976 cp "$am_depcomp" conftest.dir 22977 cd conftest.dir 22978 # We will build objects and dependencies in a subdirectory because 22979 # it helps to detect inapplicable dependency modes. For instance 22980 # both Tru64's cc and ICC support -MD to output dependencies as a 22981 # side effect of compilation, but ICC will put the dependencies in 22982 # the current directory while Tru64 will put them in the object 22983 # directory. 22984 mkdir sub 22985 22986 am_cv_CC_dependencies_compiler_type=none 22987 if test "$am_compiler_list" = ""; then 22988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 22989 fi 22990 for depmode in $am_compiler_list; do 22991 # Setup a source with many dependencies, because some compilers 22992 # like to wrap large dependency lists on column 80 (with \), and 22993 # we should not choose a depcomp mode which is confused by this. 22994 # 22995 # We need to recreate these files for each test, as the compiler may 22996 # overwrite some of them when testing with obscure command lines. 22997 # This happens at least with the AIX C compiler. 22998 : > sub/conftest.c 22999 for i in 1 2 3 4 5 6; do 23000 echo '#include "conftst'$i'.h"' >> sub/conftest.c 23001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 23002 # Solaris 8's {/usr,}/bin/sh. 23003 touch sub/conftst$i.h 23004 done 23005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 23006 23007 case $depmode in 23008 nosideeffect) 23009 # after this tag, mechanisms are not by side-effect, so they'll 23010 # only be used when explicitly requested 23011 if test "x$enable_dependency_tracking" = xyes; then 23012 continue 23013 else 23014 break 23015 fi 23016 ;; 23017 none) break ;; 23018 esac 23019 # We check with `-c' and `-o' for the sake of the "dashmstdout" 23020 # mode. It turns out that the SunPro C++ compiler does not properly 23021 # handle `-M -o', and we need to detect this. 23022 if depmode=$depmode \ 23023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 23024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 23025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 23026 >/dev/null 2>conftest.err && 23027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 23028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 23029 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 23030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 23031 # icc doesn't choke on unknown options, it will just issue warnings 23032 # or remarks (even with -Werror). So we grep stderr for any message 23033 # that says an option was ignored or not supported. 23034 # When given -MP, icc 7.0 and 7.1 complain thusly: 23035 # icc: Command line warning: ignoring option '-M'; no argument required 23036 # The diagnosis changed in icc 8.0: 23037 # icc: Command line remark: option '-MP' not supported 23038 if (grep 'ignoring option' conftest.err || 23039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 23040 am_cv_CC_dependencies_compiler_type=$depmode 23041 break 23042 fi 23043 fi 23044 done 23045 23046 cd .. 23047 rm -rf conftest.dir 23048else 23049 am_cv_CC_dependencies_compiler_type=none 23050fi 23051 23052fi 23053{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 23054echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 23055CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 23056 23057 if 23058 test "x$enable_dependency_tracking" != xno \ 23059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 23060 am__fastdepCC_TRUE= 23061 am__fastdepCC_FALSE='#' 23062else 23063 am__fastdepCC_TRUE='#' 23064 am__fastdepCC_FALSE= 23065fi 23066 23067 23068ac_ext=cpp 23069ac_cpp='$CXXCPP $CPPFLAGS' 23070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23073 23074 23075{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 23076echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 23077if test "${ac_cv_c_const+set}" = set; then 23078 echo $ECHO_N "(cached) $ECHO_C" >&6 23079else 23080 cat >conftest.$ac_ext <<_ACEOF 23081/* confdefs.h. */ 23082_ACEOF 23083cat confdefs.h >>conftest.$ac_ext 23084cat >>conftest.$ac_ext <<_ACEOF 23085/* end confdefs.h. */ 23086 23087int 23088main () 23089{ 23090/* FIXME: Include the comments suggested by Paul. */ 23091#ifndef __cplusplus 23092 /* Ultrix mips cc rejects this. */ 23093 typedef int charset[2]; 23094 const charset cs; 23095 /* SunOS 4.1.1 cc rejects this. */ 23096 char const *const *pcpcc; 23097 char **ppc; 23098 /* NEC SVR4.0.2 mips cc rejects this. */ 23099 struct point {int x, y;}; 23100 static struct point const zero = {0,0}; 23101 /* AIX XL C 1.02.0.0 rejects this. 23102 It does not let you subtract one const X* pointer from another in 23103 an arm of an if-expression whose if-part is not a constant 23104 expression */ 23105 const char *g = "string"; 23106 pcpcc = &g + (g ? g-g : 0); 23107 /* HPUX 7.0 cc rejects these. */ 23108 ++pcpcc; 23109 ppc = (char**) pcpcc; 23110 pcpcc = (char const *const *) ppc; 23111 { /* SCO 3.2v4 cc rejects this. */ 23112 char *t; 23113 char const *s = 0 ? (char *) 0 : (char const *) 0; 23114 23115 *t++ = 0; 23116 if (s) return 0; 23117 } 23118 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23119 int x[] = {25, 17}; 23120 const int *foo = &x[0]; 23121 ++foo; 23122 } 23123 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23124 typedef const int *iptr; 23125 iptr p = 0; 23126 ++p; 23127 } 23128 { /* AIX XL C 1.02.0.0 rejects this saying 23129 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23130 struct s { int j; const int *ap[3]; }; 23131 struct s *b; b->j = 5; 23132 } 23133 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23134 const int foo = 10; 23135 if (!foo) return 0; 23136 } 23137 return !cs[0] && !zero.x; 23138#endif 23139 23140 ; 23141 return 0; 23142} 23143_ACEOF 23144rm -f conftest.$ac_objext 23145if { (ac_try="$ac_compile" 23146case "(($ac_try" in 23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23148 *) ac_try_echo=$ac_try;; 23149esac 23150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23151 (eval "$ac_compile") 2>conftest.er1 23152 ac_status=$? 23153 grep -v '^ *+' conftest.er1 >conftest.err 23154 rm -f conftest.er1 23155 cat conftest.err >&5 23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23157 (exit $ac_status); } && { 23158 test -z "$ac_cxx_werror_flag" || 23159 test ! -s conftest.err 23160 } && test -s conftest.$ac_objext; then 23161 ac_cv_c_const=yes 23162else 23163 echo "$as_me: failed program was:" >&5 23164sed 's/^/| /' conftest.$ac_ext >&5 23165 23166 ac_cv_c_const=no 23167fi 23168 23169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23170fi 23171{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 23172echo "${ECHO_T}$ac_cv_c_const" >&6; } 23173if test $ac_cv_c_const = no; then 23174 23175cat >>confdefs.h <<\_ACEOF 23176#define const 23177_ACEOF 23178 23179fi 23180 23181{ echo "$as_me:$LINENO: checking for size_t" >&5 23182echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 23183if test "${ac_cv_type_size_t+set}" = set; then 23184 echo $ECHO_N "(cached) $ECHO_C" >&6 23185else 23186 cat >conftest.$ac_ext <<_ACEOF 23187/* confdefs.h. */ 23188_ACEOF 23189cat confdefs.h >>conftest.$ac_ext 23190cat >>conftest.$ac_ext <<_ACEOF 23191/* end confdefs.h. */ 23192$ac_includes_default 23193typedef size_t ac__type_new_; 23194int 23195main () 23196{ 23197if ((ac__type_new_ *) 0) 23198 return 0; 23199if (sizeof (ac__type_new_)) 23200 return 0; 23201 ; 23202 return 0; 23203} 23204_ACEOF 23205rm -f conftest.$ac_objext 23206if { (ac_try="$ac_compile" 23207case "(($ac_try" in 23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23209 *) ac_try_echo=$ac_try;; 23210esac 23211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23212 (eval "$ac_compile") 2>conftest.er1 23213 ac_status=$? 23214 grep -v '^ *+' conftest.er1 >conftest.err 23215 rm -f conftest.er1 23216 cat conftest.err >&5 23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23218 (exit $ac_status); } && { 23219 test -z "$ac_cxx_werror_flag" || 23220 test ! -s conftest.err 23221 } && test -s conftest.$ac_objext; then 23222 ac_cv_type_size_t=yes 23223else 23224 echo "$as_me: failed program was:" >&5 23225sed 's/^/| /' conftest.$ac_ext >&5 23226 23227 ac_cv_type_size_t=no 23228fi 23229 23230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23231fi 23232{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 23233echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 23234if test $ac_cv_type_size_t = yes; then 23235 : 23236else 23237 23238cat >>confdefs.h <<_ACEOF 23239#define size_t unsigned int 23240_ACEOF 23241 23242fi 23243 23244 23245# Checks for libraries. 23246 23247SCIM_VERSION=1.4.0 23248UIM_VERSION=1.1.0 23249 23250 23251 23252if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23253 if test -n "$ac_tool_prefix"; then 23254 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23255set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23258if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 23259 echo $ECHO_N "(cached) $ECHO_C" >&6 23260else 23261 case $PKG_CONFIG in 23262 [\\/]* | ?:[\\/]*) 23263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23264 ;; 23265 *) 23266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23267for as_dir in $PATH 23268do 23269 IFS=$as_save_IFS 23270 test -z "$as_dir" && as_dir=. 23271 for ac_exec_ext in '' $ac_executable_extensions; do 23272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23275 break 2 23276 fi 23277done 23278done 23279IFS=$as_save_IFS 23280 23281 ;; 23282esac 23283fi 23284PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23285if test -n "$PKG_CONFIG"; then 23286 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 23287echo "${ECHO_T}$PKG_CONFIG" >&6; } 23288else 23289 { echo "$as_me:$LINENO: result: no" >&5 23290echo "${ECHO_T}no" >&6; } 23291fi 23292 23293 23294fi 23295if test -z "$ac_cv_path_PKG_CONFIG"; then 23296 ac_pt_PKG_CONFIG=$PKG_CONFIG 23297 # Extract the first word of "pkg-config", so it can be a program name with args. 23298set dummy pkg-config; ac_word=$2 23299{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23301if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 23302 echo $ECHO_N "(cached) $ECHO_C" >&6 23303else 23304 case $ac_pt_PKG_CONFIG in 23305 [\\/]* | ?:[\\/]*) 23306 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23307 ;; 23308 *) 23309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23310for as_dir in $PATH 23311do 23312 IFS=$as_save_IFS 23313 test -z "$as_dir" && as_dir=. 23314 for ac_exec_ext in '' $ac_executable_extensions; do 23315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23316 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23318 break 2 23319 fi 23320done 23321done 23322IFS=$as_save_IFS 23323 23324 ;; 23325esac 23326fi 23327ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23328if test -n "$ac_pt_PKG_CONFIG"; then 23329 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 23330echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 23331else 23332 { echo "$as_me:$LINENO: result: no" >&5 23333echo "${ECHO_T}no" >&6; } 23334fi 23335 23336 if test "x$ac_pt_PKG_CONFIG" = x; then 23337 PKG_CONFIG="" 23338 else 23339 case $cross_compiling:$ac_tool_warned in 23340yes:) 23341{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 23342whose name does not start with the host triplet. If you think this 23343configuration is useful to you, please write to autoconf@gnu.org." >&5 23344echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 23345whose name does not start with the host triplet. If you think this 23346configuration is useful to you, please write to autoconf@gnu.org." >&2;} 23347ac_tool_warned=yes ;; 23348esac 23349 PKG_CONFIG=$ac_pt_PKG_CONFIG 23350 fi 23351else 23352 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23353fi 23354 23355fi 23356if test -n "$PKG_CONFIG"; then 23357 _pkg_min_version=0.9.0 23358 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 23359echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 23360 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23361 { echo "$as_me:$LINENO: result: yes" >&5 23362echo "${ECHO_T}yes" >&6; } 23363 else 23364 { echo "$as_me:$LINENO: result: no" >&5 23365echo "${ECHO_T}no" >&6; } 23366 PKG_CONFIG="" 23367 fi 23368 23369fi 23370 23371pkg_failed=no 23372{ echo "$as_me:$LINENO: checking for SCIM" >&5 23373echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; } 23374 23375if test -n "$PKG_CONFIG"; then 23376 if test -n "$SCIM_CFLAGS"; then 23377 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS" 23378 else 23379 if test -n "$PKG_CONFIG" && \ 23380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5 23381 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5 23382 ac_status=$? 23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23384 (exit $ac_status); }; then 23385 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null` 23386else 23387 pkg_failed=yes 23388fi 23389 fi 23390else 23391 pkg_failed=untried 23392fi 23393if test -n "$PKG_CONFIG"; then 23394 if test -n "$SCIM_LIBS"; then 23395 pkg_cv_SCIM_LIBS="$SCIM_LIBS" 23396 else 23397 if test -n "$PKG_CONFIG" && \ 23398 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5 23399 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5 23400 ac_status=$? 23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23402 (exit $ac_status); }; then 23403 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null` 23404else 23405 pkg_failed=yes 23406fi 23407 fi 23408else 23409 pkg_failed=untried 23410fi 23411 23412 23413 23414if test $pkg_failed = yes; then 23415 23416if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23417 _pkg_short_errors_supported=yes 23418else 23419 _pkg_short_errors_supported=no 23420fi 23421 if test $_pkg_short_errors_supported = yes; then 23422 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"` 23423 else 23424 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"` 23425 fi 23426 # Put the nasty error message in config.log where it belongs 23427 echo "$SCIM_PKG_ERRORS" >&5 23428 23429 { { echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met: 23430 23431$SCIM_PKG_ERRORS 23432 23433Consider adjusting the PKG_CONFIG_PATH environment variable if you 23434installed software in a non-standard prefix. 23435 23436Alternatively, you may set the environment variables SCIM_CFLAGS 23437and SCIM_LIBS to avoid the need to call pkg-config. 23438See the pkg-config man page for more details. 23439" >&5 23440echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met: 23441 23442$SCIM_PKG_ERRORS 23443 23444Consider adjusting the PKG_CONFIG_PATH environment variable if you 23445installed software in a non-standard prefix. 23446 23447Alternatively, you may set the environment variables SCIM_CFLAGS 23448and SCIM_LIBS to avoid the need to call pkg-config. 23449See the pkg-config man page for more details. 23450" >&2;} 23451 { (exit 1); exit 1; }; } 23452elif test $pkg_failed = untried; then 23453 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 23454is in your PATH or set the PKG_CONFIG environment variable to the full 23455path to pkg-config. 23456 23457Alternatively, you may set the environment variables SCIM_CFLAGS 23458and SCIM_LIBS to avoid the need to call pkg-config. 23459See the pkg-config man page for more details. 23460 23461To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 23462See \`config.log' for more details." >&5 23463echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 23464is in your PATH or set the PKG_CONFIG environment variable to the full 23465path to pkg-config. 23466 23467Alternatively, you may set the environment variables SCIM_CFLAGS 23468and SCIM_LIBS to avoid the need to call pkg-config. 23469See the pkg-config man page for more details. 23470 23471To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 23472See \`config.log' for more details." >&2;} 23473 { (exit 1); exit 1; }; } 23474else 23475 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS 23476 SCIM_LIBS=$pkg_cv_SCIM_LIBS 23477 { echo "$as_me:$LINENO: result: yes" >&5 23478echo "${ECHO_T}yes" >&6; } 23479 : 23480fi 23481 23482pkg_failed=no 23483{ echo "$as_me:$LINENO: checking for UIM" >&5 23484echo $ECHO_N "checking for UIM... $ECHO_C" >&6; } 23485 23486if test -n "$PKG_CONFIG"; then 23487 if test -n "$UIM_CFLAGS"; then 23488 pkg_cv_UIM_CFLAGS="$UIM_CFLAGS" 23489 else 23490 if test -n "$PKG_CONFIG" && \ 23491 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uim >= \$UIM_VERSION\"") >&5 23492 ($PKG_CONFIG --exists --print-errors "uim >= $UIM_VERSION") 2>&5 23493 ac_status=$? 23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23495 (exit $ac_status); }; then 23496 pkg_cv_UIM_CFLAGS=`$PKG_CONFIG --cflags "uim >= $UIM_VERSION" 2>/dev/null` 23497else 23498 pkg_failed=yes 23499fi 23500 fi 23501else 23502 pkg_failed=untried 23503fi 23504if test -n "$PKG_CONFIG"; then 23505 if test -n "$UIM_LIBS"; then 23506 pkg_cv_UIM_LIBS="$UIM_LIBS" 23507 else 23508 if test -n "$PKG_CONFIG" && \ 23509 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uim >= \$UIM_VERSION\"") >&5 23510 ($PKG_CONFIG --exists --print-errors "uim >= $UIM_VERSION") 2>&5 23511 ac_status=$? 23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23513 (exit $ac_status); }; then 23514 pkg_cv_UIM_LIBS=`$PKG_CONFIG --libs "uim >= $UIM_VERSION" 2>/dev/null` 23515else 23516 pkg_failed=yes 23517fi 23518 fi 23519else 23520 pkg_failed=untried 23521fi 23522 23523 23524 23525if test $pkg_failed = yes; then 23526 23527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23528 _pkg_short_errors_supported=yes 23529else 23530 _pkg_short_errors_supported=no 23531fi 23532 if test $_pkg_short_errors_supported = yes; then 23533 UIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "uim >= $UIM_VERSION"` 23534 else 23535 UIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "uim >= $UIM_VERSION"` 23536 fi 23537 # Put the nasty error message in config.log where it belongs 23538 echo "$UIM_PKG_ERRORS" >&5 23539 23540 { { echo "$as_me:$LINENO: error: Package requirements (uim >= $UIM_VERSION) were not met: 23541 23542$UIM_PKG_ERRORS 23543 23544Consider adjusting the PKG_CONFIG_PATH environment variable if you 23545installed software in a non-standard prefix. 23546 23547Alternatively, you may set the environment variables UIM_CFLAGS 23548and UIM_LIBS to avoid the need to call pkg-config. 23549See the pkg-config man page for more details. 23550" >&5 23551echo "$as_me: error: Package requirements (uim >= $UIM_VERSION) were not met: 23552 23553$UIM_PKG_ERRORS 23554 23555Consider adjusting the PKG_CONFIG_PATH environment variable if you 23556installed software in a non-standard prefix. 23557 23558Alternatively, you may set the environment variables UIM_CFLAGS 23559and UIM_LIBS to avoid the need to call pkg-config. 23560See the pkg-config man page for more details. 23561" >&2;} 23562 { (exit 1); exit 1; }; } 23563elif test $pkg_failed = untried; then 23564 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 23565is in your PATH or set the PKG_CONFIG environment variable to the full 23566path to pkg-config. 23567 23568Alternatively, you may set the environment variables UIM_CFLAGS 23569and UIM_LIBS to avoid the need to call pkg-config. 23570See the pkg-config man page for more details. 23571 23572To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 23573See \`config.log' for more details." >&5 23574echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 23575is in your PATH or set the PKG_CONFIG environment variable to the full 23576path to pkg-config. 23577 23578Alternatively, you may set the environment variables UIM_CFLAGS 23579and UIM_LIBS to avoid the need to call pkg-config. 23580See the pkg-config man page for more details. 23581 23582To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 23583See \`config.log' for more details." >&2;} 23584 { (exit 1); exit 1; }; } 23585else 23586 UIM_CFLAGS=$pkg_cv_UIM_CFLAGS 23587 UIM_LIBS=$pkg_cv_UIM_LIBS 23588 { echo "$as_me:$LINENO: result: yes" >&5 23589echo "${ECHO_T}yes" >&6; } 23590 : 23591fi 23592 23593 23594 23595 23596# Checks for header files. 23597 23598{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 23599echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 23600if test "${ac_cv_header_stdc+set}" = set; then 23601 echo $ECHO_N "(cached) $ECHO_C" >&6 23602else 23603 cat >conftest.$ac_ext <<_ACEOF 23604/* confdefs.h. */ 23605_ACEOF 23606cat confdefs.h >>conftest.$ac_ext 23607cat >>conftest.$ac_ext <<_ACEOF 23608/* end confdefs.h. */ 23609#include <stdlib.h> 23610#include <stdarg.h> 23611#include <string.h> 23612#include <float.h> 23613 23614int 23615main () 23616{ 23617 23618 ; 23619 return 0; 23620} 23621_ACEOF 23622rm -f conftest.$ac_objext 23623if { (ac_try="$ac_compile" 23624case "(($ac_try" in 23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23626 *) ac_try_echo=$ac_try;; 23627esac 23628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23629 (eval "$ac_compile") 2>conftest.er1 23630 ac_status=$? 23631 grep -v '^ *+' conftest.er1 >conftest.err 23632 rm -f conftest.er1 23633 cat conftest.err >&5 23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23635 (exit $ac_status); } && { 23636 test -z "$ac_cxx_werror_flag" || 23637 test ! -s conftest.err 23638 } && test -s conftest.$ac_objext; then 23639 ac_cv_header_stdc=yes 23640else 23641 echo "$as_me: failed program was:" >&5 23642sed 's/^/| /' conftest.$ac_ext >&5 23643 23644 ac_cv_header_stdc=no 23645fi 23646 23647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23648 23649if test $ac_cv_header_stdc = yes; then 23650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23651 cat >conftest.$ac_ext <<_ACEOF 23652/* confdefs.h. */ 23653_ACEOF 23654cat confdefs.h >>conftest.$ac_ext 23655cat >>conftest.$ac_ext <<_ACEOF 23656/* end confdefs.h. */ 23657#include <string.h> 23658 23659_ACEOF 23660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23661 $EGREP "memchr" >/dev/null 2>&1; then 23662 : 23663else 23664 ac_cv_header_stdc=no 23665fi 23666rm -f conftest* 23667 23668fi 23669 23670if test $ac_cv_header_stdc = yes; then 23671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23672 cat >conftest.$ac_ext <<_ACEOF 23673/* confdefs.h. */ 23674_ACEOF 23675cat confdefs.h >>conftest.$ac_ext 23676cat >>conftest.$ac_ext <<_ACEOF 23677/* end confdefs.h. */ 23678#include <stdlib.h> 23679 23680_ACEOF 23681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23682 $EGREP "free" >/dev/null 2>&1; then 23683 : 23684else 23685 ac_cv_header_stdc=no 23686fi 23687rm -f conftest* 23688 23689fi 23690 23691if test $ac_cv_header_stdc = yes; then 23692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23693 if test "$cross_compiling" = yes; then 23694 : 23695else 23696 cat >conftest.$ac_ext <<_ACEOF 23697/* confdefs.h. */ 23698_ACEOF 23699cat confdefs.h >>conftest.$ac_ext 23700cat >>conftest.$ac_ext <<_ACEOF 23701/* end confdefs.h. */ 23702#include <ctype.h> 23703#include <stdlib.h> 23704#if ((' ' & 0x0FF) == 0x020) 23705# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23706# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23707#else 23708# define ISLOWER(c) \ 23709 (('a' <= (c) && (c) <= 'i') \ 23710 || ('j' <= (c) && (c) <= 'r') \ 23711 || ('s' <= (c) && (c) <= 'z')) 23712# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23713#endif 23714 23715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23716int 23717main () 23718{ 23719 int i; 23720 for (i = 0; i < 256; i++) 23721 if (XOR (islower (i), ISLOWER (i)) 23722 || toupper (i) != TOUPPER (i)) 23723 return 2; 23724 return 0; 23725} 23726_ACEOF 23727rm -f conftest$ac_exeext 23728if { (ac_try="$ac_link" 23729case "(($ac_try" in 23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23731 *) ac_try_echo=$ac_try;; 23732esac 23733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23734 (eval "$ac_link") 2>&5 23735 ac_status=$? 23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23738 { (case "(($ac_try" in 23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23740 *) ac_try_echo=$ac_try;; 23741esac 23742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23743 (eval "$ac_try") 2>&5 23744 ac_status=$? 23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23746 (exit $ac_status); }; }; then 23747 : 23748else 23749 echo "$as_me: program exited with status $ac_status" >&5 23750echo "$as_me: failed program was:" >&5 23751sed 's/^/| /' conftest.$ac_ext >&5 23752 23753( exit $ac_status ) 23754ac_cv_header_stdc=no 23755fi 23756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23757fi 23758 23759 23760fi 23761fi 23762{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 23763echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 23764if test $ac_cv_header_stdc = yes; then 23765 23766cat >>confdefs.h <<\_ACEOF 23767#define STDC_HEADERS 1 23768_ACEOF 23769 23770fi 23771 23772 23773# Checks for library functions. 23774 23775 23776# libtool option to control which symbols are exported 23777# right now, symbols starting with _ are not exported 23778LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"' 23779 23780 23781# Extra args. 23782# Check whether --enable-debug was given. 23783if test "${enable_debug+set}" = set; then 23784 enableval=$enable_debug; case "${enableval}" in 23785 yes) debug=yes ;; 23786 no) debug=no ;; 23787 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 23788echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 23789 { (exit 1); exit 1; }; } ;; 23790 esac 23791else 23792 debug=no 23793fi 23794 23795 23796if test "x$debug" = "xyes"; then 23797 test "$cflags_set" = set || CFLAGS="$CFLAGS -g" 23798 test "$cppflags_set" = set || CPPFLAGS="$CXXFLAGS -g" 23799 SCIM_DEBUG_FLAGS="-DENABLE_DEBUG=1" 23800else 23801 SCIM_DEBUG_FLAGS="" 23802fi 23803 23804 23805SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim` 23806SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim` 23807 23808if test "x$SCIM_ICONDIR" = "x"; then 23809 SCIM_ICONDIR=%{datadir}/scim/icons 23810fi 23811 23812if test "x$SCIM_MODULEDIR" = "x"; then 23813 SCIM_MODULEDIR=${libdir}/scim-1.0 23814fi 23815 23816 23817 23818 23819ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile scim-uim.spec" 23820 23821cat >confcache <<\_ACEOF 23822# This file is a shell script that caches the results of configure 23823# tests run on this system so they can be shared between configure 23824# scripts and configure runs, see configure's option --config-cache. 23825# It is not useful on other systems. If it contains results you don't 23826# want to keep, you may remove or edit it. 23827# 23828# config.status only pays attention to the cache file if you give it 23829# the --recheck option to rerun configure. 23830# 23831# `ac_cv_env_foo' variables (set or unset) will be overridden when 23832# loading this file, other *unset* `ac_cv_foo' will be assigned the 23833# following values. 23834 23835_ACEOF 23836 23837# The following way of writing the cache mishandles newlines in values, 23838# but we know of no workaround that is simple, portable, and efficient. 23839# So, we kill variables containing newlines. 23840# Ultrix sh set writes to stderr and can't be redirected directly, 23841# and sets the high bit in the cache file unless we assign to the vars. 23842( 23843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23844 eval ac_val=\$$ac_var 23845 case $ac_val in #( 23846 *${as_nl}*) 23847 case $ac_var in #( 23848 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23849echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23850 esac 23851 case $ac_var in #( 23852 _ | IFS | as_nl) ;; #( 23853 *) $as_unset $ac_var ;; 23854 esac ;; 23855 esac 23856 done 23857 23858 (set) 2>&1 | 23859 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23860 *${as_nl}ac_space=\ *) 23861 # `set' does not quote correctly, so add quotes (double-quote 23862 # substitution turns \\\\ into \\, and sed turns \\ into \). 23863 sed -n \ 23864 "s/'/'\\\\''/g; 23865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23866 ;; #( 23867 *) 23868 # `set' quotes correctly as required by POSIX, so do not add quotes. 23869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23870 ;; 23871 esac | 23872 sort 23873) | 23874 sed ' 23875 /^ac_cv_env_/b end 23876 t clear 23877 :clear 23878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23879 t end 23880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23881 :end' >>confcache 23882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23883 if test -w "$cache_file"; then 23884 test "x$cache_file" != "x/dev/null" && 23885 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23886echo "$as_me: updating cache $cache_file" >&6;} 23887 cat confcache >$cache_file 23888 else 23889 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23890echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23891 fi 23892fi 23893rm -f confcache 23894 23895test "x$prefix" = xNONE && prefix=$ac_default_prefix 23896# Let make expand exec_prefix. 23897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23898 23899DEFS=-DHAVE_CONFIG_H 23900 23901ac_libobjs= 23902ac_ltlibobjs= 23903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23904 # 1. Remove the extension, and $U if already installed. 23905 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23906 ac_i=`echo "$ac_i" | sed "$ac_script"` 23907 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23908 # will be set to the directory where LIBOBJS objects are built. 23909 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23910 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23911done 23912LIBOBJS=$ac_libobjs 23913 23914LTLIBOBJS=$ac_ltlibobjs 23915 23916 23917if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23918 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23919Usually this means the macro was only invoked conditionally." >&5 23920echo "$as_me: error: conditional \"AMDEP\" was never defined. 23921Usually this means the macro was only invoked conditionally." >&2;} 23922 { (exit 1); exit 1; }; } 23923fi 23924if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23925 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23926Usually this means the macro was only invoked conditionally." >&5 23927echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23928Usually this means the macro was only invoked conditionally." >&2;} 23929 { (exit 1); exit 1; }; } 23930fi 23931if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23932 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23933Usually this means the macro was only invoked conditionally." >&5 23934echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23935Usually this means the macro was only invoked conditionally." >&2;} 23936 { (exit 1); exit 1; }; } 23937fi 23938if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 23939 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 23940Usually this means the macro was only invoked conditionally." >&5 23941echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 23942Usually this means the macro was only invoked conditionally." >&2;} 23943 { (exit 1); exit 1; }; } 23944fi 23945if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 23946 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 23947Usually this means the macro was only invoked conditionally." >&5 23948echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 23949Usually this means the macro was only invoked conditionally." >&2;} 23950 { (exit 1); exit 1; }; } 23951fi 23952if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23953 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23954Usually this means the macro was only invoked conditionally." >&5 23955echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23956Usually this means the macro was only invoked conditionally." >&2;} 23957 { (exit 1); exit 1; }; } 23958fi 23959if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23960 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23961Usually this means the macro was only invoked conditionally." >&5 23962echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23963Usually this means the macro was only invoked conditionally." >&2;} 23964 { (exit 1); exit 1; }; } 23965fi 23966 23967: ${CONFIG_STATUS=./config.status} 23968ac_clean_files_save=$ac_clean_files 23969ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23970{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23971echo "$as_me: creating $CONFIG_STATUS" >&6;} 23972cat >$CONFIG_STATUS <<_ACEOF 23973#! $SHELL 23974# Generated by $as_me. 23975# Run this file to recreate the current configuration. 23976# Compiler output produced by configure, useful for debugging 23977# configure, is in config.log if it exists. 23978 23979debug=false 23980ac_cs_recheck=false 23981ac_cs_silent=false 23982SHELL=\${CONFIG_SHELL-$SHELL} 23983_ACEOF 23984 23985cat >>$CONFIG_STATUS <<\_ACEOF 23986## --------------------- ## 23987## M4sh Initialization. ## 23988## --------------------- ## 23989 23990# Be more Bourne compatible 23991DUALCASE=1; export DUALCASE # for MKS sh 23992if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23993 emulate sh 23994 NULLCMD=: 23995 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23996 # is contrary to our usage. Disable this feature. 23997 alias -g '${1+"$@"}'='"$@"' 23998 setopt NO_GLOB_SUBST 23999else 24000 case `(set -o) 2>/dev/null` in 24001 *posix*) set -o posix ;; 24002esac 24003 24004fi 24005 24006 24007 24008 24009# PATH needs CR 24010# Avoid depending upon Character Ranges. 24011as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24012as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24013as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24014as_cr_digits='0123456789' 24015as_cr_alnum=$as_cr_Letters$as_cr_digits 24016 24017# The user is always right. 24018if test "${PATH_SEPARATOR+set}" != set; then 24019 echo "#! /bin/sh" >conf$$.sh 24020 echo "exit 0" >>conf$$.sh 24021 chmod +x conf$$.sh 24022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24023 PATH_SEPARATOR=';' 24024 else 24025 PATH_SEPARATOR=: 24026 fi 24027 rm -f conf$$.sh 24028fi 24029 24030# Support unset when possible. 24031if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 24032 as_unset=unset 24033else 24034 as_unset=false 24035fi 24036 24037 24038# IFS 24039# We need space, tab and new line, in precisely that order. Quoting is 24040# there to prevent editors from complaining about space-tab. 24041# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24042# splitting by setting IFS to empty value.) 24043as_nl=' 24044' 24045IFS=" "" $as_nl" 24046 24047# Find who we are. Look in the path if we contain no directory separator. 24048case $0 in 24049 *[\\/]* ) as_myself=$0 ;; 24050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24051for as_dir in $PATH 24052do 24053 IFS=$as_save_IFS 24054 test -z "$as_dir" && as_dir=. 24055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24056done 24057IFS=$as_save_IFS 24058 24059 ;; 24060esac 24061# We did not find ourselves, most probably we were run as `sh COMMAND' 24062# in which case we are not to be found in the path. 24063if test "x$as_myself" = x; then 24064 as_myself=$0 24065fi 24066if test ! -f "$as_myself"; then 24067 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24068 { (exit 1); exit 1; } 24069fi 24070 24071# Work around bugs in pre-3.0 UWIN ksh. 24072for as_var in ENV MAIL MAILPATH 24073do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 24074done 24075PS1='$ ' 24076PS2='> ' 24077PS4='+ ' 24078 24079# NLS nuisances. 24080for as_var in \ 24081 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 24082 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 24083 LC_TELEPHONE LC_TIME 24084do 24085 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 24086 eval $as_var=C; export $as_var 24087 else 24088 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 24089 fi 24090done 24091 24092# Required to use basename. 24093if expr a : '\(a\)' >/dev/null 2>&1 && 24094 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24095 as_expr=expr 24096else 24097 as_expr=false 24098fi 24099 24100if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24101 as_basename=basename 24102else 24103 as_basename=false 24104fi 24105 24106 24107# Name of the executable. 24108as_me=`$as_basename -- "$0" || 24109$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24110 X"$0" : 'X\(//\)$' \| \ 24111 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24112echo X/"$0" | 24113 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24114 s//\1/ 24115 q 24116 } 24117 /^X\/\(\/\/\)$/{ 24118 s//\1/ 24119 q 24120 } 24121 /^X\/\(\/\).*/{ 24122 s//\1/ 24123 q 24124 } 24125 s/.*/./; q'` 24126 24127# CDPATH. 24128$as_unset CDPATH 24129 24130 24131 24132 as_lineno_1=$LINENO 24133 as_lineno_2=$LINENO 24134 test "x$as_lineno_1" != "x$as_lineno_2" && 24135 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 24136 24137 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24138 # uniformly replaced by the line number. The first 'sed' inserts a 24139 # line-number line after each line using $LINENO; the second 'sed' 24140 # does the real work. The second script uses 'N' to pair each 24141 # line-number line with the line containing $LINENO, and appends 24142 # trailing '-' during substitution so that $LINENO is not a special 24143 # case at line end. 24144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24145 # scripts with optimization help from Paolo Bonzini. Blame Lee 24146 # E. McMahon (1931-1989) for sed's syntax. :-) 24147 sed -n ' 24148 p 24149 /[$]LINENO/= 24150 ' <$as_myself | 24151 sed ' 24152 s/[$]LINENO.*/&-/ 24153 t lineno 24154 b 24155 :lineno 24156 N 24157 :loop 24158 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 24159 t loop 24160 s/-\n.*// 24161 ' >$as_me.lineno && 24162 chmod +x "$as_me.lineno" || 24163 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 24164 { (exit 1); exit 1; }; } 24165 24166 # Don't try to exec as it changes $[0], causing all sort of problems 24167 # (the dirname of $[0] is not the place where we might find the 24168 # original and so on. Autoconf is especially sensitive to this). 24169 . "./$as_me.lineno" 24170 # Exit status is that of the last command. 24171 exit 24172} 24173 24174 24175if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24176 as_dirname=dirname 24177else 24178 as_dirname=false 24179fi 24180 24181ECHO_C= ECHO_N= ECHO_T= 24182case `echo -n x` in 24183-n*) 24184 case `echo 'x\c'` in 24185 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24186 *) ECHO_C='\c';; 24187 esac;; 24188*) 24189 ECHO_N='-n';; 24190esac 24191 24192if expr a : '\(a\)' >/dev/null 2>&1 && 24193 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24194 as_expr=expr 24195else 24196 as_expr=false 24197fi 24198 24199rm -f conf$$ conf$$.exe conf$$.file 24200if test -d conf$$.dir; then 24201 rm -f conf$$.dir/conf$$.file 24202else 24203 rm -f conf$$.dir 24204 mkdir conf$$.dir 24205fi 24206echo >conf$$.file 24207if ln -s conf$$.file conf$$ 2>/dev/null; then 24208 as_ln_s='ln -s' 24209 # ... but there are two gotchas: 24210 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24211 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24212 # In both cases, we have to default to `cp -p'. 24213 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24214 as_ln_s='cp -p' 24215elif ln conf$$.file conf$$ 2>/dev/null; then 24216 as_ln_s=ln 24217else 24218 as_ln_s='cp -p' 24219fi 24220rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24221rmdir conf$$.dir 2>/dev/null 24222 24223if mkdir -p . 2>/dev/null; then 24224 as_mkdir_p=: 24225else 24226 test -d ./-p && rmdir ./-p 24227 as_mkdir_p=false 24228fi 24229 24230if test -x / >/dev/null 2>&1; then 24231 as_test_x='test -x' 24232else 24233 if ls -dL / >/dev/null 2>&1; then 24234 as_ls_L_option=L 24235 else 24236 as_ls_L_option= 24237 fi 24238 as_test_x=' 24239 eval sh -c '\'' 24240 if test -d "$1"; then 24241 test -d "$1/."; 24242 else 24243 case $1 in 24244 -*)set "./$1";; 24245 esac; 24246 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 24247 ???[sx]*):;;*)false;;esac;fi 24248 '\'' sh 24249 ' 24250fi 24251as_executable_p=$as_test_x 24252 24253# Sed expression to map a string onto a valid CPP name. 24254as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24255 24256# Sed expression to map a string onto a valid variable name. 24257as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24258 24259 24260exec 6>&1 24261 24262# Save the log message, to keep $[0] and so on meaningful, and to 24263# report actual input values of CONFIG_FILES etc. instead of their 24264# values after options handling. 24265ac_log=" 24266This file was extended by scim-uim $as_me 0.2.0, which was 24267generated by GNU Autoconf 2.61. Invocation command line was 24268 24269 CONFIG_FILES = $CONFIG_FILES 24270 CONFIG_HEADERS = $CONFIG_HEADERS 24271 CONFIG_LINKS = $CONFIG_LINKS 24272 CONFIG_COMMANDS = $CONFIG_COMMANDS 24273 $ $0 $@ 24274 24275on `(hostname || uname -n) 2>/dev/null | sed 1q` 24276" 24277 24278_ACEOF 24279 24280cat >>$CONFIG_STATUS <<_ACEOF 24281# Files that config.status was made for. 24282config_files="$ac_config_files" 24283config_headers="$ac_config_headers" 24284config_commands="$ac_config_commands" 24285 24286_ACEOF 24287 24288cat >>$CONFIG_STATUS <<\_ACEOF 24289ac_cs_usage="\ 24290\`$as_me' instantiates files from templates according to the 24291current configuration. 24292 24293Usage: $0 [OPTIONS] [FILE]... 24294 24295 -h, --help print this help, then exit 24296 -V, --version print version number and configuration settings, then exit 24297 -q, --quiet do not print progress messages 24298 -d, --debug don't remove temporary files 24299 --recheck update $as_me by reconfiguring in the same conditions 24300 --file=FILE[:TEMPLATE] 24301 instantiate the configuration file FILE 24302 --header=FILE[:TEMPLATE] 24303 instantiate the configuration header FILE 24304 24305Configuration files: 24306$config_files 24307 24308Configuration headers: 24309$config_headers 24310 24311Configuration commands: 24312$config_commands 24313 24314Report bugs to <bug-autoconf@gnu.org>." 24315 24316_ACEOF 24317cat >>$CONFIG_STATUS <<_ACEOF 24318ac_cs_version="\\ 24319scim-uim config.status 0.2.0 24320configured by $0, generated by GNU Autoconf 2.61, 24321 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24322 24323Copyright (C) 2006 Free Software Foundation, Inc. 24324This config.status script is free software; the Free Software Foundation 24325gives unlimited permission to copy, distribute and modify it." 24326 24327ac_pwd='$ac_pwd' 24328srcdir='$srcdir' 24329INSTALL='$INSTALL' 24330MKDIR_P='$MKDIR_P' 24331_ACEOF 24332 24333cat >>$CONFIG_STATUS <<\_ACEOF 24334# If no file are specified by the user, then we need to provide default 24335# value. By we need to know if files were specified by the user. 24336ac_need_defaults=: 24337while test $# != 0 24338do 24339 case $1 in 24340 --*=*) 24341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24343 ac_shift=: 24344 ;; 24345 *) 24346 ac_option=$1 24347 ac_optarg=$2 24348 ac_shift=shift 24349 ;; 24350 esac 24351 24352 case $ac_option in 24353 # Handling of the options. 24354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24355 ac_cs_recheck=: ;; 24356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24357 echo "$ac_cs_version"; exit ;; 24358 --debug | --debu | --deb | --de | --d | -d ) 24359 debug=: ;; 24360 --file | --fil | --fi | --f ) 24361 $ac_shift 24362 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24363 ac_need_defaults=false;; 24364 --header | --heade | --head | --hea ) 24365 $ac_shift 24366 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24367 ac_need_defaults=false;; 24368 --he | --h) 24369 # Conflict between --help and --header 24370 { echo "$as_me: error: ambiguous option: $1 24371Try \`$0 --help' for more information." >&2 24372 { (exit 1); exit 1; }; };; 24373 --help | --hel | -h ) 24374 echo "$ac_cs_usage"; exit ;; 24375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24376 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24377 ac_cs_silent=: ;; 24378 24379 # This is an error. 24380 -*) { echo "$as_me: error: unrecognized option: $1 24381Try \`$0 --help' for more information." >&2 24382 { (exit 1); exit 1; }; } ;; 24383 24384 *) ac_config_targets="$ac_config_targets $1" 24385 ac_need_defaults=false ;; 24386 24387 esac 24388 shift 24389done 24390 24391ac_configure_extra_args= 24392 24393if $ac_cs_silent; then 24394 exec 6>/dev/null 24395 ac_configure_extra_args="$ac_configure_extra_args --silent" 24396fi 24397 24398_ACEOF 24399cat >>$CONFIG_STATUS <<_ACEOF 24400if \$ac_cs_recheck; then 24401 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24402 CONFIG_SHELL=$SHELL 24403 export CONFIG_SHELL 24404 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24405fi 24406 24407_ACEOF 24408cat >>$CONFIG_STATUS <<\_ACEOF 24409exec 5>>config.log 24410{ 24411 echo 24412 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24413## Running $as_me. ## 24414_ASBOX 24415 echo "$ac_log" 24416} >&5 24417 24418_ACEOF 24419cat >>$CONFIG_STATUS <<_ACEOF 24420# 24421# INIT-COMMANDS 24422# 24423AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24424 24425_ACEOF 24426 24427cat >>$CONFIG_STATUS <<\_ACEOF 24428 24429# Handling of arguments. 24430for ac_config_target in $ac_config_targets 24431do 24432 case $ac_config_target in 24433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24435 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24436 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24437 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 24438 "scim-uim.spec") CONFIG_FILES="$CONFIG_FILES scim-uim.spec" ;; 24439 24440 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24441echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24442 { (exit 1); exit 1; }; };; 24443 esac 24444done 24445 24446 24447# If the user did not use the arguments to specify the items to instantiate, 24448# then the envvar interface is used. Set only those that are not. 24449# We use the long form for the default assignment because of an extremely 24450# bizarre bug on SunOS 4.1.3. 24451if $ac_need_defaults; then 24452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24455fi 24456 24457# Have a temporary directory for convenience. Make it in the build tree 24458# simply because there is no reason against having it here, and in addition, 24459# creating and moving files from /tmp can sometimes cause problems. 24460# Hook for its removal unless debugging. 24461# Note that there is a small window in which the directory will not be cleaned: 24462# after its creation but before its name has been assigned to `$tmp'. 24463$debug || 24464{ 24465 tmp= 24466 trap 'exit_status=$? 24467 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24468' 0 24469 trap '{ (exit 1); exit 1; }' 1 2 13 15 24470} 24471# Create a (secure) tmp directory for tmp files. 24472 24473{ 24474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24475 test -n "$tmp" && test -d "$tmp" 24476} || 24477{ 24478 tmp=./conf$$-$RANDOM 24479 (umask 077 && mkdir "$tmp") 24480} || 24481{ 24482 echo "$me: cannot create a temporary directory in ." >&2 24483 { (exit 1); exit 1; } 24484} 24485 24486# 24487# Set up the sed scripts for CONFIG_FILES section. 24488# 24489 24490# No need to generate the scripts if there are no CONFIG_FILES. 24491# This happens for instance when ./config.status config.h 24492if test -n "$CONFIG_FILES"; then 24493 24494_ACEOF 24495 24496 24497 24498ac_delim='%!_!# ' 24499for ac_last_try in false false false false false :; do 24500 cat >conf$$subs.sed <<_ACEOF 24501SHELL!$SHELL$ac_delim 24502PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 24503PACKAGE_NAME!$PACKAGE_NAME$ac_delim 24504PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 24505PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 24506PACKAGE_STRING!$PACKAGE_STRING$ac_delim 24507PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 24508exec_prefix!$exec_prefix$ac_delim 24509prefix!$prefix$ac_delim 24510program_transform_name!$program_transform_name$ac_delim 24511bindir!$bindir$ac_delim 24512sbindir!$sbindir$ac_delim 24513libexecdir!$libexecdir$ac_delim 24514datarootdir!$datarootdir$ac_delim 24515datadir!$datadir$ac_delim 24516sysconfdir!$sysconfdir$ac_delim 24517sharedstatedir!$sharedstatedir$ac_delim 24518localstatedir!$localstatedir$ac_delim 24519includedir!$includedir$ac_delim 24520oldincludedir!$oldincludedir$ac_delim 24521docdir!$docdir$ac_delim 24522infodir!$infodir$ac_delim 24523htmldir!$htmldir$ac_delim 24524dvidir!$dvidir$ac_delim 24525pdfdir!$pdfdir$ac_delim 24526psdir!$psdir$ac_delim 24527libdir!$libdir$ac_delim 24528localedir!$localedir$ac_delim 24529mandir!$mandir$ac_delim 24530DEFS!$DEFS$ac_delim 24531ECHO_C!$ECHO_C$ac_delim 24532ECHO_N!$ECHO_N$ac_delim 24533ECHO_T!$ECHO_T$ac_delim 24534LIBS!$LIBS$ac_delim 24535build_alias!$build_alias$ac_delim 24536host_alias!$host_alias$ac_delim 24537target_alias!$target_alias$ac_delim 24538SCIM_UIM_MAJOR_VERSION!$SCIM_UIM_MAJOR_VERSION$ac_delim 24539SCIM_UIM_MINOR_VERSION!$SCIM_UIM_MINOR_VERSION$ac_delim 24540SCIM_UIM_MICRO_VERSION!$SCIM_UIM_MICRO_VERSION$ac_delim 24541SCIM_UIM_VERSION!$SCIM_UIM_VERSION$ac_delim 24542INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 24543INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 24544INSTALL_DATA!$INSTALL_DATA$ac_delim 24545am__isrc!$am__isrc$ac_delim 24546CYGPATH_W!$CYGPATH_W$ac_delim 24547PACKAGE!$PACKAGE$ac_delim 24548VERSION!$VERSION$ac_delim 24549ACLOCAL!$ACLOCAL$ac_delim 24550AUTOCONF!$AUTOCONF$ac_delim 24551AUTOMAKE!$AUTOMAKE$ac_delim 24552AUTOHEADER!$AUTOHEADER$ac_delim 24553MAKEINFO!$MAKEINFO$ac_delim 24554install_sh!$install_sh$ac_delim 24555STRIP!$STRIP$ac_delim 24556INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 24557mkdir_p!$mkdir_p$ac_delim 24558AWK!$AWK$ac_delim 24559SET_MAKE!$SET_MAKE$ac_delim 24560am__leading_dot!$am__leading_dot$ac_delim 24561AMTAR!$AMTAR$ac_delim 24562am__tar!$am__tar$ac_delim 24563am__untar!$am__untar$ac_delim 24564build!$build$ac_delim 24565build_cpu!$build_cpu$ac_delim 24566build_vendor!$build_vendor$ac_delim 24567build_os!$build_os$ac_delim 24568host!$host$ac_delim 24569host_cpu!$host_cpu$ac_delim 24570host_vendor!$host_vendor$ac_delim 24571host_os!$host_os$ac_delim 24572CC!$CC$ac_delim 24573CFLAGS!$CFLAGS$ac_delim 24574LDFLAGS!$LDFLAGS$ac_delim 24575CPPFLAGS!$CPPFLAGS$ac_delim 24576ac_ct_CC!$ac_ct_CC$ac_delim 24577EXEEXT!$EXEEXT$ac_delim 24578OBJEXT!$OBJEXT$ac_delim 24579DEPDIR!$DEPDIR$ac_delim 24580am__include!$am__include$ac_delim 24581am__quote!$am__quote$ac_delim 24582AMDEP_TRUE!$AMDEP_TRUE$ac_delim 24583AMDEP_FALSE!$AMDEP_FALSE$ac_delim 24584AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 24585CCDEPMODE!$CCDEPMODE$ac_delim 24586am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 24587am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 24588GREP!$GREP$ac_delim 24589EGREP!$EGREP$ac_delim 24590LN_S!$LN_S$ac_delim 24591ECHO!$ECHO$ac_delim 24592AR!$AR$ac_delim 24593RANLIB!$RANLIB$ac_delim 24594CPP!$CPP$ac_delim 24595CXX!$CXX$ac_delim 24596CXXFLAGS!$CXXFLAGS$ac_delim 24597ac_ct_CXX!$ac_ct_CXX$ac_delim 24598_ACEOF 24599 24600 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 24601 break 24602 elif $ac_last_try; then 24603 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24604echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24605 { (exit 1); exit 1; }; } 24606 else 24607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24608 fi 24609done 24610 24611ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24612if test -n "$ac_eof"; then 24613 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24614 ac_eof=`expr $ac_eof + 1` 24615fi 24616 24617cat >>$CONFIG_STATUS <<_ACEOF 24618cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 24619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24620_ACEOF 24621sed ' 24622s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24623s/^/s,@/; s/!/@,|#_!!_#|/ 24624:n 24625t n 24626s/'"$ac_delim"'$/,g/; t 24627s/$/\\/; p 24628N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24629' >>$CONFIG_STATUS <conf$$subs.sed 24630rm -f conf$$subs.sed 24631cat >>$CONFIG_STATUS <<_ACEOF 24632CEOF$ac_eof 24633_ACEOF 24634 24635 24636ac_delim='%!_!# ' 24637for ac_last_try in false false false false false :; do 24638 cat >conf$$subs.sed <<_ACEOF 24639CXXDEPMODE!$CXXDEPMODE$ac_delim 24640am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 24641am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 24642CXXCPP!$CXXCPP$ac_delim 24643F77!$F77$ac_delim 24644FFLAGS!$FFLAGS$ac_delim 24645ac_ct_F77!$ac_ct_F77$ac_delim 24646LIBTOOL!$LIBTOOL$ac_delim 24647INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 24648INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 24649CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 24650CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 24651LIBADD_DL!$LIBADD_DL$ac_delim 24652LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim 24653PKG_CONFIG!$PKG_CONFIG$ac_delim 24654SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim 24655SCIM_LIBS!$SCIM_LIBS$ac_delim 24656UIM_CFLAGS!$UIM_CFLAGS$ac_delim 24657UIM_LIBS!$UIM_LIBS$ac_delim 24658SCIM_VERSION!$SCIM_VERSION$ac_delim 24659UIM_VERSION!$UIM_VERSION$ac_delim 24660ac_aux_dir!$ac_aux_dir$ac_delim 24661LIBTOOL_EXPORT_OPTIONS!$LIBTOOL_EXPORT_OPTIONS$ac_delim 24662SCIM_DEBUG_FLAGS!$SCIM_DEBUG_FLAGS$ac_delim 24663SCIM_ICONDIR!$SCIM_ICONDIR$ac_delim 24664SCIM_MODULEDIR!$SCIM_MODULEDIR$ac_delim 24665LIBOBJS!$LIBOBJS$ac_delim 24666LTLIBOBJS!$LTLIBOBJS$ac_delim 24667_ACEOF 24668 24669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then 24670 break 24671 elif $ac_last_try; then 24672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24673echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24674 { (exit 1); exit 1; }; } 24675 else 24676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24677 fi 24678done 24679 24680ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24681if test -n "$ac_eof"; then 24682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24683 ac_eof=`expr $ac_eof + 1` 24684fi 24685 24686cat >>$CONFIG_STATUS <<_ACEOF 24687cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24689_ACEOF 24690sed ' 24691s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24692s/^/s,@/; s/!/@,|#_!!_#|/ 24693:n 24694t n 24695s/'"$ac_delim"'$/,g/; t 24696s/$/\\/; p 24697N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24698' >>$CONFIG_STATUS <conf$$subs.sed 24699rm -f conf$$subs.sed 24700cat >>$CONFIG_STATUS <<_ACEOF 24701:end 24702s/|#_!!_#|//g 24703CEOF$ac_eof 24704_ACEOF 24705 24706 24707# VPATH may cause trouble with some makes, so we remove $(srcdir), 24708# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24709# trailing colons and then remove the whole line if VPATH becomes empty 24710# (actually we leave an empty line to preserve line numbers). 24711if test "x$srcdir" = x.; then 24712 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24713s/:*\$(srcdir):*/:/ 24714s/:*\${srcdir}:*/:/ 24715s/:*@srcdir@:*/:/ 24716s/^\([^=]*=[ ]*\):*/\1/ 24717s/:*$// 24718s/^[^=]*=[ ]*$// 24719}' 24720fi 24721 24722cat >>$CONFIG_STATUS <<\_ACEOF 24723fi # test -n "$CONFIG_FILES" 24724 24725 24726for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24727do 24728 case $ac_tag in 24729 :[FHLC]) ac_mode=$ac_tag; continue;; 24730 esac 24731 case $ac_mode$ac_tag in 24732 :[FHL]*:*);; 24733 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24734echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24735 { (exit 1); exit 1; }; };; 24736 :[FH]-) ac_tag=-:-;; 24737 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24738 esac 24739 ac_save_IFS=$IFS 24740 IFS=: 24741 set x $ac_tag 24742 IFS=$ac_save_IFS 24743 shift 24744 ac_file=$1 24745 shift 24746 24747 case $ac_mode in 24748 :L) ac_source=$1;; 24749 :[FH]) 24750 ac_file_inputs= 24751 for ac_f 24752 do 24753 case $ac_f in 24754 -) ac_f="$tmp/stdin";; 24755 *) # Look for the file first in the build tree, then in the source tree 24756 # (if the path is not absolute). The absolute path cannot be DOS-style, 24757 # because $ac_f cannot contain `:'. 24758 test -f "$ac_f" || 24759 case $ac_f in 24760 [\\/$]*) false;; 24761 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24762 esac || 24763 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24764echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24765 { (exit 1); exit 1; }; };; 24766 esac 24767 ac_file_inputs="$ac_file_inputs $ac_f" 24768 done 24769 24770 # Let's still pretend it is `configure' which instantiates (i.e., don't 24771 # use $as_me), people would be surprised to read: 24772 # /* config.h. Generated by config.status. */ 24773 configure_input="Generated from "`IFS=: 24774 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24775 if test x"$ac_file" != x-; then 24776 configure_input="$ac_file. $configure_input" 24777 { echo "$as_me:$LINENO: creating $ac_file" >&5 24778echo "$as_me: creating $ac_file" >&6;} 24779 fi 24780 24781 case $ac_tag in 24782 *:-:* | *:-) cat >"$tmp/stdin";; 24783 esac 24784 ;; 24785 esac 24786 24787 ac_dir=`$as_dirname -- "$ac_file" || 24788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24789 X"$ac_file" : 'X\(//\)[^/]' \| \ 24790 X"$ac_file" : 'X\(//\)$' \| \ 24791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24792echo X"$ac_file" | 24793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24794 s//\1/ 24795 q 24796 } 24797 /^X\(\/\/\)[^/].*/{ 24798 s//\1/ 24799 q 24800 } 24801 /^X\(\/\/\)$/{ 24802 s//\1/ 24803 q 24804 } 24805 /^X\(\/\).*/{ 24806 s//\1/ 24807 q 24808 } 24809 s/.*/./; q'` 24810 { as_dir="$ac_dir" 24811 case $as_dir in #( 24812 -*) as_dir=./$as_dir;; 24813 esac 24814 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24815 as_dirs= 24816 while :; do 24817 case $as_dir in #( 24818 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24819 *) as_qdir=$as_dir;; 24820 esac 24821 as_dirs="'$as_qdir' $as_dirs" 24822 as_dir=`$as_dirname -- "$as_dir" || 24823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24824 X"$as_dir" : 'X\(//\)[^/]' \| \ 24825 X"$as_dir" : 'X\(//\)$' \| \ 24826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24827echo X"$as_dir" | 24828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24829 s//\1/ 24830 q 24831 } 24832 /^X\(\/\/\)[^/].*/{ 24833 s//\1/ 24834 q 24835 } 24836 /^X\(\/\/\)$/{ 24837 s//\1/ 24838 q 24839 } 24840 /^X\(\/\).*/{ 24841 s//\1/ 24842 q 24843 } 24844 s/.*/./; q'` 24845 test -d "$as_dir" && break 24846 done 24847 test -z "$as_dirs" || eval "mkdir $as_dirs" 24848 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24849echo "$as_me: error: cannot create directory $as_dir" >&2;} 24850 { (exit 1); exit 1; }; }; } 24851 ac_builddir=. 24852 24853case "$ac_dir" in 24854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24855*) 24856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24857 # A ".." for each directory in $ac_dir_suffix. 24858 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24859 case $ac_top_builddir_sub in 24860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24862 esac ;; 24863esac 24864ac_abs_top_builddir=$ac_pwd 24865ac_abs_builddir=$ac_pwd$ac_dir_suffix 24866# for backward compatibility: 24867ac_top_builddir=$ac_top_build_prefix 24868 24869case $srcdir in 24870 .) # We are building in place. 24871 ac_srcdir=. 24872 ac_top_srcdir=$ac_top_builddir_sub 24873 ac_abs_top_srcdir=$ac_pwd ;; 24874 [\\/]* | ?:[\\/]* ) # Absolute name. 24875 ac_srcdir=$srcdir$ac_dir_suffix; 24876 ac_top_srcdir=$srcdir 24877 ac_abs_top_srcdir=$srcdir ;; 24878 *) # Relative name. 24879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24880 ac_top_srcdir=$ac_top_build_prefix$srcdir 24881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24882esac 24883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24884 24885 24886 case $ac_mode in 24887 :F) 24888 # 24889 # CONFIG_FILE 24890 # 24891 24892 case $INSTALL in 24893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24895 esac 24896 ac_MKDIR_P=$MKDIR_P 24897 case $MKDIR_P in 24898 [\\/$]* | ?:[\\/]* ) ;; 24899 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24900 esac 24901_ACEOF 24902 24903cat >>$CONFIG_STATUS <<\_ACEOF 24904# If the template does not know about datarootdir, expand it. 24905# FIXME: This hack should be removed a few years after 2.60. 24906ac_datarootdir_hack=; ac_datarootdir_seen= 24907 24908case `sed -n '/datarootdir/ { 24909 p 24910 q 24911} 24912/@datadir@/p 24913/@docdir@/p 24914/@infodir@/p 24915/@localedir@/p 24916/@mandir@/p 24917' $ac_file_inputs` in 24918*datarootdir*) ac_datarootdir_seen=yes;; 24919*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24920 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24921echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24922_ACEOF 24923cat >>$CONFIG_STATUS <<_ACEOF 24924 ac_datarootdir_hack=' 24925 s&@datadir@&$datadir&g 24926 s&@docdir@&$docdir&g 24927 s&@infodir@&$infodir&g 24928 s&@localedir@&$localedir&g 24929 s&@mandir@&$mandir&g 24930 s&\\\${datarootdir}&$datarootdir&g' ;; 24931esac 24932_ACEOF 24933 24934# Neutralize VPATH when `$srcdir' = `.'. 24935# Shell code in configure.ac might set extrasub. 24936# FIXME: do we really want to maintain this feature? 24937cat >>$CONFIG_STATUS <<_ACEOF 24938 sed "$ac_vpsub 24939$extrasub 24940_ACEOF 24941cat >>$CONFIG_STATUS <<\_ACEOF 24942:t 24943/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24944s&@configure_input@&$configure_input&;t t 24945s&@top_builddir@&$ac_top_builddir_sub&;t t 24946s&@srcdir@&$ac_srcdir&;t t 24947s&@abs_srcdir@&$ac_abs_srcdir&;t t 24948s&@top_srcdir@&$ac_top_srcdir&;t t 24949s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24950s&@builddir@&$ac_builddir&;t t 24951s&@abs_builddir@&$ac_abs_builddir&;t t 24952s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24953s&@INSTALL@&$ac_INSTALL&;t t 24954s&@MKDIR_P@&$ac_MKDIR_P&;t t 24955$ac_datarootdir_hack 24956" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24957 24958test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24959 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24961 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24962which seems to be undefined. Please make sure it is defined." >&5 24963echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24964which seems to be undefined. Please make sure it is defined." >&2;} 24965 24966 rm -f "$tmp/stdin" 24967 case $ac_file in 24968 -) cat "$tmp/out"; rm -f "$tmp/out";; 24969 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24970 esac 24971 ;; 24972 :H) 24973 # 24974 # CONFIG_HEADER 24975 # 24976_ACEOF 24977 24978# Transform confdefs.h into a sed script `conftest.defines', that 24979# substitutes the proper values into config.h.in to produce config.h. 24980rm -f conftest.defines conftest.tail 24981# First, append a space to every undef/define line, to ease matching. 24982echo 's/$/ /' >conftest.defines 24983# Then, protect against being on the right side of a sed subst, or in 24984# an unquoted here document, in config.status. If some macros were 24985# called several times there might be several #defines for the same 24986# symbol, which is useless. But do not sort them, since the last 24987# AC_DEFINE must be honored. 24988ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24989# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24990# NAME is the cpp macro being defined, VALUE is the value it is being given. 24991# PARAMS is the parameter list in the macro definition--in most cases, it's 24992# just an empty string. 24993ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24994ac_dB='\\)[ (].*,\\1define\\2' 24995ac_dC=' ' 24996ac_dD=' ,' 24997 24998uniq confdefs.h | 24999 sed -n ' 25000 t rset 25001 :rset 25002 s/^[ ]*#[ ]*define[ ][ ]*// 25003 t ok 25004 d 25005 :ok 25006 s/[\\&,]/\\&/g 25007 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 25008 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 25009 ' >>conftest.defines 25010 25011# Remove the space that was appended to ease matching. 25012# Then replace #undef with comments. This is necessary, for 25013# example, in the case of _POSIX_SOURCE, which is predefined and required 25014# on some systems where configure will not decide to define it. 25015# (The regexp can be short, since the line contains either #define or #undef.) 25016echo 's/ $// 25017s,^[ #]*u.*,/* & */,' >>conftest.defines 25018 25019# Break up conftest.defines: 25020ac_max_sed_lines=50 25021 25022# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 25023# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 25024# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 25025# et cetera. 25026ac_in='$ac_file_inputs' 25027ac_out='"$tmp/out1"' 25028ac_nxt='"$tmp/out2"' 25029 25030while : 25031do 25032 # Write a here document: 25033 cat >>$CONFIG_STATUS <<_ACEOF 25034 # First, check the format of the line: 25035 cat >"\$tmp/defines.sed" <<\\CEOF 25036/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 25037/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 25038b 25039:def 25040_ACEOF 25041 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 25042 echo 'CEOF 25043 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 25044 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 25045 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 25046 grep . conftest.tail >/dev/null || break 25047 rm -f conftest.defines 25048 mv conftest.tail conftest.defines 25049done 25050rm -f conftest.defines conftest.tail 25051 25052echo "ac_result=$ac_in" >>$CONFIG_STATUS 25053cat >>$CONFIG_STATUS <<\_ACEOF 25054 if test x"$ac_file" != x-; then 25055 echo "/* $configure_input */" >"$tmp/config.h" 25056 cat "$ac_result" >>"$tmp/config.h" 25057 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 25058 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 25059echo "$as_me: $ac_file is unchanged" >&6;} 25060 else 25061 rm -f $ac_file 25062 mv "$tmp/config.h" $ac_file 25063 fi 25064 else 25065 echo "/* $configure_input */" 25066 cat "$ac_result" 25067 fi 25068 rm -f "$tmp/out12" 25069# Compute $ac_file's index in $config_headers. 25070_am_stamp_count=1 25071for _am_header in $config_headers :; do 25072 case $_am_header in 25073 $ac_file | $ac_file:* ) 25074 break ;; 25075 * ) 25076 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25077 esac 25078done 25079echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 25080$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25081 X$ac_file : 'X\(//\)[^/]' \| \ 25082 X$ac_file : 'X\(//\)$' \| \ 25083 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 25084echo X$ac_file | 25085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25086 s//\1/ 25087 q 25088 } 25089 /^X\(\/\/\)[^/].*/{ 25090 s//\1/ 25091 q 25092 } 25093 /^X\(\/\/\)$/{ 25094 s//\1/ 25095 q 25096 } 25097 /^X\(\/\).*/{ 25098 s//\1/ 25099 q 25100 } 25101 s/.*/./; q'`/stamp-h$_am_stamp_count 25102 ;; 25103 25104 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 25105echo "$as_me: executing $ac_file commands" >&6;} 25106 ;; 25107 esac 25108 25109 25110 case $ac_file$ac_mode in 25111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25112 # Strip MF so we end up with the name of the file. 25113 mf=`echo "$mf" | sed -e 's/:.*$//'` 25114 # Check whether this is an Automake generated Makefile or not. 25115 # We used to match only the files named `Makefile.in', but 25116 # some people rename them; so instead we look at the file content. 25117 # Grep'ing the first line is not enough: some people post-process 25118 # each Makefile.in and add a new line on top of each file to say so. 25119 # Grep'ing the whole file is not good either: AIX grep has a line 25120 # limit of 2048, but all sed's we know have understand at least 4000. 25121 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 25122 dirpart=`$as_dirname -- "$mf" || 25123$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25124 X"$mf" : 'X\(//\)[^/]' \| \ 25125 X"$mf" : 'X\(//\)$' \| \ 25126 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 25127echo X"$mf" | 25128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25129 s//\1/ 25130 q 25131 } 25132 /^X\(\/\/\)[^/].*/{ 25133 s//\1/ 25134 q 25135 } 25136 /^X\(\/\/\)$/{ 25137 s//\1/ 25138 q 25139 } 25140 /^X\(\/\).*/{ 25141 s//\1/ 25142 q 25143 } 25144 s/.*/./; q'` 25145 else 25146 continue 25147 fi 25148 # Extract the definition of DEPDIR, am__include, and am__quote 25149 # from the Makefile without running `make'. 25150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 25151 test -z "$DEPDIR" && continue 25152 am__include=`sed -n 's/^am__include = //p' < "$mf"` 25153 test -z "am__include" && continue 25154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 25155 # When using ansi2knr, U may be empty or an underscore; expand it 25156 U=`sed -n 's/^U = //p' < "$mf"` 25157 # Find all dependency output files, they are included files with 25158 # $(DEPDIR) in their names. We invoke sed twice because it is the 25159 # simplest approach to changing $(DEPDIR) to its actual value in the 25160 # expansion. 25161 for file in `sed -n " 25162 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 25163 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25164 # Make sure the directory exists. 25165 test -f "$dirpart/$file" && continue 25166 fdir=`$as_dirname -- "$file" || 25167$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25168 X"$file" : 'X\(//\)[^/]' \| \ 25169 X"$file" : 'X\(//\)$' \| \ 25170 X"$file" : 'X\(/\)' \| . 2>/dev/null || 25171echo X"$file" | 25172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25173 s//\1/ 25174 q 25175 } 25176 /^X\(\/\/\)[^/].*/{ 25177 s//\1/ 25178 q 25179 } 25180 /^X\(\/\/\)$/{ 25181 s//\1/ 25182 q 25183 } 25184 /^X\(\/\).*/{ 25185 s//\1/ 25186 q 25187 } 25188 s/.*/./; q'` 25189 { as_dir=$dirpart/$fdir 25190 case $as_dir in #( 25191 -*) as_dir=./$as_dir;; 25192 esac 25193 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25194 as_dirs= 25195 while :; do 25196 case $as_dir in #( 25197 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 25198 *) as_qdir=$as_dir;; 25199 esac 25200 as_dirs="'$as_qdir' $as_dirs" 25201 as_dir=`$as_dirname -- "$as_dir" || 25202$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25203 X"$as_dir" : 'X\(//\)[^/]' \| \ 25204 X"$as_dir" : 'X\(//\)$' \| \ 25205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25206echo X"$as_dir" | 25207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25208 s//\1/ 25209 q 25210 } 25211 /^X\(\/\/\)[^/].*/{ 25212 s//\1/ 25213 q 25214 } 25215 /^X\(\/\/\)$/{ 25216 s//\1/ 25217 q 25218 } 25219 /^X\(\/\).*/{ 25220 s//\1/ 25221 q 25222 } 25223 s/.*/./; q'` 25224 test -d "$as_dir" && break 25225 done 25226 test -z "$as_dirs" || eval "mkdir $as_dirs" 25227 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25228echo "$as_me: error: cannot create directory $as_dir" >&2;} 25229 { (exit 1); exit 1; }; }; } 25230 # echo "creating $dirpart/$file" 25231 echo '# dummy' > "$dirpart/$file" 25232 done 25233done 25234 ;; 25235 25236 esac 25237done # for ac_tag 25238 25239 25240{ (exit 0); exit 0; } 25241_ACEOF 25242chmod +x $CONFIG_STATUS 25243ac_clean_files=$ac_clean_files_save 25244 25245 25246# configure is writing to config.log, and then calls config.status. 25247# config.status does its own redirection, appending to config.log. 25248# Unfortunately, on DOS this fails, as config.log is still kept open 25249# by configure, so config.status won't be able to write to it; its 25250# output is simply discarded. So we exec the FD to /dev/null, 25251# effectively closing config.log, so it can be properly (re)opened and 25252# appended to by config.status. When coming back to configure, we 25253# need to make the FD available again. 25254if test "$no_create" != yes; then 25255 ac_cs_success=: 25256 ac_config_status_args= 25257 test "$silent" = yes && 25258 ac_config_status_args="$ac_config_status_args --quiet" 25259 exec 5>/dev/null 25260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25261 exec 5>>config.log 25262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25263 # would make configure fail if this is the last instruction. 25264 $ac_cs_success || { (exit 1); exit 1; } 25265fi 25266 25267