configure revision 6aab59a7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xf86-input-mouse 1.4.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='xf86-input-mouse' 730PACKAGE_TARNAME='xf86-input-mouse' 731PACKAGE_VERSION='1.4.0' 732PACKAGE_STRING='xf86-input-mouse 1.4.0' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735ac_unique_file="Makefile.am" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834DRIVER_NAME 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 877CWARNFLAGS 878inputdir 879PKG_CONFIG 880XORG_CFLAGS 881XORG_LIBS 882OS_MOUSE_NAME 883LINT 884LINT_FLAGS 885LINT_TRUE 886LINT_FALSE 887APP_MAN_SUFFIX 888LIB_MAN_SUFFIX 889FILE_MAN_SUFFIX 890MISC_MAN_SUFFIX 891DRIVER_MAN_SUFFIX 892ADMIN_MAN_SUFFIX 893APP_MAN_DIR 894LIB_MAN_DIR 895FILE_MAN_DIR 896MISC_MAN_DIR 897DRIVER_MAN_DIR 898ADMIN_MAN_DIR 899CHANGELOG_CMD 900distcleancheck_listfiles 901LINUXDOC 902PS2PDF 903BUILD_LINUXDOC_TRUE 904BUILD_LINUXDOC_FALSE 905BUILD_PDFDOC_TRUE 906BUILD_PDFDOC_FALSE 907MAKE_TEXT 908MAKE_PS 909MAKE_PDF 910MAKE_HTML 911LIBOBJS 912LTLIBOBJS' 913ac_subst_files='' 914 ac_precious_vars='build_alias 915host_alias 916target_alias 917CC 918CFLAGS 919LDFLAGS 920LIBS 921CPPFLAGS 922CPP 923CXX 924CXXFLAGS 925CCC 926CXXCPP 927F77 928FFLAGS 929PKG_CONFIG 930XORG_CFLAGS 931XORG_LIBS' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *) ac_optarg=yes ;; 994 esac 995 996 # Accept the important Cygnus configure options, so we can diagnose typos. 997 998 case $ac_dashdash$ac_option in 999 --) 1000 ac_dashdash=yes ;; 1001 1002 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1003 ac_prev=bindir ;; 1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1005 bindir=$ac_optarg ;; 1006 1007 -build | --build | --buil | --bui | --bu) 1008 ac_prev=build_alias ;; 1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1010 build_alias=$ac_optarg ;; 1011 1012 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1014 ac_prev=cache_file ;; 1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1017 cache_file=$ac_optarg ;; 1018 1019 --config-cache | -C) 1020 cache_file=config.cache ;; 1021 1022 -datadir | --datadir | --datadi | --datad) 1023 ac_prev=datadir ;; 1024 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1025 datadir=$ac_optarg ;; 1026 1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1028 | --dataroo | --dataro | --datar) 1029 ac_prev=datarootdir ;; 1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1032 datarootdir=$ac_optarg ;; 1033 1034 -disable-* | --disable-*) 1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1039 { (exit 1); exit 1; }; } 1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1041 eval enable_$ac_feature=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1058 { (exit 1); exit 1; }; } 1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1060 eval enable_$ac_feature=\$ac_optarg ;; 1061 1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1064 | --exec | --exe | --ex) 1065 ac_prev=exec_prefix ;; 1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1068 | --exec=* | --exe=* | --ex=*) 1069 exec_prefix=$ac_optarg ;; 1070 1071 -gas | --gas | --ga | --g) 1072 # Obsolete; use --with-gas. 1073 with_gas=yes ;; 1074 1075 -help | --help | --hel | --he | -h) 1076 ac_init_help=long ;; 1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1078 ac_init_help=recursive ;; 1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1080 ac_init_help=short ;; 1081 1082 -host | --host | --hos | --ho) 1083 ac_prev=host_alias ;; 1084 -host=* | --host=* | --hos=* | --ho=*) 1085 host_alias=$ac_optarg ;; 1086 1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1088 ac_prev=htmldir ;; 1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1090 | --ht=*) 1091 htmldir=$ac_optarg ;; 1092 1093 -includedir | --includedir | --includedi | --included | --include \ 1094 | --includ | --inclu | --incl | --inc) 1095 ac_prev=includedir ;; 1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1097 | --includ=* | --inclu=* | --incl=* | --inc=*) 1098 includedir=$ac_optarg ;; 1099 1100 -infodir | --infodir | --infodi | --infod | --info | --inf) 1101 ac_prev=infodir ;; 1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1103 infodir=$ac_optarg ;; 1104 1105 -libdir | --libdir | --libdi | --libd) 1106 ac_prev=libdir ;; 1107 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1108 libdir=$ac_optarg ;; 1109 1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1111 | --libexe | --libex | --libe) 1112 ac_prev=libexecdir ;; 1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1114 | --libexe=* | --libex=* | --libe=*) 1115 libexecdir=$ac_optarg ;; 1116 1117 -localedir | --localedir | --localedi | --localed | --locale) 1118 ac_prev=localedir ;; 1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1120 localedir=$ac_optarg ;; 1121 1122 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1123 | --localstate | --localstat | --localsta | --localst | --locals) 1124 ac_prev=localstatedir ;; 1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1127 localstatedir=$ac_optarg ;; 1128 1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1130 ac_prev=mandir ;; 1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1132 mandir=$ac_optarg ;; 1133 1134 -nfp | --nfp | --nf) 1135 # Obsolete; use --without-fp. 1136 with_fp=no ;; 1137 1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1139 | --no-cr | --no-c | -n) 1140 no_create=yes ;; 1141 1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1144 no_recursion=yes ;; 1145 1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1148 | --oldin | --oldi | --old | --ol | --o) 1149 ac_prev=oldincludedir ;; 1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1153 oldincludedir=$ac_optarg ;; 1154 1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1156 ac_prev=prefix ;; 1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1158 prefix=$ac_optarg ;; 1159 1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1161 | --program-pre | --program-pr | --program-p) 1162 ac_prev=program_prefix ;; 1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1165 program_prefix=$ac_optarg ;; 1166 1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1168 | --program-suf | --program-su | --program-s) 1169 ac_prev=program_suffix ;; 1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1172 program_suffix=$ac_optarg ;; 1173 1174 -program-transform-name | --program-transform-name \ 1175 | --program-transform-nam | --program-transform-na \ 1176 | --program-transform-n | --program-transform- \ 1177 | --program-transform | --program-transfor \ 1178 | --program-transfo | --program-transf \ 1179 | --program-trans | --program-tran \ 1180 | --progr-tra | --program-tr | --program-t) 1181 ac_prev=program_transform_name ;; 1182 -program-transform-name=* | --program-transform-name=* \ 1183 | --program-transform-nam=* | --program-transform-na=* \ 1184 | --program-transform-n=* | --program-transform-=* \ 1185 | --program-transform=* | --program-transfor=* \ 1186 | --program-transfo=* | --program-transf=* \ 1187 | --program-trans=* | --program-tran=* \ 1188 | --progr-tra=* | --program-tr=* | --program-t=*) 1189 program_transform_name=$ac_optarg ;; 1190 1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1192 ac_prev=pdfdir ;; 1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1194 pdfdir=$ac_optarg ;; 1195 1196 -psdir | --psdir | --psdi | --psd | --ps) 1197 ac_prev=psdir ;; 1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1199 psdir=$ac_optarg ;; 1200 1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1202 | -silent | --silent | --silen | --sile | --sil) 1203 silent=yes ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 { echo "$as_me: error: invalid package name: $ac_package" >&2 1255 { (exit 1); exit 1; }; } 1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1257 eval with_$ac_package=\$ac_optarg ;; 1258 1259 -without-* | --without-*) 1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 { echo "$as_me: error: invalid package name: $ac_package" >&2 1264 { (exit 1); exit 1; }; } 1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1266 eval with_$ac_package=no ;; 1267 1268 --x) 1269 # Obsolete; use --with-x. 1270 with_x=yes ;; 1271 1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1273 | --x-incl | --x-inc | --x-in | --x-i) 1274 ac_prev=x_includes ;; 1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1277 x_includes=$ac_optarg ;; 1278 1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1281 ac_prev=x_libraries ;; 1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1284 x_libraries=$ac_optarg ;; 1285 1286 -*) { echo "$as_me: error: unrecognized option: $ac_option 1287Try \`$0 --help' for more information." >&2 1288 { (exit 1); exit 1; }; } 1289 ;; 1290 1291 *=*) 1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1296 { (exit 1); exit 1; }; } 1297 eval $ac_envvar=\$ac_optarg 1298 export $ac_envvar ;; 1299 1300 *) 1301 # FIXME: should be removed in autoconf 3.0. 1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1306 ;; 1307 1308 esac 1309done 1310 1311if test -n "$ac_prev"; then 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1313 { echo "$as_me: error: missing argument to $ac_option" >&2 1314 { (exit 1); exit 1; }; } 1315fi 1316 1317# Be sure to have absolute directory names. 1318for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1319 datadir sysconfdir sharedstatedir localstatedir includedir \ 1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1321 libdir localedir mandir 1322do 1323 eval ac_val=\$$ac_var 1324 case $ac_val in 1325 [\\/$]* | ?:[\\/]* ) continue;; 1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1327 esac 1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1329 { (exit 1); exit 1; }; } 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1344 If a cross compiler is detected then cross compile mode will be used." >&2 1345 elif test "x$build_alias" != "x$host_alias"; then 1346 cross_compiling=yes 1347 fi 1348fi 1349 1350ac_tool_prefix= 1351test -n "$host_alias" && ac_tool_prefix=$host_alias- 1352 1353test "$silent" = yes && exec 6>/dev/null 1354 1355 1356ac_pwd=`pwd` && test -n "$ac_pwd" && 1357ac_ls_di=`ls -di .` && 1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1359 { echo "$as_me: error: Working directory cannot be determined" >&2 1360 { (exit 1); exit 1; }; } 1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1362 { echo "$as_me: error: pwd does not report name of working directory" >&2 1363 { (exit 1); exit 1; }; } 1364 1365 1366# Find the source files, if location was not specified. 1367if test -z "$srcdir"; then 1368 ac_srcdir_defaulted=yes 1369 # Try the directory containing this script, then the parent directory. 1370 ac_confdir=`$as_dirname -- "$0" || 1371$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1372 X"$0" : 'X\(//\)[^/]' \| \ 1373 X"$0" : 'X\(//\)$' \| \ 1374 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1375echo X"$0" | 1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)[^/].*/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\/\)$/{ 1385 s//\1/ 1386 q 1387 } 1388 /^X\(\/\).*/{ 1389 s//\1/ 1390 q 1391 } 1392 s/.*/./; q'` 1393 srcdir=$ac_confdir 1394 if test ! -r "$srcdir/$ac_unique_file"; then 1395 srcdir=.. 1396 fi 1397else 1398 ac_srcdir_defaulted=no 1399fi 1400if test ! -r "$srcdir/$ac_unique_file"; then 1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1403 { (exit 1); exit 1; }; } 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1408 { (exit 1); exit 1; }; } 1409 pwd)` 1410# When building in place, set srcdir=. 1411if test "$ac_abs_confdir" = "$ac_pwd"; then 1412 srcdir=. 1413fi 1414# Remove unnecessary trailing slashes from srcdir. 1415# Double slashes in file names in object file debugging info 1416# mess up M-x gdb in Emacs. 1417case $srcdir in 1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1419esac 1420for ac_var in $ac_precious_vars; do 1421 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_env_${ac_var}_value=\$${ac_var} 1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1425done 1426 1427# 1428# Report the --help message. 1429# 1430if test "$ac_init_help" = "long"; then 1431 # Omit some internal or obsolete options to make the list less imposing. 1432 # This message is too long to be a string in the A/UX 3.1 sh. 1433 cat <<_ACEOF 1434\`configure' configures xf86-input-mouse 1.4.0 to adapt to many kinds of systems. 1435 1436Usage: $0 [OPTION]... [VAR=VALUE]... 1437 1438To assign environment variables (e.g., CC, CFLAGS...), specify them as 1439VAR=VALUE. See below for descriptions of some of the useful variables. 1440 1441Defaults for the options are specified in brackets. 1442 1443Configuration: 1444 -h, --help display this help and exit 1445 --help=short display options specific to this package 1446 --help=recursive display the short help of all the included packages 1447 -V, --version display version information and exit 1448 -q, --quiet, --silent do not print \`checking...' messages 1449 --cache-file=FILE cache test results in FILE [disabled] 1450 -C, --config-cache alias for \`--cache-file=config.cache' 1451 -n, --no-create do not create output files 1452 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1453 1454Installation directories: 1455 --prefix=PREFIX install architecture-independent files in PREFIX 1456 [$ac_default_prefix] 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1458 [PREFIX] 1459 1460By default, \`make install' will install all the files in 1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1462an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1463for instance \`--prefix=\$HOME'. 1464 1465For better control, use the options below. 1466 1467Fine tuning of the installation directories: 1468 --bindir=DIR user executables [EPREFIX/bin] 1469 --sbindir=DIR system admin executables [EPREFIX/sbin] 1470 --libexecdir=DIR program executables [EPREFIX/libexec] 1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-mouse] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of xf86-input-mouse 1.4.0:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1511 --enable-maintainer-mode enable make rules and dependencies not useful 1512 (and sometimes confusing) to the casual installer 1513 --enable-static[=PKGS] build static libraries [default=no] 1514 --enable-shared[=PKGS] build shared libraries [default=yes] 1515 --enable-fast-install[=PKGS] 1516 optimize for fast installation [default=yes] 1517 --disable-dependency-tracking speeds up one-time build 1518 --enable-dependency-tracking do not reject slow dependency extractors 1519 --disable-libtool-lock avoid locking (might break parallel builds) 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-tags[=TAGS] include additional configurations [automatic] 1528 --with-xorg-module-dir=DIR 1529 Default xorg module directory 1530 [default=$libdir/xorg/modules] 1531 --with-lint Use a lint-style source code checker (default: 1532 disabled) 1533 --with-release-version=STRING 1534 Use release version string in package name 1535 1536Some influential environment variables: 1537 CC C compiler command 1538 CFLAGS C compiler flags 1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1540 nonstandard directory <lib dir> 1541 LIBS libraries to pass to the linker, e.g. -l<library> 1542 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1543 you have headers in a nonstandard directory <include dir> 1544 CPP C preprocessor 1545 CXX C++ compiler command 1546 CXXFLAGS C++ compiler flags 1547 CXXCPP C++ preprocessor 1548 F77 Fortran 77 compiler command 1549 FFLAGS Fortran 77 compiler flags 1550 PKG_CONFIG path to pkg-config utility 1551 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1552 XORG_LIBS linker flags for XORG, overriding pkg-config 1553 1554Use these variables to override the choices made by `configure' or to help 1555it to find libraries and programs with nonstandard names/locations. 1556 1557Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1558_ACEOF 1559ac_status=$? 1560fi 1561 1562if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618xf86-input-mouse configure 1.4.0 1619generated by GNU Autoconf 2.61 1620 1621Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1623This configure script is free software; the Free Software Foundation 1624gives unlimited permission to copy, distribute and modify it. 1625_ACEOF 1626 exit 1627fi 1628cat >config.log <<_ACEOF 1629This file contains any messages produced by compilers while 1630running configure, to aid debugging if configure makes a mistake. 1631 1632It was created by xf86-input-mouse $as_me 1.4.0, which was 1633generated by GNU Autoconf 2.61. Invocation command line was 1634 1635 $ $0 $@ 1636 1637_ACEOF 1638exec 5>>config.log 1639{ 1640cat <<_ASUNAME 1641## --------- ## 1642## Platform. ## 1643## --------- ## 1644 1645hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1646uname -m = `(uname -m) 2>/dev/null || echo unknown` 1647uname -r = `(uname -r) 2>/dev/null || echo unknown` 1648uname -s = `(uname -s) 2>/dev/null || echo unknown` 1649uname -v = `(uname -v) 2>/dev/null || echo unknown` 1650 1651/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1652/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1653 1654/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1655/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1656/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1657/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1658/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1659/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1660/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1661 1662_ASUNAME 1663 1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1665for as_dir in $PATH 1666do 1667 IFS=$as_save_IFS 1668 test -z "$as_dir" && as_dir=. 1669 echo "PATH: $as_dir" 1670done 1671IFS=$as_save_IFS 1672 1673} >&5 1674 1675cat >&5 <<_ACEOF 1676 1677 1678## ----------- ## 1679## Core tests. ## 1680## ----------- ## 1681 1682_ACEOF 1683 1684 1685# Keep a trace of the command line. 1686# Strip out --no-create and --no-recursion so they do not pile up. 1687# Strip out --silent because we don't want to record it for future runs. 1688# Also quote any args containing shell meta-characters. 1689# Make two passes to allow for proper duplicate-argument suppression. 1690ac_configure_args= 1691ac_configure_args0= 1692ac_configure_args1= 1693ac_must_keep_next=false 1694for ac_pass in 1 2 1695do 1696 for ac_arg 1697 do 1698 case $ac_arg in 1699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1701 | -silent | --silent | --silen | --sile | --sil) 1702 continue ;; 1703 *\'*) 1704 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1705 esac 1706 case $ac_pass in 1707 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1708 2) 1709 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1710 if test $ac_must_keep_next = true; then 1711 ac_must_keep_next=false # Got value, back to normal. 1712 else 1713 case $ac_arg in 1714 *=* | --config-cache | -C | -disable-* | --disable-* \ 1715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1717 | -with-* | --with-* | -without-* | --without-* | --x) 1718 case "$ac_configure_args0 " in 1719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1720 esac 1721 ;; 1722 -* ) ac_must_keep_next=true ;; 1723 esac 1724 fi 1725 ac_configure_args="$ac_configure_args '$ac_arg'" 1726 ;; 1727 esac 1728 done 1729done 1730$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1731$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1732 1733# When interrupted or exit'd, cleanup temporary files, and complete 1734# config.log. We remove comments because anyway the quotes in there 1735# would cause problems or look ugly. 1736# WARNING: Use '\'' to represent an apostrophe within the trap. 1737# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1738trap 'exit_status=$? 1739 # Save into config.log some information that might help in debugging. 1740 { 1741 echo 1742 1743 cat <<\_ASBOX 1744## ---------------- ## 1745## Cache variables. ## 1746## ---------------- ## 1747_ASBOX 1748 echo 1749 # The following way of writing the cache mishandles newlines in values, 1750( 1751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1752 eval ac_val=\$$ac_var 1753 case $ac_val in #( 1754 *${as_nl}*) 1755 case $ac_var in #( 1756 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1757echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1758 esac 1759 case $ac_var in #( 1760 _ | IFS | as_nl) ;; #( 1761 *) $as_unset $ac_var ;; 1762 esac ;; 1763 esac 1764 done 1765 (set) 2>&1 | 1766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1767 *${as_nl}ac_space=\ *) 1768 sed -n \ 1769 "s/'\''/'\''\\\\'\'''\''/g; 1770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1771 ;; #( 1772 *) 1773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1774 ;; 1775 esac | 1776 sort 1777) 1778 echo 1779 1780 cat <<\_ASBOX 1781## ----------------- ## 1782## Output variables. ## 1783## ----------------- ## 1784_ASBOX 1785 echo 1786 for ac_var in $ac_subst_vars 1787 do 1788 eval ac_val=\$$ac_var 1789 case $ac_val in 1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1791 esac 1792 echo "$ac_var='\''$ac_val'\''" 1793 done | sort 1794 echo 1795 1796 if test -n "$ac_subst_files"; then 1797 cat <<\_ASBOX 1798## ------------------- ## 1799## File substitutions. ## 1800## ------------------- ## 1801_ASBOX 1802 echo 1803 for ac_var in $ac_subst_files 1804 do 1805 eval ac_val=\$$ac_var 1806 case $ac_val in 1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1808 esac 1809 echo "$ac_var='\''$ac_val'\''" 1810 done | sort 1811 echo 1812 fi 1813 1814 if test -s confdefs.h; then 1815 cat <<\_ASBOX 1816## ----------- ## 1817## confdefs.h. ## 1818## ----------- ## 1819_ASBOX 1820 echo 1821 cat confdefs.h 1822 echo 1823 fi 1824 test "$ac_signal" != 0 && 1825 echo "$as_me: caught signal $ac_signal" 1826 echo "$as_me: exit $exit_status" 1827 } >&5 1828 rm -f core *.core core.conftest.* && 1829 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1830 exit $exit_status 1831' 0 1832for ac_signal in 1 2 13 15; do 1833 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1834done 1835ac_signal=0 1836 1837# confdefs.h avoids OS command line length limits that DEFS can exceed. 1838rm -f -r conftest* confdefs.h 1839 1840# Predefined preprocessor variables. 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_NAME "$PACKAGE_NAME" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define PACKAGE_VERSION "$PACKAGE_VERSION" 1854_ACEOF 1855 1856 1857cat >>confdefs.h <<_ACEOF 1858#define PACKAGE_STRING "$PACKAGE_STRING" 1859_ACEOF 1860 1861 1862cat >>confdefs.h <<_ACEOF 1863#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1864_ACEOF 1865 1866 1867# Let the site file select an alternate cache file if it wants to. 1868# Prefer explicitly selected file to automatically selected ones. 1869if test -n "$CONFIG_SITE"; then 1870 set x "$CONFIG_SITE" 1871elif test "x$prefix" != xNONE; then 1872 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1873else 1874 set x "$ac_default_prefix/share/config.site" \ 1875 "$ac_default_prefix/etc/config.site" 1876fi 1877shift 1878for ac_site_file 1879do 1880 if test -r "$ac_site_file"; then 1881 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1882echo "$as_me: loading site script $ac_site_file" >&6;} 1883 sed 's/^/| /' "$ac_site_file" >&5 1884 . "$ac_site_file" 1885 fi 1886done 1887 1888if test -r "$cache_file"; then 1889 # Some versions of bash will fail to source /dev/null (special 1890 # files actually), so we avoid doing that. 1891 if test -f "$cache_file"; then 1892 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1893echo "$as_me: loading cache $cache_file" >&6;} 1894 case $cache_file in 1895 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1896 *) . "./$cache_file";; 1897 esac 1898 fi 1899else 1900 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1901echo "$as_me: creating cache $cache_file" >&6;} 1902 >$cache_file 1903fi 1904 1905# Check that the precious variables saved in the cache have kept the same 1906# value. 1907ac_cache_corrupted=false 1908for ac_var in $ac_precious_vars; do 1909 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1910 eval ac_new_set=\$ac_env_${ac_var}_set 1911 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1912 eval ac_new_val=\$ac_env_${ac_var}_value 1913 case $ac_old_set,$ac_new_set in 1914 set,) 1915 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1916echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1917 ac_cache_corrupted=: ;; 1918 ,set) 1919 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1920echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1921 ac_cache_corrupted=: ;; 1922 ,);; 1923 *) 1924 if test "x$ac_old_val" != "x$ac_new_val"; then 1925 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1926echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1927 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1928echo "$as_me: former value: $ac_old_val" >&2;} 1929 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1930echo "$as_me: current value: $ac_new_val" >&2;} 1931 ac_cache_corrupted=: 1932 fi;; 1933 esac 1934 # Pass precious variables to config.status. 1935 if test "$ac_new_set" = set; then 1936 case $ac_new_val in 1937 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1938 *) ac_arg=$ac_var=$ac_new_val ;; 1939 esac 1940 case " $ac_configure_args " in 1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1943 esac 1944 fi 1945done 1946if $ac_cache_corrupted; then 1947 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1948echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1949 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1950echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1951 { (exit 1); exit 1; }; } 1952fi 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978ac_ext=c 1979ac_cpp='$CPP $CPPFLAGS' 1980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1982ac_compiler_gnu=$ac_cv_c_compiler_gnu 1983 1984 1985 1986# Require xorg-macros version >= 1.2.0 for XORG_CWARNFLAGS & XORG_CHANGELOG 1987 1988 1989 XORG_MACROS_needed_version=1.2 1990 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 1991 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 1992 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 1993echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 1994 XORG_MACROS_version=1.2.1 1995 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 1996 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 1997 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 1998 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 1999echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2000 { (exit 1); exit 1; }; } 2001 fi 2002 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2003 { { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2004echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2005 { (exit 1); exit 1; }; } 2006 fi 2007 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2008echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2009 2010 2011 2012ac_aux_dir= 2013for ac_dir in . "$srcdir"/.; do 2014 if test -f "$ac_dir/install-sh"; then 2015 ac_aux_dir=$ac_dir 2016 ac_install_sh="$ac_aux_dir/install-sh -c" 2017 break 2018 elif test -f "$ac_dir/install.sh"; then 2019 ac_aux_dir=$ac_dir 2020 ac_install_sh="$ac_aux_dir/install.sh -c" 2021 break 2022 elif test -f "$ac_dir/shtool"; then 2023 ac_aux_dir=$ac_dir 2024 ac_install_sh="$ac_aux_dir/shtool install -c" 2025 break 2026 fi 2027done 2028if test -z "$ac_aux_dir"; then 2029 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2030echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2031 { (exit 1); exit 1; }; } 2032fi 2033 2034# These three variables are undocumented and unsupported, 2035# and are intended to be withdrawn in a future Autoconf release. 2036# They can cause serious problems if a builder's source tree is in a directory 2037# whose full name contains unusual characters. 2038ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2039ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2040ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2041 2042 2043am__api_version='1.10' 2044 2045# Find a good install program. We prefer a C program (faster), 2046# so one script is as good as another. But avoid the broken or 2047# incompatible versions: 2048# SysV /etc/install, /usr/sbin/install 2049# SunOS /usr/etc/install 2050# IRIX /sbin/install 2051# AIX /bin/install 2052# AmigaOS /C/install, which installs bootblocks on floppy discs 2053# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2054# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2055# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2056# OS/2's system install, which has a completely different semantic 2057# ./install, which can be erroneously created by make from ./install.sh. 2058{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2059echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2060if test -z "$INSTALL"; then 2061if test "${ac_cv_path_install+set}" = set; then 2062 echo $ECHO_N "(cached) $ECHO_C" >&6 2063else 2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2065for as_dir in $PATH 2066do 2067 IFS=$as_save_IFS 2068 test -z "$as_dir" && as_dir=. 2069 # Account for people who put trailing slashes in PATH elements. 2070case $as_dir/ in 2071 ./ | .// | /cC/* | \ 2072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2074 /usr/ucb/* ) ;; 2075 *) 2076 # OSF1 and SCO ODT 3.0 have their own names for install. 2077 # Don't use installbsd from OSF since it installs stuff as root 2078 # by default. 2079 for ac_prog in ginstall scoinst install; do 2080 for ac_exec_ext in '' $ac_executable_extensions; do 2081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2082 if test $ac_prog = install && 2083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2084 # AIX install. It has an incompatible calling convention. 2085 : 2086 elif test $ac_prog = install && 2087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2088 # program-specific install script used by HP pwplus--don't use. 2089 : 2090 else 2091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2092 break 3 2093 fi 2094 fi 2095 done 2096 done 2097 ;; 2098esac 2099done 2100IFS=$as_save_IFS 2101 2102 2103fi 2104 if test "${ac_cv_path_install+set}" = set; then 2105 INSTALL=$ac_cv_path_install 2106 else 2107 # As a last resort, use the slow shell script. Don't cache a 2108 # value for INSTALL within a source directory, because that will 2109 # break other packages using the cache if that directory is 2110 # removed, or if the value is a relative name. 2111 INSTALL=$ac_install_sh 2112 fi 2113fi 2114{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2115echo "${ECHO_T}$INSTALL" >&6; } 2116 2117# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2118# It thinks the first close brace ends the variable substitution. 2119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2120 2121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2122 2123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2124 2125{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2126echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2127# Just in case 2128sleep 1 2129echo timestamp > conftest.file 2130# Do `set' in a subshell so we don't clobber the current shell's 2131# arguments. Must try -L first in case configure is actually a 2132# symlink; some systems play weird games with the mod time of symlinks 2133# (eg FreeBSD returns the mod time of the symlink's containing 2134# directory). 2135if ( 2136 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2137 if test "$*" = "X"; then 2138 # -L didn't work. 2139 set X `ls -t $srcdir/configure conftest.file` 2140 fi 2141 rm -f conftest.file 2142 if test "$*" != "X $srcdir/configure conftest.file" \ 2143 && test "$*" != "X conftest.file $srcdir/configure"; then 2144 2145 # If neither matched, then we have a broken ls. This can happen 2146 # if, for instance, CONFIG_SHELL is bash and it inherits a 2147 # broken ls alias from the environment. This has actually 2148 # happened. Such a system could not be considered "sane". 2149 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2150alias in your environment" >&5 2151echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2152alias in your environment" >&2;} 2153 { (exit 1); exit 1; }; } 2154 fi 2155 2156 test "$2" = conftest.file 2157 ) 2158then 2159 # Ok. 2160 : 2161else 2162 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2163Check your system clock" >&5 2164echo "$as_me: error: newly created file is older than distributed files! 2165Check your system clock" >&2;} 2166 { (exit 1); exit 1; }; } 2167fi 2168{ echo "$as_me:$LINENO: result: yes" >&5 2169echo "${ECHO_T}yes" >&6; } 2170test "$program_prefix" != NONE && 2171 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2172# Use a double $ so make ignores it. 2173test "$program_suffix" != NONE && 2174 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2175# Double any \ or $. echo might interpret backslashes. 2176# By default was `s,x,x', remove it if useless. 2177cat <<\_ACEOF >conftest.sed 2178s/[\\$]/&&/g;s/;s,x,x,$// 2179_ACEOF 2180program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2181rm -f conftest.sed 2182 2183# expand $ac_aux_dir to an absolute path 2184am_aux_dir=`cd $ac_aux_dir && pwd` 2185 2186test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2187# Use eval to expand $SHELL 2188if eval "$MISSING --run true"; then 2189 am_missing_run="$MISSING --run " 2190else 2191 am_missing_run= 2192 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2193echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2194fi 2195 2196{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2197echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2198if test -z "$MKDIR_P"; then 2199 if test "${ac_cv_path_mkdir+set}" = set; then 2200 echo $ECHO_N "(cached) $ECHO_C" >&6 2201else 2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2203for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2204do 2205 IFS=$as_save_IFS 2206 test -z "$as_dir" && as_dir=. 2207 for ac_prog in mkdir gmkdir; do 2208 for ac_exec_ext in '' $ac_executable_extensions; do 2209 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2210 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2211 'mkdir (GNU coreutils) '* | \ 2212 'mkdir (coreutils) '* | \ 2213 'mkdir (fileutils) '4.1*) 2214 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2215 break 3;; 2216 esac 2217 done 2218 done 2219done 2220IFS=$as_save_IFS 2221 2222fi 2223 2224 if test "${ac_cv_path_mkdir+set}" = set; then 2225 MKDIR_P="$ac_cv_path_mkdir -p" 2226 else 2227 # As a last resort, use the slow shell script. Don't cache a 2228 # value for MKDIR_P within a source directory, because that will 2229 # break other packages using the cache if that directory is 2230 # removed, or if the value is a relative name. 2231 test -d ./--version && rmdir ./--version 2232 MKDIR_P="$ac_install_sh -d" 2233 fi 2234fi 2235{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2236echo "${ECHO_T}$MKDIR_P" >&6; } 2237 2238mkdir_p="$MKDIR_P" 2239case $mkdir_p in 2240 [\\/$]* | ?:[\\/]*) ;; 2241 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2242esac 2243 2244for ac_prog in gawk mawk nawk awk 2245do 2246 # Extract the first word of "$ac_prog", so it can be a program name with args. 2247set dummy $ac_prog; ac_word=$2 2248{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2250if test "${ac_cv_prog_AWK+set}" = set; then 2251 echo $ECHO_N "(cached) $ECHO_C" >&6 2252else 2253 if test -n "$AWK"; then 2254 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2255else 2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2257for as_dir in $PATH 2258do 2259 IFS=$as_save_IFS 2260 test -z "$as_dir" && as_dir=. 2261 for ac_exec_ext in '' $ac_executable_extensions; do 2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2263 ac_cv_prog_AWK="$ac_prog" 2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2265 break 2 2266 fi 2267done 2268done 2269IFS=$as_save_IFS 2270 2271fi 2272fi 2273AWK=$ac_cv_prog_AWK 2274if test -n "$AWK"; then 2275 { echo "$as_me:$LINENO: result: $AWK" >&5 2276echo "${ECHO_T}$AWK" >&6; } 2277else 2278 { echo "$as_me:$LINENO: result: no" >&5 2279echo "${ECHO_T}no" >&6; } 2280fi 2281 2282 2283 test -n "$AWK" && break 2284done 2285 2286{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2287echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2288set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2289if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2290 echo $ECHO_N "(cached) $ECHO_C" >&6 2291else 2292 cat >conftest.make <<\_ACEOF 2293SHELL = /bin/sh 2294all: 2295 @echo '@@@%%%=$(MAKE)=@@@%%%' 2296_ACEOF 2297# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2298case `${MAKE-make} -f conftest.make 2>/dev/null` in 2299 *@@@%%%=?*=@@@%%%*) 2300 eval ac_cv_prog_make_${ac_make}_set=yes;; 2301 *) 2302 eval ac_cv_prog_make_${ac_make}_set=no;; 2303esac 2304rm -f conftest.make 2305fi 2306if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2307 { echo "$as_me:$LINENO: result: yes" >&5 2308echo "${ECHO_T}yes" >&6; } 2309 SET_MAKE= 2310else 2311 { echo "$as_me:$LINENO: result: no" >&5 2312echo "${ECHO_T}no" >&6; } 2313 SET_MAKE="MAKE=${MAKE-make}" 2314fi 2315 2316rm -rf .tst 2>/dev/null 2317mkdir .tst 2>/dev/null 2318if test -d .tst; then 2319 am__leading_dot=. 2320else 2321 am__leading_dot=_ 2322fi 2323rmdir .tst 2>/dev/null 2324 2325if test "`cd $srcdir && pwd`" != "`pwd`"; then 2326 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2327 # is not polluted with repeated "-I." 2328 am__isrc=' -I$(srcdir)' 2329 # test to see if srcdir already configured 2330 if test -f $srcdir/config.status; then 2331 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2332echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2333 { (exit 1); exit 1; }; } 2334 fi 2335fi 2336 2337# test whether we have cygpath 2338if test -z "$CYGPATH_W"; then 2339 if (cygpath --version) >/dev/null 2>/dev/null; then 2340 CYGPATH_W='cygpath -w' 2341 else 2342 CYGPATH_W=echo 2343 fi 2344fi 2345 2346 2347# Define the identity of the package. 2348 PACKAGE='xf86-input-mouse' 2349 VERSION='1.4.0' 2350 2351 2352cat >>confdefs.h <<_ACEOF 2353#define PACKAGE "$PACKAGE" 2354_ACEOF 2355 2356 2357cat >>confdefs.h <<_ACEOF 2358#define VERSION "$VERSION" 2359_ACEOF 2360 2361# Some tools Automake needs. 2362 2363ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2364 2365 2366AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2367 2368 2369AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2370 2371 2372AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2373 2374 2375MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2376 2377install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2378 2379# Installed binaries are usually stripped using `strip' when the user 2380# run `make install-strip'. However `strip' might not be the right 2381# tool to use in cross-compilation environments, therefore Automake 2382# will honor the `STRIP' environment variable to overrule this program. 2383if test "$cross_compiling" != no; then 2384 if test -n "$ac_tool_prefix"; then 2385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2386set dummy ${ac_tool_prefix}strip; ac_word=$2 2387{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2389if test "${ac_cv_prog_STRIP+set}" = set; then 2390 echo $ECHO_N "(cached) $ECHO_C" >&6 2391else 2392 if test -n "$STRIP"; then 2393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2394else 2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2396for as_dir in $PATH 2397do 2398 IFS=$as_save_IFS 2399 test -z "$as_dir" && as_dir=. 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2402 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2404 break 2 2405 fi 2406done 2407done 2408IFS=$as_save_IFS 2409 2410fi 2411fi 2412STRIP=$ac_cv_prog_STRIP 2413if test -n "$STRIP"; then 2414 { echo "$as_me:$LINENO: result: $STRIP" >&5 2415echo "${ECHO_T}$STRIP" >&6; } 2416else 2417 { echo "$as_me:$LINENO: result: no" >&5 2418echo "${ECHO_T}no" >&6; } 2419fi 2420 2421 2422fi 2423if test -z "$ac_cv_prog_STRIP"; then 2424 ac_ct_STRIP=$STRIP 2425 # Extract the first word of "strip", so it can be a program name with args. 2426set dummy strip; ac_word=$2 2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2429if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2430 echo $ECHO_N "(cached) $ECHO_C" >&6 2431else 2432 if test -n "$ac_ct_STRIP"; then 2433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2434else 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2442 ac_cv_prog_ac_ct_STRIP="strip" 2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2444 break 2 2445 fi 2446done 2447done 2448IFS=$as_save_IFS 2449 2450fi 2451fi 2452ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2453if test -n "$ac_ct_STRIP"; then 2454 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2455echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2456else 2457 { echo "$as_me:$LINENO: result: no" >&5 2458echo "${ECHO_T}no" >&6; } 2459fi 2460 2461 if test "x$ac_ct_STRIP" = x; then 2462 STRIP=":" 2463 else 2464 case $cross_compiling:$ac_tool_warned in 2465yes:) 2466{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2467whose name does not start with the host triplet. If you think this 2468configuration is useful to you, please write to autoconf@gnu.org." >&5 2469echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2470whose name does not start with the host triplet. If you think this 2471configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2472ac_tool_warned=yes ;; 2473esac 2474 STRIP=$ac_ct_STRIP 2475 fi 2476else 2477 STRIP="$ac_cv_prog_STRIP" 2478fi 2479 2480fi 2481INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2482 2483# We need awk for the "check" target. The system "awk" is bad on 2484# some platforms. 2485# Always define AMTAR for backward compatibility. 2486 2487AMTAR=${AMTAR-"${am_missing_run}tar"} 2488 2489am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2490 2491 2492 2493 2494 2495 2496{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2497echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2498 # Check whether --enable-maintainer-mode was given. 2499if test "${enable_maintainer_mode+set}" = set; then 2500 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2501else 2502 USE_MAINTAINER_MODE=no 2503fi 2504 2505 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2506echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2507 if test $USE_MAINTAINER_MODE = yes; then 2508 MAINTAINER_MODE_TRUE= 2509 MAINTAINER_MODE_FALSE='#' 2510else 2511 MAINTAINER_MODE_TRUE='#' 2512 MAINTAINER_MODE_FALSE= 2513fi 2514 2515 MAINT=$MAINTAINER_MODE_TRUE 2516 2517 2518 2519DRIVER_NAME=mouse 2520 2521 2522ac_config_headers="$ac_config_headers config.h" 2523 2524 2525# Checks for programs. 2526# Check whether --enable-static was given. 2527if test "${enable_static+set}" = set; then 2528 enableval=$enable_static; p=${PACKAGE-default} 2529 case $enableval in 2530 yes) enable_static=yes ;; 2531 no) enable_static=no ;; 2532 *) 2533 enable_static=no 2534 # Look at the argument we got. We use all the common list separators. 2535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2536 for pkg in $enableval; do 2537 IFS="$lt_save_ifs" 2538 if test "X$pkg" = "X$p"; then 2539 enable_static=yes 2540 fi 2541 done 2542 IFS="$lt_save_ifs" 2543 ;; 2544 esac 2545else 2546 enable_static=no 2547fi 2548 2549 2550 2551# Check whether --enable-shared was given. 2552if test "${enable_shared+set}" = set; then 2553 enableval=$enable_shared; p=${PACKAGE-default} 2554 case $enableval in 2555 yes) enable_shared=yes ;; 2556 no) enable_shared=no ;; 2557 *) 2558 enable_shared=no 2559 # Look at the argument we got. We use all the common list separators. 2560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2561 for pkg in $enableval; do 2562 IFS="$lt_save_ifs" 2563 if test "X$pkg" = "X$p"; then 2564 enable_shared=yes 2565 fi 2566 done 2567 IFS="$lt_save_ifs" 2568 ;; 2569 esac 2570else 2571 enable_shared=yes 2572fi 2573 2574 2575# Check whether --enable-fast-install was given. 2576if test "${enable_fast_install+set}" = set; then 2577 enableval=$enable_fast_install; p=${PACKAGE-default} 2578 case $enableval in 2579 yes) enable_fast_install=yes ;; 2580 no) enable_fast_install=no ;; 2581 *) 2582 enable_fast_install=no 2583 # Look at the argument we got. We use all the common list separators. 2584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2585 for pkg in $enableval; do 2586 IFS="$lt_save_ifs" 2587 if test "X$pkg" = "X$p"; then 2588 enable_fast_install=yes 2589 fi 2590 done 2591 IFS="$lt_save_ifs" 2592 ;; 2593 esac 2594else 2595 enable_fast_install=yes 2596fi 2597 2598 2599# Make sure we can run config.sub. 2600$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2601 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2602echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2603 { (exit 1); exit 1; }; } 2604 2605{ echo "$as_me:$LINENO: checking build system type" >&5 2606echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2607if test "${ac_cv_build+set}" = set; then 2608 echo $ECHO_N "(cached) $ECHO_C" >&6 2609else 2610 ac_build_alias=$build_alias 2611test "x$ac_build_alias" = x && 2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2613test "x$ac_build_alias" = x && 2614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2615echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2616 { (exit 1); exit 1; }; } 2617ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2618 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2619echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2620 { (exit 1); exit 1; }; } 2621 2622fi 2623{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2624echo "${ECHO_T}$ac_cv_build" >&6; } 2625case $ac_cv_build in 2626*-*-*) ;; 2627*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2628echo "$as_me: error: invalid value of canonical build" >&2;} 2629 { (exit 1); exit 1; }; };; 2630esac 2631build=$ac_cv_build 2632ac_save_IFS=$IFS; IFS='-' 2633set x $ac_cv_build 2634shift 2635build_cpu=$1 2636build_vendor=$2 2637shift; shift 2638# Remember, the first character of IFS is used to create $*, 2639# except with old shells: 2640build_os=$* 2641IFS=$ac_save_IFS 2642case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2643 2644 2645{ echo "$as_me:$LINENO: checking host system type" >&5 2646echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2647if test "${ac_cv_host+set}" = set; then 2648 echo $ECHO_N "(cached) $ECHO_C" >&6 2649else 2650 if test "x$host_alias" = x; then 2651 ac_cv_host=$ac_cv_build 2652else 2653 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2654 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2655echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2656 { (exit 1); exit 1; }; } 2657fi 2658 2659fi 2660{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2661echo "${ECHO_T}$ac_cv_host" >&6; } 2662case $ac_cv_host in 2663*-*-*) ;; 2664*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2665echo "$as_me: error: invalid value of canonical host" >&2;} 2666 { (exit 1); exit 1; }; };; 2667esac 2668host=$ac_cv_host 2669ac_save_IFS=$IFS; IFS='-' 2670set x $ac_cv_host 2671shift 2672host_cpu=$1 2673host_vendor=$2 2674shift; shift 2675# Remember, the first character of IFS is used to create $*, 2676# except with old shells: 2677host_os=$* 2678IFS=$ac_save_IFS 2679case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2680 2681 2682DEPDIR="${am__leading_dot}deps" 2683 2684ac_config_commands="$ac_config_commands depfiles" 2685 2686 2687am_make=${MAKE-make} 2688cat > confinc << 'END' 2689am__doit: 2690 @echo done 2691.PHONY: am__doit 2692END 2693# If we don't find an include directive, just comment out the code. 2694{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2695echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2696am__include="#" 2697am__quote= 2698_am_result=none 2699# First try GNU make style include. 2700echo "include confinc" > confmf 2701# We grep out `Entering directory' and `Leaving directory' 2702# messages which can occur if `w' ends up in MAKEFLAGS. 2703# In particular we don't look at `^make:' because GNU make might 2704# be invoked under some other name (usually "gmake"), in which 2705# case it prints its new name instead of `make'. 2706if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2707 am__include=include 2708 am__quote= 2709 _am_result=GNU 2710fi 2711# Now try BSD make style include. 2712if test "$am__include" = "#"; then 2713 echo '.include "confinc"' > confmf 2714 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2715 am__include=.include 2716 am__quote="\"" 2717 _am_result=BSD 2718 fi 2719fi 2720 2721 2722{ echo "$as_me:$LINENO: result: $_am_result" >&5 2723echo "${ECHO_T}$_am_result" >&6; } 2724rm -f confinc confmf 2725 2726# Check whether --enable-dependency-tracking was given. 2727if test "${enable_dependency_tracking+set}" = set; then 2728 enableval=$enable_dependency_tracking; 2729fi 2730 2731if test "x$enable_dependency_tracking" != xno; then 2732 am_depcomp="$ac_aux_dir/depcomp" 2733 AMDEPBACKSLASH='\' 2734fi 2735 if test "x$enable_dependency_tracking" != xno; then 2736 AMDEP_TRUE= 2737 AMDEP_FALSE='#' 2738else 2739 AMDEP_TRUE='#' 2740 AMDEP_FALSE= 2741fi 2742 2743 2744ac_ext=c 2745ac_cpp='$CPP $CPPFLAGS' 2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2748ac_compiler_gnu=$ac_cv_c_compiler_gnu 2749if test -n "$ac_tool_prefix"; then 2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2751set dummy ${ac_tool_prefix}gcc; ac_word=$2 2752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2754if test "${ac_cv_prog_CC+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 if test -n "$CC"; then 2758 ac_cv_prog_CC="$CC" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2767 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777CC=$ac_cv_prog_CC 2778if test -n "$CC"; then 2779 { echo "$as_me:$LINENO: result: $CC" >&5 2780echo "${ECHO_T}$CC" >&6; } 2781else 2782 { echo "$as_me:$LINENO: result: no" >&5 2783echo "${ECHO_T}no" >&6; } 2784fi 2785 2786 2787fi 2788if test -z "$ac_cv_prog_CC"; then 2789 ac_ct_CC=$CC 2790 # Extract the first word of "gcc", so it can be a program name with args. 2791set dummy gcc; ac_word=$2 2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2795 echo $ECHO_N "(cached) $ECHO_C" >&6 2796else 2797 if test -n "$ac_ct_CC"; then 2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2807 ac_cv_prog_ac_ct_CC="gcc" 2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817ac_ct_CC=$ac_cv_prog_ac_ct_CC 2818if test -n "$ac_ct_CC"; then 2819 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2820echo "${ECHO_T}$ac_ct_CC" >&6; } 2821else 2822 { echo "$as_me:$LINENO: result: no" >&5 2823echo "${ECHO_T}no" >&6; } 2824fi 2825 2826 if test "x$ac_ct_CC" = x; then 2827 CC="" 2828 else 2829 case $cross_compiling:$ac_tool_warned in 2830yes:) 2831{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2832whose name does not start with the host triplet. If you think this 2833configuration is useful to you, please write to autoconf@gnu.org." >&5 2834echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2835whose name does not start with the host triplet. If you think this 2836configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2837ac_tool_warned=yes ;; 2838esac 2839 CC=$ac_ct_CC 2840 fi 2841else 2842 CC="$ac_cv_prog_CC" 2843fi 2844 2845if test -z "$CC"; then 2846 if test -n "$ac_tool_prefix"; then 2847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2848set dummy ${ac_tool_prefix}cc; ac_word=$2 2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851if test "${ac_cv_prog_CC+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 ac_cv_prog_CC="${ac_tool_prefix}cc" 2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874CC=$ac_cv_prog_CC 2875if test -n "$CC"; then 2876 { echo "$as_me:$LINENO: result: $CC" >&5 2877echo "${ECHO_T}$CC" >&6; } 2878else 2879 { echo "$as_me:$LINENO: result: no" >&5 2880echo "${ECHO_T}no" >&6; } 2881fi 2882 2883 2884 fi 2885fi 2886if test -z "$CC"; then 2887 # Extract the first word of "cc", so it can be a program name with args. 2888set dummy cc; ac_word=$2 2889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2891if test "${ac_cv_prog_CC+set}" = set; then 2892 echo $ECHO_N "(cached) $ECHO_C" >&6 2893else 2894 if test -n "$CC"; then 2895 ac_cv_prog_CC="$CC" # Let the user override the test. 2896else 2897 ac_prog_rejected=no 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2906 ac_prog_rejected=yes 2907 continue 2908 fi 2909 ac_cv_prog_CC="cc" 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 2917if test $ac_prog_rejected = yes; then 2918 # We found a bogon in the path, so make sure we never use it. 2919 set dummy $ac_cv_prog_CC 2920 shift 2921 if test $# != 0; then 2922 # We chose a different compiler from the bogus one. 2923 # However, it has the same basename, so the bogon will be chosen 2924 # first if we set CC to just the basename; use the full file name. 2925 shift 2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2927 fi 2928fi 2929fi 2930fi 2931CC=$ac_cv_prog_CC 2932if test -n "$CC"; then 2933 { echo "$as_me:$LINENO: result: $CC" >&5 2934echo "${ECHO_T}$CC" >&6; } 2935else 2936 { echo "$as_me:$LINENO: result: no" >&5 2937echo "${ECHO_T}no" >&6; } 2938fi 2939 2940 2941fi 2942if test -z "$CC"; then 2943 if test -n "$ac_tool_prefix"; then 2944 for ac_prog in cl.exe 2945 do 2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2948{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2950if test "${ac_cv_prog_CC+set}" = set; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&6 2952else 2953 if test -n "$CC"; then 2954 ac_cv_prog_CC="$CC" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973CC=$ac_cv_prog_CC 2974if test -n "$CC"; then 2975 { echo "$as_me:$LINENO: result: $CC" >&5 2976echo "${ECHO_T}$CC" >&6; } 2977else 2978 { echo "$as_me:$LINENO: result: no" >&5 2979echo "${ECHO_T}no" >&6; } 2980fi 2981 2982 2983 test -n "$CC" && break 2984 done 2985fi 2986if test -z "$CC"; then 2987 ac_ct_CC=$CC 2988 for ac_prog in cl.exe 2989do 2990 # Extract the first word of "$ac_prog", so it can be a program name with args. 2991set dummy $ac_prog; ac_word=$2 2992{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2994if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2995 echo $ECHO_N "(cached) $ECHO_C" >&6 2996else 2997 if test -n "$ac_ct_CC"; then 2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3007 ac_cv_prog_ac_ct_CC="$ac_prog" 3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017ac_ct_CC=$ac_cv_prog_ac_ct_CC 3018if test -n "$ac_ct_CC"; then 3019 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3020echo "${ECHO_T}$ac_ct_CC" >&6; } 3021else 3022 { echo "$as_me:$LINENO: result: no" >&5 3023echo "${ECHO_T}no" >&6; } 3024fi 3025 3026 3027 test -n "$ac_ct_CC" && break 3028done 3029 3030 if test "x$ac_ct_CC" = x; then 3031 CC="" 3032 else 3033 case $cross_compiling:$ac_tool_warned in 3034yes:) 3035{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3036whose name does not start with the host triplet. If you think this 3037configuration is useful to you, please write to autoconf@gnu.org." >&5 3038echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3039whose name does not start with the host triplet. If you think this 3040configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3041ac_tool_warned=yes ;; 3042esac 3043 CC=$ac_ct_CC 3044 fi 3045fi 3046 3047fi 3048 3049 3050test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3051See \`config.log' for more details." >&5 3052echo "$as_me: error: no acceptable C compiler found in \$PATH 3053See \`config.log' for more details." >&2;} 3054 { (exit 1); exit 1; }; } 3055 3056# Provide some information about the compiler. 3057echo "$as_me:$LINENO: checking for C compiler version" >&5 3058ac_compiler=`set X $ac_compile; echo $2` 3059{ (ac_try="$ac_compiler --version >&5" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3065 (eval "$ac_compiler --version >&5") 2>&5 3066 ac_status=$? 3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3068 (exit $ac_status); } 3069{ (ac_try="$ac_compiler -v >&5" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3075 (eval "$ac_compiler -v >&5") 2>&5 3076 ac_status=$? 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); } 3079{ (ac_try="$ac_compiler -V >&5" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3085 (eval "$ac_compiler -V >&5") 2>&5 3086 ac_status=$? 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); } 3089 3090cat >conftest.$ac_ext <<_ACEOF 3091/* confdefs.h. */ 3092_ACEOF 3093cat confdefs.h >>conftest.$ac_ext 3094cat >>conftest.$ac_ext <<_ACEOF 3095/* end confdefs.h. */ 3096 3097int 3098main () 3099{ 3100 3101 ; 3102 return 0; 3103} 3104_ACEOF 3105ac_clean_files_save=$ac_clean_files 3106ac_clean_files="$ac_clean_files a.out a.exe b.out" 3107# Try to create an executable without -o first, disregard a.out. 3108# It will help us diagnose broken compilers, and finding out an intuition 3109# of exeext. 3110{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3111echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3112ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3113# 3114# List of possible output files, starting from the most likely. 3115# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3116# only as a last resort. b.out is created by i960 compilers. 3117ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3118# 3119# The IRIX 6 linker writes into existing files which may not be 3120# executable, retaining their permissions. Remove them first so a 3121# subsequent execution test works. 3122ac_rmfiles= 3123for ac_file in $ac_files 3124do 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3127 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3128 esac 3129done 3130rm -f $ac_rmfiles 3131 3132if { (ac_try="$ac_link_default" 3133case "(($ac_try" in 3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3135 *) ac_try_echo=$ac_try;; 3136esac 3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3138 (eval "$ac_link_default") 2>&5 3139 ac_status=$? 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); }; then 3142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3143# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3144# in a Makefile. We should not override ac_cv_exeext if it was cached, 3145# so that the user can short-circuit this test for compilers unknown to 3146# Autoconf. 3147for ac_file in $ac_files '' 3148do 3149 test -f "$ac_file" || continue 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3152 ;; 3153 [ab].out ) 3154 # We found the default executable, but exeext='' is most 3155 # certainly right. 3156 break;; 3157 *.* ) 3158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3159 then :; else 3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3161 fi 3162 # We set ac_cv_exeext here because the later test for it is not 3163 # safe: cross compilers may not add the suffix if given an `-o' 3164 # argument, so we may need to know it at that point already. 3165 # Even if this section looks crufty: it has the advantage of 3166 # actually working. 3167 break;; 3168 * ) 3169 break;; 3170 esac 3171done 3172test "$ac_cv_exeext" = no && ac_cv_exeext= 3173 3174else 3175 ac_file='' 3176fi 3177 3178{ echo "$as_me:$LINENO: result: $ac_file" >&5 3179echo "${ECHO_T}$ac_file" >&6; } 3180if test -z "$ac_file"; then 3181 echo "$as_me: failed program was:" >&5 3182sed 's/^/| /' conftest.$ac_ext >&5 3183 3184{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3185See \`config.log' for more details." >&5 3186echo "$as_me: error: C compiler cannot create executables 3187See \`config.log' for more details." >&2;} 3188 { (exit 77); exit 77; }; } 3189fi 3190 3191ac_exeext=$ac_cv_exeext 3192 3193# Check that the compiler produces executables we can run. If not, either 3194# the compiler is broken, or we cross compile. 3195{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3196echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3197# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3198# If not cross compiling, check that we can run a simple program. 3199if test "$cross_compiling" != yes; then 3200 if { ac_try='./$ac_file' 3201 { (case "(($ac_try" in 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203 *) ac_try_echo=$ac_try;; 3204esac 3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3206 (eval "$ac_try") 2>&5 3207 ac_status=$? 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); }; }; then 3210 cross_compiling=no 3211 else 3212 if test "$cross_compiling" = maybe; then 3213 cross_compiling=yes 3214 else 3215 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3216If you meant to cross compile, use \`--host'. 3217See \`config.log' for more details." >&5 3218echo "$as_me: error: cannot run C compiled programs. 3219If you meant to cross compile, use \`--host'. 3220See \`config.log' for more details." >&2;} 3221 { (exit 1); exit 1; }; } 3222 fi 3223 fi 3224fi 3225{ echo "$as_me:$LINENO: result: yes" >&5 3226echo "${ECHO_T}yes" >&6; } 3227 3228rm -f a.out a.exe conftest$ac_cv_exeext b.out 3229ac_clean_files=$ac_clean_files_save 3230# Check that the compiler produces executables we can run. If not, either 3231# the compiler is broken, or we cross compile. 3232{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3233echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3234{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3235echo "${ECHO_T}$cross_compiling" >&6; } 3236 3237{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3238echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3239if { (ac_try="$ac_link" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3245 (eval "$ac_link") 2>&5 3246 ac_status=$? 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); }; then 3249 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3250# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3251# work properly (i.e., refer to `conftest.exe'), while it won't with 3252# `rm'. 3253for ac_file in conftest.exe conftest conftest.*; do 3254 test -f "$ac_file" || continue 3255 case $ac_file in 3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3258 break;; 3259 * ) break;; 3260 esac 3261done 3262else 3263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3264See \`config.log' for more details." >&5 3265echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3266See \`config.log' for more details." >&2;} 3267 { (exit 1); exit 1; }; } 3268fi 3269 3270rm -f conftest$ac_cv_exeext 3271{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3272echo "${ECHO_T}$ac_cv_exeext" >&6; } 3273 3274rm -f conftest.$ac_ext 3275EXEEXT=$ac_cv_exeext 3276ac_exeext=$EXEEXT 3277{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3278echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3279if test "${ac_cv_objext+set}" = set; then 3280 echo $ECHO_N "(cached) $ECHO_C" >&6 3281else 3282 cat >conftest.$ac_ext <<_ACEOF 3283/* confdefs.h. */ 3284_ACEOF 3285cat confdefs.h >>conftest.$ac_ext 3286cat >>conftest.$ac_ext <<_ACEOF 3287/* end confdefs.h. */ 3288 3289int 3290main () 3291{ 3292 3293 ; 3294 return 0; 3295} 3296_ACEOF 3297rm -f conftest.o conftest.obj 3298if { (ac_try="$ac_compile" 3299case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3304 (eval "$ac_compile") 2>&5 3305 ac_status=$? 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); }; then 3308 for ac_file in conftest.o conftest.obj conftest.*; do 3309 test -f "$ac_file" || continue; 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3313 break;; 3314 esac 3315done 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3321See \`config.log' for more details." >&5 3322echo "$as_me: error: cannot compute suffix of object files: cannot compile 3323See \`config.log' for more details." >&2;} 3324 { (exit 1); exit 1; }; } 3325fi 3326 3327rm -f conftest.$ac_cv_objext conftest.$ac_ext 3328fi 3329{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3330echo "${ECHO_T}$ac_cv_objext" >&6; } 3331OBJEXT=$ac_cv_objext 3332ac_objext=$OBJEXT 3333{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3334echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3335if test "${ac_cv_c_compiler_gnu+set}" = set; then 3336 echo $ECHO_N "(cached) $ECHO_C" >&6 3337else 3338 cat >conftest.$ac_ext <<_ACEOF 3339/* confdefs.h. */ 3340_ACEOF 3341cat confdefs.h >>conftest.$ac_ext 3342cat >>conftest.$ac_ext <<_ACEOF 3343/* end confdefs.h. */ 3344 3345int 3346main () 3347{ 3348#ifndef __GNUC__ 3349 choke me 3350#endif 3351 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356rm -f conftest.$ac_objext 3357if { (ac_try="$ac_compile" 3358case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361esac 3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3363 (eval "$ac_compile") 2>conftest.er1 3364 ac_status=$? 3365 grep -v '^ *+' conftest.er1 >conftest.err 3366 rm -f conftest.er1 3367 cat conftest.err >&5 3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); } && { 3370 test -z "$ac_c_werror_flag" || 3371 test ! -s conftest.err 3372 } && test -s conftest.$ac_objext; then 3373 ac_compiler_gnu=yes 3374else 3375 echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 ac_compiler_gnu=no 3379fi 3380 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3382ac_cv_c_compiler_gnu=$ac_compiler_gnu 3383 3384fi 3385{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3386echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3387GCC=`test $ac_compiler_gnu = yes && echo yes` 3388ac_test_CFLAGS=${CFLAGS+set} 3389ac_save_CFLAGS=$CFLAGS 3390{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3391echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3392if test "${ac_cv_prog_cc_g+set}" = set; then 3393 echo $ECHO_N "(cached) $ECHO_C" >&6 3394else 3395 ac_save_c_werror_flag=$ac_c_werror_flag 3396 ac_c_werror_flag=yes 3397 ac_cv_prog_cc_g=no 3398 CFLAGS="-g" 3399 cat >conftest.$ac_ext <<_ACEOF 3400/* confdefs.h. */ 3401_ACEOF 3402cat confdefs.h >>conftest.$ac_ext 3403cat >>conftest.$ac_ext <<_ACEOF 3404/* end confdefs.h. */ 3405 3406int 3407main () 3408{ 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414rm -f conftest.$ac_objext 3415if { (ac_try="$ac_compile" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3421 (eval "$ac_compile") 2>conftest.er1 3422 ac_status=$? 3423 grep -v '^ *+' conftest.er1 >conftest.err 3424 rm -f conftest.er1 3425 cat conftest.err >&5 3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3427 (exit $ac_status); } && { 3428 test -z "$ac_c_werror_flag" || 3429 test ! -s conftest.err 3430 } && test -s conftest.$ac_objext; then 3431 ac_cv_prog_cc_g=yes 3432else 3433 echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436 CFLAGS="" 3437 cat >conftest.$ac_ext <<_ACEOF 3438/* confdefs.h. */ 3439_ACEOF 3440cat confdefs.h >>conftest.$ac_ext 3441cat >>conftest.$ac_ext <<_ACEOF 3442/* end confdefs.h. */ 3443 3444int 3445main () 3446{ 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452rm -f conftest.$ac_objext 3453if { (ac_try="$ac_compile" 3454case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3459 (eval "$ac_compile") 2>conftest.er1 3460 ac_status=$? 3461 grep -v '^ *+' conftest.er1 >conftest.err 3462 rm -f conftest.er1 3463 cat conftest.err >&5 3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3465 (exit $ac_status); } && { 3466 test -z "$ac_c_werror_flag" || 3467 test ! -s conftest.err 3468 } && test -s conftest.$ac_objext; then 3469 : 3470else 3471 echo "$as_me: failed program was:" >&5 3472sed 's/^/| /' conftest.$ac_ext >&5 3473 3474 ac_c_werror_flag=$ac_save_c_werror_flag 3475 CFLAGS="-g" 3476 cat >conftest.$ac_ext <<_ACEOF 3477/* confdefs.h. */ 3478_ACEOF 3479cat confdefs.h >>conftest.$ac_ext 3480cat >>conftest.$ac_ext <<_ACEOF 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491rm -f conftest.$ac_objext 3492if { (ac_try="$ac_compile" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3498 (eval "$ac_compile") 2>conftest.er1 3499 ac_status=$? 3500 grep -v '^ *+' conftest.er1 >conftest.err 3501 rm -f conftest.er1 3502 cat conftest.err >&5 3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3504 (exit $ac_status); } && { 3505 test -z "$ac_c_werror_flag" || 3506 test ! -s conftest.err 3507 } && test -s conftest.$ac_objext; then 3508 ac_cv_prog_cc_g=yes 3509else 3510 echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513 3514fi 3515 3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3517fi 3518 3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3520fi 3521 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523 ac_c_werror_flag=$ac_save_c_werror_flag 3524fi 3525{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3526echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3527if test "$ac_test_CFLAGS" = set; then 3528 CFLAGS=$ac_save_CFLAGS 3529elif test $ac_cv_prog_cc_g = yes; then 3530 if test "$GCC" = yes; then 3531 CFLAGS="-g -O2" 3532 else 3533 CFLAGS="-g" 3534 fi 3535else 3536 if test "$GCC" = yes; then 3537 CFLAGS="-O2" 3538 else 3539 CFLAGS= 3540 fi 3541fi 3542{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3543echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3544if test "${ac_cv_prog_cc_c89+set}" = set; then 3545 echo $ECHO_N "(cached) $ECHO_C" >&6 3546else 3547 ac_cv_prog_cc_c89=no 3548ac_save_CC=$CC 3549cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555#include <stdarg.h> 3556#include <stdio.h> 3557#include <sys/types.h> 3558#include <sys/stat.h> 3559/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3560struct buf { int x; }; 3561FILE * (*rcsopen) (struct buf *, struct stat *, int); 3562static char *e (p, i) 3563 char **p; 3564 int i; 3565{ 3566 return p[i]; 3567} 3568static char *f (char * (*g) (char **, int), char **p, ...) 3569{ 3570 char *s; 3571 va_list v; 3572 va_start (v,p); 3573 s = g (p, va_arg (v,int)); 3574 va_end (v); 3575 return s; 3576} 3577 3578/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3579 function prototypes and stuff, but not '\xHH' hex character constants. 3580 These don't provoke an error unfortunately, instead are silently treated 3581 as 'x'. The following induces an error, until -std is added to get 3582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3583 array size at least. It's necessary to write '\x00'==0 to get something 3584 that's true only with -std. */ 3585int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3586 3587/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3588 inside strings and character constants. */ 3589#define FOO(x) 'x' 3590int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3591 3592int test (int i, double x); 3593struct s1 {int (*f) (int a);}; 3594struct s2 {int (*f) (double a);}; 3595int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3596int argc; 3597char **argv; 3598int 3599main () 3600{ 3601return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3608do 3609 CC="$ac_save_CC $ac_arg" 3610 rm -f conftest.$ac_objext 3611if { (ac_try="$ac_compile" 3612case "(($ac_try" in 3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3614 *) ac_try_echo=$ac_try;; 3615esac 3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3617 (eval "$ac_compile") 2>conftest.er1 3618 ac_status=$? 3619 grep -v '^ *+' conftest.er1 >conftest.err 3620 rm -f conftest.er1 3621 cat conftest.err >&5 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); } && { 3624 test -z "$ac_c_werror_flag" || 3625 test ! -s conftest.err 3626 } && test -s conftest.$ac_objext; then 3627 ac_cv_prog_cc_c89=$ac_arg 3628else 3629 echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632 3633fi 3634 3635rm -f core conftest.err conftest.$ac_objext 3636 test "x$ac_cv_prog_cc_c89" != "xno" && break 3637done 3638rm -f conftest.$ac_ext 3639CC=$ac_save_CC 3640 3641fi 3642# AC_CACHE_VAL 3643case "x$ac_cv_prog_cc_c89" in 3644 x) 3645 { echo "$as_me:$LINENO: result: none needed" >&5 3646echo "${ECHO_T}none needed" >&6; } ;; 3647 xno) 3648 { echo "$as_me:$LINENO: result: unsupported" >&5 3649echo "${ECHO_T}unsupported" >&6; } ;; 3650 *) 3651 CC="$CC $ac_cv_prog_cc_c89" 3652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3653echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3654esac 3655 3656 3657ac_ext=c 3658ac_cpp='$CPP $CPPFLAGS' 3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3661ac_compiler_gnu=$ac_cv_c_compiler_gnu 3662 3663depcc="$CC" am_compiler_list= 3664 3665{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3666echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3667if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3668 echo $ECHO_N "(cached) $ECHO_C" >&6 3669else 3670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3671 # We make a subdir and do the tests there. Otherwise we can end up 3672 # making bogus files that we don't know about and never remove. For 3673 # instance it was reported that on HP-UX the gcc test will end up 3674 # making a dummy file named `D' -- because `-MD' means `put the output 3675 # in D'. 3676 mkdir conftest.dir 3677 # Copy depcomp to subdir because otherwise we won't find it if we're 3678 # using a relative directory. 3679 cp "$am_depcomp" conftest.dir 3680 cd conftest.dir 3681 # We will build objects and dependencies in a subdirectory because 3682 # it helps to detect inapplicable dependency modes. For instance 3683 # both Tru64's cc and ICC support -MD to output dependencies as a 3684 # side effect of compilation, but ICC will put the dependencies in 3685 # the current directory while Tru64 will put them in the object 3686 # directory. 3687 mkdir sub 3688 3689 am_cv_CC_dependencies_compiler_type=none 3690 if test "$am_compiler_list" = ""; then 3691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3692 fi 3693 for depmode in $am_compiler_list; do 3694 # Setup a source with many dependencies, because some compilers 3695 # like to wrap large dependency lists on column 80 (with \), and 3696 # we should not choose a depcomp mode which is confused by this. 3697 # 3698 # We need to recreate these files for each test, as the compiler may 3699 # overwrite some of them when testing with obscure command lines. 3700 # This happens at least with the AIX C compiler. 3701 : > sub/conftest.c 3702 for i in 1 2 3 4 5 6; do 3703 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3705 # Solaris 8's {/usr,}/bin/sh. 3706 touch sub/conftst$i.h 3707 done 3708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3709 3710 case $depmode in 3711 nosideeffect) 3712 # after this tag, mechanisms are not by side-effect, so they'll 3713 # only be used when explicitly requested 3714 if test "x$enable_dependency_tracking" = xyes; then 3715 continue 3716 else 3717 break 3718 fi 3719 ;; 3720 none) break ;; 3721 esac 3722 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3723 # mode. It turns out that the SunPro C++ compiler does not properly 3724 # handle `-M -o', and we need to detect this. 3725 if depmode=$depmode \ 3726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3729 >/dev/null 2>conftest.err && 3730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3732 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3734 # icc doesn't choke on unknown options, it will just issue warnings 3735 # or remarks (even with -Werror). So we grep stderr for any message 3736 # that says an option was ignored or not supported. 3737 # When given -MP, icc 7.0 and 7.1 complain thusly: 3738 # icc: Command line warning: ignoring option '-M'; no argument required 3739 # The diagnosis changed in icc 8.0: 3740 # icc: Command line remark: option '-MP' not supported 3741 if (grep 'ignoring option' conftest.err || 3742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3743 am_cv_CC_dependencies_compiler_type=$depmode 3744 break 3745 fi 3746 fi 3747 done 3748 3749 cd .. 3750 rm -rf conftest.dir 3751else 3752 am_cv_CC_dependencies_compiler_type=none 3753fi 3754 3755fi 3756{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3757echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3758CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3759 3760 if 3761 test "x$enable_dependency_tracking" != xno \ 3762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3763 am__fastdepCC_TRUE= 3764 am__fastdepCC_FALSE='#' 3765else 3766 am__fastdepCC_TRUE='#' 3767 am__fastdepCC_FALSE= 3768fi 3769 3770 3771{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3772echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3773if test "${lt_cv_path_SED+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 # Loop through the user's path and test for sed and gsed. 3777# Then use that list of sed's as ones to test for truncation. 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 test -z "$as_dir" && as_dir=. 3783 for lt_ac_prog in sed gsed; do 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3786 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3787 fi 3788 done 3789 done 3790done 3791lt_ac_max=0 3792lt_ac_count=0 3793# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3794# along with /bin/sed that truncates output. 3795for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3796 test ! -f $lt_ac_sed && continue 3797 cat /dev/null > conftest.in 3798 lt_ac_count=0 3799 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3800 # Check for GNU sed and select it if it is found. 3801 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3802 lt_cv_path_SED=$lt_ac_sed 3803 break 3804 fi 3805 while true; do 3806 cat conftest.in conftest.in >conftest.tmp 3807 mv conftest.tmp conftest.in 3808 cp conftest.in conftest.nl 3809 echo >>conftest.nl 3810 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3811 cmp -s conftest.out conftest.nl || break 3812 # 10000 chars as input seems more than enough 3813 test $lt_ac_count -gt 10 && break 3814 lt_ac_count=`expr $lt_ac_count + 1` 3815 if test $lt_ac_count -gt $lt_ac_max; then 3816 lt_ac_max=$lt_ac_count 3817 lt_cv_path_SED=$lt_ac_sed 3818 fi 3819 done 3820done 3821 3822fi 3823 3824SED=$lt_cv_path_SED 3825{ echo "$as_me:$LINENO: result: $SED" >&5 3826echo "${ECHO_T}$SED" >&6; } 3827 3828{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3829echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3830if test "${ac_cv_path_GREP+set}" = set; then 3831 echo $ECHO_N "(cached) $ECHO_C" >&6 3832else 3833 # Extract the first word of "grep ggrep" to use in msg output 3834if test -z "$GREP"; then 3835set dummy grep ggrep; ac_prog_name=$2 3836if test "${ac_cv_path_GREP+set}" = set; then 3837 echo $ECHO_N "(cached) $ECHO_C" >&6 3838else 3839 ac_path_GREP_found=false 3840# Loop through the user's path and test for each of PROGNAME-LIST 3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3843do 3844 IFS=$as_save_IFS 3845 test -z "$as_dir" && as_dir=. 3846 for ac_prog in grep ggrep; do 3847 for ac_exec_ext in '' $ac_executable_extensions; do 3848 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3849 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3850 # Check for GNU ac_path_GREP and select it if it is found. 3851 # Check for GNU $ac_path_GREP 3852case `"$ac_path_GREP" --version 2>&1` in 3853*GNU*) 3854 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3855*) 3856 ac_count=0 3857 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3858 while : 3859 do 3860 cat "conftest.in" "conftest.in" >"conftest.tmp" 3861 mv "conftest.tmp" "conftest.in" 3862 cp "conftest.in" "conftest.nl" 3863 echo 'GREP' >> "conftest.nl" 3864 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3866 ac_count=`expr $ac_count + 1` 3867 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3868 # Best one so far, save it but keep looking for a better one 3869 ac_cv_path_GREP="$ac_path_GREP" 3870 ac_path_GREP_max=$ac_count 3871 fi 3872 # 10*(2^10) chars as input seems more than enough 3873 test $ac_count -gt 10 && break 3874 done 3875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3876esac 3877 3878 3879 $ac_path_GREP_found && break 3 3880 done 3881done 3882 3883done 3884IFS=$as_save_IFS 3885 3886 3887fi 3888 3889GREP="$ac_cv_path_GREP" 3890if test -z "$GREP"; then 3891 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3892echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3893 { (exit 1); exit 1; }; } 3894fi 3895 3896else 3897 ac_cv_path_GREP=$GREP 3898fi 3899 3900 3901fi 3902{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3903echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3904 GREP="$ac_cv_path_GREP" 3905 3906 3907{ echo "$as_me:$LINENO: checking for egrep" >&5 3908echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3909if test "${ac_cv_path_EGREP+set}" = set; then 3910 echo $ECHO_N "(cached) $ECHO_C" >&6 3911else 3912 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3913 then ac_cv_path_EGREP="$GREP -E" 3914 else 3915 # Extract the first word of "egrep" to use in msg output 3916if test -z "$EGREP"; then 3917set dummy egrep; ac_prog_name=$2 3918if test "${ac_cv_path_EGREP+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920else 3921 ac_path_EGREP_found=false 3922# Loop through the user's path and test for each of PROGNAME-LIST 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_prog in egrep; do 3929 for ac_exec_ext in '' $ac_executable_extensions; do 3930 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3931 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3932 # Check for GNU ac_path_EGREP and select it if it is found. 3933 # Check for GNU $ac_path_EGREP 3934case `"$ac_path_EGREP" --version 2>&1` in 3935*GNU*) 3936 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3937*) 3938 ac_count=0 3939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3940 while : 3941 do 3942 cat "conftest.in" "conftest.in" >"conftest.tmp" 3943 mv "conftest.tmp" "conftest.in" 3944 cp "conftest.in" "conftest.nl" 3945 echo 'EGREP' >> "conftest.nl" 3946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3948 ac_count=`expr $ac_count + 1` 3949 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3950 # Best one so far, save it but keep looking for a better one 3951 ac_cv_path_EGREP="$ac_path_EGREP" 3952 ac_path_EGREP_max=$ac_count 3953 fi 3954 # 10*(2^10) chars as input seems more than enough 3955 test $ac_count -gt 10 && break 3956 done 3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3958esac 3959 3960 3961 $ac_path_EGREP_found && break 3 3962 done 3963done 3964 3965done 3966IFS=$as_save_IFS 3967 3968 3969fi 3970 3971EGREP="$ac_cv_path_EGREP" 3972if test -z "$EGREP"; then 3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3974echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3975 { (exit 1); exit 1; }; } 3976fi 3977 3978else 3979 ac_cv_path_EGREP=$EGREP 3980fi 3981 3982 3983 fi 3984fi 3985{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3986echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3987 EGREP="$ac_cv_path_EGREP" 3988 3989 3990 3991# Check whether --with-gnu-ld was given. 3992if test "${with_gnu_ld+set}" = set; then 3993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3994else 3995 with_gnu_ld=no 3996fi 3997 3998ac_prog=ld 3999if test "$GCC" = yes; then 4000 # Check if gcc -print-prog-name=ld gives a path. 4001 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4002echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4003 case $host in 4004 *-*-mingw*) 4005 # gcc leaves a trailing carriage return which upsets mingw 4006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4007 *) 4008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4009 esac 4010 case $ac_prog in 4011 # Accept absolute paths. 4012 [\\/]* | ?:[\\/]*) 4013 re_direlt='/[^/][^/]*/\.\./' 4014 # Canonicalize the pathname of ld 4015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4018 done 4019 test -z "$LD" && LD="$ac_prog" 4020 ;; 4021 "") 4022 # If it fails, then pretend we aren't using GCC. 4023 ac_prog=ld 4024 ;; 4025 *) 4026 # If it is relative, then search for the first ld in PATH. 4027 with_gnu_ld=unknown 4028 ;; 4029 esac 4030elif test "$with_gnu_ld" = yes; then 4031 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4032echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4033else 4034 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4035echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4036fi 4037if test "${lt_cv_path_LD+set}" = set; then 4038 echo $ECHO_N "(cached) $ECHO_C" >&6 4039else 4040 if test -z "$LD"; then 4041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4042 for ac_dir in $PATH; do 4043 IFS="$lt_save_ifs" 4044 test -z "$ac_dir" && ac_dir=. 4045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4046 lt_cv_path_LD="$ac_dir/$ac_prog" 4047 # Check to see if the program is GNU ld. I'd rather use --version, 4048 # but apparently some variants of GNU ld only accept -v. 4049 # Break only if it was the GNU/non-GNU ld that we prefer. 4050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4051 *GNU* | *'with BFD'*) 4052 test "$with_gnu_ld" != no && break 4053 ;; 4054 *) 4055 test "$with_gnu_ld" != yes && break 4056 ;; 4057 esac 4058 fi 4059 done 4060 IFS="$lt_save_ifs" 4061else 4062 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4063fi 4064fi 4065 4066LD="$lt_cv_path_LD" 4067if test -n "$LD"; then 4068 { echo "$as_me:$LINENO: result: $LD" >&5 4069echo "${ECHO_T}$LD" >&6; } 4070else 4071 { echo "$as_me:$LINENO: result: no" >&5 4072echo "${ECHO_T}no" >&6; } 4073fi 4074test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4075echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4076 { (exit 1); exit 1; }; } 4077{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4078echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4079if test "${lt_cv_prog_gnu_ld+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4083case `$LD -v 2>&1 </dev/null` in 4084*GNU* | *'with BFD'*) 4085 lt_cv_prog_gnu_ld=yes 4086 ;; 4087*) 4088 lt_cv_prog_gnu_ld=no 4089 ;; 4090esac 4091fi 4092{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4093echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4094with_gnu_ld=$lt_cv_prog_gnu_ld 4095 4096 4097{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4098echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4099if test "${lt_cv_ld_reload_flag+set}" = set; then 4100 echo $ECHO_N "(cached) $ECHO_C" >&6 4101else 4102 lt_cv_ld_reload_flag='-r' 4103fi 4104{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4105echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4106reload_flag=$lt_cv_ld_reload_flag 4107case $reload_flag in 4108"" | " "*) ;; 4109*) reload_flag=" $reload_flag" ;; 4110esac 4111reload_cmds='$LD$reload_flag -o $output$reload_objs' 4112case $host_os in 4113 darwin*) 4114 if test "$GCC" = yes; then 4115 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4116 else 4117 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4118 fi 4119 ;; 4120esac 4121 4122{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4123echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4124if test "${lt_cv_path_NM+set}" = set; then 4125 echo $ECHO_N "(cached) $ECHO_C" >&6 4126else 4127 if test -n "$NM"; then 4128 # Let the user override the test. 4129 lt_cv_path_NM="$NM" 4130else 4131 lt_nm_to_check="${ac_tool_prefix}nm" 4132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4133 lt_nm_to_check="$lt_nm_to_check nm" 4134 fi 4135 for lt_tmp_nm in $lt_nm_to_check; do 4136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4138 IFS="$lt_save_ifs" 4139 test -z "$ac_dir" && ac_dir=. 4140 tmp_nm="$ac_dir/$lt_tmp_nm" 4141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4142 # Check to see if the nm accepts a BSD-compat flag. 4143 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4144 # nm: unknown option "B" ignored 4145 # Tru64's nm complains that /dev/null is an invalid object file 4146 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4147 */dev/null* | *'Invalid file or object type'*) 4148 lt_cv_path_NM="$tmp_nm -B" 4149 break 4150 ;; 4151 *) 4152 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4153 */dev/null*) 4154 lt_cv_path_NM="$tmp_nm -p" 4155 break 4156 ;; 4157 *) 4158 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4159 continue # so that we can try to find one that supports BSD flags 4160 ;; 4161 esac 4162 ;; 4163 esac 4164 fi 4165 done 4166 IFS="$lt_save_ifs" 4167 done 4168 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4169fi 4170fi 4171{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4172echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4173NM="$lt_cv_path_NM" 4174 4175{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4176echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4177LN_S=$as_ln_s 4178if test "$LN_S" = "ln -s"; then 4179 { echo "$as_me:$LINENO: result: yes" >&5 4180echo "${ECHO_T}yes" >&6; } 4181else 4182 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4183echo "${ECHO_T}no, using $LN_S" >&6; } 4184fi 4185 4186{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4187echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4188if test "${lt_cv_deplibs_check_method+set}" = set; then 4189 echo $ECHO_N "(cached) $ECHO_C" >&6 4190else 4191 lt_cv_file_magic_cmd='$MAGIC_CMD' 4192lt_cv_file_magic_test_file= 4193lt_cv_deplibs_check_method='unknown' 4194# Need to set the preceding variable on all platforms that support 4195# interlibrary dependencies. 4196# 'none' -- dependencies not supported. 4197# `unknown' -- same as none, but documents that we really don't know. 4198# 'pass_all' -- all dependencies passed with no checks. 4199# 'test_compile' -- check by making test program. 4200# 'file_magic [[regex]]' -- check by looking for files in library path 4201# which responds to the $file_magic_cmd with a given extended regex. 4202# If you have `file' or equivalent on your system and you're not sure 4203# whether `pass_all' will *always* work, you probably want this one. 4204 4205case $host_os in 4206aix4* | aix5*) 4207 lt_cv_deplibs_check_method=pass_all 4208 ;; 4209 4210beos*) 4211 lt_cv_deplibs_check_method=pass_all 4212 ;; 4213 4214bsdi[45]*) 4215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4216 lt_cv_file_magic_cmd='/usr/bin/file -L' 4217 lt_cv_file_magic_test_file=/shlib/libc.so 4218 ;; 4219 4220cygwin*) 4221 # func_win32_libid is a shell function defined in ltmain.sh 4222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4223 lt_cv_file_magic_cmd='func_win32_libid' 4224 ;; 4225 4226mingw* | pw32*) 4227 # Base MSYS/MinGW do not provide the 'file' command needed by 4228 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4230 lt_cv_file_magic_cmd='$OBJDUMP -f' 4231 ;; 4232 4233darwin* | rhapsody*) 4234 lt_cv_deplibs_check_method=pass_all 4235 ;; 4236 4237freebsd* | kfreebsd*-gnu | dragonfly*) 4238 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4239 case $host_cpu in 4240 i*86 ) 4241 # Not sure whether the presence of OpenBSD here was a mistake. 4242 # Let's accept both of them until this is cleared up. 4243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4244 lt_cv_file_magic_cmd=/usr/bin/file 4245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4246 ;; 4247 esac 4248 else 4249 lt_cv_deplibs_check_method=pass_all 4250 fi 4251 ;; 4252 4253gnu*) 4254 lt_cv_deplibs_check_method=pass_all 4255 ;; 4256 4257hpux10.20* | hpux11*) 4258 lt_cv_file_magic_cmd=/usr/bin/file 4259 case $host_cpu in 4260 ia64*) 4261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4263 ;; 4264 hppa*64*) 4265 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]' 4266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4267 ;; 4268 *) 4269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4270 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4271 ;; 4272 esac 4273 ;; 4274 4275interix3*) 4276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4278 ;; 4279 4280irix5* | irix6* | nonstopux*) 4281 case $LD in 4282 *-32|*"-32 ") libmagic=32-bit;; 4283 *-n32|*"-n32 ") libmagic=N32;; 4284 *-64|*"-64 ") libmagic=64-bit;; 4285 *) libmagic=never-match;; 4286 esac 4287 lt_cv_deplibs_check_method=pass_all 4288 ;; 4289 4290# This must be Linux ELF. 4291linux*) 4292 lt_cv_deplibs_check_method=pass_all 4293 ;; 4294 4295netbsd*) 4296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4298 else 4299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4300 fi 4301 ;; 4302 4303newos6*) 4304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4305 lt_cv_file_magic_cmd=/usr/bin/file 4306 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4307 ;; 4308 4309nto-qnx*) 4310 lt_cv_deplibs_check_method=unknown 4311 ;; 4312 4313openbsd*) 4314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4316 else 4317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4318 fi 4319 ;; 4320 4321osf3* | osf4* | osf5*) 4322 lt_cv_deplibs_check_method=pass_all 4323 ;; 4324 4325solaris*) 4326 lt_cv_deplibs_check_method=pass_all 4327 ;; 4328 4329sysv4 | sysv4.3*) 4330 case $host_vendor in 4331 motorola) 4332 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]' 4333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4334 ;; 4335 ncr) 4336 lt_cv_deplibs_check_method=pass_all 4337 ;; 4338 sequent) 4339 lt_cv_file_magic_cmd='/bin/file' 4340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4341 ;; 4342 sni) 4343 lt_cv_file_magic_cmd='/bin/file' 4344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4345 lt_cv_file_magic_test_file=/lib/libc.so 4346 ;; 4347 siemens) 4348 lt_cv_deplibs_check_method=pass_all 4349 ;; 4350 pc) 4351 lt_cv_deplibs_check_method=pass_all 4352 ;; 4353 esac 4354 ;; 4355 4356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4357 lt_cv_deplibs_check_method=pass_all 4358 ;; 4359esac 4360 4361fi 4362{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4363echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4364file_magic_cmd=$lt_cv_file_magic_cmd 4365deplibs_check_method=$lt_cv_deplibs_check_method 4366test -z "$deplibs_check_method" && deplibs_check_method=unknown 4367 4368 4369 4370 4371# If no C compiler was specified, use CC. 4372LTCC=${LTCC-"$CC"} 4373 4374# If no C compiler flags were specified, use CFLAGS. 4375LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4376 4377# Allow CC to be a program name with arguments. 4378compiler=$CC 4379 4380 4381# Check whether --enable-libtool-lock was given. 4382if test "${enable_libtool_lock+set}" = set; then 4383 enableval=$enable_libtool_lock; 4384fi 4385 4386test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4387 4388# Some flags need to be propagated to the compiler or linker for good 4389# libtool support. 4390case $host in 4391ia64-*-hpux*) 4392 # Find out which ABI we are using. 4393 echo 'int i;' > conftest.$ac_ext 4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4395 (eval $ac_compile) 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); }; then 4399 case `/usr/bin/file conftest.$ac_objext` in 4400 *ELF-32*) 4401 HPUX_IA64_MODE="32" 4402 ;; 4403 *ELF-64*) 4404 HPUX_IA64_MODE="64" 4405 ;; 4406 esac 4407 fi 4408 rm -rf conftest* 4409 ;; 4410*-*-irix6*) 4411 # Find out which ABI we are using. 4412 echo '#line 4412 "configure"' > conftest.$ac_ext 4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4414 (eval $ac_compile) 2>&5 4415 ac_status=$? 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); }; then 4418 if test "$lt_cv_prog_gnu_ld" = yes; then 4419 case `/usr/bin/file conftest.$ac_objext` in 4420 *32-bit*) 4421 LD="${LD-ld} -melf32bsmip" 4422 ;; 4423 *N32*) 4424 LD="${LD-ld} -melf32bmipn32" 4425 ;; 4426 *64-bit*) 4427 LD="${LD-ld} -melf64bmip" 4428 ;; 4429 esac 4430 else 4431 case `/usr/bin/file conftest.$ac_objext` in 4432 *32-bit*) 4433 LD="${LD-ld} -32" 4434 ;; 4435 *N32*) 4436 LD="${LD-ld} -n32" 4437 ;; 4438 *64-bit*) 4439 LD="${LD-ld} -64" 4440 ;; 4441 esac 4442 fi 4443 fi 4444 rm -rf conftest* 4445 ;; 4446 4447x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4448 # Find out which ABI we are using. 4449 echo 'int i;' > conftest.$ac_ext 4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4451 (eval $ac_compile) 2>&5 4452 ac_status=$? 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4454 (exit $ac_status); }; then 4455 case `/usr/bin/file conftest.o` in 4456 *32-bit*) 4457 case $host in 4458 x86_64-*linux*) 4459 LD="${LD-ld} -m elf_i386" 4460 ;; 4461 ppc64-*linux*|powerpc64-*linux*) 4462 LD="${LD-ld} -m elf32ppclinux" 4463 ;; 4464 s390x-*linux*) 4465 LD="${LD-ld} -m elf_s390" 4466 ;; 4467 sparc64-*linux*) 4468 LD="${LD-ld} -m elf32_sparc" 4469 ;; 4470 esac 4471 ;; 4472 *64-bit*) 4473 case $host in 4474 x86_64-*linux*) 4475 LD="${LD-ld} -m elf_x86_64" 4476 ;; 4477 ppc*-*linux*|powerpc*-*linux*) 4478 LD="${LD-ld} -m elf64ppc" 4479 ;; 4480 s390*-*linux*) 4481 LD="${LD-ld} -m elf64_s390" 4482 ;; 4483 sparc*-*linux*) 4484 LD="${LD-ld} -m elf64_sparc" 4485 ;; 4486 esac 4487 ;; 4488 esac 4489 fi 4490 rm -rf conftest* 4491 ;; 4492 4493*-*-sco3.2v5*) 4494 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4495 SAVE_CFLAGS="$CFLAGS" 4496 CFLAGS="$CFLAGS -belf" 4497 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4498echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4499if test "${lt_cv_cc_needs_belf+set}" = set; then 4500 echo $ECHO_N "(cached) $ECHO_C" >&6 4501else 4502 ac_ext=c 4503ac_cpp='$CPP $CPPFLAGS' 4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507 4508 cat >conftest.$ac_ext <<_ACEOF 4509/* confdefs.h. */ 4510_ACEOF 4511cat confdefs.h >>conftest.$ac_ext 4512cat >>conftest.$ac_ext <<_ACEOF 4513/* end confdefs.h. */ 4514 4515int 4516main () 4517{ 4518 4519 ; 4520 return 0; 4521} 4522_ACEOF 4523rm -f conftest.$ac_objext conftest$ac_exeext 4524if { (ac_try="$ac_link" 4525case "(($ac_try" in 4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4527 *) ac_try_echo=$ac_try;; 4528esac 4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4530 (eval "$ac_link") 2>conftest.er1 4531 ac_status=$? 4532 grep -v '^ *+' conftest.er1 >conftest.err 4533 rm -f conftest.er1 4534 cat conftest.err >&5 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4536 (exit $ac_status); } && { 4537 test -z "$ac_c_werror_flag" || 4538 test ! -s conftest.err 4539 } && test -s conftest$ac_exeext && 4540 $as_test_x conftest$ac_exeext; then 4541 lt_cv_cc_needs_belf=yes 4542else 4543 echo "$as_me: failed program was:" >&5 4544sed 's/^/| /' conftest.$ac_ext >&5 4545 4546 lt_cv_cc_needs_belf=no 4547fi 4548 4549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4550 conftest$ac_exeext conftest.$ac_ext 4551 ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556 4557fi 4558{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4559echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4562 CFLAGS="$SAVE_CFLAGS" 4563 fi 4564 ;; 4565sparc*-*solaris*) 4566 # Find out which ABI we are using. 4567 echo 'int i;' > conftest.$ac_ext 4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4569 (eval $ac_compile) 2>&5 4570 ac_status=$? 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); }; then 4573 case `/usr/bin/file conftest.o` in 4574 *64-bit*) 4575 case $lt_cv_prog_gnu_ld in 4576 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4577 *) LD="${LD-ld} -64" ;; 4578 esac 4579 ;; 4580 esac 4581 fi 4582 rm -rf conftest* 4583 ;; 4584 4585 4586esac 4587 4588need_locks="$enable_libtool_lock" 4589 4590 4591ac_ext=c 4592ac_cpp='$CPP $CPPFLAGS' 4593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4595ac_compiler_gnu=$ac_cv_c_compiler_gnu 4596{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4597echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4598# On Suns, sometimes $CPP names a directory. 4599if test -n "$CPP" && test -d "$CPP"; then 4600 CPP= 4601fi 4602if test -z "$CPP"; then 4603 if test "${ac_cv_prog_CPP+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605else 4606 # Double quotes because CPP needs to be expanded 4607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4608 do 4609 ac_preproc_ok=false 4610for ac_c_preproc_warn_flag in '' yes 4611do 4612 # Use a header file that comes with gcc, so configuring glibc 4613 # with a fresh cross-compiler works. 4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4615 # <limits.h> exists even on freestanding compilers. 4616 # On the NeXT, cc -E runs the code through the compiler's parser, 4617 # not just through cpp. "Syntax error" is here to catch this case. 4618 cat >conftest.$ac_ext <<_ACEOF 4619/* confdefs.h. */ 4620_ACEOF 4621cat confdefs.h >>conftest.$ac_ext 4622cat >>conftest.$ac_ext <<_ACEOF 4623/* end confdefs.h. */ 4624#ifdef __STDC__ 4625# include <limits.h> 4626#else 4627# include <assert.h> 4628#endif 4629 Syntax error 4630_ACEOF 4631if { (ac_try="$ac_cpp conftest.$ac_ext" 4632case "(($ac_try" in 4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4634 *) ac_try_echo=$ac_try;; 4635esac 4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4638 ac_status=$? 4639 grep -v '^ *+' conftest.er1 >conftest.err 4640 rm -f conftest.er1 4641 cat conftest.err >&5 4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4643 (exit $ac_status); } >/dev/null && { 4644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4645 test ! -s conftest.err 4646 }; then 4647 : 4648else 4649 echo "$as_me: failed program was:" >&5 4650sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 # Broken: fails on valid input. 4653continue 4654fi 4655 4656rm -f conftest.err conftest.$ac_ext 4657 4658 # OK, works on sane cases. Now check whether nonexistent headers 4659 # can be detected and how. 4660 cat >conftest.$ac_ext <<_ACEOF 4661/* confdefs.h. */ 4662_ACEOF 4663cat confdefs.h >>conftest.$ac_ext 4664cat >>conftest.$ac_ext <<_ACEOF 4665/* end confdefs.h. */ 4666#include <ac_nonexistent.h> 4667_ACEOF 4668if { (ac_try="$ac_cpp conftest.$ac_ext" 4669case "(($ac_try" in 4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *) ac_try_echo=$ac_try;; 4672esac 4673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4675 ac_status=$? 4676 grep -v '^ *+' conftest.er1 >conftest.err 4677 rm -f conftest.er1 4678 cat conftest.err >&5 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } >/dev/null && { 4681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4682 test ! -s conftest.err 4683 }; then 4684 # Broken: success on invalid input. 4685continue 4686else 4687 echo "$as_me: failed program was:" >&5 4688sed 's/^/| /' conftest.$ac_ext >&5 4689 4690 # Passes both tests. 4691ac_preproc_ok=: 4692break 4693fi 4694 4695rm -f conftest.err conftest.$ac_ext 4696 4697done 4698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4699rm -f conftest.err conftest.$ac_ext 4700if $ac_preproc_ok; then 4701 break 4702fi 4703 4704 done 4705 ac_cv_prog_CPP=$CPP 4706 4707fi 4708 CPP=$ac_cv_prog_CPP 4709else 4710 ac_cv_prog_CPP=$CPP 4711fi 4712{ echo "$as_me:$LINENO: result: $CPP" >&5 4713echo "${ECHO_T}$CPP" >&6; } 4714ac_preproc_ok=false 4715for ac_c_preproc_warn_flag in '' yes 4716do 4717 # Use a header file that comes with gcc, so configuring glibc 4718 # with a fresh cross-compiler works. 4719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4720 # <limits.h> exists even on freestanding compilers. 4721 # On the NeXT, cc -E runs the code through the compiler's parser, 4722 # not just through cpp. "Syntax error" is here to catch this case. 4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ 4729#ifdef __STDC__ 4730# include <limits.h> 4731#else 4732# include <assert.h> 4733#endif 4734 Syntax error 4735_ACEOF 4736if { (ac_try="$ac_cpp conftest.$ac_ext" 4737case "(($ac_try" in 4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4739 *) ac_try_echo=$ac_try;; 4740esac 4741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4743 ac_status=$? 4744 grep -v '^ *+' conftest.er1 >conftest.err 4745 rm -f conftest.er1 4746 cat conftest.err >&5 4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4748 (exit $ac_status); } >/dev/null && { 4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4750 test ! -s conftest.err 4751 }; then 4752 : 4753else 4754 echo "$as_me: failed program was:" >&5 4755sed 's/^/| /' conftest.$ac_ext >&5 4756 4757 # Broken: fails on valid input. 4758continue 4759fi 4760 4761rm -f conftest.err conftest.$ac_ext 4762 4763 # OK, works on sane cases. Now check whether nonexistent headers 4764 # can be detected and how. 4765 cat >conftest.$ac_ext <<_ACEOF 4766/* confdefs.h. */ 4767_ACEOF 4768cat confdefs.h >>conftest.$ac_ext 4769cat >>conftest.$ac_ext <<_ACEOF 4770/* end confdefs.h. */ 4771#include <ac_nonexistent.h> 4772_ACEOF 4773if { (ac_try="$ac_cpp conftest.$ac_ext" 4774case "(($ac_try" in 4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4776 *) ac_try_echo=$ac_try;; 4777esac 4778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4780 ac_status=$? 4781 grep -v '^ *+' conftest.er1 >conftest.err 4782 rm -f conftest.er1 4783 cat conftest.err >&5 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); } >/dev/null && { 4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4787 test ! -s conftest.err 4788 }; then 4789 # Broken: success on invalid input. 4790continue 4791else 4792 echo "$as_me: failed program was:" >&5 4793sed 's/^/| /' conftest.$ac_ext >&5 4794 4795 # Passes both tests. 4796ac_preproc_ok=: 4797break 4798fi 4799 4800rm -f conftest.err conftest.$ac_ext 4801 4802done 4803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4804rm -f conftest.err conftest.$ac_ext 4805if $ac_preproc_ok; then 4806 : 4807else 4808 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4809See \`config.log' for more details." >&5 4810echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4811See \`config.log' for more details." >&2;} 4812 { (exit 1); exit 1; }; } 4813fi 4814 4815ac_ext=c 4816ac_cpp='$CPP $CPPFLAGS' 4817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4819ac_compiler_gnu=$ac_cv_c_compiler_gnu 4820 4821 4822{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4823echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4824if test "${ac_cv_header_stdc+set}" = set; then 4825 echo $ECHO_N "(cached) $ECHO_C" >&6 4826else 4827 cat >conftest.$ac_ext <<_ACEOF 4828/* confdefs.h. */ 4829_ACEOF 4830cat confdefs.h >>conftest.$ac_ext 4831cat >>conftest.$ac_ext <<_ACEOF 4832/* end confdefs.h. */ 4833#include <stdlib.h> 4834#include <stdarg.h> 4835#include <string.h> 4836#include <float.h> 4837 4838int 4839main () 4840{ 4841 4842 ; 4843 return 0; 4844} 4845_ACEOF 4846rm -f conftest.$ac_objext 4847if { (ac_try="$ac_compile" 4848case "(($ac_try" in 4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4850 *) ac_try_echo=$ac_try;; 4851esac 4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4853 (eval "$ac_compile") 2>conftest.er1 4854 ac_status=$? 4855 grep -v '^ *+' conftest.er1 >conftest.err 4856 rm -f conftest.er1 4857 cat conftest.err >&5 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } && { 4860 test -z "$ac_c_werror_flag" || 4861 test ! -s conftest.err 4862 } && test -s conftest.$ac_objext; then 4863 ac_cv_header_stdc=yes 4864else 4865 echo "$as_me: failed program was:" >&5 4866sed 's/^/| /' conftest.$ac_ext >&5 4867 4868 ac_cv_header_stdc=no 4869fi 4870 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872 4873if test $ac_cv_header_stdc = yes; then 4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4875 cat >conftest.$ac_ext <<_ACEOF 4876/* confdefs.h. */ 4877_ACEOF 4878cat confdefs.h >>conftest.$ac_ext 4879cat >>conftest.$ac_ext <<_ACEOF 4880/* end confdefs.h. */ 4881#include <string.h> 4882 4883_ACEOF 4884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4885 $EGREP "memchr" >/dev/null 2>&1; then 4886 : 4887else 4888 ac_cv_header_stdc=no 4889fi 4890rm -f conftest* 4891 4892fi 4893 4894if test $ac_cv_header_stdc = yes; then 4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4896 cat >conftest.$ac_ext <<_ACEOF 4897/* confdefs.h. */ 4898_ACEOF 4899cat confdefs.h >>conftest.$ac_ext 4900cat >>conftest.$ac_ext <<_ACEOF 4901/* end confdefs.h. */ 4902#include <stdlib.h> 4903 4904_ACEOF 4905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4906 $EGREP "free" >/dev/null 2>&1; then 4907 : 4908else 4909 ac_cv_header_stdc=no 4910fi 4911rm -f conftest* 4912 4913fi 4914 4915if test $ac_cv_header_stdc = yes; then 4916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4917 if test "$cross_compiling" = yes; then 4918 : 4919else 4920 cat >conftest.$ac_ext <<_ACEOF 4921/* confdefs.h. */ 4922_ACEOF 4923cat confdefs.h >>conftest.$ac_ext 4924cat >>conftest.$ac_ext <<_ACEOF 4925/* end confdefs.h. */ 4926#include <ctype.h> 4927#include <stdlib.h> 4928#if ((' ' & 0x0FF) == 0x020) 4929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4931#else 4932# define ISLOWER(c) \ 4933 (('a' <= (c) && (c) <= 'i') \ 4934 || ('j' <= (c) && (c) <= 'r') \ 4935 || ('s' <= (c) && (c) <= 'z')) 4936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4937#endif 4938 4939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4940int 4941main () 4942{ 4943 int i; 4944 for (i = 0; i < 256; i++) 4945 if (XOR (islower (i), ISLOWER (i)) 4946 || toupper (i) != TOUPPER (i)) 4947 return 2; 4948 return 0; 4949} 4950_ACEOF 4951rm -f conftest$ac_exeext 4952if { (ac_try="$ac_link" 4953case "(($ac_try" in 4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4955 *) ac_try_echo=$ac_try;; 4956esac 4957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4958 (eval "$ac_link") 2>&5 4959 ac_status=$? 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4962 { (case "(($ac_try" in 4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4964 *) ac_try_echo=$ac_try;; 4965esac 4966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4967 (eval "$ac_try") 2>&5 4968 ac_status=$? 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); }; }; then 4971 : 4972else 4973 echo "$as_me: program exited with status $ac_status" >&5 4974echo "$as_me: failed program was:" >&5 4975sed 's/^/| /' conftest.$ac_ext >&5 4976 4977( exit $ac_status ) 4978ac_cv_header_stdc=no 4979fi 4980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4981fi 4982 4983 4984fi 4985fi 4986{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4987echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4988if test $ac_cv_header_stdc = yes; then 4989 4990cat >>confdefs.h <<\_ACEOF 4991#define STDC_HEADERS 1 4992_ACEOF 4993 4994fi 4995 4996# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5007 inttypes.h stdint.h unistd.h 5008do 5009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5010{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 cat >conftest.$ac_ext <<_ACEOF 5016/* confdefs.h. */ 5017_ACEOF 5018cat confdefs.h >>conftest.$ac_ext 5019cat >>conftest.$ac_ext <<_ACEOF 5020/* end confdefs.h. */ 5021$ac_includes_default 5022 5023#include <$ac_header> 5024_ACEOF 5025rm -f conftest.$ac_objext 5026if { (ac_try="$ac_compile" 5027case "(($ac_try" in 5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5029 *) ac_try_echo=$ac_try;; 5030esac 5031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5032 (eval "$ac_compile") 2>conftest.er1 5033 ac_status=$? 5034 grep -v '^ *+' conftest.er1 >conftest.err 5035 rm -f conftest.er1 5036 cat conftest.err >&5 5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); } && { 5039 test -z "$ac_c_werror_flag" || 5040 test ! -s conftest.err 5041 } && test -s conftest.$ac_objext; then 5042 eval "$as_ac_Header=yes" 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 eval "$as_ac_Header=no" 5048fi 5049 5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5051fi 5052ac_res=`eval echo '${'$as_ac_Header'}'` 5053 { echo "$as_me:$LINENO: result: $ac_res" >&5 5054echo "${ECHO_T}$ac_res" >&6; } 5055if test `eval echo '${'$as_ac_Header'}'` = yes; then 5056 cat >>confdefs.h <<_ACEOF 5057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5058_ACEOF 5059 5060fi 5061 5062done 5063 5064 5065 5066for ac_header in dlfcn.h 5067do 5068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5070 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5073 echo $ECHO_N "(cached) $ECHO_C" >&6 5074fi 5075ac_res=`eval echo '${'$as_ac_Header'}'` 5076 { echo "$as_me:$LINENO: result: $ac_res" >&5 5077echo "${ECHO_T}$ac_res" >&6; } 5078else 5079 # Is the header compilable? 5080{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5082cat >conftest.$ac_ext <<_ACEOF 5083/* confdefs.h. */ 5084_ACEOF 5085cat confdefs.h >>conftest.$ac_ext 5086cat >>conftest.$ac_ext <<_ACEOF 5087/* end confdefs.h. */ 5088$ac_includes_default 5089#include <$ac_header> 5090_ACEOF 5091rm -f conftest.$ac_objext 5092if { (ac_try="$ac_compile" 5093case "(($ac_try" in 5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5095 *) ac_try_echo=$ac_try;; 5096esac 5097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5098 (eval "$ac_compile") 2>conftest.er1 5099 ac_status=$? 5100 grep -v '^ *+' conftest.er1 >conftest.err 5101 rm -f conftest.er1 5102 cat conftest.err >&5 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104 (exit $ac_status); } && { 5105 test -z "$ac_c_werror_flag" || 5106 test ! -s conftest.err 5107 } && test -s conftest.$ac_objext; then 5108 ac_header_compiler=yes 5109else 5110 echo "$as_me: failed program was:" >&5 5111sed 's/^/| /' conftest.$ac_ext >&5 5112 5113 ac_header_compiler=no 5114fi 5115 5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5118echo "${ECHO_T}$ac_header_compiler" >&6; } 5119 5120# Is the header present? 5121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5123cat >conftest.$ac_ext <<_ACEOF 5124/* confdefs.h. */ 5125_ACEOF 5126cat confdefs.h >>conftest.$ac_ext 5127cat >>conftest.$ac_ext <<_ACEOF 5128/* end confdefs.h. */ 5129#include <$ac_header> 5130_ACEOF 5131if { (ac_try="$ac_cpp conftest.$ac_ext" 5132case "(($ac_try" in 5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5134 *) ac_try_echo=$ac_try;; 5135esac 5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5138 ac_status=$? 5139 grep -v '^ *+' conftest.er1 >conftest.err 5140 rm -f conftest.er1 5141 cat conftest.err >&5 5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); } >/dev/null && { 5144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5145 test ! -s conftest.err 5146 }; then 5147 ac_header_preproc=yes 5148else 5149 echo "$as_me: failed program was:" >&5 5150sed 's/^/| /' conftest.$ac_ext >&5 5151 5152 ac_header_preproc=no 5153fi 5154 5155rm -f conftest.err conftest.$ac_ext 5156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5157echo "${ECHO_T}$ac_header_preproc" >&6; } 5158 5159# So? What about this header? 5160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5161 yes:no: ) 5162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5166 ac_header_preproc=yes 5167 ;; 5168 no:yes:* ) 5169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5181 ( cat <<\_ASBOX 5182## ---------------------------------------------------------------------- ## 5183## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5184## ---------------------------------------------------------------------- ## 5185_ASBOX 5186 ) | sed "s/^/$as_me: WARNING: /" >&2 5187 ;; 5188esac 5189{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5192 echo $ECHO_N "(cached) $ECHO_C" >&6 5193else 5194 eval "$as_ac_Header=\$ac_header_preproc" 5195fi 5196ac_res=`eval echo '${'$as_ac_Header'}'` 5197 { echo "$as_me:$LINENO: result: $ac_res" >&5 5198echo "${ECHO_T}$ac_res" >&6; } 5199 5200fi 5201if test `eval echo '${'$as_ac_Header'}'` = yes; then 5202 cat >>confdefs.h <<_ACEOF 5203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5204_ACEOF 5205 5206fi 5207 5208done 5209 5210ac_ext=cpp 5211ac_cpp='$CXXCPP $CPPFLAGS' 5212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5215if test -z "$CXX"; then 5216 if test -n "$CCC"; then 5217 CXX=$CCC 5218 else 5219 if test -n "$ac_tool_prefix"; then 5220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5221 do 5222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5223set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5224{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5226if test "${ac_cv_prog_CXX+set}" = set; then 5227 echo $ECHO_N "(cached) $ECHO_C" >&6 5228else 5229 if test -n "$CXX"; then 5230 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5231else 5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5241 break 2 5242 fi 5243done 5244done 5245IFS=$as_save_IFS 5246 5247fi 5248fi 5249CXX=$ac_cv_prog_CXX 5250if test -n "$CXX"; then 5251 { echo "$as_me:$LINENO: result: $CXX" >&5 5252echo "${ECHO_T}$CXX" >&6; } 5253else 5254 { echo "$as_me:$LINENO: result: no" >&5 5255echo "${ECHO_T}no" >&6; } 5256fi 5257 5258 5259 test -n "$CXX" && break 5260 done 5261fi 5262if test -z "$CXX"; then 5263 ac_ct_CXX=$CXX 5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5265do 5266 # Extract the first word of "$ac_prog", so it can be a program name with args. 5267set dummy $ac_prog; ac_word=$2 5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5270if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5271 echo $ECHO_N "(cached) $ECHO_C" >&6 5272else 5273 if test -n "$ac_ct_CXX"; then 5274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5275else 5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5277for as_dir in $PATH 5278do 5279 IFS=$as_save_IFS 5280 test -z "$as_dir" && as_dir=. 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5283 ac_cv_prog_ac_ct_CXX="$ac_prog" 5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288done 5289IFS=$as_save_IFS 5290 5291fi 5292fi 5293ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5294if test -n "$ac_ct_CXX"; then 5295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5296echo "${ECHO_T}$ac_ct_CXX" >&6; } 5297else 5298 { echo "$as_me:$LINENO: result: no" >&5 5299echo "${ECHO_T}no" >&6; } 5300fi 5301 5302 5303 test -n "$ac_ct_CXX" && break 5304done 5305 5306 if test "x$ac_ct_CXX" = x; then 5307 CXX="g++" 5308 else 5309 case $cross_compiling:$ac_tool_warned in 5310yes:) 5311{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5312whose name does not start with the host triplet. If you think this 5313configuration is useful to you, please write to autoconf@gnu.org." >&5 5314echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5315whose name does not start with the host triplet. If you think this 5316configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5317ac_tool_warned=yes ;; 5318esac 5319 CXX=$ac_ct_CXX 5320 fi 5321fi 5322 5323 fi 5324fi 5325# Provide some information about the compiler. 5326echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5327ac_compiler=`set X $ac_compile; echo $2` 5328{ (ac_try="$ac_compiler --version >&5" 5329case "(($ac_try" in 5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5331 *) ac_try_echo=$ac_try;; 5332esac 5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5334 (eval "$ac_compiler --version >&5") 2>&5 5335 ac_status=$? 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); } 5338{ (ac_try="$ac_compiler -v >&5" 5339case "(($ac_try" in 5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5341 *) ac_try_echo=$ac_try;; 5342esac 5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5344 (eval "$ac_compiler -v >&5") 2>&5 5345 ac_status=$? 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } 5348{ (ac_try="$ac_compiler -V >&5" 5349case "(($ac_try" in 5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5351 *) ac_try_echo=$ac_try;; 5352esac 5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5354 (eval "$ac_compiler -V >&5") 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } 5358 5359{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5360echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5361if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5362 echo $ECHO_N "(cached) $ECHO_C" >&6 5363else 5364 cat >conftest.$ac_ext <<_ACEOF 5365/* confdefs.h. */ 5366_ACEOF 5367cat confdefs.h >>conftest.$ac_ext 5368cat >>conftest.$ac_ext <<_ACEOF 5369/* end confdefs.h. */ 5370 5371int 5372main () 5373{ 5374#ifndef __GNUC__ 5375 choke me 5376#endif 5377 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382rm -f conftest.$ac_objext 5383if { (ac_try="$ac_compile" 5384case "(($ac_try" in 5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5386 *) ac_try_echo=$ac_try;; 5387esac 5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5389 (eval "$ac_compile") 2>conftest.er1 5390 ac_status=$? 5391 grep -v '^ *+' conftest.er1 >conftest.err 5392 rm -f conftest.er1 5393 cat conftest.err >&5 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } && { 5396 test -z "$ac_cxx_werror_flag" || 5397 test ! -s conftest.err 5398 } && test -s conftest.$ac_objext; then 5399 ac_compiler_gnu=yes 5400else 5401 echo "$as_me: failed program was:" >&5 5402sed 's/^/| /' conftest.$ac_ext >&5 5403 5404 ac_compiler_gnu=no 5405fi 5406 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5409 5410fi 5411{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5412echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5413GXX=`test $ac_compiler_gnu = yes && echo yes` 5414ac_test_CXXFLAGS=${CXXFLAGS+set} 5415ac_save_CXXFLAGS=$CXXFLAGS 5416{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5417echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5418if test "${ac_cv_prog_cxx_g+set}" = set; then 5419 echo $ECHO_N "(cached) $ECHO_C" >&6 5420else 5421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5422 ac_cxx_werror_flag=yes 5423 ac_cv_prog_cxx_g=no 5424 CXXFLAGS="-g" 5425 cat >conftest.$ac_ext <<_ACEOF 5426/* confdefs.h. */ 5427_ACEOF 5428cat confdefs.h >>conftest.$ac_ext 5429cat >>conftest.$ac_ext <<_ACEOF 5430/* end confdefs.h. */ 5431 5432int 5433main () 5434{ 5435 5436 ; 5437 return 0; 5438} 5439_ACEOF 5440rm -f conftest.$ac_objext 5441if { (ac_try="$ac_compile" 5442case "(($ac_try" in 5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5444 *) ac_try_echo=$ac_try;; 5445esac 5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5447 (eval "$ac_compile") 2>conftest.er1 5448 ac_status=$? 5449 grep -v '^ *+' conftest.er1 >conftest.err 5450 rm -f conftest.er1 5451 cat conftest.err >&5 5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); } && { 5454 test -z "$ac_cxx_werror_flag" || 5455 test ! -s conftest.err 5456 } && test -s conftest.$ac_objext; then 5457 ac_cv_prog_cxx_g=yes 5458else 5459 echo "$as_me: failed program was:" >&5 5460sed 's/^/| /' conftest.$ac_ext >&5 5461 5462 CXXFLAGS="" 5463 cat >conftest.$ac_ext <<_ACEOF 5464/* confdefs.h. */ 5465_ACEOF 5466cat confdefs.h >>conftest.$ac_ext 5467cat >>conftest.$ac_ext <<_ACEOF 5468/* end confdefs.h. */ 5469 5470int 5471main () 5472{ 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478rm -f conftest.$ac_objext 5479if { (ac_try="$ac_compile" 5480case "(($ac_try" in 5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5482 *) ac_try_echo=$ac_try;; 5483esac 5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5485 (eval "$ac_compile") 2>conftest.er1 5486 ac_status=$? 5487 grep -v '^ *+' conftest.er1 >conftest.err 5488 rm -f conftest.er1 5489 cat conftest.err >&5 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); } && { 5492 test -z "$ac_cxx_werror_flag" || 5493 test ! -s conftest.err 5494 } && test -s conftest.$ac_objext; then 5495 : 5496else 5497 echo "$as_me: failed program was:" >&5 5498sed 's/^/| /' conftest.$ac_ext >&5 5499 5500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5501 CXXFLAGS="-g" 5502 cat >conftest.$ac_ext <<_ACEOF 5503/* confdefs.h. */ 5504_ACEOF 5505cat confdefs.h >>conftest.$ac_ext 5506cat >>conftest.$ac_ext <<_ACEOF 5507/* end confdefs.h. */ 5508 5509int 5510main () 5511{ 5512 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517rm -f conftest.$ac_objext 5518if { (ac_try="$ac_compile" 5519case "(($ac_try" in 5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5521 *) ac_try_echo=$ac_try;; 5522esac 5523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5524 (eval "$ac_compile") 2>conftest.er1 5525 ac_status=$? 5526 grep -v '^ *+' conftest.er1 >conftest.err 5527 rm -f conftest.er1 5528 cat conftest.err >&5 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } && { 5531 test -z "$ac_cxx_werror_flag" || 5532 test ! -s conftest.err 5533 } && test -s conftest.$ac_objext; then 5534 ac_cv_prog_cxx_g=yes 5535else 5536 echo "$as_me: failed program was:" >&5 5537sed 's/^/| /' conftest.$ac_ext >&5 5538 5539 5540fi 5541 5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5543fi 5544 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5550fi 5551{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5552echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5553if test "$ac_test_CXXFLAGS" = set; then 5554 CXXFLAGS=$ac_save_CXXFLAGS 5555elif test $ac_cv_prog_cxx_g = yes; then 5556 if test "$GXX" = yes; then 5557 CXXFLAGS="-g -O2" 5558 else 5559 CXXFLAGS="-g" 5560 fi 5561else 5562 if test "$GXX" = yes; then 5563 CXXFLAGS="-O2" 5564 else 5565 CXXFLAGS= 5566 fi 5567fi 5568ac_ext=cpp 5569ac_cpp='$CXXCPP $CPPFLAGS' 5570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5573 5574depcc="$CXX" am_compiler_list= 5575 5576{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5577echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5578if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5579 echo $ECHO_N "(cached) $ECHO_C" >&6 5580else 5581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5582 # We make a subdir and do the tests there. Otherwise we can end up 5583 # making bogus files that we don't know about and never remove. For 5584 # instance it was reported that on HP-UX the gcc test will end up 5585 # making a dummy file named `D' -- because `-MD' means `put the output 5586 # in D'. 5587 mkdir conftest.dir 5588 # Copy depcomp to subdir because otherwise we won't find it if we're 5589 # using a relative directory. 5590 cp "$am_depcomp" conftest.dir 5591 cd conftest.dir 5592 # We will build objects and dependencies in a subdirectory because 5593 # it helps to detect inapplicable dependency modes. For instance 5594 # both Tru64's cc and ICC support -MD to output dependencies as a 5595 # side effect of compilation, but ICC will put the dependencies in 5596 # the current directory while Tru64 will put them in the object 5597 # directory. 5598 mkdir sub 5599 5600 am_cv_CXX_dependencies_compiler_type=none 5601 if test "$am_compiler_list" = ""; then 5602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5603 fi 5604 for depmode in $am_compiler_list; do 5605 # Setup a source with many dependencies, because some compilers 5606 # like to wrap large dependency lists on column 80 (with \), and 5607 # we should not choose a depcomp mode which is confused by this. 5608 # 5609 # We need to recreate these files for each test, as the compiler may 5610 # overwrite some of them when testing with obscure command lines. 5611 # This happens at least with the AIX C compiler. 5612 : > sub/conftest.c 5613 for i in 1 2 3 4 5 6; do 5614 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5615 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5616 # Solaris 8's {/usr,}/bin/sh. 5617 touch sub/conftst$i.h 5618 done 5619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5620 5621 case $depmode in 5622 nosideeffect) 5623 # after this tag, mechanisms are not by side-effect, so they'll 5624 # only be used when explicitly requested 5625 if test "x$enable_dependency_tracking" = xyes; then 5626 continue 5627 else 5628 break 5629 fi 5630 ;; 5631 none) break ;; 5632 esac 5633 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5634 # mode. It turns out that the SunPro C++ compiler does not properly 5635 # handle `-M -o', and we need to detect this. 5636 if depmode=$depmode \ 5637 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5639 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5640 >/dev/null 2>conftest.err && 5641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5643 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5645 # icc doesn't choke on unknown options, it will just issue warnings 5646 # or remarks (even with -Werror). So we grep stderr for any message 5647 # that says an option was ignored or not supported. 5648 # When given -MP, icc 7.0 and 7.1 complain thusly: 5649 # icc: Command line warning: ignoring option '-M'; no argument required 5650 # The diagnosis changed in icc 8.0: 5651 # icc: Command line remark: option '-MP' not supported 5652 if (grep 'ignoring option' conftest.err || 5653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5654 am_cv_CXX_dependencies_compiler_type=$depmode 5655 break 5656 fi 5657 fi 5658 done 5659 5660 cd .. 5661 rm -rf conftest.dir 5662else 5663 am_cv_CXX_dependencies_compiler_type=none 5664fi 5665 5666fi 5667{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5668echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5670 5671 if 5672 test "x$enable_dependency_tracking" != xno \ 5673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5674 am__fastdepCXX_TRUE= 5675 am__fastdepCXX_FALSE='#' 5676else 5677 am__fastdepCXX_TRUE='#' 5678 am__fastdepCXX_FALSE= 5679fi 5680 5681 5682 5683 5684if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5686 (test "X$CXX" != "Xg++"))) ; then 5687 ac_ext=cpp 5688ac_cpp='$CXXCPP $CPPFLAGS' 5689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5692{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5693echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5694if test -z "$CXXCPP"; then 5695 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 # Double quotes because CXXCPP needs to be expanded 5699 for CXXCPP in "$CXX -E" "/lib/cpp" 5700 do 5701 ac_preproc_ok=false 5702for ac_cxx_preproc_warn_flag in '' yes 5703do 5704 # Use a header file that comes with gcc, so configuring glibc 5705 # with a fresh cross-compiler works. 5706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5707 # <limits.h> exists even on freestanding compilers. 5708 # On the NeXT, cc -E runs the code through the compiler's parser, 5709 # not just through cpp. "Syntax error" is here to catch this case. 5710 cat >conftest.$ac_ext <<_ACEOF 5711/* confdefs.h. */ 5712_ACEOF 5713cat confdefs.h >>conftest.$ac_ext 5714cat >>conftest.$ac_ext <<_ACEOF 5715/* end confdefs.h. */ 5716#ifdef __STDC__ 5717# include <limits.h> 5718#else 5719# include <assert.h> 5720#endif 5721 Syntax error 5722_ACEOF 5723if { (ac_try="$ac_cpp conftest.$ac_ext" 5724case "(($ac_try" in 5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5726 *) ac_try_echo=$ac_try;; 5727esac 5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5730 ac_status=$? 5731 grep -v '^ *+' conftest.er1 >conftest.err 5732 rm -f conftest.er1 5733 cat conftest.err >&5 5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 (exit $ac_status); } >/dev/null && { 5736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5737 test ! -s conftest.err 5738 }; then 5739 : 5740else 5741 echo "$as_me: failed program was:" >&5 5742sed 's/^/| /' conftest.$ac_ext >&5 5743 5744 # Broken: fails on valid input. 5745continue 5746fi 5747 5748rm -f conftest.err conftest.$ac_ext 5749 5750 # OK, works on sane cases. Now check whether nonexistent headers 5751 # can be detected and how. 5752 cat >conftest.$ac_ext <<_ACEOF 5753/* confdefs.h. */ 5754_ACEOF 5755cat confdefs.h >>conftest.$ac_ext 5756cat >>conftest.$ac_ext <<_ACEOF 5757/* end confdefs.h. */ 5758#include <ac_nonexistent.h> 5759_ACEOF 5760if { (ac_try="$ac_cpp conftest.$ac_ext" 5761case "(($ac_try" in 5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5763 *) ac_try_echo=$ac_try;; 5764esac 5765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5767 ac_status=$? 5768 grep -v '^ *+' conftest.er1 >conftest.err 5769 rm -f conftest.er1 5770 cat conftest.err >&5 5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5772 (exit $ac_status); } >/dev/null && { 5773 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5774 test ! -s conftest.err 5775 }; then 5776 # Broken: success on invalid input. 5777continue 5778else 5779 echo "$as_me: failed program was:" >&5 5780sed 's/^/| /' conftest.$ac_ext >&5 5781 5782 # Passes both tests. 5783ac_preproc_ok=: 5784break 5785fi 5786 5787rm -f conftest.err conftest.$ac_ext 5788 5789done 5790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5791rm -f conftest.err conftest.$ac_ext 5792if $ac_preproc_ok; then 5793 break 5794fi 5795 5796 done 5797 ac_cv_prog_CXXCPP=$CXXCPP 5798 5799fi 5800 CXXCPP=$ac_cv_prog_CXXCPP 5801else 5802 ac_cv_prog_CXXCPP=$CXXCPP 5803fi 5804{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5805echo "${ECHO_T}$CXXCPP" >&6; } 5806ac_preproc_ok=false 5807for ac_cxx_preproc_warn_flag in '' yes 5808do 5809 # Use a header file that comes with gcc, so configuring glibc 5810 # with a fresh cross-compiler works. 5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5812 # <limits.h> exists even on freestanding compilers. 5813 # On the NeXT, cc -E runs the code through the compiler's parser, 5814 # not just through cpp. "Syntax error" is here to catch this case. 5815 cat >conftest.$ac_ext <<_ACEOF 5816/* confdefs.h. */ 5817_ACEOF 5818cat confdefs.h >>conftest.$ac_ext 5819cat >>conftest.$ac_ext <<_ACEOF 5820/* end confdefs.h. */ 5821#ifdef __STDC__ 5822# include <limits.h> 5823#else 5824# include <assert.h> 5825#endif 5826 Syntax error 5827_ACEOF 5828if { (ac_try="$ac_cpp conftest.$ac_ext" 5829case "(($ac_try" in 5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5831 *) ac_try_echo=$ac_try;; 5832esac 5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5835 ac_status=$? 5836 grep -v '^ *+' conftest.er1 >conftest.err 5837 rm -f conftest.er1 5838 cat conftest.err >&5 5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 (exit $ac_status); } >/dev/null && { 5841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5842 test ! -s conftest.err 5843 }; then 5844 : 5845else 5846 echo "$as_me: failed program was:" >&5 5847sed 's/^/| /' conftest.$ac_ext >&5 5848 5849 # Broken: fails on valid input. 5850continue 5851fi 5852 5853rm -f conftest.err conftest.$ac_ext 5854 5855 # OK, works on sane cases. Now check whether nonexistent headers 5856 # can be detected and how. 5857 cat >conftest.$ac_ext <<_ACEOF 5858/* confdefs.h. */ 5859_ACEOF 5860cat confdefs.h >>conftest.$ac_ext 5861cat >>conftest.$ac_ext <<_ACEOF 5862/* end confdefs.h. */ 5863#include <ac_nonexistent.h> 5864_ACEOF 5865if { (ac_try="$ac_cpp conftest.$ac_ext" 5866case "(($ac_try" in 5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5868 *) ac_try_echo=$ac_try;; 5869esac 5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5872 ac_status=$? 5873 grep -v '^ *+' conftest.er1 >conftest.err 5874 rm -f conftest.er1 5875 cat conftest.err >&5 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 (exit $ac_status); } >/dev/null && { 5878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5879 test ! -s conftest.err 5880 }; then 5881 # Broken: success on invalid input. 5882continue 5883else 5884 echo "$as_me: failed program was:" >&5 5885sed 's/^/| /' conftest.$ac_ext >&5 5886 5887 # Passes both tests. 5888ac_preproc_ok=: 5889break 5890fi 5891 5892rm -f conftest.err conftest.$ac_ext 5893 5894done 5895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5896rm -f conftest.err conftest.$ac_ext 5897if $ac_preproc_ok; then 5898 : 5899else 5900 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5901See \`config.log' for more details." >&5 5902echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5903See \`config.log' for more details." >&2;} 5904 { (exit 1); exit 1; }; } 5905fi 5906 5907ac_ext=cpp 5908ac_cpp='$CXXCPP $CPPFLAGS' 5909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5912 5913fi 5914 5915 5916ac_ext=f 5917ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5918ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5919ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5920if test -n "$ac_tool_prefix"; then 5921 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 5922 do 5923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5924set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5925{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5927if test "${ac_cv_prog_F77+set}" = set; then 5928 echo $ECHO_N "(cached) $ECHO_C" >&6 5929else 5930 if test -n "$F77"; then 5931 ac_cv_prog_F77="$F77" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 test -z "$as_dir" && as_dir=. 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5940 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 break 2 5943 fi 5944done 5945done 5946IFS=$as_save_IFS 5947 5948fi 5949fi 5950F77=$ac_cv_prog_F77 5951if test -n "$F77"; then 5952 { echo "$as_me:$LINENO: result: $F77" >&5 5953echo "${ECHO_T}$F77" >&6; } 5954else 5955 { echo "$as_me:$LINENO: result: no" >&5 5956echo "${ECHO_T}no" >&6; } 5957fi 5958 5959 5960 test -n "$F77" && break 5961 done 5962fi 5963if test -z "$F77"; then 5964 ac_ct_F77=$F77 5965 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 5966do 5967 # Extract the first word of "$ac_prog", so it can be a program name with args. 5968set dummy $ac_prog; ac_word=$2 5969{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5971if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5972 echo $ECHO_N "(cached) $ECHO_C" >&6 5973else 5974 if test -n "$ac_ct_F77"; then 5975 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5976else 5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5978for as_dir in $PATH 5979do 5980 IFS=$as_save_IFS 5981 test -z "$as_dir" && as_dir=. 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5984 ac_cv_prog_ac_ct_F77="$ac_prog" 5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988done 5989done 5990IFS=$as_save_IFS 5991 5992fi 5993fi 5994ac_ct_F77=$ac_cv_prog_ac_ct_F77 5995if test -n "$ac_ct_F77"; then 5996 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5997echo "${ECHO_T}$ac_ct_F77" >&6; } 5998else 5999 { echo "$as_me:$LINENO: result: no" >&5 6000echo "${ECHO_T}no" >&6; } 6001fi 6002 6003 6004 test -n "$ac_ct_F77" && break 6005done 6006 6007 if test "x$ac_ct_F77" = x; then 6008 F77="" 6009 else 6010 case $cross_compiling:$ac_tool_warned in 6011yes:) 6012{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6013whose name does not start with the host triplet. If you think this 6014configuration is useful to you, please write to autoconf@gnu.org." >&5 6015echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6016whose name does not start with the host triplet. If you think this 6017configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6018ac_tool_warned=yes ;; 6019esac 6020 F77=$ac_ct_F77 6021 fi 6022fi 6023 6024 6025# Provide some information about the compiler. 6026echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6027ac_compiler=`set X $ac_compile; echo $2` 6028{ (ac_try="$ac_compiler --version >&5" 6029case "(($ac_try" in 6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6031 *) ac_try_echo=$ac_try;; 6032esac 6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6034 (eval "$ac_compiler --version >&5") 2>&5 6035 ac_status=$? 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } 6038{ (ac_try="$ac_compiler -v >&5" 6039case "(($ac_try" in 6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6041 *) ac_try_echo=$ac_try;; 6042esac 6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6044 (eval "$ac_compiler -v >&5") 2>&5 6045 ac_status=$? 6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6047 (exit $ac_status); } 6048{ (ac_try="$ac_compiler -V >&5" 6049case "(($ac_try" in 6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6051 *) ac_try_echo=$ac_try;; 6052esac 6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6054 (eval "$ac_compiler -V >&5") 2>&5 6055 ac_status=$? 6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6057 (exit $ac_status); } 6058rm -f a.out 6059 6060# If we don't use `.F' as extension, the preprocessor is not run on the 6061# input file. (Note that this only needs to work for GNU compilers.) 6062ac_save_ext=$ac_ext 6063ac_ext=F 6064{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6065echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6066if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6067 echo $ECHO_N "(cached) $ECHO_C" >&6 6068else 6069 cat >conftest.$ac_ext <<_ACEOF 6070 program main 6071#ifndef __GNUC__ 6072 choke me 6073#endif 6074 6075 end 6076_ACEOF 6077rm -f conftest.$ac_objext 6078if { (ac_try="$ac_compile" 6079case "(($ac_try" in 6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6081 *) ac_try_echo=$ac_try;; 6082esac 6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6084 (eval "$ac_compile") 2>conftest.er1 6085 ac_status=$? 6086 grep -v '^ *+' conftest.er1 >conftest.err 6087 rm -f conftest.er1 6088 cat conftest.err >&5 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); } && { 6091 test -z "$ac_f77_werror_flag" || 6092 test ! -s conftest.err 6093 } && test -s conftest.$ac_objext; then 6094 ac_compiler_gnu=yes 6095else 6096 echo "$as_me: failed program was:" >&5 6097sed 's/^/| /' conftest.$ac_ext >&5 6098 6099 ac_compiler_gnu=no 6100fi 6101 6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6103ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6104 6105fi 6106{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6107echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6108ac_ext=$ac_save_ext 6109ac_test_FFLAGS=${FFLAGS+set} 6110ac_save_FFLAGS=$FFLAGS 6111FFLAGS= 6112{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6113echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6114if test "${ac_cv_prog_f77_g+set}" = set; then 6115 echo $ECHO_N "(cached) $ECHO_C" >&6 6116else 6117 FFLAGS=-g 6118cat >conftest.$ac_ext <<_ACEOF 6119 program main 6120 6121 end 6122_ACEOF 6123rm -f conftest.$ac_objext 6124if { (ac_try="$ac_compile" 6125case "(($ac_try" in 6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6127 *) ac_try_echo=$ac_try;; 6128esac 6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6130 (eval "$ac_compile") 2>conftest.er1 6131 ac_status=$? 6132 grep -v '^ *+' conftest.er1 >conftest.err 6133 rm -f conftest.er1 6134 cat conftest.err >&5 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); } && { 6137 test -z "$ac_f77_werror_flag" || 6138 test ! -s conftest.err 6139 } && test -s conftest.$ac_objext; then 6140 ac_cv_prog_f77_g=yes 6141else 6142 echo "$as_me: failed program was:" >&5 6143sed 's/^/| /' conftest.$ac_ext >&5 6144 6145 ac_cv_prog_f77_g=no 6146fi 6147 6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6149 6150fi 6151{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6152echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6153if test "$ac_test_FFLAGS" = set; then 6154 FFLAGS=$ac_save_FFLAGS 6155elif test $ac_cv_prog_f77_g = yes; then 6156 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6157 FFLAGS="-g -O2" 6158 else 6159 FFLAGS="-g" 6160 fi 6161else 6162 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6163 FFLAGS="-O2" 6164 else 6165 FFLAGS= 6166 fi 6167fi 6168 6169G77=`test $ac_compiler_gnu = yes && echo yes` 6170ac_ext=c 6171ac_cpp='$CPP $CPPFLAGS' 6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6174ac_compiler_gnu=$ac_cv_c_compiler_gnu 6175 6176 6177 6178# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6179 6180# find the maximum length of command line arguments 6181{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6182echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6183if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185else 6186 i=0 6187 teststring="ABCD" 6188 6189 case $build_os in 6190 msdosdjgpp*) 6191 # On DJGPP, this test can blow up pretty badly due to problems in libc 6192 # (any single argument exceeding 2000 bytes causes a buffer overrun 6193 # during glob expansion). Even if it were fixed, the result of this 6194 # check would be larger than it should be. 6195 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6196 ;; 6197 6198 gnu*) 6199 # Under GNU Hurd, this test is not required because there is 6200 # no limit to the length of command line arguments. 6201 # Libtool will interpret -1 as no limit whatsoever 6202 lt_cv_sys_max_cmd_len=-1; 6203 ;; 6204 6205 cygwin* | mingw*) 6206 # On Win9x/ME, this test blows up -- it succeeds, but takes 6207 # about 5 minutes as the teststring grows exponentially. 6208 # Worse, since 9x/ME are not pre-emptively multitasking, 6209 # you end up with a "frozen" computer, even though with patience 6210 # the test eventually succeeds (with a max line length of 256k). 6211 # Instead, let's just punt: use the minimum linelength reported by 6212 # all of the supported platforms: 8192 (on NT/2K/XP). 6213 lt_cv_sys_max_cmd_len=8192; 6214 ;; 6215 6216 amigaos*) 6217 # On AmigaOS with pdksh, this test takes hours, literally. 6218 # So we just punt and use a minimum line length of 8192. 6219 lt_cv_sys_max_cmd_len=8192; 6220 ;; 6221 6222 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6223 # This has been around since 386BSD, at least. Likely further. 6224 if test -x /sbin/sysctl; then 6225 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6226 elif test -x /usr/sbin/sysctl; then 6227 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6228 else 6229 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6230 fi 6231 # And add a safety zone 6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6234 ;; 6235 6236 interix*) 6237 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6238 lt_cv_sys_max_cmd_len=196608 6239 ;; 6240 6241 osf*) 6242 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6243 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6244 # nice to cause kernel panics so lets avoid the loop below. 6245 # First set a reasonable default. 6246 lt_cv_sys_max_cmd_len=16384 6247 # 6248 if test -x /sbin/sysconfig; then 6249 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6250 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6251 esac 6252 fi 6253 ;; 6254 sco3.2v5*) 6255 lt_cv_sys_max_cmd_len=102400 6256 ;; 6257 sysv5* | sco5v6* | sysv4.2uw2*) 6258 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6259 if test -n "$kargmax"; then 6260 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6261 else 6262 lt_cv_sys_max_cmd_len=32768 6263 fi 6264 ;; 6265 *) 6266 # If test is not a shell built-in, we'll probably end up computing a 6267 # maximum length that is only half of the actual maximum length, but 6268 # we can't tell. 6269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6270 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6271 = "XX$teststring") >/dev/null 2>&1 && 6272 new_result=`expr "X$teststring" : ".*" 2>&1` && 6273 lt_cv_sys_max_cmd_len=$new_result && 6274 test $i != 17 # 1/2 MB should be enough 6275 do 6276 i=`expr $i + 1` 6277 teststring=$teststring$teststring 6278 done 6279 teststring= 6280 # Add a significant safety factor because C++ compilers can tack on massive 6281 # amounts of additional arguments before passing them to the linker. 6282 # It appears as though 1/2 is a usable value. 6283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6284 ;; 6285 esac 6286 6287fi 6288 6289if test -n $lt_cv_sys_max_cmd_len ; then 6290 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6291echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6292else 6293 { echo "$as_me:$LINENO: result: none" >&5 6294echo "${ECHO_T}none" >&6; } 6295fi 6296 6297 6298 6299 6300# Check for command to grab the raw symbol name followed by C symbol from nm. 6301{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6302echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6303if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6304 echo $ECHO_N "(cached) $ECHO_C" >&6 6305else 6306 6307# These are sane defaults that work on at least a few old systems. 6308# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6309 6310# Character class describing NM global symbol codes. 6311symcode='[BCDEGRST]' 6312 6313# Regexp to match symbols that can be accessed directly from C. 6314sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6315 6316# Transform an extracted symbol line into a proper C declaration 6317lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6318 6319# Transform an extracted symbol line into symbol name and symbol address 6320lt_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'" 6321 6322# Define system-specific variables. 6323case $host_os in 6324aix*) 6325 symcode='[BCDT]' 6326 ;; 6327cygwin* | mingw* | pw32*) 6328 symcode='[ABCDGISTW]' 6329 ;; 6330hpux*) # Its linker distinguishes data from code symbols 6331 if test "$host_cpu" = ia64; then 6332 symcode='[ABCDEGRST]' 6333 fi 6334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6336 ;; 6337linux*) 6338 if test "$host_cpu" = ia64; then 6339 symcode='[ABCDGIRSTW]' 6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6341 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'" 6342 fi 6343 ;; 6344irix* | nonstopux*) 6345 symcode='[BCDEGRST]' 6346 ;; 6347osf*) 6348 symcode='[BCDEGQRST]' 6349 ;; 6350solaris*) 6351 symcode='[BDRT]' 6352 ;; 6353sco3.2v5*) 6354 symcode='[DT]' 6355 ;; 6356sysv4.2uw2*) 6357 symcode='[DT]' 6358 ;; 6359sysv5* | sco5v6* | unixware* | OpenUNIX*) 6360 symcode='[ABDT]' 6361 ;; 6362sysv4) 6363 symcode='[DFNSTU]' 6364 ;; 6365esac 6366 6367# Handle CRLF in mingw tool chain 6368opt_cr= 6369case $build_os in 6370mingw*) 6371 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6372 ;; 6373esac 6374 6375# If we're using GNU nm, then use its standard symbol codes. 6376case `$NM -V 2>&1` in 6377*GNU* | *'with BFD'*) 6378 symcode='[ABCDGIRSTW]' ;; 6379esac 6380 6381# Try without a prefix undercore, then with it. 6382for ac_symprfx in "" "_"; do 6383 6384 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6385 symxfrm="\\1 $ac_symprfx\\2 \\2" 6386 6387 # Write the raw and C identifiers. 6388 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6389 6390 # Check to see that the pipe works correctly. 6391 pipe_works=no 6392 6393 rm -f conftest* 6394 cat > conftest.$ac_ext <<EOF 6395#ifdef __cplusplus 6396extern "C" { 6397#endif 6398char nm_test_var; 6399void nm_test_func(){} 6400#ifdef __cplusplus 6401} 6402#endif 6403int main(){nm_test_var='a';nm_test_func();return(0);} 6404EOF 6405 6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; then 6411 # Now try to grab the symbols. 6412 nlist=conftest.nm 6413 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6414 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6415 ac_status=$? 6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6417 (exit $ac_status); } && test -s "$nlist"; then 6418 # Try sorting and uniquifying the output. 6419 if sort "$nlist" | uniq > "$nlist"T; then 6420 mv -f "$nlist"T "$nlist" 6421 else 6422 rm -f "$nlist"T 6423 fi 6424 6425 # Make sure that we snagged all the symbols we need. 6426 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6427 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6428 cat <<EOF > conftest.$ac_ext 6429#ifdef __cplusplus 6430extern "C" { 6431#endif 6432 6433EOF 6434 # Now generate the symbol file. 6435 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6436 6437 cat <<EOF >> conftest.$ac_ext 6438#if defined (__STDC__) && __STDC__ 6439# define lt_ptr_t void * 6440#else 6441# define lt_ptr_t char * 6442# define const 6443#endif 6444 6445/* The mapping between symbol names and symbols. */ 6446const struct { 6447 const char *name; 6448 lt_ptr_t address; 6449} 6450lt_preloaded_symbols[] = 6451{ 6452EOF 6453 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6454 cat <<\EOF >> conftest.$ac_ext 6455 {0, (lt_ptr_t) 0} 6456}; 6457 6458#ifdef __cplusplus 6459} 6460#endif 6461EOF 6462 # Now try linking the two files. 6463 mv conftest.$ac_objext conftstm.$ac_objext 6464 lt_save_LIBS="$LIBS" 6465 lt_save_CFLAGS="$CFLAGS" 6466 LIBS="conftstm.$ac_objext" 6467 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6469 (eval $ac_link) 2>&5 6470 ac_status=$? 6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6472 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6473 pipe_works=yes 6474 fi 6475 LIBS="$lt_save_LIBS" 6476 CFLAGS="$lt_save_CFLAGS" 6477 else 6478 echo "cannot find nm_test_func in $nlist" >&5 6479 fi 6480 else 6481 echo "cannot find nm_test_var in $nlist" >&5 6482 fi 6483 else 6484 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6485 fi 6486 else 6487 echo "$progname: failed program was:" >&5 6488 cat conftest.$ac_ext >&5 6489 fi 6490 rm -f conftest* conftst* 6491 6492 # Do not use the global_symbol_pipe unless it works. 6493 if test "$pipe_works" = yes; then 6494 break 6495 else 6496 lt_cv_sys_global_symbol_pipe= 6497 fi 6498done 6499 6500fi 6501 6502if test -z "$lt_cv_sys_global_symbol_pipe"; then 6503 lt_cv_sys_global_symbol_to_cdecl= 6504fi 6505if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6506 { echo "$as_me:$LINENO: result: failed" >&5 6507echo "${ECHO_T}failed" >&6; } 6508else 6509 { echo "$as_me:$LINENO: result: ok" >&5 6510echo "${ECHO_T}ok" >&6; } 6511fi 6512 6513{ echo "$as_me:$LINENO: checking for objdir" >&5 6514echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6515if test "${lt_cv_objdir+set}" = set; then 6516 echo $ECHO_N "(cached) $ECHO_C" >&6 6517else 6518 rm -f .libs 2>/dev/null 6519mkdir .libs 2>/dev/null 6520if test -d .libs; then 6521 lt_cv_objdir=.libs 6522else 6523 # MS-DOS does not allow filenames that begin with a dot. 6524 lt_cv_objdir=_libs 6525fi 6526rmdir .libs 2>/dev/null 6527fi 6528{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6529echo "${ECHO_T}$lt_cv_objdir" >&6; } 6530objdir=$lt_cv_objdir 6531 6532 6533 6534 6535 6536case $host_os in 6537aix3*) 6538 # AIX sometimes has problems with the GCC collect2 program. For some 6539 # reason, if we set the COLLECT_NAMES environment variable, the problems 6540 # vanish in a puff of smoke. 6541 if test "X${COLLECT_NAMES+set}" != Xset; then 6542 COLLECT_NAMES= 6543 export COLLECT_NAMES 6544 fi 6545 ;; 6546esac 6547 6548# Sed substitution that helps us do robust quoting. It backslashifies 6549# metacharacters that are still active within double-quoted strings. 6550Xsed='sed -e 1s/^X//' 6551sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6552 6553# Same as above, but do not quote variable references. 6554double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6555 6556# Sed substitution to delay expansion of an escaped shell variable in a 6557# double_quote_subst'ed string. 6558delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6559 6560# Sed substitution to avoid accidental globbing in evaled expressions 6561no_glob_subst='s/\*/\\\*/g' 6562 6563# Constants: 6564rm="rm -f" 6565 6566# Global variables: 6567default_ofile=libtool 6568can_build_shared=yes 6569 6570# All known linkers require a `.a' archive for static linking (except MSVC, 6571# which needs '.lib'). 6572libext=a 6573ltmain="$ac_aux_dir/ltmain.sh" 6574ofile="$default_ofile" 6575with_gnu_ld="$lt_cv_prog_gnu_ld" 6576 6577if test -n "$ac_tool_prefix"; then 6578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6579set dummy ${ac_tool_prefix}ar; ac_word=$2 6580{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6582if test "${ac_cv_prog_AR+set}" = set; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 if test -n "$AR"; then 6586 ac_cv_prog_AR="$AR" # Let the user override the test. 6587else 6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6589for as_dir in $PATH 6590do 6591 IFS=$as_save_IFS 6592 test -z "$as_dir" && as_dir=. 6593 for ac_exec_ext in '' $ac_executable_extensions; do 6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6595 ac_cv_prog_AR="${ac_tool_prefix}ar" 6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6597 break 2 6598 fi 6599done 6600done 6601IFS=$as_save_IFS 6602 6603fi 6604fi 6605AR=$ac_cv_prog_AR 6606if test -n "$AR"; then 6607 { echo "$as_me:$LINENO: result: $AR" >&5 6608echo "${ECHO_T}$AR" >&6; } 6609else 6610 { echo "$as_me:$LINENO: result: no" >&5 6611echo "${ECHO_T}no" >&6; } 6612fi 6613 6614 6615fi 6616if test -z "$ac_cv_prog_AR"; then 6617 ac_ct_AR=$AR 6618 # Extract the first word of "ar", so it can be a program name with args. 6619set dummy ar; ac_word=$2 6620{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6622if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6623 echo $ECHO_N "(cached) $ECHO_C" >&6 6624else 6625 if test -n "$ac_ct_AR"; then 6626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6627else 6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629for as_dir in $PATH 6630do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6635 ac_cv_prog_ac_ct_AR="ar" 6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639done 6640done 6641IFS=$as_save_IFS 6642 6643fi 6644fi 6645ac_ct_AR=$ac_cv_prog_ac_ct_AR 6646if test -n "$ac_ct_AR"; then 6647 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6648echo "${ECHO_T}$ac_ct_AR" >&6; } 6649else 6650 { echo "$as_me:$LINENO: result: no" >&5 6651echo "${ECHO_T}no" >&6; } 6652fi 6653 6654 if test "x$ac_ct_AR" = x; then 6655 AR="false" 6656 else 6657 case $cross_compiling:$ac_tool_warned in 6658yes:) 6659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6660whose name does not start with the host triplet. If you think this 6661configuration is useful to you, please write to autoconf@gnu.org." >&5 6662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6663whose name does not start with the host triplet. If you think this 6664configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6665ac_tool_warned=yes ;; 6666esac 6667 AR=$ac_ct_AR 6668 fi 6669else 6670 AR="$ac_cv_prog_AR" 6671fi 6672 6673if test -n "$ac_tool_prefix"; then 6674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6675set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6678if test "${ac_cv_prog_RANLIB+set}" = set; then 6679 echo $ECHO_N "(cached) $ECHO_C" >&6 6680else 6681 if test -n "$RANLIB"; then 6682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6683else 6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685for as_dir in $PATH 6686do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6693 break 2 6694 fi 6695done 6696done 6697IFS=$as_save_IFS 6698 6699fi 6700fi 6701RANLIB=$ac_cv_prog_RANLIB 6702if test -n "$RANLIB"; then 6703 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6704echo "${ECHO_T}$RANLIB" >&6; } 6705else 6706 { echo "$as_me:$LINENO: result: no" >&5 6707echo "${ECHO_T}no" >&6; } 6708fi 6709 6710 6711fi 6712if test -z "$ac_cv_prog_RANLIB"; then 6713 ac_ct_RANLIB=$RANLIB 6714 # Extract the first word of "ranlib", so it can be a program name with args. 6715set dummy ranlib; ac_word=$2 6716{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6718if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6719 echo $ECHO_N "(cached) $ECHO_C" >&6 6720else 6721 if test -n "$ac_ct_RANLIB"; then 6722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6723else 6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725for as_dir in $PATH 6726do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6731 ac_cv_prog_ac_ct_RANLIB="ranlib" 6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735done 6736done 6737IFS=$as_save_IFS 6738 6739fi 6740fi 6741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6742if test -n "$ac_ct_RANLIB"; then 6743 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6744echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6745else 6746 { echo "$as_me:$LINENO: result: no" >&5 6747echo "${ECHO_T}no" >&6; } 6748fi 6749 6750 if test "x$ac_ct_RANLIB" = x; then 6751 RANLIB=":" 6752 else 6753 case $cross_compiling:$ac_tool_warned in 6754yes:) 6755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6756whose name does not start with the host triplet. If you think this 6757configuration is useful to you, please write to autoconf@gnu.org." >&5 6758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6759whose name does not start with the host triplet. If you think this 6760configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6761ac_tool_warned=yes ;; 6762esac 6763 RANLIB=$ac_ct_RANLIB 6764 fi 6765else 6766 RANLIB="$ac_cv_prog_RANLIB" 6767fi 6768 6769if test -n "$ac_tool_prefix"; then 6770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6771set dummy ${ac_tool_prefix}strip; ac_word=$2 6772{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6774if test "${ac_cv_prog_STRIP+set}" = set; then 6775 echo $ECHO_N "(cached) $ECHO_C" >&6 6776else 6777 if test -n "$STRIP"; then 6778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6779else 6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781for as_dir in $PATH 6782do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6787 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791done 6792done 6793IFS=$as_save_IFS 6794 6795fi 6796fi 6797STRIP=$ac_cv_prog_STRIP 6798if test -n "$STRIP"; then 6799 { echo "$as_me:$LINENO: result: $STRIP" >&5 6800echo "${ECHO_T}$STRIP" >&6; } 6801else 6802 { echo "$as_me:$LINENO: result: no" >&5 6803echo "${ECHO_T}no" >&6; } 6804fi 6805 6806 6807fi 6808if test -z "$ac_cv_prog_STRIP"; then 6809 ac_ct_STRIP=$STRIP 6810 # Extract the first word of "strip", so it can be a program name with args. 6811set dummy strip; ac_word=$2 6812{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6814if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6815 echo $ECHO_N "(cached) $ECHO_C" >&6 6816else 6817 if test -n "$ac_ct_STRIP"; then 6818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6819else 6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6821for as_dir in $PATH 6822do 6823 IFS=$as_save_IFS 6824 test -z "$as_dir" && as_dir=. 6825 for ac_exec_ext in '' $ac_executable_extensions; do 6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6827 ac_cv_prog_ac_ct_STRIP="strip" 6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6829 break 2 6830 fi 6831done 6832done 6833IFS=$as_save_IFS 6834 6835fi 6836fi 6837ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6838if test -n "$ac_ct_STRIP"; then 6839 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6840echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6841else 6842 { echo "$as_me:$LINENO: result: no" >&5 6843echo "${ECHO_T}no" >&6; } 6844fi 6845 6846 if test "x$ac_ct_STRIP" = x; then 6847 STRIP=":" 6848 else 6849 case $cross_compiling:$ac_tool_warned in 6850yes:) 6851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6852whose name does not start with the host triplet. If you think this 6853configuration is useful to you, please write to autoconf@gnu.org." >&5 6854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6855whose name does not start with the host triplet. If you think this 6856configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6857ac_tool_warned=yes ;; 6858esac 6859 STRIP=$ac_ct_STRIP 6860 fi 6861else 6862 STRIP="$ac_cv_prog_STRIP" 6863fi 6864 6865 6866old_CC="$CC" 6867old_CFLAGS="$CFLAGS" 6868 6869# Set sane defaults for various variables 6870test -z "$AR" && AR=ar 6871test -z "$AR_FLAGS" && AR_FLAGS=cru 6872test -z "$AS" && AS=as 6873test -z "$CC" && CC=cc 6874test -z "$LTCC" && LTCC=$CC 6875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6876test -z "$DLLTOOL" && DLLTOOL=dlltool 6877test -z "$LD" && LD=ld 6878test -z "$LN_S" && LN_S="ln -s" 6879test -z "$MAGIC_CMD" && MAGIC_CMD=file 6880test -z "$NM" && NM=nm 6881test -z "$SED" && SED=sed 6882test -z "$OBJDUMP" && OBJDUMP=objdump 6883test -z "$RANLIB" && RANLIB=: 6884test -z "$STRIP" && STRIP=: 6885test -z "$ac_objext" && ac_objext=o 6886 6887# Determine commands to create old-style static archives. 6888old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6889old_postinstall_cmds='chmod 644 $oldlib' 6890old_postuninstall_cmds= 6891 6892if test -n "$RANLIB"; then 6893 case $host_os in 6894 openbsd*) 6895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6896 ;; 6897 *) 6898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6899 ;; 6900 esac 6901 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6902fi 6903 6904for cc_temp in $compiler""; do 6905 case $cc_temp in 6906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6908 \-*) ;; 6909 *) break;; 6910 esac 6911done 6912cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6913 6914 6915# Only perform the check for file, if the check method requires it 6916case $deplibs_check_method in 6917file_magic*) 6918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6919 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6920echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6921if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6922 echo $ECHO_N "(cached) $ECHO_C" >&6 6923else 6924 case $MAGIC_CMD in 6925[\\/*] | ?:[\\/]*) 6926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6927 ;; 6928*) 6929 lt_save_MAGIC_CMD="$MAGIC_CMD" 6930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6932 for ac_dir in $ac_dummy; do 6933 IFS="$lt_save_ifs" 6934 test -z "$ac_dir" && ac_dir=. 6935 if test -f $ac_dir/${ac_tool_prefix}file; then 6936 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6937 if test -n "$file_magic_test_file"; then 6938 case $deplibs_check_method in 6939 "file_magic "*) 6940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6943 $EGREP "$file_magic_regex" > /dev/null; then 6944 : 6945 else 6946 cat <<EOF 1>&2 6947 6948*** Warning: the command libtool uses to detect shared libraries, 6949*** $file_magic_cmd, produces output that libtool cannot recognize. 6950*** The result is that libtool may fail to recognize shared libraries 6951*** as such. This will affect the creation of libtool libraries that 6952*** depend on shared libraries, but programs linked with such libtool 6953*** libraries will work regardless of this problem. Nevertheless, you 6954*** may want to report the problem to your system manager and/or to 6955*** bug-libtool@gnu.org 6956 6957EOF 6958 fi ;; 6959 esac 6960 fi 6961 break 6962 fi 6963 done 6964 IFS="$lt_save_ifs" 6965 MAGIC_CMD="$lt_save_MAGIC_CMD" 6966 ;; 6967esac 6968fi 6969 6970MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6971if test -n "$MAGIC_CMD"; then 6972 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6973echo "${ECHO_T}$MAGIC_CMD" >&6; } 6974else 6975 { echo "$as_me:$LINENO: result: no" >&5 6976echo "${ECHO_T}no" >&6; } 6977fi 6978 6979if test -z "$lt_cv_path_MAGIC_CMD"; then 6980 if test -n "$ac_tool_prefix"; then 6981 { echo "$as_me:$LINENO: checking for file" >&5 6982echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6983if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6984 echo $ECHO_N "(cached) $ECHO_C" >&6 6985else 6986 case $MAGIC_CMD in 6987[\\/*] | ?:[\\/]*) 6988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6989 ;; 6990*) 6991 lt_save_MAGIC_CMD="$MAGIC_CMD" 6992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6994 for ac_dir in $ac_dummy; do 6995 IFS="$lt_save_ifs" 6996 test -z "$ac_dir" && ac_dir=. 6997 if test -f $ac_dir/file; then 6998 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6999 if test -n "$file_magic_test_file"; then 7000 case $deplibs_check_method in 7001 "file_magic "*) 7002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7005 $EGREP "$file_magic_regex" > /dev/null; then 7006 : 7007 else 7008 cat <<EOF 1>&2 7009 7010*** Warning: the command libtool uses to detect shared libraries, 7011*** $file_magic_cmd, produces output that libtool cannot recognize. 7012*** The result is that libtool may fail to recognize shared libraries 7013*** as such. This will affect the creation of libtool libraries that 7014*** depend on shared libraries, but programs linked with such libtool 7015*** libraries will work regardless of this problem. Nevertheless, you 7016*** may want to report the problem to your system manager and/or to 7017*** bug-libtool@gnu.org 7018 7019EOF 7020 fi ;; 7021 esac 7022 fi 7023 break 7024 fi 7025 done 7026 IFS="$lt_save_ifs" 7027 MAGIC_CMD="$lt_save_MAGIC_CMD" 7028 ;; 7029esac 7030fi 7031 7032MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7033if test -n "$MAGIC_CMD"; then 7034 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7035echo "${ECHO_T}$MAGIC_CMD" >&6; } 7036else 7037 { echo "$as_me:$LINENO: result: no" >&5 7038echo "${ECHO_T}no" >&6; } 7039fi 7040 7041 else 7042 MAGIC_CMD=: 7043 fi 7044fi 7045 7046 fi 7047 ;; 7048esac 7049 7050enable_dlopen=no 7051enable_win32_dll=no 7052 7053# Check whether --enable-libtool-lock was given. 7054if test "${enable_libtool_lock+set}" = set; then 7055 enableval=$enable_libtool_lock; 7056fi 7057 7058test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7059 7060 7061# Check whether --with-pic was given. 7062if test "${with_pic+set}" = set; then 7063 withval=$with_pic; pic_mode="$withval" 7064else 7065 pic_mode=default 7066fi 7067 7068test -z "$pic_mode" && pic_mode=default 7069 7070# Use C for the default configuration in the libtool script 7071tagname= 7072lt_save_CC="$CC" 7073ac_ext=c 7074ac_cpp='$CPP $CPPFLAGS' 7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7077ac_compiler_gnu=$ac_cv_c_compiler_gnu 7078 7079 7080# Source file extension for C test sources. 7081ac_ext=c 7082 7083# Object file extension for compiled C test sources. 7084objext=o 7085objext=$objext 7086 7087# Code to be used in simple compile tests 7088lt_simple_compile_test_code="int some_variable = 0;\n" 7089 7090# Code to be used in simple link tests 7091lt_simple_link_test_code='int main(){return(0);}\n' 7092 7093 7094# If no C compiler was specified, use CC. 7095LTCC=${LTCC-"$CC"} 7096 7097# If no C compiler flags were specified, use CFLAGS. 7098LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7099 7100# Allow CC to be a program name with arguments. 7101compiler=$CC 7102 7103 7104# save warnings/boilerplate of simple test code 7105ac_outfile=conftest.$ac_objext 7106printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7108_lt_compiler_boilerplate=`cat conftest.err` 7109$rm conftest* 7110 7111ac_outfile=conftest.$ac_objext 7112printf "$lt_simple_link_test_code" >conftest.$ac_ext 7113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7114_lt_linker_boilerplate=`cat conftest.err` 7115$rm conftest* 7116 7117 7118 7119lt_prog_compiler_no_builtin_flag= 7120 7121if test "$GCC" = yes; then 7122 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7123 7124 7125{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7126echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7127if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7128 echo $ECHO_N "(cached) $ECHO_C" >&6 7129else 7130 lt_cv_prog_compiler_rtti_exceptions=no 7131 ac_outfile=conftest.$ac_objext 7132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7133 lt_compiler_flag="-fno-rtti -fno-exceptions" 7134 # Insert the option either (1) after the last *FLAGS variable, or 7135 # (2) before a word containing "conftest.", or (3) at the end. 7136 # Note that $ac_compile itself does not contain backslashes and begins 7137 # with a dollar sign (not a hyphen), so the echo should work correctly. 7138 # The option is referenced via a variable to avoid confusing sed. 7139 lt_compile=`echo "$ac_compile" | $SED \ 7140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7142 -e 's:$: $lt_compiler_flag:'` 7143 (eval echo "\"\$as_me:7143: $lt_compile\"" >&5) 7144 (eval "$lt_compile" 2>conftest.err) 7145 ac_status=$? 7146 cat conftest.err >&5 7147 echo "$as_me:7147: \$? = $ac_status" >&5 7148 if (exit $ac_status) && test -s "$ac_outfile"; then 7149 # The compiler can only warn and ignore the option if not recognized 7150 # So say no if there are warnings other than the usual output. 7151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7154 lt_cv_prog_compiler_rtti_exceptions=yes 7155 fi 7156 fi 7157 $rm conftest* 7158 7159fi 7160{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7161echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7162 7163if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7164 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7165else 7166 : 7167fi 7168 7169fi 7170 7171lt_prog_compiler_wl= 7172lt_prog_compiler_pic= 7173lt_prog_compiler_static= 7174 7175{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7176echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7177 7178 if test "$GCC" = yes; then 7179 lt_prog_compiler_wl='-Wl,' 7180 lt_prog_compiler_static='-static' 7181 7182 case $host_os in 7183 aix*) 7184 # All AIX code is PIC. 7185 if test "$host_cpu" = ia64; then 7186 # AIX 5 now supports IA64 processor 7187 lt_prog_compiler_static='-Bstatic' 7188 fi 7189 ;; 7190 7191 amigaos*) 7192 # FIXME: we need at least 68020 code to build shared libraries, but 7193 # adding the `-m68020' flag to GCC prevents building anything better, 7194 # like `-m68040'. 7195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7196 ;; 7197 7198 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7199 # PIC is the default for these OSes. 7200 ;; 7201 7202 mingw* | pw32* | os2*) 7203 # This hack is so that the source file can tell whether it is being 7204 # built for inclusion in a dll (and should export symbols for example). 7205 lt_prog_compiler_pic='-DDLL_EXPORT' 7206 ;; 7207 7208 darwin* | rhapsody*) 7209 # PIC is the default on this platform 7210 # Common symbols not allowed in MH_DYLIB files 7211 lt_prog_compiler_pic='-fno-common' 7212 ;; 7213 7214 interix3*) 7215 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7216 # Instead, we relocate shared libraries at runtime. 7217 ;; 7218 7219 msdosdjgpp*) 7220 # Just because we use GCC doesn't mean we suddenly get shared libraries 7221 # on systems that don't support them. 7222 lt_prog_compiler_can_build_shared=no 7223 enable_shared=no 7224 ;; 7225 7226 sysv4*MP*) 7227 if test -d /usr/nec; then 7228 lt_prog_compiler_pic=-Kconform_pic 7229 fi 7230 ;; 7231 7232 hpux*) 7233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7234 # not for PA HP-UX. 7235 case $host_cpu in 7236 hppa*64*|ia64*) 7237 # +Z the default 7238 ;; 7239 *) 7240 lt_prog_compiler_pic='-fPIC' 7241 ;; 7242 esac 7243 ;; 7244 7245 *) 7246 lt_prog_compiler_pic='-fPIC' 7247 ;; 7248 esac 7249 else 7250 # PORTME Check for flag to pass linker flags through the system compiler. 7251 case $host_os in 7252 aix*) 7253 lt_prog_compiler_wl='-Wl,' 7254 if test "$host_cpu" = ia64; then 7255 # AIX 5 now supports IA64 processor 7256 lt_prog_compiler_static='-Bstatic' 7257 else 7258 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7259 fi 7260 ;; 7261 darwin*) 7262 # PIC is the default on this platform 7263 # Common symbols not allowed in MH_DYLIB files 7264 case $cc_basename in 7265 xlc*) 7266 lt_prog_compiler_pic='-qnocommon' 7267 lt_prog_compiler_wl='-Wl,' 7268 ;; 7269 esac 7270 ;; 7271 7272 mingw* | pw32* | os2*) 7273 # This hack is so that the source file can tell whether it is being 7274 # built for inclusion in a dll (and should export symbols for example). 7275 lt_prog_compiler_pic='-DDLL_EXPORT' 7276 ;; 7277 7278 hpux9* | hpux10* | hpux11*) 7279 lt_prog_compiler_wl='-Wl,' 7280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7281 # not for PA HP-UX. 7282 case $host_cpu in 7283 hppa*64*|ia64*) 7284 # +Z the default 7285 ;; 7286 *) 7287 lt_prog_compiler_pic='+Z' 7288 ;; 7289 esac 7290 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7291 lt_prog_compiler_static='${wl}-a ${wl}archive' 7292 ;; 7293 7294 irix5* | irix6* | nonstopux*) 7295 lt_prog_compiler_wl='-Wl,' 7296 # PIC (with -KPIC) is the default. 7297 lt_prog_compiler_static='-non_shared' 7298 ;; 7299 7300 newsos6) 7301 lt_prog_compiler_pic='-KPIC' 7302 lt_prog_compiler_static='-Bstatic' 7303 ;; 7304 7305 linux*) 7306 case $cc_basename in 7307 icc* | ecc*) 7308 lt_prog_compiler_wl='-Wl,' 7309 lt_prog_compiler_pic='-KPIC' 7310 lt_prog_compiler_static='-static' 7311 ;; 7312 pgcc* | pgf77* | pgf90* | pgf95*) 7313 # Portland Group compilers (*not* the Pentium gcc compiler, 7314 # which looks to be a dead project) 7315 lt_prog_compiler_wl='-Wl,' 7316 lt_prog_compiler_pic='-fpic' 7317 lt_prog_compiler_static='-Bstatic' 7318 ;; 7319 ccc*) 7320 lt_prog_compiler_wl='-Wl,' 7321 # All Alpha code is PIC. 7322 lt_prog_compiler_static='-non_shared' 7323 ;; 7324 esac 7325 ;; 7326 7327 osf3* | osf4* | osf5*) 7328 lt_prog_compiler_wl='-Wl,' 7329 # All OSF/1 code is PIC. 7330 lt_prog_compiler_static='-non_shared' 7331 ;; 7332 7333 solaris*) 7334 lt_prog_compiler_pic='-KPIC' 7335 lt_prog_compiler_static='-Bstatic' 7336 case $cc_basename in 7337 f77* | f90* | f95*) 7338 lt_prog_compiler_wl='-Qoption ld ';; 7339 *) 7340 lt_prog_compiler_wl='-Wl,';; 7341 esac 7342 ;; 7343 7344 sunos4*) 7345 lt_prog_compiler_wl='-Qoption ld ' 7346 lt_prog_compiler_pic='-PIC' 7347 lt_prog_compiler_static='-Bstatic' 7348 ;; 7349 7350 sysv4 | sysv4.2uw2* | sysv4.3*) 7351 lt_prog_compiler_wl='-Wl,' 7352 lt_prog_compiler_pic='-KPIC' 7353 lt_prog_compiler_static='-Bstatic' 7354 ;; 7355 7356 sysv4*MP*) 7357 if test -d /usr/nec ;then 7358 lt_prog_compiler_pic='-Kconform_pic' 7359 lt_prog_compiler_static='-Bstatic' 7360 fi 7361 ;; 7362 7363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7364 lt_prog_compiler_wl='-Wl,' 7365 lt_prog_compiler_pic='-KPIC' 7366 lt_prog_compiler_static='-Bstatic' 7367 ;; 7368 7369 unicos*) 7370 lt_prog_compiler_wl='-Wl,' 7371 lt_prog_compiler_can_build_shared=no 7372 ;; 7373 7374 uts4*) 7375 lt_prog_compiler_pic='-pic' 7376 lt_prog_compiler_static='-Bstatic' 7377 ;; 7378 7379 *) 7380 lt_prog_compiler_can_build_shared=no 7381 ;; 7382 esac 7383 fi 7384 7385{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7386echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7387 7388# 7389# Check to make sure the PIC flag actually works. 7390# 7391if test -n "$lt_prog_compiler_pic"; then 7392 7393{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7394echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7395if test "${lt_prog_compiler_pic_works+set}" = set; then 7396 echo $ECHO_N "(cached) $ECHO_C" >&6 7397else 7398 lt_prog_compiler_pic_works=no 7399 ac_outfile=conftest.$ac_objext 7400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7401 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7402 # Insert the option either (1) after the last *FLAGS variable, or 7403 # (2) before a word containing "conftest.", or (3) at the end. 7404 # Note that $ac_compile itself does not contain backslashes and begins 7405 # with a dollar sign (not a hyphen), so the echo should work correctly. 7406 # The option is referenced via a variable to avoid confusing sed. 7407 lt_compile=`echo "$ac_compile" | $SED \ 7408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7410 -e 's:$: $lt_compiler_flag:'` 7411 (eval echo "\"\$as_me:7411: $lt_compile\"" >&5) 7412 (eval "$lt_compile" 2>conftest.err) 7413 ac_status=$? 7414 cat conftest.err >&5 7415 echo "$as_me:7415: \$? = $ac_status" >&5 7416 if (exit $ac_status) && test -s "$ac_outfile"; then 7417 # The compiler can only warn and ignore the option if not recognized 7418 # So say no if there are warnings other than the usual output. 7419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7422 lt_prog_compiler_pic_works=yes 7423 fi 7424 fi 7425 $rm conftest* 7426 7427fi 7428{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7429echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7430 7431if test x"$lt_prog_compiler_pic_works" = xyes; then 7432 case $lt_prog_compiler_pic in 7433 "" | " "*) ;; 7434 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7435 esac 7436else 7437 lt_prog_compiler_pic= 7438 lt_prog_compiler_can_build_shared=no 7439fi 7440 7441fi 7442case $host_os in 7443 # For platforms which do not support PIC, -DPIC is meaningless: 7444 *djgpp*) 7445 lt_prog_compiler_pic= 7446 ;; 7447 *) 7448 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7449 ;; 7450esac 7451 7452# 7453# Check to make sure the static flag actually works. 7454# 7455wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7456{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7457echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7458if test "${lt_prog_compiler_static_works+set}" = set; then 7459 echo $ECHO_N "(cached) $ECHO_C" >&6 7460else 7461 lt_prog_compiler_static_works=no 7462 save_LDFLAGS="$LDFLAGS" 7463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7464 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7466 # The linker can only warn and ignore the option if not recognized 7467 # So say no if there are warnings 7468 if test -s conftest.err; then 7469 # Append any errors to the config.log. 7470 cat conftest.err 1>&5 7471 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7473 if diff conftest.exp conftest.er2 >/dev/null; then 7474 lt_prog_compiler_static_works=yes 7475 fi 7476 else 7477 lt_prog_compiler_static_works=yes 7478 fi 7479 fi 7480 $rm conftest* 7481 LDFLAGS="$save_LDFLAGS" 7482 7483fi 7484{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7485echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7486 7487if test x"$lt_prog_compiler_static_works" = xyes; then 7488 : 7489else 7490 lt_prog_compiler_static= 7491fi 7492 7493 7494{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7495echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7496if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7497 echo $ECHO_N "(cached) $ECHO_C" >&6 7498else 7499 lt_cv_prog_compiler_c_o=no 7500 $rm -r conftest 2>/dev/null 7501 mkdir conftest 7502 cd conftest 7503 mkdir out 7504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7505 7506 lt_compiler_flag="-o out/conftest2.$ac_objext" 7507 # Insert the option either (1) after the last *FLAGS variable, or 7508 # (2) before a word containing "conftest.", or (3) at the end. 7509 # Note that $ac_compile itself does not contain backslashes and begins 7510 # with a dollar sign (not a hyphen), so the echo should work correctly. 7511 lt_compile=`echo "$ac_compile" | $SED \ 7512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7514 -e 's:$: $lt_compiler_flag:'` 7515 (eval echo "\"\$as_me:7515: $lt_compile\"" >&5) 7516 (eval "$lt_compile" 2>out/conftest.err) 7517 ac_status=$? 7518 cat out/conftest.err >&5 7519 echo "$as_me:7519: \$? = $ac_status" >&5 7520 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7521 then 7522 # The compiler can only warn and ignore the option if not recognized 7523 # So say no if there are warnings 7524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7527 lt_cv_prog_compiler_c_o=yes 7528 fi 7529 fi 7530 chmod u+w . 2>&5 7531 $rm conftest* 7532 # SGI C++ compiler will create directory out/ii_files/ for 7533 # template instantiation 7534 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7535 $rm out/* && rmdir out 7536 cd .. 7537 rmdir conftest 7538 $rm conftest* 7539 7540fi 7541{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7542echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7543 7544 7545hard_links="nottested" 7546if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7547 # do not overwrite the value of need_locks provided by the user 7548 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7549echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7550 hard_links=yes 7551 $rm conftest* 7552 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7553 touch conftest.a 7554 ln conftest.a conftest.b 2>&5 || hard_links=no 7555 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7556 { echo "$as_me:$LINENO: result: $hard_links" >&5 7557echo "${ECHO_T}$hard_links" >&6; } 7558 if test "$hard_links" = no; then 7559 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7560echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7561 need_locks=warn 7562 fi 7563else 7564 need_locks=no 7565fi 7566 7567{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7568echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7569 7570 runpath_var= 7571 allow_undefined_flag= 7572 enable_shared_with_static_runtimes=no 7573 archive_cmds= 7574 archive_expsym_cmds= 7575 old_archive_From_new_cmds= 7576 old_archive_from_expsyms_cmds= 7577 export_dynamic_flag_spec= 7578 whole_archive_flag_spec= 7579 thread_safe_flag_spec= 7580 hardcode_libdir_flag_spec= 7581 hardcode_libdir_flag_spec_ld= 7582 hardcode_libdir_separator= 7583 hardcode_direct=no 7584 hardcode_minus_L=no 7585 hardcode_shlibpath_var=unsupported 7586 link_all_deplibs=unknown 7587 hardcode_automatic=no 7588 module_cmds= 7589 module_expsym_cmds= 7590 always_export_symbols=no 7591 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7592 # include_expsyms should be a list of space-separated symbols to be *always* 7593 # included in the symbol list 7594 include_expsyms= 7595 # exclude_expsyms can be an extended regexp of symbols to exclude 7596 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7597 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7598 # as well as any symbol that contains `d'. 7599 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7601 # platforms (ab)use it in PIC code, but their linkers get confused if 7602 # the symbol is explicitly referenced. Since portable code cannot 7603 # rely on this symbol name, it's probably fine to never include it in 7604 # preloaded symbol tables. 7605 extract_expsyms_cmds= 7606 # Just being paranoid about ensuring that cc_basename is set. 7607 for cc_temp in $compiler""; do 7608 case $cc_temp in 7609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7611 \-*) ;; 7612 *) break;; 7613 esac 7614done 7615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7616 7617 case $host_os in 7618 cygwin* | mingw* | pw32*) 7619 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7620 # When not using gcc, we currently assume that we are using 7621 # Microsoft Visual C++. 7622 if test "$GCC" != yes; then 7623 with_gnu_ld=no 7624 fi 7625 ;; 7626 interix*) 7627 # we just hope/assume this is gcc and not c89 (= MSVC++) 7628 with_gnu_ld=yes 7629 ;; 7630 openbsd*) 7631 with_gnu_ld=no 7632 ;; 7633 esac 7634 7635 ld_shlibs=yes 7636 if test "$with_gnu_ld" = yes; then 7637 # If archive_cmds runs LD, not CC, wlarc should be empty 7638 wlarc='${wl}' 7639 7640 # Set some defaults for GNU ld with shared library support. These 7641 # are reset later if shared libraries are not supported. Putting them 7642 # here allows them to be overridden if necessary. 7643 runpath_var=LD_RUN_PATH 7644 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7645 export_dynamic_flag_spec='${wl}--export-dynamic' 7646 # ancient GNU ld didn't support --whole-archive et. al. 7647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7648 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7649 else 7650 whole_archive_flag_spec= 7651 fi 7652 supports_anon_versioning=no 7653 case `$LD -v 2>/dev/null` in 7654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7657 *\ 2.11.*) ;; # other 2.11 versions 7658 *) supports_anon_versioning=yes ;; 7659 esac 7660 7661 # See if GNU ld supports shared libraries. 7662 case $host_os in 7663 aix3* | aix4* | aix5*) 7664 # On AIX/PPC, the GNU linker is very broken 7665 if test "$host_cpu" != ia64; then 7666 ld_shlibs=no 7667 cat <<EOF 1>&2 7668 7669*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7670*** to be unable to reliably create shared libraries on AIX. 7671*** Therefore, libtool is disabling shared libraries support. If you 7672*** really care for shared libraries, you may want to modify your PATH 7673*** so that a non-GNU linker is found, and then restart. 7674 7675EOF 7676 fi 7677 ;; 7678 7679 amigaos*) 7680 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)' 7681 hardcode_libdir_flag_spec='-L$libdir' 7682 hardcode_minus_L=yes 7683 7684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7685 # that the semantics of dynamic libraries on AmigaOS, at least up 7686 # to version 4, is to share data among multiple programs linked 7687 # with the same dynamic library. Since this doesn't match the 7688 # behavior of shared libraries on other platforms, we can't use 7689 # them. 7690 ld_shlibs=no 7691 ;; 7692 7693 beos*) 7694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7695 allow_undefined_flag=unsupported 7696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7697 # support --undefined. This deserves some investigation. FIXME 7698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7699 else 7700 ld_shlibs=no 7701 fi 7702 ;; 7703 7704 cygwin* | mingw* | pw32*) 7705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7706 # as there is no search path for DLLs. 7707 hardcode_libdir_flag_spec='-L$libdir' 7708 allow_undefined_flag=unsupported 7709 always_export_symbols=no 7710 enable_shared_with_static_runtimes=yes 7711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7712 7713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7715 # If the export-symbols file already is a .def file (1st line 7716 # is EXPORTS), use it as is; otherwise, prepend... 7717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7718 cp $export_symbols $output_objdir/$soname.def; 7719 else 7720 echo EXPORTS > $output_objdir/$soname.def; 7721 cat $export_symbols >> $output_objdir/$soname.def; 7722 fi~ 7723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7724 else 7725 ld_shlibs=no 7726 fi 7727 ;; 7728 7729 interix3*) 7730 hardcode_direct=no 7731 hardcode_shlibpath_var=no 7732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7733 export_dynamic_flag_spec='${wl}-E' 7734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7735 # Instead, shared libraries are loaded at an image base (0x10000000 by 7736 # default) and relocated if they conflict, which is a slow very memory 7737 # consuming and fragmenting process. To avoid this, we pick a random, 7738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7739 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7741 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' 7742 ;; 7743 7744 linux*) 7745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7746 tmp_addflag= 7747 case $cc_basename,$host_cpu in 7748 pgcc*) # Portland Group C compiler 7749 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' 7750 tmp_addflag=' $pic_flag' 7751 ;; 7752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7753 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' 7754 tmp_addflag=' $pic_flag -Mnomain' ;; 7755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7756 tmp_addflag=' -i_dynamic' ;; 7757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7758 tmp_addflag=' -i_dynamic -nofor_main' ;; 7759 ifc* | ifort*) # Intel Fortran compiler 7760 tmp_addflag=' -nofor_main' ;; 7761 esac 7762 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7763 7764 if test $supports_anon_versioning = yes; then 7765 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7767 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7768 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7769 fi 7770 else 7771 ld_shlibs=no 7772 fi 7773 ;; 7774 7775 netbsd*) 7776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7777 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7778 wlarc= 7779 else 7780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7782 fi 7783 ;; 7784 7785 solaris*) 7786 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7787 ld_shlibs=no 7788 cat <<EOF 1>&2 7789 7790*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7791*** create shared libraries on Solaris systems. Therefore, libtool 7792*** is disabling shared libraries support. We urge you to upgrade GNU 7793*** binutils to release 2.9.1 or newer. Another option is to modify 7794*** your PATH or compiler configuration so that the native linker is 7795*** used, and then restart. 7796 7797EOF 7798 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7801 else 7802 ld_shlibs=no 7803 fi 7804 ;; 7805 7806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7807 case `$LD -v 2>&1` in 7808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7809 ld_shlibs=no 7810 cat <<_LT_EOF 1>&2 7811 7812*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7813*** reliably create shared libraries on SCO systems. Therefore, libtool 7814*** is disabling shared libraries support. We urge you to upgrade GNU 7815*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7816*** your PATH or compiler configuration so that the native linker is 7817*** used, and then restart. 7818 7819_LT_EOF 7820 ;; 7821 *) 7822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7823 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7826 else 7827 ld_shlibs=no 7828 fi 7829 ;; 7830 esac 7831 ;; 7832 7833 sunos4*) 7834 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7835 wlarc= 7836 hardcode_direct=yes 7837 hardcode_shlibpath_var=no 7838 ;; 7839 7840 *) 7841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7844 else 7845 ld_shlibs=no 7846 fi 7847 ;; 7848 esac 7849 7850 if test "$ld_shlibs" = no; then 7851 runpath_var= 7852 hardcode_libdir_flag_spec= 7853 export_dynamic_flag_spec= 7854 whole_archive_flag_spec= 7855 fi 7856 else 7857 # PORTME fill in a description of your system's linker (not GNU ld) 7858 case $host_os in 7859 aix3*) 7860 allow_undefined_flag=unsupported 7861 always_export_symbols=yes 7862 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' 7863 # Note: this linker hardcodes the directories in LIBPATH if there 7864 # are no directories specified by -L. 7865 hardcode_minus_L=yes 7866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7867 # Neither direct hardcoding nor static linking is supported with a 7868 # broken collect2. 7869 hardcode_direct=unsupported 7870 fi 7871 ;; 7872 7873 aix4* | aix5*) 7874 if test "$host_cpu" = ia64; then 7875 # On IA64, the linker does run time linking by default, so we don't 7876 # have to do anything special. 7877 aix_use_runtimelinking=no 7878 exp_sym_flag='-Bexport' 7879 no_entry_flag="" 7880 else 7881 # If we're using GNU nm, then we don't want the "-C" option. 7882 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7884 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' 7885 else 7886 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' 7887 fi 7888 aix_use_runtimelinking=no 7889 7890 # Test if we are trying to use run time linking or normal 7891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7892 # need to do runtime linking. 7893 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7894 for ld_flag in $LDFLAGS; do 7895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7896 aix_use_runtimelinking=yes 7897 break 7898 fi 7899 done 7900 ;; 7901 esac 7902 7903 exp_sym_flag='-bexport' 7904 no_entry_flag='-bnoentry' 7905 fi 7906 7907 # When large executables or shared objects are built, AIX ld can 7908 # have problems creating the table of contents. If linking a library 7909 # or program results in "error TOC overflow" add -mminimal-toc to 7910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7912 7913 archive_cmds='' 7914 hardcode_direct=yes 7915 hardcode_libdir_separator=':' 7916 link_all_deplibs=yes 7917 7918 if test "$GCC" = yes; then 7919 case $host_os in aix4.[012]|aix4.[012].*) 7920 # We only want to do this on AIX 4.2 and lower, the check 7921 # below for broken collect2 doesn't work under 4.3+ 7922 collect2name=`${CC} -print-prog-name=collect2` 7923 if test -f "$collect2name" && \ 7924 strings "$collect2name" | grep resolve_lib_name >/dev/null 7925 then 7926 # We have reworked collect2 7927 hardcode_direct=yes 7928 else 7929 # We have old collect2 7930 hardcode_direct=unsupported 7931 # It fails to find uninstalled libraries when the uninstalled 7932 # path is not listed in the libpath. Setting hardcode_minus_L 7933 # to unsupported forces relinking 7934 hardcode_minus_L=yes 7935 hardcode_libdir_flag_spec='-L$libdir' 7936 hardcode_libdir_separator= 7937 fi 7938 ;; 7939 esac 7940 shared_flag='-shared' 7941 if test "$aix_use_runtimelinking" = yes; then 7942 shared_flag="$shared_flag "'${wl}-G' 7943 fi 7944 else 7945 # not using gcc 7946 if test "$host_cpu" = ia64; then 7947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7948 # chokes on -Wl,-G. The following line is correct: 7949 shared_flag='-G' 7950 else 7951 if test "$aix_use_runtimelinking" = yes; then 7952 shared_flag='${wl}-G' 7953 else 7954 shared_flag='${wl}-bM:SRE' 7955 fi 7956 fi 7957 fi 7958 7959 # It seems that -bexpall does not export symbols beginning with 7960 # underscore (_), so it is better to generate a list of symbols to export. 7961 always_export_symbols=yes 7962 if test "$aix_use_runtimelinking" = yes; then 7963 # Warning - without using the other runtime loading flags (-brtl), 7964 # -berok will link without error, but may produce a broken library. 7965 allow_undefined_flag='-berok' 7966 # Determine the default libpath from the value encoded in an empty executable. 7967 cat >conftest.$ac_ext <<_ACEOF 7968/* confdefs.h. */ 7969_ACEOF 7970cat confdefs.h >>conftest.$ac_ext 7971cat >>conftest.$ac_ext <<_ACEOF 7972/* end confdefs.h. */ 7973 7974int 7975main () 7976{ 7977 7978 ; 7979 return 0; 7980} 7981_ACEOF 7982rm -f conftest.$ac_objext conftest$ac_exeext 7983if { (ac_try="$ac_link" 7984case "(($ac_try" in 7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7986 *) ac_try_echo=$ac_try;; 7987esac 7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7989 (eval "$ac_link") 2>conftest.er1 7990 ac_status=$? 7991 grep -v '^ *+' conftest.er1 >conftest.err 7992 rm -f conftest.er1 7993 cat conftest.err >&5 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 (exit $ac_status); } && { 7996 test -z "$ac_c_werror_flag" || 7997 test ! -s conftest.err 7998 } && test -s conftest$ac_exeext && 7999 $as_test_x conftest$ac_exeext; then 8000 8001aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8002}'` 8003# Check for a 64-bit object if we didn't find anything. 8004if 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; } 8005}'`; fi 8006else 8007 echo "$as_me: failed program was:" >&5 8008sed 's/^/| /' conftest.$ac_ext >&5 8009 8010 8011fi 8012 8013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8014 conftest$ac_exeext conftest.$ac_ext 8015if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8016 8017 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8018 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" 8019 else 8020 if test "$host_cpu" = ia64; then 8021 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8022 allow_undefined_flag="-z nodefs" 8023 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" 8024 else 8025 # Determine the default libpath from the value encoded in an empty executable. 8026 cat >conftest.$ac_ext <<_ACEOF 8027/* confdefs.h. */ 8028_ACEOF 8029cat confdefs.h >>conftest.$ac_ext 8030cat >>conftest.$ac_ext <<_ACEOF 8031/* end confdefs.h. */ 8032 8033int 8034main () 8035{ 8036 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041rm -f conftest.$ac_objext conftest$ac_exeext 8042if { (ac_try="$ac_link" 8043case "(($ac_try" in 8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8045 *) ac_try_echo=$ac_try;; 8046esac 8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8048 (eval "$ac_link") 2>conftest.er1 8049 ac_status=$? 8050 grep -v '^ *+' conftest.er1 >conftest.err 8051 rm -f conftest.er1 8052 cat conftest.err >&5 8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8054 (exit $ac_status); } && { 8055 test -z "$ac_c_werror_flag" || 8056 test ! -s conftest.err 8057 } && test -s conftest$ac_exeext && 8058 $as_test_x conftest$ac_exeext; then 8059 8060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8061}'` 8062# Check for a 64-bit object if we didn't find anything. 8063if 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; } 8064}'`; fi 8065else 8066 echo "$as_me: failed program was:" >&5 8067sed 's/^/| /' conftest.$ac_ext >&5 8068 8069 8070fi 8071 8072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8073 conftest$ac_exeext conftest.$ac_ext 8074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8075 8076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8077 # Warning - without using the other run time loading flags, 8078 # -berok will link without error, but may produce a broken library. 8079 no_undefined_flag=' ${wl}-bernotok' 8080 allow_undefined_flag=' ${wl}-berok' 8081 # Exported symbols can be pulled into shared objects from archives 8082 whole_archive_flag_spec='$convenience' 8083 archive_cmds_need_lc=yes 8084 # This is similar to how AIX traditionally builds its shared libraries. 8085 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' 8086 fi 8087 fi 8088 ;; 8089 8090 amigaos*) 8091 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)' 8092 hardcode_libdir_flag_spec='-L$libdir' 8093 hardcode_minus_L=yes 8094 # see comment about different semantics on the GNU ld section 8095 ld_shlibs=no 8096 ;; 8097 8098 bsdi[45]*) 8099 export_dynamic_flag_spec=-rdynamic 8100 ;; 8101 8102 cygwin* | mingw* | pw32*) 8103 # When not using gcc, we currently assume that we are using 8104 # Microsoft Visual C++. 8105 # hardcode_libdir_flag_spec is actually meaningless, as there is 8106 # no search path for DLLs. 8107 hardcode_libdir_flag_spec=' ' 8108 allow_undefined_flag=unsupported 8109 # Tell ltmain to make .lib files, not .a files. 8110 libext=lib 8111 # Tell ltmain to make .dll files, not .so files. 8112 shrext_cmds=".dll" 8113 # FIXME: Setting linknames here is a bad hack. 8114 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8115 # The linker will automatically build a .lib file if we build a DLL. 8116 old_archive_From_new_cmds='true' 8117 # FIXME: Should let the user specify the lib program. 8118 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8119 fix_srcfile_path='`cygpath -w "$srcfile"`' 8120 enable_shared_with_static_runtimes=yes 8121 ;; 8122 8123 darwin* | rhapsody*) 8124 case $host_os in 8125 rhapsody* | darwin1.[012]) 8126 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8127 ;; 8128 *) # Darwin 1.3 on 8129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8131 else 8132 case ${MACOSX_DEPLOYMENT_TARGET} in 8133 10.[012]) 8134 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8135 ;; 8136 10.*) 8137 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8138 ;; 8139 esac 8140 fi 8141 ;; 8142 esac 8143 archive_cmds_need_lc=no 8144 hardcode_direct=no 8145 hardcode_automatic=yes 8146 hardcode_shlibpath_var=unsupported 8147 whole_archive_flag_spec='' 8148 link_all_deplibs=yes 8149 if test "$GCC" = yes ; then 8150 output_verbose_link_cmd='echo' 8151 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8154 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}' 8155 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}' 8156 else 8157 case $cc_basename in 8158 xlc*) 8159 output_verbose_link_cmd='echo' 8160 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8161 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8163 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}' 8164 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}' 8165 ;; 8166 *) 8167 ld_shlibs=no 8168 ;; 8169 esac 8170 fi 8171 ;; 8172 8173 dgux*) 8174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8175 hardcode_libdir_flag_spec='-L$libdir' 8176 hardcode_shlibpath_var=no 8177 ;; 8178 8179 freebsd1*) 8180 ld_shlibs=no 8181 ;; 8182 8183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8184 # support. Future versions do this automatically, but an explicit c++rt0.o 8185 # does not break anything, and helps significantly (at the cost of a little 8186 # extra space). 8187 freebsd2.2*) 8188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8189 hardcode_libdir_flag_spec='-R$libdir' 8190 hardcode_direct=yes 8191 hardcode_shlibpath_var=no 8192 ;; 8193 8194 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8195 freebsd2*) 8196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8197 hardcode_direct=yes 8198 hardcode_minus_L=yes 8199 hardcode_shlibpath_var=no 8200 ;; 8201 8202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8203 freebsd* | kfreebsd*-gnu | dragonfly*) 8204 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8205 hardcode_libdir_flag_spec='-R$libdir' 8206 hardcode_direct=yes 8207 hardcode_shlibpath_var=no 8208 ;; 8209 8210 hpux9*) 8211 if test "$GCC" = yes; then 8212 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' 8213 else 8214 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' 8215 fi 8216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8217 hardcode_libdir_separator=: 8218 hardcode_direct=yes 8219 8220 # hardcode_minus_L: Not really in the search PATH, 8221 # but as the default location of the library. 8222 hardcode_minus_L=yes 8223 export_dynamic_flag_spec='${wl}-E' 8224 ;; 8225 8226 hpux10*) 8227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8228 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8229 else 8230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8231 fi 8232 if test "$with_gnu_ld" = no; then 8233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8234 hardcode_libdir_separator=: 8235 8236 hardcode_direct=yes 8237 export_dynamic_flag_spec='${wl}-E' 8238 8239 # hardcode_minus_L: Not really in the search PATH, 8240 # but as the default location of the library. 8241 hardcode_minus_L=yes 8242 fi 8243 ;; 8244 8245 hpux11*) 8246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8247 case $host_cpu in 8248 hppa*64*) 8249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8250 ;; 8251 ia64*) 8252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8253 ;; 8254 *) 8255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8256 ;; 8257 esac 8258 else 8259 case $host_cpu in 8260 hppa*64*) 8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8262 ;; 8263 ia64*) 8264 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8265 ;; 8266 *) 8267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8268 ;; 8269 esac 8270 fi 8271 if test "$with_gnu_ld" = no; then 8272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8273 hardcode_libdir_separator=: 8274 8275 case $host_cpu in 8276 hppa*64*|ia64*) 8277 hardcode_libdir_flag_spec_ld='+b $libdir' 8278 hardcode_direct=no 8279 hardcode_shlibpath_var=no 8280 ;; 8281 *) 8282 hardcode_direct=yes 8283 export_dynamic_flag_spec='${wl}-E' 8284 8285 # hardcode_minus_L: Not really in the search PATH, 8286 # but as the default location of the library. 8287 hardcode_minus_L=yes 8288 ;; 8289 esac 8290 fi 8291 ;; 8292 8293 irix5* | irix6* | nonstopux*) 8294 if test "$GCC" = yes; then 8295 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' 8296 else 8297 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' 8298 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8299 fi 8300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8301 hardcode_libdir_separator=: 8302 link_all_deplibs=yes 8303 ;; 8304 8305 netbsd*) 8306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8308 else 8309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8310 fi 8311 hardcode_libdir_flag_spec='-R$libdir' 8312 hardcode_direct=yes 8313 hardcode_shlibpath_var=no 8314 ;; 8315 8316 newsos6) 8317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8318 hardcode_direct=yes 8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8320 hardcode_libdir_separator=: 8321 hardcode_shlibpath_var=no 8322 ;; 8323 8324 openbsd*) 8325 hardcode_direct=yes 8326 hardcode_shlibpath_var=no 8327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8329 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8330 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8331 export_dynamic_flag_spec='${wl}-E' 8332 else 8333 case $host_os in 8334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8336 hardcode_libdir_flag_spec='-R$libdir' 8337 ;; 8338 *) 8339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8341 ;; 8342 esac 8343 fi 8344 ;; 8345 8346 os2*) 8347 hardcode_libdir_flag_spec='-L$libdir' 8348 hardcode_minus_L=yes 8349 allow_undefined_flag=unsupported 8350 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' 8351 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8352 ;; 8353 8354 osf3*) 8355 if test "$GCC" = yes; then 8356 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8357 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' 8358 else 8359 allow_undefined_flag=' -expect_unresolved \*' 8360 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' 8361 fi 8362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8363 hardcode_libdir_separator=: 8364 ;; 8365 8366 osf4* | osf5*) # as osf3* with the addition of -msym flag 8367 if test "$GCC" = yes; then 8368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8369 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' 8370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8371 else 8372 allow_undefined_flag=' -expect_unresolved \*' 8373 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' 8374 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8375 $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' 8376 8377 # Both c and cxx compiler support -rpath directly 8378 hardcode_libdir_flag_spec='-rpath $libdir' 8379 fi 8380 hardcode_libdir_separator=: 8381 ;; 8382 8383 solaris*) 8384 no_undefined_flag=' -z text' 8385 if test "$GCC" = yes; then 8386 wlarc='${wl}' 8387 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8389 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8390 else 8391 wlarc='' 8392 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8393 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8395 fi 8396 hardcode_libdir_flag_spec='-R$libdir' 8397 hardcode_shlibpath_var=no 8398 case $host_os in 8399 solaris2.[0-5] | solaris2.[0-5].*) ;; 8400 *) 8401 # The compiler driver will combine linker options so we 8402 # cannot just pass the convience library names through 8403 # without $wl, iff we do not link with $LD. 8404 # Luckily, gcc supports the same syntax we need for Sun Studio. 8405 # Supported since Solaris 2.6 (maybe 2.5.1?) 8406 case $wlarc in 8407 '') 8408 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8409 *) 8410 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' ;; 8411 esac ;; 8412 esac 8413 link_all_deplibs=yes 8414 ;; 8415 8416 sunos4*) 8417 if test "x$host_vendor" = xsequent; then 8418 # Use $CC to link under sequent, because it throws in some extra .o 8419 # files that make .init and .fini sections work. 8420 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8421 else 8422 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8423 fi 8424 hardcode_libdir_flag_spec='-L$libdir' 8425 hardcode_direct=yes 8426 hardcode_minus_L=yes 8427 hardcode_shlibpath_var=no 8428 ;; 8429 8430 sysv4) 8431 case $host_vendor in 8432 sni) 8433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8434 hardcode_direct=yes # is this really true??? 8435 ;; 8436 siemens) 8437 ## LD is ld it makes a PLAMLIB 8438 ## CC just makes a GrossModule. 8439 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8440 reload_cmds='$CC -r -o $output$reload_objs' 8441 hardcode_direct=no 8442 ;; 8443 motorola) 8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8445 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8446 ;; 8447 esac 8448 runpath_var='LD_RUN_PATH' 8449 hardcode_shlibpath_var=no 8450 ;; 8451 8452 sysv4.3*) 8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8454 hardcode_shlibpath_var=no 8455 export_dynamic_flag_spec='-Bexport' 8456 ;; 8457 8458 sysv4*MP*) 8459 if test -d /usr/nec; then 8460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8461 hardcode_shlibpath_var=no 8462 runpath_var=LD_RUN_PATH 8463 hardcode_runpath_var=yes 8464 ld_shlibs=yes 8465 fi 8466 ;; 8467 8468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8469 no_undefined_flag='${wl}-z,text' 8470 archive_cmds_need_lc=no 8471 hardcode_shlibpath_var=no 8472 runpath_var='LD_RUN_PATH' 8473 8474 if test "$GCC" = yes; then 8475 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8476 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8477 else 8478 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8479 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8480 fi 8481 ;; 8482 8483 sysv5* | sco3.2v5* | sco5v6*) 8484 # Note: We can NOT use -z defs as we might desire, because we do not 8485 # link with -lc, and that would cause any symbols used from libc to 8486 # always be unresolved, which means just about no library would 8487 # ever link correctly. If we're not using GNU ld we use -z text 8488 # though, which does catch some bad symbols but isn't as heavy-handed 8489 # as -z defs. 8490 no_undefined_flag='${wl}-z,text' 8491 allow_undefined_flag='${wl}-z,nodefs' 8492 archive_cmds_need_lc=no 8493 hardcode_shlibpath_var=no 8494 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8495 hardcode_libdir_separator=':' 8496 link_all_deplibs=yes 8497 export_dynamic_flag_spec='${wl}-Bexport' 8498 runpath_var='LD_RUN_PATH' 8499 8500 if test "$GCC" = yes; then 8501 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8503 else 8504 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8506 fi 8507 ;; 8508 8509 uts4*) 8510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8511 hardcode_libdir_flag_spec='-L$libdir' 8512 hardcode_shlibpath_var=no 8513 ;; 8514 8515 *) 8516 ld_shlibs=no 8517 ;; 8518 esac 8519 fi 8520 8521{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8522echo "${ECHO_T}$ld_shlibs" >&6; } 8523test "$ld_shlibs" = no && can_build_shared=no 8524 8525# 8526# Do we need to explicitly link libc? 8527# 8528case "x$archive_cmds_need_lc" in 8529x|xyes) 8530 # Assume -lc should be added 8531 archive_cmds_need_lc=yes 8532 8533 if test "$enable_shared" = yes && test "$GCC" = yes; then 8534 case $archive_cmds in 8535 *'~'*) 8536 # FIXME: we may have to deal with multi-command sequences. 8537 ;; 8538 '$CC '*) 8539 # Test whether the compiler implicitly links with -lc since on some 8540 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8541 # to ld, don't add -lc before -lgcc. 8542 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8543echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8544 $rm conftest* 8545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8546 8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8548 (eval $ac_compile) 2>&5 8549 ac_status=$? 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); } 2>conftest.err; then 8552 soname=conftest 8553 lib=conftest 8554 libobjs=conftest.$ac_objext 8555 deplibs= 8556 wl=$lt_prog_compiler_wl 8557 pic_flag=$lt_prog_compiler_pic 8558 compiler_flags=-v 8559 linker_flags=-v 8560 verstring= 8561 output_objdir=. 8562 libname=conftest 8563 lt_save_allow_undefined_flag=$allow_undefined_flag 8564 allow_undefined_flag= 8565 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8566 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8567 ac_status=$? 8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8569 (exit $ac_status); } 8570 then 8571 archive_cmds_need_lc=no 8572 else 8573 archive_cmds_need_lc=yes 8574 fi 8575 allow_undefined_flag=$lt_save_allow_undefined_flag 8576 else 8577 cat conftest.err 1>&5 8578 fi 8579 $rm conftest* 8580 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8581echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8582 ;; 8583 esac 8584 fi 8585 ;; 8586esac 8587 8588{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8590library_names_spec= 8591libname_spec='lib$name' 8592soname_spec= 8593shrext_cmds=".so" 8594postinstall_cmds= 8595postuninstall_cmds= 8596finish_cmds= 8597finish_eval= 8598shlibpath_var= 8599shlibpath_overrides_runpath=unknown 8600version_type=none 8601dynamic_linker="$host_os ld.so" 8602sys_lib_dlsearch_path_spec="/lib /usr/lib" 8603if test "$GCC" = yes; then 8604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8606 # if the path contains ";" then we assume it to be the separator 8607 # otherwise default to the standard path separator (i.e. ":") - it is 8608 # assumed that no part of a normal pathname contains ";" but that should 8609 # okay in the real world where ";" in dirpaths is itself problematic. 8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8611 else 8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8613 fi 8614else 8615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8616fi 8617need_lib_prefix=unknown 8618hardcode_into_libs=no 8619 8620# when you set need_version to no, make sure it does not cause -set_version 8621# flags to be left without arguments 8622need_version=unknown 8623 8624case $host_os in 8625aix3*) 8626 version_type=linux 8627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8628 shlibpath_var=LIBPATH 8629 8630 # AIX 3 has no versioning support, so we append a major version to the name. 8631 soname_spec='${libname}${release}${shared_ext}$major' 8632 ;; 8633 8634aix4* | aix5*) 8635 version_type=linux 8636 need_lib_prefix=no 8637 need_version=no 8638 hardcode_into_libs=yes 8639 if test "$host_cpu" = ia64; then 8640 # AIX 5 supports IA64 8641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8642 shlibpath_var=LD_LIBRARY_PATH 8643 else 8644 # With GCC up to 2.95.x, collect2 would create an import file 8645 # for dependence libraries. The import file would start with 8646 # the line `#! .'. This would cause the generated library to 8647 # depend on `.', always an invalid library. This was fixed in 8648 # development snapshots of GCC prior to 3.0. 8649 case $host_os in 8650 aix4 | aix4.[01] | aix4.[01].*) 8651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8652 echo ' yes ' 8653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8654 : 8655 else 8656 can_build_shared=no 8657 fi 8658 ;; 8659 esac 8660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8661 # soname into executable. Probably we can add versioning support to 8662 # collect2, so additional links can be useful in future. 8663 if test "$aix_use_runtimelinking" = yes; then 8664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8665 # instead of lib<name>.a to let people know that these are not 8666 # typical AIX shared libraries. 8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8668 else 8669 # We preserve .a as extension for shared libraries through AIX4.2 8670 # and later when we are not doing run time linking. 8671 library_names_spec='${libname}${release}.a $libname.a' 8672 soname_spec='${libname}${release}${shared_ext}$major' 8673 fi 8674 shlibpath_var=LIBPATH 8675 fi 8676 ;; 8677 8678amigaos*) 8679 library_names_spec='$libname.ixlibrary $libname.a' 8680 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8681 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' 8682 ;; 8683 8684beos*) 8685 library_names_spec='${libname}${shared_ext}' 8686 dynamic_linker="$host_os ld.so" 8687 shlibpath_var=LIBRARY_PATH 8688 ;; 8689 8690bsdi[45]*) 8691 version_type=linux 8692 need_version=no 8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8694 soname_spec='${libname}${release}${shared_ext}$major' 8695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8696 shlibpath_var=LD_LIBRARY_PATH 8697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8699 # the default ld.so.conf also contains /usr/contrib/lib and 8700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8701 # libtool to hard-code these into programs 8702 ;; 8703 8704cygwin* | mingw* | pw32*) 8705 version_type=windows 8706 shrext_cmds=".dll" 8707 need_version=no 8708 need_lib_prefix=no 8709 8710 case $GCC,$host_os in 8711 yes,cygwin* | yes,mingw* | yes,pw32*) 8712 library_names_spec='$libname.dll.a' 8713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8714 postinstall_cmds='base_file=`basename \${file}`~ 8715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8716 dldir=$destdir/`dirname \$dlpath`~ 8717 test -d \$dldir || mkdir -p \$dldir~ 8718 $install_prog $dir/$dlname \$dldir/$dlname~ 8719 chmod a+x \$dldir/$dlname' 8720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8721 dlpath=$dir/\$dldll~ 8722 $rm \$dlpath' 8723 shlibpath_overrides_runpath=yes 8724 8725 case $host_os in 8726 cygwin*) 8727 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8730 ;; 8731 mingw*) 8732 # MinGW DLLs use traditional 'lib' prefix 8733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8736 # It is most probably a Windows format PATH printed by 8737 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8738 # path with ; separators, and with drive letters. We can handle the 8739 # drive letters (cygwin fileutils understands them), so leave them, 8740 # especially as we might pass files found there to a mingw objdump, 8741 # which wouldn't understand a cygwinified path. Ahh. 8742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8743 else 8744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8745 fi 8746 ;; 8747 pw32*) 8748 # pw32 DLLs use 'pw' prefix rather than 'lib' 8749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8750 ;; 8751 esac 8752 ;; 8753 8754 *) 8755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8756 ;; 8757 esac 8758 dynamic_linker='Win32 ld.exe' 8759 # FIXME: first we should search . and the directory the executable is in 8760 shlibpath_var=PATH 8761 ;; 8762 8763darwin* | rhapsody*) 8764 dynamic_linker="$host_os dyld" 8765 version_type=darwin 8766 need_lib_prefix=no 8767 need_version=no 8768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8769 soname_spec='${libname}${release}${major}$shared_ext' 8770 shlibpath_overrides_runpath=yes 8771 shlibpath_var=DYLD_LIBRARY_PATH 8772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8774 if test "$GCC" = yes; then 8775 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"` 8776 else 8777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8778 fi 8779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8780 ;; 8781 8782dgux*) 8783 version_type=linux 8784 need_lib_prefix=no 8785 need_version=no 8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8787 soname_spec='${libname}${release}${shared_ext}$major' 8788 shlibpath_var=LD_LIBRARY_PATH 8789 ;; 8790 8791freebsd1*) 8792 dynamic_linker=no 8793 ;; 8794 8795kfreebsd*-gnu) 8796 version_type=linux 8797 need_lib_prefix=no 8798 need_version=no 8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8800 soname_spec='${libname}${release}${shared_ext}$major' 8801 shlibpath_var=LD_LIBRARY_PATH 8802 shlibpath_overrides_runpath=no 8803 hardcode_into_libs=yes 8804 dynamic_linker='GNU ld.so' 8805 ;; 8806 8807freebsd* | dragonfly*) 8808 # DragonFly does not have aout. When/if they implement a new 8809 # versioning mechanism, adjust this. 8810 if test -x /usr/bin/objformat; then 8811 objformat=`/usr/bin/objformat` 8812 else 8813 case $host_os in 8814 freebsd[123]*) objformat=aout ;; 8815 *) objformat=elf ;; 8816 esac 8817 fi 8818 version_type=freebsd-$objformat 8819 case $version_type in 8820 freebsd-elf*) 8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8822 need_version=no 8823 need_lib_prefix=no 8824 ;; 8825 freebsd-*) 8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8827 need_version=yes 8828 ;; 8829 esac 8830 shlibpath_var=LD_LIBRARY_PATH 8831 case $host_os in 8832 freebsd2*) 8833 shlibpath_overrides_runpath=yes 8834 ;; 8835 freebsd3.[01]* | freebsdelf3.[01]*) 8836 shlibpath_overrides_runpath=yes 8837 hardcode_into_libs=yes 8838 ;; 8839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8841 shlibpath_overrides_runpath=no 8842 hardcode_into_libs=yes 8843 ;; 8844 freebsd*) # from 4.6 on 8845 shlibpath_overrides_runpath=yes 8846 hardcode_into_libs=yes 8847 ;; 8848 esac 8849 ;; 8850 8851gnu*) 8852 version_type=linux 8853 need_lib_prefix=no 8854 need_version=no 8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8856 soname_spec='${libname}${release}${shared_ext}$major' 8857 shlibpath_var=LD_LIBRARY_PATH 8858 hardcode_into_libs=yes 8859 ;; 8860 8861hpux9* | hpux10* | hpux11*) 8862 # Give a soname corresponding to the major version so that dld.sl refuses to 8863 # link against other versions. 8864 version_type=sunos 8865 need_lib_prefix=no 8866 need_version=no 8867 case $host_cpu in 8868 ia64*) 8869 shrext_cmds='.so' 8870 hardcode_into_libs=yes 8871 dynamic_linker="$host_os dld.so" 8872 shlibpath_var=LD_LIBRARY_PATH 8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8875 soname_spec='${libname}${release}${shared_ext}$major' 8876 if test "X$HPUX_IA64_MODE" = X32; then 8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8878 else 8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8880 fi 8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8882 ;; 8883 hppa*64*) 8884 shrext_cmds='.sl' 8885 hardcode_into_libs=yes 8886 dynamic_linker="$host_os dld.sl" 8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8890 soname_spec='${libname}${release}${shared_ext}$major' 8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8893 ;; 8894 *) 8895 shrext_cmds='.sl' 8896 dynamic_linker="$host_os dld.sl" 8897 shlibpath_var=SHLIB_PATH 8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8900 soname_spec='${libname}${release}${shared_ext}$major' 8901 ;; 8902 esac 8903 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8904 postinstall_cmds='chmod 555 $lib' 8905 ;; 8906 8907interix3*) 8908 version_type=linux 8909 need_lib_prefix=no 8910 need_version=no 8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8912 soname_spec='${libname}${release}${shared_ext}$major' 8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8914 shlibpath_var=LD_LIBRARY_PATH 8915 shlibpath_overrides_runpath=no 8916 hardcode_into_libs=yes 8917 ;; 8918 8919irix5* | irix6* | nonstopux*) 8920 case $host_os in 8921 nonstopux*) version_type=nonstopux ;; 8922 *) 8923 if test "$lt_cv_prog_gnu_ld" = yes; then 8924 version_type=linux 8925 else 8926 version_type=irix 8927 fi ;; 8928 esac 8929 need_lib_prefix=no 8930 need_version=no 8931 soname_spec='${libname}${release}${shared_ext}$major' 8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8933 case $host_os in 8934 irix5* | nonstopux*) 8935 libsuff= shlibsuff= 8936 ;; 8937 *) 8938 case $LD in # libtool.m4 will add one of these switches to LD 8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8940 libsuff= shlibsuff= libmagic=32-bit;; 8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8942 libsuff=32 shlibsuff=N32 libmagic=N32;; 8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8944 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8945 *) libsuff= shlibsuff= libmagic=never-match;; 8946 esac 8947 ;; 8948 esac 8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8950 shlibpath_overrides_runpath=no 8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8953 hardcode_into_libs=yes 8954 ;; 8955 8956# No shared lib support for Linux oldld, aout, or coff. 8957linux*oldld* | linux*aout* | linux*coff*) 8958 dynamic_linker=no 8959 ;; 8960 8961# This must be Linux ELF. 8962linux*) 8963 version_type=linux 8964 need_lib_prefix=no 8965 need_version=no 8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8967 soname_spec='${libname}${release}${shared_ext}$major' 8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8969 shlibpath_var=LD_LIBRARY_PATH 8970 shlibpath_overrides_runpath=no 8971 # This implies no fast_install, which is unacceptable. 8972 # Some rework will be needed to allow for fast_install 8973 # before this can be enabled. 8974 hardcode_into_libs=yes 8975 8976 # Append ld.so.conf contents to the search path 8977 if test -f /etc/ld.so.conf; then 8978 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' ' '` 8979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8980 fi 8981 8982 # We used to test for /lib/ld.so.1 and disable shared libraries on 8983 # powerpc, because MkLinux only supported shared libraries with the 8984 # GNU dynamic linker. Since this was broken with cross compilers, 8985 # most powerpc-linux boxes support dynamic linking these days and 8986 # people can always --disable-shared, the test was removed, and we 8987 # assume the GNU/Linux dynamic linker is in use. 8988 dynamic_linker='GNU/Linux ld.so' 8989 ;; 8990 8991knetbsd*-gnu) 8992 version_type=linux 8993 need_lib_prefix=no 8994 need_version=no 8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8996 soname_spec='${libname}${release}${shared_ext}$major' 8997 shlibpath_var=LD_LIBRARY_PATH 8998 shlibpath_overrides_runpath=no 8999 hardcode_into_libs=yes 9000 dynamic_linker='GNU ld.so' 9001 ;; 9002 9003netbsd*) 9004 version_type=sunos 9005 need_lib_prefix=no 9006 need_version=no 9007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9010 dynamic_linker='NetBSD (a.out) ld.so' 9011 else 9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9013 soname_spec='${libname}${release}${shared_ext}$major' 9014 dynamic_linker='NetBSD ld.elf_so' 9015 fi 9016 shlibpath_var=LD_LIBRARY_PATH 9017 shlibpath_overrides_runpath=yes 9018 hardcode_into_libs=yes 9019 ;; 9020 9021newsos6) 9022 version_type=linux 9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9024 shlibpath_var=LD_LIBRARY_PATH 9025 shlibpath_overrides_runpath=yes 9026 ;; 9027 9028nto-qnx*) 9029 version_type=linux 9030 need_lib_prefix=no 9031 need_version=no 9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9033 soname_spec='${libname}${release}${shared_ext}$major' 9034 shlibpath_var=LD_LIBRARY_PATH 9035 shlibpath_overrides_runpath=yes 9036 ;; 9037 9038openbsd*) 9039 version_type=sunos 9040 sys_lib_dlsearch_path_spec="/usr/lib" 9041 need_lib_prefix=no 9042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9043 case $host_os in 9044 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9045 *) need_version=no ;; 9046 esac 9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9049 shlibpath_var=LD_LIBRARY_PATH 9050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9051 case $host_os in 9052 openbsd2.[89] | openbsd2.[89].*) 9053 shlibpath_overrides_runpath=no 9054 ;; 9055 *) 9056 shlibpath_overrides_runpath=yes 9057 ;; 9058 esac 9059 else 9060 shlibpath_overrides_runpath=yes 9061 fi 9062 ;; 9063 9064os2*) 9065 libname_spec='$name' 9066 shrext_cmds=".dll" 9067 need_lib_prefix=no 9068 library_names_spec='$libname${shared_ext} $libname.a' 9069 dynamic_linker='OS/2 ld.exe' 9070 shlibpath_var=LIBPATH 9071 ;; 9072 9073osf3* | osf4* | osf5*) 9074 version_type=osf 9075 need_lib_prefix=no 9076 need_version=no 9077 soname_spec='${libname}${release}${shared_ext}$major' 9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9079 shlibpath_var=LD_LIBRARY_PATH 9080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9082 ;; 9083 9084solaris*) 9085 version_type=linux 9086 need_lib_prefix=no 9087 need_version=no 9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9089 soname_spec='${libname}${release}${shared_ext}$major' 9090 shlibpath_var=LD_LIBRARY_PATH 9091 shlibpath_overrides_runpath=yes 9092 hardcode_into_libs=yes 9093 # ldd complains unless libraries are executable 9094 postinstall_cmds='chmod +x $lib' 9095 ;; 9096 9097sunos4*) 9098 version_type=sunos 9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9101 shlibpath_var=LD_LIBRARY_PATH 9102 shlibpath_overrides_runpath=yes 9103 if test "$with_gnu_ld" = yes; then 9104 need_lib_prefix=no 9105 fi 9106 need_version=yes 9107 ;; 9108 9109sysv4 | sysv4.3*) 9110 version_type=linux 9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9112 soname_spec='${libname}${release}${shared_ext}$major' 9113 shlibpath_var=LD_LIBRARY_PATH 9114 case $host_vendor in 9115 sni) 9116 shlibpath_overrides_runpath=no 9117 need_lib_prefix=no 9118 export_dynamic_flag_spec='${wl}-Blargedynsym' 9119 runpath_var=LD_RUN_PATH 9120 ;; 9121 siemens) 9122 need_lib_prefix=no 9123 ;; 9124 motorola) 9125 need_lib_prefix=no 9126 need_version=no 9127 shlibpath_overrides_runpath=no 9128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9129 ;; 9130 esac 9131 ;; 9132 9133sysv4*MP*) 9134 if test -d /usr/nec ;then 9135 version_type=linux 9136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9137 soname_spec='$libname${shared_ext}.$major' 9138 shlibpath_var=LD_LIBRARY_PATH 9139 fi 9140 ;; 9141 9142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9143 version_type=freebsd-elf 9144 need_lib_prefix=no 9145 need_version=no 9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9147 soname_spec='${libname}${release}${shared_ext}$major' 9148 shlibpath_var=LD_LIBRARY_PATH 9149 hardcode_into_libs=yes 9150 if test "$with_gnu_ld" = yes; then 9151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9152 shlibpath_overrides_runpath=no 9153 else 9154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9155 shlibpath_overrides_runpath=yes 9156 case $host_os in 9157 sco3.2v5*) 9158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9159 ;; 9160 esac 9161 fi 9162 sys_lib_dlsearch_path_spec='/usr/lib' 9163 ;; 9164 9165uts4*) 9166 version_type=linux 9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9168 soname_spec='${libname}${release}${shared_ext}$major' 9169 shlibpath_var=LD_LIBRARY_PATH 9170 ;; 9171 9172*) 9173 dynamic_linker=no 9174 ;; 9175esac 9176{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9177echo "${ECHO_T}$dynamic_linker" >&6; } 9178test "$dynamic_linker" = no && can_build_shared=no 9179 9180variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9181if test "$GCC" = yes; then 9182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9183fi 9184 9185{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9186echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9187hardcode_action= 9188if test -n "$hardcode_libdir_flag_spec" || \ 9189 test -n "$runpath_var" || \ 9190 test "X$hardcode_automatic" = "Xyes" ; then 9191 9192 # We can hardcode non-existant directories. 9193 if test "$hardcode_direct" != no && 9194 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9195 # have to relink, otherwise we might link with an installed library 9196 # when we should be linking with a yet-to-be-installed one 9197 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9198 test "$hardcode_minus_L" != no; then 9199 # Linking always hardcodes the temporary library directory. 9200 hardcode_action=relink 9201 else 9202 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9203 hardcode_action=immediate 9204 fi 9205else 9206 # We cannot hardcode anything, or else we can only hardcode existing 9207 # directories. 9208 hardcode_action=unsupported 9209fi 9210{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9211echo "${ECHO_T}$hardcode_action" >&6; } 9212 9213if test "$hardcode_action" = relink; then 9214 # Fast installation is not supported 9215 enable_fast_install=no 9216elif test "$shlibpath_overrides_runpath" = yes || 9217 test "$enable_shared" = no; then 9218 # Fast installation is not necessary 9219 enable_fast_install=needless 9220fi 9221 9222striplib= 9223old_striplib= 9224{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9225echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9226if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9227 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9228 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9229 { echo "$as_me:$LINENO: result: yes" >&5 9230echo "${ECHO_T}yes" >&6; } 9231else 9232# FIXME - insert some real tests, host_os isn't really good enough 9233 case $host_os in 9234 darwin*) 9235 if test -n "$STRIP" ; then 9236 striplib="$STRIP -x" 9237 { echo "$as_me:$LINENO: result: yes" >&5 9238echo "${ECHO_T}yes" >&6; } 9239 else 9240 { echo "$as_me:$LINENO: result: no" >&5 9241echo "${ECHO_T}no" >&6; } 9242fi 9243 ;; 9244 *) 9245 { echo "$as_me:$LINENO: result: no" >&5 9246echo "${ECHO_T}no" >&6; } 9247 ;; 9248 esac 9249fi 9250 9251if test "x$enable_dlopen" != xyes; then 9252 enable_dlopen=unknown 9253 enable_dlopen_self=unknown 9254 enable_dlopen_self_static=unknown 9255else 9256 lt_cv_dlopen=no 9257 lt_cv_dlopen_libs= 9258 9259 case $host_os in 9260 beos*) 9261 lt_cv_dlopen="load_add_on" 9262 lt_cv_dlopen_libs= 9263 lt_cv_dlopen_self=yes 9264 ;; 9265 9266 mingw* | pw32*) 9267 lt_cv_dlopen="LoadLibrary" 9268 lt_cv_dlopen_libs= 9269 ;; 9270 9271 cygwin*) 9272 lt_cv_dlopen="dlopen" 9273 lt_cv_dlopen_libs= 9274 ;; 9275 9276 darwin*) 9277 # if libdl is installed we need to link against it 9278 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9279echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9280if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9281 echo $ECHO_N "(cached) $ECHO_C" >&6 9282else 9283 ac_check_lib_save_LIBS=$LIBS 9284LIBS="-ldl $LIBS" 9285cat >conftest.$ac_ext <<_ACEOF 9286/* confdefs.h. */ 9287_ACEOF 9288cat confdefs.h >>conftest.$ac_ext 9289cat >>conftest.$ac_ext <<_ACEOF 9290/* end confdefs.h. */ 9291 9292/* Override any GCC internal prototype to avoid an error. 9293 Use char because int might match the return type of a GCC 9294 builtin and then its argument prototype would still apply. */ 9295#ifdef __cplusplus 9296extern "C" 9297#endif 9298char dlopen (); 9299int 9300main () 9301{ 9302return dlopen (); 9303 ; 9304 return 0; 9305} 9306_ACEOF 9307rm -f conftest.$ac_objext conftest$ac_exeext 9308if { (ac_try="$ac_link" 9309case "(($ac_try" in 9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9311 *) ac_try_echo=$ac_try;; 9312esac 9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9314 (eval "$ac_link") 2>conftest.er1 9315 ac_status=$? 9316 grep -v '^ *+' conftest.er1 >conftest.err 9317 rm -f conftest.er1 9318 cat conftest.err >&5 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && { 9321 test -z "$ac_c_werror_flag" || 9322 test ! -s conftest.err 9323 } && test -s conftest$ac_exeext && 9324 $as_test_x conftest$ac_exeext; then 9325 ac_cv_lib_dl_dlopen=yes 9326else 9327 echo "$as_me: failed program was:" >&5 9328sed 's/^/| /' conftest.$ac_ext >&5 9329 9330 ac_cv_lib_dl_dlopen=no 9331fi 9332 9333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9334 conftest$ac_exeext conftest.$ac_ext 9335LIBS=$ac_check_lib_save_LIBS 9336fi 9337{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9338echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9339if test $ac_cv_lib_dl_dlopen = yes; then 9340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9341else 9342 9343 lt_cv_dlopen="dyld" 9344 lt_cv_dlopen_libs= 9345 lt_cv_dlopen_self=yes 9346 9347fi 9348 9349 ;; 9350 9351 *) 9352 { echo "$as_me:$LINENO: checking for shl_load" >&5 9353echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9354if test "${ac_cv_func_shl_load+set}" = set; then 9355 echo $ECHO_N "(cached) $ECHO_C" >&6 9356else 9357 cat >conftest.$ac_ext <<_ACEOF 9358/* confdefs.h. */ 9359_ACEOF 9360cat confdefs.h >>conftest.$ac_ext 9361cat >>conftest.$ac_ext <<_ACEOF 9362/* end confdefs.h. */ 9363/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9364 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9365#define shl_load innocuous_shl_load 9366 9367/* System header to define __stub macros and hopefully few prototypes, 9368 which can conflict with char shl_load (); below. 9369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9370 <limits.h> exists even on freestanding compilers. */ 9371 9372#ifdef __STDC__ 9373# include <limits.h> 9374#else 9375# include <assert.h> 9376#endif 9377 9378#undef shl_load 9379 9380/* Override any GCC internal prototype to avoid an error. 9381 Use char because int might match the return type of a GCC 9382 builtin and then its argument prototype would still apply. */ 9383#ifdef __cplusplus 9384extern "C" 9385#endif 9386char shl_load (); 9387/* The GNU C library defines this for functions which it implements 9388 to always fail with ENOSYS. Some functions are actually named 9389 something starting with __ and the normal name is an alias. */ 9390#if defined __stub_shl_load || defined __stub___shl_load 9391choke me 9392#endif 9393 9394int 9395main () 9396{ 9397return shl_load (); 9398 ; 9399 return 0; 9400} 9401_ACEOF 9402rm -f conftest.$ac_objext conftest$ac_exeext 9403if { (ac_try="$ac_link" 9404case "(($ac_try" in 9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9406 *) ac_try_echo=$ac_try;; 9407esac 9408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9409 (eval "$ac_link") 2>conftest.er1 9410 ac_status=$? 9411 grep -v '^ *+' conftest.er1 >conftest.err 9412 rm -f conftest.er1 9413 cat conftest.err >&5 9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9415 (exit $ac_status); } && { 9416 test -z "$ac_c_werror_flag" || 9417 test ! -s conftest.err 9418 } && test -s conftest$ac_exeext && 9419 $as_test_x conftest$ac_exeext; then 9420 ac_cv_func_shl_load=yes 9421else 9422 echo "$as_me: failed program was:" >&5 9423sed 's/^/| /' conftest.$ac_ext >&5 9424 9425 ac_cv_func_shl_load=no 9426fi 9427 9428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9429 conftest$ac_exeext conftest.$ac_ext 9430fi 9431{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9432echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9433if test $ac_cv_func_shl_load = yes; then 9434 lt_cv_dlopen="shl_load" 9435else 9436 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9437echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9438if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9439 echo $ECHO_N "(cached) $ECHO_C" >&6 9440else 9441 ac_check_lib_save_LIBS=$LIBS 9442LIBS="-ldld $LIBS" 9443cat >conftest.$ac_ext <<_ACEOF 9444/* confdefs.h. */ 9445_ACEOF 9446cat confdefs.h >>conftest.$ac_ext 9447cat >>conftest.$ac_ext <<_ACEOF 9448/* end confdefs.h. */ 9449 9450/* Override any GCC internal prototype to avoid an error. 9451 Use char because int might match the return type of a GCC 9452 builtin and then its argument prototype would still apply. */ 9453#ifdef __cplusplus 9454extern "C" 9455#endif 9456char shl_load (); 9457int 9458main () 9459{ 9460return shl_load (); 9461 ; 9462 return 0; 9463} 9464_ACEOF 9465rm -f conftest.$ac_objext conftest$ac_exeext 9466if { (ac_try="$ac_link" 9467case "(($ac_try" in 9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9469 *) ac_try_echo=$ac_try;; 9470esac 9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9472 (eval "$ac_link") 2>conftest.er1 9473 ac_status=$? 9474 grep -v '^ *+' conftest.er1 >conftest.err 9475 rm -f conftest.er1 9476 cat conftest.err >&5 9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9478 (exit $ac_status); } && { 9479 test -z "$ac_c_werror_flag" || 9480 test ! -s conftest.err 9481 } && test -s conftest$ac_exeext && 9482 $as_test_x conftest$ac_exeext; then 9483 ac_cv_lib_dld_shl_load=yes 9484else 9485 echo "$as_me: failed program was:" >&5 9486sed 's/^/| /' conftest.$ac_ext >&5 9487 9488 ac_cv_lib_dld_shl_load=no 9489fi 9490 9491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9492 conftest$ac_exeext conftest.$ac_ext 9493LIBS=$ac_check_lib_save_LIBS 9494fi 9495{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9496echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9497if test $ac_cv_lib_dld_shl_load = yes; then 9498 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9499else 9500 { echo "$as_me:$LINENO: checking for dlopen" >&5 9501echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9502if test "${ac_cv_func_dlopen+set}" = set; then 9503 echo $ECHO_N "(cached) $ECHO_C" >&6 9504else 9505 cat >conftest.$ac_ext <<_ACEOF 9506/* confdefs.h. */ 9507_ACEOF 9508cat confdefs.h >>conftest.$ac_ext 9509cat >>conftest.$ac_ext <<_ACEOF 9510/* end confdefs.h. */ 9511/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9513#define dlopen innocuous_dlopen 9514 9515/* System header to define __stub macros and hopefully few prototypes, 9516 which can conflict with char dlopen (); below. 9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9518 <limits.h> exists even on freestanding compilers. */ 9519 9520#ifdef __STDC__ 9521# include <limits.h> 9522#else 9523# include <assert.h> 9524#endif 9525 9526#undef dlopen 9527 9528/* Override any GCC internal prototype to avoid an error. 9529 Use char because int might match the return type of a GCC 9530 builtin and then its argument prototype would still apply. */ 9531#ifdef __cplusplus 9532extern "C" 9533#endif 9534char dlopen (); 9535/* The GNU C library defines this for functions which it implements 9536 to always fail with ENOSYS. Some functions are actually named 9537 something starting with __ and the normal name is an alias. */ 9538#if defined __stub_dlopen || defined __stub___dlopen 9539choke me 9540#endif 9541 9542int 9543main () 9544{ 9545return dlopen (); 9546 ; 9547 return 0; 9548} 9549_ACEOF 9550rm -f conftest.$ac_objext conftest$ac_exeext 9551if { (ac_try="$ac_link" 9552case "(($ac_try" in 9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9554 *) ac_try_echo=$ac_try;; 9555esac 9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9557 (eval "$ac_link") 2>conftest.er1 9558 ac_status=$? 9559 grep -v '^ *+' conftest.er1 >conftest.err 9560 rm -f conftest.er1 9561 cat conftest.err >&5 9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9563 (exit $ac_status); } && { 9564 test -z "$ac_c_werror_flag" || 9565 test ! -s conftest.err 9566 } && test -s conftest$ac_exeext && 9567 $as_test_x conftest$ac_exeext; then 9568 ac_cv_func_dlopen=yes 9569else 9570 echo "$as_me: failed program was:" >&5 9571sed 's/^/| /' conftest.$ac_ext >&5 9572 9573 ac_cv_func_dlopen=no 9574fi 9575 9576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9577 conftest$ac_exeext conftest.$ac_ext 9578fi 9579{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9580echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9581if test $ac_cv_func_dlopen = yes; then 9582 lt_cv_dlopen="dlopen" 9583else 9584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9586if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9587 echo $ECHO_N "(cached) $ECHO_C" >&6 9588else 9589 ac_check_lib_save_LIBS=$LIBS 9590LIBS="-ldl $LIBS" 9591cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597 9598/* Override any GCC internal prototype to avoid an error. 9599 Use char because int might match the return type of a GCC 9600 builtin and then its argument prototype would still apply. */ 9601#ifdef __cplusplus 9602extern "C" 9603#endif 9604char dlopen (); 9605int 9606main () 9607{ 9608return dlopen (); 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613rm -f conftest.$ac_objext conftest$ac_exeext 9614if { (ac_try="$ac_link" 9615case "(($ac_try" in 9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9617 *) ac_try_echo=$ac_try;; 9618esac 9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9620 (eval "$ac_link") 2>conftest.er1 9621 ac_status=$? 9622 grep -v '^ *+' conftest.er1 >conftest.err 9623 rm -f conftest.er1 9624 cat conftest.err >&5 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9626 (exit $ac_status); } && { 9627 test -z "$ac_c_werror_flag" || 9628 test ! -s conftest.err 9629 } && test -s conftest$ac_exeext && 9630 $as_test_x conftest$ac_exeext; then 9631 ac_cv_lib_dl_dlopen=yes 9632else 9633 echo "$as_me: failed program was:" >&5 9634sed 's/^/| /' conftest.$ac_ext >&5 9635 9636 ac_cv_lib_dl_dlopen=no 9637fi 9638 9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9640 conftest$ac_exeext conftest.$ac_ext 9641LIBS=$ac_check_lib_save_LIBS 9642fi 9643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9645if test $ac_cv_lib_dl_dlopen = yes; then 9646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9647else 9648 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9649echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9650if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9651 echo $ECHO_N "(cached) $ECHO_C" >&6 9652else 9653 ac_check_lib_save_LIBS=$LIBS 9654LIBS="-lsvld $LIBS" 9655cat >conftest.$ac_ext <<_ACEOF 9656/* confdefs.h. */ 9657_ACEOF 9658cat confdefs.h >>conftest.$ac_ext 9659cat >>conftest.$ac_ext <<_ACEOF 9660/* end confdefs.h. */ 9661 9662/* Override any GCC internal prototype to avoid an error. 9663 Use char because int might match the return type of a GCC 9664 builtin and then its argument prototype would still apply. */ 9665#ifdef __cplusplus 9666extern "C" 9667#endif 9668char dlopen (); 9669int 9670main () 9671{ 9672return dlopen (); 9673 ; 9674 return 0; 9675} 9676_ACEOF 9677rm -f conftest.$ac_objext conftest$ac_exeext 9678if { (ac_try="$ac_link" 9679case "(($ac_try" in 9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9681 *) ac_try_echo=$ac_try;; 9682esac 9683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9684 (eval "$ac_link") 2>conftest.er1 9685 ac_status=$? 9686 grep -v '^ *+' conftest.er1 >conftest.err 9687 rm -f conftest.er1 9688 cat conftest.err >&5 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); } && { 9691 test -z "$ac_c_werror_flag" || 9692 test ! -s conftest.err 9693 } && test -s conftest$ac_exeext && 9694 $as_test_x conftest$ac_exeext; then 9695 ac_cv_lib_svld_dlopen=yes 9696else 9697 echo "$as_me: failed program was:" >&5 9698sed 's/^/| /' conftest.$ac_ext >&5 9699 9700 ac_cv_lib_svld_dlopen=no 9701fi 9702 9703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9704 conftest$ac_exeext conftest.$ac_ext 9705LIBS=$ac_check_lib_save_LIBS 9706fi 9707{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9708echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9709if test $ac_cv_lib_svld_dlopen = yes; then 9710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9711else 9712 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9713echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9714if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9715 echo $ECHO_N "(cached) $ECHO_C" >&6 9716else 9717 ac_check_lib_save_LIBS=$LIBS 9718LIBS="-ldld $LIBS" 9719cat >conftest.$ac_ext <<_ACEOF 9720/* confdefs.h. */ 9721_ACEOF 9722cat confdefs.h >>conftest.$ac_ext 9723cat >>conftest.$ac_ext <<_ACEOF 9724/* end confdefs.h. */ 9725 9726/* Override any GCC internal prototype to avoid an error. 9727 Use char because int might match the return type of a GCC 9728 builtin and then its argument prototype would still apply. */ 9729#ifdef __cplusplus 9730extern "C" 9731#endif 9732char dld_link (); 9733int 9734main () 9735{ 9736return dld_link (); 9737 ; 9738 return 0; 9739} 9740_ACEOF 9741rm -f conftest.$ac_objext conftest$ac_exeext 9742if { (ac_try="$ac_link" 9743case "(($ac_try" in 9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9745 *) ac_try_echo=$ac_try;; 9746esac 9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9748 (eval "$ac_link") 2>conftest.er1 9749 ac_status=$? 9750 grep -v '^ *+' conftest.er1 >conftest.err 9751 rm -f conftest.er1 9752 cat conftest.err >&5 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9754 (exit $ac_status); } && { 9755 test -z "$ac_c_werror_flag" || 9756 test ! -s conftest.err 9757 } && test -s conftest$ac_exeext && 9758 $as_test_x conftest$ac_exeext; then 9759 ac_cv_lib_dld_dld_link=yes 9760else 9761 echo "$as_me: failed program was:" >&5 9762sed 's/^/| /' conftest.$ac_ext >&5 9763 9764 ac_cv_lib_dld_dld_link=no 9765fi 9766 9767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9768 conftest$ac_exeext conftest.$ac_ext 9769LIBS=$ac_check_lib_save_LIBS 9770fi 9771{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9772echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9773if test $ac_cv_lib_dld_dld_link = yes; then 9774 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9775fi 9776 9777 9778fi 9779 9780 9781fi 9782 9783 9784fi 9785 9786 9787fi 9788 9789 9790fi 9791 9792 ;; 9793 esac 9794 9795 if test "x$lt_cv_dlopen" != xno; then 9796 enable_dlopen=yes 9797 else 9798 enable_dlopen=no 9799 fi 9800 9801 case $lt_cv_dlopen in 9802 dlopen) 9803 save_CPPFLAGS="$CPPFLAGS" 9804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9805 9806 save_LDFLAGS="$LDFLAGS" 9807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9808 9809 save_LIBS="$LIBS" 9810 LIBS="$lt_cv_dlopen_libs $LIBS" 9811 9812 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9813echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9814if test "${lt_cv_dlopen_self+set}" = set; then 9815 echo $ECHO_N "(cached) $ECHO_C" >&6 9816else 9817 if test "$cross_compiling" = yes; then : 9818 lt_cv_dlopen_self=cross 9819else 9820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9821 lt_status=$lt_dlunknown 9822 cat > conftest.$ac_ext <<EOF 9823#line 9823 "configure" 9824#include "confdefs.h" 9825 9826#if HAVE_DLFCN_H 9827#include <dlfcn.h> 9828#endif 9829 9830#include <stdio.h> 9831 9832#ifdef RTLD_GLOBAL 9833# define LT_DLGLOBAL RTLD_GLOBAL 9834#else 9835# ifdef DL_GLOBAL 9836# define LT_DLGLOBAL DL_GLOBAL 9837# else 9838# define LT_DLGLOBAL 0 9839# endif 9840#endif 9841 9842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9843 find out it does not work in some platform. */ 9844#ifndef LT_DLLAZY_OR_NOW 9845# ifdef RTLD_LAZY 9846# define LT_DLLAZY_OR_NOW RTLD_LAZY 9847# else 9848# ifdef DL_LAZY 9849# define LT_DLLAZY_OR_NOW DL_LAZY 9850# else 9851# ifdef RTLD_NOW 9852# define LT_DLLAZY_OR_NOW RTLD_NOW 9853# else 9854# ifdef DL_NOW 9855# define LT_DLLAZY_OR_NOW DL_NOW 9856# else 9857# define LT_DLLAZY_OR_NOW 0 9858# endif 9859# endif 9860# endif 9861# endif 9862#endif 9863 9864#ifdef __cplusplus 9865extern "C" void exit (int); 9866#endif 9867 9868void fnord() { int i=42;} 9869int main () 9870{ 9871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9872 int status = $lt_dlunknown; 9873 9874 if (self) 9875 { 9876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9878 /* dlclose (self); */ 9879 } 9880 else 9881 puts (dlerror ()); 9882 9883 exit (status); 9884} 9885EOF 9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9887 (eval $ac_link) 2>&5 9888 ac_status=$? 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9890 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9891 (./conftest; exit; ) >&5 2>/dev/null 9892 lt_status=$? 9893 case x$lt_status in 9894 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9895 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9896 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9897 esac 9898 else : 9899 # compilation failed 9900 lt_cv_dlopen_self=no 9901 fi 9902fi 9903rm -fr conftest* 9904 9905 9906fi 9907{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9908echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9909 9910 if test "x$lt_cv_dlopen_self" = xyes; then 9911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9912 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9913echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9914if test "${lt_cv_dlopen_self_static+set}" = set; then 9915 echo $ECHO_N "(cached) $ECHO_C" >&6 9916else 9917 if test "$cross_compiling" = yes; then : 9918 lt_cv_dlopen_self_static=cross 9919else 9920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9921 lt_status=$lt_dlunknown 9922 cat > conftest.$ac_ext <<EOF 9923#line 9923 "configure" 9924#include "confdefs.h" 9925 9926#if HAVE_DLFCN_H 9927#include <dlfcn.h> 9928#endif 9929 9930#include <stdio.h> 9931 9932#ifdef RTLD_GLOBAL 9933# define LT_DLGLOBAL RTLD_GLOBAL 9934#else 9935# ifdef DL_GLOBAL 9936# define LT_DLGLOBAL DL_GLOBAL 9937# else 9938# define LT_DLGLOBAL 0 9939# endif 9940#endif 9941 9942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9943 find out it does not work in some platform. */ 9944#ifndef LT_DLLAZY_OR_NOW 9945# ifdef RTLD_LAZY 9946# define LT_DLLAZY_OR_NOW RTLD_LAZY 9947# else 9948# ifdef DL_LAZY 9949# define LT_DLLAZY_OR_NOW DL_LAZY 9950# else 9951# ifdef RTLD_NOW 9952# define LT_DLLAZY_OR_NOW RTLD_NOW 9953# else 9954# ifdef DL_NOW 9955# define LT_DLLAZY_OR_NOW DL_NOW 9956# else 9957# define LT_DLLAZY_OR_NOW 0 9958# endif 9959# endif 9960# endif 9961# endif 9962#endif 9963 9964#ifdef __cplusplus 9965extern "C" void exit (int); 9966#endif 9967 9968void fnord() { int i=42;} 9969int main () 9970{ 9971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9972 int status = $lt_dlunknown; 9973 9974 if (self) 9975 { 9976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9978 /* dlclose (self); */ 9979 } 9980 else 9981 puts (dlerror ()); 9982 9983 exit (status); 9984} 9985EOF 9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9987 (eval $ac_link) 2>&5 9988 ac_status=$? 9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9990 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9991 (./conftest; exit; ) >&5 2>/dev/null 9992 lt_status=$? 9993 case x$lt_status in 9994 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9995 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9996 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9997 esac 9998 else : 9999 # compilation failed 10000 lt_cv_dlopen_self_static=no 10001 fi 10002fi 10003rm -fr conftest* 10004 10005 10006fi 10007{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10008echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10009 fi 10010 10011 CPPFLAGS="$save_CPPFLAGS" 10012 LDFLAGS="$save_LDFLAGS" 10013 LIBS="$save_LIBS" 10014 ;; 10015 esac 10016 10017 case $lt_cv_dlopen_self in 10018 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10019 *) enable_dlopen_self=unknown ;; 10020 esac 10021 10022 case $lt_cv_dlopen_self_static in 10023 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10024 *) enable_dlopen_self_static=unknown ;; 10025 esac 10026fi 10027 10028 10029# Report which library types will actually be built 10030{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10031echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10032{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10033echo "${ECHO_T}$can_build_shared" >&6; } 10034 10035{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10036echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10037test "$can_build_shared" = "no" && enable_shared=no 10038 10039# On AIX, shared libraries and static libraries use the same namespace, and 10040# are all built from PIC. 10041case $host_os in 10042aix3*) 10043 test "$enable_shared" = yes && enable_static=no 10044 if test -n "$RANLIB"; then 10045 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10046 postinstall_cmds='$RANLIB $lib' 10047 fi 10048 ;; 10049 10050aix4* | aix5*) 10051 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10052 test "$enable_shared" = yes && enable_static=no 10053 fi 10054 ;; 10055esac 10056{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10057echo "${ECHO_T}$enable_shared" >&6; } 10058 10059{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10060echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10061# Make sure either enable_shared or enable_static is yes. 10062test "$enable_shared" = yes || enable_static=yes 10063{ echo "$as_me:$LINENO: result: $enable_static" >&5 10064echo "${ECHO_T}$enable_static" >&6; } 10065 10066# The else clause should only fire when bootstrapping the 10067# libtool distribution, otherwise you forgot to ship ltmain.sh 10068# with your package, and you will get complaints that there are 10069# no rules to generate ltmain.sh. 10070if test -f "$ltmain"; then 10071 # See if we are running on zsh, and set the options which allow our commands through 10072 # without removal of \ escapes. 10073 if test -n "${ZSH_VERSION+set}" ; then 10074 setopt NO_GLOB_SUBST 10075 fi 10076 # Now quote all the things that may contain metacharacters while being 10077 # careful not to overquote the AC_SUBSTed values. We take copies of the 10078 # variables and quote the copies for generation of the libtool script. 10079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10080 SED SHELL STRIP \ 10081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10083 deplibs_check_method reload_flag reload_cmds need_locks \ 10084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10085 lt_cv_sys_global_symbol_to_c_name_address \ 10086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10087 old_postinstall_cmds old_postuninstall_cmds \ 10088 compiler \ 10089 CC \ 10090 LD \ 10091 lt_prog_compiler_wl \ 10092 lt_prog_compiler_pic \ 10093 lt_prog_compiler_static \ 10094 lt_prog_compiler_no_builtin_flag \ 10095 export_dynamic_flag_spec \ 10096 thread_safe_flag_spec \ 10097 whole_archive_flag_spec \ 10098 enable_shared_with_static_runtimes \ 10099 old_archive_cmds \ 10100 old_archive_from_new_cmds \ 10101 predep_objects \ 10102 postdep_objects \ 10103 predeps \ 10104 postdeps \ 10105 compiler_lib_search_path \ 10106 archive_cmds \ 10107 archive_expsym_cmds \ 10108 postinstall_cmds \ 10109 postuninstall_cmds \ 10110 old_archive_from_expsyms_cmds \ 10111 allow_undefined_flag \ 10112 no_undefined_flag \ 10113 export_symbols_cmds \ 10114 hardcode_libdir_flag_spec \ 10115 hardcode_libdir_flag_spec_ld \ 10116 hardcode_libdir_separator \ 10117 hardcode_automatic \ 10118 module_cmds \ 10119 module_expsym_cmds \ 10120 lt_cv_prog_compiler_c_o \ 10121 exclude_expsyms \ 10122 include_expsyms; do 10123 10124 case $var in 10125 old_archive_cmds | \ 10126 old_archive_from_new_cmds | \ 10127 archive_cmds | \ 10128 archive_expsym_cmds | \ 10129 module_cmds | \ 10130 module_expsym_cmds | \ 10131 old_archive_from_expsyms_cmds | \ 10132 export_symbols_cmds | \ 10133 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10134 postinstall_cmds | postuninstall_cmds | \ 10135 old_postinstall_cmds | old_postuninstall_cmds | \ 10136 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10137 # Double-quote double-evaled strings. 10138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10139 ;; 10140 *) 10141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10142 ;; 10143 esac 10144 done 10145 10146 case $lt_echo in 10147 *'\$0 --fallback-echo"') 10148 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10149 ;; 10150 esac 10151 10152cfgfile="${ofile}T" 10153 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10154 $rm -f "$cfgfile" 10155 { echo "$as_me:$LINENO: creating $ofile" >&5 10156echo "$as_me: creating $ofile" >&6;} 10157 10158 cat <<__EOF__ >> "$cfgfile" 10159#! $SHELL 10160 10161# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10162# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10163# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10164# 10165# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10166# Free Software Foundation, Inc. 10167# 10168# This file is part of GNU Libtool: 10169# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10170# 10171# This program is free software; you can redistribute it and/or modify 10172# it under the terms of the GNU General Public License as published by 10173# the Free Software Foundation; either version 2 of the License, or 10174# (at your option) any later version. 10175# 10176# This program is distributed in the hope that it will be useful, but 10177# WITHOUT ANY WARRANTY; without even the implied warranty of 10178# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10179# General Public License for more details. 10180# 10181# You should have received a copy of the GNU General Public License 10182# along with this program; if not, write to the Free Software 10183# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10184# 10185# As a special exception to the GNU General Public License, if you 10186# distribute this file as part of a program that contains a 10187# configuration script generated by Autoconf, you may include it under 10188# the same distribution terms that you use for the rest of that program. 10189 10190# A sed program that does not truncate output. 10191SED=$lt_SED 10192 10193# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10194Xsed="$SED -e 1s/^X//" 10195 10196# The HP-UX ksh and POSIX shell print the target directory to stdout 10197# if CDPATH is set. 10198(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10199 10200# The names of the tagged configurations supported by this script. 10201available_tags= 10202 10203# ### BEGIN LIBTOOL CONFIG 10204 10205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10206 10207# Shell to use when invoking shell scripts. 10208SHELL=$lt_SHELL 10209 10210# Whether or not to build shared libraries. 10211build_libtool_libs=$enable_shared 10212 10213# Whether or not to build static libraries. 10214build_old_libs=$enable_static 10215 10216# Whether or not to add -lc for building shared libraries. 10217build_libtool_need_lc=$archive_cmds_need_lc 10218 10219# Whether or not to disallow shared libs when runtime libs are static 10220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10221 10222# Whether or not to optimize for fast installation. 10223fast_install=$enable_fast_install 10224 10225# The host system. 10226host_alias=$host_alias 10227host=$host 10228host_os=$host_os 10229 10230# The build system. 10231build_alias=$build_alias 10232build=$build 10233build_os=$build_os 10234 10235# An echo program that does not interpret backslashes. 10236echo=$lt_echo 10237 10238# The archiver. 10239AR=$lt_AR 10240AR_FLAGS=$lt_AR_FLAGS 10241 10242# A C compiler. 10243LTCC=$lt_LTCC 10244 10245# LTCC compiler flags. 10246LTCFLAGS=$lt_LTCFLAGS 10247 10248# A language-specific compiler. 10249CC=$lt_compiler 10250 10251# Is the compiler the GNU C compiler? 10252with_gcc=$GCC 10253 10254# An ERE matcher. 10255EGREP=$lt_EGREP 10256 10257# The linker used to build libraries. 10258LD=$lt_LD 10259 10260# Whether we need hard or soft links. 10261LN_S=$lt_LN_S 10262 10263# A BSD-compatible nm program. 10264NM=$lt_NM 10265 10266# A symbol stripping program 10267STRIP=$lt_STRIP 10268 10269# Used to examine libraries when file_magic_cmd begins "file" 10270MAGIC_CMD=$MAGIC_CMD 10271 10272# Used on cygwin: DLL creation program. 10273DLLTOOL="$DLLTOOL" 10274 10275# Used on cygwin: object dumper. 10276OBJDUMP="$OBJDUMP" 10277 10278# Used on cygwin: assembler. 10279AS="$AS" 10280 10281# The name of the directory that contains temporary libtool files. 10282objdir=$objdir 10283 10284# How to create reloadable object files. 10285reload_flag=$lt_reload_flag 10286reload_cmds=$lt_reload_cmds 10287 10288# How to pass a linker flag through the compiler. 10289wl=$lt_lt_prog_compiler_wl 10290 10291# Object file suffix (normally "o"). 10292objext="$ac_objext" 10293 10294# Old archive suffix (normally "a"). 10295libext="$libext" 10296 10297# Shared library suffix (normally ".so"). 10298shrext_cmds='$shrext_cmds' 10299 10300# Executable file suffix (normally ""). 10301exeext="$exeext" 10302 10303# Additional compiler flags for building library objects. 10304pic_flag=$lt_lt_prog_compiler_pic 10305pic_mode=$pic_mode 10306 10307# What is the maximum length of a command? 10308max_cmd_len=$lt_cv_sys_max_cmd_len 10309 10310# Does compiler simultaneously support -c and -o options? 10311compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10312 10313# Must we lock files when doing compilation? 10314need_locks=$lt_need_locks 10315 10316# Do we need the lib prefix for modules? 10317need_lib_prefix=$need_lib_prefix 10318 10319# Do we need a version for libraries? 10320need_version=$need_version 10321 10322# Whether dlopen is supported. 10323dlopen_support=$enable_dlopen 10324 10325# Whether dlopen of programs is supported. 10326dlopen_self=$enable_dlopen_self 10327 10328# Whether dlopen of statically linked programs is supported. 10329dlopen_self_static=$enable_dlopen_self_static 10330 10331# Compiler flag to prevent dynamic linking. 10332link_static_flag=$lt_lt_prog_compiler_static 10333 10334# Compiler flag to turn off builtin functions. 10335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10336 10337# Compiler flag to allow reflexive dlopens. 10338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10339 10340# Compiler flag to generate shared objects directly from archives. 10341whole_archive_flag_spec=$lt_whole_archive_flag_spec 10342 10343# Compiler flag to generate thread-safe objects. 10344thread_safe_flag_spec=$lt_thread_safe_flag_spec 10345 10346# Library versioning type. 10347version_type=$version_type 10348 10349# Format of library name prefix. 10350libname_spec=$lt_libname_spec 10351 10352# List of archive names. First name is the real one, the rest are links. 10353# The last name is the one that the linker finds with -lNAME. 10354library_names_spec=$lt_library_names_spec 10355 10356# The coded name of the library, if different from the real name. 10357soname_spec=$lt_soname_spec 10358 10359# Commands used to build and install an old-style archive. 10360RANLIB=$lt_RANLIB 10361old_archive_cmds=$lt_old_archive_cmds 10362old_postinstall_cmds=$lt_old_postinstall_cmds 10363old_postuninstall_cmds=$lt_old_postuninstall_cmds 10364 10365# Create an old-style archive from a shared archive. 10366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10367 10368# Create a temporary old-style archive to link instead of a shared archive. 10369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10370 10371# Commands used to build and install a shared archive. 10372archive_cmds=$lt_archive_cmds 10373archive_expsym_cmds=$lt_archive_expsym_cmds 10374postinstall_cmds=$lt_postinstall_cmds 10375postuninstall_cmds=$lt_postuninstall_cmds 10376 10377# Commands used to build a loadable module (assumed same as above if empty) 10378module_cmds=$lt_module_cmds 10379module_expsym_cmds=$lt_module_expsym_cmds 10380 10381# Commands to strip libraries. 10382old_striplib=$lt_old_striplib 10383striplib=$lt_striplib 10384 10385# Dependencies to place before the objects being linked to create a 10386# shared library. 10387predep_objects=$lt_predep_objects 10388 10389# Dependencies to place after the objects being linked to create a 10390# shared library. 10391postdep_objects=$lt_postdep_objects 10392 10393# Dependencies to place before the objects being linked to create a 10394# shared library. 10395predeps=$lt_predeps 10396 10397# Dependencies to place after the objects being linked to create a 10398# shared library. 10399postdeps=$lt_postdeps 10400 10401# The library search path used internally by the compiler when linking 10402# a shared library. 10403compiler_lib_search_path=$lt_compiler_lib_search_path 10404 10405# Method to check whether dependent libraries are shared objects. 10406deplibs_check_method=$lt_deplibs_check_method 10407 10408# Command to use when deplibs_check_method == file_magic. 10409file_magic_cmd=$lt_file_magic_cmd 10410 10411# Flag that allows shared libraries with undefined symbols to be built. 10412allow_undefined_flag=$lt_allow_undefined_flag 10413 10414# Flag that forces no undefined symbols. 10415no_undefined_flag=$lt_no_undefined_flag 10416 10417# Commands used to finish a libtool library installation in a directory. 10418finish_cmds=$lt_finish_cmds 10419 10420# Same as above, but a single script fragment to be evaled but not shown. 10421finish_eval=$lt_finish_eval 10422 10423# Take the output of nm and produce a listing of raw symbols and C names. 10424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10425 10426# Transform the output of nm in a proper C declaration 10427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10428 10429# Transform the output of nm in a C name address pair 10430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10431 10432# This is the shared library runtime path variable. 10433runpath_var=$runpath_var 10434 10435# This is the shared library path variable. 10436shlibpath_var=$shlibpath_var 10437 10438# Is shlibpath searched before the hard-coded library search path? 10439shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10440 10441# How to hardcode a shared library path into an executable. 10442hardcode_action=$hardcode_action 10443 10444# Whether we should hardcode library paths into libraries. 10445hardcode_into_libs=$hardcode_into_libs 10446 10447# Flag to hardcode \$libdir into a binary during linking. 10448# This must work even if \$libdir does not exist. 10449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10450 10451# If ld is used when linking, flag to hardcode \$libdir into 10452# a binary during linking. This must work even if \$libdir does 10453# not exist. 10454hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10455 10456# Whether we need a single -rpath flag with a separated argument. 10457hardcode_libdir_separator=$lt_hardcode_libdir_separator 10458 10459# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10460# resulting binary. 10461hardcode_direct=$hardcode_direct 10462 10463# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10464# resulting binary. 10465hardcode_minus_L=$hardcode_minus_L 10466 10467# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10468# the resulting binary. 10469hardcode_shlibpath_var=$hardcode_shlibpath_var 10470 10471# Set to yes if building a shared library automatically hardcodes DIR into the library 10472# and all subsequent libraries and executables linked against it. 10473hardcode_automatic=$hardcode_automatic 10474 10475# Variables whose values should be saved in libtool wrapper scripts and 10476# restored at relink time. 10477variables_saved_for_relink="$variables_saved_for_relink" 10478 10479# Whether libtool must link a program against all its dependency libraries. 10480link_all_deplibs=$link_all_deplibs 10481 10482# Compile-time system search path for libraries 10483sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10484 10485# Run-time system search path for libraries 10486sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10487 10488# Fix the shell variable \$srcfile for the compiler. 10489fix_srcfile_path="$fix_srcfile_path" 10490 10491# Set to yes if exported symbols are required. 10492always_export_symbols=$always_export_symbols 10493 10494# The commands to list exported symbols. 10495export_symbols_cmds=$lt_export_symbols_cmds 10496 10497# The commands to extract the exported symbol list from a shared archive. 10498extract_expsyms_cmds=$lt_extract_expsyms_cmds 10499 10500# Symbols that should not be listed in the preloaded symbols. 10501exclude_expsyms=$lt_exclude_expsyms 10502 10503# Symbols that must always be exported. 10504include_expsyms=$lt_include_expsyms 10505 10506# ### END LIBTOOL CONFIG 10507 10508__EOF__ 10509 10510 10511 case $host_os in 10512 aix3*) 10513 cat <<\EOF >> "$cfgfile" 10514 10515# AIX sometimes has problems with the GCC collect2 program. For some 10516# reason, if we set the COLLECT_NAMES environment variable, the problems 10517# vanish in a puff of smoke. 10518if test "X${COLLECT_NAMES+set}" != Xset; then 10519 COLLECT_NAMES= 10520 export COLLECT_NAMES 10521fi 10522EOF 10523 ;; 10524 esac 10525 10526 # We use sed instead of cat because bash on DJGPP gets confused if 10527 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10528 # text mode, it properly converts lines to CR/LF. This bash problem 10529 # is reportedly fixed, but why not run on old versions too? 10530 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10531 10532 mv -f "$cfgfile" "$ofile" || \ 10533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10534 chmod +x "$ofile" 10535 10536else 10537 # If there is no Makefile yet, we rely on a make rule to execute 10538 # `config.status --recheck' to rerun these tests and create the 10539 # libtool script then. 10540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10541 if test -f "$ltmain_in"; then 10542 test -f Makefile && make "$ltmain" 10543 fi 10544fi 10545 10546 10547ac_ext=c 10548ac_cpp='$CPP $CPPFLAGS' 10549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10551ac_compiler_gnu=$ac_cv_c_compiler_gnu 10552 10553CC="$lt_save_CC" 10554 10555 10556# Check whether --with-tags was given. 10557if test "${with_tags+set}" = set; then 10558 withval=$with_tags; tagnames="$withval" 10559fi 10560 10561 10562if test -f "$ltmain" && test -n "$tagnames"; then 10563 if test ! -f "${ofile}"; then 10564 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10565echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10566 fi 10567 10568 if test -z "$LTCC"; then 10569 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10570 if test -z "$LTCC"; then 10571 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10572echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10573 else 10574 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10575echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10576 fi 10577 fi 10578 if test -z "$LTCFLAGS"; then 10579 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10580 fi 10581 10582 # Extract list of available tagged configurations in $ofile. 10583 # Note that this assumes the entire list is on one line. 10584 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10585 10586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10587 for tagname in $tagnames; do 10588 IFS="$lt_save_ifs" 10589 # Check whether tagname contains only valid characters 10590 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10591 "") ;; 10592 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10593echo "$as_me: error: invalid tag name: $tagname" >&2;} 10594 { (exit 1); exit 1; }; } 10595 ;; 10596 esac 10597 10598 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10599 then 10600 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10601echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10602 { (exit 1); exit 1; }; } 10603 fi 10604 10605 # Update the list of available tags. 10606 if test -n "$tagname"; then 10607 echo appending configuration tag \"$tagname\" to $ofile 10608 10609 case $tagname in 10610 CXX) 10611 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10612 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10613 (test "X$CXX" != "Xg++"))) ; then 10614 ac_ext=cpp 10615ac_cpp='$CXXCPP $CPPFLAGS' 10616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10619 10620 10621 10622 10623archive_cmds_need_lc_CXX=no 10624allow_undefined_flag_CXX= 10625always_export_symbols_CXX=no 10626archive_expsym_cmds_CXX= 10627export_dynamic_flag_spec_CXX= 10628hardcode_direct_CXX=no 10629hardcode_libdir_flag_spec_CXX= 10630hardcode_libdir_flag_spec_ld_CXX= 10631hardcode_libdir_separator_CXX= 10632hardcode_minus_L_CXX=no 10633hardcode_shlibpath_var_CXX=unsupported 10634hardcode_automatic_CXX=no 10635module_cmds_CXX= 10636module_expsym_cmds_CXX= 10637link_all_deplibs_CXX=unknown 10638old_archive_cmds_CXX=$old_archive_cmds 10639no_undefined_flag_CXX= 10640whole_archive_flag_spec_CXX= 10641enable_shared_with_static_runtimes_CXX=no 10642 10643# Dependencies to place before and after the object being linked: 10644predep_objects_CXX= 10645postdep_objects_CXX= 10646predeps_CXX= 10647postdeps_CXX= 10648compiler_lib_search_path_CXX= 10649 10650# Source file extension for C++ test sources. 10651ac_ext=cpp 10652 10653# Object file extension for compiled C++ test sources. 10654objext=o 10655objext_CXX=$objext 10656 10657# Code to be used in simple compile tests 10658lt_simple_compile_test_code="int some_variable = 0;\n" 10659 10660# Code to be used in simple link tests 10661lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10662 10663# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10664 10665# If no C compiler was specified, use CC. 10666LTCC=${LTCC-"$CC"} 10667 10668# If no C compiler flags were specified, use CFLAGS. 10669LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10670 10671# Allow CC to be a program name with arguments. 10672compiler=$CC 10673 10674 10675# save warnings/boilerplate of simple test code 10676ac_outfile=conftest.$ac_objext 10677printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10678eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10679_lt_compiler_boilerplate=`cat conftest.err` 10680$rm conftest* 10681 10682ac_outfile=conftest.$ac_objext 10683printf "$lt_simple_link_test_code" >conftest.$ac_ext 10684eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10685_lt_linker_boilerplate=`cat conftest.err` 10686$rm conftest* 10687 10688 10689# Allow CC to be a program name with arguments. 10690lt_save_CC=$CC 10691lt_save_LD=$LD 10692lt_save_GCC=$GCC 10693GCC=$GXX 10694lt_save_with_gnu_ld=$with_gnu_ld 10695lt_save_path_LD=$lt_cv_path_LD 10696if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10697 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10698else 10699 $as_unset lt_cv_prog_gnu_ld 10700fi 10701if test -n "${lt_cv_path_LDCXX+set}"; then 10702 lt_cv_path_LD=$lt_cv_path_LDCXX 10703else 10704 $as_unset lt_cv_path_LD 10705fi 10706test -z "${LDCXX+set}" || LD=$LDCXX 10707CC=${CXX-"c++"} 10708compiler=$CC 10709compiler_CXX=$CC 10710for cc_temp in $compiler""; do 10711 case $cc_temp in 10712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10714 \-*) ;; 10715 *) break;; 10716 esac 10717done 10718cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10719 10720 10721# We don't want -fno-exception wen compiling C++ code, so set the 10722# no_builtin_flag separately 10723if test "$GXX" = yes; then 10724 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10725else 10726 lt_prog_compiler_no_builtin_flag_CXX= 10727fi 10728 10729if test "$GXX" = yes; then 10730 # Set up default GNU C++ configuration 10731 10732 10733# Check whether --with-gnu-ld was given. 10734if test "${with_gnu_ld+set}" = set; then 10735 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10736else 10737 with_gnu_ld=no 10738fi 10739 10740ac_prog=ld 10741if test "$GCC" = yes; then 10742 # Check if gcc -print-prog-name=ld gives a path. 10743 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10744echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10745 case $host in 10746 *-*-mingw*) 10747 # gcc leaves a trailing carriage return which upsets mingw 10748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10749 *) 10750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10751 esac 10752 case $ac_prog in 10753 # Accept absolute paths. 10754 [\\/]* | ?:[\\/]*) 10755 re_direlt='/[^/][^/]*/\.\./' 10756 # Canonicalize the pathname of ld 10757 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10758 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10759 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10760 done 10761 test -z "$LD" && LD="$ac_prog" 10762 ;; 10763 "") 10764 # If it fails, then pretend we aren't using GCC. 10765 ac_prog=ld 10766 ;; 10767 *) 10768 # If it is relative, then search for the first ld in PATH. 10769 with_gnu_ld=unknown 10770 ;; 10771 esac 10772elif test "$with_gnu_ld" = yes; then 10773 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10774echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10775else 10776 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10777echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10778fi 10779if test "${lt_cv_path_LD+set}" = set; then 10780 echo $ECHO_N "(cached) $ECHO_C" >&6 10781else 10782 if test -z "$LD"; then 10783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10784 for ac_dir in $PATH; do 10785 IFS="$lt_save_ifs" 10786 test -z "$ac_dir" && ac_dir=. 10787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10788 lt_cv_path_LD="$ac_dir/$ac_prog" 10789 # Check to see if the program is GNU ld. I'd rather use --version, 10790 # but apparently some variants of GNU ld only accept -v. 10791 # Break only if it was the GNU/non-GNU ld that we prefer. 10792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10793 *GNU* | *'with BFD'*) 10794 test "$with_gnu_ld" != no && break 10795 ;; 10796 *) 10797 test "$with_gnu_ld" != yes && break 10798 ;; 10799 esac 10800 fi 10801 done 10802 IFS="$lt_save_ifs" 10803else 10804 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10805fi 10806fi 10807 10808LD="$lt_cv_path_LD" 10809if test -n "$LD"; then 10810 { echo "$as_me:$LINENO: result: $LD" >&5 10811echo "${ECHO_T}$LD" >&6; } 10812else 10813 { echo "$as_me:$LINENO: result: no" >&5 10814echo "${ECHO_T}no" >&6; } 10815fi 10816test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10817echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10818 { (exit 1); exit 1; }; } 10819{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10820echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10821if test "${lt_cv_prog_gnu_ld+set}" = set; then 10822 echo $ECHO_N "(cached) $ECHO_C" >&6 10823else 10824 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10825case `$LD -v 2>&1 </dev/null` in 10826*GNU* | *'with BFD'*) 10827 lt_cv_prog_gnu_ld=yes 10828 ;; 10829*) 10830 lt_cv_prog_gnu_ld=no 10831 ;; 10832esac 10833fi 10834{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10835echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10836with_gnu_ld=$lt_cv_prog_gnu_ld 10837 10838 10839 10840 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10841 # archiving commands below assume that GNU ld is being used. 10842 if test "$with_gnu_ld" = yes; then 10843 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10844 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' 10845 10846 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10847 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10848 10849 # If archive_cmds runs LD, not CC, wlarc should be empty 10850 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10851 # investigate it a little bit more. (MM) 10852 wlarc='${wl}' 10853 10854 # ancient GNU ld didn't support --whole-archive et. al. 10855 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10856 grep 'no-whole-archive' > /dev/null; then 10857 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10858 else 10859 whole_archive_flag_spec_CXX= 10860 fi 10861 else 10862 with_gnu_ld=no 10863 wlarc= 10864 10865 # A generic and very simple default shared library creation 10866 # command for GNU C++ for the case where it uses the native 10867 # linker, instead of GNU ld. If possible, this setting should 10868 # overridden to take advantage of the native linker features on 10869 # the platform it is being used on. 10870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10871 fi 10872 10873 # Commands to make compiler produce verbose output that lists 10874 # what "hidden" libraries, object files and flags are used when 10875 # linking a shared library. 10876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10877 10878else 10879 GXX=no 10880 with_gnu_ld=no 10881 wlarc= 10882fi 10883 10884# PORTME: fill in a description of your system's C++ link characteristics 10885{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10886echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10887ld_shlibs_CXX=yes 10888case $host_os in 10889 aix3*) 10890 # FIXME: insert proper C++ library support 10891 ld_shlibs_CXX=no 10892 ;; 10893 aix4* | aix5*) 10894 if test "$host_cpu" = ia64; then 10895 # On IA64, the linker does run time linking by default, so we don't 10896 # have to do anything special. 10897 aix_use_runtimelinking=no 10898 exp_sym_flag='-Bexport' 10899 no_entry_flag="" 10900 else 10901 aix_use_runtimelinking=no 10902 10903 # Test if we are trying to use run time linking or normal 10904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10905 # need to do runtime linking. 10906 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10907 for ld_flag in $LDFLAGS; do 10908 case $ld_flag in 10909 *-brtl*) 10910 aix_use_runtimelinking=yes 10911 break 10912 ;; 10913 esac 10914 done 10915 ;; 10916 esac 10917 10918 exp_sym_flag='-bexport' 10919 no_entry_flag='-bnoentry' 10920 fi 10921 10922 # When large executables or shared objects are built, AIX ld can 10923 # have problems creating the table of contents. If linking a library 10924 # or program results in "error TOC overflow" add -mminimal-toc to 10925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10927 10928 archive_cmds_CXX='' 10929 hardcode_direct_CXX=yes 10930 hardcode_libdir_separator_CXX=':' 10931 link_all_deplibs_CXX=yes 10932 10933 if test "$GXX" = yes; then 10934 case $host_os in aix4.[012]|aix4.[012].*) 10935 # We only want to do this on AIX 4.2 and lower, the check 10936 # below for broken collect2 doesn't work under 4.3+ 10937 collect2name=`${CC} -print-prog-name=collect2` 10938 if test -f "$collect2name" && \ 10939 strings "$collect2name" | grep resolve_lib_name >/dev/null 10940 then 10941 # We have reworked collect2 10942 hardcode_direct_CXX=yes 10943 else 10944 # We have old collect2 10945 hardcode_direct_CXX=unsupported 10946 # It fails to find uninstalled libraries when the uninstalled 10947 # path is not listed in the libpath. Setting hardcode_minus_L 10948 # to unsupported forces relinking 10949 hardcode_minus_L_CXX=yes 10950 hardcode_libdir_flag_spec_CXX='-L$libdir' 10951 hardcode_libdir_separator_CXX= 10952 fi 10953 ;; 10954 esac 10955 shared_flag='-shared' 10956 if test "$aix_use_runtimelinking" = yes; then 10957 shared_flag="$shared_flag "'${wl}-G' 10958 fi 10959 else 10960 # not using gcc 10961 if test "$host_cpu" = ia64; then 10962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10963 # chokes on -Wl,-G. The following line is correct: 10964 shared_flag='-G' 10965 else 10966 if test "$aix_use_runtimelinking" = yes; then 10967 shared_flag='${wl}-G' 10968 else 10969 shared_flag='${wl}-bM:SRE' 10970 fi 10971 fi 10972 fi 10973 10974 # It seems that -bexpall does not export symbols beginning with 10975 # underscore (_), so it is better to generate a list of symbols to export. 10976 always_export_symbols_CXX=yes 10977 if test "$aix_use_runtimelinking" = yes; then 10978 # Warning - without using the other runtime loading flags (-brtl), 10979 # -berok will link without error, but may produce a broken library. 10980 allow_undefined_flag_CXX='-berok' 10981 # Determine the default libpath from the value encoded in an empty executable. 10982 cat >conftest.$ac_ext <<_ACEOF 10983/* confdefs.h. */ 10984_ACEOF 10985cat confdefs.h >>conftest.$ac_ext 10986cat >>conftest.$ac_ext <<_ACEOF 10987/* end confdefs.h. */ 10988 10989int 10990main () 10991{ 10992 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997rm -f conftest.$ac_objext conftest$ac_exeext 10998if { (ac_try="$ac_link" 10999case "(($ac_try" in 11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11001 *) ac_try_echo=$ac_try;; 11002esac 11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11004 (eval "$ac_link") 2>conftest.er1 11005 ac_status=$? 11006 grep -v '^ *+' conftest.er1 >conftest.err 11007 rm -f conftest.er1 11008 cat conftest.err >&5 11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 (exit $ac_status); } && { 11011 test -z "$ac_cxx_werror_flag" || 11012 test ! -s conftest.err 11013 } && test -s conftest$ac_exeext && 11014 $as_test_x conftest$ac_exeext; then 11015 11016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11017}'` 11018# Check for a 64-bit object if we didn't find anything. 11019if 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; } 11020}'`; fi 11021else 11022 echo "$as_me: failed program was:" >&5 11023sed 's/^/| /' conftest.$ac_ext >&5 11024 11025 11026fi 11027 11028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11029 conftest$ac_exeext conftest.$ac_ext 11030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11031 11032 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11033 11034 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" 11035 else 11036 if test "$host_cpu" = ia64; then 11037 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11038 allow_undefined_flag_CXX="-z nodefs" 11039 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" 11040 else 11041 # Determine the default libpath from the value encoded in an empty executable. 11042 cat >conftest.$ac_ext <<_ACEOF 11043/* confdefs.h. */ 11044_ACEOF 11045cat confdefs.h >>conftest.$ac_ext 11046cat >>conftest.$ac_ext <<_ACEOF 11047/* end confdefs.h. */ 11048 11049int 11050main () 11051{ 11052 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057rm -f conftest.$ac_objext conftest$ac_exeext 11058if { (ac_try="$ac_link" 11059case "(($ac_try" in 11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11061 *) ac_try_echo=$ac_try;; 11062esac 11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11064 (eval "$ac_link") 2>conftest.er1 11065 ac_status=$? 11066 grep -v '^ *+' conftest.er1 >conftest.err 11067 rm -f conftest.er1 11068 cat conftest.err >&5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11070 (exit $ac_status); } && { 11071 test -z "$ac_cxx_werror_flag" || 11072 test ! -s conftest.err 11073 } && test -s conftest$ac_exeext && 11074 $as_test_x conftest$ac_exeext; then 11075 11076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11077}'` 11078# Check for a 64-bit object if we didn't find anything. 11079if 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; } 11080}'`; fi 11081else 11082 echo "$as_me: failed program was:" >&5 11083sed 's/^/| /' conftest.$ac_ext >&5 11084 11085 11086fi 11087 11088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11089 conftest$ac_exeext conftest.$ac_ext 11090if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11091 11092 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11093 # Warning - without using the other run time loading flags, 11094 # -berok will link without error, but may produce a broken library. 11095 no_undefined_flag_CXX=' ${wl}-bernotok' 11096 allow_undefined_flag_CXX=' ${wl}-berok' 11097 # Exported symbols can be pulled into shared objects from archives 11098 whole_archive_flag_spec_CXX='$convenience' 11099 archive_cmds_need_lc_CXX=yes 11100 # This is similar to how AIX traditionally builds its shared libraries. 11101 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' 11102 fi 11103 fi 11104 ;; 11105 11106 beos*) 11107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11108 allow_undefined_flag_CXX=unsupported 11109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11110 # support --undefined. This deserves some investigation. FIXME 11111 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11112 else 11113 ld_shlibs_CXX=no 11114 fi 11115 ;; 11116 11117 chorus*) 11118 case $cc_basename in 11119 *) 11120 # FIXME: insert proper C++ library support 11121 ld_shlibs_CXX=no 11122 ;; 11123 esac 11124 ;; 11125 11126 cygwin* | mingw* | pw32*) 11127 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11128 # as there is no search path for DLLs. 11129 hardcode_libdir_flag_spec_CXX='-L$libdir' 11130 allow_undefined_flag_CXX=unsupported 11131 always_export_symbols_CXX=no 11132 enable_shared_with_static_runtimes_CXX=yes 11133 11134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11135 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' 11136 # If the export-symbols file already is a .def file (1st line 11137 # is EXPORTS), use it as is; otherwise, prepend... 11138 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11139 cp $export_symbols $output_objdir/$soname.def; 11140 else 11141 echo EXPORTS > $output_objdir/$soname.def; 11142 cat $export_symbols >> $output_objdir/$soname.def; 11143 fi~ 11144 $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' 11145 else 11146 ld_shlibs_CXX=no 11147 fi 11148 ;; 11149 darwin* | rhapsody*) 11150 case $host_os in 11151 rhapsody* | darwin1.[012]) 11152 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11153 ;; 11154 *) # Darwin 1.3 on 11155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11156 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11157 else 11158 case ${MACOSX_DEPLOYMENT_TARGET} in 11159 10.[012]) 11160 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11161 ;; 11162 10.*) 11163 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11164 ;; 11165 esac 11166 fi 11167 ;; 11168 esac 11169 archive_cmds_need_lc_CXX=no 11170 hardcode_direct_CXX=no 11171 hardcode_automatic_CXX=yes 11172 hardcode_shlibpath_var_CXX=unsupported 11173 whole_archive_flag_spec_CXX='' 11174 link_all_deplibs_CXX=yes 11175 11176 if test "$GXX" = yes ; then 11177 lt_int_apple_cc_single_mod=no 11178 output_verbose_link_cmd='echo' 11179 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11180 lt_int_apple_cc_single_mod=yes 11181 fi 11182 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11183 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11184 else 11185 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' 11186 fi 11187 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11189 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11190 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}' 11191 else 11192 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}' 11193 fi 11194 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}' 11195 else 11196 case $cc_basename in 11197 xlc*) 11198 output_verbose_link_cmd='echo' 11199 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' 11200 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11202 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}' 11203 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}' 11204 ;; 11205 *) 11206 ld_shlibs_CXX=no 11207 ;; 11208 esac 11209 fi 11210 ;; 11211 11212 dgux*) 11213 case $cc_basename in 11214 ec++*) 11215 # FIXME: insert proper C++ library support 11216 ld_shlibs_CXX=no 11217 ;; 11218 ghcx*) 11219 # Green Hills C++ Compiler 11220 # FIXME: insert proper C++ library support 11221 ld_shlibs_CXX=no 11222 ;; 11223 *) 11224 # FIXME: insert proper C++ library support 11225 ld_shlibs_CXX=no 11226 ;; 11227 esac 11228 ;; 11229 freebsd[12]*) 11230 # C++ shared libraries reported to be fairly broken before switch to ELF 11231 ld_shlibs_CXX=no 11232 ;; 11233 freebsd-elf*) 11234 archive_cmds_need_lc_CXX=no 11235 ;; 11236 freebsd* | kfreebsd*-gnu | dragonfly*) 11237 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11238 # conventions 11239 ld_shlibs_CXX=yes 11240 ;; 11241 gnu*) 11242 ;; 11243 hpux9*) 11244 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11245 hardcode_libdir_separator_CXX=: 11246 export_dynamic_flag_spec_CXX='${wl}-E' 11247 hardcode_direct_CXX=yes 11248 hardcode_minus_L_CXX=yes # Not in the search PATH, 11249 # but as the default 11250 # location of the library. 11251 11252 case $cc_basename in 11253 CC*) 11254 # FIXME: insert proper C++ library support 11255 ld_shlibs_CXX=no 11256 ;; 11257 aCC*) 11258 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' 11259 # Commands to make compiler produce verbose output that lists 11260 # what "hidden" libraries, object files and flags are used when 11261 # linking a shared library. 11262 # 11263 # There doesn't appear to be a way to prevent this compiler from 11264 # explicitly linking system object files so we need to strip them 11265 # from the output so that they don't get included in the library 11266 # dependencies. 11267 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' 11268 ;; 11269 *) 11270 if test "$GXX" = yes; then 11271 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' 11272 else 11273 # FIXME: insert proper C++ library support 11274 ld_shlibs_CXX=no 11275 fi 11276 ;; 11277 esac 11278 ;; 11279 hpux10*|hpux11*) 11280 if test $with_gnu_ld = no; then 11281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11282 hardcode_libdir_separator_CXX=: 11283 11284 case $host_cpu in 11285 hppa*64*|ia64*) 11286 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11287 ;; 11288 *) 11289 export_dynamic_flag_spec_CXX='${wl}-E' 11290 ;; 11291 esac 11292 fi 11293 case $host_cpu in 11294 hppa*64*|ia64*) 11295 hardcode_direct_CXX=no 11296 hardcode_shlibpath_var_CXX=no 11297 ;; 11298 *) 11299 hardcode_direct_CXX=yes 11300 hardcode_minus_L_CXX=yes # Not in the search PATH, 11301 # but as the default 11302 # location of the library. 11303 ;; 11304 esac 11305 11306 case $cc_basename in 11307 CC*) 11308 # FIXME: insert proper C++ library support 11309 ld_shlibs_CXX=no 11310 ;; 11311 aCC*) 11312 case $host_cpu in 11313 hppa*64*) 11314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11315 ;; 11316 ia64*) 11317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11318 ;; 11319 *) 11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11321 ;; 11322 esac 11323 # Commands to make compiler produce verbose output that lists 11324 # what "hidden" libraries, object files and flags are used when 11325 # linking a shared library. 11326 # 11327 # There doesn't appear to be a way to prevent this compiler from 11328 # explicitly linking system object files so we need to strip them 11329 # from the output so that they don't get included in the library 11330 # dependencies. 11331 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' 11332 ;; 11333 *) 11334 if test "$GXX" = yes; then 11335 if test $with_gnu_ld = no; then 11336 case $host_cpu in 11337 hppa*64*) 11338 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11339 ;; 11340 ia64*) 11341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11342 ;; 11343 *) 11344 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' 11345 ;; 11346 esac 11347 fi 11348 else 11349 # FIXME: insert proper C++ library support 11350 ld_shlibs_CXX=no 11351 fi 11352 ;; 11353 esac 11354 ;; 11355 interix3*) 11356 hardcode_direct_CXX=no 11357 hardcode_shlibpath_var_CXX=no 11358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11359 export_dynamic_flag_spec_CXX='${wl}-E' 11360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11361 # Instead, shared libraries are loaded at an image base (0x10000000 by 11362 # default) and relocated if they conflict, which is a slow very memory 11363 # consuming and fragmenting process. To avoid this, we pick a random, 11364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11365 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11366 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' 11367 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' 11368 ;; 11369 irix5* | irix6*) 11370 case $cc_basename in 11371 CC*) 11372 # SGI C++ 11373 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' 11374 11375 # Archives containing C++ object files must be created using 11376 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11377 # necessary to make sure instantiated templates are included 11378 # in the archive. 11379 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11380 ;; 11381 *) 11382 if test "$GXX" = yes; then 11383 if test "$with_gnu_ld" = no; then 11384 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' 11385 else 11386 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' 11387 fi 11388 fi 11389 link_all_deplibs_CXX=yes 11390 ;; 11391 esac 11392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11393 hardcode_libdir_separator_CXX=: 11394 ;; 11395 linux*) 11396 case $cc_basename in 11397 KCC*) 11398 # Kuck and Associates, Inc. (KAI) C++ Compiler 11399 11400 # KCC will only create a shared library if the output file 11401 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11402 # to its proper name (with version) after linking. 11403 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' 11404 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' 11405 # Commands to make compiler produce verbose output that lists 11406 # what "hidden" libraries, object files and flags are used when 11407 # linking a shared library. 11408 # 11409 # There doesn't appear to be a way to prevent this compiler from 11410 # explicitly linking system object files so we need to strip them 11411 # from the output so that they don't get included in the library 11412 # dependencies. 11413 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' 11414 11415 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11417 11418 # Archives containing C++ object files must be created using 11419 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11420 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11421 ;; 11422 icpc*) 11423 # Intel C++ 11424 with_gnu_ld=yes 11425 # version 8.0 and above of icpc choke on multiply defined symbols 11426 # if we add $predep_objects and $postdep_objects, however 7.1 and 11427 # earlier do not add the objects themselves. 11428 case `$CC -V 2>&1` in 11429 *"Version 7."*) 11430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11431 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' 11432 ;; 11433 *) # Version 8.0 or newer 11434 tmp_idyn= 11435 case $host_cpu in 11436 ia64*) tmp_idyn=' -i_dynamic';; 11437 esac 11438 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11439 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' 11440 ;; 11441 esac 11442 archive_cmds_need_lc_CXX=no 11443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11445 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11446 ;; 11447 pgCC*) 11448 # Portland Group C++ compiler 11449 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11450 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' 11451 11452 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11454 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' 11455 ;; 11456 cxx*) 11457 # Compaq C++ 11458 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11459 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' 11460 11461 runpath_var=LD_RUN_PATH 11462 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11463 hardcode_libdir_separator_CXX=: 11464 11465 # Commands to make compiler produce verbose output that lists 11466 # what "hidden" libraries, object files and flags are used when 11467 # linking a shared library. 11468 # 11469 # There doesn't appear to be a way to prevent this compiler from 11470 # explicitly linking system object files so we need to strip them 11471 # from the output so that they don't get included in the library 11472 # dependencies. 11473 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' 11474 ;; 11475 esac 11476 ;; 11477 lynxos*) 11478 # FIXME: insert proper C++ library support 11479 ld_shlibs_CXX=no 11480 ;; 11481 m88k*) 11482 # FIXME: insert proper C++ library support 11483 ld_shlibs_CXX=no 11484 ;; 11485 mvs*) 11486 case $cc_basename in 11487 cxx*) 11488 # FIXME: insert proper C++ library support 11489 ld_shlibs_CXX=no 11490 ;; 11491 *) 11492 # FIXME: insert proper C++ library support 11493 ld_shlibs_CXX=no 11494 ;; 11495 esac 11496 ;; 11497 netbsd*) 11498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11499 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11500 wlarc= 11501 hardcode_libdir_flag_spec_CXX='-R$libdir' 11502 hardcode_direct_CXX=yes 11503 hardcode_shlibpath_var_CXX=no 11504 fi 11505 # Workaround some broken pre-1.5 toolchains 11506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11507 ;; 11508 openbsd2*) 11509 # C++ shared libraries are fairly broken 11510 ld_shlibs_CXX=no 11511 ;; 11512 openbsd*) 11513 hardcode_direct_CXX=yes 11514 hardcode_shlibpath_var_CXX=no 11515 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11518 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11519 export_dynamic_flag_spec_CXX='${wl}-E' 11520 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11521 fi 11522 output_verbose_link_cmd='echo' 11523 ;; 11524 osf3*) 11525 case $cc_basename in 11526 KCC*) 11527 # Kuck and Associates, Inc. (KAI) C++ Compiler 11528 11529 # KCC will only create a shared library if the output file 11530 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11531 # to its proper name (with version) after linking. 11532 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' 11533 11534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11535 hardcode_libdir_separator_CXX=: 11536 11537 # Archives containing C++ object files must be created using 11538 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11539 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11540 11541 ;; 11542 RCC*) 11543 # Rational C++ 2.4.1 11544 # FIXME: insert proper C++ library support 11545 ld_shlibs_CXX=no 11546 ;; 11547 cxx*) 11548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11549 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' 11550 11551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11552 hardcode_libdir_separator_CXX=: 11553 11554 # Commands to make compiler produce verbose output that lists 11555 # what "hidden" libraries, object files and flags are used when 11556 # linking a shared library. 11557 # 11558 # There doesn't appear to be a way to prevent this compiler from 11559 # explicitly linking system object files so we need to strip them 11560 # from the output so that they don't get included in the library 11561 # dependencies. 11562 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' 11563 ;; 11564 *) 11565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11567 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' 11568 11569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11570 hardcode_libdir_separator_CXX=: 11571 11572 # Commands to make compiler produce verbose output that lists 11573 # what "hidden" libraries, object files and flags are used when 11574 # linking a shared library. 11575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11576 11577 else 11578 # FIXME: insert proper C++ library support 11579 ld_shlibs_CXX=no 11580 fi 11581 ;; 11582 esac 11583 ;; 11584 osf4* | osf5*) 11585 case $cc_basename in 11586 KCC*) 11587 # Kuck and Associates, Inc. (KAI) C++ Compiler 11588 11589 # KCC will only create a shared library if the output file 11590 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11591 # to its proper name (with version) after linking. 11592 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' 11593 11594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11595 hardcode_libdir_separator_CXX=: 11596 11597 # Archives containing C++ object files must be created using 11598 # the KAI C++ compiler. 11599 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11600 ;; 11601 RCC*) 11602 # Rational C++ 2.4.1 11603 # FIXME: insert proper C++ library support 11604 ld_shlibs_CXX=no 11605 ;; 11606 cxx*) 11607 allow_undefined_flag_CXX=' -expect_unresolved \*' 11608 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' 11609 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11610 echo "-hidden">> $lib.exp~ 11611 $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~ 11612 $rm $lib.exp' 11613 11614 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11615 hardcode_libdir_separator_CXX=: 11616 11617 # Commands to make compiler produce verbose output that lists 11618 # what "hidden" libraries, object files and flags are used when 11619 # linking a shared library. 11620 # 11621 # There doesn't appear to be a way to prevent this compiler from 11622 # explicitly linking system object files so we need to strip them 11623 # from the output so that they don't get included in the library 11624 # dependencies. 11625 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' 11626 ;; 11627 *) 11628 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11630 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' 11631 11632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11633 hardcode_libdir_separator_CXX=: 11634 11635 # Commands to make compiler produce verbose output that lists 11636 # what "hidden" libraries, object files and flags are used when 11637 # linking a shared library. 11638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11639 11640 else 11641 # FIXME: insert proper C++ library support 11642 ld_shlibs_CXX=no 11643 fi 11644 ;; 11645 esac 11646 ;; 11647 psos*) 11648 # FIXME: insert proper C++ library support 11649 ld_shlibs_CXX=no 11650 ;; 11651 sunos4*) 11652 case $cc_basename in 11653 CC*) 11654 # Sun C++ 4.x 11655 # FIXME: insert proper C++ library support 11656 ld_shlibs_CXX=no 11657 ;; 11658 lcc*) 11659 # Lucid 11660 # FIXME: insert proper C++ library support 11661 ld_shlibs_CXX=no 11662 ;; 11663 *) 11664 # FIXME: insert proper C++ library support 11665 ld_shlibs_CXX=no 11666 ;; 11667 esac 11668 ;; 11669 solaris*) 11670 case $cc_basename in 11671 CC*) 11672 # Sun C++ 4.2, 5.x and Centerline C++ 11673 archive_cmds_need_lc_CXX=yes 11674 no_undefined_flag_CXX=' -zdefs' 11675 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11676 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11677 $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' 11678 11679 hardcode_libdir_flag_spec_CXX='-R$libdir' 11680 hardcode_shlibpath_var_CXX=no 11681 case $host_os in 11682 solaris2.[0-5] | solaris2.[0-5].*) ;; 11683 *) 11684 # The C++ compiler is used as linker so we must use $wl 11685 # flag to pass the commands to the underlying system 11686 # linker. We must also pass each convience library through 11687 # to the system linker between allextract/defaultextract. 11688 # The C++ compiler will combine linker options so we 11689 # cannot just pass the convience library names through 11690 # without $wl. 11691 # Supported since Solaris 2.6 (maybe 2.5.1?) 11692 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' 11693 ;; 11694 esac 11695 link_all_deplibs_CXX=yes 11696 11697 output_verbose_link_cmd='echo' 11698 11699 # Archives containing C++ object files must be created using 11700 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11701 # necessary to make sure instantiated templates are included 11702 # in the archive. 11703 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11704 ;; 11705 gcx*) 11706 # Green Hills C++ Compiler 11707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11708 11709 # The C++ compiler must be used to create the archive. 11710 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11711 ;; 11712 *) 11713 # GNU C++ compiler with Solaris linker 11714 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11715 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11716 if $CC --version | grep -v '^2\.7' > /dev/null; then 11717 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11718 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11719 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11720 11721 # Commands to make compiler produce verbose output that lists 11722 # what "hidden" libraries, object files and flags are used when 11723 # linking a shared library. 11724 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11725 else 11726 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11727 # platform. 11728 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11729 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11730 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11731 11732 # Commands to make compiler produce verbose output that lists 11733 # what "hidden" libraries, object files and flags are used when 11734 # linking a shared library. 11735 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11736 fi 11737 11738 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11739 fi 11740 ;; 11741 esac 11742 ;; 11743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11744 no_undefined_flag_CXX='${wl}-z,text' 11745 archive_cmds_need_lc_CXX=no 11746 hardcode_shlibpath_var_CXX=no 11747 runpath_var='LD_RUN_PATH' 11748 11749 case $cc_basename in 11750 CC*) 11751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11753 ;; 11754 *) 11755 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11757 ;; 11758 esac 11759 ;; 11760 sysv5* | sco3.2v5* | sco5v6*) 11761 # Note: We can NOT use -z defs as we might desire, because we do not 11762 # link with -lc, and that would cause any symbols used from libc to 11763 # always be unresolved, which means just about no library would 11764 # ever link correctly. If we're not using GNU ld we use -z text 11765 # though, which does catch some bad symbols but isn't as heavy-handed 11766 # as -z defs. 11767 # For security reasons, it is highly recommended that you always 11768 # use absolute paths for naming shared libraries, and exclude the 11769 # DT_RUNPATH tag from executables and libraries. But doing so 11770 # requires that you compile everything twice, which is a pain. 11771 # So that behaviour is only enabled if SCOABSPATH is set to a 11772 # non-empty value in the environment. Most likely only useful for 11773 # creating official distributions of packages. 11774 # This is a hack until libtool officially supports absolute path 11775 # names for shared libraries. 11776 no_undefined_flag_CXX='${wl}-z,text' 11777 allow_undefined_flag_CXX='${wl}-z,nodefs' 11778 archive_cmds_need_lc_CXX=no 11779 hardcode_shlibpath_var_CXX=no 11780 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11781 hardcode_libdir_separator_CXX=':' 11782 link_all_deplibs_CXX=yes 11783 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11784 runpath_var='LD_RUN_PATH' 11785 11786 case $cc_basename in 11787 CC*) 11788 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11790 ;; 11791 *) 11792 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11794 ;; 11795 esac 11796 ;; 11797 tandem*) 11798 case $cc_basename in 11799 NCC*) 11800 # NonStop-UX NCC 3.20 11801 # FIXME: insert proper C++ library support 11802 ld_shlibs_CXX=no 11803 ;; 11804 *) 11805 # FIXME: insert proper C++ library support 11806 ld_shlibs_CXX=no 11807 ;; 11808 esac 11809 ;; 11810 vxworks*) 11811 # FIXME: insert proper C++ library support 11812 ld_shlibs_CXX=no 11813 ;; 11814 *) 11815 # FIXME: insert proper C++ library support 11816 ld_shlibs_CXX=no 11817 ;; 11818esac 11819{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11820echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11821test "$ld_shlibs_CXX" = no && can_build_shared=no 11822 11823GCC_CXX="$GXX" 11824LD_CXX="$LD" 11825 11826 11827cat > conftest.$ac_ext <<EOF 11828class Foo 11829{ 11830public: 11831 Foo (void) { a = 0; } 11832private: 11833 int a; 11834}; 11835EOF 11836 11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11838 (eval $ac_compile) 2>&5 11839 ac_status=$? 11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11841 (exit $ac_status); }; then 11842 # Parse the compiler output and extract the necessary 11843 # objects, libraries and library flags. 11844 11845 # Sentinel used to keep track of whether or not we are before 11846 # the conftest object file. 11847 pre_test_object_deps_done=no 11848 11849 # The `*' in the case matches for architectures that use `case' in 11850 # $output_verbose_cmd can trigger glob expansion during the loop 11851 # eval without this substitution. 11852 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11853 11854 for p in `eval $output_verbose_link_cmd`; do 11855 case $p in 11856 11857 -L* | -R* | -l*) 11858 # Some compilers place space between "-{L,R}" and the path. 11859 # Remove the space. 11860 if test $p = "-L" \ 11861 || test $p = "-R"; then 11862 prev=$p 11863 continue 11864 else 11865 prev= 11866 fi 11867 11868 if test "$pre_test_object_deps_done" = no; then 11869 case $p in 11870 -L* | -R*) 11871 # Internal compiler library paths should come after those 11872 # provided the user. The postdeps already come after the 11873 # user supplied libs so there is no need to process them. 11874 if test -z "$compiler_lib_search_path_CXX"; then 11875 compiler_lib_search_path_CXX="${prev}${p}" 11876 else 11877 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11878 fi 11879 ;; 11880 # The "-l" case would never come before the object being 11881 # linked, so don't bother handling this case. 11882 esac 11883 else 11884 if test -z "$postdeps_CXX"; then 11885 postdeps_CXX="${prev}${p}" 11886 else 11887 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11888 fi 11889 fi 11890 ;; 11891 11892 *.$objext) 11893 # This assumes that the test object file only shows up 11894 # once in the compiler output. 11895 if test "$p" = "conftest.$objext"; then 11896 pre_test_object_deps_done=yes 11897 continue 11898 fi 11899 11900 if test "$pre_test_object_deps_done" = no; then 11901 if test -z "$predep_objects_CXX"; then 11902 predep_objects_CXX="$p" 11903 else 11904 predep_objects_CXX="$predep_objects_CXX $p" 11905 fi 11906 else 11907 if test -z "$postdep_objects_CXX"; then 11908 postdep_objects_CXX="$p" 11909 else 11910 postdep_objects_CXX="$postdep_objects_CXX $p" 11911 fi 11912 fi 11913 ;; 11914 11915 *) ;; # Ignore the rest. 11916 11917 esac 11918 done 11919 11920 # Clean up. 11921 rm -f a.out a.exe 11922else 11923 echo "libtool.m4: error: problem compiling CXX test program" 11924fi 11925 11926$rm -f confest.$objext 11927 11928# PORTME: override above test on systems where it is broken 11929case $host_os in 11930interix3*) 11931 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11932 # hack all around it, let's just trust "g++" to DTRT. 11933 predep_objects_CXX= 11934 postdep_objects_CXX= 11935 postdeps_CXX= 11936 ;; 11937 11938solaris*) 11939 case $cc_basename in 11940 CC*) 11941 # Adding this requires a known-good setup of shared libraries for 11942 # Sun compiler versions before 5.6, else PIC objects from an old 11943 # archive will be linked into the output, leading to subtle bugs. 11944 postdeps_CXX='-lCstd -lCrun' 11945 ;; 11946 esac 11947 ;; 11948esac 11949 11950 11951case " $postdeps_CXX " in 11952*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11953esac 11954 11955lt_prog_compiler_wl_CXX= 11956lt_prog_compiler_pic_CXX= 11957lt_prog_compiler_static_CXX= 11958 11959{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11960echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11961 11962 # C++ specific cases for pic, static, wl, etc. 11963 if test "$GXX" = yes; then 11964 lt_prog_compiler_wl_CXX='-Wl,' 11965 lt_prog_compiler_static_CXX='-static' 11966 11967 case $host_os in 11968 aix*) 11969 # All AIX code is PIC. 11970 if test "$host_cpu" = ia64; then 11971 # AIX 5 now supports IA64 processor 11972 lt_prog_compiler_static_CXX='-Bstatic' 11973 fi 11974 ;; 11975 amigaos*) 11976 # FIXME: we need at least 68020 code to build shared libraries, but 11977 # adding the `-m68020' flag to GCC prevents building anything better, 11978 # like `-m68040'. 11979 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11980 ;; 11981 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11982 # PIC is the default for these OSes. 11983 ;; 11984 mingw* | os2* | pw32*) 11985 # This hack is so that the source file can tell whether it is being 11986 # built for inclusion in a dll (and should export symbols for example). 11987 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11988 ;; 11989 darwin* | rhapsody*) 11990 # PIC is the default on this platform 11991 # Common symbols not allowed in MH_DYLIB files 11992 lt_prog_compiler_pic_CXX='-fno-common' 11993 ;; 11994 *djgpp*) 11995 # DJGPP does not support shared libraries at all 11996 lt_prog_compiler_pic_CXX= 11997 ;; 11998 interix3*) 11999 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12000 # Instead, we relocate shared libraries at runtime. 12001 ;; 12002 sysv4*MP*) 12003 if test -d /usr/nec; then 12004 lt_prog_compiler_pic_CXX=-Kconform_pic 12005 fi 12006 ;; 12007 hpux*) 12008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12009 # not for PA HP-UX. 12010 case $host_cpu in 12011 hppa*64*|ia64*) 12012 ;; 12013 *) 12014 lt_prog_compiler_pic_CXX='-fPIC' 12015 ;; 12016 esac 12017 ;; 12018 *) 12019 lt_prog_compiler_pic_CXX='-fPIC' 12020 ;; 12021 esac 12022 else 12023 case $host_os in 12024 aix4* | aix5*) 12025 # All AIX code is PIC. 12026 if test "$host_cpu" = ia64; then 12027 # AIX 5 now supports IA64 processor 12028 lt_prog_compiler_static_CXX='-Bstatic' 12029 else 12030 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12031 fi 12032 ;; 12033 chorus*) 12034 case $cc_basename in 12035 cxch68*) 12036 # Green Hills C++ Compiler 12037 # _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" 12038 ;; 12039 esac 12040 ;; 12041 darwin*) 12042 # PIC is the default on this platform 12043 # Common symbols not allowed in MH_DYLIB files 12044 case $cc_basename in 12045 xlc*) 12046 lt_prog_compiler_pic_CXX='-qnocommon' 12047 lt_prog_compiler_wl_CXX='-Wl,' 12048 ;; 12049 esac 12050 ;; 12051 dgux*) 12052 case $cc_basename in 12053 ec++*) 12054 lt_prog_compiler_pic_CXX='-KPIC' 12055 ;; 12056 ghcx*) 12057 # Green Hills C++ Compiler 12058 lt_prog_compiler_pic_CXX='-pic' 12059 ;; 12060 *) 12061 ;; 12062 esac 12063 ;; 12064 freebsd* | kfreebsd*-gnu | dragonfly*) 12065 # FreeBSD uses GNU C++ 12066 ;; 12067 hpux9* | hpux10* | hpux11*) 12068 case $cc_basename in 12069 CC*) 12070 lt_prog_compiler_wl_CXX='-Wl,' 12071 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12072 if test "$host_cpu" != ia64; then 12073 lt_prog_compiler_pic_CXX='+Z' 12074 fi 12075 ;; 12076 aCC*) 12077 lt_prog_compiler_wl_CXX='-Wl,' 12078 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12079 case $host_cpu in 12080 hppa*64*|ia64*) 12081 # +Z the default 12082 ;; 12083 *) 12084 lt_prog_compiler_pic_CXX='+Z' 12085 ;; 12086 esac 12087 ;; 12088 *) 12089 ;; 12090 esac 12091 ;; 12092 interix*) 12093 # This is c89, which is MS Visual C++ (no shared libs) 12094 # Anyone wants to do a port? 12095 ;; 12096 irix5* | irix6* | nonstopux*) 12097 case $cc_basename in 12098 CC*) 12099 lt_prog_compiler_wl_CXX='-Wl,' 12100 lt_prog_compiler_static_CXX='-non_shared' 12101 # CC pic flag -KPIC is the default. 12102 ;; 12103 *) 12104 ;; 12105 esac 12106 ;; 12107 linux*) 12108 case $cc_basename in 12109 KCC*) 12110 # KAI C++ Compiler 12111 lt_prog_compiler_wl_CXX='--backend -Wl,' 12112 lt_prog_compiler_pic_CXX='-fPIC' 12113 ;; 12114 icpc* | ecpc*) 12115 # Intel C++ 12116 lt_prog_compiler_wl_CXX='-Wl,' 12117 lt_prog_compiler_pic_CXX='-KPIC' 12118 lt_prog_compiler_static_CXX='-static' 12119 ;; 12120 pgCC*) 12121 # Portland Group C++ compiler. 12122 lt_prog_compiler_wl_CXX='-Wl,' 12123 lt_prog_compiler_pic_CXX='-fpic' 12124 lt_prog_compiler_static_CXX='-Bstatic' 12125 ;; 12126 cxx*) 12127 # Compaq C++ 12128 # Make sure the PIC flag is empty. It appears that all Alpha 12129 # Linux and Compaq Tru64 Unix objects are PIC. 12130 lt_prog_compiler_pic_CXX= 12131 lt_prog_compiler_static_CXX='-non_shared' 12132 ;; 12133 *) 12134 ;; 12135 esac 12136 ;; 12137 lynxos*) 12138 ;; 12139 m88k*) 12140 ;; 12141 mvs*) 12142 case $cc_basename in 12143 cxx*) 12144 lt_prog_compiler_pic_CXX='-W c,exportall' 12145 ;; 12146 *) 12147 ;; 12148 esac 12149 ;; 12150 netbsd*) 12151 ;; 12152 osf3* | osf4* | osf5*) 12153 case $cc_basename in 12154 KCC*) 12155 lt_prog_compiler_wl_CXX='--backend -Wl,' 12156 ;; 12157 RCC*) 12158 # Rational C++ 2.4.1 12159 lt_prog_compiler_pic_CXX='-pic' 12160 ;; 12161 cxx*) 12162 # Digital/Compaq C++ 12163 lt_prog_compiler_wl_CXX='-Wl,' 12164 # Make sure the PIC flag is empty. It appears that all Alpha 12165 # Linux and Compaq Tru64 Unix objects are PIC. 12166 lt_prog_compiler_pic_CXX= 12167 lt_prog_compiler_static_CXX='-non_shared' 12168 ;; 12169 *) 12170 ;; 12171 esac 12172 ;; 12173 psos*) 12174 ;; 12175 solaris*) 12176 case $cc_basename in 12177 CC*) 12178 # Sun C++ 4.2, 5.x and Centerline C++ 12179 lt_prog_compiler_pic_CXX='-KPIC' 12180 lt_prog_compiler_static_CXX='-Bstatic' 12181 lt_prog_compiler_wl_CXX='-Qoption ld ' 12182 ;; 12183 gcx*) 12184 # Green Hills C++ Compiler 12185 lt_prog_compiler_pic_CXX='-PIC' 12186 ;; 12187 *) 12188 ;; 12189 esac 12190 ;; 12191 sunos4*) 12192 case $cc_basename in 12193 CC*) 12194 # Sun C++ 4.x 12195 lt_prog_compiler_pic_CXX='-pic' 12196 lt_prog_compiler_static_CXX='-Bstatic' 12197 ;; 12198 lcc*) 12199 # Lucid 12200 lt_prog_compiler_pic_CXX='-pic' 12201 ;; 12202 *) 12203 ;; 12204 esac 12205 ;; 12206 tandem*) 12207 case $cc_basename in 12208 NCC*) 12209 # NonStop-UX NCC 3.20 12210 lt_prog_compiler_pic_CXX='-KPIC' 12211 ;; 12212 *) 12213 ;; 12214 esac 12215 ;; 12216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12217 case $cc_basename in 12218 CC*) 12219 lt_prog_compiler_wl_CXX='-Wl,' 12220 lt_prog_compiler_pic_CXX='-KPIC' 12221 lt_prog_compiler_static_CXX='-Bstatic' 12222 ;; 12223 esac 12224 ;; 12225 vxworks*) 12226 ;; 12227 *) 12228 lt_prog_compiler_can_build_shared_CXX=no 12229 ;; 12230 esac 12231 fi 12232 12233{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12234echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12235 12236# 12237# Check to make sure the PIC flag actually works. 12238# 12239if test -n "$lt_prog_compiler_pic_CXX"; then 12240 12241{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12242echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12243if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12244 echo $ECHO_N "(cached) $ECHO_C" >&6 12245else 12246 lt_prog_compiler_pic_works_CXX=no 12247 ac_outfile=conftest.$ac_objext 12248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12249 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12250 # Insert the option either (1) after the last *FLAGS variable, or 12251 # (2) before a word containing "conftest.", or (3) at the end. 12252 # Note that $ac_compile itself does not contain backslashes and begins 12253 # with a dollar sign (not a hyphen), so the echo should work correctly. 12254 # The option is referenced via a variable to avoid confusing sed. 12255 lt_compile=`echo "$ac_compile" | $SED \ 12256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12258 -e 's:$: $lt_compiler_flag:'` 12259 (eval echo "\"\$as_me:12259: $lt_compile\"" >&5) 12260 (eval "$lt_compile" 2>conftest.err) 12261 ac_status=$? 12262 cat conftest.err >&5 12263 echo "$as_me:12263: \$? = $ac_status" >&5 12264 if (exit $ac_status) && test -s "$ac_outfile"; then 12265 # The compiler can only warn and ignore the option if not recognized 12266 # So say no if there are warnings other than the usual output. 12267 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12270 lt_prog_compiler_pic_works_CXX=yes 12271 fi 12272 fi 12273 $rm conftest* 12274 12275fi 12276{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12277echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12278 12279if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12280 case $lt_prog_compiler_pic_CXX in 12281 "" | " "*) ;; 12282 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12283 esac 12284else 12285 lt_prog_compiler_pic_CXX= 12286 lt_prog_compiler_can_build_shared_CXX=no 12287fi 12288 12289fi 12290case $host_os in 12291 # For platforms which do not support PIC, -DPIC is meaningless: 12292 *djgpp*) 12293 lt_prog_compiler_pic_CXX= 12294 ;; 12295 *) 12296 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12297 ;; 12298esac 12299 12300# 12301# Check to make sure the static flag actually works. 12302# 12303wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12304{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12305echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12306if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12307 echo $ECHO_N "(cached) $ECHO_C" >&6 12308else 12309 lt_prog_compiler_static_works_CXX=no 12310 save_LDFLAGS="$LDFLAGS" 12311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12312 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12314 # The linker can only warn and ignore the option if not recognized 12315 # So say no if there are warnings 12316 if test -s conftest.err; then 12317 # Append any errors to the config.log. 12318 cat conftest.err 1>&5 12319 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12321 if diff conftest.exp conftest.er2 >/dev/null; then 12322 lt_prog_compiler_static_works_CXX=yes 12323 fi 12324 else 12325 lt_prog_compiler_static_works_CXX=yes 12326 fi 12327 fi 12328 $rm conftest* 12329 LDFLAGS="$save_LDFLAGS" 12330 12331fi 12332{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12333echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12334 12335if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12336 : 12337else 12338 lt_prog_compiler_static_CXX= 12339fi 12340 12341 12342{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12343echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12344if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12345 echo $ECHO_N "(cached) $ECHO_C" >&6 12346else 12347 lt_cv_prog_compiler_c_o_CXX=no 12348 $rm -r conftest 2>/dev/null 12349 mkdir conftest 12350 cd conftest 12351 mkdir out 12352 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12353 12354 lt_compiler_flag="-o out/conftest2.$ac_objext" 12355 # Insert the option either (1) after the last *FLAGS variable, or 12356 # (2) before a word containing "conftest.", or (3) at the end. 12357 # Note that $ac_compile itself does not contain backslashes and begins 12358 # with a dollar sign (not a hyphen), so the echo should work correctly. 12359 lt_compile=`echo "$ac_compile" | $SED \ 12360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12362 -e 's:$: $lt_compiler_flag:'` 12363 (eval echo "\"\$as_me:12363: $lt_compile\"" >&5) 12364 (eval "$lt_compile" 2>out/conftest.err) 12365 ac_status=$? 12366 cat out/conftest.err >&5 12367 echo "$as_me:12367: \$? = $ac_status" >&5 12368 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12369 then 12370 # The compiler can only warn and ignore the option if not recognized 12371 # So say no if there are warnings 12372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12375 lt_cv_prog_compiler_c_o_CXX=yes 12376 fi 12377 fi 12378 chmod u+w . 2>&5 12379 $rm conftest* 12380 # SGI C++ compiler will create directory out/ii_files/ for 12381 # template instantiation 12382 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12383 $rm out/* && rmdir out 12384 cd .. 12385 rmdir conftest 12386 $rm conftest* 12387 12388fi 12389{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12390echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12391 12392 12393hard_links="nottested" 12394if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12395 # do not overwrite the value of need_locks provided by the user 12396 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12397echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12398 hard_links=yes 12399 $rm conftest* 12400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12401 touch conftest.a 12402 ln conftest.a conftest.b 2>&5 || hard_links=no 12403 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12404 { echo "$as_me:$LINENO: result: $hard_links" >&5 12405echo "${ECHO_T}$hard_links" >&6; } 12406 if test "$hard_links" = no; then 12407 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12408echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12409 need_locks=warn 12410 fi 12411else 12412 need_locks=no 12413fi 12414 12415{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12416echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12417 12418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12419 case $host_os in 12420 aix4* | aix5*) 12421 # If we're using GNU nm, then we don't want the "-C" option. 12422 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12423 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12424 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' 12425 else 12426 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' 12427 fi 12428 ;; 12429 pw32*) 12430 export_symbols_cmds_CXX="$ltdll_cmds" 12431 ;; 12432 cygwin* | mingw*) 12433 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' 12434 ;; 12435 *) 12436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12437 ;; 12438 esac 12439 12440{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12441echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12442test "$ld_shlibs_CXX" = no && can_build_shared=no 12443 12444# 12445# Do we need to explicitly link libc? 12446# 12447case "x$archive_cmds_need_lc_CXX" in 12448x|xyes) 12449 # Assume -lc should be added 12450 archive_cmds_need_lc_CXX=yes 12451 12452 if test "$enable_shared" = yes && test "$GCC" = yes; then 12453 case $archive_cmds_CXX in 12454 *'~'*) 12455 # FIXME: we may have to deal with multi-command sequences. 12456 ;; 12457 '$CC '*) 12458 # Test whether the compiler implicitly links with -lc since on some 12459 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12460 # to ld, don't add -lc before -lgcc. 12461 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12462echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12463 $rm conftest* 12464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12465 12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12467 (eval $ac_compile) 2>&5 12468 ac_status=$? 12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12470 (exit $ac_status); } 2>conftest.err; then 12471 soname=conftest 12472 lib=conftest 12473 libobjs=conftest.$ac_objext 12474 deplibs= 12475 wl=$lt_prog_compiler_wl_CXX 12476 pic_flag=$lt_prog_compiler_pic_CXX 12477 compiler_flags=-v 12478 linker_flags=-v 12479 verstring= 12480 output_objdir=. 12481 libname=conftest 12482 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12483 allow_undefined_flag_CXX= 12484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12485 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12486 ac_status=$? 12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12488 (exit $ac_status); } 12489 then 12490 archive_cmds_need_lc_CXX=no 12491 else 12492 archive_cmds_need_lc_CXX=yes 12493 fi 12494 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12495 else 12496 cat conftest.err 1>&5 12497 fi 12498 $rm conftest* 12499 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12500echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12501 ;; 12502 esac 12503 fi 12504 ;; 12505esac 12506 12507{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12508echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12509library_names_spec= 12510libname_spec='lib$name' 12511soname_spec= 12512shrext_cmds=".so" 12513postinstall_cmds= 12514postuninstall_cmds= 12515finish_cmds= 12516finish_eval= 12517shlibpath_var= 12518shlibpath_overrides_runpath=unknown 12519version_type=none 12520dynamic_linker="$host_os ld.so" 12521sys_lib_dlsearch_path_spec="/lib /usr/lib" 12522if test "$GCC" = yes; then 12523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12525 # if the path contains ";" then we assume it to be the separator 12526 # otherwise default to the standard path separator (i.e. ":") - it is 12527 # assumed that no part of a normal pathname contains ";" but that should 12528 # okay in the real world where ";" in dirpaths is itself problematic. 12529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12530 else 12531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12532 fi 12533else 12534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12535fi 12536need_lib_prefix=unknown 12537hardcode_into_libs=no 12538 12539# when you set need_version to no, make sure it does not cause -set_version 12540# flags to be left without arguments 12541need_version=unknown 12542 12543case $host_os in 12544aix3*) 12545 version_type=linux 12546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12547 shlibpath_var=LIBPATH 12548 12549 # AIX 3 has no versioning support, so we append a major version to the name. 12550 soname_spec='${libname}${release}${shared_ext}$major' 12551 ;; 12552 12553aix4* | aix5*) 12554 version_type=linux 12555 need_lib_prefix=no 12556 need_version=no 12557 hardcode_into_libs=yes 12558 if test "$host_cpu" = ia64; then 12559 # AIX 5 supports IA64 12560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12561 shlibpath_var=LD_LIBRARY_PATH 12562 else 12563 # With GCC up to 2.95.x, collect2 would create an import file 12564 # for dependence libraries. The import file would start with 12565 # the line `#! .'. This would cause the generated library to 12566 # depend on `.', always an invalid library. This was fixed in 12567 # development snapshots of GCC prior to 3.0. 12568 case $host_os in 12569 aix4 | aix4.[01] | aix4.[01].*) 12570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12571 echo ' yes ' 12572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12573 : 12574 else 12575 can_build_shared=no 12576 fi 12577 ;; 12578 esac 12579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12580 # soname into executable. Probably we can add versioning support to 12581 # collect2, so additional links can be useful in future. 12582 if test "$aix_use_runtimelinking" = yes; then 12583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12584 # instead of lib<name>.a to let people know that these are not 12585 # typical AIX shared libraries. 12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12587 else 12588 # We preserve .a as extension for shared libraries through AIX4.2 12589 # and later when we are not doing run time linking. 12590 library_names_spec='${libname}${release}.a $libname.a' 12591 soname_spec='${libname}${release}${shared_ext}$major' 12592 fi 12593 shlibpath_var=LIBPATH 12594 fi 12595 ;; 12596 12597amigaos*) 12598 library_names_spec='$libname.ixlibrary $libname.a' 12599 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12600 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' 12601 ;; 12602 12603beos*) 12604 library_names_spec='${libname}${shared_ext}' 12605 dynamic_linker="$host_os ld.so" 12606 shlibpath_var=LIBRARY_PATH 12607 ;; 12608 12609bsdi[45]*) 12610 version_type=linux 12611 need_version=no 12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12613 soname_spec='${libname}${release}${shared_ext}$major' 12614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12615 shlibpath_var=LD_LIBRARY_PATH 12616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12618 # the default ld.so.conf also contains /usr/contrib/lib and 12619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12620 # libtool to hard-code these into programs 12621 ;; 12622 12623cygwin* | mingw* | pw32*) 12624 version_type=windows 12625 shrext_cmds=".dll" 12626 need_version=no 12627 need_lib_prefix=no 12628 12629 case $GCC,$host_os in 12630 yes,cygwin* | yes,mingw* | yes,pw32*) 12631 library_names_spec='$libname.dll.a' 12632 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12633 postinstall_cmds='base_file=`basename \${file}`~ 12634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12635 dldir=$destdir/`dirname \$dlpath`~ 12636 test -d \$dldir || mkdir -p \$dldir~ 12637 $install_prog $dir/$dlname \$dldir/$dlname~ 12638 chmod a+x \$dldir/$dlname' 12639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12640 dlpath=$dir/\$dldll~ 12641 $rm \$dlpath' 12642 shlibpath_overrides_runpath=yes 12643 12644 case $host_os in 12645 cygwin*) 12646 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12648 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12649 ;; 12650 mingw*) 12651 # MinGW DLLs use traditional 'lib' prefix 12652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12654 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12655 # It is most probably a Windows format PATH printed by 12656 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12657 # path with ; separators, and with drive letters. We can handle the 12658 # drive letters (cygwin fileutils understands them), so leave them, 12659 # especially as we might pass files found there to a mingw objdump, 12660 # which wouldn't understand a cygwinified path. Ahh. 12661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12662 else 12663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12664 fi 12665 ;; 12666 pw32*) 12667 # pw32 DLLs use 'pw' prefix rather than 'lib' 12668 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12669 ;; 12670 esac 12671 ;; 12672 12673 *) 12674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12675 ;; 12676 esac 12677 dynamic_linker='Win32 ld.exe' 12678 # FIXME: first we should search . and the directory the executable is in 12679 shlibpath_var=PATH 12680 ;; 12681 12682darwin* | rhapsody*) 12683 dynamic_linker="$host_os dyld" 12684 version_type=darwin 12685 need_lib_prefix=no 12686 need_version=no 12687 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12688 soname_spec='${libname}${release}${major}$shared_ext' 12689 shlibpath_overrides_runpath=yes 12690 shlibpath_var=DYLD_LIBRARY_PATH 12691 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12692 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12693 if test "$GCC" = yes; then 12694 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"` 12695 else 12696 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12697 fi 12698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12699 ;; 12700 12701dgux*) 12702 version_type=linux 12703 need_lib_prefix=no 12704 need_version=no 12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12706 soname_spec='${libname}${release}${shared_ext}$major' 12707 shlibpath_var=LD_LIBRARY_PATH 12708 ;; 12709 12710freebsd1*) 12711 dynamic_linker=no 12712 ;; 12713 12714kfreebsd*-gnu) 12715 version_type=linux 12716 need_lib_prefix=no 12717 need_version=no 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12719 soname_spec='${libname}${release}${shared_ext}$major' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 shlibpath_overrides_runpath=no 12722 hardcode_into_libs=yes 12723 dynamic_linker='GNU ld.so' 12724 ;; 12725 12726freebsd* | dragonfly*) 12727 # DragonFly does not have aout. When/if they implement a new 12728 # versioning mechanism, adjust this. 12729 if test -x /usr/bin/objformat; then 12730 objformat=`/usr/bin/objformat` 12731 else 12732 case $host_os in 12733 freebsd[123]*) objformat=aout ;; 12734 *) objformat=elf ;; 12735 esac 12736 fi 12737 version_type=freebsd-$objformat 12738 case $version_type in 12739 freebsd-elf*) 12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12741 need_version=no 12742 need_lib_prefix=no 12743 ;; 12744 freebsd-*) 12745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12746 need_version=yes 12747 ;; 12748 esac 12749 shlibpath_var=LD_LIBRARY_PATH 12750 case $host_os in 12751 freebsd2*) 12752 shlibpath_overrides_runpath=yes 12753 ;; 12754 freebsd3.[01]* | freebsdelf3.[01]*) 12755 shlibpath_overrides_runpath=yes 12756 hardcode_into_libs=yes 12757 ;; 12758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12760 shlibpath_overrides_runpath=no 12761 hardcode_into_libs=yes 12762 ;; 12763 freebsd*) # from 4.6 on 12764 shlibpath_overrides_runpath=yes 12765 hardcode_into_libs=yes 12766 ;; 12767 esac 12768 ;; 12769 12770gnu*) 12771 version_type=linux 12772 need_lib_prefix=no 12773 need_version=no 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12775 soname_spec='${libname}${release}${shared_ext}$major' 12776 shlibpath_var=LD_LIBRARY_PATH 12777 hardcode_into_libs=yes 12778 ;; 12779 12780hpux9* | hpux10* | hpux11*) 12781 # Give a soname corresponding to the major version so that dld.sl refuses to 12782 # link against other versions. 12783 version_type=sunos 12784 need_lib_prefix=no 12785 need_version=no 12786 case $host_cpu in 12787 ia64*) 12788 shrext_cmds='.so' 12789 hardcode_into_libs=yes 12790 dynamic_linker="$host_os dld.so" 12791 shlibpath_var=LD_LIBRARY_PATH 12792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12794 soname_spec='${libname}${release}${shared_ext}$major' 12795 if test "X$HPUX_IA64_MODE" = X32; then 12796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12797 else 12798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12799 fi 12800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12801 ;; 12802 hppa*64*) 12803 shrext_cmds='.sl' 12804 hardcode_into_libs=yes 12805 dynamic_linker="$host_os dld.sl" 12806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12809 soname_spec='${libname}${release}${shared_ext}$major' 12810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12812 ;; 12813 *) 12814 shrext_cmds='.sl' 12815 dynamic_linker="$host_os dld.sl" 12816 shlibpath_var=SHLIB_PATH 12817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12819 soname_spec='${libname}${release}${shared_ext}$major' 12820 ;; 12821 esac 12822 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12823 postinstall_cmds='chmod 555 $lib' 12824 ;; 12825 12826interix3*) 12827 version_type=linux 12828 need_lib_prefix=no 12829 need_version=no 12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12831 soname_spec='${libname}${release}${shared_ext}$major' 12832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12833 shlibpath_var=LD_LIBRARY_PATH 12834 shlibpath_overrides_runpath=no 12835 hardcode_into_libs=yes 12836 ;; 12837 12838irix5* | irix6* | nonstopux*) 12839 case $host_os in 12840 nonstopux*) version_type=nonstopux ;; 12841 *) 12842 if test "$lt_cv_prog_gnu_ld" = yes; then 12843 version_type=linux 12844 else 12845 version_type=irix 12846 fi ;; 12847 esac 12848 need_lib_prefix=no 12849 need_version=no 12850 soname_spec='${libname}${release}${shared_ext}$major' 12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12852 case $host_os in 12853 irix5* | nonstopux*) 12854 libsuff= shlibsuff= 12855 ;; 12856 *) 12857 case $LD in # libtool.m4 will add one of these switches to LD 12858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12859 libsuff= shlibsuff= libmagic=32-bit;; 12860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12861 libsuff=32 shlibsuff=N32 libmagic=N32;; 12862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12864 *) libsuff= shlibsuff= libmagic=never-match;; 12865 esac 12866 ;; 12867 esac 12868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12869 shlibpath_overrides_runpath=no 12870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12872 hardcode_into_libs=yes 12873 ;; 12874 12875# No shared lib support for Linux oldld, aout, or coff. 12876linux*oldld* | linux*aout* | linux*coff*) 12877 dynamic_linker=no 12878 ;; 12879 12880# This must be Linux ELF. 12881linux*) 12882 version_type=linux 12883 need_lib_prefix=no 12884 need_version=no 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12886 soname_spec='${libname}${release}${shared_ext}$major' 12887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12888 shlibpath_var=LD_LIBRARY_PATH 12889 shlibpath_overrides_runpath=no 12890 # This implies no fast_install, which is unacceptable. 12891 # Some rework will be needed to allow for fast_install 12892 # before this can be enabled. 12893 hardcode_into_libs=yes 12894 12895 # Append ld.so.conf contents to the search path 12896 if test -f /etc/ld.so.conf; then 12897 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' ' '` 12898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12899 fi 12900 12901 # We used to test for /lib/ld.so.1 and disable shared libraries on 12902 # powerpc, because MkLinux only supported shared libraries with the 12903 # GNU dynamic linker. Since this was broken with cross compilers, 12904 # most powerpc-linux boxes support dynamic linking these days and 12905 # people can always --disable-shared, the test was removed, and we 12906 # assume the GNU/Linux dynamic linker is in use. 12907 dynamic_linker='GNU/Linux ld.so' 12908 ;; 12909 12910knetbsd*-gnu) 12911 version_type=linux 12912 need_lib_prefix=no 12913 need_version=no 12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12915 soname_spec='${libname}${release}${shared_ext}$major' 12916 shlibpath_var=LD_LIBRARY_PATH 12917 shlibpath_overrides_runpath=no 12918 hardcode_into_libs=yes 12919 dynamic_linker='GNU ld.so' 12920 ;; 12921 12922netbsd*) 12923 version_type=sunos 12924 need_lib_prefix=no 12925 need_version=no 12926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12929 dynamic_linker='NetBSD (a.out) ld.so' 12930 else 12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12932 soname_spec='${libname}${release}${shared_ext}$major' 12933 dynamic_linker='NetBSD ld.elf_so' 12934 fi 12935 shlibpath_var=LD_LIBRARY_PATH 12936 shlibpath_overrides_runpath=yes 12937 hardcode_into_libs=yes 12938 ;; 12939 12940newsos6) 12941 version_type=linux 12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12943 shlibpath_var=LD_LIBRARY_PATH 12944 shlibpath_overrides_runpath=yes 12945 ;; 12946 12947nto-qnx*) 12948 version_type=linux 12949 need_lib_prefix=no 12950 need_version=no 12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12952 soname_spec='${libname}${release}${shared_ext}$major' 12953 shlibpath_var=LD_LIBRARY_PATH 12954 shlibpath_overrides_runpath=yes 12955 ;; 12956 12957openbsd*) 12958 version_type=sunos 12959 sys_lib_dlsearch_path_spec="/usr/lib" 12960 need_lib_prefix=no 12961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12962 case $host_os in 12963 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12964 *) need_version=no ;; 12965 esac 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12968 shlibpath_var=LD_LIBRARY_PATH 12969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12970 case $host_os in 12971 openbsd2.[89] | openbsd2.[89].*) 12972 shlibpath_overrides_runpath=no 12973 ;; 12974 *) 12975 shlibpath_overrides_runpath=yes 12976 ;; 12977 esac 12978 else 12979 shlibpath_overrides_runpath=yes 12980 fi 12981 ;; 12982 12983os2*) 12984 libname_spec='$name' 12985 shrext_cmds=".dll" 12986 need_lib_prefix=no 12987 library_names_spec='$libname${shared_ext} $libname.a' 12988 dynamic_linker='OS/2 ld.exe' 12989 shlibpath_var=LIBPATH 12990 ;; 12991 12992osf3* | osf4* | osf5*) 12993 version_type=osf 12994 need_lib_prefix=no 12995 need_version=no 12996 soname_spec='${libname}${release}${shared_ext}$major' 12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12998 shlibpath_var=LD_LIBRARY_PATH 12999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13001 ;; 13002 13003solaris*) 13004 version_type=linux 13005 need_lib_prefix=no 13006 need_version=no 13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13008 soname_spec='${libname}${release}${shared_ext}$major' 13009 shlibpath_var=LD_LIBRARY_PATH 13010 shlibpath_overrides_runpath=yes 13011 hardcode_into_libs=yes 13012 # ldd complains unless libraries are executable 13013 postinstall_cmds='chmod +x $lib' 13014 ;; 13015 13016sunos4*) 13017 version_type=sunos 13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13020 shlibpath_var=LD_LIBRARY_PATH 13021 shlibpath_overrides_runpath=yes 13022 if test "$with_gnu_ld" = yes; then 13023 need_lib_prefix=no 13024 fi 13025 need_version=yes 13026 ;; 13027 13028sysv4 | sysv4.3*) 13029 version_type=linux 13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13031 soname_spec='${libname}${release}${shared_ext}$major' 13032 shlibpath_var=LD_LIBRARY_PATH 13033 case $host_vendor in 13034 sni) 13035 shlibpath_overrides_runpath=no 13036 need_lib_prefix=no 13037 export_dynamic_flag_spec='${wl}-Blargedynsym' 13038 runpath_var=LD_RUN_PATH 13039 ;; 13040 siemens) 13041 need_lib_prefix=no 13042 ;; 13043 motorola) 13044 need_lib_prefix=no 13045 need_version=no 13046 shlibpath_overrides_runpath=no 13047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13048 ;; 13049 esac 13050 ;; 13051 13052sysv4*MP*) 13053 if test -d /usr/nec ;then 13054 version_type=linux 13055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13056 soname_spec='$libname${shared_ext}.$major' 13057 shlibpath_var=LD_LIBRARY_PATH 13058 fi 13059 ;; 13060 13061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13062 version_type=freebsd-elf 13063 need_lib_prefix=no 13064 need_version=no 13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13066 soname_spec='${libname}${release}${shared_ext}$major' 13067 shlibpath_var=LD_LIBRARY_PATH 13068 hardcode_into_libs=yes 13069 if test "$with_gnu_ld" = yes; then 13070 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13071 shlibpath_overrides_runpath=no 13072 else 13073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13074 shlibpath_overrides_runpath=yes 13075 case $host_os in 13076 sco3.2v5*) 13077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13078 ;; 13079 esac 13080 fi 13081 sys_lib_dlsearch_path_spec='/usr/lib' 13082 ;; 13083 13084uts4*) 13085 version_type=linux 13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13087 soname_spec='${libname}${release}${shared_ext}$major' 13088 shlibpath_var=LD_LIBRARY_PATH 13089 ;; 13090 13091*) 13092 dynamic_linker=no 13093 ;; 13094esac 13095{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13096echo "${ECHO_T}$dynamic_linker" >&6; } 13097test "$dynamic_linker" = no && can_build_shared=no 13098 13099variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13100if test "$GCC" = yes; then 13101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13102fi 13103 13104{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13106hardcode_action_CXX= 13107if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13108 test -n "$runpath_var_CXX" || \ 13109 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13110 13111 # We can hardcode non-existant directories. 13112 if test "$hardcode_direct_CXX" != no && 13113 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13114 # have to relink, otherwise we might link with an installed library 13115 # when we should be linking with a yet-to-be-installed one 13116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13117 test "$hardcode_minus_L_CXX" != no; then 13118 # Linking always hardcodes the temporary library directory. 13119 hardcode_action_CXX=relink 13120 else 13121 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13122 hardcode_action_CXX=immediate 13123 fi 13124else 13125 # We cannot hardcode anything, or else we can only hardcode existing 13126 # directories. 13127 hardcode_action_CXX=unsupported 13128fi 13129{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13130echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13131 13132if test "$hardcode_action_CXX" = relink; then 13133 # Fast installation is not supported 13134 enable_fast_install=no 13135elif test "$shlibpath_overrides_runpath" = yes || 13136 test "$enable_shared" = no; then 13137 # Fast installation is not necessary 13138 enable_fast_install=needless 13139fi 13140 13141 13142# The else clause should only fire when bootstrapping the 13143# libtool distribution, otherwise you forgot to ship ltmain.sh 13144# with your package, and you will get complaints that there are 13145# no rules to generate ltmain.sh. 13146if test -f "$ltmain"; then 13147 # See if we are running on zsh, and set the options which allow our commands through 13148 # without removal of \ escapes. 13149 if test -n "${ZSH_VERSION+set}" ; then 13150 setopt NO_GLOB_SUBST 13151 fi 13152 # Now quote all the things that may contain metacharacters while being 13153 # careful not to overquote the AC_SUBSTed values. We take copies of the 13154 # variables and quote the copies for generation of the libtool script. 13155 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13156 SED SHELL STRIP \ 13157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13159 deplibs_check_method reload_flag reload_cmds need_locks \ 13160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13161 lt_cv_sys_global_symbol_to_c_name_address \ 13162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13163 old_postinstall_cmds old_postuninstall_cmds \ 13164 compiler_CXX \ 13165 CC_CXX \ 13166 LD_CXX \ 13167 lt_prog_compiler_wl_CXX \ 13168 lt_prog_compiler_pic_CXX \ 13169 lt_prog_compiler_static_CXX \ 13170 lt_prog_compiler_no_builtin_flag_CXX \ 13171 export_dynamic_flag_spec_CXX \ 13172 thread_safe_flag_spec_CXX \ 13173 whole_archive_flag_spec_CXX \ 13174 enable_shared_with_static_runtimes_CXX \ 13175 old_archive_cmds_CXX \ 13176 old_archive_from_new_cmds_CXX \ 13177 predep_objects_CXX \ 13178 postdep_objects_CXX \ 13179 predeps_CXX \ 13180 postdeps_CXX \ 13181 compiler_lib_search_path_CXX \ 13182 archive_cmds_CXX \ 13183 archive_expsym_cmds_CXX \ 13184 postinstall_cmds_CXX \ 13185 postuninstall_cmds_CXX \ 13186 old_archive_from_expsyms_cmds_CXX \ 13187 allow_undefined_flag_CXX \ 13188 no_undefined_flag_CXX \ 13189 export_symbols_cmds_CXX \ 13190 hardcode_libdir_flag_spec_CXX \ 13191 hardcode_libdir_flag_spec_ld_CXX \ 13192 hardcode_libdir_separator_CXX \ 13193 hardcode_automatic_CXX \ 13194 module_cmds_CXX \ 13195 module_expsym_cmds_CXX \ 13196 lt_cv_prog_compiler_c_o_CXX \ 13197 exclude_expsyms_CXX \ 13198 include_expsyms_CXX; do 13199 13200 case $var in 13201 old_archive_cmds_CXX | \ 13202 old_archive_from_new_cmds_CXX | \ 13203 archive_cmds_CXX | \ 13204 archive_expsym_cmds_CXX | \ 13205 module_cmds_CXX | \ 13206 module_expsym_cmds_CXX | \ 13207 old_archive_from_expsyms_cmds_CXX | \ 13208 export_symbols_cmds_CXX | \ 13209 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13210 postinstall_cmds | postuninstall_cmds | \ 13211 old_postinstall_cmds | old_postuninstall_cmds | \ 13212 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13213 # Double-quote double-evaled strings. 13214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13215 ;; 13216 *) 13217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13218 ;; 13219 esac 13220 done 13221 13222 case $lt_echo in 13223 *'\$0 --fallback-echo"') 13224 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13225 ;; 13226 esac 13227 13228cfgfile="$ofile" 13229 13230 cat <<__EOF__ >> "$cfgfile" 13231# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13232 13233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13234 13235# Shell to use when invoking shell scripts. 13236SHELL=$lt_SHELL 13237 13238# Whether or not to build shared libraries. 13239build_libtool_libs=$enable_shared 13240 13241# Whether or not to build static libraries. 13242build_old_libs=$enable_static 13243 13244# Whether or not to add -lc for building shared libraries. 13245build_libtool_need_lc=$archive_cmds_need_lc_CXX 13246 13247# Whether or not to disallow shared libs when runtime libs are static 13248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13249 13250# Whether or not to optimize for fast installation. 13251fast_install=$enable_fast_install 13252 13253# The host system. 13254host_alias=$host_alias 13255host=$host 13256host_os=$host_os 13257 13258# The build system. 13259build_alias=$build_alias 13260build=$build 13261build_os=$build_os 13262 13263# An echo program that does not interpret backslashes. 13264echo=$lt_echo 13265 13266# The archiver. 13267AR=$lt_AR 13268AR_FLAGS=$lt_AR_FLAGS 13269 13270# A C compiler. 13271LTCC=$lt_LTCC 13272 13273# LTCC compiler flags. 13274LTCFLAGS=$lt_LTCFLAGS 13275 13276# A language-specific compiler. 13277CC=$lt_compiler_CXX 13278 13279# Is the compiler the GNU C compiler? 13280with_gcc=$GCC_CXX 13281 13282# An ERE matcher. 13283EGREP=$lt_EGREP 13284 13285# The linker used to build libraries. 13286LD=$lt_LD_CXX 13287 13288# Whether we need hard or soft links. 13289LN_S=$lt_LN_S 13290 13291# A BSD-compatible nm program. 13292NM=$lt_NM 13293 13294# A symbol stripping program 13295STRIP=$lt_STRIP 13296 13297# Used to examine libraries when file_magic_cmd begins "file" 13298MAGIC_CMD=$MAGIC_CMD 13299 13300# Used on cygwin: DLL creation program. 13301DLLTOOL="$DLLTOOL" 13302 13303# Used on cygwin: object dumper. 13304OBJDUMP="$OBJDUMP" 13305 13306# Used on cygwin: assembler. 13307AS="$AS" 13308 13309# The name of the directory that contains temporary libtool files. 13310objdir=$objdir 13311 13312# How to create reloadable object files. 13313reload_flag=$lt_reload_flag 13314reload_cmds=$lt_reload_cmds 13315 13316# How to pass a linker flag through the compiler. 13317wl=$lt_lt_prog_compiler_wl_CXX 13318 13319# Object file suffix (normally "o"). 13320objext="$ac_objext" 13321 13322# Old archive suffix (normally "a"). 13323libext="$libext" 13324 13325# Shared library suffix (normally ".so"). 13326shrext_cmds='$shrext_cmds' 13327 13328# Executable file suffix (normally ""). 13329exeext="$exeext" 13330 13331# Additional compiler flags for building library objects. 13332pic_flag=$lt_lt_prog_compiler_pic_CXX 13333pic_mode=$pic_mode 13334 13335# What is the maximum length of a command? 13336max_cmd_len=$lt_cv_sys_max_cmd_len 13337 13338# Does compiler simultaneously support -c and -o options? 13339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13340 13341# Must we lock files when doing compilation? 13342need_locks=$lt_need_locks 13343 13344# Do we need the lib prefix for modules? 13345need_lib_prefix=$need_lib_prefix 13346 13347# Do we need a version for libraries? 13348need_version=$need_version 13349 13350# Whether dlopen is supported. 13351dlopen_support=$enable_dlopen 13352 13353# Whether dlopen of programs is supported. 13354dlopen_self=$enable_dlopen_self 13355 13356# Whether dlopen of statically linked programs is supported. 13357dlopen_self_static=$enable_dlopen_self_static 13358 13359# Compiler flag to prevent dynamic linking. 13360link_static_flag=$lt_lt_prog_compiler_static_CXX 13361 13362# Compiler flag to turn off builtin functions. 13363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13364 13365# Compiler flag to allow reflexive dlopens. 13366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13367 13368# Compiler flag to generate shared objects directly from archives. 13369whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13370 13371# Compiler flag to generate thread-safe objects. 13372thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13373 13374# Library versioning type. 13375version_type=$version_type 13376 13377# Format of library name prefix. 13378libname_spec=$lt_libname_spec 13379 13380# List of archive names. First name is the real one, the rest are links. 13381# The last name is the one that the linker finds with -lNAME. 13382library_names_spec=$lt_library_names_spec 13383 13384# The coded name of the library, if different from the real name. 13385soname_spec=$lt_soname_spec 13386 13387# Commands used to build and install an old-style archive. 13388RANLIB=$lt_RANLIB 13389old_archive_cmds=$lt_old_archive_cmds_CXX 13390old_postinstall_cmds=$lt_old_postinstall_cmds 13391old_postuninstall_cmds=$lt_old_postuninstall_cmds 13392 13393# Create an old-style archive from a shared archive. 13394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13395 13396# Create a temporary old-style archive to link instead of a shared archive. 13397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13398 13399# Commands used to build and install a shared archive. 13400archive_cmds=$lt_archive_cmds_CXX 13401archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13402postinstall_cmds=$lt_postinstall_cmds 13403postuninstall_cmds=$lt_postuninstall_cmds 13404 13405# Commands used to build a loadable module (assumed same as above if empty) 13406module_cmds=$lt_module_cmds_CXX 13407module_expsym_cmds=$lt_module_expsym_cmds_CXX 13408 13409# Commands to strip libraries. 13410old_striplib=$lt_old_striplib 13411striplib=$lt_striplib 13412 13413# Dependencies to place before the objects being linked to create a 13414# shared library. 13415predep_objects=$lt_predep_objects_CXX 13416 13417# Dependencies to place after the objects being linked to create a 13418# shared library. 13419postdep_objects=$lt_postdep_objects_CXX 13420 13421# Dependencies to place before the objects being linked to create a 13422# shared library. 13423predeps=$lt_predeps_CXX 13424 13425# Dependencies to place after the objects being linked to create a 13426# shared library. 13427postdeps=$lt_postdeps_CXX 13428 13429# The library search path used internally by the compiler when linking 13430# a shared library. 13431compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13432 13433# Method to check whether dependent libraries are shared objects. 13434deplibs_check_method=$lt_deplibs_check_method 13435 13436# Command to use when deplibs_check_method == file_magic. 13437file_magic_cmd=$lt_file_magic_cmd 13438 13439# Flag that allows shared libraries with undefined symbols to be built. 13440allow_undefined_flag=$lt_allow_undefined_flag_CXX 13441 13442# Flag that forces no undefined symbols. 13443no_undefined_flag=$lt_no_undefined_flag_CXX 13444 13445# Commands used to finish a libtool library installation in a directory. 13446finish_cmds=$lt_finish_cmds 13447 13448# Same as above, but a single script fragment to be evaled but not shown. 13449finish_eval=$lt_finish_eval 13450 13451# Take the output of nm and produce a listing of raw symbols and C names. 13452global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13453 13454# Transform the output of nm in a proper C declaration 13455global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13456 13457# Transform the output of nm in a C name address pair 13458global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13459 13460# This is the shared library runtime path variable. 13461runpath_var=$runpath_var 13462 13463# This is the shared library path variable. 13464shlibpath_var=$shlibpath_var 13465 13466# Is shlibpath searched before the hard-coded library search path? 13467shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13468 13469# How to hardcode a shared library path into an executable. 13470hardcode_action=$hardcode_action_CXX 13471 13472# Whether we should hardcode library paths into libraries. 13473hardcode_into_libs=$hardcode_into_libs 13474 13475# Flag to hardcode \$libdir into a binary during linking. 13476# This must work even if \$libdir does not exist. 13477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13478 13479# If ld is used when linking, flag to hardcode \$libdir into 13480# a binary during linking. This must work even if \$libdir does 13481# not exist. 13482hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13483 13484# Whether we need a single -rpath flag with a separated argument. 13485hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13486 13487# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13488# resulting binary. 13489hardcode_direct=$hardcode_direct_CXX 13490 13491# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13492# resulting binary. 13493hardcode_minus_L=$hardcode_minus_L_CXX 13494 13495# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13496# the resulting binary. 13497hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13498 13499# Set to yes if building a shared library automatically hardcodes DIR into the library 13500# and all subsequent libraries and executables linked against it. 13501hardcode_automatic=$hardcode_automatic_CXX 13502 13503# Variables whose values should be saved in libtool wrapper scripts and 13504# restored at relink time. 13505variables_saved_for_relink="$variables_saved_for_relink" 13506 13507# Whether libtool must link a program against all its dependency libraries. 13508link_all_deplibs=$link_all_deplibs_CXX 13509 13510# Compile-time system search path for libraries 13511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13512 13513# Run-time system search path for libraries 13514sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13515 13516# Fix the shell variable \$srcfile for the compiler. 13517fix_srcfile_path="$fix_srcfile_path_CXX" 13518 13519# Set to yes if exported symbols are required. 13520always_export_symbols=$always_export_symbols_CXX 13521 13522# The commands to list exported symbols. 13523export_symbols_cmds=$lt_export_symbols_cmds_CXX 13524 13525# The commands to extract the exported symbol list from a shared archive. 13526extract_expsyms_cmds=$lt_extract_expsyms_cmds 13527 13528# Symbols that should not be listed in the preloaded symbols. 13529exclude_expsyms=$lt_exclude_expsyms_CXX 13530 13531# Symbols that must always be exported. 13532include_expsyms=$lt_include_expsyms_CXX 13533 13534# ### END LIBTOOL TAG CONFIG: $tagname 13535 13536__EOF__ 13537 13538 13539else 13540 # If there is no Makefile yet, we rely on a make rule to execute 13541 # `config.status --recheck' to rerun these tests and create the 13542 # libtool script then. 13543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13544 if test -f "$ltmain_in"; then 13545 test -f Makefile && make "$ltmain" 13546 fi 13547fi 13548 13549 13550ac_ext=c 13551ac_cpp='$CPP $CPPFLAGS' 13552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13554ac_compiler_gnu=$ac_cv_c_compiler_gnu 13555 13556CC=$lt_save_CC 13557LDCXX=$LD 13558LD=$lt_save_LD 13559GCC=$lt_save_GCC 13560with_gnu_ldcxx=$with_gnu_ld 13561with_gnu_ld=$lt_save_with_gnu_ld 13562lt_cv_path_LDCXX=$lt_cv_path_LD 13563lt_cv_path_LD=$lt_save_path_LD 13564lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13565lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13566 13567 else 13568 tagname="" 13569 fi 13570 ;; 13571 13572 F77) 13573 if test -n "$F77" && test "X$F77" != "Xno"; then 13574 13575ac_ext=f 13576ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13577ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13578ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13579 13580 13581archive_cmds_need_lc_F77=no 13582allow_undefined_flag_F77= 13583always_export_symbols_F77=no 13584archive_expsym_cmds_F77= 13585export_dynamic_flag_spec_F77= 13586hardcode_direct_F77=no 13587hardcode_libdir_flag_spec_F77= 13588hardcode_libdir_flag_spec_ld_F77= 13589hardcode_libdir_separator_F77= 13590hardcode_minus_L_F77=no 13591hardcode_automatic_F77=no 13592module_cmds_F77= 13593module_expsym_cmds_F77= 13594link_all_deplibs_F77=unknown 13595old_archive_cmds_F77=$old_archive_cmds 13596no_undefined_flag_F77= 13597whole_archive_flag_spec_F77= 13598enable_shared_with_static_runtimes_F77=no 13599 13600# Source file extension for f77 test sources. 13601ac_ext=f 13602 13603# Object file extension for compiled f77 test sources. 13604objext=o 13605objext_F77=$objext 13606 13607# Code to be used in simple compile tests 13608lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13609 13610# Code to be used in simple link tests 13611lt_simple_link_test_code=" program t\n end\n" 13612 13613# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13614 13615# If no C compiler was specified, use CC. 13616LTCC=${LTCC-"$CC"} 13617 13618# If no C compiler flags were specified, use CFLAGS. 13619LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13620 13621# Allow CC to be a program name with arguments. 13622compiler=$CC 13623 13624 13625# save warnings/boilerplate of simple test code 13626ac_outfile=conftest.$ac_objext 13627printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13629_lt_compiler_boilerplate=`cat conftest.err` 13630$rm conftest* 13631 13632ac_outfile=conftest.$ac_objext 13633printf "$lt_simple_link_test_code" >conftest.$ac_ext 13634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13635_lt_linker_boilerplate=`cat conftest.err` 13636$rm conftest* 13637 13638 13639# Allow CC to be a program name with arguments. 13640lt_save_CC="$CC" 13641CC=${F77-"f77"} 13642compiler=$CC 13643compiler_F77=$CC 13644for cc_temp in $compiler""; do 13645 case $cc_temp in 13646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13648 \-*) ;; 13649 *) break;; 13650 esac 13651done 13652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13653 13654 13655{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13656echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13657{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13658echo "${ECHO_T}$can_build_shared" >&6; } 13659 13660{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13661echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13662test "$can_build_shared" = "no" && enable_shared=no 13663 13664# On AIX, shared libraries and static libraries use the same namespace, and 13665# are all built from PIC. 13666case $host_os in 13667aix3*) 13668 test "$enable_shared" = yes && enable_static=no 13669 if test -n "$RANLIB"; then 13670 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13671 postinstall_cmds='$RANLIB $lib' 13672 fi 13673 ;; 13674aix4* | aix5*) 13675 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13676 test "$enable_shared" = yes && enable_static=no 13677 fi 13678 ;; 13679esac 13680{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13681echo "${ECHO_T}$enable_shared" >&6; } 13682 13683{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13684echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13685# Make sure either enable_shared or enable_static is yes. 13686test "$enable_shared" = yes || enable_static=yes 13687{ echo "$as_me:$LINENO: result: $enable_static" >&5 13688echo "${ECHO_T}$enable_static" >&6; } 13689 13690GCC_F77="$G77" 13691LD_F77="$LD" 13692 13693lt_prog_compiler_wl_F77= 13694lt_prog_compiler_pic_F77= 13695lt_prog_compiler_static_F77= 13696 13697{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13698echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13699 13700 if test "$GCC" = yes; then 13701 lt_prog_compiler_wl_F77='-Wl,' 13702 lt_prog_compiler_static_F77='-static' 13703 13704 case $host_os in 13705 aix*) 13706 # All AIX code is PIC. 13707 if test "$host_cpu" = ia64; then 13708 # AIX 5 now supports IA64 processor 13709 lt_prog_compiler_static_F77='-Bstatic' 13710 fi 13711 ;; 13712 13713 amigaos*) 13714 # FIXME: we need at least 68020 code to build shared libraries, but 13715 # adding the `-m68020' flag to GCC prevents building anything better, 13716 # like `-m68040'. 13717 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13718 ;; 13719 13720 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13721 # PIC is the default for these OSes. 13722 ;; 13723 13724 mingw* | pw32* | os2*) 13725 # This hack is so that the source file can tell whether it is being 13726 # built for inclusion in a dll (and should export symbols for example). 13727 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13728 ;; 13729 13730 darwin* | rhapsody*) 13731 # PIC is the default on this platform 13732 # Common symbols not allowed in MH_DYLIB files 13733 lt_prog_compiler_pic_F77='-fno-common' 13734 ;; 13735 13736 interix3*) 13737 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13738 # Instead, we relocate shared libraries at runtime. 13739 ;; 13740 13741 msdosdjgpp*) 13742 # Just because we use GCC doesn't mean we suddenly get shared libraries 13743 # on systems that don't support them. 13744 lt_prog_compiler_can_build_shared_F77=no 13745 enable_shared=no 13746 ;; 13747 13748 sysv4*MP*) 13749 if test -d /usr/nec; then 13750 lt_prog_compiler_pic_F77=-Kconform_pic 13751 fi 13752 ;; 13753 13754 hpux*) 13755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13756 # not for PA HP-UX. 13757 case $host_cpu in 13758 hppa*64*|ia64*) 13759 # +Z the default 13760 ;; 13761 *) 13762 lt_prog_compiler_pic_F77='-fPIC' 13763 ;; 13764 esac 13765 ;; 13766 13767 *) 13768 lt_prog_compiler_pic_F77='-fPIC' 13769 ;; 13770 esac 13771 else 13772 # PORTME Check for flag to pass linker flags through the system compiler. 13773 case $host_os in 13774 aix*) 13775 lt_prog_compiler_wl_F77='-Wl,' 13776 if test "$host_cpu" = ia64; then 13777 # AIX 5 now supports IA64 processor 13778 lt_prog_compiler_static_F77='-Bstatic' 13779 else 13780 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13781 fi 13782 ;; 13783 darwin*) 13784 # PIC is the default on this platform 13785 # Common symbols not allowed in MH_DYLIB files 13786 case $cc_basename in 13787 xlc*) 13788 lt_prog_compiler_pic_F77='-qnocommon' 13789 lt_prog_compiler_wl_F77='-Wl,' 13790 ;; 13791 esac 13792 ;; 13793 13794 mingw* | pw32* | os2*) 13795 # This hack is so that the source file can tell whether it is being 13796 # built for inclusion in a dll (and should export symbols for example). 13797 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13798 ;; 13799 13800 hpux9* | hpux10* | hpux11*) 13801 lt_prog_compiler_wl_F77='-Wl,' 13802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13803 # not for PA HP-UX. 13804 case $host_cpu in 13805 hppa*64*|ia64*) 13806 # +Z the default 13807 ;; 13808 *) 13809 lt_prog_compiler_pic_F77='+Z' 13810 ;; 13811 esac 13812 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13813 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13814 ;; 13815 13816 irix5* | irix6* | nonstopux*) 13817 lt_prog_compiler_wl_F77='-Wl,' 13818 # PIC (with -KPIC) is the default. 13819 lt_prog_compiler_static_F77='-non_shared' 13820 ;; 13821 13822 newsos6) 13823 lt_prog_compiler_pic_F77='-KPIC' 13824 lt_prog_compiler_static_F77='-Bstatic' 13825 ;; 13826 13827 linux*) 13828 case $cc_basename in 13829 icc* | ecc*) 13830 lt_prog_compiler_wl_F77='-Wl,' 13831 lt_prog_compiler_pic_F77='-KPIC' 13832 lt_prog_compiler_static_F77='-static' 13833 ;; 13834 pgcc* | pgf77* | pgf90* | pgf95*) 13835 # Portland Group compilers (*not* the Pentium gcc compiler, 13836 # which looks to be a dead project) 13837 lt_prog_compiler_wl_F77='-Wl,' 13838 lt_prog_compiler_pic_F77='-fpic' 13839 lt_prog_compiler_static_F77='-Bstatic' 13840 ;; 13841 ccc*) 13842 lt_prog_compiler_wl_F77='-Wl,' 13843 # All Alpha code is PIC. 13844 lt_prog_compiler_static_F77='-non_shared' 13845 ;; 13846 esac 13847 ;; 13848 13849 osf3* | osf4* | osf5*) 13850 lt_prog_compiler_wl_F77='-Wl,' 13851 # All OSF/1 code is PIC. 13852 lt_prog_compiler_static_F77='-non_shared' 13853 ;; 13854 13855 solaris*) 13856 lt_prog_compiler_pic_F77='-KPIC' 13857 lt_prog_compiler_static_F77='-Bstatic' 13858 case $cc_basename in 13859 f77* | f90* | f95*) 13860 lt_prog_compiler_wl_F77='-Qoption ld ';; 13861 *) 13862 lt_prog_compiler_wl_F77='-Wl,';; 13863 esac 13864 ;; 13865 13866 sunos4*) 13867 lt_prog_compiler_wl_F77='-Qoption ld ' 13868 lt_prog_compiler_pic_F77='-PIC' 13869 lt_prog_compiler_static_F77='-Bstatic' 13870 ;; 13871 13872 sysv4 | sysv4.2uw2* | sysv4.3*) 13873 lt_prog_compiler_wl_F77='-Wl,' 13874 lt_prog_compiler_pic_F77='-KPIC' 13875 lt_prog_compiler_static_F77='-Bstatic' 13876 ;; 13877 13878 sysv4*MP*) 13879 if test -d /usr/nec ;then 13880 lt_prog_compiler_pic_F77='-Kconform_pic' 13881 lt_prog_compiler_static_F77='-Bstatic' 13882 fi 13883 ;; 13884 13885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13886 lt_prog_compiler_wl_F77='-Wl,' 13887 lt_prog_compiler_pic_F77='-KPIC' 13888 lt_prog_compiler_static_F77='-Bstatic' 13889 ;; 13890 13891 unicos*) 13892 lt_prog_compiler_wl_F77='-Wl,' 13893 lt_prog_compiler_can_build_shared_F77=no 13894 ;; 13895 13896 uts4*) 13897 lt_prog_compiler_pic_F77='-pic' 13898 lt_prog_compiler_static_F77='-Bstatic' 13899 ;; 13900 13901 *) 13902 lt_prog_compiler_can_build_shared_F77=no 13903 ;; 13904 esac 13905 fi 13906 13907{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13908echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13909 13910# 13911# Check to make sure the PIC flag actually works. 13912# 13913if test -n "$lt_prog_compiler_pic_F77"; then 13914 13915{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13916echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13917if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13918 echo $ECHO_N "(cached) $ECHO_C" >&6 13919else 13920 lt_prog_compiler_pic_works_F77=no 13921 ac_outfile=conftest.$ac_objext 13922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13923 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13924 # Insert the option either (1) after the last *FLAGS variable, or 13925 # (2) before a word containing "conftest.", or (3) at the end. 13926 # Note that $ac_compile itself does not contain backslashes and begins 13927 # with a dollar sign (not a hyphen), so the echo should work correctly. 13928 # The option is referenced via a variable to avoid confusing sed. 13929 lt_compile=`echo "$ac_compile" | $SED \ 13930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13932 -e 's:$: $lt_compiler_flag:'` 13933 (eval echo "\"\$as_me:13933: $lt_compile\"" >&5) 13934 (eval "$lt_compile" 2>conftest.err) 13935 ac_status=$? 13936 cat conftest.err >&5 13937 echo "$as_me:13937: \$? = $ac_status" >&5 13938 if (exit $ac_status) && test -s "$ac_outfile"; then 13939 # The compiler can only warn and ignore the option if not recognized 13940 # So say no if there are warnings other than the usual output. 13941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13943 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13944 lt_prog_compiler_pic_works_F77=yes 13945 fi 13946 fi 13947 $rm conftest* 13948 13949fi 13950{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13951echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13952 13953if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13954 case $lt_prog_compiler_pic_F77 in 13955 "" | " "*) ;; 13956 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13957 esac 13958else 13959 lt_prog_compiler_pic_F77= 13960 lt_prog_compiler_can_build_shared_F77=no 13961fi 13962 13963fi 13964case $host_os in 13965 # For platforms which do not support PIC, -DPIC is meaningless: 13966 *djgpp*) 13967 lt_prog_compiler_pic_F77= 13968 ;; 13969 *) 13970 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13971 ;; 13972esac 13973 13974# 13975# Check to make sure the static flag actually works. 13976# 13977wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13978{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13979echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13980if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13981 echo $ECHO_N "(cached) $ECHO_C" >&6 13982else 13983 lt_prog_compiler_static_works_F77=no 13984 save_LDFLAGS="$LDFLAGS" 13985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13986 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13988 # The linker can only warn and ignore the option if not recognized 13989 # So say no if there are warnings 13990 if test -s conftest.err; then 13991 # Append any errors to the config.log. 13992 cat conftest.err 1>&5 13993 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13995 if diff conftest.exp conftest.er2 >/dev/null; then 13996 lt_prog_compiler_static_works_F77=yes 13997 fi 13998 else 13999 lt_prog_compiler_static_works_F77=yes 14000 fi 14001 fi 14002 $rm conftest* 14003 LDFLAGS="$save_LDFLAGS" 14004 14005fi 14006{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14007echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14008 14009if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14010 : 14011else 14012 lt_prog_compiler_static_F77= 14013fi 14014 14015 14016{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14017echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14018if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14019 echo $ECHO_N "(cached) $ECHO_C" >&6 14020else 14021 lt_cv_prog_compiler_c_o_F77=no 14022 $rm -r conftest 2>/dev/null 14023 mkdir conftest 14024 cd conftest 14025 mkdir out 14026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14027 14028 lt_compiler_flag="-o out/conftest2.$ac_objext" 14029 # Insert the option either (1) after the last *FLAGS variable, or 14030 # (2) before a word containing "conftest.", or (3) at the end. 14031 # Note that $ac_compile itself does not contain backslashes and begins 14032 # with a dollar sign (not a hyphen), so the echo should work correctly. 14033 lt_compile=`echo "$ac_compile" | $SED \ 14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14036 -e 's:$: $lt_compiler_flag:'` 14037 (eval echo "\"\$as_me:14037: $lt_compile\"" >&5) 14038 (eval "$lt_compile" 2>out/conftest.err) 14039 ac_status=$? 14040 cat out/conftest.err >&5 14041 echo "$as_me:14041: \$? = $ac_status" >&5 14042 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14043 then 14044 # The compiler can only warn and ignore the option if not recognized 14045 # So say no if there are warnings 14046 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14049 lt_cv_prog_compiler_c_o_F77=yes 14050 fi 14051 fi 14052 chmod u+w . 2>&5 14053 $rm conftest* 14054 # SGI C++ compiler will create directory out/ii_files/ for 14055 # template instantiation 14056 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14057 $rm out/* && rmdir out 14058 cd .. 14059 rmdir conftest 14060 $rm conftest* 14061 14062fi 14063{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14064echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14065 14066 14067hard_links="nottested" 14068if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14069 # do not overwrite the value of need_locks provided by the user 14070 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14071echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14072 hard_links=yes 14073 $rm conftest* 14074 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14075 touch conftest.a 14076 ln conftest.a conftest.b 2>&5 || hard_links=no 14077 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14078 { echo "$as_me:$LINENO: result: $hard_links" >&5 14079echo "${ECHO_T}$hard_links" >&6; } 14080 if test "$hard_links" = no; then 14081 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14082echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14083 need_locks=warn 14084 fi 14085else 14086 need_locks=no 14087fi 14088 14089{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14090echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14091 14092 runpath_var= 14093 allow_undefined_flag_F77= 14094 enable_shared_with_static_runtimes_F77=no 14095 archive_cmds_F77= 14096 archive_expsym_cmds_F77= 14097 old_archive_From_new_cmds_F77= 14098 old_archive_from_expsyms_cmds_F77= 14099 export_dynamic_flag_spec_F77= 14100 whole_archive_flag_spec_F77= 14101 thread_safe_flag_spec_F77= 14102 hardcode_libdir_flag_spec_F77= 14103 hardcode_libdir_flag_spec_ld_F77= 14104 hardcode_libdir_separator_F77= 14105 hardcode_direct_F77=no 14106 hardcode_minus_L_F77=no 14107 hardcode_shlibpath_var_F77=unsupported 14108 link_all_deplibs_F77=unknown 14109 hardcode_automatic_F77=no 14110 module_cmds_F77= 14111 module_expsym_cmds_F77= 14112 always_export_symbols_F77=no 14113 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14114 # include_expsyms should be a list of space-separated symbols to be *always* 14115 # included in the symbol list 14116 include_expsyms_F77= 14117 # exclude_expsyms can be an extended regexp of symbols to exclude 14118 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14120 # as well as any symbol that contains `d'. 14121 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14123 # platforms (ab)use it in PIC code, but their linkers get confused if 14124 # the symbol is explicitly referenced. Since portable code cannot 14125 # rely on this symbol name, it's probably fine to never include it in 14126 # preloaded symbol tables. 14127 extract_expsyms_cmds= 14128 # Just being paranoid about ensuring that cc_basename is set. 14129 for cc_temp in $compiler""; do 14130 case $cc_temp in 14131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14133 \-*) ;; 14134 *) break;; 14135 esac 14136done 14137cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14138 14139 case $host_os in 14140 cygwin* | mingw* | pw32*) 14141 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14142 # When not using gcc, we currently assume that we are using 14143 # Microsoft Visual C++. 14144 if test "$GCC" != yes; then 14145 with_gnu_ld=no 14146 fi 14147 ;; 14148 interix*) 14149 # we just hope/assume this is gcc and not c89 (= MSVC++) 14150 with_gnu_ld=yes 14151 ;; 14152 openbsd*) 14153 with_gnu_ld=no 14154 ;; 14155 esac 14156 14157 ld_shlibs_F77=yes 14158 if test "$with_gnu_ld" = yes; then 14159 # If archive_cmds runs LD, not CC, wlarc should be empty 14160 wlarc='${wl}' 14161 14162 # Set some defaults for GNU ld with shared library support. These 14163 # are reset later if shared libraries are not supported. Putting them 14164 # here allows them to be overridden if necessary. 14165 runpath_var=LD_RUN_PATH 14166 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14167 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14168 # ancient GNU ld didn't support --whole-archive et. al. 14169 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14170 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14171 else 14172 whole_archive_flag_spec_F77= 14173 fi 14174 supports_anon_versioning=no 14175 case `$LD -v 2>/dev/null` in 14176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14179 *\ 2.11.*) ;; # other 2.11 versions 14180 *) supports_anon_versioning=yes ;; 14181 esac 14182 14183 # See if GNU ld supports shared libraries. 14184 case $host_os in 14185 aix3* | aix4* | aix5*) 14186 # On AIX/PPC, the GNU linker is very broken 14187 if test "$host_cpu" != ia64; then 14188 ld_shlibs_F77=no 14189 cat <<EOF 1>&2 14190 14191*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14192*** to be unable to reliably create shared libraries on AIX. 14193*** Therefore, libtool is disabling shared libraries support. If you 14194*** really care for shared libraries, you may want to modify your PATH 14195*** so that a non-GNU linker is found, and then restart. 14196 14197EOF 14198 fi 14199 ;; 14200 14201 amigaos*) 14202 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)' 14203 hardcode_libdir_flag_spec_F77='-L$libdir' 14204 hardcode_minus_L_F77=yes 14205 14206 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14207 # that the semantics of dynamic libraries on AmigaOS, at least up 14208 # to version 4, is to share data among multiple programs linked 14209 # with the same dynamic library. Since this doesn't match the 14210 # behavior of shared libraries on other platforms, we can't use 14211 # them. 14212 ld_shlibs_F77=no 14213 ;; 14214 14215 beos*) 14216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14217 allow_undefined_flag_F77=unsupported 14218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14219 # support --undefined. This deserves some investigation. FIXME 14220 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14221 else 14222 ld_shlibs_F77=no 14223 fi 14224 ;; 14225 14226 cygwin* | mingw* | pw32*) 14227 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14228 # as there is no search path for DLLs. 14229 hardcode_libdir_flag_spec_F77='-L$libdir' 14230 allow_undefined_flag_F77=unsupported 14231 always_export_symbols_F77=no 14232 enable_shared_with_static_runtimes_F77=yes 14233 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14234 14235 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14236 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14237 # If the export-symbols file already is a .def file (1st line 14238 # is EXPORTS), use it as is; otherwise, prepend... 14239 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14240 cp $export_symbols $output_objdir/$soname.def; 14241 else 14242 echo EXPORTS > $output_objdir/$soname.def; 14243 cat $export_symbols >> $output_objdir/$soname.def; 14244 fi~ 14245 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14246 else 14247 ld_shlibs_F77=no 14248 fi 14249 ;; 14250 14251 interix3*) 14252 hardcode_direct_F77=no 14253 hardcode_shlibpath_var_F77=no 14254 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14255 export_dynamic_flag_spec_F77='${wl}-E' 14256 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14257 # Instead, shared libraries are loaded at an image base (0x10000000 by 14258 # default) and relocated if they conflict, which is a slow very memory 14259 # consuming and fragmenting process. To avoid this, we pick a random, 14260 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14261 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14262 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' 14263 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' 14264 ;; 14265 14266 linux*) 14267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14268 tmp_addflag= 14269 case $cc_basename,$host_cpu in 14270 pgcc*) # Portland Group C compiler 14271 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' 14272 tmp_addflag=' $pic_flag' 14273 ;; 14274 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14275 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' 14276 tmp_addflag=' $pic_flag -Mnomain' ;; 14277 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14278 tmp_addflag=' -i_dynamic' ;; 14279 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14280 tmp_addflag=' -i_dynamic -nofor_main' ;; 14281 ifc* | ifort*) # Intel Fortran compiler 14282 tmp_addflag=' -nofor_main' ;; 14283 esac 14284 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14285 14286 if test $supports_anon_versioning = yes; then 14287 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14289 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14290 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14291 fi 14292 else 14293 ld_shlibs_F77=no 14294 fi 14295 ;; 14296 14297 netbsd*) 14298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14299 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14300 wlarc= 14301 else 14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14304 fi 14305 ;; 14306 14307 solaris*) 14308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14309 ld_shlibs_F77=no 14310 cat <<EOF 1>&2 14311 14312*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14313*** create shared libraries on Solaris systems. Therefore, libtool 14314*** is disabling shared libraries support. We urge you to upgrade GNU 14315*** binutils to release 2.9.1 or newer. Another option is to modify 14316*** your PATH or compiler configuration so that the native linker is 14317*** used, and then restart. 14318 14319EOF 14320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14322 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14323 else 14324 ld_shlibs_F77=no 14325 fi 14326 ;; 14327 14328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14329 case `$LD -v 2>&1` in 14330 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14331 ld_shlibs_F77=no 14332 cat <<_LT_EOF 1>&2 14333 14334*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14335*** reliably create shared libraries on SCO systems. Therefore, libtool 14336*** is disabling shared libraries support. We urge you to upgrade GNU 14337*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14338*** your PATH or compiler configuration so that the native linker is 14339*** used, and then restart. 14340 14341_LT_EOF 14342 ;; 14343 *) 14344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14345 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14346 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14347 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14348 else 14349 ld_shlibs_F77=no 14350 fi 14351 ;; 14352 esac 14353 ;; 14354 14355 sunos4*) 14356 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14357 wlarc= 14358 hardcode_direct_F77=yes 14359 hardcode_shlibpath_var_F77=no 14360 ;; 14361 14362 *) 14363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14366 else 14367 ld_shlibs_F77=no 14368 fi 14369 ;; 14370 esac 14371 14372 if test "$ld_shlibs_F77" = no; then 14373 runpath_var= 14374 hardcode_libdir_flag_spec_F77= 14375 export_dynamic_flag_spec_F77= 14376 whole_archive_flag_spec_F77= 14377 fi 14378 else 14379 # PORTME fill in a description of your system's linker (not GNU ld) 14380 case $host_os in 14381 aix3*) 14382 allow_undefined_flag_F77=unsupported 14383 always_export_symbols_F77=yes 14384 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' 14385 # Note: this linker hardcodes the directories in LIBPATH if there 14386 # are no directories specified by -L. 14387 hardcode_minus_L_F77=yes 14388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14389 # Neither direct hardcoding nor static linking is supported with a 14390 # broken collect2. 14391 hardcode_direct_F77=unsupported 14392 fi 14393 ;; 14394 14395 aix4* | aix5*) 14396 if test "$host_cpu" = ia64; then 14397 # On IA64, the linker does run time linking by default, so we don't 14398 # have to do anything special. 14399 aix_use_runtimelinking=no 14400 exp_sym_flag='-Bexport' 14401 no_entry_flag="" 14402 else 14403 # If we're using GNU nm, then we don't want the "-C" option. 14404 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14406 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' 14407 else 14408 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' 14409 fi 14410 aix_use_runtimelinking=no 14411 14412 # Test if we are trying to use run time linking or normal 14413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14414 # need to do runtime linking. 14415 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14416 for ld_flag in $LDFLAGS; do 14417 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14418 aix_use_runtimelinking=yes 14419 break 14420 fi 14421 done 14422 ;; 14423 esac 14424 14425 exp_sym_flag='-bexport' 14426 no_entry_flag='-bnoentry' 14427 fi 14428 14429 # When large executables or shared objects are built, AIX ld can 14430 # have problems creating the table of contents. If linking a library 14431 # or program results in "error TOC overflow" add -mminimal-toc to 14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14434 14435 archive_cmds_F77='' 14436 hardcode_direct_F77=yes 14437 hardcode_libdir_separator_F77=':' 14438 link_all_deplibs_F77=yes 14439 14440 if test "$GCC" = yes; then 14441 case $host_os in aix4.[012]|aix4.[012].*) 14442 # We only want to do this on AIX 4.2 and lower, the check 14443 # below for broken collect2 doesn't work under 4.3+ 14444 collect2name=`${CC} -print-prog-name=collect2` 14445 if test -f "$collect2name" && \ 14446 strings "$collect2name" | grep resolve_lib_name >/dev/null 14447 then 14448 # We have reworked collect2 14449 hardcode_direct_F77=yes 14450 else 14451 # We have old collect2 14452 hardcode_direct_F77=unsupported 14453 # It fails to find uninstalled libraries when the uninstalled 14454 # path is not listed in the libpath. Setting hardcode_minus_L 14455 # to unsupported forces relinking 14456 hardcode_minus_L_F77=yes 14457 hardcode_libdir_flag_spec_F77='-L$libdir' 14458 hardcode_libdir_separator_F77= 14459 fi 14460 ;; 14461 esac 14462 shared_flag='-shared' 14463 if test "$aix_use_runtimelinking" = yes; then 14464 shared_flag="$shared_flag "'${wl}-G' 14465 fi 14466 else 14467 # not using gcc 14468 if test "$host_cpu" = ia64; then 14469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14470 # chokes on -Wl,-G. The following line is correct: 14471 shared_flag='-G' 14472 else 14473 if test "$aix_use_runtimelinking" = yes; then 14474 shared_flag='${wl}-G' 14475 else 14476 shared_flag='${wl}-bM:SRE' 14477 fi 14478 fi 14479 fi 14480 14481 # It seems that -bexpall does not export symbols beginning with 14482 # underscore (_), so it is better to generate a list of symbols to export. 14483 always_export_symbols_F77=yes 14484 if test "$aix_use_runtimelinking" = yes; then 14485 # Warning - without using the other runtime loading flags (-brtl), 14486 # -berok will link without error, but may produce a broken library. 14487 allow_undefined_flag_F77='-berok' 14488 # Determine the default libpath from the value encoded in an empty executable. 14489 cat >conftest.$ac_ext <<_ACEOF 14490 program main 14491 14492 end 14493_ACEOF 14494rm -f conftest.$ac_objext conftest$ac_exeext 14495if { (ac_try="$ac_link" 14496case "(($ac_try" in 14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14498 *) ac_try_echo=$ac_try;; 14499esac 14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14501 (eval "$ac_link") 2>conftest.er1 14502 ac_status=$? 14503 grep -v '^ *+' conftest.er1 >conftest.err 14504 rm -f conftest.er1 14505 cat conftest.err >&5 14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14507 (exit $ac_status); } && { 14508 test -z "$ac_f77_werror_flag" || 14509 test ! -s conftest.err 14510 } && test -s conftest$ac_exeext && 14511 $as_test_x conftest$ac_exeext; then 14512 14513aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14514}'` 14515# Check for a 64-bit object if we didn't find anything. 14516if 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; } 14517}'`; fi 14518else 14519 echo "$as_me: failed program was:" >&5 14520sed 's/^/| /' conftest.$ac_ext >&5 14521 14522 14523fi 14524 14525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14526 conftest$ac_exeext conftest.$ac_ext 14527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14528 14529 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14530 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" 14531 else 14532 if test "$host_cpu" = ia64; then 14533 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14534 allow_undefined_flag_F77="-z nodefs" 14535 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" 14536 else 14537 # Determine the default libpath from the value encoded in an empty executable. 14538 cat >conftest.$ac_ext <<_ACEOF 14539 program main 14540 14541 end 14542_ACEOF 14543rm -f conftest.$ac_objext conftest$ac_exeext 14544if { (ac_try="$ac_link" 14545case "(($ac_try" in 14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14547 *) ac_try_echo=$ac_try;; 14548esac 14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14550 (eval "$ac_link") 2>conftest.er1 14551 ac_status=$? 14552 grep -v '^ *+' conftest.er1 >conftest.err 14553 rm -f conftest.er1 14554 cat conftest.err >&5 14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14556 (exit $ac_status); } && { 14557 test -z "$ac_f77_werror_flag" || 14558 test ! -s conftest.err 14559 } && test -s conftest$ac_exeext && 14560 $as_test_x conftest$ac_exeext; then 14561 14562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14563}'` 14564# Check for a 64-bit object if we didn't find anything. 14565if 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; } 14566}'`; fi 14567else 14568 echo "$as_me: failed program was:" >&5 14569sed 's/^/| /' conftest.$ac_ext >&5 14570 14571 14572fi 14573 14574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14575 conftest$ac_exeext conftest.$ac_ext 14576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14577 14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14579 # Warning - without using the other run time loading flags, 14580 # -berok will link without error, but may produce a broken library. 14581 no_undefined_flag_F77=' ${wl}-bernotok' 14582 allow_undefined_flag_F77=' ${wl}-berok' 14583 # Exported symbols can be pulled into shared objects from archives 14584 whole_archive_flag_spec_F77='$convenience' 14585 archive_cmds_need_lc_F77=yes 14586 # This is similar to how AIX traditionally builds its shared libraries. 14587 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' 14588 fi 14589 fi 14590 ;; 14591 14592 amigaos*) 14593 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)' 14594 hardcode_libdir_flag_spec_F77='-L$libdir' 14595 hardcode_minus_L_F77=yes 14596 # see comment about different semantics on the GNU ld section 14597 ld_shlibs_F77=no 14598 ;; 14599 14600 bsdi[45]*) 14601 export_dynamic_flag_spec_F77=-rdynamic 14602 ;; 14603 14604 cygwin* | mingw* | pw32*) 14605 # When not using gcc, we currently assume that we are using 14606 # Microsoft Visual C++. 14607 # hardcode_libdir_flag_spec is actually meaningless, as there is 14608 # no search path for DLLs. 14609 hardcode_libdir_flag_spec_F77=' ' 14610 allow_undefined_flag_F77=unsupported 14611 # Tell ltmain to make .lib files, not .a files. 14612 libext=lib 14613 # Tell ltmain to make .dll files, not .so files. 14614 shrext_cmds=".dll" 14615 # FIXME: Setting linknames here is a bad hack. 14616 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14617 # The linker will automatically build a .lib file if we build a DLL. 14618 old_archive_From_new_cmds_F77='true' 14619 # FIXME: Should let the user specify the lib program. 14620 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14621 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14622 enable_shared_with_static_runtimes_F77=yes 14623 ;; 14624 14625 darwin* | rhapsody*) 14626 case $host_os in 14627 rhapsody* | darwin1.[012]) 14628 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14629 ;; 14630 *) # Darwin 1.3 on 14631 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14632 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14633 else 14634 case ${MACOSX_DEPLOYMENT_TARGET} in 14635 10.[012]) 14636 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14637 ;; 14638 10.*) 14639 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14640 ;; 14641 esac 14642 fi 14643 ;; 14644 esac 14645 archive_cmds_need_lc_F77=no 14646 hardcode_direct_F77=no 14647 hardcode_automatic_F77=yes 14648 hardcode_shlibpath_var_F77=unsupported 14649 whole_archive_flag_spec_F77='' 14650 link_all_deplibs_F77=yes 14651 if test "$GCC" = yes ; then 14652 output_verbose_link_cmd='echo' 14653 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14654 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14655 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14656 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}' 14657 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}' 14658 else 14659 case $cc_basename in 14660 xlc*) 14661 output_verbose_link_cmd='echo' 14662 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14663 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14664 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14665 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}' 14666 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}' 14667 ;; 14668 *) 14669 ld_shlibs_F77=no 14670 ;; 14671 esac 14672 fi 14673 ;; 14674 14675 dgux*) 14676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14677 hardcode_libdir_flag_spec_F77='-L$libdir' 14678 hardcode_shlibpath_var_F77=no 14679 ;; 14680 14681 freebsd1*) 14682 ld_shlibs_F77=no 14683 ;; 14684 14685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14686 # support. Future versions do this automatically, but an explicit c++rt0.o 14687 # does not break anything, and helps significantly (at the cost of a little 14688 # extra space). 14689 freebsd2.2*) 14690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14691 hardcode_libdir_flag_spec_F77='-R$libdir' 14692 hardcode_direct_F77=yes 14693 hardcode_shlibpath_var_F77=no 14694 ;; 14695 14696 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14697 freebsd2*) 14698 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14699 hardcode_direct_F77=yes 14700 hardcode_minus_L_F77=yes 14701 hardcode_shlibpath_var_F77=no 14702 ;; 14703 14704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14705 freebsd* | kfreebsd*-gnu | dragonfly*) 14706 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14707 hardcode_libdir_flag_spec_F77='-R$libdir' 14708 hardcode_direct_F77=yes 14709 hardcode_shlibpath_var_F77=no 14710 ;; 14711 14712 hpux9*) 14713 if test "$GCC" = yes; then 14714 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' 14715 else 14716 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' 14717 fi 14718 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14719 hardcode_libdir_separator_F77=: 14720 hardcode_direct_F77=yes 14721 14722 # hardcode_minus_L: Not really in the search PATH, 14723 # but as the default location of the library. 14724 hardcode_minus_L_F77=yes 14725 export_dynamic_flag_spec_F77='${wl}-E' 14726 ;; 14727 14728 hpux10*) 14729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14730 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14731 else 14732 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14733 fi 14734 if test "$with_gnu_ld" = no; then 14735 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14736 hardcode_libdir_separator_F77=: 14737 14738 hardcode_direct_F77=yes 14739 export_dynamic_flag_spec_F77='${wl}-E' 14740 14741 # hardcode_minus_L: Not really in the search PATH, 14742 # but as the default location of the library. 14743 hardcode_minus_L_F77=yes 14744 fi 14745 ;; 14746 14747 hpux11*) 14748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14749 case $host_cpu in 14750 hppa*64*) 14751 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14752 ;; 14753 ia64*) 14754 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14755 ;; 14756 *) 14757 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14758 ;; 14759 esac 14760 else 14761 case $host_cpu in 14762 hppa*64*) 14763 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14764 ;; 14765 ia64*) 14766 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14767 ;; 14768 *) 14769 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14770 ;; 14771 esac 14772 fi 14773 if test "$with_gnu_ld" = no; then 14774 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14775 hardcode_libdir_separator_F77=: 14776 14777 case $host_cpu in 14778 hppa*64*|ia64*) 14779 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14780 hardcode_direct_F77=no 14781 hardcode_shlibpath_var_F77=no 14782 ;; 14783 *) 14784 hardcode_direct_F77=yes 14785 export_dynamic_flag_spec_F77='${wl}-E' 14786 14787 # hardcode_minus_L: Not really in the search PATH, 14788 # but as the default location of the library. 14789 hardcode_minus_L_F77=yes 14790 ;; 14791 esac 14792 fi 14793 ;; 14794 14795 irix5* | irix6* | nonstopux*) 14796 if test "$GCC" = yes; then 14797 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' 14798 else 14799 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' 14800 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14801 fi 14802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14803 hardcode_libdir_separator_F77=: 14804 link_all_deplibs_F77=yes 14805 ;; 14806 14807 netbsd*) 14808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14810 else 14811 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14812 fi 14813 hardcode_libdir_flag_spec_F77='-R$libdir' 14814 hardcode_direct_F77=yes 14815 hardcode_shlibpath_var_F77=no 14816 ;; 14817 14818 newsos6) 14819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14820 hardcode_direct_F77=yes 14821 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14822 hardcode_libdir_separator_F77=: 14823 hardcode_shlibpath_var_F77=no 14824 ;; 14825 14826 openbsd*) 14827 hardcode_direct_F77=yes 14828 hardcode_shlibpath_var_F77=no 14829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14830 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14831 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14832 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14833 export_dynamic_flag_spec_F77='${wl}-E' 14834 else 14835 case $host_os in 14836 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14837 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14838 hardcode_libdir_flag_spec_F77='-R$libdir' 14839 ;; 14840 *) 14841 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14842 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14843 ;; 14844 esac 14845 fi 14846 ;; 14847 14848 os2*) 14849 hardcode_libdir_flag_spec_F77='-L$libdir' 14850 hardcode_minus_L_F77=yes 14851 allow_undefined_flag_F77=unsupported 14852 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' 14853 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14854 ;; 14855 14856 osf3*) 14857 if test "$GCC" = yes; then 14858 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14859 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' 14860 else 14861 allow_undefined_flag_F77=' -expect_unresolved \*' 14862 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' 14863 fi 14864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14865 hardcode_libdir_separator_F77=: 14866 ;; 14867 14868 osf4* | osf5*) # as osf3* with the addition of -msym flag 14869 if test "$GCC" = yes; then 14870 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14871 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' 14872 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14873 else 14874 allow_undefined_flag_F77=' -expect_unresolved \*' 14875 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' 14876 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~ 14877 $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' 14878 14879 # Both c and cxx compiler support -rpath directly 14880 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14881 fi 14882 hardcode_libdir_separator_F77=: 14883 ;; 14884 14885 solaris*) 14886 no_undefined_flag_F77=' -z text' 14887 if test "$GCC" = yes; then 14888 wlarc='${wl}' 14889 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14890 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14891 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14892 else 14893 wlarc='' 14894 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14895 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14897 fi 14898 hardcode_libdir_flag_spec_F77='-R$libdir' 14899 hardcode_shlibpath_var_F77=no 14900 case $host_os in 14901 solaris2.[0-5] | solaris2.[0-5].*) ;; 14902 *) 14903 # The compiler driver will combine linker options so we 14904 # cannot just pass the convience library names through 14905 # without $wl, iff we do not link with $LD. 14906 # Luckily, gcc supports the same syntax we need for Sun Studio. 14907 # Supported since Solaris 2.6 (maybe 2.5.1?) 14908 case $wlarc in 14909 '') 14910 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14911 *) 14912 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' ;; 14913 esac ;; 14914 esac 14915 link_all_deplibs_F77=yes 14916 ;; 14917 14918 sunos4*) 14919 if test "x$host_vendor" = xsequent; then 14920 # Use $CC to link under sequent, because it throws in some extra .o 14921 # files that make .init and .fini sections work. 14922 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14923 else 14924 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14925 fi 14926 hardcode_libdir_flag_spec_F77='-L$libdir' 14927 hardcode_direct_F77=yes 14928 hardcode_minus_L_F77=yes 14929 hardcode_shlibpath_var_F77=no 14930 ;; 14931 14932 sysv4) 14933 case $host_vendor in 14934 sni) 14935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14936 hardcode_direct_F77=yes # is this really true??? 14937 ;; 14938 siemens) 14939 ## LD is ld it makes a PLAMLIB 14940 ## CC just makes a GrossModule. 14941 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14942 reload_cmds_F77='$CC -r -o $output$reload_objs' 14943 hardcode_direct_F77=no 14944 ;; 14945 motorola) 14946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14947 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14948 ;; 14949 esac 14950 runpath_var='LD_RUN_PATH' 14951 hardcode_shlibpath_var_F77=no 14952 ;; 14953 14954 sysv4.3*) 14955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14956 hardcode_shlibpath_var_F77=no 14957 export_dynamic_flag_spec_F77='-Bexport' 14958 ;; 14959 14960 sysv4*MP*) 14961 if test -d /usr/nec; then 14962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14963 hardcode_shlibpath_var_F77=no 14964 runpath_var=LD_RUN_PATH 14965 hardcode_runpath_var=yes 14966 ld_shlibs_F77=yes 14967 fi 14968 ;; 14969 14970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14971 no_undefined_flag_F77='${wl}-z,text' 14972 archive_cmds_need_lc_F77=no 14973 hardcode_shlibpath_var_F77=no 14974 runpath_var='LD_RUN_PATH' 14975 14976 if test "$GCC" = yes; then 14977 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14978 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14979 else 14980 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14981 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14982 fi 14983 ;; 14984 14985 sysv5* | sco3.2v5* | sco5v6*) 14986 # Note: We can NOT use -z defs as we might desire, because we do not 14987 # link with -lc, and that would cause any symbols used from libc to 14988 # always be unresolved, which means just about no library would 14989 # ever link correctly. If we're not using GNU ld we use -z text 14990 # though, which does catch some bad symbols but isn't as heavy-handed 14991 # as -z defs. 14992 no_undefined_flag_F77='${wl}-z,text' 14993 allow_undefined_flag_F77='${wl}-z,nodefs' 14994 archive_cmds_need_lc_F77=no 14995 hardcode_shlibpath_var_F77=no 14996 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14997 hardcode_libdir_separator_F77=':' 14998 link_all_deplibs_F77=yes 14999 export_dynamic_flag_spec_F77='${wl}-Bexport' 15000 runpath_var='LD_RUN_PATH' 15001 15002 if test "$GCC" = yes; then 15003 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15004 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15005 else 15006 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15007 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15008 fi 15009 ;; 15010 15011 uts4*) 15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15013 hardcode_libdir_flag_spec_F77='-L$libdir' 15014 hardcode_shlibpath_var_F77=no 15015 ;; 15016 15017 *) 15018 ld_shlibs_F77=no 15019 ;; 15020 esac 15021 fi 15022 15023{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15024echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15025test "$ld_shlibs_F77" = no && can_build_shared=no 15026 15027# 15028# Do we need to explicitly link libc? 15029# 15030case "x$archive_cmds_need_lc_F77" in 15031x|xyes) 15032 # Assume -lc should be added 15033 archive_cmds_need_lc_F77=yes 15034 15035 if test "$enable_shared" = yes && test "$GCC" = yes; then 15036 case $archive_cmds_F77 in 15037 *'~'*) 15038 # FIXME: we may have to deal with multi-command sequences. 15039 ;; 15040 '$CC '*) 15041 # Test whether the compiler implicitly links with -lc since on some 15042 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15043 # to ld, don't add -lc before -lgcc. 15044 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15045echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15046 $rm conftest* 15047 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15048 15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15050 (eval $ac_compile) 2>&5 15051 ac_status=$? 15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15053 (exit $ac_status); } 2>conftest.err; then 15054 soname=conftest 15055 lib=conftest 15056 libobjs=conftest.$ac_objext 15057 deplibs= 15058 wl=$lt_prog_compiler_wl_F77 15059 pic_flag=$lt_prog_compiler_pic_F77 15060 compiler_flags=-v 15061 linker_flags=-v 15062 verstring= 15063 output_objdir=. 15064 libname=conftest 15065 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15066 allow_undefined_flag_F77= 15067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15068 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15069 ac_status=$? 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 (exit $ac_status); } 15072 then 15073 archive_cmds_need_lc_F77=no 15074 else 15075 archive_cmds_need_lc_F77=yes 15076 fi 15077 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15078 else 15079 cat conftest.err 1>&5 15080 fi 15081 $rm conftest* 15082 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15083echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15084 ;; 15085 esac 15086 fi 15087 ;; 15088esac 15089 15090{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15091echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15092library_names_spec= 15093libname_spec='lib$name' 15094soname_spec= 15095shrext_cmds=".so" 15096postinstall_cmds= 15097postuninstall_cmds= 15098finish_cmds= 15099finish_eval= 15100shlibpath_var= 15101shlibpath_overrides_runpath=unknown 15102version_type=none 15103dynamic_linker="$host_os ld.so" 15104sys_lib_dlsearch_path_spec="/lib /usr/lib" 15105if test "$GCC" = yes; then 15106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15107 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15108 # if the path contains ";" then we assume it to be the separator 15109 # otherwise default to the standard path separator (i.e. ":") - it is 15110 # assumed that no part of a normal pathname contains ";" but that should 15111 # okay in the real world where ";" in dirpaths is itself problematic. 15112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15113 else 15114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15115 fi 15116else 15117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15118fi 15119need_lib_prefix=unknown 15120hardcode_into_libs=no 15121 15122# when you set need_version to no, make sure it does not cause -set_version 15123# flags to be left without arguments 15124need_version=unknown 15125 15126case $host_os in 15127aix3*) 15128 version_type=linux 15129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15130 shlibpath_var=LIBPATH 15131 15132 # AIX 3 has no versioning support, so we append a major version to the name. 15133 soname_spec='${libname}${release}${shared_ext}$major' 15134 ;; 15135 15136aix4* | aix5*) 15137 version_type=linux 15138 need_lib_prefix=no 15139 need_version=no 15140 hardcode_into_libs=yes 15141 if test "$host_cpu" = ia64; then 15142 # AIX 5 supports IA64 15143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15144 shlibpath_var=LD_LIBRARY_PATH 15145 else 15146 # With GCC up to 2.95.x, collect2 would create an import file 15147 # for dependence libraries. The import file would start with 15148 # the line `#! .'. This would cause the generated library to 15149 # depend on `.', always an invalid library. This was fixed in 15150 # development snapshots of GCC prior to 3.0. 15151 case $host_os in 15152 aix4 | aix4.[01] | aix4.[01].*) 15153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15154 echo ' yes ' 15155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15156 : 15157 else 15158 can_build_shared=no 15159 fi 15160 ;; 15161 esac 15162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15163 # soname into executable. Probably we can add versioning support to 15164 # collect2, so additional links can be useful in future. 15165 if test "$aix_use_runtimelinking" = yes; then 15166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15167 # instead of lib<name>.a to let people know that these are not 15168 # typical AIX shared libraries. 15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15170 else 15171 # We preserve .a as extension for shared libraries through AIX4.2 15172 # and later when we are not doing run time linking. 15173 library_names_spec='${libname}${release}.a $libname.a' 15174 soname_spec='${libname}${release}${shared_ext}$major' 15175 fi 15176 shlibpath_var=LIBPATH 15177 fi 15178 ;; 15179 15180amigaos*) 15181 library_names_spec='$libname.ixlibrary $libname.a' 15182 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15183 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' 15184 ;; 15185 15186beos*) 15187 library_names_spec='${libname}${shared_ext}' 15188 dynamic_linker="$host_os ld.so" 15189 shlibpath_var=LIBRARY_PATH 15190 ;; 15191 15192bsdi[45]*) 15193 version_type=linux 15194 need_version=no 15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15196 soname_spec='${libname}${release}${shared_ext}$major' 15197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15198 shlibpath_var=LD_LIBRARY_PATH 15199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15201 # the default ld.so.conf also contains /usr/contrib/lib and 15202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15203 # libtool to hard-code these into programs 15204 ;; 15205 15206cygwin* | mingw* | pw32*) 15207 version_type=windows 15208 shrext_cmds=".dll" 15209 need_version=no 15210 need_lib_prefix=no 15211 15212 case $GCC,$host_os in 15213 yes,cygwin* | yes,mingw* | yes,pw32*) 15214 library_names_spec='$libname.dll.a' 15215 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15216 postinstall_cmds='base_file=`basename \${file}`~ 15217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15218 dldir=$destdir/`dirname \$dlpath`~ 15219 test -d \$dldir || mkdir -p \$dldir~ 15220 $install_prog $dir/$dlname \$dldir/$dlname~ 15221 chmod a+x \$dldir/$dlname' 15222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15223 dlpath=$dir/\$dldll~ 15224 $rm \$dlpath' 15225 shlibpath_overrides_runpath=yes 15226 15227 case $host_os in 15228 cygwin*) 15229 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15232 ;; 15233 mingw*) 15234 # MinGW DLLs use traditional 'lib' prefix 15235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15237 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15238 # It is most probably a Windows format PATH printed by 15239 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15240 # path with ; separators, and with drive letters. We can handle the 15241 # drive letters (cygwin fileutils understands them), so leave them, 15242 # especially as we might pass files found there to a mingw objdump, 15243 # which wouldn't understand a cygwinified path. Ahh. 15244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15245 else 15246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15247 fi 15248 ;; 15249 pw32*) 15250 # pw32 DLLs use 'pw' prefix rather than 'lib' 15251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15252 ;; 15253 esac 15254 ;; 15255 15256 *) 15257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15258 ;; 15259 esac 15260 dynamic_linker='Win32 ld.exe' 15261 # FIXME: first we should search . and the directory the executable is in 15262 shlibpath_var=PATH 15263 ;; 15264 15265darwin* | rhapsody*) 15266 dynamic_linker="$host_os dyld" 15267 version_type=darwin 15268 need_lib_prefix=no 15269 need_version=no 15270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15271 soname_spec='${libname}${release}${major}$shared_ext' 15272 shlibpath_overrides_runpath=yes 15273 shlibpath_var=DYLD_LIBRARY_PATH 15274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15276 if test "$GCC" = yes; then 15277 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"` 15278 else 15279 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15280 fi 15281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15282 ;; 15283 15284dgux*) 15285 version_type=linux 15286 need_lib_prefix=no 15287 need_version=no 15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15289 soname_spec='${libname}${release}${shared_ext}$major' 15290 shlibpath_var=LD_LIBRARY_PATH 15291 ;; 15292 15293freebsd1*) 15294 dynamic_linker=no 15295 ;; 15296 15297kfreebsd*-gnu) 15298 version_type=linux 15299 need_lib_prefix=no 15300 need_version=no 15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15302 soname_spec='${libname}${release}${shared_ext}$major' 15303 shlibpath_var=LD_LIBRARY_PATH 15304 shlibpath_overrides_runpath=no 15305 hardcode_into_libs=yes 15306 dynamic_linker='GNU ld.so' 15307 ;; 15308 15309freebsd* | dragonfly*) 15310 # DragonFly does not have aout. When/if they implement a new 15311 # versioning mechanism, adjust this. 15312 if test -x /usr/bin/objformat; then 15313 objformat=`/usr/bin/objformat` 15314 else 15315 case $host_os in 15316 freebsd[123]*) objformat=aout ;; 15317 *) objformat=elf ;; 15318 esac 15319 fi 15320 version_type=freebsd-$objformat 15321 case $version_type in 15322 freebsd-elf*) 15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15324 need_version=no 15325 need_lib_prefix=no 15326 ;; 15327 freebsd-*) 15328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15329 need_version=yes 15330 ;; 15331 esac 15332 shlibpath_var=LD_LIBRARY_PATH 15333 case $host_os in 15334 freebsd2*) 15335 shlibpath_overrides_runpath=yes 15336 ;; 15337 freebsd3.[01]* | freebsdelf3.[01]*) 15338 shlibpath_overrides_runpath=yes 15339 hardcode_into_libs=yes 15340 ;; 15341 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15342 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15343 shlibpath_overrides_runpath=no 15344 hardcode_into_libs=yes 15345 ;; 15346 freebsd*) # from 4.6 on 15347 shlibpath_overrides_runpath=yes 15348 hardcode_into_libs=yes 15349 ;; 15350 esac 15351 ;; 15352 15353gnu*) 15354 version_type=linux 15355 need_lib_prefix=no 15356 need_version=no 15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15358 soname_spec='${libname}${release}${shared_ext}$major' 15359 shlibpath_var=LD_LIBRARY_PATH 15360 hardcode_into_libs=yes 15361 ;; 15362 15363hpux9* | hpux10* | hpux11*) 15364 # Give a soname corresponding to the major version so that dld.sl refuses to 15365 # link against other versions. 15366 version_type=sunos 15367 need_lib_prefix=no 15368 need_version=no 15369 case $host_cpu in 15370 ia64*) 15371 shrext_cmds='.so' 15372 hardcode_into_libs=yes 15373 dynamic_linker="$host_os dld.so" 15374 shlibpath_var=LD_LIBRARY_PATH 15375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15377 soname_spec='${libname}${release}${shared_ext}$major' 15378 if test "X$HPUX_IA64_MODE" = X32; then 15379 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15380 else 15381 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15382 fi 15383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15384 ;; 15385 hppa*64*) 15386 shrext_cmds='.sl' 15387 hardcode_into_libs=yes 15388 dynamic_linker="$host_os dld.sl" 15389 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15392 soname_spec='${libname}${release}${shared_ext}$major' 15393 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15395 ;; 15396 *) 15397 shrext_cmds='.sl' 15398 dynamic_linker="$host_os dld.sl" 15399 shlibpath_var=SHLIB_PATH 15400 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15402 soname_spec='${libname}${release}${shared_ext}$major' 15403 ;; 15404 esac 15405 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15406 postinstall_cmds='chmod 555 $lib' 15407 ;; 15408 15409interix3*) 15410 version_type=linux 15411 need_lib_prefix=no 15412 need_version=no 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15414 soname_spec='${libname}${release}${shared_ext}$major' 15415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15416 shlibpath_var=LD_LIBRARY_PATH 15417 shlibpath_overrides_runpath=no 15418 hardcode_into_libs=yes 15419 ;; 15420 15421irix5* | irix6* | nonstopux*) 15422 case $host_os in 15423 nonstopux*) version_type=nonstopux ;; 15424 *) 15425 if test "$lt_cv_prog_gnu_ld" = yes; then 15426 version_type=linux 15427 else 15428 version_type=irix 15429 fi ;; 15430 esac 15431 need_lib_prefix=no 15432 need_version=no 15433 soname_spec='${libname}${release}${shared_ext}$major' 15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15435 case $host_os in 15436 irix5* | nonstopux*) 15437 libsuff= shlibsuff= 15438 ;; 15439 *) 15440 case $LD in # libtool.m4 will add one of these switches to LD 15441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15442 libsuff= shlibsuff= libmagic=32-bit;; 15443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15444 libsuff=32 shlibsuff=N32 libmagic=N32;; 15445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15446 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15447 *) libsuff= shlibsuff= libmagic=never-match;; 15448 esac 15449 ;; 15450 esac 15451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15452 shlibpath_overrides_runpath=no 15453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15455 hardcode_into_libs=yes 15456 ;; 15457 15458# No shared lib support for Linux oldld, aout, or coff. 15459linux*oldld* | linux*aout* | linux*coff*) 15460 dynamic_linker=no 15461 ;; 15462 15463# This must be Linux ELF. 15464linux*) 15465 version_type=linux 15466 need_lib_prefix=no 15467 need_version=no 15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15469 soname_spec='${libname}${release}${shared_ext}$major' 15470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15471 shlibpath_var=LD_LIBRARY_PATH 15472 shlibpath_overrides_runpath=no 15473 # This implies no fast_install, which is unacceptable. 15474 # Some rework will be needed to allow for fast_install 15475 # before this can be enabled. 15476 hardcode_into_libs=yes 15477 15478 # Append ld.so.conf contents to the search path 15479 if test -f /etc/ld.so.conf; then 15480 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' ' '` 15481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15482 fi 15483 15484 # We used to test for /lib/ld.so.1 and disable shared libraries on 15485 # powerpc, because MkLinux only supported shared libraries with the 15486 # GNU dynamic linker. Since this was broken with cross compilers, 15487 # most powerpc-linux boxes support dynamic linking these days and 15488 # people can always --disable-shared, the test was removed, and we 15489 # assume the GNU/Linux dynamic linker is in use. 15490 dynamic_linker='GNU/Linux ld.so' 15491 ;; 15492 15493knetbsd*-gnu) 15494 version_type=linux 15495 need_lib_prefix=no 15496 need_version=no 15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15498 soname_spec='${libname}${release}${shared_ext}$major' 15499 shlibpath_var=LD_LIBRARY_PATH 15500 shlibpath_overrides_runpath=no 15501 hardcode_into_libs=yes 15502 dynamic_linker='GNU ld.so' 15503 ;; 15504 15505netbsd*) 15506 version_type=sunos 15507 need_lib_prefix=no 15508 need_version=no 15509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15512 dynamic_linker='NetBSD (a.out) ld.so' 15513 else 15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15515 soname_spec='${libname}${release}${shared_ext}$major' 15516 dynamic_linker='NetBSD ld.elf_so' 15517 fi 15518 shlibpath_var=LD_LIBRARY_PATH 15519 shlibpath_overrides_runpath=yes 15520 hardcode_into_libs=yes 15521 ;; 15522 15523newsos6) 15524 version_type=linux 15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15526 shlibpath_var=LD_LIBRARY_PATH 15527 shlibpath_overrides_runpath=yes 15528 ;; 15529 15530nto-qnx*) 15531 version_type=linux 15532 need_lib_prefix=no 15533 need_version=no 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15535 soname_spec='${libname}${release}${shared_ext}$major' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 shlibpath_overrides_runpath=yes 15538 ;; 15539 15540openbsd*) 15541 version_type=sunos 15542 sys_lib_dlsearch_path_spec="/usr/lib" 15543 need_lib_prefix=no 15544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15545 case $host_os in 15546 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15547 *) need_version=no ;; 15548 esac 15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15551 shlibpath_var=LD_LIBRARY_PATH 15552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15553 case $host_os in 15554 openbsd2.[89] | openbsd2.[89].*) 15555 shlibpath_overrides_runpath=no 15556 ;; 15557 *) 15558 shlibpath_overrides_runpath=yes 15559 ;; 15560 esac 15561 else 15562 shlibpath_overrides_runpath=yes 15563 fi 15564 ;; 15565 15566os2*) 15567 libname_spec='$name' 15568 shrext_cmds=".dll" 15569 need_lib_prefix=no 15570 library_names_spec='$libname${shared_ext} $libname.a' 15571 dynamic_linker='OS/2 ld.exe' 15572 shlibpath_var=LIBPATH 15573 ;; 15574 15575osf3* | osf4* | osf5*) 15576 version_type=osf 15577 need_lib_prefix=no 15578 need_version=no 15579 soname_spec='${libname}${release}${shared_ext}$major' 15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15581 shlibpath_var=LD_LIBRARY_PATH 15582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15584 ;; 15585 15586solaris*) 15587 version_type=linux 15588 need_lib_prefix=no 15589 need_version=no 15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15591 soname_spec='${libname}${release}${shared_ext}$major' 15592 shlibpath_var=LD_LIBRARY_PATH 15593 shlibpath_overrides_runpath=yes 15594 hardcode_into_libs=yes 15595 # ldd complains unless libraries are executable 15596 postinstall_cmds='chmod +x $lib' 15597 ;; 15598 15599sunos4*) 15600 version_type=sunos 15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15603 shlibpath_var=LD_LIBRARY_PATH 15604 shlibpath_overrides_runpath=yes 15605 if test "$with_gnu_ld" = yes; then 15606 need_lib_prefix=no 15607 fi 15608 need_version=yes 15609 ;; 15610 15611sysv4 | sysv4.3*) 15612 version_type=linux 15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15614 soname_spec='${libname}${release}${shared_ext}$major' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 case $host_vendor in 15617 sni) 15618 shlibpath_overrides_runpath=no 15619 need_lib_prefix=no 15620 export_dynamic_flag_spec='${wl}-Blargedynsym' 15621 runpath_var=LD_RUN_PATH 15622 ;; 15623 siemens) 15624 need_lib_prefix=no 15625 ;; 15626 motorola) 15627 need_lib_prefix=no 15628 need_version=no 15629 shlibpath_overrides_runpath=no 15630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15631 ;; 15632 esac 15633 ;; 15634 15635sysv4*MP*) 15636 if test -d /usr/nec ;then 15637 version_type=linux 15638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15639 soname_spec='$libname${shared_ext}.$major' 15640 shlibpath_var=LD_LIBRARY_PATH 15641 fi 15642 ;; 15643 15644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15645 version_type=freebsd-elf 15646 need_lib_prefix=no 15647 need_version=no 15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15649 soname_spec='${libname}${release}${shared_ext}$major' 15650 shlibpath_var=LD_LIBRARY_PATH 15651 hardcode_into_libs=yes 15652 if test "$with_gnu_ld" = yes; then 15653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15654 shlibpath_overrides_runpath=no 15655 else 15656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15657 shlibpath_overrides_runpath=yes 15658 case $host_os in 15659 sco3.2v5*) 15660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15661 ;; 15662 esac 15663 fi 15664 sys_lib_dlsearch_path_spec='/usr/lib' 15665 ;; 15666 15667uts4*) 15668 version_type=linux 15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15670 soname_spec='${libname}${release}${shared_ext}$major' 15671 shlibpath_var=LD_LIBRARY_PATH 15672 ;; 15673 15674*) 15675 dynamic_linker=no 15676 ;; 15677esac 15678{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15679echo "${ECHO_T}$dynamic_linker" >&6; } 15680test "$dynamic_linker" = no && can_build_shared=no 15681 15682variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15683if test "$GCC" = yes; then 15684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15685fi 15686 15687{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15688echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15689hardcode_action_F77= 15690if test -n "$hardcode_libdir_flag_spec_F77" || \ 15691 test -n "$runpath_var_F77" || \ 15692 test "X$hardcode_automatic_F77" = "Xyes" ; then 15693 15694 # We can hardcode non-existant directories. 15695 if test "$hardcode_direct_F77" != no && 15696 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15697 # have to relink, otherwise we might link with an installed library 15698 # when we should be linking with a yet-to-be-installed one 15699 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15700 test "$hardcode_minus_L_F77" != no; then 15701 # Linking always hardcodes the temporary library directory. 15702 hardcode_action_F77=relink 15703 else 15704 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15705 hardcode_action_F77=immediate 15706 fi 15707else 15708 # We cannot hardcode anything, or else we can only hardcode existing 15709 # directories. 15710 hardcode_action_F77=unsupported 15711fi 15712{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15713echo "${ECHO_T}$hardcode_action_F77" >&6; } 15714 15715if test "$hardcode_action_F77" = relink; then 15716 # Fast installation is not supported 15717 enable_fast_install=no 15718elif test "$shlibpath_overrides_runpath" = yes || 15719 test "$enable_shared" = no; then 15720 # Fast installation is not necessary 15721 enable_fast_install=needless 15722fi 15723 15724 15725# The else clause should only fire when bootstrapping the 15726# libtool distribution, otherwise you forgot to ship ltmain.sh 15727# with your package, and you will get complaints that there are 15728# no rules to generate ltmain.sh. 15729if test -f "$ltmain"; then 15730 # See if we are running on zsh, and set the options which allow our commands through 15731 # without removal of \ escapes. 15732 if test -n "${ZSH_VERSION+set}" ; then 15733 setopt NO_GLOB_SUBST 15734 fi 15735 # Now quote all the things that may contain metacharacters while being 15736 # careful not to overquote the AC_SUBSTed values. We take copies of the 15737 # variables and quote the copies for generation of the libtool script. 15738 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15739 SED SHELL STRIP \ 15740 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15741 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15742 deplibs_check_method reload_flag reload_cmds need_locks \ 15743 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15744 lt_cv_sys_global_symbol_to_c_name_address \ 15745 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15746 old_postinstall_cmds old_postuninstall_cmds \ 15747 compiler_F77 \ 15748 CC_F77 \ 15749 LD_F77 \ 15750 lt_prog_compiler_wl_F77 \ 15751 lt_prog_compiler_pic_F77 \ 15752 lt_prog_compiler_static_F77 \ 15753 lt_prog_compiler_no_builtin_flag_F77 \ 15754 export_dynamic_flag_spec_F77 \ 15755 thread_safe_flag_spec_F77 \ 15756 whole_archive_flag_spec_F77 \ 15757 enable_shared_with_static_runtimes_F77 \ 15758 old_archive_cmds_F77 \ 15759 old_archive_from_new_cmds_F77 \ 15760 predep_objects_F77 \ 15761 postdep_objects_F77 \ 15762 predeps_F77 \ 15763 postdeps_F77 \ 15764 compiler_lib_search_path_F77 \ 15765 archive_cmds_F77 \ 15766 archive_expsym_cmds_F77 \ 15767 postinstall_cmds_F77 \ 15768 postuninstall_cmds_F77 \ 15769 old_archive_from_expsyms_cmds_F77 \ 15770 allow_undefined_flag_F77 \ 15771 no_undefined_flag_F77 \ 15772 export_symbols_cmds_F77 \ 15773 hardcode_libdir_flag_spec_F77 \ 15774 hardcode_libdir_flag_spec_ld_F77 \ 15775 hardcode_libdir_separator_F77 \ 15776 hardcode_automatic_F77 \ 15777 module_cmds_F77 \ 15778 module_expsym_cmds_F77 \ 15779 lt_cv_prog_compiler_c_o_F77 \ 15780 exclude_expsyms_F77 \ 15781 include_expsyms_F77; do 15782 15783 case $var in 15784 old_archive_cmds_F77 | \ 15785 old_archive_from_new_cmds_F77 | \ 15786 archive_cmds_F77 | \ 15787 archive_expsym_cmds_F77 | \ 15788 module_cmds_F77 | \ 15789 module_expsym_cmds_F77 | \ 15790 old_archive_from_expsyms_cmds_F77 | \ 15791 export_symbols_cmds_F77 | \ 15792 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15793 postinstall_cmds | postuninstall_cmds | \ 15794 old_postinstall_cmds | old_postuninstall_cmds | \ 15795 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15796 # Double-quote double-evaled strings. 15797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15798 ;; 15799 *) 15800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15801 ;; 15802 esac 15803 done 15804 15805 case $lt_echo in 15806 *'\$0 --fallback-echo"') 15807 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15808 ;; 15809 esac 15810 15811cfgfile="$ofile" 15812 15813 cat <<__EOF__ >> "$cfgfile" 15814# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15815 15816# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15817 15818# Shell to use when invoking shell scripts. 15819SHELL=$lt_SHELL 15820 15821# Whether or not to build shared libraries. 15822build_libtool_libs=$enable_shared 15823 15824# Whether or not to build static libraries. 15825build_old_libs=$enable_static 15826 15827# Whether or not to add -lc for building shared libraries. 15828build_libtool_need_lc=$archive_cmds_need_lc_F77 15829 15830# Whether or not to disallow shared libs when runtime libs are static 15831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15832 15833# Whether or not to optimize for fast installation. 15834fast_install=$enable_fast_install 15835 15836# The host system. 15837host_alias=$host_alias 15838host=$host 15839host_os=$host_os 15840 15841# The build system. 15842build_alias=$build_alias 15843build=$build 15844build_os=$build_os 15845 15846# An echo program that does not interpret backslashes. 15847echo=$lt_echo 15848 15849# The archiver. 15850AR=$lt_AR 15851AR_FLAGS=$lt_AR_FLAGS 15852 15853# A C compiler. 15854LTCC=$lt_LTCC 15855 15856# LTCC compiler flags. 15857LTCFLAGS=$lt_LTCFLAGS 15858 15859# A language-specific compiler. 15860CC=$lt_compiler_F77 15861 15862# Is the compiler the GNU C compiler? 15863with_gcc=$GCC_F77 15864 15865# An ERE matcher. 15866EGREP=$lt_EGREP 15867 15868# The linker used to build libraries. 15869LD=$lt_LD_F77 15870 15871# Whether we need hard or soft links. 15872LN_S=$lt_LN_S 15873 15874# A BSD-compatible nm program. 15875NM=$lt_NM 15876 15877# A symbol stripping program 15878STRIP=$lt_STRIP 15879 15880# Used to examine libraries when file_magic_cmd begins "file" 15881MAGIC_CMD=$MAGIC_CMD 15882 15883# Used on cygwin: DLL creation program. 15884DLLTOOL="$DLLTOOL" 15885 15886# Used on cygwin: object dumper. 15887OBJDUMP="$OBJDUMP" 15888 15889# Used on cygwin: assembler. 15890AS="$AS" 15891 15892# The name of the directory that contains temporary libtool files. 15893objdir=$objdir 15894 15895# How to create reloadable object files. 15896reload_flag=$lt_reload_flag 15897reload_cmds=$lt_reload_cmds 15898 15899# How to pass a linker flag through the compiler. 15900wl=$lt_lt_prog_compiler_wl_F77 15901 15902# Object file suffix (normally "o"). 15903objext="$ac_objext" 15904 15905# Old archive suffix (normally "a"). 15906libext="$libext" 15907 15908# Shared library suffix (normally ".so"). 15909shrext_cmds='$shrext_cmds' 15910 15911# Executable file suffix (normally ""). 15912exeext="$exeext" 15913 15914# Additional compiler flags for building library objects. 15915pic_flag=$lt_lt_prog_compiler_pic_F77 15916pic_mode=$pic_mode 15917 15918# What is the maximum length of a command? 15919max_cmd_len=$lt_cv_sys_max_cmd_len 15920 15921# Does compiler simultaneously support -c and -o options? 15922compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15923 15924# Must we lock files when doing compilation? 15925need_locks=$lt_need_locks 15926 15927# Do we need the lib prefix for modules? 15928need_lib_prefix=$need_lib_prefix 15929 15930# Do we need a version for libraries? 15931need_version=$need_version 15932 15933# Whether dlopen is supported. 15934dlopen_support=$enable_dlopen 15935 15936# Whether dlopen of programs is supported. 15937dlopen_self=$enable_dlopen_self 15938 15939# Whether dlopen of statically linked programs is supported. 15940dlopen_self_static=$enable_dlopen_self_static 15941 15942# Compiler flag to prevent dynamic linking. 15943link_static_flag=$lt_lt_prog_compiler_static_F77 15944 15945# Compiler flag to turn off builtin functions. 15946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15947 15948# Compiler flag to allow reflexive dlopens. 15949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15950 15951# Compiler flag to generate shared objects directly from archives. 15952whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15953 15954# Compiler flag to generate thread-safe objects. 15955thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15956 15957# Library versioning type. 15958version_type=$version_type 15959 15960# Format of library name prefix. 15961libname_spec=$lt_libname_spec 15962 15963# List of archive names. First name is the real one, the rest are links. 15964# The last name is the one that the linker finds with -lNAME. 15965library_names_spec=$lt_library_names_spec 15966 15967# The coded name of the library, if different from the real name. 15968soname_spec=$lt_soname_spec 15969 15970# Commands used to build and install an old-style archive. 15971RANLIB=$lt_RANLIB 15972old_archive_cmds=$lt_old_archive_cmds_F77 15973old_postinstall_cmds=$lt_old_postinstall_cmds 15974old_postuninstall_cmds=$lt_old_postuninstall_cmds 15975 15976# Create an old-style archive from a shared archive. 15977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15978 15979# Create a temporary old-style archive to link instead of a shared archive. 15980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15981 15982# Commands used to build and install a shared archive. 15983archive_cmds=$lt_archive_cmds_F77 15984archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15985postinstall_cmds=$lt_postinstall_cmds 15986postuninstall_cmds=$lt_postuninstall_cmds 15987 15988# Commands used to build a loadable module (assumed same as above if empty) 15989module_cmds=$lt_module_cmds_F77 15990module_expsym_cmds=$lt_module_expsym_cmds_F77 15991 15992# Commands to strip libraries. 15993old_striplib=$lt_old_striplib 15994striplib=$lt_striplib 15995 15996# Dependencies to place before the objects being linked to create a 15997# shared library. 15998predep_objects=$lt_predep_objects_F77 15999 16000# Dependencies to place after the objects being linked to create a 16001# shared library. 16002postdep_objects=$lt_postdep_objects_F77 16003 16004# Dependencies to place before the objects being linked to create a 16005# shared library. 16006predeps=$lt_predeps_F77 16007 16008# Dependencies to place after the objects being linked to create a 16009# shared library. 16010postdeps=$lt_postdeps_F77 16011 16012# The library search path used internally by the compiler when linking 16013# a shared library. 16014compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16015 16016# Method to check whether dependent libraries are shared objects. 16017deplibs_check_method=$lt_deplibs_check_method 16018 16019# Command to use when deplibs_check_method == file_magic. 16020file_magic_cmd=$lt_file_magic_cmd 16021 16022# Flag that allows shared libraries with undefined symbols to be built. 16023allow_undefined_flag=$lt_allow_undefined_flag_F77 16024 16025# Flag that forces no undefined symbols. 16026no_undefined_flag=$lt_no_undefined_flag_F77 16027 16028# Commands used to finish a libtool library installation in a directory. 16029finish_cmds=$lt_finish_cmds 16030 16031# Same as above, but a single script fragment to be evaled but not shown. 16032finish_eval=$lt_finish_eval 16033 16034# Take the output of nm and produce a listing of raw symbols and C names. 16035global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16036 16037# Transform the output of nm in a proper C declaration 16038global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16039 16040# Transform the output of nm in a C name address pair 16041global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16042 16043# This is the shared library runtime path variable. 16044runpath_var=$runpath_var 16045 16046# This is the shared library path variable. 16047shlibpath_var=$shlibpath_var 16048 16049# Is shlibpath searched before the hard-coded library search path? 16050shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16051 16052# How to hardcode a shared library path into an executable. 16053hardcode_action=$hardcode_action_F77 16054 16055# Whether we should hardcode library paths into libraries. 16056hardcode_into_libs=$hardcode_into_libs 16057 16058# Flag to hardcode \$libdir into a binary during linking. 16059# This must work even if \$libdir does not exist. 16060hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16061 16062# If ld is used when linking, flag to hardcode \$libdir into 16063# a binary during linking. This must work even if \$libdir does 16064# not exist. 16065hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16066 16067# Whether we need a single -rpath flag with a separated argument. 16068hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16069 16070# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16071# resulting binary. 16072hardcode_direct=$hardcode_direct_F77 16073 16074# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16075# resulting binary. 16076hardcode_minus_L=$hardcode_minus_L_F77 16077 16078# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16079# the resulting binary. 16080hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16081 16082# Set to yes if building a shared library automatically hardcodes DIR into the library 16083# and all subsequent libraries and executables linked against it. 16084hardcode_automatic=$hardcode_automatic_F77 16085 16086# Variables whose values should be saved in libtool wrapper scripts and 16087# restored at relink time. 16088variables_saved_for_relink="$variables_saved_for_relink" 16089 16090# Whether libtool must link a program against all its dependency libraries. 16091link_all_deplibs=$link_all_deplibs_F77 16092 16093# Compile-time system search path for libraries 16094sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16095 16096# Run-time system search path for libraries 16097sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16098 16099# Fix the shell variable \$srcfile for the compiler. 16100fix_srcfile_path="$fix_srcfile_path_F77" 16101 16102# Set to yes if exported symbols are required. 16103always_export_symbols=$always_export_symbols_F77 16104 16105# The commands to list exported symbols. 16106export_symbols_cmds=$lt_export_symbols_cmds_F77 16107 16108# The commands to extract the exported symbol list from a shared archive. 16109extract_expsyms_cmds=$lt_extract_expsyms_cmds 16110 16111# Symbols that should not be listed in the preloaded symbols. 16112exclude_expsyms=$lt_exclude_expsyms_F77 16113 16114# Symbols that must always be exported. 16115include_expsyms=$lt_include_expsyms_F77 16116 16117# ### END LIBTOOL TAG CONFIG: $tagname 16118 16119__EOF__ 16120 16121 16122else 16123 # If there is no Makefile yet, we rely on a make rule to execute 16124 # `config.status --recheck' to rerun these tests and create the 16125 # libtool script then. 16126 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16127 if test -f "$ltmain_in"; then 16128 test -f Makefile && make "$ltmain" 16129 fi 16130fi 16131 16132 16133ac_ext=c 16134ac_cpp='$CPP $CPPFLAGS' 16135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16137ac_compiler_gnu=$ac_cv_c_compiler_gnu 16138 16139CC="$lt_save_CC" 16140 16141 else 16142 tagname="" 16143 fi 16144 ;; 16145 16146 GCJ) 16147 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16148 16149 16150# Source file extension for Java test sources. 16151ac_ext=java 16152 16153# Object file extension for compiled Java test sources. 16154objext=o 16155objext_GCJ=$objext 16156 16157# Code to be used in simple compile tests 16158lt_simple_compile_test_code="class foo {}\n" 16159 16160# Code to be used in simple link tests 16161lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16162 16163# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16164 16165# If no C compiler was specified, use CC. 16166LTCC=${LTCC-"$CC"} 16167 16168# If no C compiler flags were specified, use CFLAGS. 16169LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16170 16171# Allow CC to be a program name with arguments. 16172compiler=$CC 16173 16174 16175# save warnings/boilerplate of simple test code 16176ac_outfile=conftest.$ac_objext 16177printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16179_lt_compiler_boilerplate=`cat conftest.err` 16180$rm conftest* 16181 16182ac_outfile=conftest.$ac_objext 16183printf "$lt_simple_link_test_code" >conftest.$ac_ext 16184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16185_lt_linker_boilerplate=`cat conftest.err` 16186$rm conftest* 16187 16188 16189# Allow CC to be a program name with arguments. 16190lt_save_CC="$CC" 16191CC=${GCJ-"gcj"} 16192compiler=$CC 16193compiler_GCJ=$CC 16194for cc_temp in $compiler""; do 16195 case $cc_temp in 16196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16198 \-*) ;; 16199 *) break;; 16200 esac 16201done 16202cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16203 16204 16205# GCJ did not exist at the time GCC didn't implicitly link libc in. 16206archive_cmds_need_lc_GCJ=no 16207 16208old_archive_cmds_GCJ=$old_archive_cmds 16209 16210 16211lt_prog_compiler_no_builtin_flag_GCJ= 16212 16213if test "$GCC" = yes; then 16214 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16215 16216 16217{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16218echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16219if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16220 echo $ECHO_N "(cached) $ECHO_C" >&6 16221else 16222 lt_cv_prog_compiler_rtti_exceptions=no 16223 ac_outfile=conftest.$ac_objext 16224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16225 lt_compiler_flag="-fno-rtti -fno-exceptions" 16226 # Insert the option either (1) after the last *FLAGS variable, or 16227 # (2) before a word containing "conftest.", or (3) at the end. 16228 # Note that $ac_compile itself does not contain backslashes and begins 16229 # with a dollar sign (not a hyphen), so the echo should work correctly. 16230 # The option is referenced via a variable to avoid confusing sed. 16231 lt_compile=`echo "$ac_compile" | $SED \ 16232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16234 -e 's:$: $lt_compiler_flag:'` 16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5) 16236 (eval "$lt_compile" 2>conftest.err) 16237 ac_status=$? 16238 cat conftest.err >&5 16239 echo "$as_me:16239: \$? = $ac_status" >&5 16240 if (exit $ac_status) && test -s "$ac_outfile"; then 16241 # The compiler can only warn and ignore the option if not recognized 16242 # So say no if there are warnings other than the usual output. 16243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16246 lt_cv_prog_compiler_rtti_exceptions=yes 16247 fi 16248 fi 16249 $rm conftest* 16250 16251fi 16252{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16253echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16254 16255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16256 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16257else 16258 : 16259fi 16260 16261fi 16262 16263lt_prog_compiler_wl_GCJ= 16264lt_prog_compiler_pic_GCJ= 16265lt_prog_compiler_static_GCJ= 16266 16267{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16268echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16269 16270 if test "$GCC" = yes; then 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 lt_prog_compiler_static_GCJ='-static' 16273 16274 case $host_os in 16275 aix*) 16276 # All AIX code is PIC. 16277 if test "$host_cpu" = ia64; then 16278 # AIX 5 now supports IA64 processor 16279 lt_prog_compiler_static_GCJ='-Bstatic' 16280 fi 16281 ;; 16282 16283 amigaos*) 16284 # FIXME: we need at least 68020 code to build shared libraries, but 16285 # adding the `-m68020' flag to GCC prevents building anything better, 16286 # like `-m68040'. 16287 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16288 ;; 16289 16290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16291 # PIC is the default for these OSes. 16292 ;; 16293 16294 mingw* | pw32* | os2*) 16295 # This hack is so that the source file can tell whether it is being 16296 # built for inclusion in a dll (and should export symbols for example). 16297 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16298 ;; 16299 16300 darwin* | rhapsody*) 16301 # PIC is the default on this platform 16302 # Common symbols not allowed in MH_DYLIB files 16303 lt_prog_compiler_pic_GCJ='-fno-common' 16304 ;; 16305 16306 interix3*) 16307 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16308 # Instead, we relocate shared libraries at runtime. 16309 ;; 16310 16311 msdosdjgpp*) 16312 # Just because we use GCC doesn't mean we suddenly get shared libraries 16313 # on systems that don't support them. 16314 lt_prog_compiler_can_build_shared_GCJ=no 16315 enable_shared=no 16316 ;; 16317 16318 sysv4*MP*) 16319 if test -d /usr/nec; then 16320 lt_prog_compiler_pic_GCJ=-Kconform_pic 16321 fi 16322 ;; 16323 16324 hpux*) 16325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16326 # not for PA HP-UX. 16327 case $host_cpu in 16328 hppa*64*|ia64*) 16329 # +Z the default 16330 ;; 16331 *) 16332 lt_prog_compiler_pic_GCJ='-fPIC' 16333 ;; 16334 esac 16335 ;; 16336 16337 *) 16338 lt_prog_compiler_pic_GCJ='-fPIC' 16339 ;; 16340 esac 16341 else 16342 # PORTME Check for flag to pass linker flags through the system compiler. 16343 case $host_os in 16344 aix*) 16345 lt_prog_compiler_wl_GCJ='-Wl,' 16346 if test "$host_cpu" = ia64; then 16347 # AIX 5 now supports IA64 processor 16348 lt_prog_compiler_static_GCJ='-Bstatic' 16349 else 16350 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16351 fi 16352 ;; 16353 darwin*) 16354 # PIC is the default on this platform 16355 # Common symbols not allowed in MH_DYLIB files 16356 case $cc_basename in 16357 xlc*) 16358 lt_prog_compiler_pic_GCJ='-qnocommon' 16359 lt_prog_compiler_wl_GCJ='-Wl,' 16360 ;; 16361 esac 16362 ;; 16363 16364 mingw* | pw32* | os2*) 16365 # This hack is so that the source file can tell whether it is being 16366 # built for inclusion in a dll (and should export symbols for example). 16367 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16368 ;; 16369 16370 hpux9* | hpux10* | hpux11*) 16371 lt_prog_compiler_wl_GCJ='-Wl,' 16372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16373 # not for PA HP-UX. 16374 case $host_cpu in 16375 hppa*64*|ia64*) 16376 # +Z the default 16377 ;; 16378 *) 16379 lt_prog_compiler_pic_GCJ='+Z' 16380 ;; 16381 esac 16382 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16383 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16384 ;; 16385 16386 irix5* | irix6* | nonstopux*) 16387 lt_prog_compiler_wl_GCJ='-Wl,' 16388 # PIC (with -KPIC) is the default. 16389 lt_prog_compiler_static_GCJ='-non_shared' 16390 ;; 16391 16392 newsos6) 16393 lt_prog_compiler_pic_GCJ='-KPIC' 16394 lt_prog_compiler_static_GCJ='-Bstatic' 16395 ;; 16396 16397 linux*) 16398 case $cc_basename in 16399 icc* | ecc*) 16400 lt_prog_compiler_wl_GCJ='-Wl,' 16401 lt_prog_compiler_pic_GCJ='-KPIC' 16402 lt_prog_compiler_static_GCJ='-static' 16403 ;; 16404 pgcc* | pgf77* | pgf90* | pgf95*) 16405 # Portland Group compilers (*not* the Pentium gcc compiler, 16406 # which looks to be a dead project) 16407 lt_prog_compiler_wl_GCJ='-Wl,' 16408 lt_prog_compiler_pic_GCJ='-fpic' 16409 lt_prog_compiler_static_GCJ='-Bstatic' 16410 ;; 16411 ccc*) 16412 lt_prog_compiler_wl_GCJ='-Wl,' 16413 # All Alpha code is PIC. 16414 lt_prog_compiler_static_GCJ='-non_shared' 16415 ;; 16416 esac 16417 ;; 16418 16419 osf3* | osf4* | osf5*) 16420 lt_prog_compiler_wl_GCJ='-Wl,' 16421 # All OSF/1 code is PIC. 16422 lt_prog_compiler_static_GCJ='-non_shared' 16423 ;; 16424 16425 solaris*) 16426 lt_prog_compiler_pic_GCJ='-KPIC' 16427 lt_prog_compiler_static_GCJ='-Bstatic' 16428 case $cc_basename in 16429 f77* | f90* | f95*) 16430 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16431 *) 16432 lt_prog_compiler_wl_GCJ='-Wl,';; 16433 esac 16434 ;; 16435 16436 sunos4*) 16437 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16438 lt_prog_compiler_pic_GCJ='-PIC' 16439 lt_prog_compiler_static_GCJ='-Bstatic' 16440 ;; 16441 16442 sysv4 | sysv4.2uw2* | sysv4.3*) 16443 lt_prog_compiler_wl_GCJ='-Wl,' 16444 lt_prog_compiler_pic_GCJ='-KPIC' 16445 lt_prog_compiler_static_GCJ='-Bstatic' 16446 ;; 16447 16448 sysv4*MP*) 16449 if test -d /usr/nec ;then 16450 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16451 lt_prog_compiler_static_GCJ='-Bstatic' 16452 fi 16453 ;; 16454 16455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16456 lt_prog_compiler_wl_GCJ='-Wl,' 16457 lt_prog_compiler_pic_GCJ='-KPIC' 16458 lt_prog_compiler_static_GCJ='-Bstatic' 16459 ;; 16460 16461 unicos*) 16462 lt_prog_compiler_wl_GCJ='-Wl,' 16463 lt_prog_compiler_can_build_shared_GCJ=no 16464 ;; 16465 16466 uts4*) 16467 lt_prog_compiler_pic_GCJ='-pic' 16468 lt_prog_compiler_static_GCJ='-Bstatic' 16469 ;; 16470 16471 *) 16472 lt_prog_compiler_can_build_shared_GCJ=no 16473 ;; 16474 esac 16475 fi 16476 16477{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16478echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16479 16480# 16481# Check to make sure the PIC flag actually works. 16482# 16483if test -n "$lt_prog_compiler_pic_GCJ"; then 16484 16485{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16486echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16487if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16488 echo $ECHO_N "(cached) $ECHO_C" >&6 16489else 16490 lt_prog_compiler_pic_works_GCJ=no 16491 ac_outfile=conftest.$ac_objext 16492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16493 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16494 # Insert the option either (1) after the last *FLAGS variable, or 16495 # (2) before a word containing "conftest.", or (3) at the end. 16496 # Note that $ac_compile itself does not contain backslashes and begins 16497 # with a dollar sign (not a hyphen), so the echo should work correctly. 16498 # The option is referenced via a variable to avoid confusing sed. 16499 lt_compile=`echo "$ac_compile" | $SED \ 16500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16502 -e 's:$: $lt_compiler_flag:'` 16503 (eval echo "\"\$as_me:16503: $lt_compile\"" >&5) 16504 (eval "$lt_compile" 2>conftest.err) 16505 ac_status=$? 16506 cat conftest.err >&5 16507 echo "$as_me:16507: \$? = $ac_status" >&5 16508 if (exit $ac_status) && test -s "$ac_outfile"; then 16509 # The compiler can only warn and ignore the option if not recognized 16510 # So say no if there are warnings other than the usual output. 16511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16514 lt_prog_compiler_pic_works_GCJ=yes 16515 fi 16516 fi 16517 $rm conftest* 16518 16519fi 16520{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16521echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16522 16523if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16524 case $lt_prog_compiler_pic_GCJ in 16525 "" | " "*) ;; 16526 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16527 esac 16528else 16529 lt_prog_compiler_pic_GCJ= 16530 lt_prog_compiler_can_build_shared_GCJ=no 16531fi 16532 16533fi 16534case $host_os in 16535 # For platforms which do not support PIC, -DPIC is meaningless: 16536 *djgpp*) 16537 lt_prog_compiler_pic_GCJ= 16538 ;; 16539 *) 16540 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16541 ;; 16542esac 16543 16544# 16545# Check to make sure the static flag actually works. 16546# 16547wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16548{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16549echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16550if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16551 echo $ECHO_N "(cached) $ECHO_C" >&6 16552else 16553 lt_prog_compiler_static_works_GCJ=no 16554 save_LDFLAGS="$LDFLAGS" 16555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16556 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16558 # The linker can only warn and ignore the option if not recognized 16559 # So say no if there are warnings 16560 if test -s conftest.err; then 16561 # Append any errors to the config.log. 16562 cat conftest.err 1>&5 16563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16565 if diff conftest.exp conftest.er2 >/dev/null; then 16566 lt_prog_compiler_static_works_GCJ=yes 16567 fi 16568 else 16569 lt_prog_compiler_static_works_GCJ=yes 16570 fi 16571 fi 16572 $rm conftest* 16573 LDFLAGS="$save_LDFLAGS" 16574 16575fi 16576{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16577echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16578 16579if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16580 : 16581else 16582 lt_prog_compiler_static_GCJ= 16583fi 16584 16585 16586{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16587echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16588if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16589 echo $ECHO_N "(cached) $ECHO_C" >&6 16590else 16591 lt_cv_prog_compiler_c_o_GCJ=no 16592 $rm -r conftest 2>/dev/null 16593 mkdir conftest 16594 cd conftest 16595 mkdir out 16596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16597 16598 lt_compiler_flag="-o out/conftest2.$ac_objext" 16599 # Insert the option either (1) after the last *FLAGS variable, or 16600 # (2) before a word containing "conftest.", or (3) at the end. 16601 # Note that $ac_compile itself does not contain backslashes and begins 16602 # with a dollar sign (not a hyphen), so the echo should work correctly. 16603 lt_compile=`echo "$ac_compile" | $SED \ 16604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16606 -e 's:$: $lt_compiler_flag:'` 16607 (eval echo "\"\$as_me:16607: $lt_compile\"" >&5) 16608 (eval "$lt_compile" 2>out/conftest.err) 16609 ac_status=$? 16610 cat out/conftest.err >&5 16611 echo "$as_me:16611: \$? = $ac_status" >&5 16612 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16613 then 16614 # The compiler can only warn and ignore the option if not recognized 16615 # So say no if there are warnings 16616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16619 lt_cv_prog_compiler_c_o_GCJ=yes 16620 fi 16621 fi 16622 chmod u+w . 2>&5 16623 $rm conftest* 16624 # SGI C++ compiler will create directory out/ii_files/ for 16625 # template instantiation 16626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16627 $rm out/* && rmdir out 16628 cd .. 16629 rmdir conftest 16630 $rm conftest* 16631 16632fi 16633{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16634echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16635 16636 16637hard_links="nottested" 16638if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16639 # do not overwrite the value of need_locks provided by the user 16640 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16641echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16642 hard_links=yes 16643 $rm conftest* 16644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16645 touch conftest.a 16646 ln conftest.a conftest.b 2>&5 || hard_links=no 16647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16648 { echo "$as_me:$LINENO: result: $hard_links" >&5 16649echo "${ECHO_T}$hard_links" >&6; } 16650 if test "$hard_links" = no; then 16651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16652echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16653 need_locks=warn 16654 fi 16655else 16656 need_locks=no 16657fi 16658 16659{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16661 16662 runpath_var= 16663 allow_undefined_flag_GCJ= 16664 enable_shared_with_static_runtimes_GCJ=no 16665 archive_cmds_GCJ= 16666 archive_expsym_cmds_GCJ= 16667 old_archive_From_new_cmds_GCJ= 16668 old_archive_from_expsyms_cmds_GCJ= 16669 export_dynamic_flag_spec_GCJ= 16670 whole_archive_flag_spec_GCJ= 16671 thread_safe_flag_spec_GCJ= 16672 hardcode_libdir_flag_spec_GCJ= 16673 hardcode_libdir_flag_spec_ld_GCJ= 16674 hardcode_libdir_separator_GCJ= 16675 hardcode_direct_GCJ=no 16676 hardcode_minus_L_GCJ=no 16677 hardcode_shlibpath_var_GCJ=unsupported 16678 link_all_deplibs_GCJ=unknown 16679 hardcode_automatic_GCJ=no 16680 module_cmds_GCJ= 16681 module_expsym_cmds_GCJ= 16682 always_export_symbols_GCJ=no 16683 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16684 # include_expsyms should be a list of space-separated symbols to be *always* 16685 # included in the symbol list 16686 include_expsyms_GCJ= 16687 # exclude_expsyms can be an extended regexp of symbols to exclude 16688 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16690 # as well as any symbol that contains `d'. 16691 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16693 # platforms (ab)use it in PIC code, but their linkers get confused if 16694 # the symbol is explicitly referenced. Since portable code cannot 16695 # rely on this symbol name, it's probably fine to never include it in 16696 # preloaded symbol tables. 16697 extract_expsyms_cmds= 16698 # Just being paranoid about ensuring that cc_basename is set. 16699 for cc_temp in $compiler""; do 16700 case $cc_temp in 16701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16703 \-*) ;; 16704 *) break;; 16705 esac 16706done 16707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16708 16709 case $host_os in 16710 cygwin* | mingw* | pw32*) 16711 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16712 # When not using gcc, we currently assume that we are using 16713 # Microsoft Visual C++. 16714 if test "$GCC" != yes; then 16715 with_gnu_ld=no 16716 fi 16717 ;; 16718 interix*) 16719 # we just hope/assume this is gcc and not c89 (= MSVC++) 16720 with_gnu_ld=yes 16721 ;; 16722 openbsd*) 16723 with_gnu_ld=no 16724 ;; 16725 esac 16726 16727 ld_shlibs_GCJ=yes 16728 if test "$with_gnu_ld" = yes; then 16729 # If archive_cmds runs LD, not CC, wlarc should be empty 16730 wlarc='${wl}' 16731 16732 # Set some defaults for GNU ld with shared library support. These 16733 # are reset later if shared libraries are not supported. Putting them 16734 # here allows them to be overridden if necessary. 16735 runpath_var=LD_RUN_PATH 16736 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16737 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16738 # ancient GNU ld didn't support --whole-archive et. al. 16739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16740 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16741 else 16742 whole_archive_flag_spec_GCJ= 16743 fi 16744 supports_anon_versioning=no 16745 case `$LD -v 2>/dev/null` in 16746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16749 *\ 2.11.*) ;; # other 2.11 versions 16750 *) supports_anon_versioning=yes ;; 16751 esac 16752 16753 # See if GNU ld supports shared libraries. 16754 case $host_os in 16755 aix3* | aix4* | aix5*) 16756 # On AIX/PPC, the GNU linker is very broken 16757 if test "$host_cpu" != ia64; then 16758 ld_shlibs_GCJ=no 16759 cat <<EOF 1>&2 16760 16761*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16762*** to be unable to reliably create shared libraries on AIX. 16763*** Therefore, libtool is disabling shared libraries support. If you 16764*** really care for shared libraries, you may want to modify your PATH 16765*** so that a non-GNU linker is found, and then restart. 16766 16767EOF 16768 fi 16769 ;; 16770 16771 amigaos*) 16772 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)' 16773 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16774 hardcode_minus_L_GCJ=yes 16775 16776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16777 # that the semantics of dynamic libraries on AmigaOS, at least up 16778 # to version 4, is to share data among multiple programs linked 16779 # with the same dynamic library. Since this doesn't match the 16780 # behavior of shared libraries on other platforms, we can't use 16781 # them. 16782 ld_shlibs_GCJ=no 16783 ;; 16784 16785 beos*) 16786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16787 allow_undefined_flag_GCJ=unsupported 16788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16789 # support --undefined. This deserves some investigation. FIXME 16790 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16791 else 16792 ld_shlibs_GCJ=no 16793 fi 16794 ;; 16795 16796 cygwin* | mingw* | pw32*) 16797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16798 # as there is no search path for DLLs. 16799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16800 allow_undefined_flag_GCJ=unsupported 16801 always_export_symbols_GCJ=no 16802 enable_shared_with_static_runtimes_GCJ=yes 16803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16804 16805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16807 # If the export-symbols file already is a .def file (1st line 16808 # is EXPORTS), use it as is; otherwise, prepend... 16809 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16810 cp $export_symbols $output_objdir/$soname.def; 16811 else 16812 echo EXPORTS > $output_objdir/$soname.def; 16813 cat $export_symbols >> $output_objdir/$soname.def; 16814 fi~ 16815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16816 else 16817 ld_shlibs_GCJ=no 16818 fi 16819 ;; 16820 16821 interix3*) 16822 hardcode_direct_GCJ=no 16823 hardcode_shlibpath_var_GCJ=no 16824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16825 export_dynamic_flag_spec_GCJ='${wl}-E' 16826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16827 # Instead, shared libraries are loaded at an image base (0x10000000 by 16828 # default) and relocated if they conflict, which is a slow very memory 16829 # consuming and fragmenting process. To avoid this, we pick a random, 16830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16831 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16832 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' 16833 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' 16834 ;; 16835 16836 linux*) 16837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16838 tmp_addflag= 16839 case $cc_basename,$host_cpu in 16840 pgcc*) # Portland Group C compiler 16841 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' 16842 tmp_addflag=' $pic_flag' 16843 ;; 16844 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16845 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' 16846 tmp_addflag=' $pic_flag -Mnomain' ;; 16847 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16848 tmp_addflag=' -i_dynamic' ;; 16849 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16850 tmp_addflag=' -i_dynamic -nofor_main' ;; 16851 ifc* | ifort*) # Intel Fortran compiler 16852 tmp_addflag=' -nofor_main' ;; 16853 esac 16854 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16855 16856 if test $supports_anon_versioning = yes; then 16857 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16859 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16860 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16861 fi 16862 else 16863 ld_shlibs_GCJ=no 16864 fi 16865 ;; 16866 16867 netbsd*) 16868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16869 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16870 wlarc= 16871 else 16872 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16873 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16874 fi 16875 ;; 16876 16877 solaris*) 16878 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16879 ld_shlibs_GCJ=no 16880 cat <<EOF 1>&2 16881 16882*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16883*** create shared libraries on Solaris systems. Therefore, libtool 16884*** is disabling shared libraries support. We urge you to upgrade GNU 16885*** binutils to release 2.9.1 or newer. Another option is to modify 16886*** your PATH or compiler configuration so that the native linker is 16887*** used, and then restart. 16888 16889EOF 16890 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16891 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16892 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16893 else 16894 ld_shlibs_GCJ=no 16895 fi 16896 ;; 16897 16898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16899 case `$LD -v 2>&1` in 16900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16901 ld_shlibs_GCJ=no 16902 cat <<_LT_EOF 1>&2 16903 16904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16905*** reliably create shared libraries on SCO systems. Therefore, libtool 16906*** is disabling shared libraries support. We urge you to upgrade GNU 16907*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16908*** your PATH or compiler configuration so that the native linker is 16909*** used, and then restart. 16910 16911_LT_EOF 16912 ;; 16913 *) 16914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16915 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16916 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16917 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16918 else 16919 ld_shlibs_GCJ=no 16920 fi 16921 ;; 16922 esac 16923 ;; 16924 16925 sunos4*) 16926 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16927 wlarc= 16928 hardcode_direct_GCJ=yes 16929 hardcode_shlibpath_var_GCJ=no 16930 ;; 16931 16932 *) 16933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16934 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16935 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16936 else 16937 ld_shlibs_GCJ=no 16938 fi 16939 ;; 16940 esac 16941 16942 if test "$ld_shlibs_GCJ" = no; then 16943 runpath_var= 16944 hardcode_libdir_flag_spec_GCJ= 16945 export_dynamic_flag_spec_GCJ= 16946 whole_archive_flag_spec_GCJ= 16947 fi 16948 else 16949 # PORTME fill in a description of your system's linker (not GNU ld) 16950 case $host_os in 16951 aix3*) 16952 allow_undefined_flag_GCJ=unsupported 16953 always_export_symbols_GCJ=yes 16954 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' 16955 # Note: this linker hardcodes the directories in LIBPATH if there 16956 # are no directories specified by -L. 16957 hardcode_minus_L_GCJ=yes 16958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16959 # Neither direct hardcoding nor static linking is supported with a 16960 # broken collect2. 16961 hardcode_direct_GCJ=unsupported 16962 fi 16963 ;; 16964 16965 aix4* | aix5*) 16966 if test "$host_cpu" = ia64; then 16967 # On IA64, the linker does run time linking by default, so we don't 16968 # have to do anything special. 16969 aix_use_runtimelinking=no 16970 exp_sym_flag='-Bexport' 16971 no_entry_flag="" 16972 else 16973 # If we're using GNU nm, then we don't want the "-C" option. 16974 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16976 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' 16977 else 16978 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' 16979 fi 16980 aix_use_runtimelinking=no 16981 16982 # Test if we are trying to use run time linking or normal 16983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16984 # need to do runtime linking. 16985 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16986 for ld_flag in $LDFLAGS; do 16987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16988 aix_use_runtimelinking=yes 16989 break 16990 fi 16991 done 16992 ;; 16993 esac 16994 16995 exp_sym_flag='-bexport' 16996 no_entry_flag='-bnoentry' 16997 fi 16998 16999 # When large executables or shared objects are built, AIX ld can 17000 # have problems creating the table of contents. If linking a library 17001 # or program results in "error TOC overflow" add -mminimal-toc to 17002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17004 17005 archive_cmds_GCJ='' 17006 hardcode_direct_GCJ=yes 17007 hardcode_libdir_separator_GCJ=':' 17008 link_all_deplibs_GCJ=yes 17009 17010 if test "$GCC" = yes; then 17011 case $host_os in aix4.[012]|aix4.[012].*) 17012 # We only want to do this on AIX 4.2 and lower, the check 17013 # below for broken collect2 doesn't work under 4.3+ 17014 collect2name=`${CC} -print-prog-name=collect2` 17015 if test -f "$collect2name" && \ 17016 strings "$collect2name" | grep resolve_lib_name >/dev/null 17017 then 17018 # We have reworked collect2 17019 hardcode_direct_GCJ=yes 17020 else 17021 # We have old collect2 17022 hardcode_direct_GCJ=unsupported 17023 # It fails to find uninstalled libraries when the uninstalled 17024 # path is not listed in the libpath. Setting hardcode_minus_L 17025 # to unsupported forces relinking 17026 hardcode_minus_L_GCJ=yes 17027 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17028 hardcode_libdir_separator_GCJ= 17029 fi 17030 ;; 17031 esac 17032 shared_flag='-shared' 17033 if test "$aix_use_runtimelinking" = yes; then 17034 shared_flag="$shared_flag "'${wl}-G' 17035 fi 17036 else 17037 # not using gcc 17038 if test "$host_cpu" = ia64; then 17039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17040 # chokes on -Wl,-G. The following line is correct: 17041 shared_flag='-G' 17042 else 17043 if test "$aix_use_runtimelinking" = yes; then 17044 shared_flag='${wl}-G' 17045 else 17046 shared_flag='${wl}-bM:SRE' 17047 fi 17048 fi 17049 fi 17050 17051 # It seems that -bexpall does not export symbols beginning with 17052 # underscore (_), so it is better to generate a list of symbols to export. 17053 always_export_symbols_GCJ=yes 17054 if test "$aix_use_runtimelinking" = yes; then 17055 # Warning - without using the other runtime loading flags (-brtl), 17056 # -berok will link without error, but may produce a broken library. 17057 allow_undefined_flag_GCJ='-berok' 17058 # Determine the default libpath from the value encoded in an empty executable. 17059 cat >conftest.$ac_ext <<_ACEOF 17060/* confdefs.h. */ 17061_ACEOF 17062cat confdefs.h >>conftest.$ac_ext 17063cat >>conftest.$ac_ext <<_ACEOF 17064/* end confdefs.h. */ 17065 17066int 17067main () 17068{ 17069 17070 ; 17071 return 0; 17072} 17073_ACEOF 17074rm -f conftest.$ac_objext conftest$ac_exeext 17075if { (ac_try="$ac_link" 17076case "(($ac_try" in 17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17078 *) ac_try_echo=$ac_try;; 17079esac 17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17081 (eval "$ac_link") 2>conftest.er1 17082 ac_status=$? 17083 grep -v '^ *+' conftest.er1 >conftest.err 17084 rm -f conftest.er1 17085 cat conftest.err >&5 17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17087 (exit $ac_status); } && { 17088 test -z "$ac_c_werror_flag" || 17089 test ! -s conftest.err 17090 } && test -s conftest$ac_exeext && 17091 $as_test_x conftest$ac_exeext; then 17092 17093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17094}'` 17095# Check for a 64-bit object if we didn't find anything. 17096if 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; } 17097}'`; fi 17098else 17099 echo "$as_me: failed program was:" >&5 17100sed 's/^/| /' conftest.$ac_ext >&5 17101 17102 17103fi 17104 17105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17106 conftest$ac_exeext conftest.$ac_ext 17107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17108 17109 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17110 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" 17111 else 17112 if test "$host_cpu" = ia64; then 17113 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17114 allow_undefined_flag_GCJ="-z nodefs" 17115 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" 17116 else 17117 # Determine the default libpath from the value encoded in an empty executable. 17118 cat >conftest.$ac_ext <<_ACEOF 17119/* confdefs.h. */ 17120_ACEOF 17121cat confdefs.h >>conftest.$ac_ext 17122cat >>conftest.$ac_ext <<_ACEOF 17123/* end confdefs.h. */ 17124 17125int 17126main () 17127{ 17128 17129 ; 17130 return 0; 17131} 17132_ACEOF 17133rm -f conftest.$ac_objext conftest$ac_exeext 17134if { (ac_try="$ac_link" 17135case "(($ac_try" in 17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17137 *) ac_try_echo=$ac_try;; 17138esac 17139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17140 (eval "$ac_link") 2>conftest.er1 17141 ac_status=$? 17142 grep -v '^ *+' conftest.er1 >conftest.err 17143 rm -f conftest.er1 17144 cat conftest.err >&5 17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17146 (exit $ac_status); } && { 17147 test -z "$ac_c_werror_flag" || 17148 test ! -s conftest.err 17149 } && test -s conftest$ac_exeext && 17150 $as_test_x conftest$ac_exeext; then 17151 17152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17153}'` 17154# Check for a 64-bit object if we didn't find anything. 17155if 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; } 17156}'`; fi 17157else 17158 echo "$as_me: failed program was:" >&5 17159sed 's/^/| /' conftest.$ac_ext >&5 17160 17161 17162fi 17163 17164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17165 conftest$ac_exeext conftest.$ac_ext 17166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17167 17168 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17169 # Warning - without using the other run time loading flags, 17170 # -berok will link without error, but may produce a broken library. 17171 no_undefined_flag_GCJ=' ${wl}-bernotok' 17172 allow_undefined_flag_GCJ=' ${wl}-berok' 17173 # Exported symbols can be pulled into shared objects from archives 17174 whole_archive_flag_spec_GCJ='$convenience' 17175 archive_cmds_need_lc_GCJ=yes 17176 # This is similar to how AIX traditionally builds its shared libraries. 17177 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' 17178 fi 17179 fi 17180 ;; 17181 17182 amigaos*) 17183 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)' 17184 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17185 hardcode_minus_L_GCJ=yes 17186 # see comment about different semantics on the GNU ld section 17187 ld_shlibs_GCJ=no 17188 ;; 17189 17190 bsdi[45]*) 17191 export_dynamic_flag_spec_GCJ=-rdynamic 17192 ;; 17193 17194 cygwin* | mingw* | pw32*) 17195 # When not using gcc, we currently assume that we are using 17196 # Microsoft Visual C++. 17197 # hardcode_libdir_flag_spec is actually meaningless, as there is 17198 # no search path for DLLs. 17199 hardcode_libdir_flag_spec_GCJ=' ' 17200 allow_undefined_flag_GCJ=unsupported 17201 # Tell ltmain to make .lib files, not .a files. 17202 libext=lib 17203 # Tell ltmain to make .dll files, not .so files. 17204 shrext_cmds=".dll" 17205 # FIXME: Setting linknames here is a bad hack. 17206 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17207 # The linker will automatically build a .lib file if we build a DLL. 17208 old_archive_From_new_cmds_GCJ='true' 17209 # FIXME: Should let the user specify the lib program. 17210 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17211 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17212 enable_shared_with_static_runtimes_GCJ=yes 17213 ;; 17214 17215 darwin* | rhapsody*) 17216 case $host_os in 17217 rhapsody* | darwin1.[012]) 17218 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17219 ;; 17220 *) # Darwin 1.3 on 17221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17223 else 17224 case ${MACOSX_DEPLOYMENT_TARGET} in 17225 10.[012]) 17226 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17227 ;; 17228 10.*) 17229 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17230 ;; 17231 esac 17232 fi 17233 ;; 17234 esac 17235 archive_cmds_need_lc_GCJ=no 17236 hardcode_direct_GCJ=no 17237 hardcode_automatic_GCJ=yes 17238 hardcode_shlibpath_var_GCJ=unsupported 17239 whole_archive_flag_spec_GCJ='' 17240 link_all_deplibs_GCJ=yes 17241 if test "$GCC" = yes ; then 17242 output_verbose_link_cmd='echo' 17243 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17244 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17246 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}' 17247 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}' 17248 else 17249 case $cc_basename in 17250 xlc*) 17251 output_verbose_link_cmd='echo' 17252 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17253 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17255 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}' 17256 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}' 17257 ;; 17258 *) 17259 ld_shlibs_GCJ=no 17260 ;; 17261 esac 17262 fi 17263 ;; 17264 17265 dgux*) 17266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17267 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17268 hardcode_shlibpath_var_GCJ=no 17269 ;; 17270 17271 freebsd1*) 17272 ld_shlibs_GCJ=no 17273 ;; 17274 17275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17276 # support. Future versions do this automatically, but an explicit c++rt0.o 17277 # does not break anything, and helps significantly (at the cost of a little 17278 # extra space). 17279 freebsd2.2*) 17280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17281 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17282 hardcode_direct_GCJ=yes 17283 hardcode_shlibpath_var_GCJ=no 17284 ;; 17285 17286 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17287 freebsd2*) 17288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17289 hardcode_direct_GCJ=yes 17290 hardcode_minus_L_GCJ=yes 17291 hardcode_shlibpath_var_GCJ=no 17292 ;; 17293 17294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17295 freebsd* | kfreebsd*-gnu | dragonfly*) 17296 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17297 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17298 hardcode_direct_GCJ=yes 17299 hardcode_shlibpath_var_GCJ=no 17300 ;; 17301 17302 hpux9*) 17303 if test "$GCC" = yes; then 17304 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' 17305 else 17306 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' 17307 fi 17308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17309 hardcode_libdir_separator_GCJ=: 17310 hardcode_direct_GCJ=yes 17311 17312 # hardcode_minus_L: Not really in the search PATH, 17313 # but as the default location of the library. 17314 hardcode_minus_L_GCJ=yes 17315 export_dynamic_flag_spec_GCJ='${wl}-E' 17316 ;; 17317 17318 hpux10*) 17319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17320 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17321 else 17322 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17323 fi 17324 if test "$with_gnu_ld" = no; then 17325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17326 hardcode_libdir_separator_GCJ=: 17327 17328 hardcode_direct_GCJ=yes 17329 export_dynamic_flag_spec_GCJ='${wl}-E' 17330 17331 # hardcode_minus_L: Not really in the search PATH, 17332 # but as the default location of the library. 17333 hardcode_minus_L_GCJ=yes 17334 fi 17335 ;; 17336 17337 hpux11*) 17338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17339 case $host_cpu in 17340 hppa*64*) 17341 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17342 ;; 17343 ia64*) 17344 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17345 ;; 17346 *) 17347 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17348 ;; 17349 esac 17350 else 17351 case $host_cpu in 17352 hppa*64*) 17353 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17354 ;; 17355 ia64*) 17356 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17357 ;; 17358 *) 17359 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17360 ;; 17361 esac 17362 fi 17363 if test "$with_gnu_ld" = no; then 17364 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17365 hardcode_libdir_separator_GCJ=: 17366 17367 case $host_cpu in 17368 hppa*64*|ia64*) 17369 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17370 hardcode_direct_GCJ=no 17371 hardcode_shlibpath_var_GCJ=no 17372 ;; 17373 *) 17374 hardcode_direct_GCJ=yes 17375 export_dynamic_flag_spec_GCJ='${wl}-E' 17376 17377 # hardcode_minus_L: Not really in the search PATH, 17378 # but as the default location of the library. 17379 hardcode_minus_L_GCJ=yes 17380 ;; 17381 esac 17382 fi 17383 ;; 17384 17385 irix5* | irix6* | nonstopux*) 17386 if test "$GCC" = yes; then 17387 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' 17388 else 17389 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' 17390 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17391 fi 17392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17393 hardcode_libdir_separator_GCJ=: 17394 link_all_deplibs_GCJ=yes 17395 ;; 17396 17397 netbsd*) 17398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17399 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17400 else 17401 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17402 fi 17403 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17404 hardcode_direct_GCJ=yes 17405 hardcode_shlibpath_var_GCJ=no 17406 ;; 17407 17408 newsos6) 17409 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17410 hardcode_direct_GCJ=yes 17411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17412 hardcode_libdir_separator_GCJ=: 17413 hardcode_shlibpath_var_GCJ=no 17414 ;; 17415 17416 openbsd*) 17417 hardcode_direct_GCJ=yes 17418 hardcode_shlibpath_var_GCJ=no 17419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17420 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17421 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17423 export_dynamic_flag_spec_GCJ='${wl}-E' 17424 else 17425 case $host_os in 17426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17427 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17428 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17429 ;; 17430 *) 17431 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17433 ;; 17434 esac 17435 fi 17436 ;; 17437 17438 os2*) 17439 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17440 hardcode_minus_L_GCJ=yes 17441 allow_undefined_flag_GCJ=unsupported 17442 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' 17443 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17444 ;; 17445 17446 osf3*) 17447 if test "$GCC" = yes; then 17448 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17449 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' 17450 else 17451 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17452 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' 17453 fi 17454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17455 hardcode_libdir_separator_GCJ=: 17456 ;; 17457 17458 osf4* | osf5*) # as osf3* with the addition of -msym flag 17459 if test "$GCC" = yes; then 17460 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17461 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' 17462 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17463 else 17464 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17465 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' 17466 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~ 17467 $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' 17468 17469 # Both c and cxx compiler support -rpath directly 17470 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17471 fi 17472 hardcode_libdir_separator_GCJ=: 17473 ;; 17474 17475 solaris*) 17476 no_undefined_flag_GCJ=' -z text' 17477 if test "$GCC" = yes; then 17478 wlarc='${wl}' 17479 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17480 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17481 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17482 else 17483 wlarc='' 17484 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17485 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17487 fi 17488 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17489 hardcode_shlibpath_var_GCJ=no 17490 case $host_os in 17491 solaris2.[0-5] | solaris2.[0-5].*) ;; 17492 *) 17493 # The compiler driver will combine linker options so we 17494 # cannot just pass the convience library names through 17495 # without $wl, iff we do not link with $LD. 17496 # Luckily, gcc supports the same syntax we need for Sun Studio. 17497 # Supported since Solaris 2.6 (maybe 2.5.1?) 17498 case $wlarc in 17499 '') 17500 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17501 *) 17502 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' ;; 17503 esac ;; 17504 esac 17505 link_all_deplibs_GCJ=yes 17506 ;; 17507 17508 sunos4*) 17509 if test "x$host_vendor" = xsequent; then 17510 # Use $CC to link under sequent, because it throws in some extra .o 17511 # files that make .init and .fini sections work. 17512 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17513 else 17514 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17515 fi 17516 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17517 hardcode_direct_GCJ=yes 17518 hardcode_minus_L_GCJ=yes 17519 hardcode_shlibpath_var_GCJ=no 17520 ;; 17521 17522 sysv4) 17523 case $host_vendor in 17524 sni) 17525 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17526 hardcode_direct_GCJ=yes # is this really true??? 17527 ;; 17528 siemens) 17529 ## LD is ld it makes a PLAMLIB 17530 ## CC just makes a GrossModule. 17531 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17532 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17533 hardcode_direct_GCJ=no 17534 ;; 17535 motorola) 17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17537 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17538 ;; 17539 esac 17540 runpath_var='LD_RUN_PATH' 17541 hardcode_shlibpath_var_GCJ=no 17542 ;; 17543 17544 sysv4.3*) 17545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17546 hardcode_shlibpath_var_GCJ=no 17547 export_dynamic_flag_spec_GCJ='-Bexport' 17548 ;; 17549 17550 sysv4*MP*) 17551 if test -d /usr/nec; then 17552 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17553 hardcode_shlibpath_var_GCJ=no 17554 runpath_var=LD_RUN_PATH 17555 hardcode_runpath_var=yes 17556 ld_shlibs_GCJ=yes 17557 fi 17558 ;; 17559 17560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17561 no_undefined_flag_GCJ='${wl}-z,text' 17562 archive_cmds_need_lc_GCJ=no 17563 hardcode_shlibpath_var_GCJ=no 17564 runpath_var='LD_RUN_PATH' 17565 17566 if test "$GCC" = yes; then 17567 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17568 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17569 else 17570 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17571 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17572 fi 17573 ;; 17574 17575 sysv5* | sco3.2v5* | sco5v6*) 17576 # Note: We can NOT use -z defs as we might desire, because we do not 17577 # link with -lc, and that would cause any symbols used from libc to 17578 # always be unresolved, which means just about no library would 17579 # ever link correctly. If we're not using GNU ld we use -z text 17580 # though, which does catch some bad symbols but isn't as heavy-handed 17581 # as -z defs. 17582 no_undefined_flag_GCJ='${wl}-z,text' 17583 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17584 archive_cmds_need_lc_GCJ=no 17585 hardcode_shlibpath_var_GCJ=no 17586 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17587 hardcode_libdir_separator_GCJ=':' 17588 link_all_deplibs_GCJ=yes 17589 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17590 runpath_var='LD_RUN_PATH' 17591 17592 if test "$GCC" = yes; then 17593 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17594 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17595 else 17596 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17597 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17598 fi 17599 ;; 17600 17601 uts4*) 17602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17603 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17604 hardcode_shlibpath_var_GCJ=no 17605 ;; 17606 17607 *) 17608 ld_shlibs_GCJ=no 17609 ;; 17610 esac 17611 fi 17612 17613{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17614echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17615test "$ld_shlibs_GCJ" = no && can_build_shared=no 17616 17617# 17618# Do we need to explicitly link libc? 17619# 17620case "x$archive_cmds_need_lc_GCJ" in 17621x|xyes) 17622 # Assume -lc should be added 17623 archive_cmds_need_lc_GCJ=yes 17624 17625 if test "$enable_shared" = yes && test "$GCC" = yes; then 17626 case $archive_cmds_GCJ in 17627 *'~'*) 17628 # FIXME: we may have to deal with multi-command sequences. 17629 ;; 17630 '$CC '*) 17631 # Test whether the compiler implicitly links with -lc since on some 17632 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17633 # to ld, don't add -lc before -lgcc. 17634 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17635echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17636 $rm conftest* 17637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17638 17639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17640 (eval $ac_compile) 2>&5 17641 ac_status=$? 17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17643 (exit $ac_status); } 2>conftest.err; then 17644 soname=conftest 17645 lib=conftest 17646 libobjs=conftest.$ac_objext 17647 deplibs= 17648 wl=$lt_prog_compiler_wl_GCJ 17649 pic_flag=$lt_prog_compiler_pic_GCJ 17650 compiler_flags=-v 17651 linker_flags=-v 17652 verstring= 17653 output_objdir=. 17654 libname=conftest 17655 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17656 allow_undefined_flag_GCJ= 17657 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17658 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17659 ac_status=$? 17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17661 (exit $ac_status); } 17662 then 17663 archive_cmds_need_lc_GCJ=no 17664 else 17665 archive_cmds_need_lc_GCJ=yes 17666 fi 17667 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17668 else 17669 cat conftest.err 1>&5 17670 fi 17671 $rm conftest* 17672 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17673echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17674 ;; 17675 esac 17676 fi 17677 ;; 17678esac 17679 17680{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17681echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17682library_names_spec= 17683libname_spec='lib$name' 17684soname_spec= 17685shrext_cmds=".so" 17686postinstall_cmds= 17687postuninstall_cmds= 17688finish_cmds= 17689finish_eval= 17690shlibpath_var= 17691shlibpath_overrides_runpath=unknown 17692version_type=none 17693dynamic_linker="$host_os ld.so" 17694sys_lib_dlsearch_path_spec="/lib /usr/lib" 17695if test "$GCC" = yes; then 17696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17697 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17698 # if the path contains ";" then we assume it to be the separator 17699 # otherwise default to the standard path separator (i.e. ":") - it is 17700 # assumed that no part of a normal pathname contains ";" but that should 17701 # okay in the real world where ";" in dirpaths is itself problematic. 17702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17703 else 17704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17705 fi 17706else 17707 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17708fi 17709need_lib_prefix=unknown 17710hardcode_into_libs=no 17711 17712# when you set need_version to no, make sure it does not cause -set_version 17713# flags to be left without arguments 17714need_version=unknown 17715 17716case $host_os in 17717aix3*) 17718 version_type=linux 17719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17720 shlibpath_var=LIBPATH 17721 17722 # AIX 3 has no versioning support, so we append a major version to the name. 17723 soname_spec='${libname}${release}${shared_ext}$major' 17724 ;; 17725 17726aix4* | aix5*) 17727 version_type=linux 17728 need_lib_prefix=no 17729 need_version=no 17730 hardcode_into_libs=yes 17731 if test "$host_cpu" = ia64; then 17732 # AIX 5 supports IA64 17733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17734 shlibpath_var=LD_LIBRARY_PATH 17735 else 17736 # With GCC up to 2.95.x, collect2 would create an import file 17737 # for dependence libraries. The import file would start with 17738 # the line `#! .'. This would cause the generated library to 17739 # depend on `.', always an invalid library. This was fixed in 17740 # development snapshots of GCC prior to 3.0. 17741 case $host_os in 17742 aix4 | aix4.[01] | aix4.[01].*) 17743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17744 echo ' yes ' 17745 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17746 : 17747 else 17748 can_build_shared=no 17749 fi 17750 ;; 17751 esac 17752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17753 # soname into executable. Probably we can add versioning support to 17754 # collect2, so additional links can be useful in future. 17755 if test "$aix_use_runtimelinking" = yes; then 17756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17757 # instead of lib<name>.a to let people know that these are not 17758 # typical AIX shared libraries. 17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17760 else 17761 # We preserve .a as extension for shared libraries through AIX4.2 17762 # and later when we are not doing run time linking. 17763 library_names_spec='${libname}${release}.a $libname.a' 17764 soname_spec='${libname}${release}${shared_ext}$major' 17765 fi 17766 shlibpath_var=LIBPATH 17767 fi 17768 ;; 17769 17770amigaos*) 17771 library_names_spec='$libname.ixlibrary $libname.a' 17772 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17773 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' 17774 ;; 17775 17776beos*) 17777 library_names_spec='${libname}${shared_ext}' 17778 dynamic_linker="$host_os ld.so" 17779 shlibpath_var=LIBRARY_PATH 17780 ;; 17781 17782bsdi[45]*) 17783 version_type=linux 17784 need_version=no 17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17786 soname_spec='${libname}${release}${shared_ext}$major' 17787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17788 shlibpath_var=LD_LIBRARY_PATH 17789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17791 # the default ld.so.conf also contains /usr/contrib/lib and 17792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17793 # libtool to hard-code these into programs 17794 ;; 17795 17796cygwin* | mingw* | pw32*) 17797 version_type=windows 17798 shrext_cmds=".dll" 17799 need_version=no 17800 need_lib_prefix=no 17801 17802 case $GCC,$host_os in 17803 yes,cygwin* | yes,mingw* | yes,pw32*) 17804 library_names_spec='$libname.dll.a' 17805 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17806 postinstall_cmds='base_file=`basename \${file}`~ 17807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17808 dldir=$destdir/`dirname \$dlpath`~ 17809 test -d \$dldir || mkdir -p \$dldir~ 17810 $install_prog $dir/$dlname \$dldir/$dlname~ 17811 chmod a+x \$dldir/$dlname' 17812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17813 dlpath=$dir/\$dldll~ 17814 $rm \$dlpath' 17815 shlibpath_overrides_runpath=yes 17816 17817 case $host_os in 17818 cygwin*) 17819 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17822 ;; 17823 mingw*) 17824 # MinGW DLLs use traditional 'lib' prefix 17825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17828 # It is most probably a Windows format PATH printed by 17829 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17830 # path with ; separators, and with drive letters. We can handle the 17831 # drive letters (cygwin fileutils understands them), so leave them, 17832 # especially as we might pass files found there to a mingw objdump, 17833 # which wouldn't understand a cygwinified path. Ahh. 17834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17835 else 17836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17837 fi 17838 ;; 17839 pw32*) 17840 # pw32 DLLs use 'pw' prefix rather than 'lib' 17841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17842 ;; 17843 esac 17844 ;; 17845 17846 *) 17847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17848 ;; 17849 esac 17850 dynamic_linker='Win32 ld.exe' 17851 # FIXME: first we should search . and the directory the executable is in 17852 shlibpath_var=PATH 17853 ;; 17854 17855darwin* | rhapsody*) 17856 dynamic_linker="$host_os dyld" 17857 version_type=darwin 17858 need_lib_prefix=no 17859 need_version=no 17860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17861 soname_spec='${libname}${release}${major}$shared_ext' 17862 shlibpath_overrides_runpath=yes 17863 shlibpath_var=DYLD_LIBRARY_PATH 17864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17866 if test "$GCC" = yes; then 17867 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"` 17868 else 17869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17870 fi 17871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17872 ;; 17873 17874dgux*) 17875 version_type=linux 17876 need_lib_prefix=no 17877 need_version=no 17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17879 soname_spec='${libname}${release}${shared_ext}$major' 17880 shlibpath_var=LD_LIBRARY_PATH 17881 ;; 17882 17883freebsd1*) 17884 dynamic_linker=no 17885 ;; 17886 17887kfreebsd*-gnu) 17888 version_type=linux 17889 need_lib_prefix=no 17890 need_version=no 17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17892 soname_spec='${libname}${release}${shared_ext}$major' 17893 shlibpath_var=LD_LIBRARY_PATH 17894 shlibpath_overrides_runpath=no 17895 hardcode_into_libs=yes 17896 dynamic_linker='GNU ld.so' 17897 ;; 17898 17899freebsd* | dragonfly*) 17900 # DragonFly does not have aout. When/if they implement a new 17901 # versioning mechanism, adjust this. 17902 if test -x /usr/bin/objformat; then 17903 objformat=`/usr/bin/objformat` 17904 else 17905 case $host_os in 17906 freebsd[123]*) objformat=aout ;; 17907 *) objformat=elf ;; 17908 esac 17909 fi 17910 version_type=freebsd-$objformat 17911 case $version_type in 17912 freebsd-elf*) 17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17914 need_version=no 17915 need_lib_prefix=no 17916 ;; 17917 freebsd-*) 17918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17919 need_version=yes 17920 ;; 17921 esac 17922 shlibpath_var=LD_LIBRARY_PATH 17923 case $host_os in 17924 freebsd2*) 17925 shlibpath_overrides_runpath=yes 17926 ;; 17927 freebsd3.[01]* | freebsdelf3.[01]*) 17928 shlibpath_overrides_runpath=yes 17929 hardcode_into_libs=yes 17930 ;; 17931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17933 shlibpath_overrides_runpath=no 17934 hardcode_into_libs=yes 17935 ;; 17936 freebsd*) # from 4.6 on 17937 shlibpath_overrides_runpath=yes 17938 hardcode_into_libs=yes 17939 ;; 17940 esac 17941 ;; 17942 17943gnu*) 17944 version_type=linux 17945 need_lib_prefix=no 17946 need_version=no 17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17948 soname_spec='${libname}${release}${shared_ext}$major' 17949 shlibpath_var=LD_LIBRARY_PATH 17950 hardcode_into_libs=yes 17951 ;; 17952 17953hpux9* | hpux10* | hpux11*) 17954 # Give a soname corresponding to the major version so that dld.sl refuses to 17955 # link against other versions. 17956 version_type=sunos 17957 need_lib_prefix=no 17958 need_version=no 17959 case $host_cpu in 17960 ia64*) 17961 shrext_cmds='.so' 17962 hardcode_into_libs=yes 17963 dynamic_linker="$host_os dld.so" 17964 shlibpath_var=LD_LIBRARY_PATH 17965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17967 soname_spec='${libname}${release}${shared_ext}$major' 17968 if test "X$HPUX_IA64_MODE" = X32; then 17969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17970 else 17971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17972 fi 17973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17974 ;; 17975 hppa*64*) 17976 shrext_cmds='.sl' 17977 hardcode_into_libs=yes 17978 dynamic_linker="$host_os dld.sl" 17979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17982 soname_spec='${libname}${release}${shared_ext}$major' 17983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17985 ;; 17986 *) 17987 shrext_cmds='.sl' 17988 dynamic_linker="$host_os dld.sl" 17989 shlibpath_var=SHLIB_PATH 17990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 17994 esac 17995 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17996 postinstall_cmds='chmod 555 $lib' 17997 ;; 17998 17999interix3*) 18000 version_type=linux 18001 need_lib_prefix=no 18002 need_version=no 18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18004 soname_spec='${libname}${release}${shared_ext}$major' 18005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18006 shlibpath_var=LD_LIBRARY_PATH 18007 shlibpath_overrides_runpath=no 18008 hardcode_into_libs=yes 18009 ;; 18010 18011irix5* | irix6* | nonstopux*) 18012 case $host_os in 18013 nonstopux*) version_type=nonstopux ;; 18014 *) 18015 if test "$lt_cv_prog_gnu_ld" = yes; then 18016 version_type=linux 18017 else 18018 version_type=irix 18019 fi ;; 18020 esac 18021 need_lib_prefix=no 18022 need_version=no 18023 soname_spec='${libname}${release}${shared_ext}$major' 18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18025 case $host_os in 18026 irix5* | nonstopux*) 18027 libsuff= shlibsuff= 18028 ;; 18029 *) 18030 case $LD in # libtool.m4 will add one of these switches to LD 18031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18032 libsuff= shlibsuff= libmagic=32-bit;; 18033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18034 libsuff=32 shlibsuff=N32 libmagic=N32;; 18035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18036 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18037 *) libsuff= shlibsuff= libmagic=never-match;; 18038 esac 18039 ;; 18040 esac 18041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18042 shlibpath_overrides_runpath=no 18043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18045 hardcode_into_libs=yes 18046 ;; 18047 18048# No shared lib support for Linux oldld, aout, or coff. 18049linux*oldld* | linux*aout* | linux*coff*) 18050 dynamic_linker=no 18051 ;; 18052 18053# This must be Linux ELF. 18054linux*) 18055 version_type=linux 18056 need_lib_prefix=no 18057 need_version=no 18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18059 soname_spec='${libname}${release}${shared_ext}$major' 18060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18061 shlibpath_var=LD_LIBRARY_PATH 18062 shlibpath_overrides_runpath=no 18063 # This implies no fast_install, which is unacceptable. 18064 # Some rework will be needed to allow for fast_install 18065 # before this can be enabled. 18066 hardcode_into_libs=yes 18067 18068 # Append ld.so.conf contents to the search path 18069 if test -f /etc/ld.so.conf; then 18070 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' ' '` 18071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18072 fi 18073 18074 # We used to test for /lib/ld.so.1 and disable shared libraries on 18075 # powerpc, because MkLinux only supported shared libraries with the 18076 # GNU dynamic linker. Since this was broken with cross compilers, 18077 # most powerpc-linux boxes support dynamic linking these days and 18078 # people can always --disable-shared, the test was removed, and we 18079 # assume the GNU/Linux dynamic linker is in use. 18080 dynamic_linker='GNU/Linux ld.so' 18081 ;; 18082 18083knetbsd*-gnu) 18084 version_type=linux 18085 need_lib_prefix=no 18086 need_version=no 18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18088 soname_spec='${libname}${release}${shared_ext}$major' 18089 shlibpath_var=LD_LIBRARY_PATH 18090 shlibpath_overrides_runpath=no 18091 hardcode_into_libs=yes 18092 dynamic_linker='GNU ld.so' 18093 ;; 18094 18095netbsd*) 18096 version_type=sunos 18097 need_lib_prefix=no 18098 need_version=no 18099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18102 dynamic_linker='NetBSD (a.out) ld.so' 18103 else 18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18105 soname_spec='${libname}${release}${shared_ext}$major' 18106 dynamic_linker='NetBSD ld.elf_so' 18107 fi 18108 shlibpath_var=LD_LIBRARY_PATH 18109 shlibpath_overrides_runpath=yes 18110 hardcode_into_libs=yes 18111 ;; 18112 18113newsos6) 18114 version_type=linux 18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18116 shlibpath_var=LD_LIBRARY_PATH 18117 shlibpath_overrides_runpath=yes 18118 ;; 18119 18120nto-qnx*) 18121 version_type=linux 18122 need_lib_prefix=no 18123 need_version=no 18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18125 soname_spec='${libname}${release}${shared_ext}$major' 18126 shlibpath_var=LD_LIBRARY_PATH 18127 shlibpath_overrides_runpath=yes 18128 ;; 18129 18130openbsd*) 18131 version_type=sunos 18132 sys_lib_dlsearch_path_spec="/usr/lib" 18133 need_lib_prefix=no 18134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18135 case $host_os in 18136 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18137 *) need_version=no ;; 18138 esac 18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18141 shlibpath_var=LD_LIBRARY_PATH 18142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18143 case $host_os in 18144 openbsd2.[89] | openbsd2.[89].*) 18145 shlibpath_overrides_runpath=no 18146 ;; 18147 *) 18148 shlibpath_overrides_runpath=yes 18149 ;; 18150 esac 18151 else 18152 shlibpath_overrides_runpath=yes 18153 fi 18154 ;; 18155 18156os2*) 18157 libname_spec='$name' 18158 shrext_cmds=".dll" 18159 need_lib_prefix=no 18160 library_names_spec='$libname${shared_ext} $libname.a' 18161 dynamic_linker='OS/2 ld.exe' 18162 shlibpath_var=LIBPATH 18163 ;; 18164 18165osf3* | osf4* | osf5*) 18166 version_type=osf 18167 need_lib_prefix=no 18168 need_version=no 18169 soname_spec='${libname}${release}${shared_ext}$major' 18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18171 shlibpath_var=LD_LIBRARY_PATH 18172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18174 ;; 18175 18176solaris*) 18177 version_type=linux 18178 need_lib_prefix=no 18179 need_version=no 18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18181 soname_spec='${libname}${release}${shared_ext}$major' 18182 shlibpath_var=LD_LIBRARY_PATH 18183 shlibpath_overrides_runpath=yes 18184 hardcode_into_libs=yes 18185 # ldd complains unless libraries are executable 18186 postinstall_cmds='chmod +x $lib' 18187 ;; 18188 18189sunos4*) 18190 version_type=sunos 18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18193 shlibpath_var=LD_LIBRARY_PATH 18194 shlibpath_overrides_runpath=yes 18195 if test "$with_gnu_ld" = yes; then 18196 need_lib_prefix=no 18197 fi 18198 need_version=yes 18199 ;; 18200 18201sysv4 | sysv4.3*) 18202 version_type=linux 18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18204 soname_spec='${libname}${release}${shared_ext}$major' 18205 shlibpath_var=LD_LIBRARY_PATH 18206 case $host_vendor in 18207 sni) 18208 shlibpath_overrides_runpath=no 18209 need_lib_prefix=no 18210 export_dynamic_flag_spec='${wl}-Blargedynsym' 18211 runpath_var=LD_RUN_PATH 18212 ;; 18213 siemens) 18214 need_lib_prefix=no 18215 ;; 18216 motorola) 18217 need_lib_prefix=no 18218 need_version=no 18219 shlibpath_overrides_runpath=no 18220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18221 ;; 18222 esac 18223 ;; 18224 18225sysv4*MP*) 18226 if test -d /usr/nec ;then 18227 version_type=linux 18228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18229 soname_spec='$libname${shared_ext}.$major' 18230 shlibpath_var=LD_LIBRARY_PATH 18231 fi 18232 ;; 18233 18234sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18235 version_type=freebsd-elf 18236 need_lib_prefix=no 18237 need_version=no 18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18239 soname_spec='${libname}${release}${shared_ext}$major' 18240 shlibpath_var=LD_LIBRARY_PATH 18241 hardcode_into_libs=yes 18242 if test "$with_gnu_ld" = yes; then 18243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18244 shlibpath_overrides_runpath=no 18245 else 18246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18247 shlibpath_overrides_runpath=yes 18248 case $host_os in 18249 sco3.2v5*) 18250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18251 ;; 18252 esac 18253 fi 18254 sys_lib_dlsearch_path_spec='/usr/lib' 18255 ;; 18256 18257uts4*) 18258 version_type=linux 18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18260 soname_spec='${libname}${release}${shared_ext}$major' 18261 shlibpath_var=LD_LIBRARY_PATH 18262 ;; 18263 18264*) 18265 dynamic_linker=no 18266 ;; 18267esac 18268{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18269echo "${ECHO_T}$dynamic_linker" >&6; } 18270test "$dynamic_linker" = no && can_build_shared=no 18271 18272variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18273if test "$GCC" = yes; then 18274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18275fi 18276 18277{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18278echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18279hardcode_action_GCJ= 18280if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18281 test -n "$runpath_var_GCJ" || \ 18282 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18283 18284 # We can hardcode non-existant directories. 18285 if test "$hardcode_direct_GCJ" != no && 18286 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18287 # have to relink, otherwise we might link with an installed library 18288 # when we should be linking with a yet-to-be-installed one 18289 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18290 test "$hardcode_minus_L_GCJ" != no; then 18291 # Linking always hardcodes the temporary library directory. 18292 hardcode_action_GCJ=relink 18293 else 18294 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18295 hardcode_action_GCJ=immediate 18296 fi 18297else 18298 # We cannot hardcode anything, or else we can only hardcode existing 18299 # directories. 18300 hardcode_action_GCJ=unsupported 18301fi 18302{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18303echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18304 18305if test "$hardcode_action_GCJ" = relink; then 18306 # Fast installation is not supported 18307 enable_fast_install=no 18308elif test "$shlibpath_overrides_runpath" = yes || 18309 test "$enable_shared" = no; then 18310 # Fast installation is not necessary 18311 enable_fast_install=needless 18312fi 18313 18314 18315# The else clause should only fire when bootstrapping the 18316# libtool distribution, otherwise you forgot to ship ltmain.sh 18317# with your package, and you will get complaints that there are 18318# no rules to generate ltmain.sh. 18319if test -f "$ltmain"; then 18320 # See if we are running on zsh, and set the options which allow our commands through 18321 # without removal of \ escapes. 18322 if test -n "${ZSH_VERSION+set}" ; then 18323 setopt NO_GLOB_SUBST 18324 fi 18325 # Now quote all the things that may contain metacharacters while being 18326 # careful not to overquote the AC_SUBSTed values. We take copies of the 18327 # variables and quote the copies for generation of the libtool script. 18328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18329 SED SHELL STRIP \ 18330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18332 deplibs_check_method reload_flag reload_cmds need_locks \ 18333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18334 lt_cv_sys_global_symbol_to_c_name_address \ 18335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18336 old_postinstall_cmds old_postuninstall_cmds \ 18337 compiler_GCJ \ 18338 CC_GCJ \ 18339 LD_GCJ \ 18340 lt_prog_compiler_wl_GCJ \ 18341 lt_prog_compiler_pic_GCJ \ 18342 lt_prog_compiler_static_GCJ \ 18343 lt_prog_compiler_no_builtin_flag_GCJ \ 18344 export_dynamic_flag_spec_GCJ \ 18345 thread_safe_flag_spec_GCJ \ 18346 whole_archive_flag_spec_GCJ \ 18347 enable_shared_with_static_runtimes_GCJ \ 18348 old_archive_cmds_GCJ \ 18349 old_archive_from_new_cmds_GCJ \ 18350 predep_objects_GCJ \ 18351 postdep_objects_GCJ \ 18352 predeps_GCJ \ 18353 postdeps_GCJ \ 18354 compiler_lib_search_path_GCJ \ 18355 archive_cmds_GCJ \ 18356 archive_expsym_cmds_GCJ \ 18357 postinstall_cmds_GCJ \ 18358 postuninstall_cmds_GCJ \ 18359 old_archive_from_expsyms_cmds_GCJ \ 18360 allow_undefined_flag_GCJ \ 18361 no_undefined_flag_GCJ \ 18362 export_symbols_cmds_GCJ \ 18363 hardcode_libdir_flag_spec_GCJ \ 18364 hardcode_libdir_flag_spec_ld_GCJ \ 18365 hardcode_libdir_separator_GCJ \ 18366 hardcode_automatic_GCJ \ 18367 module_cmds_GCJ \ 18368 module_expsym_cmds_GCJ \ 18369 lt_cv_prog_compiler_c_o_GCJ \ 18370 exclude_expsyms_GCJ \ 18371 include_expsyms_GCJ; do 18372 18373 case $var in 18374 old_archive_cmds_GCJ | \ 18375 old_archive_from_new_cmds_GCJ | \ 18376 archive_cmds_GCJ | \ 18377 archive_expsym_cmds_GCJ | \ 18378 module_cmds_GCJ | \ 18379 module_expsym_cmds_GCJ | \ 18380 old_archive_from_expsyms_cmds_GCJ | \ 18381 export_symbols_cmds_GCJ | \ 18382 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18383 postinstall_cmds | postuninstall_cmds | \ 18384 old_postinstall_cmds | old_postuninstall_cmds | \ 18385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18386 # Double-quote double-evaled strings. 18387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18388 ;; 18389 *) 18390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18391 ;; 18392 esac 18393 done 18394 18395 case $lt_echo in 18396 *'\$0 --fallback-echo"') 18397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18398 ;; 18399 esac 18400 18401cfgfile="$ofile" 18402 18403 cat <<__EOF__ >> "$cfgfile" 18404# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18405 18406# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18407 18408# Shell to use when invoking shell scripts. 18409SHELL=$lt_SHELL 18410 18411# Whether or not to build shared libraries. 18412build_libtool_libs=$enable_shared 18413 18414# Whether or not to build static libraries. 18415build_old_libs=$enable_static 18416 18417# Whether or not to add -lc for building shared libraries. 18418build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18419 18420# Whether or not to disallow shared libs when runtime libs are static 18421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18422 18423# Whether or not to optimize for fast installation. 18424fast_install=$enable_fast_install 18425 18426# The host system. 18427host_alias=$host_alias 18428host=$host 18429host_os=$host_os 18430 18431# The build system. 18432build_alias=$build_alias 18433build=$build 18434build_os=$build_os 18435 18436# An echo program that does not interpret backslashes. 18437echo=$lt_echo 18438 18439# The archiver. 18440AR=$lt_AR 18441AR_FLAGS=$lt_AR_FLAGS 18442 18443# A C compiler. 18444LTCC=$lt_LTCC 18445 18446# LTCC compiler flags. 18447LTCFLAGS=$lt_LTCFLAGS 18448 18449# A language-specific compiler. 18450CC=$lt_compiler_GCJ 18451 18452# Is the compiler the GNU C compiler? 18453with_gcc=$GCC_GCJ 18454 18455# An ERE matcher. 18456EGREP=$lt_EGREP 18457 18458# The linker used to build libraries. 18459LD=$lt_LD_GCJ 18460 18461# Whether we need hard or soft links. 18462LN_S=$lt_LN_S 18463 18464# A BSD-compatible nm program. 18465NM=$lt_NM 18466 18467# A symbol stripping program 18468STRIP=$lt_STRIP 18469 18470# Used to examine libraries when file_magic_cmd begins "file" 18471MAGIC_CMD=$MAGIC_CMD 18472 18473# Used on cygwin: DLL creation program. 18474DLLTOOL="$DLLTOOL" 18475 18476# Used on cygwin: object dumper. 18477OBJDUMP="$OBJDUMP" 18478 18479# Used on cygwin: assembler. 18480AS="$AS" 18481 18482# The name of the directory that contains temporary libtool files. 18483objdir=$objdir 18484 18485# How to create reloadable object files. 18486reload_flag=$lt_reload_flag 18487reload_cmds=$lt_reload_cmds 18488 18489# How to pass a linker flag through the compiler. 18490wl=$lt_lt_prog_compiler_wl_GCJ 18491 18492# Object file suffix (normally "o"). 18493objext="$ac_objext" 18494 18495# Old archive suffix (normally "a"). 18496libext="$libext" 18497 18498# Shared library suffix (normally ".so"). 18499shrext_cmds='$shrext_cmds' 18500 18501# Executable file suffix (normally ""). 18502exeext="$exeext" 18503 18504# Additional compiler flags for building library objects. 18505pic_flag=$lt_lt_prog_compiler_pic_GCJ 18506pic_mode=$pic_mode 18507 18508# What is the maximum length of a command? 18509max_cmd_len=$lt_cv_sys_max_cmd_len 18510 18511# Does compiler simultaneously support -c and -o options? 18512compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18513 18514# Must we lock files when doing compilation? 18515need_locks=$lt_need_locks 18516 18517# Do we need the lib prefix for modules? 18518need_lib_prefix=$need_lib_prefix 18519 18520# Do we need a version for libraries? 18521need_version=$need_version 18522 18523# Whether dlopen is supported. 18524dlopen_support=$enable_dlopen 18525 18526# Whether dlopen of programs is supported. 18527dlopen_self=$enable_dlopen_self 18528 18529# Whether dlopen of statically linked programs is supported. 18530dlopen_self_static=$enable_dlopen_self_static 18531 18532# Compiler flag to prevent dynamic linking. 18533link_static_flag=$lt_lt_prog_compiler_static_GCJ 18534 18535# Compiler flag to turn off builtin functions. 18536no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18537 18538# Compiler flag to allow reflexive dlopens. 18539export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18540 18541# Compiler flag to generate shared objects directly from archives. 18542whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18543 18544# Compiler flag to generate thread-safe objects. 18545thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18546 18547# Library versioning type. 18548version_type=$version_type 18549 18550# Format of library name prefix. 18551libname_spec=$lt_libname_spec 18552 18553# List of archive names. First name is the real one, the rest are links. 18554# The last name is the one that the linker finds with -lNAME. 18555library_names_spec=$lt_library_names_spec 18556 18557# The coded name of the library, if different from the real name. 18558soname_spec=$lt_soname_spec 18559 18560# Commands used to build and install an old-style archive. 18561RANLIB=$lt_RANLIB 18562old_archive_cmds=$lt_old_archive_cmds_GCJ 18563old_postinstall_cmds=$lt_old_postinstall_cmds 18564old_postuninstall_cmds=$lt_old_postuninstall_cmds 18565 18566# Create an old-style archive from a shared archive. 18567old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18568 18569# Create a temporary old-style archive to link instead of a shared archive. 18570old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18571 18572# Commands used to build and install a shared archive. 18573archive_cmds=$lt_archive_cmds_GCJ 18574archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18575postinstall_cmds=$lt_postinstall_cmds 18576postuninstall_cmds=$lt_postuninstall_cmds 18577 18578# Commands used to build a loadable module (assumed same as above if empty) 18579module_cmds=$lt_module_cmds_GCJ 18580module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18581 18582# Commands to strip libraries. 18583old_striplib=$lt_old_striplib 18584striplib=$lt_striplib 18585 18586# Dependencies to place before the objects being linked to create a 18587# shared library. 18588predep_objects=$lt_predep_objects_GCJ 18589 18590# Dependencies to place after the objects being linked to create a 18591# shared library. 18592postdep_objects=$lt_postdep_objects_GCJ 18593 18594# Dependencies to place before the objects being linked to create a 18595# shared library. 18596predeps=$lt_predeps_GCJ 18597 18598# Dependencies to place after the objects being linked to create a 18599# shared library. 18600postdeps=$lt_postdeps_GCJ 18601 18602# The library search path used internally by the compiler when linking 18603# a shared library. 18604compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18605 18606# Method to check whether dependent libraries are shared objects. 18607deplibs_check_method=$lt_deplibs_check_method 18608 18609# Command to use when deplibs_check_method == file_magic. 18610file_magic_cmd=$lt_file_magic_cmd 18611 18612# Flag that allows shared libraries with undefined symbols to be built. 18613allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18614 18615# Flag that forces no undefined symbols. 18616no_undefined_flag=$lt_no_undefined_flag_GCJ 18617 18618# Commands used to finish a libtool library installation in a directory. 18619finish_cmds=$lt_finish_cmds 18620 18621# Same as above, but a single script fragment to be evaled but not shown. 18622finish_eval=$lt_finish_eval 18623 18624# Take the output of nm and produce a listing of raw symbols and C names. 18625global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18626 18627# Transform the output of nm in a proper C declaration 18628global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18629 18630# Transform the output of nm in a C name address pair 18631global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18632 18633# This is the shared library runtime path variable. 18634runpath_var=$runpath_var 18635 18636# This is the shared library path variable. 18637shlibpath_var=$shlibpath_var 18638 18639# Is shlibpath searched before the hard-coded library search path? 18640shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18641 18642# How to hardcode a shared library path into an executable. 18643hardcode_action=$hardcode_action_GCJ 18644 18645# Whether we should hardcode library paths into libraries. 18646hardcode_into_libs=$hardcode_into_libs 18647 18648# Flag to hardcode \$libdir into a binary during linking. 18649# This must work even if \$libdir does not exist. 18650hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18651 18652# If ld is used when linking, flag to hardcode \$libdir into 18653# a binary during linking. This must work even if \$libdir does 18654# not exist. 18655hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18656 18657# Whether we need a single -rpath flag with a separated argument. 18658hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18659 18660# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18661# resulting binary. 18662hardcode_direct=$hardcode_direct_GCJ 18663 18664# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18665# resulting binary. 18666hardcode_minus_L=$hardcode_minus_L_GCJ 18667 18668# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18669# the resulting binary. 18670hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18671 18672# Set to yes if building a shared library automatically hardcodes DIR into the library 18673# and all subsequent libraries and executables linked against it. 18674hardcode_automatic=$hardcode_automatic_GCJ 18675 18676# Variables whose values should be saved in libtool wrapper scripts and 18677# restored at relink time. 18678variables_saved_for_relink="$variables_saved_for_relink" 18679 18680# Whether libtool must link a program against all its dependency libraries. 18681link_all_deplibs=$link_all_deplibs_GCJ 18682 18683# Compile-time system search path for libraries 18684sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18685 18686# Run-time system search path for libraries 18687sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18688 18689# Fix the shell variable \$srcfile for the compiler. 18690fix_srcfile_path="$fix_srcfile_path_GCJ" 18691 18692# Set to yes if exported symbols are required. 18693always_export_symbols=$always_export_symbols_GCJ 18694 18695# The commands to list exported symbols. 18696export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18697 18698# The commands to extract the exported symbol list from a shared archive. 18699extract_expsyms_cmds=$lt_extract_expsyms_cmds 18700 18701# Symbols that should not be listed in the preloaded symbols. 18702exclude_expsyms=$lt_exclude_expsyms_GCJ 18703 18704# Symbols that must always be exported. 18705include_expsyms=$lt_include_expsyms_GCJ 18706 18707# ### END LIBTOOL TAG CONFIG: $tagname 18708 18709__EOF__ 18710 18711 18712else 18713 # If there is no Makefile yet, we rely on a make rule to execute 18714 # `config.status --recheck' to rerun these tests and create the 18715 # libtool script then. 18716 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18717 if test -f "$ltmain_in"; then 18718 test -f Makefile && make "$ltmain" 18719 fi 18720fi 18721 18722 18723ac_ext=c 18724ac_cpp='$CPP $CPPFLAGS' 18725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18727ac_compiler_gnu=$ac_cv_c_compiler_gnu 18728 18729CC="$lt_save_CC" 18730 18731 else 18732 tagname="" 18733 fi 18734 ;; 18735 18736 RC) 18737 18738 18739# Source file extension for RC test sources. 18740ac_ext=rc 18741 18742# Object file extension for compiled RC test sources. 18743objext=o 18744objext_RC=$objext 18745 18746# Code to be used in simple compile tests 18747lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18748 18749# Code to be used in simple link tests 18750lt_simple_link_test_code="$lt_simple_compile_test_code" 18751 18752# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18753 18754# If no C compiler was specified, use CC. 18755LTCC=${LTCC-"$CC"} 18756 18757# If no C compiler flags were specified, use CFLAGS. 18758LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18759 18760# Allow CC to be a program name with arguments. 18761compiler=$CC 18762 18763 18764# save warnings/boilerplate of simple test code 18765ac_outfile=conftest.$ac_objext 18766printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18767eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18768_lt_compiler_boilerplate=`cat conftest.err` 18769$rm conftest* 18770 18771ac_outfile=conftest.$ac_objext 18772printf "$lt_simple_link_test_code" >conftest.$ac_ext 18773eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18774_lt_linker_boilerplate=`cat conftest.err` 18775$rm conftest* 18776 18777 18778# Allow CC to be a program name with arguments. 18779lt_save_CC="$CC" 18780CC=${RC-"windres"} 18781compiler=$CC 18782compiler_RC=$CC 18783for cc_temp in $compiler""; do 18784 case $cc_temp in 18785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18787 \-*) ;; 18788 *) break;; 18789 esac 18790done 18791cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18792 18793lt_cv_prog_compiler_c_o_RC=yes 18794 18795# The else clause should only fire when bootstrapping the 18796# libtool distribution, otherwise you forgot to ship ltmain.sh 18797# with your package, and you will get complaints that there are 18798# no rules to generate ltmain.sh. 18799if test -f "$ltmain"; then 18800 # See if we are running on zsh, and set the options which allow our commands through 18801 # without removal of \ escapes. 18802 if test -n "${ZSH_VERSION+set}" ; then 18803 setopt NO_GLOB_SUBST 18804 fi 18805 # Now quote all the things that may contain metacharacters while being 18806 # careful not to overquote the AC_SUBSTed values. We take copies of the 18807 # variables and quote the copies for generation of the libtool script. 18808 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18809 SED SHELL STRIP \ 18810 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18811 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18812 deplibs_check_method reload_flag reload_cmds need_locks \ 18813 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18814 lt_cv_sys_global_symbol_to_c_name_address \ 18815 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18816 old_postinstall_cmds old_postuninstall_cmds \ 18817 compiler_RC \ 18818 CC_RC \ 18819 LD_RC \ 18820 lt_prog_compiler_wl_RC \ 18821 lt_prog_compiler_pic_RC \ 18822 lt_prog_compiler_static_RC \ 18823 lt_prog_compiler_no_builtin_flag_RC \ 18824 export_dynamic_flag_spec_RC \ 18825 thread_safe_flag_spec_RC \ 18826 whole_archive_flag_spec_RC \ 18827 enable_shared_with_static_runtimes_RC \ 18828 old_archive_cmds_RC \ 18829 old_archive_from_new_cmds_RC \ 18830 predep_objects_RC \ 18831 postdep_objects_RC \ 18832 predeps_RC \ 18833 postdeps_RC \ 18834 compiler_lib_search_path_RC \ 18835 archive_cmds_RC \ 18836 archive_expsym_cmds_RC \ 18837 postinstall_cmds_RC \ 18838 postuninstall_cmds_RC \ 18839 old_archive_from_expsyms_cmds_RC \ 18840 allow_undefined_flag_RC \ 18841 no_undefined_flag_RC \ 18842 export_symbols_cmds_RC \ 18843 hardcode_libdir_flag_spec_RC \ 18844 hardcode_libdir_flag_spec_ld_RC \ 18845 hardcode_libdir_separator_RC \ 18846 hardcode_automatic_RC \ 18847 module_cmds_RC \ 18848 module_expsym_cmds_RC \ 18849 lt_cv_prog_compiler_c_o_RC \ 18850 exclude_expsyms_RC \ 18851 include_expsyms_RC; do 18852 18853 case $var in 18854 old_archive_cmds_RC | \ 18855 old_archive_from_new_cmds_RC | \ 18856 archive_cmds_RC | \ 18857 archive_expsym_cmds_RC | \ 18858 module_cmds_RC | \ 18859 module_expsym_cmds_RC | \ 18860 old_archive_from_expsyms_cmds_RC | \ 18861 export_symbols_cmds_RC | \ 18862 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18863 postinstall_cmds | postuninstall_cmds | \ 18864 old_postinstall_cmds | old_postuninstall_cmds | \ 18865 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18866 # Double-quote double-evaled strings. 18867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18868 ;; 18869 *) 18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18871 ;; 18872 esac 18873 done 18874 18875 case $lt_echo in 18876 *'\$0 --fallback-echo"') 18877 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18878 ;; 18879 esac 18880 18881cfgfile="$ofile" 18882 18883 cat <<__EOF__ >> "$cfgfile" 18884# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18885 18886# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18887 18888# Shell to use when invoking shell scripts. 18889SHELL=$lt_SHELL 18890 18891# Whether or not to build shared libraries. 18892build_libtool_libs=$enable_shared 18893 18894# Whether or not to build static libraries. 18895build_old_libs=$enable_static 18896 18897# Whether or not to add -lc for building shared libraries. 18898build_libtool_need_lc=$archive_cmds_need_lc_RC 18899 18900# Whether or not to disallow shared libs when runtime libs are static 18901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18902 18903# Whether or not to optimize for fast installation. 18904fast_install=$enable_fast_install 18905 18906# The host system. 18907host_alias=$host_alias 18908host=$host 18909host_os=$host_os 18910 18911# The build system. 18912build_alias=$build_alias 18913build=$build 18914build_os=$build_os 18915 18916# An echo program that does not interpret backslashes. 18917echo=$lt_echo 18918 18919# The archiver. 18920AR=$lt_AR 18921AR_FLAGS=$lt_AR_FLAGS 18922 18923# A C compiler. 18924LTCC=$lt_LTCC 18925 18926# LTCC compiler flags. 18927LTCFLAGS=$lt_LTCFLAGS 18928 18929# A language-specific compiler. 18930CC=$lt_compiler_RC 18931 18932# Is the compiler the GNU C compiler? 18933with_gcc=$GCC_RC 18934 18935# An ERE matcher. 18936EGREP=$lt_EGREP 18937 18938# The linker used to build libraries. 18939LD=$lt_LD_RC 18940 18941# Whether we need hard or soft links. 18942LN_S=$lt_LN_S 18943 18944# A BSD-compatible nm program. 18945NM=$lt_NM 18946 18947# A symbol stripping program 18948STRIP=$lt_STRIP 18949 18950# Used to examine libraries when file_magic_cmd begins "file" 18951MAGIC_CMD=$MAGIC_CMD 18952 18953# Used on cygwin: DLL creation program. 18954DLLTOOL="$DLLTOOL" 18955 18956# Used on cygwin: object dumper. 18957OBJDUMP="$OBJDUMP" 18958 18959# Used on cygwin: assembler. 18960AS="$AS" 18961 18962# The name of the directory that contains temporary libtool files. 18963objdir=$objdir 18964 18965# How to create reloadable object files. 18966reload_flag=$lt_reload_flag 18967reload_cmds=$lt_reload_cmds 18968 18969# How to pass a linker flag through the compiler. 18970wl=$lt_lt_prog_compiler_wl_RC 18971 18972# Object file suffix (normally "o"). 18973objext="$ac_objext" 18974 18975# Old archive suffix (normally "a"). 18976libext="$libext" 18977 18978# Shared library suffix (normally ".so"). 18979shrext_cmds='$shrext_cmds' 18980 18981# Executable file suffix (normally ""). 18982exeext="$exeext" 18983 18984# Additional compiler flags for building library objects. 18985pic_flag=$lt_lt_prog_compiler_pic_RC 18986pic_mode=$pic_mode 18987 18988# What is the maximum length of a command? 18989max_cmd_len=$lt_cv_sys_max_cmd_len 18990 18991# Does compiler simultaneously support -c and -o options? 18992compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18993 18994# Must we lock files when doing compilation? 18995need_locks=$lt_need_locks 18996 18997# Do we need the lib prefix for modules? 18998need_lib_prefix=$need_lib_prefix 18999 19000# Do we need a version for libraries? 19001need_version=$need_version 19002 19003# Whether dlopen is supported. 19004dlopen_support=$enable_dlopen 19005 19006# Whether dlopen of programs is supported. 19007dlopen_self=$enable_dlopen_self 19008 19009# Whether dlopen of statically linked programs is supported. 19010dlopen_self_static=$enable_dlopen_self_static 19011 19012# Compiler flag to prevent dynamic linking. 19013link_static_flag=$lt_lt_prog_compiler_static_RC 19014 19015# Compiler flag to turn off builtin functions. 19016no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19017 19018# Compiler flag to allow reflexive dlopens. 19019export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19020 19021# Compiler flag to generate shared objects directly from archives. 19022whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19023 19024# Compiler flag to generate thread-safe objects. 19025thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19026 19027# Library versioning type. 19028version_type=$version_type 19029 19030# Format of library name prefix. 19031libname_spec=$lt_libname_spec 19032 19033# List of archive names. First name is the real one, the rest are links. 19034# The last name is the one that the linker finds with -lNAME. 19035library_names_spec=$lt_library_names_spec 19036 19037# The coded name of the library, if different from the real name. 19038soname_spec=$lt_soname_spec 19039 19040# Commands used to build and install an old-style archive. 19041RANLIB=$lt_RANLIB 19042old_archive_cmds=$lt_old_archive_cmds_RC 19043old_postinstall_cmds=$lt_old_postinstall_cmds 19044old_postuninstall_cmds=$lt_old_postuninstall_cmds 19045 19046# Create an old-style archive from a shared archive. 19047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19048 19049# Create a temporary old-style archive to link instead of a shared archive. 19050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19051 19052# Commands used to build and install a shared archive. 19053archive_cmds=$lt_archive_cmds_RC 19054archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19055postinstall_cmds=$lt_postinstall_cmds 19056postuninstall_cmds=$lt_postuninstall_cmds 19057 19058# Commands used to build a loadable module (assumed same as above if empty) 19059module_cmds=$lt_module_cmds_RC 19060module_expsym_cmds=$lt_module_expsym_cmds_RC 19061 19062# Commands to strip libraries. 19063old_striplib=$lt_old_striplib 19064striplib=$lt_striplib 19065 19066# Dependencies to place before the objects being linked to create a 19067# shared library. 19068predep_objects=$lt_predep_objects_RC 19069 19070# Dependencies to place after the objects being linked to create a 19071# shared library. 19072postdep_objects=$lt_postdep_objects_RC 19073 19074# Dependencies to place before the objects being linked to create a 19075# shared library. 19076predeps=$lt_predeps_RC 19077 19078# Dependencies to place after the objects being linked to create a 19079# shared library. 19080postdeps=$lt_postdeps_RC 19081 19082# The library search path used internally by the compiler when linking 19083# a shared library. 19084compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19085 19086# Method to check whether dependent libraries are shared objects. 19087deplibs_check_method=$lt_deplibs_check_method 19088 19089# Command to use when deplibs_check_method == file_magic. 19090file_magic_cmd=$lt_file_magic_cmd 19091 19092# Flag that allows shared libraries with undefined symbols to be built. 19093allow_undefined_flag=$lt_allow_undefined_flag_RC 19094 19095# Flag that forces no undefined symbols. 19096no_undefined_flag=$lt_no_undefined_flag_RC 19097 19098# Commands used to finish a libtool library installation in a directory. 19099finish_cmds=$lt_finish_cmds 19100 19101# Same as above, but a single script fragment to be evaled but not shown. 19102finish_eval=$lt_finish_eval 19103 19104# Take the output of nm and produce a listing of raw symbols and C names. 19105global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19106 19107# Transform the output of nm in a proper C declaration 19108global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19109 19110# Transform the output of nm in a C name address pair 19111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19112 19113# This is the shared library runtime path variable. 19114runpath_var=$runpath_var 19115 19116# This is the shared library path variable. 19117shlibpath_var=$shlibpath_var 19118 19119# Is shlibpath searched before the hard-coded library search path? 19120shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19121 19122# How to hardcode a shared library path into an executable. 19123hardcode_action=$hardcode_action_RC 19124 19125# Whether we should hardcode library paths into libraries. 19126hardcode_into_libs=$hardcode_into_libs 19127 19128# Flag to hardcode \$libdir into a binary during linking. 19129# This must work even if \$libdir does not exist. 19130hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19131 19132# If ld is used when linking, flag to hardcode \$libdir into 19133# a binary during linking. This must work even if \$libdir does 19134# not exist. 19135hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19136 19137# Whether we need a single -rpath flag with a separated argument. 19138hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19139 19140# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19141# resulting binary. 19142hardcode_direct=$hardcode_direct_RC 19143 19144# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19145# resulting binary. 19146hardcode_minus_L=$hardcode_minus_L_RC 19147 19148# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19149# the resulting binary. 19150hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19151 19152# Set to yes if building a shared library automatically hardcodes DIR into the library 19153# and all subsequent libraries and executables linked against it. 19154hardcode_automatic=$hardcode_automatic_RC 19155 19156# Variables whose values should be saved in libtool wrapper scripts and 19157# restored at relink time. 19158variables_saved_for_relink="$variables_saved_for_relink" 19159 19160# Whether libtool must link a program against all its dependency libraries. 19161link_all_deplibs=$link_all_deplibs_RC 19162 19163# Compile-time system search path for libraries 19164sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19165 19166# Run-time system search path for libraries 19167sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19168 19169# Fix the shell variable \$srcfile for the compiler. 19170fix_srcfile_path="$fix_srcfile_path_RC" 19171 19172# Set to yes if exported symbols are required. 19173always_export_symbols=$always_export_symbols_RC 19174 19175# The commands to list exported symbols. 19176export_symbols_cmds=$lt_export_symbols_cmds_RC 19177 19178# The commands to extract the exported symbol list from a shared archive. 19179extract_expsyms_cmds=$lt_extract_expsyms_cmds 19180 19181# Symbols that should not be listed in the preloaded symbols. 19182exclude_expsyms=$lt_exclude_expsyms_RC 19183 19184# Symbols that must always be exported. 19185include_expsyms=$lt_include_expsyms_RC 19186 19187# ### END LIBTOOL TAG CONFIG: $tagname 19188 19189__EOF__ 19190 19191 19192else 19193 # If there is no Makefile yet, we rely on a make rule to execute 19194 # `config.status --recheck' to rerun these tests and create the 19195 # libtool script then. 19196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19197 if test -f "$ltmain_in"; then 19198 test -f Makefile && make "$ltmain" 19199 fi 19200fi 19201 19202 19203ac_ext=c 19204ac_cpp='$CPP $CPPFLAGS' 19205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19207ac_compiler_gnu=$ac_cv_c_compiler_gnu 19208 19209CC="$lt_save_CC" 19210 19211 ;; 19212 19213 *) 19214 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19215echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19216 { (exit 1); exit 1; }; } 19217 ;; 19218 esac 19219 19220 # Append the new tag name to the list of available tags. 19221 if test -n "$tagname" ; then 19222 available_tags="$available_tags $tagname" 19223 fi 19224 fi 19225 done 19226 IFS="$lt_save_ifs" 19227 19228 # Now substitute the updated list of available tags. 19229 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19230 mv "${ofile}T" "$ofile" 19231 chmod +x "$ofile" 19232 else 19233 rm -f "${ofile}T" 19234 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19235echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19236 { (exit 1); exit 1; }; } 19237 fi 19238fi 19239 19240 19241 19242# This can be used to rebuild libtool when needed 19243LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19244 19245# Always use our own libtool. 19246LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19247 19248# Prevent multiple expansion 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269ac_ext=c 19270ac_cpp='$CPP $CPPFLAGS' 19271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19273ac_compiler_gnu=$ac_cv_c_compiler_gnu 19274if test -n "$ac_tool_prefix"; then 19275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19276set dummy ${ac_tool_prefix}gcc; ac_word=$2 19277{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19279if test "${ac_cv_prog_CC+set}" = set; then 19280 echo $ECHO_N "(cached) $ECHO_C" >&6 19281else 19282 if test -n "$CC"; then 19283 ac_cv_prog_CC="$CC" # Let the user override the test. 19284else 19285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19286for as_dir in $PATH 19287do 19288 IFS=$as_save_IFS 19289 test -z "$as_dir" && as_dir=. 19290 for ac_exec_ext in '' $ac_executable_extensions; do 19291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19292 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19294 break 2 19295 fi 19296done 19297done 19298IFS=$as_save_IFS 19299 19300fi 19301fi 19302CC=$ac_cv_prog_CC 19303if test -n "$CC"; then 19304 { echo "$as_me:$LINENO: result: $CC" >&5 19305echo "${ECHO_T}$CC" >&6; } 19306else 19307 { echo "$as_me:$LINENO: result: no" >&5 19308echo "${ECHO_T}no" >&6; } 19309fi 19310 19311 19312fi 19313if test -z "$ac_cv_prog_CC"; then 19314 ac_ct_CC=$CC 19315 # Extract the first word of "gcc", so it can be a program name with args. 19316set dummy gcc; ac_word=$2 19317{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19320 echo $ECHO_N "(cached) $ECHO_C" >&6 19321else 19322 if test -n "$ac_ct_CC"; then 19323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19324else 19325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19326for as_dir in $PATH 19327do 19328 IFS=$as_save_IFS 19329 test -z "$as_dir" && as_dir=. 19330 for ac_exec_ext in '' $ac_executable_extensions; do 19331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19332 ac_cv_prog_ac_ct_CC="gcc" 19333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19334 break 2 19335 fi 19336done 19337done 19338IFS=$as_save_IFS 19339 19340fi 19341fi 19342ac_ct_CC=$ac_cv_prog_ac_ct_CC 19343if test -n "$ac_ct_CC"; then 19344 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19345echo "${ECHO_T}$ac_ct_CC" >&6; } 19346else 19347 { echo "$as_me:$LINENO: result: no" >&5 19348echo "${ECHO_T}no" >&6; } 19349fi 19350 19351 if test "x$ac_ct_CC" = x; then 19352 CC="" 19353 else 19354 case $cross_compiling:$ac_tool_warned in 19355yes:) 19356{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19357whose name does not start with the host triplet. If you think this 19358configuration is useful to you, please write to autoconf@gnu.org." >&5 19359echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19360whose name does not start with the host triplet. If you think this 19361configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19362ac_tool_warned=yes ;; 19363esac 19364 CC=$ac_ct_CC 19365 fi 19366else 19367 CC="$ac_cv_prog_CC" 19368fi 19369 19370if test -z "$CC"; then 19371 if test -n "$ac_tool_prefix"; then 19372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19373set dummy ${ac_tool_prefix}cc; ac_word=$2 19374{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19376if test "${ac_cv_prog_CC+set}" = set; then 19377 echo $ECHO_N "(cached) $ECHO_C" >&6 19378else 19379 if test -n "$CC"; then 19380 ac_cv_prog_CC="$CC" # Let the user override the test. 19381else 19382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19383for as_dir in $PATH 19384do 19385 IFS=$as_save_IFS 19386 test -z "$as_dir" && as_dir=. 19387 for ac_exec_ext in '' $ac_executable_extensions; do 19388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19389 ac_cv_prog_CC="${ac_tool_prefix}cc" 19390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19391 break 2 19392 fi 19393done 19394done 19395IFS=$as_save_IFS 19396 19397fi 19398fi 19399CC=$ac_cv_prog_CC 19400if test -n "$CC"; then 19401 { echo "$as_me:$LINENO: result: $CC" >&5 19402echo "${ECHO_T}$CC" >&6; } 19403else 19404 { echo "$as_me:$LINENO: result: no" >&5 19405echo "${ECHO_T}no" >&6; } 19406fi 19407 19408 19409 fi 19410fi 19411if test -z "$CC"; then 19412 # Extract the first word of "cc", so it can be a program name with args. 19413set dummy cc; ac_word=$2 19414{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19416if test "${ac_cv_prog_CC+set}" = set; then 19417 echo $ECHO_N "(cached) $ECHO_C" >&6 19418else 19419 if test -n "$CC"; then 19420 ac_cv_prog_CC="$CC" # Let the user override the test. 19421else 19422 ac_prog_rejected=no 19423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19424for as_dir in $PATH 19425do 19426 IFS=$as_save_IFS 19427 test -z "$as_dir" && as_dir=. 19428 for ac_exec_ext in '' $ac_executable_extensions; do 19429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19431 ac_prog_rejected=yes 19432 continue 19433 fi 19434 ac_cv_prog_CC="cc" 19435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19436 break 2 19437 fi 19438done 19439done 19440IFS=$as_save_IFS 19441 19442if test $ac_prog_rejected = yes; then 19443 # We found a bogon in the path, so make sure we never use it. 19444 set dummy $ac_cv_prog_CC 19445 shift 19446 if test $# != 0; then 19447 # We chose a different compiler from the bogus one. 19448 # However, it has the same basename, so the bogon will be chosen 19449 # first if we set CC to just the basename; use the full file name. 19450 shift 19451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19452 fi 19453fi 19454fi 19455fi 19456CC=$ac_cv_prog_CC 19457if test -n "$CC"; then 19458 { echo "$as_me:$LINENO: result: $CC" >&5 19459echo "${ECHO_T}$CC" >&6; } 19460else 19461 { echo "$as_me:$LINENO: result: no" >&5 19462echo "${ECHO_T}no" >&6; } 19463fi 19464 19465 19466fi 19467if test -z "$CC"; then 19468 if test -n "$ac_tool_prefix"; then 19469 for ac_prog in cl.exe 19470 do 19471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19472set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19475if test "${ac_cv_prog_CC+set}" = set; then 19476 echo $ECHO_N "(cached) $ECHO_C" >&6 19477else 19478 if test -n "$CC"; then 19479 ac_cv_prog_CC="$CC" # Let the user override the test. 19480else 19481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19482for as_dir in $PATH 19483do 19484 IFS=$as_save_IFS 19485 test -z "$as_dir" && as_dir=. 19486 for ac_exec_ext in '' $ac_executable_extensions; do 19487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19490 break 2 19491 fi 19492done 19493done 19494IFS=$as_save_IFS 19495 19496fi 19497fi 19498CC=$ac_cv_prog_CC 19499if test -n "$CC"; then 19500 { echo "$as_me:$LINENO: result: $CC" >&5 19501echo "${ECHO_T}$CC" >&6; } 19502else 19503 { echo "$as_me:$LINENO: result: no" >&5 19504echo "${ECHO_T}no" >&6; } 19505fi 19506 19507 19508 test -n "$CC" && break 19509 done 19510fi 19511if test -z "$CC"; then 19512 ac_ct_CC=$CC 19513 for ac_prog in cl.exe 19514do 19515 # Extract the first word of "$ac_prog", so it can be a program name with args. 19516set dummy $ac_prog; ac_word=$2 19517{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19520 echo $ECHO_N "(cached) $ECHO_C" >&6 19521else 19522 if test -n "$ac_ct_CC"; then 19523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19524else 19525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19526for as_dir in $PATH 19527do 19528 IFS=$as_save_IFS 19529 test -z "$as_dir" && as_dir=. 19530 for ac_exec_ext in '' $ac_executable_extensions; do 19531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19532 ac_cv_prog_ac_ct_CC="$ac_prog" 19533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19534 break 2 19535 fi 19536done 19537done 19538IFS=$as_save_IFS 19539 19540fi 19541fi 19542ac_ct_CC=$ac_cv_prog_ac_ct_CC 19543if test -n "$ac_ct_CC"; then 19544 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19545echo "${ECHO_T}$ac_ct_CC" >&6; } 19546else 19547 { echo "$as_me:$LINENO: result: no" >&5 19548echo "${ECHO_T}no" >&6; } 19549fi 19550 19551 19552 test -n "$ac_ct_CC" && break 19553done 19554 19555 if test "x$ac_ct_CC" = x; then 19556 CC="" 19557 else 19558 case $cross_compiling:$ac_tool_warned in 19559yes:) 19560{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19561whose name does not start with the host triplet. If you think this 19562configuration is useful to you, please write to autoconf@gnu.org." >&5 19563echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19564whose name does not start with the host triplet. If you think this 19565configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19566ac_tool_warned=yes ;; 19567esac 19568 CC=$ac_ct_CC 19569 fi 19570fi 19571 19572fi 19573 19574 19575test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19576See \`config.log' for more details." >&5 19577echo "$as_me: error: no acceptable C compiler found in \$PATH 19578See \`config.log' for more details." >&2;} 19579 { (exit 1); exit 1; }; } 19580 19581# Provide some information about the compiler. 19582echo "$as_me:$LINENO: checking for C compiler version" >&5 19583ac_compiler=`set X $ac_compile; echo $2` 19584{ (ac_try="$ac_compiler --version >&5" 19585case "(($ac_try" in 19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19587 *) ac_try_echo=$ac_try;; 19588esac 19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19590 (eval "$ac_compiler --version >&5") 2>&5 19591 ac_status=$? 19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19593 (exit $ac_status); } 19594{ (ac_try="$ac_compiler -v >&5" 19595case "(($ac_try" in 19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19597 *) ac_try_echo=$ac_try;; 19598esac 19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19600 (eval "$ac_compiler -v >&5") 2>&5 19601 ac_status=$? 19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19603 (exit $ac_status); } 19604{ (ac_try="$ac_compiler -V >&5" 19605case "(($ac_try" in 19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19607 *) ac_try_echo=$ac_try;; 19608esac 19609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19610 (eval "$ac_compiler -V >&5") 2>&5 19611 ac_status=$? 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19613 (exit $ac_status); } 19614 19615{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19616echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19617if test "${ac_cv_c_compiler_gnu+set}" = set; then 19618 echo $ECHO_N "(cached) $ECHO_C" >&6 19619else 19620 cat >conftest.$ac_ext <<_ACEOF 19621/* confdefs.h. */ 19622_ACEOF 19623cat confdefs.h >>conftest.$ac_ext 19624cat >>conftest.$ac_ext <<_ACEOF 19625/* end confdefs.h. */ 19626 19627int 19628main () 19629{ 19630#ifndef __GNUC__ 19631 choke me 19632#endif 19633 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638rm -f conftest.$ac_objext 19639if { (ac_try="$ac_compile" 19640case "(($ac_try" in 19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19642 *) ac_try_echo=$ac_try;; 19643esac 19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19645 (eval "$ac_compile") 2>conftest.er1 19646 ac_status=$? 19647 grep -v '^ *+' conftest.er1 >conftest.err 19648 rm -f conftest.er1 19649 cat conftest.err >&5 19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19651 (exit $ac_status); } && { 19652 test -z "$ac_c_werror_flag" || 19653 test ! -s conftest.err 19654 } && test -s conftest.$ac_objext; then 19655 ac_compiler_gnu=yes 19656else 19657 echo "$as_me: failed program was:" >&5 19658sed 's/^/| /' conftest.$ac_ext >&5 19659 19660 ac_compiler_gnu=no 19661fi 19662 19663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19664ac_cv_c_compiler_gnu=$ac_compiler_gnu 19665 19666fi 19667{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19668echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19669GCC=`test $ac_compiler_gnu = yes && echo yes` 19670ac_test_CFLAGS=${CFLAGS+set} 19671ac_save_CFLAGS=$CFLAGS 19672{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19673echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19674if test "${ac_cv_prog_cc_g+set}" = set; then 19675 echo $ECHO_N "(cached) $ECHO_C" >&6 19676else 19677 ac_save_c_werror_flag=$ac_c_werror_flag 19678 ac_c_werror_flag=yes 19679 ac_cv_prog_cc_g=no 19680 CFLAGS="-g" 19681 cat >conftest.$ac_ext <<_ACEOF 19682/* confdefs.h. */ 19683_ACEOF 19684cat confdefs.h >>conftest.$ac_ext 19685cat >>conftest.$ac_ext <<_ACEOF 19686/* end confdefs.h. */ 19687 19688int 19689main () 19690{ 19691 19692 ; 19693 return 0; 19694} 19695_ACEOF 19696rm -f conftest.$ac_objext 19697if { (ac_try="$ac_compile" 19698case "(($ac_try" in 19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19700 *) ac_try_echo=$ac_try;; 19701esac 19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19703 (eval "$ac_compile") 2>conftest.er1 19704 ac_status=$? 19705 grep -v '^ *+' conftest.er1 >conftest.err 19706 rm -f conftest.er1 19707 cat conftest.err >&5 19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19709 (exit $ac_status); } && { 19710 test -z "$ac_c_werror_flag" || 19711 test ! -s conftest.err 19712 } && test -s conftest.$ac_objext; then 19713 ac_cv_prog_cc_g=yes 19714else 19715 echo "$as_me: failed program was:" >&5 19716sed 's/^/| /' conftest.$ac_ext >&5 19717 19718 CFLAGS="" 19719 cat >conftest.$ac_ext <<_ACEOF 19720/* confdefs.h. */ 19721_ACEOF 19722cat confdefs.h >>conftest.$ac_ext 19723cat >>conftest.$ac_ext <<_ACEOF 19724/* end confdefs.h. */ 19725 19726int 19727main () 19728{ 19729 19730 ; 19731 return 0; 19732} 19733_ACEOF 19734rm -f conftest.$ac_objext 19735if { (ac_try="$ac_compile" 19736case "(($ac_try" in 19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19738 *) ac_try_echo=$ac_try;; 19739esac 19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19741 (eval "$ac_compile") 2>conftest.er1 19742 ac_status=$? 19743 grep -v '^ *+' conftest.er1 >conftest.err 19744 rm -f conftest.er1 19745 cat conftest.err >&5 19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19747 (exit $ac_status); } && { 19748 test -z "$ac_c_werror_flag" || 19749 test ! -s conftest.err 19750 } && test -s conftest.$ac_objext; then 19751 : 19752else 19753 echo "$as_me: failed program was:" >&5 19754sed 's/^/| /' conftest.$ac_ext >&5 19755 19756 ac_c_werror_flag=$ac_save_c_werror_flag 19757 CFLAGS="-g" 19758 cat >conftest.$ac_ext <<_ACEOF 19759/* confdefs.h. */ 19760_ACEOF 19761cat confdefs.h >>conftest.$ac_ext 19762cat >>conftest.$ac_ext <<_ACEOF 19763/* end confdefs.h. */ 19764 19765int 19766main () 19767{ 19768 19769 ; 19770 return 0; 19771} 19772_ACEOF 19773rm -f conftest.$ac_objext 19774if { (ac_try="$ac_compile" 19775case "(($ac_try" in 19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19777 *) ac_try_echo=$ac_try;; 19778esac 19779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19780 (eval "$ac_compile") 2>conftest.er1 19781 ac_status=$? 19782 grep -v '^ *+' conftest.er1 >conftest.err 19783 rm -f conftest.er1 19784 cat conftest.err >&5 19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19786 (exit $ac_status); } && { 19787 test -z "$ac_c_werror_flag" || 19788 test ! -s conftest.err 19789 } && test -s conftest.$ac_objext; then 19790 ac_cv_prog_cc_g=yes 19791else 19792 echo "$as_me: failed program was:" >&5 19793sed 's/^/| /' conftest.$ac_ext >&5 19794 19795 19796fi 19797 19798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19799fi 19800 19801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19802fi 19803 19804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19805 ac_c_werror_flag=$ac_save_c_werror_flag 19806fi 19807{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19808echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19809if test "$ac_test_CFLAGS" = set; then 19810 CFLAGS=$ac_save_CFLAGS 19811elif test $ac_cv_prog_cc_g = yes; then 19812 if test "$GCC" = yes; then 19813 CFLAGS="-g -O2" 19814 else 19815 CFLAGS="-g" 19816 fi 19817else 19818 if test "$GCC" = yes; then 19819 CFLAGS="-O2" 19820 else 19821 CFLAGS= 19822 fi 19823fi 19824{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19825echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19826if test "${ac_cv_prog_cc_c89+set}" = set; then 19827 echo $ECHO_N "(cached) $ECHO_C" >&6 19828else 19829 ac_cv_prog_cc_c89=no 19830ac_save_CC=$CC 19831cat >conftest.$ac_ext <<_ACEOF 19832/* confdefs.h. */ 19833_ACEOF 19834cat confdefs.h >>conftest.$ac_ext 19835cat >>conftest.$ac_ext <<_ACEOF 19836/* end confdefs.h. */ 19837#include <stdarg.h> 19838#include <stdio.h> 19839#include <sys/types.h> 19840#include <sys/stat.h> 19841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19842struct buf { int x; }; 19843FILE * (*rcsopen) (struct buf *, struct stat *, int); 19844static char *e (p, i) 19845 char **p; 19846 int i; 19847{ 19848 return p[i]; 19849} 19850static char *f (char * (*g) (char **, int), char **p, ...) 19851{ 19852 char *s; 19853 va_list v; 19854 va_start (v,p); 19855 s = g (p, va_arg (v,int)); 19856 va_end (v); 19857 return s; 19858} 19859 19860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19861 function prototypes and stuff, but not '\xHH' hex character constants. 19862 These don't provoke an error unfortunately, instead are silently treated 19863 as 'x'. The following induces an error, until -std is added to get 19864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19865 array size at least. It's necessary to write '\x00'==0 to get something 19866 that's true only with -std. */ 19867int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19868 19869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19870 inside strings and character constants. */ 19871#define FOO(x) 'x' 19872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19873 19874int test (int i, double x); 19875struct s1 {int (*f) (int a);}; 19876struct s2 {int (*f) (double a);}; 19877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19878int argc; 19879char **argv; 19880int 19881main () 19882{ 19883return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19884 ; 19885 return 0; 19886} 19887_ACEOF 19888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19890do 19891 CC="$ac_save_CC $ac_arg" 19892 rm -f conftest.$ac_objext 19893if { (ac_try="$ac_compile" 19894case "(($ac_try" in 19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19896 *) ac_try_echo=$ac_try;; 19897esac 19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19899 (eval "$ac_compile") 2>conftest.er1 19900 ac_status=$? 19901 grep -v '^ *+' conftest.er1 >conftest.err 19902 rm -f conftest.er1 19903 cat conftest.err >&5 19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19905 (exit $ac_status); } && { 19906 test -z "$ac_c_werror_flag" || 19907 test ! -s conftest.err 19908 } && test -s conftest.$ac_objext; then 19909 ac_cv_prog_cc_c89=$ac_arg 19910else 19911 echo "$as_me: failed program was:" >&5 19912sed 's/^/| /' conftest.$ac_ext >&5 19913 19914 19915fi 19916 19917rm -f core conftest.err conftest.$ac_objext 19918 test "x$ac_cv_prog_cc_c89" != "xno" && break 19919done 19920rm -f conftest.$ac_ext 19921CC=$ac_save_CC 19922 19923fi 19924# AC_CACHE_VAL 19925case "x$ac_cv_prog_cc_c89" in 19926 x) 19927 { echo "$as_me:$LINENO: result: none needed" >&5 19928echo "${ECHO_T}none needed" >&6; } ;; 19929 xno) 19930 { echo "$as_me:$LINENO: result: unsupported" >&5 19931echo "${ECHO_T}unsupported" >&6; } ;; 19932 *) 19933 CC="$CC $ac_cv_prog_cc_c89" 19934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 19935echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 19936esac 19937 19938 19939ac_ext=c 19940ac_cpp='$CPP $CPPFLAGS' 19941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19943ac_compiler_gnu=$ac_cv_c_compiler_gnu 19944 19945depcc="$CC" am_compiler_list= 19946 19947{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19948echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 19949if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19950 echo $ECHO_N "(cached) $ECHO_C" >&6 19951else 19952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19953 # We make a subdir and do the tests there. Otherwise we can end up 19954 # making bogus files that we don't know about and never remove. For 19955 # instance it was reported that on HP-UX the gcc test will end up 19956 # making a dummy file named `D' -- because `-MD' means `put the output 19957 # in D'. 19958 mkdir conftest.dir 19959 # Copy depcomp to subdir because otherwise we won't find it if we're 19960 # using a relative directory. 19961 cp "$am_depcomp" conftest.dir 19962 cd conftest.dir 19963 # We will build objects and dependencies in a subdirectory because 19964 # it helps to detect inapplicable dependency modes. For instance 19965 # both Tru64's cc and ICC support -MD to output dependencies as a 19966 # side effect of compilation, but ICC will put the dependencies in 19967 # the current directory while Tru64 will put them in the object 19968 # directory. 19969 mkdir sub 19970 19971 am_cv_CC_dependencies_compiler_type=none 19972 if test "$am_compiler_list" = ""; then 19973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19974 fi 19975 for depmode in $am_compiler_list; do 19976 # Setup a source with many dependencies, because some compilers 19977 # like to wrap large dependency lists on column 80 (with \), and 19978 # we should not choose a depcomp mode which is confused by this. 19979 # 19980 # We need to recreate these files for each test, as the compiler may 19981 # overwrite some of them when testing with obscure command lines. 19982 # This happens at least with the AIX C compiler. 19983 : > sub/conftest.c 19984 for i in 1 2 3 4 5 6; do 19985 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19987 # Solaris 8's {/usr,}/bin/sh. 19988 touch sub/conftst$i.h 19989 done 19990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19991 19992 case $depmode in 19993 nosideeffect) 19994 # after this tag, mechanisms are not by side-effect, so they'll 19995 # only be used when explicitly requested 19996 if test "x$enable_dependency_tracking" = xyes; then 19997 continue 19998 else 19999 break 20000 fi 20001 ;; 20002 none) break ;; 20003 esac 20004 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20005 # mode. It turns out that the SunPro C++ compiler does not properly 20006 # handle `-M -o', and we need to detect this. 20007 if depmode=$depmode \ 20008 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20010 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20011 >/dev/null 2>conftest.err && 20012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20016 # icc doesn't choke on unknown options, it will just issue warnings 20017 # or remarks (even with -Werror). So we grep stderr for any message 20018 # that says an option was ignored or not supported. 20019 # When given -MP, icc 7.0 and 7.1 complain thusly: 20020 # icc: Command line warning: ignoring option '-M'; no argument required 20021 # The diagnosis changed in icc 8.0: 20022 # icc: Command line remark: option '-MP' not supported 20023 if (grep 'ignoring option' conftest.err || 20024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20025 am_cv_CC_dependencies_compiler_type=$depmode 20026 break 20027 fi 20028 fi 20029 done 20030 20031 cd .. 20032 rm -rf conftest.dir 20033else 20034 am_cv_CC_dependencies_compiler_type=none 20035fi 20036 20037fi 20038{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20039echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20041 20042 if 20043 test "x$enable_dependency_tracking" != xno \ 20044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20045 am__fastdepCC_TRUE= 20046 am__fastdepCC_FALSE='#' 20047else 20048 am__fastdepCC_TRUE='#' 20049 am__fastdepCC_FALSE= 20050fi 20051 20052 20053 20054 20055if test "x$GCC" = xyes ; then 20056 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20057-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20058-Wbad-function-cast" 20059 case `gcc -dumpversion` in 20060 3.4.* | 4.*) 20061 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 20062 ;; 20063 esac 20064else 20065 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20066echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; } 20067if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20068 echo $ECHO_N "(cached) $ECHO_C" >&6 20069else 20070 cat >conftest.$ac_ext <<_ACEOF 20071/* confdefs.h. */ 20072_ACEOF 20073cat confdefs.h >>conftest.$ac_ext 20074cat >>conftest.$ac_ext <<_ACEOF 20075/* end confdefs.h. */ 20076$ac_includes_default 20077int 20078main () 20079{ 20080#ifndef __SUNPRO_C 20081 (void) __SUNPRO_C; 20082#endif 20083 20084 ; 20085 return 0; 20086} 20087_ACEOF 20088rm -f conftest.$ac_objext 20089if { (ac_try="$ac_compile" 20090case "(($ac_try" in 20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20092 *) ac_try_echo=$ac_try;; 20093esac 20094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20095 (eval "$ac_compile") 2>conftest.er1 20096 ac_status=$? 20097 grep -v '^ *+' conftest.er1 >conftest.err 20098 rm -f conftest.er1 20099 cat conftest.err >&5 20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20101 (exit $ac_status); } && { 20102 test -z "$ac_c_werror_flag" || 20103 test ! -s conftest.err 20104 } && test -s conftest.$ac_objext; then 20105 ac_cv_have_decl___SUNPRO_C=yes 20106else 20107 echo "$as_me: failed program was:" >&5 20108sed 's/^/| /' conftest.$ac_ext >&5 20109 20110 ac_cv_have_decl___SUNPRO_C=no 20111fi 20112 20113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20114fi 20115{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20116echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; } 20117if test $ac_cv_have_decl___SUNPRO_C = yes; then 20118 SUNCC="yes" 20119else 20120 SUNCC="no" 20121fi 20122 20123 if test "x$SUNCC" = "xyes"; then 20124 CWARNFLAGS="-v" 20125 fi 20126fi 20127 20128 20129 20130 20131 20132 20133 20134# Check whether --with-xorg-module-dir was given. 20135if test "${with_xorg_module_dir+set}" = set; then 20136 withval=$with_xorg_module_dir; moduledir="$withval" 20137else 20138 moduledir="$libdir/xorg/modules" 20139fi 20140 20141inputdir=${moduledir}/input 20142 20143 20144# Checks for extensions 20145 20146 SAVE_CFLAGS="$CFLAGS" 20147 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20148 cat >conftest.$ac_ext <<_ACEOF 20149/* confdefs.h. */ 20150_ACEOF 20151cat confdefs.h >>conftest.$ac_ext 20152cat >>conftest.$ac_ext <<_ACEOF 20153/* end confdefs.h. */ 20154 20155#include "xorg-server.h" 20156#if !defined RANDR 20157#error RANDR not defined 20158#endif 20159 20160int 20161main () 20162{ 20163 20164 ; 20165 return 0; 20166} 20167_ACEOF 20168rm -f conftest.$ac_objext 20169if { (ac_try="$ac_compile" 20170case "(($ac_try" in 20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20172 *) ac_try_echo=$ac_try;; 20173esac 20174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20175 (eval "$ac_compile") 2>conftest.er1 20176 ac_status=$? 20177 grep -v '^ *+' conftest.er1 >conftest.err 20178 rm -f conftest.er1 20179 cat conftest.err >&5 20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20181 (exit $ac_status); } && { 20182 test -z "$ac_c_werror_flag" || 20183 test ! -s conftest.err 20184 } && test -s conftest.$ac_objext; then 20185 _EXT_CHECK=yes 20186else 20187 echo "$as_me: failed program was:" >&5 20188sed 's/^/| /' conftest.$ac_ext >&5 20189 20190 _EXT_CHECK=no 20191fi 20192 20193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20194 CFLAGS="$SAVE_CFLAGS" 20195 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20196echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 20197 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20198echo "${ECHO_T}$_EXT_CHECK" >&6; } 20199 if test "$_EXT_CHECK" != no; then 20200 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20201 fi 20202 20203 20204 SAVE_CFLAGS="$CFLAGS" 20205 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20206 cat >conftest.$ac_ext <<_ACEOF 20207/* confdefs.h. */ 20208_ACEOF 20209cat confdefs.h >>conftest.$ac_ext 20210cat >>conftest.$ac_ext <<_ACEOF 20211/* end confdefs.h. */ 20212 20213#include "xorg-server.h" 20214#if !defined XINPUT 20215#error XINPUT not defined 20216#endif 20217 20218int 20219main () 20220{ 20221 20222 ; 20223 return 0; 20224} 20225_ACEOF 20226rm -f conftest.$ac_objext 20227if { (ac_try="$ac_compile" 20228case "(($ac_try" in 20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20230 *) ac_try_echo=$ac_try;; 20231esac 20232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20233 (eval "$ac_compile") 2>conftest.er1 20234 ac_status=$? 20235 grep -v '^ *+' conftest.er1 >conftest.err 20236 rm -f conftest.er1 20237 cat conftest.err >&5 20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20239 (exit $ac_status); } && { 20240 test -z "$ac_c_werror_flag" || 20241 test ! -s conftest.err 20242 } && test -s conftest.$ac_objext; then 20243 _EXT_CHECK=yes 20244else 20245 echo "$as_me: failed program was:" >&5 20246sed 's/^/| /' conftest.$ac_ext >&5 20247 20248 _EXT_CHECK=no 20249fi 20250 20251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20252 CFLAGS="$SAVE_CFLAGS" 20253 { echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 20254echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6; } 20255 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20256echo "${ECHO_T}$_EXT_CHECK" >&6; } 20257 if test "$_EXT_CHECK" != no; then 20258 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 20259 fi 20260 20261 20262# Checks for pkg-config packages 20263 20264 20265if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20266 if test -n "$ac_tool_prefix"; then 20267 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20268set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20271if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20272 echo $ECHO_N "(cached) $ECHO_C" >&6 20273else 20274 case $PKG_CONFIG in 20275 [\\/]* | ?:[\\/]*) 20276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20277 ;; 20278 *) 20279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20280for as_dir in $PATH 20281do 20282 IFS=$as_save_IFS 20283 test -z "$as_dir" && as_dir=. 20284 for ac_exec_ext in '' $ac_executable_extensions; do 20285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20288 break 2 20289 fi 20290done 20291done 20292IFS=$as_save_IFS 20293 20294 ;; 20295esac 20296fi 20297PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20298if test -n "$PKG_CONFIG"; then 20299 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20300echo "${ECHO_T}$PKG_CONFIG" >&6; } 20301else 20302 { echo "$as_me:$LINENO: result: no" >&5 20303echo "${ECHO_T}no" >&6; } 20304fi 20305 20306 20307fi 20308if test -z "$ac_cv_path_PKG_CONFIG"; then 20309 ac_pt_PKG_CONFIG=$PKG_CONFIG 20310 # Extract the first word of "pkg-config", so it can be a program name with args. 20311set dummy pkg-config; ac_word=$2 20312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20314if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20315 echo $ECHO_N "(cached) $ECHO_C" >&6 20316else 20317 case $ac_pt_PKG_CONFIG in 20318 [\\/]* | ?:[\\/]*) 20319 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20320 ;; 20321 *) 20322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20323for as_dir in $PATH 20324do 20325 IFS=$as_save_IFS 20326 test -z "$as_dir" && as_dir=. 20327 for ac_exec_ext in '' $ac_executable_extensions; do 20328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20329 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20331 break 2 20332 fi 20333done 20334done 20335IFS=$as_save_IFS 20336 20337 ;; 20338esac 20339fi 20340ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20341if test -n "$ac_pt_PKG_CONFIG"; then 20342 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20343echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20344else 20345 { echo "$as_me:$LINENO: result: no" >&5 20346echo "${ECHO_T}no" >&6; } 20347fi 20348 20349 if test "x$ac_pt_PKG_CONFIG" = x; then 20350 PKG_CONFIG="" 20351 else 20352 case $cross_compiling:$ac_tool_warned in 20353yes:) 20354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20355whose name does not start with the host triplet. If you think this 20356configuration is useful to you, please write to autoconf@gnu.org." >&5 20357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20358whose name does not start with the host triplet. If you think this 20359configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20360ac_tool_warned=yes ;; 20361esac 20362 PKG_CONFIG=$ac_pt_PKG_CONFIG 20363 fi 20364else 20365 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20366fi 20367 20368fi 20369if test -n "$PKG_CONFIG"; then 20370 _pkg_min_version=0.9.0 20371 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20372echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20373 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20374 { echo "$as_me:$LINENO: result: yes" >&5 20375echo "${ECHO_T}yes" >&6; } 20376 else 20377 { echo "$as_me:$LINENO: result: no" >&5 20378echo "${ECHO_T}no" >&6; } 20379 PKG_CONFIG="" 20380 fi 20381 20382fi 20383 20384pkg_failed=no 20385{ echo "$as_me:$LINENO: checking for XORG" >&5 20386echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 20387 20388if test -n "$PKG_CONFIG"; then 20389 if test -n "$PKG_CONFIG" && \ 20390 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5 20391 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5 20392 ac_status=$? 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); }; then 20395 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 20396else 20397 pkg_failed=yes 20398fi 20399else 20400 pkg_failed=untried 20401fi 20402if test -n "$PKG_CONFIG"; then 20403 if test -n "$PKG_CONFIG" && \ 20404 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5 20405 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5 20406 ac_status=$? 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); }; then 20409 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null` 20410else 20411 pkg_failed=yes 20412fi 20413else 20414 pkg_failed=untried 20415fi 20416 20417if test $pkg_failed = yes; then 20418 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"` 20419 # Put the nasty error message in config.log where it belongs 20420 echo "$XORG_PKG_ERRORS" 1>&5 20421 20422 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met. 20423Consider adjusting the PKG_CONFIG_PATH environment variable if you 20424installed software in a non-standard prefix. 20425 20426Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables 20427to avoid the need to call pkg-config. See the pkg-config man page for 20428more details." >&5 20429echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met. 20430Consider adjusting the PKG_CONFIG_PATH environment variable if you 20431installed software in a non-standard prefix. 20432 20433Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables 20434to avoid the need to call pkg-config. See the pkg-config man page for 20435more details." >&2;} 20436 { (exit 1); exit 1; }; } 20437elif test $pkg_failed = untried; then 20438 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20439is in your PATH or set the PKG_CONFIG environment variable to the full 20440path to pkg-config. 20441 20442Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables 20443to avoid the need to call pkg-config. See the pkg-config man page for 20444more details. 20445 20446To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20447See \`config.log' for more details." >&5 20448echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20449is in your PATH or set the PKG_CONFIG environment variable to the full 20450path to pkg-config. 20451 20452Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables 20453to avoid the need to call pkg-config. See the pkg-config man page for 20454more details. 20455 20456To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20457See \`config.log' for more details." >&2;} 20458 { (exit 1); exit 1; }; } 20459else 20460 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20461 XORG_LIBS=$pkg_cv_XORG_LIBS 20462 { echo "$as_me:$LINENO: result: yes" >&5 20463echo "${ECHO_T}yes" >&6; } 20464 : 20465fi 20466sdkdir=$(pkg-config --variable=sdkdir xorg-server) 20467 20468# Checks for libraries. 20469 20470# Checks for header files. 20471{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20472echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20473if test "${ac_cv_header_stdc+set}" = set; then 20474 echo $ECHO_N "(cached) $ECHO_C" >&6 20475else 20476 cat >conftest.$ac_ext <<_ACEOF 20477/* confdefs.h. */ 20478_ACEOF 20479cat confdefs.h >>conftest.$ac_ext 20480cat >>conftest.$ac_ext <<_ACEOF 20481/* end confdefs.h. */ 20482#include <stdlib.h> 20483#include <stdarg.h> 20484#include <string.h> 20485#include <float.h> 20486 20487int 20488main () 20489{ 20490 20491 ; 20492 return 0; 20493} 20494_ACEOF 20495rm -f conftest.$ac_objext 20496if { (ac_try="$ac_compile" 20497case "(($ac_try" in 20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20499 *) ac_try_echo=$ac_try;; 20500esac 20501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20502 (eval "$ac_compile") 2>conftest.er1 20503 ac_status=$? 20504 grep -v '^ *+' conftest.er1 >conftest.err 20505 rm -f conftest.er1 20506 cat conftest.err >&5 20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20508 (exit $ac_status); } && { 20509 test -z "$ac_c_werror_flag" || 20510 test ! -s conftest.err 20511 } && test -s conftest.$ac_objext; then 20512 ac_cv_header_stdc=yes 20513else 20514 echo "$as_me: failed program was:" >&5 20515sed 's/^/| /' conftest.$ac_ext >&5 20516 20517 ac_cv_header_stdc=no 20518fi 20519 20520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20521 20522if test $ac_cv_header_stdc = yes; then 20523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20524 cat >conftest.$ac_ext <<_ACEOF 20525/* confdefs.h. */ 20526_ACEOF 20527cat confdefs.h >>conftest.$ac_ext 20528cat >>conftest.$ac_ext <<_ACEOF 20529/* end confdefs.h. */ 20530#include <string.h> 20531 20532_ACEOF 20533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20534 $EGREP "memchr" >/dev/null 2>&1; then 20535 : 20536else 20537 ac_cv_header_stdc=no 20538fi 20539rm -f conftest* 20540 20541fi 20542 20543if test $ac_cv_header_stdc = yes; then 20544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20545 cat >conftest.$ac_ext <<_ACEOF 20546/* confdefs.h. */ 20547_ACEOF 20548cat confdefs.h >>conftest.$ac_ext 20549cat >>conftest.$ac_ext <<_ACEOF 20550/* end confdefs.h. */ 20551#include <stdlib.h> 20552 20553_ACEOF 20554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20555 $EGREP "free" >/dev/null 2>&1; then 20556 : 20557else 20558 ac_cv_header_stdc=no 20559fi 20560rm -f conftest* 20561 20562fi 20563 20564if test $ac_cv_header_stdc = yes; then 20565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20566 if test "$cross_compiling" = yes; then 20567 : 20568else 20569 cat >conftest.$ac_ext <<_ACEOF 20570/* confdefs.h. */ 20571_ACEOF 20572cat confdefs.h >>conftest.$ac_ext 20573cat >>conftest.$ac_ext <<_ACEOF 20574/* end confdefs.h. */ 20575#include <ctype.h> 20576#include <stdlib.h> 20577#if ((' ' & 0x0FF) == 0x020) 20578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20580#else 20581# define ISLOWER(c) \ 20582 (('a' <= (c) && (c) <= 'i') \ 20583 || ('j' <= (c) && (c) <= 'r') \ 20584 || ('s' <= (c) && (c) <= 'z')) 20585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20586#endif 20587 20588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20589int 20590main () 20591{ 20592 int i; 20593 for (i = 0; i < 256; i++) 20594 if (XOR (islower (i), ISLOWER (i)) 20595 || toupper (i) != TOUPPER (i)) 20596 return 2; 20597 return 0; 20598} 20599_ACEOF 20600rm -f conftest$ac_exeext 20601if { (ac_try="$ac_link" 20602case "(($ac_try" in 20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20604 *) ac_try_echo=$ac_try;; 20605esac 20606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20607 (eval "$ac_link") 2>&5 20608 ac_status=$? 20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20611 { (case "(($ac_try" in 20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20613 *) ac_try_echo=$ac_try;; 20614esac 20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20616 (eval "$ac_try") 2>&5 20617 ac_status=$? 20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20619 (exit $ac_status); }; }; then 20620 : 20621else 20622 echo "$as_me: program exited with status $ac_status" >&5 20623echo "$as_me: failed program was:" >&5 20624sed 's/^/| /' conftest.$ac_ext >&5 20625 20626( exit $ac_status ) 20627ac_cv_header_stdc=no 20628fi 20629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20630fi 20631 20632 20633fi 20634fi 20635{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20636echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20637if test $ac_cv_header_stdc = yes; then 20638 20639cat >>confdefs.h <<\_ACEOF 20640#define STDC_HEADERS 1 20641_ACEOF 20642 20643fi 20644 20645 20646# Work out which OS mouse driver we need to build 20647case $host_os in 20648 linux*) 20649 OS_MOUSE_NAME=lnx 20650 ;; 20651 freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*) 20652 OS_MOUSE_NAME=bsd 20653 ;; 20654 solaris*) 20655 OS_MOUSE_NAME=sun 20656 ;; 20657 gnu*) 20658 OS_MOUSE_NAME=hurd 20659 ;; 20660esac 20661 20662 20663 20664 20665# Allow checking code with lint, sparse, etc. 20666 20667# Check whether --with-lint was given. 20668if test "${with_lint+set}" = set; then 20669 withval=$with_lint; use_lint=$withval 20670else 20671 use_lint=no 20672fi 20673 20674if test "x$use_lint" = "xyes" ; then 20675 LINT="lint" 20676else 20677 LINT="$use_lint" 20678fi 20679if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 20680 case $LINT in 20681 lint|*/lint) 20682 case $host_os in 20683 solaris*) 20684 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20685 ;; 20686 esac 20687 ;; 20688 esac 20689fi 20690 20691 20692 20693 if test x$LINT != xno; then 20694 LINT_TRUE= 20695 LINT_FALSE='#' 20696else 20697 LINT_TRUE='#' 20698 LINT_FALSE= 20699fi 20700 20701 20702 20703 20704 20705 20706 20707if test x$APP_MAN_SUFFIX = x ; then 20708 APP_MAN_SUFFIX=1 20709fi 20710if test x$APP_MAN_DIR = x ; then 20711 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20712fi 20713 20714if test x$LIB_MAN_SUFFIX = x ; then 20715 LIB_MAN_SUFFIX=3 20716fi 20717if test x$LIB_MAN_DIR = x ; then 20718 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20719fi 20720 20721if test x$FILE_MAN_SUFFIX = x ; then 20722 case $host_os in 20723 solaris*) FILE_MAN_SUFFIX=4 ;; 20724 *) FILE_MAN_SUFFIX=5 ;; 20725 esac 20726fi 20727if test x$FILE_MAN_DIR = x ; then 20728 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20729fi 20730 20731if test x$MISC_MAN_SUFFIX = x ; then 20732 case $host_os in 20733 solaris*) MISC_MAN_SUFFIX=5 ;; 20734 *) MISC_MAN_SUFFIX=7 ;; 20735 esac 20736fi 20737if test x$MISC_MAN_DIR = x ; then 20738 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20739fi 20740 20741if test x$DRIVER_MAN_SUFFIX = x ; then 20742 case $host_os in 20743 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20744 *) DRIVER_MAN_SUFFIX=4 ;; 20745 esac 20746fi 20747if test x$DRIVER_MAN_DIR = x ; then 20748 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20749fi 20750 20751if test x$ADMIN_MAN_SUFFIX = x ; then 20752 case $host_os in 20753 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20754 *) ADMIN_MAN_SUFFIX=8 ;; 20755 esac 20756fi 20757if test x$ADMIN_MAN_DIR = x ; then 20758 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20759fi 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777# Check whether --with-release-version was given. 20778if test "${with_release_version+set}" = set; then 20779 withval=$with_release_version; RELEASE_VERSION="$withval" 20780else 20781 RELEASE_VERSION="" 20782fi 20783 20784 if test "x$RELEASE_VERSION" != "x"; then 20785 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20786 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20787 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20788echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20789 fi 20790 20791cat >>confdefs.h <<_ACEOF 20792#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20793_ACEOF 20794 20795 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20796 if test "x$PVM" = "x"; then 20797 PVM="0" 20798 fi 20799 20800cat >>confdefs.h <<_ACEOF 20801#define PACKAGE_VERSION_MINOR $PVM 20802_ACEOF 20803 20804 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20805 if test "x$PVP" = "x"; then 20806 PVP="0" 20807 fi 20808 20809cat >>confdefs.h <<_ACEOF 20810#define PACKAGE_VERSION_PATCHLEVEL $PVP 20811_ACEOF 20812 20813 20814 20815CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 20816mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 20817echo 'git directory not found: installing possibly empty changelog.' >&2)" 20818 20819distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 20820 20821 20822 20823 20824if test x$XORG_SGML_PATH = x ; then 20825 XORG_SGML_PATH=$prefix/share/sgml 20826fi 20827HAVE_DEFS_ENT= 20828 20829if test x"$cross_compiling" = x"yes" ; then 20830 HAVE_DEFS_ENT=no 20831else 20832 as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 20833{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 20834echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; } 20835if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20836 echo $ECHO_N "(cached) $ECHO_C" >&6 20837else 20838 test "$cross_compiling" = yes && 20839 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20840echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20841 { (exit 1); exit 1; }; } 20842if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 20843 eval "$as_ac_File=yes" 20844else 20845 eval "$as_ac_File=no" 20846fi 20847fi 20848ac_res=`eval echo '${'$as_ac_File'}'` 20849 { echo "$as_me:$LINENO: result: $ac_res" >&5 20850echo "${ECHO_T}$ac_res" >&6; } 20851if test `eval echo '${'$as_ac_File'}'` = yes; then 20852 HAVE_DEFS_ENT=yes 20853fi 20854 20855fi 20856 20857# Extract the first word of "linuxdoc", so it can be a program name with args. 20858set dummy linuxdoc; ac_word=$2 20859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20861if test "${ac_cv_path_LINUXDOC+set}" = set; then 20862 echo $ECHO_N "(cached) $ECHO_C" >&6 20863else 20864 case $LINUXDOC in 20865 [\\/]* | ?:[\\/]*) 20866 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 20867 ;; 20868 *) 20869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20870for as_dir in $PATH 20871do 20872 IFS=$as_save_IFS 20873 test -z "$as_dir" && as_dir=. 20874 for ac_exec_ext in '' $ac_executable_extensions; do 20875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20876 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 20877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20878 break 2 20879 fi 20880done 20881done 20882IFS=$as_save_IFS 20883 20884 ;; 20885esac 20886fi 20887LINUXDOC=$ac_cv_path_LINUXDOC 20888if test -n "$LINUXDOC"; then 20889 { echo "$as_me:$LINENO: result: $LINUXDOC" >&5 20890echo "${ECHO_T}$LINUXDOC" >&6; } 20891else 20892 { echo "$as_me:$LINENO: result: no" >&5 20893echo "${ECHO_T}no" >&6; } 20894fi 20895 20896 20897# Extract the first word of "ps2pdf", so it can be a program name with args. 20898set dummy ps2pdf; ac_word=$2 20899{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20901if test "${ac_cv_path_PS2PDF+set}" = set; then 20902 echo $ECHO_N "(cached) $ECHO_C" >&6 20903else 20904 case $PS2PDF in 20905 [\\/]* | ?:[\\/]*) 20906 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 20907 ;; 20908 *) 20909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20910for as_dir in $PATH 20911do 20912 IFS=$as_save_IFS 20913 test -z "$as_dir" && as_dir=. 20914 for ac_exec_ext in '' $ac_executable_extensions; do 20915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20916 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 20917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20918 break 2 20919 fi 20920done 20921done 20922IFS=$as_save_IFS 20923 20924 ;; 20925esac 20926fi 20927PS2PDF=$ac_cv_path_PS2PDF 20928if test -n "$PS2PDF"; then 20929 { echo "$as_me:$LINENO: result: $PS2PDF" >&5 20930echo "${ECHO_T}$PS2PDF" >&6; } 20931else 20932 { echo "$as_me:$LINENO: result: no" >&5 20933echo "${ECHO_T}no" >&6; } 20934fi 20935 20936 20937 20938{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5 20939echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; } 20940 20941if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 20942 BUILDDOC=yes 20943else 20944 BUILDDOC=no 20945fi 20946 20947 if test x$BUILDDOC = xyes; then 20948 BUILD_LINUXDOC_TRUE= 20949 BUILD_LINUXDOC_FALSE='#' 20950else 20951 BUILD_LINUXDOC_TRUE='#' 20952 BUILD_LINUXDOC_FALSE= 20953fi 20954 20955 20956{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5 20957echo "${ECHO_T}$BUILDDOC" >&6; } 20958 20959{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 20960echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; } 20961 20962if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 20963 BUILDPDFDOC=yes 20964else 20965 BUILDPDFDOC=no 20966fi 20967 20968 if test x$BUILDPDFDOC = xyes; then 20969 BUILD_PDFDOC_TRUE= 20970 BUILD_PDFDOC_FALSE='#' 20971else 20972 BUILD_PDFDOC_TRUE='#' 20973 BUILD_PDFDOC_FALSE= 20974fi 20975 20976 20977{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 20978echo "${ECHO_T}$BUILDPDFDOC" >&6; } 20979 20980MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 20981MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 20982MAKE_PDF="$PS2PDF" 20983MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 20984 20985 20986 20987 20988 20989 20990 20991ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20992 20993cat >confcache <<\_ACEOF 20994# This file is a shell script that caches the results of configure 20995# tests run on this system so they can be shared between configure 20996# scripts and configure runs, see configure's option --config-cache. 20997# It is not useful on other systems. If it contains results you don't 20998# want to keep, you may remove or edit it. 20999# 21000# config.status only pays attention to the cache file if you give it 21001# the --recheck option to rerun configure. 21002# 21003# `ac_cv_env_foo' variables (set or unset) will be overridden when 21004# loading this file, other *unset* `ac_cv_foo' will be assigned the 21005# following values. 21006 21007_ACEOF 21008 21009# The following way of writing the cache mishandles newlines in values, 21010# but we know of no workaround that is simple, portable, and efficient. 21011# So, we kill variables containing newlines. 21012# Ultrix sh set writes to stderr and can't be redirected directly, 21013# and sets the high bit in the cache file unless we assign to the vars. 21014( 21015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21016 eval ac_val=\$$ac_var 21017 case $ac_val in #( 21018 *${as_nl}*) 21019 case $ac_var in #( 21020 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21021echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21022 esac 21023 case $ac_var in #( 21024 _ | IFS | as_nl) ;; #( 21025 *) $as_unset $ac_var ;; 21026 esac ;; 21027 esac 21028 done 21029 21030 (set) 2>&1 | 21031 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21032 *${as_nl}ac_space=\ *) 21033 # `set' does not quote correctly, so add quotes (double-quote 21034 # substitution turns \\\\ into \\, and sed turns \\ into \). 21035 sed -n \ 21036 "s/'/'\\\\''/g; 21037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21038 ;; #( 21039 *) 21040 # `set' quotes correctly as required by POSIX, so do not add quotes. 21041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21042 ;; 21043 esac | 21044 sort 21045) | 21046 sed ' 21047 /^ac_cv_env_/b end 21048 t clear 21049 :clear 21050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21051 t end 21052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21053 :end' >>confcache 21054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21055 if test -w "$cache_file"; then 21056 test "x$cache_file" != "x/dev/null" && 21057 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21058echo "$as_me: updating cache $cache_file" >&6;} 21059 cat confcache >$cache_file 21060 else 21061 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21062echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21063 fi 21064fi 21065rm -f confcache 21066 21067test "x$prefix" = xNONE && prefix=$ac_default_prefix 21068# Let make expand exec_prefix. 21069test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21070 21071DEFS=-DHAVE_CONFIG_H 21072 21073ac_libobjs= 21074ac_ltlibobjs= 21075for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21076 # 1. Remove the extension, and $U if already installed. 21077 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21078 ac_i=`echo "$ac_i" | sed "$ac_script"` 21079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21080 # will be set to the directory where LIBOBJS objects are built. 21081 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21082 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21083done 21084LIBOBJS=$ac_libobjs 21085 21086LTLIBOBJS=$ac_ltlibobjs 21087 21088 21089if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21090 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21091Usually this means the macro was only invoked conditionally." >&5 21092echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21093Usually this means the macro was only invoked conditionally." >&2;} 21094 { (exit 1); exit 1; }; } 21095fi 21096if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21097 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21098Usually this means the macro was only invoked conditionally." >&5 21099echo "$as_me: error: conditional \"AMDEP\" was never defined. 21100Usually this means the macro was only invoked conditionally." >&2;} 21101 { (exit 1); exit 1; }; } 21102fi 21103if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21104 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21105Usually this means the macro was only invoked conditionally." >&5 21106echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21107Usually this means the macro was only invoked conditionally." >&2;} 21108 { (exit 1); exit 1; }; } 21109fi 21110if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21111 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21112Usually this means the macro was only invoked conditionally." >&5 21113echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21114Usually this means the macro was only invoked conditionally." >&2;} 21115 { (exit 1); exit 1; }; } 21116fi 21117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21118 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21119Usually this means the macro was only invoked conditionally." >&5 21120echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21121Usually this means the macro was only invoked conditionally." >&2;} 21122 { (exit 1); exit 1; }; } 21123fi 21124if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21125 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 21126Usually this means the macro was only invoked conditionally." >&5 21127echo "$as_me: error: conditional \"LINT\" was never defined. 21128Usually this means the macro was only invoked conditionally." >&2;} 21129 { (exit 1); exit 1; }; } 21130fi 21131if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 21132 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 21133Usually this means the macro was only invoked conditionally." >&5 21134echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 21135Usually this means the macro was only invoked conditionally." >&2;} 21136 { (exit 1); exit 1; }; } 21137fi 21138if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 21139 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 21140Usually this means the macro was only invoked conditionally." >&5 21141echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 21142Usually this means the macro was only invoked conditionally." >&2;} 21143 { (exit 1); exit 1; }; } 21144fi 21145 21146: ${CONFIG_STATUS=./config.status} 21147ac_clean_files_save=$ac_clean_files 21148ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21149{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21150echo "$as_me: creating $CONFIG_STATUS" >&6;} 21151cat >$CONFIG_STATUS <<_ACEOF 21152#! $SHELL 21153# Generated by $as_me. 21154# Run this file to recreate the current configuration. 21155# Compiler output produced by configure, useful for debugging 21156# configure, is in config.log if it exists. 21157 21158debug=false 21159ac_cs_recheck=false 21160ac_cs_silent=false 21161SHELL=\${CONFIG_SHELL-$SHELL} 21162_ACEOF 21163 21164cat >>$CONFIG_STATUS <<\_ACEOF 21165## --------------------- ## 21166## M4sh Initialization. ## 21167## --------------------- ## 21168 21169# Be more Bourne compatible 21170DUALCASE=1; export DUALCASE # for MKS sh 21171if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21172 emulate sh 21173 NULLCMD=: 21174 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21175 # is contrary to our usage. Disable this feature. 21176 alias -g '${1+"$@"}'='"$@"' 21177 setopt NO_GLOB_SUBST 21178else 21179 case `(set -o) 2>/dev/null` in 21180 *posix*) set -o posix ;; 21181esac 21182 21183fi 21184 21185 21186 21187 21188# PATH needs CR 21189# Avoid depending upon Character Ranges. 21190as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21192as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21193as_cr_digits='0123456789' 21194as_cr_alnum=$as_cr_Letters$as_cr_digits 21195 21196# The user is always right. 21197if test "${PATH_SEPARATOR+set}" != set; then 21198 echo "#! /bin/sh" >conf$$.sh 21199 echo "exit 0" >>conf$$.sh 21200 chmod +x conf$$.sh 21201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21202 PATH_SEPARATOR=';' 21203 else 21204 PATH_SEPARATOR=: 21205 fi 21206 rm -f conf$$.sh 21207fi 21208 21209# Support unset when possible. 21210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21211 as_unset=unset 21212else 21213 as_unset=false 21214fi 21215 21216 21217# IFS 21218# We need space, tab and new line, in precisely that order. Quoting is 21219# there to prevent editors from complaining about space-tab. 21220# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21221# splitting by setting IFS to empty value.) 21222as_nl=' 21223' 21224IFS=" "" $as_nl" 21225 21226# Find who we are. Look in the path if we contain no directory separator. 21227case $0 in 21228 *[\\/]* ) as_myself=$0 ;; 21229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21230for as_dir in $PATH 21231do 21232 IFS=$as_save_IFS 21233 test -z "$as_dir" && as_dir=. 21234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21235done 21236IFS=$as_save_IFS 21237 21238 ;; 21239esac 21240# We did not find ourselves, most probably we were run as `sh COMMAND' 21241# in which case we are not to be found in the path. 21242if test "x$as_myself" = x; then 21243 as_myself=$0 21244fi 21245if test ! -f "$as_myself"; then 21246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21247 { (exit 1); exit 1; } 21248fi 21249 21250# Work around bugs in pre-3.0 UWIN ksh. 21251for as_var in ENV MAIL MAILPATH 21252do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21253done 21254PS1='$ ' 21255PS2='> ' 21256PS4='+ ' 21257 21258# NLS nuisances. 21259for as_var in \ 21260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21262 LC_TELEPHONE LC_TIME 21263do 21264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21265 eval $as_var=C; export $as_var 21266 else 21267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21268 fi 21269done 21270 21271# Required to use basename. 21272if expr a : '\(a\)' >/dev/null 2>&1 && 21273 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21274 as_expr=expr 21275else 21276 as_expr=false 21277fi 21278 21279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21280 as_basename=basename 21281else 21282 as_basename=false 21283fi 21284 21285 21286# Name of the executable. 21287as_me=`$as_basename -- "$0" || 21288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21289 X"$0" : 'X\(//\)$' \| \ 21290 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21291echo X/"$0" | 21292 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21293 s//\1/ 21294 q 21295 } 21296 /^X\/\(\/\/\)$/{ 21297 s//\1/ 21298 q 21299 } 21300 /^X\/\(\/\).*/{ 21301 s//\1/ 21302 q 21303 } 21304 s/.*/./; q'` 21305 21306# CDPATH. 21307$as_unset CDPATH 21308 21309 21310 21311 as_lineno_1=$LINENO 21312 as_lineno_2=$LINENO 21313 test "x$as_lineno_1" != "x$as_lineno_2" && 21314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21315 21316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21317 # uniformly replaced by the line number. The first 'sed' inserts a 21318 # line-number line after each line using $LINENO; the second 'sed' 21319 # does the real work. The second script uses 'N' to pair each 21320 # line-number line with the line containing $LINENO, and appends 21321 # trailing '-' during substitution so that $LINENO is not a special 21322 # case at line end. 21323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21324 # scripts with optimization help from Paolo Bonzini. Blame Lee 21325 # E. McMahon (1931-1989) for sed's syntax. :-) 21326 sed -n ' 21327 p 21328 /[$]LINENO/= 21329 ' <$as_myself | 21330 sed ' 21331 s/[$]LINENO.*/&-/ 21332 t lineno 21333 b 21334 :lineno 21335 N 21336 :loop 21337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21338 t loop 21339 s/-\n.*// 21340 ' >$as_me.lineno && 21341 chmod +x "$as_me.lineno" || 21342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21343 { (exit 1); exit 1; }; } 21344 21345 # Don't try to exec as it changes $[0], causing all sort of problems 21346 # (the dirname of $[0] is not the place where we might find the 21347 # original and so on. Autoconf is especially sensitive to this). 21348 . "./$as_me.lineno" 21349 # Exit status is that of the last command. 21350 exit 21351} 21352 21353 21354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21355 as_dirname=dirname 21356else 21357 as_dirname=false 21358fi 21359 21360ECHO_C= ECHO_N= ECHO_T= 21361case `echo -n x` in 21362-n*) 21363 case `echo 'x\c'` in 21364 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21365 *) ECHO_C='\c';; 21366 esac;; 21367*) 21368 ECHO_N='-n';; 21369esac 21370 21371if expr a : '\(a\)' >/dev/null 2>&1 && 21372 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21373 as_expr=expr 21374else 21375 as_expr=false 21376fi 21377 21378rm -f conf$$ conf$$.exe conf$$.file 21379if test -d conf$$.dir; then 21380 rm -f conf$$.dir/conf$$.file 21381else 21382 rm -f conf$$.dir 21383 mkdir conf$$.dir 21384fi 21385echo >conf$$.file 21386if ln -s conf$$.file conf$$ 2>/dev/null; then 21387 as_ln_s='ln -s' 21388 # ... but there are two gotchas: 21389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21391 # In both cases, we have to default to `cp -p'. 21392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21393 as_ln_s='cp -p' 21394elif ln conf$$.file conf$$ 2>/dev/null; then 21395 as_ln_s=ln 21396else 21397 as_ln_s='cp -p' 21398fi 21399rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21400rmdir conf$$.dir 2>/dev/null 21401 21402if mkdir -p . 2>/dev/null; then 21403 as_mkdir_p=: 21404else 21405 test -d ./-p && rmdir ./-p 21406 as_mkdir_p=false 21407fi 21408 21409if test -x / >/dev/null 2>&1; then 21410 as_test_x='test -x' 21411else 21412 if ls -dL / >/dev/null 2>&1; then 21413 as_ls_L_option=L 21414 else 21415 as_ls_L_option= 21416 fi 21417 as_test_x=' 21418 eval sh -c '\'' 21419 if test -d "$1"; then 21420 test -d "$1/."; 21421 else 21422 case $1 in 21423 -*)set "./$1";; 21424 esac; 21425 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21426 ???[sx]*):;;*)false;;esac;fi 21427 '\'' sh 21428 ' 21429fi 21430as_executable_p=$as_test_x 21431 21432# Sed expression to map a string onto a valid CPP name. 21433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21434 21435# Sed expression to map a string onto a valid variable name. 21436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21437 21438 21439exec 6>&1 21440 21441# Save the log message, to keep $[0] and so on meaningful, and to 21442# report actual input values of CONFIG_FILES etc. instead of their 21443# values after options handling. 21444ac_log=" 21445This file was extended by xf86-input-mouse $as_me 1.4.0, which was 21446generated by GNU Autoconf 2.61. Invocation command line was 21447 21448 CONFIG_FILES = $CONFIG_FILES 21449 CONFIG_HEADERS = $CONFIG_HEADERS 21450 CONFIG_LINKS = $CONFIG_LINKS 21451 CONFIG_COMMANDS = $CONFIG_COMMANDS 21452 $ $0 $@ 21453 21454on `(hostname || uname -n) 2>/dev/null | sed 1q` 21455" 21456 21457_ACEOF 21458 21459cat >>$CONFIG_STATUS <<_ACEOF 21460# Files that config.status was made for. 21461config_files="$ac_config_files" 21462config_headers="$ac_config_headers" 21463config_commands="$ac_config_commands" 21464 21465_ACEOF 21466 21467cat >>$CONFIG_STATUS <<\_ACEOF 21468ac_cs_usage="\ 21469\`$as_me' instantiates files from templates according to the 21470current configuration. 21471 21472Usage: $0 [OPTIONS] [FILE]... 21473 21474 -h, --help print this help, then exit 21475 -V, --version print version number and configuration settings, then exit 21476 -q, --quiet do not print progress messages 21477 -d, --debug don't remove temporary files 21478 --recheck update $as_me by reconfiguring in the same conditions 21479 --file=FILE[:TEMPLATE] 21480 instantiate the configuration file FILE 21481 --header=FILE[:TEMPLATE] 21482 instantiate the configuration header FILE 21483 21484Configuration files: 21485$config_files 21486 21487Configuration headers: 21488$config_headers 21489 21490Configuration commands: 21491$config_commands 21492 21493Report bugs to <bug-autoconf@gnu.org>." 21494 21495_ACEOF 21496cat >>$CONFIG_STATUS <<_ACEOF 21497ac_cs_version="\\ 21498xf86-input-mouse config.status 1.4.0 21499configured by $0, generated by GNU Autoconf 2.61, 21500 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21501 21502Copyright (C) 2006 Free Software Foundation, Inc. 21503This config.status script is free software; the Free Software Foundation 21504gives unlimited permission to copy, distribute and modify it." 21505 21506ac_pwd='$ac_pwd' 21507srcdir='$srcdir' 21508INSTALL='$INSTALL' 21509MKDIR_P='$MKDIR_P' 21510_ACEOF 21511 21512cat >>$CONFIG_STATUS <<\_ACEOF 21513# If no file are specified by the user, then we need to provide default 21514# value. By we need to know if files were specified by the user. 21515ac_need_defaults=: 21516while test $# != 0 21517do 21518 case $1 in 21519 --*=*) 21520 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21522 ac_shift=: 21523 ;; 21524 *) 21525 ac_option=$1 21526 ac_optarg=$2 21527 ac_shift=shift 21528 ;; 21529 esac 21530 21531 case $ac_option in 21532 # Handling of the options. 21533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21534 ac_cs_recheck=: ;; 21535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21536 echo "$ac_cs_version"; exit ;; 21537 --debug | --debu | --deb | --de | --d | -d ) 21538 debug=: ;; 21539 --file | --fil | --fi | --f ) 21540 $ac_shift 21541 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21542 ac_need_defaults=false;; 21543 --header | --heade | --head | --hea ) 21544 $ac_shift 21545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21546 ac_need_defaults=false;; 21547 --he | --h) 21548 # Conflict between --help and --header 21549 { echo "$as_me: error: ambiguous option: $1 21550Try \`$0 --help' for more information." >&2 21551 { (exit 1); exit 1; }; };; 21552 --help | --hel | -h ) 21553 echo "$ac_cs_usage"; exit ;; 21554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21555 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21556 ac_cs_silent=: ;; 21557 21558 # This is an error. 21559 -*) { echo "$as_me: error: unrecognized option: $1 21560Try \`$0 --help' for more information." >&2 21561 { (exit 1); exit 1; }; } ;; 21562 21563 *) ac_config_targets="$ac_config_targets $1" 21564 ac_need_defaults=false ;; 21565 21566 esac 21567 shift 21568done 21569 21570ac_configure_extra_args= 21571 21572if $ac_cs_silent; then 21573 exec 6>/dev/null 21574 ac_configure_extra_args="$ac_configure_extra_args --silent" 21575fi 21576 21577_ACEOF 21578cat >>$CONFIG_STATUS <<_ACEOF 21579if \$ac_cs_recheck; then 21580 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21581 CONFIG_SHELL=$SHELL 21582 export CONFIG_SHELL 21583 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21584fi 21585 21586_ACEOF 21587cat >>$CONFIG_STATUS <<\_ACEOF 21588exec 5>>config.log 21589{ 21590 echo 21591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21592## Running $as_me. ## 21593_ASBOX 21594 echo "$ac_log" 21595} >&5 21596 21597_ACEOF 21598cat >>$CONFIG_STATUS <<_ACEOF 21599# 21600# INIT-COMMANDS 21601# 21602AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21603 21604_ACEOF 21605 21606cat >>$CONFIG_STATUS <<\_ACEOF 21607 21608# Handling of arguments. 21609for ac_config_target in $ac_config_targets 21610do 21611 case $ac_config_target in 21612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21614 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21615 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21616 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21617 21618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21619echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21620 { (exit 1); exit 1; }; };; 21621 esac 21622done 21623 21624 21625# If the user did not use the arguments to specify the items to instantiate, 21626# then the envvar interface is used. Set only those that are not. 21627# We use the long form for the default assignment because of an extremely 21628# bizarre bug on SunOS 4.1.3. 21629if $ac_need_defaults; then 21630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21633fi 21634 21635# Have a temporary directory for convenience. Make it in the build tree 21636# simply because there is no reason against having it here, and in addition, 21637# creating and moving files from /tmp can sometimes cause problems. 21638# Hook for its removal unless debugging. 21639# Note that there is a small window in which the directory will not be cleaned: 21640# after its creation but before its name has been assigned to `$tmp'. 21641$debug || 21642{ 21643 tmp= 21644 trap 'exit_status=$? 21645 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21646' 0 21647 trap '{ (exit 1); exit 1; }' 1 2 13 15 21648} 21649# Create a (secure) tmp directory for tmp files. 21650 21651{ 21652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21653 test -n "$tmp" && test -d "$tmp" 21654} || 21655{ 21656 tmp=./conf$$-$RANDOM 21657 (umask 077 && mkdir "$tmp") 21658} || 21659{ 21660 echo "$me: cannot create a temporary directory in ." >&2 21661 { (exit 1); exit 1; } 21662} 21663 21664# 21665# Set up the sed scripts for CONFIG_FILES section. 21666# 21667 21668# No need to generate the scripts if there are no CONFIG_FILES. 21669# This happens for instance when ./config.status config.h 21670if test -n "$CONFIG_FILES"; then 21671 21672_ACEOF 21673 21674 21675 21676ac_delim='%!_!# ' 21677for ac_last_try in false false false false false :; do 21678 cat >conf$$subs.sed <<_ACEOF 21679SHELL!$SHELL$ac_delim 21680PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21681PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21682PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21683PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21684PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21685PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21686exec_prefix!$exec_prefix$ac_delim 21687prefix!$prefix$ac_delim 21688program_transform_name!$program_transform_name$ac_delim 21689bindir!$bindir$ac_delim 21690sbindir!$sbindir$ac_delim 21691libexecdir!$libexecdir$ac_delim 21692datarootdir!$datarootdir$ac_delim 21693datadir!$datadir$ac_delim 21694sysconfdir!$sysconfdir$ac_delim 21695sharedstatedir!$sharedstatedir$ac_delim 21696localstatedir!$localstatedir$ac_delim 21697includedir!$includedir$ac_delim 21698oldincludedir!$oldincludedir$ac_delim 21699docdir!$docdir$ac_delim 21700infodir!$infodir$ac_delim 21701htmldir!$htmldir$ac_delim 21702dvidir!$dvidir$ac_delim 21703pdfdir!$pdfdir$ac_delim 21704psdir!$psdir$ac_delim 21705libdir!$libdir$ac_delim 21706localedir!$localedir$ac_delim 21707mandir!$mandir$ac_delim 21708DEFS!$DEFS$ac_delim 21709ECHO_C!$ECHO_C$ac_delim 21710ECHO_N!$ECHO_N$ac_delim 21711ECHO_T!$ECHO_T$ac_delim 21712LIBS!$LIBS$ac_delim 21713build_alias!$build_alias$ac_delim 21714host_alias!$host_alias$ac_delim 21715target_alias!$target_alias$ac_delim 21716INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21717INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21718INSTALL_DATA!$INSTALL_DATA$ac_delim 21719am__isrc!$am__isrc$ac_delim 21720CYGPATH_W!$CYGPATH_W$ac_delim 21721PACKAGE!$PACKAGE$ac_delim 21722VERSION!$VERSION$ac_delim 21723ACLOCAL!$ACLOCAL$ac_delim 21724AUTOCONF!$AUTOCONF$ac_delim 21725AUTOMAKE!$AUTOMAKE$ac_delim 21726AUTOHEADER!$AUTOHEADER$ac_delim 21727MAKEINFO!$MAKEINFO$ac_delim 21728install_sh!$install_sh$ac_delim 21729STRIP!$STRIP$ac_delim 21730INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21731mkdir_p!$mkdir_p$ac_delim 21732AWK!$AWK$ac_delim 21733SET_MAKE!$SET_MAKE$ac_delim 21734am__leading_dot!$am__leading_dot$ac_delim 21735AMTAR!$AMTAR$ac_delim 21736am__tar!$am__tar$ac_delim 21737am__untar!$am__untar$ac_delim 21738MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21739MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21740MAINT!$MAINT$ac_delim 21741DRIVER_NAME!$DRIVER_NAME$ac_delim 21742build!$build$ac_delim 21743build_cpu!$build_cpu$ac_delim 21744build_vendor!$build_vendor$ac_delim 21745build_os!$build_os$ac_delim 21746host!$host$ac_delim 21747host_cpu!$host_cpu$ac_delim 21748host_vendor!$host_vendor$ac_delim 21749host_os!$host_os$ac_delim 21750CC!$CC$ac_delim 21751CFLAGS!$CFLAGS$ac_delim 21752LDFLAGS!$LDFLAGS$ac_delim 21753CPPFLAGS!$CPPFLAGS$ac_delim 21754ac_ct_CC!$ac_ct_CC$ac_delim 21755EXEEXT!$EXEEXT$ac_delim 21756OBJEXT!$OBJEXT$ac_delim 21757DEPDIR!$DEPDIR$ac_delim 21758am__include!$am__include$ac_delim 21759am__quote!$am__quote$ac_delim 21760AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21761AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21762AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21763CCDEPMODE!$CCDEPMODE$ac_delim 21764am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21765am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21766GREP!$GREP$ac_delim 21767EGREP!$EGREP$ac_delim 21768LN_S!$LN_S$ac_delim 21769ECHO!$ECHO$ac_delim 21770AR!$AR$ac_delim 21771RANLIB!$RANLIB$ac_delim 21772CPP!$CPP$ac_delim 21773CXX!$CXX$ac_delim 21774CXXFLAGS!$CXXFLAGS$ac_delim 21775ac_ct_CXX!$ac_ct_CXX$ac_delim 21776_ACEOF 21777 21778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21779 break 21780 elif $ac_last_try; then 21781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21782echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21783 { (exit 1); exit 1; }; } 21784 else 21785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21786 fi 21787done 21788 21789ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21790if test -n "$ac_eof"; then 21791 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21792 ac_eof=`expr $ac_eof + 1` 21793fi 21794 21795cat >>$CONFIG_STATUS <<_ACEOF 21796cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21797/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21798_ACEOF 21799sed ' 21800s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21801s/^/s,@/; s/!/@,|#_!!_#|/ 21802:n 21803t n 21804s/'"$ac_delim"'$/,g/; t 21805s/$/\\/; p 21806N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21807' >>$CONFIG_STATUS <conf$$subs.sed 21808rm -f conf$$subs.sed 21809cat >>$CONFIG_STATUS <<_ACEOF 21810CEOF$ac_eof 21811_ACEOF 21812 21813 21814ac_delim='%!_!# ' 21815for ac_last_try in false false false false false :; do 21816 cat >conf$$subs.sed <<_ACEOF 21817CXXDEPMODE!$CXXDEPMODE$ac_delim 21818am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21819am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21820CXXCPP!$CXXCPP$ac_delim 21821F77!$F77$ac_delim 21822FFLAGS!$FFLAGS$ac_delim 21823ac_ct_F77!$ac_ct_F77$ac_delim 21824LIBTOOL!$LIBTOOL$ac_delim 21825CWARNFLAGS!$CWARNFLAGS$ac_delim 21826inputdir!$inputdir$ac_delim 21827PKG_CONFIG!$PKG_CONFIG$ac_delim 21828XORG_CFLAGS!$XORG_CFLAGS$ac_delim 21829XORG_LIBS!$XORG_LIBS$ac_delim 21830OS_MOUSE_NAME!$OS_MOUSE_NAME$ac_delim 21831LINT!$LINT$ac_delim 21832LINT_FLAGS!$LINT_FLAGS$ac_delim 21833LINT_TRUE!$LINT_TRUE$ac_delim 21834LINT_FALSE!$LINT_FALSE$ac_delim 21835APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 21836LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 21837FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 21838MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 21839DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 21840ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 21841APP_MAN_DIR!$APP_MAN_DIR$ac_delim 21842LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 21843FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 21844MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 21845DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 21846ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 21847CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim 21848distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim 21849LINUXDOC!$LINUXDOC$ac_delim 21850PS2PDF!$PS2PDF$ac_delim 21851BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim 21852BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim 21853BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim 21854BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim 21855MAKE_TEXT!$MAKE_TEXT$ac_delim 21856MAKE_PS!$MAKE_PS$ac_delim 21857MAKE_PDF!$MAKE_PDF$ac_delim 21858MAKE_HTML!$MAKE_HTML$ac_delim 21859LIBOBJS!$LIBOBJS$ac_delim 21860LTLIBOBJS!$LTLIBOBJS$ac_delim 21861_ACEOF 21862 21863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then 21864 break 21865 elif $ac_last_try; then 21866 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21867echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21868 { (exit 1); exit 1; }; } 21869 else 21870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21871 fi 21872done 21873 21874ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21875if test -n "$ac_eof"; then 21876 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21877 ac_eof=`expr $ac_eof + 1` 21878fi 21879 21880cat >>$CONFIG_STATUS <<_ACEOF 21881cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21882/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21883_ACEOF 21884sed ' 21885s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21886s/^/s,@/; s/!/@,|#_!!_#|/ 21887:n 21888t n 21889s/'"$ac_delim"'$/,g/; t 21890s/$/\\/; p 21891N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21892' >>$CONFIG_STATUS <conf$$subs.sed 21893rm -f conf$$subs.sed 21894cat >>$CONFIG_STATUS <<_ACEOF 21895:end 21896s/|#_!!_#|//g 21897CEOF$ac_eof 21898_ACEOF 21899 21900 21901# VPATH may cause trouble with some makes, so we remove $(srcdir), 21902# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21903# trailing colons and then remove the whole line if VPATH becomes empty 21904# (actually we leave an empty line to preserve line numbers). 21905if test "x$srcdir" = x.; then 21906 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21907s/:*\$(srcdir):*/:/ 21908s/:*\${srcdir}:*/:/ 21909s/:*@srcdir@:*/:/ 21910s/^\([^=]*=[ ]*\):*/\1/ 21911s/:*$// 21912s/^[^=]*=[ ]*$// 21913}' 21914fi 21915 21916cat >>$CONFIG_STATUS <<\_ACEOF 21917fi # test -n "$CONFIG_FILES" 21918 21919 21920for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21921do 21922 case $ac_tag in 21923 :[FHLC]) ac_mode=$ac_tag; continue;; 21924 esac 21925 case $ac_mode$ac_tag in 21926 :[FHL]*:*);; 21927 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21928echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21929 { (exit 1); exit 1; }; };; 21930 :[FH]-) ac_tag=-:-;; 21931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21932 esac 21933 ac_save_IFS=$IFS 21934 IFS=: 21935 set x $ac_tag 21936 IFS=$ac_save_IFS 21937 shift 21938 ac_file=$1 21939 shift 21940 21941 case $ac_mode in 21942 :L) ac_source=$1;; 21943 :[FH]) 21944 ac_file_inputs= 21945 for ac_f 21946 do 21947 case $ac_f in 21948 -) ac_f="$tmp/stdin";; 21949 *) # Look for the file first in the build tree, then in the source tree 21950 # (if the path is not absolute). The absolute path cannot be DOS-style, 21951 # because $ac_f cannot contain `:'. 21952 test -f "$ac_f" || 21953 case $ac_f in 21954 [\\/$]*) false;; 21955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21956 esac || 21957 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21958echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21959 { (exit 1); exit 1; }; };; 21960 esac 21961 ac_file_inputs="$ac_file_inputs $ac_f" 21962 done 21963 21964 # Let's still pretend it is `configure' which instantiates (i.e., don't 21965 # use $as_me), people would be surprised to read: 21966 # /* config.h. Generated by config.status. */ 21967 configure_input="Generated from "`IFS=: 21968 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21969 if test x"$ac_file" != x-; then 21970 configure_input="$ac_file. $configure_input" 21971 { echo "$as_me:$LINENO: creating $ac_file" >&5 21972echo "$as_me: creating $ac_file" >&6;} 21973 fi 21974 21975 case $ac_tag in 21976 *:-:* | *:-) cat >"$tmp/stdin";; 21977 esac 21978 ;; 21979 esac 21980 21981 ac_dir=`$as_dirname -- "$ac_file" || 21982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21983 X"$ac_file" : 'X\(//\)[^/]' \| \ 21984 X"$ac_file" : 'X\(//\)$' \| \ 21985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21986echo X"$ac_file" | 21987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21988 s//\1/ 21989 q 21990 } 21991 /^X\(\/\/\)[^/].*/{ 21992 s//\1/ 21993 q 21994 } 21995 /^X\(\/\/\)$/{ 21996 s//\1/ 21997 q 21998 } 21999 /^X\(\/\).*/{ 22000 s//\1/ 22001 q 22002 } 22003 s/.*/./; q'` 22004 { as_dir="$ac_dir" 22005 case $as_dir in #( 22006 -*) as_dir=./$as_dir;; 22007 esac 22008 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22009 as_dirs= 22010 while :; do 22011 case $as_dir in #( 22012 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22013 *) as_qdir=$as_dir;; 22014 esac 22015 as_dirs="'$as_qdir' $as_dirs" 22016 as_dir=`$as_dirname -- "$as_dir" || 22017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22018 X"$as_dir" : 'X\(//\)[^/]' \| \ 22019 X"$as_dir" : 'X\(//\)$' \| \ 22020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22021echo X"$as_dir" | 22022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22023 s//\1/ 22024 q 22025 } 22026 /^X\(\/\/\)[^/].*/{ 22027 s//\1/ 22028 q 22029 } 22030 /^X\(\/\/\)$/{ 22031 s//\1/ 22032 q 22033 } 22034 /^X\(\/\).*/{ 22035 s//\1/ 22036 q 22037 } 22038 s/.*/./; q'` 22039 test -d "$as_dir" && break 22040 done 22041 test -z "$as_dirs" || eval "mkdir $as_dirs" 22042 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22043echo "$as_me: error: cannot create directory $as_dir" >&2;} 22044 { (exit 1); exit 1; }; }; } 22045 ac_builddir=. 22046 22047case "$ac_dir" in 22048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22049*) 22050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22051 # A ".." for each directory in $ac_dir_suffix. 22052 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22053 case $ac_top_builddir_sub in 22054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22056 esac ;; 22057esac 22058ac_abs_top_builddir=$ac_pwd 22059ac_abs_builddir=$ac_pwd$ac_dir_suffix 22060# for backward compatibility: 22061ac_top_builddir=$ac_top_build_prefix 22062 22063case $srcdir in 22064 .) # We are building in place. 22065 ac_srcdir=. 22066 ac_top_srcdir=$ac_top_builddir_sub 22067 ac_abs_top_srcdir=$ac_pwd ;; 22068 [\\/]* | ?:[\\/]* ) # Absolute name. 22069 ac_srcdir=$srcdir$ac_dir_suffix; 22070 ac_top_srcdir=$srcdir 22071 ac_abs_top_srcdir=$srcdir ;; 22072 *) # Relative name. 22073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22074 ac_top_srcdir=$ac_top_build_prefix$srcdir 22075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22076esac 22077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22078 22079 22080 case $ac_mode in 22081 :F) 22082 # 22083 # CONFIG_FILE 22084 # 22085 22086 case $INSTALL in 22087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22089 esac 22090 ac_MKDIR_P=$MKDIR_P 22091 case $MKDIR_P in 22092 [\\/$]* | ?:[\\/]* ) ;; 22093 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22094 esac 22095_ACEOF 22096 22097cat >>$CONFIG_STATUS <<\_ACEOF 22098# If the template does not know about datarootdir, expand it. 22099# FIXME: This hack should be removed a few years after 2.60. 22100ac_datarootdir_hack=; ac_datarootdir_seen= 22101 22102case `sed -n '/datarootdir/ { 22103 p 22104 q 22105} 22106/@datadir@/p 22107/@docdir@/p 22108/@infodir@/p 22109/@localedir@/p 22110/@mandir@/p 22111' $ac_file_inputs` in 22112*datarootdir*) ac_datarootdir_seen=yes;; 22113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22114 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22115echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22116_ACEOF 22117cat >>$CONFIG_STATUS <<_ACEOF 22118 ac_datarootdir_hack=' 22119 s&@datadir@&$datadir&g 22120 s&@docdir@&$docdir&g 22121 s&@infodir@&$infodir&g 22122 s&@localedir@&$localedir&g 22123 s&@mandir@&$mandir&g 22124 s&\\\${datarootdir}&$datarootdir&g' ;; 22125esac 22126_ACEOF 22127 22128# Neutralize VPATH when `$srcdir' = `.'. 22129# Shell code in configure.ac might set extrasub. 22130# FIXME: do we really want to maintain this feature? 22131cat >>$CONFIG_STATUS <<_ACEOF 22132 sed "$ac_vpsub 22133$extrasub 22134_ACEOF 22135cat >>$CONFIG_STATUS <<\_ACEOF 22136:t 22137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22138s&@configure_input@&$configure_input&;t t 22139s&@top_builddir@&$ac_top_builddir_sub&;t t 22140s&@srcdir@&$ac_srcdir&;t t 22141s&@abs_srcdir@&$ac_abs_srcdir&;t t 22142s&@top_srcdir@&$ac_top_srcdir&;t t 22143s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22144s&@builddir@&$ac_builddir&;t t 22145s&@abs_builddir@&$ac_abs_builddir&;t t 22146s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22147s&@INSTALL@&$ac_INSTALL&;t t 22148s&@MKDIR_P@&$ac_MKDIR_P&;t t 22149$ac_datarootdir_hack 22150" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22151 22152test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22155 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22156which seems to be undefined. Please make sure it is defined." >&5 22157echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22158which seems to be undefined. Please make sure it is defined." >&2;} 22159 22160 rm -f "$tmp/stdin" 22161 case $ac_file in 22162 -) cat "$tmp/out"; rm -f "$tmp/out";; 22163 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22164 esac 22165 ;; 22166 :H) 22167 # 22168 # CONFIG_HEADER 22169 # 22170_ACEOF 22171 22172# Transform confdefs.h into a sed script `conftest.defines', that 22173# substitutes the proper values into config.h.in to produce config.h. 22174rm -f conftest.defines conftest.tail 22175# First, append a space to every undef/define line, to ease matching. 22176echo 's/$/ /' >conftest.defines 22177# Then, protect against being on the right side of a sed subst, or in 22178# an unquoted here document, in config.status. If some macros were 22179# called several times there might be several #defines for the same 22180# symbol, which is useless. But do not sort them, since the last 22181# AC_DEFINE must be honored. 22182ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22183# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22184# NAME is the cpp macro being defined, VALUE is the value it is being given. 22185# PARAMS is the parameter list in the macro definition--in most cases, it's 22186# just an empty string. 22187ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22188ac_dB='\\)[ (].*,\\1define\\2' 22189ac_dC=' ' 22190ac_dD=' ,' 22191 22192uniq confdefs.h | 22193 sed -n ' 22194 t rset 22195 :rset 22196 s/^[ ]*#[ ]*define[ ][ ]*// 22197 t ok 22198 d 22199 :ok 22200 s/[\\&,]/\\&/g 22201 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22202 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22203 ' >>conftest.defines 22204 22205# Remove the space that was appended to ease matching. 22206# Then replace #undef with comments. This is necessary, for 22207# example, in the case of _POSIX_SOURCE, which is predefined and required 22208# on some systems where configure will not decide to define it. 22209# (The regexp can be short, since the line contains either #define or #undef.) 22210echo 's/ $// 22211s,^[ #]*u.*,/* & */,' >>conftest.defines 22212 22213# Break up conftest.defines: 22214ac_max_sed_lines=50 22215 22216# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22217# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22218# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22219# et cetera. 22220ac_in='$ac_file_inputs' 22221ac_out='"$tmp/out1"' 22222ac_nxt='"$tmp/out2"' 22223 22224while : 22225do 22226 # Write a here document: 22227 cat >>$CONFIG_STATUS <<_ACEOF 22228 # First, check the format of the line: 22229 cat >"\$tmp/defines.sed" <<\\CEOF 22230/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22231/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22232b 22233:def 22234_ACEOF 22235 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22236 echo 'CEOF 22237 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22238 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22239 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22240 grep . conftest.tail >/dev/null || break 22241 rm -f conftest.defines 22242 mv conftest.tail conftest.defines 22243done 22244rm -f conftest.defines conftest.tail 22245 22246echo "ac_result=$ac_in" >>$CONFIG_STATUS 22247cat >>$CONFIG_STATUS <<\_ACEOF 22248 if test x"$ac_file" != x-; then 22249 echo "/* $configure_input */" >"$tmp/config.h" 22250 cat "$ac_result" >>"$tmp/config.h" 22251 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22252 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22253echo "$as_me: $ac_file is unchanged" >&6;} 22254 else 22255 rm -f $ac_file 22256 mv "$tmp/config.h" $ac_file 22257 fi 22258 else 22259 echo "/* $configure_input */" 22260 cat "$ac_result" 22261 fi 22262 rm -f "$tmp/out12" 22263# Compute $ac_file's index in $config_headers. 22264_am_stamp_count=1 22265for _am_header in $config_headers :; do 22266 case $_am_header in 22267 $ac_file | $ac_file:* ) 22268 break ;; 22269 * ) 22270 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22271 esac 22272done 22273echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22274$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22275 X$ac_file : 'X\(//\)[^/]' \| \ 22276 X$ac_file : 'X\(//\)$' \| \ 22277 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22278echo X$ac_file | 22279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22280 s//\1/ 22281 q 22282 } 22283 /^X\(\/\/\)[^/].*/{ 22284 s//\1/ 22285 q 22286 } 22287 /^X\(\/\/\)$/{ 22288 s//\1/ 22289 q 22290 } 22291 /^X\(\/\).*/{ 22292 s//\1/ 22293 q 22294 } 22295 s/.*/./; q'`/stamp-h$_am_stamp_count 22296 ;; 22297 22298 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22299echo "$as_me: executing $ac_file commands" >&6;} 22300 ;; 22301 esac 22302 22303 22304 case $ac_file$ac_mode in 22305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22306 # Strip MF so we end up with the name of the file. 22307 mf=`echo "$mf" | sed -e 's/:.*$//'` 22308 # Check whether this is an Automake generated Makefile or not. 22309 # We used to match only the files named `Makefile.in', but 22310 # some people rename them; so instead we look at the file content. 22311 # Grep'ing the first line is not enough: some people post-process 22312 # each Makefile.in and add a new line on top of each file to say so. 22313 # Grep'ing the whole file is not good either: AIX grep has a line 22314 # limit of 2048, but all sed's we know have understand at least 4000. 22315 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22316 dirpart=`$as_dirname -- "$mf" || 22317$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22318 X"$mf" : 'X\(//\)[^/]' \| \ 22319 X"$mf" : 'X\(//\)$' \| \ 22320 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22321echo X"$mf" | 22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22323 s//\1/ 22324 q 22325 } 22326 /^X\(\/\/\)[^/].*/{ 22327 s//\1/ 22328 q 22329 } 22330 /^X\(\/\/\)$/{ 22331 s//\1/ 22332 q 22333 } 22334 /^X\(\/\).*/{ 22335 s//\1/ 22336 q 22337 } 22338 s/.*/./; q'` 22339 else 22340 continue 22341 fi 22342 # Extract the definition of DEPDIR, am__include, and am__quote 22343 # from the Makefile without running `make'. 22344 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22345 test -z "$DEPDIR" && continue 22346 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22347 test -z "am__include" && continue 22348 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22349 # When using ansi2knr, U may be empty or an underscore; expand it 22350 U=`sed -n 's/^U = //p' < "$mf"` 22351 # Find all dependency output files, they are included files with 22352 # $(DEPDIR) in their names. We invoke sed twice because it is the 22353 # simplest approach to changing $(DEPDIR) to its actual value in the 22354 # expansion. 22355 for file in `sed -n " 22356 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22358 # Make sure the directory exists. 22359 test -f "$dirpart/$file" && continue 22360 fdir=`$as_dirname -- "$file" || 22361$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22362 X"$file" : 'X\(//\)[^/]' \| \ 22363 X"$file" : 'X\(//\)$' \| \ 22364 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22365echo X"$file" | 22366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22367 s//\1/ 22368 q 22369 } 22370 /^X\(\/\/\)[^/].*/{ 22371 s//\1/ 22372 q 22373 } 22374 /^X\(\/\/\)$/{ 22375 s//\1/ 22376 q 22377 } 22378 /^X\(\/\).*/{ 22379 s//\1/ 22380 q 22381 } 22382 s/.*/./; q'` 22383 { as_dir=$dirpart/$fdir 22384 case $as_dir in #( 22385 -*) as_dir=./$as_dir;; 22386 esac 22387 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22388 as_dirs= 22389 while :; do 22390 case $as_dir in #( 22391 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22392 *) as_qdir=$as_dir;; 22393 esac 22394 as_dirs="'$as_qdir' $as_dirs" 22395 as_dir=`$as_dirname -- "$as_dir" || 22396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22397 X"$as_dir" : 'X\(//\)[^/]' \| \ 22398 X"$as_dir" : 'X\(//\)$' \| \ 22399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22400echo X"$as_dir" | 22401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22402 s//\1/ 22403 q 22404 } 22405 /^X\(\/\/\)[^/].*/{ 22406 s//\1/ 22407 q 22408 } 22409 /^X\(\/\/\)$/{ 22410 s//\1/ 22411 q 22412 } 22413 /^X\(\/\).*/{ 22414 s//\1/ 22415 q 22416 } 22417 s/.*/./; q'` 22418 test -d "$as_dir" && break 22419 done 22420 test -z "$as_dirs" || eval "mkdir $as_dirs" 22421 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22422echo "$as_me: error: cannot create directory $as_dir" >&2;} 22423 { (exit 1); exit 1; }; }; } 22424 # echo "creating $dirpart/$file" 22425 echo '# dummy' > "$dirpart/$file" 22426 done 22427done 22428 ;; 22429 22430 esac 22431done # for ac_tag 22432 22433 22434{ (exit 0); exit 0; } 22435_ACEOF 22436chmod +x $CONFIG_STATUS 22437ac_clean_files=$ac_clean_files_save 22438 22439 22440# configure is writing to config.log, and then calls config.status. 22441# config.status does its own redirection, appending to config.log. 22442# Unfortunately, on DOS this fails, as config.log is still kept open 22443# by configure, so config.status won't be able to write to it; its 22444# output is simply discarded. So we exec the FD to /dev/null, 22445# effectively closing config.log, so it can be properly (re)opened and 22446# appended to by config.status. When coming back to configure, we 22447# need to make the FD available again. 22448if test "$no_create" != yes; then 22449 ac_cs_success=: 22450 ac_config_status_args= 22451 test "$silent" = yes && 22452 ac_config_status_args="$ac_config_status_args --quiet" 22453 exec 5>/dev/null 22454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22455 exec 5>>config.log 22456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22457 # would make configure fail if this is the last instruction. 22458 $ac_cs_success || { (exit 1); exit 1; } 22459fi 22460 22461