1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xcpc 20070122. 4# 5# Report bugs to <ponceto@noos.fr>. 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='xcpc' 730PACKAGE_TARNAME='xcpc' 731PACKAGE_VERSION='20070122' 732PACKAGE_STRING='xcpc 20070122' 733PACKAGE_BUGREPORT='ponceto@noos.fr' 734 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811am__isrc 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830CC 831CFLAGS 832LDFLAGS 833CPPFLAGS 834ac_ct_CC 835EXEEXT 836OBJEXT 837DEPDIR 838am__include 839am__quote 840AMDEP_TRUE 841AMDEP_FALSE 842AMDEPBACKSLASH 843CCDEPMODE 844am__fastdepCC_TRUE 845am__fastdepCC_FALSE 846LEX 847LEX_OUTPUT_ROOT 848LEXLIB 849YACC 850YFLAGS 851build 852build_cpu 853build_vendor 854build_os 855host 856host_cpu 857host_vendor 858host_os 859GREP 860EGREP 861LN_S 862ECHO 863AR 864RANLIB 865CPP 866CXX 867CXXFLAGS 868ac_ct_CXX 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872CXXCPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877XMKMF 878X_CFLAGS 879X_PRE_LIBS 880X_LIBS 881X_EXTRA_LIBS 882PKG_CONFIG 883GLIB_CFLAGS 884GLIB_LIBS 885GLIB_GENMARSHAL 886GOBJECT_QUERY 887GLIB_MKENUMS 888MOTIF1_TRUE 889MOTIF1_FALSE 890ATHENA_TRUE 891ATHENA_FALSE 892LIBOBJS 893LTLIBOBJS' 894ac_subst_files='' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903YACC 904YFLAGS 905CPP 906CXX 907CXXFLAGS 908CCC 909CXXCPP 910F77 911FFLAGS 912XMKMF' 913 914 915# Initialize some variables set by options. 916ac_init_help= 917ac_init_version=false 918# The variables have the same names as the options, with 919# dashes changed to underlines. 920cache_file=/dev/null 921exec_prefix=NONE 922no_create= 923no_recursion= 924prefix=NONE 925program_prefix=NONE 926program_suffix=NONE 927program_transform_name=s,x,x, 928silent= 929site= 930srcdir= 931verbose= 932x_includes=NONE 933x_libraries=NONE 934 935# Installation directory options. 936# These are left unexpanded so users can "make install exec_prefix=/foo" 937# and all the variables that are supposed to be based on exec_prefix 938# by default will actually change. 939# Use braces instead of parens because sh, perl, etc. also accept them. 940# (The list follows the same order as the GNU Coding Standards.) 941bindir='${exec_prefix}/bin' 942sbindir='${exec_prefix}/sbin' 943libexecdir='${exec_prefix}/libexec' 944datarootdir='${prefix}/share' 945datadir='${datarootdir}' 946sysconfdir='${prefix}/etc' 947sharedstatedir='${prefix}/com' 948localstatedir='${prefix}/var' 949includedir='${prefix}/include' 950oldincludedir='/usr/include' 951docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 952infodir='${datarootdir}/info' 953htmldir='${docdir}' 954dvidir='${docdir}' 955pdfdir='${docdir}' 956psdir='${docdir}' 957libdir='${exec_prefix}/lib' 958localedir='${datarootdir}/locale' 959mandir='${datarootdir}/man' 960 961ac_prev= 962ac_dashdash= 963for ac_option 964do 965 # If the previous option needs an argument, assign it. 966 if test -n "$ac_prev"; then 967 eval $ac_prev=\$ac_option 968 ac_prev= 969 continue 970 fi 971 972 case $ac_option in 973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 # Accept the important Cygnus configure options, so we can diagnose typos. 978 979 case $ac_dashdash$ac_option in 980 --) 981 ac_dashdash=yes ;; 982 983 -bindir | --bindir | --bindi | --bind | --bin | --bi) 984 ac_prev=bindir ;; 985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 986 bindir=$ac_optarg ;; 987 988 -build | --build | --buil | --bui | --bu) 989 ac_prev=build_alias ;; 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 991 build_alias=$ac_optarg ;; 992 993 -cache-file | --cache-file | --cache-fil | --cache-fi \ 994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 995 ac_prev=cache_file ;; 996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 998 cache_file=$ac_optarg ;; 999 1000 --config-cache | -C) 1001 cache_file=config.cache ;; 1002 1003 -datadir | --datadir | --datadi | --datad) 1004 ac_prev=datadir ;; 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1006 datadir=$ac_optarg ;; 1007 1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1009 | --dataroo | --dataro | --datar) 1010 ac_prev=datarootdir ;; 1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1013 datarootdir=$ac_optarg ;; 1014 1015 -disable-* | --disable-*) 1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1020 { (exit 1); exit 1; }; } 1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1022 eval enable_$ac_feature=no ;; 1023 1024 -docdir | --docdir | --docdi | --doc | --do) 1025 ac_prev=docdir ;; 1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1027 docdir=$ac_optarg ;; 1028 1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1030 ac_prev=dvidir ;; 1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1032 dvidir=$ac_optarg ;; 1033 1034 -enable-* | --enable-*) 1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1039 { (exit 1); exit 1; }; } 1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1041 eval enable_$ac_feature=\$ac_optarg ;; 1042 1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1045 | --exec | --exe | --ex) 1046 ac_prev=exec_prefix ;; 1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1049 | --exec=* | --exe=* | --ex=*) 1050 exec_prefix=$ac_optarg ;; 1051 1052 -gas | --gas | --ga | --g) 1053 # Obsolete; use --with-gas. 1054 with_gas=yes ;; 1055 1056 -help | --help | --hel | --he | -h) 1057 ac_init_help=long ;; 1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1059 ac_init_help=recursive ;; 1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1061 ac_init_help=short ;; 1062 1063 -host | --host | --hos | --ho) 1064 ac_prev=host_alias ;; 1065 -host=* | --host=* | --hos=* | --ho=*) 1066 host_alias=$ac_optarg ;; 1067 1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1069 ac_prev=htmldir ;; 1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1071 | --ht=*) 1072 htmldir=$ac_optarg ;; 1073 1074 -includedir | --includedir | --includedi | --included | --include \ 1075 | --includ | --inclu | --incl | --inc) 1076 ac_prev=includedir ;; 1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1078 | --includ=* | --inclu=* | --incl=* | --inc=*) 1079 includedir=$ac_optarg ;; 1080 1081 -infodir | --infodir | --infodi | --infod | --info | --inf) 1082 ac_prev=infodir ;; 1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1084 infodir=$ac_optarg ;; 1085 1086 -libdir | --libdir | --libdi | --libd) 1087 ac_prev=libdir ;; 1088 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1089 libdir=$ac_optarg ;; 1090 1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1092 | --libexe | --libex | --libe) 1093 ac_prev=libexecdir ;; 1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1095 | --libexe=* | --libex=* | --libe=*) 1096 libexecdir=$ac_optarg ;; 1097 1098 -localedir | --localedir | --localedi | --localed | --locale) 1099 ac_prev=localedir ;; 1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1101 localedir=$ac_optarg ;; 1102 1103 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1104 | --localstate | --localstat | --localsta | --localst | --locals) 1105 ac_prev=localstatedir ;; 1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1108 localstatedir=$ac_optarg ;; 1109 1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1111 ac_prev=mandir ;; 1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1113 mandir=$ac_optarg ;; 1114 1115 -nfp | --nfp | --nf) 1116 # Obsolete; use --without-fp. 1117 with_fp=no ;; 1118 1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1120 | --no-cr | --no-c | -n) 1121 no_create=yes ;; 1122 1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1125 no_recursion=yes ;; 1126 1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1129 | --oldin | --oldi | --old | --ol | --o) 1130 ac_prev=oldincludedir ;; 1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1134 oldincludedir=$ac_optarg ;; 1135 1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1137 ac_prev=prefix ;; 1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1139 prefix=$ac_optarg ;; 1140 1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1142 | --program-pre | --program-pr | --program-p) 1143 ac_prev=program_prefix ;; 1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1146 program_prefix=$ac_optarg ;; 1147 1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1149 | --program-suf | --program-su | --program-s) 1150 ac_prev=program_suffix ;; 1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1153 program_suffix=$ac_optarg ;; 1154 1155 -program-transform-name | --program-transform-name \ 1156 | --program-transform-nam | --program-transform-na \ 1157 | --program-transform-n | --program-transform- \ 1158 | --program-transform | --program-transfor \ 1159 | --program-transfo | --program-transf \ 1160 | --program-trans | --program-tran \ 1161 | --progr-tra | --program-tr | --program-t) 1162 ac_prev=program_transform_name ;; 1163 -program-transform-name=* | --program-transform-name=* \ 1164 | --program-transform-nam=* | --program-transform-na=* \ 1165 | --program-transform-n=* | --program-transform-=* \ 1166 | --program-transform=* | --program-transfor=* \ 1167 | --program-transfo=* | --program-transf=* \ 1168 | --program-trans=* | --program-tran=* \ 1169 | --progr-tra=* | --program-tr=* | --program-t=*) 1170 program_transform_name=$ac_optarg ;; 1171 1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1173 ac_prev=pdfdir ;; 1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1175 pdfdir=$ac_optarg ;; 1176 1177 -psdir | --psdir | --psdi | --psd | --ps) 1178 ac_prev=psdir ;; 1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1180 psdir=$ac_optarg ;; 1181 1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1183 | -silent | --silent | --silen | --sile | --sil) 1184 silent=yes ;; 1185 1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1187 ac_prev=sbindir ;; 1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1189 | --sbi=* | --sb=*) 1190 sbindir=$ac_optarg ;; 1191 1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1194 | --sharedst | --shareds | --shared | --share | --shar \ 1195 | --sha | --sh) 1196 ac_prev=sharedstatedir ;; 1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1200 | --sha=* | --sh=*) 1201 sharedstatedir=$ac_optarg ;; 1202 1203 -site | --site | --sit) 1204 ac_prev=site ;; 1205 -site=* | --site=* | --sit=*) 1206 site=$ac_optarg ;; 1207 1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1209 ac_prev=srcdir ;; 1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1211 srcdir=$ac_optarg ;; 1212 1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1214 | --syscon | --sysco | --sysc | --sys | --sy) 1215 ac_prev=sysconfdir ;; 1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1218 sysconfdir=$ac_optarg ;; 1219 1220 -target | --target | --targe | --targ | --tar | --ta | --t) 1221 ac_prev=target_alias ;; 1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1223 target_alias=$ac_optarg ;; 1224 1225 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1226 verbose=yes ;; 1227 1228 -version | --version | --versio | --versi | --vers | -V) 1229 ac_init_version=: ;; 1230 1231 -with-* | --with-*) 1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 { echo "$as_me: error: invalid package name: $ac_package" >&2 1236 { (exit 1); exit 1; }; } 1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1238 eval with_$ac_package=\$ac_optarg ;; 1239 1240 -without-* | --without-*) 1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1242 # Reject names that are not valid shell variable names. 1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1244 { echo "$as_me: error: invalid package name: $ac_package" >&2 1245 { (exit 1); exit 1; }; } 1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1247 eval with_$ac_package=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) { echo "$as_me: error: unrecognized option: $ac_option 1268Try \`$0 --help' for more information." >&2 1269 { (exit 1); exit 1; }; } 1270 ;; 1271 1272 *=*) 1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1274 # Reject names that are not valid shell variable names. 1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1277 { (exit 1); exit 1; }; } 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 { echo "$as_me: error: missing argument to $ac_option" >&2 1295 { (exit 1); exit 1; }; } 1296fi 1297 1298# Be sure to have absolute directory names. 1299for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1300 datadir sysconfdir sharedstatedir localstatedir includedir \ 1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1302 libdir localedir mandir 1303do 1304 eval ac_val=\$$ac_var 1305 case $ac_val in 1306 [\\/$]* | ?:[\\/]* ) continue;; 1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1308 esac 1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1310 { (exit 1); exit 1; }; } 1311done 1312 1313# There might be people who depend on the old broken behavior: `$host' 1314# used to hold the argument of --host etc. 1315# FIXME: To remove some day. 1316build=$build_alias 1317host=$host_alias 1318target=$target_alias 1319 1320# FIXME: To remove some day. 1321if test "x$host_alias" != x; then 1322 if test "x$build_alias" = x; then 1323 cross_compiling=maybe 1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1325 If a cross compiler is detected then cross compile mode will be used." >&2 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 { echo "$as_me: error: Working directory cannot be determined" >&2 1341 { (exit 1); exit 1; }; } 1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1343 { echo "$as_me: error: pwd does not report name of working directory" >&2 1344 { (exit 1); exit 1; }; } 1345 1346 1347# Find the source files, if location was not specified. 1348if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$0" || 1352$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$0" : 'X\(//\)[^/]' \| \ 1354 X"$0" : 'X\(//\)$' \| \ 1355 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1356echo X"$0" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378else 1379 ac_srcdir_defaulted=no 1380fi 1381if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1384 { (exit 1); exit 1; }; } 1385fi 1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1387ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1389 { (exit 1); exit 1; }; } 1390 pwd)` 1391# When building in place, set srcdir=. 1392if test "$ac_abs_confdir" = "$ac_pwd"; then 1393 srcdir=. 1394fi 1395# Remove unnecessary trailing slashes from srcdir. 1396# Double slashes in file names in object file debugging info 1397# mess up M-x gdb in Emacs. 1398case $srcdir in 1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1400esac 1401for ac_var in $ac_precious_vars; do 1402 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_env_${ac_var}_value=\$${ac_var} 1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1405 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1406done 1407 1408# 1409# Report the --help message. 1410# 1411if test "$ac_init_help" = "long"; then 1412 # Omit some internal or obsolete options to make the list less imposing. 1413 # This message is too long to be a string in the A/UX 3.1 sh. 1414 cat <<_ACEOF 1415\`configure' configures xcpc 20070122 to adapt to many kinds of systems. 1416 1417Usage: $0 [OPTION]... [VAR=VALUE]... 1418 1419To assign environment variables (e.g., CC, CFLAGS...), specify them as 1420VAR=VALUE. See below for descriptions of some of the useful variables. 1421 1422Defaults for the options are specified in brackets. 1423 1424Configuration: 1425 -h, --help display this help and exit 1426 --help=short display options specific to this package 1427 --help=recursive display the short help of all the included packages 1428 -V, --version display version information and exit 1429 -q, --quiet, --silent do not print \`checking...' messages 1430 --cache-file=FILE cache test results in FILE [disabled] 1431 -C, --config-cache alias for \`--cache-file=config.cache' 1432 -n, --no-create do not create output files 1433 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1434 1435Installation directories: 1436 --prefix=PREFIX install architecture-independent files in PREFIX 1437 [$ac_default_prefix] 1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1439 [PREFIX] 1440 1441By default, \`make install' will install all the files in 1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1443an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1444for instance \`--prefix=\$HOME'. 1445 1446For better control, use the options below. 1447 1448Fine tuning of the installation directories: 1449 --bindir=DIR user executables [EPREFIX/bin] 1450 --sbindir=DIR system admin executables [EPREFIX/sbin] 1451 --libexecdir=DIR program executables [EPREFIX/libexec] 1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1455 --libdir=DIR object code libraries [EPREFIX/lib] 1456 --includedir=DIR C header files [PREFIX/include] 1457 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1460 --infodir=DIR info documentation [DATAROOTDIR/info] 1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1462 --mandir=DIR man documentation [DATAROOTDIR/man] 1463 --docdir=DIR documentation root [DATAROOTDIR/doc/xcpc] 1464 --htmldir=DIR html documentation [DOCDIR] 1465 --dvidir=DIR dvi documentation [DOCDIR] 1466 --pdfdir=DIR pdf documentation [DOCDIR] 1467 --psdir=DIR ps documentation [DOCDIR] 1468_ACEOF 1469 1470 cat <<\_ACEOF 1471 1472Program names: 1473 --program-prefix=PREFIX prepend PREFIX to installed program names 1474 --program-suffix=SUFFIX append SUFFIX to installed program names 1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1476 1477X features: 1478 --x-includes=DIR X include files are in DIR 1479 --x-libraries=DIR X library files are in DIR 1480 1481System types: 1482 --build=BUILD configure for building on BUILD [guessed] 1483 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1484_ACEOF 1485fi 1486 1487if test -n "$ac_init_help"; then 1488 case $ac_init_help in 1489 short | recursive ) echo "Configuration of xcpc 20070122:";; 1490 esac 1491 cat <<\_ACEOF 1492 1493Optional Features: 1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1496 --disable-dependency-tracking speeds up one-time build 1497 --enable-dependency-tracking do not reject slow dependency extractors 1498 --enable-shared[=PKGS] build shared libraries [default=yes] 1499 --enable-static[=PKGS] build static libraries [default=yes] 1500 --enable-fast-install[=PKGS] 1501 optimize for fast installation [default=yes] 1502 --disable-libtool-lock avoid locking (might break parallel builds) 1503 --disable-glibtest do not try to compile and run a test GLIB program 1504 --enable-debug turn on debugging [default=no] 1505 --enable-xshm add the support of XShm if available [default=yes] 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1511 --with-pic try to use only PIC/non-PIC objects [default=use 1512 both] 1513 --with-tags[=TAGS] include additional configurations [automatic] 1514 --with-x use the X Window System 1515 --with-motif1 build the Motif1 version 1516 --with-athena build the Athena version 1517 1518Some influential environment variables: 1519 CC C compiler command 1520 CFLAGS C compiler flags 1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1522 nonstandard directory <lib dir> 1523 LIBS libraries to pass to the linker, e.g. -l<library> 1524 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1525 you have headers in a nonstandard directory <include dir> 1526 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1527 the first program found out of: `bison -y', `byacc', `yacc'. 1528 YFLAGS The list of arguments that will be passed by default to $YACC. 1529 This script will default YFLAGS to the empty string to avoid a 1530 default value of `-d' given by some make applications. 1531 CPP C preprocessor 1532 CXX C++ compiler command 1533 CXXFLAGS C++ compiler flags 1534 CXXCPP C++ preprocessor 1535 F77 Fortran 77 compiler command 1536 FFLAGS Fortran 77 compiler flags 1537 XMKMF Path to xmkmf, Makefile generator for X Window System 1538 1539Use these variables to override the choices made by `configure' or to help 1540it to find libraries and programs with nonstandard names/locations. 1541 1542Report bugs to <ponceto@noos.fr>. 1543_ACEOF 1544ac_status=$? 1545fi 1546 1547if test "$ac_init_help" = "recursive"; then 1548 # If there are subdirs, report their specific --help. 1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1550 test -d "$ac_dir" || continue 1551 ac_builddir=. 1552 1553case "$ac_dir" in 1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555*) 1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1557 # A ".." for each directory in $ac_dir_suffix. 1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1559 case $ac_top_builddir_sub in 1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1562 esac ;; 1563esac 1564ac_abs_top_builddir=$ac_pwd 1565ac_abs_builddir=$ac_pwd$ac_dir_suffix 1566# for backward compatibility: 1567ac_top_builddir=$ac_top_build_prefix 1568 1569case $srcdir in 1570 .) # We are building in place. 1571 ac_srcdir=. 1572 ac_top_srcdir=$ac_top_builddir_sub 1573 ac_abs_top_srcdir=$ac_pwd ;; 1574 [\\/]* | ?:[\\/]* ) # Absolute name. 1575 ac_srcdir=$srcdir$ac_dir_suffix; 1576 ac_top_srcdir=$srcdir 1577 ac_abs_top_srcdir=$srcdir ;; 1578 *) # Relative name. 1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1580 ac_top_srcdir=$ac_top_build_prefix$srcdir 1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1582esac 1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1584 1585 cd "$ac_dir" || { ac_status=$?; continue; } 1586 # Check for guested configure. 1587 if test -f "$ac_srcdir/configure.gnu"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1590 elif test -f "$ac_srcdir/configure"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure" --help=recursive 1593 else 1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1595 fi || ac_status=$? 1596 cd "$ac_pwd" || { ac_status=$?; break; } 1597 done 1598fi 1599 1600test -n "$ac_init_help" && exit $ac_status 1601if $ac_init_version; then 1602 cat <<\_ACEOF 1603xcpc configure 20070122 1604generated by GNU Autoconf 2.61 1605 1606Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16072002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1608This configure script is free software; the Free Software Foundation 1609gives unlimited permission to copy, distribute and modify it. 1610_ACEOF 1611 exit 1612fi 1613cat >config.log <<_ACEOF 1614This file contains any messages produced by compilers while 1615running configure, to aid debugging if configure makes a mistake. 1616 1617It was created by xcpc $as_me 20070122, which was 1618generated by GNU Autoconf 2.61. Invocation command line was 1619 1620 $ $0 $@ 1621 1622_ACEOF 1623exec 5>>config.log 1624{ 1625cat <<_ASUNAME 1626## --------- ## 1627## Platform. ## 1628## --------- ## 1629 1630hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1631uname -m = `(uname -m) 2>/dev/null || echo unknown` 1632uname -r = `(uname -r) 2>/dev/null || echo unknown` 1633uname -s = `(uname -s) 2>/dev/null || echo unknown` 1634uname -v = `(uname -v) 2>/dev/null || echo unknown` 1635 1636/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1637/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1638 1639/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1640/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1641/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1642/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1643/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1644/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1645/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1646 1647_ASUNAME 1648 1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1650for as_dir in $PATH 1651do 1652 IFS=$as_save_IFS 1653 test -z "$as_dir" && as_dir=. 1654 echo "PATH: $as_dir" 1655done 1656IFS=$as_save_IFS 1657 1658} >&5 1659 1660cat >&5 <<_ACEOF 1661 1662 1663## ----------- ## 1664## Core tests. ## 1665## ----------- ## 1666 1667_ACEOF 1668 1669 1670# Keep a trace of the command line. 1671# Strip out --no-create and --no-recursion so they do not pile up. 1672# Strip out --silent because we don't want to record it for future runs. 1673# Also quote any args containing shell meta-characters. 1674# Make two passes to allow for proper duplicate-argument suppression. 1675ac_configure_args= 1676ac_configure_args0= 1677ac_configure_args1= 1678ac_must_keep_next=false 1679for ac_pass in 1 2 1680do 1681 for ac_arg 1682 do 1683 case $ac_arg in 1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1686 | -silent | --silent | --silen | --sile | --sil) 1687 continue ;; 1688 *\'*) 1689 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1690 esac 1691 case $ac_pass in 1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1693 2) 1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1695 if test $ac_must_keep_next = true; then 1696 ac_must_keep_next=false # Got value, back to normal. 1697 else 1698 case $ac_arg in 1699 *=* | --config-cache | -C | -disable-* | --disable-* \ 1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1702 | -with-* | --with-* | -without-* | --without-* | --x) 1703 case "$ac_configure_args0 " in 1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1705 esac 1706 ;; 1707 -* ) ac_must_keep_next=true ;; 1708 esac 1709 fi 1710 ac_configure_args="$ac_configure_args '$ac_arg'" 1711 ;; 1712 esac 1713 done 1714done 1715$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1716$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1717 1718# When interrupted or exit'd, cleanup temporary files, and complete 1719# config.log. We remove comments because anyway the quotes in there 1720# would cause problems or look ugly. 1721# WARNING: Use '\'' to represent an apostrophe within the trap. 1722# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1723trap 'exit_status=$? 1724 # Save into config.log some information that might help in debugging. 1725 { 1726 echo 1727 1728 cat <<\_ASBOX 1729## ---------------- ## 1730## Cache variables. ## 1731## ---------------- ## 1732_ASBOX 1733 echo 1734 # The following way of writing the cache mishandles newlines in values, 1735( 1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in #( 1739 *${as_nl}*) 1740 case $ac_var in #( 1741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1742echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1743 esac 1744 case $ac_var in #( 1745 _ | IFS | as_nl) ;; #( 1746 *) $as_unset $ac_var ;; 1747 esac ;; 1748 esac 1749 done 1750 (set) 2>&1 | 1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1752 *${as_nl}ac_space=\ *) 1753 sed -n \ 1754 "s/'\''/'\''\\\\'\'''\''/g; 1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1756 ;; #( 1757 *) 1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1759 ;; 1760 esac | 1761 sort 1762) 1763 echo 1764 1765 cat <<\_ASBOX 1766## ----------------- ## 1767## Output variables. ## 1768## ----------------- ## 1769_ASBOX 1770 echo 1771 for ac_var in $ac_subst_vars 1772 do 1773 eval ac_val=\$$ac_var 1774 case $ac_val in 1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1776 esac 1777 echo "$ac_var='\''$ac_val'\''" 1778 done | sort 1779 echo 1780 1781 if test -n "$ac_subst_files"; then 1782 cat <<\_ASBOX 1783## ------------------- ## 1784## File substitutions. ## 1785## ------------------- ## 1786_ASBOX 1787 echo 1788 for ac_var in $ac_subst_files 1789 do 1790 eval ac_val=\$$ac_var 1791 case $ac_val in 1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1793 esac 1794 echo "$ac_var='\''$ac_val'\''" 1795 done | sort 1796 echo 1797 fi 1798 1799 if test -s confdefs.h; then 1800 cat <<\_ASBOX 1801## ----------- ## 1802## confdefs.h. ## 1803## ----------- ## 1804_ASBOX 1805 echo 1806 cat confdefs.h 1807 echo 1808 fi 1809 test "$ac_signal" != 0 && 1810 echo "$as_me: caught signal $ac_signal" 1811 echo "$as_me: exit $exit_status" 1812 } >&5 1813 rm -f core *.core core.conftest.* && 1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1815 exit $exit_status 1816' 0 1817for ac_signal in 1 2 13 15; do 1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1819done 1820ac_signal=0 1821 1822# confdefs.h avoids OS command line length limits that DEFS can exceed. 1823rm -f -r conftest* confdefs.h 1824 1825# Predefined preprocessor variables. 1826 1827cat >>confdefs.h <<_ACEOF 1828#define PACKAGE_NAME "$PACKAGE_NAME" 1829_ACEOF 1830 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_VERSION "$PACKAGE_VERSION" 1839_ACEOF 1840 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_STRING "$PACKAGE_STRING" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1849_ACEOF 1850 1851 1852# Let the site file select an alternate cache file if it wants to. 1853# Prefer explicitly selected file to automatically selected ones. 1854if test -n "$CONFIG_SITE"; then 1855 set x "$CONFIG_SITE" 1856elif test "x$prefix" != xNONE; then 1857 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1858else 1859 set x "$ac_default_prefix/share/config.site" \ 1860 "$ac_default_prefix/etc/config.site" 1861fi 1862shift 1863for ac_site_file 1864do 1865 if test -r "$ac_site_file"; then 1866 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1867echo "$as_me: loading site script $ac_site_file" >&6;} 1868 sed 's/^/| /' "$ac_site_file" >&5 1869 . "$ac_site_file" 1870 fi 1871done 1872 1873if test -r "$cache_file"; then 1874 # Some versions of bash will fail to source /dev/null (special 1875 # files actually), so we avoid doing that. 1876 if test -f "$cache_file"; then 1877 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1878echo "$as_me: loading cache $cache_file" >&6;} 1879 case $cache_file in 1880 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1881 *) . "./$cache_file";; 1882 esac 1883 fi 1884else 1885 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1886echo "$as_me: creating cache $cache_file" >&6;} 1887 >$cache_file 1888fi 1889 1890# Check that the precious variables saved in the cache have kept the same 1891# value. 1892ac_cache_corrupted=false 1893for ac_var in $ac_precious_vars; do 1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1895 eval ac_new_set=\$ac_env_${ac_var}_set 1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1897 eval ac_new_val=\$ac_env_${ac_var}_value 1898 case $ac_old_set,$ac_new_set in 1899 set,) 1900 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1901echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1902 ac_cache_corrupted=: ;; 1903 ,set) 1904 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1905echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1906 ac_cache_corrupted=: ;; 1907 ,);; 1908 *) 1909 if test "x$ac_old_val" != "x$ac_new_val"; then 1910 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1911echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1912 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1913echo "$as_me: former value: $ac_old_val" >&2;} 1914 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1915echo "$as_me: current value: $ac_new_val" >&2;} 1916 ac_cache_corrupted=: 1917 fi;; 1918 esac 1919 # Pass precious variables to config.status. 1920 if test "$ac_new_set" = set; then 1921 case $ac_new_val in 1922 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1923 *) ac_arg=$ac_var=$ac_new_val ;; 1924 esac 1925 case " $ac_configure_args " in 1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1928 esac 1929 fi 1930done 1931if $ac_cache_corrupted; then 1932 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1933echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1934 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1935echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1936 { (exit 1); exit 1; }; } 1937fi 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963ac_ext=c 1964ac_cpp='$CPP $CPPFLAGS' 1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1967ac_compiler_gnu=$ac_cv_c_compiler_gnu 1968 1969 1970am__api_version='1.10' 1971 1972ac_aux_dir= 1973for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1974 if test -f "$ac_dir/install-sh"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/install-sh -c" 1977 break 1978 elif test -f "$ac_dir/install.sh"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/install.sh -c" 1981 break 1982 elif test -f "$ac_dir/shtool"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/shtool install -c" 1985 break 1986 fi 1987done 1988if test -z "$ac_aux_dir"; then 1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1990echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1991 { (exit 1); exit 1; }; } 1992fi 1993 1994# These three variables are undocumented and unsupported, 1995# and are intended to be withdrawn in a future Autoconf release. 1996# They can cause serious problems if a builder's source tree is in a directory 1997# whose full name contains unusual characters. 1998ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1999ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2000ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2001 2002 2003# Find a good install program. We prefer a C program (faster), 2004# so one script is as good as another. But avoid the broken or 2005# incompatible versions: 2006# SysV /etc/install, /usr/sbin/install 2007# SunOS /usr/etc/install 2008# IRIX /sbin/install 2009# AIX /bin/install 2010# AmigaOS /C/install, which installs bootblocks on floppy discs 2011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2012# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2014# OS/2's system install, which has a completely different semantic 2015# ./install, which can be erroneously created by make from ./install.sh. 2016{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2017echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2018if test -z "$INSTALL"; then 2019if test "${ac_cv_path_install+set}" = set; then 2020 echo $ECHO_N "(cached) $ECHO_C" >&6 2021else 2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 # Account for people who put trailing slashes in PATH elements. 2028case $as_dir/ in 2029 ./ | .// | /cC/* | \ 2030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2031 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2032 /usr/ucb/* ) ;; 2033 *) 2034 # OSF1 and SCO ODT 3.0 have their own names for install. 2035 # Don't use installbsd from OSF since it installs stuff as root 2036 # by default. 2037 for ac_prog in ginstall scoinst install; do 2038 for ac_exec_ext in '' $ac_executable_extensions; do 2039 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2040 if test $ac_prog = install && 2041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2042 # AIX install. It has an incompatible calling convention. 2043 : 2044 elif test $ac_prog = install && 2045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2046 # program-specific install script used by HP pwplus--don't use. 2047 : 2048 else 2049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2050 break 3 2051 fi 2052 fi 2053 done 2054 done 2055 ;; 2056esac 2057done 2058IFS=$as_save_IFS 2059 2060 2061fi 2062 if test "${ac_cv_path_install+set}" = set; then 2063 INSTALL=$ac_cv_path_install 2064 else 2065 # As a last resort, use the slow shell script. Don't cache a 2066 # value for INSTALL within a source directory, because that will 2067 # break other packages using the cache if that directory is 2068 # removed, or if the value is a relative name. 2069 INSTALL=$ac_install_sh 2070 fi 2071fi 2072{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2073echo "${ECHO_T}$INSTALL" >&6; } 2074 2075# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2076# It thinks the first close brace ends the variable substitution. 2077test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2078 2079test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2080 2081test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2082 2083{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2084echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2085# Just in case 2086sleep 1 2087echo timestamp > conftest.file 2088# Do `set' in a subshell so we don't clobber the current shell's 2089# arguments. Must try -L first in case configure is actually a 2090# symlink; some systems play weird games with the mod time of symlinks 2091# (eg FreeBSD returns the mod time of the symlink's containing 2092# directory). 2093if ( 2094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2095 if test "$*" = "X"; then 2096 # -L didn't work. 2097 set X `ls -t $srcdir/configure conftest.file` 2098 fi 2099 rm -f conftest.file 2100 if test "$*" != "X $srcdir/configure conftest.file" \ 2101 && test "$*" != "X conftest.file $srcdir/configure"; then 2102 2103 # If neither matched, then we have a broken ls. This can happen 2104 # if, for instance, CONFIG_SHELL is bash and it inherits a 2105 # broken ls alias from the environment. This has actually 2106 # happened. Such a system could not be considered "sane". 2107 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2108alias in your environment" >&5 2109echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2110alias in your environment" >&2;} 2111 { (exit 1); exit 1; }; } 2112 fi 2113 2114 test "$2" = conftest.file 2115 ) 2116then 2117 # Ok. 2118 : 2119else 2120 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2121Check your system clock" >&5 2122echo "$as_me: error: newly created file is older than distributed files! 2123Check your system clock" >&2;} 2124 { (exit 1); exit 1; }; } 2125fi 2126{ echo "$as_me:$LINENO: result: yes" >&5 2127echo "${ECHO_T}yes" >&6; } 2128test "$program_prefix" != NONE && 2129 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2130# Use a double $ so make ignores it. 2131test "$program_suffix" != NONE && 2132 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2133# Double any \ or $. echo might interpret backslashes. 2134# By default was `s,x,x', remove it if useless. 2135cat <<\_ACEOF >conftest.sed 2136s/[\\$]/&&/g;s/;s,x,x,$// 2137_ACEOF 2138program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2139rm -f conftest.sed 2140 2141# expand $ac_aux_dir to an absolute path 2142am_aux_dir=`cd $ac_aux_dir && pwd` 2143 2144test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2145# Use eval to expand $SHELL 2146if eval "$MISSING --run true"; then 2147 am_missing_run="$MISSING --run " 2148else 2149 am_missing_run= 2150 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2151echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2152fi 2153 2154{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2155echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2156if test -z "$MKDIR_P"; then 2157 if test "${ac_cv_path_mkdir+set}" = set; then 2158 echo $ECHO_N "(cached) $ECHO_C" >&6 2159else 2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2161for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2162do 2163 IFS=$as_save_IFS 2164 test -z "$as_dir" && as_dir=. 2165 for ac_prog in mkdir gmkdir; do 2166 for ac_exec_ext in '' $ac_executable_extensions; do 2167 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2169 'mkdir (GNU coreutils) '* | \ 2170 'mkdir (coreutils) '* | \ 2171 'mkdir (fileutils) '4.1*) 2172 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2173 break 3;; 2174 esac 2175 done 2176 done 2177done 2178IFS=$as_save_IFS 2179 2180fi 2181 2182 if test "${ac_cv_path_mkdir+set}" = set; then 2183 MKDIR_P="$ac_cv_path_mkdir -p" 2184 else 2185 # As a last resort, use the slow shell script. Don't cache a 2186 # value for MKDIR_P within a source directory, because that will 2187 # break other packages using the cache if that directory is 2188 # removed, or if the value is a relative name. 2189 test -d ./--version && rmdir ./--version 2190 MKDIR_P="$ac_install_sh -d" 2191 fi 2192fi 2193{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2194echo "${ECHO_T}$MKDIR_P" >&6; } 2195 2196mkdir_p="$MKDIR_P" 2197case $mkdir_p in 2198 [\\/$]* | ?:[\\/]*) ;; 2199 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2200esac 2201 2202for ac_prog in gawk mawk nawk awk 2203do 2204 # Extract the first word of "$ac_prog", so it can be a program name with args. 2205set dummy $ac_prog; ac_word=$2 2206{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2208if test "${ac_cv_prog_AWK+set}" = set; then 2209 echo $ECHO_N "(cached) $ECHO_C" >&6 2210else 2211 if test -n "$AWK"; then 2212 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2213else 2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2215for as_dir in $PATH 2216do 2217 IFS=$as_save_IFS 2218 test -z "$as_dir" && as_dir=. 2219 for ac_exec_ext in '' $ac_executable_extensions; do 2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2221 ac_cv_prog_AWK="$ac_prog" 2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2223 break 2 2224 fi 2225done 2226done 2227IFS=$as_save_IFS 2228 2229fi 2230fi 2231AWK=$ac_cv_prog_AWK 2232if test -n "$AWK"; then 2233 { echo "$as_me:$LINENO: result: $AWK" >&5 2234echo "${ECHO_T}$AWK" >&6; } 2235else 2236 { echo "$as_me:$LINENO: result: no" >&5 2237echo "${ECHO_T}no" >&6; } 2238fi 2239 2240 2241 test -n "$AWK" && break 2242done 2243 2244{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2245echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2246set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2247if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2248 echo $ECHO_N "(cached) $ECHO_C" >&6 2249else 2250 cat >conftest.make <<\_ACEOF 2251SHELL = /bin/sh 2252all: 2253 @echo '@@@%%%=$(MAKE)=@@@%%%' 2254_ACEOF 2255# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2256case `${MAKE-make} -f conftest.make 2>/dev/null` in 2257 *@@@%%%=?*=@@@%%%*) 2258 eval ac_cv_prog_make_${ac_make}_set=yes;; 2259 *) 2260 eval ac_cv_prog_make_${ac_make}_set=no;; 2261esac 2262rm -f conftest.make 2263fi 2264if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2265 { echo "$as_me:$LINENO: result: yes" >&5 2266echo "${ECHO_T}yes" >&6; } 2267 SET_MAKE= 2268else 2269 { echo "$as_me:$LINENO: result: no" >&5 2270echo "${ECHO_T}no" >&6; } 2271 SET_MAKE="MAKE=${MAKE-make}" 2272fi 2273 2274rm -rf .tst 2>/dev/null 2275mkdir .tst 2>/dev/null 2276if test -d .tst; then 2277 am__leading_dot=. 2278else 2279 am__leading_dot=_ 2280fi 2281rmdir .tst 2>/dev/null 2282 2283if test "`cd $srcdir && pwd`" != "`pwd`"; then 2284 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2285 # is not polluted with repeated "-I." 2286 am__isrc=' -I$(srcdir)' 2287 # test to see if srcdir already configured 2288 if test -f $srcdir/config.status; then 2289 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2290echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2291 { (exit 1); exit 1; }; } 2292 fi 2293fi 2294 2295# test whether we have cygpath 2296if test -z "$CYGPATH_W"; then 2297 if (cygpath --version) >/dev/null 2>/dev/null; then 2298 CYGPATH_W='cygpath -w' 2299 else 2300 CYGPATH_W=echo 2301 fi 2302fi 2303 2304 2305# Define the identity of the package. 2306 PACKAGE='xcpc' 2307 VERSION='20070122' 2308 2309 2310cat >>confdefs.h <<_ACEOF 2311#define PACKAGE "$PACKAGE" 2312_ACEOF 2313 2314 2315cat >>confdefs.h <<_ACEOF 2316#define VERSION "$VERSION" 2317_ACEOF 2318 2319# Some tools Automake needs. 2320 2321ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2322 2323 2324AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2325 2326 2327AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2328 2329 2330AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2331 2332 2333MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2334 2335install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2336 2337# Installed binaries are usually stripped using `strip' when the user 2338# run `make install-strip'. However `strip' might not be the right 2339# tool to use in cross-compilation environments, therefore Automake 2340# will honor the `STRIP' environment variable to overrule this program. 2341if test "$cross_compiling" != no; then 2342 if test -n "$ac_tool_prefix"; then 2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2344set dummy ${ac_tool_prefix}strip; ac_word=$2 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2347if test "${ac_cv_prog_STRIP+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 if test -n "$STRIP"; then 2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2352else 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2362 break 2 2363 fi 2364done 2365done 2366IFS=$as_save_IFS 2367 2368fi 2369fi 2370STRIP=$ac_cv_prog_STRIP 2371if test -n "$STRIP"; then 2372 { echo "$as_me:$LINENO: result: $STRIP" >&5 2373echo "${ECHO_T}$STRIP" >&6; } 2374else 2375 { echo "$as_me:$LINENO: result: no" >&5 2376echo "${ECHO_T}no" >&6; } 2377fi 2378 2379 2380fi 2381if test -z "$ac_cv_prog_STRIP"; then 2382 ac_ct_STRIP=$STRIP 2383 # Extract the first word of "strip", so it can be a program name with args. 2384set dummy strip; ac_word=$2 2385{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2388 echo $ECHO_N "(cached) $ECHO_C" >&6 2389else 2390 if test -n "$ac_ct_STRIP"; then 2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2392else 2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394for as_dir in $PATH 2395do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 for ac_exec_ext in '' $ac_executable_extensions; do 2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2400 ac_cv_prog_ac_ct_STRIP="strip" 2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2402 break 2 2403 fi 2404done 2405done 2406IFS=$as_save_IFS 2407 2408fi 2409fi 2410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2411if test -n "$ac_ct_STRIP"; then 2412 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2413echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2414else 2415 { echo "$as_me:$LINENO: result: no" >&5 2416echo "${ECHO_T}no" >&6; } 2417fi 2418 2419 if test "x$ac_ct_STRIP" = x; then 2420 STRIP=":" 2421 else 2422 case $cross_compiling:$ac_tool_warned in 2423yes:) 2424{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2425whose name does not start with the host triplet. If you think this 2426configuration is useful to you, please write to autoconf@gnu.org." >&5 2427echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2428whose name does not start with the host triplet. If you think this 2429configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2430ac_tool_warned=yes ;; 2431esac 2432 STRIP=$ac_ct_STRIP 2433 fi 2434else 2435 STRIP="$ac_cv_prog_STRIP" 2436fi 2437 2438fi 2439INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2440 2441# We need awk for the "check" target. The system "awk" is bad on 2442# some platforms. 2443# Always define AMTAR for backward compatibility. 2444 2445AMTAR=${AMTAR-"${am_missing_run}tar"} 2446 2447am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2448 2449 2450 2451 2452 2453ac_ext=c 2454ac_cpp='$CPP $CPPFLAGS' 2455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2457ac_compiler_gnu=$ac_cv_c_compiler_gnu 2458if test -n "$ac_tool_prefix"; then 2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2460set dummy ${ac_tool_prefix}gcc; ac_word=$2 2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2463if test "${ac_cv_prog_CC+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465else 2466 if test -n "$CC"; then 2467 ac_cv_prog_CC="$CC" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486CC=$ac_cv_prog_CC 2487if test -n "$CC"; then 2488 { echo "$as_me:$LINENO: result: $CC" >&5 2489echo "${ECHO_T}$CC" >&6; } 2490else 2491 { echo "$as_me:$LINENO: result: no" >&5 2492echo "${ECHO_T}no" >&6; } 2493fi 2494 2495 2496fi 2497if test -z "$ac_cv_prog_CC"; then 2498 ac_ct_CC=$CC 2499 # Extract the first word of "gcc", so it can be a program name with args. 2500set dummy gcc; ac_word=$2 2501{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505else 2506 if test -n "$ac_ct_CC"; then 2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2516 ac_cv_prog_ac_ct_CC="gcc" 2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526ac_ct_CC=$ac_cv_prog_ac_ct_CC 2527if test -n "$ac_ct_CC"; then 2528 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2529echo "${ECHO_T}$ac_ct_CC" >&6; } 2530else 2531 { echo "$as_me:$LINENO: result: no" >&5 2532echo "${ECHO_T}no" >&6; } 2533fi 2534 2535 if test "x$ac_ct_CC" = x; then 2536 CC="" 2537 else 2538 case $cross_compiling:$ac_tool_warned in 2539yes:) 2540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2541whose name does not start with the host triplet. If you think this 2542configuration is useful to you, please write to autoconf@gnu.org." >&5 2543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2544whose name does not start with the host triplet. If you think this 2545configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2546ac_tool_warned=yes ;; 2547esac 2548 CC=$ac_ct_CC 2549 fi 2550else 2551 CC="$ac_cv_prog_CC" 2552fi 2553 2554if test -z "$CC"; then 2555 if test -n "$ac_tool_prefix"; then 2556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2557set dummy ${ac_tool_prefix}cc; ac_word=$2 2558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2560if test "${ac_cv_prog_CC+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 if test -n "$CC"; then 2564 ac_cv_prog_CC="$CC" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_CC="${ac_tool_prefix}cc" 2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583CC=$ac_cv_prog_CC 2584if test -n "$CC"; then 2585 { echo "$as_me:$LINENO: result: $CC" >&5 2586echo "${ECHO_T}$CC" >&6; } 2587else 2588 { echo "$as_me:$LINENO: result: no" >&5 2589echo "${ECHO_T}no" >&6; } 2590fi 2591 2592 2593 fi 2594fi 2595if test -z "$CC"; then 2596 # Extract the first word of "cc", so it can be a program name with args. 2597set dummy cc; ac_word=$2 2598{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2600if test "${ac_cv_prog_CC+set}" = set; then 2601 echo $ECHO_N "(cached) $ECHO_C" >&6 2602else 2603 if test -n "$CC"; then 2604 ac_cv_prog_CC="$CC" # Let the user override the test. 2605else 2606 ac_prog_rejected=no 2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH 2609do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2615 ac_prog_rejected=yes 2616 continue 2617 fi 2618 ac_cv_prog_CC="cc" 2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623done 2624IFS=$as_save_IFS 2625 2626if test $ac_prog_rejected = yes; then 2627 # We found a bogon in the path, so make sure we never use it. 2628 set dummy $ac_cv_prog_CC 2629 shift 2630 if test $# != 0; then 2631 # We chose a different compiler from the bogus one. 2632 # However, it has the same basename, so the bogon will be chosen 2633 # first if we set CC to just the basename; use the full file name. 2634 shift 2635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2636 fi 2637fi 2638fi 2639fi 2640CC=$ac_cv_prog_CC 2641if test -n "$CC"; then 2642 { echo "$as_me:$LINENO: result: $CC" >&5 2643echo "${ECHO_T}$CC" >&6; } 2644else 2645 { echo "$as_me:$LINENO: result: no" >&5 2646echo "${ECHO_T}no" >&6; } 2647fi 2648 2649 2650fi 2651if test -z "$CC"; then 2652 if test -n "$ac_tool_prefix"; then 2653 for ac_prog in cl.exe 2654 do 2655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2656set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2659if test "${ac_cv_prog_CC+set}" = set; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 if test -n "$CC"; then 2663 ac_cv_prog_CC="$CC" # Let the user override the test. 2664else 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682CC=$ac_cv_prog_CC 2683if test -n "$CC"; then 2684 { echo "$as_me:$LINENO: result: $CC" >&5 2685echo "${ECHO_T}$CC" >&6; } 2686else 2687 { echo "$as_me:$LINENO: result: no" >&5 2688echo "${ECHO_T}no" >&6; } 2689fi 2690 2691 2692 test -n "$CC" && break 2693 done 2694fi 2695if test -z "$CC"; then 2696 ac_ct_CC=$CC 2697 for ac_prog in cl.exe 2698do 2699 # Extract the first word of "$ac_prog", so it can be a program name with args. 2700set dummy $ac_prog; ac_word=$2 2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 if test -n "$ac_ct_CC"; then 2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_ac_ct_CC="$ac_prog" 2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_CC=$ac_cv_prog_ac_ct_CC 2727if test -n "$ac_ct_CC"; then 2728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2729echo "${ECHO_T}$ac_ct_CC" >&6; } 2730else 2731 { echo "$as_me:$LINENO: result: no" >&5 2732echo "${ECHO_T}no" >&6; } 2733fi 2734 2735 2736 test -n "$ac_ct_CC" && break 2737done 2738 2739 if test "x$ac_ct_CC" = x; then 2740 CC="" 2741 else 2742 case $cross_compiling:$ac_tool_warned in 2743yes:) 2744{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2745whose name does not start with the host triplet. If you think this 2746configuration is useful to you, please write to autoconf@gnu.org." >&5 2747echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2748whose name does not start with the host triplet. If you think this 2749configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2750ac_tool_warned=yes ;; 2751esac 2752 CC=$ac_ct_CC 2753 fi 2754fi 2755 2756fi 2757 2758 2759test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2760See \`config.log' for more details." >&5 2761echo "$as_me: error: no acceptable C compiler found in \$PATH 2762See \`config.log' for more details." >&2;} 2763 { (exit 1); exit 1; }; } 2764 2765# Provide some information about the compiler. 2766echo "$as_me:$LINENO: checking for C compiler version" >&5 2767ac_compiler=`set X $ac_compile; echo $2` 2768{ (ac_try="$ac_compiler --version >&5" 2769case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772esac 2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2774 (eval "$ac_compiler --version >&5") 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); } 2778{ (ac_try="$ac_compiler -v >&5" 2779case "(($ac_try" in 2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2781 *) ac_try_echo=$ac_try;; 2782esac 2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2784 (eval "$ac_compiler -v >&5") 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } 2788{ (ac_try="$ac_compiler -V >&5" 2789case "(($ac_try" in 2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2791 *) ac_try_echo=$ac_try;; 2792esac 2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2794 (eval "$ac_compiler -V >&5") 2>&5 2795 ac_status=$? 2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2797 (exit $ac_status); } 2798 2799cat >conftest.$ac_ext <<_ACEOF 2800/* confdefs.h. */ 2801_ACEOF 2802cat confdefs.h >>conftest.$ac_ext 2803cat >>conftest.$ac_ext <<_ACEOF 2804/* end confdefs.h. */ 2805 2806int 2807main () 2808{ 2809 2810 ; 2811 return 0; 2812} 2813_ACEOF 2814ac_clean_files_save=$ac_clean_files 2815ac_clean_files="$ac_clean_files a.out a.exe b.out" 2816# Try to create an executable without -o first, disregard a.out. 2817# It will help us diagnose broken compilers, and finding out an intuition 2818# of exeext. 2819{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2820echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2821ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2822# 2823# List of possible output files, starting from the most likely. 2824# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2825# only as a last resort. b.out is created by i960 compilers. 2826ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2827# 2828# The IRIX 6 linker writes into existing files which may not be 2829# executable, retaining their permissions. Remove them first so a 2830# subsequent execution test works. 2831ac_rmfiles= 2832for ac_file in $ac_files 2833do 2834 case $ac_file in 2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2836 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2837 esac 2838done 2839rm -f $ac_rmfiles 2840 2841if { (ac_try="$ac_link_default" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_link_default") 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; then 2851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2853# in a Makefile. We should not override ac_cv_exeext if it was cached, 2854# so that the user can short-circuit this test for compilers unknown to 2855# Autoconf. 2856for ac_file in $ac_files '' 2857do 2858 test -f "$ac_file" || continue 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2861 ;; 2862 [ab].out ) 2863 # We found the default executable, but exeext='' is most 2864 # certainly right. 2865 break;; 2866 *.* ) 2867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2868 then :; else 2869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2870 fi 2871 # We set ac_cv_exeext here because the later test for it is not 2872 # safe: cross compilers may not add the suffix if given an `-o' 2873 # argument, so we may need to know it at that point already. 2874 # Even if this section looks crufty: it has the advantage of 2875 # actually working. 2876 break;; 2877 * ) 2878 break;; 2879 esac 2880done 2881test "$ac_cv_exeext" = no && ac_cv_exeext= 2882 2883else 2884 ac_file='' 2885fi 2886 2887{ echo "$as_me:$LINENO: result: $ac_file" >&5 2888echo "${ECHO_T}$ac_file" >&6; } 2889if test -z "$ac_file"; then 2890 echo "$as_me: failed program was:" >&5 2891sed 's/^/| /' conftest.$ac_ext >&5 2892 2893{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2894See \`config.log' for more details." >&5 2895echo "$as_me: error: C compiler cannot create executables 2896See \`config.log' for more details." >&2;} 2897 { (exit 77); exit 77; }; } 2898fi 2899 2900ac_exeext=$ac_cv_exeext 2901 2902# Check that the compiler produces executables we can run. If not, either 2903# the compiler is broken, or we cross compile. 2904{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2905echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2906# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2907# If not cross compiling, check that we can run a simple program. 2908if test "$cross_compiling" != yes; then 2909 if { ac_try='./$ac_file' 2910 { (case "(($ac_try" in 2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2912 *) ac_try_echo=$ac_try;; 2913esac 2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2915 (eval "$ac_try") 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); }; }; then 2919 cross_compiling=no 2920 else 2921 if test "$cross_compiling" = maybe; then 2922 cross_compiling=yes 2923 else 2924 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2925If you meant to cross compile, use \`--host'. 2926See \`config.log' for more details." >&5 2927echo "$as_me: error: cannot run C compiled programs. 2928If you meant to cross compile, use \`--host'. 2929See \`config.log' for more details." >&2;} 2930 { (exit 1); exit 1; }; } 2931 fi 2932 fi 2933fi 2934{ echo "$as_me:$LINENO: result: yes" >&5 2935echo "${ECHO_T}yes" >&6; } 2936 2937rm -f a.out a.exe conftest$ac_cv_exeext b.out 2938ac_clean_files=$ac_clean_files_save 2939# Check that the compiler produces executables we can run. If not, either 2940# the compiler is broken, or we cross compile. 2941{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2942echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2943{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2944echo "${ECHO_T}$cross_compiling" >&6; } 2945 2946{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2947echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2948if { (ac_try="$ac_link" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2954 (eval "$ac_link") 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; then 2958 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2959# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2960# work properly (i.e., refer to `conftest.exe'), while it won't with 2961# `rm'. 2962for ac_file in conftest.exe conftest conftest.*; do 2963 test -f "$ac_file" || continue 2964 case $ac_file in 2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2966 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2967 break;; 2968 * ) break;; 2969 esac 2970done 2971else 2972 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2973See \`config.log' for more details." >&5 2974echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2975See \`config.log' for more details." >&2;} 2976 { (exit 1); exit 1; }; } 2977fi 2978 2979rm -f conftest$ac_cv_exeext 2980{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2981echo "${ECHO_T}$ac_cv_exeext" >&6; } 2982 2983rm -f conftest.$ac_ext 2984EXEEXT=$ac_cv_exeext 2985ac_exeext=$EXEEXT 2986{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2987echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2988if test "${ac_cv_objext+set}" = set; then 2989 echo $ECHO_N "(cached) $ECHO_C" >&6 2990else 2991 cat >conftest.$ac_ext <<_ACEOF 2992/* confdefs.h. */ 2993_ACEOF 2994cat confdefs.h >>conftest.$ac_ext 2995cat >>conftest.$ac_ext <<_ACEOF 2996/* end confdefs.h. */ 2997 2998int 2999main () 3000{ 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006rm -f conftest.o conftest.obj 3007if { (ac_try="$ac_compile" 3008case "(($ac_try" in 3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3010 *) ac_try_echo=$ac_try;; 3011esac 3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3013 (eval "$ac_compile") 2>&5 3014 ac_status=$? 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); }; then 3017 for ac_file in conftest.o conftest.obj conftest.*; do 3018 test -f "$ac_file" || continue; 3019 case $ac_file in 3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3022 break;; 3023 esac 3024done 3025else 3026 echo "$as_me: failed program was:" >&5 3027sed 's/^/| /' conftest.$ac_ext >&5 3028 3029{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3030See \`config.log' for more details." >&5 3031echo "$as_me: error: cannot compute suffix of object files: cannot compile 3032See \`config.log' for more details." >&2;} 3033 { (exit 1); exit 1; }; } 3034fi 3035 3036rm -f conftest.$ac_cv_objext conftest.$ac_ext 3037fi 3038{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3039echo "${ECHO_T}$ac_cv_objext" >&6; } 3040OBJEXT=$ac_cv_objext 3041ac_objext=$OBJEXT 3042{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3043echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3044if test "${ac_cv_c_compiler_gnu+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046else 3047 cat >conftest.$ac_ext <<_ACEOF 3048/* confdefs.h. */ 3049_ACEOF 3050cat confdefs.h >>conftest.$ac_ext 3051cat >>conftest.$ac_ext <<_ACEOF 3052/* end confdefs.h. */ 3053 3054int 3055main () 3056{ 3057#ifndef __GNUC__ 3058 choke me 3059#endif 3060 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065rm -f conftest.$ac_objext 3066if { (ac_try="$ac_compile" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3072 (eval "$ac_compile") 2>conftest.er1 3073 ac_status=$? 3074 grep -v '^ *+' conftest.er1 >conftest.err 3075 rm -f conftest.er1 3076 cat conftest.err >&5 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); } && { 3079 test -z "$ac_c_werror_flag" || 3080 test ! -s conftest.err 3081 } && test -s conftest.$ac_objext; then 3082 ac_compiler_gnu=yes 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 ac_compiler_gnu=no 3088fi 3089 3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3091ac_cv_c_compiler_gnu=$ac_compiler_gnu 3092 3093fi 3094{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3095echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3096GCC=`test $ac_compiler_gnu = yes && echo yes` 3097ac_test_CFLAGS=${CFLAGS+set} 3098ac_save_CFLAGS=$CFLAGS 3099{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3100echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3101if test "${ac_cv_prog_cc_g+set}" = set; then 3102 echo $ECHO_N "(cached) $ECHO_C" >&6 3103else 3104 ac_save_c_werror_flag=$ac_c_werror_flag 3105 ac_c_werror_flag=yes 3106 ac_cv_prog_cc_g=no 3107 CFLAGS="-g" 3108 cat >conftest.$ac_ext <<_ACEOF 3109/* confdefs.h. */ 3110_ACEOF 3111cat confdefs.h >>conftest.$ac_ext 3112cat >>conftest.$ac_ext <<_ACEOF 3113/* end confdefs.h. */ 3114 3115int 3116main () 3117{ 3118 3119 ; 3120 return 0; 3121} 3122_ACEOF 3123rm -f conftest.$ac_objext 3124if { (ac_try="$ac_compile" 3125case "(($ac_try" in 3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3127 *) ac_try_echo=$ac_try;; 3128esac 3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3130 (eval "$ac_compile") 2>conftest.er1 3131 ac_status=$? 3132 grep -v '^ *+' conftest.er1 >conftest.err 3133 rm -f conftest.er1 3134 cat conftest.err >&5 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); } && { 3137 test -z "$ac_c_werror_flag" || 3138 test ! -s conftest.err 3139 } && test -s conftest.$ac_objext; then 3140 ac_cv_prog_cc_g=yes 3141else 3142 echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 CFLAGS="" 3146 cat >conftest.$ac_ext <<_ACEOF 3147/* confdefs.h. */ 3148_ACEOF 3149cat confdefs.h >>conftest.$ac_ext 3150cat >>conftest.$ac_ext <<_ACEOF 3151/* end confdefs.h. */ 3152 3153int 3154main () 3155{ 3156 3157 ; 3158 return 0; 3159} 3160_ACEOF 3161rm -f conftest.$ac_objext 3162if { (ac_try="$ac_compile" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_compile") 2>conftest.er1 3169 ac_status=$? 3170 grep -v '^ *+' conftest.er1 >conftest.err 3171 rm -f conftest.er1 3172 cat conftest.err >&5 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } && { 3175 test -z "$ac_c_werror_flag" || 3176 test ! -s conftest.err 3177 } && test -s conftest.$ac_objext; then 3178 : 3179else 3180 echo "$as_me: failed program was:" >&5 3181sed 's/^/| /' conftest.$ac_ext >&5 3182 3183 ac_c_werror_flag=$ac_save_c_werror_flag 3184 CFLAGS="-g" 3185 cat >conftest.$ac_ext <<_ACEOF 3186/* confdefs.h. */ 3187_ACEOF 3188cat confdefs.h >>conftest.$ac_ext 3189cat >>conftest.$ac_ext <<_ACEOF 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200rm -f conftest.$ac_objext 3201if { (ac_try="$ac_compile" 3202case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3207 (eval "$ac_compile") 2>conftest.er1 3208 ac_status=$? 3209 grep -v '^ *+' conftest.er1 >conftest.err 3210 rm -f conftest.er1 3211 cat conftest.err >&5 3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 (exit $ac_status); } && { 3214 test -z "$ac_c_werror_flag" || 3215 test ! -s conftest.err 3216 } && test -s conftest.$ac_objext; then 3217 ac_cv_prog_cc_g=yes 3218else 3219 echo "$as_me: failed program was:" >&5 3220sed 's/^/| /' conftest.$ac_ext >&5 3221 3222 3223fi 3224 3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226fi 3227 3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3229fi 3230 3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3232 ac_c_werror_flag=$ac_save_c_werror_flag 3233fi 3234{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3235echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3236if test "$ac_test_CFLAGS" = set; then 3237 CFLAGS=$ac_save_CFLAGS 3238elif test $ac_cv_prog_cc_g = yes; then 3239 if test "$GCC" = yes; then 3240 CFLAGS="-g -O2" 3241 else 3242 CFLAGS="-g" 3243 fi 3244else 3245 if test "$GCC" = yes; then 3246 CFLAGS="-O2" 3247 else 3248 CFLAGS= 3249 fi 3250fi 3251{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3252echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3253if test "${ac_cv_prog_cc_c89+set}" = set; then 3254 echo $ECHO_N "(cached) $ECHO_C" >&6 3255else 3256 ac_cv_prog_cc_c89=no 3257ac_save_CC=$CC 3258cat >conftest.$ac_ext <<_ACEOF 3259/* confdefs.h. */ 3260_ACEOF 3261cat confdefs.h >>conftest.$ac_ext 3262cat >>conftest.$ac_ext <<_ACEOF 3263/* end confdefs.h. */ 3264#include <stdarg.h> 3265#include <stdio.h> 3266#include <sys/types.h> 3267#include <sys/stat.h> 3268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3269struct buf { int x; }; 3270FILE * (*rcsopen) (struct buf *, struct stat *, int); 3271static char *e (p, i) 3272 char **p; 3273 int i; 3274{ 3275 return p[i]; 3276} 3277static char *f (char * (*g) (char **, int), char **p, ...) 3278{ 3279 char *s; 3280 va_list v; 3281 va_start (v,p); 3282 s = g (p, va_arg (v,int)); 3283 va_end (v); 3284 return s; 3285} 3286 3287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3288 function prototypes and stuff, but not '\xHH' hex character constants. 3289 These don't provoke an error unfortunately, instead are silently treated 3290 as 'x'. The following induces an error, until -std is added to get 3291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3292 array size at least. It's necessary to write '\x00'==0 to get something 3293 that's true only with -std. */ 3294int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3295 3296/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3297 inside strings and character constants. */ 3298#define FOO(x) 'x' 3299int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3300 3301int test (int i, double x); 3302struct s1 {int (*f) (int a);}; 3303struct s2 {int (*f) (double a);}; 3304int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3305int argc; 3306char **argv; 3307int 3308main () 3309{ 3310return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3317do 3318 CC="$ac_save_CC $ac_arg" 3319 rm -f conftest.$ac_objext 3320if { (ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3326 (eval "$ac_compile") 2>conftest.er1 3327 ac_status=$? 3328 grep -v '^ *+' conftest.er1 >conftest.err 3329 rm -f conftest.er1 3330 cat conftest.err >&5 3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3332 (exit $ac_status); } && { 3333 test -z "$ac_c_werror_flag" || 3334 test ! -s conftest.err 3335 } && test -s conftest.$ac_objext; then 3336 ac_cv_prog_cc_c89=$ac_arg 3337else 3338 echo "$as_me: failed program was:" >&5 3339sed 's/^/| /' conftest.$ac_ext >&5 3340 3341 3342fi 3343 3344rm -f core conftest.err conftest.$ac_objext 3345 test "x$ac_cv_prog_cc_c89" != "xno" && break 3346done 3347rm -f conftest.$ac_ext 3348CC=$ac_save_CC 3349 3350fi 3351# AC_CACHE_VAL 3352case "x$ac_cv_prog_cc_c89" in 3353 x) 3354 { echo "$as_me:$LINENO: result: none needed" >&5 3355echo "${ECHO_T}none needed" >&6; } ;; 3356 xno) 3357 { echo "$as_me:$LINENO: result: unsupported" >&5 3358echo "${ECHO_T}unsupported" >&6; } ;; 3359 *) 3360 CC="$CC $ac_cv_prog_cc_c89" 3361 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3362echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3363esac 3364 3365 3366ac_ext=c 3367ac_cpp='$CPP $CPPFLAGS' 3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3370ac_compiler_gnu=$ac_cv_c_compiler_gnu 3371DEPDIR="${am__leading_dot}deps" 3372 3373ac_config_commands="$ac_config_commands depfiles" 3374 3375 3376am_make=${MAKE-make} 3377cat > confinc << 'END' 3378am__doit: 3379 @echo done 3380.PHONY: am__doit 3381END 3382# If we don't find an include directive, just comment out the code. 3383{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3384echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3385am__include="#" 3386am__quote= 3387_am_result=none 3388# First try GNU make style include. 3389echo "include confinc" > confmf 3390# We grep out `Entering directory' and `Leaving directory' 3391# messages which can occur if `w' ends up in MAKEFLAGS. 3392# In particular we don't look at `^make:' because GNU make might 3393# be invoked under some other name (usually "gmake"), in which 3394# case it prints its new name instead of `make'. 3395if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3396 am__include=include 3397 am__quote= 3398 _am_result=GNU 3399fi 3400# Now try BSD make style include. 3401if test "$am__include" = "#"; then 3402 echo '.include "confinc"' > confmf 3403 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3404 am__include=.include 3405 am__quote="\"" 3406 _am_result=BSD 3407 fi 3408fi 3409 3410 3411{ echo "$as_me:$LINENO: result: $_am_result" >&5 3412echo "${ECHO_T}$_am_result" >&6; } 3413rm -f confinc confmf 3414 3415# Check whether --enable-dependency-tracking was given. 3416if test "${enable_dependency_tracking+set}" = set; then 3417 enableval=$enable_dependency_tracking; 3418fi 3419 3420if test "x$enable_dependency_tracking" != xno; then 3421 am_depcomp="$ac_aux_dir/depcomp" 3422 AMDEPBACKSLASH='\' 3423fi 3424 if test "x$enable_dependency_tracking" != xno; then 3425 AMDEP_TRUE= 3426 AMDEP_FALSE='#' 3427else 3428 AMDEP_TRUE='#' 3429 AMDEP_FALSE= 3430fi 3431 3432 3433 3434depcc="$CC" am_compiler_list= 3435 3436{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3437echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3438if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3439 echo $ECHO_N "(cached) $ECHO_C" >&6 3440else 3441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3442 # We make a subdir and do the tests there. Otherwise we can end up 3443 # making bogus files that we don't know about and never remove. For 3444 # instance it was reported that on HP-UX the gcc test will end up 3445 # making a dummy file named `D' -- because `-MD' means `put the output 3446 # in D'. 3447 mkdir conftest.dir 3448 # Copy depcomp to subdir because otherwise we won't find it if we're 3449 # using a relative directory. 3450 cp "$am_depcomp" conftest.dir 3451 cd conftest.dir 3452 # We will build objects and dependencies in a subdirectory because 3453 # it helps to detect inapplicable dependency modes. For instance 3454 # both Tru64's cc and ICC support -MD to output dependencies as a 3455 # side effect of compilation, but ICC will put the dependencies in 3456 # the current directory while Tru64 will put them in the object 3457 # directory. 3458 mkdir sub 3459 3460 am_cv_CC_dependencies_compiler_type=none 3461 if test "$am_compiler_list" = ""; then 3462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3463 fi 3464 for depmode in $am_compiler_list; do 3465 # Setup a source with many dependencies, because some compilers 3466 # like to wrap large dependency lists on column 80 (with \), and 3467 # we should not choose a depcomp mode which is confused by this. 3468 # 3469 # We need to recreate these files for each test, as the compiler may 3470 # overwrite some of them when testing with obscure command lines. 3471 # This happens at least with the AIX C compiler. 3472 : > sub/conftest.c 3473 for i in 1 2 3 4 5 6; do 3474 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3475 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3476 # Solaris 8's {/usr,}/bin/sh. 3477 touch sub/conftst$i.h 3478 done 3479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3480 3481 case $depmode in 3482 nosideeffect) 3483 # after this tag, mechanisms are not by side-effect, so they'll 3484 # only be used when explicitly requested 3485 if test "x$enable_dependency_tracking" = xyes; then 3486 continue 3487 else 3488 break 3489 fi 3490 ;; 3491 none) break ;; 3492 esac 3493 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3494 # mode. It turns out that the SunPro C++ compiler does not properly 3495 # handle `-M -o', and we need to detect this. 3496 if depmode=$depmode \ 3497 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3499 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3500 >/dev/null 2>conftest.err && 3501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3505 # icc doesn't choke on unknown options, it will just issue warnings 3506 # or remarks (even with -Werror). So we grep stderr for any message 3507 # that says an option was ignored or not supported. 3508 # When given -MP, icc 7.0 and 7.1 complain thusly: 3509 # icc: Command line warning: ignoring option '-M'; no argument required 3510 # The diagnosis changed in icc 8.0: 3511 # icc: Command line remark: option '-MP' not supported 3512 if (grep 'ignoring option' conftest.err || 3513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3514 am_cv_CC_dependencies_compiler_type=$depmode 3515 break 3516 fi 3517 fi 3518 done 3519 3520 cd .. 3521 rm -rf conftest.dir 3522else 3523 am_cv_CC_dependencies_compiler_type=none 3524fi 3525 3526fi 3527{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3528echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3529CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3530 3531 if 3532 test "x$enable_dependency_tracking" != xno \ 3533 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3534 am__fastdepCC_TRUE= 3535 am__fastdepCC_FALSE='#' 3536else 3537 am__fastdepCC_TRUE='#' 3538 am__fastdepCC_FALSE= 3539fi 3540 3541 3542 3543for ac_prog in flex lex 3544do 3545 # Extract the first word of "$ac_prog", so it can be a program name with args. 3546set dummy $ac_prog; ac_word=$2 3547{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3549if test "${ac_cv_prog_LEX+set}" = set; then 3550 echo $ECHO_N "(cached) $ECHO_C" >&6 3551else 3552 if test -n "$LEX"; then 3553 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 test -z "$as_dir" && as_dir=. 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3562 ac_cv_prog_LEX="$ac_prog" 3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566done 3567done 3568IFS=$as_save_IFS 3569 3570fi 3571fi 3572LEX=$ac_cv_prog_LEX 3573if test -n "$LEX"; then 3574 { echo "$as_me:$LINENO: result: $LEX" >&5 3575echo "${ECHO_T}$LEX" >&6; } 3576else 3577 { echo "$as_me:$LINENO: result: no" >&5 3578echo "${ECHO_T}no" >&6; } 3579fi 3580 3581 3582 test -n "$LEX" && break 3583done 3584test -n "$LEX" || LEX=":" 3585 3586if test "x$LEX" != "x:"; then 3587 cat >conftest.l <<_ACEOF 3588%% 3589a { ECHO; } 3590b { REJECT; } 3591c { yymore (); } 3592d { yyless (1); } 3593e { yyless (input () != 0); } 3594f { unput (yytext[0]); } 3595. { BEGIN INITIAL; } 3596%% 3597#ifdef YYTEXT_POINTER 3598extern char *yytext; 3599#endif 3600int 3601main (void) 3602{ 3603 return ! yylex () + ! yywrap (); 3604} 3605_ACEOF 3606{ (ac_try="$LEX conftest.l" 3607case "(($ac_try" in 3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3609 *) ac_try_echo=$ac_try;; 3610esac 3611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3612 (eval "$LEX conftest.l") 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } 3616{ echo "$as_me:$LINENO: checking lex output file root" >&5 3617echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } 3618if test "${ac_cv_prog_lex_root+set}" = set; then 3619 echo $ECHO_N "(cached) $ECHO_C" >&6 3620else 3621 3622if test -f lex.yy.c; then 3623 ac_cv_prog_lex_root=lex.yy 3624elif test -f lexyy.c; then 3625 ac_cv_prog_lex_root=lexyy 3626else 3627 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3628echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3629 { (exit 1); exit 1; }; } 3630fi 3631fi 3632{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3633echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } 3634LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3635 3636if test -z "${LEXLIB+set}"; then 3637 { echo "$as_me:$LINENO: checking lex library" >&5 3638echo $ECHO_N "checking lex library... $ECHO_C" >&6; } 3639if test "${ac_cv_lib_lex+set}" = set; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641else 3642 3643 ac_save_LIBS=$LIBS 3644 ac_cv_lib_lex='none needed' 3645 for ac_lib in '' -lfl -ll; do 3646 LIBS="$ac_lib $ac_save_LIBS" 3647 cat >conftest.$ac_ext <<_ACEOF 3648`cat $LEX_OUTPUT_ROOT.c` 3649_ACEOF 3650rm -f conftest.$ac_objext conftest$ac_exeext 3651if { (ac_try="$ac_link" 3652case "(($ac_try" in 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3654 *) ac_try_echo=$ac_try;; 3655esac 3656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3657 (eval "$ac_link") 2>conftest.er1 3658 ac_status=$? 3659 grep -v '^ *+' conftest.er1 >conftest.err 3660 rm -f conftest.er1 3661 cat conftest.err >&5 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3663 (exit $ac_status); } && { 3664 test -z "$ac_c_werror_flag" || 3665 test ! -s conftest.err 3666 } && test -s conftest$ac_exeext && 3667 $as_test_x conftest$ac_exeext; then 3668 ac_cv_lib_lex=$ac_lib 3669else 3670 echo "$as_me: failed program was:" >&5 3671sed 's/^/| /' conftest.$ac_ext >&5 3672 3673 3674fi 3675 3676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3677 conftest$ac_exeext conftest.$ac_ext 3678 test "$ac_cv_lib_lex" != 'none needed' && break 3679 done 3680 LIBS=$ac_save_LIBS 3681 3682fi 3683{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 3684echo "${ECHO_T}$ac_cv_lib_lex" >&6; } 3685 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 3686fi 3687 3688 3689{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3690echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } 3691if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3693else 3694 # POSIX says lex can declare yytext either as a pointer or an array; the 3695# default is implementation-dependent. Figure out which it is, since 3696# not all implementations provide the %pointer and %array declarations. 3697ac_cv_prog_lex_yytext_pointer=no 3698ac_save_LIBS=$LIBS 3699LIBS="$LEXLIB $ac_save_LIBS" 3700cat >conftest.$ac_ext <<_ACEOF 3701#define YYTEXT_POINTER 1 3702`cat $LEX_OUTPUT_ROOT.c` 3703_ACEOF 3704rm -f conftest.$ac_objext conftest$ac_exeext 3705if { (ac_try="$ac_link" 3706case "(($ac_try" in 3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3708 *) ac_try_echo=$ac_try;; 3709esac 3710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3711 (eval "$ac_link") 2>conftest.er1 3712 ac_status=$? 3713 grep -v '^ *+' conftest.er1 >conftest.err 3714 rm -f conftest.er1 3715 cat conftest.err >&5 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3717 (exit $ac_status); } && { 3718 test -z "$ac_c_werror_flag" || 3719 test ! -s conftest.err 3720 } && test -s conftest$ac_exeext && 3721 $as_test_x conftest$ac_exeext; then 3722 ac_cv_prog_lex_yytext_pointer=yes 3723else 3724 echo "$as_me: failed program was:" >&5 3725sed 's/^/| /' conftest.$ac_ext >&5 3726 3727 3728fi 3729 3730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3731 conftest$ac_exeext conftest.$ac_ext 3732LIBS=$ac_save_LIBS 3733 3734fi 3735{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3736echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } 3737if test $ac_cv_prog_lex_yytext_pointer = yes; then 3738 3739cat >>confdefs.h <<\_ACEOF 3740#define YYTEXT_POINTER 1 3741_ACEOF 3742 3743fi 3744rm -f conftest.l $LEX_OUTPUT_ROOT.c 3745 3746fi 3747for ac_prog in 'bison -y' byacc 3748do 3749 # Extract the first word of "$ac_prog", so it can be a program name with args. 3750set dummy $ac_prog; ac_word=$2 3751{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3753if test "${ac_cv_prog_YACC+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 if test -n "$YACC"; then 3757 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3758else 3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3760for as_dir in $PATH 3761do 3762 IFS=$as_save_IFS 3763 test -z "$as_dir" && as_dir=. 3764 for ac_exec_ext in '' $ac_executable_extensions; do 3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3766 ac_cv_prog_YACC="$ac_prog" 3767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3768 break 2 3769 fi 3770done 3771done 3772IFS=$as_save_IFS 3773 3774fi 3775fi 3776YACC=$ac_cv_prog_YACC 3777if test -n "$YACC"; then 3778 { echo "$as_me:$LINENO: result: $YACC" >&5 3779echo "${ECHO_T}$YACC" >&6; } 3780else 3781 { echo "$as_me:$LINENO: result: no" >&5 3782echo "${ECHO_T}no" >&6; } 3783fi 3784 3785 3786 test -n "$YACC" && break 3787done 3788test -n "$YACC" || YACC="yacc" 3789 3790# Check whether --enable-shared was given. 3791if test "${enable_shared+set}" = set; then 3792 enableval=$enable_shared; p=${PACKAGE-default} 3793 case $enableval in 3794 yes) enable_shared=yes ;; 3795 no) enable_shared=no ;; 3796 *) 3797 enable_shared=no 3798 # Look at the argument we got. We use all the common list separators. 3799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3800 for pkg in $enableval; do 3801 IFS="$lt_save_ifs" 3802 if test "X$pkg" = "X$p"; then 3803 enable_shared=yes 3804 fi 3805 done 3806 IFS="$lt_save_ifs" 3807 ;; 3808 esac 3809else 3810 enable_shared=yes 3811fi 3812 3813 3814# Check whether --enable-static was given. 3815if test "${enable_static+set}" = set; then 3816 enableval=$enable_static; p=${PACKAGE-default} 3817 case $enableval in 3818 yes) enable_static=yes ;; 3819 no) enable_static=no ;; 3820 *) 3821 enable_static=no 3822 # Look at the argument we got. We use all the common list separators. 3823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3824 for pkg in $enableval; do 3825 IFS="$lt_save_ifs" 3826 if test "X$pkg" = "X$p"; then 3827 enable_static=yes 3828 fi 3829 done 3830 IFS="$lt_save_ifs" 3831 ;; 3832 esac 3833else 3834 enable_static=yes 3835fi 3836 3837 3838# Check whether --enable-fast-install was given. 3839if test "${enable_fast_install+set}" = set; then 3840 enableval=$enable_fast_install; p=${PACKAGE-default} 3841 case $enableval in 3842 yes) enable_fast_install=yes ;; 3843 no) enable_fast_install=no ;; 3844 *) 3845 enable_fast_install=no 3846 # Look at the argument we got. We use all the common list separators. 3847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3848 for pkg in $enableval; do 3849 IFS="$lt_save_ifs" 3850 if test "X$pkg" = "X$p"; then 3851 enable_fast_install=yes 3852 fi 3853 done 3854 IFS="$lt_save_ifs" 3855 ;; 3856 esac 3857else 3858 enable_fast_install=yes 3859fi 3860 3861 3862# Make sure we can run config.sub. 3863$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3864 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3865echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3866 { (exit 1); exit 1; }; } 3867 3868{ echo "$as_me:$LINENO: checking build system type" >&5 3869echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3870if test "${ac_cv_build+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 ac_build_alias=$build_alias 3874test "x$ac_build_alias" = x && 3875 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3876test "x$ac_build_alias" = x && 3877 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3878echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3879 { (exit 1); exit 1; }; } 3880ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3881 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3882echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3883 { (exit 1); exit 1; }; } 3884 3885fi 3886{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3887echo "${ECHO_T}$ac_cv_build" >&6; } 3888case $ac_cv_build in 3889*-*-*) ;; 3890*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3891echo "$as_me: error: invalid value of canonical build" >&2;} 3892 { (exit 1); exit 1; }; };; 3893esac 3894build=$ac_cv_build 3895ac_save_IFS=$IFS; IFS='-' 3896set x $ac_cv_build 3897shift 3898build_cpu=$1 3899build_vendor=$2 3900shift; shift 3901# Remember, the first character of IFS is used to create $*, 3902# except with old shells: 3903build_os=$* 3904IFS=$ac_save_IFS 3905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3906 3907 3908{ echo "$as_me:$LINENO: checking host system type" >&5 3909echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3910if test "${ac_cv_host+set}" = set; then 3911 echo $ECHO_N "(cached) $ECHO_C" >&6 3912else 3913 if test "x$host_alias" = x; then 3914 ac_cv_host=$ac_cv_build 3915else 3916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3918echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3919 { (exit 1); exit 1; }; } 3920fi 3921 3922fi 3923{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3924echo "${ECHO_T}$ac_cv_host" >&6; } 3925case $ac_cv_host in 3926*-*-*) ;; 3927*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3928echo "$as_me: error: invalid value of canonical host" >&2;} 3929 { (exit 1); exit 1; }; };; 3930esac 3931host=$ac_cv_host 3932ac_save_IFS=$IFS; IFS='-' 3933set x $ac_cv_host 3934shift 3935host_cpu=$1 3936host_vendor=$2 3937shift; shift 3938# Remember, the first character of IFS is used to create $*, 3939# except with old shells: 3940host_os=$* 3941IFS=$ac_save_IFS 3942case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3943 3944 3945{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3946echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3947if test "${lt_cv_path_SED+set}" = set; then 3948 echo $ECHO_N "(cached) $ECHO_C" >&6 3949else 3950 # Loop through the user's path and test for sed and gsed. 3951# Then use that list of sed's as ones to test for truncation. 3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3953for as_dir in $PATH 3954do 3955 IFS=$as_save_IFS 3956 test -z "$as_dir" && as_dir=. 3957 for lt_ac_prog in sed gsed; do 3958 for ac_exec_ext in '' $ac_executable_extensions; do 3959 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3960 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3961 fi 3962 done 3963 done 3964done 3965lt_ac_max=0 3966lt_ac_count=0 3967# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3968# along with /bin/sed that truncates output. 3969for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3970 test ! -f $lt_ac_sed && continue 3971 cat /dev/null > conftest.in 3972 lt_ac_count=0 3973 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3974 # Check for GNU sed and select it if it is found. 3975 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3976 lt_cv_path_SED=$lt_ac_sed 3977 break 3978 fi 3979 while true; do 3980 cat conftest.in conftest.in >conftest.tmp 3981 mv conftest.tmp conftest.in 3982 cp conftest.in conftest.nl 3983 echo >>conftest.nl 3984 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3985 cmp -s conftest.out conftest.nl || break 3986 # 10000 chars as input seems more than enough 3987 test $lt_ac_count -gt 10 && break 3988 lt_ac_count=`expr $lt_ac_count + 1` 3989 if test $lt_ac_count -gt $lt_ac_max; then 3990 lt_ac_max=$lt_ac_count 3991 lt_cv_path_SED=$lt_ac_sed 3992 fi 3993 done 3994done 3995 3996fi 3997 3998SED=$lt_cv_path_SED 3999{ echo "$as_me:$LINENO: result: $SED" >&5 4000echo "${ECHO_T}$SED" >&6; } 4001 4002{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4003echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4004if test "${ac_cv_path_GREP+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006else 4007 # Extract the first word of "grep ggrep" to use in msg output 4008if test -z "$GREP"; then 4009set dummy grep ggrep; ac_prog_name=$2 4010if test "${ac_cv_path_GREP+set}" = set; then 4011 echo $ECHO_N "(cached) $ECHO_C" >&6 4012else 4013 ac_path_GREP_found=false 4014# Loop through the user's path and test for each of PROGNAME-LIST 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_prog in grep ggrep; do 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4023 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4024 # Check for GNU ac_path_GREP and select it if it is found. 4025 # Check for GNU $ac_path_GREP 4026case `"$ac_path_GREP" --version 2>&1` in 4027*GNU*) 4028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4029*) 4030 ac_count=0 4031 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4032 while : 4033 do 4034 cat "conftest.in" "conftest.in" >"conftest.tmp" 4035 mv "conftest.tmp" "conftest.in" 4036 cp "conftest.in" "conftest.nl" 4037 echo 'GREP' >> "conftest.nl" 4038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4040 ac_count=`expr $ac_count + 1` 4041 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4042 # Best one so far, save it but keep looking for a better one 4043 ac_cv_path_GREP="$ac_path_GREP" 4044 ac_path_GREP_max=$ac_count 4045 fi 4046 # 10*(2^10) chars as input seems more than enough 4047 test $ac_count -gt 10 && break 4048 done 4049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4050esac 4051 4052 4053 $ac_path_GREP_found && break 3 4054 done 4055done 4056 4057done 4058IFS=$as_save_IFS 4059 4060 4061fi 4062 4063GREP="$ac_cv_path_GREP" 4064if test -z "$GREP"; then 4065 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4066echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4067 { (exit 1); exit 1; }; } 4068fi 4069 4070else 4071 ac_cv_path_GREP=$GREP 4072fi 4073 4074 4075fi 4076{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4077echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4078 GREP="$ac_cv_path_GREP" 4079 4080 4081{ echo "$as_me:$LINENO: checking for egrep" >&5 4082echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4083if test "${ac_cv_path_EGREP+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4087 then ac_cv_path_EGREP="$GREP -E" 4088 else 4089 # Extract the first word of "egrep" to use in msg output 4090if test -z "$EGREP"; then 4091set dummy egrep; ac_prog_name=$2 4092if test "${ac_cv_path_EGREP+set}" = set; then 4093 echo $ECHO_N "(cached) $ECHO_C" >&6 4094else 4095 ac_path_EGREP_found=false 4096# Loop through the user's path and test for each of PROGNAME-LIST 4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in egrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4105 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4106 # Check for GNU ac_path_EGREP and select it if it is found. 4107 # Check for GNU $ac_path_EGREP 4108case `"$ac_path_EGREP" --version 2>&1` in 4109*GNU*) 4110 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4111*) 4112 ac_count=0 4113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 echo 'EGREP' >> "conftest.nl" 4120 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 ac_count=`expr $ac_count + 1` 4123 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_EGREP="$ac_path_EGREP" 4126 ac_path_EGREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132esac 4133 4134 4135 $ac_path_EGREP_found && break 3 4136 done 4137done 4138 4139done 4140IFS=$as_save_IFS 4141 4142 4143fi 4144 4145EGREP="$ac_cv_path_EGREP" 4146if test -z "$EGREP"; then 4147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4148echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4149 { (exit 1); exit 1; }; } 4150fi 4151 4152else 4153 ac_cv_path_EGREP=$EGREP 4154fi 4155 4156 4157 fi 4158fi 4159{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4160echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4161 EGREP="$ac_cv_path_EGREP" 4162 4163 4164 4165# Check whether --with-gnu-ld was given. 4166if test "${with_gnu_ld+set}" = set; then 4167 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4168else 4169 with_gnu_ld=no 4170fi 4171 4172ac_prog=ld 4173if test "$GCC" = yes; then 4174 # Check if gcc -print-prog-name=ld gives a path. 4175 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4176echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4177 case $host in 4178 *-*-mingw*) 4179 # gcc leaves a trailing carriage return which upsets mingw 4180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4181 *) 4182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4183 esac 4184 case $ac_prog in 4185 # Accept absolute paths. 4186 [\\/]* | ?:[\\/]*) 4187 re_direlt='/[^/][^/]*/\.\./' 4188 # Canonicalize the pathname of ld 4189 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4190 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4191 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4192 done 4193 test -z "$LD" && LD="$ac_prog" 4194 ;; 4195 "") 4196 # If it fails, then pretend we aren't using GCC. 4197 ac_prog=ld 4198 ;; 4199 *) 4200 # If it is relative, then search for the first ld in PATH. 4201 with_gnu_ld=unknown 4202 ;; 4203 esac 4204elif test "$with_gnu_ld" = yes; then 4205 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4206echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4207else 4208 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4209echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4210fi 4211if test "${lt_cv_path_LD+set}" = set; then 4212 echo $ECHO_N "(cached) $ECHO_C" >&6 4213else 4214 if test -z "$LD"; then 4215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4216 for ac_dir in $PATH; do 4217 IFS="$lt_save_ifs" 4218 test -z "$ac_dir" && ac_dir=. 4219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4220 lt_cv_path_LD="$ac_dir/$ac_prog" 4221 # Check to see if the program is GNU ld. I'd rather use --version, 4222 # but apparently some variants of GNU ld only accept -v. 4223 # Break only if it was the GNU/non-GNU ld that we prefer. 4224 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4225 *GNU* | *'with BFD'*) 4226 test "$with_gnu_ld" != no && break 4227 ;; 4228 *) 4229 test "$with_gnu_ld" != yes && break 4230 ;; 4231 esac 4232 fi 4233 done 4234 IFS="$lt_save_ifs" 4235else 4236 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4237fi 4238fi 4239 4240LD="$lt_cv_path_LD" 4241if test -n "$LD"; then 4242 { echo "$as_me:$LINENO: result: $LD" >&5 4243echo "${ECHO_T}$LD" >&6; } 4244else 4245 { echo "$as_me:$LINENO: result: no" >&5 4246echo "${ECHO_T}no" >&6; } 4247fi 4248test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4249echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4250 { (exit 1); exit 1; }; } 4251{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4252echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4253if test "${lt_cv_prog_gnu_ld+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4257case `$LD -v 2>&1 </dev/null` in 4258*GNU* | *'with BFD'*) 4259 lt_cv_prog_gnu_ld=yes 4260 ;; 4261*) 4262 lt_cv_prog_gnu_ld=no 4263 ;; 4264esac 4265fi 4266{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4267echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4268with_gnu_ld=$lt_cv_prog_gnu_ld 4269 4270 4271{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4272echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4273if test "${lt_cv_ld_reload_flag+set}" = set; then 4274 echo $ECHO_N "(cached) $ECHO_C" >&6 4275else 4276 lt_cv_ld_reload_flag='-r' 4277fi 4278{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4279echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4280reload_flag=$lt_cv_ld_reload_flag 4281case $reload_flag in 4282"" | " "*) ;; 4283*) reload_flag=" $reload_flag" ;; 4284esac 4285reload_cmds='$LD$reload_flag -o $output$reload_objs' 4286case $host_os in 4287 darwin*) 4288 if test "$GCC" = yes; then 4289 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4290 else 4291 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4292 fi 4293 ;; 4294esac 4295 4296{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4297echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4298if test "${lt_cv_path_NM+set}" = set; then 4299 echo $ECHO_N "(cached) $ECHO_C" >&6 4300else 4301 if test -n "$NM"; then 4302 # Let the user override the test. 4303 lt_cv_path_NM="$NM" 4304else 4305 lt_nm_to_check="${ac_tool_prefix}nm" 4306 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4307 lt_nm_to_check="$lt_nm_to_check nm" 4308 fi 4309 for lt_tmp_nm in $lt_nm_to_check; do 4310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4311 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4312 IFS="$lt_save_ifs" 4313 test -z "$ac_dir" && ac_dir=. 4314 tmp_nm="$ac_dir/$lt_tmp_nm" 4315 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4316 # Check to see if the nm accepts a BSD-compat flag. 4317 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4318 # nm: unknown option "B" ignored 4319 # Tru64's nm complains that /dev/null is an invalid object file 4320 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4321 */dev/null* | *'Invalid file or object type'*) 4322 lt_cv_path_NM="$tmp_nm -B" 4323 break 4324 ;; 4325 *) 4326 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4327 */dev/null*) 4328 lt_cv_path_NM="$tmp_nm -p" 4329 break 4330 ;; 4331 *) 4332 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4333 continue # so that we can try to find one that supports BSD flags 4334 ;; 4335 esac 4336 ;; 4337 esac 4338 fi 4339 done 4340 IFS="$lt_save_ifs" 4341 done 4342 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4343fi 4344fi 4345{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4346echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4347NM="$lt_cv_path_NM" 4348 4349{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4350echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4351LN_S=$as_ln_s 4352if test "$LN_S" = "ln -s"; then 4353 { echo "$as_me:$LINENO: result: yes" >&5 4354echo "${ECHO_T}yes" >&6; } 4355else 4356 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4357echo "${ECHO_T}no, using $LN_S" >&6; } 4358fi 4359 4360{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4361echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4362if test "${lt_cv_deplibs_check_method+set}" = set; then 4363 echo $ECHO_N "(cached) $ECHO_C" >&6 4364else 4365 lt_cv_file_magic_cmd='$MAGIC_CMD' 4366lt_cv_file_magic_test_file= 4367lt_cv_deplibs_check_method='unknown' 4368# Need to set the preceding variable on all platforms that support 4369# interlibrary dependencies. 4370# 'none' -- dependencies not supported. 4371# `unknown' -- same as none, but documents that we really don't know. 4372# 'pass_all' -- all dependencies passed with no checks. 4373# 'test_compile' -- check by making test program. 4374# 'file_magic [[regex]]' -- check by looking for files in library path 4375# which responds to the $file_magic_cmd with a given extended regex. 4376# If you have `file' or equivalent on your system and you're not sure 4377# whether `pass_all' will *always* work, you probably want this one. 4378 4379case $host_os in 4380aix4* | aix5*) 4381 lt_cv_deplibs_check_method=pass_all 4382 ;; 4383 4384beos*) 4385 lt_cv_deplibs_check_method=pass_all 4386 ;; 4387 4388bsdi[45]*) 4389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4390 lt_cv_file_magic_cmd='/usr/bin/file -L' 4391 lt_cv_file_magic_test_file=/shlib/libc.so 4392 ;; 4393 4394cygwin*) 4395 # func_win32_libid is a shell function defined in ltmain.sh 4396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4397 lt_cv_file_magic_cmd='func_win32_libid' 4398 ;; 4399 4400mingw* | pw32*) 4401 # Base MSYS/MinGW do not provide the 'file' command needed by 4402 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4403 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4404 lt_cv_file_magic_cmd='$OBJDUMP -f' 4405 ;; 4406 4407darwin* | rhapsody*) 4408 lt_cv_deplibs_check_method=pass_all 4409 ;; 4410 4411freebsd* | kfreebsd*-gnu | dragonfly*) 4412 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4413 case $host_cpu in 4414 i*86 ) 4415 # Not sure whether the presence of OpenBSD here was a mistake. 4416 # Let's accept both of them until this is cleared up. 4417 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4418 lt_cv_file_magic_cmd=/usr/bin/file 4419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4420 ;; 4421 esac 4422 else 4423 lt_cv_deplibs_check_method=pass_all 4424 fi 4425 ;; 4426 4427gnu*) 4428 lt_cv_deplibs_check_method=pass_all 4429 ;; 4430 4431hpux10.20* | hpux11*) 4432 lt_cv_file_magic_cmd=/usr/bin/file 4433 case $host_cpu in 4434 ia64*) 4435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4437 ;; 4438 hppa*64*) 4439 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]' 4440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4441 ;; 4442 *) 4443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4444 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4445 ;; 4446 esac 4447 ;; 4448 4449interix3*) 4450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4452 ;; 4453 4454irix5* | irix6* | nonstopux*) 4455 case $LD in 4456 *-32|*"-32 ") libmagic=32-bit;; 4457 *-n32|*"-n32 ") libmagic=N32;; 4458 *-64|*"-64 ") libmagic=64-bit;; 4459 *) libmagic=never-match;; 4460 esac 4461 lt_cv_deplibs_check_method=pass_all 4462 ;; 4463 4464# This must be Linux ELF. 4465linux*) 4466 lt_cv_deplibs_check_method=pass_all 4467 ;; 4468 4469netbsd*) 4470 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4472 else 4473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4474 fi 4475 ;; 4476 4477newos6*) 4478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4479 lt_cv_file_magic_cmd=/usr/bin/file 4480 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4481 ;; 4482 4483nto-qnx*) 4484 lt_cv_deplibs_check_method=unknown 4485 ;; 4486 4487openbsd*) 4488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4490 else 4491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4492 fi 4493 ;; 4494 4495osf3* | osf4* | osf5*) 4496 lt_cv_deplibs_check_method=pass_all 4497 ;; 4498 4499solaris*) 4500 lt_cv_deplibs_check_method=pass_all 4501 ;; 4502 4503sysv4 | sysv4.3*) 4504 case $host_vendor in 4505 motorola) 4506 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]' 4507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4508 ;; 4509 ncr) 4510 lt_cv_deplibs_check_method=pass_all 4511 ;; 4512 sequent) 4513 lt_cv_file_magic_cmd='/bin/file' 4514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4515 ;; 4516 sni) 4517 lt_cv_file_magic_cmd='/bin/file' 4518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4519 lt_cv_file_magic_test_file=/lib/libc.so 4520 ;; 4521 siemens) 4522 lt_cv_deplibs_check_method=pass_all 4523 ;; 4524 pc) 4525 lt_cv_deplibs_check_method=pass_all 4526 ;; 4527 esac 4528 ;; 4529 4530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4531 lt_cv_deplibs_check_method=pass_all 4532 ;; 4533esac 4534 4535fi 4536{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4537echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4538file_magic_cmd=$lt_cv_file_magic_cmd 4539deplibs_check_method=$lt_cv_deplibs_check_method 4540test -z "$deplibs_check_method" && deplibs_check_method=unknown 4541 4542 4543 4544 4545# If no C compiler was specified, use CC. 4546LTCC=${LTCC-"$CC"} 4547 4548# If no C compiler flags were specified, use CFLAGS. 4549LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4550 4551# Allow CC to be a program name with arguments. 4552compiler=$CC 4553 4554# Check whether --enable-libtool-lock was given. 4555if test "${enable_libtool_lock+set}" = set; then 4556 enableval=$enable_libtool_lock; 4557fi 4558 4559test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4560 4561# Some flags need to be propagated to the compiler or linker for good 4562# libtool support. 4563case $host in 4564ia64-*-hpux*) 4565 # Find out which ABI we are using. 4566 echo 'int i;' > conftest.$ac_ext 4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4568 (eval $ac_compile) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; then 4572 case `/usr/bin/file conftest.$ac_objext` in 4573 *ELF-32*) 4574 HPUX_IA64_MODE="32" 4575 ;; 4576 *ELF-64*) 4577 HPUX_IA64_MODE="64" 4578 ;; 4579 esac 4580 fi 4581 rm -rf conftest* 4582 ;; 4583*-*-irix6*) 4584 # Find out which ABI we are using. 4585 echo '#line 4585 "configure"' > conftest.$ac_ext 4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4587 (eval $ac_compile) 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); }; then 4591 if test "$lt_cv_prog_gnu_ld" = yes; then 4592 case `/usr/bin/file conftest.$ac_objext` in 4593 *32-bit*) 4594 LD="${LD-ld} -melf32bsmip" 4595 ;; 4596 *N32*) 4597 LD="${LD-ld} -melf32bmipn32" 4598 ;; 4599 *64-bit*) 4600 LD="${LD-ld} -melf64bmip" 4601 ;; 4602 esac 4603 else 4604 case `/usr/bin/file conftest.$ac_objext` in 4605 *32-bit*) 4606 LD="${LD-ld} -32" 4607 ;; 4608 *N32*) 4609 LD="${LD-ld} -n32" 4610 ;; 4611 *64-bit*) 4612 LD="${LD-ld} -64" 4613 ;; 4614 esac 4615 fi 4616 fi 4617 rm -rf conftest* 4618 ;; 4619 4620x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4621 # Find out which ABI we are using. 4622 echo 'int i;' > conftest.$ac_ext 4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4624 (eval $ac_compile) 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); }; then 4628 case `/usr/bin/file conftest.o` in 4629 *32-bit*) 4630 case $host in 4631 x86_64-*linux*) 4632 LD="${LD-ld} -m elf_i386" 4633 ;; 4634 ppc64-*linux*|powerpc64-*linux*) 4635 LD="${LD-ld} -m elf32ppclinux" 4636 ;; 4637 s390x-*linux*) 4638 LD="${LD-ld} -m elf_s390" 4639 ;; 4640 sparc64-*linux*) 4641 LD="${LD-ld} -m elf32_sparc" 4642 ;; 4643 esac 4644 ;; 4645 *64-bit*) 4646 case $host in 4647 x86_64-*linux*) 4648 LD="${LD-ld} -m elf_x86_64" 4649 ;; 4650 ppc*-*linux*|powerpc*-*linux*) 4651 LD="${LD-ld} -m elf64ppc" 4652 ;; 4653 s390*-*linux*) 4654 LD="${LD-ld} -m elf64_s390" 4655 ;; 4656 sparc*-*linux*) 4657 LD="${LD-ld} -m elf64_sparc" 4658 ;; 4659 esac 4660 ;; 4661 esac 4662 fi 4663 rm -rf conftest* 4664 ;; 4665 4666*-*-sco3.2v5*) 4667 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4668 SAVE_CFLAGS="$CFLAGS" 4669 CFLAGS="$CFLAGS -belf" 4670 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4671echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4672if test "${lt_cv_cc_needs_belf+set}" = set; then 4673 echo $ECHO_N "(cached) $ECHO_C" >&6 4674else 4675 ac_ext=c 4676ac_cpp='$CPP $CPPFLAGS' 4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4679ac_compiler_gnu=$ac_cv_c_compiler_gnu 4680 4681 cat >conftest.$ac_ext <<_ACEOF 4682/* confdefs.h. */ 4683_ACEOF 4684cat confdefs.h >>conftest.$ac_ext 4685cat >>conftest.$ac_ext <<_ACEOF 4686/* end confdefs.h. */ 4687 4688int 4689main () 4690{ 4691 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696rm -f conftest.$ac_objext conftest$ac_exeext 4697if { (ac_try="$ac_link" 4698case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4703 (eval "$ac_link") 2>conftest.er1 4704 ac_status=$? 4705 grep -v '^ *+' conftest.er1 >conftest.err 4706 rm -f conftest.er1 4707 cat conftest.err >&5 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); } && { 4710 test -z "$ac_c_werror_flag" || 4711 test ! -s conftest.err 4712 } && test -s conftest$ac_exeext && 4713 $as_test_x conftest$ac_exeext; then 4714 lt_cv_cc_needs_belf=yes 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719 lt_cv_cc_needs_belf=no 4720fi 4721 4722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4723 conftest$ac_exeext conftest.$ac_ext 4724 ac_ext=c 4725ac_cpp='$CPP $CPPFLAGS' 4726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4728ac_compiler_gnu=$ac_cv_c_compiler_gnu 4729 4730fi 4731{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4732echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4733 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4734 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4735 CFLAGS="$SAVE_CFLAGS" 4736 fi 4737 ;; 4738sparc*-*solaris*) 4739 # Find out which ABI we are using. 4740 echo 'int i;' > conftest.$ac_ext 4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4742 (eval $ac_compile) 2>&5 4743 ac_status=$? 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); }; then 4746 case `/usr/bin/file conftest.o` in 4747 *64-bit*) 4748 case $lt_cv_prog_gnu_ld in 4749 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4750 *) LD="${LD-ld} -64" ;; 4751 esac 4752 ;; 4753 esac 4754 fi 4755 rm -rf conftest* 4756 ;; 4757 4758 4759esac 4760 4761need_locks="$enable_libtool_lock" 4762 4763 4764ac_ext=c 4765ac_cpp='$CPP $CPPFLAGS' 4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4768ac_compiler_gnu=$ac_cv_c_compiler_gnu 4769{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4771# On Suns, sometimes $CPP names a directory. 4772if test -n "$CPP" && test -d "$CPP"; then 4773 CPP= 4774fi 4775if test -z "$CPP"; then 4776 if test "${ac_cv_prog_CPP+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778else 4779 # Double quotes because CPP needs to be expanded 4780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4781 do 4782 ac_preproc_ok=false 4783for ac_c_preproc_warn_flag in '' yes 4784do 4785 # Use a header file that comes with gcc, so configuring glibc 4786 # with a fresh cross-compiler works. 4787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4788 # <limits.h> exists even on freestanding compilers. 4789 # On the NeXT, cc -E runs the code through the compiler's parser, 4790 # not just through cpp. "Syntax error" is here to catch this case. 4791 cat >conftest.$ac_ext <<_ACEOF 4792/* confdefs.h. */ 4793_ACEOF 4794cat confdefs.h >>conftest.$ac_ext 4795cat >>conftest.$ac_ext <<_ACEOF 4796/* end confdefs.h. */ 4797#ifdef __STDC__ 4798# include <limits.h> 4799#else 4800# include <assert.h> 4801#endif 4802 Syntax error 4803_ACEOF 4804if { (ac_try="$ac_cpp conftest.$ac_ext" 4805case "(($ac_try" in 4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4807 *) ac_try_echo=$ac_try;; 4808esac 4809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4811 ac_status=$? 4812 grep -v '^ *+' conftest.er1 >conftest.err 4813 rm -f conftest.er1 4814 cat conftest.err >&5 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } >/dev/null && { 4817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4818 test ! -s conftest.err 4819 }; then 4820 : 4821else 4822 echo "$as_me: failed program was:" >&5 4823sed 's/^/| /' conftest.$ac_ext >&5 4824 4825 # Broken: fails on valid input. 4826continue 4827fi 4828 4829rm -f conftest.err conftest.$ac_ext 4830 4831 # OK, works on sane cases. Now check whether nonexistent headers 4832 # can be detected and how. 4833 cat >conftest.$ac_ext <<_ACEOF 4834/* confdefs.h. */ 4835_ACEOF 4836cat confdefs.h >>conftest.$ac_ext 4837cat >>conftest.$ac_ext <<_ACEOF 4838/* end confdefs.h. */ 4839#include <ac_nonexistent.h> 4840_ACEOF 4841if { (ac_try="$ac_cpp conftest.$ac_ext" 4842case "(($ac_try" in 4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4844 *) ac_try_echo=$ac_try;; 4845esac 4846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4848 ac_status=$? 4849 grep -v '^ *+' conftest.er1 >conftest.err 4850 rm -f conftest.er1 4851 cat conftest.err >&5 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); } >/dev/null && { 4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4855 test ! -s conftest.err 4856 }; then 4857 # Broken: success on invalid input. 4858continue 4859else 4860 echo "$as_me: failed program was:" >&5 4861sed 's/^/| /' conftest.$ac_ext >&5 4862 4863 # Passes both tests. 4864ac_preproc_ok=: 4865break 4866fi 4867 4868rm -f conftest.err conftest.$ac_ext 4869 4870done 4871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4872rm -f conftest.err conftest.$ac_ext 4873if $ac_preproc_ok; then 4874 break 4875fi 4876 4877 done 4878 ac_cv_prog_CPP=$CPP 4879 4880fi 4881 CPP=$ac_cv_prog_CPP 4882else 4883 ac_cv_prog_CPP=$CPP 4884fi 4885{ echo "$as_me:$LINENO: result: $CPP" >&5 4886echo "${ECHO_T}$CPP" >&6; } 4887ac_preproc_ok=false 4888for ac_c_preproc_warn_flag in '' yes 4889do 4890 # Use a header file that comes with gcc, so configuring glibc 4891 # with a fresh cross-compiler works. 4892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4893 # <limits.h> exists even on freestanding compilers. 4894 # On the NeXT, cc -E runs the code through the compiler's parser, 4895 # not just through cpp. "Syntax error" is here to catch this case. 4896 cat >conftest.$ac_ext <<_ACEOF 4897/* confdefs.h. */ 4898_ACEOF 4899cat confdefs.h >>conftest.$ac_ext 4900cat >>conftest.$ac_ext <<_ACEOF 4901/* end confdefs.h. */ 4902#ifdef __STDC__ 4903# include <limits.h> 4904#else 4905# include <assert.h> 4906#endif 4907 Syntax error 4908_ACEOF 4909if { (ac_try="$ac_cpp conftest.$ac_ext" 4910case "(($ac_try" in 4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4912 *) ac_try_echo=$ac_try;; 4913esac 4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4916 ac_status=$? 4917 grep -v '^ *+' conftest.er1 >conftest.err 4918 rm -f conftest.er1 4919 cat conftest.err >&5 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4921 (exit $ac_status); } >/dev/null && { 4922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4923 test ! -s conftest.err 4924 }; then 4925 : 4926else 4927 echo "$as_me: failed program was:" >&5 4928sed 's/^/| /' conftest.$ac_ext >&5 4929 4930 # Broken: fails on valid input. 4931continue 4932fi 4933 4934rm -f conftest.err conftest.$ac_ext 4935 4936 # OK, works on sane cases. Now check whether nonexistent headers 4937 # can be detected and how. 4938 cat >conftest.$ac_ext <<_ACEOF 4939/* confdefs.h. */ 4940_ACEOF 4941cat confdefs.h >>conftest.$ac_ext 4942cat >>conftest.$ac_ext <<_ACEOF 4943/* end confdefs.h. */ 4944#include <ac_nonexistent.h> 4945_ACEOF 4946if { (ac_try="$ac_cpp conftest.$ac_ext" 4947case "(($ac_try" in 4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4949 *) ac_try_echo=$ac_try;; 4950esac 4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4953 ac_status=$? 4954 grep -v '^ *+' conftest.er1 >conftest.err 4955 rm -f conftest.er1 4956 cat conftest.err >&5 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); } >/dev/null && { 4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4960 test ! -s conftest.err 4961 }; then 4962 # Broken: success on invalid input. 4963continue 4964else 4965 echo "$as_me: failed program was:" >&5 4966sed 's/^/| /' conftest.$ac_ext >&5 4967 4968 # Passes both tests. 4969ac_preproc_ok=: 4970break 4971fi 4972 4973rm -f conftest.err conftest.$ac_ext 4974 4975done 4976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4977rm -f conftest.err conftest.$ac_ext 4978if $ac_preproc_ok; then 4979 : 4980else 4981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4982See \`config.log' for more details." >&5 4983echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4984See \`config.log' for more details." >&2;} 4985 { (exit 1); exit 1; }; } 4986fi 4987 4988ac_ext=c 4989ac_cpp='$CPP $CPPFLAGS' 4990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4992ac_compiler_gnu=$ac_cv_c_compiler_gnu 4993 4994 4995{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4996echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4997if test "${ac_cv_header_stdc+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999else 5000 cat >conftest.$ac_ext <<_ACEOF 5001/* confdefs.h. */ 5002_ACEOF 5003cat confdefs.h >>conftest.$ac_ext 5004cat >>conftest.$ac_ext <<_ACEOF 5005/* end confdefs.h. */ 5006#include <stdlib.h> 5007#include <stdarg.h> 5008#include <string.h> 5009#include <float.h> 5010 5011int 5012main () 5013{ 5014 5015 ; 5016 return 0; 5017} 5018_ACEOF 5019rm -f conftest.$ac_objext 5020if { (ac_try="$ac_compile" 5021case "(($ac_try" in 5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5023 *) ac_try_echo=$ac_try;; 5024esac 5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5026 (eval "$ac_compile") 2>conftest.er1 5027 ac_status=$? 5028 grep -v '^ *+' conftest.er1 >conftest.err 5029 rm -f conftest.er1 5030 cat conftest.err >&5 5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 (exit $ac_status); } && { 5033 test -z "$ac_c_werror_flag" || 5034 test ! -s conftest.err 5035 } && test -s conftest.$ac_objext; then 5036 ac_cv_header_stdc=yes 5037else 5038 echo "$as_me: failed program was:" >&5 5039sed 's/^/| /' conftest.$ac_ext >&5 5040 5041 ac_cv_header_stdc=no 5042fi 5043 5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5045 5046if test $ac_cv_header_stdc = yes; then 5047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5048 cat >conftest.$ac_ext <<_ACEOF 5049/* confdefs.h. */ 5050_ACEOF 5051cat confdefs.h >>conftest.$ac_ext 5052cat >>conftest.$ac_ext <<_ACEOF 5053/* end confdefs.h. */ 5054#include <string.h> 5055 5056_ACEOF 5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5058 $EGREP "memchr" >/dev/null 2>&1; then 5059 : 5060else 5061 ac_cv_header_stdc=no 5062fi 5063rm -f conftest* 5064 5065fi 5066 5067if test $ac_cv_header_stdc = yes; then 5068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5069 cat >conftest.$ac_ext <<_ACEOF 5070/* confdefs.h. */ 5071_ACEOF 5072cat confdefs.h >>conftest.$ac_ext 5073cat >>conftest.$ac_ext <<_ACEOF 5074/* end confdefs.h. */ 5075#include <stdlib.h> 5076 5077_ACEOF 5078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5079 $EGREP "free" >/dev/null 2>&1; then 5080 : 5081else 5082 ac_cv_header_stdc=no 5083fi 5084rm -f conftest* 5085 5086fi 5087 5088if test $ac_cv_header_stdc = yes; then 5089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5090 if test "$cross_compiling" = yes; then 5091 : 5092else 5093 cat >conftest.$ac_ext <<_ACEOF 5094/* confdefs.h. */ 5095_ACEOF 5096cat confdefs.h >>conftest.$ac_ext 5097cat >>conftest.$ac_ext <<_ACEOF 5098/* end confdefs.h. */ 5099#include <ctype.h> 5100#include <stdlib.h> 5101#if ((' ' & 0x0FF) == 0x020) 5102# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5103# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5104#else 5105# define ISLOWER(c) \ 5106 (('a' <= (c) && (c) <= 'i') \ 5107 || ('j' <= (c) && (c) <= 'r') \ 5108 || ('s' <= (c) && (c) <= 'z')) 5109# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5110#endif 5111 5112#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5113int 5114main () 5115{ 5116 int i; 5117 for (i = 0; i < 256; i++) 5118 if (XOR (islower (i), ISLOWER (i)) 5119 || toupper (i) != TOUPPER (i)) 5120 return 2; 5121 return 0; 5122} 5123_ACEOF 5124rm -f conftest$ac_exeext 5125if { (ac_try="$ac_link" 5126case "(($ac_try" in 5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5128 *) ac_try_echo=$ac_try;; 5129esac 5130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5131 (eval "$ac_link") 2>&5 5132 ac_status=$? 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5135 { (case "(($ac_try" in 5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5137 *) ac_try_echo=$ac_try;; 5138esac 5139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5140 (eval "$ac_try") 2>&5 5141 ac_status=$? 5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); }; }; then 5144 : 5145else 5146 echo "$as_me: program exited with status $ac_status" >&5 5147echo "$as_me: failed program was:" >&5 5148sed 's/^/| /' conftest.$ac_ext >&5 5149 5150( exit $ac_status ) 5151ac_cv_header_stdc=no 5152fi 5153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5154fi 5155 5156 5157fi 5158fi 5159{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5160echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5161if test $ac_cv_header_stdc = yes; then 5162 5163cat >>confdefs.h <<\_ACEOF 5164#define STDC_HEADERS 1 5165_ACEOF 5166 5167fi 5168 5169# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5180 inttypes.h stdint.h unistd.h 5181do 5182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5183{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5186 echo $ECHO_N "(cached) $ECHO_C" >&6 5187else 5188 cat >conftest.$ac_ext <<_ACEOF 5189/* confdefs.h. */ 5190_ACEOF 5191cat confdefs.h >>conftest.$ac_ext 5192cat >>conftest.$ac_ext <<_ACEOF 5193/* end confdefs.h. */ 5194$ac_includes_default 5195 5196#include <$ac_header> 5197_ACEOF 5198rm -f conftest.$ac_objext 5199if { (ac_try="$ac_compile" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5205 (eval "$ac_compile") 2>conftest.er1 5206 ac_status=$? 5207 grep -v '^ *+' conftest.er1 >conftest.err 5208 rm -f conftest.er1 5209 cat conftest.err >&5 5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5211 (exit $ac_status); } && { 5212 test -z "$ac_c_werror_flag" || 5213 test ! -s conftest.err 5214 } && test -s conftest.$ac_objext; then 5215 eval "$as_ac_Header=yes" 5216else 5217 echo "$as_me: failed program was:" >&5 5218sed 's/^/| /' conftest.$ac_ext >&5 5219 5220 eval "$as_ac_Header=no" 5221fi 5222 5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5224fi 5225ac_res=`eval echo '${'$as_ac_Header'}'` 5226 { echo "$as_me:$LINENO: result: $ac_res" >&5 5227echo "${ECHO_T}$ac_res" >&6; } 5228if test `eval echo '${'$as_ac_Header'}'` = yes; then 5229 cat >>confdefs.h <<_ACEOF 5230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5231_ACEOF 5232 5233fi 5234 5235done 5236 5237 5238 5239for ac_header in dlfcn.h 5240do 5241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5243 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5246 echo $ECHO_N "(cached) $ECHO_C" >&6 5247fi 5248ac_res=`eval echo '${'$as_ac_Header'}'` 5249 { echo "$as_me:$LINENO: result: $ac_res" >&5 5250echo "${ECHO_T}$ac_res" >&6; } 5251else 5252 # Is the header compilable? 5253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5255cat >conftest.$ac_ext <<_ACEOF 5256/* confdefs.h. */ 5257_ACEOF 5258cat confdefs.h >>conftest.$ac_ext 5259cat >>conftest.$ac_ext <<_ACEOF 5260/* end confdefs.h. */ 5261$ac_includes_default 5262#include <$ac_header> 5263_ACEOF 5264rm -f conftest.$ac_objext 5265if { (ac_try="$ac_compile" 5266case "(($ac_try" in 5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5268 *) ac_try_echo=$ac_try;; 5269esac 5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5271 (eval "$ac_compile") 2>conftest.er1 5272 ac_status=$? 5273 grep -v '^ *+' conftest.er1 >conftest.err 5274 rm -f conftest.er1 5275 cat conftest.err >&5 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); } && { 5278 test -z "$ac_c_werror_flag" || 5279 test ! -s conftest.err 5280 } && test -s conftest.$ac_objext; then 5281 ac_header_compiler=yes 5282else 5283 echo "$as_me: failed program was:" >&5 5284sed 's/^/| /' conftest.$ac_ext >&5 5285 5286 ac_header_compiler=no 5287fi 5288 5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5291echo "${ECHO_T}$ac_header_compiler" >&6; } 5292 5293# Is the header present? 5294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5296cat >conftest.$ac_ext <<_ACEOF 5297/* confdefs.h. */ 5298_ACEOF 5299cat confdefs.h >>conftest.$ac_ext 5300cat >>conftest.$ac_ext <<_ACEOF 5301/* end confdefs.h. */ 5302#include <$ac_header> 5303_ACEOF 5304if { (ac_try="$ac_cpp conftest.$ac_ext" 5305case "(($ac_try" in 5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5307 *) ac_try_echo=$ac_try;; 5308esac 5309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5311 ac_status=$? 5312 grep -v '^ *+' conftest.er1 >conftest.err 5313 rm -f conftest.er1 5314 cat conftest.err >&5 5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5316 (exit $ac_status); } >/dev/null && { 5317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5318 test ! -s conftest.err 5319 }; then 5320 ac_header_preproc=yes 5321else 5322 echo "$as_me: failed program was:" >&5 5323sed 's/^/| /' conftest.$ac_ext >&5 5324 5325 ac_header_preproc=no 5326fi 5327 5328rm -f conftest.err conftest.$ac_ext 5329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5330echo "${ECHO_T}$ac_header_preproc" >&6; } 5331 5332# So? What about this header? 5333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5334 yes:no: ) 5335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5339 ac_header_preproc=yes 5340 ;; 5341 no:yes:* ) 5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5354 ( cat <<\_ASBOX 5355## ------------------------------ ## 5356## Report this to ponceto@noos.fr ## 5357## ------------------------------ ## 5358_ASBOX 5359 ) | sed "s/^/$as_me: WARNING: /" >&2 5360 ;; 5361esac 5362{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5365 echo $ECHO_N "(cached) $ECHO_C" >&6 5366else 5367 eval "$as_ac_Header=\$ac_header_preproc" 5368fi 5369ac_res=`eval echo '${'$as_ac_Header'}'` 5370 { echo "$as_me:$LINENO: result: $ac_res" >&5 5371echo "${ECHO_T}$ac_res" >&6; } 5372 5373fi 5374if test `eval echo '${'$as_ac_Header'}'` = yes; then 5375 cat >>confdefs.h <<_ACEOF 5376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5377_ACEOF 5378 5379fi 5380 5381done 5382 5383ac_ext=cpp 5384ac_cpp='$CXXCPP $CPPFLAGS' 5385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5388if test -z "$CXX"; then 5389 if test -n "$CCC"; then 5390 CXX=$CCC 5391 else 5392 if test -n "$ac_tool_prefix"; then 5393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5394 do 5395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5396set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5397{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5399if test "${ac_cv_prog_CXX+set}" = set; then 5400 echo $ECHO_N "(cached) $ECHO_C" >&6 5401else 5402 if test -n "$CXX"; then 5403 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5404else 5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5406for as_dir in $PATH 5407do 5408 IFS=$as_save_IFS 5409 test -z "$as_dir" && as_dir=. 5410 for ac_exec_ext in '' $ac_executable_extensions; do 5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5414 break 2 5415 fi 5416done 5417done 5418IFS=$as_save_IFS 5419 5420fi 5421fi 5422CXX=$ac_cv_prog_CXX 5423if test -n "$CXX"; then 5424 { echo "$as_me:$LINENO: result: $CXX" >&5 5425echo "${ECHO_T}$CXX" >&6; } 5426else 5427 { echo "$as_me:$LINENO: result: no" >&5 5428echo "${ECHO_T}no" >&6; } 5429fi 5430 5431 5432 test -n "$CXX" && break 5433 done 5434fi 5435if test -z "$CXX"; then 5436 ac_ct_CXX=$CXX 5437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5438do 5439 # Extract the first word of "$ac_prog", so it can be a program name with args. 5440set dummy $ac_prog; ac_word=$2 5441{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5443if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 if test -n "$ac_ct_CXX"; then 5447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5456 ac_cv_prog_ac_ct_CXX="$ac_prog" 5457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5467if test -n "$ac_ct_CXX"; then 5468 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5469echo "${ECHO_T}$ac_ct_CXX" >&6; } 5470else 5471 { echo "$as_me:$LINENO: result: no" >&5 5472echo "${ECHO_T}no" >&6; } 5473fi 5474 5475 5476 test -n "$ac_ct_CXX" && break 5477done 5478 5479 if test "x$ac_ct_CXX" = x; then 5480 CXX="g++" 5481 else 5482 case $cross_compiling:$ac_tool_warned in 5483yes:) 5484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5485whose name does not start with the host triplet. If you think this 5486configuration is useful to you, please write to autoconf@gnu.org." >&5 5487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5488whose name does not start with the host triplet. If you think this 5489configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5490ac_tool_warned=yes ;; 5491esac 5492 CXX=$ac_ct_CXX 5493 fi 5494fi 5495 5496 fi 5497fi 5498# Provide some information about the compiler. 5499echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5500ac_compiler=`set X $ac_compile; echo $2` 5501{ (ac_try="$ac_compiler --version >&5" 5502case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505esac 5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5507 (eval "$ac_compiler --version >&5") 2>&5 5508 ac_status=$? 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); } 5511{ (ac_try="$ac_compiler -v >&5" 5512case "(($ac_try" in 5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5514 *) ac_try_echo=$ac_try;; 5515esac 5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5517 (eval "$ac_compiler -v >&5") 2>&5 5518 ac_status=$? 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5520 (exit $ac_status); } 5521{ (ac_try="$ac_compiler -V >&5" 5522case "(($ac_try" in 5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5524 *) ac_try_echo=$ac_try;; 5525esac 5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5527 (eval "$ac_compiler -V >&5") 2>&5 5528 ac_status=$? 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } 5531 5532{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5533echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5535 echo $ECHO_N "(cached) $ECHO_C" >&6 5536else 5537 cat >conftest.$ac_ext <<_ACEOF 5538/* confdefs.h. */ 5539_ACEOF 5540cat confdefs.h >>conftest.$ac_ext 5541cat >>conftest.$ac_ext <<_ACEOF 5542/* end confdefs.h. */ 5543 5544int 5545main () 5546{ 5547#ifndef __GNUC__ 5548 choke me 5549#endif 5550 5551 ; 5552 return 0; 5553} 5554_ACEOF 5555rm -f conftest.$ac_objext 5556if { (ac_try="$ac_compile" 5557case "(($ac_try" in 5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5559 *) ac_try_echo=$ac_try;; 5560esac 5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5562 (eval "$ac_compile") 2>conftest.er1 5563 ac_status=$? 5564 grep -v '^ *+' conftest.er1 >conftest.err 5565 rm -f conftest.er1 5566 cat conftest.err >&5 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); } && { 5569 test -z "$ac_cxx_werror_flag" || 5570 test ! -s conftest.err 5571 } && test -s conftest.$ac_objext; then 5572 ac_compiler_gnu=yes 5573else 5574 echo "$as_me: failed program was:" >&5 5575sed 's/^/| /' conftest.$ac_ext >&5 5576 5577 ac_compiler_gnu=no 5578fi 5579 5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5581ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5582 5583fi 5584{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5585echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5586GXX=`test $ac_compiler_gnu = yes && echo yes` 5587ac_test_CXXFLAGS=${CXXFLAGS+set} 5588ac_save_CXXFLAGS=$CXXFLAGS 5589{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5590echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5591if test "${ac_cv_prog_cxx_g+set}" = set; then 5592 echo $ECHO_N "(cached) $ECHO_C" >&6 5593else 5594 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5595 ac_cxx_werror_flag=yes 5596 ac_cv_prog_cxx_g=no 5597 CXXFLAGS="-g" 5598 cat >conftest.$ac_ext <<_ACEOF 5599/* confdefs.h. */ 5600_ACEOF 5601cat confdefs.h >>conftest.$ac_ext 5602cat >>conftest.$ac_ext <<_ACEOF 5603/* end confdefs.h. */ 5604 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613rm -f conftest.$ac_objext 5614if { (ac_try="$ac_compile" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5620 (eval "$ac_compile") 2>conftest.er1 5621 ac_status=$? 5622 grep -v '^ *+' conftest.er1 >conftest.err 5623 rm -f conftest.er1 5624 cat conftest.err >&5 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && { 5627 test -z "$ac_cxx_werror_flag" || 5628 test ! -s conftest.err 5629 } && test -s conftest.$ac_objext; then 5630 ac_cv_prog_cxx_g=yes 5631else 5632 echo "$as_me: failed program was:" >&5 5633sed 's/^/| /' conftest.$ac_ext >&5 5634 5635 CXXFLAGS="" 5636 cat >conftest.$ac_ext <<_ACEOF 5637/* confdefs.h. */ 5638_ACEOF 5639cat confdefs.h >>conftest.$ac_ext 5640cat >>conftest.$ac_ext <<_ACEOF 5641/* end confdefs.h. */ 5642 5643int 5644main () 5645{ 5646 5647 ; 5648 return 0; 5649} 5650_ACEOF 5651rm -f conftest.$ac_objext 5652if { (ac_try="$ac_compile" 5653case "(($ac_try" in 5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5655 *) ac_try_echo=$ac_try;; 5656esac 5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5658 (eval "$ac_compile") 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && { 5665 test -z "$ac_cxx_werror_flag" || 5666 test ! -s conftest.err 5667 } && test -s conftest.$ac_objext; then 5668 : 5669else 5670 echo "$as_me: failed program was:" >&5 5671sed 's/^/| /' conftest.$ac_ext >&5 5672 5673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5674 CXXFLAGS="-g" 5675 cat >conftest.$ac_ext <<_ACEOF 5676/* confdefs.h. */ 5677_ACEOF 5678cat confdefs.h >>conftest.$ac_ext 5679cat >>conftest.$ac_ext <<_ACEOF 5680/* end confdefs.h. */ 5681 5682int 5683main () 5684{ 5685 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690rm -f conftest.$ac_objext 5691if { (ac_try="$ac_compile" 5692case "(($ac_try" in 5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5694 *) ac_try_echo=$ac_try;; 5695esac 5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5697 (eval "$ac_compile") 2>conftest.er1 5698 ac_status=$? 5699 grep -v '^ *+' conftest.er1 >conftest.err 5700 rm -f conftest.er1 5701 cat conftest.err >&5 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } && { 5704 test -z "$ac_cxx_werror_flag" || 5705 test ! -s conftest.err 5706 } && test -s conftest.$ac_objext; then 5707 ac_cv_prog_cxx_g=yes 5708else 5709 echo "$as_me: failed program was:" >&5 5710sed 's/^/| /' conftest.$ac_ext >&5 5711 5712 5713fi 5714 5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5716fi 5717 5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5719fi 5720 5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5722 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5723fi 5724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5725echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5726if test "$ac_test_CXXFLAGS" = set; then 5727 CXXFLAGS=$ac_save_CXXFLAGS 5728elif test $ac_cv_prog_cxx_g = yes; then 5729 if test "$GXX" = yes; then 5730 CXXFLAGS="-g -O2" 5731 else 5732 CXXFLAGS="-g" 5733 fi 5734else 5735 if test "$GXX" = yes; then 5736 CXXFLAGS="-O2" 5737 else 5738 CXXFLAGS= 5739 fi 5740fi 5741ac_ext=cpp 5742ac_cpp='$CXXCPP $CPPFLAGS' 5743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5746 5747depcc="$CXX" am_compiler_list= 5748 5749{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5750echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5751if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5752 echo $ECHO_N "(cached) $ECHO_C" >&6 5753else 5754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5755 # We make a subdir and do the tests there. Otherwise we can end up 5756 # making bogus files that we don't know about and never remove. For 5757 # instance it was reported that on HP-UX the gcc test will end up 5758 # making a dummy file named `D' -- because `-MD' means `put the output 5759 # in D'. 5760 mkdir conftest.dir 5761 # Copy depcomp to subdir because otherwise we won't find it if we're 5762 # using a relative directory. 5763 cp "$am_depcomp" conftest.dir 5764 cd conftest.dir 5765 # We will build objects and dependencies in a subdirectory because 5766 # it helps to detect inapplicable dependency modes. For instance 5767 # both Tru64's cc and ICC support -MD to output dependencies as a 5768 # side effect of compilation, but ICC will put the dependencies in 5769 # the current directory while Tru64 will put them in the object 5770 # directory. 5771 mkdir sub 5772 5773 am_cv_CXX_dependencies_compiler_type=none 5774 if test "$am_compiler_list" = ""; then 5775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5776 fi 5777 for depmode in $am_compiler_list; do 5778 # Setup a source with many dependencies, because some compilers 5779 # like to wrap large dependency lists on column 80 (with \), and 5780 # we should not choose a depcomp mode which is confused by this. 5781 # 5782 # We need to recreate these files for each test, as the compiler may 5783 # overwrite some of them when testing with obscure command lines. 5784 # This happens at least with the AIX C compiler. 5785 : > sub/conftest.c 5786 for i in 1 2 3 4 5 6; do 5787 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5788 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5789 # Solaris 8's {/usr,}/bin/sh. 5790 touch sub/conftst$i.h 5791 done 5792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5793 5794 case $depmode in 5795 nosideeffect) 5796 # after this tag, mechanisms are not by side-effect, so they'll 5797 # only be used when explicitly requested 5798 if test "x$enable_dependency_tracking" = xyes; then 5799 continue 5800 else 5801 break 5802 fi 5803 ;; 5804 none) break ;; 5805 esac 5806 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5807 # mode. It turns out that the SunPro C++ compiler does not properly 5808 # handle `-M -o', and we need to detect this. 5809 if depmode=$depmode \ 5810 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5811 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5812 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5813 >/dev/null 2>conftest.err && 5814 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5816 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5818 # icc doesn't choke on unknown options, it will just issue warnings 5819 # or remarks (even with -Werror). So we grep stderr for any message 5820 # that says an option was ignored or not supported. 5821 # When given -MP, icc 7.0 and 7.1 complain thusly: 5822 # icc: Command line warning: ignoring option '-M'; no argument required 5823 # The diagnosis changed in icc 8.0: 5824 # icc: Command line remark: option '-MP' not supported 5825 if (grep 'ignoring option' conftest.err || 5826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5827 am_cv_CXX_dependencies_compiler_type=$depmode 5828 break 5829 fi 5830 fi 5831 done 5832 5833 cd .. 5834 rm -rf conftest.dir 5835else 5836 am_cv_CXX_dependencies_compiler_type=none 5837fi 5838 5839fi 5840{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5841echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5842CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5843 5844 if 5845 test "x$enable_dependency_tracking" != xno \ 5846 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5847 am__fastdepCXX_TRUE= 5848 am__fastdepCXX_FALSE='#' 5849else 5850 am__fastdepCXX_TRUE='#' 5851 am__fastdepCXX_FALSE= 5852fi 5853 5854 5855 5856 5857if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5858 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5859 (test "X$CXX" != "Xg++"))) ; then 5860 ac_ext=cpp 5861ac_cpp='$CXXCPP $CPPFLAGS' 5862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5865{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5866echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5867if test -z "$CXXCPP"; then 5868 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5869 echo $ECHO_N "(cached) $ECHO_C" >&6 5870else 5871 # Double quotes because CXXCPP needs to be expanded 5872 for CXXCPP in "$CXX -E" "/lib/cpp" 5873 do 5874 ac_preproc_ok=false 5875for ac_cxx_preproc_warn_flag in '' yes 5876do 5877 # Use a header file that comes with gcc, so configuring glibc 5878 # with a fresh cross-compiler works. 5879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5880 # <limits.h> exists even on freestanding compilers. 5881 # On the NeXT, cc -E runs the code through the compiler's parser, 5882 # not just through cpp. "Syntax error" is here to catch this case. 5883 cat >conftest.$ac_ext <<_ACEOF 5884/* confdefs.h. */ 5885_ACEOF 5886cat confdefs.h >>conftest.$ac_ext 5887cat >>conftest.$ac_ext <<_ACEOF 5888/* end confdefs.h. */ 5889#ifdef __STDC__ 5890# include <limits.h> 5891#else 5892# include <assert.h> 5893#endif 5894 Syntax error 5895_ACEOF 5896if { (ac_try="$ac_cpp conftest.$ac_ext" 5897case "(($ac_try" in 5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5899 *) ac_try_echo=$ac_try;; 5900esac 5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5903 ac_status=$? 5904 grep -v '^ *+' conftest.er1 >conftest.err 5905 rm -f conftest.er1 5906 cat conftest.err >&5 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5908 (exit $ac_status); } >/dev/null && { 5909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5910 test ! -s conftest.err 5911 }; then 5912 : 5913else 5914 echo "$as_me: failed program was:" >&5 5915sed 's/^/| /' conftest.$ac_ext >&5 5916 5917 # Broken: fails on valid input. 5918continue 5919fi 5920 5921rm -f conftest.err conftest.$ac_ext 5922 5923 # OK, works on sane cases. Now check whether nonexistent headers 5924 # can be detected and how. 5925 cat >conftest.$ac_ext <<_ACEOF 5926/* confdefs.h. */ 5927_ACEOF 5928cat confdefs.h >>conftest.$ac_ext 5929cat >>conftest.$ac_ext <<_ACEOF 5930/* end confdefs.h. */ 5931#include <ac_nonexistent.h> 5932_ACEOF 5933if { (ac_try="$ac_cpp conftest.$ac_ext" 5934case "(($ac_try" in 5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5936 *) ac_try_echo=$ac_try;; 5937esac 5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5940 ac_status=$? 5941 grep -v '^ *+' conftest.er1 >conftest.err 5942 rm -f conftest.er1 5943 cat conftest.err >&5 5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5945 (exit $ac_status); } >/dev/null && { 5946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5947 test ! -s conftest.err 5948 }; then 5949 # Broken: success on invalid input. 5950continue 5951else 5952 echo "$as_me: failed program was:" >&5 5953sed 's/^/| /' conftest.$ac_ext >&5 5954 5955 # Passes both tests. 5956ac_preproc_ok=: 5957break 5958fi 5959 5960rm -f conftest.err conftest.$ac_ext 5961 5962done 5963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5964rm -f conftest.err conftest.$ac_ext 5965if $ac_preproc_ok; then 5966 break 5967fi 5968 5969 done 5970 ac_cv_prog_CXXCPP=$CXXCPP 5971 5972fi 5973 CXXCPP=$ac_cv_prog_CXXCPP 5974else 5975 ac_cv_prog_CXXCPP=$CXXCPP 5976fi 5977{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5978echo "${ECHO_T}$CXXCPP" >&6; } 5979ac_preproc_ok=false 5980for ac_cxx_preproc_warn_flag in '' yes 5981do 5982 # Use a header file that comes with gcc, so configuring glibc 5983 # with a fresh cross-compiler works. 5984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5985 # <limits.h> exists even on freestanding compilers. 5986 # On the NeXT, cc -E runs the code through the compiler's parser, 5987 # not just through cpp. "Syntax error" is here to catch this case. 5988 cat >conftest.$ac_ext <<_ACEOF 5989/* confdefs.h. */ 5990_ACEOF 5991cat confdefs.h >>conftest.$ac_ext 5992cat >>conftest.$ac_ext <<_ACEOF 5993/* end confdefs.h. */ 5994#ifdef __STDC__ 5995# include <limits.h> 5996#else 5997# include <assert.h> 5998#endif 5999 Syntax error 6000_ACEOF 6001if { (ac_try="$ac_cpp conftest.$ac_ext" 6002case "(($ac_try" in 6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6004 *) ac_try_echo=$ac_try;; 6005esac 6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6008 ac_status=$? 6009 grep -v '^ *+' conftest.er1 >conftest.err 6010 rm -f conftest.er1 6011 cat conftest.err >&5 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6013 (exit $ac_status); } >/dev/null && { 6014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6015 test ! -s conftest.err 6016 }; then 6017 : 6018else 6019 echo "$as_me: failed program was:" >&5 6020sed 's/^/| /' conftest.$ac_ext >&5 6021 6022 # Broken: fails on valid input. 6023continue 6024fi 6025 6026rm -f conftest.err conftest.$ac_ext 6027 6028 # OK, works on sane cases. Now check whether nonexistent headers 6029 # can be detected and how. 6030 cat >conftest.$ac_ext <<_ACEOF 6031/* confdefs.h. */ 6032_ACEOF 6033cat confdefs.h >>conftest.$ac_ext 6034cat >>conftest.$ac_ext <<_ACEOF 6035/* end confdefs.h. */ 6036#include <ac_nonexistent.h> 6037_ACEOF 6038if { (ac_try="$ac_cpp conftest.$ac_ext" 6039case "(($ac_try" in 6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6041 *) ac_try_echo=$ac_try;; 6042esac 6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6045 ac_status=$? 6046 grep -v '^ *+' conftest.er1 >conftest.err 6047 rm -f conftest.er1 6048 cat conftest.err >&5 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); } >/dev/null && { 6051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6052 test ! -s conftest.err 6053 }; then 6054 # Broken: success on invalid input. 6055continue 6056else 6057 echo "$as_me: failed program was:" >&5 6058sed 's/^/| /' conftest.$ac_ext >&5 6059 6060 # Passes both tests. 6061ac_preproc_ok=: 6062break 6063fi 6064 6065rm -f conftest.err conftest.$ac_ext 6066 6067done 6068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6069rm -f conftest.err conftest.$ac_ext 6070if $ac_preproc_ok; then 6071 : 6072else 6073 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6074See \`config.log' for more details." >&5 6075echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6076See \`config.log' for more details." >&2;} 6077 { (exit 1); exit 1; }; } 6078fi 6079 6080ac_ext=cpp 6081ac_cpp='$CXXCPP $CPPFLAGS' 6082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6085 6086fi 6087 6088 6089ac_ext=f 6090ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6091ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6092ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6093if test -n "$ac_tool_prefix"; then 6094 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 6095 do 6096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6097set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6098{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6100if test "${ac_cv_prog_F77+set}" = set; then 6101 echo $ECHO_N "(cached) $ECHO_C" >&6 6102else 6103 if test -n "$F77"; then 6104 ac_cv_prog_F77="$F77" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6113 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123F77=$ac_cv_prog_F77 6124if test -n "$F77"; then 6125 { echo "$as_me:$LINENO: result: $F77" >&5 6126echo "${ECHO_T}$F77" >&6; } 6127else 6128 { echo "$as_me:$LINENO: result: no" >&5 6129echo "${ECHO_T}no" >&6; } 6130fi 6131 6132 6133 test -n "$F77" && break 6134 done 6135fi 6136if test -z "$F77"; then 6137 ac_ct_F77=$F77 6138 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 6139do 6140 # Extract the first word of "$ac_prog", so it can be a program name with args. 6141set dummy $ac_prog; ac_word=$2 6142{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6144if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6145 echo $ECHO_N "(cached) $ECHO_C" >&6 6146else 6147 if test -n "$ac_ct_F77"; then 6148 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6149else 6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6151for as_dir in $PATH 6152do 6153 IFS=$as_save_IFS 6154 test -z "$as_dir" && as_dir=. 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6157 ac_cv_prog_ac_ct_F77="$ac_prog" 6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167ac_ct_F77=$ac_cv_prog_ac_ct_F77 6168if test -n "$ac_ct_F77"; then 6169 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6170echo "${ECHO_T}$ac_ct_F77" >&6; } 6171else 6172 { echo "$as_me:$LINENO: result: no" >&5 6173echo "${ECHO_T}no" >&6; } 6174fi 6175 6176 6177 test -n "$ac_ct_F77" && break 6178done 6179 6180 if test "x$ac_ct_F77" = x; then 6181 F77="" 6182 else 6183 case $cross_compiling:$ac_tool_warned in 6184yes:) 6185{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6186whose name does not start with the host triplet. If you think this 6187configuration is useful to you, please write to autoconf@gnu.org." >&5 6188echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6189whose name does not start with the host triplet. If you think this 6190configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6191ac_tool_warned=yes ;; 6192esac 6193 F77=$ac_ct_F77 6194 fi 6195fi 6196 6197 6198# Provide some information about the compiler. 6199echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6200ac_compiler=`set X $ac_compile; echo $2` 6201{ (ac_try="$ac_compiler --version >&5" 6202case "(($ac_try" in 6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6204 *) ac_try_echo=$ac_try;; 6205esac 6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6207 (eval "$ac_compiler --version >&5") 2>&5 6208 ac_status=$? 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); } 6211{ (ac_try="$ac_compiler -v >&5" 6212case "(($ac_try" in 6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6214 *) ac_try_echo=$ac_try;; 6215esac 6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6217 (eval "$ac_compiler -v >&5") 2>&5 6218 ac_status=$? 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); } 6221{ (ac_try="$ac_compiler -V >&5" 6222case "(($ac_try" in 6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6224 *) ac_try_echo=$ac_try;; 6225esac 6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6227 (eval "$ac_compiler -V >&5") 2>&5 6228 ac_status=$? 6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6230 (exit $ac_status); } 6231rm -f a.out 6232 6233# If we don't use `.F' as extension, the preprocessor is not run on the 6234# input file. (Note that this only needs to work for GNU compilers.) 6235ac_save_ext=$ac_ext 6236ac_ext=F 6237{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6238echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6239if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6240 echo $ECHO_N "(cached) $ECHO_C" >&6 6241else 6242 cat >conftest.$ac_ext <<_ACEOF 6243 program main 6244#ifndef __GNUC__ 6245 choke me 6246#endif 6247 6248 end 6249_ACEOF 6250rm -f conftest.$ac_objext 6251if { (ac_try="$ac_compile" 6252case "(($ac_try" in 6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6254 *) ac_try_echo=$ac_try;; 6255esac 6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6257 (eval "$ac_compile") 2>conftest.er1 6258 ac_status=$? 6259 grep -v '^ *+' conftest.er1 >conftest.err 6260 rm -f conftest.er1 6261 cat conftest.err >&5 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6263 (exit $ac_status); } && { 6264 test -z "$ac_f77_werror_flag" || 6265 test ! -s conftest.err 6266 } && test -s conftest.$ac_objext; then 6267 ac_compiler_gnu=yes 6268else 6269 echo "$as_me: failed program was:" >&5 6270sed 's/^/| /' conftest.$ac_ext >&5 6271 6272 ac_compiler_gnu=no 6273fi 6274 6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6276ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6277 6278fi 6279{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6280echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6281ac_ext=$ac_save_ext 6282ac_test_FFLAGS=${FFLAGS+set} 6283ac_save_FFLAGS=$FFLAGS 6284FFLAGS= 6285{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6286echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6287if test "${ac_cv_prog_f77_g+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 FFLAGS=-g 6291cat >conftest.$ac_ext <<_ACEOF 6292 program main 6293 6294 end 6295_ACEOF 6296rm -f conftest.$ac_objext 6297if { (ac_try="$ac_compile" 6298case "(($ac_try" in 6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6300 *) ac_try_echo=$ac_try;; 6301esac 6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6303 (eval "$ac_compile") 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } && { 6310 test -z "$ac_f77_werror_flag" || 6311 test ! -s conftest.err 6312 } && test -s conftest.$ac_objext; then 6313 ac_cv_prog_f77_g=yes 6314else 6315 echo "$as_me: failed program was:" >&5 6316sed 's/^/| /' conftest.$ac_ext >&5 6317 6318 ac_cv_prog_f77_g=no 6319fi 6320 6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6322 6323fi 6324{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6325echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6326if test "$ac_test_FFLAGS" = set; then 6327 FFLAGS=$ac_save_FFLAGS 6328elif test $ac_cv_prog_f77_g = yes; then 6329 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6330 FFLAGS="-g -O2" 6331 else 6332 FFLAGS="-g" 6333 fi 6334else 6335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6336 FFLAGS="-O2" 6337 else 6338 FFLAGS= 6339 fi 6340fi 6341 6342G77=`test $ac_compiler_gnu = yes && echo yes` 6343ac_ext=c 6344ac_cpp='$CPP $CPPFLAGS' 6345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6347ac_compiler_gnu=$ac_cv_c_compiler_gnu 6348 6349 6350 6351# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6352 6353# find the maximum length of command line arguments 6354{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6355echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6356if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6357 echo $ECHO_N "(cached) $ECHO_C" >&6 6358else 6359 i=0 6360 teststring="ABCD" 6361 6362 case $build_os in 6363 msdosdjgpp*) 6364 # On DJGPP, this test can blow up pretty badly due to problems in libc 6365 # (any single argument exceeding 2000 bytes causes a buffer overrun 6366 # during glob expansion). Even if it were fixed, the result of this 6367 # check would be larger than it should be. 6368 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6369 ;; 6370 6371 gnu*) 6372 # Under GNU Hurd, this test is not required because there is 6373 # no limit to the length of command line arguments. 6374 # Libtool will interpret -1 as no limit whatsoever 6375 lt_cv_sys_max_cmd_len=-1; 6376 ;; 6377 6378 cygwin* | mingw*) 6379 # On Win9x/ME, this test blows up -- it succeeds, but takes 6380 # about 5 minutes as the teststring grows exponentially. 6381 # Worse, since 9x/ME are not pre-emptively multitasking, 6382 # you end up with a "frozen" computer, even though with patience 6383 # the test eventually succeeds (with a max line length of 256k). 6384 # Instead, let's just punt: use the minimum linelength reported by 6385 # all of the supported platforms: 8192 (on NT/2K/XP). 6386 lt_cv_sys_max_cmd_len=8192; 6387 ;; 6388 6389 amigaos*) 6390 # On AmigaOS with pdksh, this test takes hours, literally. 6391 # So we just punt and use a minimum line length of 8192. 6392 lt_cv_sys_max_cmd_len=8192; 6393 ;; 6394 6395 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6396 # This has been around since 386BSD, at least. Likely further. 6397 if test -x /sbin/sysctl; then 6398 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6399 elif test -x /usr/sbin/sysctl; then 6400 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6401 else 6402 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6403 fi 6404 # And add a safety zone 6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6407 ;; 6408 6409 interix*) 6410 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6411 lt_cv_sys_max_cmd_len=196608 6412 ;; 6413 6414 osf*) 6415 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6416 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6417 # nice to cause kernel panics so lets avoid the loop below. 6418 # First set a reasonable default. 6419 lt_cv_sys_max_cmd_len=16384 6420 # 6421 if test -x /sbin/sysconfig; then 6422 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6423 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6424 esac 6425 fi 6426 ;; 6427 sco3.2v5*) 6428 lt_cv_sys_max_cmd_len=102400 6429 ;; 6430 sysv5* | sco5v6* | sysv4.2uw2*) 6431 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6432 if test -n "$kargmax"; then 6433 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6434 else 6435 lt_cv_sys_max_cmd_len=32768 6436 fi 6437 ;; 6438 *) 6439 # If test is not a shell built-in, we'll probably end up computing a 6440 # maximum length that is only half of the actual maximum length, but 6441 # we can't tell. 6442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6444 = "XX$teststring") >/dev/null 2>&1 && 6445 new_result=`expr "X$teststring" : ".*" 2>&1` && 6446 lt_cv_sys_max_cmd_len=$new_result && 6447 test $i != 17 # 1/2 MB should be enough 6448 do 6449 i=`expr $i + 1` 6450 teststring=$teststring$teststring 6451 done 6452 teststring= 6453 # Add a significant safety factor because C++ compilers can tack on massive 6454 # amounts of additional arguments before passing them to the linker. 6455 # It appears as though 1/2 is a usable value. 6456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6457 ;; 6458 esac 6459 6460fi 6461 6462if test -n $lt_cv_sys_max_cmd_len ; then 6463 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6464echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6465else 6466 { echo "$as_me:$LINENO: result: none" >&5 6467echo "${ECHO_T}none" >&6; } 6468fi 6469 6470 6471 6472 6473# Check for command to grab the raw symbol name followed by C symbol from nm. 6474{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6475echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6476if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6477 echo $ECHO_N "(cached) $ECHO_C" >&6 6478else 6479 6480# These are sane defaults that work on at least a few old systems. 6481# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6482 6483# Character class describing NM global symbol codes. 6484symcode='[BCDEGRST]' 6485 6486# Regexp to match symbols that can be accessed directly from C. 6487sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6488 6489# Transform an extracted symbol line into a proper C declaration 6490lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6491 6492# Transform an extracted symbol line into symbol name and symbol address 6493lt_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'" 6494 6495# Define system-specific variables. 6496case $host_os in 6497aix*) 6498 symcode='[BCDT]' 6499 ;; 6500cygwin* | mingw* | pw32*) 6501 symcode='[ABCDGISTW]' 6502 ;; 6503hpux*) # Its linker distinguishes data from code symbols 6504 if test "$host_cpu" = ia64; then 6505 symcode='[ABCDEGRST]' 6506 fi 6507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6508 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'" 6509 ;; 6510linux*) 6511 if test "$host_cpu" = ia64; then 6512 symcode='[ABCDGIRSTW]' 6513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6514 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'" 6515 fi 6516 ;; 6517irix* | nonstopux*) 6518 symcode='[BCDEGRST]' 6519 ;; 6520osf*) 6521 symcode='[BCDEGQRST]' 6522 ;; 6523solaris*) 6524 symcode='[BDRT]' 6525 ;; 6526sco3.2v5*) 6527 symcode='[DT]' 6528 ;; 6529sysv4.2uw2*) 6530 symcode='[DT]' 6531 ;; 6532sysv5* | sco5v6* | unixware* | OpenUNIX*) 6533 symcode='[ABDT]' 6534 ;; 6535sysv4) 6536 symcode='[DFNSTU]' 6537 ;; 6538esac 6539 6540# Handle CRLF in mingw tool chain 6541opt_cr= 6542case $build_os in 6543mingw*) 6544 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6545 ;; 6546esac 6547 6548# If we're using GNU nm, then use its standard symbol codes. 6549case `$NM -V 2>&1` in 6550*GNU* | *'with BFD'*) 6551 symcode='[ABCDGIRSTW]' ;; 6552esac 6553 6554# Try without a prefix undercore, then with it. 6555for ac_symprfx in "" "_"; do 6556 6557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6558 symxfrm="\\1 $ac_symprfx\\2 \\2" 6559 6560 # Write the raw and C identifiers. 6561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6562 6563 # Check to see that the pipe works correctly. 6564 pipe_works=no 6565 6566 rm -f conftest* 6567 cat > conftest.$ac_ext <<EOF 6568#ifdef __cplusplus 6569extern "C" { 6570#endif 6571char nm_test_var; 6572void nm_test_func(){} 6573#ifdef __cplusplus 6574} 6575#endif 6576int main(){nm_test_var='a';nm_test_func();return(0);} 6577EOF 6578 6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6580 (eval $ac_compile) 2>&5 6581 ac_status=$? 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); }; then 6584 # Now try to grab the symbols. 6585 nlist=conftest.nm 6586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6588 ac_status=$? 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); } && test -s "$nlist"; then 6591 # Try sorting and uniquifying the output. 6592 if sort "$nlist" | uniq > "$nlist"T; then 6593 mv -f "$nlist"T "$nlist" 6594 else 6595 rm -f "$nlist"T 6596 fi 6597 6598 # Make sure that we snagged all the symbols we need. 6599 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6600 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6601 cat <<EOF > conftest.$ac_ext 6602#ifdef __cplusplus 6603extern "C" { 6604#endif 6605 6606EOF 6607 # Now generate the symbol file. 6608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6609 6610 cat <<EOF >> conftest.$ac_ext 6611#if defined (__STDC__) && __STDC__ 6612# define lt_ptr_t void * 6613#else 6614# define lt_ptr_t char * 6615# define const 6616#endif 6617 6618/* The mapping between symbol names and symbols. */ 6619const struct { 6620 const char *name; 6621 lt_ptr_t address; 6622} 6623lt_preloaded_symbols[] = 6624{ 6625EOF 6626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6627 cat <<\EOF >> conftest.$ac_ext 6628 {0, (lt_ptr_t) 0} 6629}; 6630 6631#ifdef __cplusplus 6632} 6633#endif 6634EOF 6635 # Now try linking the two files. 6636 mv conftest.$ac_objext conftstm.$ac_objext 6637 lt_save_LIBS="$LIBS" 6638 lt_save_CFLAGS="$CFLAGS" 6639 LIBS="conftstm.$ac_objext" 6640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6642 (eval $ac_link) 2>&5 6643 ac_status=$? 6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6645 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6646 pipe_works=yes 6647 fi 6648 LIBS="$lt_save_LIBS" 6649 CFLAGS="$lt_save_CFLAGS" 6650 else 6651 echo "cannot find nm_test_func in $nlist" >&5 6652 fi 6653 else 6654 echo "cannot find nm_test_var in $nlist" >&5 6655 fi 6656 else 6657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6658 fi 6659 else 6660 echo "$progname: failed program was:" >&5 6661 cat conftest.$ac_ext >&5 6662 fi 6663 rm -f conftest* conftst* 6664 6665 # Do not use the global_symbol_pipe unless it works. 6666 if test "$pipe_works" = yes; then 6667 break 6668 else 6669 lt_cv_sys_global_symbol_pipe= 6670 fi 6671done 6672 6673fi 6674 6675if test -z "$lt_cv_sys_global_symbol_pipe"; then 6676 lt_cv_sys_global_symbol_to_cdecl= 6677fi 6678if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6679 { echo "$as_me:$LINENO: result: failed" >&5 6680echo "${ECHO_T}failed" >&6; } 6681else 6682 { echo "$as_me:$LINENO: result: ok" >&5 6683echo "${ECHO_T}ok" >&6; } 6684fi 6685 6686{ echo "$as_me:$LINENO: checking for objdir" >&5 6687echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6688if test "${lt_cv_objdir+set}" = set; then 6689 echo $ECHO_N "(cached) $ECHO_C" >&6 6690else 6691 rm -f .libs 2>/dev/null 6692mkdir .libs 2>/dev/null 6693if test -d .libs; then 6694 lt_cv_objdir=.libs 6695else 6696 # MS-DOS does not allow filenames that begin with a dot. 6697 lt_cv_objdir=_libs 6698fi 6699rmdir .libs 2>/dev/null 6700fi 6701{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6702echo "${ECHO_T}$lt_cv_objdir" >&6; } 6703objdir=$lt_cv_objdir 6704 6705 6706 6707 6708 6709case $host_os in 6710aix3*) 6711 # AIX sometimes has problems with the GCC collect2 program. For some 6712 # reason, if we set the COLLECT_NAMES environment variable, the problems 6713 # vanish in a puff of smoke. 6714 if test "X${COLLECT_NAMES+set}" != Xset; then 6715 COLLECT_NAMES= 6716 export COLLECT_NAMES 6717 fi 6718 ;; 6719esac 6720 6721# Sed substitution that helps us do robust quoting. It backslashifies 6722# metacharacters that are still active within double-quoted strings. 6723Xsed='sed -e 1s/^X//' 6724sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6725 6726# Same as above, but do not quote variable references. 6727double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6728 6729# Sed substitution to delay expansion of an escaped shell variable in a 6730# double_quote_subst'ed string. 6731delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6732 6733# Sed substitution to avoid accidental globbing in evaled expressions 6734no_glob_subst='s/\*/\\\*/g' 6735 6736# Constants: 6737rm="rm -f" 6738 6739# Global variables: 6740default_ofile=libtool 6741can_build_shared=yes 6742 6743# All known linkers require a `.a' archive for static linking (except MSVC, 6744# which needs '.lib'). 6745libext=a 6746ltmain="$ac_aux_dir/ltmain.sh" 6747ofile="$default_ofile" 6748with_gnu_ld="$lt_cv_prog_gnu_ld" 6749 6750if test -n "$ac_tool_prefix"; then 6751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6752set dummy ${ac_tool_prefix}ar; ac_word=$2 6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6755if test "${ac_cv_prog_AR+set}" = set; then 6756 echo $ECHO_N "(cached) $ECHO_C" >&6 6757else 6758 if test -n "$AR"; then 6759 ac_cv_prog_AR="$AR" # Let the user override the test. 6760else 6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762for as_dir in $PATH 6763do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6768 ac_cv_prog_AR="${ac_tool_prefix}ar" 6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772done 6773done 6774IFS=$as_save_IFS 6775 6776fi 6777fi 6778AR=$ac_cv_prog_AR 6779if test -n "$AR"; then 6780 { echo "$as_me:$LINENO: result: $AR" >&5 6781echo "${ECHO_T}$AR" >&6; } 6782else 6783 { echo "$as_me:$LINENO: result: no" >&5 6784echo "${ECHO_T}no" >&6; } 6785fi 6786 6787 6788fi 6789if test -z "$ac_cv_prog_AR"; then 6790 ac_ct_AR=$AR 6791 # Extract the first word of "ar", so it can be a program name with args. 6792set dummy ar; ac_word=$2 6793{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6796 echo $ECHO_N "(cached) $ECHO_C" >&6 6797else 6798 if test -n "$ac_ct_AR"; then 6799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6800else 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802for as_dir in $PATH 6803do 6804 IFS=$as_save_IFS 6805 test -z "$as_dir" && as_dir=. 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6808 ac_cv_prog_ac_ct_AR="ar" 6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812done 6813done 6814IFS=$as_save_IFS 6815 6816fi 6817fi 6818ac_ct_AR=$ac_cv_prog_ac_ct_AR 6819if test -n "$ac_ct_AR"; then 6820 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6821echo "${ECHO_T}$ac_ct_AR" >&6; } 6822else 6823 { echo "$as_me:$LINENO: result: no" >&5 6824echo "${ECHO_T}no" >&6; } 6825fi 6826 6827 if test "x$ac_ct_AR" = x; then 6828 AR="false" 6829 else 6830 case $cross_compiling:$ac_tool_warned in 6831yes:) 6832{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6833whose name does not start with the host triplet. If you think this 6834configuration is useful to you, please write to autoconf@gnu.org." >&5 6835echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6836whose name does not start with the host triplet. If you think this 6837configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6838ac_tool_warned=yes ;; 6839esac 6840 AR=$ac_ct_AR 6841 fi 6842else 6843 AR="$ac_cv_prog_AR" 6844fi 6845 6846if test -n "$ac_tool_prefix"; then 6847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6848set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6851if test "${ac_cv_prog_RANLIB+set}" = set; then 6852 echo $ECHO_N "(cached) $ECHO_C" >&6 6853else 6854 if test -n "$RANLIB"; then 6855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6856else 6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6866 break 2 6867 fi 6868done 6869done 6870IFS=$as_save_IFS 6871 6872fi 6873fi 6874RANLIB=$ac_cv_prog_RANLIB 6875if test -n "$RANLIB"; then 6876 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6877echo "${ECHO_T}$RANLIB" >&6; } 6878else 6879 { echo "$as_me:$LINENO: result: no" >&5 6880echo "${ECHO_T}no" >&6; } 6881fi 6882 6883 6884fi 6885if test -z "$ac_cv_prog_RANLIB"; then 6886 ac_ct_RANLIB=$RANLIB 6887 # Extract the first word of "ranlib", so it can be a program name with args. 6888set dummy ranlib; ac_word=$2 6889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 if test -n "$ac_ct_RANLIB"; then 6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6904 ac_cv_prog_ac_ct_RANLIB="ranlib" 6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6915if test -n "$ac_ct_RANLIB"; then 6916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6917echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6918else 6919 { echo "$as_me:$LINENO: result: no" >&5 6920echo "${ECHO_T}no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_RANLIB" = x; then 6924 RANLIB=":" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6929whose name does not start with the host triplet. If you think this 6930configuration is useful to you, please write to autoconf@gnu.org." >&5 6931echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6932whose name does not start with the host triplet. If you think this 6933configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6934ac_tool_warned=yes ;; 6935esac 6936 RANLIB=$ac_ct_RANLIB 6937 fi 6938else 6939 RANLIB="$ac_cv_prog_RANLIB" 6940fi 6941 6942if test -n "$ac_tool_prefix"; then 6943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6944set dummy ${ac_tool_prefix}strip; ac_word=$2 6945{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6947if test "${ac_cv_prog_STRIP+set}" = set; then 6948 echo $ECHO_N "(cached) $ECHO_C" >&6 6949else 6950 if test -n "$STRIP"; then 6951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6952else 6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6954for as_dir in $PATH 6955do 6956 IFS=$as_save_IFS 6957 test -z "$as_dir" && as_dir=. 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6960 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964done 6965done 6966IFS=$as_save_IFS 6967 6968fi 6969fi 6970STRIP=$ac_cv_prog_STRIP 6971if test -n "$STRIP"; then 6972 { echo "$as_me:$LINENO: result: $STRIP" >&5 6973echo "${ECHO_T}$STRIP" >&6; } 6974else 6975 { echo "$as_me:$LINENO: result: no" >&5 6976echo "${ECHO_T}no" >&6; } 6977fi 6978 6979 6980fi 6981if test -z "$ac_cv_prog_STRIP"; then 6982 ac_ct_STRIP=$STRIP 6983 # Extract the first word of "strip", so it can be a program name with args. 6984set dummy strip; ac_word=$2 6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6987if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6988 echo $ECHO_N "(cached) $ECHO_C" >&6 6989else 6990 if test -n "$ac_ct_STRIP"; then 6991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6992else 6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6994for as_dir in $PATH 6995do 6996 IFS=$as_save_IFS 6997 test -z "$as_dir" && as_dir=. 6998 for ac_exec_ext in '' $ac_executable_extensions; do 6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7000 ac_cv_prog_ac_ct_STRIP="strip" 7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7002 break 2 7003 fi 7004done 7005done 7006IFS=$as_save_IFS 7007 7008fi 7009fi 7010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7011if test -n "$ac_ct_STRIP"; then 7012 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7013echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7014else 7015 { echo "$as_me:$LINENO: result: no" >&5 7016echo "${ECHO_T}no" >&6; } 7017fi 7018 7019 if test "x$ac_ct_STRIP" = x; then 7020 STRIP=":" 7021 else 7022 case $cross_compiling:$ac_tool_warned in 7023yes:) 7024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7025whose name does not start with the host triplet. If you think this 7026configuration is useful to you, please write to autoconf@gnu.org." >&5 7027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7028whose name does not start with the host triplet. If you think this 7029configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7030ac_tool_warned=yes ;; 7031esac 7032 STRIP=$ac_ct_STRIP 7033 fi 7034else 7035 STRIP="$ac_cv_prog_STRIP" 7036fi 7037 7038 7039old_CC="$CC" 7040old_CFLAGS="$CFLAGS" 7041 7042# Set sane defaults for various variables 7043test -z "$AR" && AR=ar 7044test -z "$AR_FLAGS" && AR_FLAGS=cru 7045test -z "$AS" && AS=as 7046test -z "$CC" && CC=cc 7047test -z "$LTCC" && LTCC=$CC 7048test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7049test -z "$DLLTOOL" && DLLTOOL=dlltool 7050test -z "$LD" && LD=ld 7051test -z "$LN_S" && LN_S="ln -s" 7052test -z "$MAGIC_CMD" && MAGIC_CMD=file 7053test -z "$NM" && NM=nm 7054test -z "$SED" && SED=sed 7055test -z "$OBJDUMP" && OBJDUMP=objdump 7056test -z "$RANLIB" && RANLIB=: 7057test -z "$STRIP" && STRIP=: 7058test -z "$ac_objext" && ac_objext=o 7059 7060# Determine commands to create old-style static archives. 7061old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7062old_postinstall_cmds='chmod 644 $oldlib' 7063old_postuninstall_cmds= 7064 7065if test -n "$RANLIB"; then 7066 case $host_os in 7067 openbsd*) 7068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7069 ;; 7070 *) 7071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7072 ;; 7073 esac 7074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7075fi 7076 7077for cc_temp in $compiler""; do 7078 case $cc_temp in 7079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7081 \-*) ;; 7082 *) break;; 7083 esac 7084done 7085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7086 7087 7088# Only perform the check for file, if the check method requires it 7089case $deplibs_check_method in 7090file_magic*) 7091 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7092 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7093echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7094if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7095 echo $ECHO_N "(cached) $ECHO_C" >&6 7096else 7097 case $MAGIC_CMD in 7098[\\/*] | ?:[\\/]*) 7099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7100 ;; 7101*) 7102 lt_save_MAGIC_CMD="$MAGIC_CMD" 7103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7105 for ac_dir in $ac_dummy; do 7106 IFS="$lt_save_ifs" 7107 test -z "$ac_dir" && ac_dir=. 7108 if test -f $ac_dir/${ac_tool_prefix}file; then 7109 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7110 if test -n "$file_magic_test_file"; then 7111 case $deplibs_check_method in 7112 "file_magic "*) 7113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7116 $EGREP "$file_magic_regex" > /dev/null; then 7117 : 7118 else 7119 cat <<EOF 1>&2 7120 7121*** Warning: the command libtool uses to detect shared libraries, 7122*** $file_magic_cmd, produces output that libtool cannot recognize. 7123*** The result is that libtool may fail to recognize shared libraries 7124*** as such. This will affect the creation of libtool libraries that 7125*** depend on shared libraries, but programs linked with such libtool 7126*** libraries will work regardless of this problem. Nevertheless, you 7127*** may want to report the problem to your system manager and/or to 7128*** bug-libtool@gnu.org 7129 7130EOF 7131 fi ;; 7132 esac 7133 fi 7134 break 7135 fi 7136 done 7137 IFS="$lt_save_ifs" 7138 MAGIC_CMD="$lt_save_MAGIC_CMD" 7139 ;; 7140esac 7141fi 7142 7143MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7144if test -n "$MAGIC_CMD"; then 7145 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7146echo "${ECHO_T}$MAGIC_CMD" >&6; } 7147else 7148 { echo "$as_me:$LINENO: result: no" >&5 7149echo "${ECHO_T}no" >&6; } 7150fi 7151 7152if test -z "$lt_cv_path_MAGIC_CMD"; then 7153 if test -n "$ac_tool_prefix"; then 7154 { echo "$as_me:$LINENO: checking for file" >&5 7155echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7156if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7157 echo $ECHO_N "(cached) $ECHO_C" >&6 7158else 7159 case $MAGIC_CMD in 7160[\\/*] | ?:[\\/]*) 7161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7162 ;; 7163*) 7164 lt_save_MAGIC_CMD="$MAGIC_CMD" 7165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7167 for ac_dir in $ac_dummy; do 7168 IFS="$lt_save_ifs" 7169 test -z "$ac_dir" && ac_dir=. 7170 if test -f $ac_dir/file; then 7171 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7172 if test -n "$file_magic_test_file"; then 7173 case $deplibs_check_method in 7174 "file_magic "*) 7175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7178 $EGREP "$file_magic_regex" > /dev/null; then 7179 : 7180 else 7181 cat <<EOF 1>&2 7182 7183*** Warning: the command libtool uses to detect shared libraries, 7184*** $file_magic_cmd, produces output that libtool cannot recognize. 7185*** The result is that libtool may fail to recognize shared libraries 7186*** as such. This will affect the creation of libtool libraries that 7187*** depend on shared libraries, but programs linked with such libtool 7188*** libraries will work regardless of this problem. Nevertheless, you 7189*** may want to report the problem to your system manager and/or to 7190*** bug-libtool@gnu.org 7191 7192EOF 7193 fi ;; 7194 esac 7195 fi 7196 break 7197 fi 7198 done 7199 IFS="$lt_save_ifs" 7200 MAGIC_CMD="$lt_save_MAGIC_CMD" 7201 ;; 7202esac 7203fi 7204 7205MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7206if test -n "$MAGIC_CMD"; then 7207 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7208echo "${ECHO_T}$MAGIC_CMD" >&6; } 7209else 7210 { echo "$as_me:$LINENO: result: no" >&5 7211echo "${ECHO_T}no" >&6; } 7212fi 7213 7214 else 7215 MAGIC_CMD=: 7216 fi 7217fi 7218 7219 fi 7220 ;; 7221esac 7222 7223enable_dlopen=no 7224enable_win32_dll=no 7225 7226# Check whether --enable-libtool-lock was given. 7227if test "${enable_libtool_lock+set}" = set; then 7228 enableval=$enable_libtool_lock; 7229fi 7230 7231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7232 7233 7234# Check whether --with-pic was given. 7235if test "${with_pic+set}" = set; then 7236 withval=$with_pic; pic_mode="$withval" 7237else 7238 pic_mode=default 7239fi 7240 7241test -z "$pic_mode" && pic_mode=default 7242 7243# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 7244# 7245# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 7246# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 7247# calls AC_LIBTOOL_CONFIG and creates libtool. 7248# 7249{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 7250echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; } 7251if test "x$ltmain" = "x" ; then 7252 { echo "$as_me:$LINENO: result: no" >&5 7253echo "${ECHO_T}no" >&6; } 7254 { { echo "$as_me:$LINENO: error: 7255 7256*** [Gentoo] sanity check failed! *** 7257*** \$ltmain is not defined, please check the patch for consistency! *** 7258" >&5 7259echo "$as_me: error: 7260 7261*** [Gentoo] sanity check failed! *** 7262*** \$ltmain is not defined, please check the patch for consistency! *** 7263" >&2;} 7264 { (exit 1); exit 1; }; } 7265fi 7266gentoo_lt_version="1.5.22" 7267gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 7268if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 7269 { echo "$as_me:$LINENO: result: no" >&5 7270echo "${ECHO_T}no" >&6; } 7271 { { echo "$as_me:$LINENO: error: 7272 7273*** [Gentoo] sanity check failed! *** 7274*** libtool.m4 and ltmain.sh have a version mismatch! *** 7275*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7276 7277Please run: 7278 7279 libtoolize --copy --force 7280 7281if appropriate, please contact the maintainer of this 7282package (or your distribution) for help. 7283" >&5 7284echo "$as_me: error: 7285 7286*** [Gentoo] sanity check failed! *** 7287*** libtool.m4 and ltmain.sh have a version mismatch! *** 7288*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 7289 7290Please run: 7291 7292 libtoolize --copy --force 7293 7294if appropriate, please contact the maintainer of this 7295package (or your distribution) for help. 7296" >&2;} 7297 { (exit 1); exit 1; }; } 7298else 7299 { echo "$as_me:$LINENO: result: yes" >&5 7300echo "${ECHO_T}yes" >&6; } 7301fi 7302 7303 7304# Use C for the default configuration in the libtool script 7305tagname= 7306lt_save_CC="$CC" 7307ac_ext=c 7308ac_cpp='$CPP $CPPFLAGS' 7309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7311ac_compiler_gnu=$ac_cv_c_compiler_gnu 7312 7313 7314# Source file extension for C test sources. 7315ac_ext=c 7316 7317# Object file extension for compiled C test sources. 7318objext=o 7319objext=$objext 7320 7321# Code to be used in simple compile tests 7322lt_simple_compile_test_code="int some_variable = 0;\n" 7323 7324# Code to be used in simple link tests 7325lt_simple_link_test_code='int main(){return(0);}\n' 7326 7327 7328# If no C compiler was specified, use CC. 7329LTCC=${LTCC-"$CC"} 7330 7331# If no C compiler flags were specified, use CFLAGS. 7332LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7333 7334# Allow CC to be a program name with arguments. 7335compiler=$CC 7336 7337 7338# save warnings/boilerplate of simple test code 7339ac_outfile=conftest.$ac_objext 7340printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7342_lt_compiler_boilerplate=`cat conftest.err` 7343$rm conftest* 7344 7345ac_outfile=conftest.$ac_objext 7346printf "$lt_simple_link_test_code" >conftest.$ac_ext 7347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7348_lt_linker_boilerplate=`cat conftest.err` 7349$rm conftest* 7350 7351 7352 7353lt_prog_compiler_no_builtin_flag= 7354 7355if test "$GCC" = yes; then 7356 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7357 7358 7359{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7360echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7361if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7362 echo $ECHO_N "(cached) $ECHO_C" >&6 7363else 7364 lt_cv_prog_compiler_rtti_exceptions=no 7365 ac_outfile=conftest.$ac_objext 7366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7367 lt_compiler_flag="-fno-rtti -fno-exceptions" 7368 # Insert the option either (1) after the last *FLAGS variable, or 7369 # (2) before a word containing "conftest.", or (3) at the end. 7370 # Note that $ac_compile itself does not contain backslashes and begins 7371 # with a dollar sign (not a hyphen), so the echo should work correctly. 7372 # The option is referenced via a variable to avoid confusing sed. 7373 lt_compile=`echo "$ac_compile" | $SED \ 7374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7376 -e 's:$: $lt_compiler_flag:'` 7377 (eval echo "\"\$as_me:7377: $lt_compile\"" >&5) 7378 (eval "$lt_compile" 2>conftest.err) 7379 ac_status=$? 7380 cat conftest.err >&5 7381 echo "$as_me:7381: \$? = $ac_status" >&5 7382 if (exit $ac_status) && test -s "$ac_outfile"; then 7383 # The compiler can only warn and ignore the option if not recognized 7384 # So say no if there are warnings other than the usual output. 7385 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7388 lt_cv_prog_compiler_rtti_exceptions=yes 7389 fi 7390 fi 7391 $rm conftest* 7392 7393fi 7394{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7395echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7396 7397if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7398 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7399else 7400 : 7401fi 7402 7403fi 7404 7405lt_prog_compiler_wl= 7406lt_prog_compiler_pic= 7407lt_prog_compiler_static= 7408 7409{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7410echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7411 7412 if test "$GCC" = yes; then 7413 lt_prog_compiler_wl='-Wl,' 7414 lt_prog_compiler_static='-static' 7415 7416 case $host_os in 7417 aix*) 7418 # All AIX code is PIC. 7419 if test "$host_cpu" = ia64; then 7420 # AIX 5 now supports IA64 processor 7421 lt_prog_compiler_static='-Bstatic' 7422 fi 7423 ;; 7424 7425 amigaos*) 7426 # FIXME: we need at least 68020 code to build shared libraries, but 7427 # adding the `-m68020' flag to GCC prevents building anything better, 7428 # like `-m68040'. 7429 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7430 ;; 7431 7432 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7433 # PIC is the default for these OSes. 7434 ;; 7435 7436 mingw* | pw32* | os2*) 7437 # This hack is so that the source file can tell whether it is being 7438 # built for inclusion in a dll (and should export symbols for example). 7439 lt_prog_compiler_pic='-DDLL_EXPORT' 7440 ;; 7441 7442 darwin* | rhapsody*) 7443 # PIC is the default on this platform 7444 # Common symbols not allowed in MH_DYLIB files 7445 lt_prog_compiler_pic='-fno-common' 7446 ;; 7447 7448 interix3*) 7449 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7450 # Instead, we relocate shared libraries at runtime. 7451 ;; 7452 7453 msdosdjgpp*) 7454 # Just because we use GCC doesn't mean we suddenly get shared libraries 7455 # on systems that don't support them. 7456 lt_prog_compiler_can_build_shared=no 7457 enable_shared=no 7458 ;; 7459 7460 sysv4*MP*) 7461 if test -d /usr/nec; then 7462 lt_prog_compiler_pic=-Kconform_pic 7463 fi 7464 ;; 7465 7466 hpux*) 7467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7468 # not for PA HP-UX. 7469 case $host_cpu in 7470 hppa*64*|ia64*) 7471 # +Z the default 7472 ;; 7473 *) 7474 lt_prog_compiler_pic='-fPIC' 7475 ;; 7476 esac 7477 ;; 7478 7479 *) 7480 lt_prog_compiler_pic='-fPIC' 7481 ;; 7482 esac 7483 else 7484 # PORTME Check for flag to pass linker flags through the system compiler. 7485 case $host_os in 7486 aix*) 7487 lt_prog_compiler_wl='-Wl,' 7488 if test "$host_cpu" = ia64; then 7489 # AIX 5 now supports IA64 processor 7490 lt_prog_compiler_static='-Bstatic' 7491 else 7492 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7493 fi 7494 ;; 7495 darwin*) 7496 # PIC is the default on this platform 7497 # Common symbols not allowed in MH_DYLIB files 7498 case $cc_basename in 7499 xlc*) 7500 lt_prog_compiler_pic='-qnocommon' 7501 lt_prog_compiler_wl='-Wl,' 7502 ;; 7503 esac 7504 ;; 7505 7506 mingw* | pw32* | os2*) 7507 # This hack is so that the source file can tell whether it is being 7508 # built for inclusion in a dll (and should export symbols for example). 7509 lt_prog_compiler_pic='-DDLL_EXPORT' 7510 ;; 7511 7512 hpux9* | hpux10* | hpux11*) 7513 lt_prog_compiler_wl='-Wl,' 7514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7515 # not for PA HP-UX. 7516 case $host_cpu in 7517 hppa*64*|ia64*) 7518 # +Z the default 7519 ;; 7520 *) 7521 lt_prog_compiler_pic='+Z' 7522 ;; 7523 esac 7524 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7525 lt_prog_compiler_static='${wl}-a ${wl}archive' 7526 ;; 7527 7528 irix5* | irix6* | nonstopux*) 7529 lt_prog_compiler_wl='-Wl,' 7530 # PIC (with -KPIC) is the default. 7531 lt_prog_compiler_static='-non_shared' 7532 ;; 7533 7534 newsos6) 7535 lt_prog_compiler_pic='-KPIC' 7536 lt_prog_compiler_static='-Bstatic' 7537 ;; 7538 7539 linux*) 7540 case $cc_basename in 7541 icc* | ecc*) 7542 lt_prog_compiler_wl='-Wl,' 7543 lt_prog_compiler_pic='-KPIC' 7544 lt_prog_compiler_static='-static' 7545 ;; 7546 pgcc* | pgf77* | pgf90* | pgf95*) 7547 # Portland Group compilers (*not* the Pentium gcc compiler, 7548 # which looks to be a dead project) 7549 lt_prog_compiler_wl='-Wl,' 7550 lt_prog_compiler_pic='-fpic' 7551 lt_prog_compiler_static='-Bstatic' 7552 ;; 7553 ccc*) 7554 lt_prog_compiler_wl='-Wl,' 7555 # All Alpha code is PIC. 7556 lt_prog_compiler_static='-non_shared' 7557 ;; 7558 esac 7559 ;; 7560 7561 osf3* | osf4* | osf5*) 7562 lt_prog_compiler_wl='-Wl,' 7563 # All OSF/1 code is PIC. 7564 lt_prog_compiler_static='-non_shared' 7565 ;; 7566 7567 solaris*) 7568 lt_prog_compiler_pic='-KPIC' 7569 lt_prog_compiler_static='-Bstatic' 7570 case $cc_basename in 7571 f77* | f90* | f95*) 7572 lt_prog_compiler_wl='-Qoption ld ';; 7573 *) 7574 lt_prog_compiler_wl='-Wl,';; 7575 esac 7576 ;; 7577 7578 sunos4*) 7579 lt_prog_compiler_wl='-Qoption ld ' 7580 lt_prog_compiler_pic='-PIC' 7581 lt_prog_compiler_static='-Bstatic' 7582 ;; 7583 7584 sysv4 | sysv4.2uw2* | sysv4.3*) 7585 lt_prog_compiler_wl='-Wl,' 7586 lt_prog_compiler_pic='-KPIC' 7587 lt_prog_compiler_static='-Bstatic' 7588 ;; 7589 7590 sysv4*MP*) 7591 if test -d /usr/nec ;then 7592 lt_prog_compiler_pic='-Kconform_pic' 7593 lt_prog_compiler_static='-Bstatic' 7594 fi 7595 ;; 7596 7597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7598 lt_prog_compiler_wl='-Wl,' 7599 lt_prog_compiler_pic='-KPIC' 7600 lt_prog_compiler_static='-Bstatic' 7601 ;; 7602 7603 unicos*) 7604 lt_prog_compiler_wl='-Wl,' 7605 lt_prog_compiler_can_build_shared=no 7606 ;; 7607 7608 uts4*) 7609 lt_prog_compiler_pic='-pic' 7610 lt_prog_compiler_static='-Bstatic' 7611 ;; 7612 7613 *) 7614 lt_prog_compiler_can_build_shared=no 7615 ;; 7616 esac 7617 fi 7618 7619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7620echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7621 7622# 7623# Check to make sure the PIC flag actually works. 7624# 7625if test -n "$lt_prog_compiler_pic"; then 7626 7627{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7628echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7629if test "${lt_prog_compiler_pic_works+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631else 7632 lt_prog_compiler_pic_works=no 7633 ac_outfile=conftest.$ac_objext 7634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7636 # Insert the option either (1) after the last *FLAGS variable, or 7637 # (2) before a word containing "conftest.", or (3) at the end. 7638 # Note that $ac_compile itself does not contain backslashes and begins 7639 # with a dollar sign (not a hyphen), so the echo should work correctly. 7640 # The option is referenced via a variable to avoid confusing sed. 7641 lt_compile=`echo "$ac_compile" | $SED \ 7642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7644 -e 's:$: $lt_compiler_flag:'` 7645 (eval echo "\"\$as_me:7645: $lt_compile\"" >&5) 7646 (eval "$lt_compile" 2>conftest.err) 7647 ac_status=$? 7648 cat conftest.err >&5 7649 echo "$as_me:7649: \$? = $ac_status" >&5 7650 if (exit $ac_status) && test -s "$ac_outfile"; then 7651 # The compiler can only warn and ignore the option if not recognized 7652 # So say no if there are warnings other than the usual output. 7653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7656 lt_prog_compiler_pic_works=yes 7657 fi 7658 fi 7659 $rm conftest* 7660 7661fi 7662{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7663echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7664 7665if test x"$lt_prog_compiler_pic_works" = xyes; then 7666 case $lt_prog_compiler_pic in 7667 "" | " "*) ;; 7668 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7669 esac 7670else 7671 lt_prog_compiler_pic= 7672 lt_prog_compiler_can_build_shared=no 7673fi 7674 7675fi 7676case $host_os in 7677 # For platforms which do not support PIC, -DPIC is meaningless: 7678 *djgpp*) 7679 lt_prog_compiler_pic= 7680 ;; 7681 *) 7682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7683 ;; 7684esac 7685 7686# 7687# Check to make sure the static flag actually works. 7688# 7689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7690{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7691echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7692if test "${lt_prog_compiler_static_works+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 lt_prog_compiler_static_works=no 7696 save_LDFLAGS="$LDFLAGS" 7697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7698 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7700 # The linker can only warn and ignore the option if not recognized 7701 # So say no if there are warnings 7702 if test -s conftest.err; then 7703 # Append any errors to the config.log. 7704 cat conftest.err 1>&5 7705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7707 if diff conftest.exp conftest.er2 >/dev/null; then 7708 lt_prog_compiler_static_works=yes 7709 fi 7710 else 7711 lt_prog_compiler_static_works=yes 7712 fi 7713 fi 7714 $rm conftest* 7715 LDFLAGS="$save_LDFLAGS" 7716 7717fi 7718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7719echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7720 7721if test x"$lt_prog_compiler_static_works" = xyes; then 7722 : 7723else 7724 lt_prog_compiler_static= 7725fi 7726 7727 7728{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7730if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7731 echo $ECHO_N "(cached) $ECHO_C" >&6 7732else 7733 lt_cv_prog_compiler_c_o=no 7734 $rm -r conftest 2>/dev/null 7735 mkdir conftest 7736 cd conftest 7737 mkdir out 7738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7739 7740 lt_compiler_flag="-o out/conftest2.$ac_objext" 7741 # Insert the option either (1) after the last *FLAGS variable, or 7742 # (2) before a word containing "conftest.", or (3) at the end. 7743 # Note that $ac_compile itself does not contain backslashes and begins 7744 # with a dollar sign (not a hyphen), so the echo should work correctly. 7745 lt_compile=`echo "$ac_compile" | $SED \ 7746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7748 -e 's:$: $lt_compiler_flag:'` 7749 (eval echo "\"\$as_me:7749: $lt_compile\"" >&5) 7750 (eval "$lt_compile" 2>out/conftest.err) 7751 ac_status=$? 7752 cat out/conftest.err >&5 7753 echo "$as_me:7753: \$? = $ac_status" >&5 7754 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7755 then 7756 # The compiler can only warn and ignore the option if not recognized 7757 # So say no if there are warnings 7758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7761 lt_cv_prog_compiler_c_o=yes 7762 fi 7763 fi 7764 chmod u+w . 2>&5 7765 $rm conftest* 7766 # SGI C++ compiler will create directory out/ii_files/ for 7767 # template instantiation 7768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7769 $rm out/* && rmdir out 7770 cd .. 7771 rmdir conftest 7772 $rm conftest* 7773 7774fi 7775{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7776echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7777 7778 7779hard_links="nottested" 7780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7781 # do not overwrite the value of need_locks provided by the user 7782 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7784 hard_links=yes 7785 $rm conftest* 7786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7787 touch conftest.a 7788 ln conftest.a conftest.b 2>&5 || hard_links=no 7789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7790 { echo "$as_me:$LINENO: result: $hard_links" >&5 7791echo "${ECHO_T}$hard_links" >&6; } 7792 if test "$hard_links" = no; then 7793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7795 need_locks=warn 7796 fi 7797else 7798 need_locks=no 7799fi 7800 7801{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7803 7804 runpath_var= 7805 allow_undefined_flag= 7806 enable_shared_with_static_runtimes=no 7807 archive_cmds= 7808 archive_expsym_cmds= 7809 old_archive_From_new_cmds= 7810 old_archive_from_expsyms_cmds= 7811 export_dynamic_flag_spec= 7812 whole_archive_flag_spec= 7813 thread_safe_flag_spec= 7814 hardcode_libdir_flag_spec= 7815 hardcode_libdir_flag_spec_ld= 7816 hardcode_libdir_separator= 7817 hardcode_direct=no 7818 hardcode_minus_L=no 7819 hardcode_shlibpath_var=unsupported 7820 link_all_deplibs=unknown 7821 hardcode_automatic=no 7822 module_cmds= 7823 module_expsym_cmds= 7824 always_export_symbols=no 7825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7826 # include_expsyms should be a list of space-separated symbols to be *always* 7827 # included in the symbol list 7828 include_expsyms= 7829 # exclude_expsyms can be an extended regexp of symbols to exclude 7830 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7832 # as well as any symbol that contains `d'. 7833 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7835 # platforms (ab)use it in PIC code, but their linkers get confused if 7836 # the symbol is explicitly referenced. Since portable code cannot 7837 # rely on this symbol name, it's probably fine to never include it in 7838 # preloaded symbol tables. 7839 extract_expsyms_cmds= 7840 # Just being paranoid about ensuring that cc_basename is set. 7841 for cc_temp in $compiler""; do 7842 case $cc_temp in 7843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7845 \-*) ;; 7846 *) break;; 7847 esac 7848done 7849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7850 7851 case $host_os in 7852 cygwin* | mingw* | pw32*) 7853 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7854 # When not using gcc, we currently assume that we are using 7855 # Microsoft Visual C++. 7856 if test "$GCC" != yes; then 7857 with_gnu_ld=no 7858 fi 7859 ;; 7860 interix*) 7861 # we just hope/assume this is gcc and not c89 (= MSVC++) 7862 with_gnu_ld=yes 7863 ;; 7864 openbsd*) 7865 with_gnu_ld=no 7866 ;; 7867 esac 7868 7869 ld_shlibs=yes 7870 if test "$with_gnu_ld" = yes; then 7871 # If archive_cmds runs LD, not CC, wlarc should be empty 7872 wlarc='${wl}' 7873 7874 # Set some defaults for GNU ld with shared library support. These 7875 # are reset later if shared libraries are not supported. Putting them 7876 # here allows them to be overridden if necessary. 7877 runpath_var=LD_RUN_PATH 7878 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7879 export_dynamic_flag_spec='${wl}--export-dynamic' 7880 # ancient GNU ld didn't support --whole-archive et. al. 7881 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7882 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7883 else 7884 whole_archive_flag_spec= 7885 fi 7886 supports_anon_versioning=no 7887 case `$LD -v 2>/dev/null` in 7888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7891 *\ 2.11.*) ;; # other 2.11 versions 7892 *) supports_anon_versioning=yes ;; 7893 esac 7894 7895 # See if GNU ld supports shared libraries. 7896 case $host_os in 7897 aix3* | aix4* | aix5*) 7898 # On AIX/PPC, the GNU linker is very broken 7899 if test "$host_cpu" != ia64; then 7900 ld_shlibs=no 7901 cat <<EOF 1>&2 7902 7903*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7904*** to be unable to reliably create shared libraries on AIX. 7905*** Therefore, libtool is disabling shared libraries support. If you 7906*** really care for shared libraries, you may want to modify your PATH 7907*** so that a non-GNU linker is found, and then restart. 7908 7909EOF 7910 fi 7911 ;; 7912 7913 amigaos*) 7914 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)' 7915 hardcode_libdir_flag_spec='-L$libdir' 7916 hardcode_minus_L=yes 7917 7918 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7919 # that the semantics of dynamic libraries on AmigaOS, at least up 7920 # to version 4, is to share data among multiple programs linked 7921 # with the same dynamic library. Since this doesn't match the 7922 # behavior of shared libraries on other platforms, we can't use 7923 # them. 7924 ld_shlibs=no 7925 ;; 7926 7927 beos*) 7928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7929 allow_undefined_flag=unsupported 7930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7931 # support --undefined. This deserves some investigation. FIXME 7932 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7933 else 7934 ld_shlibs=no 7935 fi 7936 ;; 7937 7938 cygwin* | mingw* | pw32*) 7939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7940 # as there is no search path for DLLs. 7941 hardcode_libdir_flag_spec='-L$libdir' 7942 allow_undefined_flag=unsupported 7943 always_export_symbols=no 7944 enable_shared_with_static_runtimes=yes 7945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7946 7947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7949 # If the export-symbols file already is a .def file (1st line 7950 # is EXPORTS), use it as is; otherwise, prepend... 7951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7952 cp $export_symbols $output_objdir/$soname.def; 7953 else 7954 echo EXPORTS > $output_objdir/$soname.def; 7955 cat $export_symbols >> $output_objdir/$soname.def; 7956 fi~ 7957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7958 else 7959 ld_shlibs=no 7960 fi 7961 ;; 7962 7963 interix3*) 7964 hardcode_direct=no 7965 hardcode_shlibpath_var=no 7966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7967 export_dynamic_flag_spec='${wl}-E' 7968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7969 # Instead, shared libraries are loaded at an image base (0x10000000 by 7970 # default) and relocated if they conflict, which is a slow very memory 7971 # consuming and fragmenting process. To avoid this, we pick a random, 7972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7973 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7975 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' 7976 ;; 7977 7978 linux*) 7979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7980 tmp_addflag= 7981 case $cc_basename,$host_cpu in 7982 pgcc*) # Portland Group C compiler 7983 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' 7984 tmp_addflag=' $pic_flag' 7985 ;; 7986 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7987 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' 7988 tmp_addflag=' $pic_flag -Mnomain' ;; 7989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7990 tmp_addflag=' -i_dynamic' ;; 7991 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7992 tmp_addflag=' -i_dynamic -nofor_main' ;; 7993 ifc* | ifort*) # Intel Fortran compiler 7994 tmp_addflag=' -nofor_main' ;; 7995 esac 7996 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7997 7998 if test $supports_anon_versioning = yes; then 7999 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8001 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8002 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8003 fi 8004 else 8005 ld_shlibs=no 8006 fi 8007 ;; 8008 8009 netbsd*) 8010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8011 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8012 wlarc= 8013 else 8014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8016 fi 8017 ;; 8018 8019 solaris*) 8020 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8021 ld_shlibs=no 8022 cat <<EOF 1>&2 8023 8024*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8025*** create shared libraries on Solaris systems. Therefore, libtool 8026*** is disabling shared libraries support. We urge you to upgrade GNU 8027*** binutils to release 2.9.1 or newer. Another option is to modify 8028*** your PATH or compiler configuration so that the native linker is 8029*** used, and then restart. 8030 8031EOF 8032 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8035 else 8036 ld_shlibs=no 8037 fi 8038 ;; 8039 8040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8041 case `$LD -v 2>&1` in 8042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8043 ld_shlibs=no 8044 cat <<_LT_EOF 1>&2 8045 8046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8047*** reliably create shared libraries on SCO systems. Therefore, libtool 8048*** is disabling shared libraries support. We urge you to upgrade GNU 8049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8050*** your PATH or compiler configuration so that the native linker is 8051*** used, and then restart. 8052 8053_LT_EOF 8054 ;; 8055 *) 8056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8057 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8060 else 8061 ld_shlibs=no 8062 fi 8063 ;; 8064 esac 8065 ;; 8066 8067 sunos4*) 8068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8069 wlarc= 8070 hardcode_direct=yes 8071 hardcode_shlibpath_var=no 8072 ;; 8073 8074 *) 8075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8078 else 8079 ld_shlibs=no 8080 fi 8081 ;; 8082 esac 8083 8084 if test "$ld_shlibs" = no; then 8085 runpath_var= 8086 hardcode_libdir_flag_spec= 8087 export_dynamic_flag_spec= 8088 whole_archive_flag_spec= 8089 fi 8090 else 8091 # PORTME fill in a description of your system's linker (not GNU ld) 8092 case $host_os in 8093 aix3*) 8094 allow_undefined_flag=unsupported 8095 always_export_symbols=yes 8096 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' 8097 # Note: this linker hardcodes the directories in LIBPATH if there 8098 # are no directories specified by -L. 8099 hardcode_minus_L=yes 8100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8101 # Neither direct hardcoding nor static linking is supported with a 8102 # broken collect2. 8103 hardcode_direct=unsupported 8104 fi 8105 ;; 8106 8107 aix4* | aix5*) 8108 if test "$host_cpu" = ia64; then 8109 # On IA64, the linker does run time linking by default, so we don't 8110 # have to do anything special. 8111 aix_use_runtimelinking=no 8112 exp_sym_flag='-Bexport' 8113 no_entry_flag="" 8114 else 8115 # If we're using GNU nm, then we don't want the "-C" option. 8116 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8118 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' 8119 else 8120 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' 8121 fi 8122 aix_use_runtimelinking=no 8123 8124 # Test if we are trying to use run time linking or normal 8125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8126 # need to do runtime linking. 8127 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8128 for ld_flag in $LDFLAGS; do 8129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8130 aix_use_runtimelinking=yes 8131 break 8132 fi 8133 done 8134 ;; 8135 esac 8136 8137 exp_sym_flag='-bexport' 8138 no_entry_flag='-bnoentry' 8139 fi 8140 8141 # When large executables or shared objects are built, AIX ld can 8142 # have problems creating the table of contents. If linking a library 8143 # or program results in "error TOC overflow" add -mminimal-toc to 8144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8146 8147 archive_cmds='' 8148 hardcode_direct=yes 8149 hardcode_libdir_separator=':' 8150 link_all_deplibs=yes 8151 8152 if test "$GCC" = yes; then 8153 case $host_os in aix4.[012]|aix4.[012].*) 8154 # We only want to do this on AIX 4.2 and lower, the check 8155 # below for broken collect2 doesn't work under 4.3+ 8156 collect2name=`${CC} -print-prog-name=collect2` 8157 if test -f "$collect2name" && \ 8158 strings "$collect2name" | grep resolve_lib_name >/dev/null 8159 then 8160 # We have reworked collect2 8161 hardcode_direct=yes 8162 else 8163 # We have old collect2 8164 hardcode_direct=unsupported 8165 # It fails to find uninstalled libraries when the uninstalled 8166 # path is not listed in the libpath. Setting hardcode_minus_L 8167 # to unsupported forces relinking 8168 hardcode_minus_L=yes 8169 hardcode_libdir_flag_spec='-L$libdir' 8170 hardcode_libdir_separator= 8171 fi 8172 ;; 8173 esac 8174 shared_flag='-shared' 8175 if test "$aix_use_runtimelinking" = yes; then 8176 shared_flag="$shared_flag "'${wl}-G' 8177 fi 8178 else 8179 # not using gcc 8180 if test "$host_cpu" = ia64; then 8181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8182 # chokes on -Wl,-G. The following line is correct: 8183 shared_flag='-G' 8184 else 8185 if test "$aix_use_runtimelinking" = yes; then 8186 shared_flag='${wl}-G' 8187 else 8188 shared_flag='${wl}-bM:SRE' 8189 fi 8190 fi 8191 fi 8192 8193 # It seems that -bexpall does not export symbols beginning with 8194 # underscore (_), so it is better to generate a list of symbols to export. 8195 always_export_symbols=yes 8196 if test "$aix_use_runtimelinking" = yes; then 8197 # Warning - without using the other runtime loading flags (-brtl), 8198 # -berok will link without error, but may produce a broken library. 8199 allow_undefined_flag='-berok' 8200 # Determine the default libpath from the value encoded in an empty executable. 8201 cat >conftest.$ac_ext <<_ACEOF 8202/* confdefs.h. */ 8203_ACEOF 8204cat confdefs.h >>conftest.$ac_ext 8205cat >>conftest.$ac_ext <<_ACEOF 8206/* end confdefs.h. */ 8207 8208int 8209main () 8210{ 8211 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216rm -f conftest.$ac_objext conftest$ac_exeext 8217if { (ac_try="$ac_link" 8218case "(($ac_try" in 8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8220 *) ac_try_echo=$ac_try;; 8221esac 8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8223 (eval "$ac_link") 2>conftest.er1 8224 ac_status=$? 8225 grep -v '^ *+' conftest.er1 >conftest.err 8226 rm -f conftest.er1 8227 cat conftest.err >&5 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 (exit $ac_status); } && { 8230 test -z "$ac_c_werror_flag" || 8231 test ! -s conftest.err 8232 } && test -s conftest$ac_exeext && 8233 $as_test_x conftest$ac_exeext; then 8234 8235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8236}'` 8237# Check for a 64-bit object if we didn't find anything. 8238if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8239}'`; fi 8240else 8241 echo "$as_me: failed program was:" >&5 8242sed 's/^/| /' conftest.$ac_ext >&5 8243 8244 8245fi 8246 8247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8248 conftest$ac_exeext conftest.$ac_ext 8249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8250 8251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8252 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" 8253 else 8254 if test "$host_cpu" = ia64; then 8255 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8256 allow_undefined_flag="-z nodefs" 8257 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" 8258 else 8259 # Determine the default libpath from the value encoded in an empty executable. 8260 cat >conftest.$ac_ext <<_ACEOF 8261/* confdefs.h. */ 8262_ACEOF 8263cat confdefs.h >>conftest.$ac_ext 8264cat >>conftest.$ac_ext <<_ACEOF 8265/* end confdefs.h. */ 8266 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275rm -f conftest.$ac_objext conftest$ac_exeext 8276if { (ac_try="$ac_link" 8277case "(($ac_try" in 8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8279 *) ac_try_echo=$ac_try;; 8280esac 8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8282 (eval "$ac_link") 2>conftest.er1 8283 ac_status=$? 8284 grep -v '^ *+' conftest.er1 >conftest.err 8285 rm -f conftest.er1 8286 cat conftest.err >&5 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } && { 8289 test -z "$ac_c_werror_flag" || 8290 test ! -s conftest.err 8291 } && test -s conftest$ac_exeext && 8292 $as_test_x conftest$ac_exeext; then 8293 8294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8295}'` 8296# Check for a 64-bit object if we didn't find anything. 8297if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8298}'`; fi 8299else 8300 echo "$as_me: failed program was:" >&5 8301sed 's/^/| /' conftest.$ac_ext >&5 8302 8303 8304fi 8305 8306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8307 conftest$ac_exeext conftest.$ac_ext 8308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8309 8310 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8311 # Warning - without using the other run time loading flags, 8312 # -berok will link without error, but may produce a broken library. 8313 no_undefined_flag=' ${wl}-bernotok' 8314 allow_undefined_flag=' ${wl}-berok' 8315 # Exported symbols can be pulled into shared objects from archives 8316 whole_archive_flag_spec='$convenience' 8317 archive_cmds_need_lc=yes 8318 # This is similar to how AIX traditionally builds its shared libraries. 8319 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' 8320 fi 8321 fi 8322 ;; 8323 8324 amigaos*) 8325 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)' 8326 hardcode_libdir_flag_spec='-L$libdir' 8327 hardcode_minus_L=yes 8328 # see comment about different semantics on the GNU ld section 8329 ld_shlibs=no 8330 ;; 8331 8332 bsdi[45]*) 8333 export_dynamic_flag_spec=-rdynamic 8334 ;; 8335 8336 cygwin* | mingw* | pw32*) 8337 # When not using gcc, we currently assume that we are using 8338 # Microsoft Visual C++. 8339 # hardcode_libdir_flag_spec is actually meaningless, as there is 8340 # no search path for DLLs. 8341 hardcode_libdir_flag_spec=' ' 8342 allow_undefined_flag=unsupported 8343 # Tell ltmain to make .lib files, not .a files. 8344 libext=lib 8345 # Tell ltmain to make .dll files, not .so files. 8346 shrext_cmds=".dll" 8347 # FIXME: Setting linknames here is a bad hack. 8348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8349 # The linker will automatically build a .lib file if we build a DLL. 8350 old_archive_From_new_cmds='true' 8351 # FIXME: Should let the user specify the lib program. 8352 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8353 fix_srcfile_path='`cygpath -w "$srcfile"`' 8354 enable_shared_with_static_runtimes=yes 8355 ;; 8356 8357 darwin* | rhapsody*) 8358 case $host_os in 8359 rhapsody* | darwin1.[012]) 8360 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8361 ;; 8362 *) # Darwin 1.3 on 8363 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8364 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8365 else 8366 case ${MACOSX_DEPLOYMENT_TARGET} in 8367 10.[012]) 8368 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8369 ;; 8370 10.*) 8371 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8372 ;; 8373 esac 8374 fi 8375 ;; 8376 esac 8377 archive_cmds_need_lc=no 8378 hardcode_direct=no 8379 hardcode_automatic=yes 8380 hardcode_shlibpath_var=unsupported 8381 whole_archive_flag_spec='' 8382 link_all_deplibs=yes 8383 if test "$GCC" = yes ; then 8384 output_verbose_link_cmd='echo' 8385 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8386 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8388 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}' 8389 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}' 8390 else 8391 case $cc_basename in 8392 xlc*) 8393 output_verbose_link_cmd='echo' 8394 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8395 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8397 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8398 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}' 8399 ;; 8400 *) 8401 ld_shlibs=no 8402 ;; 8403 esac 8404 fi 8405 ;; 8406 8407 dgux*) 8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8409 hardcode_libdir_flag_spec='-L$libdir' 8410 hardcode_shlibpath_var=no 8411 ;; 8412 8413 freebsd1*) 8414 ld_shlibs=no 8415 ;; 8416 8417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8418 # support. Future versions do this automatically, but an explicit c++rt0.o 8419 # does not break anything, and helps significantly (at the cost of a little 8420 # extra space). 8421 freebsd2.2*) 8422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8423 hardcode_libdir_flag_spec='-R$libdir' 8424 hardcode_direct=yes 8425 hardcode_shlibpath_var=no 8426 ;; 8427 8428 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8429 freebsd2*) 8430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8431 hardcode_direct=yes 8432 hardcode_minus_L=yes 8433 hardcode_shlibpath_var=no 8434 ;; 8435 8436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8437 freebsd* | kfreebsd*-gnu | dragonfly*) 8438 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8439 hardcode_libdir_flag_spec='-R$libdir' 8440 hardcode_direct=yes 8441 hardcode_shlibpath_var=no 8442 ;; 8443 8444 hpux9*) 8445 if test "$GCC" = yes; then 8446 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' 8447 else 8448 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' 8449 fi 8450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8451 hardcode_libdir_separator=: 8452 hardcode_direct=yes 8453 8454 # hardcode_minus_L: Not really in the search PATH, 8455 # but as the default location of the library. 8456 hardcode_minus_L=yes 8457 export_dynamic_flag_spec='${wl}-E' 8458 ;; 8459 8460 hpux10*) 8461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8462 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8463 else 8464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8465 fi 8466 if test "$with_gnu_ld" = no; then 8467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8468 hardcode_libdir_separator=: 8469 8470 hardcode_direct=yes 8471 export_dynamic_flag_spec='${wl}-E' 8472 8473 # hardcode_minus_L: Not really in the search PATH, 8474 # but as the default location of the library. 8475 hardcode_minus_L=yes 8476 fi 8477 ;; 8478 8479 hpux11*) 8480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8481 case $host_cpu in 8482 hppa*64*) 8483 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8484 ;; 8485 ia64*) 8486 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8487 ;; 8488 *) 8489 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8490 ;; 8491 esac 8492 else 8493 case $host_cpu in 8494 hppa*64*) 8495 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8496 ;; 8497 ia64*) 8498 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8499 ;; 8500 *) 8501 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8502 ;; 8503 esac 8504 fi 8505 if test "$with_gnu_ld" = no; then 8506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8507 hardcode_libdir_separator=: 8508 8509 case $host_cpu in 8510 hppa*64*|ia64*) 8511 hardcode_libdir_flag_spec_ld='+b $libdir' 8512 hardcode_direct=no 8513 hardcode_shlibpath_var=no 8514 ;; 8515 *) 8516 hardcode_direct=yes 8517 export_dynamic_flag_spec='${wl}-E' 8518 8519 # hardcode_minus_L: Not really in the search PATH, 8520 # but as the default location of the library. 8521 hardcode_minus_L=yes 8522 ;; 8523 esac 8524 fi 8525 ;; 8526 8527 irix5* | irix6* | nonstopux*) 8528 if test "$GCC" = yes; then 8529 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' 8530 else 8531 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' 8532 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8533 fi 8534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8535 hardcode_libdir_separator=: 8536 link_all_deplibs=yes 8537 ;; 8538 8539 netbsd*) 8540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8542 else 8543 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8544 fi 8545 hardcode_libdir_flag_spec='-R$libdir' 8546 hardcode_direct=yes 8547 hardcode_shlibpath_var=no 8548 ;; 8549 8550 newsos6) 8551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8552 hardcode_direct=yes 8553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8554 hardcode_libdir_separator=: 8555 hardcode_shlibpath_var=no 8556 ;; 8557 8558 openbsd*) 8559 hardcode_direct=yes 8560 hardcode_shlibpath_var=no 8561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8563 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8565 export_dynamic_flag_spec='${wl}-E' 8566 else 8567 case $host_os in 8568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8570 hardcode_libdir_flag_spec='-R$libdir' 8571 ;; 8572 *) 8573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8575 ;; 8576 esac 8577 fi 8578 ;; 8579 8580 os2*) 8581 hardcode_libdir_flag_spec='-L$libdir' 8582 hardcode_minus_L=yes 8583 allow_undefined_flag=unsupported 8584 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' 8585 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8586 ;; 8587 8588 osf3*) 8589 if test "$GCC" = yes; then 8590 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8591 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' 8592 else 8593 allow_undefined_flag=' -expect_unresolved \*' 8594 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' 8595 fi 8596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8597 hardcode_libdir_separator=: 8598 ;; 8599 8600 osf4* | osf5*) # as osf3* with the addition of -msym flag 8601 if test "$GCC" = yes; then 8602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8603 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' 8604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8605 else 8606 allow_undefined_flag=' -expect_unresolved \*' 8607 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' 8608 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8609 $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' 8610 8611 # Both c and cxx compiler support -rpath directly 8612 hardcode_libdir_flag_spec='-rpath $libdir' 8613 fi 8614 hardcode_libdir_separator=: 8615 ;; 8616 8617 solaris*) 8618 no_undefined_flag=' -z text' 8619 if test "$GCC" = yes; then 8620 wlarc='${wl}' 8621 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8622 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8623 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8624 else 8625 wlarc='' 8626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8627 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8629 fi 8630 hardcode_libdir_flag_spec='-R$libdir' 8631 hardcode_shlibpath_var=no 8632 case $host_os in 8633 solaris2.[0-5] | solaris2.[0-5].*) ;; 8634 *) 8635 # The compiler driver will combine linker options so we 8636 # cannot just pass the convience library names through 8637 # without $wl, iff we do not link with $LD. 8638 # Luckily, gcc supports the same syntax we need for Sun Studio. 8639 # Supported since Solaris 2.6 (maybe 2.5.1?) 8640 case $wlarc in 8641 '') 8642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8643 *) 8644 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8645 esac ;; 8646 esac 8647 link_all_deplibs=yes 8648 ;; 8649 8650 sunos4*) 8651 if test "x$host_vendor" = xsequent; then 8652 # Use $CC to link under sequent, because it throws in some extra .o 8653 # files that make .init and .fini sections work. 8654 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8655 else 8656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8657 fi 8658 hardcode_libdir_flag_spec='-L$libdir' 8659 hardcode_direct=yes 8660 hardcode_minus_L=yes 8661 hardcode_shlibpath_var=no 8662 ;; 8663 8664 sysv4) 8665 case $host_vendor in 8666 sni) 8667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8668 hardcode_direct=yes # is this really true??? 8669 ;; 8670 siemens) 8671 ## LD is ld it makes a PLAMLIB 8672 ## CC just makes a GrossModule. 8673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8674 reload_cmds='$CC -r -o $output$reload_objs' 8675 hardcode_direct=no 8676 ;; 8677 motorola) 8678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8680 ;; 8681 esac 8682 runpath_var='LD_RUN_PATH' 8683 hardcode_shlibpath_var=no 8684 ;; 8685 8686 sysv4.3*) 8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8688 hardcode_shlibpath_var=no 8689 export_dynamic_flag_spec='-Bexport' 8690 ;; 8691 8692 sysv4*MP*) 8693 if test -d /usr/nec; then 8694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8695 hardcode_shlibpath_var=no 8696 runpath_var=LD_RUN_PATH 8697 hardcode_runpath_var=yes 8698 ld_shlibs=yes 8699 fi 8700 ;; 8701 8702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8703 no_undefined_flag='${wl}-z,text' 8704 archive_cmds_need_lc=no 8705 hardcode_shlibpath_var=no 8706 runpath_var='LD_RUN_PATH' 8707 8708 if test "$GCC" = yes; then 8709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8711 else 8712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8714 fi 8715 ;; 8716 8717 sysv5* | sco3.2v5* | sco5v6*) 8718 # Note: We can NOT use -z defs as we might desire, because we do not 8719 # link with -lc, and that would cause any symbols used from libc to 8720 # always be unresolved, which means just about no library would 8721 # ever link correctly. If we're not using GNU ld we use -z text 8722 # though, which does catch some bad symbols but isn't as heavy-handed 8723 # as -z defs. 8724 no_undefined_flag='${wl}-z,text' 8725 allow_undefined_flag='${wl}-z,nodefs' 8726 archive_cmds_need_lc=no 8727 hardcode_shlibpath_var=no 8728 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8729 hardcode_libdir_separator=':' 8730 link_all_deplibs=yes 8731 export_dynamic_flag_spec='${wl}-Bexport' 8732 runpath_var='LD_RUN_PATH' 8733 8734 if test "$GCC" = yes; then 8735 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8737 else 8738 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8740 fi 8741 ;; 8742 8743 uts4*) 8744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8745 hardcode_libdir_flag_spec='-L$libdir' 8746 hardcode_shlibpath_var=no 8747 ;; 8748 8749 *) 8750 ld_shlibs=no 8751 ;; 8752 esac 8753 fi 8754 8755{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8756echo "${ECHO_T}$ld_shlibs" >&6; } 8757test "$ld_shlibs" = no && can_build_shared=no 8758 8759# 8760# Do we need to explicitly link libc? 8761# 8762case "x$archive_cmds_need_lc" in 8763x|xyes) 8764 # Assume -lc should be added 8765 archive_cmds_need_lc=yes 8766 8767 if test "$enable_shared" = yes && test "$GCC" = yes; then 8768 case $archive_cmds in 8769 *'~'*) 8770 # FIXME: we may have to deal with multi-command sequences. 8771 ;; 8772 '$CC '*) 8773 # Test whether the compiler implicitly links with -lc since on some 8774 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8775 # to ld, don't add -lc before -lgcc. 8776 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8778 $rm conftest* 8779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8780 8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8782 (eval $ac_compile) 2>&5 8783 ac_status=$? 8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8785 (exit $ac_status); } 2>conftest.err; then 8786 soname=conftest 8787 lib=conftest 8788 libobjs=conftest.$ac_objext 8789 deplibs= 8790 wl=$lt_prog_compiler_wl 8791 pic_flag=$lt_prog_compiler_pic 8792 compiler_flags=-v 8793 linker_flags=-v 8794 verstring= 8795 output_objdir=. 8796 libname=conftest 8797 lt_save_allow_undefined_flag=$allow_undefined_flag 8798 allow_undefined_flag= 8799 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8800 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8801 ac_status=$? 8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8803 (exit $ac_status); } 8804 then 8805 archive_cmds_need_lc=no 8806 else 8807 archive_cmds_need_lc=yes 8808 fi 8809 allow_undefined_flag=$lt_save_allow_undefined_flag 8810 else 8811 cat conftest.err 1>&5 8812 fi 8813 $rm conftest* 8814 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8815echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8816 ;; 8817 esac 8818 fi 8819 ;; 8820esac 8821 8822{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8823echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8824library_names_spec= 8825libname_spec='lib$name' 8826soname_spec= 8827shrext_cmds=".so" 8828postinstall_cmds= 8829postuninstall_cmds= 8830finish_cmds= 8831finish_eval= 8832shlibpath_var= 8833shlibpath_overrides_runpath=unknown 8834version_type=none 8835dynamic_linker="$host_os ld.so" 8836sys_lib_dlsearch_path_spec="/lib /usr/lib" 8837if test "$GCC" = yes; then 8838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8839 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8840 # if the path contains ";" then we assume it to be the separator 8841 # otherwise default to the standard path separator (i.e. ":") - it is 8842 # assumed that no part of a normal pathname contains ";" but that should 8843 # okay in the real world where ";" in dirpaths is itself problematic. 8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8845 else 8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8847 fi 8848else 8849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8850fi 8851need_lib_prefix=unknown 8852hardcode_into_libs=no 8853 8854# when you set need_version to no, make sure it does not cause -set_version 8855# flags to be left without arguments 8856need_version=unknown 8857 8858case $host_os in 8859aix3*) 8860 version_type=linux 8861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8862 shlibpath_var=LIBPATH 8863 8864 # AIX 3 has no versioning support, so we append a major version to the name. 8865 soname_spec='${libname}${release}${shared_ext}$major' 8866 ;; 8867 8868aix4* | aix5*) 8869 version_type=linux 8870 need_lib_prefix=no 8871 need_version=no 8872 hardcode_into_libs=yes 8873 if test "$host_cpu" = ia64; then 8874 # AIX 5 supports IA64 8875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8876 shlibpath_var=LD_LIBRARY_PATH 8877 else 8878 # With GCC up to 2.95.x, collect2 would create an import file 8879 # for dependence libraries. The import file would start with 8880 # the line `#! .'. This would cause the generated library to 8881 # depend on `.', always an invalid library. This was fixed in 8882 # development snapshots of GCC prior to 3.0. 8883 case $host_os in 8884 aix4 | aix4.[01] | aix4.[01].*) 8885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8886 echo ' yes ' 8887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8888 : 8889 else 8890 can_build_shared=no 8891 fi 8892 ;; 8893 esac 8894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8895 # soname into executable. Probably we can add versioning support to 8896 # collect2, so additional links can be useful in future. 8897 if test "$aix_use_runtimelinking" = yes; then 8898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8899 # instead of lib<name>.a to let people know that these are not 8900 # typical AIX shared libraries. 8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8902 else 8903 # We preserve .a as extension for shared libraries through AIX4.2 8904 # and later when we are not doing run time linking. 8905 library_names_spec='${libname}${release}.a $libname.a' 8906 soname_spec='${libname}${release}${shared_ext}$major' 8907 fi 8908 shlibpath_var=LIBPATH 8909 fi 8910 ;; 8911 8912amigaos*) 8913 library_names_spec='$libname.ixlibrary $libname.a' 8914 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8915 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' 8916 ;; 8917 8918beos*) 8919 library_names_spec='${libname}${shared_ext}' 8920 dynamic_linker="$host_os ld.so" 8921 shlibpath_var=LIBRARY_PATH 8922 ;; 8923 8924bsdi[45]*) 8925 version_type=linux 8926 need_version=no 8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8928 soname_spec='${libname}${release}${shared_ext}$major' 8929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8930 shlibpath_var=LD_LIBRARY_PATH 8931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8933 # the default ld.so.conf also contains /usr/contrib/lib and 8934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8935 # libtool to hard-code these into programs 8936 ;; 8937 8938cygwin* | mingw* | pw32*) 8939 version_type=windows 8940 shrext_cmds=".dll" 8941 need_version=no 8942 need_lib_prefix=no 8943 8944 case $GCC,$host_os in 8945 yes,cygwin* | yes,mingw* | yes,pw32*) 8946 library_names_spec='$libname.dll.a' 8947 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8948 postinstall_cmds='base_file=`basename \${file}`~ 8949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8950 dldir=$destdir/`dirname \$dlpath`~ 8951 test -d \$dldir || mkdir -p \$dldir~ 8952 $install_prog $dir/$dlname \$dldir/$dlname~ 8953 chmod a+x \$dldir/$dlname' 8954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8955 dlpath=$dir/\$dldll~ 8956 $rm \$dlpath' 8957 shlibpath_overrides_runpath=yes 8958 8959 case $host_os in 8960 cygwin*) 8961 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8964 ;; 8965 mingw*) 8966 # MinGW DLLs use traditional 'lib' prefix 8967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8970 # It is most probably a Windows format PATH printed by 8971 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8972 # path with ; separators, and with drive letters. We can handle the 8973 # drive letters (cygwin fileutils understands them), so leave them, 8974 # especially as we might pass files found there to a mingw objdump, 8975 # which wouldn't understand a cygwinified path. Ahh. 8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8977 else 8978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8979 fi 8980 ;; 8981 pw32*) 8982 # pw32 DLLs use 'pw' prefix rather than 'lib' 8983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8984 ;; 8985 esac 8986 ;; 8987 8988 linux*) 8989 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8991 supports_anon_versioning=no 8992 case `$LD -v 2>/dev/null` in 8993 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8996 *\ 2.11.*) ;; # other 2.11 versions 8997 *) supports_anon_versioning=yes ;; 8998 esac 8999 if test $supports_anon_versioning = yes; then 9000 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9001cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9002$echo "local: *; };" >> $output_objdir/$libname.ver~ 9003 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9004 else 9005 $archive_expsym_cmds="$archive_cmds" 9006 fi 9007 else 9008 ld_shlibs=no 9009 fi 9010 ;; 9011 9012 *) 9013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9014 ;; 9015 esac 9016 dynamic_linker='Win32 ld.exe' 9017 # FIXME: first we should search . and the directory the executable is in 9018 shlibpath_var=PATH 9019 ;; 9020 9021darwin* | rhapsody*) 9022 dynamic_linker="$host_os dyld" 9023 version_type=darwin 9024 need_lib_prefix=no 9025 need_version=no 9026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9027 soname_spec='${libname}${release}${major}$shared_ext' 9028 shlibpath_overrides_runpath=yes 9029 shlibpath_var=DYLD_LIBRARY_PATH 9030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9031 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9032 if test "$GCC" = yes; then 9033 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9034 else 9035 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9036 fi 9037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9038 ;; 9039 9040dgux*) 9041 version_type=linux 9042 need_lib_prefix=no 9043 need_version=no 9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9045 soname_spec='${libname}${release}${shared_ext}$major' 9046 shlibpath_var=LD_LIBRARY_PATH 9047 ;; 9048 9049freebsd1*) 9050 dynamic_linker=no 9051 ;; 9052 9053kfreebsd*-gnu) 9054 version_type=linux 9055 need_lib_prefix=no 9056 need_version=no 9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9058 soname_spec='${libname}${release}${shared_ext}$major' 9059 shlibpath_var=LD_LIBRARY_PATH 9060 shlibpath_overrides_runpath=no 9061 hardcode_into_libs=yes 9062 dynamic_linker='GNU ld.so' 9063 ;; 9064 9065freebsd* | dragonfly*) 9066 # DragonFly does not have aout. When/if they implement a new 9067 # versioning mechanism, adjust this. 9068 if test -x /usr/bin/objformat; then 9069 objformat=`/usr/bin/objformat` 9070 else 9071 case $host_os in 9072 freebsd[123]*) objformat=aout ;; 9073 *) objformat=elf ;; 9074 esac 9075 fi 9076 # Handle Gentoo/FreeBSD as it was Linux 9077 case $host_vendor in 9078 gentoo) 9079 version_type=linux ;; 9080 *) 9081 version_type=freebsd-$objformat ;; 9082 esac 9083 9084 case $version_type in 9085 freebsd-elf*) 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9087 need_version=no 9088 need_lib_prefix=no 9089 ;; 9090 freebsd-*) 9091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9092 need_version=yes 9093 ;; 9094 linux) 9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9096 soname_spec='${libname}${release}${shared_ext}$major' 9097 need_lib_prefix=no 9098 need_version=no 9099 ;; 9100 esac 9101 shlibpath_var=LD_LIBRARY_PATH 9102 case $host_os in 9103 freebsd2*) 9104 shlibpath_overrides_runpath=yes 9105 ;; 9106 freebsd3.[01]* | freebsdelf3.[01]*) 9107 shlibpath_overrides_runpath=yes 9108 hardcode_into_libs=yes 9109 ;; 9110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9112 shlibpath_overrides_runpath=no 9113 hardcode_into_libs=yes 9114 ;; 9115 freebsd*) # from 4.6 on 9116 shlibpath_overrides_runpath=yes 9117 hardcode_into_libs=yes 9118 ;; 9119 esac 9120 ;; 9121 9122gnu*) 9123 version_type=linux 9124 need_lib_prefix=no 9125 need_version=no 9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9127 soname_spec='${libname}${release}${shared_ext}$major' 9128 shlibpath_var=LD_LIBRARY_PATH 9129 hardcode_into_libs=yes 9130 ;; 9131 9132hpux9* | hpux10* | hpux11*) 9133 # Give a soname corresponding to the major version so that dld.sl refuses to 9134 # link against other versions. 9135 version_type=sunos 9136 need_lib_prefix=no 9137 need_version=no 9138 case $host_cpu in 9139 ia64*) 9140 shrext_cmds='.so' 9141 hardcode_into_libs=yes 9142 dynamic_linker="$host_os dld.so" 9143 shlibpath_var=LD_LIBRARY_PATH 9144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9146 soname_spec='${libname}${release}${shared_ext}$major' 9147 if test "X$HPUX_IA64_MODE" = X32; then 9148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9149 else 9150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9151 fi 9152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9153 ;; 9154 hppa*64*) 9155 shrext_cmds='.sl' 9156 hardcode_into_libs=yes 9157 dynamic_linker="$host_os dld.sl" 9158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9161 soname_spec='${libname}${release}${shared_ext}$major' 9162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9164 ;; 9165 *) 9166 shrext_cmds='.sl' 9167 dynamic_linker="$host_os dld.sl" 9168 shlibpath_var=SHLIB_PATH 9169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9171 soname_spec='${libname}${release}${shared_ext}$major' 9172 ;; 9173 esac 9174 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9175 postinstall_cmds='chmod 555 $lib' 9176 ;; 9177 9178interix3*) 9179 version_type=linux 9180 need_lib_prefix=no 9181 need_version=no 9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9183 soname_spec='${libname}${release}${shared_ext}$major' 9184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9185 shlibpath_var=LD_LIBRARY_PATH 9186 shlibpath_overrides_runpath=no 9187 hardcode_into_libs=yes 9188 ;; 9189 9190irix5* | irix6* | nonstopux*) 9191 case $host_os in 9192 nonstopux*) version_type=nonstopux ;; 9193 *) 9194 if test "$lt_cv_prog_gnu_ld" = yes; then 9195 version_type=linux 9196 else 9197 version_type=irix 9198 fi ;; 9199 esac 9200 need_lib_prefix=no 9201 need_version=no 9202 soname_spec='${libname}${release}${shared_ext}$major' 9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9204 case $host_os in 9205 irix5* | nonstopux*) 9206 libsuff= shlibsuff= 9207 ;; 9208 *) 9209 case $LD in # libtool.m4 will add one of these switches to LD 9210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9211 libsuff= shlibsuff= libmagic=32-bit;; 9212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9213 libsuff=32 shlibsuff=N32 libmagic=N32;; 9214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9215 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9216 *) libsuff= shlibsuff= libmagic=never-match;; 9217 esac 9218 ;; 9219 esac 9220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9221 shlibpath_overrides_runpath=no 9222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9224 hardcode_into_libs=yes 9225 ;; 9226 9227# No shared lib support for Linux oldld, aout, or coff. 9228linux*oldld* | linux*aout* | linux*coff*) 9229 dynamic_linker=no 9230 ;; 9231 9232# This must be Linux ELF. 9233linux*) 9234 version_type=linux 9235 need_lib_prefix=no 9236 need_version=no 9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9238 soname_spec='${libname}${release}${shared_ext}$major' 9239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9240 shlibpath_var=LD_LIBRARY_PATH 9241 shlibpath_overrides_runpath=no 9242 # This implies no fast_install, which is unacceptable. 9243 # Some rework will be needed to allow for fast_install 9244 # before this can be enabled. 9245 hardcode_into_libs=yes 9246 9247 # Append ld.so.conf contents to the search path 9248 if test -f /etc/ld.so.conf; then 9249 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9251 fi 9252 9253 # We used to test for /lib/ld.so.1 and disable shared libraries on 9254 # powerpc, because MkLinux only supported shared libraries with the 9255 # GNU dynamic linker. Since this was broken with cross compilers, 9256 # most powerpc-linux boxes support dynamic linking these days and 9257 # people can always --disable-shared, the test was removed, and we 9258 # assume the GNU/Linux dynamic linker is in use. 9259 dynamic_linker='GNU/Linux ld.so' 9260 ;; 9261 9262knetbsd*-gnu) 9263 version_type=linux 9264 need_lib_prefix=no 9265 need_version=no 9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9267 soname_spec='${libname}${release}${shared_ext}$major' 9268 shlibpath_var=LD_LIBRARY_PATH 9269 shlibpath_overrides_runpath=no 9270 hardcode_into_libs=yes 9271 dynamic_linker='GNU ld.so' 9272 ;; 9273 9274netbsd*) 9275 version_type=sunos 9276 need_lib_prefix=no 9277 need_version=no 9278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9281 dynamic_linker='NetBSD (a.out) ld.so' 9282 else 9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9284 soname_spec='${libname}${release}${shared_ext}$major' 9285 dynamic_linker='NetBSD ld.elf_so' 9286 fi 9287 shlibpath_var=LD_LIBRARY_PATH 9288 shlibpath_overrides_runpath=yes 9289 hardcode_into_libs=yes 9290 ;; 9291 9292newsos6) 9293 version_type=linux 9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9295 shlibpath_var=LD_LIBRARY_PATH 9296 shlibpath_overrides_runpath=yes 9297 ;; 9298 9299nto-qnx*) 9300 version_type=linux 9301 need_lib_prefix=no 9302 need_version=no 9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9304 soname_spec='${libname}${release}${shared_ext}$major' 9305 shlibpath_var=LD_LIBRARY_PATH 9306 shlibpath_overrides_runpath=yes 9307 ;; 9308 9309openbsd*) 9310 version_type=sunos 9311 sys_lib_dlsearch_path_spec="/usr/lib" 9312 need_lib_prefix=no 9313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9314 case $host_os in 9315 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9316 *) need_version=no ;; 9317 esac 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9320 shlibpath_var=LD_LIBRARY_PATH 9321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9322 case $host_os in 9323 openbsd2.[89] | openbsd2.[89].*) 9324 shlibpath_overrides_runpath=no 9325 ;; 9326 *) 9327 shlibpath_overrides_runpath=yes 9328 ;; 9329 esac 9330 else 9331 shlibpath_overrides_runpath=yes 9332 fi 9333 ;; 9334 9335os2*) 9336 libname_spec='$name' 9337 shrext_cmds=".dll" 9338 need_lib_prefix=no 9339 library_names_spec='$libname${shared_ext} $libname.a' 9340 dynamic_linker='OS/2 ld.exe' 9341 shlibpath_var=LIBPATH 9342 ;; 9343 9344osf3* | osf4* | osf5*) 9345 version_type=osf 9346 need_lib_prefix=no 9347 need_version=no 9348 soname_spec='${libname}${release}${shared_ext}$major' 9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9350 shlibpath_var=LD_LIBRARY_PATH 9351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9353 ;; 9354 9355solaris*) 9356 version_type=linux 9357 need_lib_prefix=no 9358 need_version=no 9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 shlibpath_var=LD_LIBRARY_PATH 9362 shlibpath_overrides_runpath=yes 9363 hardcode_into_libs=yes 9364 # ldd complains unless libraries are executable 9365 postinstall_cmds='chmod +x $lib' 9366 ;; 9367 9368sunos4*) 9369 version_type=sunos 9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9372 shlibpath_var=LD_LIBRARY_PATH 9373 shlibpath_overrides_runpath=yes 9374 if test "$with_gnu_ld" = yes; then 9375 need_lib_prefix=no 9376 fi 9377 need_version=yes 9378 ;; 9379 9380sysv4 | sysv4.3*) 9381 version_type=linux 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 case $host_vendor in 9386 sni) 9387 shlibpath_overrides_runpath=no 9388 need_lib_prefix=no 9389 export_dynamic_flag_spec='${wl}-Blargedynsym' 9390 runpath_var=LD_RUN_PATH 9391 ;; 9392 siemens) 9393 need_lib_prefix=no 9394 ;; 9395 motorola) 9396 need_lib_prefix=no 9397 need_version=no 9398 shlibpath_overrides_runpath=no 9399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9400 ;; 9401 esac 9402 ;; 9403 9404sysv4*MP*) 9405 if test -d /usr/nec ;then 9406 version_type=linux 9407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9408 soname_spec='$libname${shared_ext}.$major' 9409 shlibpath_var=LD_LIBRARY_PATH 9410 fi 9411 ;; 9412 9413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9414 version_type=freebsd-elf 9415 need_lib_prefix=no 9416 need_version=no 9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9418 soname_spec='${libname}${release}${shared_ext}$major' 9419 shlibpath_var=LD_LIBRARY_PATH 9420 hardcode_into_libs=yes 9421 if test "$with_gnu_ld" = yes; then 9422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9423 shlibpath_overrides_runpath=no 9424 else 9425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9426 shlibpath_overrides_runpath=yes 9427 case $host_os in 9428 sco3.2v5*) 9429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9430 ;; 9431 esac 9432 fi 9433 sys_lib_dlsearch_path_spec='/usr/lib' 9434 ;; 9435 9436uts4*) 9437 version_type=linux 9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9439 soname_spec='${libname}${release}${shared_ext}$major' 9440 shlibpath_var=LD_LIBRARY_PATH 9441 ;; 9442 9443*) 9444 dynamic_linker=no 9445 ;; 9446esac 9447{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9448echo "${ECHO_T}$dynamic_linker" >&6; } 9449test "$dynamic_linker" = no && can_build_shared=no 9450 9451variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9452if test "$GCC" = yes; then 9453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9454fi 9455 9456{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9457echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9458hardcode_action= 9459if test -n "$hardcode_libdir_flag_spec" || \ 9460 test -n "$runpath_var" || \ 9461 test "X$hardcode_automatic" = "Xyes" ; then 9462 9463 # We can hardcode non-existant directories. 9464 if test "$hardcode_direct" != no && 9465 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9466 # have to relink, otherwise we might link with an installed library 9467 # when we should be linking with a yet-to-be-installed one 9468 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9469 test "$hardcode_minus_L" != no; then 9470 # Linking always hardcodes the temporary library directory. 9471 hardcode_action=relink 9472 else 9473 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9474 hardcode_action=immediate 9475 fi 9476else 9477 # We cannot hardcode anything, or else we can only hardcode existing 9478 # directories. 9479 hardcode_action=unsupported 9480fi 9481{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9482echo "${ECHO_T}$hardcode_action" >&6; } 9483 9484if test "$hardcode_action" = relink; then 9485 # Fast installation is not supported 9486 enable_fast_install=no 9487elif test "$shlibpath_overrides_runpath" = yes || 9488 test "$enable_shared" = no; then 9489 # Fast installation is not necessary 9490 enable_fast_install=needless 9491fi 9492 9493striplib= 9494old_striplib= 9495{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9496echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9497if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9499 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9500 { echo "$as_me:$LINENO: result: yes" >&5 9501echo "${ECHO_T}yes" >&6; } 9502else 9503# FIXME - insert some real tests, host_os isn't really good enough 9504 case $host_os in 9505 darwin*) 9506 if test -n "$STRIP" ; then 9507 striplib="$STRIP -x" 9508 { echo "$as_me:$LINENO: result: yes" >&5 9509echo "${ECHO_T}yes" >&6; } 9510 else 9511 { echo "$as_me:$LINENO: result: no" >&5 9512echo "${ECHO_T}no" >&6; } 9513fi 9514 ;; 9515 *) 9516 { echo "$as_me:$LINENO: result: no" >&5 9517echo "${ECHO_T}no" >&6; } 9518 ;; 9519 esac 9520fi 9521 9522if test "x$enable_dlopen" != xyes; then 9523 enable_dlopen=unknown 9524 enable_dlopen_self=unknown 9525 enable_dlopen_self_static=unknown 9526else 9527 lt_cv_dlopen=no 9528 lt_cv_dlopen_libs= 9529 9530 case $host_os in 9531 beos*) 9532 lt_cv_dlopen="load_add_on" 9533 lt_cv_dlopen_libs= 9534 lt_cv_dlopen_self=yes 9535 ;; 9536 9537 mingw* | pw32*) 9538 lt_cv_dlopen="LoadLibrary" 9539 lt_cv_dlopen_libs= 9540 ;; 9541 9542 cygwin*) 9543 lt_cv_dlopen="dlopen" 9544 lt_cv_dlopen_libs= 9545 ;; 9546 9547 darwin*) 9548 # if libdl is installed we need to link against it 9549 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9550echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9551if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9552 echo $ECHO_N "(cached) $ECHO_C" >&6 9553else 9554 ac_check_lib_save_LIBS=$LIBS 9555LIBS="-ldl $LIBS" 9556cat >conftest.$ac_ext <<_ACEOF 9557/* confdefs.h. */ 9558_ACEOF 9559cat confdefs.h >>conftest.$ac_ext 9560cat >>conftest.$ac_ext <<_ACEOF 9561/* end confdefs.h. */ 9562 9563/* Override any GCC internal prototype to avoid an error. 9564 Use char because int might match the return type of a GCC 9565 builtin and then its argument prototype would still apply. */ 9566#ifdef __cplusplus 9567extern "C" 9568#endif 9569char dlopen (); 9570int 9571main () 9572{ 9573return dlopen (); 9574 ; 9575 return 0; 9576} 9577_ACEOF 9578rm -f conftest.$ac_objext conftest$ac_exeext 9579if { (ac_try="$ac_link" 9580case "(($ac_try" in 9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9582 *) ac_try_echo=$ac_try;; 9583esac 9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9585 (eval "$ac_link") 2>conftest.er1 9586 ac_status=$? 9587 grep -v '^ *+' conftest.er1 >conftest.err 9588 rm -f conftest.er1 9589 cat conftest.err >&5 9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9591 (exit $ac_status); } && { 9592 test -z "$ac_c_werror_flag" || 9593 test ! -s conftest.err 9594 } && test -s conftest$ac_exeext && 9595 $as_test_x conftest$ac_exeext; then 9596 ac_cv_lib_dl_dlopen=yes 9597else 9598 echo "$as_me: failed program was:" >&5 9599sed 's/^/| /' conftest.$ac_ext >&5 9600 9601 ac_cv_lib_dl_dlopen=no 9602fi 9603 9604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9605 conftest$ac_exeext conftest.$ac_ext 9606LIBS=$ac_check_lib_save_LIBS 9607fi 9608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9609echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9610if test $ac_cv_lib_dl_dlopen = yes; then 9611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9612else 9613 9614 lt_cv_dlopen="dyld" 9615 lt_cv_dlopen_libs= 9616 lt_cv_dlopen_self=yes 9617 9618fi 9619 9620 ;; 9621 9622 *) 9623 { echo "$as_me:$LINENO: checking for shl_load" >&5 9624echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9625if test "${ac_cv_func_shl_load+set}" = set; then 9626 echo $ECHO_N "(cached) $ECHO_C" >&6 9627else 9628 cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9636#define shl_load innocuous_shl_load 9637 9638/* System header to define __stub macros and hopefully few prototypes, 9639 which can conflict with char shl_load (); below. 9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9641 <limits.h> exists even on freestanding compilers. */ 9642 9643#ifdef __STDC__ 9644# include <limits.h> 9645#else 9646# include <assert.h> 9647#endif 9648 9649#undef shl_load 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char shl_load (); 9658/* The GNU C library defines this for functions which it implements 9659 to always fail with ENOSYS. Some functions are actually named 9660 something starting with __ and the normal name is an alias. */ 9661#if defined __stub_shl_load || defined __stub___shl_load 9662choke me 9663#endif 9664 9665int 9666main () 9667{ 9668return shl_load (); 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673rm -f conftest.$ac_objext conftest$ac_exeext 9674if { (ac_try="$ac_link" 9675case "(($ac_try" in 9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9677 *) ac_try_echo=$ac_try;; 9678esac 9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9680 (eval "$ac_link") 2>conftest.er1 9681 ac_status=$? 9682 grep -v '^ *+' conftest.er1 >conftest.err 9683 rm -f conftest.er1 9684 cat conftest.err >&5 9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9686 (exit $ac_status); } && { 9687 test -z "$ac_c_werror_flag" || 9688 test ! -s conftest.err 9689 } && test -s conftest$ac_exeext && 9690 $as_test_x conftest$ac_exeext; then 9691 ac_cv_func_shl_load=yes 9692else 9693 echo "$as_me: failed program was:" >&5 9694sed 's/^/| /' conftest.$ac_ext >&5 9695 9696 ac_cv_func_shl_load=no 9697fi 9698 9699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9700 conftest$ac_exeext conftest.$ac_ext 9701fi 9702{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9703echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9704if test $ac_cv_func_shl_load = yes; then 9705 lt_cv_dlopen="shl_load" 9706else 9707 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9708echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9709if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9710 echo $ECHO_N "(cached) $ECHO_C" >&6 9711else 9712 ac_check_lib_save_LIBS=$LIBS 9713LIBS="-ldld $LIBS" 9714cat >conftest.$ac_ext <<_ACEOF 9715/* confdefs.h. */ 9716_ACEOF 9717cat confdefs.h >>conftest.$ac_ext 9718cat >>conftest.$ac_ext <<_ACEOF 9719/* end confdefs.h. */ 9720 9721/* Override any GCC internal prototype to avoid an error. 9722 Use char because int might match the return type of a GCC 9723 builtin and then its argument prototype would still apply. */ 9724#ifdef __cplusplus 9725extern "C" 9726#endif 9727char shl_load (); 9728int 9729main () 9730{ 9731return shl_load (); 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736rm -f conftest.$ac_objext conftest$ac_exeext 9737if { (ac_try="$ac_link" 9738case "(($ac_try" in 9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9740 *) ac_try_echo=$ac_try;; 9741esac 9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9743 (eval "$ac_link") 2>conftest.er1 9744 ac_status=$? 9745 grep -v '^ *+' conftest.er1 >conftest.err 9746 rm -f conftest.er1 9747 cat conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); } && { 9750 test -z "$ac_c_werror_flag" || 9751 test ! -s conftest.err 9752 } && test -s conftest$ac_exeext && 9753 $as_test_x conftest$ac_exeext; then 9754 ac_cv_lib_dld_shl_load=yes 9755else 9756 echo "$as_me: failed program was:" >&5 9757sed 's/^/| /' conftest.$ac_ext >&5 9758 9759 ac_cv_lib_dld_shl_load=no 9760fi 9761 9762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9763 conftest$ac_exeext conftest.$ac_ext 9764LIBS=$ac_check_lib_save_LIBS 9765fi 9766{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9768if test $ac_cv_lib_dld_shl_load = yes; then 9769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9770else 9771 { echo "$as_me:$LINENO: checking for dlopen" >&5 9772echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9773if test "${ac_cv_func_dlopen+set}" = set; then 9774 echo $ECHO_N "(cached) $ECHO_C" >&6 9775else 9776 cat >conftest.$ac_ext <<_ACEOF 9777/* confdefs.h. */ 9778_ACEOF 9779cat confdefs.h >>conftest.$ac_ext 9780cat >>conftest.$ac_ext <<_ACEOF 9781/* end confdefs.h. */ 9782/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9784#define dlopen innocuous_dlopen 9785 9786/* System header to define __stub macros and hopefully few prototypes, 9787 which can conflict with char dlopen (); below. 9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9789 <limits.h> exists even on freestanding compilers. */ 9790 9791#ifdef __STDC__ 9792# include <limits.h> 9793#else 9794# include <assert.h> 9795#endif 9796 9797#undef dlopen 9798 9799/* Override any GCC internal prototype to avoid an error. 9800 Use char because int might match the return type of a GCC 9801 builtin and then its argument prototype would still apply. */ 9802#ifdef __cplusplus 9803extern "C" 9804#endif 9805char dlopen (); 9806/* The GNU C library defines this for functions which it implements 9807 to always fail with ENOSYS. Some functions are actually named 9808 something starting with __ and the normal name is an alias. */ 9809#if defined __stub_dlopen || defined __stub___dlopen 9810choke me 9811#endif 9812 9813int 9814main () 9815{ 9816return dlopen (); 9817 ; 9818 return 0; 9819} 9820_ACEOF 9821rm -f conftest.$ac_objext conftest$ac_exeext 9822if { (ac_try="$ac_link" 9823case "(($ac_try" in 9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9825 *) ac_try_echo=$ac_try;; 9826esac 9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9828 (eval "$ac_link") 2>conftest.er1 9829 ac_status=$? 9830 grep -v '^ *+' conftest.er1 >conftest.err 9831 rm -f conftest.er1 9832 cat conftest.err >&5 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9834 (exit $ac_status); } && { 9835 test -z "$ac_c_werror_flag" || 9836 test ! -s conftest.err 9837 } && test -s conftest$ac_exeext && 9838 $as_test_x conftest$ac_exeext; then 9839 ac_cv_func_dlopen=yes 9840else 9841 echo "$as_me: failed program was:" >&5 9842sed 's/^/| /' conftest.$ac_ext >&5 9843 9844 ac_cv_func_dlopen=no 9845fi 9846 9847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9848 conftest$ac_exeext conftest.$ac_ext 9849fi 9850{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9851echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9852if test $ac_cv_func_dlopen = yes; then 9853 lt_cv_dlopen="dlopen" 9854else 9855 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9856echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9857if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9858 echo $ECHO_N "(cached) $ECHO_C" >&6 9859else 9860 ac_check_lib_save_LIBS=$LIBS 9861LIBS="-ldl $LIBS" 9862cat >conftest.$ac_ext <<_ACEOF 9863/* confdefs.h. */ 9864_ACEOF 9865cat confdefs.h >>conftest.$ac_ext 9866cat >>conftest.$ac_ext <<_ACEOF 9867/* end confdefs.h. */ 9868 9869/* Override any GCC internal prototype to avoid an error. 9870 Use char because int might match the return type of a GCC 9871 builtin and then its argument prototype would still apply. */ 9872#ifdef __cplusplus 9873extern "C" 9874#endif 9875char dlopen (); 9876int 9877main () 9878{ 9879return dlopen (); 9880 ; 9881 return 0; 9882} 9883_ACEOF 9884rm -f conftest.$ac_objext conftest$ac_exeext 9885if { (ac_try="$ac_link" 9886case "(($ac_try" in 9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9888 *) ac_try_echo=$ac_try;; 9889esac 9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9891 (eval "$ac_link") 2>conftest.er1 9892 ac_status=$? 9893 grep -v '^ *+' conftest.er1 >conftest.err 9894 rm -f conftest.er1 9895 cat conftest.err >&5 9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9897 (exit $ac_status); } && { 9898 test -z "$ac_c_werror_flag" || 9899 test ! -s conftest.err 9900 } && test -s conftest$ac_exeext && 9901 $as_test_x conftest$ac_exeext; then 9902 ac_cv_lib_dl_dlopen=yes 9903else 9904 echo "$as_me: failed program was:" >&5 9905sed 's/^/| /' conftest.$ac_ext >&5 9906 9907 ac_cv_lib_dl_dlopen=no 9908fi 9909 9910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9911 conftest$ac_exeext conftest.$ac_ext 9912LIBS=$ac_check_lib_save_LIBS 9913fi 9914{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9915echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9916if test $ac_cv_lib_dl_dlopen = yes; then 9917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9918else 9919 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9920echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9921if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9922 echo $ECHO_N "(cached) $ECHO_C" >&6 9923else 9924 ac_check_lib_save_LIBS=$LIBS 9925LIBS="-lsvld $LIBS" 9926cat >conftest.$ac_ext <<_ACEOF 9927/* confdefs.h. */ 9928_ACEOF 9929cat confdefs.h >>conftest.$ac_ext 9930cat >>conftest.$ac_ext <<_ACEOF 9931/* end confdefs.h. */ 9932 9933/* Override any GCC internal prototype to avoid an error. 9934 Use char because int might match the return type of a GCC 9935 builtin and then its argument prototype would still apply. */ 9936#ifdef __cplusplus 9937extern "C" 9938#endif 9939char dlopen (); 9940int 9941main () 9942{ 9943return dlopen (); 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948rm -f conftest.$ac_objext conftest$ac_exeext 9949if { (ac_try="$ac_link" 9950case "(($ac_try" in 9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9952 *) ac_try_echo=$ac_try;; 9953esac 9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9955 (eval "$ac_link") 2>conftest.er1 9956 ac_status=$? 9957 grep -v '^ *+' conftest.er1 >conftest.err 9958 rm -f conftest.er1 9959 cat conftest.err >&5 9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 (exit $ac_status); } && { 9962 test -z "$ac_c_werror_flag" || 9963 test ! -s conftest.err 9964 } && test -s conftest$ac_exeext && 9965 $as_test_x conftest$ac_exeext; then 9966 ac_cv_lib_svld_dlopen=yes 9967else 9968 echo "$as_me: failed program was:" >&5 9969sed 's/^/| /' conftest.$ac_ext >&5 9970 9971 ac_cv_lib_svld_dlopen=no 9972fi 9973 9974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9975 conftest$ac_exeext conftest.$ac_ext 9976LIBS=$ac_check_lib_save_LIBS 9977fi 9978{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9979echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9980if test $ac_cv_lib_svld_dlopen = yes; then 9981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9982else 9983 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9984echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9985if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9986 echo $ECHO_N "(cached) $ECHO_C" >&6 9987else 9988 ac_check_lib_save_LIBS=$LIBS 9989LIBS="-ldld $LIBS" 9990cat >conftest.$ac_ext <<_ACEOF 9991/* confdefs.h. */ 9992_ACEOF 9993cat confdefs.h >>conftest.$ac_ext 9994cat >>conftest.$ac_ext <<_ACEOF 9995/* end confdefs.h. */ 9996 9997/* Override any GCC internal prototype to avoid an error. 9998 Use char because int might match the return type of a GCC 9999 builtin and then its argument prototype would still apply. */ 10000#ifdef __cplusplus 10001extern "C" 10002#endif 10003char dld_link (); 10004int 10005main () 10006{ 10007return dld_link (); 10008 ; 10009 return 0; 10010} 10011_ACEOF 10012rm -f conftest.$ac_objext conftest$ac_exeext 10013if { (ac_try="$ac_link" 10014case "(($ac_try" in 10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10016 *) ac_try_echo=$ac_try;; 10017esac 10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10019 (eval "$ac_link") 2>conftest.er1 10020 ac_status=$? 10021 grep -v '^ *+' conftest.er1 >conftest.err 10022 rm -f conftest.er1 10023 cat conftest.err >&5 10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10025 (exit $ac_status); } && { 10026 test -z "$ac_c_werror_flag" || 10027 test ! -s conftest.err 10028 } && test -s conftest$ac_exeext && 10029 $as_test_x conftest$ac_exeext; then 10030 ac_cv_lib_dld_dld_link=yes 10031else 10032 echo "$as_me: failed program was:" >&5 10033sed 's/^/| /' conftest.$ac_ext >&5 10034 10035 ac_cv_lib_dld_dld_link=no 10036fi 10037 10038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10039 conftest$ac_exeext conftest.$ac_ext 10040LIBS=$ac_check_lib_save_LIBS 10041fi 10042{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10043echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10044if test $ac_cv_lib_dld_dld_link = yes; then 10045 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10046fi 10047 10048 10049fi 10050 10051 10052fi 10053 10054 10055fi 10056 10057 10058fi 10059 10060 10061fi 10062 10063 ;; 10064 esac 10065 10066 if test "x$lt_cv_dlopen" != xno; then 10067 enable_dlopen=yes 10068 else 10069 enable_dlopen=no 10070 fi 10071 10072 case $lt_cv_dlopen in 10073 dlopen) 10074 save_CPPFLAGS="$CPPFLAGS" 10075 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10076 10077 save_LDFLAGS="$LDFLAGS" 10078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10079 10080 save_LIBS="$LIBS" 10081 LIBS="$lt_cv_dlopen_libs $LIBS" 10082 10083 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10084echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10085if test "${lt_cv_dlopen_self+set}" = set; then 10086 echo $ECHO_N "(cached) $ECHO_C" >&6 10087else 10088 if test "$cross_compiling" = yes; then : 10089 lt_cv_dlopen_self=cross 10090else 10091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10092 lt_status=$lt_dlunknown 10093 cat > conftest.$ac_ext <<EOF 10094#line 10094 "configure" 10095#include "confdefs.h" 10096 10097#if HAVE_DLFCN_H 10098#include <dlfcn.h> 10099#endif 10100 10101#include <stdio.h> 10102 10103#ifdef RTLD_GLOBAL 10104# define LT_DLGLOBAL RTLD_GLOBAL 10105#else 10106# ifdef DL_GLOBAL 10107# define LT_DLGLOBAL DL_GLOBAL 10108# else 10109# define LT_DLGLOBAL 0 10110# endif 10111#endif 10112 10113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10114 find out it does not work in some platform. */ 10115#ifndef LT_DLLAZY_OR_NOW 10116# ifdef RTLD_LAZY 10117# define LT_DLLAZY_OR_NOW RTLD_LAZY 10118# else 10119# ifdef DL_LAZY 10120# define LT_DLLAZY_OR_NOW DL_LAZY 10121# else 10122# ifdef RTLD_NOW 10123# define LT_DLLAZY_OR_NOW RTLD_NOW 10124# else 10125# ifdef DL_NOW 10126# define LT_DLLAZY_OR_NOW DL_NOW 10127# else 10128# define LT_DLLAZY_OR_NOW 0 10129# endif 10130# endif 10131# endif 10132# endif 10133#endif 10134 10135#ifdef __cplusplus 10136extern "C" void exit (int); 10137#endif 10138 10139void fnord() { int i=42;} 10140int main () 10141{ 10142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10143 int status = $lt_dlunknown; 10144 10145 if (self) 10146 { 10147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10149 /* dlclose (self); */ 10150 } 10151 else 10152 puts (dlerror ()); 10153 10154 exit (status); 10155} 10156EOF 10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10158 (eval $ac_link) 2>&5 10159 ac_status=$? 10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10161 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10162 (./conftest; exit; ) >&5 2>/dev/null 10163 lt_status=$? 10164 case x$lt_status in 10165 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10166 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10167 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10168 esac 10169 else : 10170 # compilation failed 10171 lt_cv_dlopen_self=no 10172 fi 10173fi 10174rm -fr conftest* 10175 10176 10177fi 10178{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10179echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10180 10181 if test "x$lt_cv_dlopen_self" = xyes; then 10182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10183 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10184echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10185if test "${lt_cv_dlopen_self_static+set}" = set; then 10186 echo $ECHO_N "(cached) $ECHO_C" >&6 10187else 10188 if test "$cross_compiling" = yes; then : 10189 lt_cv_dlopen_self_static=cross 10190else 10191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10192 lt_status=$lt_dlunknown 10193 cat > conftest.$ac_ext <<EOF 10194#line 10194 "configure" 10195#include "confdefs.h" 10196 10197#if HAVE_DLFCN_H 10198#include <dlfcn.h> 10199#endif 10200 10201#include <stdio.h> 10202 10203#ifdef RTLD_GLOBAL 10204# define LT_DLGLOBAL RTLD_GLOBAL 10205#else 10206# ifdef DL_GLOBAL 10207# define LT_DLGLOBAL DL_GLOBAL 10208# else 10209# define LT_DLGLOBAL 0 10210# endif 10211#endif 10212 10213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10214 find out it does not work in some platform. */ 10215#ifndef LT_DLLAZY_OR_NOW 10216# ifdef RTLD_LAZY 10217# define LT_DLLAZY_OR_NOW RTLD_LAZY 10218# else 10219# ifdef DL_LAZY 10220# define LT_DLLAZY_OR_NOW DL_LAZY 10221# else 10222# ifdef RTLD_NOW 10223# define LT_DLLAZY_OR_NOW RTLD_NOW 10224# else 10225# ifdef DL_NOW 10226# define LT_DLLAZY_OR_NOW DL_NOW 10227# else 10228# define LT_DLLAZY_OR_NOW 0 10229# endif 10230# endif 10231# endif 10232# endif 10233#endif 10234 10235#ifdef __cplusplus 10236extern "C" void exit (int); 10237#endif 10238 10239void fnord() { int i=42;} 10240int main () 10241{ 10242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10243 int status = $lt_dlunknown; 10244 10245 if (self) 10246 { 10247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10248 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10249 /* dlclose (self); */ 10250 } 10251 else 10252 puts (dlerror ()); 10253 10254 exit (status); 10255} 10256EOF 10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10258 (eval $ac_link) 2>&5 10259 ac_status=$? 10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10262 (./conftest; exit; ) >&5 2>/dev/null 10263 lt_status=$? 10264 case x$lt_status in 10265 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10266 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10267 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10268 esac 10269 else : 10270 # compilation failed 10271 lt_cv_dlopen_self_static=no 10272 fi 10273fi 10274rm -fr conftest* 10275 10276 10277fi 10278{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10279echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10280 fi 10281 10282 CPPFLAGS="$save_CPPFLAGS" 10283 LDFLAGS="$save_LDFLAGS" 10284 LIBS="$save_LIBS" 10285 ;; 10286 esac 10287 10288 case $lt_cv_dlopen_self in 10289 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10290 *) enable_dlopen_self=unknown ;; 10291 esac 10292 10293 case $lt_cv_dlopen_self_static in 10294 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10295 *) enable_dlopen_self_static=unknown ;; 10296 esac 10297fi 10298 10299 10300# Report which library types will actually be built 10301{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10302echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10303{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10304echo "${ECHO_T}$can_build_shared" >&6; } 10305 10306{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10307echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10308test "$can_build_shared" = "no" && enable_shared=no 10309 10310# On AIX, shared libraries and static libraries use the same namespace, and 10311# are all built from PIC. 10312case $host_os in 10313aix3*) 10314 test "$enable_shared" = yes && enable_static=no 10315 if test -n "$RANLIB"; then 10316 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10317 postinstall_cmds='$RANLIB $lib' 10318 fi 10319 ;; 10320 10321aix4* | aix5*) 10322 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10323 test "$enable_shared" = yes && enable_static=no 10324 fi 10325 ;; 10326esac 10327{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10328echo "${ECHO_T}$enable_shared" >&6; } 10329 10330{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10331echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10332# Make sure either enable_shared or enable_static is yes. 10333test "$enable_shared" = yes || enable_static=yes 10334{ echo "$as_me:$LINENO: result: $enable_static" >&5 10335echo "${ECHO_T}$enable_static" >&6; } 10336 10337# The else clause should only fire when bootstrapping the 10338# libtool distribution, otherwise you forgot to ship ltmain.sh 10339# with your package, and you will get complaints that there are 10340# no rules to generate ltmain.sh. 10341if test -f "$ltmain"; then 10342 # See if we are running on zsh, and set the options which allow our commands through 10343 # without removal of \ escapes. 10344 if test -n "${ZSH_VERSION+set}" ; then 10345 setopt NO_GLOB_SUBST 10346 fi 10347 # Now quote all the things that may contain metacharacters while being 10348 # careful not to overquote the AC_SUBSTed values. We take copies of the 10349 # variables and quote the copies for generation of the libtool script. 10350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10351 SED SHELL STRIP \ 10352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10354 deplibs_check_method reload_flag reload_cmds need_locks \ 10355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10356 lt_cv_sys_global_symbol_to_c_name_address \ 10357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10358 old_postinstall_cmds old_postuninstall_cmds \ 10359 compiler \ 10360 CC \ 10361 LD \ 10362 lt_prog_compiler_wl \ 10363 lt_prog_compiler_pic \ 10364 lt_prog_compiler_static \ 10365 lt_prog_compiler_no_builtin_flag \ 10366 export_dynamic_flag_spec \ 10367 thread_safe_flag_spec \ 10368 whole_archive_flag_spec \ 10369 enable_shared_with_static_runtimes \ 10370 old_archive_cmds \ 10371 old_archive_from_new_cmds \ 10372 predep_objects \ 10373 postdep_objects \ 10374 predeps \ 10375 postdeps \ 10376 compiler_lib_search_path \ 10377 archive_cmds \ 10378 archive_expsym_cmds \ 10379 postinstall_cmds \ 10380 postuninstall_cmds \ 10381 old_archive_from_expsyms_cmds \ 10382 allow_undefined_flag \ 10383 no_undefined_flag \ 10384 export_symbols_cmds \ 10385 hardcode_libdir_flag_spec \ 10386 hardcode_libdir_flag_spec_ld \ 10387 hardcode_libdir_separator \ 10388 hardcode_automatic \ 10389 module_cmds \ 10390 module_expsym_cmds \ 10391 lt_cv_prog_compiler_c_o \ 10392 exclude_expsyms \ 10393 include_expsyms; do 10394 10395 case $var in 10396 old_archive_cmds | \ 10397 old_archive_from_new_cmds | \ 10398 archive_cmds | \ 10399 archive_expsym_cmds | \ 10400 module_cmds | \ 10401 module_expsym_cmds | \ 10402 old_archive_from_expsyms_cmds | \ 10403 export_symbols_cmds | \ 10404 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10405 postinstall_cmds | postuninstall_cmds | \ 10406 old_postinstall_cmds | old_postuninstall_cmds | \ 10407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10408 # Double-quote double-evaled strings. 10409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10410 ;; 10411 *) 10412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10413 ;; 10414 esac 10415 done 10416 10417 case $lt_echo in 10418 *'\$0 --fallback-echo"') 10419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10420 ;; 10421 esac 10422 10423cfgfile="${ofile}T" 10424 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10425 $rm -f "$cfgfile" 10426 { echo "$as_me:$LINENO: creating $ofile" >&5 10427echo "$as_me: creating $ofile" >&6;} 10428 10429 cat <<__EOF__ >> "$cfgfile" 10430#! $SHELL 10431 10432# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10433# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10434# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10435# 10436# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10437# Free Software Foundation, Inc. 10438# 10439# This file is part of GNU Libtool: 10440# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10441# 10442# This program is free software; you can redistribute it and/or modify 10443# it under the terms of the GNU General Public License as published by 10444# the Free Software Foundation; either version 2 of the License, or 10445# (at your option) any later version. 10446# 10447# This program is distributed in the hope that it will be useful, but 10448# WITHOUT ANY WARRANTY; without even the implied warranty of 10449# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10450# General Public License for more details. 10451# 10452# You should have received a copy of the GNU General Public License 10453# along with this program; if not, write to the Free Software 10454# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10455# 10456# As a special exception to the GNU General Public License, if you 10457# distribute this file as part of a program that contains a 10458# configuration script generated by Autoconf, you may include it under 10459# the same distribution terms that you use for the rest of that program. 10460 10461# A sed program that does not truncate output. 10462SED=$lt_SED 10463 10464# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10465Xsed="$SED -e 1s/^X//" 10466 10467# The HP-UX ksh and POSIX shell print the target directory to stdout 10468# if CDPATH is set. 10469(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10470 10471# The names of the tagged configurations supported by this script. 10472available_tags= 10473 10474# ### BEGIN LIBTOOL CONFIG 10475 10476# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10477 10478# Shell to use when invoking shell scripts. 10479SHELL=$lt_SHELL 10480 10481# Whether or not to build shared libraries. 10482build_libtool_libs=$enable_shared 10483 10484# Whether or not to build static libraries. 10485build_old_libs=$enable_static 10486 10487# Whether or not to add -lc for building shared libraries. 10488build_libtool_need_lc=$archive_cmds_need_lc 10489 10490# Whether or not to disallow shared libs when runtime libs are static 10491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10492 10493# Whether or not to optimize for fast installation. 10494fast_install=$enable_fast_install 10495 10496# The host system. 10497host_alias=$host_alias 10498host=$host 10499host_os=$host_os 10500 10501# The build system. 10502build_alias=$build_alias 10503build=$build 10504build_os=$build_os 10505 10506# An echo program that does not interpret backslashes. 10507echo=$lt_echo 10508 10509# The archiver. 10510AR=$lt_AR 10511AR_FLAGS=$lt_AR_FLAGS 10512 10513# A C compiler. 10514LTCC=$lt_LTCC 10515 10516# LTCC compiler flags. 10517LTCFLAGS=$lt_LTCFLAGS 10518 10519# A language-specific compiler. 10520CC=$lt_compiler 10521 10522# Is the compiler the GNU C compiler? 10523with_gcc=$GCC 10524 10525# An ERE matcher. 10526EGREP=$lt_EGREP 10527 10528# The linker used to build libraries. 10529LD=$lt_LD 10530 10531# Whether we need hard or soft links. 10532LN_S=$lt_LN_S 10533 10534# A BSD-compatible nm program. 10535NM=$lt_NM 10536 10537# A symbol stripping program 10538STRIP=$lt_STRIP 10539 10540# Used to examine libraries when file_magic_cmd begins "file" 10541MAGIC_CMD=$MAGIC_CMD 10542 10543# Used on cygwin: DLL creation program. 10544DLLTOOL="$DLLTOOL" 10545 10546# Used on cygwin: object dumper. 10547OBJDUMP="$OBJDUMP" 10548 10549# Used on cygwin: assembler. 10550AS="$AS" 10551 10552# The name of the directory that contains temporary libtool files. 10553objdir=$objdir 10554 10555# How to create reloadable object files. 10556reload_flag=$lt_reload_flag 10557reload_cmds=$lt_reload_cmds 10558 10559# How to pass a linker flag through the compiler. 10560wl=$lt_lt_prog_compiler_wl 10561 10562# Object file suffix (normally "o"). 10563objext="$ac_objext" 10564 10565# Old archive suffix (normally "a"). 10566libext="$libext" 10567 10568# Shared library suffix (normally ".so"). 10569shrext_cmds='$shrext_cmds' 10570 10571# Executable file suffix (normally ""). 10572exeext="$exeext" 10573 10574# Additional compiler flags for building library objects. 10575pic_flag=$lt_lt_prog_compiler_pic 10576pic_mode=$pic_mode 10577 10578# What is the maximum length of a command? 10579max_cmd_len=$lt_cv_sys_max_cmd_len 10580 10581# Does compiler simultaneously support -c and -o options? 10582compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10583 10584# Must we lock files when doing compilation? 10585need_locks=$lt_need_locks 10586 10587# Do we need the lib prefix for modules? 10588need_lib_prefix=$need_lib_prefix 10589 10590# Do we need a version for libraries? 10591need_version=$need_version 10592 10593# Whether dlopen is supported. 10594dlopen_support=$enable_dlopen 10595 10596# Whether dlopen of programs is supported. 10597dlopen_self=$enable_dlopen_self 10598 10599# Whether dlopen of statically linked programs is supported. 10600dlopen_self_static=$enable_dlopen_self_static 10601 10602# Compiler flag to prevent dynamic linking. 10603link_static_flag=$lt_lt_prog_compiler_static 10604 10605# Compiler flag to turn off builtin functions. 10606no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10607 10608# Compiler flag to allow reflexive dlopens. 10609export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10610 10611# Compiler flag to generate shared objects directly from archives. 10612whole_archive_flag_spec=$lt_whole_archive_flag_spec 10613 10614# Compiler flag to generate thread-safe objects. 10615thread_safe_flag_spec=$lt_thread_safe_flag_spec 10616 10617# Library versioning type. 10618version_type=$version_type 10619 10620# Format of library name prefix. 10621libname_spec=$lt_libname_spec 10622 10623# List of archive names. First name is the real one, the rest are links. 10624# The last name is the one that the linker finds with -lNAME. 10625library_names_spec=$lt_library_names_spec 10626 10627# The coded name of the library, if different from the real name. 10628soname_spec=$lt_soname_spec 10629 10630# Commands used to build and install an old-style archive. 10631RANLIB=$lt_RANLIB 10632old_archive_cmds=$lt_old_archive_cmds 10633old_postinstall_cmds=$lt_old_postinstall_cmds 10634old_postuninstall_cmds=$lt_old_postuninstall_cmds 10635 10636# Create an old-style archive from a shared archive. 10637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10638 10639# Create a temporary old-style archive to link instead of a shared archive. 10640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10641 10642# Commands used to build and install a shared archive. 10643archive_cmds=$lt_archive_cmds 10644archive_expsym_cmds=$lt_archive_expsym_cmds 10645postinstall_cmds=$lt_postinstall_cmds 10646postuninstall_cmds=$lt_postuninstall_cmds 10647 10648# Commands used to build a loadable module (assumed same as above if empty) 10649module_cmds=$lt_module_cmds 10650module_expsym_cmds=$lt_module_expsym_cmds 10651 10652# Commands to strip libraries. 10653old_striplib=$lt_old_striplib 10654striplib=$lt_striplib 10655 10656# Dependencies to place before the objects being linked to create a 10657# shared library. 10658predep_objects=$lt_predep_objects 10659 10660# Dependencies to place after the objects being linked to create a 10661# shared library. 10662postdep_objects=$lt_postdep_objects 10663 10664# Dependencies to place before the objects being linked to create a 10665# shared library. 10666predeps=$lt_predeps 10667 10668# Dependencies to place after the objects being linked to create a 10669# shared library. 10670postdeps=$lt_postdeps 10671 10672# The library search path used internally by the compiler when linking 10673# a shared library. 10674compiler_lib_search_path=$lt_compiler_lib_search_path 10675 10676# Method to check whether dependent libraries are shared objects. 10677deplibs_check_method=$lt_deplibs_check_method 10678 10679# Command to use when deplibs_check_method == file_magic. 10680file_magic_cmd=$lt_file_magic_cmd 10681 10682# Flag that allows shared libraries with undefined symbols to be built. 10683allow_undefined_flag=$lt_allow_undefined_flag 10684 10685# Flag that forces no undefined symbols. 10686no_undefined_flag=$lt_no_undefined_flag 10687 10688# Commands used to finish a libtool library installation in a directory. 10689finish_cmds=$lt_finish_cmds 10690 10691# Same as above, but a single script fragment to be evaled but not shown. 10692finish_eval=$lt_finish_eval 10693 10694# Take the output of nm and produce a listing of raw symbols and C names. 10695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10696 10697# Transform the output of nm in a proper C declaration 10698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10699 10700# Transform the output of nm in a C name address pair 10701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10702 10703# This is the shared library runtime path variable. 10704runpath_var=$runpath_var 10705 10706# This is the shared library path variable. 10707shlibpath_var=$shlibpath_var 10708 10709# Is shlibpath searched before the hard-coded library search path? 10710shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10711 10712# How to hardcode a shared library path into an executable. 10713hardcode_action=$hardcode_action 10714 10715# Whether we should hardcode library paths into libraries. 10716hardcode_into_libs=$hardcode_into_libs 10717 10718# Flag to hardcode \$libdir into a binary during linking. 10719# This must work even if \$libdir does not exist. 10720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10721 10722# If ld is used when linking, flag to hardcode \$libdir into 10723# a binary during linking. This must work even if \$libdir does 10724# not exist. 10725hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10726 10727# Whether we need a single -rpath flag with a separated argument. 10728hardcode_libdir_separator=$lt_hardcode_libdir_separator 10729 10730# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10731# resulting binary. 10732hardcode_direct=$hardcode_direct 10733 10734# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10735# resulting binary. 10736hardcode_minus_L=$hardcode_minus_L 10737 10738# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10739# the resulting binary. 10740hardcode_shlibpath_var=$hardcode_shlibpath_var 10741 10742# Set to yes if building a shared library automatically hardcodes DIR into the library 10743# and all subsequent libraries and executables linked against it. 10744hardcode_automatic=$hardcode_automatic 10745 10746# Variables whose values should be saved in libtool wrapper scripts and 10747# restored at relink time. 10748variables_saved_for_relink="$variables_saved_for_relink" 10749 10750# Whether libtool must link a program against all its dependency libraries. 10751link_all_deplibs=$link_all_deplibs 10752 10753# Compile-time system search path for libraries 10754sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10755 10756# Run-time system search path for libraries 10757sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10758 10759# Fix the shell variable \$srcfile for the compiler. 10760fix_srcfile_path="$fix_srcfile_path" 10761 10762# Set to yes if exported symbols are required. 10763always_export_symbols=$always_export_symbols 10764 10765# The commands to list exported symbols. 10766export_symbols_cmds=$lt_export_symbols_cmds 10767 10768# The commands to extract the exported symbol list from a shared archive. 10769extract_expsyms_cmds=$lt_extract_expsyms_cmds 10770 10771# Symbols that should not be listed in the preloaded symbols. 10772exclude_expsyms=$lt_exclude_expsyms 10773 10774# Symbols that must always be exported. 10775include_expsyms=$lt_include_expsyms 10776 10777# ### END LIBTOOL CONFIG 10778 10779__EOF__ 10780 10781 10782 case $host_os in 10783 aix3*) 10784 cat <<\EOF >> "$cfgfile" 10785 10786# AIX sometimes has problems with the GCC collect2 program. For some 10787# reason, if we set the COLLECT_NAMES environment variable, the problems 10788# vanish in a puff of smoke. 10789if test "X${COLLECT_NAMES+set}" != Xset; then 10790 COLLECT_NAMES= 10791 export COLLECT_NAMES 10792fi 10793EOF 10794 ;; 10795 esac 10796 10797 # We use sed instead of cat because bash on DJGPP gets confused if 10798 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10799 # text mode, it properly converts lines to CR/LF. This bash problem 10800 # is reportedly fixed, but why not run on old versions too? 10801 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10802 10803 mv -f "$cfgfile" "$ofile" || \ 10804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10805 chmod +x "$ofile" 10806 10807else 10808 # If there is no Makefile yet, we rely on a make rule to execute 10809 # `config.status --recheck' to rerun these tests and create the 10810 # libtool script then. 10811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10812 if test -f "$ltmain_in"; then 10813 test -f Makefile && make "$ltmain" 10814 fi 10815fi 10816 10817 10818ac_ext=c 10819ac_cpp='$CPP $CPPFLAGS' 10820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10822ac_compiler_gnu=$ac_cv_c_compiler_gnu 10823 10824CC="$lt_save_CC" 10825 10826 10827# Check whether --with-tags was given. 10828if test "${with_tags+set}" = set; then 10829 withval=$with_tags; tagnames="$withval" 10830fi 10831 10832 10833if test -f "$ltmain" && test -n "$tagnames"; then 10834 if test ! -f "${ofile}"; then 10835 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10836echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10837 fi 10838 10839 if test -z "$LTCC"; then 10840 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10841 if test -z "$LTCC"; then 10842 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10843echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10844 else 10845 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10846echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10847 fi 10848 fi 10849 if test -z "$LTCFLAGS"; then 10850 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10851 fi 10852 10853 # Extract list of available tagged configurations in $ofile. 10854 # Note that this assumes the entire list is on one line. 10855 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10856 10857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10858 for tagname in $tagnames; do 10859 IFS="$lt_save_ifs" 10860 # Check whether tagname contains only valid characters 10861 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10862 "") ;; 10863 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10864echo "$as_me: error: invalid tag name: $tagname" >&2;} 10865 { (exit 1); exit 1; }; } 10866 ;; 10867 esac 10868 10869 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10870 then 10871 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10872echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10873 { (exit 1); exit 1; }; } 10874 fi 10875 10876 # Update the list of available tags. 10877 if test -n "$tagname"; then 10878 echo appending configuration tag \"$tagname\" to $ofile 10879 10880 case $tagname in 10881 CXX) 10882 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10883 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10884 (test "X$CXX" != "Xg++"))) ; then 10885 ac_ext=cpp 10886ac_cpp='$CXXCPP $CPPFLAGS' 10887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10890 10891 10892 10893 10894archive_cmds_need_lc_CXX=no 10895allow_undefined_flag_CXX= 10896always_export_symbols_CXX=no 10897archive_expsym_cmds_CXX= 10898export_dynamic_flag_spec_CXX= 10899hardcode_direct_CXX=no 10900hardcode_libdir_flag_spec_CXX= 10901hardcode_libdir_flag_spec_ld_CXX= 10902hardcode_libdir_separator_CXX= 10903hardcode_minus_L_CXX=no 10904hardcode_shlibpath_var_CXX=unsupported 10905hardcode_automatic_CXX=no 10906module_cmds_CXX= 10907module_expsym_cmds_CXX= 10908link_all_deplibs_CXX=unknown 10909old_archive_cmds_CXX=$old_archive_cmds 10910no_undefined_flag_CXX= 10911whole_archive_flag_spec_CXX= 10912enable_shared_with_static_runtimes_CXX=no 10913 10914# Dependencies to place before and after the object being linked: 10915predep_objects_CXX= 10916postdep_objects_CXX= 10917predeps_CXX= 10918postdeps_CXX= 10919compiler_lib_search_path_CXX= 10920 10921# Source file extension for C++ test sources. 10922ac_ext=cpp 10923 10924# Object file extension for compiled C++ test sources. 10925objext=o 10926objext_CXX=$objext 10927 10928# Code to be used in simple compile tests 10929lt_simple_compile_test_code="int some_variable = 0;\n" 10930 10931# Code to be used in simple link tests 10932lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10933 10934# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10935 10936# If no C compiler was specified, use CC. 10937LTCC=${LTCC-"$CC"} 10938 10939# If no C compiler flags were specified, use CFLAGS. 10940LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10941 10942# Allow CC to be a program name with arguments. 10943compiler=$CC 10944 10945 10946# save warnings/boilerplate of simple test code 10947ac_outfile=conftest.$ac_objext 10948printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10950_lt_compiler_boilerplate=`cat conftest.err` 10951$rm conftest* 10952 10953ac_outfile=conftest.$ac_objext 10954printf "$lt_simple_link_test_code" >conftest.$ac_ext 10955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10956_lt_linker_boilerplate=`cat conftest.err` 10957$rm conftest* 10958 10959 10960# Allow CC to be a program name with arguments. 10961lt_save_CC=$CC 10962lt_save_LD=$LD 10963lt_save_GCC=$GCC 10964GCC=$GXX 10965lt_save_with_gnu_ld=$with_gnu_ld 10966lt_save_path_LD=$lt_cv_path_LD 10967if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10968 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10969else 10970 $as_unset lt_cv_prog_gnu_ld 10971fi 10972if test -n "${lt_cv_path_LDCXX+set}"; then 10973 lt_cv_path_LD=$lt_cv_path_LDCXX 10974else 10975 $as_unset lt_cv_path_LD 10976fi 10977test -z "${LDCXX+set}" || LD=$LDCXX 10978CC=${CXX-"c++"} 10979compiler=$CC 10980compiler_CXX=$CC 10981for cc_temp in $compiler""; do 10982 case $cc_temp in 10983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10985 \-*) ;; 10986 *) break;; 10987 esac 10988done 10989cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10990 10991 10992# We don't want -fno-exception wen compiling C++ code, so set the 10993# no_builtin_flag separately 10994if test "$GXX" = yes; then 10995 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10996else 10997 lt_prog_compiler_no_builtin_flag_CXX= 10998fi 10999 11000if test "$GXX" = yes; then 11001 # Set up default GNU C++ configuration 11002 11003 11004# Check whether --with-gnu-ld was given. 11005if test "${with_gnu_ld+set}" = set; then 11006 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11007else 11008 with_gnu_ld=no 11009fi 11010 11011ac_prog=ld 11012if test "$GCC" = yes; then 11013 # Check if gcc -print-prog-name=ld gives a path. 11014 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11015echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11016 case $host in 11017 *-*-mingw*) 11018 # gcc leaves a trailing carriage return which upsets mingw 11019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11020 *) 11021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11022 esac 11023 case $ac_prog in 11024 # Accept absolute paths. 11025 [\\/]* | ?:[\\/]*) 11026 re_direlt='/[^/][^/]*/\.\./' 11027 # Canonicalize the pathname of ld 11028 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11030 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11031 done 11032 test -z "$LD" && LD="$ac_prog" 11033 ;; 11034 "") 11035 # If it fails, then pretend we aren't using GCC. 11036 ac_prog=ld 11037 ;; 11038 *) 11039 # If it is relative, then search for the first ld in PATH. 11040 with_gnu_ld=unknown 11041 ;; 11042 esac 11043elif test "$with_gnu_ld" = yes; then 11044 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11045echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11046else 11047 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11048echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11049fi 11050if test "${lt_cv_path_LD+set}" = set; then 11051 echo $ECHO_N "(cached) $ECHO_C" >&6 11052else 11053 if test -z "$LD"; then 11054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11055 for ac_dir in $PATH; do 11056 IFS="$lt_save_ifs" 11057 test -z "$ac_dir" && ac_dir=. 11058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11059 lt_cv_path_LD="$ac_dir/$ac_prog" 11060 # Check to see if the program is GNU ld. I'd rather use --version, 11061 # but apparently some variants of GNU ld only accept -v. 11062 # Break only if it was the GNU/non-GNU ld that we prefer. 11063 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11064 *GNU* | *'with BFD'*) 11065 test "$with_gnu_ld" != no && break 11066 ;; 11067 *) 11068 test "$with_gnu_ld" != yes && break 11069 ;; 11070 esac 11071 fi 11072 done 11073 IFS="$lt_save_ifs" 11074else 11075 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11076fi 11077fi 11078 11079LD="$lt_cv_path_LD" 11080if test -n "$LD"; then 11081 { echo "$as_me:$LINENO: result: $LD" >&5 11082echo "${ECHO_T}$LD" >&6; } 11083else 11084 { echo "$as_me:$LINENO: result: no" >&5 11085echo "${ECHO_T}no" >&6; } 11086fi 11087test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11088echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11089 { (exit 1); exit 1; }; } 11090{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11091echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11092if test "${lt_cv_prog_gnu_ld+set}" = set; then 11093 echo $ECHO_N "(cached) $ECHO_C" >&6 11094else 11095 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11096case `$LD -v 2>&1 </dev/null` in 11097*GNU* | *'with BFD'*) 11098 lt_cv_prog_gnu_ld=yes 11099 ;; 11100*) 11101 lt_cv_prog_gnu_ld=no 11102 ;; 11103esac 11104fi 11105{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11106echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11107with_gnu_ld=$lt_cv_prog_gnu_ld 11108 11109 11110 11111 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11112 # archiving commands below assume that GNU ld is being used. 11113 if test "$with_gnu_ld" = yes; then 11114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11115 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' 11116 11117 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11119 11120 # If archive_cmds runs LD, not CC, wlarc should be empty 11121 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11122 # investigate it a little bit more. (MM) 11123 wlarc='${wl}' 11124 11125 # ancient GNU ld didn't support --whole-archive et. al. 11126 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11127 grep 'no-whole-archive' > /dev/null; then 11128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11129 else 11130 whole_archive_flag_spec_CXX= 11131 fi 11132 else 11133 with_gnu_ld=no 11134 wlarc= 11135 11136 # A generic and very simple default shared library creation 11137 # command for GNU C++ for the case where it uses the native 11138 # linker, instead of GNU ld. If possible, this setting should 11139 # overridden to take advantage of the native linker features on 11140 # the platform it is being used on. 11141 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11142 fi 11143 11144 # Commands to make compiler produce verbose output that lists 11145 # what "hidden" libraries, object files and flags are used when 11146 # linking a shared library. 11147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11148 11149else 11150 GXX=no 11151 with_gnu_ld=no 11152 wlarc= 11153fi 11154 11155# PORTME: fill in a description of your system's C++ link characteristics 11156{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11157echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11158ld_shlibs_CXX=yes 11159case $host_os in 11160 aix3*) 11161 # FIXME: insert proper C++ library support 11162 ld_shlibs_CXX=no 11163 ;; 11164 aix4* | aix5*) 11165 if test "$host_cpu" = ia64; then 11166 # On IA64, the linker does run time linking by default, so we don't 11167 # have to do anything special. 11168 aix_use_runtimelinking=no 11169 exp_sym_flag='-Bexport' 11170 no_entry_flag="" 11171 else 11172 aix_use_runtimelinking=no 11173 11174 # Test if we are trying to use run time linking or normal 11175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11176 # need to do runtime linking. 11177 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11178 for ld_flag in $LDFLAGS; do 11179 case $ld_flag in 11180 *-brtl*) 11181 aix_use_runtimelinking=yes 11182 break 11183 ;; 11184 esac 11185 done 11186 ;; 11187 esac 11188 11189 exp_sym_flag='-bexport' 11190 no_entry_flag='-bnoentry' 11191 fi 11192 11193 # When large executables or shared objects are built, AIX ld can 11194 # have problems creating the table of contents. If linking a library 11195 # or program results in "error TOC overflow" add -mminimal-toc to 11196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11198 11199 archive_cmds_CXX='' 11200 hardcode_direct_CXX=yes 11201 hardcode_libdir_separator_CXX=':' 11202 link_all_deplibs_CXX=yes 11203 11204 if test "$GXX" = yes; then 11205 case $host_os in aix4.[012]|aix4.[012].*) 11206 # We only want to do this on AIX 4.2 and lower, the check 11207 # below for broken collect2 doesn't work under 4.3+ 11208 collect2name=`${CC} -print-prog-name=collect2` 11209 if test -f "$collect2name" && \ 11210 strings "$collect2name" | grep resolve_lib_name >/dev/null 11211 then 11212 # We have reworked collect2 11213 hardcode_direct_CXX=yes 11214 else 11215 # We have old collect2 11216 hardcode_direct_CXX=unsupported 11217 # It fails to find uninstalled libraries when the uninstalled 11218 # path is not listed in the libpath. Setting hardcode_minus_L 11219 # to unsupported forces relinking 11220 hardcode_minus_L_CXX=yes 11221 hardcode_libdir_flag_spec_CXX='-L$libdir' 11222 hardcode_libdir_separator_CXX= 11223 fi 11224 ;; 11225 esac 11226 shared_flag='-shared' 11227 if test "$aix_use_runtimelinking" = yes; then 11228 shared_flag="$shared_flag "'${wl}-G' 11229 fi 11230 else 11231 # not using gcc 11232 if test "$host_cpu" = ia64; then 11233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11234 # chokes on -Wl,-G. The following line is correct: 11235 shared_flag='-G' 11236 else 11237 if test "$aix_use_runtimelinking" = yes; then 11238 shared_flag='${wl}-G' 11239 else 11240 shared_flag='${wl}-bM:SRE' 11241 fi 11242 fi 11243 fi 11244 11245 # It seems that -bexpall does not export symbols beginning with 11246 # underscore (_), so it is better to generate a list of symbols to export. 11247 always_export_symbols_CXX=yes 11248 if test "$aix_use_runtimelinking" = yes; then 11249 # Warning - without using the other runtime loading flags (-brtl), 11250 # -berok will link without error, but may produce a broken library. 11251 allow_undefined_flag_CXX='-berok' 11252 # Determine the default libpath from the value encoded in an empty executable. 11253 cat >conftest.$ac_ext <<_ACEOF 11254/* confdefs.h. */ 11255_ACEOF 11256cat confdefs.h >>conftest.$ac_ext 11257cat >>conftest.$ac_ext <<_ACEOF 11258/* end confdefs.h. */ 11259 11260int 11261main () 11262{ 11263 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268rm -f conftest.$ac_objext conftest$ac_exeext 11269if { (ac_try="$ac_link" 11270case "(($ac_try" in 11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11272 *) ac_try_echo=$ac_try;; 11273esac 11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11275 (eval "$ac_link") 2>conftest.er1 11276 ac_status=$? 11277 grep -v '^ *+' conftest.er1 >conftest.err 11278 rm -f conftest.er1 11279 cat conftest.err >&5 11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11281 (exit $ac_status); } && { 11282 test -z "$ac_cxx_werror_flag" || 11283 test ! -s conftest.err 11284 } && test -s conftest$ac_exeext && 11285 $as_test_x conftest$ac_exeext; then 11286 11287aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11288}'` 11289# Check for a 64-bit object if we didn't find anything. 11290if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11291}'`; fi 11292else 11293 echo "$as_me: failed program was:" >&5 11294sed 's/^/| /' conftest.$ac_ext >&5 11295 11296 11297fi 11298 11299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11300 conftest$ac_exeext conftest.$ac_ext 11301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11302 11303 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11304 11305 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" 11306 else 11307 if test "$host_cpu" = ia64; then 11308 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11309 allow_undefined_flag_CXX="-z nodefs" 11310 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" 11311 else 11312 # Determine the default libpath from the value encoded in an empty executable. 11313 cat >conftest.$ac_ext <<_ACEOF 11314/* confdefs.h. */ 11315_ACEOF 11316cat confdefs.h >>conftest.$ac_ext 11317cat >>conftest.$ac_ext <<_ACEOF 11318/* end confdefs.h. */ 11319 11320int 11321main () 11322{ 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328rm -f conftest.$ac_objext conftest$ac_exeext 11329if { (ac_try="$ac_link" 11330case "(($ac_try" in 11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11332 *) ac_try_echo=$ac_try;; 11333esac 11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11335 (eval "$ac_link") 2>conftest.er1 11336 ac_status=$? 11337 grep -v '^ *+' conftest.er1 >conftest.err 11338 rm -f conftest.er1 11339 cat conftest.err >&5 11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11341 (exit $ac_status); } && { 11342 test -z "$ac_cxx_werror_flag" || 11343 test ! -s conftest.err 11344 } && test -s conftest$ac_exeext && 11345 $as_test_x conftest$ac_exeext; then 11346 11347aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11348}'` 11349# Check for a 64-bit object if we didn't find anything. 11350if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11351}'`; fi 11352else 11353 echo "$as_me: failed program was:" >&5 11354sed 's/^/| /' conftest.$ac_ext >&5 11355 11356 11357fi 11358 11359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11360 conftest$ac_exeext conftest.$ac_ext 11361if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11362 11363 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11364 # Warning - without using the other run time loading flags, 11365 # -berok will link without error, but may produce a broken library. 11366 no_undefined_flag_CXX=' ${wl}-bernotok' 11367 allow_undefined_flag_CXX=' ${wl}-berok' 11368 # Exported symbols can be pulled into shared objects from archives 11369 whole_archive_flag_spec_CXX='$convenience' 11370 archive_cmds_need_lc_CXX=yes 11371 # This is similar to how AIX traditionally builds its shared libraries. 11372 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' 11373 fi 11374 fi 11375 ;; 11376 11377 beos*) 11378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11379 allow_undefined_flag_CXX=unsupported 11380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11381 # support --undefined. This deserves some investigation. FIXME 11382 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11383 else 11384 ld_shlibs_CXX=no 11385 fi 11386 ;; 11387 11388 chorus*) 11389 case $cc_basename in 11390 *) 11391 # FIXME: insert proper C++ library support 11392 ld_shlibs_CXX=no 11393 ;; 11394 esac 11395 ;; 11396 11397 cygwin* | mingw* | pw32*) 11398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11399 # as there is no search path for DLLs. 11400 hardcode_libdir_flag_spec_CXX='-L$libdir' 11401 allow_undefined_flag_CXX=unsupported 11402 always_export_symbols_CXX=no 11403 enable_shared_with_static_runtimes_CXX=yes 11404 11405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11406 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' 11407 # If the export-symbols file already is a .def file (1st line 11408 # is EXPORTS), use it as is; otherwise, prepend... 11409 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11410 cp $export_symbols $output_objdir/$soname.def; 11411 else 11412 echo EXPORTS > $output_objdir/$soname.def; 11413 cat $export_symbols >> $output_objdir/$soname.def; 11414 fi~ 11415 $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' 11416 else 11417 ld_shlibs_CXX=no 11418 fi 11419 ;; 11420 darwin* | rhapsody*) 11421 case $host_os in 11422 rhapsody* | darwin1.[012]) 11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11424 ;; 11425 *) # Darwin 1.3 on 11426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11428 else 11429 case ${MACOSX_DEPLOYMENT_TARGET} in 11430 10.[012]) 11431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11432 ;; 11433 10.*) 11434 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11435 ;; 11436 esac 11437 fi 11438 ;; 11439 esac 11440 archive_cmds_need_lc_CXX=no 11441 hardcode_direct_CXX=no 11442 hardcode_automatic_CXX=yes 11443 hardcode_shlibpath_var_CXX=unsupported 11444 whole_archive_flag_spec_CXX='' 11445 link_all_deplibs_CXX=yes 11446 11447 if test "$GXX" = yes ; then 11448 lt_int_apple_cc_single_mod=no 11449 output_verbose_link_cmd='echo' 11450 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11451 lt_int_apple_cc_single_mod=yes 11452 fi 11453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11454 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11455 else 11456 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' 11457 fi 11458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11461 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}' 11462 else 11463 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}' 11464 fi 11465 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}' 11466 else 11467 case $cc_basename in 11468 xlc*) 11469 output_verbose_link_cmd='echo' 11470 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11471 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11473 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11474 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}' 11475 ;; 11476 *) 11477 ld_shlibs_CXX=no 11478 ;; 11479 esac 11480 fi 11481 ;; 11482 11483 dgux*) 11484 case $cc_basename in 11485 ec++*) 11486 # FIXME: insert proper C++ library support 11487 ld_shlibs_CXX=no 11488 ;; 11489 ghcx*) 11490 # Green Hills C++ Compiler 11491 # FIXME: insert proper C++ library support 11492 ld_shlibs_CXX=no 11493 ;; 11494 *) 11495 # FIXME: insert proper C++ library support 11496 ld_shlibs_CXX=no 11497 ;; 11498 esac 11499 ;; 11500 freebsd[12]*) 11501 # C++ shared libraries reported to be fairly broken before switch to ELF 11502 ld_shlibs_CXX=no 11503 ;; 11504 freebsd-elf*) 11505 archive_cmds_need_lc_CXX=no 11506 ;; 11507 freebsd* | kfreebsd*-gnu | dragonfly*) 11508 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11509 # conventions 11510 ld_shlibs_CXX=yes 11511 ;; 11512 gnu*) 11513 ;; 11514 hpux9*) 11515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11516 hardcode_libdir_separator_CXX=: 11517 export_dynamic_flag_spec_CXX='${wl}-E' 11518 hardcode_direct_CXX=yes 11519 hardcode_minus_L_CXX=yes # Not in the search PATH, 11520 # but as the default 11521 # location of the library. 11522 11523 case $cc_basename in 11524 CC*) 11525 # FIXME: insert proper C++ library support 11526 ld_shlibs_CXX=no 11527 ;; 11528 aCC*) 11529 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' 11530 # Commands to make compiler produce verbose output that lists 11531 # what "hidden" libraries, object files and flags are used when 11532 # linking a shared library. 11533 # 11534 # There doesn't appear to be a way to prevent this compiler from 11535 # explicitly linking system object files so we need to strip them 11536 # from the output so that they don't get included in the library 11537 # dependencies. 11538 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' 11539 ;; 11540 *) 11541 if test "$GXX" = yes; then 11542 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' 11543 else 11544 # FIXME: insert proper C++ library support 11545 ld_shlibs_CXX=no 11546 fi 11547 ;; 11548 esac 11549 ;; 11550 hpux10*|hpux11*) 11551 if test $with_gnu_ld = no; then 11552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11553 hardcode_libdir_separator_CXX=: 11554 11555 case $host_cpu in 11556 hppa*64*|ia64*) 11557 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11558 ;; 11559 *) 11560 export_dynamic_flag_spec_CXX='${wl}-E' 11561 ;; 11562 esac 11563 fi 11564 case $host_cpu in 11565 hppa*64*|ia64*) 11566 hardcode_direct_CXX=no 11567 hardcode_shlibpath_var_CXX=no 11568 ;; 11569 *) 11570 hardcode_direct_CXX=yes 11571 hardcode_minus_L_CXX=yes # Not in the search PATH, 11572 # but as the default 11573 # location of the library. 11574 ;; 11575 esac 11576 11577 case $cc_basename in 11578 CC*) 11579 # FIXME: insert proper C++ library support 11580 ld_shlibs_CXX=no 11581 ;; 11582 aCC*) 11583 case $host_cpu in 11584 hppa*64*) 11585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11586 ;; 11587 ia64*) 11588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11589 ;; 11590 *) 11591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11592 ;; 11593 esac 11594 # Commands to make compiler produce verbose output that lists 11595 # what "hidden" libraries, object files and flags are used when 11596 # linking a shared library. 11597 # 11598 # There doesn't appear to be a way to prevent this compiler from 11599 # explicitly linking system object files so we need to strip them 11600 # from the output so that they don't get included in the library 11601 # dependencies. 11602 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' 11603 ;; 11604 *) 11605 if test "$GXX" = yes; then 11606 if test $with_gnu_ld = no; then 11607 case $host_cpu in 11608 hppa*64*) 11609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11610 ;; 11611 ia64*) 11612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11613 ;; 11614 *) 11615 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' 11616 ;; 11617 esac 11618 fi 11619 else 11620 # FIXME: insert proper C++ library support 11621 ld_shlibs_CXX=no 11622 fi 11623 ;; 11624 esac 11625 ;; 11626 interix3*) 11627 hardcode_direct_CXX=no 11628 hardcode_shlibpath_var_CXX=no 11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11630 export_dynamic_flag_spec_CXX='${wl}-E' 11631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11632 # Instead, shared libraries are loaded at an image base (0x10000000 by 11633 # default) and relocated if they conflict, which is a slow very memory 11634 # consuming and fragmenting process. To avoid this, we pick a random, 11635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11636 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11637 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' 11638 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' 11639 ;; 11640 irix5* | irix6*) 11641 case $cc_basename in 11642 CC*) 11643 # SGI C++ 11644 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' 11645 11646 # Archives containing C++ object files must be created using 11647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11648 # necessary to make sure instantiated templates are included 11649 # in the archive. 11650 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11651 ;; 11652 *) 11653 if test "$GXX" = yes; then 11654 if test "$with_gnu_ld" = no; then 11655 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' 11656 else 11657 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' 11658 fi 11659 fi 11660 link_all_deplibs_CXX=yes 11661 ;; 11662 esac 11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11664 hardcode_libdir_separator_CXX=: 11665 ;; 11666 linux*) 11667 case $cc_basename in 11668 KCC*) 11669 # Kuck and Associates, Inc. (KAI) C++ Compiler 11670 11671 # KCC will only create a shared library if the output file 11672 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11673 # to its proper name (with version) after linking. 11674 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' 11675 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' 11676 # Commands to make compiler produce verbose output that lists 11677 # what "hidden" libraries, object files and flags are used when 11678 # linking a shared library. 11679 # 11680 # There doesn't appear to be a way to prevent this compiler from 11681 # explicitly linking system object files so we need to strip them 11682 # from the output so that they don't get included in the library 11683 # dependencies. 11684 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' 11685 11686 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11688 11689 # Archives containing C++ object files must be created using 11690 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11692 ;; 11693 icpc*) 11694 # Intel C++ 11695 with_gnu_ld=yes 11696 # version 8.0 and above of icpc choke on multiply defined symbols 11697 # if we add $predep_objects and $postdep_objects, however 7.1 and 11698 # earlier do not add the objects themselves. 11699 case `$CC -V 2>&1` in 11700 *"Version 7."*) 11701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11702 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' 11703 ;; 11704 *) # Version 8.0 or newer 11705 tmp_idyn= 11706 case $host_cpu in 11707 ia64*) tmp_idyn=' -i_dynamic';; 11708 esac 11709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11710 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' 11711 ;; 11712 esac 11713 archive_cmds_need_lc_CXX=no 11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11717 ;; 11718 pgCC*) 11719 # Portland Group C++ compiler 11720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11721 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' 11722 11723 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11725 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' 11726 ;; 11727 cxx*) 11728 # Compaq C++ 11729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11730 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' 11731 11732 runpath_var=LD_RUN_PATH 11733 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11734 hardcode_libdir_separator_CXX=: 11735 11736 # Commands to make compiler produce verbose output that lists 11737 # what "hidden" libraries, object files and flags are used when 11738 # linking a shared library. 11739 # 11740 # There doesn't appear to be a way to prevent this compiler from 11741 # explicitly linking system object files so we need to strip them 11742 # from the output so that they don't get included in the library 11743 # dependencies. 11744 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' 11745 ;; 11746 esac 11747 ;; 11748 lynxos*) 11749 # FIXME: insert proper C++ library support 11750 ld_shlibs_CXX=no 11751 ;; 11752 m88k*) 11753 # FIXME: insert proper C++ library support 11754 ld_shlibs_CXX=no 11755 ;; 11756 mvs*) 11757 case $cc_basename in 11758 cxx*) 11759 # FIXME: insert proper C++ library support 11760 ld_shlibs_CXX=no 11761 ;; 11762 *) 11763 # FIXME: insert proper C++ library support 11764 ld_shlibs_CXX=no 11765 ;; 11766 esac 11767 ;; 11768 netbsd*) 11769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11770 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11771 wlarc= 11772 hardcode_libdir_flag_spec_CXX='-R$libdir' 11773 hardcode_direct_CXX=yes 11774 hardcode_shlibpath_var_CXX=no 11775 fi 11776 # Workaround some broken pre-1.5 toolchains 11777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11778 ;; 11779 openbsd2*) 11780 # C++ shared libraries are fairly broken 11781 ld_shlibs_CXX=no 11782 ;; 11783 openbsd*) 11784 hardcode_direct_CXX=yes 11785 hardcode_shlibpath_var_CXX=no 11786 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11789 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11790 export_dynamic_flag_spec_CXX='${wl}-E' 11791 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11792 fi 11793 output_verbose_link_cmd='echo' 11794 ;; 11795 osf3*) 11796 case $cc_basename in 11797 KCC*) 11798 # Kuck and Associates, Inc. (KAI) C++ Compiler 11799 11800 # KCC will only create a shared library if the output file 11801 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11802 # to its proper name (with version) after linking. 11803 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' 11804 11805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11806 hardcode_libdir_separator_CXX=: 11807 11808 # Archives containing C++ object files must be created using 11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11811 11812 ;; 11813 RCC*) 11814 # Rational C++ 2.4.1 11815 # FIXME: insert proper C++ library support 11816 ld_shlibs_CXX=no 11817 ;; 11818 cxx*) 11819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11820 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' 11821 11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11823 hardcode_libdir_separator_CXX=: 11824 11825 # Commands to make compiler produce verbose output that lists 11826 # what "hidden" libraries, object files and flags are used when 11827 # linking a shared library. 11828 # 11829 # There doesn't appear to be a way to prevent this compiler from 11830 # explicitly linking system object files so we need to strip them 11831 # from the output so that they don't get included in the library 11832 # dependencies. 11833 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' 11834 ;; 11835 *) 11836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11838 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' 11839 11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11841 hardcode_libdir_separator_CXX=: 11842 11843 # Commands to make compiler produce verbose output that lists 11844 # what "hidden" libraries, object files and flags are used when 11845 # linking a shared library. 11846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11847 11848 else 11849 # FIXME: insert proper C++ library support 11850 ld_shlibs_CXX=no 11851 fi 11852 ;; 11853 esac 11854 ;; 11855 osf4* | osf5*) 11856 case $cc_basename in 11857 KCC*) 11858 # Kuck and Associates, Inc. (KAI) C++ Compiler 11859 11860 # KCC will only create a shared library if the output file 11861 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11862 # to its proper name (with version) after linking. 11863 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' 11864 11865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11866 hardcode_libdir_separator_CXX=: 11867 11868 # Archives containing C++ object files must be created using 11869 # the KAI C++ compiler. 11870 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11871 ;; 11872 RCC*) 11873 # Rational C++ 2.4.1 11874 # FIXME: insert proper C++ library support 11875 ld_shlibs_CXX=no 11876 ;; 11877 cxx*) 11878 allow_undefined_flag_CXX=' -expect_unresolved \*' 11879 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' 11880 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11881 echo "-hidden">> $lib.exp~ 11882 $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~ 11883 $rm $lib.exp' 11884 11885 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11886 hardcode_libdir_separator_CXX=: 11887 11888 # Commands to make compiler produce verbose output that lists 11889 # what "hidden" libraries, object files and flags are used when 11890 # linking a shared library. 11891 # 11892 # There doesn't appear to be a way to prevent this compiler from 11893 # explicitly linking system object files so we need to strip them 11894 # from the output so that they don't get included in the library 11895 # dependencies. 11896 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' 11897 ;; 11898 *) 11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11901 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' 11902 11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11904 hardcode_libdir_separator_CXX=: 11905 11906 # Commands to make compiler produce verbose output that lists 11907 # what "hidden" libraries, object files and flags are used when 11908 # linking a shared library. 11909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11910 11911 else 11912 # FIXME: insert proper C++ library support 11913 ld_shlibs_CXX=no 11914 fi 11915 ;; 11916 esac 11917 ;; 11918 psos*) 11919 # FIXME: insert proper C++ library support 11920 ld_shlibs_CXX=no 11921 ;; 11922 sunos4*) 11923 case $cc_basename in 11924 CC*) 11925 # Sun C++ 4.x 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 ;; 11929 lcc*) 11930 # Lucid 11931 # FIXME: insert proper C++ library support 11932 ld_shlibs_CXX=no 11933 ;; 11934 *) 11935 # FIXME: insert proper C++ library support 11936 ld_shlibs_CXX=no 11937 ;; 11938 esac 11939 ;; 11940 solaris*) 11941 case $cc_basename in 11942 CC*) 11943 # Sun C++ 4.2, 5.x and Centerline C++ 11944 archive_cmds_need_lc_CXX=yes 11945 no_undefined_flag_CXX=' -zdefs' 11946 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11947 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11948 $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' 11949 11950 hardcode_libdir_flag_spec_CXX='-R$libdir' 11951 hardcode_shlibpath_var_CXX=no 11952 case $host_os in 11953 solaris2.[0-5] | solaris2.[0-5].*) ;; 11954 *) 11955 # The C++ compiler is used as linker so we must use $wl 11956 # flag to pass the commands to the underlying system 11957 # linker. We must also pass each convience library through 11958 # to the system linker between allextract/defaultextract. 11959 # The C++ compiler will combine linker options so we 11960 # cannot just pass the convience library names through 11961 # without $wl. 11962 # Supported since Solaris 2.6 (maybe 2.5.1?) 11963 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11964 ;; 11965 esac 11966 link_all_deplibs_CXX=yes 11967 11968 output_verbose_link_cmd='echo' 11969 11970 # Archives containing C++ object files must be created using 11971 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11972 # necessary to make sure instantiated templates are included 11973 # in the archive. 11974 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11975 ;; 11976 gcx*) 11977 # Green Hills C++ Compiler 11978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11979 11980 # The C++ compiler must be used to create the archive. 11981 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11982 ;; 11983 *) 11984 # GNU C++ compiler with Solaris linker 11985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11986 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11987 if $CC --version | grep -v '^2\.7' > /dev/null; then 11988 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11989 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11990 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11991 11992 # Commands to make compiler produce verbose output that lists 11993 # what "hidden" libraries, object files and flags are used when 11994 # linking a shared library. 11995 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11996 else 11997 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11998 # platform. 11999 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12001 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12002 12003 # Commands to make compiler produce verbose output that lists 12004 # what "hidden" libraries, object files and flags are used when 12005 # linking a shared library. 12006 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12007 fi 12008 12009 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12010 fi 12011 ;; 12012 esac 12013 ;; 12014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12015 no_undefined_flag_CXX='${wl}-z,text' 12016 archive_cmds_need_lc_CXX=no 12017 hardcode_shlibpath_var_CXX=no 12018 runpath_var='LD_RUN_PATH' 12019 12020 case $cc_basename in 12021 CC*) 12022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12024 ;; 12025 *) 12026 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12027 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12028 ;; 12029 esac 12030 ;; 12031 sysv5* | sco3.2v5* | sco5v6*) 12032 # Note: We can NOT use -z defs as we might desire, because we do not 12033 # link with -lc, and that would cause any symbols used from libc to 12034 # always be unresolved, which means just about no library would 12035 # ever link correctly. If we're not using GNU ld we use -z text 12036 # though, which does catch some bad symbols but isn't as heavy-handed 12037 # as -z defs. 12038 # For security reasons, it is highly recommended that you always 12039 # use absolute paths for naming shared libraries, and exclude the 12040 # DT_RUNPATH tag from executables and libraries. But doing so 12041 # requires that you compile everything twice, which is a pain. 12042 # So that behaviour is only enabled if SCOABSPATH is set to a 12043 # non-empty value in the environment. Most likely only useful for 12044 # creating official distributions of packages. 12045 # This is a hack until libtool officially supports absolute path 12046 # names for shared libraries. 12047 no_undefined_flag_CXX='${wl}-z,text' 12048 allow_undefined_flag_CXX='${wl}-z,nodefs' 12049 archive_cmds_need_lc_CXX=no 12050 hardcode_shlibpath_var_CXX=no 12051 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12052 hardcode_libdir_separator_CXX=':' 12053 link_all_deplibs_CXX=yes 12054 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12055 runpath_var='LD_RUN_PATH' 12056 12057 case $cc_basename in 12058 CC*) 12059 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12060 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12061 ;; 12062 *) 12063 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12064 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12065 ;; 12066 esac 12067 ;; 12068 tandem*) 12069 case $cc_basename in 12070 NCC*) 12071 # NonStop-UX NCC 3.20 12072 # FIXME: insert proper C++ library support 12073 ld_shlibs_CXX=no 12074 ;; 12075 *) 12076 # FIXME: insert proper C++ library support 12077 ld_shlibs_CXX=no 12078 ;; 12079 esac 12080 ;; 12081 vxworks*) 12082 # FIXME: insert proper C++ library support 12083 ld_shlibs_CXX=no 12084 ;; 12085 *) 12086 # FIXME: insert proper C++ library support 12087 ld_shlibs_CXX=no 12088 ;; 12089esac 12090{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12091echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12092test "$ld_shlibs_CXX" = no && can_build_shared=no 12093 12094GCC_CXX="$GXX" 12095LD_CXX="$LD" 12096 12097 12098cat > conftest.$ac_ext <<EOF 12099class Foo 12100{ 12101public: 12102 Foo (void) { a = 0; } 12103private: 12104 int a; 12105}; 12106EOF 12107 12108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12109 (eval $ac_compile) 2>&5 12110 ac_status=$? 12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12112 (exit $ac_status); }; then 12113 # Parse the compiler output and extract the necessary 12114 # objects, libraries and library flags. 12115 12116 # Sentinel used to keep track of whether or not we are before 12117 # the conftest object file. 12118 pre_test_object_deps_done=no 12119 12120 # The `*' in the case matches for architectures that use `case' in 12121 # $output_verbose_cmd can trigger glob expansion during the loop 12122 # eval without this substitution. 12123 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12124 12125 for p in `eval $output_verbose_link_cmd`; do 12126 case $p in 12127 12128 -L* | -R* | -l*) 12129 # Some compilers place space between "-{L,R}" and the path. 12130 # Remove the space. 12131 if test $p = "-L" \ 12132 || test $p = "-R"; then 12133 prev=$p 12134 continue 12135 else 12136 prev= 12137 fi 12138 12139 if test "$pre_test_object_deps_done" = no; then 12140 case $p in 12141 -L* | -R*) 12142 # Internal compiler library paths should come after those 12143 # provided the user. The postdeps already come after the 12144 # user supplied libs so there is no need to process them. 12145 if test -z "$compiler_lib_search_path_CXX"; then 12146 compiler_lib_search_path_CXX="${prev}${p}" 12147 else 12148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12149 fi 12150 ;; 12151 # The "-l" case would never come before the object being 12152 # linked, so don't bother handling this case. 12153 esac 12154 else 12155 if test -z "$postdeps_CXX"; then 12156 postdeps_CXX="${prev}${p}" 12157 else 12158 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12159 fi 12160 fi 12161 ;; 12162 12163 *.$objext) 12164 # This assumes that the test object file only shows up 12165 # once in the compiler output. 12166 if test "$p" = "conftest.$objext"; then 12167 pre_test_object_deps_done=yes 12168 continue 12169 fi 12170 12171 if test "$pre_test_object_deps_done" = no; then 12172 if test -z "$predep_objects_CXX"; then 12173 predep_objects_CXX="$p" 12174 else 12175 predep_objects_CXX="$predep_objects_CXX $p" 12176 fi 12177 else 12178 if test -z "$postdep_objects_CXX"; then 12179 postdep_objects_CXX="$p" 12180 else 12181 postdep_objects_CXX="$postdep_objects_CXX $p" 12182 fi 12183 fi 12184 ;; 12185 12186 *) ;; # Ignore the rest. 12187 12188 esac 12189 done 12190 12191 # Clean up. 12192 rm -f a.out a.exe 12193else 12194 echo "libtool.m4: error: problem compiling CXX test program" 12195fi 12196 12197$rm -f confest.$objext 12198 12199# PORTME: override above test on systems where it is broken 12200case $host_os in 12201interix3*) 12202 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12203 # hack all around it, let's just trust "g++" to DTRT. 12204 predep_objects_CXX= 12205 postdep_objects_CXX= 12206 postdeps_CXX= 12207 ;; 12208 12209solaris*) 12210 case $cc_basename in 12211 CC*) 12212 # Adding this requires a known-good setup of shared libraries for 12213 # Sun compiler versions before 5.6, else PIC objects from an old 12214 # archive will be linked into the output, leading to subtle bugs. 12215 postdeps_CXX='-lCstd -lCrun' 12216 ;; 12217 esac 12218 ;; 12219esac 12220 12221 12222case " $postdeps_CXX " in 12223*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12224esac 12225 12226lt_prog_compiler_wl_CXX= 12227lt_prog_compiler_pic_CXX= 12228lt_prog_compiler_static_CXX= 12229 12230{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12231echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12232 12233 # C++ specific cases for pic, static, wl, etc. 12234 if test "$GXX" = yes; then 12235 lt_prog_compiler_wl_CXX='-Wl,' 12236 lt_prog_compiler_static_CXX='-static' 12237 12238 case $host_os in 12239 aix*) 12240 # All AIX code is PIC. 12241 if test "$host_cpu" = ia64; then 12242 # AIX 5 now supports IA64 processor 12243 lt_prog_compiler_static_CXX='-Bstatic' 12244 fi 12245 ;; 12246 amigaos*) 12247 # FIXME: we need at least 68020 code to build shared libraries, but 12248 # adding the `-m68020' flag to GCC prevents building anything better, 12249 # like `-m68040'. 12250 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12251 ;; 12252 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12253 # PIC is the default for these OSes. 12254 ;; 12255 mingw* | os2* | pw32*) 12256 # This hack is so that the source file can tell whether it is being 12257 # built for inclusion in a dll (and should export symbols for example). 12258 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12259 ;; 12260 darwin* | rhapsody*) 12261 # PIC is the default on this platform 12262 # Common symbols not allowed in MH_DYLIB files 12263 lt_prog_compiler_pic_CXX='-fno-common' 12264 ;; 12265 *djgpp*) 12266 # DJGPP does not support shared libraries at all 12267 lt_prog_compiler_pic_CXX= 12268 ;; 12269 interix3*) 12270 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12271 # Instead, we relocate shared libraries at runtime. 12272 ;; 12273 sysv4*MP*) 12274 if test -d /usr/nec; then 12275 lt_prog_compiler_pic_CXX=-Kconform_pic 12276 fi 12277 ;; 12278 hpux*) 12279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12280 # not for PA HP-UX. 12281 case $host_cpu in 12282 hppa*64*|ia64*) 12283 ;; 12284 *) 12285 lt_prog_compiler_pic_CXX='-fPIC' 12286 ;; 12287 esac 12288 ;; 12289 *) 12290 lt_prog_compiler_pic_CXX='-fPIC' 12291 ;; 12292 esac 12293 else 12294 case $host_os in 12295 aix4* | aix5*) 12296 # All AIX code is PIC. 12297 if test "$host_cpu" = ia64; then 12298 # AIX 5 now supports IA64 processor 12299 lt_prog_compiler_static_CXX='-Bstatic' 12300 else 12301 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12302 fi 12303 ;; 12304 chorus*) 12305 case $cc_basename in 12306 cxch68*) 12307 # Green Hills C++ Compiler 12308 # _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" 12309 ;; 12310 esac 12311 ;; 12312 darwin*) 12313 # PIC is the default on this platform 12314 # Common symbols not allowed in MH_DYLIB files 12315 case $cc_basename in 12316 xlc*) 12317 lt_prog_compiler_pic_CXX='-qnocommon' 12318 lt_prog_compiler_wl_CXX='-Wl,' 12319 ;; 12320 esac 12321 ;; 12322 dgux*) 12323 case $cc_basename in 12324 ec++*) 12325 lt_prog_compiler_pic_CXX='-KPIC' 12326 ;; 12327 ghcx*) 12328 # Green Hills C++ Compiler 12329 lt_prog_compiler_pic_CXX='-pic' 12330 ;; 12331 *) 12332 ;; 12333 esac 12334 ;; 12335 freebsd* | kfreebsd*-gnu | dragonfly*) 12336 # FreeBSD uses GNU C++ 12337 ;; 12338 hpux9* | hpux10* | hpux11*) 12339 case $cc_basename in 12340 CC*) 12341 lt_prog_compiler_wl_CXX='-Wl,' 12342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12343 if test "$host_cpu" != ia64; then 12344 lt_prog_compiler_pic_CXX='+Z' 12345 fi 12346 ;; 12347 aCC*) 12348 lt_prog_compiler_wl_CXX='-Wl,' 12349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12350 case $host_cpu in 12351 hppa*64*|ia64*) 12352 # +Z the default 12353 ;; 12354 *) 12355 lt_prog_compiler_pic_CXX='+Z' 12356 ;; 12357 esac 12358 ;; 12359 *) 12360 ;; 12361 esac 12362 ;; 12363 interix*) 12364 # This is c89, which is MS Visual C++ (no shared libs) 12365 # Anyone wants to do a port? 12366 ;; 12367 irix5* | irix6* | nonstopux*) 12368 case $cc_basename in 12369 CC*) 12370 lt_prog_compiler_wl_CXX='-Wl,' 12371 lt_prog_compiler_static_CXX='-non_shared' 12372 # CC pic flag -KPIC is the default. 12373 ;; 12374 *) 12375 ;; 12376 esac 12377 ;; 12378 linux*) 12379 case $cc_basename in 12380 KCC*) 12381 # KAI C++ Compiler 12382 lt_prog_compiler_wl_CXX='--backend -Wl,' 12383 lt_prog_compiler_pic_CXX='-fPIC' 12384 ;; 12385 icpc* | ecpc*) 12386 # Intel C++ 12387 lt_prog_compiler_wl_CXX='-Wl,' 12388 lt_prog_compiler_pic_CXX='-KPIC' 12389 lt_prog_compiler_static_CXX='-static' 12390 ;; 12391 pgCC*) 12392 # Portland Group C++ compiler. 12393 lt_prog_compiler_wl_CXX='-Wl,' 12394 lt_prog_compiler_pic_CXX='-fpic' 12395 lt_prog_compiler_static_CXX='-Bstatic' 12396 ;; 12397 cxx*) 12398 # Compaq C++ 12399 # Make sure the PIC flag is empty. It appears that all Alpha 12400 # Linux and Compaq Tru64 Unix objects are PIC. 12401 lt_prog_compiler_pic_CXX= 12402 lt_prog_compiler_static_CXX='-non_shared' 12403 ;; 12404 *) 12405 ;; 12406 esac 12407 ;; 12408 lynxos*) 12409 ;; 12410 m88k*) 12411 ;; 12412 mvs*) 12413 case $cc_basename in 12414 cxx*) 12415 lt_prog_compiler_pic_CXX='-W c,exportall' 12416 ;; 12417 *) 12418 ;; 12419 esac 12420 ;; 12421 netbsd*) 12422 ;; 12423 osf3* | osf4* | osf5*) 12424 case $cc_basename in 12425 KCC*) 12426 lt_prog_compiler_wl_CXX='--backend -Wl,' 12427 ;; 12428 RCC*) 12429 # Rational C++ 2.4.1 12430 lt_prog_compiler_pic_CXX='-pic' 12431 ;; 12432 cxx*) 12433 # Digital/Compaq C++ 12434 lt_prog_compiler_wl_CXX='-Wl,' 12435 # Make sure the PIC flag is empty. It appears that all Alpha 12436 # Linux and Compaq Tru64 Unix objects are PIC. 12437 lt_prog_compiler_pic_CXX= 12438 lt_prog_compiler_static_CXX='-non_shared' 12439 ;; 12440 *) 12441 ;; 12442 esac 12443 ;; 12444 psos*) 12445 ;; 12446 solaris*) 12447 case $cc_basename in 12448 CC*) 12449 # Sun C++ 4.2, 5.x and Centerline C++ 12450 lt_prog_compiler_pic_CXX='-KPIC' 12451 lt_prog_compiler_static_CXX='-Bstatic' 12452 lt_prog_compiler_wl_CXX='-Qoption ld ' 12453 ;; 12454 gcx*) 12455 # Green Hills C++ Compiler 12456 lt_prog_compiler_pic_CXX='-PIC' 12457 ;; 12458 *) 12459 ;; 12460 esac 12461 ;; 12462 sunos4*) 12463 case $cc_basename in 12464 CC*) 12465 # Sun C++ 4.x 12466 lt_prog_compiler_pic_CXX='-pic' 12467 lt_prog_compiler_static_CXX='-Bstatic' 12468 ;; 12469 lcc*) 12470 # Lucid 12471 lt_prog_compiler_pic_CXX='-pic' 12472 ;; 12473 *) 12474 ;; 12475 esac 12476 ;; 12477 tandem*) 12478 case $cc_basename in 12479 NCC*) 12480 # NonStop-UX NCC 3.20 12481 lt_prog_compiler_pic_CXX='-KPIC' 12482 ;; 12483 *) 12484 ;; 12485 esac 12486 ;; 12487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12488 case $cc_basename in 12489 CC*) 12490 lt_prog_compiler_wl_CXX='-Wl,' 12491 lt_prog_compiler_pic_CXX='-KPIC' 12492 lt_prog_compiler_static_CXX='-Bstatic' 12493 ;; 12494 esac 12495 ;; 12496 vxworks*) 12497 ;; 12498 *) 12499 lt_prog_compiler_can_build_shared_CXX=no 12500 ;; 12501 esac 12502 fi 12503 12504{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12505echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12506 12507# 12508# Check to make sure the PIC flag actually works. 12509# 12510if test -n "$lt_prog_compiler_pic_CXX"; then 12511 12512{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12513echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12514if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12515 echo $ECHO_N "(cached) $ECHO_C" >&6 12516else 12517 lt_prog_compiler_pic_works_CXX=no 12518 ac_outfile=conftest.$ac_objext 12519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12521 # Insert the option either (1) after the last *FLAGS variable, or 12522 # (2) before a word containing "conftest.", or (3) at the end. 12523 # Note that $ac_compile itself does not contain backslashes and begins 12524 # with a dollar sign (not a hyphen), so the echo should work correctly. 12525 # The option is referenced via a variable to avoid confusing sed. 12526 lt_compile=`echo "$ac_compile" | $SED \ 12527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12529 -e 's:$: $lt_compiler_flag:'` 12530 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5) 12531 (eval "$lt_compile" 2>conftest.err) 12532 ac_status=$? 12533 cat conftest.err >&5 12534 echo "$as_me:12534: \$? = $ac_status" >&5 12535 if (exit $ac_status) && test -s "$ac_outfile"; then 12536 # The compiler can only warn and ignore the option if not recognized 12537 # So say no if there are warnings other than the usual output. 12538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12541 lt_prog_compiler_pic_works_CXX=yes 12542 fi 12543 fi 12544 $rm conftest* 12545 12546fi 12547{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12548echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12549 12550if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12551 case $lt_prog_compiler_pic_CXX in 12552 "" | " "*) ;; 12553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12554 esac 12555else 12556 lt_prog_compiler_pic_CXX= 12557 lt_prog_compiler_can_build_shared_CXX=no 12558fi 12559 12560fi 12561case $host_os in 12562 # For platforms which do not support PIC, -DPIC is meaningless: 12563 *djgpp*) 12564 lt_prog_compiler_pic_CXX= 12565 ;; 12566 *) 12567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12568 ;; 12569esac 12570 12571# 12572# Check to make sure the static flag actually works. 12573# 12574wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12575{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12576echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12577if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12578 echo $ECHO_N "(cached) $ECHO_C" >&6 12579else 12580 lt_prog_compiler_static_works_CXX=no 12581 save_LDFLAGS="$LDFLAGS" 12582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12583 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12585 # The linker can only warn and ignore the option if not recognized 12586 # So say no if there are warnings 12587 if test -s conftest.err; then 12588 # Append any errors to the config.log. 12589 cat conftest.err 1>&5 12590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12592 if diff conftest.exp conftest.er2 >/dev/null; then 12593 lt_prog_compiler_static_works_CXX=yes 12594 fi 12595 else 12596 lt_prog_compiler_static_works_CXX=yes 12597 fi 12598 fi 12599 $rm conftest* 12600 LDFLAGS="$save_LDFLAGS" 12601 12602fi 12603{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12604echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12605 12606if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12607 : 12608else 12609 lt_prog_compiler_static_CXX= 12610fi 12611 12612 12613{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12614echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12615if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12616 echo $ECHO_N "(cached) $ECHO_C" >&6 12617else 12618 lt_cv_prog_compiler_c_o_CXX=no 12619 $rm -r conftest 2>/dev/null 12620 mkdir conftest 12621 cd conftest 12622 mkdir out 12623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12624 12625 lt_compiler_flag="-o out/conftest2.$ac_objext" 12626 # Insert the option either (1) after the last *FLAGS variable, or 12627 # (2) before a word containing "conftest.", or (3) at the end. 12628 # Note that $ac_compile itself does not contain backslashes and begins 12629 # with a dollar sign (not a hyphen), so the echo should work correctly. 12630 lt_compile=`echo "$ac_compile" | $SED \ 12631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12633 -e 's:$: $lt_compiler_flag:'` 12634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5) 12635 (eval "$lt_compile" 2>out/conftest.err) 12636 ac_status=$? 12637 cat out/conftest.err >&5 12638 echo "$as_me:12638: \$? = $ac_status" >&5 12639 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12640 then 12641 # The compiler can only warn and ignore the option if not recognized 12642 # So say no if there are warnings 12643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12646 lt_cv_prog_compiler_c_o_CXX=yes 12647 fi 12648 fi 12649 chmod u+w . 2>&5 12650 $rm conftest* 12651 # SGI C++ compiler will create directory out/ii_files/ for 12652 # template instantiation 12653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12654 $rm out/* && rmdir out 12655 cd .. 12656 rmdir conftest 12657 $rm conftest* 12658 12659fi 12660{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12661echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12662 12663 12664hard_links="nottested" 12665if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12666 # do not overwrite the value of need_locks provided by the user 12667 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12668echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12669 hard_links=yes 12670 $rm conftest* 12671 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12672 touch conftest.a 12673 ln conftest.a conftest.b 2>&5 || hard_links=no 12674 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12675 { echo "$as_me:$LINENO: result: $hard_links" >&5 12676echo "${ECHO_T}$hard_links" >&6; } 12677 if test "$hard_links" = no; then 12678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12679echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12680 need_locks=warn 12681 fi 12682else 12683 need_locks=no 12684fi 12685 12686{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12687echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12688 12689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12690 case $host_os in 12691 aix4* | aix5*) 12692 # If we're using GNU nm, then we don't want the "-C" option. 12693 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12695 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' 12696 else 12697 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' 12698 fi 12699 ;; 12700 pw32*) 12701 export_symbols_cmds_CXX="$ltdll_cmds" 12702 ;; 12703 cygwin* | mingw*) 12704 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' 12705 ;; 12706 *) 12707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12708 ;; 12709 esac 12710 12711{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12712echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12713test "$ld_shlibs_CXX" = no && can_build_shared=no 12714 12715# 12716# Do we need to explicitly link libc? 12717# 12718case "x$archive_cmds_need_lc_CXX" in 12719x|xyes) 12720 # Assume -lc should be added 12721 archive_cmds_need_lc_CXX=yes 12722 12723 if test "$enable_shared" = yes && test "$GCC" = yes; then 12724 case $archive_cmds_CXX in 12725 *'~'*) 12726 # FIXME: we may have to deal with multi-command sequences. 12727 ;; 12728 '$CC '*) 12729 # Test whether the compiler implicitly links with -lc since on some 12730 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12731 # to ld, don't add -lc before -lgcc. 12732 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12733echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12734 $rm conftest* 12735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12736 12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12738 (eval $ac_compile) 2>&5 12739 ac_status=$? 12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12741 (exit $ac_status); } 2>conftest.err; then 12742 soname=conftest 12743 lib=conftest 12744 libobjs=conftest.$ac_objext 12745 deplibs= 12746 wl=$lt_prog_compiler_wl_CXX 12747 pic_flag=$lt_prog_compiler_pic_CXX 12748 compiler_flags=-v 12749 linker_flags=-v 12750 verstring= 12751 output_objdir=. 12752 libname=conftest 12753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12754 allow_undefined_flag_CXX= 12755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12757 ac_status=$? 12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12759 (exit $ac_status); } 12760 then 12761 archive_cmds_need_lc_CXX=no 12762 else 12763 archive_cmds_need_lc_CXX=yes 12764 fi 12765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12766 else 12767 cat conftest.err 1>&5 12768 fi 12769 $rm conftest* 12770 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12771echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12772 ;; 12773 esac 12774 fi 12775 ;; 12776esac 12777 12778{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12779echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12780library_names_spec= 12781libname_spec='lib$name' 12782soname_spec= 12783shrext_cmds=".so" 12784postinstall_cmds= 12785postuninstall_cmds= 12786finish_cmds= 12787finish_eval= 12788shlibpath_var= 12789shlibpath_overrides_runpath=unknown 12790version_type=none 12791dynamic_linker="$host_os ld.so" 12792sys_lib_dlsearch_path_spec="/lib /usr/lib" 12793if test "$GCC" = yes; then 12794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12796 # if the path contains ";" then we assume it to be the separator 12797 # otherwise default to the standard path separator (i.e. ":") - it is 12798 # assumed that no part of a normal pathname contains ";" but that should 12799 # okay in the real world where ";" in dirpaths is itself problematic. 12800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12801 else 12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12803 fi 12804else 12805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12806fi 12807need_lib_prefix=unknown 12808hardcode_into_libs=no 12809 12810# when you set need_version to no, make sure it does not cause -set_version 12811# flags to be left without arguments 12812need_version=unknown 12813 12814case $host_os in 12815aix3*) 12816 version_type=linux 12817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12818 shlibpath_var=LIBPATH 12819 12820 # AIX 3 has no versioning support, so we append a major version to the name. 12821 soname_spec='${libname}${release}${shared_ext}$major' 12822 ;; 12823 12824aix4* | aix5*) 12825 version_type=linux 12826 need_lib_prefix=no 12827 need_version=no 12828 hardcode_into_libs=yes 12829 if test "$host_cpu" = ia64; then 12830 # AIX 5 supports IA64 12831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12832 shlibpath_var=LD_LIBRARY_PATH 12833 else 12834 # With GCC up to 2.95.x, collect2 would create an import file 12835 # for dependence libraries. The import file would start with 12836 # the line `#! .'. This would cause the generated library to 12837 # depend on `.', always an invalid library. This was fixed in 12838 # development snapshots of GCC prior to 3.0. 12839 case $host_os in 12840 aix4 | aix4.[01] | aix4.[01].*) 12841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12842 echo ' yes ' 12843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12844 : 12845 else 12846 can_build_shared=no 12847 fi 12848 ;; 12849 esac 12850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12851 # soname into executable. Probably we can add versioning support to 12852 # collect2, so additional links can be useful in future. 12853 if test "$aix_use_runtimelinking" = yes; then 12854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12855 # instead of lib<name>.a to let people know that these are not 12856 # typical AIX shared libraries. 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12858 else 12859 # We preserve .a as extension for shared libraries through AIX4.2 12860 # and later when we are not doing run time linking. 12861 library_names_spec='${libname}${release}.a $libname.a' 12862 soname_spec='${libname}${release}${shared_ext}$major' 12863 fi 12864 shlibpath_var=LIBPATH 12865 fi 12866 ;; 12867 12868amigaos*) 12869 library_names_spec='$libname.ixlibrary $libname.a' 12870 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12871 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' 12872 ;; 12873 12874beos*) 12875 library_names_spec='${libname}${shared_ext}' 12876 dynamic_linker="$host_os ld.so" 12877 shlibpath_var=LIBRARY_PATH 12878 ;; 12879 12880bsdi[45]*) 12881 version_type=linux 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12886 shlibpath_var=LD_LIBRARY_PATH 12887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12889 # the default ld.so.conf also contains /usr/contrib/lib and 12890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12891 # libtool to hard-code these into programs 12892 ;; 12893 12894cygwin* | mingw* | pw32*) 12895 version_type=windows 12896 shrext_cmds=".dll" 12897 need_version=no 12898 need_lib_prefix=no 12899 12900 case $GCC,$host_os in 12901 yes,cygwin* | yes,mingw* | yes,pw32*) 12902 library_names_spec='$libname.dll.a' 12903 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12904 postinstall_cmds='base_file=`basename \${file}`~ 12905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12906 dldir=$destdir/`dirname \$dlpath`~ 12907 test -d \$dldir || mkdir -p \$dldir~ 12908 $install_prog $dir/$dlname \$dldir/$dlname~ 12909 chmod a+x \$dldir/$dlname' 12910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12911 dlpath=$dir/\$dldll~ 12912 $rm \$dlpath' 12913 shlibpath_overrides_runpath=yes 12914 12915 case $host_os in 12916 cygwin*) 12917 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12920 ;; 12921 mingw*) 12922 # MinGW DLLs use traditional 'lib' prefix 12923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12925 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12926 # It is most probably a Windows format PATH printed by 12927 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12928 # path with ; separators, and with drive letters. We can handle the 12929 # drive letters (cygwin fileutils understands them), so leave them, 12930 # especially as we might pass files found there to a mingw objdump, 12931 # which wouldn't understand a cygwinified path. Ahh. 12932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12933 else 12934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12935 fi 12936 ;; 12937 pw32*) 12938 # pw32 DLLs use 'pw' prefix rather than 'lib' 12939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12940 ;; 12941 esac 12942 ;; 12943 12944 linux*) 12945 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 12946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12947 supports_anon_versioning=no 12948 case `$LD -v 2>/dev/null` in 12949 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12952 *\ 2.11.*) ;; # other 2.11 versions 12953 *) supports_anon_versioning=yes ;; 12954 esac 12955 if test $supports_anon_versioning = yes; then 12956 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 12957cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12958$echo "local: *; };" >> $output_objdir/$libname.ver~ 12959 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12960 else 12961 $archive_expsym_cmds="$archive_cmds" 12962 fi 12963 else 12964 ld_shlibs=no 12965 fi 12966 ;; 12967 12968 *) 12969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12970 ;; 12971 esac 12972 dynamic_linker='Win32 ld.exe' 12973 # FIXME: first we should search . and the directory the executable is in 12974 shlibpath_var=PATH 12975 ;; 12976 12977darwin* | rhapsody*) 12978 dynamic_linker="$host_os dyld" 12979 version_type=darwin 12980 need_lib_prefix=no 12981 need_version=no 12982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12983 soname_spec='${libname}${release}${major}$shared_ext' 12984 shlibpath_overrides_runpath=yes 12985 shlibpath_var=DYLD_LIBRARY_PATH 12986 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12988 if test "$GCC" = yes; then 12989 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12990 else 12991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12992 fi 12993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12994 ;; 12995 12996dgux*) 12997 version_type=linux 12998 need_lib_prefix=no 12999 need_version=no 13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13001 soname_spec='${libname}${release}${shared_ext}$major' 13002 shlibpath_var=LD_LIBRARY_PATH 13003 ;; 13004 13005freebsd1*) 13006 dynamic_linker=no 13007 ;; 13008 13009kfreebsd*-gnu) 13010 version_type=linux 13011 need_lib_prefix=no 13012 need_version=no 13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13014 soname_spec='${libname}${release}${shared_ext}$major' 13015 shlibpath_var=LD_LIBRARY_PATH 13016 shlibpath_overrides_runpath=no 13017 hardcode_into_libs=yes 13018 dynamic_linker='GNU ld.so' 13019 ;; 13020 13021freebsd* | dragonfly*) 13022 # DragonFly does not have aout. When/if they implement a new 13023 # versioning mechanism, adjust this. 13024 if test -x /usr/bin/objformat; then 13025 objformat=`/usr/bin/objformat` 13026 else 13027 case $host_os in 13028 freebsd[123]*) objformat=aout ;; 13029 *) objformat=elf ;; 13030 esac 13031 fi 13032 # Handle Gentoo/FreeBSD as it was Linux 13033 case $host_vendor in 13034 gentoo) 13035 version_type=linux ;; 13036 *) 13037 version_type=freebsd-$objformat ;; 13038 esac 13039 13040 case $version_type in 13041 freebsd-elf*) 13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13043 need_version=no 13044 need_lib_prefix=no 13045 ;; 13046 freebsd-*) 13047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13048 need_version=yes 13049 ;; 13050 linux) 13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13052 soname_spec='${libname}${release}${shared_ext}$major' 13053 need_lib_prefix=no 13054 need_version=no 13055 ;; 13056 esac 13057 shlibpath_var=LD_LIBRARY_PATH 13058 case $host_os in 13059 freebsd2*) 13060 shlibpath_overrides_runpath=yes 13061 ;; 13062 freebsd3.[01]* | freebsdelf3.[01]*) 13063 shlibpath_overrides_runpath=yes 13064 hardcode_into_libs=yes 13065 ;; 13066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13068 shlibpath_overrides_runpath=no 13069 hardcode_into_libs=yes 13070 ;; 13071 freebsd*) # from 4.6 on 13072 shlibpath_overrides_runpath=yes 13073 hardcode_into_libs=yes 13074 ;; 13075 esac 13076 ;; 13077 13078gnu*) 13079 version_type=linux 13080 need_lib_prefix=no 13081 need_version=no 13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13083 soname_spec='${libname}${release}${shared_ext}$major' 13084 shlibpath_var=LD_LIBRARY_PATH 13085 hardcode_into_libs=yes 13086 ;; 13087 13088hpux9* | hpux10* | hpux11*) 13089 # Give a soname corresponding to the major version so that dld.sl refuses to 13090 # link against other versions. 13091 version_type=sunos 13092 need_lib_prefix=no 13093 need_version=no 13094 case $host_cpu in 13095 ia64*) 13096 shrext_cmds='.so' 13097 hardcode_into_libs=yes 13098 dynamic_linker="$host_os dld.so" 13099 shlibpath_var=LD_LIBRARY_PATH 13100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13102 soname_spec='${libname}${release}${shared_ext}$major' 13103 if test "X$HPUX_IA64_MODE" = X32; then 13104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13105 else 13106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13107 fi 13108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13109 ;; 13110 hppa*64*) 13111 shrext_cmds='.sl' 13112 hardcode_into_libs=yes 13113 dynamic_linker="$host_os dld.sl" 13114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13117 soname_spec='${libname}${release}${shared_ext}$major' 13118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13120 ;; 13121 *) 13122 shrext_cmds='.sl' 13123 dynamic_linker="$host_os dld.sl" 13124 shlibpath_var=SHLIB_PATH 13125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13127 soname_spec='${libname}${release}${shared_ext}$major' 13128 ;; 13129 esac 13130 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13131 postinstall_cmds='chmod 555 $lib' 13132 ;; 13133 13134interix3*) 13135 version_type=linux 13136 need_lib_prefix=no 13137 need_version=no 13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13139 soname_spec='${libname}${release}${shared_ext}$major' 13140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13141 shlibpath_var=LD_LIBRARY_PATH 13142 shlibpath_overrides_runpath=no 13143 hardcode_into_libs=yes 13144 ;; 13145 13146irix5* | irix6* | nonstopux*) 13147 case $host_os in 13148 nonstopux*) version_type=nonstopux ;; 13149 *) 13150 if test "$lt_cv_prog_gnu_ld" = yes; then 13151 version_type=linux 13152 else 13153 version_type=irix 13154 fi ;; 13155 esac 13156 need_lib_prefix=no 13157 need_version=no 13158 soname_spec='${libname}${release}${shared_ext}$major' 13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13160 case $host_os in 13161 irix5* | nonstopux*) 13162 libsuff= shlibsuff= 13163 ;; 13164 *) 13165 case $LD in # libtool.m4 will add one of these switches to LD 13166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13167 libsuff= shlibsuff= libmagic=32-bit;; 13168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13169 libsuff=32 shlibsuff=N32 libmagic=N32;; 13170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13171 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13172 *) libsuff= shlibsuff= libmagic=never-match;; 13173 esac 13174 ;; 13175 esac 13176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13177 shlibpath_overrides_runpath=no 13178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13180 hardcode_into_libs=yes 13181 ;; 13182 13183# No shared lib support for Linux oldld, aout, or coff. 13184linux*oldld* | linux*aout* | linux*coff*) 13185 dynamic_linker=no 13186 ;; 13187 13188# This must be Linux ELF. 13189linux*) 13190 version_type=linux 13191 need_lib_prefix=no 13192 need_version=no 13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13194 soname_spec='${libname}${release}${shared_ext}$major' 13195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13196 shlibpath_var=LD_LIBRARY_PATH 13197 shlibpath_overrides_runpath=no 13198 # This implies no fast_install, which is unacceptable. 13199 # Some rework will be needed to allow for fast_install 13200 # before this can be enabled. 13201 hardcode_into_libs=yes 13202 13203 # Append ld.so.conf contents to the search path 13204 if test -f /etc/ld.so.conf; then 13205 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13207 fi 13208 13209 # We used to test for /lib/ld.so.1 and disable shared libraries on 13210 # powerpc, because MkLinux only supported shared libraries with the 13211 # GNU dynamic linker. Since this was broken with cross compilers, 13212 # most powerpc-linux boxes support dynamic linking these days and 13213 # people can always --disable-shared, the test was removed, and we 13214 # assume the GNU/Linux dynamic linker is in use. 13215 dynamic_linker='GNU/Linux ld.so' 13216 ;; 13217 13218knetbsd*-gnu) 13219 version_type=linux 13220 need_lib_prefix=no 13221 need_version=no 13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13223 soname_spec='${libname}${release}${shared_ext}$major' 13224 shlibpath_var=LD_LIBRARY_PATH 13225 shlibpath_overrides_runpath=no 13226 hardcode_into_libs=yes 13227 dynamic_linker='GNU ld.so' 13228 ;; 13229 13230netbsd*) 13231 version_type=sunos 13232 need_lib_prefix=no 13233 need_version=no 13234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13237 dynamic_linker='NetBSD (a.out) ld.so' 13238 else 13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13240 soname_spec='${libname}${release}${shared_ext}$major' 13241 dynamic_linker='NetBSD ld.elf_so' 13242 fi 13243 shlibpath_var=LD_LIBRARY_PATH 13244 shlibpath_overrides_runpath=yes 13245 hardcode_into_libs=yes 13246 ;; 13247 13248newsos6) 13249 version_type=linux 13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13251 shlibpath_var=LD_LIBRARY_PATH 13252 shlibpath_overrides_runpath=yes 13253 ;; 13254 13255nto-qnx*) 13256 version_type=linux 13257 need_lib_prefix=no 13258 need_version=no 13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13260 soname_spec='${libname}${release}${shared_ext}$major' 13261 shlibpath_var=LD_LIBRARY_PATH 13262 shlibpath_overrides_runpath=yes 13263 ;; 13264 13265openbsd*) 13266 version_type=sunos 13267 sys_lib_dlsearch_path_spec="/usr/lib" 13268 need_lib_prefix=no 13269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13270 case $host_os in 13271 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13272 *) need_version=no ;; 13273 esac 13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13276 shlibpath_var=LD_LIBRARY_PATH 13277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13278 case $host_os in 13279 openbsd2.[89] | openbsd2.[89].*) 13280 shlibpath_overrides_runpath=no 13281 ;; 13282 *) 13283 shlibpath_overrides_runpath=yes 13284 ;; 13285 esac 13286 else 13287 shlibpath_overrides_runpath=yes 13288 fi 13289 ;; 13290 13291os2*) 13292 libname_spec='$name' 13293 shrext_cmds=".dll" 13294 need_lib_prefix=no 13295 library_names_spec='$libname${shared_ext} $libname.a' 13296 dynamic_linker='OS/2 ld.exe' 13297 shlibpath_var=LIBPATH 13298 ;; 13299 13300osf3* | osf4* | osf5*) 13301 version_type=osf 13302 need_lib_prefix=no 13303 need_version=no 13304 soname_spec='${libname}${release}${shared_ext}$major' 13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13306 shlibpath_var=LD_LIBRARY_PATH 13307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13309 ;; 13310 13311solaris*) 13312 version_type=linux 13313 need_lib_prefix=no 13314 need_version=no 13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13316 soname_spec='${libname}${release}${shared_ext}$major' 13317 shlibpath_var=LD_LIBRARY_PATH 13318 shlibpath_overrides_runpath=yes 13319 hardcode_into_libs=yes 13320 # ldd complains unless libraries are executable 13321 postinstall_cmds='chmod +x $lib' 13322 ;; 13323 13324sunos4*) 13325 version_type=sunos 13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13328 shlibpath_var=LD_LIBRARY_PATH 13329 shlibpath_overrides_runpath=yes 13330 if test "$with_gnu_ld" = yes; then 13331 need_lib_prefix=no 13332 fi 13333 need_version=yes 13334 ;; 13335 13336sysv4 | sysv4.3*) 13337 version_type=linux 13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13339 soname_spec='${libname}${release}${shared_ext}$major' 13340 shlibpath_var=LD_LIBRARY_PATH 13341 case $host_vendor in 13342 sni) 13343 shlibpath_overrides_runpath=no 13344 need_lib_prefix=no 13345 export_dynamic_flag_spec='${wl}-Blargedynsym' 13346 runpath_var=LD_RUN_PATH 13347 ;; 13348 siemens) 13349 need_lib_prefix=no 13350 ;; 13351 motorola) 13352 need_lib_prefix=no 13353 need_version=no 13354 shlibpath_overrides_runpath=no 13355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13356 ;; 13357 esac 13358 ;; 13359 13360sysv4*MP*) 13361 if test -d /usr/nec ;then 13362 version_type=linux 13363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13364 soname_spec='$libname${shared_ext}.$major' 13365 shlibpath_var=LD_LIBRARY_PATH 13366 fi 13367 ;; 13368 13369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13370 version_type=freebsd-elf 13371 need_lib_prefix=no 13372 need_version=no 13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13374 soname_spec='${libname}${release}${shared_ext}$major' 13375 shlibpath_var=LD_LIBRARY_PATH 13376 hardcode_into_libs=yes 13377 if test "$with_gnu_ld" = yes; then 13378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13379 shlibpath_overrides_runpath=no 13380 else 13381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13382 shlibpath_overrides_runpath=yes 13383 case $host_os in 13384 sco3.2v5*) 13385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13386 ;; 13387 esac 13388 fi 13389 sys_lib_dlsearch_path_spec='/usr/lib' 13390 ;; 13391 13392uts4*) 13393 version_type=linux 13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13395 soname_spec='${libname}${release}${shared_ext}$major' 13396 shlibpath_var=LD_LIBRARY_PATH 13397 ;; 13398 13399*) 13400 dynamic_linker=no 13401 ;; 13402esac 13403{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13404echo "${ECHO_T}$dynamic_linker" >&6; } 13405test "$dynamic_linker" = no && can_build_shared=no 13406 13407variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13408if test "$GCC" = yes; then 13409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13410fi 13411 13412{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13413echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13414hardcode_action_CXX= 13415if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13416 test -n "$runpath_var_CXX" || \ 13417 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13418 13419 # We can hardcode non-existant directories. 13420 if test "$hardcode_direct_CXX" != no && 13421 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13422 # have to relink, otherwise we might link with an installed library 13423 # when we should be linking with a yet-to-be-installed one 13424 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13425 test "$hardcode_minus_L_CXX" != no; then 13426 # Linking always hardcodes the temporary library directory. 13427 hardcode_action_CXX=relink 13428 else 13429 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13430 hardcode_action_CXX=immediate 13431 fi 13432else 13433 # We cannot hardcode anything, or else we can only hardcode existing 13434 # directories. 13435 hardcode_action_CXX=unsupported 13436fi 13437{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13438echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13439 13440if test "$hardcode_action_CXX" = relink; then 13441 # Fast installation is not supported 13442 enable_fast_install=no 13443elif test "$shlibpath_overrides_runpath" = yes || 13444 test "$enable_shared" = no; then 13445 # Fast installation is not necessary 13446 enable_fast_install=needless 13447fi 13448 13449 13450# The else clause should only fire when bootstrapping the 13451# libtool distribution, otherwise you forgot to ship ltmain.sh 13452# with your package, and you will get complaints that there are 13453# no rules to generate ltmain.sh. 13454if test -f "$ltmain"; then 13455 # See if we are running on zsh, and set the options which allow our commands through 13456 # without removal of \ escapes. 13457 if test -n "${ZSH_VERSION+set}" ; then 13458 setopt NO_GLOB_SUBST 13459 fi 13460 # Now quote all the things that may contain metacharacters while being 13461 # careful not to overquote the AC_SUBSTed values. We take copies of the 13462 # variables and quote the copies for generation of the libtool script. 13463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13464 SED SHELL STRIP \ 13465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13467 deplibs_check_method reload_flag reload_cmds need_locks \ 13468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13469 lt_cv_sys_global_symbol_to_c_name_address \ 13470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13471 old_postinstall_cmds old_postuninstall_cmds \ 13472 compiler_CXX \ 13473 CC_CXX \ 13474 LD_CXX \ 13475 lt_prog_compiler_wl_CXX \ 13476 lt_prog_compiler_pic_CXX \ 13477 lt_prog_compiler_static_CXX \ 13478 lt_prog_compiler_no_builtin_flag_CXX \ 13479 export_dynamic_flag_spec_CXX \ 13480 thread_safe_flag_spec_CXX \ 13481 whole_archive_flag_spec_CXX \ 13482 enable_shared_with_static_runtimes_CXX \ 13483 old_archive_cmds_CXX \ 13484 old_archive_from_new_cmds_CXX \ 13485 predep_objects_CXX \ 13486 postdep_objects_CXX \ 13487 predeps_CXX \ 13488 postdeps_CXX \ 13489 compiler_lib_search_path_CXX \ 13490 archive_cmds_CXX \ 13491 archive_expsym_cmds_CXX \ 13492 postinstall_cmds_CXX \ 13493 postuninstall_cmds_CXX \ 13494 old_archive_from_expsyms_cmds_CXX \ 13495 allow_undefined_flag_CXX \ 13496 no_undefined_flag_CXX \ 13497 export_symbols_cmds_CXX \ 13498 hardcode_libdir_flag_spec_CXX \ 13499 hardcode_libdir_flag_spec_ld_CXX \ 13500 hardcode_libdir_separator_CXX \ 13501 hardcode_automatic_CXX \ 13502 module_cmds_CXX \ 13503 module_expsym_cmds_CXX \ 13504 lt_cv_prog_compiler_c_o_CXX \ 13505 exclude_expsyms_CXX \ 13506 include_expsyms_CXX; do 13507 13508 case $var in 13509 old_archive_cmds_CXX | \ 13510 old_archive_from_new_cmds_CXX | \ 13511 archive_cmds_CXX | \ 13512 archive_expsym_cmds_CXX | \ 13513 module_cmds_CXX | \ 13514 module_expsym_cmds_CXX | \ 13515 old_archive_from_expsyms_cmds_CXX | \ 13516 export_symbols_cmds_CXX | \ 13517 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13518 postinstall_cmds | postuninstall_cmds | \ 13519 old_postinstall_cmds | old_postuninstall_cmds | \ 13520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13521 # Double-quote double-evaled strings. 13522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13523 ;; 13524 *) 13525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13526 ;; 13527 esac 13528 done 13529 13530 case $lt_echo in 13531 *'\$0 --fallback-echo"') 13532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13533 ;; 13534 esac 13535 13536cfgfile="$ofile" 13537 13538 cat <<__EOF__ >> "$cfgfile" 13539# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13540 13541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13542 13543# Shell to use when invoking shell scripts. 13544SHELL=$lt_SHELL 13545 13546# Whether or not to build shared libraries. 13547build_libtool_libs=$enable_shared 13548 13549# Whether or not to build static libraries. 13550build_old_libs=$enable_static 13551 13552# Whether or not to add -lc for building shared libraries. 13553build_libtool_need_lc=$archive_cmds_need_lc_CXX 13554 13555# Whether or not to disallow shared libs when runtime libs are static 13556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13557 13558# Whether or not to optimize for fast installation. 13559fast_install=$enable_fast_install 13560 13561# The host system. 13562host_alias=$host_alias 13563host=$host 13564host_os=$host_os 13565 13566# The build system. 13567build_alias=$build_alias 13568build=$build 13569build_os=$build_os 13570 13571# An echo program that does not interpret backslashes. 13572echo=$lt_echo 13573 13574# The archiver. 13575AR=$lt_AR 13576AR_FLAGS=$lt_AR_FLAGS 13577 13578# A C compiler. 13579LTCC=$lt_LTCC 13580 13581# LTCC compiler flags. 13582LTCFLAGS=$lt_LTCFLAGS 13583 13584# A language-specific compiler. 13585CC=$lt_compiler_CXX 13586 13587# Is the compiler the GNU C compiler? 13588with_gcc=$GCC_CXX 13589 13590# An ERE matcher. 13591EGREP=$lt_EGREP 13592 13593# The linker used to build libraries. 13594LD=$lt_LD_CXX 13595 13596# Whether we need hard or soft links. 13597LN_S=$lt_LN_S 13598 13599# A BSD-compatible nm program. 13600NM=$lt_NM 13601 13602# A symbol stripping program 13603STRIP=$lt_STRIP 13604 13605# Used to examine libraries when file_magic_cmd begins "file" 13606MAGIC_CMD=$MAGIC_CMD 13607 13608# Used on cygwin: DLL creation program. 13609DLLTOOL="$DLLTOOL" 13610 13611# Used on cygwin: object dumper. 13612OBJDUMP="$OBJDUMP" 13613 13614# Used on cygwin: assembler. 13615AS="$AS" 13616 13617# The name of the directory that contains temporary libtool files. 13618objdir=$objdir 13619 13620# How to create reloadable object files. 13621reload_flag=$lt_reload_flag 13622reload_cmds=$lt_reload_cmds 13623 13624# How to pass a linker flag through the compiler. 13625wl=$lt_lt_prog_compiler_wl_CXX 13626 13627# Object file suffix (normally "o"). 13628objext="$ac_objext" 13629 13630# Old archive suffix (normally "a"). 13631libext="$libext" 13632 13633# Shared library suffix (normally ".so"). 13634shrext_cmds='$shrext_cmds' 13635 13636# Executable file suffix (normally ""). 13637exeext="$exeext" 13638 13639# Additional compiler flags for building library objects. 13640pic_flag=$lt_lt_prog_compiler_pic_CXX 13641pic_mode=$pic_mode 13642 13643# What is the maximum length of a command? 13644max_cmd_len=$lt_cv_sys_max_cmd_len 13645 13646# Does compiler simultaneously support -c and -o options? 13647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13648 13649# Must we lock files when doing compilation? 13650need_locks=$lt_need_locks 13651 13652# Do we need the lib prefix for modules? 13653need_lib_prefix=$need_lib_prefix 13654 13655# Do we need a version for libraries? 13656need_version=$need_version 13657 13658# Whether dlopen is supported. 13659dlopen_support=$enable_dlopen 13660 13661# Whether dlopen of programs is supported. 13662dlopen_self=$enable_dlopen_self 13663 13664# Whether dlopen of statically linked programs is supported. 13665dlopen_self_static=$enable_dlopen_self_static 13666 13667# Compiler flag to prevent dynamic linking. 13668link_static_flag=$lt_lt_prog_compiler_static_CXX 13669 13670# Compiler flag to turn off builtin functions. 13671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13672 13673# Compiler flag to allow reflexive dlopens. 13674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13675 13676# Compiler flag to generate shared objects directly from archives. 13677whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13678 13679# Compiler flag to generate thread-safe objects. 13680thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13681 13682# Library versioning type. 13683version_type=$version_type 13684 13685# Format of library name prefix. 13686libname_spec=$lt_libname_spec 13687 13688# List of archive names. First name is the real one, the rest are links. 13689# The last name is the one that the linker finds with -lNAME. 13690library_names_spec=$lt_library_names_spec 13691 13692# The coded name of the library, if different from the real name. 13693soname_spec=$lt_soname_spec 13694 13695# Commands used to build and install an old-style archive. 13696RANLIB=$lt_RANLIB 13697old_archive_cmds=$lt_old_archive_cmds_CXX 13698old_postinstall_cmds=$lt_old_postinstall_cmds 13699old_postuninstall_cmds=$lt_old_postuninstall_cmds 13700 13701# Create an old-style archive from a shared archive. 13702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13703 13704# Create a temporary old-style archive to link instead of a shared archive. 13705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13706 13707# Commands used to build and install a shared archive. 13708archive_cmds=$lt_archive_cmds_CXX 13709archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13710postinstall_cmds=$lt_postinstall_cmds 13711postuninstall_cmds=$lt_postuninstall_cmds 13712 13713# Commands used to build a loadable module (assumed same as above if empty) 13714module_cmds=$lt_module_cmds_CXX 13715module_expsym_cmds=$lt_module_expsym_cmds_CXX 13716 13717# Commands to strip libraries. 13718old_striplib=$lt_old_striplib 13719striplib=$lt_striplib 13720 13721# Dependencies to place before the objects being linked to create a 13722# shared library. 13723predep_objects=$lt_predep_objects_CXX 13724 13725# Dependencies to place after the objects being linked to create a 13726# shared library. 13727postdep_objects=$lt_postdep_objects_CXX 13728 13729# Dependencies to place before the objects being linked to create a 13730# shared library. 13731predeps=$lt_predeps_CXX 13732 13733# Dependencies to place after the objects being linked to create a 13734# shared library. 13735postdeps=$lt_postdeps_CXX 13736 13737# The library search path used internally by the compiler when linking 13738# a shared library. 13739compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13740 13741# Method to check whether dependent libraries are shared objects. 13742deplibs_check_method=$lt_deplibs_check_method 13743 13744# Command to use when deplibs_check_method == file_magic. 13745file_magic_cmd=$lt_file_magic_cmd 13746 13747# Flag that allows shared libraries with undefined symbols to be built. 13748allow_undefined_flag=$lt_allow_undefined_flag_CXX 13749 13750# Flag that forces no undefined symbols. 13751no_undefined_flag=$lt_no_undefined_flag_CXX 13752 13753# Commands used to finish a libtool library installation in a directory. 13754finish_cmds=$lt_finish_cmds 13755 13756# Same as above, but a single script fragment to be evaled but not shown. 13757finish_eval=$lt_finish_eval 13758 13759# Take the output of nm and produce a listing of raw symbols and C names. 13760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13761 13762# Transform the output of nm in a proper C declaration 13763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13764 13765# Transform the output of nm in a C name address pair 13766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13767 13768# This is the shared library runtime path variable. 13769runpath_var=$runpath_var 13770 13771# This is the shared library path variable. 13772shlibpath_var=$shlibpath_var 13773 13774# Is shlibpath searched before the hard-coded library search path? 13775shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13776 13777# How to hardcode a shared library path into an executable. 13778hardcode_action=$hardcode_action_CXX 13779 13780# Whether we should hardcode library paths into libraries. 13781hardcode_into_libs=$hardcode_into_libs 13782 13783# Flag to hardcode \$libdir into a binary during linking. 13784# This must work even if \$libdir does not exist. 13785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13786 13787# If ld is used when linking, flag to hardcode \$libdir into 13788# a binary during linking. This must work even if \$libdir does 13789# not exist. 13790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13791 13792# Whether we need a single -rpath flag with a separated argument. 13793hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13794 13795# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13796# resulting binary. 13797hardcode_direct=$hardcode_direct_CXX 13798 13799# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13800# resulting binary. 13801hardcode_minus_L=$hardcode_minus_L_CXX 13802 13803# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13804# the resulting binary. 13805hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13806 13807# Set to yes if building a shared library automatically hardcodes DIR into the library 13808# and all subsequent libraries and executables linked against it. 13809hardcode_automatic=$hardcode_automatic_CXX 13810 13811# Variables whose values should be saved in libtool wrapper scripts and 13812# restored at relink time. 13813variables_saved_for_relink="$variables_saved_for_relink" 13814 13815# Whether libtool must link a program against all its dependency libraries. 13816link_all_deplibs=$link_all_deplibs_CXX 13817 13818# Compile-time system search path for libraries 13819sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13820 13821# Run-time system search path for libraries 13822sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13823 13824# Fix the shell variable \$srcfile for the compiler. 13825fix_srcfile_path="$fix_srcfile_path_CXX" 13826 13827# Set to yes if exported symbols are required. 13828always_export_symbols=$always_export_symbols_CXX 13829 13830# The commands to list exported symbols. 13831export_symbols_cmds=$lt_export_symbols_cmds_CXX 13832 13833# The commands to extract the exported symbol list from a shared archive. 13834extract_expsyms_cmds=$lt_extract_expsyms_cmds 13835 13836# Symbols that should not be listed in the preloaded symbols. 13837exclude_expsyms=$lt_exclude_expsyms_CXX 13838 13839# Symbols that must always be exported. 13840include_expsyms=$lt_include_expsyms_CXX 13841 13842# ### END LIBTOOL TAG CONFIG: $tagname 13843 13844__EOF__ 13845 13846 13847else 13848 # If there is no Makefile yet, we rely on a make rule to execute 13849 # `config.status --recheck' to rerun these tests and create the 13850 # libtool script then. 13851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13852 if test -f "$ltmain_in"; then 13853 test -f Makefile && make "$ltmain" 13854 fi 13855fi 13856 13857 13858ac_ext=c 13859ac_cpp='$CPP $CPPFLAGS' 13860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13862ac_compiler_gnu=$ac_cv_c_compiler_gnu 13863 13864CC=$lt_save_CC 13865LDCXX=$LD 13866LD=$lt_save_LD 13867GCC=$lt_save_GCC 13868with_gnu_ldcxx=$with_gnu_ld 13869with_gnu_ld=$lt_save_with_gnu_ld 13870lt_cv_path_LDCXX=$lt_cv_path_LD 13871lt_cv_path_LD=$lt_save_path_LD 13872lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13873lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13874 13875 else 13876 tagname="" 13877 fi 13878 ;; 13879 13880 F77) 13881 if test -n "$F77" && test "X$F77" != "Xno"; then 13882 13883ac_ext=f 13884ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13885ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13886ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13887 13888 13889archive_cmds_need_lc_F77=no 13890allow_undefined_flag_F77= 13891always_export_symbols_F77=no 13892archive_expsym_cmds_F77= 13893export_dynamic_flag_spec_F77= 13894hardcode_direct_F77=no 13895hardcode_libdir_flag_spec_F77= 13896hardcode_libdir_flag_spec_ld_F77= 13897hardcode_libdir_separator_F77= 13898hardcode_minus_L_F77=no 13899hardcode_automatic_F77=no 13900module_cmds_F77= 13901module_expsym_cmds_F77= 13902link_all_deplibs_F77=unknown 13903old_archive_cmds_F77=$old_archive_cmds 13904no_undefined_flag_F77= 13905whole_archive_flag_spec_F77= 13906enable_shared_with_static_runtimes_F77=no 13907 13908# Source file extension for f77 test sources. 13909ac_ext=f 13910 13911# Object file extension for compiled f77 test sources. 13912objext=o 13913objext_F77=$objext 13914 13915# Code to be used in simple compile tests 13916lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13917 13918# Code to be used in simple link tests 13919lt_simple_link_test_code=" program t\n end\n" 13920 13921# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13922 13923# If no C compiler was specified, use CC. 13924LTCC=${LTCC-"$CC"} 13925 13926# If no C compiler flags were specified, use CFLAGS. 13927LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13928 13929# Allow CC to be a program name with arguments. 13930compiler=$CC 13931 13932 13933# save warnings/boilerplate of simple test code 13934ac_outfile=conftest.$ac_objext 13935printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13937_lt_compiler_boilerplate=`cat conftest.err` 13938$rm conftest* 13939 13940ac_outfile=conftest.$ac_objext 13941printf "$lt_simple_link_test_code" >conftest.$ac_ext 13942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13943_lt_linker_boilerplate=`cat conftest.err` 13944$rm conftest* 13945 13946 13947# Allow CC to be a program name with arguments. 13948lt_save_CC="$CC" 13949CC=${F77-"f77"} 13950compiler=$CC 13951compiler_F77=$CC 13952for cc_temp in $compiler""; do 13953 case $cc_temp in 13954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13956 \-*) ;; 13957 *) break;; 13958 esac 13959done 13960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13961 13962 13963{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13964echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13965{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13966echo "${ECHO_T}$can_build_shared" >&6; } 13967 13968{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13969echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13970test "$can_build_shared" = "no" && enable_shared=no 13971 13972# On AIX, shared libraries and static libraries use the same namespace, and 13973# are all built from PIC. 13974case $host_os in 13975aix3*) 13976 test "$enable_shared" = yes && enable_static=no 13977 if test -n "$RANLIB"; then 13978 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13979 postinstall_cmds='$RANLIB $lib' 13980 fi 13981 ;; 13982aix4* | aix5*) 13983 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13984 test "$enable_shared" = yes && enable_static=no 13985 fi 13986 ;; 13987esac 13988{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13989echo "${ECHO_T}$enable_shared" >&6; } 13990 13991{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13992echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13993# Make sure either enable_shared or enable_static is yes. 13994test "$enable_shared" = yes || enable_static=yes 13995{ echo "$as_me:$LINENO: result: $enable_static" >&5 13996echo "${ECHO_T}$enable_static" >&6; } 13997 13998GCC_F77="$G77" 13999LD_F77="$LD" 14000 14001lt_prog_compiler_wl_F77= 14002lt_prog_compiler_pic_F77= 14003lt_prog_compiler_static_F77= 14004 14005{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14006echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14007 14008 if test "$GCC" = yes; then 14009 lt_prog_compiler_wl_F77='-Wl,' 14010 lt_prog_compiler_static_F77='-static' 14011 14012 case $host_os in 14013 aix*) 14014 # All AIX code is PIC. 14015 if test "$host_cpu" = ia64; then 14016 # AIX 5 now supports IA64 processor 14017 lt_prog_compiler_static_F77='-Bstatic' 14018 fi 14019 ;; 14020 14021 amigaos*) 14022 # FIXME: we need at least 68020 code to build shared libraries, but 14023 # adding the `-m68020' flag to GCC prevents building anything better, 14024 # like `-m68040'. 14025 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14026 ;; 14027 14028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14029 # PIC is the default for these OSes. 14030 ;; 14031 14032 mingw* | pw32* | os2*) 14033 # This hack is so that the source file can tell whether it is being 14034 # built for inclusion in a dll (and should export symbols for example). 14035 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14036 ;; 14037 14038 darwin* | rhapsody*) 14039 # PIC is the default on this platform 14040 # Common symbols not allowed in MH_DYLIB files 14041 lt_prog_compiler_pic_F77='-fno-common' 14042 ;; 14043 14044 interix3*) 14045 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14046 # Instead, we relocate shared libraries at runtime. 14047 ;; 14048 14049 msdosdjgpp*) 14050 # Just because we use GCC doesn't mean we suddenly get shared libraries 14051 # on systems that don't support them. 14052 lt_prog_compiler_can_build_shared_F77=no 14053 enable_shared=no 14054 ;; 14055 14056 sysv4*MP*) 14057 if test -d /usr/nec; then 14058 lt_prog_compiler_pic_F77=-Kconform_pic 14059 fi 14060 ;; 14061 14062 hpux*) 14063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14064 # not for PA HP-UX. 14065 case $host_cpu in 14066 hppa*64*|ia64*) 14067 # +Z the default 14068 ;; 14069 *) 14070 lt_prog_compiler_pic_F77='-fPIC' 14071 ;; 14072 esac 14073 ;; 14074 14075 *) 14076 lt_prog_compiler_pic_F77='-fPIC' 14077 ;; 14078 esac 14079 else 14080 # PORTME Check for flag to pass linker flags through the system compiler. 14081 case $host_os in 14082 aix*) 14083 lt_prog_compiler_wl_F77='-Wl,' 14084 if test "$host_cpu" = ia64; then 14085 # AIX 5 now supports IA64 processor 14086 lt_prog_compiler_static_F77='-Bstatic' 14087 else 14088 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14089 fi 14090 ;; 14091 darwin*) 14092 # PIC is the default on this platform 14093 # Common symbols not allowed in MH_DYLIB files 14094 case $cc_basename in 14095 xlc*) 14096 lt_prog_compiler_pic_F77='-qnocommon' 14097 lt_prog_compiler_wl_F77='-Wl,' 14098 ;; 14099 esac 14100 ;; 14101 14102 mingw* | pw32* | os2*) 14103 # This hack is so that the source file can tell whether it is being 14104 # built for inclusion in a dll (and should export symbols for example). 14105 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14106 ;; 14107 14108 hpux9* | hpux10* | hpux11*) 14109 lt_prog_compiler_wl_F77='-Wl,' 14110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14111 # not for PA HP-UX. 14112 case $host_cpu in 14113 hppa*64*|ia64*) 14114 # +Z the default 14115 ;; 14116 *) 14117 lt_prog_compiler_pic_F77='+Z' 14118 ;; 14119 esac 14120 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14121 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14122 ;; 14123 14124 irix5* | irix6* | nonstopux*) 14125 lt_prog_compiler_wl_F77='-Wl,' 14126 # PIC (with -KPIC) is the default. 14127 lt_prog_compiler_static_F77='-non_shared' 14128 ;; 14129 14130 newsos6) 14131 lt_prog_compiler_pic_F77='-KPIC' 14132 lt_prog_compiler_static_F77='-Bstatic' 14133 ;; 14134 14135 linux*) 14136 case $cc_basename in 14137 icc* | ecc*) 14138 lt_prog_compiler_wl_F77='-Wl,' 14139 lt_prog_compiler_pic_F77='-KPIC' 14140 lt_prog_compiler_static_F77='-static' 14141 ;; 14142 pgcc* | pgf77* | pgf90* | pgf95*) 14143 # Portland Group compilers (*not* the Pentium gcc compiler, 14144 # which looks to be a dead project) 14145 lt_prog_compiler_wl_F77='-Wl,' 14146 lt_prog_compiler_pic_F77='-fpic' 14147 lt_prog_compiler_static_F77='-Bstatic' 14148 ;; 14149 ccc*) 14150 lt_prog_compiler_wl_F77='-Wl,' 14151 # All Alpha code is PIC. 14152 lt_prog_compiler_static_F77='-non_shared' 14153 ;; 14154 esac 14155 ;; 14156 14157 osf3* | osf4* | osf5*) 14158 lt_prog_compiler_wl_F77='-Wl,' 14159 # All OSF/1 code is PIC. 14160 lt_prog_compiler_static_F77='-non_shared' 14161 ;; 14162 14163 solaris*) 14164 lt_prog_compiler_pic_F77='-KPIC' 14165 lt_prog_compiler_static_F77='-Bstatic' 14166 case $cc_basename in 14167 f77* | f90* | f95*) 14168 lt_prog_compiler_wl_F77='-Qoption ld ';; 14169 *) 14170 lt_prog_compiler_wl_F77='-Wl,';; 14171 esac 14172 ;; 14173 14174 sunos4*) 14175 lt_prog_compiler_wl_F77='-Qoption ld ' 14176 lt_prog_compiler_pic_F77='-PIC' 14177 lt_prog_compiler_static_F77='-Bstatic' 14178 ;; 14179 14180 sysv4 | sysv4.2uw2* | sysv4.3*) 14181 lt_prog_compiler_wl_F77='-Wl,' 14182 lt_prog_compiler_pic_F77='-KPIC' 14183 lt_prog_compiler_static_F77='-Bstatic' 14184 ;; 14185 14186 sysv4*MP*) 14187 if test -d /usr/nec ;then 14188 lt_prog_compiler_pic_F77='-Kconform_pic' 14189 lt_prog_compiler_static_F77='-Bstatic' 14190 fi 14191 ;; 14192 14193 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14194 lt_prog_compiler_wl_F77='-Wl,' 14195 lt_prog_compiler_pic_F77='-KPIC' 14196 lt_prog_compiler_static_F77='-Bstatic' 14197 ;; 14198 14199 unicos*) 14200 lt_prog_compiler_wl_F77='-Wl,' 14201 lt_prog_compiler_can_build_shared_F77=no 14202 ;; 14203 14204 uts4*) 14205 lt_prog_compiler_pic_F77='-pic' 14206 lt_prog_compiler_static_F77='-Bstatic' 14207 ;; 14208 14209 *) 14210 lt_prog_compiler_can_build_shared_F77=no 14211 ;; 14212 esac 14213 fi 14214 14215{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14216echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14217 14218# 14219# Check to make sure the PIC flag actually works. 14220# 14221if test -n "$lt_prog_compiler_pic_F77"; then 14222 14223{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14224echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14225if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14226 echo $ECHO_N "(cached) $ECHO_C" >&6 14227else 14228 lt_prog_compiler_pic_works_F77=no 14229 ac_outfile=conftest.$ac_objext 14230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14231 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14232 # Insert the option either (1) after the last *FLAGS variable, or 14233 # (2) before a word containing "conftest.", or (3) at the end. 14234 # Note that $ac_compile itself does not contain backslashes and begins 14235 # with a dollar sign (not a hyphen), so the echo should work correctly. 14236 # The option is referenced via a variable to avoid confusing sed. 14237 lt_compile=`echo "$ac_compile" | $SED \ 14238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14240 -e 's:$: $lt_compiler_flag:'` 14241 (eval echo "\"\$as_me:14241: $lt_compile\"" >&5) 14242 (eval "$lt_compile" 2>conftest.err) 14243 ac_status=$? 14244 cat conftest.err >&5 14245 echo "$as_me:14245: \$? = $ac_status" >&5 14246 if (exit $ac_status) && test -s "$ac_outfile"; then 14247 # The compiler can only warn and ignore the option if not recognized 14248 # So say no if there are warnings other than the usual output. 14249 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14252 lt_prog_compiler_pic_works_F77=yes 14253 fi 14254 fi 14255 $rm conftest* 14256 14257fi 14258{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14259echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14260 14261if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14262 case $lt_prog_compiler_pic_F77 in 14263 "" | " "*) ;; 14264 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14265 esac 14266else 14267 lt_prog_compiler_pic_F77= 14268 lt_prog_compiler_can_build_shared_F77=no 14269fi 14270 14271fi 14272case $host_os in 14273 # For platforms which do not support PIC, -DPIC is meaningless: 14274 *djgpp*) 14275 lt_prog_compiler_pic_F77= 14276 ;; 14277 *) 14278 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14279 ;; 14280esac 14281 14282# 14283# Check to make sure the static flag actually works. 14284# 14285wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14286{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14287echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14288if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14289 echo $ECHO_N "(cached) $ECHO_C" >&6 14290else 14291 lt_prog_compiler_static_works_F77=no 14292 save_LDFLAGS="$LDFLAGS" 14293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14294 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14296 # The linker can only warn and ignore the option if not recognized 14297 # So say no if there are warnings 14298 if test -s conftest.err; then 14299 # Append any errors to the config.log. 14300 cat conftest.err 1>&5 14301 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14303 if diff conftest.exp conftest.er2 >/dev/null; then 14304 lt_prog_compiler_static_works_F77=yes 14305 fi 14306 else 14307 lt_prog_compiler_static_works_F77=yes 14308 fi 14309 fi 14310 $rm conftest* 14311 LDFLAGS="$save_LDFLAGS" 14312 14313fi 14314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14315echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14316 14317if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14318 : 14319else 14320 lt_prog_compiler_static_F77= 14321fi 14322 14323 14324{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14326if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14327 echo $ECHO_N "(cached) $ECHO_C" >&6 14328else 14329 lt_cv_prog_compiler_c_o_F77=no 14330 $rm -r conftest 2>/dev/null 14331 mkdir conftest 14332 cd conftest 14333 mkdir out 14334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14335 14336 lt_compiler_flag="-o out/conftest2.$ac_objext" 14337 # Insert the option either (1) after the last *FLAGS variable, or 14338 # (2) before a word containing "conftest.", or (3) at the end. 14339 # Note that $ac_compile itself does not contain backslashes and begins 14340 # with a dollar sign (not a hyphen), so the echo should work correctly. 14341 lt_compile=`echo "$ac_compile" | $SED \ 14342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14344 -e 's:$: $lt_compiler_flag:'` 14345 (eval echo "\"\$as_me:14345: $lt_compile\"" >&5) 14346 (eval "$lt_compile" 2>out/conftest.err) 14347 ac_status=$? 14348 cat out/conftest.err >&5 14349 echo "$as_me:14349: \$? = $ac_status" >&5 14350 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14351 then 14352 # The compiler can only warn and ignore the option if not recognized 14353 # So say no if there are warnings 14354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14357 lt_cv_prog_compiler_c_o_F77=yes 14358 fi 14359 fi 14360 chmod u+w . 2>&5 14361 $rm conftest* 14362 # SGI C++ compiler will create directory out/ii_files/ for 14363 # template instantiation 14364 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14365 $rm out/* && rmdir out 14366 cd .. 14367 rmdir conftest 14368 $rm conftest* 14369 14370fi 14371{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14372echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14373 14374 14375hard_links="nottested" 14376if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14377 # do not overwrite the value of need_locks provided by the user 14378 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14379echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14380 hard_links=yes 14381 $rm conftest* 14382 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14383 touch conftest.a 14384 ln conftest.a conftest.b 2>&5 || hard_links=no 14385 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14386 { echo "$as_me:$LINENO: result: $hard_links" >&5 14387echo "${ECHO_T}$hard_links" >&6; } 14388 if test "$hard_links" = no; then 14389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14390echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14391 need_locks=warn 14392 fi 14393else 14394 need_locks=no 14395fi 14396 14397{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14399 14400 runpath_var= 14401 allow_undefined_flag_F77= 14402 enable_shared_with_static_runtimes_F77=no 14403 archive_cmds_F77= 14404 archive_expsym_cmds_F77= 14405 old_archive_From_new_cmds_F77= 14406 old_archive_from_expsyms_cmds_F77= 14407 export_dynamic_flag_spec_F77= 14408 whole_archive_flag_spec_F77= 14409 thread_safe_flag_spec_F77= 14410 hardcode_libdir_flag_spec_F77= 14411 hardcode_libdir_flag_spec_ld_F77= 14412 hardcode_libdir_separator_F77= 14413 hardcode_direct_F77=no 14414 hardcode_minus_L_F77=no 14415 hardcode_shlibpath_var_F77=unsupported 14416 link_all_deplibs_F77=unknown 14417 hardcode_automatic_F77=no 14418 module_cmds_F77= 14419 module_expsym_cmds_F77= 14420 always_export_symbols_F77=no 14421 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14422 # include_expsyms should be a list of space-separated symbols to be *always* 14423 # included in the symbol list 14424 include_expsyms_F77= 14425 # exclude_expsyms can be an extended regexp of symbols to exclude 14426 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14427 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14428 # as well as any symbol that contains `d'. 14429 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14430 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14431 # platforms (ab)use it in PIC code, but their linkers get confused if 14432 # the symbol is explicitly referenced. Since portable code cannot 14433 # rely on this symbol name, it's probably fine to never include it in 14434 # preloaded symbol tables. 14435 extract_expsyms_cmds= 14436 # Just being paranoid about ensuring that cc_basename is set. 14437 for cc_temp in $compiler""; do 14438 case $cc_temp in 14439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14441 \-*) ;; 14442 *) break;; 14443 esac 14444done 14445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14446 14447 case $host_os in 14448 cygwin* | mingw* | pw32*) 14449 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14450 # When not using gcc, we currently assume that we are using 14451 # Microsoft Visual C++. 14452 if test "$GCC" != yes; then 14453 with_gnu_ld=no 14454 fi 14455 ;; 14456 interix*) 14457 # we just hope/assume this is gcc and not c89 (= MSVC++) 14458 with_gnu_ld=yes 14459 ;; 14460 openbsd*) 14461 with_gnu_ld=no 14462 ;; 14463 esac 14464 14465 ld_shlibs_F77=yes 14466 if test "$with_gnu_ld" = yes; then 14467 # If archive_cmds runs LD, not CC, wlarc should be empty 14468 wlarc='${wl}' 14469 14470 # Set some defaults for GNU ld with shared library support. These 14471 # are reset later if shared libraries are not supported. Putting them 14472 # here allows them to be overridden if necessary. 14473 runpath_var=LD_RUN_PATH 14474 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14475 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14476 # ancient GNU ld didn't support --whole-archive et. al. 14477 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14478 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14479 else 14480 whole_archive_flag_spec_F77= 14481 fi 14482 supports_anon_versioning=no 14483 case `$LD -v 2>/dev/null` in 14484 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14487 *\ 2.11.*) ;; # other 2.11 versions 14488 *) supports_anon_versioning=yes ;; 14489 esac 14490 14491 # See if GNU ld supports shared libraries. 14492 case $host_os in 14493 aix3* | aix4* | aix5*) 14494 # On AIX/PPC, the GNU linker is very broken 14495 if test "$host_cpu" != ia64; then 14496 ld_shlibs_F77=no 14497 cat <<EOF 1>&2 14498 14499*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14500*** to be unable to reliably create shared libraries on AIX. 14501*** Therefore, libtool is disabling shared libraries support. If you 14502*** really care for shared libraries, you may want to modify your PATH 14503*** so that a non-GNU linker is found, and then restart. 14504 14505EOF 14506 fi 14507 ;; 14508 14509 amigaos*) 14510 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)' 14511 hardcode_libdir_flag_spec_F77='-L$libdir' 14512 hardcode_minus_L_F77=yes 14513 14514 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14515 # that the semantics of dynamic libraries on AmigaOS, at least up 14516 # to version 4, is to share data among multiple programs linked 14517 # with the same dynamic library. Since this doesn't match the 14518 # behavior of shared libraries on other platforms, we can't use 14519 # them. 14520 ld_shlibs_F77=no 14521 ;; 14522 14523 beos*) 14524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14525 allow_undefined_flag_F77=unsupported 14526 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14527 # support --undefined. This deserves some investigation. FIXME 14528 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14529 else 14530 ld_shlibs_F77=no 14531 fi 14532 ;; 14533 14534 cygwin* | mingw* | pw32*) 14535 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14536 # as there is no search path for DLLs. 14537 hardcode_libdir_flag_spec_F77='-L$libdir' 14538 allow_undefined_flag_F77=unsupported 14539 always_export_symbols_F77=no 14540 enable_shared_with_static_runtimes_F77=yes 14541 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14542 14543 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14545 # If the export-symbols file already is a .def file (1st line 14546 # is EXPORTS), use it as is; otherwise, prepend... 14547 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14548 cp $export_symbols $output_objdir/$soname.def; 14549 else 14550 echo EXPORTS > $output_objdir/$soname.def; 14551 cat $export_symbols >> $output_objdir/$soname.def; 14552 fi~ 14553 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14554 else 14555 ld_shlibs_F77=no 14556 fi 14557 ;; 14558 14559 interix3*) 14560 hardcode_direct_F77=no 14561 hardcode_shlibpath_var_F77=no 14562 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14563 export_dynamic_flag_spec_F77='${wl}-E' 14564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14565 # Instead, shared libraries are loaded at an image base (0x10000000 by 14566 # default) and relocated if they conflict, which is a slow very memory 14567 # consuming and fragmenting process. To avoid this, we pick a random, 14568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14569 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14570 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' 14571 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' 14572 ;; 14573 14574 linux*) 14575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14576 tmp_addflag= 14577 case $cc_basename,$host_cpu in 14578 pgcc*) # Portland Group C compiler 14579 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' 14580 tmp_addflag=' $pic_flag' 14581 ;; 14582 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14583 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' 14584 tmp_addflag=' $pic_flag -Mnomain' ;; 14585 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14586 tmp_addflag=' -i_dynamic' ;; 14587 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14588 tmp_addflag=' -i_dynamic -nofor_main' ;; 14589 ifc* | ifort*) # Intel Fortran compiler 14590 tmp_addflag=' -nofor_main' ;; 14591 esac 14592 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14593 14594 if test $supports_anon_versioning = yes; then 14595 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14597 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14598 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14599 fi 14600 else 14601 ld_shlibs_F77=no 14602 fi 14603 ;; 14604 14605 netbsd*) 14606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14607 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14608 wlarc= 14609 else 14610 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14611 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14612 fi 14613 ;; 14614 14615 solaris*) 14616 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14617 ld_shlibs_F77=no 14618 cat <<EOF 1>&2 14619 14620*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14621*** create shared libraries on Solaris systems. Therefore, libtool 14622*** is disabling shared libraries support. We urge you to upgrade GNU 14623*** binutils to release 2.9.1 or newer. Another option is to modify 14624*** your PATH or compiler configuration so that the native linker is 14625*** used, and then restart. 14626 14627EOF 14628 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14630 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14631 else 14632 ld_shlibs_F77=no 14633 fi 14634 ;; 14635 14636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14637 case `$LD -v 2>&1` in 14638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14639 ld_shlibs_F77=no 14640 cat <<_LT_EOF 1>&2 14641 14642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14643*** reliably create shared libraries on SCO systems. Therefore, libtool 14644*** is disabling shared libraries support. We urge you to upgrade GNU 14645*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14646*** your PATH or compiler configuration so that the native linker is 14647*** used, and then restart. 14648 14649_LT_EOF 14650 ;; 14651 *) 14652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14653 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14654 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14655 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14656 else 14657 ld_shlibs_F77=no 14658 fi 14659 ;; 14660 esac 14661 ;; 14662 14663 sunos4*) 14664 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14665 wlarc= 14666 hardcode_direct_F77=yes 14667 hardcode_shlibpath_var_F77=no 14668 ;; 14669 14670 *) 14671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14672 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14673 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14674 else 14675 ld_shlibs_F77=no 14676 fi 14677 ;; 14678 esac 14679 14680 if test "$ld_shlibs_F77" = no; then 14681 runpath_var= 14682 hardcode_libdir_flag_spec_F77= 14683 export_dynamic_flag_spec_F77= 14684 whole_archive_flag_spec_F77= 14685 fi 14686 else 14687 # PORTME fill in a description of your system's linker (not GNU ld) 14688 case $host_os in 14689 aix3*) 14690 allow_undefined_flag_F77=unsupported 14691 always_export_symbols_F77=yes 14692 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' 14693 # Note: this linker hardcodes the directories in LIBPATH if there 14694 # are no directories specified by -L. 14695 hardcode_minus_L_F77=yes 14696 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14697 # Neither direct hardcoding nor static linking is supported with a 14698 # broken collect2. 14699 hardcode_direct_F77=unsupported 14700 fi 14701 ;; 14702 14703 aix4* | aix5*) 14704 if test "$host_cpu" = ia64; then 14705 # On IA64, the linker does run time linking by default, so we don't 14706 # have to do anything special. 14707 aix_use_runtimelinking=no 14708 exp_sym_flag='-Bexport' 14709 no_entry_flag="" 14710 else 14711 # If we're using GNU nm, then we don't want the "-C" option. 14712 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14713 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14714 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' 14715 else 14716 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' 14717 fi 14718 aix_use_runtimelinking=no 14719 14720 # Test if we are trying to use run time linking or normal 14721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14722 # need to do runtime linking. 14723 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14724 for ld_flag in $LDFLAGS; do 14725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14726 aix_use_runtimelinking=yes 14727 break 14728 fi 14729 done 14730 ;; 14731 esac 14732 14733 exp_sym_flag='-bexport' 14734 no_entry_flag='-bnoentry' 14735 fi 14736 14737 # When large executables or shared objects are built, AIX ld can 14738 # have problems creating the table of contents. If linking a library 14739 # or program results in "error TOC overflow" add -mminimal-toc to 14740 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14741 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14742 14743 archive_cmds_F77='' 14744 hardcode_direct_F77=yes 14745 hardcode_libdir_separator_F77=':' 14746 link_all_deplibs_F77=yes 14747 14748 if test "$GCC" = yes; then 14749 case $host_os in aix4.[012]|aix4.[012].*) 14750 # We only want to do this on AIX 4.2 and lower, the check 14751 # below for broken collect2 doesn't work under 4.3+ 14752 collect2name=`${CC} -print-prog-name=collect2` 14753 if test -f "$collect2name" && \ 14754 strings "$collect2name" | grep resolve_lib_name >/dev/null 14755 then 14756 # We have reworked collect2 14757 hardcode_direct_F77=yes 14758 else 14759 # We have old collect2 14760 hardcode_direct_F77=unsupported 14761 # It fails to find uninstalled libraries when the uninstalled 14762 # path is not listed in the libpath. Setting hardcode_minus_L 14763 # to unsupported forces relinking 14764 hardcode_minus_L_F77=yes 14765 hardcode_libdir_flag_spec_F77='-L$libdir' 14766 hardcode_libdir_separator_F77= 14767 fi 14768 ;; 14769 esac 14770 shared_flag='-shared' 14771 if test "$aix_use_runtimelinking" = yes; then 14772 shared_flag="$shared_flag "'${wl}-G' 14773 fi 14774 else 14775 # not using gcc 14776 if test "$host_cpu" = ia64; then 14777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14778 # chokes on -Wl,-G. The following line is correct: 14779 shared_flag='-G' 14780 else 14781 if test "$aix_use_runtimelinking" = yes; then 14782 shared_flag='${wl}-G' 14783 else 14784 shared_flag='${wl}-bM:SRE' 14785 fi 14786 fi 14787 fi 14788 14789 # It seems that -bexpall does not export symbols beginning with 14790 # underscore (_), so it is better to generate a list of symbols to export. 14791 always_export_symbols_F77=yes 14792 if test "$aix_use_runtimelinking" = yes; then 14793 # Warning - without using the other runtime loading flags (-brtl), 14794 # -berok will link without error, but may produce a broken library. 14795 allow_undefined_flag_F77='-berok' 14796 # Determine the default libpath from the value encoded in an empty executable. 14797 cat >conftest.$ac_ext <<_ACEOF 14798 program main 14799 14800 end 14801_ACEOF 14802rm -f conftest.$ac_objext conftest$ac_exeext 14803if { (ac_try="$ac_link" 14804case "(($ac_try" in 14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14806 *) ac_try_echo=$ac_try;; 14807esac 14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14809 (eval "$ac_link") 2>conftest.er1 14810 ac_status=$? 14811 grep -v '^ *+' conftest.er1 >conftest.err 14812 rm -f conftest.er1 14813 cat conftest.err >&5 14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14815 (exit $ac_status); } && { 14816 test -z "$ac_f77_werror_flag" || 14817 test ! -s conftest.err 14818 } && test -s conftest$ac_exeext && 14819 $as_test_x conftest$ac_exeext; then 14820 14821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14822}'` 14823# Check for a 64-bit object if we didn't find anything. 14824if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14825}'`; fi 14826else 14827 echo "$as_me: failed program was:" >&5 14828sed 's/^/| /' conftest.$ac_ext >&5 14829 14830 14831fi 14832 14833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14834 conftest$ac_exeext conftest.$ac_ext 14835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14836 14837 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14838 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" 14839 else 14840 if test "$host_cpu" = ia64; then 14841 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14842 allow_undefined_flag_F77="-z nodefs" 14843 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" 14844 else 14845 # Determine the default libpath from the value encoded in an empty executable. 14846 cat >conftest.$ac_ext <<_ACEOF 14847 program main 14848 14849 end 14850_ACEOF 14851rm -f conftest.$ac_objext conftest$ac_exeext 14852if { (ac_try="$ac_link" 14853case "(($ac_try" in 14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14855 *) ac_try_echo=$ac_try;; 14856esac 14857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14858 (eval "$ac_link") 2>conftest.er1 14859 ac_status=$? 14860 grep -v '^ *+' conftest.er1 >conftest.err 14861 rm -f conftest.er1 14862 cat conftest.err >&5 14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14864 (exit $ac_status); } && { 14865 test -z "$ac_f77_werror_flag" || 14866 test ! -s conftest.err 14867 } && test -s conftest$ac_exeext && 14868 $as_test_x conftest$ac_exeext; then 14869 14870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14871}'` 14872# Check for a 64-bit object if we didn't find anything. 14873if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14874}'`; fi 14875else 14876 echo "$as_me: failed program was:" >&5 14877sed 's/^/| /' conftest.$ac_ext >&5 14878 14879 14880fi 14881 14882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14883 conftest$ac_exeext conftest.$ac_ext 14884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14885 14886 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14887 # Warning - without using the other run time loading flags, 14888 # -berok will link without error, but may produce a broken library. 14889 no_undefined_flag_F77=' ${wl}-bernotok' 14890 allow_undefined_flag_F77=' ${wl}-berok' 14891 # Exported symbols can be pulled into shared objects from archives 14892 whole_archive_flag_spec_F77='$convenience' 14893 archive_cmds_need_lc_F77=yes 14894 # This is similar to how AIX traditionally builds its shared libraries. 14895 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' 14896 fi 14897 fi 14898 ;; 14899 14900 amigaos*) 14901 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)' 14902 hardcode_libdir_flag_spec_F77='-L$libdir' 14903 hardcode_minus_L_F77=yes 14904 # see comment about different semantics on the GNU ld section 14905 ld_shlibs_F77=no 14906 ;; 14907 14908 bsdi[45]*) 14909 export_dynamic_flag_spec_F77=-rdynamic 14910 ;; 14911 14912 cygwin* | mingw* | pw32*) 14913 # When not using gcc, we currently assume that we are using 14914 # Microsoft Visual C++. 14915 # hardcode_libdir_flag_spec is actually meaningless, as there is 14916 # no search path for DLLs. 14917 hardcode_libdir_flag_spec_F77=' ' 14918 allow_undefined_flag_F77=unsupported 14919 # Tell ltmain to make .lib files, not .a files. 14920 libext=lib 14921 # Tell ltmain to make .dll files, not .so files. 14922 shrext_cmds=".dll" 14923 # FIXME: Setting linknames here is a bad hack. 14924 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14925 # The linker will automatically build a .lib file if we build a DLL. 14926 old_archive_From_new_cmds_F77='true' 14927 # FIXME: Should let the user specify the lib program. 14928 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14929 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14930 enable_shared_with_static_runtimes_F77=yes 14931 ;; 14932 14933 darwin* | rhapsody*) 14934 case $host_os in 14935 rhapsody* | darwin1.[012]) 14936 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14937 ;; 14938 *) # Darwin 1.3 on 14939 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14940 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14941 else 14942 case ${MACOSX_DEPLOYMENT_TARGET} in 14943 10.[012]) 14944 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14945 ;; 14946 10.*) 14947 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14948 ;; 14949 esac 14950 fi 14951 ;; 14952 esac 14953 archive_cmds_need_lc_F77=no 14954 hardcode_direct_F77=no 14955 hardcode_automatic_F77=yes 14956 hardcode_shlibpath_var_F77=unsupported 14957 whole_archive_flag_spec_F77='' 14958 link_all_deplibs_F77=yes 14959 if test "$GCC" = yes ; then 14960 output_verbose_link_cmd='echo' 14961 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14962 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14963 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14964 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}' 14965 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}' 14966 else 14967 case $cc_basename in 14968 xlc*) 14969 output_verbose_link_cmd='echo' 14970 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14971 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14973 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14974 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}' 14975 ;; 14976 *) 14977 ld_shlibs_F77=no 14978 ;; 14979 esac 14980 fi 14981 ;; 14982 14983 dgux*) 14984 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14985 hardcode_libdir_flag_spec_F77='-L$libdir' 14986 hardcode_shlibpath_var_F77=no 14987 ;; 14988 14989 freebsd1*) 14990 ld_shlibs_F77=no 14991 ;; 14992 14993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14994 # support. Future versions do this automatically, but an explicit c++rt0.o 14995 # does not break anything, and helps significantly (at the cost of a little 14996 # extra space). 14997 freebsd2.2*) 14998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14999 hardcode_libdir_flag_spec_F77='-R$libdir' 15000 hardcode_direct_F77=yes 15001 hardcode_shlibpath_var_F77=no 15002 ;; 15003 15004 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15005 freebsd2*) 15006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15007 hardcode_direct_F77=yes 15008 hardcode_minus_L_F77=yes 15009 hardcode_shlibpath_var_F77=no 15010 ;; 15011 15012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15013 freebsd* | kfreebsd*-gnu | dragonfly*) 15014 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15015 hardcode_libdir_flag_spec_F77='-R$libdir' 15016 hardcode_direct_F77=yes 15017 hardcode_shlibpath_var_F77=no 15018 ;; 15019 15020 hpux9*) 15021 if test "$GCC" = yes; then 15022 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' 15023 else 15024 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' 15025 fi 15026 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15027 hardcode_libdir_separator_F77=: 15028 hardcode_direct_F77=yes 15029 15030 # hardcode_minus_L: Not really in the search PATH, 15031 # but as the default location of the library. 15032 hardcode_minus_L_F77=yes 15033 export_dynamic_flag_spec_F77='${wl}-E' 15034 ;; 15035 15036 hpux10*) 15037 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15038 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15039 else 15040 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15041 fi 15042 if test "$with_gnu_ld" = no; then 15043 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15044 hardcode_libdir_separator_F77=: 15045 15046 hardcode_direct_F77=yes 15047 export_dynamic_flag_spec_F77='${wl}-E' 15048 15049 # hardcode_minus_L: Not really in the search PATH, 15050 # but as the default location of the library. 15051 hardcode_minus_L_F77=yes 15052 fi 15053 ;; 15054 15055 hpux11*) 15056 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15057 case $host_cpu in 15058 hppa*64*) 15059 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15060 ;; 15061 ia64*) 15062 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15063 ;; 15064 *) 15065 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15066 ;; 15067 esac 15068 else 15069 case $host_cpu in 15070 hppa*64*) 15071 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15072 ;; 15073 ia64*) 15074 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15075 ;; 15076 *) 15077 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15078 ;; 15079 esac 15080 fi 15081 if test "$with_gnu_ld" = no; then 15082 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15083 hardcode_libdir_separator_F77=: 15084 15085 case $host_cpu in 15086 hppa*64*|ia64*) 15087 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15088 hardcode_direct_F77=no 15089 hardcode_shlibpath_var_F77=no 15090 ;; 15091 *) 15092 hardcode_direct_F77=yes 15093 export_dynamic_flag_spec_F77='${wl}-E' 15094 15095 # hardcode_minus_L: Not really in the search PATH, 15096 # but as the default location of the library. 15097 hardcode_minus_L_F77=yes 15098 ;; 15099 esac 15100 fi 15101 ;; 15102 15103 irix5* | irix6* | nonstopux*) 15104 if test "$GCC" = yes; then 15105 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' 15106 else 15107 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' 15108 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15109 fi 15110 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15111 hardcode_libdir_separator_F77=: 15112 link_all_deplibs_F77=yes 15113 ;; 15114 15115 netbsd*) 15116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15118 else 15119 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15120 fi 15121 hardcode_libdir_flag_spec_F77='-R$libdir' 15122 hardcode_direct_F77=yes 15123 hardcode_shlibpath_var_F77=no 15124 ;; 15125 15126 newsos6) 15127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15128 hardcode_direct_F77=yes 15129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15130 hardcode_libdir_separator_F77=: 15131 hardcode_shlibpath_var_F77=no 15132 ;; 15133 15134 openbsd*) 15135 hardcode_direct_F77=yes 15136 hardcode_shlibpath_var_F77=no 15137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15138 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15139 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15140 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15141 export_dynamic_flag_spec_F77='${wl}-E' 15142 else 15143 case $host_os in 15144 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15146 hardcode_libdir_flag_spec_F77='-R$libdir' 15147 ;; 15148 *) 15149 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15150 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15151 ;; 15152 esac 15153 fi 15154 ;; 15155 15156 os2*) 15157 hardcode_libdir_flag_spec_F77='-L$libdir' 15158 hardcode_minus_L_F77=yes 15159 allow_undefined_flag_F77=unsupported 15160 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' 15161 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15162 ;; 15163 15164 osf3*) 15165 if test "$GCC" = yes; then 15166 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15167 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' 15168 else 15169 allow_undefined_flag_F77=' -expect_unresolved \*' 15170 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' 15171 fi 15172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15173 hardcode_libdir_separator_F77=: 15174 ;; 15175 15176 osf4* | osf5*) # as osf3* with the addition of -msym flag 15177 if test "$GCC" = yes; then 15178 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15179 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' 15180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15181 else 15182 allow_undefined_flag_F77=' -expect_unresolved \*' 15183 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' 15184 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~ 15185 $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' 15186 15187 # Both c and cxx compiler support -rpath directly 15188 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15189 fi 15190 hardcode_libdir_separator_F77=: 15191 ;; 15192 15193 solaris*) 15194 no_undefined_flag_F77=' -z text' 15195 if test "$GCC" = yes; then 15196 wlarc='${wl}' 15197 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15198 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15199 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15200 else 15201 wlarc='' 15202 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15203 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15205 fi 15206 hardcode_libdir_flag_spec_F77='-R$libdir' 15207 hardcode_shlibpath_var_F77=no 15208 case $host_os in 15209 solaris2.[0-5] | solaris2.[0-5].*) ;; 15210 *) 15211 # The compiler driver will combine linker options so we 15212 # cannot just pass the convience library names through 15213 # without $wl, iff we do not link with $LD. 15214 # Luckily, gcc supports the same syntax we need for Sun Studio. 15215 # Supported since Solaris 2.6 (maybe 2.5.1?) 15216 case $wlarc in 15217 '') 15218 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15219 *) 15220 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15221 esac ;; 15222 esac 15223 link_all_deplibs_F77=yes 15224 ;; 15225 15226 sunos4*) 15227 if test "x$host_vendor" = xsequent; then 15228 # Use $CC to link under sequent, because it throws in some extra .o 15229 # files that make .init and .fini sections work. 15230 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15231 else 15232 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15233 fi 15234 hardcode_libdir_flag_spec_F77='-L$libdir' 15235 hardcode_direct_F77=yes 15236 hardcode_minus_L_F77=yes 15237 hardcode_shlibpath_var_F77=no 15238 ;; 15239 15240 sysv4) 15241 case $host_vendor in 15242 sni) 15243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15244 hardcode_direct_F77=yes # is this really true??? 15245 ;; 15246 siemens) 15247 ## LD is ld it makes a PLAMLIB 15248 ## CC just makes a GrossModule. 15249 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15250 reload_cmds_F77='$CC -r -o $output$reload_objs' 15251 hardcode_direct_F77=no 15252 ;; 15253 motorola) 15254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15255 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15256 ;; 15257 esac 15258 runpath_var='LD_RUN_PATH' 15259 hardcode_shlibpath_var_F77=no 15260 ;; 15261 15262 sysv4.3*) 15263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15264 hardcode_shlibpath_var_F77=no 15265 export_dynamic_flag_spec_F77='-Bexport' 15266 ;; 15267 15268 sysv4*MP*) 15269 if test -d /usr/nec; then 15270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15271 hardcode_shlibpath_var_F77=no 15272 runpath_var=LD_RUN_PATH 15273 hardcode_runpath_var=yes 15274 ld_shlibs_F77=yes 15275 fi 15276 ;; 15277 15278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15279 no_undefined_flag_F77='${wl}-z,text' 15280 archive_cmds_need_lc_F77=no 15281 hardcode_shlibpath_var_F77=no 15282 runpath_var='LD_RUN_PATH' 15283 15284 if test "$GCC" = yes; then 15285 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15286 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15287 else 15288 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15289 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15290 fi 15291 ;; 15292 15293 sysv5* | sco3.2v5* | sco5v6*) 15294 # Note: We can NOT use -z defs as we might desire, because we do not 15295 # link with -lc, and that would cause any symbols used from libc to 15296 # always be unresolved, which means just about no library would 15297 # ever link correctly. If we're not using GNU ld we use -z text 15298 # though, which does catch some bad symbols but isn't as heavy-handed 15299 # as -z defs. 15300 no_undefined_flag_F77='${wl}-z,text' 15301 allow_undefined_flag_F77='${wl}-z,nodefs' 15302 archive_cmds_need_lc_F77=no 15303 hardcode_shlibpath_var_F77=no 15304 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15305 hardcode_libdir_separator_F77=':' 15306 link_all_deplibs_F77=yes 15307 export_dynamic_flag_spec_F77='${wl}-Bexport' 15308 runpath_var='LD_RUN_PATH' 15309 15310 if test "$GCC" = yes; then 15311 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15312 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15313 else 15314 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15315 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15316 fi 15317 ;; 15318 15319 uts4*) 15320 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15321 hardcode_libdir_flag_spec_F77='-L$libdir' 15322 hardcode_shlibpath_var_F77=no 15323 ;; 15324 15325 *) 15326 ld_shlibs_F77=no 15327 ;; 15328 esac 15329 fi 15330 15331{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15332echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15333test "$ld_shlibs_F77" = no && can_build_shared=no 15334 15335# 15336# Do we need to explicitly link libc? 15337# 15338case "x$archive_cmds_need_lc_F77" in 15339x|xyes) 15340 # Assume -lc should be added 15341 archive_cmds_need_lc_F77=yes 15342 15343 if test "$enable_shared" = yes && test "$GCC" = yes; then 15344 case $archive_cmds_F77 in 15345 *'~'*) 15346 # FIXME: we may have to deal with multi-command sequences. 15347 ;; 15348 '$CC '*) 15349 # Test whether the compiler implicitly links with -lc since on some 15350 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15351 # to ld, don't add -lc before -lgcc. 15352 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15353echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15354 $rm conftest* 15355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15356 15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15358 (eval $ac_compile) 2>&5 15359 ac_status=$? 15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 (exit $ac_status); } 2>conftest.err; then 15362 soname=conftest 15363 lib=conftest 15364 libobjs=conftest.$ac_objext 15365 deplibs= 15366 wl=$lt_prog_compiler_wl_F77 15367 pic_flag=$lt_prog_compiler_pic_F77 15368 compiler_flags=-v 15369 linker_flags=-v 15370 verstring= 15371 output_objdir=. 15372 libname=conftest 15373 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15374 allow_undefined_flag_F77= 15375 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15376 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); } 15380 then 15381 archive_cmds_need_lc_F77=no 15382 else 15383 archive_cmds_need_lc_F77=yes 15384 fi 15385 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15386 else 15387 cat conftest.err 1>&5 15388 fi 15389 $rm conftest* 15390 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15391echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15392 ;; 15393 esac 15394 fi 15395 ;; 15396esac 15397 15398{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15399echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15400library_names_spec= 15401libname_spec='lib$name' 15402soname_spec= 15403shrext_cmds=".so" 15404postinstall_cmds= 15405postuninstall_cmds= 15406finish_cmds= 15407finish_eval= 15408shlibpath_var= 15409shlibpath_overrides_runpath=unknown 15410version_type=none 15411dynamic_linker="$host_os ld.so" 15412sys_lib_dlsearch_path_spec="/lib /usr/lib" 15413if test "$GCC" = yes; then 15414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15415 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15416 # if the path contains ";" then we assume it to be the separator 15417 # otherwise default to the standard path separator (i.e. ":") - it is 15418 # assumed that no part of a normal pathname contains ";" but that should 15419 # okay in the real world where ";" in dirpaths is itself problematic. 15420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15421 else 15422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15423 fi 15424else 15425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15426fi 15427need_lib_prefix=unknown 15428hardcode_into_libs=no 15429 15430# when you set need_version to no, make sure it does not cause -set_version 15431# flags to be left without arguments 15432need_version=unknown 15433 15434case $host_os in 15435aix3*) 15436 version_type=linux 15437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15438 shlibpath_var=LIBPATH 15439 15440 # AIX 3 has no versioning support, so we append a major version to the name. 15441 soname_spec='${libname}${release}${shared_ext}$major' 15442 ;; 15443 15444aix4* | aix5*) 15445 version_type=linux 15446 need_lib_prefix=no 15447 need_version=no 15448 hardcode_into_libs=yes 15449 if test "$host_cpu" = ia64; then 15450 # AIX 5 supports IA64 15451 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15452 shlibpath_var=LD_LIBRARY_PATH 15453 else 15454 # With GCC up to 2.95.x, collect2 would create an import file 15455 # for dependence libraries. The import file would start with 15456 # the line `#! .'. This would cause the generated library to 15457 # depend on `.', always an invalid library. This was fixed in 15458 # development snapshots of GCC prior to 3.0. 15459 case $host_os in 15460 aix4 | aix4.[01] | aix4.[01].*) 15461 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15462 echo ' yes ' 15463 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15464 : 15465 else 15466 can_build_shared=no 15467 fi 15468 ;; 15469 esac 15470 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15471 # soname into executable. Probably we can add versioning support to 15472 # collect2, so additional links can be useful in future. 15473 if test "$aix_use_runtimelinking" = yes; then 15474 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15475 # instead of lib<name>.a to let people know that these are not 15476 # typical AIX shared libraries. 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15478 else 15479 # We preserve .a as extension for shared libraries through AIX4.2 15480 # and later when we are not doing run time linking. 15481 library_names_spec='${libname}${release}.a $libname.a' 15482 soname_spec='${libname}${release}${shared_ext}$major' 15483 fi 15484 shlibpath_var=LIBPATH 15485 fi 15486 ;; 15487 15488amigaos*) 15489 library_names_spec='$libname.ixlibrary $libname.a' 15490 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15491 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' 15492 ;; 15493 15494beos*) 15495 library_names_spec='${libname}${shared_ext}' 15496 dynamic_linker="$host_os ld.so" 15497 shlibpath_var=LIBRARY_PATH 15498 ;; 15499 15500bsdi[45]*) 15501 version_type=linux 15502 need_version=no 15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15504 soname_spec='${libname}${release}${shared_ext}$major' 15505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15506 shlibpath_var=LD_LIBRARY_PATH 15507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15509 # the default ld.so.conf also contains /usr/contrib/lib and 15510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15511 # libtool to hard-code these into programs 15512 ;; 15513 15514cygwin* | mingw* | pw32*) 15515 version_type=windows 15516 shrext_cmds=".dll" 15517 need_version=no 15518 need_lib_prefix=no 15519 15520 case $GCC,$host_os in 15521 yes,cygwin* | yes,mingw* | yes,pw32*) 15522 library_names_spec='$libname.dll.a' 15523 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15524 postinstall_cmds='base_file=`basename \${file}`~ 15525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15526 dldir=$destdir/`dirname \$dlpath`~ 15527 test -d \$dldir || mkdir -p \$dldir~ 15528 $install_prog $dir/$dlname \$dldir/$dlname~ 15529 chmod a+x \$dldir/$dlname' 15530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15531 dlpath=$dir/\$dldll~ 15532 $rm \$dlpath' 15533 shlibpath_overrides_runpath=yes 15534 15535 case $host_os in 15536 cygwin*) 15537 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15539 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15540 ;; 15541 mingw*) 15542 # MinGW DLLs use traditional 'lib' prefix 15543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15545 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15546 # It is most probably a Windows format PATH printed by 15547 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15548 # path with ; separators, and with drive letters. We can handle the 15549 # drive letters (cygwin fileutils understands them), so leave them, 15550 # especially as we might pass files found there to a mingw objdump, 15551 # which wouldn't understand a cygwinified path. Ahh. 15552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15553 else 15554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15555 fi 15556 ;; 15557 pw32*) 15558 # pw32 DLLs use 'pw' prefix rather than 'lib' 15559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15560 ;; 15561 esac 15562 ;; 15563 15564 linux*) 15565 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 15566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15567 supports_anon_versioning=no 15568 case `$LD -v 2>/dev/null` in 15569 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15572 *\ 2.11.*) ;; # other 2.11 versions 15573 *) supports_anon_versioning=yes ;; 15574 esac 15575 if test $supports_anon_versioning = yes; then 15576 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 15577cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15578$echo "local: *; };" >> $output_objdir/$libname.ver~ 15579 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15580 else 15581 $archive_expsym_cmds="$archive_cmds" 15582 fi 15583 else 15584 ld_shlibs=no 15585 fi 15586 ;; 15587 15588 *) 15589 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15590 ;; 15591 esac 15592 dynamic_linker='Win32 ld.exe' 15593 # FIXME: first we should search . and the directory the executable is in 15594 shlibpath_var=PATH 15595 ;; 15596 15597darwin* | rhapsody*) 15598 dynamic_linker="$host_os dyld" 15599 version_type=darwin 15600 need_lib_prefix=no 15601 need_version=no 15602 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15603 soname_spec='${libname}${release}${major}$shared_ext' 15604 shlibpath_overrides_runpath=yes 15605 shlibpath_var=DYLD_LIBRARY_PATH 15606 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15607 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15608 if test "$GCC" = yes; then 15609 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15610 else 15611 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15612 fi 15613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15614 ;; 15615 15616dgux*) 15617 version_type=linux 15618 need_lib_prefix=no 15619 need_version=no 15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15621 soname_spec='${libname}${release}${shared_ext}$major' 15622 shlibpath_var=LD_LIBRARY_PATH 15623 ;; 15624 15625freebsd1*) 15626 dynamic_linker=no 15627 ;; 15628 15629kfreebsd*-gnu) 15630 version_type=linux 15631 need_lib_prefix=no 15632 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 15636 shlibpath_overrides_runpath=no 15637 hardcode_into_libs=yes 15638 dynamic_linker='GNU ld.so' 15639 ;; 15640 15641freebsd* | dragonfly*) 15642 # DragonFly does not have aout. When/if they implement a new 15643 # versioning mechanism, adjust this. 15644 if test -x /usr/bin/objformat; then 15645 objformat=`/usr/bin/objformat` 15646 else 15647 case $host_os in 15648 freebsd[123]*) objformat=aout ;; 15649 *) objformat=elf ;; 15650 esac 15651 fi 15652 # Handle Gentoo/FreeBSD as it was Linux 15653 case $host_vendor in 15654 gentoo) 15655 version_type=linux ;; 15656 *) 15657 version_type=freebsd-$objformat ;; 15658 esac 15659 15660 case $version_type in 15661 freebsd-elf*) 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15663 need_version=no 15664 need_lib_prefix=no 15665 ;; 15666 freebsd-*) 15667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15668 need_version=yes 15669 ;; 15670 linux) 15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15672 soname_spec='${libname}${release}${shared_ext}$major' 15673 need_lib_prefix=no 15674 need_version=no 15675 ;; 15676 esac 15677 shlibpath_var=LD_LIBRARY_PATH 15678 case $host_os in 15679 freebsd2*) 15680 shlibpath_overrides_runpath=yes 15681 ;; 15682 freebsd3.[01]* | freebsdelf3.[01]*) 15683 shlibpath_overrides_runpath=yes 15684 hardcode_into_libs=yes 15685 ;; 15686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15688 shlibpath_overrides_runpath=no 15689 hardcode_into_libs=yes 15690 ;; 15691 freebsd*) # from 4.6 on 15692 shlibpath_overrides_runpath=yes 15693 hardcode_into_libs=yes 15694 ;; 15695 esac 15696 ;; 15697 15698gnu*) 15699 version_type=linux 15700 need_lib_prefix=no 15701 need_version=no 15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15703 soname_spec='${libname}${release}${shared_ext}$major' 15704 shlibpath_var=LD_LIBRARY_PATH 15705 hardcode_into_libs=yes 15706 ;; 15707 15708hpux9* | hpux10* | hpux11*) 15709 # Give a soname corresponding to the major version so that dld.sl refuses to 15710 # link against other versions. 15711 version_type=sunos 15712 need_lib_prefix=no 15713 need_version=no 15714 case $host_cpu in 15715 ia64*) 15716 shrext_cmds='.so' 15717 hardcode_into_libs=yes 15718 dynamic_linker="$host_os dld.so" 15719 shlibpath_var=LD_LIBRARY_PATH 15720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15722 soname_spec='${libname}${release}${shared_ext}$major' 15723 if test "X$HPUX_IA64_MODE" = X32; then 15724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15725 else 15726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15727 fi 15728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15729 ;; 15730 hppa*64*) 15731 shrext_cmds='.sl' 15732 hardcode_into_libs=yes 15733 dynamic_linker="$host_os dld.sl" 15734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15740 ;; 15741 *) 15742 shrext_cmds='.sl' 15743 dynamic_linker="$host_os dld.sl" 15744 shlibpath_var=SHLIB_PATH 15745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 ;; 15749 esac 15750 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15751 postinstall_cmds='chmod 555 $lib' 15752 ;; 15753 15754interix3*) 15755 version_type=linux 15756 need_lib_prefix=no 15757 need_version=no 15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15759 soname_spec='${libname}${release}${shared_ext}$major' 15760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15761 shlibpath_var=LD_LIBRARY_PATH 15762 shlibpath_overrides_runpath=no 15763 hardcode_into_libs=yes 15764 ;; 15765 15766irix5* | irix6* | nonstopux*) 15767 case $host_os in 15768 nonstopux*) version_type=nonstopux ;; 15769 *) 15770 if test "$lt_cv_prog_gnu_ld" = yes; then 15771 version_type=linux 15772 else 15773 version_type=irix 15774 fi ;; 15775 esac 15776 need_lib_prefix=no 15777 need_version=no 15778 soname_spec='${libname}${release}${shared_ext}$major' 15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15780 case $host_os in 15781 irix5* | nonstopux*) 15782 libsuff= shlibsuff= 15783 ;; 15784 *) 15785 case $LD in # libtool.m4 will add one of these switches to LD 15786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15787 libsuff= shlibsuff= libmagic=32-bit;; 15788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15789 libsuff=32 shlibsuff=N32 libmagic=N32;; 15790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15791 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15792 *) libsuff= shlibsuff= libmagic=never-match;; 15793 esac 15794 ;; 15795 esac 15796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15797 shlibpath_overrides_runpath=no 15798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15800 hardcode_into_libs=yes 15801 ;; 15802 15803# No shared lib support for Linux oldld, aout, or coff. 15804linux*oldld* | linux*aout* | linux*coff*) 15805 dynamic_linker=no 15806 ;; 15807 15808# This must be Linux ELF. 15809linux*) 15810 version_type=linux 15811 need_lib_prefix=no 15812 need_version=no 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15814 soname_spec='${libname}${release}${shared_ext}$major' 15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15816 shlibpath_var=LD_LIBRARY_PATH 15817 shlibpath_overrides_runpath=no 15818 # This implies no fast_install, which is unacceptable. 15819 # Some rework will be needed to allow for fast_install 15820 # before this can be enabled. 15821 hardcode_into_libs=yes 15822 15823 # Append ld.so.conf contents to the search path 15824 if test -f /etc/ld.so.conf; then 15825 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15827 fi 15828 15829 # We used to test for /lib/ld.so.1 and disable shared libraries on 15830 # powerpc, because MkLinux only supported shared libraries with the 15831 # GNU dynamic linker. Since this was broken with cross compilers, 15832 # most powerpc-linux boxes support dynamic linking these days and 15833 # people can always --disable-shared, the test was removed, and we 15834 # assume the GNU/Linux dynamic linker is in use. 15835 dynamic_linker='GNU/Linux ld.so' 15836 ;; 15837 15838knetbsd*-gnu) 15839 version_type=linux 15840 need_lib_prefix=no 15841 need_version=no 15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15843 soname_spec='${libname}${release}${shared_ext}$major' 15844 shlibpath_var=LD_LIBRARY_PATH 15845 shlibpath_overrides_runpath=no 15846 hardcode_into_libs=yes 15847 dynamic_linker='GNU ld.so' 15848 ;; 15849 15850netbsd*) 15851 version_type=sunos 15852 need_lib_prefix=no 15853 need_version=no 15854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15857 dynamic_linker='NetBSD (a.out) ld.so' 15858 else 15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15860 soname_spec='${libname}${release}${shared_ext}$major' 15861 dynamic_linker='NetBSD ld.elf_so' 15862 fi 15863 shlibpath_var=LD_LIBRARY_PATH 15864 shlibpath_overrides_runpath=yes 15865 hardcode_into_libs=yes 15866 ;; 15867 15868newsos6) 15869 version_type=linux 15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15871 shlibpath_var=LD_LIBRARY_PATH 15872 shlibpath_overrides_runpath=yes 15873 ;; 15874 15875nto-qnx*) 15876 version_type=linux 15877 need_lib_prefix=no 15878 need_version=no 15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15880 soname_spec='${libname}${release}${shared_ext}$major' 15881 shlibpath_var=LD_LIBRARY_PATH 15882 shlibpath_overrides_runpath=yes 15883 ;; 15884 15885openbsd*) 15886 version_type=sunos 15887 sys_lib_dlsearch_path_spec="/usr/lib" 15888 need_lib_prefix=no 15889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15890 case $host_os in 15891 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15892 *) need_version=no ;; 15893 esac 15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15896 shlibpath_var=LD_LIBRARY_PATH 15897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15898 case $host_os in 15899 openbsd2.[89] | openbsd2.[89].*) 15900 shlibpath_overrides_runpath=no 15901 ;; 15902 *) 15903 shlibpath_overrides_runpath=yes 15904 ;; 15905 esac 15906 else 15907 shlibpath_overrides_runpath=yes 15908 fi 15909 ;; 15910 15911os2*) 15912 libname_spec='$name' 15913 shrext_cmds=".dll" 15914 need_lib_prefix=no 15915 library_names_spec='$libname${shared_ext} $libname.a' 15916 dynamic_linker='OS/2 ld.exe' 15917 shlibpath_var=LIBPATH 15918 ;; 15919 15920osf3* | osf4* | osf5*) 15921 version_type=osf 15922 need_lib_prefix=no 15923 need_version=no 15924 soname_spec='${libname}${release}${shared_ext}$major' 15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15926 shlibpath_var=LD_LIBRARY_PATH 15927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15929 ;; 15930 15931solaris*) 15932 version_type=linux 15933 need_lib_prefix=no 15934 need_version=no 15935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15936 soname_spec='${libname}${release}${shared_ext}$major' 15937 shlibpath_var=LD_LIBRARY_PATH 15938 shlibpath_overrides_runpath=yes 15939 hardcode_into_libs=yes 15940 # ldd complains unless libraries are executable 15941 postinstall_cmds='chmod +x $lib' 15942 ;; 15943 15944sunos4*) 15945 version_type=sunos 15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15948 shlibpath_var=LD_LIBRARY_PATH 15949 shlibpath_overrides_runpath=yes 15950 if test "$with_gnu_ld" = yes; then 15951 need_lib_prefix=no 15952 fi 15953 need_version=yes 15954 ;; 15955 15956sysv4 | sysv4.3*) 15957 version_type=linux 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15959 soname_spec='${libname}${release}${shared_ext}$major' 15960 shlibpath_var=LD_LIBRARY_PATH 15961 case $host_vendor in 15962 sni) 15963 shlibpath_overrides_runpath=no 15964 need_lib_prefix=no 15965 export_dynamic_flag_spec='${wl}-Blargedynsym' 15966 runpath_var=LD_RUN_PATH 15967 ;; 15968 siemens) 15969 need_lib_prefix=no 15970 ;; 15971 motorola) 15972 need_lib_prefix=no 15973 need_version=no 15974 shlibpath_overrides_runpath=no 15975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15976 ;; 15977 esac 15978 ;; 15979 15980sysv4*MP*) 15981 if test -d /usr/nec ;then 15982 version_type=linux 15983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15984 soname_spec='$libname${shared_ext}.$major' 15985 shlibpath_var=LD_LIBRARY_PATH 15986 fi 15987 ;; 15988 15989sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15990 version_type=freebsd-elf 15991 need_lib_prefix=no 15992 need_version=no 15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 shlibpath_var=LD_LIBRARY_PATH 15996 hardcode_into_libs=yes 15997 if test "$with_gnu_ld" = yes; then 15998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15999 shlibpath_overrides_runpath=no 16000 else 16001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16002 shlibpath_overrides_runpath=yes 16003 case $host_os in 16004 sco3.2v5*) 16005 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16006 ;; 16007 esac 16008 fi 16009 sys_lib_dlsearch_path_spec='/usr/lib' 16010 ;; 16011 16012uts4*) 16013 version_type=linux 16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16015 soname_spec='${libname}${release}${shared_ext}$major' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 ;; 16018 16019*) 16020 dynamic_linker=no 16021 ;; 16022esac 16023{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16024echo "${ECHO_T}$dynamic_linker" >&6; } 16025test "$dynamic_linker" = no && can_build_shared=no 16026 16027variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16028if test "$GCC" = yes; then 16029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16030fi 16031 16032{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16033echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16034hardcode_action_F77= 16035if test -n "$hardcode_libdir_flag_spec_F77" || \ 16036 test -n "$runpath_var_F77" || \ 16037 test "X$hardcode_automatic_F77" = "Xyes" ; then 16038 16039 # We can hardcode non-existant directories. 16040 if test "$hardcode_direct_F77" != no && 16041 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16042 # have to relink, otherwise we might link with an installed library 16043 # when we should be linking with a yet-to-be-installed one 16044 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16045 test "$hardcode_minus_L_F77" != no; then 16046 # Linking always hardcodes the temporary library directory. 16047 hardcode_action_F77=relink 16048 else 16049 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16050 hardcode_action_F77=immediate 16051 fi 16052else 16053 # We cannot hardcode anything, or else we can only hardcode existing 16054 # directories. 16055 hardcode_action_F77=unsupported 16056fi 16057{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16058echo "${ECHO_T}$hardcode_action_F77" >&6; } 16059 16060if test "$hardcode_action_F77" = relink; then 16061 # Fast installation is not supported 16062 enable_fast_install=no 16063elif test "$shlibpath_overrides_runpath" = yes || 16064 test "$enable_shared" = no; then 16065 # Fast installation is not necessary 16066 enable_fast_install=needless 16067fi 16068 16069 16070# The else clause should only fire when bootstrapping the 16071# libtool distribution, otherwise you forgot to ship ltmain.sh 16072# with your package, and you will get complaints that there are 16073# no rules to generate ltmain.sh. 16074if test -f "$ltmain"; then 16075 # See if we are running on zsh, and set the options which allow our commands through 16076 # without removal of \ escapes. 16077 if test -n "${ZSH_VERSION+set}" ; then 16078 setopt NO_GLOB_SUBST 16079 fi 16080 # Now quote all the things that may contain metacharacters while being 16081 # careful not to overquote the AC_SUBSTed values. We take copies of the 16082 # variables and quote the copies for generation of the libtool script. 16083 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16084 SED SHELL STRIP \ 16085 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16086 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16087 deplibs_check_method reload_flag reload_cmds need_locks \ 16088 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16089 lt_cv_sys_global_symbol_to_c_name_address \ 16090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16091 old_postinstall_cmds old_postuninstall_cmds \ 16092 compiler_F77 \ 16093 CC_F77 \ 16094 LD_F77 \ 16095 lt_prog_compiler_wl_F77 \ 16096 lt_prog_compiler_pic_F77 \ 16097 lt_prog_compiler_static_F77 \ 16098 lt_prog_compiler_no_builtin_flag_F77 \ 16099 export_dynamic_flag_spec_F77 \ 16100 thread_safe_flag_spec_F77 \ 16101 whole_archive_flag_spec_F77 \ 16102 enable_shared_with_static_runtimes_F77 \ 16103 old_archive_cmds_F77 \ 16104 old_archive_from_new_cmds_F77 \ 16105 predep_objects_F77 \ 16106 postdep_objects_F77 \ 16107 predeps_F77 \ 16108 postdeps_F77 \ 16109 compiler_lib_search_path_F77 \ 16110 archive_cmds_F77 \ 16111 archive_expsym_cmds_F77 \ 16112 postinstall_cmds_F77 \ 16113 postuninstall_cmds_F77 \ 16114 old_archive_from_expsyms_cmds_F77 \ 16115 allow_undefined_flag_F77 \ 16116 no_undefined_flag_F77 \ 16117 export_symbols_cmds_F77 \ 16118 hardcode_libdir_flag_spec_F77 \ 16119 hardcode_libdir_flag_spec_ld_F77 \ 16120 hardcode_libdir_separator_F77 \ 16121 hardcode_automatic_F77 \ 16122 module_cmds_F77 \ 16123 module_expsym_cmds_F77 \ 16124 lt_cv_prog_compiler_c_o_F77 \ 16125 exclude_expsyms_F77 \ 16126 include_expsyms_F77; do 16127 16128 case $var in 16129 old_archive_cmds_F77 | \ 16130 old_archive_from_new_cmds_F77 | \ 16131 archive_cmds_F77 | \ 16132 archive_expsym_cmds_F77 | \ 16133 module_cmds_F77 | \ 16134 module_expsym_cmds_F77 | \ 16135 old_archive_from_expsyms_cmds_F77 | \ 16136 export_symbols_cmds_F77 | \ 16137 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16138 postinstall_cmds | postuninstall_cmds | \ 16139 old_postinstall_cmds | old_postuninstall_cmds | \ 16140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16141 # Double-quote double-evaled strings. 16142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16143 ;; 16144 *) 16145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16146 ;; 16147 esac 16148 done 16149 16150 case $lt_echo in 16151 *'\$0 --fallback-echo"') 16152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16153 ;; 16154 esac 16155 16156cfgfile="$ofile" 16157 16158 cat <<__EOF__ >> "$cfgfile" 16159# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16160 16161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16162 16163# Shell to use when invoking shell scripts. 16164SHELL=$lt_SHELL 16165 16166# Whether or not to build shared libraries. 16167build_libtool_libs=$enable_shared 16168 16169# Whether or not to build static libraries. 16170build_old_libs=$enable_static 16171 16172# Whether or not to add -lc for building shared libraries. 16173build_libtool_need_lc=$archive_cmds_need_lc_F77 16174 16175# Whether or not to disallow shared libs when runtime libs are static 16176allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16177 16178# Whether or not to optimize for fast installation. 16179fast_install=$enable_fast_install 16180 16181# The host system. 16182host_alias=$host_alias 16183host=$host 16184host_os=$host_os 16185 16186# The build system. 16187build_alias=$build_alias 16188build=$build 16189build_os=$build_os 16190 16191# An echo program that does not interpret backslashes. 16192echo=$lt_echo 16193 16194# The archiver. 16195AR=$lt_AR 16196AR_FLAGS=$lt_AR_FLAGS 16197 16198# A C compiler. 16199LTCC=$lt_LTCC 16200 16201# LTCC compiler flags. 16202LTCFLAGS=$lt_LTCFLAGS 16203 16204# A language-specific compiler. 16205CC=$lt_compiler_F77 16206 16207# Is the compiler the GNU C compiler? 16208with_gcc=$GCC_F77 16209 16210# An ERE matcher. 16211EGREP=$lt_EGREP 16212 16213# The linker used to build libraries. 16214LD=$lt_LD_F77 16215 16216# Whether we need hard or soft links. 16217LN_S=$lt_LN_S 16218 16219# A BSD-compatible nm program. 16220NM=$lt_NM 16221 16222# A symbol stripping program 16223STRIP=$lt_STRIP 16224 16225# Used to examine libraries when file_magic_cmd begins "file" 16226MAGIC_CMD=$MAGIC_CMD 16227 16228# Used on cygwin: DLL creation program. 16229DLLTOOL="$DLLTOOL" 16230 16231# Used on cygwin: object dumper. 16232OBJDUMP="$OBJDUMP" 16233 16234# Used on cygwin: assembler. 16235AS="$AS" 16236 16237# The name of the directory that contains temporary libtool files. 16238objdir=$objdir 16239 16240# How to create reloadable object files. 16241reload_flag=$lt_reload_flag 16242reload_cmds=$lt_reload_cmds 16243 16244# How to pass a linker flag through the compiler. 16245wl=$lt_lt_prog_compiler_wl_F77 16246 16247# Object file suffix (normally "o"). 16248objext="$ac_objext" 16249 16250# Old archive suffix (normally "a"). 16251libext="$libext" 16252 16253# Shared library suffix (normally ".so"). 16254shrext_cmds='$shrext_cmds' 16255 16256# Executable file suffix (normally ""). 16257exeext="$exeext" 16258 16259# Additional compiler flags for building library objects. 16260pic_flag=$lt_lt_prog_compiler_pic_F77 16261pic_mode=$pic_mode 16262 16263# What is the maximum length of a command? 16264max_cmd_len=$lt_cv_sys_max_cmd_len 16265 16266# Does compiler simultaneously support -c and -o options? 16267compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16268 16269# Must we lock files when doing compilation? 16270need_locks=$lt_need_locks 16271 16272# Do we need the lib prefix for modules? 16273need_lib_prefix=$need_lib_prefix 16274 16275# Do we need a version for libraries? 16276need_version=$need_version 16277 16278# Whether dlopen is supported. 16279dlopen_support=$enable_dlopen 16280 16281# Whether dlopen of programs is supported. 16282dlopen_self=$enable_dlopen_self 16283 16284# Whether dlopen of statically linked programs is supported. 16285dlopen_self_static=$enable_dlopen_self_static 16286 16287# Compiler flag to prevent dynamic linking. 16288link_static_flag=$lt_lt_prog_compiler_static_F77 16289 16290# Compiler flag to turn off builtin functions. 16291no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16292 16293# Compiler flag to allow reflexive dlopens. 16294export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16295 16296# Compiler flag to generate shared objects directly from archives. 16297whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16298 16299# Compiler flag to generate thread-safe objects. 16300thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16301 16302# Library versioning type. 16303version_type=$version_type 16304 16305# Format of library name prefix. 16306libname_spec=$lt_libname_spec 16307 16308# List of archive names. First name is the real one, the rest are links. 16309# The last name is the one that the linker finds with -lNAME. 16310library_names_spec=$lt_library_names_spec 16311 16312# The coded name of the library, if different from the real name. 16313soname_spec=$lt_soname_spec 16314 16315# Commands used to build and install an old-style archive. 16316RANLIB=$lt_RANLIB 16317old_archive_cmds=$lt_old_archive_cmds_F77 16318old_postinstall_cmds=$lt_old_postinstall_cmds 16319old_postuninstall_cmds=$lt_old_postuninstall_cmds 16320 16321# Create an old-style archive from a shared archive. 16322old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16323 16324# Create a temporary old-style archive to link instead of a shared archive. 16325old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16326 16327# Commands used to build and install a shared archive. 16328archive_cmds=$lt_archive_cmds_F77 16329archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16330postinstall_cmds=$lt_postinstall_cmds 16331postuninstall_cmds=$lt_postuninstall_cmds 16332 16333# Commands used to build a loadable module (assumed same as above if empty) 16334module_cmds=$lt_module_cmds_F77 16335module_expsym_cmds=$lt_module_expsym_cmds_F77 16336 16337# Commands to strip libraries. 16338old_striplib=$lt_old_striplib 16339striplib=$lt_striplib 16340 16341# Dependencies to place before the objects being linked to create a 16342# shared library. 16343predep_objects=$lt_predep_objects_F77 16344 16345# Dependencies to place after the objects being linked to create a 16346# shared library. 16347postdep_objects=$lt_postdep_objects_F77 16348 16349# Dependencies to place before the objects being linked to create a 16350# shared library. 16351predeps=$lt_predeps_F77 16352 16353# Dependencies to place after the objects being linked to create a 16354# shared library. 16355postdeps=$lt_postdeps_F77 16356 16357# The library search path used internally by the compiler when linking 16358# a shared library. 16359compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16360 16361# Method to check whether dependent libraries are shared objects. 16362deplibs_check_method=$lt_deplibs_check_method 16363 16364# Command to use when deplibs_check_method == file_magic. 16365file_magic_cmd=$lt_file_magic_cmd 16366 16367# Flag that allows shared libraries with undefined symbols to be built. 16368allow_undefined_flag=$lt_allow_undefined_flag_F77 16369 16370# Flag that forces no undefined symbols. 16371no_undefined_flag=$lt_no_undefined_flag_F77 16372 16373# Commands used to finish a libtool library installation in a directory. 16374finish_cmds=$lt_finish_cmds 16375 16376# Same as above, but a single script fragment to be evaled but not shown. 16377finish_eval=$lt_finish_eval 16378 16379# Take the output of nm and produce a listing of raw symbols and C names. 16380global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16381 16382# Transform the output of nm in a proper C declaration 16383global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16384 16385# Transform the output of nm in a C name address pair 16386global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16387 16388# This is the shared library runtime path variable. 16389runpath_var=$runpath_var 16390 16391# This is the shared library path variable. 16392shlibpath_var=$shlibpath_var 16393 16394# Is shlibpath searched before the hard-coded library search path? 16395shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16396 16397# How to hardcode a shared library path into an executable. 16398hardcode_action=$hardcode_action_F77 16399 16400# Whether we should hardcode library paths into libraries. 16401hardcode_into_libs=$hardcode_into_libs 16402 16403# Flag to hardcode \$libdir into a binary during linking. 16404# This must work even if \$libdir does not exist. 16405hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16406 16407# If ld is used when linking, flag to hardcode \$libdir into 16408# a binary during linking. This must work even if \$libdir does 16409# not exist. 16410hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16411 16412# Whether we need a single -rpath flag with a separated argument. 16413hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16414 16415# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16416# resulting binary. 16417hardcode_direct=$hardcode_direct_F77 16418 16419# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16420# resulting binary. 16421hardcode_minus_L=$hardcode_minus_L_F77 16422 16423# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16424# the resulting binary. 16425hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16426 16427# Set to yes if building a shared library automatically hardcodes DIR into the library 16428# and all subsequent libraries and executables linked against it. 16429hardcode_automatic=$hardcode_automatic_F77 16430 16431# Variables whose values should be saved in libtool wrapper scripts and 16432# restored at relink time. 16433variables_saved_for_relink="$variables_saved_for_relink" 16434 16435# Whether libtool must link a program against all its dependency libraries. 16436link_all_deplibs=$link_all_deplibs_F77 16437 16438# Compile-time system search path for libraries 16439sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16440 16441# Run-time system search path for libraries 16442sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16443 16444# Fix the shell variable \$srcfile for the compiler. 16445fix_srcfile_path="$fix_srcfile_path_F77" 16446 16447# Set to yes if exported symbols are required. 16448always_export_symbols=$always_export_symbols_F77 16449 16450# The commands to list exported symbols. 16451export_symbols_cmds=$lt_export_symbols_cmds_F77 16452 16453# The commands to extract the exported symbol list from a shared archive. 16454extract_expsyms_cmds=$lt_extract_expsyms_cmds 16455 16456# Symbols that should not be listed in the preloaded symbols. 16457exclude_expsyms=$lt_exclude_expsyms_F77 16458 16459# Symbols that must always be exported. 16460include_expsyms=$lt_include_expsyms_F77 16461 16462# ### END LIBTOOL TAG CONFIG: $tagname 16463 16464__EOF__ 16465 16466 16467else 16468 # If there is no Makefile yet, we rely on a make rule to execute 16469 # `config.status --recheck' to rerun these tests and create the 16470 # libtool script then. 16471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16472 if test -f "$ltmain_in"; then 16473 test -f Makefile && make "$ltmain" 16474 fi 16475fi 16476 16477 16478ac_ext=c 16479ac_cpp='$CPP $CPPFLAGS' 16480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16482ac_compiler_gnu=$ac_cv_c_compiler_gnu 16483 16484CC="$lt_save_CC" 16485 16486 else 16487 tagname="" 16488 fi 16489 ;; 16490 16491 GCJ) 16492 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16493 16494 16495# Source file extension for Java test sources. 16496ac_ext=java 16497 16498# Object file extension for compiled Java test sources. 16499objext=o 16500objext_GCJ=$objext 16501 16502# Code to be used in simple compile tests 16503lt_simple_compile_test_code="class foo {}\n" 16504 16505# Code to be used in simple link tests 16506lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16507 16508# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16509 16510# If no C compiler was specified, use CC. 16511LTCC=${LTCC-"$CC"} 16512 16513# If no C compiler flags were specified, use CFLAGS. 16514LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16515 16516# Allow CC to be a program name with arguments. 16517compiler=$CC 16518 16519 16520# save warnings/boilerplate of simple test code 16521ac_outfile=conftest.$ac_objext 16522printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16523eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16524_lt_compiler_boilerplate=`cat conftest.err` 16525$rm conftest* 16526 16527ac_outfile=conftest.$ac_objext 16528printf "$lt_simple_link_test_code" >conftest.$ac_ext 16529eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16530_lt_linker_boilerplate=`cat conftest.err` 16531$rm conftest* 16532 16533 16534# Allow CC to be a program name with arguments. 16535lt_save_CC="$CC" 16536CC=${GCJ-"gcj"} 16537compiler=$CC 16538compiler_GCJ=$CC 16539for cc_temp in $compiler""; do 16540 case $cc_temp in 16541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16543 \-*) ;; 16544 *) break;; 16545 esac 16546done 16547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16548 16549 16550# GCJ did not exist at the time GCC didn't implicitly link libc in. 16551archive_cmds_need_lc_GCJ=no 16552 16553old_archive_cmds_GCJ=$old_archive_cmds 16554 16555 16556lt_prog_compiler_no_builtin_flag_GCJ= 16557 16558if test "$GCC" = yes; then 16559 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16560 16561 16562{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16563echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16564if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16565 echo $ECHO_N "(cached) $ECHO_C" >&6 16566else 16567 lt_cv_prog_compiler_rtti_exceptions=no 16568 ac_outfile=conftest.$ac_objext 16569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16570 lt_compiler_flag="-fno-rtti -fno-exceptions" 16571 # Insert the option either (1) after the last *FLAGS variable, or 16572 # (2) before a word containing "conftest.", or (3) at the end. 16573 # Note that $ac_compile itself does not contain backslashes and begins 16574 # with a dollar sign (not a hyphen), so the echo should work correctly. 16575 # The option is referenced via a variable to avoid confusing sed. 16576 lt_compile=`echo "$ac_compile" | $SED \ 16577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16579 -e 's:$: $lt_compiler_flag:'` 16580 (eval echo "\"\$as_me:16580: $lt_compile\"" >&5) 16581 (eval "$lt_compile" 2>conftest.err) 16582 ac_status=$? 16583 cat conftest.err >&5 16584 echo "$as_me:16584: \$? = $ac_status" >&5 16585 if (exit $ac_status) && test -s "$ac_outfile"; then 16586 # The compiler can only warn and ignore the option if not recognized 16587 # So say no if there are warnings other than the usual output. 16588 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16591 lt_cv_prog_compiler_rtti_exceptions=yes 16592 fi 16593 fi 16594 $rm conftest* 16595 16596fi 16597{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16598echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16599 16600if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16601 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16602else 16603 : 16604fi 16605 16606fi 16607 16608lt_prog_compiler_wl_GCJ= 16609lt_prog_compiler_pic_GCJ= 16610lt_prog_compiler_static_GCJ= 16611 16612{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16613echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16614 16615 if test "$GCC" = yes; then 16616 lt_prog_compiler_wl_GCJ='-Wl,' 16617 lt_prog_compiler_static_GCJ='-static' 16618 16619 case $host_os in 16620 aix*) 16621 # All AIX code is PIC. 16622 if test "$host_cpu" = ia64; then 16623 # AIX 5 now supports IA64 processor 16624 lt_prog_compiler_static_GCJ='-Bstatic' 16625 fi 16626 ;; 16627 16628 amigaos*) 16629 # FIXME: we need at least 68020 code to build shared libraries, but 16630 # adding the `-m68020' flag to GCC prevents building anything better, 16631 # like `-m68040'. 16632 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16633 ;; 16634 16635 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16636 # PIC is the default for these OSes. 16637 ;; 16638 16639 mingw* | pw32* | os2*) 16640 # This hack is so that the source file can tell whether it is being 16641 # built for inclusion in a dll (and should export symbols for example). 16642 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16643 ;; 16644 16645 darwin* | rhapsody*) 16646 # PIC is the default on this platform 16647 # Common symbols not allowed in MH_DYLIB files 16648 lt_prog_compiler_pic_GCJ='-fno-common' 16649 ;; 16650 16651 interix3*) 16652 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16653 # Instead, we relocate shared libraries at runtime. 16654 ;; 16655 16656 msdosdjgpp*) 16657 # Just because we use GCC doesn't mean we suddenly get shared libraries 16658 # on systems that don't support them. 16659 lt_prog_compiler_can_build_shared_GCJ=no 16660 enable_shared=no 16661 ;; 16662 16663 sysv4*MP*) 16664 if test -d /usr/nec; then 16665 lt_prog_compiler_pic_GCJ=-Kconform_pic 16666 fi 16667 ;; 16668 16669 hpux*) 16670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16671 # not for PA HP-UX. 16672 case $host_cpu in 16673 hppa*64*|ia64*) 16674 # +Z the default 16675 ;; 16676 *) 16677 lt_prog_compiler_pic_GCJ='-fPIC' 16678 ;; 16679 esac 16680 ;; 16681 16682 *) 16683 lt_prog_compiler_pic_GCJ='-fPIC' 16684 ;; 16685 esac 16686 else 16687 # PORTME Check for flag to pass linker flags through the system compiler. 16688 case $host_os in 16689 aix*) 16690 lt_prog_compiler_wl_GCJ='-Wl,' 16691 if test "$host_cpu" = ia64; then 16692 # AIX 5 now supports IA64 processor 16693 lt_prog_compiler_static_GCJ='-Bstatic' 16694 else 16695 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16696 fi 16697 ;; 16698 darwin*) 16699 # PIC is the default on this platform 16700 # Common symbols not allowed in MH_DYLIB files 16701 case $cc_basename in 16702 xlc*) 16703 lt_prog_compiler_pic_GCJ='-qnocommon' 16704 lt_prog_compiler_wl_GCJ='-Wl,' 16705 ;; 16706 esac 16707 ;; 16708 16709 mingw* | pw32* | os2*) 16710 # This hack is so that the source file can tell whether it is being 16711 # built for inclusion in a dll (and should export symbols for example). 16712 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16713 ;; 16714 16715 hpux9* | hpux10* | hpux11*) 16716 lt_prog_compiler_wl_GCJ='-Wl,' 16717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16718 # not for PA HP-UX. 16719 case $host_cpu in 16720 hppa*64*|ia64*) 16721 # +Z the default 16722 ;; 16723 *) 16724 lt_prog_compiler_pic_GCJ='+Z' 16725 ;; 16726 esac 16727 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16728 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16729 ;; 16730 16731 irix5* | irix6* | nonstopux*) 16732 lt_prog_compiler_wl_GCJ='-Wl,' 16733 # PIC (with -KPIC) is the default. 16734 lt_prog_compiler_static_GCJ='-non_shared' 16735 ;; 16736 16737 newsos6) 16738 lt_prog_compiler_pic_GCJ='-KPIC' 16739 lt_prog_compiler_static_GCJ='-Bstatic' 16740 ;; 16741 16742 linux*) 16743 case $cc_basename in 16744 icc* | ecc*) 16745 lt_prog_compiler_wl_GCJ='-Wl,' 16746 lt_prog_compiler_pic_GCJ='-KPIC' 16747 lt_prog_compiler_static_GCJ='-static' 16748 ;; 16749 pgcc* | pgf77* | pgf90* | pgf95*) 16750 # Portland Group compilers (*not* the Pentium gcc compiler, 16751 # which looks to be a dead project) 16752 lt_prog_compiler_wl_GCJ='-Wl,' 16753 lt_prog_compiler_pic_GCJ='-fpic' 16754 lt_prog_compiler_static_GCJ='-Bstatic' 16755 ;; 16756 ccc*) 16757 lt_prog_compiler_wl_GCJ='-Wl,' 16758 # All Alpha code is PIC. 16759 lt_prog_compiler_static_GCJ='-non_shared' 16760 ;; 16761 esac 16762 ;; 16763 16764 osf3* | osf4* | osf5*) 16765 lt_prog_compiler_wl_GCJ='-Wl,' 16766 # All OSF/1 code is PIC. 16767 lt_prog_compiler_static_GCJ='-non_shared' 16768 ;; 16769 16770 solaris*) 16771 lt_prog_compiler_pic_GCJ='-KPIC' 16772 lt_prog_compiler_static_GCJ='-Bstatic' 16773 case $cc_basename in 16774 f77* | f90* | f95*) 16775 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16776 *) 16777 lt_prog_compiler_wl_GCJ='-Wl,';; 16778 esac 16779 ;; 16780 16781 sunos4*) 16782 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16783 lt_prog_compiler_pic_GCJ='-PIC' 16784 lt_prog_compiler_static_GCJ='-Bstatic' 16785 ;; 16786 16787 sysv4 | sysv4.2uw2* | sysv4.3*) 16788 lt_prog_compiler_wl_GCJ='-Wl,' 16789 lt_prog_compiler_pic_GCJ='-KPIC' 16790 lt_prog_compiler_static_GCJ='-Bstatic' 16791 ;; 16792 16793 sysv4*MP*) 16794 if test -d /usr/nec ;then 16795 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16796 lt_prog_compiler_static_GCJ='-Bstatic' 16797 fi 16798 ;; 16799 16800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16801 lt_prog_compiler_wl_GCJ='-Wl,' 16802 lt_prog_compiler_pic_GCJ='-KPIC' 16803 lt_prog_compiler_static_GCJ='-Bstatic' 16804 ;; 16805 16806 unicos*) 16807 lt_prog_compiler_wl_GCJ='-Wl,' 16808 lt_prog_compiler_can_build_shared_GCJ=no 16809 ;; 16810 16811 uts4*) 16812 lt_prog_compiler_pic_GCJ='-pic' 16813 lt_prog_compiler_static_GCJ='-Bstatic' 16814 ;; 16815 16816 *) 16817 lt_prog_compiler_can_build_shared_GCJ=no 16818 ;; 16819 esac 16820 fi 16821 16822{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16823echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16824 16825# 16826# Check to make sure the PIC flag actually works. 16827# 16828if test -n "$lt_prog_compiler_pic_GCJ"; then 16829 16830{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16831echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16832if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16833 echo $ECHO_N "(cached) $ECHO_C" >&6 16834else 16835 lt_prog_compiler_pic_works_GCJ=no 16836 ac_outfile=conftest.$ac_objext 16837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16838 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16839 # Insert the option either (1) after the last *FLAGS variable, or 16840 # (2) before a word containing "conftest.", or (3) at the end. 16841 # Note that $ac_compile itself does not contain backslashes and begins 16842 # with a dollar sign (not a hyphen), so the echo should work correctly. 16843 # The option is referenced via a variable to avoid confusing sed. 16844 lt_compile=`echo "$ac_compile" | $SED \ 16845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16847 -e 's:$: $lt_compiler_flag:'` 16848 (eval echo "\"\$as_me:16848: $lt_compile\"" >&5) 16849 (eval "$lt_compile" 2>conftest.err) 16850 ac_status=$? 16851 cat conftest.err >&5 16852 echo "$as_me:16852: \$? = $ac_status" >&5 16853 if (exit $ac_status) && test -s "$ac_outfile"; then 16854 # The compiler can only warn and ignore the option if not recognized 16855 # So say no if there are warnings other than the usual output. 16856 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16859 lt_prog_compiler_pic_works_GCJ=yes 16860 fi 16861 fi 16862 $rm conftest* 16863 16864fi 16865{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16866echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16867 16868if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16869 case $lt_prog_compiler_pic_GCJ in 16870 "" | " "*) ;; 16871 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16872 esac 16873else 16874 lt_prog_compiler_pic_GCJ= 16875 lt_prog_compiler_can_build_shared_GCJ=no 16876fi 16877 16878fi 16879case $host_os in 16880 # For platforms which do not support PIC, -DPIC is meaningless: 16881 *djgpp*) 16882 lt_prog_compiler_pic_GCJ= 16883 ;; 16884 *) 16885 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16886 ;; 16887esac 16888 16889# 16890# Check to make sure the static flag actually works. 16891# 16892wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16893{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16894echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16895if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16896 echo $ECHO_N "(cached) $ECHO_C" >&6 16897else 16898 lt_prog_compiler_static_works_GCJ=no 16899 save_LDFLAGS="$LDFLAGS" 16900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16901 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16903 # The linker can only warn and ignore the option if not recognized 16904 # So say no if there are warnings 16905 if test -s conftest.err; then 16906 # Append any errors to the config.log. 16907 cat conftest.err 1>&5 16908 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16910 if diff conftest.exp conftest.er2 >/dev/null; then 16911 lt_prog_compiler_static_works_GCJ=yes 16912 fi 16913 else 16914 lt_prog_compiler_static_works_GCJ=yes 16915 fi 16916 fi 16917 $rm conftest* 16918 LDFLAGS="$save_LDFLAGS" 16919 16920fi 16921{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16922echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16923 16924if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16925 : 16926else 16927 lt_prog_compiler_static_GCJ= 16928fi 16929 16930 16931{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16932echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16933if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16934 echo $ECHO_N "(cached) $ECHO_C" >&6 16935else 16936 lt_cv_prog_compiler_c_o_GCJ=no 16937 $rm -r conftest 2>/dev/null 16938 mkdir conftest 16939 cd conftest 16940 mkdir out 16941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16942 16943 lt_compiler_flag="-o out/conftest2.$ac_objext" 16944 # Insert the option either (1) after the last *FLAGS variable, or 16945 # (2) before a word containing "conftest.", or (3) at the end. 16946 # Note that $ac_compile itself does not contain backslashes and begins 16947 # with a dollar sign (not a hyphen), so the echo should work correctly. 16948 lt_compile=`echo "$ac_compile" | $SED \ 16949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16951 -e 's:$: $lt_compiler_flag:'` 16952 (eval echo "\"\$as_me:16952: $lt_compile\"" >&5) 16953 (eval "$lt_compile" 2>out/conftest.err) 16954 ac_status=$? 16955 cat out/conftest.err >&5 16956 echo "$as_me:16956: \$? = $ac_status" >&5 16957 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16958 then 16959 # The compiler can only warn and ignore the option if not recognized 16960 # So say no if there are warnings 16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16964 lt_cv_prog_compiler_c_o_GCJ=yes 16965 fi 16966 fi 16967 chmod u+w . 2>&5 16968 $rm conftest* 16969 # SGI C++ compiler will create directory out/ii_files/ for 16970 # template instantiation 16971 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16972 $rm out/* && rmdir out 16973 cd .. 16974 rmdir conftest 16975 $rm conftest* 16976 16977fi 16978{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16979echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16980 16981 16982hard_links="nottested" 16983if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16984 # do not overwrite the value of need_locks provided by the user 16985 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16986echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16987 hard_links=yes 16988 $rm conftest* 16989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16990 touch conftest.a 16991 ln conftest.a conftest.b 2>&5 || hard_links=no 16992 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16993 { echo "$as_me:$LINENO: result: $hard_links" >&5 16994echo "${ECHO_T}$hard_links" >&6; } 16995 if test "$hard_links" = no; then 16996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16997echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16998 need_locks=warn 16999 fi 17000else 17001 need_locks=no 17002fi 17003 17004{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17005echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17006 17007 runpath_var= 17008 allow_undefined_flag_GCJ= 17009 enable_shared_with_static_runtimes_GCJ=no 17010 archive_cmds_GCJ= 17011 archive_expsym_cmds_GCJ= 17012 old_archive_From_new_cmds_GCJ= 17013 old_archive_from_expsyms_cmds_GCJ= 17014 export_dynamic_flag_spec_GCJ= 17015 whole_archive_flag_spec_GCJ= 17016 thread_safe_flag_spec_GCJ= 17017 hardcode_libdir_flag_spec_GCJ= 17018 hardcode_libdir_flag_spec_ld_GCJ= 17019 hardcode_libdir_separator_GCJ= 17020 hardcode_direct_GCJ=no 17021 hardcode_minus_L_GCJ=no 17022 hardcode_shlibpath_var_GCJ=unsupported 17023 link_all_deplibs_GCJ=unknown 17024 hardcode_automatic_GCJ=no 17025 module_cmds_GCJ= 17026 module_expsym_cmds_GCJ= 17027 always_export_symbols_GCJ=no 17028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17029 # include_expsyms should be a list of space-separated symbols to be *always* 17030 # included in the symbol list 17031 include_expsyms_GCJ= 17032 # exclude_expsyms can be an extended regexp of symbols to exclude 17033 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17035 # as well as any symbol that contains `d'. 17036 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17038 # platforms (ab)use it in PIC code, but their linkers get confused if 17039 # the symbol is explicitly referenced. Since portable code cannot 17040 # rely on this symbol name, it's probably fine to never include it in 17041 # preloaded symbol tables. 17042 extract_expsyms_cmds= 17043 # Just being paranoid about ensuring that cc_basename is set. 17044 for cc_temp in $compiler""; do 17045 case $cc_temp in 17046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17048 \-*) ;; 17049 *) break;; 17050 esac 17051done 17052cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17053 17054 case $host_os in 17055 cygwin* | mingw* | pw32*) 17056 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17057 # When not using gcc, we currently assume that we are using 17058 # Microsoft Visual C++. 17059 if test "$GCC" != yes; then 17060 with_gnu_ld=no 17061 fi 17062 ;; 17063 interix*) 17064 # we just hope/assume this is gcc and not c89 (= MSVC++) 17065 with_gnu_ld=yes 17066 ;; 17067 openbsd*) 17068 with_gnu_ld=no 17069 ;; 17070 esac 17071 17072 ld_shlibs_GCJ=yes 17073 if test "$with_gnu_ld" = yes; then 17074 # If archive_cmds runs LD, not CC, wlarc should be empty 17075 wlarc='${wl}' 17076 17077 # Set some defaults for GNU ld with shared library support. These 17078 # are reset later if shared libraries are not supported. Putting them 17079 # here allows them to be overridden if necessary. 17080 runpath_var=LD_RUN_PATH 17081 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17082 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17083 # ancient GNU ld didn't support --whole-archive et. al. 17084 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17085 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17086 else 17087 whole_archive_flag_spec_GCJ= 17088 fi 17089 supports_anon_versioning=no 17090 case `$LD -v 2>/dev/null` in 17091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17094 *\ 2.11.*) ;; # other 2.11 versions 17095 *) supports_anon_versioning=yes ;; 17096 esac 17097 17098 # See if GNU ld supports shared libraries. 17099 case $host_os in 17100 aix3* | aix4* | aix5*) 17101 # On AIX/PPC, the GNU linker is very broken 17102 if test "$host_cpu" != ia64; then 17103 ld_shlibs_GCJ=no 17104 cat <<EOF 1>&2 17105 17106*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17107*** to be unable to reliably create shared libraries on AIX. 17108*** Therefore, libtool is disabling shared libraries support. If you 17109*** really care for shared libraries, you may want to modify your PATH 17110*** so that a non-GNU linker is found, and then restart. 17111 17112EOF 17113 fi 17114 ;; 17115 17116 amigaos*) 17117 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)' 17118 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17119 hardcode_minus_L_GCJ=yes 17120 17121 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17122 # that the semantics of dynamic libraries on AmigaOS, at least up 17123 # to version 4, is to share data among multiple programs linked 17124 # with the same dynamic library. Since this doesn't match the 17125 # behavior of shared libraries on other platforms, we can't use 17126 # them. 17127 ld_shlibs_GCJ=no 17128 ;; 17129 17130 beos*) 17131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17132 allow_undefined_flag_GCJ=unsupported 17133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17134 # support --undefined. This deserves some investigation. FIXME 17135 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17136 else 17137 ld_shlibs_GCJ=no 17138 fi 17139 ;; 17140 17141 cygwin* | mingw* | pw32*) 17142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17143 # as there is no search path for DLLs. 17144 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17145 allow_undefined_flag_GCJ=unsupported 17146 always_export_symbols_GCJ=no 17147 enable_shared_with_static_runtimes_GCJ=yes 17148 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17149 17150 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17151 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17152 # If the export-symbols file already is a .def file (1st line 17153 # is EXPORTS), use it as is; otherwise, prepend... 17154 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17155 cp $export_symbols $output_objdir/$soname.def; 17156 else 17157 echo EXPORTS > $output_objdir/$soname.def; 17158 cat $export_symbols >> $output_objdir/$soname.def; 17159 fi~ 17160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17161 else 17162 ld_shlibs_GCJ=no 17163 fi 17164 ;; 17165 17166 interix3*) 17167 hardcode_direct_GCJ=no 17168 hardcode_shlibpath_var_GCJ=no 17169 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17170 export_dynamic_flag_spec_GCJ='${wl}-E' 17171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17172 # Instead, shared libraries are loaded at an image base (0x10000000 by 17173 # default) and relocated if they conflict, which is a slow very memory 17174 # consuming and fragmenting process. To avoid this, we pick a random, 17175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17176 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17177 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' 17178 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' 17179 ;; 17180 17181 linux*) 17182 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17183 tmp_addflag= 17184 case $cc_basename,$host_cpu in 17185 pgcc*) # Portland Group C compiler 17186 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' 17187 tmp_addflag=' $pic_flag' 17188 ;; 17189 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17190 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' 17191 tmp_addflag=' $pic_flag -Mnomain' ;; 17192 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17193 tmp_addflag=' -i_dynamic' ;; 17194 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17195 tmp_addflag=' -i_dynamic -nofor_main' ;; 17196 ifc* | ifort*) # Intel Fortran compiler 17197 tmp_addflag=' -nofor_main' ;; 17198 esac 17199 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17200 17201 if test $supports_anon_versioning = yes; then 17202 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17204 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17205 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17206 fi 17207 else 17208 ld_shlibs_GCJ=no 17209 fi 17210 ;; 17211 17212 netbsd*) 17213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17214 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17215 wlarc= 17216 else 17217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17219 fi 17220 ;; 17221 17222 solaris*) 17223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17224 ld_shlibs_GCJ=no 17225 cat <<EOF 1>&2 17226 17227*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17228*** create shared libraries on Solaris systems. Therefore, libtool 17229*** is disabling shared libraries support. We urge you to upgrade GNU 17230*** binutils to release 2.9.1 or newer. Another option is to modify 17231*** your PATH or compiler configuration so that the native linker is 17232*** used, and then restart. 17233 17234EOF 17235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17238 else 17239 ld_shlibs_GCJ=no 17240 fi 17241 ;; 17242 17243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17244 case `$LD -v 2>&1` in 17245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17246 ld_shlibs_GCJ=no 17247 cat <<_LT_EOF 1>&2 17248 17249*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17250*** reliably create shared libraries on SCO systems. Therefore, libtool 17251*** is disabling shared libraries support. We urge you to upgrade GNU 17252*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17253*** your PATH or compiler configuration so that the native linker is 17254*** used, and then restart. 17255 17256_LT_EOF 17257 ;; 17258 *) 17259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17260 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17263 else 17264 ld_shlibs_GCJ=no 17265 fi 17266 ;; 17267 esac 17268 ;; 17269 17270 sunos4*) 17271 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17272 wlarc= 17273 hardcode_direct_GCJ=yes 17274 hardcode_shlibpath_var_GCJ=no 17275 ;; 17276 17277 *) 17278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17280 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17281 else 17282 ld_shlibs_GCJ=no 17283 fi 17284 ;; 17285 esac 17286 17287 if test "$ld_shlibs_GCJ" = no; then 17288 runpath_var= 17289 hardcode_libdir_flag_spec_GCJ= 17290 export_dynamic_flag_spec_GCJ= 17291 whole_archive_flag_spec_GCJ= 17292 fi 17293 else 17294 # PORTME fill in a description of your system's linker (not GNU ld) 17295 case $host_os in 17296 aix3*) 17297 allow_undefined_flag_GCJ=unsupported 17298 always_export_symbols_GCJ=yes 17299 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' 17300 # Note: this linker hardcodes the directories in LIBPATH if there 17301 # are no directories specified by -L. 17302 hardcode_minus_L_GCJ=yes 17303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17304 # Neither direct hardcoding nor static linking is supported with a 17305 # broken collect2. 17306 hardcode_direct_GCJ=unsupported 17307 fi 17308 ;; 17309 17310 aix4* | aix5*) 17311 if test "$host_cpu" = ia64; then 17312 # On IA64, the linker does run time linking by default, so we don't 17313 # have to do anything special. 17314 aix_use_runtimelinking=no 17315 exp_sym_flag='-Bexport' 17316 no_entry_flag="" 17317 else 17318 # If we're using GNU nm, then we don't want the "-C" option. 17319 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17320 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17321 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' 17322 else 17323 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' 17324 fi 17325 aix_use_runtimelinking=no 17326 17327 # Test if we are trying to use run time linking or normal 17328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17329 # need to do runtime linking. 17330 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17331 for ld_flag in $LDFLAGS; do 17332 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17333 aix_use_runtimelinking=yes 17334 break 17335 fi 17336 done 17337 ;; 17338 esac 17339 17340 exp_sym_flag='-bexport' 17341 no_entry_flag='-bnoentry' 17342 fi 17343 17344 # When large executables or shared objects are built, AIX ld can 17345 # have problems creating the table of contents. If linking a library 17346 # or program results in "error TOC overflow" add -mminimal-toc to 17347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17349 17350 archive_cmds_GCJ='' 17351 hardcode_direct_GCJ=yes 17352 hardcode_libdir_separator_GCJ=':' 17353 link_all_deplibs_GCJ=yes 17354 17355 if test "$GCC" = yes; then 17356 case $host_os in aix4.[012]|aix4.[012].*) 17357 # We only want to do this on AIX 4.2 and lower, the check 17358 # below for broken collect2 doesn't work under 4.3+ 17359 collect2name=`${CC} -print-prog-name=collect2` 17360 if test -f "$collect2name" && \ 17361 strings "$collect2name" | grep resolve_lib_name >/dev/null 17362 then 17363 # We have reworked collect2 17364 hardcode_direct_GCJ=yes 17365 else 17366 # We have old collect2 17367 hardcode_direct_GCJ=unsupported 17368 # It fails to find uninstalled libraries when the uninstalled 17369 # path is not listed in the libpath. Setting hardcode_minus_L 17370 # to unsupported forces relinking 17371 hardcode_minus_L_GCJ=yes 17372 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17373 hardcode_libdir_separator_GCJ= 17374 fi 17375 ;; 17376 esac 17377 shared_flag='-shared' 17378 if test "$aix_use_runtimelinking" = yes; then 17379 shared_flag="$shared_flag "'${wl}-G' 17380 fi 17381 else 17382 # not using gcc 17383 if test "$host_cpu" = ia64; then 17384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17385 # chokes on -Wl,-G. The following line is correct: 17386 shared_flag='-G' 17387 else 17388 if test "$aix_use_runtimelinking" = yes; then 17389 shared_flag='${wl}-G' 17390 else 17391 shared_flag='${wl}-bM:SRE' 17392 fi 17393 fi 17394 fi 17395 17396 # It seems that -bexpall does not export symbols beginning with 17397 # underscore (_), so it is better to generate a list of symbols to export. 17398 always_export_symbols_GCJ=yes 17399 if test "$aix_use_runtimelinking" = yes; then 17400 # Warning - without using the other runtime loading flags (-brtl), 17401 # -berok will link without error, but may produce a broken library. 17402 allow_undefined_flag_GCJ='-berok' 17403 # Determine the default libpath from the value encoded in an empty executable. 17404 cat >conftest.$ac_ext <<_ACEOF 17405/* confdefs.h. */ 17406_ACEOF 17407cat confdefs.h >>conftest.$ac_ext 17408cat >>conftest.$ac_ext <<_ACEOF 17409/* end confdefs.h. */ 17410 17411int 17412main () 17413{ 17414 17415 ; 17416 return 0; 17417} 17418_ACEOF 17419rm -f conftest.$ac_objext conftest$ac_exeext 17420if { (ac_try="$ac_link" 17421case "(($ac_try" in 17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17423 *) ac_try_echo=$ac_try;; 17424esac 17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17426 (eval "$ac_link") 2>conftest.er1 17427 ac_status=$? 17428 grep -v '^ *+' conftest.er1 >conftest.err 17429 rm -f conftest.er1 17430 cat conftest.err >&5 17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17432 (exit $ac_status); } && { 17433 test -z "$ac_c_werror_flag" || 17434 test ! -s conftest.err 17435 } && test -s conftest$ac_exeext && 17436 $as_test_x conftest$ac_exeext; then 17437 17438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17439}'` 17440# Check for a 64-bit object if we didn't find anything. 17441if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17442}'`; fi 17443else 17444 echo "$as_me: failed program was:" >&5 17445sed 's/^/| /' conftest.$ac_ext >&5 17446 17447 17448fi 17449 17450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17451 conftest$ac_exeext conftest.$ac_ext 17452if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17453 17454 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17455 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" 17456 else 17457 if test "$host_cpu" = ia64; then 17458 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17459 allow_undefined_flag_GCJ="-z nodefs" 17460 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" 17461 else 17462 # Determine the default libpath from the value encoded in an empty executable. 17463 cat >conftest.$ac_ext <<_ACEOF 17464/* confdefs.h. */ 17465_ACEOF 17466cat confdefs.h >>conftest.$ac_ext 17467cat >>conftest.$ac_ext <<_ACEOF 17468/* end confdefs.h. */ 17469 17470int 17471main () 17472{ 17473 17474 ; 17475 return 0; 17476} 17477_ACEOF 17478rm -f conftest.$ac_objext conftest$ac_exeext 17479if { (ac_try="$ac_link" 17480case "(($ac_try" in 17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17482 *) ac_try_echo=$ac_try;; 17483esac 17484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17485 (eval "$ac_link") 2>conftest.er1 17486 ac_status=$? 17487 grep -v '^ *+' conftest.er1 >conftest.err 17488 rm -f conftest.er1 17489 cat conftest.err >&5 17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17491 (exit $ac_status); } && { 17492 test -z "$ac_c_werror_flag" || 17493 test ! -s conftest.err 17494 } && test -s conftest$ac_exeext && 17495 $as_test_x conftest$ac_exeext; then 17496 17497aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17498}'` 17499# Check for a 64-bit object if we didn't find anything. 17500if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17501}'`; fi 17502else 17503 echo "$as_me: failed program was:" >&5 17504sed 's/^/| /' conftest.$ac_ext >&5 17505 17506 17507fi 17508 17509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17510 conftest$ac_exeext conftest.$ac_ext 17511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17512 17513 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17514 # Warning - without using the other run time loading flags, 17515 # -berok will link without error, but may produce a broken library. 17516 no_undefined_flag_GCJ=' ${wl}-bernotok' 17517 allow_undefined_flag_GCJ=' ${wl}-berok' 17518 # Exported symbols can be pulled into shared objects from archives 17519 whole_archive_flag_spec_GCJ='$convenience' 17520 archive_cmds_need_lc_GCJ=yes 17521 # This is similar to how AIX traditionally builds its shared libraries. 17522 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' 17523 fi 17524 fi 17525 ;; 17526 17527 amigaos*) 17528 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)' 17529 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17530 hardcode_minus_L_GCJ=yes 17531 # see comment about different semantics on the GNU ld section 17532 ld_shlibs_GCJ=no 17533 ;; 17534 17535 bsdi[45]*) 17536 export_dynamic_flag_spec_GCJ=-rdynamic 17537 ;; 17538 17539 cygwin* | mingw* | pw32*) 17540 # When not using gcc, we currently assume that we are using 17541 # Microsoft Visual C++. 17542 # hardcode_libdir_flag_spec is actually meaningless, as there is 17543 # no search path for DLLs. 17544 hardcode_libdir_flag_spec_GCJ=' ' 17545 allow_undefined_flag_GCJ=unsupported 17546 # Tell ltmain to make .lib files, not .a files. 17547 libext=lib 17548 # Tell ltmain to make .dll files, not .so files. 17549 shrext_cmds=".dll" 17550 # FIXME: Setting linknames here is a bad hack. 17551 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17552 # The linker will automatically build a .lib file if we build a DLL. 17553 old_archive_From_new_cmds_GCJ='true' 17554 # FIXME: Should let the user specify the lib program. 17555 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17556 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17557 enable_shared_with_static_runtimes_GCJ=yes 17558 ;; 17559 17560 darwin* | rhapsody*) 17561 case $host_os in 17562 rhapsody* | darwin1.[012]) 17563 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17564 ;; 17565 *) # Darwin 1.3 on 17566 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17567 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17568 else 17569 case ${MACOSX_DEPLOYMENT_TARGET} in 17570 10.[012]) 17571 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17572 ;; 17573 10.*) 17574 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17575 ;; 17576 esac 17577 fi 17578 ;; 17579 esac 17580 archive_cmds_need_lc_GCJ=no 17581 hardcode_direct_GCJ=no 17582 hardcode_automatic_GCJ=yes 17583 hardcode_shlibpath_var_GCJ=unsupported 17584 whole_archive_flag_spec_GCJ='' 17585 link_all_deplibs_GCJ=yes 17586 if test "$GCC" = yes ; then 17587 output_verbose_link_cmd='echo' 17588 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17589 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17591 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}' 17592 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}' 17593 else 17594 case $cc_basename in 17595 xlc*) 17596 output_verbose_link_cmd='echo' 17597 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17598 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17599 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17600 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17601 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}' 17602 ;; 17603 *) 17604 ld_shlibs_GCJ=no 17605 ;; 17606 esac 17607 fi 17608 ;; 17609 17610 dgux*) 17611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17612 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17613 hardcode_shlibpath_var_GCJ=no 17614 ;; 17615 17616 freebsd1*) 17617 ld_shlibs_GCJ=no 17618 ;; 17619 17620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17621 # support. Future versions do this automatically, but an explicit c++rt0.o 17622 # does not break anything, and helps significantly (at the cost of a little 17623 # extra space). 17624 freebsd2.2*) 17625 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17626 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17627 hardcode_direct_GCJ=yes 17628 hardcode_shlibpath_var_GCJ=no 17629 ;; 17630 17631 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17632 freebsd2*) 17633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17634 hardcode_direct_GCJ=yes 17635 hardcode_minus_L_GCJ=yes 17636 hardcode_shlibpath_var_GCJ=no 17637 ;; 17638 17639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17640 freebsd* | kfreebsd*-gnu | dragonfly*) 17641 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17642 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17643 hardcode_direct_GCJ=yes 17644 hardcode_shlibpath_var_GCJ=no 17645 ;; 17646 17647 hpux9*) 17648 if test "$GCC" = yes; then 17649 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' 17650 else 17651 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' 17652 fi 17653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17654 hardcode_libdir_separator_GCJ=: 17655 hardcode_direct_GCJ=yes 17656 17657 # hardcode_minus_L: Not really in the search PATH, 17658 # but as the default location of the library. 17659 hardcode_minus_L_GCJ=yes 17660 export_dynamic_flag_spec_GCJ='${wl}-E' 17661 ;; 17662 17663 hpux10*) 17664 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17665 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17666 else 17667 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17668 fi 17669 if test "$with_gnu_ld" = no; then 17670 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17671 hardcode_libdir_separator_GCJ=: 17672 17673 hardcode_direct_GCJ=yes 17674 export_dynamic_flag_spec_GCJ='${wl}-E' 17675 17676 # hardcode_minus_L: Not really in the search PATH, 17677 # but as the default location of the library. 17678 hardcode_minus_L_GCJ=yes 17679 fi 17680 ;; 17681 17682 hpux11*) 17683 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17684 case $host_cpu in 17685 hppa*64*) 17686 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17687 ;; 17688 ia64*) 17689 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17690 ;; 17691 *) 17692 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17693 ;; 17694 esac 17695 else 17696 case $host_cpu in 17697 hppa*64*) 17698 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17699 ;; 17700 ia64*) 17701 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17702 ;; 17703 *) 17704 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17705 ;; 17706 esac 17707 fi 17708 if test "$with_gnu_ld" = no; then 17709 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17710 hardcode_libdir_separator_GCJ=: 17711 17712 case $host_cpu in 17713 hppa*64*|ia64*) 17714 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17715 hardcode_direct_GCJ=no 17716 hardcode_shlibpath_var_GCJ=no 17717 ;; 17718 *) 17719 hardcode_direct_GCJ=yes 17720 export_dynamic_flag_spec_GCJ='${wl}-E' 17721 17722 # hardcode_minus_L: Not really in the search PATH, 17723 # but as the default location of the library. 17724 hardcode_minus_L_GCJ=yes 17725 ;; 17726 esac 17727 fi 17728 ;; 17729 17730 irix5* | irix6* | nonstopux*) 17731 if test "$GCC" = yes; then 17732 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' 17733 else 17734 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' 17735 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17736 fi 17737 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17738 hardcode_libdir_separator_GCJ=: 17739 link_all_deplibs_GCJ=yes 17740 ;; 17741 17742 netbsd*) 17743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17744 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17745 else 17746 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17747 fi 17748 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17749 hardcode_direct_GCJ=yes 17750 hardcode_shlibpath_var_GCJ=no 17751 ;; 17752 17753 newsos6) 17754 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17755 hardcode_direct_GCJ=yes 17756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17757 hardcode_libdir_separator_GCJ=: 17758 hardcode_shlibpath_var_GCJ=no 17759 ;; 17760 17761 openbsd*) 17762 hardcode_direct_GCJ=yes 17763 hardcode_shlibpath_var_GCJ=no 17764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17765 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17766 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17768 export_dynamic_flag_spec_GCJ='${wl}-E' 17769 else 17770 case $host_os in 17771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17772 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17773 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17774 ;; 17775 *) 17776 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17777 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17778 ;; 17779 esac 17780 fi 17781 ;; 17782 17783 os2*) 17784 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17785 hardcode_minus_L_GCJ=yes 17786 allow_undefined_flag_GCJ=unsupported 17787 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' 17788 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17789 ;; 17790 17791 osf3*) 17792 if test "$GCC" = yes; then 17793 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17794 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' 17795 else 17796 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17797 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' 17798 fi 17799 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17800 hardcode_libdir_separator_GCJ=: 17801 ;; 17802 17803 osf4* | osf5*) # as osf3* with the addition of -msym flag 17804 if test "$GCC" = yes; then 17805 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17806 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' 17807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17808 else 17809 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17810 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' 17811 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~ 17812 $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' 17813 17814 # Both c and cxx compiler support -rpath directly 17815 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17816 fi 17817 hardcode_libdir_separator_GCJ=: 17818 ;; 17819 17820 solaris*) 17821 no_undefined_flag_GCJ=' -z text' 17822 if test "$GCC" = yes; then 17823 wlarc='${wl}' 17824 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17825 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17826 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17827 else 17828 wlarc='' 17829 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17832 fi 17833 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17834 hardcode_shlibpath_var_GCJ=no 17835 case $host_os in 17836 solaris2.[0-5] | solaris2.[0-5].*) ;; 17837 *) 17838 # The compiler driver will combine linker options so we 17839 # cannot just pass the convience library names through 17840 # without $wl, iff we do not link with $LD. 17841 # Luckily, gcc supports the same syntax we need for Sun Studio. 17842 # Supported since Solaris 2.6 (maybe 2.5.1?) 17843 case $wlarc in 17844 '') 17845 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17846 *) 17847 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17848 esac ;; 17849 esac 17850 link_all_deplibs_GCJ=yes 17851 ;; 17852 17853 sunos4*) 17854 if test "x$host_vendor" = xsequent; then 17855 # Use $CC to link under sequent, because it throws in some extra .o 17856 # files that make .init and .fini sections work. 17857 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17858 else 17859 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17860 fi 17861 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17862 hardcode_direct_GCJ=yes 17863 hardcode_minus_L_GCJ=yes 17864 hardcode_shlibpath_var_GCJ=no 17865 ;; 17866 17867 sysv4) 17868 case $host_vendor in 17869 sni) 17870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17871 hardcode_direct_GCJ=yes # is this really true??? 17872 ;; 17873 siemens) 17874 ## LD is ld it makes a PLAMLIB 17875 ## CC just makes a GrossModule. 17876 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17877 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17878 hardcode_direct_GCJ=no 17879 ;; 17880 motorola) 17881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17882 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17883 ;; 17884 esac 17885 runpath_var='LD_RUN_PATH' 17886 hardcode_shlibpath_var_GCJ=no 17887 ;; 17888 17889 sysv4.3*) 17890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17891 hardcode_shlibpath_var_GCJ=no 17892 export_dynamic_flag_spec_GCJ='-Bexport' 17893 ;; 17894 17895 sysv4*MP*) 17896 if test -d /usr/nec; then 17897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17898 hardcode_shlibpath_var_GCJ=no 17899 runpath_var=LD_RUN_PATH 17900 hardcode_runpath_var=yes 17901 ld_shlibs_GCJ=yes 17902 fi 17903 ;; 17904 17905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17906 no_undefined_flag_GCJ='${wl}-z,text' 17907 archive_cmds_need_lc_GCJ=no 17908 hardcode_shlibpath_var_GCJ=no 17909 runpath_var='LD_RUN_PATH' 17910 17911 if test "$GCC" = yes; then 17912 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17913 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17914 else 17915 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17916 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17917 fi 17918 ;; 17919 17920 sysv5* | sco3.2v5* | sco5v6*) 17921 # Note: We can NOT use -z defs as we might desire, because we do not 17922 # link with -lc, and that would cause any symbols used from libc to 17923 # always be unresolved, which means just about no library would 17924 # ever link correctly. If we're not using GNU ld we use -z text 17925 # though, which does catch some bad symbols but isn't as heavy-handed 17926 # as -z defs. 17927 no_undefined_flag_GCJ='${wl}-z,text' 17928 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17929 archive_cmds_need_lc_GCJ=no 17930 hardcode_shlibpath_var_GCJ=no 17931 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17932 hardcode_libdir_separator_GCJ=':' 17933 link_all_deplibs_GCJ=yes 17934 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17935 runpath_var='LD_RUN_PATH' 17936 17937 if test "$GCC" = yes; then 17938 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17939 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17940 else 17941 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17942 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17943 fi 17944 ;; 17945 17946 uts4*) 17947 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17948 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17949 hardcode_shlibpath_var_GCJ=no 17950 ;; 17951 17952 *) 17953 ld_shlibs_GCJ=no 17954 ;; 17955 esac 17956 fi 17957 17958{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17959echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17960test "$ld_shlibs_GCJ" = no && can_build_shared=no 17961 17962# 17963# Do we need to explicitly link libc? 17964# 17965case "x$archive_cmds_need_lc_GCJ" in 17966x|xyes) 17967 # Assume -lc should be added 17968 archive_cmds_need_lc_GCJ=yes 17969 17970 if test "$enable_shared" = yes && test "$GCC" = yes; then 17971 case $archive_cmds_GCJ in 17972 *'~'*) 17973 # FIXME: we may have to deal with multi-command sequences. 17974 ;; 17975 '$CC '*) 17976 # Test whether the compiler implicitly links with -lc since on some 17977 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17978 # to ld, don't add -lc before -lgcc. 17979 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17980echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17981 $rm conftest* 17982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17983 17984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17985 (eval $ac_compile) 2>&5 17986 ac_status=$? 17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17988 (exit $ac_status); } 2>conftest.err; then 17989 soname=conftest 17990 lib=conftest 17991 libobjs=conftest.$ac_objext 17992 deplibs= 17993 wl=$lt_prog_compiler_wl_GCJ 17994 pic_flag=$lt_prog_compiler_pic_GCJ 17995 compiler_flags=-v 17996 linker_flags=-v 17997 verstring= 17998 output_objdir=. 17999 libname=conftest 18000 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18001 allow_undefined_flag_GCJ= 18002 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18003 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18004 ac_status=$? 18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18006 (exit $ac_status); } 18007 then 18008 archive_cmds_need_lc_GCJ=no 18009 else 18010 archive_cmds_need_lc_GCJ=yes 18011 fi 18012 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18013 else 18014 cat conftest.err 1>&5 18015 fi 18016 $rm conftest* 18017 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18018echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18019 ;; 18020 esac 18021 fi 18022 ;; 18023esac 18024 18025{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18026echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18027library_names_spec= 18028libname_spec='lib$name' 18029soname_spec= 18030shrext_cmds=".so" 18031postinstall_cmds= 18032postuninstall_cmds= 18033finish_cmds= 18034finish_eval= 18035shlibpath_var= 18036shlibpath_overrides_runpath=unknown 18037version_type=none 18038dynamic_linker="$host_os ld.so" 18039sys_lib_dlsearch_path_spec="/lib /usr/lib" 18040if test "$GCC" = yes; then 18041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18042 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18043 # if the path contains ";" then we assume it to be the separator 18044 # otherwise default to the standard path separator (i.e. ":") - it is 18045 # assumed that no part of a normal pathname contains ";" but that should 18046 # okay in the real world where ";" in dirpaths is itself problematic. 18047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18048 else 18049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18050 fi 18051else 18052 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18053fi 18054need_lib_prefix=unknown 18055hardcode_into_libs=no 18056 18057# when you set need_version to no, make sure it does not cause -set_version 18058# flags to be left without arguments 18059need_version=unknown 18060 18061case $host_os in 18062aix3*) 18063 version_type=linux 18064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18065 shlibpath_var=LIBPATH 18066 18067 # AIX 3 has no versioning support, so we append a major version to the name. 18068 soname_spec='${libname}${release}${shared_ext}$major' 18069 ;; 18070 18071aix4* | aix5*) 18072 version_type=linux 18073 need_lib_prefix=no 18074 need_version=no 18075 hardcode_into_libs=yes 18076 if test "$host_cpu" = ia64; then 18077 # AIX 5 supports IA64 18078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18079 shlibpath_var=LD_LIBRARY_PATH 18080 else 18081 # With GCC up to 2.95.x, collect2 would create an import file 18082 # for dependence libraries. The import file would start with 18083 # the line `#! .'. This would cause the generated library to 18084 # depend on `.', always an invalid library. This was fixed in 18085 # development snapshots of GCC prior to 3.0. 18086 case $host_os in 18087 aix4 | aix4.[01] | aix4.[01].*) 18088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18089 echo ' yes ' 18090 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18091 : 18092 else 18093 can_build_shared=no 18094 fi 18095 ;; 18096 esac 18097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18098 # soname into executable. Probably we can add versioning support to 18099 # collect2, so additional links can be useful in future. 18100 if test "$aix_use_runtimelinking" = yes; then 18101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18102 # instead of lib<name>.a to let people know that these are not 18103 # typical AIX shared libraries. 18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18105 else 18106 # We preserve .a as extension for shared libraries through AIX4.2 18107 # and later when we are not doing run time linking. 18108 library_names_spec='${libname}${release}.a $libname.a' 18109 soname_spec='${libname}${release}${shared_ext}$major' 18110 fi 18111 shlibpath_var=LIBPATH 18112 fi 18113 ;; 18114 18115amigaos*) 18116 library_names_spec='$libname.ixlibrary $libname.a' 18117 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18118 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' 18119 ;; 18120 18121beos*) 18122 library_names_spec='${libname}${shared_ext}' 18123 dynamic_linker="$host_os ld.so" 18124 shlibpath_var=LIBRARY_PATH 18125 ;; 18126 18127bsdi[45]*) 18128 version_type=linux 18129 need_version=no 18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18131 soname_spec='${libname}${release}${shared_ext}$major' 18132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18133 shlibpath_var=LD_LIBRARY_PATH 18134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18136 # the default ld.so.conf also contains /usr/contrib/lib and 18137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18138 # libtool to hard-code these into programs 18139 ;; 18140 18141cygwin* | mingw* | pw32*) 18142 version_type=windows 18143 shrext_cmds=".dll" 18144 need_version=no 18145 need_lib_prefix=no 18146 18147 case $GCC,$host_os in 18148 yes,cygwin* | yes,mingw* | yes,pw32*) 18149 library_names_spec='$libname.dll.a' 18150 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18151 postinstall_cmds='base_file=`basename \${file}`~ 18152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18153 dldir=$destdir/`dirname \$dlpath`~ 18154 test -d \$dldir || mkdir -p \$dldir~ 18155 $install_prog $dir/$dlname \$dldir/$dlname~ 18156 chmod a+x \$dldir/$dlname' 18157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18158 dlpath=$dir/\$dldll~ 18159 $rm \$dlpath' 18160 shlibpath_overrides_runpath=yes 18161 18162 case $host_os in 18163 cygwin*) 18164 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18167 ;; 18168 mingw*) 18169 # MinGW DLLs use traditional 'lib' prefix 18170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18173 # It is most probably a Windows format PATH printed by 18174 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18175 # path with ; separators, and with drive letters. We can handle the 18176 # drive letters (cygwin fileutils understands them), so leave them, 18177 # especially as we might pass files found there to a mingw objdump, 18178 # which wouldn't understand a cygwinified path. Ahh. 18179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18180 else 18181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18182 fi 18183 ;; 18184 pw32*) 18185 # pw32 DLLs use 'pw' prefix rather than 'lib' 18186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18187 ;; 18188 esac 18189 ;; 18190 18191 linux*) 18192 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 18193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18194 supports_anon_versioning=no 18195 case `$LD -v 2>/dev/null` in 18196 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18199 *\ 2.11.*) ;; # other 2.11 versions 18200 *) supports_anon_versioning=yes ;; 18201 esac 18202 if test $supports_anon_versioning = yes; then 18203 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 18204cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18205$echo "local: *; };" >> $output_objdir/$libname.ver~ 18206 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18207 else 18208 $archive_expsym_cmds="$archive_cmds" 18209 fi 18210 else 18211 ld_shlibs=no 18212 fi 18213 ;; 18214 18215 *) 18216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18217 ;; 18218 esac 18219 dynamic_linker='Win32 ld.exe' 18220 # FIXME: first we should search . and the directory the executable is in 18221 shlibpath_var=PATH 18222 ;; 18223 18224darwin* | rhapsody*) 18225 dynamic_linker="$host_os dyld" 18226 version_type=darwin 18227 need_lib_prefix=no 18228 need_version=no 18229 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18230 soname_spec='${libname}${release}${major}$shared_ext' 18231 shlibpath_overrides_runpath=yes 18232 shlibpath_var=DYLD_LIBRARY_PATH 18233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18234 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18235 if test "$GCC" = yes; then 18236 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18237 else 18238 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18239 fi 18240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18241 ;; 18242 18243dgux*) 18244 version_type=linux 18245 need_lib_prefix=no 18246 need_version=no 18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18248 soname_spec='${libname}${release}${shared_ext}$major' 18249 shlibpath_var=LD_LIBRARY_PATH 18250 ;; 18251 18252freebsd1*) 18253 dynamic_linker=no 18254 ;; 18255 18256kfreebsd*-gnu) 18257 version_type=linux 18258 need_lib_prefix=no 18259 need_version=no 18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18261 soname_spec='${libname}${release}${shared_ext}$major' 18262 shlibpath_var=LD_LIBRARY_PATH 18263 shlibpath_overrides_runpath=no 18264 hardcode_into_libs=yes 18265 dynamic_linker='GNU ld.so' 18266 ;; 18267 18268freebsd* | dragonfly*) 18269 # DragonFly does not have aout. When/if they implement a new 18270 # versioning mechanism, adjust this. 18271 if test -x /usr/bin/objformat; then 18272 objformat=`/usr/bin/objformat` 18273 else 18274 case $host_os in 18275 freebsd[123]*) objformat=aout ;; 18276 *) objformat=elf ;; 18277 esac 18278 fi 18279 # Handle Gentoo/FreeBSD as it was Linux 18280 case $host_vendor in 18281 gentoo) 18282 version_type=linux ;; 18283 *) 18284 version_type=freebsd-$objformat ;; 18285 esac 18286 18287 case $version_type in 18288 freebsd-elf*) 18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18290 need_version=no 18291 need_lib_prefix=no 18292 ;; 18293 freebsd-*) 18294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18295 need_version=yes 18296 ;; 18297 linux) 18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18299 soname_spec='${libname}${release}${shared_ext}$major' 18300 need_lib_prefix=no 18301 need_version=no 18302 ;; 18303 esac 18304 shlibpath_var=LD_LIBRARY_PATH 18305 case $host_os in 18306 freebsd2*) 18307 shlibpath_overrides_runpath=yes 18308 ;; 18309 freebsd3.[01]* | freebsdelf3.[01]*) 18310 shlibpath_overrides_runpath=yes 18311 hardcode_into_libs=yes 18312 ;; 18313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18315 shlibpath_overrides_runpath=no 18316 hardcode_into_libs=yes 18317 ;; 18318 freebsd*) # from 4.6 on 18319 shlibpath_overrides_runpath=yes 18320 hardcode_into_libs=yes 18321 ;; 18322 esac 18323 ;; 18324 18325gnu*) 18326 version_type=linux 18327 need_lib_prefix=no 18328 need_version=no 18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18330 soname_spec='${libname}${release}${shared_ext}$major' 18331 shlibpath_var=LD_LIBRARY_PATH 18332 hardcode_into_libs=yes 18333 ;; 18334 18335hpux9* | hpux10* | hpux11*) 18336 # Give a soname corresponding to the major version so that dld.sl refuses to 18337 # link against other versions. 18338 version_type=sunos 18339 need_lib_prefix=no 18340 need_version=no 18341 case $host_cpu in 18342 ia64*) 18343 shrext_cmds='.so' 18344 hardcode_into_libs=yes 18345 dynamic_linker="$host_os dld.so" 18346 shlibpath_var=LD_LIBRARY_PATH 18347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18349 soname_spec='${libname}${release}${shared_ext}$major' 18350 if test "X$HPUX_IA64_MODE" = X32; then 18351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18352 else 18353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18354 fi 18355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18356 ;; 18357 hppa*64*) 18358 shrext_cmds='.sl' 18359 hardcode_into_libs=yes 18360 dynamic_linker="$host_os dld.sl" 18361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18364 soname_spec='${libname}${release}${shared_ext}$major' 18365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18367 ;; 18368 *) 18369 shrext_cmds='.sl' 18370 dynamic_linker="$host_os dld.sl" 18371 shlibpath_var=SHLIB_PATH 18372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18374 soname_spec='${libname}${release}${shared_ext}$major' 18375 ;; 18376 esac 18377 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18378 postinstall_cmds='chmod 555 $lib' 18379 ;; 18380 18381interix3*) 18382 version_type=linux 18383 need_lib_prefix=no 18384 need_version=no 18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18386 soname_spec='${libname}${release}${shared_ext}$major' 18387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 shlibpath_overrides_runpath=no 18390 hardcode_into_libs=yes 18391 ;; 18392 18393irix5* | irix6* | nonstopux*) 18394 case $host_os in 18395 nonstopux*) version_type=nonstopux ;; 18396 *) 18397 if test "$lt_cv_prog_gnu_ld" = yes; then 18398 version_type=linux 18399 else 18400 version_type=irix 18401 fi ;; 18402 esac 18403 need_lib_prefix=no 18404 need_version=no 18405 soname_spec='${libname}${release}${shared_ext}$major' 18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18407 case $host_os in 18408 irix5* | nonstopux*) 18409 libsuff= shlibsuff= 18410 ;; 18411 *) 18412 case $LD in # libtool.m4 will add one of these switches to LD 18413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18414 libsuff= shlibsuff= libmagic=32-bit;; 18415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18416 libsuff=32 shlibsuff=N32 libmagic=N32;; 18417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18418 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18419 *) libsuff= shlibsuff= libmagic=never-match;; 18420 esac 18421 ;; 18422 esac 18423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18424 shlibpath_overrides_runpath=no 18425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18427 hardcode_into_libs=yes 18428 ;; 18429 18430# No shared lib support for Linux oldld, aout, or coff. 18431linux*oldld* | linux*aout* | linux*coff*) 18432 dynamic_linker=no 18433 ;; 18434 18435# This must be Linux ELF. 18436linux*) 18437 version_type=linux 18438 need_lib_prefix=no 18439 need_version=no 18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18441 soname_spec='${libname}${release}${shared_ext}$major' 18442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18443 shlibpath_var=LD_LIBRARY_PATH 18444 shlibpath_overrides_runpath=no 18445 # This implies no fast_install, which is unacceptable. 18446 # Some rework will be needed to allow for fast_install 18447 # before this can be enabled. 18448 hardcode_into_libs=yes 18449 18450 # Append ld.so.conf contents to the search path 18451 if test -f /etc/ld.so.conf; then 18452 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18453 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18454 fi 18455 18456 # We used to test for /lib/ld.so.1 and disable shared libraries on 18457 # powerpc, because MkLinux only supported shared libraries with the 18458 # GNU dynamic linker. Since this was broken with cross compilers, 18459 # most powerpc-linux boxes support dynamic linking these days and 18460 # people can always --disable-shared, the test was removed, and we 18461 # assume the GNU/Linux dynamic linker is in use. 18462 dynamic_linker='GNU/Linux ld.so' 18463 ;; 18464 18465knetbsd*-gnu) 18466 version_type=linux 18467 need_lib_prefix=no 18468 need_version=no 18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18470 soname_spec='${libname}${release}${shared_ext}$major' 18471 shlibpath_var=LD_LIBRARY_PATH 18472 shlibpath_overrides_runpath=no 18473 hardcode_into_libs=yes 18474 dynamic_linker='GNU ld.so' 18475 ;; 18476 18477netbsd*) 18478 version_type=sunos 18479 need_lib_prefix=no 18480 need_version=no 18481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18484 dynamic_linker='NetBSD (a.out) ld.so' 18485 else 18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18487 soname_spec='${libname}${release}${shared_ext}$major' 18488 dynamic_linker='NetBSD ld.elf_so' 18489 fi 18490 shlibpath_var=LD_LIBRARY_PATH 18491 shlibpath_overrides_runpath=yes 18492 hardcode_into_libs=yes 18493 ;; 18494 18495newsos6) 18496 version_type=linux 18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18498 shlibpath_var=LD_LIBRARY_PATH 18499 shlibpath_overrides_runpath=yes 18500 ;; 18501 18502nto-qnx*) 18503 version_type=linux 18504 need_lib_prefix=no 18505 need_version=no 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18507 soname_spec='${libname}${release}${shared_ext}$major' 18508 shlibpath_var=LD_LIBRARY_PATH 18509 shlibpath_overrides_runpath=yes 18510 ;; 18511 18512openbsd*) 18513 version_type=sunos 18514 sys_lib_dlsearch_path_spec="/usr/lib" 18515 need_lib_prefix=no 18516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18517 case $host_os in 18518 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18519 *) need_version=no ;; 18520 esac 18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18523 shlibpath_var=LD_LIBRARY_PATH 18524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18525 case $host_os in 18526 openbsd2.[89] | openbsd2.[89].*) 18527 shlibpath_overrides_runpath=no 18528 ;; 18529 *) 18530 shlibpath_overrides_runpath=yes 18531 ;; 18532 esac 18533 else 18534 shlibpath_overrides_runpath=yes 18535 fi 18536 ;; 18537 18538os2*) 18539 libname_spec='$name' 18540 shrext_cmds=".dll" 18541 need_lib_prefix=no 18542 library_names_spec='$libname${shared_ext} $libname.a' 18543 dynamic_linker='OS/2 ld.exe' 18544 shlibpath_var=LIBPATH 18545 ;; 18546 18547osf3* | osf4* | osf5*) 18548 version_type=osf 18549 need_lib_prefix=no 18550 need_version=no 18551 soname_spec='${libname}${release}${shared_ext}$major' 18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18553 shlibpath_var=LD_LIBRARY_PATH 18554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18556 ;; 18557 18558solaris*) 18559 version_type=linux 18560 need_lib_prefix=no 18561 need_version=no 18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18563 soname_spec='${libname}${release}${shared_ext}$major' 18564 shlibpath_var=LD_LIBRARY_PATH 18565 shlibpath_overrides_runpath=yes 18566 hardcode_into_libs=yes 18567 # ldd complains unless libraries are executable 18568 postinstall_cmds='chmod +x $lib' 18569 ;; 18570 18571sunos4*) 18572 version_type=sunos 18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18575 shlibpath_var=LD_LIBRARY_PATH 18576 shlibpath_overrides_runpath=yes 18577 if test "$with_gnu_ld" = yes; then 18578 need_lib_prefix=no 18579 fi 18580 need_version=yes 18581 ;; 18582 18583sysv4 | sysv4.3*) 18584 version_type=linux 18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18586 soname_spec='${libname}${release}${shared_ext}$major' 18587 shlibpath_var=LD_LIBRARY_PATH 18588 case $host_vendor in 18589 sni) 18590 shlibpath_overrides_runpath=no 18591 need_lib_prefix=no 18592 export_dynamic_flag_spec='${wl}-Blargedynsym' 18593 runpath_var=LD_RUN_PATH 18594 ;; 18595 siemens) 18596 need_lib_prefix=no 18597 ;; 18598 motorola) 18599 need_lib_prefix=no 18600 need_version=no 18601 shlibpath_overrides_runpath=no 18602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18603 ;; 18604 esac 18605 ;; 18606 18607sysv4*MP*) 18608 if test -d /usr/nec ;then 18609 version_type=linux 18610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18611 soname_spec='$libname${shared_ext}.$major' 18612 shlibpath_var=LD_LIBRARY_PATH 18613 fi 18614 ;; 18615 18616sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18617 version_type=freebsd-elf 18618 need_lib_prefix=no 18619 need_version=no 18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18621 soname_spec='${libname}${release}${shared_ext}$major' 18622 shlibpath_var=LD_LIBRARY_PATH 18623 hardcode_into_libs=yes 18624 if test "$with_gnu_ld" = yes; then 18625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18626 shlibpath_overrides_runpath=no 18627 else 18628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18629 shlibpath_overrides_runpath=yes 18630 case $host_os in 18631 sco3.2v5*) 18632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18633 ;; 18634 esac 18635 fi 18636 sys_lib_dlsearch_path_spec='/usr/lib' 18637 ;; 18638 18639uts4*) 18640 version_type=linux 18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18642 soname_spec='${libname}${release}${shared_ext}$major' 18643 shlibpath_var=LD_LIBRARY_PATH 18644 ;; 18645 18646*) 18647 dynamic_linker=no 18648 ;; 18649esac 18650{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18651echo "${ECHO_T}$dynamic_linker" >&6; } 18652test "$dynamic_linker" = no && can_build_shared=no 18653 18654variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18655if test "$GCC" = yes; then 18656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18657fi 18658 18659{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18660echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18661hardcode_action_GCJ= 18662if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18663 test -n "$runpath_var_GCJ" || \ 18664 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18665 18666 # We can hardcode non-existant directories. 18667 if test "$hardcode_direct_GCJ" != no && 18668 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18669 # have to relink, otherwise we might link with an installed library 18670 # when we should be linking with a yet-to-be-installed one 18671 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18672 test "$hardcode_minus_L_GCJ" != no; then 18673 # Linking always hardcodes the temporary library directory. 18674 hardcode_action_GCJ=relink 18675 else 18676 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18677 hardcode_action_GCJ=immediate 18678 fi 18679else 18680 # We cannot hardcode anything, or else we can only hardcode existing 18681 # directories. 18682 hardcode_action_GCJ=unsupported 18683fi 18684{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18685echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18686 18687if test "$hardcode_action_GCJ" = relink; then 18688 # Fast installation is not supported 18689 enable_fast_install=no 18690elif test "$shlibpath_overrides_runpath" = yes || 18691 test "$enable_shared" = no; then 18692 # Fast installation is not necessary 18693 enable_fast_install=needless 18694fi 18695 18696 18697# The else clause should only fire when bootstrapping the 18698# libtool distribution, otherwise you forgot to ship ltmain.sh 18699# with your package, and you will get complaints that there are 18700# no rules to generate ltmain.sh. 18701if test -f "$ltmain"; then 18702 # See if we are running on zsh, and set the options which allow our commands through 18703 # without removal of \ escapes. 18704 if test -n "${ZSH_VERSION+set}" ; then 18705 setopt NO_GLOB_SUBST 18706 fi 18707 # Now quote all the things that may contain metacharacters while being 18708 # careful not to overquote the AC_SUBSTed values. We take copies of the 18709 # variables and quote the copies for generation of the libtool script. 18710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18711 SED SHELL STRIP \ 18712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18714 deplibs_check_method reload_flag reload_cmds need_locks \ 18715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18716 lt_cv_sys_global_symbol_to_c_name_address \ 18717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18718 old_postinstall_cmds old_postuninstall_cmds \ 18719 compiler_GCJ \ 18720 CC_GCJ \ 18721 LD_GCJ \ 18722 lt_prog_compiler_wl_GCJ \ 18723 lt_prog_compiler_pic_GCJ \ 18724 lt_prog_compiler_static_GCJ \ 18725 lt_prog_compiler_no_builtin_flag_GCJ \ 18726 export_dynamic_flag_spec_GCJ \ 18727 thread_safe_flag_spec_GCJ \ 18728 whole_archive_flag_spec_GCJ \ 18729 enable_shared_with_static_runtimes_GCJ \ 18730 old_archive_cmds_GCJ \ 18731 old_archive_from_new_cmds_GCJ \ 18732 predep_objects_GCJ \ 18733 postdep_objects_GCJ \ 18734 predeps_GCJ \ 18735 postdeps_GCJ \ 18736 compiler_lib_search_path_GCJ \ 18737 archive_cmds_GCJ \ 18738 archive_expsym_cmds_GCJ \ 18739 postinstall_cmds_GCJ \ 18740 postuninstall_cmds_GCJ \ 18741 old_archive_from_expsyms_cmds_GCJ \ 18742 allow_undefined_flag_GCJ \ 18743 no_undefined_flag_GCJ \ 18744 export_symbols_cmds_GCJ \ 18745 hardcode_libdir_flag_spec_GCJ \ 18746 hardcode_libdir_flag_spec_ld_GCJ \ 18747 hardcode_libdir_separator_GCJ \ 18748 hardcode_automatic_GCJ \ 18749 module_cmds_GCJ \ 18750 module_expsym_cmds_GCJ \ 18751 lt_cv_prog_compiler_c_o_GCJ \ 18752 exclude_expsyms_GCJ \ 18753 include_expsyms_GCJ; do 18754 18755 case $var in 18756 old_archive_cmds_GCJ | \ 18757 old_archive_from_new_cmds_GCJ | \ 18758 archive_cmds_GCJ | \ 18759 archive_expsym_cmds_GCJ | \ 18760 module_cmds_GCJ | \ 18761 module_expsym_cmds_GCJ | \ 18762 old_archive_from_expsyms_cmds_GCJ | \ 18763 export_symbols_cmds_GCJ | \ 18764 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18765 postinstall_cmds | postuninstall_cmds | \ 18766 old_postinstall_cmds | old_postuninstall_cmds | \ 18767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18768 # Double-quote double-evaled strings. 18769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18770 ;; 18771 *) 18772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18773 ;; 18774 esac 18775 done 18776 18777 case $lt_echo in 18778 *'\$0 --fallback-echo"') 18779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18780 ;; 18781 esac 18782 18783cfgfile="$ofile" 18784 18785 cat <<__EOF__ >> "$cfgfile" 18786# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18787 18788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18789 18790# Shell to use when invoking shell scripts. 18791SHELL=$lt_SHELL 18792 18793# Whether or not to build shared libraries. 18794build_libtool_libs=$enable_shared 18795 18796# Whether or not to build static libraries. 18797build_old_libs=$enable_static 18798 18799# Whether or not to add -lc for building shared libraries. 18800build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18801 18802# Whether or not to disallow shared libs when runtime libs are static 18803allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18804 18805# Whether or not to optimize for fast installation. 18806fast_install=$enable_fast_install 18807 18808# The host system. 18809host_alias=$host_alias 18810host=$host 18811host_os=$host_os 18812 18813# The build system. 18814build_alias=$build_alias 18815build=$build 18816build_os=$build_os 18817 18818# An echo program that does not interpret backslashes. 18819echo=$lt_echo 18820 18821# The archiver. 18822AR=$lt_AR 18823AR_FLAGS=$lt_AR_FLAGS 18824 18825# A C compiler. 18826LTCC=$lt_LTCC 18827 18828# LTCC compiler flags. 18829LTCFLAGS=$lt_LTCFLAGS 18830 18831# A language-specific compiler. 18832CC=$lt_compiler_GCJ 18833 18834# Is the compiler the GNU C compiler? 18835with_gcc=$GCC_GCJ 18836 18837# An ERE matcher. 18838EGREP=$lt_EGREP 18839 18840# The linker used to build libraries. 18841LD=$lt_LD_GCJ 18842 18843# Whether we need hard or soft links. 18844LN_S=$lt_LN_S 18845 18846# A BSD-compatible nm program. 18847NM=$lt_NM 18848 18849# A symbol stripping program 18850STRIP=$lt_STRIP 18851 18852# Used to examine libraries when file_magic_cmd begins "file" 18853MAGIC_CMD=$MAGIC_CMD 18854 18855# Used on cygwin: DLL creation program. 18856DLLTOOL="$DLLTOOL" 18857 18858# Used on cygwin: object dumper. 18859OBJDUMP="$OBJDUMP" 18860 18861# Used on cygwin: assembler. 18862AS="$AS" 18863 18864# The name of the directory that contains temporary libtool files. 18865objdir=$objdir 18866 18867# How to create reloadable object files. 18868reload_flag=$lt_reload_flag 18869reload_cmds=$lt_reload_cmds 18870 18871# How to pass a linker flag through the compiler. 18872wl=$lt_lt_prog_compiler_wl_GCJ 18873 18874# Object file suffix (normally "o"). 18875objext="$ac_objext" 18876 18877# Old archive suffix (normally "a"). 18878libext="$libext" 18879 18880# Shared library suffix (normally ".so"). 18881shrext_cmds='$shrext_cmds' 18882 18883# Executable file suffix (normally ""). 18884exeext="$exeext" 18885 18886# Additional compiler flags for building library objects. 18887pic_flag=$lt_lt_prog_compiler_pic_GCJ 18888pic_mode=$pic_mode 18889 18890# What is the maximum length of a command? 18891max_cmd_len=$lt_cv_sys_max_cmd_len 18892 18893# Does compiler simultaneously support -c and -o options? 18894compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18895 18896# Must we lock files when doing compilation? 18897need_locks=$lt_need_locks 18898 18899# Do we need the lib prefix for modules? 18900need_lib_prefix=$need_lib_prefix 18901 18902# Do we need a version for libraries? 18903need_version=$need_version 18904 18905# Whether dlopen is supported. 18906dlopen_support=$enable_dlopen 18907 18908# Whether dlopen of programs is supported. 18909dlopen_self=$enable_dlopen_self 18910 18911# Whether dlopen of statically linked programs is supported. 18912dlopen_self_static=$enable_dlopen_self_static 18913 18914# Compiler flag to prevent dynamic linking. 18915link_static_flag=$lt_lt_prog_compiler_static_GCJ 18916 18917# Compiler flag to turn off builtin functions. 18918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18919 18920# Compiler flag to allow reflexive dlopens. 18921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18922 18923# Compiler flag to generate shared objects directly from archives. 18924whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18925 18926# Compiler flag to generate thread-safe objects. 18927thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18928 18929# Library versioning type. 18930version_type=$version_type 18931 18932# Format of library name prefix. 18933libname_spec=$lt_libname_spec 18934 18935# List of archive names. First name is the real one, the rest are links. 18936# The last name is the one that the linker finds with -lNAME. 18937library_names_spec=$lt_library_names_spec 18938 18939# The coded name of the library, if different from the real name. 18940soname_spec=$lt_soname_spec 18941 18942# Commands used to build and install an old-style archive. 18943RANLIB=$lt_RANLIB 18944old_archive_cmds=$lt_old_archive_cmds_GCJ 18945old_postinstall_cmds=$lt_old_postinstall_cmds 18946old_postuninstall_cmds=$lt_old_postuninstall_cmds 18947 18948# Create an old-style archive from a shared archive. 18949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18950 18951# Create a temporary old-style archive to link instead of a shared archive. 18952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18953 18954# Commands used to build and install a shared archive. 18955archive_cmds=$lt_archive_cmds_GCJ 18956archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18957postinstall_cmds=$lt_postinstall_cmds 18958postuninstall_cmds=$lt_postuninstall_cmds 18959 18960# Commands used to build a loadable module (assumed same as above if empty) 18961module_cmds=$lt_module_cmds_GCJ 18962module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18963 18964# Commands to strip libraries. 18965old_striplib=$lt_old_striplib 18966striplib=$lt_striplib 18967 18968# Dependencies to place before the objects being linked to create a 18969# shared library. 18970predep_objects=$lt_predep_objects_GCJ 18971 18972# Dependencies to place after the objects being linked to create a 18973# shared library. 18974postdep_objects=$lt_postdep_objects_GCJ 18975 18976# Dependencies to place before the objects being linked to create a 18977# shared library. 18978predeps=$lt_predeps_GCJ 18979 18980# Dependencies to place after the objects being linked to create a 18981# shared library. 18982postdeps=$lt_postdeps_GCJ 18983 18984# The library search path used internally by the compiler when linking 18985# a shared library. 18986compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18987 18988# Method to check whether dependent libraries are shared objects. 18989deplibs_check_method=$lt_deplibs_check_method 18990 18991# Command to use when deplibs_check_method == file_magic. 18992file_magic_cmd=$lt_file_magic_cmd 18993 18994# Flag that allows shared libraries with undefined symbols to be built. 18995allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18996 18997# Flag that forces no undefined symbols. 18998no_undefined_flag=$lt_no_undefined_flag_GCJ 18999 19000# Commands used to finish a libtool library installation in a directory. 19001finish_cmds=$lt_finish_cmds 19002 19003# Same as above, but a single script fragment to be evaled but not shown. 19004finish_eval=$lt_finish_eval 19005 19006# Take the output of nm and produce a listing of raw symbols and C names. 19007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19008 19009# Transform the output of nm in a proper C declaration 19010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19011 19012# Transform the output of nm in a C name address pair 19013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19014 19015# This is the shared library runtime path variable. 19016runpath_var=$runpath_var 19017 19018# This is the shared library path variable. 19019shlibpath_var=$shlibpath_var 19020 19021# Is shlibpath searched before the hard-coded library search path? 19022shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19023 19024# How to hardcode a shared library path into an executable. 19025hardcode_action=$hardcode_action_GCJ 19026 19027# Whether we should hardcode library paths into libraries. 19028hardcode_into_libs=$hardcode_into_libs 19029 19030# Flag to hardcode \$libdir into a binary during linking. 19031# This must work even if \$libdir does not exist. 19032hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19033 19034# If ld is used when linking, flag to hardcode \$libdir into 19035# a binary during linking. This must work even if \$libdir does 19036# not exist. 19037hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19038 19039# Whether we need a single -rpath flag with a separated argument. 19040hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19041 19042# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19043# resulting binary. 19044hardcode_direct=$hardcode_direct_GCJ 19045 19046# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19047# resulting binary. 19048hardcode_minus_L=$hardcode_minus_L_GCJ 19049 19050# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19051# the resulting binary. 19052hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19053 19054# Set to yes if building a shared library automatically hardcodes DIR into the library 19055# and all subsequent libraries and executables linked against it. 19056hardcode_automatic=$hardcode_automatic_GCJ 19057 19058# Variables whose values should be saved in libtool wrapper scripts and 19059# restored at relink time. 19060variables_saved_for_relink="$variables_saved_for_relink" 19061 19062# Whether libtool must link a program against all its dependency libraries. 19063link_all_deplibs=$link_all_deplibs_GCJ 19064 19065# Compile-time system search path for libraries 19066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19067 19068# Run-time system search path for libraries 19069sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19070 19071# Fix the shell variable \$srcfile for the compiler. 19072fix_srcfile_path="$fix_srcfile_path_GCJ" 19073 19074# Set to yes if exported symbols are required. 19075always_export_symbols=$always_export_symbols_GCJ 19076 19077# The commands to list exported symbols. 19078export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19079 19080# The commands to extract the exported symbol list from a shared archive. 19081extract_expsyms_cmds=$lt_extract_expsyms_cmds 19082 19083# Symbols that should not be listed in the preloaded symbols. 19084exclude_expsyms=$lt_exclude_expsyms_GCJ 19085 19086# Symbols that must always be exported. 19087include_expsyms=$lt_include_expsyms_GCJ 19088 19089# ### END LIBTOOL TAG CONFIG: $tagname 19090 19091__EOF__ 19092 19093 19094else 19095 # If there is no Makefile yet, we rely on a make rule to execute 19096 # `config.status --recheck' to rerun these tests and create the 19097 # libtool script then. 19098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19099 if test -f "$ltmain_in"; then 19100 test -f Makefile && make "$ltmain" 19101 fi 19102fi 19103 19104 19105ac_ext=c 19106ac_cpp='$CPP $CPPFLAGS' 19107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19109ac_compiler_gnu=$ac_cv_c_compiler_gnu 19110 19111CC="$lt_save_CC" 19112 19113 else 19114 tagname="" 19115 fi 19116 ;; 19117 19118 RC) 19119 19120 19121# Source file extension for RC test sources. 19122ac_ext=rc 19123 19124# Object file extension for compiled RC test sources. 19125objext=o 19126objext_RC=$objext 19127 19128# Code to be used in simple compile tests 19129lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19130 19131# Code to be used in simple link tests 19132lt_simple_link_test_code="$lt_simple_compile_test_code" 19133 19134# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19135 19136# If no C compiler was specified, use CC. 19137LTCC=${LTCC-"$CC"} 19138 19139# If no C compiler flags were specified, use CFLAGS. 19140LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19141 19142# Allow CC to be a program name with arguments. 19143compiler=$CC 19144 19145 19146# save warnings/boilerplate of simple test code 19147ac_outfile=conftest.$ac_objext 19148printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19150_lt_compiler_boilerplate=`cat conftest.err` 19151$rm conftest* 19152 19153ac_outfile=conftest.$ac_objext 19154printf "$lt_simple_link_test_code" >conftest.$ac_ext 19155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19156_lt_linker_boilerplate=`cat conftest.err` 19157$rm conftest* 19158 19159 19160# Allow CC to be a program name with arguments. 19161lt_save_CC="$CC" 19162CC=${RC-"windres"} 19163compiler=$CC 19164compiler_RC=$CC 19165for cc_temp in $compiler""; do 19166 case $cc_temp in 19167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19169 \-*) ;; 19170 *) break;; 19171 esac 19172done 19173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19174 19175lt_cv_prog_compiler_c_o_RC=yes 19176 19177# The else clause should only fire when bootstrapping the 19178# libtool distribution, otherwise you forgot to ship ltmain.sh 19179# with your package, and you will get complaints that there are 19180# no rules to generate ltmain.sh. 19181if test -f "$ltmain"; then 19182 # See if we are running on zsh, and set the options which allow our commands through 19183 # without removal of \ escapes. 19184 if test -n "${ZSH_VERSION+set}" ; then 19185 setopt NO_GLOB_SUBST 19186 fi 19187 # Now quote all the things that may contain metacharacters while being 19188 # careful not to overquote the AC_SUBSTed values. We take copies of the 19189 # variables and quote the copies for generation of the libtool script. 19190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19191 SED SHELL STRIP \ 19192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19194 deplibs_check_method reload_flag reload_cmds need_locks \ 19195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19196 lt_cv_sys_global_symbol_to_c_name_address \ 19197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19198 old_postinstall_cmds old_postuninstall_cmds \ 19199 compiler_RC \ 19200 CC_RC \ 19201 LD_RC \ 19202 lt_prog_compiler_wl_RC \ 19203 lt_prog_compiler_pic_RC \ 19204 lt_prog_compiler_static_RC \ 19205 lt_prog_compiler_no_builtin_flag_RC \ 19206 export_dynamic_flag_spec_RC \ 19207 thread_safe_flag_spec_RC \ 19208 whole_archive_flag_spec_RC \ 19209 enable_shared_with_static_runtimes_RC \ 19210 old_archive_cmds_RC \ 19211 old_archive_from_new_cmds_RC \ 19212 predep_objects_RC \ 19213 postdep_objects_RC \ 19214 predeps_RC \ 19215 postdeps_RC \ 19216 compiler_lib_search_path_RC \ 19217 archive_cmds_RC \ 19218 archive_expsym_cmds_RC \ 19219 postinstall_cmds_RC \ 19220 postuninstall_cmds_RC \ 19221 old_archive_from_expsyms_cmds_RC \ 19222 allow_undefined_flag_RC \ 19223 no_undefined_flag_RC \ 19224 export_symbols_cmds_RC \ 19225 hardcode_libdir_flag_spec_RC \ 19226 hardcode_libdir_flag_spec_ld_RC \ 19227 hardcode_libdir_separator_RC \ 19228 hardcode_automatic_RC \ 19229 module_cmds_RC \ 19230 module_expsym_cmds_RC \ 19231 lt_cv_prog_compiler_c_o_RC \ 19232 exclude_expsyms_RC \ 19233 include_expsyms_RC; do 19234 19235 case $var in 19236 old_archive_cmds_RC | \ 19237 old_archive_from_new_cmds_RC | \ 19238 archive_cmds_RC | \ 19239 archive_expsym_cmds_RC | \ 19240 module_cmds_RC | \ 19241 module_expsym_cmds_RC | \ 19242 old_archive_from_expsyms_cmds_RC | \ 19243 export_symbols_cmds_RC | \ 19244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19245 postinstall_cmds | postuninstall_cmds | \ 19246 old_postinstall_cmds | old_postuninstall_cmds | \ 19247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19248 # Double-quote double-evaled strings. 19249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19250 ;; 19251 *) 19252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19253 ;; 19254 esac 19255 done 19256 19257 case $lt_echo in 19258 *'\$0 --fallback-echo"') 19259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19260 ;; 19261 esac 19262 19263cfgfile="$ofile" 19264 19265 cat <<__EOF__ >> "$cfgfile" 19266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19267 19268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19269 19270# Shell to use when invoking shell scripts. 19271SHELL=$lt_SHELL 19272 19273# Whether or not to build shared libraries. 19274build_libtool_libs=$enable_shared 19275 19276# Whether or not to build static libraries. 19277build_old_libs=$enable_static 19278 19279# Whether or not to add -lc for building shared libraries. 19280build_libtool_need_lc=$archive_cmds_need_lc_RC 19281 19282# Whether or not to disallow shared libs when runtime libs are static 19283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19284 19285# Whether or not to optimize for fast installation. 19286fast_install=$enable_fast_install 19287 19288# The host system. 19289host_alias=$host_alias 19290host=$host 19291host_os=$host_os 19292 19293# The build system. 19294build_alias=$build_alias 19295build=$build 19296build_os=$build_os 19297 19298# An echo program that does not interpret backslashes. 19299echo=$lt_echo 19300 19301# The archiver. 19302AR=$lt_AR 19303AR_FLAGS=$lt_AR_FLAGS 19304 19305# A C compiler. 19306LTCC=$lt_LTCC 19307 19308# LTCC compiler flags. 19309LTCFLAGS=$lt_LTCFLAGS 19310 19311# A language-specific compiler. 19312CC=$lt_compiler_RC 19313 19314# Is the compiler the GNU C compiler? 19315with_gcc=$GCC_RC 19316 19317# An ERE matcher. 19318EGREP=$lt_EGREP 19319 19320# The linker used to build libraries. 19321LD=$lt_LD_RC 19322 19323# Whether we need hard or soft links. 19324LN_S=$lt_LN_S 19325 19326# A BSD-compatible nm program. 19327NM=$lt_NM 19328 19329# A symbol stripping program 19330STRIP=$lt_STRIP 19331 19332# Used to examine libraries when file_magic_cmd begins "file" 19333MAGIC_CMD=$MAGIC_CMD 19334 19335# Used on cygwin: DLL creation program. 19336DLLTOOL="$DLLTOOL" 19337 19338# Used on cygwin: object dumper. 19339OBJDUMP="$OBJDUMP" 19340 19341# Used on cygwin: assembler. 19342AS="$AS" 19343 19344# The name of the directory that contains temporary libtool files. 19345objdir=$objdir 19346 19347# How to create reloadable object files. 19348reload_flag=$lt_reload_flag 19349reload_cmds=$lt_reload_cmds 19350 19351# How to pass a linker flag through the compiler. 19352wl=$lt_lt_prog_compiler_wl_RC 19353 19354# Object file suffix (normally "o"). 19355objext="$ac_objext" 19356 19357# Old archive suffix (normally "a"). 19358libext="$libext" 19359 19360# Shared library suffix (normally ".so"). 19361shrext_cmds='$shrext_cmds' 19362 19363# Executable file suffix (normally ""). 19364exeext="$exeext" 19365 19366# Additional compiler flags for building library objects. 19367pic_flag=$lt_lt_prog_compiler_pic_RC 19368pic_mode=$pic_mode 19369 19370# What is the maximum length of a command? 19371max_cmd_len=$lt_cv_sys_max_cmd_len 19372 19373# Does compiler simultaneously support -c and -o options? 19374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19375 19376# Must we lock files when doing compilation? 19377need_locks=$lt_need_locks 19378 19379# Do we need the lib prefix for modules? 19380need_lib_prefix=$need_lib_prefix 19381 19382# Do we need a version for libraries? 19383need_version=$need_version 19384 19385# Whether dlopen is supported. 19386dlopen_support=$enable_dlopen 19387 19388# Whether dlopen of programs is supported. 19389dlopen_self=$enable_dlopen_self 19390 19391# Whether dlopen of statically linked programs is supported. 19392dlopen_self_static=$enable_dlopen_self_static 19393 19394# Compiler flag to prevent dynamic linking. 19395link_static_flag=$lt_lt_prog_compiler_static_RC 19396 19397# Compiler flag to turn off builtin functions. 19398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19399 19400# Compiler flag to allow reflexive dlopens. 19401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19402 19403# Compiler flag to generate shared objects directly from archives. 19404whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19405 19406# Compiler flag to generate thread-safe objects. 19407thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19408 19409# Library versioning type. 19410version_type=$version_type 19411 19412# Format of library name prefix. 19413libname_spec=$lt_libname_spec 19414 19415# List of archive names. First name is the real one, the rest are links. 19416# The last name is the one that the linker finds with -lNAME. 19417library_names_spec=$lt_library_names_spec 19418 19419# The coded name of the library, if different from the real name. 19420soname_spec=$lt_soname_spec 19421 19422# Commands used to build and install an old-style archive. 19423RANLIB=$lt_RANLIB 19424old_archive_cmds=$lt_old_archive_cmds_RC 19425old_postinstall_cmds=$lt_old_postinstall_cmds 19426old_postuninstall_cmds=$lt_old_postuninstall_cmds 19427 19428# Create an old-style archive from a shared archive. 19429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19430 19431# Create a temporary old-style archive to link instead of a shared archive. 19432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19433 19434# Commands used to build and install a shared archive. 19435archive_cmds=$lt_archive_cmds_RC 19436archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19437postinstall_cmds=$lt_postinstall_cmds 19438postuninstall_cmds=$lt_postuninstall_cmds 19439 19440# Commands used to build a loadable module (assumed same as above if empty) 19441module_cmds=$lt_module_cmds_RC 19442module_expsym_cmds=$lt_module_expsym_cmds_RC 19443 19444# Commands to strip libraries. 19445old_striplib=$lt_old_striplib 19446striplib=$lt_striplib 19447 19448# Dependencies to place before the objects being linked to create a 19449# shared library. 19450predep_objects=$lt_predep_objects_RC 19451 19452# Dependencies to place after the objects being linked to create a 19453# shared library. 19454postdep_objects=$lt_postdep_objects_RC 19455 19456# Dependencies to place before the objects being linked to create a 19457# shared library. 19458predeps=$lt_predeps_RC 19459 19460# Dependencies to place after the objects being linked to create a 19461# shared library. 19462postdeps=$lt_postdeps_RC 19463 19464# The library search path used internally by the compiler when linking 19465# a shared library. 19466compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19467 19468# Method to check whether dependent libraries are shared objects. 19469deplibs_check_method=$lt_deplibs_check_method 19470 19471# Command to use when deplibs_check_method == file_magic. 19472file_magic_cmd=$lt_file_magic_cmd 19473 19474# Flag that allows shared libraries with undefined symbols to be built. 19475allow_undefined_flag=$lt_allow_undefined_flag_RC 19476 19477# Flag that forces no undefined symbols. 19478no_undefined_flag=$lt_no_undefined_flag_RC 19479 19480# Commands used to finish a libtool library installation in a directory. 19481finish_cmds=$lt_finish_cmds 19482 19483# Same as above, but a single script fragment to be evaled but not shown. 19484finish_eval=$lt_finish_eval 19485 19486# Take the output of nm and produce a listing of raw symbols and C names. 19487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19488 19489# Transform the output of nm in a proper C declaration 19490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19491 19492# Transform the output of nm in a C name address pair 19493global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19494 19495# This is the shared library runtime path variable. 19496runpath_var=$runpath_var 19497 19498# This is the shared library path variable. 19499shlibpath_var=$shlibpath_var 19500 19501# Is shlibpath searched before the hard-coded library search path? 19502shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19503 19504# How to hardcode a shared library path into an executable. 19505hardcode_action=$hardcode_action_RC 19506 19507# Whether we should hardcode library paths into libraries. 19508hardcode_into_libs=$hardcode_into_libs 19509 19510# Flag to hardcode \$libdir into a binary during linking. 19511# This must work even if \$libdir does not exist. 19512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19513 19514# If ld is used when linking, flag to hardcode \$libdir into 19515# a binary during linking. This must work even if \$libdir does 19516# not exist. 19517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19518 19519# Whether we need a single -rpath flag with a separated argument. 19520hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19521 19522# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19523# resulting binary. 19524hardcode_direct=$hardcode_direct_RC 19525 19526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19527# resulting binary. 19528hardcode_minus_L=$hardcode_minus_L_RC 19529 19530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19531# the resulting binary. 19532hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19533 19534# Set to yes if building a shared library automatically hardcodes DIR into the library 19535# and all subsequent libraries and executables linked against it. 19536hardcode_automatic=$hardcode_automatic_RC 19537 19538# Variables whose values should be saved in libtool wrapper scripts and 19539# restored at relink time. 19540variables_saved_for_relink="$variables_saved_for_relink" 19541 19542# Whether libtool must link a program against all its dependency libraries. 19543link_all_deplibs=$link_all_deplibs_RC 19544 19545# Compile-time system search path for libraries 19546sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19547 19548# Run-time system search path for libraries 19549sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19550 19551# Fix the shell variable \$srcfile for the compiler. 19552fix_srcfile_path="$fix_srcfile_path_RC" 19553 19554# Set to yes if exported symbols are required. 19555always_export_symbols=$always_export_symbols_RC 19556 19557# The commands to list exported symbols. 19558export_symbols_cmds=$lt_export_symbols_cmds_RC 19559 19560# The commands to extract the exported symbol list from a shared archive. 19561extract_expsyms_cmds=$lt_extract_expsyms_cmds 19562 19563# Symbols that should not be listed in the preloaded symbols. 19564exclude_expsyms=$lt_exclude_expsyms_RC 19565 19566# Symbols that must always be exported. 19567include_expsyms=$lt_include_expsyms_RC 19568 19569# ### END LIBTOOL TAG CONFIG: $tagname 19570 19571__EOF__ 19572 19573 19574else 19575 # If there is no Makefile yet, we rely on a make rule to execute 19576 # `config.status --recheck' to rerun these tests and create the 19577 # libtool script then. 19578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19579 if test -f "$ltmain_in"; then 19580 test -f Makefile && make "$ltmain" 19581 fi 19582fi 19583 19584 19585ac_ext=c 19586ac_cpp='$CPP $CPPFLAGS' 19587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19589ac_compiler_gnu=$ac_cv_c_compiler_gnu 19590 19591CC="$lt_save_CC" 19592 19593 ;; 19594 19595 *) 19596 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19597echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19598 { (exit 1); exit 1; }; } 19599 ;; 19600 esac 19601 19602 # Append the new tag name to the list of available tags. 19603 if test -n "$tagname" ; then 19604 available_tags="$available_tags $tagname" 19605 fi 19606 fi 19607 done 19608 IFS="$lt_save_ifs" 19609 19610 # Now substitute the updated list of available tags. 19611 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19612 mv "${ofile}T" "$ofile" 19613 chmod +x "$ofile" 19614 else 19615 rm -f "${ofile}T" 19616 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19617echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19618 { (exit 1); exit 1; }; } 19619 fi 19620fi 19621 19622 19623 19624# This can be used to rebuild libtool when needed 19625LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19626 19627# Always use our own libtool. 19628LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19629 19630# Prevent multiple expansion 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651# Find a good install program. We prefer a C program (faster), 19652# so one script is as good as another. But avoid the broken or 19653# incompatible versions: 19654# SysV /etc/install, /usr/sbin/install 19655# SunOS /usr/etc/install 19656# IRIX /sbin/install 19657# AIX /bin/install 19658# AmigaOS /C/install, which installs bootblocks on floppy discs 19659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19660# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19662# OS/2's system install, which has a completely different semantic 19663# ./install, which can be erroneously created by make from ./install.sh. 19664{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 19666if test -z "$INSTALL"; then 19667if test "${ac_cv_path_install+set}" = set; then 19668 echo $ECHO_N "(cached) $ECHO_C" >&6 19669else 19670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19671for as_dir in $PATH 19672do 19673 IFS=$as_save_IFS 19674 test -z "$as_dir" && as_dir=. 19675 # Account for people who put trailing slashes in PATH elements. 19676case $as_dir/ in 19677 ./ | .// | /cC/* | \ 19678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19680 /usr/ucb/* ) ;; 19681 *) 19682 # OSF1 and SCO ODT 3.0 have their own names for install. 19683 # Don't use installbsd from OSF since it installs stuff as root 19684 # by default. 19685 for ac_prog in ginstall scoinst install; do 19686 for ac_exec_ext in '' $ac_executable_extensions; do 19687 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19688 if test $ac_prog = install && 19689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19690 # AIX install. It has an incompatible calling convention. 19691 : 19692 elif test $ac_prog = install && 19693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19694 # program-specific install script used by HP pwplus--don't use. 19695 : 19696 else 19697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19698 break 3 19699 fi 19700 fi 19701 done 19702 done 19703 ;; 19704esac 19705done 19706IFS=$as_save_IFS 19707 19708 19709fi 19710 if test "${ac_cv_path_install+set}" = set; then 19711 INSTALL=$ac_cv_path_install 19712 else 19713 # As a last resort, use the slow shell script. Don't cache a 19714 # value for INSTALL within a source directory, because that will 19715 # break other packages using the cache if that directory is 19716 # removed, or if the value is a relative name. 19717 INSTALL=$ac_install_sh 19718 fi 19719fi 19720{ echo "$as_me:$LINENO: result: $INSTALL" >&5 19721echo "${ECHO_T}$INSTALL" >&6; } 19722 19723# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19724# It thinks the first close brace ends the variable substitution. 19725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19726 19727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19728 19729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19730 19731{ echo "$as_me:$LINENO: checking for X" >&5 19732echo $ECHO_N "checking for X... $ECHO_C" >&6; } 19733 19734 19735# Check whether --with-x was given. 19736if test "${with_x+set}" = set; then 19737 withval=$with_x; 19738fi 19739 19740# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19741if test "x$with_x" = xno; then 19742 # The user explicitly disabled X. 19743 have_x=disabled 19744else 19745 case $x_includes,$x_libraries in #( 19746 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 19747echo "$as_me: error: Cannot use X directory names containing '" >&2;} 19748 { (exit 1); exit 1; }; };; #( 19749 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 19750 echo $ECHO_N "(cached) $ECHO_C" >&6 19751else 19752 # One or both of the vars are not set, and there is no cached value. 19753ac_x_includes=no ac_x_libraries=no 19754rm -f -r conftest.dir 19755if mkdir conftest.dir; then 19756 cd conftest.dir 19757 cat >Imakefile <<'_ACEOF' 19758incroot: 19759 @echo incroot='${INCROOT}' 19760usrlibdir: 19761 @echo usrlibdir='${USRLIBDIR}' 19762libdir: 19763 @echo libdir='${LIBDIR}' 19764_ACEOF 19765 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 19767 for ac_var in incroot usrlibdir libdir; do 19768 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19769 done 19770 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19771 for ac_extension in a so sl; do 19772 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19773 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19774 ac_im_usrlibdir=$ac_im_libdir; break 19775 fi 19776 done 19777 # Screen out bogus values from the imake configuration. They are 19778 # bogus both because they are the default anyway, and because 19779 # using them would break gcc on systems where it needs fixed includes. 19780 case $ac_im_incroot in 19781 /usr/include) ac_x_includes= ;; 19782 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19783 esac 19784 case $ac_im_usrlibdir in 19785 /usr/lib | /lib) ;; 19786 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19787 esac 19788 fi 19789 cd .. 19790 rm -f -r conftest.dir 19791fi 19792 19793# Standard set of common directories for X headers. 19794# Check X11 before X11Rn because it is often a symlink to the current release. 19795ac_x_header_dirs=' 19796/usr/X11/include 19797/usr/X11R6/include 19798/usr/X11R5/include 19799/usr/X11R4/include 19800 19801/usr/include/X11 19802/usr/include/X11R6 19803/usr/include/X11R5 19804/usr/include/X11R4 19805 19806/usr/local/X11/include 19807/usr/local/X11R6/include 19808/usr/local/X11R5/include 19809/usr/local/X11R4/include 19810 19811/usr/local/include/X11 19812/usr/local/include/X11R6 19813/usr/local/include/X11R5 19814/usr/local/include/X11R4 19815 19816/usr/X386/include 19817/usr/x386/include 19818/usr/XFree86/include/X11 19819 19820/usr/include 19821/usr/local/include 19822/usr/unsupported/include 19823/usr/athena/include 19824/usr/local/x11r5/include 19825/usr/lpp/Xamples/include 19826 19827/usr/openwin/include 19828/usr/openwin/share/include' 19829 19830if test "$ac_x_includes" = no; then 19831 # Guess where to find include files, by looking for Xlib.h. 19832 # First, try using that file with no special directory specified. 19833 cat >conftest.$ac_ext <<_ACEOF 19834/* confdefs.h. */ 19835_ACEOF 19836cat confdefs.h >>conftest.$ac_ext 19837cat >>conftest.$ac_ext <<_ACEOF 19838/* end confdefs.h. */ 19839#include <X11/Xlib.h> 19840_ACEOF 19841if { (ac_try="$ac_cpp conftest.$ac_ext" 19842case "(($ac_try" in 19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19844 *) ac_try_echo=$ac_try;; 19845esac 19846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19848 ac_status=$? 19849 grep -v '^ *+' conftest.er1 >conftest.err 19850 rm -f conftest.er1 19851 cat conftest.err >&5 19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19853 (exit $ac_status); } >/dev/null && { 19854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19855 test ! -s conftest.err 19856 }; then 19857 # We can compile using X headers with no special include directory. 19858ac_x_includes= 19859else 19860 echo "$as_me: failed program was:" >&5 19861sed 's/^/| /' conftest.$ac_ext >&5 19862 19863 for ac_dir in $ac_x_header_dirs; do 19864 if test -r "$ac_dir/X11/Xlib.h"; then 19865 ac_x_includes=$ac_dir 19866 break 19867 fi 19868done 19869fi 19870 19871rm -f conftest.err conftest.$ac_ext 19872fi # $ac_x_includes = no 19873 19874if test "$ac_x_libraries" = no; then 19875 # Check for the libraries. 19876 # See if we find them without any special options. 19877 # Don't add to $LIBS permanently. 19878 ac_save_LIBS=$LIBS 19879 LIBS="-lX11 $LIBS" 19880 cat >conftest.$ac_ext <<_ACEOF 19881/* confdefs.h. */ 19882_ACEOF 19883cat confdefs.h >>conftest.$ac_ext 19884cat >>conftest.$ac_ext <<_ACEOF 19885/* end confdefs.h. */ 19886#include <X11/Xlib.h> 19887int 19888main () 19889{ 19890XrmInitialize () 19891 ; 19892 return 0; 19893} 19894_ACEOF 19895rm -f conftest.$ac_objext conftest$ac_exeext 19896if { (ac_try="$ac_link" 19897case "(($ac_try" in 19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19899 *) ac_try_echo=$ac_try;; 19900esac 19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19902 (eval "$ac_link") 2>conftest.er1 19903 ac_status=$? 19904 grep -v '^ *+' conftest.er1 >conftest.err 19905 rm -f conftest.er1 19906 cat conftest.err >&5 19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19908 (exit $ac_status); } && { 19909 test -z "$ac_c_werror_flag" || 19910 test ! -s conftest.err 19911 } && test -s conftest$ac_exeext && 19912 $as_test_x conftest$ac_exeext; then 19913 LIBS=$ac_save_LIBS 19914# We can link X programs with no special library path. 19915ac_x_libraries= 19916else 19917 echo "$as_me: failed program was:" >&5 19918sed 's/^/| /' conftest.$ac_ext >&5 19919 19920 LIBS=$ac_save_LIBS 19921for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19922do 19923 # Don't even attempt the hair of trying to link an X program! 19924 for ac_extension in a so sl; do 19925 if test -r "$ac_dir/libX11.$ac_extension"; then 19926 ac_x_libraries=$ac_dir 19927 break 2 19928 fi 19929 done 19930done 19931fi 19932 19933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19934 conftest$ac_exeext conftest.$ac_ext 19935fi # $ac_x_libraries = no 19936 19937case $ac_x_includes,$ac_x_libraries in #( 19938 no,* | *,no | *\'*) 19939 # Didn't find X, or a directory has "'" in its name. 19940 ac_cv_have_x="have_x=no";; #( 19941 *) 19942 # Record where we found X for the cache. 19943 ac_cv_have_x="have_x=yes\ 19944 ac_x_includes='$ac_x_includes'\ 19945 ac_x_libraries='$ac_x_libraries'" 19946esac 19947fi 19948;; #( 19949 *) have_x=yes;; 19950 esac 19951 eval "$ac_cv_have_x" 19952fi # $with_x != no 19953 19954if test "$have_x" != yes; then 19955 { echo "$as_me:$LINENO: result: $have_x" >&5 19956echo "${ECHO_T}$have_x" >&6; } 19957 no_x=yes 19958else 19959 # If each of the values was on the command line, it overrides each guess. 19960 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19961 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19962 # Update the cache value to reflect the command line values. 19963 ac_cv_have_x="have_x=yes\ 19964 ac_x_includes='$x_includes'\ 19965 ac_x_libraries='$x_libraries'" 19966 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 19967echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 19968fi 19969 19970if test "$no_x" = yes; then 19971 # Not all programs may use this symbol, but it does not hurt to define it. 19972 19973cat >>confdefs.h <<\_ACEOF 19974#define X_DISPLAY_MISSING 1 19975_ACEOF 19976 19977 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19978else 19979 if test -n "$x_includes"; then 19980 X_CFLAGS="$X_CFLAGS -I$x_includes" 19981 fi 19982 19983 # It would also be nice to do this for all -L options, not just this one. 19984 if test -n "$x_libraries"; then 19985 X_LIBS="$X_LIBS -L$x_libraries" 19986 # For Solaris; some versions of Sun CC require a space after -R and 19987 # others require no space. Words are not sufficient . . . . 19988 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 19989echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 19990 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19991 ac_xsave_c_werror_flag=$ac_c_werror_flag 19992 ac_c_werror_flag=yes 19993 cat >conftest.$ac_ext <<_ACEOF 19994/* confdefs.h. */ 19995_ACEOF 19996cat confdefs.h >>conftest.$ac_ext 19997cat >>conftest.$ac_ext <<_ACEOF 19998/* end confdefs.h. */ 19999 20000int 20001main () 20002{ 20003 20004 ; 20005 return 0; 20006} 20007_ACEOF 20008rm -f conftest.$ac_objext conftest$ac_exeext 20009if { (ac_try="$ac_link" 20010case "(($ac_try" in 20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20012 *) ac_try_echo=$ac_try;; 20013esac 20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20015 (eval "$ac_link") 2>conftest.er1 20016 ac_status=$? 20017 grep -v '^ *+' conftest.er1 >conftest.err 20018 rm -f conftest.er1 20019 cat conftest.err >&5 20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20021 (exit $ac_status); } && { 20022 test -z "$ac_c_werror_flag" || 20023 test ! -s conftest.err 20024 } && test -s conftest$ac_exeext && 20025 $as_test_x conftest$ac_exeext; then 20026 { echo "$as_me:$LINENO: result: no" >&5 20027echo "${ECHO_T}no" >&6; } 20028 X_LIBS="$X_LIBS -R$x_libraries" 20029else 20030 echo "$as_me: failed program was:" >&5 20031sed 's/^/| /' conftest.$ac_ext >&5 20032 20033 LIBS="$ac_xsave_LIBS -R $x_libraries" 20034 cat >conftest.$ac_ext <<_ACEOF 20035/* confdefs.h. */ 20036_ACEOF 20037cat confdefs.h >>conftest.$ac_ext 20038cat >>conftest.$ac_ext <<_ACEOF 20039/* end confdefs.h. */ 20040 20041int 20042main () 20043{ 20044 20045 ; 20046 return 0; 20047} 20048_ACEOF 20049rm -f conftest.$ac_objext conftest$ac_exeext 20050if { (ac_try="$ac_link" 20051case "(($ac_try" in 20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20053 *) ac_try_echo=$ac_try;; 20054esac 20055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20056 (eval "$ac_link") 2>conftest.er1 20057 ac_status=$? 20058 grep -v '^ *+' conftest.er1 >conftest.err 20059 rm -f conftest.er1 20060 cat conftest.err >&5 20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20062 (exit $ac_status); } && { 20063 test -z "$ac_c_werror_flag" || 20064 test ! -s conftest.err 20065 } && test -s conftest$ac_exeext && 20066 $as_test_x conftest$ac_exeext; then 20067 { echo "$as_me:$LINENO: result: yes" >&5 20068echo "${ECHO_T}yes" >&6; } 20069 X_LIBS="$X_LIBS -R $x_libraries" 20070else 20071 echo "$as_me: failed program was:" >&5 20072sed 's/^/| /' conftest.$ac_ext >&5 20073 20074 { echo "$as_me:$LINENO: result: neither works" >&5 20075echo "${ECHO_T}neither works" >&6; } 20076fi 20077 20078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20079 conftest$ac_exeext conftest.$ac_ext 20080fi 20081 20082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20083 conftest$ac_exeext conftest.$ac_ext 20084 ac_c_werror_flag=$ac_xsave_c_werror_flag 20085 LIBS=$ac_xsave_LIBS 20086 fi 20087 20088 # Check for system-dependent libraries X programs must link with. 20089 # Do this before checking for the system-independent R6 libraries 20090 # (-lICE), since we may need -lsocket or whatever for X linking. 20091 20092 if test "$ISC" = yes; then 20093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 20094 else 20095 # Martyn Johnson says this is needed for Ultrix, if the X 20096 # libraries were built with DECnet support. And Karl Berry says 20097 # the Alpha needs dnet_stub (dnet does not exist). 20098 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 20099 cat >conftest.$ac_ext <<_ACEOF 20100/* confdefs.h. */ 20101_ACEOF 20102cat confdefs.h >>conftest.$ac_ext 20103cat >>conftest.$ac_ext <<_ACEOF 20104/* end confdefs.h. */ 20105 20106/* Override any GCC internal prototype to avoid an error. 20107 Use char because int might match the return type of a GCC 20108 builtin and then its argument prototype would still apply. */ 20109#ifdef __cplusplus 20110extern "C" 20111#endif 20112char XOpenDisplay (); 20113int 20114main () 20115{ 20116return XOpenDisplay (); 20117 ; 20118 return 0; 20119} 20120_ACEOF 20121rm -f conftest.$ac_objext conftest$ac_exeext 20122if { (ac_try="$ac_link" 20123case "(($ac_try" in 20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20125 *) ac_try_echo=$ac_try;; 20126esac 20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20128 (eval "$ac_link") 2>conftest.er1 20129 ac_status=$? 20130 grep -v '^ *+' conftest.er1 >conftest.err 20131 rm -f conftest.er1 20132 cat conftest.err >&5 20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); } && { 20135 test -z "$ac_c_werror_flag" || 20136 test ! -s conftest.err 20137 } && test -s conftest$ac_exeext && 20138 $as_test_x conftest$ac_exeext; then 20139 : 20140else 20141 echo "$as_me: failed program was:" >&5 20142sed 's/^/| /' conftest.$ac_ext >&5 20143 20144 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 20145echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 20146if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 20147 echo $ECHO_N "(cached) $ECHO_C" >&6 20148else 20149 ac_check_lib_save_LIBS=$LIBS 20150LIBS="-ldnet $LIBS" 20151cat >conftest.$ac_ext <<_ACEOF 20152/* confdefs.h. */ 20153_ACEOF 20154cat confdefs.h >>conftest.$ac_ext 20155cat >>conftest.$ac_ext <<_ACEOF 20156/* end confdefs.h. */ 20157 20158/* Override any GCC internal prototype to avoid an error. 20159 Use char because int might match the return type of a GCC 20160 builtin and then its argument prototype would still apply. */ 20161#ifdef __cplusplus 20162extern "C" 20163#endif 20164char dnet_ntoa (); 20165int 20166main () 20167{ 20168return dnet_ntoa (); 20169 ; 20170 return 0; 20171} 20172_ACEOF 20173rm -f conftest.$ac_objext conftest$ac_exeext 20174if { (ac_try="$ac_link" 20175case "(($ac_try" in 20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20177 *) ac_try_echo=$ac_try;; 20178esac 20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20180 (eval "$ac_link") 2>conftest.er1 20181 ac_status=$? 20182 grep -v '^ *+' conftest.er1 >conftest.err 20183 rm -f conftest.er1 20184 cat conftest.err >&5 20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20186 (exit $ac_status); } && { 20187 test -z "$ac_c_werror_flag" || 20188 test ! -s conftest.err 20189 } && test -s conftest$ac_exeext && 20190 $as_test_x conftest$ac_exeext; then 20191 ac_cv_lib_dnet_dnet_ntoa=yes 20192else 20193 echo "$as_me: failed program was:" >&5 20194sed 's/^/| /' conftest.$ac_ext >&5 20195 20196 ac_cv_lib_dnet_dnet_ntoa=no 20197fi 20198 20199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20200 conftest$ac_exeext conftest.$ac_ext 20201LIBS=$ac_check_lib_save_LIBS 20202fi 20203{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 20204echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 20205if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 20206 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 20207fi 20208 20209 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 20210 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 20211echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 20212if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 20213 echo $ECHO_N "(cached) $ECHO_C" >&6 20214else 20215 ac_check_lib_save_LIBS=$LIBS 20216LIBS="-ldnet_stub $LIBS" 20217cat >conftest.$ac_ext <<_ACEOF 20218/* confdefs.h. */ 20219_ACEOF 20220cat confdefs.h >>conftest.$ac_ext 20221cat >>conftest.$ac_ext <<_ACEOF 20222/* end confdefs.h. */ 20223 20224/* Override any GCC internal prototype to avoid an error. 20225 Use char because int might match the return type of a GCC 20226 builtin and then its argument prototype would still apply. */ 20227#ifdef __cplusplus 20228extern "C" 20229#endif 20230char dnet_ntoa (); 20231int 20232main () 20233{ 20234return dnet_ntoa (); 20235 ; 20236 return 0; 20237} 20238_ACEOF 20239rm -f conftest.$ac_objext conftest$ac_exeext 20240if { (ac_try="$ac_link" 20241case "(($ac_try" in 20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20243 *) ac_try_echo=$ac_try;; 20244esac 20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20246 (eval "$ac_link") 2>conftest.er1 20247 ac_status=$? 20248 grep -v '^ *+' conftest.er1 >conftest.err 20249 rm -f conftest.er1 20250 cat conftest.err >&5 20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20252 (exit $ac_status); } && { 20253 test -z "$ac_c_werror_flag" || 20254 test ! -s conftest.err 20255 } && test -s conftest$ac_exeext && 20256 $as_test_x conftest$ac_exeext; then 20257 ac_cv_lib_dnet_stub_dnet_ntoa=yes 20258else 20259 echo "$as_me: failed program was:" >&5 20260sed 's/^/| /' conftest.$ac_ext >&5 20261 20262 ac_cv_lib_dnet_stub_dnet_ntoa=no 20263fi 20264 20265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20266 conftest$ac_exeext conftest.$ac_ext 20267LIBS=$ac_check_lib_save_LIBS 20268fi 20269{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 20270echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 20271if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 20272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 20273fi 20274 20275 fi 20276fi 20277 20278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20279 conftest$ac_exeext conftest.$ac_ext 20280 LIBS="$ac_xsave_LIBS" 20281 20282 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 20283 # to get the SysV transport functions. 20284 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 20285 # needs -lnsl. 20286 # The nsl library prevents programs from opening the X display 20287 # on Irix 5.2, according to T.E. Dickey. 20288 # The functions gethostbyname, getservbyname, and inet_addr are 20289 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 20290 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 20291echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 20292if test "${ac_cv_func_gethostbyname+set}" = set; then 20293 echo $ECHO_N "(cached) $ECHO_C" >&6 20294else 20295 cat >conftest.$ac_ext <<_ACEOF 20296/* confdefs.h. */ 20297_ACEOF 20298cat confdefs.h >>conftest.$ac_ext 20299cat >>conftest.$ac_ext <<_ACEOF 20300/* end confdefs.h. */ 20301/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 20302 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20303#define gethostbyname innocuous_gethostbyname 20304 20305/* System header to define __stub macros and hopefully few prototypes, 20306 which can conflict with char gethostbyname (); below. 20307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20308 <limits.h> exists even on freestanding compilers. */ 20309 20310#ifdef __STDC__ 20311# include <limits.h> 20312#else 20313# include <assert.h> 20314#endif 20315 20316#undef gethostbyname 20317 20318/* Override any GCC internal prototype to avoid an error. 20319 Use char because int might match the return type of a GCC 20320 builtin and then its argument prototype would still apply. */ 20321#ifdef __cplusplus 20322extern "C" 20323#endif 20324char gethostbyname (); 20325/* The GNU C library defines this for functions which it implements 20326 to always fail with ENOSYS. Some functions are actually named 20327 something starting with __ and the normal name is an alias. */ 20328#if defined __stub_gethostbyname || defined __stub___gethostbyname 20329choke me 20330#endif 20331 20332int 20333main () 20334{ 20335return gethostbyname (); 20336 ; 20337 return 0; 20338} 20339_ACEOF 20340rm -f conftest.$ac_objext conftest$ac_exeext 20341if { (ac_try="$ac_link" 20342case "(($ac_try" in 20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20344 *) ac_try_echo=$ac_try;; 20345esac 20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20347 (eval "$ac_link") 2>conftest.er1 20348 ac_status=$? 20349 grep -v '^ *+' conftest.er1 >conftest.err 20350 rm -f conftest.er1 20351 cat conftest.err >&5 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20353 (exit $ac_status); } && { 20354 test -z "$ac_c_werror_flag" || 20355 test ! -s conftest.err 20356 } && test -s conftest$ac_exeext && 20357 $as_test_x conftest$ac_exeext; then 20358 ac_cv_func_gethostbyname=yes 20359else 20360 echo "$as_me: failed program was:" >&5 20361sed 's/^/| /' conftest.$ac_ext >&5 20362 20363 ac_cv_func_gethostbyname=no 20364fi 20365 20366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20367 conftest$ac_exeext conftest.$ac_ext 20368fi 20369{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 20370echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 20371 20372 if test $ac_cv_func_gethostbyname = no; then 20373 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20374echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 20375if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20376 echo $ECHO_N "(cached) $ECHO_C" >&6 20377else 20378 ac_check_lib_save_LIBS=$LIBS 20379LIBS="-lnsl $LIBS" 20380cat >conftest.$ac_ext <<_ACEOF 20381/* confdefs.h. */ 20382_ACEOF 20383cat confdefs.h >>conftest.$ac_ext 20384cat >>conftest.$ac_ext <<_ACEOF 20385/* end confdefs.h. */ 20386 20387/* Override any GCC internal prototype to avoid an error. 20388 Use char because int might match the return type of a GCC 20389 builtin and then its argument prototype would still apply. */ 20390#ifdef __cplusplus 20391extern "C" 20392#endif 20393char gethostbyname (); 20394int 20395main () 20396{ 20397return gethostbyname (); 20398 ; 20399 return 0; 20400} 20401_ACEOF 20402rm -f conftest.$ac_objext conftest$ac_exeext 20403if { (ac_try="$ac_link" 20404case "(($ac_try" in 20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20406 *) ac_try_echo=$ac_try;; 20407esac 20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20409 (eval "$ac_link") 2>conftest.er1 20410 ac_status=$? 20411 grep -v '^ *+' conftest.er1 >conftest.err 20412 rm -f conftest.er1 20413 cat conftest.err >&5 20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20415 (exit $ac_status); } && { 20416 test -z "$ac_c_werror_flag" || 20417 test ! -s conftest.err 20418 } && test -s conftest$ac_exeext && 20419 $as_test_x conftest$ac_exeext; then 20420 ac_cv_lib_nsl_gethostbyname=yes 20421else 20422 echo "$as_me: failed program was:" >&5 20423sed 's/^/| /' conftest.$ac_ext >&5 20424 20425 ac_cv_lib_nsl_gethostbyname=no 20426fi 20427 20428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20429 conftest$ac_exeext conftest.$ac_ext 20430LIBS=$ac_check_lib_save_LIBS 20431fi 20432{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 20433echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 20434if test $ac_cv_lib_nsl_gethostbyname = yes; then 20435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 20436fi 20437 20438 if test $ac_cv_lib_nsl_gethostbyname = no; then 20439 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 20440echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 20441if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 20442 echo $ECHO_N "(cached) $ECHO_C" >&6 20443else 20444 ac_check_lib_save_LIBS=$LIBS 20445LIBS="-lbsd $LIBS" 20446cat >conftest.$ac_ext <<_ACEOF 20447/* confdefs.h. */ 20448_ACEOF 20449cat confdefs.h >>conftest.$ac_ext 20450cat >>conftest.$ac_ext <<_ACEOF 20451/* end confdefs.h. */ 20452 20453/* Override any GCC internal prototype to avoid an error. 20454 Use char because int might match the return type of a GCC 20455 builtin and then its argument prototype would still apply. */ 20456#ifdef __cplusplus 20457extern "C" 20458#endif 20459char gethostbyname (); 20460int 20461main () 20462{ 20463return gethostbyname (); 20464 ; 20465 return 0; 20466} 20467_ACEOF 20468rm -f conftest.$ac_objext conftest$ac_exeext 20469if { (ac_try="$ac_link" 20470case "(($ac_try" in 20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20472 *) ac_try_echo=$ac_try;; 20473esac 20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20475 (eval "$ac_link") 2>conftest.er1 20476 ac_status=$? 20477 grep -v '^ *+' conftest.er1 >conftest.err 20478 rm -f conftest.er1 20479 cat conftest.err >&5 20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20481 (exit $ac_status); } && { 20482 test -z "$ac_c_werror_flag" || 20483 test ! -s conftest.err 20484 } && test -s conftest$ac_exeext && 20485 $as_test_x conftest$ac_exeext; then 20486 ac_cv_lib_bsd_gethostbyname=yes 20487else 20488 echo "$as_me: failed program was:" >&5 20489sed 's/^/| /' conftest.$ac_ext >&5 20490 20491 ac_cv_lib_bsd_gethostbyname=no 20492fi 20493 20494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20495 conftest$ac_exeext conftest.$ac_ext 20496LIBS=$ac_check_lib_save_LIBS 20497fi 20498{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 20499echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 20500if test $ac_cv_lib_bsd_gethostbyname = yes; then 20501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20502fi 20503 20504 fi 20505 fi 20506 20507 # lieder@skyler.mavd.honeywell.com says without -lsocket, 20508 # socket/setsockopt and other routines are undefined under SCO ODT 20509 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20510 # on later versions), says Simon Leinen: it contains gethostby* 20511 # variants that don't use the name server (or something). -lsocket 20512 # must be given before -lnsl if both are needed. We assume that 20513 # if connect needs -lnsl, so does gethostbyname. 20514 { echo "$as_me:$LINENO: checking for connect" >&5 20515echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 20516if test "${ac_cv_func_connect+set}" = set; then 20517 echo $ECHO_N "(cached) $ECHO_C" >&6 20518else 20519 cat >conftest.$ac_ext <<_ACEOF 20520/* confdefs.h. */ 20521_ACEOF 20522cat confdefs.h >>conftest.$ac_ext 20523cat >>conftest.$ac_ext <<_ACEOF 20524/* end confdefs.h. */ 20525/* Define connect to an innocuous variant, in case <limits.h> declares connect. 20526 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20527#define connect innocuous_connect 20528 20529/* System header to define __stub macros and hopefully few prototypes, 20530 which can conflict with char connect (); below. 20531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20532 <limits.h> exists even on freestanding compilers. */ 20533 20534#ifdef __STDC__ 20535# include <limits.h> 20536#else 20537# include <assert.h> 20538#endif 20539 20540#undef connect 20541 20542/* Override any GCC internal prototype to avoid an error. 20543 Use char because int might match the return type of a GCC 20544 builtin and then its argument prototype would still apply. */ 20545#ifdef __cplusplus 20546extern "C" 20547#endif 20548char connect (); 20549/* The GNU C library defines this for functions which it implements 20550 to always fail with ENOSYS. Some functions are actually named 20551 something starting with __ and the normal name is an alias. */ 20552#if defined __stub_connect || defined __stub___connect 20553choke me 20554#endif 20555 20556int 20557main () 20558{ 20559return connect (); 20560 ; 20561 return 0; 20562} 20563_ACEOF 20564rm -f conftest.$ac_objext conftest$ac_exeext 20565if { (ac_try="$ac_link" 20566case "(($ac_try" in 20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20568 *) ac_try_echo=$ac_try;; 20569esac 20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20571 (eval "$ac_link") 2>conftest.er1 20572 ac_status=$? 20573 grep -v '^ *+' conftest.er1 >conftest.err 20574 rm -f conftest.er1 20575 cat conftest.err >&5 20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20577 (exit $ac_status); } && { 20578 test -z "$ac_c_werror_flag" || 20579 test ! -s conftest.err 20580 } && test -s conftest$ac_exeext && 20581 $as_test_x conftest$ac_exeext; then 20582 ac_cv_func_connect=yes 20583else 20584 echo "$as_me: failed program was:" >&5 20585sed 's/^/| /' conftest.$ac_ext >&5 20586 20587 ac_cv_func_connect=no 20588fi 20589 20590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20591 conftest$ac_exeext conftest.$ac_ext 20592fi 20593{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 20594echo "${ECHO_T}$ac_cv_func_connect" >&6; } 20595 20596 if test $ac_cv_func_connect = no; then 20597 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 20598echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 20599if test "${ac_cv_lib_socket_connect+set}" = set; then 20600 echo $ECHO_N "(cached) $ECHO_C" >&6 20601else 20602 ac_check_lib_save_LIBS=$LIBS 20603LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20604cat >conftest.$ac_ext <<_ACEOF 20605/* confdefs.h. */ 20606_ACEOF 20607cat confdefs.h >>conftest.$ac_ext 20608cat >>conftest.$ac_ext <<_ACEOF 20609/* end confdefs.h. */ 20610 20611/* Override any GCC internal prototype to avoid an error. 20612 Use char because int might match the return type of a GCC 20613 builtin and then its argument prototype would still apply. */ 20614#ifdef __cplusplus 20615extern "C" 20616#endif 20617char connect (); 20618int 20619main () 20620{ 20621return connect (); 20622 ; 20623 return 0; 20624} 20625_ACEOF 20626rm -f conftest.$ac_objext conftest$ac_exeext 20627if { (ac_try="$ac_link" 20628case "(($ac_try" in 20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20630 *) ac_try_echo=$ac_try;; 20631esac 20632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20633 (eval "$ac_link") 2>conftest.er1 20634 ac_status=$? 20635 grep -v '^ *+' conftest.er1 >conftest.err 20636 rm -f conftest.er1 20637 cat conftest.err >&5 20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20639 (exit $ac_status); } && { 20640 test -z "$ac_c_werror_flag" || 20641 test ! -s conftest.err 20642 } && test -s conftest$ac_exeext && 20643 $as_test_x conftest$ac_exeext; then 20644 ac_cv_lib_socket_connect=yes 20645else 20646 echo "$as_me: failed program was:" >&5 20647sed 's/^/| /' conftest.$ac_ext >&5 20648 20649 ac_cv_lib_socket_connect=no 20650fi 20651 20652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20653 conftest$ac_exeext conftest.$ac_ext 20654LIBS=$ac_check_lib_save_LIBS 20655fi 20656{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 20657echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 20658if test $ac_cv_lib_socket_connect = yes; then 20659 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20660fi 20661 20662 fi 20663 20664 # Guillermo Gomez says -lposix is necessary on A/UX. 20665 { echo "$as_me:$LINENO: checking for remove" >&5 20666echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 20667if test "${ac_cv_func_remove+set}" = set; then 20668 echo $ECHO_N "(cached) $ECHO_C" >&6 20669else 20670 cat >conftest.$ac_ext <<_ACEOF 20671/* confdefs.h. */ 20672_ACEOF 20673cat confdefs.h >>conftest.$ac_ext 20674cat >>conftest.$ac_ext <<_ACEOF 20675/* end confdefs.h. */ 20676/* Define remove to an innocuous variant, in case <limits.h> declares remove. 20677 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20678#define remove innocuous_remove 20679 20680/* System header to define __stub macros and hopefully few prototypes, 20681 which can conflict with char remove (); below. 20682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20683 <limits.h> exists even on freestanding compilers. */ 20684 20685#ifdef __STDC__ 20686# include <limits.h> 20687#else 20688# include <assert.h> 20689#endif 20690 20691#undef remove 20692 20693/* Override any GCC internal prototype to avoid an error. 20694 Use char because int might match the return type of a GCC 20695 builtin and then its argument prototype would still apply. */ 20696#ifdef __cplusplus 20697extern "C" 20698#endif 20699char remove (); 20700/* The GNU C library defines this for functions which it implements 20701 to always fail with ENOSYS. Some functions are actually named 20702 something starting with __ and the normal name is an alias. */ 20703#if defined __stub_remove || defined __stub___remove 20704choke me 20705#endif 20706 20707int 20708main () 20709{ 20710return remove (); 20711 ; 20712 return 0; 20713} 20714_ACEOF 20715rm -f conftest.$ac_objext conftest$ac_exeext 20716if { (ac_try="$ac_link" 20717case "(($ac_try" in 20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20719 *) ac_try_echo=$ac_try;; 20720esac 20721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20722 (eval "$ac_link") 2>conftest.er1 20723 ac_status=$? 20724 grep -v '^ *+' conftest.er1 >conftest.err 20725 rm -f conftest.er1 20726 cat conftest.err >&5 20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); } && { 20729 test -z "$ac_c_werror_flag" || 20730 test ! -s conftest.err 20731 } && test -s conftest$ac_exeext && 20732 $as_test_x conftest$ac_exeext; then 20733 ac_cv_func_remove=yes 20734else 20735 echo "$as_me: failed program was:" >&5 20736sed 's/^/| /' conftest.$ac_ext >&5 20737 20738 ac_cv_func_remove=no 20739fi 20740 20741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20742 conftest$ac_exeext conftest.$ac_ext 20743fi 20744{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 20745echo "${ECHO_T}$ac_cv_func_remove" >&6; } 20746 20747 if test $ac_cv_func_remove = no; then 20748 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 20749echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 20750if test "${ac_cv_lib_posix_remove+set}" = set; then 20751 echo $ECHO_N "(cached) $ECHO_C" >&6 20752else 20753 ac_check_lib_save_LIBS=$LIBS 20754LIBS="-lposix $LIBS" 20755cat >conftest.$ac_ext <<_ACEOF 20756/* confdefs.h. */ 20757_ACEOF 20758cat confdefs.h >>conftest.$ac_ext 20759cat >>conftest.$ac_ext <<_ACEOF 20760/* end confdefs.h. */ 20761 20762/* Override any GCC internal prototype to avoid an error. 20763 Use char because int might match the return type of a GCC 20764 builtin and then its argument prototype would still apply. */ 20765#ifdef __cplusplus 20766extern "C" 20767#endif 20768char remove (); 20769int 20770main () 20771{ 20772return remove (); 20773 ; 20774 return 0; 20775} 20776_ACEOF 20777rm -f conftest.$ac_objext conftest$ac_exeext 20778if { (ac_try="$ac_link" 20779case "(($ac_try" in 20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20781 *) ac_try_echo=$ac_try;; 20782esac 20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20784 (eval "$ac_link") 2>conftest.er1 20785 ac_status=$? 20786 grep -v '^ *+' conftest.er1 >conftest.err 20787 rm -f conftest.er1 20788 cat conftest.err >&5 20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20790 (exit $ac_status); } && { 20791 test -z "$ac_c_werror_flag" || 20792 test ! -s conftest.err 20793 } && test -s conftest$ac_exeext && 20794 $as_test_x conftest$ac_exeext; then 20795 ac_cv_lib_posix_remove=yes 20796else 20797 echo "$as_me: failed program was:" >&5 20798sed 's/^/| /' conftest.$ac_ext >&5 20799 20800 ac_cv_lib_posix_remove=no 20801fi 20802 20803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20804 conftest$ac_exeext conftest.$ac_ext 20805LIBS=$ac_check_lib_save_LIBS 20806fi 20807{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 20808echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 20809if test $ac_cv_lib_posix_remove = yes; then 20810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20811fi 20812 20813 fi 20814 20815 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 20816 { echo "$as_me:$LINENO: checking for shmat" >&5 20817echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 20818if test "${ac_cv_func_shmat+set}" = set; then 20819 echo $ECHO_N "(cached) $ECHO_C" >&6 20820else 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/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 20828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20829#define shmat innocuous_shmat 20830 20831/* System header to define __stub macros and hopefully few prototypes, 20832 which can conflict with char shmat (); below. 20833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20834 <limits.h> exists even on freestanding compilers. */ 20835 20836#ifdef __STDC__ 20837# include <limits.h> 20838#else 20839# include <assert.h> 20840#endif 20841 20842#undef shmat 20843 20844/* Override any GCC internal prototype to avoid an error. 20845 Use char because int might match the return type of a GCC 20846 builtin and then its argument prototype would still apply. */ 20847#ifdef __cplusplus 20848extern "C" 20849#endif 20850char shmat (); 20851/* The GNU C library defines this for functions which it implements 20852 to always fail with ENOSYS. Some functions are actually named 20853 something starting with __ and the normal name is an alias. */ 20854#if defined __stub_shmat || defined __stub___shmat 20855choke me 20856#endif 20857 20858int 20859main () 20860{ 20861return shmat (); 20862 ; 20863 return 0; 20864} 20865_ACEOF 20866rm -f conftest.$ac_objext conftest$ac_exeext 20867if { (ac_try="$ac_link" 20868case "(($ac_try" in 20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20870 *) ac_try_echo=$ac_try;; 20871esac 20872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20873 (eval "$ac_link") 2>conftest.er1 20874 ac_status=$? 20875 grep -v '^ *+' conftest.er1 >conftest.err 20876 rm -f conftest.er1 20877 cat conftest.err >&5 20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20879 (exit $ac_status); } && { 20880 test -z "$ac_c_werror_flag" || 20881 test ! -s conftest.err 20882 } && test -s conftest$ac_exeext && 20883 $as_test_x conftest$ac_exeext; then 20884 ac_cv_func_shmat=yes 20885else 20886 echo "$as_me: failed program was:" >&5 20887sed 's/^/| /' conftest.$ac_ext >&5 20888 20889 ac_cv_func_shmat=no 20890fi 20891 20892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20893 conftest$ac_exeext conftest.$ac_ext 20894fi 20895{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 20896echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 20897 20898 if test $ac_cv_func_shmat = no; then 20899 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 20900echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 20901if test "${ac_cv_lib_ipc_shmat+set}" = set; then 20902 echo $ECHO_N "(cached) $ECHO_C" >&6 20903else 20904 ac_check_lib_save_LIBS=$LIBS 20905LIBS="-lipc $LIBS" 20906cat >conftest.$ac_ext <<_ACEOF 20907/* confdefs.h. */ 20908_ACEOF 20909cat confdefs.h >>conftest.$ac_ext 20910cat >>conftest.$ac_ext <<_ACEOF 20911/* end confdefs.h. */ 20912 20913/* Override any GCC internal prototype to avoid an error. 20914 Use char because int might match the return type of a GCC 20915 builtin and then its argument prototype would still apply. */ 20916#ifdef __cplusplus 20917extern "C" 20918#endif 20919char shmat (); 20920int 20921main () 20922{ 20923return shmat (); 20924 ; 20925 return 0; 20926} 20927_ACEOF 20928rm -f conftest.$ac_objext conftest$ac_exeext 20929if { (ac_try="$ac_link" 20930case "(($ac_try" in 20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20932 *) ac_try_echo=$ac_try;; 20933esac 20934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20935 (eval "$ac_link") 2>conftest.er1 20936 ac_status=$? 20937 grep -v '^ *+' conftest.er1 >conftest.err 20938 rm -f conftest.er1 20939 cat conftest.err >&5 20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20941 (exit $ac_status); } && { 20942 test -z "$ac_c_werror_flag" || 20943 test ! -s conftest.err 20944 } && test -s conftest$ac_exeext && 20945 $as_test_x conftest$ac_exeext; then 20946 ac_cv_lib_ipc_shmat=yes 20947else 20948 echo "$as_me: failed program was:" >&5 20949sed 's/^/| /' conftest.$ac_ext >&5 20950 20951 ac_cv_lib_ipc_shmat=no 20952fi 20953 20954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20955 conftest$ac_exeext conftest.$ac_ext 20956LIBS=$ac_check_lib_save_LIBS 20957fi 20958{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 20959echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 20960if test $ac_cv_lib_ipc_shmat = yes; then 20961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 20962fi 20963 20964 fi 20965 fi 20966 20967 # Check for libraries that X11R6 Xt/Xaw programs need. 20968 ac_save_LDFLAGS=$LDFLAGS 20969 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 20970 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 20971 # check for ICE first), but we must link in the order -lSM -lICE or 20972 # we get undefined symbols. So assume we have SM if we have ICE. 20973 # These have to be linked with before -lX11, unlike the other 20974 # libraries we check for below, so use a different variable. 20975 # John Interrante, Karl Berry 20976 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 20977echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 20978if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 20979 echo $ECHO_N "(cached) $ECHO_C" >&6 20980else 20981 ac_check_lib_save_LIBS=$LIBS 20982LIBS="-lICE $X_EXTRA_LIBS $LIBS" 20983cat >conftest.$ac_ext <<_ACEOF 20984/* confdefs.h. */ 20985_ACEOF 20986cat confdefs.h >>conftest.$ac_ext 20987cat >>conftest.$ac_ext <<_ACEOF 20988/* end confdefs.h. */ 20989 20990/* Override any GCC internal prototype to avoid an error. 20991 Use char because int might match the return type of a GCC 20992 builtin and then its argument prototype would still apply. */ 20993#ifdef __cplusplus 20994extern "C" 20995#endif 20996char IceConnectionNumber (); 20997int 20998main () 20999{ 21000return IceConnectionNumber (); 21001 ; 21002 return 0; 21003} 21004_ACEOF 21005rm -f conftest.$ac_objext conftest$ac_exeext 21006if { (ac_try="$ac_link" 21007case "(($ac_try" in 21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21009 *) ac_try_echo=$ac_try;; 21010esac 21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21012 (eval "$ac_link") 2>conftest.er1 21013 ac_status=$? 21014 grep -v '^ *+' conftest.er1 >conftest.err 21015 rm -f conftest.er1 21016 cat conftest.err >&5 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); } && { 21019 test -z "$ac_c_werror_flag" || 21020 test ! -s conftest.err 21021 } && test -s conftest$ac_exeext && 21022 $as_test_x conftest$ac_exeext; then 21023 ac_cv_lib_ICE_IceConnectionNumber=yes 21024else 21025 echo "$as_me: failed program was:" >&5 21026sed 's/^/| /' conftest.$ac_ext >&5 21027 21028 ac_cv_lib_ICE_IceConnectionNumber=no 21029fi 21030 21031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21032 conftest$ac_exeext conftest.$ac_ext 21033LIBS=$ac_check_lib_save_LIBS 21034fi 21035{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 21036echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 21037if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 21038 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 21039fi 21040 21041 LDFLAGS=$ac_save_LDFLAGS 21042 21043fi 21044 21045# Check whether --enable-glibtest was given. 21046if test "${enable_glibtest+set}" = set; then 21047 enableval=$enable_glibtest; 21048else 21049 enable_glibtest=yes 21050fi 21051 21052 21053 pkg_config_args=glib-2.0 21054 for module in . gobject 21055 do 21056 case "$module" in 21057 gmodule) 21058 pkg_config_args="$pkg_config_args gmodule-2.0" 21059 ;; 21060 gmodule-no-export) 21061 pkg_config_args="$pkg_config_args gmodule-no-export-2.0" 21062 ;; 21063 gobject) 21064 pkg_config_args="$pkg_config_args gobject-2.0" 21065 ;; 21066 gthread) 21067 pkg_config_args="$pkg_config_args gthread-2.0" 21068 ;; 21069 esac 21070 done 21071 21072 # Extract the first word of "pkg-config", so it can be a program name with args. 21073set dummy pkg-config; ac_word=$2 21074{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21076if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21077 echo $ECHO_N "(cached) $ECHO_C" >&6 21078else 21079 case $PKG_CONFIG in 21080 [\\/]* | ?:[\\/]*) 21081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21082 ;; 21083 *) 21084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21085for as_dir in $PATH 21086do 21087 IFS=$as_save_IFS 21088 test -z "$as_dir" && as_dir=. 21089 for ac_exec_ext in '' $ac_executable_extensions; do 21090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21093 break 2 21094 fi 21095done 21096done 21097IFS=$as_save_IFS 21098 21099 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21100 ;; 21101esac 21102fi 21103PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21104if test -n "$PKG_CONFIG"; then 21105 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21106echo "${ECHO_T}$PKG_CONFIG" >&6; } 21107else 21108 { echo "$as_me:$LINENO: result: no" >&5 21109echo "${ECHO_T}no" >&6; } 21110fi 21111 21112 21113 21114 no_glib="" 21115 21116 if test x$PKG_CONFIG != xno ; then 21117 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then 21118 : 21119 else 21120 echo *** pkg-config too old; version 0.7 or better required. 21121 no_glib=yes 21122 PKG_CONFIG=no 21123 fi 21124 else 21125 no_glib=yes 21126 fi 21127 21128 min_glib_version=2.6.0 21129 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 21130echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } 21131 21132 if test x$PKG_CONFIG != xno ; then 21133 ## don't try to run the test against uninstalled libtool libs 21134 if $PKG_CONFIG --uninstalled $pkg_config_args; then 21135 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 21136 enable_glibtest=no 21137 fi 21138 21139 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 21140 : 21141 else 21142 no_glib=yes 21143 fi 21144 fi 21145 21146 if test x"$no_glib" = x ; then 21147 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 21148 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` 21149 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 21150 21151 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` 21152 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` 21153 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 21154 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21155 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 21156 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21157 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 21158 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21159 if test "x$enable_glibtest" = "xyes" ; then 21160 ac_save_CFLAGS="$CFLAGS" 21161 ac_save_LIBS="$LIBS" 21162 CFLAGS="$CFLAGS $GLIB_CFLAGS" 21163 LIBS="$GLIB_LIBS $LIBS" 21164 rm -f conf.glibtest 21165 if test "$cross_compiling" = yes; then 21166 echo $ac_n "cross compiling; assumed OK... $ac_c" 21167else 21168 cat >conftest.$ac_ext <<_ACEOF 21169/* confdefs.h. */ 21170_ACEOF 21171cat confdefs.h >>conftest.$ac_ext 21172cat >>conftest.$ac_ext <<_ACEOF 21173/* end confdefs.h. */ 21174 21175#include <glib.h> 21176#include <stdio.h> 21177#include <stdlib.h> 21178 21179int 21180main () 21181{ 21182 int major, minor, micro; 21183 char *tmp_version; 21184 21185 system ("touch conf.glibtest"); 21186 21187 /* HP/UX 9 (%@#!) writes to sscanf strings */ 21188 tmp_version = g_strdup("$min_glib_version"); 21189 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 21190 printf("%s, bad version string\n", "$min_glib_version"); 21191 exit(1); 21192 } 21193 21194 if ((glib_major_version != $glib_config_major_version) || 21195 (glib_minor_version != $glib_config_minor_version) || 21196 (glib_micro_version != $glib_config_micro_version)) 21197 { 21198 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 21199 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 21200 glib_major_version, glib_minor_version, glib_micro_version); 21201 printf ("*** was found! If pkg-config was correct, then it is best\n"); 21202 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); 21203 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 21204 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 21205 printf("*** required on your system.\n"); 21206 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 21207 printf("*** to point to the correct configuration files\n"); 21208 } 21209 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 21210 (glib_minor_version != GLIB_MINOR_VERSION) || 21211 (glib_micro_version != GLIB_MICRO_VERSION)) 21212 { 21213 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 21214 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 21215 printf("*** library (version %d.%d.%d)\n", 21216 glib_major_version, glib_minor_version, glib_micro_version); 21217 } 21218 else 21219 { 21220 if ((glib_major_version > major) || 21221 ((glib_major_version == major) && (glib_minor_version > minor)) || 21222 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 21223 { 21224 return 0; 21225 } 21226 else 21227 { 21228 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 21229 glib_major_version, glib_minor_version, glib_micro_version); 21230 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 21231 major, minor, micro); 21232 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 21233 printf("***\n"); 21234 printf("*** If you have already installed a sufficiently new version, this error\n"); 21235 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 21236 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 21237 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); 21238 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 21239 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 21240 printf("*** so that the correct libraries are found at run-time))\n"); 21241 } 21242 } 21243 return 1; 21244} 21245 21246_ACEOF 21247rm -f conftest$ac_exeext 21248if { (ac_try="$ac_link" 21249case "(($ac_try" in 21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21251 *) ac_try_echo=$ac_try;; 21252esac 21253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21254 (eval "$ac_link") 2>&5 21255 ac_status=$? 21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21258 { (case "(($ac_try" in 21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21260 *) ac_try_echo=$ac_try;; 21261esac 21262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21263 (eval "$ac_try") 2>&5 21264 ac_status=$? 21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21266 (exit $ac_status); }; }; then 21267 : 21268else 21269 echo "$as_me: program exited with status $ac_status" >&5 21270echo "$as_me: failed program was:" >&5 21271sed 's/^/| /' conftest.$ac_ext >&5 21272 21273( exit $ac_status ) 21274no_glib=yes 21275fi 21276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21277fi 21278 21279 21280 CFLAGS="$ac_save_CFLAGS" 21281 LIBS="$ac_save_LIBS" 21282 fi 21283 fi 21284 if test "x$no_glib" = x ; then 21285 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 21286echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } 21287 have_glib20="yes" 21288 else 21289 { echo "$as_me:$LINENO: result: no" >&5 21290echo "${ECHO_T}no" >&6; } 21291 if test "$PKG_CONFIG" = "no" ; then 21292 echo "*** A new enough version of pkg-config was not found." 21293 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 21294 else 21295 if test -f conf.glibtest ; then 21296 : 21297 else 21298 echo "*** Could not run GLIB test program, checking why..." 21299 ac_save_CFLAGS="$CFLAGS" 21300 ac_save_LIBS="$LIBS" 21301 CFLAGS="$CFLAGS $GLIB_CFLAGS" 21302 LIBS="$LIBS $GLIB_LIBS" 21303 cat >conftest.$ac_ext <<_ACEOF 21304/* confdefs.h. */ 21305_ACEOF 21306cat confdefs.h >>conftest.$ac_ext 21307cat >>conftest.$ac_ext <<_ACEOF 21308/* end confdefs.h. */ 21309 21310#include <glib.h> 21311#include <stdio.h> 21312 21313int 21314main () 21315{ 21316 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 21317 ; 21318 return 0; 21319} 21320_ACEOF 21321rm -f conftest.$ac_objext conftest$ac_exeext 21322if { (ac_try="$ac_link" 21323case "(($ac_try" in 21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21325 *) ac_try_echo=$ac_try;; 21326esac 21327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21328 (eval "$ac_link") 2>conftest.er1 21329 ac_status=$? 21330 grep -v '^ *+' conftest.er1 >conftest.err 21331 rm -f conftest.er1 21332 cat conftest.err >&5 21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21334 (exit $ac_status); } && { 21335 test -z "$ac_c_werror_flag" || 21336 test ! -s conftest.err 21337 } && test -s conftest$ac_exeext && 21338 $as_test_x conftest$ac_exeext; then 21339 echo "*** The test program compiled, but did not run. This usually means" 21340 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 21341 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 21342 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 21343 echo "*** to the installed location Also, make sure you have run ldconfig if that" 21344 echo "*** is required on your system" 21345 echo "***" 21346 echo "*** If you have an old version installed, it is best to remove it, although" 21347 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 21348else 21349 echo "$as_me: failed program was:" >&5 21350sed 's/^/| /' conftest.$ac_ext >&5 21351 21352 echo "*** The test program failed to compile or link. See the file config.log for the" 21353 echo "*** exact error that occured. This usually means GLIB is incorrectly installed." 21354fi 21355 21356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21357 conftest$ac_exeext conftest.$ac_ext 21358 CFLAGS="$ac_save_CFLAGS" 21359 LIBS="$ac_save_LIBS" 21360 fi 21361 fi 21362 GLIB_CFLAGS="" 21363 GLIB_LIBS="" 21364 GLIB_GENMARSHAL="" 21365 GOBJECT_QUERY="" 21366 GLIB_MKENUMS="" 21367 have_glib20="no" 21368 fi 21369 21370 21371 21372 21373 21374 rm -f conf.glibtest 21375 21376if test "x${have_glib20}" = "xno"; then 21377 { { echo "$as_me:$LINENO: error: Glib - version >= 2.6.0 is required" >&5 21378echo "$as_me: error: Glib - version >= 2.6.0 is required" >&2;} 21379 { (exit 1); exit 1; }; } 21380fi 21381# Check whether --enable-debug was given. 21382if test "${enable_debug+set}" = set; then 21383 enableval=$enable_debug; 21384else 21385 enable_debug="no" 21386fi 21387 21388if test "x${enable_debug}" != "xyes"; then 21389 21390cat >>confdefs.h <<\_ACEOF 21391#define G_DISABLE_ASSERT 1 21392_ACEOF 21393 21394 21395cat >>confdefs.h <<\_ACEOF 21396#define G_DISABLE_CHECKS 1 21397_ACEOF 21398 21399 21400cat >>confdefs.h <<\_ACEOF 21401#define G_DISABLE_CAST_CHECKS 1 21402_ACEOF 21403 21404fi 21405if test "${ac_cv_header_libdsk_h+set}" = set; then 21406 { echo "$as_me:$LINENO: checking for libdsk.h" >&5 21407echo $ECHO_N "checking for libdsk.h... $ECHO_C" >&6; } 21408if test "${ac_cv_header_libdsk_h+set}" = set; then 21409 echo $ECHO_N "(cached) $ECHO_C" >&6 21410fi 21411{ echo "$as_me:$LINENO: result: $ac_cv_header_libdsk_h" >&5 21412echo "${ECHO_T}$ac_cv_header_libdsk_h" >&6; } 21413else 21414 # Is the header compilable? 21415{ echo "$as_me:$LINENO: checking libdsk.h usability" >&5 21416echo $ECHO_N "checking libdsk.h usability... $ECHO_C" >&6; } 21417cat >conftest.$ac_ext <<_ACEOF 21418/* confdefs.h. */ 21419_ACEOF 21420cat confdefs.h >>conftest.$ac_ext 21421cat >>conftest.$ac_ext <<_ACEOF 21422/* end confdefs.h. */ 21423$ac_includes_default 21424#include <libdsk.h> 21425_ACEOF 21426rm -f conftest.$ac_objext 21427if { (ac_try="$ac_compile" 21428case "(($ac_try" in 21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21430 *) ac_try_echo=$ac_try;; 21431esac 21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21433 (eval "$ac_compile") 2>conftest.er1 21434 ac_status=$? 21435 grep -v '^ *+' conftest.er1 >conftest.err 21436 rm -f conftest.er1 21437 cat conftest.err >&5 21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21439 (exit $ac_status); } && { 21440 test -z "$ac_c_werror_flag" || 21441 test ! -s conftest.err 21442 } && test -s conftest.$ac_objext; then 21443 ac_header_compiler=yes 21444else 21445 echo "$as_me: failed program was:" >&5 21446sed 's/^/| /' conftest.$ac_ext >&5 21447 21448 ac_header_compiler=no 21449fi 21450 21451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21453echo "${ECHO_T}$ac_header_compiler" >&6; } 21454 21455# Is the header present? 21456{ echo "$as_me:$LINENO: checking libdsk.h presence" >&5 21457echo $ECHO_N "checking libdsk.h presence... $ECHO_C" >&6; } 21458cat >conftest.$ac_ext <<_ACEOF 21459/* confdefs.h. */ 21460_ACEOF 21461cat confdefs.h >>conftest.$ac_ext 21462cat >>conftest.$ac_ext <<_ACEOF 21463/* end confdefs.h. */ 21464#include <libdsk.h> 21465_ACEOF 21466if { (ac_try="$ac_cpp conftest.$ac_ext" 21467case "(($ac_try" in 21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21469 *) ac_try_echo=$ac_try;; 21470esac 21471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21473 ac_status=$? 21474 grep -v '^ *+' conftest.er1 >conftest.err 21475 rm -f conftest.er1 21476 cat conftest.err >&5 21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21478 (exit $ac_status); } >/dev/null && { 21479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21480 test ! -s conftest.err 21481 }; then 21482 ac_header_preproc=yes 21483else 21484 echo "$as_me: failed program was:" >&5 21485sed 's/^/| /' conftest.$ac_ext >&5 21486 21487 ac_header_preproc=no 21488fi 21489 21490rm -f conftest.err conftest.$ac_ext 21491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21492echo "${ECHO_T}$ac_header_preproc" >&6; } 21493 21494# So? What about this header? 21495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21496 yes:no: ) 21497 { echo "$as_me:$LINENO: WARNING: libdsk.h: accepted by the compiler, rejected by the preprocessor!" >&5 21498echo "$as_me: WARNING: libdsk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21499 { echo "$as_me:$LINENO: WARNING: libdsk.h: proceeding with the compiler's result" >&5 21500echo "$as_me: WARNING: libdsk.h: proceeding with the compiler's result" >&2;} 21501 ac_header_preproc=yes 21502 ;; 21503 no:yes:* ) 21504 { echo "$as_me:$LINENO: WARNING: libdsk.h: present but cannot be compiled" >&5 21505echo "$as_me: WARNING: libdsk.h: present but cannot be compiled" >&2;} 21506 { echo "$as_me:$LINENO: WARNING: libdsk.h: check for missing prerequisite headers?" >&5 21507echo "$as_me: WARNING: libdsk.h: check for missing prerequisite headers?" >&2;} 21508 { echo "$as_me:$LINENO: WARNING: libdsk.h: see the Autoconf documentation" >&5 21509echo "$as_me: WARNING: libdsk.h: see the Autoconf documentation" >&2;} 21510 { echo "$as_me:$LINENO: WARNING: libdsk.h: section \"Present But Cannot Be Compiled\"" >&5 21511echo "$as_me: WARNING: libdsk.h: section \"Present But Cannot Be Compiled\"" >&2;} 21512 { echo "$as_me:$LINENO: WARNING: libdsk.h: proceeding with the preprocessor's result" >&5 21513echo "$as_me: WARNING: libdsk.h: proceeding with the preprocessor's result" >&2;} 21514 { echo "$as_me:$LINENO: WARNING: libdsk.h: in the future, the compiler will take precedence" >&5 21515echo "$as_me: WARNING: libdsk.h: in the future, the compiler will take precedence" >&2;} 21516 ( cat <<\_ASBOX 21517## ------------------------------ ## 21518## Report this to ponceto@noos.fr ## 21519## ------------------------------ ## 21520_ASBOX 21521 ) | sed "s/^/$as_me: WARNING: /" >&2 21522 ;; 21523esac 21524{ echo "$as_me:$LINENO: checking for libdsk.h" >&5 21525echo $ECHO_N "checking for libdsk.h... $ECHO_C" >&6; } 21526if test "${ac_cv_header_libdsk_h+set}" = set; then 21527 echo $ECHO_N "(cached) $ECHO_C" >&6 21528else 21529 ac_cv_header_libdsk_h=$ac_header_preproc 21530fi 21531{ echo "$as_me:$LINENO: result: $ac_cv_header_libdsk_h" >&5 21532echo "${ECHO_T}$ac_cv_header_libdsk_h" >&6; } 21533 21534fi 21535if test $ac_cv_header_libdsk_h = yes; then 21536 have_libdsk="yes" 21537else 21538 { { echo "$as_me:$LINENO: error: libdsk is required !!" >&5 21539echo "$as_me: error: libdsk is required !!" >&2;} 21540 { (exit 1); exit 1; }; } 21541fi 21542 21543 21544 21545# Check whether --with-motif1 was given. 21546if test "${with_motif1+set}" = set; then 21547 withval=$with_motif1; 21548fi 21549 21550{ echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5 21551echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6; } 21552if test "${ac_cv_header_Xm_Xm_h+set}" = set; then 21553 echo $ECHO_N "(cached) $ECHO_C" >&6 21554else 21555 cat >conftest.$ac_ext <<_ACEOF 21556/* confdefs.h. */ 21557_ACEOF 21558cat confdefs.h >>conftest.$ac_ext 21559cat >>conftest.$ac_ext <<_ACEOF 21560/* end confdefs.h. */ 21561 21562#include <X11/Intrinsic.h> 21563#include <X11/StringDefs.h> 21564 21565 21566#include <Xm/Xm.h> 21567_ACEOF 21568rm -f conftest.$ac_objext 21569if { (ac_try="$ac_compile" 21570case "(($ac_try" in 21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21572 *) ac_try_echo=$ac_try;; 21573esac 21574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21575 (eval "$ac_compile") 2>conftest.er1 21576 ac_status=$? 21577 grep -v '^ *+' conftest.er1 >conftest.err 21578 rm -f conftest.er1 21579 cat conftest.err >&5 21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21581 (exit $ac_status); } && { 21582 test -z "$ac_c_werror_flag" || 21583 test ! -s conftest.err 21584 } && test -s conftest.$ac_objext; then 21585 ac_cv_header_Xm_Xm_h=yes 21586else 21587 echo "$as_me: failed program was:" >&5 21588sed 's/^/| /' conftest.$ac_ext >&5 21589 21590 ac_cv_header_Xm_Xm_h=no 21591fi 21592 21593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21594fi 21595{ echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5 21596echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6; } 21597if test $ac_cv_header_Xm_Xm_h = yes; then 21598 have_motif1="yes" 21599else 21600 have_motif1="no" 21601fi 21602 21603 21604 21605# Check whether --with-athena was given. 21606if test "${with_athena+set}" = set; then 21607 withval=$with_athena; 21608fi 21609 21610{ echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5 21611echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6; } 21612if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then 21613 echo $ECHO_N "(cached) $ECHO_C" >&6 21614else 21615 cat >conftest.$ac_ext <<_ACEOF 21616/* confdefs.h. */ 21617_ACEOF 21618cat confdefs.h >>conftest.$ac_ext 21619cat >>conftest.$ac_ext <<_ACEOF 21620/* end confdefs.h. */ 21621 21622#include <X11/Intrinsic.h> 21623#include <X11/StringDefs.h> 21624 21625 21626#include <X11/Xaw/XawInit.h> 21627_ACEOF 21628rm -f conftest.$ac_objext 21629if { (ac_try="$ac_compile" 21630case "(($ac_try" in 21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21632 *) ac_try_echo=$ac_try;; 21633esac 21634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21635 (eval "$ac_compile") 2>conftest.er1 21636 ac_status=$? 21637 grep -v '^ *+' conftest.er1 >conftest.err 21638 rm -f conftest.er1 21639 cat conftest.err >&5 21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21641 (exit $ac_status); } && { 21642 test -z "$ac_c_werror_flag" || 21643 test ! -s conftest.err 21644 } && test -s conftest.$ac_objext; then 21645 ac_cv_header_X11_Xaw_XawInit_h=yes 21646else 21647 echo "$as_me: failed program was:" >&5 21648sed 's/^/| /' conftest.$ac_ext >&5 21649 21650 ac_cv_header_X11_Xaw_XawInit_h=no 21651fi 21652 21653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21654fi 21655{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5 21656echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6; } 21657if test $ac_cv_header_X11_Xaw_XawInit_h = yes; then 21658 have_athena="yes" 21659else 21660 have_athena="no" 21661fi 21662 21663 21664if test "x${with_motif1}" = "xyes"; then 21665 if test "x${have_motif1}" = "xyes"; then 21666 if true ; then 21667 MOTIF1_TRUE= 21668 MOTIF1_FALSE='#' 21669else 21670 MOTIF1_TRUE='#' 21671 MOTIF1_FALSE= 21672fi 21673 21674 if false; then 21675 ATHENA_TRUE= 21676 ATHENA_FALSE='#' 21677else 21678 ATHENA_TRUE='#' 21679 ATHENA_FALSE= 21680fi 21681 21682 gui_toolkit="Motif1" 21683 else 21684 { { echo "$as_me:$LINENO: error: Motif1 toolkit not found" >&5 21685echo "$as_me: error: Motif1 toolkit not found" >&2;} 21686 { (exit 1); exit 1; }; } 21687 fi 21688elif test "x${with_athena}" = "xyes"; then 21689 if test "x${have_athena}" = "xyes"; then 21690 if false; then 21691 MOTIF1_TRUE= 21692 MOTIF1_FALSE='#' 21693else 21694 MOTIF1_TRUE='#' 21695 MOTIF1_FALSE= 21696fi 21697 21698 if true ; then 21699 ATHENA_TRUE= 21700 ATHENA_FALSE='#' 21701else 21702 ATHENA_TRUE='#' 21703 ATHENA_FALSE= 21704fi 21705 21706 gui_toolkit="Athena" 21707 else 21708 { { echo "$as_me:$LINENO: error: Athena toolkit not found" >&5 21709echo "$as_me: error: Athena toolkit not found" >&2;} 21710 { (exit 1); exit 1; }; } 21711 fi 21712else 21713 if test "x${have_motif1}" = "xyes"; then 21714 if true ; then 21715 MOTIF1_TRUE= 21716 MOTIF1_FALSE='#' 21717else 21718 MOTIF1_TRUE='#' 21719 MOTIF1_FALSE= 21720fi 21721 21722 if false; then 21723 ATHENA_TRUE= 21724 ATHENA_FALSE='#' 21725else 21726 ATHENA_TRUE='#' 21727 ATHENA_FALSE= 21728fi 21729 21730 gui_toolkit="Motif1" 21731 elif test "x${have_athena}" = "xyes"; then 21732 if false; then 21733 MOTIF1_TRUE= 21734 MOTIF1_FALSE='#' 21735else 21736 MOTIF1_TRUE='#' 21737 MOTIF1_FALSE= 21738fi 21739 21740 if true ; then 21741 ATHENA_TRUE= 21742 ATHENA_FALSE='#' 21743else 21744 ATHENA_TRUE='#' 21745 ATHENA_FALSE= 21746fi 21747 21748 gui_toolkit="Athena" 21749 else 21750 { { echo "$as_me:$LINENO: error: no gui toolkit found ..." >&5 21751echo "$as_me: error: no gui toolkit found ..." >&2;} 21752 { (exit 1); exit 1; }; } 21753 fi 21754fi 21755# Check whether --enable-xshm was given. 21756if test "${enable_xshm+set}" = set; then 21757 enableval=$enable_xshm; 21758else 21759 enable_xshm="yes" 21760fi 21761 21762if test "${ac_cv_header_sys_ipc_h+set}" = set; then 21763 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5 21764echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; } 21765if test "${ac_cv_header_sys_ipc_h+set}" = set; then 21766 echo $ECHO_N "(cached) $ECHO_C" >&6 21767fi 21768{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5 21769echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; } 21770else 21771 # Is the header compilable? 21772{ echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5 21773echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; } 21774cat >conftest.$ac_ext <<_ACEOF 21775/* confdefs.h. */ 21776_ACEOF 21777cat confdefs.h >>conftest.$ac_ext 21778cat >>conftest.$ac_ext <<_ACEOF 21779/* end confdefs.h. */ 21780$ac_includes_default 21781#include <sys/ipc.h> 21782_ACEOF 21783rm -f conftest.$ac_objext 21784if { (ac_try="$ac_compile" 21785case "(($ac_try" in 21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21787 *) ac_try_echo=$ac_try;; 21788esac 21789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21790 (eval "$ac_compile") 2>conftest.er1 21791 ac_status=$? 21792 grep -v '^ *+' conftest.er1 >conftest.err 21793 rm -f conftest.er1 21794 cat conftest.err >&5 21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21796 (exit $ac_status); } && { 21797 test -z "$ac_c_werror_flag" || 21798 test ! -s conftest.err 21799 } && test -s conftest.$ac_objext; then 21800 ac_header_compiler=yes 21801else 21802 echo "$as_me: failed program was:" >&5 21803sed 's/^/| /' conftest.$ac_ext >&5 21804 21805 ac_header_compiler=no 21806fi 21807 21808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21809{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21810echo "${ECHO_T}$ac_header_compiler" >&6; } 21811 21812# Is the header present? 21813{ echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5 21814echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; } 21815cat >conftest.$ac_ext <<_ACEOF 21816/* confdefs.h. */ 21817_ACEOF 21818cat confdefs.h >>conftest.$ac_ext 21819cat >>conftest.$ac_ext <<_ACEOF 21820/* end confdefs.h. */ 21821#include <sys/ipc.h> 21822_ACEOF 21823if { (ac_try="$ac_cpp conftest.$ac_ext" 21824case "(($ac_try" in 21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21826 *) ac_try_echo=$ac_try;; 21827esac 21828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21830 ac_status=$? 21831 grep -v '^ *+' conftest.er1 >conftest.err 21832 rm -f conftest.er1 21833 cat conftest.err >&5 21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21835 (exit $ac_status); } >/dev/null && { 21836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21837 test ! -s conftest.err 21838 }; then 21839 ac_header_preproc=yes 21840else 21841 echo "$as_me: failed program was:" >&5 21842sed 's/^/| /' conftest.$ac_ext >&5 21843 21844 ac_header_preproc=no 21845fi 21846 21847rm -f conftest.err conftest.$ac_ext 21848{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21849echo "${ECHO_T}$ac_header_preproc" >&6; } 21850 21851# So? What about this header? 21852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21853 yes:no: ) 21854 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5 21855echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21856 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5 21857echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;} 21858 ac_header_preproc=yes 21859 ;; 21860 no:yes:* ) 21861 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5 21862echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;} 21863 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5 21864echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;} 21865 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5 21866echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;} 21867 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5 21868echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;} 21869 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5 21870echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;} 21871 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5 21872echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;} 21873 ( cat <<\_ASBOX 21874## ------------------------------ ## 21875## Report this to ponceto@noos.fr ## 21876## ------------------------------ ## 21877_ASBOX 21878 ) | sed "s/^/$as_me: WARNING: /" >&2 21879 ;; 21880esac 21881{ echo "$as_me:$LINENO: checking for sys/ipc.h" >&5 21882echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; } 21883if test "${ac_cv_header_sys_ipc_h+set}" = set; then 21884 echo $ECHO_N "(cached) $ECHO_C" >&6 21885else 21886 ac_cv_header_sys_ipc_h=$ac_header_preproc 21887fi 21888{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5 21889echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; } 21890 21891fi 21892if test $ac_cv_header_sys_ipc_h = yes; then 21893 : 21894else 21895 enable_xshm="no" 21896fi 21897 21898 21899if test "x${ac_cv_header_sys_ipc_h}" = "xyes"; then 21900 21901cat >>confdefs.h <<\_ACEOF 21902#define HAVE_SYS_IPC_H 1 21903_ACEOF 21904 21905fi 21906if test "${ac_cv_header_sys_shm_h+set}" = set; then 21907 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5 21908echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; } 21909if test "${ac_cv_header_sys_shm_h+set}" = set; then 21910 echo $ECHO_N "(cached) $ECHO_C" >&6 21911fi 21912{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5 21913echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; } 21914else 21915 # Is the header compilable? 21916{ echo "$as_me:$LINENO: checking sys/shm.h usability" >&5 21917echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6; } 21918cat >conftest.$ac_ext <<_ACEOF 21919/* confdefs.h. */ 21920_ACEOF 21921cat confdefs.h >>conftest.$ac_ext 21922cat >>conftest.$ac_ext <<_ACEOF 21923/* end confdefs.h. */ 21924$ac_includes_default 21925#include <sys/shm.h> 21926_ACEOF 21927rm -f conftest.$ac_objext 21928if { (ac_try="$ac_compile" 21929case "(($ac_try" in 21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21931 *) ac_try_echo=$ac_try;; 21932esac 21933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21934 (eval "$ac_compile") 2>conftest.er1 21935 ac_status=$? 21936 grep -v '^ *+' conftest.er1 >conftest.err 21937 rm -f conftest.er1 21938 cat conftest.err >&5 21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21940 (exit $ac_status); } && { 21941 test -z "$ac_c_werror_flag" || 21942 test ! -s conftest.err 21943 } && test -s conftest.$ac_objext; then 21944 ac_header_compiler=yes 21945else 21946 echo "$as_me: failed program was:" >&5 21947sed 's/^/| /' conftest.$ac_ext >&5 21948 21949 ac_header_compiler=no 21950fi 21951 21952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21954echo "${ECHO_T}$ac_header_compiler" >&6; } 21955 21956# Is the header present? 21957{ echo "$as_me:$LINENO: checking sys/shm.h presence" >&5 21958echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6; } 21959cat >conftest.$ac_ext <<_ACEOF 21960/* confdefs.h. */ 21961_ACEOF 21962cat confdefs.h >>conftest.$ac_ext 21963cat >>conftest.$ac_ext <<_ACEOF 21964/* end confdefs.h. */ 21965#include <sys/shm.h> 21966_ACEOF 21967if { (ac_try="$ac_cpp conftest.$ac_ext" 21968case "(($ac_try" in 21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21970 *) ac_try_echo=$ac_try;; 21971esac 21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21974 ac_status=$? 21975 grep -v '^ *+' conftest.er1 >conftest.err 21976 rm -f conftest.er1 21977 cat conftest.err >&5 21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21979 (exit $ac_status); } >/dev/null && { 21980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21981 test ! -s conftest.err 21982 }; then 21983 ac_header_preproc=yes 21984else 21985 echo "$as_me: failed program was:" >&5 21986sed 's/^/| /' conftest.$ac_ext >&5 21987 21988 ac_header_preproc=no 21989fi 21990 21991rm -f conftest.err conftest.$ac_ext 21992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21993echo "${ECHO_T}$ac_header_preproc" >&6; } 21994 21995# So? What about this header? 21996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21997 yes:no: ) 21998 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5 21999echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22000 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5 22001echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;} 22002 ac_header_preproc=yes 22003 ;; 22004 no:yes:* ) 22005 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5 22006echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;} 22007 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5 22008echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;} 22009 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5 22010echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;} 22011 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5 22012echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;} 22013 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5 22014echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;} 22015 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5 22016echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;} 22017 ( cat <<\_ASBOX 22018## ------------------------------ ## 22019## Report this to ponceto@noos.fr ## 22020## ------------------------------ ## 22021_ASBOX 22022 ) | sed "s/^/$as_me: WARNING: /" >&2 22023 ;; 22024esac 22025{ echo "$as_me:$LINENO: checking for sys/shm.h" >&5 22026echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; } 22027if test "${ac_cv_header_sys_shm_h+set}" = set; then 22028 echo $ECHO_N "(cached) $ECHO_C" >&6 22029else 22030 ac_cv_header_sys_shm_h=$ac_header_preproc 22031fi 22032{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5 22033echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; } 22034 22035fi 22036if test $ac_cv_header_sys_shm_h = yes; then 22037 : 22038else 22039 enable_xshm="no" 22040fi 22041 22042 22043if test "x${ac_cv_header_sys_shm_h}" = "xyes"; then 22044 22045cat >>confdefs.h <<\_ACEOF 22046#define HAVE_SYS_SHM_H 1 22047_ACEOF 22048 22049fi 22050{ echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5 22051echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6; } 22052if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then 22053 echo $ECHO_N "(cached) $ECHO_C" >&6 22054else 22055 cat >conftest.$ac_ext <<_ACEOF 22056/* confdefs.h. */ 22057_ACEOF 22058cat confdefs.h >>conftest.$ac_ext 22059cat >>conftest.$ac_ext <<_ACEOF 22060/* end confdefs.h. */ 22061 22062#include <stdio.h> 22063#include <stdlib.h> 22064#include <string.h> 22065#include <sys/ipc.h> 22066#include <sys/shm.h> 22067#include <X11/Xlib.h> 22068#include <X11/Xutil.h> 22069 22070 22071 22072#include <X11/extensions/XShm.h> 22073_ACEOF 22074rm -f conftest.$ac_objext 22075if { (ac_try="$ac_compile" 22076case "(($ac_try" in 22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22078 *) ac_try_echo=$ac_try;; 22079esac 22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22081 (eval "$ac_compile") 2>conftest.er1 22082 ac_status=$? 22083 grep -v '^ *+' conftest.er1 >conftest.err 22084 rm -f conftest.er1 22085 cat conftest.err >&5 22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22087 (exit $ac_status); } && { 22088 test -z "$ac_c_werror_flag" || 22089 test ! -s conftest.err 22090 } && test -s conftest.$ac_objext; then 22091 ac_cv_header_X11_extensions_XShm_h=yes 22092else 22093 echo "$as_me: failed program was:" >&5 22094sed 's/^/| /' conftest.$ac_ext >&5 22095 22096 ac_cv_header_X11_extensions_XShm_h=no 22097fi 22098 22099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22100fi 22101{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5 22102echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6; } 22103if test $ac_cv_header_X11_extensions_XShm_h = yes; then 22104 : 22105else 22106 enable_xshm="no" 22107fi 22108 22109 22110if test "x${enable_xshm}" = "xyes"; then 22111 22112cat >>confdefs.h <<\_ACEOF 22113#define HAVE_XSHM 1 22114_ACEOF 22115 22116fi 22117 22118{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 22119echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 22120if test "${ac_cv_c_bigendian+set}" = set; then 22121 echo $ECHO_N "(cached) $ECHO_C" >&6 22122else 22123 # See if sys/param.h defines the BYTE_ORDER macro. 22124cat >conftest.$ac_ext <<_ACEOF 22125/* confdefs.h. */ 22126_ACEOF 22127cat confdefs.h >>conftest.$ac_ext 22128cat >>conftest.$ac_ext <<_ACEOF 22129/* end confdefs.h. */ 22130#include <sys/types.h> 22131#include <sys/param.h> 22132 22133int 22134main () 22135{ 22136#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 22137 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 22138 bogus endian macros 22139#endif 22140 22141 ; 22142 return 0; 22143} 22144_ACEOF 22145rm -f conftest.$ac_objext 22146if { (ac_try="$ac_compile" 22147case "(($ac_try" in 22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22149 *) ac_try_echo=$ac_try;; 22150esac 22151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22152 (eval "$ac_compile") 2>conftest.er1 22153 ac_status=$? 22154 grep -v '^ *+' conftest.er1 >conftest.err 22155 rm -f conftest.er1 22156 cat conftest.err >&5 22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22158 (exit $ac_status); } && { 22159 test -z "$ac_c_werror_flag" || 22160 test ! -s conftest.err 22161 } && test -s conftest.$ac_objext; then 22162 # It does; now see whether it defined to BIG_ENDIAN or not. 22163cat >conftest.$ac_ext <<_ACEOF 22164/* confdefs.h. */ 22165_ACEOF 22166cat confdefs.h >>conftest.$ac_ext 22167cat >>conftest.$ac_ext <<_ACEOF 22168/* end confdefs.h. */ 22169#include <sys/types.h> 22170#include <sys/param.h> 22171 22172int 22173main () 22174{ 22175#if BYTE_ORDER != BIG_ENDIAN 22176 not big endian 22177#endif 22178 22179 ; 22180 return 0; 22181} 22182_ACEOF 22183rm -f conftest.$ac_objext 22184if { (ac_try="$ac_compile" 22185case "(($ac_try" in 22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22187 *) ac_try_echo=$ac_try;; 22188esac 22189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22190 (eval "$ac_compile") 2>conftest.er1 22191 ac_status=$? 22192 grep -v '^ *+' conftest.er1 >conftest.err 22193 rm -f conftest.er1 22194 cat conftest.err >&5 22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22196 (exit $ac_status); } && { 22197 test -z "$ac_c_werror_flag" || 22198 test ! -s conftest.err 22199 } && test -s conftest.$ac_objext; then 22200 ac_cv_c_bigendian=yes 22201else 22202 echo "$as_me: failed program was:" >&5 22203sed 's/^/| /' conftest.$ac_ext >&5 22204 22205 ac_cv_c_bigendian=no 22206fi 22207 22208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22209else 22210 echo "$as_me: failed program was:" >&5 22211sed 's/^/| /' conftest.$ac_ext >&5 22212 22213 # It does not; compile a test program. 22214if test "$cross_compiling" = yes; then 22215 # try to guess the endianness by grepping values into an object file 22216 ac_cv_c_bigendian=unknown 22217 cat >conftest.$ac_ext <<_ACEOF 22218/* confdefs.h. */ 22219_ACEOF 22220cat confdefs.h >>conftest.$ac_ext 22221cat >>conftest.$ac_ext <<_ACEOF 22222/* end confdefs.h. */ 22223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 22226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 22229int 22230main () 22231{ 22232 _ascii (); _ebcdic (); 22233 ; 22234 return 0; 22235} 22236_ACEOF 22237rm -f conftest.$ac_objext 22238if { (ac_try="$ac_compile" 22239case "(($ac_try" in 22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22241 *) ac_try_echo=$ac_try;; 22242esac 22243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22244 (eval "$ac_compile") 2>conftest.er1 22245 ac_status=$? 22246 grep -v '^ *+' conftest.er1 >conftest.err 22247 rm -f conftest.er1 22248 cat conftest.err >&5 22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22250 (exit $ac_status); } && { 22251 test -z "$ac_c_werror_flag" || 22252 test ! -s conftest.err 22253 } && test -s conftest.$ac_objext; then 22254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 22255 ac_cv_c_bigendian=yes 22256fi 22257if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22258 if test "$ac_cv_c_bigendian" = unknown; then 22259 ac_cv_c_bigendian=no 22260 else 22261 # finding both strings is unlikely to happen, but who knows? 22262 ac_cv_c_bigendian=unknown 22263 fi 22264fi 22265else 22266 echo "$as_me: failed program was:" >&5 22267sed 's/^/| /' conftest.$ac_ext >&5 22268 22269 22270fi 22271 22272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22273else 22274 cat >conftest.$ac_ext <<_ACEOF 22275/* confdefs.h. */ 22276_ACEOF 22277cat confdefs.h >>conftest.$ac_ext 22278cat >>conftest.$ac_ext <<_ACEOF 22279/* end confdefs.h. */ 22280$ac_includes_default 22281int 22282main () 22283{ 22284 22285 /* Are we little or big endian? From Harbison&Steele. */ 22286 union 22287 { 22288 long int l; 22289 char c[sizeof (long int)]; 22290 } u; 22291 u.l = 1; 22292 return u.c[sizeof (long int) - 1] == 1; 22293 22294 ; 22295 return 0; 22296} 22297_ACEOF 22298rm -f conftest$ac_exeext 22299if { (ac_try="$ac_link" 22300case "(($ac_try" in 22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22302 *) ac_try_echo=$ac_try;; 22303esac 22304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22305 (eval "$ac_link") 2>&5 22306 ac_status=$? 22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22309 { (case "(($ac_try" in 22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22311 *) ac_try_echo=$ac_try;; 22312esac 22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22314 (eval "$ac_try") 2>&5 22315 ac_status=$? 22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22317 (exit $ac_status); }; }; then 22318 ac_cv_c_bigendian=no 22319else 22320 echo "$as_me: program exited with status $ac_status" >&5 22321echo "$as_me: failed program was:" >&5 22322sed 's/^/| /' conftest.$ac_ext >&5 22323 22324( exit $ac_status ) 22325ac_cv_c_bigendian=yes 22326fi 22327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22328fi 22329 22330 22331fi 22332 22333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22334fi 22335{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 22336echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 22337case $ac_cv_c_bigendian in 22338 yes) 22339 22340cat >>confdefs.h <<\_ACEOF 22341#define MSB_FIRST 1 22342_ACEOF 22343 ;; 22344 no) 22345 22346cat >>confdefs.h <<\_ACEOF 22347#define LSB_FIRST 1 22348_ACEOF 22349 ;; 22350 *) 22351 { { echo "$as_me:$LINENO: error: unsupported byte-order ..." >&5 22352echo "$as_me: error: unsupported byte-order ..." >&2;} 22353 { (exit 1); exit 1; }; } ;; 22354esac 22355 22356ac_config_headers="$ac_config_headers config.h" 22357 22358ac_config_files="$ac_config_files Makefile src/Makefile src/dev/Makefile src/drv/Makefile src/Xem/Makefile" 22359 22360cat >confcache <<\_ACEOF 22361# This file is a shell script that caches the results of configure 22362# tests run on this system so they can be shared between configure 22363# scripts and configure runs, see configure's option --config-cache. 22364# It is not useful on other systems. If it contains results you don't 22365# want to keep, you may remove or edit it. 22366# 22367# config.status only pays attention to the cache file if you give it 22368# the --recheck option to rerun configure. 22369# 22370# `ac_cv_env_foo' variables (set or unset) will be overridden when 22371# loading this file, other *unset* `ac_cv_foo' will be assigned the 22372# following values. 22373 22374_ACEOF 22375 22376# The following way of writing the cache mishandles newlines in values, 22377# but we know of no workaround that is simple, portable, and efficient. 22378# So, we kill variables containing newlines. 22379# Ultrix sh set writes to stderr and can't be redirected directly, 22380# and sets the high bit in the cache file unless we assign to the vars. 22381( 22382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22383 eval ac_val=\$$ac_var 22384 case $ac_val in #( 22385 *${as_nl}*) 22386 case $ac_var in #( 22387 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22388echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22389 esac 22390 case $ac_var in #( 22391 _ | IFS | as_nl) ;; #( 22392 *) $as_unset $ac_var ;; 22393 esac ;; 22394 esac 22395 done 22396 22397 (set) 2>&1 | 22398 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22399 *${as_nl}ac_space=\ *) 22400 # `set' does not quote correctly, so add quotes (double-quote 22401 # substitution turns \\\\ into \\, and sed turns \\ into \). 22402 sed -n \ 22403 "s/'/'\\\\''/g; 22404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22405 ;; #( 22406 *) 22407 # `set' quotes correctly as required by POSIX, so do not add quotes. 22408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22409 ;; 22410 esac | 22411 sort 22412) | 22413 sed ' 22414 /^ac_cv_env_/b end 22415 t clear 22416 :clear 22417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22418 t end 22419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22420 :end' >>confcache 22421if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22422 if test -w "$cache_file"; then 22423 test "x$cache_file" != "x/dev/null" && 22424 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22425echo "$as_me: updating cache $cache_file" >&6;} 22426 cat confcache >$cache_file 22427 else 22428 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22429echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22430 fi 22431fi 22432rm -f confcache 22433 22434test "x$prefix" = xNONE && prefix=$ac_default_prefix 22435# Let make expand exec_prefix. 22436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22437 22438DEFS=-DHAVE_CONFIG_H 22439 22440ac_libobjs= 22441ac_ltlibobjs= 22442for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22443 # 1. Remove the extension, and $U if already installed. 22444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22445 ac_i=`echo "$ac_i" | sed "$ac_script"` 22446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22447 # will be set to the directory where LIBOBJS objects are built. 22448 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22449 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22450done 22451LIBOBJS=$ac_libobjs 22452 22453LTLIBOBJS=$ac_ltlibobjs 22454 22455 22456if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22457 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22458Usually this means the macro was only invoked conditionally." >&5 22459echo "$as_me: error: conditional \"AMDEP\" was never defined. 22460Usually this means the macro was only invoked conditionally." >&2;} 22461 { (exit 1); exit 1; }; } 22462fi 22463if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22464 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22465Usually this means the macro was only invoked conditionally." >&5 22466echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22467Usually this means the macro was only invoked conditionally." >&2;} 22468 { (exit 1); exit 1; }; } 22469fi 22470if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22471 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22472Usually this means the macro was only invoked conditionally." >&5 22473echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22474Usually this means the macro was only invoked conditionally." >&2;} 22475 { (exit 1); exit 1; }; } 22476fi 22477if test -z "${MOTIF1_TRUE}" && test -z "${MOTIF1_FALSE}"; then 22478 { { echo "$as_me:$LINENO: error: conditional \"MOTIF1\" was never defined. 22479Usually this means the macro was only invoked conditionally." >&5 22480echo "$as_me: error: conditional \"MOTIF1\" was never defined. 22481Usually this means the macro was only invoked conditionally." >&2;} 22482 { (exit 1); exit 1; }; } 22483fi 22484if test -z "${ATHENA_TRUE}" && test -z "${ATHENA_FALSE}"; then 22485 { { echo "$as_me:$LINENO: error: conditional \"ATHENA\" was never defined. 22486Usually this means the macro was only invoked conditionally." >&5 22487echo "$as_me: error: conditional \"ATHENA\" was never defined. 22488Usually this means the macro was only invoked conditionally." >&2;} 22489 { (exit 1); exit 1; }; } 22490fi 22491if test -z "${MOTIF1_TRUE}" && test -z "${MOTIF1_FALSE}"; then 22492 { { echo "$as_me:$LINENO: error: conditional \"MOTIF1\" was never defined. 22493Usually this means the macro was only invoked conditionally." >&5 22494echo "$as_me: error: conditional \"MOTIF1\" was never defined. 22495Usually this means the macro was only invoked conditionally." >&2;} 22496 { (exit 1); exit 1; }; } 22497fi 22498if test -z "${ATHENA_TRUE}" && test -z "${ATHENA_FALSE}"; then 22499 { { echo "$as_me:$LINENO: error: conditional \"ATHENA\" was never defined. 22500Usually this means the macro was only invoked conditionally." >&5 22501echo "$as_me: error: conditional \"ATHENA\" was never defined. 22502Usually this means the macro was only invoked conditionally." >&2;} 22503 { (exit 1); exit 1; }; } 22504fi 22505if test -z "${MOTIF1_TRUE}" && test -z "${MOTIF1_FALSE}"; then 22506 { { echo "$as_me:$LINENO: error: conditional \"MOTIF1\" was never defined. 22507Usually this means the macro was only invoked conditionally." >&5 22508echo "$as_me: error: conditional \"MOTIF1\" was never defined. 22509Usually this means the macro was only invoked conditionally." >&2;} 22510 { (exit 1); exit 1; }; } 22511fi 22512if test -z "${ATHENA_TRUE}" && test -z "${ATHENA_FALSE}"; then 22513 { { echo "$as_me:$LINENO: error: conditional \"ATHENA\" was never defined. 22514Usually this means the macro was only invoked conditionally." >&5 22515echo "$as_me: error: conditional \"ATHENA\" was never defined. 22516Usually this means the macro was only invoked conditionally." >&2;} 22517 { (exit 1); exit 1; }; } 22518fi 22519if test -z "${MOTIF1_TRUE}" && test -z "${MOTIF1_FALSE}"; then 22520 { { echo "$as_me:$LINENO: error: conditional \"MOTIF1\" was never defined. 22521Usually this means the macro was only invoked conditionally." >&5 22522echo "$as_me: error: conditional \"MOTIF1\" was never defined. 22523Usually this means the macro was only invoked conditionally." >&2;} 22524 { (exit 1); exit 1; }; } 22525fi 22526if test -z "${ATHENA_TRUE}" && test -z "${ATHENA_FALSE}"; then 22527 { { echo "$as_me:$LINENO: error: conditional \"ATHENA\" was never defined. 22528Usually this means the macro was only invoked conditionally." >&5 22529echo "$as_me: error: conditional \"ATHENA\" was never defined. 22530Usually this means the macro was only invoked conditionally." >&2;} 22531 { (exit 1); exit 1; }; } 22532fi 22533 22534: ${CONFIG_STATUS=./config.status} 22535ac_clean_files_save=$ac_clean_files 22536ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22537{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22538echo "$as_me: creating $CONFIG_STATUS" >&6;} 22539cat >$CONFIG_STATUS <<_ACEOF 22540#! $SHELL 22541# Generated by $as_me. 22542# Run this file to recreate the current configuration. 22543# Compiler output produced by configure, useful for debugging 22544# configure, is in config.log if it exists. 22545 22546debug=false 22547ac_cs_recheck=false 22548ac_cs_silent=false 22549SHELL=\${CONFIG_SHELL-$SHELL} 22550_ACEOF 22551 22552cat >>$CONFIG_STATUS <<\_ACEOF 22553## --------------------- ## 22554## M4sh Initialization. ## 22555## --------------------- ## 22556 22557# Be more Bourne compatible 22558DUALCASE=1; export DUALCASE # for MKS sh 22559if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22560 emulate sh 22561 NULLCMD=: 22562 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22563 # is contrary to our usage. Disable this feature. 22564 alias -g '${1+"$@"}'='"$@"' 22565 setopt NO_GLOB_SUBST 22566else 22567 case `(set -o) 2>/dev/null` in 22568 *posix*) set -o posix ;; 22569esac 22570 22571fi 22572 22573 22574 22575 22576# PATH needs CR 22577# Avoid depending upon Character Ranges. 22578as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22580as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22581as_cr_digits='0123456789' 22582as_cr_alnum=$as_cr_Letters$as_cr_digits 22583 22584# The user is always right. 22585if test "${PATH_SEPARATOR+set}" != set; then 22586 echo "#! /bin/sh" >conf$$.sh 22587 echo "exit 0" >>conf$$.sh 22588 chmod +x conf$$.sh 22589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22590 PATH_SEPARATOR=';' 22591 else 22592 PATH_SEPARATOR=: 22593 fi 22594 rm -f conf$$.sh 22595fi 22596 22597# Support unset when possible. 22598if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22599 as_unset=unset 22600else 22601 as_unset=false 22602fi 22603 22604 22605# IFS 22606# We need space, tab and new line, in precisely that order. Quoting is 22607# there to prevent editors from complaining about space-tab. 22608# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22609# splitting by setting IFS to empty value.) 22610as_nl=' 22611' 22612IFS=" "" $as_nl" 22613 22614# Find who we are. Look in the path if we contain no directory separator. 22615case $0 in 22616 *[\\/]* ) as_myself=$0 ;; 22617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22618for as_dir in $PATH 22619do 22620 IFS=$as_save_IFS 22621 test -z "$as_dir" && as_dir=. 22622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22623done 22624IFS=$as_save_IFS 22625 22626 ;; 22627esac 22628# We did not find ourselves, most probably we were run as `sh COMMAND' 22629# in which case we are not to be found in the path. 22630if test "x$as_myself" = x; then 22631 as_myself=$0 22632fi 22633if test ! -f "$as_myself"; then 22634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22635 { (exit 1); exit 1; } 22636fi 22637 22638# Work around bugs in pre-3.0 UWIN ksh. 22639for as_var in ENV MAIL MAILPATH 22640do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22641done 22642PS1='$ ' 22643PS2='> ' 22644PS4='+ ' 22645 22646# NLS nuisances. 22647for as_var in \ 22648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22650 LC_TELEPHONE LC_TIME 22651do 22652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22653 eval $as_var=C; export $as_var 22654 else 22655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22656 fi 22657done 22658 22659# Required to use basename. 22660if expr a : '\(a\)' >/dev/null 2>&1 && 22661 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22662 as_expr=expr 22663else 22664 as_expr=false 22665fi 22666 22667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22668 as_basename=basename 22669else 22670 as_basename=false 22671fi 22672 22673 22674# Name of the executable. 22675as_me=`$as_basename -- "$0" || 22676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22677 X"$0" : 'X\(//\)$' \| \ 22678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22679echo X/"$0" | 22680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22681 s//\1/ 22682 q 22683 } 22684 /^X\/\(\/\/\)$/{ 22685 s//\1/ 22686 q 22687 } 22688 /^X\/\(\/\).*/{ 22689 s//\1/ 22690 q 22691 } 22692 s/.*/./; q'` 22693 22694# CDPATH. 22695$as_unset CDPATH 22696 22697 22698 22699 as_lineno_1=$LINENO 22700 as_lineno_2=$LINENO 22701 test "x$as_lineno_1" != "x$as_lineno_2" && 22702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22703 22704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22705 # uniformly replaced by the line number. The first 'sed' inserts a 22706 # line-number line after each line using $LINENO; the second 'sed' 22707 # does the real work. The second script uses 'N' to pair each 22708 # line-number line with the line containing $LINENO, and appends 22709 # trailing '-' during substitution so that $LINENO is not a special 22710 # case at line end. 22711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22712 # scripts with optimization help from Paolo Bonzini. Blame Lee 22713 # E. McMahon (1931-1989) for sed's syntax. :-) 22714 sed -n ' 22715 p 22716 /[$]LINENO/= 22717 ' <$as_myself | 22718 sed ' 22719 s/[$]LINENO.*/&-/ 22720 t lineno 22721 b 22722 :lineno 22723 N 22724 :loop 22725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22726 t loop 22727 s/-\n.*// 22728 ' >$as_me.lineno && 22729 chmod +x "$as_me.lineno" || 22730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22731 { (exit 1); exit 1; }; } 22732 22733 # Don't try to exec as it changes $[0], causing all sort of problems 22734 # (the dirname of $[0] is not the place where we might find the 22735 # original and so on. Autoconf is especially sensitive to this). 22736 . "./$as_me.lineno" 22737 # Exit status is that of the last command. 22738 exit 22739} 22740 22741 22742if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22743 as_dirname=dirname 22744else 22745 as_dirname=false 22746fi 22747 22748ECHO_C= ECHO_N= ECHO_T= 22749case `echo -n x` in 22750-n*) 22751 case `echo 'x\c'` in 22752 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22753 *) ECHO_C='\c';; 22754 esac;; 22755*) 22756 ECHO_N='-n';; 22757esac 22758 22759if expr a : '\(a\)' >/dev/null 2>&1 && 22760 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22761 as_expr=expr 22762else 22763 as_expr=false 22764fi 22765 22766rm -f conf$$ conf$$.exe conf$$.file 22767if test -d conf$$.dir; then 22768 rm -f conf$$.dir/conf$$.file 22769else 22770 rm -f conf$$.dir 22771 mkdir conf$$.dir 22772fi 22773echo >conf$$.file 22774if ln -s conf$$.file conf$$ 2>/dev/null; then 22775 as_ln_s='ln -s' 22776 # ... but there are two gotchas: 22777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22779 # In both cases, we have to default to `cp -p'. 22780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22781 as_ln_s='cp -p' 22782elif ln conf$$.file conf$$ 2>/dev/null; then 22783 as_ln_s=ln 22784else 22785 as_ln_s='cp -p' 22786fi 22787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22788rmdir conf$$.dir 2>/dev/null 22789 22790if mkdir -p . 2>/dev/null; then 22791 as_mkdir_p=: 22792else 22793 test -d ./-p && rmdir ./-p 22794 as_mkdir_p=false 22795fi 22796 22797if test -x / >/dev/null 2>&1; then 22798 as_test_x='test -x' 22799else 22800 if ls -dL / >/dev/null 2>&1; then 22801 as_ls_L_option=L 22802 else 22803 as_ls_L_option= 22804 fi 22805 as_test_x=' 22806 eval sh -c '\'' 22807 if test -d "$1"; then 22808 test -d "$1/."; 22809 else 22810 case $1 in 22811 -*)set "./$1";; 22812 esac; 22813 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22814 ???[sx]*):;;*)false;;esac;fi 22815 '\'' sh 22816 ' 22817fi 22818as_executable_p=$as_test_x 22819 22820# Sed expression to map a string onto a valid CPP name. 22821as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22822 22823# Sed expression to map a string onto a valid variable name. 22824as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22825 22826 22827exec 6>&1 22828 22829# Save the log message, to keep $[0] and so on meaningful, and to 22830# report actual input values of CONFIG_FILES etc. instead of their 22831# values after options handling. 22832ac_log=" 22833This file was extended by xcpc $as_me 20070122, which was 22834generated by GNU Autoconf 2.61. Invocation command line was 22835 22836 CONFIG_FILES = $CONFIG_FILES 22837 CONFIG_HEADERS = $CONFIG_HEADERS 22838 CONFIG_LINKS = $CONFIG_LINKS 22839 CONFIG_COMMANDS = $CONFIG_COMMANDS 22840 $ $0 $@ 22841 22842on `(hostname || uname -n) 2>/dev/null | sed 1q` 22843" 22844 22845_ACEOF 22846 22847cat >>$CONFIG_STATUS <<_ACEOF 22848# Files that config.status was made for. 22849config_files="$ac_config_files" 22850config_headers="$ac_config_headers" 22851config_commands="$ac_config_commands" 22852 22853_ACEOF 22854 22855cat >>$CONFIG_STATUS <<\_ACEOF 22856ac_cs_usage="\ 22857\`$as_me' instantiates files from templates according to the 22858current configuration. 22859 22860Usage: $0 [OPTIONS] [FILE]... 22861 22862 -h, --help print this help, then exit 22863 -V, --version print version number and configuration settings, then exit 22864 -q, --quiet do not print progress messages 22865 -d, --debug don't remove temporary files 22866 --recheck update $as_me by reconfiguring in the same conditions 22867 --file=FILE[:TEMPLATE] 22868 instantiate the configuration file FILE 22869 --header=FILE[:TEMPLATE] 22870 instantiate the configuration header FILE 22871 22872Configuration files: 22873$config_files 22874 22875Configuration headers: 22876$config_headers 22877 22878Configuration commands: 22879$config_commands 22880 22881Report bugs to <bug-autoconf@gnu.org>." 22882 22883_ACEOF 22884cat >>$CONFIG_STATUS <<_ACEOF 22885ac_cs_version="\\ 22886xcpc config.status 20070122 22887configured by $0, generated by GNU Autoconf 2.61, 22888 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22889 22890Copyright (C) 2006 Free Software Foundation, Inc. 22891This config.status script is free software; the Free Software Foundation 22892gives unlimited permission to copy, distribute and modify it." 22893 22894ac_pwd='$ac_pwd' 22895srcdir='$srcdir' 22896INSTALL='$INSTALL' 22897MKDIR_P='$MKDIR_P' 22898_ACEOF 22899 22900cat >>$CONFIG_STATUS <<\_ACEOF 22901# If no file are specified by the user, then we need to provide default 22902# value. By we need to know if files were specified by the user. 22903ac_need_defaults=: 22904while test $# != 0 22905do 22906 case $1 in 22907 --*=*) 22908 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22910 ac_shift=: 22911 ;; 22912 *) 22913 ac_option=$1 22914 ac_optarg=$2 22915 ac_shift=shift 22916 ;; 22917 esac 22918 22919 case $ac_option in 22920 # Handling of the options. 22921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22922 ac_cs_recheck=: ;; 22923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22924 echo "$ac_cs_version"; exit ;; 22925 --debug | --debu | --deb | --de | --d | -d ) 22926 debug=: ;; 22927 --file | --fil | --fi | --f ) 22928 $ac_shift 22929 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22930 ac_need_defaults=false;; 22931 --header | --heade | --head | --hea ) 22932 $ac_shift 22933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22934 ac_need_defaults=false;; 22935 --he | --h) 22936 # Conflict between --help and --header 22937 { echo "$as_me: error: ambiguous option: $1 22938Try \`$0 --help' for more information." >&2 22939 { (exit 1); exit 1; }; };; 22940 --help | --hel | -h ) 22941 echo "$ac_cs_usage"; exit ;; 22942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22943 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22944 ac_cs_silent=: ;; 22945 22946 # This is an error. 22947 -*) { echo "$as_me: error: unrecognized option: $1 22948Try \`$0 --help' for more information." >&2 22949 { (exit 1); exit 1; }; } ;; 22950 22951 *) ac_config_targets="$ac_config_targets $1" 22952 ac_need_defaults=false ;; 22953 22954 esac 22955 shift 22956done 22957 22958ac_configure_extra_args= 22959 22960if $ac_cs_silent; then 22961 exec 6>/dev/null 22962 ac_configure_extra_args="$ac_configure_extra_args --silent" 22963fi 22964 22965_ACEOF 22966cat >>$CONFIG_STATUS <<_ACEOF 22967if \$ac_cs_recheck; then 22968 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22969 CONFIG_SHELL=$SHELL 22970 export CONFIG_SHELL 22971 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22972fi 22973 22974_ACEOF 22975cat >>$CONFIG_STATUS <<\_ACEOF 22976exec 5>>config.log 22977{ 22978 echo 22979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22980## Running $as_me. ## 22981_ASBOX 22982 echo "$ac_log" 22983} >&5 22984 22985_ACEOF 22986cat >>$CONFIG_STATUS <<_ACEOF 22987# 22988# INIT-COMMANDS 22989# 22990AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22991 22992_ACEOF 22993 22994cat >>$CONFIG_STATUS <<\_ACEOF 22995 22996# Handling of arguments. 22997for ac_config_target in $ac_config_targets 22998do 22999 case $ac_config_target in 23000 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23001 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23003 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23004 "src/dev/Makefile") CONFIG_FILES="$CONFIG_FILES src/dev/Makefile" ;; 23005 "src/drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/drv/Makefile" ;; 23006 "src/Xem/Makefile") CONFIG_FILES="$CONFIG_FILES src/Xem/Makefile" ;; 23007 23008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23009echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23010 { (exit 1); exit 1; }; };; 23011 esac 23012done 23013 23014 23015# If the user did not use the arguments to specify the items to instantiate, 23016# then the envvar interface is used. Set only those that are not. 23017# We use the long form for the default assignment because of an extremely 23018# bizarre bug on SunOS 4.1.3. 23019if $ac_need_defaults; then 23020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23023fi 23024 23025# Have a temporary directory for convenience. Make it in the build tree 23026# simply because there is no reason against having it here, and in addition, 23027# creating and moving files from /tmp can sometimes cause problems. 23028# Hook for its removal unless debugging. 23029# Note that there is a small window in which the directory will not be cleaned: 23030# after its creation but before its name has been assigned to `$tmp'. 23031$debug || 23032{ 23033 tmp= 23034 trap 'exit_status=$? 23035 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23036' 0 23037 trap '{ (exit 1); exit 1; }' 1 2 13 15 23038} 23039# Create a (secure) tmp directory for tmp files. 23040 23041{ 23042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23043 test -n "$tmp" && test -d "$tmp" 23044} || 23045{ 23046 tmp=./conf$$-$RANDOM 23047 (umask 077 && mkdir "$tmp") 23048} || 23049{ 23050 echo "$me: cannot create a temporary directory in ." >&2 23051 { (exit 1); exit 1; } 23052} 23053 23054# 23055# Set up the sed scripts for CONFIG_FILES section. 23056# 23057 23058# No need to generate the scripts if there are no CONFIG_FILES. 23059# This happens for instance when ./config.status config.h 23060if test -n "$CONFIG_FILES"; then 23061 23062_ACEOF 23063 23064 23065 23066ac_delim='%!_!# ' 23067for ac_last_try in false false false false false :; do 23068 cat >conf$$subs.sed <<_ACEOF 23069SHELL!$SHELL$ac_delim 23070PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23071PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23072PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23073PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23074PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23075PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23076exec_prefix!$exec_prefix$ac_delim 23077prefix!$prefix$ac_delim 23078program_transform_name!$program_transform_name$ac_delim 23079bindir!$bindir$ac_delim 23080sbindir!$sbindir$ac_delim 23081libexecdir!$libexecdir$ac_delim 23082datarootdir!$datarootdir$ac_delim 23083datadir!$datadir$ac_delim 23084sysconfdir!$sysconfdir$ac_delim 23085sharedstatedir!$sharedstatedir$ac_delim 23086localstatedir!$localstatedir$ac_delim 23087includedir!$includedir$ac_delim 23088oldincludedir!$oldincludedir$ac_delim 23089docdir!$docdir$ac_delim 23090infodir!$infodir$ac_delim 23091htmldir!$htmldir$ac_delim 23092dvidir!$dvidir$ac_delim 23093pdfdir!$pdfdir$ac_delim 23094psdir!$psdir$ac_delim 23095libdir!$libdir$ac_delim 23096localedir!$localedir$ac_delim 23097mandir!$mandir$ac_delim 23098DEFS!$DEFS$ac_delim 23099ECHO_C!$ECHO_C$ac_delim 23100ECHO_N!$ECHO_N$ac_delim 23101ECHO_T!$ECHO_T$ac_delim 23102LIBS!$LIBS$ac_delim 23103build_alias!$build_alias$ac_delim 23104host_alias!$host_alias$ac_delim 23105target_alias!$target_alias$ac_delim 23106INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23107INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23108INSTALL_DATA!$INSTALL_DATA$ac_delim 23109am__isrc!$am__isrc$ac_delim 23110CYGPATH_W!$CYGPATH_W$ac_delim 23111PACKAGE!$PACKAGE$ac_delim 23112VERSION!$VERSION$ac_delim 23113ACLOCAL!$ACLOCAL$ac_delim 23114AUTOCONF!$AUTOCONF$ac_delim 23115AUTOMAKE!$AUTOMAKE$ac_delim 23116AUTOHEADER!$AUTOHEADER$ac_delim 23117MAKEINFO!$MAKEINFO$ac_delim 23118install_sh!$install_sh$ac_delim 23119STRIP!$STRIP$ac_delim 23120INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23121mkdir_p!$mkdir_p$ac_delim 23122AWK!$AWK$ac_delim 23123SET_MAKE!$SET_MAKE$ac_delim 23124am__leading_dot!$am__leading_dot$ac_delim 23125AMTAR!$AMTAR$ac_delim 23126am__tar!$am__tar$ac_delim 23127am__untar!$am__untar$ac_delim 23128CC!$CC$ac_delim 23129CFLAGS!$CFLAGS$ac_delim 23130LDFLAGS!$LDFLAGS$ac_delim 23131CPPFLAGS!$CPPFLAGS$ac_delim 23132ac_ct_CC!$ac_ct_CC$ac_delim 23133EXEEXT!$EXEEXT$ac_delim 23134OBJEXT!$OBJEXT$ac_delim 23135DEPDIR!$DEPDIR$ac_delim 23136am__include!$am__include$ac_delim 23137am__quote!$am__quote$ac_delim 23138AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23139AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23140AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23141CCDEPMODE!$CCDEPMODE$ac_delim 23142am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23143am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23144LEX!$LEX$ac_delim 23145LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 23146LEXLIB!$LEXLIB$ac_delim 23147YACC!$YACC$ac_delim 23148YFLAGS!$YFLAGS$ac_delim 23149build!$build$ac_delim 23150build_cpu!$build_cpu$ac_delim 23151build_vendor!$build_vendor$ac_delim 23152build_os!$build_os$ac_delim 23153host!$host$ac_delim 23154host_cpu!$host_cpu$ac_delim 23155host_vendor!$host_vendor$ac_delim 23156host_os!$host_os$ac_delim 23157GREP!$GREP$ac_delim 23158EGREP!$EGREP$ac_delim 23159LN_S!$LN_S$ac_delim 23160ECHO!$ECHO$ac_delim 23161AR!$AR$ac_delim 23162RANLIB!$RANLIB$ac_delim 23163CPP!$CPP$ac_delim 23164CXX!$CXX$ac_delim 23165CXXFLAGS!$CXXFLAGS$ac_delim 23166_ACEOF 23167 23168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23169 break 23170 elif $ac_last_try; then 23171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23172echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23173 { (exit 1); exit 1; }; } 23174 else 23175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23176 fi 23177done 23178 23179ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23180if test -n "$ac_eof"; then 23181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23182 ac_eof=`expr $ac_eof + 1` 23183fi 23184 23185cat >>$CONFIG_STATUS <<_ACEOF 23186cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23188_ACEOF 23189sed ' 23190s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23191s/^/s,@/; s/!/@,|#_!!_#|/ 23192:n 23193t n 23194s/'"$ac_delim"'$/,g/; t 23195s/$/\\/; p 23196N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23197' >>$CONFIG_STATUS <conf$$subs.sed 23198rm -f conf$$subs.sed 23199cat >>$CONFIG_STATUS <<_ACEOF 23200CEOF$ac_eof 23201_ACEOF 23202 23203 23204ac_delim='%!_!# ' 23205for ac_last_try in false false false false false :; do 23206 cat >conf$$subs.sed <<_ACEOF 23207ac_ct_CXX!$ac_ct_CXX$ac_delim 23208CXXDEPMODE!$CXXDEPMODE$ac_delim 23209am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23210am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23211CXXCPP!$CXXCPP$ac_delim 23212F77!$F77$ac_delim 23213FFLAGS!$FFLAGS$ac_delim 23214ac_ct_F77!$ac_ct_F77$ac_delim 23215LIBTOOL!$LIBTOOL$ac_delim 23216XMKMF!$XMKMF$ac_delim 23217X_CFLAGS!$X_CFLAGS$ac_delim 23218X_PRE_LIBS!$X_PRE_LIBS$ac_delim 23219X_LIBS!$X_LIBS$ac_delim 23220X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 23221PKG_CONFIG!$PKG_CONFIG$ac_delim 23222GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim 23223GLIB_LIBS!$GLIB_LIBS$ac_delim 23224GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim 23225GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim 23226GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim 23227MOTIF1_TRUE!$MOTIF1_TRUE$ac_delim 23228MOTIF1_FALSE!$MOTIF1_FALSE$ac_delim 23229ATHENA_TRUE!$ATHENA_TRUE$ac_delim 23230ATHENA_FALSE!$ATHENA_FALSE$ac_delim 23231LIBOBJS!$LIBOBJS$ac_delim 23232LTLIBOBJS!$LTLIBOBJS$ac_delim 23233_ACEOF 23234 23235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then 23236 break 23237 elif $ac_last_try; then 23238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23239echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23240 { (exit 1); exit 1; }; } 23241 else 23242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23243 fi 23244done 23245 23246ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23247if test -n "$ac_eof"; then 23248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23249 ac_eof=`expr $ac_eof + 1` 23250fi 23251 23252cat >>$CONFIG_STATUS <<_ACEOF 23253cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23255_ACEOF 23256sed ' 23257s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23258s/^/s,@/; s/!/@,|#_!!_#|/ 23259:n 23260t n 23261s/'"$ac_delim"'$/,g/; t 23262s/$/\\/; p 23263N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23264' >>$CONFIG_STATUS <conf$$subs.sed 23265rm -f conf$$subs.sed 23266cat >>$CONFIG_STATUS <<_ACEOF 23267:end 23268s/|#_!!_#|//g 23269CEOF$ac_eof 23270_ACEOF 23271 23272 23273# VPATH may cause trouble with some makes, so we remove $(srcdir), 23274# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23275# trailing colons and then remove the whole line if VPATH becomes empty 23276# (actually we leave an empty line to preserve line numbers). 23277if test "x$srcdir" = x.; then 23278 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23279s/:*\$(srcdir):*/:/ 23280s/:*\${srcdir}:*/:/ 23281s/:*@srcdir@:*/:/ 23282s/^\([^=]*=[ ]*\):*/\1/ 23283s/:*$// 23284s/^[^=]*=[ ]*$// 23285}' 23286fi 23287 23288cat >>$CONFIG_STATUS <<\_ACEOF 23289fi # test -n "$CONFIG_FILES" 23290 23291 23292for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23293do 23294 case $ac_tag in 23295 :[FHLC]) ac_mode=$ac_tag; continue;; 23296 esac 23297 case $ac_mode$ac_tag in 23298 :[FHL]*:*);; 23299 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23300echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23301 { (exit 1); exit 1; }; };; 23302 :[FH]-) ac_tag=-:-;; 23303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23304 esac 23305 ac_save_IFS=$IFS 23306 IFS=: 23307 set x $ac_tag 23308 IFS=$ac_save_IFS 23309 shift 23310 ac_file=$1 23311 shift 23312 23313 case $ac_mode in 23314 :L) ac_source=$1;; 23315 :[FH]) 23316 ac_file_inputs= 23317 for ac_f 23318 do 23319 case $ac_f in 23320 -) ac_f="$tmp/stdin";; 23321 *) # Look for the file first in the build tree, then in the source tree 23322 # (if the path is not absolute). The absolute path cannot be DOS-style, 23323 # because $ac_f cannot contain `:'. 23324 test -f "$ac_f" || 23325 case $ac_f in 23326 [\\/$]*) false;; 23327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23328 esac || 23329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23330echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23331 { (exit 1); exit 1; }; };; 23332 esac 23333 ac_file_inputs="$ac_file_inputs $ac_f" 23334 done 23335 23336 # Let's still pretend it is `configure' which instantiates (i.e., don't 23337 # use $as_me), people would be surprised to read: 23338 # /* config.h. Generated by config.status. */ 23339 configure_input="Generated from "`IFS=: 23340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23341 if test x"$ac_file" != x-; then 23342 configure_input="$ac_file. $configure_input" 23343 { echo "$as_me:$LINENO: creating $ac_file" >&5 23344echo "$as_me: creating $ac_file" >&6;} 23345 fi 23346 23347 case $ac_tag in 23348 *:-:* | *:-) cat >"$tmp/stdin";; 23349 esac 23350 ;; 23351 esac 23352 23353 ac_dir=`$as_dirname -- "$ac_file" || 23354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23355 X"$ac_file" : 'X\(//\)[^/]' \| \ 23356 X"$ac_file" : 'X\(//\)$' \| \ 23357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23358echo X"$ac_file" | 23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23360 s//\1/ 23361 q 23362 } 23363 /^X\(\/\/\)[^/].*/{ 23364 s//\1/ 23365 q 23366 } 23367 /^X\(\/\/\)$/{ 23368 s//\1/ 23369 q 23370 } 23371 /^X\(\/\).*/{ 23372 s//\1/ 23373 q 23374 } 23375 s/.*/./; q'` 23376 { as_dir="$ac_dir" 23377 case $as_dir in #( 23378 -*) as_dir=./$as_dir;; 23379 esac 23380 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23381 as_dirs= 23382 while :; do 23383 case $as_dir in #( 23384 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23385 *) as_qdir=$as_dir;; 23386 esac 23387 as_dirs="'$as_qdir' $as_dirs" 23388 as_dir=`$as_dirname -- "$as_dir" || 23389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23390 X"$as_dir" : 'X\(//\)[^/]' \| \ 23391 X"$as_dir" : 'X\(//\)$' \| \ 23392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23393echo X"$as_dir" | 23394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23395 s//\1/ 23396 q 23397 } 23398 /^X\(\/\/\)[^/].*/{ 23399 s//\1/ 23400 q 23401 } 23402 /^X\(\/\/\)$/{ 23403 s//\1/ 23404 q 23405 } 23406 /^X\(\/\).*/{ 23407 s//\1/ 23408 q 23409 } 23410 s/.*/./; q'` 23411 test -d "$as_dir" && break 23412 done 23413 test -z "$as_dirs" || eval "mkdir $as_dirs" 23414 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23415echo "$as_me: error: cannot create directory $as_dir" >&2;} 23416 { (exit 1); exit 1; }; }; } 23417 ac_builddir=. 23418 23419case "$ac_dir" in 23420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23421*) 23422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23423 # A ".." for each directory in $ac_dir_suffix. 23424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23425 case $ac_top_builddir_sub in 23426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23428 esac ;; 23429esac 23430ac_abs_top_builddir=$ac_pwd 23431ac_abs_builddir=$ac_pwd$ac_dir_suffix 23432# for backward compatibility: 23433ac_top_builddir=$ac_top_build_prefix 23434 23435case $srcdir in 23436 .) # We are building in place. 23437 ac_srcdir=. 23438 ac_top_srcdir=$ac_top_builddir_sub 23439 ac_abs_top_srcdir=$ac_pwd ;; 23440 [\\/]* | ?:[\\/]* ) # Absolute name. 23441 ac_srcdir=$srcdir$ac_dir_suffix; 23442 ac_top_srcdir=$srcdir 23443 ac_abs_top_srcdir=$srcdir ;; 23444 *) # Relative name. 23445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23446 ac_top_srcdir=$ac_top_build_prefix$srcdir 23447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23448esac 23449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23450 23451 23452 case $ac_mode in 23453 :F) 23454 # 23455 # CONFIG_FILE 23456 # 23457 23458 case $INSTALL in 23459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23461 esac 23462 ac_MKDIR_P=$MKDIR_P 23463 case $MKDIR_P in 23464 [\\/$]* | ?:[\\/]* ) ;; 23465 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23466 esac 23467_ACEOF 23468 23469cat >>$CONFIG_STATUS <<\_ACEOF 23470# If the template does not know about datarootdir, expand it. 23471# FIXME: This hack should be removed a few years after 2.60. 23472ac_datarootdir_hack=; ac_datarootdir_seen= 23473 23474case `sed -n '/datarootdir/ { 23475 p 23476 q 23477} 23478/@datadir@/p 23479/@docdir@/p 23480/@infodir@/p 23481/@localedir@/p 23482/@mandir@/p 23483' $ac_file_inputs` in 23484*datarootdir*) ac_datarootdir_seen=yes;; 23485*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23486 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23487echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23488_ACEOF 23489cat >>$CONFIG_STATUS <<_ACEOF 23490 ac_datarootdir_hack=' 23491 s&@datadir@&$datadir&g 23492 s&@docdir@&$docdir&g 23493 s&@infodir@&$infodir&g 23494 s&@localedir@&$localedir&g 23495 s&@mandir@&$mandir&g 23496 s&\\\${datarootdir}&$datarootdir&g' ;; 23497esac 23498_ACEOF 23499 23500# Neutralize VPATH when `$srcdir' = `.'. 23501# Shell code in configure.ac might set extrasub. 23502# FIXME: do we really want to maintain this feature? 23503cat >>$CONFIG_STATUS <<_ACEOF 23504 sed "$ac_vpsub 23505$extrasub 23506_ACEOF 23507cat >>$CONFIG_STATUS <<\_ACEOF 23508:t 23509/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23510s&@configure_input@&$configure_input&;t t 23511s&@top_builddir@&$ac_top_builddir_sub&;t t 23512s&@srcdir@&$ac_srcdir&;t t 23513s&@abs_srcdir@&$ac_abs_srcdir&;t t 23514s&@top_srcdir@&$ac_top_srcdir&;t t 23515s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23516s&@builddir@&$ac_builddir&;t t 23517s&@abs_builddir@&$ac_abs_builddir&;t t 23518s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23519s&@INSTALL@&$ac_INSTALL&;t t 23520s&@MKDIR_P@&$ac_MKDIR_P&;t t 23521$ac_datarootdir_hack 23522" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23523 23524test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23528which seems to be undefined. Please make sure it is defined." >&5 23529echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23530which seems to be undefined. Please make sure it is defined." >&2;} 23531 23532 rm -f "$tmp/stdin" 23533 case $ac_file in 23534 -) cat "$tmp/out"; rm -f "$tmp/out";; 23535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23536 esac 23537 ;; 23538 :H) 23539 # 23540 # CONFIG_HEADER 23541 # 23542_ACEOF 23543 23544# Transform confdefs.h into a sed script `conftest.defines', that 23545# substitutes the proper values into config.h.in to produce config.h. 23546rm -f conftest.defines conftest.tail 23547# First, append a space to every undef/define line, to ease matching. 23548echo 's/$/ /' >conftest.defines 23549# Then, protect against being on the right side of a sed subst, or in 23550# an unquoted here document, in config.status. If some macros were 23551# called several times there might be several #defines for the same 23552# symbol, which is useless. But do not sort them, since the last 23553# AC_DEFINE must be honored. 23554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23555# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23556# NAME is the cpp macro being defined, VALUE is the value it is being given. 23557# PARAMS is the parameter list in the macro definition--in most cases, it's 23558# just an empty string. 23559ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23560ac_dB='\\)[ (].*,\\1define\\2' 23561ac_dC=' ' 23562ac_dD=' ,' 23563 23564uniq confdefs.h | 23565 sed -n ' 23566 t rset 23567 :rset 23568 s/^[ ]*#[ ]*define[ ][ ]*// 23569 t ok 23570 d 23571 :ok 23572 s/[\\&,]/\\&/g 23573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23575 ' >>conftest.defines 23576 23577# Remove the space that was appended to ease matching. 23578# Then replace #undef with comments. This is necessary, for 23579# example, in the case of _POSIX_SOURCE, which is predefined and required 23580# on some systems where configure will not decide to define it. 23581# (The regexp can be short, since the line contains either #define or #undef.) 23582echo 's/ $// 23583s,^[ #]*u.*,/* & */,' >>conftest.defines 23584 23585# Break up conftest.defines: 23586ac_max_sed_lines=50 23587 23588# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23589# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23590# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23591# et cetera. 23592ac_in='$ac_file_inputs' 23593ac_out='"$tmp/out1"' 23594ac_nxt='"$tmp/out2"' 23595 23596while : 23597do 23598 # Write a here document: 23599 cat >>$CONFIG_STATUS <<_ACEOF 23600 # First, check the format of the line: 23601 cat >"\$tmp/defines.sed" <<\\CEOF 23602/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23603/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23604b 23605:def 23606_ACEOF 23607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23608 echo 'CEOF 23609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23612 grep . conftest.tail >/dev/null || break 23613 rm -f conftest.defines 23614 mv conftest.tail conftest.defines 23615done 23616rm -f conftest.defines conftest.tail 23617 23618echo "ac_result=$ac_in" >>$CONFIG_STATUS 23619cat >>$CONFIG_STATUS <<\_ACEOF 23620 if test x"$ac_file" != x-; then 23621 echo "/* $configure_input */" >"$tmp/config.h" 23622 cat "$ac_result" >>"$tmp/config.h" 23623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23625echo "$as_me: $ac_file is unchanged" >&6;} 23626 else 23627 rm -f $ac_file 23628 mv "$tmp/config.h" $ac_file 23629 fi 23630 else 23631 echo "/* $configure_input */" 23632 cat "$ac_result" 23633 fi 23634 rm -f "$tmp/out12" 23635# Compute $ac_file's index in $config_headers. 23636_am_stamp_count=1 23637for _am_header in $config_headers :; do 23638 case $_am_header in 23639 $ac_file | $ac_file:* ) 23640 break ;; 23641 * ) 23642 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23643 esac 23644done 23645echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23646$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23647 X$ac_file : 'X\(//\)[^/]' \| \ 23648 X$ac_file : 'X\(//\)$' \| \ 23649 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23650echo X$ac_file | 23651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23652 s//\1/ 23653 q 23654 } 23655 /^X\(\/\/\)[^/].*/{ 23656 s//\1/ 23657 q 23658 } 23659 /^X\(\/\/\)$/{ 23660 s//\1/ 23661 q 23662 } 23663 /^X\(\/\).*/{ 23664 s//\1/ 23665 q 23666 } 23667 s/.*/./; q'`/stamp-h$_am_stamp_count 23668 ;; 23669 23670 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23671echo "$as_me: executing $ac_file commands" >&6;} 23672 ;; 23673 esac 23674 23675 23676 case $ac_file$ac_mode in 23677 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23678 # Strip MF so we end up with the name of the file. 23679 mf=`echo "$mf" | sed -e 's/:.*$//'` 23680 # Check whether this is an Automake generated Makefile or not. 23681 # We used to match only the files named `Makefile.in', but 23682 # some people rename them; so instead we look at the file content. 23683 # Grep'ing the first line is not enough: some people post-process 23684 # each Makefile.in and add a new line on top of each file to say so. 23685 # Grep'ing the whole file is not good either: AIX grep has a line 23686 # limit of 2048, but all sed's we know have understand at least 4000. 23687 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 23688 dirpart=`$as_dirname -- "$mf" || 23689$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23690 X"$mf" : 'X\(//\)[^/]' \| \ 23691 X"$mf" : 'X\(//\)$' \| \ 23692 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23693echo X"$mf" | 23694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23695 s//\1/ 23696 q 23697 } 23698 /^X\(\/\/\)[^/].*/{ 23699 s//\1/ 23700 q 23701 } 23702 /^X\(\/\/\)$/{ 23703 s//\1/ 23704 q 23705 } 23706 /^X\(\/\).*/{ 23707 s//\1/ 23708 q 23709 } 23710 s/.*/./; q'` 23711 else 23712 continue 23713 fi 23714 # Extract the definition of DEPDIR, am__include, and am__quote 23715 # from the Makefile without running `make'. 23716 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23717 test -z "$DEPDIR" && continue 23718 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23719 test -z "am__include" && continue 23720 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23721 # When using ansi2knr, U may be empty or an underscore; expand it 23722 U=`sed -n 's/^U = //p' < "$mf"` 23723 # Find all dependency output files, they are included files with 23724 # $(DEPDIR) in their names. We invoke sed twice because it is the 23725 # simplest approach to changing $(DEPDIR) to its actual value in the 23726 # expansion. 23727 for file in `sed -n " 23728 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23729 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23730 # Make sure the directory exists. 23731 test -f "$dirpart/$file" && continue 23732 fdir=`$as_dirname -- "$file" || 23733$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23734 X"$file" : 'X\(//\)[^/]' \| \ 23735 X"$file" : 'X\(//\)$' \| \ 23736 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23737echo X"$file" | 23738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23739 s//\1/ 23740 q 23741 } 23742 /^X\(\/\/\)[^/].*/{ 23743 s//\1/ 23744 q 23745 } 23746 /^X\(\/\/\)$/{ 23747 s//\1/ 23748 q 23749 } 23750 /^X\(\/\).*/{ 23751 s//\1/ 23752 q 23753 } 23754 s/.*/./; q'` 23755 { as_dir=$dirpart/$fdir 23756 case $as_dir in #( 23757 -*) as_dir=./$as_dir;; 23758 esac 23759 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23760 as_dirs= 23761 while :; do 23762 case $as_dir in #( 23763 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23764 *) as_qdir=$as_dir;; 23765 esac 23766 as_dirs="'$as_qdir' $as_dirs" 23767 as_dir=`$as_dirname -- "$as_dir" || 23768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23769 X"$as_dir" : 'X\(//\)[^/]' \| \ 23770 X"$as_dir" : 'X\(//\)$' \| \ 23771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23772echo X"$as_dir" | 23773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23774 s//\1/ 23775 q 23776 } 23777 /^X\(\/\/\)[^/].*/{ 23778 s//\1/ 23779 q 23780 } 23781 /^X\(\/\/\)$/{ 23782 s//\1/ 23783 q 23784 } 23785 /^X\(\/\).*/{ 23786 s//\1/ 23787 q 23788 } 23789 s/.*/./; q'` 23790 test -d "$as_dir" && break 23791 done 23792 test -z "$as_dirs" || eval "mkdir $as_dirs" 23793 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23794echo "$as_me: error: cannot create directory $as_dir" >&2;} 23795 { (exit 1); exit 1; }; }; } 23796 # echo "creating $dirpart/$file" 23797 echo '# dummy' > "$dirpart/$file" 23798 done 23799done 23800 ;; 23801 23802 esac 23803done # for ac_tag 23804 23805 23806{ (exit 0); exit 0; } 23807_ACEOF 23808chmod +x $CONFIG_STATUS 23809ac_clean_files=$ac_clean_files_save 23810 23811 23812# configure is writing to config.log, and then calls config.status. 23813# config.status does its own redirection, appending to config.log. 23814# Unfortunately, on DOS this fails, as config.log is still kept open 23815# by configure, so config.status won't be able to write to it; its 23816# output is simply discarded. So we exec the FD to /dev/null, 23817# effectively closing config.log, so it can be properly (re)opened and 23818# appended to by config.status. When coming back to configure, we 23819# need to make the FD available again. 23820if test "$no_create" != yes; then 23821 ac_cs_success=: 23822 ac_config_status_args= 23823 test "$silent" = yes && 23824 ac_config_status_args="$ac_config_status_args --quiet" 23825 exec 5>/dev/null 23826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23827 exec 5>>config.log 23828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23829 # would make configure fail if this is the last instruction. 23830 $ac_cs_success || { (exit 1); exit 1; } 23831fi 23832 23833{ echo "$as_me:$LINENO: Configured to build Xcpc: 23834 23835 GLib20 sdk .... ${have_glib20} 23836 LibDSK sdk .... ${have_libdsk} 23837 Motif1 sdk .... ${have_motif1} 23838 Athena sdk .... ${have_athena} 23839 gui toolkit ... ${gui_toolkit} 23840 X11-SHM ....... ${enable_xshm} 23841 23842Have fun with Xcpc ;-) 23843" >&5 23844echo "$as_me: Configured to build Xcpc: 23845 23846 GLib20 sdk .... ${have_glib20} 23847 LibDSK sdk .... ${have_libdsk} 23848 Motif1 sdk .... ${have_motif1} 23849 Athena sdk .... ${have_athena} 23850 gui toolkit ... ${gui_toolkit} 23851 X11-SHM ....... ${enable_xshm} 23852 23853Have fun with Xcpc ;-) 23854" >&6;} 23855