configure revision ee3138f1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xf86-input-keyboard 1.3.1. 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-keyboard' 730PACKAGE_TARNAME='xf86-input-keyboard' 731PACKAGE_VERSION='1.3.1' 732PACKAGE_STRING='xf86-input-keyboard 1.3.1' 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 859SED 860GREP 861EGREP 862LN_S 863ECHO 864AR 865RANLIB 866CPP 867CXX 868CXXFLAGS 869ac_ct_CXX 870CXXDEPMODE 871am__fastdepCXX_TRUE 872am__fastdepCXX_FALSE 873CXXCPP 874F77 875FFLAGS 876ac_ct_F77 877LIBTOOL 878LINUX_TRUE 879LINUX_FALSE 880BSD_TRUE 881BSD_FALSE 882SOLARIS_TRUE 883SOLARIS_FALSE 884HURD_TRUE 885HURD_FALSE 886SCO_TRUE 887SCO_FALSE 888inputdir 889PKG_CONFIG 890XORG_CFLAGS 891XORG_LIBS 892APP_MAN_SUFFIX 893LIB_MAN_SUFFIX 894FILE_MAN_SUFFIX 895MISC_MAN_SUFFIX 896DRIVER_MAN_SUFFIX 897ADMIN_MAN_SUFFIX 898APP_MAN_DIR 899LIB_MAN_DIR 900FILE_MAN_DIR 901MISC_MAN_DIR 902DRIVER_MAN_DIR 903ADMIN_MAN_DIR 904LIBOBJS 905LTLIBOBJS' 906ac_subst_files='' 907 ac_precious_vars='build_alias 908host_alias 909target_alias 910CC 911CFLAGS 912LDFLAGS 913LIBS 914CPPFLAGS 915CPP 916CXX 917CXXFLAGS 918CCC 919CXXCPP 920F77 921FFLAGS 922PKG_CONFIG 923XORG_CFLAGS 924XORG_LIBS' 925 926 927# Initialize some variables set by options. 928ac_init_help= 929ac_init_version=false 930# The variables have the same names as the options, with 931# dashes changed to underlines. 932cache_file=/dev/null 933exec_prefix=NONE 934no_create= 935no_recursion= 936prefix=NONE 937program_prefix=NONE 938program_suffix=NONE 939program_transform_name=s,x,x, 940silent= 941site= 942srcdir= 943verbose= 944x_includes=NONE 945x_libraries=NONE 946 947# Installation directory options. 948# These are left unexpanded so users can "make install exec_prefix=/foo" 949# and all the variables that are supposed to be based on exec_prefix 950# by default will actually change. 951# Use braces instead of parens because sh, perl, etc. also accept them. 952# (The list follows the same order as the GNU Coding Standards.) 953bindir='${exec_prefix}/bin' 954sbindir='${exec_prefix}/sbin' 955libexecdir='${exec_prefix}/libexec' 956datarootdir='${prefix}/share' 957datadir='${datarootdir}' 958sysconfdir='${prefix}/etc' 959sharedstatedir='${prefix}/com' 960localstatedir='${prefix}/var' 961includedir='${prefix}/include' 962oldincludedir='/usr/include' 963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 964infodir='${datarootdir}/info' 965htmldir='${docdir}' 966dvidir='${docdir}' 967pdfdir='${docdir}' 968psdir='${docdir}' 969libdir='${exec_prefix}/lib' 970localedir='${datarootdir}/locale' 971mandir='${datarootdir}/man' 972 973ac_prev= 974ac_dashdash= 975for ac_option 976do 977 # If the previous option needs an argument, assign it. 978 if test -n "$ac_prev"; then 979 eval $ac_prev=\$ac_option 980 ac_prev= 981 continue 982 fi 983 984 case $ac_option in 985 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1032 { (exit 1); exit 1; }; } 1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1034 eval enable_$ac_feature=no ;; 1035 1036 -docdir | --docdir | --docdi | --doc | --do) 1037 ac_prev=docdir ;; 1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1039 docdir=$ac_optarg ;; 1040 1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1042 ac_prev=dvidir ;; 1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1044 dvidir=$ac_optarg ;; 1045 1046 -enable-* | --enable-*) 1047 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1048 # Reject names that are not valid shell variable names. 1049 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1050 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1051 { (exit 1); exit 1; }; } 1052 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1053 eval enable_$ac_feature=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1199 ac_prev=sbindir ;; 1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1201 | --sbi=* | --sb=*) 1202 sbindir=$ac_optarg ;; 1203 1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1206 | --sharedst | --shareds | --shared | --share | --shar \ 1207 | --sha | --sh) 1208 ac_prev=sharedstatedir ;; 1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1212 | --sha=* | --sh=*) 1213 sharedstatedir=$ac_optarg ;; 1214 1215 -site | --site | --sit) 1216 ac_prev=site ;; 1217 -site=* | --site=* | --sit=*) 1218 site=$ac_optarg ;; 1219 1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1221 ac_prev=srcdir ;; 1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1223 srcdir=$ac_optarg ;; 1224 1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1226 | --syscon | --sysco | --sysc | --sys | --sy) 1227 ac_prev=sysconfdir ;; 1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1230 sysconfdir=$ac_optarg ;; 1231 1232 -target | --target | --targe | --targ | --tar | --ta | --t) 1233 ac_prev=target_alias ;; 1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1235 target_alias=$ac_optarg ;; 1236 1237 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1238 verbose=yes ;; 1239 1240 -version | --version | --versio | --versi | --vers | -V) 1241 ac_init_version=: ;; 1242 1243 -with-* | --with-*) 1244 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 { echo "$as_me: error: invalid package name: $ac_package" >&2 1248 { (exit 1); exit 1; }; } 1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1250 eval with_$ac_package=\$ac_optarg ;; 1251 1252 -without-* | --without-*) 1253 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1256 { echo "$as_me: error: invalid package name: $ac_package" >&2 1257 { (exit 1); exit 1; }; } 1258 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1259 eval with_$ac_package=no ;; 1260 1261 --x) 1262 # Obsolete; use --with-x. 1263 with_x=yes ;; 1264 1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1266 | --x-incl | --x-inc | --x-in | --x-i) 1267 ac_prev=x_includes ;; 1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1270 x_includes=$ac_optarg ;; 1271 1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1274 ac_prev=x_libraries ;; 1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1277 x_libraries=$ac_optarg ;; 1278 1279 -*) { echo "$as_me: error: unrecognized option: $ac_option 1280Try \`$0 --help' for more information." >&2 1281 { (exit 1); exit 1; }; } 1282 ;; 1283 1284 *=*) 1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1286 # Reject names that are not valid shell variable names. 1287 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1288 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1289 { (exit 1); exit 1; }; } 1290 eval $ac_envvar=\$ac_optarg 1291 export $ac_envvar ;; 1292 1293 *) 1294 # FIXME: should be removed in autoconf 3.0. 1295 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1297 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1298 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1299 ;; 1300 1301 esac 1302done 1303 1304if test -n "$ac_prev"; then 1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1306 { echo "$as_me: error: missing argument to $ac_option" >&2 1307 { (exit 1); exit 1; }; } 1308fi 1309 1310# Be sure to have absolute directory names. 1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1312 datadir sysconfdir sharedstatedir localstatedir includedir \ 1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1314 libdir localedir mandir 1315do 1316 eval ac_val=\$$ac_var 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1322 { (exit 1); exit 1; }; } 1323done 1324 1325# There might be people who depend on the old broken behavior: `$host' 1326# used to hold the argument of --host etc. 1327# FIXME: To remove some day. 1328build=$build_alias 1329host=$host_alias 1330target=$target_alias 1331 1332# FIXME: To remove some day. 1333if test "x$host_alias" != x; then 1334 if test "x$build_alias" = x; then 1335 cross_compiling=maybe 1336 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1337 If a cross compiler is detected then cross compile mode will be used." >&2 1338 elif test "x$build_alias" != "x$host_alias"; then 1339 cross_compiling=yes 1340 fi 1341fi 1342 1343ac_tool_prefix= 1344test -n "$host_alias" && ac_tool_prefix=$host_alias- 1345 1346test "$silent" = yes && exec 6>/dev/null 1347 1348 1349ac_pwd=`pwd` && test -n "$ac_pwd" && 1350ac_ls_di=`ls -di .` && 1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1352 { echo "$as_me: error: Working directory cannot be determined" >&2 1353 { (exit 1); exit 1; }; } 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1355 { echo "$as_me: error: pwd does not report name of working directory" >&2 1356 { (exit 1); exit 1; }; } 1357 1358 1359# Find the source files, if location was not specified. 1360if test -z "$srcdir"; then 1361 ac_srcdir_defaulted=yes 1362 # Try the directory containing this script, then the parent directory. 1363 ac_confdir=`$as_dirname -- "$0" || 1364$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1365 X"$0" : 'X\(//\)[^/]' \| \ 1366 X"$0" : 'X\(//\)$' \| \ 1367 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1368echo X"$0" | 1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)[^/].*/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\/\)$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\).*/{ 1382 s//\1/ 1383 q 1384 } 1385 s/.*/./; q'` 1386 srcdir=$ac_confdir 1387 if test ! -r "$srcdir/$ac_unique_file"; then 1388 srcdir=.. 1389 fi 1390else 1391 ac_srcdir_defaulted=no 1392fi 1393if test ! -r "$srcdir/$ac_unique_file"; then 1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1395 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1396 { (exit 1); exit 1; }; } 1397fi 1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1399ac_abs_confdir=`( 1400 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1401 { (exit 1); exit 1; }; } 1402 pwd)` 1403# When building in place, set srcdir=. 1404if test "$ac_abs_confdir" = "$ac_pwd"; then 1405 srcdir=. 1406fi 1407# Remove unnecessary trailing slashes from srcdir. 1408# Double slashes in file names in object file debugging info 1409# mess up M-x gdb in Emacs. 1410case $srcdir in 1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1412esac 1413for ac_var in $ac_precious_vars; do 1414 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1415 eval ac_env_${ac_var}_value=\$${ac_var} 1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1418done 1419 1420# 1421# Report the --help message. 1422# 1423if test "$ac_init_help" = "long"; then 1424 # Omit some internal or obsolete options to make the list less imposing. 1425 # This message is too long to be a string in the A/UX 3.1 sh. 1426 cat <<_ACEOF 1427\`configure' configures xf86-input-keyboard 1.3.1 to adapt to many kinds of systems. 1428 1429Usage: $0 [OPTION]... [VAR=VALUE]... 1430 1431To assign environment variables (e.g., CC, CFLAGS...), specify them as 1432VAR=VALUE. See below for descriptions of some of the useful variables. 1433 1434Defaults for the options are specified in brackets. 1435 1436Configuration: 1437 -h, --help display this help and exit 1438 --help=short display options specific to this package 1439 --help=recursive display the short help of all the included packages 1440 -V, --version display version information and exit 1441 -q, --quiet, --silent do not print \`checking...' messages 1442 --cache-file=FILE cache test results in FILE [disabled] 1443 -C, --config-cache alias for \`--cache-file=config.cache' 1444 -n, --no-create do not create output files 1445 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1446 1447Installation directories: 1448 --prefix=PREFIX install architecture-independent files in PREFIX 1449 [$ac_default_prefix] 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1451 [PREFIX] 1452 1453By default, \`make install' will install all the files in 1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1455an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1456for instance \`--prefix=\$HOME'. 1457 1458For better control, use the options below. 1459 1460Fine tuning of the installation directories: 1461 --bindir=DIR user executables [EPREFIX/bin] 1462 --sbindir=DIR system admin executables [EPREFIX/sbin] 1463 --libexecdir=DIR program executables [EPREFIX/libexec] 1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1467 --libdir=DIR object code libraries [EPREFIX/lib] 1468 --includedir=DIR C header files [PREFIX/include] 1469 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1472 --infodir=DIR info documentation [DATAROOTDIR/info] 1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1474 --mandir=DIR man documentation [DATAROOTDIR/man] 1475 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-keyboard] 1476 --htmldir=DIR html documentation [DOCDIR] 1477 --dvidir=DIR dvi documentation [DOCDIR] 1478 --pdfdir=DIR pdf documentation [DOCDIR] 1479 --psdir=DIR ps documentation [DOCDIR] 1480_ACEOF 1481 1482 cat <<\_ACEOF 1483 1484Program names: 1485 --program-prefix=PREFIX prepend PREFIX to installed program names 1486 --program-suffix=SUFFIX append SUFFIX to installed program names 1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492_ACEOF 1493fi 1494 1495if test -n "$ac_init_help"; then 1496 case $ac_init_help in 1497 short | recursive ) echo "Configuration of xf86-input-keyboard 1.3.1:";; 1498 esac 1499 cat <<\_ACEOF 1500 1501Optional Features: 1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1504 --enable-maintainer-mode enable make rules and dependencies not useful 1505 (and sometimes confusing) to the casual installer 1506 --enable-static[=PKGS] build static libraries [default=no] 1507 --enable-shared[=PKGS] build shared libraries [default=yes] 1508 --enable-fast-install[=PKGS] 1509 optimize for fast installation [default=yes] 1510 --disable-dependency-tracking speeds up one-time build 1511 --enable-dependency-tracking do not reject slow dependency extractors 1512 --disable-libtool-lock avoid locking (might break parallel builds) 1513 1514Optional Packages: 1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1518 --with-pic try to use only PIC/non-PIC objects [default=use 1519 both] 1520 --with-tags[=TAGS] include additional configurations [automatic] 1521 --with-xorg-module-dir=DIR 1522 Default xorg module directory 1523 [default=$libdir/xorg/modules] 1524 --with-release-version=STRING 1525 Use release version string in package name 1526 1527Some influential environment variables: 1528 CC C compiler command 1529 CFLAGS C compiler flags 1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1531 nonstandard directory <lib dir> 1532 LIBS libraries to pass to the linker, e.g. -l<library> 1533 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1534 you have headers in a nonstandard directory <include dir> 1535 CPP C preprocessor 1536 CXX C++ compiler command 1537 CXXFLAGS C++ compiler flags 1538 CXXCPP C++ preprocessor 1539 F77 Fortran 77 compiler command 1540 FFLAGS Fortran 77 compiler flags 1541 PKG_CONFIG path to pkg-config utility 1542 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1543 XORG_LIBS linker flags for XORG, overriding pkg-config 1544 1545Use these variables to override the choices made by `configure' or to help 1546it to find libraries and programs with nonstandard names/locations. 1547 1548Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1549_ACEOF 1550ac_status=$? 1551fi 1552 1553if test "$ac_init_help" = "recursive"; then 1554 # If there are subdirs, report their specific --help. 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556 test -d "$ac_dir" || continue 1557 ac_builddir=. 1558 1559case "$ac_dir" in 1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561*) 1562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1563 # A ".." for each directory in $ac_dir_suffix. 1564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1565 case $ac_top_builddir_sub in 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1568 esac ;; 1569esac 1570ac_abs_top_builddir=$ac_pwd 1571ac_abs_builddir=$ac_pwd$ac_dir_suffix 1572# for backward compatibility: 1573ac_top_builddir=$ac_top_build_prefix 1574 1575case $srcdir in 1576 .) # We are building in place. 1577 ac_srcdir=. 1578 ac_top_srcdir=$ac_top_builddir_sub 1579 ac_abs_top_srcdir=$ac_pwd ;; 1580 [\\/]* | ?:[\\/]* ) # Absolute name. 1581 ac_srcdir=$srcdir$ac_dir_suffix; 1582 ac_top_srcdir=$srcdir 1583 ac_abs_top_srcdir=$srcdir ;; 1584 *) # Relative name. 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1588esac 1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1590 1591 cd "$ac_dir" || { ac_status=$?; continue; } 1592 # Check for guested configure. 1593 if test -f "$ac_srcdir/configure.gnu"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1596 elif test -f "$ac_srcdir/configure"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure" --help=recursive 1599 else 1600 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1601 fi || ac_status=$? 1602 cd "$ac_pwd" || { ac_status=$?; break; } 1603 done 1604fi 1605 1606test -n "$ac_init_help" && exit $ac_status 1607if $ac_init_version; then 1608 cat <<\_ACEOF 1609xf86-input-keyboard configure 1.3.1 1610generated by GNU Autoconf 2.61 1611 1612Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16132002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1614This configure script is free software; the Free Software Foundation 1615gives unlimited permission to copy, distribute and modify it. 1616_ACEOF 1617 exit 1618fi 1619cat >config.log <<_ACEOF 1620This file contains any messages produced by compilers while 1621running configure, to aid debugging if configure makes a mistake. 1622 1623It was created by xf86-input-keyboard $as_me 1.3.1, which was 1624generated by GNU Autoconf 2.61. Invocation command line was 1625 1626 $ $0 $@ 1627 1628_ACEOF 1629exec 5>>config.log 1630{ 1631cat <<_ASUNAME 1632## --------- ## 1633## Platform. ## 1634## --------- ## 1635 1636hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1637uname -m = `(uname -m) 2>/dev/null || echo unknown` 1638uname -r = `(uname -r) 2>/dev/null || echo unknown` 1639uname -s = `(uname -s) 2>/dev/null || echo unknown` 1640uname -v = `(uname -v) 2>/dev/null || echo unknown` 1641 1642/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1643/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1644 1645/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1646/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1647/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1648/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1649/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1650/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1651/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1652 1653_ASUNAME 1654 1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1656for as_dir in $PATH 1657do 1658 IFS=$as_save_IFS 1659 test -z "$as_dir" && as_dir=. 1660 echo "PATH: $as_dir" 1661done 1662IFS=$as_save_IFS 1663 1664} >&5 1665 1666cat >&5 <<_ACEOF 1667 1668 1669## ----------- ## 1670## Core tests. ## 1671## ----------- ## 1672 1673_ACEOF 1674 1675 1676# Keep a trace of the command line. 1677# Strip out --no-create and --no-recursion so they do not pile up. 1678# Strip out --silent because we don't want to record it for future runs. 1679# Also quote any args containing shell meta-characters. 1680# Make two passes to allow for proper duplicate-argument suppression. 1681ac_configure_args= 1682ac_configure_args0= 1683ac_configure_args1= 1684ac_must_keep_next=false 1685for ac_pass in 1 2 1686do 1687 for ac_arg 1688 do 1689 case $ac_arg in 1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1692 | -silent | --silent | --silen | --sile | --sil) 1693 continue ;; 1694 *\'*) 1695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1696 esac 1697 case $ac_pass in 1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1699 2) 1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1701 if test $ac_must_keep_next = true; then 1702 ac_must_keep_next=false # Got value, back to normal. 1703 else 1704 case $ac_arg in 1705 *=* | --config-cache | -C | -disable-* | --disable-* \ 1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1708 | -with-* | --with-* | -without-* | --without-* | --x) 1709 case "$ac_configure_args0 " in 1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1711 esac 1712 ;; 1713 -* ) ac_must_keep_next=true ;; 1714 esac 1715 fi 1716 ac_configure_args="$ac_configure_args '$ac_arg'" 1717 ;; 1718 esac 1719 done 1720done 1721$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1722$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1723 1724# When interrupted or exit'd, cleanup temporary files, and complete 1725# config.log. We remove comments because anyway the quotes in there 1726# would cause problems or look ugly. 1727# WARNING: Use '\'' to represent an apostrophe within the trap. 1728# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1729trap 'exit_status=$? 1730 # Save into config.log some information that might help in debugging. 1731 { 1732 echo 1733 1734 cat <<\_ASBOX 1735## ---------------- ## 1736## Cache variables. ## 1737## ---------------- ## 1738_ASBOX 1739 echo 1740 # The following way of writing the cache mishandles newlines in values, 1741( 1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1743 eval ac_val=\$$ac_var 1744 case $ac_val in #( 1745 *${as_nl}*) 1746 case $ac_var in #( 1747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1748echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1749 esac 1750 case $ac_var in #( 1751 _ | IFS | as_nl) ;; #( 1752 *) $as_unset $ac_var ;; 1753 esac ;; 1754 esac 1755 done 1756 (set) 2>&1 | 1757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1758 *${as_nl}ac_space=\ *) 1759 sed -n \ 1760 "s/'\''/'\''\\\\'\'''\''/g; 1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1762 ;; #( 1763 *) 1764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1765 ;; 1766 esac | 1767 sort 1768) 1769 echo 1770 1771 cat <<\_ASBOX 1772## ----------------- ## 1773## Output variables. ## 1774## ----------------- ## 1775_ASBOX 1776 echo 1777 for ac_var in $ac_subst_vars 1778 do 1779 eval ac_val=\$$ac_var 1780 case $ac_val in 1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1782 esac 1783 echo "$ac_var='\''$ac_val'\''" 1784 done | sort 1785 echo 1786 1787 if test -n "$ac_subst_files"; then 1788 cat <<\_ASBOX 1789## ------------------- ## 1790## File substitutions. ## 1791## ------------------- ## 1792_ASBOX 1793 echo 1794 for ac_var in $ac_subst_files 1795 do 1796 eval ac_val=\$$ac_var 1797 case $ac_val in 1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1799 esac 1800 echo "$ac_var='\''$ac_val'\''" 1801 done | sort 1802 echo 1803 fi 1804 1805 if test -s confdefs.h; then 1806 cat <<\_ASBOX 1807## ----------- ## 1808## confdefs.h. ## 1809## ----------- ## 1810_ASBOX 1811 echo 1812 cat confdefs.h 1813 echo 1814 fi 1815 test "$ac_signal" != 0 && 1816 echo "$as_me: caught signal $ac_signal" 1817 echo "$as_me: exit $exit_status" 1818 } >&5 1819 rm -f core *.core core.conftest.* && 1820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1821 exit $exit_status 1822' 0 1823for ac_signal in 1 2 13 15; do 1824 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1825done 1826ac_signal=0 1827 1828# confdefs.h avoids OS command line length limits that DEFS can exceed. 1829rm -f -r conftest* confdefs.h 1830 1831# Predefined preprocessor variables. 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_NAME "$PACKAGE_NAME" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1840_ACEOF 1841 1842 1843cat >>confdefs.h <<_ACEOF 1844#define PACKAGE_VERSION "$PACKAGE_VERSION" 1845_ACEOF 1846 1847 1848cat >>confdefs.h <<_ACEOF 1849#define PACKAGE_STRING "$PACKAGE_STRING" 1850_ACEOF 1851 1852 1853cat >>confdefs.h <<_ACEOF 1854#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1855_ACEOF 1856 1857 1858# Let the site file select an alternate cache file if it wants to. 1859# Prefer explicitly selected file to automatically selected ones. 1860if test -n "$CONFIG_SITE"; then 1861 set x "$CONFIG_SITE" 1862elif test "x$prefix" != xNONE; then 1863 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1864else 1865 set x "$ac_default_prefix/share/config.site" \ 1866 "$ac_default_prefix/etc/config.site" 1867fi 1868shift 1869for ac_site_file 1870do 1871 if test -r "$ac_site_file"; then 1872 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1873echo "$as_me: loading site script $ac_site_file" >&6;} 1874 sed 's/^/| /' "$ac_site_file" >&5 1875 . "$ac_site_file" 1876 fi 1877done 1878 1879if test -r "$cache_file"; then 1880 # Some versions of bash will fail to source /dev/null (special 1881 # files actually), so we avoid doing that. 1882 if test -f "$cache_file"; then 1883 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1884echo "$as_me: loading cache $cache_file" >&6;} 1885 case $cache_file in 1886 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1887 *) . "./$cache_file";; 1888 esac 1889 fi 1890else 1891 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1892echo "$as_me: creating cache $cache_file" >&6;} 1893 >$cache_file 1894fi 1895 1896# Check that the precious variables saved in the cache have kept the same 1897# value. 1898ac_cache_corrupted=false 1899for ac_var in $ac_precious_vars; do 1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1901 eval ac_new_set=\$ac_env_${ac_var}_set 1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1903 eval ac_new_val=\$ac_env_${ac_var}_value 1904 case $ac_old_set,$ac_new_set in 1905 set,) 1906 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1907echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1908 ac_cache_corrupted=: ;; 1909 ,set) 1910 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1911echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1912 ac_cache_corrupted=: ;; 1913 ,);; 1914 *) 1915 if test "x$ac_old_val" != "x$ac_new_val"; then 1916 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1917echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1918 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1919echo "$as_me: former value: $ac_old_val" >&2;} 1920 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1921echo "$as_me: current value: $ac_new_val" >&2;} 1922 ac_cache_corrupted=: 1923 fi;; 1924 esac 1925 # Pass precious variables to config.status. 1926 if test "$ac_new_set" = set; then 1927 case $ac_new_val in 1928 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1929 *) ac_arg=$ac_var=$ac_new_val ;; 1930 esac 1931 case " $ac_configure_args " in 1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1934 esac 1935 fi 1936done 1937if $ac_cache_corrupted; then 1938 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1939echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1940 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1941echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1942 { (exit 1); exit 1; }; } 1943fi 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969ac_ext=c 1970ac_cpp='$CPP $CPPFLAGS' 1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1973ac_compiler_gnu=$ac_cv_c_compiler_gnu 1974 1975 1976 1977 1978ac_aux_dir= 1979for ac_dir in . "$srcdir"/.; do 1980 if test -f "$ac_dir/install-sh"; then 1981 ac_aux_dir=$ac_dir 1982 ac_install_sh="$ac_aux_dir/install-sh -c" 1983 break 1984 elif test -f "$ac_dir/install.sh"; then 1985 ac_aux_dir=$ac_dir 1986 ac_install_sh="$ac_aux_dir/install.sh -c" 1987 break 1988 elif test -f "$ac_dir/shtool"; then 1989 ac_aux_dir=$ac_dir 1990 ac_install_sh="$ac_aux_dir/shtool install -c" 1991 break 1992 fi 1993done 1994if test -z "$ac_aux_dir"; then 1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 1996echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 1997 { (exit 1); exit 1; }; } 1998fi 1999 2000# These three variables are undocumented and unsupported, 2001# and are intended to be withdrawn in a future Autoconf release. 2002# They can cause serious problems if a builder's source tree is in a directory 2003# whose full name contains unusual characters. 2004ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2005ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2006ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2007 2008 2009am__api_version='1.10' 2010 2011# Find a good install program. We prefer a C program (faster), 2012# so one script is as good as another. But avoid the broken or 2013# incompatible versions: 2014# SysV /etc/install, /usr/sbin/install 2015# SunOS /usr/etc/install 2016# IRIX /sbin/install 2017# AIX /bin/install 2018# AmigaOS /C/install, which installs bootblocks on floppy discs 2019# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2020# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2021# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2022# OS/2's system install, which has a completely different semantic 2023# ./install, which can be erroneously created by make from ./install.sh. 2024{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2026if test -z "$INSTALL"; then 2027if test "${ac_cv_path_install+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029else 2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 # Account for people who put trailing slashes in PATH elements. 2036case $as_dir/ in 2037 ./ | .// | /cC/* | \ 2038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2040 /usr/ucb/* ) ;; 2041 *) 2042 # OSF1 and SCO ODT 3.0 have their own names for install. 2043 # Don't use installbsd from OSF since it installs stuff as root 2044 # by default. 2045 for ac_prog in ginstall scoinst install; do 2046 for ac_exec_ext in '' $ac_executable_extensions; do 2047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2048 if test $ac_prog = install && 2049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2050 # AIX install. It has an incompatible calling convention. 2051 : 2052 elif test $ac_prog = install && 2053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2054 # program-specific install script used by HP pwplus--don't use. 2055 : 2056 else 2057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2058 break 3 2059 fi 2060 fi 2061 done 2062 done 2063 ;; 2064esac 2065done 2066IFS=$as_save_IFS 2067 2068 2069fi 2070 if test "${ac_cv_path_install+set}" = set; then 2071 INSTALL=$ac_cv_path_install 2072 else 2073 # As a last resort, use the slow shell script. Don't cache a 2074 # value for INSTALL within a source directory, because that will 2075 # break other packages using the cache if that directory is 2076 # removed, or if the value is a relative name. 2077 INSTALL=$ac_install_sh 2078 fi 2079fi 2080{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2081echo "${ECHO_T}$INSTALL" >&6; } 2082 2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2084# It thinks the first close brace ends the variable substitution. 2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2086 2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2088 2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2090 2091{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2092echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2093# Just in case 2094sleep 1 2095echo timestamp > conftest.file 2096# Do `set' in a subshell so we don't clobber the current shell's 2097# arguments. Must try -L first in case configure is actually a 2098# symlink; some systems play weird games with the mod time of symlinks 2099# (eg FreeBSD returns the mod time of the symlink's containing 2100# directory). 2101if ( 2102 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2103 if test "$*" = "X"; then 2104 # -L didn't work. 2105 set X `ls -t $srcdir/configure conftest.file` 2106 fi 2107 rm -f conftest.file 2108 if test "$*" != "X $srcdir/configure conftest.file" \ 2109 && test "$*" != "X conftest.file $srcdir/configure"; then 2110 2111 # If neither matched, then we have a broken ls. This can happen 2112 # if, for instance, CONFIG_SHELL is bash and it inherits a 2113 # broken ls alias from the environment. This has actually 2114 # happened. Such a system could not be considered "sane". 2115 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2116alias in your environment" >&5 2117echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2118alias in your environment" >&2;} 2119 { (exit 1); exit 1; }; } 2120 fi 2121 2122 test "$2" = conftest.file 2123 ) 2124then 2125 # Ok. 2126 : 2127else 2128 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2129Check your system clock" >&5 2130echo "$as_me: error: newly created file is older than distributed files! 2131Check your system clock" >&2;} 2132 { (exit 1); exit 1; }; } 2133fi 2134{ echo "$as_me:$LINENO: result: yes" >&5 2135echo "${ECHO_T}yes" >&6; } 2136test "$program_prefix" != NONE && 2137 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2138# Use a double $ so make ignores it. 2139test "$program_suffix" != NONE && 2140 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2141# Double any \ or $. echo might interpret backslashes. 2142# By default was `s,x,x', remove it if useless. 2143cat <<\_ACEOF >conftest.sed 2144s/[\\$]/&&/g;s/;s,x,x,$// 2145_ACEOF 2146program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2147rm -f conftest.sed 2148 2149# expand $ac_aux_dir to an absolute path 2150am_aux_dir=`cd $ac_aux_dir && pwd` 2151 2152test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2153# Use eval to expand $SHELL 2154if eval "$MISSING --run true"; then 2155 am_missing_run="$MISSING --run " 2156else 2157 am_missing_run= 2158 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2159echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2160fi 2161 2162{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2163echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2164if test -z "$MKDIR_P"; then 2165 if test "${ac_cv_path_mkdir+set}" = set; then 2166 echo $ECHO_N "(cached) $ECHO_C" >&6 2167else 2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2169for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2170do 2171 IFS=$as_save_IFS 2172 test -z "$as_dir" && as_dir=. 2173 for ac_prog in mkdir gmkdir; do 2174 for ac_exec_ext in '' $ac_executable_extensions; do 2175 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2176 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2177 'mkdir (GNU coreutils) '* | \ 2178 'mkdir (coreutils) '* | \ 2179 'mkdir (fileutils) '4.1*) 2180 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2181 break 3;; 2182 esac 2183 done 2184 done 2185done 2186IFS=$as_save_IFS 2187 2188fi 2189 2190 if test "${ac_cv_path_mkdir+set}" = set; then 2191 MKDIR_P="$ac_cv_path_mkdir -p" 2192 else 2193 # As a last resort, use the slow shell script. Don't cache a 2194 # value for MKDIR_P within a source directory, because that will 2195 # break other packages using the cache if that directory is 2196 # removed, or if the value is a relative name. 2197 test -d ./--version && rmdir ./--version 2198 MKDIR_P="$ac_install_sh -d" 2199 fi 2200fi 2201{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2202echo "${ECHO_T}$MKDIR_P" >&6; } 2203 2204mkdir_p="$MKDIR_P" 2205case $mkdir_p in 2206 [\\/$]* | ?:[\\/]*) ;; 2207 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2208esac 2209 2210for ac_prog in gawk mawk nawk awk 2211do 2212 # Extract the first word of "$ac_prog", so it can be a program name with args. 2213set dummy $ac_prog; ac_word=$2 2214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2216if test "${ac_cv_prog_AWK+set}" = set; then 2217 echo $ECHO_N "(cached) $ECHO_C" >&6 2218else 2219 if test -n "$AWK"; then 2220 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2221else 2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2223for as_dir in $PATH 2224do 2225 IFS=$as_save_IFS 2226 test -z "$as_dir" && as_dir=. 2227 for ac_exec_ext in '' $ac_executable_extensions; do 2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2229 ac_cv_prog_AWK="$ac_prog" 2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2231 break 2 2232 fi 2233done 2234done 2235IFS=$as_save_IFS 2236 2237fi 2238fi 2239AWK=$ac_cv_prog_AWK 2240if test -n "$AWK"; then 2241 { echo "$as_me:$LINENO: result: $AWK" >&5 2242echo "${ECHO_T}$AWK" >&6; } 2243else 2244 { echo "$as_me:$LINENO: result: no" >&5 2245echo "${ECHO_T}no" >&6; } 2246fi 2247 2248 2249 test -n "$AWK" && break 2250done 2251 2252{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2253echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2254set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2255if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2256 echo $ECHO_N "(cached) $ECHO_C" >&6 2257else 2258 cat >conftest.make <<\_ACEOF 2259SHELL = /bin/sh 2260all: 2261 @echo '@@@%%%=$(MAKE)=@@@%%%' 2262_ACEOF 2263# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2264case `${MAKE-make} -f conftest.make 2>/dev/null` in 2265 *@@@%%%=?*=@@@%%%*) 2266 eval ac_cv_prog_make_${ac_make}_set=yes;; 2267 *) 2268 eval ac_cv_prog_make_${ac_make}_set=no;; 2269esac 2270rm -f conftest.make 2271fi 2272if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2273 { echo "$as_me:$LINENO: result: yes" >&5 2274echo "${ECHO_T}yes" >&6; } 2275 SET_MAKE= 2276else 2277 { echo "$as_me:$LINENO: result: no" >&5 2278echo "${ECHO_T}no" >&6; } 2279 SET_MAKE="MAKE=${MAKE-make}" 2280fi 2281 2282rm -rf .tst 2>/dev/null 2283mkdir .tst 2>/dev/null 2284if test -d .tst; then 2285 am__leading_dot=. 2286else 2287 am__leading_dot=_ 2288fi 2289rmdir .tst 2>/dev/null 2290 2291if test "`cd $srcdir && pwd`" != "`pwd`"; then 2292 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2293 # is not polluted with repeated "-I." 2294 am__isrc=' -I$(srcdir)' 2295 # test to see if srcdir already configured 2296 if test -f $srcdir/config.status; then 2297 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2298echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2299 { (exit 1); exit 1; }; } 2300 fi 2301fi 2302 2303# test whether we have cygpath 2304if test -z "$CYGPATH_W"; then 2305 if (cygpath --version) >/dev/null 2>/dev/null; then 2306 CYGPATH_W='cygpath -w' 2307 else 2308 CYGPATH_W=echo 2309 fi 2310fi 2311 2312 2313# Define the identity of the package. 2314 PACKAGE='xf86-input-keyboard' 2315 VERSION='1.3.1' 2316 2317 2318cat >>confdefs.h <<_ACEOF 2319#define PACKAGE "$PACKAGE" 2320_ACEOF 2321 2322 2323cat >>confdefs.h <<_ACEOF 2324#define VERSION "$VERSION" 2325_ACEOF 2326 2327# Some tools Automake needs. 2328 2329ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2330 2331 2332AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2333 2334 2335AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2336 2337 2338AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2339 2340 2341MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2342 2343install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2344 2345# Installed binaries are usually stripped using `strip' when the user 2346# run `make install-strip'. However `strip' might not be the right 2347# tool to use in cross-compilation environments, therefore Automake 2348# will honor the `STRIP' environment variable to overrule this program. 2349if test "$cross_compiling" != no; then 2350 if test -n "$ac_tool_prefix"; then 2351 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2352set dummy ${ac_tool_prefix}strip; ac_word=$2 2353{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2355if test "${ac_cv_prog_STRIP+set}" = set; then 2356 echo $ECHO_N "(cached) $ECHO_C" >&6 2357else 2358 if test -n "$STRIP"; then 2359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2360else 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2368 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373done 2374IFS=$as_save_IFS 2375 2376fi 2377fi 2378STRIP=$ac_cv_prog_STRIP 2379if test -n "$STRIP"; then 2380 { echo "$as_me:$LINENO: result: $STRIP" >&5 2381echo "${ECHO_T}$STRIP" >&6; } 2382else 2383 { echo "$as_me:$LINENO: result: no" >&5 2384echo "${ECHO_T}no" >&6; } 2385fi 2386 2387 2388fi 2389if test -z "$ac_cv_prog_STRIP"; then 2390 ac_ct_STRIP=$STRIP 2391 # Extract the first word of "strip", so it can be a program name with args. 2392set dummy strip; ac_word=$2 2393{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2395if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2396 echo $ECHO_N "(cached) $ECHO_C" >&6 2397else 2398 if test -n "$ac_ct_STRIP"; then 2399 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2400else 2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2402for as_dir in $PATH 2403do 2404 IFS=$as_save_IFS 2405 test -z "$as_dir" && as_dir=. 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2408 ac_cv_prog_ac_ct_STRIP="strip" 2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2410 break 2 2411 fi 2412done 2413done 2414IFS=$as_save_IFS 2415 2416fi 2417fi 2418ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2419if test -n "$ac_ct_STRIP"; then 2420 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2421echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2422else 2423 { echo "$as_me:$LINENO: result: no" >&5 2424echo "${ECHO_T}no" >&6; } 2425fi 2426 2427 if test "x$ac_ct_STRIP" = x; then 2428 STRIP=":" 2429 else 2430 case $cross_compiling:$ac_tool_warned in 2431yes:) 2432{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2433whose name does not start with the host triplet. If you think this 2434configuration is useful to you, please write to autoconf@gnu.org." >&5 2435echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2436whose name does not start with the host triplet. If you think this 2437configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2438ac_tool_warned=yes ;; 2439esac 2440 STRIP=$ac_ct_STRIP 2441 fi 2442else 2443 STRIP="$ac_cv_prog_STRIP" 2444fi 2445 2446fi 2447INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2448 2449# We need awk for the "check" target. The system "awk" is bad on 2450# some platforms. 2451# Always define AMTAR for backward compatibility. 2452 2453AMTAR=${AMTAR-"${am_missing_run}tar"} 2454 2455am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2456 2457 2458 2459 2460 2461 2462{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2463echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2464 # Check whether --enable-maintainer-mode was given. 2465if test "${enable_maintainer_mode+set}" = set; then 2466 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2467else 2468 USE_MAINTAINER_MODE=no 2469fi 2470 2471 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2472echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2473 if test $USE_MAINTAINER_MODE = yes; then 2474 MAINTAINER_MODE_TRUE= 2475 MAINTAINER_MODE_FALSE='#' 2476else 2477 MAINTAINER_MODE_TRUE='#' 2478 MAINTAINER_MODE_FALSE= 2479fi 2480 2481 MAINT=$MAINTAINER_MODE_TRUE 2482 2483 2484 2485DRIVER_NAME=kbd 2486 2487 2488ac_config_headers="$ac_config_headers config.h" 2489 2490 2491# Checks for programs. 2492# Check whether --enable-static was given. 2493if test "${enable_static+set}" = set; then 2494 enableval=$enable_static; p=${PACKAGE-default} 2495 case $enableval in 2496 yes) enable_static=yes ;; 2497 no) enable_static=no ;; 2498 *) 2499 enable_static=no 2500 # Look at the argument we got. We use all the common list separators. 2501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2502 for pkg in $enableval; do 2503 IFS="$lt_save_ifs" 2504 if test "X$pkg" = "X$p"; then 2505 enable_static=yes 2506 fi 2507 done 2508 IFS="$lt_save_ifs" 2509 ;; 2510 esac 2511else 2512 enable_static=no 2513fi 2514 2515 2516 2517# Check whether --enable-shared was given. 2518if test "${enable_shared+set}" = set; then 2519 enableval=$enable_shared; p=${PACKAGE-default} 2520 case $enableval in 2521 yes) enable_shared=yes ;; 2522 no) enable_shared=no ;; 2523 *) 2524 enable_shared=no 2525 # Look at the argument we got. We use all the common list separators. 2526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2527 for pkg in $enableval; do 2528 IFS="$lt_save_ifs" 2529 if test "X$pkg" = "X$p"; then 2530 enable_shared=yes 2531 fi 2532 done 2533 IFS="$lt_save_ifs" 2534 ;; 2535 esac 2536else 2537 enable_shared=yes 2538fi 2539 2540 2541# Check whether --enable-fast-install was given. 2542if test "${enable_fast_install+set}" = set; then 2543 enableval=$enable_fast_install; p=${PACKAGE-default} 2544 case $enableval in 2545 yes) enable_fast_install=yes ;; 2546 no) enable_fast_install=no ;; 2547 *) 2548 enable_fast_install=no 2549 # Look at the argument we got. We use all the common list separators. 2550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2551 for pkg in $enableval; do 2552 IFS="$lt_save_ifs" 2553 if test "X$pkg" = "X$p"; then 2554 enable_fast_install=yes 2555 fi 2556 done 2557 IFS="$lt_save_ifs" 2558 ;; 2559 esac 2560else 2561 enable_fast_install=yes 2562fi 2563 2564 2565# Make sure we can run config.sub. 2566$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2567 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2568echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2569 { (exit 1); exit 1; }; } 2570 2571{ echo "$as_me:$LINENO: checking build system type" >&5 2572echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2573if test "${ac_cv_build+set}" = set; then 2574 echo $ECHO_N "(cached) $ECHO_C" >&6 2575else 2576 ac_build_alias=$build_alias 2577test "x$ac_build_alias" = x && 2578 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2579test "x$ac_build_alias" = x && 2580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2581echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2582 { (exit 1); exit 1; }; } 2583ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2584 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2585echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2586 { (exit 1); exit 1; }; } 2587 2588fi 2589{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2590echo "${ECHO_T}$ac_cv_build" >&6; } 2591case $ac_cv_build in 2592*-*-*) ;; 2593*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2594echo "$as_me: error: invalid value of canonical build" >&2;} 2595 { (exit 1); exit 1; }; };; 2596esac 2597build=$ac_cv_build 2598ac_save_IFS=$IFS; IFS='-' 2599set x $ac_cv_build 2600shift 2601build_cpu=$1 2602build_vendor=$2 2603shift; shift 2604# Remember, the first character of IFS is used to create $*, 2605# except with old shells: 2606build_os=$* 2607IFS=$ac_save_IFS 2608case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2609 2610 2611{ echo "$as_me:$LINENO: checking host system type" >&5 2612echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2613if test "${ac_cv_host+set}" = set; then 2614 echo $ECHO_N "(cached) $ECHO_C" >&6 2615else 2616 if test "x$host_alias" = x; then 2617 ac_cv_host=$ac_cv_build 2618else 2619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2620 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2621echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2622 { (exit 1); exit 1; }; } 2623fi 2624 2625fi 2626{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2627echo "${ECHO_T}$ac_cv_host" >&6; } 2628case $ac_cv_host in 2629*-*-*) ;; 2630*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2631echo "$as_me: error: invalid value of canonical host" >&2;} 2632 { (exit 1); exit 1; }; };; 2633esac 2634host=$ac_cv_host 2635ac_save_IFS=$IFS; IFS='-' 2636set x $ac_cv_host 2637shift 2638host_cpu=$1 2639host_vendor=$2 2640shift; shift 2641# Remember, the first character of IFS is used to create $*, 2642# except with old shells: 2643host_os=$* 2644IFS=$ac_save_IFS 2645case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2646 2647 2648DEPDIR="${am__leading_dot}deps" 2649 2650ac_config_commands="$ac_config_commands depfiles" 2651 2652 2653am_make=${MAKE-make} 2654cat > confinc << 'END' 2655am__doit: 2656 @echo done 2657.PHONY: am__doit 2658END 2659# If we don't find an include directive, just comment out the code. 2660{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2661echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2662am__include="#" 2663am__quote= 2664_am_result=none 2665# First try GNU make style include. 2666echo "include confinc" > confmf 2667# We grep out `Entering directory' and `Leaving directory' 2668# messages which can occur if `w' ends up in MAKEFLAGS. 2669# In particular we don't look at `^make:' because GNU make might 2670# be invoked under some other name (usually "gmake"), in which 2671# case it prints its new name instead of `make'. 2672if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2673 am__include=include 2674 am__quote= 2675 _am_result=GNU 2676fi 2677# Now try BSD make style include. 2678if test "$am__include" = "#"; then 2679 echo '.include "confinc"' > confmf 2680 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2681 am__include=.include 2682 am__quote="\"" 2683 _am_result=BSD 2684 fi 2685fi 2686 2687 2688{ echo "$as_me:$LINENO: result: $_am_result" >&5 2689echo "${ECHO_T}$_am_result" >&6; } 2690rm -f confinc confmf 2691 2692# Check whether --enable-dependency-tracking was given. 2693if test "${enable_dependency_tracking+set}" = set; then 2694 enableval=$enable_dependency_tracking; 2695fi 2696 2697if test "x$enable_dependency_tracking" != xno; then 2698 am_depcomp="$ac_aux_dir/depcomp" 2699 AMDEPBACKSLASH='\' 2700fi 2701 if test "x$enable_dependency_tracking" != xno; then 2702 AMDEP_TRUE= 2703 AMDEP_FALSE='#' 2704else 2705 AMDEP_TRUE='#' 2706 AMDEP_FALSE= 2707fi 2708 2709 2710ac_ext=c 2711ac_cpp='$CPP $CPPFLAGS' 2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2714ac_compiler_gnu=$ac_cv_c_compiler_gnu 2715if test -n "$ac_tool_prefix"; then 2716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2717set dummy ${ac_tool_prefix}gcc; ac_word=$2 2718{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2720if test "${ac_cv_prog_CC+set}" = set; then 2721 echo $ECHO_N "(cached) $ECHO_C" >&6 2722else 2723 if test -n "$CC"; then 2724 ac_cv_prog_CC="$CC" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2733 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743CC=$ac_cv_prog_CC 2744if test -n "$CC"; then 2745 { echo "$as_me:$LINENO: result: $CC" >&5 2746echo "${ECHO_T}$CC" >&6; } 2747else 2748 { echo "$as_me:$LINENO: result: no" >&5 2749echo "${ECHO_T}no" >&6; } 2750fi 2751 2752 2753fi 2754if test -z "$ac_cv_prog_CC"; then 2755 ac_ct_CC=$CC 2756 # Extract the first word of "gcc", so it can be a program name with args. 2757set dummy gcc; ac_word=$2 2758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 if test -n "$ac_ct_CC"; then 2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2773 ac_cv_prog_ac_ct_CC="gcc" 2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783ac_ct_CC=$ac_cv_prog_ac_ct_CC 2784if test -n "$ac_ct_CC"; then 2785 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2786echo "${ECHO_T}$ac_ct_CC" >&6; } 2787else 2788 { echo "$as_me:$LINENO: result: no" >&5 2789echo "${ECHO_T}no" >&6; } 2790fi 2791 2792 if test "x$ac_ct_CC" = x; then 2793 CC="" 2794 else 2795 case $cross_compiling:$ac_tool_warned in 2796yes:) 2797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2798whose name does not start with the host triplet. If you think this 2799configuration is useful to you, please write to autoconf@gnu.org." >&5 2800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2801whose name does not start with the host triplet. If you think this 2802configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2803ac_tool_warned=yes ;; 2804esac 2805 CC=$ac_ct_CC 2806 fi 2807else 2808 CC="$ac_cv_prog_CC" 2809fi 2810 2811if test -z "$CC"; then 2812 if test -n "$ac_tool_prefix"; then 2813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2814set dummy ${ac_tool_prefix}cc; ac_word=$2 2815{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2817if test "${ac_cv_prog_CC+set}" = set; then 2818 echo $ECHO_N "(cached) $ECHO_C" >&6 2819else 2820 if test -n "$CC"; then 2821 ac_cv_prog_CC="$CC" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2830 ac_cv_prog_CC="${ac_tool_prefix}cc" 2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840CC=$ac_cv_prog_CC 2841if test -n "$CC"; then 2842 { echo "$as_me:$LINENO: result: $CC" >&5 2843echo "${ECHO_T}$CC" >&6; } 2844else 2845 { echo "$as_me:$LINENO: result: no" >&5 2846echo "${ECHO_T}no" >&6; } 2847fi 2848 2849 2850 fi 2851fi 2852if test -z "$CC"; then 2853 # Extract the first word of "cc", so it can be a program name with args. 2854set dummy cc; ac_word=$2 2855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2857if test "${ac_cv_prog_CC+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 if test -n "$CC"; then 2861 ac_cv_prog_CC="$CC" # Let the user override the test. 2862else 2863 ac_prog_rejected=no 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2872 ac_prog_rejected=yes 2873 continue 2874 fi 2875 ac_cv_prog_CC="cc" 2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880done 2881IFS=$as_save_IFS 2882 2883if test $ac_prog_rejected = yes; then 2884 # We found a bogon in the path, so make sure we never use it. 2885 set dummy $ac_cv_prog_CC 2886 shift 2887 if test $# != 0; then 2888 # We chose a different compiler from the bogus one. 2889 # However, it has the same basename, so the bogon will be chosen 2890 # first if we set CC to just the basename; use the full file name. 2891 shift 2892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2893 fi 2894fi 2895fi 2896fi 2897CC=$ac_cv_prog_CC 2898if test -n "$CC"; then 2899 { echo "$as_me:$LINENO: result: $CC" >&5 2900echo "${ECHO_T}$CC" >&6; } 2901else 2902 { echo "$as_me:$LINENO: result: no" >&5 2903echo "${ECHO_T}no" >&6; } 2904fi 2905 2906 2907fi 2908if test -z "$CC"; then 2909 if test -n "$ac_tool_prefix"; then 2910 for ac_prog in cl.exe 2911 do 2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2913set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2914{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2916if test "${ac_cv_prog_CC+set}" = set; then 2917 echo $ECHO_N "(cached) $ECHO_C" >&6 2918else 2919 if test -n "$CC"; then 2920 ac_cv_prog_CC="$CC" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939CC=$ac_cv_prog_CC 2940if test -n "$CC"; then 2941 { echo "$as_me:$LINENO: result: $CC" >&5 2942echo "${ECHO_T}$CC" >&6; } 2943else 2944 { echo "$as_me:$LINENO: result: no" >&5 2945echo "${ECHO_T}no" >&6; } 2946fi 2947 2948 2949 test -n "$CC" && break 2950 done 2951fi 2952if test -z "$CC"; then 2953 ac_ct_CC=$CC 2954 for ac_prog in cl.exe 2955do 2956 # Extract the first word of "$ac_prog", so it can be a program name with args. 2957set dummy $ac_prog; ac_word=$2 2958{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2961 echo $ECHO_N "(cached) $ECHO_C" >&6 2962else 2963 if test -n "$ac_ct_CC"; then 2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2965else 2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 test -z "$as_dir" && as_dir=. 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2973 ac_cv_prog_ac_ct_CC="$ac_prog" 2974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978done 2979IFS=$as_save_IFS 2980 2981fi 2982fi 2983ac_ct_CC=$ac_cv_prog_ac_ct_CC 2984if test -n "$ac_ct_CC"; then 2985 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2986echo "${ECHO_T}$ac_ct_CC" >&6; } 2987else 2988 { echo "$as_me:$LINENO: result: no" >&5 2989echo "${ECHO_T}no" >&6; } 2990fi 2991 2992 2993 test -n "$ac_ct_CC" && break 2994done 2995 2996 if test "x$ac_ct_CC" = x; then 2997 CC="" 2998 else 2999 case $cross_compiling:$ac_tool_warned in 3000yes:) 3001{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3002whose name does not start with the host triplet. If you think this 3003configuration is useful to you, please write to autoconf@gnu.org." >&5 3004echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3005whose name does not start with the host triplet. If you think this 3006configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3007ac_tool_warned=yes ;; 3008esac 3009 CC=$ac_ct_CC 3010 fi 3011fi 3012 3013fi 3014 3015 3016test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3017See \`config.log' for more details." >&5 3018echo "$as_me: error: no acceptable C compiler found in \$PATH 3019See \`config.log' for more details." >&2;} 3020 { (exit 1); exit 1; }; } 3021 3022# Provide some information about the compiler. 3023echo "$as_me:$LINENO: checking for C compiler version" >&5 3024ac_compiler=`set X $ac_compile; echo $2` 3025{ (ac_try="$ac_compiler --version >&5" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_compiler --version >&5") 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } 3035{ (ac_try="$ac_compiler -v >&5" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3041 (eval "$ac_compiler -v >&5") 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); } 3045{ (ac_try="$ac_compiler -V >&5" 3046case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_compiler -V >&5") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); } 3055 3056cat >conftest.$ac_ext <<_ACEOF 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062 3063int 3064main () 3065{ 3066 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071ac_clean_files_save=$ac_clean_files 3072ac_clean_files="$ac_clean_files a.out a.exe b.out" 3073# Try to create an executable without -o first, disregard a.out. 3074# It will help us diagnose broken compilers, and finding out an intuition 3075# of exeext. 3076{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3077echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3078ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3079# 3080# List of possible output files, starting from the most likely. 3081# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3082# only as a last resort. b.out is created by i960 compilers. 3083ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3084# 3085# The IRIX 6 linker writes into existing files which may not be 3086# executable, retaining their permissions. Remove them first so a 3087# subsequent execution test works. 3088ac_rmfiles= 3089for ac_file in $ac_files 3090do 3091 case $ac_file in 3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3093 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3094 esac 3095done 3096rm -f $ac_rmfiles 3097 3098if { (ac_try="$ac_link_default" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3104 (eval "$ac_link_default") 2>&5 3105 ac_status=$? 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); }; then 3108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3109# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3110# in a Makefile. We should not override ac_cv_exeext if it was cached, 3111# so that the user can short-circuit this test for compilers unknown to 3112# Autoconf. 3113for ac_file in $ac_files '' 3114do 3115 test -f "$ac_file" || continue 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3118 ;; 3119 [ab].out ) 3120 # We found the default executable, but exeext='' is most 3121 # certainly right. 3122 break;; 3123 *.* ) 3124 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3125 then :; else 3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3127 fi 3128 # We set ac_cv_exeext here because the later test for it is not 3129 # safe: cross compilers may not add the suffix if given an `-o' 3130 # argument, so we may need to know it at that point already. 3131 # Even if this section looks crufty: it has the advantage of 3132 # actually working. 3133 break;; 3134 * ) 3135 break;; 3136 esac 3137done 3138test "$ac_cv_exeext" = no && ac_cv_exeext= 3139 3140else 3141 ac_file='' 3142fi 3143 3144{ echo "$as_me:$LINENO: result: $ac_file" >&5 3145echo "${ECHO_T}$ac_file" >&6; } 3146if test -z "$ac_file"; then 3147 echo "$as_me: failed program was:" >&5 3148sed 's/^/| /' conftest.$ac_ext >&5 3149 3150{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3151See \`config.log' for more details." >&5 3152echo "$as_me: error: C compiler cannot create executables 3153See \`config.log' for more details." >&2;} 3154 { (exit 77); exit 77; }; } 3155fi 3156 3157ac_exeext=$ac_cv_exeext 3158 3159# Check that the compiler produces executables we can run. If not, either 3160# the compiler is broken, or we cross compile. 3161{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3162echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3163# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3164# If not cross compiling, check that we can run a simple program. 3165if test "$cross_compiling" != yes; then 3166 if { ac_try='./$ac_file' 3167 { (case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3172 (eval "$ac_try") 2>&5 3173 ac_status=$? 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3175 (exit $ac_status); }; }; then 3176 cross_compiling=no 3177 else 3178 if test "$cross_compiling" = maybe; then 3179 cross_compiling=yes 3180 else 3181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3182If you meant to cross compile, use \`--host'. 3183See \`config.log' for more details." >&5 3184echo "$as_me: error: cannot run C compiled programs. 3185If you meant to cross compile, use \`--host'. 3186See \`config.log' for more details." >&2;} 3187 { (exit 1); exit 1; }; } 3188 fi 3189 fi 3190fi 3191{ echo "$as_me:$LINENO: result: yes" >&5 3192echo "${ECHO_T}yes" >&6; } 3193 3194rm -f a.out a.exe conftest$ac_cv_exeext b.out 3195ac_clean_files=$ac_clean_files_save 3196# Check that the compiler produces executables we can run. If not, either 3197# the compiler is broken, or we cross compile. 3198{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3200{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3201echo "${ECHO_T}$cross_compiling" >&6; } 3202 3203{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3205if { (ac_try="$ac_link" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3211 (eval "$ac_link") 2>&5 3212 ac_status=$? 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); }; then 3215 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3216# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3217# work properly (i.e., refer to `conftest.exe'), while it won't with 3218# `rm'. 3219for ac_file in conftest.exe conftest conftest.*; do 3220 test -f "$ac_file" || continue 3221 case $ac_file in 3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3224 break;; 3225 * ) break;; 3226 esac 3227done 3228else 3229 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3230See \`config.log' for more details." >&5 3231echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3232See \`config.log' for more details." >&2;} 3233 { (exit 1); exit 1; }; } 3234fi 3235 3236rm -f conftest$ac_cv_exeext 3237{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3238echo "${ECHO_T}$ac_cv_exeext" >&6; } 3239 3240rm -f conftest.$ac_ext 3241EXEEXT=$ac_cv_exeext 3242ac_exeext=$EXEEXT 3243{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3244echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3245if test "${ac_cv_objext+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247else 3248 cat >conftest.$ac_ext <<_ACEOF 3249/* confdefs.h. */ 3250_ACEOF 3251cat confdefs.h >>conftest.$ac_ext 3252cat >>conftest.$ac_ext <<_ACEOF 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263rm -f conftest.o conftest.obj 3264if { (ac_try="$ac_compile" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3270 (eval "$ac_compile") 2>&5 3271 ac_status=$? 3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3273 (exit $ac_status); }; then 3274 for ac_file in conftest.o conftest.obj conftest.*; do 3275 test -f "$ac_file" || continue; 3276 case $ac_file in 3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3279 break;; 3280 esac 3281done 3282else 3283 echo "$as_me: failed program was:" >&5 3284sed 's/^/| /' conftest.$ac_ext >&5 3285 3286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3287See \`config.log' for more details." >&5 3288echo "$as_me: error: cannot compute suffix of object files: cannot compile 3289See \`config.log' for more details." >&2;} 3290 { (exit 1); exit 1; }; } 3291fi 3292 3293rm -f conftest.$ac_cv_objext conftest.$ac_ext 3294fi 3295{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3296echo "${ECHO_T}$ac_cv_objext" >&6; } 3297OBJEXT=$ac_cv_objext 3298ac_objext=$OBJEXT 3299{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3301if test "${ac_cv_c_compiler_gnu+set}" = set; then 3302 echo $ECHO_N "(cached) $ECHO_C" >&6 3303else 3304 cat >conftest.$ac_ext <<_ACEOF 3305/* confdefs.h. */ 3306_ACEOF 3307cat confdefs.h >>conftest.$ac_ext 3308cat >>conftest.$ac_ext <<_ACEOF 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314#ifndef __GNUC__ 3315 choke me 3316#endif 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322rm -f conftest.$ac_objext 3323if { (ac_try="$ac_compile" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3329 (eval "$ac_compile") 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } && { 3336 test -z "$ac_c_werror_flag" || 3337 test ! -s conftest.err 3338 } && test -s conftest.$ac_objext; then 3339 ac_compiler_gnu=yes 3340else 3341 echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344 ac_compiler_gnu=no 3345fi 3346 3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3348ac_cv_c_compiler_gnu=$ac_compiler_gnu 3349 3350fi 3351{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3352echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3353GCC=`test $ac_compiler_gnu = yes && echo yes` 3354ac_test_CFLAGS=${CFLAGS+set} 3355ac_save_CFLAGS=$CFLAGS 3356{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3357echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3358if test "${ac_cv_prog_cc_g+set}" = set; then 3359 echo $ECHO_N "(cached) $ECHO_C" >&6 3360else 3361 ac_save_c_werror_flag=$ac_c_werror_flag 3362 ac_c_werror_flag=yes 3363 ac_cv_prog_cc_g=no 3364 CFLAGS="-g" 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380rm -f conftest.$ac_objext 3381if { (ac_try="$ac_compile" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3387 (eval "$ac_compile") 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } && { 3394 test -z "$ac_c_werror_flag" || 3395 test ! -s conftest.err 3396 } && test -s conftest.$ac_objext; then 3397 ac_cv_prog_cc_g=yes 3398else 3399 echo "$as_me: failed program was:" >&5 3400sed 's/^/| /' conftest.$ac_ext >&5 3401 3402 CFLAGS="" 3403 cat >conftest.$ac_ext <<_ACEOF 3404/* confdefs.h. */ 3405_ACEOF 3406cat confdefs.h >>conftest.$ac_ext 3407cat >>conftest.$ac_ext <<_ACEOF 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418rm -f conftest.$ac_objext 3419if { (ac_try="$ac_compile" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3425 (eval "$ac_compile") 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && { 3432 test -z "$ac_c_werror_flag" || 3433 test ! -s conftest.err 3434 } && test -s conftest.$ac_objext; then 3435 : 3436else 3437 echo "$as_me: failed program was:" >&5 3438sed 's/^/| /' conftest.$ac_ext >&5 3439 3440 ac_c_werror_flag=$ac_save_c_werror_flag 3441 CFLAGS="-g" 3442 cat >conftest.$ac_ext <<_ACEOF 3443/* confdefs.h. */ 3444_ACEOF 3445cat confdefs.h >>conftest.$ac_ext 3446cat >>conftest.$ac_ext <<_ACEOF 3447/* end confdefs.h. */ 3448 3449int 3450main () 3451{ 3452 3453 ; 3454 return 0; 3455} 3456_ACEOF 3457rm -f conftest.$ac_objext 3458if { (ac_try="$ac_compile" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3464 (eval "$ac_compile") 2>conftest.er1 3465 ac_status=$? 3466 grep -v '^ *+' conftest.er1 >conftest.err 3467 rm -f conftest.er1 3468 cat conftest.err >&5 3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3470 (exit $ac_status); } && { 3471 test -z "$ac_c_werror_flag" || 3472 test ! -s conftest.err 3473 } && test -s conftest.$ac_objext; then 3474 ac_cv_prog_cc_g=yes 3475else 3476 echo "$as_me: failed program was:" >&5 3477sed 's/^/| /' conftest.$ac_ext >&5 3478 3479 3480fi 3481 3482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3483fi 3484 3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3486fi 3487 3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3489 ac_c_werror_flag=$ac_save_c_werror_flag 3490fi 3491{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3492echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3493if test "$ac_test_CFLAGS" = set; then 3494 CFLAGS=$ac_save_CFLAGS 3495elif test $ac_cv_prog_cc_g = yes; then 3496 if test "$GCC" = yes; then 3497 CFLAGS="-g -O2" 3498 else 3499 CFLAGS="-g" 3500 fi 3501else 3502 if test "$GCC" = yes; then 3503 CFLAGS="-O2" 3504 else 3505 CFLAGS= 3506 fi 3507fi 3508{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3509echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3510if test "${ac_cv_prog_cc_c89+set}" = set; then 3511 echo $ECHO_N "(cached) $ECHO_C" >&6 3512else 3513 ac_cv_prog_cc_c89=no 3514ac_save_CC=$CC 3515cat >conftest.$ac_ext <<_ACEOF 3516/* confdefs.h. */ 3517_ACEOF 3518cat confdefs.h >>conftest.$ac_ext 3519cat >>conftest.$ac_ext <<_ACEOF 3520/* end confdefs.h. */ 3521#include <stdarg.h> 3522#include <stdio.h> 3523#include <sys/types.h> 3524#include <sys/stat.h> 3525/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3526struct buf { int x; }; 3527FILE * (*rcsopen) (struct buf *, struct stat *, int); 3528static char *e (p, i) 3529 char **p; 3530 int i; 3531{ 3532 return p[i]; 3533} 3534static char *f (char * (*g) (char **, int), char **p, ...) 3535{ 3536 char *s; 3537 va_list v; 3538 va_start (v,p); 3539 s = g (p, va_arg (v,int)); 3540 va_end (v); 3541 return s; 3542} 3543 3544/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3545 function prototypes and stuff, but not '\xHH' hex character constants. 3546 These don't provoke an error unfortunately, instead are silently treated 3547 as 'x'. The following induces an error, until -std is added to get 3548 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3549 array size at least. It's necessary to write '\x00'==0 to get something 3550 that's true only with -std. */ 3551int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3552 3553/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3554 inside strings and character constants. */ 3555#define FOO(x) 'x' 3556int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3557 3558int test (int i, double x); 3559struct s1 {int (*f) (int a);}; 3560struct s2 {int (*f) (double a);}; 3561int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3562int argc; 3563char **argv; 3564int 3565main () 3566{ 3567return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3573 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3574do 3575 CC="$ac_save_CC $ac_arg" 3576 rm -f conftest.$ac_objext 3577if { (ac_try="$ac_compile" 3578case "(($ac_try" in 3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3580 *) ac_try_echo=$ac_try;; 3581esac 3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3583 (eval "$ac_compile") 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } && { 3590 test -z "$ac_c_werror_flag" || 3591 test ! -s conftest.err 3592 } && test -s conftest.$ac_objext; then 3593 ac_cv_prog_cc_c89=$ac_arg 3594else 3595 echo "$as_me: failed program was:" >&5 3596sed 's/^/| /' conftest.$ac_ext >&5 3597 3598 3599fi 3600 3601rm -f core conftest.err conftest.$ac_objext 3602 test "x$ac_cv_prog_cc_c89" != "xno" && break 3603done 3604rm -f conftest.$ac_ext 3605CC=$ac_save_CC 3606 3607fi 3608# AC_CACHE_VAL 3609case "x$ac_cv_prog_cc_c89" in 3610 x) 3611 { echo "$as_me:$LINENO: result: none needed" >&5 3612echo "${ECHO_T}none needed" >&6; } ;; 3613 xno) 3614 { echo "$as_me:$LINENO: result: unsupported" >&5 3615echo "${ECHO_T}unsupported" >&6; } ;; 3616 *) 3617 CC="$CC $ac_cv_prog_cc_c89" 3618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3619echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3620esac 3621 3622 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629depcc="$CC" am_compiler_list= 3630 3631{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3632echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3633if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3634 echo $ECHO_N "(cached) $ECHO_C" >&6 3635else 3636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3637 # We make a subdir and do the tests there. Otherwise we can end up 3638 # making bogus files that we don't know about and never remove. For 3639 # instance it was reported that on HP-UX the gcc test will end up 3640 # making a dummy file named `D' -- because `-MD' means `put the output 3641 # in D'. 3642 mkdir conftest.dir 3643 # Copy depcomp to subdir because otherwise we won't find it if we're 3644 # using a relative directory. 3645 cp "$am_depcomp" conftest.dir 3646 cd conftest.dir 3647 # We will build objects and dependencies in a subdirectory because 3648 # it helps to detect inapplicable dependency modes. For instance 3649 # both Tru64's cc and ICC support -MD to output dependencies as a 3650 # side effect of compilation, but ICC will put the dependencies in 3651 # the current directory while Tru64 will put them in the object 3652 # directory. 3653 mkdir sub 3654 3655 am_cv_CC_dependencies_compiler_type=none 3656 if test "$am_compiler_list" = ""; then 3657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3658 fi 3659 for depmode in $am_compiler_list; do 3660 # Setup a source with many dependencies, because some compilers 3661 # like to wrap large dependency lists on column 80 (with \), and 3662 # we should not choose a depcomp mode which is confused by this. 3663 # 3664 # We need to recreate these files for each test, as the compiler may 3665 # overwrite some of them when testing with obscure command lines. 3666 # This happens at least with the AIX C compiler. 3667 : > sub/conftest.c 3668 for i in 1 2 3 4 5 6; do 3669 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3670 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3671 # Solaris 8's {/usr,}/bin/sh. 3672 touch sub/conftst$i.h 3673 done 3674 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3675 3676 case $depmode in 3677 nosideeffect) 3678 # after this tag, mechanisms are not by side-effect, so they'll 3679 # only be used when explicitly requested 3680 if test "x$enable_dependency_tracking" = xyes; then 3681 continue 3682 else 3683 break 3684 fi 3685 ;; 3686 none) break ;; 3687 esac 3688 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3689 # mode. It turns out that the SunPro C++ compiler does not properly 3690 # handle `-M -o', and we need to detect this. 3691 if depmode=$depmode \ 3692 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3694 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3695 >/dev/null 2>conftest.err && 3696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3698 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3700 # icc doesn't choke on unknown options, it will just issue warnings 3701 # or remarks (even with -Werror). So we grep stderr for any message 3702 # that says an option was ignored or not supported. 3703 # When given -MP, icc 7.0 and 7.1 complain thusly: 3704 # icc: Command line warning: ignoring option '-M'; no argument required 3705 # The diagnosis changed in icc 8.0: 3706 # icc: Command line remark: option '-MP' not supported 3707 if (grep 'ignoring option' conftest.err || 3708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3709 am_cv_CC_dependencies_compiler_type=$depmode 3710 break 3711 fi 3712 fi 3713 done 3714 3715 cd .. 3716 rm -rf conftest.dir 3717else 3718 am_cv_CC_dependencies_compiler_type=none 3719fi 3720 3721fi 3722{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3723echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3724CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3725 3726 if 3727 test "x$enable_dependency_tracking" != xno \ 3728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3729 am__fastdepCC_TRUE= 3730 am__fastdepCC_FALSE='#' 3731else 3732 am__fastdepCC_TRUE='#' 3733 am__fastdepCC_FALSE= 3734fi 3735 3736 3737{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3738echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3739if test "${lt_cv_path_SED+set}" = set; then 3740 echo $ECHO_N "(cached) $ECHO_C" >&6 3741else 3742 # Loop through the user's path and test for sed and gsed. 3743# Then use that list of sed's as ones to test for truncation. 3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745for as_dir in $PATH 3746do 3747 IFS=$as_save_IFS 3748 test -z "$as_dir" && as_dir=. 3749 for lt_ac_prog in sed gsed; do 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3752 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3753 fi 3754 done 3755 done 3756done 3757IFS=$as_save_IFS 3758lt_ac_max=0 3759lt_ac_count=0 3760# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3761# along with /bin/sed that truncates output. 3762for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3763 test ! -f $lt_ac_sed && continue 3764 cat /dev/null > conftest.in 3765 lt_ac_count=0 3766 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3767 # Check for GNU sed and select it if it is found. 3768 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3769 lt_cv_path_SED=$lt_ac_sed 3770 break 3771 fi 3772 while true; do 3773 cat conftest.in conftest.in >conftest.tmp 3774 mv conftest.tmp conftest.in 3775 cp conftest.in conftest.nl 3776 echo >>conftest.nl 3777 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3778 cmp -s conftest.out conftest.nl || break 3779 # 10000 chars as input seems more than enough 3780 test $lt_ac_count -gt 10 && break 3781 lt_ac_count=`expr $lt_ac_count + 1` 3782 if test $lt_ac_count -gt $lt_ac_max; then 3783 lt_ac_max=$lt_ac_count 3784 lt_cv_path_SED=$lt_ac_sed 3785 fi 3786 done 3787done 3788 3789fi 3790 3791SED=$lt_cv_path_SED 3792 3793{ echo "$as_me:$LINENO: result: $SED" >&5 3794echo "${ECHO_T}$SED" >&6; } 3795 3796{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3797echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3798if test "${ac_cv_path_GREP+set}" = set; then 3799 echo $ECHO_N "(cached) $ECHO_C" >&6 3800else 3801 # Extract the first word of "grep ggrep" to use in msg output 3802if test -z "$GREP"; then 3803set dummy grep ggrep; ac_prog_name=$2 3804if test "${ac_cv_path_GREP+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806else 3807 ac_path_GREP_found=false 3808# Loop through the user's path and test for each of PROGNAME-LIST 3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3810for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3811do 3812 IFS=$as_save_IFS 3813 test -z "$as_dir" && as_dir=. 3814 for ac_prog in grep ggrep; do 3815 for ac_exec_ext in '' $ac_executable_extensions; do 3816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3818 # Check for GNU ac_path_GREP and select it if it is found. 3819 # Check for GNU $ac_path_GREP 3820case `"$ac_path_GREP" --version 2>&1` in 3821*GNU*) 3822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3823*) 3824 ac_count=0 3825 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3826 while : 3827 do 3828 cat "conftest.in" "conftest.in" >"conftest.tmp" 3829 mv "conftest.tmp" "conftest.in" 3830 cp "conftest.in" "conftest.nl" 3831 echo 'GREP' >> "conftest.nl" 3832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3834 ac_count=`expr $ac_count + 1` 3835 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3836 # Best one so far, save it but keep looking for a better one 3837 ac_cv_path_GREP="$ac_path_GREP" 3838 ac_path_GREP_max=$ac_count 3839 fi 3840 # 10*(2^10) chars as input seems more than enough 3841 test $ac_count -gt 10 && break 3842 done 3843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3844esac 3845 3846 3847 $ac_path_GREP_found && break 3 3848 done 3849done 3850 3851done 3852IFS=$as_save_IFS 3853 3854 3855fi 3856 3857GREP="$ac_cv_path_GREP" 3858if test -z "$GREP"; then 3859 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3860echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3861 { (exit 1); exit 1; }; } 3862fi 3863 3864else 3865 ac_cv_path_GREP=$GREP 3866fi 3867 3868 3869fi 3870{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3871echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3872 GREP="$ac_cv_path_GREP" 3873 3874 3875{ echo "$as_me:$LINENO: checking for egrep" >&5 3876echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3877if test "${ac_cv_path_EGREP+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879else 3880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3881 then ac_cv_path_EGREP="$GREP -E" 3882 else 3883 # Extract the first word of "egrep" to use in msg output 3884if test -z "$EGREP"; then 3885set dummy egrep; ac_prog_name=$2 3886if test "${ac_cv_path_EGREP+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888else 3889 ac_path_EGREP_found=false 3890# Loop through the user's path and test for each of PROGNAME-LIST 3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_prog in egrep; do 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3900 # Check for GNU ac_path_EGREP and select it if it is found. 3901 # Check for GNU $ac_path_EGREP 3902case `"$ac_path_EGREP" --version 2>&1` in 3903*GNU*) 3904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3905*) 3906 ac_count=0 3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3908 while : 3909 do 3910 cat "conftest.in" "conftest.in" >"conftest.tmp" 3911 mv "conftest.tmp" "conftest.in" 3912 cp "conftest.in" "conftest.nl" 3913 echo 'EGREP' >> "conftest.nl" 3914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3916 ac_count=`expr $ac_count + 1` 3917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3918 # Best one so far, save it but keep looking for a better one 3919 ac_cv_path_EGREP="$ac_path_EGREP" 3920 ac_path_EGREP_max=$ac_count 3921 fi 3922 # 10*(2^10) chars as input seems more than enough 3923 test $ac_count -gt 10 && break 3924 done 3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3926esac 3927 3928 3929 $ac_path_EGREP_found && break 3 3930 done 3931done 3932 3933done 3934IFS=$as_save_IFS 3935 3936 3937fi 3938 3939EGREP="$ac_cv_path_EGREP" 3940if test -z "$EGREP"; then 3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3942echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3943 { (exit 1); exit 1; }; } 3944fi 3945 3946else 3947 ac_cv_path_EGREP=$EGREP 3948fi 3949 3950 3951 fi 3952fi 3953{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3954echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3955 EGREP="$ac_cv_path_EGREP" 3956 3957 3958 3959# Check whether --with-gnu-ld was given. 3960if test "${with_gnu_ld+set}" = set; then 3961 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3962else 3963 with_gnu_ld=no 3964fi 3965 3966ac_prog=ld 3967if test "$GCC" = yes; then 3968 # Check if gcc -print-prog-name=ld gives a path. 3969 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3970echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3971 case $host in 3972 *-*-mingw*) 3973 # gcc leaves a trailing carriage return which upsets mingw 3974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3975 *) 3976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3977 esac 3978 case $ac_prog in 3979 # Accept absolute paths. 3980 [\\/]* | ?:[\\/]*) 3981 re_direlt='/[^/][^/]*/\.\./' 3982 # Canonicalize the pathname of ld 3983 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3985 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3986 done 3987 test -z "$LD" && LD="$ac_prog" 3988 ;; 3989 "") 3990 # If it fails, then pretend we aren't using GCC. 3991 ac_prog=ld 3992 ;; 3993 *) 3994 # If it is relative, then search for the first ld in PATH. 3995 with_gnu_ld=unknown 3996 ;; 3997 esac 3998elif test "$with_gnu_ld" = yes; then 3999 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4000echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4001else 4002 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4003echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4004fi 4005if test "${lt_cv_path_LD+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007else 4008 if test -z "$LD"; then 4009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4010 for ac_dir in $PATH; do 4011 IFS="$lt_save_ifs" 4012 test -z "$ac_dir" && ac_dir=. 4013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4014 lt_cv_path_LD="$ac_dir/$ac_prog" 4015 # Check to see if the program is GNU ld. I'd rather use --version, 4016 # but apparently some variants of GNU ld only accept -v. 4017 # Break only if it was the GNU/non-GNU ld that we prefer. 4018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4019 *GNU* | *'with BFD'*) 4020 test "$with_gnu_ld" != no && break 4021 ;; 4022 *) 4023 test "$with_gnu_ld" != yes && break 4024 ;; 4025 esac 4026 fi 4027 done 4028 IFS="$lt_save_ifs" 4029else 4030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4031fi 4032fi 4033 4034LD="$lt_cv_path_LD" 4035if test -n "$LD"; then 4036 { echo "$as_me:$LINENO: result: $LD" >&5 4037echo "${ECHO_T}$LD" >&6; } 4038else 4039 { echo "$as_me:$LINENO: result: no" >&5 4040echo "${ECHO_T}no" >&6; } 4041fi 4042test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4043echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4044 { (exit 1); exit 1; }; } 4045{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4046echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4047if test "${lt_cv_prog_gnu_ld+set}" = set; then 4048 echo $ECHO_N "(cached) $ECHO_C" >&6 4049else 4050 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4051case `$LD -v 2>&1 </dev/null` in 4052*GNU* | *'with BFD'*) 4053 lt_cv_prog_gnu_ld=yes 4054 ;; 4055*) 4056 lt_cv_prog_gnu_ld=no 4057 ;; 4058esac 4059fi 4060{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4061echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4062with_gnu_ld=$lt_cv_prog_gnu_ld 4063 4064 4065{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4066echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4067if test "${lt_cv_ld_reload_flag+set}" = set; then 4068 echo $ECHO_N "(cached) $ECHO_C" >&6 4069else 4070 lt_cv_ld_reload_flag='-r' 4071fi 4072{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4073echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4074reload_flag=$lt_cv_ld_reload_flag 4075case $reload_flag in 4076"" | " "*) ;; 4077*) reload_flag=" $reload_flag" ;; 4078esac 4079reload_cmds='$LD$reload_flag -o $output$reload_objs' 4080case $host_os in 4081 darwin*) 4082 if test "$GCC" = yes; then 4083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4084 else 4085 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4086 fi 4087 ;; 4088esac 4089 4090{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4091echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4092if test "${lt_cv_path_NM+set}" = set; then 4093 echo $ECHO_N "(cached) $ECHO_C" >&6 4094else 4095 if test -n "$NM"; then 4096 # Let the user override the test. 4097 lt_cv_path_NM="$NM" 4098else 4099 lt_nm_to_check="${ac_tool_prefix}nm" 4100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4101 lt_nm_to_check="$lt_nm_to_check nm" 4102 fi 4103 for lt_tmp_nm in $lt_nm_to_check; do 4104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4106 IFS="$lt_save_ifs" 4107 test -z "$ac_dir" && ac_dir=. 4108 tmp_nm="$ac_dir/$lt_tmp_nm" 4109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4110 # Check to see if the nm accepts a BSD-compat flag. 4111 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4112 # nm: unknown option "B" ignored 4113 # Tru64's nm complains that /dev/null is an invalid object file 4114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4115 */dev/null* | *'Invalid file or object type'*) 4116 lt_cv_path_NM="$tmp_nm -B" 4117 break 4118 ;; 4119 *) 4120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4121 */dev/null*) 4122 lt_cv_path_NM="$tmp_nm -p" 4123 break 4124 ;; 4125 *) 4126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4127 continue # so that we can try to find one that supports BSD flags 4128 ;; 4129 esac 4130 ;; 4131 esac 4132 fi 4133 done 4134 IFS="$lt_save_ifs" 4135 done 4136 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4137fi 4138fi 4139{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4140echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4141NM="$lt_cv_path_NM" 4142 4143{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4144echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4145LN_S=$as_ln_s 4146if test "$LN_S" = "ln -s"; then 4147 { echo "$as_me:$LINENO: result: yes" >&5 4148echo "${ECHO_T}yes" >&6; } 4149else 4150 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4151echo "${ECHO_T}no, using $LN_S" >&6; } 4152fi 4153 4154{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4155echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4156if test "${lt_cv_deplibs_check_method+set}" = set; then 4157 echo $ECHO_N "(cached) $ECHO_C" >&6 4158else 4159 lt_cv_file_magic_cmd='$MAGIC_CMD' 4160lt_cv_file_magic_test_file= 4161lt_cv_deplibs_check_method='unknown' 4162# Need to set the preceding variable on all platforms that support 4163# interlibrary dependencies. 4164# 'none' -- dependencies not supported. 4165# `unknown' -- same as none, but documents that we really don't know. 4166# 'pass_all' -- all dependencies passed with no checks. 4167# 'test_compile' -- check by making test program. 4168# 'file_magic [[regex]]' -- check by looking for files in library path 4169# which responds to the $file_magic_cmd with a given extended regex. 4170# If you have `file' or equivalent on your system and you're not sure 4171# whether `pass_all' will *always* work, you probably want this one. 4172 4173case $host_os in 4174aix4* | aix5*) 4175 lt_cv_deplibs_check_method=pass_all 4176 ;; 4177 4178beos*) 4179 lt_cv_deplibs_check_method=pass_all 4180 ;; 4181 4182bsdi[45]*) 4183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4184 lt_cv_file_magic_cmd='/usr/bin/file -L' 4185 lt_cv_file_magic_test_file=/shlib/libc.so 4186 ;; 4187 4188cygwin*) 4189 # func_win32_libid is a shell function defined in ltmain.sh 4190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4191 lt_cv_file_magic_cmd='func_win32_libid' 4192 ;; 4193 4194mingw* | pw32*) 4195 # Base MSYS/MinGW do not provide the 'file' command needed by 4196 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4197 # unless we find 'file', for example because we are cross-compiling. 4198 if ( file / ) >/dev/null 2>&1; then 4199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4200 lt_cv_file_magic_cmd='func_win32_libid' 4201 else 4202 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4203 lt_cv_file_magic_cmd='$OBJDUMP -f' 4204 fi 4205 ;; 4206 4207darwin* | rhapsody*) 4208 lt_cv_deplibs_check_method=pass_all 4209 ;; 4210 4211freebsd* | dragonfly*) 4212 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4213 case $host_cpu in 4214 i*86 ) 4215 # Not sure whether the presence of OpenBSD here was a mistake. 4216 # Let's accept both of them until this is cleared up. 4217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4218 lt_cv_file_magic_cmd=/usr/bin/file 4219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4220 ;; 4221 esac 4222 else 4223 lt_cv_deplibs_check_method=pass_all 4224 fi 4225 ;; 4226 4227gnu*) 4228 lt_cv_deplibs_check_method=pass_all 4229 ;; 4230 4231hpux10.20* | hpux11*) 4232 lt_cv_file_magic_cmd=/usr/bin/file 4233 case $host_cpu in 4234 ia64*) 4235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4237 ;; 4238 hppa*64*) 4239 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]' 4240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4241 ;; 4242 *) 4243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4244 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4245 ;; 4246 esac 4247 ;; 4248 4249interix[3-9]*) 4250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4252 ;; 4253 4254irix5* | irix6* | nonstopux*) 4255 case $LD in 4256 *-32|*"-32 ") libmagic=32-bit;; 4257 *-n32|*"-n32 ") libmagic=N32;; 4258 *-64|*"-64 ") libmagic=64-bit;; 4259 *) libmagic=never-match;; 4260 esac 4261 lt_cv_deplibs_check_method=pass_all 4262 ;; 4263 4264# This must be Linux ELF. 4265linux* | k*bsd*-gnu) 4266 lt_cv_deplibs_check_method=pass_all 4267 ;; 4268 4269netbsd*) 4270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4272 else 4273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4274 fi 4275 ;; 4276 4277newos6*) 4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4279 lt_cv_file_magic_cmd=/usr/bin/file 4280 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4281 ;; 4282 4283nto-qnx*) 4284 lt_cv_deplibs_check_method=unknown 4285 ;; 4286 4287openbsd*) 4288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4290 else 4291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4292 fi 4293 ;; 4294 4295osf3* | osf4* | osf5*) 4296 lt_cv_deplibs_check_method=pass_all 4297 ;; 4298 4299rdos*) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 4303solaris*) 4304 lt_cv_deplibs_check_method=pass_all 4305 ;; 4306 4307sysv4 | sysv4.3*) 4308 case $host_vendor in 4309 motorola) 4310 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]' 4311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4312 ;; 4313 ncr) 4314 lt_cv_deplibs_check_method=pass_all 4315 ;; 4316 sequent) 4317 lt_cv_file_magic_cmd='/bin/file' 4318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4319 ;; 4320 sni) 4321 lt_cv_file_magic_cmd='/bin/file' 4322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4323 lt_cv_file_magic_test_file=/lib/libc.so 4324 ;; 4325 siemens) 4326 lt_cv_deplibs_check_method=pass_all 4327 ;; 4328 pc) 4329 lt_cv_deplibs_check_method=pass_all 4330 ;; 4331 esac 4332 ;; 4333 4334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4335 lt_cv_deplibs_check_method=pass_all 4336 ;; 4337esac 4338 4339fi 4340{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4342file_magic_cmd=$lt_cv_file_magic_cmd 4343deplibs_check_method=$lt_cv_deplibs_check_method 4344test -z "$deplibs_check_method" && deplibs_check_method=unknown 4345 4346 4347 4348 4349# If no C compiler was specified, use CC. 4350LTCC=${LTCC-"$CC"} 4351 4352# If no C compiler flags were specified, use CFLAGS. 4353LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4354 4355# Allow CC to be a program name with arguments. 4356compiler=$CC 4357 4358 4359# Check whether --enable-libtool-lock was given. 4360if test "${enable_libtool_lock+set}" = set; then 4361 enableval=$enable_libtool_lock; 4362fi 4363 4364test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4365 4366# Some flags need to be propagated to the compiler or linker for good 4367# libtool support. 4368case $host in 4369ia64-*-hpux*) 4370 # Find out which ABI we are using. 4371 echo 'int i;' > conftest.$ac_ext 4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4373 (eval $ac_compile) 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; then 4377 case `/usr/bin/file conftest.$ac_objext` in 4378 *ELF-32*) 4379 HPUX_IA64_MODE="32" 4380 ;; 4381 *ELF-64*) 4382 HPUX_IA64_MODE="64" 4383 ;; 4384 esac 4385 fi 4386 rm -rf conftest* 4387 ;; 4388*-*-irix6*) 4389 # Find out which ABI we are using. 4390 echo '#line 4390 "configure"' > conftest.$ac_ext 4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4392 (eval $ac_compile) 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); }; then 4396 if test "$lt_cv_prog_gnu_ld" = yes; then 4397 case `/usr/bin/file conftest.$ac_objext` in 4398 *32-bit*) 4399 LD="${LD-ld} -melf32bsmip" 4400 ;; 4401 *N32*) 4402 LD="${LD-ld} -melf32bmipn32" 4403 ;; 4404 *64-bit*) 4405 LD="${LD-ld} -melf64bmip" 4406 ;; 4407 esac 4408 else 4409 case `/usr/bin/file conftest.$ac_objext` in 4410 *32-bit*) 4411 LD="${LD-ld} -32" 4412 ;; 4413 *N32*) 4414 LD="${LD-ld} -n32" 4415 ;; 4416 *64-bit*) 4417 LD="${LD-ld} -64" 4418 ;; 4419 esac 4420 fi 4421 fi 4422 rm -rf conftest* 4423 ;; 4424 4425x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4426s390*-*linux*|sparc*-*linux*) 4427 # Find out which ABI we are using. 4428 echo 'int i;' > conftest.$ac_ext 4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4430 (eval $ac_compile) 2>&5 4431 ac_status=$? 4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4433 (exit $ac_status); }; then 4434 case `/usr/bin/file conftest.o` in 4435 *32-bit*) 4436 case $host in 4437 x86_64-*kfreebsd*-gnu) 4438 LD="${LD-ld} -m elf_i386_fbsd" 4439 ;; 4440 x86_64-*linux*) 4441 LD="${LD-ld} -m elf_i386" 4442 ;; 4443 ppc64-*linux*|powerpc64-*linux*) 4444 LD="${LD-ld} -m elf32ppclinux" 4445 ;; 4446 s390x-*linux*) 4447 LD="${LD-ld} -m elf_s390" 4448 ;; 4449 sparc64-*linux*) 4450 LD="${LD-ld} -m elf32_sparc" 4451 ;; 4452 esac 4453 ;; 4454 *64-bit*) 4455 libsuff=64 4456 case $host in 4457 x86_64-*kfreebsd*-gnu) 4458 LD="${LD-ld} -m elf_x86_64_fbsd" 4459 ;; 4460 x86_64-*linux*) 4461 LD="${LD-ld} -m elf_x86_64" 4462 ;; 4463 ppc*-*linux*|powerpc*-*linux*) 4464 LD="${LD-ld} -m elf64ppc" 4465 ;; 4466 s390*-*linux*) 4467 LD="${LD-ld} -m elf64_s390" 4468 ;; 4469 sparc*-*linux*) 4470 LD="${LD-ld} -m elf64_sparc" 4471 ;; 4472 esac 4473 ;; 4474 esac 4475 fi 4476 rm -rf conftest* 4477 ;; 4478 4479*-*-sco3.2v5*) 4480 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4481 SAVE_CFLAGS="$CFLAGS" 4482 CFLAGS="$CFLAGS -belf" 4483 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4484echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4485if test "${lt_cv_cc_needs_belf+set}" = set; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487else 4488 ac_ext=c 4489ac_cpp='$CPP $CPPFLAGS' 4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4492ac_compiler_gnu=$ac_cv_c_compiler_gnu 4493 4494 cat >conftest.$ac_ext <<_ACEOF 4495/* confdefs.h. */ 4496_ACEOF 4497cat confdefs.h >>conftest.$ac_ext 4498cat >>conftest.$ac_ext <<_ACEOF 4499/* end confdefs.h. */ 4500 4501int 4502main () 4503{ 4504 4505 ; 4506 return 0; 4507} 4508_ACEOF 4509rm -f conftest.$ac_objext conftest$ac_exeext 4510if { (ac_try="$ac_link" 4511case "(($ac_try" in 4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4513 *) ac_try_echo=$ac_try;; 4514esac 4515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4516 (eval "$ac_link") 2>conftest.er1 4517 ac_status=$? 4518 grep -v '^ *+' conftest.er1 >conftest.err 4519 rm -f conftest.er1 4520 cat conftest.err >&5 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } && { 4523 test -z "$ac_c_werror_flag" || 4524 test ! -s conftest.err 4525 } && test -s conftest$ac_exeext && 4526 $as_test_x conftest$ac_exeext; then 4527 lt_cv_cc_needs_belf=yes 4528else 4529 echo "$as_me: failed program was:" >&5 4530sed 's/^/| /' conftest.$ac_ext >&5 4531 4532 lt_cv_cc_needs_belf=no 4533fi 4534 4535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4536 conftest$ac_exeext conftest.$ac_ext 4537 ac_ext=c 4538ac_cpp='$CPP $CPPFLAGS' 4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4541ac_compiler_gnu=$ac_cv_c_compiler_gnu 4542 4543fi 4544{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4545echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4548 CFLAGS="$SAVE_CFLAGS" 4549 fi 4550 ;; 4551sparc*-*solaris*) 4552 # Find out which ABI we are using. 4553 echo 'int i;' > conftest.$ac_ext 4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4555 (eval $ac_compile) 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); }; then 4559 case `/usr/bin/file conftest.o` in 4560 *64-bit*) 4561 case $lt_cv_prog_gnu_ld in 4562 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4563 *) LD="${LD-ld} -64" ;; 4564 esac 4565 ;; 4566 esac 4567 fi 4568 rm -rf conftest* 4569 ;; 4570 4571 4572esac 4573 4574need_locks="$enable_libtool_lock" 4575 4576 4577ac_ext=c 4578ac_cpp='$CPP $CPPFLAGS' 4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4581ac_compiler_gnu=$ac_cv_c_compiler_gnu 4582{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4583echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4584# On Suns, sometimes $CPP names a directory. 4585if test -n "$CPP" && test -d "$CPP"; then 4586 CPP= 4587fi 4588if test -z "$CPP"; then 4589 if test "${ac_cv_prog_CPP+set}" = set; then 4590 echo $ECHO_N "(cached) $ECHO_C" >&6 4591else 4592 # Double quotes because CPP needs to be expanded 4593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4594 do 4595 ac_preproc_ok=false 4596for ac_c_preproc_warn_flag in '' yes 4597do 4598 # Use a header file that comes with gcc, so configuring glibc 4599 # with a fresh cross-compiler works. 4600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4601 # <limits.h> exists even on freestanding compilers. 4602 # On the NeXT, cc -E runs the code through the compiler's parser, 4603 # not just through cpp. "Syntax error" is here to catch this case. 4604 cat >conftest.$ac_ext <<_ACEOF 4605/* confdefs.h. */ 4606_ACEOF 4607cat confdefs.h >>conftest.$ac_ext 4608cat >>conftest.$ac_ext <<_ACEOF 4609/* end confdefs.h. */ 4610#ifdef __STDC__ 4611# include <limits.h> 4612#else 4613# include <assert.h> 4614#endif 4615 Syntax error 4616_ACEOF 4617if { (ac_try="$ac_cpp conftest.$ac_ext" 4618case "(($ac_try" in 4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4620 *) ac_try_echo=$ac_try;; 4621esac 4622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4624 ac_status=$? 4625 grep -v '^ *+' conftest.er1 >conftest.err 4626 rm -f conftest.er1 4627 cat conftest.err >&5 4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4629 (exit $ac_status); } >/dev/null && { 4630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4631 test ! -s conftest.err 4632 }; then 4633 : 4634else 4635 echo "$as_me: failed program was:" >&5 4636sed 's/^/| /' conftest.$ac_ext >&5 4637 4638 # Broken: fails on valid input. 4639continue 4640fi 4641 4642rm -f conftest.err conftest.$ac_ext 4643 4644 # OK, works on sane cases. Now check whether nonexistent headers 4645 # can be detected and how. 4646 cat >conftest.$ac_ext <<_ACEOF 4647/* confdefs.h. */ 4648_ACEOF 4649cat confdefs.h >>conftest.$ac_ext 4650cat >>conftest.$ac_ext <<_ACEOF 4651/* end confdefs.h. */ 4652#include <ac_nonexistent.h> 4653_ACEOF 4654if { (ac_try="$ac_cpp conftest.$ac_ext" 4655case "(($ac_try" in 4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4657 *) ac_try_echo=$ac_try;; 4658esac 4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4661 ac_status=$? 4662 grep -v '^ *+' conftest.er1 >conftest.err 4663 rm -f conftest.er1 4664 cat conftest.err >&5 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); } >/dev/null && { 4667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4668 test ! -s conftest.err 4669 }; then 4670 # Broken: success on invalid input. 4671continue 4672else 4673 echo "$as_me: failed program was:" >&5 4674sed 's/^/| /' conftest.$ac_ext >&5 4675 4676 # Passes both tests. 4677ac_preproc_ok=: 4678break 4679fi 4680 4681rm -f conftest.err conftest.$ac_ext 4682 4683done 4684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4685rm -f conftest.err conftest.$ac_ext 4686if $ac_preproc_ok; then 4687 break 4688fi 4689 4690 done 4691 ac_cv_prog_CPP=$CPP 4692 4693fi 4694 CPP=$ac_cv_prog_CPP 4695else 4696 ac_cv_prog_CPP=$CPP 4697fi 4698{ echo "$as_me:$LINENO: result: $CPP" >&5 4699echo "${ECHO_T}$CPP" >&6; } 4700ac_preproc_ok=false 4701for ac_c_preproc_warn_flag in '' yes 4702do 4703 # Use a header file that comes with gcc, so configuring glibc 4704 # with a fresh cross-compiler works. 4705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4706 # <limits.h> exists even on freestanding compilers. 4707 # On the NeXT, cc -E runs the code through the compiler's parser, 4708 # not just through cpp. "Syntax error" is here to catch this case. 4709 cat >conftest.$ac_ext <<_ACEOF 4710/* confdefs.h. */ 4711_ACEOF 4712cat confdefs.h >>conftest.$ac_ext 4713cat >>conftest.$ac_ext <<_ACEOF 4714/* end confdefs.h. */ 4715#ifdef __STDC__ 4716# include <limits.h> 4717#else 4718# include <assert.h> 4719#endif 4720 Syntax error 4721_ACEOF 4722if { (ac_try="$ac_cpp conftest.$ac_ext" 4723case "(($ac_try" in 4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4725 *) ac_try_echo=$ac_try;; 4726esac 4727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4729 ac_status=$? 4730 grep -v '^ *+' conftest.er1 >conftest.err 4731 rm -f conftest.er1 4732 cat conftest.err >&5 4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4734 (exit $ac_status); } >/dev/null && { 4735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4736 test ! -s conftest.err 4737 }; then 4738 : 4739else 4740 echo "$as_me: failed program was:" >&5 4741sed 's/^/| /' conftest.$ac_ext >&5 4742 4743 # Broken: fails on valid input. 4744continue 4745fi 4746 4747rm -f conftest.err conftest.$ac_ext 4748 4749 # OK, works on sane cases. Now check whether nonexistent headers 4750 # can be detected and how. 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757#include <ac_nonexistent.h> 4758_ACEOF 4759if { (ac_try="$ac_cpp conftest.$ac_ext" 4760case "(($ac_try" in 4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4762 *) ac_try_echo=$ac_try;; 4763esac 4764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4766 ac_status=$? 4767 grep -v '^ *+' conftest.er1 >conftest.err 4768 rm -f conftest.er1 4769 cat conftest.err >&5 4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } >/dev/null && { 4772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4773 test ! -s conftest.err 4774 }; then 4775 # Broken: success on invalid input. 4776continue 4777else 4778 echo "$as_me: failed program was:" >&5 4779sed 's/^/| /' conftest.$ac_ext >&5 4780 4781 # Passes both tests. 4782ac_preproc_ok=: 4783break 4784fi 4785 4786rm -f conftest.err conftest.$ac_ext 4787 4788done 4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4790rm -f conftest.err conftest.$ac_ext 4791if $ac_preproc_ok; then 4792 : 4793else 4794 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4795See \`config.log' for more details." >&5 4796echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4797See \`config.log' for more details." >&2;} 4798 { (exit 1); exit 1; }; } 4799fi 4800 4801ac_ext=c 4802ac_cpp='$CPP $CPPFLAGS' 4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4805ac_compiler_gnu=$ac_cv_c_compiler_gnu 4806 4807 4808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4810if test "${ac_cv_header_stdc+set}" = set; then 4811 echo $ECHO_N "(cached) $ECHO_C" >&6 4812else 4813 cat >conftest.$ac_ext <<_ACEOF 4814/* confdefs.h. */ 4815_ACEOF 4816cat confdefs.h >>conftest.$ac_ext 4817cat >>conftest.$ac_ext <<_ACEOF 4818/* end confdefs.h. */ 4819#include <stdlib.h> 4820#include <stdarg.h> 4821#include <string.h> 4822#include <float.h> 4823 4824int 4825main () 4826{ 4827 4828 ; 4829 return 0; 4830} 4831_ACEOF 4832rm -f conftest.$ac_objext 4833if { (ac_try="$ac_compile" 4834case "(($ac_try" in 4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4836 *) ac_try_echo=$ac_try;; 4837esac 4838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4839 (eval "$ac_compile") 2>conftest.er1 4840 ac_status=$? 4841 grep -v '^ *+' conftest.er1 >conftest.err 4842 rm -f conftest.er1 4843 cat conftest.err >&5 4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4845 (exit $ac_status); } && { 4846 test -z "$ac_c_werror_flag" || 4847 test ! -s conftest.err 4848 } && test -s conftest.$ac_objext; then 4849 ac_cv_header_stdc=yes 4850else 4851 echo "$as_me: failed program was:" >&5 4852sed 's/^/| /' conftest.$ac_ext >&5 4853 4854 ac_cv_header_stdc=no 4855fi 4856 4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4858 4859if test $ac_cv_header_stdc = yes; then 4860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4861 cat >conftest.$ac_ext <<_ACEOF 4862/* confdefs.h. */ 4863_ACEOF 4864cat confdefs.h >>conftest.$ac_ext 4865cat >>conftest.$ac_ext <<_ACEOF 4866/* end confdefs.h. */ 4867#include <string.h> 4868 4869_ACEOF 4870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4871 $EGREP "memchr" >/dev/null 2>&1; then 4872 : 4873else 4874 ac_cv_header_stdc=no 4875fi 4876rm -f conftest* 4877 4878fi 4879 4880if test $ac_cv_header_stdc = yes; then 4881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4882 cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888#include <stdlib.h> 4889 4890_ACEOF 4891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4892 $EGREP "free" >/dev/null 2>&1; then 4893 : 4894else 4895 ac_cv_header_stdc=no 4896fi 4897rm -f conftest* 4898 4899fi 4900 4901if test $ac_cv_header_stdc = yes; then 4902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4903 if test "$cross_compiling" = yes; then 4904 : 4905else 4906 cat >conftest.$ac_ext <<_ACEOF 4907/* confdefs.h. */ 4908_ACEOF 4909cat confdefs.h >>conftest.$ac_ext 4910cat >>conftest.$ac_ext <<_ACEOF 4911/* end confdefs.h. */ 4912#include <ctype.h> 4913#include <stdlib.h> 4914#if ((' ' & 0x0FF) == 0x020) 4915# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4916# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4917#else 4918# define ISLOWER(c) \ 4919 (('a' <= (c) && (c) <= 'i') \ 4920 || ('j' <= (c) && (c) <= 'r') \ 4921 || ('s' <= (c) && (c) <= 'z')) 4922# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4923#endif 4924 4925#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4926int 4927main () 4928{ 4929 int i; 4930 for (i = 0; i < 256; i++) 4931 if (XOR (islower (i), ISLOWER (i)) 4932 || toupper (i) != TOUPPER (i)) 4933 return 2; 4934 return 0; 4935} 4936_ACEOF 4937rm -f conftest$ac_exeext 4938if { (ac_try="$ac_link" 4939case "(($ac_try" in 4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4941 *) ac_try_echo=$ac_try;; 4942esac 4943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4944 (eval "$ac_link") 2>&5 4945 ac_status=$? 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4948 { (case "(($ac_try" in 4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4950 *) ac_try_echo=$ac_try;; 4951esac 4952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4953 (eval "$ac_try") 2>&5 4954 ac_status=$? 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); }; }; then 4957 : 4958else 4959 echo "$as_me: program exited with status $ac_status" >&5 4960echo "$as_me: failed program was:" >&5 4961sed 's/^/| /' conftest.$ac_ext >&5 4962 4963( exit $ac_status ) 4964ac_cv_header_stdc=no 4965fi 4966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4967fi 4968 4969 4970fi 4971fi 4972{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4973echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4974if test $ac_cv_header_stdc = yes; then 4975 4976cat >>confdefs.h <<\_ACEOF 4977#define STDC_HEADERS 1 4978_ACEOF 4979 4980fi 4981 4982# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4993 inttypes.h stdint.h unistd.h 4994do 4995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4996{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4999 echo $ECHO_N "(cached) $ECHO_C" >&6 5000else 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007$ac_includes_default 5008 5009#include <$ac_header> 5010_ACEOF 5011rm -f conftest.$ac_objext 5012if { (ac_try="$ac_compile" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_compile") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest.$ac_objext; then 5028 eval "$as_ac_Header=yes" 5029else 5030 echo "$as_me: failed program was:" >&5 5031sed 's/^/| /' conftest.$ac_ext >&5 5032 5033 eval "$as_ac_Header=no" 5034fi 5035 5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5037fi 5038ac_res=`eval echo '${'$as_ac_Header'}'` 5039 { echo "$as_me:$LINENO: result: $ac_res" >&5 5040echo "${ECHO_T}$ac_res" >&6; } 5041if test `eval echo '${'$as_ac_Header'}'` = yes; then 5042 cat >>confdefs.h <<_ACEOF 5043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5044_ACEOF 5045 5046fi 5047 5048done 5049 5050 5051 5052for ac_header in dlfcn.h 5053do 5054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5056 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5059 echo $ECHO_N "(cached) $ECHO_C" >&6 5060fi 5061ac_res=`eval echo '${'$as_ac_Header'}'` 5062 { echo "$as_me:$LINENO: result: $ac_res" >&5 5063echo "${ECHO_T}$ac_res" >&6; } 5064else 5065 # Is the header compilable? 5066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5068cat >conftest.$ac_ext <<_ACEOF 5069/* confdefs.h. */ 5070_ACEOF 5071cat confdefs.h >>conftest.$ac_ext 5072cat >>conftest.$ac_ext <<_ACEOF 5073/* end confdefs.h. */ 5074$ac_includes_default 5075#include <$ac_header> 5076_ACEOF 5077rm -f conftest.$ac_objext 5078if { (ac_try="$ac_compile" 5079case "(($ac_try" in 5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5081 *) ac_try_echo=$ac_try;; 5082esac 5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5084 (eval "$ac_compile") 2>conftest.er1 5085 ac_status=$? 5086 grep -v '^ *+' conftest.er1 >conftest.err 5087 rm -f conftest.er1 5088 cat conftest.err >&5 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); } && { 5091 test -z "$ac_c_werror_flag" || 5092 test ! -s conftest.err 5093 } && test -s conftest.$ac_objext; then 5094 ac_header_compiler=yes 5095else 5096 echo "$as_me: failed program was:" >&5 5097sed 's/^/| /' conftest.$ac_ext >&5 5098 5099 ac_header_compiler=no 5100fi 5101 5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5104echo "${ECHO_T}$ac_header_compiler" >&6; } 5105 5106# Is the header present? 5107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5109cat >conftest.$ac_ext <<_ACEOF 5110/* confdefs.h. */ 5111_ACEOF 5112cat confdefs.h >>conftest.$ac_ext 5113cat >>conftest.$ac_ext <<_ACEOF 5114/* end confdefs.h. */ 5115#include <$ac_header> 5116_ACEOF 5117if { (ac_try="$ac_cpp conftest.$ac_ext" 5118case "(($ac_try" in 5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5120 *) ac_try_echo=$ac_try;; 5121esac 5122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5124 ac_status=$? 5125 grep -v '^ *+' conftest.er1 >conftest.err 5126 rm -f conftest.er1 5127 cat conftest.err >&5 5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5129 (exit $ac_status); } >/dev/null && { 5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5131 test ! -s conftest.err 5132 }; then 5133 ac_header_preproc=yes 5134else 5135 echo "$as_me: failed program was:" >&5 5136sed 's/^/| /' conftest.$ac_ext >&5 5137 5138 ac_header_preproc=no 5139fi 5140 5141rm -f conftest.err conftest.$ac_ext 5142{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5143echo "${ECHO_T}$ac_header_preproc" >&6; } 5144 5145# So? What about this header? 5146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5147 yes:no: ) 5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5152 ac_header_preproc=yes 5153 ;; 5154 no:yes:* ) 5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5158echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5162echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5167 ( cat <<\_ASBOX 5168## ---------------------------------------------------------------------- ## 5169## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5170## ---------------------------------------------------------------------- ## 5171_ASBOX 5172 ) | sed "s/^/$as_me: WARNING: /" >&2 5173 ;; 5174esac 5175{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5178 echo $ECHO_N "(cached) $ECHO_C" >&6 5179else 5180 eval "$as_ac_Header=\$ac_header_preproc" 5181fi 5182ac_res=`eval echo '${'$as_ac_Header'}'` 5183 { echo "$as_me:$LINENO: result: $ac_res" >&5 5184echo "${ECHO_T}$ac_res" >&6; } 5185 5186fi 5187if test `eval echo '${'$as_ac_Header'}'` = yes; then 5188 cat >>confdefs.h <<_ACEOF 5189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5190_ACEOF 5191 5192fi 5193 5194done 5195 5196ac_ext=cpp 5197ac_cpp='$CXXCPP $CPPFLAGS' 5198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5201if test -z "$CXX"; then 5202 if test -n "$CCC"; then 5203 CXX=$CCC 5204 else 5205 if test -n "$ac_tool_prefix"; then 5206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5207 do 5208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5209set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5210{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5212if test "${ac_cv_prog_CXX+set}" = set; then 5213 echo $ECHO_N "(cached) $ECHO_C" >&6 5214else 5215 if test -n "$CXX"; then 5216 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235CXX=$ac_cv_prog_CXX 5236if test -n "$CXX"; then 5237 { echo "$as_me:$LINENO: result: $CXX" >&5 5238echo "${ECHO_T}$CXX" >&6; } 5239else 5240 { echo "$as_me:$LINENO: result: no" >&5 5241echo "${ECHO_T}no" >&6; } 5242fi 5243 5244 5245 test -n "$CXX" && break 5246 done 5247fi 5248if test -z "$CXX"; then 5249 ac_ct_CXX=$CXX 5250 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5251do 5252 # Extract the first word of "$ac_prog", so it can be a program name with args. 5253set dummy $ac_prog; ac_word=$2 5254{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5256if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258else 5259 if test -n "$ac_ct_CXX"; then 5260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5261else 5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263for as_dir in $PATH 5264do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5269 ac_cv_prog_ac_ct_CXX="$ac_prog" 5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273done 5274done 5275IFS=$as_save_IFS 5276 5277fi 5278fi 5279ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5280if test -n "$ac_ct_CXX"; then 5281 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5282echo "${ECHO_T}$ac_ct_CXX" >&6; } 5283else 5284 { echo "$as_me:$LINENO: result: no" >&5 5285echo "${ECHO_T}no" >&6; } 5286fi 5287 5288 5289 test -n "$ac_ct_CXX" && break 5290done 5291 5292 if test "x$ac_ct_CXX" = x; then 5293 CXX="g++" 5294 else 5295 case $cross_compiling:$ac_tool_warned in 5296yes:) 5297{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5298whose name does not start with the host triplet. If you think this 5299configuration is useful to you, please write to autoconf@gnu.org." >&5 5300echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5301whose name does not start with the host triplet. If you think this 5302configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5303ac_tool_warned=yes ;; 5304esac 5305 CXX=$ac_ct_CXX 5306 fi 5307fi 5308 5309 fi 5310fi 5311# Provide some information about the compiler. 5312echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5313ac_compiler=`set X $ac_compile; echo $2` 5314{ (ac_try="$ac_compiler --version >&5" 5315case "(($ac_try" in 5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5317 *) ac_try_echo=$ac_try;; 5318esac 5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5320 (eval "$ac_compiler --version >&5") 2>&5 5321 ac_status=$? 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); } 5324{ (ac_try="$ac_compiler -v >&5" 5325case "(($ac_try" in 5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5327 *) ac_try_echo=$ac_try;; 5328esac 5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5330 (eval "$ac_compiler -v >&5") 2>&5 5331 ac_status=$? 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } 5334{ (ac_try="$ac_compiler -V >&5" 5335case "(($ac_try" in 5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5337 *) ac_try_echo=$ac_try;; 5338esac 5339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5340 (eval "$ac_compiler -V >&5") 2>&5 5341 ac_status=$? 5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5343 (exit $ac_status); } 5344 5345{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5346echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5347if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5348 echo $ECHO_N "(cached) $ECHO_C" >&6 5349else 5350 cat >conftest.$ac_ext <<_ACEOF 5351/* confdefs.h. */ 5352_ACEOF 5353cat confdefs.h >>conftest.$ac_ext 5354cat >>conftest.$ac_ext <<_ACEOF 5355/* end confdefs.h. */ 5356 5357int 5358main () 5359{ 5360#ifndef __GNUC__ 5361 choke me 5362#endif 5363 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368rm -f conftest.$ac_objext 5369if { (ac_try="$ac_compile" 5370case "(($ac_try" in 5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5372 *) ac_try_echo=$ac_try;; 5373esac 5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5375 (eval "$ac_compile") 2>conftest.er1 5376 ac_status=$? 5377 grep -v '^ *+' conftest.er1 >conftest.err 5378 rm -f conftest.er1 5379 cat conftest.err >&5 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && { 5382 test -z "$ac_cxx_werror_flag" || 5383 test ! -s conftest.err 5384 } && test -s conftest.$ac_objext; then 5385 ac_compiler_gnu=yes 5386else 5387 echo "$as_me: failed program was:" >&5 5388sed 's/^/| /' conftest.$ac_ext >&5 5389 5390 ac_compiler_gnu=no 5391fi 5392 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5395 5396fi 5397{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5398echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5399GXX=`test $ac_compiler_gnu = yes && echo yes` 5400ac_test_CXXFLAGS=${CXXFLAGS+set} 5401ac_save_CXXFLAGS=$CXXFLAGS 5402{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5403echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5404if test "${ac_cv_prog_cxx_g+set}" = set; then 5405 echo $ECHO_N "(cached) $ECHO_C" >&6 5406else 5407 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5408 ac_cxx_werror_flag=yes 5409 ac_cv_prog_cxx_g=no 5410 CXXFLAGS="-g" 5411 cat >conftest.$ac_ext <<_ACEOF 5412/* confdefs.h. */ 5413_ACEOF 5414cat confdefs.h >>conftest.$ac_ext 5415cat >>conftest.$ac_ext <<_ACEOF 5416/* end confdefs.h. */ 5417 5418int 5419main () 5420{ 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426rm -f conftest.$ac_objext 5427if { (ac_try="$ac_compile" 5428case "(($ac_try" in 5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5430 *) ac_try_echo=$ac_try;; 5431esac 5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5433 (eval "$ac_compile") 2>conftest.er1 5434 ac_status=$? 5435 grep -v '^ *+' conftest.er1 >conftest.err 5436 rm -f conftest.er1 5437 cat conftest.err >&5 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); } && { 5440 test -z "$ac_cxx_werror_flag" || 5441 test ! -s conftest.err 5442 } && test -s conftest.$ac_objext; then 5443 ac_cv_prog_cxx_g=yes 5444else 5445 echo "$as_me: failed program was:" >&5 5446sed 's/^/| /' conftest.$ac_ext >&5 5447 5448 CXXFLAGS="" 5449 cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455 5456int 5457main () 5458{ 5459 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464rm -f conftest.$ac_objext 5465if { (ac_try="$ac_compile" 5466case "(($ac_try" in 5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5468 *) ac_try_echo=$ac_try;; 5469esac 5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5471 (eval "$ac_compile") 2>conftest.er1 5472 ac_status=$? 5473 grep -v '^ *+' conftest.er1 >conftest.err 5474 rm -f conftest.er1 5475 cat conftest.err >&5 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); } && { 5478 test -z "$ac_cxx_werror_flag" || 5479 test ! -s conftest.err 5480 } && test -s conftest.$ac_objext; then 5481 : 5482else 5483 echo "$as_me: failed program was:" >&5 5484sed 's/^/| /' conftest.$ac_ext >&5 5485 5486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5487 CXXFLAGS="-g" 5488 cat >conftest.$ac_ext <<_ACEOF 5489/* confdefs.h. */ 5490_ACEOF 5491cat confdefs.h >>conftest.$ac_ext 5492cat >>conftest.$ac_ext <<_ACEOF 5493/* end confdefs.h. */ 5494 5495int 5496main () 5497{ 5498 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503rm -f conftest.$ac_objext 5504if { (ac_try="$ac_compile" 5505case "(($ac_try" in 5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5507 *) ac_try_echo=$ac_try;; 5508esac 5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5510 (eval "$ac_compile") 2>conftest.er1 5511 ac_status=$? 5512 grep -v '^ *+' conftest.er1 >conftest.err 5513 rm -f conftest.er1 5514 cat conftest.err >&5 5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5516 (exit $ac_status); } && { 5517 test -z "$ac_cxx_werror_flag" || 5518 test ! -s conftest.err 5519 } && test -s conftest.$ac_objext; then 5520 ac_cv_prog_cxx_g=yes 5521else 5522 echo "$as_me: failed program was:" >&5 5523sed 's/^/| /' conftest.$ac_ext >&5 5524 5525 5526fi 5527 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5529fi 5530 5531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5532fi 5533 5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5536fi 5537{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5538echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5539if test "$ac_test_CXXFLAGS" = set; then 5540 CXXFLAGS=$ac_save_CXXFLAGS 5541elif test $ac_cv_prog_cxx_g = yes; then 5542 if test "$GXX" = yes; then 5543 CXXFLAGS="-g -O2" 5544 else 5545 CXXFLAGS="-g" 5546 fi 5547else 5548 if test "$GXX" = yes; then 5549 CXXFLAGS="-O2" 5550 else 5551 CXXFLAGS= 5552 fi 5553fi 5554ac_ext=cpp 5555ac_cpp='$CXXCPP $CPPFLAGS' 5556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5559 5560depcc="$CXX" am_compiler_list= 5561 5562{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5563echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5564if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5565 echo $ECHO_N "(cached) $ECHO_C" >&6 5566else 5567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5568 # We make a subdir and do the tests there. Otherwise we can end up 5569 # making bogus files that we don't know about and never remove. For 5570 # instance it was reported that on HP-UX the gcc test will end up 5571 # making a dummy file named `D' -- because `-MD' means `put the output 5572 # in D'. 5573 mkdir conftest.dir 5574 # Copy depcomp to subdir because otherwise we won't find it if we're 5575 # using a relative directory. 5576 cp "$am_depcomp" conftest.dir 5577 cd conftest.dir 5578 # We will build objects and dependencies in a subdirectory because 5579 # it helps to detect inapplicable dependency modes. For instance 5580 # both Tru64's cc and ICC support -MD to output dependencies as a 5581 # side effect of compilation, but ICC will put the dependencies in 5582 # the current directory while Tru64 will put them in the object 5583 # directory. 5584 mkdir sub 5585 5586 am_cv_CXX_dependencies_compiler_type=none 5587 if test "$am_compiler_list" = ""; then 5588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5589 fi 5590 for depmode in $am_compiler_list; do 5591 # Setup a source with many dependencies, because some compilers 5592 # like to wrap large dependency lists on column 80 (with \), and 5593 # we should not choose a depcomp mode which is confused by this. 5594 # 5595 # We need to recreate these files for each test, as the compiler may 5596 # overwrite some of them when testing with obscure command lines. 5597 # This happens at least with the AIX C compiler. 5598 : > sub/conftest.c 5599 for i in 1 2 3 4 5 6; do 5600 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5602 # Solaris 8's {/usr,}/bin/sh. 5603 touch sub/conftst$i.h 5604 done 5605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5606 5607 case $depmode in 5608 nosideeffect) 5609 # after this tag, mechanisms are not by side-effect, so they'll 5610 # only be used when explicitly requested 5611 if test "x$enable_dependency_tracking" = xyes; then 5612 continue 5613 else 5614 break 5615 fi 5616 ;; 5617 none) break ;; 5618 esac 5619 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5620 # mode. It turns out that the SunPro C++ compiler does not properly 5621 # handle `-M -o', and we need to detect this. 5622 if depmode=$depmode \ 5623 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5625 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5626 >/dev/null 2>conftest.err && 5627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5629 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5631 # icc doesn't choke on unknown options, it will just issue warnings 5632 # or remarks (even with -Werror). So we grep stderr for any message 5633 # that says an option was ignored or not supported. 5634 # When given -MP, icc 7.0 and 7.1 complain thusly: 5635 # icc: Command line warning: ignoring option '-M'; no argument required 5636 # The diagnosis changed in icc 8.0: 5637 # icc: Command line remark: option '-MP' not supported 5638 if (grep 'ignoring option' conftest.err || 5639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5640 am_cv_CXX_dependencies_compiler_type=$depmode 5641 break 5642 fi 5643 fi 5644 done 5645 5646 cd .. 5647 rm -rf conftest.dir 5648else 5649 am_cv_CXX_dependencies_compiler_type=none 5650fi 5651 5652fi 5653{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5654echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5655CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5656 5657 if 5658 test "x$enable_dependency_tracking" != xno \ 5659 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5660 am__fastdepCXX_TRUE= 5661 am__fastdepCXX_FALSE='#' 5662else 5663 am__fastdepCXX_TRUE='#' 5664 am__fastdepCXX_FALSE= 5665fi 5666 5667 5668 5669 5670if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5672 (test "X$CXX" != "Xg++"))) ; then 5673 ac_ext=cpp 5674ac_cpp='$CXXCPP $CPPFLAGS' 5675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5678{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5679echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5680if test -z "$CXXCPP"; then 5681 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5682 echo $ECHO_N "(cached) $ECHO_C" >&6 5683else 5684 # Double quotes because CXXCPP needs to be expanded 5685 for CXXCPP in "$CXX -E" "/lib/cpp" 5686 do 5687 ac_preproc_ok=false 5688for ac_cxx_preproc_warn_flag in '' yes 5689do 5690 # Use a header file that comes with gcc, so configuring glibc 5691 # with a fresh cross-compiler works. 5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5693 # <limits.h> exists even on freestanding compilers. 5694 # On the NeXT, cc -E runs the code through the compiler's parser, 5695 # not just through cpp. "Syntax error" is here to catch this case. 5696 cat >conftest.$ac_ext <<_ACEOF 5697/* confdefs.h. */ 5698_ACEOF 5699cat confdefs.h >>conftest.$ac_ext 5700cat >>conftest.$ac_ext <<_ACEOF 5701/* end confdefs.h. */ 5702#ifdef __STDC__ 5703# include <limits.h> 5704#else 5705# include <assert.h> 5706#endif 5707 Syntax error 5708_ACEOF 5709if { (ac_try="$ac_cpp conftest.$ac_ext" 5710case "(($ac_try" in 5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5712 *) ac_try_echo=$ac_try;; 5713esac 5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5716 ac_status=$? 5717 grep -v '^ *+' conftest.er1 >conftest.err 5718 rm -f conftest.er1 5719 cat conftest.err >&5 5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5721 (exit $ac_status); } >/dev/null && { 5722 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5723 test ! -s conftest.err 5724 }; then 5725 : 5726else 5727 echo "$as_me: failed program was:" >&5 5728sed 's/^/| /' conftest.$ac_ext >&5 5729 5730 # Broken: fails on valid input. 5731continue 5732fi 5733 5734rm -f conftest.err conftest.$ac_ext 5735 5736 # OK, works on sane cases. Now check whether nonexistent headers 5737 # can be detected and how. 5738 cat >conftest.$ac_ext <<_ACEOF 5739/* confdefs.h. */ 5740_ACEOF 5741cat confdefs.h >>conftest.$ac_ext 5742cat >>conftest.$ac_ext <<_ACEOF 5743/* end confdefs.h. */ 5744#include <ac_nonexistent.h> 5745_ACEOF 5746if { (ac_try="$ac_cpp conftest.$ac_ext" 5747case "(($ac_try" in 5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5749 *) ac_try_echo=$ac_try;; 5750esac 5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5753 ac_status=$? 5754 grep -v '^ *+' conftest.er1 >conftest.err 5755 rm -f conftest.er1 5756 cat conftest.err >&5 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); } >/dev/null && { 5759 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5760 test ! -s conftest.err 5761 }; then 5762 # Broken: success on invalid input. 5763continue 5764else 5765 echo "$as_me: failed program was:" >&5 5766sed 's/^/| /' conftest.$ac_ext >&5 5767 5768 # Passes both tests. 5769ac_preproc_ok=: 5770break 5771fi 5772 5773rm -f conftest.err conftest.$ac_ext 5774 5775done 5776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5777rm -f conftest.err conftest.$ac_ext 5778if $ac_preproc_ok; then 5779 break 5780fi 5781 5782 done 5783 ac_cv_prog_CXXCPP=$CXXCPP 5784 5785fi 5786 CXXCPP=$ac_cv_prog_CXXCPP 5787else 5788 ac_cv_prog_CXXCPP=$CXXCPP 5789fi 5790{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5791echo "${ECHO_T}$CXXCPP" >&6; } 5792ac_preproc_ok=false 5793for ac_cxx_preproc_warn_flag in '' yes 5794do 5795 # Use a header file that comes with gcc, so configuring glibc 5796 # with a fresh cross-compiler works. 5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5798 # <limits.h> exists even on freestanding compilers. 5799 # On the NeXT, cc -E runs the code through the compiler's parser, 5800 # not just through cpp. "Syntax error" is here to catch this case. 5801 cat >conftest.$ac_ext <<_ACEOF 5802/* confdefs.h. */ 5803_ACEOF 5804cat confdefs.h >>conftest.$ac_ext 5805cat >>conftest.$ac_ext <<_ACEOF 5806/* end confdefs.h. */ 5807#ifdef __STDC__ 5808# include <limits.h> 5809#else 5810# include <assert.h> 5811#endif 5812 Syntax error 5813_ACEOF 5814if { (ac_try="$ac_cpp conftest.$ac_ext" 5815case "(($ac_try" in 5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5817 *) ac_try_echo=$ac_try;; 5818esac 5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5821 ac_status=$? 5822 grep -v '^ *+' conftest.er1 >conftest.err 5823 rm -f conftest.er1 5824 cat conftest.err >&5 5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5826 (exit $ac_status); } >/dev/null && { 5827 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5828 test ! -s conftest.err 5829 }; then 5830 : 5831else 5832 echo "$as_me: failed program was:" >&5 5833sed 's/^/| /' conftest.$ac_ext >&5 5834 5835 # Broken: fails on valid input. 5836continue 5837fi 5838 5839rm -f conftest.err conftest.$ac_ext 5840 5841 # OK, works on sane cases. Now check whether nonexistent headers 5842 # can be detected and how. 5843 cat >conftest.$ac_ext <<_ACEOF 5844/* confdefs.h. */ 5845_ACEOF 5846cat confdefs.h >>conftest.$ac_ext 5847cat >>conftest.$ac_ext <<_ACEOF 5848/* end confdefs.h. */ 5849#include <ac_nonexistent.h> 5850_ACEOF 5851if { (ac_try="$ac_cpp conftest.$ac_ext" 5852case "(($ac_try" in 5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5854 *) ac_try_echo=$ac_try;; 5855esac 5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5858 ac_status=$? 5859 grep -v '^ *+' conftest.er1 >conftest.err 5860 rm -f conftest.er1 5861 cat conftest.err >&5 5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5863 (exit $ac_status); } >/dev/null && { 5864 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5865 test ! -s conftest.err 5866 }; then 5867 # Broken: success on invalid input. 5868continue 5869else 5870 echo "$as_me: failed program was:" >&5 5871sed 's/^/| /' conftest.$ac_ext >&5 5872 5873 # Passes both tests. 5874ac_preproc_ok=: 5875break 5876fi 5877 5878rm -f conftest.err conftest.$ac_ext 5879 5880done 5881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5882rm -f conftest.err conftest.$ac_ext 5883if $ac_preproc_ok; then 5884 : 5885else 5886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5887See \`config.log' for more details." >&5 5888echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5889See \`config.log' for more details." >&2;} 5890 { (exit 1); exit 1; }; } 5891fi 5892 5893ac_ext=cpp 5894ac_cpp='$CXXCPP $CPPFLAGS' 5895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5898 5899fi 5900 5901 5902ac_ext=f 5903ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5904ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5905ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5906if test -n "$ac_tool_prefix"; then 5907 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 5908 do 5909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5911{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5913if test "${ac_cv_prog_F77+set}" = set; then 5914 echo $ECHO_N "(cached) $ECHO_C" >&6 5915else 5916 if test -n "$F77"; then 5917 ac_cv_prog_F77="$F77" # Let the user override the test. 5918else 5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5920for as_dir in $PATH 5921do 5922 IFS=$as_save_IFS 5923 test -z "$as_dir" && as_dir=. 5924 for ac_exec_ext in '' $ac_executable_extensions; do 5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5926 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5928 break 2 5929 fi 5930done 5931done 5932IFS=$as_save_IFS 5933 5934fi 5935fi 5936F77=$ac_cv_prog_F77 5937if test -n "$F77"; then 5938 { echo "$as_me:$LINENO: result: $F77" >&5 5939echo "${ECHO_T}$F77" >&6; } 5940else 5941 { echo "$as_me:$LINENO: result: no" >&5 5942echo "${ECHO_T}no" >&6; } 5943fi 5944 5945 5946 test -n "$F77" && break 5947 done 5948fi 5949if test -z "$F77"; then 5950 ac_ct_F77=$F77 5951 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 5952do 5953 # Extract the first word of "$ac_prog", so it can be a program name with args. 5954set dummy $ac_prog; ac_word=$2 5955{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5957if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959else 5960 if test -n "$ac_ct_F77"; then 5961 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5970 ac_cv_prog_ac_ct_F77="$ac_prog" 5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975done 5976IFS=$as_save_IFS 5977 5978fi 5979fi 5980ac_ct_F77=$ac_cv_prog_ac_ct_F77 5981if test -n "$ac_ct_F77"; then 5982 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5983echo "${ECHO_T}$ac_ct_F77" >&6; } 5984else 5985 { echo "$as_me:$LINENO: result: no" >&5 5986echo "${ECHO_T}no" >&6; } 5987fi 5988 5989 5990 test -n "$ac_ct_F77" && break 5991done 5992 5993 if test "x$ac_ct_F77" = x; then 5994 F77="" 5995 else 5996 case $cross_compiling:$ac_tool_warned in 5997yes:) 5998{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5999whose name does not start with the host triplet. If you think this 6000configuration is useful to you, please write to autoconf@gnu.org." >&5 6001echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6002whose name does not start with the host triplet. If you think this 6003configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6004ac_tool_warned=yes ;; 6005esac 6006 F77=$ac_ct_F77 6007 fi 6008fi 6009 6010 6011# Provide some information about the compiler. 6012echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6013ac_compiler=`set X $ac_compile; echo $2` 6014{ (ac_try="$ac_compiler --version >&5" 6015case "(($ac_try" in 6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6017 *) ac_try_echo=$ac_try;; 6018esac 6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6020 (eval "$ac_compiler --version >&5") 2>&5 6021 ac_status=$? 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6023 (exit $ac_status); } 6024{ (ac_try="$ac_compiler -v >&5" 6025case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_compiler -v >&5") 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); } 6034{ (ac_try="$ac_compiler -V >&5" 6035case "(($ac_try" in 6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6037 *) ac_try_echo=$ac_try;; 6038esac 6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6040 (eval "$ac_compiler -V >&5") 2>&5 6041 ac_status=$? 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); } 6044rm -f a.out 6045 6046# If we don't use `.F' as extension, the preprocessor is not run on the 6047# input file. (Note that this only needs to work for GNU compilers.) 6048ac_save_ext=$ac_ext 6049ac_ext=F 6050{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6051echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6052if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6053 echo $ECHO_N "(cached) $ECHO_C" >&6 6054else 6055 cat >conftest.$ac_ext <<_ACEOF 6056 program main 6057#ifndef __GNUC__ 6058 choke me 6059#endif 6060 6061 end 6062_ACEOF 6063rm -f conftest.$ac_objext 6064if { (ac_try="$ac_compile" 6065case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068esac 6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_compile") 2>conftest.er1 6071 ac_status=$? 6072 grep -v '^ *+' conftest.er1 >conftest.err 6073 rm -f conftest.er1 6074 cat conftest.err >&5 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); } && { 6077 test -z "$ac_f77_werror_flag" || 6078 test ! -s conftest.err 6079 } && test -s conftest.$ac_objext; then 6080 ac_compiler_gnu=yes 6081else 6082 echo "$as_me: failed program was:" >&5 6083sed 's/^/| /' conftest.$ac_ext >&5 6084 6085 ac_compiler_gnu=no 6086fi 6087 6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6089ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6090 6091fi 6092{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6093echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6094ac_ext=$ac_save_ext 6095ac_test_FFLAGS=${FFLAGS+set} 6096ac_save_FFLAGS=$FFLAGS 6097FFLAGS= 6098{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6099echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6100if test "${ac_cv_prog_f77_g+set}" = set; then 6101 echo $ECHO_N "(cached) $ECHO_C" >&6 6102else 6103 FFLAGS=-g 6104cat >conftest.$ac_ext <<_ACEOF 6105 program main 6106 6107 end 6108_ACEOF 6109rm -f conftest.$ac_objext 6110if { (ac_try="$ac_compile" 6111case "(($ac_try" in 6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6113 *) ac_try_echo=$ac_try;; 6114esac 6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6116 (eval "$ac_compile") 2>conftest.er1 6117 ac_status=$? 6118 grep -v '^ *+' conftest.er1 >conftest.err 6119 rm -f conftest.er1 6120 cat conftest.err >&5 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); } && { 6123 test -z "$ac_f77_werror_flag" || 6124 test ! -s conftest.err 6125 } && test -s conftest.$ac_objext; then 6126 ac_cv_prog_f77_g=yes 6127else 6128 echo "$as_me: failed program was:" >&5 6129sed 's/^/| /' conftest.$ac_ext >&5 6130 6131 ac_cv_prog_f77_g=no 6132fi 6133 6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6135 6136fi 6137{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6138echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6139if test "$ac_test_FFLAGS" = set; then 6140 FFLAGS=$ac_save_FFLAGS 6141elif test $ac_cv_prog_f77_g = yes; then 6142 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6143 FFLAGS="-g -O2" 6144 else 6145 FFLAGS="-g" 6146 fi 6147else 6148 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6149 FFLAGS="-O2" 6150 else 6151 FFLAGS= 6152 fi 6153fi 6154 6155G77=`test $ac_compiler_gnu = yes && echo yes` 6156ac_ext=c 6157ac_cpp='$CPP $CPPFLAGS' 6158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6160ac_compiler_gnu=$ac_cv_c_compiler_gnu 6161 6162 6163 6164# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6165 6166# find the maximum length of command line arguments 6167{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6168echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6169if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6170 echo $ECHO_N "(cached) $ECHO_C" >&6 6171else 6172 i=0 6173 teststring="ABCD" 6174 6175 case $build_os in 6176 msdosdjgpp*) 6177 # On DJGPP, this test can blow up pretty badly due to problems in libc 6178 # (any single argument exceeding 2000 bytes causes a buffer overrun 6179 # during glob expansion). Even if it were fixed, the result of this 6180 # check would be larger than it should be. 6181 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6182 ;; 6183 6184 gnu*) 6185 # Under GNU Hurd, this test is not required because there is 6186 # no limit to the length of command line arguments. 6187 # Libtool will interpret -1 as no limit whatsoever 6188 lt_cv_sys_max_cmd_len=-1; 6189 ;; 6190 6191 cygwin* | mingw*) 6192 # On Win9x/ME, this test blows up -- it succeeds, but takes 6193 # about 5 minutes as the teststring grows exponentially. 6194 # Worse, since 9x/ME are not pre-emptively multitasking, 6195 # you end up with a "frozen" computer, even though with patience 6196 # the test eventually succeeds (with a max line length of 256k). 6197 # Instead, let's just punt: use the minimum linelength reported by 6198 # all of the supported platforms: 8192 (on NT/2K/XP). 6199 lt_cv_sys_max_cmd_len=8192; 6200 ;; 6201 6202 amigaos*) 6203 # On AmigaOS with pdksh, this test takes hours, literally. 6204 # So we just punt and use a minimum line length of 8192. 6205 lt_cv_sys_max_cmd_len=8192; 6206 ;; 6207 6208 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6209 # This has been around since 386BSD, at least. Likely further. 6210 if test -x /sbin/sysctl; then 6211 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6212 elif test -x /usr/sbin/sysctl; then 6213 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6214 else 6215 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6216 fi 6217 # And add a safety zone 6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6220 ;; 6221 6222 interix*) 6223 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6224 lt_cv_sys_max_cmd_len=196608 6225 ;; 6226 6227 osf*) 6228 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6229 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6230 # nice to cause kernel panics so lets avoid the loop below. 6231 # First set a reasonable default. 6232 lt_cv_sys_max_cmd_len=16384 6233 # 6234 if test -x /sbin/sysconfig; then 6235 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6236 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6237 esac 6238 fi 6239 ;; 6240 sco3.2v5*) 6241 lt_cv_sys_max_cmd_len=102400 6242 ;; 6243 sysv5* | sco5v6* | sysv4.2uw2*) 6244 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6245 if test -n "$kargmax"; then 6246 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6247 else 6248 lt_cv_sys_max_cmd_len=32768 6249 fi 6250 ;; 6251 *) 6252 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6253 if test -n "$lt_cv_sys_max_cmd_len"; then 6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6256 else 6257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6258 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6259 = "XX$teststring") >/dev/null 2>&1 && 6260 new_result=`expr "X$teststring" : ".*" 2>&1` && 6261 lt_cv_sys_max_cmd_len=$new_result && 6262 test $i != 17 # 1/2 MB should be enough 6263 do 6264 i=`expr $i + 1` 6265 teststring=$teststring$teststring 6266 done 6267 teststring= 6268 # Add a significant safety factor because C++ compilers can tack on massive 6269 # amounts of additional arguments before passing them to the linker. 6270 # It appears as though 1/2 is a usable value. 6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6272 fi 6273 ;; 6274 esac 6275 6276fi 6277 6278if test -n $lt_cv_sys_max_cmd_len ; then 6279 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6280echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6281else 6282 { echo "$as_me:$LINENO: result: none" >&5 6283echo "${ECHO_T}none" >&6; } 6284fi 6285 6286 6287 6288 6289 6290# Check for command to grab the raw symbol name followed by C symbol from nm. 6291{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6292echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6293if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6294 echo $ECHO_N "(cached) $ECHO_C" >&6 6295else 6296 6297# These are sane defaults that work on at least a few old systems. 6298# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6299 6300# Character class describing NM global symbol codes. 6301symcode='[BCDEGRST]' 6302 6303# Regexp to match symbols that can be accessed directly from C. 6304sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6305 6306# Transform an extracted symbol line into a proper C declaration 6307lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6308 6309# Transform an extracted symbol line into symbol name and symbol address 6310lt_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'" 6311 6312# Define system-specific variables. 6313case $host_os in 6314aix*) 6315 symcode='[BCDT]' 6316 ;; 6317cygwin* | mingw* | pw32*) 6318 symcode='[ABCDGISTW]' 6319 ;; 6320hpux*) # Its linker distinguishes data from code symbols 6321 if test "$host_cpu" = ia64; then 6322 symcode='[ABCDEGRST]' 6323 fi 6324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6325 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'" 6326 ;; 6327linux* | k*bsd*-gnu) 6328 if test "$host_cpu" = ia64; then 6329 symcode='[ABCDGIRSTW]' 6330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6331 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'" 6332 fi 6333 ;; 6334irix* | nonstopux*) 6335 symcode='[BCDEGRST]' 6336 ;; 6337osf*) 6338 symcode='[BCDEGQRST]' 6339 ;; 6340solaris*) 6341 symcode='[BDRT]' 6342 ;; 6343sco3.2v5*) 6344 symcode='[DT]' 6345 ;; 6346sysv4.2uw2*) 6347 symcode='[DT]' 6348 ;; 6349sysv5* | sco5v6* | unixware* | OpenUNIX*) 6350 symcode='[ABDT]' 6351 ;; 6352sysv4) 6353 symcode='[DFNSTU]' 6354 ;; 6355esac 6356 6357# Handle CRLF in mingw tool chain 6358opt_cr= 6359case $build_os in 6360mingw*) 6361 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6362 ;; 6363esac 6364 6365# If we're using GNU nm, then use its standard symbol codes. 6366case `$NM -V 2>&1` in 6367*GNU* | *'with BFD'*) 6368 symcode='[ABCDGIRSTW]' ;; 6369esac 6370 6371# Try without a prefix undercore, then with it. 6372for ac_symprfx in "" "_"; do 6373 6374 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6375 symxfrm="\\1 $ac_symprfx\\2 \\2" 6376 6377 # Write the raw and C identifiers. 6378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6379 6380 # Check to see that the pipe works correctly. 6381 pipe_works=no 6382 6383 rm -f conftest* 6384 cat > conftest.$ac_ext <<EOF 6385#ifdef __cplusplus 6386extern "C" { 6387#endif 6388char nm_test_var; 6389void nm_test_func(){} 6390#ifdef __cplusplus 6391} 6392#endif 6393int main(){nm_test_var='a';nm_test_func();return(0);} 6394EOF 6395 6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6397 (eval $ac_compile) 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); }; then 6401 # Now try to grab the symbols. 6402 nlist=conftest.nm 6403 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6404 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6405 ac_status=$? 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6407 (exit $ac_status); } && test -s "$nlist"; then 6408 # Try sorting and uniquifying the output. 6409 if sort "$nlist" | uniq > "$nlist"T; then 6410 mv -f "$nlist"T "$nlist" 6411 else 6412 rm -f "$nlist"T 6413 fi 6414 6415 # Make sure that we snagged all the symbols we need. 6416 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6417 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6418 cat <<EOF > conftest.$ac_ext 6419#ifdef __cplusplus 6420extern "C" { 6421#endif 6422 6423EOF 6424 # Now generate the symbol file. 6425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6426 6427 cat <<EOF >> conftest.$ac_ext 6428#if defined (__STDC__) && __STDC__ 6429# define lt_ptr_t void * 6430#else 6431# define lt_ptr_t char * 6432# define const 6433#endif 6434 6435/* The mapping between symbol names and symbols. */ 6436const struct { 6437 const char *name; 6438 lt_ptr_t address; 6439} 6440lt_preloaded_symbols[] = 6441{ 6442EOF 6443 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6444 cat <<\EOF >> conftest.$ac_ext 6445 {0, (lt_ptr_t) 0} 6446}; 6447 6448#ifdef __cplusplus 6449} 6450#endif 6451EOF 6452 # Now try linking the two files. 6453 mv conftest.$ac_objext conftstm.$ac_objext 6454 lt_save_LIBS="$LIBS" 6455 lt_save_CFLAGS="$CFLAGS" 6456 LIBS="conftstm.$ac_objext" 6457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6459 (eval $ac_link) 2>&5 6460 ac_status=$? 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6463 pipe_works=yes 6464 fi 6465 LIBS="$lt_save_LIBS" 6466 CFLAGS="$lt_save_CFLAGS" 6467 else 6468 echo "cannot find nm_test_func in $nlist" >&5 6469 fi 6470 else 6471 echo "cannot find nm_test_var in $nlist" >&5 6472 fi 6473 else 6474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6475 fi 6476 else 6477 echo "$progname: failed program was:" >&5 6478 cat conftest.$ac_ext >&5 6479 fi 6480 rm -f conftest* conftst* 6481 6482 # Do not use the global_symbol_pipe unless it works. 6483 if test "$pipe_works" = yes; then 6484 break 6485 else 6486 lt_cv_sys_global_symbol_pipe= 6487 fi 6488done 6489 6490fi 6491 6492if test -z "$lt_cv_sys_global_symbol_pipe"; then 6493 lt_cv_sys_global_symbol_to_cdecl= 6494fi 6495if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6496 { echo "$as_me:$LINENO: result: failed" >&5 6497echo "${ECHO_T}failed" >&6; } 6498else 6499 { echo "$as_me:$LINENO: result: ok" >&5 6500echo "${ECHO_T}ok" >&6; } 6501fi 6502 6503{ echo "$as_me:$LINENO: checking for objdir" >&5 6504echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6505if test "${lt_cv_objdir+set}" = set; then 6506 echo $ECHO_N "(cached) $ECHO_C" >&6 6507else 6508 rm -f .libs 2>/dev/null 6509mkdir .libs 2>/dev/null 6510if test -d .libs; then 6511 lt_cv_objdir=.libs 6512else 6513 # MS-DOS does not allow filenames that begin with a dot. 6514 lt_cv_objdir=_libs 6515fi 6516rmdir .libs 2>/dev/null 6517fi 6518{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6519echo "${ECHO_T}$lt_cv_objdir" >&6; } 6520objdir=$lt_cv_objdir 6521 6522 6523 6524 6525 6526case $host_os in 6527aix3*) 6528 # AIX sometimes has problems with the GCC collect2 program. For some 6529 # reason, if we set the COLLECT_NAMES environment variable, the problems 6530 # vanish in a puff of smoke. 6531 if test "X${COLLECT_NAMES+set}" != Xset; then 6532 COLLECT_NAMES= 6533 export COLLECT_NAMES 6534 fi 6535 ;; 6536esac 6537 6538# Sed substitution that helps us do robust quoting. It backslashifies 6539# metacharacters that are still active within double-quoted strings. 6540Xsed='sed -e 1s/^X//' 6541sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6542 6543# Same as above, but do not quote variable references. 6544double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6545 6546# Sed substitution to delay expansion of an escaped shell variable in a 6547# double_quote_subst'ed string. 6548delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6549 6550# Sed substitution to avoid accidental globbing in evaled expressions 6551no_glob_subst='s/\*/\\\*/g' 6552 6553# Constants: 6554rm="rm -f" 6555 6556# Global variables: 6557default_ofile=libtool 6558can_build_shared=yes 6559 6560# All known linkers require a `.a' archive for static linking (except MSVC, 6561# which needs '.lib'). 6562libext=a 6563ltmain="$ac_aux_dir/ltmain.sh" 6564ofile="$default_ofile" 6565with_gnu_ld="$lt_cv_prog_gnu_ld" 6566 6567if test -n "$ac_tool_prefix"; then 6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6569set dummy ${ac_tool_prefix}ar; ac_word=$2 6570{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6572if test "${ac_cv_prog_AR+set}" = set; then 6573 echo $ECHO_N "(cached) $ECHO_C" >&6 6574else 6575 if test -n "$AR"; then 6576 ac_cv_prog_AR="$AR" # Let the user override the test. 6577else 6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6579for as_dir in $PATH 6580do 6581 IFS=$as_save_IFS 6582 test -z "$as_dir" && as_dir=. 6583 for ac_exec_ext in '' $ac_executable_extensions; do 6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6585 ac_cv_prog_AR="${ac_tool_prefix}ar" 6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589done 6590done 6591IFS=$as_save_IFS 6592 6593fi 6594fi 6595AR=$ac_cv_prog_AR 6596if test -n "$AR"; then 6597 { echo "$as_me:$LINENO: result: $AR" >&5 6598echo "${ECHO_T}$AR" >&6; } 6599else 6600 { echo "$as_me:$LINENO: result: no" >&5 6601echo "${ECHO_T}no" >&6; } 6602fi 6603 6604 6605fi 6606if test -z "$ac_cv_prog_AR"; then 6607 ac_ct_AR=$AR 6608 # Extract the first word of "ar", so it can be a program name with args. 6609set dummy ar; ac_word=$2 6610{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6612if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6613 echo $ECHO_N "(cached) $ECHO_C" >&6 6614else 6615 if test -n "$ac_ct_AR"; then 6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6617else 6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6619for as_dir in $PATH 6620do 6621 IFS=$as_save_IFS 6622 test -z "$as_dir" && as_dir=. 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6625 ac_cv_prog_ac_ct_AR="ar" 6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635ac_ct_AR=$ac_cv_prog_ac_ct_AR 6636if test -n "$ac_ct_AR"; then 6637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6638echo "${ECHO_T}$ac_ct_AR" >&6; } 6639else 6640 { echo "$as_me:$LINENO: result: no" >&5 6641echo "${ECHO_T}no" >&6; } 6642fi 6643 6644 if test "x$ac_ct_AR" = x; then 6645 AR="false" 6646 else 6647 case $cross_compiling:$ac_tool_warned in 6648yes:) 6649{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6650whose name does not start with the host triplet. If you think this 6651configuration is useful to you, please write to autoconf@gnu.org." >&5 6652echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6653whose name does not start with the host triplet. If you think this 6654configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6655ac_tool_warned=yes ;; 6656esac 6657 AR=$ac_ct_AR 6658 fi 6659else 6660 AR="$ac_cv_prog_AR" 6661fi 6662 6663if test -n "$ac_tool_prefix"; then 6664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6665set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6666{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6668if test "${ac_cv_prog_RANLIB+set}" = set; then 6669 echo $ECHO_N "(cached) $ECHO_C" >&6 6670else 6671 if test -n "$RANLIB"; then 6672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691RANLIB=$ac_cv_prog_RANLIB 6692if test -n "$RANLIB"; then 6693 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6694echo "${ECHO_T}$RANLIB" >&6; } 6695else 6696 { echo "$as_me:$LINENO: result: no" >&5 6697echo "${ECHO_T}no" >&6; } 6698fi 6699 6700 6701fi 6702if test -z "$ac_cv_prog_RANLIB"; then 6703 ac_ct_RANLIB=$RANLIB 6704 # Extract the first word of "ranlib", so it can be a program name with args. 6705set dummy ranlib; ac_word=$2 6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6708if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6709 echo $ECHO_N "(cached) $ECHO_C" >&6 6710else 6711 if test -n "$ac_ct_RANLIB"; then 6712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6721 ac_cv_prog_ac_ct_RANLIB="ranlib" 6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726done 6727IFS=$as_save_IFS 6728 6729fi 6730fi 6731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6732if test -n "$ac_ct_RANLIB"; then 6733 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6734echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6735else 6736 { echo "$as_me:$LINENO: result: no" >&5 6737echo "${ECHO_T}no" >&6; } 6738fi 6739 6740 if test "x$ac_ct_RANLIB" = x; then 6741 RANLIB=":" 6742 else 6743 case $cross_compiling:$ac_tool_warned in 6744yes:) 6745{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6746whose name does not start with the host triplet. If you think this 6747configuration is useful to you, please write to autoconf@gnu.org." >&5 6748echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6749whose name does not start with the host triplet. If you think this 6750configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6751ac_tool_warned=yes ;; 6752esac 6753 RANLIB=$ac_ct_RANLIB 6754 fi 6755else 6756 RANLIB="$ac_cv_prog_RANLIB" 6757fi 6758 6759if test -n "$ac_tool_prefix"; then 6760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6761set dummy ${ac_tool_prefix}strip; ac_word=$2 6762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6764if test "${ac_cv_prog_STRIP+set}" = set; then 6765 echo $ECHO_N "(cached) $ECHO_C" >&6 6766else 6767 if test -n "$STRIP"; then 6768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6769else 6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771for as_dir in $PATH 6772do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6777 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781done 6782done 6783IFS=$as_save_IFS 6784 6785fi 6786fi 6787STRIP=$ac_cv_prog_STRIP 6788if test -n "$STRIP"; then 6789 { echo "$as_me:$LINENO: result: $STRIP" >&5 6790echo "${ECHO_T}$STRIP" >&6; } 6791else 6792 { echo "$as_me:$LINENO: result: no" >&5 6793echo "${ECHO_T}no" >&6; } 6794fi 6795 6796 6797fi 6798if test -z "$ac_cv_prog_STRIP"; then 6799 ac_ct_STRIP=$STRIP 6800 # Extract the first word of "strip", so it can be a program name with args. 6801set dummy strip; ac_word=$2 6802{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6804if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6805 echo $ECHO_N "(cached) $ECHO_C" >&6 6806else 6807 if test -n "$ac_ct_STRIP"; then 6808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6809else 6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811for as_dir in $PATH 6812do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6817 ac_cv_prog_ac_ct_STRIP="strip" 6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821done 6822done 6823IFS=$as_save_IFS 6824 6825fi 6826fi 6827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6828if test -n "$ac_ct_STRIP"; then 6829 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6830echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6831else 6832 { echo "$as_me:$LINENO: result: no" >&5 6833echo "${ECHO_T}no" >&6; } 6834fi 6835 6836 if test "x$ac_ct_STRIP" = x; then 6837 STRIP=":" 6838 else 6839 case $cross_compiling:$ac_tool_warned in 6840yes:) 6841{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6842whose name does not start with the host triplet. If you think this 6843configuration is useful to you, please write to autoconf@gnu.org." >&5 6844echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6845whose name does not start with the host triplet. If you think this 6846configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6847ac_tool_warned=yes ;; 6848esac 6849 STRIP=$ac_ct_STRIP 6850 fi 6851else 6852 STRIP="$ac_cv_prog_STRIP" 6853fi 6854 6855 6856old_CC="$CC" 6857old_CFLAGS="$CFLAGS" 6858 6859# Set sane defaults for various variables 6860test -z "$AR" && AR=ar 6861test -z "$AR_FLAGS" && AR_FLAGS=cru 6862test -z "$AS" && AS=as 6863test -z "$CC" && CC=cc 6864test -z "$LTCC" && LTCC=$CC 6865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6866test -z "$DLLTOOL" && DLLTOOL=dlltool 6867test -z "$LD" && LD=ld 6868test -z "$LN_S" && LN_S="ln -s" 6869test -z "$MAGIC_CMD" && MAGIC_CMD=file 6870test -z "$NM" && NM=nm 6871test -z "$SED" && SED=sed 6872test -z "$OBJDUMP" && OBJDUMP=objdump 6873test -z "$RANLIB" && RANLIB=: 6874test -z "$STRIP" && STRIP=: 6875test -z "$ac_objext" && ac_objext=o 6876 6877# Determine commands to create old-style static archives. 6878old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6879old_postinstall_cmds='chmod 644 $oldlib' 6880old_postuninstall_cmds= 6881 6882if test -n "$RANLIB"; then 6883 case $host_os in 6884 openbsd*) 6885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6886 ;; 6887 *) 6888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6889 ;; 6890 esac 6891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6892fi 6893 6894for cc_temp in $compiler""; do 6895 case $cc_temp in 6896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6898 \-*) ;; 6899 *) break;; 6900 esac 6901done 6902cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6903 6904 6905# Only perform the check for file, if the check method requires it 6906case $deplibs_check_method in 6907file_magic*) 6908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6909 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6910echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6912 echo $ECHO_N "(cached) $ECHO_C" >&6 6913else 6914 case $MAGIC_CMD in 6915[\\/*] | ?:[\\/]*) 6916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6917 ;; 6918*) 6919 lt_save_MAGIC_CMD="$MAGIC_CMD" 6920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6922 for ac_dir in $ac_dummy; do 6923 IFS="$lt_save_ifs" 6924 test -z "$ac_dir" && ac_dir=. 6925 if test -f $ac_dir/${ac_tool_prefix}file; then 6926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6927 if test -n "$file_magic_test_file"; then 6928 case $deplibs_check_method in 6929 "file_magic "*) 6930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6933 $EGREP "$file_magic_regex" > /dev/null; then 6934 : 6935 else 6936 cat <<EOF 1>&2 6937 6938*** Warning: the command libtool uses to detect shared libraries, 6939*** $file_magic_cmd, produces output that libtool cannot recognize. 6940*** The result is that libtool may fail to recognize shared libraries 6941*** as such. This will affect the creation of libtool libraries that 6942*** depend on shared libraries, but programs linked with such libtool 6943*** libraries will work regardless of this problem. Nevertheless, you 6944*** may want to report the problem to your system manager and/or to 6945*** bug-libtool@gnu.org 6946 6947EOF 6948 fi ;; 6949 esac 6950 fi 6951 break 6952 fi 6953 done 6954 IFS="$lt_save_ifs" 6955 MAGIC_CMD="$lt_save_MAGIC_CMD" 6956 ;; 6957esac 6958fi 6959 6960MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6961if test -n "$MAGIC_CMD"; then 6962 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6963echo "${ECHO_T}$MAGIC_CMD" >&6; } 6964else 6965 { echo "$as_me:$LINENO: result: no" >&5 6966echo "${ECHO_T}no" >&6; } 6967fi 6968 6969if test -z "$lt_cv_path_MAGIC_CMD"; then 6970 if test -n "$ac_tool_prefix"; then 6971 { echo "$as_me:$LINENO: checking for file" >&5 6972echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6973if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6974 echo $ECHO_N "(cached) $ECHO_C" >&6 6975else 6976 case $MAGIC_CMD in 6977[\\/*] | ?:[\\/]*) 6978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6979 ;; 6980*) 6981 lt_save_MAGIC_CMD="$MAGIC_CMD" 6982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6984 for ac_dir in $ac_dummy; do 6985 IFS="$lt_save_ifs" 6986 test -z "$ac_dir" && ac_dir=. 6987 if test -f $ac_dir/file; then 6988 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6989 if test -n "$file_magic_test_file"; then 6990 case $deplibs_check_method in 6991 "file_magic "*) 6992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6995 $EGREP "$file_magic_regex" > /dev/null; then 6996 : 6997 else 6998 cat <<EOF 1>&2 6999 7000*** Warning: the command libtool uses to detect shared libraries, 7001*** $file_magic_cmd, produces output that libtool cannot recognize. 7002*** The result is that libtool may fail to recognize shared libraries 7003*** as such. This will affect the creation of libtool libraries that 7004*** depend on shared libraries, but programs linked with such libtool 7005*** libraries will work regardless of this problem. Nevertheless, you 7006*** may want to report the problem to your system manager and/or to 7007*** bug-libtool@gnu.org 7008 7009EOF 7010 fi ;; 7011 esac 7012 fi 7013 break 7014 fi 7015 done 7016 IFS="$lt_save_ifs" 7017 MAGIC_CMD="$lt_save_MAGIC_CMD" 7018 ;; 7019esac 7020fi 7021 7022MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7023if test -n "$MAGIC_CMD"; then 7024 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7025echo "${ECHO_T}$MAGIC_CMD" >&6; } 7026else 7027 { echo "$as_me:$LINENO: result: no" >&5 7028echo "${ECHO_T}no" >&6; } 7029fi 7030 7031 else 7032 MAGIC_CMD=: 7033 fi 7034fi 7035 7036 fi 7037 ;; 7038esac 7039 7040enable_dlopen=no 7041enable_win32_dll=no 7042 7043# Check whether --enable-libtool-lock was given. 7044if test "${enable_libtool_lock+set}" = set; then 7045 enableval=$enable_libtool_lock; 7046fi 7047 7048test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7049 7050 7051# Check whether --with-pic was given. 7052if test "${with_pic+set}" = set; then 7053 withval=$with_pic; pic_mode="$withval" 7054else 7055 pic_mode=default 7056fi 7057 7058test -z "$pic_mode" && pic_mode=default 7059 7060# Use C for the default configuration in the libtool script 7061tagname= 7062lt_save_CC="$CC" 7063ac_ext=c 7064ac_cpp='$CPP $CPPFLAGS' 7065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7067ac_compiler_gnu=$ac_cv_c_compiler_gnu 7068 7069 7070# Source file extension for C test sources. 7071ac_ext=c 7072 7073# Object file extension for compiled C test sources. 7074objext=o 7075objext=$objext 7076 7077# Code to be used in simple compile tests 7078lt_simple_compile_test_code="int some_variable = 0;" 7079 7080# Code to be used in simple link tests 7081lt_simple_link_test_code='int main(){return(0);}' 7082 7083 7084# If no C compiler was specified, use CC. 7085LTCC=${LTCC-"$CC"} 7086 7087# If no C compiler flags were specified, use CFLAGS. 7088LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7089 7090# Allow CC to be a program name with arguments. 7091compiler=$CC 7092 7093 7094# save warnings/boilerplate of simple test code 7095ac_outfile=conftest.$ac_objext 7096echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7098_lt_compiler_boilerplate=`cat conftest.err` 7099$rm conftest* 7100 7101ac_outfile=conftest.$ac_objext 7102echo "$lt_simple_link_test_code" >conftest.$ac_ext 7103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7104_lt_linker_boilerplate=`cat conftest.err` 7105$rm conftest* 7106 7107 7108 7109lt_prog_compiler_no_builtin_flag= 7110 7111if test "$GCC" = yes; then 7112 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7113 7114 7115{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7116echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7117if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7118 echo $ECHO_N "(cached) $ECHO_C" >&6 7119else 7120 lt_cv_prog_compiler_rtti_exceptions=no 7121 ac_outfile=conftest.$ac_objext 7122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7123 lt_compiler_flag="-fno-rtti -fno-exceptions" 7124 # Insert the option either (1) after the last *FLAGS variable, or 7125 # (2) before a word containing "conftest.", or (3) at the end. 7126 # Note that $ac_compile itself does not contain backslashes and begins 7127 # with a dollar sign (not a hyphen), so the echo should work correctly. 7128 # The option is referenced via a variable to avoid confusing sed. 7129 lt_compile=`echo "$ac_compile" | $SED \ 7130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7132 -e 's:$: $lt_compiler_flag:'` 7133 (eval echo "\"\$as_me:7133: $lt_compile\"" >&5) 7134 (eval "$lt_compile" 2>conftest.err) 7135 ac_status=$? 7136 cat conftest.err >&5 7137 echo "$as_me:7137: \$? = $ac_status" >&5 7138 if (exit $ac_status) && test -s "$ac_outfile"; then 7139 # The compiler can only warn and ignore the option if not recognized 7140 # So say no if there are warnings other than the usual output. 7141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7144 lt_cv_prog_compiler_rtti_exceptions=yes 7145 fi 7146 fi 7147 $rm conftest* 7148 7149fi 7150{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7151echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7152 7153if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7155else 7156 : 7157fi 7158 7159fi 7160 7161lt_prog_compiler_wl= 7162lt_prog_compiler_pic= 7163lt_prog_compiler_static= 7164 7165{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7167 7168 if test "$GCC" = yes; then 7169 lt_prog_compiler_wl='-Wl,' 7170 lt_prog_compiler_static='-static' 7171 7172 case $host_os in 7173 aix*) 7174 # All AIX code is PIC. 7175 if test "$host_cpu" = ia64; then 7176 # AIX 5 now supports IA64 processor 7177 lt_prog_compiler_static='-Bstatic' 7178 fi 7179 ;; 7180 7181 amigaos*) 7182 # FIXME: we need at least 68020 code to build shared libraries, but 7183 # adding the `-m68020' flag to GCC prevents building anything better, 7184 # like `-m68040'. 7185 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7186 ;; 7187 7188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7189 # PIC is the default for these OSes. 7190 ;; 7191 7192 mingw* | cygwin* | pw32* | os2*) 7193 # This hack is so that the source file can tell whether it is being 7194 # built for inclusion in a dll (and should export symbols for example). 7195 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7196 # (--disable-auto-import) libraries 7197 lt_prog_compiler_pic='-DDLL_EXPORT' 7198 ;; 7199 7200 darwin* | rhapsody*) 7201 # PIC is the default on this platform 7202 # Common symbols not allowed in MH_DYLIB files 7203 lt_prog_compiler_pic='-fno-common' 7204 ;; 7205 7206 interix[3-9]*) 7207 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7208 # Instead, we relocate shared libraries at runtime. 7209 ;; 7210 7211 msdosdjgpp*) 7212 # Just because we use GCC doesn't mean we suddenly get shared libraries 7213 # on systems that don't support them. 7214 lt_prog_compiler_can_build_shared=no 7215 enable_shared=no 7216 ;; 7217 7218 sysv4*MP*) 7219 if test -d /usr/nec; then 7220 lt_prog_compiler_pic=-Kconform_pic 7221 fi 7222 ;; 7223 7224 hpux*) 7225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7226 # not for PA HP-UX. 7227 case $host_cpu in 7228 hppa*64*|ia64*) 7229 # +Z the default 7230 ;; 7231 *) 7232 lt_prog_compiler_pic='-fPIC' 7233 ;; 7234 esac 7235 ;; 7236 7237 *) 7238 lt_prog_compiler_pic='-fPIC' 7239 ;; 7240 esac 7241 else 7242 # PORTME Check for flag to pass linker flags through the system compiler. 7243 case $host_os in 7244 aix*) 7245 lt_prog_compiler_wl='-Wl,' 7246 if test "$host_cpu" = ia64; then 7247 # AIX 5 now supports IA64 processor 7248 lt_prog_compiler_static='-Bstatic' 7249 else 7250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7251 fi 7252 ;; 7253 darwin*) 7254 # PIC is the default on this platform 7255 # Common symbols not allowed in MH_DYLIB files 7256 case $cc_basename in 7257 xlc*) 7258 lt_prog_compiler_pic='-qnocommon' 7259 lt_prog_compiler_wl='-Wl,' 7260 ;; 7261 esac 7262 ;; 7263 7264 mingw* | cygwin* | pw32* | os2*) 7265 # This hack is so that the source file can tell whether it is being 7266 # built for inclusion in a dll (and should export symbols for example). 7267 lt_prog_compiler_pic='-DDLL_EXPORT' 7268 ;; 7269 7270 hpux9* | hpux10* | hpux11*) 7271 lt_prog_compiler_wl='-Wl,' 7272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7273 # not for PA HP-UX. 7274 case $host_cpu in 7275 hppa*64*|ia64*) 7276 # +Z the default 7277 ;; 7278 *) 7279 lt_prog_compiler_pic='+Z' 7280 ;; 7281 esac 7282 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7283 lt_prog_compiler_static='${wl}-a ${wl}archive' 7284 ;; 7285 7286 irix5* | irix6* | nonstopux*) 7287 lt_prog_compiler_wl='-Wl,' 7288 # PIC (with -KPIC) is the default. 7289 lt_prog_compiler_static='-non_shared' 7290 ;; 7291 7292 newsos6) 7293 lt_prog_compiler_pic='-KPIC' 7294 lt_prog_compiler_static='-Bstatic' 7295 ;; 7296 7297 linux* | k*bsd*-gnu) 7298 case $cc_basename in 7299 icc* | ecc*) 7300 lt_prog_compiler_wl='-Wl,' 7301 lt_prog_compiler_pic='-KPIC' 7302 lt_prog_compiler_static='-static' 7303 ;; 7304 pgcc* | pgf77* | pgf90* | pgf95*) 7305 # Portland Group compilers (*not* the Pentium gcc compiler, 7306 # which looks to be a dead project) 7307 lt_prog_compiler_wl='-Wl,' 7308 lt_prog_compiler_pic='-fpic' 7309 lt_prog_compiler_static='-Bstatic' 7310 ;; 7311 ccc*) 7312 lt_prog_compiler_wl='-Wl,' 7313 # All Alpha code is PIC. 7314 lt_prog_compiler_static='-non_shared' 7315 ;; 7316 *) 7317 case `$CC -V 2>&1 | sed 5q` in 7318 *Sun\ C*) 7319 # Sun C 5.9 7320 lt_prog_compiler_pic='-KPIC' 7321 lt_prog_compiler_static='-Bstatic' 7322 lt_prog_compiler_wl='-Wl,' 7323 ;; 7324 *Sun\ F*) 7325 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7326 lt_prog_compiler_pic='-KPIC' 7327 lt_prog_compiler_static='-Bstatic' 7328 lt_prog_compiler_wl='' 7329 ;; 7330 esac 7331 ;; 7332 esac 7333 ;; 7334 7335 osf3* | osf4* | osf5*) 7336 lt_prog_compiler_wl='-Wl,' 7337 # All OSF/1 code is PIC. 7338 lt_prog_compiler_static='-non_shared' 7339 ;; 7340 7341 rdos*) 7342 lt_prog_compiler_static='-non_shared' 7343 ;; 7344 7345 solaris*) 7346 lt_prog_compiler_pic='-KPIC' 7347 lt_prog_compiler_static='-Bstatic' 7348 case $cc_basename in 7349 f77* | f90* | f95*) 7350 lt_prog_compiler_wl='-Qoption ld ';; 7351 *) 7352 lt_prog_compiler_wl='-Wl,';; 7353 esac 7354 ;; 7355 7356 sunos4*) 7357 lt_prog_compiler_wl='-Qoption ld ' 7358 lt_prog_compiler_pic='-PIC' 7359 lt_prog_compiler_static='-Bstatic' 7360 ;; 7361 7362 sysv4 | sysv4.2uw2* | sysv4.3*) 7363 lt_prog_compiler_wl='-Wl,' 7364 lt_prog_compiler_pic='-KPIC' 7365 lt_prog_compiler_static='-Bstatic' 7366 ;; 7367 7368 sysv4*MP*) 7369 if test -d /usr/nec ;then 7370 lt_prog_compiler_pic='-Kconform_pic' 7371 lt_prog_compiler_static='-Bstatic' 7372 fi 7373 ;; 7374 7375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7376 lt_prog_compiler_wl='-Wl,' 7377 lt_prog_compiler_pic='-KPIC' 7378 lt_prog_compiler_static='-Bstatic' 7379 ;; 7380 7381 unicos*) 7382 lt_prog_compiler_wl='-Wl,' 7383 lt_prog_compiler_can_build_shared=no 7384 ;; 7385 7386 uts4*) 7387 lt_prog_compiler_pic='-pic' 7388 lt_prog_compiler_static='-Bstatic' 7389 ;; 7390 7391 *) 7392 lt_prog_compiler_can_build_shared=no 7393 ;; 7394 esac 7395 fi 7396 7397{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7398echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7399 7400# 7401# Check to make sure the PIC flag actually works. 7402# 7403if test -n "$lt_prog_compiler_pic"; then 7404 7405{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7406echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7407if test "${lt_prog_compiler_pic_works+set}" = set; then 7408 echo $ECHO_N "(cached) $ECHO_C" >&6 7409else 7410 lt_prog_compiler_pic_works=no 7411 ac_outfile=conftest.$ac_objext 7412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7413 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7414 # Insert the option either (1) after the last *FLAGS variable, or 7415 # (2) before a word containing "conftest.", or (3) at the end. 7416 # Note that $ac_compile itself does not contain backslashes and begins 7417 # with a dollar sign (not a hyphen), so the echo should work correctly. 7418 # The option is referenced via a variable to avoid confusing sed. 7419 lt_compile=`echo "$ac_compile" | $SED \ 7420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7422 -e 's:$: $lt_compiler_flag:'` 7423 (eval echo "\"\$as_me:7423: $lt_compile\"" >&5) 7424 (eval "$lt_compile" 2>conftest.err) 7425 ac_status=$? 7426 cat conftest.err >&5 7427 echo "$as_me:7427: \$? = $ac_status" >&5 7428 if (exit $ac_status) && test -s "$ac_outfile"; then 7429 # The compiler can only warn and ignore the option if not recognized 7430 # So say no if there are warnings other than the usual output. 7431 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7433 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7434 lt_prog_compiler_pic_works=yes 7435 fi 7436 fi 7437 $rm conftest* 7438 7439fi 7440{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7441echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7442 7443if test x"$lt_prog_compiler_pic_works" = xyes; then 7444 case $lt_prog_compiler_pic in 7445 "" | " "*) ;; 7446 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7447 esac 7448else 7449 lt_prog_compiler_pic= 7450 lt_prog_compiler_can_build_shared=no 7451fi 7452 7453fi 7454case $host_os in 7455 # For platforms which do not support PIC, -DPIC is meaningless: 7456 *djgpp*) 7457 lt_prog_compiler_pic= 7458 ;; 7459 *) 7460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7461 ;; 7462esac 7463 7464# 7465# Check to make sure the static flag actually works. 7466# 7467wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7468{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7469echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7470if test "${lt_prog_compiler_static_works+set}" = set; then 7471 echo $ECHO_N "(cached) $ECHO_C" >&6 7472else 7473 lt_prog_compiler_static_works=no 7474 save_LDFLAGS="$LDFLAGS" 7475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7476 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7478 # The linker can only warn and ignore the option if not recognized 7479 # So say no if there are warnings 7480 if test -s conftest.err; then 7481 # Append any errors to the config.log. 7482 cat conftest.err 1>&5 7483 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7485 if diff conftest.exp conftest.er2 >/dev/null; then 7486 lt_prog_compiler_static_works=yes 7487 fi 7488 else 7489 lt_prog_compiler_static_works=yes 7490 fi 7491 fi 7492 $rm conftest* 7493 LDFLAGS="$save_LDFLAGS" 7494 7495fi 7496{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7497echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7498 7499if test x"$lt_prog_compiler_static_works" = xyes; then 7500 : 7501else 7502 lt_prog_compiler_static= 7503fi 7504 7505 7506{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7507echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7508if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7509 echo $ECHO_N "(cached) $ECHO_C" >&6 7510else 7511 lt_cv_prog_compiler_c_o=no 7512 $rm -r conftest 2>/dev/null 7513 mkdir conftest 7514 cd conftest 7515 mkdir out 7516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7517 7518 lt_compiler_flag="-o out/conftest2.$ac_objext" 7519 # Insert the option either (1) after the last *FLAGS variable, or 7520 # (2) before a word containing "conftest.", or (3) at the end. 7521 # Note that $ac_compile itself does not contain backslashes and begins 7522 # with a dollar sign (not a hyphen), so the echo should work correctly. 7523 lt_compile=`echo "$ac_compile" | $SED \ 7524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7526 -e 's:$: $lt_compiler_flag:'` 7527 (eval echo "\"\$as_me:7527: $lt_compile\"" >&5) 7528 (eval "$lt_compile" 2>out/conftest.err) 7529 ac_status=$? 7530 cat out/conftest.err >&5 7531 echo "$as_me:7531: \$? = $ac_status" >&5 7532 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7533 then 7534 # The compiler can only warn and ignore the option if not recognized 7535 # So say no if there are warnings 7536 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7539 lt_cv_prog_compiler_c_o=yes 7540 fi 7541 fi 7542 chmod u+w . 2>&5 7543 $rm conftest* 7544 # SGI C++ compiler will create directory out/ii_files/ for 7545 # template instantiation 7546 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7547 $rm out/* && rmdir out 7548 cd .. 7549 rmdir conftest 7550 $rm conftest* 7551 7552fi 7553{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7554echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7555 7556 7557hard_links="nottested" 7558if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7559 # do not overwrite the value of need_locks provided by the user 7560 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7561echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7562 hard_links=yes 7563 $rm conftest* 7564 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7565 touch conftest.a 7566 ln conftest.a conftest.b 2>&5 || hard_links=no 7567 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7568 { echo "$as_me:$LINENO: result: $hard_links" >&5 7569echo "${ECHO_T}$hard_links" >&6; } 7570 if test "$hard_links" = no; then 7571 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7572echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7573 need_locks=warn 7574 fi 7575else 7576 need_locks=no 7577fi 7578 7579{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7580echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7581 7582 runpath_var= 7583 allow_undefined_flag= 7584 enable_shared_with_static_runtimes=no 7585 archive_cmds= 7586 archive_expsym_cmds= 7587 old_archive_From_new_cmds= 7588 old_archive_from_expsyms_cmds= 7589 export_dynamic_flag_spec= 7590 whole_archive_flag_spec= 7591 thread_safe_flag_spec= 7592 hardcode_libdir_flag_spec= 7593 hardcode_libdir_flag_spec_ld= 7594 hardcode_libdir_separator= 7595 hardcode_direct=no 7596 hardcode_minus_L=no 7597 hardcode_shlibpath_var=unsupported 7598 link_all_deplibs=unknown 7599 hardcode_automatic=no 7600 module_cmds= 7601 module_expsym_cmds= 7602 always_export_symbols=no 7603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7604 # include_expsyms should be a list of space-separated symbols to be *always* 7605 # included in the symbol list 7606 include_expsyms= 7607 # exclude_expsyms can be an extended regexp of symbols to exclude 7608 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7609 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7610 # as well as any symbol that contains `d'. 7611 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7612 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7613 # platforms (ab)use it in PIC code, but their linkers get confused if 7614 # the symbol is explicitly referenced. Since portable code cannot 7615 # rely on this symbol name, it's probably fine to never include it in 7616 # preloaded symbol tables. 7617 extract_expsyms_cmds= 7618 # Just being paranoid about ensuring that cc_basename is set. 7619 for cc_temp in $compiler""; do 7620 case $cc_temp in 7621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7623 \-*) ;; 7624 *) break;; 7625 esac 7626done 7627cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7628 7629 case $host_os in 7630 cygwin* | mingw* | pw32*) 7631 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7632 # When not using gcc, we currently assume that we are using 7633 # Microsoft Visual C++. 7634 if test "$GCC" != yes; then 7635 with_gnu_ld=no 7636 fi 7637 ;; 7638 interix*) 7639 # we just hope/assume this is gcc and not c89 (= MSVC++) 7640 with_gnu_ld=yes 7641 ;; 7642 openbsd*) 7643 with_gnu_ld=no 7644 ;; 7645 esac 7646 7647 ld_shlibs=yes 7648 if test "$with_gnu_ld" = yes; then 7649 # If archive_cmds runs LD, not CC, wlarc should be empty 7650 wlarc='${wl}' 7651 7652 # Set some defaults for GNU ld with shared library support. These 7653 # are reset later if shared libraries are not supported. Putting them 7654 # here allows them to be overridden if necessary. 7655 runpath_var=LD_RUN_PATH 7656 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7657 export_dynamic_flag_spec='${wl}--export-dynamic' 7658 # ancient GNU ld didn't support --whole-archive et. al. 7659 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7660 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7661 else 7662 whole_archive_flag_spec= 7663 fi 7664 supports_anon_versioning=no 7665 case `$LD -v 2>/dev/null` in 7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7669 *\ 2.11.*) ;; # other 2.11 versions 7670 *) supports_anon_versioning=yes ;; 7671 esac 7672 7673 # See if GNU ld supports shared libraries. 7674 case $host_os in 7675 aix3* | aix4* | aix5*) 7676 # On AIX/PPC, the GNU linker is very broken 7677 if test "$host_cpu" != ia64; then 7678 ld_shlibs=no 7679 cat <<EOF 1>&2 7680 7681*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7682*** to be unable to reliably create shared libraries on AIX. 7683*** Therefore, libtool is disabling shared libraries support. If you 7684*** really care for shared libraries, you may want to modify your PATH 7685*** so that a non-GNU linker is found, and then restart. 7686 7687EOF 7688 fi 7689 ;; 7690 7691 amigaos*) 7692 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)' 7693 hardcode_libdir_flag_spec='-L$libdir' 7694 hardcode_minus_L=yes 7695 7696 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7697 # that the semantics of dynamic libraries on AmigaOS, at least up 7698 # to version 4, is to share data among multiple programs linked 7699 # with the same dynamic library. Since this doesn't match the 7700 # behavior of shared libraries on other platforms, we can't use 7701 # them. 7702 ld_shlibs=no 7703 ;; 7704 7705 beos*) 7706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7707 allow_undefined_flag=unsupported 7708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7709 # support --undefined. This deserves some investigation. FIXME 7710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7711 else 7712 ld_shlibs=no 7713 fi 7714 ;; 7715 7716 cygwin* | mingw* | pw32*) 7717 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7718 # as there is no search path for DLLs. 7719 hardcode_libdir_flag_spec='-L$libdir' 7720 allow_undefined_flag=unsupported 7721 always_export_symbols=no 7722 enable_shared_with_static_runtimes=yes 7723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7724 7725 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7727 # If the export-symbols file already is a .def file (1st line 7728 # is EXPORTS), use it as is; otherwise, prepend... 7729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7730 cp $export_symbols $output_objdir/$soname.def; 7731 else 7732 echo EXPORTS > $output_objdir/$soname.def; 7733 cat $export_symbols >> $output_objdir/$soname.def; 7734 fi~ 7735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7736 else 7737 ld_shlibs=no 7738 fi 7739 ;; 7740 7741 interix[3-9]*) 7742 hardcode_direct=no 7743 hardcode_shlibpath_var=no 7744 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7745 export_dynamic_flag_spec='${wl}-E' 7746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7747 # Instead, shared libraries are loaded at an image base (0x10000000 by 7748 # default) and relocated if they conflict, which is a slow very memory 7749 # consuming and fragmenting process. To avoid this, we pick a random, 7750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7751 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7753 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' 7754 ;; 7755 7756 gnu* | linux* | k*bsd*-gnu) 7757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7758 tmp_addflag= 7759 case $cc_basename,$host_cpu in 7760 pgcc*) # Portland Group C compiler 7761 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' 7762 tmp_addflag=' $pic_flag' 7763 ;; 7764 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7765 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' 7766 tmp_addflag=' $pic_flag -Mnomain' ;; 7767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7768 tmp_addflag=' -i_dynamic' ;; 7769 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7770 tmp_addflag=' -i_dynamic -nofor_main' ;; 7771 ifc* | ifort*) # Intel Fortran compiler 7772 tmp_addflag=' -nofor_main' ;; 7773 esac 7774 case `$CC -V 2>&1 | sed 5q` in 7775 *Sun\ C*) # Sun C 5.9 7776 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7777 tmp_sharedflag='-G' ;; 7778 *Sun\ F*) # Sun Fortran 8.3 7779 tmp_sharedflag='-G' ;; 7780 *) 7781 tmp_sharedflag='-shared' ;; 7782 esac 7783 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7784 7785 if test $supports_anon_versioning = yes; then 7786 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7788 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7789 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7790 fi 7791 else 7792 ld_shlibs=no 7793 fi 7794 ;; 7795 7796 netbsd*) 7797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7798 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7799 wlarc= 7800 else 7801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7803 fi 7804 ;; 7805 7806 solaris*) 7807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7808 ld_shlibs=no 7809 cat <<EOF 1>&2 7810 7811*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7812*** create shared libraries on Solaris systems. Therefore, libtool 7813*** is disabling shared libraries support. We urge you to upgrade GNU 7814*** binutils to release 2.9.1 or newer. Another option is to modify 7815*** your PATH or compiler configuration so that the native linker is 7816*** used, and then restart. 7817 7818EOF 7819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7822 else 7823 ld_shlibs=no 7824 fi 7825 ;; 7826 7827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7828 case `$LD -v 2>&1` in 7829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7830 ld_shlibs=no 7831 cat <<_LT_EOF 1>&2 7832 7833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7834*** reliably create shared libraries on SCO systems. Therefore, libtool 7835*** is disabling shared libraries support. We urge you to upgrade GNU 7836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7837*** your PATH or compiler configuration so that the native linker is 7838*** used, and then restart. 7839 7840_LT_EOF 7841 ;; 7842 *) 7843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7844 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7847 else 7848 ld_shlibs=no 7849 fi 7850 ;; 7851 esac 7852 ;; 7853 7854 sunos4*) 7855 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7856 wlarc= 7857 hardcode_direct=yes 7858 hardcode_shlibpath_var=no 7859 ;; 7860 7861 *) 7862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7865 else 7866 ld_shlibs=no 7867 fi 7868 ;; 7869 esac 7870 7871 if test "$ld_shlibs" = no; then 7872 runpath_var= 7873 hardcode_libdir_flag_spec= 7874 export_dynamic_flag_spec= 7875 whole_archive_flag_spec= 7876 fi 7877 else 7878 # PORTME fill in a description of your system's linker (not GNU ld) 7879 case $host_os in 7880 aix3*) 7881 allow_undefined_flag=unsupported 7882 always_export_symbols=yes 7883 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' 7884 # Note: this linker hardcodes the directories in LIBPATH if there 7885 # are no directories specified by -L. 7886 hardcode_minus_L=yes 7887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7888 # Neither direct hardcoding nor static linking is supported with a 7889 # broken collect2. 7890 hardcode_direct=unsupported 7891 fi 7892 ;; 7893 7894 aix4* | aix5*) 7895 if test "$host_cpu" = ia64; then 7896 # On IA64, the linker does run time linking by default, so we don't 7897 # have to do anything special. 7898 aix_use_runtimelinking=no 7899 exp_sym_flag='-Bexport' 7900 no_entry_flag="" 7901 else 7902 # If we're using GNU nm, then we don't want the "-C" option. 7903 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7905 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' 7906 else 7907 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' 7908 fi 7909 aix_use_runtimelinking=no 7910 7911 # Test if we are trying to use run time linking or normal 7912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7913 # need to do runtime linking. 7914 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7915 for ld_flag in $LDFLAGS; do 7916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7917 aix_use_runtimelinking=yes 7918 break 7919 fi 7920 done 7921 ;; 7922 esac 7923 7924 exp_sym_flag='-bexport' 7925 no_entry_flag='-bnoentry' 7926 fi 7927 7928 # When large executables or shared objects are built, AIX ld can 7929 # have problems creating the table of contents. If linking a library 7930 # or program results in "error TOC overflow" add -mminimal-toc to 7931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7933 7934 archive_cmds='' 7935 hardcode_direct=yes 7936 hardcode_libdir_separator=':' 7937 link_all_deplibs=yes 7938 7939 if test "$GCC" = yes; then 7940 case $host_os in aix4.[012]|aix4.[012].*) 7941 # We only want to do this on AIX 4.2 and lower, the check 7942 # below for broken collect2 doesn't work under 4.3+ 7943 collect2name=`${CC} -print-prog-name=collect2` 7944 if test -f "$collect2name" && \ 7945 strings "$collect2name" | grep resolve_lib_name >/dev/null 7946 then 7947 # We have reworked collect2 7948 : 7949 else 7950 # We have old collect2 7951 hardcode_direct=unsupported 7952 # It fails to find uninstalled libraries when the uninstalled 7953 # path is not listed in the libpath. Setting hardcode_minus_L 7954 # to unsupported forces relinking 7955 hardcode_minus_L=yes 7956 hardcode_libdir_flag_spec='-L$libdir' 7957 hardcode_libdir_separator= 7958 fi 7959 ;; 7960 esac 7961 shared_flag='-shared' 7962 if test "$aix_use_runtimelinking" = yes; then 7963 shared_flag="$shared_flag "'${wl}-G' 7964 fi 7965 else 7966 # not using gcc 7967 if test "$host_cpu" = ia64; then 7968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7969 # chokes on -Wl,-G. The following line is correct: 7970 shared_flag='-G' 7971 else 7972 if test "$aix_use_runtimelinking" = yes; then 7973 shared_flag='${wl}-G' 7974 else 7975 shared_flag='${wl}-bM:SRE' 7976 fi 7977 fi 7978 fi 7979 7980 # It seems that -bexpall does not export symbols beginning with 7981 # underscore (_), so it is better to generate a list of symbols to export. 7982 always_export_symbols=yes 7983 if test "$aix_use_runtimelinking" = yes; then 7984 # Warning - without using the other runtime loading flags (-brtl), 7985 # -berok will link without error, but may produce a broken library. 7986 allow_undefined_flag='-berok' 7987 # Determine the default libpath from the value encoded in an empty executable. 7988 cat >conftest.$ac_ext <<_ACEOF 7989/* confdefs.h. */ 7990_ACEOF 7991cat confdefs.h >>conftest.$ac_ext 7992cat >>conftest.$ac_ext <<_ACEOF 7993/* end confdefs.h. */ 7994 7995int 7996main () 7997{ 7998 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003rm -f conftest.$ac_objext conftest$ac_exeext 8004if { (ac_try="$ac_link" 8005case "(($ac_try" in 8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8007 *) ac_try_echo=$ac_try;; 8008esac 8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8010 (eval "$ac_link") 2>conftest.er1 8011 ac_status=$? 8012 grep -v '^ *+' conftest.er1 >conftest.err 8013 rm -f conftest.er1 8014 cat conftest.err >&5 8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8016 (exit $ac_status); } && { 8017 test -z "$ac_c_werror_flag" || 8018 test ! -s conftest.err 8019 } && test -s conftest$ac_exeext && 8020 $as_test_x conftest$ac_exeext; then 8021 8022lt_aix_libpath_sed=' 8023 /Import File Strings/,/^$/ { 8024 /^0/ { 8025 s/^0 *\(.*\)$/\1/ 8026 p 8027 } 8028 }' 8029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8030# Check for a 64-bit object if we didn't find anything. 8031if test -z "$aix_libpath"; then 8032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8033fi 8034else 8035 echo "$as_me: failed program was:" >&5 8036sed 's/^/| /' conftest.$ac_ext >&5 8037 8038 8039fi 8040 8041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8042 conftest$ac_exeext conftest.$ac_ext 8043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8044 8045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8046 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" 8047 else 8048 if test "$host_cpu" = ia64; then 8049 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8050 allow_undefined_flag="-z nodefs" 8051 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" 8052 else 8053 # Determine the default libpath from the value encoded in an empty executable. 8054 cat >conftest.$ac_ext <<_ACEOF 8055/* confdefs.h. */ 8056_ACEOF 8057cat confdefs.h >>conftest.$ac_ext 8058cat >>conftest.$ac_ext <<_ACEOF 8059/* end confdefs.h. */ 8060 8061int 8062main () 8063{ 8064 8065 ; 8066 return 0; 8067} 8068_ACEOF 8069rm -f conftest.$ac_objext conftest$ac_exeext 8070if { (ac_try="$ac_link" 8071case "(($ac_try" in 8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8073 *) ac_try_echo=$ac_try;; 8074esac 8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8076 (eval "$ac_link") 2>conftest.er1 8077 ac_status=$? 8078 grep -v '^ *+' conftest.er1 >conftest.err 8079 rm -f conftest.er1 8080 cat conftest.err >&5 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8082 (exit $ac_status); } && { 8083 test -z "$ac_c_werror_flag" || 8084 test ! -s conftest.err 8085 } && test -s conftest$ac_exeext && 8086 $as_test_x conftest$ac_exeext; then 8087 8088lt_aix_libpath_sed=' 8089 /Import File Strings/,/^$/ { 8090 /^0/ { 8091 s/^0 *\(.*\)$/\1/ 8092 p 8093 } 8094 }' 8095aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8096# Check for a 64-bit object if we didn't find anything. 8097if test -z "$aix_libpath"; then 8098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8099fi 8100else 8101 echo "$as_me: failed program was:" >&5 8102sed 's/^/| /' conftest.$ac_ext >&5 8103 8104 8105fi 8106 8107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8108 conftest$ac_exeext conftest.$ac_ext 8109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8110 8111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8112 # Warning - without using the other run time loading flags, 8113 # -berok will link without error, but may produce a broken library. 8114 no_undefined_flag=' ${wl}-bernotok' 8115 allow_undefined_flag=' ${wl}-berok' 8116 # Exported symbols can be pulled into shared objects from archives 8117 whole_archive_flag_spec='$convenience' 8118 archive_cmds_need_lc=yes 8119 # This is similar to how AIX traditionally builds its shared libraries. 8120 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' 8121 fi 8122 fi 8123 ;; 8124 8125 amigaos*) 8126 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)' 8127 hardcode_libdir_flag_spec='-L$libdir' 8128 hardcode_minus_L=yes 8129 # see comment about different semantics on the GNU ld section 8130 ld_shlibs=no 8131 ;; 8132 8133 bsdi[45]*) 8134 export_dynamic_flag_spec=-rdynamic 8135 ;; 8136 8137 cygwin* | mingw* | pw32*) 8138 # When not using gcc, we currently assume that we are using 8139 # Microsoft Visual C++. 8140 # hardcode_libdir_flag_spec is actually meaningless, as there is 8141 # no search path for DLLs. 8142 hardcode_libdir_flag_spec=' ' 8143 allow_undefined_flag=unsupported 8144 # Tell ltmain to make .lib files, not .a files. 8145 libext=lib 8146 # Tell ltmain to make .dll files, not .so files. 8147 shrext_cmds=".dll" 8148 # FIXME: Setting linknames here is a bad hack. 8149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8150 # The linker will automatically build a .lib file if we build a DLL. 8151 old_archive_From_new_cmds='true' 8152 # FIXME: Should let the user specify the lib program. 8153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8154 fix_srcfile_path='`cygpath -w "$srcfile"`' 8155 enable_shared_with_static_runtimes=yes 8156 ;; 8157 8158 darwin* | rhapsody*) 8159 case $host_os in 8160 rhapsody* | darwin1.[012]) 8161 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8162 ;; 8163 *) # Darwin 1.3 on 8164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8165 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8166 else 8167 case ${MACOSX_DEPLOYMENT_TARGET} in 8168 10.[012]) 8169 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8170 ;; 8171 10.*) 8172 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8173 ;; 8174 esac 8175 fi 8176 ;; 8177 esac 8178 archive_cmds_need_lc=no 8179 hardcode_direct=no 8180 hardcode_automatic=yes 8181 hardcode_shlibpath_var=unsupported 8182 whole_archive_flag_spec='' 8183 link_all_deplibs=yes 8184 if test "$GCC" = yes ; then 8185 output_verbose_link_cmd='echo' 8186 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8187 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8189 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}' 8190 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}' 8191 else 8192 case $cc_basename in 8193 xlc*) 8194 output_verbose_link_cmd='echo' 8195 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8196 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8198 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8199 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}' 8200 ;; 8201 *) 8202 ld_shlibs=no 8203 ;; 8204 esac 8205 fi 8206 ;; 8207 8208 dgux*) 8209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8210 hardcode_libdir_flag_spec='-L$libdir' 8211 hardcode_shlibpath_var=no 8212 ;; 8213 8214 freebsd1*) 8215 ld_shlibs=no 8216 ;; 8217 8218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8219 # support. Future versions do this automatically, but an explicit c++rt0.o 8220 # does not break anything, and helps significantly (at the cost of a little 8221 # extra space). 8222 freebsd2.2*) 8223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8224 hardcode_libdir_flag_spec='-R$libdir' 8225 hardcode_direct=yes 8226 hardcode_shlibpath_var=no 8227 ;; 8228 8229 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8230 freebsd2*) 8231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8232 hardcode_direct=yes 8233 hardcode_minus_L=yes 8234 hardcode_shlibpath_var=no 8235 ;; 8236 8237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8238 freebsd* | dragonfly*) 8239 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8240 hardcode_libdir_flag_spec='-R$libdir' 8241 hardcode_direct=yes 8242 hardcode_shlibpath_var=no 8243 ;; 8244 8245 hpux9*) 8246 if test "$GCC" = yes; then 8247 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' 8248 else 8249 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' 8250 fi 8251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8252 hardcode_libdir_separator=: 8253 hardcode_direct=yes 8254 8255 # hardcode_minus_L: Not really in the search PATH, 8256 # but as the default location of the library. 8257 hardcode_minus_L=yes 8258 export_dynamic_flag_spec='${wl}-E' 8259 ;; 8260 8261 hpux10*) 8262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8263 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8264 else 8265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8266 fi 8267 if test "$with_gnu_ld" = no; then 8268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8269 hardcode_libdir_separator=: 8270 8271 hardcode_direct=yes 8272 export_dynamic_flag_spec='${wl}-E' 8273 8274 # hardcode_minus_L: Not really in the search PATH, 8275 # but as the default location of the library. 8276 hardcode_minus_L=yes 8277 fi 8278 ;; 8279 8280 hpux11*) 8281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8282 case $host_cpu in 8283 hppa*64*) 8284 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8285 ;; 8286 ia64*) 8287 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8288 ;; 8289 *) 8290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8291 ;; 8292 esac 8293 else 8294 case $host_cpu in 8295 hppa*64*) 8296 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8297 ;; 8298 ia64*) 8299 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8300 ;; 8301 *) 8302 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8303 ;; 8304 esac 8305 fi 8306 if test "$with_gnu_ld" = no; then 8307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8308 hardcode_libdir_separator=: 8309 8310 case $host_cpu in 8311 hppa*64*|ia64*) 8312 hardcode_libdir_flag_spec_ld='+b $libdir' 8313 hardcode_direct=no 8314 hardcode_shlibpath_var=no 8315 ;; 8316 *) 8317 hardcode_direct=yes 8318 export_dynamic_flag_spec='${wl}-E' 8319 8320 # hardcode_minus_L: Not really in the search PATH, 8321 # but as the default location of the library. 8322 hardcode_minus_L=yes 8323 ;; 8324 esac 8325 fi 8326 ;; 8327 8328 irix5* | irix6* | nonstopux*) 8329 if test "$GCC" = yes; then 8330 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' 8331 else 8332 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' 8333 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8334 fi 8335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8336 hardcode_libdir_separator=: 8337 link_all_deplibs=yes 8338 ;; 8339 8340 netbsd*) 8341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8343 else 8344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8345 fi 8346 hardcode_libdir_flag_spec='-R$libdir' 8347 hardcode_direct=yes 8348 hardcode_shlibpath_var=no 8349 ;; 8350 8351 newsos6) 8352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8353 hardcode_direct=yes 8354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8355 hardcode_libdir_separator=: 8356 hardcode_shlibpath_var=no 8357 ;; 8358 8359 openbsd*) 8360 if test -f /usr/libexec/ld.so; then 8361 hardcode_direct=yes 8362 hardcode_shlibpath_var=no 8363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8367 export_dynamic_flag_spec='${wl}-E' 8368 else 8369 case $host_os in 8370 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8372 hardcode_libdir_flag_spec='-R$libdir' 8373 ;; 8374 *) 8375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8377 ;; 8378 esac 8379 fi 8380 else 8381 ld_shlibs=no 8382 fi 8383 ;; 8384 8385 os2*) 8386 hardcode_libdir_flag_spec='-L$libdir' 8387 hardcode_minus_L=yes 8388 allow_undefined_flag=unsupported 8389 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' 8390 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8391 ;; 8392 8393 osf3*) 8394 if test "$GCC" = yes; then 8395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8396 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' 8397 else 8398 allow_undefined_flag=' -expect_unresolved \*' 8399 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' 8400 fi 8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8402 hardcode_libdir_separator=: 8403 ;; 8404 8405 osf4* | osf5*) # as osf3* with the addition of -msym flag 8406 if test "$GCC" = yes; then 8407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8408 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' 8409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8410 else 8411 allow_undefined_flag=' -expect_unresolved \*' 8412 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' 8413 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8414 $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' 8415 8416 # Both c and cxx compiler support -rpath directly 8417 hardcode_libdir_flag_spec='-rpath $libdir' 8418 fi 8419 hardcode_libdir_separator=: 8420 ;; 8421 8422 solaris*) 8423 no_undefined_flag=' -z text' 8424 if test "$GCC" = yes; then 8425 wlarc='${wl}' 8426 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8427 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8428 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8429 else 8430 wlarc='' 8431 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8432 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8434 fi 8435 hardcode_libdir_flag_spec='-R$libdir' 8436 hardcode_shlibpath_var=no 8437 case $host_os in 8438 solaris2.[0-5] | solaris2.[0-5].*) ;; 8439 *) 8440 # The compiler driver will combine and reorder linker options, 8441 # but understands `-z linker_flag'. GCC discards it without `$wl', 8442 # but is careful enough not to reorder. 8443 # Supported since Solaris 2.6 (maybe 2.5.1?) 8444 if test "$GCC" = yes; then 8445 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8446 else 8447 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8448 fi 8449 ;; 8450 esac 8451 link_all_deplibs=yes 8452 ;; 8453 8454 sunos4*) 8455 if test "x$host_vendor" = xsequent; then 8456 # Use $CC to link under sequent, because it throws in some extra .o 8457 # files that make .init and .fini sections work. 8458 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8459 else 8460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8461 fi 8462 hardcode_libdir_flag_spec='-L$libdir' 8463 hardcode_direct=yes 8464 hardcode_minus_L=yes 8465 hardcode_shlibpath_var=no 8466 ;; 8467 8468 sysv4) 8469 case $host_vendor in 8470 sni) 8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8472 hardcode_direct=yes # is this really true??? 8473 ;; 8474 siemens) 8475 ## LD is ld it makes a PLAMLIB 8476 ## CC just makes a GrossModule. 8477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8478 reload_cmds='$CC -r -o $output$reload_objs' 8479 hardcode_direct=no 8480 ;; 8481 motorola) 8482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8484 ;; 8485 esac 8486 runpath_var='LD_RUN_PATH' 8487 hardcode_shlibpath_var=no 8488 ;; 8489 8490 sysv4.3*) 8491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8492 hardcode_shlibpath_var=no 8493 export_dynamic_flag_spec='-Bexport' 8494 ;; 8495 8496 sysv4*MP*) 8497 if test -d /usr/nec; then 8498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8499 hardcode_shlibpath_var=no 8500 runpath_var=LD_RUN_PATH 8501 hardcode_runpath_var=yes 8502 ld_shlibs=yes 8503 fi 8504 ;; 8505 8506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8507 no_undefined_flag='${wl}-z,text' 8508 archive_cmds_need_lc=no 8509 hardcode_shlibpath_var=no 8510 runpath_var='LD_RUN_PATH' 8511 8512 if test "$GCC" = yes; then 8513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8515 else 8516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8518 fi 8519 ;; 8520 8521 sysv5* | sco3.2v5* | sco5v6*) 8522 # Note: We can NOT use -z defs as we might desire, because we do not 8523 # link with -lc, and that would cause any symbols used from libc to 8524 # always be unresolved, which means just about no library would 8525 # ever link correctly. If we're not using GNU ld we use -z text 8526 # though, which does catch some bad symbols but isn't as heavy-handed 8527 # as -z defs. 8528 no_undefined_flag='${wl}-z,text' 8529 allow_undefined_flag='${wl}-z,nodefs' 8530 archive_cmds_need_lc=no 8531 hardcode_shlibpath_var=no 8532 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8533 hardcode_libdir_separator=':' 8534 link_all_deplibs=yes 8535 export_dynamic_flag_spec='${wl}-Bexport' 8536 runpath_var='LD_RUN_PATH' 8537 8538 if test "$GCC" = yes; then 8539 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8540 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8541 else 8542 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8543 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8544 fi 8545 ;; 8546 8547 uts4*) 8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8549 hardcode_libdir_flag_spec='-L$libdir' 8550 hardcode_shlibpath_var=no 8551 ;; 8552 8553 *) 8554 ld_shlibs=no 8555 ;; 8556 esac 8557 fi 8558 8559{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8560echo "${ECHO_T}$ld_shlibs" >&6; } 8561test "$ld_shlibs" = no && can_build_shared=no 8562 8563# 8564# Do we need to explicitly link libc? 8565# 8566case "x$archive_cmds_need_lc" in 8567x|xyes) 8568 # Assume -lc should be added 8569 archive_cmds_need_lc=yes 8570 8571 if test "$enable_shared" = yes && test "$GCC" = yes; then 8572 case $archive_cmds in 8573 *'~'*) 8574 # FIXME: we may have to deal with multi-command sequences. 8575 ;; 8576 '$CC '*) 8577 # Test whether the compiler implicitly links with -lc since on some 8578 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8579 # to ld, don't add -lc before -lgcc. 8580 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8582 $rm conftest* 8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8584 8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8586 (eval $ac_compile) 2>&5 8587 ac_status=$? 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); } 2>conftest.err; then 8590 soname=conftest 8591 lib=conftest 8592 libobjs=conftest.$ac_objext 8593 deplibs= 8594 wl=$lt_prog_compiler_wl 8595 pic_flag=$lt_prog_compiler_pic 8596 compiler_flags=-v 8597 linker_flags=-v 8598 verstring= 8599 output_objdir=. 8600 libname=conftest 8601 lt_save_allow_undefined_flag=$allow_undefined_flag 8602 allow_undefined_flag= 8603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8604 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8605 ac_status=$? 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 (exit $ac_status); } 8608 then 8609 archive_cmds_need_lc=no 8610 else 8611 archive_cmds_need_lc=yes 8612 fi 8613 allow_undefined_flag=$lt_save_allow_undefined_flag 8614 else 8615 cat conftest.err 1>&5 8616 fi 8617 $rm conftest* 8618 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8619echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8620 ;; 8621 esac 8622 fi 8623 ;; 8624esac 8625 8626{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8628library_names_spec= 8629libname_spec='lib$name' 8630soname_spec= 8631shrext_cmds=".so" 8632postinstall_cmds= 8633postuninstall_cmds= 8634finish_cmds= 8635finish_eval= 8636shlibpath_var= 8637shlibpath_overrides_runpath=unknown 8638version_type=none 8639dynamic_linker="$host_os ld.so" 8640sys_lib_dlsearch_path_spec="/lib /usr/lib" 8641 8642if test "$GCC" = yes; then 8643 case $host_os in 8644 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8645 *) lt_awk_arg="/^libraries:/" ;; 8646 esac 8647 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8648 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8649 # if the path contains ";" then we assume it to be the separator 8650 # otherwise default to the standard path separator (i.e. ":") - it is 8651 # assumed that no part of a normal pathname contains ";" but that should 8652 # okay in the real world where ";" in dirpaths is itself problematic. 8653 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8654 else 8655 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8656 fi 8657 # Ok, now we have the path, separated by spaces, we can step through it 8658 # and add multilib dir if necessary. 8659 lt_tmp_lt_search_path_spec= 8660 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8661 for lt_sys_path in $lt_search_path_spec; do 8662 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8664 else 8665 test -d "$lt_sys_path" && \ 8666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8667 fi 8668 done 8669 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8670BEGIN {RS=" "; FS="/|\n";} { 8671 lt_foo=""; 8672 lt_count=0; 8673 for (lt_i = NF; lt_i > 0; lt_i--) { 8674 if ($lt_i != "" && $lt_i != ".") { 8675 if ($lt_i == "..") { 8676 lt_count++; 8677 } else { 8678 if (lt_count == 0) { 8679 lt_foo="/" $lt_i lt_foo; 8680 } else { 8681 lt_count--; 8682 } 8683 } 8684 } 8685 } 8686 if (lt_foo != "") { lt_freq[lt_foo]++; } 8687 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8688}'` 8689 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8690else 8691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8692fi 8693need_lib_prefix=unknown 8694hardcode_into_libs=no 8695 8696# when you set need_version to no, make sure it does not cause -set_version 8697# flags to be left without arguments 8698need_version=unknown 8699 8700case $host_os in 8701aix3*) 8702 version_type=linux 8703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8704 shlibpath_var=LIBPATH 8705 8706 # AIX 3 has no versioning support, so we append a major version to the name. 8707 soname_spec='${libname}${release}${shared_ext}$major' 8708 ;; 8709 8710aix4* | aix5*) 8711 version_type=linux 8712 need_lib_prefix=no 8713 need_version=no 8714 hardcode_into_libs=yes 8715 if test "$host_cpu" = ia64; then 8716 # AIX 5 supports IA64 8717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8718 shlibpath_var=LD_LIBRARY_PATH 8719 else 8720 # With GCC up to 2.95.x, collect2 would create an import file 8721 # for dependence libraries. The import file would start with 8722 # the line `#! .'. This would cause the generated library to 8723 # depend on `.', always an invalid library. This was fixed in 8724 # development snapshots of GCC prior to 3.0. 8725 case $host_os in 8726 aix4 | aix4.[01] | aix4.[01].*) 8727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8728 echo ' yes ' 8729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8730 : 8731 else 8732 can_build_shared=no 8733 fi 8734 ;; 8735 esac 8736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8737 # soname into executable. Probably we can add versioning support to 8738 # collect2, so additional links can be useful in future. 8739 if test "$aix_use_runtimelinking" = yes; then 8740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8741 # instead of lib<name>.a to let people know that these are not 8742 # typical AIX shared libraries. 8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8744 else 8745 # We preserve .a as extension for shared libraries through AIX4.2 8746 # and later when we are not doing run time linking. 8747 library_names_spec='${libname}${release}.a $libname.a' 8748 soname_spec='${libname}${release}${shared_ext}$major' 8749 fi 8750 shlibpath_var=LIBPATH 8751 fi 8752 ;; 8753 8754amigaos*) 8755 library_names_spec='$libname.ixlibrary $libname.a' 8756 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8757 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' 8758 ;; 8759 8760beos*) 8761 library_names_spec='${libname}${shared_ext}' 8762 dynamic_linker="$host_os ld.so" 8763 shlibpath_var=LIBRARY_PATH 8764 ;; 8765 8766bsdi[45]*) 8767 version_type=linux 8768 need_version=no 8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8770 soname_spec='${libname}${release}${shared_ext}$major' 8771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8772 shlibpath_var=LD_LIBRARY_PATH 8773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8775 # the default ld.so.conf also contains /usr/contrib/lib and 8776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8777 # libtool to hard-code these into programs 8778 ;; 8779 8780cygwin* | mingw* | pw32*) 8781 version_type=windows 8782 shrext_cmds=".dll" 8783 need_version=no 8784 need_lib_prefix=no 8785 8786 case $GCC,$host_os in 8787 yes,cygwin* | yes,mingw* | yes,pw32*) 8788 library_names_spec='$libname.dll.a' 8789 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8790 postinstall_cmds='base_file=`basename \${file}`~ 8791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8792 dldir=$destdir/`dirname \$dlpath`~ 8793 test -d \$dldir || mkdir -p \$dldir~ 8794 $install_prog $dir/$dlname \$dldir/$dlname~ 8795 chmod a+x \$dldir/$dlname' 8796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8797 dlpath=$dir/\$dldll~ 8798 $rm \$dlpath' 8799 shlibpath_overrides_runpath=yes 8800 8801 case $host_os in 8802 cygwin*) 8803 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8806 ;; 8807 mingw*) 8808 # MinGW DLLs use traditional 'lib' prefix 8809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8811 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8812 # It is most probably a Windows format PATH printed by 8813 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8814 # path with ; separators, and with drive letters. We can handle the 8815 # drive letters (cygwin fileutils understands them), so leave them, 8816 # especially as we might pass files found there to a mingw objdump, 8817 # which wouldn't understand a cygwinified path. Ahh. 8818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8819 else 8820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8821 fi 8822 ;; 8823 pw32*) 8824 # pw32 DLLs use 'pw' prefix rather than 'lib' 8825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8826 ;; 8827 esac 8828 ;; 8829 8830 *) 8831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8832 ;; 8833 esac 8834 dynamic_linker='Win32 ld.exe' 8835 # FIXME: first we should search . and the directory the executable is in 8836 shlibpath_var=PATH 8837 ;; 8838 8839darwin* | rhapsody*) 8840 dynamic_linker="$host_os dyld" 8841 version_type=darwin 8842 need_lib_prefix=no 8843 need_version=no 8844 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8845 soname_spec='${libname}${release}${major}$shared_ext' 8846 shlibpath_overrides_runpath=yes 8847 shlibpath_var=DYLD_LIBRARY_PATH 8848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8849 8850 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8852 ;; 8853 8854dgux*) 8855 version_type=linux 8856 need_lib_prefix=no 8857 need_version=no 8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8859 soname_spec='${libname}${release}${shared_ext}$major' 8860 shlibpath_var=LD_LIBRARY_PATH 8861 ;; 8862 8863freebsd1*) 8864 dynamic_linker=no 8865 ;; 8866 8867freebsd* | dragonfly*) 8868 # DragonFly does not have aout. When/if they implement a new 8869 # versioning mechanism, adjust this. 8870 if test -x /usr/bin/objformat; then 8871 objformat=`/usr/bin/objformat` 8872 else 8873 case $host_os in 8874 freebsd[123]*) objformat=aout ;; 8875 *) objformat=elf ;; 8876 esac 8877 fi 8878 version_type=freebsd-$objformat 8879 case $version_type in 8880 freebsd-elf*) 8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8882 need_version=no 8883 need_lib_prefix=no 8884 ;; 8885 freebsd-*) 8886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8887 need_version=yes 8888 ;; 8889 esac 8890 shlibpath_var=LD_LIBRARY_PATH 8891 case $host_os in 8892 freebsd2*) 8893 shlibpath_overrides_runpath=yes 8894 ;; 8895 freebsd3.[01]* | freebsdelf3.[01]*) 8896 shlibpath_overrides_runpath=yes 8897 hardcode_into_libs=yes 8898 ;; 8899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8901 shlibpath_overrides_runpath=no 8902 hardcode_into_libs=yes 8903 ;; 8904 *) # from 4.6 on, and DragonFly 8905 shlibpath_overrides_runpath=yes 8906 hardcode_into_libs=yes 8907 ;; 8908 esac 8909 ;; 8910 8911gnu*) 8912 version_type=linux 8913 need_lib_prefix=no 8914 need_version=no 8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8916 soname_spec='${libname}${release}${shared_ext}$major' 8917 shlibpath_var=LD_LIBRARY_PATH 8918 hardcode_into_libs=yes 8919 ;; 8920 8921hpux9* | hpux10* | hpux11*) 8922 # Give a soname corresponding to the major version so that dld.sl refuses to 8923 # link against other versions. 8924 version_type=sunos 8925 need_lib_prefix=no 8926 need_version=no 8927 case $host_cpu in 8928 ia64*) 8929 shrext_cmds='.so' 8930 hardcode_into_libs=yes 8931 dynamic_linker="$host_os dld.so" 8932 shlibpath_var=LD_LIBRARY_PATH 8933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8935 soname_spec='${libname}${release}${shared_ext}$major' 8936 if test "X$HPUX_IA64_MODE" = X32; then 8937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8938 else 8939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8940 fi 8941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8942 ;; 8943 hppa*64*) 8944 shrext_cmds='.sl' 8945 hardcode_into_libs=yes 8946 dynamic_linker="$host_os dld.sl" 8947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8950 soname_spec='${libname}${release}${shared_ext}$major' 8951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8953 ;; 8954 *) 8955 shrext_cmds='.sl' 8956 dynamic_linker="$host_os dld.sl" 8957 shlibpath_var=SHLIB_PATH 8958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8960 soname_spec='${libname}${release}${shared_ext}$major' 8961 ;; 8962 esac 8963 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8964 postinstall_cmds='chmod 555 $lib' 8965 ;; 8966 8967interix[3-9]*) 8968 version_type=linux 8969 need_lib_prefix=no 8970 need_version=no 8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8972 soname_spec='${libname}${release}${shared_ext}$major' 8973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8974 shlibpath_var=LD_LIBRARY_PATH 8975 shlibpath_overrides_runpath=no 8976 hardcode_into_libs=yes 8977 ;; 8978 8979irix5* | irix6* | nonstopux*) 8980 case $host_os in 8981 nonstopux*) version_type=nonstopux ;; 8982 *) 8983 if test "$lt_cv_prog_gnu_ld" = yes; then 8984 version_type=linux 8985 else 8986 version_type=irix 8987 fi ;; 8988 esac 8989 need_lib_prefix=no 8990 need_version=no 8991 soname_spec='${libname}${release}${shared_ext}$major' 8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8993 case $host_os in 8994 irix5* | nonstopux*) 8995 libsuff= shlibsuff= 8996 ;; 8997 *) 8998 case $LD in # libtool.m4 will add one of these switches to LD 8999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9000 libsuff= shlibsuff= libmagic=32-bit;; 9001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9002 libsuff=32 shlibsuff=N32 libmagic=N32;; 9003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9004 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9005 *) libsuff= shlibsuff= libmagic=never-match;; 9006 esac 9007 ;; 9008 esac 9009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9010 shlibpath_overrides_runpath=no 9011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9013 hardcode_into_libs=yes 9014 ;; 9015 9016# No shared lib support for Linux oldld, aout, or coff. 9017linux*oldld* | linux*aout* | linux*coff*) 9018 dynamic_linker=no 9019 ;; 9020 9021# This must be Linux ELF. 9022linux* | k*bsd*-gnu) 9023 version_type=linux 9024 need_lib_prefix=no 9025 need_version=no 9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9027 soname_spec='${libname}${release}${shared_ext}$major' 9028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9029 shlibpath_var=LD_LIBRARY_PATH 9030 shlibpath_overrides_runpath=no 9031 # This implies no fast_install, which is unacceptable. 9032 # Some rework will be needed to allow for fast_install 9033 # before this can be enabled. 9034 hardcode_into_libs=yes 9035 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9036 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9037 9038 # Append ld.so.conf contents to the search path 9039 if test -f /etc/ld.so.conf; then 9040 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9041 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9042 fi 9043 9044 # We used to test for /lib/ld.so.1 and disable shared libraries on 9045 # powerpc, because MkLinux only supported shared libraries with the 9046 # GNU dynamic linker. Since this was broken with cross compilers, 9047 # most powerpc-linux boxes support dynamic linking these days and 9048 # people can always --disable-shared, the test was removed, and we 9049 # assume the GNU/Linux dynamic linker is in use. 9050 dynamic_linker='GNU/Linux ld.so' 9051 ;; 9052 9053netbsd*) 9054 version_type=sunos 9055 need_lib_prefix=no 9056 need_version=no 9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9060 dynamic_linker='NetBSD (a.out) ld.so' 9061 else 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9063 soname_spec='${libname}${release}${shared_ext}$major' 9064 dynamic_linker='NetBSD ld.elf_so' 9065 fi 9066 shlibpath_var=LD_LIBRARY_PATH 9067 shlibpath_overrides_runpath=yes 9068 hardcode_into_libs=yes 9069 ;; 9070 9071newsos6) 9072 version_type=linux 9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9074 shlibpath_var=LD_LIBRARY_PATH 9075 shlibpath_overrides_runpath=yes 9076 ;; 9077 9078nto-qnx*) 9079 version_type=linux 9080 need_lib_prefix=no 9081 need_version=no 9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9083 soname_spec='${libname}${release}${shared_ext}$major' 9084 shlibpath_var=LD_LIBRARY_PATH 9085 shlibpath_overrides_runpath=yes 9086 ;; 9087 9088openbsd*) 9089 version_type=sunos 9090 sys_lib_dlsearch_path_spec="/usr/lib" 9091 need_lib_prefix=no 9092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9093 case $host_os in 9094 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9095 *) need_version=no ;; 9096 esac 9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9099 shlibpath_var=LD_LIBRARY_PATH 9100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9101 case $host_os in 9102 openbsd2.[89] | openbsd2.[89].*) 9103 shlibpath_overrides_runpath=no 9104 ;; 9105 *) 9106 shlibpath_overrides_runpath=yes 9107 ;; 9108 esac 9109 else 9110 shlibpath_overrides_runpath=yes 9111 fi 9112 ;; 9113 9114os2*) 9115 libname_spec='$name' 9116 shrext_cmds=".dll" 9117 need_lib_prefix=no 9118 library_names_spec='$libname${shared_ext} $libname.a' 9119 dynamic_linker='OS/2 ld.exe' 9120 shlibpath_var=LIBPATH 9121 ;; 9122 9123osf3* | osf4* | osf5*) 9124 version_type=osf 9125 need_lib_prefix=no 9126 need_version=no 9127 soname_spec='${libname}${release}${shared_ext}$major' 9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9129 shlibpath_var=LD_LIBRARY_PATH 9130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9132 ;; 9133 9134rdos*) 9135 dynamic_linker=no 9136 ;; 9137 9138solaris*) 9139 version_type=linux 9140 need_lib_prefix=no 9141 need_version=no 9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9143 soname_spec='${libname}${release}${shared_ext}$major' 9144 shlibpath_var=LD_LIBRARY_PATH 9145 shlibpath_overrides_runpath=yes 9146 hardcode_into_libs=yes 9147 # ldd complains unless libraries are executable 9148 postinstall_cmds='chmod +x $lib' 9149 ;; 9150 9151sunos4*) 9152 version_type=sunos 9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9155 shlibpath_var=LD_LIBRARY_PATH 9156 shlibpath_overrides_runpath=yes 9157 if test "$with_gnu_ld" = yes; then 9158 need_lib_prefix=no 9159 fi 9160 need_version=yes 9161 ;; 9162 9163sysv4 | sysv4.3*) 9164 version_type=linux 9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9166 soname_spec='${libname}${release}${shared_ext}$major' 9167 shlibpath_var=LD_LIBRARY_PATH 9168 case $host_vendor in 9169 sni) 9170 shlibpath_overrides_runpath=no 9171 need_lib_prefix=no 9172 export_dynamic_flag_spec='${wl}-Blargedynsym' 9173 runpath_var=LD_RUN_PATH 9174 ;; 9175 siemens) 9176 need_lib_prefix=no 9177 ;; 9178 motorola) 9179 need_lib_prefix=no 9180 need_version=no 9181 shlibpath_overrides_runpath=no 9182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9183 ;; 9184 esac 9185 ;; 9186 9187sysv4*MP*) 9188 if test -d /usr/nec ;then 9189 version_type=linux 9190 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9191 soname_spec='$libname${shared_ext}.$major' 9192 shlibpath_var=LD_LIBRARY_PATH 9193 fi 9194 ;; 9195 9196sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9197 version_type=freebsd-elf 9198 need_lib_prefix=no 9199 need_version=no 9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9201 soname_spec='${libname}${release}${shared_ext}$major' 9202 shlibpath_var=LD_LIBRARY_PATH 9203 hardcode_into_libs=yes 9204 if test "$with_gnu_ld" = yes; then 9205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9206 shlibpath_overrides_runpath=no 9207 else 9208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9209 shlibpath_overrides_runpath=yes 9210 case $host_os in 9211 sco3.2v5*) 9212 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9213 ;; 9214 esac 9215 fi 9216 sys_lib_dlsearch_path_spec='/usr/lib' 9217 ;; 9218 9219uts4*) 9220 version_type=linux 9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9222 soname_spec='${libname}${release}${shared_ext}$major' 9223 shlibpath_var=LD_LIBRARY_PATH 9224 ;; 9225 9226*) 9227 dynamic_linker=no 9228 ;; 9229esac 9230{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9231echo "${ECHO_T}$dynamic_linker" >&6; } 9232test "$dynamic_linker" = no && can_build_shared=no 9233 9234variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9235if test "$GCC" = yes; then 9236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9237fi 9238 9239{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9240echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9241hardcode_action= 9242if test -n "$hardcode_libdir_flag_spec" || \ 9243 test -n "$runpath_var" || \ 9244 test "X$hardcode_automatic" = "Xyes" ; then 9245 9246 # We can hardcode non-existant directories. 9247 if test "$hardcode_direct" != no && 9248 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9249 # have to relink, otherwise we might link with an installed library 9250 # when we should be linking with a yet-to-be-installed one 9251 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9252 test "$hardcode_minus_L" != no; then 9253 # Linking always hardcodes the temporary library directory. 9254 hardcode_action=relink 9255 else 9256 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9257 hardcode_action=immediate 9258 fi 9259else 9260 # We cannot hardcode anything, or else we can only hardcode existing 9261 # directories. 9262 hardcode_action=unsupported 9263fi 9264{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9265echo "${ECHO_T}$hardcode_action" >&6; } 9266 9267if test "$hardcode_action" = relink; then 9268 # Fast installation is not supported 9269 enable_fast_install=no 9270elif test "$shlibpath_overrides_runpath" = yes || 9271 test "$enable_shared" = no; then 9272 # Fast installation is not necessary 9273 enable_fast_install=needless 9274fi 9275 9276striplib= 9277old_striplib= 9278{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9279echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9280if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9281 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9282 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9283 { echo "$as_me:$LINENO: result: yes" >&5 9284echo "${ECHO_T}yes" >&6; } 9285else 9286# FIXME - insert some real tests, host_os isn't really good enough 9287 case $host_os in 9288 darwin*) 9289 if test -n "$STRIP" ; then 9290 striplib="$STRIP -x" 9291 old_striplib="$STRIP -S" 9292 { echo "$as_me:$LINENO: result: yes" >&5 9293echo "${ECHO_T}yes" >&6; } 9294 else 9295 { echo "$as_me:$LINENO: result: no" >&5 9296echo "${ECHO_T}no" >&6; } 9297fi 9298 ;; 9299 *) 9300 { echo "$as_me:$LINENO: result: no" >&5 9301echo "${ECHO_T}no" >&6; } 9302 ;; 9303 esac 9304fi 9305 9306if test "x$enable_dlopen" != xyes; then 9307 enable_dlopen=unknown 9308 enable_dlopen_self=unknown 9309 enable_dlopen_self_static=unknown 9310else 9311 lt_cv_dlopen=no 9312 lt_cv_dlopen_libs= 9313 9314 case $host_os in 9315 beos*) 9316 lt_cv_dlopen="load_add_on" 9317 lt_cv_dlopen_libs= 9318 lt_cv_dlopen_self=yes 9319 ;; 9320 9321 mingw* | pw32*) 9322 lt_cv_dlopen="LoadLibrary" 9323 lt_cv_dlopen_libs= 9324 ;; 9325 9326 cygwin*) 9327 lt_cv_dlopen="dlopen" 9328 lt_cv_dlopen_libs= 9329 ;; 9330 9331 darwin*) 9332 # if libdl is installed we need to link against it 9333 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9334echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9335if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9336 echo $ECHO_N "(cached) $ECHO_C" >&6 9337else 9338 ac_check_lib_save_LIBS=$LIBS 9339LIBS="-ldl $LIBS" 9340cat >conftest.$ac_ext <<_ACEOF 9341/* confdefs.h. */ 9342_ACEOF 9343cat confdefs.h >>conftest.$ac_ext 9344cat >>conftest.$ac_ext <<_ACEOF 9345/* end confdefs.h. */ 9346 9347/* Override any GCC internal prototype to avoid an error. 9348 Use char because int might match the return type of a GCC 9349 builtin and then its argument prototype would still apply. */ 9350#ifdef __cplusplus 9351extern "C" 9352#endif 9353char dlopen (); 9354int 9355main () 9356{ 9357return dlopen (); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362rm -f conftest.$ac_objext conftest$ac_exeext 9363if { (ac_try="$ac_link" 9364case "(($ac_try" in 9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9366 *) ac_try_echo=$ac_try;; 9367esac 9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9369 (eval "$ac_link") 2>conftest.er1 9370 ac_status=$? 9371 grep -v '^ *+' conftest.er1 >conftest.err 9372 rm -f conftest.er1 9373 cat conftest.err >&5 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 (exit $ac_status); } && { 9376 test -z "$ac_c_werror_flag" || 9377 test ! -s conftest.err 9378 } && test -s conftest$ac_exeext && 9379 $as_test_x conftest$ac_exeext; then 9380 ac_cv_lib_dl_dlopen=yes 9381else 9382 echo "$as_me: failed program was:" >&5 9383sed 's/^/| /' conftest.$ac_ext >&5 9384 9385 ac_cv_lib_dl_dlopen=no 9386fi 9387 9388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9389 conftest$ac_exeext conftest.$ac_ext 9390LIBS=$ac_check_lib_save_LIBS 9391fi 9392{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9393echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9394if test $ac_cv_lib_dl_dlopen = yes; then 9395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9396else 9397 9398 lt_cv_dlopen="dyld" 9399 lt_cv_dlopen_libs= 9400 lt_cv_dlopen_self=yes 9401 9402fi 9403 9404 ;; 9405 9406 *) 9407 { echo "$as_me:$LINENO: checking for shl_load" >&5 9408echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9409if test "${ac_cv_func_shl_load+set}" = set; then 9410 echo $ECHO_N "(cached) $ECHO_C" >&6 9411else 9412 cat >conftest.$ac_ext <<_ACEOF 9413/* confdefs.h. */ 9414_ACEOF 9415cat confdefs.h >>conftest.$ac_ext 9416cat >>conftest.$ac_ext <<_ACEOF 9417/* end confdefs.h. */ 9418/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9419 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9420#define shl_load innocuous_shl_load 9421 9422/* System header to define __stub macros and hopefully few prototypes, 9423 which can conflict with char shl_load (); below. 9424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9425 <limits.h> exists even on freestanding compilers. */ 9426 9427#ifdef __STDC__ 9428# include <limits.h> 9429#else 9430# include <assert.h> 9431#endif 9432 9433#undef shl_load 9434 9435/* Override any GCC internal prototype to avoid an error. 9436 Use char because int might match the return type of a GCC 9437 builtin and then its argument prototype would still apply. */ 9438#ifdef __cplusplus 9439extern "C" 9440#endif 9441char shl_load (); 9442/* The GNU C library defines this for functions which it implements 9443 to always fail with ENOSYS. Some functions are actually named 9444 something starting with __ and the normal name is an alias. */ 9445#if defined __stub_shl_load || defined __stub___shl_load 9446choke me 9447#endif 9448 9449int 9450main () 9451{ 9452return shl_load (); 9453 ; 9454 return 0; 9455} 9456_ACEOF 9457rm -f conftest.$ac_objext conftest$ac_exeext 9458if { (ac_try="$ac_link" 9459case "(($ac_try" in 9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9461 *) ac_try_echo=$ac_try;; 9462esac 9463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9464 (eval "$ac_link") 2>conftest.er1 9465 ac_status=$? 9466 grep -v '^ *+' conftest.er1 >conftest.err 9467 rm -f conftest.er1 9468 cat conftest.err >&5 9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9470 (exit $ac_status); } && { 9471 test -z "$ac_c_werror_flag" || 9472 test ! -s conftest.err 9473 } && test -s conftest$ac_exeext && 9474 $as_test_x conftest$ac_exeext; then 9475 ac_cv_func_shl_load=yes 9476else 9477 echo "$as_me: failed program was:" >&5 9478sed 's/^/| /' conftest.$ac_ext >&5 9479 9480 ac_cv_func_shl_load=no 9481fi 9482 9483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9484 conftest$ac_exeext conftest.$ac_ext 9485fi 9486{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9487echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9488if test $ac_cv_func_shl_load = yes; then 9489 lt_cv_dlopen="shl_load" 9490else 9491 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9492echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9493if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9494 echo $ECHO_N "(cached) $ECHO_C" >&6 9495else 9496 ac_check_lib_save_LIBS=$LIBS 9497LIBS="-ldld $LIBS" 9498cat >conftest.$ac_ext <<_ACEOF 9499/* confdefs.h. */ 9500_ACEOF 9501cat confdefs.h >>conftest.$ac_ext 9502cat >>conftest.$ac_ext <<_ACEOF 9503/* end confdefs.h. */ 9504 9505/* Override any GCC internal prototype to avoid an error. 9506 Use char because int might match the return type of a GCC 9507 builtin and then its argument prototype would still apply. */ 9508#ifdef __cplusplus 9509extern "C" 9510#endif 9511char shl_load (); 9512int 9513main () 9514{ 9515return shl_load (); 9516 ; 9517 return 0; 9518} 9519_ACEOF 9520rm -f conftest.$ac_objext conftest$ac_exeext 9521if { (ac_try="$ac_link" 9522case "(($ac_try" in 9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9524 *) ac_try_echo=$ac_try;; 9525esac 9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9527 (eval "$ac_link") 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && { 9534 test -z "$ac_c_werror_flag" || 9535 test ! -s conftest.err 9536 } && test -s conftest$ac_exeext && 9537 $as_test_x conftest$ac_exeext; then 9538 ac_cv_lib_dld_shl_load=yes 9539else 9540 echo "$as_me: failed program was:" >&5 9541sed 's/^/| /' conftest.$ac_ext >&5 9542 9543 ac_cv_lib_dld_shl_load=no 9544fi 9545 9546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9547 conftest$ac_exeext conftest.$ac_ext 9548LIBS=$ac_check_lib_save_LIBS 9549fi 9550{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9551echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9552if test $ac_cv_lib_dld_shl_load = yes; then 9553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9554else 9555 { echo "$as_me:$LINENO: checking for dlopen" >&5 9556echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9557if test "${ac_cv_func_dlopen+set}" = set; then 9558 echo $ECHO_N "(cached) $ECHO_C" >&6 9559else 9560 cat >conftest.$ac_ext <<_ACEOF 9561/* confdefs.h. */ 9562_ACEOF 9563cat confdefs.h >>conftest.$ac_ext 9564cat >>conftest.$ac_ext <<_ACEOF 9565/* end confdefs.h. */ 9566/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9567 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9568#define dlopen innocuous_dlopen 9569 9570/* System header to define __stub macros and hopefully few prototypes, 9571 which can conflict with char dlopen (); below. 9572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9573 <limits.h> exists even on freestanding compilers. */ 9574 9575#ifdef __STDC__ 9576# include <limits.h> 9577#else 9578# include <assert.h> 9579#endif 9580 9581#undef dlopen 9582 9583/* Override any GCC internal prototype to avoid an error. 9584 Use char because int might match the return type of a GCC 9585 builtin and then its argument prototype would still apply. */ 9586#ifdef __cplusplus 9587extern "C" 9588#endif 9589char dlopen (); 9590/* The GNU C library defines this for functions which it implements 9591 to always fail with ENOSYS. Some functions are actually named 9592 something starting with __ and the normal name is an alias. */ 9593#if defined __stub_dlopen || defined __stub___dlopen 9594choke me 9595#endif 9596 9597int 9598main () 9599{ 9600return dlopen (); 9601 ; 9602 return 0; 9603} 9604_ACEOF 9605rm -f conftest.$ac_objext conftest$ac_exeext 9606if { (ac_try="$ac_link" 9607case "(($ac_try" in 9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9609 *) ac_try_echo=$ac_try;; 9610esac 9611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9612 (eval "$ac_link") 2>conftest.er1 9613 ac_status=$? 9614 grep -v '^ *+' conftest.er1 >conftest.err 9615 rm -f conftest.er1 9616 cat conftest.err >&5 9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9618 (exit $ac_status); } && { 9619 test -z "$ac_c_werror_flag" || 9620 test ! -s conftest.err 9621 } && test -s conftest$ac_exeext && 9622 $as_test_x conftest$ac_exeext; then 9623 ac_cv_func_dlopen=yes 9624else 9625 echo "$as_me: failed program was:" >&5 9626sed 's/^/| /' conftest.$ac_ext >&5 9627 9628 ac_cv_func_dlopen=no 9629fi 9630 9631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9632 conftest$ac_exeext conftest.$ac_ext 9633fi 9634{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9635echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9636if test $ac_cv_func_dlopen = yes; then 9637 lt_cv_dlopen="dlopen" 9638else 9639 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9640echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9641if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9642 echo $ECHO_N "(cached) $ECHO_C" >&6 9643else 9644 ac_check_lib_save_LIBS=$LIBS 9645LIBS="-ldl $LIBS" 9646cat >conftest.$ac_ext <<_ACEOF 9647/* confdefs.h. */ 9648_ACEOF 9649cat confdefs.h >>conftest.$ac_ext 9650cat >>conftest.$ac_ext <<_ACEOF 9651/* end confdefs.h. */ 9652 9653/* Override any GCC internal prototype to avoid an error. 9654 Use char because int might match the return type of a GCC 9655 builtin and then its argument prototype would still apply. */ 9656#ifdef __cplusplus 9657extern "C" 9658#endif 9659char dlopen (); 9660int 9661main () 9662{ 9663return dlopen (); 9664 ; 9665 return 0; 9666} 9667_ACEOF 9668rm -f conftest.$ac_objext conftest$ac_exeext 9669if { (ac_try="$ac_link" 9670case "(($ac_try" in 9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9672 *) ac_try_echo=$ac_try;; 9673esac 9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9675 (eval "$ac_link") 2>conftest.er1 9676 ac_status=$? 9677 grep -v '^ *+' conftest.er1 >conftest.err 9678 rm -f conftest.er1 9679 cat conftest.err >&5 9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9681 (exit $ac_status); } && { 9682 test -z "$ac_c_werror_flag" || 9683 test ! -s conftest.err 9684 } && test -s conftest$ac_exeext && 9685 $as_test_x conftest$ac_exeext; then 9686 ac_cv_lib_dl_dlopen=yes 9687else 9688 echo "$as_me: failed program was:" >&5 9689sed 's/^/| /' conftest.$ac_ext >&5 9690 9691 ac_cv_lib_dl_dlopen=no 9692fi 9693 9694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9695 conftest$ac_exeext conftest.$ac_ext 9696LIBS=$ac_check_lib_save_LIBS 9697fi 9698{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9699echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9700if test $ac_cv_lib_dl_dlopen = yes; then 9701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9702else 9703 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9704echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9705if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9706 echo $ECHO_N "(cached) $ECHO_C" >&6 9707else 9708 ac_check_lib_save_LIBS=$LIBS 9709LIBS="-lsvld $LIBS" 9710cat >conftest.$ac_ext <<_ACEOF 9711/* confdefs.h. */ 9712_ACEOF 9713cat confdefs.h >>conftest.$ac_ext 9714cat >>conftest.$ac_ext <<_ACEOF 9715/* end confdefs.h. */ 9716 9717/* Override any GCC internal prototype to avoid an error. 9718 Use char because int might match the return type of a GCC 9719 builtin and then its argument prototype would still apply. */ 9720#ifdef __cplusplus 9721extern "C" 9722#endif 9723char dlopen (); 9724int 9725main () 9726{ 9727return dlopen (); 9728 ; 9729 return 0; 9730} 9731_ACEOF 9732rm -f conftest.$ac_objext conftest$ac_exeext 9733if { (ac_try="$ac_link" 9734case "(($ac_try" in 9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9736 *) ac_try_echo=$ac_try;; 9737esac 9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9739 (eval "$ac_link") 2>conftest.er1 9740 ac_status=$? 9741 grep -v '^ *+' conftest.er1 >conftest.err 9742 rm -f conftest.er1 9743 cat conftest.err >&5 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 (exit $ac_status); } && { 9746 test -z "$ac_c_werror_flag" || 9747 test ! -s conftest.err 9748 } && test -s conftest$ac_exeext && 9749 $as_test_x conftest$ac_exeext; then 9750 ac_cv_lib_svld_dlopen=yes 9751else 9752 echo "$as_me: failed program was:" >&5 9753sed 's/^/| /' conftest.$ac_ext >&5 9754 9755 ac_cv_lib_svld_dlopen=no 9756fi 9757 9758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9759 conftest$ac_exeext conftest.$ac_ext 9760LIBS=$ac_check_lib_save_LIBS 9761fi 9762{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9763echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9764if test $ac_cv_lib_svld_dlopen = yes; then 9765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9766else 9767 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9768echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9769if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9770 echo $ECHO_N "(cached) $ECHO_C" >&6 9771else 9772 ac_check_lib_save_LIBS=$LIBS 9773LIBS="-ldld $LIBS" 9774cat >conftest.$ac_ext <<_ACEOF 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780 9781/* Override any GCC internal prototype to avoid an error. 9782 Use char because int might match the return type of a GCC 9783 builtin and then its argument prototype would still apply. */ 9784#ifdef __cplusplus 9785extern "C" 9786#endif 9787char dld_link (); 9788int 9789main () 9790{ 9791return dld_link (); 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796rm -f conftest.$ac_objext conftest$ac_exeext 9797if { (ac_try="$ac_link" 9798case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801esac 9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_link") 2>conftest.er1 9804 ac_status=$? 9805 grep -v '^ *+' conftest.er1 >conftest.err 9806 rm -f conftest.er1 9807 cat conftest.err >&5 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9809 (exit $ac_status); } && { 9810 test -z "$ac_c_werror_flag" || 9811 test ! -s conftest.err 9812 } && test -s conftest$ac_exeext && 9813 $as_test_x conftest$ac_exeext; then 9814 ac_cv_lib_dld_dld_link=yes 9815else 9816 echo "$as_me: failed program was:" >&5 9817sed 's/^/| /' conftest.$ac_ext >&5 9818 9819 ac_cv_lib_dld_dld_link=no 9820fi 9821 9822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9823 conftest$ac_exeext conftest.$ac_ext 9824LIBS=$ac_check_lib_save_LIBS 9825fi 9826{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9827echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9828if test $ac_cv_lib_dld_dld_link = yes; then 9829 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9830fi 9831 9832 9833fi 9834 9835 9836fi 9837 9838 9839fi 9840 9841 9842fi 9843 9844 9845fi 9846 9847 ;; 9848 esac 9849 9850 if test "x$lt_cv_dlopen" != xno; then 9851 enable_dlopen=yes 9852 else 9853 enable_dlopen=no 9854 fi 9855 9856 case $lt_cv_dlopen in 9857 dlopen) 9858 save_CPPFLAGS="$CPPFLAGS" 9859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9860 9861 save_LDFLAGS="$LDFLAGS" 9862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9863 9864 save_LIBS="$LIBS" 9865 LIBS="$lt_cv_dlopen_libs $LIBS" 9866 9867 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9868echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9869if test "${lt_cv_dlopen_self+set}" = set; then 9870 echo $ECHO_N "(cached) $ECHO_C" >&6 9871else 9872 if test "$cross_compiling" = yes; then : 9873 lt_cv_dlopen_self=cross 9874else 9875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9876 lt_status=$lt_dlunknown 9877 cat > conftest.$ac_ext <<EOF 9878#line 9878 "configure" 9879#include "confdefs.h" 9880 9881#if HAVE_DLFCN_H 9882#include <dlfcn.h> 9883#endif 9884 9885#include <stdio.h> 9886 9887#ifdef RTLD_GLOBAL 9888# define LT_DLGLOBAL RTLD_GLOBAL 9889#else 9890# ifdef DL_GLOBAL 9891# define LT_DLGLOBAL DL_GLOBAL 9892# else 9893# define LT_DLGLOBAL 0 9894# endif 9895#endif 9896 9897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9898 find out it does not work in some platform. */ 9899#ifndef LT_DLLAZY_OR_NOW 9900# ifdef RTLD_LAZY 9901# define LT_DLLAZY_OR_NOW RTLD_LAZY 9902# else 9903# ifdef DL_LAZY 9904# define LT_DLLAZY_OR_NOW DL_LAZY 9905# else 9906# ifdef RTLD_NOW 9907# define LT_DLLAZY_OR_NOW RTLD_NOW 9908# else 9909# ifdef DL_NOW 9910# define LT_DLLAZY_OR_NOW DL_NOW 9911# else 9912# define LT_DLLAZY_OR_NOW 0 9913# endif 9914# endif 9915# endif 9916# endif 9917#endif 9918 9919#ifdef __cplusplus 9920extern "C" void exit (int); 9921#endif 9922 9923void fnord() { int i=42;} 9924int main () 9925{ 9926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9927 int status = $lt_dlunknown; 9928 9929 if (self) 9930 { 9931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9933 /* dlclose (self); */ 9934 } 9935 else 9936 puts (dlerror ()); 9937 9938 exit (status); 9939} 9940EOF 9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9942 (eval $ac_link) 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9946 (./conftest; exit; ) >&5 2>/dev/null 9947 lt_status=$? 9948 case x$lt_status in 9949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9951 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9952 esac 9953 else : 9954 # compilation failed 9955 lt_cv_dlopen_self=no 9956 fi 9957fi 9958rm -fr conftest* 9959 9960 9961fi 9962{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9963echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9964 9965 if test "x$lt_cv_dlopen_self" = xyes; then 9966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9967 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9968echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9969if test "${lt_cv_dlopen_self_static+set}" = set; then 9970 echo $ECHO_N "(cached) $ECHO_C" >&6 9971else 9972 if test "$cross_compiling" = yes; then : 9973 lt_cv_dlopen_self_static=cross 9974else 9975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9976 lt_status=$lt_dlunknown 9977 cat > conftest.$ac_ext <<EOF 9978#line 9978 "configure" 9979#include "confdefs.h" 9980 9981#if HAVE_DLFCN_H 9982#include <dlfcn.h> 9983#endif 9984 9985#include <stdio.h> 9986 9987#ifdef RTLD_GLOBAL 9988# define LT_DLGLOBAL RTLD_GLOBAL 9989#else 9990# ifdef DL_GLOBAL 9991# define LT_DLGLOBAL DL_GLOBAL 9992# else 9993# define LT_DLGLOBAL 0 9994# endif 9995#endif 9996 9997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9998 find out it does not work in some platform. */ 9999#ifndef LT_DLLAZY_OR_NOW 10000# ifdef RTLD_LAZY 10001# define LT_DLLAZY_OR_NOW RTLD_LAZY 10002# else 10003# ifdef DL_LAZY 10004# define LT_DLLAZY_OR_NOW DL_LAZY 10005# else 10006# ifdef RTLD_NOW 10007# define LT_DLLAZY_OR_NOW RTLD_NOW 10008# else 10009# ifdef DL_NOW 10010# define LT_DLLAZY_OR_NOW DL_NOW 10011# else 10012# define LT_DLLAZY_OR_NOW 0 10013# endif 10014# endif 10015# endif 10016# endif 10017#endif 10018 10019#ifdef __cplusplus 10020extern "C" void exit (int); 10021#endif 10022 10023void fnord() { int i=42;} 10024int main () 10025{ 10026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10027 int status = $lt_dlunknown; 10028 10029 if (self) 10030 { 10031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10033 /* dlclose (self); */ 10034 } 10035 else 10036 puts (dlerror ()); 10037 10038 exit (status); 10039} 10040EOF 10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10042 (eval $ac_link) 2>&5 10043 ac_status=$? 10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10046 (./conftest; exit; ) >&5 2>/dev/null 10047 lt_status=$? 10048 case x$lt_status in 10049 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10050 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10051 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10052 esac 10053 else : 10054 # compilation failed 10055 lt_cv_dlopen_self_static=no 10056 fi 10057fi 10058rm -fr conftest* 10059 10060 10061fi 10062{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10063echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10064 fi 10065 10066 CPPFLAGS="$save_CPPFLAGS" 10067 LDFLAGS="$save_LDFLAGS" 10068 LIBS="$save_LIBS" 10069 ;; 10070 esac 10071 10072 case $lt_cv_dlopen_self in 10073 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10074 *) enable_dlopen_self=unknown ;; 10075 esac 10076 10077 case $lt_cv_dlopen_self_static in 10078 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10079 *) enable_dlopen_self_static=unknown ;; 10080 esac 10081fi 10082 10083 10084# Report which library types will actually be built 10085{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10086echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10087{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10088echo "${ECHO_T}$can_build_shared" >&6; } 10089 10090{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10091echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10092test "$can_build_shared" = "no" && enable_shared=no 10093 10094# On AIX, shared libraries and static libraries use the same namespace, and 10095# are all built from PIC. 10096case $host_os in 10097aix3*) 10098 test "$enable_shared" = yes && enable_static=no 10099 if test -n "$RANLIB"; then 10100 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10101 postinstall_cmds='$RANLIB $lib' 10102 fi 10103 ;; 10104 10105aix4* | aix5*) 10106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10107 test "$enable_shared" = yes && enable_static=no 10108 fi 10109 ;; 10110esac 10111{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10112echo "${ECHO_T}$enable_shared" >&6; } 10113 10114{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10115echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10116# Make sure either enable_shared or enable_static is yes. 10117test "$enable_shared" = yes || enable_static=yes 10118{ echo "$as_me:$LINENO: result: $enable_static" >&5 10119echo "${ECHO_T}$enable_static" >&6; } 10120 10121# The else clause should only fire when bootstrapping the 10122# libtool distribution, otherwise you forgot to ship ltmain.sh 10123# with your package, and you will get complaints that there are 10124# no rules to generate ltmain.sh. 10125if test -f "$ltmain"; then 10126 # See if we are running on zsh, and set the options which allow our commands through 10127 # without removal of \ escapes. 10128 if test -n "${ZSH_VERSION+set}" ; then 10129 setopt NO_GLOB_SUBST 10130 fi 10131 # Now quote all the things that may contain metacharacters while being 10132 # careful not to overquote the AC_SUBSTed values. We take copies of the 10133 # variables and quote the copies for generation of the libtool script. 10134 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10135 SED SHELL STRIP \ 10136 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10137 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10138 deplibs_check_method reload_flag reload_cmds need_locks \ 10139 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10140 lt_cv_sys_global_symbol_to_c_name_address \ 10141 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10142 old_postinstall_cmds old_postuninstall_cmds \ 10143 compiler \ 10144 CC \ 10145 LD \ 10146 lt_prog_compiler_wl \ 10147 lt_prog_compiler_pic \ 10148 lt_prog_compiler_static \ 10149 lt_prog_compiler_no_builtin_flag \ 10150 export_dynamic_flag_spec \ 10151 thread_safe_flag_spec \ 10152 whole_archive_flag_spec \ 10153 enable_shared_with_static_runtimes \ 10154 old_archive_cmds \ 10155 old_archive_from_new_cmds \ 10156 predep_objects \ 10157 postdep_objects \ 10158 predeps \ 10159 postdeps \ 10160 compiler_lib_search_path \ 10161 archive_cmds \ 10162 archive_expsym_cmds \ 10163 postinstall_cmds \ 10164 postuninstall_cmds \ 10165 old_archive_from_expsyms_cmds \ 10166 allow_undefined_flag \ 10167 no_undefined_flag \ 10168 export_symbols_cmds \ 10169 hardcode_libdir_flag_spec \ 10170 hardcode_libdir_flag_spec_ld \ 10171 hardcode_libdir_separator \ 10172 hardcode_automatic \ 10173 module_cmds \ 10174 module_expsym_cmds \ 10175 lt_cv_prog_compiler_c_o \ 10176 fix_srcfile_path \ 10177 exclude_expsyms \ 10178 include_expsyms; do 10179 10180 case $var in 10181 old_archive_cmds | \ 10182 old_archive_from_new_cmds | \ 10183 archive_cmds | \ 10184 archive_expsym_cmds | \ 10185 module_cmds | \ 10186 module_expsym_cmds | \ 10187 old_archive_from_expsyms_cmds | \ 10188 export_symbols_cmds | \ 10189 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10190 postinstall_cmds | postuninstall_cmds | \ 10191 old_postinstall_cmds | old_postuninstall_cmds | \ 10192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10193 # Double-quote double-evaled strings. 10194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10195 ;; 10196 *) 10197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10198 ;; 10199 esac 10200 done 10201 10202 case $lt_echo in 10203 *'\$0 --fallback-echo"') 10204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10205 ;; 10206 esac 10207 10208cfgfile="${ofile}T" 10209 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10210 $rm -f "$cfgfile" 10211 { echo "$as_me:$LINENO: creating $ofile" >&5 10212echo "$as_me: creating $ofile" >&6;} 10213 10214 cat <<__EOF__ >> "$cfgfile" 10215#! $SHELL 10216 10217# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10218# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10219# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10220# 10221# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10222# Free Software Foundation, Inc. 10223# 10224# This file is part of GNU Libtool: 10225# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10226# 10227# This program is free software; you can redistribute it and/or modify 10228# it under the terms of the GNU General Public License as published by 10229# the Free Software Foundation; either version 2 of the License, or 10230# (at your option) any later version. 10231# 10232# This program is distributed in the hope that it will be useful, but 10233# WITHOUT ANY WARRANTY; without even the implied warranty of 10234# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10235# General Public License for more details. 10236# 10237# You should have received a copy of the GNU General Public License 10238# along with this program; if not, write to the Free Software 10239# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10240# 10241# As a special exception to the GNU General Public License, if you 10242# distribute this file as part of a program that contains a 10243# configuration script generated by Autoconf, you may include it under 10244# the same distribution terms that you use for the rest of that program. 10245 10246# A sed program that does not truncate output. 10247SED=$lt_SED 10248 10249# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10250Xsed="$SED -e 1s/^X//" 10251 10252# The HP-UX ksh and POSIX shell print the target directory to stdout 10253# if CDPATH is set. 10254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10255 10256# The names of the tagged configurations supported by this script. 10257available_tags= 10258 10259# ### BEGIN LIBTOOL CONFIG 10260 10261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10262 10263# Shell to use when invoking shell scripts. 10264SHELL=$lt_SHELL 10265 10266# Whether or not to build shared libraries. 10267build_libtool_libs=$enable_shared 10268 10269# Whether or not to build static libraries. 10270build_old_libs=$enable_static 10271 10272# Whether or not to add -lc for building shared libraries. 10273build_libtool_need_lc=$archive_cmds_need_lc 10274 10275# Whether or not to disallow shared libs when runtime libs are static 10276allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10277 10278# Whether or not to optimize for fast installation. 10279fast_install=$enable_fast_install 10280 10281# The host system. 10282host_alias=$host_alias 10283host=$host 10284host_os=$host_os 10285 10286# The build system. 10287build_alias=$build_alias 10288build=$build 10289build_os=$build_os 10290 10291# An echo program that does not interpret backslashes. 10292echo=$lt_echo 10293 10294# The archiver. 10295AR=$lt_AR 10296AR_FLAGS=$lt_AR_FLAGS 10297 10298# A C compiler. 10299LTCC=$lt_LTCC 10300 10301# LTCC compiler flags. 10302LTCFLAGS=$lt_LTCFLAGS 10303 10304# A language-specific compiler. 10305CC=$lt_compiler 10306 10307# Is the compiler the GNU C compiler? 10308with_gcc=$GCC 10309 10310# An ERE matcher. 10311EGREP=$lt_EGREP 10312 10313# The linker used to build libraries. 10314LD=$lt_LD 10315 10316# Whether we need hard or soft links. 10317LN_S=$lt_LN_S 10318 10319# A BSD-compatible nm program. 10320NM=$lt_NM 10321 10322# A symbol stripping program 10323STRIP=$lt_STRIP 10324 10325# Used to examine libraries when file_magic_cmd begins "file" 10326MAGIC_CMD=$MAGIC_CMD 10327 10328# Used on cygwin: DLL creation program. 10329DLLTOOL="$DLLTOOL" 10330 10331# Used on cygwin: object dumper. 10332OBJDUMP="$OBJDUMP" 10333 10334# Used on cygwin: assembler. 10335AS="$AS" 10336 10337# The name of the directory that contains temporary libtool files. 10338objdir=$objdir 10339 10340# How to create reloadable object files. 10341reload_flag=$lt_reload_flag 10342reload_cmds=$lt_reload_cmds 10343 10344# How to pass a linker flag through the compiler. 10345wl=$lt_lt_prog_compiler_wl 10346 10347# Object file suffix (normally "o"). 10348objext="$ac_objext" 10349 10350# Old archive suffix (normally "a"). 10351libext="$libext" 10352 10353# Shared library suffix (normally ".so"). 10354shrext_cmds='$shrext_cmds' 10355 10356# Executable file suffix (normally ""). 10357exeext="$exeext" 10358 10359# Additional compiler flags for building library objects. 10360pic_flag=$lt_lt_prog_compiler_pic 10361pic_mode=$pic_mode 10362 10363# What is the maximum length of a command? 10364max_cmd_len=$lt_cv_sys_max_cmd_len 10365 10366# Does compiler simultaneously support -c and -o options? 10367compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10368 10369# Must we lock files when doing compilation? 10370need_locks=$lt_need_locks 10371 10372# Do we need the lib prefix for modules? 10373need_lib_prefix=$need_lib_prefix 10374 10375# Do we need a version for libraries? 10376need_version=$need_version 10377 10378# Whether dlopen is supported. 10379dlopen_support=$enable_dlopen 10380 10381# Whether dlopen of programs is supported. 10382dlopen_self=$enable_dlopen_self 10383 10384# Whether dlopen of statically linked programs is supported. 10385dlopen_self_static=$enable_dlopen_self_static 10386 10387# Compiler flag to prevent dynamic linking. 10388link_static_flag=$lt_lt_prog_compiler_static 10389 10390# Compiler flag to turn off builtin functions. 10391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10392 10393# Compiler flag to allow reflexive dlopens. 10394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10395 10396# Compiler flag to generate shared objects directly from archives. 10397whole_archive_flag_spec=$lt_whole_archive_flag_spec 10398 10399# Compiler flag to generate thread-safe objects. 10400thread_safe_flag_spec=$lt_thread_safe_flag_spec 10401 10402# Library versioning type. 10403version_type=$version_type 10404 10405# Format of library name prefix. 10406libname_spec=$lt_libname_spec 10407 10408# List of archive names. First name is the real one, the rest are links. 10409# The last name is the one that the linker finds with -lNAME. 10410library_names_spec=$lt_library_names_spec 10411 10412# The coded name of the library, if different from the real name. 10413soname_spec=$lt_soname_spec 10414 10415# Commands used to build and install an old-style archive. 10416RANLIB=$lt_RANLIB 10417old_archive_cmds=$lt_old_archive_cmds 10418old_postinstall_cmds=$lt_old_postinstall_cmds 10419old_postuninstall_cmds=$lt_old_postuninstall_cmds 10420 10421# Create an old-style archive from a shared archive. 10422old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10423 10424# Create a temporary old-style archive to link instead of a shared archive. 10425old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10426 10427# Commands used to build and install a shared archive. 10428archive_cmds=$lt_archive_cmds 10429archive_expsym_cmds=$lt_archive_expsym_cmds 10430postinstall_cmds=$lt_postinstall_cmds 10431postuninstall_cmds=$lt_postuninstall_cmds 10432 10433# Commands used to build a loadable module (assumed same as above if empty) 10434module_cmds=$lt_module_cmds 10435module_expsym_cmds=$lt_module_expsym_cmds 10436 10437# Commands to strip libraries. 10438old_striplib=$lt_old_striplib 10439striplib=$lt_striplib 10440 10441# Dependencies to place before the objects being linked to create a 10442# shared library. 10443predep_objects=$lt_predep_objects 10444 10445# Dependencies to place after the objects being linked to create a 10446# shared library. 10447postdep_objects=$lt_postdep_objects 10448 10449# Dependencies to place before the objects being linked to create a 10450# shared library. 10451predeps=$lt_predeps 10452 10453# Dependencies to place after the objects being linked to create a 10454# shared library. 10455postdeps=$lt_postdeps 10456 10457# The library search path used internally by the compiler when linking 10458# a shared library. 10459compiler_lib_search_path=$lt_compiler_lib_search_path 10460 10461# Method to check whether dependent libraries are shared objects. 10462deplibs_check_method=$lt_deplibs_check_method 10463 10464# Command to use when deplibs_check_method == file_magic. 10465file_magic_cmd=$lt_file_magic_cmd 10466 10467# Flag that allows shared libraries with undefined symbols to be built. 10468allow_undefined_flag=$lt_allow_undefined_flag 10469 10470# Flag that forces no undefined symbols. 10471no_undefined_flag=$lt_no_undefined_flag 10472 10473# Commands used to finish a libtool library installation in a directory. 10474finish_cmds=$lt_finish_cmds 10475 10476# Same as above, but a single script fragment to be evaled but not shown. 10477finish_eval=$lt_finish_eval 10478 10479# Take the output of nm and produce a listing of raw symbols and C names. 10480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10481 10482# Transform the output of nm in a proper C declaration 10483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10484 10485# Transform the output of nm in a C name address pair 10486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10487 10488# This is the shared library runtime path variable. 10489runpath_var=$runpath_var 10490 10491# This is the shared library path variable. 10492shlibpath_var=$shlibpath_var 10493 10494# Is shlibpath searched before the hard-coded library search path? 10495shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10496 10497# How to hardcode a shared library path into an executable. 10498hardcode_action=$hardcode_action 10499 10500# Whether we should hardcode library paths into libraries. 10501hardcode_into_libs=$hardcode_into_libs 10502 10503# Flag to hardcode \$libdir into a binary during linking. 10504# This must work even if \$libdir does not exist. 10505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10506 10507# If ld is used when linking, flag to hardcode \$libdir into 10508# a binary during linking. This must work even if \$libdir does 10509# not exist. 10510hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10511 10512# Whether we need a single -rpath flag with a separated argument. 10513hardcode_libdir_separator=$lt_hardcode_libdir_separator 10514 10515# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10516# resulting binary. 10517hardcode_direct=$hardcode_direct 10518 10519# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10520# resulting binary. 10521hardcode_minus_L=$hardcode_minus_L 10522 10523# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10524# the resulting binary. 10525hardcode_shlibpath_var=$hardcode_shlibpath_var 10526 10527# Set to yes if building a shared library automatically hardcodes DIR into the library 10528# and all subsequent libraries and executables linked against it. 10529hardcode_automatic=$hardcode_automatic 10530 10531# Variables whose values should be saved in libtool wrapper scripts and 10532# restored at relink time. 10533variables_saved_for_relink="$variables_saved_for_relink" 10534 10535# Whether libtool must link a program against all its dependency libraries. 10536link_all_deplibs=$link_all_deplibs 10537 10538# Compile-time system search path for libraries 10539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10540 10541# Run-time system search path for libraries 10542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10543 10544# Fix the shell variable \$srcfile for the compiler. 10545fix_srcfile_path=$lt_fix_srcfile_path 10546 10547# Set to yes if exported symbols are required. 10548always_export_symbols=$always_export_symbols 10549 10550# The commands to list exported symbols. 10551export_symbols_cmds=$lt_export_symbols_cmds 10552 10553# The commands to extract the exported symbol list from a shared archive. 10554extract_expsyms_cmds=$lt_extract_expsyms_cmds 10555 10556# Symbols that should not be listed in the preloaded symbols. 10557exclude_expsyms=$lt_exclude_expsyms 10558 10559# Symbols that must always be exported. 10560include_expsyms=$lt_include_expsyms 10561 10562# ### END LIBTOOL CONFIG 10563 10564__EOF__ 10565 10566 10567 case $host_os in 10568 aix3*) 10569 cat <<\EOF >> "$cfgfile" 10570 10571# AIX sometimes has problems with the GCC collect2 program. For some 10572# reason, if we set the COLLECT_NAMES environment variable, the problems 10573# vanish in a puff of smoke. 10574if test "X${COLLECT_NAMES+set}" != Xset; then 10575 COLLECT_NAMES= 10576 export COLLECT_NAMES 10577fi 10578EOF 10579 ;; 10580 esac 10581 10582 # We use sed instead of cat because bash on DJGPP gets confused if 10583 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10584 # text mode, it properly converts lines to CR/LF. This bash problem 10585 # is reportedly fixed, but why not run on old versions too? 10586 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10587 10588 mv -f "$cfgfile" "$ofile" || \ 10589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10590 chmod +x "$ofile" 10591 10592else 10593 # If there is no Makefile yet, we rely on a make rule to execute 10594 # `config.status --recheck' to rerun these tests and create the 10595 # libtool script then. 10596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10597 if test -f "$ltmain_in"; then 10598 test -f Makefile && make "$ltmain" 10599 fi 10600fi 10601 10602 10603ac_ext=c 10604ac_cpp='$CPP $CPPFLAGS' 10605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10607ac_compiler_gnu=$ac_cv_c_compiler_gnu 10608 10609CC="$lt_save_CC" 10610 10611 10612# Check whether --with-tags was given. 10613if test "${with_tags+set}" = set; then 10614 withval=$with_tags; tagnames="$withval" 10615fi 10616 10617 10618if test -f "$ltmain" && test -n "$tagnames"; then 10619 if test ! -f "${ofile}"; then 10620 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10621echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10622 fi 10623 10624 if test -z "$LTCC"; then 10625 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10626 if test -z "$LTCC"; then 10627 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10628echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10629 else 10630 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10631echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10632 fi 10633 fi 10634 if test -z "$LTCFLAGS"; then 10635 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10636 fi 10637 10638 # Extract list of available tagged configurations in $ofile. 10639 # Note that this assumes the entire list is on one line. 10640 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10641 10642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10643 for tagname in $tagnames; do 10644 IFS="$lt_save_ifs" 10645 # Check whether tagname contains only valid characters 10646 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10647 "") ;; 10648 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10649echo "$as_me: error: invalid tag name: $tagname" >&2;} 10650 { (exit 1); exit 1; }; } 10651 ;; 10652 esac 10653 10654 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10655 then 10656 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10657echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10658 { (exit 1); exit 1; }; } 10659 fi 10660 10661 # Update the list of available tags. 10662 if test -n "$tagname"; then 10663 echo appending configuration tag \"$tagname\" to $ofile 10664 10665 case $tagname in 10666 CXX) 10667 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10669 (test "X$CXX" != "Xg++"))) ; then 10670 ac_ext=cpp 10671ac_cpp='$CXXCPP $CPPFLAGS' 10672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10675 10676 10677 10678 10679archive_cmds_need_lc_CXX=no 10680allow_undefined_flag_CXX= 10681always_export_symbols_CXX=no 10682archive_expsym_cmds_CXX= 10683export_dynamic_flag_spec_CXX= 10684hardcode_direct_CXX=no 10685hardcode_libdir_flag_spec_CXX= 10686hardcode_libdir_flag_spec_ld_CXX= 10687hardcode_libdir_separator_CXX= 10688hardcode_minus_L_CXX=no 10689hardcode_shlibpath_var_CXX=unsupported 10690hardcode_automatic_CXX=no 10691module_cmds_CXX= 10692module_expsym_cmds_CXX= 10693link_all_deplibs_CXX=unknown 10694old_archive_cmds_CXX=$old_archive_cmds 10695no_undefined_flag_CXX= 10696whole_archive_flag_spec_CXX= 10697enable_shared_with_static_runtimes_CXX=no 10698 10699# Dependencies to place before and after the object being linked: 10700predep_objects_CXX= 10701postdep_objects_CXX= 10702predeps_CXX= 10703postdeps_CXX= 10704compiler_lib_search_path_CXX= 10705 10706# Source file extension for C++ test sources. 10707ac_ext=cpp 10708 10709# Object file extension for compiled C++ test sources. 10710objext=o 10711objext_CXX=$objext 10712 10713# Code to be used in simple compile tests 10714lt_simple_compile_test_code="int some_variable = 0;" 10715 10716# Code to be used in simple link tests 10717lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10718 10719# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10720 10721# If no C compiler was specified, use CC. 10722LTCC=${LTCC-"$CC"} 10723 10724# If no C compiler flags were specified, use CFLAGS. 10725LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10726 10727# Allow CC to be a program name with arguments. 10728compiler=$CC 10729 10730 10731# save warnings/boilerplate of simple test code 10732ac_outfile=conftest.$ac_objext 10733echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10734eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10735_lt_compiler_boilerplate=`cat conftest.err` 10736$rm conftest* 10737 10738ac_outfile=conftest.$ac_objext 10739echo "$lt_simple_link_test_code" >conftest.$ac_ext 10740eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10741_lt_linker_boilerplate=`cat conftest.err` 10742$rm conftest* 10743 10744 10745# Allow CC to be a program name with arguments. 10746lt_save_CC=$CC 10747lt_save_LD=$LD 10748lt_save_GCC=$GCC 10749GCC=$GXX 10750lt_save_with_gnu_ld=$with_gnu_ld 10751lt_save_path_LD=$lt_cv_path_LD 10752if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10753 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10754else 10755 $as_unset lt_cv_prog_gnu_ld 10756fi 10757if test -n "${lt_cv_path_LDCXX+set}"; then 10758 lt_cv_path_LD=$lt_cv_path_LDCXX 10759else 10760 $as_unset lt_cv_path_LD 10761fi 10762test -z "${LDCXX+set}" || LD=$LDCXX 10763CC=${CXX-"c++"} 10764compiler=$CC 10765compiler_CXX=$CC 10766for cc_temp in $compiler""; do 10767 case $cc_temp in 10768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10770 \-*) ;; 10771 *) break;; 10772 esac 10773done 10774cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10775 10776 10777# We don't want -fno-exception wen compiling C++ code, so set the 10778# no_builtin_flag separately 10779if test "$GXX" = yes; then 10780 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10781else 10782 lt_prog_compiler_no_builtin_flag_CXX= 10783fi 10784 10785if test "$GXX" = yes; then 10786 # Set up default GNU C++ configuration 10787 10788 10789# Check whether --with-gnu-ld was given. 10790if test "${with_gnu_ld+set}" = set; then 10791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10792else 10793 with_gnu_ld=no 10794fi 10795 10796ac_prog=ld 10797if test "$GCC" = yes; then 10798 # Check if gcc -print-prog-name=ld gives a path. 10799 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10800echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10801 case $host in 10802 *-*-mingw*) 10803 # gcc leaves a trailing carriage return which upsets mingw 10804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10805 *) 10806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10807 esac 10808 case $ac_prog in 10809 # Accept absolute paths. 10810 [\\/]* | ?:[\\/]*) 10811 re_direlt='/[^/][^/]*/\.\./' 10812 # Canonicalize the pathname of ld 10813 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10814 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10815 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10816 done 10817 test -z "$LD" && LD="$ac_prog" 10818 ;; 10819 "") 10820 # If it fails, then pretend we aren't using GCC. 10821 ac_prog=ld 10822 ;; 10823 *) 10824 # If it is relative, then search for the first ld in PATH. 10825 with_gnu_ld=unknown 10826 ;; 10827 esac 10828elif test "$with_gnu_ld" = yes; then 10829 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10830echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10831else 10832 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10833echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10834fi 10835if test "${lt_cv_path_LD+set}" = set; then 10836 echo $ECHO_N "(cached) $ECHO_C" >&6 10837else 10838 if test -z "$LD"; then 10839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10840 for ac_dir in $PATH; do 10841 IFS="$lt_save_ifs" 10842 test -z "$ac_dir" && ac_dir=. 10843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10844 lt_cv_path_LD="$ac_dir/$ac_prog" 10845 # Check to see if the program is GNU ld. I'd rather use --version, 10846 # but apparently some variants of GNU ld only accept -v. 10847 # Break only if it was the GNU/non-GNU ld that we prefer. 10848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10849 *GNU* | *'with BFD'*) 10850 test "$with_gnu_ld" != no && break 10851 ;; 10852 *) 10853 test "$with_gnu_ld" != yes && break 10854 ;; 10855 esac 10856 fi 10857 done 10858 IFS="$lt_save_ifs" 10859else 10860 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10861fi 10862fi 10863 10864LD="$lt_cv_path_LD" 10865if test -n "$LD"; then 10866 { echo "$as_me:$LINENO: result: $LD" >&5 10867echo "${ECHO_T}$LD" >&6; } 10868else 10869 { echo "$as_me:$LINENO: result: no" >&5 10870echo "${ECHO_T}no" >&6; } 10871fi 10872test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10873echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10874 { (exit 1); exit 1; }; } 10875{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10876echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10877if test "${lt_cv_prog_gnu_ld+set}" = set; then 10878 echo $ECHO_N "(cached) $ECHO_C" >&6 10879else 10880 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10881case `$LD -v 2>&1 </dev/null` in 10882*GNU* | *'with BFD'*) 10883 lt_cv_prog_gnu_ld=yes 10884 ;; 10885*) 10886 lt_cv_prog_gnu_ld=no 10887 ;; 10888esac 10889fi 10890{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10891echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10892with_gnu_ld=$lt_cv_prog_gnu_ld 10893 10894 10895 10896 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10897 # archiving commands below assume that GNU ld is being used. 10898 if test "$with_gnu_ld" = yes; then 10899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10900 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' 10901 10902 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10903 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10904 10905 # If archive_cmds runs LD, not CC, wlarc should be empty 10906 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10907 # investigate it a little bit more. (MM) 10908 wlarc='${wl}' 10909 10910 # ancient GNU ld didn't support --whole-archive et. al. 10911 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10912 grep 'no-whole-archive' > /dev/null; then 10913 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10914 else 10915 whole_archive_flag_spec_CXX= 10916 fi 10917 else 10918 with_gnu_ld=no 10919 wlarc= 10920 10921 # A generic and very simple default shared library creation 10922 # command for GNU C++ for the case where it uses the native 10923 # linker, instead of GNU ld. If possible, this setting should 10924 # overridden to take advantage of the native linker features on 10925 # the platform it is being used on. 10926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10927 fi 10928 10929 # Commands to make compiler produce verbose output that lists 10930 # what "hidden" libraries, object files and flags are used when 10931 # linking a shared library. 10932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10933 10934else 10935 GXX=no 10936 with_gnu_ld=no 10937 wlarc= 10938fi 10939 10940# PORTME: fill in a description of your system's C++ link characteristics 10941{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10942echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10943ld_shlibs_CXX=yes 10944case $host_os in 10945 aix3*) 10946 # FIXME: insert proper C++ library support 10947 ld_shlibs_CXX=no 10948 ;; 10949 aix4* | aix5*) 10950 if test "$host_cpu" = ia64; then 10951 # On IA64, the linker does run time linking by default, so we don't 10952 # have to do anything special. 10953 aix_use_runtimelinking=no 10954 exp_sym_flag='-Bexport' 10955 no_entry_flag="" 10956 else 10957 aix_use_runtimelinking=no 10958 10959 # Test if we are trying to use run time linking or normal 10960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10961 # need to do runtime linking. 10962 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10963 for ld_flag in $LDFLAGS; do 10964 case $ld_flag in 10965 *-brtl*) 10966 aix_use_runtimelinking=yes 10967 break 10968 ;; 10969 esac 10970 done 10971 ;; 10972 esac 10973 10974 exp_sym_flag='-bexport' 10975 no_entry_flag='-bnoentry' 10976 fi 10977 10978 # When large executables or shared objects are built, AIX ld can 10979 # have problems creating the table of contents. If linking a library 10980 # or program results in "error TOC overflow" add -mminimal-toc to 10981 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10982 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10983 10984 archive_cmds_CXX='' 10985 hardcode_direct_CXX=yes 10986 hardcode_libdir_separator_CXX=':' 10987 link_all_deplibs_CXX=yes 10988 10989 if test "$GXX" = yes; then 10990 case $host_os in aix4.[012]|aix4.[012].*) 10991 # We only want to do this on AIX 4.2 and lower, the check 10992 # below for broken collect2 doesn't work under 4.3+ 10993 collect2name=`${CC} -print-prog-name=collect2` 10994 if test -f "$collect2name" && \ 10995 strings "$collect2name" | grep resolve_lib_name >/dev/null 10996 then 10997 # We have reworked collect2 10998 : 10999 else 11000 # We have old collect2 11001 hardcode_direct_CXX=unsupported 11002 # It fails to find uninstalled libraries when the uninstalled 11003 # path is not listed in the libpath. Setting hardcode_minus_L 11004 # to unsupported forces relinking 11005 hardcode_minus_L_CXX=yes 11006 hardcode_libdir_flag_spec_CXX='-L$libdir' 11007 hardcode_libdir_separator_CXX= 11008 fi 11009 ;; 11010 esac 11011 shared_flag='-shared' 11012 if test "$aix_use_runtimelinking" = yes; then 11013 shared_flag="$shared_flag "'${wl}-G' 11014 fi 11015 else 11016 # not using gcc 11017 if test "$host_cpu" = ia64; then 11018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11019 # chokes on -Wl,-G. The following line is correct: 11020 shared_flag='-G' 11021 else 11022 if test "$aix_use_runtimelinking" = yes; then 11023 shared_flag='${wl}-G' 11024 else 11025 shared_flag='${wl}-bM:SRE' 11026 fi 11027 fi 11028 fi 11029 11030 # It seems that -bexpall does not export symbols beginning with 11031 # underscore (_), so it is better to generate a list of symbols to export. 11032 always_export_symbols_CXX=yes 11033 if test "$aix_use_runtimelinking" = yes; then 11034 # Warning - without using the other runtime loading flags (-brtl), 11035 # -berok will link without error, but may produce a broken library. 11036 allow_undefined_flag_CXX='-berok' 11037 # Determine the default libpath from the value encoded in an empty executable. 11038 cat >conftest.$ac_ext <<_ACEOF 11039/* confdefs.h. */ 11040_ACEOF 11041cat confdefs.h >>conftest.$ac_ext 11042cat >>conftest.$ac_ext <<_ACEOF 11043/* end confdefs.h. */ 11044 11045int 11046main () 11047{ 11048 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053rm -f conftest.$ac_objext conftest$ac_exeext 11054if { (ac_try="$ac_link" 11055case "(($ac_try" in 11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11057 *) ac_try_echo=$ac_try;; 11058esac 11059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11060 (eval "$ac_link") 2>conftest.er1 11061 ac_status=$? 11062 grep -v '^ *+' conftest.er1 >conftest.err 11063 rm -f conftest.er1 11064 cat conftest.err >&5 11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11066 (exit $ac_status); } && { 11067 test -z "$ac_cxx_werror_flag" || 11068 test ! -s conftest.err 11069 } && test -s conftest$ac_exeext && 11070 $as_test_x conftest$ac_exeext; then 11071 11072lt_aix_libpath_sed=' 11073 /Import File Strings/,/^$/ { 11074 /^0/ { 11075 s/^0 *\(.*\)$/\1/ 11076 p 11077 } 11078 }' 11079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11080# Check for a 64-bit object if we didn't find anything. 11081if test -z "$aix_libpath"; then 11082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11083fi 11084else 11085 echo "$as_me: failed program was:" >&5 11086sed 's/^/| /' conftest.$ac_ext >&5 11087 11088 11089fi 11090 11091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11092 conftest$ac_exeext conftest.$ac_ext 11093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11094 11095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11096 11097 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" 11098 else 11099 if test "$host_cpu" = ia64; then 11100 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11101 allow_undefined_flag_CXX="-z nodefs" 11102 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" 11103 else 11104 # Determine the default libpath from the value encoded in an empty executable. 11105 cat >conftest.$ac_ext <<_ACEOF 11106/* confdefs.h. */ 11107_ACEOF 11108cat confdefs.h >>conftest.$ac_ext 11109cat >>conftest.$ac_ext <<_ACEOF 11110/* end confdefs.h. */ 11111 11112int 11113main () 11114{ 11115 11116 ; 11117 return 0; 11118} 11119_ACEOF 11120rm -f conftest.$ac_objext conftest$ac_exeext 11121if { (ac_try="$ac_link" 11122case "(($ac_try" in 11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11124 *) ac_try_echo=$ac_try;; 11125esac 11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11127 (eval "$ac_link") 2>conftest.er1 11128 ac_status=$? 11129 grep -v '^ *+' conftest.er1 >conftest.err 11130 rm -f conftest.er1 11131 cat conftest.err >&5 11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11133 (exit $ac_status); } && { 11134 test -z "$ac_cxx_werror_flag" || 11135 test ! -s conftest.err 11136 } && test -s conftest$ac_exeext && 11137 $as_test_x conftest$ac_exeext; then 11138 11139lt_aix_libpath_sed=' 11140 /Import File Strings/,/^$/ { 11141 /^0/ { 11142 s/^0 *\(.*\)$/\1/ 11143 p 11144 } 11145 }' 11146aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11147# Check for a 64-bit object if we didn't find anything. 11148if test -z "$aix_libpath"; then 11149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11150fi 11151else 11152 echo "$as_me: failed program was:" >&5 11153sed 's/^/| /' conftest.$ac_ext >&5 11154 11155 11156fi 11157 11158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11159 conftest$ac_exeext conftest.$ac_ext 11160if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11161 11162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11163 # Warning - without using the other run time loading flags, 11164 # -berok will link without error, but may produce a broken library. 11165 no_undefined_flag_CXX=' ${wl}-bernotok' 11166 allow_undefined_flag_CXX=' ${wl}-berok' 11167 # Exported symbols can be pulled into shared objects from archives 11168 whole_archive_flag_spec_CXX='$convenience' 11169 archive_cmds_need_lc_CXX=yes 11170 # This is similar to how AIX traditionally builds its shared libraries. 11171 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' 11172 fi 11173 fi 11174 ;; 11175 11176 beos*) 11177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11178 allow_undefined_flag_CXX=unsupported 11179 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11180 # support --undefined. This deserves some investigation. FIXME 11181 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11182 else 11183 ld_shlibs_CXX=no 11184 fi 11185 ;; 11186 11187 chorus*) 11188 case $cc_basename in 11189 *) 11190 # FIXME: insert proper C++ library support 11191 ld_shlibs_CXX=no 11192 ;; 11193 esac 11194 ;; 11195 11196 cygwin* | mingw* | pw32*) 11197 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11198 # as there is no search path for DLLs. 11199 hardcode_libdir_flag_spec_CXX='-L$libdir' 11200 allow_undefined_flag_CXX=unsupported 11201 always_export_symbols_CXX=no 11202 enable_shared_with_static_runtimes_CXX=yes 11203 11204 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11205 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' 11206 # If the export-symbols file already is a .def file (1st line 11207 # is EXPORTS), use it as is; otherwise, prepend... 11208 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11209 cp $export_symbols $output_objdir/$soname.def; 11210 else 11211 echo EXPORTS > $output_objdir/$soname.def; 11212 cat $export_symbols >> $output_objdir/$soname.def; 11213 fi~ 11214 $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' 11215 else 11216 ld_shlibs_CXX=no 11217 fi 11218 ;; 11219 darwin* | rhapsody*) 11220 case $host_os in 11221 rhapsody* | darwin1.[012]) 11222 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11223 ;; 11224 *) # Darwin 1.3 on 11225 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11226 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11227 else 11228 case ${MACOSX_DEPLOYMENT_TARGET} in 11229 10.[012]) 11230 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11231 ;; 11232 10.*) 11233 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11234 ;; 11235 esac 11236 fi 11237 ;; 11238 esac 11239 archive_cmds_need_lc_CXX=no 11240 hardcode_direct_CXX=no 11241 hardcode_automatic_CXX=yes 11242 hardcode_shlibpath_var_CXX=unsupported 11243 whole_archive_flag_spec_CXX='' 11244 link_all_deplibs_CXX=yes 11245 11246 if test "$GXX" = yes ; then 11247 lt_int_apple_cc_single_mod=no 11248 output_verbose_link_cmd='echo' 11249 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11250 lt_int_apple_cc_single_mod=yes 11251 fi 11252 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11253 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11254 else 11255 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' 11256 fi 11257 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11259 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11260 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}' 11261 else 11262 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}' 11263 fi 11264 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}' 11265 else 11266 case $cc_basename in 11267 xlc*) 11268 output_verbose_link_cmd='echo' 11269 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11270 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11272 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11273 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}' 11274 ;; 11275 *) 11276 ld_shlibs_CXX=no 11277 ;; 11278 esac 11279 fi 11280 ;; 11281 11282 dgux*) 11283 case $cc_basename in 11284 ec++*) 11285 # FIXME: insert proper C++ library support 11286 ld_shlibs_CXX=no 11287 ;; 11288 ghcx*) 11289 # Green Hills C++ Compiler 11290 # FIXME: insert proper C++ library support 11291 ld_shlibs_CXX=no 11292 ;; 11293 *) 11294 # FIXME: insert proper C++ library support 11295 ld_shlibs_CXX=no 11296 ;; 11297 esac 11298 ;; 11299 freebsd[12]*) 11300 # C++ shared libraries reported to be fairly broken before switch to ELF 11301 ld_shlibs_CXX=no 11302 ;; 11303 freebsd-elf*) 11304 archive_cmds_need_lc_CXX=no 11305 ;; 11306 freebsd* | dragonfly*) 11307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11308 # conventions 11309 ld_shlibs_CXX=yes 11310 ;; 11311 gnu*) 11312 ;; 11313 hpux9*) 11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11315 hardcode_libdir_separator_CXX=: 11316 export_dynamic_flag_spec_CXX='${wl}-E' 11317 hardcode_direct_CXX=yes 11318 hardcode_minus_L_CXX=yes # Not in the search PATH, 11319 # but as the default 11320 # location of the library. 11321 11322 case $cc_basename in 11323 CC*) 11324 # FIXME: insert proper C++ library support 11325 ld_shlibs_CXX=no 11326 ;; 11327 aCC*) 11328 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' 11329 # Commands to make compiler produce verbose output that lists 11330 # what "hidden" libraries, object files and flags are used when 11331 # linking a shared library. 11332 # 11333 # There doesn't appear to be a way to prevent this compiler from 11334 # explicitly linking system object files so we need to strip them 11335 # from the output so that they don't get included in the library 11336 # dependencies. 11337 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' 11338 ;; 11339 *) 11340 if test "$GXX" = yes; then 11341 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' 11342 else 11343 # FIXME: insert proper C++ library support 11344 ld_shlibs_CXX=no 11345 fi 11346 ;; 11347 esac 11348 ;; 11349 hpux10*|hpux11*) 11350 if test $with_gnu_ld = no; then 11351 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11352 hardcode_libdir_separator_CXX=: 11353 11354 case $host_cpu in 11355 hppa*64*|ia64*) ;; 11356 *) 11357 export_dynamic_flag_spec_CXX='${wl}-E' 11358 ;; 11359 esac 11360 fi 11361 case $host_cpu in 11362 hppa*64*|ia64*) 11363 hardcode_direct_CXX=no 11364 hardcode_shlibpath_var_CXX=no 11365 ;; 11366 *) 11367 hardcode_direct_CXX=yes 11368 hardcode_minus_L_CXX=yes # Not in the search PATH, 11369 # but as the default 11370 # location of the library. 11371 ;; 11372 esac 11373 11374 case $cc_basename in 11375 CC*) 11376 # FIXME: insert proper C++ library support 11377 ld_shlibs_CXX=no 11378 ;; 11379 aCC*) 11380 case $host_cpu in 11381 hppa*64*) 11382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11383 ;; 11384 ia64*) 11385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11386 ;; 11387 *) 11388 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11389 ;; 11390 esac 11391 # Commands to make compiler produce verbose output that lists 11392 # what "hidden" libraries, object files and flags are used when 11393 # linking a shared library. 11394 # 11395 # There doesn't appear to be a way to prevent this compiler from 11396 # explicitly linking system object files so we need to strip them 11397 # from the output so that they don't get included in the library 11398 # dependencies. 11399 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' 11400 ;; 11401 *) 11402 if test "$GXX" = yes; then 11403 if test $with_gnu_ld = no; then 11404 case $host_cpu in 11405 hppa*64*) 11406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11407 ;; 11408 ia64*) 11409 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11410 ;; 11411 *) 11412 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' 11413 ;; 11414 esac 11415 fi 11416 else 11417 # FIXME: insert proper C++ library support 11418 ld_shlibs_CXX=no 11419 fi 11420 ;; 11421 esac 11422 ;; 11423 interix[3-9]*) 11424 hardcode_direct_CXX=no 11425 hardcode_shlibpath_var_CXX=no 11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11427 export_dynamic_flag_spec_CXX='${wl}-E' 11428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11429 # Instead, shared libraries are loaded at an image base (0x10000000 by 11430 # default) and relocated if they conflict, which is a slow very memory 11431 # consuming and fragmenting process. To avoid this, we pick a random, 11432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11433 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11434 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' 11435 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' 11436 ;; 11437 irix5* | irix6*) 11438 case $cc_basename in 11439 CC*) 11440 # SGI C++ 11441 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' 11442 11443 # Archives containing C++ object files must be created using 11444 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11445 # necessary to make sure instantiated templates are included 11446 # in the archive. 11447 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11448 ;; 11449 *) 11450 if test "$GXX" = yes; then 11451 if test "$with_gnu_ld" = no; then 11452 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' 11453 else 11454 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' 11455 fi 11456 fi 11457 link_all_deplibs_CXX=yes 11458 ;; 11459 esac 11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11461 hardcode_libdir_separator_CXX=: 11462 ;; 11463 linux* | k*bsd*-gnu) 11464 case $cc_basename in 11465 KCC*) 11466 # Kuck and Associates, Inc. (KAI) C++ Compiler 11467 11468 # KCC will only create a shared library if the output file 11469 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11470 # to its proper name (with version) after linking. 11471 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' 11472 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' 11473 # Commands to make compiler produce verbose output that lists 11474 # what "hidden" libraries, object files and flags are used when 11475 # linking a shared library. 11476 # 11477 # There doesn't appear to be a way to prevent this compiler from 11478 # explicitly linking system object files so we need to strip them 11479 # from the output so that they don't get included in the library 11480 # dependencies. 11481 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' 11482 11483 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11485 11486 # Archives containing C++ object files must be created using 11487 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11488 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11489 ;; 11490 icpc*) 11491 # Intel C++ 11492 with_gnu_ld=yes 11493 # version 8.0 and above of icpc choke on multiply defined symbols 11494 # if we add $predep_objects and $postdep_objects, however 7.1 and 11495 # earlier do not add the objects themselves. 11496 case `$CC -V 2>&1` in 11497 *"Version 7."*) 11498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11499 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' 11500 ;; 11501 *) # Version 8.0 or newer 11502 tmp_idyn= 11503 case $host_cpu in 11504 ia64*) tmp_idyn=' -i_dynamic';; 11505 esac 11506 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11507 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' 11508 ;; 11509 esac 11510 archive_cmds_need_lc_CXX=no 11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11513 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11514 ;; 11515 pgCC*) 11516 # Portland Group C++ compiler 11517 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11518 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' 11519 11520 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11522 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' 11523 ;; 11524 cxx*) 11525 # Compaq C++ 11526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11527 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' 11528 11529 runpath_var=LD_RUN_PATH 11530 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11531 hardcode_libdir_separator_CXX=: 11532 11533 # Commands to make compiler produce verbose output that lists 11534 # what "hidden" libraries, object files and flags are used when 11535 # linking a shared library. 11536 # 11537 # There doesn't appear to be a way to prevent this compiler from 11538 # explicitly linking system object files so we need to strip them 11539 # from the output so that they don't get included in the library 11540 # dependencies. 11541 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' 11542 ;; 11543 *) 11544 case `$CC -V 2>&1 | sed 5q` in 11545 *Sun\ C*) 11546 # Sun C++ 5.9 11547 no_undefined_flag_CXX=' -zdefs' 11548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11549 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11550 hardcode_libdir_flag_spec_CXX='-R$libdir' 11551 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11552 11553 # Not sure whether something based on 11554 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11555 # would be better. 11556 output_verbose_link_cmd='echo' 11557 11558 # Archives containing C++ object files must be created using 11559 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11560 # necessary to make sure instantiated templates are included 11561 # in the archive. 11562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11563 ;; 11564 esac 11565 ;; 11566 esac 11567 ;; 11568 lynxos*) 11569 # FIXME: insert proper C++ library support 11570 ld_shlibs_CXX=no 11571 ;; 11572 m88k*) 11573 # FIXME: insert proper C++ library support 11574 ld_shlibs_CXX=no 11575 ;; 11576 mvs*) 11577 case $cc_basename in 11578 cxx*) 11579 # FIXME: insert proper C++ library support 11580 ld_shlibs_CXX=no 11581 ;; 11582 *) 11583 # FIXME: insert proper C++ library support 11584 ld_shlibs_CXX=no 11585 ;; 11586 esac 11587 ;; 11588 netbsd*) 11589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11591 wlarc= 11592 hardcode_libdir_flag_spec_CXX='-R$libdir' 11593 hardcode_direct_CXX=yes 11594 hardcode_shlibpath_var_CXX=no 11595 fi 11596 # Workaround some broken pre-1.5 toolchains 11597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11598 ;; 11599 openbsd2*) 11600 # C++ shared libraries are fairly broken 11601 ld_shlibs_CXX=no 11602 ;; 11603 openbsd*) 11604 if test -f /usr/libexec/ld.so; then 11605 hardcode_direct_CXX=yes 11606 hardcode_shlibpath_var_CXX=no 11607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11611 export_dynamic_flag_spec_CXX='${wl}-E' 11612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11613 fi 11614 output_verbose_link_cmd='echo' 11615 else 11616 ld_shlibs_CXX=no 11617 fi 11618 ;; 11619 osf3*) 11620 case $cc_basename in 11621 KCC*) 11622 # Kuck and Associates, Inc. (KAI) C++ Compiler 11623 11624 # KCC will only create a shared library if the output file 11625 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11626 # to its proper name (with version) after linking. 11627 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' 11628 11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11630 hardcode_libdir_separator_CXX=: 11631 11632 # Archives containing C++ object files must be created using 11633 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11634 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11635 11636 ;; 11637 RCC*) 11638 # Rational C++ 2.4.1 11639 # FIXME: insert proper C++ library support 11640 ld_shlibs_CXX=no 11641 ;; 11642 cxx*) 11643 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11644 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' 11645 11646 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11647 hardcode_libdir_separator_CXX=: 11648 11649 # Commands to make compiler produce verbose output that lists 11650 # what "hidden" libraries, object files and flags are used when 11651 # linking a shared library. 11652 # 11653 # There doesn't appear to be a way to prevent this compiler from 11654 # explicitly linking system object files so we need to strip them 11655 # from the output so that they don't get included in the library 11656 # dependencies. 11657 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' 11658 ;; 11659 *) 11660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11662 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' 11663 11664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11665 hardcode_libdir_separator_CXX=: 11666 11667 # Commands to make compiler produce verbose output that lists 11668 # what "hidden" libraries, object files and flags are used when 11669 # linking a shared library. 11670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11671 11672 else 11673 # FIXME: insert proper C++ library support 11674 ld_shlibs_CXX=no 11675 fi 11676 ;; 11677 esac 11678 ;; 11679 osf4* | osf5*) 11680 case $cc_basename in 11681 KCC*) 11682 # Kuck and Associates, Inc. (KAI) C++ Compiler 11683 11684 # KCC will only create a shared library if the output file 11685 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11686 # to its proper name (with version) after linking. 11687 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' 11688 11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11690 hardcode_libdir_separator_CXX=: 11691 11692 # Archives containing C++ object files must be created using 11693 # the KAI C++ compiler. 11694 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11695 ;; 11696 RCC*) 11697 # Rational C++ 2.4.1 11698 # FIXME: insert proper C++ library support 11699 ld_shlibs_CXX=no 11700 ;; 11701 cxx*) 11702 allow_undefined_flag_CXX=' -expect_unresolved \*' 11703 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' 11704 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11705 echo "-hidden">> $lib.exp~ 11706 $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~ 11707 $rm $lib.exp' 11708 11709 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11710 hardcode_libdir_separator_CXX=: 11711 11712 # Commands to make compiler produce verbose output that lists 11713 # what "hidden" libraries, object files and flags are used when 11714 # linking a shared library. 11715 # 11716 # There doesn't appear to be a way to prevent this compiler from 11717 # explicitly linking system object files so we need to strip them 11718 # from the output so that they don't get included in the library 11719 # dependencies. 11720 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' 11721 ;; 11722 *) 11723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11725 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' 11726 11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11728 hardcode_libdir_separator_CXX=: 11729 11730 # Commands to make compiler produce verbose output that lists 11731 # what "hidden" libraries, object files and flags are used when 11732 # linking a shared library. 11733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11734 11735 else 11736 # FIXME: insert proper C++ library support 11737 ld_shlibs_CXX=no 11738 fi 11739 ;; 11740 esac 11741 ;; 11742 psos*) 11743 # FIXME: insert proper C++ library support 11744 ld_shlibs_CXX=no 11745 ;; 11746 sunos4*) 11747 case $cc_basename in 11748 CC*) 11749 # Sun C++ 4.x 11750 # FIXME: insert proper C++ library support 11751 ld_shlibs_CXX=no 11752 ;; 11753 lcc*) 11754 # Lucid 11755 # FIXME: insert proper C++ library support 11756 ld_shlibs_CXX=no 11757 ;; 11758 *) 11759 # FIXME: insert proper C++ library support 11760 ld_shlibs_CXX=no 11761 ;; 11762 esac 11763 ;; 11764 solaris*) 11765 case $cc_basename in 11766 CC*) 11767 # Sun C++ 4.2, 5.x and Centerline C++ 11768 archive_cmds_need_lc_CXX=yes 11769 no_undefined_flag_CXX=' -zdefs' 11770 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11772 $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' 11773 11774 hardcode_libdir_flag_spec_CXX='-R$libdir' 11775 hardcode_shlibpath_var_CXX=no 11776 case $host_os in 11777 solaris2.[0-5] | solaris2.[0-5].*) ;; 11778 *) 11779 # The compiler driver will combine and reorder linker options, 11780 # but understands `-z linker_flag'. 11781 # Supported since Solaris 2.6 (maybe 2.5.1?) 11782 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11783 ;; 11784 esac 11785 link_all_deplibs_CXX=yes 11786 11787 output_verbose_link_cmd='echo' 11788 11789 # Archives containing C++ object files must be created using 11790 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11791 # necessary to make sure instantiated templates are included 11792 # in the archive. 11793 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11794 ;; 11795 gcx*) 11796 # Green Hills C++ Compiler 11797 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11798 11799 # The C++ compiler must be used to create the archive. 11800 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11801 ;; 11802 *) 11803 # GNU C++ compiler with Solaris linker 11804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11805 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11806 if $CC --version | grep -v '^2\.7' > /dev/null; then 11807 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11809 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11810 11811 # Commands to make compiler produce verbose output that lists 11812 # what "hidden" libraries, object files and flags are used when 11813 # linking a shared library. 11814 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11815 else 11816 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11817 # platform. 11818 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11819 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11820 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11821 11822 # Commands to make compiler produce verbose output that lists 11823 # what "hidden" libraries, object files and flags are used when 11824 # linking a shared library. 11825 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11826 fi 11827 11828 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11829 case $host_os in 11830 solaris2.[0-5] | solaris2.[0-5].*) ;; 11831 *) 11832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11833 ;; 11834 esac 11835 fi 11836 ;; 11837 esac 11838 ;; 11839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11840 no_undefined_flag_CXX='${wl}-z,text' 11841 archive_cmds_need_lc_CXX=no 11842 hardcode_shlibpath_var_CXX=no 11843 runpath_var='LD_RUN_PATH' 11844 11845 case $cc_basename in 11846 CC*) 11847 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11848 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11849 ;; 11850 *) 11851 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11852 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11853 ;; 11854 esac 11855 ;; 11856 sysv5* | sco3.2v5* | sco5v6*) 11857 # Note: We can NOT use -z defs as we might desire, because we do not 11858 # link with -lc, and that would cause any symbols used from libc to 11859 # always be unresolved, which means just about no library would 11860 # ever link correctly. If we're not using GNU ld we use -z text 11861 # though, which does catch some bad symbols but isn't as heavy-handed 11862 # as -z defs. 11863 # For security reasons, it is highly recommended that you always 11864 # use absolute paths for naming shared libraries, and exclude the 11865 # DT_RUNPATH tag from executables and libraries. But doing so 11866 # requires that you compile everything twice, which is a pain. 11867 # So that behaviour is only enabled if SCOABSPATH is set to a 11868 # non-empty value in the environment. Most likely only useful for 11869 # creating official distributions of packages. 11870 # This is a hack until libtool officially supports absolute path 11871 # names for shared libraries. 11872 no_undefined_flag_CXX='${wl}-z,text' 11873 allow_undefined_flag_CXX='${wl}-z,nodefs' 11874 archive_cmds_need_lc_CXX=no 11875 hardcode_shlibpath_var_CXX=no 11876 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11877 hardcode_libdir_separator_CXX=':' 11878 link_all_deplibs_CXX=yes 11879 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11880 runpath_var='LD_RUN_PATH' 11881 11882 case $cc_basename in 11883 CC*) 11884 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11885 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11886 ;; 11887 *) 11888 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11889 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11890 ;; 11891 esac 11892 ;; 11893 tandem*) 11894 case $cc_basename in 11895 NCC*) 11896 # NonStop-UX NCC 3.20 11897 # FIXME: insert proper C++ library support 11898 ld_shlibs_CXX=no 11899 ;; 11900 *) 11901 # FIXME: insert proper C++ library support 11902 ld_shlibs_CXX=no 11903 ;; 11904 esac 11905 ;; 11906 vxworks*) 11907 # FIXME: insert proper C++ library support 11908 ld_shlibs_CXX=no 11909 ;; 11910 *) 11911 # FIXME: insert proper C++ library support 11912 ld_shlibs_CXX=no 11913 ;; 11914esac 11915{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11916echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11917test "$ld_shlibs_CXX" = no && can_build_shared=no 11918 11919GCC_CXX="$GXX" 11920LD_CXX="$LD" 11921 11922 11923cat > conftest.$ac_ext <<EOF 11924class Foo 11925{ 11926public: 11927 Foo (void) { a = 0; } 11928private: 11929 int a; 11930}; 11931EOF 11932 11933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11934 (eval $ac_compile) 2>&5 11935 ac_status=$? 11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11937 (exit $ac_status); }; then 11938 # Parse the compiler output and extract the necessary 11939 # objects, libraries and library flags. 11940 11941 # Sentinel used to keep track of whether or not we are before 11942 # the conftest object file. 11943 pre_test_object_deps_done=no 11944 11945 # The `*' in the case matches for architectures that use `case' in 11946 # $output_verbose_cmd can trigger glob expansion during the loop 11947 # eval without this substitution. 11948 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11949 11950 for p in `eval $output_verbose_link_cmd`; do 11951 case $p in 11952 11953 -L* | -R* | -l*) 11954 # Some compilers place space between "-{L,R}" and the path. 11955 # Remove the space. 11956 if test $p = "-L" \ 11957 || test $p = "-R"; then 11958 prev=$p 11959 continue 11960 else 11961 prev= 11962 fi 11963 11964 if test "$pre_test_object_deps_done" = no; then 11965 case $p in 11966 -L* | -R*) 11967 # Internal compiler library paths should come after those 11968 # provided the user. The postdeps already come after the 11969 # user supplied libs so there is no need to process them. 11970 if test -z "$compiler_lib_search_path_CXX"; then 11971 compiler_lib_search_path_CXX="${prev}${p}" 11972 else 11973 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11974 fi 11975 ;; 11976 # The "-l" case would never come before the object being 11977 # linked, so don't bother handling this case. 11978 esac 11979 else 11980 if test -z "$postdeps_CXX"; then 11981 postdeps_CXX="${prev}${p}" 11982 else 11983 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11984 fi 11985 fi 11986 ;; 11987 11988 *.$objext) 11989 # This assumes that the test object file only shows up 11990 # once in the compiler output. 11991 if test "$p" = "conftest.$objext"; then 11992 pre_test_object_deps_done=yes 11993 continue 11994 fi 11995 11996 if test "$pre_test_object_deps_done" = no; then 11997 if test -z "$predep_objects_CXX"; then 11998 predep_objects_CXX="$p" 11999 else 12000 predep_objects_CXX="$predep_objects_CXX $p" 12001 fi 12002 else 12003 if test -z "$postdep_objects_CXX"; then 12004 postdep_objects_CXX="$p" 12005 else 12006 postdep_objects_CXX="$postdep_objects_CXX $p" 12007 fi 12008 fi 12009 ;; 12010 12011 *) ;; # Ignore the rest. 12012 12013 esac 12014 done 12015 12016 # Clean up. 12017 rm -f a.out a.exe 12018else 12019 echo "libtool.m4: error: problem compiling CXX test program" 12020fi 12021 12022$rm -f confest.$objext 12023 12024# PORTME: override above test on systems where it is broken 12025case $host_os in 12026interix[3-9]*) 12027 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12028 # hack all around it, let's just trust "g++" to DTRT. 12029 predep_objects_CXX= 12030 postdep_objects_CXX= 12031 postdeps_CXX= 12032 ;; 12033 12034linux*) 12035 case `$CC -V 2>&1 | sed 5q` in 12036 *Sun\ C*) 12037 # Sun C++ 5.9 12038 # 12039 # The more standards-conforming stlport4 library is 12040 # incompatible with the Cstd library. Avoid specifying 12041 # it if it's in CXXFLAGS. Ignore libCrun as 12042 # -library=stlport4 depends on it. 12043 case " $CXX $CXXFLAGS " in 12044 *" -library=stlport4 "*) 12045 solaris_use_stlport4=yes 12046 ;; 12047 esac 12048 if test "$solaris_use_stlport4" != yes; then 12049 postdeps_CXX='-library=Cstd -library=Crun' 12050 fi 12051 ;; 12052 esac 12053 ;; 12054 12055solaris*) 12056 case $cc_basename in 12057 CC*) 12058 # The more standards-conforming stlport4 library is 12059 # incompatible with the Cstd library. Avoid specifying 12060 # it if it's in CXXFLAGS. Ignore libCrun as 12061 # -library=stlport4 depends on it. 12062 case " $CXX $CXXFLAGS " in 12063 *" -library=stlport4 "*) 12064 solaris_use_stlport4=yes 12065 ;; 12066 esac 12067 12068 # Adding this requires a known-good setup of shared libraries for 12069 # Sun compiler versions before 5.6, else PIC objects from an old 12070 # archive will be linked into the output, leading to subtle bugs. 12071 if test "$solaris_use_stlport4" != yes; then 12072 postdeps_CXX='-library=Cstd -library=Crun' 12073 fi 12074 ;; 12075 esac 12076 ;; 12077esac 12078 12079 12080case " $postdeps_CXX " in 12081*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12082esac 12083 12084lt_prog_compiler_wl_CXX= 12085lt_prog_compiler_pic_CXX= 12086lt_prog_compiler_static_CXX= 12087 12088{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12089echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12090 12091 # C++ specific cases for pic, static, wl, etc. 12092 if test "$GXX" = yes; then 12093 lt_prog_compiler_wl_CXX='-Wl,' 12094 lt_prog_compiler_static_CXX='-static' 12095 12096 case $host_os in 12097 aix*) 12098 # All AIX code is PIC. 12099 if test "$host_cpu" = ia64; then 12100 # AIX 5 now supports IA64 processor 12101 lt_prog_compiler_static_CXX='-Bstatic' 12102 fi 12103 ;; 12104 amigaos*) 12105 # FIXME: we need at least 68020 code to build shared libraries, but 12106 # adding the `-m68020' flag to GCC prevents building anything better, 12107 # like `-m68040'. 12108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12109 ;; 12110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12111 # PIC is the default for these OSes. 12112 ;; 12113 mingw* | cygwin* | os2* | pw32*) 12114 # This hack is so that the source file can tell whether it is being 12115 # built for inclusion in a dll (and should export symbols for example). 12116 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12117 # (--disable-auto-import) libraries 12118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12119 ;; 12120 darwin* | rhapsody*) 12121 # PIC is the default on this platform 12122 # Common symbols not allowed in MH_DYLIB files 12123 lt_prog_compiler_pic_CXX='-fno-common' 12124 ;; 12125 *djgpp*) 12126 # DJGPP does not support shared libraries at all 12127 lt_prog_compiler_pic_CXX= 12128 ;; 12129 interix[3-9]*) 12130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12131 # Instead, we relocate shared libraries at runtime. 12132 ;; 12133 sysv4*MP*) 12134 if test -d /usr/nec; then 12135 lt_prog_compiler_pic_CXX=-Kconform_pic 12136 fi 12137 ;; 12138 hpux*) 12139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12140 # not for PA HP-UX. 12141 case $host_cpu in 12142 hppa*64*|ia64*) 12143 ;; 12144 *) 12145 lt_prog_compiler_pic_CXX='-fPIC' 12146 ;; 12147 esac 12148 ;; 12149 *) 12150 lt_prog_compiler_pic_CXX='-fPIC' 12151 ;; 12152 esac 12153 else 12154 case $host_os in 12155 aix4* | aix5*) 12156 # All AIX code is PIC. 12157 if test "$host_cpu" = ia64; then 12158 # AIX 5 now supports IA64 processor 12159 lt_prog_compiler_static_CXX='-Bstatic' 12160 else 12161 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12162 fi 12163 ;; 12164 chorus*) 12165 case $cc_basename in 12166 cxch68*) 12167 # Green Hills C++ Compiler 12168 # _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" 12169 ;; 12170 esac 12171 ;; 12172 darwin*) 12173 # PIC is the default on this platform 12174 # Common symbols not allowed in MH_DYLIB files 12175 case $cc_basename in 12176 xlc*) 12177 lt_prog_compiler_pic_CXX='-qnocommon' 12178 lt_prog_compiler_wl_CXX='-Wl,' 12179 ;; 12180 esac 12181 ;; 12182 dgux*) 12183 case $cc_basename in 12184 ec++*) 12185 lt_prog_compiler_pic_CXX='-KPIC' 12186 ;; 12187 ghcx*) 12188 # Green Hills C++ Compiler 12189 lt_prog_compiler_pic_CXX='-pic' 12190 ;; 12191 *) 12192 ;; 12193 esac 12194 ;; 12195 freebsd* | dragonfly*) 12196 # FreeBSD uses GNU C++ 12197 ;; 12198 hpux9* | hpux10* | hpux11*) 12199 case $cc_basename in 12200 CC*) 12201 lt_prog_compiler_wl_CXX='-Wl,' 12202 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12203 if test "$host_cpu" != ia64; then 12204 lt_prog_compiler_pic_CXX='+Z' 12205 fi 12206 ;; 12207 aCC*) 12208 lt_prog_compiler_wl_CXX='-Wl,' 12209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12210 case $host_cpu in 12211 hppa*64*|ia64*) 12212 # +Z the default 12213 ;; 12214 *) 12215 lt_prog_compiler_pic_CXX='+Z' 12216 ;; 12217 esac 12218 ;; 12219 *) 12220 ;; 12221 esac 12222 ;; 12223 interix*) 12224 # This is c89, which is MS Visual C++ (no shared libs) 12225 # Anyone wants to do a port? 12226 ;; 12227 irix5* | irix6* | nonstopux*) 12228 case $cc_basename in 12229 CC*) 12230 lt_prog_compiler_wl_CXX='-Wl,' 12231 lt_prog_compiler_static_CXX='-non_shared' 12232 # CC pic flag -KPIC is the default. 12233 ;; 12234 *) 12235 ;; 12236 esac 12237 ;; 12238 linux* | k*bsd*-gnu) 12239 case $cc_basename in 12240 KCC*) 12241 # KAI C++ Compiler 12242 lt_prog_compiler_wl_CXX='--backend -Wl,' 12243 lt_prog_compiler_pic_CXX='-fPIC' 12244 ;; 12245 icpc* | ecpc*) 12246 # Intel C++ 12247 lt_prog_compiler_wl_CXX='-Wl,' 12248 lt_prog_compiler_pic_CXX='-KPIC' 12249 lt_prog_compiler_static_CXX='-static' 12250 ;; 12251 pgCC*) 12252 # Portland Group C++ compiler. 12253 lt_prog_compiler_wl_CXX='-Wl,' 12254 lt_prog_compiler_pic_CXX='-fpic' 12255 lt_prog_compiler_static_CXX='-Bstatic' 12256 ;; 12257 cxx*) 12258 # Compaq C++ 12259 # Make sure the PIC flag is empty. It appears that all Alpha 12260 # Linux and Compaq Tru64 Unix objects are PIC. 12261 lt_prog_compiler_pic_CXX= 12262 lt_prog_compiler_static_CXX='-non_shared' 12263 ;; 12264 *) 12265 case `$CC -V 2>&1 | sed 5q` in 12266 *Sun\ C*) 12267 # Sun C++ 5.9 12268 lt_prog_compiler_pic_CXX='-KPIC' 12269 lt_prog_compiler_static_CXX='-Bstatic' 12270 lt_prog_compiler_wl_CXX='-Qoption ld ' 12271 ;; 12272 esac 12273 ;; 12274 esac 12275 ;; 12276 lynxos*) 12277 ;; 12278 m88k*) 12279 ;; 12280 mvs*) 12281 case $cc_basename in 12282 cxx*) 12283 lt_prog_compiler_pic_CXX='-W c,exportall' 12284 ;; 12285 *) 12286 ;; 12287 esac 12288 ;; 12289 netbsd*) 12290 ;; 12291 osf3* | osf4* | osf5*) 12292 case $cc_basename in 12293 KCC*) 12294 lt_prog_compiler_wl_CXX='--backend -Wl,' 12295 ;; 12296 RCC*) 12297 # Rational C++ 2.4.1 12298 lt_prog_compiler_pic_CXX='-pic' 12299 ;; 12300 cxx*) 12301 # Digital/Compaq C++ 12302 lt_prog_compiler_wl_CXX='-Wl,' 12303 # Make sure the PIC flag is empty. It appears that all Alpha 12304 # Linux and Compaq Tru64 Unix objects are PIC. 12305 lt_prog_compiler_pic_CXX= 12306 lt_prog_compiler_static_CXX='-non_shared' 12307 ;; 12308 *) 12309 ;; 12310 esac 12311 ;; 12312 psos*) 12313 ;; 12314 solaris*) 12315 case $cc_basename in 12316 CC*) 12317 # Sun C++ 4.2, 5.x and Centerline C++ 12318 lt_prog_compiler_pic_CXX='-KPIC' 12319 lt_prog_compiler_static_CXX='-Bstatic' 12320 lt_prog_compiler_wl_CXX='-Qoption ld ' 12321 ;; 12322 gcx*) 12323 # Green Hills C++ Compiler 12324 lt_prog_compiler_pic_CXX='-PIC' 12325 ;; 12326 *) 12327 ;; 12328 esac 12329 ;; 12330 sunos4*) 12331 case $cc_basename in 12332 CC*) 12333 # Sun C++ 4.x 12334 lt_prog_compiler_pic_CXX='-pic' 12335 lt_prog_compiler_static_CXX='-Bstatic' 12336 ;; 12337 lcc*) 12338 # Lucid 12339 lt_prog_compiler_pic_CXX='-pic' 12340 ;; 12341 *) 12342 ;; 12343 esac 12344 ;; 12345 tandem*) 12346 case $cc_basename in 12347 NCC*) 12348 # NonStop-UX NCC 3.20 12349 lt_prog_compiler_pic_CXX='-KPIC' 12350 ;; 12351 *) 12352 ;; 12353 esac 12354 ;; 12355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12356 case $cc_basename in 12357 CC*) 12358 lt_prog_compiler_wl_CXX='-Wl,' 12359 lt_prog_compiler_pic_CXX='-KPIC' 12360 lt_prog_compiler_static_CXX='-Bstatic' 12361 ;; 12362 esac 12363 ;; 12364 vxworks*) 12365 ;; 12366 *) 12367 lt_prog_compiler_can_build_shared_CXX=no 12368 ;; 12369 esac 12370 fi 12371 12372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12373echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12374 12375# 12376# Check to make sure the PIC flag actually works. 12377# 12378if test -n "$lt_prog_compiler_pic_CXX"; then 12379 12380{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12381echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12382if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12383 echo $ECHO_N "(cached) $ECHO_C" >&6 12384else 12385 lt_prog_compiler_pic_works_CXX=no 12386 ac_outfile=conftest.$ac_objext 12387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12389 # Insert the option either (1) after the last *FLAGS variable, or 12390 # (2) before a word containing "conftest.", or (3) at the end. 12391 # Note that $ac_compile itself does not contain backslashes and begins 12392 # with a dollar sign (not a hyphen), so the echo should work correctly. 12393 # The option is referenced via a variable to avoid confusing sed. 12394 lt_compile=`echo "$ac_compile" | $SED \ 12395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12397 -e 's:$: $lt_compiler_flag:'` 12398 (eval echo "\"\$as_me:12398: $lt_compile\"" >&5) 12399 (eval "$lt_compile" 2>conftest.err) 12400 ac_status=$? 12401 cat conftest.err >&5 12402 echo "$as_me:12402: \$? = $ac_status" >&5 12403 if (exit $ac_status) && test -s "$ac_outfile"; then 12404 # The compiler can only warn and ignore the option if not recognized 12405 # So say no if there are warnings other than the usual output. 12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12409 lt_prog_compiler_pic_works_CXX=yes 12410 fi 12411 fi 12412 $rm conftest* 12413 12414fi 12415{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12416echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12417 12418if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12419 case $lt_prog_compiler_pic_CXX in 12420 "" | " "*) ;; 12421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12422 esac 12423else 12424 lt_prog_compiler_pic_CXX= 12425 lt_prog_compiler_can_build_shared_CXX=no 12426fi 12427 12428fi 12429case $host_os in 12430 # For platforms which do not support PIC, -DPIC is meaningless: 12431 *djgpp*) 12432 lt_prog_compiler_pic_CXX= 12433 ;; 12434 *) 12435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12436 ;; 12437esac 12438 12439# 12440# Check to make sure the static flag actually works. 12441# 12442wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12443{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12444echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12445if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12446 echo $ECHO_N "(cached) $ECHO_C" >&6 12447else 12448 lt_prog_compiler_static_works_CXX=no 12449 save_LDFLAGS="$LDFLAGS" 12450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12451 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12453 # The linker can only warn and ignore the option if not recognized 12454 # So say no if there are warnings 12455 if test -s conftest.err; then 12456 # Append any errors to the config.log. 12457 cat conftest.err 1>&5 12458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12460 if diff conftest.exp conftest.er2 >/dev/null; then 12461 lt_prog_compiler_static_works_CXX=yes 12462 fi 12463 else 12464 lt_prog_compiler_static_works_CXX=yes 12465 fi 12466 fi 12467 $rm conftest* 12468 LDFLAGS="$save_LDFLAGS" 12469 12470fi 12471{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12472echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12473 12474if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12475 : 12476else 12477 lt_prog_compiler_static_CXX= 12478fi 12479 12480 12481{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12482echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12483if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12484 echo $ECHO_N "(cached) $ECHO_C" >&6 12485else 12486 lt_cv_prog_compiler_c_o_CXX=no 12487 $rm -r conftest 2>/dev/null 12488 mkdir conftest 12489 cd conftest 12490 mkdir out 12491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12492 12493 lt_compiler_flag="-o out/conftest2.$ac_objext" 12494 # Insert the option either (1) after the last *FLAGS variable, or 12495 # (2) before a word containing "conftest.", or (3) at the end. 12496 # Note that $ac_compile itself does not contain backslashes and begins 12497 # with a dollar sign (not a hyphen), so the echo should work correctly. 12498 lt_compile=`echo "$ac_compile" | $SED \ 12499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12501 -e 's:$: $lt_compiler_flag:'` 12502 (eval echo "\"\$as_me:12502: $lt_compile\"" >&5) 12503 (eval "$lt_compile" 2>out/conftest.err) 12504 ac_status=$? 12505 cat out/conftest.err >&5 12506 echo "$as_me:12506: \$? = $ac_status" >&5 12507 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12508 then 12509 # The compiler can only warn and ignore the option if not recognized 12510 # So say no if there are warnings 12511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12514 lt_cv_prog_compiler_c_o_CXX=yes 12515 fi 12516 fi 12517 chmod u+w . 2>&5 12518 $rm conftest* 12519 # SGI C++ compiler will create directory out/ii_files/ for 12520 # template instantiation 12521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12522 $rm out/* && rmdir out 12523 cd .. 12524 rmdir conftest 12525 $rm conftest* 12526 12527fi 12528{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12529echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12530 12531 12532hard_links="nottested" 12533if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12534 # do not overwrite the value of need_locks provided by the user 12535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12536echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12537 hard_links=yes 12538 $rm conftest* 12539 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12540 touch conftest.a 12541 ln conftest.a conftest.b 2>&5 || hard_links=no 12542 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12543 { echo "$as_me:$LINENO: result: $hard_links" >&5 12544echo "${ECHO_T}$hard_links" >&6; } 12545 if test "$hard_links" = no; then 12546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12547echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12548 need_locks=warn 12549 fi 12550else 12551 need_locks=no 12552fi 12553 12554{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12555echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12556 12557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12558 case $host_os in 12559 aix4* | aix5*) 12560 # If we're using GNU nm, then we don't want the "-C" option. 12561 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12563 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' 12564 else 12565 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' 12566 fi 12567 ;; 12568 pw32*) 12569 export_symbols_cmds_CXX="$ltdll_cmds" 12570 ;; 12571 cygwin* | mingw*) 12572 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' 12573 ;; 12574 *) 12575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12576 ;; 12577 esac 12578 12579{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12580echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12581test "$ld_shlibs_CXX" = no && can_build_shared=no 12582 12583# 12584# Do we need to explicitly link libc? 12585# 12586case "x$archive_cmds_need_lc_CXX" in 12587x|xyes) 12588 # Assume -lc should be added 12589 archive_cmds_need_lc_CXX=yes 12590 12591 if test "$enable_shared" = yes && test "$GCC" = yes; then 12592 case $archive_cmds_CXX in 12593 *'~'*) 12594 # FIXME: we may have to deal with multi-command sequences. 12595 ;; 12596 '$CC '*) 12597 # Test whether the compiler implicitly links with -lc since on some 12598 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12599 # to ld, don't add -lc before -lgcc. 12600 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12601echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12602 $rm conftest* 12603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12604 12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12606 (eval $ac_compile) 2>&5 12607 ac_status=$? 12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12609 (exit $ac_status); } 2>conftest.err; then 12610 soname=conftest 12611 lib=conftest 12612 libobjs=conftest.$ac_objext 12613 deplibs= 12614 wl=$lt_prog_compiler_wl_CXX 12615 pic_flag=$lt_prog_compiler_pic_CXX 12616 compiler_flags=-v 12617 linker_flags=-v 12618 verstring= 12619 output_objdir=. 12620 libname=conftest 12621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12622 allow_undefined_flag_CXX= 12623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12625 ac_status=$? 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12627 (exit $ac_status); } 12628 then 12629 archive_cmds_need_lc_CXX=no 12630 else 12631 archive_cmds_need_lc_CXX=yes 12632 fi 12633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12634 else 12635 cat conftest.err 1>&5 12636 fi 12637 $rm conftest* 12638 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12639echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12640 ;; 12641 esac 12642 fi 12643 ;; 12644esac 12645 12646{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12647echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12648library_names_spec= 12649libname_spec='lib$name' 12650soname_spec= 12651shrext_cmds=".so" 12652postinstall_cmds= 12653postuninstall_cmds= 12654finish_cmds= 12655finish_eval= 12656shlibpath_var= 12657shlibpath_overrides_runpath=unknown 12658version_type=none 12659dynamic_linker="$host_os ld.so" 12660sys_lib_dlsearch_path_spec="/lib /usr/lib" 12661 12662need_lib_prefix=unknown 12663hardcode_into_libs=no 12664 12665# when you set need_version to no, make sure it does not cause -set_version 12666# flags to be left without arguments 12667need_version=unknown 12668 12669case $host_os in 12670aix3*) 12671 version_type=linux 12672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12673 shlibpath_var=LIBPATH 12674 12675 # AIX 3 has no versioning support, so we append a major version to the name. 12676 soname_spec='${libname}${release}${shared_ext}$major' 12677 ;; 12678 12679aix4* | aix5*) 12680 version_type=linux 12681 need_lib_prefix=no 12682 need_version=no 12683 hardcode_into_libs=yes 12684 if test "$host_cpu" = ia64; then 12685 # AIX 5 supports IA64 12686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12687 shlibpath_var=LD_LIBRARY_PATH 12688 else 12689 # With GCC up to 2.95.x, collect2 would create an import file 12690 # for dependence libraries. The import file would start with 12691 # the line `#! .'. This would cause the generated library to 12692 # depend on `.', always an invalid library. This was fixed in 12693 # development snapshots of GCC prior to 3.0. 12694 case $host_os in 12695 aix4 | aix4.[01] | aix4.[01].*) 12696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12697 echo ' yes ' 12698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12699 : 12700 else 12701 can_build_shared=no 12702 fi 12703 ;; 12704 esac 12705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12706 # soname into executable. Probably we can add versioning support to 12707 # collect2, so additional links can be useful in future. 12708 if test "$aix_use_runtimelinking" = yes; then 12709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12710 # instead of lib<name>.a to let people know that these are not 12711 # typical AIX shared libraries. 12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12713 else 12714 # We preserve .a as extension for shared libraries through AIX4.2 12715 # and later when we are not doing run time linking. 12716 library_names_spec='${libname}${release}.a $libname.a' 12717 soname_spec='${libname}${release}${shared_ext}$major' 12718 fi 12719 shlibpath_var=LIBPATH 12720 fi 12721 ;; 12722 12723amigaos*) 12724 library_names_spec='$libname.ixlibrary $libname.a' 12725 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12726 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' 12727 ;; 12728 12729beos*) 12730 library_names_spec='${libname}${shared_ext}' 12731 dynamic_linker="$host_os ld.so" 12732 shlibpath_var=LIBRARY_PATH 12733 ;; 12734 12735bsdi[45]*) 12736 version_type=linux 12737 need_version=no 12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12739 soname_spec='${libname}${release}${shared_ext}$major' 12740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12741 shlibpath_var=LD_LIBRARY_PATH 12742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12744 # the default ld.so.conf also contains /usr/contrib/lib and 12745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12746 # libtool to hard-code these into programs 12747 ;; 12748 12749cygwin* | mingw* | pw32*) 12750 version_type=windows 12751 shrext_cmds=".dll" 12752 need_version=no 12753 need_lib_prefix=no 12754 12755 case $GCC,$host_os in 12756 yes,cygwin* | yes,mingw* | yes,pw32*) 12757 library_names_spec='$libname.dll.a' 12758 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12759 postinstall_cmds='base_file=`basename \${file}`~ 12760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12761 dldir=$destdir/`dirname \$dlpath`~ 12762 test -d \$dldir || mkdir -p \$dldir~ 12763 $install_prog $dir/$dlname \$dldir/$dlname~ 12764 chmod a+x \$dldir/$dlname' 12765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12766 dlpath=$dir/\$dldll~ 12767 $rm \$dlpath' 12768 shlibpath_overrides_runpath=yes 12769 12770 case $host_os in 12771 cygwin*) 12772 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12775 ;; 12776 mingw*) 12777 # MinGW DLLs use traditional 'lib' prefix 12778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12781 # It is most probably a Windows format PATH printed by 12782 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12783 # path with ; separators, and with drive letters. We can handle the 12784 # drive letters (cygwin fileutils understands them), so leave them, 12785 # especially as we might pass files found there to a mingw objdump, 12786 # which wouldn't understand a cygwinified path. Ahh. 12787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12788 else 12789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12790 fi 12791 ;; 12792 pw32*) 12793 # pw32 DLLs use 'pw' prefix rather than 'lib' 12794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12795 ;; 12796 esac 12797 ;; 12798 12799 *) 12800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12801 ;; 12802 esac 12803 dynamic_linker='Win32 ld.exe' 12804 # FIXME: first we should search . and the directory the executable is in 12805 shlibpath_var=PATH 12806 ;; 12807 12808darwin* | rhapsody*) 12809 dynamic_linker="$host_os dyld" 12810 version_type=darwin 12811 need_lib_prefix=no 12812 need_version=no 12813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12814 soname_spec='${libname}${release}${major}$shared_ext' 12815 shlibpath_overrides_runpath=yes 12816 shlibpath_var=DYLD_LIBRARY_PATH 12817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12818 12819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12820 ;; 12821 12822dgux*) 12823 version_type=linux 12824 need_lib_prefix=no 12825 need_version=no 12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12827 soname_spec='${libname}${release}${shared_ext}$major' 12828 shlibpath_var=LD_LIBRARY_PATH 12829 ;; 12830 12831freebsd1*) 12832 dynamic_linker=no 12833 ;; 12834 12835freebsd* | dragonfly*) 12836 # DragonFly does not have aout. When/if they implement a new 12837 # versioning mechanism, adjust this. 12838 if test -x /usr/bin/objformat; then 12839 objformat=`/usr/bin/objformat` 12840 else 12841 case $host_os in 12842 freebsd[123]*) objformat=aout ;; 12843 *) objformat=elf ;; 12844 esac 12845 fi 12846 version_type=freebsd-$objformat 12847 case $version_type in 12848 freebsd-elf*) 12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12850 need_version=no 12851 need_lib_prefix=no 12852 ;; 12853 freebsd-*) 12854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12855 need_version=yes 12856 ;; 12857 esac 12858 shlibpath_var=LD_LIBRARY_PATH 12859 case $host_os in 12860 freebsd2*) 12861 shlibpath_overrides_runpath=yes 12862 ;; 12863 freebsd3.[01]* | freebsdelf3.[01]*) 12864 shlibpath_overrides_runpath=yes 12865 hardcode_into_libs=yes 12866 ;; 12867 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12868 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12869 shlibpath_overrides_runpath=no 12870 hardcode_into_libs=yes 12871 ;; 12872 *) # from 4.6 on, and DragonFly 12873 shlibpath_overrides_runpath=yes 12874 hardcode_into_libs=yes 12875 ;; 12876 esac 12877 ;; 12878 12879gnu*) 12880 version_type=linux 12881 need_lib_prefix=no 12882 need_version=no 12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12884 soname_spec='${libname}${release}${shared_ext}$major' 12885 shlibpath_var=LD_LIBRARY_PATH 12886 hardcode_into_libs=yes 12887 ;; 12888 12889hpux9* | hpux10* | hpux11*) 12890 # Give a soname corresponding to the major version so that dld.sl refuses to 12891 # link against other versions. 12892 version_type=sunos 12893 need_lib_prefix=no 12894 need_version=no 12895 case $host_cpu in 12896 ia64*) 12897 shrext_cmds='.so' 12898 hardcode_into_libs=yes 12899 dynamic_linker="$host_os dld.so" 12900 shlibpath_var=LD_LIBRARY_PATH 12901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12903 soname_spec='${libname}${release}${shared_ext}$major' 12904 if test "X$HPUX_IA64_MODE" = X32; then 12905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12906 else 12907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12908 fi 12909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12910 ;; 12911 hppa*64*) 12912 shrext_cmds='.sl' 12913 hardcode_into_libs=yes 12914 dynamic_linker="$host_os dld.sl" 12915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12921 ;; 12922 *) 12923 shrext_cmds='.sl' 12924 dynamic_linker="$host_os dld.sl" 12925 shlibpath_var=SHLIB_PATH 12926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12928 soname_spec='${libname}${release}${shared_ext}$major' 12929 ;; 12930 esac 12931 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12932 postinstall_cmds='chmod 555 $lib' 12933 ;; 12934 12935interix[3-9]*) 12936 version_type=linux 12937 need_lib_prefix=no 12938 need_version=no 12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12940 soname_spec='${libname}${release}${shared_ext}$major' 12941 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12942 shlibpath_var=LD_LIBRARY_PATH 12943 shlibpath_overrides_runpath=no 12944 hardcode_into_libs=yes 12945 ;; 12946 12947irix5* | irix6* | nonstopux*) 12948 case $host_os in 12949 nonstopux*) version_type=nonstopux ;; 12950 *) 12951 if test "$lt_cv_prog_gnu_ld" = yes; then 12952 version_type=linux 12953 else 12954 version_type=irix 12955 fi ;; 12956 esac 12957 need_lib_prefix=no 12958 need_version=no 12959 soname_spec='${libname}${release}${shared_ext}$major' 12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12961 case $host_os in 12962 irix5* | nonstopux*) 12963 libsuff= shlibsuff= 12964 ;; 12965 *) 12966 case $LD in # libtool.m4 will add one of these switches to LD 12967 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12968 libsuff= shlibsuff= libmagic=32-bit;; 12969 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12970 libsuff=32 shlibsuff=N32 libmagic=N32;; 12971 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12972 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12973 *) libsuff= shlibsuff= libmagic=never-match;; 12974 esac 12975 ;; 12976 esac 12977 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12978 shlibpath_overrides_runpath=no 12979 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12980 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12981 hardcode_into_libs=yes 12982 ;; 12983 12984# No shared lib support for Linux oldld, aout, or coff. 12985linux*oldld* | linux*aout* | linux*coff*) 12986 dynamic_linker=no 12987 ;; 12988 12989# This must be Linux ELF. 12990linux* | k*bsd*-gnu) 12991 version_type=linux 12992 need_lib_prefix=no 12993 need_version=no 12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12995 soname_spec='${libname}${release}${shared_ext}$major' 12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12997 shlibpath_var=LD_LIBRARY_PATH 12998 shlibpath_overrides_runpath=no 12999 # This implies no fast_install, which is unacceptable. 13000 # Some rework will be needed to allow for fast_install 13001 # before this can be enabled. 13002 hardcode_into_libs=yes 13003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13005 13006 # Append ld.so.conf contents to the search path 13007 if test -f /etc/ld.so.conf; then 13008 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13009 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13010 fi 13011 13012 # We used to test for /lib/ld.so.1 and disable shared libraries on 13013 # powerpc, because MkLinux only supported shared libraries with the 13014 # GNU dynamic linker. Since this was broken with cross compilers, 13015 # most powerpc-linux boxes support dynamic linking these days and 13016 # people can always --disable-shared, the test was removed, and we 13017 # assume the GNU/Linux dynamic linker is in use. 13018 dynamic_linker='GNU/Linux ld.so' 13019 ;; 13020 13021netbsd*) 13022 version_type=sunos 13023 need_lib_prefix=no 13024 need_version=no 13025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13028 dynamic_linker='NetBSD (a.out) ld.so' 13029 else 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 dynamic_linker='NetBSD ld.elf_so' 13033 fi 13034 shlibpath_var=LD_LIBRARY_PATH 13035 shlibpath_overrides_runpath=yes 13036 hardcode_into_libs=yes 13037 ;; 13038 13039newsos6) 13040 version_type=linux 13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13042 shlibpath_var=LD_LIBRARY_PATH 13043 shlibpath_overrides_runpath=yes 13044 ;; 13045 13046nto-qnx*) 13047 version_type=linux 13048 need_lib_prefix=no 13049 need_version=no 13050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13051 soname_spec='${libname}${release}${shared_ext}$major' 13052 shlibpath_var=LD_LIBRARY_PATH 13053 shlibpath_overrides_runpath=yes 13054 ;; 13055 13056openbsd*) 13057 version_type=sunos 13058 sys_lib_dlsearch_path_spec="/usr/lib" 13059 need_lib_prefix=no 13060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13061 case $host_os in 13062 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13063 *) need_version=no ;; 13064 esac 13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13067 shlibpath_var=LD_LIBRARY_PATH 13068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13069 case $host_os in 13070 openbsd2.[89] | openbsd2.[89].*) 13071 shlibpath_overrides_runpath=no 13072 ;; 13073 *) 13074 shlibpath_overrides_runpath=yes 13075 ;; 13076 esac 13077 else 13078 shlibpath_overrides_runpath=yes 13079 fi 13080 ;; 13081 13082os2*) 13083 libname_spec='$name' 13084 shrext_cmds=".dll" 13085 need_lib_prefix=no 13086 library_names_spec='$libname${shared_ext} $libname.a' 13087 dynamic_linker='OS/2 ld.exe' 13088 shlibpath_var=LIBPATH 13089 ;; 13090 13091osf3* | osf4* | osf5*) 13092 version_type=osf 13093 need_lib_prefix=no 13094 need_version=no 13095 soname_spec='${libname}${release}${shared_ext}$major' 13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13097 shlibpath_var=LD_LIBRARY_PATH 13098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13100 ;; 13101 13102rdos*) 13103 dynamic_linker=no 13104 ;; 13105 13106solaris*) 13107 version_type=linux 13108 need_lib_prefix=no 13109 need_version=no 13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13111 soname_spec='${libname}${release}${shared_ext}$major' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 shlibpath_overrides_runpath=yes 13114 hardcode_into_libs=yes 13115 # ldd complains unless libraries are executable 13116 postinstall_cmds='chmod +x $lib' 13117 ;; 13118 13119sunos4*) 13120 version_type=sunos 13121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13123 shlibpath_var=LD_LIBRARY_PATH 13124 shlibpath_overrides_runpath=yes 13125 if test "$with_gnu_ld" = yes; then 13126 need_lib_prefix=no 13127 fi 13128 need_version=yes 13129 ;; 13130 13131sysv4 | sysv4.3*) 13132 version_type=linux 13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13134 soname_spec='${libname}${release}${shared_ext}$major' 13135 shlibpath_var=LD_LIBRARY_PATH 13136 case $host_vendor in 13137 sni) 13138 shlibpath_overrides_runpath=no 13139 need_lib_prefix=no 13140 export_dynamic_flag_spec='${wl}-Blargedynsym' 13141 runpath_var=LD_RUN_PATH 13142 ;; 13143 siemens) 13144 need_lib_prefix=no 13145 ;; 13146 motorola) 13147 need_lib_prefix=no 13148 need_version=no 13149 shlibpath_overrides_runpath=no 13150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13151 ;; 13152 esac 13153 ;; 13154 13155sysv4*MP*) 13156 if test -d /usr/nec ;then 13157 version_type=linux 13158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13159 soname_spec='$libname${shared_ext}.$major' 13160 shlibpath_var=LD_LIBRARY_PATH 13161 fi 13162 ;; 13163 13164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13165 version_type=freebsd-elf 13166 need_lib_prefix=no 13167 need_version=no 13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13169 soname_spec='${libname}${release}${shared_ext}$major' 13170 shlibpath_var=LD_LIBRARY_PATH 13171 hardcode_into_libs=yes 13172 if test "$with_gnu_ld" = yes; then 13173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13174 shlibpath_overrides_runpath=no 13175 else 13176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13177 shlibpath_overrides_runpath=yes 13178 case $host_os in 13179 sco3.2v5*) 13180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13181 ;; 13182 esac 13183 fi 13184 sys_lib_dlsearch_path_spec='/usr/lib' 13185 ;; 13186 13187uts4*) 13188 version_type=linux 13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13190 soname_spec='${libname}${release}${shared_ext}$major' 13191 shlibpath_var=LD_LIBRARY_PATH 13192 ;; 13193 13194*) 13195 dynamic_linker=no 13196 ;; 13197esac 13198{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13199echo "${ECHO_T}$dynamic_linker" >&6; } 13200test "$dynamic_linker" = no && can_build_shared=no 13201 13202variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13203if test "$GCC" = yes; then 13204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13205fi 13206 13207{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13208echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13209hardcode_action_CXX= 13210if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13211 test -n "$runpath_var_CXX" || \ 13212 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13213 13214 # We can hardcode non-existant directories. 13215 if test "$hardcode_direct_CXX" != no && 13216 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13217 # have to relink, otherwise we might link with an installed library 13218 # when we should be linking with a yet-to-be-installed one 13219 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13220 test "$hardcode_minus_L_CXX" != no; then 13221 # Linking always hardcodes the temporary library directory. 13222 hardcode_action_CXX=relink 13223 else 13224 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13225 hardcode_action_CXX=immediate 13226 fi 13227else 13228 # We cannot hardcode anything, or else we can only hardcode existing 13229 # directories. 13230 hardcode_action_CXX=unsupported 13231fi 13232{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13233echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13234 13235if test "$hardcode_action_CXX" = relink; then 13236 # Fast installation is not supported 13237 enable_fast_install=no 13238elif test "$shlibpath_overrides_runpath" = yes || 13239 test "$enable_shared" = no; then 13240 # Fast installation is not necessary 13241 enable_fast_install=needless 13242fi 13243 13244 13245# The else clause should only fire when bootstrapping the 13246# libtool distribution, otherwise you forgot to ship ltmain.sh 13247# with your package, and you will get complaints that there are 13248# no rules to generate ltmain.sh. 13249if test -f "$ltmain"; then 13250 # See if we are running on zsh, and set the options which allow our commands through 13251 # without removal of \ escapes. 13252 if test -n "${ZSH_VERSION+set}" ; then 13253 setopt NO_GLOB_SUBST 13254 fi 13255 # Now quote all the things that may contain metacharacters while being 13256 # careful not to overquote the AC_SUBSTed values. We take copies of the 13257 # variables and quote the copies for generation of the libtool script. 13258 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13259 SED SHELL STRIP \ 13260 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13261 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13262 deplibs_check_method reload_flag reload_cmds need_locks \ 13263 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13264 lt_cv_sys_global_symbol_to_c_name_address \ 13265 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13266 old_postinstall_cmds old_postuninstall_cmds \ 13267 compiler_CXX \ 13268 CC_CXX \ 13269 LD_CXX \ 13270 lt_prog_compiler_wl_CXX \ 13271 lt_prog_compiler_pic_CXX \ 13272 lt_prog_compiler_static_CXX \ 13273 lt_prog_compiler_no_builtin_flag_CXX \ 13274 export_dynamic_flag_spec_CXX \ 13275 thread_safe_flag_spec_CXX \ 13276 whole_archive_flag_spec_CXX \ 13277 enable_shared_with_static_runtimes_CXX \ 13278 old_archive_cmds_CXX \ 13279 old_archive_from_new_cmds_CXX \ 13280 predep_objects_CXX \ 13281 postdep_objects_CXX \ 13282 predeps_CXX \ 13283 postdeps_CXX \ 13284 compiler_lib_search_path_CXX \ 13285 archive_cmds_CXX \ 13286 archive_expsym_cmds_CXX \ 13287 postinstall_cmds_CXX \ 13288 postuninstall_cmds_CXX \ 13289 old_archive_from_expsyms_cmds_CXX \ 13290 allow_undefined_flag_CXX \ 13291 no_undefined_flag_CXX \ 13292 export_symbols_cmds_CXX \ 13293 hardcode_libdir_flag_spec_CXX \ 13294 hardcode_libdir_flag_spec_ld_CXX \ 13295 hardcode_libdir_separator_CXX \ 13296 hardcode_automatic_CXX \ 13297 module_cmds_CXX \ 13298 module_expsym_cmds_CXX \ 13299 lt_cv_prog_compiler_c_o_CXX \ 13300 fix_srcfile_path_CXX \ 13301 exclude_expsyms_CXX \ 13302 include_expsyms_CXX; do 13303 13304 case $var in 13305 old_archive_cmds_CXX | \ 13306 old_archive_from_new_cmds_CXX | \ 13307 archive_cmds_CXX | \ 13308 archive_expsym_cmds_CXX | \ 13309 module_cmds_CXX | \ 13310 module_expsym_cmds_CXX | \ 13311 old_archive_from_expsyms_cmds_CXX | \ 13312 export_symbols_cmds_CXX | \ 13313 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13314 postinstall_cmds | postuninstall_cmds | \ 13315 old_postinstall_cmds | old_postuninstall_cmds | \ 13316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13317 # Double-quote double-evaled strings. 13318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13319 ;; 13320 *) 13321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13322 ;; 13323 esac 13324 done 13325 13326 case $lt_echo in 13327 *'\$0 --fallback-echo"') 13328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13329 ;; 13330 esac 13331 13332cfgfile="$ofile" 13333 13334 cat <<__EOF__ >> "$cfgfile" 13335# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13336 13337# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13338 13339# Shell to use when invoking shell scripts. 13340SHELL=$lt_SHELL 13341 13342# Whether or not to build shared libraries. 13343build_libtool_libs=$enable_shared 13344 13345# Whether or not to build static libraries. 13346build_old_libs=$enable_static 13347 13348# Whether or not to add -lc for building shared libraries. 13349build_libtool_need_lc=$archive_cmds_need_lc_CXX 13350 13351# Whether or not to disallow shared libs when runtime libs are static 13352allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13353 13354# Whether or not to optimize for fast installation. 13355fast_install=$enable_fast_install 13356 13357# The host system. 13358host_alias=$host_alias 13359host=$host 13360host_os=$host_os 13361 13362# The build system. 13363build_alias=$build_alias 13364build=$build 13365build_os=$build_os 13366 13367# An echo program that does not interpret backslashes. 13368echo=$lt_echo 13369 13370# The archiver. 13371AR=$lt_AR 13372AR_FLAGS=$lt_AR_FLAGS 13373 13374# A C compiler. 13375LTCC=$lt_LTCC 13376 13377# LTCC compiler flags. 13378LTCFLAGS=$lt_LTCFLAGS 13379 13380# A language-specific compiler. 13381CC=$lt_compiler_CXX 13382 13383# Is the compiler the GNU C compiler? 13384with_gcc=$GCC_CXX 13385 13386# An ERE matcher. 13387EGREP=$lt_EGREP 13388 13389# The linker used to build libraries. 13390LD=$lt_LD_CXX 13391 13392# Whether we need hard or soft links. 13393LN_S=$lt_LN_S 13394 13395# A BSD-compatible nm program. 13396NM=$lt_NM 13397 13398# A symbol stripping program 13399STRIP=$lt_STRIP 13400 13401# Used to examine libraries when file_magic_cmd begins "file" 13402MAGIC_CMD=$MAGIC_CMD 13403 13404# Used on cygwin: DLL creation program. 13405DLLTOOL="$DLLTOOL" 13406 13407# Used on cygwin: object dumper. 13408OBJDUMP="$OBJDUMP" 13409 13410# Used on cygwin: assembler. 13411AS="$AS" 13412 13413# The name of the directory that contains temporary libtool files. 13414objdir=$objdir 13415 13416# How to create reloadable object files. 13417reload_flag=$lt_reload_flag 13418reload_cmds=$lt_reload_cmds 13419 13420# How to pass a linker flag through the compiler. 13421wl=$lt_lt_prog_compiler_wl_CXX 13422 13423# Object file suffix (normally "o"). 13424objext="$ac_objext" 13425 13426# Old archive suffix (normally "a"). 13427libext="$libext" 13428 13429# Shared library suffix (normally ".so"). 13430shrext_cmds='$shrext_cmds' 13431 13432# Executable file suffix (normally ""). 13433exeext="$exeext" 13434 13435# Additional compiler flags for building library objects. 13436pic_flag=$lt_lt_prog_compiler_pic_CXX 13437pic_mode=$pic_mode 13438 13439# What is the maximum length of a command? 13440max_cmd_len=$lt_cv_sys_max_cmd_len 13441 13442# Does compiler simultaneously support -c and -o options? 13443compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13444 13445# Must we lock files when doing compilation? 13446need_locks=$lt_need_locks 13447 13448# Do we need the lib prefix for modules? 13449need_lib_prefix=$need_lib_prefix 13450 13451# Do we need a version for libraries? 13452need_version=$need_version 13453 13454# Whether dlopen is supported. 13455dlopen_support=$enable_dlopen 13456 13457# Whether dlopen of programs is supported. 13458dlopen_self=$enable_dlopen_self 13459 13460# Whether dlopen of statically linked programs is supported. 13461dlopen_self_static=$enable_dlopen_self_static 13462 13463# Compiler flag to prevent dynamic linking. 13464link_static_flag=$lt_lt_prog_compiler_static_CXX 13465 13466# Compiler flag to turn off builtin functions. 13467no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13468 13469# Compiler flag to allow reflexive dlopens. 13470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13471 13472# Compiler flag to generate shared objects directly from archives. 13473whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13474 13475# Compiler flag to generate thread-safe objects. 13476thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13477 13478# Library versioning type. 13479version_type=$version_type 13480 13481# Format of library name prefix. 13482libname_spec=$lt_libname_spec 13483 13484# List of archive names. First name is the real one, the rest are links. 13485# The last name is the one that the linker finds with -lNAME. 13486library_names_spec=$lt_library_names_spec 13487 13488# The coded name of the library, if different from the real name. 13489soname_spec=$lt_soname_spec 13490 13491# Commands used to build and install an old-style archive. 13492RANLIB=$lt_RANLIB 13493old_archive_cmds=$lt_old_archive_cmds_CXX 13494old_postinstall_cmds=$lt_old_postinstall_cmds 13495old_postuninstall_cmds=$lt_old_postuninstall_cmds 13496 13497# Create an old-style archive from a shared archive. 13498old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13499 13500# Create a temporary old-style archive to link instead of a shared archive. 13501old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13502 13503# Commands used to build and install a shared archive. 13504archive_cmds=$lt_archive_cmds_CXX 13505archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13506postinstall_cmds=$lt_postinstall_cmds 13507postuninstall_cmds=$lt_postuninstall_cmds 13508 13509# Commands used to build a loadable module (assumed same as above if empty) 13510module_cmds=$lt_module_cmds_CXX 13511module_expsym_cmds=$lt_module_expsym_cmds_CXX 13512 13513# Commands to strip libraries. 13514old_striplib=$lt_old_striplib 13515striplib=$lt_striplib 13516 13517# Dependencies to place before the objects being linked to create a 13518# shared library. 13519predep_objects=$lt_predep_objects_CXX 13520 13521# Dependencies to place after the objects being linked to create a 13522# shared library. 13523postdep_objects=$lt_postdep_objects_CXX 13524 13525# Dependencies to place before the objects being linked to create a 13526# shared library. 13527predeps=$lt_predeps_CXX 13528 13529# Dependencies to place after the objects being linked to create a 13530# shared library. 13531postdeps=$lt_postdeps_CXX 13532 13533# The library search path used internally by the compiler when linking 13534# a shared library. 13535compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13536 13537# Method to check whether dependent libraries are shared objects. 13538deplibs_check_method=$lt_deplibs_check_method 13539 13540# Command to use when deplibs_check_method == file_magic. 13541file_magic_cmd=$lt_file_magic_cmd 13542 13543# Flag that allows shared libraries with undefined symbols to be built. 13544allow_undefined_flag=$lt_allow_undefined_flag_CXX 13545 13546# Flag that forces no undefined symbols. 13547no_undefined_flag=$lt_no_undefined_flag_CXX 13548 13549# Commands used to finish a libtool library installation in a directory. 13550finish_cmds=$lt_finish_cmds 13551 13552# Same as above, but a single script fragment to be evaled but not shown. 13553finish_eval=$lt_finish_eval 13554 13555# Take the output of nm and produce a listing of raw symbols and C names. 13556global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13557 13558# Transform the output of nm in a proper C declaration 13559global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13560 13561# Transform the output of nm in a C name address pair 13562global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13563 13564# This is the shared library runtime path variable. 13565runpath_var=$runpath_var 13566 13567# This is the shared library path variable. 13568shlibpath_var=$shlibpath_var 13569 13570# Is shlibpath searched before the hard-coded library search path? 13571shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13572 13573# How to hardcode a shared library path into an executable. 13574hardcode_action=$hardcode_action_CXX 13575 13576# Whether we should hardcode library paths into libraries. 13577hardcode_into_libs=$hardcode_into_libs 13578 13579# Flag to hardcode \$libdir into a binary during linking. 13580# This must work even if \$libdir does not exist. 13581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13582 13583# If ld is used when linking, flag to hardcode \$libdir into 13584# a binary during linking. This must work even if \$libdir does 13585# not exist. 13586hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13587 13588# Whether we need a single -rpath flag with a separated argument. 13589hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13590 13591# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13592# resulting binary. 13593hardcode_direct=$hardcode_direct_CXX 13594 13595# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13596# resulting binary. 13597hardcode_minus_L=$hardcode_minus_L_CXX 13598 13599# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13600# the resulting binary. 13601hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13602 13603# Set to yes if building a shared library automatically hardcodes DIR into the library 13604# and all subsequent libraries and executables linked against it. 13605hardcode_automatic=$hardcode_automatic_CXX 13606 13607# Variables whose values should be saved in libtool wrapper scripts and 13608# restored at relink time. 13609variables_saved_for_relink="$variables_saved_for_relink" 13610 13611# Whether libtool must link a program against all its dependency libraries. 13612link_all_deplibs=$link_all_deplibs_CXX 13613 13614# Compile-time system search path for libraries 13615sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13616 13617# Run-time system search path for libraries 13618sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13619 13620# Fix the shell variable \$srcfile for the compiler. 13621fix_srcfile_path=$lt_fix_srcfile_path 13622 13623# Set to yes if exported symbols are required. 13624always_export_symbols=$always_export_symbols_CXX 13625 13626# The commands to list exported symbols. 13627export_symbols_cmds=$lt_export_symbols_cmds_CXX 13628 13629# The commands to extract the exported symbol list from a shared archive. 13630extract_expsyms_cmds=$lt_extract_expsyms_cmds 13631 13632# Symbols that should not be listed in the preloaded symbols. 13633exclude_expsyms=$lt_exclude_expsyms_CXX 13634 13635# Symbols that must always be exported. 13636include_expsyms=$lt_include_expsyms_CXX 13637 13638# ### END LIBTOOL TAG CONFIG: $tagname 13639 13640__EOF__ 13641 13642 13643else 13644 # If there is no Makefile yet, we rely on a make rule to execute 13645 # `config.status --recheck' to rerun these tests and create the 13646 # libtool script then. 13647 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13648 if test -f "$ltmain_in"; then 13649 test -f Makefile && make "$ltmain" 13650 fi 13651fi 13652 13653 13654ac_ext=c 13655ac_cpp='$CPP $CPPFLAGS' 13656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13658ac_compiler_gnu=$ac_cv_c_compiler_gnu 13659 13660CC=$lt_save_CC 13661LDCXX=$LD 13662LD=$lt_save_LD 13663GCC=$lt_save_GCC 13664with_gnu_ldcxx=$with_gnu_ld 13665with_gnu_ld=$lt_save_with_gnu_ld 13666lt_cv_path_LDCXX=$lt_cv_path_LD 13667lt_cv_path_LD=$lt_save_path_LD 13668lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13669lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13670 13671 else 13672 tagname="" 13673 fi 13674 ;; 13675 13676 F77) 13677 if test -n "$F77" && test "X$F77" != "Xno"; then 13678 13679ac_ext=f 13680ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13681ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13682ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13683 13684 13685archive_cmds_need_lc_F77=no 13686allow_undefined_flag_F77= 13687always_export_symbols_F77=no 13688archive_expsym_cmds_F77= 13689export_dynamic_flag_spec_F77= 13690hardcode_direct_F77=no 13691hardcode_libdir_flag_spec_F77= 13692hardcode_libdir_flag_spec_ld_F77= 13693hardcode_libdir_separator_F77= 13694hardcode_minus_L_F77=no 13695hardcode_automatic_F77=no 13696module_cmds_F77= 13697module_expsym_cmds_F77= 13698link_all_deplibs_F77=unknown 13699old_archive_cmds_F77=$old_archive_cmds 13700no_undefined_flag_F77= 13701whole_archive_flag_spec_F77= 13702enable_shared_with_static_runtimes_F77=no 13703 13704# Source file extension for f77 test sources. 13705ac_ext=f 13706 13707# Object file extension for compiled f77 test sources. 13708objext=o 13709objext_F77=$objext 13710 13711# Code to be used in simple compile tests 13712lt_simple_compile_test_code="\ 13713 subroutine t 13714 return 13715 end 13716" 13717 13718# Code to be used in simple link tests 13719lt_simple_link_test_code="\ 13720 program t 13721 end 13722" 13723 13724# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13725 13726# If no C compiler was specified, use CC. 13727LTCC=${LTCC-"$CC"} 13728 13729# If no C compiler flags were specified, use CFLAGS. 13730LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13731 13732# Allow CC to be a program name with arguments. 13733compiler=$CC 13734 13735 13736# save warnings/boilerplate of simple test code 13737ac_outfile=conftest.$ac_objext 13738echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13740_lt_compiler_boilerplate=`cat conftest.err` 13741$rm conftest* 13742 13743ac_outfile=conftest.$ac_objext 13744echo "$lt_simple_link_test_code" >conftest.$ac_ext 13745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13746_lt_linker_boilerplate=`cat conftest.err` 13747$rm conftest* 13748 13749 13750# Allow CC to be a program name with arguments. 13751lt_save_CC="$CC" 13752CC=${F77-"f77"} 13753compiler=$CC 13754compiler_F77=$CC 13755for cc_temp in $compiler""; do 13756 case $cc_temp in 13757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13759 \-*) ;; 13760 *) break;; 13761 esac 13762done 13763cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13764 13765 13766{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13767echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13768{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13769echo "${ECHO_T}$can_build_shared" >&6; } 13770 13771{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13772echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13773test "$can_build_shared" = "no" && enable_shared=no 13774 13775# On AIX, shared libraries and static libraries use the same namespace, and 13776# are all built from PIC. 13777case $host_os in 13778aix3*) 13779 test "$enable_shared" = yes && enable_static=no 13780 if test -n "$RANLIB"; then 13781 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13782 postinstall_cmds='$RANLIB $lib' 13783 fi 13784 ;; 13785aix4* | aix5*) 13786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13787 test "$enable_shared" = yes && enable_static=no 13788 fi 13789 ;; 13790esac 13791{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13792echo "${ECHO_T}$enable_shared" >&6; } 13793 13794{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13795echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13796# Make sure either enable_shared or enable_static is yes. 13797test "$enable_shared" = yes || enable_static=yes 13798{ echo "$as_me:$LINENO: result: $enable_static" >&5 13799echo "${ECHO_T}$enable_static" >&6; } 13800 13801GCC_F77="$G77" 13802LD_F77="$LD" 13803 13804lt_prog_compiler_wl_F77= 13805lt_prog_compiler_pic_F77= 13806lt_prog_compiler_static_F77= 13807 13808{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13810 13811 if test "$GCC" = yes; then 13812 lt_prog_compiler_wl_F77='-Wl,' 13813 lt_prog_compiler_static_F77='-static' 13814 13815 case $host_os in 13816 aix*) 13817 # All AIX code is PIC. 13818 if test "$host_cpu" = ia64; then 13819 # AIX 5 now supports IA64 processor 13820 lt_prog_compiler_static_F77='-Bstatic' 13821 fi 13822 ;; 13823 13824 amigaos*) 13825 # FIXME: we need at least 68020 code to build shared libraries, but 13826 # adding the `-m68020' flag to GCC prevents building anything better, 13827 # like `-m68040'. 13828 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13829 ;; 13830 13831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13832 # PIC is the default for these OSes. 13833 ;; 13834 13835 mingw* | cygwin* | pw32* | os2*) 13836 # This hack is so that the source file can tell whether it is being 13837 # built for inclusion in a dll (and should export symbols for example). 13838 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13839 # (--disable-auto-import) libraries 13840 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13841 ;; 13842 13843 darwin* | rhapsody*) 13844 # PIC is the default on this platform 13845 # Common symbols not allowed in MH_DYLIB files 13846 lt_prog_compiler_pic_F77='-fno-common' 13847 ;; 13848 13849 interix[3-9]*) 13850 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13851 # Instead, we relocate shared libraries at runtime. 13852 ;; 13853 13854 msdosdjgpp*) 13855 # Just because we use GCC doesn't mean we suddenly get shared libraries 13856 # on systems that don't support them. 13857 lt_prog_compiler_can_build_shared_F77=no 13858 enable_shared=no 13859 ;; 13860 13861 sysv4*MP*) 13862 if test -d /usr/nec; then 13863 lt_prog_compiler_pic_F77=-Kconform_pic 13864 fi 13865 ;; 13866 13867 hpux*) 13868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13869 # not for PA HP-UX. 13870 case $host_cpu in 13871 hppa*64*|ia64*) 13872 # +Z the default 13873 ;; 13874 *) 13875 lt_prog_compiler_pic_F77='-fPIC' 13876 ;; 13877 esac 13878 ;; 13879 13880 *) 13881 lt_prog_compiler_pic_F77='-fPIC' 13882 ;; 13883 esac 13884 else 13885 # PORTME Check for flag to pass linker flags through the system compiler. 13886 case $host_os in 13887 aix*) 13888 lt_prog_compiler_wl_F77='-Wl,' 13889 if test "$host_cpu" = ia64; then 13890 # AIX 5 now supports IA64 processor 13891 lt_prog_compiler_static_F77='-Bstatic' 13892 else 13893 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13894 fi 13895 ;; 13896 darwin*) 13897 # PIC is the default on this platform 13898 # Common symbols not allowed in MH_DYLIB files 13899 case $cc_basename in 13900 xlc*) 13901 lt_prog_compiler_pic_F77='-qnocommon' 13902 lt_prog_compiler_wl_F77='-Wl,' 13903 ;; 13904 esac 13905 ;; 13906 13907 mingw* | cygwin* | pw32* | os2*) 13908 # This hack is so that the source file can tell whether it is being 13909 # built for inclusion in a dll (and should export symbols for example). 13910 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13911 ;; 13912 13913 hpux9* | hpux10* | hpux11*) 13914 lt_prog_compiler_wl_F77='-Wl,' 13915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13916 # not for PA HP-UX. 13917 case $host_cpu in 13918 hppa*64*|ia64*) 13919 # +Z the default 13920 ;; 13921 *) 13922 lt_prog_compiler_pic_F77='+Z' 13923 ;; 13924 esac 13925 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13926 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13927 ;; 13928 13929 irix5* | irix6* | nonstopux*) 13930 lt_prog_compiler_wl_F77='-Wl,' 13931 # PIC (with -KPIC) is the default. 13932 lt_prog_compiler_static_F77='-non_shared' 13933 ;; 13934 13935 newsos6) 13936 lt_prog_compiler_pic_F77='-KPIC' 13937 lt_prog_compiler_static_F77='-Bstatic' 13938 ;; 13939 13940 linux* | k*bsd*-gnu) 13941 case $cc_basename in 13942 icc* | ecc*) 13943 lt_prog_compiler_wl_F77='-Wl,' 13944 lt_prog_compiler_pic_F77='-KPIC' 13945 lt_prog_compiler_static_F77='-static' 13946 ;; 13947 pgcc* | pgf77* | pgf90* | pgf95*) 13948 # Portland Group compilers (*not* the Pentium gcc compiler, 13949 # which looks to be a dead project) 13950 lt_prog_compiler_wl_F77='-Wl,' 13951 lt_prog_compiler_pic_F77='-fpic' 13952 lt_prog_compiler_static_F77='-Bstatic' 13953 ;; 13954 ccc*) 13955 lt_prog_compiler_wl_F77='-Wl,' 13956 # All Alpha code is PIC. 13957 lt_prog_compiler_static_F77='-non_shared' 13958 ;; 13959 *) 13960 case `$CC -V 2>&1 | sed 5q` in 13961 *Sun\ C*) 13962 # Sun C 5.9 13963 lt_prog_compiler_pic_F77='-KPIC' 13964 lt_prog_compiler_static_F77='-Bstatic' 13965 lt_prog_compiler_wl_F77='-Wl,' 13966 ;; 13967 *Sun\ F*) 13968 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13969 lt_prog_compiler_pic_F77='-KPIC' 13970 lt_prog_compiler_static_F77='-Bstatic' 13971 lt_prog_compiler_wl_F77='' 13972 ;; 13973 esac 13974 ;; 13975 esac 13976 ;; 13977 13978 osf3* | osf4* | osf5*) 13979 lt_prog_compiler_wl_F77='-Wl,' 13980 # All OSF/1 code is PIC. 13981 lt_prog_compiler_static_F77='-non_shared' 13982 ;; 13983 13984 rdos*) 13985 lt_prog_compiler_static_F77='-non_shared' 13986 ;; 13987 13988 solaris*) 13989 lt_prog_compiler_pic_F77='-KPIC' 13990 lt_prog_compiler_static_F77='-Bstatic' 13991 case $cc_basename in 13992 f77* | f90* | f95*) 13993 lt_prog_compiler_wl_F77='-Qoption ld ';; 13994 *) 13995 lt_prog_compiler_wl_F77='-Wl,';; 13996 esac 13997 ;; 13998 13999 sunos4*) 14000 lt_prog_compiler_wl_F77='-Qoption ld ' 14001 lt_prog_compiler_pic_F77='-PIC' 14002 lt_prog_compiler_static_F77='-Bstatic' 14003 ;; 14004 14005 sysv4 | sysv4.2uw2* | sysv4.3*) 14006 lt_prog_compiler_wl_F77='-Wl,' 14007 lt_prog_compiler_pic_F77='-KPIC' 14008 lt_prog_compiler_static_F77='-Bstatic' 14009 ;; 14010 14011 sysv4*MP*) 14012 if test -d /usr/nec ;then 14013 lt_prog_compiler_pic_F77='-Kconform_pic' 14014 lt_prog_compiler_static_F77='-Bstatic' 14015 fi 14016 ;; 14017 14018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14019 lt_prog_compiler_wl_F77='-Wl,' 14020 lt_prog_compiler_pic_F77='-KPIC' 14021 lt_prog_compiler_static_F77='-Bstatic' 14022 ;; 14023 14024 unicos*) 14025 lt_prog_compiler_wl_F77='-Wl,' 14026 lt_prog_compiler_can_build_shared_F77=no 14027 ;; 14028 14029 uts4*) 14030 lt_prog_compiler_pic_F77='-pic' 14031 lt_prog_compiler_static_F77='-Bstatic' 14032 ;; 14033 14034 *) 14035 lt_prog_compiler_can_build_shared_F77=no 14036 ;; 14037 esac 14038 fi 14039 14040{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14041echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14042 14043# 14044# Check to make sure the PIC flag actually works. 14045# 14046if test -n "$lt_prog_compiler_pic_F77"; then 14047 14048{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14049echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14050if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14051 echo $ECHO_N "(cached) $ECHO_C" >&6 14052else 14053 lt_prog_compiler_pic_works_F77=no 14054 ac_outfile=conftest.$ac_objext 14055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14056 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14057 # Insert the option either (1) after the last *FLAGS variable, or 14058 # (2) before a word containing "conftest.", or (3) at the end. 14059 # Note that $ac_compile itself does not contain backslashes and begins 14060 # with a dollar sign (not a hyphen), so the echo should work correctly. 14061 # The option is referenced via a variable to avoid confusing sed. 14062 lt_compile=`echo "$ac_compile" | $SED \ 14063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14065 -e 's:$: $lt_compiler_flag:'` 14066 (eval echo "\"\$as_me:14066: $lt_compile\"" >&5) 14067 (eval "$lt_compile" 2>conftest.err) 14068 ac_status=$? 14069 cat conftest.err >&5 14070 echo "$as_me:14070: \$? = $ac_status" >&5 14071 if (exit $ac_status) && test -s "$ac_outfile"; then 14072 # The compiler can only warn and ignore the option if not recognized 14073 # So say no if there are warnings other than the usual output. 14074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14077 lt_prog_compiler_pic_works_F77=yes 14078 fi 14079 fi 14080 $rm conftest* 14081 14082fi 14083{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14084echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14085 14086if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14087 case $lt_prog_compiler_pic_F77 in 14088 "" | " "*) ;; 14089 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14090 esac 14091else 14092 lt_prog_compiler_pic_F77= 14093 lt_prog_compiler_can_build_shared_F77=no 14094fi 14095 14096fi 14097case $host_os in 14098 # For platforms which do not support PIC, -DPIC is meaningless: 14099 *djgpp*) 14100 lt_prog_compiler_pic_F77= 14101 ;; 14102 *) 14103 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14104 ;; 14105esac 14106 14107# 14108# Check to make sure the static flag actually works. 14109# 14110wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14111{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14112echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14113if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14114 echo $ECHO_N "(cached) $ECHO_C" >&6 14115else 14116 lt_prog_compiler_static_works_F77=no 14117 save_LDFLAGS="$LDFLAGS" 14118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14119 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14121 # The linker can only warn and ignore the option if not recognized 14122 # So say no if there are warnings 14123 if test -s conftest.err; then 14124 # Append any errors to the config.log. 14125 cat conftest.err 1>&5 14126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14128 if diff conftest.exp conftest.er2 >/dev/null; then 14129 lt_prog_compiler_static_works_F77=yes 14130 fi 14131 else 14132 lt_prog_compiler_static_works_F77=yes 14133 fi 14134 fi 14135 $rm conftest* 14136 LDFLAGS="$save_LDFLAGS" 14137 14138fi 14139{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14140echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14141 14142if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14143 : 14144else 14145 lt_prog_compiler_static_F77= 14146fi 14147 14148 14149{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14150echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14151if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14152 echo $ECHO_N "(cached) $ECHO_C" >&6 14153else 14154 lt_cv_prog_compiler_c_o_F77=no 14155 $rm -r conftest 2>/dev/null 14156 mkdir conftest 14157 cd conftest 14158 mkdir out 14159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14160 14161 lt_compiler_flag="-o out/conftest2.$ac_objext" 14162 # Insert the option either (1) after the last *FLAGS variable, or 14163 # (2) before a word containing "conftest.", or (3) at the end. 14164 # Note that $ac_compile itself does not contain backslashes and begins 14165 # with a dollar sign (not a hyphen), so the echo should work correctly. 14166 lt_compile=`echo "$ac_compile" | $SED \ 14167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14169 -e 's:$: $lt_compiler_flag:'` 14170 (eval echo "\"\$as_me:14170: $lt_compile\"" >&5) 14171 (eval "$lt_compile" 2>out/conftest.err) 14172 ac_status=$? 14173 cat out/conftest.err >&5 14174 echo "$as_me:14174: \$? = $ac_status" >&5 14175 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14176 then 14177 # The compiler can only warn and ignore the option if not recognized 14178 # So say no if there are warnings 14179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14182 lt_cv_prog_compiler_c_o_F77=yes 14183 fi 14184 fi 14185 chmod u+w . 2>&5 14186 $rm conftest* 14187 # SGI C++ compiler will create directory out/ii_files/ for 14188 # template instantiation 14189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14190 $rm out/* && rmdir out 14191 cd .. 14192 rmdir conftest 14193 $rm conftest* 14194 14195fi 14196{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14197echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14198 14199 14200hard_links="nottested" 14201if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14202 # do not overwrite the value of need_locks provided by the user 14203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14204echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14205 hard_links=yes 14206 $rm conftest* 14207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14208 touch conftest.a 14209 ln conftest.a conftest.b 2>&5 || hard_links=no 14210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14211 { echo "$as_me:$LINENO: result: $hard_links" >&5 14212echo "${ECHO_T}$hard_links" >&6; } 14213 if test "$hard_links" = no; then 14214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14215echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14216 need_locks=warn 14217 fi 14218else 14219 need_locks=no 14220fi 14221 14222{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14224 14225 runpath_var= 14226 allow_undefined_flag_F77= 14227 enable_shared_with_static_runtimes_F77=no 14228 archive_cmds_F77= 14229 archive_expsym_cmds_F77= 14230 old_archive_From_new_cmds_F77= 14231 old_archive_from_expsyms_cmds_F77= 14232 export_dynamic_flag_spec_F77= 14233 whole_archive_flag_spec_F77= 14234 thread_safe_flag_spec_F77= 14235 hardcode_libdir_flag_spec_F77= 14236 hardcode_libdir_flag_spec_ld_F77= 14237 hardcode_libdir_separator_F77= 14238 hardcode_direct_F77=no 14239 hardcode_minus_L_F77=no 14240 hardcode_shlibpath_var_F77=unsupported 14241 link_all_deplibs_F77=unknown 14242 hardcode_automatic_F77=no 14243 module_cmds_F77= 14244 module_expsym_cmds_F77= 14245 always_export_symbols_F77=no 14246 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14247 # include_expsyms should be a list of space-separated symbols to be *always* 14248 # included in the symbol list 14249 include_expsyms_F77= 14250 # exclude_expsyms can be an extended regexp of symbols to exclude 14251 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14253 # as well as any symbol that contains `d'. 14254 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14256 # platforms (ab)use it in PIC code, but their linkers get confused if 14257 # the symbol is explicitly referenced. Since portable code cannot 14258 # rely on this symbol name, it's probably fine to never include it in 14259 # preloaded symbol tables. 14260 extract_expsyms_cmds= 14261 # Just being paranoid about ensuring that cc_basename is set. 14262 for cc_temp in $compiler""; do 14263 case $cc_temp in 14264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14266 \-*) ;; 14267 *) break;; 14268 esac 14269done 14270cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14271 14272 case $host_os in 14273 cygwin* | mingw* | pw32*) 14274 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14275 # When not using gcc, we currently assume that we are using 14276 # Microsoft Visual C++. 14277 if test "$GCC" != yes; then 14278 with_gnu_ld=no 14279 fi 14280 ;; 14281 interix*) 14282 # we just hope/assume this is gcc and not c89 (= MSVC++) 14283 with_gnu_ld=yes 14284 ;; 14285 openbsd*) 14286 with_gnu_ld=no 14287 ;; 14288 esac 14289 14290 ld_shlibs_F77=yes 14291 if test "$with_gnu_ld" = yes; then 14292 # If archive_cmds runs LD, not CC, wlarc should be empty 14293 wlarc='${wl}' 14294 14295 # Set some defaults for GNU ld with shared library support. These 14296 # are reset later if shared libraries are not supported. Putting them 14297 # here allows them to be overridden if necessary. 14298 runpath_var=LD_RUN_PATH 14299 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14300 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14301 # ancient GNU ld didn't support --whole-archive et. al. 14302 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14303 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14304 else 14305 whole_archive_flag_spec_F77= 14306 fi 14307 supports_anon_versioning=no 14308 case `$LD -v 2>/dev/null` in 14309 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14312 *\ 2.11.*) ;; # other 2.11 versions 14313 *) supports_anon_versioning=yes ;; 14314 esac 14315 14316 # See if GNU ld supports shared libraries. 14317 case $host_os in 14318 aix3* | aix4* | aix5*) 14319 # On AIX/PPC, the GNU linker is very broken 14320 if test "$host_cpu" != ia64; then 14321 ld_shlibs_F77=no 14322 cat <<EOF 1>&2 14323 14324*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14325*** to be unable to reliably create shared libraries on AIX. 14326*** Therefore, libtool is disabling shared libraries support. If you 14327*** really care for shared libraries, you may want to modify your PATH 14328*** so that a non-GNU linker is found, and then restart. 14329 14330EOF 14331 fi 14332 ;; 14333 14334 amigaos*) 14335 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)' 14336 hardcode_libdir_flag_spec_F77='-L$libdir' 14337 hardcode_minus_L_F77=yes 14338 14339 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14340 # that the semantics of dynamic libraries on AmigaOS, at least up 14341 # to version 4, is to share data among multiple programs linked 14342 # with the same dynamic library. Since this doesn't match the 14343 # behavior of shared libraries on other platforms, we can't use 14344 # them. 14345 ld_shlibs_F77=no 14346 ;; 14347 14348 beos*) 14349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14350 allow_undefined_flag_F77=unsupported 14351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14352 # support --undefined. This deserves some investigation. FIXME 14353 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14354 else 14355 ld_shlibs_F77=no 14356 fi 14357 ;; 14358 14359 cygwin* | mingw* | pw32*) 14360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14361 # as there is no search path for DLLs. 14362 hardcode_libdir_flag_spec_F77='-L$libdir' 14363 allow_undefined_flag_F77=unsupported 14364 always_export_symbols_F77=no 14365 enable_shared_with_static_runtimes_F77=yes 14366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14367 14368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14370 # If the export-symbols file already is a .def file (1st line 14371 # is EXPORTS), use it as is; otherwise, prepend... 14372 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14373 cp $export_symbols $output_objdir/$soname.def; 14374 else 14375 echo EXPORTS > $output_objdir/$soname.def; 14376 cat $export_symbols >> $output_objdir/$soname.def; 14377 fi~ 14378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14379 else 14380 ld_shlibs_F77=no 14381 fi 14382 ;; 14383 14384 interix[3-9]*) 14385 hardcode_direct_F77=no 14386 hardcode_shlibpath_var_F77=no 14387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14388 export_dynamic_flag_spec_F77='${wl}-E' 14389 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14390 # Instead, shared libraries are loaded at an image base (0x10000000 by 14391 # default) and relocated if they conflict, which is a slow very memory 14392 # consuming and fragmenting process. To avoid this, we pick a random, 14393 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14394 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14395 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' 14396 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' 14397 ;; 14398 14399 gnu* | linux* | k*bsd*-gnu) 14400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14401 tmp_addflag= 14402 case $cc_basename,$host_cpu in 14403 pgcc*) # Portland Group C compiler 14404 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' 14405 tmp_addflag=' $pic_flag' 14406 ;; 14407 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14408 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' 14409 tmp_addflag=' $pic_flag -Mnomain' ;; 14410 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14411 tmp_addflag=' -i_dynamic' ;; 14412 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14413 tmp_addflag=' -i_dynamic -nofor_main' ;; 14414 ifc* | ifort*) # Intel Fortran compiler 14415 tmp_addflag=' -nofor_main' ;; 14416 esac 14417 case `$CC -V 2>&1 | sed 5q` in 14418 *Sun\ C*) # Sun C 5.9 14419 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14420 tmp_sharedflag='-G' ;; 14421 *Sun\ F*) # Sun Fortran 8.3 14422 tmp_sharedflag='-G' ;; 14423 *) 14424 tmp_sharedflag='-shared' ;; 14425 esac 14426 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14427 14428 if test $supports_anon_versioning = yes; then 14429 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14431 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14432 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14433 fi 14434 else 14435 ld_shlibs_F77=no 14436 fi 14437 ;; 14438 14439 netbsd*) 14440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14441 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14442 wlarc= 14443 else 14444 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14445 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14446 fi 14447 ;; 14448 14449 solaris*) 14450 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14451 ld_shlibs_F77=no 14452 cat <<EOF 1>&2 14453 14454*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14455*** create shared libraries on Solaris systems. Therefore, libtool 14456*** is disabling shared libraries support. We urge you to upgrade GNU 14457*** binutils to release 2.9.1 or newer. Another option is to modify 14458*** your PATH or compiler configuration so that the native linker is 14459*** used, and then restart. 14460 14461EOF 14462 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14463 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14464 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14465 else 14466 ld_shlibs_F77=no 14467 fi 14468 ;; 14469 14470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14471 case `$LD -v 2>&1` in 14472 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14473 ld_shlibs_F77=no 14474 cat <<_LT_EOF 1>&2 14475 14476*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14477*** reliably create shared libraries on SCO systems. Therefore, libtool 14478*** is disabling shared libraries support. We urge you to upgrade GNU 14479*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14480*** your PATH or compiler configuration so that the native linker is 14481*** used, and then restart. 14482 14483_LT_EOF 14484 ;; 14485 *) 14486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14487 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14490 else 14491 ld_shlibs_F77=no 14492 fi 14493 ;; 14494 esac 14495 ;; 14496 14497 sunos4*) 14498 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14499 wlarc= 14500 hardcode_direct_F77=yes 14501 hardcode_shlibpath_var_F77=no 14502 ;; 14503 14504 *) 14505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14508 else 14509 ld_shlibs_F77=no 14510 fi 14511 ;; 14512 esac 14513 14514 if test "$ld_shlibs_F77" = no; then 14515 runpath_var= 14516 hardcode_libdir_flag_spec_F77= 14517 export_dynamic_flag_spec_F77= 14518 whole_archive_flag_spec_F77= 14519 fi 14520 else 14521 # PORTME fill in a description of your system's linker (not GNU ld) 14522 case $host_os in 14523 aix3*) 14524 allow_undefined_flag_F77=unsupported 14525 always_export_symbols_F77=yes 14526 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' 14527 # Note: this linker hardcodes the directories in LIBPATH if there 14528 # are no directories specified by -L. 14529 hardcode_minus_L_F77=yes 14530 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14531 # Neither direct hardcoding nor static linking is supported with a 14532 # broken collect2. 14533 hardcode_direct_F77=unsupported 14534 fi 14535 ;; 14536 14537 aix4* | aix5*) 14538 if test "$host_cpu" = ia64; then 14539 # On IA64, the linker does run time linking by default, so we don't 14540 # have to do anything special. 14541 aix_use_runtimelinking=no 14542 exp_sym_flag='-Bexport' 14543 no_entry_flag="" 14544 else 14545 # If we're using GNU nm, then we don't want the "-C" option. 14546 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14547 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14548 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' 14549 else 14550 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' 14551 fi 14552 aix_use_runtimelinking=no 14553 14554 # Test if we are trying to use run time linking or normal 14555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14556 # need to do runtime linking. 14557 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14558 for ld_flag in $LDFLAGS; do 14559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14560 aix_use_runtimelinking=yes 14561 break 14562 fi 14563 done 14564 ;; 14565 esac 14566 14567 exp_sym_flag='-bexport' 14568 no_entry_flag='-bnoentry' 14569 fi 14570 14571 # When large executables or shared objects are built, AIX ld can 14572 # have problems creating the table of contents. If linking a library 14573 # or program results in "error TOC overflow" add -mminimal-toc to 14574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14576 14577 archive_cmds_F77='' 14578 hardcode_direct_F77=yes 14579 hardcode_libdir_separator_F77=':' 14580 link_all_deplibs_F77=yes 14581 14582 if test "$GCC" = yes; then 14583 case $host_os in aix4.[012]|aix4.[012].*) 14584 # We only want to do this on AIX 4.2 and lower, the check 14585 # below for broken collect2 doesn't work under 4.3+ 14586 collect2name=`${CC} -print-prog-name=collect2` 14587 if test -f "$collect2name" && \ 14588 strings "$collect2name" | grep resolve_lib_name >/dev/null 14589 then 14590 # We have reworked collect2 14591 : 14592 else 14593 # We have old collect2 14594 hardcode_direct_F77=unsupported 14595 # It fails to find uninstalled libraries when the uninstalled 14596 # path is not listed in the libpath. Setting hardcode_minus_L 14597 # to unsupported forces relinking 14598 hardcode_minus_L_F77=yes 14599 hardcode_libdir_flag_spec_F77='-L$libdir' 14600 hardcode_libdir_separator_F77= 14601 fi 14602 ;; 14603 esac 14604 shared_flag='-shared' 14605 if test "$aix_use_runtimelinking" = yes; then 14606 shared_flag="$shared_flag "'${wl}-G' 14607 fi 14608 else 14609 # not using gcc 14610 if test "$host_cpu" = ia64; then 14611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14612 # chokes on -Wl,-G. The following line is correct: 14613 shared_flag='-G' 14614 else 14615 if test "$aix_use_runtimelinking" = yes; then 14616 shared_flag='${wl}-G' 14617 else 14618 shared_flag='${wl}-bM:SRE' 14619 fi 14620 fi 14621 fi 14622 14623 # It seems that -bexpall does not export symbols beginning with 14624 # underscore (_), so it is better to generate a list of symbols to export. 14625 always_export_symbols_F77=yes 14626 if test "$aix_use_runtimelinking" = yes; then 14627 # Warning - without using the other runtime loading flags (-brtl), 14628 # -berok will link without error, but may produce a broken library. 14629 allow_undefined_flag_F77='-berok' 14630 # Determine the default libpath from the value encoded in an empty executable. 14631 cat >conftest.$ac_ext <<_ACEOF 14632 program main 14633 14634 end 14635_ACEOF 14636rm -f conftest.$ac_objext conftest$ac_exeext 14637if { (ac_try="$ac_link" 14638case "(($ac_try" in 14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14640 *) ac_try_echo=$ac_try;; 14641esac 14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14643 (eval "$ac_link") 2>conftest.er1 14644 ac_status=$? 14645 grep -v '^ *+' conftest.er1 >conftest.err 14646 rm -f conftest.er1 14647 cat conftest.err >&5 14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14649 (exit $ac_status); } && { 14650 test -z "$ac_f77_werror_flag" || 14651 test ! -s conftest.err 14652 } && test -s conftest$ac_exeext && 14653 $as_test_x conftest$ac_exeext; then 14654 14655lt_aix_libpath_sed=' 14656 /Import File Strings/,/^$/ { 14657 /^0/ { 14658 s/^0 *\(.*\)$/\1/ 14659 p 14660 } 14661 }' 14662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14663# Check for a 64-bit object if we didn't find anything. 14664if test -z "$aix_libpath"; then 14665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14666fi 14667else 14668 echo "$as_me: failed program was:" >&5 14669sed 's/^/| /' conftest.$ac_ext >&5 14670 14671 14672fi 14673 14674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14675 conftest$ac_exeext conftest.$ac_ext 14676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14677 14678 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14679 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" 14680 else 14681 if test "$host_cpu" = ia64; then 14682 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14683 allow_undefined_flag_F77="-z nodefs" 14684 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" 14685 else 14686 # Determine the default libpath from the value encoded in an empty executable. 14687 cat >conftest.$ac_ext <<_ACEOF 14688 program main 14689 14690 end 14691_ACEOF 14692rm -f conftest.$ac_objext conftest$ac_exeext 14693if { (ac_try="$ac_link" 14694case "(($ac_try" in 14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14696 *) ac_try_echo=$ac_try;; 14697esac 14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14699 (eval "$ac_link") 2>conftest.er1 14700 ac_status=$? 14701 grep -v '^ *+' conftest.er1 >conftest.err 14702 rm -f conftest.er1 14703 cat conftest.err >&5 14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14705 (exit $ac_status); } && { 14706 test -z "$ac_f77_werror_flag" || 14707 test ! -s conftest.err 14708 } && test -s conftest$ac_exeext && 14709 $as_test_x conftest$ac_exeext; then 14710 14711lt_aix_libpath_sed=' 14712 /Import File Strings/,/^$/ { 14713 /^0/ { 14714 s/^0 *\(.*\)$/\1/ 14715 p 14716 } 14717 }' 14718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14719# Check for a 64-bit object if we didn't find anything. 14720if test -z "$aix_libpath"; then 14721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14722fi 14723else 14724 echo "$as_me: failed program was:" >&5 14725sed 's/^/| /' conftest.$ac_ext >&5 14726 14727 14728fi 14729 14730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14731 conftest$ac_exeext conftest.$ac_ext 14732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14733 14734 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14735 # Warning - without using the other run time loading flags, 14736 # -berok will link without error, but may produce a broken library. 14737 no_undefined_flag_F77=' ${wl}-bernotok' 14738 allow_undefined_flag_F77=' ${wl}-berok' 14739 # Exported symbols can be pulled into shared objects from archives 14740 whole_archive_flag_spec_F77='$convenience' 14741 archive_cmds_need_lc_F77=yes 14742 # This is similar to how AIX traditionally builds its shared libraries. 14743 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' 14744 fi 14745 fi 14746 ;; 14747 14748 amigaos*) 14749 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)' 14750 hardcode_libdir_flag_spec_F77='-L$libdir' 14751 hardcode_minus_L_F77=yes 14752 # see comment about different semantics on the GNU ld section 14753 ld_shlibs_F77=no 14754 ;; 14755 14756 bsdi[45]*) 14757 export_dynamic_flag_spec_F77=-rdynamic 14758 ;; 14759 14760 cygwin* | mingw* | pw32*) 14761 # When not using gcc, we currently assume that we are using 14762 # Microsoft Visual C++. 14763 # hardcode_libdir_flag_spec is actually meaningless, as there is 14764 # no search path for DLLs. 14765 hardcode_libdir_flag_spec_F77=' ' 14766 allow_undefined_flag_F77=unsupported 14767 # Tell ltmain to make .lib files, not .a files. 14768 libext=lib 14769 # Tell ltmain to make .dll files, not .so files. 14770 shrext_cmds=".dll" 14771 # FIXME: Setting linknames here is a bad hack. 14772 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14773 # The linker will automatically build a .lib file if we build a DLL. 14774 old_archive_From_new_cmds_F77='true' 14775 # FIXME: Should let the user specify the lib program. 14776 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14777 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14778 enable_shared_with_static_runtimes_F77=yes 14779 ;; 14780 14781 darwin* | rhapsody*) 14782 case $host_os in 14783 rhapsody* | darwin1.[012]) 14784 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14785 ;; 14786 *) # Darwin 1.3 on 14787 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14788 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14789 else 14790 case ${MACOSX_DEPLOYMENT_TARGET} in 14791 10.[012]) 14792 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14793 ;; 14794 10.*) 14795 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14796 ;; 14797 esac 14798 fi 14799 ;; 14800 esac 14801 archive_cmds_need_lc_F77=no 14802 hardcode_direct_F77=no 14803 hardcode_automatic_F77=yes 14804 hardcode_shlibpath_var_F77=unsupported 14805 whole_archive_flag_spec_F77='' 14806 link_all_deplibs_F77=yes 14807 if test "$GCC" = yes ; then 14808 output_verbose_link_cmd='echo' 14809 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14810 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14812 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}' 14813 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}' 14814 else 14815 case $cc_basename in 14816 xlc*) 14817 output_verbose_link_cmd='echo' 14818 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14819 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14821 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14822 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}' 14823 ;; 14824 *) 14825 ld_shlibs_F77=no 14826 ;; 14827 esac 14828 fi 14829 ;; 14830 14831 dgux*) 14832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14833 hardcode_libdir_flag_spec_F77='-L$libdir' 14834 hardcode_shlibpath_var_F77=no 14835 ;; 14836 14837 freebsd1*) 14838 ld_shlibs_F77=no 14839 ;; 14840 14841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14842 # support. Future versions do this automatically, but an explicit c++rt0.o 14843 # does not break anything, and helps significantly (at the cost of a little 14844 # extra space). 14845 freebsd2.2*) 14846 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14847 hardcode_libdir_flag_spec_F77='-R$libdir' 14848 hardcode_direct_F77=yes 14849 hardcode_shlibpath_var_F77=no 14850 ;; 14851 14852 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14853 freebsd2*) 14854 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14855 hardcode_direct_F77=yes 14856 hardcode_minus_L_F77=yes 14857 hardcode_shlibpath_var_F77=no 14858 ;; 14859 14860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14861 freebsd* | dragonfly*) 14862 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14863 hardcode_libdir_flag_spec_F77='-R$libdir' 14864 hardcode_direct_F77=yes 14865 hardcode_shlibpath_var_F77=no 14866 ;; 14867 14868 hpux9*) 14869 if test "$GCC" = yes; then 14870 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' 14871 else 14872 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' 14873 fi 14874 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14875 hardcode_libdir_separator_F77=: 14876 hardcode_direct_F77=yes 14877 14878 # hardcode_minus_L: Not really in the search PATH, 14879 # but as the default location of the library. 14880 hardcode_minus_L_F77=yes 14881 export_dynamic_flag_spec_F77='${wl}-E' 14882 ;; 14883 14884 hpux10*) 14885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14886 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14887 else 14888 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14889 fi 14890 if test "$with_gnu_ld" = no; then 14891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14892 hardcode_libdir_separator_F77=: 14893 14894 hardcode_direct_F77=yes 14895 export_dynamic_flag_spec_F77='${wl}-E' 14896 14897 # hardcode_minus_L: Not really in the search PATH, 14898 # but as the default location of the library. 14899 hardcode_minus_L_F77=yes 14900 fi 14901 ;; 14902 14903 hpux11*) 14904 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14905 case $host_cpu in 14906 hppa*64*) 14907 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14908 ;; 14909 ia64*) 14910 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14911 ;; 14912 *) 14913 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14914 ;; 14915 esac 14916 else 14917 case $host_cpu in 14918 hppa*64*) 14919 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14920 ;; 14921 ia64*) 14922 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14923 ;; 14924 *) 14925 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14926 ;; 14927 esac 14928 fi 14929 if test "$with_gnu_ld" = no; then 14930 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14931 hardcode_libdir_separator_F77=: 14932 14933 case $host_cpu in 14934 hppa*64*|ia64*) 14935 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14936 hardcode_direct_F77=no 14937 hardcode_shlibpath_var_F77=no 14938 ;; 14939 *) 14940 hardcode_direct_F77=yes 14941 export_dynamic_flag_spec_F77='${wl}-E' 14942 14943 # hardcode_minus_L: Not really in the search PATH, 14944 # but as the default location of the library. 14945 hardcode_minus_L_F77=yes 14946 ;; 14947 esac 14948 fi 14949 ;; 14950 14951 irix5* | irix6* | nonstopux*) 14952 if test "$GCC" = yes; then 14953 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' 14954 else 14955 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' 14956 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14957 fi 14958 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14959 hardcode_libdir_separator_F77=: 14960 link_all_deplibs_F77=yes 14961 ;; 14962 14963 netbsd*) 14964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14965 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14966 else 14967 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14968 fi 14969 hardcode_libdir_flag_spec_F77='-R$libdir' 14970 hardcode_direct_F77=yes 14971 hardcode_shlibpath_var_F77=no 14972 ;; 14973 14974 newsos6) 14975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14976 hardcode_direct_F77=yes 14977 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14978 hardcode_libdir_separator_F77=: 14979 hardcode_shlibpath_var_F77=no 14980 ;; 14981 14982 openbsd*) 14983 if test -f /usr/libexec/ld.so; then 14984 hardcode_direct_F77=yes 14985 hardcode_shlibpath_var_F77=no 14986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14987 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14988 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14989 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14990 export_dynamic_flag_spec_F77='${wl}-E' 14991 else 14992 case $host_os in 14993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14995 hardcode_libdir_flag_spec_F77='-R$libdir' 14996 ;; 14997 *) 14998 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15000 ;; 15001 esac 15002 fi 15003 else 15004 ld_shlibs_F77=no 15005 fi 15006 ;; 15007 15008 os2*) 15009 hardcode_libdir_flag_spec_F77='-L$libdir' 15010 hardcode_minus_L_F77=yes 15011 allow_undefined_flag_F77=unsupported 15012 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' 15013 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15014 ;; 15015 15016 osf3*) 15017 if test "$GCC" = yes; then 15018 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15019 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' 15020 else 15021 allow_undefined_flag_F77=' -expect_unresolved \*' 15022 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' 15023 fi 15024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15025 hardcode_libdir_separator_F77=: 15026 ;; 15027 15028 osf4* | osf5*) # as osf3* with the addition of -msym flag 15029 if test "$GCC" = yes; then 15030 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15031 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' 15032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15033 else 15034 allow_undefined_flag_F77=' -expect_unresolved \*' 15035 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' 15036 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~ 15037 $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' 15038 15039 # Both c and cxx compiler support -rpath directly 15040 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15041 fi 15042 hardcode_libdir_separator_F77=: 15043 ;; 15044 15045 solaris*) 15046 no_undefined_flag_F77=' -z text' 15047 if test "$GCC" = yes; then 15048 wlarc='${wl}' 15049 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15050 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15052 else 15053 wlarc='' 15054 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15057 fi 15058 hardcode_libdir_flag_spec_F77='-R$libdir' 15059 hardcode_shlibpath_var_F77=no 15060 case $host_os in 15061 solaris2.[0-5] | solaris2.[0-5].*) ;; 15062 *) 15063 # The compiler driver will combine and reorder linker options, 15064 # but understands `-z linker_flag'. GCC discards it without `$wl', 15065 # but is careful enough not to reorder. 15066 # Supported since Solaris 2.6 (maybe 2.5.1?) 15067 if test "$GCC" = yes; then 15068 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15069 else 15070 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15071 fi 15072 ;; 15073 esac 15074 link_all_deplibs_F77=yes 15075 ;; 15076 15077 sunos4*) 15078 if test "x$host_vendor" = xsequent; then 15079 # Use $CC to link under sequent, because it throws in some extra .o 15080 # files that make .init and .fini sections work. 15081 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15082 else 15083 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15084 fi 15085 hardcode_libdir_flag_spec_F77='-L$libdir' 15086 hardcode_direct_F77=yes 15087 hardcode_minus_L_F77=yes 15088 hardcode_shlibpath_var_F77=no 15089 ;; 15090 15091 sysv4) 15092 case $host_vendor in 15093 sni) 15094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15095 hardcode_direct_F77=yes # is this really true??? 15096 ;; 15097 siemens) 15098 ## LD is ld it makes a PLAMLIB 15099 ## CC just makes a GrossModule. 15100 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15101 reload_cmds_F77='$CC -r -o $output$reload_objs' 15102 hardcode_direct_F77=no 15103 ;; 15104 motorola) 15105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15106 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15107 ;; 15108 esac 15109 runpath_var='LD_RUN_PATH' 15110 hardcode_shlibpath_var_F77=no 15111 ;; 15112 15113 sysv4.3*) 15114 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15115 hardcode_shlibpath_var_F77=no 15116 export_dynamic_flag_spec_F77='-Bexport' 15117 ;; 15118 15119 sysv4*MP*) 15120 if test -d /usr/nec; then 15121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15122 hardcode_shlibpath_var_F77=no 15123 runpath_var=LD_RUN_PATH 15124 hardcode_runpath_var=yes 15125 ld_shlibs_F77=yes 15126 fi 15127 ;; 15128 15129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15130 no_undefined_flag_F77='${wl}-z,text' 15131 archive_cmds_need_lc_F77=no 15132 hardcode_shlibpath_var_F77=no 15133 runpath_var='LD_RUN_PATH' 15134 15135 if test "$GCC" = yes; then 15136 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15137 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15138 else 15139 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15140 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15141 fi 15142 ;; 15143 15144 sysv5* | sco3.2v5* | sco5v6*) 15145 # Note: We can NOT use -z defs as we might desire, because we do not 15146 # link with -lc, and that would cause any symbols used from libc to 15147 # always be unresolved, which means just about no library would 15148 # ever link correctly. If we're not using GNU ld we use -z text 15149 # though, which does catch some bad symbols but isn't as heavy-handed 15150 # as -z defs. 15151 no_undefined_flag_F77='${wl}-z,text' 15152 allow_undefined_flag_F77='${wl}-z,nodefs' 15153 archive_cmds_need_lc_F77=no 15154 hardcode_shlibpath_var_F77=no 15155 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15156 hardcode_libdir_separator_F77=':' 15157 link_all_deplibs_F77=yes 15158 export_dynamic_flag_spec_F77='${wl}-Bexport' 15159 runpath_var='LD_RUN_PATH' 15160 15161 if test "$GCC" = yes; then 15162 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15163 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15164 else 15165 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15166 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15167 fi 15168 ;; 15169 15170 uts4*) 15171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15172 hardcode_libdir_flag_spec_F77='-L$libdir' 15173 hardcode_shlibpath_var_F77=no 15174 ;; 15175 15176 *) 15177 ld_shlibs_F77=no 15178 ;; 15179 esac 15180 fi 15181 15182{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15183echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15184test "$ld_shlibs_F77" = no && can_build_shared=no 15185 15186# 15187# Do we need to explicitly link libc? 15188# 15189case "x$archive_cmds_need_lc_F77" in 15190x|xyes) 15191 # Assume -lc should be added 15192 archive_cmds_need_lc_F77=yes 15193 15194 if test "$enable_shared" = yes && test "$GCC" = yes; then 15195 case $archive_cmds_F77 in 15196 *'~'*) 15197 # FIXME: we may have to deal with multi-command sequences. 15198 ;; 15199 '$CC '*) 15200 # Test whether the compiler implicitly links with -lc since on some 15201 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15202 # to ld, don't add -lc before -lgcc. 15203 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15205 $rm conftest* 15206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15207 15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15209 (eval $ac_compile) 2>&5 15210 ac_status=$? 15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15212 (exit $ac_status); } 2>conftest.err; then 15213 soname=conftest 15214 lib=conftest 15215 libobjs=conftest.$ac_objext 15216 deplibs= 15217 wl=$lt_prog_compiler_wl_F77 15218 pic_flag=$lt_prog_compiler_pic_F77 15219 compiler_flags=-v 15220 linker_flags=-v 15221 verstring= 15222 output_objdir=. 15223 libname=conftest 15224 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15225 allow_undefined_flag_F77= 15226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15227 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15228 ac_status=$? 15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 (exit $ac_status); } 15231 then 15232 archive_cmds_need_lc_F77=no 15233 else 15234 archive_cmds_need_lc_F77=yes 15235 fi 15236 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15237 else 15238 cat conftest.err 1>&5 15239 fi 15240 $rm conftest* 15241 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15242echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15243 ;; 15244 esac 15245 fi 15246 ;; 15247esac 15248 15249{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15250echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15251library_names_spec= 15252libname_spec='lib$name' 15253soname_spec= 15254shrext_cmds=".so" 15255postinstall_cmds= 15256postuninstall_cmds= 15257finish_cmds= 15258finish_eval= 15259shlibpath_var= 15260shlibpath_overrides_runpath=unknown 15261version_type=none 15262dynamic_linker="$host_os ld.so" 15263sys_lib_dlsearch_path_spec="/lib /usr/lib" 15264 15265need_lib_prefix=unknown 15266hardcode_into_libs=no 15267 15268# when you set need_version to no, make sure it does not cause -set_version 15269# flags to be left without arguments 15270need_version=unknown 15271 15272case $host_os in 15273aix3*) 15274 version_type=linux 15275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15276 shlibpath_var=LIBPATH 15277 15278 # AIX 3 has no versioning support, so we append a major version to the name. 15279 soname_spec='${libname}${release}${shared_ext}$major' 15280 ;; 15281 15282aix4* | aix5*) 15283 version_type=linux 15284 need_lib_prefix=no 15285 need_version=no 15286 hardcode_into_libs=yes 15287 if test "$host_cpu" = ia64; then 15288 # AIX 5 supports IA64 15289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15290 shlibpath_var=LD_LIBRARY_PATH 15291 else 15292 # With GCC up to 2.95.x, collect2 would create an import file 15293 # for dependence libraries. The import file would start with 15294 # the line `#! .'. This would cause the generated library to 15295 # depend on `.', always an invalid library. This was fixed in 15296 # development snapshots of GCC prior to 3.0. 15297 case $host_os in 15298 aix4 | aix4.[01] | aix4.[01].*) 15299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15300 echo ' yes ' 15301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15302 : 15303 else 15304 can_build_shared=no 15305 fi 15306 ;; 15307 esac 15308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15309 # soname into executable. Probably we can add versioning support to 15310 # collect2, so additional links can be useful in future. 15311 if test "$aix_use_runtimelinking" = yes; then 15312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15313 # instead of lib<name>.a to let people know that these are not 15314 # typical AIX shared libraries. 15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15316 else 15317 # We preserve .a as extension for shared libraries through AIX4.2 15318 # and later when we are not doing run time linking. 15319 library_names_spec='${libname}${release}.a $libname.a' 15320 soname_spec='${libname}${release}${shared_ext}$major' 15321 fi 15322 shlibpath_var=LIBPATH 15323 fi 15324 ;; 15325 15326amigaos*) 15327 library_names_spec='$libname.ixlibrary $libname.a' 15328 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15329 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' 15330 ;; 15331 15332beos*) 15333 library_names_spec='${libname}${shared_ext}' 15334 dynamic_linker="$host_os ld.so" 15335 shlibpath_var=LIBRARY_PATH 15336 ;; 15337 15338bsdi[45]*) 15339 version_type=linux 15340 need_version=no 15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15342 soname_spec='${libname}${release}${shared_ext}$major' 15343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15344 shlibpath_var=LD_LIBRARY_PATH 15345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15347 # the default ld.so.conf also contains /usr/contrib/lib and 15348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15349 # libtool to hard-code these into programs 15350 ;; 15351 15352cygwin* | mingw* | pw32*) 15353 version_type=windows 15354 shrext_cmds=".dll" 15355 need_version=no 15356 need_lib_prefix=no 15357 15358 case $GCC,$host_os in 15359 yes,cygwin* | yes,mingw* | yes,pw32*) 15360 library_names_spec='$libname.dll.a' 15361 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15362 postinstall_cmds='base_file=`basename \${file}`~ 15363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15364 dldir=$destdir/`dirname \$dlpath`~ 15365 test -d \$dldir || mkdir -p \$dldir~ 15366 $install_prog $dir/$dlname \$dldir/$dlname~ 15367 chmod a+x \$dldir/$dlname' 15368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15369 dlpath=$dir/\$dldll~ 15370 $rm \$dlpath' 15371 shlibpath_overrides_runpath=yes 15372 15373 case $host_os in 15374 cygwin*) 15375 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15376 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15377 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15378 ;; 15379 mingw*) 15380 # MinGW DLLs use traditional 'lib' prefix 15381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15382 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15383 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15384 # It is most probably a Windows format PATH printed by 15385 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15386 # path with ; separators, and with drive letters. We can handle the 15387 # drive letters (cygwin fileutils understands them), so leave them, 15388 # especially as we might pass files found there to a mingw objdump, 15389 # which wouldn't understand a cygwinified path. Ahh. 15390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15391 else 15392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15393 fi 15394 ;; 15395 pw32*) 15396 # pw32 DLLs use 'pw' prefix rather than 'lib' 15397 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15398 ;; 15399 esac 15400 ;; 15401 15402 *) 15403 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15404 ;; 15405 esac 15406 dynamic_linker='Win32 ld.exe' 15407 # FIXME: first we should search . and the directory the executable is in 15408 shlibpath_var=PATH 15409 ;; 15410 15411darwin* | rhapsody*) 15412 dynamic_linker="$host_os dyld" 15413 version_type=darwin 15414 need_lib_prefix=no 15415 need_version=no 15416 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15417 soname_spec='${libname}${release}${major}$shared_ext' 15418 shlibpath_overrides_runpath=yes 15419 shlibpath_var=DYLD_LIBRARY_PATH 15420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15421 15422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15423 ;; 15424 15425dgux*) 15426 version_type=linux 15427 need_lib_prefix=no 15428 need_version=no 15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15430 soname_spec='${libname}${release}${shared_ext}$major' 15431 shlibpath_var=LD_LIBRARY_PATH 15432 ;; 15433 15434freebsd1*) 15435 dynamic_linker=no 15436 ;; 15437 15438freebsd* | dragonfly*) 15439 # DragonFly does not have aout. When/if they implement a new 15440 # versioning mechanism, adjust this. 15441 if test -x /usr/bin/objformat; then 15442 objformat=`/usr/bin/objformat` 15443 else 15444 case $host_os in 15445 freebsd[123]*) objformat=aout ;; 15446 *) objformat=elf ;; 15447 esac 15448 fi 15449 version_type=freebsd-$objformat 15450 case $version_type in 15451 freebsd-elf*) 15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15453 need_version=no 15454 need_lib_prefix=no 15455 ;; 15456 freebsd-*) 15457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15458 need_version=yes 15459 ;; 15460 esac 15461 shlibpath_var=LD_LIBRARY_PATH 15462 case $host_os in 15463 freebsd2*) 15464 shlibpath_overrides_runpath=yes 15465 ;; 15466 freebsd3.[01]* | freebsdelf3.[01]*) 15467 shlibpath_overrides_runpath=yes 15468 hardcode_into_libs=yes 15469 ;; 15470 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15471 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15472 shlibpath_overrides_runpath=no 15473 hardcode_into_libs=yes 15474 ;; 15475 *) # from 4.6 on, and DragonFly 15476 shlibpath_overrides_runpath=yes 15477 hardcode_into_libs=yes 15478 ;; 15479 esac 15480 ;; 15481 15482gnu*) 15483 version_type=linux 15484 need_lib_prefix=no 15485 need_version=no 15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15487 soname_spec='${libname}${release}${shared_ext}$major' 15488 shlibpath_var=LD_LIBRARY_PATH 15489 hardcode_into_libs=yes 15490 ;; 15491 15492hpux9* | hpux10* | hpux11*) 15493 # Give a soname corresponding to the major version so that dld.sl refuses to 15494 # link against other versions. 15495 version_type=sunos 15496 need_lib_prefix=no 15497 need_version=no 15498 case $host_cpu in 15499 ia64*) 15500 shrext_cmds='.so' 15501 hardcode_into_libs=yes 15502 dynamic_linker="$host_os dld.so" 15503 shlibpath_var=LD_LIBRARY_PATH 15504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15506 soname_spec='${libname}${release}${shared_ext}$major' 15507 if test "X$HPUX_IA64_MODE" = X32; then 15508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15509 else 15510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15511 fi 15512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15513 ;; 15514 hppa*64*) 15515 shrext_cmds='.sl' 15516 hardcode_into_libs=yes 15517 dynamic_linker="$host_os dld.sl" 15518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15524 ;; 15525 *) 15526 shrext_cmds='.sl' 15527 dynamic_linker="$host_os dld.sl" 15528 shlibpath_var=SHLIB_PATH 15529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15531 soname_spec='${libname}${release}${shared_ext}$major' 15532 ;; 15533 esac 15534 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15535 postinstall_cmds='chmod 555 $lib' 15536 ;; 15537 15538interix[3-9]*) 15539 version_type=linux 15540 need_lib_prefix=no 15541 need_version=no 15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15543 soname_spec='${libname}${release}${shared_ext}$major' 15544 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15545 shlibpath_var=LD_LIBRARY_PATH 15546 shlibpath_overrides_runpath=no 15547 hardcode_into_libs=yes 15548 ;; 15549 15550irix5* | irix6* | nonstopux*) 15551 case $host_os in 15552 nonstopux*) version_type=nonstopux ;; 15553 *) 15554 if test "$lt_cv_prog_gnu_ld" = yes; then 15555 version_type=linux 15556 else 15557 version_type=irix 15558 fi ;; 15559 esac 15560 need_lib_prefix=no 15561 need_version=no 15562 soname_spec='${libname}${release}${shared_ext}$major' 15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15564 case $host_os in 15565 irix5* | nonstopux*) 15566 libsuff= shlibsuff= 15567 ;; 15568 *) 15569 case $LD in # libtool.m4 will add one of these switches to LD 15570 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15571 libsuff= shlibsuff= libmagic=32-bit;; 15572 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15573 libsuff=32 shlibsuff=N32 libmagic=N32;; 15574 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15575 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15576 *) libsuff= shlibsuff= libmagic=never-match;; 15577 esac 15578 ;; 15579 esac 15580 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15581 shlibpath_overrides_runpath=no 15582 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15583 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15584 hardcode_into_libs=yes 15585 ;; 15586 15587# No shared lib support for Linux oldld, aout, or coff. 15588linux*oldld* | linux*aout* | linux*coff*) 15589 dynamic_linker=no 15590 ;; 15591 15592# This must be Linux ELF. 15593linux* | k*bsd*-gnu) 15594 version_type=linux 15595 need_lib_prefix=no 15596 need_version=no 15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15598 soname_spec='${libname}${release}${shared_ext}$major' 15599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15600 shlibpath_var=LD_LIBRARY_PATH 15601 shlibpath_overrides_runpath=no 15602 # This implies no fast_install, which is unacceptable. 15603 # Some rework will be needed to allow for fast_install 15604 # before this can be enabled. 15605 hardcode_into_libs=yes 15606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15608 15609 # Append ld.so.conf contents to the search path 15610 if test -f /etc/ld.so.conf; then 15611 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15612 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15613 fi 15614 15615 # We used to test for /lib/ld.so.1 and disable shared libraries on 15616 # powerpc, because MkLinux only supported shared libraries with the 15617 # GNU dynamic linker. Since this was broken with cross compilers, 15618 # most powerpc-linux boxes support dynamic linking these days and 15619 # people can always --disable-shared, the test was removed, and we 15620 # assume the GNU/Linux dynamic linker is in use. 15621 dynamic_linker='GNU/Linux ld.so' 15622 ;; 15623 15624netbsd*) 15625 version_type=sunos 15626 need_lib_prefix=no 15627 need_version=no 15628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15631 dynamic_linker='NetBSD (a.out) ld.so' 15632 else 15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15634 soname_spec='${libname}${release}${shared_ext}$major' 15635 dynamic_linker='NetBSD ld.elf_so' 15636 fi 15637 shlibpath_var=LD_LIBRARY_PATH 15638 shlibpath_overrides_runpath=yes 15639 hardcode_into_libs=yes 15640 ;; 15641 15642newsos6) 15643 version_type=linux 15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15645 shlibpath_var=LD_LIBRARY_PATH 15646 shlibpath_overrides_runpath=yes 15647 ;; 15648 15649nto-qnx*) 15650 version_type=linux 15651 need_lib_prefix=no 15652 need_version=no 15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15654 soname_spec='${libname}${release}${shared_ext}$major' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 shlibpath_overrides_runpath=yes 15657 ;; 15658 15659openbsd*) 15660 version_type=sunos 15661 sys_lib_dlsearch_path_spec="/usr/lib" 15662 need_lib_prefix=no 15663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15664 case $host_os in 15665 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15666 *) need_version=no ;; 15667 esac 15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15670 shlibpath_var=LD_LIBRARY_PATH 15671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15672 case $host_os in 15673 openbsd2.[89] | openbsd2.[89].*) 15674 shlibpath_overrides_runpath=no 15675 ;; 15676 *) 15677 shlibpath_overrides_runpath=yes 15678 ;; 15679 esac 15680 else 15681 shlibpath_overrides_runpath=yes 15682 fi 15683 ;; 15684 15685os2*) 15686 libname_spec='$name' 15687 shrext_cmds=".dll" 15688 need_lib_prefix=no 15689 library_names_spec='$libname${shared_ext} $libname.a' 15690 dynamic_linker='OS/2 ld.exe' 15691 shlibpath_var=LIBPATH 15692 ;; 15693 15694osf3* | osf4* | osf5*) 15695 version_type=osf 15696 need_lib_prefix=no 15697 need_version=no 15698 soname_spec='${libname}${release}${shared_ext}$major' 15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15700 shlibpath_var=LD_LIBRARY_PATH 15701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15703 ;; 15704 15705rdos*) 15706 dynamic_linker=no 15707 ;; 15708 15709solaris*) 15710 version_type=linux 15711 need_lib_prefix=no 15712 need_version=no 15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15714 soname_spec='${libname}${release}${shared_ext}$major' 15715 shlibpath_var=LD_LIBRARY_PATH 15716 shlibpath_overrides_runpath=yes 15717 hardcode_into_libs=yes 15718 # ldd complains unless libraries are executable 15719 postinstall_cmds='chmod +x $lib' 15720 ;; 15721 15722sunos4*) 15723 version_type=sunos 15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15726 shlibpath_var=LD_LIBRARY_PATH 15727 shlibpath_overrides_runpath=yes 15728 if test "$with_gnu_ld" = yes; then 15729 need_lib_prefix=no 15730 fi 15731 need_version=yes 15732 ;; 15733 15734sysv4 | sysv4.3*) 15735 version_type=linux 15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15737 soname_spec='${libname}${release}${shared_ext}$major' 15738 shlibpath_var=LD_LIBRARY_PATH 15739 case $host_vendor in 15740 sni) 15741 shlibpath_overrides_runpath=no 15742 need_lib_prefix=no 15743 export_dynamic_flag_spec='${wl}-Blargedynsym' 15744 runpath_var=LD_RUN_PATH 15745 ;; 15746 siemens) 15747 need_lib_prefix=no 15748 ;; 15749 motorola) 15750 need_lib_prefix=no 15751 need_version=no 15752 shlibpath_overrides_runpath=no 15753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15754 ;; 15755 esac 15756 ;; 15757 15758sysv4*MP*) 15759 if test -d /usr/nec ;then 15760 version_type=linux 15761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15762 soname_spec='$libname${shared_ext}.$major' 15763 shlibpath_var=LD_LIBRARY_PATH 15764 fi 15765 ;; 15766 15767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15768 version_type=freebsd-elf 15769 need_lib_prefix=no 15770 need_version=no 15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15772 soname_spec='${libname}${release}${shared_ext}$major' 15773 shlibpath_var=LD_LIBRARY_PATH 15774 hardcode_into_libs=yes 15775 if test "$with_gnu_ld" = yes; then 15776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15777 shlibpath_overrides_runpath=no 15778 else 15779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15780 shlibpath_overrides_runpath=yes 15781 case $host_os in 15782 sco3.2v5*) 15783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15784 ;; 15785 esac 15786 fi 15787 sys_lib_dlsearch_path_spec='/usr/lib' 15788 ;; 15789 15790uts4*) 15791 version_type=linux 15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15793 soname_spec='${libname}${release}${shared_ext}$major' 15794 shlibpath_var=LD_LIBRARY_PATH 15795 ;; 15796 15797*) 15798 dynamic_linker=no 15799 ;; 15800esac 15801{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15802echo "${ECHO_T}$dynamic_linker" >&6; } 15803test "$dynamic_linker" = no && can_build_shared=no 15804 15805variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15806if test "$GCC" = yes; then 15807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15808fi 15809 15810{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15811echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15812hardcode_action_F77= 15813if test -n "$hardcode_libdir_flag_spec_F77" || \ 15814 test -n "$runpath_var_F77" || \ 15815 test "X$hardcode_automatic_F77" = "Xyes" ; then 15816 15817 # We can hardcode non-existant directories. 15818 if test "$hardcode_direct_F77" != no && 15819 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15820 # have to relink, otherwise we might link with an installed library 15821 # when we should be linking with a yet-to-be-installed one 15822 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15823 test "$hardcode_minus_L_F77" != no; then 15824 # Linking always hardcodes the temporary library directory. 15825 hardcode_action_F77=relink 15826 else 15827 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15828 hardcode_action_F77=immediate 15829 fi 15830else 15831 # We cannot hardcode anything, or else we can only hardcode existing 15832 # directories. 15833 hardcode_action_F77=unsupported 15834fi 15835{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15836echo "${ECHO_T}$hardcode_action_F77" >&6; } 15837 15838if test "$hardcode_action_F77" = relink; then 15839 # Fast installation is not supported 15840 enable_fast_install=no 15841elif test "$shlibpath_overrides_runpath" = yes || 15842 test "$enable_shared" = no; then 15843 # Fast installation is not necessary 15844 enable_fast_install=needless 15845fi 15846 15847 15848# The else clause should only fire when bootstrapping the 15849# libtool distribution, otherwise you forgot to ship ltmain.sh 15850# with your package, and you will get complaints that there are 15851# no rules to generate ltmain.sh. 15852if test -f "$ltmain"; then 15853 # See if we are running on zsh, and set the options which allow our commands through 15854 # without removal of \ escapes. 15855 if test -n "${ZSH_VERSION+set}" ; then 15856 setopt NO_GLOB_SUBST 15857 fi 15858 # Now quote all the things that may contain metacharacters while being 15859 # careful not to overquote the AC_SUBSTed values. We take copies of the 15860 # variables and quote the copies for generation of the libtool script. 15861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15862 SED SHELL STRIP \ 15863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15865 deplibs_check_method reload_flag reload_cmds need_locks \ 15866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15867 lt_cv_sys_global_symbol_to_c_name_address \ 15868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15869 old_postinstall_cmds old_postuninstall_cmds \ 15870 compiler_F77 \ 15871 CC_F77 \ 15872 LD_F77 \ 15873 lt_prog_compiler_wl_F77 \ 15874 lt_prog_compiler_pic_F77 \ 15875 lt_prog_compiler_static_F77 \ 15876 lt_prog_compiler_no_builtin_flag_F77 \ 15877 export_dynamic_flag_spec_F77 \ 15878 thread_safe_flag_spec_F77 \ 15879 whole_archive_flag_spec_F77 \ 15880 enable_shared_with_static_runtimes_F77 \ 15881 old_archive_cmds_F77 \ 15882 old_archive_from_new_cmds_F77 \ 15883 predep_objects_F77 \ 15884 postdep_objects_F77 \ 15885 predeps_F77 \ 15886 postdeps_F77 \ 15887 compiler_lib_search_path_F77 \ 15888 archive_cmds_F77 \ 15889 archive_expsym_cmds_F77 \ 15890 postinstall_cmds_F77 \ 15891 postuninstall_cmds_F77 \ 15892 old_archive_from_expsyms_cmds_F77 \ 15893 allow_undefined_flag_F77 \ 15894 no_undefined_flag_F77 \ 15895 export_symbols_cmds_F77 \ 15896 hardcode_libdir_flag_spec_F77 \ 15897 hardcode_libdir_flag_spec_ld_F77 \ 15898 hardcode_libdir_separator_F77 \ 15899 hardcode_automatic_F77 \ 15900 module_cmds_F77 \ 15901 module_expsym_cmds_F77 \ 15902 lt_cv_prog_compiler_c_o_F77 \ 15903 fix_srcfile_path_F77 \ 15904 exclude_expsyms_F77 \ 15905 include_expsyms_F77; do 15906 15907 case $var in 15908 old_archive_cmds_F77 | \ 15909 old_archive_from_new_cmds_F77 | \ 15910 archive_cmds_F77 | \ 15911 archive_expsym_cmds_F77 | \ 15912 module_cmds_F77 | \ 15913 module_expsym_cmds_F77 | \ 15914 old_archive_from_expsyms_cmds_F77 | \ 15915 export_symbols_cmds_F77 | \ 15916 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15917 postinstall_cmds | postuninstall_cmds | \ 15918 old_postinstall_cmds | old_postuninstall_cmds | \ 15919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15920 # Double-quote double-evaled strings. 15921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15922 ;; 15923 *) 15924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15925 ;; 15926 esac 15927 done 15928 15929 case $lt_echo in 15930 *'\$0 --fallback-echo"') 15931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15932 ;; 15933 esac 15934 15935cfgfile="$ofile" 15936 15937 cat <<__EOF__ >> "$cfgfile" 15938# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15939 15940# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15941 15942# Shell to use when invoking shell scripts. 15943SHELL=$lt_SHELL 15944 15945# Whether or not to build shared libraries. 15946build_libtool_libs=$enable_shared 15947 15948# Whether or not to build static libraries. 15949build_old_libs=$enable_static 15950 15951# Whether or not to add -lc for building shared libraries. 15952build_libtool_need_lc=$archive_cmds_need_lc_F77 15953 15954# Whether or not to disallow shared libs when runtime libs are static 15955allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15956 15957# Whether or not to optimize for fast installation. 15958fast_install=$enable_fast_install 15959 15960# The host system. 15961host_alias=$host_alias 15962host=$host 15963host_os=$host_os 15964 15965# The build system. 15966build_alias=$build_alias 15967build=$build 15968build_os=$build_os 15969 15970# An echo program that does not interpret backslashes. 15971echo=$lt_echo 15972 15973# The archiver. 15974AR=$lt_AR 15975AR_FLAGS=$lt_AR_FLAGS 15976 15977# A C compiler. 15978LTCC=$lt_LTCC 15979 15980# LTCC compiler flags. 15981LTCFLAGS=$lt_LTCFLAGS 15982 15983# A language-specific compiler. 15984CC=$lt_compiler_F77 15985 15986# Is the compiler the GNU C compiler? 15987with_gcc=$GCC_F77 15988 15989# An ERE matcher. 15990EGREP=$lt_EGREP 15991 15992# The linker used to build libraries. 15993LD=$lt_LD_F77 15994 15995# Whether we need hard or soft links. 15996LN_S=$lt_LN_S 15997 15998# A BSD-compatible nm program. 15999NM=$lt_NM 16000 16001# A symbol stripping program 16002STRIP=$lt_STRIP 16003 16004# Used to examine libraries when file_magic_cmd begins "file" 16005MAGIC_CMD=$MAGIC_CMD 16006 16007# Used on cygwin: DLL creation program. 16008DLLTOOL="$DLLTOOL" 16009 16010# Used on cygwin: object dumper. 16011OBJDUMP="$OBJDUMP" 16012 16013# Used on cygwin: assembler. 16014AS="$AS" 16015 16016# The name of the directory that contains temporary libtool files. 16017objdir=$objdir 16018 16019# How to create reloadable object files. 16020reload_flag=$lt_reload_flag 16021reload_cmds=$lt_reload_cmds 16022 16023# How to pass a linker flag through the compiler. 16024wl=$lt_lt_prog_compiler_wl_F77 16025 16026# Object file suffix (normally "o"). 16027objext="$ac_objext" 16028 16029# Old archive suffix (normally "a"). 16030libext="$libext" 16031 16032# Shared library suffix (normally ".so"). 16033shrext_cmds='$shrext_cmds' 16034 16035# Executable file suffix (normally ""). 16036exeext="$exeext" 16037 16038# Additional compiler flags for building library objects. 16039pic_flag=$lt_lt_prog_compiler_pic_F77 16040pic_mode=$pic_mode 16041 16042# What is the maximum length of a command? 16043max_cmd_len=$lt_cv_sys_max_cmd_len 16044 16045# Does compiler simultaneously support -c and -o options? 16046compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16047 16048# Must we lock files when doing compilation? 16049need_locks=$lt_need_locks 16050 16051# Do we need the lib prefix for modules? 16052need_lib_prefix=$need_lib_prefix 16053 16054# Do we need a version for libraries? 16055need_version=$need_version 16056 16057# Whether dlopen is supported. 16058dlopen_support=$enable_dlopen 16059 16060# Whether dlopen of programs is supported. 16061dlopen_self=$enable_dlopen_self 16062 16063# Whether dlopen of statically linked programs is supported. 16064dlopen_self_static=$enable_dlopen_self_static 16065 16066# Compiler flag to prevent dynamic linking. 16067link_static_flag=$lt_lt_prog_compiler_static_F77 16068 16069# Compiler flag to turn off builtin functions. 16070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16071 16072# Compiler flag to allow reflexive dlopens. 16073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16074 16075# Compiler flag to generate shared objects directly from archives. 16076whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16077 16078# Compiler flag to generate thread-safe objects. 16079thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16080 16081# Library versioning type. 16082version_type=$version_type 16083 16084# Format of library name prefix. 16085libname_spec=$lt_libname_spec 16086 16087# List of archive names. First name is the real one, the rest are links. 16088# The last name is the one that the linker finds with -lNAME. 16089library_names_spec=$lt_library_names_spec 16090 16091# The coded name of the library, if different from the real name. 16092soname_spec=$lt_soname_spec 16093 16094# Commands used to build and install an old-style archive. 16095RANLIB=$lt_RANLIB 16096old_archive_cmds=$lt_old_archive_cmds_F77 16097old_postinstall_cmds=$lt_old_postinstall_cmds 16098old_postuninstall_cmds=$lt_old_postuninstall_cmds 16099 16100# Create an old-style archive from a shared archive. 16101old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16102 16103# Create a temporary old-style archive to link instead of a shared archive. 16104old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16105 16106# Commands used to build and install a shared archive. 16107archive_cmds=$lt_archive_cmds_F77 16108archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16109postinstall_cmds=$lt_postinstall_cmds 16110postuninstall_cmds=$lt_postuninstall_cmds 16111 16112# Commands used to build a loadable module (assumed same as above if empty) 16113module_cmds=$lt_module_cmds_F77 16114module_expsym_cmds=$lt_module_expsym_cmds_F77 16115 16116# Commands to strip libraries. 16117old_striplib=$lt_old_striplib 16118striplib=$lt_striplib 16119 16120# Dependencies to place before the objects being linked to create a 16121# shared library. 16122predep_objects=$lt_predep_objects_F77 16123 16124# Dependencies to place after the objects being linked to create a 16125# shared library. 16126postdep_objects=$lt_postdep_objects_F77 16127 16128# Dependencies to place before the objects being linked to create a 16129# shared library. 16130predeps=$lt_predeps_F77 16131 16132# Dependencies to place after the objects being linked to create a 16133# shared library. 16134postdeps=$lt_postdeps_F77 16135 16136# The library search path used internally by the compiler when linking 16137# a shared library. 16138compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16139 16140# Method to check whether dependent libraries are shared objects. 16141deplibs_check_method=$lt_deplibs_check_method 16142 16143# Command to use when deplibs_check_method == file_magic. 16144file_magic_cmd=$lt_file_magic_cmd 16145 16146# Flag that allows shared libraries with undefined symbols to be built. 16147allow_undefined_flag=$lt_allow_undefined_flag_F77 16148 16149# Flag that forces no undefined symbols. 16150no_undefined_flag=$lt_no_undefined_flag_F77 16151 16152# Commands used to finish a libtool library installation in a directory. 16153finish_cmds=$lt_finish_cmds 16154 16155# Same as above, but a single script fragment to be evaled but not shown. 16156finish_eval=$lt_finish_eval 16157 16158# Take the output of nm and produce a listing of raw symbols and C names. 16159global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16160 16161# Transform the output of nm in a proper C declaration 16162global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16163 16164# Transform the output of nm in a C name address pair 16165global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16166 16167# This is the shared library runtime path variable. 16168runpath_var=$runpath_var 16169 16170# This is the shared library path variable. 16171shlibpath_var=$shlibpath_var 16172 16173# Is shlibpath searched before the hard-coded library search path? 16174shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16175 16176# How to hardcode a shared library path into an executable. 16177hardcode_action=$hardcode_action_F77 16178 16179# Whether we should hardcode library paths into libraries. 16180hardcode_into_libs=$hardcode_into_libs 16181 16182# Flag to hardcode \$libdir into a binary during linking. 16183# This must work even if \$libdir does not exist. 16184hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16185 16186# If ld is used when linking, flag to hardcode \$libdir into 16187# a binary during linking. This must work even if \$libdir does 16188# not exist. 16189hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16190 16191# Whether we need a single -rpath flag with a separated argument. 16192hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16193 16194# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16195# resulting binary. 16196hardcode_direct=$hardcode_direct_F77 16197 16198# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16199# resulting binary. 16200hardcode_minus_L=$hardcode_minus_L_F77 16201 16202# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16203# the resulting binary. 16204hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16205 16206# Set to yes if building a shared library automatically hardcodes DIR into the library 16207# and all subsequent libraries and executables linked against it. 16208hardcode_automatic=$hardcode_automatic_F77 16209 16210# Variables whose values should be saved in libtool wrapper scripts and 16211# restored at relink time. 16212variables_saved_for_relink="$variables_saved_for_relink" 16213 16214# Whether libtool must link a program against all its dependency libraries. 16215link_all_deplibs=$link_all_deplibs_F77 16216 16217# Compile-time system search path for libraries 16218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16219 16220# Run-time system search path for libraries 16221sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16222 16223# Fix the shell variable \$srcfile for the compiler. 16224fix_srcfile_path=$lt_fix_srcfile_path 16225 16226# Set to yes if exported symbols are required. 16227always_export_symbols=$always_export_symbols_F77 16228 16229# The commands to list exported symbols. 16230export_symbols_cmds=$lt_export_symbols_cmds_F77 16231 16232# The commands to extract the exported symbol list from a shared archive. 16233extract_expsyms_cmds=$lt_extract_expsyms_cmds 16234 16235# Symbols that should not be listed in the preloaded symbols. 16236exclude_expsyms=$lt_exclude_expsyms_F77 16237 16238# Symbols that must always be exported. 16239include_expsyms=$lt_include_expsyms_F77 16240 16241# ### END LIBTOOL TAG CONFIG: $tagname 16242 16243__EOF__ 16244 16245 16246else 16247 # If there is no Makefile yet, we rely on a make rule to execute 16248 # `config.status --recheck' to rerun these tests and create the 16249 # libtool script then. 16250 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16251 if test -f "$ltmain_in"; then 16252 test -f Makefile && make "$ltmain" 16253 fi 16254fi 16255 16256 16257ac_ext=c 16258ac_cpp='$CPP $CPPFLAGS' 16259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16261ac_compiler_gnu=$ac_cv_c_compiler_gnu 16262 16263CC="$lt_save_CC" 16264 16265 else 16266 tagname="" 16267 fi 16268 ;; 16269 16270 GCJ) 16271 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16272 16273 16274# Source file extension for Java test sources. 16275ac_ext=java 16276 16277# Object file extension for compiled Java test sources. 16278objext=o 16279objext_GCJ=$objext 16280 16281# Code to be used in simple compile tests 16282lt_simple_compile_test_code="class foo {}" 16283 16284# Code to be used in simple link tests 16285lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16286 16287# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16288 16289# If no C compiler was specified, use CC. 16290LTCC=${LTCC-"$CC"} 16291 16292# If no C compiler flags were specified, use CFLAGS. 16293LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16294 16295# Allow CC to be a program name with arguments. 16296compiler=$CC 16297 16298 16299# save warnings/boilerplate of simple test code 16300ac_outfile=conftest.$ac_objext 16301echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16302eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16303_lt_compiler_boilerplate=`cat conftest.err` 16304$rm conftest* 16305 16306ac_outfile=conftest.$ac_objext 16307echo "$lt_simple_link_test_code" >conftest.$ac_ext 16308eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16309_lt_linker_boilerplate=`cat conftest.err` 16310$rm conftest* 16311 16312 16313# Allow CC to be a program name with arguments. 16314lt_save_CC="$CC" 16315CC=${GCJ-"gcj"} 16316compiler=$CC 16317compiler_GCJ=$CC 16318for cc_temp in $compiler""; do 16319 case $cc_temp in 16320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16322 \-*) ;; 16323 *) break;; 16324 esac 16325done 16326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16327 16328 16329# GCJ did not exist at the time GCC didn't implicitly link libc in. 16330archive_cmds_need_lc_GCJ=no 16331 16332old_archive_cmds_GCJ=$old_archive_cmds 16333 16334 16335lt_prog_compiler_no_builtin_flag_GCJ= 16336 16337if test "$GCC" = yes; then 16338 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16339 16340 16341{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16342echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16343if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16344 echo $ECHO_N "(cached) $ECHO_C" >&6 16345else 16346 lt_cv_prog_compiler_rtti_exceptions=no 16347 ac_outfile=conftest.$ac_objext 16348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16349 lt_compiler_flag="-fno-rtti -fno-exceptions" 16350 # Insert the option either (1) after the last *FLAGS variable, or 16351 # (2) before a word containing "conftest.", or (3) at the end. 16352 # Note that $ac_compile itself does not contain backslashes and begins 16353 # with a dollar sign (not a hyphen), so the echo should work correctly. 16354 # The option is referenced via a variable to avoid confusing sed. 16355 lt_compile=`echo "$ac_compile" | $SED \ 16356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16358 -e 's:$: $lt_compiler_flag:'` 16359 (eval echo "\"\$as_me:16359: $lt_compile\"" >&5) 16360 (eval "$lt_compile" 2>conftest.err) 16361 ac_status=$? 16362 cat conftest.err >&5 16363 echo "$as_me:16363: \$? = $ac_status" >&5 16364 if (exit $ac_status) && test -s "$ac_outfile"; then 16365 # The compiler can only warn and ignore the option if not recognized 16366 # So say no if there are warnings other than the usual output. 16367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16370 lt_cv_prog_compiler_rtti_exceptions=yes 16371 fi 16372 fi 16373 $rm conftest* 16374 16375fi 16376{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16377echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16378 16379if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16380 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16381else 16382 : 16383fi 16384 16385fi 16386 16387lt_prog_compiler_wl_GCJ= 16388lt_prog_compiler_pic_GCJ= 16389lt_prog_compiler_static_GCJ= 16390 16391{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16392echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16393 16394 if test "$GCC" = yes; then 16395 lt_prog_compiler_wl_GCJ='-Wl,' 16396 lt_prog_compiler_static_GCJ='-static' 16397 16398 case $host_os in 16399 aix*) 16400 # All AIX code is PIC. 16401 if test "$host_cpu" = ia64; then 16402 # AIX 5 now supports IA64 processor 16403 lt_prog_compiler_static_GCJ='-Bstatic' 16404 fi 16405 ;; 16406 16407 amigaos*) 16408 # FIXME: we need at least 68020 code to build shared libraries, but 16409 # adding the `-m68020' flag to GCC prevents building anything better, 16410 # like `-m68040'. 16411 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16412 ;; 16413 16414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16415 # PIC is the default for these OSes. 16416 ;; 16417 16418 mingw* | cygwin* | pw32* | os2*) 16419 # This hack is so that the source file can tell whether it is being 16420 # built for inclusion in a dll (and should export symbols for example). 16421 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16422 # (--disable-auto-import) libraries 16423 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16424 ;; 16425 16426 darwin* | rhapsody*) 16427 # PIC is the default on this platform 16428 # Common symbols not allowed in MH_DYLIB files 16429 lt_prog_compiler_pic_GCJ='-fno-common' 16430 ;; 16431 16432 interix[3-9]*) 16433 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16434 # Instead, we relocate shared libraries at runtime. 16435 ;; 16436 16437 msdosdjgpp*) 16438 # Just because we use GCC doesn't mean we suddenly get shared libraries 16439 # on systems that don't support them. 16440 lt_prog_compiler_can_build_shared_GCJ=no 16441 enable_shared=no 16442 ;; 16443 16444 sysv4*MP*) 16445 if test -d /usr/nec; then 16446 lt_prog_compiler_pic_GCJ=-Kconform_pic 16447 fi 16448 ;; 16449 16450 hpux*) 16451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16452 # not for PA HP-UX. 16453 case $host_cpu in 16454 hppa*64*|ia64*) 16455 # +Z the default 16456 ;; 16457 *) 16458 lt_prog_compiler_pic_GCJ='-fPIC' 16459 ;; 16460 esac 16461 ;; 16462 16463 *) 16464 lt_prog_compiler_pic_GCJ='-fPIC' 16465 ;; 16466 esac 16467 else 16468 # PORTME Check for flag to pass linker flags through the system compiler. 16469 case $host_os in 16470 aix*) 16471 lt_prog_compiler_wl_GCJ='-Wl,' 16472 if test "$host_cpu" = ia64; then 16473 # AIX 5 now supports IA64 processor 16474 lt_prog_compiler_static_GCJ='-Bstatic' 16475 else 16476 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16477 fi 16478 ;; 16479 darwin*) 16480 # PIC is the default on this platform 16481 # Common symbols not allowed in MH_DYLIB files 16482 case $cc_basename in 16483 xlc*) 16484 lt_prog_compiler_pic_GCJ='-qnocommon' 16485 lt_prog_compiler_wl_GCJ='-Wl,' 16486 ;; 16487 esac 16488 ;; 16489 16490 mingw* | cygwin* | pw32* | os2*) 16491 # This hack is so that the source file can tell whether it is being 16492 # built for inclusion in a dll (and should export symbols for example). 16493 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16494 ;; 16495 16496 hpux9* | hpux10* | hpux11*) 16497 lt_prog_compiler_wl_GCJ='-Wl,' 16498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16499 # not for PA HP-UX. 16500 case $host_cpu in 16501 hppa*64*|ia64*) 16502 # +Z the default 16503 ;; 16504 *) 16505 lt_prog_compiler_pic_GCJ='+Z' 16506 ;; 16507 esac 16508 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16509 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16510 ;; 16511 16512 irix5* | irix6* | nonstopux*) 16513 lt_prog_compiler_wl_GCJ='-Wl,' 16514 # PIC (with -KPIC) is the default. 16515 lt_prog_compiler_static_GCJ='-non_shared' 16516 ;; 16517 16518 newsos6) 16519 lt_prog_compiler_pic_GCJ='-KPIC' 16520 lt_prog_compiler_static_GCJ='-Bstatic' 16521 ;; 16522 16523 linux* | k*bsd*-gnu) 16524 case $cc_basename in 16525 icc* | ecc*) 16526 lt_prog_compiler_wl_GCJ='-Wl,' 16527 lt_prog_compiler_pic_GCJ='-KPIC' 16528 lt_prog_compiler_static_GCJ='-static' 16529 ;; 16530 pgcc* | pgf77* | pgf90* | pgf95*) 16531 # Portland Group compilers (*not* the Pentium gcc compiler, 16532 # which looks to be a dead project) 16533 lt_prog_compiler_wl_GCJ='-Wl,' 16534 lt_prog_compiler_pic_GCJ='-fpic' 16535 lt_prog_compiler_static_GCJ='-Bstatic' 16536 ;; 16537 ccc*) 16538 lt_prog_compiler_wl_GCJ='-Wl,' 16539 # All Alpha code is PIC. 16540 lt_prog_compiler_static_GCJ='-non_shared' 16541 ;; 16542 *) 16543 case `$CC -V 2>&1 | sed 5q` in 16544 *Sun\ C*) 16545 # Sun C 5.9 16546 lt_prog_compiler_pic_GCJ='-KPIC' 16547 lt_prog_compiler_static_GCJ='-Bstatic' 16548 lt_prog_compiler_wl_GCJ='-Wl,' 16549 ;; 16550 *Sun\ F*) 16551 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16552 lt_prog_compiler_pic_GCJ='-KPIC' 16553 lt_prog_compiler_static_GCJ='-Bstatic' 16554 lt_prog_compiler_wl_GCJ='' 16555 ;; 16556 esac 16557 ;; 16558 esac 16559 ;; 16560 16561 osf3* | osf4* | osf5*) 16562 lt_prog_compiler_wl_GCJ='-Wl,' 16563 # All OSF/1 code is PIC. 16564 lt_prog_compiler_static_GCJ='-non_shared' 16565 ;; 16566 16567 rdos*) 16568 lt_prog_compiler_static_GCJ='-non_shared' 16569 ;; 16570 16571 solaris*) 16572 lt_prog_compiler_pic_GCJ='-KPIC' 16573 lt_prog_compiler_static_GCJ='-Bstatic' 16574 case $cc_basename in 16575 f77* | f90* | f95*) 16576 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16577 *) 16578 lt_prog_compiler_wl_GCJ='-Wl,';; 16579 esac 16580 ;; 16581 16582 sunos4*) 16583 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16584 lt_prog_compiler_pic_GCJ='-PIC' 16585 lt_prog_compiler_static_GCJ='-Bstatic' 16586 ;; 16587 16588 sysv4 | sysv4.2uw2* | sysv4.3*) 16589 lt_prog_compiler_wl_GCJ='-Wl,' 16590 lt_prog_compiler_pic_GCJ='-KPIC' 16591 lt_prog_compiler_static_GCJ='-Bstatic' 16592 ;; 16593 16594 sysv4*MP*) 16595 if test -d /usr/nec ;then 16596 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16597 lt_prog_compiler_static_GCJ='-Bstatic' 16598 fi 16599 ;; 16600 16601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16602 lt_prog_compiler_wl_GCJ='-Wl,' 16603 lt_prog_compiler_pic_GCJ='-KPIC' 16604 lt_prog_compiler_static_GCJ='-Bstatic' 16605 ;; 16606 16607 unicos*) 16608 lt_prog_compiler_wl_GCJ='-Wl,' 16609 lt_prog_compiler_can_build_shared_GCJ=no 16610 ;; 16611 16612 uts4*) 16613 lt_prog_compiler_pic_GCJ='-pic' 16614 lt_prog_compiler_static_GCJ='-Bstatic' 16615 ;; 16616 16617 *) 16618 lt_prog_compiler_can_build_shared_GCJ=no 16619 ;; 16620 esac 16621 fi 16622 16623{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16624echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16625 16626# 16627# Check to make sure the PIC flag actually works. 16628# 16629if test -n "$lt_prog_compiler_pic_GCJ"; then 16630 16631{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16632echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16633if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16634 echo $ECHO_N "(cached) $ECHO_C" >&6 16635else 16636 lt_prog_compiler_pic_works_GCJ=no 16637 ac_outfile=conftest.$ac_objext 16638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16639 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16640 # Insert the option either (1) after the last *FLAGS variable, or 16641 # (2) before a word containing "conftest.", or (3) at the end. 16642 # Note that $ac_compile itself does not contain backslashes and begins 16643 # with a dollar sign (not a hyphen), so the echo should work correctly. 16644 # The option is referenced via a variable to avoid confusing sed. 16645 lt_compile=`echo "$ac_compile" | $SED \ 16646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16648 -e 's:$: $lt_compiler_flag:'` 16649 (eval echo "\"\$as_me:16649: $lt_compile\"" >&5) 16650 (eval "$lt_compile" 2>conftest.err) 16651 ac_status=$? 16652 cat conftest.err >&5 16653 echo "$as_me:16653: \$? = $ac_status" >&5 16654 if (exit $ac_status) && test -s "$ac_outfile"; then 16655 # The compiler can only warn and ignore the option if not recognized 16656 # So say no if there are warnings other than the usual output. 16657 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16660 lt_prog_compiler_pic_works_GCJ=yes 16661 fi 16662 fi 16663 $rm conftest* 16664 16665fi 16666{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16667echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16668 16669if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16670 case $lt_prog_compiler_pic_GCJ in 16671 "" | " "*) ;; 16672 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16673 esac 16674else 16675 lt_prog_compiler_pic_GCJ= 16676 lt_prog_compiler_can_build_shared_GCJ=no 16677fi 16678 16679fi 16680case $host_os in 16681 # For platforms which do not support PIC, -DPIC is meaningless: 16682 *djgpp*) 16683 lt_prog_compiler_pic_GCJ= 16684 ;; 16685 *) 16686 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16687 ;; 16688esac 16689 16690# 16691# Check to make sure the static flag actually works. 16692# 16693wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16694{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16695echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16696if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16697 echo $ECHO_N "(cached) $ECHO_C" >&6 16698else 16699 lt_prog_compiler_static_works_GCJ=no 16700 save_LDFLAGS="$LDFLAGS" 16701 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16702 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16704 # The linker can only warn and ignore the option if not recognized 16705 # So say no if there are warnings 16706 if test -s conftest.err; then 16707 # Append any errors to the config.log. 16708 cat conftest.err 1>&5 16709 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16711 if diff conftest.exp conftest.er2 >/dev/null; then 16712 lt_prog_compiler_static_works_GCJ=yes 16713 fi 16714 else 16715 lt_prog_compiler_static_works_GCJ=yes 16716 fi 16717 fi 16718 $rm conftest* 16719 LDFLAGS="$save_LDFLAGS" 16720 16721fi 16722{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16723echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16724 16725if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16726 : 16727else 16728 lt_prog_compiler_static_GCJ= 16729fi 16730 16731 16732{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16733echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16734if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16735 echo $ECHO_N "(cached) $ECHO_C" >&6 16736else 16737 lt_cv_prog_compiler_c_o_GCJ=no 16738 $rm -r conftest 2>/dev/null 16739 mkdir conftest 16740 cd conftest 16741 mkdir out 16742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16743 16744 lt_compiler_flag="-o out/conftest2.$ac_objext" 16745 # Insert the option either (1) after the last *FLAGS variable, or 16746 # (2) before a word containing "conftest.", or (3) at the end. 16747 # Note that $ac_compile itself does not contain backslashes and begins 16748 # with a dollar sign (not a hyphen), so the echo should work correctly. 16749 lt_compile=`echo "$ac_compile" | $SED \ 16750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16752 -e 's:$: $lt_compiler_flag:'` 16753 (eval echo "\"\$as_me:16753: $lt_compile\"" >&5) 16754 (eval "$lt_compile" 2>out/conftest.err) 16755 ac_status=$? 16756 cat out/conftest.err >&5 16757 echo "$as_me:16757: \$? = $ac_status" >&5 16758 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16759 then 16760 # The compiler can only warn and ignore the option if not recognized 16761 # So say no if there are warnings 16762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16765 lt_cv_prog_compiler_c_o_GCJ=yes 16766 fi 16767 fi 16768 chmod u+w . 2>&5 16769 $rm conftest* 16770 # SGI C++ compiler will create directory out/ii_files/ for 16771 # template instantiation 16772 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16773 $rm out/* && rmdir out 16774 cd .. 16775 rmdir conftest 16776 $rm conftest* 16777 16778fi 16779{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16780echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16781 16782 16783hard_links="nottested" 16784if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16785 # do not overwrite the value of need_locks provided by the user 16786 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16787echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16788 hard_links=yes 16789 $rm conftest* 16790 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16791 touch conftest.a 16792 ln conftest.a conftest.b 2>&5 || hard_links=no 16793 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16794 { echo "$as_me:$LINENO: result: $hard_links" >&5 16795echo "${ECHO_T}$hard_links" >&6; } 16796 if test "$hard_links" = no; then 16797 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16798echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16799 need_locks=warn 16800 fi 16801else 16802 need_locks=no 16803fi 16804 16805{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16806echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16807 16808 runpath_var= 16809 allow_undefined_flag_GCJ= 16810 enable_shared_with_static_runtimes_GCJ=no 16811 archive_cmds_GCJ= 16812 archive_expsym_cmds_GCJ= 16813 old_archive_From_new_cmds_GCJ= 16814 old_archive_from_expsyms_cmds_GCJ= 16815 export_dynamic_flag_spec_GCJ= 16816 whole_archive_flag_spec_GCJ= 16817 thread_safe_flag_spec_GCJ= 16818 hardcode_libdir_flag_spec_GCJ= 16819 hardcode_libdir_flag_spec_ld_GCJ= 16820 hardcode_libdir_separator_GCJ= 16821 hardcode_direct_GCJ=no 16822 hardcode_minus_L_GCJ=no 16823 hardcode_shlibpath_var_GCJ=unsupported 16824 link_all_deplibs_GCJ=unknown 16825 hardcode_automatic_GCJ=no 16826 module_cmds_GCJ= 16827 module_expsym_cmds_GCJ= 16828 always_export_symbols_GCJ=no 16829 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16830 # include_expsyms should be a list of space-separated symbols to be *always* 16831 # included in the symbol list 16832 include_expsyms_GCJ= 16833 # exclude_expsyms can be an extended regexp of symbols to exclude 16834 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16836 # as well as any symbol that contains `d'. 16837 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16839 # platforms (ab)use it in PIC code, but their linkers get confused if 16840 # the symbol is explicitly referenced. Since portable code cannot 16841 # rely on this symbol name, it's probably fine to never include it in 16842 # preloaded symbol tables. 16843 extract_expsyms_cmds= 16844 # Just being paranoid about ensuring that cc_basename is set. 16845 for cc_temp in $compiler""; do 16846 case $cc_temp in 16847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16849 \-*) ;; 16850 *) break;; 16851 esac 16852done 16853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16854 16855 case $host_os in 16856 cygwin* | mingw* | pw32*) 16857 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16858 # When not using gcc, we currently assume that we are using 16859 # Microsoft Visual C++. 16860 if test "$GCC" != yes; then 16861 with_gnu_ld=no 16862 fi 16863 ;; 16864 interix*) 16865 # we just hope/assume this is gcc and not c89 (= MSVC++) 16866 with_gnu_ld=yes 16867 ;; 16868 openbsd*) 16869 with_gnu_ld=no 16870 ;; 16871 esac 16872 16873 ld_shlibs_GCJ=yes 16874 if test "$with_gnu_ld" = yes; then 16875 # If archive_cmds runs LD, not CC, wlarc should be empty 16876 wlarc='${wl}' 16877 16878 # Set some defaults for GNU ld with shared library support. These 16879 # are reset later if shared libraries are not supported. Putting them 16880 # here allows them to be overridden if necessary. 16881 runpath_var=LD_RUN_PATH 16882 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16883 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16884 # ancient GNU ld didn't support --whole-archive et. al. 16885 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16886 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16887 else 16888 whole_archive_flag_spec_GCJ= 16889 fi 16890 supports_anon_versioning=no 16891 case `$LD -v 2>/dev/null` in 16892 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16893 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16894 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16895 *\ 2.11.*) ;; # other 2.11 versions 16896 *) supports_anon_versioning=yes ;; 16897 esac 16898 16899 # See if GNU ld supports shared libraries. 16900 case $host_os in 16901 aix3* | aix4* | aix5*) 16902 # On AIX/PPC, the GNU linker is very broken 16903 if test "$host_cpu" != ia64; then 16904 ld_shlibs_GCJ=no 16905 cat <<EOF 1>&2 16906 16907*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16908*** to be unable to reliably create shared libraries on AIX. 16909*** Therefore, libtool is disabling shared libraries support. If you 16910*** really care for shared libraries, you may want to modify your PATH 16911*** so that a non-GNU linker is found, and then restart. 16912 16913EOF 16914 fi 16915 ;; 16916 16917 amigaos*) 16918 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)' 16919 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16920 hardcode_minus_L_GCJ=yes 16921 16922 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16923 # that the semantics of dynamic libraries on AmigaOS, at least up 16924 # to version 4, is to share data among multiple programs linked 16925 # with the same dynamic library. Since this doesn't match the 16926 # behavior of shared libraries on other platforms, we can't use 16927 # them. 16928 ld_shlibs_GCJ=no 16929 ;; 16930 16931 beos*) 16932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16933 allow_undefined_flag_GCJ=unsupported 16934 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16935 # support --undefined. This deserves some investigation. FIXME 16936 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16937 else 16938 ld_shlibs_GCJ=no 16939 fi 16940 ;; 16941 16942 cygwin* | mingw* | pw32*) 16943 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16944 # as there is no search path for DLLs. 16945 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16946 allow_undefined_flag_GCJ=unsupported 16947 always_export_symbols_GCJ=no 16948 enable_shared_with_static_runtimes_GCJ=yes 16949 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16950 16951 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16952 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16953 # If the export-symbols file already is a .def file (1st line 16954 # is EXPORTS), use it as is; otherwise, prepend... 16955 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16956 cp $export_symbols $output_objdir/$soname.def; 16957 else 16958 echo EXPORTS > $output_objdir/$soname.def; 16959 cat $export_symbols >> $output_objdir/$soname.def; 16960 fi~ 16961 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16962 else 16963 ld_shlibs_GCJ=no 16964 fi 16965 ;; 16966 16967 interix[3-9]*) 16968 hardcode_direct_GCJ=no 16969 hardcode_shlibpath_var_GCJ=no 16970 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16971 export_dynamic_flag_spec_GCJ='${wl}-E' 16972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16973 # Instead, shared libraries are loaded at an image base (0x10000000 by 16974 # default) and relocated if they conflict, which is a slow very memory 16975 # consuming and fragmenting process. To avoid this, we pick a random, 16976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16977 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16978 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' 16979 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' 16980 ;; 16981 16982 gnu* | linux* | k*bsd*-gnu) 16983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16984 tmp_addflag= 16985 case $cc_basename,$host_cpu in 16986 pgcc*) # Portland Group C compiler 16987 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' 16988 tmp_addflag=' $pic_flag' 16989 ;; 16990 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16991 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' 16992 tmp_addflag=' $pic_flag -Mnomain' ;; 16993 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16994 tmp_addflag=' -i_dynamic' ;; 16995 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16996 tmp_addflag=' -i_dynamic -nofor_main' ;; 16997 ifc* | ifort*) # Intel Fortran compiler 16998 tmp_addflag=' -nofor_main' ;; 16999 esac 17000 case `$CC -V 2>&1 | sed 5q` in 17001 *Sun\ C*) # Sun C 5.9 17002 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17003 tmp_sharedflag='-G' ;; 17004 *Sun\ F*) # Sun Fortran 8.3 17005 tmp_sharedflag='-G' ;; 17006 *) 17007 tmp_sharedflag='-shared' ;; 17008 esac 17009 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17010 17011 if test $supports_anon_versioning = yes; then 17012 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17014 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17016 fi 17017 else 17018 ld_shlibs_GCJ=no 17019 fi 17020 ;; 17021 17022 netbsd*) 17023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17024 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17025 wlarc= 17026 else 17027 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17028 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17029 fi 17030 ;; 17031 17032 solaris*) 17033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17034 ld_shlibs_GCJ=no 17035 cat <<EOF 1>&2 17036 17037*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17038*** create shared libraries on Solaris systems. Therefore, libtool 17039*** is disabling shared libraries support. We urge you to upgrade GNU 17040*** binutils to release 2.9.1 or newer. Another option is to modify 17041*** your PATH or compiler configuration so that the native linker is 17042*** used, and then restart. 17043 17044EOF 17045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17047 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17048 else 17049 ld_shlibs_GCJ=no 17050 fi 17051 ;; 17052 17053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17054 case `$LD -v 2>&1` in 17055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17056 ld_shlibs_GCJ=no 17057 cat <<_LT_EOF 1>&2 17058 17059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17060*** reliably create shared libraries on SCO systems. Therefore, libtool 17061*** is disabling shared libraries support. We urge you to upgrade GNU 17062*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17063*** your PATH or compiler configuration so that the native linker is 17064*** used, and then restart. 17065 17066_LT_EOF 17067 ;; 17068 *) 17069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17070 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17072 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17073 else 17074 ld_shlibs_GCJ=no 17075 fi 17076 ;; 17077 esac 17078 ;; 17079 17080 sunos4*) 17081 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17082 wlarc= 17083 hardcode_direct_GCJ=yes 17084 hardcode_shlibpath_var_GCJ=no 17085 ;; 17086 17087 *) 17088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17089 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17090 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17091 else 17092 ld_shlibs_GCJ=no 17093 fi 17094 ;; 17095 esac 17096 17097 if test "$ld_shlibs_GCJ" = no; then 17098 runpath_var= 17099 hardcode_libdir_flag_spec_GCJ= 17100 export_dynamic_flag_spec_GCJ= 17101 whole_archive_flag_spec_GCJ= 17102 fi 17103 else 17104 # PORTME fill in a description of your system's linker (not GNU ld) 17105 case $host_os in 17106 aix3*) 17107 allow_undefined_flag_GCJ=unsupported 17108 always_export_symbols_GCJ=yes 17109 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' 17110 # Note: this linker hardcodes the directories in LIBPATH if there 17111 # are no directories specified by -L. 17112 hardcode_minus_L_GCJ=yes 17113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17114 # Neither direct hardcoding nor static linking is supported with a 17115 # broken collect2. 17116 hardcode_direct_GCJ=unsupported 17117 fi 17118 ;; 17119 17120 aix4* | aix5*) 17121 if test "$host_cpu" = ia64; then 17122 # On IA64, the linker does run time linking by default, so we don't 17123 # have to do anything special. 17124 aix_use_runtimelinking=no 17125 exp_sym_flag='-Bexport' 17126 no_entry_flag="" 17127 else 17128 # If we're using GNU nm, then we don't want the "-C" option. 17129 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17131 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' 17132 else 17133 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' 17134 fi 17135 aix_use_runtimelinking=no 17136 17137 # Test if we are trying to use run time linking or normal 17138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17139 # need to do runtime linking. 17140 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17141 for ld_flag in $LDFLAGS; do 17142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17143 aix_use_runtimelinking=yes 17144 break 17145 fi 17146 done 17147 ;; 17148 esac 17149 17150 exp_sym_flag='-bexport' 17151 no_entry_flag='-bnoentry' 17152 fi 17153 17154 # When large executables or shared objects are built, AIX ld can 17155 # have problems creating the table of contents. If linking a library 17156 # or program results in "error TOC overflow" add -mminimal-toc to 17157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17159 17160 archive_cmds_GCJ='' 17161 hardcode_direct_GCJ=yes 17162 hardcode_libdir_separator_GCJ=':' 17163 link_all_deplibs_GCJ=yes 17164 17165 if test "$GCC" = yes; then 17166 case $host_os in aix4.[012]|aix4.[012].*) 17167 # We only want to do this on AIX 4.2 and lower, the check 17168 # below for broken collect2 doesn't work under 4.3+ 17169 collect2name=`${CC} -print-prog-name=collect2` 17170 if test -f "$collect2name" && \ 17171 strings "$collect2name" | grep resolve_lib_name >/dev/null 17172 then 17173 # We have reworked collect2 17174 : 17175 else 17176 # We have old collect2 17177 hardcode_direct_GCJ=unsupported 17178 # It fails to find uninstalled libraries when the uninstalled 17179 # path is not listed in the libpath. Setting hardcode_minus_L 17180 # to unsupported forces relinking 17181 hardcode_minus_L_GCJ=yes 17182 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17183 hardcode_libdir_separator_GCJ= 17184 fi 17185 ;; 17186 esac 17187 shared_flag='-shared' 17188 if test "$aix_use_runtimelinking" = yes; then 17189 shared_flag="$shared_flag "'${wl}-G' 17190 fi 17191 else 17192 # not using gcc 17193 if test "$host_cpu" = ia64; then 17194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17195 # chokes on -Wl,-G. The following line is correct: 17196 shared_flag='-G' 17197 else 17198 if test "$aix_use_runtimelinking" = yes; then 17199 shared_flag='${wl}-G' 17200 else 17201 shared_flag='${wl}-bM:SRE' 17202 fi 17203 fi 17204 fi 17205 17206 # It seems that -bexpall does not export symbols beginning with 17207 # underscore (_), so it is better to generate a list of symbols to export. 17208 always_export_symbols_GCJ=yes 17209 if test "$aix_use_runtimelinking" = yes; then 17210 # Warning - without using the other runtime loading flags (-brtl), 17211 # -berok will link without error, but may produce a broken library. 17212 allow_undefined_flag_GCJ='-berok' 17213 # Determine the default libpath from the value encoded in an empty executable. 17214 cat >conftest.$ac_ext <<_ACEOF 17215/* confdefs.h. */ 17216_ACEOF 17217cat confdefs.h >>conftest.$ac_ext 17218cat >>conftest.$ac_ext <<_ACEOF 17219/* end confdefs.h. */ 17220 17221int 17222main () 17223{ 17224 17225 ; 17226 return 0; 17227} 17228_ACEOF 17229rm -f conftest.$ac_objext conftest$ac_exeext 17230if { (ac_try="$ac_link" 17231case "(($ac_try" in 17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17233 *) ac_try_echo=$ac_try;; 17234esac 17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17236 (eval "$ac_link") 2>conftest.er1 17237 ac_status=$? 17238 grep -v '^ *+' conftest.er1 >conftest.err 17239 rm -f conftest.er1 17240 cat conftest.err >&5 17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17242 (exit $ac_status); } && { 17243 test -z "$ac_c_werror_flag" || 17244 test ! -s conftest.err 17245 } && test -s conftest$ac_exeext && 17246 $as_test_x conftest$ac_exeext; then 17247 17248lt_aix_libpath_sed=' 17249 /Import File Strings/,/^$/ { 17250 /^0/ { 17251 s/^0 *\(.*\)$/\1/ 17252 p 17253 } 17254 }' 17255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17256# Check for a 64-bit object if we didn't find anything. 17257if test -z "$aix_libpath"; then 17258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17259fi 17260else 17261 echo "$as_me: failed program was:" >&5 17262sed 's/^/| /' conftest.$ac_ext >&5 17263 17264 17265fi 17266 17267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17268 conftest$ac_exeext conftest.$ac_ext 17269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17270 17271 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17272 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" 17273 else 17274 if test "$host_cpu" = ia64; then 17275 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17276 allow_undefined_flag_GCJ="-z nodefs" 17277 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" 17278 else 17279 # Determine the default libpath from the value encoded in an empty executable. 17280 cat >conftest.$ac_ext <<_ACEOF 17281/* confdefs.h. */ 17282_ACEOF 17283cat confdefs.h >>conftest.$ac_ext 17284cat >>conftest.$ac_ext <<_ACEOF 17285/* end confdefs.h. */ 17286 17287int 17288main () 17289{ 17290 17291 ; 17292 return 0; 17293} 17294_ACEOF 17295rm -f conftest.$ac_objext conftest$ac_exeext 17296if { (ac_try="$ac_link" 17297case "(($ac_try" in 17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17299 *) ac_try_echo=$ac_try;; 17300esac 17301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17302 (eval "$ac_link") 2>conftest.er1 17303 ac_status=$? 17304 grep -v '^ *+' conftest.er1 >conftest.err 17305 rm -f conftest.er1 17306 cat conftest.err >&5 17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17308 (exit $ac_status); } && { 17309 test -z "$ac_c_werror_flag" || 17310 test ! -s conftest.err 17311 } && test -s conftest$ac_exeext && 17312 $as_test_x conftest$ac_exeext; then 17313 17314lt_aix_libpath_sed=' 17315 /Import File Strings/,/^$/ { 17316 /^0/ { 17317 s/^0 *\(.*\)$/\1/ 17318 p 17319 } 17320 }' 17321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17322# Check for a 64-bit object if we didn't find anything. 17323if test -z "$aix_libpath"; then 17324 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17325fi 17326else 17327 echo "$as_me: failed program was:" >&5 17328sed 's/^/| /' conftest.$ac_ext >&5 17329 17330 17331fi 17332 17333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17334 conftest$ac_exeext conftest.$ac_ext 17335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17336 17337 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17338 # Warning - without using the other run time loading flags, 17339 # -berok will link without error, but may produce a broken library. 17340 no_undefined_flag_GCJ=' ${wl}-bernotok' 17341 allow_undefined_flag_GCJ=' ${wl}-berok' 17342 # Exported symbols can be pulled into shared objects from archives 17343 whole_archive_flag_spec_GCJ='$convenience' 17344 archive_cmds_need_lc_GCJ=yes 17345 # This is similar to how AIX traditionally builds its shared libraries. 17346 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' 17347 fi 17348 fi 17349 ;; 17350 17351 amigaos*) 17352 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)' 17353 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17354 hardcode_minus_L_GCJ=yes 17355 # see comment about different semantics on the GNU ld section 17356 ld_shlibs_GCJ=no 17357 ;; 17358 17359 bsdi[45]*) 17360 export_dynamic_flag_spec_GCJ=-rdynamic 17361 ;; 17362 17363 cygwin* | mingw* | pw32*) 17364 # When not using gcc, we currently assume that we are using 17365 # Microsoft Visual C++. 17366 # hardcode_libdir_flag_spec is actually meaningless, as there is 17367 # no search path for DLLs. 17368 hardcode_libdir_flag_spec_GCJ=' ' 17369 allow_undefined_flag_GCJ=unsupported 17370 # Tell ltmain to make .lib files, not .a files. 17371 libext=lib 17372 # Tell ltmain to make .dll files, not .so files. 17373 shrext_cmds=".dll" 17374 # FIXME: Setting linknames here is a bad hack. 17375 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17376 # The linker will automatically build a .lib file if we build a DLL. 17377 old_archive_From_new_cmds_GCJ='true' 17378 # FIXME: Should let the user specify the lib program. 17379 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17380 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17381 enable_shared_with_static_runtimes_GCJ=yes 17382 ;; 17383 17384 darwin* | rhapsody*) 17385 case $host_os in 17386 rhapsody* | darwin1.[012]) 17387 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17388 ;; 17389 *) # Darwin 1.3 on 17390 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17391 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17392 else 17393 case ${MACOSX_DEPLOYMENT_TARGET} in 17394 10.[012]) 17395 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17396 ;; 17397 10.*) 17398 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17399 ;; 17400 esac 17401 fi 17402 ;; 17403 esac 17404 archive_cmds_need_lc_GCJ=no 17405 hardcode_direct_GCJ=no 17406 hardcode_automatic_GCJ=yes 17407 hardcode_shlibpath_var_GCJ=unsupported 17408 whole_archive_flag_spec_GCJ='' 17409 link_all_deplibs_GCJ=yes 17410 if test "$GCC" = yes ; then 17411 output_verbose_link_cmd='echo' 17412 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17413 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17415 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}' 17416 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}' 17417 else 17418 case $cc_basename in 17419 xlc*) 17420 output_verbose_link_cmd='echo' 17421 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17422 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17424 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17425 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}' 17426 ;; 17427 *) 17428 ld_shlibs_GCJ=no 17429 ;; 17430 esac 17431 fi 17432 ;; 17433 17434 dgux*) 17435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17436 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17437 hardcode_shlibpath_var_GCJ=no 17438 ;; 17439 17440 freebsd1*) 17441 ld_shlibs_GCJ=no 17442 ;; 17443 17444 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17445 # support. Future versions do this automatically, but an explicit c++rt0.o 17446 # does not break anything, and helps significantly (at the cost of a little 17447 # extra space). 17448 freebsd2.2*) 17449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17450 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17451 hardcode_direct_GCJ=yes 17452 hardcode_shlibpath_var_GCJ=no 17453 ;; 17454 17455 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17456 freebsd2*) 17457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17458 hardcode_direct_GCJ=yes 17459 hardcode_minus_L_GCJ=yes 17460 hardcode_shlibpath_var_GCJ=no 17461 ;; 17462 17463 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17464 freebsd* | dragonfly*) 17465 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17466 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17467 hardcode_direct_GCJ=yes 17468 hardcode_shlibpath_var_GCJ=no 17469 ;; 17470 17471 hpux9*) 17472 if test "$GCC" = yes; then 17473 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' 17474 else 17475 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' 17476 fi 17477 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17478 hardcode_libdir_separator_GCJ=: 17479 hardcode_direct_GCJ=yes 17480 17481 # hardcode_minus_L: Not really in the search PATH, 17482 # but as the default location of the library. 17483 hardcode_minus_L_GCJ=yes 17484 export_dynamic_flag_spec_GCJ='${wl}-E' 17485 ;; 17486 17487 hpux10*) 17488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17489 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17490 else 17491 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17492 fi 17493 if test "$with_gnu_ld" = no; then 17494 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17495 hardcode_libdir_separator_GCJ=: 17496 17497 hardcode_direct_GCJ=yes 17498 export_dynamic_flag_spec_GCJ='${wl}-E' 17499 17500 # hardcode_minus_L: Not really in the search PATH, 17501 # but as the default location of the library. 17502 hardcode_minus_L_GCJ=yes 17503 fi 17504 ;; 17505 17506 hpux11*) 17507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17508 case $host_cpu in 17509 hppa*64*) 17510 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17511 ;; 17512 ia64*) 17513 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17514 ;; 17515 *) 17516 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17517 ;; 17518 esac 17519 else 17520 case $host_cpu in 17521 hppa*64*) 17522 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17523 ;; 17524 ia64*) 17525 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17526 ;; 17527 *) 17528 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17529 ;; 17530 esac 17531 fi 17532 if test "$with_gnu_ld" = no; then 17533 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17534 hardcode_libdir_separator_GCJ=: 17535 17536 case $host_cpu in 17537 hppa*64*|ia64*) 17538 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17539 hardcode_direct_GCJ=no 17540 hardcode_shlibpath_var_GCJ=no 17541 ;; 17542 *) 17543 hardcode_direct_GCJ=yes 17544 export_dynamic_flag_spec_GCJ='${wl}-E' 17545 17546 # hardcode_minus_L: Not really in the search PATH, 17547 # but as the default location of the library. 17548 hardcode_minus_L_GCJ=yes 17549 ;; 17550 esac 17551 fi 17552 ;; 17553 17554 irix5* | irix6* | nonstopux*) 17555 if test "$GCC" = yes; then 17556 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' 17557 else 17558 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' 17559 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17560 fi 17561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17562 hardcode_libdir_separator_GCJ=: 17563 link_all_deplibs_GCJ=yes 17564 ;; 17565 17566 netbsd*) 17567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17568 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17569 else 17570 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17571 fi 17572 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17573 hardcode_direct_GCJ=yes 17574 hardcode_shlibpath_var_GCJ=no 17575 ;; 17576 17577 newsos6) 17578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17579 hardcode_direct_GCJ=yes 17580 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17581 hardcode_libdir_separator_GCJ=: 17582 hardcode_shlibpath_var_GCJ=no 17583 ;; 17584 17585 openbsd*) 17586 if test -f /usr/libexec/ld.so; then 17587 hardcode_direct_GCJ=yes 17588 hardcode_shlibpath_var_GCJ=no 17589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17590 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17591 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17592 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17593 export_dynamic_flag_spec_GCJ='${wl}-E' 17594 else 17595 case $host_os in 17596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17597 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17598 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17599 ;; 17600 *) 17601 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17603 ;; 17604 esac 17605 fi 17606 else 17607 ld_shlibs_GCJ=no 17608 fi 17609 ;; 17610 17611 os2*) 17612 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17613 hardcode_minus_L_GCJ=yes 17614 allow_undefined_flag_GCJ=unsupported 17615 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' 17616 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17617 ;; 17618 17619 osf3*) 17620 if test "$GCC" = yes; then 17621 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17622 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' 17623 else 17624 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17625 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' 17626 fi 17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17628 hardcode_libdir_separator_GCJ=: 17629 ;; 17630 17631 osf4* | osf5*) # as osf3* with the addition of -msym flag 17632 if test "$GCC" = yes; then 17633 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17634 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' 17635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17636 else 17637 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17638 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' 17639 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~ 17640 $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' 17641 17642 # Both c and cxx compiler support -rpath directly 17643 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17644 fi 17645 hardcode_libdir_separator_GCJ=: 17646 ;; 17647 17648 solaris*) 17649 no_undefined_flag_GCJ=' -z text' 17650 if test "$GCC" = yes; then 17651 wlarc='${wl}' 17652 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17653 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17654 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17655 else 17656 wlarc='' 17657 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17658 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17660 fi 17661 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17662 hardcode_shlibpath_var_GCJ=no 17663 case $host_os in 17664 solaris2.[0-5] | solaris2.[0-5].*) ;; 17665 *) 17666 # The compiler driver will combine and reorder linker options, 17667 # but understands `-z linker_flag'. GCC discards it without `$wl', 17668 # but is careful enough not to reorder. 17669 # Supported since Solaris 2.6 (maybe 2.5.1?) 17670 if test "$GCC" = yes; then 17671 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17672 else 17673 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17674 fi 17675 ;; 17676 esac 17677 link_all_deplibs_GCJ=yes 17678 ;; 17679 17680 sunos4*) 17681 if test "x$host_vendor" = xsequent; then 17682 # Use $CC to link under sequent, because it throws in some extra .o 17683 # files that make .init and .fini sections work. 17684 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17685 else 17686 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17687 fi 17688 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17689 hardcode_direct_GCJ=yes 17690 hardcode_minus_L_GCJ=yes 17691 hardcode_shlibpath_var_GCJ=no 17692 ;; 17693 17694 sysv4) 17695 case $host_vendor in 17696 sni) 17697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17698 hardcode_direct_GCJ=yes # is this really true??? 17699 ;; 17700 siemens) 17701 ## LD is ld it makes a PLAMLIB 17702 ## CC just makes a GrossModule. 17703 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17704 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17705 hardcode_direct_GCJ=no 17706 ;; 17707 motorola) 17708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17709 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17710 ;; 17711 esac 17712 runpath_var='LD_RUN_PATH' 17713 hardcode_shlibpath_var_GCJ=no 17714 ;; 17715 17716 sysv4.3*) 17717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17718 hardcode_shlibpath_var_GCJ=no 17719 export_dynamic_flag_spec_GCJ='-Bexport' 17720 ;; 17721 17722 sysv4*MP*) 17723 if test -d /usr/nec; then 17724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17725 hardcode_shlibpath_var_GCJ=no 17726 runpath_var=LD_RUN_PATH 17727 hardcode_runpath_var=yes 17728 ld_shlibs_GCJ=yes 17729 fi 17730 ;; 17731 17732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17733 no_undefined_flag_GCJ='${wl}-z,text' 17734 archive_cmds_need_lc_GCJ=no 17735 hardcode_shlibpath_var_GCJ=no 17736 runpath_var='LD_RUN_PATH' 17737 17738 if test "$GCC" = yes; then 17739 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17740 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17741 else 17742 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17743 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17744 fi 17745 ;; 17746 17747 sysv5* | sco3.2v5* | sco5v6*) 17748 # Note: We can NOT use -z defs as we might desire, because we do not 17749 # link with -lc, and that would cause any symbols used from libc to 17750 # always be unresolved, which means just about no library would 17751 # ever link correctly. If we're not using GNU ld we use -z text 17752 # though, which does catch some bad symbols but isn't as heavy-handed 17753 # as -z defs. 17754 no_undefined_flag_GCJ='${wl}-z,text' 17755 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17756 archive_cmds_need_lc_GCJ=no 17757 hardcode_shlibpath_var_GCJ=no 17758 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17759 hardcode_libdir_separator_GCJ=':' 17760 link_all_deplibs_GCJ=yes 17761 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17762 runpath_var='LD_RUN_PATH' 17763 17764 if test "$GCC" = yes; then 17765 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17766 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17767 else 17768 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17769 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17770 fi 17771 ;; 17772 17773 uts4*) 17774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17775 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17776 hardcode_shlibpath_var_GCJ=no 17777 ;; 17778 17779 *) 17780 ld_shlibs_GCJ=no 17781 ;; 17782 esac 17783 fi 17784 17785{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17786echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17787test "$ld_shlibs_GCJ" = no && can_build_shared=no 17788 17789# 17790# Do we need to explicitly link libc? 17791# 17792case "x$archive_cmds_need_lc_GCJ" in 17793x|xyes) 17794 # Assume -lc should be added 17795 archive_cmds_need_lc_GCJ=yes 17796 17797 if test "$enable_shared" = yes && test "$GCC" = yes; then 17798 case $archive_cmds_GCJ in 17799 *'~'*) 17800 # FIXME: we may have to deal with multi-command sequences. 17801 ;; 17802 '$CC '*) 17803 # Test whether the compiler implicitly links with -lc since on some 17804 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17805 # to ld, don't add -lc before -lgcc. 17806 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17807echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17808 $rm conftest* 17809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17810 17811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17812 (eval $ac_compile) 2>&5 17813 ac_status=$? 17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17815 (exit $ac_status); } 2>conftest.err; then 17816 soname=conftest 17817 lib=conftest 17818 libobjs=conftest.$ac_objext 17819 deplibs= 17820 wl=$lt_prog_compiler_wl_GCJ 17821 pic_flag=$lt_prog_compiler_pic_GCJ 17822 compiler_flags=-v 17823 linker_flags=-v 17824 verstring= 17825 output_objdir=. 17826 libname=conftest 17827 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17828 allow_undefined_flag_GCJ= 17829 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17830 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17831 ac_status=$? 17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17833 (exit $ac_status); } 17834 then 17835 archive_cmds_need_lc_GCJ=no 17836 else 17837 archive_cmds_need_lc_GCJ=yes 17838 fi 17839 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17840 else 17841 cat conftest.err 1>&5 17842 fi 17843 $rm conftest* 17844 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17845echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17846 ;; 17847 esac 17848 fi 17849 ;; 17850esac 17851 17852{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17853echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17854library_names_spec= 17855libname_spec='lib$name' 17856soname_spec= 17857shrext_cmds=".so" 17858postinstall_cmds= 17859postuninstall_cmds= 17860finish_cmds= 17861finish_eval= 17862shlibpath_var= 17863shlibpath_overrides_runpath=unknown 17864version_type=none 17865dynamic_linker="$host_os ld.so" 17866sys_lib_dlsearch_path_spec="/lib /usr/lib" 17867 17868need_lib_prefix=unknown 17869hardcode_into_libs=no 17870 17871# when you set need_version to no, make sure it does not cause -set_version 17872# flags to be left without arguments 17873need_version=unknown 17874 17875case $host_os in 17876aix3*) 17877 version_type=linux 17878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17879 shlibpath_var=LIBPATH 17880 17881 # AIX 3 has no versioning support, so we append a major version to the name. 17882 soname_spec='${libname}${release}${shared_ext}$major' 17883 ;; 17884 17885aix4* | aix5*) 17886 version_type=linux 17887 need_lib_prefix=no 17888 need_version=no 17889 hardcode_into_libs=yes 17890 if test "$host_cpu" = ia64; then 17891 # AIX 5 supports IA64 17892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17893 shlibpath_var=LD_LIBRARY_PATH 17894 else 17895 # With GCC up to 2.95.x, collect2 would create an import file 17896 # for dependence libraries. The import file would start with 17897 # the line `#! .'. This would cause the generated library to 17898 # depend on `.', always an invalid library. This was fixed in 17899 # development snapshots of GCC prior to 3.0. 17900 case $host_os in 17901 aix4 | aix4.[01] | aix4.[01].*) 17902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17903 echo ' yes ' 17904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17905 : 17906 else 17907 can_build_shared=no 17908 fi 17909 ;; 17910 esac 17911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17912 # soname into executable. Probably we can add versioning support to 17913 # collect2, so additional links can be useful in future. 17914 if test "$aix_use_runtimelinking" = yes; then 17915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17916 # instead of lib<name>.a to let people know that these are not 17917 # typical AIX shared libraries. 17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17919 else 17920 # We preserve .a as extension for shared libraries through AIX4.2 17921 # and later when we are not doing run time linking. 17922 library_names_spec='${libname}${release}.a $libname.a' 17923 soname_spec='${libname}${release}${shared_ext}$major' 17924 fi 17925 shlibpath_var=LIBPATH 17926 fi 17927 ;; 17928 17929amigaos*) 17930 library_names_spec='$libname.ixlibrary $libname.a' 17931 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17932 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' 17933 ;; 17934 17935beos*) 17936 library_names_spec='${libname}${shared_ext}' 17937 dynamic_linker="$host_os ld.so" 17938 shlibpath_var=LIBRARY_PATH 17939 ;; 17940 17941bsdi[45]*) 17942 version_type=linux 17943 need_version=no 17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17945 soname_spec='${libname}${release}${shared_ext}$major' 17946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17947 shlibpath_var=LD_LIBRARY_PATH 17948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17950 # the default ld.so.conf also contains /usr/contrib/lib and 17951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17952 # libtool to hard-code these into programs 17953 ;; 17954 17955cygwin* | mingw* | pw32*) 17956 version_type=windows 17957 shrext_cmds=".dll" 17958 need_version=no 17959 need_lib_prefix=no 17960 17961 case $GCC,$host_os in 17962 yes,cygwin* | yes,mingw* | yes,pw32*) 17963 library_names_spec='$libname.dll.a' 17964 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17965 postinstall_cmds='base_file=`basename \${file}`~ 17966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17967 dldir=$destdir/`dirname \$dlpath`~ 17968 test -d \$dldir || mkdir -p \$dldir~ 17969 $install_prog $dir/$dlname \$dldir/$dlname~ 17970 chmod a+x \$dldir/$dlname' 17971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17972 dlpath=$dir/\$dldll~ 17973 $rm \$dlpath' 17974 shlibpath_overrides_runpath=yes 17975 17976 case $host_os in 17977 cygwin*) 17978 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17981 ;; 17982 mingw*) 17983 # MinGW DLLs use traditional 'lib' prefix 17984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17987 # It is most probably a Windows format PATH printed by 17988 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17989 # path with ; separators, and with drive letters. We can handle the 17990 # drive letters (cygwin fileutils understands them), so leave them, 17991 # especially as we might pass files found there to a mingw objdump, 17992 # which wouldn't understand a cygwinified path. Ahh. 17993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17994 else 17995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17996 fi 17997 ;; 17998 pw32*) 17999 # pw32 DLLs use 'pw' prefix rather than 'lib' 18000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18001 ;; 18002 esac 18003 ;; 18004 18005 *) 18006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18007 ;; 18008 esac 18009 dynamic_linker='Win32 ld.exe' 18010 # FIXME: first we should search . and the directory the executable is in 18011 shlibpath_var=PATH 18012 ;; 18013 18014darwin* | rhapsody*) 18015 dynamic_linker="$host_os dyld" 18016 version_type=darwin 18017 need_lib_prefix=no 18018 need_version=no 18019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18020 soname_spec='${libname}${release}${major}$shared_ext' 18021 shlibpath_overrides_runpath=yes 18022 shlibpath_var=DYLD_LIBRARY_PATH 18023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18024 18025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18026 ;; 18027 18028dgux*) 18029 version_type=linux 18030 need_lib_prefix=no 18031 need_version=no 18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18033 soname_spec='${libname}${release}${shared_ext}$major' 18034 shlibpath_var=LD_LIBRARY_PATH 18035 ;; 18036 18037freebsd1*) 18038 dynamic_linker=no 18039 ;; 18040 18041freebsd* | dragonfly*) 18042 # DragonFly does not have aout. When/if they implement a new 18043 # versioning mechanism, adjust this. 18044 if test -x /usr/bin/objformat; then 18045 objformat=`/usr/bin/objformat` 18046 else 18047 case $host_os in 18048 freebsd[123]*) objformat=aout ;; 18049 *) objformat=elf ;; 18050 esac 18051 fi 18052 version_type=freebsd-$objformat 18053 case $version_type in 18054 freebsd-elf*) 18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18056 need_version=no 18057 need_lib_prefix=no 18058 ;; 18059 freebsd-*) 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18061 need_version=yes 18062 ;; 18063 esac 18064 shlibpath_var=LD_LIBRARY_PATH 18065 case $host_os in 18066 freebsd2*) 18067 shlibpath_overrides_runpath=yes 18068 ;; 18069 freebsd3.[01]* | freebsdelf3.[01]*) 18070 shlibpath_overrides_runpath=yes 18071 hardcode_into_libs=yes 18072 ;; 18073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18075 shlibpath_overrides_runpath=no 18076 hardcode_into_libs=yes 18077 ;; 18078 *) # from 4.6 on, and DragonFly 18079 shlibpath_overrides_runpath=yes 18080 hardcode_into_libs=yes 18081 ;; 18082 esac 18083 ;; 18084 18085gnu*) 18086 version_type=linux 18087 need_lib_prefix=no 18088 need_version=no 18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18090 soname_spec='${libname}${release}${shared_ext}$major' 18091 shlibpath_var=LD_LIBRARY_PATH 18092 hardcode_into_libs=yes 18093 ;; 18094 18095hpux9* | hpux10* | hpux11*) 18096 # Give a soname corresponding to the major version so that dld.sl refuses to 18097 # link against other versions. 18098 version_type=sunos 18099 need_lib_prefix=no 18100 need_version=no 18101 case $host_cpu in 18102 ia64*) 18103 shrext_cmds='.so' 18104 hardcode_into_libs=yes 18105 dynamic_linker="$host_os dld.so" 18106 shlibpath_var=LD_LIBRARY_PATH 18107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18109 soname_spec='${libname}${release}${shared_ext}$major' 18110 if test "X$HPUX_IA64_MODE" = X32; then 18111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18112 else 18113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18114 fi 18115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18116 ;; 18117 hppa*64*) 18118 shrext_cmds='.sl' 18119 hardcode_into_libs=yes 18120 dynamic_linker="$host_os dld.sl" 18121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18124 soname_spec='${libname}${release}${shared_ext}$major' 18125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18127 ;; 18128 *) 18129 shrext_cmds='.sl' 18130 dynamic_linker="$host_os dld.sl" 18131 shlibpath_var=SHLIB_PATH 18132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18134 soname_spec='${libname}${release}${shared_ext}$major' 18135 ;; 18136 esac 18137 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18138 postinstall_cmds='chmod 555 $lib' 18139 ;; 18140 18141interix[3-9]*) 18142 version_type=linux 18143 need_lib_prefix=no 18144 need_version=no 18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18146 soname_spec='${libname}${release}${shared_ext}$major' 18147 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18148 shlibpath_var=LD_LIBRARY_PATH 18149 shlibpath_overrides_runpath=no 18150 hardcode_into_libs=yes 18151 ;; 18152 18153irix5* | irix6* | nonstopux*) 18154 case $host_os in 18155 nonstopux*) version_type=nonstopux ;; 18156 *) 18157 if test "$lt_cv_prog_gnu_ld" = yes; then 18158 version_type=linux 18159 else 18160 version_type=irix 18161 fi ;; 18162 esac 18163 need_lib_prefix=no 18164 need_version=no 18165 soname_spec='${libname}${release}${shared_ext}$major' 18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18167 case $host_os in 18168 irix5* | nonstopux*) 18169 libsuff= shlibsuff= 18170 ;; 18171 *) 18172 case $LD in # libtool.m4 will add one of these switches to LD 18173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18174 libsuff= shlibsuff= libmagic=32-bit;; 18175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18176 libsuff=32 shlibsuff=N32 libmagic=N32;; 18177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18178 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18179 *) libsuff= shlibsuff= libmagic=never-match;; 18180 esac 18181 ;; 18182 esac 18183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18184 shlibpath_overrides_runpath=no 18185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18187 hardcode_into_libs=yes 18188 ;; 18189 18190# No shared lib support for Linux oldld, aout, or coff. 18191linux*oldld* | linux*aout* | linux*coff*) 18192 dynamic_linker=no 18193 ;; 18194 18195# This must be Linux ELF. 18196linux* | k*bsd*-gnu) 18197 version_type=linux 18198 need_lib_prefix=no 18199 need_version=no 18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18201 soname_spec='${libname}${release}${shared_ext}$major' 18202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18203 shlibpath_var=LD_LIBRARY_PATH 18204 shlibpath_overrides_runpath=no 18205 # This implies no fast_install, which is unacceptable. 18206 # Some rework will be needed to allow for fast_install 18207 # before this can be enabled. 18208 hardcode_into_libs=yes 18209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18211 18212 # Append ld.so.conf contents to the search path 18213 if test -f /etc/ld.so.conf; then 18214 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18215 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18216 fi 18217 18218 # We used to test for /lib/ld.so.1 and disable shared libraries on 18219 # powerpc, because MkLinux only supported shared libraries with the 18220 # GNU dynamic linker. Since this was broken with cross compilers, 18221 # most powerpc-linux boxes support dynamic linking these days and 18222 # people can always --disable-shared, the test was removed, and we 18223 # assume the GNU/Linux dynamic linker is in use. 18224 dynamic_linker='GNU/Linux ld.so' 18225 ;; 18226 18227netbsd*) 18228 version_type=sunos 18229 need_lib_prefix=no 18230 need_version=no 18231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18234 dynamic_linker='NetBSD (a.out) ld.so' 18235 else 18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18237 soname_spec='${libname}${release}${shared_ext}$major' 18238 dynamic_linker='NetBSD ld.elf_so' 18239 fi 18240 shlibpath_var=LD_LIBRARY_PATH 18241 shlibpath_overrides_runpath=yes 18242 hardcode_into_libs=yes 18243 ;; 18244 18245newsos6) 18246 version_type=linux 18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18248 shlibpath_var=LD_LIBRARY_PATH 18249 shlibpath_overrides_runpath=yes 18250 ;; 18251 18252nto-qnx*) 18253 version_type=linux 18254 need_lib_prefix=no 18255 need_version=no 18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18257 soname_spec='${libname}${release}${shared_ext}$major' 18258 shlibpath_var=LD_LIBRARY_PATH 18259 shlibpath_overrides_runpath=yes 18260 ;; 18261 18262openbsd*) 18263 version_type=sunos 18264 sys_lib_dlsearch_path_spec="/usr/lib" 18265 need_lib_prefix=no 18266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18267 case $host_os in 18268 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18269 *) need_version=no ;; 18270 esac 18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18273 shlibpath_var=LD_LIBRARY_PATH 18274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18275 case $host_os in 18276 openbsd2.[89] | openbsd2.[89].*) 18277 shlibpath_overrides_runpath=no 18278 ;; 18279 *) 18280 shlibpath_overrides_runpath=yes 18281 ;; 18282 esac 18283 else 18284 shlibpath_overrides_runpath=yes 18285 fi 18286 ;; 18287 18288os2*) 18289 libname_spec='$name' 18290 shrext_cmds=".dll" 18291 need_lib_prefix=no 18292 library_names_spec='$libname${shared_ext} $libname.a' 18293 dynamic_linker='OS/2 ld.exe' 18294 shlibpath_var=LIBPATH 18295 ;; 18296 18297osf3* | osf4* | osf5*) 18298 version_type=osf 18299 need_lib_prefix=no 18300 need_version=no 18301 soname_spec='${libname}${release}${shared_ext}$major' 18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18303 shlibpath_var=LD_LIBRARY_PATH 18304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18306 ;; 18307 18308rdos*) 18309 dynamic_linker=no 18310 ;; 18311 18312solaris*) 18313 version_type=linux 18314 need_lib_prefix=no 18315 need_version=no 18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18317 soname_spec='${libname}${release}${shared_ext}$major' 18318 shlibpath_var=LD_LIBRARY_PATH 18319 shlibpath_overrides_runpath=yes 18320 hardcode_into_libs=yes 18321 # ldd complains unless libraries are executable 18322 postinstall_cmds='chmod +x $lib' 18323 ;; 18324 18325sunos4*) 18326 version_type=sunos 18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18329 shlibpath_var=LD_LIBRARY_PATH 18330 shlibpath_overrides_runpath=yes 18331 if test "$with_gnu_ld" = yes; then 18332 need_lib_prefix=no 18333 fi 18334 need_version=yes 18335 ;; 18336 18337sysv4 | sysv4.3*) 18338 version_type=linux 18339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18340 soname_spec='${libname}${release}${shared_ext}$major' 18341 shlibpath_var=LD_LIBRARY_PATH 18342 case $host_vendor in 18343 sni) 18344 shlibpath_overrides_runpath=no 18345 need_lib_prefix=no 18346 export_dynamic_flag_spec='${wl}-Blargedynsym' 18347 runpath_var=LD_RUN_PATH 18348 ;; 18349 siemens) 18350 need_lib_prefix=no 18351 ;; 18352 motorola) 18353 need_lib_prefix=no 18354 need_version=no 18355 shlibpath_overrides_runpath=no 18356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18357 ;; 18358 esac 18359 ;; 18360 18361sysv4*MP*) 18362 if test -d /usr/nec ;then 18363 version_type=linux 18364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18365 soname_spec='$libname${shared_ext}.$major' 18366 shlibpath_var=LD_LIBRARY_PATH 18367 fi 18368 ;; 18369 18370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18371 version_type=freebsd-elf 18372 need_lib_prefix=no 18373 need_version=no 18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18375 soname_spec='${libname}${release}${shared_ext}$major' 18376 shlibpath_var=LD_LIBRARY_PATH 18377 hardcode_into_libs=yes 18378 if test "$with_gnu_ld" = yes; then 18379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18380 shlibpath_overrides_runpath=no 18381 else 18382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18383 shlibpath_overrides_runpath=yes 18384 case $host_os in 18385 sco3.2v5*) 18386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18387 ;; 18388 esac 18389 fi 18390 sys_lib_dlsearch_path_spec='/usr/lib' 18391 ;; 18392 18393uts4*) 18394 version_type=linux 18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18396 soname_spec='${libname}${release}${shared_ext}$major' 18397 shlibpath_var=LD_LIBRARY_PATH 18398 ;; 18399 18400*) 18401 dynamic_linker=no 18402 ;; 18403esac 18404{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18405echo "${ECHO_T}$dynamic_linker" >&6; } 18406test "$dynamic_linker" = no && can_build_shared=no 18407 18408variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18409if test "$GCC" = yes; then 18410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18411fi 18412 18413{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18414echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18415hardcode_action_GCJ= 18416if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18417 test -n "$runpath_var_GCJ" || \ 18418 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18419 18420 # We can hardcode non-existant directories. 18421 if test "$hardcode_direct_GCJ" != no && 18422 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18423 # have to relink, otherwise we might link with an installed library 18424 # when we should be linking with a yet-to-be-installed one 18425 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18426 test "$hardcode_minus_L_GCJ" != no; then 18427 # Linking always hardcodes the temporary library directory. 18428 hardcode_action_GCJ=relink 18429 else 18430 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18431 hardcode_action_GCJ=immediate 18432 fi 18433else 18434 # We cannot hardcode anything, or else we can only hardcode existing 18435 # directories. 18436 hardcode_action_GCJ=unsupported 18437fi 18438{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18439echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18440 18441if test "$hardcode_action_GCJ" = relink; then 18442 # Fast installation is not supported 18443 enable_fast_install=no 18444elif test "$shlibpath_overrides_runpath" = yes || 18445 test "$enable_shared" = no; then 18446 # Fast installation is not necessary 18447 enable_fast_install=needless 18448fi 18449 18450 18451# The else clause should only fire when bootstrapping the 18452# libtool distribution, otherwise you forgot to ship ltmain.sh 18453# with your package, and you will get complaints that there are 18454# no rules to generate ltmain.sh. 18455if test -f "$ltmain"; then 18456 # See if we are running on zsh, and set the options which allow our commands through 18457 # without removal of \ escapes. 18458 if test -n "${ZSH_VERSION+set}" ; then 18459 setopt NO_GLOB_SUBST 18460 fi 18461 # Now quote all the things that may contain metacharacters while being 18462 # careful not to overquote the AC_SUBSTed values. We take copies of the 18463 # variables and quote the copies for generation of the libtool script. 18464 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18465 SED SHELL STRIP \ 18466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18468 deplibs_check_method reload_flag reload_cmds need_locks \ 18469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18470 lt_cv_sys_global_symbol_to_c_name_address \ 18471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18472 old_postinstall_cmds old_postuninstall_cmds \ 18473 compiler_GCJ \ 18474 CC_GCJ \ 18475 LD_GCJ \ 18476 lt_prog_compiler_wl_GCJ \ 18477 lt_prog_compiler_pic_GCJ \ 18478 lt_prog_compiler_static_GCJ \ 18479 lt_prog_compiler_no_builtin_flag_GCJ \ 18480 export_dynamic_flag_spec_GCJ \ 18481 thread_safe_flag_spec_GCJ \ 18482 whole_archive_flag_spec_GCJ \ 18483 enable_shared_with_static_runtimes_GCJ \ 18484 old_archive_cmds_GCJ \ 18485 old_archive_from_new_cmds_GCJ \ 18486 predep_objects_GCJ \ 18487 postdep_objects_GCJ \ 18488 predeps_GCJ \ 18489 postdeps_GCJ \ 18490 compiler_lib_search_path_GCJ \ 18491 archive_cmds_GCJ \ 18492 archive_expsym_cmds_GCJ \ 18493 postinstall_cmds_GCJ \ 18494 postuninstall_cmds_GCJ \ 18495 old_archive_from_expsyms_cmds_GCJ \ 18496 allow_undefined_flag_GCJ \ 18497 no_undefined_flag_GCJ \ 18498 export_symbols_cmds_GCJ \ 18499 hardcode_libdir_flag_spec_GCJ \ 18500 hardcode_libdir_flag_spec_ld_GCJ \ 18501 hardcode_libdir_separator_GCJ \ 18502 hardcode_automatic_GCJ \ 18503 module_cmds_GCJ \ 18504 module_expsym_cmds_GCJ \ 18505 lt_cv_prog_compiler_c_o_GCJ \ 18506 fix_srcfile_path_GCJ \ 18507 exclude_expsyms_GCJ \ 18508 include_expsyms_GCJ; do 18509 18510 case $var in 18511 old_archive_cmds_GCJ | \ 18512 old_archive_from_new_cmds_GCJ | \ 18513 archive_cmds_GCJ | \ 18514 archive_expsym_cmds_GCJ | \ 18515 module_cmds_GCJ | \ 18516 module_expsym_cmds_GCJ | \ 18517 old_archive_from_expsyms_cmds_GCJ | \ 18518 export_symbols_cmds_GCJ | \ 18519 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18520 postinstall_cmds | postuninstall_cmds | \ 18521 old_postinstall_cmds | old_postuninstall_cmds | \ 18522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18523 # Double-quote double-evaled strings. 18524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18525 ;; 18526 *) 18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18528 ;; 18529 esac 18530 done 18531 18532 case $lt_echo in 18533 *'\$0 --fallback-echo"') 18534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18535 ;; 18536 esac 18537 18538cfgfile="$ofile" 18539 18540 cat <<__EOF__ >> "$cfgfile" 18541# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18542 18543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18544 18545# Shell to use when invoking shell scripts. 18546SHELL=$lt_SHELL 18547 18548# Whether or not to build shared libraries. 18549build_libtool_libs=$enable_shared 18550 18551# Whether or not to build static libraries. 18552build_old_libs=$enable_static 18553 18554# Whether or not to add -lc for building shared libraries. 18555build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18556 18557# Whether or not to disallow shared libs when runtime libs are static 18558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18559 18560# Whether or not to optimize for fast installation. 18561fast_install=$enable_fast_install 18562 18563# The host system. 18564host_alias=$host_alias 18565host=$host 18566host_os=$host_os 18567 18568# The build system. 18569build_alias=$build_alias 18570build=$build 18571build_os=$build_os 18572 18573# An echo program that does not interpret backslashes. 18574echo=$lt_echo 18575 18576# The archiver. 18577AR=$lt_AR 18578AR_FLAGS=$lt_AR_FLAGS 18579 18580# A C compiler. 18581LTCC=$lt_LTCC 18582 18583# LTCC compiler flags. 18584LTCFLAGS=$lt_LTCFLAGS 18585 18586# A language-specific compiler. 18587CC=$lt_compiler_GCJ 18588 18589# Is the compiler the GNU C compiler? 18590with_gcc=$GCC_GCJ 18591 18592# An ERE matcher. 18593EGREP=$lt_EGREP 18594 18595# The linker used to build libraries. 18596LD=$lt_LD_GCJ 18597 18598# Whether we need hard or soft links. 18599LN_S=$lt_LN_S 18600 18601# A BSD-compatible nm program. 18602NM=$lt_NM 18603 18604# A symbol stripping program 18605STRIP=$lt_STRIP 18606 18607# Used to examine libraries when file_magic_cmd begins "file" 18608MAGIC_CMD=$MAGIC_CMD 18609 18610# Used on cygwin: DLL creation program. 18611DLLTOOL="$DLLTOOL" 18612 18613# Used on cygwin: object dumper. 18614OBJDUMP="$OBJDUMP" 18615 18616# Used on cygwin: assembler. 18617AS="$AS" 18618 18619# The name of the directory that contains temporary libtool files. 18620objdir=$objdir 18621 18622# How to create reloadable object files. 18623reload_flag=$lt_reload_flag 18624reload_cmds=$lt_reload_cmds 18625 18626# How to pass a linker flag through the compiler. 18627wl=$lt_lt_prog_compiler_wl_GCJ 18628 18629# Object file suffix (normally "o"). 18630objext="$ac_objext" 18631 18632# Old archive suffix (normally "a"). 18633libext="$libext" 18634 18635# Shared library suffix (normally ".so"). 18636shrext_cmds='$shrext_cmds' 18637 18638# Executable file suffix (normally ""). 18639exeext="$exeext" 18640 18641# Additional compiler flags for building library objects. 18642pic_flag=$lt_lt_prog_compiler_pic_GCJ 18643pic_mode=$pic_mode 18644 18645# What is the maximum length of a command? 18646max_cmd_len=$lt_cv_sys_max_cmd_len 18647 18648# Does compiler simultaneously support -c and -o options? 18649compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18650 18651# Must we lock files when doing compilation? 18652need_locks=$lt_need_locks 18653 18654# Do we need the lib prefix for modules? 18655need_lib_prefix=$need_lib_prefix 18656 18657# Do we need a version for libraries? 18658need_version=$need_version 18659 18660# Whether dlopen is supported. 18661dlopen_support=$enable_dlopen 18662 18663# Whether dlopen of programs is supported. 18664dlopen_self=$enable_dlopen_self 18665 18666# Whether dlopen of statically linked programs is supported. 18667dlopen_self_static=$enable_dlopen_self_static 18668 18669# Compiler flag to prevent dynamic linking. 18670link_static_flag=$lt_lt_prog_compiler_static_GCJ 18671 18672# Compiler flag to turn off builtin functions. 18673no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18674 18675# Compiler flag to allow reflexive dlopens. 18676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18677 18678# Compiler flag to generate shared objects directly from archives. 18679whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18680 18681# Compiler flag to generate thread-safe objects. 18682thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18683 18684# Library versioning type. 18685version_type=$version_type 18686 18687# Format of library name prefix. 18688libname_spec=$lt_libname_spec 18689 18690# List of archive names. First name is the real one, the rest are links. 18691# The last name is the one that the linker finds with -lNAME. 18692library_names_spec=$lt_library_names_spec 18693 18694# The coded name of the library, if different from the real name. 18695soname_spec=$lt_soname_spec 18696 18697# Commands used to build and install an old-style archive. 18698RANLIB=$lt_RANLIB 18699old_archive_cmds=$lt_old_archive_cmds_GCJ 18700old_postinstall_cmds=$lt_old_postinstall_cmds 18701old_postuninstall_cmds=$lt_old_postuninstall_cmds 18702 18703# Create an old-style archive from a shared archive. 18704old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18705 18706# Create a temporary old-style archive to link instead of a shared archive. 18707old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18708 18709# Commands used to build and install a shared archive. 18710archive_cmds=$lt_archive_cmds_GCJ 18711archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18712postinstall_cmds=$lt_postinstall_cmds 18713postuninstall_cmds=$lt_postuninstall_cmds 18714 18715# Commands used to build a loadable module (assumed same as above if empty) 18716module_cmds=$lt_module_cmds_GCJ 18717module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18718 18719# Commands to strip libraries. 18720old_striplib=$lt_old_striplib 18721striplib=$lt_striplib 18722 18723# Dependencies to place before the objects being linked to create a 18724# shared library. 18725predep_objects=$lt_predep_objects_GCJ 18726 18727# Dependencies to place after the objects being linked to create a 18728# shared library. 18729postdep_objects=$lt_postdep_objects_GCJ 18730 18731# Dependencies to place before the objects being linked to create a 18732# shared library. 18733predeps=$lt_predeps_GCJ 18734 18735# Dependencies to place after the objects being linked to create a 18736# shared library. 18737postdeps=$lt_postdeps_GCJ 18738 18739# The library search path used internally by the compiler when linking 18740# a shared library. 18741compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18742 18743# Method to check whether dependent libraries are shared objects. 18744deplibs_check_method=$lt_deplibs_check_method 18745 18746# Command to use when deplibs_check_method == file_magic. 18747file_magic_cmd=$lt_file_magic_cmd 18748 18749# Flag that allows shared libraries with undefined symbols to be built. 18750allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18751 18752# Flag that forces no undefined symbols. 18753no_undefined_flag=$lt_no_undefined_flag_GCJ 18754 18755# Commands used to finish a libtool library installation in a directory. 18756finish_cmds=$lt_finish_cmds 18757 18758# Same as above, but a single script fragment to be evaled but not shown. 18759finish_eval=$lt_finish_eval 18760 18761# Take the output of nm and produce a listing of raw symbols and C names. 18762global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18763 18764# Transform the output of nm in a proper C declaration 18765global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18766 18767# Transform the output of nm in a C name address pair 18768global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18769 18770# This is the shared library runtime path variable. 18771runpath_var=$runpath_var 18772 18773# This is the shared library path variable. 18774shlibpath_var=$shlibpath_var 18775 18776# Is shlibpath searched before the hard-coded library search path? 18777shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18778 18779# How to hardcode a shared library path into an executable. 18780hardcode_action=$hardcode_action_GCJ 18781 18782# Whether we should hardcode library paths into libraries. 18783hardcode_into_libs=$hardcode_into_libs 18784 18785# Flag to hardcode \$libdir into a binary during linking. 18786# This must work even if \$libdir does not exist. 18787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18788 18789# If ld is used when linking, flag to hardcode \$libdir into 18790# a binary during linking. This must work even if \$libdir does 18791# not exist. 18792hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18793 18794# Whether we need a single -rpath flag with a separated argument. 18795hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18796 18797# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18798# resulting binary. 18799hardcode_direct=$hardcode_direct_GCJ 18800 18801# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18802# resulting binary. 18803hardcode_minus_L=$hardcode_minus_L_GCJ 18804 18805# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18806# the resulting binary. 18807hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18808 18809# Set to yes if building a shared library automatically hardcodes DIR into the library 18810# and all subsequent libraries and executables linked against it. 18811hardcode_automatic=$hardcode_automatic_GCJ 18812 18813# Variables whose values should be saved in libtool wrapper scripts and 18814# restored at relink time. 18815variables_saved_for_relink="$variables_saved_for_relink" 18816 18817# Whether libtool must link a program against all its dependency libraries. 18818link_all_deplibs=$link_all_deplibs_GCJ 18819 18820# Compile-time system search path for libraries 18821sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18822 18823# Run-time system search path for libraries 18824sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18825 18826# Fix the shell variable \$srcfile for the compiler. 18827fix_srcfile_path=$lt_fix_srcfile_path 18828 18829# Set to yes if exported symbols are required. 18830always_export_symbols=$always_export_symbols_GCJ 18831 18832# The commands to list exported symbols. 18833export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18834 18835# The commands to extract the exported symbol list from a shared archive. 18836extract_expsyms_cmds=$lt_extract_expsyms_cmds 18837 18838# Symbols that should not be listed in the preloaded symbols. 18839exclude_expsyms=$lt_exclude_expsyms_GCJ 18840 18841# Symbols that must always be exported. 18842include_expsyms=$lt_include_expsyms_GCJ 18843 18844# ### END LIBTOOL TAG CONFIG: $tagname 18845 18846__EOF__ 18847 18848 18849else 18850 # If there is no Makefile yet, we rely on a make rule to execute 18851 # `config.status --recheck' to rerun these tests and create the 18852 # libtool script then. 18853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18854 if test -f "$ltmain_in"; then 18855 test -f Makefile && make "$ltmain" 18856 fi 18857fi 18858 18859 18860ac_ext=c 18861ac_cpp='$CPP $CPPFLAGS' 18862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18864ac_compiler_gnu=$ac_cv_c_compiler_gnu 18865 18866CC="$lt_save_CC" 18867 18868 else 18869 tagname="" 18870 fi 18871 ;; 18872 18873 RC) 18874 18875 18876# Source file extension for RC test sources. 18877ac_ext=rc 18878 18879# Object file extension for compiled RC test sources. 18880objext=o 18881objext_RC=$objext 18882 18883# Code to be used in simple compile tests 18884lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18885 18886# Code to be used in simple link tests 18887lt_simple_link_test_code="$lt_simple_compile_test_code" 18888 18889# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18890 18891# If no C compiler was specified, use CC. 18892LTCC=${LTCC-"$CC"} 18893 18894# If no C compiler flags were specified, use CFLAGS. 18895LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18896 18897# Allow CC to be a program name with arguments. 18898compiler=$CC 18899 18900 18901# save warnings/boilerplate of simple test code 18902ac_outfile=conftest.$ac_objext 18903echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18905_lt_compiler_boilerplate=`cat conftest.err` 18906$rm conftest* 18907 18908ac_outfile=conftest.$ac_objext 18909echo "$lt_simple_link_test_code" >conftest.$ac_ext 18910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18911_lt_linker_boilerplate=`cat conftest.err` 18912$rm conftest* 18913 18914 18915# Allow CC to be a program name with arguments. 18916lt_save_CC="$CC" 18917CC=${RC-"windres"} 18918compiler=$CC 18919compiler_RC=$CC 18920for cc_temp in $compiler""; do 18921 case $cc_temp in 18922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18924 \-*) ;; 18925 *) break;; 18926 esac 18927done 18928cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18929 18930lt_cv_prog_compiler_c_o_RC=yes 18931 18932# The else clause should only fire when bootstrapping the 18933# libtool distribution, otherwise you forgot to ship ltmain.sh 18934# with your package, and you will get complaints that there are 18935# no rules to generate ltmain.sh. 18936if test -f "$ltmain"; then 18937 # See if we are running on zsh, and set the options which allow our commands through 18938 # without removal of \ escapes. 18939 if test -n "${ZSH_VERSION+set}" ; then 18940 setopt NO_GLOB_SUBST 18941 fi 18942 # Now quote all the things that may contain metacharacters while being 18943 # careful not to overquote the AC_SUBSTed values. We take copies of the 18944 # variables and quote the copies for generation of the libtool script. 18945 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18946 SED SHELL STRIP \ 18947 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18948 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18949 deplibs_check_method reload_flag reload_cmds need_locks \ 18950 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18951 lt_cv_sys_global_symbol_to_c_name_address \ 18952 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18953 old_postinstall_cmds old_postuninstall_cmds \ 18954 compiler_RC \ 18955 CC_RC \ 18956 LD_RC \ 18957 lt_prog_compiler_wl_RC \ 18958 lt_prog_compiler_pic_RC \ 18959 lt_prog_compiler_static_RC \ 18960 lt_prog_compiler_no_builtin_flag_RC \ 18961 export_dynamic_flag_spec_RC \ 18962 thread_safe_flag_spec_RC \ 18963 whole_archive_flag_spec_RC \ 18964 enable_shared_with_static_runtimes_RC \ 18965 old_archive_cmds_RC \ 18966 old_archive_from_new_cmds_RC \ 18967 predep_objects_RC \ 18968 postdep_objects_RC \ 18969 predeps_RC \ 18970 postdeps_RC \ 18971 compiler_lib_search_path_RC \ 18972 archive_cmds_RC \ 18973 archive_expsym_cmds_RC \ 18974 postinstall_cmds_RC \ 18975 postuninstall_cmds_RC \ 18976 old_archive_from_expsyms_cmds_RC \ 18977 allow_undefined_flag_RC \ 18978 no_undefined_flag_RC \ 18979 export_symbols_cmds_RC \ 18980 hardcode_libdir_flag_spec_RC \ 18981 hardcode_libdir_flag_spec_ld_RC \ 18982 hardcode_libdir_separator_RC \ 18983 hardcode_automatic_RC \ 18984 module_cmds_RC \ 18985 module_expsym_cmds_RC \ 18986 lt_cv_prog_compiler_c_o_RC \ 18987 fix_srcfile_path_RC \ 18988 exclude_expsyms_RC \ 18989 include_expsyms_RC; do 18990 18991 case $var in 18992 old_archive_cmds_RC | \ 18993 old_archive_from_new_cmds_RC | \ 18994 archive_cmds_RC | \ 18995 archive_expsym_cmds_RC | \ 18996 module_cmds_RC | \ 18997 module_expsym_cmds_RC | \ 18998 old_archive_from_expsyms_cmds_RC | \ 18999 export_symbols_cmds_RC | \ 19000 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19001 postinstall_cmds | postuninstall_cmds | \ 19002 old_postinstall_cmds | old_postuninstall_cmds | \ 19003 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19004 # Double-quote double-evaled strings. 19005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19006 ;; 19007 *) 19008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19009 ;; 19010 esac 19011 done 19012 19013 case $lt_echo in 19014 *'\$0 --fallback-echo"') 19015 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19016 ;; 19017 esac 19018 19019cfgfile="$ofile" 19020 19021 cat <<__EOF__ >> "$cfgfile" 19022# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19023 19024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19025 19026# Shell to use when invoking shell scripts. 19027SHELL=$lt_SHELL 19028 19029# Whether or not to build shared libraries. 19030build_libtool_libs=$enable_shared 19031 19032# Whether or not to build static libraries. 19033build_old_libs=$enable_static 19034 19035# Whether or not to add -lc for building shared libraries. 19036build_libtool_need_lc=$archive_cmds_need_lc_RC 19037 19038# Whether or not to disallow shared libs when runtime libs are static 19039allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19040 19041# Whether or not to optimize for fast installation. 19042fast_install=$enable_fast_install 19043 19044# The host system. 19045host_alias=$host_alias 19046host=$host 19047host_os=$host_os 19048 19049# The build system. 19050build_alias=$build_alias 19051build=$build 19052build_os=$build_os 19053 19054# An echo program that does not interpret backslashes. 19055echo=$lt_echo 19056 19057# The archiver. 19058AR=$lt_AR 19059AR_FLAGS=$lt_AR_FLAGS 19060 19061# A C compiler. 19062LTCC=$lt_LTCC 19063 19064# LTCC compiler flags. 19065LTCFLAGS=$lt_LTCFLAGS 19066 19067# A language-specific compiler. 19068CC=$lt_compiler_RC 19069 19070# Is the compiler the GNU C compiler? 19071with_gcc=$GCC_RC 19072 19073# An ERE matcher. 19074EGREP=$lt_EGREP 19075 19076# The linker used to build libraries. 19077LD=$lt_LD_RC 19078 19079# Whether we need hard or soft links. 19080LN_S=$lt_LN_S 19081 19082# A BSD-compatible nm program. 19083NM=$lt_NM 19084 19085# A symbol stripping program 19086STRIP=$lt_STRIP 19087 19088# Used to examine libraries when file_magic_cmd begins "file" 19089MAGIC_CMD=$MAGIC_CMD 19090 19091# Used on cygwin: DLL creation program. 19092DLLTOOL="$DLLTOOL" 19093 19094# Used on cygwin: object dumper. 19095OBJDUMP="$OBJDUMP" 19096 19097# Used on cygwin: assembler. 19098AS="$AS" 19099 19100# The name of the directory that contains temporary libtool files. 19101objdir=$objdir 19102 19103# How to create reloadable object files. 19104reload_flag=$lt_reload_flag 19105reload_cmds=$lt_reload_cmds 19106 19107# How to pass a linker flag through the compiler. 19108wl=$lt_lt_prog_compiler_wl_RC 19109 19110# Object file suffix (normally "o"). 19111objext="$ac_objext" 19112 19113# Old archive suffix (normally "a"). 19114libext="$libext" 19115 19116# Shared library suffix (normally ".so"). 19117shrext_cmds='$shrext_cmds' 19118 19119# Executable file suffix (normally ""). 19120exeext="$exeext" 19121 19122# Additional compiler flags for building library objects. 19123pic_flag=$lt_lt_prog_compiler_pic_RC 19124pic_mode=$pic_mode 19125 19126# What is the maximum length of a command? 19127max_cmd_len=$lt_cv_sys_max_cmd_len 19128 19129# Does compiler simultaneously support -c and -o options? 19130compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19131 19132# Must we lock files when doing compilation? 19133need_locks=$lt_need_locks 19134 19135# Do we need the lib prefix for modules? 19136need_lib_prefix=$need_lib_prefix 19137 19138# Do we need a version for libraries? 19139need_version=$need_version 19140 19141# Whether dlopen is supported. 19142dlopen_support=$enable_dlopen 19143 19144# Whether dlopen of programs is supported. 19145dlopen_self=$enable_dlopen_self 19146 19147# Whether dlopen of statically linked programs is supported. 19148dlopen_self_static=$enable_dlopen_self_static 19149 19150# Compiler flag to prevent dynamic linking. 19151link_static_flag=$lt_lt_prog_compiler_static_RC 19152 19153# Compiler flag to turn off builtin functions. 19154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19155 19156# Compiler flag to allow reflexive dlopens. 19157export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19158 19159# Compiler flag to generate shared objects directly from archives. 19160whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19161 19162# Compiler flag to generate thread-safe objects. 19163thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19164 19165# Library versioning type. 19166version_type=$version_type 19167 19168# Format of library name prefix. 19169libname_spec=$lt_libname_spec 19170 19171# List of archive names. First name is the real one, the rest are links. 19172# The last name is the one that the linker finds with -lNAME. 19173library_names_spec=$lt_library_names_spec 19174 19175# The coded name of the library, if different from the real name. 19176soname_spec=$lt_soname_spec 19177 19178# Commands used to build and install an old-style archive. 19179RANLIB=$lt_RANLIB 19180old_archive_cmds=$lt_old_archive_cmds_RC 19181old_postinstall_cmds=$lt_old_postinstall_cmds 19182old_postuninstall_cmds=$lt_old_postuninstall_cmds 19183 19184# Create an old-style archive from a shared archive. 19185old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19186 19187# Create a temporary old-style archive to link instead of a shared archive. 19188old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19189 19190# Commands used to build and install a shared archive. 19191archive_cmds=$lt_archive_cmds_RC 19192archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19193postinstall_cmds=$lt_postinstall_cmds 19194postuninstall_cmds=$lt_postuninstall_cmds 19195 19196# Commands used to build a loadable module (assumed same as above if empty) 19197module_cmds=$lt_module_cmds_RC 19198module_expsym_cmds=$lt_module_expsym_cmds_RC 19199 19200# Commands to strip libraries. 19201old_striplib=$lt_old_striplib 19202striplib=$lt_striplib 19203 19204# Dependencies to place before the objects being linked to create a 19205# shared library. 19206predep_objects=$lt_predep_objects_RC 19207 19208# Dependencies to place after the objects being linked to create a 19209# shared library. 19210postdep_objects=$lt_postdep_objects_RC 19211 19212# Dependencies to place before the objects being linked to create a 19213# shared library. 19214predeps=$lt_predeps_RC 19215 19216# Dependencies to place after the objects being linked to create a 19217# shared library. 19218postdeps=$lt_postdeps_RC 19219 19220# The library search path used internally by the compiler when linking 19221# a shared library. 19222compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19223 19224# Method to check whether dependent libraries are shared objects. 19225deplibs_check_method=$lt_deplibs_check_method 19226 19227# Command to use when deplibs_check_method == file_magic. 19228file_magic_cmd=$lt_file_magic_cmd 19229 19230# Flag that allows shared libraries with undefined symbols to be built. 19231allow_undefined_flag=$lt_allow_undefined_flag_RC 19232 19233# Flag that forces no undefined symbols. 19234no_undefined_flag=$lt_no_undefined_flag_RC 19235 19236# Commands used to finish a libtool library installation in a directory. 19237finish_cmds=$lt_finish_cmds 19238 19239# Same as above, but a single script fragment to be evaled but not shown. 19240finish_eval=$lt_finish_eval 19241 19242# Take the output of nm and produce a listing of raw symbols and C names. 19243global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19244 19245# Transform the output of nm in a proper C declaration 19246global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19247 19248# Transform the output of nm in a C name address pair 19249global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19250 19251# This is the shared library runtime path variable. 19252runpath_var=$runpath_var 19253 19254# This is the shared library path variable. 19255shlibpath_var=$shlibpath_var 19256 19257# Is shlibpath searched before the hard-coded library search path? 19258shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19259 19260# How to hardcode a shared library path into an executable. 19261hardcode_action=$hardcode_action_RC 19262 19263# Whether we should hardcode library paths into libraries. 19264hardcode_into_libs=$hardcode_into_libs 19265 19266# Flag to hardcode \$libdir into a binary during linking. 19267# This must work even if \$libdir does not exist. 19268hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19269 19270# If ld is used when linking, flag to hardcode \$libdir into 19271# a binary during linking. This must work even if \$libdir does 19272# not exist. 19273hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19274 19275# Whether we need a single -rpath flag with a separated argument. 19276hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19277 19278# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19279# resulting binary. 19280hardcode_direct=$hardcode_direct_RC 19281 19282# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19283# resulting binary. 19284hardcode_minus_L=$hardcode_minus_L_RC 19285 19286# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19287# the resulting binary. 19288hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19289 19290# Set to yes if building a shared library automatically hardcodes DIR into the library 19291# and all subsequent libraries and executables linked against it. 19292hardcode_automatic=$hardcode_automatic_RC 19293 19294# Variables whose values should be saved in libtool wrapper scripts and 19295# restored at relink time. 19296variables_saved_for_relink="$variables_saved_for_relink" 19297 19298# Whether libtool must link a program against all its dependency libraries. 19299link_all_deplibs=$link_all_deplibs_RC 19300 19301# Compile-time system search path for libraries 19302sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19303 19304# Run-time system search path for libraries 19305sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19306 19307# Fix the shell variable \$srcfile for the compiler. 19308fix_srcfile_path=$lt_fix_srcfile_path 19309 19310# Set to yes if exported symbols are required. 19311always_export_symbols=$always_export_symbols_RC 19312 19313# The commands to list exported symbols. 19314export_symbols_cmds=$lt_export_symbols_cmds_RC 19315 19316# The commands to extract the exported symbol list from a shared archive. 19317extract_expsyms_cmds=$lt_extract_expsyms_cmds 19318 19319# Symbols that should not be listed in the preloaded symbols. 19320exclude_expsyms=$lt_exclude_expsyms_RC 19321 19322# Symbols that must always be exported. 19323include_expsyms=$lt_include_expsyms_RC 19324 19325# ### END LIBTOOL TAG CONFIG: $tagname 19326 19327__EOF__ 19328 19329 19330else 19331 # If there is no Makefile yet, we rely on a make rule to execute 19332 # `config.status --recheck' to rerun these tests and create the 19333 # libtool script then. 19334 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19335 if test -f "$ltmain_in"; then 19336 test -f Makefile && make "$ltmain" 19337 fi 19338fi 19339 19340 19341ac_ext=c 19342ac_cpp='$CPP $CPPFLAGS' 19343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19345ac_compiler_gnu=$ac_cv_c_compiler_gnu 19346 19347CC="$lt_save_CC" 19348 19349 ;; 19350 19351 *) 19352 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19353echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19354 { (exit 1); exit 1; }; } 19355 ;; 19356 esac 19357 19358 # Append the new tag name to the list of available tags. 19359 if test -n "$tagname" ; then 19360 available_tags="$available_tags $tagname" 19361 fi 19362 fi 19363 done 19364 IFS="$lt_save_ifs" 19365 19366 # Now substitute the updated list of available tags. 19367 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19368 mv "${ofile}T" "$ofile" 19369 chmod +x "$ofile" 19370 else 19371 rm -f "${ofile}T" 19372 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19373echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19374 { (exit 1); exit 1; }; } 19375 fi 19376fi 19377 19378 19379 19380# This can be used to rebuild libtool when needed 19381LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19382 19383# Always use our own libtool. 19384LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19385 19386# Prevent multiple expansion 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407ac_ext=c 19408ac_cpp='$CPP $CPPFLAGS' 19409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19411ac_compiler_gnu=$ac_cv_c_compiler_gnu 19412if test -n "$ac_tool_prefix"; then 19413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19414set dummy ${ac_tool_prefix}gcc; ac_word=$2 19415{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19417if test "${ac_cv_prog_CC+set}" = set; then 19418 echo $ECHO_N "(cached) $ECHO_C" >&6 19419else 19420 if test -n "$CC"; then 19421 ac_cv_prog_CC="$CC" # Let the user override the test. 19422else 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 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19432 break 2 19433 fi 19434done 19435done 19436IFS=$as_save_IFS 19437 19438fi 19439fi 19440CC=$ac_cv_prog_CC 19441if test -n "$CC"; then 19442 { echo "$as_me:$LINENO: result: $CC" >&5 19443echo "${ECHO_T}$CC" >&6; } 19444else 19445 { echo "$as_me:$LINENO: result: no" >&5 19446echo "${ECHO_T}no" >&6; } 19447fi 19448 19449 19450fi 19451if test -z "$ac_cv_prog_CC"; then 19452 ac_ct_CC=$CC 19453 # Extract the first word of "gcc", so it can be a program name with args. 19454set dummy gcc; ac_word=$2 19455{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19458 echo $ECHO_N "(cached) $ECHO_C" >&6 19459else 19460 if test -n "$ac_ct_CC"; then 19461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19462else 19463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19464for as_dir in $PATH 19465do 19466 IFS=$as_save_IFS 19467 test -z "$as_dir" && as_dir=. 19468 for ac_exec_ext in '' $ac_executable_extensions; do 19469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19470 ac_cv_prog_ac_ct_CC="gcc" 19471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19472 break 2 19473 fi 19474done 19475done 19476IFS=$as_save_IFS 19477 19478fi 19479fi 19480ac_ct_CC=$ac_cv_prog_ac_ct_CC 19481if test -n "$ac_ct_CC"; then 19482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19483echo "${ECHO_T}$ac_ct_CC" >&6; } 19484else 19485 { echo "$as_me:$LINENO: result: no" >&5 19486echo "${ECHO_T}no" >&6; } 19487fi 19488 19489 if test "x$ac_ct_CC" = x; then 19490 CC="" 19491 else 19492 case $cross_compiling:$ac_tool_warned in 19493yes:) 19494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19495whose name does not start with the host triplet. If you think this 19496configuration is useful to you, please write to autoconf@gnu.org." >&5 19497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19498whose name does not start with the host triplet. If you think this 19499configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19500ac_tool_warned=yes ;; 19501esac 19502 CC=$ac_ct_CC 19503 fi 19504else 19505 CC="$ac_cv_prog_CC" 19506fi 19507 19508if test -z "$CC"; then 19509 if test -n "$ac_tool_prefix"; then 19510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19511set dummy ${ac_tool_prefix}cc; ac_word=$2 19512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19514if test "${ac_cv_prog_CC+set}" = set; then 19515 echo $ECHO_N "(cached) $ECHO_C" >&6 19516else 19517 if test -n "$CC"; then 19518 ac_cv_prog_CC="$CC" # Let the user override the test. 19519else 19520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19521for as_dir in $PATH 19522do 19523 IFS=$as_save_IFS 19524 test -z "$as_dir" && as_dir=. 19525 for ac_exec_ext in '' $ac_executable_extensions; do 19526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19527 ac_cv_prog_CC="${ac_tool_prefix}cc" 19528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19529 break 2 19530 fi 19531done 19532done 19533IFS=$as_save_IFS 19534 19535fi 19536fi 19537CC=$ac_cv_prog_CC 19538if test -n "$CC"; then 19539 { echo "$as_me:$LINENO: result: $CC" >&5 19540echo "${ECHO_T}$CC" >&6; } 19541else 19542 { echo "$as_me:$LINENO: result: no" >&5 19543echo "${ECHO_T}no" >&6; } 19544fi 19545 19546 19547 fi 19548fi 19549if test -z "$CC"; then 19550 # Extract the first word of "cc", so it can be a program name with args. 19551set dummy cc; ac_word=$2 19552{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19554if test "${ac_cv_prog_CC+set}" = set; then 19555 echo $ECHO_N "(cached) $ECHO_C" >&6 19556else 19557 if test -n "$CC"; then 19558 ac_cv_prog_CC="$CC" # Let the user override the test. 19559else 19560 ac_prog_rejected=no 19561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19562for as_dir in $PATH 19563do 19564 IFS=$as_save_IFS 19565 test -z "$as_dir" && as_dir=. 19566 for ac_exec_ext in '' $ac_executable_extensions; do 19567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19569 ac_prog_rejected=yes 19570 continue 19571 fi 19572 ac_cv_prog_CC="cc" 19573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19574 break 2 19575 fi 19576done 19577done 19578IFS=$as_save_IFS 19579 19580if test $ac_prog_rejected = yes; then 19581 # We found a bogon in the path, so make sure we never use it. 19582 set dummy $ac_cv_prog_CC 19583 shift 19584 if test $# != 0; then 19585 # We chose a different compiler from the bogus one. 19586 # However, it has the same basename, so the bogon will be chosen 19587 # first if we set CC to just the basename; use the full file name. 19588 shift 19589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19590 fi 19591fi 19592fi 19593fi 19594CC=$ac_cv_prog_CC 19595if test -n "$CC"; then 19596 { echo "$as_me:$LINENO: result: $CC" >&5 19597echo "${ECHO_T}$CC" >&6; } 19598else 19599 { echo "$as_me:$LINENO: result: no" >&5 19600echo "${ECHO_T}no" >&6; } 19601fi 19602 19603 19604fi 19605if test -z "$CC"; then 19606 if test -n "$ac_tool_prefix"; then 19607 for ac_prog in cl.exe 19608 do 19609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19610set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19613if test "${ac_cv_prog_CC+set}" = set; then 19614 echo $ECHO_N "(cached) $ECHO_C" >&6 19615else 19616 if test -n "$CC"; then 19617 ac_cv_prog_CC="$CC" # Let the user override the test. 19618else 19619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19620for as_dir in $PATH 19621do 19622 IFS=$as_save_IFS 19623 test -z "$as_dir" && as_dir=. 19624 for ac_exec_ext in '' $ac_executable_extensions; do 19625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19628 break 2 19629 fi 19630done 19631done 19632IFS=$as_save_IFS 19633 19634fi 19635fi 19636CC=$ac_cv_prog_CC 19637if test -n "$CC"; then 19638 { echo "$as_me:$LINENO: result: $CC" >&5 19639echo "${ECHO_T}$CC" >&6; } 19640else 19641 { echo "$as_me:$LINENO: result: no" >&5 19642echo "${ECHO_T}no" >&6; } 19643fi 19644 19645 19646 test -n "$CC" && break 19647 done 19648fi 19649if test -z "$CC"; then 19650 ac_ct_CC=$CC 19651 for ac_prog in cl.exe 19652do 19653 # Extract the first word of "$ac_prog", so it can be a program name with args. 19654set dummy $ac_prog; ac_word=$2 19655{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19658 echo $ECHO_N "(cached) $ECHO_C" >&6 19659else 19660 if test -n "$ac_ct_CC"; then 19661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19662else 19663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19664for as_dir in $PATH 19665do 19666 IFS=$as_save_IFS 19667 test -z "$as_dir" && as_dir=. 19668 for ac_exec_ext in '' $ac_executable_extensions; do 19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19670 ac_cv_prog_ac_ct_CC="$ac_prog" 19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19672 break 2 19673 fi 19674done 19675done 19676IFS=$as_save_IFS 19677 19678fi 19679fi 19680ac_ct_CC=$ac_cv_prog_ac_ct_CC 19681if test -n "$ac_ct_CC"; then 19682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19683echo "${ECHO_T}$ac_ct_CC" >&6; } 19684else 19685 { echo "$as_me:$LINENO: result: no" >&5 19686echo "${ECHO_T}no" >&6; } 19687fi 19688 19689 19690 test -n "$ac_ct_CC" && break 19691done 19692 19693 if test "x$ac_ct_CC" = x; then 19694 CC="" 19695 else 19696 case $cross_compiling:$ac_tool_warned in 19697yes:) 19698{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19699whose name does not start with the host triplet. If you think this 19700configuration is useful to you, please write to autoconf@gnu.org." >&5 19701echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19702whose name does not start with the host triplet. If you think this 19703configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19704ac_tool_warned=yes ;; 19705esac 19706 CC=$ac_ct_CC 19707 fi 19708fi 19709 19710fi 19711 19712 19713test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19714See \`config.log' for more details." >&5 19715echo "$as_me: error: no acceptable C compiler found in \$PATH 19716See \`config.log' for more details." >&2;} 19717 { (exit 1); exit 1; }; } 19718 19719# Provide some information about the compiler. 19720echo "$as_me:$LINENO: checking for C compiler version" >&5 19721ac_compiler=`set X $ac_compile; echo $2` 19722{ (ac_try="$ac_compiler --version >&5" 19723case "(($ac_try" in 19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19725 *) ac_try_echo=$ac_try;; 19726esac 19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19728 (eval "$ac_compiler --version >&5") 2>&5 19729 ac_status=$? 19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19731 (exit $ac_status); } 19732{ (ac_try="$ac_compiler -v >&5" 19733case "(($ac_try" in 19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19735 *) ac_try_echo=$ac_try;; 19736esac 19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19738 (eval "$ac_compiler -v >&5") 2>&5 19739 ac_status=$? 19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19741 (exit $ac_status); } 19742{ (ac_try="$ac_compiler -V >&5" 19743case "(($ac_try" in 19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19745 *) ac_try_echo=$ac_try;; 19746esac 19747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19748 (eval "$ac_compiler -V >&5") 2>&5 19749 ac_status=$? 19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19751 (exit $ac_status); } 19752 19753{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19754echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19755if test "${ac_cv_c_compiler_gnu+set}" = set; then 19756 echo $ECHO_N "(cached) $ECHO_C" >&6 19757else 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#ifndef __GNUC__ 19769 choke me 19770#endif 19771 19772 ; 19773 return 0; 19774} 19775_ACEOF 19776rm -f conftest.$ac_objext 19777if { (ac_try="$ac_compile" 19778case "(($ac_try" in 19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19780 *) ac_try_echo=$ac_try;; 19781esac 19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19783 (eval "$ac_compile") 2>conftest.er1 19784 ac_status=$? 19785 grep -v '^ *+' conftest.er1 >conftest.err 19786 rm -f conftest.er1 19787 cat conftest.err >&5 19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19789 (exit $ac_status); } && { 19790 test -z "$ac_c_werror_flag" || 19791 test ! -s conftest.err 19792 } && test -s conftest.$ac_objext; then 19793 ac_compiler_gnu=yes 19794else 19795 echo "$as_me: failed program was:" >&5 19796sed 's/^/| /' conftest.$ac_ext >&5 19797 19798 ac_compiler_gnu=no 19799fi 19800 19801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19802ac_cv_c_compiler_gnu=$ac_compiler_gnu 19803 19804fi 19805{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19806echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19807GCC=`test $ac_compiler_gnu = yes && echo yes` 19808ac_test_CFLAGS=${CFLAGS+set} 19809ac_save_CFLAGS=$CFLAGS 19810{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19811echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19812if test "${ac_cv_prog_cc_g+set}" = set; then 19813 echo $ECHO_N "(cached) $ECHO_C" >&6 19814else 19815 ac_save_c_werror_flag=$ac_c_werror_flag 19816 ac_c_werror_flag=yes 19817 ac_cv_prog_cc_g=no 19818 CFLAGS="-g" 19819 cat >conftest.$ac_ext <<_ACEOF 19820/* confdefs.h. */ 19821_ACEOF 19822cat confdefs.h >>conftest.$ac_ext 19823cat >>conftest.$ac_ext <<_ACEOF 19824/* end confdefs.h. */ 19825 19826int 19827main () 19828{ 19829 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834rm -f conftest.$ac_objext 19835if { (ac_try="$ac_compile" 19836case "(($ac_try" in 19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19838 *) ac_try_echo=$ac_try;; 19839esac 19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19841 (eval "$ac_compile") 2>conftest.er1 19842 ac_status=$? 19843 grep -v '^ *+' conftest.er1 >conftest.err 19844 rm -f conftest.er1 19845 cat conftest.err >&5 19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19847 (exit $ac_status); } && { 19848 test -z "$ac_c_werror_flag" || 19849 test ! -s conftest.err 19850 } && test -s conftest.$ac_objext; then 19851 ac_cv_prog_cc_g=yes 19852else 19853 echo "$as_me: failed program was:" >&5 19854sed 's/^/| /' conftest.$ac_ext >&5 19855 19856 CFLAGS="" 19857 cat >conftest.$ac_ext <<_ACEOF 19858/* confdefs.h. */ 19859_ACEOF 19860cat confdefs.h >>conftest.$ac_ext 19861cat >>conftest.$ac_ext <<_ACEOF 19862/* end confdefs.h. */ 19863 19864int 19865main () 19866{ 19867 19868 ; 19869 return 0; 19870} 19871_ACEOF 19872rm -f conftest.$ac_objext 19873if { (ac_try="$ac_compile" 19874case "(($ac_try" in 19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19876 *) ac_try_echo=$ac_try;; 19877esac 19878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19879 (eval "$ac_compile") 2>conftest.er1 19880 ac_status=$? 19881 grep -v '^ *+' conftest.er1 >conftest.err 19882 rm -f conftest.er1 19883 cat conftest.err >&5 19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19885 (exit $ac_status); } && { 19886 test -z "$ac_c_werror_flag" || 19887 test ! -s conftest.err 19888 } && test -s conftest.$ac_objext; then 19889 : 19890else 19891 echo "$as_me: failed program was:" >&5 19892sed 's/^/| /' conftest.$ac_ext >&5 19893 19894 ac_c_werror_flag=$ac_save_c_werror_flag 19895 CFLAGS="-g" 19896 cat >conftest.$ac_ext <<_ACEOF 19897/* confdefs.h. */ 19898_ACEOF 19899cat confdefs.h >>conftest.$ac_ext 19900cat >>conftest.$ac_ext <<_ACEOF 19901/* end confdefs.h. */ 19902 19903int 19904main () 19905{ 19906 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911rm -f conftest.$ac_objext 19912if { (ac_try="$ac_compile" 19913case "(($ac_try" in 19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19915 *) ac_try_echo=$ac_try;; 19916esac 19917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19918 (eval "$ac_compile") 2>conftest.er1 19919 ac_status=$? 19920 grep -v '^ *+' conftest.er1 >conftest.err 19921 rm -f conftest.er1 19922 cat conftest.err >&5 19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19924 (exit $ac_status); } && { 19925 test -z "$ac_c_werror_flag" || 19926 test ! -s conftest.err 19927 } && test -s conftest.$ac_objext; then 19928 ac_cv_prog_cc_g=yes 19929else 19930 echo "$as_me: failed program was:" >&5 19931sed 's/^/| /' conftest.$ac_ext >&5 19932 19933 19934fi 19935 19936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19937fi 19938 19939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19940fi 19941 19942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19943 ac_c_werror_flag=$ac_save_c_werror_flag 19944fi 19945{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19946echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19947if test "$ac_test_CFLAGS" = set; then 19948 CFLAGS=$ac_save_CFLAGS 19949elif test $ac_cv_prog_cc_g = yes; then 19950 if test "$GCC" = yes; then 19951 CFLAGS="-g -O2" 19952 else 19953 CFLAGS="-g" 19954 fi 19955else 19956 if test "$GCC" = yes; then 19957 CFLAGS="-O2" 19958 else 19959 CFLAGS= 19960 fi 19961fi 19962{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19963echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19964if test "${ac_cv_prog_cc_c89+set}" = set; then 19965 echo $ECHO_N "(cached) $ECHO_C" >&6 19966else 19967 ac_cv_prog_cc_c89=no 19968ac_save_CC=$CC 19969cat >conftest.$ac_ext <<_ACEOF 19970/* confdefs.h. */ 19971_ACEOF 19972cat confdefs.h >>conftest.$ac_ext 19973cat >>conftest.$ac_ext <<_ACEOF 19974/* end confdefs.h. */ 19975#include <stdarg.h> 19976#include <stdio.h> 19977#include <sys/types.h> 19978#include <sys/stat.h> 19979/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19980struct buf { int x; }; 19981FILE * (*rcsopen) (struct buf *, struct stat *, int); 19982static char *e (p, i) 19983 char **p; 19984 int i; 19985{ 19986 return p[i]; 19987} 19988static char *f (char * (*g) (char **, int), char **p, ...) 19989{ 19990 char *s; 19991 va_list v; 19992 va_start (v,p); 19993 s = g (p, va_arg (v,int)); 19994 va_end (v); 19995 return s; 19996} 19997 19998/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19999 function prototypes and stuff, but not '\xHH' hex character constants. 20000 These don't provoke an error unfortunately, instead are silently treated 20001 as 'x'. The following induces an error, until -std is added to get 20002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20003 array size at least. It's necessary to write '\x00'==0 to get something 20004 that's true only with -std. */ 20005int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20006 20007/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20008 inside strings and character constants. */ 20009#define FOO(x) 'x' 20010int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20011 20012int test (int i, double x); 20013struct s1 {int (*f) (int a);}; 20014struct s2 {int (*f) (double a);}; 20015int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20016int argc; 20017char **argv; 20018int 20019main () 20020{ 20021return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20022 ; 20023 return 0; 20024} 20025_ACEOF 20026for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20028do 20029 CC="$ac_save_CC $ac_arg" 20030 rm -f conftest.$ac_objext 20031if { (ac_try="$ac_compile" 20032case "(($ac_try" in 20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20034 *) ac_try_echo=$ac_try;; 20035esac 20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20037 (eval "$ac_compile") 2>conftest.er1 20038 ac_status=$? 20039 grep -v '^ *+' conftest.er1 >conftest.err 20040 rm -f conftest.er1 20041 cat conftest.err >&5 20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20043 (exit $ac_status); } && { 20044 test -z "$ac_c_werror_flag" || 20045 test ! -s conftest.err 20046 } && test -s conftest.$ac_objext; then 20047 ac_cv_prog_cc_c89=$ac_arg 20048else 20049 echo "$as_me: failed program was:" >&5 20050sed 's/^/| /' conftest.$ac_ext >&5 20051 20052 20053fi 20054 20055rm -f core conftest.err conftest.$ac_objext 20056 test "x$ac_cv_prog_cc_c89" != "xno" && break 20057done 20058rm -f conftest.$ac_ext 20059CC=$ac_save_CC 20060 20061fi 20062# AC_CACHE_VAL 20063case "x$ac_cv_prog_cc_c89" in 20064 x) 20065 { echo "$as_me:$LINENO: result: none needed" >&5 20066echo "${ECHO_T}none needed" >&6; } ;; 20067 xno) 20068 { echo "$as_me:$LINENO: result: unsupported" >&5 20069echo "${ECHO_T}unsupported" >&6; } ;; 20070 *) 20071 CC="$CC $ac_cv_prog_cc_c89" 20072 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20073echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20074esac 20075 20076 20077ac_ext=c 20078ac_cpp='$CPP $CPPFLAGS' 20079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20081ac_compiler_gnu=$ac_cv_c_compiler_gnu 20082 20083depcc="$CC" am_compiler_list= 20084 20085{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20086echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20087if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20088 echo $ECHO_N "(cached) $ECHO_C" >&6 20089else 20090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20091 # We make a subdir and do the tests there. Otherwise we can end up 20092 # making bogus files that we don't know about and never remove. For 20093 # instance it was reported that on HP-UX the gcc test will end up 20094 # making a dummy file named `D' -- because `-MD' means `put the output 20095 # in D'. 20096 mkdir conftest.dir 20097 # Copy depcomp to subdir because otherwise we won't find it if we're 20098 # using a relative directory. 20099 cp "$am_depcomp" conftest.dir 20100 cd conftest.dir 20101 # We will build objects and dependencies in a subdirectory because 20102 # it helps to detect inapplicable dependency modes. For instance 20103 # both Tru64's cc and ICC support -MD to output dependencies as a 20104 # side effect of compilation, but ICC will put the dependencies in 20105 # the current directory while Tru64 will put them in the object 20106 # directory. 20107 mkdir sub 20108 20109 am_cv_CC_dependencies_compiler_type=none 20110 if test "$am_compiler_list" = ""; then 20111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20112 fi 20113 for depmode in $am_compiler_list; do 20114 # Setup a source with many dependencies, because some compilers 20115 # like to wrap large dependency lists on column 80 (with \), and 20116 # we should not choose a depcomp mode which is confused by this. 20117 # 20118 # We need to recreate these files for each test, as the compiler may 20119 # overwrite some of them when testing with obscure command lines. 20120 # This happens at least with the AIX C compiler. 20121 : > sub/conftest.c 20122 for i in 1 2 3 4 5 6; do 20123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20125 # Solaris 8's {/usr,}/bin/sh. 20126 touch sub/conftst$i.h 20127 done 20128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20129 20130 case $depmode in 20131 nosideeffect) 20132 # after this tag, mechanisms are not by side-effect, so they'll 20133 # only be used when explicitly requested 20134 if test "x$enable_dependency_tracking" = xyes; then 20135 continue 20136 else 20137 break 20138 fi 20139 ;; 20140 none) break ;; 20141 esac 20142 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20143 # mode. It turns out that the SunPro C++ compiler does not properly 20144 # handle `-M -o', and we need to detect this. 20145 if depmode=$depmode \ 20146 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20148 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20149 >/dev/null 2>conftest.err && 20150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20154 # icc doesn't choke on unknown options, it will just issue warnings 20155 # or remarks (even with -Werror). So we grep stderr for any message 20156 # that says an option was ignored or not supported. 20157 # When given -MP, icc 7.0 and 7.1 complain thusly: 20158 # icc: Command line warning: ignoring option '-M'; no argument required 20159 # The diagnosis changed in icc 8.0: 20160 # icc: Command line remark: option '-MP' not supported 20161 if (grep 'ignoring option' conftest.err || 20162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20163 am_cv_CC_dependencies_compiler_type=$depmode 20164 break 20165 fi 20166 fi 20167 done 20168 20169 cd .. 20170 rm -rf conftest.dir 20171else 20172 am_cv_CC_dependencies_compiler_type=none 20173fi 20174 20175fi 20176{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20177echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20179 20180 if 20181 test "x$enable_dependency_tracking" != xno \ 20182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20183 am__fastdepCC_TRUE= 20184 am__fastdepCC_FALSE='#' 20185else 20186 am__fastdepCC_TRUE='#' 20187 am__fastdepCC_FALSE= 20188fi 20189 20190 20191 20192 20193 20194 20195 20196 20197case $host_os in 20198 linux*) 20199 IS_LINUX="yes" 20200 # check whether struct kbd_repeat has the 'period' field. 20201 # on kernels < 2.5.42 it's called 'rate' instead. 20202 cat >conftest.$ac_ext <<_ACEOF 20203/* confdefs.h. */ 20204_ACEOF 20205cat confdefs.h >>conftest.$ac_ext 20206cat >>conftest.$ac_ext <<_ACEOF 20207/* end confdefs.h. */ 20208 20209#include <linux/kd.h> 20210#ifdef __sparc__ 20211#include <asm/param.h> 20212#include <asm/kbio.h> 20213#endif 20214 20215int 20216main () 20217{ 20218 20219int main () { 20220 struct kbd_repeat k; 20221 k.period = 0; 20222 return 0; 20223} 20224 ; 20225 return 0; 20226} 20227_ACEOF 20228rm -f conftest.$ac_objext 20229if { (ac_try="$ac_compile" 20230case "(($ac_try" in 20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20232 *) ac_try_echo=$ac_try;; 20233esac 20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20235 (eval "$ac_compile") 2>conftest.er1 20236 ac_status=$? 20237 grep -v '^ *+' conftest.er1 >conftest.err 20238 rm -f conftest.er1 20239 cat conftest.err >&5 20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 (exit $ac_status); } && { 20242 test -z "$ac_c_werror_flag" || 20243 test ! -s conftest.err 20244 } && test -s conftest.$ac_objext; then 20245 period_field="period" 20246else 20247 echo "$as_me: failed program was:" >&5 20248sed 's/^/| /' conftest.$ac_ext >&5 20249 20250 period_field="rate" 20251fi 20252 20253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20254 20255cat >>confdefs.h <<_ACEOF 20256#define LNX_KBD_PERIOD_NAME $period_field 20257_ACEOF 20258 20259 ;; 20260 20261 freebsd* | kfreebsd-gnu* | netbsd* | openbsd*) 20262 IS_BSD="yes" 20263 ;; 20264 20265 solaris*) 20266 IS_SOLARIS="yes" 20267 ;; 20268 20269 gnu*) 20270 IS_HURD="yes" 20271 ;; 20272 20273 *) 20274 { { echo "$as_me:$LINENO: error: Your operating system is not supported by the kbd driver. 20275 Contact xorg@lists.freedesktop.org if you are interested in 20276 porting it." >&5 20277echo "$as_me: error: Your operating system is not supported by the kbd driver. 20278 Contact xorg@lists.freedesktop.org if you are interested in 20279 porting it." >&2;} 20280 { (exit 1); exit 1; }; } 20281 ;; 20282esac 20283 if test "x$IS_LINUX" = xyes; then 20284 LINUX_TRUE= 20285 LINUX_FALSE='#' 20286else 20287 LINUX_TRUE='#' 20288 LINUX_FALSE= 20289fi 20290 20291 if test "x$IS_BSD" = xyes; then 20292 BSD_TRUE= 20293 BSD_FALSE='#' 20294else 20295 BSD_TRUE='#' 20296 BSD_FALSE= 20297fi 20298 20299 if test "x$IS_SOLARIS" = xyes; then 20300 SOLARIS_TRUE= 20301 SOLARIS_FALSE='#' 20302else 20303 SOLARIS_TRUE='#' 20304 SOLARIS_FALSE= 20305fi 20306 20307 if test "x$IS_HURD" = xyes; then 20308 HURD_TRUE= 20309 HURD_FALSE='#' 20310else 20311 HURD_TRUE='#' 20312 HURD_FALSE= 20313fi 20314 20315 if test "x$IS_SCO" = xyes; then 20316 SCO_TRUE= 20317 SCO_FALSE='#' 20318else 20319 SCO_TRUE='#' 20320 SCO_FALSE= 20321fi 20322 20323 20324 20325# Check whether --with-xorg-module-dir was given. 20326if test "${with_xorg_module_dir+set}" = set; then 20327 withval=$with_xorg_module_dir; moduledir="$withval" 20328else 20329 moduledir="$libdir/xorg/modules" 20330fi 20331 20332inputdir=${moduledir}/input 20333 20334 20335# Checks for extensions 20336 20337 SAVE_CFLAGS="$CFLAGS" 20338 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20339 cat >conftest.$ac_ext <<_ACEOF 20340/* confdefs.h. */ 20341_ACEOF 20342cat confdefs.h >>conftest.$ac_ext 20343cat >>conftest.$ac_ext <<_ACEOF 20344/* end confdefs.h. */ 20345 20346#include "xorg-server.h" 20347#if !defined RANDR 20348#error RANDR not defined 20349#endif 20350 20351int 20352main () 20353{ 20354 20355 ; 20356 return 0; 20357} 20358_ACEOF 20359rm -f conftest.$ac_objext 20360if { (ac_try="$ac_compile" 20361case "(($ac_try" in 20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20363 *) ac_try_echo=$ac_try;; 20364esac 20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20366 (eval "$ac_compile") 2>conftest.er1 20367 ac_status=$? 20368 grep -v '^ *+' conftest.er1 >conftest.err 20369 rm -f conftest.er1 20370 cat conftest.err >&5 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20372 (exit $ac_status); } && { 20373 test -z "$ac_c_werror_flag" || 20374 test ! -s conftest.err 20375 } && test -s conftest.$ac_objext; then 20376 _EXT_CHECK=yes 20377else 20378 echo "$as_me: failed program was:" >&5 20379sed 's/^/| /' conftest.$ac_ext >&5 20380 20381 _EXT_CHECK=no 20382fi 20383 20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20385 CFLAGS="$SAVE_CFLAGS" 20386 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20387echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 20388 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20389echo "${ECHO_T}$_EXT_CHECK" >&6; } 20390 if test "$_EXT_CHECK" != no; then 20391 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20392 fi 20393 20394 20395 SAVE_CFLAGS="$CFLAGS" 20396 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20397 cat >conftest.$ac_ext <<_ACEOF 20398/* confdefs.h. */ 20399_ACEOF 20400cat confdefs.h >>conftest.$ac_ext 20401cat >>conftest.$ac_ext <<_ACEOF 20402/* end confdefs.h. */ 20403 20404#include "xorg-server.h" 20405#if !defined XINPUT 20406#error XINPUT not defined 20407#endif 20408 20409int 20410main () 20411{ 20412 20413 ; 20414 return 0; 20415} 20416_ACEOF 20417rm -f conftest.$ac_objext 20418if { (ac_try="$ac_compile" 20419case "(($ac_try" in 20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20421 *) ac_try_echo=$ac_try;; 20422esac 20423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20424 (eval "$ac_compile") 2>conftest.er1 20425 ac_status=$? 20426 grep -v '^ *+' conftest.er1 >conftest.err 20427 rm -f conftest.er1 20428 cat conftest.err >&5 20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20430 (exit $ac_status); } && { 20431 test -z "$ac_c_werror_flag" || 20432 test ! -s conftest.err 20433 } && test -s conftest.$ac_objext; then 20434 _EXT_CHECK=yes 20435else 20436 echo "$as_me: failed program was:" >&5 20437sed 's/^/| /' conftest.$ac_ext >&5 20438 20439 _EXT_CHECK=no 20440fi 20441 20442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20443 CFLAGS="$SAVE_CFLAGS" 20444 { echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 20445echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6; } 20446 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20447echo "${ECHO_T}$_EXT_CHECK" >&6; } 20448 if test "$_EXT_CHECK" != no; then 20449 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 20450 fi 20451 20452 20453 SAVE_CFLAGS="$CFLAGS" 20454 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20455 cat >conftest.$ac_ext <<_ACEOF 20456/* confdefs.h. */ 20457_ACEOF 20458cat confdefs.h >>conftest.$ac_ext 20459cat >>conftest.$ac_ext <<_ACEOF 20460/* end confdefs.h. */ 20461 20462#include "xorg-server.h" 20463#if !defined XKB 20464#error XKB not defined 20465#endif 20466 20467int 20468main () 20469{ 20470 20471 ; 20472 return 0; 20473} 20474_ACEOF 20475rm -f conftest.$ac_objext 20476if { (ac_try="$ac_compile" 20477case "(($ac_try" in 20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20479 *) ac_try_echo=$ac_try;; 20480esac 20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20482 (eval "$ac_compile") 2>conftest.er1 20483 ac_status=$? 20484 grep -v '^ *+' conftest.er1 >conftest.err 20485 rm -f conftest.er1 20486 cat conftest.err >&5 20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20488 (exit $ac_status); } && { 20489 test -z "$ac_c_werror_flag" || 20490 test ! -s conftest.err 20491 } && test -s conftest.$ac_objext; then 20492 _EXT_CHECK=yes 20493else 20494 echo "$as_me: failed program was:" >&5 20495sed 's/^/| /' conftest.$ac_ext >&5 20496 20497 _EXT_CHECK=no 20498fi 20499 20500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20501 CFLAGS="$SAVE_CFLAGS" 20502 { echo "$as_me:$LINENO: checking if XKB is defined" >&5 20503echo $ECHO_N "checking if XKB is defined... $ECHO_C" >&6; } 20504 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20505echo "${ECHO_T}$_EXT_CHECK" >&6; } 20506 if test "$_EXT_CHECK" != no; then 20507 REQUIRED_MODULES="$REQUIRED_MODULES kbproto" 20508 fi 20509 20510 20511# Checks for pkg-config packages 20512 20513 20514if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20515 if test -n "$ac_tool_prefix"; then 20516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20517set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20520if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20521 echo $ECHO_N "(cached) $ECHO_C" >&6 20522else 20523 case $PKG_CONFIG in 20524 [\\/]* | ?:[\\/]*) 20525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20526 ;; 20527 *) 20528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20529for as_dir in $PATH 20530do 20531 IFS=$as_save_IFS 20532 test -z "$as_dir" && as_dir=. 20533 for ac_exec_ext in '' $ac_executable_extensions; do 20534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20537 break 2 20538 fi 20539done 20540done 20541IFS=$as_save_IFS 20542 20543 ;; 20544esac 20545fi 20546PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20547if test -n "$PKG_CONFIG"; then 20548 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20549echo "${ECHO_T}$PKG_CONFIG" >&6; } 20550else 20551 { echo "$as_me:$LINENO: result: no" >&5 20552echo "${ECHO_T}no" >&6; } 20553fi 20554 20555 20556fi 20557if test -z "$ac_cv_path_PKG_CONFIG"; then 20558 ac_pt_PKG_CONFIG=$PKG_CONFIG 20559 # Extract the first word of "pkg-config", so it can be a program name with args. 20560set dummy pkg-config; ac_word=$2 20561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20563if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20564 echo $ECHO_N "(cached) $ECHO_C" >&6 20565else 20566 case $ac_pt_PKG_CONFIG in 20567 [\\/]* | ?:[\\/]*) 20568 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20569 ;; 20570 *) 20571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20572for as_dir in $PATH 20573do 20574 IFS=$as_save_IFS 20575 test -z "$as_dir" && as_dir=. 20576 for ac_exec_ext in '' $ac_executable_extensions; do 20577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20578 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20580 break 2 20581 fi 20582done 20583done 20584IFS=$as_save_IFS 20585 20586 ;; 20587esac 20588fi 20589ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20590if test -n "$ac_pt_PKG_CONFIG"; then 20591 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20592echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20593else 20594 { echo "$as_me:$LINENO: result: no" >&5 20595echo "${ECHO_T}no" >&6; } 20596fi 20597 20598 if test "x$ac_pt_PKG_CONFIG" = x; then 20599 PKG_CONFIG="" 20600 else 20601 case $cross_compiling:$ac_tool_warned in 20602yes:) 20603{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20604whose name does not start with the host triplet. If you think this 20605configuration is useful to you, please write to autoconf@gnu.org." >&5 20606echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20607whose name does not start with the host triplet. If you think this 20608configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20609ac_tool_warned=yes ;; 20610esac 20611 PKG_CONFIG=$ac_pt_PKG_CONFIG 20612 fi 20613else 20614 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20615fi 20616 20617fi 20618if test -n "$PKG_CONFIG"; then 20619 _pkg_min_version=0.9.0 20620 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20621echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20622 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20623 { echo "$as_me:$LINENO: result: yes" >&5 20624echo "${ECHO_T}yes" >&6; } 20625 else 20626 { echo "$as_me:$LINENO: result: no" >&5 20627echo "${ECHO_T}no" >&6; } 20628 PKG_CONFIG="" 20629 fi 20630 20631fi 20632 20633pkg_failed=no 20634{ echo "$as_me:$LINENO: checking for XORG" >&5 20635echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 20636 20637if test -n "$XORG_CFLAGS"; then 20638 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20639 elif test -n "$PKG_CONFIG"; then 20640 if test -n "$PKG_CONFIG" && \ 20641 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5 20642 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5 20643 ac_status=$? 20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20645 (exit $ac_status); }; then 20646 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null` 20647else 20648 pkg_failed=yes 20649fi 20650 else 20651 pkg_failed=untried 20652fi 20653if test -n "$XORG_LIBS"; then 20654 pkg_cv_XORG_LIBS="$XORG_LIBS" 20655 elif test -n "$PKG_CONFIG"; then 20656 if test -n "$PKG_CONFIG" && \ 20657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5 20658 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5 20659 ac_status=$? 20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20661 (exit $ac_status); }; then 20662 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null` 20663else 20664 pkg_failed=yes 20665fi 20666 else 20667 pkg_failed=untried 20668fi 20669 20670 20671 20672if test $pkg_failed = yes; then 20673 20674if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20675 _pkg_short_errors_supported=yes 20676else 20677 _pkg_short_errors_supported=no 20678fi 20679 if test $_pkg_short_errors_supported = yes; then 20680 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1` 20681 else 20682 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1` 20683 fi 20684 # Put the nasty error message in config.log where it belongs 20685 echo "$XORG_PKG_ERRORS" >&5 20686 20687 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met: 20688 20689$XORG_PKG_ERRORS 20690 20691Consider adjusting the PKG_CONFIG_PATH environment variable if you 20692installed software in a non-standard prefix. 20693 20694Alternatively, you may set the environment variables XORG_CFLAGS 20695and XORG_LIBS to avoid the need to call pkg-config. 20696See the pkg-config man page for more details. 20697" >&5 20698echo "$as_me: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met: 20699 20700$XORG_PKG_ERRORS 20701 20702Consider adjusting the PKG_CONFIG_PATH environment variable if you 20703installed software in a non-standard prefix. 20704 20705Alternatively, you may set the environment variables XORG_CFLAGS 20706and XORG_LIBS to avoid the need to call pkg-config. 20707See the pkg-config man page for more details. 20708" >&2;} 20709 { (exit 1); exit 1; }; } 20710elif test $pkg_failed = untried; then 20711 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20712is in your PATH or set the PKG_CONFIG environment variable to the full 20713path to pkg-config. 20714 20715Alternatively, you may set the environment variables XORG_CFLAGS 20716and XORG_LIBS to avoid the need to call pkg-config. 20717See the pkg-config man page for more details. 20718 20719To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20720See \`config.log' for more details." >&5 20721echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20722is in your PATH or set the PKG_CONFIG environment variable to the full 20723path to pkg-config. 20724 20725Alternatively, you may set the environment variables XORG_CFLAGS 20726and XORG_LIBS to avoid the need to call pkg-config. 20727See the pkg-config man page for more details. 20728 20729To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20730See \`config.log' for more details." >&2;} 20731 { (exit 1); exit 1; }; } 20732else 20733 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20734 XORG_LIBS=$pkg_cv_XORG_LIBS 20735 { echo "$as_me:$LINENO: result: yes" >&5 20736echo "${ECHO_T}yes" >&6; } 20737 : 20738fi 20739sdkdir=$(pkg-config --variable=sdkdir xorg-server) 20740 20741CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src' 20742 20743 20744# Checks for libraries. 20745 20746# Checks for header files. 20747{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20748echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20749if test "${ac_cv_header_stdc+set}" = set; then 20750 echo $ECHO_N "(cached) $ECHO_C" >&6 20751else 20752 cat >conftest.$ac_ext <<_ACEOF 20753/* confdefs.h. */ 20754_ACEOF 20755cat confdefs.h >>conftest.$ac_ext 20756cat >>conftest.$ac_ext <<_ACEOF 20757/* end confdefs.h. */ 20758#include <stdlib.h> 20759#include <stdarg.h> 20760#include <string.h> 20761#include <float.h> 20762 20763int 20764main () 20765{ 20766 20767 ; 20768 return 0; 20769} 20770_ACEOF 20771rm -f conftest.$ac_objext 20772if { (ac_try="$ac_compile" 20773case "(($ac_try" in 20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20775 *) ac_try_echo=$ac_try;; 20776esac 20777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20778 (eval "$ac_compile") 2>conftest.er1 20779 ac_status=$? 20780 grep -v '^ *+' conftest.er1 >conftest.err 20781 rm -f conftest.er1 20782 cat conftest.err >&5 20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20784 (exit $ac_status); } && { 20785 test -z "$ac_c_werror_flag" || 20786 test ! -s conftest.err 20787 } && test -s conftest.$ac_objext; then 20788 ac_cv_header_stdc=yes 20789else 20790 echo "$as_me: failed program was:" >&5 20791sed 's/^/| /' conftest.$ac_ext >&5 20792 20793 ac_cv_header_stdc=no 20794fi 20795 20796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20797 20798if test $ac_cv_header_stdc = yes; then 20799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20800 cat >conftest.$ac_ext <<_ACEOF 20801/* confdefs.h. */ 20802_ACEOF 20803cat confdefs.h >>conftest.$ac_ext 20804cat >>conftest.$ac_ext <<_ACEOF 20805/* end confdefs.h. */ 20806#include <string.h> 20807 20808_ACEOF 20809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20810 $EGREP "memchr" >/dev/null 2>&1; then 20811 : 20812else 20813 ac_cv_header_stdc=no 20814fi 20815rm -f conftest* 20816 20817fi 20818 20819if test $ac_cv_header_stdc = yes; then 20820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20821 cat >conftest.$ac_ext <<_ACEOF 20822/* confdefs.h. */ 20823_ACEOF 20824cat confdefs.h >>conftest.$ac_ext 20825cat >>conftest.$ac_ext <<_ACEOF 20826/* end confdefs.h. */ 20827#include <stdlib.h> 20828 20829_ACEOF 20830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20831 $EGREP "free" >/dev/null 2>&1; then 20832 : 20833else 20834 ac_cv_header_stdc=no 20835fi 20836rm -f conftest* 20837 20838fi 20839 20840if test $ac_cv_header_stdc = yes; then 20841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20842 if test "$cross_compiling" = yes; then 20843 : 20844else 20845 cat >conftest.$ac_ext <<_ACEOF 20846/* confdefs.h. */ 20847_ACEOF 20848cat confdefs.h >>conftest.$ac_ext 20849cat >>conftest.$ac_ext <<_ACEOF 20850/* end confdefs.h. */ 20851#include <ctype.h> 20852#include <stdlib.h> 20853#if ((' ' & 0x0FF) == 0x020) 20854# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20855# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20856#else 20857# define ISLOWER(c) \ 20858 (('a' <= (c) && (c) <= 'i') \ 20859 || ('j' <= (c) && (c) <= 'r') \ 20860 || ('s' <= (c) && (c) <= 'z')) 20861# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20862#endif 20863 20864#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20865int 20866main () 20867{ 20868 int i; 20869 for (i = 0; i < 256; i++) 20870 if (XOR (islower (i), ISLOWER (i)) 20871 || toupper (i) != TOUPPER (i)) 20872 return 2; 20873 return 0; 20874} 20875_ACEOF 20876rm -f conftest$ac_exeext 20877if { (ac_try="$ac_link" 20878case "(($ac_try" in 20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20880 *) ac_try_echo=$ac_try;; 20881esac 20882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20883 (eval "$ac_link") 2>&5 20884 ac_status=$? 20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20887 { (case "(($ac_try" in 20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20889 *) ac_try_echo=$ac_try;; 20890esac 20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20892 (eval "$ac_try") 2>&5 20893 ac_status=$? 20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20895 (exit $ac_status); }; }; then 20896 : 20897else 20898 echo "$as_me: program exited with status $ac_status" >&5 20899echo "$as_me: failed program was:" >&5 20900sed 's/^/| /' conftest.$ac_ext >&5 20901 20902( exit $ac_status ) 20903ac_cv_header_stdc=no 20904fi 20905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20906fi 20907 20908 20909fi 20910fi 20911{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20912echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20913if test $ac_cv_header_stdc = yes; then 20914 20915cat >>confdefs.h <<\_ACEOF 20916#define STDC_HEADERS 1 20917_ACEOF 20918 20919fi 20920 20921 20922 20923 20924 20925if test x$APP_MAN_SUFFIX = x ; then 20926 APP_MAN_SUFFIX=1 20927fi 20928if test x$APP_MAN_DIR = x ; then 20929 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20930fi 20931 20932if test x$LIB_MAN_SUFFIX = x ; then 20933 LIB_MAN_SUFFIX=3 20934fi 20935if test x$LIB_MAN_DIR = x ; then 20936 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20937fi 20938 20939if test x$FILE_MAN_SUFFIX = x ; then 20940 case $host_os in 20941 solaris*) FILE_MAN_SUFFIX=4 ;; 20942 *) FILE_MAN_SUFFIX=5 ;; 20943 esac 20944fi 20945if test x$FILE_MAN_DIR = x ; then 20946 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20947fi 20948 20949if test x$MISC_MAN_SUFFIX = x ; then 20950 case $host_os in 20951 solaris*) MISC_MAN_SUFFIX=5 ;; 20952 *) MISC_MAN_SUFFIX=7 ;; 20953 esac 20954fi 20955if test x$MISC_MAN_DIR = x ; then 20956 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20957fi 20958 20959if test x$DRIVER_MAN_SUFFIX = x ; then 20960 case $host_os in 20961 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20962 *) DRIVER_MAN_SUFFIX=4 ;; 20963 esac 20964fi 20965if test x$DRIVER_MAN_DIR = x ; then 20966 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20967fi 20968 20969if test x$ADMIN_MAN_SUFFIX = x ; then 20970 case $host_os in 20971 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20972 *) ADMIN_MAN_SUFFIX=8 ;; 20973 esac 20974fi 20975if test x$ADMIN_MAN_DIR = x ; then 20976 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20977fi 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995# Check whether --with-release-version was given. 20996if test "${with_release_version+set}" = set; then 20997 withval=$with_release_version; RELEASE_VERSION="$withval" 20998else 20999 RELEASE_VERSION="" 21000fi 21001 21002 if test "x$RELEASE_VERSION" != "x"; then 21003 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21004 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21005 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21006echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21007 fi 21008 21009cat >>confdefs.h <<_ACEOF 21010#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21011_ACEOF 21012 21013 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21014 if test "x$PVM" = "x"; then 21015 PVM="0" 21016 fi 21017 21018cat >>confdefs.h <<_ACEOF 21019#define PACKAGE_VERSION_MINOR $PVM 21020_ACEOF 21021 21022 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21023 if test "x$PVP" = "x"; then 21024 PVP="0" 21025 fi 21026 21027cat >>confdefs.h <<_ACEOF 21028#define PACKAGE_VERSION_PATCHLEVEL $PVP 21029_ACEOF 21030 21031 21032 21033ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 21034 21035cat >confcache <<\_ACEOF 21036# This file is a shell script that caches the results of configure 21037# tests run on this system so they can be shared between configure 21038# scripts and configure runs, see configure's option --config-cache. 21039# It is not useful on other systems. If it contains results you don't 21040# want to keep, you may remove or edit it. 21041# 21042# config.status only pays attention to the cache file if you give it 21043# the --recheck option to rerun configure. 21044# 21045# `ac_cv_env_foo' variables (set or unset) will be overridden when 21046# loading this file, other *unset* `ac_cv_foo' will be assigned the 21047# following values. 21048 21049_ACEOF 21050 21051# The following way of writing the cache mishandles newlines in values, 21052# but we know of no workaround that is simple, portable, and efficient. 21053# So, we kill variables containing newlines. 21054# Ultrix sh set writes to stderr and can't be redirected directly, 21055# and sets the high bit in the cache file unless we assign to the vars. 21056( 21057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21058 eval ac_val=\$$ac_var 21059 case $ac_val in #( 21060 *${as_nl}*) 21061 case $ac_var in #( 21062 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21063echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21064 esac 21065 case $ac_var in #( 21066 _ | IFS | as_nl) ;; #( 21067 *) $as_unset $ac_var ;; 21068 esac ;; 21069 esac 21070 done 21071 21072 (set) 2>&1 | 21073 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21074 *${as_nl}ac_space=\ *) 21075 # `set' does not quote correctly, so add quotes (double-quote 21076 # substitution turns \\\\ into \\, and sed turns \\ into \). 21077 sed -n \ 21078 "s/'/'\\\\''/g; 21079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21080 ;; #( 21081 *) 21082 # `set' quotes correctly as required by POSIX, so do not add quotes. 21083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21084 ;; 21085 esac | 21086 sort 21087) | 21088 sed ' 21089 /^ac_cv_env_/b end 21090 t clear 21091 :clear 21092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21093 t end 21094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21095 :end' >>confcache 21096if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21097 if test -w "$cache_file"; then 21098 test "x$cache_file" != "x/dev/null" && 21099 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21100echo "$as_me: updating cache $cache_file" >&6;} 21101 cat confcache >$cache_file 21102 else 21103 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21104echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21105 fi 21106fi 21107rm -f confcache 21108 21109test "x$prefix" = xNONE && prefix=$ac_default_prefix 21110# Let make expand exec_prefix. 21111test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21112 21113DEFS=-DHAVE_CONFIG_H 21114 21115ac_libobjs= 21116ac_ltlibobjs= 21117for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21118 # 1. Remove the extension, and $U if already installed. 21119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21120 ac_i=`echo "$ac_i" | sed "$ac_script"` 21121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21122 # will be set to the directory where LIBOBJS objects are built. 21123 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21124 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21125done 21126LIBOBJS=$ac_libobjs 21127 21128LTLIBOBJS=$ac_ltlibobjs 21129 21130 21131if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21132 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21133Usually this means the macro was only invoked conditionally." >&5 21134echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21135Usually this means the macro was only invoked conditionally." >&2;} 21136 { (exit 1); exit 1; }; } 21137fi 21138if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21139 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21140Usually this means the macro was only invoked conditionally." >&5 21141echo "$as_me: error: conditional \"AMDEP\" was never defined. 21142Usually this means the macro was only invoked conditionally." >&2;} 21143 { (exit 1); exit 1; }; } 21144fi 21145if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21146 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21147Usually this means the macro was only invoked conditionally." >&5 21148echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21149Usually this means the macro was only invoked conditionally." >&2;} 21150 { (exit 1); exit 1; }; } 21151fi 21152if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21153 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21154Usually this means the macro was only invoked conditionally." >&5 21155echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21156Usually this means the macro was only invoked conditionally." >&2;} 21157 { (exit 1); exit 1; }; } 21158fi 21159if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21160 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21161Usually this means the macro was only invoked conditionally." >&5 21162echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21163Usually this means the macro was only invoked conditionally." >&2;} 21164 { (exit 1); exit 1; }; } 21165fi 21166if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 21167 { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined. 21168Usually this means the macro was only invoked conditionally." >&5 21169echo "$as_me: error: conditional \"LINUX\" was never defined. 21170Usually this means the macro was only invoked conditionally." >&2;} 21171 { (exit 1); exit 1; }; } 21172fi 21173if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then 21174 { { echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined. 21175Usually this means the macro was only invoked conditionally." >&5 21176echo "$as_me: error: conditional \"BSD\" was never defined. 21177Usually this means the macro was only invoked conditionally." >&2;} 21178 { (exit 1); exit 1; }; } 21179fi 21180if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 21181 { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined. 21182Usually this means the macro was only invoked conditionally." >&5 21183echo "$as_me: error: conditional \"SOLARIS\" was never defined. 21184Usually this means the macro was only invoked conditionally." >&2;} 21185 { (exit 1); exit 1; }; } 21186fi 21187if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then 21188 { { echo "$as_me:$LINENO: error: conditional \"HURD\" was never defined. 21189Usually this means the macro was only invoked conditionally." >&5 21190echo "$as_me: error: conditional \"HURD\" was never defined. 21191Usually this means the macro was only invoked conditionally." >&2;} 21192 { (exit 1); exit 1; }; } 21193fi 21194if test -z "${SCO_TRUE}" && test -z "${SCO_FALSE}"; then 21195 { { echo "$as_me:$LINENO: error: conditional \"SCO\" was never defined. 21196Usually this means the macro was only invoked conditionally." >&5 21197echo "$as_me: error: conditional \"SCO\" was never defined. 21198Usually this means the macro was only invoked conditionally." >&2;} 21199 { (exit 1); exit 1; }; } 21200fi 21201 21202: ${CONFIG_STATUS=./config.status} 21203ac_clean_files_save=$ac_clean_files 21204ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21205{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21206echo "$as_me: creating $CONFIG_STATUS" >&6;} 21207cat >$CONFIG_STATUS <<_ACEOF 21208#! $SHELL 21209# Generated by $as_me. 21210# Run this file to recreate the current configuration. 21211# Compiler output produced by configure, useful for debugging 21212# configure, is in config.log if it exists. 21213 21214debug=false 21215ac_cs_recheck=false 21216ac_cs_silent=false 21217SHELL=\${CONFIG_SHELL-$SHELL} 21218_ACEOF 21219 21220cat >>$CONFIG_STATUS <<\_ACEOF 21221## --------------------- ## 21222## M4sh Initialization. ## 21223## --------------------- ## 21224 21225# Be more Bourne compatible 21226DUALCASE=1; export DUALCASE # for MKS sh 21227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21228 emulate sh 21229 NULLCMD=: 21230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21231 # is contrary to our usage. Disable this feature. 21232 alias -g '${1+"$@"}'='"$@"' 21233 setopt NO_GLOB_SUBST 21234else 21235 case `(set -o) 2>/dev/null` in 21236 *posix*) set -o posix ;; 21237esac 21238 21239fi 21240 21241 21242 21243 21244# PATH needs CR 21245# Avoid depending upon Character Ranges. 21246as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21248as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21249as_cr_digits='0123456789' 21250as_cr_alnum=$as_cr_Letters$as_cr_digits 21251 21252# The user is always right. 21253if test "${PATH_SEPARATOR+set}" != set; then 21254 echo "#! /bin/sh" >conf$$.sh 21255 echo "exit 0" >>conf$$.sh 21256 chmod +x conf$$.sh 21257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21258 PATH_SEPARATOR=';' 21259 else 21260 PATH_SEPARATOR=: 21261 fi 21262 rm -f conf$$.sh 21263fi 21264 21265# Support unset when possible. 21266if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21267 as_unset=unset 21268else 21269 as_unset=false 21270fi 21271 21272 21273# IFS 21274# We need space, tab and new line, in precisely that order. Quoting is 21275# there to prevent editors from complaining about space-tab. 21276# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21277# splitting by setting IFS to empty value.) 21278as_nl=' 21279' 21280IFS=" "" $as_nl" 21281 21282# Find who we are. Look in the path if we contain no directory separator. 21283case $0 in 21284 *[\\/]* ) as_myself=$0 ;; 21285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21286for as_dir in $PATH 21287do 21288 IFS=$as_save_IFS 21289 test -z "$as_dir" && as_dir=. 21290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21291done 21292IFS=$as_save_IFS 21293 21294 ;; 21295esac 21296# We did not find ourselves, most probably we were run as `sh COMMAND' 21297# in which case we are not to be found in the path. 21298if test "x$as_myself" = x; then 21299 as_myself=$0 21300fi 21301if test ! -f "$as_myself"; then 21302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21303 { (exit 1); exit 1; } 21304fi 21305 21306# Work around bugs in pre-3.0 UWIN ksh. 21307for as_var in ENV MAIL MAILPATH 21308do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21309done 21310PS1='$ ' 21311PS2='> ' 21312PS4='+ ' 21313 21314# NLS nuisances. 21315for as_var in \ 21316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21318 LC_TELEPHONE LC_TIME 21319do 21320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21321 eval $as_var=C; export $as_var 21322 else 21323 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21324 fi 21325done 21326 21327# Required to use basename. 21328if expr a : '\(a\)' >/dev/null 2>&1 && 21329 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21330 as_expr=expr 21331else 21332 as_expr=false 21333fi 21334 21335if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21336 as_basename=basename 21337else 21338 as_basename=false 21339fi 21340 21341 21342# Name of the executable. 21343as_me=`$as_basename -- "$0" || 21344$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21345 X"$0" : 'X\(//\)$' \| \ 21346 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21347echo X/"$0" | 21348 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21349 s//\1/ 21350 q 21351 } 21352 /^X\/\(\/\/\)$/{ 21353 s//\1/ 21354 q 21355 } 21356 /^X\/\(\/\).*/{ 21357 s//\1/ 21358 q 21359 } 21360 s/.*/./; q'` 21361 21362# CDPATH. 21363$as_unset CDPATH 21364 21365 21366 21367 as_lineno_1=$LINENO 21368 as_lineno_2=$LINENO 21369 test "x$as_lineno_1" != "x$as_lineno_2" && 21370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21371 21372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21373 # uniformly replaced by the line number. The first 'sed' inserts a 21374 # line-number line after each line using $LINENO; the second 'sed' 21375 # does the real work. The second script uses 'N' to pair each 21376 # line-number line with the line containing $LINENO, and appends 21377 # trailing '-' during substitution so that $LINENO is not a special 21378 # case at line end. 21379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21380 # scripts with optimization help from Paolo Bonzini. Blame Lee 21381 # E. McMahon (1931-1989) for sed's syntax. :-) 21382 sed -n ' 21383 p 21384 /[$]LINENO/= 21385 ' <$as_myself | 21386 sed ' 21387 s/[$]LINENO.*/&-/ 21388 t lineno 21389 b 21390 :lineno 21391 N 21392 :loop 21393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21394 t loop 21395 s/-\n.*// 21396 ' >$as_me.lineno && 21397 chmod +x "$as_me.lineno" || 21398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21399 { (exit 1); exit 1; }; } 21400 21401 # Don't try to exec as it changes $[0], causing all sort of problems 21402 # (the dirname of $[0] is not the place where we might find the 21403 # original and so on. Autoconf is especially sensitive to this). 21404 . "./$as_me.lineno" 21405 # Exit status is that of the last command. 21406 exit 21407} 21408 21409 21410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21411 as_dirname=dirname 21412else 21413 as_dirname=false 21414fi 21415 21416ECHO_C= ECHO_N= ECHO_T= 21417case `echo -n x` in 21418-n*) 21419 case `echo 'x\c'` in 21420 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21421 *) ECHO_C='\c';; 21422 esac;; 21423*) 21424 ECHO_N='-n';; 21425esac 21426 21427if expr a : '\(a\)' >/dev/null 2>&1 && 21428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21429 as_expr=expr 21430else 21431 as_expr=false 21432fi 21433 21434rm -f conf$$ conf$$.exe conf$$.file 21435if test -d conf$$.dir; then 21436 rm -f conf$$.dir/conf$$.file 21437else 21438 rm -f conf$$.dir 21439 mkdir conf$$.dir 21440fi 21441echo >conf$$.file 21442if ln -s conf$$.file conf$$ 2>/dev/null; then 21443 as_ln_s='ln -s' 21444 # ... but there are two gotchas: 21445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21447 # In both cases, we have to default to `cp -p'. 21448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21449 as_ln_s='cp -p' 21450elif ln conf$$.file conf$$ 2>/dev/null; then 21451 as_ln_s=ln 21452else 21453 as_ln_s='cp -p' 21454fi 21455rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21456rmdir conf$$.dir 2>/dev/null 21457 21458if mkdir -p . 2>/dev/null; then 21459 as_mkdir_p=: 21460else 21461 test -d ./-p && rmdir ./-p 21462 as_mkdir_p=false 21463fi 21464 21465if test -x / >/dev/null 2>&1; then 21466 as_test_x='test -x' 21467else 21468 if ls -dL / >/dev/null 2>&1; then 21469 as_ls_L_option=L 21470 else 21471 as_ls_L_option= 21472 fi 21473 as_test_x=' 21474 eval sh -c '\'' 21475 if test -d "$1"; then 21476 test -d "$1/."; 21477 else 21478 case $1 in 21479 -*)set "./$1";; 21480 esac; 21481 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21482 ???[sx]*):;;*)false;;esac;fi 21483 '\'' sh 21484 ' 21485fi 21486as_executable_p=$as_test_x 21487 21488# Sed expression to map a string onto a valid CPP name. 21489as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21490 21491# Sed expression to map a string onto a valid variable name. 21492as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21493 21494 21495exec 6>&1 21496 21497# Save the log message, to keep $[0] and so on meaningful, and to 21498# report actual input values of CONFIG_FILES etc. instead of their 21499# values after options handling. 21500ac_log=" 21501This file was extended by xf86-input-keyboard $as_me 1.3.1, which was 21502generated by GNU Autoconf 2.61. Invocation command line was 21503 21504 CONFIG_FILES = $CONFIG_FILES 21505 CONFIG_HEADERS = $CONFIG_HEADERS 21506 CONFIG_LINKS = $CONFIG_LINKS 21507 CONFIG_COMMANDS = $CONFIG_COMMANDS 21508 $ $0 $@ 21509 21510on `(hostname || uname -n) 2>/dev/null | sed 1q` 21511" 21512 21513_ACEOF 21514 21515cat >>$CONFIG_STATUS <<_ACEOF 21516# Files that config.status was made for. 21517config_files="$ac_config_files" 21518config_headers="$ac_config_headers" 21519config_commands="$ac_config_commands" 21520 21521_ACEOF 21522 21523cat >>$CONFIG_STATUS <<\_ACEOF 21524ac_cs_usage="\ 21525\`$as_me' instantiates files from templates according to the 21526current configuration. 21527 21528Usage: $0 [OPTIONS] [FILE]... 21529 21530 -h, --help print this help, then exit 21531 -V, --version print version number and configuration settings, then exit 21532 -q, --quiet do not print progress messages 21533 -d, --debug don't remove temporary files 21534 --recheck update $as_me by reconfiguring in the same conditions 21535 --file=FILE[:TEMPLATE] 21536 instantiate the configuration file FILE 21537 --header=FILE[:TEMPLATE] 21538 instantiate the configuration header FILE 21539 21540Configuration files: 21541$config_files 21542 21543Configuration headers: 21544$config_headers 21545 21546Configuration commands: 21547$config_commands 21548 21549Report bugs to <bug-autoconf@gnu.org>." 21550 21551_ACEOF 21552cat >>$CONFIG_STATUS <<_ACEOF 21553ac_cs_version="\\ 21554xf86-input-keyboard config.status 1.3.1 21555configured by $0, generated by GNU Autoconf 2.61, 21556 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21557 21558Copyright (C) 2006 Free Software Foundation, Inc. 21559This config.status script is free software; the Free Software Foundation 21560gives unlimited permission to copy, distribute and modify it." 21561 21562ac_pwd='$ac_pwd' 21563srcdir='$srcdir' 21564INSTALL='$INSTALL' 21565MKDIR_P='$MKDIR_P' 21566_ACEOF 21567 21568cat >>$CONFIG_STATUS <<\_ACEOF 21569# If no file are specified by the user, then we need to provide default 21570# value. By we need to know if files were specified by the user. 21571ac_need_defaults=: 21572while test $# != 0 21573do 21574 case $1 in 21575 --*=*) 21576 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21578 ac_shift=: 21579 ;; 21580 *) 21581 ac_option=$1 21582 ac_optarg=$2 21583 ac_shift=shift 21584 ;; 21585 esac 21586 21587 case $ac_option in 21588 # Handling of the options. 21589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21590 ac_cs_recheck=: ;; 21591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21592 echo "$ac_cs_version"; exit ;; 21593 --debug | --debu | --deb | --de | --d | -d ) 21594 debug=: ;; 21595 --file | --fil | --fi | --f ) 21596 $ac_shift 21597 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21598 ac_need_defaults=false;; 21599 --header | --heade | --head | --hea ) 21600 $ac_shift 21601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21602 ac_need_defaults=false;; 21603 --he | --h) 21604 # Conflict between --help and --header 21605 { echo "$as_me: error: ambiguous option: $1 21606Try \`$0 --help' for more information." >&2 21607 { (exit 1); exit 1; }; };; 21608 --help | --hel | -h ) 21609 echo "$ac_cs_usage"; exit ;; 21610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21611 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21612 ac_cs_silent=: ;; 21613 21614 # This is an error. 21615 -*) { echo "$as_me: error: unrecognized option: $1 21616Try \`$0 --help' for more information." >&2 21617 { (exit 1); exit 1; }; } ;; 21618 21619 *) ac_config_targets="$ac_config_targets $1" 21620 ac_need_defaults=false ;; 21621 21622 esac 21623 shift 21624done 21625 21626ac_configure_extra_args= 21627 21628if $ac_cs_silent; then 21629 exec 6>/dev/null 21630 ac_configure_extra_args="$ac_configure_extra_args --silent" 21631fi 21632 21633_ACEOF 21634cat >>$CONFIG_STATUS <<_ACEOF 21635if \$ac_cs_recheck; then 21636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21637 CONFIG_SHELL=$SHELL 21638 export CONFIG_SHELL 21639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21640fi 21641 21642_ACEOF 21643cat >>$CONFIG_STATUS <<\_ACEOF 21644exec 5>>config.log 21645{ 21646 echo 21647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21648## Running $as_me. ## 21649_ASBOX 21650 echo "$ac_log" 21651} >&5 21652 21653_ACEOF 21654cat >>$CONFIG_STATUS <<_ACEOF 21655# 21656# INIT-COMMANDS 21657# 21658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21659 21660_ACEOF 21661 21662cat >>$CONFIG_STATUS <<\_ACEOF 21663 21664# Handling of arguments. 21665for ac_config_target in $ac_config_targets 21666do 21667 case $ac_config_target in 21668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21669 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21671 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21672 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21673 21674 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21675echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21676 { (exit 1); exit 1; }; };; 21677 esac 21678done 21679 21680 21681# If the user did not use the arguments to specify the items to instantiate, 21682# then the envvar interface is used. Set only those that are not. 21683# We use the long form for the default assignment because of an extremely 21684# bizarre bug on SunOS 4.1.3. 21685if $ac_need_defaults; then 21686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21688 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21689fi 21690 21691# Have a temporary directory for convenience. Make it in the build tree 21692# simply because there is no reason against having it here, and in addition, 21693# creating and moving files from /tmp can sometimes cause problems. 21694# Hook for its removal unless debugging. 21695# Note that there is a small window in which the directory will not be cleaned: 21696# after its creation but before its name has been assigned to `$tmp'. 21697$debug || 21698{ 21699 tmp= 21700 trap 'exit_status=$? 21701 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21702' 0 21703 trap '{ (exit 1); exit 1; }' 1 2 13 15 21704} 21705# Create a (secure) tmp directory for tmp files. 21706 21707{ 21708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21709 test -n "$tmp" && test -d "$tmp" 21710} || 21711{ 21712 tmp=./conf$$-$RANDOM 21713 (umask 077 && mkdir "$tmp") 21714} || 21715{ 21716 echo "$me: cannot create a temporary directory in ." >&2 21717 { (exit 1); exit 1; } 21718} 21719 21720# 21721# Set up the sed scripts for CONFIG_FILES section. 21722# 21723 21724# No need to generate the scripts if there are no CONFIG_FILES. 21725# This happens for instance when ./config.status config.h 21726if test -n "$CONFIG_FILES"; then 21727 21728_ACEOF 21729 21730 21731 21732ac_delim='%!_!# ' 21733for ac_last_try in false false false false false :; do 21734 cat >conf$$subs.sed <<_ACEOF 21735SHELL!$SHELL$ac_delim 21736PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21737PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21738PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21739PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21740PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21741PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21742exec_prefix!$exec_prefix$ac_delim 21743prefix!$prefix$ac_delim 21744program_transform_name!$program_transform_name$ac_delim 21745bindir!$bindir$ac_delim 21746sbindir!$sbindir$ac_delim 21747libexecdir!$libexecdir$ac_delim 21748datarootdir!$datarootdir$ac_delim 21749datadir!$datadir$ac_delim 21750sysconfdir!$sysconfdir$ac_delim 21751sharedstatedir!$sharedstatedir$ac_delim 21752localstatedir!$localstatedir$ac_delim 21753includedir!$includedir$ac_delim 21754oldincludedir!$oldincludedir$ac_delim 21755docdir!$docdir$ac_delim 21756infodir!$infodir$ac_delim 21757htmldir!$htmldir$ac_delim 21758dvidir!$dvidir$ac_delim 21759pdfdir!$pdfdir$ac_delim 21760psdir!$psdir$ac_delim 21761libdir!$libdir$ac_delim 21762localedir!$localedir$ac_delim 21763mandir!$mandir$ac_delim 21764DEFS!$DEFS$ac_delim 21765ECHO_C!$ECHO_C$ac_delim 21766ECHO_N!$ECHO_N$ac_delim 21767ECHO_T!$ECHO_T$ac_delim 21768LIBS!$LIBS$ac_delim 21769build_alias!$build_alias$ac_delim 21770host_alias!$host_alias$ac_delim 21771target_alias!$target_alias$ac_delim 21772INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21773INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21774INSTALL_DATA!$INSTALL_DATA$ac_delim 21775am__isrc!$am__isrc$ac_delim 21776CYGPATH_W!$CYGPATH_W$ac_delim 21777PACKAGE!$PACKAGE$ac_delim 21778VERSION!$VERSION$ac_delim 21779ACLOCAL!$ACLOCAL$ac_delim 21780AUTOCONF!$AUTOCONF$ac_delim 21781AUTOMAKE!$AUTOMAKE$ac_delim 21782AUTOHEADER!$AUTOHEADER$ac_delim 21783MAKEINFO!$MAKEINFO$ac_delim 21784install_sh!$install_sh$ac_delim 21785STRIP!$STRIP$ac_delim 21786INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21787mkdir_p!$mkdir_p$ac_delim 21788AWK!$AWK$ac_delim 21789SET_MAKE!$SET_MAKE$ac_delim 21790am__leading_dot!$am__leading_dot$ac_delim 21791AMTAR!$AMTAR$ac_delim 21792am__tar!$am__tar$ac_delim 21793am__untar!$am__untar$ac_delim 21794MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21795MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21796MAINT!$MAINT$ac_delim 21797DRIVER_NAME!$DRIVER_NAME$ac_delim 21798build!$build$ac_delim 21799build_cpu!$build_cpu$ac_delim 21800build_vendor!$build_vendor$ac_delim 21801build_os!$build_os$ac_delim 21802host!$host$ac_delim 21803host_cpu!$host_cpu$ac_delim 21804host_vendor!$host_vendor$ac_delim 21805host_os!$host_os$ac_delim 21806CC!$CC$ac_delim 21807CFLAGS!$CFLAGS$ac_delim 21808LDFLAGS!$LDFLAGS$ac_delim 21809CPPFLAGS!$CPPFLAGS$ac_delim 21810ac_ct_CC!$ac_ct_CC$ac_delim 21811EXEEXT!$EXEEXT$ac_delim 21812OBJEXT!$OBJEXT$ac_delim 21813DEPDIR!$DEPDIR$ac_delim 21814am__include!$am__include$ac_delim 21815am__quote!$am__quote$ac_delim 21816AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21817AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21818AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21819CCDEPMODE!$CCDEPMODE$ac_delim 21820am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21821am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21822SED!$SED$ac_delim 21823GREP!$GREP$ac_delim 21824EGREP!$EGREP$ac_delim 21825LN_S!$LN_S$ac_delim 21826ECHO!$ECHO$ac_delim 21827AR!$AR$ac_delim 21828RANLIB!$RANLIB$ac_delim 21829CPP!$CPP$ac_delim 21830CXX!$CXX$ac_delim 21831CXXFLAGS!$CXXFLAGS$ac_delim 21832_ACEOF 21833 21834 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21835 break 21836 elif $ac_last_try; then 21837 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21838echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21839 { (exit 1); exit 1; }; } 21840 else 21841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21842 fi 21843done 21844 21845ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21846if test -n "$ac_eof"; then 21847 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21848 ac_eof=`expr $ac_eof + 1` 21849fi 21850 21851cat >>$CONFIG_STATUS <<_ACEOF 21852cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21853/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21854_ACEOF 21855sed ' 21856s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21857s/^/s,@/; s/!/@,|#_!!_#|/ 21858:n 21859t n 21860s/'"$ac_delim"'$/,g/; t 21861s/$/\\/; p 21862N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21863' >>$CONFIG_STATUS <conf$$subs.sed 21864rm -f conf$$subs.sed 21865cat >>$CONFIG_STATUS <<_ACEOF 21866CEOF$ac_eof 21867_ACEOF 21868 21869 21870ac_delim='%!_!# ' 21871for ac_last_try in false false false false false :; do 21872 cat >conf$$subs.sed <<_ACEOF 21873ac_ct_CXX!$ac_ct_CXX$ac_delim 21874CXXDEPMODE!$CXXDEPMODE$ac_delim 21875am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21876am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21877CXXCPP!$CXXCPP$ac_delim 21878F77!$F77$ac_delim 21879FFLAGS!$FFLAGS$ac_delim 21880ac_ct_F77!$ac_ct_F77$ac_delim 21881LIBTOOL!$LIBTOOL$ac_delim 21882LINUX_TRUE!$LINUX_TRUE$ac_delim 21883LINUX_FALSE!$LINUX_FALSE$ac_delim 21884BSD_TRUE!$BSD_TRUE$ac_delim 21885BSD_FALSE!$BSD_FALSE$ac_delim 21886SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim 21887SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim 21888HURD_TRUE!$HURD_TRUE$ac_delim 21889HURD_FALSE!$HURD_FALSE$ac_delim 21890SCO_TRUE!$SCO_TRUE$ac_delim 21891SCO_FALSE!$SCO_FALSE$ac_delim 21892inputdir!$inputdir$ac_delim 21893PKG_CONFIG!$PKG_CONFIG$ac_delim 21894XORG_CFLAGS!$XORG_CFLAGS$ac_delim 21895XORG_LIBS!$XORG_LIBS$ac_delim 21896APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 21897LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 21898FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 21899MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 21900DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 21901ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 21902APP_MAN_DIR!$APP_MAN_DIR$ac_delim 21903LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 21904FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 21905MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 21906DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 21907ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 21908LIBOBJS!$LIBOBJS$ac_delim 21909LTLIBOBJS!$LTLIBOBJS$ac_delim 21910_ACEOF 21911 21912 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then 21913 break 21914 elif $ac_last_try; then 21915 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21916echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21917 { (exit 1); exit 1; }; } 21918 else 21919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21920 fi 21921done 21922 21923ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21924if test -n "$ac_eof"; then 21925 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21926 ac_eof=`expr $ac_eof + 1` 21927fi 21928 21929cat >>$CONFIG_STATUS <<_ACEOF 21930cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21932_ACEOF 21933sed ' 21934s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21935s/^/s,@/; s/!/@,|#_!!_#|/ 21936:n 21937t n 21938s/'"$ac_delim"'$/,g/; t 21939s/$/\\/; p 21940N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21941' >>$CONFIG_STATUS <conf$$subs.sed 21942rm -f conf$$subs.sed 21943cat >>$CONFIG_STATUS <<_ACEOF 21944:end 21945s/|#_!!_#|//g 21946CEOF$ac_eof 21947_ACEOF 21948 21949 21950# VPATH may cause trouble with some makes, so we remove $(srcdir), 21951# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21952# trailing colons and then remove the whole line if VPATH becomes empty 21953# (actually we leave an empty line to preserve line numbers). 21954if test "x$srcdir" = x.; then 21955 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21956s/:*\$(srcdir):*/:/ 21957s/:*\${srcdir}:*/:/ 21958s/:*@srcdir@:*/:/ 21959s/^\([^=]*=[ ]*\):*/\1/ 21960s/:*$// 21961s/^[^=]*=[ ]*$// 21962}' 21963fi 21964 21965cat >>$CONFIG_STATUS <<\_ACEOF 21966fi # test -n "$CONFIG_FILES" 21967 21968 21969for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21970do 21971 case $ac_tag in 21972 :[FHLC]) ac_mode=$ac_tag; continue;; 21973 esac 21974 case $ac_mode$ac_tag in 21975 :[FHL]*:*);; 21976 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21977echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21978 { (exit 1); exit 1; }; };; 21979 :[FH]-) ac_tag=-:-;; 21980 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21981 esac 21982 ac_save_IFS=$IFS 21983 IFS=: 21984 set x $ac_tag 21985 IFS=$ac_save_IFS 21986 shift 21987 ac_file=$1 21988 shift 21989 21990 case $ac_mode in 21991 :L) ac_source=$1;; 21992 :[FH]) 21993 ac_file_inputs= 21994 for ac_f 21995 do 21996 case $ac_f in 21997 -) ac_f="$tmp/stdin";; 21998 *) # Look for the file first in the build tree, then in the source tree 21999 # (if the path is not absolute). The absolute path cannot be DOS-style, 22000 # because $ac_f cannot contain `:'. 22001 test -f "$ac_f" || 22002 case $ac_f in 22003 [\\/$]*) false;; 22004 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22005 esac || 22006 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22007echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22008 { (exit 1); exit 1; }; };; 22009 esac 22010 ac_file_inputs="$ac_file_inputs $ac_f" 22011 done 22012 22013 # Let's still pretend it is `configure' which instantiates (i.e., don't 22014 # use $as_me), people would be surprised to read: 22015 # /* config.h. Generated by config.status. */ 22016 configure_input="Generated from "`IFS=: 22017 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22018 if test x"$ac_file" != x-; then 22019 configure_input="$ac_file. $configure_input" 22020 { echo "$as_me:$LINENO: creating $ac_file" >&5 22021echo "$as_me: creating $ac_file" >&6;} 22022 fi 22023 22024 case $ac_tag in 22025 *:-:* | *:-) cat >"$tmp/stdin";; 22026 esac 22027 ;; 22028 esac 22029 22030 ac_dir=`$as_dirname -- "$ac_file" || 22031$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22032 X"$ac_file" : 'X\(//\)[^/]' \| \ 22033 X"$ac_file" : 'X\(//\)$' \| \ 22034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22035echo X"$ac_file" | 22036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22037 s//\1/ 22038 q 22039 } 22040 /^X\(\/\/\)[^/].*/{ 22041 s//\1/ 22042 q 22043 } 22044 /^X\(\/\/\)$/{ 22045 s//\1/ 22046 q 22047 } 22048 /^X\(\/\).*/{ 22049 s//\1/ 22050 q 22051 } 22052 s/.*/./; q'` 22053 { as_dir="$ac_dir" 22054 case $as_dir in #( 22055 -*) as_dir=./$as_dir;; 22056 esac 22057 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22058 as_dirs= 22059 while :; do 22060 case $as_dir in #( 22061 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22062 *) as_qdir=$as_dir;; 22063 esac 22064 as_dirs="'$as_qdir' $as_dirs" 22065 as_dir=`$as_dirname -- "$as_dir" || 22066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22067 X"$as_dir" : 'X\(//\)[^/]' \| \ 22068 X"$as_dir" : 'X\(//\)$' \| \ 22069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22070echo X"$as_dir" | 22071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22072 s//\1/ 22073 q 22074 } 22075 /^X\(\/\/\)[^/].*/{ 22076 s//\1/ 22077 q 22078 } 22079 /^X\(\/\/\)$/{ 22080 s//\1/ 22081 q 22082 } 22083 /^X\(\/\).*/{ 22084 s//\1/ 22085 q 22086 } 22087 s/.*/./; q'` 22088 test -d "$as_dir" && break 22089 done 22090 test -z "$as_dirs" || eval "mkdir $as_dirs" 22091 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22092echo "$as_me: error: cannot create directory $as_dir" >&2;} 22093 { (exit 1); exit 1; }; }; } 22094 ac_builddir=. 22095 22096case "$ac_dir" in 22097.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22098*) 22099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22100 # A ".." for each directory in $ac_dir_suffix. 22101 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22102 case $ac_top_builddir_sub in 22103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22105 esac ;; 22106esac 22107ac_abs_top_builddir=$ac_pwd 22108ac_abs_builddir=$ac_pwd$ac_dir_suffix 22109# for backward compatibility: 22110ac_top_builddir=$ac_top_build_prefix 22111 22112case $srcdir in 22113 .) # We are building in place. 22114 ac_srcdir=. 22115 ac_top_srcdir=$ac_top_builddir_sub 22116 ac_abs_top_srcdir=$ac_pwd ;; 22117 [\\/]* | ?:[\\/]* ) # Absolute name. 22118 ac_srcdir=$srcdir$ac_dir_suffix; 22119 ac_top_srcdir=$srcdir 22120 ac_abs_top_srcdir=$srcdir ;; 22121 *) # Relative name. 22122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22123 ac_top_srcdir=$ac_top_build_prefix$srcdir 22124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22125esac 22126ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22127 22128 22129 case $ac_mode in 22130 :F) 22131 # 22132 # CONFIG_FILE 22133 # 22134 22135 case $INSTALL in 22136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22137 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22138 esac 22139 ac_MKDIR_P=$MKDIR_P 22140 case $MKDIR_P in 22141 [\\/$]* | ?:[\\/]* ) ;; 22142 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22143 esac 22144_ACEOF 22145 22146cat >>$CONFIG_STATUS <<\_ACEOF 22147# If the template does not know about datarootdir, expand it. 22148# FIXME: This hack should be removed a few years after 2.60. 22149ac_datarootdir_hack=; ac_datarootdir_seen= 22150 22151case `sed -n '/datarootdir/ { 22152 p 22153 q 22154} 22155/@datadir@/p 22156/@docdir@/p 22157/@infodir@/p 22158/@localedir@/p 22159/@mandir@/p 22160' $ac_file_inputs` in 22161*datarootdir*) ac_datarootdir_seen=yes;; 22162*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22163 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22164echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22165_ACEOF 22166cat >>$CONFIG_STATUS <<_ACEOF 22167 ac_datarootdir_hack=' 22168 s&@datadir@&$datadir&g 22169 s&@docdir@&$docdir&g 22170 s&@infodir@&$infodir&g 22171 s&@localedir@&$localedir&g 22172 s&@mandir@&$mandir&g 22173 s&\\\${datarootdir}&$datarootdir&g' ;; 22174esac 22175_ACEOF 22176 22177# Neutralize VPATH when `$srcdir' = `.'. 22178# Shell code in configure.ac might set extrasub. 22179# FIXME: do we really want to maintain this feature? 22180cat >>$CONFIG_STATUS <<_ACEOF 22181 sed "$ac_vpsub 22182$extrasub 22183_ACEOF 22184cat >>$CONFIG_STATUS <<\_ACEOF 22185:t 22186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22187s&@configure_input@&$configure_input&;t t 22188s&@top_builddir@&$ac_top_builddir_sub&;t t 22189s&@srcdir@&$ac_srcdir&;t t 22190s&@abs_srcdir@&$ac_abs_srcdir&;t t 22191s&@top_srcdir@&$ac_top_srcdir&;t t 22192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22193s&@builddir@&$ac_builddir&;t t 22194s&@abs_builddir@&$ac_abs_builddir&;t t 22195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22196s&@INSTALL@&$ac_INSTALL&;t t 22197s&@MKDIR_P@&$ac_MKDIR_P&;t t 22198$ac_datarootdir_hack 22199" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22200 22201test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22204 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22205which seems to be undefined. Please make sure it is defined." >&5 22206echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22207which seems to be undefined. Please make sure it is defined." >&2;} 22208 22209 rm -f "$tmp/stdin" 22210 case $ac_file in 22211 -) cat "$tmp/out"; rm -f "$tmp/out";; 22212 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22213 esac 22214 ;; 22215 :H) 22216 # 22217 # CONFIG_HEADER 22218 # 22219_ACEOF 22220 22221# Transform confdefs.h into a sed script `conftest.defines', that 22222# substitutes the proper values into config.h.in to produce config.h. 22223rm -f conftest.defines conftest.tail 22224# First, append a space to every undef/define line, to ease matching. 22225echo 's/$/ /' >conftest.defines 22226# Then, protect against being on the right side of a sed subst, or in 22227# an unquoted here document, in config.status. If some macros were 22228# called several times there might be several #defines for the same 22229# symbol, which is useless. But do not sort them, since the last 22230# AC_DEFINE must be honored. 22231ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22232# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22233# NAME is the cpp macro being defined, VALUE is the value it is being given. 22234# PARAMS is the parameter list in the macro definition--in most cases, it's 22235# just an empty string. 22236ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22237ac_dB='\\)[ (].*,\\1define\\2' 22238ac_dC=' ' 22239ac_dD=' ,' 22240 22241uniq confdefs.h | 22242 sed -n ' 22243 t rset 22244 :rset 22245 s/^[ ]*#[ ]*define[ ][ ]*// 22246 t ok 22247 d 22248 :ok 22249 s/[\\&,]/\\&/g 22250 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22251 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22252 ' >>conftest.defines 22253 22254# Remove the space that was appended to ease matching. 22255# Then replace #undef with comments. This is necessary, for 22256# example, in the case of _POSIX_SOURCE, which is predefined and required 22257# on some systems where configure will not decide to define it. 22258# (The regexp can be short, since the line contains either #define or #undef.) 22259echo 's/ $// 22260s,^[ #]*u.*,/* & */,' >>conftest.defines 22261 22262# Break up conftest.defines: 22263ac_max_sed_lines=50 22264 22265# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22266# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22267# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22268# et cetera. 22269ac_in='$ac_file_inputs' 22270ac_out='"$tmp/out1"' 22271ac_nxt='"$tmp/out2"' 22272 22273while : 22274do 22275 # Write a here document: 22276 cat >>$CONFIG_STATUS <<_ACEOF 22277 # First, check the format of the line: 22278 cat >"\$tmp/defines.sed" <<\\CEOF 22279/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22280/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22281b 22282:def 22283_ACEOF 22284 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22285 echo 'CEOF 22286 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22287 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22288 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22289 grep . conftest.tail >/dev/null || break 22290 rm -f conftest.defines 22291 mv conftest.tail conftest.defines 22292done 22293rm -f conftest.defines conftest.tail 22294 22295echo "ac_result=$ac_in" >>$CONFIG_STATUS 22296cat >>$CONFIG_STATUS <<\_ACEOF 22297 if test x"$ac_file" != x-; then 22298 echo "/* $configure_input */" >"$tmp/config.h" 22299 cat "$ac_result" >>"$tmp/config.h" 22300 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22302echo "$as_me: $ac_file is unchanged" >&6;} 22303 else 22304 rm -f $ac_file 22305 mv "$tmp/config.h" $ac_file 22306 fi 22307 else 22308 echo "/* $configure_input */" 22309 cat "$ac_result" 22310 fi 22311 rm -f "$tmp/out12" 22312# Compute $ac_file's index in $config_headers. 22313_am_arg=$ac_file 22314_am_stamp_count=1 22315for _am_header in $config_headers :; do 22316 case $_am_header in 22317 $_am_arg | $_am_arg:* ) 22318 break ;; 22319 * ) 22320 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22321 esac 22322done 22323echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22324$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22325 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22326 X"$_am_arg" : 'X\(//\)$' \| \ 22327 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22328echo X"$_am_arg" | 22329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22330 s//\1/ 22331 q 22332 } 22333 /^X\(\/\/\)[^/].*/{ 22334 s//\1/ 22335 q 22336 } 22337 /^X\(\/\/\)$/{ 22338 s//\1/ 22339 q 22340 } 22341 /^X\(\/\).*/{ 22342 s//\1/ 22343 q 22344 } 22345 s/.*/./; q'`/stamp-h$_am_stamp_count 22346 ;; 22347 22348 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22349echo "$as_me: executing $ac_file commands" >&6;} 22350 ;; 22351 esac 22352 22353 22354 case $ac_file$ac_mode in 22355 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22356 # Strip MF so we end up with the name of the file. 22357 mf=`echo "$mf" | sed -e 's/:.*$//'` 22358 # Check whether this is an Automake generated Makefile or not. 22359 # We used to match only the files named `Makefile.in', but 22360 # some people rename them; so instead we look at the file content. 22361 # Grep'ing the first line is not enough: some people post-process 22362 # each Makefile.in and add a new line on top of each file to say so. 22363 # Grep'ing the whole file is not good either: AIX grep has a line 22364 # limit of 2048, but all sed's we know have understand at least 4000. 22365 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22366 dirpart=`$as_dirname -- "$mf" || 22367$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22368 X"$mf" : 'X\(//\)[^/]' \| \ 22369 X"$mf" : 'X\(//\)$' \| \ 22370 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22371echo X"$mf" | 22372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22373 s//\1/ 22374 q 22375 } 22376 /^X\(\/\/\)[^/].*/{ 22377 s//\1/ 22378 q 22379 } 22380 /^X\(\/\/\)$/{ 22381 s//\1/ 22382 q 22383 } 22384 /^X\(\/\).*/{ 22385 s//\1/ 22386 q 22387 } 22388 s/.*/./; q'` 22389 else 22390 continue 22391 fi 22392 # Extract the definition of DEPDIR, am__include, and am__quote 22393 # from the Makefile without running `make'. 22394 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22395 test -z "$DEPDIR" && continue 22396 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22397 test -z "am__include" && continue 22398 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22399 # When using ansi2knr, U may be empty or an underscore; expand it 22400 U=`sed -n 's/^U = //p' < "$mf"` 22401 # Find all dependency output files, they are included files with 22402 # $(DEPDIR) in their names. We invoke sed twice because it is the 22403 # simplest approach to changing $(DEPDIR) to its actual value in the 22404 # expansion. 22405 for file in `sed -n " 22406 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22407 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22408 # Make sure the directory exists. 22409 test -f "$dirpart/$file" && continue 22410 fdir=`$as_dirname -- "$file" || 22411$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22412 X"$file" : 'X\(//\)[^/]' \| \ 22413 X"$file" : 'X\(//\)$' \| \ 22414 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22415echo X"$file" | 22416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22417 s//\1/ 22418 q 22419 } 22420 /^X\(\/\/\)[^/].*/{ 22421 s//\1/ 22422 q 22423 } 22424 /^X\(\/\/\)$/{ 22425 s//\1/ 22426 q 22427 } 22428 /^X\(\/\).*/{ 22429 s//\1/ 22430 q 22431 } 22432 s/.*/./; q'` 22433 { as_dir=$dirpart/$fdir 22434 case $as_dir in #( 22435 -*) as_dir=./$as_dir;; 22436 esac 22437 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22438 as_dirs= 22439 while :; do 22440 case $as_dir in #( 22441 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22442 *) as_qdir=$as_dir;; 22443 esac 22444 as_dirs="'$as_qdir' $as_dirs" 22445 as_dir=`$as_dirname -- "$as_dir" || 22446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22447 X"$as_dir" : 'X\(//\)[^/]' \| \ 22448 X"$as_dir" : 'X\(//\)$' \| \ 22449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22450echo X"$as_dir" | 22451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22452 s//\1/ 22453 q 22454 } 22455 /^X\(\/\/\)[^/].*/{ 22456 s//\1/ 22457 q 22458 } 22459 /^X\(\/\/\)$/{ 22460 s//\1/ 22461 q 22462 } 22463 /^X\(\/\).*/{ 22464 s//\1/ 22465 q 22466 } 22467 s/.*/./; q'` 22468 test -d "$as_dir" && break 22469 done 22470 test -z "$as_dirs" || eval "mkdir $as_dirs" 22471 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22472echo "$as_me: error: cannot create directory $as_dir" >&2;} 22473 { (exit 1); exit 1; }; }; } 22474 # echo "creating $dirpart/$file" 22475 echo '# dummy' > "$dirpart/$file" 22476 done 22477done 22478 ;; 22479 22480 esac 22481done # for ac_tag 22482 22483 22484{ (exit 0); exit 0; } 22485_ACEOF 22486chmod +x $CONFIG_STATUS 22487ac_clean_files=$ac_clean_files_save 22488 22489 22490# configure is writing to config.log, and then calls config.status. 22491# config.status does its own redirection, appending to config.log. 22492# Unfortunately, on DOS this fails, as config.log is still kept open 22493# by configure, so config.status won't be able to write to it; its 22494# output is simply discarded. So we exec the FD to /dev/null, 22495# effectively closing config.log, so it can be properly (re)opened and 22496# appended to by config.status. When coming back to configure, we 22497# need to make the FD available again. 22498if test "$no_create" != yes; then 22499 ac_cs_success=: 22500 ac_config_status_args= 22501 test "$silent" = yes && 22502 ac_config_status_args="$ac_config_status_args --quiet" 22503 exec 5>/dev/null 22504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22505 exec 5>>config.log 22506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22507 # would make configure fail if this is the last instruction. 22508 $ac_cs_success || { (exit 1); exit 1; } 22509fi 22510 22511