1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libltdl 2.2.6. 4# 5# Report bugs to <bug-libtool@gnu.org>. 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$lt_ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565ECHO=${lt_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 <<_LT_EOF 584$* 585_LT_EOF 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 "$lt_ECHO"; then 594 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 ECHO="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$ECHO" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 ECHO='print -r' 637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 ECHO='printf %s\n' 648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 ECHO="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 ECHO="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 ECHO=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695lt_ECHO=$ECHO 696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703exec 7<&0 </dev/null 6>&1 704 705# Name of the host. 706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 707# so uname gets run too. 708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 709 710# 711# Initializations. 712# 713ac_default_prefix=/usr/local 714ac_clean_files= 715ac_config_libobj_dir=. 716LIBOBJS= 717cross_compiling=no 718subdirs= 719MFLAGS= 720MAKEFLAGS= 721SHELL=${CONFIG_SHELL-/bin/sh} 722 723# Identity of this package. 724PACKAGE_NAME='libltdl' 725PACKAGE_TARNAME='libltdl' 726PACKAGE_VERSION='2.2.6' 727PACKAGE_STRING='libltdl 2.2.6' 728PACKAGE_BUGREPORT='bug-libtool@gnu.org' 729 730ac_unique_file="ltdl.c" 731# Factoring default headers for most tests. 732ac_includes_default="\ 733#include <stdio.h> 734#ifdef HAVE_SYS_TYPES_H 735# include <sys/types.h> 736#endif 737#ifdef HAVE_SYS_STAT_H 738# include <sys/stat.h> 739#endif 740#ifdef STDC_HEADERS 741# include <stdlib.h> 742# include <stddef.h> 743#else 744# ifdef HAVE_STDLIB_H 745# include <stdlib.h> 746# endif 747#endif 748#ifdef HAVE_STRING_H 749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 750# include <memory.h> 751# endif 752# include <string.h> 753#endif 754#ifdef HAVE_STRINGS_H 755# include <strings.h> 756#endif 757#ifdef HAVE_INTTYPES_H 758# include <inttypes.h> 759#endif 760#ifdef HAVE_STDINT_H 761# include <stdint.h> 762#endif 763#ifdef HAVE_UNISTD_H 764# include <unistd.h> 765#endif" 766 767ac_subst_vars='SHELL 768PATH_SEPARATOR 769PACKAGE_NAME 770PACKAGE_TARNAME 771PACKAGE_VERSION 772PACKAGE_STRING 773PACKAGE_BUGREPORT 774exec_prefix 775prefix 776program_transform_name 777bindir 778sbindir 779libexecdir 780datarootdir 781datadir 782sysconfdir 783sharedstatedir 784localstatedir 785includedir 786oldincludedir 787docdir 788infodir 789htmldir 790dvidir 791pdfdir 792psdir 793libdir 794localedir 795mandir 796DEFS 797ECHO_C 798ECHO_N 799ECHO_T 800LIBS 801build_alias 802host_alias 803target_alias 804INSTALL_PROGRAM 805INSTALL_SCRIPT 806INSTALL_DATA 807am__isrc 808CYGPATH_W 809PACKAGE 810VERSION 811ACLOCAL 812AUTOCONF 813AUTOMAKE 814AUTOHEADER 815MAKEINFO 816install_sh 817STRIP 818INSTALL_STRIP_PROGRAM 819mkdir_p 820AWK 821SET_MAKE 822am__leading_dot 823AMTAR 824am__tar 825am__untar 826AS 827DLLTOOL 828OBJDUMP 829LIBTOOL 830build 831build_cpu 832build_vendor 833build_os 834host 835host_cpu 836host_vendor 837host_os 838CC 839CFLAGS 840LDFLAGS 841CPPFLAGS 842ac_ct_CC 843EXEEXT 844OBJEXT 845DEPDIR 846am__include 847am__quote 848AMDEP_TRUE 849AMDEP_FALSE 850AMDEPBACKSLASH 851CCDEPMODE 852am__fastdepCC_TRUE 853am__fastdepCC_FALSE 854SED 855GREP 856EGREP 857FGREP 858LD 859DUMPBIN 860ac_ct_DUMPBIN 861NM 862LN_S 863AR 864RANLIB 865lt_ECHO 866DSYMUTIL 867NMEDIT 868LIPO 869OTOOL 870OTOOL64 871CPP 872LT_DLLOADERS 873LIBADD_DLOPEN 874LIBADD_SHL_LOAD 875LIBADD_DLD_LINK 876LT_DLPREOPEN 877LIBADD_DL 878sys_symbol_underscore 879LIBOBJS 880ARGZ_H 881INSTALL_LTDL_TRUE 882INSTALL_LTDL_FALSE 883CONVENIENCE_LTDL_TRUE 884CONVENIENCE_LTDL_FALSE 885LT_CONFIG_H 886LTDLOPEN 887LTLIBOBJS' 888ac_subst_files='' 889 ac_precious_vars='build_alias 890host_alias 891target_alias 892CC 893CFLAGS 894LDFLAGS 895LIBS 896CPPFLAGS 897CPP' 898 899 900# Initialize some variables set by options. 901ac_init_help= 902ac_init_version=false 903# The variables have the same names as the options, with 904# dashes changed to underlines. 905cache_file=/dev/null 906exec_prefix=NONE 907no_create= 908no_recursion= 909prefix=NONE 910program_prefix=NONE 911program_suffix=NONE 912program_transform_name=s,x,x, 913silent= 914site= 915srcdir= 916verbose= 917x_includes=NONE 918x_libraries=NONE 919 920# Installation directory options. 921# These are left unexpanded so users can "make install exec_prefix=/foo" 922# and all the variables that are supposed to be based on exec_prefix 923# by default will actually change. 924# Use braces instead of parens because sh, perl, etc. also accept them. 925# (The list follows the same order as the GNU Coding Standards.) 926bindir='${exec_prefix}/bin' 927sbindir='${exec_prefix}/sbin' 928libexecdir='${exec_prefix}/libexec' 929datarootdir='${prefix}/share' 930datadir='${datarootdir}' 931sysconfdir='${prefix}/etc' 932sharedstatedir='${prefix}/com' 933localstatedir='${prefix}/var' 934includedir='${prefix}/include' 935oldincludedir='/usr/include' 936docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 937infodir='${datarootdir}/info' 938htmldir='${docdir}' 939dvidir='${docdir}' 940pdfdir='${docdir}' 941psdir='${docdir}' 942libdir='${exec_prefix}/lib' 943localedir='${datarootdir}/locale' 944mandir='${datarootdir}/man' 945 946ac_prev= 947ac_dashdash= 948for ac_option 949do 950 # If the previous option needs an argument, assign it. 951 if test -n "$ac_prev"; then 952 eval $ac_prev=\$ac_option 953 ac_prev= 954 continue 955 fi 956 957 case $ac_option in 958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 959 *) ac_optarg=yes ;; 960 esac 961 962 # Accept the important Cygnus configure options, so we can diagnose typos. 963 964 case $ac_dashdash$ac_option in 965 --) 966 ac_dashdash=yes ;; 967 968 -bindir | --bindir | --bindi | --bind | --bin | --bi) 969 ac_prev=bindir ;; 970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 971 bindir=$ac_optarg ;; 972 973 -build | --build | --buil | --bui | --bu) 974 ac_prev=build_alias ;; 975 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 976 build_alias=$ac_optarg ;; 977 978 -cache-file | --cache-file | --cache-fil | --cache-fi \ 979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 980 ac_prev=cache_file ;; 981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 983 cache_file=$ac_optarg ;; 984 985 --config-cache | -C) 986 cache_file=config.cache ;; 987 988 -datadir | --datadir | --datadi | --datad) 989 ac_prev=datadir ;; 990 -datadir=* | --datadir=* | --datadi=* | --datad=*) 991 datadir=$ac_optarg ;; 992 993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 994 | --dataroo | --dataro | --datar) 995 ac_prev=datarootdir ;; 996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 998 datarootdir=$ac_optarg ;; 999 1000 -disable-* | --disable-*) 1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1005 { (exit 1); exit 1; }; } 1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1007 eval enable_$ac_feature=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1024 { (exit 1); exit 1; }; } 1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1026 eval enable_$ac_feature=\$ac_optarg ;; 1027 1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1030 | --exec | --exe | --ex) 1031 ac_prev=exec_prefix ;; 1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1034 | --exec=* | --exe=* | --ex=*) 1035 exec_prefix=$ac_optarg ;; 1036 1037 -gas | --gas | --ga | --g) 1038 # Obsolete; use --with-gas. 1039 with_gas=yes ;; 1040 1041 -help | --help | --hel | --he | -h) 1042 ac_init_help=long ;; 1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1044 ac_init_help=recursive ;; 1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1046 ac_init_help=short ;; 1047 1048 -host | --host | --hos | --ho) 1049 ac_prev=host_alias ;; 1050 -host=* | --host=* | --hos=* | --ho=*) 1051 host_alias=$ac_optarg ;; 1052 1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1054 ac_prev=htmldir ;; 1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1056 | --ht=*) 1057 htmldir=$ac_optarg ;; 1058 1059 -includedir | --includedir | --includedi | --included | --include \ 1060 | --includ | --inclu | --incl | --inc) 1061 ac_prev=includedir ;; 1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1063 | --includ=* | --inclu=* | --incl=* | --inc=*) 1064 includedir=$ac_optarg ;; 1065 1066 -infodir | --infodir | --infodi | --infod | --info | --inf) 1067 ac_prev=infodir ;; 1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1069 infodir=$ac_optarg ;; 1070 1071 -libdir | --libdir | --libdi | --libd) 1072 ac_prev=libdir ;; 1073 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1074 libdir=$ac_optarg ;; 1075 1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1077 | --libexe | --libex | --libe) 1078 ac_prev=libexecdir ;; 1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1080 | --libexe=* | --libex=* | --libe=*) 1081 libexecdir=$ac_optarg ;; 1082 1083 -localedir | --localedir | --localedi | --localed | --locale) 1084 ac_prev=localedir ;; 1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1086 localedir=$ac_optarg ;; 1087 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1089 | --localstate | --localstat | --localsta | --localst | --locals) 1090 ac_prev=localstatedir ;; 1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1093 localstatedir=$ac_optarg ;; 1094 1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1096 ac_prev=mandir ;; 1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1098 mandir=$ac_optarg ;; 1099 1100 -nfp | --nfp | --nf) 1101 # Obsolete; use --without-fp. 1102 with_fp=no ;; 1103 1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1105 | --no-cr | --no-c | -n) 1106 no_create=yes ;; 1107 1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1110 no_recursion=yes ;; 1111 1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1114 | --oldin | --oldi | --old | --ol | --o) 1115 ac_prev=oldincludedir ;; 1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1119 oldincludedir=$ac_optarg ;; 1120 1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1122 ac_prev=prefix ;; 1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1124 prefix=$ac_optarg ;; 1125 1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1127 | --program-pre | --program-pr | --program-p) 1128 ac_prev=program_prefix ;; 1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1131 program_prefix=$ac_optarg ;; 1132 1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1134 | --program-suf | --program-su | --program-s) 1135 ac_prev=program_suffix ;; 1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1138 program_suffix=$ac_optarg ;; 1139 1140 -program-transform-name | --program-transform-name \ 1141 | --program-transform-nam | --program-transform-na \ 1142 | --program-transform-n | --program-transform- \ 1143 | --program-transform | --program-transfor \ 1144 | --program-transfo | --program-transf \ 1145 | --program-trans | --program-tran \ 1146 | --progr-tra | --program-tr | --program-t) 1147 ac_prev=program_transform_name ;; 1148 -program-transform-name=* | --program-transform-name=* \ 1149 | --program-transform-nam=* | --program-transform-na=* \ 1150 | --program-transform-n=* | --program-transform-=* \ 1151 | --program-transform=* | --program-transfor=* \ 1152 | --program-transfo=* | --program-transf=* \ 1153 | --program-trans=* | --program-tran=* \ 1154 | --progr-tra=* | --program-tr=* | --program-t=*) 1155 program_transform_name=$ac_optarg ;; 1156 1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1158 ac_prev=pdfdir ;; 1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1160 pdfdir=$ac_optarg ;; 1161 1162 -psdir | --psdir | --psdi | --psd | --ps) 1163 ac_prev=psdir ;; 1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1165 psdir=$ac_optarg ;; 1166 1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1168 | -silent | --silent | --silen | --sile | --sil) 1169 silent=yes ;; 1170 1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1172 ac_prev=sbindir ;; 1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1174 | --sbi=* | --sb=*) 1175 sbindir=$ac_optarg ;; 1176 1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1179 | --sharedst | --shareds | --shared | --share | --shar \ 1180 | --sha | --sh) 1181 ac_prev=sharedstatedir ;; 1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1185 | --sha=* | --sh=*) 1186 sharedstatedir=$ac_optarg ;; 1187 1188 -site | --site | --sit) 1189 ac_prev=site ;; 1190 -site=* | --site=* | --sit=*) 1191 site=$ac_optarg ;; 1192 1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1194 ac_prev=srcdir ;; 1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1196 srcdir=$ac_optarg ;; 1197 1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1199 | --syscon | --sysco | --sysc | --sys | --sy) 1200 ac_prev=sysconfdir ;; 1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1203 sysconfdir=$ac_optarg ;; 1204 1205 -target | --target | --targe | --targ | --tar | --ta | --t) 1206 ac_prev=target_alias ;; 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1208 target_alias=$ac_optarg ;; 1209 1210 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1211 verbose=yes ;; 1212 1213 -version | --version | --versio | --versi | --vers | -V) 1214 ac_init_version=: ;; 1215 1216 -with-* | --with-*) 1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1223 eval with_$ac_package=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1232 eval with_$ac_package=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) { echo "$as_me: error: unrecognized option: $ac_option 1253Try \`$0 --help' for more information." >&2 1254 { (exit 1); exit 1; }; } 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1262 { (exit 1); exit 1; }; } 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 { echo "$as_me: error: missing argument to $ac_option" >&2 1280 { (exit 1); exit 1; }; } 1281fi 1282 1283# Be sure to have absolute directory names. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1295 { (exit 1); exit 1; }; } 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1310 If a cross compiler is detected then cross compile mode will be used." >&2 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314fi 1315 1316ac_tool_prefix= 1317test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319test "$silent" = yes && exec 6>/dev/null 1320 1321 1322ac_pwd=`pwd` && test -n "$ac_pwd" && 1323ac_ls_di=`ls -di .` && 1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 { echo "$as_me: error: Working directory cannot be determined" >&2 1326 { (exit 1); exit 1; }; } 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 { echo "$as_me: error: pwd does not report name of working directory" >&2 1329 { (exit 1); exit 1; }; } 1330 1331 1332# Find the source files, if location was not specified. 1333if test -z "$srcdir"; then 1334 ac_srcdir_defaulted=yes 1335 # Try the directory containing this script, then the parent directory. 1336 ac_confdir=`$as_dirname -- "$0" || 1337$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1338 X"$0" : 'X\(//\)[^/]' \| \ 1339 X"$0" : 'X\(//\)$' \| \ 1340 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1341echo X"$0" | 1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)[^/].*/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\).*/{ 1355 s//\1/ 1356 q 1357 } 1358 s/.*/./; q'` 1359 srcdir=$ac_confdir 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 srcdir=.. 1362 fi 1363else 1364 ac_srcdir_defaulted=no 1365fi 1366if test ! -r "$srcdir/$ac_unique_file"; then 1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1369 { (exit 1); exit 1; }; } 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1374 { (exit 1); exit 1; }; } 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures libltdl 2.2.6 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of libltdl 2.2.6:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1477 --enable-shared[=PKGS] build shared libraries [default=yes] 1478 --enable-static[=PKGS] build static libraries [default=yes] 1479 --enable-fast-install[=PKGS] 1480 optimize for fast installation [default=yes] 1481 --disable-dependency-tracking speeds up one-time build 1482 --enable-dependency-tracking do not reject slow dependency extractors 1483 --disable-libtool-lock avoid locking (might break parallel builds) 1484 --enable-ltdl-install install libltdl 1485 1486Optional Packages: 1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1489 --with-pic try to use only PIC/non-PIC objects [default=use 1490 both] 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1492 1493Some influential environment variables: 1494 CC C compiler command 1495 CFLAGS C compiler flags 1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1497 nonstandard directory <lib dir> 1498 LIBS libraries to pass to the linker, e.g. -l<library> 1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1500 you have headers in a nonstandard directory <include dir> 1501 CPP C preprocessor 1502 1503Use these variables to override the choices made by `configure' or to help 1504it to find libraries and programs with nonstandard names/locations. 1505 1506Report bugs to <bug-libtool@gnu.org>. 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567libltdl configure 2.2.6 1568generated by GNU Autoconf 2.61 1569 1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577cat >config.log <<_ACEOF 1578This file contains any messages produced by compilers while 1579running configure, to aid debugging if configure makes a mistake. 1580 1581It was created by libltdl $as_me 2.2.6, which was 1582generated by GNU Autoconf 2.61. Invocation command line was 1583 1584 $ $0 $@ 1585 1586_ACEOF 1587exec 5>>config.log 1588{ 1589cat <<_ASUNAME 1590## --------- ## 1591## Platform. ## 1592## --------- ## 1593 1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1595uname -m = `(uname -m) 2>/dev/null || echo unknown` 1596uname -r = `(uname -r) 2>/dev/null || echo unknown` 1597uname -s = `(uname -s) 2>/dev/null || echo unknown` 1598uname -v = `(uname -v) 2>/dev/null || echo unknown` 1599 1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1601/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1602 1603/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1604/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1606/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1607/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1608/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1609/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1610 1611_ASUNAME 1612 1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1614for as_dir in $PATH 1615do 1616 IFS=$as_save_IFS 1617 test -z "$as_dir" && as_dir=. 1618 echo "PATH: $as_dir" 1619done 1620IFS=$as_save_IFS 1621 1622} >&5 1623 1624cat >&5 <<_ACEOF 1625 1626 1627## ----------- ## 1628## Core tests. ## 1629## ----------- ## 1630 1631_ACEOF 1632 1633 1634# Keep a trace of the command line. 1635# Strip out --no-create and --no-recursion so they do not pile up. 1636# Strip out --silent because we don't want to record it for future runs. 1637# Also quote any args containing shell meta-characters. 1638# Make two passes to allow for proper duplicate-argument suppression. 1639ac_configure_args= 1640ac_configure_args0= 1641ac_configure_args1= 1642ac_must_keep_next=false 1643for ac_pass in 1 2 1644do 1645 for ac_arg 1646 do 1647 case $ac_arg in 1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1650 | -silent | --silent | --silen | --sile | --sil) 1651 continue ;; 1652 *\'*) 1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 esac 1655 case $ac_pass in 1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1657 2) 1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1659 if test $ac_must_keep_next = true; then 1660 ac_must_keep_next=false # Got value, back to normal. 1661 else 1662 case $ac_arg in 1663 *=* | --config-cache | -C | -disable-* | --disable-* \ 1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1666 | -with-* | --with-* | -without-* | --without-* | --x) 1667 case "$ac_configure_args0 " in 1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1669 esac 1670 ;; 1671 -* ) ac_must_keep_next=true ;; 1672 esac 1673 fi 1674 ac_configure_args="$ac_configure_args '$ac_arg'" 1675 ;; 1676 esac 1677 done 1678done 1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1681 1682# When interrupted or exit'd, cleanup temporary files, and complete 1683# config.log. We remove comments because anyway the quotes in there 1684# would cause problems or look ugly. 1685# WARNING: Use '\'' to represent an apostrophe within the trap. 1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1687trap 'exit_status=$? 1688 # Save into config.log some information that might help in debugging. 1689 { 1690 echo 1691 1692 cat <<\_ASBOX 1693## ---------------- ## 1694## Cache variables. ## 1695## ---------------- ## 1696_ASBOX 1697 echo 1698 # The following way of writing the cache mishandles newlines in values, 1699( 1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1701 eval ac_val=\$$ac_var 1702 case $ac_val in #( 1703 *${as_nl}*) 1704 case $ac_var in #( 1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1707 esac 1708 case $ac_var in #( 1709 _ | IFS | as_nl) ;; #( 1710 *) $as_unset $ac_var ;; 1711 esac ;; 1712 esac 1713 done 1714 (set) 2>&1 | 1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1716 *${as_nl}ac_space=\ *) 1717 sed -n \ 1718 "s/'\''/'\''\\\\'\'''\''/g; 1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1720 ;; #( 1721 *) 1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1723 ;; 1724 esac | 1725 sort 1726) 1727 echo 1728 1729 cat <<\_ASBOX 1730## ----------------- ## 1731## Output variables. ## 1732## ----------------- ## 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_vars 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 1745 if test -n "$ac_subst_files"; then 1746 cat <<\_ASBOX 1747## ------------------- ## 1748## File substitutions. ## 1749## ------------------- ## 1750_ASBOX 1751 echo 1752 for ac_var in $ac_subst_files 1753 do 1754 eval ac_val=\$$ac_var 1755 case $ac_val in 1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1757 esac 1758 echo "$ac_var='\''$ac_val'\''" 1759 done | sort 1760 echo 1761 fi 1762 1763 if test -s confdefs.h; then 1764 cat <<\_ASBOX 1765## ----------- ## 1766## confdefs.h. ## 1767## ----------- ## 1768_ASBOX 1769 echo 1770 cat confdefs.h 1771 echo 1772 fi 1773 test "$ac_signal" != 0 && 1774 echo "$as_me: caught signal $ac_signal" 1775 echo "$as_me: exit $exit_status" 1776 } >&5 1777 rm -f core *.core core.conftest.* && 1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1779 exit $exit_status 1780' 0 1781for ac_signal in 1 2 13 15; do 1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1783done 1784ac_signal=0 1785 1786# confdefs.h avoids OS command line length limits that DEFS can exceed. 1787rm -f -r conftest* confdefs.h 1788 1789# Predefined preprocessor variables. 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_NAME "$PACKAGE_NAME" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_VERSION "$PACKAGE_VERSION" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_STRING "$PACKAGE_STRING" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1813_ACEOF 1814 1815 1816# Let the site file select an alternate cache file if it wants to. 1817# Prefer explicitly selected file to automatically selected ones. 1818if test -n "$CONFIG_SITE"; then 1819 set x "$CONFIG_SITE" 1820elif test "x$prefix" != xNONE; then 1821 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1822else 1823 set x "$ac_default_prefix/share/config.site" \ 1824 "$ac_default_prefix/etc/config.site" 1825fi 1826shift 1827for ac_site_file 1828do 1829 if test -r "$ac_site_file"; then 1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1831echo "$as_me: loading site script $ac_site_file" >&6;} 1832 sed 's/^/| /' "$ac_site_file" >&5 1833 . "$ac_site_file" 1834 fi 1835done 1836 1837if test -r "$cache_file"; then 1838 # Some versions of bash will fail to source /dev/null (special 1839 # files actually), so we avoid doing that. 1840 if test -f "$cache_file"; then 1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1842echo "$as_me: loading cache $cache_file" >&6;} 1843 case $cache_file in 1844 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1845 *) . "./$cache_file";; 1846 esac 1847 fi 1848else 1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1850echo "$as_me: creating cache $cache_file" >&6;} 1851 >$cache_file 1852fi 1853 1854# Check that the precious variables saved in the cache have kept the same 1855# value. 1856ac_cache_corrupted=false 1857for ac_var in $ac_precious_vars; do 1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1859 eval ac_new_set=\$ac_env_${ac_var}_set 1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1861 eval ac_new_val=\$ac_env_${ac_var}_value 1862 case $ac_old_set,$ac_new_set in 1863 set,) 1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,set) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,);; 1872 *) 1873 if test "x$ac_old_val" != "x$ac_new_val"; then 1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1877echo "$as_me: former value: $ac_old_val" >&2;} 1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1879echo "$as_me: current value: $ac_new_val" >&2;} 1880 ac_cache_corrupted=: 1881 fi;; 1882 esac 1883 # Pass precious variables to config.status. 1884 if test "$ac_new_set" = set; then 1885 case $ac_new_val in 1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1887 *) ac_arg=$ac_var=$ac_new_val ;; 1888 esac 1889 case " $ac_configure_args " in 1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1892 esac 1893 fi 1894done 1895if $ac_cache_corrupted; then 1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1897echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927ac_ext=c 1928ac_cpp='$CPP $CPPFLAGS' 1929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1931ac_compiler_gnu=$ac_cv_c_compiler_gnu 1932 1933 1934ac_config_headers="$ac_config_headers config.h:config-h.in" 1935 1936 1937ac_aux_dir= 1938for ac_dir in config "$srcdir"/config; do 1939 if test -f "$ac_dir/install-sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install-sh -c" 1942 break 1943 elif test -f "$ac_dir/install.sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install.sh -c" 1946 break 1947 elif test -f "$ac_dir/shtool"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/shtool install -c" 1950 break 1951 fi 1952done 1953if test -z "$ac_aux_dir"; then 1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1955echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1956 { (exit 1); exit 1; }; } 1957fi 1958 1959# These three variables are undocumented and unsupported, 1960# and are intended to be withdrawn in a future Autoconf release. 1961# They can cause serious problems if a builder's source tree is in a directory 1962# whose full name contains unusual characters. 1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1966 1967 1968 1969 1970 1971 1972 1973 1974 # I am me! 1975 1976 1977## ------------------------ ## 1978## Automake Initialisation. ## 1979## ------------------------ ## 1980 1981am__api_version='1.10' 1982 1983# Find a good install program. We prefer a C program (faster), 1984# so one script is as good as another. But avoid the broken or 1985# incompatible versions: 1986# SysV /etc/install, /usr/sbin/install 1987# SunOS /usr/etc/install 1988# IRIX /sbin/install 1989# AIX /bin/install 1990# AmigaOS /C/install, which installs bootblocks on floppy discs 1991# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1992# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1993# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1994# OS/2's system install, which has a completely different semantic 1995# ./install, which can be erroneously created by make from ./install.sh. 1996{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1997echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1998if test -z "$INSTALL"; then 1999if test "${ac_cv_path_install+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2003for as_dir in $PATH 2004do 2005 IFS=$as_save_IFS 2006 test -z "$as_dir" && as_dir=. 2007 # Account for people who put trailing slashes in PATH elements. 2008case $as_dir/ in 2009 ./ | .// | /cC/* | \ 2010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2012 /usr/ucb/* ) ;; 2013 *) 2014 # OSF1 and SCO ODT 3.0 have their own names for install. 2015 # Don't use installbsd from OSF since it installs stuff as root 2016 # by default. 2017 for ac_prog in ginstall scoinst install; do 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2020 if test $ac_prog = install && 2021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2022 # AIX install. It has an incompatible calling convention. 2023 : 2024 elif test $ac_prog = install && 2025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2026 # program-specific install script used by HP pwplus--don't use. 2027 : 2028 else 2029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2030 break 3 2031 fi 2032 fi 2033 done 2034 done 2035 ;; 2036esac 2037done 2038IFS=$as_save_IFS 2039 2040 2041fi 2042 if test "${ac_cv_path_install+set}" = set; then 2043 INSTALL=$ac_cv_path_install 2044 else 2045 # As a last resort, use the slow shell script. Don't cache a 2046 # value for INSTALL within a source directory, because that will 2047 # break other packages using the cache if that directory is 2048 # removed, or if the value is a relative name. 2049 INSTALL=$ac_install_sh 2050 fi 2051fi 2052{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2053echo "${ECHO_T}$INSTALL" >&6; } 2054 2055# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2056# It thinks the first close brace ends the variable substitution. 2057test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2058 2059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2060 2061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2062 2063{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2064echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2065# Just in case 2066sleep 1 2067echo timestamp > conftest.file 2068# Do `set' in a subshell so we don't clobber the current shell's 2069# arguments. Must try -L first in case configure is actually a 2070# symlink; some systems play weird games with the mod time of symlinks 2071# (eg FreeBSD returns the mod time of the symlink's containing 2072# directory). 2073if ( 2074 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2075 if test "$*" = "X"; then 2076 # -L didn't work. 2077 set X `ls -t $srcdir/configure conftest.file` 2078 fi 2079 rm -f conftest.file 2080 if test "$*" != "X $srcdir/configure conftest.file" \ 2081 && test "$*" != "X conftest.file $srcdir/configure"; then 2082 2083 # If neither matched, then we have a broken ls. This can happen 2084 # if, for instance, CONFIG_SHELL is bash and it inherits a 2085 # broken ls alias from the environment. This has actually 2086 # happened. Such a system could not be considered "sane". 2087 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2088alias in your environment" >&5 2089echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2090alias in your environment" >&2;} 2091 { (exit 1); exit 1; }; } 2092 fi 2093 2094 test "$2" = conftest.file 2095 ) 2096then 2097 # Ok. 2098 : 2099else 2100 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2101Check your system clock" >&5 2102echo "$as_me: error: newly created file is older than distributed files! 2103Check your system clock" >&2;} 2104 { (exit 1); exit 1; }; } 2105fi 2106{ echo "$as_me:$LINENO: result: yes" >&5 2107echo "${ECHO_T}yes" >&6; } 2108test "$program_prefix" != NONE && 2109 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2110# Use a double $ so make ignores it. 2111test "$program_suffix" != NONE && 2112 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2113# Double any \ or $. echo might interpret backslashes. 2114# By default was `s,x,x', remove it if useless. 2115cat <<\_ACEOF >conftest.sed 2116s/[\\$]/&&/g;s/;s,x,x,$// 2117_ACEOF 2118program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2119rm -f conftest.sed 2120 2121# expand $ac_aux_dir to an absolute path 2122am_aux_dir=`cd $ac_aux_dir && pwd` 2123 2124test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2125# Use eval to expand $SHELL 2126if eval "$MISSING --run true"; then 2127 am_missing_run="$MISSING --run " 2128else 2129 am_missing_run= 2130 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2131echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2132fi 2133 2134{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2135echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2136if test -z "$MKDIR_P"; then 2137 if test "${ac_cv_path_mkdir+set}" = set; then 2138 echo $ECHO_N "(cached) $ECHO_C" >&6 2139else 2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2142do 2143 IFS=$as_save_IFS 2144 test -z "$as_dir" && as_dir=. 2145 for ac_prog in mkdir gmkdir; do 2146 for ac_exec_ext in '' $ac_executable_extensions; do 2147 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2149 'mkdir (GNU coreutils) '* | \ 2150 'mkdir (coreutils) '* | \ 2151 'mkdir (fileutils) '4.1*) 2152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2153 break 3;; 2154 esac 2155 done 2156 done 2157done 2158IFS=$as_save_IFS 2159 2160fi 2161 2162 if test "${ac_cv_path_mkdir+set}" = set; then 2163 MKDIR_P="$ac_cv_path_mkdir -p" 2164 else 2165 # As a last resort, use the slow shell script. Don't cache a 2166 # value for MKDIR_P within a source directory, because that will 2167 # break other packages using the cache if that directory is 2168 # removed, or if the value is a relative name. 2169 test -d ./--version && rmdir ./--version 2170 MKDIR_P="$ac_install_sh -d" 2171 fi 2172fi 2173{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2174echo "${ECHO_T}$MKDIR_P" >&6; } 2175 2176mkdir_p="$MKDIR_P" 2177case $mkdir_p in 2178 [\\/$]* | ?:[\\/]*) ;; 2179 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2180esac 2181 2182for ac_prog in gawk mawk nawk awk 2183do 2184 # Extract the first word of "$ac_prog", so it can be a program name with args. 2185set dummy $ac_prog; ac_word=$2 2186{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2188if test "${ac_cv_prog_AWK+set}" = set; then 2189 echo $ECHO_N "(cached) $ECHO_C" >&6 2190else 2191 if test -n "$AWK"; then 2192 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2193else 2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2195for as_dir in $PATH 2196do 2197 IFS=$as_save_IFS 2198 test -z "$as_dir" && as_dir=. 2199 for ac_exec_ext in '' $ac_executable_extensions; do 2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2201 ac_cv_prog_AWK="$ac_prog" 2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2203 break 2 2204 fi 2205done 2206done 2207IFS=$as_save_IFS 2208 2209fi 2210fi 2211AWK=$ac_cv_prog_AWK 2212if test -n "$AWK"; then 2213 { echo "$as_me:$LINENO: result: $AWK" >&5 2214echo "${ECHO_T}$AWK" >&6; } 2215else 2216 { echo "$as_me:$LINENO: result: no" >&5 2217echo "${ECHO_T}no" >&6; } 2218fi 2219 2220 2221 test -n "$AWK" && break 2222done 2223 2224{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2225echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2226set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2227if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 cat >conftest.make <<\_ACEOF 2231SHELL = /bin/sh 2232all: 2233 @echo '@@@%%%=$(MAKE)=@@@%%%' 2234_ACEOF 2235# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2236case `${MAKE-make} -f conftest.make 2>/dev/null` in 2237 *@@@%%%=?*=@@@%%%*) 2238 eval ac_cv_prog_make_${ac_make}_set=yes;; 2239 *) 2240 eval ac_cv_prog_make_${ac_make}_set=no;; 2241esac 2242rm -f conftest.make 2243fi 2244if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2245 { echo "$as_me:$LINENO: result: yes" >&5 2246echo "${ECHO_T}yes" >&6; } 2247 SET_MAKE= 2248else 2249 { echo "$as_me:$LINENO: result: no" >&5 2250echo "${ECHO_T}no" >&6; } 2251 SET_MAKE="MAKE=${MAKE-make}" 2252fi 2253 2254rm -rf .tst 2>/dev/null 2255mkdir .tst 2>/dev/null 2256if test -d .tst; then 2257 am__leading_dot=. 2258else 2259 am__leading_dot=_ 2260fi 2261rmdir .tst 2>/dev/null 2262 2263if test "`cd $srcdir && pwd`" != "`pwd`"; then 2264 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2265 # is not polluted with repeated "-I." 2266 am__isrc=' -I$(srcdir)' 2267 # test to see if srcdir already configured 2268 if test -f $srcdir/config.status; then 2269 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2270echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2271 { (exit 1); exit 1; }; } 2272 fi 2273fi 2274 2275# test whether we have cygpath 2276if test -z "$CYGPATH_W"; then 2277 if (cygpath --version) >/dev/null 2>/dev/null; then 2278 CYGPATH_W='cygpath -w' 2279 else 2280 CYGPATH_W=echo 2281 fi 2282fi 2283 2284 2285# Define the identity of the package. 2286 PACKAGE='libltdl' 2287 VERSION='2.2.6' 2288 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE "$PACKAGE" 2292_ACEOF 2293 2294 2295cat >>confdefs.h <<_ACEOF 2296#define VERSION "$VERSION" 2297_ACEOF 2298 2299# Some tools Automake needs. 2300 2301ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2302 2303 2304AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2305 2306 2307AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2308 2309 2310AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2311 2312 2313MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2314 2315install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2316 2317# Installed binaries are usually stripped using `strip' when the user 2318# run `make install-strip'. However `strip' might not be the right 2319# tool to use in cross-compilation environments, therefore Automake 2320# will honor the `STRIP' environment variable to overrule this program. 2321if test "$cross_compiling" != no; then 2322 if test -n "$ac_tool_prefix"; then 2323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2324set dummy ${ac_tool_prefix}strip; ac_word=$2 2325{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2327if test "${ac_cv_prog_STRIP+set}" = set; then 2328 echo $ECHO_N "(cached) $ECHO_C" >&6 2329else 2330 if test -n "$STRIP"; then 2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2332else 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334for as_dir in $PATH 2335do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2340 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2342 break 2 2343 fi 2344done 2345done 2346IFS=$as_save_IFS 2347 2348fi 2349fi 2350STRIP=$ac_cv_prog_STRIP 2351if test -n "$STRIP"; then 2352 { echo "$as_me:$LINENO: result: $STRIP" >&5 2353echo "${ECHO_T}$STRIP" >&6; } 2354else 2355 { echo "$as_me:$LINENO: result: no" >&5 2356echo "${ECHO_T}no" >&6; } 2357fi 2358 2359 2360fi 2361if test -z "$ac_cv_prog_STRIP"; then 2362 ac_ct_STRIP=$STRIP 2363 # Extract the first word of "strip", so it can be a program name with args. 2364set dummy strip; ac_word=$2 2365{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2367if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 if test -n "$ac_ct_STRIP"; then 2371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2372else 2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2374for as_dir in $PATH 2375do 2376 IFS=$as_save_IFS 2377 test -z "$as_dir" && as_dir=. 2378 for ac_exec_ext in '' $ac_executable_extensions; do 2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2380 ac_cv_prog_ac_ct_STRIP="strip" 2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2382 break 2 2383 fi 2384done 2385done 2386IFS=$as_save_IFS 2387 2388fi 2389fi 2390ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2391if test -n "$ac_ct_STRIP"; then 2392 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2393echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2394else 2395 { echo "$as_me:$LINENO: result: no" >&5 2396echo "${ECHO_T}no" >&6; } 2397fi 2398 2399 if test "x$ac_ct_STRIP" = x; then 2400 STRIP=":" 2401 else 2402 case $cross_compiling:$ac_tool_warned in 2403yes:) 2404{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2405whose name does not start with the host triplet. If you think this 2406configuration is useful to you, please write to autoconf@gnu.org." >&5 2407echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2408whose name does not start with the host triplet. If you think this 2409configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 STRIP=$ac_ct_STRIP 2413 fi 2414else 2415 STRIP="$ac_cv_prog_STRIP" 2416fi 2417 2418fi 2419INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2420 2421# We need awk for the "check" target. The system "awk" is bad on 2422# some platforms. 2423# Always define AMTAR for backward compatibility. 2424 2425AMTAR=${AMTAR-"${am_missing_run}tar"} 2426 2427am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2428 2429 2430 2431 2432 2433 2434 2435## ------------------------------- ## 2436## Libtool specific configuration. ## 2437## ------------------------------- ## 2438pkgdatadir='${datadir}'"/${PACKAGE}" 2439 2440 2441## ----------------------- ## 2442## Libtool initialisation. ## 2443## ----------------------- ## 2444case `pwd` in 2445 *\ * | *\ *) 2446 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2447echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2448esac 2449 2450 2451 2452macro_version='2.2.6' 2453macro_revision='1.3012' 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467ltmain="$ac_aux_dir/ltmain.sh" 2468 2469# Make sure we can run config.sub. 2470$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2471 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2472echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2473 { (exit 1); exit 1; }; } 2474 2475{ echo "$as_me:$LINENO: checking build system type" >&5 2476echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2477if test "${ac_cv_build+set}" = set; then 2478 echo $ECHO_N "(cached) $ECHO_C" >&6 2479else 2480 ac_build_alias=$build_alias 2481test "x$ac_build_alias" = x && 2482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2483test "x$ac_build_alias" = x && 2484 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2485echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2486 { (exit 1); exit 1; }; } 2487ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2488 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2489echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2490 { (exit 1); exit 1; }; } 2491 2492fi 2493{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2494echo "${ECHO_T}$ac_cv_build" >&6; } 2495case $ac_cv_build in 2496*-*-*) ;; 2497*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2498echo "$as_me: error: invalid value of canonical build" >&2;} 2499 { (exit 1); exit 1; }; };; 2500esac 2501build=$ac_cv_build 2502ac_save_IFS=$IFS; IFS='-' 2503set x $ac_cv_build 2504shift 2505build_cpu=$1 2506build_vendor=$2 2507shift; shift 2508# Remember, the first character of IFS is used to create $*, 2509# except with old shells: 2510build_os=$* 2511IFS=$ac_save_IFS 2512case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2513 2514 2515{ echo "$as_me:$LINENO: checking host system type" >&5 2516echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2517if test "${ac_cv_host+set}" = set; then 2518 echo $ECHO_N "(cached) $ECHO_C" >&6 2519else 2520 if test "x$host_alias" = x; then 2521 ac_cv_host=$ac_cv_build 2522else 2523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2524 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2525echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2526 { (exit 1); exit 1; }; } 2527fi 2528 2529fi 2530{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2531echo "${ECHO_T}$ac_cv_host" >&6; } 2532case $ac_cv_host in 2533*-*-*) ;; 2534*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2535echo "$as_me: error: invalid value of canonical host" >&2;} 2536 { (exit 1); exit 1; }; };; 2537esac 2538host=$ac_cv_host 2539ac_save_IFS=$IFS; IFS='-' 2540set x $ac_cv_host 2541shift 2542host_cpu=$1 2543host_vendor=$2 2544shift; shift 2545# Remember, the first character of IFS is used to create $*, 2546# except with old shells: 2547host_os=$* 2548IFS=$ac_save_IFS 2549case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2550 2551 2552DEPDIR="${am__leading_dot}deps" 2553 2554ac_config_commands="$ac_config_commands depfiles" 2555 2556 2557am_make=${MAKE-make} 2558cat > confinc << 'END' 2559am__doit: 2560 @echo done 2561.PHONY: am__doit 2562END 2563# If we don't find an include directive, just comment out the code. 2564{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2565echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2566am__include="#" 2567am__quote= 2568_am_result=none 2569# First try GNU make style include. 2570echo "include confinc" > confmf 2571# We grep out `Entering directory' and `Leaving directory' 2572# messages which can occur if `w' ends up in MAKEFLAGS. 2573# In particular we don't look at `^make:' because GNU make might 2574# be invoked under some other name (usually "gmake"), in which 2575# case it prints its new name instead of `make'. 2576if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2577 am__include=include 2578 am__quote= 2579 _am_result=GNU 2580fi 2581# Now try BSD make style include. 2582if test "$am__include" = "#"; then 2583 echo '.include "confinc"' > confmf 2584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2585 am__include=.include 2586 am__quote="\"" 2587 _am_result=BSD 2588 fi 2589fi 2590 2591 2592{ echo "$as_me:$LINENO: result: $_am_result" >&5 2593echo "${ECHO_T}$_am_result" >&6; } 2594rm -f confinc confmf 2595 2596# Check whether --enable-dependency-tracking was given. 2597if test "${enable_dependency_tracking+set}" = set; then 2598 enableval=$enable_dependency_tracking; 2599fi 2600 2601if test "x$enable_dependency_tracking" != xno; then 2602 am_depcomp="$ac_aux_dir/depcomp" 2603 AMDEPBACKSLASH='\' 2604fi 2605 if test "x$enable_dependency_tracking" != xno; then 2606 AMDEP_TRUE= 2607 AMDEP_FALSE='#' 2608else 2609 AMDEP_TRUE='#' 2610 AMDEP_FALSE= 2611fi 2612 2613 2614ac_ext=c 2615ac_cpp='$CPP $CPPFLAGS' 2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2618ac_compiler_gnu=$ac_cv_c_compiler_gnu 2619if test -n "$ac_tool_prefix"; then 2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2621set dummy ${ac_tool_prefix}gcc; ac_word=$2 2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2624if test "${ac_cv_prog_CC+set}" = set; then 2625 echo $ECHO_N "(cached) $ECHO_C" >&6 2626else 2627 if test -n "$CC"; then 2628 ac_cv_prog_CC="$CC" # Let the user override the test. 2629else 2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2637 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642done 2643IFS=$as_save_IFS 2644 2645fi 2646fi 2647CC=$ac_cv_prog_CC 2648if test -n "$CC"; then 2649 { echo "$as_me:$LINENO: result: $CC" >&5 2650echo "${ECHO_T}$CC" >&6; } 2651else 2652 { echo "$as_me:$LINENO: result: no" >&5 2653echo "${ECHO_T}no" >&6; } 2654fi 2655 2656 2657fi 2658if test -z "$ac_cv_prog_CC"; then 2659 ac_ct_CC=$CC 2660 # Extract the first word of "gcc", so it can be a program name with args. 2661set dummy gcc; ac_word=$2 2662{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2665 echo $ECHO_N "(cached) $ECHO_C" >&6 2666else 2667 if test -n "$ac_ct_CC"; then 2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2669else 2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2671for as_dir in $PATH 2672do 2673 IFS=$as_save_IFS 2674 test -z "$as_dir" && as_dir=. 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2677 ac_cv_prog_ac_ct_CC="gcc" 2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2679 break 2 2680 fi 2681done 2682done 2683IFS=$as_save_IFS 2684 2685fi 2686fi 2687ac_ct_CC=$ac_cv_prog_ac_ct_CC 2688if test -n "$ac_ct_CC"; then 2689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2690echo "${ECHO_T}$ac_ct_CC" >&6; } 2691else 2692 { echo "$as_me:$LINENO: result: no" >&5 2693echo "${ECHO_T}no" >&6; } 2694fi 2695 2696 if test "x$ac_ct_CC" = x; then 2697 CC="" 2698 else 2699 case $cross_compiling:$ac_tool_warned in 2700yes:) 2701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2702whose name does not start with the host triplet. If you think this 2703configuration is useful to you, please write to autoconf@gnu.org." >&5 2704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2705whose name does not start with the host triplet. If you think this 2706configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2707ac_tool_warned=yes ;; 2708esac 2709 CC=$ac_ct_CC 2710 fi 2711else 2712 CC="$ac_cv_prog_CC" 2713fi 2714 2715if test -z "$CC"; then 2716 if test -n "$ac_tool_prefix"; then 2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2718set dummy ${ac_tool_prefix}cc; ac_word=$2 2719{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2721if test "${ac_cv_prog_CC+set}" = set; then 2722 echo $ECHO_N "(cached) $ECHO_C" >&6 2723else 2724 if test -n "$CC"; then 2725 ac_cv_prog_CC="$CC" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2734 ac_cv_prog_CC="${ac_tool_prefix}cc" 2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744CC=$ac_cv_prog_CC 2745if test -n "$CC"; then 2746 { echo "$as_me:$LINENO: result: $CC" >&5 2747echo "${ECHO_T}$CC" >&6; } 2748else 2749 { echo "$as_me:$LINENO: result: no" >&5 2750echo "${ECHO_T}no" >&6; } 2751fi 2752 2753 2754 fi 2755fi 2756if test -z "$CC"; then 2757 # Extract the first word of "cc", so it can be a program name with args. 2758set dummy cc; ac_word=$2 2759{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2761if test "${ac_cv_prog_CC+set}" = set; then 2762 echo $ECHO_N "(cached) $ECHO_C" >&6 2763else 2764 if test -n "$CC"; then 2765 ac_cv_prog_CC="$CC" # Let the user override the test. 2766else 2767 ac_prog_rejected=no 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2776 ac_prog_rejected=yes 2777 continue 2778 fi 2779 ac_cv_prog_CC="cc" 2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2781 break 2 2782 fi 2783done 2784done 2785IFS=$as_save_IFS 2786 2787if test $ac_prog_rejected = yes; then 2788 # We found a bogon in the path, so make sure we never use it. 2789 set dummy $ac_cv_prog_CC 2790 shift 2791 if test $# != 0; then 2792 # We chose a different compiler from the bogus one. 2793 # However, it has the same basename, so the bogon will be chosen 2794 # first if we set CC to just the basename; use the full file name. 2795 shift 2796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2797 fi 2798fi 2799fi 2800fi 2801CC=$ac_cv_prog_CC 2802if test -n "$CC"; then 2803 { echo "$as_me:$LINENO: result: $CC" >&5 2804echo "${ECHO_T}$CC" >&6; } 2805else 2806 { echo "$as_me:$LINENO: result: no" >&5 2807echo "${ECHO_T}no" >&6; } 2808fi 2809 2810 2811fi 2812if test -z "$CC"; then 2813 if test -n "$ac_tool_prefix"; then 2814 for ac_prog in cl.exe 2815 do 2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2817set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2818{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2820if test "${ac_cv_prog_CC+set}" = set; then 2821 echo $ECHO_N "(cached) $ECHO_C" >&6 2822else 2823 if test -n "$CC"; then 2824 ac_cv_prog_CC="$CC" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 test -z "$as_dir" && as_dir=. 2831 for ac_exec_ext in '' $ac_executable_extensions; do 2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2835 break 2 2836 fi 2837done 2838done 2839IFS=$as_save_IFS 2840 2841fi 2842fi 2843CC=$ac_cv_prog_CC 2844if test -n "$CC"; then 2845 { echo "$as_me:$LINENO: result: $CC" >&5 2846echo "${ECHO_T}$CC" >&6; } 2847else 2848 { echo "$as_me:$LINENO: result: no" >&5 2849echo "${ECHO_T}no" >&6; } 2850fi 2851 2852 2853 test -n "$CC" && break 2854 done 2855fi 2856if test -z "$CC"; then 2857 ac_ct_CC=$CC 2858 for ac_prog in cl.exe 2859do 2860 # Extract the first word of "$ac_prog", so it can be a program name with args. 2861set dummy $ac_prog; ac_word=$2 2862{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2865 echo $ECHO_N "(cached) $ECHO_C" >&6 2866else 2867 if test -n "$ac_ct_CC"; then 2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 test -z "$as_dir" && as_dir=. 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2877 ac_cv_prog_ac_ct_CC="$ac_prog" 2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2879 break 2 2880 fi 2881done 2882done 2883IFS=$as_save_IFS 2884 2885fi 2886fi 2887ac_ct_CC=$ac_cv_prog_ac_ct_CC 2888if test -n "$ac_ct_CC"; then 2889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2890echo "${ECHO_T}$ac_ct_CC" >&6; } 2891else 2892 { echo "$as_me:$LINENO: result: no" >&5 2893echo "${ECHO_T}no" >&6; } 2894fi 2895 2896 2897 test -n "$ac_ct_CC" && break 2898done 2899 2900 if test "x$ac_ct_CC" = x; then 2901 CC="" 2902 else 2903 case $cross_compiling:$ac_tool_warned in 2904yes:) 2905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2906whose name does not start with the host triplet. If you think this 2907configuration is useful to you, please write to autoconf@gnu.org." >&5 2908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2909whose name does not start with the host triplet. If you think this 2910configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2911ac_tool_warned=yes ;; 2912esac 2913 CC=$ac_ct_CC 2914 fi 2915fi 2916 2917fi 2918 2919 2920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2921See \`config.log' for more details." >&5 2922echo "$as_me: error: no acceptable C compiler found in \$PATH 2923See \`config.log' for more details." >&2;} 2924 { (exit 1); exit 1; }; } 2925 2926# Provide some information about the compiler. 2927echo "$as_me:$LINENO: checking for C compiler version" >&5 2928ac_compiler=`set X $ac_compile; echo $2` 2929{ (ac_try="$ac_compiler --version >&5" 2930case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933esac 2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2935 (eval "$ac_compiler --version >&5") 2>&5 2936 ac_status=$? 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } 2939{ (ac_try="$ac_compiler -v >&5" 2940case "(($ac_try" in 2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2942 *) ac_try_echo=$ac_try;; 2943esac 2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2945 (eval "$ac_compiler -v >&5") 2>&5 2946 ac_status=$? 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } 2949{ (ac_try="$ac_compiler -V >&5" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2955 (eval "$ac_compiler -V >&5") 2>&5 2956 ac_status=$? 2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); } 2959 2960cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966 2967int 2968main () 2969{ 2970 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975ac_clean_files_save=$ac_clean_files 2976ac_clean_files="$ac_clean_files a.out a.exe b.out" 2977# Try to create an executable without -o first, disregard a.out. 2978# It will help us diagnose broken compilers, and finding out an intuition 2979# of exeext. 2980{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2981echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2982ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2983# 2984# List of possible output files, starting from the most likely. 2985# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2986# only as a last resort. b.out is created by i960 compilers. 2987ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2988# 2989# The IRIX 6 linker writes into existing files which may not be 2990# executable, retaining their permissions. Remove them first so a 2991# subsequent execution test works. 2992ac_rmfiles= 2993for ac_file in $ac_files 2994do 2995 case $ac_file in 2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2998 esac 2999done 3000rm -f $ac_rmfiles 3001 3002if { (ac_try="$ac_link_default" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3008 (eval "$ac_link_default") 2>&5 3009 ac_status=$? 3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3011 (exit $ac_status); }; then 3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3013# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3014# in a Makefile. We should not override ac_cv_exeext if it was cached, 3015# so that the user can short-circuit this test for compilers unknown to 3016# Autoconf. 3017for ac_file in $ac_files '' 3018do 3019 test -f "$ac_file" || continue 3020 case $ac_file in 3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3022 ;; 3023 [ab].out ) 3024 # We found the default executable, but exeext='' is most 3025 # certainly right. 3026 break;; 3027 *.* ) 3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3029 then :; else 3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3031 fi 3032 # We set ac_cv_exeext here because the later test for it is not 3033 # safe: cross compilers may not add the suffix if given an `-o' 3034 # argument, so we may need to know it at that point already. 3035 # Even if this section looks crufty: it has the advantage of 3036 # actually working. 3037 break;; 3038 * ) 3039 break;; 3040 esac 3041done 3042test "$ac_cv_exeext" = no && ac_cv_exeext= 3043 3044else 3045 ac_file='' 3046fi 3047 3048{ echo "$as_me:$LINENO: result: $ac_file" >&5 3049echo "${ECHO_T}$ac_file" >&6; } 3050if test -z "$ac_file"; then 3051 echo "$as_me: failed program was:" >&5 3052sed 's/^/| /' conftest.$ac_ext >&5 3053 3054{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3055See \`config.log' for more details." >&5 3056echo "$as_me: error: C compiler cannot create executables 3057See \`config.log' for more details." >&2;} 3058 { (exit 77); exit 77; }; } 3059fi 3060 3061ac_exeext=$ac_cv_exeext 3062 3063# Check that the compiler produces executables we can run. If not, either 3064# the compiler is broken, or we cross compile. 3065{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3066echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3067# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3068# If not cross compiling, check that we can run a simple program. 3069if test "$cross_compiling" != yes; then 3070 if { ac_try='./$ac_file' 3071 { (case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_try") 2>&5 3077 ac_status=$? 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; }; then 3080 cross_compiling=no 3081 else 3082 if test "$cross_compiling" = maybe; then 3083 cross_compiling=yes 3084 else 3085 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3086If you meant to cross compile, use \`--host'. 3087See \`config.log' for more details." >&5 3088echo "$as_me: error: cannot run C compiled programs. 3089If you meant to cross compile, use \`--host'. 3090See \`config.log' for more details." >&2;} 3091 { (exit 1); exit 1; }; } 3092 fi 3093 fi 3094fi 3095{ echo "$as_me:$LINENO: result: yes" >&5 3096echo "${ECHO_T}yes" >&6; } 3097 3098rm -f a.out a.exe conftest$ac_cv_exeext b.out 3099ac_clean_files=$ac_clean_files_save 3100# Check that the compiler produces executables we can run. If not, either 3101# the compiler is broken, or we cross compile. 3102{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3103echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3104{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3105echo "${ECHO_T}$cross_compiling" >&6; } 3106 3107{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3108echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3109if { (ac_try="$ac_link" 3110case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3115 (eval "$ac_link") 2>&5 3116 ac_status=$? 3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); }; then 3119 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3121# work properly (i.e., refer to `conftest.exe'), while it won't with 3122# `rm'. 3123for ac_file in conftest.exe conftest conftest.*; do 3124 test -f "$ac_file" || continue 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3128 break;; 3129 * ) break;; 3130 esac 3131done 3132else 3133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3134See \`config.log' for more details." >&5 3135echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3136See \`config.log' for more details." >&2;} 3137 { (exit 1); exit 1; }; } 3138fi 3139 3140rm -f conftest$ac_cv_exeext 3141{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3142echo "${ECHO_T}$ac_cv_exeext" >&6; } 3143 3144rm -f conftest.$ac_ext 3145EXEEXT=$ac_cv_exeext 3146ac_exeext=$EXEEXT 3147{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3148echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3149if test "${ac_cv_objext+set}" = set; then 3150 echo $ECHO_N "(cached) $ECHO_C" >&6 3151else 3152 cat >conftest.$ac_ext <<_ACEOF 3153/* confdefs.h. */ 3154_ACEOF 3155cat confdefs.h >>conftest.$ac_ext 3156cat >>conftest.$ac_ext <<_ACEOF 3157/* end confdefs.h. */ 3158 3159int 3160main () 3161{ 3162 3163 ; 3164 return 0; 3165} 3166_ACEOF 3167rm -f conftest.o conftest.obj 3168if { (ac_try="$ac_compile" 3169case "(($ac_try" in 3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3171 *) ac_try_echo=$ac_try;; 3172esac 3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3174 (eval "$ac_compile") 2>&5 3175 ac_status=$? 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); }; then 3178 for ac_file in conftest.o conftest.obj conftest.*; do 3179 test -f "$ac_file" || continue; 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3183 break;; 3184 esac 3185done 3186else 3187 echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3191See \`config.log' for more details." >&5 3192echo "$as_me: error: cannot compute suffix of object files: cannot compile 3193See \`config.log' for more details." >&2;} 3194 { (exit 1); exit 1; }; } 3195fi 3196 3197rm -f conftest.$ac_cv_objext conftest.$ac_ext 3198fi 3199{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3200echo "${ECHO_T}$ac_cv_objext" >&6; } 3201OBJEXT=$ac_cv_objext 3202ac_objext=$OBJEXT 3203{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3204echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3205if test "${ac_cv_c_compiler_gnu+set}" = set; then 3206 echo $ECHO_N "(cached) $ECHO_C" >&6 3207else 3208 cat >conftest.$ac_ext <<_ACEOF 3209/* confdefs.h. */ 3210_ACEOF 3211cat confdefs.h >>conftest.$ac_ext 3212cat >>conftest.$ac_ext <<_ACEOF 3213/* end confdefs.h. */ 3214 3215int 3216main () 3217{ 3218#ifndef __GNUC__ 3219 choke me 3220#endif 3221 3222 ; 3223 return 0; 3224} 3225_ACEOF 3226rm -f conftest.$ac_objext 3227if { (ac_try="$ac_compile" 3228case "(($ac_try" in 3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230 *) ac_try_echo=$ac_try;; 3231esac 3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3233 (eval "$ac_compile") 2>conftest.er1 3234 ac_status=$? 3235 grep -v '^ *+' conftest.er1 >conftest.err 3236 rm -f conftest.er1 3237 cat conftest.err >&5 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); } && { 3240 test -z "$ac_c_werror_flag" || 3241 test ! -s conftest.err 3242 } && test -s conftest.$ac_objext; then 3243 ac_compiler_gnu=yes 3244else 3245 echo "$as_me: failed program was:" >&5 3246sed 's/^/| /' conftest.$ac_ext >&5 3247 3248 ac_compiler_gnu=no 3249fi 3250 3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252ac_cv_c_compiler_gnu=$ac_compiler_gnu 3253 3254fi 3255{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3256echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3257GCC=`test $ac_compiler_gnu = yes && echo yes` 3258ac_test_CFLAGS=${CFLAGS+set} 3259ac_save_CFLAGS=$CFLAGS 3260{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3261echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3262if test "${ac_cv_prog_cc_g+set}" = set; then 3263 echo $ECHO_N "(cached) $ECHO_C" >&6 3264else 3265 ac_save_c_werror_flag=$ac_c_werror_flag 3266 ac_c_werror_flag=yes 3267 ac_cv_prog_cc_g=no 3268 CFLAGS="-g" 3269 cat >conftest.$ac_ext <<_ACEOF 3270/* confdefs.h. */ 3271_ACEOF 3272cat confdefs.h >>conftest.$ac_ext 3273cat >>conftest.$ac_ext <<_ACEOF 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284rm -f conftest.$ac_objext 3285if { (ac_try="$ac_compile" 3286case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3291 (eval "$ac_compile") 2>conftest.er1 3292 ac_status=$? 3293 grep -v '^ *+' conftest.er1 >conftest.err 3294 rm -f conftest.er1 3295 cat conftest.err >&5 3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } && { 3298 test -z "$ac_c_werror_flag" || 3299 test ! -s conftest.err 3300 } && test -s conftest.$ac_objext; then 3301 ac_cv_prog_cc_g=yes 3302else 3303 echo "$as_me: failed program was:" >&5 3304sed 's/^/| /' conftest.$ac_ext >&5 3305 3306 CFLAGS="" 3307 cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322rm -f conftest.$ac_objext 3323if { (ac_try="$ac_compile" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3329 (eval "$ac_compile") 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } && { 3336 test -z "$ac_c_werror_flag" || 3337 test ! -s conftest.err 3338 } && test -s conftest.$ac_objext; then 3339 : 3340else 3341 echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344 ac_c_werror_flag=$ac_save_c_werror_flag 3345 CFLAGS="-g" 3346 cat >conftest.$ac_ext <<_ACEOF 3347/* confdefs.h. */ 3348_ACEOF 3349cat confdefs.h >>conftest.$ac_ext 3350cat >>conftest.$ac_ext <<_ACEOF 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356 3357 ; 3358 return 0; 3359} 3360_ACEOF 3361rm -f conftest.$ac_objext 3362if { (ac_try="$ac_compile" 3363case "(($ac_try" in 3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3365 *) ac_try_echo=$ac_try;; 3366esac 3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3368 (eval "$ac_compile") 2>conftest.er1 3369 ac_status=$? 3370 grep -v '^ *+' conftest.er1 >conftest.err 3371 rm -f conftest.er1 3372 cat conftest.err >&5 3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3374 (exit $ac_status); } && { 3375 test -z "$ac_c_werror_flag" || 3376 test ! -s conftest.err 3377 } && test -s conftest.$ac_objext; then 3378 ac_cv_prog_cc_g=yes 3379else 3380 echo "$as_me: failed program was:" >&5 3381sed 's/^/| /' conftest.$ac_ext >&5 3382 3383 3384fi 3385 3386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3387fi 3388 3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3390fi 3391 3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3393 ac_c_werror_flag=$ac_save_c_werror_flag 3394fi 3395{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3396echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3397if test "$ac_test_CFLAGS" = set; then 3398 CFLAGS=$ac_save_CFLAGS 3399elif test $ac_cv_prog_cc_g = yes; then 3400 if test "$GCC" = yes; then 3401 CFLAGS="-g -O2" 3402 else 3403 CFLAGS="-g" 3404 fi 3405else 3406 if test "$GCC" = yes; then 3407 CFLAGS="-O2" 3408 else 3409 CFLAGS= 3410 fi 3411fi 3412{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3413echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3414if test "${ac_cv_prog_cc_c89+set}" = set; then 3415 echo $ECHO_N "(cached) $ECHO_C" >&6 3416else 3417 ac_cv_prog_cc_c89=no 3418ac_save_CC=$CC 3419cat >conftest.$ac_ext <<_ACEOF 3420/* confdefs.h. */ 3421_ACEOF 3422cat confdefs.h >>conftest.$ac_ext 3423cat >>conftest.$ac_ext <<_ACEOF 3424/* end confdefs.h. */ 3425#include <stdarg.h> 3426#include <stdio.h> 3427#include <sys/types.h> 3428#include <sys/stat.h> 3429/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3430struct buf { int x; }; 3431FILE * (*rcsopen) (struct buf *, struct stat *, int); 3432static char *e (p, i) 3433 char **p; 3434 int i; 3435{ 3436 return p[i]; 3437} 3438static char *f (char * (*g) (char **, int), char **p, ...) 3439{ 3440 char *s; 3441 va_list v; 3442 va_start (v,p); 3443 s = g (p, va_arg (v,int)); 3444 va_end (v); 3445 return s; 3446} 3447 3448/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3449 function prototypes and stuff, but not '\xHH' hex character constants. 3450 These don't provoke an error unfortunately, instead are silently treated 3451 as 'x'. The following induces an error, until -std is added to get 3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3453 array size at least. It's necessary to write '\x00'==0 to get something 3454 that's true only with -std. */ 3455int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3456 3457/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3458 inside strings and character constants. */ 3459#define FOO(x) 'x' 3460int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3461 3462int test (int i, double x); 3463struct s1 {int (*f) (int a);}; 3464struct s2 {int (*f) (double a);}; 3465int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3466int argc; 3467char **argv; 3468int 3469main () 3470{ 3471return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3478do 3479 CC="$ac_save_CC $ac_arg" 3480 rm -f conftest.$ac_objext 3481if { (ac_try="$ac_compile" 3482case "(($ac_try" in 3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484 *) ac_try_echo=$ac_try;; 3485esac 3486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3487 (eval "$ac_compile") 2>conftest.er1 3488 ac_status=$? 3489 grep -v '^ *+' conftest.er1 >conftest.err 3490 rm -f conftest.er1 3491 cat conftest.err >&5 3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); } && { 3494 test -z "$ac_c_werror_flag" || 3495 test ! -s conftest.err 3496 } && test -s conftest.$ac_objext; then 3497 ac_cv_prog_cc_c89=$ac_arg 3498else 3499 echo "$as_me: failed program was:" >&5 3500sed 's/^/| /' conftest.$ac_ext >&5 3501 3502 3503fi 3504 3505rm -f core conftest.err conftest.$ac_objext 3506 test "x$ac_cv_prog_cc_c89" != "xno" && break 3507done 3508rm -f conftest.$ac_ext 3509CC=$ac_save_CC 3510 3511fi 3512# AC_CACHE_VAL 3513case "x$ac_cv_prog_cc_c89" in 3514 x) 3515 { echo "$as_me:$LINENO: result: none needed" >&5 3516echo "${ECHO_T}none needed" >&6; } ;; 3517 xno) 3518 { echo "$as_me:$LINENO: result: unsupported" >&5 3519echo "${ECHO_T}unsupported" >&6; } ;; 3520 *) 3521 CC="$CC $ac_cv_prog_cc_c89" 3522 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3523echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3524esac 3525 3526 3527ac_ext=c 3528ac_cpp='$CPP $CPPFLAGS' 3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3531ac_compiler_gnu=$ac_cv_c_compiler_gnu 3532 3533depcc="$CC" am_compiler_list= 3534 3535{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3536echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3537if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3538 echo $ECHO_N "(cached) $ECHO_C" >&6 3539else 3540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3541 # We make a subdir and do the tests there. Otherwise we can end up 3542 # making bogus files that we don't know about and never remove. For 3543 # instance it was reported that on HP-UX the gcc test will end up 3544 # making a dummy file named `D' -- because `-MD' means `put the output 3545 # in D'. 3546 mkdir conftest.dir 3547 # Copy depcomp to subdir because otherwise we won't find it if we're 3548 # using a relative directory. 3549 cp "$am_depcomp" conftest.dir 3550 cd conftest.dir 3551 # We will build objects and dependencies in a subdirectory because 3552 # it helps to detect inapplicable dependency modes. For instance 3553 # both Tru64's cc and ICC support -MD to output dependencies as a 3554 # side effect of compilation, but ICC will put the dependencies in 3555 # the current directory while Tru64 will put them in the object 3556 # directory. 3557 mkdir sub 3558 3559 am_cv_CC_dependencies_compiler_type=none 3560 if test "$am_compiler_list" = ""; then 3561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3562 fi 3563 for depmode in $am_compiler_list; do 3564 # Setup a source with many dependencies, because some compilers 3565 # like to wrap large dependency lists on column 80 (with \), and 3566 # we should not choose a depcomp mode which is confused by this. 3567 # 3568 # We need to recreate these files for each test, as the compiler may 3569 # overwrite some of them when testing with obscure command lines. 3570 # This happens at least with the AIX C compiler. 3571 : > sub/conftest.c 3572 for i in 1 2 3 4 5 6; do 3573 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3575 # Solaris 8's {/usr,}/bin/sh. 3576 touch sub/conftst$i.h 3577 done 3578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3579 3580 case $depmode in 3581 nosideeffect) 3582 # after this tag, mechanisms are not by side-effect, so they'll 3583 # only be used when explicitly requested 3584 if test "x$enable_dependency_tracking" = xyes; then 3585 continue 3586 else 3587 break 3588 fi 3589 ;; 3590 none) break ;; 3591 esac 3592 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3593 # mode. It turns out that the SunPro C++ compiler does not properly 3594 # handle `-M -o', and we need to detect this. 3595 if depmode=$depmode \ 3596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3599 >/dev/null 2>conftest.err && 3600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3602 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3604 # icc doesn't choke on unknown options, it will just issue warnings 3605 # or remarks (even with -Werror). So we grep stderr for any message 3606 # that says an option was ignored or not supported. 3607 # When given -MP, icc 7.0 and 7.1 complain thusly: 3608 # icc: Command line warning: ignoring option '-M'; no argument required 3609 # The diagnosis changed in icc 8.0: 3610 # icc: Command line remark: option '-MP' not supported 3611 if (grep 'ignoring option' conftest.err || 3612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3613 am_cv_CC_dependencies_compiler_type=$depmode 3614 break 3615 fi 3616 fi 3617 done 3618 3619 cd .. 3620 rm -rf conftest.dir 3621else 3622 am_cv_CC_dependencies_compiler_type=none 3623fi 3624 3625fi 3626{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3627echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3628CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3629 3630 if 3631 test "x$enable_dependency_tracking" != xno \ 3632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3633 am__fastdepCC_TRUE= 3634 am__fastdepCC_FALSE='#' 3635else 3636 am__fastdepCC_TRUE='#' 3637 am__fastdepCC_FALSE= 3638fi 3639 3640 3641{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3642echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3643if test "${ac_cv_path_SED+set}" = set; then 3644 echo $ECHO_N "(cached) $ECHO_C" >&6 3645else 3646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3647 for ac_i in 1 2 3 4 5 6 7; do 3648 ac_script="$ac_script$as_nl$ac_script" 3649 done 3650 echo "$ac_script" | sed 99q >conftest.sed 3651 $as_unset ac_script || ac_script= 3652 # Extract the first word of "sed gsed" to use in msg output 3653if test -z "$SED"; then 3654set dummy sed gsed; ac_prog_name=$2 3655if test "${ac_cv_path_SED+set}" = set; then 3656 echo $ECHO_N "(cached) $ECHO_C" >&6 3657else 3658 ac_path_SED_found=false 3659# Loop through the user's path and test for each of PROGNAME-LIST 3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661for as_dir in $PATH 3662do 3663 IFS=$as_save_IFS 3664 test -z "$as_dir" && as_dir=. 3665 for ac_prog in sed gsed; do 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3668 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3669 # Check for GNU ac_path_SED and select it if it is found. 3670 # Check for GNU $ac_path_SED 3671case `"$ac_path_SED" --version 2>&1` in 3672*GNU*) 3673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3674*) 3675 ac_count=0 3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3677 while : 3678 do 3679 cat "conftest.in" "conftest.in" >"conftest.tmp" 3680 mv "conftest.tmp" "conftest.in" 3681 cp "conftest.in" "conftest.nl" 3682 echo '' >> "conftest.nl" 3683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3685 ac_count=`expr $ac_count + 1` 3686 if test $ac_count -gt ${ac_path_SED_max-0}; then 3687 # Best one so far, save it but keep looking for a better one 3688 ac_cv_path_SED="$ac_path_SED" 3689 ac_path_SED_max=$ac_count 3690 fi 3691 # 10*(2^10) chars as input seems more than enough 3692 test $ac_count -gt 10 && break 3693 done 3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3695esac 3696 3697 3698 $ac_path_SED_found && break 3 3699 done 3700done 3701 3702done 3703IFS=$as_save_IFS 3704 3705 3706fi 3707 3708SED="$ac_cv_path_SED" 3709if test -z "$SED"; then 3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 3711echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 3712 { (exit 1); exit 1; }; } 3713fi 3714 3715else 3716 ac_cv_path_SED=$SED 3717fi 3718 3719fi 3720{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3721echo "${ECHO_T}$ac_cv_path_SED" >&6; } 3722 SED="$ac_cv_path_SED" 3723 rm -f conftest.sed 3724 3725test -z "$SED" && SED=sed 3726Xsed="$SED -e 1s/^X//" 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3739echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3740if test "${ac_cv_path_GREP+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742else 3743 # Extract the first word of "grep ggrep" to use in msg output 3744if test -z "$GREP"; then 3745set dummy grep ggrep; ac_prog_name=$2 3746if test "${ac_cv_path_GREP+set}" = set; then 3747 echo $ECHO_N "(cached) $ECHO_C" >&6 3748else 3749 ac_path_GREP_found=false 3750# Loop through the user's path and test for each of PROGNAME-LIST 3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3753do 3754 IFS=$as_save_IFS 3755 test -z "$as_dir" && as_dir=. 3756 for ac_prog in grep ggrep; do 3757 for ac_exec_ext in '' $ac_executable_extensions; do 3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3759 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3760 # Check for GNU ac_path_GREP and select it if it is found. 3761 # Check for GNU $ac_path_GREP 3762case `"$ac_path_GREP" --version 2>&1` in 3763*GNU*) 3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3765*) 3766 ac_count=0 3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3768 while : 3769 do 3770 cat "conftest.in" "conftest.in" >"conftest.tmp" 3771 mv "conftest.tmp" "conftest.in" 3772 cp "conftest.in" "conftest.nl" 3773 echo 'GREP' >> "conftest.nl" 3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3776 ac_count=`expr $ac_count + 1` 3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3778 # Best one so far, save it but keep looking for a better one 3779 ac_cv_path_GREP="$ac_path_GREP" 3780 ac_path_GREP_max=$ac_count 3781 fi 3782 # 10*(2^10) chars as input seems more than enough 3783 test $ac_count -gt 10 && break 3784 done 3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3786esac 3787 3788 3789 $ac_path_GREP_found && break 3 3790 done 3791done 3792 3793done 3794IFS=$as_save_IFS 3795 3796 3797fi 3798 3799GREP="$ac_cv_path_GREP" 3800if test -z "$GREP"; then 3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3802echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3803 { (exit 1); exit 1; }; } 3804fi 3805 3806else 3807 ac_cv_path_GREP=$GREP 3808fi 3809 3810 3811fi 3812{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3813echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3814 GREP="$ac_cv_path_GREP" 3815 3816 3817{ echo "$as_me:$LINENO: checking for egrep" >&5 3818echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3819if test "${ac_cv_path_EGREP+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3823 then ac_cv_path_EGREP="$GREP -E" 3824 else 3825 # Extract the first word of "egrep" to use in msg output 3826if test -z "$EGREP"; then 3827set dummy egrep; ac_prog_name=$2 3828if test "${ac_cv_path_EGREP+set}" = set; then 3829 echo $ECHO_N "(cached) $ECHO_C" >&6 3830else 3831 ac_path_EGREP_found=false 3832# Loop through the user's path and test for each of PROGNAME-LIST 3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3835do 3836 IFS=$as_save_IFS 3837 test -z "$as_dir" && as_dir=. 3838 for ac_prog in egrep; do 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3842 # Check for GNU ac_path_EGREP and select it if it is found. 3843 # Check for GNU $ac_path_EGREP 3844case `"$ac_path_EGREP" --version 2>&1` in 3845*GNU*) 3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3847*) 3848 ac_count=0 3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3850 while : 3851 do 3852 cat "conftest.in" "conftest.in" >"conftest.tmp" 3853 mv "conftest.tmp" "conftest.in" 3854 cp "conftest.in" "conftest.nl" 3855 echo 'EGREP' >> "conftest.nl" 3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3858 ac_count=`expr $ac_count + 1` 3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3860 # Best one so far, save it but keep looking for a better one 3861 ac_cv_path_EGREP="$ac_path_EGREP" 3862 ac_path_EGREP_max=$ac_count 3863 fi 3864 # 10*(2^10) chars as input seems more than enough 3865 test $ac_count -gt 10 && break 3866 done 3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3868esac 3869 3870 3871 $ac_path_EGREP_found && break 3 3872 done 3873done 3874 3875done 3876IFS=$as_save_IFS 3877 3878 3879fi 3880 3881EGREP="$ac_cv_path_EGREP" 3882if test -z "$EGREP"; then 3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3884echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3885 { (exit 1); exit 1; }; } 3886fi 3887 3888else 3889 ac_cv_path_EGREP=$EGREP 3890fi 3891 3892 3893 fi 3894fi 3895{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3896echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3897 EGREP="$ac_cv_path_EGREP" 3898 3899 3900{ echo "$as_me:$LINENO: checking for fgrep" >&5 3901echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 3902if test "${ac_cv_path_FGREP+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904else 3905 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3906 then ac_cv_path_FGREP="$GREP -F" 3907 else 3908 # Extract the first word of "fgrep" to use in msg output 3909if test -z "$FGREP"; then 3910set dummy fgrep; ac_prog_name=$2 3911if test "${ac_cv_path_FGREP+set}" = set; then 3912 echo $ECHO_N "(cached) $ECHO_C" >&6 3913else 3914 ac_path_FGREP_found=false 3915# Loop through the user's path and test for each of PROGNAME-LIST 3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3918do 3919 IFS=$as_save_IFS 3920 test -z "$as_dir" && as_dir=. 3921 for ac_prog in fgrep; do 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3924 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3925 # Check for GNU ac_path_FGREP and select it if it is found. 3926 # Check for GNU $ac_path_FGREP 3927case `"$ac_path_FGREP" --version 2>&1` in 3928*GNU*) 3929 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3930*) 3931 ac_count=0 3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3933 while : 3934 do 3935 cat "conftest.in" "conftest.in" >"conftest.tmp" 3936 mv "conftest.tmp" "conftest.in" 3937 cp "conftest.in" "conftest.nl" 3938 echo 'FGREP' >> "conftest.nl" 3939 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3941 ac_count=`expr $ac_count + 1` 3942 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3943 # Best one so far, save it but keep looking for a better one 3944 ac_cv_path_FGREP="$ac_path_FGREP" 3945 ac_path_FGREP_max=$ac_count 3946 fi 3947 # 10*(2^10) chars as input seems more than enough 3948 test $ac_count -gt 10 && break 3949 done 3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3951esac 3952 3953 3954 $ac_path_FGREP_found && break 3 3955 done 3956done 3957 3958done 3959IFS=$as_save_IFS 3960 3961 3962fi 3963 3964FGREP="$ac_cv_path_FGREP" 3965if test -z "$FGREP"; then 3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3967echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3968 { (exit 1); exit 1; }; } 3969fi 3970 3971else 3972 ac_cv_path_FGREP=$FGREP 3973fi 3974 3975 3976 fi 3977fi 3978{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3979echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 3980 FGREP="$ac_cv_path_FGREP" 3981 3982 3983test -z "$GREP" && GREP=grep 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003# Check whether --with-gnu-ld was given. 4004if test "${with_gnu_ld+set}" = set; then 4005 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4006else 4007 with_gnu_ld=no 4008fi 4009 4010ac_prog=ld 4011if test "$GCC" = yes; then 4012 # Check if gcc -print-prog-name=ld gives a path. 4013 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4014echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4015 case $host in 4016 *-*-mingw*) 4017 # gcc leaves a trailing carriage return which upsets mingw 4018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4019 *) 4020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4021 esac 4022 case $ac_prog in 4023 # Accept absolute paths. 4024 [\\/]* | ?:[\\/]*) 4025 re_direlt='/[^/][^/]*/\.\./' 4026 # Canonicalize the pathname of ld 4027 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4028 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4029 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4030 done 4031 test -z "$LD" && LD="$ac_prog" 4032 ;; 4033 "") 4034 # If it fails, then pretend we aren't using GCC. 4035 ac_prog=ld 4036 ;; 4037 *) 4038 # If it is relative, then search for the first ld in PATH. 4039 with_gnu_ld=unknown 4040 ;; 4041 esac 4042elif test "$with_gnu_ld" = yes; then 4043 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4044echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4045else 4046 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4047echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4048fi 4049if test "${lt_cv_path_LD+set}" = set; then 4050 echo $ECHO_N "(cached) $ECHO_C" >&6 4051else 4052 if test -z "$LD"; then 4053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4054 for ac_dir in $PATH; do 4055 IFS="$lt_save_ifs" 4056 test -z "$ac_dir" && ac_dir=. 4057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4058 lt_cv_path_LD="$ac_dir/$ac_prog" 4059 # Check to see if the program is GNU ld. I'd rather use --version, 4060 # but apparently some variants of GNU ld only accept -v. 4061 # Break only if it was the GNU/non-GNU ld that we prefer. 4062 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4063 *GNU* | *'with BFD'*) 4064 test "$with_gnu_ld" != no && break 4065 ;; 4066 *) 4067 test "$with_gnu_ld" != yes && break 4068 ;; 4069 esac 4070 fi 4071 done 4072 IFS="$lt_save_ifs" 4073else 4074 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4075fi 4076fi 4077 4078LD="$lt_cv_path_LD" 4079if test -n "$LD"; then 4080 { echo "$as_me:$LINENO: result: $LD" >&5 4081echo "${ECHO_T}$LD" >&6; } 4082else 4083 { echo "$as_me:$LINENO: result: no" >&5 4084echo "${ECHO_T}no" >&6; } 4085fi 4086test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4087echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4088 { (exit 1); exit 1; }; } 4089{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4090echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4091if test "${lt_cv_prog_gnu_ld+set}" = set; then 4092 echo $ECHO_N "(cached) $ECHO_C" >&6 4093else 4094 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4095case `$LD -v 2>&1 </dev/null` in 4096*GNU* | *'with BFD'*) 4097 lt_cv_prog_gnu_ld=yes 4098 ;; 4099*) 4100 lt_cv_prog_gnu_ld=no 4101 ;; 4102esac 4103fi 4104{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4105echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4106with_gnu_ld=$lt_cv_prog_gnu_ld 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4117echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 4118if test "${lt_cv_path_NM+set}" = set; then 4119 echo $ECHO_N "(cached) $ECHO_C" >&6 4120else 4121 if test -n "$NM"; then 4122 # Let the user override the test. 4123 lt_cv_path_NM="$NM" 4124else 4125 lt_nm_to_check="${ac_tool_prefix}nm" 4126 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4127 lt_nm_to_check="$lt_nm_to_check nm" 4128 fi 4129 for lt_tmp_nm in $lt_nm_to_check; do 4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4131 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4132 IFS="$lt_save_ifs" 4133 test -z "$ac_dir" && ac_dir=. 4134 tmp_nm="$ac_dir/$lt_tmp_nm" 4135 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4136 # Check to see if the nm accepts a BSD-compat flag. 4137 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4138 # nm: unknown option "B" ignored 4139 # Tru64's nm complains that /dev/null is an invalid object file 4140 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4141 */dev/null* | *'Invalid file or object type'*) 4142 lt_cv_path_NM="$tmp_nm -B" 4143 break 4144 ;; 4145 *) 4146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4147 */dev/null*) 4148 lt_cv_path_NM="$tmp_nm -p" 4149 break 4150 ;; 4151 *) 4152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4153 continue # so that we can try to find one that supports BSD flags 4154 ;; 4155 esac 4156 ;; 4157 esac 4158 fi 4159 done 4160 IFS="$lt_save_ifs" 4161 done 4162 : ${lt_cv_path_NM=no} 4163fi 4164fi 4165{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4166echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4167if test "$lt_cv_path_NM" != "no"; then 4168 NM="$lt_cv_path_NM" 4169else 4170 # Didn't find any BSD compatible name lister, look for dumpbin. 4171 if test -n "$ac_tool_prefix"; then 4172 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4173 do 4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4175set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4176{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4178if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180else 4181 if test -n "$DUMPBIN"; then 4182 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4183else 4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4185for as_dir in $PATH 4186do 4187 IFS=$as_save_IFS 4188 test -z "$as_dir" && as_dir=. 4189 for ac_exec_ext in '' $ac_executable_extensions; do 4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4191 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4193 break 2 4194 fi 4195done 4196done 4197IFS=$as_save_IFS 4198 4199fi 4200fi 4201DUMPBIN=$ac_cv_prog_DUMPBIN 4202if test -n "$DUMPBIN"; then 4203 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4204echo "${ECHO_T}$DUMPBIN" >&6; } 4205else 4206 { echo "$as_me:$LINENO: result: no" >&5 4207echo "${ECHO_T}no" >&6; } 4208fi 4209 4210 4211 test -n "$DUMPBIN" && break 4212 done 4213fi 4214if test -z "$DUMPBIN"; then 4215 ac_ct_DUMPBIN=$DUMPBIN 4216 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4217do 4218 # Extract the first word of "$ac_prog", so it can be a program name with args. 4219set dummy $ac_prog; ac_word=$2 4220{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4222if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4223 echo $ECHO_N "(cached) $ECHO_C" >&6 4224else 4225 if test -n "$ac_ct_DUMPBIN"; then 4226 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4227else 4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH 4230do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4235 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4237 break 2 4238 fi 4239done 4240done 4241IFS=$as_save_IFS 4242 4243fi 4244fi 4245ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4246if test -n "$ac_ct_DUMPBIN"; then 4247 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4248echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 4249else 4250 { echo "$as_me:$LINENO: result: no" >&5 4251echo "${ECHO_T}no" >&6; } 4252fi 4253 4254 4255 test -n "$ac_ct_DUMPBIN" && break 4256done 4257 4258 if test "x$ac_ct_DUMPBIN" = x; then 4259 DUMPBIN=":" 4260 else 4261 case $cross_compiling:$ac_tool_warned in 4262yes:) 4263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4264whose name does not start with the host triplet. If you think this 4265configuration is useful to you, please write to autoconf@gnu.org." >&5 4266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4267whose name does not start with the host triplet. If you think this 4268configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4269ac_tool_warned=yes ;; 4270esac 4271 DUMPBIN=$ac_ct_DUMPBIN 4272 fi 4273fi 4274 4275 4276 if test "$DUMPBIN" != ":"; then 4277 NM="$DUMPBIN" 4278 fi 4279fi 4280test -z "$NM" && NM=nm 4281 4282 4283 4284 4285 4286 4287{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4288echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 4289if test "${lt_cv_nm_interface+set}" = set; then 4290 echo $ECHO_N "(cached) $ECHO_C" >&6 4291else 4292 lt_cv_nm_interface="BSD nm" 4293 echo "int some_variable = 0;" > conftest.$ac_ext 4294 (eval echo "\"\$as_me:4294: $ac_compile\"" >&5) 4295 (eval "$ac_compile" 2>conftest.err) 4296 cat conftest.err >&5 4297 (eval echo "\"\$as_me:4297: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4298 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4299 cat conftest.err >&5 4300 (eval echo "\"\$as_me:4300: output\"" >&5) 4301 cat conftest.out >&5 4302 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4303 lt_cv_nm_interface="MS dumpbin" 4304 fi 4305 rm -f conftest* 4306fi 4307{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4308echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 4309 4310{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4312LN_S=$as_ln_s 4313if test "$LN_S" = "ln -s"; then 4314 { echo "$as_me:$LINENO: result: yes" >&5 4315echo "${ECHO_T}yes" >&6; } 4316else 4317 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4318echo "${ECHO_T}no, using $LN_S" >&6; } 4319fi 4320 4321# find the maximum length of command line arguments 4322{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4323echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 4324if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326else 4327 i=0 4328 teststring="ABCD" 4329 4330 case $build_os in 4331 msdosdjgpp*) 4332 # On DJGPP, this test can blow up pretty badly due to problems in libc 4333 # (any single argument exceeding 2000 bytes causes a buffer overrun 4334 # during glob expansion). Even if it were fixed, the result of this 4335 # check would be larger than it should be. 4336 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4337 ;; 4338 4339 gnu*) 4340 # Under GNU Hurd, this test is not required because there is 4341 # no limit to the length of command line arguments. 4342 # Libtool will interpret -1 as no limit whatsoever 4343 lt_cv_sys_max_cmd_len=-1; 4344 ;; 4345 4346 cygwin* | mingw* | cegcc*) 4347 # On Win9x/ME, this test blows up -- it succeeds, but takes 4348 # about 5 minutes as the teststring grows exponentially. 4349 # Worse, since 9x/ME are not pre-emptively multitasking, 4350 # you end up with a "frozen" computer, even though with patience 4351 # the test eventually succeeds (with a max line length of 256k). 4352 # Instead, let's just punt: use the minimum linelength reported by 4353 # all of the supported platforms: 8192 (on NT/2K/XP). 4354 lt_cv_sys_max_cmd_len=8192; 4355 ;; 4356 4357 amigaos*) 4358 # On AmigaOS with pdksh, this test takes hours, literally. 4359 # So we just punt and use a minimum line length of 8192. 4360 lt_cv_sys_max_cmd_len=8192; 4361 ;; 4362 4363 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4364 # This has been around since 386BSD, at least. Likely further. 4365 if test -x /sbin/sysctl; then 4366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4367 elif test -x /usr/sbin/sysctl; then 4368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4369 else 4370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4371 fi 4372 # And add a safety zone 4373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4375 ;; 4376 4377 interix*) 4378 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4379 lt_cv_sys_max_cmd_len=196608 4380 ;; 4381 4382 osf*) 4383 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4384 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4385 # nice to cause kernel panics so lets avoid the loop below. 4386 # First set a reasonable default. 4387 lt_cv_sys_max_cmd_len=16384 4388 # 4389 if test -x /sbin/sysconfig; then 4390 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4391 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4392 esac 4393 fi 4394 ;; 4395 sco3.2v5*) 4396 lt_cv_sys_max_cmd_len=102400 4397 ;; 4398 sysv5* | sco5v6* | sysv4.2uw2*) 4399 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4400 if test -n "$kargmax"; then 4401 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4402 else 4403 lt_cv_sys_max_cmd_len=32768 4404 fi 4405 ;; 4406 *) 4407 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4408 if test -n "$lt_cv_sys_max_cmd_len"; then 4409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4411 else 4412 # Make teststring a little bigger before we do anything with it. 4413 # a 1K string should be a reasonable start. 4414 for i in 1 2 3 4 5 6 7 8 ; do 4415 teststring=$teststring$teststring 4416 done 4417 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4418 # If test is not a shell built-in, we'll probably end up computing a 4419 # maximum length that is only half of the actual maximum length, but 4420 # we can't tell. 4421 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4422 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4423 test $i != 17 # 1/2 MB should be enough 4424 do 4425 i=`expr $i + 1` 4426 teststring=$teststring$teststring 4427 done 4428 # Only check the string length outside the loop. 4429 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4430 teststring= 4431 # Add a significant safety factor because C++ compilers can tack on 4432 # massive amounts of additional arguments before passing them to the 4433 # linker. It appears as though 1/2 is a usable value. 4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4435 fi 4436 ;; 4437 esac 4438 4439fi 4440 4441if test -n $lt_cv_sys_max_cmd_len ; then 4442 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4443echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 4444else 4445 { echo "$as_me:$LINENO: result: none" >&5 4446echo "${ECHO_T}none" >&6; } 4447fi 4448max_cmd_len=$lt_cv_sys_max_cmd_len 4449 4450 4451 4452 4453 4454 4455: ${CP="cp -f"} 4456: ${MV="mv -f"} 4457: ${RM="rm -f"} 4458 4459{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4460echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 4461# Try some XSI features 4462xsi_shell=no 4463( _lt_dummy="a/b/c" 4464 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4465 = c,a/b,, \ 4466 && eval 'test $(( 1 + 1 )) -eq 2 \ 4467 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4468 && xsi_shell=yes 4469{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 4470echo "${ECHO_T}$xsi_shell" >&6; } 4471 4472 4473{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4474echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 4475lt_shell_append=no 4476( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4477 >/dev/null 2>&1 \ 4478 && lt_shell_append=yes 4479{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4480echo "${ECHO_T}$lt_shell_append" >&6; } 4481 4482 4483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4484 lt_unset=unset 4485else 4486 lt_unset=false 4487fi 4488 4489 4490 4491 4492 4493# test EBCDIC or ASCII 4494case `echo X|tr X '\101'` in 4495 A) # ASCII based system 4496 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4497 lt_SP2NL='tr \040 \012' 4498 lt_NL2SP='tr \015\012 \040\040' 4499 ;; 4500 *) # EBCDIC based system 4501 lt_SP2NL='tr \100 \n' 4502 lt_NL2SP='tr \r\n \100\100' 4503 ;; 4504esac 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4515echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4516if test "${lt_cv_ld_reload_flag+set}" = set; then 4517 echo $ECHO_N "(cached) $ECHO_C" >&6 4518else 4519 lt_cv_ld_reload_flag='-r' 4520fi 4521{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4522echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4523reload_flag=$lt_cv_ld_reload_flag 4524case $reload_flag in 4525"" | " "*) ;; 4526*) reload_flag=" $reload_flag" ;; 4527esac 4528reload_cmds='$LD$reload_flag -o $output$reload_objs' 4529case $host_os in 4530 darwin*) 4531 if test "$GCC" = yes; then 4532 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4533 else 4534 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4535 fi 4536 ;; 4537esac 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547if test -n "$ac_tool_prefix"; then 4548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4549set dummy ${ac_tool_prefix}objdump; ac_word=$2 4550{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4552if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 if test -n "$OBJDUMP"; then 4556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4557else 4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559for as_dir in $PATH 4560do 4561 IFS=$as_save_IFS 4562 test -z "$as_dir" && as_dir=. 4563 for ac_exec_ext in '' $ac_executable_extensions; do 4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4567 break 2 4568 fi 4569done 4570done 4571IFS=$as_save_IFS 4572 4573fi 4574fi 4575OBJDUMP=$ac_cv_prog_OBJDUMP 4576if test -n "$OBJDUMP"; then 4577 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4578echo "${ECHO_T}$OBJDUMP" >&6; } 4579else 4580 { echo "$as_me:$LINENO: result: no" >&5 4581echo "${ECHO_T}no" >&6; } 4582fi 4583 4584 4585fi 4586if test -z "$ac_cv_prog_OBJDUMP"; then 4587 ac_ct_OBJDUMP=$OBJDUMP 4588 # Extract the first word of "objdump", so it can be a program name with args. 4589set dummy objdump; ac_word=$2 4590{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4592if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4593 echo $ECHO_N "(cached) $ECHO_C" >&6 4594else 4595 if test -n "$ac_ct_OBJDUMP"; then 4596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4597else 4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH 4600do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4605 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609done 4610done 4611IFS=$as_save_IFS 4612 4613fi 4614fi 4615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4616if test -n "$ac_ct_OBJDUMP"; then 4617 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4618echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4619else 4620 { echo "$as_me:$LINENO: result: no" >&5 4621echo "${ECHO_T}no" >&6; } 4622fi 4623 4624 if test "x$ac_ct_OBJDUMP" = x; then 4625 OBJDUMP="false" 4626 else 4627 case $cross_compiling:$ac_tool_warned in 4628yes:) 4629{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4630whose name does not start with the host triplet. If you think this 4631configuration is useful to you, please write to autoconf@gnu.org." >&5 4632echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4633whose name does not start with the host triplet. If you think this 4634configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4635ac_tool_warned=yes ;; 4636esac 4637 OBJDUMP=$ac_ct_OBJDUMP 4638 fi 4639else 4640 OBJDUMP="$ac_cv_prog_OBJDUMP" 4641fi 4642 4643test -z "$OBJDUMP" && OBJDUMP=objdump 4644 4645 4646 4647 4648 4649 4650{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4651echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4652if test "${lt_cv_deplibs_check_method+set}" = set; then 4653 echo $ECHO_N "(cached) $ECHO_C" >&6 4654else 4655 lt_cv_file_magic_cmd='$MAGIC_CMD' 4656lt_cv_file_magic_test_file= 4657lt_cv_deplibs_check_method='unknown' 4658# Need to set the preceding variable on all platforms that support 4659# interlibrary dependencies. 4660# 'none' -- dependencies not supported. 4661# `unknown' -- same as none, but documents that we really don't know. 4662# 'pass_all' -- all dependencies passed with no checks. 4663# 'test_compile' -- check by making test program. 4664# 'file_magic [[regex]]' -- check by looking for files in library path 4665# which responds to the $file_magic_cmd with a given extended regex. 4666# If you have `file' or equivalent on your system and you're not sure 4667# whether `pass_all' will *always* work, you probably want this one. 4668 4669case $host_os in 4670aix[4-9]*) 4671 lt_cv_deplibs_check_method=pass_all 4672 ;; 4673 4674beos*) 4675 lt_cv_deplibs_check_method=pass_all 4676 ;; 4677 4678bsdi[45]*) 4679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4680 lt_cv_file_magic_cmd='/usr/bin/file -L' 4681 lt_cv_file_magic_test_file=/shlib/libc.so 4682 ;; 4683 4684cygwin*) 4685 # func_win32_libid is a shell function defined in ltmain.sh 4686 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4687 lt_cv_file_magic_cmd='func_win32_libid' 4688 ;; 4689 4690mingw* | pw32*) 4691 # Base MSYS/MinGW do not provide the 'file' command needed by 4692 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4693 # unless we find 'file', for example because we are cross-compiling. 4694 if ( file / ) >/dev/null 2>&1; then 4695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4696 lt_cv_file_magic_cmd='func_win32_libid' 4697 else 4698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4699 lt_cv_file_magic_cmd='$OBJDUMP -f' 4700 fi 4701 ;; 4702 4703cegcc) 4704 # use the weaker test based on 'objdump'. See mingw*. 4705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4706 lt_cv_file_magic_cmd='$OBJDUMP -f' 4707 ;; 4708 4709darwin* | rhapsody*) 4710 lt_cv_deplibs_check_method=pass_all 4711 ;; 4712 4713freebsd* | dragonfly*) 4714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4715 case $host_cpu in 4716 i*86 ) 4717 # Not sure whether the presence of OpenBSD here was a mistake. 4718 # Let's accept both of them until this is cleared up. 4719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4720 lt_cv_file_magic_cmd=/usr/bin/file 4721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4722 ;; 4723 esac 4724 else 4725 lt_cv_deplibs_check_method=pass_all 4726 fi 4727 ;; 4728 4729gnu*) 4730 lt_cv_deplibs_check_method=pass_all 4731 ;; 4732 4733hpux10.20* | hpux11*) 4734 lt_cv_file_magic_cmd=/usr/bin/file 4735 case $host_cpu in 4736 ia64*) 4737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4739 ;; 4740 hppa*64*) 4741 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]' 4742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4743 ;; 4744 *) 4745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4746 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4747 ;; 4748 esac 4749 ;; 4750 4751interix[3-9]*) 4752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4754 ;; 4755 4756irix5* | irix6* | nonstopux*) 4757 case $LD in 4758 *-32|*"-32 ") libmagic=32-bit;; 4759 *-n32|*"-n32 ") libmagic=N32;; 4760 *-64|*"-64 ") libmagic=64-bit;; 4761 *) libmagic=never-match;; 4762 esac 4763 lt_cv_deplibs_check_method=pass_all 4764 ;; 4765 4766# This must be Linux ELF. 4767linux* | k*bsd*-gnu) 4768 lt_cv_deplibs_check_method=pass_all 4769 ;; 4770 4771netbsd* | netbsdelf*-gnu) 4772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4774 else 4775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4776 fi 4777 ;; 4778 4779newos6*) 4780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4781 lt_cv_file_magic_cmd=/usr/bin/file 4782 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4783 ;; 4784 4785*nto* | *qnx*) 4786 lt_cv_deplibs_check_method=pass_all 4787 ;; 4788 4789openbsd*) 4790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4792 else 4793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4794 fi 4795 ;; 4796 4797osf3* | osf4* | osf5*) 4798 lt_cv_deplibs_check_method=pass_all 4799 ;; 4800 4801rdos*) 4802 lt_cv_deplibs_check_method=pass_all 4803 ;; 4804 4805solaris*) 4806 lt_cv_deplibs_check_method=pass_all 4807 ;; 4808 4809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4810 lt_cv_deplibs_check_method=pass_all 4811 ;; 4812 4813sysv4 | sysv4.3*) 4814 case $host_vendor in 4815 motorola) 4816 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]' 4817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4818 ;; 4819 ncr) 4820 lt_cv_deplibs_check_method=pass_all 4821 ;; 4822 sequent) 4823 lt_cv_file_magic_cmd='/bin/file' 4824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4825 ;; 4826 sni) 4827 lt_cv_file_magic_cmd='/bin/file' 4828 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4829 lt_cv_file_magic_test_file=/lib/libc.so 4830 ;; 4831 siemens) 4832 lt_cv_deplibs_check_method=pass_all 4833 ;; 4834 pc) 4835 lt_cv_deplibs_check_method=pass_all 4836 ;; 4837 esac 4838 ;; 4839 4840tpf*) 4841 lt_cv_deplibs_check_method=pass_all 4842 ;; 4843esac 4844 4845fi 4846{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4847echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4848file_magic_cmd=$lt_cv_file_magic_cmd 4849deplibs_check_method=$lt_cv_deplibs_check_method 4850test -z "$deplibs_check_method" && deplibs_check_method=unknown 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863if test -n "$ac_tool_prefix"; then 4864 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4865set dummy ${ac_tool_prefix}ar; ac_word=$2 4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4868if test "${ac_cv_prog_AR+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 if test -n "$AR"; then 4872 ac_cv_prog_AR="$AR" # Let the user override the test. 4873else 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4881 ac_cv_prog_AR="${ac_tool_prefix}ar" 4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886done 4887IFS=$as_save_IFS 4888 4889fi 4890fi 4891AR=$ac_cv_prog_AR 4892if test -n "$AR"; then 4893 { echo "$as_me:$LINENO: result: $AR" >&5 4894echo "${ECHO_T}$AR" >&6; } 4895else 4896 { echo "$as_me:$LINENO: result: no" >&5 4897echo "${ECHO_T}no" >&6; } 4898fi 4899 4900 4901fi 4902if test -z "$ac_cv_prog_AR"; then 4903 ac_ct_AR=$AR 4904 # Extract the first word of "ar", so it can be a program name with args. 4905set dummy ar; ac_word=$2 4906{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4908if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4909 echo $ECHO_N "(cached) $ECHO_C" >&6 4910else 4911 if test -n "$ac_ct_AR"; then 4912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4913else 4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4915for as_dir in $PATH 4916do 4917 IFS=$as_save_IFS 4918 test -z "$as_dir" && as_dir=. 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4921 ac_cv_prog_ac_ct_AR="ar" 4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4923 break 2 4924 fi 4925done 4926done 4927IFS=$as_save_IFS 4928 4929fi 4930fi 4931ac_ct_AR=$ac_cv_prog_ac_ct_AR 4932if test -n "$ac_ct_AR"; then 4933 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4934echo "${ECHO_T}$ac_ct_AR" >&6; } 4935else 4936 { echo "$as_me:$LINENO: result: no" >&5 4937echo "${ECHO_T}no" >&6; } 4938fi 4939 4940 if test "x$ac_ct_AR" = x; then 4941 AR="false" 4942 else 4943 case $cross_compiling:$ac_tool_warned in 4944yes:) 4945{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4946whose name does not start with the host triplet. If you think this 4947configuration is useful to you, please write to autoconf@gnu.org." >&5 4948echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4949whose name does not start with the host triplet. If you think this 4950configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4951ac_tool_warned=yes ;; 4952esac 4953 AR=$ac_ct_AR 4954 fi 4955else 4956 AR="$ac_cv_prog_AR" 4957fi 4958 4959test -z "$AR" && AR=ar 4960test -z "$AR_FLAGS" && AR_FLAGS=cru 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972if test -n "$ac_tool_prefix"; then 4973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4974set dummy ${ac_tool_prefix}strip; ac_word=$2 4975{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4977if test "${ac_cv_prog_STRIP+set}" = set; then 4978 echo $ECHO_N "(cached) $ECHO_C" >&6 4979else 4980 if test -n "$STRIP"; then 4981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4982else 4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4984for as_dir in $PATH 4985do 4986 IFS=$as_save_IFS 4987 test -z "$as_dir" && as_dir=. 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4990 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4992 break 2 4993 fi 4994done 4995done 4996IFS=$as_save_IFS 4997 4998fi 4999fi 5000STRIP=$ac_cv_prog_STRIP 5001if test -n "$STRIP"; then 5002 { echo "$as_me:$LINENO: result: $STRIP" >&5 5003echo "${ECHO_T}$STRIP" >&6; } 5004else 5005 { echo "$as_me:$LINENO: result: no" >&5 5006echo "${ECHO_T}no" >&6; } 5007fi 5008 5009 5010fi 5011if test -z "$ac_cv_prog_STRIP"; then 5012 ac_ct_STRIP=$STRIP 5013 # Extract the first word of "strip", so it can be a program name with args. 5014set dummy strip; ac_word=$2 5015{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5017if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5018 echo $ECHO_N "(cached) $ECHO_C" >&6 5019else 5020 if test -n "$ac_ct_STRIP"; then 5021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5022else 5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5024for as_dir in $PATH 5025do 5026 IFS=$as_save_IFS 5027 test -z "$as_dir" && as_dir=. 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5030 ac_cv_prog_ac_ct_STRIP="strip" 5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5032 break 2 5033 fi 5034done 5035done 5036IFS=$as_save_IFS 5037 5038fi 5039fi 5040ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5041if test -n "$ac_ct_STRIP"; then 5042 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5043echo "${ECHO_T}$ac_ct_STRIP" >&6; } 5044else 5045 { echo "$as_me:$LINENO: result: no" >&5 5046echo "${ECHO_T}no" >&6; } 5047fi 5048 5049 if test "x$ac_ct_STRIP" = x; then 5050 STRIP=":" 5051 else 5052 case $cross_compiling:$ac_tool_warned in 5053yes:) 5054{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5055whose name does not start with the host triplet. If you think this 5056configuration is useful to you, please write to autoconf@gnu.org." >&5 5057echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5058whose name does not start with the host triplet. If you think this 5059configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5060ac_tool_warned=yes ;; 5061esac 5062 STRIP=$ac_ct_STRIP 5063 fi 5064else 5065 STRIP="$ac_cv_prog_STRIP" 5066fi 5067 5068test -z "$STRIP" && STRIP=: 5069 5070 5071 5072 5073 5074 5075if test -n "$ac_tool_prefix"; then 5076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5077set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5078{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5080if test "${ac_cv_prog_RANLIB+set}" = set; then 5081 echo $ECHO_N "(cached) $ECHO_C" >&6 5082else 5083 if test -n "$RANLIB"; then 5084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5085else 5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5087for as_dir in $PATH 5088do 5089 IFS=$as_save_IFS 5090 test -z "$as_dir" && as_dir=. 5091 for ac_exec_ext in '' $ac_executable_extensions; do 5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5095 break 2 5096 fi 5097done 5098done 5099IFS=$as_save_IFS 5100 5101fi 5102fi 5103RANLIB=$ac_cv_prog_RANLIB 5104if test -n "$RANLIB"; then 5105 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5106echo "${ECHO_T}$RANLIB" >&6; } 5107else 5108 { echo "$as_me:$LINENO: result: no" >&5 5109echo "${ECHO_T}no" >&6; } 5110fi 5111 5112 5113fi 5114if test -z "$ac_cv_prog_RANLIB"; then 5115 ac_ct_RANLIB=$RANLIB 5116 # Extract the first word of "ranlib", so it can be a program name with args. 5117set dummy ranlib; ac_word=$2 5118{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5120if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5121 echo $ECHO_N "(cached) $ECHO_C" >&6 5122else 5123 if test -n "$ac_ct_RANLIB"; then 5124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5125else 5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127for as_dir in $PATH 5128do 5129 IFS=$as_save_IFS 5130 test -z "$as_dir" && as_dir=. 5131 for ac_exec_ext in '' $ac_executable_extensions; do 5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5133 ac_cv_prog_ac_ct_RANLIB="ranlib" 5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5135 break 2 5136 fi 5137done 5138done 5139IFS=$as_save_IFS 5140 5141fi 5142fi 5143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5144if test -n "$ac_ct_RANLIB"; then 5145 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5146echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5147else 5148 { echo "$as_me:$LINENO: result: no" >&5 5149echo "${ECHO_T}no" >&6; } 5150fi 5151 5152 if test "x$ac_ct_RANLIB" = x; then 5153 RANLIB=":" 5154 else 5155 case $cross_compiling:$ac_tool_warned in 5156yes:) 5157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5158whose name does not start with the host triplet. If you think this 5159configuration is useful to you, please write to autoconf@gnu.org." >&5 5160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5161whose name does not start with the host triplet. If you think this 5162configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5163ac_tool_warned=yes ;; 5164esac 5165 RANLIB=$ac_ct_RANLIB 5166 fi 5167else 5168 RANLIB="$ac_cv_prog_RANLIB" 5169fi 5170 5171test -z "$RANLIB" && RANLIB=: 5172 5173 5174 5175 5176 5177 5178# Determine commands to create old-style static archives. 5179old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5180old_postinstall_cmds='chmod 644 $oldlib' 5181old_postuninstall_cmds= 5182 5183if test -n "$RANLIB"; then 5184 case $host_os in 5185 openbsd*) 5186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5187 ;; 5188 *) 5189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5190 ;; 5191 esac 5192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5193fi 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228# If no C compiler was specified, use CC. 5229LTCC=${LTCC-"$CC"} 5230 5231# If no C compiler flags were specified, use CFLAGS. 5232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5233 5234# Allow CC to be a program name with arguments. 5235compiler=$CC 5236 5237 5238# Check for command to grab the raw symbol name followed by C symbol from nm. 5239{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5240echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5241if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5242 echo $ECHO_N "(cached) $ECHO_C" >&6 5243else 5244 5245# These are sane defaults that work on at least a few old systems. 5246# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5247 5248# Character class describing NM global symbol codes. 5249symcode='[BCDEGRST]' 5250 5251# Regexp to match symbols that can be accessed directly from C. 5252sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5253 5254# Define system-specific variables. 5255case $host_os in 5256aix*) 5257 symcode='[BCDT]' 5258 ;; 5259cygwin* | mingw* | pw32* | cegcc*) 5260 symcode='[ABCDGISTW]' 5261 ;; 5262hpux*) 5263 if test "$host_cpu" = ia64; then 5264 symcode='[ABCDEGRST]' 5265 fi 5266 ;; 5267irix* | nonstopux*) 5268 symcode='[BCDEGRST]' 5269 ;; 5270osf*) 5271 symcode='[BCDEGQRST]' 5272 ;; 5273solaris*) 5274 symcode='[BDRT]' 5275 ;; 5276sco3.2v5*) 5277 symcode='[DT]' 5278 ;; 5279sysv4.2uw2*) 5280 symcode='[DT]' 5281 ;; 5282sysv5* | sco5v6* | unixware* | OpenUNIX*) 5283 symcode='[ABDT]' 5284 ;; 5285sysv4) 5286 symcode='[DFNSTU]' 5287 ;; 5288esac 5289 5290# If we're using GNU nm, then use its standard symbol codes. 5291case `$NM -V 2>&1` in 5292*GNU* | *'with BFD'*) 5293 symcode='[ABCDGIRSTW]' ;; 5294esac 5295 5296# Transform an extracted symbol line into a proper C declaration. 5297# Some systems (esp. on ia64) link data and code symbols differently, 5298# so use this general approach. 5299lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5300 5301# Transform an extracted symbol line into symbol name and symbol address 5302lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5303lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5304 5305# Handle CRLF in mingw tool chain 5306opt_cr= 5307case $build_os in 5308mingw*) 5309 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5310 ;; 5311esac 5312 5313# Try without a prefix underscore, then with it. 5314for ac_symprfx in "" "_"; do 5315 5316 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5317 symxfrm="\\1 $ac_symprfx\\2 \\2" 5318 5319 # Write the raw and C identifiers. 5320 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5321 # Fake it for dumpbin and say T for any non-static function 5322 # and D for any global variable. 5323 # Also find C++ and __fastcall symbols from MSVC++, 5324 # which start with @ or ?. 5325 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5326" {last_section=section; section=\$ 3};"\ 5327" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5328" \$ 0!~/External *\|/{next};"\ 5329" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5330" {if(hide[section]) next};"\ 5331" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5332" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5333" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5334" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5335" ' prfx=^$ac_symprfx" 5336 else 5337 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5338 fi 5339 5340 # Check to see that the pipe works correctly. 5341 pipe_works=no 5342 5343 rm -f conftest* 5344 cat > conftest.$ac_ext <<_LT_EOF 5345#ifdef __cplusplus 5346extern "C" { 5347#endif 5348char nm_test_var; 5349void nm_test_func(void); 5350void nm_test_func(void){} 5351#ifdef __cplusplus 5352} 5353#endif 5354int main(){nm_test_var='a';nm_test_func();return(0);} 5355_LT_EOF 5356 5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5358 (eval $ac_compile) 2>&5 5359 ac_status=$? 5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5361 (exit $ac_status); }; then 5362 # Now try to grab the symbols. 5363 nlist=conftest.nm 5364 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5365 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5366 ac_status=$? 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5368 (exit $ac_status); } && test -s "$nlist"; then 5369 # Try sorting and uniquifying the output. 5370 if sort "$nlist" | uniq > "$nlist"T; then 5371 mv -f "$nlist"T "$nlist" 5372 else 5373 rm -f "$nlist"T 5374 fi 5375 5376 # Make sure that we snagged all the symbols we need. 5377 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5378 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5379 cat <<_LT_EOF > conftest.$ac_ext 5380#ifdef __cplusplus 5381extern "C" { 5382#endif 5383 5384_LT_EOF 5385 # Now generate the symbol file. 5386 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5387 5388 cat <<_LT_EOF >> conftest.$ac_ext 5389 5390/* The mapping between symbol names and symbols. */ 5391const struct { 5392 const char *name; 5393 void *address; 5394} 5395lt__PROGRAM__LTX_preloaded_symbols[] = 5396{ 5397 { "@PROGRAM@", (void *) 0 }, 5398_LT_EOF 5399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5400 cat <<\_LT_EOF >> conftest.$ac_ext 5401 {0, (void *) 0} 5402}; 5403 5404/* This works around a problem in FreeBSD linker */ 5405#ifdef FREEBSD_WORKAROUND 5406static const void *lt_preloaded_setup() { 5407 return lt__PROGRAM__LTX_preloaded_symbols; 5408} 5409#endif 5410 5411#ifdef __cplusplus 5412} 5413#endif 5414_LT_EOF 5415 # Now try linking the two files. 5416 mv conftest.$ac_objext conftstm.$ac_objext 5417 lt_save_LIBS="$LIBS" 5418 lt_save_CFLAGS="$CFLAGS" 5419 LIBS="conftstm.$ac_objext" 5420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5422 (eval $ac_link) 2>&5 5423 ac_status=$? 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5425 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5426 pipe_works=yes 5427 fi 5428 LIBS="$lt_save_LIBS" 5429 CFLAGS="$lt_save_CFLAGS" 5430 else 5431 echo "cannot find nm_test_func in $nlist" >&5 5432 fi 5433 else 5434 echo "cannot find nm_test_var in $nlist" >&5 5435 fi 5436 else 5437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5438 fi 5439 else 5440 echo "$progname: failed program was:" >&5 5441 cat conftest.$ac_ext >&5 5442 fi 5443 rm -rf conftest* conftst* 5444 5445 # Do not use the global_symbol_pipe unless it works. 5446 if test "$pipe_works" = yes; then 5447 break 5448 else 5449 lt_cv_sys_global_symbol_pipe= 5450 fi 5451done 5452 5453fi 5454 5455if test -z "$lt_cv_sys_global_symbol_pipe"; then 5456 lt_cv_sys_global_symbol_to_cdecl= 5457fi 5458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5459 { echo "$as_me:$LINENO: result: failed" >&5 5460echo "${ECHO_T}failed" >&6; } 5461else 5462 { echo "$as_me:$LINENO: result: ok" >&5 5463echo "${ECHO_T}ok" >&6; } 5464fi 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488# Check whether --enable-libtool-lock was given. 5489if test "${enable_libtool_lock+set}" = set; then 5490 enableval=$enable_libtool_lock; 5491fi 5492 5493test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5494 5495# Some flags need to be propagated to the compiler or linker for good 5496# libtool support. 5497case $host in 5498ia64-*-hpux*) 5499 # Find out which ABI we are using. 5500 echo 'int i;' > conftest.$ac_ext 5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5502 (eval $ac_compile) 2>&5 5503 ac_status=$? 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); }; then 5506 case `/usr/bin/file conftest.$ac_objext` in 5507 *ELF-32*) 5508 HPUX_IA64_MODE="32" 5509 ;; 5510 *ELF-64*) 5511 HPUX_IA64_MODE="64" 5512 ;; 5513 esac 5514 fi 5515 rm -rf conftest* 5516 ;; 5517*-*-irix6*) 5518 # Find out which ABI we are using. 5519 echo '#line 5519 "configure"' > conftest.$ac_ext 5520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5521 (eval $ac_compile) 2>&5 5522 ac_status=$? 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); }; then 5525 if test "$lt_cv_prog_gnu_ld" = yes; then 5526 case `/usr/bin/file conftest.$ac_objext` in 5527 *32-bit*) 5528 LD="${LD-ld} -melf32bsmip" 5529 ;; 5530 *N32*) 5531 LD="${LD-ld} -melf32bmipn32" 5532 ;; 5533 *64-bit*) 5534 LD="${LD-ld} -melf64bmip" 5535 ;; 5536 esac 5537 else 5538 case `/usr/bin/file conftest.$ac_objext` in 5539 *32-bit*) 5540 LD="${LD-ld} -32" 5541 ;; 5542 *N32*) 5543 LD="${LD-ld} -n32" 5544 ;; 5545 *64-bit*) 5546 LD="${LD-ld} -64" 5547 ;; 5548 esac 5549 fi 5550 fi 5551 rm -rf conftest* 5552 ;; 5553 5554x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5555s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5556 # Find out which ABI we are using. 5557 echo 'int i;' > conftest.$ac_ext 5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5559 (eval $ac_compile) 2>&5 5560 ac_status=$? 5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5562 (exit $ac_status); }; then 5563 case `/usr/bin/file conftest.o` in 5564 *32-bit*) 5565 case $host in 5566 x86_64-*kfreebsd*-gnu) 5567 LD="${LD-ld} -m elf_i386_fbsd" 5568 ;; 5569 x86_64-*linux*) 5570 LD="${LD-ld} -m elf_i386" 5571 ;; 5572 ppc64-*linux*|powerpc64-*linux*) 5573 LD="${LD-ld} -m elf32ppclinux" 5574 ;; 5575 s390x-*linux*) 5576 LD="${LD-ld} -m elf_s390" 5577 ;; 5578 sparc64-*linux*) 5579 LD="${LD-ld} -m elf32_sparc" 5580 ;; 5581 esac 5582 ;; 5583 *64-bit*) 5584 case $host in 5585 x86_64-*kfreebsd*-gnu) 5586 LD="${LD-ld} -m elf_x86_64_fbsd" 5587 ;; 5588 x86_64-*linux*) 5589 LD="${LD-ld} -m elf_x86_64" 5590 ;; 5591 ppc*-*linux*|powerpc*-*linux*) 5592 LD="${LD-ld} -m elf64ppc" 5593 ;; 5594 s390*-*linux*|s390*-*tpf*) 5595 LD="${LD-ld} -m elf64_s390" 5596 ;; 5597 sparc*-*linux*) 5598 LD="${LD-ld} -m elf64_sparc" 5599 ;; 5600 esac 5601 ;; 5602 esac 5603 fi 5604 rm -rf conftest* 5605 ;; 5606 5607*-*-sco3.2v5*) 5608 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5609 SAVE_CFLAGS="$CFLAGS" 5610 CFLAGS="$CFLAGS -belf" 5611 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5612echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5613if test "${lt_cv_cc_needs_belf+set}" = set; then 5614 echo $ECHO_N "(cached) $ECHO_C" >&6 5615else 5616 ac_ext=c 5617ac_cpp='$CPP $CPPFLAGS' 5618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5620ac_compiler_gnu=$ac_cv_c_compiler_gnu 5621 5622 cat >conftest.$ac_ext <<_ACEOF 5623/* confdefs.h. */ 5624_ACEOF 5625cat confdefs.h >>conftest.$ac_ext 5626cat >>conftest.$ac_ext <<_ACEOF 5627/* end confdefs.h. */ 5628 5629int 5630main () 5631{ 5632 5633 ; 5634 return 0; 5635} 5636_ACEOF 5637rm -f conftest.$ac_objext conftest$ac_exeext 5638if { (ac_try="$ac_link" 5639case "(($ac_try" in 5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5641 *) ac_try_echo=$ac_try;; 5642esac 5643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5644 (eval "$ac_link") 2>conftest.er1 5645 ac_status=$? 5646 grep -v '^ *+' conftest.er1 >conftest.err 5647 rm -f conftest.er1 5648 cat conftest.err >&5 5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5650 (exit $ac_status); } && { 5651 test -z "$ac_c_werror_flag" || 5652 test ! -s conftest.err 5653 } && test -s conftest$ac_exeext && 5654 $as_test_x conftest$ac_exeext; then 5655 lt_cv_cc_needs_belf=yes 5656else 5657 echo "$as_me: failed program was:" >&5 5658sed 's/^/| /' conftest.$ac_ext >&5 5659 5660 lt_cv_cc_needs_belf=no 5661fi 5662 5663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5664 conftest$ac_exeext conftest.$ac_ext 5665 ac_ext=c 5666ac_cpp='$CPP $CPPFLAGS' 5667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5669ac_compiler_gnu=$ac_cv_c_compiler_gnu 5670 5671fi 5672{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5673echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5674 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5675 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5676 CFLAGS="$SAVE_CFLAGS" 5677 fi 5678 ;; 5679sparc*-*solaris*) 5680 # Find out which ABI we are using. 5681 echo 'int i;' > conftest.$ac_ext 5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5683 (eval $ac_compile) 2>&5 5684 ac_status=$? 5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5686 (exit $ac_status); }; then 5687 case `/usr/bin/file conftest.o` in 5688 *64-bit*) 5689 case $lt_cv_prog_gnu_ld in 5690 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5691 *) 5692 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5693 LD="${LD-ld} -64" 5694 fi 5695 ;; 5696 esac 5697 ;; 5698 esac 5699 fi 5700 rm -rf conftest* 5701 ;; 5702esac 5703 5704need_locks="$enable_libtool_lock" 5705 5706 5707 case $host_os in 5708 rhapsody* | darwin*) 5709 if test -n "$ac_tool_prefix"; then 5710 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5711set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5714if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5715 echo $ECHO_N "(cached) $ECHO_C" >&6 5716else 5717 if test -n "$DSYMUTIL"; then 5718 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5719else 5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH 5722do 5723 IFS=$as_save_IFS 5724 test -z "$as_dir" && as_dir=. 5725 for ac_exec_ext in '' $ac_executable_extensions; do 5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5727 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5729 break 2 5730 fi 5731done 5732done 5733IFS=$as_save_IFS 5734 5735fi 5736fi 5737DSYMUTIL=$ac_cv_prog_DSYMUTIL 5738if test -n "$DSYMUTIL"; then 5739 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5740echo "${ECHO_T}$DSYMUTIL" >&6; } 5741else 5742 { echo "$as_me:$LINENO: result: no" >&5 5743echo "${ECHO_T}no" >&6; } 5744fi 5745 5746 5747fi 5748if test -z "$ac_cv_prog_DSYMUTIL"; then 5749 ac_ct_DSYMUTIL=$DSYMUTIL 5750 # Extract the first word of "dsymutil", so it can be a program name with args. 5751set dummy dsymutil; ac_word=$2 5752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5754if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5755 echo $ECHO_N "(cached) $ECHO_C" >&6 5756else 5757 if test -n "$ac_ct_DSYMUTIL"; then 5758 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5767 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5778if test -n "$ac_ct_DSYMUTIL"; then 5779 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5780echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 5781else 5782 { echo "$as_me:$LINENO: result: no" >&5 5783echo "${ECHO_T}no" >&6; } 5784fi 5785 5786 if test "x$ac_ct_DSYMUTIL" = x; then 5787 DSYMUTIL=":" 5788 else 5789 case $cross_compiling:$ac_tool_warned in 5790yes:) 5791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5792whose name does not start with the host triplet. If you think this 5793configuration is useful to you, please write to autoconf@gnu.org." >&5 5794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5795whose name does not start with the host triplet. If you think this 5796configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5797ac_tool_warned=yes ;; 5798esac 5799 DSYMUTIL=$ac_ct_DSYMUTIL 5800 fi 5801else 5802 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5803fi 5804 5805 if test -n "$ac_tool_prefix"; then 5806 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5807set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5808{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5810if test "${ac_cv_prog_NMEDIT+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812else 5813 if test -n "$NMEDIT"; then 5814 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5815else 5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5817for as_dir in $PATH 5818do 5819 IFS=$as_save_IFS 5820 test -z "$as_dir" && as_dir=. 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5823 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827done 5828done 5829IFS=$as_save_IFS 5830 5831fi 5832fi 5833NMEDIT=$ac_cv_prog_NMEDIT 5834if test -n "$NMEDIT"; then 5835 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 5836echo "${ECHO_T}$NMEDIT" >&6; } 5837else 5838 { echo "$as_me:$LINENO: result: no" >&5 5839echo "${ECHO_T}no" >&6; } 5840fi 5841 5842 5843fi 5844if test -z "$ac_cv_prog_NMEDIT"; then 5845 ac_ct_NMEDIT=$NMEDIT 5846 # Extract the first word of "nmedit", so it can be a program name with args. 5847set dummy nmedit; ac_word=$2 5848{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5850if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5851 echo $ECHO_N "(cached) $ECHO_C" >&6 5852else 5853 if test -n "$ac_ct_NMEDIT"; then 5854 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5855else 5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5857for as_dir in $PATH 5858do 5859 IFS=$as_save_IFS 5860 test -z "$as_dir" && as_dir=. 5861 for ac_exec_ext in '' $ac_executable_extensions; do 5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5863 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5865 break 2 5866 fi 5867done 5868done 5869IFS=$as_save_IFS 5870 5871fi 5872fi 5873ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5874if test -n "$ac_ct_NMEDIT"; then 5875 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5876echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 5877else 5878 { echo "$as_me:$LINENO: result: no" >&5 5879echo "${ECHO_T}no" >&6; } 5880fi 5881 5882 if test "x$ac_ct_NMEDIT" = x; then 5883 NMEDIT=":" 5884 else 5885 case $cross_compiling:$ac_tool_warned in 5886yes:) 5887{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5888whose name does not start with the host triplet. If you think this 5889configuration is useful to you, please write to autoconf@gnu.org." >&5 5890echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5891whose name does not start with the host triplet. If you think this 5892configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5893ac_tool_warned=yes ;; 5894esac 5895 NMEDIT=$ac_ct_NMEDIT 5896 fi 5897else 5898 NMEDIT="$ac_cv_prog_NMEDIT" 5899fi 5900 5901 if test -n "$ac_tool_prefix"; then 5902 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5903set dummy ${ac_tool_prefix}lipo; ac_word=$2 5904{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5906if test "${ac_cv_prog_LIPO+set}" = set; then 5907 echo $ECHO_N "(cached) $ECHO_C" >&6 5908else 5909 if test -n "$LIPO"; then 5910 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5911else 5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913for as_dir in $PATH 5914do 5915 IFS=$as_save_IFS 5916 test -z "$as_dir" && as_dir=. 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5919 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923done 5924done 5925IFS=$as_save_IFS 5926 5927fi 5928fi 5929LIPO=$ac_cv_prog_LIPO 5930if test -n "$LIPO"; then 5931 { echo "$as_me:$LINENO: result: $LIPO" >&5 5932echo "${ECHO_T}$LIPO" >&6; } 5933else 5934 { echo "$as_me:$LINENO: result: no" >&5 5935echo "${ECHO_T}no" >&6; } 5936fi 5937 5938 5939fi 5940if test -z "$ac_cv_prog_LIPO"; then 5941 ac_ct_LIPO=$LIPO 5942 # Extract the first word of "lipo", so it can be a program name with args. 5943set dummy lipo; ac_word=$2 5944{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5946if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948else 5949 if test -n "$ac_ct_LIPO"; then 5950 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5951else 5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953for as_dir in $PATH 5954do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5959 ac_cv_prog_ac_ct_LIPO="lipo" 5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963done 5964done 5965IFS=$as_save_IFS 5966 5967fi 5968fi 5969ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5970if test -n "$ac_ct_LIPO"; then 5971 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5972echo "${ECHO_T}$ac_ct_LIPO" >&6; } 5973else 5974 { echo "$as_me:$LINENO: result: no" >&5 5975echo "${ECHO_T}no" >&6; } 5976fi 5977 5978 if test "x$ac_ct_LIPO" = x; then 5979 LIPO=":" 5980 else 5981 case $cross_compiling:$ac_tool_warned in 5982yes:) 5983{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5984whose name does not start with the host triplet. If you think this 5985configuration is useful to you, please write to autoconf@gnu.org." >&5 5986echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5987whose name does not start with the host triplet. If you think this 5988configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5989ac_tool_warned=yes ;; 5990esac 5991 LIPO=$ac_ct_LIPO 5992 fi 5993else 5994 LIPO="$ac_cv_prog_LIPO" 5995fi 5996 5997 if test -n "$ac_tool_prefix"; then 5998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5999set dummy ${ac_tool_prefix}otool; ac_word=$2 6000{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6002if test "${ac_cv_prog_OTOOL+set}" = set; then 6003 echo $ECHO_N "(cached) $ECHO_C" >&6 6004else 6005 if test -n "$OTOOL"; then 6006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6007else 6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019done 6020done 6021IFS=$as_save_IFS 6022 6023fi 6024fi 6025OTOOL=$ac_cv_prog_OTOOL 6026if test -n "$OTOOL"; then 6027 { echo "$as_me:$LINENO: result: $OTOOL" >&5 6028echo "${ECHO_T}$OTOOL" >&6; } 6029else 6030 { echo "$as_me:$LINENO: result: no" >&5 6031echo "${ECHO_T}no" >&6; } 6032fi 6033 6034 6035fi 6036if test -z "$ac_cv_prog_OTOOL"; then 6037 ac_ct_OTOOL=$OTOOL 6038 # Extract the first word of "otool", so it can be a program name with args. 6039set dummy otool; ac_word=$2 6040{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6042if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6043 echo $ECHO_N "(cached) $ECHO_C" >&6 6044else 6045 if test -n "$ac_ct_OTOOL"; then 6046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6055 ac_cv_prog_ac_ct_OTOOL="otool" 6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6066if test -n "$ac_ct_OTOOL"; then 6067 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6068echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 6069else 6070 { echo "$as_me:$LINENO: result: no" >&5 6071echo "${ECHO_T}no" >&6; } 6072fi 6073 6074 if test "x$ac_ct_OTOOL" = x; then 6075 OTOOL=":" 6076 else 6077 case $cross_compiling:$ac_tool_warned in 6078yes:) 6079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6080whose name does not start with the host triplet. If you think this 6081configuration is useful to you, please write to autoconf@gnu.org." >&5 6082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6083whose name does not start with the host triplet. If you think this 6084configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6085ac_tool_warned=yes ;; 6086esac 6087 OTOOL=$ac_ct_OTOOL 6088 fi 6089else 6090 OTOOL="$ac_cv_prog_OTOOL" 6091fi 6092 6093 if test -n "$ac_tool_prefix"; then 6094 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6095set dummy ${ac_tool_prefix}otool64; ac_word=$2 6096{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6098if test "${ac_cv_prog_OTOOL64+set}" = set; then 6099 echo $ECHO_N "(cached) $ECHO_C" >&6 6100else 6101 if test -n "$OTOOL64"; then 6102 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6111 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121OTOOL64=$ac_cv_prog_OTOOL64 6122if test -n "$OTOOL64"; then 6123 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 6124echo "${ECHO_T}$OTOOL64" >&6; } 6125else 6126 { echo "$as_me:$LINENO: result: no" >&5 6127echo "${ECHO_T}no" >&6; } 6128fi 6129 6130 6131fi 6132if test -z "$ac_cv_prog_OTOOL64"; then 6133 ac_ct_OTOOL64=$OTOOL64 6134 # Extract the first word of "otool64", so it can be a program name with args. 6135set dummy otool64; ac_word=$2 6136{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6138if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 if test -n "$ac_ct_OTOOL64"; then 6142 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6143else 6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6145for as_dir in $PATH 6146do 6147 IFS=$as_save_IFS 6148 test -z "$as_dir" && as_dir=. 6149 for ac_exec_ext in '' $ac_executable_extensions; do 6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6151 ac_cv_prog_ac_ct_OTOOL64="otool64" 6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6153 break 2 6154 fi 6155done 6156done 6157IFS=$as_save_IFS 6158 6159fi 6160fi 6161ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6162if test -n "$ac_ct_OTOOL64"; then 6163 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6164echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 6165else 6166 { echo "$as_me:$LINENO: result: no" >&5 6167echo "${ECHO_T}no" >&6; } 6168fi 6169 6170 if test "x$ac_ct_OTOOL64" = x; then 6171 OTOOL64=":" 6172 else 6173 case $cross_compiling:$ac_tool_warned in 6174yes:) 6175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6176whose name does not start with the host triplet. If you think this 6177configuration is useful to you, please write to autoconf@gnu.org." >&5 6178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6179whose name does not start with the host triplet. If you think this 6180configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6181ac_tool_warned=yes ;; 6182esac 6183 OTOOL64=$ac_ct_OTOOL64 6184 fi 6185else 6186 OTOOL64="$ac_cv_prog_OTOOL64" 6187fi 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6216echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6217if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6218 echo $ECHO_N "(cached) $ECHO_C" >&6 6219else 6220 lt_cv_apple_cc_single_mod=no 6221 if test -z "${LT_MULTI_MODULE}"; then 6222 # By default we will add the -single_module flag. You can override 6223 # by either setting the environment variable LT_MULTI_MODULE 6224 # non-empty at configure time, or by adding -multi_module to the 6225 # link flags. 6226 rm -rf libconftest.dylib* 6227 echo "int foo(void){return 1;}" > conftest.c 6228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6229-dynamiclib -Wl,-single_module conftest.c" >&5 6230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6232 _lt_result=$? 6233 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6234 lt_cv_apple_cc_single_mod=yes 6235 else 6236 cat conftest.err >&5 6237 fi 6238 rm -rf libconftest.dylib* 6239 rm -f conftest.* 6240 fi 6241fi 6242{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6243echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6244 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6245echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6246if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6247 echo $ECHO_N "(cached) $ECHO_C" >&6 6248else 6249 lt_cv_ld_exported_symbols_list=no 6250 save_LDFLAGS=$LDFLAGS 6251 echo "_main" > conftest.sym 6252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6253 cat >conftest.$ac_ext <<_ACEOF 6254/* confdefs.h. */ 6255_ACEOF 6256cat confdefs.h >>conftest.$ac_ext 6257cat >>conftest.$ac_ext <<_ACEOF 6258/* end confdefs.h. */ 6259 6260int 6261main () 6262{ 6263 6264 ; 6265 return 0; 6266} 6267_ACEOF 6268rm -f conftest.$ac_objext conftest$ac_exeext 6269if { (ac_try="$ac_link" 6270case "(($ac_try" in 6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6272 *) ac_try_echo=$ac_try;; 6273esac 6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6275 (eval "$ac_link") 2>conftest.er1 6276 ac_status=$? 6277 grep -v '^ *+' conftest.er1 >conftest.err 6278 rm -f conftest.er1 6279 cat conftest.err >&5 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6281 (exit $ac_status); } && { 6282 test -z "$ac_c_werror_flag" || 6283 test ! -s conftest.err 6284 } && test -s conftest$ac_exeext && 6285 $as_test_x conftest$ac_exeext; then 6286 lt_cv_ld_exported_symbols_list=yes 6287else 6288 echo "$as_me: failed program was:" >&5 6289sed 's/^/| /' conftest.$ac_ext >&5 6290 6291 lt_cv_ld_exported_symbols_list=no 6292fi 6293 6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6295 conftest$ac_exeext conftest.$ac_ext 6296 LDFLAGS="$save_LDFLAGS" 6297 6298fi 6299{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6300echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6301 case $host_os in 6302 rhapsody* | darwin1.[012]) 6303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6304 darwin1.*) 6305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6306 darwin*) # darwin 5.x on 6307 # if running on 10.5 or later, the deployment target defaults 6308 # to the OS version, if on x86, and 10.4, the deployment 6309 # target defaults to 10.4. Don't you love it? 6310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6311 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6313 10.[012]*) 6314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6315 10.*) 6316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6317 esac 6318 ;; 6319 esac 6320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6321 _lt_dar_single_mod='$single_module' 6322 fi 6323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6325 else 6326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6327 fi 6328 if test "$DSYMUTIL" != ":"; then 6329 _lt_dsymutil='~$DSYMUTIL $lib || :' 6330 else 6331 _lt_dsymutil= 6332 fi 6333 ;; 6334 esac 6335 6336ac_ext=c 6337ac_cpp='$CPP $CPPFLAGS' 6338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6340ac_compiler_gnu=$ac_cv_c_compiler_gnu 6341{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6342echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6343# On Suns, sometimes $CPP names a directory. 6344if test -n "$CPP" && test -d "$CPP"; then 6345 CPP= 6346fi 6347if test -z "$CPP"; then 6348 if test "${ac_cv_prog_CPP+set}" = set; then 6349 echo $ECHO_N "(cached) $ECHO_C" >&6 6350else 6351 # Double quotes because CPP needs to be expanded 6352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6353 do 6354 ac_preproc_ok=false 6355for ac_c_preproc_warn_flag in '' yes 6356do 6357 # Use a header file that comes with gcc, so configuring glibc 6358 # with a fresh cross-compiler works. 6359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6360 # <limits.h> exists even on freestanding compilers. 6361 # On the NeXT, cc -E runs the code through the compiler's parser, 6362 # not just through cpp. "Syntax error" is here to catch this case. 6363 cat >conftest.$ac_ext <<_ACEOF 6364/* confdefs.h. */ 6365_ACEOF 6366cat confdefs.h >>conftest.$ac_ext 6367cat >>conftest.$ac_ext <<_ACEOF 6368/* end confdefs.h. */ 6369#ifdef __STDC__ 6370# include <limits.h> 6371#else 6372# include <assert.h> 6373#endif 6374 Syntax error 6375_ACEOF 6376if { (ac_try="$ac_cpp conftest.$ac_ext" 6377case "(($ac_try" in 6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6379 *) ac_try_echo=$ac_try;; 6380esac 6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6383 ac_status=$? 6384 grep -v '^ *+' conftest.er1 >conftest.err 6385 rm -f conftest.er1 6386 cat conftest.err >&5 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6388 (exit $ac_status); } >/dev/null && { 6389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6390 test ! -s conftest.err 6391 }; then 6392 : 6393else 6394 echo "$as_me: failed program was:" >&5 6395sed 's/^/| /' conftest.$ac_ext >&5 6396 6397 # Broken: fails on valid input. 6398continue 6399fi 6400 6401rm -f conftest.err conftest.$ac_ext 6402 6403 # OK, works on sane cases. Now check whether nonexistent headers 6404 # can be detected and how. 6405 cat >conftest.$ac_ext <<_ACEOF 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411#include <ac_nonexistent.h> 6412_ACEOF 6413if { (ac_try="$ac_cpp conftest.$ac_ext" 6414case "(($ac_try" in 6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6416 *) ac_try_echo=$ac_try;; 6417esac 6418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6420 ac_status=$? 6421 grep -v '^ *+' conftest.er1 >conftest.err 6422 rm -f conftest.er1 6423 cat conftest.err >&5 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); } >/dev/null && { 6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6427 test ! -s conftest.err 6428 }; then 6429 # Broken: success on invalid input. 6430continue 6431else 6432 echo "$as_me: failed program was:" >&5 6433sed 's/^/| /' conftest.$ac_ext >&5 6434 6435 # Passes both tests. 6436ac_preproc_ok=: 6437break 6438fi 6439 6440rm -f conftest.err conftest.$ac_ext 6441 6442done 6443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6444rm -f conftest.err conftest.$ac_ext 6445if $ac_preproc_ok; then 6446 break 6447fi 6448 6449 done 6450 ac_cv_prog_CPP=$CPP 6451 6452fi 6453 CPP=$ac_cv_prog_CPP 6454else 6455 ac_cv_prog_CPP=$CPP 6456fi 6457{ echo "$as_me:$LINENO: result: $CPP" >&5 6458echo "${ECHO_T}$CPP" >&6; } 6459ac_preproc_ok=false 6460for ac_c_preproc_warn_flag in '' yes 6461do 6462 # Use a header file that comes with gcc, so configuring glibc 6463 # with a fresh cross-compiler works. 6464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6465 # <limits.h> exists even on freestanding compilers. 6466 # On the NeXT, cc -E runs the code through the compiler's parser, 6467 # not just through cpp. "Syntax error" is here to catch this case. 6468 cat >conftest.$ac_ext <<_ACEOF 6469/* confdefs.h. */ 6470_ACEOF 6471cat confdefs.h >>conftest.$ac_ext 6472cat >>conftest.$ac_ext <<_ACEOF 6473/* end confdefs.h. */ 6474#ifdef __STDC__ 6475# include <limits.h> 6476#else 6477# include <assert.h> 6478#endif 6479 Syntax error 6480_ACEOF 6481if { (ac_try="$ac_cpp conftest.$ac_ext" 6482case "(($ac_try" in 6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6484 *) ac_try_echo=$ac_try;; 6485esac 6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6488 ac_status=$? 6489 grep -v '^ *+' conftest.er1 >conftest.err 6490 rm -f conftest.er1 6491 cat conftest.err >&5 6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6493 (exit $ac_status); } >/dev/null && { 6494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6495 test ! -s conftest.err 6496 }; then 6497 : 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502 # Broken: fails on valid input. 6503continue 6504fi 6505 6506rm -f conftest.err conftest.$ac_ext 6507 6508 # OK, works on sane cases. Now check whether nonexistent headers 6509 # can be detected and how. 6510 cat >conftest.$ac_ext <<_ACEOF 6511/* confdefs.h. */ 6512_ACEOF 6513cat confdefs.h >>conftest.$ac_ext 6514cat >>conftest.$ac_ext <<_ACEOF 6515/* end confdefs.h. */ 6516#include <ac_nonexistent.h> 6517_ACEOF 6518if { (ac_try="$ac_cpp conftest.$ac_ext" 6519case "(($ac_try" in 6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6521 *) ac_try_echo=$ac_try;; 6522esac 6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6525 ac_status=$? 6526 grep -v '^ *+' conftest.er1 >conftest.err 6527 rm -f conftest.er1 6528 cat conftest.err >&5 6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6530 (exit $ac_status); } >/dev/null && { 6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6532 test ! -s conftest.err 6533 }; then 6534 # Broken: success on invalid input. 6535continue 6536else 6537 echo "$as_me: failed program was:" >&5 6538sed 's/^/| /' conftest.$ac_ext >&5 6539 6540 # Passes both tests. 6541ac_preproc_ok=: 6542break 6543fi 6544 6545rm -f conftest.err conftest.$ac_ext 6546 6547done 6548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6549rm -f conftest.err conftest.$ac_ext 6550if $ac_preproc_ok; then 6551 : 6552else 6553 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6554See \`config.log' for more details." >&5 6555echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6556See \`config.log' for more details." >&2;} 6557 { (exit 1); exit 1; }; } 6558fi 6559 6560ac_ext=c 6561ac_cpp='$CPP $CPPFLAGS' 6562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6564ac_compiler_gnu=$ac_cv_c_compiler_gnu 6565 6566 6567{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6568echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6569if test "${ac_cv_header_stdc+set}" = set; then 6570 echo $ECHO_N "(cached) $ECHO_C" >&6 6571else 6572 cat >conftest.$ac_ext <<_ACEOF 6573/* confdefs.h. */ 6574_ACEOF 6575cat confdefs.h >>conftest.$ac_ext 6576cat >>conftest.$ac_ext <<_ACEOF 6577/* end confdefs.h. */ 6578#include <stdlib.h> 6579#include <stdarg.h> 6580#include <string.h> 6581#include <float.h> 6582 6583int 6584main () 6585{ 6586 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591rm -f conftest.$ac_objext 6592if { (ac_try="$ac_compile" 6593case "(($ac_try" in 6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6595 *) ac_try_echo=$ac_try;; 6596esac 6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6598 (eval "$ac_compile") 2>conftest.er1 6599 ac_status=$? 6600 grep -v '^ *+' conftest.er1 >conftest.err 6601 rm -f conftest.er1 6602 cat conftest.err >&5 6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6604 (exit $ac_status); } && { 6605 test -z "$ac_c_werror_flag" || 6606 test ! -s conftest.err 6607 } && test -s conftest.$ac_objext; then 6608 ac_cv_header_stdc=yes 6609else 6610 echo "$as_me: failed program was:" >&5 6611sed 's/^/| /' conftest.$ac_ext >&5 6612 6613 ac_cv_header_stdc=no 6614fi 6615 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617 6618if test $ac_cv_header_stdc = yes; then 6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6620 cat >conftest.$ac_ext <<_ACEOF 6621/* confdefs.h. */ 6622_ACEOF 6623cat confdefs.h >>conftest.$ac_ext 6624cat >>conftest.$ac_ext <<_ACEOF 6625/* end confdefs.h. */ 6626#include <string.h> 6627 6628_ACEOF 6629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6630 $EGREP "memchr" >/dev/null 2>&1; then 6631 : 6632else 6633 ac_cv_header_stdc=no 6634fi 6635rm -f conftest* 6636 6637fi 6638 6639if test $ac_cv_header_stdc = yes; then 6640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6641 cat >conftest.$ac_ext <<_ACEOF 6642/* confdefs.h. */ 6643_ACEOF 6644cat confdefs.h >>conftest.$ac_ext 6645cat >>conftest.$ac_ext <<_ACEOF 6646/* end confdefs.h. */ 6647#include <stdlib.h> 6648 6649_ACEOF 6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6651 $EGREP "free" >/dev/null 2>&1; then 6652 : 6653else 6654 ac_cv_header_stdc=no 6655fi 6656rm -f conftest* 6657 6658fi 6659 6660if test $ac_cv_header_stdc = yes; then 6661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6662 if test "$cross_compiling" = yes; then 6663 : 6664else 6665 cat >conftest.$ac_ext <<_ACEOF 6666/* confdefs.h. */ 6667_ACEOF 6668cat confdefs.h >>conftest.$ac_ext 6669cat >>conftest.$ac_ext <<_ACEOF 6670/* end confdefs.h. */ 6671#include <ctype.h> 6672#include <stdlib.h> 6673#if ((' ' & 0x0FF) == 0x020) 6674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6676#else 6677# define ISLOWER(c) \ 6678 (('a' <= (c) && (c) <= 'i') \ 6679 || ('j' <= (c) && (c) <= 'r') \ 6680 || ('s' <= (c) && (c) <= 'z')) 6681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6682#endif 6683 6684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6685int 6686main () 6687{ 6688 int i; 6689 for (i = 0; i < 256; i++) 6690 if (XOR (islower (i), ISLOWER (i)) 6691 || toupper (i) != TOUPPER (i)) 6692 return 2; 6693 return 0; 6694} 6695_ACEOF 6696rm -f conftest$ac_exeext 6697if { (ac_try="$ac_link" 6698case "(($ac_try" in 6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6700 *) ac_try_echo=$ac_try;; 6701esac 6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6703 (eval "$ac_link") 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6707 { (case "(($ac_try" in 6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6709 *) ac_try_echo=$ac_try;; 6710esac 6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6712 (eval "$ac_try") 2>&5 6713 ac_status=$? 6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6715 (exit $ac_status); }; }; then 6716 : 6717else 6718 echo "$as_me: program exited with status $ac_status" >&5 6719echo "$as_me: failed program was:" >&5 6720sed 's/^/| /' conftest.$ac_ext >&5 6721 6722( exit $ac_status ) 6723ac_cv_header_stdc=no 6724fi 6725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6726fi 6727 6728 6729fi 6730fi 6731{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6732echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6733if test $ac_cv_header_stdc = yes; then 6734 6735cat >>confdefs.h <<\_ACEOF 6736#define STDC_HEADERS 1 6737_ACEOF 6738 6739fi 6740 6741# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6752 inttypes.h stdint.h unistd.h 6753do 6754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6755{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6758 echo $ECHO_N "(cached) $ECHO_C" >&6 6759else 6760 cat >conftest.$ac_ext <<_ACEOF 6761/* confdefs.h. */ 6762_ACEOF 6763cat confdefs.h >>conftest.$ac_ext 6764cat >>conftest.$ac_ext <<_ACEOF 6765/* end confdefs.h. */ 6766$ac_includes_default 6767 6768#include <$ac_header> 6769_ACEOF 6770rm -f conftest.$ac_objext 6771if { (ac_try="$ac_compile" 6772case "(($ac_try" in 6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6774 *) ac_try_echo=$ac_try;; 6775esac 6776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6777 (eval "$ac_compile") 2>conftest.er1 6778 ac_status=$? 6779 grep -v '^ *+' conftest.er1 >conftest.err 6780 rm -f conftest.er1 6781 cat conftest.err >&5 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); } && { 6784 test -z "$ac_c_werror_flag" || 6785 test ! -s conftest.err 6786 } && test -s conftest.$ac_objext; then 6787 eval "$as_ac_Header=yes" 6788else 6789 echo "$as_me: failed program was:" >&5 6790sed 's/^/| /' conftest.$ac_ext >&5 6791 6792 eval "$as_ac_Header=no" 6793fi 6794 6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6796fi 6797ac_res=`eval echo '${'$as_ac_Header'}'` 6798 { echo "$as_me:$LINENO: result: $ac_res" >&5 6799echo "${ECHO_T}$ac_res" >&6; } 6800if test `eval echo '${'$as_ac_Header'}'` = yes; then 6801 cat >>confdefs.h <<_ACEOF 6802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6803_ACEOF 6804 6805fi 6806 6807done 6808 6809 6810 6811for ac_header in dlfcn.h 6812do 6813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6814{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6817 echo $ECHO_N "(cached) $ECHO_C" >&6 6818else 6819 cat >conftest.$ac_ext <<_ACEOF 6820/* confdefs.h. */ 6821_ACEOF 6822cat confdefs.h >>conftest.$ac_ext 6823cat >>conftest.$ac_ext <<_ACEOF 6824/* end confdefs.h. */ 6825$ac_includes_default 6826 6827#include <$ac_header> 6828_ACEOF 6829rm -f conftest.$ac_objext 6830if { (ac_try="$ac_compile" 6831case "(($ac_try" in 6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6833 *) ac_try_echo=$ac_try;; 6834esac 6835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6836 (eval "$ac_compile") 2>conftest.er1 6837 ac_status=$? 6838 grep -v '^ *+' conftest.er1 >conftest.err 6839 rm -f conftest.er1 6840 cat conftest.err >&5 6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6842 (exit $ac_status); } && { 6843 test -z "$ac_c_werror_flag" || 6844 test ! -s conftest.err 6845 } && test -s conftest.$ac_objext; then 6846 eval "$as_ac_Header=yes" 6847else 6848 echo "$as_me: failed program was:" >&5 6849sed 's/^/| /' conftest.$ac_ext >&5 6850 6851 eval "$as_ac_Header=no" 6852fi 6853 6854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6855fi 6856ac_res=`eval echo '${'$as_ac_Header'}'` 6857 { echo "$as_me:$LINENO: result: $ac_res" >&5 6858echo "${ECHO_T}$ac_res" >&6; } 6859if test `eval echo '${'$as_ac_Header'}'` = yes; then 6860 cat >>confdefs.h <<_ACEOF 6861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6862_ACEOF 6863 6864fi 6865 6866done 6867 6868 6869 6870# Set options 6871enable_dlopen=yes 6872enable_win32_dll=yes 6873 6874case $host in 6875*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 6876 if test -n "$ac_tool_prefix"; then 6877 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6878set dummy ${ac_tool_prefix}as; ac_word=$2 6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6881if test "${ac_cv_prog_AS+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 if test -n "$AS"; then 6885 ac_cv_prog_AS="$AS" # Let the user override the test. 6886else 6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888for as_dir in $PATH 6889do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6894 ac_cv_prog_AS="${ac_tool_prefix}as" 6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898done 6899done 6900IFS=$as_save_IFS 6901 6902fi 6903fi 6904AS=$ac_cv_prog_AS 6905if test -n "$AS"; then 6906 { echo "$as_me:$LINENO: result: $AS" >&5 6907echo "${ECHO_T}$AS" >&6; } 6908else 6909 { echo "$as_me:$LINENO: result: no" >&5 6910echo "${ECHO_T}no" >&6; } 6911fi 6912 6913 6914fi 6915if test -z "$ac_cv_prog_AS"; then 6916 ac_ct_AS=$AS 6917 # Extract the first word of "as", so it can be a program name with args. 6918set dummy as; ac_word=$2 6919{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6921if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 6922 echo $ECHO_N "(cached) $ECHO_C" >&6 6923else 6924 if test -n "$ac_ct_AS"; then 6925 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6926else 6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6934 ac_cv_prog_ac_ct_AS="as" 6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939done 6940IFS=$as_save_IFS 6941 6942fi 6943fi 6944ac_ct_AS=$ac_cv_prog_ac_ct_AS 6945if test -n "$ac_ct_AS"; then 6946 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 6947echo "${ECHO_T}$ac_ct_AS" >&6; } 6948else 6949 { echo "$as_me:$LINENO: result: no" >&5 6950echo "${ECHO_T}no" >&6; } 6951fi 6952 6953 if test "x$ac_ct_AS" = x; then 6954 AS="false" 6955 else 6956 case $cross_compiling:$ac_tool_warned in 6957yes:) 6958{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6959whose name does not start with the host triplet. If you think this 6960configuration is useful to you, please write to autoconf@gnu.org." >&5 6961echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6962whose name does not start with the host triplet. If you think this 6963configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6964ac_tool_warned=yes ;; 6965esac 6966 AS=$ac_ct_AS 6967 fi 6968else 6969 AS="$ac_cv_prog_AS" 6970fi 6971 6972 if test -n "$ac_tool_prefix"; then 6973 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6974set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6975{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6977if test "${ac_cv_prog_DLLTOOL+set}" = set; then 6978 echo $ECHO_N "(cached) $ECHO_C" >&6 6979else 6980 if test -n "$DLLTOOL"; then 6981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6982else 6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6984for as_dir in $PATH 6985do 6986 IFS=$as_save_IFS 6987 test -z "$as_dir" && as_dir=. 6988 for ac_exec_ext in '' $ac_executable_extensions; do 6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6990 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6992 break 2 6993 fi 6994done 6995done 6996IFS=$as_save_IFS 6997 6998fi 6999fi 7000DLLTOOL=$ac_cv_prog_DLLTOOL 7001if test -n "$DLLTOOL"; then 7002 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 7003echo "${ECHO_T}$DLLTOOL" >&6; } 7004else 7005 { echo "$as_me:$LINENO: result: no" >&5 7006echo "${ECHO_T}no" >&6; } 7007fi 7008 7009 7010fi 7011if test -z "$ac_cv_prog_DLLTOOL"; then 7012 ac_ct_DLLTOOL=$DLLTOOL 7013 # Extract the first word of "dlltool", so it can be a program name with args. 7014set dummy dlltool; ac_word=$2 7015{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7017if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 7018 echo $ECHO_N "(cached) $ECHO_C" >&6 7019else 7020 if test -n "$ac_ct_DLLTOOL"; then 7021 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7022else 7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7024for as_dir in $PATH 7025do 7026 IFS=$as_save_IFS 7027 test -z "$as_dir" && as_dir=. 7028 for ac_exec_ext in '' $ac_executable_extensions; do 7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7030 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7032 break 2 7033 fi 7034done 7035done 7036IFS=$as_save_IFS 7037 7038fi 7039fi 7040ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7041if test -n "$ac_ct_DLLTOOL"; then 7042 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 7043echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 7044else 7045 { echo "$as_me:$LINENO: result: no" >&5 7046echo "${ECHO_T}no" >&6; } 7047fi 7048 7049 if test "x$ac_ct_DLLTOOL" = x; then 7050 DLLTOOL="false" 7051 else 7052 case $cross_compiling:$ac_tool_warned in 7053yes:) 7054{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7055whose name does not start with the host triplet. If you think this 7056configuration is useful to you, please write to autoconf@gnu.org." >&5 7057echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7058whose name does not start with the host triplet. If you think this 7059configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7060ac_tool_warned=yes ;; 7061esac 7062 DLLTOOL=$ac_ct_DLLTOOL 7063 fi 7064else 7065 DLLTOOL="$ac_cv_prog_DLLTOOL" 7066fi 7067 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7070set dummy ${ac_tool_prefix}objdump; ac_word=$2 7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7073if test "${ac_cv_prog_OBJDUMP+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 if test -n "$OBJDUMP"; then 7077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096OBJDUMP=$ac_cv_prog_OBJDUMP 7097if test -n "$OBJDUMP"; then 7098 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 7099echo "${ECHO_T}$OBJDUMP" >&6; } 7100else 7101 { echo "$as_me:$LINENO: result: no" >&5 7102echo "${ECHO_T}no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_OBJDUMP"; then 7108 ac_ct_OBJDUMP=$OBJDUMP 7109 # Extract the first word of "objdump", so it can be a program name with args. 7110set dummy objdump; ac_word=$2 7111{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7113if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 7114 echo $ECHO_N "(cached) $ECHO_C" >&6 7115else 7116 if test -n "$ac_ct_OBJDUMP"; then 7117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7126 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7137if test -n "$ac_ct_OBJDUMP"; then 7138 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 7139echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 7140else 7141 { echo "$as_me:$LINENO: result: no" >&5 7142echo "${ECHO_T}no" >&6; } 7143fi 7144 7145 if test "x$ac_ct_OBJDUMP" = x; then 7146 OBJDUMP="false" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149yes:) 7150{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7151whose name does not start with the host triplet. If you think this 7152configuration is useful to you, please write to autoconf@gnu.org." >&5 7153echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7154whose name does not start with the host triplet. If you think this 7155configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7156ac_tool_warned=yes ;; 7157esac 7158 OBJDUMP=$ac_ct_OBJDUMP 7159 fi 7160else 7161 OBJDUMP="$ac_cv_prog_OBJDUMP" 7162fi 7163 7164 ;; 7165esac 7166 7167test -z "$AS" && AS=as 7168 7169 7170 7171 7172 7173test -z "$DLLTOOL" && DLLTOOL=dlltool 7174 7175 7176 7177 7178 7179test -z "$OBJDUMP" && OBJDUMP=objdump 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 # Check whether --enable-shared was given. 7190if test "${enable_shared+set}" = set; then 7191 enableval=$enable_shared; p=${PACKAGE-default} 7192 case $enableval in 7193 yes) enable_shared=yes ;; 7194 no) enable_shared=no ;; 7195 *) 7196 enable_shared=no 7197 # Look at the argument we got. We use all the common list separators. 7198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7199 for pkg in $enableval; do 7200 IFS="$lt_save_ifs" 7201 if test "X$pkg" = "X$p"; then 7202 enable_shared=yes 7203 fi 7204 done 7205 IFS="$lt_save_ifs" 7206 ;; 7207 esac 7208else 7209 enable_shared=yes 7210fi 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 # Check whether --enable-static was given. 7221if test "${enable_static+set}" = set; then 7222 enableval=$enable_static; p=${PACKAGE-default} 7223 case $enableval in 7224 yes) enable_static=yes ;; 7225 no) enable_static=no ;; 7226 *) 7227 enable_static=no 7228 # Look at the argument we got. We use all the common list separators. 7229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7230 for pkg in $enableval; do 7231 IFS="$lt_save_ifs" 7232 if test "X$pkg" = "X$p"; then 7233 enable_static=yes 7234 fi 7235 done 7236 IFS="$lt_save_ifs" 7237 ;; 7238 esac 7239else 7240 enable_static=yes 7241fi 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252# Check whether --with-pic was given. 7253if test "${with_pic+set}" = set; then 7254 withval=$with_pic; pic_mode="$withval" 7255else 7256 pic_mode=default 7257fi 7258 7259 7260test -z "$pic_mode" && pic_mode=default 7261 7262 7263 7264 7265 7266 7267 7268 # Check whether --enable-fast-install was given. 7269if test "${enable_fast_install+set}" = set; then 7270 enableval=$enable_fast_install; p=${PACKAGE-default} 7271 case $enableval in 7272 yes) enable_fast_install=yes ;; 7273 no) enable_fast_install=no ;; 7274 *) 7275 enable_fast_install=no 7276 # Look at the argument we got. We use all the common list separators. 7277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7278 for pkg in $enableval; do 7279 IFS="$lt_save_ifs" 7280 if test "X$pkg" = "X$p"; then 7281 enable_fast_install=yes 7282 fi 7283 done 7284 IFS="$lt_save_ifs" 7285 ;; 7286 esac 7287else 7288 enable_fast_install=yes 7289fi 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301# This can be used to rebuild libtool when needed 7302LIBTOOL_DEPS="$ltmain" 7303 7304# Always use our own libtool. 7305LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331test -z "$LN_S" && LN_S="ln -s" 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346if test -n "${ZSH_VERSION+set}" ; then 7347 setopt NO_GLOB_SUBST 7348fi 7349 7350{ echo "$as_me:$LINENO: checking for objdir" >&5 7351echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7352if test "${lt_cv_objdir+set}" = set; then 7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354else 7355 rm -f .libs 2>/dev/null 7356mkdir .libs 2>/dev/null 7357if test -d .libs; then 7358 lt_cv_objdir=.libs 7359else 7360 # MS-DOS does not allow filenames that begin with a dot. 7361 lt_cv_objdir=_libs 7362fi 7363rmdir .libs 2>/dev/null 7364fi 7365{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7366echo "${ECHO_T}$lt_cv_objdir" >&6; } 7367objdir=$lt_cv_objdir 7368 7369 7370 7371 7372 7373cat >>confdefs.h <<_ACEOF 7374#define LT_OBJDIR "$lt_cv_objdir/" 7375_ACEOF 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393case $host_os in 7394aix3*) 7395 # AIX sometimes has problems with the GCC collect2 program. For some 7396 # reason, if we set the COLLECT_NAMES environment variable, the problems 7397 # vanish in a puff of smoke. 7398 if test "X${COLLECT_NAMES+set}" != Xset; then 7399 COLLECT_NAMES= 7400 export COLLECT_NAMES 7401 fi 7402 ;; 7403esac 7404 7405# Sed substitution that helps us do robust quoting. It backslashifies 7406# metacharacters that are still active within double-quoted strings. 7407sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7408 7409# Same as above, but do not quote variable references. 7410double_quote_subst='s/\(["`\\]\)/\\\1/g' 7411 7412# Sed substitution to delay expansion of an escaped shell variable in a 7413# double_quote_subst'ed string. 7414delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7415 7416# Sed substitution to delay expansion of an escaped single quote. 7417delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7418 7419# Sed substitution to avoid accidental globbing in evaled expressions 7420no_glob_subst='s/\*/\\\*/g' 7421 7422# Global variables: 7423ofile=libtool 7424can_build_shared=yes 7425 7426# All known linkers require a `.a' archive for static linking (except MSVC, 7427# which needs '.lib'). 7428libext=a 7429 7430with_gnu_ld="$lt_cv_prog_gnu_ld" 7431 7432old_CC="$CC" 7433old_CFLAGS="$CFLAGS" 7434 7435# Set sane defaults for various variables 7436test -z "$CC" && CC=cc 7437test -z "$LTCC" && LTCC=$CC 7438test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7439test -z "$LD" && LD=ld 7440test -z "$ac_objext" && ac_objext=o 7441 7442for cc_temp in $compiler""; do 7443 case $cc_temp in 7444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7446 \-*) ;; 7447 *) break;; 7448 esac 7449done 7450cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7451 7452 7453# Only perform the check for file, if the check method requires it 7454test -z "$MAGIC_CMD" && MAGIC_CMD=file 7455case $deplibs_check_method in 7456file_magic*) 7457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7458 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7459echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7460if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7461 echo $ECHO_N "(cached) $ECHO_C" >&6 7462else 7463 case $MAGIC_CMD in 7464[\\/*] | ?:[\\/]*) 7465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7466 ;; 7467*) 7468 lt_save_MAGIC_CMD="$MAGIC_CMD" 7469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7471 for ac_dir in $ac_dummy; do 7472 IFS="$lt_save_ifs" 7473 test -z "$ac_dir" && ac_dir=. 7474 if test -f $ac_dir/${ac_tool_prefix}file; then 7475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7476 if test -n "$file_magic_test_file"; then 7477 case $deplibs_check_method in 7478 "file_magic "*) 7479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7482 $EGREP "$file_magic_regex" > /dev/null; then 7483 : 7484 else 7485 cat <<_LT_EOF 1>&2 7486 7487*** Warning: the command libtool uses to detect shared libraries, 7488*** $file_magic_cmd, produces output that libtool cannot recognize. 7489*** The result is that libtool may fail to recognize shared libraries 7490*** as such. This will affect the creation of libtool libraries that 7491*** depend on shared libraries, but programs linked with such libtool 7492*** libraries will work regardless of this problem. Nevertheless, you 7493*** may want to report the problem to your system manager and/or to 7494*** bug-libtool@gnu.org 7495 7496_LT_EOF 7497 fi ;; 7498 esac 7499 fi 7500 break 7501 fi 7502 done 7503 IFS="$lt_save_ifs" 7504 MAGIC_CMD="$lt_save_MAGIC_CMD" 7505 ;; 7506esac 7507fi 7508 7509MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7510if test -n "$MAGIC_CMD"; then 7511 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7512echo "${ECHO_T}$MAGIC_CMD" >&6; } 7513else 7514 { echo "$as_me:$LINENO: result: no" >&5 7515echo "${ECHO_T}no" >&6; } 7516fi 7517 7518 7519 7520 7521 7522if test -z "$lt_cv_path_MAGIC_CMD"; then 7523 if test -n "$ac_tool_prefix"; then 7524 { echo "$as_me:$LINENO: checking for file" >&5 7525echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7526if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7527 echo $ECHO_N "(cached) $ECHO_C" >&6 7528else 7529 case $MAGIC_CMD in 7530[\\/*] | ?:[\\/]*) 7531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7532 ;; 7533*) 7534 lt_save_MAGIC_CMD="$MAGIC_CMD" 7535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7537 for ac_dir in $ac_dummy; do 7538 IFS="$lt_save_ifs" 7539 test -z "$ac_dir" && ac_dir=. 7540 if test -f $ac_dir/file; then 7541 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7542 if test -n "$file_magic_test_file"; then 7543 case $deplibs_check_method in 7544 "file_magic "*) 7545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7548 $EGREP "$file_magic_regex" > /dev/null; then 7549 : 7550 else 7551 cat <<_LT_EOF 1>&2 7552 7553*** Warning: the command libtool uses to detect shared libraries, 7554*** $file_magic_cmd, produces output that libtool cannot recognize. 7555*** The result is that libtool may fail to recognize shared libraries 7556*** as such. This will affect the creation of libtool libraries that 7557*** depend on shared libraries, but programs linked with such libtool 7558*** libraries will work regardless of this problem. Nevertheless, you 7559*** may want to report the problem to your system manager and/or to 7560*** bug-libtool@gnu.org 7561 7562_LT_EOF 7563 fi ;; 7564 esac 7565 fi 7566 break 7567 fi 7568 done 7569 IFS="$lt_save_ifs" 7570 MAGIC_CMD="$lt_save_MAGIC_CMD" 7571 ;; 7572esac 7573fi 7574 7575MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7576if test -n "$MAGIC_CMD"; then 7577 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7578echo "${ECHO_T}$MAGIC_CMD" >&6; } 7579else 7580 { echo "$as_me:$LINENO: result: no" >&5 7581echo "${ECHO_T}no" >&6; } 7582fi 7583 7584 7585 else 7586 MAGIC_CMD=: 7587 fi 7588fi 7589 7590 fi 7591 ;; 7592esac 7593 7594# Use C for the default configuration in the libtool script 7595 7596lt_save_CC="$CC" 7597ac_ext=c 7598ac_cpp='$CPP $CPPFLAGS' 7599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7601ac_compiler_gnu=$ac_cv_c_compiler_gnu 7602 7603 7604# Source file extension for C test sources. 7605ac_ext=c 7606 7607# Object file extension for compiled C test sources. 7608objext=o 7609objext=$objext 7610 7611# Code to be used in simple compile tests 7612lt_simple_compile_test_code="int some_variable = 0;" 7613 7614# Code to be used in simple link tests 7615lt_simple_link_test_code='int main(){return(0);}' 7616 7617 7618 7619 7620 7621 7622 7623# If no C compiler was specified, use CC. 7624LTCC=${LTCC-"$CC"} 7625 7626# If no C compiler flags were specified, use CFLAGS. 7627LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7628 7629# Allow CC to be a program name with arguments. 7630compiler=$CC 7631 7632# Save the default compiler, since it gets overwritten when the other 7633# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7634compiler_DEFAULT=$CC 7635 7636# save warnings/boilerplate of simple test code 7637ac_outfile=conftest.$ac_objext 7638echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7640_lt_compiler_boilerplate=`cat conftest.err` 7641$RM conftest* 7642 7643ac_outfile=conftest.$ac_objext 7644echo "$lt_simple_link_test_code" >conftest.$ac_ext 7645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7646_lt_linker_boilerplate=`cat conftest.err` 7647$RM -r conftest* 7648 7649 7650## CAVEAT EMPTOR: 7651## There is no encapsulation within the following macros, do not change 7652## the running order or otherwise move them around unless you know exactly 7653## what you are doing... 7654if test -n "$compiler"; then 7655 7656lt_prog_compiler_no_builtin_flag= 7657 7658if test "$GCC" = yes; then 7659 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7660 7661 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7662echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7663if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7664 echo $ECHO_N "(cached) $ECHO_C" >&6 7665else 7666 lt_cv_prog_compiler_rtti_exceptions=no 7667 ac_outfile=conftest.$ac_objext 7668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7669 lt_compiler_flag="-fno-rtti -fno-exceptions" 7670 # Insert the option either (1) after the last *FLAGS variable, or 7671 # (2) before a word containing "conftest.", or (3) at the end. 7672 # Note that $ac_compile itself does not contain backslashes and begins 7673 # with a dollar sign (not a hyphen), so the echo should work correctly. 7674 # The option is referenced via a variable to avoid confusing sed. 7675 lt_compile=`echo "$ac_compile" | $SED \ 7676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7678 -e 's:$: $lt_compiler_flag:'` 7679 (eval echo "\"\$as_me:7679: $lt_compile\"" >&5) 7680 (eval "$lt_compile" 2>conftest.err) 7681 ac_status=$? 7682 cat conftest.err >&5 7683 echo "$as_me:7683: \$? = $ac_status" >&5 7684 if (exit $ac_status) && test -s "$ac_outfile"; then 7685 # The compiler can only warn and ignore the option if not recognized 7686 # So say no if there are warnings other than the usual output. 7687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7690 lt_cv_prog_compiler_rtti_exceptions=yes 7691 fi 7692 fi 7693 $RM conftest* 7694 7695fi 7696{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7697echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7698 7699if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7701else 7702 : 7703fi 7704 7705fi 7706 7707 7708 7709 7710 7711 7712 lt_prog_compiler_wl= 7713lt_prog_compiler_pic= 7714lt_prog_compiler_static= 7715 7716{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7717echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7718 7719 if test "$GCC" = yes; then 7720 lt_prog_compiler_wl='-Wl,' 7721 lt_prog_compiler_static='-static' 7722 7723 case $host_os in 7724 aix*) 7725 # All AIX code is PIC. 7726 if test "$host_cpu" = ia64; then 7727 # AIX 5 now supports IA64 processor 7728 lt_prog_compiler_static='-Bstatic' 7729 fi 7730 ;; 7731 7732 amigaos*) 7733 case $host_cpu in 7734 powerpc) 7735 # see comment about AmigaOS4 .so support 7736 lt_prog_compiler_pic='-fPIC' 7737 ;; 7738 m68k) 7739 # FIXME: we need at least 68020 code to build shared libraries, but 7740 # adding the `-m68020' flag to GCC prevents building anything better, 7741 # like `-m68040'. 7742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7743 ;; 7744 esac 7745 ;; 7746 7747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7748 # PIC is the default for these OSes. 7749 ;; 7750 7751 mingw* | cygwin* | pw32* | os2* | cegcc*) 7752 # This hack is so that the source file can tell whether it is being 7753 # built for inclusion in a dll (and should export symbols for example). 7754 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7755 # (--disable-auto-import) libraries 7756 lt_prog_compiler_pic='-DDLL_EXPORT' 7757 ;; 7758 7759 darwin* | rhapsody*) 7760 # PIC is the default on this platform 7761 # Common symbols not allowed in MH_DYLIB files 7762 lt_prog_compiler_pic='-fno-common' 7763 ;; 7764 7765 hpux*) 7766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7768 # sets the default TLS model and affects inlining. 7769 case $host_cpu in 7770 hppa*64*) 7771 # +Z the default 7772 ;; 7773 *) 7774 lt_prog_compiler_pic='-fPIC' 7775 ;; 7776 esac 7777 ;; 7778 7779 interix[3-9]*) 7780 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7781 # Instead, we relocate shared libraries at runtime. 7782 ;; 7783 7784 msdosdjgpp*) 7785 # Just because we use GCC doesn't mean we suddenly get shared libraries 7786 # on systems that don't support them. 7787 lt_prog_compiler_can_build_shared=no 7788 enable_shared=no 7789 ;; 7790 7791 *nto* | *qnx*) 7792 # QNX uses GNU C++, but need to define -shared option too, otherwise 7793 # it will coredump. 7794 lt_prog_compiler_pic='-fPIC -shared' 7795 ;; 7796 7797 sysv4*MP*) 7798 if test -d /usr/nec; then 7799 lt_prog_compiler_pic=-Kconform_pic 7800 fi 7801 ;; 7802 7803 *) 7804 lt_prog_compiler_pic='-fPIC' 7805 ;; 7806 esac 7807 else 7808 # PORTME Check for flag to pass linker flags through the system compiler. 7809 case $host_os in 7810 aix*) 7811 lt_prog_compiler_wl='-Wl,' 7812 if test "$host_cpu" = ia64; then 7813 # AIX 5 now supports IA64 processor 7814 lt_prog_compiler_static='-Bstatic' 7815 else 7816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7817 fi 7818 ;; 7819 7820 mingw* | cygwin* | pw32* | os2* | cegcc*) 7821 # This hack is so that the source file can tell whether it is being 7822 # built for inclusion in a dll (and should export symbols for example). 7823 lt_prog_compiler_pic='-DDLL_EXPORT' 7824 ;; 7825 7826 hpux9* | hpux10* | hpux11*) 7827 lt_prog_compiler_wl='-Wl,' 7828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7829 # not for PA HP-UX. 7830 case $host_cpu in 7831 hppa*64*|ia64*) 7832 # +Z the default 7833 ;; 7834 *) 7835 lt_prog_compiler_pic='+Z' 7836 ;; 7837 esac 7838 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7839 lt_prog_compiler_static='${wl}-a ${wl}archive' 7840 ;; 7841 7842 irix5* | irix6* | nonstopux*) 7843 lt_prog_compiler_wl='-Wl,' 7844 # PIC (with -KPIC) is the default. 7845 lt_prog_compiler_static='-non_shared' 7846 ;; 7847 7848 linux* | k*bsd*-gnu) 7849 case $cc_basename in 7850 # old Intel for x86_64 which still supported -KPIC. 7851 ecc*) 7852 lt_prog_compiler_wl='-Wl,' 7853 lt_prog_compiler_pic='-KPIC' 7854 lt_prog_compiler_static='-static' 7855 ;; 7856 # icc used to be incompatible with GCC. 7857 # ICC 10 doesn't accept -KPIC any more. 7858 icc* | ifort*) 7859 lt_prog_compiler_wl='-Wl,' 7860 lt_prog_compiler_pic='-fPIC' 7861 lt_prog_compiler_static='-static' 7862 ;; 7863 # Lahey Fortran 8.1. 7864 lf95*) 7865 lt_prog_compiler_wl='-Wl,' 7866 lt_prog_compiler_pic='--shared' 7867 lt_prog_compiler_static='--static' 7868 ;; 7869 pgcc* | pgf77* | pgf90* | pgf95*) 7870 # Portland Group compilers (*not* the Pentium gcc compiler, 7871 # which looks to be a dead project) 7872 lt_prog_compiler_wl='-Wl,' 7873 lt_prog_compiler_pic='-fpic' 7874 lt_prog_compiler_static='-Bstatic' 7875 ;; 7876 ccc*) 7877 lt_prog_compiler_wl='-Wl,' 7878 # All Alpha code is PIC. 7879 lt_prog_compiler_static='-non_shared' 7880 ;; 7881 xl*) 7882 # IBM XL C 8.0/Fortran 10.1 on PPC 7883 lt_prog_compiler_wl='-Wl,' 7884 lt_prog_compiler_pic='-qpic' 7885 lt_prog_compiler_static='-qstaticlink' 7886 ;; 7887 *) 7888 case `$CC -V 2>&1 | sed 5q` in 7889 *Sun\ C*) 7890 # Sun C 5.9 7891 lt_prog_compiler_pic='-KPIC' 7892 lt_prog_compiler_static='-Bstatic' 7893 lt_prog_compiler_wl='-Wl,' 7894 ;; 7895 *Sun\ F*) 7896 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7897 lt_prog_compiler_pic='-KPIC' 7898 lt_prog_compiler_static='-Bstatic' 7899 lt_prog_compiler_wl='' 7900 ;; 7901 esac 7902 ;; 7903 esac 7904 ;; 7905 7906 newsos6) 7907 lt_prog_compiler_pic='-KPIC' 7908 lt_prog_compiler_static='-Bstatic' 7909 ;; 7910 7911 *nto* | *qnx*) 7912 # QNX uses GNU C++, but need to define -shared option too, otherwise 7913 # it will coredump. 7914 lt_prog_compiler_pic='-fPIC -shared' 7915 ;; 7916 7917 osf3* | osf4* | osf5*) 7918 lt_prog_compiler_wl='-Wl,' 7919 # All OSF/1 code is PIC. 7920 lt_prog_compiler_static='-non_shared' 7921 ;; 7922 7923 rdos*) 7924 lt_prog_compiler_static='-non_shared' 7925 ;; 7926 7927 solaris*) 7928 lt_prog_compiler_pic='-KPIC' 7929 lt_prog_compiler_static='-Bstatic' 7930 case $cc_basename in 7931 f77* | f90* | f95*) 7932 lt_prog_compiler_wl='-Qoption ld ';; 7933 *) 7934 lt_prog_compiler_wl='-Wl,';; 7935 esac 7936 ;; 7937 7938 sunos4*) 7939 lt_prog_compiler_wl='-Qoption ld ' 7940 lt_prog_compiler_pic='-PIC' 7941 lt_prog_compiler_static='-Bstatic' 7942 ;; 7943 7944 sysv4 | sysv4.2uw2* | sysv4.3*) 7945 lt_prog_compiler_wl='-Wl,' 7946 lt_prog_compiler_pic='-KPIC' 7947 lt_prog_compiler_static='-Bstatic' 7948 ;; 7949 7950 sysv4*MP*) 7951 if test -d /usr/nec ;then 7952 lt_prog_compiler_pic='-Kconform_pic' 7953 lt_prog_compiler_static='-Bstatic' 7954 fi 7955 ;; 7956 7957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7958 lt_prog_compiler_wl='-Wl,' 7959 lt_prog_compiler_pic='-KPIC' 7960 lt_prog_compiler_static='-Bstatic' 7961 ;; 7962 7963 unicos*) 7964 lt_prog_compiler_wl='-Wl,' 7965 lt_prog_compiler_can_build_shared=no 7966 ;; 7967 7968 uts4*) 7969 lt_prog_compiler_pic='-pic' 7970 lt_prog_compiler_static='-Bstatic' 7971 ;; 7972 7973 *) 7974 lt_prog_compiler_can_build_shared=no 7975 ;; 7976 esac 7977 fi 7978 7979case $host_os in 7980 # For platforms which do not support PIC, -DPIC is meaningless: 7981 *djgpp*) 7982 lt_prog_compiler_pic= 7983 ;; 7984 *) 7985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7986 ;; 7987esac 7988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7989echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7990 7991 7992 7993 7994 7995 7996# 7997# Check to make sure the PIC flag actually works. 7998# 7999if test -n "$lt_prog_compiler_pic"; then 8000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8001echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8002if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8003 echo $ECHO_N "(cached) $ECHO_C" >&6 8004else 8005 lt_cv_prog_compiler_pic_works=no 8006 ac_outfile=conftest.$ac_objext 8007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8009 # Insert the option either (1) after the last *FLAGS variable, or 8010 # (2) before a word containing "conftest.", or (3) at the end. 8011 # Note that $ac_compile itself does not contain backslashes and begins 8012 # with a dollar sign (not a hyphen), so the echo should work correctly. 8013 # The option is referenced via a variable to avoid confusing sed. 8014 lt_compile=`echo "$ac_compile" | $SED \ 8015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8017 -e 's:$: $lt_compiler_flag:'` 8018 (eval echo "\"\$as_me:8018: $lt_compile\"" >&5) 8019 (eval "$lt_compile" 2>conftest.err) 8020 ac_status=$? 8021 cat conftest.err >&5 8022 echo "$as_me:8022: \$? = $ac_status" >&5 8023 if (exit $ac_status) && test -s "$ac_outfile"; then 8024 # The compiler can only warn and ignore the option if not recognized 8025 # So say no if there are warnings other than the usual output. 8026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8029 lt_cv_prog_compiler_pic_works=yes 8030 fi 8031 fi 8032 $RM conftest* 8033 8034fi 8035{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8036echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 8037 8038if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8039 case $lt_prog_compiler_pic in 8040 "" | " "*) ;; 8041 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8042 esac 8043else 8044 lt_prog_compiler_pic= 8045 lt_prog_compiler_can_build_shared=no 8046fi 8047 8048fi 8049 8050 8051 8052 8053 8054 8055# 8056# Check to make sure the static flag actually works. 8057# 8058wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8059{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8060echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8061if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8062 echo $ECHO_N "(cached) $ECHO_C" >&6 8063else 8064 lt_cv_prog_compiler_static_works=no 8065 save_LDFLAGS="$LDFLAGS" 8066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8067 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8069 # The linker can only warn and ignore the option if not recognized 8070 # So say no if there are warnings 8071 if test -s conftest.err; then 8072 # Append any errors to the config.log. 8073 cat conftest.err 1>&5 8074 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8076 if diff conftest.exp conftest.er2 >/dev/null; then 8077 lt_cv_prog_compiler_static_works=yes 8078 fi 8079 else 8080 lt_cv_prog_compiler_static_works=yes 8081 fi 8082 fi 8083 $RM -r conftest* 8084 LDFLAGS="$save_LDFLAGS" 8085 8086fi 8087{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8088echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 8089 8090if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8091 : 8092else 8093 lt_prog_compiler_static= 8094fi 8095 8096 8097 8098 8099 8100 8101 8102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8103echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8104if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8105 echo $ECHO_N "(cached) $ECHO_C" >&6 8106else 8107 lt_cv_prog_compiler_c_o=no 8108 $RM -r conftest 2>/dev/null 8109 mkdir conftest 8110 cd conftest 8111 mkdir out 8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8113 8114 lt_compiler_flag="-o out/conftest2.$ac_objext" 8115 # Insert the option either (1) after the last *FLAGS variable, or 8116 # (2) before a word containing "conftest.", or (3) at the end. 8117 # Note that $ac_compile itself does not contain backslashes and begins 8118 # with a dollar sign (not a hyphen), so the echo should work correctly. 8119 lt_compile=`echo "$ac_compile" | $SED \ 8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8122 -e 's:$: $lt_compiler_flag:'` 8123 (eval echo "\"\$as_me:8123: $lt_compile\"" >&5) 8124 (eval "$lt_compile" 2>out/conftest.err) 8125 ac_status=$? 8126 cat out/conftest.err >&5 8127 echo "$as_me:8127: \$? = $ac_status" >&5 8128 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8129 then 8130 # The compiler can only warn and ignore the option if not recognized 8131 # So say no if there are warnings 8132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8135 lt_cv_prog_compiler_c_o=yes 8136 fi 8137 fi 8138 chmod u+w . 2>&5 8139 $RM conftest* 8140 # SGI C++ compiler will create directory out/ii_files/ for 8141 # template instantiation 8142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8143 $RM out/* && rmdir out 8144 cd .. 8145 $RM -r conftest 8146 $RM conftest* 8147 8148fi 8149{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8150echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8151 8152 8153 8154 8155 8156 8157 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8158echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8159if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8160 echo $ECHO_N "(cached) $ECHO_C" >&6 8161else 8162 lt_cv_prog_compiler_c_o=no 8163 $RM -r conftest 2>/dev/null 8164 mkdir conftest 8165 cd conftest 8166 mkdir out 8167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8168 8169 lt_compiler_flag="-o out/conftest2.$ac_objext" 8170 # Insert the option either (1) after the last *FLAGS variable, or 8171 # (2) before a word containing "conftest.", or (3) at the end. 8172 # Note that $ac_compile itself does not contain backslashes and begins 8173 # with a dollar sign (not a hyphen), so the echo should work correctly. 8174 lt_compile=`echo "$ac_compile" | $SED \ 8175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8177 -e 's:$: $lt_compiler_flag:'` 8178 (eval echo "\"\$as_me:8178: $lt_compile\"" >&5) 8179 (eval "$lt_compile" 2>out/conftest.err) 8180 ac_status=$? 8181 cat out/conftest.err >&5 8182 echo "$as_me:8182: \$? = $ac_status" >&5 8183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8184 then 8185 # The compiler can only warn and ignore the option if not recognized 8186 # So say no if there are warnings 8187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8190 lt_cv_prog_compiler_c_o=yes 8191 fi 8192 fi 8193 chmod u+w . 2>&5 8194 $RM conftest* 8195 # SGI C++ compiler will create directory out/ii_files/ for 8196 # template instantiation 8197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8198 $RM out/* && rmdir out 8199 cd .. 8200 $RM -r conftest 8201 $RM conftest* 8202 8203fi 8204{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8205echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8206 8207 8208 8209 8210hard_links="nottested" 8211if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8212 # do not overwrite the value of need_locks provided by the user 8213 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8214echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8215 hard_links=yes 8216 $RM conftest* 8217 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8218 touch conftest.a 8219 ln conftest.a conftest.b 2>&5 || hard_links=no 8220 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8221 { echo "$as_me:$LINENO: result: $hard_links" >&5 8222echo "${ECHO_T}$hard_links" >&6; } 8223 if test "$hard_links" = no; then 8224 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8225echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8226 need_locks=warn 8227 fi 8228else 8229 need_locks=no 8230fi 8231 8232 8233 8234 8235 8236 8237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8239 8240 runpath_var= 8241 allow_undefined_flag= 8242 always_export_symbols=no 8243 archive_cmds= 8244 archive_expsym_cmds= 8245 compiler_needs_object=no 8246 enable_shared_with_static_runtimes=no 8247 export_dynamic_flag_spec= 8248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8249 hardcode_automatic=no 8250 hardcode_direct=no 8251 hardcode_direct_absolute=no 8252 hardcode_libdir_flag_spec= 8253 hardcode_libdir_flag_spec_ld= 8254 hardcode_libdir_separator= 8255 hardcode_minus_L=no 8256 hardcode_shlibpath_var=unsupported 8257 inherit_rpath=no 8258 link_all_deplibs=unknown 8259 module_cmds= 8260 module_expsym_cmds= 8261 old_archive_from_new_cmds= 8262 old_archive_from_expsyms_cmds= 8263 thread_safe_flag_spec= 8264 whole_archive_flag_spec= 8265 # include_expsyms should be a list of space-separated symbols to be *always* 8266 # included in the symbol list 8267 include_expsyms= 8268 # exclude_expsyms can be an extended regexp of symbols to exclude 8269 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8271 # as well as any symbol that contains `d'. 8272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8274 # platforms (ab)use it in PIC code, but their linkers get confused if 8275 # the symbol is explicitly referenced. Since portable code cannot 8276 # rely on this symbol name, it's probably fine to never include it in 8277 # preloaded symbol tables. 8278 # Exclude shared library initialization/finalization symbols. 8279 extract_expsyms_cmds= 8280 8281 case $host_os in 8282 cygwin* | mingw* | pw32* | cegcc*) 8283 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8284 # When not using gcc, we currently assume that we are using 8285 # Microsoft Visual C++. 8286 if test "$GCC" != yes; then 8287 with_gnu_ld=no 8288 fi 8289 ;; 8290 interix*) 8291 # we just hope/assume this is gcc and not c89 (= MSVC++) 8292 with_gnu_ld=yes 8293 ;; 8294 openbsd*) 8295 with_gnu_ld=no 8296 ;; 8297 esac 8298 8299 ld_shlibs=yes 8300 if test "$with_gnu_ld" = yes; then 8301 # If archive_cmds runs LD, not CC, wlarc should be empty 8302 wlarc='${wl}' 8303 8304 # Set some defaults for GNU ld with shared library support. These 8305 # are reset later if shared libraries are not supported. Putting them 8306 # here allows them to be overridden if necessary. 8307 runpath_var=LD_RUN_PATH 8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8309 export_dynamic_flag_spec='${wl}--export-dynamic' 8310 # ancient GNU ld didn't support --whole-archive et. al. 8311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8313 else 8314 whole_archive_flag_spec= 8315 fi 8316 supports_anon_versioning=no 8317 case `$LD -v 2>&1` in 8318 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8319 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8320 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8321 *\ 2.11.*) ;; # other 2.11 versions 8322 *) supports_anon_versioning=yes ;; 8323 esac 8324 8325 # See if GNU ld supports shared libraries. 8326 case $host_os in 8327 aix[3-9]*) 8328 # On AIX/PPC, the GNU linker is very broken 8329 if test "$host_cpu" != ia64; then 8330 ld_shlibs=no 8331 cat <<_LT_EOF 1>&2 8332 8333*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8334*** to be unable to reliably create shared libraries on AIX. 8335*** Therefore, libtool is disabling shared libraries support. If you 8336*** really care for shared libraries, you may want to modify your PATH 8337*** so that a non-GNU linker is found, and then restart. 8338 8339_LT_EOF 8340 fi 8341 ;; 8342 8343 amigaos*) 8344 case $host_cpu in 8345 powerpc) 8346 # see comment about AmigaOS4 .so support 8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8348 archive_expsym_cmds='' 8349 ;; 8350 m68k) 8351 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)' 8352 hardcode_libdir_flag_spec='-L$libdir' 8353 hardcode_minus_L=yes 8354 ;; 8355 esac 8356 ;; 8357 8358 beos*) 8359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8360 allow_undefined_flag=unsupported 8361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8362 # support --undefined. This deserves some investigation. FIXME 8363 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8364 else 8365 ld_shlibs=no 8366 fi 8367 ;; 8368 8369 cygwin* | mingw* | pw32* | cegcc*) 8370 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8371 # as there is no search path for DLLs. 8372 hardcode_libdir_flag_spec='-L$libdir' 8373 allow_undefined_flag=unsupported 8374 always_export_symbols=no 8375 enable_shared_with_static_runtimes=yes 8376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8377 8378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8380 # If the export-symbols file already is a .def file (1st line 8381 # is EXPORTS), use it as is; otherwise, prepend... 8382 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8383 cp $export_symbols $output_objdir/$soname.def; 8384 else 8385 echo EXPORTS > $output_objdir/$soname.def; 8386 cat $export_symbols >> $output_objdir/$soname.def; 8387 fi~ 8388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8389 else 8390 ld_shlibs=no 8391 fi 8392 ;; 8393 8394 interix[3-9]*) 8395 hardcode_direct=no 8396 hardcode_shlibpath_var=no 8397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8398 export_dynamic_flag_spec='${wl}-E' 8399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8400 # Instead, shared libraries are loaded at an image base (0x10000000 by 8401 # default) and relocated if they conflict, which is a slow very memory 8402 # consuming and fragmenting process. To avoid this, we pick a random, 8403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8404 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8406 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' 8407 ;; 8408 8409 gnu* | linux* | tpf* | k*bsd*-gnu) 8410 tmp_diet=no 8411 if test "$host_os" = linux-dietlibc; then 8412 case $cc_basename in 8413 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8414 esac 8415 fi 8416 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8417 && test "$tmp_diet" = no 8418 then 8419 tmp_addflag= 8420 tmp_sharedflag='-shared' 8421 case $cc_basename,$host_cpu in 8422 pgcc*) # Portland Group C compiler 8423 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' 8424 tmp_addflag=' $pic_flag' 8425 ;; 8426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8427 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' 8428 tmp_addflag=' $pic_flag -Mnomain' ;; 8429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8430 tmp_addflag=' -i_dynamic' ;; 8431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8432 tmp_addflag=' -i_dynamic -nofor_main' ;; 8433 ifc* | ifort*) # Intel Fortran compiler 8434 tmp_addflag=' -nofor_main' ;; 8435 lf95*) # Lahey Fortran 8.1 8436 whole_archive_flag_spec= 8437 tmp_sharedflag='--shared' ;; 8438 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8439 tmp_sharedflag='-qmkshrobj' 8440 tmp_addflag= ;; 8441 esac 8442 case `$CC -V 2>&1 | sed 5q` in 8443 *Sun\ C*) # Sun C 5.9 8444 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8445 compiler_needs_object=yes 8446 tmp_sharedflag='-G' ;; 8447 *Sun\ F*) # Sun Fortran 8.3 8448 tmp_sharedflag='-G' ;; 8449 esac 8450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8451 8452 if test "x$supports_anon_versioning" = xyes; then 8453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8455 echo "local: *; };" >> $output_objdir/$libname.ver~ 8456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8457 fi 8458 8459 case $cc_basename in 8460 xlf*) 8461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8463 hardcode_libdir_flag_spec= 8464 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8465 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8466 if test "x$supports_anon_versioning" = xyes; then 8467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8469 echo "local: *; };" >> $output_objdir/$libname.ver~ 8470 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8471 fi 8472 ;; 8473 esac 8474 else 8475 ld_shlibs=no 8476 fi 8477 ;; 8478 8479 netbsd* | netbsdelf*-gnu) 8480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8482 wlarc= 8483 else 8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8486 fi 8487 ;; 8488 8489 solaris*) 8490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8491 ld_shlibs=no 8492 cat <<_LT_EOF 1>&2 8493 8494*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8495*** create shared libraries on Solaris systems. Therefore, libtool 8496*** is disabling shared libraries support. We urge you to upgrade GNU 8497*** binutils to release 2.9.1 or newer. Another option is to modify 8498*** your PATH or compiler configuration so that the native linker is 8499*** used, and then restart. 8500 8501_LT_EOF 8502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8505 else 8506 ld_shlibs=no 8507 fi 8508 ;; 8509 8510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8511 case `$LD -v 2>&1` in 8512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8513 ld_shlibs=no 8514 cat <<_LT_EOF 1>&2 8515 8516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8517*** reliably create shared libraries on SCO systems. Therefore, libtool 8518*** is disabling shared libraries support. We urge you to upgrade GNU 8519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8520*** your PATH or compiler configuration so that the native linker is 8521*** used, and then restart. 8522 8523_LT_EOF 8524 ;; 8525 *) 8526 # For security reasons, it is highly recommended that you always 8527 # use absolute paths for naming shared libraries, and exclude the 8528 # DT_RUNPATH tag from executables and libraries. But doing so 8529 # requires that you compile everything twice, which is a pain. 8530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8534 else 8535 ld_shlibs=no 8536 fi 8537 ;; 8538 esac 8539 ;; 8540 8541 sunos4*) 8542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8543 wlarc= 8544 hardcode_direct=yes 8545 hardcode_shlibpath_var=no 8546 ;; 8547 8548 *) 8549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8552 else 8553 ld_shlibs=no 8554 fi 8555 ;; 8556 esac 8557 8558 if test "$ld_shlibs" = no; then 8559 runpath_var= 8560 hardcode_libdir_flag_spec= 8561 export_dynamic_flag_spec= 8562 whole_archive_flag_spec= 8563 fi 8564 else 8565 # PORTME fill in a description of your system's linker (not GNU ld) 8566 case $host_os in 8567 aix3*) 8568 allow_undefined_flag=unsupported 8569 always_export_symbols=yes 8570 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' 8571 # Note: this linker hardcodes the directories in LIBPATH if there 8572 # are no directories specified by -L. 8573 hardcode_minus_L=yes 8574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8575 # Neither direct hardcoding nor static linking is supported with a 8576 # broken collect2. 8577 hardcode_direct=unsupported 8578 fi 8579 ;; 8580 8581 aix[4-9]*) 8582 if test "$host_cpu" = ia64; then 8583 # On IA64, the linker does run time linking by default, so we don't 8584 # have to do anything special. 8585 aix_use_runtimelinking=no 8586 exp_sym_flag='-Bexport' 8587 no_entry_flag="" 8588 else 8589 # If we're using GNU nm, then we don't want the "-C" option. 8590 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8592 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' 8593 else 8594 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' 8595 fi 8596 aix_use_runtimelinking=no 8597 8598 # Test if we are trying to use run time linking or normal 8599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8600 # need to do runtime linking. 8601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8602 for ld_flag in $LDFLAGS; do 8603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8604 aix_use_runtimelinking=yes 8605 break 8606 fi 8607 done 8608 ;; 8609 esac 8610 8611 exp_sym_flag='-bexport' 8612 no_entry_flag='-bnoentry' 8613 fi 8614 8615 # When large executables or shared objects are built, AIX ld can 8616 # have problems creating the table of contents. If linking a library 8617 # or program results in "error TOC overflow" add -mminimal-toc to 8618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8620 8621 archive_cmds='' 8622 hardcode_direct=yes 8623 hardcode_direct_absolute=yes 8624 hardcode_libdir_separator=':' 8625 link_all_deplibs=yes 8626 file_list_spec='${wl}-f,' 8627 8628 if test "$GCC" = yes; then 8629 case $host_os in aix4.[012]|aix4.[012].*) 8630 # We only want to do this on AIX 4.2 and lower, the check 8631 # below for broken collect2 doesn't work under 4.3+ 8632 collect2name=`${CC} -print-prog-name=collect2` 8633 if test -f "$collect2name" && 8634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8635 then 8636 # We have reworked collect2 8637 : 8638 else 8639 # We have old collect2 8640 hardcode_direct=unsupported 8641 # It fails to find uninstalled libraries when the uninstalled 8642 # path is not listed in the libpath. Setting hardcode_minus_L 8643 # to unsupported forces relinking 8644 hardcode_minus_L=yes 8645 hardcode_libdir_flag_spec='-L$libdir' 8646 hardcode_libdir_separator= 8647 fi 8648 ;; 8649 esac 8650 shared_flag='-shared' 8651 if test "$aix_use_runtimelinking" = yes; then 8652 shared_flag="$shared_flag "'${wl}-G' 8653 fi 8654 link_all_deplibs=no 8655 else 8656 # not using gcc 8657 if test "$host_cpu" = ia64; then 8658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8659 # chokes on -Wl,-G. The following line is correct: 8660 shared_flag='-G' 8661 else 8662 if test "$aix_use_runtimelinking" = yes; then 8663 shared_flag='${wl}-G' 8664 else 8665 shared_flag='${wl}-bM:SRE' 8666 fi 8667 fi 8668 fi 8669 8670 export_dynamic_flag_spec='${wl}-bexpall' 8671 # It seems that -bexpall does not export symbols beginning with 8672 # underscore (_), so it is better to generate a list of symbols to export. 8673 always_export_symbols=yes 8674 if test "$aix_use_runtimelinking" = yes; then 8675 # Warning - without using the other runtime loading flags (-brtl), 8676 # -berok will link without error, but may produce a broken library. 8677 allow_undefined_flag='-berok' 8678 # Determine the default libpath from the value encoded in an 8679 # empty executable. 8680 cat >conftest.$ac_ext <<_ACEOF 8681/* confdefs.h. */ 8682_ACEOF 8683cat confdefs.h >>conftest.$ac_ext 8684cat >>conftest.$ac_ext <<_ACEOF 8685/* end confdefs.h. */ 8686 8687int 8688main () 8689{ 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695rm -f conftest.$ac_objext conftest$ac_exeext 8696if { (ac_try="$ac_link" 8697case "(($ac_try" in 8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8699 *) ac_try_echo=$ac_try;; 8700esac 8701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8702 (eval "$ac_link") 2>conftest.er1 8703 ac_status=$? 8704 grep -v '^ *+' conftest.er1 >conftest.err 8705 rm -f conftest.er1 8706 cat conftest.err >&5 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); } && { 8709 test -z "$ac_c_werror_flag" || 8710 test ! -s conftest.err 8711 } && test -s conftest$ac_exeext && 8712 $as_test_x conftest$ac_exeext; then 8713 8714lt_aix_libpath_sed=' 8715 /Import File Strings/,/^$/ { 8716 /^0/ { 8717 s/^0 *\(.*\)$/\1/ 8718 p 8719 } 8720 }' 8721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8722# Check for a 64-bit object if we didn't find anything. 8723if test -z "$aix_libpath"; then 8724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8725fi 8726else 8727 echo "$as_me: failed program was:" >&5 8728sed 's/^/| /' conftest.$ac_ext >&5 8729 8730 8731fi 8732 8733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8734 conftest$ac_exeext conftest.$ac_ext 8735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8736 8737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8738 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8739 else 8740 if test "$host_cpu" = ia64; then 8741 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8742 allow_undefined_flag="-z nodefs" 8743 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" 8744 else 8745 # Determine the default libpath from the value encoded in an 8746 # empty executable. 8747 cat >conftest.$ac_ext <<_ACEOF 8748/* confdefs.h. */ 8749_ACEOF 8750cat confdefs.h >>conftest.$ac_ext 8751cat >>conftest.$ac_ext <<_ACEOF 8752/* end confdefs.h. */ 8753 8754int 8755main () 8756{ 8757 8758 ; 8759 return 0; 8760} 8761_ACEOF 8762rm -f conftest.$ac_objext conftest$ac_exeext 8763if { (ac_try="$ac_link" 8764case "(($ac_try" in 8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8766 *) ac_try_echo=$ac_try;; 8767esac 8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8769 (eval "$ac_link") 2>conftest.er1 8770 ac_status=$? 8771 grep -v '^ *+' conftest.er1 >conftest.err 8772 rm -f conftest.er1 8773 cat conftest.err >&5 8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8775 (exit $ac_status); } && { 8776 test -z "$ac_c_werror_flag" || 8777 test ! -s conftest.err 8778 } && test -s conftest$ac_exeext && 8779 $as_test_x conftest$ac_exeext; then 8780 8781lt_aix_libpath_sed=' 8782 /Import File Strings/,/^$/ { 8783 /^0/ { 8784 s/^0 *\(.*\)$/\1/ 8785 p 8786 } 8787 }' 8788aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8789# Check for a 64-bit object if we didn't find anything. 8790if test -z "$aix_libpath"; then 8791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8792fi 8793else 8794 echo "$as_me: failed program was:" >&5 8795sed 's/^/| /' conftest.$ac_ext >&5 8796 8797 8798fi 8799 8800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8801 conftest$ac_exeext conftest.$ac_ext 8802if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8803 8804 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8805 # Warning - without using the other run time loading flags, 8806 # -berok will link without error, but may produce a broken library. 8807 no_undefined_flag=' ${wl}-bernotok' 8808 allow_undefined_flag=' ${wl}-berok' 8809 # Exported symbols can be pulled into shared objects from archives 8810 whole_archive_flag_spec='$convenience' 8811 archive_cmds_need_lc=yes 8812 # This is similar to how AIX traditionally builds its shared libraries. 8813 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' 8814 fi 8815 fi 8816 ;; 8817 8818 amigaos*) 8819 case $host_cpu in 8820 powerpc) 8821 # see comment about AmigaOS4 .so support 8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8823 archive_expsym_cmds='' 8824 ;; 8825 m68k) 8826 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)' 8827 hardcode_libdir_flag_spec='-L$libdir' 8828 hardcode_minus_L=yes 8829 ;; 8830 esac 8831 ;; 8832 8833 bsdi[45]*) 8834 export_dynamic_flag_spec=-rdynamic 8835 ;; 8836 8837 cygwin* | mingw* | pw32* | cegcc*) 8838 # When not using gcc, we currently assume that we are using 8839 # Microsoft Visual C++. 8840 # hardcode_libdir_flag_spec is actually meaningless, as there is 8841 # no search path for DLLs. 8842 hardcode_libdir_flag_spec=' ' 8843 allow_undefined_flag=unsupported 8844 # Tell ltmain to make .lib files, not .a files. 8845 libext=lib 8846 # Tell ltmain to make .dll files, not .so files. 8847 shrext_cmds=".dll" 8848 # FIXME: Setting linknames here is a bad hack. 8849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8850 # The linker will automatically build a .lib file if we build a DLL. 8851 old_archive_from_new_cmds='true' 8852 # FIXME: Should let the user specify the lib program. 8853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8854 fix_srcfile_path='`cygpath -w "$srcfile"`' 8855 enable_shared_with_static_runtimes=yes 8856 ;; 8857 8858 darwin* | rhapsody*) 8859 8860 8861 archive_cmds_need_lc=no 8862 hardcode_direct=no 8863 hardcode_automatic=yes 8864 hardcode_shlibpath_var=unsupported 8865 whole_archive_flag_spec='' 8866 link_all_deplibs=yes 8867 allow_undefined_flag="$_lt_dar_allow_undefined" 8868 case $cc_basename in 8869 ifort*) _lt_dar_can_shared=yes ;; 8870 *) _lt_dar_can_shared=$GCC ;; 8871 esac 8872 if test "$_lt_dar_can_shared" = "yes"; then 8873 output_verbose_link_cmd=echo 8874 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8875 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8876 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8877 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8878 8879 else 8880 ld_shlibs=no 8881 fi 8882 8883 ;; 8884 8885 dgux*) 8886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8887 hardcode_libdir_flag_spec='-L$libdir' 8888 hardcode_shlibpath_var=no 8889 ;; 8890 8891 freebsd1*) 8892 ld_shlibs=no 8893 ;; 8894 8895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8896 # support. Future versions do this automatically, but an explicit c++rt0.o 8897 # does not break anything, and helps significantly (at the cost of a little 8898 # extra space). 8899 freebsd2.2*) 8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8901 hardcode_libdir_flag_spec='-R$libdir' 8902 hardcode_direct=yes 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8907 freebsd2*) 8908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8909 hardcode_direct=yes 8910 hardcode_minus_L=yes 8911 hardcode_shlibpath_var=no 8912 ;; 8913 8914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8915 freebsd* | dragonfly*) 8916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8917 hardcode_libdir_flag_spec='-R$libdir' 8918 hardcode_direct=yes 8919 hardcode_shlibpath_var=no 8920 ;; 8921 8922 hpux9*) 8923 if test "$GCC" = yes; then 8924 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' 8925 else 8926 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' 8927 fi 8928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8929 hardcode_libdir_separator=: 8930 hardcode_direct=yes 8931 8932 # hardcode_minus_L: Not really in the search PATH, 8933 # but as the default location of the library. 8934 hardcode_minus_L=yes 8935 export_dynamic_flag_spec='${wl}-E' 8936 ;; 8937 8938 hpux10*) 8939 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8941 else 8942 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8943 fi 8944 if test "$with_gnu_ld" = no; then 8945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8946 hardcode_libdir_flag_spec_ld='+b $libdir' 8947 hardcode_libdir_separator=: 8948 hardcode_direct=yes 8949 hardcode_direct_absolute=yes 8950 export_dynamic_flag_spec='${wl}-E' 8951 # hardcode_minus_L: Not really in the search PATH, 8952 # but as the default location of the library. 8953 hardcode_minus_L=yes 8954 fi 8955 ;; 8956 8957 hpux11*) 8958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8959 case $host_cpu in 8960 hppa*64*) 8961 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8962 ;; 8963 ia64*) 8964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8965 ;; 8966 *) 8967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8968 ;; 8969 esac 8970 else 8971 case $host_cpu in 8972 hppa*64*) 8973 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8974 ;; 8975 ia64*) 8976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8977 ;; 8978 *) 8979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8980 ;; 8981 esac 8982 fi 8983 if test "$with_gnu_ld" = no; then 8984 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8985 hardcode_libdir_separator=: 8986 8987 case $host_cpu in 8988 hppa*64*|ia64*) 8989 hardcode_direct=no 8990 hardcode_shlibpath_var=no 8991 ;; 8992 *) 8993 hardcode_direct=yes 8994 hardcode_direct_absolute=yes 8995 export_dynamic_flag_spec='${wl}-E' 8996 8997 # hardcode_minus_L: Not really in the search PATH, 8998 # but as the default location of the library. 8999 hardcode_minus_L=yes 9000 ;; 9001 esac 9002 fi 9003 ;; 9004 9005 irix5* | irix6* | nonstopux*) 9006 if test "$GCC" = yes; then 9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9008 # Try to use the -exported_symbol ld option, if it does not 9009 # work, assume that -exports_file does not work either and 9010 # implicitly export all symbols. 9011 save_LDFLAGS="$LDFLAGS" 9012 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9013 cat >conftest.$ac_ext <<_ACEOF 9014int foo(void) {} 9015_ACEOF 9016rm -f conftest.$ac_objext conftest$ac_exeext 9017if { (ac_try="$ac_link" 9018case "(($ac_try" in 9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9020 *) ac_try_echo=$ac_try;; 9021esac 9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9023 (eval "$ac_link") 2>conftest.er1 9024 ac_status=$? 9025 grep -v '^ *+' conftest.er1 >conftest.err 9026 rm -f conftest.er1 9027 cat conftest.err >&5 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 (exit $ac_status); } && { 9030 test -z "$ac_c_werror_flag" || 9031 test ! -s conftest.err 9032 } && test -s conftest$ac_exeext && 9033 $as_test_x conftest$ac_exeext; then 9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9035 9036else 9037 echo "$as_me: failed program was:" >&5 9038sed 's/^/| /' conftest.$ac_ext >&5 9039 9040 9041fi 9042 9043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9044 conftest$ac_exeext conftest.$ac_ext 9045 LDFLAGS="$save_LDFLAGS" 9046 else 9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9049 fi 9050 archive_cmds_need_lc='no' 9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9052 hardcode_libdir_separator=: 9053 inherit_rpath=yes 9054 link_all_deplibs=yes 9055 ;; 9056 9057 netbsd* | netbsdelf*-gnu) 9058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9060 else 9061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9062 fi 9063 hardcode_libdir_flag_spec='-R$libdir' 9064 hardcode_direct=yes 9065 hardcode_shlibpath_var=no 9066 ;; 9067 9068 newsos6) 9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9070 hardcode_direct=yes 9071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9072 hardcode_libdir_separator=: 9073 hardcode_shlibpath_var=no 9074 ;; 9075 9076 *nto* | *qnx*) 9077 ;; 9078 9079 openbsd*) 9080 if test -f /usr/libexec/ld.so; then 9081 hardcode_direct=yes 9082 hardcode_shlibpath_var=no 9083 hardcode_direct_absolute=yes 9084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9088 export_dynamic_flag_spec='${wl}-E' 9089 else 9090 case $host_os in 9091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9093 hardcode_libdir_flag_spec='-R$libdir' 9094 ;; 9095 *) 9096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9098 ;; 9099 esac 9100 fi 9101 else 9102 ld_shlibs=no 9103 fi 9104 ;; 9105 9106 os2*) 9107 hardcode_libdir_flag_spec='-L$libdir' 9108 hardcode_minus_L=yes 9109 allow_undefined_flag=unsupported 9110 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' 9111 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9112 ;; 9113 9114 osf3*) 9115 if test "$GCC" = yes; then 9116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9117 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9118 else 9119 allow_undefined_flag=' -expect_unresolved \*' 9120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9121 fi 9122 archive_cmds_need_lc='no' 9123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9124 hardcode_libdir_separator=: 9125 ;; 9126 9127 osf4* | osf5*) # as osf3* with the addition of -msym flag 9128 if test "$GCC" = yes; then 9129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9130 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9132 else 9133 allow_undefined_flag=' -expect_unresolved \*' 9134 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9135 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9136 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9137 9138 # Both c and cxx compiler support -rpath directly 9139 hardcode_libdir_flag_spec='-rpath $libdir' 9140 fi 9141 archive_cmds_need_lc='no' 9142 hardcode_libdir_separator=: 9143 ;; 9144 9145 solaris*) 9146 no_undefined_flag=' -z defs' 9147 if test "$GCC" = yes; then 9148 wlarc='${wl}' 9149 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9151 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9152 else 9153 case `$CC -V 2>&1` in 9154 *"Compilers 5.0"*) 9155 wlarc='' 9156 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9159 ;; 9160 *) 9161 wlarc='${wl}' 9162 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9164 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9165 ;; 9166 esac 9167 fi 9168 hardcode_libdir_flag_spec='-R$libdir' 9169 hardcode_shlibpath_var=no 9170 case $host_os in 9171 solaris2.[0-5] | solaris2.[0-5].*) ;; 9172 *) 9173 # The compiler driver will combine and reorder linker options, 9174 # but understands `-z linker_flag'. GCC discards it without `$wl', 9175 # but is careful enough not to reorder. 9176 # Supported since Solaris 2.6 (maybe 2.5.1?) 9177 if test "$GCC" = yes; then 9178 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9179 else 9180 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9181 fi 9182 ;; 9183 esac 9184 link_all_deplibs=yes 9185 ;; 9186 9187 sunos4*) 9188 if test "x$host_vendor" = xsequent; then 9189 # Use $CC to link under sequent, because it throws in some extra .o 9190 # files that make .init and .fini sections work. 9191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9192 else 9193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9194 fi 9195 hardcode_libdir_flag_spec='-L$libdir' 9196 hardcode_direct=yes 9197 hardcode_minus_L=yes 9198 hardcode_shlibpath_var=no 9199 ;; 9200 9201 sysv4) 9202 case $host_vendor in 9203 sni) 9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9205 hardcode_direct=yes # is this really true??? 9206 ;; 9207 siemens) 9208 ## LD is ld it makes a PLAMLIB 9209 ## CC just makes a GrossModule. 9210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9211 reload_cmds='$CC -r -o $output$reload_objs' 9212 hardcode_direct=no 9213 ;; 9214 motorola) 9215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9217 ;; 9218 esac 9219 runpath_var='LD_RUN_PATH' 9220 hardcode_shlibpath_var=no 9221 ;; 9222 9223 sysv4.3*) 9224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9225 hardcode_shlibpath_var=no 9226 export_dynamic_flag_spec='-Bexport' 9227 ;; 9228 9229 sysv4*MP*) 9230 if test -d /usr/nec; then 9231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9232 hardcode_shlibpath_var=no 9233 runpath_var=LD_RUN_PATH 9234 hardcode_runpath_var=yes 9235 ld_shlibs=yes 9236 fi 9237 ;; 9238 9239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9240 no_undefined_flag='${wl}-z,text' 9241 archive_cmds_need_lc=no 9242 hardcode_shlibpath_var=no 9243 runpath_var='LD_RUN_PATH' 9244 9245 if test "$GCC" = yes; then 9246 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9247 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9248 else 9249 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9250 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9251 fi 9252 ;; 9253 9254 sysv5* | sco3.2v5* | sco5v6*) 9255 # Note: We can NOT use -z defs as we might desire, because we do not 9256 # link with -lc, and that would cause any symbols used from libc to 9257 # always be unresolved, which means just about no library would 9258 # ever link correctly. If we're not using GNU ld we use -z text 9259 # though, which does catch some bad symbols but isn't as heavy-handed 9260 # as -z defs. 9261 no_undefined_flag='${wl}-z,text' 9262 allow_undefined_flag='${wl}-z,nodefs' 9263 archive_cmds_need_lc=no 9264 hardcode_shlibpath_var=no 9265 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9266 hardcode_libdir_separator=':' 9267 link_all_deplibs=yes 9268 export_dynamic_flag_spec='${wl}-Bexport' 9269 runpath_var='LD_RUN_PATH' 9270 9271 if test "$GCC" = yes; then 9272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9274 else 9275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9277 fi 9278 ;; 9279 9280 uts4*) 9281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9282 hardcode_libdir_flag_spec='-L$libdir' 9283 hardcode_shlibpath_var=no 9284 ;; 9285 9286 *) 9287 ld_shlibs=no 9288 ;; 9289 esac 9290 9291 if test x$host_vendor = xsni; then 9292 case $host in 9293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9294 export_dynamic_flag_spec='${wl}-Blargedynsym' 9295 ;; 9296 esac 9297 fi 9298 fi 9299 9300{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9301echo "${ECHO_T}$ld_shlibs" >&6; } 9302test "$ld_shlibs" = no && can_build_shared=no 9303 9304with_gnu_ld=$with_gnu_ld 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320# 9321# Do we need to explicitly link libc? 9322# 9323case "x$archive_cmds_need_lc" in 9324x|xyes) 9325 # Assume -lc should be added 9326 archive_cmds_need_lc=yes 9327 9328 if test "$enable_shared" = yes && test "$GCC" = yes; then 9329 case $archive_cmds in 9330 *'~'*) 9331 # FIXME: we may have to deal with multi-command sequences. 9332 ;; 9333 '$CC '*) 9334 # Test whether the compiler implicitly links with -lc since on some 9335 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9336 # to ld, don't add -lc before -lgcc. 9337 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9339 $RM conftest* 9340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9341 9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9343 (eval $ac_compile) 2>&5 9344 ac_status=$? 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 (exit $ac_status); } 2>conftest.err; then 9347 soname=conftest 9348 lib=conftest 9349 libobjs=conftest.$ac_objext 9350 deplibs= 9351 wl=$lt_prog_compiler_wl 9352 pic_flag=$lt_prog_compiler_pic 9353 compiler_flags=-v 9354 linker_flags=-v 9355 verstring= 9356 output_objdir=. 9357 libname=conftest 9358 lt_save_allow_undefined_flag=$allow_undefined_flag 9359 allow_undefined_flag= 9360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9362 ac_status=$? 9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9364 (exit $ac_status); } 9365 then 9366 archive_cmds_need_lc=no 9367 else 9368 archive_cmds_need_lc=yes 9369 fi 9370 allow_undefined_flag=$lt_save_allow_undefined_flag 9371 else 9372 cat conftest.err 1>&5 9373 fi 9374 $RM conftest* 9375 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9376echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9377 ;; 9378 esac 9379 fi 9380 ;; 9381esac 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9540echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9541 9542if test "$GCC" = yes; then 9543 case $host_os in 9544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9545 *) lt_awk_arg="/^libraries:/" ;; 9546 esac 9547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9548 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9549 # if the path contains ";" then we assume it to be the separator 9550 # otherwise default to the standard path separator (i.e. ":") - it is 9551 # assumed that no part of a normal pathname contains ";" but that should 9552 # okay in the real world where ";" in dirpaths is itself problematic. 9553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9554 else 9555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9556 fi 9557 # Ok, now we have the path, separated by spaces, we can step through it 9558 # and add multilib dir if necessary. 9559 lt_tmp_lt_search_path_spec= 9560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9561 for lt_sys_path in $lt_search_path_spec; do 9562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9564 else 9565 test -d "$lt_sys_path" && \ 9566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9567 fi 9568 done 9569 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9570BEGIN {RS=" "; FS="/|\n";} { 9571 lt_foo=""; 9572 lt_count=0; 9573 for (lt_i = NF; lt_i > 0; lt_i--) { 9574 if ($lt_i != "" && $lt_i != ".") { 9575 if ($lt_i == "..") { 9576 lt_count++; 9577 } else { 9578 if (lt_count == 0) { 9579 lt_foo="/" $lt_i lt_foo; 9580 } else { 9581 lt_count--; 9582 } 9583 } 9584 } 9585 } 9586 if (lt_foo != "") { lt_freq[lt_foo]++; } 9587 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9588}'` 9589 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9590else 9591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9592fi 9593library_names_spec= 9594libname_spec='lib$name' 9595soname_spec= 9596shrext_cmds=".so" 9597postinstall_cmds= 9598postuninstall_cmds= 9599finish_cmds= 9600finish_eval= 9601shlibpath_var= 9602shlibpath_overrides_runpath=unknown 9603version_type=none 9604dynamic_linker="$host_os ld.so" 9605sys_lib_dlsearch_path_spec="/lib /usr/lib" 9606need_lib_prefix=unknown 9607hardcode_into_libs=no 9608 9609# when you set need_version to no, make sure it does not cause -set_version 9610# flags to be left without arguments 9611need_version=unknown 9612 9613case $host_os in 9614aix3*) 9615 version_type=linux 9616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9617 shlibpath_var=LIBPATH 9618 9619 # AIX 3 has no versioning support, so we append a major version to the name. 9620 soname_spec='${libname}${release}${shared_ext}$major' 9621 ;; 9622 9623aix[4-9]*) 9624 version_type=linux 9625 need_lib_prefix=no 9626 need_version=no 9627 hardcode_into_libs=yes 9628 if test "$host_cpu" = ia64; then 9629 # AIX 5 supports IA64 9630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9631 shlibpath_var=LD_LIBRARY_PATH 9632 else 9633 # With GCC up to 2.95.x, collect2 would create an import file 9634 # for dependence libraries. The import file would start with 9635 # the line `#! .'. This would cause the generated library to 9636 # depend on `.', always an invalid library. This was fixed in 9637 # development snapshots of GCC prior to 3.0. 9638 case $host_os in 9639 aix4 | aix4.[01] | aix4.[01].*) 9640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9641 echo ' yes ' 9642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9643 : 9644 else 9645 can_build_shared=no 9646 fi 9647 ;; 9648 esac 9649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9650 # soname into executable. Probably we can add versioning support to 9651 # collect2, so additional links can be useful in future. 9652 if test "$aix_use_runtimelinking" = yes; then 9653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9654 # instead of lib<name>.a to let people know that these are not 9655 # typical AIX shared libraries. 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9657 else 9658 # We preserve .a as extension for shared libraries through AIX4.2 9659 # and later when we are not doing run time linking. 9660 library_names_spec='${libname}${release}.a $libname.a' 9661 soname_spec='${libname}${release}${shared_ext}$major' 9662 fi 9663 shlibpath_var=LIBPATH 9664 fi 9665 ;; 9666 9667amigaos*) 9668 case $host_cpu in 9669 powerpc) 9670 # Since July 2007 AmigaOS4 officially supports .so libraries. 9671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9673 ;; 9674 m68k) 9675 library_names_spec='$libname.ixlibrary $libname.a' 9676 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9677 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' 9678 ;; 9679 esac 9680 ;; 9681 9682beos*) 9683 library_names_spec='${libname}${shared_ext}' 9684 dynamic_linker="$host_os ld.so" 9685 shlibpath_var=LIBRARY_PATH 9686 ;; 9687 9688bsdi[45]*) 9689 version_type=linux 9690 need_version=no 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9692 soname_spec='${libname}${release}${shared_ext}$major' 9693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9697 # the default ld.so.conf also contains /usr/contrib/lib and 9698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9699 # libtool to hard-code these into programs 9700 ;; 9701 9702cygwin* | mingw* | pw32* | cegcc*) 9703 version_type=windows 9704 shrext_cmds=".dll" 9705 need_version=no 9706 need_lib_prefix=no 9707 9708 case $GCC,$host_os in 9709 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9710 library_names_spec='$libname.dll.a' 9711 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9712 postinstall_cmds='base_file=`basename \${file}`~ 9713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9714 dldir=$destdir/`dirname \$dlpath`~ 9715 test -d \$dldir || mkdir -p \$dldir~ 9716 $install_prog $dir/$dlname \$dldir/$dlname~ 9717 chmod a+x \$dldir/$dlname~ 9718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9720 fi' 9721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9722 dlpath=$dir/\$dldll~ 9723 $RM \$dlpath' 9724 shlibpath_overrides_runpath=yes 9725 9726 case $host_os in 9727 cygwin*) 9728 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9731 ;; 9732 mingw* | cegcc*) 9733 # MinGW DLLs use traditional 'lib' prefix 9734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9735 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9736 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9737 # It is most probably a Windows format PATH printed by 9738 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9739 # path with ; separators, and with drive letters. We can handle the 9740 # drive letters (cygwin fileutils understands them), so leave them, 9741 # especially as we might pass files found there to a mingw objdump, 9742 # which wouldn't understand a cygwinified path. Ahh. 9743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9744 else 9745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9746 fi 9747 ;; 9748 pw32*) 9749 # pw32 DLLs use 'pw' prefix rather than 'lib' 9750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9751 ;; 9752 esac 9753 ;; 9754 9755 *) 9756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9757 ;; 9758 esac 9759 dynamic_linker='Win32 ld.exe' 9760 # FIXME: first we should search . and the directory the executable is in 9761 shlibpath_var=PATH 9762 ;; 9763 9764darwin* | rhapsody*) 9765 dynamic_linker="$host_os dyld" 9766 version_type=darwin 9767 need_lib_prefix=no 9768 need_version=no 9769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9770 soname_spec='${libname}${release}${major}$shared_ext' 9771 shlibpath_overrides_runpath=yes 9772 shlibpath_var=DYLD_LIBRARY_PATH 9773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9774 9775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9777 ;; 9778 9779dgux*) 9780 version_type=linux 9781 need_lib_prefix=no 9782 need_version=no 9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9784 soname_spec='${libname}${release}${shared_ext}$major' 9785 shlibpath_var=LD_LIBRARY_PATH 9786 ;; 9787 9788freebsd1*) 9789 dynamic_linker=no 9790 ;; 9791 9792freebsd* | dragonfly*) 9793 # DragonFly does not have aout. When/if they implement a new 9794 # versioning mechanism, adjust this. 9795 if test -x /usr/bin/objformat; then 9796 objformat=`/usr/bin/objformat` 9797 else 9798 case $host_os in 9799 freebsd[123]*) objformat=aout ;; 9800 *) objformat=elf ;; 9801 esac 9802 fi 9803 version_type=freebsd-$objformat 9804 case $version_type in 9805 freebsd-elf*) 9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9807 need_version=no 9808 need_lib_prefix=no 9809 ;; 9810 freebsd-*) 9811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9812 need_version=yes 9813 ;; 9814 esac 9815 shlibpath_var=LD_LIBRARY_PATH 9816 case $host_os in 9817 freebsd2*) 9818 shlibpath_overrides_runpath=yes 9819 ;; 9820 freebsd3.[01]* | freebsdelf3.[01]*) 9821 shlibpath_overrides_runpath=yes 9822 hardcode_into_libs=yes 9823 ;; 9824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9826 shlibpath_overrides_runpath=no 9827 hardcode_into_libs=yes 9828 ;; 9829 *) # from 4.6 on, and DragonFly 9830 shlibpath_overrides_runpath=yes 9831 hardcode_into_libs=yes 9832 ;; 9833 esac 9834 ;; 9835 9836gnu*) 9837 version_type=linux 9838 need_lib_prefix=no 9839 need_version=no 9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9841 soname_spec='${libname}${release}${shared_ext}$major' 9842 shlibpath_var=LD_LIBRARY_PATH 9843 hardcode_into_libs=yes 9844 ;; 9845 9846hpux9* | hpux10* | hpux11*) 9847 # Give a soname corresponding to the major version so that dld.sl refuses to 9848 # link against other versions. 9849 version_type=sunos 9850 need_lib_prefix=no 9851 need_version=no 9852 case $host_cpu in 9853 ia64*) 9854 shrext_cmds='.so' 9855 hardcode_into_libs=yes 9856 dynamic_linker="$host_os dld.so" 9857 shlibpath_var=LD_LIBRARY_PATH 9858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9860 soname_spec='${libname}${release}${shared_ext}$major' 9861 if test "X$HPUX_IA64_MODE" = X32; then 9862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9863 else 9864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9865 fi 9866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9867 ;; 9868 hppa*64*) 9869 shrext_cmds='.sl' 9870 hardcode_into_libs=yes 9871 dynamic_linker="$host_os dld.sl" 9872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9875 soname_spec='${libname}${release}${shared_ext}$major' 9876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9878 ;; 9879 *) 9880 shrext_cmds='.sl' 9881 dynamic_linker="$host_os dld.sl" 9882 shlibpath_var=SHLIB_PATH 9883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9885 soname_spec='${libname}${release}${shared_ext}$major' 9886 ;; 9887 esac 9888 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9889 postinstall_cmds='chmod 555 $lib' 9890 ;; 9891 9892interix[3-9]*) 9893 version_type=linux 9894 need_lib_prefix=no 9895 need_version=no 9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9897 soname_spec='${libname}${release}${shared_ext}$major' 9898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9899 shlibpath_var=LD_LIBRARY_PATH 9900 shlibpath_overrides_runpath=no 9901 hardcode_into_libs=yes 9902 ;; 9903 9904irix5* | irix6* | nonstopux*) 9905 case $host_os in 9906 nonstopux*) version_type=nonstopux ;; 9907 *) 9908 if test "$lt_cv_prog_gnu_ld" = yes; then 9909 version_type=linux 9910 else 9911 version_type=irix 9912 fi ;; 9913 esac 9914 need_lib_prefix=no 9915 need_version=no 9916 soname_spec='${libname}${release}${shared_ext}$major' 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9918 case $host_os in 9919 irix5* | nonstopux*) 9920 libsuff= shlibsuff= 9921 ;; 9922 *) 9923 case $LD in # libtool.m4 will add one of these switches to LD 9924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9925 libsuff= shlibsuff= libmagic=32-bit;; 9926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9927 libsuff=32 shlibsuff=N32 libmagic=N32;; 9928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9929 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9930 *) libsuff= shlibsuff= libmagic=never-match;; 9931 esac 9932 ;; 9933 esac 9934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9935 shlibpath_overrides_runpath=no 9936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9938 hardcode_into_libs=yes 9939 ;; 9940 9941# No shared lib support for Linux oldld, aout, or coff. 9942linux*oldld* | linux*aout* | linux*coff*) 9943 dynamic_linker=no 9944 ;; 9945 9946# This must be Linux ELF. 9947linux* | k*bsd*-gnu) 9948 version_type=linux 9949 need_lib_prefix=no 9950 need_version=no 9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9952 soname_spec='${libname}${release}${shared_ext}$major' 9953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9954 shlibpath_var=LD_LIBRARY_PATH 9955 shlibpath_overrides_runpath=no 9956 # Some binutils ld are patched to set DT_RUNPATH 9957 save_LDFLAGS=$LDFLAGS 9958 save_libdir=$libdir 9959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9961 cat >conftest.$ac_ext <<_ACEOF 9962/* confdefs.h. */ 9963_ACEOF 9964cat confdefs.h >>conftest.$ac_ext 9965cat >>conftest.$ac_ext <<_ACEOF 9966/* end confdefs.h. */ 9967 9968int 9969main () 9970{ 9971 9972 ; 9973 return 0; 9974} 9975_ACEOF 9976rm -f conftest.$ac_objext conftest$ac_exeext 9977if { (ac_try="$ac_link" 9978case "(($ac_try" in 9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9980 *) ac_try_echo=$ac_try;; 9981esac 9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9983 (eval "$ac_link") 2>conftest.er1 9984 ac_status=$? 9985 grep -v '^ *+' conftest.er1 >conftest.err 9986 rm -f conftest.er1 9987 cat conftest.err >&5 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); } && { 9990 test -z "$ac_c_werror_flag" || 9991 test ! -s conftest.err 9992 } && test -s conftest$ac_exeext && 9993 $as_test_x conftest$ac_exeext; then 9994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9995 shlibpath_overrides_runpath=yes 9996fi 9997 9998else 9999 echo "$as_me: failed program was:" >&5 10000sed 's/^/| /' conftest.$ac_ext >&5 10001 10002 10003fi 10004 10005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10006 conftest$ac_exeext conftest.$ac_ext 10007 LDFLAGS=$save_LDFLAGS 10008 libdir=$save_libdir 10009 10010 # This implies no fast_install, which is unacceptable. 10011 # Some rework will be needed to allow for fast_install 10012 # before this can be enabled. 10013 hardcode_into_libs=yes 10014 10015 # Append ld.so.conf contents to the search path 10016 if test -f /etc/ld.so.conf; then 10017 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10019 fi 10020 10021 # We used to test for /lib/ld.so.1 and disable shared libraries on 10022 # powerpc, because MkLinux only supported shared libraries with the 10023 # GNU dynamic linker. Since this was broken with cross compilers, 10024 # most powerpc-linux boxes support dynamic linking these days and 10025 # people can always --disable-shared, the test was removed, and we 10026 # assume the GNU/Linux dynamic linker is in use. 10027 dynamic_linker='GNU/Linux ld.so' 10028 ;; 10029 10030netbsdelf*-gnu) 10031 version_type=linux 10032 need_lib_prefix=no 10033 need_version=no 10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10035 soname_spec='${libname}${release}${shared_ext}$major' 10036 shlibpath_var=LD_LIBRARY_PATH 10037 shlibpath_overrides_runpath=no 10038 hardcode_into_libs=yes 10039 dynamic_linker='NetBSD ld.elf_so' 10040 ;; 10041 10042netbsd*) 10043 version_type=sunos 10044 need_lib_prefix=no 10045 need_version=no 10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10049 dynamic_linker='NetBSD (a.out) ld.so' 10050 else 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10052 soname_spec='${libname}${release}${shared_ext}$major' 10053 dynamic_linker='NetBSD ld.elf_so' 10054 fi 10055 shlibpath_var=LD_LIBRARY_PATH 10056 shlibpath_overrides_runpath=yes 10057 hardcode_into_libs=yes 10058 ;; 10059 10060newsos6) 10061 version_type=linux 10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10063 shlibpath_var=LD_LIBRARY_PATH 10064 shlibpath_overrides_runpath=yes 10065 ;; 10066 10067*nto* | *qnx*) 10068 version_type=qnx 10069 need_lib_prefix=no 10070 need_version=no 10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10072 soname_spec='${libname}${release}${shared_ext}$major' 10073 shlibpath_var=LD_LIBRARY_PATH 10074 shlibpath_overrides_runpath=no 10075 hardcode_into_libs=yes 10076 dynamic_linker='ldqnx.so' 10077 ;; 10078 10079openbsd*) 10080 version_type=sunos 10081 sys_lib_dlsearch_path_spec="/usr/lib" 10082 need_lib_prefix=no 10083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10084 case $host_os in 10085 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10086 *) need_version=no ;; 10087 esac 10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10090 shlibpath_var=LD_LIBRARY_PATH 10091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10092 case $host_os in 10093 openbsd2.[89] | openbsd2.[89].*) 10094 shlibpath_overrides_runpath=no 10095 ;; 10096 *) 10097 shlibpath_overrides_runpath=yes 10098 ;; 10099 esac 10100 else 10101 shlibpath_overrides_runpath=yes 10102 fi 10103 ;; 10104 10105os2*) 10106 libname_spec='$name' 10107 shrext_cmds=".dll" 10108 need_lib_prefix=no 10109 library_names_spec='$libname${shared_ext} $libname.a' 10110 dynamic_linker='OS/2 ld.exe' 10111 shlibpath_var=LIBPATH 10112 ;; 10113 10114osf3* | osf4* | osf5*) 10115 version_type=osf 10116 need_lib_prefix=no 10117 need_version=no 10118 soname_spec='${libname}${release}${shared_ext}$major' 10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10120 shlibpath_var=LD_LIBRARY_PATH 10121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10123 ;; 10124 10125rdos*) 10126 dynamic_linker=no 10127 ;; 10128 10129solaris*) 10130 version_type=linux 10131 need_lib_prefix=no 10132 need_version=no 10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10134 soname_spec='${libname}${release}${shared_ext}$major' 10135 shlibpath_var=LD_LIBRARY_PATH 10136 shlibpath_overrides_runpath=yes 10137 hardcode_into_libs=yes 10138 # ldd complains unless libraries are executable 10139 postinstall_cmds='chmod +x $lib' 10140 ;; 10141 10142sunos4*) 10143 version_type=sunos 10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10146 shlibpath_var=LD_LIBRARY_PATH 10147 shlibpath_overrides_runpath=yes 10148 if test "$with_gnu_ld" = yes; then 10149 need_lib_prefix=no 10150 fi 10151 need_version=yes 10152 ;; 10153 10154sysv4 | sysv4.3*) 10155 version_type=linux 10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10157 soname_spec='${libname}${release}${shared_ext}$major' 10158 shlibpath_var=LD_LIBRARY_PATH 10159 case $host_vendor in 10160 sni) 10161 shlibpath_overrides_runpath=no 10162 need_lib_prefix=no 10163 runpath_var=LD_RUN_PATH 10164 ;; 10165 siemens) 10166 need_lib_prefix=no 10167 ;; 10168 motorola) 10169 need_lib_prefix=no 10170 need_version=no 10171 shlibpath_overrides_runpath=no 10172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10173 ;; 10174 esac 10175 ;; 10176 10177sysv4*MP*) 10178 if test -d /usr/nec ;then 10179 version_type=linux 10180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10181 soname_spec='$libname${shared_ext}.$major' 10182 shlibpath_var=LD_LIBRARY_PATH 10183 fi 10184 ;; 10185 10186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10187 version_type=freebsd-elf 10188 need_lib_prefix=no 10189 need_version=no 10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10191 soname_spec='${libname}${release}${shared_ext}$major' 10192 shlibpath_var=LD_LIBRARY_PATH 10193 shlibpath_overrides_runpath=yes 10194 hardcode_into_libs=yes 10195 if test "$with_gnu_ld" = yes; then 10196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10197 else 10198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10199 case $host_os in 10200 sco3.2v5*) 10201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10202 ;; 10203 esac 10204 fi 10205 sys_lib_dlsearch_path_spec='/usr/lib' 10206 ;; 10207 10208tpf*) 10209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10210 version_type=linux 10211 need_lib_prefix=no 10212 need_version=no 10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10214 shlibpath_var=LD_LIBRARY_PATH 10215 shlibpath_overrides_runpath=no 10216 hardcode_into_libs=yes 10217 ;; 10218 10219uts4*) 10220 version_type=linux 10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10222 soname_spec='${libname}${release}${shared_ext}$major' 10223 shlibpath_var=LD_LIBRARY_PATH 10224 ;; 10225 10226*) 10227 dynamic_linker=no 10228 ;; 10229esac 10230{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10231echo "${ECHO_T}$dynamic_linker" >&6; } 10232test "$dynamic_linker" = no && can_build_shared=no 10233 10234variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10235if test "$GCC" = yes; then 10236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10237fi 10238 10239if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10241fi 10242if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10244fi 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10333echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10334hardcode_action= 10335if test -n "$hardcode_libdir_flag_spec" || 10336 test -n "$runpath_var" || 10337 test "X$hardcode_automatic" = "Xyes" ; then 10338 10339 # We can hardcode non-existent directories. 10340 if test "$hardcode_direct" != no && 10341 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10342 # have to relink, otherwise we might link with an installed library 10343 # when we should be linking with a yet-to-be-installed one 10344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10345 test "$hardcode_minus_L" != no; then 10346 # Linking always hardcodes the temporary library directory. 10347 hardcode_action=relink 10348 else 10349 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10350 hardcode_action=immediate 10351 fi 10352else 10353 # We cannot hardcode anything, or else we can only hardcode existing 10354 # directories. 10355 hardcode_action=unsupported 10356fi 10357{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10358echo "${ECHO_T}$hardcode_action" >&6; } 10359 10360if test "$hardcode_action" = relink || 10361 test "$inherit_rpath" = yes; then 10362 # Fast installation is not supported 10363 enable_fast_install=no 10364elif test "$shlibpath_overrides_runpath" = yes || 10365 test "$enable_shared" = no; then 10366 # Fast installation is not necessary 10367 enable_fast_install=needless 10368fi 10369 10370 10371 10372 10373 10374 10375 if test "x$enable_dlopen" != xyes; then 10376 enable_dlopen=unknown 10377 enable_dlopen_self=unknown 10378 enable_dlopen_self_static=unknown 10379else 10380 lt_cv_dlopen=no 10381 lt_cv_dlopen_libs= 10382 10383 case $host_os in 10384 beos*) 10385 lt_cv_dlopen="load_add_on" 10386 lt_cv_dlopen_libs= 10387 lt_cv_dlopen_self=yes 10388 ;; 10389 10390 mingw* | pw32* | cegcc*) 10391 lt_cv_dlopen="LoadLibrary" 10392 lt_cv_dlopen_libs= 10393 ;; 10394 10395 cygwin*) 10396 lt_cv_dlopen="dlopen" 10397 lt_cv_dlopen_libs= 10398 ;; 10399 10400 darwin*) 10401 # if libdl is installed we need to link against it 10402 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10403echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10404if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10405 echo $ECHO_N "(cached) $ECHO_C" >&6 10406else 10407 ac_check_lib_save_LIBS=$LIBS 10408LIBS="-ldl $LIBS" 10409cat >conftest.$ac_ext <<_ACEOF 10410/* confdefs.h. */ 10411_ACEOF 10412cat confdefs.h >>conftest.$ac_ext 10413cat >>conftest.$ac_ext <<_ACEOF 10414/* end confdefs.h. */ 10415 10416/* Override any GCC internal prototype to avoid an error. 10417 Use char because int might match the return type of a GCC 10418 builtin and then its argument prototype would still apply. */ 10419#ifdef __cplusplus 10420extern "C" 10421#endif 10422char dlopen (); 10423int 10424main () 10425{ 10426return dlopen (); 10427 ; 10428 return 0; 10429} 10430_ACEOF 10431rm -f conftest.$ac_objext conftest$ac_exeext 10432if { (ac_try="$ac_link" 10433case "(($ac_try" in 10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10435 *) ac_try_echo=$ac_try;; 10436esac 10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10438 (eval "$ac_link") 2>conftest.er1 10439 ac_status=$? 10440 grep -v '^ *+' conftest.er1 >conftest.err 10441 rm -f conftest.er1 10442 cat conftest.err >&5 10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10444 (exit $ac_status); } && { 10445 test -z "$ac_c_werror_flag" || 10446 test ! -s conftest.err 10447 } && test -s conftest$ac_exeext && 10448 $as_test_x conftest$ac_exeext; then 10449 ac_cv_lib_dl_dlopen=yes 10450else 10451 echo "$as_me: failed program was:" >&5 10452sed 's/^/| /' conftest.$ac_ext >&5 10453 10454 ac_cv_lib_dl_dlopen=no 10455fi 10456 10457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10458 conftest$ac_exeext conftest.$ac_ext 10459LIBS=$ac_check_lib_save_LIBS 10460fi 10461{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10462echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10463if test $ac_cv_lib_dl_dlopen = yes; then 10464 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10465else 10466 10467 lt_cv_dlopen="dyld" 10468 lt_cv_dlopen_libs= 10469 lt_cv_dlopen_self=yes 10470 10471fi 10472 10473 ;; 10474 10475 *) 10476 { echo "$as_me:$LINENO: checking for shl_load" >&5 10477echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10478if test "${ac_cv_func_shl_load+set}" = set; then 10479 echo $ECHO_N "(cached) $ECHO_C" >&6 10480else 10481 cat >conftest.$ac_ext <<_ACEOF 10482/* confdefs.h. */ 10483_ACEOF 10484cat confdefs.h >>conftest.$ac_ext 10485cat >>conftest.$ac_ext <<_ACEOF 10486/* end confdefs.h. */ 10487/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10489#define shl_load innocuous_shl_load 10490 10491/* System header to define __stub macros and hopefully few prototypes, 10492 which can conflict with char shl_load (); below. 10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10494 <limits.h> exists even on freestanding compilers. */ 10495 10496#ifdef __STDC__ 10497# include <limits.h> 10498#else 10499# include <assert.h> 10500#endif 10501 10502#undef shl_load 10503 10504/* Override any GCC internal prototype to avoid an error. 10505 Use char because int might match the return type of a GCC 10506 builtin and then its argument prototype would still apply. */ 10507#ifdef __cplusplus 10508extern "C" 10509#endif 10510char shl_load (); 10511/* The GNU C library defines this for functions which it implements 10512 to always fail with ENOSYS. Some functions are actually named 10513 something starting with __ and the normal name is an alias. */ 10514#if defined __stub_shl_load || defined __stub___shl_load 10515choke me 10516#endif 10517 10518int 10519main () 10520{ 10521return shl_load (); 10522 ; 10523 return 0; 10524} 10525_ACEOF 10526rm -f conftest.$ac_objext conftest$ac_exeext 10527if { (ac_try="$ac_link" 10528case "(($ac_try" in 10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10530 *) ac_try_echo=$ac_try;; 10531esac 10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10533 (eval "$ac_link") 2>conftest.er1 10534 ac_status=$? 10535 grep -v '^ *+' conftest.er1 >conftest.err 10536 rm -f conftest.er1 10537 cat conftest.err >&5 10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10539 (exit $ac_status); } && { 10540 test -z "$ac_c_werror_flag" || 10541 test ! -s conftest.err 10542 } && test -s conftest$ac_exeext && 10543 $as_test_x conftest$ac_exeext; then 10544 ac_cv_func_shl_load=yes 10545else 10546 echo "$as_me: failed program was:" >&5 10547sed 's/^/| /' conftest.$ac_ext >&5 10548 10549 ac_cv_func_shl_load=no 10550fi 10551 10552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10553 conftest$ac_exeext conftest.$ac_ext 10554fi 10555{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10556echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10557if test $ac_cv_func_shl_load = yes; then 10558 lt_cv_dlopen="shl_load" 10559else 10560 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10561echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10562if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10563 echo $ECHO_N "(cached) $ECHO_C" >&6 10564else 10565 ac_check_lib_save_LIBS=$LIBS 10566LIBS="-ldld $LIBS" 10567cat >conftest.$ac_ext <<_ACEOF 10568/* confdefs.h. */ 10569_ACEOF 10570cat confdefs.h >>conftest.$ac_ext 10571cat >>conftest.$ac_ext <<_ACEOF 10572/* end confdefs.h. */ 10573 10574/* Override any GCC internal prototype to avoid an error. 10575 Use char because int might match the return type of a GCC 10576 builtin and then its argument prototype would still apply. */ 10577#ifdef __cplusplus 10578extern "C" 10579#endif 10580char shl_load (); 10581int 10582main () 10583{ 10584return shl_load (); 10585 ; 10586 return 0; 10587} 10588_ACEOF 10589rm -f conftest.$ac_objext conftest$ac_exeext 10590if { (ac_try="$ac_link" 10591case "(($ac_try" in 10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10593 *) ac_try_echo=$ac_try;; 10594esac 10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10596 (eval "$ac_link") 2>conftest.er1 10597 ac_status=$? 10598 grep -v '^ *+' conftest.er1 >conftest.err 10599 rm -f conftest.er1 10600 cat conftest.err >&5 10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10602 (exit $ac_status); } && { 10603 test -z "$ac_c_werror_flag" || 10604 test ! -s conftest.err 10605 } && test -s conftest$ac_exeext && 10606 $as_test_x conftest$ac_exeext; then 10607 ac_cv_lib_dld_shl_load=yes 10608else 10609 echo "$as_me: failed program was:" >&5 10610sed 's/^/| /' conftest.$ac_ext >&5 10611 10612 ac_cv_lib_dld_shl_load=no 10613fi 10614 10615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10616 conftest$ac_exeext conftest.$ac_ext 10617LIBS=$ac_check_lib_save_LIBS 10618fi 10619{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10620echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10621if test $ac_cv_lib_dld_shl_load = yes; then 10622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10623else 10624 { echo "$as_me:$LINENO: checking for dlopen" >&5 10625echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10626if test "${ac_cv_func_dlopen+set}" = set; then 10627 echo $ECHO_N "(cached) $ECHO_C" >&6 10628else 10629 cat >conftest.$ac_ext <<_ACEOF 10630/* confdefs.h. */ 10631_ACEOF 10632cat confdefs.h >>conftest.$ac_ext 10633cat >>conftest.$ac_ext <<_ACEOF 10634/* end confdefs.h. */ 10635/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10637#define dlopen innocuous_dlopen 10638 10639/* System header to define __stub macros and hopefully few prototypes, 10640 which can conflict with char dlopen (); below. 10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10642 <limits.h> exists even on freestanding compilers. */ 10643 10644#ifdef __STDC__ 10645# include <limits.h> 10646#else 10647# include <assert.h> 10648#endif 10649 10650#undef dlopen 10651 10652/* Override any GCC internal prototype to avoid an error. 10653 Use char because int might match the return type of a GCC 10654 builtin and then its argument prototype would still apply. */ 10655#ifdef __cplusplus 10656extern "C" 10657#endif 10658char dlopen (); 10659/* The GNU C library defines this for functions which it implements 10660 to always fail with ENOSYS. Some functions are actually named 10661 something starting with __ and the normal name is an alias. */ 10662#if defined __stub_dlopen || defined __stub___dlopen 10663choke me 10664#endif 10665 10666int 10667main () 10668{ 10669return dlopen (); 10670 ; 10671 return 0; 10672} 10673_ACEOF 10674rm -f conftest.$ac_objext conftest$ac_exeext 10675if { (ac_try="$ac_link" 10676case "(($ac_try" in 10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10678 *) ac_try_echo=$ac_try;; 10679esac 10680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10681 (eval "$ac_link") 2>conftest.er1 10682 ac_status=$? 10683 grep -v '^ *+' conftest.er1 >conftest.err 10684 rm -f conftest.er1 10685 cat conftest.err >&5 10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10687 (exit $ac_status); } && { 10688 test -z "$ac_c_werror_flag" || 10689 test ! -s conftest.err 10690 } && test -s conftest$ac_exeext && 10691 $as_test_x conftest$ac_exeext; then 10692 ac_cv_func_dlopen=yes 10693else 10694 echo "$as_me: failed program was:" >&5 10695sed 's/^/| /' conftest.$ac_ext >&5 10696 10697 ac_cv_func_dlopen=no 10698fi 10699 10700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10701 conftest$ac_exeext conftest.$ac_ext 10702fi 10703{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10704echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10705if test $ac_cv_func_dlopen = yes; then 10706 lt_cv_dlopen="dlopen" 10707else 10708 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10710if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10711 echo $ECHO_N "(cached) $ECHO_C" >&6 10712else 10713 ac_check_lib_save_LIBS=$LIBS 10714LIBS="-ldl $LIBS" 10715cat >conftest.$ac_ext <<_ACEOF 10716/* confdefs.h. */ 10717_ACEOF 10718cat confdefs.h >>conftest.$ac_ext 10719cat >>conftest.$ac_ext <<_ACEOF 10720/* end confdefs.h. */ 10721 10722/* Override any GCC internal prototype to avoid an error. 10723 Use char because int might match the return type of a GCC 10724 builtin and then its argument prototype would still apply. */ 10725#ifdef __cplusplus 10726extern "C" 10727#endif 10728char dlopen (); 10729int 10730main () 10731{ 10732return dlopen (); 10733 ; 10734 return 0; 10735} 10736_ACEOF 10737rm -f conftest.$ac_objext conftest$ac_exeext 10738if { (ac_try="$ac_link" 10739case "(($ac_try" in 10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10741 *) ac_try_echo=$ac_try;; 10742esac 10743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10744 (eval "$ac_link") 2>conftest.er1 10745 ac_status=$? 10746 grep -v '^ *+' conftest.er1 >conftest.err 10747 rm -f conftest.er1 10748 cat conftest.err >&5 10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); } && { 10751 test -z "$ac_c_werror_flag" || 10752 test ! -s conftest.err 10753 } && test -s conftest$ac_exeext && 10754 $as_test_x conftest$ac_exeext; then 10755 ac_cv_lib_dl_dlopen=yes 10756else 10757 echo "$as_me: failed program was:" >&5 10758sed 's/^/| /' conftest.$ac_ext >&5 10759 10760 ac_cv_lib_dl_dlopen=no 10761fi 10762 10763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10764 conftest$ac_exeext conftest.$ac_ext 10765LIBS=$ac_check_lib_save_LIBS 10766fi 10767{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10769if test $ac_cv_lib_dl_dlopen = yes; then 10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10771else 10772 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10773echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10774if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10775 echo $ECHO_N "(cached) $ECHO_C" >&6 10776else 10777 ac_check_lib_save_LIBS=$LIBS 10778LIBS="-lsvld $LIBS" 10779cat >conftest.$ac_ext <<_ACEOF 10780/* confdefs.h. */ 10781_ACEOF 10782cat confdefs.h >>conftest.$ac_ext 10783cat >>conftest.$ac_ext <<_ACEOF 10784/* end confdefs.h. */ 10785 10786/* Override any GCC internal prototype to avoid an error. 10787 Use char because int might match the return type of a GCC 10788 builtin and then its argument prototype would still apply. */ 10789#ifdef __cplusplus 10790extern "C" 10791#endif 10792char dlopen (); 10793int 10794main () 10795{ 10796return dlopen (); 10797 ; 10798 return 0; 10799} 10800_ACEOF 10801rm -f conftest.$ac_objext conftest$ac_exeext 10802if { (ac_try="$ac_link" 10803case "(($ac_try" in 10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10805 *) ac_try_echo=$ac_try;; 10806esac 10807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10808 (eval "$ac_link") 2>conftest.er1 10809 ac_status=$? 10810 grep -v '^ *+' conftest.er1 >conftest.err 10811 rm -f conftest.er1 10812 cat conftest.err >&5 10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10814 (exit $ac_status); } && { 10815 test -z "$ac_c_werror_flag" || 10816 test ! -s conftest.err 10817 } && test -s conftest$ac_exeext && 10818 $as_test_x conftest$ac_exeext; then 10819 ac_cv_lib_svld_dlopen=yes 10820else 10821 echo "$as_me: failed program was:" >&5 10822sed 's/^/| /' conftest.$ac_ext >&5 10823 10824 ac_cv_lib_svld_dlopen=no 10825fi 10826 10827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10828 conftest$ac_exeext conftest.$ac_ext 10829LIBS=$ac_check_lib_save_LIBS 10830fi 10831{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10832echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10833if test $ac_cv_lib_svld_dlopen = yes; then 10834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10835else 10836 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10837echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10838if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10839 echo $ECHO_N "(cached) $ECHO_C" >&6 10840else 10841 ac_check_lib_save_LIBS=$LIBS 10842LIBS="-ldld $LIBS" 10843cat >conftest.$ac_ext <<_ACEOF 10844/* confdefs.h. */ 10845_ACEOF 10846cat confdefs.h >>conftest.$ac_ext 10847cat >>conftest.$ac_ext <<_ACEOF 10848/* end confdefs.h. */ 10849 10850/* Override any GCC internal prototype to avoid an error. 10851 Use char because int might match the return type of a GCC 10852 builtin and then its argument prototype would still apply. */ 10853#ifdef __cplusplus 10854extern "C" 10855#endif 10856char dld_link (); 10857int 10858main () 10859{ 10860return dld_link (); 10861 ; 10862 return 0; 10863} 10864_ACEOF 10865rm -f conftest.$ac_objext conftest$ac_exeext 10866if { (ac_try="$ac_link" 10867case "(($ac_try" in 10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10869 *) ac_try_echo=$ac_try;; 10870esac 10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10872 (eval "$ac_link") 2>conftest.er1 10873 ac_status=$? 10874 grep -v '^ *+' conftest.er1 >conftest.err 10875 rm -f conftest.er1 10876 cat conftest.err >&5 10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 (exit $ac_status); } && { 10879 test -z "$ac_c_werror_flag" || 10880 test ! -s conftest.err 10881 } && test -s conftest$ac_exeext && 10882 $as_test_x conftest$ac_exeext; then 10883 ac_cv_lib_dld_dld_link=yes 10884else 10885 echo "$as_me: failed program was:" >&5 10886sed 's/^/| /' conftest.$ac_ext >&5 10887 10888 ac_cv_lib_dld_dld_link=no 10889fi 10890 10891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10892 conftest$ac_exeext conftest.$ac_ext 10893LIBS=$ac_check_lib_save_LIBS 10894fi 10895{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10896echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10897if test $ac_cv_lib_dld_dld_link = yes; then 10898 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10899fi 10900 10901 10902fi 10903 10904 10905fi 10906 10907 10908fi 10909 10910 10911fi 10912 10913 10914fi 10915 10916 ;; 10917 esac 10918 10919 if test "x$lt_cv_dlopen" != xno; then 10920 enable_dlopen=yes 10921 else 10922 enable_dlopen=no 10923 fi 10924 10925 case $lt_cv_dlopen in 10926 dlopen) 10927 save_CPPFLAGS="$CPPFLAGS" 10928 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10929 10930 save_LDFLAGS="$LDFLAGS" 10931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10932 10933 save_LIBS="$LIBS" 10934 LIBS="$lt_cv_dlopen_libs $LIBS" 10935 10936 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10937echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10938if test "${lt_cv_dlopen_self+set}" = set; then 10939 echo $ECHO_N "(cached) $ECHO_C" >&6 10940else 10941 if test "$cross_compiling" = yes; then : 10942 lt_cv_dlopen_self=cross 10943else 10944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10945 lt_status=$lt_dlunknown 10946 cat > conftest.$ac_ext <<_LT_EOF 10947#line 10947 "configure" 10948#include "confdefs.h" 10949 10950#if HAVE_DLFCN_H 10951#include <dlfcn.h> 10952#endif 10953 10954#include <stdio.h> 10955 10956#ifdef RTLD_GLOBAL 10957# define LT_DLGLOBAL RTLD_GLOBAL 10958#else 10959# ifdef DL_GLOBAL 10960# define LT_DLGLOBAL DL_GLOBAL 10961# else 10962# define LT_DLGLOBAL 0 10963# endif 10964#endif 10965 10966/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10967 find out it does not work in some platform. */ 10968#ifndef LT_DLLAZY_OR_NOW 10969# ifdef RTLD_LAZY 10970# define LT_DLLAZY_OR_NOW RTLD_LAZY 10971# else 10972# ifdef DL_LAZY 10973# define LT_DLLAZY_OR_NOW DL_LAZY 10974# else 10975# ifdef RTLD_NOW 10976# define LT_DLLAZY_OR_NOW RTLD_NOW 10977# else 10978# ifdef DL_NOW 10979# define LT_DLLAZY_OR_NOW DL_NOW 10980# else 10981# define LT_DLLAZY_OR_NOW 0 10982# endif 10983# endif 10984# endif 10985# endif 10986#endif 10987 10988void fnord() { int i=42;} 10989int main () 10990{ 10991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10992 int status = $lt_dlunknown; 10993 10994 if (self) 10995 { 10996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10997 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10998 /* dlclose (self); */ 10999 } 11000 else 11001 puts (dlerror ()); 11002 11003 return status; 11004} 11005_LT_EOF 11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11007 (eval $ac_link) 2>&5 11008 ac_status=$? 11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11011 (./conftest; exit; ) >&5 2>/dev/null 11012 lt_status=$? 11013 case x$lt_status in 11014 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11015 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11016 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11017 esac 11018 else : 11019 # compilation failed 11020 lt_cv_dlopen_self=no 11021 fi 11022fi 11023rm -fr conftest* 11024 11025 11026fi 11027{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11028echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11029 11030 if test "x$lt_cv_dlopen_self" = xyes; then 11031 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11032 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11033echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11034if test "${lt_cv_dlopen_self_static+set}" = set; then 11035 echo $ECHO_N "(cached) $ECHO_C" >&6 11036else 11037 if test "$cross_compiling" = yes; then : 11038 lt_cv_dlopen_self_static=cross 11039else 11040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11041 lt_status=$lt_dlunknown 11042 cat > conftest.$ac_ext <<_LT_EOF 11043#line 11043 "configure" 11044#include "confdefs.h" 11045 11046#if HAVE_DLFCN_H 11047#include <dlfcn.h> 11048#endif 11049 11050#include <stdio.h> 11051 11052#ifdef RTLD_GLOBAL 11053# define LT_DLGLOBAL RTLD_GLOBAL 11054#else 11055# ifdef DL_GLOBAL 11056# define LT_DLGLOBAL DL_GLOBAL 11057# else 11058# define LT_DLGLOBAL 0 11059# endif 11060#endif 11061 11062/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11063 find out it does not work in some platform. */ 11064#ifndef LT_DLLAZY_OR_NOW 11065# ifdef RTLD_LAZY 11066# define LT_DLLAZY_OR_NOW RTLD_LAZY 11067# else 11068# ifdef DL_LAZY 11069# define LT_DLLAZY_OR_NOW DL_LAZY 11070# else 11071# ifdef RTLD_NOW 11072# define LT_DLLAZY_OR_NOW RTLD_NOW 11073# else 11074# ifdef DL_NOW 11075# define LT_DLLAZY_OR_NOW DL_NOW 11076# else 11077# define LT_DLLAZY_OR_NOW 0 11078# endif 11079# endif 11080# endif 11081# endif 11082#endif 11083 11084void fnord() { int i=42;} 11085int main () 11086{ 11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11088 int status = $lt_dlunknown; 11089 11090 if (self) 11091 { 11092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11094 /* dlclose (self); */ 11095 } 11096 else 11097 puts (dlerror ()); 11098 11099 return status; 11100} 11101_LT_EOF 11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11103 (eval $ac_link) 2>&5 11104 ac_status=$? 11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11107 (./conftest; exit; ) >&5 2>/dev/null 11108 lt_status=$? 11109 case x$lt_status in 11110 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11111 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11112 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11113 esac 11114 else : 11115 # compilation failed 11116 lt_cv_dlopen_self_static=no 11117 fi 11118fi 11119rm -fr conftest* 11120 11121 11122fi 11123{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11124echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11125 fi 11126 11127 CPPFLAGS="$save_CPPFLAGS" 11128 LDFLAGS="$save_LDFLAGS" 11129 LIBS="$save_LIBS" 11130 ;; 11131 esac 11132 11133 case $lt_cv_dlopen_self in 11134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11135 *) enable_dlopen_self=unknown ;; 11136 esac 11137 11138 case $lt_cv_dlopen_self_static in 11139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11140 *) enable_dlopen_self_static=unknown ;; 11141 esac 11142fi 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160striplib= 11161old_striplib= 11162{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11163echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11164if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11166 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11167 { echo "$as_me:$LINENO: result: yes" >&5 11168echo "${ECHO_T}yes" >&6; } 11169else 11170# FIXME - insert some real tests, host_os isn't really good enough 11171 case $host_os in 11172 darwin*) 11173 if test -n "$STRIP" ; then 11174 striplib="$STRIP -x" 11175 old_striplib="$STRIP -S" 11176 { echo "$as_me:$LINENO: result: yes" >&5 11177echo "${ECHO_T}yes" >&6; } 11178 else 11179 { echo "$as_me:$LINENO: result: no" >&5 11180echo "${ECHO_T}no" >&6; } 11181 fi 11182 ;; 11183 *) 11184 { echo "$as_me:$LINENO: result: no" >&5 11185echo "${ECHO_T}no" >&6; } 11186 ;; 11187 esac 11188fi 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 # Report which library types will actually be built 11202 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11203echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11204 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 11205echo "${ECHO_T}$can_build_shared" >&6; } 11206 11207 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11208echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11209 test "$can_build_shared" = "no" && enable_shared=no 11210 11211 # On AIX, shared libraries and static libraries use the same namespace, and 11212 # are all built from PIC. 11213 case $host_os in 11214 aix3*) 11215 test "$enable_shared" = yes && enable_static=no 11216 if test -n "$RANLIB"; then 11217 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11218 postinstall_cmds='$RANLIB $lib' 11219 fi 11220 ;; 11221 11222 aix[4-9]*) 11223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11224 test "$enable_shared" = yes && enable_static=no 11225 fi 11226 ;; 11227 esac 11228 { echo "$as_me:$LINENO: result: $enable_shared" >&5 11229echo "${ECHO_T}$enable_shared" >&6; } 11230 11231 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11232echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11233 # Make sure either enable_shared or enable_static is yes. 11234 test "$enable_shared" = yes || enable_static=yes 11235 { echo "$as_me:$LINENO: result: $enable_static" >&5 11236echo "${ECHO_T}$enable_static" >&6; } 11237 11238 11239 11240 11241fi 11242ac_ext=c 11243ac_cpp='$CPP $CPPFLAGS' 11244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11246ac_compiler_gnu=$ac_cv_c_compiler_gnu 11247 11248CC="$lt_save_CC" 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 ac_config_commands="$ac_config_commands libtool" 11263 11264 11265 11266 11267# Only expand once: 11268 11269 11270{ echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 11271echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; } 11272if test "${libltdl_cv_shlibext+set}" = set; then 11273 echo $ECHO_N "(cached) $ECHO_C" >&6 11274else 11275 11276module=yes 11277eval libltdl_cv_shlibext=$shrext_cmds 11278 11279fi 11280{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 11281echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 11282if test -n "$libltdl_cv_shlibext"; then 11283 11284cat >>confdefs.h <<_ACEOF 11285#define LT_MODULE_EXT "$libltdl_cv_shlibext" 11286_ACEOF 11287 11288fi 11289 11290{ echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5 11291echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; } 11292if test "${lt_cv_module_path_var+set}" = set; then 11293 echo $ECHO_N "(cached) $ECHO_C" >&6 11294else 11295 lt_cv_module_path_var="$shlibpath_var" 11296fi 11297{ echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5 11298echo "${ECHO_T}$lt_cv_module_path_var" >&6; } 11299if test -n "$lt_cv_module_path_var"; then 11300 11301cat >>confdefs.h <<_ACEOF 11302#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 11303_ACEOF 11304 11305fi 11306 11307{ echo "$as_me:$LINENO: checking for the default library search path" >&5 11308echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 11309if test "${lt_cv_sys_dlsearch_path+set}" = set; then 11310 echo $ECHO_N "(cached) $ECHO_C" >&6 11311else 11312 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" 11313fi 11314{ echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5 11315echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; } 11316if test -n "$lt_cv_sys_dlsearch_path"; then 11317 sys_dlsearch_path= 11318 for dir in $lt_cv_sys_dlsearch_path; do 11319 if test -z "$sys_dlsearch_path"; then 11320 sys_dlsearch_path="$dir" 11321 else 11322 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 11323 fi 11324 done 11325 11326cat >>confdefs.h <<_ACEOF 11327#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 11328_ACEOF 11329 11330fi 11331 11332 11333LT_DLLOADERS= 11334 11335 11336ac_ext=c 11337ac_cpp='$CPP $CPPFLAGS' 11338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11340ac_compiler_gnu=$ac_cv_c_compiler_gnu 11341 11342 11343LIBADD_DLOPEN= 11344{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 11345echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 11346if test "${ac_cv_search_dlopen+set}" = set; then 11347 echo $ECHO_N "(cached) $ECHO_C" >&6 11348else 11349 ac_func_search_save_LIBS=$LIBS 11350cat >conftest.$ac_ext <<_ACEOF 11351/* confdefs.h. */ 11352_ACEOF 11353cat confdefs.h >>conftest.$ac_ext 11354cat >>conftest.$ac_ext <<_ACEOF 11355/* end confdefs.h. */ 11356 11357/* Override any GCC internal prototype to avoid an error. 11358 Use char because int might match the return type of a GCC 11359 builtin and then its argument prototype would still apply. */ 11360#ifdef __cplusplus 11361extern "C" 11362#endif 11363char dlopen (); 11364int 11365main () 11366{ 11367return dlopen (); 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372for ac_lib in '' dl; do 11373 if test -z "$ac_lib"; then 11374 ac_res="none required" 11375 else 11376 ac_res=-l$ac_lib 11377 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11378 fi 11379 rm -f conftest.$ac_objext conftest$ac_exeext 11380if { (ac_try="$ac_link" 11381case "(($ac_try" in 11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11383 *) ac_try_echo=$ac_try;; 11384esac 11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11386 (eval "$ac_link") 2>conftest.er1 11387 ac_status=$? 11388 grep -v '^ *+' conftest.er1 >conftest.err 11389 rm -f conftest.er1 11390 cat conftest.err >&5 11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11392 (exit $ac_status); } && { 11393 test -z "$ac_c_werror_flag" || 11394 test ! -s conftest.err 11395 } && test -s conftest$ac_exeext && 11396 $as_test_x conftest$ac_exeext; then 11397 ac_cv_search_dlopen=$ac_res 11398else 11399 echo "$as_me: failed program was:" >&5 11400sed 's/^/| /' conftest.$ac_ext >&5 11401 11402 11403fi 11404 11405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11406 conftest$ac_exeext 11407 if test "${ac_cv_search_dlopen+set}" = set; then 11408 break 11409fi 11410done 11411if test "${ac_cv_search_dlopen+set}" = set; then 11412 : 11413else 11414 ac_cv_search_dlopen=no 11415fi 11416rm conftest.$ac_ext 11417LIBS=$ac_func_search_save_LIBS 11418fi 11419{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 11420echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 11421ac_res=$ac_cv_search_dlopen 11422if test "$ac_res" != no; then 11423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11424 11425cat >>confdefs.h <<\_ACEOF 11426#define HAVE_LIBDL 1 11427_ACEOF 11428 11429 if test "$ac_cv_search_dlopen" != "none required" ; then 11430 LIBADD_DLOPEN="-ldl" 11431 fi 11432 libltdl_cv_lib_dl_dlopen="yes" 11433 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11434else 11435 cat >conftest.$ac_ext <<_ACEOF 11436/* confdefs.h. */ 11437_ACEOF 11438cat confdefs.h >>conftest.$ac_ext 11439cat >>conftest.$ac_ext <<_ACEOF 11440/* end confdefs.h. */ 11441#if HAVE_DLFCN_H 11442# include <dlfcn.h> 11443#endif 11444 11445int 11446main () 11447{ 11448dlopen(0, 0); 11449 ; 11450 return 0; 11451} 11452_ACEOF 11453rm -f conftest.$ac_objext conftest$ac_exeext 11454if { (ac_try="$ac_link" 11455case "(($ac_try" in 11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11457 *) ac_try_echo=$ac_try;; 11458esac 11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11460 (eval "$ac_link") 2>conftest.er1 11461 ac_status=$? 11462 grep -v '^ *+' conftest.er1 >conftest.err 11463 rm -f conftest.er1 11464 cat conftest.err >&5 11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11466 (exit $ac_status); } && { 11467 test -z "$ac_c_werror_flag" || 11468 test ! -s conftest.err 11469 } && test -s conftest$ac_exeext && 11470 $as_test_x conftest$ac_exeext; then 11471 11472cat >>confdefs.h <<\_ACEOF 11473#define HAVE_LIBDL 1 11474_ACEOF 11475 11476 libltdl_cv_func_dlopen="yes" 11477 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11478else 11479 echo "$as_me: failed program was:" >&5 11480sed 's/^/| /' conftest.$ac_ext >&5 11481 11482 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11483echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11484if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11485 echo $ECHO_N "(cached) $ECHO_C" >&6 11486else 11487 ac_check_lib_save_LIBS=$LIBS 11488LIBS="-lsvld $LIBS" 11489cat >conftest.$ac_ext <<_ACEOF 11490/* confdefs.h. */ 11491_ACEOF 11492cat confdefs.h >>conftest.$ac_ext 11493cat >>conftest.$ac_ext <<_ACEOF 11494/* end confdefs.h. */ 11495 11496/* Override any GCC internal prototype to avoid an error. 11497 Use char because int might match the return type of a GCC 11498 builtin and then its argument prototype would still apply. */ 11499#ifdef __cplusplus 11500extern "C" 11501#endif 11502char dlopen (); 11503int 11504main () 11505{ 11506return dlopen (); 11507 ; 11508 return 0; 11509} 11510_ACEOF 11511rm -f conftest.$ac_objext conftest$ac_exeext 11512if { (ac_try="$ac_link" 11513case "(($ac_try" in 11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11515 *) ac_try_echo=$ac_try;; 11516esac 11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11518 (eval "$ac_link") 2>conftest.er1 11519 ac_status=$? 11520 grep -v '^ *+' conftest.er1 >conftest.err 11521 rm -f conftest.er1 11522 cat conftest.err >&5 11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11524 (exit $ac_status); } && { 11525 test -z "$ac_c_werror_flag" || 11526 test ! -s conftest.err 11527 } && test -s conftest$ac_exeext && 11528 $as_test_x conftest$ac_exeext; then 11529 ac_cv_lib_svld_dlopen=yes 11530else 11531 echo "$as_me: failed program was:" >&5 11532sed 's/^/| /' conftest.$ac_ext >&5 11533 11534 ac_cv_lib_svld_dlopen=no 11535fi 11536 11537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11538 conftest$ac_exeext conftest.$ac_ext 11539LIBS=$ac_check_lib_save_LIBS 11540fi 11541{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11542echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11543if test $ac_cv_lib_svld_dlopen = yes; then 11544 11545cat >>confdefs.h <<\_ACEOF 11546#define HAVE_LIBDL 1 11547_ACEOF 11548 11549 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 11550 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11551fi 11552 11553fi 11554 11555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11556 conftest$ac_exeext conftest.$ac_ext 11557fi 11558 11559if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 11560then 11561 lt_save_LIBS="$LIBS" 11562 LIBS="$LIBS $LIBADD_DLOPEN" 11563 11564for ac_func in dlerror 11565do 11566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11567{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11569if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11570 echo $ECHO_N "(cached) $ECHO_C" >&6 11571else 11572 cat >conftest.$ac_ext <<_ACEOF 11573/* confdefs.h. */ 11574_ACEOF 11575cat confdefs.h >>conftest.$ac_ext 11576cat >>conftest.$ac_ext <<_ACEOF 11577/* end confdefs.h. */ 11578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11580#define $ac_func innocuous_$ac_func 11581 11582/* System header to define __stub macros and hopefully few prototypes, 11583 which can conflict with char $ac_func (); below. 11584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11585 <limits.h> exists even on freestanding compilers. */ 11586 11587#ifdef __STDC__ 11588# include <limits.h> 11589#else 11590# include <assert.h> 11591#endif 11592 11593#undef $ac_func 11594 11595/* Override any GCC internal prototype to avoid an error. 11596 Use char because int might match the return type of a GCC 11597 builtin and then its argument prototype would still apply. */ 11598#ifdef __cplusplus 11599extern "C" 11600#endif 11601char $ac_func (); 11602/* The GNU C library defines this for functions which it implements 11603 to always fail with ENOSYS. Some functions are actually named 11604 something starting with __ and the normal name is an alias. */ 11605#if defined __stub_$ac_func || defined __stub___$ac_func 11606choke me 11607#endif 11608 11609int 11610main () 11611{ 11612return $ac_func (); 11613 ; 11614 return 0; 11615} 11616_ACEOF 11617rm -f conftest.$ac_objext conftest$ac_exeext 11618if { (ac_try="$ac_link" 11619case "(($ac_try" in 11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11621 *) ac_try_echo=$ac_try;; 11622esac 11623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11624 (eval "$ac_link") 2>conftest.er1 11625 ac_status=$? 11626 grep -v '^ *+' conftest.er1 >conftest.err 11627 rm -f conftest.er1 11628 cat conftest.err >&5 11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11630 (exit $ac_status); } && { 11631 test -z "$ac_c_werror_flag" || 11632 test ! -s conftest.err 11633 } && test -s conftest$ac_exeext && 11634 $as_test_x conftest$ac_exeext; then 11635 eval "$as_ac_var=yes" 11636else 11637 echo "$as_me: failed program was:" >&5 11638sed 's/^/| /' conftest.$ac_ext >&5 11639 11640 eval "$as_ac_var=no" 11641fi 11642 11643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11644 conftest$ac_exeext conftest.$ac_ext 11645fi 11646ac_res=`eval echo '${'$as_ac_var'}'` 11647 { echo "$as_me:$LINENO: result: $ac_res" >&5 11648echo "${ECHO_T}$ac_res" >&6; } 11649if test `eval echo '${'$as_ac_var'}'` = yes; then 11650 cat >>confdefs.h <<_ACEOF 11651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11652_ACEOF 11653 11654fi 11655done 11656 11657 LIBS="$lt_save_LIBS" 11658fi 11659 11660 11661LIBADD_SHL_LOAD= 11662{ echo "$as_me:$LINENO: checking for shl_load" >&5 11663echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11664if test "${ac_cv_func_shl_load+set}" = set; then 11665 echo $ECHO_N "(cached) $ECHO_C" >&6 11666else 11667 cat >conftest.$ac_ext <<_ACEOF 11668/* confdefs.h. */ 11669_ACEOF 11670cat confdefs.h >>conftest.$ac_ext 11671cat >>conftest.$ac_ext <<_ACEOF 11672/* end confdefs.h. */ 11673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11675#define shl_load innocuous_shl_load 11676 11677/* System header to define __stub macros and hopefully few prototypes, 11678 which can conflict with char shl_load (); below. 11679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11680 <limits.h> exists even on freestanding compilers. */ 11681 11682#ifdef __STDC__ 11683# include <limits.h> 11684#else 11685# include <assert.h> 11686#endif 11687 11688#undef shl_load 11689 11690/* Override any GCC internal prototype to avoid an error. 11691 Use char because int might match the return type of a GCC 11692 builtin and then its argument prototype would still apply. */ 11693#ifdef __cplusplus 11694extern "C" 11695#endif 11696char shl_load (); 11697/* The GNU C library defines this for functions which it implements 11698 to always fail with ENOSYS. Some functions are actually named 11699 something starting with __ and the normal name is an alias. */ 11700#if defined __stub_shl_load || defined __stub___shl_load 11701choke me 11702#endif 11703 11704int 11705main () 11706{ 11707return shl_load (); 11708 ; 11709 return 0; 11710} 11711_ACEOF 11712rm -f conftest.$ac_objext conftest$ac_exeext 11713if { (ac_try="$ac_link" 11714case "(($ac_try" in 11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11716 *) ac_try_echo=$ac_try;; 11717esac 11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11719 (eval "$ac_link") 2>conftest.er1 11720 ac_status=$? 11721 grep -v '^ *+' conftest.er1 >conftest.err 11722 rm -f conftest.er1 11723 cat conftest.err >&5 11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11725 (exit $ac_status); } && { 11726 test -z "$ac_c_werror_flag" || 11727 test ! -s conftest.err 11728 } && test -s conftest$ac_exeext && 11729 $as_test_x conftest$ac_exeext; then 11730 ac_cv_func_shl_load=yes 11731else 11732 echo "$as_me: failed program was:" >&5 11733sed 's/^/| /' conftest.$ac_ext >&5 11734 11735 ac_cv_func_shl_load=no 11736fi 11737 11738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11739 conftest$ac_exeext conftest.$ac_ext 11740fi 11741{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11742echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11743if test $ac_cv_func_shl_load = yes; then 11744 11745cat >>confdefs.h <<\_ACEOF 11746#define HAVE_SHL_LOAD 1 11747_ACEOF 11748 11749 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 11750else 11751 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11752echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11753if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11754 echo $ECHO_N "(cached) $ECHO_C" >&6 11755else 11756 ac_check_lib_save_LIBS=$LIBS 11757LIBS="-ldld $LIBS" 11758cat >conftest.$ac_ext <<_ACEOF 11759/* confdefs.h. */ 11760_ACEOF 11761cat confdefs.h >>conftest.$ac_ext 11762cat >>conftest.$ac_ext <<_ACEOF 11763/* end confdefs.h. */ 11764 11765/* Override any GCC internal prototype to avoid an error. 11766 Use char because int might match the return type of a GCC 11767 builtin and then its argument prototype would still apply. */ 11768#ifdef __cplusplus 11769extern "C" 11770#endif 11771char shl_load (); 11772int 11773main () 11774{ 11775return shl_load (); 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780rm -f conftest.$ac_objext conftest$ac_exeext 11781if { (ac_try="$ac_link" 11782case "(($ac_try" in 11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11784 *) ac_try_echo=$ac_try;; 11785esac 11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11787 (eval "$ac_link") 2>conftest.er1 11788 ac_status=$? 11789 grep -v '^ *+' conftest.er1 >conftest.err 11790 rm -f conftest.er1 11791 cat conftest.err >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11793 (exit $ac_status); } && { 11794 test -z "$ac_c_werror_flag" || 11795 test ! -s conftest.err 11796 } && test -s conftest$ac_exeext && 11797 $as_test_x conftest$ac_exeext; then 11798 ac_cv_lib_dld_shl_load=yes 11799else 11800 echo "$as_me: failed program was:" >&5 11801sed 's/^/| /' conftest.$ac_ext >&5 11802 11803 ac_cv_lib_dld_shl_load=no 11804fi 11805 11806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11807 conftest$ac_exeext conftest.$ac_ext 11808LIBS=$ac_check_lib_save_LIBS 11809fi 11810{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11811echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11812if test $ac_cv_lib_dld_shl_load = yes; then 11813 11814cat >>confdefs.h <<\_ACEOF 11815#define HAVE_SHL_LOAD 1 11816_ACEOF 11817 11818 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 11819 LIBADD_SHL_LOAD="-ldld" 11820fi 11821 11822fi 11823 11824 11825 11826case $host_os in 11827darwin[1567].*) 11828# We only want this for pre-Mac OS X 10.4. 11829 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 11830echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 11831if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 11832 echo $ECHO_N "(cached) $ECHO_C" >&6 11833else 11834 cat >conftest.$ac_ext <<_ACEOF 11835/* confdefs.h. */ 11836_ACEOF 11837cat confdefs.h >>conftest.$ac_ext 11838cat >>conftest.$ac_ext <<_ACEOF 11839/* end confdefs.h. */ 11840/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11842#define _dyld_func_lookup innocuous__dyld_func_lookup 11843 11844/* System header to define __stub macros and hopefully few prototypes, 11845 which can conflict with char _dyld_func_lookup (); below. 11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11847 <limits.h> exists even on freestanding compilers. */ 11848 11849#ifdef __STDC__ 11850# include <limits.h> 11851#else 11852# include <assert.h> 11853#endif 11854 11855#undef _dyld_func_lookup 11856 11857/* Override any GCC internal prototype to avoid an error. 11858 Use char because int might match the return type of a GCC 11859 builtin and then its argument prototype would still apply. */ 11860#ifdef __cplusplus 11861extern "C" 11862#endif 11863char _dyld_func_lookup (); 11864/* The GNU C library defines this for functions which it implements 11865 to always fail with ENOSYS. Some functions are actually named 11866 something starting with __ and the normal name is an alias. */ 11867#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 11868choke me 11869#endif 11870 11871int 11872main () 11873{ 11874return _dyld_func_lookup (); 11875 ; 11876 return 0; 11877} 11878_ACEOF 11879rm -f conftest.$ac_objext conftest$ac_exeext 11880if { (ac_try="$ac_link" 11881case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884esac 11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11886 (eval "$ac_link") 2>conftest.er1 11887 ac_status=$? 11888 grep -v '^ *+' conftest.er1 >conftest.err 11889 rm -f conftest.er1 11890 cat conftest.err >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); } && { 11893 test -z "$ac_c_werror_flag" || 11894 test ! -s conftest.err 11895 } && test -s conftest$ac_exeext && 11896 $as_test_x conftest$ac_exeext; then 11897 ac_cv_func__dyld_func_lookup=yes 11898else 11899 echo "$as_me: failed program was:" >&5 11900sed 's/^/| /' conftest.$ac_ext >&5 11901 11902 ac_cv_func__dyld_func_lookup=no 11903fi 11904 11905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11906 conftest$ac_exeext conftest.$ac_ext 11907fi 11908{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 11909echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 11910if test $ac_cv_func__dyld_func_lookup = yes; then 11911 11912cat >>confdefs.h <<\_ACEOF 11913#define HAVE_DYLD 1 11914_ACEOF 11915 11916 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 11917fi 11918 11919 ;; 11920beos*) 11921 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 11922 ;; 11923cygwin* | mingw* | os2* | pw32*) 11924 { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5 11925echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; } 11926if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then 11927 echo $ECHO_N "(cached) $ECHO_C" >&6 11928else 11929 cat >conftest.$ac_ext <<_ACEOF 11930/* confdefs.h. */ 11931_ACEOF 11932cat confdefs.h >>conftest.$ac_ext 11933cat >>conftest.$ac_ext <<_ACEOF 11934/* end confdefs.h. */ 11935#include <sys/cygwin.h> 11936 11937int 11938main () 11939{ 11940#ifndef cygwin_conv_path 11941 (void) cygwin_conv_path; 11942#endif 11943 11944 ; 11945 return 0; 11946} 11947_ACEOF 11948rm -f conftest.$ac_objext 11949if { (ac_try="$ac_compile" 11950case "(($ac_try" in 11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11952 *) ac_try_echo=$ac_try;; 11953esac 11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11955 (eval "$ac_compile") 2>conftest.er1 11956 ac_status=$? 11957 grep -v '^ *+' conftest.er1 >conftest.err 11958 rm -f conftest.er1 11959 cat conftest.err >&5 11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11961 (exit $ac_status); } && { 11962 test -z "$ac_c_werror_flag" || 11963 test ! -s conftest.err 11964 } && test -s conftest.$ac_objext; then 11965 ac_cv_have_decl_cygwin_conv_path=yes 11966else 11967 echo "$as_me: failed program was:" >&5 11968sed 's/^/| /' conftest.$ac_ext >&5 11969 11970 ac_cv_have_decl_cygwin_conv_path=no 11971fi 11972 11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11974fi 11975{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5 11976echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; } 11977if test $ac_cv_have_decl_cygwin_conv_path = yes; then 11978 11979cat >>confdefs.h <<_ACEOF 11980#define HAVE_DECL_CYGWIN_CONV_PATH 1 11981_ACEOF 11982 11983 11984else 11985 cat >>confdefs.h <<_ACEOF 11986#define HAVE_DECL_CYGWIN_CONV_PATH 0 11987_ACEOF 11988 11989 11990fi 11991 11992 11993 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 11994 ;; 11995esac 11996 11997{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11998echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11999if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12000 echo $ECHO_N "(cached) $ECHO_C" >&6 12001else 12002 ac_check_lib_save_LIBS=$LIBS 12003LIBS="-ldld $LIBS" 12004cat >conftest.$ac_ext <<_ACEOF 12005/* confdefs.h. */ 12006_ACEOF 12007cat confdefs.h >>conftest.$ac_ext 12008cat >>conftest.$ac_ext <<_ACEOF 12009/* end confdefs.h. */ 12010 12011/* Override any GCC internal prototype to avoid an error. 12012 Use char because int might match the return type of a GCC 12013 builtin and then its argument prototype would still apply. */ 12014#ifdef __cplusplus 12015extern "C" 12016#endif 12017char dld_link (); 12018int 12019main () 12020{ 12021return dld_link (); 12022 ; 12023 return 0; 12024} 12025_ACEOF 12026rm -f conftest.$ac_objext conftest$ac_exeext 12027if { (ac_try="$ac_link" 12028case "(($ac_try" in 12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12030 *) ac_try_echo=$ac_try;; 12031esac 12032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12033 (eval "$ac_link") 2>conftest.er1 12034 ac_status=$? 12035 grep -v '^ *+' conftest.er1 >conftest.err 12036 rm -f conftest.er1 12037 cat conftest.err >&5 12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12039 (exit $ac_status); } && { 12040 test -z "$ac_c_werror_flag" || 12041 test ! -s conftest.err 12042 } && test -s conftest$ac_exeext && 12043 $as_test_x conftest$ac_exeext; then 12044 ac_cv_lib_dld_dld_link=yes 12045else 12046 echo "$as_me: failed program was:" >&5 12047sed 's/^/| /' conftest.$ac_ext >&5 12048 12049 ac_cv_lib_dld_dld_link=no 12050fi 12051 12052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12053 conftest$ac_exeext conftest.$ac_ext 12054LIBS=$ac_check_lib_save_LIBS 12055fi 12056{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12057echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 12058if test $ac_cv_lib_dld_dld_link = yes; then 12059 12060cat >>confdefs.h <<\_ACEOF 12061#define HAVE_DLD 1 12062_ACEOF 12063 12064 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 12065fi 12066 12067 12068 12069 12070LT_DLPREOPEN= 12071if test -n "$LT_DLLOADERS" 12072then 12073 for lt_loader in $LT_DLLOADERS; do 12074 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 12075 done 12076 12077cat >>confdefs.h <<\_ACEOF 12078#define HAVE_LIBDLLOADER 1 12079_ACEOF 12080 12081fi 12082 12083 12084LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 12085 12086 12087ac_ext=c 12088ac_cpp='$CPP $CPPFLAGS' 12089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12091ac_compiler_gnu=$ac_cv_c_compiler_gnu 12092 12093 12094{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 12095echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 12096if test "${lt_cv_sys_symbol_underscore+set}" = set; then 12097 echo $ECHO_N "(cached) $ECHO_C" >&6 12098else 12099 lt_cv_sys_symbol_underscore=no 12100 cat > conftest.$ac_ext <<_LT_EOF 12101void nm_test_func(){} 12102int main(){nm_test_func;return 0;} 12103_LT_EOF 12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12105 (eval $ac_compile) 2>&5 12106 ac_status=$? 12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12108 (exit $ac_status); }; then 12109 # Now try to grab the symbols. 12110 ac_nlist=conftest.nm 12111 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 12112 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 12113 ac_status=$? 12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12115 (exit $ac_status); } && test -s "$ac_nlist"; then 12116 # See whether the symbols have a leading underscore. 12117 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 12118 lt_cv_sys_symbol_underscore=yes 12119 else 12120 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 12121 : 12122 else 12123 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 12124 fi 12125 fi 12126 else 12127 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 12128 fi 12129 else 12130 echo "configure: failed program was:" >&5 12131 cat conftest.c >&5 12132 fi 12133 rm -rf conftest* 12134 12135fi 12136{ echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5 12137echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; } 12138 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 12139 12140 12141if test x"$lt_cv_sys_symbol_underscore" = xyes; then 12142 if test x"$libltdl_cv_func_dlopen" = xyes || 12143 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 12144 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 12145echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 12146if test "${libltdl_cv_need_uscore+set}" = set; then 12147 echo $ECHO_N "(cached) $ECHO_C" >&6 12148else 12149 libltdl_cv_need_uscore=unknown 12150 save_LIBS="$LIBS" 12151 LIBS="$LIBS $LIBADD_DLOPEN" 12152 if test "$cross_compiling" = yes; then : 12153 libltdl_cv_need_uscore=cross 12154else 12155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12156 lt_status=$lt_dlunknown 12157 cat > conftest.$ac_ext <<_LT_EOF 12158#line 12158 "configure" 12159#include "confdefs.h" 12160 12161#if HAVE_DLFCN_H 12162#include <dlfcn.h> 12163#endif 12164 12165#include <stdio.h> 12166 12167#ifdef RTLD_GLOBAL 12168# define LT_DLGLOBAL RTLD_GLOBAL 12169#else 12170# ifdef DL_GLOBAL 12171# define LT_DLGLOBAL DL_GLOBAL 12172# else 12173# define LT_DLGLOBAL 0 12174# endif 12175#endif 12176 12177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12178 find out it does not work in some platform. */ 12179#ifndef LT_DLLAZY_OR_NOW 12180# ifdef RTLD_LAZY 12181# define LT_DLLAZY_OR_NOW RTLD_LAZY 12182# else 12183# ifdef DL_LAZY 12184# define LT_DLLAZY_OR_NOW DL_LAZY 12185# else 12186# ifdef RTLD_NOW 12187# define LT_DLLAZY_OR_NOW RTLD_NOW 12188# else 12189# ifdef DL_NOW 12190# define LT_DLLAZY_OR_NOW DL_NOW 12191# else 12192# define LT_DLLAZY_OR_NOW 0 12193# endif 12194# endif 12195# endif 12196# endif 12197#endif 12198 12199void fnord() { int i=42;} 12200int main () 12201{ 12202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12203 int status = $lt_dlunknown; 12204 12205 if (self) 12206 { 12207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12209 /* dlclose (self); */ 12210 } 12211 else 12212 puts (dlerror ()); 12213 12214 return status; 12215} 12216_LT_EOF 12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12218 (eval $ac_link) 2>&5 12219 ac_status=$? 12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12221 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12222 (./conftest; exit; ) >&5 2>/dev/null 12223 lt_status=$? 12224 case x$lt_status in 12225 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 12226 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 12227 x$lt_dlunknown|x*) ;; 12228 esac 12229 else : 12230 # compilation failed 12231 12232 fi 12233fi 12234rm -fr conftest* 12235 12236 LIBS="$save_LIBS" 12237 12238fi 12239{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 12240echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 12241 fi 12242fi 12243 12244if test x"$libltdl_cv_need_uscore" = xyes; then 12245 12246cat >>confdefs.h <<\_ACEOF 12247#define NEED_USCORE 1 12248_ACEOF 12249 12250fi 12251 12252{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 12253echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 12254if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then 12255 echo $ECHO_N "(cached) $ECHO_C" >&6 12256else 12257 # PORTME does your system automatically load deplibs for dlopen? 12258 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 12259 # For now, we just catch OSes we know something about -- in the 12260 # future, we'll try test this programmatically. 12261 lt_cv_sys_dlopen_deplibs=unknown 12262 case $host_os in 12263 aix3*|aix4.1.*|aix4.2.*) 12264 # Unknown whether this is true for these versions of AIX, but 12265 # we want this `case' here to explicitly catch those versions. 12266 lt_cv_sys_dlopen_deplibs=unknown 12267 ;; 12268 aix[4-9]*) 12269 lt_cv_sys_dlopen_deplibs=yes 12270 ;; 12271 amigaos*) 12272 case $host_cpu in 12273 powerpc) 12274 lt_cv_sys_dlopen_deplibs=no 12275 ;; 12276 esac 12277 ;; 12278 darwin*) 12279 # Assuming the user has installed a libdl from somewhere, this is true 12280 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 12281 lt_cv_sys_dlopen_deplibs=yes 12282 ;; 12283 freebsd* | dragonfly*) 12284 lt_cv_sys_dlopen_deplibs=yes 12285 ;; 12286 gnu* | linux* | k*bsd*-gnu) 12287 # GNU and its variants, using gnu ld.so (Glibc) 12288 lt_cv_sys_dlopen_deplibs=yes 12289 ;; 12290 hpux10*|hpux11*) 12291 lt_cv_sys_dlopen_deplibs=yes 12292 ;; 12293 interix*) 12294 lt_cv_sys_dlopen_deplibs=yes 12295 ;; 12296 irix[12345]*|irix6.[01]*) 12297 # Catch all versions of IRIX before 6.2, and indicate that we don't 12298 # know how it worked for any of those versions. 12299 lt_cv_sys_dlopen_deplibs=unknown 12300 ;; 12301 irix*) 12302 # The case above catches anything before 6.2, and it's known that 12303 # at 6.2 and later dlopen does load deplibs. 12304 lt_cv_sys_dlopen_deplibs=yes 12305 ;; 12306 netbsd* | netbsdelf*-gnu) 12307 lt_cv_sys_dlopen_deplibs=yes 12308 ;; 12309 openbsd*) 12310 lt_cv_sys_dlopen_deplibs=yes 12311 ;; 12312 osf[1234]*) 12313 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 12314 # it did *not* use an RPATH in a shared library to find objects the 12315 # library depends on, so we explicitly say `no'. 12316 lt_cv_sys_dlopen_deplibs=no 12317 ;; 12318 osf5.0|osf5.0a|osf5.1) 12319 # dlopen *does* load deplibs and with the right loader patch applied 12320 # it even uses RPATH in a shared library to search for shared objects 12321 # that the library depends on, but there's no easy way to know if that 12322 # patch is installed. Since this is the case, all we can really 12323 # say is unknown -- it depends on the patch being installed. If 12324 # it is, this changes to `yes'. Without it, it would be `no'. 12325 lt_cv_sys_dlopen_deplibs=unknown 12326 ;; 12327 osf*) 12328 # the two cases above should catch all versions of osf <= 5.1. Read 12329 # the comments above for what we know about them. 12330 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 12331 # is used to find them so we can finally say `yes'. 12332 lt_cv_sys_dlopen_deplibs=yes 12333 ;; 12334 qnx*) 12335 lt_cv_sys_dlopen_deplibs=yes 12336 ;; 12337 solaris*) 12338 lt_cv_sys_dlopen_deplibs=yes 12339 ;; 12340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12341 libltdl_cv_sys_dlopen_deplibs=yes 12342 ;; 12343 esac 12344 12345fi 12346{ echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5 12347echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; } 12348if test "$lt_cv_sys_dlopen_deplibs" != yes; then 12349 12350cat >>confdefs.h <<\_ACEOF 12351#define LTDL_DLOPEN_DEPLIBS 1 12352_ACEOF 12353 12354fi 12355 12356: 12357 12358 12359for ac_header in argz.h 12360do 12361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12362{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12365 echo $ECHO_N "(cached) $ECHO_C" >&6 12366else 12367 cat >conftest.$ac_ext <<_ACEOF 12368/* confdefs.h. */ 12369_ACEOF 12370cat confdefs.h >>conftest.$ac_ext 12371cat >>conftest.$ac_ext <<_ACEOF 12372/* end confdefs.h. */ 12373$ac_includes_default 12374 12375#include <$ac_header> 12376_ACEOF 12377rm -f conftest.$ac_objext 12378if { (ac_try="$ac_compile" 12379case "(($ac_try" in 12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12381 *) ac_try_echo=$ac_try;; 12382esac 12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12384 (eval "$ac_compile") 2>conftest.er1 12385 ac_status=$? 12386 grep -v '^ *+' conftest.er1 >conftest.err 12387 rm -f conftest.er1 12388 cat conftest.err >&5 12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12390 (exit $ac_status); } && { 12391 test -z "$ac_c_werror_flag" || 12392 test ! -s conftest.err 12393 } && test -s conftest.$ac_objext; then 12394 eval "$as_ac_Header=yes" 12395else 12396 echo "$as_me: failed program was:" >&5 12397sed 's/^/| /' conftest.$ac_ext >&5 12398 12399 eval "$as_ac_Header=no" 12400fi 12401 12402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12403fi 12404ac_res=`eval echo '${'$as_ac_Header'}'` 12405 { echo "$as_me:$LINENO: result: $ac_res" >&5 12406echo "${ECHO_T}$ac_res" >&6; } 12407if test `eval echo '${'$as_ac_Header'}'` = yes; then 12408 cat >>confdefs.h <<_ACEOF 12409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12410_ACEOF 12411 12412fi 12413 12414done 12415 12416 12417{ echo "$as_me:$LINENO: checking for error_t" >&5 12418echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 12419if test "${ac_cv_type_error_t+set}" = set; then 12420 echo $ECHO_N "(cached) $ECHO_C" >&6 12421else 12422 cat >conftest.$ac_ext <<_ACEOF 12423/* confdefs.h. */ 12424_ACEOF 12425cat confdefs.h >>conftest.$ac_ext 12426cat >>conftest.$ac_ext <<_ACEOF 12427/* end confdefs.h. */ 12428#if defined(HAVE_ARGZ_H) 12429# include <argz.h> 12430#endif 12431 12432typedef error_t ac__type_new_; 12433int 12434main () 12435{ 12436if ((ac__type_new_ *) 0) 12437 return 0; 12438if (sizeof (ac__type_new_)) 12439 return 0; 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444rm -f conftest.$ac_objext 12445if { (ac_try="$ac_compile" 12446case "(($ac_try" in 12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12448 *) ac_try_echo=$ac_try;; 12449esac 12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12451 (eval "$ac_compile") 2>conftest.er1 12452 ac_status=$? 12453 grep -v '^ *+' conftest.er1 >conftest.err 12454 rm -f conftest.er1 12455 cat conftest.err >&5 12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12457 (exit $ac_status); } && { 12458 test -z "$ac_c_werror_flag" || 12459 test ! -s conftest.err 12460 } && test -s conftest.$ac_objext; then 12461 ac_cv_type_error_t=yes 12462else 12463 echo "$as_me: failed program was:" >&5 12464sed 's/^/| /' conftest.$ac_ext >&5 12465 12466 ac_cv_type_error_t=no 12467fi 12468 12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12470fi 12471{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 12472echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 12473if test $ac_cv_type_error_t = yes; then 12474 12475cat >>confdefs.h <<_ACEOF 12476#define HAVE_ERROR_T 1 12477_ACEOF 12478 12479 12480else 12481 12482cat >>confdefs.h <<\_ACEOF 12483#define error_t int 12484_ACEOF 12485 12486 12487cat >>confdefs.h <<\_ACEOF 12488#define __error_t_defined 1 12489_ACEOF 12490 12491fi 12492 12493 12494ARGZ_H= 12495 12496 12497 12498 12499 12500 12501 12502for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 12503 argz_next argz_stringify 12504do 12505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12506{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12508if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12509 echo $ECHO_N "(cached) $ECHO_C" >&6 12510else 12511 cat >conftest.$ac_ext <<_ACEOF 12512/* confdefs.h. */ 12513_ACEOF 12514cat confdefs.h >>conftest.$ac_ext 12515cat >>conftest.$ac_ext <<_ACEOF 12516/* end confdefs.h. */ 12517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12518 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12519#define $ac_func innocuous_$ac_func 12520 12521/* System header to define __stub macros and hopefully few prototypes, 12522 which can conflict with char $ac_func (); below. 12523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12524 <limits.h> exists even on freestanding compilers. */ 12525 12526#ifdef __STDC__ 12527# include <limits.h> 12528#else 12529# include <assert.h> 12530#endif 12531 12532#undef $ac_func 12533 12534/* Override any GCC internal prototype to avoid an error. 12535 Use char because int might match the return type of a GCC 12536 builtin and then its argument prototype would still apply. */ 12537#ifdef __cplusplus 12538extern "C" 12539#endif 12540char $ac_func (); 12541/* The GNU C library defines this for functions which it implements 12542 to always fail with ENOSYS. Some functions are actually named 12543 something starting with __ and the normal name is an alias. */ 12544#if defined __stub_$ac_func || defined __stub___$ac_func 12545choke me 12546#endif 12547 12548int 12549main () 12550{ 12551return $ac_func (); 12552 ; 12553 return 0; 12554} 12555_ACEOF 12556rm -f conftest.$ac_objext conftest$ac_exeext 12557if { (ac_try="$ac_link" 12558case "(($ac_try" in 12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12560 *) ac_try_echo=$ac_try;; 12561esac 12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12563 (eval "$ac_link") 2>conftest.er1 12564 ac_status=$? 12565 grep -v '^ *+' conftest.er1 >conftest.err 12566 rm -f conftest.er1 12567 cat conftest.err >&5 12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12569 (exit $ac_status); } && { 12570 test -z "$ac_c_werror_flag" || 12571 test ! -s conftest.err 12572 } && test -s conftest$ac_exeext && 12573 $as_test_x conftest$ac_exeext; then 12574 eval "$as_ac_var=yes" 12575else 12576 echo "$as_me: failed program was:" >&5 12577sed 's/^/| /' conftest.$ac_ext >&5 12578 12579 eval "$as_ac_var=no" 12580fi 12581 12582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12583 conftest$ac_exeext conftest.$ac_ext 12584fi 12585ac_res=`eval echo '${'$as_ac_var'}'` 12586 { echo "$as_me:$LINENO: result: $ac_res" >&5 12587echo "${ECHO_T}$ac_res" >&6; } 12588if test `eval echo '${'$as_ac_var'}'` = yes; then 12589 cat >>confdefs.h <<_ACEOF 12590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12591_ACEOF 12592 12593else 12594 ARGZ_H=argz.h; case " $LIBOBJS " in 12595 *" argz.$ac_objext "* ) ;; 12596 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12597 ;; 12598esac 12599 12600fi 12601done 12602 12603 12604if test -z "$ARGZ_H"; then 12605 { echo "$as_me:$LINENO: checking if argz actually works" >&5 12606echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; } 12607if test "${lt_cv_sys_argz_works+set}" = set; then 12608 echo $ECHO_N "(cached) $ECHO_C" >&6 12609else 12610 case $host_os in #( 12611 *cygwin*) 12612 lt_cv_sys_argz_works=no 12613 if test "$cross_compiling" != no; then 12614 lt_cv_sys_argz_works="guessing no" 12615 else 12616 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 12617 save_IFS=$IFS 12618 IFS=-. 12619 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 12620 IFS=$save_IFS 12621 lt_os_major=${2-0} 12622 lt_os_minor=${3-0} 12623 lt_os_micro=${4-0} 12624 if test "$lt_os_major" -gt 1 \ 12625 || { test "$lt_os_major" -eq 1 \ 12626 && { test "$lt_os_minor" -gt 5 \ 12627 || { test "$lt_os_minor" -eq 5 \ 12628 && test "$lt_os_micro" -gt 24; }; }; }; then 12629 lt_cv_sys_argz_works=yes 12630 fi 12631 fi 12632 ;; #( 12633 *) lt_cv_sys_argz_works=yes ;; 12634 esac 12635fi 12636{ echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5 12637echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; } 12638 if test $lt_cv_sys_argz_works = yes; then 12639 12640cat >>confdefs.h <<\_ACEOF 12641#define HAVE_WORKING_ARGZ 1 12642_ACEOF 12643 12644else 12645 ARGZ_H=argz.h 12646 case " $LIBOBJS " in 12647 *" argz.$ac_objext "* ) ;; 12648 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12649 ;; 12650esac 12651 12652fi 12653 12654fi 12655 12656 12657 12658 12659{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 12660echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 12661if test "${libltdl_cv_preloaded_symbols+set}" = set; then 12662 echo $ECHO_N "(cached) $ECHO_C" >&6 12663else 12664 if test -n "$lt_cv_sys_global_symbol_pipe"; then 12665 libltdl_cv_preloaded_symbols=yes 12666 else 12667 libltdl_cv_preloaded_symbols=no 12668 fi 12669 12670fi 12671{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 12672echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 12673if test x"$libltdl_cv_preloaded_symbols" = xyes; then 12674 12675cat >>confdefs.h <<\_ACEOF 12676#define HAVE_PRELOADED_SYMBOLS 1 12677_ACEOF 12678 12679fi 12680 12681 12682 12683# Check whether --enable-ltdl-install was given. 12684if test "${enable_ltdl_install+set}" = set; then 12685 enableval=$enable_ltdl_install; 12686fi 12687 12688 12689case ,${enable_ltdl_install},${enable_ltdl_convenience} in 12690 *yes*) ;; 12691 *) enable_ltdl_convenience=yes ;; 12692esac 12693 12694 if test x"${enable_ltdl_install-no}" != xno; then 12695 INSTALL_LTDL_TRUE= 12696 INSTALL_LTDL_FALSE='#' 12697else 12698 INSTALL_LTDL_TRUE='#' 12699 INSTALL_LTDL_FALSE= 12700fi 12701 12702 if test x"${enable_ltdl_convenience-no}" != xno; then 12703 CONVENIENCE_LTDL_TRUE= 12704 CONVENIENCE_LTDL_FALSE='#' 12705else 12706 CONVENIENCE_LTDL_TRUE='#' 12707 CONVENIENCE_LTDL_FALSE= 12708fi 12709 12710 12711 12712 12713 12714 12715# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 12716# the user used. This is so that ltdl.h can pick up the parent projects 12717# config.h file, The first file in AC_CONFIG_HEADERS must contain the 12718# definitions required by ltdl.c. 12719# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 12730do 12731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12732{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12735 echo $ECHO_N "(cached) $ECHO_C" >&6 12736else 12737 cat >conftest.$ac_ext <<_ACEOF 12738/* confdefs.h. */ 12739_ACEOF 12740cat confdefs.h >>conftest.$ac_ext 12741cat >>conftest.$ac_ext <<_ACEOF 12742/* end confdefs.h. */ 12743$ac_includes_default 12744 12745#include <$ac_header> 12746_ACEOF 12747rm -f conftest.$ac_objext 12748if { (ac_try="$ac_compile" 12749case "(($ac_try" in 12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12751 *) ac_try_echo=$ac_try;; 12752esac 12753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12754 (eval "$ac_compile") 2>conftest.er1 12755 ac_status=$? 12756 grep -v '^ *+' conftest.er1 >conftest.err 12757 rm -f conftest.er1 12758 cat conftest.err >&5 12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12760 (exit $ac_status); } && { 12761 test -z "$ac_c_werror_flag" || 12762 test ! -s conftest.err 12763 } && test -s conftest.$ac_objext; then 12764 eval "$as_ac_Header=yes" 12765else 12766 echo "$as_me: failed program was:" >&5 12767sed 's/^/| /' conftest.$ac_ext >&5 12768 12769 eval "$as_ac_Header=no" 12770fi 12771 12772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12773fi 12774ac_res=`eval echo '${'$as_ac_Header'}'` 12775 { echo "$as_me:$LINENO: result: $ac_res" >&5 12776echo "${ECHO_T}$ac_res" >&6; } 12777if test `eval echo '${'$as_ac_Header'}'` = yes; then 12778 cat >>confdefs.h <<_ACEOF 12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12780_ACEOF 12781 12782fi 12783 12784done 12785 12786 12787 12788 12789 12790for ac_func in closedir opendir readdir 12791do 12792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12793{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12795if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12796 echo $ECHO_N "(cached) $ECHO_C" >&6 12797else 12798 cat >conftest.$ac_ext <<_ACEOF 12799/* confdefs.h. */ 12800_ACEOF 12801cat confdefs.h >>conftest.$ac_ext 12802cat >>conftest.$ac_ext <<_ACEOF 12803/* end confdefs.h. */ 12804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12806#define $ac_func innocuous_$ac_func 12807 12808/* System header to define __stub macros and hopefully few prototypes, 12809 which can conflict with char $ac_func (); below. 12810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12811 <limits.h> exists even on freestanding compilers. */ 12812 12813#ifdef __STDC__ 12814# include <limits.h> 12815#else 12816# include <assert.h> 12817#endif 12818 12819#undef $ac_func 12820 12821/* Override any GCC internal prototype to avoid an error. 12822 Use char because int might match the return type of a GCC 12823 builtin and then its argument prototype would still apply. */ 12824#ifdef __cplusplus 12825extern "C" 12826#endif 12827char $ac_func (); 12828/* The GNU C library defines this for functions which it implements 12829 to always fail with ENOSYS. Some functions are actually named 12830 something starting with __ and the normal name is an alias. */ 12831#if defined __stub_$ac_func || defined __stub___$ac_func 12832choke me 12833#endif 12834 12835int 12836main () 12837{ 12838return $ac_func (); 12839 ; 12840 return 0; 12841} 12842_ACEOF 12843rm -f conftest.$ac_objext conftest$ac_exeext 12844if { (ac_try="$ac_link" 12845case "(($ac_try" in 12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12847 *) ac_try_echo=$ac_try;; 12848esac 12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12850 (eval "$ac_link") 2>conftest.er1 12851 ac_status=$? 12852 grep -v '^ *+' conftest.er1 >conftest.err 12853 rm -f conftest.er1 12854 cat conftest.err >&5 12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12856 (exit $ac_status); } && { 12857 test -z "$ac_c_werror_flag" || 12858 test ! -s conftest.err 12859 } && test -s conftest$ac_exeext && 12860 $as_test_x conftest$ac_exeext; then 12861 eval "$as_ac_var=yes" 12862else 12863 echo "$as_me: failed program was:" >&5 12864sed 's/^/| /' conftest.$ac_ext >&5 12865 12866 eval "$as_ac_var=no" 12867fi 12868 12869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12870 conftest$ac_exeext conftest.$ac_ext 12871fi 12872ac_res=`eval echo '${'$as_ac_var'}'` 12873 { echo "$as_me:$LINENO: result: $ac_res" >&5 12874echo "${ECHO_T}$ac_res" >&6; } 12875if test `eval echo '${'$as_ac_var'}'` = yes; then 12876 cat >>confdefs.h <<_ACEOF 12877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12878_ACEOF 12879 12880else 12881 case " $LIBOBJS " in 12882 *" lt__dirent.$ac_objext "* ) ;; 12883 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext" 12884 ;; 12885esac 12886 12887fi 12888done 12889 12890 12891 12892for ac_func in strlcat strlcpy 12893do 12894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12895{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12898 echo $ECHO_N "(cached) $ECHO_C" >&6 12899else 12900 cat >conftest.$ac_ext <<_ACEOF 12901/* confdefs.h. */ 12902_ACEOF 12903cat confdefs.h >>conftest.$ac_ext 12904cat >>conftest.$ac_ext <<_ACEOF 12905/* end confdefs.h. */ 12906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12907 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12908#define $ac_func innocuous_$ac_func 12909 12910/* System header to define __stub macros and hopefully few prototypes, 12911 which can conflict with char $ac_func (); below. 12912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12913 <limits.h> exists even on freestanding compilers. */ 12914 12915#ifdef __STDC__ 12916# include <limits.h> 12917#else 12918# include <assert.h> 12919#endif 12920 12921#undef $ac_func 12922 12923/* Override any GCC internal prototype to avoid an error. 12924 Use char because int might match the return type of a GCC 12925 builtin and then its argument prototype would still apply. */ 12926#ifdef __cplusplus 12927extern "C" 12928#endif 12929char $ac_func (); 12930/* The GNU C library defines this for functions which it implements 12931 to always fail with ENOSYS. Some functions are actually named 12932 something starting with __ and the normal name is an alias. */ 12933#if defined __stub_$ac_func || defined __stub___$ac_func 12934choke me 12935#endif 12936 12937int 12938main () 12939{ 12940return $ac_func (); 12941 ; 12942 return 0; 12943} 12944_ACEOF 12945rm -f conftest.$ac_objext conftest$ac_exeext 12946if { (ac_try="$ac_link" 12947case "(($ac_try" in 12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12949 *) ac_try_echo=$ac_try;; 12950esac 12951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12952 (eval "$ac_link") 2>conftest.er1 12953 ac_status=$? 12954 grep -v '^ *+' conftest.er1 >conftest.err 12955 rm -f conftest.er1 12956 cat conftest.err >&5 12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12958 (exit $ac_status); } && { 12959 test -z "$ac_c_werror_flag" || 12960 test ! -s conftest.err 12961 } && test -s conftest$ac_exeext && 12962 $as_test_x conftest$ac_exeext; then 12963 eval "$as_ac_var=yes" 12964else 12965 echo "$as_me: failed program was:" >&5 12966sed 's/^/| /' conftest.$ac_ext >&5 12967 12968 eval "$as_ac_var=no" 12969fi 12970 12971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12972 conftest$ac_exeext conftest.$ac_ext 12973fi 12974ac_res=`eval echo '${'$as_ac_var'}'` 12975 { echo "$as_me:$LINENO: result: $ac_res" >&5 12976echo "${ECHO_T}$ac_res" >&6; } 12977if test `eval echo '${'$as_ac_var'}'` = yes; then 12978 cat >>confdefs.h <<_ACEOF 12979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12980_ACEOF 12981 12982else 12983 case " $LIBOBJS " in 12984 *" lt__strl.$ac_objext "* ) ;; 12985 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext" 12986 ;; 12987esac 12988 12989fi 12990done 12991 12992 12993 12994cat >>confdefs.h <<_ACEOF 12995#define LT_LIBEXT "$libext" 12996_ACEOF 12997 12998 12999name=ltdl 13000LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` 13001 13002 13003 13004 13005## -------- ## 13006## Outputs. ## 13007## -------- ## 13008ac_config_files="$ac_config_files Makefile" 13009 13010cat >confcache <<\_ACEOF 13011# This file is a shell script that caches the results of configure 13012# tests run on this system so they can be shared between configure 13013# scripts and configure runs, see configure's option --config-cache. 13014# It is not useful on other systems. If it contains results you don't 13015# want to keep, you may remove or edit it. 13016# 13017# config.status only pays attention to the cache file if you give it 13018# the --recheck option to rerun configure. 13019# 13020# `ac_cv_env_foo' variables (set or unset) will be overridden when 13021# loading this file, other *unset* `ac_cv_foo' will be assigned the 13022# following values. 13023 13024_ACEOF 13025 13026# The following way of writing the cache mishandles newlines in values, 13027# but we know of no workaround that is simple, portable, and efficient. 13028# So, we kill variables containing newlines. 13029# Ultrix sh set writes to stderr and can't be redirected directly, 13030# and sets the high bit in the cache file unless we assign to the vars. 13031( 13032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13033 eval ac_val=\$$ac_var 13034 case $ac_val in #( 13035 *${as_nl}*) 13036 case $ac_var in #( 13037 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13038echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13039 esac 13040 case $ac_var in #( 13041 _ | IFS | as_nl) ;; #( 13042 *) $as_unset $ac_var ;; 13043 esac ;; 13044 esac 13045 done 13046 13047 (set) 2>&1 | 13048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13049 *${as_nl}ac_space=\ *) 13050 # `set' does not quote correctly, so add quotes (double-quote 13051 # substitution turns \\\\ into \\, and sed turns \\ into \). 13052 sed -n \ 13053 "s/'/'\\\\''/g; 13054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13055 ;; #( 13056 *) 13057 # `set' quotes correctly as required by POSIX, so do not add quotes. 13058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13059 ;; 13060 esac | 13061 sort 13062) | 13063 sed ' 13064 /^ac_cv_env_/b end 13065 t clear 13066 :clear 13067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13068 t end 13069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13070 :end' >>confcache 13071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13072 if test -w "$cache_file"; then 13073 test "x$cache_file" != "x/dev/null" && 13074 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 13075echo "$as_me: updating cache $cache_file" >&6;} 13076 cat confcache >$cache_file 13077 else 13078 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13079echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13080 fi 13081fi 13082rm -f confcache 13083 13084test "x$prefix" = xNONE && prefix=$ac_default_prefix 13085# Let make expand exec_prefix. 13086test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13087 13088DEFS=-DHAVE_CONFIG_H 13089 13090ac_libobjs= 13091ac_ltlibobjs= 13092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13093 # 1. Remove the extension, and $U if already installed. 13094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13095 ac_i=`echo "$ac_i" | sed "$ac_script"` 13096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13097 # will be set to the directory where LIBOBJS objects are built. 13098 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13099 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13100done 13101LIBOBJS=$ac_libobjs 13102 13103LTLIBOBJS=$ac_ltlibobjs 13104 13105 13106if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13107 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13108Usually this means the macro was only invoked conditionally." >&5 13109echo "$as_me: error: conditional \"AMDEP\" was never defined. 13110Usually this means the macro was only invoked conditionally." >&2;} 13111 { (exit 1); exit 1; }; } 13112fi 13113if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13114 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13115Usually this means the macro was only invoked conditionally." >&5 13116echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13117Usually this means the macro was only invoked conditionally." >&2;} 13118 { (exit 1); exit 1; }; } 13119fi 13120if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 13121 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 13122Usually this means the macro was only invoked conditionally." >&5 13123echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 13124Usually this means the macro was only invoked conditionally." >&2;} 13125 { (exit 1); exit 1; }; } 13126fi 13127if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 13128 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 13129Usually this means the macro was only invoked conditionally." >&5 13130echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 13131Usually this means the macro was only invoked conditionally." >&2;} 13132 { (exit 1); exit 1; }; } 13133fi 13134LT_CONFIG_H=config.h 13135 13136: ${CONFIG_STATUS=./config.status} 13137ac_clean_files_save=$ac_clean_files 13138ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13139{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13140echo "$as_me: creating $CONFIG_STATUS" >&6;} 13141cat >$CONFIG_STATUS <<_ACEOF 13142#! $SHELL 13143# Generated by $as_me. 13144# Run this file to recreate the current configuration. 13145# Compiler output produced by configure, useful for debugging 13146# configure, is in config.log if it exists. 13147 13148debug=false 13149ac_cs_recheck=false 13150ac_cs_silent=false 13151SHELL=\${CONFIG_SHELL-$SHELL} 13152_ACEOF 13153 13154cat >>$CONFIG_STATUS <<\_ACEOF 13155## --------------------- ## 13156## M4sh Initialization. ## 13157## --------------------- ## 13158 13159# Be more Bourne compatible 13160DUALCASE=1; export DUALCASE # for MKS sh 13161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13162 emulate sh 13163 NULLCMD=: 13164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13165 # is contrary to our usage. Disable this feature. 13166 alias -g '${1+"$@"}'='"$@"' 13167 setopt NO_GLOB_SUBST 13168else 13169 case `(set -o) 2>/dev/null` in 13170 *posix*) set -o posix ;; 13171esac 13172 13173fi 13174 13175 13176 13177 13178# PATH needs CR 13179# Avoid depending upon Character Ranges. 13180as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13181as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13182as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13183as_cr_digits='0123456789' 13184as_cr_alnum=$as_cr_Letters$as_cr_digits 13185 13186# The user is always right. 13187if test "${PATH_SEPARATOR+set}" != set; then 13188 echo "#! /bin/sh" >conf$$.sh 13189 echo "exit 0" >>conf$$.sh 13190 chmod +x conf$$.sh 13191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13192 PATH_SEPARATOR=';' 13193 else 13194 PATH_SEPARATOR=: 13195 fi 13196 rm -f conf$$.sh 13197fi 13198 13199# Support unset when possible. 13200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13201 as_unset=unset 13202else 13203 as_unset=false 13204fi 13205 13206 13207# IFS 13208# We need space, tab and new line, in precisely that order. Quoting is 13209# there to prevent editors from complaining about space-tab. 13210# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13211# splitting by setting IFS to empty value.) 13212as_nl=' 13213' 13214IFS=" "" $as_nl" 13215 13216# Find who we are. Look in the path if we contain no directory separator. 13217case $0 in 13218 *[\\/]* ) as_myself=$0 ;; 13219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13220for as_dir in $PATH 13221do 13222 IFS=$as_save_IFS 13223 test -z "$as_dir" && as_dir=. 13224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13225done 13226IFS=$as_save_IFS 13227 13228 ;; 13229esac 13230# We did not find ourselves, most probably we were run as `sh COMMAND' 13231# in which case we are not to be found in the path. 13232if test "x$as_myself" = x; then 13233 as_myself=$0 13234fi 13235if test ! -f "$as_myself"; then 13236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13237 { (exit 1); exit 1; } 13238fi 13239 13240# Work around bugs in pre-3.0 UWIN ksh. 13241for as_var in ENV MAIL MAILPATH 13242do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13243done 13244PS1='$ ' 13245PS2='> ' 13246PS4='+ ' 13247 13248# NLS nuisances. 13249for as_var in \ 13250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13252 LC_TELEPHONE LC_TIME 13253do 13254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13255 eval $as_var=C; export $as_var 13256 else 13257 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13258 fi 13259done 13260 13261# Required to use basename. 13262if expr a : '\(a\)' >/dev/null 2>&1 && 13263 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13264 as_expr=expr 13265else 13266 as_expr=false 13267fi 13268 13269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13270 as_basename=basename 13271else 13272 as_basename=false 13273fi 13274 13275 13276# Name of the executable. 13277as_me=`$as_basename -- "$0" || 13278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13279 X"$0" : 'X\(//\)$' \| \ 13280 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13281echo X/"$0" | 13282 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13283 s//\1/ 13284 q 13285 } 13286 /^X\/\(\/\/\)$/{ 13287 s//\1/ 13288 q 13289 } 13290 /^X\/\(\/\).*/{ 13291 s//\1/ 13292 q 13293 } 13294 s/.*/./; q'` 13295 13296# CDPATH. 13297$as_unset CDPATH 13298 13299 13300 13301 as_lineno_1=$LINENO 13302 as_lineno_2=$LINENO 13303 test "x$as_lineno_1" != "x$as_lineno_2" && 13304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13305 13306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13307 # uniformly replaced by the line number. The first 'sed' inserts a 13308 # line-number line after each line using $LINENO; the second 'sed' 13309 # does the real work. The second script uses 'N' to pair each 13310 # line-number line with the line containing $LINENO, and appends 13311 # trailing '-' during substitution so that $LINENO is not a special 13312 # case at line end. 13313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13314 # scripts with optimization help from Paolo Bonzini. Blame Lee 13315 # E. McMahon (1931-1989) for sed's syntax. :-) 13316 sed -n ' 13317 p 13318 /[$]LINENO/= 13319 ' <$as_myself | 13320 sed ' 13321 s/[$]LINENO.*/&-/ 13322 t lineno 13323 b 13324 :lineno 13325 N 13326 :loop 13327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13328 t loop 13329 s/-\n.*// 13330 ' >$as_me.lineno && 13331 chmod +x "$as_me.lineno" || 13332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13333 { (exit 1); exit 1; }; } 13334 13335 # Don't try to exec as it changes $[0], causing all sort of problems 13336 # (the dirname of $[0] is not the place where we might find the 13337 # original and so on. Autoconf is especially sensitive to this). 13338 . "./$as_me.lineno" 13339 # Exit status is that of the last command. 13340 exit 13341} 13342 13343 13344if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13345 as_dirname=dirname 13346else 13347 as_dirname=false 13348fi 13349 13350ECHO_C= ECHO_N= ECHO_T= 13351case `echo -n x` in 13352-n*) 13353 case `echo 'x\c'` in 13354 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13355 *) ECHO_C='\c';; 13356 esac;; 13357*) 13358 ECHO_N='-n';; 13359esac 13360 13361if expr a : '\(a\)' >/dev/null 2>&1 && 13362 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13363 as_expr=expr 13364else 13365 as_expr=false 13366fi 13367 13368rm -f conf$$ conf$$.exe conf$$.file 13369if test -d conf$$.dir; then 13370 rm -f conf$$.dir/conf$$.file 13371else 13372 rm -f conf$$.dir 13373 mkdir conf$$.dir 13374fi 13375echo >conf$$.file 13376if ln -s conf$$.file conf$$ 2>/dev/null; then 13377 as_ln_s='ln -s' 13378 # ... but there are two gotchas: 13379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13381 # In both cases, we have to default to `cp -p'. 13382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13383 as_ln_s='cp -p' 13384elif ln conf$$.file conf$$ 2>/dev/null; then 13385 as_ln_s=ln 13386else 13387 as_ln_s='cp -p' 13388fi 13389rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13390rmdir conf$$.dir 2>/dev/null 13391 13392if mkdir -p . 2>/dev/null; then 13393 as_mkdir_p=: 13394else 13395 test -d ./-p && rmdir ./-p 13396 as_mkdir_p=false 13397fi 13398 13399if test -x / >/dev/null 2>&1; then 13400 as_test_x='test -x' 13401else 13402 if ls -dL / >/dev/null 2>&1; then 13403 as_ls_L_option=L 13404 else 13405 as_ls_L_option= 13406 fi 13407 as_test_x=' 13408 eval sh -c '\'' 13409 if test -d "$1"; then 13410 test -d "$1/."; 13411 else 13412 case $1 in 13413 -*)set "./$1";; 13414 esac; 13415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13416 ???[sx]*):;;*)false;;esac;fi 13417 '\'' sh 13418 ' 13419fi 13420as_executable_p=$as_test_x 13421 13422# Sed expression to map a string onto a valid CPP name. 13423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13424 13425# Sed expression to map a string onto a valid variable name. 13426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13427 13428 13429exec 6>&1 13430 13431# Save the log message, to keep $[0] and so on meaningful, and to 13432# report actual input values of CONFIG_FILES etc. instead of their 13433# values after options handling. 13434ac_log=" 13435This file was extended by libltdl $as_me 2.2.6, which was 13436generated by GNU Autoconf 2.61. Invocation command line was 13437 13438 CONFIG_FILES = $CONFIG_FILES 13439 CONFIG_HEADERS = $CONFIG_HEADERS 13440 CONFIG_LINKS = $CONFIG_LINKS 13441 CONFIG_COMMANDS = $CONFIG_COMMANDS 13442 $ $0 $@ 13443 13444on `(hostname || uname -n) 2>/dev/null | sed 1q` 13445" 13446 13447_ACEOF 13448 13449cat >>$CONFIG_STATUS <<_ACEOF 13450# Files that config.status was made for. 13451config_files="$ac_config_files" 13452config_headers="$ac_config_headers" 13453config_commands="$ac_config_commands" 13454 13455_ACEOF 13456 13457cat >>$CONFIG_STATUS <<\_ACEOF 13458ac_cs_usage="\ 13459\`$as_me' instantiates files from templates according to the 13460current configuration. 13461 13462Usage: $0 [OPTIONS] [FILE]... 13463 13464 -h, --help print this help, then exit 13465 -V, --version print version number and configuration settings, then exit 13466 -q, --quiet do not print progress messages 13467 -d, --debug don't remove temporary files 13468 --recheck update $as_me by reconfiguring in the same conditions 13469 --file=FILE[:TEMPLATE] 13470 instantiate the configuration file FILE 13471 --header=FILE[:TEMPLATE] 13472 instantiate the configuration header FILE 13473 13474Configuration files: 13475$config_files 13476 13477Configuration headers: 13478$config_headers 13479 13480Configuration commands: 13481$config_commands 13482 13483Report bugs to <bug-autoconf@gnu.org>." 13484 13485_ACEOF 13486cat >>$CONFIG_STATUS <<_ACEOF 13487ac_cs_version="\\ 13488libltdl config.status 2.2.6 13489configured by $0, generated by GNU Autoconf 2.61, 13490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13491 13492Copyright (C) 2006 Free Software Foundation, Inc. 13493This config.status script is free software; the Free Software Foundation 13494gives unlimited permission to copy, distribute and modify it." 13495 13496ac_pwd='$ac_pwd' 13497srcdir='$srcdir' 13498INSTALL='$INSTALL' 13499MKDIR_P='$MKDIR_P' 13500_ACEOF 13501 13502cat >>$CONFIG_STATUS <<\_ACEOF 13503# If no file are specified by the user, then we need to provide default 13504# value. By we need to know if files were specified by the user. 13505ac_need_defaults=: 13506while test $# != 0 13507do 13508 case $1 in 13509 --*=*) 13510 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13512 ac_shift=: 13513 ;; 13514 *) 13515 ac_option=$1 13516 ac_optarg=$2 13517 ac_shift=shift 13518 ;; 13519 esac 13520 13521 case $ac_option in 13522 # Handling of the options. 13523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13524 ac_cs_recheck=: ;; 13525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13526 echo "$ac_cs_version"; exit ;; 13527 --debug | --debu | --deb | --de | --d | -d ) 13528 debug=: ;; 13529 --file | --fil | --fi | --f ) 13530 $ac_shift 13531 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13532 ac_need_defaults=false;; 13533 --header | --heade | --head | --hea ) 13534 $ac_shift 13535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13536 ac_need_defaults=false;; 13537 --he | --h) 13538 # Conflict between --help and --header 13539 { echo "$as_me: error: ambiguous option: $1 13540Try \`$0 --help' for more information." >&2 13541 { (exit 1); exit 1; }; };; 13542 --help | --hel | -h ) 13543 echo "$ac_cs_usage"; exit ;; 13544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13545 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13546 ac_cs_silent=: ;; 13547 13548 # This is an error. 13549 -*) { echo "$as_me: error: unrecognized option: $1 13550Try \`$0 --help' for more information." >&2 13551 { (exit 1); exit 1; }; } ;; 13552 13553 *) ac_config_targets="$ac_config_targets $1" 13554 ac_need_defaults=false ;; 13555 13556 esac 13557 shift 13558done 13559 13560ac_configure_extra_args= 13561 13562if $ac_cs_silent; then 13563 exec 6>/dev/null 13564 ac_configure_extra_args="$ac_configure_extra_args --silent" 13565fi 13566 13567_ACEOF 13568cat >>$CONFIG_STATUS <<_ACEOF 13569if \$ac_cs_recheck; then 13570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13571 CONFIG_SHELL=$SHELL 13572 export CONFIG_SHELL 13573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13574fi 13575 13576_ACEOF 13577cat >>$CONFIG_STATUS <<\_ACEOF 13578exec 5>>config.log 13579{ 13580 echo 13581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13582## Running $as_me. ## 13583_ASBOX 13584 echo "$ac_log" 13585} >&5 13586 13587_ACEOF 13588cat >>$CONFIG_STATUS <<_ACEOF 13589# 13590# INIT-COMMANDS 13591# 13592AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13593 13594 13595# The HP-UX ksh and POSIX shell print the target directory to stdout 13596# if CDPATH is set. 13597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13598 13599sed_quote_subst='$sed_quote_subst' 13600double_quote_subst='$double_quote_subst' 13601delay_variable_subst='$delay_variable_subst' 13602macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13603macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13604AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 13605DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13606OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13607enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13608enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13609pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13610enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13611host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13612host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13613host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13614build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13615build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13616build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13617SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13618Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13619GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13620EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13621FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13622LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13623NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13624LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13625max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13626ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13627exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13628lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13629lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13630lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13631reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13632reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13633deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13634file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13635AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13636AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13637STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13638RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13639old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13640old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13641old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13642CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13643CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13644compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13645GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13646lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13647lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13648lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13649lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13650objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13651SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13652ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13653MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13654lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13655lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13656lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13657lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13658lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13659need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13660DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13661NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13662LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13663OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13664OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13665libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13666shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13667extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13668archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13669enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13670export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13671whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13672compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13673old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13674old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13675archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13676archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13677module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13678module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13679with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13680allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13681no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13682hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13683hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13684hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13685hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13686hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13687hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13688hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13689hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13690inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13691link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13692fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13693always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13694export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13695exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13696include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13697prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13698file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13699variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13700need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13701need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13702version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13703runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13704shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13705shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13706libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13707library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13708soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13709postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13710postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13711finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13712finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13713hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13714sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13715sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13716hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13717enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13718enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13719enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13720old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13721striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13722 13723LTCC='$LTCC' 13724LTCFLAGS='$LTCFLAGS' 13725compiler='$compiler_DEFAULT' 13726 13727# Quote evaled strings. 13728for var in SED \ 13729GREP \ 13730EGREP \ 13731FGREP \ 13732LD \ 13733NM \ 13734LN_S \ 13735lt_SP2NL \ 13736lt_NL2SP \ 13737reload_flag \ 13738deplibs_check_method \ 13739file_magic_cmd \ 13740AR \ 13741AR_FLAGS \ 13742STRIP \ 13743RANLIB \ 13744CC \ 13745CFLAGS \ 13746compiler \ 13747lt_cv_sys_global_symbol_pipe \ 13748lt_cv_sys_global_symbol_to_cdecl \ 13749lt_cv_sys_global_symbol_to_c_name_address \ 13750lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13751SHELL \ 13752ECHO \ 13753lt_prog_compiler_no_builtin_flag \ 13754lt_prog_compiler_wl \ 13755lt_prog_compiler_pic \ 13756lt_prog_compiler_static \ 13757lt_cv_prog_compiler_c_o \ 13758need_locks \ 13759DSYMUTIL \ 13760NMEDIT \ 13761LIPO \ 13762OTOOL \ 13763OTOOL64 \ 13764shrext_cmds \ 13765export_dynamic_flag_spec \ 13766whole_archive_flag_spec \ 13767compiler_needs_object \ 13768with_gnu_ld \ 13769allow_undefined_flag \ 13770no_undefined_flag \ 13771hardcode_libdir_flag_spec \ 13772hardcode_libdir_flag_spec_ld \ 13773hardcode_libdir_separator \ 13774fix_srcfile_path \ 13775exclude_expsyms \ 13776include_expsyms \ 13777file_list_spec \ 13778variables_saved_for_relink \ 13779libname_spec \ 13780library_names_spec \ 13781soname_spec \ 13782finish_eval \ 13783old_striplib \ 13784striplib; do 13785 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13786 *[\\\\\\\`\\"\\\$]*) 13787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13788 ;; 13789 *) 13790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13791 ;; 13792 esac 13793done 13794 13795# Double-quote double-evaled strings. 13796for var in reload_cmds \ 13797old_postinstall_cmds \ 13798old_postuninstall_cmds \ 13799old_archive_cmds \ 13800extract_expsyms_cmds \ 13801old_archive_from_new_cmds \ 13802old_archive_from_expsyms_cmds \ 13803archive_cmds \ 13804archive_expsym_cmds \ 13805module_cmds \ 13806module_expsym_cmds \ 13807export_symbols_cmds \ 13808prelink_cmds \ 13809postinstall_cmds \ 13810postuninstall_cmds \ 13811finish_cmds \ 13812sys_lib_search_path_spec \ 13813sys_lib_dlsearch_path_spec; do 13814 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13815 *[\\\\\\\`\\"\\\$]*) 13816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13817 ;; 13818 *) 13819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13820 ;; 13821 esac 13822done 13823 13824# Fix-up fallback echo if it was mangled by the above quoting rules. 13825case \$lt_ECHO in 13826*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13827 ;; 13828esac 13829 13830ac_aux_dir='$ac_aux_dir' 13831xsi_shell='$xsi_shell' 13832lt_shell_append='$lt_shell_append' 13833 13834# See if we are running on zsh, and set the options which allow our 13835# commands through without removal of \ escapes INIT. 13836if test -n "\${ZSH_VERSION+set}" ; then 13837 setopt NO_GLOB_SUBST 13838fi 13839 13840 13841 PACKAGE='$PACKAGE' 13842 VERSION='$VERSION' 13843 TIMESTAMP='$TIMESTAMP' 13844 RM='$RM' 13845 ofile='$ofile' 13846 13847 13848 13849 13850_ACEOF 13851 13852cat >>$CONFIG_STATUS <<\_ACEOF 13853 13854# Handling of arguments. 13855for ac_config_target in $ac_config_targets 13856do 13857 case $ac_config_target in 13858 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; 13859 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13860 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13862 13863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13864echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13865 { (exit 1); exit 1; }; };; 13866 esac 13867done 13868 13869 13870# If the user did not use the arguments to specify the items to instantiate, 13871# then the envvar interface is used. Set only those that are not. 13872# We use the long form for the default assignment because of an extremely 13873# bizarre bug on SunOS 4.1.3. 13874if $ac_need_defaults; then 13875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13878fi 13879 13880# Have a temporary directory for convenience. Make it in the build tree 13881# simply because there is no reason against having it here, and in addition, 13882# creating and moving files from /tmp can sometimes cause problems. 13883# Hook for its removal unless debugging. 13884# Note that there is a small window in which the directory will not be cleaned: 13885# after its creation but before its name has been assigned to `$tmp'. 13886$debug || 13887{ 13888 tmp= 13889 trap 'exit_status=$? 13890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13891' 0 13892 trap '{ (exit 1); exit 1; }' 1 2 13 15 13893} 13894# Create a (secure) tmp directory for tmp files. 13895 13896{ 13897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13898 test -n "$tmp" && test -d "$tmp" 13899} || 13900{ 13901 tmp=./conf$$-$RANDOM 13902 (umask 077 && mkdir "$tmp") 13903} || 13904{ 13905 echo "$me: cannot create a temporary directory in ." >&2 13906 { (exit 1); exit 1; } 13907} 13908 13909# 13910# Set up the sed scripts for CONFIG_FILES section. 13911# 13912 13913# No need to generate the scripts if there are no CONFIG_FILES. 13914# This happens for instance when ./config.status config.h 13915if test -n "$CONFIG_FILES"; then 13916 13917_ACEOF 13918 13919 13920 13921ac_delim='%!_!# ' 13922for ac_last_try in false false false false false :; do 13923 cat >conf$$subs.sed <<_ACEOF 13924SHELL!$SHELL$ac_delim 13925PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 13926PACKAGE_NAME!$PACKAGE_NAME$ac_delim 13927PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 13928PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 13929PACKAGE_STRING!$PACKAGE_STRING$ac_delim 13930PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 13931exec_prefix!$exec_prefix$ac_delim 13932prefix!$prefix$ac_delim 13933program_transform_name!$program_transform_name$ac_delim 13934bindir!$bindir$ac_delim 13935sbindir!$sbindir$ac_delim 13936libexecdir!$libexecdir$ac_delim 13937datarootdir!$datarootdir$ac_delim 13938datadir!$datadir$ac_delim 13939sysconfdir!$sysconfdir$ac_delim 13940sharedstatedir!$sharedstatedir$ac_delim 13941localstatedir!$localstatedir$ac_delim 13942includedir!$includedir$ac_delim 13943oldincludedir!$oldincludedir$ac_delim 13944docdir!$docdir$ac_delim 13945infodir!$infodir$ac_delim 13946htmldir!$htmldir$ac_delim 13947dvidir!$dvidir$ac_delim 13948pdfdir!$pdfdir$ac_delim 13949psdir!$psdir$ac_delim 13950libdir!$libdir$ac_delim 13951localedir!$localedir$ac_delim 13952mandir!$mandir$ac_delim 13953DEFS!$DEFS$ac_delim 13954ECHO_C!$ECHO_C$ac_delim 13955ECHO_N!$ECHO_N$ac_delim 13956ECHO_T!$ECHO_T$ac_delim 13957LIBS!$LIBS$ac_delim 13958build_alias!$build_alias$ac_delim 13959host_alias!$host_alias$ac_delim 13960target_alias!$target_alias$ac_delim 13961INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 13962INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 13963INSTALL_DATA!$INSTALL_DATA$ac_delim 13964am__isrc!$am__isrc$ac_delim 13965CYGPATH_W!$CYGPATH_W$ac_delim 13966PACKAGE!$PACKAGE$ac_delim 13967VERSION!$VERSION$ac_delim 13968ACLOCAL!$ACLOCAL$ac_delim 13969AUTOCONF!$AUTOCONF$ac_delim 13970AUTOMAKE!$AUTOMAKE$ac_delim 13971AUTOHEADER!$AUTOHEADER$ac_delim 13972MAKEINFO!$MAKEINFO$ac_delim 13973install_sh!$install_sh$ac_delim 13974STRIP!$STRIP$ac_delim 13975INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 13976mkdir_p!$mkdir_p$ac_delim 13977AWK!$AWK$ac_delim 13978SET_MAKE!$SET_MAKE$ac_delim 13979am__leading_dot!$am__leading_dot$ac_delim 13980AMTAR!$AMTAR$ac_delim 13981am__tar!$am__tar$ac_delim 13982am__untar!$am__untar$ac_delim 13983AS!$AS$ac_delim 13984DLLTOOL!$DLLTOOL$ac_delim 13985OBJDUMP!$OBJDUMP$ac_delim 13986LIBTOOL!$LIBTOOL$ac_delim 13987build!$build$ac_delim 13988build_cpu!$build_cpu$ac_delim 13989build_vendor!$build_vendor$ac_delim 13990build_os!$build_os$ac_delim 13991host!$host$ac_delim 13992host_cpu!$host_cpu$ac_delim 13993host_vendor!$host_vendor$ac_delim 13994host_os!$host_os$ac_delim 13995CC!$CC$ac_delim 13996CFLAGS!$CFLAGS$ac_delim 13997LDFLAGS!$LDFLAGS$ac_delim 13998CPPFLAGS!$CPPFLAGS$ac_delim 13999ac_ct_CC!$ac_ct_CC$ac_delim 14000EXEEXT!$EXEEXT$ac_delim 14001OBJEXT!$OBJEXT$ac_delim 14002DEPDIR!$DEPDIR$ac_delim 14003am__include!$am__include$ac_delim 14004am__quote!$am__quote$ac_delim 14005AMDEP_TRUE!$AMDEP_TRUE$ac_delim 14006AMDEP_FALSE!$AMDEP_FALSE$ac_delim 14007AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 14008CCDEPMODE!$CCDEPMODE$ac_delim 14009am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 14010am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 14011SED!$SED$ac_delim 14012GREP!$GREP$ac_delim 14013EGREP!$EGREP$ac_delim 14014FGREP!$FGREP$ac_delim 14015LD!$LD$ac_delim 14016DUMPBIN!$DUMPBIN$ac_delim 14017ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 14018NM!$NM$ac_delim 14019LN_S!$LN_S$ac_delim 14020AR!$AR$ac_delim 14021_ACEOF 14022 14023 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14024 break 14025 elif $ac_last_try; then 14026 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14027echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14028 { (exit 1); exit 1; }; } 14029 else 14030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14031 fi 14032done 14033 14034ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14035if test -n "$ac_eof"; then 14036 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14037 ac_eof=`expr $ac_eof + 1` 14038fi 14039 14040cat >>$CONFIG_STATUS <<_ACEOF 14041cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14043_ACEOF 14044sed ' 14045s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14046s/^/s,@/; s/!/@,|#_!!_#|/ 14047:n 14048t n 14049s/'"$ac_delim"'$/,g/; t 14050s/$/\\/; p 14051N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14052' >>$CONFIG_STATUS <conf$$subs.sed 14053rm -f conf$$subs.sed 14054cat >>$CONFIG_STATUS <<_ACEOF 14055CEOF$ac_eof 14056_ACEOF 14057 14058 14059ac_delim='%!_!# ' 14060for ac_last_try in false false false false false :; do 14061 cat >conf$$subs.sed <<_ACEOF 14062RANLIB!$RANLIB$ac_delim 14063lt_ECHO!$lt_ECHO$ac_delim 14064DSYMUTIL!$DSYMUTIL$ac_delim 14065NMEDIT!$NMEDIT$ac_delim 14066LIPO!$LIPO$ac_delim 14067OTOOL!$OTOOL$ac_delim 14068OTOOL64!$OTOOL64$ac_delim 14069CPP!$CPP$ac_delim 14070LT_DLLOADERS!$LT_DLLOADERS$ac_delim 14071LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim 14072LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim 14073LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim 14074LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim 14075LIBADD_DL!$LIBADD_DL$ac_delim 14076sys_symbol_underscore!$sys_symbol_underscore$ac_delim 14077LIBOBJS!$LIBOBJS$ac_delim 14078ARGZ_H!$ARGZ_H$ac_delim 14079INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 14080INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 14081CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 14082CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 14083LT_CONFIG_H!$LT_CONFIG_H$ac_delim 14084LTDLOPEN!$LTDLOPEN$ac_delim 14085LTLIBOBJS!$LTLIBOBJS$ac_delim 14086_ACEOF 14087 14088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 14089 break 14090 elif $ac_last_try; then 14091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14092echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14093 { (exit 1); exit 1; }; } 14094 else 14095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14096 fi 14097done 14098 14099ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14100if test -n "$ac_eof"; then 14101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14102 ac_eof=`expr $ac_eof + 1` 14103fi 14104 14105cat >>$CONFIG_STATUS <<_ACEOF 14106cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 14107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14108_ACEOF 14109sed ' 14110s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14111s/^/s,@/; s/!/@,|#_!!_#|/ 14112:n 14113t n 14114s/'"$ac_delim"'$/,g/; t 14115s/$/\\/; p 14116N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14117' >>$CONFIG_STATUS <conf$$subs.sed 14118rm -f conf$$subs.sed 14119cat >>$CONFIG_STATUS <<_ACEOF 14120:end 14121s/|#_!!_#|//g 14122CEOF$ac_eof 14123_ACEOF 14124 14125 14126# VPATH may cause trouble with some makes, so we remove $(srcdir), 14127# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14128# trailing colons and then remove the whole line if VPATH becomes empty 14129# (actually we leave an empty line to preserve line numbers). 14130if test "x$srcdir" = x.; then 14131 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14132s/:*\$(srcdir):*/:/ 14133s/:*\${srcdir}:*/:/ 14134s/:*@srcdir@:*/:/ 14135s/^\([^=]*=[ ]*\):*/\1/ 14136s/:*$// 14137s/^[^=]*=[ ]*$// 14138}' 14139fi 14140 14141cat >>$CONFIG_STATUS <<\_ACEOF 14142fi # test -n "$CONFIG_FILES" 14143 14144 14145for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 14146do 14147 case $ac_tag in 14148 :[FHLC]) ac_mode=$ac_tag; continue;; 14149 esac 14150 case $ac_mode$ac_tag in 14151 :[FHL]*:*);; 14152 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14153echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14154 { (exit 1); exit 1; }; };; 14155 :[FH]-) ac_tag=-:-;; 14156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14157 esac 14158 ac_save_IFS=$IFS 14159 IFS=: 14160 set x $ac_tag 14161 IFS=$ac_save_IFS 14162 shift 14163 ac_file=$1 14164 shift 14165 14166 case $ac_mode in 14167 :L) ac_source=$1;; 14168 :[FH]) 14169 ac_file_inputs= 14170 for ac_f 14171 do 14172 case $ac_f in 14173 -) ac_f="$tmp/stdin";; 14174 *) # Look for the file first in the build tree, then in the source tree 14175 # (if the path is not absolute). The absolute path cannot be DOS-style, 14176 # because $ac_f cannot contain `:'. 14177 test -f "$ac_f" || 14178 case $ac_f in 14179 [\\/$]*) false;; 14180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14181 esac || 14182 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14183echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14184 { (exit 1); exit 1; }; };; 14185 esac 14186 ac_file_inputs="$ac_file_inputs $ac_f" 14187 done 14188 14189 # Let's still pretend it is `configure' which instantiates (i.e., don't 14190 # use $as_me), people would be surprised to read: 14191 # /* config.h. Generated by config.status. */ 14192 configure_input="Generated from "`IFS=: 14193 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14194 if test x"$ac_file" != x-; then 14195 configure_input="$ac_file. $configure_input" 14196 { echo "$as_me:$LINENO: creating $ac_file" >&5 14197echo "$as_me: creating $ac_file" >&6;} 14198 fi 14199 14200 case $ac_tag in 14201 *:-:* | *:-) cat >"$tmp/stdin";; 14202 esac 14203 ;; 14204 esac 14205 14206 ac_dir=`$as_dirname -- "$ac_file" || 14207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14208 X"$ac_file" : 'X\(//\)[^/]' \| \ 14209 X"$ac_file" : 'X\(//\)$' \| \ 14210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14211echo X"$ac_file" | 14212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14213 s//\1/ 14214 q 14215 } 14216 /^X\(\/\/\)[^/].*/{ 14217 s//\1/ 14218 q 14219 } 14220 /^X\(\/\/\)$/{ 14221 s//\1/ 14222 q 14223 } 14224 /^X\(\/\).*/{ 14225 s//\1/ 14226 q 14227 } 14228 s/.*/./; q'` 14229 { as_dir="$ac_dir" 14230 case $as_dir in #( 14231 -*) as_dir=./$as_dir;; 14232 esac 14233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14234 as_dirs= 14235 while :; do 14236 case $as_dir in #( 14237 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14238 *) as_qdir=$as_dir;; 14239 esac 14240 as_dirs="'$as_qdir' $as_dirs" 14241 as_dir=`$as_dirname -- "$as_dir" || 14242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14243 X"$as_dir" : 'X\(//\)[^/]' \| \ 14244 X"$as_dir" : 'X\(//\)$' \| \ 14245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14246echo X"$as_dir" | 14247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14248 s//\1/ 14249 q 14250 } 14251 /^X\(\/\/\)[^/].*/{ 14252 s//\1/ 14253 q 14254 } 14255 /^X\(\/\/\)$/{ 14256 s//\1/ 14257 q 14258 } 14259 /^X\(\/\).*/{ 14260 s//\1/ 14261 q 14262 } 14263 s/.*/./; q'` 14264 test -d "$as_dir" && break 14265 done 14266 test -z "$as_dirs" || eval "mkdir $as_dirs" 14267 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14268echo "$as_me: error: cannot create directory $as_dir" >&2;} 14269 { (exit 1); exit 1; }; }; } 14270 ac_builddir=. 14271 14272case "$ac_dir" in 14273.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14274*) 14275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14276 # A ".." for each directory in $ac_dir_suffix. 14277 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14278 case $ac_top_builddir_sub in 14279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14281 esac ;; 14282esac 14283ac_abs_top_builddir=$ac_pwd 14284ac_abs_builddir=$ac_pwd$ac_dir_suffix 14285# for backward compatibility: 14286ac_top_builddir=$ac_top_build_prefix 14287 14288case $srcdir in 14289 .) # We are building in place. 14290 ac_srcdir=. 14291 ac_top_srcdir=$ac_top_builddir_sub 14292 ac_abs_top_srcdir=$ac_pwd ;; 14293 [\\/]* | ?:[\\/]* ) # Absolute name. 14294 ac_srcdir=$srcdir$ac_dir_suffix; 14295 ac_top_srcdir=$srcdir 14296 ac_abs_top_srcdir=$srcdir ;; 14297 *) # Relative name. 14298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14299 ac_top_srcdir=$ac_top_build_prefix$srcdir 14300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14301esac 14302ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14303 14304 14305 case $ac_mode in 14306 :F) 14307 # 14308 # CONFIG_FILE 14309 # 14310 14311 case $INSTALL in 14312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14313 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14314 esac 14315 ac_MKDIR_P=$MKDIR_P 14316 case $MKDIR_P in 14317 [\\/$]* | ?:[\\/]* ) ;; 14318 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14319 esac 14320_ACEOF 14321 14322cat >>$CONFIG_STATUS <<\_ACEOF 14323# If the template does not know about datarootdir, expand it. 14324# FIXME: This hack should be removed a few years after 2.60. 14325ac_datarootdir_hack=; ac_datarootdir_seen= 14326 14327case `sed -n '/datarootdir/ { 14328 p 14329 q 14330} 14331/@datadir@/p 14332/@docdir@/p 14333/@infodir@/p 14334/@localedir@/p 14335/@mandir@/p 14336' $ac_file_inputs` in 14337*datarootdir*) ac_datarootdir_seen=yes;; 14338*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14339 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14340echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14341_ACEOF 14342cat >>$CONFIG_STATUS <<_ACEOF 14343 ac_datarootdir_hack=' 14344 s&@datadir@&$datadir&g 14345 s&@docdir@&$docdir&g 14346 s&@infodir@&$infodir&g 14347 s&@localedir@&$localedir&g 14348 s&@mandir@&$mandir&g 14349 s&\\\${datarootdir}&$datarootdir&g' ;; 14350esac 14351_ACEOF 14352 14353# Neutralize VPATH when `$srcdir' = `.'. 14354# Shell code in configure.ac might set extrasub. 14355# FIXME: do we really want to maintain this feature? 14356cat >>$CONFIG_STATUS <<_ACEOF 14357 sed "$ac_vpsub 14358$extrasub 14359_ACEOF 14360cat >>$CONFIG_STATUS <<\_ACEOF 14361:t 14362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14363s&@configure_input@&$configure_input&;t t 14364s&@top_builddir@&$ac_top_builddir_sub&;t t 14365s&@srcdir@&$ac_srcdir&;t t 14366s&@abs_srcdir@&$ac_abs_srcdir&;t t 14367s&@top_srcdir@&$ac_top_srcdir&;t t 14368s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14369s&@builddir@&$ac_builddir&;t t 14370s&@abs_builddir@&$ac_abs_builddir&;t t 14371s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14372s&@INSTALL@&$ac_INSTALL&;t t 14373s&@MKDIR_P@&$ac_MKDIR_P&;t t 14374$ac_datarootdir_hack 14375" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 14376 14377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14378 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14380 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14381which seems to be undefined. Please make sure it is defined." >&5 14382echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14383which seems to be undefined. Please make sure it is defined." >&2;} 14384 14385 rm -f "$tmp/stdin" 14386 case $ac_file in 14387 -) cat "$tmp/out"; rm -f "$tmp/out";; 14388 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14389 esac 14390 ;; 14391 :H) 14392 # 14393 # CONFIG_HEADER 14394 # 14395_ACEOF 14396 14397# Transform confdefs.h into a sed script `conftest.defines', that 14398# substitutes the proper values into config.h.in to produce config.h. 14399rm -f conftest.defines conftest.tail 14400# First, append a space to every undef/define line, to ease matching. 14401echo 's/$/ /' >conftest.defines 14402# Then, protect against being on the right side of a sed subst, or in 14403# an unquoted here document, in config.status. If some macros were 14404# called several times there might be several #defines for the same 14405# symbol, which is useless. But do not sort them, since the last 14406# AC_DEFINE must be honored. 14407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14408# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 14409# NAME is the cpp macro being defined, VALUE is the value it is being given. 14410# PARAMS is the parameter list in the macro definition--in most cases, it's 14411# just an empty string. 14412ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 14413ac_dB='\\)[ (].*,\\1define\\2' 14414ac_dC=' ' 14415ac_dD=' ,' 14416 14417uniq confdefs.h | 14418 sed -n ' 14419 t rset 14420 :rset 14421 s/^[ ]*#[ ]*define[ ][ ]*// 14422 t ok 14423 d 14424 :ok 14425 s/[\\&,]/\\&/g 14426 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 14427 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 14428 ' >>conftest.defines 14429 14430# Remove the space that was appended to ease matching. 14431# Then replace #undef with comments. This is necessary, for 14432# example, in the case of _POSIX_SOURCE, which is predefined and required 14433# on some systems where configure will not decide to define it. 14434# (The regexp can be short, since the line contains either #define or #undef.) 14435echo 's/ $// 14436s,^[ #]*u.*,/* & */,' >>conftest.defines 14437 14438# Break up conftest.defines: 14439ac_max_sed_lines=50 14440 14441# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 14442# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 14443# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 14444# et cetera. 14445ac_in='$ac_file_inputs' 14446ac_out='"$tmp/out1"' 14447ac_nxt='"$tmp/out2"' 14448 14449while : 14450do 14451 # Write a here document: 14452 cat >>$CONFIG_STATUS <<_ACEOF 14453 # First, check the format of the line: 14454 cat >"\$tmp/defines.sed" <<\\CEOF 14455/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 14456/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 14457b 14458:def 14459_ACEOF 14460 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 14461 echo 'CEOF 14462 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 14463 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 14464 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 14465 grep . conftest.tail >/dev/null || break 14466 rm -f conftest.defines 14467 mv conftest.tail conftest.defines 14468done 14469rm -f conftest.defines conftest.tail 14470 14471echo "ac_result=$ac_in" >>$CONFIG_STATUS 14472cat >>$CONFIG_STATUS <<\_ACEOF 14473 if test x"$ac_file" != x-; then 14474 echo "/* $configure_input */" >"$tmp/config.h" 14475 cat "$ac_result" >>"$tmp/config.h" 14476 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 14477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14478echo "$as_me: $ac_file is unchanged" >&6;} 14479 else 14480 rm -f $ac_file 14481 mv "$tmp/config.h" $ac_file 14482 fi 14483 else 14484 echo "/* $configure_input */" 14485 cat "$ac_result" 14486 fi 14487 rm -f "$tmp/out12" 14488# Compute $ac_file's index in $config_headers. 14489_am_arg=$ac_file 14490_am_stamp_count=1 14491for _am_header in $config_headers :; do 14492 case $_am_header in 14493 $_am_arg | $_am_arg:* ) 14494 break ;; 14495 * ) 14496 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14497 esac 14498done 14499echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14500$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14501 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14502 X"$_am_arg" : 'X\(//\)$' \| \ 14503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14504echo X"$_am_arg" | 14505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14506 s//\1/ 14507 q 14508 } 14509 /^X\(\/\/\)[^/].*/{ 14510 s//\1/ 14511 q 14512 } 14513 /^X\(\/\/\)$/{ 14514 s//\1/ 14515 q 14516 } 14517 /^X\(\/\).*/{ 14518 s//\1/ 14519 q 14520 } 14521 s/.*/./; q'`/stamp-h$_am_stamp_count 14522 ;; 14523 14524 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 14525echo "$as_me: executing $ac_file commands" >&6;} 14526 ;; 14527 esac 14528 14529 14530 case $ac_file$ac_mode in 14531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14532 # Strip MF so we end up with the name of the file. 14533 mf=`echo "$mf" | sed -e 's/:.*$//'` 14534 # Check whether this is an Automake generated Makefile or not. 14535 # We used to match only the files named `Makefile.in', but 14536 # some people rename them; so instead we look at the file content. 14537 # Grep'ing the first line is not enough: some people post-process 14538 # each Makefile.in and add a new line on top of each file to say so. 14539 # Grep'ing the whole file is not good either: AIX grep has a line 14540 # limit of 2048, but all sed's we know have understand at least 4000. 14541 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14542 dirpart=`$as_dirname -- "$mf" || 14543$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14544 X"$mf" : 'X\(//\)[^/]' \| \ 14545 X"$mf" : 'X\(//\)$' \| \ 14546 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14547echo X"$mf" | 14548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14549 s//\1/ 14550 q 14551 } 14552 /^X\(\/\/\)[^/].*/{ 14553 s//\1/ 14554 q 14555 } 14556 /^X\(\/\/\)$/{ 14557 s//\1/ 14558 q 14559 } 14560 /^X\(\/\).*/{ 14561 s//\1/ 14562 q 14563 } 14564 s/.*/./; q'` 14565 else 14566 continue 14567 fi 14568 # Extract the definition of DEPDIR, am__include, and am__quote 14569 # from the Makefile without running `make'. 14570 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14571 test -z "$DEPDIR" && continue 14572 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14573 test -z "am__include" && continue 14574 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14575 # When using ansi2knr, U may be empty or an underscore; expand it 14576 U=`sed -n 's/^U = //p' < "$mf"` 14577 # Find all dependency output files, they are included files with 14578 # $(DEPDIR) in their names. We invoke sed twice because it is the 14579 # simplest approach to changing $(DEPDIR) to its actual value in the 14580 # expansion. 14581 for file in `sed -n " 14582 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14583 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14584 # Make sure the directory exists. 14585 test -f "$dirpart/$file" && continue 14586 fdir=`$as_dirname -- "$file" || 14587$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14588 X"$file" : 'X\(//\)[^/]' \| \ 14589 X"$file" : 'X\(//\)$' \| \ 14590 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14591echo X"$file" | 14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14593 s//\1/ 14594 q 14595 } 14596 /^X\(\/\/\)[^/].*/{ 14597 s//\1/ 14598 q 14599 } 14600 /^X\(\/\/\)$/{ 14601 s//\1/ 14602 q 14603 } 14604 /^X\(\/\).*/{ 14605 s//\1/ 14606 q 14607 } 14608 s/.*/./; q'` 14609 { as_dir=$dirpart/$fdir 14610 case $as_dir in #( 14611 -*) as_dir=./$as_dir;; 14612 esac 14613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14614 as_dirs= 14615 while :; do 14616 case $as_dir in #( 14617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14618 *) as_qdir=$as_dir;; 14619 esac 14620 as_dirs="'$as_qdir' $as_dirs" 14621 as_dir=`$as_dirname -- "$as_dir" || 14622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14623 X"$as_dir" : 'X\(//\)[^/]' \| \ 14624 X"$as_dir" : 'X\(//\)$' \| \ 14625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14626echo X"$as_dir" | 14627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14628 s//\1/ 14629 q 14630 } 14631 /^X\(\/\/\)[^/].*/{ 14632 s//\1/ 14633 q 14634 } 14635 /^X\(\/\/\)$/{ 14636 s//\1/ 14637 q 14638 } 14639 /^X\(\/\).*/{ 14640 s//\1/ 14641 q 14642 } 14643 s/.*/./; q'` 14644 test -d "$as_dir" && break 14645 done 14646 test -z "$as_dirs" || eval "mkdir $as_dirs" 14647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14648echo "$as_me: error: cannot create directory $as_dir" >&2;} 14649 { (exit 1); exit 1; }; }; } 14650 # echo "creating $dirpart/$file" 14651 echo '# dummy' > "$dirpart/$file" 14652 done 14653done 14654 ;; 14655 "libtool":C) 14656 14657 # See if we are running on zsh, and set the options which allow our 14658 # commands through without removal of \ escapes. 14659 if test -n "${ZSH_VERSION+set}" ; then 14660 setopt NO_GLOB_SUBST 14661 fi 14662 14663 cfgfile="${ofile}T" 14664 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14665 $RM "$cfgfile" 14666 14667 cat <<_LT_EOF >> "$cfgfile" 14668#! $SHELL 14669 14670# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14671# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14672# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14673# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14674# 14675# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14676# 2006, 2007, 2008 Free Software Foundation, Inc. 14677# Written by Gordon Matzigkeit, 1996 14678# 14679# This file is part of GNU Libtool. 14680# 14681# GNU Libtool is free software; you can redistribute it and/or 14682# modify it under the terms of the GNU General Public License as 14683# published by the Free Software Foundation; either version 2 of 14684# the License, or (at your option) any later version. 14685# 14686# As a special exception to the GNU General Public License, 14687# if you distribute this file as part of a program or library that 14688# is built using GNU Libtool, you may include this file under the 14689# same distribution terms that you use for the rest of that program. 14690# 14691# GNU Libtool is distributed in the hope that it will be useful, 14692# but WITHOUT ANY WARRANTY; without even the implied warranty of 14693# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14694# GNU General Public License for more details. 14695# 14696# You should have received a copy of the GNU General Public License 14697# along with GNU Libtool; see the file COPYING. If not, a copy 14698# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14699# obtained by writing to the Free Software Foundation, Inc., 14700# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14701 14702 14703# The names of the tagged configurations supported by this script. 14704available_tags="" 14705 14706# ### BEGIN LIBTOOL CONFIG 14707 14708# Which release of libtool.m4 was used? 14709macro_version=$macro_version 14710macro_revision=$macro_revision 14711 14712# Assembler program. 14713AS=$AS 14714 14715# DLL creation program. 14716DLLTOOL=$DLLTOOL 14717 14718# Object dumper program. 14719OBJDUMP=$OBJDUMP 14720 14721# Whether or not to build shared libraries. 14722build_libtool_libs=$enable_shared 14723 14724# Whether or not to build static libraries. 14725build_old_libs=$enable_static 14726 14727# What type of objects to build. 14728pic_mode=$pic_mode 14729 14730# Whether or not to optimize for fast installation. 14731fast_install=$enable_fast_install 14732 14733# The host system. 14734host_alias=$host_alias 14735host=$host 14736host_os=$host_os 14737 14738# The build system. 14739build_alias=$build_alias 14740build=$build 14741build_os=$build_os 14742 14743# A sed program that does not truncate output. 14744SED=$lt_SED 14745 14746# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14747Xsed="\$SED -e 1s/^X//" 14748 14749# A grep program that handles long lines. 14750GREP=$lt_GREP 14751 14752# An ERE matcher. 14753EGREP=$lt_EGREP 14754 14755# A literal string matcher. 14756FGREP=$lt_FGREP 14757 14758# A BSD- or MS-compatible name lister. 14759NM=$lt_NM 14760 14761# Whether we need soft or hard links. 14762LN_S=$lt_LN_S 14763 14764# What is the maximum length of a command? 14765max_cmd_len=$max_cmd_len 14766 14767# Object file suffix (normally "o"). 14768objext=$ac_objext 14769 14770# Executable file suffix (normally ""). 14771exeext=$exeext 14772 14773# whether the shell understands "unset". 14774lt_unset=$lt_unset 14775 14776# turn spaces into newlines. 14777SP2NL=$lt_lt_SP2NL 14778 14779# turn newlines into spaces. 14780NL2SP=$lt_lt_NL2SP 14781 14782# How to create reloadable object files. 14783reload_flag=$lt_reload_flag 14784reload_cmds=$lt_reload_cmds 14785 14786# Method to check whether dependent libraries are shared objects. 14787deplibs_check_method=$lt_deplibs_check_method 14788 14789# Command to use when deplibs_check_method == "file_magic". 14790file_magic_cmd=$lt_file_magic_cmd 14791 14792# The archiver. 14793AR=$lt_AR 14794AR_FLAGS=$lt_AR_FLAGS 14795 14796# A symbol stripping program. 14797STRIP=$lt_STRIP 14798 14799# Commands used to install an old-style archive. 14800RANLIB=$lt_RANLIB 14801old_postinstall_cmds=$lt_old_postinstall_cmds 14802old_postuninstall_cmds=$lt_old_postuninstall_cmds 14803 14804# A C compiler. 14805LTCC=$lt_CC 14806 14807# LTCC compiler flags. 14808LTCFLAGS=$lt_CFLAGS 14809 14810# Take the output of nm and produce a listing of raw symbols and C names. 14811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14812 14813# Transform the output of nm in a proper C declaration. 14814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14815 14816# Transform the output of nm in a C name address pair. 14817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14818 14819# Transform the output of nm in a C name address pair when lib prefix is needed. 14820global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14821 14822# The name of the directory that contains temporary libtool files. 14823objdir=$objdir 14824 14825# Shell to use when invoking shell scripts. 14826SHELL=$lt_SHELL 14827 14828# An echo program that does not interpret backslashes. 14829ECHO=$lt_ECHO 14830 14831# Used to examine libraries when file_magic_cmd begins with "file". 14832MAGIC_CMD=$MAGIC_CMD 14833 14834# Must we lock files when doing compilation? 14835need_locks=$lt_need_locks 14836 14837# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14838DSYMUTIL=$lt_DSYMUTIL 14839 14840# Tool to change global to local symbols on Mac OS X. 14841NMEDIT=$lt_NMEDIT 14842 14843# Tool to manipulate fat objects and archives on Mac OS X. 14844LIPO=$lt_LIPO 14845 14846# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14847OTOOL=$lt_OTOOL 14848 14849# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14850OTOOL64=$lt_OTOOL64 14851 14852# Old archive suffix (normally "a"). 14853libext=$libext 14854 14855# Shared library suffix (normally ".so"). 14856shrext_cmds=$lt_shrext_cmds 14857 14858# The commands to extract the exported symbol list from a shared archive. 14859extract_expsyms_cmds=$lt_extract_expsyms_cmds 14860 14861# Variables whose values should be saved in libtool wrapper scripts and 14862# restored at link time. 14863variables_saved_for_relink=$lt_variables_saved_for_relink 14864 14865# Do we need the "lib" prefix for modules? 14866need_lib_prefix=$need_lib_prefix 14867 14868# Do we need a version for libraries? 14869need_version=$need_version 14870 14871# Library versioning type. 14872version_type=$version_type 14873 14874# Shared library runtime path variable. 14875runpath_var=$runpath_var 14876 14877# Shared library path variable. 14878shlibpath_var=$shlibpath_var 14879 14880# Is shlibpath searched before the hard-coded library search path? 14881shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14882 14883# Format of library name prefix. 14884libname_spec=$lt_libname_spec 14885 14886# List of archive names. First name is the real one, the rest are links. 14887# The last name is the one that the linker finds with -lNAME 14888library_names_spec=$lt_library_names_spec 14889 14890# The coded name of the library, if different from the real name. 14891soname_spec=$lt_soname_spec 14892 14893# Command to use after installation of a shared archive. 14894postinstall_cmds=$lt_postinstall_cmds 14895 14896# Command to use after uninstallation of a shared archive. 14897postuninstall_cmds=$lt_postuninstall_cmds 14898 14899# Commands used to finish a libtool library installation in a directory. 14900finish_cmds=$lt_finish_cmds 14901 14902# As "finish_cmds", except a single script fragment to be evaled but 14903# not shown. 14904finish_eval=$lt_finish_eval 14905 14906# Whether we should hardcode library paths into libraries. 14907hardcode_into_libs=$hardcode_into_libs 14908 14909# Compile-time system search path for libraries. 14910sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14911 14912# Run-time system search path for libraries. 14913sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14914 14915# Whether dlopen is supported. 14916dlopen_support=$enable_dlopen 14917 14918# Whether dlopen of programs is supported. 14919dlopen_self=$enable_dlopen_self 14920 14921# Whether dlopen of statically linked programs is supported. 14922dlopen_self_static=$enable_dlopen_self_static 14923 14924# Commands to strip libraries. 14925old_striplib=$lt_old_striplib 14926striplib=$lt_striplib 14927 14928 14929# The linker used to build libraries. 14930LD=$lt_LD 14931 14932# Commands used to build an old-style archive. 14933old_archive_cmds=$lt_old_archive_cmds 14934 14935# A language specific compiler. 14936CC=$lt_compiler 14937 14938# Is the compiler the GNU compiler? 14939with_gcc=$GCC 14940 14941# Compiler flag to turn off builtin functions. 14942no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14943 14944# How to pass a linker flag through the compiler. 14945wl=$lt_lt_prog_compiler_wl 14946 14947# Additional compiler flags for building library objects. 14948pic_flag=$lt_lt_prog_compiler_pic 14949 14950# Compiler flag to prevent dynamic linking. 14951link_static_flag=$lt_lt_prog_compiler_static 14952 14953# Does compiler simultaneously support -c and -o options? 14954compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14955 14956# Whether or not to add -lc for building shared libraries. 14957build_libtool_need_lc=$archive_cmds_need_lc 14958 14959# Whether or not to disallow shared libs when runtime libs are static. 14960allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14961 14962# Compiler flag to allow reflexive dlopens. 14963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14964 14965# Compiler flag to generate shared objects directly from archives. 14966whole_archive_flag_spec=$lt_whole_archive_flag_spec 14967 14968# Whether the compiler copes with passing no objects directly. 14969compiler_needs_object=$lt_compiler_needs_object 14970 14971# Create an old-style archive from a shared archive. 14972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14973 14974# Create a temporary old-style archive to link instead of a shared archive. 14975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14976 14977# Commands used to build a shared archive. 14978archive_cmds=$lt_archive_cmds 14979archive_expsym_cmds=$lt_archive_expsym_cmds 14980 14981# Commands used to build a loadable module if different from building 14982# a shared archive. 14983module_cmds=$lt_module_cmds 14984module_expsym_cmds=$lt_module_expsym_cmds 14985 14986# Whether we are building with GNU ld or not. 14987with_gnu_ld=$lt_with_gnu_ld 14988 14989# Flag that allows shared libraries with undefined symbols to be built. 14990allow_undefined_flag=$lt_allow_undefined_flag 14991 14992# Flag that enforces no undefined symbols. 14993no_undefined_flag=$lt_no_undefined_flag 14994 14995# Flag to hardcode \$libdir into a binary during linking. 14996# This must work even if \$libdir does not exist 14997hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14998 14999# If ld is used when linking, flag to hardcode \$libdir into a binary 15000# during linking. This must work even if \$libdir does not exist. 15001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15002 15003# Whether we need a single "-rpath" flag with a separated argument. 15004hardcode_libdir_separator=$lt_hardcode_libdir_separator 15005 15006# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15007# DIR into the resulting binary. 15008hardcode_direct=$hardcode_direct 15009 15010# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15011# DIR into the resulting binary and the resulting library dependency is 15012# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15013# library is relocated. 15014hardcode_direct_absolute=$hardcode_direct_absolute 15015 15016# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15017# into the resulting binary. 15018hardcode_minus_L=$hardcode_minus_L 15019 15020# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15021# into the resulting binary. 15022hardcode_shlibpath_var=$hardcode_shlibpath_var 15023 15024# Set to "yes" if building a shared library automatically hardcodes DIR 15025# into the library and all subsequent libraries and executables linked 15026# against it. 15027hardcode_automatic=$hardcode_automatic 15028 15029# Set to yes if linker adds runtime paths of dependent libraries 15030# to runtime path list. 15031inherit_rpath=$inherit_rpath 15032 15033# Whether libtool must link a program against all its dependency libraries. 15034link_all_deplibs=$link_all_deplibs 15035 15036# Fix the shell variable \$srcfile for the compiler. 15037fix_srcfile_path=$lt_fix_srcfile_path 15038 15039# Set to "yes" if exported symbols are required. 15040always_export_symbols=$always_export_symbols 15041 15042# The commands to list exported symbols. 15043export_symbols_cmds=$lt_export_symbols_cmds 15044 15045# Symbols that should not be listed in the preloaded symbols. 15046exclude_expsyms=$lt_exclude_expsyms 15047 15048# Symbols that must always be exported. 15049include_expsyms=$lt_include_expsyms 15050 15051# Commands necessary for linking programs (against libraries) with templates. 15052prelink_cmds=$lt_prelink_cmds 15053 15054# Specify filename containing input files. 15055file_list_spec=$lt_file_list_spec 15056 15057# How to hardcode a shared library path into an executable. 15058hardcode_action=$hardcode_action 15059 15060# ### END LIBTOOL CONFIG 15061 15062_LT_EOF 15063 15064 case $host_os in 15065 aix3*) 15066 cat <<\_LT_EOF >> "$cfgfile" 15067# AIX sometimes has problems with the GCC collect2 program. For some 15068# reason, if we set the COLLECT_NAMES environment variable, the problems 15069# vanish in a puff of smoke. 15070if test "X${COLLECT_NAMES+set}" != Xset; then 15071 COLLECT_NAMES= 15072 export COLLECT_NAMES 15073fi 15074_LT_EOF 15075 ;; 15076 esac 15077 15078 15079ltmain="$ac_aux_dir/ltmain.sh" 15080 15081 15082 # We use sed instead of cat because bash on DJGPP gets confused if 15083 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15084 # text mode, it properly converts lines to CR/LF. This bash problem 15085 # is reportedly fixed, but why not run on old versions too? 15086 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15087 || (rm -f "$cfgfile"; exit 1) 15088 15089 case $xsi_shell in 15090 yes) 15091 cat << \_LT_EOF >> "$cfgfile" 15092 15093# func_dirname file append nondir_replacement 15094# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15095# otherwise set result to NONDIR_REPLACEMENT. 15096func_dirname () 15097{ 15098 case ${1} in 15099 */*) func_dirname_result="${1%/*}${2}" ;; 15100 * ) func_dirname_result="${3}" ;; 15101 esac 15102} 15103 15104# func_basename file 15105func_basename () 15106{ 15107 func_basename_result="${1##*/}" 15108} 15109 15110# func_dirname_and_basename file append nondir_replacement 15111# perform func_basename and func_dirname in a single function 15112# call: 15113# dirname: Compute the dirname of FILE. If nonempty, 15114# add APPEND to the result, otherwise set result 15115# to NONDIR_REPLACEMENT. 15116# value returned in "$func_dirname_result" 15117# basename: Compute filename of FILE. 15118# value retuned in "$func_basename_result" 15119# Implementation must be kept synchronized with func_dirname 15120# and func_basename. For efficiency, we do not delegate to 15121# those functions but instead duplicate the functionality here. 15122func_dirname_and_basename () 15123{ 15124 case ${1} in 15125 */*) func_dirname_result="${1%/*}${2}" ;; 15126 * ) func_dirname_result="${3}" ;; 15127 esac 15128 func_basename_result="${1##*/}" 15129} 15130 15131# func_stripname prefix suffix name 15132# strip PREFIX and SUFFIX off of NAME. 15133# PREFIX and SUFFIX must not contain globbing or regex special 15134# characters, hashes, percent signs, but SUFFIX may contain a leading 15135# dot (in which case that matches only a dot). 15136func_stripname () 15137{ 15138 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15139 # positional parameters, so assign one to ordinary parameter first. 15140 func_stripname_result=${3} 15141 func_stripname_result=${func_stripname_result#"${1}"} 15142 func_stripname_result=${func_stripname_result%"${2}"} 15143} 15144 15145# func_opt_split 15146func_opt_split () 15147{ 15148 func_opt_split_opt=${1%%=*} 15149 func_opt_split_arg=${1#*=} 15150} 15151 15152# func_lo2o object 15153func_lo2o () 15154{ 15155 case ${1} in 15156 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15157 *) func_lo2o_result=${1} ;; 15158 esac 15159} 15160 15161# func_xform libobj-or-source 15162func_xform () 15163{ 15164 func_xform_result=${1%.*}.lo 15165} 15166 15167# func_arith arithmetic-term... 15168func_arith () 15169{ 15170 func_arith_result=$(( $* )) 15171} 15172 15173# func_len string 15174# STRING may not start with a hyphen. 15175func_len () 15176{ 15177 func_len_result=${#1} 15178} 15179 15180_LT_EOF 15181 ;; 15182 *) # Bourne compatible functions. 15183 cat << \_LT_EOF >> "$cfgfile" 15184 15185# func_dirname file append nondir_replacement 15186# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15187# otherwise set result to NONDIR_REPLACEMENT. 15188func_dirname () 15189{ 15190 # Extract subdirectory from the argument. 15191 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15192 if test "X$func_dirname_result" = "X${1}"; then 15193 func_dirname_result="${3}" 15194 else 15195 func_dirname_result="$func_dirname_result${2}" 15196 fi 15197} 15198 15199# func_basename file 15200func_basename () 15201{ 15202 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15203} 15204 15205 15206# func_stripname prefix suffix name 15207# strip PREFIX and SUFFIX off of NAME. 15208# PREFIX and SUFFIX must not contain globbing or regex special 15209# characters, hashes, percent signs, but SUFFIX may contain a leading 15210# dot (in which case that matches only a dot). 15211# func_strip_suffix prefix name 15212func_stripname () 15213{ 15214 case ${2} in 15215 .*) func_stripname_result=`$ECHO "X${3}" \ 15216 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15217 *) func_stripname_result=`$ECHO "X${3}" \ 15218 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15219 esac 15220} 15221 15222# sed scripts: 15223my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15224my_sed_long_arg='1s/^-[^=]*=//' 15225 15226# func_opt_split 15227func_opt_split () 15228{ 15229 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15230 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15231} 15232 15233# func_lo2o object 15234func_lo2o () 15235{ 15236 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15237} 15238 15239# func_xform libobj-or-source 15240func_xform () 15241{ 15242 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15243} 15244 15245# func_arith arithmetic-term... 15246func_arith () 15247{ 15248 func_arith_result=`expr "$@"` 15249} 15250 15251# func_len string 15252# STRING may not start with a hyphen. 15253func_len () 15254{ 15255 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15256} 15257 15258_LT_EOF 15259esac 15260 15261case $lt_shell_append in 15262 yes) 15263 cat << \_LT_EOF >> "$cfgfile" 15264 15265# func_append var value 15266# Append VALUE to the end of shell variable VAR. 15267func_append () 15268{ 15269 eval "$1+=\$2" 15270} 15271_LT_EOF 15272 ;; 15273 *) 15274 cat << \_LT_EOF >> "$cfgfile" 15275 15276# func_append var value 15277# Append VALUE to the end of shell variable VAR. 15278func_append () 15279{ 15280 eval "$1=\$$1\$2" 15281} 15282 15283_LT_EOF 15284 ;; 15285 esac 15286 15287 15288 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15289 || (rm -f "$cfgfile"; exit 1) 15290 15291 mv -f "$cfgfile" "$ofile" || 15292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15293 chmod +x "$ofile" 15294 15295 ;; 15296 15297 esac 15298done # for ac_tag 15299 15300 15301{ (exit 0); exit 0; } 15302_ACEOF 15303chmod +x $CONFIG_STATUS 15304ac_clean_files=$ac_clean_files_save 15305 15306 15307# configure is writing to config.log, and then calls config.status. 15308# config.status does its own redirection, appending to config.log. 15309# Unfortunately, on DOS this fails, as config.log is still kept open 15310# by configure, so config.status won't be able to write to it; its 15311# output is simply discarded. So we exec the FD to /dev/null, 15312# effectively closing config.log, so it can be properly (re)opened and 15313# appended to by config.status. When coming back to configure, we 15314# need to make the FD available again. 15315if test "$no_create" != yes; then 15316 ac_cs_success=: 15317 ac_config_status_args= 15318 test "$silent" = yes && 15319 ac_config_status_args="$ac_config_status_args --quiet" 15320 exec 5>/dev/null 15321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15322 exec 5>>config.log 15323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15324 # would make configure fail if this is the last instruction. 15325 $ac_cs_success || { (exit 1); exit 1; } 15326fi 15327 15328