1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for pkcs11-dump 0.3.4. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME='pkcs11-dump' 745PACKAGE_TARNAME='pkcs11-dump' 746PACKAGE_VERSION='0.3.4' 747PACKAGE_STRING='pkcs11-dump 0.3.4' 748PACKAGE_BUGREPORT='' 749 750ac_unique_file="pkcs11-dump.cpp" 751# Factoring default headers for most tests. 752ac_includes_default="\ 753#include <stdio.h> 754#ifdef HAVE_SYS_TYPES_H 755# include <sys/types.h> 756#endif 757#ifdef HAVE_SYS_STAT_H 758# include <sys/stat.h> 759#endif 760#ifdef STDC_HEADERS 761# include <stdlib.h> 762# include <stddef.h> 763#else 764# ifdef HAVE_STDLIB_H 765# include <stdlib.h> 766# endif 767#endif 768#ifdef HAVE_STRING_H 769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 770# include <memory.h> 771# endif 772# include <string.h> 773#endif 774#ifdef HAVE_STRINGS_H 775# include <strings.h> 776#endif 777#ifdef HAVE_INTTYPES_H 778# include <inttypes.h> 779#endif 780#ifdef HAVE_STDINT_H 781# include <stdint.h> 782#endif 783#ifdef HAVE_UNISTD_H 784# include <unistd.h> 785#endif" 786 787ac_header_list= 788ac_func_list= 789ac_subst_vars='LTLIBOBJS 790CYGWIN_FALSE 791CYGWIN_TRUE 792WIN32_FALSE 793WIN32_TRUE 794PKCS11_DUMP_VERSION_FIX 795PKCS11_DUMP_VERSION_MINOR 796PKCS11_DUMP_VERSION_MAJOR 797OPENSSL_LIBS 798OPENSSL_CFLAGS 799LIBOBJS 800MAN2HTML 801CXXCPP 802CPP 803OTOOL64 804OTOOL 805LIPO 806NMEDIT 807DSYMUTIL 808lt_ECHO 809RANLIB 810AR 811OBJDUMP 812LN_S 813NM 814ac_ct_DUMPBIN 815DUMPBIN 816LD 817FGREP 818EGREP 819GREP 820SED 821LIBTOOL 822PKG_CONFIG 823am__fastdepCXX_FALSE 824am__fastdepCXX_TRUE 825CXXDEPMODE 826ac_ct_CXX 827CXXFLAGS 828CXX 829am__fastdepCC_FALSE 830am__fastdepCC_TRUE 831CCDEPMODE 832AMDEPBACKSLASH 833AMDEP_FALSE 834AMDEP_TRUE 835am__quote 836am__include 837DEPDIR 838OBJEXT 839EXEEXT 840ac_ct_CC 841CPPFLAGS 842LDFLAGS 843CFLAGS 844CC 845host_os 846host_vendor 847host_cpu 848host 849build_os 850build_vendor 851build_cpu 852build 853am__untar 854am__tar 855AMTAR 856am__leading_dot 857SET_MAKE 858AWK 859mkdir_p 860MKDIR_P 861INSTALL_STRIP_PROGRAM 862STRIP 863install_sh 864MAKEINFO 865AUTOHEADER 866AUTOMAKE 867AUTOCONF 868ACLOCAL 869VERSION 870PACKAGE 871CYGPATH_W 872am__isrc 873INSTALL_DATA 874INSTALL_SCRIPT 875INSTALL_PROGRAM 876target_alias 877host_alias 878build_alias 879LIBS 880ECHO_T 881ECHO_N 882ECHO_C 883DEFS 884mandir 885localedir 886libdir 887psdir 888pdfdir 889dvidir 890htmldir 891infodir 892docdir 893oldincludedir 894includedir 895localstatedir 896sharedstatedir 897sysconfdir 898datadir 899datarootdir 900libexecdir 901sbindir 902bindir 903program_transform_name 904prefix 905exec_prefix 906PACKAGE_BUGREPORT 907PACKAGE_STRING 908PACKAGE_VERSION 909PACKAGE_TARNAME 910PACKAGE_NAME 911PATH_SEPARATOR 912SHELL' 913ac_subst_files='' 914ac_user_opts=' 915enable_option_checking 916with_cygwin_native 917enable_pedantic 918enable_dependency_tracking 919enable_shared 920enable_static 921with_pic 922enable_fast_install 923with_gnu_ld 924enable_libtool_lock 925' 926 ac_precious_vars='build_alias 927host_alias 928target_alias 929CC 930CFLAGS 931LDFLAGS 932LIBS 933CPPFLAGS 934CXX 935CXXFLAGS 936CCC 937PKG_CONFIG 938CPP 939CXXCPP 940MAN2HTML 941OPENSSL_CFLAGS 942OPENSSL_LIBS' 943 944 945# Initialize some variables set by options. 946ac_init_help= 947ac_init_version=false 948ac_unrecognized_opts= 949ac_unrecognized_sep= 950# The variables have the same names as the options, with 951# dashes changed to underlines. 952cache_file=/dev/null 953exec_prefix=NONE 954no_create= 955no_recursion= 956prefix=NONE 957program_prefix=NONE 958program_suffix=NONE 959program_transform_name=s,x,x, 960silent= 961site= 962srcdir= 963verbose= 964x_includes=NONE 965x_libraries=NONE 966 967# Installation directory options. 968# These are left unexpanded so users can "make install exec_prefix=/foo" 969# and all the variables that are supposed to be based on exec_prefix 970# by default will actually change. 971# Use braces instead of parens because sh, perl, etc. also accept them. 972# (The list follows the same order as the GNU Coding Standards.) 973bindir='${exec_prefix}/bin' 974sbindir='${exec_prefix}/sbin' 975libexecdir='${exec_prefix}/libexec' 976datarootdir='${prefix}/share' 977datadir='${datarootdir}' 978sysconfdir='${prefix}/etc' 979sharedstatedir='${prefix}/com' 980localstatedir='${prefix}/var' 981includedir='${prefix}/include' 982oldincludedir='/usr/include' 983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 984infodir='${datarootdir}/info' 985htmldir='${docdir}' 986dvidir='${docdir}' 987pdfdir='${docdir}' 988psdir='${docdir}' 989libdir='${exec_prefix}/lib' 990localedir='${datarootdir}/locale' 991mandir='${datarootdir}/man' 992 993ac_prev= 994ac_dashdash= 995for ac_option 996do 997 # If the previous option needs an argument, assign it. 998 if test -n "$ac_prev"; then 999 eval $ac_prev=\$ac_option 1000 ac_prev= 1001 continue 1002 fi 1003 1004 case $ac_option in 1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1006 *) ac_optarg=yes ;; 1007 esac 1008 1009 # Accept the important Cygnus configure options, so we can diagnose typos. 1010 1011 case $ac_dashdash$ac_option in 1012 --) 1013 ac_dashdash=yes ;; 1014 1015 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1016 ac_prev=bindir ;; 1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1018 bindir=$ac_optarg ;; 1019 1020 -build | --build | --buil | --bui | --bu) 1021 ac_prev=build_alias ;; 1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1023 build_alias=$ac_optarg ;; 1024 1025 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1027 ac_prev=cache_file ;; 1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1030 cache_file=$ac_optarg ;; 1031 1032 --config-cache | -C) 1033 cache_file=config.cache ;; 1034 1035 -datadir | --datadir | --datadi | --datad) 1036 ac_prev=datadir ;; 1037 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1038 datadir=$ac_optarg ;; 1039 1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1041 | --dataroo | --dataro | --datar) 1042 ac_prev=datarootdir ;; 1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1045 datarootdir=$ac_optarg ;; 1046 1047 -disable-* | --disable-*) 1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1052 { (exit 1); exit 1; }; } 1053 ac_useropt_orig=$ac_useropt 1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1055 case $ac_user_opts in 1056 *" 1057"enable_$ac_useropt" 1058"*) ;; 1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1060 ac_unrecognized_sep=', ';; 1061 esac 1062 eval enable_$ac_useropt=no ;; 1063 1064 -docdir | --docdir | --docdi | --doc | --do) 1065 ac_prev=docdir ;; 1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1067 docdir=$ac_optarg ;; 1068 1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1070 ac_prev=dvidir ;; 1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1072 dvidir=$ac_optarg ;; 1073 1074 -enable-* | --enable-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1079 { (exit 1); exit 1; }; } 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"enable_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval enable_$ac_useropt=\$ac_optarg ;; 1090 1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1093 | --exec | --exe | --ex) 1094 ac_prev=exec_prefix ;; 1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1097 | --exec=* | --exe=* | --ex=*) 1098 exec_prefix=$ac_optarg ;; 1099 1100 -gas | --gas | --ga | --g) 1101 # Obsolete; use --with-gas. 1102 with_gas=yes ;; 1103 1104 -help | --help | --hel | --he | -h) 1105 ac_init_help=long ;; 1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1107 ac_init_help=recursive ;; 1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1109 ac_init_help=short ;; 1110 1111 -host | --host | --hos | --ho) 1112 ac_prev=host_alias ;; 1113 -host=* | --host=* | --hos=* | --ho=*) 1114 host_alias=$ac_optarg ;; 1115 1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1117 ac_prev=htmldir ;; 1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1119 | --ht=*) 1120 htmldir=$ac_optarg ;; 1121 1122 -includedir | --includedir | --includedi | --included | --include \ 1123 | --includ | --inclu | --incl | --inc) 1124 ac_prev=includedir ;; 1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1126 | --includ=* | --inclu=* | --incl=* | --inc=*) 1127 includedir=$ac_optarg ;; 1128 1129 -infodir | --infodir | --infodi | --infod | --info | --inf) 1130 ac_prev=infodir ;; 1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1132 infodir=$ac_optarg ;; 1133 1134 -libdir | --libdir | --libdi | --libd) 1135 ac_prev=libdir ;; 1136 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1137 libdir=$ac_optarg ;; 1138 1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1140 | --libexe | --libex | --libe) 1141 ac_prev=libexecdir ;; 1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1143 | --libexe=* | --libex=* | --libe=*) 1144 libexecdir=$ac_optarg ;; 1145 1146 -localedir | --localedir | --localedi | --localed | --locale) 1147 ac_prev=localedir ;; 1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1149 localedir=$ac_optarg ;; 1150 1151 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1152 | --localstate | --localstat | --localsta | --localst | --locals) 1153 ac_prev=localstatedir ;; 1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1156 localstatedir=$ac_optarg ;; 1157 1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1159 ac_prev=mandir ;; 1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1161 mandir=$ac_optarg ;; 1162 1163 -nfp | --nfp | --nf) 1164 # Obsolete; use --without-fp. 1165 with_fp=no ;; 1166 1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1168 | --no-cr | --no-c | -n) 1169 no_create=yes ;; 1170 1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1173 no_recursion=yes ;; 1174 1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1177 | --oldin | --oldi | --old | --ol | --o) 1178 ac_prev=oldincludedir ;; 1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1182 oldincludedir=$ac_optarg ;; 1183 1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1185 ac_prev=prefix ;; 1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1187 prefix=$ac_optarg ;; 1188 1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1190 | --program-pre | --program-pr | --program-p) 1191 ac_prev=program_prefix ;; 1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1194 program_prefix=$ac_optarg ;; 1195 1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1197 | --program-suf | --program-su | --program-s) 1198 ac_prev=program_suffix ;; 1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1201 program_suffix=$ac_optarg ;; 1202 1203 -program-transform-name | --program-transform-name \ 1204 | --program-transform-nam | --program-transform-na \ 1205 | --program-transform-n | --program-transform- \ 1206 | --program-transform | --program-transfor \ 1207 | --program-transfo | --program-transf \ 1208 | --program-trans | --program-tran \ 1209 | --progr-tra | --program-tr | --program-t) 1210 ac_prev=program_transform_name ;; 1211 -program-transform-name=* | --program-transform-name=* \ 1212 | --program-transform-nam=* | --program-transform-na=* \ 1213 | --program-transform-n=* | --program-transform-=* \ 1214 | --program-transform=* | --program-transfor=* \ 1215 | --program-transfo=* | --program-transf=* \ 1216 | --program-trans=* | --program-tran=* \ 1217 | --progr-tra=* | --program-tr=* | --program-t=*) 1218 program_transform_name=$ac_optarg ;; 1219 1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1221 ac_prev=pdfdir ;; 1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1223 pdfdir=$ac_optarg ;; 1224 1225 -psdir | --psdir | --psdi | --psd | --ps) 1226 ac_prev=psdir ;; 1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1228 psdir=$ac_optarg ;; 1229 1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1231 | -silent | --silent | --silen | --sile | --sil) 1232 silent=yes ;; 1233 1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1235 ac_prev=sbindir ;; 1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1237 | --sbi=* | --sb=*) 1238 sbindir=$ac_optarg ;; 1239 1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1242 | --sharedst | --shareds | --shared | --share | --shar \ 1243 | --sha | --sh) 1244 ac_prev=sharedstatedir ;; 1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1248 | --sha=* | --sh=*) 1249 sharedstatedir=$ac_optarg ;; 1250 1251 -site | --site | --sit) 1252 ac_prev=site ;; 1253 -site=* | --site=* | --sit=*) 1254 site=$ac_optarg ;; 1255 1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1257 ac_prev=srcdir ;; 1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1259 srcdir=$ac_optarg ;; 1260 1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1262 | --syscon | --sysco | --sysc | --sys | --sy) 1263 ac_prev=sysconfdir ;; 1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1266 sysconfdir=$ac_optarg ;; 1267 1268 -target | --target | --targe | --targ | --tar | --ta | --t) 1269 ac_prev=target_alias ;; 1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1271 target_alias=$ac_optarg ;; 1272 1273 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1274 verbose=yes ;; 1275 1276 -version | --version | --versio | --versi | --vers | -V) 1277 ac_init_version=: ;; 1278 1279 -with-* | --with-*) 1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1281 # Reject names that are not valid shell variable names. 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1284 { (exit 1); exit 1; }; } 1285 ac_useropt_orig=$ac_useropt 1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1287 case $ac_user_opts in 1288 *" 1289"with_$ac_useropt" 1290"*) ;; 1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1292 ac_unrecognized_sep=', ';; 1293 esac 1294 eval with_$ac_useropt=\$ac_optarg ;; 1295 1296 -without-* | --without-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1301 { (exit 1); exit 1; }; } 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=no ;; 1312 1313 --x) 1314 # Obsolete; use --with-x. 1315 with_x=yes ;; 1316 1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1318 | --x-incl | --x-inc | --x-in | --x-i) 1319 ac_prev=x_includes ;; 1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1322 x_includes=$ac_optarg ;; 1323 1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1326 ac_prev=x_libraries ;; 1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1329 x_libraries=$ac_optarg ;; 1330 1331 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1332Try \`$0 --help' for more information." >&2 1333 { (exit 1); exit 1; }; } 1334 ;; 1335 1336 *=*) 1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1338 # Reject names that are not valid shell variable names. 1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1340 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1341 { (exit 1); exit 1; }; } 1342 eval $ac_envvar=\$ac_optarg 1343 export $ac_envvar ;; 1344 1345 *) 1346 # FIXME: should be removed in autoconf 3.0. 1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1351 ;; 1352 1353 esac 1354done 1355 1356if test -n "$ac_prev"; then 1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1358 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1359 { (exit 1); exit 1; }; } 1360fi 1361 1362if test -n "$ac_unrecognized_opts"; then 1363 case $enable_option_checking in 1364 no) ;; 1365 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1366 { (exit 1); exit 1; }; } ;; 1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1368 esac 1369fi 1370 1371# Check all directory arguments for consistency. 1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1373 datadir sysconfdir sharedstatedir localstatedir includedir \ 1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1375 libdir localedir mandir 1376do 1377 eval ac_val=\$$ac_var 1378 # Remove trailing slashes. 1379 case $ac_val in 1380 */ ) 1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1382 eval $ac_var=\$ac_val;; 1383 esac 1384 # Be sure to have absolute directory names. 1385 case $ac_val in 1386 [\\/$]* | ?:[\\/]* ) continue;; 1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1388 esac 1389 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1390 { (exit 1); exit 1; }; } 1391done 1392 1393# There might be people who depend on the old broken behavior: `$host' 1394# used to hold the argument of --host etc. 1395# FIXME: To remove some day. 1396build=$build_alias 1397host=$host_alias 1398target=$target_alias 1399 1400# FIXME: To remove some day. 1401if test "x$host_alias" != x; then 1402 if test "x$build_alias" = x; then 1403 cross_compiling=maybe 1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1405 If a cross compiler is detected then cross compile mode will be used." >&2 1406 elif test "x$build_alias" != "x$host_alias"; then 1407 cross_compiling=yes 1408 fi 1409fi 1410 1411ac_tool_prefix= 1412test -n "$host_alias" && ac_tool_prefix=$host_alias- 1413 1414test "$silent" = yes && exec 6>/dev/null 1415 1416 1417ac_pwd=`pwd` && test -n "$ac_pwd" && 1418ac_ls_di=`ls -di .` && 1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1420 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1421 { (exit 1); exit 1; }; } 1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1423 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1424 { (exit 1); exit 1; }; } 1425 1426 1427# Find the source files, if location was not specified. 1428if test -z "$srcdir"; then 1429 ac_srcdir_defaulted=yes 1430 # Try the directory containing this script, then the parent directory. 1431 ac_confdir=`$as_dirname -- "$as_myself" || 1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1433 X"$as_myself" : 'X\(//\)[^/]' \| \ 1434 X"$as_myself" : 'X\(//\)$' \| \ 1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1436$as_echo X"$as_myself" | 1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\/\)[^/].*/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)$/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\).*/{ 1450 s//\1/ 1451 q 1452 } 1453 s/.*/./; q'` 1454 srcdir=$ac_confdir 1455 if test ! -r "$srcdir/$ac_unique_file"; then 1456 srcdir=.. 1457 fi 1458else 1459 ac_srcdir_defaulted=no 1460fi 1461if test ! -r "$srcdir/$ac_unique_file"; then 1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1463 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1464 { (exit 1); exit 1; }; } 1465fi 1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1467ac_abs_confdir=`( 1468 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1469 { (exit 1); exit 1; }; } 1470 pwd)` 1471# When building in place, set srcdir=. 1472if test "$ac_abs_confdir" = "$ac_pwd"; then 1473 srcdir=. 1474fi 1475# Remove unnecessary trailing slashes from srcdir. 1476# Double slashes in file names in object file debugging info 1477# mess up M-x gdb in Emacs. 1478case $srcdir in 1479*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1480esac 1481for ac_var in $ac_precious_vars; do 1482 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1483 eval ac_env_${ac_var}_value=\$${ac_var} 1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1485 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1486done 1487 1488# 1489# Report the --help message. 1490# 1491if test "$ac_init_help" = "long"; then 1492 # Omit some internal or obsolete options to make the list less imposing. 1493 # This message is too long to be a string in the A/UX 3.1 sh. 1494 cat <<_ACEOF 1495\`configure' configures pkcs11-dump 0.3.4 to adapt to many kinds of systems. 1496 1497Usage: $0 [OPTION]... [VAR=VALUE]... 1498 1499To assign environment variables (e.g., CC, CFLAGS...), specify them as 1500VAR=VALUE. See below for descriptions of some of the useful variables. 1501 1502Defaults for the options are specified in brackets. 1503 1504Configuration: 1505 -h, --help display this help and exit 1506 --help=short display options specific to this package 1507 --help=recursive display the short help of all the included packages 1508 -V, --version display version information and exit 1509 -q, --quiet, --silent do not print \`checking...' messages 1510 --cache-file=FILE cache test results in FILE [disabled] 1511 -C, --config-cache alias for \`--cache-file=config.cache' 1512 -n, --no-create do not create output files 1513 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1514 1515Installation directories: 1516 --prefix=PREFIX install architecture-independent files in PREFIX 1517 [$ac_default_prefix] 1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1519 [PREFIX] 1520 1521By default, \`make install' will install all the files in 1522\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1523an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1524for instance \`--prefix=\$HOME'. 1525 1526For better control, use the options below. 1527 1528Fine tuning of the installation directories: 1529 --bindir=DIR user executables [EPREFIX/bin] 1530 --sbindir=DIR system admin executables [EPREFIX/sbin] 1531 --libexecdir=DIR program executables [EPREFIX/libexec] 1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1535 --libdir=DIR object code libraries [EPREFIX/lib] 1536 --includedir=DIR C header files [PREFIX/include] 1537 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1540 --infodir=DIR info documentation [DATAROOTDIR/info] 1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1542 --mandir=DIR man documentation [DATAROOTDIR/man] 1543 --docdir=DIR documentation root [DATAROOTDIR/doc/pkcs11-dump] 1544 --htmldir=DIR html documentation [DOCDIR] 1545 --dvidir=DIR dvi documentation [DOCDIR] 1546 --pdfdir=DIR pdf documentation [DOCDIR] 1547 --psdir=DIR ps documentation [DOCDIR] 1548_ACEOF 1549 1550 cat <<\_ACEOF 1551 1552Program names: 1553 --program-prefix=PREFIX prepend PREFIX to installed program names 1554 --program-suffix=SUFFIX append SUFFIX to installed program names 1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1556 1557System types: 1558 --build=BUILD configure for building on BUILD [guessed] 1559 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1560_ACEOF 1561fi 1562 1563if test -n "$ac_init_help"; then 1564 case $ac_init_help in 1565 short | recursive ) echo "Configuration of pkcs11-dump 0.3.4:";; 1566 esac 1567 cat <<\_ACEOF 1568 1569Optional Features: 1570 --disable-option-checking ignore unrecognized --enable/--with options 1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1573 --enable-pedantic enable pedantic compile mode [disabled] 1574 --disable-dependency-tracking speeds up one-time build 1575 --enable-dependency-tracking do not reject slow dependency extractors 1576 --enable-shared[=PKGS] build shared libraries [default=yes] 1577 --enable-static[=PKGS] build static libraries [default=yes] 1578 --enable-fast-install[=PKGS] 1579 optimize for fast installation [default=yes] 1580 --disable-libtool-lock avoid locking (might break parallel builds) 1581 1582Optional Packages: 1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1585 --with-cygwin-native compile native win32 1586 --with-pic try to use only PIC/non-PIC objects [default=use 1587 both] 1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1589 1590Some influential environment variables: 1591 CC C compiler command 1592 CFLAGS C compiler flags 1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1594 nonstandard directory <lib dir> 1595 LIBS libraries to pass to the linker, e.g. -l<library> 1596 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1597 you have headers in a nonstandard directory <include dir> 1598 CXX C++ compiler command 1599 CXXFLAGS C++ compiler flags 1600 PKG_CONFIG path to pkg-config utility 1601 CPP C preprocessor 1602 CXXCPP C++ preprocessor 1603 MAN2HTML man2html utility 1604 OPENSSL_CFLAGS 1605 C compiler flags for OPENSSL, overriding pkg-config 1606 OPENSSL_LIBS 1607 linker flags for OPENSSL, overriding pkg-config 1608 1609Use these variables to override the choices made by `configure' or to help 1610it to find libraries and programs with nonstandard names/locations. 1611 1612_ACEOF 1613ac_status=$? 1614fi 1615 1616if test "$ac_init_help" = "recursive"; then 1617 # If there are subdirs, report their specific --help. 1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1619 test -d "$ac_dir" || 1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1621 continue 1622 ac_builddir=. 1623 1624case "$ac_dir" in 1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1626*) 1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1628 # A ".." for each directory in $ac_dir_suffix. 1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1630 case $ac_top_builddir_sub in 1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1633 esac ;; 1634esac 1635ac_abs_top_builddir=$ac_pwd 1636ac_abs_builddir=$ac_pwd$ac_dir_suffix 1637# for backward compatibility: 1638ac_top_builddir=$ac_top_build_prefix 1639 1640case $srcdir in 1641 .) # We are building in place. 1642 ac_srcdir=. 1643 ac_top_srcdir=$ac_top_builddir_sub 1644 ac_abs_top_srcdir=$ac_pwd ;; 1645 [\\/]* | ?:[\\/]* ) # Absolute name. 1646 ac_srcdir=$srcdir$ac_dir_suffix; 1647 ac_top_srcdir=$srcdir 1648 ac_abs_top_srcdir=$srcdir ;; 1649 *) # Relative name. 1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1651 ac_top_srcdir=$ac_top_build_prefix$srcdir 1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1653esac 1654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1655 1656 cd "$ac_dir" || { ac_status=$?; continue; } 1657 # Check for guested configure. 1658 if test -f "$ac_srcdir/configure.gnu"; then 1659 echo && 1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1661 elif test -f "$ac_srcdir/configure"; then 1662 echo && 1663 $SHELL "$ac_srcdir/configure" --help=recursive 1664 else 1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1666 fi || ac_status=$? 1667 cd "$ac_pwd" || { ac_status=$?; break; } 1668 done 1669fi 1670 1671test -n "$ac_init_help" && exit $ac_status 1672if $ac_init_version; then 1673 cat <<\_ACEOF 1674pkcs11-dump configure 0.3.4 1675generated by GNU Autoconf 2.63 1676 1677Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16782002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1679This configure script is free software; the Free Software Foundation 1680gives unlimited permission to copy, distribute and modify it. 1681_ACEOF 1682 exit 1683fi 1684cat >config.log <<_ACEOF 1685This file contains any messages produced by compilers while 1686running configure, to aid debugging if configure makes a mistake. 1687 1688It was created by pkcs11-dump $as_me 0.3.4, which was 1689generated by GNU Autoconf 2.63. Invocation command line was 1690 1691 $ $0 $@ 1692 1693_ACEOF 1694exec 5>>config.log 1695{ 1696cat <<_ASUNAME 1697## --------- ## 1698## Platform. ## 1699## --------- ## 1700 1701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1702uname -m = `(uname -m) 2>/dev/null || echo unknown` 1703uname -r = `(uname -r) 2>/dev/null || echo unknown` 1704uname -s = `(uname -s) 2>/dev/null || echo unknown` 1705uname -v = `(uname -v) 2>/dev/null || echo unknown` 1706 1707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1708/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1709 1710/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1711/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1713/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1714/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1715/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1716/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1717 1718_ASUNAME 1719 1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1721for as_dir in $PATH 1722do 1723 IFS=$as_save_IFS 1724 test -z "$as_dir" && as_dir=. 1725 $as_echo "PATH: $as_dir" 1726done 1727IFS=$as_save_IFS 1728 1729} >&5 1730 1731cat >&5 <<_ACEOF 1732 1733 1734## ----------- ## 1735## Core tests. ## 1736## ----------- ## 1737 1738_ACEOF 1739 1740 1741# Keep a trace of the command line. 1742# Strip out --no-create and --no-recursion so they do not pile up. 1743# Strip out --silent because we don't want to record it for future runs. 1744# Also quote any args containing shell meta-characters. 1745# Make two passes to allow for proper duplicate-argument suppression. 1746ac_configure_args= 1747ac_configure_args0= 1748ac_configure_args1= 1749ac_must_keep_next=false 1750for ac_pass in 1 2 1751do 1752 for ac_arg 1753 do 1754 case $ac_arg in 1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1757 | -silent | --silent | --silen | --sile | --sil) 1758 continue ;; 1759 *\'*) 1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1761 esac 1762 case $ac_pass in 1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1764 2) 1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1766 if test $ac_must_keep_next = true; then 1767 ac_must_keep_next=false # Got value, back to normal. 1768 else 1769 case $ac_arg in 1770 *=* | --config-cache | -C | -disable-* | --disable-* \ 1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1773 | -with-* | --with-* | -without-* | --without-* | --x) 1774 case "$ac_configure_args0 " in 1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1776 esac 1777 ;; 1778 -* ) ac_must_keep_next=true ;; 1779 esac 1780 fi 1781 ac_configure_args="$ac_configure_args '$ac_arg'" 1782 ;; 1783 esac 1784 done 1785done 1786$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1787$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1788 1789# When interrupted or exit'd, cleanup temporary files, and complete 1790# config.log. We remove comments because anyway the quotes in there 1791# would cause problems or look ugly. 1792# WARNING: Use '\'' to represent an apostrophe within the trap. 1793# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1794trap 'exit_status=$? 1795 # Save into config.log some information that might help in debugging. 1796 { 1797 echo 1798 1799 cat <<\_ASBOX 1800## ---------------- ## 1801## Cache variables. ## 1802## ---------------- ## 1803_ASBOX 1804 echo 1805 # The following way of writing the cache mishandles newlines in values, 1806( 1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1808 eval ac_val=\$$ac_var 1809 case $ac_val in #( 1810 *${as_nl}*) 1811 case $ac_var in #( 1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1814 esac 1815 case $ac_var in #( 1816 _ | IFS | as_nl) ;; #( 1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1818 *) $as_unset $ac_var ;; 1819 esac ;; 1820 esac 1821 done 1822 (set) 2>&1 | 1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1824 *${as_nl}ac_space=\ *) 1825 sed -n \ 1826 "s/'\''/'\''\\\\'\'''\''/g; 1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1828 ;; #( 1829 *) 1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1831 ;; 1832 esac | 1833 sort 1834) 1835 echo 1836 1837 cat <<\_ASBOX 1838## ----------------- ## 1839## Output variables. ## 1840## ----------------- ## 1841_ASBOX 1842 echo 1843 for ac_var in $ac_subst_vars 1844 do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in 1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1848 esac 1849 $as_echo "$ac_var='\''$ac_val'\''" 1850 done | sort 1851 echo 1852 1853 if test -n "$ac_subst_files"; then 1854 cat <<\_ASBOX 1855## ------------------- ## 1856## File substitutions. ## 1857## ------------------- ## 1858_ASBOX 1859 echo 1860 for ac_var in $ac_subst_files 1861 do 1862 eval ac_val=\$$ac_var 1863 case $ac_val in 1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1865 esac 1866 $as_echo "$ac_var='\''$ac_val'\''" 1867 done | sort 1868 echo 1869 fi 1870 1871 if test -s confdefs.h; then 1872 cat <<\_ASBOX 1873## ----------- ## 1874## confdefs.h. ## 1875## ----------- ## 1876_ASBOX 1877 echo 1878 cat confdefs.h 1879 echo 1880 fi 1881 test "$ac_signal" != 0 && 1882 $as_echo "$as_me: caught signal $ac_signal" 1883 $as_echo "$as_me: exit $exit_status" 1884 } >&5 1885 rm -f core *.core core.conftest.* && 1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1887 exit $exit_status 1888' 0 1889for ac_signal in 1 2 13 15; do 1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1891done 1892ac_signal=0 1893 1894# confdefs.h avoids OS command line length limits that DEFS can exceed. 1895rm -f -r conftest* confdefs.h 1896 1897# Predefined preprocessor variables. 1898 1899cat >>confdefs.h <<_ACEOF 1900#define PACKAGE_NAME "$PACKAGE_NAME" 1901_ACEOF 1902 1903 1904cat >>confdefs.h <<_ACEOF 1905#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1906_ACEOF 1907 1908 1909cat >>confdefs.h <<_ACEOF 1910#define PACKAGE_VERSION "$PACKAGE_VERSION" 1911_ACEOF 1912 1913 1914cat >>confdefs.h <<_ACEOF 1915#define PACKAGE_STRING "$PACKAGE_STRING" 1916_ACEOF 1917 1918 1919cat >>confdefs.h <<_ACEOF 1920#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1921_ACEOF 1922 1923 1924# Let the site file select an alternate cache file if it wants to. 1925# Prefer an explicitly selected file to automatically selected ones. 1926ac_site_file1=NONE 1927ac_site_file2=NONE 1928if test -n "$CONFIG_SITE"; then 1929 ac_site_file1=$CONFIG_SITE 1930elif test "x$prefix" != xNONE; then 1931 ac_site_file1=$prefix/share/config.site 1932 ac_site_file2=$prefix/etc/config.site 1933else 1934 ac_site_file1=$ac_default_prefix/share/config.site 1935 ac_site_file2=$ac_default_prefix/etc/config.site 1936fi 1937for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1938do 1939 test "x$ac_site_file" = xNONE && continue 1940 if test -r "$ac_site_file"; then 1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1942$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1943 sed 's/^/| /' "$ac_site_file" >&5 1944 . "$ac_site_file" 1945 fi 1946done 1947 1948if test -r "$cache_file"; then 1949 # Some versions of bash will fail to source /dev/null (special 1950 # files actually), so we avoid doing that. 1951 if test -f "$cache_file"; then 1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1953$as_echo "$as_me: loading cache $cache_file" >&6;} 1954 case $cache_file in 1955 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1956 *) . "./$cache_file";; 1957 esac 1958 fi 1959else 1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1961$as_echo "$as_me: creating cache $cache_file" >&6;} 1962 >$cache_file 1963fi 1964 1965ac_header_list="$ac_header_list sys/time.h" 1966ac_header_list="$ac_header_list unistd.h" 1967ac_func_list="$ac_func_list alarm" 1968# Check that the precious variables saved in the cache have kept the same 1969# value. 1970ac_cache_corrupted=false 1971for ac_var in $ac_precious_vars; do 1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1973 eval ac_new_set=\$ac_env_${ac_var}_set 1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1975 eval ac_new_val=\$ac_env_${ac_var}_value 1976 case $ac_old_set,$ac_new_set in 1977 set,) 1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1979$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1980 ac_cache_corrupted=: ;; 1981 ,set) 1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1983$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1984 ac_cache_corrupted=: ;; 1985 ,);; 1986 *) 1987 if test "x$ac_old_val" != "x$ac_new_val"; then 1988 # differences in whitespace do not lead to failure. 1989 ac_old_val_w=`echo x $ac_old_val` 1990 ac_new_val_w=`echo x $ac_new_val` 1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1993$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1994 ac_cache_corrupted=: 1995 else 1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1997$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1998 eval $ac_var=\$ac_old_val 1999 fi 2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2001$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2003$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2004 fi;; 2005 esac 2006 # Pass precious variables to config.status. 2007 if test "$ac_new_set" = set; then 2008 case $ac_new_val in 2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2010 *) ac_arg=$ac_var=$ac_new_val ;; 2011 esac 2012 case " $ac_configure_args " in 2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2015 esac 2016 fi 2017done 2018if $ac_cache_corrupted; then 2019 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2021 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2022$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2023 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2024$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2025 { (exit 1); exit 1; }; } 2026fi 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052ac_ext=c 2053ac_cpp='$CPP $CPPFLAGS' 2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2056ac_compiler_gnu=$ac_cv_c_compiler_gnu 2057 2058 2059am__api_version='1.10' 2060 2061ac_aux_dir= 2062for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2063 if test -f "$ac_dir/install-sh"; then 2064 ac_aux_dir=$ac_dir 2065 ac_install_sh="$ac_aux_dir/install-sh -c" 2066 break 2067 elif test -f "$ac_dir/install.sh"; then 2068 ac_aux_dir=$ac_dir 2069 ac_install_sh="$ac_aux_dir/install.sh -c" 2070 break 2071 elif test -f "$ac_dir/shtool"; then 2072 ac_aux_dir=$ac_dir 2073 ac_install_sh="$ac_aux_dir/shtool install -c" 2074 break 2075 fi 2076done 2077if test -z "$ac_aux_dir"; then 2078 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2079$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2080 { (exit 1); exit 1; }; } 2081fi 2082 2083# These three variables are undocumented and unsupported, 2084# and are intended to be withdrawn in a future Autoconf release. 2085# They can cause serious problems if a builder's source tree is in a directory 2086# whose full name contains unusual characters. 2087ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2088ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2089ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2090 2091 2092# Find a good install program. We prefer a C program (faster), 2093# so one script is as good as another. But avoid the broken or 2094# incompatible versions: 2095# SysV /etc/install, /usr/sbin/install 2096# SunOS /usr/etc/install 2097# IRIX /sbin/install 2098# AIX /bin/install 2099# AmigaOS /C/install, which installs bootblocks on floppy discs 2100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2101# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2103# OS/2's system install, which has a completely different semantic 2104# ./install, which can be erroneously created by make from ./install.sh. 2105# Reject install programs that cannot install multiple files. 2106{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2107$as_echo_n "checking for a BSD-compatible install... " >&6; } 2108if test -z "$INSTALL"; then 2109if test "${ac_cv_path_install+set}" = set; then 2110 $as_echo_n "(cached) " >&6 2111else 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 # Account for people who put trailing slashes in PATH elements. 2118case $as_dir/ in 2119 ./ | .// | /cC/* | \ 2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2122 /usr/ucb/* ) ;; 2123 *) 2124 # OSF1 and SCO ODT 3.0 have their own names for install. 2125 # Don't use installbsd from OSF since it installs stuff as root 2126 # by default. 2127 for ac_prog in ginstall scoinst install; do 2128 for ac_exec_ext in '' $ac_executable_extensions; do 2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2130 if test $ac_prog = install && 2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2132 # AIX install. It has an incompatible calling convention. 2133 : 2134 elif test $ac_prog = install && 2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2136 # program-specific install script used by HP pwplus--don't use. 2137 : 2138 else 2139 rm -rf conftest.one conftest.two conftest.dir 2140 echo one > conftest.one 2141 echo two > conftest.two 2142 mkdir conftest.dir 2143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2144 test -s conftest.one && test -s conftest.two && 2145 test -s conftest.dir/conftest.one && 2146 test -s conftest.dir/conftest.two 2147 then 2148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2149 break 3 2150 fi 2151 fi 2152 fi 2153 done 2154 done 2155 ;; 2156esac 2157 2158done 2159IFS=$as_save_IFS 2160 2161rm -rf conftest.one conftest.two conftest.dir 2162 2163fi 2164 if test "${ac_cv_path_install+set}" = set; then 2165 INSTALL=$ac_cv_path_install 2166 else 2167 # As a last resort, use the slow shell script. Don't cache a 2168 # value for INSTALL within a source directory, because that will 2169 # break other packages using the cache if that directory is 2170 # removed, or if the value is a relative name. 2171 INSTALL=$ac_install_sh 2172 fi 2173fi 2174{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2175$as_echo "$INSTALL" >&6; } 2176 2177# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2178# It thinks the first close brace ends the variable substitution. 2179test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2180 2181test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2182 2183test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2184 2185{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2186$as_echo_n "checking whether build environment is sane... " >&6; } 2187# Just in case 2188sleep 1 2189echo timestamp > conftest.file 2190# Do `set' in a subshell so we don't clobber the current shell's 2191# arguments. Must try -L first in case configure is actually a 2192# symlink; some systems play weird games with the mod time of symlinks 2193# (eg FreeBSD returns the mod time of the symlink's containing 2194# directory). 2195if ( 2196 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2197 if test "$*" = "X"; then 2198 # -L didn't work. 2199 set X `ls -t $srcdir/configure conftest.file` 2200 fi 2201 rm -f conftest.file 2202 if test "$*" != "X $srcdir/configure conftest.file" \ 2203 && test "$*" != "X conftest.file $srcdir/configure"; then 2204 2205 # If neither matched, then we have a broken ls. This can happen 2206 # if, for instance, CONFIG_SHELL is bash and it inherits a 2207 # broken ls alias from the environment. This has actually 2208 # happened. Such a system could not be considered "sane". 2209 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2210alias in your environment" >&5 2211$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2212alias in your environment" >&2;} 2213 { (exit 1); exit 1; }; } 2214 fi 2215 2216 test "$2" = conftest.file 2217 ) 2218then 2219 # Ok. 2220 : 2221else 2222 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2223Check your system clock" >&5 2224$as_echo "$as_me: error: newly created file is older than distributed files! 2225Check your system clock" >&2;} 2226 { (exit 1); exit 1; }; } 2227fi 2228{ $as_echo "$as_me:$LINENO: result: yes" >&5 2229$as_echo "yes" >&6; } 2230test "$program_prefix" != NONE && 2231 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2232# Use a double $ so make ignores it. 2233test "$program_suffix" != NONE && 2234 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2235# Double any \ or $. 2236# By default was `s,x,x', remove it if useless. 2237ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2238program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2239 2240# expand $ac_aux_dir to an absolute path 2241am_aux_dir=`cd $ac_aux_dir && pwd` 2242 2243test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2244# Use eval to expand $SHELL 2245if eval "$MISSING --run true"; then 2246 am_missing_run="$MISSING --run " 2247else 2248 am_missing_run= 2249 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2250$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2251fi 2252 2253{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2254$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2255if test -z "$MKDIR_P"; then 2256 if test "${ac_cv_path_mkdir+set}" = set; then 2257 $as_echo_n "(cached) " >&6 2258else 2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2261do 2262 IFS=$as_save_IFS 2263 test -z "$as_dir" && as_dir=. 2264 for ac_prog in mkdir gmkdir; do 2265 for ac_exec_ext in '' $ac_executable_extensions; do 2266 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2267 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2268 'mkdir (GNU coreutils) '* | \ 2269 'mkdir (coreutils) '* | \ 2270 'mkdir (fileutils) '4.1*) 2271 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2272 break 3;; 2273 esac 2274 done 2275 done 2276done 2277IFS=$as_save_IFS 2278 2279fi 2280 2281 if test "${ac_cv_path_mkdir+set}" = set; then 2282 MKDIR_P="$ac_cv_path_mkdir -p" 2283 else 2284 # As a last resort, use the slow shell script. Don't cache a 2285 # value for MKDIR_P within a source directory, because that will 2286 # break other packages using the cache if that directory is 2287 # removed, or if the value is a relative name. 2288 test -d ./--version && rmdir ./--version 2289 MKDIR_P="$ac_install_sh -d" 2290 fi 2291fi 2292{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2293$as_echo "$MKDIR_P" >&6; } 2294 2295mkdir_p="$MKDIR_P" 2296case $mkdir_p in 2297 [\\/$]* | ?:[\\/]*) ;; 2298 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2299esac 2300 2301for ac_prog in gawk mawk nawk awk 2302do 2303 # Extract the first word of "$ac_prog", so it can be a program name with args. 2304set dummy $ac_prog; ac_word=$2 2305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2306$as_echo_n "checking for $ac_word... " >&6; } 2307if test "${ac_cv_prog_AWK+set}" = set; then 2308 $as_echo_n "(cached) " >&6 2309else 2310 if test -n "$AWK"; then 2311 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2312else 2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 for ac_exec_ext in '' $ac_executable_extensions; do 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2320 ac_cv_prog_AWK="$ac_prog" 2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2322 break 2 2323 fi 2324done 2325done 2326IFS=$as_save_IFS 2327 2328fi 2329fi 2330AWK=$ac_cv_prog_AWK 2331if test -n "$AWK"; then 2332 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2333$as_echo "$AWK" >&6; } 2334else 2335 { $as_echo "$as_me:$LINENO: result: no" >&5 2336$as_echo "no" >&6; } 2337fi 2338 2339 2340 test -n "$AWK" && break 2341done 2342 2343{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2345set x ${MAKE-make} 2346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2347if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2348 $as_echo_n "(cached) " >&6 2349else 2350 cat >conftest.make <<\_ACEOF 2351SHELL = /bin/sh 2352all: 2353 @echo '@@@%%%=$(MAKE)=@@@%%%' 2354_ACEOF 2355# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2356case `${MAKE-make} -f conftest.make 2>/dev/null` in 2357 *@@@%%%=?*=@@@%%%*) 2358 eval ac_cv_prog_make_${ac_make}_set=yes;; 2359 *) 2360 eval ac_cv_prog_make_${ac_make}_set=no;; 2361esac 2362rm -f conftest.make 2363fi 2364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2365 { $as_echo "$as_me:$LINENO: result: yes" >&5 2366$as_echo "yes" >&6; } 2367 SET_MAKE= 2368else 2369 { $as_echo "$as_me:$LINENO: result: no" >&5 2370$as_echo "no" >&6; } 2371 SET_MAKE="MAKE=${MAKE-make}" 2372fi 2373 2374rm -rf .tst 2>/dev/null 2375mkdir .tst 2>/dev/null 2376if test -d .tst; then 2377 am__leading_dot=. 2378else 2379 am__leading_dot=_ 2380fi 2381rmdir .tst 2>/dev/null 2382 2383if test "`cd $srcdir && pwd`" != "`pwd`"; then 2384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2385 # is not polluted with repeated "-I." 2386 am__isrc=' -I$(srcdir)' 2387 # test to see if srcdir already configured 2388 if test -f $srcdir/config.status; then 2389 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2390$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2391 { (exit 1); exit 1; }; } 2392 fi 2393fi 2394 2395# test whether we have cygpath 2396if test -z "$CYGPATH_W"; then 2397 if (cygpath --version) >/dev/null 2>/dev/null; then 2398 CYGPATH_W='cygpath -w' 2399 else 2400 CYGPATH_W=echo 2401 fi 2402fi 2403 2404 2405# Define the identity of the package. 2406 PACKAGE=pkcs11-dump 2407 VERSION=${PACKAGE_VERSION} 2408 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE "$PACKAGE" 2412_ACEOF 2413 2414 2415cat >>confdefs.h <<_ACEOF 2416#define VERSION "$VERSION" 2417_ACEOF 2418 2419# Some tools Automake needs. 2420 2421ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2422 2423 2424AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2425 2426 2427AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2428 2429 2430AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2431 2432 2433MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2434 2435install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2436 2437# Installed binaries are usually stripped using `strip' when the user 2438# run `make install-strip'. However `strip' might not be the right 2439# tool to use in cross-compilation environments, therefore Automake 2440# will honor the `STRIP' environment variable to overrule this program. 2441if test "$cross_compiling" != no; then 2442 if test -n "$ac_tool_prefix"; then 2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2444set dummy ${ac_tool_prefix}strip; ac_word=$2 2445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2446$as_echo_n "checking for $ac_word... " >&6; } 2447if test "${ac_cv_prog_STRIP+set}" = set; then 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test -n "$STRIP"; then 2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2452else 2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454for as_dir in $PATH 2455do 2456 IFS=$as_save_IFS 2457 test -z "$as_dir" && as_dir=. 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2462 break 2 2463 fi 2464done 2465done 2466IFS=$as_save_IFS 2467 2468fi 2469fi 2470STRIP=$ac_cv_prog_STRIP 2471if test -n "$STRIP"; then 2472 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2473$as_echo "$STRIP" >&6; } 2474else 2475 { $as_echo "$as_me:$LINENO: result: no" >&5 2476$as_echo "no" >&6; } 2477fi 2478 2479 2480fi 2481if test -z "$ac_cv_prog_STRIP"; then 2482 ac_ct_STRIP=$STRIP 2483 # Extract the first word of "strip", so it can be a program name with args. 2484set dummy strip; ac_word=$2 2485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$ac_ct_STRIP"; then 2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2500 ac_cv_prog_ac_ct_STRIP="strip" 2501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2511if test -n "$ac_ct_STRIP"; then 2512 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2513$as_echo "$ac_ct_STRIP" >&6; } 2514else 2515 { $as_echo "$as_me:$LINENO: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 if test "x$ac_ct_STRIP" = x; then 2520 STRIP=":" 2521 else 2522 case $cross_compiling:$ac_tool_warned in 2523yes:) 2524{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2526ac_tool_warned=yes ;; 2527esac 2528 STRIP=$ac_ct_STRIP 2529 fi 2530else 2531 STRIP="$ac_cv_prog_STRIP" 2532fi 2533 2534fi 2535INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2536 2537# We need awk for the "check" target. The system "awk" is bad on 2538# some platforms. 2539# Always define AMTAR for backward compatibility. 2540 2541AMTAR=${AMTAR-"${am_missing_run}tar"} 2542 2543am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2544 2545 2546 2547 2548 2549ac_config_headers="$ac_config_headers config.h" 2550 2551 2552 2553 2554PKCS11_DUMP_VERSION_MAJOR="0" 2555PKCS11_DUMP_VERSION_MINOR="3" 2556PKCS11_DUMP_VERSION_FIX="4" 2557 2558# Make sure we can run config.sub. 2559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2560 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2561$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2562 { (exit 1); exit 1; }; } 2563 2564{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2565$as_echo_n "checking build system type... " >&6; } 2566if test "${ac_cv_build+set}" = set; then 2567 $as_echo_n "(cached) " >&6 2568else 2569 ac_build_alias=$build_alias 2570test "x$ac_build_alias" = x && 2571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2572test "x$ac_build_alias" = x && 2573 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2574$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2575 { (exit 1); exit 1; }; } 2576ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2577 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2578$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2579 { (exit 1); exit 1; }; } 2580 2581fi 2582{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2583$as_echo "$ac_cv_build" >&6; } 2584case $ac_cv_build in 2585*-*-*) ;; 2586*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2587$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2588 { (exit 1); exit 1; }; };; 2589esac 2590build=$ac_cv_build 2591ac_save_IFS=$IFS; IFS='-' 2592set x $ac_cv_build 2593shift 2594build_cpu=$1 2595build_vendor=$2 2596shift; shift 2597# Remember, the first character of IFS is used to create $*, 2598# except with old shells: 2599build_os=$* 2600IFS=$ac_save_IFS 2601case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2602 2603 2604{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2605$as_echo_n "checking host system type... " >&6; } 2606if test "${ac_cv_host+set}" = set; then 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test "x$host_alias" = x; then 2610 ac_cv_host=$ac_cv_build 2611else 2612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2613 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2614$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2615 { (exit 1); exit 1; }; } 2616fi 2617 2618fi 2619{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2620$as_echo "$ac_cv_host" >&6; } 2621case $ac_cv_host in 2622*-*-*) ;; 2623*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2624$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2625 { (exit 1); exit 1; }; };; 2626esac 2627host=$ac_cv_host 2628ac_save_IFS=$IFS; IFS='-' 2629set x $ac_cv_host 2630shift 2631host_cpu=$1 2632host_vendor=$2 2633shift; shift 2634# Remember, the first character of IFS is used to create $*, 2635# except with old shells: 2636host_os=$* 2637IFS=$ac_save_IFS 2638case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2639 2640 2641 2642 2643# Check whether --with-cygwin-native was given. 2644if test "${with_cygwin_native+set}" = set; then 2645 withval=$with_cygwin_native; 2646else 2647 with_cygwin_native="no" 2648 2649fi 2650 2651 2652test -z "${WIN32}" && WIN32="no" 2653test -z "${CYGWIN}" && CYGWIN="no" 2654case "${host}" in 2655 *-mingw32*|*-winnt*) 2656 WIN32="yes" 2657 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" 2658 ;; 2659 *-cygwin*) 2660 { $as_echo "$as_me:$LINENO: checking cygwin mode to use" >&5 2661$as_echo_n "checking cygwin mode to use... " >&6; } 2662 CYGWIN="yes" 2663 if test "${with_cygwin_native}" = "yes"; then 2664 { $as_echo "$as_me:$LINENO: result: Using native win32" >&5 2665$as_echo "Using native win32" >&6; } 2666 CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN" 2667 CFLAGS="${CFLAGS} -mno-cygwin" 2668 WIN32="yes" 2669 else 2670 { $as_echo "$as_me:$LINENO: result: Using cygwin" >&5 2671$as_echo "Using cygwin" >&6; } 2672 CPPFLAGS="${CPPFLAGS} -DCRYPTOKI_FORCE_WIN32" 2673 2674cat >>confdefs.h <<\_ACEOF 2675#define USE_CYGWIN 1 2676_ACEOF 2677 2678 fi 2679 ;; 2680esac 2681 2682# Check whether --enable-pedantic was given. 2683if test "${enable_pedantic+set}" = set; then 2684 enableval=$enable_pedantic; 2685else 2686 enable_pedantic="no" 2687 2688fi 2689 2690 2691# Checks for programs. 2692ac_ext=c 2693ac_cpp='$CPP $CPPFLAGS' 2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2696ac_compiler_gnu=$ac_cv_c_compiler_gnu 2697if test -n "$ac_tool_prefix"; then 2698 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2699set dummy ${ac_tool_prefix}gcc; ac_word=$2 2700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2701$as_echo_n "checking for $ac_word... " >&6; } 2702if test "${ac_cv_prog_CC+set}" = set; then 2703 $as_echo_n "(cached) " >&6 2704else 2705 if test -n "$CC"; then 2706 ac_cv_prog_CC="$CC" # Let the user override the test. 2707else 2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_exec_ext in '' $ac_executable_extensions; do 2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2715 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2717 break 2 2718 fi 2719done 2720done 2721IFS=$as_save_IFS 2722 2723fi 2724fi 2725CC=$ac_cv_prog_CC 2726if test -n "$CC"; then 2727 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2728$as_echo "$CC" >&6; } 2729else 2730 { $as_echo "$as_me:$LINENO: result: no" >&5 2731$as_echo "no" >&6; } 2732fi 2733 2734 2735fi 2736if test -z "$ac_cv_prog_CC"; then 2737 ac_ct_CC=$CC 2738 # Extract the first word of "gcc", so it can be a program name with args. 2739set dummy gcc; ac_word=$2 2740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2741$as_echo_n "checking for $ac_word... " >&6; } 2742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2743 $as_echo_n "(cached) " >&6 2744else 2745 if test -n "$ac_ct_CC"; then 2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2747else 2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749for as_dir in $PATH 2750do 2751 IFS=$as_save_IFS 2752 test -z "$as_dir" && as_dir=. 2753 for ac_exec_ext in '' $ac_executable_extensions; do 2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2755 ac_cv_prog_ac_ct_CC="gcc" 2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2757 break 2 2758 fi 2759done 2760done 2761IFS=$as_save_IFS 2762 2763fi 2764fi 2765ac_ct_CC=$ac_cv_prog_ac_ct_CC 2766if test -n "$ac_ct_CC"; then 2767 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2768$as_echo "$ac_ct_CC" >&6; } 2769else 2770 { $as_echo "$as_me:$LINENO: result: no" >&5 2771$as_echo "no" >&6; } 2772fi 2773 2774 if test "x$ac_ct_CC" = x; then 2775 CC="" 2776 else 2777 case $cross_compiling:$ac_tool_warned in 2778yes:) 2779{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2781ac_tool_warned=yes ;; 2782esac 2783 CC=$ac_ct_CC 2784 fi 2785else 2786 CC="$ac_cv_prog_CC" 2787fi 2788 2789if test -z "$CC"; then 2790 if test -n "$ac_tool_prefix"; then 2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2792set dummy ${ac_tool_prefix}cc; ac_word=$2 2793{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2794$as_echo_n "checking for $ac_word... " >&6; } 2795if test "${ac_cv_prog_CC+set}" = set; then 2796 $as_echo_n "(cached) " >&6 2797else 2798 if test -n "$CC"; then 2799 ac_cv_prog_CC="$CC" # Let the user override the test. 2800else 2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 for ac_exec_ext in '' $ac_executable_extensions; do 2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2808 ac_cv_prog_CC="${ac_tool_prefix}cc" 2809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2810 break 2 2811 fi 2812done 2813done 2814IFS=$as_save_IFS 2815 2816fi 2817fi 2818CC=$ac_cv_prog_CC 2819if test -n "$CC"; then 2820 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2821$as_echo "$CC" >&6; } 2822else 2823 { $as_echo "$as_me:$LINENO: result: no" >&5 2824$as_echo "no" >&6; } 2825fi 2826 2827 2828 fi 2829fi 2830if test -z "$CC"; then 2831 # Extract the first word of "cc", so it can be a program name with args. 2832set dummy cc; ac_word=$2 2833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2834$as_echo_n "checking for $ac_word... " >&6; } 2835if test "${ac_cv_prog_CC+set}" = set; then 2836 $as_echo_n "(cached) " >&6 2837else 2838 if test -n "$CC"; then 2839 ac_cv_prog_CC="$CC" # Let the user override the test. 2840else 2841 ac_prog_rejected=no 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2850 ac_prog_rejected=yes 2851 continue 2852 fi 2853 ac_cv_prog_CC="cc" 2854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858done 2859IFS=$as_save_IFS 2860 2861if test $ac_prog_rejected = yes; then 2862 # We found a bogon in the path, so make sure we never use it. 2863 set dummy $ac_cv_prog_CC 2864 shift 2865 if test $# != 0; then 2866 # We chose a different compiler from the bogus one. 2867 # However, it has the same basename, so the bogon will be chosen 2868 # first if we set CC to just the basename; use the full file name. 2869 shift 2870 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2871 fi 2872fi 2873fi 2874fi 2875CC=$ac_cv_prog_CC 2876if test -n "$CC"; then 2877 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2878$as_echo "$CC" >&6; } 2879else 2880 { $as_echo "$as_me:$LINENO: result: no" >&5 2881$as_echo "no" >&6; } 2882fi 2883 2884 2885fi 2886if test -z "$CC"; then 2887 if test -n "$ac_tool_prefix"; then 2888 for ac_prog in cl.exe 2889 do 2890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2891set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2893$as_echo_n "checking for $ac_word... " >&6; } 2894if test "${ac_cv_prog_CC+set}" = set; then 2895 $as_echo_n "(cached) " >&6 2896else 2897 if test -n "$CC"; then 2898 ac_cv_prog_CC="$CC" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912done 2913IFS=$as_save_IFS 2914 2915fi 2916fi 2917CC=$ac_cv_prog_CC 2918if test -n "$CC"; then 2919 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2920$as_echo "$CC" >&6; } 2921else 2922 { $as_echo "$as_me:$LINENO: result: no" >&5 2923$as_echo "no" >&6; } 2924fi 2925 2926 2927 test -n "$CC" && break 2928 done 2929fi 2930if test -z "$CC"; then 2931 ac_ct_CC=$CC 2932 for ac_prog in cl.exe 2933do 2934 # Extract the first word of "$ac_prog", so it can be a program name with args. 2935set dummy $ac_prog; ac_word=$2 2936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2937$as_echo_n "checking for $ac_word... " >&6; } 2938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2939 $as_echo_n "(cached) " >&6 2940else 2941 if test -n "$ac_ct_CC"; then 2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 test -z "$as_dir" && as_dir=. 2949 for ac_exec_ext in '' $ac_executable_extensions; do 2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2951 ac_cv_prog_ac_ct_CC="$ac_prog" 2952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2953 break 2 2954 fi 2955done 2956done 2957IFS=$as_save_IFS 2958 2959fi 2960fi 2961ac_ct_CC=$ac_cv_prog_ac_ct_CC 2962if test -n "$ac_ct_CC"; then 2963 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2964$as_echo "$ac_ct_CC" >&6; } 2965else 2966 { $as_echo "$as_me:$LINENO: result: no" >&5 2967$as_echo "no" >&6; } 2968fi 2969 2970 2971 test -n "$ac_ct_CC" && break 2972done 2973 2974 if test "x$ac_ct_CC" = x; then 2975 CC="" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 CC=$ac_ct_CC 2984 fi 2985fi 2986 2987fi 2988 2989 2990test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2992{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2993See \`config.log' for more details." >&5 2994$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2995See \`config.log' for more details." >&2;} 2996 { (exit 1); exit 1; }; }; } 2997 2998# Provide some information about the compiler. 2999$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3000set X $ac_compile 3001ac_compiler=$2 3002{ (ac_try="$ac_compiler --version >&5" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3008$as_echo "$ac_try_echo") >&5 3009 (eval "$ac_compiler --version >&5") 2>&5 3010 ac_status=$? 3011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); } 3013{ (ac_try="$ac_compiler -v >&5" 3014case "(($ac_try" in 3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016 *) ac_try_echo=$ac_try;; 3017esac 3018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3019$as_echo "$ac_try_echo") >&5 3020 (eval "$ac_compiler -v >&5") 2>&5 3021 ac_status=$? 3022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } 3024{ (ac_try="$ac_compiler -V >&5" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3030$as_echo "$ac_try_echo") >&5 3031 (eval "$ac_compiler -V >&5") 2>&5 3032 ac_status=$? 3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } 3035 3036cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051ac_clean_files_save=$ac_clean_files 3052ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3053# Try to create an executable without -o first, disregard a.out. 3054# It will help us diagnose broken compilers, and finding out an intuition 3055# of exeext. 3056{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3057$as_echo_n "checking for C compiler default output file name... " >&6; } 3058ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3059 3060# The possible output files: 3061ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3062 3063ac_rmfiles= 3064for ac_file in $ac_files 3065do 3066 case $ac_file in 3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3069 esac 3070done 3071rm -f $ac_rmfiles 3072 3073if { (ac_try="$ac_link_default" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3079$as_echo "$ac_try_echo") >&5 3080 (eval "$ac_link_default") 2>&5 3081 ac_status=$? 3082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3083 (exit $ac_status); }; then 3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3085# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3086# in a Makefile. We should not override ac_cv_exeext if it was cached, 3087# so that the user can short-circuit this test for compilers unknown to 3088# Autoconf. 3089for ac_file in $ac_files '' 3090do 3091 test -f "$ac_file" || continue 3092 case $ac_file in 3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3094 ;; 3095 [ab].out ) 3096 # We found the default executable, but exeext='' is most 3097 # certainly right. 3098 break;; 3099 *.* ) 3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3101 then :; else 3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3103 fi 3104 # We set ac_cv_exeext here because the later test for it is not 3105 # safe: cross compilers may not add the suffix if given an `-o' 3106 # argument, so we may need to know it at that point already. 3107 # Even if this section looks crufty: it has the advantage of 3108 # actually working. 3109 break;; 3110 * ) 3111 break;; 3112 esac 3113done 3114test "$ac_cv_exeext" = no && ac_cv_exeext= 3115 3116else 3117 ac_file='' 3118fi 3119 3120{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3121$as_echo "$ac_file" >&6; } 3122if test -z "$ac_file"; then 3123 $as_echo "$as_me: failed program was:" >&5 3124sed 's/^/| /' conftest.$ac_ext >&5 3125 3126{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3128{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3129See \`config.log' for more details." >&5 3130$as_echo "$as_me: error: C compiler cannot create executables 3131See \`config.log' for more details." >&2;} 3132 { (exit 77); exit 77; }; }; } 3133fi 3134 3135ac_exeext=$ac_cv_exeext 3136 3137# Check that the compiler produces executables we can run. If not, either 3138# the compiler is broken, or we cross compile. 3139{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3140$as_echo_n "checking whether the C compiler works... " >&6; } 3141# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3142# If not cross compiling, check that we can run a simple program. 3143if test "$cross_compiling" != yes; then 3144 if { ac_try='./$ac_file' 3145 { (case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3150$as_echo "$ac_try_echo") >&5 3151 (eval "$ac_try") 2>&5 3152 ac_status=$? 3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 cross_compiling=no 3156 else 3157 if test "$cross_compiling" = maybe; then 3158 cross_compiling=yes 3159 else 3160 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3162{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3163If you meant to cross compile, use \`--host'. 3164See \`config.log' for more details." >&5 3165$as_echo "$as_me: error: cannot run C compiled programs. 3166If you meant to cross compile, use \`--host'. 3167See \`config.log' for more details." >&2;} 3168 { (exit 1); exit 1; }; }; } 3169 fi 3170 fi 3171fi 3172{ $as_echo "$as_me:$LINENO: result: yes" >&5 3173$as_echo "yes" >&6; } 3174 3175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3176ac_clean_files=$ac_clean_files_save 3177# Check that the compiler produces executables we can run. If not, either 3178# the compiler is broken, or we cross compile. 3179{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3180$as_echo_n "checking whether we are cross compiling... " >&6; } 3181{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3182$as_echo "$cross_compiling" >&6; } 3183 3184{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3185$as_echo_n "checking for suffix of executables... " >&6; } 3186if { (ac_try="$ac_link" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3192$as_echo "$ac_try_echo") >&5 3193 (eval "$ac_link") 2>&5 3194 ac_status=$? 3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); }; then 3197 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3198# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3199# work properly (i.e., refer to `conftest.exe'), while it won't with 3200# `rm'. 3201for ac_file in conftest.exe conftest conftest.*; do 3202 test -f "$ac_file" || continue 3203 case $ac_file in 3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3206 break;; 3207 * ) break;; 3208 esac 3209done 3210else 3211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3213{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3214See \`config.log' for more details." >&5 3215$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3216See \`config.log' for more details." >&2;} 3217 { (exit 1); exit 1; }; }; } 3218fi 3219 3220rm -f conftest$ac_cv_exeext 3221{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3222$as_echo "$ac_cv_exeext" >&6; } 3223 3224rm -f conftest.$ac_ext 3225EXEEXT=$ac_cv_exeext 3226ac_exeext=$EXEEXT 3227{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3228$as_echo_n "checking for suffix of object files... " >&6; } 3229if test "${ac_cv_objext+set}" = set; then 3230 $as_echo_n "(cached) " >&6 3231else 3232 cat >conftest.$ac_ext <<_ACEOF 3233/* confdefs.h. */ 3234_ACEOF 3235cat confdefs.h >>conftest.$ac_ext 3236cat >>conftest.$ac_ext <<_ACEOF 3237/* end confdefs.h. */ 3238 3239int 3240main () 3241{ 3242 3243 ; 3244 return 0; 3245} 3246_ACEOF 3247rm -f conftest.o conftest.obj 3248if { (ac_try="$ac_compile" 3249case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3254$as_echo "$ac_try_echo") >&5 3255 (eval "$ac_compile") 2>&5 3256 ac_status=$? 3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); }; then 3259 for ac_file in conftest.o conftest.obj conftest.*; do 3260 test -f "$ac_file" || continue; 3261 case $ac_file in 3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3264 break;; 3265 esac 3266done 3267else 3268 $as_echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3274See \`config.log' for more details." >&5 3275$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3276See \`config.log' for more details." >&2;} 3277 { (exit 1); exit 1; }; }; } 3278fi 3279 3280rm -f conftest.$ac_cv_objext conftest.$ac_ext 3281fi 3282{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3283$as_echo "$ac_cv_objext" >&6; } 3284OBJEXT=$ac_cv_objext 3285ac_objext=$OBJEXT 3286{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3287$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3288if test "${ac_cv_c_compiler_gnu+set}" = set; then 3289 $as_echo_n "(cached) " >&6 3290else 3291 cat >conftest.$ac_ext <<_ACEOF 3292/* confdefs.h. */ 3293_ACEOF 3294cat confdefs.h >>conftest.$ac_ext 3295cat >>conftest.$ac_ext <<_ACEOF 3296/* end confdefs.h. */ 3297 3298int 3299main () 3300{ 3301#ifndef __GNUC__ 3302 choke me 3303#endif 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309rm -f conftest.$ac_objext 3310if { (ac_try="$ac_compile" 3311case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314esac 3315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3316$as_echo "$ac_try_echo") >&5 3317 (eval "$ac_compile") 2>conftest.er1 3318 ac_status=$? 3319 grep -v '^ *+' conftest.er1 >conftest.err 3320 rm -f conftest.er1 3321 cat conftest.err >&5 3322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3323 (exit $ac_status); } && { 3324 test -z "$ac_c_werror_flag" || 3325 test ! -s conftest.err 3326 } && test -s conftest.$ac_objext; then 3327 ac_compiler_gnu=yes 3328else 3329 $as_echo "$as_me: failed program was:" >&5 3330sed 's/^/| /' conftest.$ac_ext >&5 3331 3332 ac_compiler_gnu=no 3333fi 3334 3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3336ac_cv_c_compiler_gnu=$ac_compiler_gnu 3337 3338fi 3339{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3340$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3341if test $ac_compiler_gnu = yes; then 3342 GCC=yes 3343else 3344 GCC= 3345fi 3346ac_test_CFLAGS=${CFLAGS+set} 3347ac_save_CFLAGS=$CFLAGS 3348{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3349$as_echo_n "checking whether $CC accepts -g... " >&6; } 3350if test "${ac_cv_prog_cc_g+set}" = set; then 3351 $as_echo_n "(cached) " >&6 3352else 3353 ac_save_c_werror_flag=$ac_c_werror_flag 3354 ac_c_werror_flag=yes 3355 ac_cv_prog_cc_g=no 3356 CFLAGS="-g" 3357 cat >conftest.$ac_ext <<_ACEOF 3358/* confdefs.h. */ 3359_ACEOF 3360cat confdefs.h >>conftest.$ac_ext 3361cat >>conftest.$ac_ext <<_ACEOF 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372rm -f conftest.$ac_objext 3373if { (ac_try="$ac_compile" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3379$as_echo "$ac_try_echo") >&5 3380 (eval "$ac_compile") 2>conftest.er1 3381 ac_status=$? 3382 grep -v '^ *+' conftest.er1 >conftest.err 3383 rm -f conftest.er1 3384 cat conftest.err >&5 3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); } && { 3387 test -z "$ac_c_werror_flag" || 3388 test ! -s conftest.err 3389 } && test -s conftest.$ac_objext; then 3390 ac_cv_prog_cc_g=yes 3391else 3392 $as_echo "$as_me: failed program was:" >&5 3393sed 's/^/| /' conftest.$ac_ext >&5 3394 3395 CFLAGS="" 3396 cat >conftest.$ac_ext <<_ACEOF 3397/* confdefs.h. */ 3398_ACEOF 3399cat confdefs.h >>conftest.$ac_ext 3400cat >>conftest.$ac_ext <<_ACEOF 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411rm -f conftest.$ac_objext 3412if { (ac_try="$ac_compile" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3418$as_echo "$ac_try_echo") >&5 3419 (eval "$ac_compile") 2>conftest.er1 3420 ac_status=$? 3421 grep -v '^ *+' conftest.er1 >conftest.err 3422 rm -f conftest.er1 3423 cat conftest.err >&5 3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3425 (exit $ac_status); } && { 3426 test -z "$ac_c_werror_flag" || 3427 test ! -s conftest.err 3428 } && test -s conftest.$ac_objext; then 3429 : 3430else 3431 $as_echo "$as_me: failed program was:" >&5 3432sed 's/^/| /' conftest.$ac_ext >&5 3433 3434 ac_c_werror_flag=$ac_save_c_werror_flag 3435 CFLAGS="-g" 3436 cat >conftest.$ac_ext <<_ACEOF 3437/* confdefs.h. */ 3438_ACEOF 3439cat confdefs.h >>conftest.$ac_ext 3440cat >>conftest.$ac_ext <<_ACEOF 3441/* end confdefs.h. */ 3442 3443int 3444main () 3445{ 3446 3447 ; 3448 return 0; 3449} 3450_ACEOF 3451rm -f conftest.$ac_objext 3452if { (ac_try="$ac_compile" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3458$as_echo "$ac_try_echo") >&5 3459 (eval "$ac_compile") 2>conftest.er1 3460 ac_status=$? 3461 grep -v '^ *+' conftest.er1 >conftest.err 3462 rm -f conftest.er1 3463 cat conftest.err >&5 3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3465 (exit $ac_status); } && { 3466 test -z "$ac_c_werror_flag" || 3467 test ! -s conftest.err 3468 } && test -s conftest.$ac_objext; then 3469 ac_cv_prog_cc_g=yes 3470else 3471 $as_echo "$as_me: failed program was:" >&5 3472sed 's/^/| /' conftest.$ac_ext >&5 3473 3474 3475fi 3476 3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3478fi 3479 3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3481fi 3482 3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3484 ac_c_werror_flag=$ac_save_c_werror_flag 3485fi 3486{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3487$as_echo "$ac_cv_prog_cc_g" >&6; } 3488if test "$ac_test_CFLAGS" = set; then 3489 CFLAGS=$ac_save_CFLAGS 3490elif test $ac_cv_prog_cc_g = yes; then 3491 if test "$GCC" = yes; then 3492 CFLAGS="-g -O2" 3493 else 3494 CFLAGS="-g" 3495 fi 3496else 3497 if test "$GCC" = yes; then 3498 CFLAGS="-O2" 3499 else 3500 CFLAGS= 3501 fi 3502fi 3503{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3504$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3505if test "${ac_cv_prog_cc_c89+set}" = set; then 3506 $as_echo_n "(cached) " >&6 3507else 3508 ac_cv_prog_cc_c89=no 3509ac_save_CC=$CC 3510cat >conftest.$ac_ext <<_ACEOF 3511/* confdefs.h. */ 3512_ACEOF 3513cat confdefs.h >>conftest.$ac_ext 3514cat >>conftest.$ac_ext <<_ACEOF 3515/* end confdefs.h. */ 3516#include <stdarg.h> 3517#include <stdio.h> 3518#include <sys/types.h> 3519#include <sys/stat.h> 3520/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3521struct buf { int x; }; 3522FILE * (*rcsopen) (struct buf *, struct stat *, int); 3523static char *e (p, i) 3524 char **p; 3525 int i; 3526{ 3527 return p[i]; 3528} 3529static char *f (char * (*g) (char **, int), char **p, ...) 3530{ 3531 char *s; 3532 va_list v; 3533 va_start (v,p); 3534 s = g (p, va_arg (v,int)); 3535 va_end (v); 3536 return s; 3537} 3538 3539/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3540 function prototypes and stuff, but not '\xHH' hex character constants. 3541 These don't provoke an error unfortunately, instead are silently treated 3542 as 'x'. The following induces an error, until -std is added to get 3543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3544 array size at least. It's necessary to write '\x00'==0 to get something 3545 that's true only with -std. */ 3546int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3547 3548/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3549 inside strings and character constants. */ 3550#define FOO(x) 'x' 3551int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3552 3553int test (int i, double x); 3554struct s1 {int (*f) (int a);}; 3555struct s2 {int (*f) (double a);}; 3556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3557int argc; 3558char **argv; 3559int 3560main () 3561{ 3562return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3569do 3570 CC="$ac_save_CC $ac_arg" 3571 rm -f conftest.$ac_objext 3572if { (ac_try="$ac_compile" 3573case "(($ac_try" in 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3575 *) ac_try_echo=$ac_try;; 3576esac 3577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3578$as_echo "$ac_try_echo") >&5 3579 (eval "$ac_compile") 2>conftest.er1 3580 ac_status=$? 3581 grep -v '^ *+' conftest.er1 >conftest.err 3582 rm -f conftest.er1 3583 cat conftest.err >&5 3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3585 (exit $ac_status); } && { 3586 test -z "$ac_c_werror_flag" || 3587 test ! -s conftest.err 3588 } && test -s conftest.$ac_objext; then 3589 ac_cv_prog_cc_c89=$ac_arg 3590else 3591 $as_echo "$as_me: failed program was:" >&5 3592sed 's/^/| /' conftest.$ac_ext >&5 3593 3594 3595fi 3596 3597rm -f core conftest.err conftest.$ac_objext 3598 test "x$ac_cv_prog_cc_c89" != "xno" && break 3599done 3600rm -f conftest.$ac_ext 3601CC=$ac_save_CC 3602 3603fi 3604# AC_CACHE_VAL 3605case "x$ac_cv_prog_cc_c89" in 3606 x) 3607 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3608$as_echo "none needed" >&6; } ;; 3609 xno) 3610 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3611$as_echo "unsupported" >&6; } ;; 3612 *) 3613 CC="$CC $ac_cv_prog_cc_c89" 3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3615$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3616esac 3617 3618 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624DEPDIR="${am__leading_dot}deps" 3625 3626ac_config_commands="$ac_config_commands depfiles" 3627 3628 3629am_make=${MAKE-make} 3630cat > confinc << 'END' 3631am__doit: 3632 @echo done 3633.PHONY: am__doit 3634END 3635# If we don't find an include directive, just comment out the code. 3636{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3637$as_echo_n "checking for style of include used by $am_make... " >&6; } 3638am__include="#" 3639am__quote= 3640_am_result=none 3641# First try GNU make style include. 3642echo "include confinc" > confmf 3643# We grep out `Entering directory' and `Leaving directory' 3644# messages which can occur if `w' ends up in MAKEFLAGS. 3645# In particular we don't look at `^make:' because GNU make might 3646# be invoked under some other name (usually "gmake"), in which 3647# case it prints its new name instead of `make'. 3648if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3649 am__include=include 3650 am__quote= 3651 _am_result=GNU 3652fi 3653# Now try BSD make style include. 3654if test "$am__include" = "#"; then 3655 echo '.include "confinc"' > confmf 3656 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3657 am__include=.include 3658 am__quote="\"" 3659 _am_result=BSD 3660 fi 3661fi 3662 3663 3664{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3665$as_echo "$_am_result" >&6; } 3666rm -f confinc confmf 3667 3668# Check whether --enable-dependency-tracking was given. 3669if test "${enable_dependency_tracking+set}" = set; then 3670 enableval=$enable_dependency_tracking; 3671fi 3672 3673if test "x$enable_dependency_tracking" != xno; then 3674 am_depcomp="$ac_aux_dir/depcomp" 3675 AMDEPBACKSLASH='\' 3676fi 3677 if test "x$enable_dependency_tracking" != xno; then 3678 AMDEP_TRUE= 3679 AMDEP_FALSE='#' 3680else 3681 AMDEP_TRUE='#' 3682 AMDEP_FALSE= 3683fi 3684 3685 3686 3687depcc="$CC" am_compiler_list= 3688 3689{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3690$as_echo_n "checking dependency style of $depcc... " >&6; } 3691if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3692 $as_echo_n "(cached) " >&6 3693else 3694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3695 # We make a subdir and do the tests there. Otherwise we can end up 3696 # making bogus files that we don't know about and never remove. For 3697 # instance it was reported that on HP-UX the gcc test will end up 3698 # making a dummy file named `D' -- because `-MD' means `put the output 3699 # in D'. 3700 mkdir conftest.dir 3701 # Copy depcomp to subdir because otherwise we won't find it if we're 3702 # using a relative directory. 3703 cp "$am_depcomp" conftest.dir 3704 cd conftest.dir 3705 # We will build objects and dependencies in a subdirectory because 3706 # it helps to detect inapplicable dependency modes. For instance 3707 # both Tru64's cc and ICC support -MD to output dependencies as a 3708 # side effect of compilation, but ICC will put the dependencies in 3709 # the current directory while Tru64 will put them in the object 3710 # directory. 3711 mkdir sub 3712 3713 am_cv_CC_dependencies_compiler_type=none 3714 if test "$am_compiler_list" = ""; then 3715 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3716 fi 3717 for depmode in $am_compiler_list; do 3718 # Setup a source with many dependencies, because some compilers 3719 # like to wrap large dependency lists on column 80 (with \), and 3720 # we should not choose a depcomp mode which is confused by this. 3721 # 3722 # We need to recreate these files for each test, as the compiler may 3723 # overwrite some of them when testing with obscure command lines. 3724 # This happens at least with the AIX C compiler. 3725 : > sub/conftest.c 3726 for i in 1 2 3 4 5 6; do 3727 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3728 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3729 # Solaris 8's {/usr,}/bin/sh. 3730 touch sub/conftst$i.h 3731 done 3732 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3733 3734 case $depmode in 3735 nosideeffect) 3736 # after this tag, mechanisms are not by side-effect, so they'll 3737 # only be used when explicitly requested 3738 if test "x$enable_dependency_tracking" = xyes; then 3739 continue 3740 else 3741 break 3742 fi 3743 ;; 3744 none) break ;; 3745 esac 3746 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3747 # mode. It turns out that the SunPro C++ compiler does not properly 3748 # handle `-M -o', and we need to detect this. 3749 if depmode=$depmode \ 3750 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3752 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3753 >/dev/null 2>conftest.err && 3754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3756 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3758 # icc doesn't choke on unknown options, it will just issue warnings 3759 # or remarks (even with -Werror). So we grep stderr for any message 3760 # that says an option was ignored or not supported. 3761 # When given -MP, icc 7.0 and 7.1 complain thusly: 3762 # icc: Command line warning: ignoring option '-M'; no argument required 3763 # The diagnosis changed in icc 8.0: 3764 # icc: Command line remark: option '-MP' not supported 3765 if (grep 'ignoring option' conftest.err || 3766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3767 am_cv_CC_dependencies_compiler_type=$depmode 3768 break 3769 fi 3770 fi 3771 done 3772 3773 cd .. 3774 rm -rf conftest.dir 3775else 3776 am_cv_CC_dependencies_compiler_type=none 3777fi 3778 3779fi 3780{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3781$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3782CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3783 3784 if 3785 test "x$enable_dependency_tracking" != xno \ 3786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3787 am__fastdepCC_TRUE= 3788 am__fastdepCC_FALSE='#' 3789else 3790 am__fastdepCC_TRUE='#' 3791 am__fastdepCC_FALSE= 3792fi 3793 3794 3795ac_ext=cpp 3796ac_cpp='$CXXCPP $CPPFLAGS' 3797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3800if test -z "$CXX"; then 3801 if test -n "$CCC"; then 3802 CXX=$CCC 3803 else 3804 if test -n "$ac_tool_prefix"; then 3805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3806 do 3807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3810$as_echo_n "checking for $ac_word... " >&6; } 3811if test "${ac_cv_prog_CXX+set}" = set; then 3812 $as_echo_n "(cached) " >&6 3813else 3814 if test -n "$CXX"; then 3815 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3816else 3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818for as_dir in $PATH 3819do 3820 IFS=$as_save_IFS 3821 test -z "$as_dir" && as_dir=. 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3826 break 2 3827 fi 3828done 3829done 3830IFS=$as_save_IFS 3831 3832fi 3833fi 3834CXX=$ac_cv_prog_CXX 3835if test -n "$CXX"; then 3836 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 3837$as_echo "$CXX" >&6; } 3838else 3839 { $as_echo "$as_me:$LINENO: result: no" >&5 3840$as_echo "no" >&6; } 3841fi 3842 3843 3844 test -n "$CXX" && break 3845 done 3846fi 3847if test -z "$CXX"; then 3848 ac_ct_CXX=$CXX 3849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3850do 3851 # Extract the first word of "$ac_prog", so it can be a program name with args. 3852set dummy $ac_prog; ac_word=$2 3853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3854$as_echo_n "checking for $ac_word... " >&6; } 3855if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3856 $as_echo_n "(cached) " >&6 3857else 3858 if test -n "$ac_ct_CXX"; then 3859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3860else 3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3862for as_dir in $PATH 3863do 3864 IFS=$as_save_IFS 3865 test -z "$as_dir" && as_dir=. 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3868 ac_cv_prog_ac_ct_CXX="$ac_prog" 3869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3870 break 2 3871 fi 3872done 3873done 3874IFS=$as_save_IFS 3875 3876fi 3877fi 3878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3879if test -n "$ac_ct_CXX"; then 3880 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3881$as_echo "$ac_ct_CXX" >&6; } 3882else 3883 { $as_echo "$as_me:$LINENO: result: no" >&5 3884$as_echo "no" >&6; } 3885fi 3886 3887 3888 test -n "$ac_ct_CXX" && break 3889done 3890 3891 if test "x$ac_ct_CXX" = x; then 3892 CXX="g++" 3893 else 3894 case $cross_compiling:$ac_tool_warned in 3895yes:) 3896{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3898ac_tool_warned=yes ;; 3899esac 3900 CXX=$ac_ct_CXX 3901 fi 3902fi 3903 3904 fi 3905fi 3906# Provide some information about the compiler. 3907$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3908set X $ac_compile 3909ac_compiler=$2 3910{ (ac_try="$ac_compiler --version >&5" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3916$as_echo "$ac_try_echo") >&5 3917 (eval "$ac_compiler --version >&5") 2>&5 3918 ac_status=$? 3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); } 3921{ (ac_try="$ac_compiler -v >&5" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3927$as_echo "$ac_try_echo") >&5 3928 (eval "$ac_compiler -v >&5") 2>&5 3929 ac_status=$? 3930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); } 3932{ (ac_try="$ac_compiler -V >&5" 3933case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936esac 3937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3938$as_echo "$ac_try_echo") >&5 3939 (eval "$ac_compiler -V >&5") 2>&5 3940 ac_status=$? 3941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3942 (exit $ac_status); } 3943 3944{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3945$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3946if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3947 $as_echo_n "(cached) " >&6 3948else 3949 cat >conftest.$ac_ext <<_ACEOF 3950/* confdefs.h. */ 3951_ACEOF 3952cat confdefs.h >>conftest.$ac_ext 3953cat >>conftest.$ac_ext <<_ACEOF 3954/* end confdefs.h. */ 3955 3956int 3957main () 3958{ 3959#ifndef __GNUC__ 3960 choke me 3961#endif 3962 3963 ; 3964 return 0; 3965} 3966_ACEOF 3967rm -f conftest.$ac_objext 3968if { (ac_try="$ac_compile" 3969case "(($ac_try" in 3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3971 *) ac_try_echo=$ac_try;; 3972esac 3973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3974$as_echo "$ac_try_echo") >&5 3975 (eval "$ac_compile") 2>conftest.er1 3976 ac_status=$? 3977 grep -v '^ *+' conftest.er1 >conftest.err 3978 rm -f conftest.er1 3979 cat conftest.err >&5 3980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); } && { 3982 test -z "$ac_cxx_werror_flag" || 3983 test ! -s conftest.err 3984 } && test -s conftest.$ac_objext; then 3985 ac_compiler_gnu=yes 3986else 3987 $as_echo "$as_me: failed program was:" >&5 3988sed 's/^/| /' conftest.$ac_ext >&5 3989 3990 ac_compiler_gnu=no 3991fi 3992 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3995 3996fi 3997{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3998$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3999if test $ac_compiler_gnu = yes; then 4000 GXX=yes 4001else 4002 GXX= 4003fi 4004ac_test_CXXFLAGS=${CXXFLAGS+set} 4005ac_save_CXXFLAGS=$CXXFLAGS 4006{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4007$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4008if test "${ac_cv_prog_cxx_g+set}" = set; then 4009 $as_echo_n "(cached) " >&6 4010else 4011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4012 ac_cxx_werror_flag=yes 4013 ac_cv_prog_cxx_g=no 4014 CXXFLAGS="-g" 4015 cat >conftest.$ac_ext <<_ACEOF 4016/* confdefs.h. */ 4017_ACEOF 4018cat confdefs.h >>conftest.$ac_ext 4019cat >>conftest.$ac_ext <<_ACEOF 4020/* end confdefs.h. */ 4021 4022int 4023main () 4024{ 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030rm -f conftest.$ac_objext 4031if { (ac_try="$ac_compile" 4032case "(($ac_try" in 4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4034 *) ac_try_echo=$ac_try;; 4035esac 4036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4037$as_echo "$ac_try_echo") >&5 4038 (eval "$ac_compile") 2>conftest.er1 4039 ac_status=$? 4040 grep -v '^ *+' conftest.er1 >conftest.err 4041 rm -f conftest.er1 4042 cat conftest.err >&5 4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); } && { 4045 test -z "$ac_cxx_werror_flag" || 4046 test ! -s conftest.err 4047 } && test -s conftest.$ac_objext; then 4048 ac_cv_prog_cxx_g=yes 4049else 4050 $as_echo "$as_me: failed program was:" >&5 4051sed 's/^/| /' conftest.$ac_ext >&5 4052 4053 CXXFLAGS="" 4054 cat >conftest.$ac_ext <<_ACEOF 4055/* confdefs.h. */ 4056_ACEOF 4057cat confdefs.h >>conftest.$ac_ext 4058cat >>conftest.$ac_ext <<_ACEOF 4059/* end confdefs.h. */ 4060 4061int 4062main () 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069rm -f conftest.$ac_objext 4070if { (ac_try="$ac_compile" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4076$as_echo "$ac_try_echo") >&5 4077 (eval "$ac_compile") 2>conftest.er1 4078 ac_status=$? 4079 grep -v '^ *+' conftest.er1 >conftest.err 4080 rm -f conftest.er1 4081 cat conftest.err >&5 4082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4083 (exit $ac_status); } && { 4084 test -z "$ac_cxx_werror_flag" || 4085 test ! -s conftest.err 4086 } && test -s conftest.$ac_objext; then 4087 : 4088else 4089 $as_echo "$as_me: failed program was:" >&5 4090sed 's/^/| /' conftest.$ac_ext >&5 4091 4092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4093 CXXFLAGS="-g" 4094 cat >conftest.$ac_ext <<_ACEOF 4095/* confdefs.h. */ 4096_ACEOF 4097cat confdefs.h >>conftest.$ac_ext 4098cat >>conftest.$ac_ext <<_ACEOF 4099/* end confdefs.h. */ 4100 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109rm -f conftest.$ac_objext 4110if { (ac_try="$ac_compile" 4111case "(($ac_try" in 4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4113 *) ac_try_echo=$ac_try;; 4114esac 4115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4116$as_echo "$ac_try_echo") >&5 4117 (eval "$ac_compile") 2>conftest.er1 4118 ac_status=$? 4119 grep -v '^ *+' conftest.er1 >conftest.err 4120 rm -f conftest.er1 4121 cat conftest.err >&5 4122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); } && { 4124 test -z "$ac_cxx_werror_flag" || 4125 test ! -s conftest.err 4126 } && test -s conftest.$ac_objext; then 4127 ac_cv_prog_cxx_g=yes 4128else 4129 $as_echo "$as_me: failed program was:" >&5 4130sed 's/^/| /' conftest.$ac_ext >&5 4131 4132 4133fi 4134 4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4136fi 4137 4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4139fi 4140 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4143fi 4144{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4145$as_echo "$ac_cv_prog_cxx_g" >&6; } 4146if test "$ac_test_CXXFLAGS" = set; then 4147 CXXFLAGS=$ac_save_CXXFLAGS 4148elif test $ac_cv_prog_cxx_g = yes; then 4149 if test "$GXX" = yes; then 4150 CXXFLAGS="-g -O2" 4151 else 4152 CXXFLAGS="-g" 4153 fi 4154else 4155 if test "$GXX" = yes; then 4156 CXXFLAGS="-O2" 4157 else 4158 CXXFLAGS= 4159 fi 4160fi 4161ac_ext=c 4162ac_cpp='$CPP $CPPFLAGS' 4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4165ac_compiler_gnu=$ac_cv_c_compiler_gnu 4166 4167depcc="$CXX" am_compiler_list= 4168 4169{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4170$as_echo_n "checking dependency style of $depcc... " >&6; } 4171if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4172 $as_echo_n "(cached) " >&6 4173else 4174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4175 # We make a subdir and do the tests there. Otherwise we can end up 4176 # making bogus files that we don't know about and never remove. For 4177 # instance it was reported that on HP-UX the gcc test will end up 4178 # making a dummy file named `D' -- because `-MD' means `put the output 4179 # in D'. 4180 mkdir conftest.dir 4181 # Copy depcomp to subdir because otherwise we won't find it if we're 4182 # using a relative directory. 4183 cp "$am_depcomp" conftest.dir 4184 cd conftest.dir 4185 # We will build objects and dependencies in a subdirectory because 4186 # it helps to detect inapplicable dependency modes. For instance 4187 # both Tru64's cc and ICC support -MD to output dependencies as a 4188 # side effect of compilation, but ICC will put the dependencies in 4189 # the current directory while Tru64 will put them in the object 4190 # directory. 4191 mkdir sub 4192 4193 am_cv_CXX_dependencies_compiler_type=none 4194 if test "$am_compiler_list" = ""; then 4195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4196 fi 4197 for depmode in $am_compiler_list; do 4198 # Setup a source with many dependencies, because some compilers 4199 # like to wrap large dependency lists on column 80 (with \), and 4200 # we should not choose a depcomp mode which is confused by this. 4201 # 4202 # We need to recreate these files for each test, as the compiler may 4203 # overwrite some of them when testing with obscure command lines. 4204 # This happens at least with the AIX C compiler. 4205 : > sub/conftest.c 4206 for i in 1 2 3 4 5 6; do 4207 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4208 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4209 # Solaris 8's {/usr,}/bin/sh. 4210 touch sub/conftst$i.h 4211 done 4212 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4213 4214 case $depmode in 4215 nosideeffect) 4216 # after this tag, mechanisms are not by side-effect, so they'll 4217 # only be used when explicitly requested 4218 if test "x$enable_dependency_tracking" = xyes; then 4219 continue 4220 else 4221 break 4222 fi 4223 ;; 4224 none) break ;; 4225 esac 4226 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4227 # mode. It turns out that the SunPro C++ compiler does not properly 4228 # handle `-M -o', and we need to detect this. 4229 if depmode=$depmode \ 4230 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4232 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4233 >/dev/null 2>conftest.err && 4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4236 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4238 # icc doesn't choke on unknown options, it will just issue warnings 4239 # or remarks (even with -Werror). So we grep stderr for any message 4240 # that says an option was ignored or not supported. 4241 # When given -MP, icc 7.0 and 7.1 complain thusly: 4242 # icc: Command line warning: ignoring option '-M'; no argument required 4243 # The diagnosis changed in icc 8.0: 4244 # icc: Command line remark: option '-MP' not supported 4245 if (grep 'ignoring option' conftest.err || 4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4247 am_cv_CXX_dependencies_compiler_type=$depmode 4248 break 4249 fi 4250 fi 4251 done 4252 4253 cd .. 4254 rm -rf conftest.dir 4255else 4256 am_cv_CXX_dependencies_compiler_type=none 4257fi 4258 4259fi 4260{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4261$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4262CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4263 4264 if 4265 test "x$enable_dependency_tracking" != xno \ 4266 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4267 am__fastdepCXX_TRUE= 4268 am__fastdepCXX_FALSE='#' 4269else 4270 am__fastdepCXX_TRUE='#' 4271 am__fastdepCXX_FALSE= 4272fi 4273 4274 4275# Find a good install program. We prefer a C program (faster), 4276# so one script is as good as another. But avoid the broken or 4277# incompatible versions: 4278# SysV /etc/install, /usr/sbin/install 4279# SunOS /usr/etc/install 4280# IRIX /sbin/install 4281# AIX /bin/install 4282# AmigaOS /C/install, which installs bootblocks on floppy discs 4283# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4284# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4285# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4286# OS/2's system install, which has a completely different semantic 4287# ./install, which can be erroneously created by make from ./install.sh. 4288# Reject install programs that cannot install multiple files. 4289{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4290$as_echo_n "checking for a BSD-compatible install... " >&6; } 4291if test -z "$INSTALL"; then 4292if test "${ac_cv_path_install+set}" = set; then 4293 $as_echo_n "(cached) " >&6 4294else 4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4296for as_dir in $PATH 4297do 4298 IFS=$as_save_IFS 4299 test -z "$as_dir" && as_dir=. 4300 # Account for people who put trailing slashes in PATH elements. 4301case $as_dir/ in 4302 ./ | .// | /cC/* | \ 4303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4305 /usr/ucb/* ) ;; 4306 *) 4307 # OSF1 and SCO ODT 3.0 have their own names for install. 4308 # Don't use installbsd from OSF since it installs stuff as root 4309 # by default. 4310 for ac_prog in ginstall scoinst install; do 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4313 if test $ac_prog = install && 4314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4315 # AIX install. It has an incompatible calling convention. 4316 : 4317 elif test $ac_prog = install && 4318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4319 # program-specific install script used by HP pwplus--don't use. 4320 : 4321 else 4322 rm -rf conftest.one conftest.two conftest.dir 4323 echo one > conftest.one 4324 echo two > conftest.two 4325 mkdir conftest.dir 4326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4327 test -s conftest.one && test -s conftest.two && 4328 test -s conftest.dir/conftest.one && 4329 test -s conftest.dir/conftest.two 4330 then 4331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4332 break 3 4333 fi 4334 fi 4335 fi 4336 done 4337 done 4338 ;; 4339esac 4340 4341done 4342IFS=$as_save_IFS 4343 4344rm -rf conftest.one conftest.two conftest.dir 4345 4346fi 4347 if test "${ac_cv_path_install+set}" = set; then 4348 INSTALL=$ac_cv_path_install 4349 else 4350 # As a last resort, use the slow shell script. Don't cache a 4351 # value for INSTALL within a source directory, because that will 4352 # break other packages using the cache if that directory is 4353 # removed, or if the value is a relative name. 4354 INSTALL=$ac_install_sh 4355 fi 4356fi 4357{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4358$as_echo "$INSTALL" >&6; } 4359 4360# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4361# It thinks the first close brace ends the variable substitution. 4362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4363 4364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4365 4366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4367 4368 4369 4370if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4371 if test -n "$ac_tool_prefix"; then 4372 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4373set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4375$as_echo_n "checking for $ac_word... " >&6; } 4376if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4377 $as_echo_n "(cached) " >&6 4378else 4379 case $PKG_CONFIG in 4380 [\\/]* | ?:[\\/]*) 4381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4382 ;; 4383 *) 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395done 4396done 4397IFS=$as_save_IFS 4398 4399 ;; 4400esac 4401fi 4402PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4403if test -n "$PKG_CONFIG"; then 4404 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4405$as_echo "$PKG_CONFIG" >&6; } 4406else 4407 { $as_echo "$as_me:$LINENO: result: no" >&5 4408$as_echo "no" >&6; } 4409fi 4410 4411 4412fi 4413if test -z "$ac_cv_path_PKG_CONFIG"; then 4414 ac_pt_PKG_CONFIG=$PKG_CONFIG 4415 # Extract the first word of "pkg-config", so it can be a program name with args. 4416set dummy pkg-config; ac_word=$2 4417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4418$as_echo_n "checking for $ac_word... " >&6; } 4419if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4420 $as_echo_n "(cached) " >&6 4421else 4422 case $ac_pt_PKG_CONFIG in 4423 [\\/]* | ?:[\\/]*) 4424 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4425 ;; 4426 *) 4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4434 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439done 4440IFS=$as_save_IFS 4441 4442 ;; 4443esac 4444fi 4445ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4446if test -n "$ac_pt_PKG_CONFIG"; then 4447 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4448$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4449else 4450 { $as_echo "$as_me:$LINENO: result: no" >&5 4451$as_echo "no" >&6; } 4452fi 4453 4454 if test "x$ac_pt_PKG_CONFIG" = x; then 4455 PKG_CONFIG="" 4456 else 4457 case $cross_compiling:$ac_tool_warned in 4458yes:) 4459{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4461ac_tool_warned=yes ;; 4462esac 4463 PKG_CONFIG=$ac_pt_PKG_CONFIG 4464 fi 4465else 4466 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4467fi 4468 4469fi 4470if test -n "$PKG_CONFIG"; then 4471 _pkg_min_version=0.9.0 4472 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4473$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4474 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4475 { $as_echo "$as_me:$LINENO: result: yes" >&5 4476$as_echo "yes" >&6; } 4477 else 4478 { $as_echo "$as_me:$LINENO: result: no" >&5 4479$as_echo "no" >&6; } 4480 PKG_CONFIG="" 4481 fi 4482 4483fi 4484 4485 case `pwd` in 4486 *\ * | *\ *) 4487 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4488$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4489esac 4490 4491 4492 4493macro_version='2.2.6b' 4494macro_revision='1.3017' 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508ltmain="$ac_aux_dir/ltmain.sh" 4509 4510{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4511$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4512if test "${ac_cv_path_SED+set}" = set; then 4513 $as_echo_n "(cached) " >&6 4514else 4515 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4516 for ac_i in 1 2 3 4 5 6 7; do 4517 ac_script="$ac_script$as_nl$ac_script" 4518 done 4519 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4520 $as_unset ac_script || ac_script= 4521 if test -z "$SED"; then 4522 ac_path_SED_found=false 4523 # Loop through the user's path and test for each of PROGNAME-LIST 4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4525for as_dir in $PATH 4526do 4527 IFS=$as_save_IFS 4528 test -z "$as_dir" && as_dir=. 4529 for ac_prog in sed gsed; do 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4532 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4533# Check for GNU ac_path_SED and select it if it is found. 4534 # Check for GNU $ac_path_SED 4535case `"$ac_path_SED" --version 2>&1` in 4536*GNU*) 4537 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4538*) 4539 ac_count=0 4540 $as_echo_n 0123456789 >"conftest.in" 4541 while : 4542 do 4543 cat "conftest.in" "conftest.in" >"conftest.tmp" 4544 mv "conftest.tmp" "conftest.in" 4545 cp "conftest.in" "conftest.nl" 4546 $as_echo '' >> "conftest.nl" 4547 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4549 ac_count=`expr $ac_count + 1` 4550 if test $ac_count -gt ${ac_path_SED_max-0}; then 4551 # Best one so far, save it but keep looking for a better one 4552 ac_cv_path_SED="$ac_path_SED" 4553 ac_path_SED_max=$ac_count 4554 fi 4555 # 10*(2^10) chars as input seems more than enough 4556 test $ac_count -gt 10 && break 4557 done 4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4559esac 4560 4561 $ac_path_SED_found && break 3 4562 done 4563 done 4564done 4565IFS=$as_save_IFS 4566 if test -z "$ac_cv_path_SED"; then 4567 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4568$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4569 { (exit 1); exit 1; }; } 4570 fi 4571else 4572 ac_cv_path_SED=$SED 4573fi 4574 4575fi 4576{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4577$as_echo "$ac_cv_path_SED" >&6; } 4578 SED="$ac_cv_path_SED" 4579 rm -f conftest.sed 4580 4581test -z "$SED" && SED=sed 4582Xsed="$SED -e 1s/^X//" 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4595$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4596if test "${ac_cv_path_GREP+set}" = set; then 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -z "$GREP"; then 4600 ac_path_GREP_found=false 4601 # Loop through the user's path and test for each of PROGNAME-LIST 4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4604do 4605 IFS=$as_save_IFS 4606 test -z "$as_dir" && as_dir=. 4607 for ac_prog in grep ggrep; do 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4610 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4611# Check for GNU ac_path_GREP and select it if it is found. 4612 # Check for GNU $ac_path_GREP 4613case `"$ac_path_GREP" --version 2>&1` in 4614*GNU*) 4615 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4616*) 4617 ac_count=0 4618 $as_echo_n 0123456789 >"conftest.in" 4619 while : 4620 do 4621 cat "conftest.in" "conftest.in" >"conftest.tmp" 4622 mv "conftest.tmp" "conftest.in" 4623 cp "conftest.in" "conftest.nl" 4624 $as_echo 'GREP' >> "conftest.nl" 4625 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4627 ac_count=`expr $ac_count + 1` 4628 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4629 # Best one so far, save it but keep looking for a better one 4630 ac_cv_path_GREP="$ac_path_GREP" 4631 ac_path_GREP_max=$ac_count 4632 fi 4633 # 10*(2^10) chars as input seems more than enough 4634 test $ac_count -gt 10 && break 4635 done 4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4637esac 4638 4639 $ac_path_GREP_found && break 3 4640 done 4641 done 4642done 4643IFS=$as_save_IFS 4644 if test -z "$ac_cv_path_GREP"; then 4645 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4646$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4647 { (exit 1); exit 1; }; } 4648 fi 4649else 4650 ac_cv_path_GREP=$GREP 4651fi 4652 4653fi 4654{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4655$as_echo "$ac_cv_path_GREP" >&6; } 4656 GREP="$ac_cv_path_GREP" 4657 4658 4659{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4660$as_echo_n "checking for egrep... " >&6; } 4661if test "${ac_cv_path_EGREP+set}" = set; then 4662 $as_echo_n "(cached) " >&6 4663else 4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4665 then ac_cv_path_EGREP="$GREP -E" 4666 else 4667 if test -z "$EGREP"; then 4668 ac_path_EGREP_found=false 4669 # Loop through the user's path and test for each of PROGNAME-LIST 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_prog in egrep; do 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4679# Check for GNU ac_path_EGREP and select it if it is found. 4680 # Check for GNU $ac_path_EGREP 4681case `"$ac_path_EGREP" --version 2>&1` in 4682*GNU*) 4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4684*) 4685 ac_count=0 4686 $as_echo_n 0123456789 >"conftest.in" 4687 while : 4688 do 4689 cat "conftest.in" "conftest.in" >"conftest.tmp" 4690 mv "conftest.tmp" "conftest.in" 4691 cp "conftest.in" "conftest.nl" 4692 $as_echo 'EGREP' >> "conftest.nl" 4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4695 ac_count=`expr $ac_count + 1` 4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4697 # Best one so far, save it but keep looking for a better one 4698 ac_cv_path_EGREP="$ac_path_EGREP" 4699 ac_path_EGREP_max=$ac_count 4700 fi 4701 # 10*(2^10) chars as input seems more than enough 4702 test $ac_count -gt 10 && break 4703 done 4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4705esac 4706 4707 $ac_path_EGREP_found && break 3 4708 done 4709 done 4710done 4711IFS=$as_save_IFS 4712 if test -z "$ac_cv_path_EGREP"; then 4713 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4714$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4715 { (exit 1); exit 1; }; } 4716 fi 4717else 4718 ac_cv_path_EGREP=$EGREP 4719fi 4720 4721 fi 4722fi 4723{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4724$as_echo "$ac_cv_path_EGREP" >&6; } 4725 EGREP="$ac_cv_path_EGREP" 4726 4727 4728{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4729$as_echo_n "checking for fgrep... " >&6; } 4730if test "${ac_cv_path_FGREP+set}" = set; then 4731 $as_echo_n "(cached) " >&6 4732else 4733 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4734 then ac_cv_path_FGREP="$GREP -F" 4735 else 4736 if test -z "$FGREP"; then 4737 ac_path_FGREP_found=false 4738 # Loop through the user's path and test for each of PROGNAME-LIST 4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4740for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4741do 4742 IFS=$as_save_IFS 4743 test -z "$as_dir" && as_dir=. 4744 for ac_prog in fgrep; do 4745 for ac_exec_ext in '' $ac_executable_extensions; do 4746 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4747 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4748# Check for GNU ac_path_FGREP and select it if it is found. 4749 # Check for GNU $ac_path_FGREP 4750case `"$ac_path_FGREP" --version 2>&1` in 4751*GNU*) 4752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4753*) 4754 ac_count=0 4755 $as_echo_n 0123456789 >"conftest.in" 4756 while : 4757 do 4758 cat "conftest.in" "conftest.in" >"conftest.tmp" 4759 mv "conftest.tmp" "conftest.in" 4760 cp "conftest.in" "conftest.nl" 4761 $as_echo 'FGREP' >> "conftest.nl" 4762 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4764 ac_count=`expr $ac_count + 1` 4765 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4766 # Best one so far, save it but keep looking for a better one 4767 ac_cv_path_FGREP="$ac_path_FGREP" 4768 ac_path_FGREP_max=$ac_count 4769 fi 4770 # 10*(2^10) chars as input seems more than enough 4771 test $ac_count -gt 10 && break 4772 done 4773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4774esac 4775 4776 $ac_path_FGREP_found && break 3 4777 done 4778 done 4779done 4780IFS=$as_save_IFS 4781 if test -z "$ac_cv_path_FGREP"; then 4782 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4783$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4784 { (exit 1); exit 1; }; } 4785 fi 4786else 4787 ac_cv_path_FGREP=$FGREP 4788fi 4789 4790 fi 4791fi 4792{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4793$as_echo "$ac_cv_path_FGREP" >&6; } 4794 FGREP="$ac_cv_path_FGREP" 4795 4796 4797test -z "$GREP" && GREP=grep 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817# Check whether --with-gnu-ld was given. 4818if test "${with_gnu_ld+set}" = set; then 4819 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4820else 4821 with_gnu_ld=no 4822fi 4823 4824ac_prog=ld 4825if test "$GCC" = yes; then 4826 # Check if gcc -print-prog-name=ld gives a path. 4827 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4828$as_echo_n "checking for ld used by $CC... " >&6; } 4829 case $host in 4830 *-*-mingw*) 4831 # gcc leaves a trailing carriage return which upsets mingw 4832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4833 *) 4834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4835 esac 4836 case $ac_prog in 4837 # Accept absolute paths. 4838 [\\/]* | ?:[\\/]*) 4839 re_direlt='/[^/][^/]*/\.\./' 4840 # Canonicalize the pathname of ld 4841 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4842 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4843 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4844 done 4845 test -z "$LD" && LD="$ac_prog" 4846 ;; 4847 "") 4848 # If it fails, then pretend we aren't using GCC. 4849 ac_prog=ld 4850 ;; 4851 *) 4852 # If it is relative, then search for the first ld in PATH. 4853 with_gnu_ld=unknown 4854 ;; 4855 esac 4856elif test "$with_gnu_ld" = yes; then 4857 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4858$as_echo_n "checking for GNU ld... " >&6; } 4859else 4860 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4861$as_echo_n "checking for non-GNU ld... " >&6; } 4862fi 4863if test "${lt_cv_path_LD+set}" = set; then 4864 $as_echo_n "(cached) " >&6 4865else 4866 if test -z "$LD"; then 4867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4868 for ac_dir in $PATH; do 4869 IFS="$lt_save_ifs" 4870 test -z "$ac_dir" && ac_dir=. 4871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4872 lt_cv_path_LD="$ac_dir/$ac_prog" 4873 # Check to see if the program is GNU ld. I'd rather use --version, 4874 # but apparently some variants of GNU ld only accept -v. 4875 # Break only if it was the GNU/non-GNU ld that we prefer. 4876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4877 *GNU* | *'with BFD'*) 4878 test "$with_gnu_ld" != no && break 4879 ;; 4880 *) 4881 test "$with_gnu_ld" != yes && break 4882 ;; 4883 esac 4884 fi 4885 done 4886 IFS="$lt_save_ifs" 4887else 4888 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4889fi 4890fi 4891 4892LD="$lt_cv_path_LD" 4893if test -n "$LD"; then 4894 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4895$as_echo "$LD" >&6; } 4896else 4897 { $as_echo "$as_me:$LINENO: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4901$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4902 { (exit 1); exit 1; }; } 4903{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4904$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4905if test "${lt_cv_prog_gnu_ld+set}" = set; then 4906 $as_echo_n "(cached) " >&6 4907else 4908 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4909case `$LD -v 2>&1 </dev/null` in 4910*GNU* | *'with BFD'*) 4911 lt_cv_prog_gnu_ld=yes 4912 ;; 4913*) 4914 lt_cv_prog_gnu_ld=no 4915 ;; 4916esac 4917fi 4918{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4919$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4920with_gnu_ld=$lt_cv_prog_gnu_ld 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4931$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4932if test "${lt_cv_path_NM+set}" = set; then 4933 $as_echo_n "(cached) " >&6 4934else 4935 if test -n "$NM"; then 4936 # Let the user override the test. 4937 lt_cv_path_NM="$NM" 4938else 4939 lt_nm_to_check="${ac_tool_prefix}nm" 4940 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4941 lt_nm_to_check="$lt_nm_to_check nm" 4942 fi 4943 for lt_tmp_nm in $lt_nm_to_check; do 4944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4945 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4946 IFS="$lt_save_ifs" 4947 test -z "$ac_dir" && ac_dir=. 4948 tmp_nm="$ac_dir/$lt_tmp_nm" 4949 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4950 # Check to see if the nm accepts a BSD-compat flag. 4951 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4952 # nm: unknown option "B" ignored 4953 # Tru64's nm complains that /dev/null is an invalid object file 4954 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4955 */dev/null* | *'Invalid file or object type'*) 4956 lt_cv_path_NM="$tmp_nm -B" 4957 break 4958 ;; 4959 *) 4960 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4961 */dev/null*) 4962 lt_cv_path_NM="$tmp_nm -p" 4963 break 4964 ;; 4965 *) 4966 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4967 continue # so that we can try to find one that supports BSD flags 4968 ;; 4969 esac 4970 ;; 4971 esac 4972 fi 4973 done 4974 IFS="$lt_save_ifs" 4975 done 4976 : ${lt_cv_path_NM=no} 4977fi 4978fi 4979{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4980$as_echo "$lt_cv_path_NM" >&6; } 4981if test "$lt_cv_path_NM" != "no"; then 4982 NM="$lt_cv_path_NM" 4983else 4984 # Didn't find any BSD compatible name lister, look for dumpbin. 4985 if test -n "$ac_tool_prefix"; then 4986 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4987 do 4988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4989set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4991$as_echo_n "checking for $ac_word... " >&6; } 4992if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4993 $as_echo_n "(cached) " >&6 4994else 4995 if test -n "$DUMPBIN"; then 4996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4997else 4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4999for as_dir in $PATH 5000do 5001 IFS=$as_save_IFS 5002 test -z "$as_dir" && as_dir=. 5003 for ac_exec_ext in '' $ac_executable_extensions; do 5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5007 break 2 5008 fi 5009done 5010done 5011IFS=$as_save_IFS 5012 5013fi 5014fi 5015DUMPBIN=$ac_cv_prog_DUMPBIN 5016if test -n "$DUMPBIN"; then 5017 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5018$as_echo "$DUMPBIN" >&6; } 5019else 5020 { $as_echo "$as_me:$LINENO: result: no" >&5 5021$as_echo "no" >&6; } 5022fi 5023 5024 5025 test -n "$DUMPBIN" && break 5026 done 5027fi 5028if test -z "$DUMPBIN"; then 5029 ac_ct_DUMPBIN=$DUMPBIN 5030 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5031do 5032 # Extract the first word of "$ac_prog", so it can be a program name with args. 5033set dummy $ac_prog; ac_word=$2 5034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5035$as_echo_n "checking for $ac_word... " >&6; } 5036if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5037 $as_echo_n "(cached) " >&6 5038else 5039 if test -n "$ac_ct_DUMPBIN"; then 5040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5041else 5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5043for as_dir in $PATH 5044do 5045 IFS=$as_save_IFS 5046 test -z "$as_dir" && as_dir=. 5047 for ac_exec_ext in '' $ac_executable_extensions; do 5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5051 break 2 5052 fi 5053done 5054done 5055IFS=$as_save_IFS 5056 5057fi 5058fi 5059ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5060if test -n "$ac_ct_DUMPBIN"; then 5061 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5062$as_echo "$ac_ct_DUMPBIN" >&6; } 5063else 5064 { $as_echo "$as_me:$LINENO: result: no" >&5 5065$as_echo "no" >&6; } 5066fi 5067 5068 5069 test -n "$ac_ct_DUMPBIN" && break 5070done 5071 5072 if test "x$ac_ct_DUMPBIN" = x; then 5073 DUMPBIN=":" 5074 else 5075 case $cross_compiling:$ac_tool_warned in 5076yes:) 5077{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5079ac_tool_warned=yes ;; 5080esac 5081 DUMPBIN=$ac_ct_DUMPBIN 5082 fi 5083fi 5084 5085 5086 if test "$DUMPBIN" != ":"; then 5087 NM="$DUMPBIN" 5088 fi 5089fi 5090test -z "$NM" && NM=nm 5091 5092 5093 5094 5095 5096 5097{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5098$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5099if test "${lt_cv_nm_interface+set}" = set; then 5100 $as_echo_n "(cached) " >&6 5101else 5102 lt_cv_nm_interface="BSD nm" 5103 echo "int some_variable = 0;" > conftest.$ac_ext 5104 (eval echo "\"\$as_me:5104: $ac_compile\"" >&5) 5105 (eval "$ac_compile" 2>conftest.err) 5106 cat conftest.err >&5 5107 (eval echo "\"\$as_me:5107: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5108 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5109 cat conftest.err >&5 5110 (eval echo "\"\$as_me:5110: output\"" >&5) 5111 cat conftest.out >&5 5112 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5113 lt_cv_nm_interface="MS dumpbin" 5114 fi 5115 rm -f conftest* 5116fi 5117{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5118$as_echo "$lt_cv_nm_interface" >&6; } 5119 5120{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5121$as_echo_n "checking whether ln -s works... " >&6; } 5122LN_S=$as_ln_s 5123if test "$LN_S" = "ln -s"; then 5124 { $as_echo "$as_me:$LINENO: result: yes" >&5 5125$as_echo "yes" >&6; } 5126else 5127 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5128$as_echo "no, using $LN_S" >&6; } 5129fi 5130 5131# find the maximum length of command line arguments 5132{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5133$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5134if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5135 $as_echo_n "(cached) " >&6 5136else 5137 i=0 5138 teststring="ABCD" 5139 5140 case $build_os in 5141 msdosdjgpp*) 5142 # On DJGPP, this test can blow up pretty badly due to problems in libc 5143 # (any single argument exceeding 2000 bytes causes a buffer overrun 5144 # during glob expansion). Even if it were fixed, the result of this 5145 # check would be larger than it should be. 5146 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5147 ;; 5148 5149 gnu*) 5150 # Under GNU Hurd, this test is not required because there is 5151 # no limit to the length of command line arguments. 5152 # Libtool will interpret -1 as no limit whatsoever 5153 lt_cv_sys_max_cmd_len=-1; 5154 ;; 5155 5156 cygwin* | mingw* | cegcc*) 5157 # On Win9x/ME, this test blows up -- it succeeds, but takes 5158 # about 5 minutes as the teststring grows exponentially. 5159 # Worse, since 9x/ME are not pre-emptively multitasking, 5160 # you end up with a "frozen" computer, even though with patience 5161 # the test eventually succeeds (with a max line length of 256k). 5162 # Instead, let's just punt: use the minimum linelength reported by 5163 # all of the supported platforms: 8192 (on NT/2K/XP). 5164 lt_cv_sys_max_cmd_len=8192; 5165 ;; 5166 5167 amigaos*) 5168 # On AmigaOS with pdksh, this test takes hours, literally. 5169 # So we just punt and use a minimum line length of 8192. 5170 lt_cv_sys_max_cmd_len=8192; 5171 ;; 5172 5173 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5174 # This has been around since 386BSD, at least. Likely further. 5175 if test -x /sbin/sysctl; then 5176 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5177 elif test -x /usr/sbin/sysctl; then 5178 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5179 else 5180 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5181 fi 5182 # And add a safety zone 5183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5185 ;; 5186 5187 interix*) 5188 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5189 lt_cv_sys_max_cmd_len=196608 5190 ;; 5191 5192 osf*) 5193 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5194 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5195 # nice to cause kernel panics so lets avoid the loop below. 5196 # First set a reasonable default. 5197 lt_cv_sys_max_cmd_len=16384 5198 # 5199 if test -x /sbin/sysconfig; then 5200 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5201 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5202 esac 5203 fi 5204 ;; 5205 sco3.2v5*) 5206 lt_cv_sys_max_cmd_len=102400 5207 ;; 5208 sysv5* | sco5v6* | sysv4.2uw2*) 5209 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5210 if test -n "$kargmax"; then 5211 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5212 else 5213 lt_cv_sys_max_cmd_len=32768 5214 fi 5215 ;; 5216 *) 5217 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5218 if test -n "$lt_cv_sys_max_cmd_len"; then 5219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5221 else 5222 # Make teststring a little bigger before we do anything with it. 5223 # a 1K string should be a reasonable start. 5224 for i in 1 2 3 4 5 6 7 8 ; do 5225 teststring=$teststring$teststring 5226 done 5227 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5228 # If test is not a shell built-in, we'll probably end up computing a 5229 # maximum length that is only half of the actual maximum length, but 5230 # we can't tell. 5231 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5232 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5233 test $i != 17 # 1/2 MB should be enough 5234 do 5235 i=`expr $i + 1` 5236 teststring=$teststring$teststring 5237 done 5238 # Only check the string length outside the loop. 5239 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5240 teststring= 5241 # Add a significant safety factor because C++ compilers can tack on 5242 # massive amounts of additional arguments before passing them to the 5243 # linker. It appears as though 1/2 is a usable value. 5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5245 fi 5246 ;; 5247 esac 5248 5249fi 5250 5251if test -n $lt_cv_sys_max_cmd_len ; then 5252 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5253$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5254else 5255 { $as_echo "$as_me:$LINENO: result: none" >&5 5256$as_echo "none" >&6; } 5257fi 5258max_cmd_len=$lt_cv_sys_max_cmd_len 5259 5260 5261 5262 5263 5264 5265: ${CP="cp -f"} 5266: ${MV="mv -f"} 5267: ${RM="rm -f"} 5268 5269{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5270$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5271# Try some XSI features 5272xsi_shell=no 5273( _lt_dummy="a/b/c" 5274 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5275 = c,a/b,, \ 5276 && eval 'test $(( 1 + 1 )) -eq 2 \ 5277 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5278 && xsi_shell=yes 5279{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5280$as_echo "$xsi_shell" >&6; } 5281 5282 5283{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5284$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5285lt_shell_append=no 5286( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5287 >/dev/null 2>&1 \ 5288 && lt_shell_append=yes 5289{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5290$as_echo "$lt_shell_append" >&6; } 5291 5292 5293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5294 lt_unset=unset 5295else 5296 lt_unset=false 5297fi 5298 5299 5300 5301 5302 5303# test EBCDIC or ASCII 5304case `echo X|tr X '\101'` in 5305 A) # ASCII based system 5306 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5307 lt_SP2NL='tr \040 \012' 5308 lt_NL2SP='tr \015\012 \040\040' 5309 ;; 5310 *) # EBCDIC based system 5311 lt_SP2NL='tr \100 \n' 5312 lt_NL2SP='tr \r\n \100\100' 5313 ;; 5314esac 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5325$as_echo_n "checking for $LD option to reload object files... " >&6; } 5326if test "${lt_cv_ld_reload_flag+set}" = set; then 5327 $as_echo_n "(cached) " >&6 5328else 5329 lt_cv_ld_reload_flag='-r' 5330fi 5331{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5332$as_echo "$lt_cv_ld_reload_flag" >&6; } 5333reload_flag=$lt_cv_ld_reload_flag 5334case $reload_flag in 5335"" | " "*) ;; 5336*) reload_flag=" $reload_flag" ;; 5337esac 5338reload_cmds='$LD$reload_flag -o $output$reload_objs' 5339case $host_os in 5340 darwin*) 5341 if test "$GCC" = yes; then 5342 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5343 else 5344 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5345 fi 5346 ;; 5347esac 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357if test -n "$ac_tool_prefix"; then 5358 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5359set dummy ${ac_tool_prefix}objdump; ac_word=$2 5360{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5361$as_echo_n "checking for $ac_word... " >&6; } 5362if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5363 $as_echo_n "(cached) " >&6 5364else 5365 if test -n "$OBJDUMP"; then 5366 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5367else 5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH 5370do 5371 IFS=$as_save_IFS 5372 test -z "$as_dir" && as_dir=. 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5375 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379done 5380done 5381IFS=$as_save_IFS 5382 5383fi 5384fi 5385OBJDUMP=$ac_cv_prog_OBJDUMP 5386if test -n "$OBJDUMP"; then 5387 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5388$as_echo "$OBJDUMP" >&6; } 5389else 5390 { $as_echo "$as_me:$LINENO: result: no" >&5 5391$as_echo "no" >&6; } 5392fi 5393 5394 5395fi 5396if test -z "$ac_cv_prog_OBJDUMP"; then 5397 ac_ct_OBJDUMP=$OBJDUMP 5398 # Extract the first word of "objdump", so it can be a program name with args. 5399set dummy objdump; ac_word=$2 5400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5401$as_echo_n "checking for $ac_word... " >&6; } 5402if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5403 $as_echo_n "(cached) " >&6 5404else 5405 if test -n "$ac_ct_OBJDUMP"; then 5406 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5407else 5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5409for as_dir in $PATH 5410do 5411 IFS=$as_save_IFS 5412 test -z "$as_dir" && as_dir=. 5413 for ac_exec_ext in '' $ac_executable_extensions; do 5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5415 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5417 break 2 5418 fi 5419done 5420done 5421IFS=$as_save_IFS 5422 5423fi 5424fi 5425ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5426if test -n "$ac_ct_OBJDUMP"; then 5427 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5428$as_echo "$ac_ct_OBJDUMP" >&6; } 5429else 5430 { $as_echo "$as_me:$LINENO: result: no" >&5 5431$as_echo "no" >&6; } 5432fi 5433 5434 if test "x$ac_ct_OBJDUMP" = x; then 5435 OBJDUMP="false" 5436 else 5437 case $cross_compiling:$ac_tool_warned in 5438yes:) 5439{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5441ac_tool_warned=yes ;; 5442esac 5443 OBJDUMP=$ac_ct_OBJDUMP 5444 fi 5445else 5446 OBJDUMP="$ac_cv_prog_OBJDUMP" 5447fi 5448 5449test -z "$OBJDUMP" && OBJDUMP=objdump 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5460$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5461if test "${lt_cv_deplibs_check_method+set}" = set; then 5462 $as_echo_n "(cached) " >&6 5463else 5464 lt_cv_file_magic_cmd='$MAGIC_CMD' 5465lt_cv_file_magic_test_file= 5466lt_cv_deplibs_check_method='unknown' 5467# Need to set the preceding variable on all platforms that support 5468# interlibrary dependencies. 5469# 'none' -- dependencies not supported. 5470# `unknown' -- same as none, but documents that we really don't know. 5471# 'pass_all' -- all dependencies passed with no checks. 5472# 'test_compile' -- check by making test program. 5473# 'file_magic [[regex]]' -- check by looking for files in library path 5474# which responds to the $file_magic_cmd with a given extended regex. 5475# If you have `file' or equivalent on your system and you're not sure 5476# whether `pass_all' will *always* work, you probably want this one. 5477 5478case $host_os in 5479aix[4-9]*) 5480 lt_cv_deplibs_check_method=pass_all 5481 ;; 5482 5483beos*) 5484 lt_cv_deplibs_check_method=pass_all 5485 ;; 5486 5487bsdi[45]*) 5488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5489 lt_cv_file_magic_cmd='/usr/bin/file -L' 5490 lt_cv_file_magic_test_file=/shlib/libc.so 5491 ;; 5492 5493cygwin*) 5494 # func_win32_libid is a shell function defined in ltmain.sh 5495 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5496 lt_cv_file_magic_cmd='func_win32_libid' 5497 ;; 5498 5499mingw* | pw32*) 5500 # Base MSYS/MinGW do not provide the 'file' command needed by 5501 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5502 # unless we find 'file', for example because we are cross-compiling. 5503 if ( file / ) >/dev/null 2>&1; then 5504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5505 lt_cv_file_magic_cmd='func_win32_libid' 5506 else 5507 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5508 lt_cv_file_magic_cmd='$OBJDUMP -f' 5509 fi 5510 ;; 5511 5512cegcc) 5513 # use the weaker test based on 'objdump'. See mingw*. 5514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5515 lt_cv_file_magic_cmd='$OBJDUMP -f' 5516 ;; 5517 5518darwin* | rhapsody*) 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521 5522freebsd* | dragonfly*) 5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5524 case $host_cpu in 5525 i*86 ) 5526 # Not sure whether the presence of OpenBSD here was a mistake. 5527 # Let's accept both of them until this is cleared up. 5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5529 lt_cv_file_magic_cmd=/usr/bin/file 5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5531 ;; 5532 esac 5533 else 5534 lt_cv_deplibs_check_method=pass_all 5535 fi 5536 ;; 5537 5538gnu*) 5539 lt_cv_deplibs_check_method=pass_all 5540 ;; 5541 5542hpux10.20* | hpux11*) 5543 lt_cv_file_magic_cmd=/usr/bin/file 5544 case $host_cpu in 5545 ia64*) 5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5548 ;; 5549 hppa*64*) 5550 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]' 5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5552 ;; 5553 *) 5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5556 ;; 5557 esac 5558 ;; 5559 5560interix[3-9]*) 5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5563 ;; 5564 5565irix5* | irix6* | nonstopux*) 5566 case $LD in 5567 *-32|*"-32 ") libmagic=32-bit;; 5568 *-n32|*"-n32 ") libmagic=N32;; 5569 *-64|*"-64 ") libmagic=64-bit;; 5570 *) libmagic=never-match;; 5571 esac 5572 lt_cv_deplibs_check_method=pass_all 5573 ;; 5574 5575# This must be Linux ELF. 5576linux* | k*bsd*-gnu) 5577 lt_cv_deplibs_check_method=pass_all 5578 ;; 5579 5580netbsd*) 5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5583 else 5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5585 fi 5586 ;; 5587 5588newos6*) 5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5590 lt_cv_file_magic_cmd=/usr/bin/file 5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5592 ;; 5593 5594*nto* | *qnx*) 5595 lt_cv_deplibs_check_method=pass_all 5596 ;; 5597 5598openbsd*) 5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5601 else 5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5603 fi 5604 ;; 5605 5606osf3* | osf4* | osf5*) 5607 lt_cv_deplibs_check_method=pass_all 5608 ;; 5609 5610rdos*) 5611 lt_cv_deplibs_check_method=pass_all 5612 ;; 5613 5614solaris*) 5615 lt_cv_deplibs_check_method=pass_all 5616 ;; 5617 5618sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5619 lt_cv_deplibs_check_method=pass_all 5620 ;; 5621 5622sysv4 | sysv4.3*) 5623 case $host_vendor in 5624 motorola) 5625 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]' 5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5627 ;; 5628 ncr) 5629 lt_cv_deplibs_check_method=pass_all 5630 ;; 5631 sequent) 5632 lt_cv_file_magic_cmd='/bin/file' 5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5634 ;; 5635 sni) 5636 lt_cv_file_magic_cmd='/bin/file' 5637 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5638 lt_cv_file_magic_test_file=/lib/libc.so 5639 ;; 5640 siemens) 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 pc) 5644 lt_cv_deplibs_check_method=pass_all 5645 ;; 5646 esac 5647 ;; 5648 5649tpf*) 5650 lt_cv_deplibs_check_method=pass_all 5651 ;; 5652esac 5653 5654fi 5655{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5656$as_echo "$lt_cv_deplibs_check_method" >&6; } 5657file_magic_cmd=$lt_cv_file_magic_cmd 5658deplibs_check_method=$lt_cv_deplibs_check_method 5659test -z "$deplibs_check_method" && deplibs_check_method=unknown 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672if test -n "$ac_tool_prefix"; then 5673 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5674set dummy ${ac_tool_prefix}ar; ac_word=$2 5675{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5676$as_echo_n "checking for $ac_word... " >&6; } 5677if test "${ac_cv_prog_AR+set}" = set; then 5678 $as_echo_n "(cached) " >&6 5679else 5680 if test -n "$AR"; then 5681 ac_cv_prog_AR="$AR" # Let the user override the test. 5682else 5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5684for as_dir in $PATH 5685do 5686 IFS=$as_save_IFS 5687 test -z "$as_dir" && as_dir=. 5688 for ac_exec_ext in '' $ac_executable_extensions; do 5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5690 ac_cv_prog_AR="${ac_tool_prefix}ar" 5691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5692 break 2 5693 fi 5694done 5695done 5696IFS=$as_save_IFS 5697 5698fi 5699fi 5700AR=$ac_cv_prog_AR 5701if test -n "$AR"; then 5702 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5703$as_echo "$AR" >&6; } 5704else 5705 { $as_echo "$as_me:$LINENO: result: no" >&5 5706$as_echo "no" >&6; } 5707fi 5708 5709 5710fi 5711if test -z "$ac_cv_prog_AR"; then 5712 ac_ct_AR=$AR 5713 # Extract the first word of "ar", so it can be a program name with args. 5714set dummy ar; ac_word=$2 5715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5716$as_echo_n "checking for $ac_word... " >&6; } 5717if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5718 $as_echo_n "(cached) " >&6 5719else 5720 if test -n "$ac_ct_AR"; then 5721 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5722else 5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5730 ac_cv_prog_ac_ct_AR="ar" 5731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734done 5735done 5736IFS=$as_save_IFS 5737 5738fi 5739fi 5740ac_ct_AR=$ac_cv_prog_ac_ct_AR 5741if test -n "$ac_ct_AR"; then 5742 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5743$as_echo "$ac_ct_AR" >&6; } 5744else 5745 { $as_echo "$as_me:$LINENO: result: no" >&5 5746$as_echo "no" >&6; } 5747fi 5748 5749 if test "x$ac_ct_AR" = x; then 5750 AR="false" 5751 else 5752 case $cross_compiling:$ac_tool_warned in 5753yes:) 5754{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5756ac_tool_warned=yes ;; 5757esac 5758 AR=$ac_ct_AR 5759 fi 5760else 5761 AR="$ac_cv_prog_AR" 5762fi 5763 5764test -z "$AR" && AR=ar 5765test -z "$AR_FLAGS" && AR_FLAGS=cru 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777if test -n "$ac_tool_prefix"; then 5778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5779set dummy ${ac_tool_prefix}strip; ac_word=$2 5780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5781$as_echo_n "checking for $ac_word... " >&6; } 5782if test "${ac_cv_prog_STRIP+set}" = set; then 5783 $as_echo_n "(cached) " >&6 5784else 5785 if test -n "$STRIP"; then 5786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5787else 5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5789for as_dir in $PATH 5790do 5791 IFS=$as_save_IFS 5792 test -z "$as_dir" && as_dir=. 5793 for ac_exec_ext in '' $ac_executable_extensions; do 5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5797 break 2 5798 fi 5799done 5800done 5801IFS=$as_save_IFS 5802 5803fi 5804fi 5805STRIP=$ac_cv_prog_STRIP 5806if test -n "$STRIP"; then 5807 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5808$as_echo "$STRIP" >&6; } 5809else 5810 { $as_echo "$as_me:$LINENO: result: no" >&5 5811$as_echo "no" >&6; } 5812fi 5813 5814 5815fi 5816if test -z "$ac_cv_prog_STRIP"; then 5817 ac_ct_STRIP=$STRIP 5818 # Extract the first word of "strip", so it can be a program name with args. 5819set dummy strip; ac_word=$2 5820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5821$as_echo_n "checking for $ac_word... " >&6; } 5822if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5823 $as_echo_n "(cached) " >&6 5824else 5825 if test -n "$ac_ct_STRIP"; then 5826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5827else 5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5829for as_dir in $PATH 5830do 5831 IFS=$as_save_IFS 5832 test -z "$as_dir" && as_dir=. 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5835 ac_cv_prog_ac_ct_STRIP="strip" 5836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839done 5840done 5841IFS=$as_save_IFS 5842 5843fi 5844fi 5845ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5846if test -n "$ac_ct_STRIP"; then 5847 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5848$as_echo "$ac_ct_STRIP" >&6; } 5849else 5850 { $as_echo "$as_me:$LINENO: result: no" >&5 5851$as_echo "no" >&6; } 5852fi 5853 5854 if test "x$ac_ct_STRIP" = x; then 5855 STRIP=":" 5856 else 5857 case $cross_compiling:$ac_tool_warned in 5858yes:) 5859{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5861ac_tool_warned=yes ;; 5862esac 5863 STRIP=$ac_ct_STRIP 5864 fi 5865else 5866 STRIP="$ac_cv_prog_STRIP" 5867fi 5868 5869test -z "$STRIP" && STRIP=: 5870 5871 5872 5873 5874 5875 5876if test -n "$ac_tool_prefix"; then 5877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5878set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5880$as_echo_n "checking for $ac_word... " >&6; } 5881if test "${ac_cv_prog_RANLIB+set}" = set; then 5882 $as_echo_n "(cached) " >&6 5883else 5884 if test -n "$RANLIB"; then 5885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899done 5900IFS=$as_save_IFS 5901 5902fi 5903fi 5904RANLIB=$ac_cv_prog_RANLIB 5905if test -n "$RANLIB"; then 5906 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5907$as_echo "$RANLIB" >&6; } 5908else 5909 { $as_echo "$as_me:$LINENO: result: no" >&5 5910$as_echo "no" >&6; } 5911fi 5912 5913 5914fi 5915if test -z "$ac_cv_prog_RANLIB"; then 5916 ac_ct_RANLIB=$RANLIB 5917 # Extract the first word of "ranlib", so it can be a program name with args. 5918set dummy ranlib; ac_word=$2 5919{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$ac_ct_RANLIB"; then 5925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5934 ac_cv_prog_ac_ct_RANLIB="ranlib" 5935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5945if test -n "$ac_ct_RANLIB"; then 5946 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5947$as_echo "$ac_ct_RANLIB" >&6; } 5948else 5949 { $as_echo "$as_me:$LINENO: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 if test "x$ac_ct_RANLIB" = x; then 5954 RANLIB=":" 5955 else 5956 case $cross_compiling:$ac_tool_warned in 5957yes:) 5958{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5960ac_tool_warned=yes ;; 5961esac 5962 RANLIB=$ac_ct_RANLIB 5963 fi 5964else 5965 RANLIB="$ac_cv_prog_RANLIB" 5966fi 5967 5968test -z "$RANLIB" && RANLIB=: 5969 5970 5971 5972 5973 5974 5975# Determine commands to create old-style static archives. 5976old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5977old_postinstall_cmds='chmod 644 $oldlib' 5978old_postuninstall_cmds= 5979 5980if test -n "$RANLIB"; then 5981 case $host_os in 5982 openbsd*) 5983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5984 ;; 5985 *) 5986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5987 ;; 5988 esac 5989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5990fi 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025# If no C compiler was specified, use CC. 6026LTCC=${LTCC-"$CC"} 6027 6028# If no C compiler flags were specified, use CFLAGS. 6029LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6030 6031# Allow CC to be a program name with arguments. 6032compiler=$CC 6033 6034 6035# Check for command to grab the raw symbol name followed by C symbol from nm. 6036{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6037$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6038if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6039 $as_echo_n "(cached) " >&6 6040else 6041 6042# These are sane defaults that work on at least a few old systems. 6043# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6044 6045# Character class describing NM global symbol codes. 6046symcode='[BCDEGRST]' 6047 6048# Regexp to match symbols that can be accessed directly from C. 6049sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6050 6051# Define system-specific variables. 6052case $host_os in 6053aix*) 6054 symcode='[BCDT]' 6055 ;; 6056cygwin* | mingw* | pw32* | cegcc*) 6057 symcode='[ABCDGISTW]' 6058 ;; 6059hpux*) 6060 if test "$host_cpu" = ia64; then 6061 symcode='[ABCDEGRST]' 6062 fi 6063 ;; 6064irix* | nonstopux*) 6065 symcode='[BCDEGRST]' 6066 ;; 6067osf*) 6068 symcode='[BCDEGQRST]' 6069 ;; 6070solaris*) 6071 symcode='[BDRT]' 6072 ;; 6073sco3.2v5*) 6074 symcode='[DT]' 6075 ;; 6076sysv4.2uw2*) 6077 symcode='[DT]' 6078 ;; 6079sysv5* | sco5v6* | unixware* | OpenUNIX*) 6080 symcode='[ABDT]' 6081 ;; 6082sysv4) 6083 symcode='[DFNSTU]' 6084 ;; 6085esac 6086 6087# If we're using GNU nm, then use its standard symbol codes. 6088case `$NM -V 2>&1` in 6089*GNU* | *'with BFD'*) 6090 symcode='[ABCDGIRSTW]' ;; 6091esac 6092 6093# Transform an extracted symbol line into a proper C declaration. 6094# Some systems (esp. on ia64) link data and code symbols differently, 6095# so use this general approach. 6096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6097 6098# Transform an extracted symbol line into symbol name and symbol address 6099lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6100lt_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'" 6101 6102# Handle CRLF in mingw tool chain 6103opt_cr= 6104case $build_os in 6105mingw*) 6106 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6107 ;; 6108esac 6109 6110# Try without a prefix underscore, then with it. 6111for ac_symprfx in "" "_"; do 6112 6113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6114 symxfrm="\\1 $ac_symprfx\\2 \\2" 6115 6116 # Write the raw and C identifiers. 6117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6118 # Fake it for dumpbin and say T for any non-static function 6119 # and D for any global variable. 6120 # Also find C++ and __fastcall symbols from MSVC++, 6121 # which start with @ or ?. 6122 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6123" {last_section=section; section=\$ 3};"\ 6124" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6125" \$ 0!~/External *\|/{next};"\ 6126" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6127" {if(hide[section]) next};"\ 6128" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6129" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6130" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6131" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6132" ' prfx=^$ac_symprfx" 6133 else 6134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6135 fi 6136 6137 # Check to see that the pipe works correctly. 6138 pipe_works=no 6139 6140 rm -f conftest* 6141 cat > conftest.$ac_ext <<_LT_EOF 6142#ifdef __cplusplus 6143extern "C" { 6144#endif 6145char nm_test_var; 6146void nm_test_func(void); 6147void nm_test_func(void){} 6148#ifdef __cplusplus 6149} 6150#endif 6151int main(){nm_test_var='a';nm_test_func();return(0);} 6152_LT_EOF 6153 6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6155 (eval $ac_compile) 2>&5 6156 ac_status=$? 6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); }; then 6159 # Now try to grab the symbols. 6160 nlist=conftest.nm 6161 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6162 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6163 ac_status=$? 6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6165 (exit $ac_status); } && test -s "$nlist"; then 6166 # Try sorting and uniquifying the output. 6167 if sort "$nlist" | uniq > "$nlist"T; then 6168 mv -f "$nlist"T "$nlist" 6169 else 6170 rm -f "$nlist"T 6171 fi 6172 6173 # Make sure that we snagged all the symbols we need. 6174 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6175 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6176 cat <<_LT_EOF > conftest.$ac_ext 6177#ifdef __cplusplus 6178extern "C" { 6179#endif 6180 6181_LT_EOF 6182 # Now generate the symbol file. 6183 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6184 6185 cat <<_LT_EOF >> conftest.$ac_ext 6186 6187/* The mapping between symbol names and symbols. */ 6188const struct { 6189 const char *name; 6190 void *address; 6191} 6192lt__PROGRAM__LTX_preloaded_symbols[] = 6193{ 6194 { "@PROGRAM@", (void *) 0 }, 6195_LT_EOF 6196 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6197 cat <<\_LT_EOF >> conftest.$ac_ext 6198 {0, (void *) 0} 6199}; 6200 6201/* This works around a problem in FreeBSD linker */ 6202#ifdef FREEBSD_WORKAROUND 6203static const void *lt_preloaded_setup() { 6204 return lt__PROGRAM__LTX_preloaded_symbols; 6205} 6206#endif 6207 6208#ifdef __cplusplus 6209} 6210#endif 6211_LT_EOF 6212 # Now try linking the two files. 6213 mv conftest.$ac_objext conftstm.$ac_objext 6214 lt_save_LIBS="$LIBS" 6215 lt_save_CFLAGS="$CFLAGS" 6216 LIBS="conftstm.$ac_objext" 6217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6219 (eval $ac_link) 2>&5 6220 ac_status=$? 6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6222 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6223 pipe_works=yes 6224 fi 6225 LIBS="$lt_save_LIBS" 6226 CFLAGS="$lt_save_CFLAGS" 6227 else 6228 echo "cannot find nm_test_func in $nlist" >&5 6229 fi 6230 else 6231 echo "cannot find nm_test_var in $nlist" >&5 6232 fi 6233 else 6234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6235 fi 6236 else 6237 echo "$progname: failed program was:" >&5 6238 cat conftest.$ac_ext >&5 6239 fi 6240 rm -rf conftest* conftst* 6241 6242 # Do not use the global_symbol_pipe unless it works. 6243 if test "$pipe_works" = yes; then 6244 break 6245 else 6246 lt_cv_sys_global_symbol_pipe= 6247 fi 6248done 6249 6250fi 6251 6252if test -z "$lt_cv_sys_global_symbol_pipe"; then 6253 lt_cv_sys_global_symbol_to_cdecl= 6254fi 6255if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6256 { $as_echo "$as_me:$LINENO: result: failed" >&5 6257$as_echo "failed" >&6; } 6258else 6259 { $as_echo "$as_me:$LINENO: result: ok" >&5 6260$as_echo "ok" >&6; } 6261fi 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285# Check whether --enable-libtool-lock was given. 6286if test "${enable_libtool_lock+set}" = set; then 6287 enableval=$enable_libtool_lock; 6288fi 6289 6290test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6291 6292# Some flags need to be propagated to the compiler or linker for good 6293# libtool support. 6294case $host in 6295ia64-*-hpux*) 6296 # Find out which ABI we are using. 6297 echo 'int i;' > conftest.$ac_ext 6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6299 (eval $ac_compile) 2>&5 6300 ac_status=$? 6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6302 (exit $ac_status); }; then 6303 case `/usr/bin/file conftest.$ac_objext` in 6304 *ELF-32*) 6305 HPUX_IA64_MODE="32" 6306 ;; 6307 *ELF-64*) 6308 HPUX_IA64_MODE="64" 6309 ;; 6310 esac 6311 fi 6312 rm -rf conftest* 6313 ;; 6314*-*-irix6*) 6315 # Find out which ABI we are using. 6316 echo '#line 6316 "configure"' > conftest.$ac_ext 6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6318 (eval $ac_compile) 2>&5 6319 ac_status=$? 6320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6321 (exit $ac_status); }; then 6322 if test "$lt_cv_prog_gnu_ld" = yes; then 6323 case `/usr/bin/file conftest.$ac_objext` in 6324 *32-bit*) 6325 LD="${LD-ld} -melf32bsmip" 6326 ;; 6327 *N32*) 6328 LD="${LD-ld} -melf32bmipn32" 6329 ;; 6330 *64-bit*) 6331 LD="${LD-ld} -melf64bmip" 6332 ;; 6333 esac 6334 else 6335 case `/usr/bin/file conftest.$ac_objext` in 6336 *32-bit*) 6337 LD="${LD-ld} -32" 6338 ;; 6339 *N32*) 6340 LD="${LD-ld} -n32" 6341 ;; 6342 *64-bit*) 6343 LD="${LD-ld} -64" 6344 ;; 6345 esac 6346 fi 6347 fi 6348 rm -rf conftest* 6349 ;; 6350 6351x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6352s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6353 # Find out which ABI we are using. 6354 echo 'int i;' > conftest.$ac_ext 6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6356 (eval $ac_compile) 2>&5 6357 ac_status=$? 6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6359 (exit $ac_status); }; then 6360 case `/usr/bin/file conftest.o` in 6361 *32-bit*) 6362 case $host in 6363 x86_64-*kfreebsd*-gnu) 6364 LD="${LD-ld} -m elf_i386_fbsd" 6365 ;; 6366 x86_64-*linux*) 6367 LD="${LD-ld} -m elf_i386" 6368 ;; 6369 ppc64-*linux*|powerpc64-*linux*) 6370 LD="${LD-ld} -m elf32ppclinux" 6371 ;; 6372 s390x-*linux*) 6373 LD="${LD-ld} -m elf_s390" 6374 ;; 6375 sparc64-*linux*) 6376 LD="${LD-ld} -m elf32_sparc" 6377 ;; 6378 esac 6379 ;; 6380 *64-bit*) 6381 case $host in 6382 x86_64-*kfreebsd*-gnu) 6383 LD="${LD-ld} -m elf_x86_64_fbsd" 6384 ;; 6385 x86_64-*linux*) 6386 LD="${LD-ld} -m elf_x86_64" 6387 ;; 6388 ppc*-*linux*|powerpc*-*linux*) 6389 LD="${LD-ld} -m elf64ppc" 6390 ;; 6391 s390*-*linux*|s390*-*tpf*) 6392 LD="${LD-ld} -m elf64_s390" 6393 ;; 6394 sparc*-*linux*) 6395 LD="${LD-ld} -m elf64_sparc" 6396 ;; 6397 esac 6398 ;; 6399 esac 6400 fi 6401 rm -rf conftest* 6402 ;; 6403 6404*-*-sco3.2v5*) 6405 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6406 SAVE_CFLAGS="$CFLAGS" 6407 CFLAGS="$CFLAGS -belf" 6408 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6409$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6410if test "${lt_cv_cc_needs_belf+set}" = set; then 6411 $as_echo_n "(cached) " >&6 6412else 6413 ac_ext=c 6414ac_cpp='$CPP $CPPFLAGS' 6415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6417ac_compiler_gnu=$ac_cv_c_compiler_gnu 6418 6419 cat >conftest.$ac_ext <<_ACEOF 6420/* confdefs.h. */ 6421_ACEOF 6422cat confdefs.h >>conftest.$ac_ext 6423cat >>conftest.$ac_ext <<_ACEOF 6424/* end confdefs.h. */ 6425 6426int 6427main () 6428{ 6429 6430 ; 6431 return 0; 6432} 6433_ACEOF 6434rm -f conftest.$ac_objext conftest$ac_exeext 6435if { (ac_try="$ac_link" 6436case "(($ac_try" in 6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6438 *) ac_try_echo=$ac_try;; 6439esac 6440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6441$as_echo "$ac_try_echo") >&5 6442 (eval "$ac_link") 2>conftest.er1 6443 ac_status=$? 6444 grep -v '^ *+' conftest.er1 >conftest.err 6445 rm -f conftest.er1 6446 cat conftest.err >&5 6447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6448 (exit $ac_status); } && { 6449 test -z "$ac_c_werror_flag" || 6450 test ! -s conftest.err 6451 } && test -s conftest$ac_exeext && { 6452 test "$cross_compiling" = yes || 6453 $as_test_x conftest$ac_exeext 6454 }; then 6455 lt_cv_cc_needs_belf=yes 6456else 6457 $as_echo "$as_me: failed program was:" >&5 6458sed 's/^/| /' conftest.$ac_ext >&5 6459 6460 lt_cv_cc_needs_belf=no 6461fi 6462 6463rm -rf conftest.dSYM 6464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6465 conftest$ac_exeext conftest.$ac_ext 6466 ac_ext=c 6467ac_cpp='$CPP $CPPFLAGS' 6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6470ac_compiler_gnu=$ac_cv_c_compiler_gnu 6471 6472fi 6473{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6474$as_echo "$lt_cv_cc_needs_belf" >&6; } 6475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6477 CFLAGS="$SAVE_CFLAGS" 6478 fi 6479 ;; 6480sparc*-*solaris*) 6481 # Find out which ABI we are using. 6482 echo 'int i;' > conftest.$ac_ext 6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6484 (eval $ac_compile) 2>&5 6485 ac_status=$? 6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6487 (exit $ac_status); }; then 6488 case `/usr/bin/file conftest.o` in 6489 *64-bit*) 6490 case $lt_cv_prog_gnu_ld in 6491 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6492 *) 6493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6494 LD="${LD-ld} -64" 6495 fi 6496 ;; 6497 esac 6498 ;; 6499 esac 6500 fi 6501 rm -rf conftest* 6502 ;; 6503esac 6504 6505need_locks="$enable_libtool_lock" 6506 6507 6508 case $host_os in 6509 rhapsody* | darwin*) 6510 if test -n "$ac_tool_prefix"; then 6511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6512set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$DSYMUTIL"; then 6519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538DSYMUTIL=$ac_cv_prog_DSYMUTIL 6539if test -n "$DSYMUTIL"; then 6540 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6541$as_echo "$DSYMUTIL" >&6; } 6542else 6543 { $as_echo "$as_me:$LINENO: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 6548fi 6549if test -z "$ac_cv_prog_DSYMUTIL"; then 6550 ac_ct_DSYMUTIL=$DSYMUTIL 6551 # Extract the first word of "dsymutil", so it can be a program name with args. 6552set dummy dsymutil; ac_word=$2 6553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6554$as_echo_n "checking for $ac_word... " >&6; } 6555if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6556 $as_echo_n "(cached) " >&6 6557else 6558 if test -n "$ac_ct_DSYMUTIL"; then 6559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573done 6574IFS=$as_save_IFS 6575 6576fi 6577fi 6578ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6579if test -n "$ac_ct_DSYMUTIL"; then 6580 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6581$as_echo "$ac_ct_DSYMUTIL" >&6; } 6582else 6583 { $as_echo "$as_me:$LINENO: result: no" >&5 6584$as_echo "no" >&6; } 6585fi 6586 6587 if test "x$ac_ct_DSYMUTIL" = x; then 6588 DSYMUTIL=":" 6589 else 6590 case $cross_compiling:$ac_tool_warned in 6591yes:) 6592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6594ac_tool_warned=yes ;; 6595esac 6596 DSYMUTIL=$ac_ct_DSYMUTIL 6597 fi 6598else 6599 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6600fi 6601 6602 if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if test "${ac_cv_prog_NMEDIT+set}" = set; then 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$NMEDIT"; then 6611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630NMEDIT=$ac_cv_prog_NMEDIT 6631if test -n "$NMEDIT"; then 6632 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6633$as_echo "$NMEDIT" >&6; } 6634else 6635 { $as_echo "$as_me:$LINENO: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 6640fi 6641if test -z "$ac_cv_prog_NMEDIT"; then 6642 ac_ct_NMEDIT=$NMEDIT 6643 # Extract the first word of "nmedit", so it can be a program name with args. 6644set dummy nmedit; ac_word=$2 6645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6646$as_echo_n "checking for $ac_word... " >&6; } 6647if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6648 $as_echo_n "(cached) " >&6 6649else 6650 if test -n "$ac_ct_NMEDIT"; then 6651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6652else 6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6660 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665done 6666IFS=$as_save_IFS 6667 6668fi 6669fi 6670ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6671if test -n "$ac_ct_NMEDIT"; then 6672 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6673$as_echo "$ac_ct_NMEDIT" >&6; } 6674else 6675 { $as_echo "$as_me:$LINENO: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678 6679 if test "x$ac_ct_NMEDIT" = x; then 6680 NMEDIT=":" 6681 else 6682 case $cross_compiling:$ac_tool_warned in 6683yes:) 6684{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6686ac_tool_warned=yes ;; 6687esac 6688 NMEDIT=$ac_ct_NMEDIT 6689 fi 6690else 6691 NMEDIT="$ac_cv_prog_NMEDIT" 6692fi 6693 6694 if test -n "$ac_tool_prefix"; then 6695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6696set dummy ${ac_tool_prefix}lipo; ac_word=$2 6697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6698$as_echo_n "checking for $ac_word... " >&6; } 6699if test "${ac_cv_prog_LIPO+set}" = set; then 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$LIPO"; then 6703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6704else 6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6706for as_dir in $PATH 6707do 6708 IFS=$as_save_IFS 6709 test -z "$as_dir" && as_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6714 break 2 6715 fi 6716done 6717done 6718IFS=$as_save_IFS 6719 6720fi 6721fi 6722LIPO=$ac_cv_prog_LIPO 6723if test -n "$LIPO"; then 6724 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6725$as_echo "$LIPO" >&6; } 6726else 6727 { $as_echo "$as_me:$LINENO: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 6732fi 6733if test -z "$ac_cv_prog_LIPO"; then 6734 ac_ct_LIPO=$LIPO 6735 # Extract the first word of "lipo", so it can be a program name with args. 6736set dummy lipo; ac_word=$2 6737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$ac_ct_LIPO"; then 6743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6752 ac_cv_prog_ac_ct_LIPO="lipo" 6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6763if test -n "$ac_ct_LIPO"; then 6764 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6765$as_echo "$ac_ct_LIPO" >&6; } 6766else 6767 { $as_echo "$as_me:$LINENO: result: no" >&5 6768$as_echo "no" >&6; } 6769fi 6770 6771 if test "x$ac_ct_LIPO" = x; then 6772 LIPO=":" 6773 else 6774 case $cross_compiling:$ac_tool_warned in 6775yes:) 6776{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6778ac_tool_warned=yes ;; 6779esac 6780 LIPO=$ac_ct_LIPO 6781 fi 6782else 6783 LIPO="$ac_cv_prog_LIPO" 6784fi 6785 6786 if test -n "$ac_tool_prefix"; then 6787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6788set dummy ${ac_tool_prefix}otool; ac_word=$2 6789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6790$as_echo_n "checking for $ac_word... " >&6; } 6791if test "${ac_cv_prog_OTOOL+set}" = set; then 6792 $as_echo_n "(cached) " >&6 6793else 6794 if test -n "$OTOOL"; then 6795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6796else 6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6798for as_dir in $PATH 6799do 6800 IFS=$as_save_IFS 6801 test -z "$as_dir" && as_dir=. 6802 for ac_exec_ext in '' $ac_executable_extensions; do 6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6806 break 2 6807 fi 6808done 6809done 6810IFS=$as_save_IFS 6811 6812fi 6813fi 6814OTOOL=$ac_cv_prog_OTOOL 6815if test -n "$OTOOL"; then 6816 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6817$as_echo "$OTOOL" >&6; } 6818else 6819 { $as_echo "$as_me:$LINENO: result: no" >&5 6820$as_echo "no" >&6; } 6821fi 6822 6823 6824fi 6825if test -z "$ac_cv_prog_OTOOL"; then 6826 ac_ct_OTOOL=$OTOOL 6827 # Extract the first word of "otool", so it can be a program name with args. 6828set dummy otool; ac_word=$2 6829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6830$as_echo_n "checking for $ac_word... " >&6; } 6831if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6832 $as_echo_n "(cached) " >&6 6833else 6834 if test -n "$ac_ct_OTOOL"; then 6835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6836else 6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6838for as_dir in $PATH 6839do 6840 IFS=$as_save_IFS 6841 test -z "$as_dir" && as_dir=. 6842 for ac_exec_ext in '' $ac_executable_extensions; do 6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6844 ac_cv_prog_ac_ct_OTOOL="otool" 6845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6846 break 2 6847 fi 6848done 6849done 6850IFS=$as_save_IFS 6851 6852fi 6853fi 6854ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6855if test -n "$ac_ct_OTOOL"; then 6856 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6857$as_echo "$ac_ct_OTOOL" >&6; } 6858else 6859 { $as_echo "$as_me:$LINENO: result: no" >&5 6860$as_echo "no" >&6; } 6861fi 6862 6863 if test "x$ac_ct_OTOOL" = x; then 6864 OTOOL=":" 6865 else 6866 case $cross_compiling:$ac_tool_warned in 6867yes:) 6868{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6870ac_tool_warned=yes ;; 6871esac 6872 OTOOL=$ac_ct_OTOOL 6873 fi 6874else 6875 OTOOL="$ac_cv_prog_OTOOL" 6876fi 6877 6878 if test -n "$ac_tool_prefix"; then 6879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6880set dummy ${ac_tool_prefix}otool64; ac_word=$2 6881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6882$as_echo_n "checking for $ac_word... " >&6; } 6883if test "${ac_cv_prog_OTOOL64+set}" = set; then 6884 $as_echo_n "(cached) " >&6 6885else 6886 if test -n "$OTOOL64"; then 6887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6888else 6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6890for as_dir in $PATH 6891do 6892 IFS=$as_save_IFS 6893 test -z "$as_dir" && as_dir=. 6894 for ac_exec_ext in '' $ac_executable_extensions; do 6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6898 break 2 6899 fi 6900done 6901done 6902IFS=$as_save_IFS 6903 6904fi 6905fi 6906OTOOL64=$ac_cv_prog_OTOOL64 6907if test -n "$OTOOL64"; then 6908 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6909$as_echo "$OTOOL64" >&6; } 6910else 6911 { $as_echo "$as_me:$LINENO: result: no" >&5 6912$as_echo "no" >&6; } 6913fi 6914 6915 6916fi 6917if test -z "$ac_cv_prog_OTOOL64"; then 6918 ac_ct_OTOOL64=$OTOOL64 6919 # Extract the first word of "otool64", so it can be a program name with args. 6920set dummy otool64; ac_word=$2 6921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6922$as_echo_n "checking for $ac_word... " >&6; } 6923if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6924 $as_echo_n "(cached) " >&6 6925else 6926 if test -n "$ac_ct_OTOOL64"; then 6927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6928else 6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6930for as_dir in $PATH 6931do 6932 IFS=$as_save_IFS 6933 test -z "$as_dir" && as_dir=. 6934 for ac_exec_ext in '' $ac_executable_extensions; do 6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6936 ac_cv_prog_ac_ct_OTOOL64="otool64" 6937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6938 break 2 6939 fi 6940done 6941done 6942IFS=$as_save_IFS 6943 6944fi 6945fi 6946ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6947if test -n "$ac_ct_OTOOL64"; then 6948 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6949$as_echo "$ac_ct_OTOOL64" >&6; } 6950else 6951 { $as_echo "$as_me:$LINENO: result: no" >&5 6952$as_echo "no" >&6; } 6953fi 6954 6955 if test "x$ac_ct_OTOOL64" = x; then 6956 OTOOL64=":" 6957 else 6958 case $cross_compiling:$ac_tool_warned in 6959yes:) 6960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6962ac_tool_warned=yes ;; 6963esac 6964 OTOOL64=$ac_ct_OTOOL64 6965 fi 6966else 6967 OTOOL64="$ac_cv_prog_OTOOL64" 6968fi 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6997$as_echo_n "checking for -single_module linker flag... " >&6; } 6998if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6999 $as_echo_n "(cached) " >&6 7000else 7001 lt_cv_apple_cc_single_mod=no 7002 if test -z "${LT_MULTI_MODULE}"; then 7003 # By default we will add the -single_module flag. You can override 7004 # by either setting the environment variable LT_MULTI_MODULE 7005 # non-empty at configure time, or by adding -multi_module to the 7006 # link flags. 7007 rm -rf libconftest.dylib* 7008 echo "int foo(void){return 1;}" > conftest.c 7009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7010-dynamiclib -Wl,-single_module conftest.c" >&5 7011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7013 _lt_result=$? 7014 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7015 lt_cv_apple_cc_single_mod=yes 7016 else 7017 cat conftest.err >&5 7018 fi 7019 rm -rf libconftest.dylib* 7020 rm -f conftest.* 7021 fi 7022fi 7023{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7024$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7025 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7026$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7027if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7028 $as_echo_n "(cached) " >&6 7029else 7030 lt_cv_ld_exported_symbols_list=no 7031 save_LDFLAGS=$LDFLAGS 7032 echo "_main" > conftest.sym 7033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7034 cat >conftest.$ac_ext <<_ACEOF 7035/* confdefs.h. */ 7036_ACEOF 7037cat confdefs.h >>conftest.$ac_ext 7038cat >>conftest.$ac_ext <<_ACEOF 7039/* end confdefs.h. */ 7040 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049rm -f conftest.$ac_objext conftest$ac_exeext 7050if { (ac_try="$ac_link" 7051case "(($ac_try" in 7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7053 *) ac_try_echo=$ac_try;; 7054esac 7055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7056$as_echo "$ac_try_echo") >&5 7057 (eval "$ac_link") 2>conftest.er1 7058 ac_status=$? 7059 grep -v '^ *+' conftest.er1 >conftest.err 7060 rm -f conftest.er1 7061 cat conftest.err >&5 7062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); } && { 7064 test -z "$ac_c_werror_flag" || 7065 test ! -s conftest.err 7066 } && test -s conftest$ac_exeext && { 7067 test "$cross_compiling" = yes || 7068 $as_test_x conftest$ac_exeext 7069 }; then 7070 lt_cv_ld_exported_symbols_list=yes 7071else 7072 $as_echo "$as_me: failed program was:" >&5 7073sed 's/^/| /' conftest.$ac_ext >&5 7074 7075 lt_cv_ld_exported_symbols_list=no 7076fi 7077 7078rm -rf conftest.dSYM 7079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7080 conftest$ac_exeext conftest.$ac_ext 7081 LDFLAGS="$save_LDFLAGS" 7082 7083fi 7084{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7085$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7086 case $host_os in 7087 rhapsody* | darwin1.[012]) 7088 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7089 darwin1.*) 7090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7091 darwin*) # darwin 5.x on 7092 # if running on 10.5 or later, the deployment target defaults 7093 # to the OS version, if on x86, and 10.4, the deployment 7094 # target defaults to 10.4. Don't you love it? 7095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7096 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7098 10.[012]*) 7099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7100 10.*) 7101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7102 esac 7103 ;; 7104 esac 7105 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7106 _lt_dar_single_mod='$single_module' 7107 fi 7108 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7109 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7110 else 7111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7112 fi 7113 if test "$DSYMUTIL" != ":"; then 7114 _lt_dsymutil='~$DSYMUTIL $lib || :' 7115 else 7116 _lt_dsymutil= 7117 fi 7118 ;; 7119 esac 7120 7121ac_ext=c 7122ac_cpp='$CPP $CPPFLAGS' 7123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7125ac_compiler_gnu=$ac_cv_c_compiler_gnu 7126{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 7127$as_echo_n "checking how to run the C preprocessor... " >&6; } 7128# On Suns, sometimes $CPP names a directory. 7129if test -n "$CPP" && test -d "$CPP"; then 7130 CPP= 7131fi 7132if test -z "$CPP"; then 7133 if test "${ac_cv_prog_CPP+set}" = set; then 7134 $as_echo_n "(cached) " >&6 7135else 7136 # Double quotes because CPP needs to be expanded 7137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7138 do 7139 ac_preproc_ok=false 7140for ac_c_preproc_warn_flag in '' yes 7141do 7142 # Use a header file that comes with gcc, so configuring glibc 7143 # with a fresh cross-compiler works. 7144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7145 # <limits.h> exists even on freestanding compilers. 7146 # On the NeXT, cc -E runs the code through the compiler's parser, 7147 # not just through cpp. "Syntax error" is here to catch this case. 7148 cat >conftest.$ac_ext <<_ACEOF 7149/* confdefs.h. */ 7150_ACEOF 7151cat confdefs.h >>conftest.$ac_ext 7152cat >>conftest.$ac_ext <<_ACEOF 7153/* end confdefs.h. */ 7154#ifdef __STDC__ 7155# include <limits.h> 7156#else 7157# include <assert.h> 7158#endif 7159 Syntax error 7160_ACEOF 7161if { (ac_try="$ac_cpp conftest.$ac_ext" 7162case "(($ac_try" in 7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7164 *) ac_try_echo=$ac_try;; 7165esac 7166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7167$as_echo "$ac_try_echo") >&5 7168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7169 ac_status=$? 7170 grep -v '^ *+' conftest.er1 >conftest.err 7171 rm -f conftest.er1 7172 cat conftest.err >&5 7173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7174 (exit $ac_status); } >/dev/null && { 7175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7176 test ! -s conftest.err 7177 }; then 7178 : 7179else 7180 $as_echo "$as_me: failed program was:" >&5 7181sed 's/^/| /' conftest.$ac_ext >&5 7182 7183 # Broken: fails on valid input. 7184continue 7185fi 7186 7187rm -f conftest.err conftest.$ac_ext 7188 7189 # OK, works on sane cases. Now check whether nonexistent headers 7190 # can be detected and how. 7191 cat >conftest.$ac_ext <<_ACEOF 7192/* confdefs.h. */ 7193_ACEOF 7194cat confdefs.h >>conftest.$ac_ext 7195cat >>conftest.$ac_ext <<_ACEOF 7196/* end confdefs.h. */ 7197#include <ac_nonexistent.h> 7198_ACEOF 7199if { (ac_try="$ac_cpp conftest.$ac_ext" 7200case "(($ac_try" in 7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7202 *) ac_try_echo=$ac_try;; 7203esac 7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7205$as_echo "$ac_try_echo") >&5 7206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7207 ac_status=$? 7208 grep -v '^ *+' conftest.er1 >conftest.err 7209 rm -f conftest.er1 7210 cat conftest.err >&5 7211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } >/dev/null && { 7213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7214 test ! -s conftest.err 7215 }; then 7216 # Broken: success on invalid input. 7217continue 7218else 7219 $as_echo "$as_me: failed program was:" >&5 7220sed 's/^/| /' conftest.$ac_ext >&5 7221 7222 # Passes both tests. 7223ac_preproc_ok=: 7224break 7225fi 7226 7227rm -f conftest.err conftest.$ac_ext 7228 7229done 7230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7231rm -f conftest.err conftest.$ac_ext 7232if $ac_preproc_ok; then 7233 break 7234fi 7235 7236 done 7237 ac_cv_prog_CPP=$CPP 7238 7239fi 7240 CPP=$ac_cv_prog_CPP 7241else 7242 ac_cv_prog_CPP=$CPP 7243fi 7244{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 7245$as_echo "$CPP" >&6; } 7246ac_preproc_ok=false 7247for ac_c_preproc_warn_flag in '' yes 7248do 7249 # Use a header file that comes with gcc, so configuring glibc 7250 # with a fresh cross-compiler works. 7251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7252 # <limits.h> exists even on freestanding compilers. 7253 # On the NeXT, cc -E runs the code through the compiler's parser, 7254 # not just through cpp. "Syntax error" is here to catch this case. 7255 cat >conftest.$ac_ext <<_ACEOF 7256/* confdefs.h. */ 7257_ACEOF 7258cat confdefs.h >>conftest.$ac_ext 7259cat >>conftest.$ac_ext <<_ACEOF 7260/* end confdefs.h. */ 7261#ifdef __STDC__ 7262# include <limits.h> 7263#else 7264# include <assert.h> 7265#endif 7266 Syntax error 7267_ACEOF 7268if { (ac_try="$ac_cpp conftest.$ac_ext" 7269case "(($ac_try" in 7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7271 *) ac_try_echo=$ac_try;; 7272esac 7273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7274$as_echo "$ac_try_echo") >&5 7275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7276 ac_status=$? 7277 grep -v '^ *+' conftest.er1 >conftest.err 7278 rm -f conftest.er1 7279 cat conftest.err >&5 7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7281 (exit $ac_status); } >/dev/null && { 7282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7283 test ! -s conftest.err 7284 }; then 7285 : 7286else 7287 $as_echo "$as_me: failed program was:" >&5 7288sed 's/^/| /' conftest.$ac_ext >&5 7289 7290 # Broken: fails on valid input. 7291continue 7292fi 7293 7294rm -f conftest.err conftest.$ac_ext 7295 7296 # OK, works on sane cases. Now check whether nonexistent headers 7297 # can be detected and how. 7298 cat >conftest.$ac_ext <<_ACEOF 7299/* confdefs.h. */ 7300_ACEOF 7301cat confdefs.h >>conftest.$ac_ext 7302cat >>conftest.$ac_ext <<_ACEOF 7303/* end confdefs.h. */ 7304#include <ac_nonexistent.h> 7305_ACEOF 7306if { (ac_try="$ac_cpp conftest.$ac_ext" 7307case "(($ac_try" in 7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7309 *) ac_try_echo=$ac_try;; 7310esac 7311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7312$as_echo "$ac_try_echo") >&5 7313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7314 ac_status=$? 7315 grep -v '^ *+' conftest.er1 >conftest.err 7316 rm -f conftest.er1 7317 cat conftest.err >&5 7318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7319 (exit $ac_status); } >/dev/null && { 7320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7321 test ! -s conftest.err 7322 }; then 7323 # Broken: success on invalid input. 7324continue 7325else 7326 $as_echo "$as_me: failed program was:" >&5 7327sed 's/^/| /' conftest.$ac_ext >&5 7328 7329 # Passes both tests. 7330ac_preproc_ok=: 7331break 7332fi 7333 7334rm -f conftest.err conftest.$ac_ext 7335 7336done 7337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7338rm -f conftest.err conftest.$ac_ext 7339if $ac_preproc_ok; then 7340 : 7341else 7342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7344{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7345See \`config.log' for more details." >&5 7346$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7347See \`config.log' for more details." >&2;} 7348 { (exit 1); exit 1; }; }; } 7349fi 7350 7351ac_ext=c 7352ac_cpp='$CPP $CPPFLAGS' 7353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7355ac_compiler_gnu=$ac_cv_c_compiler_gnu 7356 7357 7358{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7359$as_echo_n "checking for ANSI C header files... " >&6; } 7360if test "${ac_cv_header_stdc+set}" = set; then 7361 $as_echo_n "(cached) " >&6 7362else 7363 cat >conftest.$ac_ext <<_ACEOF 7364/* confdefs.h. */ 7365_ACEOF 7366cat confdefs.h >>conftest.$ac_ext 7367cat >>conftest.$ac_ext <<_ACEOF 7368/* end confdefs.h. */ 7369#include <stdlib.h> 7370#include <stdarg.h> 7371#include <string.h> 7372#include <float.h> 7373 7374int 7375main () 7376{ 7377 7378 ; 7379 return 0; 7380} 7381_ACEOF 7382rm -f conftest.$ac_objext 7383if { (ac_try="$ac_compile" 7384case "(($ac_try" in 7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7386 *) ac_try_echo=$ac_try;; 7387esac 7388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7389$as_echo "$ac_try_echo") >&5 7390 (eval "$ac_compile") 2>conftest.er1 7391 ac_status=$? 7392 grep -v '^ *+' conftest.er1 >conftest.err 7393 rm -f conftest.er1 7394 cat conftest.err >&5 7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); } && { 7397 test -z "$ac_c_werror_flag" || 7398 test ! -s conftest.err 7399 } && test -s conftest.$ac_objext; then 7400 ac_cv_header_stdc=yes 7401else 7402 $as_echo "$as_me: failed program was:" >&5 7403sed 's/^/| /' conftest.$ac_ext >&5 7404 7405 ac_cv_header_stdc=no 7406fi 7407 7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7409 7410if test $ac_cv_header_stdc = yes; then 7411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7412 cat >conftest.$ac_ext <<_ACEOF 7413/* confdefs.h. */ 7414_ACEOF 7415cat confdefs.h >>conftest.$ac_ext 7416cat >>conftest.$ac_ext <<_ACEOF 7417/* end confdefs.h. */ 7418#include <string.h> 7419 7420_ACEOF 7421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7422 $EGREP "memchr" >/dev/null 2>&1; then 7423 : 7424else 7425 ac_cv_header_stdc=no 7426fi 7427rm -f conftest* 7428 7429fi 7430 7431if test $ac_cv_header_stdc = yes; then 7432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7433 cat >conftest.$ac_ext <<_ACEOF 7434/* confdefs.h. */ 7435_ACEOF 7436cat confdefs.h >>conftest.$ac_ext 7437cat >>conftest.$ac_ext <<_ACEOF 7438/* end confdefs.h. */ 7439#include <stdlib.h> 7440 7441_ACEOF 7442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7443 $EGREP "free" >/dev/null 2>&1; then 7444 : 7445else 7446 ac_cv_header_stdc=no 7447fi 7448rm -f conftest* 7449 7450fi 7451 7452if test $ac_cv_header_stdc = yes; then 7453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7454 if test "$cross_compiling" = yes; then 7455 : 7456else 7457 cat >conftest.$ac_ext <<_ACEOF 7458/* confdefs.h. */ 7459_ACEOF 7460cat confdefs.h >>conftest.$ac_ext 7461cat >>conftest.$ac_ext <<_ACEOF 7462/* end confdefs.h. */ 7463#include <ctype.h> 7464#include <stdlib.h> 7465#if ((' ' & 0x0FF) == 0x020) 7466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7468#else 7469# define ISLOWER(c) \ 7470 (('a' <= (c) && (c) <= 'i') \ 7471 || ('j' <= (c) && (c) <= 'r') \ 7472 || ('s' <= (c) && (c) <= 'z')) 7473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7474#endif 7475 7476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7477int 7478main () 7479{ 7480 int i; 7481 for (i = 0; i < 256; i++) 7482 if (XOR (islower (i), ISLOWER (i)) 7483 || toupper (i) != TOUPPER (i)) 7484 return 2; 7485 return 0; 7486} 7487_ACEOF 7488rm -f conftest$ac_exeext 7489if { (ac_try="$ac_link" 7490case "(($ac_try" in 7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7492 *) ac_try_echo=$ac_try;; 7493esac 7494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7495$as_echo "$ac_try_echo") >&5 7496 (eval "$ac_link") 2>&5 7497 ac_status=$? 7498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7500 { (case "(($ac_try" in 7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7502 *) ac_try_echo=$ac_try;; 7503esac 7504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7505$as_echo "$ac_try_echo") >&5 7506 (eval "$ac_try") 2>&5 7507 ac_status=$? 7508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7509 (exit $ac_status); }; }; then 7510 : 7511else 7512 $as_echo "$as_me: program exited with status $ac_status" >&5 7513$as_echo "$as_me: failed program was:" >&5 7514sed 's/^/| /' conftest.$ac_ext >&5 7515 7516( exit $ac_status ) 7517ac_cv_header_stdc=no 7518fi 7519rm -rf conftest.dSYM 7520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7521fi 7522 7523 7524fi 7525fi 7526{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7527$as_echo "$ac_cv_header_stdc" >&6; } 7528if test $ac_cv_header_stdc = yes; then 7529 7530cat >>confdefs.h <<\_ACEOF 7531#define STDC_HEADERS 1 7532_ACEOF 7533 7534fi 7535 7536# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7547 inttypes.h stdint.h unistd.h 7548do 7549as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7550{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7551$as_echo_n "checking for $ac_header... " >&6; } 7552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7553 $as_echo_n "(cached) " >&6 7554else 7555 cat >conftest.$ac_ext <<_ACEOF 7556/* confdefs.h. */ 7557_ACEOF 7558cat confdefs.h >>conftest.$ac_ext 7559cat >>conftest.$ac_ext <<_ACEOF 7560/* end confdefs.h. */ 7561$ac_includes_default 7562 7563#include <$ac_header> 7564_ACEOF 7565rm -f conftest.$ac_objext 7566if { (ac_try="$ac_compile" 7567case "(($ac_try" in 7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7569 *) ac_try_echo=$ac_try;; 7570esac 7571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7572$as_echo "$ac_try_echo") >&5 7573 (eval "$ac_compile") 2>conftest.er1 7574 ac_status=$? 7575 grep -v '^ *+' conftest.er1 >conftest.err 7576 rm -f conftest.er1 7577 cat conftest.err >&5 7578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7579 (exit $ac_status); } && { 7580 test -z "$ac_c_werror_flag" || 7581 test ! -s conftest.err 7582 } && test -s conftest.$ac_objext; then 7583 eval "$as_ac_Header=yes" 7584else 7585 $as_echo "$as_me: failed program was:" >&5 7586sed 's/^/| /' conftest.$ac_ext >&5 7587 7588 eval "$as_ac_Header=no" 7589fi 7590 7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7592fi 7593ac_res=`eval 'as_val=${'$as_ac_Header'} 7594 $as_echo "$as_val"'` 7595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7596$as_echo "$ac_res" >&6; } 7597as_val=`eval 'as_val=${'$as_ac_Header'} 7598 $as_echo "$as_val"'` 7599 if test "x$as_val" = x""yes; then 7600 cat >>confdefs.h <<_ACEOF 7601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7602_ACEOF 7603 7604fi 7605 7606done 7607 7608 7609 7610for ac_header in dlfcn.h 7611do 7612as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7613{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7614$as_echo_n "checking for $ac_header... " >&6; } 7615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7616 $as_echo_n "(cached) " >&6 7617else 7618 cat >conftest.$ac_ext <<_ACEOF 7619/* confdefs.h. */ 7620_ACEOF 7621cat confdefs.h >>conftest.$ac_ext 7622cat >>conftest.$ac_ext <<_ACEOF 7623/* end confdefs.h. */ 7624$ac_includes_default 7625 7626#include <$ac_header> 7627_ACEOF 7628rm -f conftest.$ac_objext 7629if { (ac_try="$ac_compile" 7630case "(($ac_try" in 7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7632 *) ac_try_echo=$ac_try;; 7633esac 7634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7635$as_echo "$ac_try_echo") >&5 7636 (eval "$ac_compile") 2>conftest.er1 7637 ac_status=$? 7638 grep -v '^ *+' conftest.er1 >conftest.err 7639 rm -f conftest.er1 7640 cat conftest.err >&5 7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); } && { 7643 test -z "$ac_c_werror_flag" || 7644 test ! -s conftest.err 7645 } && test -s conftest.$ac_objext; then 7646 eval "$as_ac_Header=yes" 7647else 7648 $as_echo "$as_me: failed program was:" >&5 7649sed 's/^/| /' conftest.$ac_ext >&5 7650 7651 eval "$as_ac_Header=no" 7652fi 7653 7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7655fi 7656ac_res=`eval 'as_val=${'$as_ac_Header'} 7657 $as_echo "$as_val"'` 7658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7659$as_echo "$ac_res" >&6; } 7660as_val=`eval 'as_val=${'$as_ac_Header'} 7661 $as_echo "$as_val"'` 7662 if test "x$as_val" = x""yes; then 7663 cat >>confdefs.h <<_ACEOF 7664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7665_ACEOF 7666 7667fi 7668 7669done 7670 7671 7672 7673ac_ext=cpp 7674ac_cpp='$CXXCPP $CPPFLAGS' 7675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7678if test -z "$CXX"; then 7679 if test -n "$CCC"; then 7680 CXX=$CCC 7681 else 7682 if test -n "$ac_tool_prefix"; then 7683 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7684 do 7685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7686set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7688$as_echo_n "checking for $ac_word... " >&6; } 7689if test "${ac_cv_prog_CXX+set}" = set; then 7690 $as_echo_n "(cached) " >&6 7691else 7692 if test -n "$CXX"; then 7693 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7694else 7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696for as_dir in $PATH 7697do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7702 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706done 7707done 7708IFS=$as_save_IFS 7709 7710fi 7711fi 7712CXX=$ac_cv_prog_CXX 7713if test -n "$CXX"; then 7714 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 7715$as_echo "$CXX" >&6; } 7716else 7717 { $as_echo "$as_me:$LINENO: result: no" >&5 7718$as_echo "no" >&6; } 7719fi 7720 7721 7722 test -n "$CXX" && break 7723 done 7724fi 7725if test -z "$CXX"; then 7726 ac_ct_CXX=$CXX 7727 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7728do 7729 # Extract the first word of "$ac_prog", so it can be a program name with args. 7730set dummy $ac_prog; ac_word=$2 7731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7732$as_echo_n "checking for $ac_word... " >&6; } 7733if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7734 $as_echo_n "(cached) " >&6 7735else 7736 if test -n "$ac_ct_CXX"; then 7737 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7738else 7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740for as_dir in $PATH 7741do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7746 ac_cv_prog_ac_ct_CXX="$ac_prog" 7747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750done 7751done 7752IFS=$as_save_IFS 7753 7754fi 7755fi 7756ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7757if test -n "$ac_ct_CXX"; then 7758 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7759$as_echo "$ac_ct_CXX" >&6; } 7760else 7761 { $as_echo "$as_me:$LINENO: result: no" >&5 7762$as_echo "no" >&6; } 7763fi 7764 7765 7766 test -n "$ac_ct_CXX" && break 7767done 7768 7769 if test "x$ac_ct_CXX" = x; then 7770 CXX="g++" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773yes:) 7774{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776ac_tool_warned=yes ;; 7777esac 7778 CXX=$ac_ct_CXX 7779 fi 7780fi 7781 7782 fi 7783fi 7784# Provide some information about the compiler. 7785$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7786set X $ac_compile 7787ac_compiler=$2 7788{ (ac_try="$ac_compiler --version >&5" 7789case "(($ac_try" in 7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7791 *) ac_try_echo=$ac_try;; 7792esac 7793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7794$as_echo "$ac_try_echo") >&5 7795 (eval "$ac_compiler --version >&5") 2>&5 7796 ac_status=$? 7797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7798 (exit $ac_status); } 7799{ (ac_try="$ac_compiler -v >&5" 7800case "(($ac_try" in 7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7802 *) ac_try_echo=$ac_try;; 7803esac 7804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7805$as_echo "$ac_try_echo") >&5 7806 (eval "$ac_compiler -v >&5") 2>&5 7807 ac_status=$? 7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7809 (exit $ac_status); } 7810{ (ac_try="$ac_compiler -V >&5" 7811case "(($ac_try" in 7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7813 *) ac_try_echo=$ac_try;; 7814esac 7815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7816$as_echo "$ac_try_echo") >&5 7817 (eval "$ac_compiler -V >&5") 2>&5 7818 ac_status=$? 7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7820 (exit $ac_status); } 7821 7822{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7823$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7825 $as_echo_n "(cached) " >&6 7826else 7827 cat >conftest.$ac_ext <<_ACEOF 7828/* confdefs.h. */ 7829_ACEOF 7830cat confdefs.h >>conftest.$ac_ext 7831cat >>conftest.$ac_ext <<_ACEOF 7832/* end confdefs.h. */ 7833 7834int 7835main () 7836{ 7837#ifndef __GNUC__ 7838 choke me 7839#endif 7840 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845rm -f conftest.$ac_objext 7846if { (ac_try="$ac_compile" 7847case "(($ac_try" in 7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7849 *) ac_try_echo=$ac_try;; 7850esac 7851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7852$as_echo "$ac_try_echo") >&5 7853 (eval "$ac_compile") 2>conftest.er1 7854 ac_status=$? 7855 grep -v '^ *+' conftest.er1 >conftest.err 7856 rm -f conftest.er1 7857 cat conftest.err >&5 7858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 (exit $ac_status); } && { 7860 test -z "$ac_cxx_werror_flag" || 7861 test ! -s conftest.err 7862 } && test -s conftest.$ac_objext; then 7863 ac_compiler_gnu=yes 7864else 7865 $as_echo "$as_me: failed program was:" >&5 7866sed 's/^/| /' conftest.$ac_ext >&5 7867 7868 ac_compiler_gnu=no 7869fi 7870 7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7872ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7873 7874fi 7875{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7876$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7877if test $ac_compiler_gnu = yes; then 7878 GXX=yes 7879else 7880 GXX= 7881fi 7882ac_test_CXXFLAGS=${CXXFLAGS+set} 7883ac_save_CXXFLAGS=$CXXFLAGS 7884{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7885$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7886if test "${ac_cv_prog_cxx_g+set}" = set; then 7887 $as_echo_n "(cached) " >&6 7888else 7889 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7890 ac_cxx_werror_flag=yes 7891 ac_cv_prog_cxx_g=no 7892 CXXFLAGS="-g" 7893 cat >conftest.$ac_ext <<_ACEOF 7894/* confdefs.h. */ 7895_ACEOF 7896cat confdefs.h >>conftest.$ac_ext 7897cat >>conftest.$ac_ext <<_ACEOF 7898/* end confdefs.h. */ 7899 7900int 7901main () 7902{ 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908rm -f conftest.$ac_objext 7909if { (ac_try="$ac_compile" 7910case "(($ac_try" in 7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7912 *) ac_try_echo=$ac_try;; 7913esac 7914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7915$as_echo "$ac_try_echo") >&5 7916 (eval "$ac_compile") 2>conftest.er1 7917 ac_status=$? 7918 grep -v '^ *+' conftest.er1 >conftest.err 7919 rm -f conftest.er1 7920 cat conftest.err >&5 7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7922 (exit $ac_status); } && { 7923 test -z "$ac_cxx_werror_flag" || 7924 test ! -s conftest.err 7925 } && test -s conftest.$ac_objext; then 7926 ac_cv_prog_cxx_g=yes 7927else 7928 $as_echo "$as_me: failed program was:" >&5 7929sed 's/^/| /' conftest.$ac_ext >&5 7930 7931 CXXFLAGS="" 7932 cat >conftest.$ac_ext <<_ACEOF 7933/* confdefs.h. */ 7934_ACEOF 7935cat confdefs.h >>conftest.$ac_ext 7936cat >>conftest.$ac_ext <<_ACEOF 7937/* end confdefs.h. */ 7938 7939int 7940main () 7941{ 7942 7943 ; 7944 return 0; 7945} 7946_ACEOF 7947rm -f conftest.$ac_objext 7948if { (ac_try="$ac_compile" 7949case "(($ac_try" in 7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7951 *) ac_try_echo=$ac_try;; 7952esac 7953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7954$as_echo "$ac_try_echo") >&5 7955 (eval "$ac_compile") 2>conftest.er1 7956 ac_status=$? 7957 grep -v '^ *+' conftest.er1 >conftest.err 7958 rm -f conftest.er1 7959 cat conftest.err >&5 7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); } && { 7962 test -z "$ac_cxx_werror_flag" || 7963 test ! -s conftest.err 7964 } && test -s conftest.$ac_objext; then 7965 : 7966else 7967 $as_echo "$as_me: failed program was:" >&5 7968sed 's/^/| /' conftest.$ac_ext >&5 7969 7970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7971 CXXFLAGS="-g" 7972 cat >conftest.$ac_ext <<_ACEOF 7973/* confdefs.h. */ 7974_ACEOF 7975cat confdefs.h >>conftest.$ac_ext 7976cat >>conftest.$ac_ext <<_ACEOF 7977/* end confdefs.h. */ 7978 7979int 7980main () 7981{ 7982 7983 ; 7984 return 0; 7985} 7986_ACEOF 7987rm -f conftest.$ac_objext 7988if { (ac_try="$ac_compile" 7989case "(($ac_try" in 7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7991 *) ac_try_echo=$ac_try;; 7992esac 7993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7994$as_echo "$ac_try_echo") >&5 7995 (eval "$ac_compile") 2>conftest.er1 7996 ac_status=$? 7997 grep -v '^ *+' conftest.er1 >conftest.err 7998 rm -f conftest.er1 7999 cat conftest.err >&5 8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 (exit $ac_status); } && { 8002 test -z "$ac_cxx_werror_flag" || 8003 test ! -s conftest.err 8004 } && test -s conftest.$ac_objext; then 8005 ac_cv_prog_cxx_g=yes 8006else 8007 $as_echo "$as_me: failed program was:" >&5 8008sed 's/^/| /' conftest.$ac_ext >&5 8009 8010 8011fi 8012 8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8014fi 8015 8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8017fi 8018 8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8021fi 8022{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8023$as_echo "$ac_cv_prog_cxx_g" >&6; } 8024if test "$ac_test_CXXFLAGS" = set; then 8025 CXXFLAGS=$ac_save_CXXFLAGS 8026elif test $ac_cv_prog_cxx_g = yes; then 8027 if test "$GXX" = yes; then 8028 CXXFLAGS="-g -O2" 8029 else 8030 CXXFLAGS="-g" 8031 fi 8032else 8033 if test "$GXX" = yes; then 8034 CXXFLAGS="-O2" 8035 else 8036 CXXFLAGS= 8037 fi 8038fi 8039ac_ext=c 8040ac_cpp='$CPP $CPPFLAGS' 8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8043ac_compiler_gnu=$ac_cv_c_compiler_gnu 8044 8045depcc="$CXX" am_compiler_list= 8046 8047{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8048$as_echo_n "checking dependency style of $depcc... " >&6; } 8049if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8050 $as_echo_n "(cached) " >&6 8051else 8052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8053 # We make a subdir and do the tests there. Otherwise we can end up 8054 # making bogus files that we don't know about and never remove. For 8055 # instance it was reported that on HP-UX the gcc test will end up 8056 # making a dummy file named `D' -- because `-MD' means `put the output 8057 # in D'. 8058 mkdir conftest.dir 8059 # Copy depcomp to subdir because otherwise we won't find it if we're 8060 # using a relative directory. 8061 cp "$am_depcomp" conftest.dir 8062 cd conftest.dir 8063 # We will build objects and dependencies in a subdirectory because 8064 # it helps to detect inapplicable dependency modes. For instance 8065 # both Tru64's cc and ICC support -MD to output dependencies as a 8066 # side effect of compilation, but ICC will put the dependencies in 8067 # the current directory while Tru64 will put them in the object 8068 # directory. 8069 mkdir sub 8070 8071 am_cv_CXX_dependencies_compiler_type=none 8072 if test "$am_compiler_list" = ""; then 8073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8074 fi 8075 for depmode in $am_compiler_list; do 8076 # Setup a source with many dependencies, because some compilers 8077 # like to wrap large dependency lists on column 80 (with \), and 8078 # we should not choose a depcomp mode which is confused by this. 8079 # 8080 # We need to recreate these files for each test, as the compiler may 8081 # overwrite some of them when testing with obscure command lines. 8082 # This happens at least with the AIX C compiler. 8083 : > sub/conftest.c 8084 for i in 1 2 3 4 5 6; do 8085 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8087 # Solaris 8's {/usr,}/bin/sh. 8088 touch sub/conftst$i.h 8089 done 8090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8091 8092 case $depmode in 8093 nosideeffect) 8094 # after this tag, mechanisms are not by side-effect, so they'll 8095 # only be used when explicitly requested 8096 if test "x$enable_dependency_tracking" = xyes; then 8097 continue 8098 else 8099 break 8100 fi 8101 ;; 8102 none) break ;; 8103 esac 8104 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8105 # mode. It turns out that the SunPro C++ compiler does not properly 8106 # handle `-M -o', and we need to detect this. 8107 if depmode=$depmode \ 8108 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8110 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8111 >/dev/null 2>conftest.err && 8112 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8113 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8114 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8115 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8116 # icc doesn't choke on unknown options, it will just issue warnings 8117 # or remarks (even with -Werror). So we grep stderr for any message 8118 # that says an option was ignored or not supported. 8119 # When given -MP, icc 7.0 and 7.1 complain thusly: 8120 # icc: Command line warning: ignoring option '-M'; no argument required 8121 # The diagnosis changed in icc 8.0: 8122 # icc: Command line remark: option '-MP' not supported 8123 if (grep 'ignoring option' conftest.err || 8124 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8125 am_cv_CXX_dependencies_compiler_type=$depmode 8126 break 8127 fi 8128 fi 8129 done 8130 8131 cd .. 8132 rm -rf conftest.dir 8133else 8134 am_cv_CXX_dependencies_compiler_type=none 8135fi 8136 8137fi 8138{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8139$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 8140CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8141 8142 if 8143 test "x$enable_dependency_tracking" != xno \ 8144 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8145 am__fastdepCXX_TRUE= 8146 am__fastdepCXX_FALSE='#' 8147else 8148 am__fastdepCXX_TRUE='#' 8149 am__fastdepCXX_FALSE= 8150fi 8151 8152 8153if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8154 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8155 (test "X$CXX" != "Xg++"))) ; then 8156 ac_ext=cpp 8157ac_cpp='$CXXCPP $CPPFLAGS' 8158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8161{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8162$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 8163if test -z "$CXXCPP"; then 8164 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8165 $as_echo_n "(cached) " >&6 8166else 8167 # Double quotes because CXXCPP needs to be expanded 8168 for CXXCPP in "$CXX -E" "/lib/cpp" 8169 do 8170 ac_preproc_ok=false 8171for ac_cxx_preproc_warn_flag in '' yes 8172do 8173 # Use a header file that comes with gcc, so configuring glibc 8174 # with a fresh cross-compiler works. 8175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8176 # <limits.h> exists even on freestanding compilers. 8177 # On the NeXT, cc -E runs the code through the compiler's parser, 8178 # not just through cpp. "Syntax error" is here to catch this case. 8179 cat >conftest.$ac_ext <<_ACEOF 8180/* confdefs.h. */ 8181_ACEOF 8182cat confdefs.h >>conftest.$ac_ext 8183cat >>conftest.$ac_ext <<_ACEOF 8184/* end confdefs.h. */ 8185#ifdef __STDC__ 8186# include <limits.h> 8187#else 8188# include <assert.h> 8189#endif 8190 Syntax error 8191_ACEOF 8192if { (ac_try="$ac_cpp conftest.$ac_ext" 8193case "(($ac_try" in 8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8195 *) ac_try_echo=$ac_try;; 8196esac 8197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8198$as_echo "$ac_try_echo") >&5 8199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8200 ac_status=$? 8201 grep -v '^ *+' conftest.er1 >conftest.err 8202 rm -f conftest.er1 8203 cat conftest.err >&5 8204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8205 (exit $ac_status); } >/dev/null && { 8206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8207 test ! -s conftest.err 8208 }; then 8209 : 8210else 8211 $as_echo "$as_me: failed program was:" >&5 8212sed 's/^/| /' conftest.$ac_ext >&5 8213 8214 # Broken: fails on valid input. 8215continue 8216fi 8217 8218rm -f conftest.err conftest.$ac_ext 8219 8220 # OK, works on sane cases. Now check whether nonexistent headers 8221 # can be detected and how. 8222 cat >conftest.$ac_ext <<_ACEOF 8223/* confdefs.h. */ 8224_ACEOF 8225cat confdefs.h >>conftest.$ac_ext 8226cat >>conftest.$ac_ext <<_ACEOF 8227/* end confdefs.h. */ 8228#include <ac_nonexistent.h> 8229_ACEOF 8230if { (ac_try="$ac_cpp conftest.$ac_ext" 8231case "(($ac_try" in 8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8233 *) ac_try_echo=$ac_try;; 8234esac 8235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8236$as_echo "$ac_try_echo") >&5 8237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8238 ac_status=$? 8239 grep -v '^ *+' conftest.er1 >conftest.err 8240 rm -f conftest.er1 8241 cat conftest.err >&5 8242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8243 (exit $ac_status); } >/dev/null && { 8244 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8245 test ! -s conftest.err 8246 }; then 8247 # Broken: success on invalid input. 8248continue 8249else 8250 $as_echo "$as_me: failed program was:" >&5 8251sed 's/^/| /' conftest.$ac_ext >&5 8252 8253 # Passes both tests. 8254ac_preproc_ok=: 8255break 8256fi 8257 8258rm -f conftest.err conftest.$ac_ext 8259 8260done 8261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8262rm -f conftest.err conftest.$ac_ext 8263if $ac_preproc_ok; then 8264 break 8265fi 8266 8267 done 8268 ac_cv_prog_CXXCPP=$CXXCPP 8269 8270fi 8271 CXXCPP=$ac_cv_prog_CXXCPP 8272else 8273 ac_cv_prog_CXXCPP=$CXXCPP 8274fi 8275{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 8276$as_echo "$CXXCPP" >&6; } 8277ac_preproc_ok=false 8278for ac_cxx_preproc_warn_flag in '' yes 8279do 8280 # Use a header file that comes with gcc, so configuring glibc 8281 # with a fresh cross-compiler works. 8282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8283 # <limits.h> exists even on freestanding compilers. 8284 # On the NeXT, cc -E runs the code through the compiler's parser, 8285 # not just through cpp. "Syntax error" is here to catch this case. 8286 cat >conftest.$ac_ext <<_ACEOF 8287/* confdefs.h. */ 8288_ACEOF 8289cat confdefs.h >>conftest.$ac_ext 8290cat >>conftest.$ac_ext <<_ACEOF 8291/* end confdefs.h. */ 8292#ifdef __STDC__ 8293# include <limits.h> 8294#else 8295# include <assert.h> 8296#endif 8297 Syntax error 8298_ACEOF 8299if { (ac_try="$ac_cpp conftest.$ac_ext" 8300case "(($ac_try" in 8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8302 *) ac_try_echo=$ac_try;; 8303esac 8304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8305$as_echo "$ac_try_echo") >&5 8306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8307 ac_status=$? 8308 grep -v '^ *+' conftest.er1 >conftest.err 8309 rm -f conftest.er1 8310 cat conftest.err >&5 8311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8312 (exit $ac_status); } >/dev/null && { 8313 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8314 test ! -s conftest.err 8315 }; then 8316 : 8317else 8318 $as_echo "$as_me: failed program was:" >&5 8319sed 's/^/| /' conftest.$ac_ext >&5 8320 8321 # Broken: fails on valid input. 8322continue 8323fi 8324 8325rm -f conftest.err conftest.$ac_ext 8326 8327 # OK, works on sane cases. Now check whether nonexistent headers 8328 # can be detected and how. 8329 cat >conftest.$ac_ext <<_ACEOF 8330/* confdefs.h. */ 8331_ACEOF 8332cat confdefs.h >>conftest.$ac_ext 8333cat >>conftest.$ac_ext <<_ACEOF 8334/* end confdefs.h. */ 8335#include <ac_nonexistent.h> 8336_ACEOF 8337if { (ac_try="$ac_cpp conftest.$ac_ext" 8338case "(($ac_try" in 8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8340 *) ac_try_echo=$ac_try;; 8341esac 8342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8343$as_echo "$ac_try_echo") >&5 8344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8345 ac_status=$? 8346 grep -v '^ *+' conftest.er1 >conftest.err 8347 rm -f conftest.er1 8348 cat conftest.err >&5 8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); } >/dev/null && { 8351 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8352 test ! -s conftest.err 8353 }; then 8354 # Broken: success on invalid input. 8355continue 8356else 8357 $as_echo "$as_me: failed program was:" >&5 8358sed 's/^/| /' conftest.$ac_ext >&5 8359 8360 # Passes both tests. 8361ac_preproc_ok=: 8362break 8363fi 8364 8365rm -f conftest.err conftest.$ac_ext 8366 8367done 8368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8369rm -f conftest.err conftest.$ac_ext 8370if $ac_preproc_ok; then 8371 : 8372else 8373 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8375_lt_caught_CXX_error=yes; } 8376fi 8377 8378ac_ext=c 8379ac_cpp='$CPP $CPPFLAGS' 8380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8382ac_compiler_gnu=$ac_cv_c_compiler_gnu 8383 8384else 8385 _lt_caught_CXX_error=yes 8386fi 8387 8388 8389 8390 8391 8392# Set options 8393 8394 8395 8396 enable_dlopen=no 8397 8398 8399 enable_win32_dll=no 8400 8401 8402 # Check whether --enable-shared was given. 8403if test "${enable_shared+set}" = set; then 8404 enableval=$enable_shared; p=${PACKAGE-default} 8405 case $enableval in 8406 yes) enable_shared=yes ;; 8407 no) enable_shared=no ;; 8408 *) 8409 enable_shared=no 8410 # Look at the argument we got. We use all the common list separators. 8411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8412 for pkg in $enableval; do 8413 IFS="$lt_save_ifs" 8414 if test "X$pkg" = "X$p"; then 8415 enable_shared=yes 8416 fi 8417 done 8418 IFS="$lt_save_ifs" 8419 ;; 8420 esac 8421else 8422 enable_shared=yes 8423fi 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 # Check whether --enable-static was given. 8434if test "${enable_static+set}" = set; then 8435 enableval=$enable_static; p=${PACKAGE-default} 8436 case $enableval in 8437 yes) enable_static=yes ;; 8438 no) enable_static=no ;; 8439 *) 8440 enable_static=no 8441 # Look at the argument we got. We use all the common list separators. 8442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8443 for pkg in $enableval; do 8444 IFS="$lt_save_ifs" 8445 if test "X$pkg" = "X$p"; then 8446 enable_static=yes 8447 fi 8448 done 8449 IFS="$lt_save_ifs" 8450 ;; 8451 esac 8452else 8453 enable_static=yes 8454fi 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465# Check whether --with-pic was given. 8466if test "${with_pic+set}" = set; then 8467 withval=$with_pic; pic_mode="$withval" 8468else 8469 pic_mode=default 8470fi 8471 8472 8473test -z "$pic_mode" && pic_mode=default 8474 8475 8476 8477 8478 8479 8480 8481 # Check whether --enable-fast-install was given. 8482if test "${enable_fast_install+set}" = set; then 8483 enableval=$enable_fast_install; p=${PACKAGE-default} 8484 case $enableval in 8485 yes) enable_fast_install=yes ;; 8486 no) enable_fast_install=no ;; 8487 *) 8488 enable_fast_install=no 8489 # Look at the argument we got. We use all the common list separators. 8490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8491 for pkg in $enableval; do 8492 IFS="$lt_save_ifs" 8493 if test "X$pkg" = "X$p"; then 8494 enable_fast_install=yes 8495 fi 8496 done 8497 IFS="$lt_save_ifs" 8498 ;; 8499 esac 8500else 8501 enable_fast_install=yes 8502fi 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514# This can be used to rebuild libtool when needed 8515LIBTOOL_DEPS="$ltmain" 8516 8517# Always use our own libtool. 8518LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544test -z "$LN_S" && LN_S="ln -s" 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559if test -n "${ZSH_VERSION+set}" ; then 8560 setopt NO_GLOB_SUBST 8561fi 8562 8563{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8564$as_echo_n "checking for objdir... " >&6; } 8565if test "${lt_cv_objdir+set}" = set; then 8566 $as_echo_n "(cached) " >&6 8567else 8568 rm -f .libs 2>/dev/null 8569mkdir .libs 2>/dev/null 8570if test -d .libs; then 8571 lt_cv_objdir=.libs 8572else 8573 # MS-DOS does not allow filenames that begin with a dot. 8574 lt_cv_objdir=_libs 8575fi 8576rmdir .libs 2>/dev/null 8577fi 8578{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8579$as_echo "$lt_cv_objdir" >&6; } 8580objdir=$lt_cv_objdir 8581 8582 8583 8584 8585 8586cat >>confdefs.h <<_ACEOF 8587#define LT_OBJDIR "$lt_cv_objdir/" 8588_ACEOF 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606case $host_os in 8607aix3*) 8608 # AIX sometimes has problems with the GCC collect2 program. For some 8609 # reason, if we set the COLLECT_NAMES environment variable, the problems 8610 # vanish in a puff of smoke. 8611 if test "X${COLLECT_NAMES+set}" != Xset; then 8612 COLLECT_NAMES= 8613 export COLLECT_NAMES 8614 fi 8615 ;; 8616esac 8617 8618# Sed substitution that helps us do robust quoting. It backslashifies 8619# metacharacters that are still active within double-quoted strings. 8620sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8621 8622# Same as above, but do not quote variable references. 8623double_quote_subst='s/\(["`\\]\)/\\\1/g' 8624 8625# Sed substitution to delay expansion of an escaped shell variable in a 8626# double_quote_subst'ed string. 8627delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8628 8629# Sed substitution to delay expansion of an escaped single quote. 8630delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8631 8632# Sed substitution to avoid accidental globbing in evaled expressions 8633no_glob_subst='s/\*/\\\*/g' 8634 8635# Global variables: 8636ofile=libtool 8637can_build_shared=yes 8638 8639# All known linkers require a `.a' archive for static linking (except MSVC, 8640# which needs '.lib'). 8641libext=a 8642 8643with_gnu_ld="$lt_cv_prog_gnu_ld" 8644 8645old_CC="$CC" 8646old_CFLAGS="$CFLAGS" 8647 8648# Set sane defaults for various variables 8649test -z "$CC" && CC=cc 8650test -z "$LTCC" && LTCC=$CC 8651test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8652test -z "$LD" && LD=ld 8653test -z "$ac_objext" && ac_objext=o 8654 8655for cc_temp in $compiler""; do 8656 case $cc_temp in 8657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8659 \-*) ;; 8660 *) break;; 8661 esac 8662done 8663cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8664 8665 8666# Only perform the check for file, if the check method requires it 8667test -z "$MAGIC_CMD" && MAGIC_CMD=file 8668case $deplibs_check_method in 8669file_magic*) 8670 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8671 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8672$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8673if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8674 $as_echo_n "(cached) " >&6 8675else 8676 case $MAGIC_CMD in 8677[\\/*] | ?:[\\/]*) 8678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8679 ;; 8680*) 8681 lt_save_MAGIC_CMD="$MAGIC_CMD" 8682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8684 for ac_dir in $ac_dummy; do 8685 IFS="$lt_save_ifs" 8686 test -z "$ac_dir" && ac_dir=. 8687 if test -f $ac_dir/${ac_tool_prefix}file; then 8688 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8689 if test -n "$file_magic_test_file"; then 8690 case $deplibs_check_method in 8691 "file_magic "*) 8692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8695 $EGREP "$file_magic_regex" > /dev/null; then 8696 : 8697 else 8698 cat <<_LT_EOF 1>&2 8699 8700*** Warning: the command libtool uses to detect shared libraries, 8701*** $file_magic_cmd, produces output that libtool cannot recognize. 8702*** The result is that libtool may fail to recognize shared libraries 8703*** as such. This will affect the creation of libtool libraries that 8704*** depend on shared libraries, but programs linked with such libtool 8705*** libraries will work regardless of this problem. Nevertheless, you 8706*** may want to report the problem to your system manager and/or to 8707*** bug-libtool@gnu.org 8708 8709_LT_EOF 8710 fi ;; 8711 esac 8712 fi 8713 break 8714 fi 8715 done 8716 IFS="$lt_save_ifs" 8717 MAGIC_CMD="$lt_save_MAGIC_CMD" 8718 ;; 8719esac 8720fi 8721 8722MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8723if test -n "$MAGIC_CMD"; then 8724 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8725$as_echo "$MAGIC_CMD" >&6; } 8726else 8727 { $as_echo "$as_me:$LINENO: result: no" >&5 8728$as_echo "no" >&6; } 8729fi 8730 8731 8732 8733 8734 8735if test -z "$lt_cv_path_MAGIC_CMD"; then 8736 if test -n "$ac_tool_prefix"; then 8737 { $as_echo "$as_me:$LINENO: checking for file" >&5 8738$as_echo_n "checking for file... " >&6; } 8739if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8740 $as_echo_n "(cached) " >&6 8741else 8742 case $MAGIC_CMD in 8743[\\/*] | ?:[\\/]*) 8744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8745 ;; 8746*) 8747 lt_save_MAGIC_CMD="$MAGIC_CMD" 8748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8750 for ac_dir in $ac_dummy; do 8751 IFS="$lt_save_ifs" 8752 test -z "$ac_dir" && ac_dir=. 8753 if test -f $ac_dir/file; then 8754 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8755 if test -n "$file_magic_test_file"; then 8756 case $deplibs_check_method in 8757 "file_magic "*) 8758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8761 $EGREP "$file_magic_regex" > /dev/null; then 8762 : 8763 else 8764 cat <<_LT_EOF 1>&2 8765 8766*** Warning: the command libtool uses to detect shared libraries, 8767*** $file_magic_cmd, produces output that libtool cannot recognize. 8768*** The result is that libtool may fail to recognize shared libraries 8769*** as such. This will affect the creation of libtool libraries that 8770*** depend on shared libraries, but programs linked with such libtool 8771*** libraries will work regardless of this problem. Nevertheless, you 8772*** may want to report the problem to your system manager and/or to 8773*** bug-libtool@gnu.org 8774 8775_LT_EOF 8776 fi ;; 8777 esac 8778 fi 8779 break 8780 fi 8781 done 8782 IFS="$lt_save_ifs" 8783 MAGIC_CMD="$lt_save_MAGIC_CMD" 8784 ;; 8785esac 8786fi 8787 8788MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8789if test -n "$MAGIC_CMD"; then 8790 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8791$as_echo "$MAGIC_CMD" >&6; } 8792else 8793 { $as_echo "$as_me:$LINENO: result: no" >&5 8794$as_echo "no" >&6; } 8795fi 8796 8797 8798 else 8799 MAGIC_CMD=: 8800 fi 8801fi 8802 8803 fi 8804 ;; 8805esac 8806 8807# Use C for the default configuration in the libtool script 8808 8809lt_save_CC="$CC" 8810ac_ext=c 8811ac_cpp='$CPP $CPPFLAGS' 8812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8814ac_compiler_gnu=$ac_cv_c_compiler_gnu 8815 8816 8817# Source file extension for C test sources. 8818ac_ext=c 8819 8820# Object file extension for compiled C test sources. 8821objext=o 8822objext=$objext 8823 8824# Code to be used in simple compile tests 8825lt_simple_compile_test_code="int some_variable = 0;" 8826 8827# Code to be used in simple link tests 8828lt_simple_link_test_code='int main(){return(0);}' 8829 8830 8831 8832 8833 8834 8835 8836# If no C compiler was specified, use CC. 8837LTCC=${LTCC-"$CC"} 8838 8839# If no C compiler flags were specified, use CFLAGS. 8840LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8841 8842# Allow CC to be a program name with arguments. 8843compiler=$CC 8844 8845# Save the default compiler, since it gets overwritten when the other 8846# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8847compiler_DEFAULT=$CC 8848 8849# save warnings/boilerplate of simple test code 8850ac_outfile=conftest.$ac_objext 8851echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8853_lt_compiler_boilerplate=`cat conftest.err` 8854$RM conftest* 8855 8856ac_outfile=conftest.$ac_objext 8857echo "$lt_simple_link_test_code" >conftest.$ac_ext 8858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8859_lt_linker_boilerplate=`cat conftest.err` 8860$RM -r conftest* 8861 8862 8863## CAVEAT EMPTOR: 8864## There is no encapsulation within the following macros, do not change 8865## the running order or otherwise move them around unless you know exactly 8866## what you are doing... 8867if test -n "$compiler"; then 8868 8869lt_prog_compiler_no_builtin_flag= 8870 8871if test "$GCC" = yes; then 8872 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8873 8874 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8875$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8876if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8877 $as_echo_n "(cached) " >&6 8878else 8879 lt_cv_prog_compiler_rtti_exceptions=no 8880 ac_outfile=conftest.$ac_objext 8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8882 lt_compiler_flag="-fno-rtti -fno-exceptions" 8883 # Insert the option either (1) after the last *FLAGS variable, or 8884 # (2) before a word containing "conftest.", or (3) at the end. 8885 # Note that $ac_compile itself does not contain backslashes and begins 8886 # with a dollar sign (not a hyphen), so the echo should work correctly. 8887 # The option is referenced via a variable to avoid confusing sed. 8888 lt_compile=`echo "$ac_compile" | $SED \ 8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8891 -e 's:$: $lt_compiler_flag:'` 8892 (eval echo "\"\$as_me:8892: $lt_compile\"" >&5) 8893 (eval "$lt_compile" 2>conftest.err) 8894 ac_status=$? 8895 cat conftest.err >&5 8896 echo "$as_me:8896: \$? = $ac_status" >&5 8897 if (exit $ac_status) && test -s "$ac_outfile"; then 8898 # The compiler can only warn and ignore the option if not recognized 8899 # So say no if there are warnings other than the usual output. 8900 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8903 lt_cv_prog_compiler_rtti_exceptions=yes 8904 fi 8905 fi 8906 $RM conftest* 8907 8908fi 8909{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8910$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8911 8912if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8913 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8914else 8915 : 8916fi 8917 8918fi 8919 8920 8921 8922 8923 8924 8925 lt_prog_compiler_wl= 8926lt_prog_compiler_pic= 8927lt_prog_compiler_static= 8928 8929{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8930$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8931 8932 if test "$GCC" = yes; then 8933 lt_prog_compiler_wl='-Wl,' 8934 lt_prog_compiler_static='-static' 8935 8936 case $host_os in 8937 aix*) 8938 # All AIX code is PIC. 8939 if test "$host_cpu" = ia64; then 8940 # AIX 5 now supports IA64 processor 8941 lt_prog_compiler_static='-Bstatic' 8942 fi 8943 ;; 8944 8945 amigaos*) 8946 case $host_cpu in 8947 powerpc) 8948 # see comment about AmigaOS4 .so support 8949 lt_prog_compiler_pic='-fPIC' 8950 ;; 8951 m68k) 8952 # FIXME: we need at least 68020 code to build shared libraries, but 8953 # adding the `-m68020' flag to GCC prevents building anything better, 8954 # like `-m68040'. 8955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8956 ;; 8957 esac 8958 ;; 8959 8960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8961 # PIC is the default for these OSes. 8962 ;; 8963 8964 mingw* | cygwin* | pw32* | os2* | cegcc*) 8965 # This hack is so that the source file can tell whether it is being 8966 # built for inclusion in a dll (and should export symbols for example). 8967 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8968 # (--disable-auto-import) libraries 8969 lt_prog_compiler_pic='-DDLL_EXPORT' 8970 ;; 8971 8972 darwin* | rhapsody*) 8973 # PIC is the default on this platform 8974 # Common symbols not allowed in MH_DYLIB files 8975 lt_prog_compiler_pic='-fno-common' 8976 ;; 8977 8978 hpux*) 8979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8981 # sets the default TLS model and affects inlining. 8982 case $host_cpu in 8983 hppa*64*) 8984 # +Z the default 8985 ;; 8986 *) 8987 lt_prog_compiler_pic='-fPIC' 8988 ;; 8989 esac 8990 ;; 8991 8992 interix[3-9]*) 8993 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8994 # Instead, we relocate shared libraries at runtime. 8995 ;; 8996 8997 msdosdjgpp*) 8998 # Just because we use GCC doesn't mean we suddenly get shared libraries 8999 # on systems that don't support them. 9000 lt_prog_compiler_can_build_shared=no 9001 enable_shared=no 9002 ;; 9003 9004 *nto* | *qnx*) 9005 # QNX uses GNU C++, but need to define -shared option too, otherwise 9006 # it will coredump. 9007 lt_prog_compiler_pic='-fPIC -shared' 9008 ;; 9009 9010 sysv4*MP*) 9011 if test -d /usr/nec; then 9012 lt_prog_compiler_pic=-Kconform_pic 9013 fi 9014 ;; 9015 9016 *) 9017 lt_prog_compiler_pic='-fPIC' 9018 ;; 9019 esac 9020 else 9021 # PORTME Check for flag to pass linker flags through the system compiler. 9022 case $host_os in 9023 aix*) 9024 lt_prog_compiler_wl='-Wl,' 9025 if test "$host_cpu" = ia64; then 9026 # AIX 5 now supports IA64 processor 9027 lt_prog_compiler_static='-Bstatic' 9028 else 9029 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9030 fi 9031 ;; 9032 9033 mingw* | cygwin* | pw32* | os2* | cegcc*) 9034 # This hack is so that the source file can tell whether it is being 9035 # built for inclusion in a dll (and should export symbols for example). 9036 lt_prog_compiler_pic='-DDLL_EXPORT' 9037 ;; 9038 9039 hpux9* | hpux10* | hpux11*) 9040 lt_prog_compiler_wl='-Wl,' 9041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9042 # not for PA HP-UX. 9043 case $host_cpu in 9044 hppa*64*|ia64*) 9045 # +Z the default 9046 ;; 9047 *) 9048 lt_prog_compiler_pic='+Z' 9049 ;; 9050 esac 9051 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9052 lt_prog_compiler_static='${wl}-a ${wl}archive' 9053 ;; 9054 9055 irix5* | irix6* | nonstopux*) 9056 lt_prog_compiler_wl='-Wl,' 9057 # PIC (with -KPIC) is the default. 9058 lt_prog_compiler_static='-non_shared' 9059 ;; 9060 9061 linux* | k*bsd*-gnu) 9062 case $cc_basename in 9063 # old Intel for x86_64 which still supported -KPIC. 9064 ecc*) 9065 lt_prog_compiler_wl='-Wl,' 9066 lt_prog_compiler_pic='-KPIC' 9067 lt_prog_compiler_static='-static' 9068 ;; 9069 # icc used to be incompatible with GCC. 9070 # ICC 10 doesn't accept -KPIC any more. 9071 icc* | ifort*) 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-fPIC' 9074 lt_prog_compiler_static='-static' 9075 ;; 9076 # Lahey Fortran 8.1. 9077 lf95*) 9078 lt_prog_compiler_wl='-Wl,' 9079 lt_prog_compiler_pic='--shared' 9080 lt_prog_compiler_static='--static' 9081 ;; 9082 pgcc* | pgf77* | pgf90* | pgf95*) 9083 # Portland Group compilers (*not* the Pentium gcc compiler, 9084 # which looks to be a dead project) 9085 lt_prog_compiler_wl='-Wl,' 9086 lt_prog_compiler_pic='-fpic' 9087 lt_prog_compiler_static='-Bstatic' 9088 ;; 9089 ccc*) 9090 lt_prog_compiler_wl='-Wl,' 9091 # All Alpha code is PIC. 9092 lt_prog_compiler_static='-non_shared' 9093 ;; 9094 xl*) 9095 # IBM XL C 8.0/Fortran 10.1 on PPC 9096 lt_prog_compiler_wl='-Wl,' 9097 lt_prog_compiler_pic='-qpic' 9098 lt_prog_compiler_static='-qstaticlink' 9099 ;; 9100 *) 9101 case `$CC -V 2>&1 | sed 5q` in 9102 *Sun\ C*) 9103 # Sun C 5.9 9104 lt_prog_compiler_pic='-KPIC' 9105 lt_prog_compiler_static='-Bstatic' 9106 lt_prog_compiler_wl='-Wl,' 9107 ;; 9108 *Sun\ F*) 9109 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9110 lt_prog_compiler_pic='-KPIC' 9111 lt_prog_compiler_static='-Bstatic' 9112 lt_prog_compiler_wl='' 9113 ;; 9114 esac 9115 ;; 9116 esac 9117 ;; 9118 9119 newsos6) 9120 lt_prog_compiler_pic='-KPIC' 9121 lt_prog_compiler_static='-Bstatic' 9122 ;; 9123 9124 *nto* | *qnx*) 9125 # QNX uses GNU C++, but need to define -shared option too, otherwise 9126 # it will coredump. 9127 lt_prog_compiler_pic='-fPIC -shared' 9128 ;; 9129 9130 osf3* | osf4* | osf5*) 9131 lt_prog_compiler_wl='-Wl,' 9132 # All OSF/1 code is PIC. 9133 lt_prog_compiler_static='-non_shared' 9134 ;; 9135 9136 rdos*) 9137 lt_prog_compiler_static='-non_shared' 9138 ;; 9139 9140 solaris*) 9141 lt_prog_compiler_pic='-KPIC' 9142 lt_prog_compiler_static='-Bstatic' 9143 case $cc_basename in 9144 f77* | f90* | f95*) 9145 lt_prog_compiler_wl='-Qoption ld ';; 9146 *) 9147 lt_prog_compiler_wl='-Wl,';; 9148 esac 9149 ;; 9150 9151 sunos4*) 9152 lt_prog_compiler_wl='-Qoption ld ' 9153 lt_prog_compiler_pic='-PIC' 9154 lt_prog_compiler_static='-Bstatic' 9155 ;; 9156 9157 sysv4 | sysv4.2uw2* | sysv4.3*) 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-KPIC' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 9163 sysv4*MP*) 9164 if test -d /usr/nec ;then 9165 lt_prog_compiler_pic='-Kconform_pic' 9166 lt_prog_compiler_static='-Bstatic' 9167 fi 9168 ;; 9169 9170 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9171 lt_prog_compiler_wl='-Wl,' 9172 lt_prog_compiler_pic='-KPIC' 9173 lt_prog_compiler_static='-Bstatic' 9174 ;; 9175 9176 unicos*) 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_can_build_shared=no 9179 ;; 9180 9181 uts4*) 9182 lt_prog_compiler_pic='-pic' 9183 lt_prog_compiler_static='-Bstatic' 9184 ;; 9185 9186 *) 9187 lt_prog_compiler_can_build_shared=no 9188 ;; 9189 esac 9190 fi 9191 9192case $host_os in 9193 # For platforms which do not support PIC, -DPIC is meaningless: 9194 *djgpp*) 9195 lt_prog_compiler_pic= 9196 ;; 9197 *) 9198 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9199 ;; 9200esac 9201{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9202$as_echo "$lt_prog_compiler_pic" >&6; } 9203 9204 9205 9206 9207 9208 9209# 9210# Check to make sure the PIC flag actually works. 9211# 9212if test -n "$lt_prog_compiler_pic"; then 9213 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9214$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9215if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9216 $as_echo_n "(cached) " >&6 9217else 9218 lt_cv_prog_compiler_pic_works=no 9219 ac_outfile=conftest.$ac_objext 9220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9221 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9222 # Insert the option either (1) after the last *FLAGS variable, or 9223 # (2) before a word containing "conftest.", or (3) at the end. 9224 # Note that $ac_compile itself does not contain backslashes and begins 9225 # with a dollar sign (not a hyphen), so the echo should work correctly. 9226 # The option is referenced via a variable to avoid confusing sed. 9227 lt_compile=`echo "$ac_compile" | $SED \ 9228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9230 -e 's:$: $lt_compiler_flag:'` 9231 (eval echo "\"\$as_me:9231: $lt_compile\"" >&5) 9232 (eval "$lt_compile" 2>conftest.err) 9233 ac_status=$? 9234 cat conftest.err >&5 9235 echo "$as_me:9235: \$? = $ac_status" >&5 9236 if (exit $ac_status) && test -s "$ac_outfile"; then 9237 # The compiler can only warn and ignore the option if not recognized 9238 # So say no if there are warnings other than the usual output. 9239 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9242 lt_cv_prog_compiler_pic_works=yes 9243 fi 9244 fi 9245 $RM conftest* 9246 9247fi 9248{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9249$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9250 9251if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9252 case $lt_prog_compiler_pic in 9253 "" | " "*) ;; 9254 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9255 esac 9256else 9257 lt_prog_compiler_pic= 9258 lt_prog_compiler_can_build_shared=no 9259fi 9260 9261fi 9262 9263 9264 9265 9266 9267 9268# 9269# Check to make sure the static flag actually works. 9270# 9271wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9272{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9273$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9274if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9275 $as_echo_n "(cached) " >&6 9276else 9277 lt_cv_prog_compiler_static_works=no 9278 save_LDFLAGS="$LDFLAGS" 9279 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9280 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9282 # The linker can only warn and ignore the option if not recognized 9283 # So say no if there are warnings 9284 if test -s conftest.err; then 9285 # Append any errors to the config.log. 9286 cat conftest.err 1>&5 9287 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9289 if diff conftest.exp conftest.er2 >/dev/null; then 9290 lt_cv_prog_compiler_static_works=yes 9291 fi 9292 else 9293 lt_cv_prog_compiler_static_works=yes 9294 fi 9295 fi 9296 $RM -r conftest* 9297 LDFLAGS="$save_LDFLAGS" 9298 9299fi 9300{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9301$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9302 9303if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9304 : 9305else 9306 lt_prog_compiler_static= 9307fi 9308 9309 9310 9311 9312 9313 9314 9315 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9316$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9317if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9318 $as_echo_n "(cached) " >&6 9319else 9320 lt_cv_prog_compiler_c_o=no 9321 $RM -r conftest 2>/dev/null 9322 mkdir conftest 9323 cd conftest 9324 mkdir out 9325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9326 9327 lt_compiler_flag="-o out/conftest2.$ac_objext" 9328 # Insert the option either (1) after the last *FLAGS variable, or 9329 # (2) before a word containing "conftest.", or (3) at the end. 9330 # Note that $ac_compile itself does not contain backslashes and begins 9331 # with a dollar sign (not a hyphen), so the echo should work correctly. 9332 lt_compile=`echo "$ac_compile" | $SED \ 9333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9335 -e 's:$: $lt_compiler_flag:'` 9336 (eval echo "\"\$as_me:9336: $lt_compile\"" >&5) 9337 (eval "$lt_compile" 2>out/conftest.err) 9338 ac_status=$? 9339 cat out/conftest.err >&5 9340 echo "$as_me:9340: \$? = $ac_status" >&5 9341 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9342 then 9343 # The compiler can only warn and ignore the option if not recognized 9344 # So say no if there are warnings 9345 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9348 lt_cv_prog_compiler_c_o=yes 9349 fi 9350 fi 9351 chmod u+w . 2>&5 9352 $RM conftest* 9353 # SGI C++ compiler will create directory out/ii_files/ for 9354 # template instantiation 9355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9356 $RM out/* && rmdir out 9357 cd .. 9358 $RM -r conftest 9359 $RM conftest* 9360 9361fi 9362{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9363$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9364 9365 9366 9367 9368 9369 9370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9372if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9373 $as_echo_n "(cached) " >&6 9374else 9375 lt_cv_prog_compiler_c_o=no 9376 $RM -r conftest 2>/dev/null 9377 mkdir conftest 9378 cd conftest 9379 mkdir out 9380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9381 9382 lt_compiler_flag="-o out/conftest2.$ac_objext" 9383 # Insert the option either (1) after the last *FLAGS variable, or 9384 # (2) before a word containing "conftest.", or (3) at the end. 9385 # Note that $ac_compile itself does not contain backslashes and begins 9386 # with a dollar sign (not a hyphen), so the echo should work correctly. 9387 lt_compile=`echo "$ac_compile" | $SED \ 9388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9390 -e 's:$: $lt_compiler_flag:'` 9391 (eval echo "\"\$as_me:9391: $lt_compile\"" >&5) 9392 (eval "$lt_compile" 2>out/conftest.err) 9393 ac_status=$? 9394 cat out/conftest.err >&5 9395 echo "$as_me:9395: \$? = $ac_status" >&5 9396 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9397 then 9398 # The compiler can only warn and ignore the option if not recognized 9399 # So say no if there are warnings 9400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9403 lt_cv_prog_compiler_c_o=yes 9404 fi 9405 fi 9406 chmod u+w . 2>&5 9407 $RM conftest* 9408 # SGI C++ compiler will create directory out/ii_files/ for 9409 # template instantiation 9410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9411 $RM out/* && rmdir out 9412 cd .. 9413 $RM -r conftest 9414 $RM conftest* 9415 9416fi 9417{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9418$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9419 9420 9421 9422 9423hard_links="nottested" 9424if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9425 # do not overwrite the value of need_locks provided by the user 9426 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9427$as_echo_n "checking if we can lock with hard links... " >&6; } 9428 hard_links=yes 9429 $RM conftest* 9430 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9431 touch conftest.a 9432 ln conftest.a conftest.b 2>&5 || hard_links=no 9433 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9434 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9435$as_echo "$hard_links" >&6; } 9436 if test "$hard_links" = no; then 9437 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9438$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9439 need_locks=warn 9440 fi 9441else 9442 need_locks=no 9443fi 9444 9445 9446 9447 9448 9449 9450 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9451$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9452 9453 runpath_var= 9454 allow_undefined_flag= 9455 always_export_symbols=no 9456 archive_cmds= 9457 archive_expsym_cmds= 9458 compiler_needs_object=no 9459 enable_shared_with_static_runtimes=no 9460 export_dynamic_flag_spec= 9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9462 hardcode_automatic=no 9463 hardcode_direct=no 9464 hardcode_direct_absolute=no 9465 hardcode_libdir_flag_spec= 9466 hardcode_libdir_flag_spec_ld= 9467 hardcode_libdir_separator= 9468 hardcode_minus_L=no 9469 hardcode_shlibpath_var=unsupported 9470 inherit_rpath=no 9471 link_all_deplibs=unknown 9472 module_cmds= 9473 module_expsym_cmds= 9474 old_archive_from_new_cmds= 9475 old_archive_from_expsyms_cmds= 9476 thread_safe_flag_spec= 9477 whole_archive_flag_spec= 9478 # include_expsyms should be a list of space-separated symbols to be *always* 9479 # included in the symbol list 9480 include_expsyms= 9481 # exclude_expsyms can be an extended regexp of symbols to exclude 9482 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9483 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9484 # as well as any symbol that contains `d'. 9485 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9486 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9487 # platforms (ab)use it in PIC code, but their linkers get confused if 9488 # the symbol is explicitly referenced. Since portable code cannot 9489 # rely on this symbol name, it's probably fine to never include it in 9490 # preloaded symbol tables. 9491 # Exclude shared library initialization/finalization symbols. 9492 extract_expsyms_cmds= 9493 9494 case $host_os in 9495 cygwin* | mingw* | pw32* | cegcc*) 9496 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9497 # When not using gcc, we currently assume that we are using 9498 # Microsoft Visual C++. 9499 if test "$GCC" != yes; then 9500 with_gnu_ld=no 9501 fi 9502 ;; 9503 interix*) 9504 # we just hope/assume this is gcc and not c89 (= MSVC++) 9505 with_gnu_ld=yes 9506 ;; 9507 openbsd*) 9508 with_gnu_ld=no 9509 ;; 9510 esac 9511 9512 ld_shlibs=yes 9513 if test "$with_gnu_ld" = yes; then 9514 # If archive_cmds runs LD, not CC, wlarc should be empty 9515 wlarc='${wl}' 9516 9517 # Set some defaults for GNU ld with shared library support. These 9518 # are reset later if shared libraries are not supported. Putting them 9519 # here allows them to be overridden if necessary. 9520 runpath_var=LD_RUN_PATH 9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9522 export_dynamic_flag_spec='${wl}--export-dynamic' 9523 # ancient GNU ld didn't support --whole-archive et. al. 9524 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9525 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9526 else 9527 whole_archive_flag_spec= 9528 fi 9529 supports_anon_versioning=no 9530 case `$LD -v 2>&1` in 9531 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9532 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9533 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9534 *\ 2.11.*) ;; # other 2.11 versions 9535 *) supports_anon_versioning=yes ;; 9536 esac 9537 9538 # See if GNU ld supports shared libraries. 9539 case $host_os in 9540 aix[3-9]*) 9541 # On AIX/PPC, the GNU linker is very broken 9542 if test "$host_cpu" != ia64; then 9543 ld_shlibs=no 9544 cat <<_LT_EOF 1>&2 9545 9546*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9547*** to be unable to reliably create shared libraries on AIX. 9548*** Therefore, libtool is disabling shared libraries support. If you 9549*** really care for shared libraries, you may want to modify your PATH 9550*** so that a non-GNU linker is found, and then restart. 9551 9552_LT_EOF 9553 fi 9554 ;; 9555 9556 amigaos*) 9557 case $host_cpu in 9558 powerpc) 9559 # see comment about AmigaOS4 .so support 9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9561 archive_expsym_cmds='' 9562 ;; 9563 m68k) 9564 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)' 9565 hardcode_libdir_flag_spec='-L$libdir' 9566 hardcode_minus_L=yes 9567 ;; 9568 esac 9569 ;; 9570 9571 beos*) 9572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9573 allow_undefined_flag=unsupported 9574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9575 # support --undefined. This deserves some investigation. FIXME 9576 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9577 else 9578 ld_shlibs=no 9579 fi 9580 ;; 9581 9582 cygwin* | mingw* | pw32* | cegcc*) 9583 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9584 # as there is no search path for DLLs. 9585 hardcode_libdir_flag_spec='-L$libdir' 9586 allow_undefined_flag=unsupported 9587 always_export_symbols=no 9588 enable_shared_with_static_runtimes=yes 9589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9590 9591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9593 # If the export-symbols file already is a .def file (1st line 9594 # is EXPORTS), use it as is; otherwise, prepend... 9595 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9596 cp $export_symbols $output_objdir/$soname.def; 9597 else 9598 echo EXPORTS > $output_objdir/$soname.def; 9599 cat $export_symbols >> $output_objdir/$soname.def; 9600 fi~ 9601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9602 else 9603 ld_shlibs=no 9604 fi 9605 ;; 9606 9607 interix[3-9]*) 9608 hardcode_direct=no 9609 hardcode_shlibpath_var=no 9610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9611 export_dynamic_flag_spec='${wl}-E' 9612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9613 # Instead, shared libraries are loaded at an image base (0x10000000 by 9614 # default) and relocated if they conflict, which is a slow very memory 9615 # consuming and fragmenting process. To avoid this, we pick a random, 9616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9617 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9619 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' 9620 ;; 9621 9622 gnu* | linux* | tpf* | k*bsd*-gnu) 9623 tmp_diet=no 9624 if test "$host_os" = linux-dietlibc; then 9625 case $cc_basename in 9626 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9627 esac 9628 fi 9629 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9630 && test "$tmp_diet" = no 9631 then 9632 tmp_addflag= 9633 tmp_sharedflag='-shared' 9634 case $cc_basename,$host_cpu in 9635 pgcc*) # Portland Group C compiler 9636 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' 9637 tmp_addflag=' $pic_flag' 9638 ;; 9639 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9640 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' 9641 tmp_addflag=' $pic_flag -Mnomain' ;; 9642 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9643 tmp_addflag=' -i_dynamic' ;; 9644 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9645 tmp_addflag=' -i_dynamic -nofor_main' ;; 9646 ifc* | ifort*) # Intel Fortran compiler 9647 tmp_addflag=' -nofor_main' ;; 9648 lf95*) # Lahey Fortran 8.1 9649 whole_archive_flag_spec= 9650 tmp_sharedflag='--shared' ;; 9651 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9652 tmp_sharedflag='-qmkshrobj' 9653 tmp_addflag= ;; 9654 esac 9655 case `$CC -V 2>&1 | sed 5q` in 9656 *Sun\ C*) # Sun C 5.9 9657 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' 9658 compiler_needs_object=yes 9659 tmp_sharedflag='-G' ;; 9660 *Sun\ F*) # Sun Fortran 8.3 9661 tmp_sharedflag='-G' ;; 9662 esac 9663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9664 9665 if test "x$supports_anon_versioning" = xyes; then 9666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9668 echo "local: *; };" >> $output_objdir/$libname.ver~ 9669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9670 fi 9671 9672 case $cc_basename in 9673 xlf*) 9674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9676 hardcode_libdir_flag_spec= 9677 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9678 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9679 if test "x$supports_anon_versioning" = xyes; then 9680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9682 echo "local: *; };" >> $output_objdir/$libname.ver~ 9683 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9684 fi 9685 ;; 9686 esac 9687 else 9688 ld_shlibs=no 9689 fi 9690 ;; 9691 9692 netbsd*) 9693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9695 wlarc= 9696 else 9697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9699 fi 9700 ;; 9701 9702 solaris*) 9703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9704 ld_shlibs=no 9705 cat <<_LT_EOF 1>&2 9706 9707*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9708*** create shared libraries on Solaris systems. Therefore, libtool 9709*** is disabling shared libraries support. We urge you to upgrade GNU 9710*** binutils to release 2.9.1 or newer. Another option is to modify 9711*** your PATH or compiler configuration so that the native linker is 9712*** used, and then restart. 9713 9714_LT_EOF 9715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9718 else 9719 ld_shlibs=no 9720 fi 9721 ;; 9722 9723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9724 case `$LD -v 2>&1` in 9725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9726 ld_shlibs=no 9727 cat <<_LT_EOF 1>&2 9728 9729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9730*** reliably create shared libraries on SCO systems. Therefore, libtool 9731*** is disabling shared libraries support. We urge you to upgrade GNU 9732*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9733*** your PATH or compiler configuration so that the native linker is 9734*** used, and then restart. 9735 9736_LT_EOF 9737 ;; 9738 *) 9739 # For security reasons, it is highly recommended that you always 9740 # use absolute paths for naming shared libraries, and exclude the 9741 # DT_RUNPATH tag from executables and libraries. But doing so 9742 # requires that you compile everything twice, which is a pain. 9743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9747 else 9748 ld_shlibs=no 9749 fi 9750 ;; 9751 esac 9752 ;; 9753 9754 sunos4*) 9755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9756 wlarc= 9757 hardcode_direct=yes 9758 hardcode_shlibpath_var=no 9759 ;; 9760 9761 *) 9762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9765 else 9766 ld_shlibs=no 9767 fi 9768 ;; 9769 esac 9770 9771 if test "$ld_shlibs" = no; then 9772 runpath_var= 9773 hardcode_libdir_flag_spec= 9774 export_dynamic_flag_spec= 9775 whole_archive_flag_spec= 9776 fi 9777 else 9778 # PORTME fill in a description of your system's linker (not GNU ld) 9779 case $host_os in 9780 aix3*) 9781 allow_undefined_flag=unsupported 9782 always_export_symbols=yes 9783 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' 9784 # Note: this linker hardcodes the directories in LIBPATH if there 9785 # are no directories specified by -L. 9786 hardcode_minus_L=yes 9787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9788 # Neither direct hardcoding nor static linking is supported with a 9789 # broken collect2. 9790 hardcode_direct=unsupported 9791 fi 9792 ;; 9793 9794 aix[4-9]*) 9795 if test "$host_cpu" = ia64; then 9796 # On IA64, the linker does run time linking by default, so we don't 9797 # have to do anything special. 9798 aix_use_runtimelinking=no 9799 exp_sym_flag='-Bexport' 9800 no_entry_flag="" 9801 else 9802 # If we're using GNU nm, then we don't want the "-C" option. 9803 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9804 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9805 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' 9806 else 9807 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' 9808 fi 9809 aix_use_runtimelinking=no 9810 9811 # Test if we are trying to use run time linking or normal 9812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9813 # need to do runtime linking. 9814 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9815 for ld_flag in $LDFLAGS; do 9816 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9817 aix_use_runtimelinking=yes 9818 break 9819 fi 9820 done 9821 ;; 9822 esac 9823 9824 exp_sym_flag='-bexport' 9825 no_entry_flag='-bnoentry' 9826 fi 9827 9828 # When large executables or shared objects are built, AIX ld can 9829 # have problems creating the table of contents. If linking a library 9830 # or program results in "error TOC overflow" add -mminimal-toc to 9831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9833 9834 archive_cmds='' 9835 hardcode_direct=yes 9836 hardcode_direct_absolute=yes 9837 hardcode_libdir_separator=':' 9838 link_all_deplibs=yes 9839 file_list_spec='${wl}-f,' 9840 9841 if test "$GCC" = yes; then 9842 case $host_os in aix4.[012]|aix4.[012].*) 9843 # We only want to do this on AIX 4.2 and lower, the check 9844 # below for broken collect2 doesn't work under 4.3+ 9845 collect2name=`${CC} -print-prog-name=collect2` 9846 if test -f "$collect2name" && 9847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9848 then 9849 # We have reworked collect2 9850 : 9851 else 9852 # We have old collect2 9853 hardcode_direct=unsupported 9854 # It fails to find uninstalled libraries when the uninstalled 9855 # path is not listed in the libpath. Setting hardcode_minus_L 9856 # to unsupported forces relinking 9857 hardcode_minus_L=yes 9858 hardcode_libdir_flag_spec='-L$libdir' 9859 hardcode_libdir_separator= 9860 fi 9861 ;; 9862 esac 9863 shared_flag='-shared' 9864 if test "$aix_use_runtimelinking" = yes; then 9865 shared_flag="$shared_flag "'${wl}-G' 9866 fi 9867 else 9868 # not using gcc 9869 if test "$host_cpu" = ia64; then 9870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9871 # chokes on -Wl,-G. The following line is correct: 9872 shared_flag='-G' 9873 else 9874 if test "$aix_use_runtimelinking" = yes; then 9875 shared_flag='${wl}-G' 9876 else 9877 shared_flag='${wl}-bM:SRE' 9878 fi 9879 fi 9880 fi 9881 9882 export_dynamic_flag_spec='${wl}-bexpall' 9883 # It seems that -bexpall does not export symbols beginning with 9884 # underscore (_), so it is better to generate a list of symbols to export. 9885 always_export_symbols=yes 9886 if test "$aix_use_runtimelinking" = yes; then 9887 # Warning - without using the other runtime loading flags (-brtl), 9888 # -berok will link without error, but may produce a broken library. 9889 allow_undefined_flag='-berok' 9890 # Determine the default libpath from the value encoded in an 9891 # empty executable. 9892 cat >conftest.$ac_ext <<_ACEOF 9893/* confdefs.h. */ 9894_ACEOF 9895cat confdefs.h >>conftest.$ac_ext 9896cat >>conftest.$ac_ext <<_ACEOF 9897/* end confdefs.h. */ 9898 9899int 9900main () 9901{ 9902 9903 ; 9904 return 0; 9905} 9906_ACEOF 9907rm -f conftest.$ac_objext conftest$ac_exeext 9908if { (ac_try="$ac_link" 9909case "(($ac_try" in 9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9911 *) ac_try_echo=$ac_try;; 9912esac 9913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9914$as_echo "$ac_try_echo") >&5 9915 (eval "$ac_link") 2>conftest.er1 9916 ac_status=$? 9917 grep -v '^ *+' conftest.er1 >conftest.err 9918 rm -f conftest.er1 9919 cat conftest.err >&5 9920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); } && { 9922 test -z "$ac_c_werror_flag" || 9923 test ! -s conftest.err 9924 } && test -s conftest$ac_exeext && { 9925 test "$cross_compiling" = yes || 9926 $as_test_x conftest$ac_exeext 9927 }; then 9928 9929lt_aix_libpath_sed=' 9930 /Import File Strings/,/^$/ { 9931 /^0/ { 9932 s/^0 *\(.*\)$/\1/ 9933 p 9934 } 9935 }' 9936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9937# Check for a 64-bit object if we didn't find anything. 9938if test -z "$aix_libpath"; then 9939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9940fi 9941else 9942 $as_echo "$as_me: failed program was:" >&5 9943sed 's/^/| /' conftest.$ac_ext >&5 9944 9945 9946fi 9947 9948rm -rf conftest.dSYM 9949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9950 conftest$ac_exeext conftest.$ac_ext 9951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9952 9953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9954 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" 9955 else 9956 if test "$host_cpu" = ia64; then 9957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9958 allow_undefined_flag="-z nodefs" 9959 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" 9960 else 9961 # Determine the default libpath from the value encoded in an 9962 # empty executable. 9963 cat >conftest.$ac_ext <<_ACEOF 9964/* confdefs.h. */ 9965_ACEOF 9966cat confdefs.h >>conftest.$ac_ext 9967cat >>conftest.$ac_ext <<_ACEOF 9968/* end confdefs.h. */ 9969 9970int 9971main () 9972{ 9973 9974 ; 9975 return 0; 9976} 9977_ACEOF 9978rm -f conftest.$ac_objext conftest$ac_exeext 9979if { (ac_try="$ac_link" 9980case "(($ac_try" in 9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9982 *) ac_try_echo=$ac_try;; 9983esac 9984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9985$as_echo "$ac_try_echo") >&5 9986 (eval "$ac_link") 2>conftest.er1 9987 ac_status=$? 9988 grep -v '^ *+' conftest.er1 >conftest.err 9989 rm -f conftest.er1 9990 cat conftest.err >&5 9991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9992 (exit $ac_status); } && { 9993 test -z "$ac_c_werror_flag" || 9994 test ! -s conftest.err 9995 } && test -s conftest$ac_exeext && { 9996 test "$cross_compiling" = yes || 9997 $as_test_x conftest$ac_exeext 9998 }; then 9999 10000lt_aix_libpath_sed=' 10001 /Import File Strings/,/^$/ { 10002 /^0/ { 10003 s/^0 *\(.*\)$/\1/ 10004 p 10005 } 10006 }' 10007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10008# Check for a 64-bit object if we didn't find anything. 10009if test -z "$aix_libpath"; then 10010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10011fi 10012else 10013 $as_echo "$as_me: failed program was:" >&5 10014sed 's/^/| /' conftest.$ac_ext >&5 10015 10016 10017fi 10018 10019rm -rf conftest.dSYM 10020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10021 conftest$ac_exeext conftest.$ac_ext 10022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10023 10024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10025 # Warning - without using the other run time loading flags, 10026 # -berok will link without error, but may produce a broken library. 10027 no_undefined_flag=' ${wl}-bernotok' 10028 allow_undefined_flag=' ${wl}-berok' 10029 # Exported symbols can be pulled into shared objects from archives 10030 whole_archive_flag_spec='$convenience' 10031 archive_cmds_need_lc=yes 10032 # This is similar to how AIX traditionally builds its shared libraries. 10033 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' 10034 fi 10035 fi 10036 ;; 10037 10038 amigaos*) 10039 case $host_cpu in 10040 powerpc) 10041 # see comment about AmigaOS4 .so support 10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10043 archive_expsym_cmds='' 10044 ;; 10045 m68k) 10046 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)' 10047 hardcode_libdir_flag_spec='-L$libdir' 10048 hardcode_minus_L=yes 10049 ;; 10050 esac 10051 ;; 10052 10053 bsdi[45]*) 10054 export_dynamic_flag_spec=-rdynamic 10055 ;; 10056 10057 cygwin* | mingw* | pw32* | cegcc*) 10058 # When not using gcc, we currently assume that we are using 10059 # Microsoft Visual C++. 10060 # hardcode_libdir_flag_spec is actually meaningless, as there is 10061 # no search path for DLLs. 10062 hardcode_libdir_flag_spec=' ' 10063 allow_undefined_flag=unsupported 10064 # Tell ltmain to make .lib files, not .a files. 10065 libext=lib 10066 # Tell ltmain to make .dll files, not .so files. 10067 shrext_cmds=".dll" 10068 # FIXME: Setting linknames here is a bad hack. 10069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10070 # The linker will automatically build a .lib file if we build a DLL. 10071 old_archive_from_new_cmds='true' 10072 # FIXME: Should let the user specify the lib program. 10073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10074 fix_srcfile_path='`cygpath -w "$srcfile"`' 10075 enable_shared_with_static_runtimes=yes 10076 ;; 10077 10078 darwin* | rhapsody*) 10079 10080 10081 archive_cmds_need_lc=no 10082 hardcode_direct=no 10083 hardcode_automatic=yes 10084 hardcode_shlibpath_var=unsupported 10085 whole_archive_flag_spec='' 10086 link_all_deplibs=yes 10087 allow_undefined_flag="$_lt_dar_allow_undefined" 10088 case $cc_basename in 10089 ifort*) _lt_dar_can_shared=yes ;; 10090 *) _lt_dar_can_shared=$GCC ;; 10091 esac 10092 if test "$_lt_dar_can_shared" = "yes"; then 10093 output_verbose_link_cmd=echo 10094 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10095 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10096 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}" 10097 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}" 10098 10099 else 10100 ld_shlibs=no 10101 fi 10102 10103 ;; 10104 10105 dgux*) 10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10107 hardcode_libdir_flag_spec='-L$libdir' 10108 hardcode_shlibpath_var=no 10109 ;; 10110 10111 freebsd1*) 10112 ld_shlibs=no 10113 ;; 10114 10115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10116 # support. Future versions do this automatically, but an explicit c++rt0.o 10117 # does not break anything, and helps significantly (at the cost of a little 10118 # extra space). 10119 freebsd2.2*) 10120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10121 hardcode_libdir_flag_spec='-R$libdir' 10122 hardcode_direct=yes 10123 hardcode_shlibpath_var=no 10124 ;; 10125 10126 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10127 freebsd2*) 10128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10129 hardcode_direct=yes 10130 hardcode_minus_L=yes 10131 hardcode_shlibpath_var=no 10132 ;; 10133 10134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10135 freebsd* | dragonfly*) 10136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10137 hardcode_libdir_flag_spec='-R$libdir' 10138 hardcode_direct=yes 10139 hardcode_shlibpath_var=no 10140 ;; 10141 10142 hpux9*) 10143 if test "$GCC" = yes; then 10144 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' 10145 else 10146 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' 10147 fi 10148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10149 hardcode_libdir_separator=: 10150 hardcode_direct=yes 10151 10152 # hardcode_minus_L: Not really in the search PATH, 10153 # but as the default location of the library. 10154 hardcode_minus_L=yes 10155 export_dynamic_flag_spec='${wl}-E' 10156 ;; 10157 10158 hpux10*) 10159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10161 else 10162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10163 fi 10164 if test "$with_gnu_ld" = no; then 10165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10166 hardcode_libdir_flag_spec_ld='+b $libdir' 10167 hardcode_libdir_separator=: 10168 hardcode_direct=yes 10169 hardcode_direct_absolute=yes 10170 export_dynamic_flag_spec='${wl}-E' 10171 # hardcode_minus_L: Not really in the search PATH, 10172 # but as the default location of the library. 10173 hardcode_minus_L=yes 10174 fi 10175 ;; 10176 10177 hpux11*) 10178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10179 case $host_cpu in 10180 hppa*64*) 10181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10182 ;; 10183 ia64*) 10184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10185 ;; 10186 *) 10187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10188 ;; 10189 esac 10190 else 10191 case $host_cpu in 10192 hppa*64*) 10193 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10194 ;; 10195 ia64*) 10196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10197 ;; 10198 *) 10199 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10200 ;; 10201 esac 10202 fi 10203 if test "$with_gnu_ld" = no; then 10204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10205 hardcode_libdir_separator=: 10206 10207 case $host_cpu in 10208 hppa*64*|ia64*) 10209 hardcode_direct=no 10210 hardcode_shlibpath_var=no 10211 ;; 10212 *) 10213 hardcode_direct=yes 10214 hardcode_direct_absolute=yes 10215 export_dynamic_flag_spec='${wl}-E' 10216 10217 # hardcode_minus_L: Not really in the search PATH, 10218 # but as the default location of the library. 10219 hardcode_minus_L=yes 10220 ;; 10221 esac 10222 fi 10223 ;; 10224 10225 irix5* | irix6* | nonstopux*) 10226 if test "$GCC" = yes; then 10227 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' 10228 # Try to use the -exported_symbol ld option, if it does not 10229 # work, assume that -exports_file does not work either and 10230 # implicitly export all symbols. 10231 save_LDFLAGS="$LDFLAGS" 10232 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10233 cat >conftest.$ac_ext <<_ACEOF 10234int foo(void) {} 10235_ACEOF 10236rm -f conftest.$ac_objext conftest$ac_exeext 10237if { (ac_try="$ac_link" 10238case "(($ac_try" in 10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10240 *) ac_try_echo=$ac_try;; 10241esac 10242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10243$as_echo "$ac_try_echo") >&5 10244 (eval "$ac_link") 2>conftest.er1 10245 ac_status=$? 10246 grep -v '^ *+' conftest.er1 >conftest.err 10247 rm -f conftest.er1 10248 cat conftest.err >&5 10249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); } && { 10251 test -z "$ac_c_werror_flag" || 10252 test ! -s conftest.err 10253 } && test -s conftest$ac_exeext && { 10254 test "$cross_compiling" = yes || 10255 $as_test_x conftest$ac_exeext 10256 }; then 10257 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' 10258 10259else 10260 $as_echo "$as_me: failed program was:" >&5 10261sed 's/^/| /' conftest.$ac_ext >&5 10262 10263 10264fi 10265 10266rm -rf conftest.dSYM 10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10268 conftest$ac_exeext conftest.$ac_ext 10269 LDFLAGS="$save_LDFLAGS" 10270 else 10271 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' 10272 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' 10273 fi 10274 archive_cmds_need_lc='no' 10275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10276 hardcode_libdir_separator=: 10277 inherit_rpath=yes 10278 link_all_deplibs=yes 10279 ;; 10280 10281 netbsd*) 10282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10284 else 10285 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10286 fi 10287 hardcode_libdir_flag_spec='-R$libdir' 10288 hardcode_direct=yes 10289 hardcode_shlibpath_var=no 10290 ;; 10291 10292 newsos6) 10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10294 hardcode_direct=yes 10295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10296 hardcode_libdir_separator=: 10297 hardcode_shlibpath_var=no 10298 ;; 10299 10300 *nto* | *qnx*) 10301 ;; 10302 10303 openbsd*) 10304 if test -f /usr/libexec/ld.so; then 10305 hardcode_direct=yes 10306 hardcode_shlibpath_var=no 10307 hardcode_direct_absolute=yes 10308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10310 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10312 export_dynamic_flag_spec='${wl}-E' 10313 else 10314 case $host_os in 10315 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10317 hardcode_libdir_flag_spec='-R$libdir' 10318 ;; 10319 *) 10320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10322 ;; 10323 esac 10324 fi 10325 else 10326 ld_shlibs=no 10327 fi 10328 ;; 10329 10330 os2*) 10331 hardcode_libdir_flag_spec='-L$libdir' 10332 hardcode_minus_L=yes 10333 allow_undefined_flag=unsupported 10334 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' 10335 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10336 ;; 10337 10338 osf3*) 10339 if test "$GCC" = yes; then 10340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10341 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' 10342 else 10343 allow_undefined_flag=' -expect_unresolved \*' 10344 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' 10345 fi 10346 archive_cmds_need_lc='no' 10347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10348 hardcode_libdir_separator=: 10349 ;; 10350 10351 osf4* | osf5*) # as osf3* with the addition of -msym flag 10352 if test "$GCC" = yes; then 10353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10354 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' 10355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10356 else 10357 allow_undefined_flag=' -expect_unresolved \*' 10358 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' 10359 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~ 10360 $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' 10361 10362 # Both c and cxx compiler support -rpath directly 10363 hardcode_libdir_flag_spec='-rpath $libdir' 10364 fi 10365 archive_cmds_need_lc='no' 10366 hardcode_libdir_separator=: 10367 ;; 10368 10369 solaris*) 10370 no_undefined_flag=' -z defs' 10371 if test "$GCC" = yes; then 10372 wlarc='${wl}' 10373 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10375 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10376 else 10377 case `$CC -V 2>&1` in 10378 *"Compilers 5.0"*) 10379 wlarc='' 10380 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10383 ;; 10384 *) 10385 wlarc='${wl}' 10386 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10388 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10389 ;; 10390 esac 10391 fi 10392 hardcode_libdir_flag_spec='-R$libdir' 10393 hardcode_shlibpath_var=no 10394 case $host_os in 10395 solaris2.[0-5] | solaris2.[0-5].*) ;; 10396 *) 10397 # The compiler driver will combine and reorder linker options, 10398 # but understands `-z linker_flag'. GCC discards it without `$wl', 10399 # but is careful enough not to reorder. 10400 # Supported since Solaris 2.6 (maybe 2.5.1?) 10401 if test "$GCC" = yes; then 10402 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10403 else 10404 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10405 fi 10406 ;; 10407 esac 10408 link_all_deplibs=yes 10409 ;; 10410 10411 sunos4*) 10412 if test "x$host_vendor" = xsequent; then 10413 # Use $CC to link under sequent, because it throws in some extra .o 10414 # files that make .init and .fini sections work. 10415 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10416 else 10417 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10418 fi 10419 hardcode_libdir_flag_spec='-L$libdir' 10420 hardcode_direct=yes 10421 hardcode_minus_L=yes 10422 hardcode_shlibpath_var=no 10423 ;; 10424 10425 sysv4) 10426 case $host_vendor in 10427 sni) 10428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10429 hardcode_direct=yes # is this really true??? 10430 ;; 10431 siemens) 10432 ## LD is ld it makes a PLAMLIB 10433 ## CC just makes a GrossModule. 10434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10435 reload_cmds='$CC -r -o $output$reload_objs' 10436 hardcode_direct=no 10437 ;; 10438 motorola) 10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10440 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10441 ;; 10442 esac 10443 runpath_var='LD_RUN_PATH' 10444 hardcode_shlibpath_var=no 10445 ;; 10446 10447 sysv4.3*) 10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10449 hardcode_shlibpath_var=no 10450 export_dynamic_flag_spec='-Bexport' 10451 ;; 10452 10453 sysv4*MP*) 10454 if test -d /usr/nec; then 10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 hardcode_shlibpath_var=no 10457 runpath_var=LD_RUN_PATH 10458 hardcode_runpath_var=yes 10459 ld_shlibs=yes 10460 fi 10461 ;; 10462 10463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10464 no_undefined_flag='${wl}-z,text' 10465 archive_cmds_need_lc=no 10466 hardcode_shlibpath_var=no 10467 runpath_var='LD_RUN_PATH' 10468 10469 if test "$GCC" = yes; then 10470 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10472 else 10473 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10475 fi 10476 ;; 10477 10478 sysv5* | sco3.2v5* | sco5v6*) 10479 # Note: We can NOT use -z defs as we might desire, because we do not 10480 # link with -lc, and that would cause any symbols used from libc to 10481 # always be unresolved, which means just about no library would 10482 # ever link correctly. If we're not using GNU ld we use -z text 10483 # though, which does catch some bad symbols but isn't as heavy-handed 10484 # as -z defs. 10485 no_undefined_flag='${wl}-z,text' 10486 allow_undefined_flag='${wl}-z,nodefs' 10487 archive_cmds_need_lc=no 10488 hardcode_shlibpath_var=no 10489 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10490 hardcode_libdir_separator=':' 10491 link_all_deplibs=yes 10492 export_dynamic_flag_spec='${wl}-Bexport' 10493 runpath_var='LD_RUN_PATH' 10494 10495 if test "$GCC" = yes; then 10496 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10498 else 10499 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10501 fi 10502 ;; 10503 10504 uts4*) 10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10506 hardcode_libdir_flag_spec='-L$libdir' 10507 hardcode_shlibpath_var=no 10508 ;; 10509 10510 *) 10511 ld_shlibs=no 10512 ;; 10513 esac 10514 10515 if test x$host_vendor = xsni; then 10516 case $host in 10517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10518 export_dynamic_flag_spec='${wl}-Blargedynsym' 10519 ;; 10520 esac 10521 fi 10522 fi 10523 10524{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10525$as_echo "$ld_shlibs" >&6; } 10526test "$ld_shlibs" = no && can_build_shared=no 10527 10528with_gnu_ld=$with_gnu_ld 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544# 10545# Do we need to explicitly link libc? 10546# 10547case "x$archive_cmds_need_lc" in 10548x|xyes) 10549 # Assume -lc should be added 10550 archive_cmds_need_lc=yes 10551 10552 if test "$enable_shared" = yes && test "$GCC" = yes; then 10553 case $archive_cmds in 10554 *'~'*) 10555 # FIXME: we may have to deal with multi-command sequences. 10556 ;; 10557 '$CC '*) 10558 # Test whether the compiler implicitly links with -lc since on some 10559 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10560 # to ld, don't add -lc before -lgcc. 10561 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10562$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10563 $RM conftest* 10564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10565 10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10567 (eval $ac_compile) 2>&5 10568 ac_status=$? 10569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10570 (exit $ac_status); } 2>conftest.err; then 10571 soname=conftest 10572 lib=conftest 10573 libobjs=conftest.$ac_objext 10574 deplibs= 10575 wl=$lt_prog_compiler_wl 10576 pic_flag=$lt_prog_compiler_pic 10577 compiler_flags=-v 10578 linker_flags=-v 10579 verstring= 10580 output_objdir=. 10581 libname=conftest 10582 lt_save_allow_undefined_flag=$allow_undefined_flag 10583 allow_undefined_flag= 10584 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10585 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10586 ac_status=$? 10587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10588 (exit $ac_status); } 10589 then 10590 archive_cmds_need_lc=no 10591 else 10592 archive_cmds_need_lc=yes 10593 fi 10594 allow_undefined_flag=$lt_save_allow_undefined_flag 10595 else 10596 cat conftest.err 1>&5 10597 fi 10598 $RM conftest* 10599 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10600$as_echo "$archive_cmds_need_lc" >&6; } 10601 ;; 10602 esac 10603 fi 10604 ;; 10605esac 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10764$as_echo_n "checking dynamic linker characteristics... " >&6; } 10765 10766if test "$GCC" = yes; then 10767 case $host_os in 10768 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10769 *) lt_awk_arg="/^libraries:/" ;; 10770 esac 10771 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10772 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10773 # if the path contains ";" then we assume it to be the separator 10774 # otherwise default to the standard path separator (i.e. ":") - it is 10775 # assumed that no part of a normal pathname contains ";" but that should 10776 # okay in the real world where ";" in dirpaths is itself problematic. 10777 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10778 else 10779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10780 fi 10781 # Ok, now we have the path, separated by spaces, we can step through it 10782 # and add multilib dir if necessary. 10783 lt_tmp_lt_search_path_spec= 10784 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10785 for lt_sys_path in $lt_search_path_spec; do 10786 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10787 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10788 else 10789 test -d "$lt_sys_path" && \ 10790 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10791 fi 10792 done 10793 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10794BEGIN {RS=" "; FS="/|\n";} { 10795 lt_foo=""; 10796 lt_count=0; 10797 for (lt_i = NF; lt_i > 0; lt_i--) { 10798 if ($lt_i != "" && $lt_i != ".") { 10799 if ($lt_i == "..") { 10800 lt_count++; 10801 } else { 10802 if (lt_count == 0) { 10803 lt_foo="/" $lt_i lt_foo; 10804 } else { 10805 lt_count--; 10806 } 10807 } 10808 } 10809 } 10810 if (lt_foo != "") { lt_freq[lt_foo]++; } 10811 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10812}'` 10813 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10814else 10815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10816fi 10817library_names_spec= 10818libname_spec='lib$name' 10819soname_spec= 10820shrext_cmds=".so" 10821postinstall_cmds= 10822postuninstall_cmds= 10823finish_cmds= 10824finish_eval= 10825shlibpath_var= 10826shlibpath_overrides_runpath=unknown 10827version_type=none 10828dynamic_linker="$host_os ld.so" 10829sys_lib_dlsearch_path_spec="/lib /usr/lib" 10830need_lib_prefix=unknown 10831hardcode_into_libs=no 10832 10833# when you set need_version to no, make sure it does not cause -set_version 10834# flags to be left without arguments 10835need_version=unknown 10836 10837case $host_os in 10838aix3*) 10839 version_type=linux 10840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10841 shlibpath_var=LIBPATH 10842 10843 # AIX 3 has no versioning support, so we append a major version to the name. 10844 soname_spec='${libname}${release}${shared_ext}$major' 10845 ;; 10846 10847aix[4-9]*) 10848 version_type=linux 10849 need_lib_prefix=no 10850 need_version=no 10851 hardcode_into_libs=yes 10852 if test "$host_cpu" = ia64; then 10853 # AIX 5 supports IA64 10854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10855 shlibpath_var=LD_LIBRARY_PATH 10856 else 10857 # With GCC up to 2.95.x, collect2 would create an import file 10858 # for dependence libraries. The import file would start with 10859 # the line `#! .'. This would cause the generated library to 10860 # depend on `.', always an invalid library. This was fixed in 10861 # development snapshots of GCC prior to 3.0. 10862 case $host_os in 10863 aix4 | aix4.[01] | aix4.[01].*) 10864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10865 echo ' yes ' 10866 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10867 : 10868 else 10869 can_build_shared=no 10870 fi 10871 ;; 10872 esac 10873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10874 # soname into executable. Probably we can add versioning support to 10875 # collect2, so additional links can be useful in future. 10876 if test "$aix_use_runtimelinking" = yes; then 10877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10878 # instead of lib<name>.a to let people know that these are not 10879 # typical AIX shared libraries. 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 else 10882 # We preserve .a as extension for shared libraries through AIX4.2 10883 # and later when we are not doing run time linking. 10884 library_names_spec='${libname}${release}.a $libname.a' 10885 soname_spec='${libname}${release}${shared_ext}$major' 10886 fi 10887 shlibpath_var=LIBPATH 10888 fi 10889 ;; 10890 10891amigaos*) 10892 case $host_cpu in 10893 powerpc) 10894 # Since July 2007 AmigaOS4 officially supports .so libraries. 10895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10897 ;; 10898 m68k) 10899 library_names_spec='$libname.ixlibrary $libname.a' 10900 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10901 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' 10902 ;; 10903 esac 10904 ;; 10905 10906beos*) 10907 library_names_spec='${libname}${shared_ext}' 10908 dynamic_linker="$host_os ld.so" 10909 shlibpath_var=LIBRARY_PATH 10910 ;; 10911 10912bsdi[45]*) 10913 version_type=linux 10914 need_version=no 10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10916 soname_spec='${libname}${release}${shared_ext}$major' 10917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10921 # the default ld.so.conf also contains /usr/contrib/lib and 10922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10923 # libtool to hard-code these into programs 10924 ;; 10925 10926cygwin* | mingw* | pw32* | cegcc*) 10927 version_type=windows 10928 shrext_cmds=".dll" 10929 need_version=no 10930 need_lib_prefix=no 10931 10932 case $GCC,$host_os in 10933 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10934 library_names_spec='$libname.dll.a' 10935 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10936 postinstall_cmds='base_file=`basename \${file}`~ 10937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10938 dldir=$destdir/`dirname \$dlpath`~ 10939 test -d \$dldir || mkdir -p \$dldir~ 10940 $install_prog $dir/$dlname \$dldir/$dlname~ 10941 chmod a+x \$dldir/$dlname~ 10942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10944 fi' 10945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10946 dlpath=$dir/\$dldll~ 10947 $RM \$dlpath' 10948 shlibpath_overrides_runpath=yes 10949 10950 case $host_os in 10951 cygwin*) 10952 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10955 ;; 10956 mingw* | cegcc*) 10957 # MinGW DLLs use traditional 'lib' prefix 10958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10959 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10960 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10961 # It is most probably a Windows format PATH printed by 10962 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10963 # path with ; separators, and with drive letters. We can handle the 10964 # drive letters (cygwin fileutils understands them), so leave them, 10965 # especially as we might pass files found there to a mingw objdump, 10966 # which wouldn't understand a cygwinified path. Ahh. 10967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10968 else 10969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10970 fi 10971 ;; 10972 pw32*) 10973 # pw32 DLLs use 'pw' prefix rather than 'lib' 10974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10975 ;; 10976 esac 10977 ;; 10978 10979 *) 10980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10981 ;; 10982 esac 10983 dynamic_linker='Win32 ld.exe' 10984 # FIXME: first we should search . and the directory the executable is in 10985 shlibpath_var=PATH 10986 ;; 10987 10988darwin* | rhapsody*) 10989 dynamic_linker="$host_os dyld" 10990 version_type=darwin 10991 need_lib_prefix=no 10992 need_version=no 10993 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10994 soname_spec='${libname}${release}${major}$shared_ext' 10995 shlibpath_overrides_runpath=yes 10996 shlibpath_var=DYLD_LIBRARY_PATH 10997 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10998 10999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11001 ;; 11002 11003dgux*) 11004 version_type=linux 11005 need_lib_prefix=no 11006 need_version=no 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11008 soname_spec='${libname}${release}${shared_ext}$major' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 ;; 11011 11012freebsd1*) 11013 dynamic_linker=no 11014 ;; 11015 11016freebsd* | dragonfly*) 11017 # DragonFly does not have aout. When/if they implement a new 11018 # versioning mechanism, adjust this. 11019 if test -x /usr/bin/objformat; then 11020 objformat=`/usr/bin/objformat` 11021 else 11022 case $host_os in 11023 freebsd[123]*) objformat=aout ;; 11024 *) objformat=elf ;; 11025 esac 11026 fi 11027 # Handle Gentoo/FreeBSD as it was Linux 11028 case $host_vendor in 11029 gentoo) 11030 version_type=linux ;; 11031 *) 11032 version_type=freebsd-$objformat ;; 11033 esac 11034 11035 case $version_type in 11036 freebsd-elf*) 11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11038 need_version=no 11039 need_lib_prefix=no 11040 ;; 11041 freebsd-*) 11042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11043 need_version=yes 11044 ;; 11045 linux) 11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11047 soname_spec='${libname}${release}${shared_ext}$major' 11048 need_lib_prefix=no 11049 need_version=no 11050 ;; 11051 esac 11052 shlibpath_var=LD_LIBRARY_PATH 11053 case $host_os in 11054 freebsd2*) 11055 shlibpath_overrides_runpath=yes 11056 ;; 11057 freebsd3.[01]* | freebsdelf3.[01]*) 11058 shlibpath_overrides_runpath=yes 11059 hardcode_into_libs=yes 11060 ;; 11061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11063 shlibpath_overrides_runpath=no 11064 hardcode_into_libs=yes 11065 ;; 11066 *) # from 4.6 on, and DragonFly 11067 shlibpath_overrides_runpath=yes 11068 hardcode_into_libs=yes 11069 ;; 11070 esac 11071 ;; 11072 11073gnu*) 11074 version_type=linux 11075 need_lib_prefix=no 11076 need_version=no 11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11078 soname_spec='${libname}${release}${shared_ext}$major' 11079 shlibpath_var=LD_LIBRARY_PATH 11080 hardcode_into_libs=yes 11081 ;; 11082 11083hpux9* | hpux10* | hpux11*) 11084 # Give a soname corresponding to the major version so that dld.sl refuses to 11085 # link against other versions. 11086 version_type=sunos 11087 need_lib_prefix=no 11088 need_version=no 11089 case $host_cpu in 11090 ia64*) 11091 shrext_cmds='.so' 11092 hardcode_into_libs=yes 11093 dynamic_linker="$host_os dld.so" 11094 shlibpath_var=LD_LIBRARY_PATH 11095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11097 soname_spec='${libname}${release}${shared_ext}$major' 11098 if test "X$HPUX_IA64_MODE" = X32; then 11099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11100 else 11101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11102 fi 11103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11104 ;; 11105 hppa*64*) 11106 shrext_cmds='.sl' 11107 hardcode_into_libs=yes 11108 dynamic_linker="$host_os dld.sl" 11109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11112 soname_spec='${libname}${release}${shared_ext}$major' 11113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11115 ;; 11116 *) 11117 shrext_cmds='.sl' 11118 dynamic_linker="$host_os dld.sl" 11119 shlibpath_var=SHLIB_PATH 11120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 ;; 11124 esac 11125 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11126 postinstall_cmds='chmod 555 $lib' 11127 ;; 11128 11129interix[3-9]*) 11130 version_type=linux 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11134 soname_spec='${libname}${release}${shared_ext}$major' 11135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 shlibpath_overrides_runpath=no 11138 hardcode_into_libs=yes 11139 ;; 11140 11141irix5* | irix6* | nonstopux*) 11142 case $host_os in 11143 nonstopux*) version_type=nonstopux ;; 11144 *) 11145 if test "$lt_cv_prog_gnu_ld" = yes; then 11146 version_type=linux 11147 else 11148 version_type=irix 11149 fi ;; 11150 esac 11151 need_lib_prefix=no 11152 need_version=no 11153 soname_spec='${libname}${release}${shared_ext}$major' 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11155 case $host_os in 11156 irix5* | nonstopux*) 11157 libsuff= shlibsuff= 11158 ;; 11159 *) 11160 case $LD in # libtool.m4 will add one of these switches to LD 11161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11162 libsuff= shlibsuff= libmagic=32-bit;; 11163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11164 libsuff=32 shlibsuff=N32 libmagic=N32;; 11165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11166 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11167 *) libsuff= shlibsuff= libmagic=never-match;; 11168 esac 11169 ;; 11170 esac 11171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11172 shlibpath_overrides_runpath=no 11173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11175 hardcode_into_libs=yes 11176 ;; 11177 11178# No shared lib support for Linux oldld, aout, or coff. 11179linux*oldld* | linux*aout* | linux*coff*) 11180 dynamic_linker=no 11181 ;; 11182 11183# This must be Linux ELF. 11184linux* | k*bsd*-gnu) 11185 version_type=linux 11186 need_lib_prefix=no 11187 need_version=no 11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11189 soname_spec='${libname}${release}${shared_ext}$major' 11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11191 shlibpath_var=LD_LIBRARY_PATH 11192 shlibpath_overrides_runpath=no 11193 # Some binutils ld are patched to set DT_RUNPATH 11194 save_LDFLAGS=$LDFLAGS 11195 save_libdir=$libdir 11196 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11197 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11198 cat >conftest.$ac_ext <<_ACEOF 11199/* confdefs.h. */ 11200_ACEOF 11201cat confdefs.h >>conftest.$ac_ext 11202cat >>conftest.$ac_ext <<_ACEOF 11203/* end confdefs.h. */ 11204 11205int 11206main () 11207{ 11208 11209 ; 11210 return 0; 11211} 11212_ACEOF 11213rm -f conftest.$ac_objext conftest$ac_exeext 11214if { (ac_try="$ac_link" 11215case "(($ac_try" in 11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11217 *) ac_try_echo=$ac_try;; 11218esac 11219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11220$as_echo "$ac_try_echo") >&5 11221 (eval "$ac_link") 2>conftest.er1 11222 ac_status=$? 11223 grep -v '^ *+' conftest.er1 >conftest.err 11224 rm -f conftest.er1 11225 cat conftest.err >&5 11226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11227 (exit $ac_status); } && { 11228 test -z "$ac_c_werror_flag" || 11229 test ! -s conftest.err 11230 } && test -s conftest$ac_exeext && { 11231 test "$cross_compiling" = yes || 11232 $as_test_x conftest$ac_exeext 11233 }; then 11234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11235 shlibpath_overrides_runpath=yes 11236fi 11237 11238else 11239 $as_echo "$as_me: failed program was:" >&5 11240sed 's/^/| /' conftest.$ac_ext >&5 11241 11242 11243fi 11244 11245rm -rf conftest.dSYM 11246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11247 conftest$ac_exeext conftest.$ac_ext 11248 LDFLAGS=$save_LDFLAGS 11249 libdir=$save_libdir 11250 11251 # This implies no fast_install, which is unacceptable. 11252 # Some rework will be needed to allow for fast_install 11253 # before this can be enabled. 11254 hardcode_into_libs=yes 11255 11256 # Append ld.so.conf contents to the search path 11257 if test -f /etc/ld.so.conf; then 11258 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' ' '` 11259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11260 fi 11261 11262 # We used to test for /lib/ld.so.1 and disable shared libraries on 11263 # powerpc, because MkLinux only supported shared libraries with the 11264 # GNU dynamic linker. Since this was broken with cross compilers, 11265 # most powerpc-linux boxes support dynamic linking these days and 11266 # people can always --disable-shared, the test was removed, and we 11267 # assume the GNU/Linux dynamic linker is in use. 11268 dynamic_linker='GNU/Linux ld.so' 11269 ;; 11270 11271netbsd*) 11272 version_type=sunos 11273 need_lib_prefix=no 11274 need_version=no 11275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11278 dynamic_linker='NetBSD (a.out) ld.so' 11279 else 11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11281 soname_spec='${libname}${release}${shared_ext}$major' 11282 dynamic_linker='NetBSD ld.elf_so' 11283 fi 11284 shlibpath_var=LD_LIBRARY_PATH 11285 shlibpath_overrides_runpath=yes 11286 hardcode_into_libs=yes 11287 ;; 11288 11289newsos6) 11290 version_type=linux 11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11292 shlibpath_var=LD_LIBRARY_PATH 11293 shlibpath_overrides_runpath=yes 11294 ;; 11295 11296*nto* | *qnx*) 11297 version_type=qnx 11298 need_lib_prefix=no 11299 need_version=no 11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11301 soname_spec='${libname}${release}${shared_ext}$major' 11302 shlibpath_var=LD_LIBRARY_PATH 11303 shlibpath_overrides_runpath=no 11304 hardcode_into_libs=yes 11305 dynamic_linker='ldqnx.so' 11306 ;; 11307 11308openbsd*) 11309 version_type=sunos 11310 sys_lib_dlsearch_path_spec="/usr/lib" 11311 need_lib_prefix=no 11312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11313 case $host_os in 11314 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11315 *) need_version=no ;; 11316 esac 11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11321 case $host_os in 11322 openbsd2.[89] | openbsd2.[89].*) 11323 shlibpath_overrides_runpath=no 11324 ;; 11325 *) 11326 shlibpath_overrides_runpath=yes 11327 ;; 11328 esac 11329 else 11330 shlibpath_overrides_runpath=yes 11331 fi 11332 ;; 11333 11334os2*) 11335 libname_spec='$name' 11336 shrext_cmds=".dll" 11337 need_lib_prefix=no 11338 library_names_spec='$libname${shared_ext} $libname.a' 11339 dynamic_linker='OS/2 ld.exe' 11340 shlibpath_var=LIBPATH 11341 ;; 11342 11343osf3* | osf4* | osf5*) 11344 version_type=osf 11345 need_lib_prefix=no 11346 need_version=no 11347 soname_spec='${libname}${release}${shared_ext}$major' 11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11349 shlibpath_var=LD_LIBRARY_PATH 11350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11352 ;; 11353 11354rdos*) 11355 dynamic_linker=no 11356 ;; 11357 11358solaris*) 11359 version_type=linux 11360 need_lib_prefix=no 11361 need_version=no 11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11363 soname_spec='${libname}${release}${shared_ext}$major' 11364 shlibpath_var=LD_LIBRARY_PATH 11365 shlibpath_overrides_runpath=yes 11366 hardcode_into_libs=yes 11367 # ldd complains unless libraries are executable 11368 postinstall_cmds='chmod +x $lib' 11369 ;; 11370 11371sunos4*) 11372 version_type=sunos 11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11375 shlibpath_var=LD_LIBRARY_PATH 11376 shlibpath_overrides_runpath=yes 11377 if test "$with_gnu_ld" = yes; then 11378 need_lib_prefix=no 11379 fi 11380 need_version=yes 11381 ;; 11382 11383sysv4 | sysv4.3*) 11384 version_type=linux 11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11386 soname_spec='${libname}${release}${shared_ext}$major' 11387 shlibpath_var=LD_LIBRARY_PATH 11388 case $host_vendor in 11389 sni) 11390 shlibpath_overrides_runpath=no 11391 need_lib_prefix=no 11392 runpath_var=LD_RUN_PATH 11393 ;; 11394 siemens) 11395 need_lib_prefix=no 11396 ;; 11397 motorola) 11398 need_lib_prefix=no 11399 need_version=no 11400 shlibpath_overrides_runpath=no 11401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11402 ;; 11403 esac 11404 ;; 11405 11406sysv4*MP*) 11407 if test -d /usr/nec ;then 11408 version_type=linux 11409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11410 soname_spec='$libname${shared_ext}.$major' 11411 shlibpath_var=LD_LIBRARY_PATH 11412 fi 11413 ;; 11414 11415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11416 version_type=freebsd-elf 11417 need_lib_prefix=no 11418 need_version=no 11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11420 soname_spec='${libname}${release}${shared_ext}$major' 11421 shlibpath_var=LD_LIBRARY_PATH 11422 shlibpath_overrides_runpath=yes 11423 hardcode_into_libs=yes 11424 if test "$with_gnu_ld" = yes; then 11425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11426 else 11427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11428 case $host_os in 11429 sco3.2v5*) 11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11431 ;; 11432 esac 11433 fi 11434 sys_lib_dlsearch_path_spec='/usr/lib' 11435 ;; 11436 11437tpf*) 11438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11439 version_type=linux 11440 need_lib_prefix=no 11441 need_version=no 11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11443 shlibpath_var=LD_LIBRARY_PATH 11444 shlibpath_overrides_runpath=no 11445 hardcode_into_libs=yes 11446 ;; 11447 11448uts4*) 11449 version_type=linux 11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11451 soname_spec='${libname}${release}${shared_ext}$major' 11452 shlibpath_var=LD_LIBRARY_PATH 11453 ;; 11454 11455*) 11456 dynamic_linker=no 11457 ;; 11458esac 11459{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11460$as_echo "$dynamic_linker" >&6; } 11461test "$dynamic_linker" = no && can_build_shared=no 11462 11463variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11464if test "$GCC" = yes; then 11465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11466fi 11467 11468if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11470fi 11471if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11473fi 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11562$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11563hardcode_action= 11564if test -n "$hardcode_libdir_flag_spec" || 11565 test -n "$runpath_var" || 11566 test "X$hardcode_automatic" = "Xyes" ; then 11567 11568 # We can hardcode non-existent directories. 11569 if test "$hardcode_direct" != no && 11570 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11571 # have to relink, otherwise we might link with an installed library 11572 # when we should be linking with a yet-to-be-installed one 11573 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11574 test "$hardcode_minus_L" != no; then 11575 # Linking always hardcodes the temporary library directory. 11576 hardcode_action=relink 11577 else 11578 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11579 hardcode_action=immediate 11580 fi 11581else 11582 # We cannot hardcode anything, or else we can only hardcode existing 11583 # directories. 11584 hardcode_action=unsupported 11585fi 11586{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11587$as_echo "$hardcode_action" >&6; } 11588 11589if test "$hardcode_action" = relink || 11590 test "$inherit_rpath" = yes; then 11591 # Fast installation is not supported 11592 enable_fast_install=no 11593elif test "$shlibpath_overrides_runpath" = yes || 11594 test "$enable_shared" = no; then 11595 # Fast installation is not necessary 11596 enable_fast_install=needless 11597fi 11598 11599 11600 11601 11602 11603 11604 if test "x$enable_dlopen" != xyes; then 11605 enable_dlopen=unknown 11606 enable_dlopen_self=unknown 11607 enable_dlopen_self_static=unknown 11608else 11609 lt_cv_dlopen=no 11610 lt_cv_dlopen_libs= 11611 11612 case $host_os in 11613 beos*) 11614 lt_cv_dlopen="load_add_on" 11615 lt_cv_dlopen_libs= 11616 lt_cv_dlopen_self=yes 11617 ;; 11618 11619 mingw* | pw32* | cegcc*) 11620 lt_cv_dlopen="LoadLibrary" 11621 lt_cv_dlopen_libs= 11622 ;; 11623 11624 cygwin*) 11625 lt_cv_dlopen="dlopen" 11626 lt_cv_dlopen_libs= 11627 ;; 11628 11629 darwin*) 11630 # if libdl is installed we need to link against it 11631 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11632$as_echo_n "checking for dlopen in -ldl... " >&6; } 11633if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11634 $as_echo_n "(cached) " >&6 11635else 11636 ac_check_lib_save_LIBS=$LIBS 11637LIBS="-ldl $LIBS" 11638cat >conftest.$ac_ext <<_ACEOF 11639/* confdefs.h. */ 11640_ACEOF 11641cat confdefs.h >>conftest.$ac_ext 11642cat >>conftest.$ac_ext <<_ACEOF 11643/* end confdefs.h. */ 11644 11645/* Override any GCC internal prototype to avoid an error. 11646 Use char because int might match the return type of a GCC 11647 builtin and then its argument prototype would still apply. */ 11648#ifdef __cplusplus 11649extern "C" 11650#endif 11651char dlopen (); 11652int 11653main () 11654{ 11655return dlopen (); 11656 ; 11657 return 0; 11658} 11659_ACEOF 11660rm -f conftest.$ac_objext conftest$ac_exeext 11661if { (ac_try="$ac_link" 11662case "(($ac_try" in 11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11664 *) ac_try_echo=$ac_try;; 11665esac 11666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11667$as_echo "$ac_try_echo") >&5 11668 (eval "$ac_link") 2>conftest.er1 11669 ac_status=$? 11670 grep -v '^ *+' conftest.er1 >conftest.err 11671 rm -f conftest.er1 11672 cat conftest.err >&5 11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11674 (exit $ac_status); } && { 11675 test -z "$ac_c_werror_flag" || 11676 test ! -s conftest.err 11677 } && test -s conftest$ac_exeext && { 11678 test "$cross_compiling" = yes || 11679 $as_test_x conftest$ac_exeext 11680 }; then 11681 ac_cv_lib_dl_dlopen=yes 11682else 11683 $as_echo "$as_me: failed program was:" >&5 11684sed 's/^/| /' conftest.$ac_ext >&5 11685 11686 ac_cv_lib_dl_dlopen=no 11687fi 11688 11689rm -rf conftest.dSYM 11690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11691 conftest$ac_exeext conftest.$ac_ext 11692LIBS=$ac_check_lib_save_LIBS 11693fi 11694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11695$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11696if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11698else 11699 11700 lt_cv_dlopen="dyld" 11701 lt_cv_dlopen_libs= 11702 lt_cv_dlopen_self=yes 11703 11704fi 11705 11706 ;; 11707 11708 *) 11709 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11710$as_echo_n "checking for shl_load... " >&6; } 11711if test "${ac_cv_func_shl_load+set}" = set; then 11712 $as_echo_n "(cached) " >&6 11713else 11714 cat >conftest.$ac_ext <<_ACEOF 11715/* confdefs.h. */ 11716_ACEOF 11717cat confdefs.h >>conftest.$ac_ext 11718cat >>conftest.$ac_ext <<_ACEOF 11719/* end confdefs.h. */ 11720/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11721 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11722#define shl_load innocuous_shl_load 11723 11724/* System header to define __stub macros and hopefully few prototypes, 11725 which can conflict with char shl_load (); below. 11726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11727 <limits.h> exists even on freestanding compilers. */ 11728 11729#ifdef __STDC__ 11730# include <limits.h> 11731#else 11732# include <assert.h> 11733#endif 11734 11735#undef shl_load 11736 11737/* Override any GCC internal prototype to avoid an error. 11738 Use char because int might match the return type of a GCC 11739 builtin and then its argument prototype would still apply. */ 11740#ifdef __cplusplus 11741extern "C" 11742#endif 11743char shl_load (); 11744/* The GNU C library defines this for functions which it implements 11745 to always fail with ENOSYS. Some functions are actually named 11746 something starting with __ and the normal name is an alias. */ 11747#if defined __stub_shl_load || defined __stub___shl_load 11748choke me 11749#endif 11750 11751int 11752main () 11753{ 11754return shl_load (); 11755 ; 11756 return 0; 11757} 11758_ACEOF 11759rm -f conftest.$ac_objext conftest$ac_exeext 11760if { (ac_try="$ac_link" 11761case "(($ac_try" in 11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11763 *) ac_try_echo=$ac_try;; 11764esac 11765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11766$as_echo "$ac_try_echo") >&5 11767 (eval "$ac_link") 2>conftest.er1 11768 ac_status=$? 11769 grep -v '^ *+' conftest.er1 >conftest.err 11770 rm -f conftest.er1 11771 cat conftest.err >&5 11772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11773 (exit $ac_status); } && { 11774 test -z "$ac_c_werror_flag" || 11775 test ! -s conftest.err 11776 } && test -s conftest$ac_exeext && { 11777 test "$cross_compiling" = yes || 11778 $as_test_x conftest$ac_exeext 11779 }; then 11780 ac_cv_func_shl_load=yes 11781else 11782 $as_echo "$as_me: failed program was:" >&5 11783sed 's/^/| /' conftest.$ac_ext >&5 11784 11785 ac_cv_func_shl_load=no 11786fi 11787 11788rm -rf conftest.dSYM 11789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11790 conftest$ac_exeext conftest.$ac_ext 11791fi 11792{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11793$as_echo "$ac_cv_func_shl_load" >&6; } 11794if test "x$ac_cv_func_shl_load" = x""yes; then 11795 lt_cv_dlopen="shl_load" 11796else 11797 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11798$as_echo_n "checking for shl_load in -ldld... " >&6; } 11799if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11800 $as_echo_n "(cached) " >&6 11801else 11802 ac_check_lib_save_LIBS=$LIBS 11803LIBS="-ldld $LIBS" 11804cat >conftest.$ac_ext <<_ACEOF 11805/* confdefs.h. */ 11806_ACEOF 11807cat confdefs.h >>conftest.$ac_ext 11808cat >>conftest.$ac_ext <<_ACEOF 11809/* end confdefs.h. */ 11810 11811/* Override any GCC internal prototype to avoid an error. 11812 Use char because int might match the return type of a GCC 11813 builtin and then its argument prototype would still apply. */ 11814#ifdef __cplusplus 11815extern "C" 11816#endif 11817char shl_load (); 11818int 11819main () 11820{ 11821return shl_load (); 11822 ; 11823 return 0; 11824} 11825_ACEOF 11826rm -f conftest.$ac_objext conftest$ac_exeext 11827if { (ac_try="$ac_link" 11828case "(($ac_try" in 11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11830 *) ac_try_echo=$ac_try;; 11831esac 11832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11833$as_echo "$ac_try_echo") >&5 11834 (eval "$ac_link") 2>conftest.er1 11835 ac_status=$? 11836 grep -v '^ *+' conftest.er1 >conftest.err 11837 rm -f conftest.er1 11838 cat conftest.err >&5 11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11840 (exit $ac_status); } && { 11841 test -z "$ac_c_werror_flag" || 11842 test ! -s conftest.err 11843 } && test -s conftest$ac_exeext && { 11844 test "$cross_compiling" = yes || 11845 $as_test_x conftest$ac_exeext 11846 }; then 11847 ac_cv_lib_dld_shl_load=yes 11848else 11849 $as_echo "$as_me: failed program was:" >&5 11850sed 's/^/| /' conftest.$ac_ext >&5 11851 11852 ac_cv_lib_dld_shl_load=no 11853fi 11854 11855rm -rf conftest.dSYM 11856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11857 conftest$ac_exeext conftest.$ac_ext 11858LIBS=$ac_check_lib_save_LIBS 11859fi 11860{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11861$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11862if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11863 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11864else 11865 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11866$as_echo_n "checking for dlopen... " >&6; } 11867if test "${ac_cv_func_dlopen+set}" = set; then 11868 $as_echo_n "(cached) " >&6 11869else 11870 cat >conftest.$ac_ext <<_ACEOF 11871/* confdefs.h. */ 11872_ACEOF 11873cat confdefs.h >>conftest.$ac_ext 11874cat >>conftest.$ac_ext <<_ACEOF 11875/* end confdefs.h. */ 11876/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11878#define dlopen innocuous_dlopen 11879 11880/* System header to define __stub macros and hopefully few prototypes, 11881 which can conflict with char dlopen (); below. 11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11883 <limits.h> exists even on freestanding compilers. */ 11884 11885#ifdef __STDC__ 11886# include <limits.h> 11887#else 11888# include <assert.h> 11889#endif 11890 11891#undef dlopen 11892 11893/* Override any GCC internal prototype to avoid an error. 11894 Use char because int might match the return type of a GCC 11895 builtin and then its argument prototype would still apply. */ 11896#ifdef __cplusplus 11897extern "C" 11898#endif 11899char dlopen (); 11900/* The GNU C library defines this for functions which it implements 11901 to always fail with ENOSYS. Some functions are actually named 11902 something starting with __ and the normal name is an alias. */ 11903#if defined __stub_dlopen || defined __stub___dlopen 11904choke me 11905#endif 11906 11907int 11908main () 11909{ 11910return dlopen (); 11911 ; 11912 return 0; 11913} 11914_ACEOF 11915rm -f conftest.$ac_objext conftest$ac_exeext 11916if { (ac_try="$ac_link" 11917case "(($ac_try" in 11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11919 *) ac_try_echo=$ac_try;; 11920esac 11921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11922$as_echo "$ac_try_echo") >&5 11923 (eval "$ac_link") 2>conftest.er1 11924 ac_status=$? 11925 grep -v '^ *+' conftest.er1 >conftest.err 11926 rm -f conftest.er1 11927 cat conftest.err >&5 11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11929 (exit $ac_status); } && { 11930 test -z "$ac_c_werror_flag" || 11931 test ! -s conftest.err 11932 } && test -s conftest$ac_exeext && { 11933 test "$cross_compiling" = yes || 11934 $as_test_x conftest$ac_exeext 11935 }; then 11936 ac_cv_func_dlopen=yes 11937else 11938 $as_echo "$as_me: failed program was:" >&5 11939sed 's/^/| /' conftest.$ac_ext >&5 11940 11941 ac_cv_func_dlopen=no 11942fi 11943 11944rm -rf conftest.dSYM 11945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11946 conftest$ac_exeext conftest.$ac_ext 11947fi 11948{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11949$as_echo "$ac_cv_func_dlopen" >&6; } 11950if test "x$ac_cv_func_dlopen" = x""yes; then 11951 lt_cv_dlopen="dlopen" 11952else 11953 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11954$as_echo_n "checking for dlopen in -ldl... " >&6; } 11955if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11956 $as_echo_n "(cached) " >&6 11957else 11958 ac_check_lib_save_LIBS=$LIBS 11959LIBS="-ldl $LIBS" 11960cat >conftest.$ac_ext <<_ACEOF 11961/* confdefs.h. */ 11962_ACEOF 11963cat confdefs.h >>conftest.$ac_ext 11964cat >>conftest.$ac_ext <<_ACEOF 11965/* end confdefs.h. */ 11966 11967/* Override any GCC internal prototype to avoid an error. 11968 Use char because int might match the return type of a GCC 11969 builtin and then its argument prototype would still apply. */ 11970#ifdef __cplusplus 11971extern "C" 11972#endif 11973char dlopen (); 11974int 11975main () 11976{ 11977return dlopen (); 11978 ; 11979 return 0; 11980} 11981_ACEOF 11982rm -f conftest.$ac_objext conftest$ac_exeext 11983if { (ac_try="$ac_link" 11984case "(($ac_try" in 11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11986 *) ac_try_echo=$ac_try;; 11987esac 11988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11989$as_echo "$ac_try_echo") >&5 11990 (eval "$ac_link") 2>conftest.er1 11991 ac_status=$? 11992 grep -v '^ *+' conftest.er1 >conftest.err 11993 rm -f conftest.er1 11994 cat conftest.err >&5 11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); } && { 11997 test -z "$ac_c_werror_flag" || 11998 test ! -s conftest.err 11999 } && test -s conftest$ac_exeext && { 12000 test "$cross_compiling" = yes || 12001 $as_test_x conftest$ac_exeext 12002 }; then 12003 ac_cv_lib_dl_dlopen=yes 12004else 12005 $as_echo "$as_me: failed program was:" >&5 12006sed 's/^/| /' conftest.$ac_ext >&5 12007 12008 ac_cv_lib_dl_dlopen=no 12009fi 12010 12011rm -rf conftest.dSYM 12012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12013 conftest$ac_exeext conftest.$ac_ext 12014LIBS=$ac_check_lib_save_LIBS 12015fi 12016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12017$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12018if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 12019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12020else 12021 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12022$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12023if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12024 $as_echo_n "(cached) " >&6 12025else 12026 ac_check_lib_save_LIBS=$LIBS 12027LIBS="-lsvld $LIBS" 12028cat >conftest.$ac_ext <<_ACEOF 12029/* confdefs.h. */ 12030_ACEOF 12031cat confdefs.h >>conftest.$ac_ext 12032cat >>conftest.$ac_ext <<_ACEOF 12033/* end confdefs.h. */ 12034 12035/* Override any GCC internal prototype to avoid an error. 12036 Use char because int might match the return type of a GCC 12037 builtin and then its argument prototype would still apply. */ 12038#ifdef __cplusplus 12039extern "C" 12040#endif 12041char dlopen (); 12042int 12043main () 12044{ 12045return dlopen (); 12046 ; 12047 return 0; 12048} 12049_ACEOF 12050rm -f conftest.$ac_objext conftest$ac_exeext 12051if { (ac_try="$ac_link" 12052case "(($ac_try" in 12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12054 *) ac_try_echo=$ac_try;; 12055esac 12056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12057$as_echo "$ac_try_echo") >&5 12058 (eval "$ac_link") 2>conftest.er1 12059 ac_status=$? 12060 grep -v '^ *+' conftest.er1 >conftest.err 12061 rm -f conftest.er1 12062 cat conftest.err >&5 12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12064 (exit $ac_status); } && { 12065 test -z "$ac_c_werror_flag" || 12066 test ! -s conftest.err 12067 } && test -s conftest$ac_exeext && { 12068 test "$cross_compiling" = yes || 12069 $as_test_x conftest$ac_exeext 12070 }; then 12071 ac_cv_lib_svld_dlopen=yes 12072else 12073 $as_echo "$as_me: failed program was:" >&5 12074sed 's/^/| /' conftest.$ac_ext >&5 12075 12076 ac_cv_lib_svld_dlopen=no 12077fi 12078 12079rm -rf conftest.dSYM 12080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12081 conftest$ac_exeext conftest.$ac_ext 12082LIBS=$ac_check_lib_save_LIBS 12083fi 12084{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12085$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12086if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 12087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12088else 12089 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12090$as_echo_n "checking for dld_link in -ldld... " >&6; } 12091if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12092 $as_echo_n "(cached) " >&6 12093else 12094 ac_check_lib_save_LIBS=$LIBS 12095LIBS="-ldld $LIBS" 12096cat >conftest.$ac_ext <<_ACEOF 12097/* confdefs.h. */ 12098_ACEOF 12099cat confdefs.h >>conftest.$ac_ext 12100cat >>conftest.$ac_ext <<_ACEOF 12101/* end confdefs.h. */ 12102 12103/* Override any GCC internal prototype to avoid an error. 12104 Use char because int might match the return type of a GCC 12105 builtin and then its argument prototype would still apply. */ 12106#ifdef __cplusplus 12107extern "C" 12108#endif 12109char dld_link (); 12110int 12111main () 12112{ 12113return dld_link (); 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118rm -f conftest.$ac_objext conftest$ac_exeext 12119if { (ac_try="$ac_link" 12120case "(($ac_try" in 12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12122 *) ac_try_echo=$ac_try;; 12123esac 12124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12125$as_echo "$ac_try_echo") >&5 12126 (eval "$ac_link") 2>conftest.er1 12127 ac_status=$? 12128 grep -v '^ *+' conftest.er1 >conftest.err 12129 rm -f conftest.er1 12130 cat conftest.err >&5 12131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12132 (exit $ac_status); } && { 12133 test -z "$ac_c_werror_flag" || 12134 test ! -s conftest.err 12135 } && test -s conftest$ac_exeext && { 12136 test "$cross_compiling" = yes || 12137 $as_test_x conftest$ac_exeext 12138 }; then 12139 ac_cv_lib_dld_dld_link=yes 12140else 12141 $as_echo "$as_me: failed program was:" >&5 12142sed 's/^/| /' conftest.$ac_ext >&5 12143 12144 ac_cv_lib_dld_dld_link=no 12145fi 12146 12147rm -rf conftest.dSYM 12148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12149 conftest$ac_exeext conftest.$ac_ext 12150LIBS=$ac_check_lib_save_LIBS 12151fi 12152{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12153$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12154if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 12155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12156fi 12157 12158 12159fi 12160 12161 12162fi 12163 12164 12165fi 12166 12167 12168fi 12169 12170 12171fi 12172 12173 ;; 12174 esac 12175 12176 if test "x$lt_cv_dlopen" != xno; then 12177 enable_dlopen=yes 12178 else 12179 enable_dlopen=no 12180 fi 12181 12182 case $lt_cv_dlopen in 12183 dlopen) 12184 save_CPPFLAGS="$CPPFLAGS" 12185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12186 12187 save_LDFLAGS="$LDFLAGS" 12188 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12189 12190 save_LIBS="$LIBS" 12191 LIBS="$lt_cv_dlopen_libs $LIBS" 12192 12193 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12194$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12195if test "${lt_cv_dlopen_self+set}" = set; then 12196 $as_echo_n "(cached) " >&6 12197else 12198 if test "$cross_compiling" = yes; then : 12199 lt_cv_dlopen_self=cross 12200else 12201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12202 lt_status=$lt_dlunknown 12203 cat > conftest.$ac_ext <<_LT_EOF 12204#line 12204 "configure" 12205#include "confdefs.h" 12206 12207#if HAVE_DLFCN_H 12208#include <dlfcn.h> 12209#endif 12210 12211#include <stdio.h> 12212 12213#ifdef RTLD_GLOBAL 12214# define LT_DLGLOBAL RTLD_GLOBAL 12215#else 12216# ifdef DL_GLOBAL 12217# define LT_DLGLOBAL DL_GLOBAL 12218# else 12219# define LT_DLGLOBAL 0 12220# endif 12221#endif 12222 12223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12224 find out it does not work in some platform. */ 12225#ifndef LT_DLLAZY_OR_NOW 12226# ifdef RTLD_LAZY 12227# define LT_DLLAZY_OR_NOW RTLD_LAZY 12228# else 12229# ifdef DL_LAZY 12230# define LT_DLLAZY_OR_NOW DL_LAZY 12231# else 12232# ifdef RTLD_NOW 12233# define LT_DLLAZY_OR_NOW RTLD_NOW 12234# else 12235# ifdef DL_NOW 12236# define LT_DLLAZY_OR_NOW DL_NOW 12237# else 12238# define LT_DLLAZY_OR_NOW 0 12239# endif 12240# endif 12241# endif 12242# endif 12243#endif 12244 12245void fnord() { int i=42;} 12246int main () 12247{ 12248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12249 int status = $lt_dlunknown; 12250 12251 if (self) 12252 { 12253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12255 /* dlclose (self); */ 12256 } 12257 else 12258 puts (dlerror ()); 12259 12260 return status; 12261} 12262_LT_EOF 12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12264 (eval $ac_link) 2>&5 12265 ac_status=$? 12266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12268 (./conftest; exit; ) >&5 2>/dev/null 12269 lt_status=$? 12270 case x$lt_status in 12271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12274 esac 12275 else : 12276 # compilation failed 12277 lt_cv_dlopen_self=no 12278 fi 12279fi 12280rm -fr conftest* 12281 12282 12283fi 12284{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12285$as_echo "$lt_cv_dlopen_self" >&6; } 12286 12287 if test "x$lt_cv_dlopen_self" = xyes; then 12288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12289 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12290$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12291if test "${lt_cv_dlopen_self_static+set}" = set; then 12292 $as_echo_n "(cached) " >&6 12293else 12294 if test "$cross_compiling" = yes; then : 12295 lt_cv_dlopen_self_static=cross 12296else 12297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12298 lt_status=$lt_dlunknown 12299 cat > conftest.$ac_ext <<_LT_EOF 12300#line 12300 "configure" 12301#include "confdefs.h" 12302 12303#if HAVE_DLFCN_H 12304#include <dlfcn.h> 12305#endif 12306 12307#include <stdio.h> 12308 12309#ifdef RTLD_GLOBAL 12310# define LT_DLGLOBAL RTLD_GLOBAL 12311#else 12312# ifdef DL_GLOBAL 12313# define LT_DLGLOBAL DL_GLOBAL 12314# else 12315# define LT_DLGLOBAL 0 12316# endif 12317#endif 12318 12319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12320 find out it does not work in some platform. */ 12321#ifndef LT_DLLAZY_OR_NOW 12322# ifdef RTLD_LAZY 12323# define LT_DLLAZY_OR_NOW RTLD_LAZY 12324# else 12325# ifdef DL_LAZY 12326# define LT_DLLAZY_OR_NOW DL_LAZY 12327# else 12328# ifdef RTLD_NOW 12329# define LT_DLLAZY_OR_NOW RTLD_NOW 12330# else 12331# ifdef DL_NOW 12332# define LT_DLLAZY_OR_NOW DL_NOW 12333# else 12334# define LT_DLLAZY_OR_NOW 0 12335# endif 12336# endif 12337# endif 12338# endif 12339#endif 12340 12341void fnord() { int i=42;} 12342int main () 12343{ 12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12345 int status = $lt_dlunknown; 12346 12347 if (self) 12348 { 12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12351 /* dlclose (self); */ 12352 } 12353 else 12354 puts (dlerror ()); 12355 12356 return status; 12357} 12358_LT_EOF 12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12360 (eval $ac_link) 2>&5 12361 ac_status=$? 12362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12364 (./conftest; exit; ) >&5 2>/dev/null 12365 lt_status=$? 12366 case x$lt_status in 12367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12370 esac 12371 else : 12372 # compilation failed 12373 lt_cv_dlopen_self_static=no 12374 fi 12375fi 12376rm -fr conftest* 12377 12378 12379fi 12380{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12381$as_echo "$lt_cv_dlopen_self_static" >&6; } 12382 fi 12383 12384 CPPFLAGS="$save_CPPFLAGS" 12385 LDFLAGS="$save_LDFLAGS" 12386 LIBS="$save_LIBS" 12387 ;; 12388 esac 12389 12390 case $lt_cv_dlopen_self in 12391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12392 *) enable_dlopen_self=unknown ;; 12393 esac 12394 12395 case $lt_cv_dlopen_self_static in 12396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12397 *) enable_dlopen_self_static=unknown ;; 12398 esac 12399fi 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417striplib= 12418old_striplib= 12419{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12420$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12421if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12423 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12424 { $as_echo "$as_me:$LINENO: result: yes" >&5 12425$as_echo "yes" >&6; } 12426else 12427# FIXME - insert some real tests, host_os isn't really good enough 12428 case $host_os in 12429 darwin*) 12430 if test -n "$STRIP" ; then 12431 striplib="$STRIP -x" 12432 old_striplib="$STRIP -S" 12433 { $as_echo "$as_me:$LINENO: result: yes" >&5 12434$as_echo "yes" >&6; } 12435 else 12436 { $as_echo "$as_me:$LINENO: result: no" >&5 12437$as_echo "no" >&6; } 12438 fi 12439 ;; 12440 *) 12441 { $as_echo "$as_me:$LINENO: result: no" >&5 12442$as_echo "no" >&6; } 12443 ;; 12444 esac 12445fi 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 # Report which library types will actually be built 12459 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12460$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12461 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12462$as_echo "$can_build_shared" >&6; } 12463 12464 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12465$as_echo_n "checking whether to build shared libraries... " >&6; } 12466 test "$can_build_shared" = "no" && enable_shared=no 12467 12468 # On AIX, shared libraries and static libraries use the same namespace, and 12469 # are all built from PIC. 12470 case $host_os in 12471 aix3*) 12472 test "$enable_shared" = yes && enable_static=no 12473 if test -n "$RANLIB"; then 12474 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12475 postinstall_cmds='$RANLIB $lib' 12476 fi 12477 ;; 12478 12479 aix[4-9]*) 12480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12481 test "$enable_shared" = yes && enable_static=no 12482 fi 12483 ;; 12484 esac 12485 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12486$as_echo "$enable_shared" >&6; } 12487 12488 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12489$as_echo_n "checking whether to build static libraries... " >&6; } 12490 # Make sure either enable_shared or enable_static is yes. 12491 test "$enable_shared" = yes || enable_static=yes 12492 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12493$as_echo "$enable_static" >&6; } 12494 12495 12496 12497 12498fi 12499ac_ext=c 12500ac_cpp='$CPP $CPPFLAGS' 12501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12503ac_compiler_gnu=$ac_cv_c_compiler_gnu 12504 12505CC="$lt_save_CC" 12506 12507 12508ac_ext=cpp 12509ac_cpp='$CXXCPP $CPPFLAGS' 12510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12513 12514archive_cmds_need_lc_CXX=no 12515allow_undefined_flag_CXX= 12516always_export_symbols_CXX=no 12517archive_expsym_cmds_CXX= 12518compiler_needs_object_CXX=no 12519export_dynamic_flag_spec_CXX= 12520hardcode_direct_CXX=no 12521hardcode_direct_absolute_CXX=no 12522hardcode_libdir_flag_spec_CXX= 12523hardcode_libdir_flag_spec_ld_CXX= 12524hardcode_libdir_separator_CXX= 12525hardcode_minus_L_CXX=no 12526hardcode_shlibpath_var_CXX=unsupported 12527hardcode_automatic_CXX=no 12528inherit_rpath_CXX=no 12529module_cmds_CXX= 12530module_expsym_cmds_CXX= 12531link_all_deplibs_CXX=unknown 12532old_archive_cmds_CXX=$old_archive_cmds 12533no_undefined_flag_CXX= 12534whole_archive_flag_spec_CXX= 12535enable_shared_with_static_runtimes_CXX=no 12536 12537# Source file extension for C++ test sources. 12538ac_ext=cpp 12539 12540# Object file extension for compiled C++ test sources. 12541objext=o 12542objext_CXX=$objext 12543 12544# No sense in running all these tests if we already determined that 12545# the CXX compiler isn't working. Some variables (like enable_shared) 12546# are currently assumed to apply to all compilers on this platform, 12547# and will be corrupted by setting them based on a non-working compiler. 12548if test "$_lt_caught_CXX_error" != yes; then 12549 # Code to be used in simple compile tests 12550 lt_simple_compile_test_code="int some_variable = 0;" 12551 12552 # Code to be used in simple link tests 12553 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12554 12555 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12556 12557 12558 12559 12560 12561 12562# If no C compiler was specified, use CC. 12563LTCC=${LTCC-"$CC"} 12564 12565# If no C compiler flags were specified, use CFLAGS. 12566LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12567 12568# Allow CC to be a program name with arguments. 12569compiler=$CC 12570 12571 12572 # save warnings/boilerplate of simple test code 12573 ac_outfile=conftest.$ac_objext 12574echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12575eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12576_lt_compiler_boilerplate=`cat conftest.err` 12577$RM conftest* 12578 12579 ac_outfile=conftest.$ac_objext 12580echo "$lt_simple_link_test_code" >conftest.$ac_ext 12581eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12582_lt_linker_boilerplate=`cat conftest.err` 12583$RM -r conftest* 12584 12585 12586 # Allow CC to be a program name with arguments. 12587 lt_save_CC=$CC 12588 lt_save_LD=$LD 12589 lt_save_GCC=$GCC 12590 GCC=$GXX 12591 lt_save_with_gnu_ld=$with_gnu_ld 12592 lt_save_path_LD=$lt_cv_path_LD 12593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12594 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12595 else 12596 $as_unset lt_cv_prog_gnu_ld 12597 fi 12598 if test -n "${lt_cv_path_LDCXX+set}"; then 12599 lt_cv_path_LD=$lt_cv_path_LDCXX 12600 else 12601 $as_unset lt_cv_path_LD 12602 fi 12603 test -z "${LDCXX+set}" || LD=$LDCXX 12604 CC=${CXX-"c++"} 12605 compiler=$CC 12606 compiler_CXX=$CC 12607 for cc_temp in $compiler""; do 12608 case $cc_temp in 12609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12611 \-*) ;; 12612 *) break;; 12613 esac 12614done 12615cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12616 12617 12618 if test -n "$compiler"; then 12619 # We don't want -fno-exception when compiling C++ code, so set the 12620 # no_builtin_flag separately 12621 if test "$GXX" = yes; then 12622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12623 else 12624 lt_prog_compiler_no_builtin_flag_CXX= 12625 fi 12626 12627 if test "$GXX" = yes; then 12628 # Set up default GNU C++ configuration 12629 12630 12631 12632# Check whether --with-gnu-ld was given. 12633if test "${with_gnu_ld+set}" = set; then 12634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12635else 12636 with_gnu_ld=no 12637fi 12638 12639ac_prog=ld 12640if test "$GCC" = yes; then 12641 # Check if gcc -print-prog-name=ld gives a path. 12642 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12643$as_echo_n "checking for ld used by $CC... " >&6; } 12644 case $host in 12645 *-*-mingw*) 12646 # gcc leaves a trailing carriage return which upsets mingw 12647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12648 *) 12649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12650 esac 12651 case $ac_prog in 12652 # Accept absolute paths. 12653 [\\/]* | ?:[\\/]*) 12654 re_direlt='/[^/][^/]*/\.\./' 12655 # Canonicalize the pathname of ld 12656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12659 done 12660 test -z "$LD" && LD="$ac_prog" 12661 ;; 12662 "") 12663 # If it fails, then pretend we aren't using GCC. 12664 ac_prog=ld 12665 ;; 12666 *) 12667 # If it is relative, then search for the first ld in PATH. 12668 with_gnu_ld=unknown 12669 ;; 12670 esac 12671elif test "$with_gnu_ld" = yes; then 12672 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 12673$as_echo_n "checking for GNU ld... " >&6; } 12674else 12675 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12676$as_echo_n "checking for non-GNU ld... " >&6; } 12677fi 12678if test "${lt_cv_path_LD+set}" = set; then 12679 $as_echo_n "(cached) " >&6 12680else 12681 if test -z "$LD"; then 12682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12683 for ac_dir in $PATH; do 12684 IFS="$lt_save_ifs" 12685 test -z "$ac_dir" && ac_dir=. 12686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12687 lt_cv_path_LD="$ac_dir/$ac_prog" 12688 # Check to see if the program is GNU ld. I'd rather use --version, 12689 # but apparently some variants of GNU ld only accept -v. 12690 # Break only if it was the GNU/non-GNU ld that we prefer. 12691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12692 *GNU* | *'with BFD'*) 12693 test "$with_gnu_ld" != no && break 12694 ;; 12695 *) 12696 test "$with_gnu_ld" != yes && break 12697 ;; 12698 esac 12699 fi 12700 done 12701 IFS="$lt_save_ifs" 12702else 12703 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12704fi 12705fi 12706 12707LD="$lt_cv_path_LD" 12708if test -n "$LD"; then 12709 { $as_echo "$as_me:$LINENO: result: $LD" >&5 12710$as_echo "$LD" >&6; } 12711else 12712 { $as_echo "$as_me:$LINENO: result: no" >&5 12713$as_echo "no" >&6; } 12714fi 12715test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12716$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12717 { (exit 1); exit 1; }; } 12718{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12719$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12720if test "${lt_cv_prog_gnu_ld+set}" = set; then 12721 $as_echo_n "(cached) " >&6 12722else 12723 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12724case `$LD -v 2>&1 </dev/null` in 12725*GNU* | *'with BFD'*) 12726 lt_cv_prog_gnu_ld=yes 12727 ;; 12728*) 12729 lt_cv_prog_gnu_ld=no 12730 ;; 12731esac 12732fi 12733{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12734$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12735with_gnu_ld=$lt_cv_prog_gnu_ld 12736 12737 12738 12739 12740 12741 12742 12743 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12744 # archiving commands below assume that GNU ld is being used. 12745 if test "$with_gnu_ld" = yes; then 12746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12747 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12748 12749 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12751 12752 # If archive_cmds runs LD, not CC, wlarc should be empty 12753 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12754 # investigate it a little bit more. (MM) 12755 wlarc='${wl}' 12756 12757 # ancient GNU ld didn't support --whole-archive et. al. 12758 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12759 $GREP 'no-whole-archive' > /dev/null; then 12760 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12761 else 12762 whole_archive_flag_spec_CXX= 12763 fi 12764 else 12765 with_gnu_ld=no 12766 wlarc= 12767 12768 # A generic and very simple default shared library creation 12769 # command for GNU C++ for the case where it uses the native 12770 # linker, instead of GNU ld. If possible, this setting should 12771 # overridden to take advantage of the native linker features on 12772 # the platform it is being used on. 12773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12774 fi 12775 12776 # Commands to make compiler produce verbose output that lists 12777 # what "hidden" libraries, object files and flags are used when 12778 # linking a shared library. 12779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12780 12781 else 12782 GXX=no 12783 with_gnu_ld=no 12784 wlarc= 12785 fi 12786 12787 # PORTME: fill in a description of your system's C++ link characteristics 12788 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12789$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12790 ld_shlibs_CXX=yes 12791 case $host_os in 12792 aix3*) 12793 # FIXME: insert proper C++ library support 12794 ld_shlibs_CXX=no 12795 ;; 12796 aix[4-9]*) 12797 if test "$host_cpu" = ia64; then 12798 # On IA64, the linker does run time linking by default, so we don't 12799 # have to do anything special. 12800 aix_use_runtimelinking=no 12801 exp_sym_flag='-Bexport' 12802 no_entry_flag="" 12803 else 12804 aix_use_runtimelinking=no 12805 12806 # Test if we are trying to use run time linking or normal 12807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12808 # need to do runtime linking. 12809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12810 for ld_flag in $LDFLAGS; do 12811 case $ld_flag in 12812 *-brtl*) 12813 aix_use_runtimelinking=yes 12814 break 12815 ;; 12816 esac 12817 done 12818 ;; 12819 esac 12820 12821 exp_sym_flag='-bexport' 12822 no_entry_flag='-bnoentry' 12823 fi 12824 12825 # When large executables or shared objects are built, AIX ld can 12826 # have problems creating the table of contents. If linking a library 12827 # or program results in "error TOC overflow" add -mminimal-toc to 12828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12830 12831 archive_cmds_CXX='' 12832 hardcode_direct_CXX=yes 12833 hardcode_direct_absolute_CXX=yes 12834 hardcode_libdir_separator_CXX=':' 12835 link_all_deplibs_CXX=yes 12836 file_list_spec_CXX='${wl}-f,' 12837 12838 if test "$GXX" = yes; then 12839 case $host_os in aix4.[012]|aix4.[012].*) 12840 # We only want to do this on AIX 4.2 and lower, the check 12841 # below for broken collect2 doesn't work under 4.3+ 12842 collect2name=`${CC} -print-prog-name=collect2` 12843 if test -f "$collect2name" && 12844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12845 then 12846 # We have reworked collect2 12847 : 12848 else 12849 # We have old collect2 12850 hardcode_direct_CXX=unsupported 12851 # It fails to find uninstalled libraries when the uninstalled 12852 # path is not listed in the libpath. Setting hardcode_minus_L 12853 # to unsupported forces relinking 12854 hardcode_minus_L_CXX=yes 12855 hardcode_libdir_flag_spec_CXX='-L$libdir' 12856 hardcode_libdir_separator_CXX= 12857 fi 12858 esac 12859 shared_flag='-shared' 12860 if test "$aix_use_runtimelinking" = yes; then 12861 shared_flag="$shared_flag "'${wl}-G' 12862 fi 12863 else 12864 # not using gcc 12865 if test "$host_cpu" = ia64; then 12866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12867 # chokes on -Wl,-G. The following line is correct: 12868 shared_flag='-G' 12869 else 12870 if test "$aix_use_runtimelinking" = yes; then 12871 shared_flag='${wl}-G' 12872 else 12873 shared_flag='${wl}-bM:SRE' 12874 fi 12875 fi 12876 fi 12877 12878 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12879 # It seems that -bexpall does not export symbols beginning with 12880 # underscore (_), so it is better to generate a list of symbols to 12881 # export. 12882 always_export_symbols_CXX=yes 12883 if test "$aix_use_runtimelinking" = yes; then 12884 # Warning - without using the other runtime loading flags (-brtl), 12885 # -berok will link without error, but may produce a broken library. 12886 allow_undefined_flag_CXX='-berok' 12887 # Determine the default libpath from the value encoded in an empty 12888 # executable. 12889 cat >conftest.$ac_ext <<_ACEOF 12890/* confdefs.h. */ 12891_ACEOF 12892cat confdefs.h >>conftest.$ac_ext 12893cat >>conftest.$ac_ext <<_ACEOF 12894/* end confdefs.h. */ 12895 12896int 12897main () 12898{ 12899 12900 ; 12901 return 0; 12902} 12903_ACEOF 12904rm -f conftest.$ac_objext conftest$ac_exeext 12905if { (ac_try="$ac_link" 12906case "(($ac_try" in 12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12908 *) ac_try_echo=$ac_try;; 12909esac 12910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12911$as_echo "$ac_try_echo") >&5 12912 (eval "$ac_link") 2>conftest.er1 12913 ac_status=$? 12914 grep -v '^ *+' conftest.er1 >conftest.err 12915 rm -f conftest.er1 12916 cat conftest.err >&5 12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12918 (exit $ac_status); } && { 12919 test -z "$ac_cxx_werror_flag" || 12920 test ! -s conftest.err 12921 } && test -s conftest$ac_exeext && { 12922 test "$cross_compiling" = yes || 12923 $as_test_x conftest$ac_exeext 12924 }; then 12925 12926lt_aix_libpath_sed=' 12927 /Import File Strings/,/^$/ { 12928 /^0/ { 12929 s/^0 *\(.*\)$/\1/ 12930 p 12931 } 12932 }' 12933aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12934# Check for a 64-bit object if we didn't find anything. 12935if test -z "$aix_libpath"; then 12936 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12937fi 12938else 12939 $as_echo "$as_me: failed program was:" >&5 12940sed 's/^/| /' conftest.$ac_ext >&5 12941 12942 12943fi 12944 12945rm -rf conftest.dSYM 12946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12947 conftest$ac_exeext conftest.$ac_ext 12948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12949 12950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12951 12952 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12953 else 12954 if test "$host_cpu" = ia64; then 12955 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12956 allow_undefined_flag_CXX="-z nodefs" 12957 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12958 else 12959 # Determine the default libpath from the value encoded in an 12960 # empty executable. 12961 cat >conftest.$ac_ext <<_ACEOF 12962/* confdefs.h. */ 12963_ACEOF 12964cat confdefs.h >>conftest.$ac_ext 12965cat >>conftest.$ac_ext <<_ACEOF 12966/* end confdefs.h. */ 12967 12968int 12969main () 12970{ 12971 12972 ; 12973 return 0; 12974} 12975_ACEOF 12976rm -f conftest.$ac_objext conftest$ac_exeext 12977if { (ac_try="$ac_link" 12978case "(($ac_try" in 12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12980 *) ac_try_echo=$ac_try;; 12981esac 12982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12983$as_echo "$ac_try_echo") >&5 12984 (eval "$ac_link") 2>conftest.er1 12985 ac_status=$? 12986 grep -v '^ *+' conftest.er1 >conftest.err 12987 rm -f conftest.er1 12988 cat conftest.err >&5 12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12990 (exit $ac_status); } && { 12991 test -z "$ac_cxx_werror_flag" || 12992 test ! -s conftest.err 12993 } && test -s conftest$ac_exeext && { 12994 test "$cross_compiling" = yes || 12995 $as_test_x conftest$ac_exeext 12996 }; then 12997 12998lt_aix_libpath_sed=' 12999 /Import File Strings/,/^$/ { 13000 /^0/ { 13001 s/^0 *\(.*\)$/\1/ 13002 p 13003 } 13004 }' 13005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13006# Check for a 64-bit object if we didn't find anything. 13007if test -z "$aix_libpath"; then 13008 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13009fi 13010else 13011 $as_echo "$as_me: failed program was:" >&5 13012sed 's/^/| /' conftest.$ac_ext >&5 13013 13014 13015fi 13016 13017rm -rf conftest.dSYM 13018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13019 conftest$ac_exeext conftest.$ac_ext 13020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13021 13022 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13023 # Warning - without using the other run time loading flags, 13024 # -berok will link without error, but may produce a broken library. 13025 no_undefined_flag_CXX=' ${wl}-bernotok' 13026 allow_undefined_flag_CXX=' ${wl}-berok' 13027 # Exported symbols can be pulled into shared objects from archives 13028 whole_archive_flag_spec_CXX='$convenience' 13029 archive_cmds_need_lc_CXX=yes 13030 # This is similar to how AIX traditionally builds its shared 13031 # libraries. 13032 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13033 fi 13034 fi 13035 ;; 13036 13037 beos*) 13038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13039 allow_undefined_flag_CXX=unsupported 13040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13041 # support --undefined. This deserves some investigation. FIXME 13042 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13043 else 13044 ld_shlibs_CXX=no 13045 fi 13046 ;; 13047 13048 chorus*) 13049 case $cc_basename in 13050 *) 13051 # FIXME: insert proper C++ library support 13052 ld_shlibs_CXX=no 13053 ;; 13054 esac 13055 ;; 13056 13057 cygwin* | mingw* | pw32* | cegcc*) 13058 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13059 # as there is no search path for DLLs. 13060 hardcode_libdir_flag_spec_CXX='-L$libdir' 13061 allow_undefined_flag_CXX=unsupported 13062 always_export_symbols_CXX=no 13063 enable_shared_with_static_runtimes_CXX=yes 13064 13065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13066 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13067 # If the export-symbols file already is a .def file (1st line 13068 # is EXPORTS), use it as is; otherwise, prepend... 13069 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13070 cp $export_symbols $output_objdir/$soname.def; 13071 else 13072 echo EXPORTS > $output_objdir/$soname.def; 13073 cat $export_symbols >> $output_objdir/$soname.def; 13074 fi~ 13075 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13076 else 13077 ld_shlibs_CXX=no 13078 fi 13079 ;; 13080 darwin* | rhapsody*) 13081 13082 13083 archive_cmds_need_lc_CXX=no 13084 hardcode_direct_CXX=no 13085 hardcode_automatic_CXX=yes 13086 hardcode_shlibpath_var_CXX=unsupported 13087 whole_archive_flag_spec_CXX='' 13088 link_all_deplibs_CXX=yes 13089 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13090 case $cc_basename in 13091 ifort*) _lt_dar_can_shared=yes ;; 13092 *) _lt_dar_can_shared=$GCC ;; 13093 esac 13094 if test "$_lt_dar_can_shared" = "yes"; then 13095 output_verbose_link_cmd=echo 13096 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13097 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13098 archive_expsym_cmds_CXX="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}" 13099 module_expsym_cmds_CXX="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}" 13100 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13101 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13102 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13103 fi 13104 13105 else 13106 ld_shlibs_CXX=no 13107 fi 13108 13109 ;; 13110 13111 dgux*) 13112 case $cc_basename in 13113 ec++*) 13114 # FIXME: insert proper C++ library support 13115 ld_shlibs_CXX=no 13116 ;; 13117 ghcx*) 13118 # Green Hills C++ Compiler 13119 # FIXME: insert proper C++ library support 13120 ld_shlibs_CXX=no 13121 ;; 13122 *) 13123 # FIXME: insert proper C++ library support 13124 ld_shlibs_CXX=no 13125 ;; 13126 esac 13127 ;; 13128 13129 freebsd[12]*) 13130 # C++ shared libraries reported to be fairly broken before 13131 # switch to ELF 13132 ld_shlibs_CXX=no 13133 ;; 13134 13135 freebsd-elf*) 13136 archive_cmds_need_lc_CXX=no 13137 ;; 13138 13139 freebsd* | dragonfly*) 13140 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13141 # conventions 13142 ld_shlibs_CXX=yes 13143 ;; 13144 13145 gnu*) 13146 ;; 13147 13148 hpux9*) 13149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13150 hardcode_libdir_separator_CXX=: 13151 export_dynamic_flag_spec_CXX='${wl}-E' 13152 hardcode_direct_CXX=yes 13153 hardcode_minus_L_CXX=yes # Not in the search PATH, 13154 # but as the default 13155 # location of the library. 13156 13157 case $cc_basename in 13158 CC*) 13159 # FIXME: insert proper C++ library support 13160 ld_shlibs_CXX=no 13161 ;; 13162 aCC*) 13163 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13164 # Commands to make compiler produce verbose output that lists 13165 # what "hidden" libraries, object files and flags are used when 13166 # linking a shared library. 13167 # 13168 # There doesn't appear to be a way to prevent this compiler from 13169 # explicitly linking system object files so we need to strip them 13170 # from the output so that they don't get included in the library 13171 # dependencies. 13172 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13173 ;; 13174 *) 13175 if test "$GXX" = yes; then 13176 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13177 else 13178 # FIXME: insert proper C++ library support 13179 ld_shlibs_CXX=no 13180 fi 13181 ;; 13182 esac 13183 ;; 13184 13185 hpux10*|hpux11*) 13186 if test $with_gnu_ld = no; then 13187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13188 hardcode_libdir_separator_CXX=: 13189 13190 case $host_cpu in 13191 hppa*64*|ia64*) 13192 ;; 13193 *) 13194 export_dynamic_flag_spec_CXX='${wl}-E' 13195 ;; 13196 esac 13197 fi 13198 case $host_cpu in 13199 hppa*64*|ia64*) 13200 hardcode_direct_CXX=no 13201 hardcode_shlibpath_var_CXX=no 13202 ;; 13203 *) 13204 hardcode_direct_CXX=yes 13205 hardcode_direct_absolute_CXX=yes 13206 hardcode_minus_L_CXX=yes # Not in the search PATH, 13207 # but as the default 13208 # location of the library. 13209 ;; 13210 esac 13211 13212 case $cc_basename in 13213 CC*) 13214 # FIXME: insert proper C++ library support 13215 ld_shlibs_CXX=no 13216 ;; 13217 aCC*) 13218 case $host_cpu in 13219 hppa*64*) 13220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13221 ;; 13222 ia64*) 13223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13224 ;; 13225 *) 13226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13227 ;; 13228 esac 13229 # Commands to make compiler produce verbose output that lists 13230 # what "hidden" libraries, object files and flags are used when 13231 # linking a shared library. 13232 # 13233 # There doesn't appear to be a way to prevent this compiler from 13234 # explicitly linking system object files so we need to strip them 13235 # from the output so that they don't get included in the library 13236 # dependencies. 13237 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13238 ;; 13239 *) 13240 if test "$GXX" = yes; then 13241 if test $with_gnu_ld = no; then 13242 case $host_cpu in 13243 hppa*64*) 13244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13245 ;; 13246 ia64*) 13247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13248 ;; 13249 *) 13250 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13251 ;; 13252 esac 13253 fi 13254 else 13255 # FIXME: insert proper C++ library support 13256 ld_shlibs_CXX=no 13257 fi 13258 ;; 13259 esac 13260 ;; 13261 13262 interix[3-9]*) 13263 hardcode_direct_CXX=no 13264 hardcode_shlibpath_var_CXX=no 13265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13266 export_dynamic_flag_spec_CXX='${wl}-E' 13267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13268 # Instead, shared libraries are loaded at an image base (0x10000000 by 13269 # default) and relocated if they conflict, which is a slow very memory 13270 # consuming and fragmenting process. To avoid this, we pick a random, 13271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13272 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13273 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13274 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13275 ;; 13276 irix5* | irix6*) 13277 case $cc_basename in 13278 CC*) 13279 # SGI C++ 13280 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13281 13282 # Archives containing C++ object files must be created using 13283 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13284 # necessary to make sure instantiated templates are included 13285 # in the archive. 13286 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13287 ;; 13288 *) 13289 if test "$GXX" = yes; then 13290 if test "$with_gnu_ld" = no; then 13291 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13292 else 13293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 13294 fi 13295 fi 13296 link_all_deplibs_CXX=yes 13297 ;; 13298 esac 13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13300 hardcode_libdir_separator_CXX=: 13301 inherit_rpath_CXX=yes 13302 ;; 13303 13304 linux* | k*bsd*-gnu) 13305 case $cc_basename in 13306 KCC*) 13307 # Kuck and Associates, Inc. (KAI) C++ Compiler 13308 13309 # KCC will only create a shared library if the output file 13310 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13311 # to its proper name (with version) after linking. 13312 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13313 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13314 # Commands to make compiler produce verbose output that lists 13315 # what "hidden" libraries, object files and flags are used when 13316 # linking a shared library. 13317 # 13318 # There doesn't appear to be a way to prevent this compiler from 13319 # explicitly linking system object files so we need to strip them 13320 # from the output so that they don't get included in the library 13321 # dependencies. 13322 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13323 13324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13326 13327 # Archives containing C++ object files must be created using 13328 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13329 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13330 ;; 13331 icpc* | ecpc* ) 13332 # Intel C++ 13333 with_gnu_ld=yes 13334 # version 8.0 and above of icpc choke on multiply defined symbols 13335 # if we add $predep_objects and $postdep_objects, however 7.1 and 13336 # earlier do not add the objects themselves. 13337 case `$CC -V 2>&1` in 13338 *"Version 7."*) 13339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13340 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13341 ;; 13342 *) # Version 8.0 or newer 13343 tmp_idyn= 13344 case $host_cpu in 13345 ia64*) tmp_idyn=' -i_dynamic';; 13346 esac 13347 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13348 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13349 ;; 13350 esac 13351 archive_cmds_need_lc_CXX=no 13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13354 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13355 ;; 13356 pgCC* | pgcpp*) 13357 # Portland Group C++ compiler 13358 case `$CC -V` in 13359 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13360 prelink_cmds_CXX='tpldir=Template.dir~ 13361 rm -rf $tpldir~ 13362 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13363 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13364 old_archive_cmds_CXX='tpldir=Template.dir~ 13365 rm -rf $tpldir~ 13366 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13367 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13368 $RANLIB $oldlib' 13369 archive_cmds_CXX='tpldir=Template.dir~ 13370 rm -rf $tpldir~ 13371 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13372 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13373 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13374 rm -rf $tpldir~ 13375 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13376 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13377 ;; 13378 *) # Version 6 will use weak symbols 13379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13380 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13381 ;; 13382 esac 13383 13384 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13386 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13387 ;; 13388 cxx*) 13389 # Compaq C++ 13390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13391 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13392 13393 runpath_var=LD_RUN_PATH 13394 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13395 hardcode_libdir_separator_CXX=: 13396 13397 # Commands to make compiler produce verbose output that lists 13398 # what "hidden" libraries, object files and flags are used when 13399 # linking a shared library. 13400 # 13401 # There doesn't appear to be a way to prevent this compiler from 13402 # explicitly linking system object files so we need to strip them 13403 # from the output so that they don't get included in the library 13404 # dependencies. 13405 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13406 ;; 13407 xl*) 13408 # IBM XL 8.0 on PPC, with GNU ld 13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13411 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13412 if test "x$supports_anon_versioning" = xyes; then 13413 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13415 echo "local: *; };" >> $output_objdir/$libname.ver~ 13416 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13417 fi 13418 ;; 13419 *) 13420 case `$CC -V 2>&1 | sed 5q` in 13421 *Sun\ C*) 13422 # Sun C++ 5.9 13423 no_undefined_flag_CXX=' -zdefs' 13424 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13425 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13426 hardcode_libdir_flag_spec_CXX='-R$libdir' 13427 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13428 compiler_needs_object_CXX=yes 13429 13430 # Not sure whether something based on 13431 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13432 # would be better. 13433 output_verbose_link_cmd='echo' 13434 13435 # Archives containing C++ object files must be created using 13436 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13437 # necessary to make sure instantiated templates are included 13438 # in the archive. 13439 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13440 ;; 13441 esac 13442 ;; 13443 esac 13444 ;; 13445 13446 lynxos*) 13447 # FIXME: insert proper C++ library support 13448 ld_shlibs_CXX=no 13449 ;; 13450 13451 m88k*) 13452 # FIXME: insert proper C++ library support 13453 ld_shlibs_CXX=no 13454 ;; 13455 13456 mvs*) 13457 case $cc_basename in 13458 cxx*) 13459 # FIXME: insert proper C++ library support 13460 ld_shlibs_CXX=no 13461 ;; 13462 *) 13463 # FIXME: insert proper C++ library support 13464 ld_shlibs_CXX=no 13465 ;; 13466 esac 13467 ;; 13468 13469 netbsd*) 13470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13471 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13472 wlarc= 13473 hardcode_libdir_flag_spec_CXX='-R$libdir' 13474 hardcode_direct_CXX=yes 13475 hardcode_shlibpath_var_CXX=no 13476 fi 13477 # Workaround some broken pre-1.5 toolchains 13478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13479 ;; 13480 13481 *nto* | *qnx*) 13482 ld_shlibs_CXX=yes 13483 ;; 13484 13485 openbsd2*) 13486 # C++ shared libraries are fairly broken 13487 ld_shlibs_CXX=no 13488 ;; 13489 13490 openbsd*) 13491 if test -f /usr/libexec/ld.so; then 13492 hardcode_direct_CXX=yes 13493 hardcode_shlibpath_var_CXX=no 13494 hardcode_direct_absolute_CXX=yes 13495 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13498 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13499 export_dynamic_flag_spec_CXX='${wl}-E' 13500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13501 fi 13502 output_verbose_link_cmd=echo 13503 else 13504 ld_shlibs_CXX=no 13505 fi 13506 ;; 13507 13508 osf3* | osf4* | osf5*) 13509 case $cc_basename in 13510 KCC*) 13511 # Kuck and Associates, Inc. (KAI) C++ Compiler 13512 13513 # KCC will only create a shared library if the output file 13514 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13515 # to its proper name (with version) after linking. 13516 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13517 13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13519 hardcode_libdir_separator_CXX=: 13520 13521 # Archives containing C++ object files must be created using 13522 # the KAI C++ compiler. 13523 case $host in 13524 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13525 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13526 esac 13527 ;; 13528 RCC*) 13529 # Rational C++ 2.4.1 13530 # FIXME: insert proper C++ library support 13531 ld_shlibs_CXX=no 13532 ;; 13533 cxx*) 13534 case $host in 13535 osf3*) 13536 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13537 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13539 ;; 13540 *) 13541 allow_undefined_flag_CXX=' -expect_unresolved \*' 13542 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13543 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13544 echo "-hidden">> $lib.exp~ 13545 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 13546 $RM $lib.exp' 13547 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13548 ;; 13549 esac 13550 13551 hardcode_libdir_separator_CXX=: 13552 13553 # Commands to make compiler produce verbose output that lists 13554 # what "hidden" libraries, object files and flags are used when 13555 # linking a shared library. 13556 # 13557 # There doesn't appear to be a way to prevent this compiler from 13558 # explicitly linking system object files so we need to strip them 13559 # from the output so that they don't get included in the library 13560 # dependencies. 13561 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13562 ;; 13563 *) 13564 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13566 case $host in 13567 osf3*) 13568 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13569 ;; 13570 *) 13571 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13572 ;; 13573 esac 13574 13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13576 hardcode_libdir_separator_CXX=: 13577 13578 # Commands to make compiler produce verbose output that lists 13579 # what "hidden" libraries, object files and flags are used when 13580 # linking a shared library. 13581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13582 13583 else 13584 # FIXME: insert proper C++ library support 13585 ld_shlibs_CXX=no 13586 fi 13587 ;; 13588 esac 13589 ;; 13590 13591 psos*) 13592 # FIXME: insert proper C++ library support 13593 ld_shlibs_CXX=no 13594 ;; 13595 13596 sunos4*) 13597 case $cc_basename in 13598 CC*) 13599 # Sun C++ 4.x 13600 # FIXME: insert proper C++ library support 13601 ld_shlibs_CXX=no 13602 ;; 13603 lcc*) 13604 # Lucid 13605 # FIXME: insert proper C++ library support 13606 ld_shlibs_CXX=no 13607 ;; 13608 *) 13609 # FIXME: insert proper C++ library support 13610 ld_shlibs_CXX=no 13611 ;; 13612 esac 13613 ;; 13614 13615 solaris*) 13616 case $cc_basename in 13617 CC*) 13618 # Sun C++ 4.2, 5.x and Centerline C++ 13619 archive_cmds_need_lc_CXX=yes 13620 no_undefined_flag_CXX=' -zdefs' 13621 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13622 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13623 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13624 13625 hardcode_libdir_flag_spec_CXX='-R$libdir' 13626 hardcode_shlibpath_var_CXX=no 13627 case $host_os in 13628 solaris2.[0-5] | solaris2.[0-5].*) ;; 13629 *) 13630 # The compiler driver will combine and reorder linker options, 13631 # but understands `-z linker_flag'. 13632 # Supported since Solaris 2.6 (maybe 2.5.1?) 13633 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13634 ;; 13635 esac 13636 link_all_deplibs_CXX=yes 13637 13638 output_verbose_link_cmd='echo' 13639 13640 # Archives containing C++ object files must be created using 13641 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13642 # necessary to make sure instantiated templates are included 13643 # in the archive. 13644 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13645 ;; 13646 gcx*) 13647 # Green Hills C++ Compiler 13648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13649 13650 # The C++ compiler must be used to create the archive. 13651 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13652 ;; 13653 *) 13654 # GNU C++ compiler with Solaris linker 13655 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13656 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13657 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13658 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13659 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13660 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13661 13662 # Commands to make compiler produce verbose output that lists 13663 # what "hidden" libraries, object files and flags are used when 13664 # linking a shared library. 13665 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13666 else 13667 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13668 # platform. 13669 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13670 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13671 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13672 13673 # Commands to make compiler produce verbose output that lists 13674 # what "hidden" libraries, object files and flags are used when 13675 # linking a shared library. 13676 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13677 fi 13678 13679 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13680 case $host_os in 13681 solaris2.[0-5] | solaris2.[0-5].*) ;; 13682 *) 13683 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13684 ;; 13685 esac 13686 fi 13687 ;; 13688 esac 13689 ;; 13690 13691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13692 no_undefined_flag_CXX='${wl}-z,text' 13693 archive_cmds_need_lc_CXX=no 13694 hardcode_shlibpath_var_CXX=no 13695 runpath_var='LD_RUN_PATH' 13696 13697 case $cc_basename in 13698 CC*) 13699 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13700 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13701 ;; 13702 *) 13703 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13704 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13705 ;; 13706 esac 13707 ;; 13708 13709 sysv5* | sco3.2v5* | sco5v6*) 13710 # Note: We can NOT use -z defs as we might desire, because we do not 13711 # link with -lc, and that would cause any symbols used from libc to 13712 # always be unresolved, which means just about no library would 13713 # ever link correctly. If we're not using GNU ld we use -z text 13714 # though, which does catch some bad symbols but isn't as heavy-handed 13715 # as -z defs. 13716 no_undefined_flag_CXX='${wl}-z,text' 13717 allow_undefined_flag_CXX='${wl}-z,nodefs' 13718 archive_cmds_need_lc_CXX=no 13719 hardcode_shlibpath_var_CXX=no 13720 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13721 hardcode_libdir_separator_CXX=':' 13722 link_all_deplibs_CXX=yes 13723 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13724 runpath_var='LD_RUN_PATH' 13725 13726 case $cc_basename in 13727 CC*) 13728 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13729 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13730 ;; 13731 *) 13732 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13733 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13734 ;; 13735 esac 13736 ;; 13737 13738 tandem*) 13739 case $cc_basename in 13740 NCC*) 13741 # NonStop-UX NCC 3.20 13742 # FIXME: insert proper C++ library support 13743 ld_shlibs_CXX=no 13744 ;; 13745 *) 13746 # FIXME: insert proper C++ library support 13747 ld_shlibs_CXX=no 13748 ;; 13749 esac 13750 ;; 13751 13752 vxworks*) 13753 # FIXME: insert proper C++ library support 13754 ld_shlibs_CXX=no 13755 ;; 13756 13757 *) 13758 # FIXME: insert proper C++ library support 13759 ld_shlibs_CXX=no 13760 ;; 13761 esac 13762 13763 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13764$as_echo "$ld_shlibs_CXX" >&6; } 13765 test "$ld_shlibs_CXX" = no && can_build_shared=no 13766 13767 GCC_CXX="$GXX" 13768 LD_CXX="$LD" 13769 13770 ## CAVEAT EMPTOR: 13771 ## There is no encapsulation within the following macros, do not change 13772 ## the running order or otherwise move them around unless you know exactly 13773 ## what you are doing... 13774 # Dependencies to place before and after the object being linked: 13775predep_objects_CXX= 13776postdep_objects_CXX= 13777predeps_CXX= 13778postdeps_CXX= 13779compiler_lib_search_path_CXX= 13780 13781cat > conftest.$ac_ext <<_LT_EOF 13782class Foo 13783{ 13784public: 13785 Foo (void) { a = 0; } 13786private: 13787 int a; 13788}; 13789_LT_EOF 13790 13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13792 (eval $ac_compile) 2>&5 13793 ac_status=$? 13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13795 (exit $ac_status); }; then 13796 # Parse the compiler output and extract the necessary 13797 # objects, libraries and library flags. 13798 13799 # Sentinel used to keep track of whether or not we are before 13800 # the conftest object file. 13801 pre_test_object_deps_done=no 13802 13803 for p in `eval "$output_verbose_link_cmd"`; do 13804 case $p in 13805 13806 -L* | -R* | -l*) 13807 # Some compilers place space between "-{L,R}" and the path. 13808 # Remove the space. 13809 if test $p = "-L" || 13810 test $p = "-R"; then 13811 prev=$p 13812 continue 13813 else 13814 prev= 13815 fi 13816 13817 if test "$pre_test_object_deps_done" = no; then 13818 case $p in 13819 -L* | -R*) 13820 # Internal compiler library paths should come after those 13821 # provided the user. The postdeps already come after the 13822 # user supplied libs so there is no need to process them. 13823 if test -z "$compiler_lib_search_path_CXX"; then 13824 compiler_lib_search_path_CXX="${prev}${p}" 13825 else 13826 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13827 fi 13828 ;; 13829 # The "-l" case would never come before the object being 13830 # linked, so don't bother handling this case. 13831 esac 13832 else 13833 if test -z "$postdeps_CXX"; then 13834 postdeps_CXX="${prev}${p}" 13835 else 13836 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13837 fi 13838 fi 13839 ;; 13840 13841 *.$objext) 13842 # This assumes that the test object file only shows up 13843 # once in the compiler output. 13844 if test "$p" = "conftest.$objext"; then 13845 pre_test_object_deps_done=yes 13846 continue 13847 fi 13848 13849 if test "$pre_test_object_deps_done" = no; then 13850 if test -z "$predep_objects_CXX"; then 13851 predep_objects_CXX="$p" 13852 else 13853 predep_objects_CXX="$predep_objects_CXX $p" 13854 fi 13855 else 13856 if test -z "$postdep_objects_CXX"; then 13857 postdep_objects_CXX="$p" 13858 else 13859 postdep_objects_CXX="$postdep_objects_CXX $p" 13860 fi 13861 fi 13862 ;; 13863 13864 *) ;; # Ignore the rest. 13865 13866 esac 13867 done 13868 13869 # Clean up. 13870 rm -f a.out a.exe 13871else 13872 echo "libtool.m4: error: problem compiling CXX test program" 13873fi 13874 13875$RM -f confest.$objext 13876 13877# PORTME: override above test on systems where it is broken 13878case $host_os in 13879interix[3-9]*) 13880 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13881 # hack all around it, let's just trust "g++" to DTRT. 13882 predep_objects_CXX= 13883 postdep_objects_CXX= 13884 postdeps_CXX= 13885 ;; 13886 13887linux*) 13888 case `$CC -V 2>&1 | sed 5q` in 13889 *Sun\ C*) 13890 # Sun C++ 5.9 13891 13892 # The more standards-conforming stlport4 library is 13893 # incompatible with the Cstd library. Avoid specifying 13894 # it if it's in CXXFLAGS. Ignore libCrun as 13895 # -library=stlport4 depends on it. 13896 case " $CXX $CXXFLAGS " in 13897 *" -library=stlport4 "*) 13898 solaris_use_stlport4=yes 13899 ;; 13900 esac 13901 13902 if test "$solaris_use_stlport4" != yes; then 13903 postdeps_CXX='-library=Cstd -library=Crun' 13904 fi 13905 ;; 13906 esac 13907 ;; 13908 13909solaris*) 13910 case $cc_basename in 13911 CC*) 13912 # The more standards-conforming stlport4 library is 13913 # incompatible with the Cstd library. Avoid specifying 13914 # it if it's in CXXFLAGS. Ignore libCrun as 13915 # -library=stlport4 depends on it. 13916 case " $CXX $CXXFLAGS " in 13917 *" -library=stlport4 "*) 13918 solaris_use_stlport4=yes 13919 ;; 13920 esac 13921 13922 # Adding this requires a known-good setup of shared libraries for 13923 # Sun compiler versions before 5.6, else PIC objects from an old 13924 # archive will be linked into the output, leading to subtle bugs. 13925 if test "$solaris_use_stlport4" != yes; then 13926 postdeps_CXX='-library=Cstd -library=Crun' 13927 fi 13928 ;; 13929 esac 13930 ;; 13931esac 13932 13933 13934case " $postdeps_CXX " in 13935*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13936esac 13937 compiler_lib_search_dirs_CXX= 13938if test -n "${compiler_lib_search_path_CXX}"; then 13939 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13940fi 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 lt_prog_compiler_wl_CXX= 13973lt_prog_compiler_pic_CXX= 13974lt_prog_compiler_static_CXX= 13975 13976{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13977$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13978 13979 # C++ specific cases for pic, static, wl, etc. 13980 if test "$GXX" = yes; then 13981 lt_prog_compiler_wl_CXX='-Wl,' 13982 lt_prog_compiler_static_CXX='-static' 13983 13984 case $host_os in 13985 aix*) 13986 # All AIX code is PIC. 13987 if test "$host_cpu" = ia64; then 13988 # AIX 5 now supports IA64 processor 13989 lt_prog_compiler_static_CXX='-Bstatic' 13990 fi 13991 ;; 13992 13993 amigaos*) 13994 case $host_cpu in 13995 powerpc) 13996 # see comment about AmigaOS4 .so support 13997 lt_prog_compiler_pic_CXX='-fPIC' 13998 ;; 13999 m68k) 14000 # FIXME: we need at least 68020 code to build shared libraries, but 14001 # adding the `-m68020' flag to GCC prevents building anything better, 14002 # like `-m68040'. 14003 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14004 ;; 14005 esac 14006 ;; 14007 14008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14009 # PIC is the default for these OSes. 14010 ;; 14011 mingw* | cygwin* | os2* | pw32* | cegcc*) 14012 # This hack is so that the source file can tell whether it is being 14013 # built for inclusion in a dll (and should export symbols for example). 14014 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14015 # (--disable-auto-import) libraries 14016 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14017 ;; 14018 darwin* | rhapsody*) 14019 # PIC is the default on this platform 14020 # Common symbols not allowed in MH_DYLIB files 14021 lt_prog_compiler_pic_CXX='-fno-common' 14022 ;; 14023 *djgpp*) 14024 # DJGPP does not support shared libraries at all 14025 lt_prog_compiler_pic_CXX= 14026 ;; 14027 interix[3-9]*) 14028 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14029 # Instead, we relocate shared libraries at runtime. 14030 ;; 14031 sysv4*MP*) 14032 if test -d /usr/nec; then 14033 lt_prog_compiler_pic_CXX=-Kconform_pic 14034 fi 14035 ;; 14036 hpux*) 14037 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14038 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14039 # sets the default TLS model and affects inlining. 14040 case $host_cpu in 14041 hppa*64*) 14042 ;; 14043 *) 14044 lt_prog_compiler_pic_CXX='-fPIC' 14045 ;; 14046 esac 14047 ;; 14048 *qnx* | *nto*) 14049 # QNX uses GNU C++, but need to define -shared option too, otherwise 14050 # it will coredump. 14051 lt_prog_compiler_pic_CXX='-fPIC -shared' 14052 ;; 14053 *) 14054 lt_prog_compiler_pic_CXX='-fPIC' 14055 ;; 14056 esac 14057 else 14058 case $host_os in 14059 aix[4-9]*) 14060 # All AIX code is PIC. 14061 if test "$host_cpu" = ia64; then 14062 # AIX 5 now supports IA64 processor 14063 lt_prog_compiler_static_CXX='-Bstatic' 14064 else 14065 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14066 fi 14067 ;; 14068 chorus*) 14069 case $cc_basename in 14070 cxch68*) 14071 # Green Hills C++ Compiler 14072 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14073 ;; 14074 esac 14075 ;; 14076 dgux*) 14077 case $cc_basename in 14078 ec++*) 14079 lt_prog_compiler_pic_CXX='-KPIC' 14080 ;; 14081 ghcx*) 14082 # Green Hills C++ Compiler 14083 lt_prog_compiler_pic_CXX='-pic' 14084 ;; 14085 *) 14086 ;; 14087 esac 14088 ;; 14089 freebsd* | dragonfly*) 14090 # FreeBSD uses GNU C++ 14091 ;; 14092 hpux9* | hpux10* | hpux11*) 14093 case $cc_basename in 14094 CC*) 14095 lt_prog_compiler_wl_CXX='-Wl,' 14096 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14097 if test "$host_cpu" != ia64; then 14098 lt_prog_compiler_pic_CXX='+Z' 14099 fi 14100 ;; 14101 aCC*) 14102 lt_prog_compiler_wl_CXX='-Wl,' 14103 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14104 case $host_cpu in 14105 hppa*64*|ia64*) 14106 # +Z the default 14107 ;; 14108 *) 14109 lt_prog_compiler_pic_CXX='+Z' 14110 ;; 14111 esac 14112 ;; 14113 *) 14114 ;; 14115 esac 14116 ;; 14117 interix*) 14118 # This is c89, which is MS Visual C++ (no shared libs) 14119 # Anyone wants to do a port? 14120 ;; 14121 irix5* | irix6* | nonstopux*) 14122 case $cc_basename in 14123 CC*) 14124 lt_prog_compiler_wl_CXX='-Wl,' 14125 lt_prog_compiler_static_CXX='-non_shared' 14126 # CC pic flag -KPIC is the default. 14127 ;; 14128 *) 14129 ;; 14130 esac 14131 ;; 14132 linux* | k*bsd*-gnu) 14133 case $cc_basename in 14134 KCC*) 14135 # KAI C++ Compiler 14136 lt_prog_compiler_wl_CXX='--backend -Wl,' 14137 lt_prog_compiler_pic_CXX='-fPIC' 14138 ;; 14139 ecpc* ) 14140 # old Intel C++ for x86_64 which still supported -KPIC. 14141 lt_prog_compiler_wl_CXX='-Wl,' 14142 lt_prog_compiler_pic_CXX='-KPIC' 14143 lt_prog_compiler_static_CXX='-static' 14144 ;; 14145 icpc* ) 14146 # Intel C++, used to be incompatible with GCC. 14147 # ICC 10 doesn't accept -KPIC any more. 14148 lt_prog_compiler_wl_CXX='-Wl,' 14149 lt_prog_compiler_pic_CXX='-fPIC' 14150 lt_prog_compiler_static_CXX='-static' 14151 ;; 14152 pgCC* | pgcpp*) 14153 # Portland Group C++ compiler 14154 lt_prog_compiler_wl_CXX='-Wl,' 14155 lt_prog_compiler_pic_CXX='-fpic' 14156 lt_prog_compiler_static_CXX='-Bstatic' 14157 ;; 14158 cxx*) 14159 # Compaq C++ 14160 # Make sure the PIC flag is empty. It appears that all Alpha 14161 # Linux and Compaq Tru64 Unix objects are PIC. 14162 lt_prog_compiler_pic_CXX= 14163 lt_prog_compiler_static_CXX='-non_shared' 14164 ;; 14165 xlc* | xlC*) 14166 # IBM XL 8.0 on PPC 14167 lt_prog_compiler_wl_CXX='-Wl,' 14168 lt_prog_compiler_pic_CXX='-qpic' 14169 lt_prog_compiler_static_CXX='-qstaticlink' 14170 ;; 14171 *) 14172 case `$CC -V 2>&1 | sed 5q` in 14173 *Sun\ C*) 14174 # Sun C++ 5.9 14175 lt_prog_compiler_pic_CXX='-KPIC' 14176 lt_prog_compiler_static_CXX='-Bstatic' 14177 lt_prog_compiler_wl_CXX='-Qoption ld ' 14178 ;; 14179 esac 14180 ;; 14181 esac 14182 ;; 14183 lynxos*) 14184 ;; 14185 m88k*) 14186 ;; 14187 mvs*) 14188 case $cc_basename in 14189 cxx*) 14190 lt_prog_compiler_pic_CXX='-W c,exportall' 14191 ;; 14192 *) 14193 ;; 14194 esac 14195 ;; 14196 netbsd*) 14197 ;; 14198 *qnx* | *nto*) 14199 # QNX uses GNU C++, but need to define -shared option too, otherwise 14200 # it will coredump. 14201 lt_prog_compiler_pic_CXX='-fPIC -shared' 14202 ;; 14203 osf3* | osf4* | osf5*) 14204 case $cc_basename in 14205 KCC*) 14206 lt_prog_compiler_wl_CXX='--backend -Wl,' 14207 ;; 14208 RCC*) 14209 # Rational C++ 2.4.1 14210 lt_prog_compiler_pic_CXX='-pic' 14211 ;; 14212 cxx*) 14213 # Digital/Compaq C++ 14214 lt_prog_compiler_wl_CXX='-Wl,' 14215 # Make sure the PIC flag is empty. It appears that all Alpha 14216 # Linux and Compaq Tru64 Unix objects are PIC. 14217 lt_prog_compiler_pic_CXX= 14218 lt_prog_compiler_static_CXX='-non_shared' 14219 ;; 14220 *) 14221 ;; 14222 esac 14223 ;; 14224 psos*) 14225 ;; 14226 solaris*) 14227 case $cc_basename in 14228 CC*) 14229 # Sun C++ 4.2, 5.x and Centerline C++ 14230 lt_prog_compiler_pic_CXX='-KPIC' 14231 lt_prog_compiler_static_CXX='-Bstatic' 14232 lt_prog_compiler_wl_CXX='-Qoption ld ' 14233 ;; 14234 gcx*) 14235 # Green Hills C++ Compiler 14236 lt_prog_compiler_pic_CXX='-PIC' 14237 ;; 14238 *) 14239 ;; 14240 esac 14241 ;; 14242 sunos4*) 14243 case $cc_basename in 14244 CC*) 14245 # Sun C++ 4.x 14246 lt_prog_compiler_pic_CXX='-pic' 14247 lt_prog_compiler_static_CXX='-Bstatic' 14248 ;; 14249 lcc*) 14250 # Lucid 14251 lt_prog_compiler_pic_CXX='-pic' 14252 ;; 14253 *) 14254 ;; 14255 esac 14256 ;; 14257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14258 case $cc_basename in 14259 CC*) 14260 lt_prog_compiler_wl_CXX='-Wl,' 14261 lt_prog_compiler_pic_CXX='-KPIC' 14262 lt_prog_compiler_static_CXX='-Bstatic' 14263 ;; 14264 esac 14265 ;; 14266 tandem*) 14267 case $cc_basename in 14268 NCC*) 14269 # NonStop-UX NCC 3.20 14270 lt_prog_compiler_pic_CXX='-KPIC' 14271 ;; 14272 *) 14273 ;; 14274 esac 14275 ;; 14276 vxworks*) 14277 ;; 14278 *) 14279 lt_prog_compiler_can_build_shared_CXX=no 14280 ;; 14281 esac 14282 fi 14283 14284case $host_os in 14285 # For platforms which do not support PIC, -DPIC is meaningless: 14286 *djgpp*) 14287 lt_prog_compiler_pic_CXX= 14288 ;; 14289 *) 14290 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14291 ;; 14292esac 14293{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14294$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14295 14296 14297 14298# 14299# Check to make sure the PIC flag actually works. 14300# 14301if test -n "$lt_prog_compiler_pic_CXX"; then 14302 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14303$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14304if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 14305 $as_echo_n "(cached) " >&6 14306else 14307 lt_cv_prog_compiler_pic_works_CXX=no 14308 ac_outfile=conftest.$ac_objext 14309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14310 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14311 # Insert the option either (1) after the last *FLAGS variable, or 14312 # (2) before a word containing "conftest.", or (3) at the end. 14313 # Note that $ac_compile itself does not contain backslashes and begins 14314 # with a dollar sign (not a hyphen), so the echo should work correctly. 14315 # The option is referenced via a variable to avoid confusing sed. 14316 lt_compile=`echo "$ac_compile" | $SED \ 14317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14319 -e 's:$: $lt_compiler_flag:'` 14320 (eval echo "\"\$as_me:14320: $lt_compile\"" >&5) 14321 (eval "$lt_compile" 2>conftest.err) 14322 ac_status=$? 14323 cat conftest.err >&5 14324 echo "$as_me:14324: \$? = $ac_status" >&5 14325 if (exit $ac_status) && test -s "$ac_outfile"; then 14326 # The compiler can only warn and ignore the option if not recognized 14327 # So say no if there are warnings other than the usual output. 14328 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14331 lt_cv_prog_compiler_pic_works_CXX=yes 14332 fi 14333 fi 14334 $RM conftest* 14335 14336fi 14337{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14338$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14339 14340if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14341 case $lt_prog_compiler_pic_CXX in 14342 "" | " "*) ;; 14343 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14344 esac 14345else 14346 lt_prog_compiler_pic_CXX= 14347 lt_prog_compiler_can_build_shared_CXX=no 14348fi 14349 14350fi 14351 14352 14353 14354# 14355# Check to make sure the static flag actually works. 14356# 14357wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14358{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14359$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14360if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 14361 $as_echo_n "(cached) " >&6 14362else 14363 lt_cv_prog_compiler_static_works_CXX=no 14364 save_LDFLAGS="$LDFLAGS" 14365 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14366 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14368 # The linker can only warn and ignore the option if not recognized 14369 # So say no if there are warnings 14370 if test -s conftest.err; then 14371 # Append any errors to the config.log. 14372 cat conftest.err 1>&5 14373 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14375 if diff conftest.exp conftest.er2 >/dev/null; then 14376 lt_cv_prog_compiler_static_works_CXX=yes 14377 fi 14378 else 14379 lt_cv_prog_compiler_static_works_CXX=yes 14380 fi 14381 fi 14382 $RM -r conftest* 14383 LDFLAGS="$save_LDFLAGS" 14384 14385fi 14386{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14387$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14388 14389if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14390 : 14391else 14392 lt_prog_compiler_static_CXX= 14393fi 14394 14395 14396 14397 14398 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14400if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14401 $as_echo_n "(cached) " >&6 14402else 14403 lt_cv_prog_compiler_c_o_CXX=no 14404 $RM -r conftest 2>/dev/null 14405 mkdir conftest 14406 cd conftest 14407 mkdir out 14408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14409 14410 lt_compiler_flag="-o out/conftest2.$ac_objext" 14411 # Insert the option either (1) after the last *FLAGS variable, or 14412 # (2) before a word containing "conftest.", or (3) at the end. 14413 # Note that $ac_compile itself does not contain backslashes and begins 14414 # with a dollar sign (not a hyphen), so the echo should work correctly. 14415 lt_compile=`echo "$ac_compile" | $SED \ 14416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14418 -e 's:$: $lt_compiler_flag:'` 14419 (eval echo "\"\$as_me:14419: $lt_compile\"" >&5) 14420 (eval "$lt_compile" 2>out/conftest.err) 14421 ac_status=$? 14422 cat out/conftest.err >&5 14423 echo "$as_me:14423: \$? = $ac_status" >&5 14424 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14425 then 14426 # The compiler can only warn and ignore the option if not recognized 14427 # So say no if there are warnings 14428 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14431 lt_cv_prog_compiler_c_o_CXX=yes 14432 fi 14433 fi 14434 chmod u+w . 2>&5 14435 $RM conftest* 14436 # SGI C++ compiler will create directory out/ii_files/ for 14437 # template instantiation 14438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14439 $RM out/* && rmdir out 14440 cd .. 14441 $RM -r conftest 14442 $RM conftest* 14443 14444fi 14445{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14446$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14447 14448 14449 14450 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14451$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14452if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14453 $as_echo_n "(cached) " >&6 14454else 14455 lt_cv_prog_compiler_c_o_CXX=no 14456 $RM -r conftest 2>/dev/null 14457 mkdir conftest 14458 cd conftest 14459 mkdir out 14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14461 14462 lt_compiler_flag="-o out/conftest2.$ac_objext" 14463 # Insert the option either (1) after the last *FLAGS variable, or 14464 # (2) before a word containing "conftest.", or (3) at the end. 14465 # Note that $ac_compile itself does not contain backslashes and begins 14466 # with a dollar sign (not a hyphen), so the echo should work correctly. 14467 lt_compile=`echo "$ac_compile" | $SED \ 14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14470 -e 's:$: $lt_compiler_flag:'` 14471 (eval echo "\"\$as_me:14471: $lt_compile\"" >&5) 14472 (eval "$lt_compile" 2>out/conftest.err) 14473 ac_status=$? 14474 cat out/conftest.err >&5 14475 echo "$as_me:14475: \$? = $ac_status" >&5 14476 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14477 then 14478 # The compiler can only warn and ignore the option if not recognized 14479 # So say no if there are warnings 14480 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14483 lt_cv_prog_compiler_c_o_CXX=yes 14484 fi 14485 fi 14486 chmod u+w . 2>&5 14487 $RM conftest* 14488 # SGI C++ compiler will create directory out/ii_files/ for 14489 # template instantiation 14490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14491 $RM out/* && rmdir out 14492 cd .. 14493 $RM -r conftest 14494 $RM conftest* 14495 14496fi 14497{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14498$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14499 14500 14501 14502 14503hard_links="nottested" 14504if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14505 # do not overwrite the value of need_locks provided by the user 14506 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14507$as_echo_n "checking if we can lock with hard links... " >&6; } 14508 hard_links=yes 14509 $RM conftest* 14510 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14511 touch conftest.a 14512 ln conftest.a conftest.b 2>&5 || hard_links=no 14513 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14514 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14515$as_echo "$hard_links" >&6; } 14516 if test "$hard_links" = no; then 14517 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14518$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14519 need_locks=warn 14520 fi 14521else 14522 need_locks=no 14523fi 14524 14525 14526 14527 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14528$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14529 14530 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14531 case $host_os in 14532 aix[4-9]*) 14533 # If we're using GNU nm, then we don't want the "-C" option. 14534 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14535 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14536 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14537 else 14538 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14539 fi 14540 ;; 14541 pw32*) 14542 export_symbols_cmds_CXX="$ltdll_cmds" 14543 ;; 14544 cygwin* | mingw* | cegcc*) 14545 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14546 ;; 14547 *) 14548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14549 ;; 14550 esac 14551 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14552 14553{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14554$as_echo "$ld_shlibs_CXX" >&6; } 14555test "$ld_shlibs_CXX" = no && can_build_shared=no 14556 14557with_gnu_ld_CXX=$with_gnu_ld 14558 14559 14560 14561 14562 14563 14564# 14565# Do we need to explicitly link libc? 14566# 14567case "x$archive_cmds_need_lc_CXX" in 14568x|xyes) 14569 # Assume -lc should be added 14570 archive_cmds_need_lc_CXX=yes 14571 14572 if test "$enable_shared" = yes && test "$GCC" = yes; then 14573 case $archive_cmds_CXX in 14574 *'~'*) 14575 # FIXME: we may have to deal with multi-command sequences. 14576 ;; 14577 '$CC '*) 14578 # Test whether the compiler implicitly links with -lc since on some 14579 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14580 # to ld, don't add -lc before -lgcc. 14581 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14582$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14583 $RM conftest* 14584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14585 14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14587 (eval $ac_compile) 2>&5 14588 ac_status=$? 14589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14590 (exit $ac_status); } 2>conftest.err; then 14591 soname=conftest 14592 lib=conftest 14593 libobjs=conftest.$ac_objext 14594 deplibs= 14595 wl=$lt_prog_compiler_wl_CXX 14596 pic_flag=$lt_prog_compiler_pic_CXX 14597 compiler_flags=-v 14598 linker_flags=-v 14599 verstring= 14600 output_objdir=. 14601 libname=conftest 14602 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14603 allow_undefined_flag_CXX= 14604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14605 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14606 ac_status=$? 14607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14608 (exit $ac_status); } 14609 then 14610 archive_cmds_need_lc_CXX=no 14611 else 14612 archive_cmds_need_lc_CXX=yes 14613 fi 14614 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14615 else 14616 cat conftest.err 1>&5 14617 fi 14618 $RM conftest* 14619 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14620$as_echo "$archive_cmds_need_lc_CXX" >&6; } 14621 ;; 14622 esac 14623 fi 14624 ;; 14625esac 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14691$as_echo_n "checking dynamic linker characteristics... " >&6; } 14692 14693library_names_spec= 14694libname_spec='lib$name' 14695soname_spec= 14696shrext_cmds=".so" 14697postinstall_cmds= 14698postuninstall_cmds= 14699finish_cmds= 14700finish_eval= 14701shlibpath_var= 14702shlibpath_overrides_runpath=unknown 14703version_type=none 14704dynamic_linker="$host_os ld.so" 14705sys_lib_dlsearch_path_spec="/lib /usr/lib" 14706need_lib_prefix=unknown 14707hardcode_into_libs=no 14708 14709# when you set need_version to no, make sure it does not cause -set_version 14710# flags to be left without arguments 14711need_version=unknown 14712 14713case $host_os in 14714aix3*) 14715 version_type=linux 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14717 shlibpath_var=LIBPATH 14718 14719 # AIX 3 has no versioning support, so we append a major version to the name. 14720 soname_spec='${libname}${release}${shared_ext}$major' 14721 ;; 14722 14723aix[4-9]*) 14724 version_type=linux 14725 need_lib_prefix=no 14726 need_version=no 14727 hardcode_into_libs=yes 14728 if test "$host_cpu" = ia64; then 14729 # AIX 5 supports IA64 14730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14731 shlibpath_var=LD_LIBRARY_PATH 14732 else 14733 # With GCC up to 2.95.x, collect2 would create an import file 14734 # for dependence libraries. The import file would start with 14735 # the line `#! .'. This would cause the generated library to 14736 # depend on `.', always an invalid library. This was fixed in 14737 # development snapshots of GCC prior to 3.0. 14738 case $host_os in 14739 aix4 | aix4.[01] | aix4.[01].*) 14740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14741 echo ' yes ' 14742 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14743 : 14744 else 14745 can_build_shared=no 14746 fi 14747 ;; 14748 esac 14749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14750 # soname into executable. Probably we can add versioning support to 14751 # collect2, so additional links can be useful in future. 14752 if test "$aix_use_runtimelinking" = yes; then 14753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14754 # instead of lib<name>.a to let people know that these are not 14755 # typical AIX shared libraries. 14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14757 else 14758 # We preserve .a as extension for shared libraries through AIX4.2 14759 # and later when we are not doing run time linking. 14760 library_names_spec='${libname}${release}.a $libname.a' 14761 soname_spec='${libname}${release}${shared_ext}$major' 14762 fi 14763 shlibpath_var=LIBPATH 14764 fi 14765 ;; 14766 14767amigaos*) 14768 case $host_cpu in 14769 powerpc) 14770 # Since July 2007 AmigaOS4 officially supports .so libraries. 14771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14773 ;; 14774 m68k) 14775 library_names_spec='$libname.ixlibrary $libname.a' 14776 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14777 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' 14778 ;; 14779 esac 14780 ;; 14781 14782beos*) 14783 library_names_spec='${libname}${shared_ext}' 14784 dynamic_linker="$host_os ld.so" 14785 shlibpath_var=LIBRARY_PATH 14786 ;; 14787 14788bsdi[45]*) 14789 version_type=linux 14790 need_version=no 14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14792 soname_spec='${libname}${release}${shared_ext}$major' 14793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14794 shlibpath_var=LD_LIBRARY_PATH 14795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14797 # the default ld.so.conf also contains /usr/contrib/lib and 14798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14799 # libtool to hard-code these into programs 14800 ;; 14801 14802cygwin* | mingw* | pw32* | cegcc*) 14803 version_type=windows 14804 shrext_cmds=".dll" 14805 need_version=no 14806 need_lib_prefix=no 14807 14808 case $GCC,$host_os in 14809 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14810 library_names_spec='$libname.dll.a' 14811 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14812 postinstall_cmds='base_file=`basename \${file}`~ 14813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14814 dldir=$destdir/`dirname \$dlpath`~ 14815 test -d \$dldir || mkdir -p \$dldir~ 14816 $install_prog $dir/$dlname \$dldir/$dlname~ 14817 chmod a+x \$dldir/$dlname~ 14818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14820 fi' 14821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14822 dlpath=$dir/\$dldll~ 14823 $RM \$dlpath' 14824 shlibpath_overrides_runpath=yes 14825 14826 case $host_os in 14827 cygwin*) 14828 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14830 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14831 ;; 14832 mingw* | cegcc*) 14833 # MinGW DLLs use traditional 'lib' prefix 14834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14835 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14836 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14837 # It is most probably a Windows format PATH printed by 14838 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14839 # path with ; separators, and with drive letters. We can handle the 14840 # drive letters (cygwin fileutils understands them), so leave them, 14841 # especially as we might pass files found there to a mingw objdump, 14842 # which wouldn't understand a cygwinified path. Ahh. 14843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14844 else 14845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14846 fi 14847 ;; 14848 pw32*) 14849 # pw32 DLLs use 'pw' prefix rather than 'lib' 14850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14851 ;; 14852 esac 14853 ;; 14854 14855 *) 14856 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14857 ;; 14858 esac 14859 dynamic_linker='Win32 ld.exe' 14860 # FIXME: first we should search . and the directory the executable is in 14861 shlibpath_var=PATH 14862 ;; 14863 14864darwin* | rhapsody*) 14865 dynamic_linker="$host_os dyld" 14866 version_type=darwin 14867 need_lib_prefix=no 14868 need_version=no 14869 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14870 soname_spec='${libname}${release}${major}$shared_ext' 14871 shlibpath_overrides_runpath=yes 14872 shlibpath_var=DYLD_LIBRARY_PATH 14873 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14874 14875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14876 ;; 14877 14878dgux*) 14879 version_type=linux 14880 need_lib_prefix=no 14881 need_version=no 14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14883 soname_spec='${libname}${release}${shared_ext}$major' 14884 shlibpath_var=LD_LIBRARY_PATH 14885 ;; 14886 14887freebsd1*) 14888 dynamic_linker=no 14889 ;; 14890 14891freebsd* | dragonfly*) 14892 # DragonFly does not have aout. When/if they implement a new 14893 # versioning mechanism, adjust this. 14894 if test -x /usr/bin/objformat; then 14895 objformat=`/usr/bin/objformat` 14896 else 14897 case $host_os in 14898 freebsd[123]*) objformat=aout ;; 14899 *) objformat=elf ;; 14900 esac 14901 fi 14902 # Handle Gentoo/FreeBSD as it was Linux 14903 case $host_vendor in 14904 gentoo) 14905 version_type=linux ;; 14906 *) 14907 version_type=freebsd-$objformat ;; 14908 esac 14909 14910 case $version_type in 14911 freebsd-elf*) 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14913 need_version=no 14914 need_lib_prefix=no 14915 ;; 14916 freebsd-*) 14917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14918 need_version=yes 14919 ;; 14920 linux) 14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14922 soname_spec='${libname}${release}${shared_ext}$major' 14923 need_lib_prefix=no 14924 need_version=no 14925 ;; 14926 esac 14927 shlibpath_var=LD_LIBRARY_PATH 14928 case $host_os in 14929 freebsd2*) 14930 shlibpath_overrides_runpath=yes 14931 ;; 14932 freebsd3.[01]* | freebsdelf3.[01]*) 14933 shlibpath_overrides_runpath=yes 14934 hardcode_into_libs=yes 14935 ;; 14936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14938 shlibpath_overrides_runpath=no 14939 hardcode_into_libs=yes 14940 ;; 14941 *) # from 4.6 on, and DragonFly 14942 shlibpath_overrides_runpath=yes 14943 hardcode_into_libs=yes 14944 ;; 14945 esac 14946 ;; 14947 14948gnu*) 14949 version_type=linux 14950 need_lib_prefix=no 14951 need_version=no 14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14953 soname_spec='${libname}${release}${shared_ext}$major' 14954 shlibpath_var=LD_LIBRARY_PATH 14955 hardcode_into_libs=yes 14956 ;; 14957 14958hpux9* | hpux10* | hpux11*) 14959 # Give a soname corresponding to the major version so that dld.sl refuses to 14960 # link against other versions. 14961 version_type=sunos 14962 need_lib_prefix=no 14963 need_version=no 14964 case $host_cpu in 14965 ia64*) 14966 shrext_cmds='.so' 14967 hardcode_into_libs=yes 14968 dynamic_linker="$host_os dld.so" 14969 shlibpath_var=LD_LIBRARY_PATH 14970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14972 soname_spec='${libname}${release}${shared_ext}$major' 14973 if test "X$HPUX_IA64_MODE" = X32; then 14974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14975 else 14976 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14977 fi 14978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14979 ;; 14980 hppa*64*) 14981 shrext_cmds='.sl' 14982 hardcode_into_libs=yes 14983 dynamic_linker="$host_os dld.sl" 14984 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14987 soname_spec='${libname}${release}${shared_ext}$major' 14988 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14990 ;; 14991 *) 14992 shrext_cmds='.sl' 14993 dynamic_linker="$host_os dld.sl" 14994 shlibpath_var=SHLIB_PATH 14995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14997 soname_spec='${libname}${release}${shared_ext}$major' 14998 ;; 14999 esac 15000 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15001 postinstall_cmds='chmod 555 $lib' 15002 ;; 15003 15004interix[3-9]*) 15005 version_type=linux 15006 need_lib_prefix=no 15007 need_version=no 15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15009 soname_spec='${libname}${release}${shared_ext}$major' 15010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15011 shlibpath_var=LD_LIBRARY_PATH 15012 shlibpath_overrides_runpath=no 15013 hardcode_into_libs=yes 15014 ;; 15015 15016irix5* | irix6* | nonstopux*) 15017 case $host_os in 15018 nonstopux*) version_type=nonstopux ;; 15019 *) 15020 if test "$lt_cv_prog_gnu_ld" = yes; then 15021 version_type=linux 15022 else 15023 version_type=irix 15024 fi ;; 15025 esac 15026 need_lib_prefix=no 15027 need_version=no 15028 soname_spec='${libname}${release}${shared_ext}$major' 15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15030 case $host_os in 15031 irix5* | nonstopux*) 15032 libsuff= shlibsuff= 15033 ;; 15034 *) 15035 case $LD in # libtool.m4 will add one of these switches to LD 15036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15037 libsuff= shlibsuff= libmagic=32-bit;; 15038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15039 libsuff=32 shlibsuff=N32 libmagic=N32;; 15040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15041 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15042 *) libsuff= shlibsuff= libmagic=never-match;; 15043 esac 15044 ;; 15045 esac 15046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15047 shlibpath_overrides_runpath=no 15048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15050 hardcode_into_libs=yes 15051 ;; 15052 15053# No shared lib support for Linux oldld, aout, or coff. 15054linux*oldld* | linux*aout* | linux*coff*) 15055 dynamic_linker=no 15056 ;; 15057 15058# This must be Linux ELF. 15059linux* | k*bsd*-gnu) 15060 version_type=linux 15061 need_lib_prefix=no 15062 need_version=no 15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15064 soname_spec='${libname}${release}${shared_ext}$major' 15065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15066 shlibpath_var=LD_LIBRARY_PATH 15067 shlibpath_overrides_runpath=no 15068 # Some binutils ld are patched to set DT_RUNPATH 15069 save_LDFLAGS=$LDFLAGS 15070 save_libdir=$libdir 15071 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15072 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15073 cat >conftest.$ac_ext <<_ACEOF 15074/* confdefs.h. */ 15075_ACEOF 15076cat confdefs.h >>conftest.$ac_ext 15077cat >>conftest.$ac_ext <<_ACEOF 15078/* end confdefs.h. */ 15079 15080int 15081main () 15082{ 15083 15084 ; 15085 return 0; 15086} 15087_ACEOF 15088rm -f conftest.$ac_objext conftest$ac_exeext 15089if { (ac_try="$ac_link" 15090case "(($ac_try" in 15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15092 *) ac_try_echo=$ac_try;; 15093esac 15094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15095$as_echo "$ac_try_echo") >&5 15096 (eval "$ac_link") 2>conftest.er1 15097 ac_status=$? 15098 grep -v '^ *+' conftest.er1 >conftest.err 15099 rm -f conftest.er1 15100 cat conftest.err >&5 15101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15102 (exit $ac_status); } && { 15103 test -z "$ac_cxx_werror_flag" || 15104 test ! -s conftest.err 15105 } && test -s conftest$ac_exeext && { 15106 test "$cross_compiling" = yes || 15107 $as_test_x conftest$ac_exeext 15108 }; then 15109 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 15110 shlibpath_overrides_runpath=yes 15111fi 15112 15113else 15114 $as_echo "$as_me: failed program was:" >&5 15115sed 's/^/| /' conftest.$ac_ext >&5 15116 15117 15118fi 15119 15120rm -rf conftest.dSYM 15121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15122 conftest$ac_exeext conftest.$ac_ext 15123 LDFLAGS=$save_LDFLAGS 15124 libdir=$save_libdir 15125 15126 # This implies no fast_install, which is unacceptable. 15127 # Some rework will be needed to allow for fast_install 15128 # before this can be enabled. 15129 hardcode_into_libs=yes 15130 15131 # Append ld.so.conf contents to the search path 15132 if test -f /etc/ld.so.conf; then 15133 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' ' '` 15134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15135 fi 15136 15137 # We used to test for /lib/ld.so.1 and disable shared libraries on 15138 # powerpc, because MkLinux only supported shared libraries with the 15139 # GNU dynamic linker. Since this was broken with cross compilers, 15140 # most powerpc-linux boxes support dynamic linking these days and 15141 # people can always --disable-shared, the test was removed, and we 15142 # assume the GNU/Linux dynamic linker is in use. 15143 dynamic_linker='GNU/Linux ld.so' 15144 ;; 15145 15146netbsd*) 15147 version_type=sunos 15148 need_lib_prefix=no 15149 need_version=no 15150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15153 dynamic_linker='NetBSD (a.out) ld.so' 15154 else 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 dynamic_linker='NetBSD ld.elf_so' 15158 fi 15159 shlibpath_var=LD_LIBRARY_PATH 15160 shlibpath_overrides_runpath=yes 15161 hardcode_into_libs=yes 15162 ;; 15163 15164newsos6) 15165 version_type=linux 15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15167 shlibpath_var=LD_LIBRARY_PATH 15168 shlibpath_overrides_runpath=yes 15169 ;; 15170 15171*nto* | *qnx*) 15172 version_type=qnx 15173 need_lib_prefix=no 15174 need_version=no 15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15176 soname_spec='${libname}${release}${shared_ext}$major' 15177 shlibpath_var=LD_LIBRARY_PATH 15178 shlibpath_overrides_runpath=no 15179 hardcode_into_libs=yes 15180 dynamic_linker='ldqnx.so' 15181 ;; 15182 15183openbsd*) 15184 version_type=sunos 15185 sys_lib_dlsearch_path_spec="/usr/lib" 15186 need_lib_prefix=no 15187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15188 case $host_os in 15189 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15190 *) need_version=no ;; 15191 esac 15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15194 shlibpath_var=LD_LIBRARY_PATH 15195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15196 case $host_os in 15197 openbsd2.[89] | openbsd2.[89].*) 15198 shlibpath_overrides_runpath=no 15199 ;; 15200 *) 15201 shlibpath_overrides_runpath=yes 15202 ;; 15203 esac 15204 else 15205 shlibpath_overrides_runpath=yes 15206 fi 15207 ;; 15208 15209os2*) 15210 libname_spec='$name' 15211 shrext_cmds=".dll" 15212 need_lib_prefix=no 15213 library_names_spec='$libname${shared_ext} $libname.a' 15214 dynamic_linker='OS/2 ld.exe' 15215 shlibpath_var=LIBPATH 15216 ;; 15217 15218osf3* | osf4* | osf5*) 15219 version_type=osf 15220 need_lib_prefix=no 15221 need_version=no 15222 soname_spec='${libname}${release}${shared_ext}$major' 15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15224 shlibpath_var=LD_LIBRARY_PATH 15225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15227 ;; 15228 15229rdos*) 15230 dynamic_linker=no 15231 ;; 15232 15233solaris*) 15234 version_type=linux 15235 need_lib_prefix=no 15236 need_version=no 15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15238 soname_spec='${libname}${release}${shared_ext}$major' 15239 shlibpath_var=LD_LIBRARY_PATH 15240 shlibpath_overrides_runpath=yes 15241 hardcode_into_libs=yes 15242 # ldd complains unless libraries are executable 15243 postinstall_cmds='chmod +x $lib' 15244 ;; 15245 15246sunos4*) 15247 version_type=sunos 15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15249 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15250 shlibpath_var=LD_LIBRARY_PATH 15251 shlibpath_overrides_runpath=yes 15252 if test "$with_gnu_ld" = yes; then 15253 need_lib_prefix=no 15254 fi 15255 need_version=yes 15256 ;; 15257 15258sysv4 | sysv4.3*) 15259 version_type=linux 15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15261 soname_spec='${libname}${release}${shared_ext}$major' 15262 shlibpath_var=LD_LIBRARY_PATH 15263 case $host_vendor in 15264 sni) 15265 shlibpath_overrides_runpath=no 15266 need_lib_prefix=no 15267 runpath_var=LD_RUN_PATH 15268 ;; 15269 siemens) 15270 need_lib_prefix=no 15271 ;; 15272 motorola) 15273 need_lib_prefix=no 15274 need_version=no 15275 shlibpath_overrides_runpath=no 15276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15277 ;; 15278 esac 15279 ;; 15280 15281sysv4*MP*) 15282 if test -d /usr/nec ;then 15283 version_type=linux 15284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15285 soname_spec='$libname${shared_ext}.$major' 15286 shlibpath_var=LD_LIBRARY_PATH 15287 fi 15288 ;; 15289 15290sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15291 version_type=freebsd-elf 15292 need_lib_prefix=no 15293 need_version=no 15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15295 soname_spec='${libname}${release}${shared_ext}$major' 15296 shlibpath_var=LD_LIBRARY_PATH 15297 shlibpath_overrides_runpath=yes 15298 hardcode_into_libs=yes 15299 if test "$with_gnu_ld" = yes; then 15300 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15301 else 15302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15303 case $host_os in 15304 sco3.2v5*) 15305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15306 ;; 15307 esac 15308 fi 15309 sys_lib_dlsearch_path_spec='/usr/lib' 15310 ;; 15311 15312tpf*) 15313 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15314 version_type=linux 15315 need_lib_prefix=no 15316 need_version=no 15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15318 shlibpath_var=LD_LIBRARY_PATH 15319 shlibpath_overrides_runpath=no 15320 hardcode_into_libs=yes 15321 ;; 15322 15323uts4*) 15324 version_type=linux 15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15326 soname_spec='${libname}${release}${shared_ext}$major' 15327 shlibpath_var=LD_LIBRARY_PATH 15328 ;; 15329 15330*) 15331 dynamic_linker=no 15332 ;; 15333esac 15334{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15335$as_echo "$dynamic_linker" >&6; } 15336test "$dynamic_linker" = no && can_build_shared=no 15337 15338variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15339if test "$GCC" = yes; then 15340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15341fi 15342 15343if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15344 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15345fi 15346if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15347 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15348fi 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15386$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15387hardcode_action_CXX= 15388if test -n "$hardcode_libdir_flag_spec_CXX" || 15389 test -n "$runpath_var_CXX" || 15390 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15391 15392 # We can hardcode non-existent directories. 15393 if test "$hardcode_direct_CXX" != no && 15394 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15395 # have to relink, otherwise we might link with an installed library 15396 # when we should be linking with a yet-to-be-installed one 15397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15398 test "$hardcode_minus_L_CXX" != no; then 15399 # Linking always hardcodes the temporary library directory. 15400 hardcode_action_CXX=relink 15401 else 15402 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15403 hardcode_action_CXX=immediate 15404 fi 15405else 15406 # We cannot hardcode anything, or else we can only hardcode existing 15407 # directories. 15408 hardcode_action_CXX=unsupported 15409fi 15410{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15411$as_echo "$hardcode_action_CXX" >&6; } 15412 15413if test "$hardcode_action_CXX" = relink || 15414 test "$inherit_rpath_CXX" = yes; then 15415 # Fast installation is not supported 15416 enable_fast_install=no 15417elif test "$shlibpath_overrides_runpath" = yes || 15418 test "$enable_shared" = no; then 15419 # Fast installation is not necessary 15420 enable_fast_install=needless 15421fi 15422 15423 15424 15425 15426 15427 15428 15429 fi # test -n "$compiler" 15430 15431 CC=$lt_save_CC 15432 LDCXX=$LD 15433 LD=$lt_save_LD 15434 GCC=$lt_save_GCC 15435 with_gnu_ld=$lt_save_with_gnu_ld 15436 lt_cv_path_LDCXX=$lt_cv_path_LD 15437 lt_cv_path_LD=$lt_save_path_LD 15438 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15439 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15440fi # test "$_lt_caught_CXX_error" != yes 15441 15442ac_ext=c 15443ac_cpp='$CPP $CPPFLAGS' 15444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15446ac_compiler_gnu=$ac_cv_c_compiler_gnu 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 ac_config_commands="$ac_config_commands libtool" 15461 15462 15463 15464 15465# Only expand once: 15466 15467 15468 15469 15470if test "${WIN32}" = "yes"; then 15471 15472 for ac_prog in man2html 15473do 15474 # Extract the first word of "$ac_prog", so it can be a program name with args. 15475set dummy $ac_prog; ac_word=$2 15476{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 15477$as_echo_n "checking for $ac_word... " >&6; } 15478if test "${ac_cv_prog_MAN2HTML+set}" = set; then 15479 $as_echo_n "(cached) " >&6 15480else 15481 if test -n "$MAN2HTML"; then 15482 ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test. 15483else 15484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15485for as_dir in $PATH 15486do 15487 IFS=$as_save_IFS 15488 test -z "$as_dir" && as_dir=. 15489 for ac_exec_ext in '' $ac_executable_extensions; do 15490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15491 ac_cv_prog_MAN2HTML="$ac_prog" 15492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15493 break 2 15494 fi 15495done 15496done 15497IFS=$as_save_IFS 15498 15499fi 15500fi 15501MAN2HTML=$ac_cv_prog_MAN2HTML 15502if test -n "$MAN2HTML"; then 15503 { $as_echo "$as_me:$LINENO: result: $MAN2HTML" >&5 15504$as_echo "$MAN2HTML" >&6; } 15505else 15506 { $as_echo "$as_me:$LINENO: result: no" >&5 15507$as_echo "no" >&6; } 15508fi 15509 15510 15511 test -n "$MAN2HTML" && break 15512done 15513 15514 test -z "${MAN2HTML}" && { { $as_echo "$as_me:$LINENO: error: man2html is required for win32" >&5 15515$as_echo "$as_me: error: man2html is required for win32" >&2;} 15516 { (exit 1); exit 1; }; } 15517fi 15518{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15519$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 15520if test "${ac_cv_header_time+set}" = set; then 15521 $as_echo_n "(cached) " >&6 15522else 15523 cat >conftest.$ac_ext <<_ACEOF 15524/* confdefs.h. */ 15525_ACEOF 15526cat confdefs.h >>conftest.$ac_ext 15527cat >>conftest.$ac_ext <<_ACEOF 15528/* end confdefs.h. */ 15529#include <sys/types.h> 15530#include <sys/time.h> 15531#include <time.h> 15532 15533int 15534main () 15535{ 15536if ((struct tm *) 0) 15537return 0; 15538 ; 15539 return 0; 15540} 15541_ACEOF 15542rm -f conftest.$ac_objext 15543if { (ac_try="$ac_compile" 15544case "(($ac_try" in 15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15546 *) ac_try_echo=$ac_try;; 15547esac 15548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15549$as_echo "$ac_try_echo") >&5 15550 (eval "$ac_compile") 2>conftest.er1 15551 ac_status=$? 15552 grep -v '^ *+' conftest.er1 >conftest.err 15553 rm -f conftest.er1 15554 cat conftest.err >&5 15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15556 (exit $ac_status); } && { 15557 test -z "$ac_c_werror_flag" || 15558 test ! -s conftest.err 15559 } && test -s conftest.$ac_objext; then 15560 ac_cv_header_time=yes 15561else 15562 $as_echo "$as_me: failed program was:" >&5 15563sed 's/^/| /' conftest.$ac_ext >&5 15564 15565 ac_cv_header_time=no 15566fi 15567 15568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15569fi 15570{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15571$as_echo "$ac_cv_header_time" >&6; } 15572if test $ac_cv_header_time = yes; then 15573 15574cat >>confdefs.h <<\_ACEOF 15575#define TIME_WITH_SYS_TIME 1 15576_ACEOF 15577 15578fi 15579 15580 15581 15582 15583 15584for ac_header in $ac_header_list 15585do 15586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15589$as_echo_n "checking for $ac_header... " >&6; } 15590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15591 $as_echo_n "(cached) " >&6 15592fi 15593ac_res=`eval 'as_val=${'$as_ac_Header'} 15594 $as_echo "$as_val"'` 15595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15596$as_echo "$ac_res" >&6; } 15597else 15598 # Is the header compilable? 15599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 15600$as_echo_n "checking $ac_header usability... " >&6; } 15601cat >conftest.$ac_ext <<_ACEOF 15602/* confdefs.h. */ 15603_ACEOF 15604cat confdefs.h >>conftest.$ac_ext 15605cat >>conftest.$ac_ext <<_ACEOF 15606/* end confdefs.h. */ 15607$ac_includes_default 15608#include <$ac_header> 15609_ACEOF 15610rm -f conftest.$ac_objext 15611if { (ac_try="$ac_compile" 15612case "(($ac_try" in 15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15614 *) ac_try_echo=$ac_try;; 15615esac 15616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15617$as_echo "$ac_try_echo") >&5 15618 (eval "$ac_compile") 2>conftest.er1 15619 ac_status=$? 15620 grep -v '^ *+' conftest.er1 >conftest.err 15621 rm -f conftest.er1 15622 cat conftest.err >&5 15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15624 (exit $ac_status); } && { 15625 test -z "$ac_c_werror_flag" || 15626 test ! -s conftest.err 15627 } && test -s conftest.$ac_objext; then 15628 ac_header_compiler=yes 15629else 15630 $as_echo "$as_me: failed program was:" >&5 15631sed 's/^/| /' conftest.$ac_ext >&5 15632 15633 ac_header_compiler=no 15634fi 15635 15636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15638$as_echo "$ac_header_compiler" >&6; } 15639 15640# Is the header present? 15641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 15642$as_echo_n "checking $ac_header presence... " >&6; } 15643cat >conftest.$ac_ext <<_ACEOF 15644/* confdefs.h. */ 15645_ACEOF 15646cat confdefs.h >>conftest.$ac_ext 15647cat >>conftest.$ac_ext <<_ACEOF 15648/* end confdefs.h. */ 15649#include <$ac_header> 15650_ACEOF 15651if { (ac_try="$ac_cpp conftest.$ac_ext" 15652case "(($ac_try" in 15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15654 *) ac_try_echo=$ac_try;; 15655esac 15656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15657$as_echo "$ac_try_echo") >&5 15658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15659 ac_status=$? 15660 grep -v '^ *+' conftest.er1 >conftest.err 15661 rm -f conftest.er1 15662 cat conftest.err >&5 15663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15664 (exit $ac_status); } >/dev/null && { 15665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15666 test ! -s conftest.err 15667 }; then 15668 ac_header_preproc=yes 15669else 15670 $as_echo "$as_me: failed program was:" >&5 15671sed 's/^/| /' conftest.$ac_ext >&5 15672 15673 ac_header_preproc=no 15674fi 15675 15676rm -f conftest.err conftest.$ac_ext 15677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15678$as_echo "$ac_header_preproc" >&6; } 15679 15680# So? What about this header? 15681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15682 yes:no: ) 15683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15687 ac_header_preproc=yes 15688 ;; 15689 no:yes:* ) 15690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15693$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15697$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15702 15703 ;; 15704esac 15705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 15706$as_echo_n "checking for $ac_header... " >&6; } 15707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15708 $as_echo_n "(cached) " >&6 15709else 15710 eval "$as_ac_Header=\$ac_header_preproc" 15711fi 15712ac_res=`eval 'as_val=${'$as_ac_Header'} 15713 $as_echo "$as_val"'` 15714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15715$as_echo "$ac_res" >&6; } 15716 15717fi 15718as_val=`eval 'as_val=${'$as_ac_Header'} 15719 $as_echo "$as_val"'` 15720 if test "x$as_val" = x""yes; then 15721 cat >>confdefs.h <<_ACEOF 15722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15723_ACEOF 15724 15725fi 15726 15727done 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737for ac_func in $ac_func_list 15738do 15739as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15740{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 15741$as_echo_n "checking for $ac_func... " >&6; } 15742if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15743 $as_echo_n "(cached) " >&6 15744else 15745 cat >conftest.$ac_ext <<_ACEOF 15746/* confdefs.h. */ 15747_ACEOF 15748cat confdefs.h >>conftest.$ac_ext 15749cat >>conftest.$ac_ext <<_ACEOF 15750/* end confdefs.h. */ 15751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15753#define $ac_func innocuous_$ac_func 15754 15755/* System header to define __stub macros and hopefully few prototypes, 15756 which can conflict with char $ac_func (); below. 15757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15758 <limits.h> exists even on freestanding compilers. */ 15759 15760#ifdef __STDC__ 15761# include <limits.h> 15762#else 15763# include <assert.h> 15764#endif 15765 15766#undef $ac_func 15767 15768/* Override any GCC internal prototype to avoid an error. 15769 Use char because int might match the return type of a GCC 15770 builtin and then its argument prototype would still apply. */ 15771#ifdef __cplusplus 15772extern "C" 15773#endif 15774char $ac_func (); 15775/* The GNU C library defines this for functions which it implements 15776 to always fail with ENOSYS. Some functions are actually named 15777 something starting with __ and the normal name is an alias. */ 15778#if defined __stub_$ac_func || defined __stub___$ac_func 15779choke me 15780#endif 15781 15782int 15783main () 15784{ 15785return $ac_func (); 15786 ; 15787 return 0; 15788} 15789_ACEOF 15790rm -f conftest.$ac_objext conftest$ac_exeext 15791if { (ac_try="$ac_link" 15792case "(($ac_try" in 15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15794 *) ac_try_echo=$ac_try;; 15795esac 15796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15797$as_echo "$ac_try_echo") >&5 15798 (eval "$ac_link") 2>conftest.er1 15799 ac_status=$? 15800 grep -v '^ *+' conftest.er1 >conftest.err 15801 rm -f conftest.er1 15802 cat conftest.err >&5 15803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15804 (exit $ac_status); } && { 15805 test -z "$ac_c_werror_flag" || 15806 test ! -s conftest.err 15807 } && test -s conftest$ac_exeext && { 15808 test "$cross_compiling" = yes || 15809 $as_test_x conftest$ac_exeext 15810 }; then 15811 eval "$as_ac_var=yes" 15812else 15813 $as_echo "$as_me: failed program was:" >&5 15814sed 's/^/| /' conftest.$ac_ext >&5 15815 15816 eval "$as_ac_var=no" 15817fi 15818 15819rm -rf conftest.dSYM 15820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15821 conftest$ac_exeext conftest.$ac_ext 15822fi 15823ac_res=`eval 'as_val=${'$as_ac_var'} 15824 $as_echo "$as_val"'` 15825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 15826$as_echo "$ac_res" >&6; } 15827as_val=`eval 'as_val=${'$as_ac_var'} 15828 $as_echo "$as_val"'` 15829 if test "x$as_val" = x""yes; then 15830 cat >>confdefs.h <<_ACEOF 15831#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15832_ACEOF 15833 15834fi 15835done 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5 15854$as_echo_n "checking for working mktime... " >&6; } 15855if test "${ac_cv_func_working_mktime+set}" = set; then 15856 $as_echo_n "(cached) " >&6 15857else 15858 if test "$cross_compiling" = yes; then 15859 ac_cv_func_working_mktime=no 15860else 15861 cat >conftest.$ac_ext <<_ACEOF 15862/* confdefs.h. */ 15863_ACEOF 15864cat confdefs.h >>conftest.$ac_ext 15865cat >>conftest.$ac_ext <<_ACEOF 15866/* end confdefs.h. */ 15867/* Test program from Paul Eggert and Tony Leneis. */ 15868#ifdef TIME_WITH_SYS_TIME 15869# include <sys/time.h> 15870# include <time.h> 15871#else 15872# ifdef HAVE_SYS_TIME_H 15873# include <sys/time.h> 15874# else 15875# include <time.h> 15876# endif 15877#endif 15878 15879#include <limits.h> 15880#include <stdlib.h> 15881 15882#ifdef HAVE_UNISTD_H 15883# include <unistd.h> 15884#endif 15885 15886#ifndef HAVE_ALARM 15887# define alarm(X) /* empty */ 15888#endif 15889 15890/* Work around redefinition to rpl_putenv by other config tests. */ 15891#undef putenv 15892 15893static time_t time_t_max; 15894static time_t time_t_min; 15895 15896/* Values we'll use to set the TZ environment variable. */ 15897static char *tz_strings[] = { 15898 (char *) 0, "TZ=GMT0", "TZ=JST-9", 15899 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 15900}; 15901#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 15902 15903/* Return 0 if mktime fails to convert a date in the spring-forward gap. 15904 Based on a problem report from Andreas Jaeger. */ 15905static int 15906spring_forward_gap () 15907{ 15908 /* glibc (up to about 1998-10-07) failed this test. */ 15909 struct tm tm; 15910 15911 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 15912 instead of "TZ=America/Vancouver" in order to detect the bug even 15913 on systems that don't support the Olson extension, or don't have the 15914 full zoneinfo tables installed. */ 15915 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 15916 15917 tm.tm_year = 98; 15918 tm.tm_mon = 3; 15919 tm.tm_mday = 5; 15920 tm.tm_hour = 2; 15921 tm.tm_min = 0; 15922 tm.tm_sec = 0; 15923 tm.tm_isdst = -1; 15924 return mktime (&tm) != (time_t) -1; 15925} 15926 15927static int 15928mktime_test1 (now) 15929 time_t now; 15930{ 15931 struct tm *lt; 15932 return ! (lt = localtime (&now)) || mktime (lt) == now; 15933} 15934 15935static int 15936mktime_test (now) 15937 time_t now; 15938{ 15939 return (mktime_test1 (now) 15940 && mktime_test1 ((time_t) (time_t_max - now)) 15941 && mktime_test1 ((time_t) (time_t_min + now))); 15942} 15943 15944static int 15945irix_6_4_bug () 15946{ 15947 /* Based on code from Ariel Faigon. */ 15948 struct tm tm; 15949 tm.tm_year = 96; 15950 tm.tm_mon = 3; 15951 tm.tm_mday = 0; 15952 tm.tm_hour = 0; 15953 tm.tm_min = 0; 15954 tm.tm_sec = 0; 15955 tm.tm_isdst = -1; 15956 mktime (&tm); 15957 return tm.tm_mon == 2 && tm.tm_mday == 31; 15958} 15959 15960static int 15961bigtime_test (j) 15962 int j; 15963{ 15964 struct tm tm; 15965 time_t now; 15966 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 15967 now = mktime (&tm); 15968 if (now != (time_t) -1) 15969 { 15970 struct tm *lt = localtime (&now); 15971 if (! (lt 15972 && lt->tm_year == tm.tm_year 15973 && lt->tm_mon == tm.tm_mon 15974 && lt->tm_mday == tm.tm_mday 15975 && lt->tm_hour == tm.tm_hour 15976 && lt->tm_min == tm.tm_min 15977 && lt->tm_sec == tm.tm_sec 15978 && lt->tm_yday == tm.tm_yday 15979 && lt->tm_wday == tm.tm_wday 15980 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 15981 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 15982 return 0; 15983 } 15984 return 1; 15985} 15986 15987static int 15988year_2050_test () 15989{ 15990 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 15991 ignoring leap seconds. */ 15992 unsigned long int answer = 2527315200UL; 15993 15994 struct tm tm; 15995 time_t t; 15996 tm.tm_year = 2050 - 1900; 15997 tm.tm_mon = 2 - 1; 15998 tm.tm_mday = 1; 15999 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 16000 tm.tm_isdst = -1; 16001 16002 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 16003 instead of "TZ=America/Vancouver" in order to detect the bug even 16004 on systems that don't support the Olson extension, or don't have the 16005 full zoneinfo tables installed. */ 16006 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 16007 16008 t = mktime (&tm); 16009 16010 /* Check that the result is either a failure, or close enough 16011 to the correct answer that we can assume the discrepancy is 16012 due to leap seconds. */ 16013 return (t == (time_t) -1 16014 || (0 < t && answer - 120 <= t && t <= answer + 120)); 16015} 16016 16017int 16018main () 16019{ 16020 time_t t, delta; 16021 int i, j; 16022 16023 /* This test makes some buggy mktime implementations loop. 16024 Give up after 60 seconds; a mktime slower than that 16025 isn't worth using anyway. */ 16026 alarm (60); 16027 16028 for (;;) 16029 { 16030 t = (time_t_max << 1) + 1; 16031 if (t <= time_t_max) 16032 break; 16033 time_t_max = t; 16034 } 16035 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 16036 16037 delta = time_t_max / 997; /* a suitable prime number */ 16038 for (i = 0; i < N_STRINGS; i++) 16039 { 16040 if (tz_strings[i]) 16041 putenv (tz_strings[i]); 16042 16043 for (t = 0; t <= time_t_max - delta; t += delta) 16044 if (! mktime_test (t)) 16045 return 1; 16046 if (! (mktime_test ((time_t) 1) 16047 && mktime_test ((time_t) (60 * 60)) 16048 && mktime_test ((time_t) (60 * 60 * 24)))) 16049 return 1; 16050 16051 for (j = 1; ; j <<= 1) 16052 if (! bigtime_test (j)) 16053 return 1; 16054 else if (INT_MAX / 2 < j) 16055 break; 16056 if (! bigtime_test (INT_MAX)) 16057 return 1; 16058 } 16059 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 16060} 16061_ACEOF 16062rm -f conftest$ac_exeext 16063if { (ac_try="$ac_link" 16064case "(($ac_try" in 16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16066 *) ac_try_echo=$ac_try;; 16067esac 16068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16069$as_echo "$ac_try_echo") >&5 16070 (eval "$ac_link") 2>&5 16071 ac_status=$? 16072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16074 { (case "(($ac_try" in 16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16076 *) ac_try_echo=$ac_try;; 16077esac 16078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16079$as_echo "$ac_try_echo") >&5 16080 (eval "$ac_try") 2>&5 16081 ac_status=$? 16082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16083 (exit $ac_status); }; }; then 16084 ac_cv_func_working_mktime=yes 16085else 16086 $as_echo "$as_me: program exited with status $ac_status" >&5 16087$as_echo "$as_me: failed program was:" >&5 16088sed 's/^/| /' conftest.$ac_ext >&5 16089 16090( exit $ac_status ) 16091ac_cv_func_working_mktime=no 16092fi 16093rm -rf conftest.dSYM 16094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16095fi 16096 16097 16098fi 16099{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 16100$as_echo "$ac_cv_func_working_mktime" >&6; } 16101if test $ac_cv_func_working_mktime = no; then 16102 case " $LIBOBJS " in 16103 *" mktime.$ac_objext "* ) ;; 16104 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 16105 ;; 16106esac 16107 16108fi 16109 16110 16111for ac_func in vprintf 16112do 16113as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16114{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16115$as_echo_n "checking for $ac_func... " >&6; } 16116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16117 $as_echo_n "(cached) " >&6 16118else 16119 cat >conftest.$ac_ext <<_ACEOF 16120/* confdefs.h. */ 16121_ACEOF 16122cat confdefs.h >>conftest.$ac_ext 16123cat >>conftest.$ac_ext <<_ACEOF 16124/* end confdefs.h. */ 16125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16127#define $ac_func innocuous_$ac_func 16128 16129/* System header to define __stub macros and hopefully few prototypes, 16130 which can conflict with char $ac_func (); below. 16131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16132 <limits.h> exists even on freestanding compilers. */ 16133 16134#ifdef __STDC__ 16135# include <limits.h> 16136#else 16137# include <assert.h> 16138#endif 16139 16140#undef $ac_func 16141 16142/* Override any GCC internal prototype to avoid an error. 16143 Use char because int might match the return type of a GCC 16144 builtin and then its argument prototype would still apply. */ 16145#ifdef __cplusplus 16146extern "C" 16147#endif 16148char $ac_func (); 16149/* The GNU C library defines this for functions which it implements 16150 to always fail with ENOSYS. Some functions are actually named 16151 something starting with __ and the normal name is an alias. */ 16152#if defined __stub_$ac_func || defined __stub___$ac_func 16153choke me 16154#endif 16155 16156int 16157main () 16158{ 16159return $ac_func (); 16160 ; 16161 return 0; 16162} 16163_ACEOF 16164rm -f conftest.$ac_objext conftest$ac_exeext 16165if { (ac_try="$ac_link" 16166case "(($ac_try" in 16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16168 *) ac_try_echo=$ac_try;; 16169esac 16170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16171$as_echo "$ac_try_echo") >&5 16172 (eval "$ac_link") 2>conftest.er1 16173 ac_status=$? 16174 grep -v '^ *+' conftest.er1 >conftest.err 16175 rm -f conftest.er1 16176 cat conftest.err >&5 16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16178 (exit $ac_status); } && { 16179 test -z "$ac_c_werror_flag" || 16180 test ! -s conftest.err 16181 } && test -s conftest$ac_exeext && { 16182 test "$cross_compiling" = yes || 16183 $as_test_x conftest$ac_exeext 16184 }; then 16185 eval "$as_ac_var=yes" 16186else 16187 $as_echo "$as_me: failed program was:" >&5 16188sed 's/^/| /' conftest.$ac_ext >&5 16189 16190 eval "$as_ac_var=no" 16191fi 16192 16193rm -rf conftest.dSYM 16194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16195 conftest$ac_exeext conftest.$ac_ext 16196fi 16197ac_res=`eval 'as_val=${'$as_ac_var'} 16198 $as_echo "$as_val"'` 16199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16200$as_echo "$ac_res" >&6; } 16201as_val=`eval 'as_val=${'$as_ac_var'} 16202 $as_echo "$as_val"'` 16203 if test "x$as_val" = x""yes; then 16204 cat >>confdefs.h <<_ACEOF 16205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16206_ACEOF 16207 16208{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 16209$as_echo_n "checking for _doprnt... " >&6; } 16210if test "${ac_cv_func__doprnt+set}" = set; then 16211 $as_echo_n "(cached) " >&6 16212else 16213 cat >conftest.$ac_ext <<_ACEOF 16214/* confdefs.h. */ 16215_ACEOF 16216cat confdefs.h >>conftest.$ac_ext 16217cat >>conftest.$ac_ext <<_ACEOF 16218/* end confdefs.h. */ 16219/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 16220 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16221#define _doprnt innocuous__doprnt 16222 16223/* System header to define __stub macros and hopefully few prototypes, 16224 which can conflict with char _doprnt (); below. 16225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16226 <limits.h> exists even on freestanding compilers. */ 16227 16228#ifdef __STDC__ 16229# include <limits.h> 16230#else 16231# include <assert.h> 16232#endif 16233 16234#undef _doprnt 16235 16236/* Override any GCC internal prototype to avoid an error. 16237 Use char because int might match the return type of a GCC 16238 builtin and then its argument prototype would still apply. */ 16239#ifdef __cplusplus 16240extern "C" 16241#endif 16242char _doprnt (); 16243/* The GNU C library defines this for functions which it implements 16244 to always fail with ENOSYS. Some functions are actually named 16245 something starting with __ and the normal name is an alias. */ 16246#if defined __stub__doprnt || defined __stub____doprnt 16247choke me 16248#endif 16249 16250int 16251main () 16252{ 16253return _doprnt (); 16254 ; 16255 return 0; 16256} 16257_ACEOF 16258rm -f conftest.$ac_objext conftest$ac_exeext 16259if { (ac_try="$ac_link" 16260case "(($ac_try" in 16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16262 *) ac_try_echo=$ac_try;; 16263esac 16264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16265$as_echo "$ac_try_echo") >&5 16266 (eval "$ac_link") 2>conftest.er1 16267 ac_status=$? 16268 grep -v '^ *+' conftest.er1 >conftest.err 16269 rm -f conftest.er1 16270 cat conftest.err >&5 16271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16272 (exit $ac_status); } && { 16273 test -z "$ac_c_werror_flag" || 16274 test ! -s conftest.err 16275 } && test -s conftest$ac_exeext && { 16276 test "$cross_compiling" = yes || 16277 $as_test_x conftest$ac_exeext 16278 }; then 16279 ac_cv_func__doprnt=yes 16280else 16281 $as_echo "$as_me: failed program was:" >&5 16282sed 's/^/| /' conftest.$ac_ext >&5 16283 16284 ac_cv_func__doprnt=no 16285fi 16286 16287rm -rf conftest.dSYM 16288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16289 conftest$ac_exeext conftest.$ac_ext 16290fi 16291{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 16292$as_echo "$ac_cv_func__doprnt" >&6; } 16293if test "x$ac_cv_func__doprnt" = x""yes; then 16294 16295cat >>confdefs.h <<\_ACEOF 16296#define HAVE_DOPRNT 1 16297_ACEOF 16298 16299fi 16300 16301fi 16302done 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314for ac_func in \ 16315 gettimeofday memmove memset socket strchr strdup strerror strrchr \ 16316 snprintf \ 16317 16318do 16319as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16320{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 16321$as_echo_n "checking for $ac_func... " >&6; } 16322if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16323 $as_echo_n "(cached) " >&6 16324else 16325 cat >conftest.$ac_ext <<_ACEOF 16326/* confdefs.h. */ 16327_ACEOF 16328cat confdefs.h >>conftest.$ac_ext 16329cat >>conftest.$ac_ext <<_ACEOF 16330/* end confdefs.h. */ 16331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16332 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16333#define $ac_func innocuous_$ac_func 16334 16335/* System header to define __stub macros and hopefully few prototypes, 16336 which can conflict with char $ac_func (); below. 16337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16338 <limits.h> exists even on freestanding compilers. */ 16339 16340#ifdef __STDC__ 16341# include <limits.h> 16342#else 16343# include <assert.h> 16344#endif 16345 16346#undef $ac_func 16347 16348/* Override any GCC internal prototype to avoid an error. 16349 Use char because int might match the return type of a GCC 16350 builtin and then its argument prototype would still apply. */ 16351#ifdef __cplusplus 16352extern "C" 16353#endif 16354char $ac_func (); 16355/* The GNU C library defines this for functions which it implements 16356 to always fail with ENOSYS. Some functions are actually named 16357 something starting with __ and the normal name is an alias. */ 16358#if defined __stub_$ac_func || defined __stub___$ac_func 16359choke me 16360#endif 16361 16362int 16363main () 16364{ 16365return $ac_func (); 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370rm -f conftest.$ac_objext conftest$ac_exeext 16371if { (ac_try="$ac_link" 16372case "(($ac_try" in 16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16374 *) ac_try_echo=$ac_try;; 16375esac 16376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16377$as_echo "$ac_try_echo") >&5 16378 (eval "$ac_link") 2>conftest.er1 16379 ac_status=$? 16380 grep -v '^ *+' conftest.er1 >conftest.err 16381 rm -f conftest.er1 16382 cat conftest.err >&5 16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 (exit $ac_status); } && { 16385 test -z "$ac_c_werror_flag" || 16386 test ! -s conftest.err 16387 } && test -s conftest$ac_exeext && { 16388 test "$cross_compiling" = yes || 16389 $as_test_x conftest$ac_exeext 16390 }; then 16391 eval "$as_ac_var=yes" 16392else 16393 $as_echo "$as_me: failed program was:" >&5 16394sed 's/^/| /' conftest.$ac_ext >&5 16395 16396 eval "$as_ac_var=no" 16397fi 16398 16399rm -rf conftest.dSYM 16400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16401 conftest$ac_exeext conftest.$ac_ext 16402fi 16403ac_res=`eval 'as_val=${'$as_ac_var'} 16404 $as_echo "$as_val"'` 16405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 16406$as_echo "$ac_res" >&6; } 16407as_val=`eval 'as_val=${'$as_ac_var'} 16408 $as_echo "$as_val"'` 16409 if test "x$as_val" = x""yes; then 16410 cat >>confdefs.h <<_ACEOF 16411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16412_ACEOF 16413 16414fi 16415done 16416 16417 16418# Checks for header files. 16419{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 16420$as_echo_n "checking for ANSI C header files... " >&6; } 16421if test "${ac_cv_header_stdc+set}" = set; then 16422 $as_echo_n "(cached) " >&6 16423else 16424 cat >conftest.$ac_ext <<_ACEOF 16425/* confdefs.h. */ 16426_ACEOF 16427cat confdefs.h >>conftest.$ac_ext 16428cat >>conftest.$ac_ext <<_ACEOF 16429/* end confdefs.h. */ 16430#include <stdlib.h> 16431#include <stdarg.h> 16432#include <string.h> 16433#include <float.h> 16434 16435int 16436main () 16437{ 16438 16439 ; 16440 return 0; 16441} 16442_ACEOF 16443rm -f conftest.$ac_objext 16444if { (ac_try="$ac_compile" 16445case "(($ac_try" in 16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16447 *) ac_try_echo=$ac_try;; 16448esac 16449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16450$as_echo "$ac_try_echo") >&5 16451 (eval "$ac_compile") 2>conftest.er1 16452 ac_status=$? 16453 grep -v '^ *+' conftest.er1 >conftest.err 16454 rm -f conftest.er1 16455 cat conftest.err >&5 16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16457 (exit $ac_status); } && { 16458 test -z "$ac_c_werror_flag" || 16459 test ! -s conftest.err 16460 } && test -s conftest.$ac_objext; then 16461 ac_cv_header_stdc=yes 16462else 16463 $as_echo "$as_me: failed program was:" >&5 16464sed 's/^/| /' conftest.$ac_ext >&5 16465 16466 ac_cv_header_stdc=no 16467fi 16468 16469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16470 16471if test $ac_cv_header_stdc = yes; then 16472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16473 cat >conftest.$ac_ext <<_ACEOF 16474/* confdefs.h. */ 16475_ACEOF 16476cat confdefs.h >>conftest.$ac_ext 16477cat >>conftest.$ac_ext <<_ACEOF 16478/* end confdefs.h. */ 16479#include <string.h> 16480 16481_ACEOF 16482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16483 $EGREP "memchr" >/dev/null 2>&1; then 16484 : 16485else 16486 ac_cv_header_stdc=no 16487fi 16488rm -f conftest* 16489 16490fi 16491 16492if test $ac_cv_header_stdc = yes; then 16493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16494 cat >conftest.$ac_ext <<_ACEOF 16495/* confdefs.h. */ 16496_ACEOF 16497cat confdefs.h >>conftest.$ac_ext 16498cat >>conftest.$ac_ext <<_ACEOF 16499/* end confdefs.h. */ 16500#include <stdlib.h> 16501 16502_ACEOF 16503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16504 $EGREP "free" >/dev/null 2>&1; then 16505 : 16506else 16507 ac_cv_header_stdc=no 16508fi 16509rm -f conftest* 16510 16511fi 16512 16513if test $ac_cv_header_stdc = yes; then 16514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16515 if test "$cross_compiling" = yes; then 16516 : 16517else 16518 cat >conftest.$ac_ext <<_ACEOF 16519/* confdefs.h. */ 16520_ACEOF 16521cat confdefs.h >>conftest.$ac_ext 16522cat >>conftest.$ac_ext <<_ACEOF 16523/* end confdefs.h. */ 16524#include <ctype.h> 16525#include <stdlib.h> 16526#if ((' ' & 0x0FF) == 0x020) 16527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16529#else 16530# define ISLOWER(c) \ 16531 (('a' <= (c) && (c) <= 'i') \ 16532 || ('j' <= (c) && (c) <= 'r') \ 16533 || ('s' <= (c) && (c) <= 'z')) 16534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16535#endif 16536 16537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16538int 16539main () 16540{ 16541 int i; 16542 for (i = 0; i < 256; i++) 16543 if (XOR (islower (i), ISLOWER (i)) 16544 || toupper (i) != TOUPPER (i)) 16545 return 2; 16546 return 0; 16547} 16548_ACEOF 16549rm -f conftest$ac_exeext 16550if { (ac_try="$ac_link" 16551case "(($ac_try" in 16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16553 *) ac_try_echo=$ac_try;; 16554esac 16555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16556$as_echo "$ac_try_echo") >&5 16557 (eval "$ac_link") 2>&5 16558 ac_status=$? 16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16561 { (case "(($ac_try" in 16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16563 *) ac_try_echo=$ac_try;; 16564esac 16565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16566$as_echo "$ac_try_echo") >&5 16567 (eval "$ac_try") 2>&5 16568 ac_status=$? 16569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16570 (exit $ac_status); }; }; then 16571 : 16572else 16573 $as_echo "$as_me: program exited with status $ac_status" >&5 16574$as_echo "$as_me: failed program was:" >&5 16575sed 's/^/| /' conftest.$ac_ext >&5 16576 16577( exit $ac_status ) 16578ac_cv_header_stdc=no 16579fi 16580rm -rf conftest.dSYM 16581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16582fi 16583 16584 16585fi 16586fi 16587{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 16588$as_echo "$ac_cv_header_stdc" >&6; } 16589if test $ac_cv_header_stdc = yes; then 16590 16591cat >>confdefs.h <<\_ACEOF 16592#define STDC_HEADERS 1 16593_ACEOF 16594 16595fi 16596 16597{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 16598$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16599if test "${ac_cv_c_const+set}" = set; then 16600 $as_echo_n "(cached) " >&6 16601else 16602 cat >conftest.$ac_ext <<_ACEOF 16603/* confdefs.h. */ 16604_ACEOF 16605cat confdefs.h >>conftest.$ac_ext 16606cat >>conftest.$ac_ext <<_ACEOF 16607/* end confdefs.h. */ 16608 16609int 16610main () 16611{ 16612/* FIXME: Include the comments suggested by Paul. */ 16613#ifndef __cplusplus 16614 /* Ultrix mips cc rejects this. */ 16615 typedef int charset[2]; 16616 const charset cs; 16617 /* SunOS 4.1.1 cc rejects this. */ 16618 char const *const *pcpcc; 16619 char **ppc; 16620 /* NEC SVR4.0.2 mips cc rejects this. */ 16621 struct point {int x, y;}; 16622 static struct point const zero = {0,0}; 16623 /* AIX XL C 1.02.0.0 rejects this. 16624 It does not let you subtract one const X* pointer from another in 16625 an arm of an if-expression whose if-part is not a constant 16626 expression */ 16627 const char *g = "string"; 16628 pcpcc = &g + (g ? g-g : 0); 16629 /* HPUX 7.0 cc rejects these. */ 16630 ++pcpcc; 16631 ppc = (char**) pcpcc; 16632 pcpcc = (char const *const *) ppc; 16633 { /* SCO 3.2v4 cc rejects this. */ 16634 char *t; 16635 char const *s = 0 ? (char *) 0 : (char const *) 0; 16636 16637 *t++ = 0; 16638 if (s) return 0; 16639 } 16640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16641 int x[] = {25, 17}; 16642 const int *foo = &x[0]; 16643 ++foo; 16644 } 16645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16646 typedef const int *iptr; 16647 iptr p = 0; 16648 ++p; 16649 } 16650 { /* AIX XL C 1.02.0.0 rejects this saying 16651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16652 struct s { int j; const int *ap[3]; }; 16653 struct s *b; b->j = 5; 16654 } 16655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16656 const int foo = 10; 16657 if (!foo) return 0; 16658 } 16659 return !cs[0] && !zero.x; 16660#endif 16661 16662 ; 16663 return 0; 16664} 16665_ACEOF 16666rm -f conftest.$ac_objext 16667if { (ac_try="$ac_compile" 16668case "(($ac_try" in 16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16670 *) ac_try_echo=$ac_try;; 16671esac 16672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16673$as_echo "$ac_try_echo") >&5 16674 (eval "$ac_compile") 2>conftest.er1 16675 ac_status=$? 16676 grep -v '^ *+' conftest.er1 >conftest.err 16677 rm -f conftest.er1 16678 cat conftest.err >&5 16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16680 (exit $ac_status); } && { 16681 test -z "$ac_c_werror_flag" || 16682 test ! -s conftest.err 16683 } && test -s conftest.$ac_objext; then 16684 ac_cv_c_const=yes 16685else 16686 $as_echo "$as_me: failed program was:" >&5 16687sed 's/^/| /' conftest.$ac_ext >&5 16688 16689 ac_cv_c_const=no 16690fi 16691 16692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16693fi 16694{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 16695$as_echo "$ac_cv_c_const" >&6; } 16696if test $ac_cv_c_const = no; then 16697 16698cat >>confdefs.h <<\_ACEOF 16699#define const /**/ 16700_ACEOF 16701 16702fi 16703 16704{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5 16705$as_echo_n "checking for working volatile... " >&6; } 16706if test "${ac_cv_c_volatile+set}" = set; then 16707 $as_echo_n "(cached) " >&6 16708else 16709 cat >conftest.$ac_ext <<_ACEOF 16710/* confdefs.h. */ 16711_ACEOF 16712cat confdefs.h >>conftest.$ac_ext 16713cat >>conftest.$ac_ext <<_ACEOF 16714/* end confdefs.h. */ 16715 16716int 16717main () 16718{ 16719 16720volatile int x; 16721int * volatile y = (int *) 0; 16722return !x && !y; 16723 ; 16724 return 0; 16725} 16726_ACEOF 16727rm -f conftest.$ac_objext 16728if { (ac_try="$ac_compile" 16729case "(($ac_try" in 16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16731 *) ac_try_echo=$ac_try;; 16732esac 16733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16734$as_echo "$ac_try_echo") >&5 16735 (eval "$ac_compile") 2>conftest.er1 16736 ac_status=$? 16737 grep -v '^ *+' conftest.er1 >conftest.err 16738 rm -f conftest.er1 16739 cat conftest.err >&5 16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16741 (exit $ac_status); } && { 16742 test -z "$ac_c_werror_flag" || 16743 test ! -s conftest.err 16744 } && test -s conftest.$ac_objext; then 16745 ac_cv_c_volatile=yes 16746else 16747 $as_echo "$as_me: failed program was:" >&5 16748sed 's/^/| /' conftest.$ac_ext >&5 16749 16750 ac_cv_c_volatile=no 16751fi 16752 16753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16754fi 16755{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 16756$as_echo "$ac_cv_c_volatile" >&6; } 16757if test $ac_cv_c_volatile = no; then 16758 16759cat >>confdefs.h <<\_ACEOF 16760#define volatile /**/ 16761_ACEOF 16762 16763fi 16764 16765{ $as_echo "$as_me:$LINENO: checking for off_t" >&5 16766$as_echo_n "checking for off_t... " >&6; } 16767if test "${ac_cv_type_off_t+set}" = set; then 16768 $as_echo_n "(cached) " >&6 16769else 16770 ac_cv_type_off_t=no 16771cat >conftest.$ac_ext <<_ACEOF 16772/* confdefs.h. */ 16773_ACEOF 16774cat confdefs.h >>conftest.$ac_ext 16775cat >>conftest.$ac_ext <<_ACEOF 16776/* end confdefs.h. */ 16777$ac_includes_default 16778int 16779main () 16780{ 16781if (sizeof (off_t)) 16782 return 0; 16783 ; 16784 return 0; 16785} 16786_ACEOF 16787rm -f conftest.$ac_objext 16788if { (ac_try="$ac_compile" 16789case "(($ac_try" in 16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16791 *) ac_try_echo=$ac_try;; 16792esac 16793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16794$as_echo "$ac_try_echo") >&5 16795 (eval "$ac_compile") 2>conftest.er1 16796 ac_status=$? 16797 grep -v '^ *+' conftest.er1 >conftest.err 16798 rm -f conftest.er1 16799 cat conftest.err >&5 16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16801 (exit $ac_status); } && { 16802 test -z "$ac_c_werror_flag" || 16803 test ! -s conftest.err 16804 } && test -s conftest.$ac_objext; then 16805 cat >conftest.$ac_ext <<_ACEOF 16806/* confdefs.h. */ 16807_ACEOF 16808cat confdefs.h >>conftest.$ac_ext 16809cat >>conftest.$ac_ext <<_ACEOF 16810/* end confdefs.h. */ 16811$ac_includes_default 16812int 16813main () 16814{ 16815if (sizeof ((off_t))) 16816 return 0; 16817 ; 16818 return 0; 16819} 16820_ACEOF 16821rm -f conftest.$ac_objext 16822if { (ac_try="$ac_compile" 16823case "(($ac_try" in 16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16825 *) ac_try_echo=$ac_try;; 16826esac 16827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16828$as_echo "$ac_try_echo") >&5 16829 (eval "$ac_compile") 2>conftest.er1 16830 ac_status=$? 16831 grep -v '^ *+' conftest.er1 >conftest.err 16832 rm -f conftest.er1 16833 cat conftest.err >&5 16834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16835 (exit $ac_status); } && { 16836 test -z "$ac_c_werror_flag" || 16837 test ! -s conftest.err 16838 } && test -s conftest.$ac_objext; then 16839 : 16840else 16841 $as_echo "$as_me: failed program was:" >&5 16842sed 's/^/| /' conftest.$ac_ext >&5 16843 16844 ac_cv_type_off_t=yes 16845fi 16846 16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16848else 16849 $as_echo "$as_me: failed program was:" >&5 16850sed 's/^/| /' conftest.$ac_ext >&5 16851 16852 16853fi 16854 16855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16856fi 16857{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 16858$as_echo "$ac_cv_type_off_t" >&6; } 16859if test "x$ac_cv_type_off_t" = x""yes; then 16860 : 16861else 16862 16863cat >>confdefs.h <<_ACEOF 16864#define off_t long int 16865_ACEOF 16866 16867fi 16868 16869{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 16870$as_echo_n "checking for pid_t... " >&6; } 16871if test "${ac_cv_type_pid_t+set}" = set; then 16872 $as_echo_n "(cached) " >&6 16873else 16874 ac_cv_type_pid_t=no 16875cat >conftest.$ac_ext <<_ACEOF 16876/* confdefs.h. */ 16877_ACEOF 16878cat confdefs.h >>conftest.$ac_ext 16879cat >>conftest.$ac_ext <<_ACEOF 16880/* end confdefs.h. */ 16881$ac_includes_default 16882int 16883main () 16884{ 16885if (sizeof (pid_t)) 16886 return 0; 16887 ; 16888 return 0; 16889} 16890_ACEOF 16891rm -f conftest.$ac_objext 16892if { (ac_try="$ac_compile" 16893case "(($ac_try" in 16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16895 *) ac_try_echo=$ac_try;; 16896esac 16897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16898$as_echo "$ac_try_echo") >&5 16899 (eval "$ac_compile") 2>conftest.er1 16900 ac_status=$? 16901 grep -v '^ *+' conftest.er1 >conftest.err 16902 rm -f conftest.er1 16903 cat conftest.err >&5 16904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16905 (exit $ac_status); } && { 16906 test -z "$ac_c_werror_flag" || 16907 test ! -s conftest.err 16908 } && test -s conftest.$ac_objext; then 16909 cat >conftest.$ac_ext <<_ACEOF 16910/* confdefs.h. */ 16911_ACEOF 16912cat confdefs.h >>conftest.$ac_ext 16913cat >>conftest.$ac_ext <<_ACEOF 16914/* end confdefs.h. */ 16915$ac_includes_default 16916int 16917main () 16918{ 16919if (sizeof ((pid_t))) 16920 return 0; 16921 ; 16922 return 0; 16923} 16924_ACEOF 16925rm -f conftest.$ac_objext 16926if { (ac_try="$ac_compile" 16927case "(($ac_try" in 16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16929 *) ac_try_echo=$ac_try;; 16930esac 16931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16932$as_echo "$ac_try_echo") >&5 16933 (eval "$ac_compile") 2>conftest.er1 16934 ac_status=$? 16935 grep -v '^ *+' conftest.er1 >conftest.err 16936 rm -f conftest.er1 16937 cat conftest.err >&5 16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } && { 16940 test -z "$ac_c_werror_flag" || 16941 test ! -s conftest.err 16942 } && test -s conftest.$ac_objext; then 16943 : 16944else 16945 $as_echo "$as_me: failed program was:" >&5 16946sed 's/^/| /' conftest.$ac_ext >&5 16947 16948 ac_cv_type_pid_t=yes 16949fi 16950 16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16952else 16953 $as_echo "$as_me: failed program was:" >&5 16954sed 's/^/| /' conftest.$ac_ext >&5 16955 16956 16957fi 16958 16959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16960fi 16961{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16962$as_echo "$ac_cv_type_pid_t" >&6; } 16963if test "x$ac_cv_type_pid_t" = x""yes; then 16964 : 16965else 16966 16967cat >>confdefs.h <<_ACEOF 16968#define pid_t int 16969_ACEOF 16970 16971fi 16972 16973{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 16974$as_echo_n "checking for size_t... " >&6; } 16975if test "${ac_cv_type_size_t+set}" = set; then 16976 $as_echo_n "(cached) " >&6 16977else 16978 ac_cv_type_size_t=no 16979cat >conftest.$ac_ext <<_ACEOF 16980/* confdefs.h. */ 16981_ACEOF 16982cat confdefs.h >>conftest.$ac_ext 16983cat >>conftest.$ac_ext <<_ACEOF 16984/* end confdefs.h. */ 16985$ac_includes_default 16986int 16987main () 16988{ 16989if (sizeof (size_t)) 16990 return 0; 16991 ; 16992 return 0; 16993} 16994_ACEOF 16995rm -f conftest.$ac_objext 16996if { (ac_try="$ac_compile" 16997case "(($ac_try" in 16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16999 *) ac_try_echo=$ac_try;; 17000esac 17001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17002$as_echo "$ac_try_echo") >&5 17003 (eval "$ac_compile") 2>conftest.er1 17004 ac_status=$? 17005 grep -v '^ *+' conftest.er1 >conftest.err 17006 rm -f conftest.er1 17007 cat conftest.err >&5 17008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17009 (exit $ac_status); } && { 17010 test -z "$ac_c_werror_flag" || 17011 test ! -s conftest.err 17012 } && test -s conftest.$ac_objext; then 17013 cat >conftest.$ac_ext <<_ACEOF 17014/* confdefs.h. */ 17015_ACEOF 17016cat confdefs.h >>conftest.$ac_ext 17017cat >>conftest.$ac_ext <<_ACEOF 17018/* end confdefs.h. */ 17019$ac_includes_default 17020int 17021main () 17022{ 17023if (sizeof ((size_t))) 17024 return 0; 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029rm -f conftest.$ac_objext 17030if { (ac_try="$ac_compile" 17031case "(($ac_try" in 17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17033 *) ac_try_echo=$ac_try;; 17034esac 17035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17036$as_echo "$ac_try_echo") >&5 17037 (eval "$ac_compile") 2>conftest.er1 17038 ac_status=$? 17039 grep -v '^ *+' conftest.er1 >conftest.err 17040 rm -f conftest.er1 17041 cat conftest.err >&5 17042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17043 (exit $ac_status); } && { 17044 test -z "$ac_c_werror_flag" || 17045 test ! -s conftest.err 17046 } && test -s conftest.$ac_objext; then 17047 : 17048else 17049 $as_echo "$as_me: failed program was:" >&5 17050sed 's/^/| /' conftest.$ac_ext >&5 17051 17052 ac_cv_type_size_t=yes 17053fi 17054 17055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17056else 17057 $as_echo "$as_me: failed program was:" >&5 17058sed 's/^/| /' conftest.$ac_ext >&5 17059 17060 17061fi 17062 17063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17064fi 17065{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17066$as_echo "$ac_cv_type_size_t" >&6; } 17067if test "x$ac_cv_type_size_t" = x""yes; then 17068 : 17069else 17070 17071cat >>confdefs.h <<_ACEOF 17072#define size_t unsigned int 17073_ACEOF 17074 17075fi 17076 17077{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 17078$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17079if test "${ac_cv_header_time+set}" = set; then 17080 $as_echo_n "(cached) " >&6 17081else 17082 cat >conftest.$ac_ext <<_ACEOF 17083/* confdefs.h. */ 17084_ACEOF 17085cat confdefs.h >>conftest.$ac_ext 17086cat >>conftest.$ac_ext <<_ACEOF 17087/* end confdefs.h. */ 17088#include <sys/types.h> 17089#include <sys/time.h> 17090#include <time.h> 17091 17092int 17093main () 17094{ 17095if ((struct tm *) 0) 17096return 0; 17097 ; 17098 return 0; 17099} 17100_ACEOF 17101rm -f conftest.$ac_objext 17102if { (ac_try="$ac_compile" 17103case "(($ac_try" in 17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17105 *) ac_try_echo=$ac_try;; 17106esac 17107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17108$as_echo "$ac_try_echo") >&5 17109 (eval "$ac_compile") 2>conftest.er1 17110 ac_status=$? 17111 grep -v '^ *+' conftest.er1 >conftest.err 17112 rm -f conftest.er1 17113 cat conftest.err >&5 17114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17115 (exit $ac_status); } && { 17116 test -z "$ac_c_werror_flag" || 17117 test ! -s conftest.err 17118 } && test -s conftest.$ac_objext; then 17119 ac_cv_header_time=yes 17120else 17121 $as_echo "$as_me: failed program was:" >&5 17122sed 's/^/| /' conftest.$ac_ext >&5 17123 17124 ac_cv_header_time=no 17125fi 17126 17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17128fi 17129{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 17130$as_echo "$ac_cv_header_time" >&6; } 17131if test $ac_cv_header_time = yes; then 17132 17133cat >>confdefs.h <<\_ACEOF 17134#define TIME_WITH_SYS_TIME 1 17135_ACEOF 17136 17137fi 17138 17139{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17140$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17141if test "${ac_cv_struct_tm+set}" = set; then 17142 $as_echo_n "(cached) " >&6 17143else 17144 cat >conftest.$ac_ext <<_ACEOF 17145/* confdefs.h. */ 17146_ACEOF 17147cat confdefs.h >>conftest.$ac_ext 17148cat >>conftest.$ac_ext <<_ACEOF 17149/* end confdefs.h. */ 17150#include <sys/types.h> 17151#include <time.h> 17152 17153int 17154main () 17155{ 17156struct tm tm; 17157 int *p = &tm.tm_sec; 17158 return !p; 17159 ; 17160 return 0; 17161} 17162_ACEOF 17163rm -f conftest.$ac_objext 17164if { (ac_try="$ac_compile" 17165case "(($ac_try" in 17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17167 *) ac_try_echo=$ac_try;; 17168esac 17169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17170$as_echo "$ac_try_echo") >&5 17171 (eval "$ac_compile") 2>conftest.er1 17172 ac_status=$? 17173 grep -v '^ *+' conftest.er1 >conftest.err 17174 rm -f conftest.er1 17175 cat conftest.err >&5 17176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17177 (exit $ac_status); } && { 17178 test -z "$ac_c_werror_flag" || 17179 test ! -s conftest.err 17180 } && test -s conftest.$ac_objext; then 17181 ac_cv_struct_tm=time.h 17182else 17183 $as_echo "$as_me: failed program was:" >&5 17184sed 's/^/| /' conftest.$ac_ext >&5 17185 17186 ac_cv_struct_tm=sys/time.h 17187fi 17188 17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17190fi 17191{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17192$as_echo "$ac_cv_struct_tm" >&6; } 17193if test $ac_cv_struct_tm = sys/time.h; then 17194 17195cat >>confdefs.h <<\_ACEOF 17196#define TM_IN_SYS_TIME 1 17197_ACEOF 17198 17199fi 17200 17201 17202for ac_header in \ 17203 stdio.h \ 17204 stdlib.h \ 17205 stdargs.h \ 17206 malloc.h \ 17207 ctype.h \ 17208 string.h \ 17209 errno.h \ 17210 17211do 17212as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17215$as_echo_n "checking for $ac_header... " >&6; } 17216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17217 $as_echo_n "(cached) " >&6 17218fi 17219ac_res=`eval 'as_val=${'$as_ac_Header'} 17220 $as_echo "$as_val"'` 17221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17222$as_echo "$ac_res" >&6; } 17223else 17224 # Is the header compilable? 17225{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 17226$as_echo_n "checking $ac_header usability... " >&6; } 17227cat >conftest.$ac_ext <<_ACEOF 17228/* confdefs.h. */ 17229_ACEOF 17230cat confdefs.h >>conftest.$ac_ext 17231cat >>conftest.$ac_ext <<_ACEOF 17232/* end confdefs.h. */ 17233$ac_includes_default 17234#include <$ac_header> 17235_ACEOF 17236rm -f conftest.$ac_objext 17237if { (ac_try="$ac_compile" 17238case "(($ac_try" in 17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17240 *) ac_try_echo=$ac_try;; 17241esac 17242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17243$as_echo "$ac_try_echo") >&5 17244 (eval "$ac_compile") 2>conftest.er1 17245 ac_status=$? 17246 grep -v '^ *+' conftest.er1 >conftest.err 17247 rm -f conftest.er1 17248 cat conftest.err >&5 17249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17250 (exit $ac_status); } && { 17251 test -z "$ac_c_werror_flag" || 17252 test ! -s conftest.err 17253 } && test -s conftest.$ac_objext; then 17254 ac_header_compiler=yes 17255else 17256 $as_echo "$as_me: failed program was:" >&5 17257sed 's/^/| /' conftest.$ac_ext >&5 17258 17259 ac_header_compiler=no 17260fi 17261 17262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17263{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17264$as_echo "$ac_header_compiler" >&6; } 17265 17266# Is the header present? 17267{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 17268$as_echo_n "checking $ac_header presence... " >&6; } 17269cat >conftest.$ac_ext <<_ACEOF 17270/* confdefs.h. */ 17271_ACEOF 17272cat confdefs.h >>conftest.$ac_ext 17273cat >>conftest.$ac_ext <<_ACEOF 17274/* end confdefs.h. */ 17275#include <$ac_header> 17276_ACEOF 17277if { (ac_try="$ac_cpp conftest.$ac_ext" 17278case "(($ac_try" in 17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17280 *) ac_try_echo=$ac_try;; 17281esac 17282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17283$as_echo "$ac_try_echo") >&5 17284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17285 ac_status=$? 17286 grep -v '^ *+' conftest.er1 >conftest.err 17287 rm -f conftest.er1 17288 cat conftest.err >&5 17289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17290 (exit $ac_status); } >/dev/null && { 17291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17292 test ! -s conftest.err 17293 }; then 17294 ac_header_preproc=yes 17295else 17296 $as_echo "$as_me: failed program was:" >&5 17297sed 's/^/| /' conftest.$ac_ext >&5 17298 17299 ac_header_preproc=no 17300fi 17301 17302rm -f conftest.err conftest.$ac_ext 17303{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17304$as_echo "$ac_header_preproc" >&6; } 17305 17306# So? What about this header? 17307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17308 yes:no: ) 17309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17310$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17312$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17313 ac_header_preproc=yes 17314 ;; 17315 no:yes:* ) 17316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17317$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17319$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17321$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17323$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17325$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17327$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17328 17329 ;; 17330esac 17331{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17332$as_echo_n "checking for $ac_header... " >&6; } 17333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17334 $as_echo_n "(cached) " >&6 17335else 17336 eval "$as_ac_Header=\$ac_header_preproc" 17337fi 17338ac_res=`eval 'as_val=${'$as_ac_Header'} 17339 $as_echo "$as_val"'` 17340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17341$as_echo "$ac_res" >&6; } 17342 17343fi 17344as_val=`eval 'as_val=${'$as_ac_Header'} 17345 $as_echo "$as_val"'` 17346 if test "x$as_val" = x""yes; then 17347 cat >>confdefs.h <<_ACEOF 17348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17349_ACEOF 17350 17351fi 17352 17353done 17354 17355 17356 17357 17358for ac_header in \ 17359 signal.h \ 17360 dlfcn.h \ 17361 unistd.h \ 17362 17363do 17364as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17367$as_echo_n "checking for $ac_header... " >&6; } 17368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17369 $as_echo_n "(cached) " >&6 17370fi 17371ac_res=`eval 'as_val=${'$as_ac_Header'} 17372 $as_echo "$as_val"'` 17373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17374$as_echo "$ac_res" >&6; } 17375else 17376 # Is the header compilable? 17377{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 17378$as_echo_n "checking $ac_header usability... " >&6; } 17379cat >conftest.$ac_ext <<_ACEOF 17380/* confdefs.h. */ 17381_ACEOF 17382cat confdefs.h >>conftest.$ac_ext 17383cat >>conftest.$ac_ext <<_ACEOF 17384/* end confdefs.h. */ 17385$ac_includes_default 17386#include <$ac_header> 17387_ACEOF 17388rm -f conftest.$ac_objext 17389if { (ac_try="$ac_compile" 17390case "(($ac_try" in 17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17392 *) ac_try_echo=$ac_try;; 17393esac 17394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17395$as_echo "$ac_try_echo") >&5 17396 (eval "$ac_compile") 2>conftest.er1 17397 ac_status=$? 17398 grep -v '^ *+' conftest.er1 >conftest.err 17399 rm -f conftest.er1 17400 cat conftest.err >&5 17401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17402 (exit $ac_status); } && { 17403 test -z "$ac_c_werror_flag" || 17404 test ! -s conftest.err 17405 } && test -s conftest.$ac_objext; then 17406 ac_header_compiler=yes 17407else 17408 $as_echo "$as_me: failed program was:" >&5 17409sed 's/^/| /' conftest.$ac_ext >&5 17410 17411 ac_header_compiler=no 17412fi 17413 17414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17415{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17416$as_echo "$ac_header_compiler" >&6; } 17417 17418# Is the header present? 17419{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 17420$as_echo_n "checking $ac_header presence... " >&6; } 17421cat >conftest.$ac_ext <<_ACEOF 17422/* confdefs.h. */ 17423_ACEOF 17424cat confdefs.h >>conftest.$ac_ext 17425cat >>conftest.$ac_ext <<_ACEOF 17426/* end confdefs.h. */ 17427#include <$ac_header> 17428_ACEOF 17429if { (ac_try="$ac_cpp conftest.$ac_ext" 17430case "(($ac_try" in 17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17432 *) ac_try_echo=$ac_try;; 17433esac 17434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17435$as_echo "$ac_try_echo") >&5 17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17437 ac_status=$? 17438 grep -v '^ *+' conftest.er1 >conftest.err 17439 rm -f conftest.er1 17440 cat conftest.err >&5 17441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17442 (exit $ac_status); } >/dev/null && { 17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17444 test ! -s conftest.err 17445 }; then 17446 ac_header_preproc=yes 17447else 17448 $as_echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451 ac_header_preproc=no 17452fi 17453 17454rm -f conftest.err conftest.$ac_ext 17455{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17456$as_echo "$ac_header_preproc" >&6; } 17457 17458# So? What about this header? 17459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17460 yes:no: ) 17461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17462$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17464$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17465 ac_header_preproc=yes 17466 ;; 17467 no:yes:* ) 17468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17469$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17471$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17473$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17475$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17477$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17479$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17480 17481 ;; 17482esac 17483{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 17484$as_echo_n "checking for $ac_header... " >&6; } 17485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17486 $as_echo_n "(cached) " >&6 17487else 17488 eval "$as_ac_Header=\$ac_header_preproc" 17489fi 17490ac_res=`eval 'as_val=${'$as_ac_Header'} 17491 $as_echo "$as_val"'` 17492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 17493$as_echo "$ac_res" >&6; } 17494 17495fi 17496as_val=`eval 'as_val=${'$as_ac_Header'} 17497 $as_echo "$as_val"'` 17498 if test "x$as_val" = x""yes; then 17499 cat >>confdefs.h <<_ACEOF 17500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17501_ACEOF 17502 17503fi 17504 17505done 17506 17507 17508if test "${WIN32}" != "yes"; then 17509 17510{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17511$as_echo_n "checking for dlopen in -ldl... " >&6; } 17512if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17513 $as_echo_n "(cached) " >&6 17514else 17515 ac_check_lib_save_LIBS=$LIBS 17516LIBS="-ldl $LIBS" 17517cat >conftest.$ac_ext <<_ACEOF 17518/* confdefs.h. */ 17519_ACEOF 17520cat confdefs.h >>conftest.$ac_ext 17521cat >>conftest.$ac_ext <<_ACEOF 17522/* end confdefs.h. */ 17523 17524/* Override any GCC internal prototype to avoid an error. 17525 Use char because int might match the return type of a GCC 17526 builtin and then its argument prototype would still apply. */ 17527#ifdef __cplusplus 17528extern "C" 17529#endif 17530char dlopen (); 17531int 17532main () 17533{ 17534return dlopen (); 17535 ; 17536 return 0; 17537} 17538_ACEOF 17539rm -f conftest.$ac_objext conftest$ac_exeext 17540if { (ac_try="$ac_link" 17541case "(($ac_try" in 17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17543 *) ac_try_echo=$ac_try;; 17544esac 17545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17546$as_echo "$ac_try_echo") >&5 17547 (eval "$ac_link") 2>conftest.er1 17548 ac_status=$? 17549 grep -v '^ *+' conftest.er1 >conftest.err 17550 rm -f conftest.er1 17551 cat conftest.err >&5 17552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17553 (exit $ac_status); } && { 17554 test -z "$ac_c_werror_flag" || 17555 test ! -s conftest.err 17556 } && test -s conftest$ac_exeext && { 17557 test "$cross_compiling" = yes || 17558 $as_test_x conftest$ac_exeext 17559 }; then 17560 ac_cv_lib_dl_dlopen=yes 17561else 17562 $as_echo "$as_me: failed program was:" >&5 17563sed 's/^/| /' conftest.$ac_ext >&5 17564 17565 ac_cv_lib_dl_dlopen=no 17566fi 17567 17568rm -rf conftest.dSYM 17569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17570 conftest$ac_exeext conftest.$ac_ext 17571LIBS=$ac_check_lib_save_LIBS 17572fi 17573{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17574$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17575if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 17576 cat >>confdefs.h <<_ACEOF 17577#define HAVE_LIBDL 1 17578_ACEOF 17579 17580 LIBS="-ldl $LIBS" 17581 17582fi 17583 17584 17585 17586pkg_failed=no 17587{ $as_echo "$as_me:$LINENO: checking for OPENSSL" >&5 17588$as_echo_n "checking for OPENSSL... " >&6; } 17589 17590if test -n "$OPENSSL_CFLAGS"; then 17591 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 17592 elif test -n "$PKG_CONFIG"; then 17593 if test -n "$PKG_CONFIG" && \ 17594 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\"") >&5 17595 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5 17596 ac_status=$? 17597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17598 (exit $ac_status); }; then 17599 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null` 17600else 17601 pkg_failed=yes 17602fi 17603 else 17604 pkg_failed=untried 17605fi 17606if test -n "$OPENSSL_LIBS"; then 17607 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 17608 elif test -n "$PKG_CONFIG"; then 17609 if test -n "$PKG_CONFIG" && \ 17610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\"") >&5 17611 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5 17612 ac_status=$? 17613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17614 (exit $ac_status); }; then 17615 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null` 17616else 17617 pkg_failed=yes 17618fi 17619 else 17620 pkg_failed=untried 17621fi 17622 17623 17624 17625if test $pkg_failed = yes; then 17626 17627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17628 _pkg_short_errors_supported=yes 17629else 17630 _pkg_short_errors_supported=no 17631fi 17632 if test $_pkg_short_errors_supported = yes; then 17633 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcrypto >= 0.9.7" 2>&1` 17634 else 17635 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcrypto >= 0.9.7" 2>&1` 17636 fi 17637 # Put the nasty error message in config.log where it belongs 17638 echo "$OPENSSL_PKG_ERRORS" >&5 17639 17640 { $as_echo "$as_me:$LINENO: result: no" >&5 17641$as_echo "no" >&6; } 17642 17643pkg_failed=no 17644{ $as_echo "$as_me:$LINENO: checking for OPENSSL" >&5 17645$as_echo_n "checking for OPENSSL... " >&6; } 17646 17647if test -n "$OPENSSL_CFLAGS"; then 17648 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 17649 elif test -n "$PKG_CONFIG"; then 17650 if test -n "$PKG_CONFIG" && \ 17651 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5 17652 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5 17653 ac_status=$? 17654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17655 (exit $ac_status); }; then 17656 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null` 17657else 17658 pkg_failed=yes 17659fi 17660 else 17661 pkg_failed=untried 17662fi 17663if test -n "$OPENSSL_LIBS"; then 17664 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 17665 elif test -n "$PKG_CONFIG"; then 17666 if test -n "$PKG_CONFIG" && \ 17667 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5 17668 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5 17669 ac_status=$? 17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17671 (exit $ac_status); }; then 17672 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null` 17673else 17674 pkg_failed=yes 17675fi 17676 else 17677 pkg_failed=untried 17678fi 17679 17680 17681 17682if test $pkg_failed = yes; then 17683 17684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17685 _pkg_short_errors_supported=yes 17686else 17687 _pkg_short_errors_supported=no 17688fi 17689 if test $_pkg_short_errors_supported = yes; then 17690 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl >= 0.9.7" 2>&1` 17691 else 17692 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl >= 0.9.7" 2>&1` 17693 fi 17694 # Put the nasty error message in config.log where it belongs 17695 echo "$OPENSSL_PKG_ERRORS" >&5 17696 17697 { $as_echo "$as_me:$LINENO: result: no" >&5 17698$as_echo "no" >&6; } 17699 { $as_echo "$as_me:$LINENO: checking for RSA_version in -lcrypto" >&5 17700$as_echo_n "checking for RSA_version in -lcrypto... " >&6; } 17701if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then 17702 $as_echo_n "(cached) " >&6 17703else 17704 ac_check_lib_save_LIBS=$LIBS 17705LIBS="-lcrypto $LIBS" 17706cat >conftest.$ac_ext <<_ACEOF 17707/* confdefs.h. */ 17708_ACEOF 17709cat confdefs.h >>conftest.$ac_ext 17710cat >>conftest.$ac_ext <<_ACEOF 17711/* end confdefs.h. */ 17712 17713/* Override any GCC internal prototype to avoid an error. 17714 Use char because int might match the return type of a GCC 17715 builtin and then its argument prototype would still apply. */ 17716#ifdef __cplusplus 17717extern "C" 17718#endif 17719char RSA_version (); 17720int 17721main () 17722{ 17723return RSA_version (); 17724 ; 17725 return 0; 17726} 17727_ACEOF 17728rm -f conftest.$ac_objext conftest$ac_exeext 17729if { (ac_try="$ac_link" 17730case "(($ac_try" in 17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17732 *) ac_try_echo=$ac_try;; 17733esac 17734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17735$as_echo "$ac_try_echo") >&5 17736 (eval "$ac_link") 2>conftest.er1 17737 ac_status=$? 17738 grep -v '^ *+' conftest.er1 >conftest.err 17739 rm -f conftest.er1 17740 cat conftest.err >&5 17741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17742 (exit $ac_status); } && { 17743 test -z "$ac_c_werror_flag" || 17744 test ! -s conftest.err 17745 } && test -s conftest$ac_exeext && { 17746 test "$cross_compiling" = yes || 17747 $as_test_x conftest$ac_exeext 17748 }; then 17749 ac_cv_lib_crypto_RSA_version=yes 17750else 17751 $as_echo "$as_me: failed program was:" >&5 17752sed 's/^/| /' conftest.$ac_ext >&5 17753 17754 ac_cv_lib_crypto_RSA_version=no 17755fi 17756 17757rm -rf conftest.dSYM 17758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17759 conftest$ac_exeext conftest.$ac_ext 17760LIBS=$ac_check_lib_save_LIBS 17761fi 17762{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_version" >&5 17763$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; } 17764if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then 17765 17766 have_openssl="yes" 17767 OPENSSL_LIBS="-lcrypto" 17768 17769else 17770 have_openssl="no" 17771 17772fi 17773 17774 17775elif test $pkg_failed = untried; then 17776 { $as_echo "$as_me:$LINENO: checking for RSA_version in -lcrypto" >&5 17777$as_echo_n "checking for RSA_version in -lcrypto... " >&6; } 17778if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then 17779 $as_echo_n "(cached) " >&6 17780else 17781 ac_check_lib_save_LIBS=$LIBS 17782LIBS="-lcrypto $LIBS" 17783cat >conftest.$ac_ext <<_ACEOF 17784/* confdefs.h. */ 17785_ACEOF 17786cat confdefs.h >>conftest.$ac_ext 17787cat >>conftest.$ac_ext <<_ACEOF 17788/* end confdefs.h. */ 17789 17790/* Override any GCC internal prototype to avoid an error. 17791 Use char because int might match the return type of a GCC 17792 builtin and then its argument prototype would still apply. */ 17793#ifdef __cplusplus 17794extern "C" 17795#endif 17796char RSA_version (); 17797int 17798main () 17799{ 17800return RSA_version (); 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805rm -f conftest.$ac_objext conftest$ac_exeext 17806if { (ac_try="$ac_link" 17807case "(($ac_try" in 17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17809 *) ac_try_echo=$ac_try;; 17810esac 17811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17812$as_echo "$ac_try_echo") >&5 17813 (eval "$ac_link") 2>conftest.er1 17814 ac_status=$? 17815 grep -v '^ *+' conftest.er1 >conftest.err 17816 rm -f conftest.er1 17817 cat conftest.err >&5 17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17819 (exit $ac_status); } && { 17820 test -z "$ac_c_werror_flag" || 17821 test ! -s conftest.err 17822 } && test -s conftest$ac_exeext && { 17823 test "$cross_compiling" = yes || 17824 $as_test_x conftest$ac_exeext 17825 }; then 17826 ac_cv_lib_crypto_RSA_version=yes 17827else 17828 $as_echo "$as_me: failed program was:" >&5 17829sed 's/^/| /' conftest.$ac_ext >&5 17830 17831 ac_cv_lib_crypto_RSA_version=no 17832fi 17833 17834rm -rf conftest.dSYM 17835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17836 conftest$ac_exeext conftest.$ac_ext 17837LIBS=$ac_check_lib_save_LIBS 17838fi 17839{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_version" >&5 17840$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; } 17841if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then 17842 17843 have_openssl="yes" 17844 OPENSSL_LIBS="-lcrypto" 17845 17846else 17847 have_openssl="no" 17848 17849fi 17850 17851 17852else 17853 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 17854 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 17855 { $as_echo "$as_me:$LINENO: result: yes" >&5 17856$as_echo "yes" >&6; } 17857 have_openssl="yes" 17858fi 17859 17860elif test $pkg_failed = untried; then 17861 17862pkg_failed=no 17863{ $as_echo "$as_me:$LINENO: checking for OPENSSL" >&5 17864$as_echo_n "checking for OPENSSL... " >&6; } 17865 17866if test -n "$OPENSSL_CFLAGS"; then 17867 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 17868 elif test -n "$PKG_CONFIG"; then 17869 if test -n "$PKG_CONFIG" && \ 17870 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5 17871 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5 17872 ac_status=$? 17873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17874 (exit $ac_status); }; then 17875 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null` 17876else 17877 pkg_failed=yes 17878fi 17879 else 17880 pkg_failed=untried 17881fi 17882if test -n "$OPENSSL_LIBS"; then 17883 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 17884 elif test -n "$PKG_CONFIG"; then 17885 if test -n "$PKG_CONFIG" && \ 17886 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5 17887 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5 17888 ac_status=$? 17889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17890 (exit $ac_status); }; then 17891 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null` 17892else 17893 pkg_failed=yes 17894fi 17895 else 17896 pkg_failed=untried 17897fi 17898 17899 17900 17901if test $pkg_failed = yes; then 17902 17903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17904 _pkg_short_errors_supported=yes 17905else 17906 _pkg_short_errors_supported=no 17907fi 17908 if test $_pkg_short_errors_supported = yes; then 17909 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl >= 0.9.7" 2>&1` 17910 else 17911 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl >= 0.9.7" 2>&1` 17912 fi 17913 # Put the nasty error message in config.log where it belongs 17914 echo "$OPENSSL_PKG_ERRORS" >&5 17915 17916 { $as_echo "$as_me:$LINENO: result: no" >&5 17917$as_echo "no" >&6; } 17918 { $as_echo "$as_me:$LINENO: checking for RSA_version in -lcrypto" >&5 17919$as_echo_n "checking for RSA_version in -lcrypto... " >&6; } 17920if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then 17921 $as_echo_n "(cached) " >&6 17922else 17923 ac_check_lib_save_LIBS=$LIBS 17924LIBS="-lcrypto $LIBS" 17925cat >conftest.$ac_ext <<_ACEOF 17926/* confdefs.h. */ 17927_ACEOF 17928cat confdefs.h >>conftest.$ac_ext 17929cat >>conftest.$ac_ext <<_ACEOF 17930/* end confdefs.h. */ 17931 17932/* Override any GCC internal prototype to avoid an error. 17933 Use char because int might match the return type of a GCC 17934 builtin and then its argument prototype would still apply. */ 17935#ifdef __cplusplus 17936extern "C" 17937#endif 17938char RSA_version (); 17939int 17940main () 17941{ 17942return RSA_version (); 17943 ; 17944 return 0; 17945} 17946_ACEOF 17947rm -f conftest.$ac_objext conftest$ac_exeext 17948if { (ac_try="$ac_link" 17949case "(($ac_try" in 17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17951 *) ac_try_echo=$ac_try;; 17952esac 17953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17954$as_echo "$ac_try_echo") >&5 17955 (eval "$ac_link") 2>conftest.er1 17956 ac_status=$? 17957 grep -v '^ *+' conftest.er1 >conftest.err 17958 rm -f conftest.er1 17959 cat conftest.err >&5 17960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17961 (exit $ac_status); } && { 17962 test -z "$ac_c_werror_flag" || 17963 test ! -s conftest.err 17964 } && test -s conftest$ac_exeext && { 17965 test "$cross_compiling" = yes || 17966 $as_test_x conftest$ac_exeext 17967 }; then 17968 ac_cv_lib_crypto_RSA_version=yes 17969else 17970 $as_echo "$as_me: failed program was:" >&5 17971sed 's/^/| /' conftest.$ac_ext >&5 17972 17973 ac_cv_lib_crypto_RSA_version=no 17974fi 17975 17976rm -rf conftest.dSYM 17977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17978 conftest$ac_exeext conftest.$ac_ext 17979LIBS=$ac_check_lib_save_LIBS 17980fi 17981{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_version" >&5 17982$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; } 17983if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then 17984 17985 have_openssl="yes" 17986 OPENSSL_LIBS="-lcrypto" 17987 17988else 17989 have_openssl="no" 17990 17991fi 17992 17993 17994elif test $pkg_failed = untried; then 17995 { $as_echo "$as_me:$LINENO: checking for RSA_version in -lcrypto" >&5 17996$as_echo_n "checking for RSA_version in -lcrypto... " >&6; } 17997if test "${ac_cv_lib_crypto_RSA_version+set}" = set; then 17998 $as_echo_n "(cached) " >&6 17999else 18000 ac_check_lib_save_LIBS=$LIBS 18001LIBS="-lcrypto $LIBS" 18002cat >conftest.$ac_ext <<_ACEOF 18003/* confdefs.h. */ 18004_ACEOF 18005cat confdefs.h >>conftest.$ac_ext 18006cat >>conftest.$ac_ext <<_ACEOF 18007/* end confdefs.h. */ 18008 18009/* Override any GCC internal prototype to avoid an error. 18010 Use char because int might match the return type of a GCC 18011 builtin and then its argument prototype would still apply. */ 18012#ifdef __cplusplus 18013extern "C" 18014#endif 18015char RSA_version (); 18016int 18017main () 18018{ 18019return RSA_version (); 18020 ; 18021 return 0; 18022} 18023_ACEOF 18024rm -f conftest.$ac_objext conftest$ac_exeext 18025if { (ac_try="$ac_link" 18026case "(($ac_try" in 18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18028 *) ac_try_echo=$ac_try;; 18029esac 18030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18031$as_echo "$ac_try_echo") >&5 18032 (eval "$ac_link") 2>conftest.er1 18033 ac_status=$? 18034 grep -v '^ *+' conftest.er1 >conftest.err 18035 rm -f conftest.er1 18036 cat conftest.err >&5 18037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18038 (exit $ac_status); } && { 18039 test -z "$ac_c_werror_flag" || 18040 test ! -s conftest.err 18041 } && test -s conftest$ac_exeext && { 18042 test "$cross_compiling" = yes || 18043 $as_test_x conftest$ac_exeext 18044 }; then 18045 ac_cv_lib_crypto_RSA_version=yes 18046else 18047 $as_echo "$as_me: failed program was:" >&5 18048sed 's/^/| /' conftest.$ac_ext >&5 18049 18050 ac_cv_lib_crypto_RSA_version=no 18051fi 18052 18053rm -rf conftest.dSYM 18054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18055 conftest$ac_exeext conftest.$ac_ext 18056LIBS=$ac_check_lib_save_LIBS 18057fi 18058{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_version" >&5 18059$as_echo "$ac_cv_lib_crypto_RSA_version" >&6; } 18060if test "x$ac_cv_lib_crypto_RSA_version" = x""yes; then 18061 18062 have_openssl="yes" 18063 OPENSSL_LIBS="-lcrypto" 18064 18065else 18066 have_openssl="no" 18067 18068fi 18069 18070 18071else 18072 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 18073 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 18074 { $as_echo "$as_me:$LINENO: result: yes" >&5 18075$as_echo "yes" >&6; } 18076 have_openssl="yes" 18077fi 18078 18079else 18080 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 18081 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 18082 { $as_echo "$as_me:$LINENO: result: yes" >&5 18083$as_echo "yes" >&6; } 18084 have_openssl="yes" 18085fi 18086 CXXFLAGS="${CXXFLAGS} ${OPENSSL_CFLAGS}" 18087 LIBS="${LIBS} ${OPENSSL_LIBS}" 18088fi 18089 18090if test "${enable_pedantic}" = "yes"; then 18091 CXXFLAGS="${CXXFLAGS} -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE" 18092 CXXFLAGS="${CXXFLAGS} -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function" 18093fi 18094 18095if test "${WIN32}" = "yes"; then 18096 LIBS="${LIBS} -lcrypt32" 18097fi 18098 18099 18100 18101 18102 18103 if test "${WIN32}" = "yes"; then 18104 WIN32_TRUE= 18105 WIN32_FALSE='#' 18106else 18107 WIN32_TRUE='#' 18108 WIN32_FALSE= 18109fi 18110 18111 if test "${CYGWIN}" = "yes"; then 18112 CYGWIN_TRUE= 18113 CYGWIN_FALSE='#' 18114else 18115 CYGWIN_TRUE='#' 18116 CYGWIN_FALSE= 18117fi 18118 18119ac_config_files="$ac_config_files Makefile versioninfo.rc" 18120 18121cat >confcache <<\_ACEOF 18122# This file is a shell script that caches the results of configure 18123# tests run on this system so they can be shared between configure 18124# scripts and configure runs, see configure's option --config-cache. 18125# It is not useful on other systems. If it contains results you don't 18126# want to keep, you may remove or edit it. 18127# 18128# config.status only pays attention to the cache file if you give it 18129# the --recheck option to rerun configure. 18130# 18131# `ac_cv_env_foo' variables (set or unset) will be overridden when 18132# loading this file, other *unset* `ac_cv_foo' will be assigned the 18133# following values. 18134 18135_ACEOF 18136 18137# The following way of writing the cache mishandles newlines in values, 18138# but we know of no workaround that is simple, portable, and efficient. 18139# So, we kill variables containing newlines. 18140# Ultrix sh set writes to stderr and can't be redirected directly, 18141# and sets the high bit in the cache file unless we assign to the vars. 18142( 18143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18144 eval ac_val=\$$ac_var 18145 case $ac_val in #( 18146 *${as_nl}*) 18147 case $ac_var in #( 18148 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 18149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18150 esac 18151 case $ac_var in #( 18152 _ | IFS | as_nl) ;; #( 18153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18154 *) $as_unset $ac_var ;; 18155 esac ;; 18156 esac 18157 done 18158 18159 (set) 2>&1 | 18160 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18161 *${as_nl}ac_space=\ *) 18162 # `set' does not quote correctly, so add quotes (double-quote 18163 # substitution turns \\\\ into \\, and sed turns \\ into \). 18164 sed -n \ 18165 "s/'/'\\\\''/g; 18166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18167 ;; #( 18168 *) 18169 # `set' quotes correctly as required by POSIX, so do not add quotes. 18170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18171 ;; 18172 esac | 18173 sort 18174) | 18175 sed ' 18176 /^ac_cv_env_/b end 18177 t clear 18178 :clear 18179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18180 t end 18181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18182 :end' >>confcache 18183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18184 if test -w "$cache_file"; then 18185 test "x$cache_file" != "x/dev/null" && 18186 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 18187$as_echo "$as_me: updating cache $cache_file" >&6;} 18188 cat confcache >$cache_file 18189 else 18190 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 18191$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18192 fi 18193fi 18194rm -f confcache 18195 18196test "x$prefix" = xNONE && prefix=$ac_default_prefix 18197# Let make expand exec_prefix. 18198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18199 18200DEFS=-DHAVE_CONFIG_H 18201 18202ac_libobjs= 18203ac_ltlibobjs= 18204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18205 # 1. Remove the extension, and $U if already installed. 18206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18209 # will be set to the directory where LIBOBJS objects are built. 18210 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18211 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 18212done 18213LIBOBJS=$ac_libobjs 18214 18215LTLIBOBJS=$ac_ltlibobjs 18216 18217 18218if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18219 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 18220Usually this means the macro was only invoked conditionally." >&5 18221$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 18222Usually this means the macro was only invoked conditionally." >&2;} 18223 { (exit 1); exit 1; }; } 18224fi 18225if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18226 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 18227Usually this means the macro was only invoked conditionally." >&5 18228$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 18229Usually this means the macro was only invoked conditionally." >&2;} 18230 { (exit 1); exit 1; }; } 18231fi 18232if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18233 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 18234Usually this means the macro was only invoked conditionally." >&5 18235$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 18236Usually this means the macro was only invoked conditionally." >&2;} 18237 { (exit 1); exit 1; }; } 18238fi 18239if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18240 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 18241Usually this means the macro was only invoked conditionally." >&5 18242$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 18243Usually this means the macro was only invoked conditionally." >&2;} 18244 { (exit 1); exit 1; }; } 18245fi 18246if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 18247 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined. 18248Usually this means the macro was only invoked conditionally." >&5 18249$as_echo "$as_me: error: conditional \"WIN32\" was never defined. 18250Usually this means the macro was only invoked conditionally." >&2;} 18251 { (exit 1); exit 1; }; } 18252fi 18253if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 18254 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN\" was never defined. 18255Usually this means the macro was only invoked conditionally." >&5 18256$as_echo "$as_me: error: conditional \"CYGWIN\" was never defined. 18257Usually this means the macro was only invoked conditionally." >&2;} 18258 { (exit 1); exit 1; }; } 18259fi 18260 18261: ${CONFIG_STATUS=./config.status} 18262ac_write_fail=0 18263ac_clean_files_save=$ac_clean_files 18264ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18265{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18266$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18267cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18268#! $SHELL 18269# Generated by $as_me. 18270# Run this file to recreate the current configuration. 18271# Compiler output produced by configure, useful for debugging 18272# configure, is in config.log if it exists. 18273 18274debug=false 18275ac_cs_recheck=false 18276ac_cs_silent=false 18277SHELL=\${CONFIG_SHELL-$SHELL} 18278_ACEOF 18279 18280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18281## --------------------- ## 18282## M4sh Initialization. ## 18283## --------------------- ## 18284 18285# Be more Bourne compatible 18286DUALCASE=1; export DUALCASE # for MKS sh 18287if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18288 emulate sh 18289 NULLCMD=: 18290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18291 # is contrary to our usage. Disable this feature. 18292 alias -g '${1+"$@"}'='"$@"' 18293 setopt NO_GLOB_SUBST 18294else 18295 case `(set -o) 2>/dev/null` in 18296 *posix*) set -o posix ;; 18297esac 18298 18299fi 18300 18301 18302 18303 18304# PATH needs CR 18305# Avoid depending upon Character Ranges. 18306as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18308as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18309as_cr_digits='0123456789' 18310as_cr_alnum=$as_cr_Letters$as_cr_digits 18311 18312as_nl=' 18313' 18314export as_nl 18315# Printing a long string crashes Solaris 7 /usr/bin/printf. 18316as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18317as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18318as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18319if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18320 as_echo='printf %s\n' 18321 as_echo_n='printf %s' 18322else 18323 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18324 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18325 as_echo_n='/usr/ucb/echo -n' 18326 else 18327 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18328 as_echo_n_body='eval 18329 arg=$1; 18330 case $arg in 18331 *"$as_nl"*) 18332 expr "X$arg" : "X\\(.*\\)$as_nl"; 18333 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18334 esac; 18335 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18336 ' 18337 export as_echo_n_body 18338 as_echo_n='sh -c $as_echo_n_body as_echo' 18339 fi 18340 export as_echo_body 18341 as_echo='sh -c $as_echo_body as_echo' 18342fi 18343 18344# The user is always right. 18345if test "${PATH_SEPARATOR+set}" != set; then 18346 PATH_SEPARATOR=: 18347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18348 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18349 PATH_SEPARATOR=';' 18350 } 18351fi 18352 18353# Support unset when possible. 18354if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 18355 as_unset=unset 18356else 18357 as_unset=false 18358fi 18359 18360 18361# IFS 18362# We need space, tab and new line, in precisely that order. Quoting is 18363# there to prevent editors from complaining about space-tab. 18364# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18365# splitting by setting IFS to empty value.) 18366IFS=" "" $as_nl" 18367 18368# Find who we are. Look in the path if we contain no directory separator. 18369case $0 in 18370 *[\\/]* ) as_myself=$0 ;; 18371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18372for as_dir in $PATH 18373do 18374 IFS=$as_save_IFS 18375 test -z "$as_dir" && as_dir=. 18376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18377done 18378IFS=$as_save_IFS 18379 18380 ;; 18381esac 18382# We did not find ourselves, most probably we were run as `sh COMMAND' 18383# in which case we are not to be found in the path. 18384if test "x$as_myself" = x; then 18385 as_myself=$0 18386fi 18387if test ! -f "$as_myself"; then 18388 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18389 { (exit 1); exit 1; } 18390fi 18391 18392# Work around bugs in pre-3.0 UWIN ksh. 18393for as_var in ENV MAIL MAILPATH 18394do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18395done 18396PS1='$ ' 18397PS2='> ' 18398PS4='+ ' 18399 18400# NLS nuisances. 18401LC_ALL=C 18402export LC_ALL 18403LANGUAGE=C 18404export LANGUAGE 18405 18406# Required to use basename. 18407if expr a : '\(a\)' >/dev/null 2>&1 && 18408 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18409 as_expr=expr 18410else 18411 as_expr=false 18412fi 18413 18414if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18415 as_basename=basename 18416else 18417 as_basename=false 18418fi 18419 18420 18421# Name of the executable. 18422as_me=`$as_basename -- "$0" || 18423$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18424 X"$0" : 'X\(//\)$' \| \ 18425 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18426$as_echo X/"$0" | 18427 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18428 s//\1/ 18429 q 18430 } 18431 /^X\/\(\/\/\)$/{ 18432 s//\1/ 18433 q 18434 } 18435 /^X\/\(\/\).*/{ 18436 s//\1/ 18437 q 18438 } 18439 s/.*/./; q'` 18440 18441# CDPATH. 18442$as_unset CDPATH 18443 18444 18445 18446 as_lineno_1=$LINENO 18447 as_lineno_2=$LINENO 18448 test "x$as_lineno_1" != "x$as_lineno_2" && 18449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 18450 18451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18452 # uniformly replaced by the line number. The first 'sed' inserts a 18453 # line-number line after each line using $LINENO; the second 'sed' 18454 # does the real work. The second script uses 'N' to pair each 18455 # line-number line with the line containing $LINENO, and appends 18456 # trailing '-' during substitution so that $LINENO is not a special 18457 # case at line end. 18458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18459 # scripts with optimization help from Paolo Bonzini. Blame Lee 18460 # E. McMahon (1931-1989) for sed's syntax. :-) 18461 sed -n ' 18462 p 18463 /[$]LINENO/= 18464 ' <$as_myself | 18465 sed ' 18466 s/[$]LINENO.*/&-/ 18467 t lineno 18468 b 18469 :lineno 18470 N 18471 :loop 18472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 18473 t loop 18474 s/-\n.*// 18475 ' >$as_me.lineno && 18476 chmod +x "$as_me.lineno" || 18477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 18478 { (exit 1); exit 1; }; } 18479 18480 # Don't try to exec as it changes $[0], causing all sort of problems 18481 # (the dirname of $[0] is not the place where we might find the 18482 # original and so on. Autoconf is especially sensitive to this). 18483 . "./$as_me.lineno" 18484 # Exit status is that of the last command. 18485 exit 18486} 18487 18488 18489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18490 as_dirname=dirname 18491else 18492 as_dirname=false 18493fi 18494 18495ECHO_C= ECHO_N= ECHO_T= 18496case `echo -n x` in 18497-n*) 18498 case `echo 'x\c'` in 18499 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18500 *) ECHO_C='\c';; 18501 esac;; 18502*) 18503 ECHO_N='-n';; 18504esac 18505if expr a : '\(a\)' >/dev/null 2>&1 && 18506 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18507 as_expr=expr 18508else 18509 as_expr=false 18510fi 18511 18512rm -f conf$$ conf$$.exe conf$$.file 18513if test -d conf$$.dir; then 18514 rm -f conf$$.dir/conf$$.file 18515else 18516 rm -f conf$$.dir 18517 mkdir conf$$.dir 2>/dev/null 18518fi 18519if (echo >conf$$.file) 2>/dev/null; then 18520 if ln -s conf$$.file conf$$ 2>/dev/null; then 18521 as_ln_s='ln -s' 18522 # ... but there are two gotchas: 18523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18525 # In both cases, we have to default to `cp -p'. 18526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18527 as_ln_s='cp -p' 18528 elif ln conf$$.file conf$$ 2>/dev/null; then 18529 as_ln_s=ln 18530 else 18531 as_ln_s='cp -p' 18532 fi 18533else 18534 as_ln_s='cp -p' 18535fi 18536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18537rmdir conf$$.dir 2>/dev/null 18538 18539if mkdir -p . 2>/dev/null; then 18540 as_mkdir_p=: 18541else 18542 test -d ./-p && rmdir ./-p 18543 as_mkdir_p=false 18544fi 18545 18546if test -x / >/dev/null 2>&1; then 18547 as_test_x='test -x' 18548else 18549 if ls -dL / >/dev/null 2>&1; then 18550 as_ls_L_option=L 18551 else 18552 as_ls_L_option= 18553 fi 18554 as_test_x=' 18555 eval sh -c '\'' 18556 if test -d "$1"; then 18557 test -d "$1/."; 18558 else 18559 case $1 in 18560 -*)set "./$1";; 18561 esac; 18562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 18563 ???[sx]*):;;*)false;;esac;fi 18564 '\'' sh 18565 ' 18566fi 18567as_executable_p=$as_test_x 18568 18569# Sed expression to map a string onto a valid CPP name. 18570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18571 18572# Sed expression to map a string onto a valid variable name. 18573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18574 18575 18576exec 6>&1 18577 18578# Save the log message, to keep $[0] and so on meaningful, and to 18579# report actual input values of CONFIG_FILES etc. instead of their 18580# values after options handling. 18581ac_log=" 18582This file was extended by pkcs11-dump $as_me 0.3.4, which was 18583generated by GNU Autoconf 2.63. Invocation command line was 18584 18585 CONFIG_FILES = $CONFIG_FILES 18586 CONFIG_HEADERS = $CONFIG_HEADERS 18587 CONFIG_LINKS = $CONFIG_LINKS 18588 CONFIG_COMMANDS = $CONFIG_COMMANDS 18589 $ $0 $@ 18590 18591on `(hostname || uname -n) 2>/dev/null | sed 1q` 18592" 18593 18594_ACEOF 18595 18596case $ac_config_files in *" 18597"*) set x $ac_config_files; shift; ac_config_files=$*;; 18598esac 18599 18600case $ac_config_headers in *" 18601"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18602esac 18603 18604 18605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18606# Files that config.status was made for. 18607config_files="$ac_config_files" 18608config_headers="$ac_config_headers" 18609config_commands="$ac_config_commands" 18610 18611_ACEOF 18612 18613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18614ac_cs_usage="\ 18615\`$as_me' instantiates files from templates according to the 18616current configuration. 18617 18618Usage: $0 [OPTION]... [FILE]... 18619 18620 -h, --help print this help, then exit 18621 -V, --version print version number and configuration settings, then exit 18622 -q, --quiet, --silent 18623 do not print progress messages 18624 -d, --debug don't remove temporary files 18625 --recheck update $as_me by reconfiguring in the same conditions 18626 --file=FILE[:TEMPLATE] 18627 instantiate the configuration file FILE 18628 --header=FILE[:TEMPLATE] 18629 instantiate the configuration header FILE 18630 18631Configuration files: 18632$config_files 18633 18634Configuration headers: 18635$config_headers 18636 18637Configuration commands: 18638$config_commands 18639 18640Report bugs to <bug-autoconf@gnu.org>." 18641 18642_ACEOF 18643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18644ac_cs_version="\\ 18645pkcs11-dump config.status 0.3.4 18646configured by $0, generated by GNU Autoconf 2.63, 18647 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 18648 18649Copyright (C) 2008 Free Software Foundation, Inc. 18650This config.status script is free software; the Free Software Foundation 18651gives unlimited permission to copy, distribute and modify it." 18652 18653ac_pwd='$ac_pwd' 18654srcdir='$srcdir' 18655INSTALL='$INSTALL' 18656MKDIR_P='$MKDIR_P' 18657AWK='$AWK' 18658test -n "\$AWK" || AWK=awk 18659_ACEOF 18660 18661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18662# The default lists apply if the user does not specify any file. 18663ac_need_defaults=: 18664while test $# != 0 18665do 18666 case $1 in 18667 --*=*) 18668 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18670 ac_shift=: 18671 ;; 18672 *) 18673 ac_option=$1 18674 ac_optarg=$2 18675 ac_shift=shift 18676 ;; 18677 esac 18678 18679 case $ac_option in 18680 # Handling of the options. 18681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18682 ac_cs_recheck=: ;; 18683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18684 $as_echo "$ac_cs_version"; exit ;; 18685 --debug | --debu | --deb | --de | --d | -d ) 18686 debug=: ;; 18687 --file | --fil | --fi | --f ) 18688 $ac_shift 18689 case $ac_optarg in 18690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18691 esac 18692 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 18693 ac_need_defaults=false;; 18694 --header | --heade | --head | --hea ) 18695 $ac_shift 18696 case $ac_optarg in 18697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18698 esac 18699 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 18700 ac_need_defaults=false;; 18701 --he | --h) 18702 # Conflict between --help and --header 18703 { $as_echo "$as_me: error: ambiguous option: $1 18704Try \`$0 --help' for more information." >&2 18705 { (exit 1); exit 1; }; };; 18706 --help | --hel | -h ) 18707 $as_echo "$ac_cs_usage"; exit ;; 18708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18709 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18710 ac_cs_silent=: ;; 18711 18712 # This is an error. 18713 -*) { $as_echo "$as_me: error: unrecognized option: $1 18714Try \`$0 --help' for more information." >&2 18715 { (exit 1); exit 1; }; } ;; 18716 18717 *) ac_config_targets="$ac_config_targets $1" 18718 ac_need_defaults=false ;; 18719 18720 esac 18721 shift 18722done 18723 18724ac_configure_extra_args= 18725 18726if $ac_cs_silent; then 18727 exec 6>/dev/null 18728 ac_configure_extra_args="$ac_configure_extra_args --silent" 18729fi 18730 18731_ACEOF 18732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18733if \$ac_cs_recheck; then 18734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18735 shift 18736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18737 CONFIG_SHELL='$SHELL' 18738 export CONFIG_SHELL 18739 exec "\$@" 18740fi 18741 18742_ACEOF 18743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18744exec 5>>config.log 18745{ 18746 echo 18747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18748## Running $as_me. ## 18749_ASBOX 18750 $as_echo "$ac_log" 18751} >&5 18752 18753_ACEOF 18754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18755# 18756# INIT-COMMANDS 18757# 18758AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18759 18760 18761# The HP-UX ksh and POSIX shell print the target directory to stdout 18762# if CDPATH is set. 18763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18764 18765sed_quote_subst='$sed_quote_subst' 18766double_quote_subst='$double_quote_subst' 18767delay_variable_subst='$delay_variable_subst' 18768macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 18769macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 18770enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 18771enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 18772pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 18773enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 18774host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 18775host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 18776host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 18777build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 18778build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 18779build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 18780SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 18781Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 18782GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 18783EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 18784FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 18785LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 18786NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 18787LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 18788max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 18789ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 18790exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 18791lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 18792lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 18793lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 18794reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 18795reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18796OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 18797deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 18798file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 18799AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 18800AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 18801STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 18802RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 18803old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18804old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18805old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18806CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 18807CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 18808compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 18809GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 18810lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 18811lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 18812lt_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"`' 18813lt_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"`' 18814objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 18815SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 18816ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 18817MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 18818lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 18819lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 18820lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 18821lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 18822lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 18823need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 18824DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 18825NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 18826LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 18827OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 18828OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 18829libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 18830shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18831extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18832archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 18833enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 18834export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18835whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18836compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 18837old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18838old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18839archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18840archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18841module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18842module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18843with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 18844allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18845no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18846hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18847hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 18848hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 18849hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 18850hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 18851hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 18852hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18853hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 18854inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 18855link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 18856fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 18857always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 18858export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18859exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18860include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18861prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18862file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 18863variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 18864need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 18865need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 18866version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 18867runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18868shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18869shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 18870libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18871library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 18872soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18873postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18874postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18875finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18876finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 18877hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 18878sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18879sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18880hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 18881enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 18882enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 18883enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 18884old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 18885striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 18886compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 18887predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18888postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18889predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 18890postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 18891compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 18892LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18893old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18894compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18895GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18896lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18897lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18898lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18899lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18900lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18901archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18902enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18903export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18904whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18905compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18906old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18907old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18908archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18909archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18910module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18911module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18912with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18913allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18914no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18915hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18916hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18917hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18918hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18919hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18920hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18921hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18922hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18923inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18924link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18925fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18926always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18927export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18928exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18929include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18930prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18931file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18932hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18933compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18934predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18935postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18936predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18937postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18938compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18939 18940LTCC='$LTCC' 18941LTCFLAGS='$LTCFLAGS' 18942compiler='$compiler_DEFAULT' 18943 18944# Quote evaled strings. 18945for var in SED \ 18946GREP \ 18947EGREP \ 18948FGREP \ 18949LD \ 18950NM \ 18951LN_S \ 18952lt_SP2NL \ 18953lt_NL2SP \ 18954reload_flag \ 18955OBJDUMP \ 18956deplibs_check_method \ 18957file_magic_cmd \ 18958AR \ 18959AR_FLAGS \ 18960STRIP \ 18961RANLIB \ 18962CC \ 18963CFLAGS \ 18964compiler \ 18965lt_cv_sys_global_symbol_pipe \ 18966lt_cv_sys_global_symbol_to_cdecl \ 18967lt_cv_sys_global_symbol_to_c_name_address \ 18968lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18969SHELL \ 18970ECHO \ 18971lt_prog_compiler_no_builtin_flag \ 18972lt_prog_compiler_wl \ 18973lt_prog_compiler_pic \ 18974lt_prog_compiler_static \ 18975lt_cv_prog_compiler_c_o \ 18976need_locks \ 18977DSYMUTIL \ 18978NMEDIT \ 18979LIPO \ 18980OTOOL \ 18981OTOOL64 \ 18982shrext_cmds \ 18983export_dynamic_flag_spec \ 18984whole_archive_flag_spec \ 18985compiler_needs_object \ 18986with_gnu_ld \ 18987allow_undefined_flag \ 18988no_undefined_flag \ 18989hardcode_libdir_flag_spec \ 18990hardcode_libdir_flag_spec_ld \ 18991hardcode_libdir_separator \ 18992fix_srcfile_path \ 18993exclude_expsyms \ 18994include_expsyms \ 18995file_list_spec \ 18996variables_saved_for_relink \ 18997libname_spec \ 18998library_names_spec \ 18999soname_spec \ 19000finish_eval \ 19001old_striplib \ 19002striplib \ 19003compiler_lib_search_dirs \ 19004predep_objects \ 19005postdep_objects \ 19006predeps \ 19007postdeps \ 19008compiler_lib_search_path \ 19009LD_CXX \ 19010compiler_CXX \ 19011lt_prog_compiler_no_builtin_flag_CXX \ 19012lt_prog_compiler_wl_CXX \ 19013lt_prog_compiler_pic_CXX \ 19014lt_prog_compiler_static_CXX \ 19015lt_cv_prog_compiler_c_o_CXX \ 19016export_dynamic_flag_spec_CXX \ 19017whole_archive_flag_spec_CXX \ 19018compiler_needs_object_CXX \ 19019with_gnu_ld_CXX \ 19020allow_undefined_flag_CXX \ 19021no_undefined_flag_CXX \ 19022hardcode_libdir_flag_spec_CXX \ 19023hardcode_libdir_flag_spec_ld_CXX \ 19024hardcode_libdir_separator_CXX \ 19025fix_srcfile_path_CXX \ 19026exclude_expsyms_CXX \ 19027include_expsyms_CXX \ 19028file_list_spec_CXX \ 19029compiler_lib_search_dirs_CXX \ 19030predep_objects_CXX \ 19031postdep_objects_CXX \ 19032predeps_CXX \ 19033postdeps_CXX \ 19034compiler_lib_search_path_CXX; do 19035 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 19036 *[\\\\\\\`\\"\\\$]*) 19037 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19038 ;; 19039 *) 19040 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19041 ;; 19042 esac 19043done 19044 19045# Double-quote double-evaled strings. 19046for var in reload_cmds \ 19047old_postinstall_cmds \ 19048old_postuninstall_cmds \ 19049old_archive_cmds \ 19050extract_expsyms_cmds \ 19051old_archive_from_new_cmds \ 19052old_archive_from_expsyms_cmds \ 19053archive_cmds \ 19054archive_expsym_cmds \ 19055module_cmds \ 19056module_expsym_cmds \ 19057export_symbols_cmds \ 19058prelink_cmds \ 19059postinstall_cmds \ 19060postuninstall_cmds \ 19061finish_cmds \ 19062sys_lib_search_path_spec \ 19063sys_lib_dlsearch_path_spec \ 19064old_archive_cmds_CXX \ 19065old_archive_from_new_cmds_CXX \ 19066old_archive_from_expsyms_cmds_CXX \ 19067archive_cmds_CXX \ 19068archive_expsym_cmds_CXX \ 19069module_cmds_CXX \ 19070module_expsym_cmds_CXX \ 19071export_symbols_cmds_CXX \ 19072prelink_cmds_CXX; do 19073 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 19074 *[\\\\\\\`\\"\\\$]*) 19075 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19076 ;; 19077 *) 19078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19079 ;; 19080 esac 19081done 19082 19083# Fix-up fallback echo if it was mangled by the above quoting rules. 19084case \$lt_ECHO in 19085*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 19086 ;; 19087esac 19088 19089ac_aux_dir='$ac_aux_dir' 19090xsi_shell='$xsi_shell' 19091lt_shell_append='$lt_shell_append' 19092 19093# See if we are running on zsh, and set the options which allow our 19094# commands through without removal of \ escapes INIT. 19095if test -n "\${ZSH_VERSION+set}" ; then 19096 setopt NO_GLOB_SUBST 19097fi 19098 19099 19100 PACKAGE='$PACKAGE' 19101 VERSION='$VERSION' 19102 TIMESTAMP='$TIMESTAMP' 19103 RM='$RM' 19104 ofile='$ofile' 19105 19106 19107 19108 19109 19110 19111_ACEOF 19112 19113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19114 19115# Handling of arguments. 19116for ac_config_target in $ac_config_targets 19117do 19118 case $ac_config_target in 19119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19123 "versioninfo.rc") CONFIG_FILES="$CONFIG_FILES versioninfo.rc" ;; 19124 19125 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19126$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19127 { (exit 1); exit 1; }; };; 19128 esac 19129done 19130 19131 19132# If the user did not use the arguments to specify the items to instantiate, 19133# then the envvar interface is used. Set only those that are not. 19134# We use the long form for the default assignment because of an extremely 19135# bizarre bug on SunOS 4.1.3. 19136if $ac_need_defaults; then 19137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19140fi 19141 19142# Have a temporary directory for convenience. Make it in the build tree 19143# simply because there is no reason against having it here, and in addition, 19144# creating and moving files from /tmp can sometimes cause problems. 19145# Hook for its removal unless debugging. 19146# Note that there is a small window in which the directory will not be cleaned: 19147# after its creation but before its name has been assigned to `$tmp'. 19148$debug || 19149{ 19150 tmp= 19151 trap 'exit_status=$? 19152 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 19153' 0 19154 trap '{ (exit 1); exit 1; }' 1 2 13 15 19155} 19156# Create a (secure) tmp directory for tmp files. 19157 19158{ 19159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19160 test -n "$tmp" && test -d "$tmp" 19161} || 19162{ 19163 tmp=./conf$$-$RANDOM 19164 (umask 077 && mkdir "$tmp") 19165} || 19166{ 19167 $as_echo "$as_me: cannot create a temporary directory in ." >&2 19168 { (exit 1); exit 1; } 19169} 19170 19171# Set up the scripts for CONFIG_FILES section. 19172# No need to generate them if there are no CONFIG_FILES. 19173# This happens for instance with `./config.status config.h'. 19174if test -n "$CONFIG_FILES"; then 19175 19176 19177ac_cr=' 19178' 19179ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19180if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19181 ac_cs_awk_cr='\\r' 19182else 19183 ac_cs_awk_cr=$ac_cr 19184fi 19185 19186echo 'BEGIN {' >"$tmp/subs1.awk" && 19187_ACEOF 19188 19189 19190{ 19191 echo "cat >conf$$subs.awk <<_ACEOF" && 19192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19193 echo "_ACEOF" 19194} >conf$$subs.sh || 19195 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19196$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19197 { (exit 1); exit 1; }; } 19198ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 19199ac_delim='%!_!# ' 19200for ac_last_try in false false false false false :; do 19201 . ./conf$$subs.sh || 19202 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19203$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19204 { (exit 1); exit 1; }; } 19205 19206 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19207 if test $ac_delim_n = $ac_delim_num; then 19208 break 19209 elif $ac_last_try; then 19210 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19211$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19212 { (exit 1); exit 1; }; } 19213 else 19214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19215 fi 19216done 19217rm -f conf$$subs.sh 19218 19219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19220cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 19221_ACEOF 19222sed -n ' 19223h 19224s/^/S["/; s/!.*/"]=/ 19225p 19226g 19227s/^[^!]*!// 19228:repl 19229t repl 19230s/'"$ac_delim"'$// 19231t delim 19232:nl 19233h 19234s/\(.\{148\}\).*/\1/ 19235t more1 19236s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19237p 19238n 19239b repl 19240:more1 19241s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19242p 19243g 19244s/.\{148\}// 19245t nl 19246:delim 19247h 19248s/\(.\{148\}\).*/\1/ 19249t more2 19250s/["\\]/\\&/g; s/^/"/; s/$/"/ 19251p 19252b 19253:more2 19254s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19255p 19256g 19257s/.\{148\}// 19258t delim 19259' <conf$$subs.awk | sed ' 19260/^[^""]/{ 19261 N 19262 s/\n// 19263} 19264' >>$CONFIG_STATUS || ac_write_fail=1 19265rm -f conf$$subs.awk 19266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19267_ACAWK 19268cat >>"\$tmp/subs1.awk" <<_ACAWK && 19269 for (key in S) S_is_set[key] = 1 19270 FS = "" 19271 19272} 19273{ 19274 line = $ 0 19275 nfields = split(line, field, "@") 19276 substed = 0 19277 len = length(field[1]) 19278 for (i = 2; i < nfields; i++) { 19279 key = field[i] 19280 keylen = length(key) 19281 if (S_is_set[key]) { 19282 value = S[key] 19283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19284 len += length(value) + length(field[++i]) 19285 substed = 1 19286 } else 19287 len += 1 + keylen 19288 } 19289 19290 print line 19291} 19292 19293_ACAWK 19294_ACEOF 19295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19296if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19298else 19299 cat 19300fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 19301 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 19302$as_echo "$as_me: error: could not setup config files machinery" >&2;} 19303 { (exit 1); exit 1; }; } 19304_ACEOF 19305 19306# VPATH may cause trouble with some makes, so we remove $(srcdir), 19307# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19308# trailing colons and then remove the whole line if VPATH becomes empty 19309# (actually we leave an empty line to preserve line numbers). 19310if test "x$srcdir" = x.; then 19311 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19312s/:*\$(srcdir):*/:/ 19313s/:*\${srcdir}:*/:/ 19314s/:*@srcdir@:*/:/ 19315s/^\([^=]*=[ ]*\):*/\1/ 19316s/:*$// 19317s/^[^=]*=[ ]*$// 19318}' 19319fi 19320 19321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19322fi # test -n "$CONFIG_FILES" 19323 19324# Set up the scripts for CONFIG_HEADERS section. 19325# No need to generate them if there are no CONFIG_HEADERS. 19326# This happens for instance with `./config.status Makefile'. 19327if test -n "$CONFIG_HEADERS"; then 19328cat >"$tmp/defines.awk" <<\_ACAWK || 19329BEGIN { 19330_ACEOF 19331 19332# Transform confdefs.h into an awk script `defines.awk', embedded as 19333# here-document in config.status, that substitutes the proper values into 19334# config.h.in to produce config.h. 19335 19336# Create a delimiter string that does not exist in confdefs.h, to ease 19337# handling of long lines. 19338ac_delim='%!_!# ' 19339for ac_last_try in false false :; do 19340 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 19341 if test -z "$ac_t"; then 19342 break 19343 elif $ac_last_try; then 19344 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 19345$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 19346 { (exit 1); exit 1; }; } 19347 else 19348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19349 fi 19350done 19351 19352# For the awk script, D is an array of macro values keyed by name, 19353# likewise P contains macro parameters if any. Preserve backslash 19354# newline sequences. 19355 19356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19357sed -n ' 19358s/.\{148\}/&'"$ac_delim"'/g 19359t rset 19360:rset 19361s/^[ ]*#[ ]*define[ ][ ]*/ / 19362t def 19363d 19364:def 19365s/\\$// 19366t bsnl 19367s/["\\]/\\&/g 19368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19369D["\1"]=" \3"/p 19370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19371d 19372:bsnl 19373s/["\\]/\\&/g 19374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19375D["\1"]=" \3\\\\\\n"\\/p 19376t cont 19377s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19378t cont 19379d 19380:cont 19381n 19382s/.\{148\}/&'"$ac_delim"'/g 19383t clear 19384:clear 19385s/\\$// 19386t bsnlc 19387s/["\\]/\\&/g; s/^/"/; s/$/"/p 19388d 19389:bsnlc 19390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19391b cont 19392' <confdefs.h | sed ' 19393s/'"$ac_delim"'/"\\\ 19394"/g' >>$CONFIG_STATUS || ac_write_fail=1 19395 19396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19397 for (key in D) D_is_set[key] = 1 19398 FS = "" 19399} 19400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19401 line = \$ 0 19402 split(line, arg, " ") 19403 if (arg[1] == "#") { 19404 defundef = arg[2] 19405 mac1 = arg[3] 19406 } else { 19407 defundef = substr(arg[1], 2) 19408 mac1 = arg[2] 19409 } 19410 split(mac1, mac2, "(") #) 19411 macro = mac2[1] 19412 prefix = substr(line, 1, index(line, defundef) - 1) 19413 if (D_is_set[macro]) { 19414 # Preserve the white space surrounding the "#". 19415 print prefix "define", macro P[macro] D[macro] 19416 next 19417 } else { 19418 # Replace #undef with comments. This is necessary, for example, 19419 # in the case of _POSIX_SOURCE, which is predefined and required 19420 # on some systems where configure will not decide to define it. 19421 if (defundef == "undef") { 19422 print "/*", prefix defundef, macro, "*/" 19423 next 19424 } 19425 } 19426} 19427{ print } 19428_ACAWK 19429_ACEOF 19430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19431 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 19432$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 19433 { (exit 1); exit 1; }; } 19434fi # test -n "$CONFIG_HEADERS" 19435 19436 19437eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19438shift 19439for ac_tag 19440do 19441 case $ac_tag in 19442 :[FHLC]) ac_mode=$ac_tag; continue;; 19443 esac 19444 case $ac_mode$ac_tag in 19445 :[FHL]*:*);; 19446 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 19447$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 19448 { (exit 1); exit 1; }; };; 19449 :[FH]-) ac_tag=-:-;; 19450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19451 esac 19452 ac_save_IFS=$IFS 19453 IFS=: 19454 set x $ac_tag 19455 IFS=$ac_save_IFS 19456 shift 19457 ac_file=$1 19458 shift 19459 19460 case $ac_mode in 19461 :L) ac_source=$1;; 19462 :[FH]) 19463 ac_file_inputs= 19464 for ac_f 19465 do 19466 case $ac_f in 19467 -) ac_f="$tmp/stdin";; 19468 *) # Look for the file first in the build tree, then in the source tree 19469 # (if the path is not absolute). The absolute path cannot be DOS-style, 19470 # because $ac_f cannot contain `:'. 19471 test -f "$ac_f" || 19472 case $ac_f in 19473 [\\/$]*) false;; 19474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19475 esac || 19476 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 19477$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 19478 { (exit 1); exit 1; }; };; 19479 esac 19480 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19481 ac_file_inputs="$ac_file_inputs '$ac_f'" 19482 done 19483 19484 # Let's still pretend it is `configure' which instantiates (i.e., don't 19485 # use $as_me), people would be surprised to read: 19486 # /* config.h. Generated by config.status. */ 19487 configure_input='Generated from '` 19488 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19489 `' by configure.' 19490 if test x"$ac_file" != x-; then 19491 configure_input="$ac_file. $configure_input" 19492 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 19493$as_echo "$as_me: creating $ac_file" >&6;} 19494 fi 19495 # Neutralize special characters interpreted by sed in replacement strings. 19496 case $configure_input in #( 19497 *\&* | *\|* | *\\* ) 19498 ac_sed_conf_input=`$as_echo "$configure_input" | 19499 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19500 *) ac_sed_conf_input=$configure_input;; 19501 esac 19502 19503 case $ac_tag in 19504 *:-:* | *:-) cat >"$tmp/stdin" \ 19505 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19506$as_echo "$as_me: error: could not create $ac_file" >&2;} 19507 { (exit 1); exit 1; }; } ;; 19508 esac 19509 ;; 19510 esac 19511 19512 ac_dir=`$as_dirname -- "$ac_file" || 19513$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19514 X"$ac_file" : 'X\(//\)[^/]' \| \ 19515 X"$ac_file" : 'X\(//\)$' \| \ 19516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19517$as_echo X"$ac_file" | 19518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19519 s//\1/ 19520 q 19521 } 19522 /^X\(\/\/\)[^/].*/{ 19523 s//\1/ 19524 q 19525 } 19526 /^X\(\/\/\)$/{ 19527 s//\1/ 19528 q 19529 } 19530 /^X\(\/\).*/{ 19531 s//\1/ 19532 q 19533 } 19534 s/.*/./; q'` 19535 { as_dir="$ac_dir" 19536 case $as_dir in #( 19537 -*) as_dir=./$as_dir;; 19538 esac 19539 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19540 as_dirs= 19541 while :; do 19542 case $as_dir in #( 19543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19544 *) as_qdir=$as_dir;; 19545 esac 19546 as_dirs="'$as_qdir' $as_dirs" 19547 as_dir=`$as_dirname -- "$as_dir" || 19548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19549 X"$as_dir" : 'X\(//\)[^/]' \| \ 19550 X"$as_dir" : 'X\(//\)$' \| \ 19551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19552$as_echo X"$as_dir" | 19553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19554 s//\1/ 19555 q 19556 } 19557 /^X\(\/\/\)[^/].*/{ 19558 s//\1/ 19559 q 19560 } 19561 /^X\(\/\/\)$/{ 19562 s//\1/ 19563 q 19564 } 19565 /^X\(\/\).*/{ 19566 s//\1/ 19567 q 19568 } 19569 s/.*/./; q'` 19570 test -d "$as_dir" && break 19571 done 19572 test -z "$as_dirs" || eval "mkdir $as_dirs" 19573 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19574$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 19575 { (exit 1); exit 1; }; }; } 19576 ac_builddir=. 19577 19578case "$ac_dir" in 19579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19580*) 19581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19582 # A ".." for each directory in $ac_dir_suffix. 19583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19584 case $ac_top_builddir_sub in 19585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19587 esac ;; 19588esac 19589ac_abs_top_builddir=$ac_pwd 19590ac_abs_builddir=$ac_pwd$ac_dir_suffix 19591# for backward compatibility: 19592ac_top_builddir=$ac_top_build_prefix 19593 19594case $srcdir in 19595 .) # We are building in place. 19596 ac_srcdir=. 19597 ac_top_srcdir=$ac_top_builddir_sub 19598 ac_abs_top_srcdir=$ac_pwd ;; 19599 [\\/]* | ?:[\\/]* ) # Absolute name. 19600 ac_srcdir=$srcdir$ac_dir_suffix; 19601 ac_top_srcdir=$srcdir 19602 ac_abs_top_srcdir=$srcdir ;; 19603 *) # Relative name. 19604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19605 ac_top_srcdir=$ac_top_build_prefix$srcdir 19606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19607esac 19608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19609 19610 19611 case $ac_mode in 19612 :F) 19613 # 19614 # CONFIG_FILE 19615 # 19616 19617 case $INSTALL in 19618 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19619 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19620 esac 19621 ac_MKDIR_P=$MKDIR_P 19622 case $MKDIR_P in 19623 [\\/$]* | ?:[\\/]* ) ;; 19624 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19625 esac 19626_ACEOF 19627 19628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19629# If the template does not know about datarootdir, expand it. 19630# FIXME: This hack should be removed a few years after 2.60. 19631ac_datarootdir_hack=; ac_datarootdir_seen= 19632 19633ac_sed_dataroot=' 19634/datarootdir/ { 19635 p 19636 q 19637} 19638/@datadir@/p 19639/@docdir@/p 19640/@infodir@/p 19641/@localedir@/p 19642/@mandir@/p 19643' 19644case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19645*datarootdir*) ac_datarootdir_seen=yes;; 19646*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19647 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19648$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19649_ACEOF 19650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19651 ac_datarootdir_hack=' 19652 s&@datadir@&$datadir&g 19653 s&@docdir@&$docdir&g 19654 s&@infodir@&$infodir&g 19655 s&@localedir@&$localedir&g 19656 s&@mandir@&$mandir&g 19657 s&\\\${datarootdir}&$datarootdir&g' ;; 19658esac 19659_ACEOF 19660 19661# Neutralize VPATH when `$srcdir' = `.'. 19662# Shell code in configure.ac might set extrasub. 19663# FIXME: do we really want to maintain this feature? 19664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19665ac_sed_extra="$ac_vpsub 19666$extrasub 19667_ACEOF 19668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19669:t 19670/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19671s|@configure_input@|$ac_sed_conf_input|;t t 19672s&@top_builddir@&$ac_top_builddir_sub&;t t 19673s&@top_build_prefix@&$ac_top_build_prefix&;t t 19674s&@srcdir@&$ac_srcdir&;t t 19675s&@abs_srcdir@&$ac_abs_srcdir&;t t 19676s&@top_srcdir@&$ac_top_srcdir&;t t 19677s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19678s&@builddir@&$ac_builddir&;t t 19679s&@abs_builddir@&$ac_abs_builddir&;t t 19680s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19681s&@INSTALL@&$ac_INSTALL&;t t 19682s&@MKDIR_P@&$ac_MKDIR_P&;t t 19683$ac_datarootdir_hack 19684" 19685eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 19686 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19687$as_echo "$as_me: error: could not create $ac_file" >&2;} 19688 { (exit 1); exit 1; }; } 19689 19690test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19693 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19694which seems to be undefined. Please make sure it is defined." >&5 19695$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19696which seems to be undefined. Please make sure it is defined." >&2;} 19697 19698 rm -f "$tmp/stdin" 19699 case $ac_file in 19700 -) cat "$tmp/out" && rm -f "$tmp/out";; 19701 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 19702 esac \ 19703 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19704$as_echo "$as_me: error: could not create $ac_file" >&2;} 19705 { (exit 1); exit 1; }; } 19706 ;; 19707 :H) 19708 # 19709 # CONFIG_HEADER 19710 # 19711 if test x"$ac_file" != x-; then 19712 { 19713 $as_echo "/* $configure_input */" \ 19714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 19715 } >"$tmp/config.h" \ 19716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19717$as_echo "$as_me: error: could not create $ac_file" >&2;} 19718 { (exit 1); exit 1; }; } 19719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 19720 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19721$as_echo "$as_me: $ac_file is unchanged" >&6;} 19722 else 19723 rm -f "$ac_file" 19724 mv "$tmp/config.h" "$ac_file" \ 19725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 19726$as_echo "$as_me: error: could not create $ac_file" >&2;} 19727 { (exit 1); exit 1; }; } 19728 fi 19729 else 19730 $as_echo "/* $configure_input */" \ 19731 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 19732 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 19733$as_echo "$as_me: error: could not create -" >&2;} 19734 { (exit 1); exit 1; }; } 19735 fi 19736# Compute "$ac_file"'s index in $config_headers. 19737_am_arg="$ac_file" 19738_am_stamp_count=1 19739for _am_header in $config_headers :; do 19740 case $_am_header in 19741 $_am_arg | $_am_arg:* ) 19742 break ;; 19743 * ) 19744 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19745 esac 19746done 19747echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19748$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19749 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19750 X"$_am_arg" : 'X\(//\)$' \| \ 19751 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19752$as_echo X"$_am_arg" | 19753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19754 s//\1/ 19755 q 19756 } 19757 /^X\(\/\/\)[^/].*/{ 19758 s//\1/ 19759 q 19760 } 19761 /^X\(\/\/\)$/{ 19762 s//\1/ 19763 q 19764 } 19765 /^X\(\/\).*/{ 19766 s//\1/ 19767 q 19768 } 19769 s/.*/./; q'`/stamp-h$_am_stamp_count 19770 ;; 19771 19772 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 19773$as_echo "$as_me: executing $ac_file commands" >&6;} 19774 ;; 19775 esac 19776 19777 19778 case $ac_file$ac_mode in 19779 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 19780# are listed without --file. Let's play safe and only enable the eval 19781# if we detect the quoting. 19782case $CONFIG_FILES in 19783*\'*) eval set x "$CONFIG_FILES" ;; 19784*) set x $CONFIG_FILES ;; 19785esac 19786shift 19787for mf 19788do 19789 # Strip MF so we end up with the name of the file. 19790 mf=`echo "$mf" | sed -e 's/:.*$//'` 19791 # Check whether this is an Automake generated Makefile or not. 19792 # We used to match only the files named `Makefile.in', but 19793 # some people rename them; so instead we look at the file content. 19794 # Grep'ing the first line is not enough: some people post-process 19795 # each Makefile.in and add a new line on top of each file to say so. 19796 # Grep'ing the whole file is not good either: AIX grep has a line 19797 # limit of 2048, but all sed's we know have understand at least 4000. 19798 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19799 dirpart=`$as_dirname -- "$mf" || 19800$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19801 X"$mf" : 'X\(//\)[^/]' \| \ 19802 X"$mf" : 'X\(//\)$' \| \ 19803 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19804$as_echo X"$mf" | 19805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19806 s//\1/ 19807 q 19808 } 19809 /^X\(\/\/\)[^/].*/{ 19810 s//\1/ 19811 q 19812 } 19813 /^X\(\/\/\)$/{ 19814 s//\1/ 19815 q 19816 } 19817 /^X\(\/\).*/{ 19818 s//\1/ 19819 q 19820 } 19821 s/.*/./; q'` 19822 else 19823 continue 19824 fi 19825 # Extract the definition of DEPDIR, am__include, and am__quote 19826 # from the Makefile without running `make'. 19827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19828 test -z "$DEPDIR" && continue 19829 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19830 test -z "am__include" && continue 19831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19832 # When using ansi2knr, U may be empty or an underscore; expand it 19833 U=`sed -n 's/^U = //p' < "$mf"` 19834 # Find all dependency output files, they are included files with 19835 # $(DEPDIR) in their names. We invoke sed twice because it is the 19836 # simplest approach to changing $(DEPDIR) to its actual value in the 19837 # expansion. 19838 for file in `sed -n " 19839 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19841 # Make sure the directory exists. 19842 test -f "$dirpart/$file" && continue 19843 fdir=`$as_dirname -- "$file" || 19844$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19845 X"$file" : 'X\(//\)[^/]' \| \ 19846 X"$file" : 'X\(//\)$' \| \ 19847 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19848$as_echo X"$file" | 19849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19850 s//\1/ 19851 q 19852 } 19853 /^X\(\/\/\)[^/].*/{ 19854 s//\1/ 19855 q 19856 } 19857 /^X\(\/\/\)$/{ 19858 s//\1/ 19859 q 19860 } 19861 /^X\(\/\).*/{ 19862 s//\1/ 19863 q 19864 } 19865 s/.*/./; q'` 19866 { as_dir=$dirpart/$fdir 19867 case $as_dir in #( 19868 -*) as_dir=./$as_dir;; 19869 esac 19870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19871 as_dirs= 19872 while :; do 19873 case $as_dir in #( 19874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19875 *) as_qdir=$as_dir;; 19876 esac 19877 as_dirs="'$as_qdir' $as_dirs" 19878 as_dir=`$as_dirname -- "$as_dir" || 19879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19880 X"$as_dir" : 'X\(//\)[^/]' \| \ 19881 X"$as_dir" : 'X\(//\)$' \| \ 19882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19883$as_echo X"$as_dir" | 19884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19885 s//\1/ 19886 q 19887 } 19888 /^X\(\/\/\)[^/].*/{ 19889 s//\1/ 19890 q 19891 } 19892 /^X\(\/\/\)$/{ 19893 s//\1/ 19894 q 19895 } 19896 /^X\(\/\).*/{ 19897 s//\1/ 19898 q 19899 } 19900 s/.*/./; q'` 19901 test -d "$as_dir" && break 19902 done 19903 test -z "$as_dirs" || eval "mkdir $as_dirs" 19904 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19905$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 19906 { (exit 1); exit 1; }; }; } 19907 # echo "creating $dirpart/$file" 19908 echo '# dummy' > "$dirpart/$file" 19909 done 19910done 19911 ;; 19912 "libtool":C) 19913 19914 # See if we are running on zsh, and set the options which allow our 19915 # commands through without removal of \ escapes. 19916 if test -n "${ZSH_VERSION+set}" ; then 19917 setopt NO_GLOB_SUBST 19918 fi 19919 19920 cfgfile="${ofile}T" 19921 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19922 $RM "$cfgfile" 19923 19924 cat <<_LT_EOF >> "$cfgfile" 19925#! $SHELL 19926 19927# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19928# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19929# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19930# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19931# 19932# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19933# 2006, 2007, 2008 Free Software Foundation, Inc. 19934# Written by Gordon Matzigkeit, 1996 19935# 19936# This file is part of GNU Libtool. 19937# 19938# GNU Libtool is free software; you can redistribute it and/or 19939# modify it under the terms of the GNU General Public License as 19940# published by the Free Software Foundation; either version 2 of 19941# the License, or (at your option) any later version. 19942# 19943# As a special exception to the GNU General Public License, 19944# if you distribute this file as part of a program or library that 19945# is built using GNU Libtool, you may include this file under the 19946# same distribution terms that you use for the rest of that program. 19947# 19948# GNU Libtool is distributed in the hope that it will be useful, 19949# but WITHOUT ANY WARRANTY; without even the implied warranty of 19950# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19951# GNU General Public License for more details. 19952# 19953# You should have received a copy of the GNU General Public License 19954# along with GNU Libtool; see the file COPYING. If not, a copy 19955# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19956# obtained by writing to the Free Software Foundation, Inc., 19957# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19958 19959 19960# The names of the tagged configurations supported by this script. 19961available_tags="CXX " 19962 19963# ### BEGIN LIBTOOL CONFIG 19964 19965# Which release of libtool.m4 was used? 19966macro_version=$macro_version 19967macro_revision=$macro_revision 19968 19969# Whether or not to build shared libraries. 19970build_libtool_libs=$enable_shared 19971 19972# Whether or not to build static libraries. 19973build_old_libs=$enable_static 19974 19975# What type of objects to build. 19976pic_mode=$pic_mode 19977 19978# Whether or not to optimize for fast installation. 19979fast_install=$enable_fast_install 19980 19981# The host system. 19982host_alias=$host_alias 19983host=$host 19984host_os=$host_os 19985 19986# The build system. 19987build_alias=$build_alias 19988build=$build 19989build_os=$build_os 19990 19991# A sed program that does not truncate output. 19992SED=$lt_SED 19993 19994# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19995Xsed="\$SED -e 1s/^X//" 19996 19997# A grep program that handles long lines. 19998GREP=$lt_GREP 19999 20000# An ERE matcher. 20001EGREP=$lt_EGREP 20002 20003# A literal string matcher. 20004FGREP=$lt_FGREP 20005 20006# A BSD- or MS-compatible name lister. 20007NM=$lt_NM 20008 20009# Whether we need soft or hard links. 20010LN_S=$lt_LN_S 20011 20012# What is the maximum length of a command? 20013max_cmd_len=$max_cmd_len 20014 20015# Object file suffix (normally "o"). 20016objext=$ac_objext 20017 20018# Executable file suffix (normally ""). 20019exeext=$exeext 20020 20021# whether the shell understands "unset". 20022lt_unset=$lt_unset 20023 20024# turn spaces into newlines. 20025SP2NL=$lt_lt_SP2NL 20026 20027# turn newlines into spaces. 20028NL2SP=$lt_lt_NL2SP 20029 20030# How to create reloadable object files. 20031reload_flag=$lt_reload_flag 20032reload_cmds=$lt_reload_cmds 20033 20034# An object symbol dumper. 20035OBJDUMP=$lt_OBJDUMP 20036 20037# Method to check whether dependent libraries are shared objects. 20038deplibs_check_method=$lt_deplibs_check_method 20039 20040# Command to use when deplibs_check_method == "file_magic". 20041file_magic_cmd=$lt_file_magic_cmd 20042 20043# The archiver. 20044AR=$lt_AR 20045AR_FLAGS=$lt_AR_FLAGS 20046 20047# A symbol stripping program. 20048STRIP=$lt_STRIP 20049 20050# Commands used to install an old-style archive. 20051RANLIB=$lt_RANLIB 20052old_postinstall_cmds=$lt_old_postinstall_cmds 20053old_postuninstall_cmds=$lt_old_postuninstall_cmds 20054 20055# A C compiler. 20056LTCC=$lt_CC 20057 20058# LTCC compiler flags. 20059LTCFLAGS=$lt_CFLAGS 20060 20061# Take the output of nm and produce a listing of raw symbols and C names. 20062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20063 20064# Transform the output of nm in a proper C declaration. 20065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20066 20067# Transform the output of nm in a C name address pair. 20068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20069 20070# Transform the output of nm in a C name address pair when lib prefix is needed. 20071global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20072 20073# The name of the directory that contains temporary libtool files. 20074objdir=$objdir 20075 20076# Shell to use when invoking shell scripts. 20077SHELL=$lt_SHELL 20078 20079# An echo program that does not interpret backslashes. 20080ECHO=$lt_ECHO 20081 20082# Used to examine libraries when file_magic_cmd begins with "file". 20083MAGIC_CMD=$MAGIC_CMD 20084 20085# Must we lock files when doing compilation? 20086need_locks=$lt_need_locks 20087 20088# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20089DSYMUTIL=$lt_DSYMUTIL 20090 20091# Tool to change global to local symbols on Mac OS X. 20092NMEDIT=$lt_NMEDIT 20093 20094# Tool to manipulate fat objects and archives on Mac OS X. 20095LIPO=$lt_LIPO 20096 20097# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20098OTOOL=$lt_OTOOL 20099 20100# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20101OTOOL64=$lt_OTOOL64 20102 20103# Old archive suffix (normally "a"). 20104libext=$libext 20105 20106# Shared library suffix (normally ".so"). 20107shrext_cmds=$lt_shrext_cmds 20108 20109# The commands to extract the exported symbol list from a shared archive. 20110extract_expsyms_cmds=$lt_extract_expsyms_cmds 20111 20112# Variables whose values should be saved in libtool wrapper scripts and 20113# restored at link time. 20114variables_saved_for_relink=$lt_variables_saved_for_relink 20115 20116# Do we need the "lib" prefix for modules? 20117need_lib_prefix=$need_lib_prefix 20118 20119# Do we need a version for libraries? 20120need_version=$need_version 20121 20122# Library versioning type. 20123version_type=$version_type 20124 20125# Shared library runtime path variable. 20126runpath_var=$runpath_var 20127 20128# Shared library path variable. 20129shlibpath_var=$shlibpath_var 20130 20131# Is shlibpath searched before the hard-coded library search path? 20132shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20133 20134# Format of library name prefix. 20135libname_spec=$lt_libname_spec 20136 20137# List of archive names. First name is the real one, the rest are links. 20138# The last name is the one that the linker finds with -lNAME 20139library_names_spec=$lt_library_names_spec 20140 20141# The coded name of the library, if different from the real name. 20142soname_spec=$lt_soname_spec 20143 20144# Command to use after installation of a shared archive. 20145postinstall_cmds=$lt_postinstall_cmds 20146 20147# Command to use after uninstallation of a shared archive. 20148postuninstall_cmds=$lt_postuninstall_cmds 20149 20150# Commands used to finish a libtool library installation in a directory. 20151finish_cmds=$lt_finish_cmds 20152 20153# As "finish_cmds", except a single script fragment to be evaled but 20154# not shown. 20155finish_eval=$lt_finish_eval 20156 20157# Whether we should hardcode library paths into libraries. 20158hardcode_into_libs=$hardcode_into_libs 20159 20160# Compile-time system search path for libraries. 20161sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20162 20163# Run-time system search path for libraries. 20164sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20165 20166# Whether dlopen is supported. 20167dlopen_support=$enable_dlopen 20168 20169# Whether dlopen of programs is supported. 20170dlopen_self=$enable_dlopen_self 20171 20172# Whether dlopen of statically linked programs is supported. 20173dlopen_self_static=$enable_dlopen_self_static 20174 20175# Commands to strip libraries. 20176old_striplib=$lt_old_striplib 20177striplib=$lt_striplib 20178 20179 20180# The linker used to build libraries. 20181LD=$lt_LD 20182 20183# Commands used to build an old-style archive. 20184old_archive_cmds=$lt_old_archive_cmds 20185 20186# A language specific compiler. 20187CC=$lt_compiler 20188 20189# Is the compiler the GNU compiler? 20190with_gcc=$GCC 20191 20192# Compiler flag to turn off builtin functions. 20193no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20194 20195# How to pass a linker flag through the compiler. 20196wl=$lt_lt_prog_compiler_wl 20197 20198# Additional compiler flags for building library objects. 20199pic_flag=$lt_lt_prog_compiler_pic 20200 20201# Compiler flag to prevent dynamic linking. 20202link_static_flag=$lt_lt_prog_compiler_static 20203 20204# Does compiler simultaneously support -c and -o options? 20205compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20206 20207# Whether or not to add -lc for building shared libraries. 20208build_libtool_need_lc=$archive_cmds_need_lc 20209 20210# Whether or not to disallow shared libs when runtime libs are static. 20211allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20212 20213# Compiler flag to allow reflexive dlopens. 20214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20215 20216# Compiler flag to generate shared objects directly from archives. 20217whole_archive_flag_spec=$lt_whole_archive_flag_spec 20218 20219# Whether the compiler copes with passing no objects directly. 20220compiler_needs_object=$lt_compiler_needs_object 20221 20222# Create an old-style archive from a shared archive. 20223old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20224 20225# Create a temporary old-style archive to link instead of a shared archive. 20226old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20227 20228# Commands used to build a shared archive. 20229archive_cmds=$lt_archive_cmds 20230archive_expsym_cmds=$lt_archive_expsym_cmds 20231 20232# Commands used to build a loadable module if different from building 20233# a shared archive. 20234module_cmds=$lt_module_cmds 20235module_expsym_cmds=$lt_module_expsym_cmds 20236 20237# Whether we are building with GNU ld or not. 20238with_gnu_ld=$lt_with_gnu_ld 20239 20240# Flag that allows shared libraries with undefined symbols to be built. 20241allow_undefined_flag=$lt_allow_undefined_flag 20242 20243# Flag that enforces no undefined symbols. 20244no_undefined_flag=$lt_no_undefined_flag 20245 20246# Flag to hardcode \$libdir into a binary during linking. 20247# This must work even if \$libdir does not exist 20248hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20249 20250# If ld is used when linking, flag to hardcode \$libdir into a binary 20251# during linking. This must work even if \$libdir does not exist. 20252hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20253 20254# Whether we need a single "-rpath" flag with a separated argument. 20255hardcode_libdir_separator=$lt_hardcode_libdir_separator 20256 20257# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20258# DIR into the resulting binary. 20259hardcode_direct=$hardcode_direct 20260 20261# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20262# DIR into the resulting binary and the resulting library dependency is 20263# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20264# library is relocated. 20265hardcode_direct_absolute=$hardcode_direct_absolute 20266 20267# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20268# into the resulting binary. 20269hardcode_minus_L=$hardcode_minus_L 20270 20271# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20272# into the resulting binary. 20273hardcode_shlibpath_var=$hardcode_shlibpath_var 20274 20275# Set to "yes" if building a shared library automatically hardcodes DIR 20276# into the library and all subsequent libraries and executables linked 20277# against it. 20278hardcode_automatic=$hardcode_automatic 20279 20280# Set to yes if linker adds runtime paths of dependent libraries 20281# to runtime path list. 20282inherit_rpath=$inherit_rpath 20283 20284# Whether libtool must link a program against all its dependency libraries. 20285link_all_deplibs=$link_all_deplibs 20286 20287# Fix the shell variable \$srcfile for the compiler. 20288fix_srcfile_path=$lt_fix_srcfile_path 20289 20290# Set to "yes" if exported symbols are required. 20291always_export_symbols=$always_export_symbols 20292 20293# The commands to list exported symbols. 20294export_symbols_cmds=$lt_export_symbols_cmds 20295 20296# Symbols that should not be listed in the preloaded symbols. 20297exclude_expsyms=$lt_exclude_expsyms 20298 20299# Symbols that must always be exported. 20300include_expsyms=$lt_include_expsyms 20301 20302# Commands necessary for linking programs (against libraries) with templates. 20303prelink_cmds=$lt_prelink_cmds 20304 20305# Specify filename containing input files. 20306file_list_spec=$lt_file_list_spec 20307 20308# How to hardcode a shared library path into an executable. 20309hardcode_action=$hardcode_action 20310 20311# The directories searched by this compiler when creating a shared library. 20312compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20313 20314# Dependencies to place before and after the objects being linked to 20315# create a shared library. 20316predep_objects=$lt_predep_objects 20317postdep_objects=$lt_postdep_objects 20318predeps=$lt_predeps 20319postdeps=$lt_postdeps 20320 20321# The library search path used internally by the compiler when linking 20322# a shared library. 20323compiler_lib_search_path=$lt_compiler_lib_search_path 20324 20325# ### END LIBTOOL CONFIG 20326 20327_LT_EOF 20328 20329 case $host_os in 20330 aix3*) 20331 cat <<\_LT_EOF >> "$cfgfile" 20332# AIX sometimes has problems with the GCC collect2 program. For some 20333# reason, if we set the COLLECT_NAMES environment variable, the problems 20334# vanish in a puff of smoke. 20335if test "X${COLLECT_NAMES+set}" != Xset; then 20336 COLLECT_NAMES= 20337 export COLLECT_NAMES 20338fi 20339_LT_EOF 20340 ;; 20341 esac 20342 20343 20344ltmain="$ac_aux_dir/ltmain.sh" 20345 20346 20347 # We use sed instead of cat because bash on DJGPP gets confused if 20348 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20349 # text mode, it properly converts lines to CR/LF. This bash problem 20350 # is reportedly fixed, but why not run on old versions too? 20351 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 20352 || (rm -f "$cfgfile"; exit 1) 20353 20354 case $xsi_shell in 20355 yes) 20356 cat << \_LT_EOF >> "$cfgfile" 20357 20358# func_dirname file append nondir_replacement 20359# Compute the dirname of FILE. If nonempty, add APPEND to the result, 20360# otherwise set result to NONDIR_REPLACEMENT. 20361func_dirname () 20362{ 20363 case ${1} in 20364 */*) func_dirname_result="${1%/*}${2}" ;; 20365 * ) func_dirname_result="${3}" ;; 20366 esac 20367} 20368 20369# func_basename file 20370func_basename () 20371{ 20372 func_basename_result="${1##*/}" 20373} 20374 20375# func_dirname_and_basename file append nondir_replacement 20376# perform func_basename and func_dirname in a single function 20377# call: 20378# dirname: Compute the dirname of FILE. If nonempty, 20379# add APPEND to the result, otherwise set result 20380# to NONDIR_REPLACEMENT. 20381# value returned in "$func_dirname_result" 20382# basename: Compute filename of FILE. 20383# value retuned in "$func_basename_result" 20384# Implementation must be kept synchronized with func_dirname 20385# and func_basename. For efficiency, we do not delegate to 20386# those functions but instead duplicate the functionality here. 20387func_dirname_and_basename () 20388{ 20389 case ${1} in 20390 */*) func_dirname_result="${1%/*}${2}" ;; 20391 * ) func_dirname_result="${3}" ;; 20392 esac 20393 func_basename_result="${1##*/}" 20394} 20395 20396# func_stripname prefix suffix name 20397# strip PREFIX and SUFFIX off of NAME. 20398# PREFIX and SUFFIX must not contain globbing or regex special 20399# characters, hashes, percent signs, but SUFFIX may contain a leading 20400# dot (in which case that matches only a dot). 20401func_stripname () 20402{ 20403 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 20404 # positional parameters, so assign one to ordinary parameter first. 20405 func_stripname_result=${3} 20406 func_stripname_result=${func_stripname_result#"${1}"} 20407 func_stripname_result=${func_stripname_result%"${2}"} 20408} 20409 20410# func_opt_split 20411func_opt_split () 20412{ 20413 func_opt_split_opt=${1%%=*} 20414 func_opt_split_arg=${1#*=} 20415} 20416 20417# func_lo2o object 20418func_lo2o () 20419{ 20420 case ${1} in 20421 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 20422 *) func_lo2o_result=${1} ;; 20423 esac 20424} 20425 20426# func_xform libobj-or-source 20427func_xform () 20428{ 20429 func_xform_result=${1%.*}.lo 20430} 20431 20432# func_arith arithmetic-term... 20433func_arith () 20434{ 20435 func_arith_result=$(( $* )) 20436} 20437 20438# func_len string 20439# STRING may not start with a hyphen. 20440func_len () 20441{ 20442 func_len_result=${#1} 20443} 20444 20445_LT_EOF 20446 ;; 20447 *) # Bourne compatible functions. 20448 cat << \_LT_EOF >> "$cfgfile" 20449 20450# func_dirname file append nondir_replacement 20451# Compute the dirname of FILE. If nonempty, add APPEND to the result, 20452# otherwise set result to NONDIR_REPLACEMENT. 20453func_dirname () 20454{ 20455 # Extract subdirectory from the argument. 20456 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 20457 if test "X$func_dirname_result" = "X${1}"; then 20458 func_dirname_result="${3}" 20459 else 20460 func_dirname_result="$func_dirname_result${2}" 20461 fi 20462} 20463 20464# func_basename file 20465func_basename () 20466{ 20467 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 20468} 20469 20470 20471# func_stripname prefix suffix name 20472# strip PREFIX and SUFFIX off of NAME. 20473# PREFIX and SUFFIX must not contain globbing or regex special 20474# characters, hashes, percent signs, but SUFFIX may contain a leading 20475# dot (in which case that matches only a dot). 20476# func_strip_suffix prefix name 20477func_stripname () 20478{ 20479 case ${2} in 20480 .*) func_stripname_result=`$ECHO "X${3}" \ 20481 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 20482 *) func_stripname_result=`$ECHO "X${3}" \ 20483 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 20484 esac 20485} 20486 20487# sed scripts: 20488my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 20489my_sed_long_arg='1s/^-[^=]*=//' 20490 20491# func_opt_split 20492func_opt_split () 20493{ 20494 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 20495 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 20496} 20497 20498# func_lo2o object 20499func_lo2o () 20500{ 20501 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 20502} 20503 20504# func_xform libobj-or-source 20505func_xform () 20506{ 20507 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 20508} 20509 20510# func_arith arithmetic-term... 20511func_arith () 20512{ 20513 func_arith_result=`expr "$@"` 20514} 20515 20516# func_len string 20517# STRING may not start with a hyphen. 20518func_len () 20519{ 20520 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 20521} 20522 20523_LT_EOF 20524esac 20525 20526case $lt_shell_append in 20527 yes) 20528 cat << \_LT_EOF >> "$cfgfile" 20529 20530# func_append var value 20531# Append VALUE to the end of shell variable VAR. 20532func_append () 20533{ 20534 eval "$1+=\$2" 20535} 20536_LT_EOF 20537 ;; 20538 *) 20539 cat << \_LT_EOF >> "$cfgfile" 20540 20541# func_append var value 20542# Append VALUE to the end of shell variable VAR. 20543func_append () 20544{ 20545 eval "$1=\$$1\$2" 20546} 20547 20548_LT_EOF 20549 ;; 20550 esac 20551 20552 20553 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 20554 || (rm -f "$cfgfile"; exit 1) 20555 20556 mv -f "$cfgfile" "$ofile" || 20557 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20558 chmod +x "$ofile" 20559 20560 20561 cat <<_LT_EOF >> "$ofile" 20562 20563# ### BEGIN LIBTOOL TAG CONFIG: CXX 20564 20565# The linker used to build libraries. 20566LD=$lt_LD_CXX 20567 20568# Commands used to build an old-style archive. 20569old_archive_cmds=$lt_old_archive_cmds_CXX 20570 20571# A language specific compiler. 20572CC=$lt_compiler_CXX 20573 20574# Is the compiler the GNU compiler? 20575with_gcc=$GCC_CXX 20576 20577# Compiler flag to turn off builtin functions. 20578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20579 20580# How to pass a linker flag through the compiler. 20581wl=$lt_lt_prog_compiler_wl_CXX 20582 20583# Additional compiler flags for building library objects. 20584pic_flag=$lt_lt_prog_compiler_pic_CXX 20585 20586# Compiler flag to prevent dynamic linking. 20587link_static_flag=$lt_lt_prog_compiler_static_CXX 20588 20589# Does compiler simultaneously support -c and -o options? 20590compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20591 20592# Whether or not to add -lc for building shared libraries. 20593build_libtool_need_lc=$archive_cmds_need_lc_CXX 20594 20595# Whether or not to disallow shared libs when runtime libs are static. 20596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20597 20598# Compiler flag to allow reflexive dlopens. 20599export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20600 20601# Compiler flag to generate shared objects directly from archives. 20602whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20603 20604# Whether the compiler copes with passing no objects directly. 20605compiler_needs_object=$lt_compiler_needs_object_CXX 20606 20607# Create an old-style archive from a shared archive. 20608old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20609 20610# Create a temporary old-style archive to link instead of a shared archive. 20611old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20612 20613# Commands used to build a shared archive. 20614archive_cmds=$lt_archive_cmds_CXX 20615archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20616 20617# Commands used to build a loadable module if different from building 20618# a shared archive. 20619module_cmds=$lt_module_cmds_CXX 20620module_expsym_cmds=$lt_module_expsym_cmds_CXX 20621 20622# Whether we are building with GNU ld or not. 20623with_gnu_ld=$lt_with_gnu_ld_CXX 20624 20625# Flag that allows shared libraries with undefined symbols to be built. 20626allow_undefined_flag=$lt_allow_undefined_flag_CXX 20627 20628# Flag that enforces no undefined symbols. 20629no_undefined_flag=$lt_no_undefined_flag_CXX 20630 20631# Flag to hardcode \$libdir into a binary during linking. 20632# This must work even if \$libdir does not exist 20633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20634 20635# If ld is used when linking, flag to hardcode \$libdir into a binary 20636# during linking. This must work even if \$libdir does not exist. 20637hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 20638 20639# Whether we need a single "-rpath" flag with a separated argument. 20640hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20641 20642# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20643# DIR into the resulting binary. 20644hardcode_direct=$hardcode_direct_CXX 20645 20646# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20647# DIR into the resulting binary and the resulting library dependency is 20648# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20649# library is relocated. 20650hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20651 20652# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20653# into the resulting binary. 20654hardcode_minus_L=$hardcode_minus_L_CXX 20655 20656# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20657# into the resulting binary. 20658hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20659 20660# Set to "yes" if building a shared library automatically hardcodes DIR 20661# into the library and all subsequent libraries and executables linked 20662# against it. 20663hardcode_automatic=$hardcode_automatic_CXX 20664 20665# Set to yes if linker adds runtime paths of dependent libraries 20666# to runtime path list. 20667inherit_rpath=$inherit_rpath_CXX 20668 20669# Whether libtool must link a program against all its dependency libraries. 20670link_all_deplibs=$link_all_deplibs_CXX 20671 20672# Fix the shell variable \$srcfile for the compiler. 20673fix_srcfile_path=$lt_fix_srcfile_path_CXX 20674 20675# Set to "yes" if exported symbols are required. 20676always_export_symbols=$always_export_symbols_CXX 20677 20678# The commands to list exported symbols. 20679export_symbols_cmds=$lt_export_symbols_cmds_CXX 20680 20681# Symbols that should not be listed in the preloaded symbols. 20682exclude_expsyms=$lt_exclude_expsyms_CXX 20683 20684# Symbols that must always be exported. 20685include_expsyms=$lt_include_expsyms_CXX 20686 20687# Commands necessary for linking programs (against libraries) with templates. 20688prelink_cmds=$lt_prelink_cmds_CXX 20689 20690# Specify filename containing input files. 20691file_list_spec=$lt_file_list_spec_CXX 20692 20693# How to hardcode a shared library path into an executable. 20694hardcode_action=$hardcode_action_CXX 20695 20696# The directories searched by this compiler when creating a shared library. 20697compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20698 20699# Dependencies to place before and after the objects being linked to 20700# create a shared library. 20701predep_objects=$lt_predep_objects_CXX 20702postdep_objects=$lt_postdep_objects_CXX 20703predeps=$lt_predeps_CXX 20704postdeps=$lt_postdeps_CXX 20705 20706# The library search path used internally by the compiler when linking 20707# a shared library. 20708compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20709 20710# ### END LIBTOOL TAG CONFIG: CXX 20711_LT_EOF 20712 20713 ;; 20714 20715 esac 20716done # for ac_tag 20717 20718 20719{ (exit 0); exit 0; } 20720_ACEOF 20721chmod +x $CONFIG_STATUS 20722ac_clean_files=$ac_clean_files_save 20723 20724test $ac_write_fail = 0 || 20725 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 20726$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 20727 { (exit 1); exit 1; }; } 20728 20729 20730# configure is writing to config.log, and then calls config.status. 20731# config.status does its own redirection, appending to config.log. 20732# Unfortunately, on DOS this fails, as config.log is still kept open 20733# by configure, so config.status won't be able to write to it; its 20734# output is simply discarded. So we exec the FD to /dev/null, 20735# effectively closing config.log, so it can be properly (re)opened and 20736# appended to by config.status. When coming back to configure, we 20737# need to make the FD available again. 20738if test "$no_create" != yes; then 20739 ac_cs_success=: 20740 ac_config_status_args= 20741 test "$silent" = yes && 20742 ac_config_status_args="$ac_config_status_args --quiet" 20743 exec 5>/dev/null 20744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20745 exec 5>>config.log 20746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20747 # would make configure fail if this is the last instruction. 20748 $ac_cs_success || { (exit 1); exit 1; } 20749fi 20750if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20751 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20752$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20753fi 20754 20755