1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libltdl 2.2.4. 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.4' 727PACKAGE_STRING='libltdl 2.2.4' 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.4 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.4:";; 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.4 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.4, 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.4' 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.4' 2453macro_revision='1.2976' 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*) 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 4547 4548{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4549echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4550if test "${lt_cv_deplibs_check_method+set}" = set; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552else 4553 lt_cv_file_magic_cmd='$MAGIC_CMD' 4554lt_cv_file_magic_test_file= 4555lt_cv_deplibs_check_method='unknown' 4556# Need to set the preceding variable on all platforms that support 4557# interlibrary dependencies. 4558# 'none' -- dependencies not supported. 4559# `unknown' -- same as none, but documents that we really don't know. 4560# 'pass_all' -- all dependencies passed with no checks. 4561# 'test_compile' -- check by making test program. 4562# 'file_magic [[regex]]' -- check by looking for files in library path 4563# which responds to the $file_magic_cmd with a given extended regex. 4564# If you have `file' or equivalent on your system and you're not sure 4565# whether `pass_all' will *always* work, you probably want this one. 4566 4567case $host_os in 4568aix[4-9]*) 4569 lt_cv_deplibs_check_method=pass_all 4570 ;; 4571 4572beos*) 4573 lt_cv_deplibs_check_method=pass_all 4574 ;; 4575 4576bsdi[45]*) 4577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4578 lt_cv_file_magic_cmd='/usr/bin/file -L' 4579 lt_cv_file_magic_test_file=/shlib/libc.so 4580 ;; 4581 4582cygwin*) 4583 # func_win32_libid is a shell function defined in ltmain.sh 4584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4585 lt_cv_file_magic_cmd='func_win32_libid' 4586 ;; 4587 4588mingw* | pw32*) 4589 # Base MSYS/MinGW do not provide the 'file' command needed by 4590 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4591 # unless we find 'file', for example because we are cross-compiling. 4592 if ( file / ) >/dev/null 2>&1; then 4593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4594 lt_cv_file_magic_cmd='func_win32_libid' 4595 else 4596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4597 lt_cv_file_magic_cmd='$OBJDUMP -f' 4598 fi 4599 ;; 4600 4601darwin* | rhapsody*) 4602 lt_cv_deplibs_check_method=pass_all 4603 ;; 4604 4605freebsd* | dragonfly*) 4606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4607 case $host_cpu in 4608 i*86 ) 4609 # Not sure whether the presence of OpenBSD here was a mistake. 4610 # Let's accept both of them until this is cleared up. 4611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4612 lt_cv_file_magic_cmd=/usr/bin/file 4613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4614 ;; 4615 esac 4616 else 4617 lt_cv_deplibs_check_method=pass_all 4618 fi 4619 ;; 4620 4621gnu*) 4622 lt_cv_deplibs_check_method=pass_all 4623 ;; 4624 4625hpux10.20* | hpux11*) 4626 lt_cv_file_magic_cmd=/usr/bin/file 4627 case $host_cpu in 4628 ia64*) 4629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4630 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4631 ;; 4632 hppa*64*) 4633 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]' 4634 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4635 ;; 4636 *) 4637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4638 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4639 ;; 4640 esac 4641 ;; 4642 4643interix[3-9]*) 4644 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4646 ;; 4647 4648irix5* | irix6* | nonstopux*) 4649 case $LD in 4650 *-32|*"-32 ") libmagic=32-bit;; 4651 *-n32|*"-n32 ") libmagic=N32;; 4652 *-64|*"-64 ") libmagic=64-bit;; 4653 *) libmagic=never-match;; 4654 esac 4655 lt_cv_deplibs_check_method=pass_all 4656 ;; 4657 4658# This must be Linux ELF. 4659linux* | k*bsd*-gnu) 4660 lt_cv_deplibs_check_method=pass_all 4661 ;; 4662 4663netbsd* | netbsdelf*-gnu) 4664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4666 else 4667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4668 fi 4669 ;; 4670 4671newos6*) 4672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4673 lt_cv_file_magic_cmd=/usr/bin/file 4674 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4675 ;; 4676 4677*nto* | *qnx*) 4678 lt_cv_deplibs_check_method=pass_all 4679 ;; 4680 4681openbsd*) 4682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4684 else 4685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4686 fi 4687 ;; 4688 4689osf3* | osf4* | osf5*) 4690 lt_cv_deplibs_check_method=pass_all 4691 ;; 4692 4693rdos*) 4694 lt_cv_deplibs_check_method=pass_all 4695 ;; 4696 4697solaris*) 4698 lt_cv_deplibs_check_method=pass_all 4699 ;; 4700 4701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4702 lt_cv_deplibs_check_method=pass_all 4703 ;; 4704 4705sysv4 | sysv4.3*) 4706 case $host_vendor in 4707 motorola) 4708 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]' 4709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4710 ;; 4711 ncr) 4712 lt_cv_deplibs_check_method=pass_all 4713 ;; 4714 sequent) 4715 lt_cv_file_magic_cmd='/bin/file' 4716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4717 ;; 4718 sni) 4719 lt_cv_file_magic_cmd='/bin/file' 4720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4721 lt_cv_file_magic_test_file=/lib/libc.so 4722 ;; 4723 siemens) 4724 lt_cv_deplibs_check_method=pass_all 4725 ;; 4726 pc) 4727 lt_cv_deplibs_check_method=pass_all 4728 ;; 4729 esac 4730 ;; 4731 4732tpf*) 4733 lt_cv_deplibs_check_method=pass_all 4734 ;; 4735esac 4736 4737fi 4738{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4739echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4740file_magic_cmd=$lt_cv_file_magic_cmd 4741deplibs_check_method=$lt_cv_deplibs_check_method 4742test -z "$deplibs_check_method" && deplibs_check_method=unknown 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755if test -n "$ac_tool_prefix"; then 4756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4757set dummy ${ac_tool_prefix}ar; ac_word=$2 4758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4760if test "${ac_cv_prog_AR+set}" = set; then 4761 echo $ECHO_N "(cached) $ECHO_C" >&6 4762else 4763 if test -n "$AR"; then 4764 ac_cv_prog_AR="$AR" # Let the user override the test. 4765else 4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4767for as_dir in $PATH 4768do 4769 IFS=$as_save_IFS 4770 test -z "$as_dir" && as_dir=. 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4773 ac_cv_prog_AR="${ac_tool_prefix}ar" 4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4775 break 2 4776 fi 4777done 4778done 4779IFS=$as_save_IFS 4780 4781fi 4782fi 4783AR=$ac_cv_prog_AR 4784if test -n "$AR"; then 4785 { echo "$as_me:$LINENO: result: $AR" >&5 4786echo "${ECHO_T}$AR" >&6; } 4787else 4788 { echo "$as_me:$LINENO: result: no" >&5 4789echo "${ECHO_T}no" >&6; } 4790fi 4791 4792 4793fi 4794if test -z "$ac_cv_prog_AR"; then 4795 ac_ct_AR=$AR 4796 # Extract the first word of "ar", so it can be a program name with args. 4797set dummy ar; ac_word=$2 4798{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4800if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4801 echo $ECHO_N "(cached) $ECHO_C" >&6 4802else 4803 if test -n "$ac_ct_AR"; then 4804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4805else 4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807for as_dir in $PATH 4808do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4813 ac_cv_prog_ac_ct_AR="ar" 4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4815 break 2 4816 fi 4817done 4818done 4819IFS=$as_save_IFS 4820 4821fi 4822fi 4823ac_ct_AR=$ac_cv_prog_ac_ct_AR 4824if test -n "$ac_ct_AR"; then 4825 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4826echo "${ECHO_T}$ac_ct_AR" >&6; } 4827else 4828 { echo "$as_me:$LINENO: result: no" >&5 4829echo "${ECHO_T}no" >&6; } 4830fi 4831 4832 if test "x$ac_ct_AR" = x; then 4833 AR="false" 4834 else 4835 case $cross_compiling:$ac_tool_warned in 4836yes:) 4837{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4838whose name does not start with the host triplet. If you think this 4839configuration is useful to you, please write to autoconf@gnu.org." >&5 4840echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4841whose name does not start with the host triplet. If you think this 4842configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4843ac_tool_warned=yes ;; 4844esac 4845 AR=$ac_ct_AR 4846 fi 4847else 4848 AR="$ac_cv_prog_AR" 4849fi 4850 4851test -z "$AR" && AR=ar 4852test -z "$AR_FLAGS" && AR_FLAGS=cru 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864if test -n "$ac_tool_prefix"; then 4865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4866set dummy ${ac_tool_prefix}strip; ac_word=$2 4867{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4869if test "${ac_cv_prog_STRIP+set}" = set; then 4870 echo $ECHO_N "(cached) $ECHO_C" >&6 4871else 4872 if test -n "$STRIP"; then 4873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887done 4888IFS=$as_save_IFS 4889 4890fi 4891fi 4892STRIP=$ac_cv_prog_STRIP 4893if test -n "$STRIP"; then 4894 { echo "$as_me:$LINENO: result: $STRIP" >&5 4895echo "${ECHO_T}$STRIP" >&6; } 4896else 4897 { echo "$as_me:$LINENO: result: no" >&5 4898echo "${ECHO_T}no" >&6; } 4899fi 4900 4901 4902fi 4903if test -z "$ac_cv_prog_STRIP"; then 4904 ac_ct_STRIP=$STRIP 4905 # Extract the first word of "strip", so it can be a program name with args. 4906set dummy strip; ac_word=$2 4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4910 echo $ECHO_N "(cached) $ECHO_C" >&6 4911else 4912 if test -n "$ac_ct_STRIP"; then 4913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4914else 4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4916for as_dir in $PATH 4917do 4918 IFS=$as_save_IFS 4919 test -z "$as_dir" && as_dir=. 4920 for ac_exec_ext in '' $ac_executable_extensions; do 4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4922 ac_cv_prog_ac_ct_STRIP="strip" 4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4924 break 2 4925 fi 4926done 4927done 4928IFS=$as_save_IFS 4929 4930fi 4931fi 4932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4933if test -n "$ac_ct_STRIP"; then 4934 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4935echo "${ECHO_T}$ac_ct_STRIP" >&6; } 4936else 4937 { echo "$as_me:$LINENO: result: no" >&5 4938echo "${ECHO_T}no" >&6; } 4939fi 4940 4941 if test "x$ac_ct_STRIP" = x; then 4942 STRIP=":" 4943 else 4944 case $cross_compiling:$ac_tool_warned in 4945yes:) 4946{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4947whose name does not start with the host triplet. If you think this 4948configuration is useful to you, please write to autoconf@gnu.org." >&5 4949echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4950whose name does not start with the host triplet. If you think this 4951configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4952ac_tool_warned=yes ;; 4953esac 4954 STRIP=$ac_ct_STRIP 4955 fi 4956else 4957 STRIP="$ac_cv_prog_STRIP" 4958fi 4959 4960test -z "$STRIP" && STRIP=: 4961 4962 4963 4964 4965 4966 4967if test -n "$ac_tool_prefix"; then 4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4969set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4970{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4972if test "${ac_cv_prog_RANLIB+set}" = set; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974else 4975 if test -n "$RANLIB"; then 4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4977else 4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4979for as_dir in $PATH 4980do 4981 IFS=$as_save_IFS 4982 test -z "$as_dir" && as_dir=. 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4987 break 2 4988 fi 4989done 4990done 4991IFS=$as_save_IFS 4992 4993fi 4994fi 4995RANLIB=$ac_cv_prog_RANLIB 4996if test -n "$RANLIB"; then 4997 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4998echo "${ECHO_T}$RANLIB" >&6; } 4999else 5000 { echo "$as_me:$LINENO: result: no" >&5 5001echo "${ECHO_T}no" >&6; } 5002fi 5003 5004 5005fi 5006if test -z "$ac_cv_prog_RANLIB"; then 5007 ac_ct_RANLIB=$RANLIB 5008 # Extract the first word of "ranlib", so it can be a program name with args. 5009set dummy ranlib; ac_word=$2 5010{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5012if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 if test -n "$ac_ct_RANLIB"; then 5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5017else 5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5025 ac_cv_prog_ac_ct_RANLIB="ranlib" 5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030done 5031IFS=$as_save_IFS 5032 5033fi 5034fi 5035ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5036if test -n "$ac_ct_RANLIB"; then 5037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5038echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5039else 5040 { echo "$as_me:$LINENO: result: no" >&5 5041echo "${ECHO_T}no" >&6; } 5042fi 5043 5044 if test "x$ac_ct_RANLIB" = x; then 5045 RANLIB=":" 5046 else 5047 case $cross_compiling:$ac_tool_warned in 5048yes:) 5049{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5050whose name does not start with the host triplet. If you think this 5051configuration is useful to you, please write to autoconf@gnu.org." >&5 5052echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5053whose name does not start with the host triplet. If you think this 5054configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5055ac_tool_warned=yes ;; 5056esac 5057 RANLIB=$ac_ct_RANLIB 5058 fi 5059else 5060 RANLIB="$ac_cv_prog_RANLIB" 5061fi 5062 5063test -z "$RANLIB" && RANLIB=: 5064 5065 5066 5067 5068 5069 5070# Determine commands to create old-style static archives. 5071old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5072old_postinstall_cmds='chmod 644 $oldlib' 5073old_postuninstall_cmds= 5074 5075if test -n "$RANLIB"; then 5076 case $host_os in 5077 openbsd*) 5078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5079 ;; 5080 *) 5081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5082 ;; 5083 esac 5084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5085fi 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120# If no C compiler was specified, use CC. 5121LTCC=${LTCC-"$CC"} 5122 5123# If no C compiler flags were specified, use CFLAGS. 5124LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5125 5126# Allow CC to be a program name with arguments. 5127compiler=$CC 5128 5129 5130# Check for command to grab the raw symbol name followed by C symbol from nm. 5131{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5132echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5133if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5134 echo $ECHO_N "(cached) $ECHO_C" >&6 5135else 5136 5137# These are sane defaults that work on at least a few old systems. 5138# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5139 5140# Character class describing NM global symbol codes. 5141symcode='[BCDEGRST]' 5142 5143# Regexp to match symbols that can be accessed directly from C. 5144sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5145 5146# Define system-specific variables. 5147case $host_os in 5148aix*) 5149 symcode='[BCDT]' 5150 ;; 5151cygwin* | mingw* | pw32*) 5152 symcode='[ABCDGISTW]' 5153 ;; 5154hpux*) 5155 if test "$host_cpu" = ia64; then 5156 symcode='[ABCDEGRST]' 5157 fi 5158 ;; 5159irix* | nonstopux*) 5160 symcode='[BCDEGRST]' 5161 ;; 5162osf*) 5163 symcode='[BCDEGQRST]' 5164 ;; 5165solaris*) 5166 symcode='[BDRT]' 5167 ;; 5168sco3.2v5*) 5169 symcode='[DT]' 5170 ;; 5171sysv4.2uw2*) 5172 symcode='[DT]' 5173 ;; 5174sysv5* | sco5v6* | unixware* | OpenUNIX*) 5175 symcode='[ABDT]' 5176 ;; 5177sysv4) 5178 symcode='[DFNSTU]' 5179 ;; 5180esac 5181 5182# If we're using GNU nm, then use its standard symbol codes. 5183case `$NM -V 2>&1` in 5184*GNU* | *'with BFD'*) 5185 symcode='[ABCDGIRSTW]' ;; 5186esac 5187 5188# Transform an extracted symbol line into a proper C declaration. 5189# Some systems (esp. on ia64) link data and code symbols differently, 5190# so use this general approach. 5191lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5192 5193# Transform an extracted symbol line into symbol name and symbol address 5194lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5195lt_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'" 5196 5197# Handle CRLF in mingw tool chain 5198opt_cr= 5199case $build_os in 5200mingw*) 5201 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5202 ;; 5203esac 5204 5205# Try without a prefix underscore, then with it. 5206for ac_symprfx in "" "_"; do 5207 5208 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5209 symxfrm="\\1 $ac_symprfx\\2 \\2" 5210 5211 # Write the raw and C identifiers. 5212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5213 # Fake it for dumpbin and say T for any non-static function 5214 # and D for any global variable. 5215 # Also find C++ and __fastcall symbols from MSVC++, 5216 # which start with @ or ?. 5217 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5218" {last_section=section; section=\$ 3};"\ 5219" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5220" \$ 0!~/External *\|/{next};"\ 5221" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5222" {if(hide[section]) next};"\ 5223" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5224" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5225" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5226" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5227" ' prfx=^$ac_symprfx" 5228 else 5229 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5230 fi 5231 5232 # Check to see that the pipe works correctly. 5233 pipe_works=no 5234 5235 rm -f conftest* 5236 cat > conftest.$ac_ext <<_LT_EOF 5237#ifdef __cplusplus 5238extern "C" { 5239#endif 5240char nm_test_var; 5241void nm_test_func(void); 5242void nm_test_func(void){} 5243#ifdef __cplusplus 5244} 5245#endif 5246int main(){nm_test_var='a';nm_test_func();return(0);} 5247_LT_EOF 5248 5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5250 (eval $ac_compile) 2>&5 5251 ac_status=$? 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); }; then 5254 # Now try to grab the symbols. 5255 nlist=conftest.nm 5256 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5257 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5258 ac_status=$? 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); } && test -s "$nlist"; then 5261 # Try sorting and uniquifying the output. 5262 if sort "$nlist" | uniq > "$nlist"T; then 5263 mv -f "$nlist"T "$nlist" 5264 else 5265 rm -f "$nlist"T 5266 fi 5267 5268 # Make sure that we snagged all the symbols we need. 5269 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5270 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5271 cat <<_LT_EOF > conftest.$ac_ext 5272#ifdef __cplusplus 5273extern "C" { 5274#endif 5275 5276_LT_EOF 5277 # Now generate the symbol file. 5278 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5279 5280 cat <<_LT_EOF >> conftest.$ac_ext 5281 5282/* The mapping between symbol names and symbols. */ 5283const struct { 5284 const char *name; 5285 void *address; 5286} 5287lt__PROGRAM__LTX_preloaded_symbols[] = 5288{ 5289 { "@PROGRAM@", (void *) 0 }, 5290_LT_EOF 5291 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5292 cat <<\_LT_EOF >> conftest.$ac_ext 5293 {0, (void *) 0} 5294}; 5295 5296/* This works around a problem in FreeBSD linker */ 5297#ifdef FREEBSD_WORKAROUND 5298static const void *lt_preloaded_setup() { 5299 return lt__PROGRAM__LTX_preloaded_symbols; 5300} 5301#endif 5302 5303#ifdef __cplusplus 5304} 5305#endif 5306_LT_EOF 5307 # Now try linking the two files. 5308 mv conftest.$ac_objext conftstm.$ac_objext 5309 lt_save_LIBS="$LIBS" 5310 lt_save_CFLAGS="$CFLAGS" 5311 LIBS="conftstm.$ac_objext" 5312 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5314 (eval $ac_link) 2>&5 5315 ac_status=$? 5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5317 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5318 pipe_works=yes 5319 fi 5320 LIBS="$lt_save_LIBS" 5321 CFLAGS="$lt_save_CFLAGS" 5322 else 5323 echo "cannot find nm_test_func in $nlist" >&5 5324 fi 5325 else 5326 echo "cannot find nm_test_var in $nlist" >&5 5327 fi 5328 else 5329 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5330 fi 5331 else 5332 echo "$progname: failed program was:" >&5 5333 cat conftest.$ac_ext >&5 5334 fi 5335 rm -rf conftest* conftst* 5336 5337 # Do not use the global_symbol_pipe unless it works. 5338 if test "$pipe_works" = yes; then 5339 break 5340 else 5341 lt_cv_sys_global_symbol_pipe= 5342 fi 5343done 5344 5345fi 5346 5347if test -z "$lt_cv_sys_global_symbol_pipe"; then 5348 lt_cv_sys_global_symbol_to_cdecl= 5349fi 5350if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5351 { echo "$as_me:$LINENO: result: failed" >&5 5352echo "${ECHO_T}failed" >&6; } 5353else 5354 { echo "$as_me:$LINENO: result: ok" >&5 5355echo "${ECHO_T}ok" >&6; } 5356fi 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380# Check whether --enable-libtool-lock was given. 5381if test "${enable_libtool_lock+set}" = set; then 5382 enableval=$enable_libtool_lock; 5383fi 5384 5385test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5386 5387# Some flags need to be propagated to the compiler or linker for good 5388# libtool support. 5389case $host in 5390ia64-*-hpux*) 5391 # Find out which ABI we are using. 5392 echo 'int i;' > conftest.$ac_ext 5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5394 (eval $ac_compile) 2>&5 5395 ac_status=$? 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5397 (exit $ac_status); }; then 5398 case `/usr/bin/file conftest.$ac_objext` in 5399 *ELF-32*) 5400 HPUX_IA64_MODE="32" 5401 ;; 5402 *ELF-64*) 5403 HPUX_IA64_MODE="64" 5404 ;; 5405 esac 5406 fi 5407 rm -rf conftest* 5408 ;; 5409*-*-irix6*) 5410 # Find out which ABI we are using. 5411 echo '#line 5411 "configure"' > conftest.$ac_ext 5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5413 (eval $ac_compile) 2>&5 5414 ac_status=$? 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); }; then 5417 if test "$lt_cv_prog_gnu_ld" = yes; then 5418 case `/usr/bin/file conftest.$ac_objext` in 5419 *32-bit*) 5420 LD="${LD-ld} -melf32bsmip" 5421 ;; 5422 *N32*) 5423 LD="${LD-ld} -melf32bmipn32" 5424 ;; 5425 *64-bit*) 5426 LD="${LD-ld} -melf64bmip" 5427 ;; 5428 esac 5429 else 5430 case `/usr/bin/file conftest.$ac_objext` in 5431 *32-bit*) 5432 LD="${LD-ld} -32" 5433 ;; 5434 *N32*) 5435 LD="${LD-ld} -n32" 5436 ;; 5437 *64-bit*) 5438 LD="${LD-ld} -64" 5439 ;; 5440 esac 5441 fi 5442 fi 5443 rm -rf conftest* 5444 ;; 5445 5446x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5447s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5448 # Find out which ABI we are using. 5449 echo 'int i;' > conftest.$ac_ext 5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5451 (eval $ac_compile) 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; then 5455 case `/usr/bin/file conftest.o` in 5456 *32-bit*) 5457 case $host in 5458 x86_64-*kfreebsd*-gnu) 5459 LD="${LD-ld} -m elf_i386_fbsd" 5460 ;; 5461 x86_64-*linux*) 5462 LD="${LD-ld} -m elf_i386" 5463 ;; 5464 ppc64-*linux*|powerpc64-*linux*) 5465 LD="${LD-ld} -m elf32ppclinux" 5466 ;; 5467 s390x-*linux*) 5468 LD="${LD-ld} -m elf_s390" 5469 ;; 5470 sparc64-*linux*) 5471 LD="${LD-ld} -m elf32_sparc" 5472 ;; 5473 esac 5474 ;; 5475 *64-bit*) 5476 case $host in 5477 x86_64-*kfreebsd*-gnu) 5478 LD="${LD-ld} -m elf_x86_64_fbsd" 5479 ;; 5480 x86_64-*linux*) 5481 LD="${LD-ld} -m elf_x86_64" 5482 ;; 5483 ppc*-*linux*|powerpc*-*linux*) 5484 LD="${LD-ld} -m elf64ppc" 5485 ;; 5486 s390*-*linux*|s390*-*tpf*) 5487 LD="${LD-ld} -m elf64_s390" 5488 ;; 5489 sparc*-*linux*) 5490 LD="${LD-ld} -m elf64_sparc" 5491 ;; 5492 esac 5493 ;; 5494 esac 5495 fi 5496 rm -rf conftest* 5497 ;; 5498 5499*-*-sco3.2v5*) 5500 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5501 SAVE_CFLAGS="$CFLAGS" 5502 CFLAGS="$CFLAGS -belf" 5503 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5504echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5505if test "${lt_cv_cc_needs_belf+set}" = set; then 5506 echo $ECHO_N "(cached) $ECHO_C" >&6 5507else 5508 ac_ext=c 5509ac_cpp='$CPP $CPPFLAGS' 5510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5512ac_compiler_gnu=$ac_cv_c_compiler_gnu 5513 5514 cat >conftest.$ac_ext <<_ACEOF 5515/* confdefs.h. */ 5516_ACEOF 5517cat confdefs.h >>conftest.$ac_ext 5518cat >>conftest.$ac_ext <<_ACEOF 5519/* end confdefs.h. */ 5520 5521int 5522main () 5523{ 5524 5525 ; 5526 return 0; 5527} 5528_ACEOF 5529rm -f conftest.$ac_objext conftest$ac_exeext 5530if { (ac_try="$ac_link" 5531case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5536 (eval "$ac_link") 2>conftest.er1 5537 ac_status=$? 5538 grep -v '^ *+' conftest.er1 >conftest.err 5539 rm -f conftest.er1 5540 cat conftest.err >&5 5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5542 (exit $ac_status); } && { 5543 test -z "$ac_c_werror_flag" || 5544 test ! -s conftest.err 5545 } && test -s conftest$ac_exeext && 5546 $as_test_x conftest$ac_exeext; then 5547 lt_cv_cc_needs_belf=yes 5548else 5549 echo "$as_me: failed program was:" >&5 5550sed 's/^/| /' conftest.$ac_ext >&5 5551 5552 lt_cv_cc_needs_belf=no 5553fi 5554 5555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5556 conftest$ac_exeext conftest.$ac_ext 5557 ac_ext=c 5558ac_cpp='$CPP $CPPFLAGS' 5559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5561ac_compiler_gnu=$ac_cv_c_compiler_gnu 5562 5563fi 5564{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5565echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5566 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5568 CFLAGS="$SAVE_CFLAGS" 5569 fi 5570 ;; 5571sparc*-*solaris*) 5572 # Find out which ABI we are using. 5573 echo 'int i;' > conftest.$ac_ext 5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5575 (eval $ac_compile) 2>&5 5576 ac_status=$? 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); }; then 5579 case `/usr/bin/file conftest.o` in 5580 *64-bit*) 5581 case $lt_cv_prog_gnu_ld in 5582 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5583 *) 5584 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5585 LD="${LD-ld} -64" 5586 fi 5587 ;; 5588 esac 5589 ;; 5590 esac 5591 fi 5592 rm -rf conftest* 5593 ;; 5594esac 5595 5596need_locks="$enable_libtool_lock" 5597 5598 5599 case $host_os in 5600 rhapsody* | darwin*) 5601 if test -n "$ac_tool_prefix"; then 5602 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5603set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5604{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5606if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5607 echo $ECHO_N "(cached) $ECHO_C" >&6 5608else 5609 if test -n "$DSYMUTIL"; then 5610 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5611else 5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5613for as_dir in $PATH 5614do 5615 IFS=$as_save_IFS 5616 test -z "$as_dir" && as_dir=. 5617 for ac_exec_ext in '' $ac_executable_extensions; do 5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5619 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5621 break 2 5622 fi 5623done 5624done 5625IFS=$as_save_IFS 5626 5627fi 5628fi 5629DSYMUTIL=$ac_cv_prog_DSYMUTIL 5630if test -n "$DSYMUTIL"; then 5631 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5632echo "${ECHO_T}$DSYMUTIL" >&6; } 5633else 5634 { echo "$as_me:$LINENO: result: no" >&5 5635echo "${ECHO_T}no" >&6; } 5636fi 5637 5638 5639fi 5640if test -z "$ac_cv_prog_DSYMUTIL"; then 5641 ac_ct_DSYMUTIL=$DSYMUTIL 5642 # Extract the first word of "dsymutil", so it can be a program name with args. 5643set dummy dsymutil; ac_word=$2 5644{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5646if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5647 echo $ECHO_N "(cached) $ECHO_C" >&6 5648else 5649 if test -n "$ac_ct_DSYMUTIL"; then 5650 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5651else 5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5653for as_dir in $PATH 5654do 5655 IFS=$as_save_IFS 5656 test -z "$as_dir" && as_dir=. 5657 for ac_exec_ext in '' $ac_executable_extensions; do 5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5659 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5661 break 2 5662 fi 5663done 5664done 5665IFS=$as_save_IFS 5666 5667fi 5668fi 5669ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5670if test -n "$ac_ct_DSYMUTIL"; then 5671 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5672echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 5673else 5674 { echo "$as_me:$LINENO: result: no" >&5 5675echo "${ECHO_T}no" >&6; } 5676fi 5677 5678 if test "x$ac_ct_DSYMUTIL" = x; then 5679 DSYMUTIL=":" 5680 else 5681 case $cross_compiling:$ac_tool_warned in 5682yes:) 5683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5684whose name does not start with the host triplet. If you think this 5685configuration is useful to you, please write to autoconf@gnu.org." >&5 5686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5687whose name does not start with the host triplet. If you think this 5688configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5689ac_tool_warned=yes ;; 5690esac 5691 DSYMUTIL=$ac_ct_DSYMUTIL 5692 fi 5693else 5694 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5695fi 5696 5697 if test -n "$ac_tool_prefix"; then 5698 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5699set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5700{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5702if test "${ac_cv_prog_NMEDIT+set}" = set; then 5703 echo $ECHO_N "(cached) $ECHO_C" >&6 5704else 5705 if test -n "$NMEDIT"; then 5706 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5707else 5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5709for as_dir in $PATH 5710do 5711 IFS=$as_save_IFS 5712 test -z "$as_dir" && as_dir=. 5713 for ac_exec_ext in '' $ac_executable_extensions; do 5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5715 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5717 break 2 5718 fi 5719done 5720done 5721IFS=$as_save_IFS 5722 5723fi 5724fi 5725NMEDIT=$ac_cv_prog_NMEDIT 5726if test -n "$NMEDIT"; then 5727 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 5728echo "${ECHO_T}$NMEDIT" >&6; } 5729else 5730 { echo "$as_me:$LINENO: result: no" >&5 5731echo "${ECHO_T}no" >&6; } 5732fi 5733 5734 5735fi 5736if test -z "$ac_cv_prog_NMEDIT"; then 5737 ac_ct_NMEDIT=$NMEDIT 5738 # Extract the first word of "nmedit", so it can be a program name with args. 5739set dummy nmedit; ac_word=$2 5740{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5742if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5743 echo $ECHO_N "(cached) $ECHO_C" >&6 5744else 5745 if test -n "$ac_ct_NMEDIT"; then 5746 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5747else 5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5749for as_dir in $PATH 5750do 5751 IFS=$as_save_IFS 5752 test -z "$as_dir" && as_dir=. 5753 for ac_exec_ext in '' $ac_executable_extensions; do 5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5755 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5757 break 2 5758 fi 5759done 5760done 5761IFS=$as_save_IFS 5762 5763fi 5764fi 5765ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5766if test -n "$ac_ct_NMEDIT"; then 5767 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5768echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 5769else 5770 { echo "$as_me:$LINENO: result: no" >&5 5771echo "${ECHO_T}no" >&6; } 5772fi 5773 5774 if test "x$ac_ct_NMEDIT" = x; then 5775 NMEDIT=":" 5776 else 5777 case $cross_compiling:$ac_tool_warned in 5778yes:) 5779{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5780whose name does not start with the host triplet. If you think this 5781configuration is useful to you, please write to autoconf@gnu.org." >&5 5782echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5783whose name does not start with the host triplet. If you think this 5784configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5785ac_tool_warned=yes ;; 5786esac 5787 NMEDIT=$ac_ct_NMEDIT 5788 fi 5789else 5790 NMEDIT="$ac_cv_prog_NMEDIT" 5791fi 5792 5793 if test -n "$ac_tool_prefix"; then 5794 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5795set dummy ${ac_tool_prefix}lipo; ac_word=$2 5796{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5798if test "${ac_cv_prog_LIPO+set}" = set; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800else 5801 if test -n "$LIPO"; then 5802 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5803else 5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805for as_dir in $PATH 5806do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5811 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815done 5816done 5817IFS=$as_save_IFS 5818 5819fi 5820fi 5821LIPO=$ac_cv_prog_LIPO 5822if test -n "$LIPO"; then 5823 { echo "$as_me:$LINENO: result: $LIPO" >&5 5824echo "${ECHO_T}$LIPO" >&6; } 5825else 5826 { echo "$as_me:$LINENO: result: no" >&5 5827echo "${ECHO_T}no" >&6; } 5828fi 5829 5830 5831fi 5832if test -z "$ac_cv_prog_LIPO"; then 5833 ac_ct_LIPO=$LIPO 5834 # Extract the first word of "lipo", so it can be a program name with args. 5835set dummy lipo; ac_word=$2 5836{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5838if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5839 echo $ECHO_N "(cached) $ECHO_C" >&6 5840else 5841 if test -n "$ac_ct_LIPO"; then 5842 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5843else 5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5845for as_dir in $PATH 5846do 5847 IFS=$as_save_IFS 5848 test -z "$as_dir" && as_dir=. 5849 for ac_exec_ext in '' $ac_executable_extensions; do 5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5851 ac_cv_prog_ac_ct_LIPO="lipo" 5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5853 break 2 5854 fi 5855done 5856done 5857IFS=$as_save_IFS 5858 5859fi 5860fi 5861ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5862if test -n "$ac_ct_LIPO"; then 5863 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5864echo "${ECHO_T}$ac_ct_LIPO" >&6; } 5865else 5866 { echo "$as_me:$LINENO: result: no" >&5 5867echo "${ECHO_T}no" >&6; } 5868fi 5869 5870 if test "x$ac_ct_LIPO" = x; then 5871 LIPO=":" 5872 else 5873 case $cross_compiling:$ac_tool_warned in 5874yes:) 5875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5876whose name does not start with the host triplet. If you think this 5877configuration is useful to you, please write to autoconf@gnu.org." >&5 5878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5879whose name does not start with the host triplet. If you think this 5880configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5881ac_tool_warned=yes ;; 5882esac 5883 LIPO=$ac_ct_LIPO 5884 fi 5885else 5886 LIPO="$ac_cv_prog_LIPO" 5887fi 5888 5889 if test -n "$ac_tool_prefix"; then 5890 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5891set dummy ${ac_tool_prefix}otool; ac_word=$2 5892{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5894if test "${ac_cv_prog_OTOOL+set}" = set; then 5895 echo $ECHO_N "(cached) $ECHO_C" >&6 5896else 5897 if test -n "$OTOOL"; then 5898 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5907 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912done 5913IFS=$as_save_IFS 5914 5915fi 5916fi 5917OTOOL=$ac_cv_prog_OTOOL 5918if test -n "$OTOOL"; then 5919 { echo "$as_me:$LINENO: result: $OTOOL" >&5 5920echo "${ECHO_T}$OTOOL" >&6; } 5921else 5922 { echo "$as_me:$LINENO: result: no" >&5 5923echo "${ECHO_T}no" >&6; } 5924fi 5925 5926 5927fi 5928if test -z "$ac_cv_prog_OTOOL"; then 5929 ac_ct_OTOOL=$OTOOL 5930 # Extract the first word of "otool", so it can be a program name with args. 5931set dummy otool; ac_word=$2 5932{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5934if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 5935 echo $ECHO_N "(cached) $ECHO_C" >&6 5936else 5937 if test -n "$ac_ct_OTOOL"; then 5938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5939else 5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941for as_dir in $PATH 5942do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5947 ac_cv_prog_ac_ct_OTOOL="otool" 5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5949 break 2 5950 fi 5951done 5952done 5953IFS=$as_save_IFS 5954 5955fi 5956fi 5957ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5958if test -n "$ac_ct_OTOOL"; then 5959 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 5960echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 5961else 5962 { echo "$as_me:$LINENO: result: no" >&5 5963echo "${ECHO_T}no" >&6; } 5964fi 5965 5966 if test "x$ac_ct_OTOOL" = x; then 5967 OTOOL=":" 5968 else 5969 case $cross_compiling:$ac_tool_warned in 5970yes:) 5971{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5972whose name does not start with the host triplet. If you think this 5973configuration is useful to you, please write to autoconf@gnu.org." >&5 5974echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5975whose name does not start with the host triplet. If you think this 5976configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5977ac_tool_warned=yes ;; 5978esac 5979 OTOOL=$ac_ct_OTOOL 5980 fi 5981else 5982 OTOOL="$ac_cv_prog_OTOOL" 5983fi 5984 5985 if test -n "$ac_tool_prefix"; then 5986 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5987set dummy ${ac_tool_prefix}otool64; ac_word=$2 5988{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5990if test "${ac_cv_prog_OTOOL64+set}" = set; then 5991 echo $ECHO_N "(cached) $ECHO_C" >&6 5992else 5993 if test -n "$OTOOL64"; then 5994 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5995else 5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5997for as_dir in $PATH 5998do 5999 IFS=$as_save_IFS 6000 test -z "$as_dir" && as_dir=. 6001 for ac_exec_ext in '' $ac_executable_extensions; do 6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6003 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6005 break 2 6006 fi 6007done 6008done 6009IFS=$as_save_IFS 6010 6011fi 6012fi 6013OTOOL64=$ac_cv_prog_OTOOL64 6014if test -n "$OTOOL64"; then 6015 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 6016echo "${ECHO_T}$OTOOL64" >&6; } 6017else 6018 { echo "$as_me:$LINENO: result: no" >&5 6019echo "${ECHO_T}no" >&6; } 6020fi 6021 6022 6023fi 6024if test -z "$ac_cv_prog_OTOOL64"; then 6025 ac_ct_OTOOL64=$OTOOL64 6026 # Extract the first word of "otool64", so it can be a program name with args. 6027set dummy otool64; ac_word=$2 6028{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6030if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 if test -n "$ac_ct_OTOOL64"; then 6034 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6043 ac_cv_prog_ac_ct_OTOOL64="otool64" 6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048done 6049IFS=$as_save_IFS 6050 6051fi 6052fi 6053ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6054if test -n "$ac_ct_OTOOL64"; then 6055 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6056echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 6057else 6058 { echo "$as_me:$LINENO: result: no" >&5 6059echo "${ECHO_T}no" >&6; } 6060fi 6061 6062 if test "x$ac_ct_OTOOL64" = x; then 6063 OTOOL64=":" 6064 else 6065 case $cross_compiling:$ac_tool_warned in 6066yes:) 6067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6068whose name does not start with the host triplet. If you think this 6069configuration is useful to you, please write to autoconf@gnu.org." >&5 6070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6071whose name does not start with the host triplet. If you think this 6072configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6073ac_tool_warned=yes ;; 6074esac 6075 OTOOL64=$ac_ct_OTOOL64 6076 fi 6077else 6078 OTOOL64="$ac_cv_prog_OTOOL64" 6079fi 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6108echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6109if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111else 6112 lt_cv_apple_cc_single_mod=no 6113 if test -z "${LT_MULTI_MODULE}"; then 6114 # By default we will add the -single_module flag. You can override 6115 # by either setting the environment variable LT_MULTI_MODULE 6116 # non-empty at configure time, or by adding -multi_module to the 6117 # link flags. 6118 rm -rf libconftest.dylib* 6119 echo "int foo(void){return 1;}" > conftest.c 6120 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6121-dynamiclib -Wl,-single_module conftest.c" >&5 6122 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6123 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6124 _lt_result=$? 6125 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6126 lt_cv_apple_cc_single_mod=yes 6127 else 6128 cat conftest.err >&5 6129 fi 6130 rm -rf libconftest.dylib* 6131 rm -f conftest.* 6132 fi 6133fi 6134{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6135echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6136 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6137echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6138if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 lt_cv_ld_exported_symbols_list=no 6142 save_LDFLAGS=$LDFLAGS 6143 echo "_main" > conftest.sym 6144 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6145 cat >conftest.$ac_ext <<_ACEOF 6146/* confdefs.h. */ 6147_ACEOF 6148cat confdefs.h >>conftest.$ac_ext 6149cat >>conftest.$ac_ext <<_ACEOF 6150/* end confdefs.h. */ 6151 6152int 6153main () 6154{ 6155 6156 ; 6157 return 0; 6158} 6159_ACEOF 6160rm -f conftest.$ac_objext conftest$ac_exeext 6161if { (ac_try="$ac_link" 6162case "(($ac_try" in 6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6164 *) ac_try_echo=$ac_try;; 6165esac 6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6167 (eval "$ac_link") 2>conftest.er1 6168 ac_status=$? 6169 grep -v '^ *+' conftest.er1 >conftest.err 6170 rm -f conftest.er1 6171 cat conftest.err >&5 6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6173 (exit $ac_status); } && { 6174 test -z "$ac_c_werror_flag" || 6175 test ! -s conftest.err 6176 } && test -s conftest$ac_exeext && 6177 $as_test_x conftest$ac_exeext; then 6178 lt_cv_ld_exported_symbols_list=yes 6179else 6180 echo "$as_me: failed program was:" >&5 6181sed 's/^/| /' conftest.$ac_ext >&5 6182 6183 lt_cv_ld_exported_symbols_list=no 6184fi 6185 6186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6187 conftest$ac_exeext conftest.$ac_ext 6188 LDFLAGS="$save_LDFLAGS" 6189 6190fi 6191{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6192echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6193 case $host_os in 6194 rhapsody* | darwin1.[012]) 6195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6196 darwin1.*) 6197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6198 darwin*) # darwin 5.x on 6199 # if running on 10.5 or later, the deployment target defaults 6200 # to the OS version, if on x86, and 10.4, the deployment 6201 # target defaults to 10.4. Don't you love it? 6202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6203 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6205 10.[012]*) 6206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6207 10.*) 6208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6209 esac 6210 ;; 6211 esac 6212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6213 _lt_dar_single_mod='$single_module' 6214 fi 6215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6217 else 6218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6219 fi 6220 if test "$DSYMUTIL" != ":"; then 6221 _lt_dsymutil='~$DSYMUTIL $lib || :' 6222 else 6223 _lt_dsymutil= 6224 fi 6225 ;; 6226 esac 6227 6228ac_ext=c 6229ac_cpp='$CPP $CPPFLAGS' 6230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6232ac_compiler_gnu=$ac_cv_c_compiler_gnu 6233{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6234echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6235# On Suns, sometimes $CPP names a directory. 6236if test -n "$CPP" && test -d "$CPP"; then 6237 CPP= 6238fi 6239if test -z "$CPP"; then 6240 if test "${ac_cv_prog_CPP+set}" = set; then 6241 echo $ECHO_N "(cached) $ECHO_C" >&6 6242else 6243 # Double quotes because CPP needs to be expanded 6244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6245 do 6246 ac_preproc_ok=false 6247for ac_c_preproc_warn_flag in '' yes 6248do 6249 # Use a header file that comes with gcc, so configuring glibc 6250 # with a fresh cross-compiler works. 6251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6252 # <limits.h> exists even on freestanding compilers. 6253 # On the NeXT, cc -E runs the code through the compiler's parser, 6254 # not just through cpp. "Syntax error" is here to catch this case. 6255 cat >conftest.$ac_ext <<_ACEOF 6256/* confdefs.h. */ 6257_ACEOF 6258cat confdefs.h >>conftest.$ac_ext 6259cat >>conftest.$ac_ext <<_ACEOF 6260/* end confdefs.h. */ 6261#ifdef __STDC__ 6262# include <limits.h> 6263#else 6264# include <assert.h> 6265#endif 6266 Syntax error 6267_ACEOF 6268if { (ac_try="$ac_cpp conftest.$ac_ext" 6269case "(($ac_try" in 6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6271 *) ac_try_echo=$ac_try;; 6272esac 6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6275 ac_status=$? 6276 grep -v '^ *+' conftest.er1 >conftest.err 6277 rm -f conftest.er1 6278 cat conftest.err >&5 6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 (exit $ac_status); } >/dev/null && { 6281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6282 test ! -s conftest.err 6283 }; then 6284 : 6285else 6286 echo "$as_me: failed program was:" >&5 6287sed 's/^/| /' conftest.$ac_ext >&5 6288 6289 # Broken: fails on valid input. 6290continue 6291fi 6292 6293rm -f conftest.err conftest.$ac_ext 6294 6295 # OK, works on sane cases. Now check whether nonexistent headers 6296 # can be detected and how. 6297 cat >conftest.$ac_ext <<_ACEOF 6298/* confdefs.h. */ 6299_ACEOF 6300cat confdefs.h >>conftest.$ac_ext 6301cat >>conftest.$ac_ext <<_ACEOF 6302/* end confdefs.h. */ 6303#include <ac_nonexistent.h> 6304_ACEOF 6305if { (ac_try="$ac_cpp conftest.$ac_ext" 6306case "(($ac_try" in 6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6308 *) ac_try_echo=$ac_try;; 6309esac 6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6312 ac_status=$? 6313 grep -v '^ *+' conftest.er1 >conftest.err 6314 rm -f conftest.er1 6315 cat conftest.err >&5 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); } >/dev/null && { 6318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6319 test ! -s conftest.err 6320 }; then 6321 # Broken: success on invalid input. 6322continue 6323else 6324 echo "$as_me: failed program was:" >&5 6325sed 's/^/| /' conftest.$ac_ext >&5 6326 6327 # Passes both tests. 6328ac_preproc_ok=: 6329break 6330fi 6331 6332rm -f conftest.err conftest.$ac_ext 6333 6334done 6335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6336rm -f conftest.err conftest.$ac_ext 6337if $ac_preproc_ok; then 6338 break 6339fi 6340 6341 done 6342 ac_cv_prog_CPP=$CPP 6343 6344fi 6345 CPP=$ac_cv_prog_CPP 6346else 6347 ac_cv_prog_CPP=$CPP 6348fi 6349{ echo "$as_me:$LINENO: result: $CPP" >&5 6350echo "${ECHO_T}$CPP" >&6; } 6351ac_preproc_ok=false 6352for ac_c_preproc_warn_flag in '' yes 6353do 6354 # Use a header file that comes with gcc, so configuring glibc 6355 # with a fresh cross-compiler works. 6356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6357 # <limits.h> exists even on freestanding compilers. 6358 # On the NeXT, cc -E runs the code through the compiler's parser, 6359 # not just through cpp. "Syntax error" is here to catch this case. 6360 cat >conftest.$ac_ext <<_ACEOF 6361/* confdefs.h. */ 6362_ACEOF 6363cat confdefs.h >>conftest.$ac_ext 6364cat >>conftest.$ac_ext <<_ACEOF 6365/* end confdefs.h. */ 6366#ifdef __STDC__ 6367# include <limits.h> 6368#else 6369# include <assert.h> 6370#endif 6371 Syntax error 6372_ACEOF 6373if { (ac_try="$ac_cpp conftest.$ac_ext" 6374case "(($ac_try" in 6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6376 *) ac_try_echo=$ac_try;; 6377esac 6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6380 ac_status=$? 6381 grep -v '^ *+' conftest.er1 >conftest.err 6382 rm -f conftest.er1 6383 cat conftest.err >&5 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); } >/dev/null && { 6386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6387 test ! -s conftest.err 6388 }; then 6389 : 6390else 6391 echo "$as_me: failed program was:" >&5 6392sed 's/^/| /' conftest.$ac_ext >&5 6393 6394 # Broken: fails on valid input. 6395continue 6396fi 6397 6398rm -f conftest.err conftest.$ac_ext 6399 6400 # OK, works on sane cases. Now check whether nonexistent headers 6401 # can be detected and how. 6402 cat >conftest.$ac_ext <<_ACEOF 6403/* confdefs.h. */ 6404_ACEOF 6405cat confdefs.h >>conftest.$ac_ext 6406cat >>conftest.$ac_ext <<_ACEOF 6407/* end confdefs.h. */ 6408#include <ac_nonexistent.h> 6409_ACEOF 6410if { (ac_try="$ac_cpp conftest.$ac_ext" 6411case "(($ac_try" in 6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6413 *) ac_try_echo=$ac_try;; 6414esac 6415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6417 ac_status=$? 6418 grep -v '^ *+' conftest.er1 >conftest.err 6419 rm -f conftest.er1 6420 cat conftest.err >&5 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); } >/dev/null && { 6423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6424 test ! -s conftest.err 6425 }; then 6426 # Broken: success on invalid input. 6427continue 6428else 6429 echo "$as_me: failed program was:" >&5 6430sed 's/^/| /' conftest.$ac_ext >&5 6431 6432 # Passes both tests. 6433ac_preproc_ok=: 6434break 6435fi 6436 6437rm -f conftest.err conftest.$ac_ext 6438 6439done 6440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6441rm -f conftest.err conftest.$ac_ext 6442if $ac_preproc_ok; then 6443 : 6444else 6445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6446See \`config.log' for more details." >&5 6447echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6448See \`config.log' for more details." >&2;} 6449 { (exit 1); exit 1; }; } 6450fi 6451 6452ac_ext=c 6453ac_cpp='$CPP $CPPFLAGS' 6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6456ac_compiler_gnu=$ac_cv_c_compiler_gnu 6457 6458 6459{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6460echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6461if test "${ac_cv_header_stdc+set}" = set; then 6462 echo $ECHO_N "(cached) $ECHO_C" >&6 6463else 6464 cat >conftest.$ac_ext <<_ACEOF 6465/* confdefs.h. */ 6466_ACEOF 6467cat confdefs.h >>conftest.$ac_ext 6468cat >>conftest.$ac_ext <<_ACEOF 6469/* end confdefs.h. */ 6470#include <stdlib.h> 6471#include <stdarg.h> 6472#include <string.h> 6473#include <float.h> 6474 6475int 6476main () 6477{ 6478 6479 ; 6480 return 0; 6481} 6482_ACEOF 6483rm -f conftest.$ac_objext 6484if { (ac_try="$ac_compile" 6485case "(($ac_try" in 6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6487 *) ac_try_echo=$ac_try;; 6488esac 6489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6490 (eval "$ac_compile") 2>conftest.er1 6491 ac_status=$? 6492 grep -v '^ *+' conftest.er1 >conftest.err 6493 rm -f conftest.er1 6494 cat conftest.err >&5 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); } && { 6497 test -z "$ac_c_werror_flag" || 6498 test ! -s conftest.err 6499 } && test -s conftest.$ac_objext; then 6500 ac_cv_header_stdc=yes 6501else 6502 echo "$as_me: failed program was:" >&5 6503sed 's/^/| /' conftest.$ac_ext >&5 6504 6505 ac_cv_header_stdc=no 6506fi 6507 6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6509 6510if test $ac_cv_header_stdc = yes; then 6511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6512 cat >conftest.$ac_ext <<_ACEOF 6513/* confdefs.h. */ 6514_ACEOF 6515cat confdefs.h >>conftest.$ac_ext 6516cat >>conftest.$ac_ext <<_ACEOF 6517/* end confdefs.h. */ 6518#include <string.h> 6519 6520_ACEOF 6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6522 $EGREP "memchr" >/dev/null 2>&1; then 6523 : 6524else 6525 ac_cv_header_stdc=no 6526fi 6527rm -f conftest* 6528 6529fi 6530 6531if test $ac_cv_header_stdc = yes; then 6532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6533 cat >conftest.$ac_ext <<_ACEOF 6534/* confdefs.h. */ 6535_ACEOF 6536cat confdefs.h >>conftest.$ac_ext 6537cat >>conftest.$ac_ext <<_ACEOF 6538/* end confdefs.h. */ 6539#include <stdlib.h> 6540 6541_ACEOF 6542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6543 $EGREP "free" >/dev/null 2>&1; then 6544 : 6545else 6546 ac_cv_header_stdc=no 6547fi 6548rm -f conftest* 6549 6550fi 6551 6552if test $ac_cv_header_stdc = yes; then 6553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6554 if test "$cross_compiling" = yes; then 6555 : 6556else 6557 cat >conftest.$ac_ext <<_ACEOF 6558/* confdefs.h. */ 6559_ACEOF 6560cat confdefs.h >>conftest.$ac_ext 6561cat >>conftest.$ac_ext <<_ACEOF 6562/* end confdefs.h. */ 6563#include <ctype.h> 6564#include <stdlib.h> 6565#if ((' ' & 0x0FF) == 0x020) 6566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6568#else 6569# define ISLOWER(c) \ 6570 (('a' <= (c) && (c) <= 'i') \ 6571 || ('j' <= (c) && (c) <= 'r') \ 6572 || ('s' <= (c) && (c) <= 'z')) 6573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6574#endif 6575 6576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6577int 6578main () 6579{ 6580 int i; 6581 for (i = 0; i < 256; i++) 6582 if (XOR (islower (i), ISLOWER (i)) 6583 || toupper (i) != TOUPPER (i)) 6584 return 2; 6585 return 0; 6586} 6587_ACEOF 6588rm -f conftest$ac_exeext 6589if { (ac_try="$ac_link" 6590case "(($ac_try" in 6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6592 *) ac_try_echo=$ac_try;; 6593esac 6594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6595 (eval "$ac_link") 2>&5 6596 ac_status=$? 6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6599 { (case "(($ac_try" in 6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6601 *) ac_try_echo=$ac_try;; 6602esac 6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6604 (eval "$ac_try") 2>&5 6605 ac_status=$? 6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6607 (exit $ac_status); }; }; then 6608 : 6609else 6610 echo "$as_me: program exited with status $ac_status" >&5 6611echo "$as_me: failed program was:" >&5 6612sed 's/^/| /' conftest.$ac_ext >&5 6613 6614( exit $ac_status ) 6615ac_cv_header_stdc=no 6616fi 6617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6618fi 6619 6620 6621fi 6622fi 6623{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6624echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6625if test $ac_cv_header_stdc = yes; then 6626 6627cat >>confdefs.h <<\_ACEOF 6628#define STDC_HEADERS 1 6629_ACEOF 6630 6631fi 6632 6633# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6644 inttypes.h stdint.h unistd.h 6645do 6646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6647{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6650 echo $ECHO_N "(cached) $ECHO_C" >&6 6651else 6652 cat >conftest.$ac_ext <<_ACEOF 6653/* confdefs.h. */ 6654_ACEOF 6655cat confdefs.h >>conftest.$ac_ext 6656cat >>conftest.$ac_ext <<_ACEOF 6657/* end confdefs.h. */ 6658$ac_includes_default 6659 6660#include <$ac_header> 6661_ACEOF 6662rm -f conftest.$ac_objext 6663if { (ac_try="$ac_compile" 6664case "(($ac_try" in 6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6666 *) ac_try_echo=$ac_try;; 6667esac 6668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6669 (eval "$ac_compile") 2>conftest.er1 6670 ac_status=$? 6671 grep -v '^ *+' conftest.er1 >conftest.err 6672 rm -f conftest.er1 6673 cat conftest.err >&5 6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6675 (exit $ac_status); } && { 6676 test -z "$ac_c_werror_flag" || 6677 test ! -s conftest.err 6678 } && test -s conftest.$ac_objext; then 6679 eval "$as_ac_Header=yes" 6680else 6681 echo "$as_me: failed program was:" >&5 6682sed 's/^/| /' conftest.$ac_ext >&5 6683 6684 eval "$as_ac_Header=no" 6685fi 6686 6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6688fi 6689ac_res=`eval echo '${'$as_ac_Header'}'` 6690 { echo "$as_me:$LINENO: result: $ac_res" >&5 6691echo "${ECHO_T}$ac_res" >&6; } 6692if test `eval echo '${'$as_ac_Header'}'` = yes; then 6693 cat >>confdefs.h <<_ACEOF 6694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6695_ACEOF 6696 6697fi 6698 6699done 6700 6701 6702 6703for ac_header in dlfcn.h 6704do 6705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6706{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6709 echo $ECHO_N "(cached) $ECHO_C" >&6 6710else 6711 cat >conftest.$ac_ext <<_ACEOF 6712/* confdefs.h. */ 6713_ACEOF 6714cat confdefs.h >>conftest.$ac_ext 6715cat >>conftest.$ac_ext <<_ACEOF 6716/* end confdefs.h. */ 6717$ac_includes_default 6718 6719#include <$ac_header> 6720_ACEOF 6721rm -f conftest.$ac_objext 6722if { (ac_try="$ac_compile" 6723case "(($ac_try" in 6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6725 *) ac_try_echo=$ac_try;; 6726esac 6727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6728 (eval "$ac_compile") 2>conftest.er1 6729 ac_status=$? 6730 grep -v '^ *+' conftest.er1 >conftest.err 6731 rm -f conftest.er1 6732 cat conftest.err >&5 6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); } && { 6735 test -z "$ac_c_werror_flag" || 6736 test ! -s conftest.err 6737 } && test -s conftest.$ac_objext; then 6738 eval "$as_ac_Header=yes" 6739else 6740 echo "$as_me: failed program was:" >&5 6741sed 's/^/| /' conftest.$ac_ext >&5 6742 6743 eval "$as_ac_Header=no" 6744fi 6745 6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6747fi 6748ac_res=`eval echo '${'$as_ac_Header'}'` 6749 { echo "$as_me:$LINENO: result: $ac_res" >&5 6750echo "${ECHO_T}$ac_res" >&6; } 6751if test `eval echo '${'$as_ac_Header'}'` = yes; then 6752 cat >>confdefs.h <<_ACEOF 6753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6754_ACEOF 6755 6756fi 6757 6758done 6759 6760 6761 6762# Set options 6763enable_dlopen=yes 6764enable_win32_dll=yes 6765 6766case $host in 6767*-*-cygwin* | *-*-mingw* | *-*-pw32*) 6768 if test -n "$ac_tool_prefix"; then 6769 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6770set dummy ${ac_tool_prefix}as; ac_word=$2 6771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6773if test "${ac_cv_prog_AS+set}" = set; then 6774 echo $ECHO_N "(cached) $ECHO_C" >&6 6775else 6776 if test -n "$AS"; then 6777 ac_cv_prog_AS="$AS" # Let the user override the test. 6778else 6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6780for as_dir in $PATH 6781do 6782 IFS=$as_save_IFS 6783 test -z "$as_dir" && as_dir=. 6784 for ac_exec_ext in '' $ac_executable_extensions; do 6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6786 ac_cv_prog_AS="${ac_tool_prefix}as" 6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6788 break 2 6789 fi 6790done 6791done 6792IFS=$as_save_IFS 6793 6794fi 6795fi 6796AS=$ac_cv_prog_AS 6797if test -n "$AS"; then 6798 { echo "$as_me:$LINENO: result: $AS" >&5 6799echo "${ECHO_T}$AS" >&6; } 6800else 6801 { echo "$as_me:$LINENO: result: no" >&5 6802echo "${ECHO_T}no" >&6; } 6803fi 6804 6805 6806fi 6807if test -z "$ac_cv_prog_AS"; then 6808 ac_ct_AS=$AS 6809 # Extract the first word of "as", so it can be a program name with args. 6810set dummy as; ac_word=$2 6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6813if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 6814 echo $ECHO_N "(cached) $ECHO_C" >&6 6815else 6816 if test -n "$ac_ct_AS"; then 6817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6818else 6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6820for as_dir in $PATH 6821do 6822 IFS=$as_save_IFS 6823 test -z "$as_dir" && as_dir=. 6824 for ac_exec_ext in '' $ac_executable_extensions; do 6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6826 ac_cv_prog_ac_ct_AS="as" 6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6828 break 2 6829 fi 6830done 6831done 6832IFS=$as_save_IFS 6833 6834fi 6835fi 6836ac_ct_AS=$ac_cv_prog_ac_ct_AS 6837if test -n "$ac_ct_AS"; then 6838 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 6839echo "${ECHO_T}$ac_ct_AS" >&6; } 6840else 6841 { echo "$as_me:$LINENO: result: no" >&5 6842echo "${ECHO_T}no" >&6; } 6843fi 6844 6845 if test "x$ac_ct_AS" = x; then 6846 AS="false" 6847 else 6848 case $cross_compiling:$ac_tool_warned in 6849yes:) 6850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6851whose name does not start with the host triplet. If you think this 6852configuration is useful to you, please write to autoconf@gnu.org." >&5 6853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6854whose name does not start with the host triplet. If you think this 6855configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6856ac_tool_warned=yes ;; 6857esac 6858 AS=$ac_ct_AS 6859 fi 6860else 6861 AS="$ac_cv_prog_AS" 6862fi 6863 6864 if test -n "$ac_tool_prefix"; then 6865 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6866set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6869if test "${ac_cv_prog_DLLTOOL+set}" = set; then 6870 echo $ECHO_N "(cached) $ECHO_C" >&6 6871else 6872 if test -n "$DLLTOOL"; then 6873 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6882 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892DLLTOOL=$ac_cv_prog_DLLTOOL 6893if test -n "$DLLTOOL"; then 6894 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 6895echo "${ECHO_T}$DLLTOOL" >&6; } 6896else 6897 { echo "$as_me:$LINENO: result: no" >&5 6898echo "${ECHO_T}no" >&6; } 6899fi 6900 6901 6902fi 6903if test -z "$ac_cv_prog_DLLTOOL"; then 6904 ac_ct_DLLTOOL=$DLLTOOL 6905 # Extract the first word of "dlltool", so it can be a program name with args. 6906set dummy dlltool; ac_word=$2 6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6909if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 6910 echo $ECHO_N "(cached) $ECHO_C" >&6 6911else 6912 if test -n "$ac_ct_DLLTOOL"; then 6913 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6922 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6933if test -n "$ac_ct_DLLTOOL"; then 6934 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 6935echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 6936else 6937 { echo "$as_me:$LINENO: result: no" >&5 6938echo "${ECHO_T}no" >&6; } 6939fi 6940 6941 if test "x$ac_ct_DLLTOOL" = x; then 6942 DLLTOOL="false" 6943 else 6944 case $cross_compiling:$ac_tool_warned in 6945yes:) 6946{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6947whose name does not start with the host triplet. If you think this 6948configuration is useful to you, please write to autoconf@gnu.org." >&5 6949echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6950whose name does not start with the host triplet. If you think this 6951configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6952ac_tool_warned=yes ;; 6953esac 6954 DLLTOOL=$ac_ct_DLLTOOL 6955 fi 6956else 6957 DLLTOOL="$ac_cv_prog_DLLTOOL" 6958fi 6959 6960 if test -n "$ac_tool_prefix"; then 6961 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6962set dummy ${ac_tool_prefix}objdump; ac_word=$2 6963{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6965if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6966 echo $ECHO_N "(cached) $ECHO_C" >&6 6967else 6968 if test -n "$OBJDUMP"; then 6969 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6970else 6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6972for as_dir in $PATH 6973do 6974 IFS=$as_save_IFS 6975 test -z "$as_dir" && as_dir=. 6976 for ac_exec_ext in '' $ac_executable_extensions; do 6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6978 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6980 break 2 6981 fi 6982done 6983done 6984IFS=$as_save_IFS 6985 6986fi 6987fi 6988OBJDUMP=$ac_cv_prog_OBJDUMP 6989if test -n "$OBJDUMP"; then 6990 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6991echo "${ECHO_T}$OBJDUMP" >&6; } 6992else 6993 { echo "$as_me:$LINENO: result: no" >&5 6994echo "${ECHO_T}no" >&6; } 6995fi 6996 6997 6998fi 6999if test -z "$ac_cv_prog_OBJDUMP"; then 7000 ac_ct_OBJDUMP=$OBJDUMP 7001 # Extract the first word of "objdump", so it can be a program name with args. 7002set dummy objdump; ac_word=$2 7003{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7005if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 7006 echo $ECHO_N "(cached) $ECHO_C" >&6 7007else 7008 if test -n "$ac_ct_OBJDUMP"; then 7009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7010else 7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7012for as_dir in $PATH 7013do 7014 IFS=$as_save_IFS 7015 test -z "$as_dir" && as_dir=. 7016 for ac_exec_ext in '' $ac_executable_extensions; do 7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7018 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7020 break 2 7021 fi 7022done 7023done 7024IFS=$as_save_IFS 7025 7026fi 7027fi 7028ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7029if test -n "$ac_ct_OBJDUMP"; then 7030 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 7031echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 7032else 7033 { echo "$as_me:$LINENO: result: no" >&5 7034echo "${ECHO_T}no" >&6; } 7035fi 7036 7037 if test "x$ac_ct_OBJDUMP" = x; then 7038 OBJDUMP="false" 7039 else 7040 case $cross_compiling:$ac_tool_warned in 7041yes:) 7042{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7043whose name does not start with the host triplet. If you think this 7044configuration is useful to you, please write to autoconf@gnu.org." >&5 7045echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7046whose name does not start with the host triplet. If you think this 7047configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7048ac_tool_warned=yes ;; 7049esac 7050 OBJDUMP=$ac_ct_OBJDUMP 7051 fi 7052else 7053 OBJDUMP="$ac_cv_prog_OBJDUMP" 7054fi 7055 7056 ;; 7057esac 7058 7059test -z "$AS" && AS=as 7060 7061 7062 7063 7064 7065test -z "$DLLTOOL" && DLLTOOL=dlltool 7066 7067 7068 7069 7070 7071test -z "$OBJDUMP" && OBJDUMP=objdump 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 # Check whether --enable-shared was given. 7082if test "${enable_shared+set}" = set; then 7083 enableval=$enable_shared; p=${PACKAGE-default} 7084 case $enableval in 7085 yes) enable_shared=yes ;; 7086 no) enable_shared=no ;; 7087 *) 7088 enable_shared=no 7089 # Look at the argument we got. We use all the common list separators. 7090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7091 for pkg in $enableval; do 7092 IFS="$lt_save_ifs" 7093 if test "X$pkg" = "X$p"; then 7094 enable_shared=yes 7095 fi 7096 done 7097 IFS="$lt_save_ifs" 7098 ;; 7099 esac 7100else 7101 enable_shared=yes 7102fi 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 # Check whether --enable-static was given. 7113if test "${enable_static+set}" = set; then 7114 enableval=$enable_static; p=${PACKAGE-default} 7115 case $enableval in 7116 yes) enable_static=yes ;; 7117 no) enable_static=no ;; 7118 *) 7119 enable_static=no 7120 # Look at the argument we got. We use all the common list separators. 7121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7122 for pkg in $enableval; do 7123 IFS="$lt_save_ifs" 7124 if test "X$pkg" = "X$p"; then 7125 enable_static=yes 7126 fi 7127 done 7128 IFS="$lt_save_ifs" 7129 ;; 7130 esac 7131else 7132 enable_static=yes 7133fi 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144# Check whether --with-pic was given. 7145if test "${with_pic+set}" = set; then 7146 withval=$with_pic; pic_mode="$withval" 7147else 7148 pic_mode=default 7149fi 7150 7151 7152test -z "$pic_mode" && pic_mode=default 7153 7154 7155 7156 7157 7158 7159 7160 # Check whether --enable-fast-install was given. 7161if test "${enable_fast_install+set}" = set; then 7162 enableval=$enable_fast_install; p=${PACKAGE-default} 7163 case $enableval in 7164 yes) enable_fast_install=yes ;; 7165 no) enable_fast_install=no ;; 7166 *) 7167 enable_fast_install=no 7168 # Look at the argument we got. We use all the common list separators. 7169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7170 for pkg in $enableval; do 7171 IFS="$lt_save_ifs" 7172 if test "X$pkg" = "X$p"; then 7173 enable_fast_install=yes 7174 fi 7175 done 7176 IFS="$lt_save_ifs" 7177 ;; 7178 esac 7179else 7180 enable_fast_install=yes 7181fi 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193# This can be used to rebuild libtool when needed 7194LIBTOOL_DEPS="$ltmain" 7195 7196# Always use our own libtool. 7197LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223test -z "$LN_S" && LN_S="ln -s" 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238if test -n "${ZSH_VERSION+set}" ; then 7239 setopt NO_GLOB_SUBST 7240fi 7241 7242{ echo "$as_me:$LINENO: checking for objdir" >&5 7243echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7244if test "${lt_cv_objdir+set}" = set; then 7245 echo $ECHO_N "(cached) $ECHO_C" >&6 7246else 7247 rm -f .libs 2>/dev/null 7248mkdir .libs 2>/dev/null 7249if test -d .libs; then 7250 lt_cv_objdir=.libs 7251else 7252 # MS-DOS does not allow filenames that begin with a dot. 7253 lt_cv_objdir=_libs 7254fi 7255rmdir .libs 2>/dev/null 7256fi 7257{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7258echo "${ECHO_T}$lt_cv_objdir" >&6; } 7259objdir=$lt_cv_objdir 7260 7261 7262 7263 7264 7265cat >>confdefs.h <<_ACEOF 7266#define LT_OBJDIR "$lt_cv_objdir/" 7267_ACEOF 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285case $host_os in 7286aix3*) 7287 # AIX sometimes has problems with the GCC collect2 program. For some 7288 # reason, if we set the COLLECT_NAMES environment variable, the problems 7289 # vanish in a puff of smoke. 7290 if test "X${COLLECT_NAMES+set}" != Xset; then 7291 COLLECT_NAMES= 7292 export COLLECT_NAMES 7293 fi 7294 ;; 7295esac 7296 7297# Sed substitution that helps us do robust quoting. It backslashifies 7298# metacharacters that are still active within double-quoted strings. 7299sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7300 7301# Same as above, but do not quote variable references. 7302double_quote_subst='s/\(["`\\]\)/\\\1/g' 7303 7304# Sed substitution to delay expansion of an escaped shell variable in a 7305# double_quote_subst'ed string. 7306delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7307 7308# Sed substitution to delay expansion of an escaped single quote. 7309delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7310 7311# Sed substitution to avoid accidental globbing in evaled expressions 7312no_glob_subst='s/\*/\\\*/g' 7313 7314# Global variables: 7315ofile=libtool 7316can_build_shared=yes 7317 7318# All known linkers require a `.a' archive for static linking (except MSVC, 7319# which needs '.lib'). 7320libext=a 7321 7322with_gnu_ld="$lt_cv_prog_gnu_ld" 7323 7324old_CC="$CC" 7325old_CFLAGS="$CFLAGS" 7326 7327# Set sane defaults for various variables 7328test -z "$CC" && CC=cc 7329test -z "$LTCC" && LTCC=$CC 7330test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7331test -z "$LD" && LD=ld 7332test -z "$ac_objext" && ac_objext=o 7333 7334for cc_temp in $compiler""; do 7335 case $cc_temp in 7336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7338 \-*) ;; 7339 *) break;; 7340 esac 7341done 7342cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7343 7344 7345# Only perform the check for file, if the check method requires it 7346test -z "$MAGIC_CMD" && MAGIC_CMD=file 7347case $deplibs_check_method in 7348file_magic*) 7349 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7350 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7351echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7352if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354else 7355 case $MAGIC_CMD in 7356[\\/*] | ?:[\\/]*) 7357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7358 ;; 7359*) 7360 lt_save_MAGIC_CMD="$MAGIC_CMD" 7361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7363 for ac_dir in $ac_dummy; do 7364 IFS="$lt_save_ifs" 7365 test -z "$ac_dir" && ac_dir=. 7366 if test -f $ac_dir/${ac_tool_prefix}file; then 7367 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7368 if test -n "$file_magic_test_file"; then 7369 case $deplibs_check_method in 7370 "file_magic "*) 7371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7374 $EGREP "$file_magic_regex" > /dev/null; then 7375 : 7376 else 7377 cat <<_LT_EOF 1>&2 7378 7379*** Warning: the command libtool uses to detect shared libraries, 7380*** $file_magic_cmd, produces output that libtool cannot recognize. 7381*** The result is that libtool may fail to recognize shared libraries 7382*** as such. This will affect the creation of libtool libraries that 7383*** depend on shared libraries, but programs linked with such libtool 7384*** libraries will work regardless of this problem. Nevertheless, you 7385*** may want to report the problem to your system manager and/or to 7386*** bug-libtool@gnu.org 7387 7388_LT_EOF 7389 fi ;; 7390 esac 7391 fi 7392 break 7393 fi 7394 done 7395 IFS="$lt_save_ifs" 7396 MAGIC_CMD="$lt_save_MAGIC_CMD" 7397 ;; 7398esac 7399fi 7400 7401MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7402if test -n "$MAGIC_CMD"; then 7403 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7404echo "${ECHO_T}$MAGIC_CMD" >&6; } 7405else 7406 { echo "$as_me:$LINENO: result: no" >&5 7407echo "${ECHO_T}no" >&6; } 7408fi 7409 7410 7411 7412 7413 7414if test -z "$lt_cv_path_MAGIC_CMD"; then 7415 if test -n "$ac_tool_prefix"; then 7416 { echo "$as_me:$LINENO: checking for file" >&5 7417echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7418if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7419 echo $ECHO_N "(cached) $ECHO_C" >&6 7420else 7421 case $MAGIC_CMD in 7422[\\/*] | ?:[\\/]*) 7423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7424 ;; 7425*) 7426 lt_save_MAGIC_CMD="$MAGIC_CMD" 7427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7429 for ac_dir in $ac_dummy; do 7430 IFS="$lt_save_ifs" 7431 test -z "$ac_dir" && ac_dir=. 7432 if test -f $ac_dir/file; then 7433 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7434 if test -n "$file_magic_test_file"; then 7435 case $deplibs_check_method in 7436 "file_magic "*) 7437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7440 $EGREP "$file_magic_regex" > /dev/null; then 7441 : 7442 else 7443 cat <<_LT_EOF 1>&2 7444 7445*** Warning: the command libtool uses to detect shared libraries, 7446*** $file_magic_cmd, produces output that libtool cannot recognize. 7447*** The result is that libtool may fail to recognize shared libraries 7448*** as such. This will affect the creation of libtool libraries that 7449*** depend on shared libraries, but programs linked with such libtool 7450*** libraries will work regardless of this problem. Nevertheless, you 7451*** may want to report the problem to your system manager and/or to 7452*** bug-libtool@gnu.org 7453 7454_LT_EOF 7455 fi ;; 7456 esac 7457 fi 7458 break 7459 fi 7460 done 7461 IFS="$lt_save_ifs" 7462 MAGIC_CMD="$lt_save_MAGIC_CMD" 7463 ;; 7464esac 7465fi 7466 7467MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7468if test -n "$MAGIC_CMD"; then 7469 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7470echo "${ECHO_T}$MAGIC_CMD" >&6; } 7471else 7472 { echo "$as_me:$LINENO: result: no" >&5 7473echo "${ECHO_T}no" >&6; } 7474fi 7475 7476 7477 else 7478 MAGIC_CMD=: 7479 fi 7480fi 7481 7482 fi 7483 ;; 7484esac 7485 7486# Use C for the default configuration in the libtool script 7487 7488lt_save_CC="$CC" 7489ac_ext=c 7490ac_cpp='$CPP $CPPFLAGS' 7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7493ac_compiler_gnu=$ac_cv_c_compiler_gnu 7494 7495 7496# Source file extension for C test sources. 7497ac_ext=c 7498 7499# Object file extension for compiled C test sources. 7500objext=o 7501objext=$objext 7502 7503# Code to be used in simple compile tests 7504lt_simple_compile_test_code="int some_variable = 0;" 7505 7506# Code to be used in simple link tests 7507lt_simple_link_test_code='int main(){return(0);}' 7508 7509 7510 7511 7512 7513 7514 7515# If no C compiler was specified, use CC. 7516LTCC=${LTCC-"$CC"} 7517 7518# If no C compiler flags were specified, use CFLAGS. 7519LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7520 7521# Allow CC to be a program name with arguments. 7522compiler=$CC 7523 7524# Save the default compiler, since it gets overwritten when the other 7525# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7526compiler_DEFAULT=$CC 7527 7528# save warnings/boilerplate of simple test code 7529ac_outfile=conftest.$ac_objext 7530echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7532_lt_compiler_boilerplate=`cat conftest.err` 7533$RM conftest* 7534 7535ac_outfile=conftest.$ac_objext 7536echo "$lt_simple_link_test_code" >conftest.$ac_ext 7537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7538_lt_linker_boilerplate=`cat conftest.err` 7539$RM -r conftest* 7540 7541 7542## CAVEAT EMPTOR: 7543## There is no encapsulation within the following macros, do not change 7544## the running order or otherwise move them around unless you know exactly 7545## what you are doing... 7546if test -n "$compiler"; then 7547 7548lt_prog_compiler_no_builtin_flag= 7549 7550if test "$GCC" = yes; then 7551 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7552 7553 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7554echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7555if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7556 echo $ECHO_N "(cached) $ECHO_C" >&6 7557else 7558 lt_cv_prog_compiler_rtti_exceptions=no 7559 ac_outfile=conftest.$ac_objext 7560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7561 lt_compiler_flag="-fno-rtti -fno-exceptions" 7562 # Insert the option either (1) after the last *FLAGS variable, or 7563 # (2) before a word containing "conftest.", or (3) at the end. 7564 # Note that $ac_compile itself does not contain backslashes and begins 7565 # with a dollar sign (not a hyphen), so the echo should work correctly. 7566 # The option is referenced via a variable to avoid confusing sed. 7567 lt_compile=`echo "$ac_compile" | $SED \ 7568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7570 -e 's:$: $lt_compiler_flag:'` 7571 (eval echo "\"\$as_me:7571: $lt_compile\"" >&5) 7572 (eval "$lt_compile" 2>conftest.err) 7573 ac_status=$? 7574 cat conftest.err >&5 7575 echo "$as_me:7575: \$? = $ac_status" >&5 7576 if (exit $ac_status) && test -s "$ac_outfile"; then 7577 # The compiler can only warn and ignore the option if not recognized 7578 # So say no if there are warnings other than the usual output. 7579 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7582 lt_cv_prog_compiler_rtti_exceptions=yes 7583 fi 7584 fi 7585 $RM conftest* 7586 7587fi 7588{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7589echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7590 7591if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7593else 7594 : 7595fi 7596 7597fi 7598 7599 7600 7601 7602 7603 7604 lt_prog_compiler_wl= 7605lt_prog_compiler_pic= 7606lt_prog_compiler_static= 7607 7608{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7609echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7610 7611 if test "$GCC" = yes; then 7612 lt_prog_compiler_wl='-Wl,' 7613 lt_prog_compiler_static='-static' 7614 7615 case $host_os in 7616 aix*) 7617 # All AIX code is PIC. 7618 if test "$host_cpu" = ia64; then 7619 # AIX 5 now supports IA64 processor 7620 lt_prog_compiler_static='-Bstatic' 7621 fi 7622 ;; 7623 7624 amigaos*) 7625 case $host_cpu in 7626 powerpc) 7627 # see comment about AmigaOS4 .so support 7628 lt_prog_compiler_pic='-fPIC' 7629 ;; 7630 m68k) 7631 # FIXME: we need at least 68020 code to build shared libraries, but 7632 # adding the `-m68020' flag to GCC prevents building anything better, 7633 # like `-m68040'. 7634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7635 ;; 7636 esac 7637 ;; 7638 7639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7640 # PIC is the default for these OSes. 7641 ;; 7642 7643 mingw* | cygwin* | pw32* | os2*) 7644 # This hack is so that the source file can tell whether it is being 7645 # built for inclusion in a dll (and should export symbols for example). 7646 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7647 # (--disable-auto-import) libraries 7648 lt_prog_compiler_pic='-DDLL_EXPORT' 7649 ;; 7650 7651 darwin* | rhapsody*) 7652 # PIC is the default on this platform 7653 # Common symbols not allowed in MH_DYLIB files 7654 lt_prog_compiler_pic='-fno-common' 7655 ;; 7656 7657 hpux*) 7658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7659 # not for PA HP-UX. 7660 case $host_cpu in 7661 hppa*64*|ia64*) 7662 # +Z the default 7663 ;; 7664 *) 7665 lt_prog_compiler_pic='-fPIC' 7666 ;; 7667 esac 7668 ;; 7669 7670 interix[3-9]*) 7671 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7672 # Instead, we relocate shared libraries at runtime. 7673 ;; 7674 7675 msdosdjgpp*) 7676 # Just because we use GCC doesn't mean we suddenly get shared libraries 7677 # on systems that don't support them. 7678 lt_prog_compiler_can_build_shared=no 7679 enable_shared=no 7680 ;; 7681 7682 *nto* | *qnx*) 7683 # QNX uses GNU C++, but need to define -shared option too, otherwise 7684 # it will coredump. 7685 lt_prog_compiler_pic='-fPIC -shared' 7686 ;; 7687 7688 sysv4*MP*) 7689 if test -d /usr/nec; then 7690 lt_prog_compiler_pic=-Kconform_pic 7691 fi 7692 ;; 7693 7694 *) 7695 lt_prog_compiler_pic='-fPIC' 7696 ;; 7697 esac 7698 else 7699 # PORTME Check for flag to pass linker flags through the system compiler. 7700 case $host_os in 7701 aix*) 7702 lt_prog_compiler_wl='-Wl,' 7703 if test "$host_cpu" = ia64; then 7704 # AIX 5 now supports IA64 processor 7705 lt_prog_compiler_static='-Bstatic' 7706 else 7707 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7708 fi 7709 ;; 7710 7711 mingw* | cygwin* | pw32* | os2*) 7712 # This hack is so that the source file can tell whether it is being 7713 # built for inclusion in a dll (and should export symbols for example). 7714 lt_prog_compiler_pic='-DDLL_EXPORT' 7715 ;; 7716 7717 hpux9* | hpux10* | hpux11*) 7718 lt_prog_compiler_wl='-Wl,' 7719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7720 # not for PA HP-UX. 7721 case $host_cpu in 7722 hppa*64*|ia64*) 7723 # +Z the default 7724 ;; 7725 *) 7726 lt_prog_compiler_pic='+Z' 7727 ;; 7728 esac 7729 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7730 lt_prog_compiler_static='${wl}-a ${wl}archive' 7731 ;; 7732 7733 irix5* | irix6* | nonstopux*) 7734 lt_prog_compiler_wl='-Wl,' 7735 # PIC (with -KPIC) is the default. 7736 lt_prog_compiler_static='-non_shared' 7737 ;; 7738 7739 linux* | k*bsd*-gnu) 7740 case $cc_basename in 7741 icc* | ecc* | ifort*) 7742 lt_prog_compiler_wl='-Wl,' 7743 lt_prog_compiler_pic='-KPIC' 7744 lt_prog_compiler_static='-static' 7745 ;; 7746 pgcc* | pgf77* | pgf90* | pgf95*) 7747 # Portland Group compilers (*not* the Pentium gcc compiler, 7748 # which looks to be a dead project) 7749 lt_prog_compiler_wl='-Wl,' 7750 lt_prog_compiler_pic='-fpic' 7751 lt_prog_compiler_static='-Bstatic' 7752 ;; 7753 ccc*) 7754 lt_prog_compiler_wl='-Wl,' 7755 # All Alpha code is PIC. 7756 lt_prog_compiler_static='-non_shared' 7757 ;; 7758 xl*) 7759 # IBM XL C 8.0/Fortran 10.1 on PPC 7760 lt_prog_compiler_wl='-Wl,' 7761 lt_prog_compiler_pic='-qpic' 7762 lt_prog_compiler_static='-qstaticlink' 7763 ;; 7764 *) 7765 case `$CC -V 2>&1 | sed 5q` in 7766 *Sun\ C*) 7767 # Sun C 5.9 7768 lt_prog_compiler_pic='-KPIC' 7769 lt_prog_compiler_static='-Bstatic' 7770 lt_prog_compiler_wl='-Wl,' 7771 ;; 7772 *Sun\ F*) 7773 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7774 lt_prog_compiler_pic='-KPIC' 7775 lt_prog_compiler_static='-Bstatic' 7776 lt_prog_compiler_wl='' 7777 ;; 7778 esac 7779 ;; 7780 esac 7781 ;; 7782 7783 newsos6) 7784 lt_prog_compiler_pic='-KPIC' 7785 lt_prog_compiler_static='-Bstatic' 7786 ;; 7787 7788 *nto* | *qnx*) 7789 # QNX uses GNU C++, but need to define -shared option too, otherwise 7790 # it will coredump. 7791 lt_prog_compiler_pic='-fPIC -shared' 7792 ;; 7793 7794 osf3* | osf4* | osf5*) 7795 lt_prog_compiler_wl='-Wl,' 7796 # All OSF/1 code is PIC. 7797 lt_prog_compiler_static='-non_shared' 7798 ;; 7799 7800 rdos*) 7801 lt_prog_compiler_static='-non_shared' 7802 ;; 7803 7804 solaris*) 7805 lt_prog_compiler_pic='-KPIC' 7806 lt_prog_compiler_static='-Bstatic' 7807 case $cc_basename in 7808 f77* | f90* | f95*) 7809 lt_prog_compiler_wl='-Qoption ld ';; 7810 *) 7811 lt_prog_compiler_wl='-Wl,';; 7812 esac 7813 ;; 7814 7815 sunos4*) 7816 lt_prog_compiler_wl='-Qoption ld ' 7817 lt_prog_compiler_pic='-PIC' 7818 lt_prog_compiler_static='-Bstatic' 7819 ;; 7820 7821 sysv4 | sysv4.2uw2* | sysv4.3*) 7822 lt_prog_compiler_wl='-Wl,' 7823 lt_prog_compiler_pic='-KPIC' 7824 lt_prog_compiler_static='-Bstatic' 7825 ;; 7826 7827 sysv4*MP*) 7828 if test -d /usr/nec ;then 7829 lt_prog_compiler_pic='-Kconform_pic' 7830 lt_prog_compiler_static='-Bstatic' 7831 fi 7832 ;; 7833 7834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7835 lt_prog_compiler_wl='-Wl,' 7836 lt_prog_compiler_pic='-KPIC' 7837 lt_prog_compiler_static='-Bstatic' 7838 ;; 7839 7840 unicos*) 7841 lt_prog_compiler_wl='-Wl,' 7842 lt_prog_compiler_can_build_shared=no 7843 ;; 7844 7845 uts4*) 7846 lt_prog_compiler_pic='-pic' 7847 lt_prog_compiler_static='-Bstatic' 7848 ;; 7849 7850 *) 7851 lt_prog_compiler_can_build_shared=no 7852 ;; 7853 esac 7854 fi 7855 7856case $host_os in 7857 # For platforms which do not support PIC, -DPIC is meaningless: 7858 *djgpp*) 7859 lt_prog_compiler_pic= 7860 ;; 7861 *) 7862 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7863 ;; 7864esac 7865{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7866echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7867 7868 7869 7870 7871 7872 7873# 7874# Check to make sure the PIC flag actually works. 7875# 7876if test -n "$lt_prog_compiler_pic"; then 7877 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7879if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7880 echo $ECHO_N "(cached) $ECHO_C" >&6 7881else 7882 lt_cv_prog_compiler_pic_works=no 7883 ac_outfile=conftest.$ac_objext 7884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7886 # Insert the option either (1) after the last *FLAGS variable, or 7887 # (2) before a word containing "conftest.", or (3) at the end. 7888 # Note that $ac_compile itself does not contain backslashes and begins 7889 # with a dollar sign (not a hyphen), so the echo should work correctly. 7890 # The option is referenced via a variable to avoid confusing sed. 7891 lt_compile=`echo "$ac_compile" | $SED \ 7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7894 -e 's:$: $lt_compiler_flag:'` 7895 (eval echo "\"\$as_me:7895: $lt_compile\"" >&5) 7896 (eval "$lt_compile" 2>conftest.err) 7897 ac_status=$? 7898 cat conftest.err >&5 7899 echo "$as_me:7899: \$? = $ac_status" >&5 7900 if (exit $ac_status) && test -s "$ac_outfile"; then 7901 # The compiler can only warn and ignore the option if not recognized 7902 # So say no if there are warnings other than the usual output. 7903 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7906 lt_cv_prog_compiler_pic_works=yes 7907 fi 7908 fi 7909 $RM conftest* 7910 7911fi 7912{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7913echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7914 7915if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7916 case $lt_prog_compiler_pic in 7917 "" | " "*) ;; 7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7919 esac 7920else 7921 lt_prog_compiler_pic= 7922 lt_prog_compiler_can_build_shared=no 7923fi 7924 7925fi 7926 7927 7928 7929 7930 7931 7932# 7933# Check to make sure the static flag actually works. 7934# 7935wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7936{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7937echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7938if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7939 echo $ECHO_N "(cached) $ECHO_C" >&6 7940else 7941 lt_cv_prog_compiler_static_works=no 7942 save_LDFLAGS="$LDFLAGS" 7943 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7944 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7946 # The linker can only warn and ignore the option if not recognized 7947 # So say no if there are warnings 7948 if test -s conftest.err; then 7949 # Append any errors to the config.log. 7950 cat conftest.err 1>&5 7951 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7953 if diff conftest.exp conftest.er2 >/dev/null; then 7954 lt_cv_prog_compiler_static_works=yes 7955 fi 7956 else 7957 lt_cv_prog_compiler_static_works=yes 7958 fi 7959 fi 7960 $RM -r conftest* 7961 LDFLAGS="$save_LDFLAGS" 7962 7963fi 7964{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7965echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7966 7967if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7968 : 7969else 7970 lt_prog_compiler_static= 7971fi 7972 7973 7974 7975 7976 7977 7978 7979 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7980echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7981if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7982 echo $ECHO_N "(cached) $ECHO_C" >&6 7983else 7984 lt_cv_prog_compiler_c_o=no 7985 $RM -r conftest 2>/dev/null 7986 mkdir conftest 7987 cd conftest 7988 mkdir out 7989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7990 7991 lt_compiler_flag="-o out/conftest2.$ac_objext" 7992 # Insert the option either (1) after the last *FLAGS variable, or 7993 # (2) before a word containing "conftest.", or (3) at the end. 7994 # Note that $ac_compile itself does not contain backslashes and begins 7995 # with a dollar sign (not a hyphen), so the echo should work correctly. 7996 lt_compile=`echo "$ac_compile" | $SED \ 7997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7999 -e 's:$: $lt_compiler_flag:'` 8000 (eval echo "\"\$as_me:8000: $lt_compile\"" >&5) 8001 (eval "$lt_compile" 2>out/conftest.err) 8002 ac_status=$? 8003 cat out/conftest.err >&5 8004 echo "$as_me:8004: \$? = $ac_status" >&5 8005 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8006 then 8007 # The compiler can only warn and ignore the option if not recognized 8008 # So say no if there are warnings 8009 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8012 lt_cv_prog_compiler_c_o=yes 8013 fi 8014 fi 8015 chmod u+w . 2>&5 8016 $RM conftest* 8017 # SGI C++ compiler will create directory out/ii_files/ for 8018 # template instantiation 8019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8020 $RM out/* && rmdir out 8021 cd .. 8022 $RM -r conftest 8023 $RM conftest* 8024 8025fi 8026{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8027echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8028 8029 8030 8031 8032 8033 8034 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8035echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8036if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8037 echo $ECHO_N "(cached) $ECHO_C" >&6 8038else 8039 lt_cv_prog_compiler_c_o=no 8040 $RM -r conftest 2>/dev/null 8041 mkdir conftest 8042 cd conftest 8043 mkdir out 8044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8045 8046 lt_compiler_flag="-o out/conftest2.$ac_objext" 8047 # Insert the option either (1) after the last *FLAGS variable, or 8048 # (2) before a word containing "conftest.", or (3) at the end. 8049 # Note that $ac_compile itself does not contain backslashes and begins 8050 # with a dollar sign (not a hyphen), so the echo should work correctly. 8051 lt_compile=`echo "$ac_compile" | $SED \ 8052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8054 -e 's:$: $lt_compiler_flag:'` 8055 (eval echo "\"\$as_me:8055: $lt_compile\"" >&5) 8056 (eval "$lt_compile" 2>out/conftest.err) 8057 ac_status=$? 8058 cat out/conftest.err >&5 8059 echo "$as_me:8059: \$? = $ac_status" >&5 8060 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8061 then 8062 # The compiler can only warn and ignore the option if not recognized 8063 # So say no if there are warnings 8064 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8067 lt_cv_prog_compiler_c_o=yes 8068 fi 8069 fi 8070 chmod u+w . 2>&5 8071 $RM conftest* 8072 # SGI C++ compiler will create directory out/ii_files/ for 8073 # template instantiation 8074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8075 $RM out/* && rmdir out 8076 cd .. 8077 $RM -r conftest 8078 $RM conftest* 8079 8080fi 8081{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8082echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8083 8084 8085 8086 8087hard_links="nottested" 8088if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8089 # do not overwrite the value of need_locks provided by the user 8090 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8092 hard_links=yes 8093 $RM conftest* 8094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8095 touch conftest.a 8096 ln conftest.a conftest.b 2>&5 || hard_links=no 8097 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8098 { echo "$as_me:$LINENO: result: $hard_links" >&5 8099echo "${ECHO_T}$hard_links" >&6; } 8100 if test "$hard_links" = no; then 8101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8103 need_locks=warn 8104 fi 8105else 8106 need_locks=no 8107fi 8108 8109 8110 8111 8112 8113 8114 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8115echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8116 8117 runpath_var= 8118 allow_undefined_flag= 8119 always_export_symbols=no 8120 archive_cmds= 8121 archive_expsym_cmds= 8122 compiler_needs_object=no 8123 enable_shared_with_static_runtimes=no 8124 export_dynamic_flag_spec= 8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8126 hardcode_automatic=no 8127 hardcode_direct=no 8128 hardcode_direct_absolute=no 8129 hardcode_libdir_flag_spec= 8130 hardcode_libdir_flag_spec_ld= 8131 hardcode_libdir_separator= 8132 hardcode_minus_L=no 8133 hardcode_shlibpath_var=unsupported 8134 inherit_rpath=no 8135 link_all_deplibs=unknown 8136 module_cmds= 8137 module_expsym_cmds= 8138 old_archive_from_new_cmds= 8139 old_archive_from_expsyms_cmds= 8140 thread_safe_flag_spec= 8141 whole_archive_flag_spec= 8142 # include_expsyms should be a list of space-separated symbols to be *always* 8143 # included in the symbol list 8144 include_expsyms= 8145 # exclude_expsyms can be an extended regexp of symbols to exclude 8146 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8147 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8148 # as well as any symbol that contains `d'. 8149 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8150 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8151 # platforms (ab)use it in PIC code, but their linkers get confused if 8152 # the symbol is explicitly referenced. Since portable code cannot 8153 # rely on this symbol name, it's probably fine to never include it in 8154 # preloaded symbol tables. 8155 # Exclude shared library initialization/finalization symbols. 8156 extract_expsyms_cmds= 8157 8158 case $host_os in 8159 cygwin* | mingw* | pw32*) 8160 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8161 # When not using gcc, we currently assume that we are using 8162 # Microsoft Visual C++. 8163 if test "$GCC" != yes; then 8164 with_gnu_ld=no 8165 fi 8166 ;; 8167 interix*) 8168 # we just hope/assume this is gcc and not c89 (= MSVC++) 8169 with_gnu_ld=yes 8170 ;; 8171 openbsd*) 8172 with_gnu_ld=no 8173 ;; 8174 esac 8175 8176 ld_shlibs=yes 8177 if test "$with_gnu_ld" = yes; then 8178 # If archive_cmds runs LD, not CC, wlarc should be empty 8179 wlarc='${wl}' 8180 8181 # Set some defaults for GNU ld with shared library support. These 8182 # are reset later if shared libraries are not supported. Putting them 8183 # here allows them to be overridden if necessary. 8184 runpath_var=LD_RUN_PATH 8185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8186 export_dynamic_flag_spec='${wl}--export-dynamic' 8187 # ancient GNU ld didn't support --whole-archive et. al. 8188 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8189 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8190 else 8191 whole_archive_flag_spec= 8192 fi 8193 supports_anon_versioning=no 8194 case `$LD -v 2>&1` in 8195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8198 *\ 2.11.*) ;; # other 2.11 versions 8199 *) supports_anon_versioning=yes ;; 8200 esac 8201 8202 # See if GNU ld supports shared libraries. 8203 case $host_os in 8204 aix[3-9]*) 8205 # On AIX/PPC, the GNU linker is very broken 8206 if test "$host_cpu" != ia64; then 8207 ld_shlibs=no 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8211*** to be unable to reliably create shared libraries on AIX. 8212*** Therefore, libtool is disabling shared libraries support. If you 8213*** really care for shared libraries, you may want to modify your PATH 8214*** so that a non-GNU linker is found, and then restart. 8215 8216_LT_EOF 8217 fi 8218 ;; 8219 8220 amigaos*) 8221 case $host_cpu in 8222 powerpc) 8223 # see comment about AmigaOS4 .so support 8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8225 archive_expsym_cmds='' 8226 ;; 8227 m68k) 8228 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)' 8229 hardcode_libdir_flag_spec='-L$libdir' 8230 hardcode_minus_L=yes 8231 ;; 8232 esac 8233 ;; 8234 8235 beos*) 8236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8237 allow_undefined_flag=unsupported 8238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8239 # support --undefined. This deserves some investigation. FIXME 8240 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8241 else 8242 ld_shlibs=no 8243 fi 8244 ;; 8245 8246 cygwin* | mingw* | pw32*) 8247 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8248 # as there is no search path for DLLs. 8249 hardcode_libdir_flag_spec='-L$libdir' 8250 allow_undefined_flag=unsupported 8251 always_export_symbols=no 8252 enable_shared_with_static_runtimes=yes 8253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8254 8255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8257 # If the export-symbols file already is a .def file (1st line 8258 # is EXPORTS), use it as is; otherwise, prepend... 8259 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8260 cp $export_symbols $output_objdir/$soname.def; 8261 else 8262 echo EXPORTS > $output_objdir/$soname.def; 8263 cat $export_symbols >> $output_objdir/$soname.def; 8264 fi~ 8265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8266 else 8267 ld_shlibs=no 8268 fi 8269 ;; 8270 8271 interix[3-9]*) 8272 hardcode_direct=no 8273 hardcode_shlibpath_var=no 8274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8275 export_dynamic_flag_spec='${wl}-E' 8276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8277 # Instead, shared libraries are loaded at an image base (0x10000000 by 8278 # default) and relocated if they conflict, which is a slow very memory 8279 # consuming and fragmenting process. To avoid this, we pick a random, 8280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8283 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' 8284 ;; 8285 8286 gnu* | linux* | tpf* | k*bsd*-gnu) 8287 tmp_diet=no 8288 if test "$host_os" = linux-dietlibc; then 8289 case $cc_basename in 8290 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8291 esac 8292 fi 8293 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8294 && test "$tmp_diet" = no 8295 then 8296 tmp_addflag= 8297 tmp_sharedflag='-shared' 8298 case $cc_basename,$host_cpu in 8299 pgcc*) # Portland Group C compiler 8300 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' 8301 tmp_addflag=' $pic_flag' 8302 ;; 8303 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8304 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' 8305 tmp_addflag=' $pic_flag -Mnomain' ;; 8306 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8307 tmp_addflag=' -i_dynamic' ;; 8308 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8309 tmp_addflag=' -i_dynamic -nofor_main' ;; 8310 ifc* | ifort*) # Intel Fortran compiler 8311 tmp_addflag=' -nofor_main' ;; 8312 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8313 tmp_sharedflag='-qmkshrobj' 8314 tmp_addflag= ;; 8315 esac 8316 case `$CC -V 2>&1 | sed 5q` in 8317 *Sun\ C*) # Sun C 5.9 8318 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' 8319 compiler_needs_object=yes 8320 tmp_sharedflag='-G' ;; 8321 *Sun\ F*) # Sun Fortran 8.3 8322 tmp_sharedflag='-G' ;; 8323 esac 8324 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8325 8326 if test "x$supports_anon_versioning" = xyes; then 8327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8329 echo "local: *; };" >> $output_objdir/$libname.ver~ 8330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8331 fi 8332 8333 case $cc_basename in 8334 xlf*) 8335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8337 hardcode_libdir_flag_spec= 8338 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8339 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8340 if test "x$supports_anon_versioning" = xyes; then 8341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8343 echo "local: *; };" >> $output_objdir/$libname.ver~ 8344 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8345 fi 8346 ;; 8347 esac 8348 else 8349 ld_shlibs=no 8350 fi 8351 ;; 8352 8353 netbsd* | netbsdelf*-gnu) 8354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8356 wlarc= 8357 else 8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8360 fi 8361 ;; 8362 8363 solaris*) 8364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8365 ld_shlibs=no 8366 cat <<_LT_EOF 1>&2 8367 8368*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8369*** create shared libraries on Solaris systems. Therefore, libtool 8370*** is disabling shared libraries support. We urge you to upgrade GNU 8371*** binutils to release 2.9.1 or newer. Another option is to modify 8372*** your PATH or compiler configuration so that the native linker is 8373*** used, and then restart. 8374 8375_LT_EOF 8376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8379 else 8380 ld_shlibs=no 8381 fi 8382 ;; 8383 8384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8385 case `$LD -v 2>&1` in 8386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8387 ld_shlibs=no 8388 cat <<_LT_EOF 1>&2 8389 8390*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8391*** reliably create shared libraries on SCO systems. Therefore, libtool 8392*** is disabling shared libraries support. We urge you to upgrade GNU 8393*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8394*** your PATH or compiler configuration so that the native linker is 8395*** used, and then restart. 8396 8397_LT_EOF 8398 ;; 8399 *) 8400 # For security reasons, it is highly recommended that you always 8401 # use absolute paths for naming shared libraries, and exclude the 8402 # DT_RUNPATH tag from executables and libraries. But doing so 8403 # requires that you compile everything twice, which is a pain. 8404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8408 else 8409 ld_shlibs=no 8410 fi 8411 ;; 8412 esac 8413 ;; 8414 8415 sunos4*) 8416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8417 wlarc= 8418 hardcode_direct=yes 8419 hardcode_shlibpath_var=no 8420 ;; 8421 8422 *) 8423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8426 else 8427 ld_shlibs=no 8428 fi 8429 ;; 8430 esac 8431 8432 if test "$ld_shlibs" = no; then 8433 runpath_var= 8434 hardcode_libdir_flag_spec= 8435 export_dynamic_flag_spec= 8436 whole_archive_flag_spec= 8437 fi 8438 else 8439 # PORTME fill in a description of your system's linker (not GNU ld) 8440 case $host_os in 8441 aix3*) 8442 allow_undefined_flag=unsupported 8443 always_export_symbols=yes 8444 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' 8445 # Note: this linker hardcodes the directories in LIBPATH if there 8446 # are no directories specified by -L. 8447 hardcode_minus_L=yes 8448 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8449 # Neither direct hardcoding nor static linking is supported with a 8450 # broken collect2. 8451 hardcode_direct=unsupported 8452 fi 8453 ;; 8454 8455 aix[4-9]*) 8456 if test "$host_cpu" = ia64; then 8457 # On IA64, the linker does run time linking by default, so we don't 8458 # have to do anything special. 8459 aix_use_runtimelinking=no 8460 exp_sym_flag='-Bexport' 8461 no_entry_flag="" 8462 else 8463 # If we're using GNU nm, then we don't want the "-C" option. 8464 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8466 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' 8467 else 8468 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' 8469 fi 8470 aix_use_runtimelinking=no 8471 8472 # Test if we are trying to use run time linking or normal 8473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8474 # need to do runtime linking. 8475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8476 for ld_flag in $LDFLAGS; do 8477 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8478 aix_use_runtimelinking=yes 8479 break 8480 fi 8481 done 8482 ;; 8483 esac 8484 8485 exp_sym_flag='-bexport' 8486 no_entry_flag='-bnoentry' 8487 fi 8488 8489 # When large executables or shared objects are built, AIX ld can 8490 # have problems creating the table of contents. If linking a library 8491 # or program results in "error TOC overflow" add -mminimal-toc to 8492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8494 8495 archive_cmds='' 8496 hardcode_direct=yes 8497 hardcode_direct_absolute=yes 8498 hardcode_libdir_separator=':' 8499 link_all_deplibs=yes 8500 file_list_spec='${wl}-f,' 8501 8502 if test "$GCC" = yes; then 8503 case $host_os in aix4.[012]|aix4.[012].*) 8504 # We only want to do this on AIX 4.2 and lower, the check 8505 # below for broken collect2 doesn't work under 4.3+ 8506 collect2name=`${CC} -print-prog-name=collect2` 8507 if test -f "$collect2name" && 8508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8509 then 8510 # We have reworked collect2 8511 : 8512 else 8513 # We have old collect2 8514 hardcode_direct=unsupported 8515 # It fails to find uninstalled libraries when the uninstalled 8516 # path is not listed in the libpath. Setting hardcode_minus_L 8517 # to unsupported forces relinking 8518 hardcode_minus_L=yes 8519 hardcode_libdir_flag_spec='-L$libdir' 8520 hardcode_libdir_separator= 8521 fi 8522 ;; 8523 esac 8524 shared_flag='-shared' 8525 if test "$aix_use_runtimelinking" = yes; then 8526 shared_flag="$shared_flag "'${wl}-G' 8527 fi 8528 link_all_deplibs=no 8529 else 8530 # not using gcc 8531 if test "$host_cpu" = ia64; then 8532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8533 # chokes on -Wl,-G. The following line is correct: 8534 shared_flag='-G' 8535 else 8536 if test "$aix_use_runtimelinking" = yes; then 8537 shared_flag='${wl}-G' 8538 else 8539 shared_flag='${wl}-bM:SRE' 8540 fi 8541 fi 8542 fi 8543 8544 # It seems that -bexpall does not export symbols beginning with 8545 # underscore (_), so it is better to generate a list of symbols to export. 8546 always_export_symbols=yes 8547 if test "$aix_use_runtimelinking" = yes; then 8548 # Warning - without using the other runtime loading flags (-brtl), 8549 # -berok will link without error, but may produce a broken library. 8550 allow_undefined_flag='-berok' 8551 # Determine the default libpath from the value encoded in an 8552 # empty executable. 8553 cat >conftest.$ac_ext <<_ACEOF 8554/* confdefs.h. */ 8555_ACEOF 8556cat confdefs.h >>conftest.$ac_ext 8557cat >>conftest.$ac_ext <<_ACEOF 8558/* end confdefs.h. */ 8559 8560int 8561main () 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568rm -f conftest.$ac_objext conftest$ac_exeext 8569if { (ac_try="$ac_link" 8570case "(($ac_try" in 8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8572 *) ac_try_echo=$ac_try;; 8573esac 8574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8575 (eval "$ac_link") 2>conftest.er1 8576 ac_status=$? 8577 grep -v '^ *+' conftest.er1 >conftest.err 8578 rm -f conftest.er1 8579 cat conftest.err >&5 8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8581 (exit $ac_status); } && { 8582 test -z "$ac_c_werror_flag" || 8583 test ! -s conftest.err 8584 } && test -s conftest$ac_exeext && 8585 $as_test_x conftest$ac_exeext; then 8586 8587lt_aix_libpath_sed=' 8588 /Import File Strings/,/^$/ { 8589 /^0/ { 8590 s/^0 *\(.*\)$/\1/ 8591 p 8592 } 8593 }' 8594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8595# Check for a 64-bit object if we didn't find anything. 8596if test -z "$aix_libpath"; then 8597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8598fi 8599else 8600 echo "$as_me: failed program was:" >&5 8601sed 's/^/| /' conftest.$ac_ext >&5 8602 8603 8604fi 8605 8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8607 conftest$ac_exeext conftest.$ac_ext 8608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8609 8610 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8611 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" 8612 else 8613 if test "$host_cpu" = ia64; then 8614 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8615 allow_undefined_flag="-z nodefs" 8616 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" 8617 else 8618 # Determine the default libpath from the value encoded in an 8619 # empty executable. 8620 cat >conftest.$ac_ext <<_ACEOF 8621/* confdefs.h. */ 8622_ACEOF 8623cat confdefs.h >>conftest.$ac_ext 8624cat >>conftest.$ac_ext <<_ACEOF 8625/* end confdefs.h. */ 8626 8627int 8628main () 8629{ 8630 8631 ; 8632 return 0; 8633} 8634_ACEOF 8635rm -f conftest.$ac_objext conftest$ac_exeext 8636if { (ac_try="$ac_link" 8637case "(($ac_try" in 8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8639 *) ac_try_echo=$ac_try;; 8640esac 8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8642 (eval "$ac_link") 2>conftest.er1 8643 ac_status=$? 8644 grep -v '^ *+' conftest.er1 >conftest.err 8645 rm -f conftest.er1 8646 cat conftest.err >&5 8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8648 (exit $ac_status); } && { 8649 test -z "$ac_c_werror_flag" || 8650 test ! -s conftest.err 8651 } && test -s conftest$ac_exeext && 8652 $as_test_x conftest$ac_exeext; then 8653 8654lt_aix_libpath_sed=' 8655 /Import File Strings/,/^$/ { 8656 /^0/ { 8657 s/^0 *\(.*\)$/\1/ 8658 p 8659 } 8660 }' 8661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8662# Check for a 64-bit object if we didn't find anything. 8663if test -z "$aix_libpath"; then 8664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8665fi 8666else 8667 echo "$as_me: failed program was:" >&5 8668sed 's/^/| /' conftest.$ac_ext >&5 8669 8670 8671fi 8672 8673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8674 conftest$ac_exeext conftest.$ac_ext 8675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8676 8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8678 # Warning - without using the other run time loading flags, 8679 # -berok will link without error, but may produce a broken library. 8680 no_undefined_flag=' ${wl}-bernotok' 8681 allow_undefined_flag=' ${wl}-berok' 8682 # Exported symbols can be pulled into shared objects from archives 8683 whole_archive_flag_spec='$convenience' 8684 archive_cmds_need_lc=yes 8685 # This is similar to how AIX traditionally builds its shared libraries. 8686 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' 8687 fi 8688 fi 8689 ;; 8690 8691 amigaos*) 8692 case $host_cpu in 8693 powerpc) 8694 # see comment about AmigaOS4 .so support 8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8696 archive_expsym_cmds='' 8697 ;; 8698 m68k) 8699 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)' 8700 hardcode_libdir_flag_spec='-L$libdir' 8701 hardcode_minus_L=yes 8702 ;; 8703 esac 8704 ;; 8705 8706 bsdi[45]*) 8707 export_dynamic_flag_spec=-rdynamic 8708 ;; 8709 8710 cygwin* | mingw* | pw32*) 8711 # When not using gcc, we currently assume that we are using 8712 # Microsoft Visual C++. 8713 # hardcode_libdir_flag_spec is actually meaningless, as there is 8714 # no search path for DLLs. 8715 hardcode_libdir_flag_spec=' ' 8716 allow_undefined_flag=unsupported 8717 # Tell ltmain to make .lib files, not .a files. 8718 libext=lib 8719 # Tell ltmain to make .dll files, not .so files. 8720 shrext_cmds=".dll" 8721 # FIXME: Setting linknames here is a bad hack. 8722 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8723 # The linker will automatically build a .lib file if we build a DLL. 8724 old_archive_from_new_cmds='true' 8725 # FIXME: Should let the user specify the lib program. 8726 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8727 fix_srcfile_path='`cygpath -w "$srcfile"`' 8728 enable_shared_with_static_runtimes=yes 8729 ;; 8730 8731 darwin* | rhapsody*) 8732 8733 8734 archive_cmds_need_lc=no 8735 hardcode_direct=no 8736 hardcode_automatic=yes 8737 hardcode_shlibpath_var=unsupported 8738 whole_archive_flag_spec='' 8739 link_all_deplibs=yes 8740 allow_undefined_flag="$_lt_dar_allow_undefined" 8741 if test "$GCC" = "yes"; then 8742 output_verbose_link_cmd=echo 8743 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8744 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8745 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}" 8746 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}" 8747 8748 else 8749 ld_shlibs=no 8750 fi 8751 8752 ;; 8753 8754 dgux*) 8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8756 hardcode_libdir_flag_spec='-L$libdir' 8757 hardcode_shlibpath_var=no 8758 ;; 8759 8760 freebsd1*) 8761 ld_shlibs=no 8762 ;; 8763 8764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8765 # support. Future versions do this automatically, but an explicit c++rt0.o 8766 # does not break anything, and helps significantly (at the cost of a little 8767 # extra space). 8768 freebsd2.2*) 8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8770 hardcode_libdir_flag_spec='-R$libdir' 8771 hardcode_direct=yes 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8776 freebsd2*) 8777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8778 hardcode_direct=yes 8779 hardcode_minus_L=yes 8780 hardcode_shlibpath_var=no 8781 ;; 8782 8783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8784 freebsd* | dragonfly*) 8785 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8786 hardcode_libdir_flag_spec='-R$libdir' 8787 hardcode_direct=yes 8788 hardcode_shlibpath_var=no 8789 ;; 8790 8791 hpux9*) 8792 if test "$GCC" = yes; then 8793 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' 8794 else 8795 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' 8796 fi 8797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8798 hardcode_libdir_separator=: 8799 hardcode_direct=yes 8800 8801 # hardcode_minus_L: Not really in the search PATH, 8802 # but as the default location of the library. 8803 hardcode_minus_L=yes 8804 export_dynamic_flag_spec='${wl}-E' 8805 ;; 8806 8807 hpux10*) 8808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8810 else 8811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8812 fi 8813 if test "$with_gnu_ld" = no; then 8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8815 hardcode_libdir_flag_spec_ld='+b $libdir' 8816 hardcode_libdir_separator=: 8817 hardcode_direct=yes 8818 hardcode_direct_absolute=yes 8819 export_dynamic_flag_spec='${wl}-E' 8820 # hardcode_minus_L: Not really in the search PATH, 8821 # but as the default location of the library. 8822 hardcode_minus_L=yes 8823 fi 8824 ;; 8825 8826 hpux11*) 8827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8828 case $host_cpu in 8829 hppa*64*) 8830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8831 ;; 8832 ia64*) 8833 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8834 ;; 8835 *) 8836 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8837 ;; 8838 esac 8839 else 8840 case $host_cpu in 8841 hppa*64*) 8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8843 ;; 8844 ia64*) 8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8846 ;; 8847 *) 8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8849 ;; 8850 esac 8851 fi 8852 if test "$with_gnu_ld" = no; then 8853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8854 hardcode_libdir_separator=: 8855 8856 case $host_cpu in 8857 hppa*64*|ia64*) 8858 hardcode_direct=no 8859 hardcode_shlibpath_var=no 8860 ;; 8861 *) 8862 hardcode_direct=yes 8863 hardcode_direct_absolute=yes 8864 export_dynamic_flag_spec='${wl}-E' 8865 8866 # hardcode_minus_L: Not really in the search PATH, 8867 # but as the default location of the library. 8868 hardcode_minus_L=yes 8869 ;; 8870 esac 8871 fi 8872 ;; 8873 8874 irix5* | irix6* | nonstopux*) 8875 if test "$GCC" = yes; then 8876 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' 8877 # Try to use the -exported_symbol ld option, if it does not 8878 # work, assume that -exports_file does not work either and 8879 # implicitly export all symbols. 8880 save_LDFLAGS="$LDFLAGS" 8881 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8882 cat >conftest.$ac_ext <<_ACEOF 8883int foo(void) {} 8884_ACEOF 8885rm -f conftest.$ac_objext conftest$ac_exeext 8886if { (ac_try="$ac_link" 8887case "(($ac_try" in 8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8889 *) ac_try_echo=$ac_try;; 8890esac 8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8892 (eval "$ac_link") 2>conftest.er1 8893 ac_status=$? 8894 grep -v '^ *+' conftest.er1 >conftest.err 8895 rm -f conftest.er1 8896 cat conftest.err >&5 8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8898 (exit $ac_status); } && { 8899 test -z "$ac_c_werror_flag" || 8900 test ! -s conftest.err 8901 } && test -s conftest$ac_exeext && 8902 $as_test_x conftest$ac_exeext; then 8903 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' 8904 8905else 8906 echo "$as_me: failed program was:" >&5 8907sed 's/^/| /' conftest.$ac_ext >&5 8908 8909 8910fi 8911 8912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8913 conftest$ac_exeext conftest.$ac_ext 8914 LDFLAGS="$save_LDFLAGS" 8915 else 8916 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' 8917 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' 8918 fi 8919 archive_cmds_need_lc='no' 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8921 hardcode_libdir_separator=: 8922 inherit_rpath=yes 8923 link_all_deplibs=yes 8924 ;; 8925 8926 netbsd* | netbsdelf*-gnu) 8927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8929 else 8930 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8931 fi 8932 hardcode_libdir_flag_spec='-R$libdir' 8933 hardcode_direct=yes 8934 hardcode_shlibpath_var=no 8935 ;; 8936 8937 newsos6) 8938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8939 hardcode_direct=yes 8940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8941 hardcode_libdir_separator=: 8942 hardcode_shlibpath_var=no 8943 ;; 8944 8945 *nto* | *qnx*) 8946 ;; 8947 8948 openbsd*) 8949 if test -f /usr/libexec/ld.so; then 8950 hardcode_direct=yes 8951 hardcode_shlibpath_var=no 8952 hardcode_direct_absolute=yes 8953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8957 export_dynamic_flag_spec='${wl}-E' 8958 else 8959 case $host_os in 8960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8962 hardcode_libdir_flag_spec='-R$libdir' 8963 ;; 8964 *) 8965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8967 ;; 8968 esac 8969 fi 8970 else 8971 ld_shlibs=no 8972 fi 8973 ;; 8974 8975 os2*) 8976 hardcode_libdir_flag_spec='-L$libdir' 8977 hardcode_minus_L=yes 8978 allow_undefined_flag=unsupported 8979 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' 8980 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8981 ;; 8982 8983 osf3*) 8984 if test "$GCC" = yes; then 8985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8986 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' 8987 else 8988 allow_undefined_flag=' -expect_unresolved \*' 8989 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' 8990 fi 8991 archive_cmds_need_lc='no' 8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8993 hardcode_libdir_separator=: 8994 ;; 8995 8996 osf4* | osf5*) # as osf3* with the addition of -msym flag 8997 if test "$GCC" = yes; then 8998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8999 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' 9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9001 else 9002 allow_undefined_flag=' -expect_unresolved \*' 9003 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' 9004 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~ 9005 $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' 9006 9007 # Both c and cxx compiler support -rpath directly 9008 hardcode_libdir_flag_spec='-rpath $libdir' 9009 fi 9010 archive_cmds_need_lc='no' 9011 hardcode_libdir_separator=: 9012 ;; 9013 9014 solaris*) 9015 no_undefined_flag=' -z defs' 9016 if test "$GCC" = yes; then 9017 wlarc='${wl}' 9018 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9020 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9021 else 9022 case `$CC -V 2>&1` in 9023 *"Compilers 5.0"*) 9024 wlarc='' 9025 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9028 ;; 9029 *) 9030 wlarc='${wl}' 9031 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9033 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9034 ;; 9035 esac 9036 fi 9037 hardcode_libdir_flag_spec='-R$libdir' 9038 hardcode_shlibpath_var=no 9039 case $host_os in 9040 solaris2.[0-5] | solaris2.[0-5].*) ;; 9041 *) 9042 # The compiler driver will combine and reorder linker options, 9043 # but understands `-z linker_flag'. GCC discards it without `$wl', 9044 # but is careful enough not to reorder. 9045 # Supported since Solaris 2.6 (maybe 2.5.1?) 9046 if test "$GCC" = yes; then 9047 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9048 else 9049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9050 fi 9051 ;; 9052 esac 9053 link_all_deplibs=yes 9054 ;; 9055 9056 sunos4*) 9057 if test "x$host_vendor" = xsequent; then 9058 # Use $CC to link under sequent, because it throws in some extra .o 9059 # files that make .init and .fini sections work. 9060 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9061 else 9062 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9063 fi 9064 hardcode_libdir_flag_spec='-L$libdir' 9065 hardcode_direct=yes 9066 hardcode_minus_L=yes 9067 hardcode_shlibpath_var=no 9068 ;; 9069 9070 sysv4) 9071 case $host_vendor in 9072 sni) 9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9074 hardcode_direct=yes # is this really true??? 9075 ;; 9076 siemens) 9077 ## LD is ld it makes a PLAMLIB 9078 ## CC just makes a GrossModule. 9079 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9080 reload_cmds='$CC -r -o $output$reload_objs' 9081 hardcode_direct=no 9082 ;; 9083 motorola) 9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9085 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9086 ;; 9087 esac 9088 runpath_var='LD_RUN_PATH' 9089 hardcode_shlibpath_var=no 9090 ;; 9091 9092 sysv4.3*) 9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9094 hardcode_shlibpath_var=no 9095 export_dynamic_flag_spec='-Bexport' 9096 ;; 9097 9098 sysv4*MP*) 9099 if test -d /usr/nec; then 9100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9101 hardcode_shlibpath_var=no 9102 runpath_var=LD_RUN_PATH 9103 hardcode_runpath_var=yes 9104 ld_shlibs=yes 9105 fi 9106 ;; 9107 9108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9109 no_undefined_flag='${wl}-z,text' 9110 archive_cmds_need_lc=no 9111 hardcode_shlibpath_var=no 9112 runpath_var='LD_RUN_PATH' 9113 9114 if test "$GCC" = yes; then 9115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9117 else 9118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9120 fi 9121 ;; 9122 9123 sysv5* | sco3.2v5* | sco5v6*) 9124 # Note: We can NOT use -z defs as we might desire, because we do not 9125 # link with -lc, and that would cause any symbols used from libc to 9126 # always be unresolved, which means just about no library would 9127 # ever link correctly. If we're not using GNU ld we use -z text 9128 # though, which does catch some bad symbols but isn't as heavy-handed 9129 # as -z defs. 9130 no_undefined_flag='${wl}-z,text' 9131 allow_undefined_flag='${wl}-z,nodefs' 9132 archive_cmds_need_lc=no 9133 hardcode_shlibpath_var=no 9134 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9135 hardcode_libdir_separator=':' 9136 link_all_deplibs=yes 9137 export_dynamic_flag_spec='${wl}-Bexport' 9138 runpath_var='LD_RUN_PATH' 9139 9140 if test "$GCC" = yes; then 9141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9143 else 9144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9146 fi 9147 ;; 9148 9149 uts4*) 9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9151 hardcode_libdir_flag_spec='-L$libdir' 9152 hardcode_shlibpath_var=no 9153 ;; 9154 9155 *) 9156 ld_shlibs=no 9157 ;; 9158 esac 9159 9160 if test x$host_vendor = xsni; then 9161 case $host in 9162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9163 export_dynamic_flag_spec='${wl}-Blargedynsym' 9164 ;; 9165 esac 9166 fi 9167 fi 9168 9169{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9170echo "${ECHO_T}$ld_shlibs" >&6; } 9171test "$ld_shlibs" = no && can_build_shared=no 9172 9173with_gnu_ld=$with_gnu_ld 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189# 9190# Do we need to explicitly link libc? 9191# 9192case "x$archive_cmds_need_lc" in 9193x|xyes) 9194 # Assume -lc should be added 9195 archive_cmds_need_lc=yes 9196 9197 if test "$enable_shared" = yes && test "$GCC" = yes; then 9198 case $archive_cmds in 9199 *'~'*) 9200 # FIXME: we may have to deal with multi-command sequences. 9201 ;; 9202 '$CC '*) 9203 # Test whether the compiler implicitly links with -lc since on some 9204 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9205 # to ld, don't add -lc before -lgcc. 9206 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9207echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9208 $RM conftest* 9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9210 9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9212 (eval $ac_compile) 2>&5 9213 ac_status=$? 9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 (exit $ac_status); } 2>conftest.err; then 9216 soname=conftest 9217 lib=conftest 9218 libobjs=conftest.$ac_objext 9219 deplibs= 9220 wl=$lt_prog_compiler_wl 9221 pic_flag=$lt_prog_compiler_pic 9222 compiler_flags=-v 9223 linker_flags=-v 9224 verstring= 9225 output_objdir=. 9226 libname=conftest 9227 lt_save_allow_undefined_flag=$allow_undefined_flag 9228 allow_undefined_flag= 9229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9230 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9231 ac_status=$? 9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9233 (exit $ac_status); } 9234 then 9235 archive_cmds_need_lc=no 9236 else 9237 archive_cmds_need_lc=yes 9238 fi 9239 allow_undefined_flag=$lt_save_allow_undefined_flag 9240 else 9241 cat conftest.err 1>&5 9242 fi 9243 $RM conftest* 9244 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9245echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9246 ;; 9247 esac 9248 fi 9249 ;; 9250esac 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 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 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9409echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9410 9411if test "$GCC" = yes; then 9412 case $host_os in 9413 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9414 *) lt_awk_arg="/^libraries:/" ;; 9415 esac 9416 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9417 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9418 # if the path contains ";" then we assume it to be the separator 9419 # otherwise default to the standard path separator (i.e. ":") - it is 9420 # assumed that no part of a normal pathname contains ";" but that should 9421 # okay in the real world where ";" in dirpaths is itself problematic. 9422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9423 else 9424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9425 fi 9426 # Ok, now we have the path, separated by spaces, we can step through it 9427 # and add multilib dir if necessary. 9428 lt_tmp_lt_search_path_spec= 9429 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9430 for lt_sys_path in $lt_search_path_spec; do 9431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9433 else 9434 test -d "$lt_sys_path" && \ 9435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9436 fi 9437 done 9438 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9439BEGIN {RS=" "; FS="/|\n";} { 9440 lt_foo=""; 9441 lt_count=0; 9442 for (lt_i = NF; lt_i > 0; lt_i--) { 9443 if ($lt_i != "" && $lt_i != ".") { 9444 if ($lt_i == "..") { 9445 lt_count++; 9446 } else { 9447 if (lt_count == 0) { 9448 lt_foo="/" $lt_i lt_foo; 9449 } else { 9450 lt_count--; 9451 } 9452 } 9453 } 9454 } 9455 if (lt_foo != "") { lt_freq[lt_foo]++; } 9456 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9457}'` 9458 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9459else 9460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9461fi 9462library_names_spec= 9463libname_spec='lib$name' 9464soname_spec= 9465shrext_cmds=".so" 9466postinstall_cmds= 9467postuninstall_cmds= 9468finish_cmds= 9469finish_eval= 9470shlibpath_var= 9471shlibpath_overrides_runpath=unknown 9472version_type=none 9473dynamic_linker="$host_os ld.so" 9474sys_lib_dlsearch_path_spec="/lib /usr/lib" 9475need_lib_prefix=unknown 9476hardcode_into_libs=no 9477 9478# when you set need_version to no, make sure it does not cause -set_version 9479# flags to be left without arguments 9480need_version=unknown 9481 9482case $host_os in 9483aix3*) 9484 version_type=linux 9485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9486 shlibpath_var=LIBPATH 9487 9488 # AIX 3 has no versioning support, so we append a major version to the name. 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 ;; 9491 9492aix[4-9]*) 9493 version_type=linux 9494 need_lib_prefix=no 9495 need_version=no 9496 hardcode_into_libs=yes 9497 if test "$host_cpu" = ia64; then 9498 # AIX 5 supports IA64 9499 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9500 shlibpath_var=LD_LIBRARY_PATH 9501 else 9502 # With GCC up to 2.95.x, collect2 would create an import file 9503 # for dependence libraries. The import file would start with 9504 # the line `#! .'. This would cause the generated library to 9505 # depend on `.', always an invalid library. This was fixed in 9506 # development snapshots of GCC prior to 3.0. 9507 case $host_os in 9508 aix4 | aix4.[01] | aix4.[01].*) 9509 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9510 echo ' yes ' 9511 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9512 : 9513 else 9514 can_build_shared=no 9515 fi 9516 ;; 9517 esac 9518 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9519 # soname into executable. Probably we can add versioning support to 9520 # collect2, so additional links can be useful in future. 9521 if test "$aix_use_runtimelinking" = yes; then 9522 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9523 # instead of lib<name>.a to let people know that these are not 9524 # typical AIX shared libraries. 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9526 else 9527 # We preserve .a as extension for shared libraries through AIX4.2 9528 # and later when we are not doing run time linking. 9529 library_names_spec='${libname}${release}.a $libname.a' 9530 soname_spec='${libname}${release}${shared_ext}$major' 9531 fi 9532 shlibpath_var=LIBPATH 9533 fi 9534 ;; 9535 9536amigaos*) 9537 case $host_cpu in 9538 powerpc) 9539 # Since July 2007 AmigaOS4 officially supports .so libraries. 9540 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9542 ;; 9543 m68k) 9544 library_names_spec='$libname.ixlibrary $libname.a' 9545 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9546 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' 9547 ;; 9548 esac 9549 ;; 9550 9551beos*) 9552 library_names_spec='${libname}${shared_ext}' 9553 dynamic_linker="$host_os ld.so" 9554 shlibpath_var=LIBRARY_PATH 9555 ;; 9556 9557bsdi[45]*) 9558 version_type=linux 9559 need_version=no 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9561 soname_spec='${libname}${release}${shared_ext}$major' 9562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9563 shlibpath_var=LD_LIBRARY_PATH 9564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9566 # the default ld.so.conf also contains /usr/contrib/lib and 9567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9568 # libtool to hard-code these into programs 9569 ;; 9570 9571cygwin* | mingw* | pw32*) 9572 version_type=windows 9573 shrext_cmds=".dll" 9574 need_version=no 9575 need_lib_prefix=no 9576 9577 case $GCC,$host_os in 9578 yes,cygwin* | yes,mingw* | yes,pw32*) 9579 library_names_spec='$libname.dll.a' 9580 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9581 postinstall_cmds='base_file=`basename \${file}`~ 9582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9583 dldir=$destdir/`dirname \$dlpath`~ 9584 test -d \$dldir || mkdir -p \$dldir~ 9585 $install_prog $dir/$dlname \$dldir/$dlname~ 9586 chmod a+x \$dldir/$dlname~ 9587 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9588 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9589 fi' 9590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9591 dlpath=$dir/\$dldll~ 9592 $RM \$dlpath' 9593 shlibpath_overrides_runpath=yes 9594 9595 case $host_os in 9596 cygwin*) 9597 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9600 ;; 9601 mingw*) 9602 # MinGW DLLs use traditional 'lib' prefix 9603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9604 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9605 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9606 # It is most probably a Windows format PATH printed by 9607 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9608 # path with ; separators, and with drive letters. We can handle the 9609 # drive letters (cygwin fileutils understands them), so leave them, 9610 # especially as we might pass files found there to a mingw objdump, 9611 # which wouldn't understand a cygwinified path. Ahh. 9612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9613 else 9614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9615 fi 9616 ;; 9617 pw32*) 9618 # pw32 DLLs use 'pw' prefix rather than 'lib' 9619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9620 ;; 9621 esac 9622 ;; 9623 9624 *) 9625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9626 ;; 9627 esac 9628 dynamic_linker='Win32 ld.exe' 9629 # FIXME: first we should search . and the directory the executable is in 9630 shlibpath_var=PATH 9631 ;; 9632 9633darwin* | rhapsody*) 9634 dynamic_linker="$host_os dyld" 9635 version_type=darwin 9636 need_lib_prefix=no 9637 need_version=no 9638 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9639 soname_spec='${libname}${release}${major}$shared_ext' 9640 shlibpath_overrides_runpath=yes 9641 shlibpath_var=DYLD_LIBRARY_PATH 9642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9643 9644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9646 ;; 9647 9648dgux*) 9649 version_type=linux 9650 need_lib_prefix=no 9651 need_version=no 9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9653 soname_spec='${libname}${release}${shared_ext}$major' 9654 shlibpath_var=LD_LIBRARY_PATH 9655 ;; 9656 9657freebsd1*) 9658 dynamic_linker=no 9659 ;; 9660 9661freebsd* | dragonfly*) 9662 # DragonFly does not have aout. When/if they implement a new 9663 # versioning mechanism, adjust this. 9664 if test -x /usr/bin/objformat; then 9665 objformat=`/usr/bin/objformat` 9666 else 9667 case $host_os in 9668 freebsd[123]*) objformat=aout ;; 9669 *) objformat=elf ;; 9670 esac 9671 fi 9672 version_type=freebsd-$objformat 9673 case $version_type in 9674 freebsd-elf*) 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9676 need_version=no 9677 need_lib_prefix=no 9678 ;; 9679 freebsd-*) 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9681 need_version=yes 9682 ;; 9683 esac 9684 shlibpath_var=LD_LIBRARY_PATH 9685 case $host_os in 9686 freebsd2*) 9687 shlibpath_overrides_runpath=yes 9688 ;; 9689 freebsd3.[01]* | freebsdelf3.[01]*) 9690 shlibpath_overrides_runpath=yes 9691 hardcode_into_libs=yes 9692 ;; 9693 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9694 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9695 shlibpath_overrides_runpath=no 9696 hardcode_into_libs=yes 9697 ;; 9698 *) # from 4.6 on, and DragonFly 9699 shlibpath_overrides_runpath=yes 9700 hardcode_into_libs=yes 9701 ;; 9702 esac 9703 ;; 9704 9705gnu*) 9706 version_type=linux 9707 need_lib_prefix=no 9708 need_version=no 9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9710 soname_spec='${libname}${release}${shared_ext}$major' 9711 shlibpath_var=LD_LIBRARY_PATH 9712 hardcode_into_libs=yes 9713 ;; 9714 9715hpux9* | hpux10* | hpux11*) 9716 # Give a soname corresponding to the major version so that dld.sl refuses to 9717 # link against other versions. 9718 version_type=sunos 9719 need_lib_prefix=no 9720 need_version=no 9721 case $host_cpu in 9722 ia64*) 9723 shrext_cmds='.so' 9724 hardcode_into_libs=yes 9725 dynamic_linker="$host_os dld.so" 9726 shlibpath_var=LD_LIBRARY_PATH 9727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 if test "X$HPUX_IA64_MODE" = X32; then 9731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9732 else 9733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9734 fi 9735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9736 ;; 9737 hppa*64*) 9738 shrext_cmds='.sl' 9739 hardcode_into_libs=yes 9740 dynamic_linker="$host_os dld.sl" 9741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9744 soname_spec='${libname}${release}${shared_ext}$major' 9745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9747 ;; 9748 *) 9749 shrext_cmds='.sl' 9750 dynamic_linker="$host_os dld.sl" 9751 shlibpath_var=SHLIB_PATH 9752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9754 soname_spec='${libname}${release}${shared_ext}$major' 9755 ;; 9756 esac 9757 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9758 postinstall_cmds='chmod 555 $lib' 9759 ;; 9760 9761interix[3-9]*) 9762 version_type=linux 9763 need_lib_prefix=no 9764 need_version=no 9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9766 soname_spec='${libname}${release}${shared_ext}$major' 9767 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9768 shlibpath_var=LD_LIBRARY_PATH 9769 shlibpath_overrides_runpath=no 9770 hardcode_into_libs=yes 9771 ;; 9772 9773irix5* | irix6* | nonstopux*) 9774 case $host_os in 9775 nonstopux*) version_type=nonstopux ;; 9776 *) 9777 if test "$lt_cv_prog_gnu_ld" = yes; then 9778 version_type=linux 9779 else 9780 version_type=irix 9781 fi ;; 9782 esac 9783 need_lib_prefix=no 9784 need_version=no 9785 soname_spec='${libname}${release}${shared_ext}$major' 9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9787 case $host_os in 9788 irix5* | nonstopux*) 9789 libsuff= shlibsuff= 9790 ;; 9791 *) 9792 case $LD in # libtool.m4 will add one of these switches to LD 9793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9794 libsuff= shlibsuff= libmagic=32-bit;; 9795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9796 libsuff=32 shlibsuff=N32 libmagic=N32;; 9797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9798 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9799 *) libsuff= shlibsuff= libmagic=never-match;; 9800 esac 9801 ;; 9802 esac 9803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9804 shlibpath_overrides_runpath=no 9805 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9806 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9807 hardcode_into_libs=yes 9808 ;; 9809 9810# No shared lib support for Linux oldld, aout, or coff. 9811linux*oldld* | linux*aout* | linux*coff*) 9812 dynamic_linker=no 9813 ;; 9814 9815# This must be Linux ELF. 9816linux* | k*bsd*-gnu) 9817 version_type=linux 9818 need_lib_prefix=no 9819 need_version=no 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9821 soname_spec='${libname}${release}${shared_ext}$major' 9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=no 9825 # Some binutils ld are patched to set DT_RUNPATH 9826 save_LDFLAGS=$LDFLAGS 9827 save_libdir=$libdir 9828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9830 cat >conftest.$ac_ext <<_ACEOF 9831/* confdefs.h. */ 9832_ACEOF 9833cat confdefs.h >>conftest.$ac_ext 9834cat >>conftest.$ac_ext <<_ACEOF 9835/* end confdefs.h. */ 9836 9837int 9838main () 9839{ 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845rm -f conftest.$ac_objext conftest$ac_exeext 9846if { (ac_try="$ac_link" 9847case "(($ac_try" in 9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9849 *) ac_try_echo=$ac_try;; 9850esac 9851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9852 (eval "$ac_link") 2>conftest.er1 9853 ac_status=$? 9854 grep -v '^ *+' conftest.er1 >conftest.err 9855 rm -f conftest.er1 9856 cat conftest.err >&5 9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9858 (exit $ac_status); } && { 9859 test -z "$ac_c_werror_flag" || 9860 test ! -s conftest.err 9861 } && test -s conftest$ac_exeext && 9862 $as_test_x conftest$ac_exeext; then 9863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9864 shlibpath_overrides_runpath=yes 9865fi 9866 9867else 9868 echo "$as_me: failed program was:" >&5 9869sed 's/^/| /' conftest.$ac_ext >&5 9870 9871 9872fi 9873 9874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9875 conftest$ac_exeext conftest.$ac_ext 9876 LDFLAGS=$save_LDFLAGS 9877 libdir=$save_libdir 9878 9879 # This implies no fast_install, which is unacceptable. 9880 # Some rework will be needed to allow for fast_install 9881 # before this can be enabled. 9882 hardcode_into_libs=yes 9883 9884 # Append ld.so.conf contents to the search path 9885 if test -f /etc/ld.so.conf; then 9886 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' ' '` 9887 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9888 fi 9889 9890 # We used to test for /lib/ld.so.1 and disable shared libraries on 9891 # powerpc, because MkLinux only supported shared libraries with the 9892 # GNU dynamic linker. Since this was broken with cross compilers, 9893 # most powerpc-linux boxes support dynamic linking these days and 9894 # people can always --disable-shared, the test was removed, and we 9895 # assume the GNU/Linux dynamic linker is in use. 9896 dynamic_linker='GNU/Linux ld.so' 9897 ;; 9898 9899netbsdelf*-gnu) 9900 version_type=linux 9901 need_lib_prefix=no 9902 need_version=no 9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9904 soname_spec='${libname}${release}${shared_ext}$major' 9905 shlibpath_var=LD_LIBRARY_PATH 9906 shlibpath_overrides_runpath=no 9907 hardcode_into_libs=yes 9908 dynamic_linker='NetBSD ld.elf_so' 9909 ;; 9910 9911netbsd*) 9912 version_type=sunos 9913 need_lib_prefix=no 9914 need_version=no 9915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9918 dynamic_linker='NetBSD (a.out) ld.so' 9919 else 9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9921 soname_spec='${libname}${release}${shared_ext}$major' 9922 dynamic_linker='NetBSD ld.elf_so' 9923 fi 9924 shlibpath_var=LD_LIBRARY_PATH 9925 shlibpath_overrides_runpath=yes 9926 hardcode_into_libs=yes 9927 ;; 9928 9929newsos6) 9930 version_type=linux 9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9932 shlibpath_var=LD_LIBRARY_PATH 9933 shlibpath_overrides_runpath=yes 9934 ;; 9935 9936*nto* | *qnx*) 9937 version_type=qnx 9938 need_lib_prefix=no 9939 need_version=no 9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9941 soname_spec='${libname}${release}${shared_ext}$major' 9942 shlibpath_var=LD_LIBRARY_PATH 9943 shlibpath_overrides_runpath=no 9944 hardcode_into_libs=yes 9945 dynamic_linker='ldqnx.so' 9946 ;; 9947 9948openbsd*) 9949 version_type=sunos 9950 sys_lib_dlsearch_path_spec="/usr/lib" 9951 need_lib_prefix=no 9952 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9953 case $host_os in 9954 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9955 *) need_version=no ;; 9956 esac 9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9959 shlibpath_var=LD_LIBRARY_PATH 9960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9961 case $host_os in 9962 openbsd2.[89] | openbsd2.[89].*) 9963 shlibpath_overrides_runpath=no 9964 ;; 9965 *) 9966 shlibpath_overrides_runpath=yes 9967 ;; 9968 esac 9969 else 9970 shlibpath_overrides_runpath=yes 9971 fi 9972 ;; 9973 9974os2*) 9975 libname_spec='$name' 9976 shrext_cmds=".dll" 9977 need_lib_prefix=no 9978 library_names_spec='$libname${shared_ext} $libname.a' 9979 dynamic_linker='OS/2 ld.exe' 9980 shlibpath_var=LIBPATH 9981 ;; 9982 9983osf3* | osf4* | osf5*) 9984 version_type=osf 9985 need_lib_prefix=no 9986 need_version=no 9987 soname_spec='${libname}${release}${shared_ext}$major' 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9989 shlibpath_var=LD_LIBRARY_PATH 9990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9992 ;; 9993 9994rdos*) 9995 dynamic_linker=no 9996 ;; 9997 9998solaris*) 9999 version_type=linux 10000 need_lib_prefix=no 10001 need_version=no 10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10003 soname_spec='${libname}${release}${shared_ext}$major' 10004 shlibpath_var=LD_LIBRARY_PATH 10005 shlibpath_overrides_runpath=yes 10006 hardcode_into_libs=yes 10007 # ldd complains unless libraries are executable 10008 postinstall_cmds='chmod +x $lib' 10009 ;; 10010 10011sunos4*) 10012 version_type=sunos 10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10015 shlibpath_var=LD_LIBRARY_PATH 10016 shlibpath_overrides_runpath=yes 10017 if test "$with_gnu_ld" = yes; then 10018 need_lib_prefix=no 10019 fi 10020 need_version=yes 10021 ;; 10022 10023sysv4 | sysv4.3*) 10024 version_type=linux 10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10026 soname_spec='${libname}${release}${shared_ext}$major' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 case $host_vendor in 10029 sni) 10030 shlibpath_overrides_runpath=no 10031 need_lib_prefix=no 10032 runpath_var=LD_RUN_PATH 10033 ;; 10034 siemens) 10035 need_lib_prefix=no 10036 ;; 10037 motorola) 10038 need_lib_prefix=no 10039 need_version=no 10040 shlibpath_overrides_runpath=no 10041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10042 ;; 10043 esac 10044 ;; 10045 10046sysv4*MP*) 10047 if test -d /usr/nec ;then 10048 version_type=linux 10049 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10050 soname_spec='$libname${shared_ext}.$major' 10051 shlibpath_var=LD_LIBRARY_PATH 10052 fi 10053 ;; 10054 10055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10056 version_type=freebsd-elf 10057 need_lib_prefix=no 10058 need_version=no 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10060 soname_spec='${libname}${release}${shared_ext}$major' 10061 shlibpath_var=LD_LIBRARY_PATH 10062 shlibpath_overrides_runpath=yes 10063 hardcode_into_libs=yes 10064 if test "$with_gnu_ld" = yes; then 10065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10066 else 10067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10068 case $host_os in 10069 sco3.2v5*) 10070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10071 ;; 10072 esac 10073 fi 10074 sys_lib_dlsearch_path_spec='/usr/lib' 10075 ;; 10076 10077tpf*) 10078 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10079 version_type=linux 10080 need_lib_prefix=no 10081 need_version=no 10082 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10083 shlibpath_var=LD_LIBRARY_PATH 10084 shlibpath_overrides_runpath=no 10085 hardcode_into_libs=yes 10086 ;; 10087 10088uts4*) 10089 version_type=linux 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 soname_spec='${libname}${release}${shared_ext}$major' 10092 shlibpath_var=LD_LIBRARY_PATH 10093 ;; 10094 10095*) 10096 dynamic_linker=no 10097 ;; 10098esac 10099{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10100echo "${ECHO_T}$dynamic_linker" >&6; } 10101test "$dynamic_linker" = no && can_build_shared=no 10102 10103variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10104if test "$GCC" = yes; then 10105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10106fi 10107 10108if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10109 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10110fi 10111if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10112 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10113fi 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10202echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10203hardcode_action= 10204if test -n "$hardcode_libdir_flag_spec" || 10205 test -n "$runpath_var" || 10206 test "X$hardcode_automatic" = "Xyes" ; then 10207 10208 # We can hardcode non-existent directories. 10209 if test "$hardcode_direct" != no && 10210 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10211 # have to relink, otherwise we might link with an installed library 10212 # when we should be linking with a yet-to-be-installed one 10213 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10214 test "$hardcode_minus_L" != no; then 10215 # Linking always hardcodes the temporary library directory. 10216 hardcode_action=relink 10217 else 10218 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10219 hardcode_action=immediate 10220 fi 10221else 10222 # We cannot hardcode anything, or else we can only hardcode existing 10223 # directories. 10224 hardcode_action=unsupported 10225fi 10226{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10227echo "${ECHO_T}$hardcode_action" >&6; } 10228 10229if test "$hardcode_action" = relink || 10230 test "$inherit_rpath" = yes; then 10231 # Fast installation is not supported 10232 enable_fast_install=no 10233elif test "$shlibpath_overrides_runpath" = yes || 10234 test "$enable_shared" = no; then 10235 # Fast installation is not necessary 10236 enable_fast_install=needless 10237fi 10238 10239 10240 10241 10242 10243 10244 if test "x$enable_dlopen" != xyes; then 10245 enable_dlopen=unknown 10246 enable_dlopen_self=unknown 10247 enable_dlopen_self_static=unknown 10248else 10249 lt_cv_dlopen=no 10250 lt_cv_dlopen_libs= 10251 10252 case $host_os in 10253 beos*) 10254 lt_cv_dlopen="load_add_on" 10255 lt_cv_dlopen_libs= 10256 lt_cv_dlopen_self=yes 10257 ;; 10258 10259 mingw* | pw32*) 10260 lt_cv_dlopen="LoadLibrary" 10261 lt_cv_dlopen_libs= 10262 ;; 10263 10264 cygwin*) 10265 lt_cv_dlopen="dlopen" 10266 lt_cv_dlopen_libs= 10267 ;; 10268 10269 darwin*) 10270 # if libdl is installed we need to link against it 10271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10272echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10273if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10274 echo $ECHO_N "(cached) $ECHO_C" >&6 10275else 10276 ac_check_lib_save_LIBS=$LIBS 10277LIBS="-ldl $LIBS" 10278cat >conftest.$ac_ext <<_ACEOF 10279/* confdefs.h. */ 10280_ACEOF 10281cat confdefs.h >>conftest.$ac_ext 10282cat >>conftest.$ac_ext <<_ACEOF 10283/* end confdefs.h. */ 10284 10285/* Override any GCC internal prototype to avoid an error. 10286 Use char because int might match the return type of a GCC 10287 builtin and then its argument prototype would still apply. */ 10288#ifdef __cplusplus 10289extern "C" 10290#endif 10291char dlopen (); 10292int 10293main () 10294{ 10295return dlopen (); 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300rm -f conftest.$ac_objext conftest$ac_exeext 10301if { (ac_try="$ac_link" 10302case "(($ac_try" in 10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10304 *) ac_try_echo=$ac_try;; 10305esac 10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10307 (eval "$ac_link") 2>conftest.er1 10308 ac_status=$? 10309 grep -v '^ *+' conftest.er1 >conftest.err 10310 rm -f conftest.er1 10311 cat conftest.err >&5 10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 (exit $ac_status); } && { 10314 test -z "$ac_c_werror_flag" || 10315 test ! -s conftest.err 10316 } && test -s conftest$ac_exeext && 10317 $as_test_x conftest$ac_exeext; then 10318 ac_cv_lib_dl_dlopen=yes 10319else 10320 echo "$as_me: failed program was:" >&5 10321sed 's/^/| /' conftest.$ac_ext >&5 10322 10323 ac_cv_lib_dl_dlopen=no 10324fi 10325 10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10327 conftest$ac_exeext conftest.$ac_ext 10328LIBS=$ac_check_lib_save_LIBS 10329fi 10330{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10332if test $ac_cv_lib_dl_dlopen = yes; then 10333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10334else 10335 10336 lt_cv_dlopen="dyld" 10337 lt_cv_dlopen_libs= 10338 lt_cv_dlopen_self=yes 10339 10340fi 10341 10342 ;; 10343 10344 *) 10345 { echo "$as_me:$LINENO: checking for shl_load" >&5 10346echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10347if test "${ac_cv_func_shl_load+set}" = set; then 10348 echo $ECHO_N "(cached) $ECHO_C" >&6 10349else 10350 cat >conftest.$ac_ext <<_ACEOF 10351/* confdefs.h. */ 10352_ACEOF 10353cat confdefs.h >>conftest.$ac_ext 10354cat >>conftest.$ac_ext <<_ACEOF 10355/* end confdefs.h. */ 10356/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10357 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10358#define shl_load innocuous_shl_load 10359 10360/* System header to define __stub macros and hopefully few prototypes, 10361 which can conflict with char shl_load (); below. 10362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10363 <limits.h> exists even on freestanding compilers. */ 10364 10365#ifdef __STDC__ 10366# include <limits.h> 10367#else 10368# include <assert.h> 10369#endif 10370 10371#undef shl_load 10372 10373/* Override any GCC internal prototype to avoid an error. 10374 Use char because int might match the return type of a GCC 10375 builtin and then its argument prototype would still apply. */ 10376#ifdef __cplusplus 10377extern "C" 10378#endif 10379char shl_load (); 10380/* The GNU C library defines this for functions which it implements 10381 to always fail with ENOSYS. Some functions are actually named 10382 something starting with __ and the normal name is an alias. */ 10383#if defined __stub_shl_load || defined __stub___shl_load 10384choke me 10385#endif 10386 10387int 10388main () 10389{ 10390return shl_load (); 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395rm -f conftest.$ac_objext conftest$ac_exeext 10396if { (ac_try="$ac_link" 10397case "(($ac_try" in 10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10399 *) ac_try_echo=$ac_try;; 10400esac 10401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10402 (eval "$ac_link") 2>conftest.er1 10403 ac_status=$? 10404 grep -v '^ *+' conftest.er1 >conftest.err 10405 rm -f conftest.er1 10406 cat conftest.err >&5 10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10408 (exit $ac_status); } && { 10409 test -z "$ac_c_werror_flag" || 10410 test ! -s conftest.err 10411 } && test -s conftest$ac_exeext && 10412 $as_test_x conftest$ac_exeext; then 10413 ac_cv_func_shl_load=yes 10414else 10415 echo "$as_me: failed program was:" >&5 10416sed 's/^/| /' conftest.$ac_ext >&5 10417 10418 ac_cv_func_shl_load=no 10419fi 10420 10421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10422 conftest$ac_exeext conftest.$ac_ext 10423fi 10424{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10425echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10426if test $ac_cv_func_shl_load = yes; then 10427 lt_cv_dlopen="shl_load" 10428else 10429 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10430echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10431if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10432 echo $ECHO_N "(cached) $ECHO_C" >&6 10433else 10434 ac_check_lib_save_LIBS=$LIBS 10435LIBS="-ldld $LIBS" 10436cat >conftest.$ac_ext <<_ACEOF 10437/* confdefs.h. */ 10438_ACEOF 10439cat confdefs.h >>conftest.$ac_ext 10440cat >>conftest.$ac_ext <<_ACEOF 10441/* end confdefs.h. */ 10442 10443/* Override any GCC internal prototype to avoid an error. 10444 Use char because int might match the return type of a GCC 10445 builtin and then its argument prototype would still apply. */ 10446#ifdef __cplusplus 10447extern "C" 10448#endif 10449char shl_load (); 10450int 10451main () 10452{ 10453return shl_load (); 10454 ; 10455 return 0; 10456} 10457_ACEOF 10458rm -f conftest.$ac_objext conftest$ac_exeext 10459if { (ac_try="$ac_link" 10460case "(($ac_try" in 10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10462 *) ac_try_echo=$ac_try;; 10463esac 10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10465 (eval "$ac_link") 2>conftest.er1 10466 ac_status=$? 10467 grep -v '^ *+' conftest.er1 >conftest.err 10468 rm -f conftest.er1 10469 cat conftest.err >&5 10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10471 (exit $ac_status); } && { 10472 test -z "$ac_c_werror_flag" || 10473 test ! -s conftest.err 10474 } && test -s conftest$ac_exeext && 10475 $as_test_x conftest$ac_exeext; then 10476 ac_cv_lib_dld_shl_load=yes 10477else 10478 echo "$as_me: failed program was:" >&5 10479sed 's/^/| /' conftest.$ac_ext >&5 10480 10481 ac_cv_lib_dld_shl_load=no 10482fi 10483 10484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10485 conftest$ac_exeext conftest.$ac_ext 10486LIBS=$ac_check_lib_save_LIBS 10487fi 10488{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10489echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10490if test $ac_cv_lib_dld_shl_load = yes; then 10491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10492else 10493 { echo "$as_me:$LINENO: checking for dlopen" >&5 10494echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10495if test "${ac_cv_func_dlopen+set}" = set; then 10496 echo $ECHO_N "(cached) $ECHO_C" >&6 10497else 10498 cat >conftest.$ac_ext <<_ACEOF 10499/* confdefs.h. */ 10500_ACEOF 10501cat confdefs.h >>conftest.$ac_ext 10502cat >>conftest.$ac_ext <<_ACEOF 10503/* end confdefs.h. */ 10504/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10506#define dlopen innocuous_dlopen 10507 10508/* System header to define __stub macros and hopefully few prototypes, 10509 which can conflict with char dlopen (); below. 10510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10511 <limits.h> exists even on freestanding compilers. */ 10512 10513#ifdef __STDC__ 10514# include <limits.h> 10515#else 10516# include <assert.h> 10517#endif 10518 10519#undef dlopen 10520 10521/* Override any GCC internal prototype to avoid an error. 10522 Use char because int might match the return type of a GCC 10523 builtin and then its argument prototype would still apply. */ 10524#ifdef __cplusplus 10525extern "C" 10526#endif 10527char dlopen (); 10528/* The GNU C library defines this for functions which it implements 10529 to always fail with ENOSYS. Some functions are actually named 10530 something starting with __ and the normal name is an alias. */ 10531#if defined __stub_dlopen || defined __stub___dlopen 10532choke me 10533#endif 10534 10535int 10536main () 10537{ 10538return dlopen (); 10539 ; 10540 return 0; 10541} 10542_ACEOF 10543rm -f conftest.$ac_objext conftest$ac_exeext 10544if { (ac_try="$ac_link" 10545case "(($ac_try" in 10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10547 *) ac_try_echo=$ac_try;; 10548esac 10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10550 (eval "$ac_link") 2>conftest.er1 10551 ac_status=$? 10552 grep -v '^ *+' conftest.er1 >conftest.err 10553 rm -f conftest.er1 10554 cat conftest.err >&5 10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10556 (exit $ac_status); } && { 10557 test -z "$ac_c_werror_flag" || 10558 test ! -s conftest.err 10559 } && test -s conftest$ac_exeext && 10560 $as_test_x conftest$ac_exeext; then 10561 ac_cv_func_dlopen=yes 10562else 10563 echo "$as_me: failed program was:" >&5 10564sed 's/^/| /' conftest.$ac_ext >&5 10565 10566 ac_cv_func_dlopen=no 10567fi 10568 10569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10570 conftest$ac_exeext conftest.$ac_ext 10571fi 10572{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10573echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10574if test $ac_cv_func_dlopen = yes; then 10575 lt_cv_dlopen="dlopen" 10576else 10577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10578echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10579if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10580 echo $ECHO_N "(cached) $ECHO_C" >&6 10581else 10582 ac_check_lib_save_LIBS=$LIBS 10583LIBS="-ldl $LIBS" 10584cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591/* Override any GCC internal prototype to avoid an error. 10592 Use char because int might match the return type of a GCC 10593 builtin and then its argument prototype would still apply. */ 10594#ifdef __cplusplus 10595extern "C" 10596#endif 10597char dlopen (); 10598int 10599main () 10600{ 10601return dlopen (); 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606rm -f conftest.$ac_objext conftest$ac_exeext 10607if { (ac_try="$ac_link" 10608case "(($ac_try" in 10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10610 *) ac_try_echo=$ac_try;; 10611esac 10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10613 (eval "$ac_link") 2>conftest.er1 10614 ac_status=$? 10615 grep -v '^ *+' conftest.er1 >conftest.err 10616 rm -f conftest.er1 10617 cat conftest.err >&5 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); } && { 10620 test -z "$ac_c_werror_flag" || 10621 test ! -s conftest.err 10622 } && test -s conftest$ac_exeext && 10623 $as_test_x conftest$ac_exeext; then 10624 ac_cv_lib_dl_dlopen=yes 10625else 10626 echo "$as_me: failed program was:" >&5 10627sed 's/^/| /' conftest.$ac_ext >&5 10628 10629 ac_cv_lib_dl_dlopen=no 10630fi 10631 10632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10633 conftest$ac_exeext conftest.$ac_ext 10634LIBS=$ac_check_lib_save_LIBS 10635fi 10636{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10637echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10638if test $ac_cv_lib_dl_dlopen = yes; then 10639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10640else 10641 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10642echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10643if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10644 echo $ECHO_N "(cached) $ECHO_C" >&6 10645else 10646 ac_check_lib_save_LIBS=$LIBS 10647LIBS="-lsvld $LIBS" 10648cat >conftest.$ac_ext <<_ACEOF 10649/* confdefs.h. */ 10650_ACEOF 10651cat confdefs.h >>conftest.$ac_ext 10652cat >>conftest.$ac_ext <<_ACEOF 10653/* end confdefs.h. */ 10654 10655/* Override any GCC internal prototype to avoid an error. 10656 Use char because int might match the return type of a GCC 10657 builtin and then its argument prototype would still apply. */ 10658#ifdef __cplusplus 10659extern "C" 10660#endif 10661char dlopen (); 10662int 10663main () 10664{ 10665return dlopen (); 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext conftest$ac_exeext 10671if { (ac_try="$ac_link" 10672case "(($ac_try" in 10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10674 *) ac_try_echo=$ac_try;; 10675esac 10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10677 (eval "$ac_link") 2>conftest.er1 10678 ac_status=$? 10679 grep -v '^ *+' conftest.er1 >conftest.err 10680 rm -f conftest.er1 10681 cat conftest.err >&5 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10683 (exit $ac_status); } && { 10684 test -z "$ac_c_werror_flag" || 10685 test ! -s conftest.err 10686 } && test -s conftest$ac_exeext && 10687 $as_test_x conftest$ac_exeext; then 10688 ac_cv_lib_svld_dlopen=yes 10689else 10690 echo "$as_me: failed program was:" >&5 10691sed 's/^/| /' conftest.$ac_ext >&5 10692 10693 ac_cv_lib_svld_dlopen=no 10694fi 10695 10696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10697 conftest$ac_exeext conftest.$ac_ext 10698LIBS=$ac_check_lib_save_LIBS 10699fi 10700{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10701echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10702if test $ac_cv_lib_svld_dlopen = yes; then 10703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10704else 10705 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10706echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10707if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10708 echo $ECHO_N "(cached) $ECHO_C" >&6 10709else 10710 ac_check_lib_save_LIBS=$LIBS 10711LIBS="-ldld $LIBS" 10712cat >conftest.$ac_ext <<_ACEOF 10713/* confdefs.h. */ 10714_ACEOF 10715cat confdefs.h >>conftest.$ac_ext 10716cat >>conftest.$ac_ext <<_ACEOF 10717/* end confdefs.h. */ 10718 10719/* Override any GCC internal prototype to avoid an error. 10720 Use char because int might match the return type of a GCC 10721 builtin and then its argument prototype would still apply. */ 10722#ifdef __cplusplus 10723extern "C" 10724#endif 10725char dld_link (); 10726int 10727main () 10728{ 10729return dld_link (); 10730 ; 10731 return 0; 10732} 10733_ACEOF 10734rm -f conftest.$ac_objext conftest$ac_exeext 10735if { (ac_try="$ac_link" 10736case "(($ac_try" in 10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10738 *) ac_try_echo=$ac_try;; 10739esac 10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10741 (eval "$ac_link") 2>conftest.er1 10742 ac_status=$? 10743 grep -v '^ *+' conftest.er1 >conftest.err 10744 rm -f conftest.er1 10745 cat conftest.err >&5 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 (exit $ac_status); } && { 10748 test -z "$ac_c_werror_flag" || 10749 test ! -s conftest.err 10750 } && test -s conftest$ac_exeext && 10751 $as_test_x conftest$ac_exeext; then 10752 ac_cv_lib_dld_dld_link=yes 10753else 10754 echo "$as_me: failed program was:" >&5 10755sed 's/^/| /' conftest.$ac_ext >&5 10756 10757 ac_cv_lib_dld_dld_link=no 10758fi 10759 10760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10761 conftest$ac_exeext conftest.$ac_ext 10762LIBS=$ac_check_lib_save_LIBS 10763fi 10764{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10765echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10766if test $ac_cv_lib_dld_dld_link = yes; then 10767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10768fi 10769 10770 10771fi 10772 10773 10774fi 10775 10776 10777fi 10778 10779 10780fi 10781 10782 10783fi 10784 10785 ;; 10786 esac 10787 10788 if test "x$lt_cv_dlopen" != xno; then 10789 enable_dlopen=yes 10790 else 10791 enable_dlopen=no 10792 fi 10793 10794 case $lt_cv_dlopen in 10795 dlopen) 10796 save_CPPFLAGS="$CPPFLAGS" 10797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10798 10799 save_LDFLAGS="$LDFLAGS" 10800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10801 10802 save_LIBS="$LIBS" 10803 LIBS="$lt_cv_dlopen_libs $LIBS" 10804 10805 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10806echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10807if test "${lt_cv_dlopen_self+set}" = set; then 10808 echo $ECHO_N "(cached) $ECHO_C" >&6 10809else 10810 if test "$cross_compiling" = yes; then : 10811 lt_cv_dlopen_self=cross 10812else 10813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10814 lt_status=$lt_dlunknown 10815 cat > conftest.$ac_ext <<_LT_EOF 10816#line 10816 "configure" 10817#include "confdefs.h" 10818 10819#if HAVE_DLFCN_H 10820#include <dlfcn.h> 10821#endif 10822 10823#include <stdio.h> 10824 10825#ifdef RTLD_GLOBAL 10826# define LT_DLGLOBAL RTLD_GLOBAL 10827#else 10828# ifdef DL_GLOBAL 10829# define LT_DLGLOBAL DL_GLOBAL 10830# else 10831# define LT_DLGLOBAL 0 10832# endif 10833#endif 10834 10835/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10836 find out it does not work in some platform. */ 10837#ifndef LT_DLLAZY_OR_NOW 10838# ifdef RTLD_LAZY 10839# define LT_DLLAZY_OR_NOW RTLD_LAZY 10840# else 10841# ifdef DL_LAZY 10842# define LT_DLLAZY_OR_NOW DL_LAZY 10843# else 10844# ifdef RTLD_NOW 10845# define LT_DLLAZY_OR_NOW RTLD_NOW 10846# else 10847# ifdef DL_NOW 10848# define LT_DLLAZY_OR_NOW DL_NOW 10849# else 10850# define LT_DLLAZY_OR_NOW 0 10851# endif 10852# endif 10853# endif 10854# endif 10855#endif 10856 10857#ifdef __cplusplus 10858extern "C" void exit (int); 10859#endif 10860 10861void fnord() { int i=42;} 10862int main () 10863{ 10864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10865 int status = $lt_dlunknown; 10866 10867 if (self) 10868 { 10869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10871 /* dlclose (self); */ 10872 } 10873 else 10874 puts (dlerror ()); 10875 10876 exit (status); 10877} 10878_LT_EOF 10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10880 (eval $ac_link) 2>&5 10881 ac_status=$? 10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10884 (./conftest; exit; ) >&5 2>/dev/null 10885 lt_status=$? 10886 case x$lt_status in 10887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10890 esac 10891 else : 10892 # compilation failed 10893 lt_cv_dlopen_self=no 10894 fi 10895fi 10896rm -fr conftest* 10897 10898 10899fi 10900{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10901echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10902 10903 if test "x$lt_cv_dlopen_self" = xyes; then 10904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10905 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10906echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10907if test "${lt_cv_dlopen_self_static+set}" = set; then 10908 echo $ECHO_N "(cached) $ECHO_C" >&6 10909else 10910 if test "$cross_compiling" = yes; then : 10911 lt_cv_dlopen_self_static=cross 10912else 10913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10914 lt_status=$lt_dlunknown 10915 cat > conftest.$ac_ext <<_LT_EOF 10916#line 10916 "configure" 10917#include "confdefs.h" 10918 10919#if HAVE_DLFCN_H 10920#include <dlfcn.h> 10921#endif 10922 10923#include <stdio.h> 10924 10925#ifdef RTLD_GLOBAL 10926# define LT_DLGLOBAL RTLD_GLOBAL 10927#else 10928# ifdef DL_GLOBAL 10929# define LT_DLGLOBAL DL_GLOBAL 10930# else 10931# define LT_DLGLOBAL 0 10932# endif 10933#endif 10934 10935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10936 find out it does not work in some platform. */ 10937#ifndef LT_DLLAZY_OR_NOW 10938# ifdef RTLD_LAZY 10939# define LT_DLLAZY_OR_NOW RTLD_LAZY 10940# else 10941# ifdef DL_LAZY 10942# define LT_DLLAZY_OR_NOW DL_LAZY 10943# else 10944# ifdef RTLD_NOW 10945# define LT_DLLAZY_OR_NOW RTLD_NOW 10946# else 10947# ifdef DL_NOW 10948# define LT_DLLAZY_OR_NOW DL_NOW 10949# else 10950# define LT_DLLAZY_OR_NOW 0 10951# endif 10952# endif 10953# endif 10954# endif 10955#endif 10956 10957#ifdef __cplusplus 10958extern "C" void exit (int); 10959#endif 10960 10961void fnord() { int i=42;} 10962int main () 10963{ 10964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10965 int status = $lt_dlunknown; 10966 10967 if (self) 10968 { 10969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10971 /* dlclose (self); */ 10972 } 10973 else 10974 puts (dlerror ()); 10975 10976 exit (status); 10977} 10978_LT_EOF 10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10980 (eval $ac_link) 2>&5 10981 ac_status=$? 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10984 (./conftest; exit; ) >&5 2>/dev/null 10985 lt_status=$? 10986 case x$lt_status in 10987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10990 esac 10991 else : 10992 # compilation failed 10993 lt_cv_dlopen_self_static=no 10994 fi 10995fi 10996rm -fr conftest* 10997 10998 10999fi 11000{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11001echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11002 fi 11003 11004 CPPFLAGS="$save_CPPFLAGS" 11005 LDFLAGS="$save_LDFLAGS" 11006 LIBS="$save_LIBS" 11007 ;; 11008 esac 11009 11010 case $lt_cv_dlopen_self in 11011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11012 *) enable_dlopen_self=unknown ;; 11013 esac 11014 11015 case $lt_cv_dlopen_self_static in 11016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11017 *) enable_dlopen_self_static=unknown ;; 11018 esac 11019fi 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037striplib= 11038old_striplib= 11039{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11040echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11041if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11043 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11044 { echo "$as_me:$LINENO: result: yes" >&5 11045echo "${ECHO_T}yes" >&6; } 11046else 11047# FIXME - insert some real tests, host_os isn't really good enough 11048 case $host_os in 11049 darwin*) 11050 if test -n "$STRIP" ; then 11051 striplib="$STRIP -x" 11052 old_striplib="$STRIP -S" 11053 { echo "$as_me:$LINENO: result: yes" >&5 11054echo "${ECHO_T}yes" >&6; } 11055 else 11056 { echo "$as_me:$LINENO: result: no" >&5 11057echo "${ECHO_T}no" >&6; } 11058 fi 11059 ;; 11060 *) 11061 { echo "$as_me:$LINENO: result: no" >&5 11062echo "${ECHO_T}no" >&6; } 11063 ;; 11064 esac 11065fi 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 # Report which library types will actually be built 11079 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11080echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11081 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 11082echo "${ECHO_T}$can_build_shared" >&6; } 11083 11084 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11085echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11086 test "$can_build_shared" = "no" && enable_shared=no 11087 11088 # On AIX, shared libraries and static libraries use the same namespace, and 11089 # are all built from PIC. 11090 case $host_os in 11091 aix3*) 11092 test "$enable_shared" = yes && enable_static=no 11093 if test -n "$RANLIB"; then 11094 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11095 postinstall_cmds='$RANLIB $lib' 11096 fi 11097 ;; 11098 11099 aix[4-9]*) 11100 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11101 test "$enable_shared" = yes && enable_static=no 11102 fi 11103 ;; 11104 esac 11105 { echo "$as_me:$LINENO: result: $enable_shared" >&5 11106echo "${ECHO_T}$enable_shared" >&6; } 11107 11108 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11109echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11110 # Make sure either enable_shared or enable_static is yes. 11111 test "$enable_shared" = yes || enable_static=yes 11112 { echo "$as_me:$LINENO: result: $enable_static" >&5 11113echo "${ECHO_T}$enable_static" >&6; } 11114 11115 11116 11117 11118fi 11119ac_ext=c 11120ac_cpp='$CPP $CPPFLAGS' 11121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11123ac_compiler_gnu=$ac_cv_c_compiler_gnu 11124 11125CC="$lt_save_CC" 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 ac_config_commands="$ac_config_commands libtool" 11140 11141 11142 11143 11144# Only expand once: 11145 11146 11147{ echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 11148echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; } 11149if test "${libltdl_cv_shlibext+set}" = set; then 11150 echo $ECHO_N "(cached) $ECHO_C" >&6 11151else 11152 11153module=yes 11154eval libltdl_cv_shlibext=$shrext_cmds 11155 11156fi 11157{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 11158echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 11159if test -n "$libltdl_cv_shlibext"; then 11160 11161cat >>confdefs.h <<_ACEOF 11162#define LT_MODULE_EXT "$libltdl_cv_shlibext" 11163_ACEOF 11164 11165fi 11166 11167{ echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5 11168echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; } 11169if test "${lt_cv_module_path_var+set}" = set; then 11170 echo $ECHO_N "(cached) $ECHO_C" >&6 11171else 11172 lt_cv_module_path_var="$shlibpath_var" 11173fi 11174{ echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5 11175echo "${ECHO_T}$lt_cv_module_path_var" >&6; } 11176if test -n "$lt_cv_module_path_var"; then 11177 11178cat >>confdefs.h <<_ACEOF 11179#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 11180_ACEOF 11181 11182fi 11183 11184{ echo "$as_me:$LINENO: checking for the default library search path" >&5 11185echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 11186if test "${lt_cv_sys_dlsearch_path+set}" = set; then 11187 echo $ECHO_N "(cached) $ECHO_C" >&6 11188else 11189 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" 11190fi 11191{ echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5 11192echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; } 11193if test -n "$lt_cv_sys_dlsearch_path"; then 11194 sys_dlsearch_path= 11195 for dir in $lt_cv_sys_dlsearch_path; do 11196 if test -z "$sys_dlsearch_path"; then 11197 sys_dlsearch_path="$dir" 11198 else 11199 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 11200 fi 11201 done 11202 11203cat >>confdefs.h <<_ACEOF 11204#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 11205_ACEOF 11206 11207fi 11208 11209 11210LT_DLLOADERS= 11211 11212 11213ac_ext=c 11214ac_cpp='$CPP $CPPFLAGS' 11215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11217ac_compiler_gnu=$ac_cv_c_compiler_gnu 11218 11219 11220LIBADD_DLOPEN= 11221{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 11222echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 11223if test "${ac_cv_search_dlopen+set}" = set; then 11224 echo $ECHO_N "(cached) $ECHO_C" >&6 11225else 11226 ac_func_search_save_LIBS=$LIBS 11227cat >conftest.$ac_ext <<_ACEOF 11228/* confdefs.h. */ 11229_ACEOF 11230cat confdefs.h >>conftest.$ac_ext 11231cat >>conftest.$ac_ext <<_ACEOF 11232/* end confdefs.h. */ 11233 11234/* Override any GCC internal prototype to avoid an error. 11235 Use char because int might match the return type of a GCC 11236 builtin and then its argument prototype would still apply. */ 11237#ifdef __cplusplus 11238extern "C" 11239#endif 11240char dlopen (); 11241int 11242main () 11243{ 11244return dlopen (); 11245 ; 11246 return 0; 11247} 11248_ACEOF 11249for ac_lib in '' dl; do 11250 if test -z "$ac_lib"; then 11251 ac_res="none required" 11252 else 11253 ac_res=-l$ac_lib 11254 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11255 fi 11256 rm -f conftest.$ac_objext conftest$ac_exeext 11257if { (ac_try="$ac_link" 11258case "(($ac_try" in 11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11260 *) ac_try_echo=$ac_try;; 11261esac 11262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11263 (eval "$ac_link") 2>conftest.er1 11264 ac_status=$? 11265 grep -v '^ *+' conftest.er1 >conftest.err 11266 rm -f conftest.er1 11267 cat conftest.err >&5 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11269 (exit $ac_status); } && { 11270 test -z "$ac_c_werror_flag" || 11271 test ! -s conftest.err 11272 } && test -s conftest$ac_exeext && 11273 $as_test_x conftest$ac_exeext; then 11274 ac_cv_search_dlopen=$ac_res 11275else 11276 echo "$as_me: failed program was:" >&5 11277sed 's/^/| /' conftest.$ac_ext >&5 11278 11279 11280fi 11281 11282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11283 conftest$ac_exeext 11284 if test "${ac_cv_search_dlopen+set}" = set; then 11285 break 11286fi 11287done 11288if test "${ac_cv_search_dlopen+set}" = set; then 11289 : 11290else 11291 ac_cv_search_dlopen=no 11292fi 11293rm conftest.$ac_ext 11294LIBS=$ac_func_search_save_LIBS 11295fi 11296{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 11297echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 11298ac_res=$ac_cv_search_dlopen 11299if test "$ac_res" != no; then 11300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11301 11302cat >>confdefs.h <<\_ACEOF 11303#define HAVE_LIBDL 1 11304_ACEOF 11305 11306 if test "$ac_cv_search_dlopen" != "none required" ; then 11307 LIBADD_DLOPEN="-ldl" 11308 fi 11309 libltdl_cv_lib_dl_dlopen="yes" 11310 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11311else 11312 cat >conftest.$ac_ext <<_ACEOF 11313/* confdefs.h. */ 11314_ACEOF 11315cat confdefs.h >>conftest.$ac_ext 11316cat >>conftest.$ac_ext <<_ACEOF 11317/* end confdefs.h. */ 11318#if HAVE_DLFCN_H 11319# include <dlfcn.h> 11320#endif 11321 11322int 11323main () 11324{ 11325dlopen(0, 0); 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330rm -f conftest.$ac_objext conftest$ac_exeext 11331if { (ac_try="$ac_link" 11332case "(($ac_try" in 11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11334 *) ac_try_echo=$ac_try;; 11335esac 11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11337 (eval "$ac_link") 2>conftest.er1 11338 ac_status=$? 11339 grep -v '^ *+' conftest.er1 >conftest.err 11340 rm -f conftest.er1 11341 cat conftest.err >&5 11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11343 (exit $ac_status); } && { 11344 test -z "$ac_c_werror_flag" || 11345 test ! -s conftest.err 11346 } && test -s conftest$ac_exeext && 11347 $as_test_x conftest$ac_exeext; then 11348 11349cat >>confdefs.h <<\_ACEOF 11350#define HAVE_LIBDL 1 11351_ACEOF 11352 11353 libltdl_cv_func_dlopen="yes" 11354 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11355else 11356 echo "$as_me: failed program was:" >&5 11357sed 's/^/| /' conftest.$ac_ext >&5 11358 11359 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11360echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11361if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11362 echo $ECHO_N "(cached) $ECHO_C" >&6 11363else 11364 ac_check_lib_save_LIBS=$LIBS 11365LIBS="-lsvld $LIBS" 11366cat >conftest.$ac_ext <<_ACEOF 11367/* confdefs.h. */ 11368_ACEOF 11369cat confdefs.h >>conftest.$ac_ext 11370cat >>conftest.$ac_ext <<_ACEOF 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char dlopen (); 11380int 11381main () 11382{ 11383return dlopen (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388rm -f conftest.$ac_objext conftest$ac_exeext 11389if { (ac_try="$ac_link" 11390case "(($ac_try" in 11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11392 *) ac_try_echo=$ac_try;; 11393esac 11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11395 (eval "$ac_link") 2>conftest.er1 11396 ac_status=$? 11397 grep -v '^ *+' conftest.er1 >conftest.err 11398 rm -f conftest.er1 11399 cat conftest.err >&5 11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11401 (exit $ac_status); } && { 11402 test -z "$ac_c_werror_flag" || 11403 test ! -s conftest.err 11404 } && test -s conftest$ac_exeext && 11405 $as_test_x conftest$ac_exeext; then 11406 ac_cv_lib_svld_dlopen=yes 11407else 11408 echo "$as_me: failed program was:" >&5 11409sed 's/^/| /' conftest.$ac_ext >&5 11410 11411 ac_cv_lib_svld_dlopen=no 11412fi 11413 11414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11415 conftest$ac_exeext conftest.$ac_ext 11416LIBS=$ac_check_lib_save_LIBS 11417fi 11418{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11419echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11420if test $ac_cv_lib_svld_dlopen = yes; then 11421 11422cat >>confdefs.h <<\_ACEOF 11423#define HAVE_LIBDL 1 11424_ACEOF 11425 11426 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 11427 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 11428fi 11429 11430fi 11431 11432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11433 conftest$ac_exeext conftest.$ac_ext 11434fi 11435 11436if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 11437then 11438 lt_save_LIBS="$LIBS" 11439 LIBS="$LIBS $LIBADD_DLOPEN" 11440 11441for ac_func in dlerror 11442do 11443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11444{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11447 echo $ECHO_N "(cached) $ECHO_C" >&6 11448else 11449 cat >conftest.$ac_ext <<_ACEOF 11450/* confdefs.h. */ 11451_ACEOF 11452cat confdefs.h >>conftest.$ac_ext 11453cat >>conftest.$ac_ext <<_ACEOF 11454/* end confdefs.h. */ 11455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11457#define $ac_func innocuous_$ac_func 11458 11459/* System header to define __stub macros and hopefully few prototypes, 11460 which can conflict with char $ac_func (); below. 11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11462 <limits.h> exists even on freestanding compilers. */ 11463 11464#ifdef __STDC__ 11465# include <limits.h> 11466#else 11467# include <assert.h> 11468#endif 11469 11470#undef $ac_func 11471 11472/* Override any GCC internal prototype to avoid an error. 11473 Use char because int might match the return type of a GCC 11474 builtin and then its argument prototype would still apply. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478char $ac_func (); 11479/* The GNU C library defines this for functions which it implements 11480 to always fail with ENOSYS. Some functions are actually named 11481 something starting with __ and the normal name is an alias. */ 11482#if defined __stub_$ac_func || defined __stub___$ac_func 11483choke me 11484#endif 11485 11486int 11487main () 11488{ 11489return $ac_func (); 11490 ; 11491 return 0; 11492} 11493_ACEOF 11494rm -f conftest.$ac_objext conftest$ac_exeext 11495if { (ac_try="$ac_link" 11496case "(($ac_try" in 11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11498 *) ac_try_echo=$ac_try;; 11499esac 11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11501 (eval "$ac_link") 2>conftest.er1 11502 ac_status=$? 11503 grep -v '^ *+' conftest.er1 >conftest.err 11504 rm -f conftest.er1 11505 cat conftest.err >&5 11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11507 (exit $ac_status); } && { 11508 test -z "$ac_c_werror_flag" || 11509 test ! -s conftest.err 11510 } && test -s conftest$ac_exeext && 11511 $as_test_x conftest$ac_exeext; then 11512 eval "$as_ac_var=yes" 11513else 11514 echo "$as_me: failed program was:" >&5 11515sed 's/^/| /' conftest.$ac_ext >&5 11516 11517 eval "$as_ac_var=no" 11518fi 11519 11520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11521 conftest$ac_exeext conftest.$ac_ext 11522fi 11523ac_res=`eval echo '${'$as_ac_var'}'` 11524 { echo "$as_me:$LINENO: result: $ac_res" >&5 11525echo "${ECHO_T}$ac_res" >&6; } 11526if test `eval echo '${'$as_ac_var'}'` = yes; then 11527 cat >>confdefs.h <<_ACEOF 11528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11529_ACEOF 11530 11531fi 11532done 11533 11534 LIBS="$lt_save_LIBS" 11535fi 11536 11537 11538LIBADD_SHL_LOAD= 11539{ echo "$as_me:$LINENO: checking for shl_load" >&5 11540echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11541if test "${ac_cv_func_shl_load+set}" = set; then 11542 echo $ECHO_N "(cached) $ECHO_C" >&6 11543else 11544 cat >conftest.$ac_ext <<_ACEOF 11545/* confdefs.h. */ 11546_ACEOF 11547cat confdefs.h >>conftest.$ac_ext 11548cat >>conftest.$ac_ext <<_ACEOF 11549/* end confdefs.h. */ 11550/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11551 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11552#define shl_load innocuous_shl_load 11553 11554/* System header to define __stub macros and hopefully few prototypes, 11555 which can conflict with char shl_load (); below. 11556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11557 <limits.h> exists even on freestanding compilers. */ 11558 11559#ifdef __STDC__ 11560# include <limits.h> 11561#else 11562# include <assert.h> 11563#endif 11564 11565#undef shl_load 11566 11567/* Override any GCC internal prototype to avoid an error. 11568 Use char because int might match the return type of a GCC 11569 builtin and then its argument prototype would still apply. */ 11570#ifdef __cplusplus 11571extern "C" 11572#endif 11573char shl_load (); 11574/* The GNU C library defines this for functions which it implements 11575 to always fail with ENOSYS. Some functions are actually named 11576 something starting with __ and the normal name is an alias. */ 11577#if defined __stub_shl_load || defined __stub___shl_load 11578choke me 11579#endif 11580 11581int 11582main () 11583{ 11584return shl_load (); 11585 ; 11586 return 0; 11587} 11588_ACEOF 11589rm -f conftest.$ac_objext conftest$ac_exeext 11590if { (ac_try="$ac_link" 11591case "(($ac_try" in 11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11593 *) ac_try_echo=$ac_try;; 11594esac 11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11596 (eval "$ac_link") 2>conftest.er1 11597 ac_status=$? 11598 grep -v '^ *+' conftest.er1 >conftest.err 11599 rm -f conftest.er1 11600 cat conftest.err >&5 11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11602 (exit $ac_status); } && { 11603 test -z "$ac_c_werror_flag" || 11604 test ! -s conftest.err 11605 } && test -s conftest$ac_exeext && 11606 $as_test_x conftest$ac_exeext; then 11607 ac_cv_func_shl_load=yes 11608else 11609 echo "$as_me: failed program was:" >&5 11610sed 's/^/| /' conftest.$ac_ext >&5 11611 11612 ac_cv_func_shl_load=no 11613fi 11614 11615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11616 conftest$ac_exeext conftest.$ac_ext 11617fi 11618{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11619echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11620if test $ac_cv_func_shl_load = yes; then 11621 11622cat >>confdefs.h <<\_ACEOF 11623#define HAVE_SHL_LOAD 1 11624_ACEOF 11625 11626 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 11627else 11628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11630if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11631 echo $ECHO_N "(cached) $ECHO_C" >&6 11632else 11633 ac_check_lib_save_LIBS=$LIBS 11634LIBS="-ldld $LIBS" 11635cat >conftest.$ac_ext <<_ACEOF 11636/* confdefs.h. */ 11637_ACEOF 11638cat confdefs.h >>conftest.$ac_ext 11639cat >>conftest.$ac_ext <<_ACEOF 11640/* end confdefs.h. */ 11641 11642/* Override any GCC internal prototype to avoid an error. 11643 Use char because int might match the return type of a GCC 11644 builtin and then its argument prototype would still apply. */ 11645#ifdef __cplusplus 11646extern "C" 11647#endif 11648char shl_load (); 11649int 11650main () 11651{ 11652return shl_load (); 11653 ; 11654 return 0; 11655} 11656_ACEOF 11657rm -f conftest.$ac_objext conftest$ac_exeext 11658if { (ac_try="$ac_link" 11659case "(($ac_try" in 11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11661 *) ac_try_echo=$ac_try;; 11662esac 11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11664 (eval "$ac_link") 2>conftest.er1 11665 ac_status=$? 11666 grep -v '^ *+' conftest.er1 >conftest.err 11667 rm -f conftest.er1 11668 cat conftest.err >&5 11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11670 (exit $ac_status); } && { 11671 test -z "$ac_c_werror_flag" || 11672 test ! -s conftest.err 11673 } && test -s conftest$ac_exeext && 11674 $as_test_x conftest$ac_exeext; then 11675 ac_cv_lib_dld_shl_load=yes 11676else 11677 echo "$as_me: failed program was:" >&5 11678sed 's/^/| /' conftest.$ac_ext >&5 11679 11680 ac_cv_lib_dld_shl_load=no 11681fi 11682 11683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11684 conftest$ac_exeext conftest.$ac_ext 11685LIBS=$ac_check_lib_save_LIBS 11686fi 11687{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11688echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11689if test $ac_cv_lib_dld_shl_load = yes; then 11690 11691cat >>confdefs.h <<\_ACEOF 11692#define HAVE_SHL_LOAD 1 11693_ACEOF 11694 11695 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 11696 LIBADD_SHL_LOAD="-ldld" 11697fi 11698 11699fi 11700 11701 11702 11703case $host_os in 11704darwin[1567].*) 11705# We only want this for pre-Mac OS X 10.4. 11706 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 11707echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 11708if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 11709 echo $ECHO_N "(cached) $ECHO_C" >&6 11710else 11711 cat >conftest.$ac_ext <<_ACEOF 11712/* confdefs.h. */ 11713_ACEOF 11714cat confdefs.h >>conftest.$ac_ext 11715cat >>conftest.$ac_ext <<_ACEOF 11716/* end confdefs.h. */ 11717/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11719#define _dyld_func_lookup innocuous__dyld_func_lookup 11720 11721/* System header to define __stub macros and hopefully few prototypes, 11722 which can conflict with char _dyld_func_lookup (); below. 11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11724 <limits.h> exists even on freestanding compilers. */ 11725 11726#ifdef __STDC__ 11727# include <limits.h> 11728#else 11729# include <assert.h> 11730#endif 11731 11732#undef _dyld_func_lookup 11733 11734/* Override any GCC internal prototype to avoid an error. 11735 Use char because int might match the return type of a GCC 11736 builtin and then its argument prototype would still apply. */ 11737#ifdef __cplusplus 11738extern "C" 11739#endif 11740char _dyld_func_lookup (); 11741/* The GNU C library defines this for functions which it implements 11742 to always fail with ENOSYS. Some functions are actually named 11743 something starting with __ and the normal name is an alias. */ 11744#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 11745choke me 11746#endif 11747 11748int 11749main () 11750{ 11751return _dyld_func_lookup (); 11752 ; 11753 return 0; 11754} 11755_ACEOF 11756rm -f conftest.$ac_objext conftest$ac_exeext 11757if { (ac_try="$ac_link" 11758case "(($ac_try" in 11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11760 *) ac_try_echo=$ac_try;; 11761esac 11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11763 (eval "$ac_link") 2>conftest.er1 11764 ac_status=$? 11765 grep -v '^ *+' conftest.er1 >conftest.err 11766 rm -f conftest.er1 11767 cat conftest.err >&5 11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11769 (exit $ac_status); } && { 11770 test -z "$ac_c_werror_flag" || 11771 test ! -s conftest.err 11772 } && test -s conftest$ac_exeext && 11773 $as_test_x conftest$ac_exeext; then 11774 ac_cv_func__dyld_func_lookup=yes 11775else 11776 echo "$as_me: failed program was:" >&5 11777sed 's/^/| /' conftest.$ac_ext >&5 11778 11779 ac_cv_func__dyld_func_lookup=no 11780fi 11781 11782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11783 conftest$ac_exeext conftest.$ac_ext 11784fi 11785{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 11786echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 11787if test $ac_cv_func__dyld_func_lookup = yes; then 11788 11789cat >>confdefs.h <<\_ACEOF 11790#define HAVE_DYLD 1 11791_ACEOF 11792 11793 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 11794fi 11795 11796 ;; 11797beos*) 11798 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 11799 ;; 11800cygwin* | mingw* | os2* | pw32*) 11801 { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5 11802echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; } 11803if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then 11804 echo $ECHO_N "(cached) $ECHO_C" >&6 11805else 11806 cat >conftest.$ac_ext <<_ACEOF 11807/* confdefs.h. */ 11808_ACEOF 11809cat confdefs.h >>conftest.$ac_ext 11810cat >>conftest.$ac_ext <<_ACEOF 11811/* end confdefs.h. */ 11812#include <sys/cygwin.h> 11813 11814int 11815main () 11816{ 11817#ifndef cygwin_conv_path 11818 (void) cygwin_conv_path; 11819#endif 11820 11821 ; 11822 return 0; 11823} 11824_ACEOF 11825rm -f conftest.$ac_objext 11826if { (ac_try="$ac_compile" 11827case "(($ac_try" in 11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11829 *) ac_try_echo=$ac_try;; 11830esac 11831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11832 (eval "$ac_compile") 2>conftest.er1 11833 ac_status=$? 11834 grep -v '^ *+' conftest.er1 >conftest.err 11835 rm -f conftest.er1 11836 cat conftest.err >&5 11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 (exit $ac_status); } && { 11839 test -z "$ac_c_werror_flag" || 11840 test ! -s conftest.err 11841 } && test -s conftest.$ac_objext; then 11842 ac_cv_have_decl_cygwin_conv_path=yes 11843else 11844 echo "$as_me: failed program was:" >&5 11845sed 's/^/| /' conftest.$ac_ext >&5 11846 11847 ac_cv_have_decl_cygwin_conv_path=no 11848fi 11849 11850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11851fi 11852{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5 11853echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; } 11854if test $ac_cv_have_decl_cygwin_conv_path = yes; then 11855 11856cat >>confdefs.h <<_ACEOF 11857#define HAVE_DECL_CYGWIN_CONV_PATH 1 11858_ACEOF 11859 11860 11861else 11862 cat >>confdefs.h <<_ACEOF 11863#define HAVE_DECL_CYGWIN_CONV_PATH 0 11864_ACEOF 11865 11866 11867fi 11868 11869 11870 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 11871 ;; 11872esac 11873 11874{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11875echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11876if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11877 echo $ECHO_N "(cached) $ECHO_C" >&6 11878else 11879 ac_check_lib_save_LIBS=$LIBS 11880LIBS="-ldld $LIBS" 11881cat >conftest.$ac_ext <<_ACEOF 11882/* confdefs.h. */ 11883_ACEOF 11884cat confdefs.h >>conftest.$ac_ext 11885cat >>conftest.$ac_ext <<_ACEOF 11886/* end confdefs.h. */ 11887 11888/* Override any GCC internal prototype to avoid an error. 11889 Use char because int might match the return type of a GCC 11890 builtin and then its argument prototype would still apply. */ 11891#ifdef __cplusplus 11892extern "C" 11893#endif 11894char dld_link (); 11895int 11896main () 11897{ 11898return dld_link (); 11899 ; 11900 return 0; 11901} 11902_ACEOF 11903rm -f conftest.$ac_objext conftest$ac_exeext 11904if { (ac_try="$ac_link" 11905case "(($ac_try" in 11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11907 *) ac_try_echo=$ac_try;; 11908esac 11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11910 (eval "$ac_link") 2>conftest.er1 11911 ac_status=$? 11912 grep -v '^ *+' conftest.er1 >conftest.err 11913 rm -f conftest.er1 11914 cat conftest.err >&5 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11916 (exit $ac_status); } && { 11917 test -z "$ac_c_werror_flag" || 11918 test ! -s conftest.err 11919 } && test -s conftest$ac_exeext && 11920 $as_test_x conftest$ac_exeext; then 11921 ac_cv_lib_dld_dld_link=yes 11922else 11923 echo "$as_me: failed program was:" >&5 11924sed 's/^/| /' conftest.$ac_ext >&5 11925 11926 ac_cv_lib_dld_dld_link=no 11927fi 11928 11929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11930 conftest$ac_exeext conftest.$ac_ext 11931LIBS=$ac_check_lib_save_LIBS 11932fi 11933{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11934echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11935if test $ac_cv_lib_dld_dld_link = yes; then 11936 11937cat >>confdefs.h <<\_ACEOF 11938#define HAVE_DLD 1 11939_ACEOF 11940 11941 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 11942fi 11943 11944 11945 11946 11947LT_DLPREOPEN= 11948if test -n "$LT_DLLOADERS" 11949then 11950 for lt_loader in $LT_DLLOADERS; do 11951 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 11952 done 11953 11954cat >>confdefs.h <<\_ACEOF 11955#define HAVE_LIBDLLOADER 1 11956_ACEOF 11957 11958fi 11959 11960 11961LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 11962 11963 11964ac_ext=c 11965ac_cpp='$CPP $CPPFLAGS' 11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11968ac_compiler_gnu=$ac_cv_c_compiler_gnu 11969 11970 11971{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 11972echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 11973if test "${lt_cv_sys_symbol_underscore+set}" = set; then 11974 echo $ECHO_N "(cached) $ECHO_C" >&6 11975else 11976 lt_cv_sys_symbol_underscore=no 11977 cat > conftest.$ac_ext <<_LT_EOF 11978void nm_test_func(){} 11979int main(){nm_test_func;return 0;} 11980_LT_EOF 11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11982 (eval $ac_compile) 2>&5 11983 ac_status=$? 11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11985 (exit $ac_status); }; then 11986 # Now try to grab the symbols. 11987 ac_nlist=conftest.nm 11988 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 11989 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 11990 ac_status=$? 11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11992 (exit $ac_status); } && test -s "$ac_nlist"; then 11993 # See whether the symbols have a leading underscore. 11994 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 11995 lt_cv_sys_symbol_underscore=yes 11996 else 11997 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 11998 : 11999 else 12000 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 12001 fi 12002 fi 12003 else 12004 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 12005 fi 12006 else 12007 echo "configure: failed program was:" >&5 12008 cat conftest.c >&5 12009 fi 12010 rm -rf conftest* 12011 12012fi 12013{ echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5 12014echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; } 12015 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 12016 12017 12018if test x"$lt_cv_sys_symbol_underscore" = xyes; then 12019 if test x"$libltdl_cv_func_dlopen" = xyes || 12020 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 12021 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 12022echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 12023if test "${libltdl_cv_need_uscore+set}" = set; then 12024 echo $ECHO_N "(cached) $ECHO_C" >&6 12025else 12026 libltdl_cv_need_uscore=unknown 12027 save_LIBS="$LIBS" 12028 LIBS="$LIBS $LIBADD_DLOPEN" 12029 if test "$cross_compiling" = yes; then : 12030 libltdl_cv_need_uscore=cross 12031else 12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12033 lt_status=$lt_dlunknown 12034 cat > conftest.$ac_ext <<_LT_EOF 12035#line 12035 "configure" 12036#include "confdefs.h" 12037 12038#if HAVE_DLFCN_H 12039#include <dlfcn.h> 12040#endif 12041 12042#include <stdio.h> 12043 12044#ifdef RTLD_GLOBAL 12045# define LT_DLGLOBAL RTLD_GLOBAL 12046#else 12047# ifdef DL_GLOBAL 12048# define LT_DLGLOBAL DL_GLOBAL 12049# else 12050# define LT_DLGLOBAL 0 12051# endif 12052#endif 12053 12054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12055 find out it does not work in some platform. */ 12056#ifndef LT_DLLAZY_OR_NOW 12057# ifdef RTLD_LAZY 12058# define LT_DLLAZY_OR_NOW RTLD_LAZY 12059# else 12060# ifdef DL_LAZY 12061# define LT_DLLAZY_OR_NOW DL_LAZY 12062# else 12063# ifdef RTLD_NOW 12064# define LT_DLLAZY_OR_NOW RTLD_NOW 12065# else 12066# ifdef DL_NOW 12067# define LT_DLLAZY_OR_NOW DL_NOW 12068# else 12069# define LT_DLLAZY_OR_NOW 0 12070# endif 12071# endif 12072# endif 12073# endif 12074#endif 12075 12076#ifdef __cplusplus 12077extern "C" void exit (int); 12078#endif 12079 12080void fnord() { int i=42;} 12081int main () 12082{ 12083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12084 int status = $lt_dlunknown; 12085 12086 if (self) 12087 { 12088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12090 /* dlclose (self); */ 12091 } 12092 else 12093 puts (dlerror ()); 12094 12095 exit (status); 12096} 12097_LT_EOF 12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12099 (eval $ac_link) 2>&5 12100 ac_status=$? 12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12103 (./conftest; exit; ) >&5 2>/dev/null 12104 lt_status=$? 12105 case x$lt_status in 12106 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 12107 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 12108 x$lt_dlunknown|x*) ;; 12109 esac 12110 else : 12111 # compilation failed 12112 12113 fi 12114fi 12115rm -fr conftest* 12116 12117 LIBS="$save_LIBS" 12118 12119fi 12120{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 12121echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 12122 fi 12123fi 12124 12125if test x"$libltdl_cv_need_uscore" = xyes; then 12126 12127cat >>confdefs.h <<\_ACEOF 12128#define NEED_USCORE 1 12129_ACEOF 12130 12131fi 12132 12133{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 12134echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 12135if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then 12136 echo $ECHO_N "(cached) $ECHO_C" >&6 12137else 12138 # PORTME does your system automatically load deplibs for dlopen? 12139 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 12140 # For now, we just catch OSes we know something about -- in the 12141 # future, we'll try test this programmatically. 12142 lt_cv_sys_dlopen_deplibs=unknown 12143 case $host_os in 12144 aix3*|aix4.1.*|aix4.2.*) 12145 # Unknown whether this is true for these versions of AIX, but 12146 # we want this `case' here to explicitly catch those versions. 12147 lt_cv_sys_dlopen_deplibs=unknown 12148 ;; 12149 aix[4-9]*) 12150 lt_cv_sys_dlopen_deplibs=yes 12151 ;; 12152 amigaos*) 12153 case $host_cpu in 12154 powerpc) 12155 lt_cv_sys_dlopen_deplibs=no 12156 ;; 12157 esac 12158 ;; 12159 darwin*) 12160 # Assuming the user has installed a libdl from somewhere, this is true 12161 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 12162 lt_cv_sys_dlopen_deplibs=yes 12163 ;; 12164 freebsd* | dragonfly*) 12165 lt_cv_sys_dlopen_deplibs=yes 12166 ;; 12167 gnu* | linux* | k*bsd*-gnu) 12168 # GNU and its variants, using gnu ld.so (Glibc) 12169 lt_cv_sys_dlopen_deplibs=yes 12170 ;; 12171 hpux10*|hpux11*) 12172 lt_cv_sys_dlopen_deplibs=yes 12173 ;; 12174 interix*) 12175 lt_cv_sys_dlopen_deplibs=yes 12176 ;; 12177 irix[12345]*|irix6.[01]*) 12178 # Catch all versions of IRIX before 6.2, and indicate that we don't 12179 # know how it worked for any of those versions. 12180 lt_cv_sys_dlopen_deplibs=unknown 12181 ;; 12182 irix*) 12183 # The case above catches anything before 6.2, and it's known that 12184 # at 6.2 and later dlopen does load deplibs. 12185 lt_cv_sys_dlopen_deplibs=yes 12186 ;; 12187 netbsd* | netbsdelf*-gnu) 12188 lt_cv_sys_dlopen_deplibs=yes 12189 ;; 12190 openbsd*) 12191 lt_cv_sys_dlopen_deplibs=yes 12192 ;; 12193 osf[1234]*) 12194 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 12195 # it did *not* use an RPATH in a shared library to find objects the 12196 # library depends on, so we explicitly say `no'. 12197 lt_cv_sys_dlopen_deplibs=no 12198 ;; 12199 osf5.0|osf5.0a|osf5.1) 12200 # dlopen *does* load deplibs and with the right loader patch applied 12201 # it even uses RPATH in a shared library to search for shared objects 12202 # that the library depends on, but there's no easy way to know if that 12203 # patch is installed. Since this is the case, all we can really 12204 # say is unknown -- it depends on the patch being installed. If 12205 # it is, this changes to `yes'. Without it, it would be `no'. 12206 lt_cv_sys_dlopen_deplibs=unknown 12207 ;; 12208 osf*) 12209 # the two cases above should catch all versions of osf <= 5.1. Read 12210 # the comments above for what we know about them. 12211 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 12212 # is used to find them so we can finally say `yes'. 12213 lt_cv_sys_dlopen_deplibs=yes 12214 ;; 12215 qnx*) 12216 lt_cv_sys_dlopen_deplibs=yes 12217 ;; 12218 solaris*) 12219 lt_cv_sys_dlopen_deplibs=yes 12220 ;; 12221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12222 libltdl_cv_sys_dlopen_deplibs=yes 12223 ;; 12224 esac 12225 12226fi 12227{ echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5 12228echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; } 12229if test "$lt_cv_sys_dlopen_deplibs" != yes; then 12230 12231cat >>confdefs.h <<\_ACEOF 12232#define LTDL_DLOPEN_DEPLIBS 1 12233_ACEOF 12234 12235fi 12236 12237: 12238 12239 12240for ac_header in argz.h 12241do 12242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12243{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12246 echo $ECHO_N "(cached) $ECHO_C" >&6 12247else 12248 cat >conftest.$ac_ext <<_ACEOF 12249/* confdefs.h. */ 12250_ACEOF 12251cat confdefs.h >>conftest.$ac_ext 12252cat >>conftest.$ac_ext <<_ACEOF 12253/* end confdefs.h. */ 12254$ac_includes_default 12255 12256#include <$ac_header> 12257_ACEOF 12258rm -f conftest.$ac_objext 12259if { (ac_try="$ac_compile" 12260case "(($ac_try" in 12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12262 *) ac_try_echo=$ac_try;; 12263esac 12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12265 (eval "$ac_compile") 2>conftest.er1 12266 ac_status=$? 12267 grep -v '^ *+' conftest.er1 >conftest.err 12268 rm -f conftest.er1 12269 cat conftest.err >&5 12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12271 (exit $ac_status); } && { 12272 test -z "$ac_c_werror_flag" || 12273 test ! -s conftest.err 12274 } && test -s conftest.$ac_objext; then 12275 eval "$as_ac_Header=yes" 12276else 12277 echo "$as_me: failed program was:" >&5 12278sed 's/^/| /' conftest.$ac_ext >&5 12279 12280 eval "$as_ac_Header=no" 12281fi 12282 12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12284fi 12285ac_res=`eval echo '${'$as_ac_Header'}'` 12286 { echo "$as_me:$LINENO: result: $ac_res" >&5 12287echo "${ECHO_T}$ac_res" >&6; } 12288if test `eval echo '${'$as_ac_Header'}'` = yes; then 12289 cat >>confdefs.h <<_ACEOF 12290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12291_ACEOF 12292 12293fi 12294 12295done 12296 12297 12298{ echo "$as_me:$LINENO: checking for error_t" >&5 12299echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 12300if test "${ac_cv_type_error_t+set}" = set; then 12301 echo $ECHO_N "(cached) $ECHO_C" >&6 12302else 12303 cat >conftest.$ac_ext <<_ACEOF 12304/* confdefs.h. */ 12305_ACEOF 12306cat confdefs.h >>conftest.$ac_ext 12307cat >>conftest.$ac_ext <<_ACEOF 12308/* end confdefs.h. */ 12309#if defined(HAVE_ARGZ_H) 12310# include <argz.h> 12311#endif 12312 12313typedef error_t ac__type_new_; 12314int 12315main () 12316{ 12317if ((ac__type_new_ *) 0) 12318 return 0; 12319if (sizeof (ac__type_new_)) 12320 return 0; 12321 ; 12322 return 0; 12323} 12324_ACEOF 12325rm -f conftest.$ac_objext 12326if { (ac_try="$ac_compile" 12327case "(($ac_try" in 12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12329 *) ac_try_echo=$ac_try;; 12330esac 12331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12332 (eval "$ac_compile") 2>conftest.er1 12333 ac_status=$? 12334 grep -v '^ *+' conftest.er1 >conftest.err 12335 rm -f conftest.er1 12336 cat conftest.err >&5 12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12338 (exit $ac_status); } && { 12339 test -z "$ac_c_werror_flag" || 12340 test ! -s conftest.err 12341 } && test -s conftest.$ac_objext; then 12342 ac_cv_type_error_t=yes 12343else 12344 echo "$as_me: failed program was:" >&5 12345sed 's/^/| /' conftest.$ac_ext >&5 12346 12347 ac_cv_type_error_t=no 12348fi 12349 12350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12351fi 12352{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 12353echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 12354if test $ac_cv_type_error_t = yes; then 12355 12356cat >>confdefs.h <<_ACEOF 12357#define HAVE_ERROR_T 1 12358_ACEOF 12359 12360 12361else 12362 12363cat >>confdefs.h <<\_ACEOF 12364#define error_t int 12365_ACEOF 12366 12367 12368cat >>confdefs.h <<\_ACEOF 12369#define __error_t_defined 1 12370_ACEOF 12371 12372fi 12373 12374 12375ARGZ_H= 12376 12377 12378 12379 12380 12381 12382 12383for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 12384 argz_next argz_stringify 12385do 12386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12387{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12390 echo $ECHO_N "(cached) $ECHO_C" >&6 12391else 12392 cat >conftest.$ac_ext <<_ACEOF 12393/* confdefs.h. */ 12394_ACEOF 12395cat confdefs.h >>conftest.$ac_ext 12396cat >>conftest.$ac_ext <<_ACEOF 12397/* end confdefs.h. */ 12398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12400#define $ac_func innocuous_$ac_func 12401 12402/* System header to define __stub macros and hopefully few prototypes, 12403 which can conflict with char $ac_func (); below. 12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12405 <limits.h> exists even on freestanding compilers. */ 12406 12407#ifdef __STDC__ 12408# include <limits.h> 12409#else 12410# include <assert.h> 12411#endif 12412 12413#undef $ac_func 12414 12415/* Override any GCC internal prototype to avoid an error. 12416 Use char because int might match the return type of a GCC 12417 builtin and then its argument prototype would still apply. */ 12418#ifdef __cplusplus 12419extern "C" 12420#endif 12421char $ac_func (); 12422/* The GNU C library defines this for functions which it implements 12423 to always fail with ENOSYS. Some functions are actually named 12424 something starting with __ and the normal name is an alias. */ 12425#if defined __stub_$ac_func || defined __stub___$ac_func 12426choke me 12427#endif 12428 12429int 12430main () 12431{ 12432return $ac_func (); 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437rm -f conftest.$ac_objext conftest$ac_exeext 12438if { (ac_try="$ac_link" 12439case "(($ac_try" in 12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12441 *) ac_try_echo=$ac_try;; 12442esac 12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12444 (eval "$ac_link") 2>conftest.er1 12445 ac_status=$? 12446 grep -v '^ *+' conftest.er1 >conftest.err 12447 rm -f conftest.er1 12448 cat conftest.err >&5 12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12450 (exit $ac_status); } && { 12451 test -z "$ac_c_werror_flag" || 12452 test ! -s conftest.err 12453 } && test -s conftest$ac_exeext && 12454 $as_test_x conftest$ac_exeext; then 12455 eval "$as_ac_var=yes" 12456else 12457 echo "$as_me: failed program was:" >&5 12458sed 's/^/| /' conftest.$ac_ext >&5 12459 12460 eval "$as_ac_var=no" 12461fi 12462 12463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12464 conftest$ac_exeext conftest.$ac_ext 12465fi 12466ac_res=`eval echo '${'$as_ac_var'}'` 12467 { echo "$as_me:$LINENO: result: $ac_res" >&5 12468echo "${ECHO_T}$ac_res" >&6; } 12469if test `eval echo '${'$as_ac_var'}'` = yes; then 12470 cat >>confdefs.h <<_ACEOF 12471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12472_ACEOF 12473 12474else 12475 ARGZ_H=argz.h; case " $LIBOBJS " in 12476 *" argz.$ac_objext "* ) ;; 12477 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12478 ;; 12479esac 12480 12481fi 12482done 12483 12484 12485if test -z "$ARGZ_H"; then 12486 { echo "$as_me:$LINENO: checking if argz actually works" >&5 12487echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; } 12488if test "${lt_cv_sys_argz_works+set}" = set; then 12489 echo $ECHO_N "(cached) $ECHO_C" >&6 12490else 12491 case $host_os in #( 12492 *cygwin*) 12493 lt_cv_sys_argz_works=no 12494 if test "$cross_compiling" != no; then 12495 lt_cv_sys_argz_works="guessing no" 12496 else 12497 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 12498 save_IFS=$IFS 12499 IFS=-. 12500 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 12501 IFS=$save_IFS 12502 lt_os_major=${2-0} 12503 lt_os_minor=${3-0} 12504 lt_os_micro=${4-0} 12505 if test "$lt_os_major" -gt 1 \ 12506 || { test "$lt_os_major" -eq 1 \ 12507 && { test "$lt_os_minor" -gt 5 \ 12508 || { test "$lt_os_minor" -eq 5 \ 12509 && test "$lt_os_micro" -gt 24; }; }; }; then 12510 lt_cv_sys_argz_works=yes 12511 fi 12512 fi 12513 ;; #( 12514 *) lt_cv_sys_argz_works=yes ;; 12515 esac 12516fi 12517{ echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5 12518echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; } 12519 if test $lt_cv_sys_argz_works = yes; then 12520 12521cat >>confdefs.h <<\_ACEOF 12522#define HAVE_WORKING_ARGZ 1 12523_ACEOF 12524 12525else 12526 ARGZ_H=argz.h 12527 case " $LIBOBJS " in 12528 *" argz.$ac_objext "* ) ;; 12529 *) LIBOBJS="$LIBOBJS argz.$ac_objext" 12530 ;; 12531esac 12532 12533fi 12534 12535fi 12536 12537 12538 12539 12540{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 12541echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 12542if test "${libltdl_cv_preloaded_symbols+set}" = set; then 12543 echo $ECHO_N "(cached) $ECHO_C" >&6 12544else 12545 if test -n "$lt_cv_sys_global_symbol_pipe"; then 12546 libltdl_cv_preloaded_symbols=yes 12547 else 12548 libltdl_cv_preloaded_symbols=no 12549 fi 12550 12551fi 12552{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 12553echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 12554if test x"$libltdl_cv_preloaded_symbols" = xyes; then 12555 12556cat >>confdefs.h <<\_ACEOF 12557#define HAVE_PRELOADED_SYMBOLS 1 12558_ACEOF 12559 12560fi 12561 12562 12563 12564# lt_cv_dlopen_self gets defined by LT_SYS_DLOPEN_SELF, called by LT_INIT 12565if test "$lt_cv_dlopen_self" = yes; then 12566 12567cat >>confdefs.h <<\_ACEOF 12568#define LTDL_DLOPEN_SELF_WORKS 1 12569_ACEOF 12570 12571fi 12572 12573# Check whether --enable-ltdl-install was given. 12574if test "${enable_ltdl_install+set}" = set; then 12575 enableval=$enable_ltdl_install; 12576fi 12577 12578 12579case ,${enable_ltdl_install},${enable_ltdl_convenience} in 12580 *yes*) ;; 12581 *) enable_ltdl_convenience=yes ;; 12582esac 12583 12584 if test x"${enable_ltdl_install-no}" != xno; then 12585 INSTALL_LTDL_TRUE= 12586 INSTALL_LTDL_FALSE='#' 12587else 12588 INSTALL_LTDL_TRUE='#' 12589 INSTALL_LTDL_FALSE= 12590fi 12591 12592 if test x"${enable_ltdl_convenience-no}" != xno; then 12593 CONVENIENCE_LTDL_TRUE= 12594 CONVENIENCE_LTDL_FALSE='#' 12595else 12596 CONVENIENCE_LTDL_TRUE='#' 12597 CONVENIENCE_LTDL_FALSE= 12598fi 12599 12600 12601 12602 12603 12604 12605# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 12606# the user used. This is so that ltdl.h can pick up the parent projects 12607# config.h file, The first file in AC_CONFIG_HEADERS must contain the 12608# definitions required by ltdl.c. 12609# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 12620do 12621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12622{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12625 echo $ECHO_N "(cached) $ECHO_C" >&6 12626else 12627 cat >conftest.$ac_ext <<_ACEOF 12628/* confdefs.h. */ 12629_ACEOF 12630cat confdefs.h >>conftest.$ac_ext 12631cat >>conftest.$ac_ext <<_ACEOF 12632/* end confdefs.h. */ 12633$ac_includes_default 12634 12635#include <$ac_header> 12636_ACEOF 12637rm -f conftest.$ac_objext 12638if { (ac_try="$ac_compile" 12639case "(($ac_try" in 12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12641 *) ac_try_echo=$ac_try;; 12642esac 12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12644 (eval "$ac_compile") 2>conftest.er1 12645 ac_status=$? 12646 grep -v '^ *+' conftest.er1 >conftest.err 12647 rm -f conftest.er1 12648 cat conftest.err >&5 12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12650 (exit $ac_status); } && { 12651 test -z "$ac_c_werror_flag" || 12652 test ! -s conftest.err 12653 } && test -s conftest.$ac_objext; then 12654 eval "$as_ac_Header=yes" 12655else 12656 echo "$as_me: failed program was:" >&5 12657sed 's/^/| /' conftest.$ac_ext >&5 12658 12659 eval "$as_ac_Header=no" 12660fi 12661 12662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12663fi 12664ac_res=`eval echo '${'$as_ac_Header'}'` 12665 { echo "$as_me:$LINENO: result: $ac_res" >&5 12666echo "${ECHO_T}$ac_res" >&6; } 12667if test `eval echo '${'$as_ac_Header'}'` = yes; then 12668 cat >>confdefs.h <<_ACEOF 12669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12670_ACEOF 12671 12672fi 12673 12674done 12675 12676 12677 12678 12679 12680for ac_func in closedir opendir readdir 12681do 12682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12683{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12686 echo $ECHO_N "(cached) $ECHO_C" >&6 12687else 12688 cat >conftest.$ac_ext <<_ACEOF 12689/* confdefs.h. */ 12690_ACEOF 12691cat confdefs.h >>conftest.$ac_ext 12692cat >>conftest.$ac_ext <<_ACEOF 12693/* end confdefs.h. */ 12694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12695 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12696#define $ac_func innocuous_$ac_func 12697 12698/* System header to define __stub macros and hopefully few prototypes, 12699 which can conflict with char $ac_func (); below. 12700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12701 <limits.h> exists even on freestanding compilers. */ 12702 12703#ifdef __STDC__ 12704# include <limits.h> 12705#else 12706# include <assert.h> 12707#endif 12708 12709#undef $ac_func 12710 12711/* Override any GCC internal prototype to avoid an error. 12712 Use char because int might match the return type of a GCC 12713 builtin and then its argument prototype would still apply. */ 12714#ifdef __cplusplus 12715extern "C" 12716#endif 12717char $ac_func (); 12718/* The GNU C library defines this for functions which it implements 12719 to always fail with ENOSYS. Some functions are actually named 12720 something starting with __ and the normal name is an alias. */ 12721#if defined __stub_$ac_func || defined __stub___$ac_func 12722choke me 12723#endif 12724 12725int 12726main () 12727{ 12728return $ac_func (); 12729 ; 12730 return 0; 12731} 12732_ACEOF 12733rm -f conftest.$ac_objext conftest$ac_exeext 12734if { (ac_try="$ac_link" 12735case "(($ac_try" in 12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12737 *) ac_try_echo=$ac_try;; 12738esac 12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12740 (eval "$ac_link") 2>conftest.er1 12741 ac_status=$? 12742 grep -v '^ *+' conftest.er1 >conftest.err 12743 rm -f conftest.er1 12744 cat conftest.err >&5 12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12746 (exit $ac_status); } && { 12747 test -z "$ac_c_werror_flag" || 12748 test ! -s conftest.err 12749 } && test -s conftest$ac_exeext && 12750 $as_test_x conftest$ac_exeext; then 12751 eval "$as_ac_var=yes" 12752else 12753 echo "$as_me: failed program was:" >&5 12754sed 's/^/| /' conftest.$ac_ext >&5 12755 12756 eval "$as_ac_var=no" 12757fi 12758 12759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12760 conftest$ac_exeext conftest.$ac_ext 12761fi 12762ac_res=`eval echo '${'$as_ac_var'}'` 12763 { echo "$as_me:$LINENO: result: $ac_res" >&5 12764echo "${ECHO_T}$ac_res" >&6; } 12765if test `eval echo '${'$as_ac_var'}'` = yes; then 12766 cat >>confdefs.h <<_ACEOF 12767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12768_ACEOF 12769 12770else 12771 case " $LIBOBJS " in 12772 *" lt__dirent.$ac_objext "* ) ;; 12773 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext" 12774 ;; 12775esac 12776 12777fi 12778done 12779 12780 12781 12782for ac_func in strlcat strlcpy 12783do 12784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12785{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12787if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12788 echo $ECHO_N "(cached) $ECHO_C" >&6 12789else 12790 cat >conftest.$ac_ext <<_ACEOF 12791/* confdefs.h. */ 12792_ACEOF 12793cat confdefs.h >>conftest.$ac_ext 12794cat >>conftest.$ac_ext <<_ACEOF 12795/* end confdefs.h. */ 12796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12798#define $ac_func innocuous_$ac_func 12799 12800/* System header to define __stub macros and hopefully few prototypes, 12801 which can conflict with char $ac_func (); below. 12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12803 <limits.h> exists even on freestanding compilers. */ 12804 12805#ifdef __STDC__ 12806# include <limits.h> 12807#else 12808# include <assert.h> 12809#endif 12810 12811#undef $ac_func 12812 12813/* Override any GCC internal prototype to avoid an error. 12814 Use char because int might match the return type of a GCC 12815 builtin and then its argument prototype would still apply. */ 12816#ifdef __cplusplus 12817extern "C" 12818#endif 12819char $ac_func (); 12820/* The GNU C library defines this for functions which it implements 12821 to always fail with ENOSYS. Some functions are actually named 12822 something starting with __ and the normal name is an alias. */ 12823#if defined __stub_$ac_func || defined __stub___$ac_func 12824choke me 12825#endif 12826 12827int 12828main () 12829{ 12830return $ac_func (); 12831 ; 12832 return 0; 12833} 12834_ACEOF 12835rm -f conftest.$ac_objext conftest$ac_exeext 12836if { (ac_try="$ac_link" 12837case "(($ac_try" in 12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12839 *) ac_try_echo=$ac_try;; 12840esac 12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12842 (eval "$ac_link") 2>conftest.er1 12843 ac_status=$? 12844 grep -v '^ *+' conftest.er1 >conftest.err 12845 rm -f conftest.er1 12846 cat conftest.err >&5 12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12848 (exit $ac_status); } && { 12849 test -z "$ac_c_werror_flag" || 12850 test ! -s conftest.err 12851 } && test -s conftest$ac_exeext && 12852 $as_test_x conftest$ac_exeext; then 12853 eval "$as_ac_var=yes" 12854else 12855 echo "$as_me: failed program was:" >&5 12856sed 's/^/| /' conftest.$ac_ext >&5 12857 12858 eval "$as_ac_var=no" 12859fi 12860 12861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12862 conftest$ac_exeext conftest.$ac_ext 12863fi 12864ac_res=`eval echo '${'$as_ac_var'}'` 12865 { echo "$as_me:$LINENO: result: $ac_res" >&5 12866echo "${ECHO_T}$ac_res" >&6; } 12867if test `eval echo '${'$as_ac_var'}'` = yes; then 12868 cat >>confdefs.h <<_ACEOF 12869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12870_ACEOF 12871 12872else 12873 case " $LIBOBJS " in 12874 *" lt__strl.$ac_objext "* ) ;; 12875 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext" 12876 ;; 12877esac 12878 12879fi 12880done 12881 12882 12883name=ltdl 12884LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` 12885 12886 12887 12888 12889## -------- ## 12890## Outputs. ## 12891## -------- ## 12892ac_config_files="$ac_config_files Makefile" 12893 12894cat >confcache <<\_ACEOF 12895# This file is a shell script that caches the results of configure 12896# tests run on this system so they can be shared between configure 12897# scripts and configure runs, see configure's option --config-cache. 12898# It is not useful on other systems. If it contains results you don't 12899# want to keep, you may remove or edit it. 12900# 12901# config.status only pays attention to the cache file if you give it 12902# the --recheck option to rerun configure. 12903# 12904# `ac_cv_env_foo' variables (set or unset) will be overridden when 12905# loading this file, other *unset* `ac_cv_foo' will be assigned the 12906# following values. 12907 12908_ACEOF 12909 12910# The following way of writing the cache mishandles newlines in values, 12911# but we know of no workaround that is simple, portable, and efficient. 12912# So, we kill variables containing newlines. 12913# Ultrix sh set writes to stderr and can't be redirected directly, 12914# and sets the high bit in the cache file unless we assign to the vars. 12915( 12916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12917 eval ac_val=\$$ac_var 12918 case $ac_val in #( 12919 *${as_nl}*) 12920 case $ac_var in #( 12921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 12922echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 12923 esac 12924 case $ac_var in #( 12925 _ | IFS | as_nl) ;; #( 12926 *) $as_unset $ac_var ;; 12927 esac ;; 12928 esac 12929 done 12930 12931 (set) 2>&1 | 12932 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12933 *${as_nl}ac_space=\ *) 12934 # `set' does not quote correctly, so add quotes (double-quote 12935 # substitution turns \\\\ into \\, and sed turns \\ into \). 12936 sed -n \ 12937 "s/'/'\\\\''/g; 12938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12939 ;; #( 12940 *) 12941 # `set' quotes correctly as required by POSIX, so do not add quotes. 12942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12943 ;; 12944 esac | 12945 sort 12946) | 12947 sed ' 12948 /^ac_cv_env_/b end 12949 t clear 12950 :clear 12951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12952 t end 12953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12954 :end' >>confcache 12955if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12956 if test -w "$cache_file"; then 12957 test "x$cache_file" != "x/dev/null" && 12958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 12959echo "$as_me: updating cache $cache_file" >&6;} 12960 cat confcache >$cache_file 12961 else 12962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12963echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12964 fi 12965fi 12966rm -f confcache 12967 12968test "x$prefix" = xNONE && prefix=$ac_default_prefix 12969# Let make expand exec_prefix. 12970test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12971 12972DEFS=-DHAVE_CONFIG_H 12973 12974ac_libobjs= 12975ac_ltlibobjs= 12976for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12977 # 1. Remove the extension, and $U if already installed. 12978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12979 ac_i=`echo "$ac_i" | sed "$ac_script"` 12980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12981 # will be set to the directory where LIBOBJS objects are built. 12982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12984done 12985LIBOBJS=$ac_libobjs 12986 12987LTLIBOBJS=$ac_ltlibobjs 12988 12989 12990if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12991 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12992Usually this means the macro was only invoked conditionally." >&5 12993echo "$as_me: error: conditional \"AMDEP\" was never defined. 12994Usually this means the macro was only invoked conditionally." >&2;} 12995 { (exit 1); exit 1; }; } 12996fi 12997if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12998 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12999Usually this means the macro was only invoked conditionally." >&5 13000echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13001Usually this means the macro was only invoked conditionally." >&2;} 13002 { (exit 1); exit 1; }; } 13003fi 13004if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 13005 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 13006Usually this means the macro was only invoked conditionally." >&5 13007echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 13008Usually this means the macro was only invoked conditionally." >&2;} 13009 { (exit 1); exit 1; }; } 13010fi 13011if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 13012 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 13013Usually this means the macro was only invoked conditionally." >&5 13014echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 13015Usually this means the macro was only invoked conditionally." >&2;} 13016 { (exit 1); exit 1; }; } 13017fi 13018LT_CONFIG_H=config.h 13019 13020: ${CONFIG_STATUS=./config.status} 13021ac_clean_files_save=$ac_clean_files 13022ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13023{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13024echo "$as_me: creating $CONFIG_STATUS" >&6;} 13025cat >$CONFIG_STATUS <<_ACEOF 13026#! $SHELL 13027# Generated by $as_me. 13028# Run this file to recreate the current configuration. 13029# Compiler output produced by configure, useful for debugging 13030# configure, is in config.log if it exists. 13031 13032debug=false 13033ac_cs_recheck=false 13034ac_cs_silent=false 13035SHELL=\${CONFIG_SHELL-$SHELL} 13036_ACEOF 13037 13038cat >>$CONFIG_STATUS <<\_ACEOF 13039## --------------------- ## 13040## M4sh Initialization. ## 13041## --------------------- ## 13042 13043# Be more Bourne compatible 13044DUALCASE=1; export DUALCASE # for MKS sh 13045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13046 emulate sh 13047 NULLCMD=: 13048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13049 # is contrary to our usage. Disable this feature. 13050 alias -g '${1+"$@"}'='"$@"' 13051 setopt NO_GLOB_SUBST 13052else 13053 case `(set -o) 2>/dev/null` in 13054 *posix*) set -o posix ;; 13055esac 13056 13057fi 13058 13059 13060 13061 13062# PATH needs CR 13063# Avoid depending upon Character Ranges. 13064as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13066as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13067as_cr_digits='0123456789' 13068as_cr_alnum=$as_cr_Letters$as_cr_digits 13069 13070# The user is always right. 13071if test "${PATH_SEPARATOR+set}" != set; then 13072 echo "#! /bin/sh" >conf$$.sh 13073 echo "exit 0" >>conf$$.sh 13074 chmod +x conf$$.sh 13075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13076 PATH_SEPARATOR=';' 13077 else 13078 PATH_SEPARATOR=: 13079 fi 13080 rm -f conf$$.sh 13081fi 13082 13083# Support unset when possible. 13084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13085 as_unset=unset 13086else 13087 as_unset=false 13088fi 13089 13090 13091# IFS 13092# We need space, tab and new line, in precisely that order. Quoting is 13093# there to prevent editors from complaining about space-tab. 13094# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13095# splitting by setting IFS to empty value.) 13096as_nl=' 13097' 13098IFS=" "" $as_nl" 13099 13100# Find who we are. Look in the path if we contain no directory separator. 13101case $0 in 13102 *[\\/]* ) as_myself=$0 ;; 13103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13104for as_dir in $PATH 13105do 13106 IFS=$as_save_IFS 13107 test -z "$as_dir" && as_dir=. 13108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13109done 13110IFS=$as_save_IFS 13111 13112 ;; 13113esac 13114# We did not find ourselves, most probably we were run as `sh COMMAND' 13115# in which case we are not to be found in the path. 13116if test "x$as_myself" = x; then 13117 as_myself=$0 13118fi 13119if test ! -f "$as_myself"; then 13120 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13121 { (exit 1); exit 1; } 13122fi 13123 13124# Work around bugs in pre-3.0 UWIN ksh. 13125for as_var in ENV MAIL MAILPATH 13126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13127done 13128PS1='$ ' 13129PS2='> ' 13130PS4='+ ' 13131 13132# NLS nuisances. 13133for as_var in \ 13134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13136 LC_TELEPHONE LC_TIME 13137do 13138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13139 eval $as_var=C; export $as_var 13140 else 13141 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13142 fi 13143done 13144 13145# Required to use basename. 13146if expr a : '\(a\)' >/dev/null 2>&1 && 13147 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13148 as_expr=expr 13149else 13150 as_expr=false 13151fi 13152 13153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13154 as_basename=basename 13155else 13156 as_basename=false 13157fi 13158 13159 13160# Name of the executable. 13161as_me=`$as_basename -- "$0" || 13162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13163 X"$0" : 'X\(//\)$' \| \ 13164 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13165echo X/"$0" | 13166 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13167 s//\1/ 13168 q 13169 } 13170 /^X\/\(\/\/\)$/{ 13171 s//\1/ 13172 q 13173 } 13174 /^X\/\(\/\).*/{ 13175 s//\1/ 13176 q 13177 } 13178 s/.*/./; q'` 13179 13180# CDPATH. 13181$as_unset CDPATH 13182 13183 13184 13185 as_lineno_1=$LINENO 13186 as_lineno_2=$LINENO 13187 test "x$as_lineno_1" != "x$as_lineno_2" && 13188 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13189 13190 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13191 # uniformly replaced by the line number. The first 'sed' inserts a 13192 # line-number line after each line using $LINENO; the second 'sed' 13193 # does the real work. The second script uses 'N' to pair each 13194 # line-number line with the line containing $LINENO, and appends 13195 # trailing '-' during substitution so that $LINENO is not a special 13196 # case at line end. 13197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13198 # scripts with optimization help from Paolo Bonzini. Blame Lee 13199 # E. McMahon (1931-1989) for sed's syntax. :-) 13200 sed -n ' 13201 p 13202 /[$]LINENO/= 13203 ' <$as_myself | 13204 sed ' 13205 s/[$]LINENO.*/&-/ 13206 t lineno 13207 b 13208 :lineno 13209 N 13210 :loop 13211 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13212 t loop 13213 s/-\n.*// 13214 ' >$as_me.lineno && 13215 chmod +x "$as_me.lineno" || 13216 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13217 { (exit 1); exit 1; }; } 13218 13219 # Don't try to exec as it changes $[0], causing all sort of problems 13220 # (the dirname of $[0] is not the place where we might find the 13221 # original and so on. Autoconf is especially sensitive to this). 13222 . "./$as_me.lineno" 13223 # Exit status is that of the last command. 13224 exit 13225} 13226 13227 13228if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13229 as_dirname=dirname 13230else 13231 as_dirname=false 13232fi 13233 13234ECHO_C= ECHO_N= ECHO_T= 13235case `echo -n x` in 13236-n*) 13237 case `echo 'x\c'` in 13238 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13239 *) ECHO_C='\c';; 13240 esac;; 13241*) 13242 ECHO_N='-n';; 13243esac 13244 13245if expr a : '\(a\)' >/dev/null 2>&1 && 13246 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13247 as_expr=expr 13248else 13249 as_expr=false 13250fi 13251 13252rm -f conf$$ conf$$.exe conf$$.file 13253if test -d conf$$.dir; then 13254 rm -f conf$$.dir/conf$$.file 13255else 13256 rm -f conf$$.dir 13257 mkdir conf$$.dir 13258fi 13259echo >conf$$.file 13260if ln -s conf$$.file conf$$ 2>/dev/null; then 13261 as_ln_s='ln -s' 13262 # ... but there are two gotchas: 13263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13265 # In both cases, we have to default to `cp -p'. 13266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13267 as_ln_s='cp -p' 13268elif ln conf$$.file conf$$ 2>/dev/null; then 13269 as_ln_s=ln 13270else 13271 as_ln_s='cp -p' 13272fi 13273rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13274rmdir conf$$.dir 2>/dev/null 13275 13276if mkdir -p . 2>/dev/null; then 13277 as_mkdir_p=: 13278else 13279 test -d ./-p && rmdir ./-p 13280 as_mkdir_p=false 13281fi 13282 13283if test -x / >/dev/null 2>&1; then 13284 as_test_x='test -x' 13285else 13286 if ls -dL / >/dev/null 2>&1; then 13287 as_ls_L_option=L 13288 else 13289 as_ls_L_option= 13290 fi 13291 as_test_x=' 13292 eval sh -c '\'' 13293 if test -d "$1"; then 13294 test -d "$1/."; 13295 else 13296 case $1 in 13297 -*)set "./$1";; 13298 esac; 13299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13300 ???[sx]*):;;*)false;;esac;fi 13301 '\'' sh 13302 ' 13303fi 13304as_executable_p=$as_test_x 13305 13306# Sed expression to map a string onto a valid CPP name. 13307as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13308 13309# Sed expression to map a string onto a valid variable name. 13310as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13311 13312 13313exec 6>&1 13314 13315# Save the log message, to keep $[0] and so on meaningful, and to 13316# report actual input values of CONFIG_FILES etc. instead of their 13317# values after options handling. 13318ac_log=" 13319This file was extended by libltdl $as_me 2.2.4, which was 13320generated by GNU Autoconf 2.61. Invocation command line was 13321 13322 CONFIG_FILES = $CONFIG_FILES 13323 CONFIG_HEADERS = $CONFIG_HEADERS 13324 CONFIG_LINKS = $CONFIG_LINKS 13325 CONFIG_COMMANDS = $CONFIG_COMMANDS 13326 $ $0 $@ 13327 13328on `(hostname || uname -n) 2>/dev/null | sed 1q` 13329" 13330 13331_ACEOF 13332 13333cat >>$CONFIG_STATUS <<_ACEOF 13334# Files that config.status was made for. 13335config_files="$ac_config_files" 13336config_headers="$ac_config_headers" 13337config_commands="$ac_config_commands" 13338 13339_ACEOF 13340 13341cat >>$CONFIG_STATUS <<\_ACEOF 13342ac_cs_usage="\ 13343\`$as_me' instantiates files from templates according to the 13344current configuration. 13345 13346Usage: $0 [OPTIONS] [FILE]... 13347 13348 -h, --help print this help, then exit 13349 -V, --version print version number and configuration settings, then exit 13350 -q, --quiet do not print progress messages 13351 -d, --debug don't remove temporary files 13352 --recheck update $as_me by reconfiguring in the same conditions 13353 --file=FILE[:TEMPLATE] 13354 instantiate the configuration file FILE 13355 --header=FILE[:TEMPLATE] 13356 instantiate the configuration header FILE 13357 13358Configuration files: 13359$config_files 13360 13361Configuration headers: 13362$config_headers 13363 13364Configuration commands: 13365$config_commands 13366 13367Report bugs to <bug-autoconf@gnu.org>." 13368 13369_ACEOF 13370cat >>$CONFIG_STATUS <<_ACEOF 13371ac_cs_version="\\ 13372libltdl config.status 2.2.4 13373configured by $0, generated by GNU Autoconf 2.61, 13374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13375 13376Copyright (C) 2006 Free Software Foundation, Inc. 13377This config.status script is free software; the Free Software Foundation 13378gives unlimited permission to copy, distribute and modify it." 13379 13380ac_pwd='$ac_pwd' 13381srcdir='$srcdir' 13382INSTALL='$INSTALL' 13383MKDIR_P='$MKDIR_P' 13384_ACEOF 13385 13386cat >>$CONFIG_STATUS <<\_ACEOF 13387# If no file are specified by the user, then we need to provide default 13388# value. By we need to know if files were specified by the user. 13389ac_need_defaults=: 13390while test $# != 0 13391do 13392 case $1 in 13393 --*=*) 13394 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13396 ac_shift=: 13397 ;; 13398 *) 13399 ac_option=$1 13400 ac_optarg=$2 13401 ac_shift=shift 13402 ;; 13403 esac 13404 13405 case $ac_option in 13406 # Handling of the options. 13407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13408 ac_cs_recheck=: ;; 13409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13410 echo "$ac_cs_version"; exit ;; 13411 --debug | --debu | --deb | --de | --d | -d ) 13412 debug=: ;; 13413 --file | --fil | --fi | --f ) 13414 $ac_shift 13415 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13416 ac_need_defaults=false;; 13417 --header | --heade | --head | --hea ) 13418 $ac_shift 13419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13420 ac_need_defaults=false;; 13421 --he | --h) 13422 # Conflict between --help and --header 13423 { echo "$as_me: error: ambiguous option: $1 13424Try \`$0 --help' for more information." >&2 13425 { (exit 1); exit 1; }; };; 13426 --help | --hel | -h ) 13427 echo "$ac_cs_usage"; exit ;; 13428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13429 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13430 ac_cs_silent=: ;; 13431 13432 # This is an error. 13433 -*) { echo "$as_me: error: unrecognized option: $1 13434Try \`$0 --help' for more information." >&2 13435 { (exit 1); exit 1; }; } ;; 13436 13437 *) ac_config_targets="$ac_config_targets $1" 13438 ac_need_defaults=false ;; 13439 13440 esac 13441 shift 13442done 13443 13444ac_configure_extra_args= 13445 13446if $ac_cs_silent; then 13447 exec 6>/dev/null 13448 ac_configure_extra_args="$ac_configure_extra_args --silent" 13449fi 13450 13451_ACEOF 13452cat >>$CONFIG_STATUS <<_ACEOF 13453if \$ac_cs_recheck; then 13454 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13455 CONFIG_SHELL=$SHELL 13456 export CONFIG_SHELL 13457 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13458fi 13459 13460_ACEOF 13461cat >>$CONFIG_STATUS <<\_ACEOF 13462exec 5>>config.log 13463{ 13464 echo 13465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13466## Running $as_me. ## 13467_ASBOX 13468 echo "$ac_log" 13469} >&5 13470 13471_ACEOF 13472cat >>$CONFIG_STATUS <<_ACEOF 13473# 13474# INIT-COMMANDS 13475# 13476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13477 13478 13479# The HP-UX ksh and POSIX shell print the target directory to stdout 13480# if CDPATH is set. 13481(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13482 13483sed_quote_subst='$sed_quote_subst' 13484double_quote_subst='$double_quote_subst' 13485delay_variable_subst='$delay_variable_subst' 13486macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13487macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13488AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 13489DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13490OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13491enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13492enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13493pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13494enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13495host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13496host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13497host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13498build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13499build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13500build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13501SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13502Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13503GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13504EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13505FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13506LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13507NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13508LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13509max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13510ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13511exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13512lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13513lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13514lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13515reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13516reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13517deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13518file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13519AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13520AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13521STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13522RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13523old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13524old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13525old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13526CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13527CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13528compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13529GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13530lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13531lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13532lt_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"`' 13533lt_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"`' 13534objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13535SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13536ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13537MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13538lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13539lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13540lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13541lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13542lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13543need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13544DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13545NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13546LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13547OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13548OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13549libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13550shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13551extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13552archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13553enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13554export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13555whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13556compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13557old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13558old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13559archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13560archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13561module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13562module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13563with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13564allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13565no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13566hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13567hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13568hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13569hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13570hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13571hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13572hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13573hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13574inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13575link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13576fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13577always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13578export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13579exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13580include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13581prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13582file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13583variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13584need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13585need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13586version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13587runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13588shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13589shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13590libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13591library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13592soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13593postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13594postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13595finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13596finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13597hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13598sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13599sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13600hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13601enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13602enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13603enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13604old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13605striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13606 13607LTCC='$LTCC' 13608LTCFLAGS='$LTCFLAGS' 13609compiler='$compiler_DEFAULT' 13610 13611# Quote evaled strings. 13612for var in SED \ 13613GREP \ 13614EGREP \ 13615FGREP \ 13616LD \ 13617NM \ 13618LN_S \ 13619lt_SP2NL \ 13620lt_NL2SP \ 13621reload_flag \ 13622deplibs_check_method \ 13623file_magic_cmd \ 13624AR \ 13625AR_FLAGS \ 13626STRIP \ 13627RANLIB \ 13628CC \ 13629CFLAGS \ 13630compiler \ 13631lt_cv_sys_global_symbol_pipe \ 13632lt_cv_sys_global_symbol_to_cdecl \ 13633lt_cv_sys_global_symbol_to_c_name_address \ 13634lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13635SHELL \ 13636ECHO \ 13637lt_prog_compiler_no_builtin_flag \ 13638lt_prog_compiler_wl \ 13639lt_prog_compiler_pic \ 13640lt_prog_compiler_static \ 13641lt_cv_prog_compiler_c_o \ 13642need_locks \ 13643DSYMUTIL \ 13644NMEDIT \ 13645LIPO \ 13646OTOOL \ 13647OTOOL64 \ 13648shrext_cmds \ 13649export_dynamic_flag_spec \ 13650whole_archive_flag_spec \ 13651compiler_needs_object \ 13652with_gnu_ld \ 13653allow_undefined_flag \ 13654no_undefined_flag \ 13655hardcode_libdir_flag_spec \ 13656hardcode_libdir_flag_spec_ld \ 13657hardcode_libdir_separator \ 13658fix_srcfile_path \ 13659exclude_expsyms \ 13660include_expsyms \ 13661file_list_spec \ 13662variables_saved_for_relink \ 13663libname_spec \ 13664library_names_spec \ 13665soname_spec \ 13666finish_eval \ 13667old_striplib \ 13668striplib; do 13669 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13670 *[\\\\\\\`\\"\\\$]*) 13671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13672 ;; 13673 *) 13674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13675 ;; 13676 esac 13677done 13678 13679# Double-quote double-evaled strings. 13680for var in reload_cmds \ 13681old_postinstall_cmds \ 13682old_postuninstall_cmds \ 13683old_archive_cmds \ 13684extract_expsyms_cmds \ 13685old_archive_from_new_cmds \ 13686old_archive_from_expsyms_cmds \ 13687archive_cmds \ 13688archive_expsym_cmds \ 13689module_cmds \ 13690module_expsym_cmds \ 13691export_symbols_cmds \ 13692prelink_cmds \ 13693postinstall_cmds \ 13694postuninstall_cmds \ 13695finish_cmds \ 13696sys_lib_search_path_spec \ 13697sys_lib_dlsearch_path_spec; do 13698 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13699 *[\\\\\\\`\\"\\\$]*) 13700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13701 ;; 13702 *) 13703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13704 ;; 13705 esac 13706done 13707 13708# Fix-up fallback echo if it was mangled by the above quoting rules. 13709case \$lt_ECHO in 13710*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13711 ;; 13712esac 13713 13714ac_aux_dir='$ac_aux_dir' 13715xsi_shell='$xsi_shell' 13716lt_shell_append='$lt_shell_append' 13717 13718# See if we are running on zsh, and set the options which allow our 13719# commands through without removal of \ escapes INIT. 13720if test -n "\${ZSH_VERSION+set}" ; then 13721 setopt NO_GLOB_SUBST 13722fi 13723 13724 13725 PACKAGE='$PACKAGE' 13726 VERSION='$VERSION' 13727 TIMESTAMP='$TIMESTAMP' 13728 RM='$RM' 13729 ofile='$ofile' 13730 13731 13732 13733 13734_ACEOF 13735 13736cat >>$CONFIG_STATUS <<\_ACEOF 13737 13738# Handling of arguments. 13739for ac_config_target in $ac_config_targets 13740do 13741 case $ac_config_target in 13742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; 13743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13744 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13745 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13746 13747 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13748echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13749 { (exit 1); exit 1; }; };; 13750 esac 13751done 13752 13753 13754# If the user did not use the arguments to specify the items to instantiate, 13755# then the envvar interface is used. Set only those that are not. 13756# We use the long form for the default assignment because of an extremely 13757# bizarre bug on SunOS 4.1.3. 13758if $ac_need_defaults; then 13759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13762fi 13763 13764# Have a temporary directory for convenience. Make it in the build tree 13765# simply because there is no reason against having it here, and in addition, 13766# creating and moving files from /tmp can sometimes cause problems. 13767# Hook for its removal unless debugging. 13768# Note that there is a small window in which the directory will not be cleaned: 13769# after its creation but before its name has been assigned to `$tmp'. 13770$debug || 13771{ 13772 tmp= 13773 trap 'exit_status=$? 13774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13775' 0 13776 trap '{ (exit 1); exit 1; }' 1 2 13 15 13777} 13778# Create a (secure) tmp directory for tmp files. 13779 13780{ 13781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13782 test -n "$tmp" && test -d "$tmp" 13783} || 13784{ 13785 tmp=./conf$$-$RANDOM 13786 (umask 077 && mkdir "$tmp") 13787} || 13788{ 13789 echo "$me: cannot create a temporary directory in ." >&2 13790 { (exit 1); exit 1; } 13791} 13792 13793# 13794# Set up the sed scripts for CONFIG_FILES section. 13795# 13796 13797# No need to generate the scripts if there are no CONFIG_FILES. 13798# This happens for instance when ./config.status config.h 13799if test -n "$CONFIG_FILES"; then 13800 13801_ACEOF 13802 13803 13804 13805ac_delim='%!_!# ' 13806for ac_last_try in false false false false false :; do 13807 cat >conf$$subs.sed <<_ACEOF 13808SHELL!$SHELL$ac_delim 13809PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 13810PACKAGE_NAME!$PACKAGE_NAME$ac_delim 13811PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 13812PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 13813PACKAGE_STRING!$PACKAGE_STRING$ac_delim 13814PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 13815exec_prefix!$exec_prefix$ac_delim 13816prefix!$prefix$ac_delim 13817program_transform_name!$program_transform_name$ac_delim 13818bindir!$bindir$ac_delim 13819sbindir!$sbindir$ac_delim 13820libexecdir!$libexecdir$ac_delim 13821datarootdir!$datarootdir$ac_delim 13822datadir!$datadir$ac_delim 13823sysconfdir!$sysconfdir$ac_delim 13824sharedstatedir!$sharedstatedir$ac_delim 13825localstatedir!$localstatedir$ac_delim 13826includedir!$includedir$ac_delim 13827oldincludedir!$oldincludedir$ac_delim 13828docdir!$docdir$ac_delim 13829infodir!$infodir$ac_delim 13830htmldir!$htmldir$ac_delim 13831dvidir!$dvidir$ac_delim 13832pdfdir!$pdfdir$ac_delim 13833psdir!$psdir$ac_delim 13834libdir!$libdir$ac_delim 13835localedir!$localedir$ac_delim 13836mandir!$mandir$ac_delim 13837DEFS!$DEFS$ac_delim 13838ECHO_C!$ECHO_C$ac_delim 13839ECHO_N!$ECHO_N$ac_delim 13840ECHO_T!$ECHO_T$ac_delim 13841LIBS!$LIBS$ac_delim 13842build_alias!$build_alias$ac_delim 13843host_alias!$host_alias$ac_delim 13844target_alias!$target_alias$ac_delim 13845INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 13846INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 13847INSTALL_DATA!$INSTALL_DATA$ac_delim 13848am__isrc!$am__isrc$ac_delim 13849CYGPATH_W!$CYGPATH_W$ac_delim 13850PACKAGE!$PACKAGE$ac_delim 13851VERSION!$VERSION$ac_delim 13852ACLOCAL!$ACLOCAL$ac_delim 13853AUTOCONF!$AUTOCONF$ac_delim 13854AUTOMAKE!$AUTOMAKE$ac_delim 13855AUTOHEADER!$AUTOHEADER$ac_delim 13856MAKEINFO!$MAKEINFO$ac_delim 13857install_sh!$install_sh$ac_delim 13858STRIP!$STRIP$ac_delim 13859INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 13860mkdir_p!$mkdir_p$ac_delim 13861AWK!$AWK$ac_delim 13862SET_MAKE!$SET_MAKE$ac_delim 13863am__leading_dot!$am__leading_dot$ac_delim 13864AMTAR!$AMTAR$ac_delim 13865am__tar!$am__tar$ac_delim 13866am__untar!$am__untar$ac_delim 13867AS!$AS$ac_delim 13868DLLTOOL!$DLLTOOL$ac_delim 13869OBJDUMP!$OBJDUMP$ac_delim 13870LIBTOOL!$LIBTOOL$ac_delim 13871build!$build$ac_delim 13872build_cpu!$build_cpu$ac_delim 13873build_vendor!$build_vendor$ac_delim 13874build_os!$build_os$ac_delim 13875host!$host$ac_delim 13876host_cpu!$host_cpu$ac_delim 13877host_vendor!$host_vendor$ac_delim 13878host_os!$host_os$ac_delim 13879CC!$CC$ac_delim 13880CFLAGS!$CFLAGS$ac_delim 13881LDFLAGS!$LDFLAGS$ac_delim 13882CPPFLAGS!$CPPFLAGS$ac_delim 13883ac_ct_CC!$ac_ct_CC$ac_delim 13884EXEEXT!$EXEEXT$ac_delim 13885OBJEXT!$OBJEXT$ac_delim 13886DEPDIR!$DEPDIR$ac_delim 13887am__include!$am__include$ac_delim 13888am__quote!$am__quote$ac_delim 13889AMDEP_TRUE!$AMDEP_TRUE$ac_delim 13890AMDEP_FALSE!$AMDEP_FALSE$ac_delim 13891AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 13892CCDEPMODE!$CCDEPMODE$ac_delim 13893am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 13894am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 13895SED!$SED$ac_delim 13896GREP!$GREP$ac_delim 13897EGREP!$EGREP$ac_delim 13898FGREP!$FGREP$ac_delim 13899LD!$LD$ac_delim 13900DUMPBIN!$DUMPBIN$ac_delim 13901ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 13902NM!$NM$ac_delim 13903LN_S!$LN_S$ac_delim 13904AR!$AR$ac_delim 13905_ACEOF 13906 13907 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 13908 break 13909 elif $ac_last_try; then 13910 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13911echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13912 { (exit 1); exit 1; }; } 13913 else 13914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13915 fi 13916done 13917 13918ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13919if test -n "$ac_eof"; then 13920 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13921 ac_eof=`expr $ac_eof + 1` 13922fi 13923 13924cat >>$CONFIG_STATUS <<_ACEOF 13925cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 13926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13927_ACEOF 13928sed ' 13929s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13930s/^/s,@/; s/!/@,|#_!!_#|/ 13931:n 13932t n 13933s/'"$ac_delim"'$/,g/; t 13934s/$/\\/; p 13935N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13936' >>$CONFIG_STATUS <conf$$subs.sed 13937rm -f conf$$subs.sed 13938cat >>$CONFIG_STATUS <<_ACEOF 13939CEOF$ac_eof 13940_ACEOF 13941 13942 13943ac_delim='%!_!# ' 13944for ac_last_try in false false false false false :; do 13945 cat >conf$$subs.sed <<_ACEOF 13946RANLIB!$RANLIB$ac_delim 13947lt_ECHO!$lt_ECHO$ac_delim 13948DSYMUTIL!$DSYMUTIL$ac_delim 13949NMEDIT!$NMEDIT$ac_delim 13950LIPO!$LIPO$ac_delim 13951OTOOL!$OTOOL$ac_delim 13952OTOOL64!$OTOOL64$ac_delim 13953CPP!$CPP$ac_delim 13954LT_DLLOADERS!$LT_DLLOADERS$ac_delim 13955LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim 13956LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim 13957LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim 13958LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim 13959LIBADD_DL!$LIBADD_DL$ac_delim 13960sys_symbol_underscore!$sys_symbol_underscore$ac_delim 13961LIBOBJS!$LIBOBJS$ac_delim 13962ARGZ_H!$ARGZ_H$ac_delim 13963INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 13964INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 13965CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 13966CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 13967LT_CONFIG_H!$LT_CONFIG_H$ac_delim 13968LTDLOPEN!$LTDLOPEN$ac_delim 13969LTLIBOBJS!$LTLIBOBJS$ac_delim 13970_ACEOF 13971 13972 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 13973 break 13974 elif $ac_last_try; then 13975 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13976echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13977 { (exit 1); exit 1; }; } 13978 else 13979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13980 fi 13981done 13982 13983ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13984if test -n "$ac_eof"; then 13985 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13986 ac_eof=`expr $ac_eof + 1` 13987fi 13988 13989cat >>$CONFIG_STATUS <<_ACEOF 13990cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 13991/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 13992_ACEOF 13993sed ' 13994s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13995s/^/s,@/; s/!/@,|#_!!_#|/ 13996:n 13997t n 13998s/'"$ac_delim"'$/,g/; t 13999s/$/\\/; p 14000N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14001' >>$CONFIG_STATUS <conf$$subs.sed 14002rm -f conf$$subs.sed 14003cat >>$CONFIG_STATUS <<_ACEOF 14004:end 14005s/|#_!!_#|//g 14006CEOF$ac_eof 14007_ACEOF 14008 14009 14010# VPATH may cause trouble with some makes, so we remove $(srcdir), 14011# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14012# trailing colons and then remove the whole line if VPATH becomes empty 14013# (actually we leave an empty line to preserve line numbers). 14014if test "x$srcdir" = x.; then 14015 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14016s/:*\$(srcdir):*/:/ 14017s/:*\${srcdir}:*/:/ 14018s/:*@srcdir@:*/:/ 14019s/^\([^=]*=[ ]*\):*/\1/ 14020s/:*$// 14021s/^[^=]*=[ ]*$// 14022}' 14023fi 14024 14025cat >>$CONFIG_STATUS <<\_ACEOF 14026fi # test -n "$CONFIG_FILES" 14027 14028 14029for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 14030do 14031 case $ac_tag in 14032 :[FHLC]) ac_mode=$ac_tag; continue;; 14033 esac 14034 case $ac_mode$ac_tag in 14035 :[FHL]*:*);; 14036 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14037echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14038 { (exit 1); exit 1; }; };; 14039 :[FH]-) ac_tag=-:-;; 14040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14041 esac 14042 ac_save_IFS=$IFS 14043 IFS=: 14044 set x $ac_tag 14045 IFS=$ac_save_IFS 14046 shift 14047 ac_file=$1 14048 shift 14049 14050 case $ac_mode in 14051 :L) ac_source=$1;; 14052 :[FH]) 14053 ac_file_inputs= 14054 for ac_f 14055 do 14056 case $ac_f in 14057 -) ac_f="$tmp/stdin";; 14058 *) # Look for the file first in the build tree, then in the source tree 14059 # (if the path is not absolute). The absolute path cannot be DOS-style, 14060 # because $ac_f cannot contain `:'. 14061 test -f "$ac_f" || 14062 case $ac_f in 14063 [\\/$]*) false;; 14064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14065 esac || 14066 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14067echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14068 { (exit 1); exit 1; }; };; 14069 esac 14070 ac_file_inputs="$ac_file_inputs $ac_f" 14071 done 14072 14073 # Let's still pretend it is `configure' which instantiates (i.e., don't 14074 # use $as_me), people would be surprised to read: 14075 # /* config.h. Generated by config.status. */ 14076 configure_input="Generated from "`IFS=: 14077 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14078 if test x"$ac_file" != x-; then 14079 configure_input="$ac_file. $configure_input" 14080 { echo "$as_me:$LINENO: creating $ac_file" >&5 14081echo "$as_me: creating $ac_file" >&6;} 14082 fi 14083 14084 case $ac_tag in 14085 *:-:* | *:-) cat >"$tmp/stdin";; 14086 esac 14087 ;; 14088 esac 14089 14090 ac_dir=`$as_dirname -- "$ac_file" || 14091$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14092 X"$ac_file" : 'X\(//\)[^/]' \| \ 14093 X"$ac_file" : 'X\(//\)$' \| \ 14094 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14095echo X"$ac_file" | 14096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14097 s//\1/ 14098 q 14099 } 14100 /^X\(\/\/\)[^/].*/{ 14101 s//\1/ 14102 q 14103 } 14104 /^X\(\/\/\)$/{ 14105 s//\1/ 14106 q 14107 } 14108 /^X\(\/\).*/{ 14109 s//\1/ 14110 q 14111 } 14112 s/.*/./; q'` 14113 { as_dir="$ac_dir" 14114 case $as_dir in #( 14115 -*) as_dir=./$as_dir;; 14116 esac 14117 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14118 as_dirs= 14119 while :; do 14120 case $as_dir in #( 14121 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14122 *) as_qdir=$as_dir;; 14123 esac 14124 as_dirs="'$as_qdir' $as_dirs" 14125 as_dir=`$as_dirname -- "$as_dir" || 14126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14127 X"$as_dir" : 'X\(//\)[^/]' \| \ 14128 X"$as_dir" : 'X\(//\)$' \| \ 14129 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14130echo X"$as_dir" | 14131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14132 s//\1/ 14133 q 14134 } 14135 /^X\(\/\/\)[^/].*/{ 14136 s//\1/ 14137 q 14138 } 14139 /^X\(\/\/\)$/{ 14140 s//\1/ 14141 q 14142 } 14143 /^X\(\/\).*/{ 14144 s//\1/ 14145 q 14146 } 14147 s/.*/./; q'` 14148 test -d "$as_dir" && break 14149 done 14150 test -z "$as_dirs" || eval "mkdir $as_dirs" 14151 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14152echo "$as_me: error: cannot create directory $as_dir" >&2;} 14153 { (exit 1); exit 1; }; }; } 14154 ac_builddir=. 14155 14156case "$ac_dir" in 14157.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14158*) 14159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14160 # A ".." for each directory in $ac_dir_suffix. 14161 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14162 case $ac_top_builddir_sub in 14163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14165 esac ;; 14166esac 14167ac_abs_top_builddir=$ac_pwd 14168ac_abs_builddir=$ac_pwd$ac_dir_suffix 14169# for backward compatibility: 14170ac_top_builddir=$ac_top_build_prefix 14171 14172case $srcdir in 14173 .) # We are building in place. 14174 ac_srcdir=. 14175 ac_top_srcdir=$ac_top_builddir_sub 14176 ac_abs_top_srcdir=$ac_pwd ;; 14177 [\\/]* | ?:[\\/]* ) # Absolute name. 14178 ac_srcdir=$srcdir$ac_dir_suffix; 14179 ac_top_srcdir=$srcdir 14180 ac_abs_top_srcdir=$srcdir ;; 14181 *) # Relative name. 14182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14183 ac_top_srcdir=$ac_top_build_prefix$srcdir 14184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14185esac 14186ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14187 14188 14189 case $ac_mode in 14190 :F) 14191 # 14192 # CONFIG_FILE 14193 # 14194 14195 case $INSTALL in 14196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14198 esac 14199 ac_MKDIR_P=$MKDIR_P 14200 case $MKDIR_P in 14201 [\\/$]* | ?:[\\/]* ) ;; 14202 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14203 esac 14204_ACEOF 14205 14206cat >>$CONFIG_STATUS <<\_ACEOF 14207# If the template does not know about datarootdir, expand it. 14208# FIXME: This hack should be removed a few years after 2.60. 14209ac_datarootdir_hack=; ac_datarootdir_seen= 14210 14211case `sed -n '/datarootdir/ { 14212 p 14213 q 14214} 14215/@datadir@/p 14216/@docdir@/p 14217/@infodir@/p 14218/@localedir@/p 14219/@mandir@/p 14220' $ac_file_inputs` in 14221*datarootdir*) ac_datarootdir_seen=yes;; 14222*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14223 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14224echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14225_ACEOF 14226cat >>$CONFIG_STATUS <<_ACEOF 14227 ac_datarootdir_hack=' 14228 s&@datadir@&$datadir&g 14229 s&@docdir@&$docdir&g 14230 s&@infodir@&$infodir&g 14231 s&@localedir@&$localedir&g 14232 s&@mandir@&$mandir&g 14233 s&\\\${datarootdir}&$datarootdir&g' ;; 14234esac 14235_ACEOF 14236 14237# Neutralize VPATH when `$srcdir' = `.'. 14238# Shell code in configure.ac might set extrasub. 14239# FIXME: do we really want to maintain this feature? 14240cat >>$CONFIG_STATUS <<_ACEOF 14241 sed "$ac_vpsub 14242$extrasub 14243_ACEOF 14244cat >>$CONFIG_STATUS <<\_ACEOF 14245:t 14246/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14247s&@configure_input@&$configure_input&;t t 14248s&@top_builddir@&$ac_top_builddir_sub&;t t 14249s&@srcdir@&$ac_srcdir&;t t 14250s&@abs_srcdir@&$ac_abs_srcdir&;t t 14251s&@top_srcdir@&$ac_top_srcdir&;t t 14252s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14253s&@builddir@&$ac_builddir&;t t 14254s&@abs_builddir@&$ac_abs_builddir&;t t 14255s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14256s&@INSTALL@&$ac_INSTALL&;t t 14257s&@MKDIR_P@&$ac_MKDIR_P&;t t 14258$ac_datarootdir_hack 14259" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 14260 14261test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14262 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14264 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14265which seems to be undefined. Please make sure it is defined." >&5 14266echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14267which seems to be undefined. Please make sure it is defined." >&2;} 14268 14269 rm -f "$tmp/stdin" 14270 case $ac_file in 14271 -) cat "$tmp/out"; rm -f "$tmp/out";; 14272 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14273 esac 14274 ;; 14275 :H) 14276 # 14277 # CONFIG_HEADER 14278 # 14279_ACEOF 14280 14281# Transform confdefs.h into a sed script `conftest.defines', that 14282# substitutes the proper values into config.h.in to produce config.h. 14283rm -f conftest.defines conftest.tail 14284# First, append a space to every undef/define line, to ease matching. 14285echo 's/$/ /' >conftest.defines 14286# Then, protect against being on the right side of a sed subst, or in 14287# an unquoted here document, in config.status. If some macros were 14288# called several times there might be several #defines for the same 14289# symbol, which is useless. But do not sort them, since the last 14290# AC_DEFINE must be honored. 14291ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14292# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 14293# NAME is the cpp macro being defined, VALUE is the value it is being given. 14294# PARAMS is the parameter list in the macro definition--in most cases, it's 14295# just an empty string. 14296ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 14297ac_dB='\\)[ (].*,\\1define\\2' 14298ac_dC=' ' 14299ac_dD=' ,' 14300 14301uniq confdefs.h | 14302 sed -n ' 14303 t rset 14304 :rset 14305 s/^[ ]*#[ ]*define[ ][ ]*// 14306 t ok 14307 d 14308 :ok 14309 s/[\\&,]/\\&/g 14310 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 14311 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 14312 ' >>conftest.defines 14313 14314# Remove the space that was appended to ease matching. 14315# Then replace #undef with comments. This is necessary, for 14316# example, in the case of _POSIX_SOURCE, which is predefined and required 14317# on some systems where configure will not decide to define it. 14318# (The regexp can be short, since the line contains either #define or #undef.) 14319echo 's/ $// 14320s,^[ #]*u.*,/* & */,' >>conftest.defines 14321 14322# Break up conftest.defines: 14323ac_max_sed_lines=50 14324 14325# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 14326# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 14327# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 14328# et cetera. 14329ac_in='$ac_file_inputs' 14330ac_out='"$tmp/out1"' 14331ac_nxt='"$tmp/out2"' 14332 14333while : 14334do 14335 # Write a here document: 14336 cat >>$CONFIG_STATUS <<_ACEOF 14337 # First, check the format of the line: 14338 cat >"\$tmp/defines.sed" <<\\CEOF 14339/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 14340/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 14341b 14342:def 14343_ACEOF 14344 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 14345 echo 'CEOF 14346 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 14347 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 14348 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 14349 grep . conftest.tail >/dev/null || break 14350 rm -f conftest.defines 14351 mv conftest.tail conftest.defines 14352done 14353rm -f conftest.defines conftest.tail 14354 14355echo "ac_result=$ac_in" >>$CONFIG_STATUS 14356cat >>$CONFIG_STATUS <<\_ACEOF 14357 if test x"$ac_file" != x-; then 14358 echo "/* $configure_input */" >"$tmp/config.h" 14359 cat "$ac_result" >>"$tmp/config.h" 14360 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 14361 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14362echo "$as_me: $ac_file is unchanged" >&6;} 14363 else 14364 rm -f $ac_file 14365 mv "$tmp/config.h" $ac_file 14366 fi 14367 else 14368 echo "/* $configure_input */" 14369 cat "$ac_result" 14370 fi 14371 rm -f "$tmp/out12" 14372# Compute $ac_file's index in $config_headers. 14373_am_arg=$ac_file 14374_am_stamp_count=1 14375for _am_header in $config_headers :; do 14376 case $_am_header in 14377 $_am_arg | $_am_arg:* ) 14378 break ;; 14379 * ) 14380 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14381 esac 14382done 14383echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14384$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14385 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14386 X"$_am_arg" : 'X\(//\)$' \| \ 14387 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14388echo X"$_am_arg" | 14389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14390 s//\1/ 14391 q 14392 } 14393 /^X\(\/\/\)[^/].*/{ 14394 s//\1/ 14395 q 14396 } 14397 /^X\(\/\/\)$/{ 14398 s//\1/ 14399 q 14400 } 14401 /^X\(\/\).*/{ 14402 s//\1/ 14403 q 14404 } 14405 s/.*/./; q'`/stamp-h$_am_stamp_count 14406 ;; 14407 14408 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 14409echo "$as_me: executing $ac_file commands" >&6;} 14410 ;; 14411 esac 14412 14413 14414 case $ac_file$ac_mode in 14415 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14416 # Strip MF so we end up with the name of the file. 14417 mf=`echo "$mf" | sed -e 's/:.*$//'` 14418 # Check whether this is an Automake generated Makefile or not. 14419 # We used to match only the files named `Makefile.in', but 14420 # some people rename them; so instead we look at the file content. 14421 # Grep'ing the first line is not enough: some people post-process 14422 # each Makefile.in and add a new line on top of each file to say so. 14423 # Grep'ing the whole file is not good either: AIX grep has a line 14424 # limit of 2048, but all sed's we know have understand at least 4000. 14425 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14426 dirpart=`$as_dirname -- "$mf" || 14427$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14428 X"$mf" : 'X\(//\)[^/]' \| \ 14429 X"$mf" : 'X\(//\)$' \| \ 14430 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14431echo X"$mf" | 14432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14433 s//\1/ 14434 q 14435 } 14436 /^X\(\/\/\)[^/].*/{ 14437 s//\1/ 14438 q 14439 } 14440 /^X\(\/\/\)$/{ 14441 s//\1/ 14442 q 14443 } 14444 /^X\(\/\).*/{ 14445 s//\1/ 14446 q 14447 } 14448 s/.*/./; q'` 14449 else 14450 continue 14451 fi 14452 # Extract the definition of DEPDIR, am__include, and am__quote 14453 # from the Makefile without running `make'. 14454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14455 test -z "$DEPDIR" && continue 14456 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14457 test -z "am__include" && continue 14458 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14459 # When using ansi2knr, U may be empty or an underscore; expand it 14460 U=`sed -n 's/^U = //p' < "$mf"` 14461 # Find all dependency output files, they are included files with 14462 # $(DEPDIR) in their names. We invoke sed twice because it is the 14463 # simplest approach to changing $(DEPDIR) to its actual value in the 14464 # expansion. 14465 for file in `sed -n " 14466 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14468 # Make sure the directory exists. 14469 test -f "$dirpart/$file" && continue 14470 fdir=`$as_dirname -- "$file" || 14471$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14472 X"$file" : 'X\(//\)[^/]' \| \ 14473 X"$file" : 'X\(//\)$' \| \ 14474 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14475echo X"$file" | 14476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14477 s//\1/ 14478 q 14479 } 14480 /^X\(\/\/\)[^/].*/{ 14481 s//\1/ 14482 q 14483 } 14484 /^X\(\/\/\)$/{ 14485 s//\1/ 14486 q 14487 } 14488 /^X\(\/\).*/{ 14489 s//\1/ 14490 q 14491 } 14492 s/.*/./; q'` 14493 { as_dir=$dirpart/$fdir 14494 case $as_dir in #( 14495 -*) as_dir=./$as_dir;; 14496 esac 14497 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14498 as_dirs= 14499 while :; do 14500 case $as_dir in #( 14501 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14502 *) as_qdir=$as_dir;; 14503 esac 14504 as_dirs="'$as_qdir' $as_dirs" 14505 as_dir=`$as_dirname -- "$as_dir" || 14506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14507 X"$as_dir" : 'X\(//\)[^/]' \| \ 14508 X"$as_dir" : 'X\(//\)$' \| \ 14509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14510echo X"$as_dir" | 14511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14512 s//\1/ 14513 q 14514 } 14515 /^X\(\/\/\)[^/].*/{ 14516 s//\1/ 14517 q 14518 } 14519 /^X\(\/\/\)$/{ 14520 s//\1/ 14521 q 14522 } 14523 /^X\(\/\).*/{ 14524 s//\1/ 14525 q 14526 } 14527 s/.*/./; q'` 14528 test -d "$as_dir" && break 14529 done 14530 test -z "$as_dirs" || eval "mkdir $as_dirs" 14531 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14532echo "$as_me: error: cannot create directory $as_dir" >&2;} 14533 { (exit 1); exit 1; }; }; } 14534 # echo "creating $dirpart/$file" 14535 echo '# dummy' > "$dirpart/$file" 14536 done 14537done 14538 ;; 14539 "libtool":C) 14540 14541 # See if we are running on zsh, and set the options which allow our 14542 # commands through without removal of \ escapes. 14543 if test -n "${ZSH_VERSION+set}" ; then 14544 setopt NO_GLOB_SUBST 14545 fi 14546 14547 cfgfile="${ofile}T" 14548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14549 $RM "$cfgfile" 14550 14551 cat <<_LT_EOF >> "$cfgfile" 14552#! $SHELL 14553 14554# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14555# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14557# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14558# 14559# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14560# 2006, 2007, 2008 Free Software Foundation, Inc. 14561# Written by Gordon Matzigkeit, 1996 14562# 14563# This file is part of GNU Libtool. 14564# 14565# GNU Libtool is free software; you can redistribute it and/or 14566# modify it under the terms of the GNU General Public License as 14567# published by the Free Software Foundation; either version 2 of 14568# the License, or (at your option) any later version. 14569# 14570# As a special exception to the GNU General Public License, 14571# if you distribute this file as part of a program or library that 14572# is built using GNU Libtool, you may include this file under the 14573# same distribution terms that you use for the rest of that program. 14574# 14575# GNU Libtool is distributed in the hope that it will be useful, 14576# but WITHOUT ANY WARRANTY; without even the implied warranty of 14577# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14578# GNU General Public License for more details. 14579# 14580# You should have received a copy of the GNU General Public License 14581# along with GNU Libtool; see the file COPYING. If not, a copy 14582# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14583# obtained by writing to the Free Software Foundation, Inc., 14584# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14585 14586 14587# The names of the tagged configurations supported by this script. 14588available_tags="" 14589 14590# ### BEGIN LIBTOOL CONFIG 14591 14592# Which release of libtool.m4 was used? 14593macro_version=$macro_version 14594macro_revision=$macro_revision 14595 14596# Assembler program. 14597AS=$AS 14598 14599# DLL creation program. 14600DLLTOOL=$DLLTOOL 14601 14602# Object dumper program. 14603OBJDUMP=$OBJDUMP 14604 14605# Whether or not to build shared libraries. 14606build_libtool_libs=$enable_shared 14607 14608# Whether or not to build static libraries. 14609build_old_libs=$enable_static 14610 14611# What type of objects to build. 14612pic_mode=$pic_mode 14613 14614# Whether or not to optimize for fast installation. 14615fast_install=$enable_fast_install 14616 14617# The host system. 14618host_alias=$host_alias 14619host=$host 14620host_os=$host_os 14621 14622# The build system. 14623build_alias=$build_alias 14624build=$build 14625build_os=$build_os 14626 14627# A sed program that does not truncate output. 14628SED=$lt_SED 14629 14630# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14631Xsed="\$SED -e 1s/^X//" 14632 14633# A grep program that handles long lines. 14634GREP=$lt_GREP 14635 14636# An ERE matcher. 14637EGREP=$lt_EGREP 14638 14639# A literal string matcher. 14640FGREP=$lt_FGREP 14641 14642# A BSD- or MS-compatible name lister. 14643NM=$lt_NM 14644 14645# Whether we need soft or hard links. 14646LN_S=$lt_LN_S 14647 14648# What is the maximum length of a command? 14649max_cmd_len=$max_cmd_len 14650 14651# Object file suffix (normally "o"). 14652objext=$ac_objext 14653 14654# Executable file suffix (normally ""). 14655exeext=$exeext 14656 14657# whether the shell understands "unset". 14658lt_unset=$lt_unset 14659 14660# turn spaces into newlines. 14661SP2NL=$lt_lt_SP2NL 14662 14663# turn newlines into spaces. 14664NL2SP=$lt_lt_NL2SP 14665 14666# How to create reloadable object files. 14667reload_flag=$lt_reload_flag 14668reload_cmds=$lt_reload_cmds 14669 14670# Method to check whether dependent libraries are shared objects. 14671deplibs_check_method=$lt_deplibs_check_method 14672 14673# Command to use when deplibs_check_method == "file_magic". 14674file_magic_cmd=$lt_file_magic_cmd 14675 14676# The archiver. 14677AR=$lt_AR 14678AR_FLAGS=$lt_AR_FLAGS 14679 14680# A symbol stripping program. 14681STRIP=$lt_STRIP 14682 14683# Commands used to install an old-style archive. 14684RANLIB=$lt_RANLIB 14685old_postinstall_cmds=$lt_old_postinstall_cmds 14686old_postuninstall_cmds=$lt_old_postuninstall_cmds 14687 14688# A C compiler. 14689LTCC=$lt_CC 14690 14691# LTCC compiler flags. 14692LTCFLAGS=$lt_CFLAGS 14693 14694# Take the output of nm and produce a listing of raw symbols and C names. 14695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14696 14697# Transform the output of nm in a proper C declaration. 14698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14699 14700# Transform the output of nm in a C name address pair. 14701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14702 14703# Transform the output of nm in a C name address pair when lib prefix is needed. 14704global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14705 14706# The name of the directory that contains temporary libtool files. 14707objdir=$objdir 14708 14709# Shell to use when invoking shell scripts. 14710SHELL=$lt_SHELL 14711 14712# An echo program that does not interpret backslashes. 14713ECHO=$lt_ECHO 14714 14715# Used to examine libraries when file_magic_cmd begins with "file". 14716MAGIC_CMD=$MAGIC_CMD 14717 14718# Must we lock files when doing compilation? 14719need_locks=$lt_need_locks 14720 14721# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14722DSYMUTIL=$lt_DSYMUTIL 14723 14724# Tool to change global to local symbols on Mac OS X. 14725NMEDIT=$lt_NMEDIT 14726 14727# Tool to manipulate fat objects and archives on Mac OS X. 14728LIPO=$lt_LIPO 14729 14730# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14731OTOOL=$lt_OTOOL 14732 14733# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14734OTOOL64=$lt_OTOOL64 14735 14736# Old archive suffix (normally "a"). 14737libext=$libext 14738 14739# Shared library suffix (normally ".so"). 14740shrext_cmds=$lt_shrext_cmds 14741 14742# The commands to extract the exported symbol list from a shared archive. 14743extract_expsyms_cmds=$lt_extract_expsyms_cmds 14744 14745# Variables whose values should be saved in libtool wrapper scripts and 14746# restored at link time. 14747variables_saved_for_relink=$lt_variables_saved_for_relink 14748 14749# Do we need the "lib" prefix for modules? 14750need_lib_prefix=$need_lib_prefix 14751 14752# Do we need a version for libraries? 14753need_version=$need_version 14754 14755# Library versioning type. 14756version_type=$version_type 14757 14758# Shared library runtime path variable. 14759runpath_var=$runpath_var 14760 14761# Shared library path variable. 14762shlibpath_var=$shlibpath_var 14763 14764# Is shlibpath searched before the hard-coded library search path? 14765shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14766 14767# Format of library name prefix. 14768libname_spec=$lt_libname_spec 14769 14770# List of archive names. First name is the real one, the rest are links. 14771# The last name is the one that the linker finds with -lNAME 14772library_names_spec=$lt_library_names_spec 14773 14774# The coded name of the library, if different from the real name. 14775soname_spec=$lt_soname_spec 14776 14777# Command to use after installation of a shared archive. 14778postinstall_cmds=$lt_postinstall_cmds 14779 14780# Command to use after uninstallation of a shared archive. 14781postuninstall_cmds=$lt_postuninstall_cmds 14782 14783# Commands used to finish a libtool library installation in a directory. 14784finish_cmds=$lt_finish_cmds 14785 14786# As "finish_cmds", except a single script fragment to be evaled but 14787# not shown. 14788finish_eval=$lt_finish_eval 14789 14790# Whether we should hardcode library paths into libraries. 14791hardcode_into_libs=$hardcode_into_libs 14792 14793# Compile-time system search path for libraries. 14794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14795 14796# Run-time system search path for libraries. 14797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14798 14799# Whether dlopen is supported. 14800dlopen_support=$enable_dlopen 14801 14802# Whether dlopen of programs is supported. 14803dlopen_self=$enable_dlopen_self 14804 14805# Whether dlopen of statically linked programs is supported. 14806dlopen_self_static=$enable_dlopen_self_static 14807 14808# Commands to strip libraries. 14809old_striplib=$lt_old_striplib 14810striplib=$lt_striplib 14811 14812 14813# The linker used to build libraries. 14814LD=$lt_LD 14815 14816# Commands used to build an old-style archive. 14817old_archive_cmds=$lt_old_archive_cmds 14818 14819# A language specific compiler. 14820CC=$lt_compiler 14821 14822# Is the compiler the GNU compiler? 14823with_gcc=$GCC 14824 14825# Compiler flag to turn off builtin functions. 14826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14827 14828# How to pass a linker flag through the compiler. 14829wl=$lt_lt_prog_compiler_wl 14830 14831# Additional compiler flags for building library objects. 14832pic_flag=$lt_lt_prog_compiler_pic 14833 14834# Compiler flag to prevent dynamic linking. 14835link_static_flag=$lt_lt_prog_compiler_static 14836 14837# Does compiler simultaneously support -c and -o options? 14838compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14839 14840# Whether or not to add -lc for building shared libraries. 14841build_libtool_need_lc=$archive_cmds_need_lc 14842 14843# Whether or not to disallow shared libs when runtime libs are static. 14844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14845 14846# Compiler flag to allow reflexive dlopens. 14847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14848 14849# Compiler flag to generate shared objects directly from archives. 14850whole_archive_flag_spec=$lt_whole_archive_flag_spec 14851 14852# Whether the compiler copes with passing no objects directly. 14853compiler_needs_object=$lt_compiler_needs_object 14854 14855# Create an old-style archive from a shared archive. 14856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14857 14858# Create a temporary old-style archive to link instead of a shared archive. 14859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14860 14861# Commands used to build a shared archive. 14862archive_cmds=$lt_archive_cmds 14863archive_expsym_cmds=$lt_archive_expsym_cmds 14864 14865# Commands used to build a loadable module if different from building 14866# a shared archive. 14867module_cmds=$lt_module_cmds 14868module_expsym_cmds=$lt_module_expsym_cmds 14869 14870# Whether we are building with GNU ld or not. 14871with_gnu_ld=$lt_with_gnu_ld 14872 14873# Flag that allows shared libraries with undefined symbols to be built. 14874allow_undefined_flag=$lt_allow_undefined_flag 14875 14876# Flag that enforces no undefined symbols. 14877no_undefined_flag=$lt_no_undefined_flag 14878 14879# Flag to hardcode \$libdir into a binary during linking. 14880# This must work even if \$libdir does not exist 14881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14882 14883# If ld is used when linking, flag to hardcode \$libdir into a binary 14884# during linking. This must work even if \$libdir does not exist. 14885hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14886 14887# Whether we need a single "-rpath" flag with a separated argument. 14888hardcode_libdir_separator=$lt_hardcode_libdir_separator 14889 14890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14891# DIR into the resulting binary. 14892hardcode_direct=$hardcode_direct 14893 14894# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14895# DIR into the resulting binary and the resulting library dependency is 14896# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14897# library is relocated. 14898hardcode_direct_absolute=$hardcode_direct_absolute 14899 14900# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14901# into the resulting binary. 14902hardcode_minus_L=$hardcode_minus_L 14903 14904# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14905# into the resulting binary. 14906hardcode_shlibpath_var=$hardcode_shlibpath_var 14907 14908# Set to "yes" if building a shared library automatically hardcodes DIR 14909# into the library and all subsequent libraries and executables linked 14910# against it. 14911hardcode_automatic=$hardcode_automatic 14912 14913# Set to yes if linker adds runtime paths of dependent libraries 14914# to runtime path list. 14915inherit_rpath=$inherit_rpath 14916 14917# Whether libtool must link a program against all its dependency libraries. 14918link_all_deplibs=$link_all_deplibs 14919 14920# Fix the shell variable \$srcfile for the compiler. 14921fix_srcfile_path=$lt_fix_srcfile_path 14922 14923# Set to "yes" if exported symbols are required. 14924always_export_symbols=$always_export_symbols 14925 14926# The commands to list exported symbols. 14927export_symbols_cmds=$lt_export_symbols_cmds 14928 14929# Symbols that should not be listed in the preloaded symbols. 14930exclude_expsyms=$lt_exclude_expsyms 14931 14932# Symbols that must always be exported. 14933include_expsyms=$lt_include_expsyms 14934 14935# Commands necessary for linking programs (against libraries) with templates. 14936prelink_cmds=$lt_prelink_cmds 14937 14938# Specify filename containing input files. 14939file_list_spec=$lt_file_list_spec 14940 14941# How to hardcode a shared library path into an executable. 14942hardcode_action=$hardcode_action 14943 14944# ### END LIBTOOL CONFIG 14945 14946_LT_EOF 14947 14948 case $host_os in 14949 aix3*) 14950 cat <<\_LT_EOF >> "$cfgfile" 14951# AIX sometimes has problems with the GCC collect2 program. For some 14952# reason, if we set the COLLECT_NAMES environment variable, the problems 14953# vanish in a puff of smoke. 14954if test "X${COLLECT_NAMES+set}" != Xset; then 14955 COLLECT_NAMES= 14956 export COLLECT_NAMES 14957fi 14958_LT_EOF 14959 ;; 14960 esac 14961 14962 14963ltmain="$ac_aux_dir/ltmain.sh" 14964 14965 14966 # We use sed instead of cat because bash on DJGPP gets confused if 14967 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14968 # text mode, it properly converts lines to CR/LF. This bash problem 14969 # is reportedly fixed, but why not run on old versions too? 14970 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14971 || (rm -f "$cfgfile"; exit 1) 14972 14973 case $xsi_shell in 14974 yes) 14975 cat << \_LT_EOF >> "$cfgfile" 14976 14977# func_dirname file append nondir_replacement 14978# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14979# otherwise set result to NONDIR_REPLACEMENT. 14980func_dirname () 14981{ 14982 case ${1} in 14983 */*) func_dirname_result="${1%/*}${2}" ;; 14984 * ) func_dirname_result="${3}" ;; 14985 esac 14986} 14987 14988# func_basename file 14989func_basename () 14990{ 14991 func_basename_result="${1##*/}" 14992} 14993 14994# func_dirname_and_basename file append nondir_replacement 14995# perform func_basename and func_dirname in a single function 14996# call: 14997# dirname: Compute the dirname of FILE. If nonempty, 14998# add APPEND to the result, otherwise set result 14999# to NONDIR_REPLACEMENT. 15000# value returned in "$func_dirname_result" 15001# basename: Compute filename of FILE. 15002# value retuned in "$func_basename_result" 15003# Implementation must be kept synchronized with func_dirname 15004# and func_basename. For efficiency, we do not delegate to 15005# those functions but instead duplicate the functionality here. 15006func_dirname_and_basename () 15007{ 15008 case ${1} in 15009 */*) func_dirname_result="${1%/*}${2}" ;; 15010 * ) func_dirname_result="${3}" ;; 15011 esac 15012 func_basename_result="${1##*/}" 15013} 15014 15015# func_stripname prefix suffix name 15016# strip PREFIX and SUFFIX off of NAME. 15017# PREFIX and SUFFIX must not contain globbing or regex special 15018# characters, hashes, percent signs, but SUFFIX may contain a leading 15019# dot (in which case that matches only a dot). 15020func_stripname () 15021{ 15022 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15023 # positional parameters, so assign one to ordinary parameter first. 15024 func_stripname_result=${3} 15025 func_stripname_result=${func_stripname_result#"${1}"} 15026 func_stripname_result=${func_stripname_result%"${2}"} 15027} 15028 15029# func_opt_split 15030func_opt_split () 15031{ 15032 func_opt_split_opt=${1%%=*} 15033 func_opt_split_arg=${1#*=} 15034} 15035 15036# func_lo2o object 15037func_lo2o () 15038{ 15039 case ${1} in 15040 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15041 *) func_lo2o_result=${1} ;; 15042 esac 15043} 15044 15045# func_xform libobj-or-source 15046func_xform () 15047{ 15048 func_xform_result=${1%.*}.lo 15049} 15050 15051# func_arith arithmetic-term... 15052func_arith () 15053{ 15054 func_arith_result=$(( $* )) 15055} 15056 15057# func_len string 15058# STRING may not start with a hyphen. 15059func_len () 15060{ 15061 func_len_result=${#1} 15062} 15063 15064_LT_EOF 15065 ;; 15066 *) # Bourne compatible functions. 15067 cat << \_LT_EOF >> "$cfgfile" 15068 15069# func_dirname file append nondir_replacement 15070# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15071# otherwise set result to NONDIR_REPLACEMENT. 15072func_dirname () 15073{ 15074 # Extract subdirectory from the argument. 15075 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15076 if test "X$func_dirname_result" = "X${1}"; then 15077 func_dirname_result="${3}" 15078 else 15079 func_dirname_result="$func_dirname_result${2}" 15080 fi 15081} 15082 15083# func_basename file 15084func_basename () 15085{ 15086 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15087} 15088 15089 15090# func_stripname prefix suffix name 15091# strip PREFIX and SUFFIX off of NAME. 15092# PREFIX and SUFFIX must not contain globbing or regex special 15093# characters, hashes, percent signs, but SUFFIX may contain a leading 15094# dot (in which case that matches only a dot). 15095# func_strip_suffix prefix name 15096func_stripname () 15097{ 15098 case ${2} in 15099 .*) func_stripname_result=`$ECHO "X${3}" \ 15100 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15101 *) func_stripname_result=`$ECHO "X${3}" \ 15102 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15103 esac 15104} 15105 15106# sed scripts: 15107my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15108my_sed_long_arg='1s/^-[^=]*=//' 15109 15110# func_opt_split 15111func_opt_split () 15112{ 15113 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15114 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15115} 15116 15117# func_lo2o object 15118func_lo2o () 15119{ 15120 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15121} 15122 15123# func_xform libobj-or-source 15124func_xform () 15125{ 15126 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15127} 15128 15129# func_arith arithmetic-term... 15130func_arith () 15131{ 15132 func_arith_result=`expr "$@"` 15133} 15134 15135# func_len string 15136# STRING may not start with a hyphen. 15137func_len () 15138{ 15139 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15140} 15141 15142_LT_EOF 15143esac 15144 15145case $lt_shell_append in 15146 yes) 15147 cat << \_LT_EOF >> "$cfgfile" 15148 15149# func_append var value 15150# Append VALUE to the end of shell variable VAR. 15151func_append () 15152{ 15153 eval "$1+=\$2" 15154} 15155_LT_EOF 15156 ;; 15157 *) 15158 cat << \_LT_EOF >> "$cfgfile" 15159 15160# func_append var value 15161# Append VALUE to the end of shell variable VAR. 15162func_append () 15163{ 15164 eval "$1=\$$1\$2" 15165} 15166 15167_LT_EOF 15168 ;; 15169 esac 15170 15171 15172 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15173 || (rm -f "$cfgfile"; exit 1) 15174 15175 mv -f "$cfgfile" "$ofile" || 15176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15177 chmod +x "$ofile" 15178 15179 ;; 15180 15181 esac 15182done # for ac_tag 15183 15184 15185{ (exit 0); exit 0; } 15186_ACEOF 15187chmod +x $CONFIG_STATUS 15188ac_clean_files=$ac_clean_files_save 15189 15190 15191# configure is writing to config.log, and then calls config.status. 15192# config.status does its own redirection, appending to config.log. 15193# Unfortunately, on DOS this fails, as config.log is still kept open 15194# by configure, so config.status won't be able to write to it; its 15195# output is simply discarded. So we exec the FD to /dev/null, 15196# effectively closing config.log, so it can be properly (re)opened and 15197# appended to by config.status. When coming back to configure, we 15198# need to make the FD available again. 15199if test "$no_create" != yes; then 15200 ac_cs_success=: 15201 ac_config_status_args= 15202 test "$silent" = yes && 15203 ac_config_status_args="$ac_config_status_args --quiet" 15204 exec 5>/dev/null 15205 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15206 exec 5>>config.log 15207 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15208 # would make configure fail if this is the last instruction. 15209 $ac_cs_success || { (exit 1); exit 1; } 15210fi 15211 15212