1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for sqlite 3.8.9. 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='sqlite' 745PACKAGE_TARNAME='sqlite' 746PACKAGE_VERSION='3.8.9' 747PACKAGE_STRING='sqlite 3.8.9' 748PACKAGE_BUGREPORT='' 749 750# Factoring default headers for most tests. 751ac_includes_default="\ 752#include <stdio.h> 753#ifdef HAVE_SYS_TYPES_H 754# include <sys/types.h> 755#endif 756#ifdef HAVE_SYS_STAT_H 757# include <sys/stat.h> 758#endif 759#ifdef STDC_HEADERS 760# include <stdlib.h> 761# include <stddef.h> 762#else 763# ifdef HAVE_STDLIB_H 764# include <stdlib.h> 765# endif 766#endif 767#ifdef HAVE_STRING_H 768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 769# include <memory.h> 770# endif 771# include <string.h> 772#endif 773#ifdef HAVE_STRINGS_H 774# include <strings.h> 775#endif 776#ifdef HAVE_INTTYPES_H 777# include <inttypes.h> 778#endif 779#ifdef HAVE_STDINT_H 780# include <stdint.h> 781#endif 782#ifdef HAVE_UNISTD_H 783# include <unistd.h> 784#endif" 785 786ac_subst_vars='SHELL 787PATH_SEPARATOR 788PACKAGE_NAME 789PACKAGE_TARNAME 790PACKAGE_VERSION 791PACKAGE_STRING 792PACKAGE_BUGREPORT 793exec_prefix 794prefix 795program_transform_name 796bindir 797sbindir 798libexecdir 799datarootdir 800datadir 801sysconfdir 802sharedstatedir 803localstatedir 804includedir 805oldincludedir 806docdir 807infodir 808htmldir 809dvidir 810pdfdir 811psdir 812libdir 813localedir 814mandir 815DEFS 816ECHO_C 817ECHO_N 818ECHO_T 819LIBS 820build_alias 821host_alias 822target_alias 823LIBTOOL 824build 825build_cpu 826build_vendor 827build_os 828host 829host_cpu 830host_vendor 831host_os 832CC 833CFLAGS 834LDFLAGS 835CPPFLAGS 836ac_ct_CC 837EXEEXT 838OBJEXT 839SED 840GREP 841EGREP 842FGREP 843LD 844DUMPBIN 845ac_ct_DUMPBIN 846NM 847LN_S 848OBJDUMP 849AR 850STRIP 851RANLIB 852lt_ECHO 853DSYMUTIL 854NMEDIT 855LIPO 856OTOOL 857OTOOL64 858CPP 859INSTALL_PROGRAM 860INSTALL_SCRIPT 861INSTALL_DATA 862AWK 863TCLSH_CMD 864TCLLIBDIR 865program_prefix 866VERSION 867RELEASE 868VERSION_NUMBER 869BUILD_CC 870SQLITE_THREADSAFE 871ALLOWRELEASE 872TEMP_STORE 873BUILD_EXEEXT 874SQLITE_OS_UNIX 875SQLITE_OS_WIN 876TARGET_EXEEXT 877TCL_VERSION 878TCL_BIN_DIR 879TCL_SRC_DIR 880TCL_INCLUDE_SPEC 881TCL_LIB_FILE 882TCL_LIB_FLAG 883TCL_LIB_SPEC 884TCL_STUB_LIB_FILE 885TCL_STUB_LIB_FLAG 886TCL_STUB_LIB_SPEC 887HAVE_TCL 888TARGET_READLINE_LIBS 889TARGET_READLINE_INC 890TARGET_HAVE_READLINE 891TARGET_DEBUG 892USE_AMALGAMATION 893OPT_FEATURE_FLAGS 894USE_GCOV 895BUILD_CFLAGS 896LIBOBJS 897LTLIBOBJS' 898ac_subst_files='' 899ac_user_opts=' 900enable_option_checking 901enable_shared 902enable_static 903with_pic 904enable_fast_install 905with_gnu_ld 906enable_libtool_lock 907enable_largefile 908enable_threadsafe 909enable_releasemode 910enable_tempstore 911enable_tcl 912with_tcl 913enable_readline 914with_readline_lib 915with_readline_inc 916enable_debug 917enable_amalgamation 918enable_load_extension 919enable_gcov 920' 921 ac_precious_vars='build_alias 922host_alias 923target_alias 924CC 925CFLAGS 926LDFLAGS 927LIBS 928CPPFLAGS 929CPP 930TCLLIBDIR' 931 932 933# Initialize some variables set by options. 934ac_init_help= 935ac_init_version=false 936ac_unrecognized_opts= 937ac_unrecognized_sep= 938# The variables have the same names as the options, with 939# dashes changed to underlines. 940cache_file=/dev/null 941exec_prefix=NONE 942no_create= 943no_recursion= 944prefix=NONE 945program_prefix=NONE 946program_suffix=NONE 947program_transform_name=s,x,x, 948silent= 949site= 950srcdir= 951verbose= 952x_includes=NONE 953x_libraries=NONE 954 955# Installation directory options. 956# These are left unexpanded so users can "make install exec_prefix=/foo" 957# and all the variables that are supposed to be based on exec_prefix 958# by default will actually change. 959# Use braces instead of parens because sh, perl, etc. also accept them. 960# (The list follows the same order as the GNU Coding Standards.) 961bindir='${exec_prefix}/bin' 962sbindir='${exec_prefix}/sbin' 963libexecdir='${exec_prefix}/libexec' 964datarootdir='${prefix}/share' 965datadir='${datarootdir}' 966sysconfdir='${prefix}/etc' 967sharedstatedir='${prefix}/com' 968localstatedir='${prefix}/var' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1040 { (exit 1); exit 1; }; } 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"enable_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=no ;; 1051 1052 -docdir | --docdir | --docdi | --doc | --do) 1053 ac_prev=docdir ;; 1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1055 docdir=$ac_optarg ;; 1056 1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1058 ac_prev=dvidir ;; 1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1060 dvidir=$ac_optarg ;; 1061 1062 -enable-* | --enable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072"enable_$ac_useropt" 1073"*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=\$ac_optarg ;; 1078 1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1081 | --exec | --exe | --ex) 1082 ac_prev=exec_prefix ;; 1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1085 | --exec=* | --exe=* | --ex=*) 1086 exec_prefix=$ac_optarg ;; 1087 1088 -gas | --gas | --ga | --g) 1089 # Obsolete; use --with-gas. 1090 with_gas=yes ;; 1091 1092 -help | --help | --hel | --he | -h) 1093 ac_init_help=long ;; 1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1095 ac_init_help=recursive ;; 1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1097 ac_init_help=short ;; 1098 1099 -host | --host | --hos | --ho) 1100 ac_prev=host_alias ;; 1101 -host=* | --host=* | --hos=* | --ho=*) 1102 host_alias=$ac_optarg ;; 1103 1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1105 ac_prev=htmldir ;; 1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1107 | --ht=*) 1108 htmldir=$ac_optarg ;; 1109 1110 -includedir | --includedir | --includedi | --included | --include \ 1111 | --includ | --inclu | --incl | --inc) 1112 ac_prev=includedir ;; 1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1114 | --includ=* | --inclu=* | --incl=* | --inc=*) 1115 includedir=$ac_optarg ;; 1116 1117 -infodir | --infodir | --infodi | --infod | --info | --inf) 1118 ac_prev=infodir ;; 1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1120 infodir=$ac_optarg ;; 1121 1122 -libdir | --libdir | --libdi | --libd) 1123 ac_prev=libdir ;; 1124 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1125 libdir=$ac_optarg ;; 1126 1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1128 | --libexe | --libex | --libe) 1129 ac_prev=libexecdir ;; 1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1131 | --libexe=* | --libex=* | --libe=*) 1132 libexecdir=$ac_optarg ;; 1133 1134 -localedir | --localedir | --localedi | --localed | --locale) 1135 ac_prev=localedir ;; 1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1137 localedir=$ac_optarg ;; 1138 1139 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1140 | --localstate | --localstat | --localsta | --localst | --locals) 1141 ac_prev=localstatedir ;; 1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1144 localstatedir=$ac_optarg ;; 1145 1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1147 ac_prev=mandir ;; 1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1149 mandir=$ac_optarg ;; 1150 1151 -nfp | --nfp | --nf) 1152 # Obsolete; use --without-fp. 1153 with_fp=no ;; 1154 1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1156 | --no-cr | --no-c | -n) 1157 no_create=yes ;; 1158 1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1161 no_recursion=yes ;; 1162 1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1165 | --oldin | --oldi | --old | --ol | --o) 1166 ac_prev=oldincludedir ;; 1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1170 oldincludedir=$ac_optarg ;; 1171 1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1173 ac_prev=prefix ;; 1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1175 prefix=$ac_optarg ;; 1176 1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1178 | --program-pre | --program-pr | --program-p) 1179 ac_prev=program_prefix ;; 1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1182 program_prefix=$ac_optarg ;; 1183 1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1185 | --program-suf | --program-su | --program-s) 1186 ac_prev=program_suffix ;; 1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1189 program_suffix=$ac_optarg ;; 1190 1191 -program-transform-name | --program-transform-name \ 1192 | --program-transform-nam | --program-transform-na \ 1193 | --program-transform-n | --program-transform- \ 1194 | --program-transform | --program-transfor \ 1195 | --program-transfo | --program-transf \ 1196 | --program-trans | --program-tran \ 1197 | --progr-tra | --program-tr | --program-t) 1198 ac_prev=program_transform_name ;; 1199 -program-transform-name=* | --program-transform-name=* \ 1200 | --program-transform-nam=* | --program-transform-na=* \ 1201 | --program-transform-n=* | --program-transform-=* \ 1202 | --program-transform=* | --program-transfor=* \ 1203 | --program-transfo=* | --program-transf=* \ 1204 | --program-trans=* | --program-tran=* \ 1205 | --progr-tra=* | --program-tr=* | --program-t=*) 1206 program_transform_name=$ac_optarg ;; 1207 1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1209 ac_prev=pdfdir ;; 1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1211 pdfdir=$ac_optarg ;; 1212 1213 -psdir | --psdir | --psdi | --psd | --ps) 1214 ac_prev=psdir ;; 1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1216 psdir=$ac_optarg ;; 1217 1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1219 | -silent | --silent | --silen | --sile | --sil) 1220 silent=yes ;; 1221 1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1223 ac_prev=sbindir ;; 1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1225 | --sbi=* | --sb=*) 1226 sbindir=$ac_optarg ;; 1227 1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1230 | --sharedst | --shareds | --shared | --share | --shar \ 1231 | --sha | --sh) 1232 ac_prev=sharedstatedir ;; 1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1236 | --sha=* | --sh=*) 1237 sharedstatedir=$ac_optarg ;; 1238 1239 -site | --site | --sit) 1240 ac_prev=site ;; 1241 -site=* | --site=* | --sit=*) 1242 site=$ac_optarg ;; 1243 1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1245 ac_prev=srcdir ;; 1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1247 srcdir=$ac_optarg ;; 1248 1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1250 | --syscon | --sysco | --sysc | --sys | --sy) 1251 ac_prev=sysconfdir ;; 1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1254 sysconfdir=$ac_optarg ;; 1255 1256 -target | --target | --targe | --targ | --tar | --ta | --t) 1257 ac_prev=target_alias ;; 1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1259 target_alias=$ac_optarg ;; 1260 1261 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1262 verbose=yes ;; 1263 1264 -version | --version | --versio | --versi | --vers | -V) 1265 ac_init_version=: ;; 1266 1267 -with-* | --with-*) 1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1269 # Reject names that are not valid shell variable names. 1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1272 { (exit 1); exit 1; }; } 1273 ac_useropt_orig=$ac_useropt 1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1275 case $ac_user_opts in 1276 *" 1277"with_$ac_useropt" 1278"*) ;; 1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1280 ac_unrecognized_sep=', ';; 1281 esac 1282 eval with_$ac_useropt=\$ac_optarg ;; 1283 1284 -without-* | --without-*) 1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1286 # Reject names that are not valid shell variable names. 1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1289 { (exit 1); exit 1; }; } 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294"with_$ac_useropt" 1295"*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=no ;; 1300 1301 --x) 1302 # Obsolete; use --with-x. 1303 with_x=yes ;; 1304 1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1306 | --x-incl | --x-inc | --x-in | --x-i) 1307 ac_prev=x_includes ;; 1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1310 x_includes=$ac_optarg ;; 1311 1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1314 ac_prev=x_libraries ;; 1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1317 x_libraries=$ac_optarg ;; 1318 1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1320Try \`$0 --help' for more information." >&2 1321 { (exit 1); exit 1; }; } 1322 ;; 1323 1324 *=*) 1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1326 # Reject names that are not valid shell variable names. 1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1329 { (exit 1); exit 1; }; } 1330 eval $ac_envvar=\$ac_optarg 1331 export $ac_envvar ;; 1332 1333 *) 1334 # FIXME: should be removed in autoconf 3.0. 1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1339 ;; 1340 1341 esac 1342done 1343 1344if test -n "$ac_prev"; then 1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1347 { (exit 1); exit 1; }; } 1348fi 1349 1350if test -n "$ac_unrecognized_opts"; then 1351 case $enable_option_checking in 1352 no) ;; 1353 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1354 { (exit 1); exit 1; }; } ;; 1355 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1356 esac 1357fi 1358 1359# Check all directory arguments for consistency. 1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1361 datadir sysconfdir sharedstatedir localstatedir includedir \ 1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1363 libdir localedir mandir 1364do 1365 eval ac_val=\$$ac_var 1366 # Remove trailing slashes. 1367 case $ac_val in 1368 */ ) 1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1370 eval $ac_var=\$ac_val;; 1371 esac 1372 # Be sure to have absolute directory names. 1373 case $ac_val in 1374 [\\/$]* | ?:[\\/]* ) continue;; 1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1376 esac 1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1378 { (exit 1); exit 1; }; } 1379done 1380 1381# There might be people who depend on the old broken behavior: `$host' 1382# used to hold the argument of --host etc. 1383# FIXME: To remove some day. 1384build=$build_alias 1385host=$host_alias 1386target=$target_alias 1387 1388# FIXME: To remove some day. 1389if test "x$host_alias" != x; then 1390 if test "x$build_alias" = x; then 1391 cross_compiling=maybe 1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1393 If a cross compiler is detected then cross compile mode will be used." >&2 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397fi 1398 1399ac_tool_prefix= 1400test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402test "$silent" = yes && exec 6>/dev/null 1403 1404 1405ac_pwd=`pwd` && test -n "$ac_pwd" && 1406ac_ls_di=`ls -di .` && 1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1409 { (exit 1); exit 1; }; } 1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1412 { (exit 1); exit 1; }; } 1413 1414 1415# Find the source files, if location was not specified. 1416if test -z "$srcdir"; then 1417 ac_srcdir_defaulted=yes 1418 # Try the directory containing this script, then the parent directory. 1419 ac_confdir=`$as_dirname -- "$as_myself" || 1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1421 X"$as_myself" : 'X\(//\)[^/]' \| \ 1422 X"$as_myself" : 'X\(//\)$' \| \ 1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1424$as_echo X"$as_myself" | 1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1426 s//\1/ 1427 q 1428 } 1429 /^X\(\/\/\)[^/].*/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)$/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\).*/{ 1438 s//\1/ 1439 q 1440 } 1441 s/.*/./; q'` 1442 srcdir=$ac_confdir 1443 if test ! -r "$srcdir/$ac_unique_file"; then 1444 srcdir=.. 1445 fi 1446else 1447 ac_srcdir_defaulted=no 1448fi 1449if test ! -r "$srcdir/$ac_unique_file"; then 1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1452 { (exit 1); exit 1; }; } 1453fi 1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1455ac_abs_confdir=`( 1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1457 { (exit 1); exit 1; }; } 1458 pwd)` 1459# When building in place, set srcdir=. 1460if test "$ac_abs_confdir" = "$ac_pwd"; then 1461 srcdir=. 1462fi 1463# Remove unnecessary trailing slashes from srcdir. 1464# Double slashes in file names in object file debugging info 1465# mess up M-x gdb in Emacs. 1466case $srcdir in 1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1468esac 1469for ac_var in $ac_precious_vars; do 1470 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_env_${ac_var}_value=\$${ac_var} 1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1474done 1475 1476# 1477# Report the --help message. 1478# 1479if test "$ac_init_help" = "long"; then 1480 # Omit some internal or obsolete options to make the list less imposing. 1481 # This message is too long to be a string in the A/UX 3.1 sh. 1482 cat <<_ACEOF 1483\`configure' configures sqlite 3.8.9 to adapt to many kinds of systems. 1484 1485Usage: $0 [OPTION]... [VAR=VALUE]... 1486 1487To assign environment variables (e.g., CC, CFLAGS...), specify them as 1488VAR=VALUE. See below for descriptions of some of the useful variables. 1489 1490Defaults for the options are specified in brackets. 1491 1492Configuration: 1493 -h, --help display this help and exit 1494 --help=short display options specific to this package 1495 --help=recursive display the short help of all the included packages 1496 -V, --version display version information and exit 1497 -q, --quiet, --silent do not print \`checking...' messages 1498 --cache-file=FILE cache test results in FILE [disabled] 1499 -C, --config-cache alias for \`--cache-file=config.cache' 1500 -n, --no-create do not create output files 1501 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1502 1503Installation directories: 1504 --prefix=PREFIX install architecture-independent files in PREFIX 1505 [$ac_default_prefix] 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1507 [PREFIX] 1508 1509By default, \`make install' will install all the files in 1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1511an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1512for instance \`--prefix=\$HOME'. 1513 1514For better control, use the options below. 1515 1516Fine tuning of the installation directories: 1517 --bindir=DIR user executables [EPREFIX/bin] 1518 --sbindir=DIR system admin executables [EPREFIX/sbin] 1519 --libexecdir=DIR program executables [EPREFIX/libexec] 1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536_ACEOF 1537 1538 cat <<\_ACEOF 1539 1540System types: 1541 --build=BUILD configure for building on BUILD [guessed] 1542 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1543_ACEOF 1544fi 1545 1546if test -n "$ac_init_help"; then 1547 case $ac_init_help in 1548 short | recursive ) echo "Configuration of sqlite 3.8.9:";; 1549 esac 1550 cat <<\_ACEOF 1551 1552Optional Features: 1553 --disable-option-checking ignore unrecognized --enable/--with options 1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1556 --enable-shared[=PKGS] build shared libraries [default=yes] 1557 --enable-static[=PKGS] build static libraries [default=yes] 1558 --enable-fast-install[=PKGS] 1559 optimize for fast installation [default=yes] 1560 --disable-libtool-lock avoid locking (might break parallel builds) 1561 --disable-largefile omit support for large files 1562 --disable-threadsafe Disable mutexing 1563 --enable-releasemode Support libtool link to release mode 1564 --enable-tempstore Use an in-ram database for temporary tables 1565 (never,no,yes,always) 1566 --disable-tcl do not build TCL extension 1567 --disable-readline disable readline support [default=detect] 1568 --enable-debug enable debugging & verbose explain 1569 --disable-amalgamation Disable the amalgamation and instead build all files 1570 separately 1571 --disable-load-extension 1572 Disable loading of external extensions 1573 --enable-gcov Enable coverage testing using gcov 1574 1575Optional Packages: 1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1578 --with-pic try to use only PIC/non-PIC objects [default=use 1579 both] 1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1581 --with-tcl=DIR directory containing tcl configuration 1582 (tclConfig.sh) 1583 --with-readline-lib specify readline library 1584 --with-readline-inc specify readline include paths 1585 1586Some influential environment variables: 1587 CC C compiler command 1588 CFLAGS C compiler flags 1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1590 nonstandard directory <lib dir> 1591 LIBS libraries to pass to the linker, e.g. -l<library> 1592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1593 you have headers in a nonstandard directory <include dir> 1594 CPP C preprocessor 1595 TCLLIBDIR Where to install tcl plugin 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600_ACEOF 1601ac_status=$? 1602fi 1603 1604if test "$ac_init_help" = "recursive"; then 1605 # If there are subdirs, report their specific --help. 1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1607 test -d "$ac_dir" || 1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1609 continue 1610 ac_builddir=. 1611 1612case "$ac_dir" in 1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1614*) 1615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1616 # A ".." for each directory in $ac_dir_suffix. 1617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1618 case $ac_top_builddir_sub in 1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1621 esac ;; 1622esac 1623ac_abs_top_builddir=$ac_pwd 1624ac_abs_builddir=$ac_pwd$ac_dir_suffix 1625# for backward compatibility: 1626ac_top_builddir=$ac_top_build_prefix 1627 1628case $srcdir in 1629 .) # We are building in place. 1630 ac_srcdir=. 1631 ac_top_srcdir=$ac_top_builddir_sub 1632 ac_abs_top_srcdir=$ac_pwd ;; 1633 [\\/]* | ?:[\\/]* ) # Absolute name. 1634 ac_srcdir=$srcdir$ac_dir_suffix; 1635 ac_top_srcdir=$srcdir 1636 ac_abs_top_srcdir=$srcdir ;; 1637 *) # Relative name. 1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1639 ac_top_srcdir=$ac_top_build_prefix$srcdir 1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1641esac 1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1643 1644 cd "$ac_dir" || { ac_status=$?; continue; } 1645 # Check for guested configure. 1646 if test -f "$ac_srcdir/configure.gnu"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1649 elif test -f "$ac_srcdir/configure"; then 1650 echo && 1651 $SHELL "$ac_srcdir/configure" --help=recursive 1652 else 1653 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1654 fi || ac_status=$? 1655 cd "$ac_pwd" || { ac_status=$?; break; } 1656 done 1657fi 1658 1659test -n "$ac_init_help" && exit $ac_status 1660if $ac_init_version; then 1661 cat <<\_ACEOF 1662sqlite configure 3.8.9 1663generated by GNU Autoconf 2.62 1664 1665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16662002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1667This configure script is free software; the Free Software Foundation 1668gives unlimited permission to copy, distribute and modify it. 1669_ACEOF 1670 exit 1671fi 1672cat >config.log <<_ACEOF 1673This file contains any messages produced by compilers while 1674running configure, to aid debugging if configure makes a mistake. 1675 1676It was created by sqlite $as_me 3.8.9, which was 1677generated by GNU Autoconf 2.62. Invocation command line was 1678 1679 $ $0 $@ 1680 1681_ACEOF 1682exec 5>>config.log 1683{ 1684cat <<_ASUNAME 1685## --------- ## 1686## Platform. ## 1687## --------- ## 1688 1689hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1690uname -m = `(uname -m) 2>/dev/null || echo unknown` 1691uname -r = `(uname -r) 2>/dev/null || echo unknown` 1692uname -s = `(uname -s) 2>/dev/null || echo unknown` 1693uname -v = `(uname -v) 2>/dev/null || echo unknown` 1694 1695/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1696/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1697 1698/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1699/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1700/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1701/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1702/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1703/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1704/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1705 1706_ASUNAME 1707 1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1709for as_dir in $PATH 1710do 1711 IFS=$as_save_IFS 1712 test -z "$as_dir" && as_dir=. 1713 $as_echo "PATH: $as_dir" 1714done 1715IFS=$as_save_IFS 1716 1717} >&5 1718 1719cat >&5 <<_ACEOF 1720 1721 1722## ----------- ## 1723## Core tests. ## 1724## ----------- ## 1725 1726_ACEOF 1727 1728 1729# Keep a trace of the command line. 1730# Strip out --no-create and --no-recursion so they do not pile up. 1731# Strip out --silent because we don't want to record it for future runs. 1732# Also quote any args containing shell meta-characters. 1733# Make two passes to allow for proper duplicate-argument suppression. 1734ac_configure_args= 1735ac_configure_args0= 1736ac_configure_args1= 1737ac_must_keep_next=false 1738for ac_pass in 1 2 1739do 1740 for ac_arg 1741 do 1742 case $ac_arg in 1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1745 | -silent | --silent | --silen | --sile | --sil) 1746 continue ;; 1747 *\'*) 1748 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1749 esac 1750 case $ac_pass in 1751 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1752 2) 1753 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1754 if test $ac_must_keep_next = true; then 1755 ac_must_keep_next=false # Got value, back to normal. 1756 else 1757 case $ac_arg in 1758 *=* | --config-cache | -C | -disable-* | --disable-* \ 1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1761 | -with-* | --with-* | -without-* | --without-* | --x) 1762 case "$ac_configure_args0 " in 1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1764 esac 1765 ;; 1766 -* ) ac_must_keep_next=true ;; 1767 esac 1768 fi 1769 ac_configure_args="$ac_configure_args '$ac_arg'" 1770 ;; 1771 esac 1772 done 1773done 1774$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1775$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1776 1777# When interrupted or exit'd, cleanup temporary files, and complete 1778# config.log. We remove comments because anyway the quotes in there 1779# would cause problems or look ugly. 1780# WARNING: Use '\'' to represent an apostrophe within the trap. 1781# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1782trap 'exit_status=$? 1783 # Save into config.log some information that might help in debugging. 1784 { 1785 echo 1786 1787 cat <<\_ASBOX 1788## ---------------- ## 1789## Cache variables. ## 1790## ---------------- ## 1791_ASBOX 1792 echo 1793 # The following way of writing the cache mishandles newlines in values, 1794( 1795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1796 eval ac_val=\$$ac_var 1797 case $ac_val in #( 1798 *${as_nl}*) 1799 case $ac_var in #( 1800 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1801$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1802 esac 1803 case $ac_var in #( 1804 _ | IFS | as_nl) ;; #( 1805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1806 *) $as_unset $ac_var ;; 1807 esac ;; 1808 esac 1809 done 1810 (set) 2>&1 | 1811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1812 *${as_nl}ac_space=\ *) 1813 sed -n \ 1814 "s/'\''/'\''\\\\'\'''\''/g; 1815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1816 ;; #( 1817 *) 1818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1819 ;; 1820 esac | 1821 sort 1822) 1823 echo 1824 1825 cat <<\_ASBOX 1826## ----------------- ## 1827## Output variables. ## 1828## ----------------- ## 1829_ASBOX 1830 echo 1831 for ac_var in $ac_subst_vars 1832 do 1833 eval ac_val=\$$ac_var 1834 case $ac_val in 1835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1836 esac 1837 $as_echo "$ac_var='\''$ac_val'\''" 1838 done | sort 1839 echo 1840 1841 if test -n "$ac_subst_files"; then 1842 cat <<\_ASBOX 1843## ------------------- ## 1844## File substitutions. ## 1845## ------------------- ## 1846_ASBOX 1847 echo 1848 for ac_var in $ac_subst_files 1849 do 1850 eval ac_val=\$$ac_var 1851 case $ac_val in 1852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1853 esac 1854 $as_echo "$ac_var='\''$ac_val'\''" 1855 done | sort 1856 echo 1857 fi 1858 1859 if test -s confdefs.h; then 1860 cat <<\_ASBOX 1861## ----------- ## 1862## confdefs.h. ## 1863## ----------- ## 1864_ASBOX 1865 echo 1866 cat confdefs.h 1867 echo 1868 fi 1869 test "$ac_signal" != 0 && 1870 $as_echo "$as_me: caught signal $ac_signal" 1871 $as_echo "$as_me: exit $exit_status" 1872 } >&5 1873 rm -f core *.core core.conftest.* && 1874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1875 exit $exit_status 1876' 0 1877for ac_signal in 1 2 13 15; do 1878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1879done 1880ac_signal=0 1881 1882# confdefs.h avoids OS command line length limits that DEFS can exceed. 1883rm -f -r conftest* confdefs.h 1884 1885# Predefined preprocessor variables. 1886 1887cat >>confdefs.h <<_ACEOF 1888#define PACKAGE_NAME "$PACKAGE_NAME" 1889_ACEOF 1890 1891 1892cat >>confdefs.h <<_ACEOF 1893#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1894_ACEOF 1895 1896 1897cat >>confdefs.h <<_ACEOF 1898#define PACKAGE_VERSION "$PACKAGE_VERSION" 1899_ACEOF 1900 1901 1902cat >>confdefs.h <<_ACEOF 1903#define PACKAGE_STRING "$PACKAGE_STRING" 1904_ACEOF 1905 1906 1907cat >>confdefs.h <<_ACEOF 1908#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1909_ACEOF 1910 1911 1912# Let the site file select an alternate cache file if it wants to. 1913# Prefer an explicitly selected file to automatically selected ones. 1914ac_site_file1=NONE 1915ac_site_file2=NONE 1916if test -n "$CONFIG_SITE"; then 1917 ac_site_file1=$CONFIG_SITE 1918elif test "x$prefix" != xNONE; then 1919 ac_site_file1=$prefix/share/config.site 1920 ac_site_file2=$prefix/etc/config.site 1921else 1922 ac_site_file1=$ac_default_prefix/share/config.site 1923 ac_site_file2=$ac_default_prefix/etc/config.site 1924fi 1925for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1926do 1927 test "x$ac_site_file" = xNONE && continue 1928 if test -r "$ac_site_file"; then 1929 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1930$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1931 sed 's/^/| /' "$ac_site_file" >&5 1932 . "$ac_site_file" 1933 fi 1934done 1935 1936if test -r "$cache_file"; then 1937 # Some versions of bash will fail to source /dev/null (special 1938 # files actually), so we avoid doing that. 1939 if test -f "$cache_file"; then 1940 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1941$as_echo "$as_me: loading cache $cache_file" >&6;} 1942 case $cache_file in 1943 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1944 *) . "./$cache_file";; 1945 esac 1946 fi 1947else 1948 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1949$as_echo "$as_me: creating cache $cache_file" >&6;} 1950 >$cache_file 1951fi 1952 1953# Check that the precious variables saved in the cache have kept the same 1954# value. 1955ac_cache_corrupted=false 1956for ac_var in $ac_precious_vars; do 1957 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1958 eval ac_new_set=\$ac_env_${ac_var}_set 1959 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1960 eval ac_new_val=\$ac_env_${ac_var}_value 1961 case $ac_old_set,$ac_new_set in 1962 set,) 1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1964$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1965 ac_cache_corrupted=: ;; 1966 ,set) 1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1968$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1969 ac_cache_corrupted=: ;; 1970 ,);; 1971 *) 1972 if test "x$ac_old_val" != "x$ac_new_val"; then 1973 # differences in whitespace do not lead to failure. 1974 ac_old_val_w=`echo x $ac_old_val` 1975 ac_new_val_w=`echo x $ac_new_val` 1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1978$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1979 ac_cache_corrupted=: 1980 else 1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1982$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1983 eval $ac_var=\$ac_old_val 1984 fi 1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1986$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1988$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1989 fi;; 1990 esac 1991 # Pass precious variables to config.status. 1992 if test "$ac_new_set" = set; then 1993 case $ac_new_val in 1994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1995 *) ac_arg=$ac_var=$ac_new_val ;; 1996 esac 1997 case " $ac_configure_args " in 1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2000 esac 2001 fi 2002done 2003if $ac_cache_corrupted; then 2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2005$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2007$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2008 { (exit 1); exit 1; }; } 2009fi 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035ac_ext=c 2036ac_cpp='$CPP $CPPFLAGS' 2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2039ac_compiler_gnu=$ac_cv_c_compiler_gnu 2040 2041 2042 2043sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2044if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2045{ { $as_echo "$as_me:$LINENO: error: configure script is out of date: 2046 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2047 top level VERSION file = $sqlite_version_sanity_check 2048please regen with autoconf" >&5 2049$as_echo "$as_me: error: configure script is out of date: 2050 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2051 top level VERSION file = $sqlite_version_sanity_check 2052please regen with autoconf" >&2;} 2053 { (exit 1); exit 1; }; } 2054fi 2055 2056######### 2057# Programs needed 2058# 2059case `pwd` in 2060 *\ * | *\ *) 2061 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2062$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2063esac 2064 2065 2066 2067macro_version='2.2.6' 2068macro_revision='1.3012' 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082ltmain="$ac_aux_dir/ltmain.sh" 2083 2084ac_aux_dir= 2085for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2086 if test -f "$ac_dir/install-sh"; then 2087 ac_aux_dir=$ac_dir 2088 ac_install_sh="$ac_aux_dir/install-sh -c" 2089 break 2090 elif test -f "$ac_dir/install.sh"; then 2091 ac_aux_dir=$ac_dir 2092 ac_install_sh="$ac_aux_dir/install.sh -c" 2093 break 2094 elif test -f "$ac_dir/shtool"; then 2095 ac_aux_dir=$ac_dir 2096 ac_install_sh="$ac_aux_dir/shtool install -c" 2097 break 2098 fi 2099done 2100if test -z "$ac_aux_dir"; then 2101 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2102$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2103 { (exit 1); exit 1; }; } 2104fi 2105 2106# These three variables are undocumented and unsupported, 2107# and are intended to be withdrawn in a future Autoconf release. 2108# They can cause serious problems if a builder's source tree is in a directory 2109# whose full name contains unusual characters. 2110ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2111ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2112ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2113 2114 2115# Make sure we can run config.sub. 2116$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2117 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2118$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2119 { (exit 1); exit 1; }; } 2120 2121{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2122$as_echo_n "checking build system type... " >&6; } 2123if test "${ac_cv_build+set}" = set; then 2124 $as_echo_n "(cached) " >&6 2125else 2126 ac_build_alias=$build_alias 2127test "x$ac_build_alias" = x && 2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2129test "x$ac_build_alias" = x && 2130 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2131$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2132 { (exit 1); exit 1; }; } 2133ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2134 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2135$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2136 { (exit 1); exit 1; }; } 2137 2138fi 2139{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2140$as_echo "$ac_cv_build" >&6; } 2141case $ac_cv_build in 2142*-*-*) ;; 2143*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2144$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2145 { (exit 1); exit 1; }; };; 2146esac 2147build=$ac_cv_build 2148ac_save_IFS=$IFS; IFS='-' 2149set x $ac_cv_build 2150shift 2151build_cpu=$1 2152build_vendor=$2 2153shift; shift 2154# Remember, the first character of IFS is used to create $*, 2155# except with old shells: 2156build_os=$* 2157IFS=$ac_save_IFS 2158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2159 2160 2161{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2162$as_echo_n "checking host system type... " >&6; } 2163if test "${ac_cv_host+set}" = set; then 2164 $as_echo_n "(cached) " >&6 2165else 2166 if test "x$host_alias" = x; then 2167 ac_cv_host=$ac_cv_build 2168else 2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2170 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2171$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2172 { (exit 1); exit 1; }; } 2173fi 2174 2175fi 2176{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2177$as_echo "$ac_cv_host" >&6; } 2178case $ac_cv_host in 2179*-*-*) ;; 2180*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2181$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2182 { (exit 1); exit 1; }; };; 2183esac 2184host=$ac_cv_host 2185ac_save_IFS=$IFS; IFS='-' 2186set x $ac_cv_host 2187shift 2188host_cpu=$1 2189host_vendor=$2 2190shift; shift 2191# Remember, the first character of IFS is used to create $*, 2192# except with old shells: 2193host_os=$* 2194IFS=$ac_save_IFS 2195case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2196 2197 2198ac_ext=c 2199ac_cpp='$CPP $CPPFLAGS' 2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2202ac_compiler_gnu=$ac_cv_c_compiler_gnu 2203if test -n "$ac_tool_prefix"; then 2204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2205set dummy ${ac_tool_prefix}gcc; ac_word=$2 2206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2207$as_echo_n "checking for $ac_word... " >&6; } 2208if test "${ac_cv_prog_CC+set}" = set; then 2209 $as_echo_n "(cached) " >&6 2210else 2211 if test -n "$CC"; then 2212 ac_cv_prog_CC="$CC" # Let the user override the test. 2213else 2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2215for as_dir in $PATH 2216do 2217 IFS=$as_save_IFS 2218 test -z "$as_dir" && as_dir=. 2219 for ac_exec_ext in '' $ac_executable_extensions; do 2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2221 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2223 break 2 2224 fi 2225done 2226done 2227IFS=$as_save_IFS 2228 2229fi 2230fi 2231CC=$ac_cv_prog_CC 2232if test -n "$CC"; then 2233 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2234$as_echo "$CC" >&6; } 2235else 2236 { $as_echo "$as_me:$LINENO: result: no" >&5 2237$as_echo "no" >&6; } 2238fi 2239 2240 2241fi 2242if test -z "$ac_cv_prog_CC"; then 2243 ac_ct_CC=$CC 2244 # Extract the first word of "gcc", so it can be a program name with args. 2245set dummy gcc; ac_word=$2 2246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2247$as_echo_n "checking for $ac_word... " >&6; } 2248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2249 $as_echo_n "(cached) " >&6 2250else 2251 if test -n "$ac_ct_CC"; then 2252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2253else 2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2255for as_dir in $PATH 2256do 2257 IFS=$as_save_IFS 2258 test -z "$as_dir" && as_dir=. 2259 for ac_exec_ext in '' $ac_executable_extensions; do 2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2261 ac_cv_prog_ac_ct_CC="gcc" 2262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2263 break 2 2264 fi 2265done 2266done 2267IFS=$as_save_IFS 2268 2269fi 2270fi 2271ac_ct_CC=$ac_cv_prog_ac_ct_CC 2272if test -n "$ac_ct_CC"; then 2273 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2274$as_echo "$ac_ct_CC" >&6; } 2275else 2276 { $as_echo "$as_me:$LINENO: result: no" >&5 2277$as_echo "no" >&6; } 2278fi 2279 2280 if test "x$ac_ct_CC" = x; then 2281 CC="" 2282 else 2283 case $cross_compiling:$ac_tool_warned in 2284yes:) 2285{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2286whose name does not start with the host triplet. If you think this 2287configuration is useful to you, please write to autoconf@gnu.org." >&5 2288$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2289whose name does not start with the host triplet. If you think this 2290configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2291ac_tool_warned=yes ;; 2292esac 2293 CC=$ac_ct_CC 2294 fi 2295else 2296 CC="$ac_cv_prog_CC" 2297fi 2298 2299if test -z "$CC"; then 2300 if test -n "$ac_tool_prefix"; then 2301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2302set dummy ${ac_tool_prefix}cc; ac_word=$2 2303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2304$as_echo_n "checking for $ac_word... " >&6; } 2305if test "${ac_cv_prog_CC+set}" = set; then 2306 $as_echo_n "(cached) " >&6 2307else 2308 if test -n "$CC"; then 2309 ac_cv_prog_CC="$CC" # Let the user override the test. 2310else 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2318 ac_cv_prog_CC="${ac_tool_prefix}cc" 2319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2320 break 2 2321 fi 2322done 2323done 2324IFS=$as_save_IFS 2325 2326fi 2327fi 2328CC=$ac_cv_prog_CC 2329if test -n "$CC"; then 2330 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2331$as_echo "$CC" >&6; } 2332else 2333 { $as_echo "$as_me:$LINENO: result: no" >&5 2334$as_echo "no" >&6; } 2335fi 2336 2337 2338 fi 2339fi 2340if test -z "$CC"; then 2341 # Extract the first word of "cc", so it can be a program name with args. 2342set dummy cc; ac_word=$2 2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2344$as_echo_n "checking for $ac_word... " >&6; } 2345if test "${ac_cv_prog_CC+set}" = set; then 2346 $as_echo_n "(cached) " >&6 2347else 2348 if test -n "$CC"; then 2349 ac_cv_prog_CC="$CC" # Let the user override the test. 2350else 2351 ac_prog_rejected=no 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2360 ac_prog_rejected=yes 2361 continue 2362 fi 2363 ac_cv_prog_CC="cc" 2364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2365 break 2 2366 fi 2367done 2368done 2369IFS=$as_save_IFS 2370 2371if test $ac_prog_rejected = yes; then 2372 # We found a bogon in the path, so make sure we never use it. 2373 set dummy $ac_cv_prog_CC 2374 shift 2375 if test $# != 0; then 2376 # We chose a different compiler from the bogus one. 2377 # However, it has the same basename, so the bogon will be chosen 2378 # first if we set CC to just the basename; use the full file name. 2379 shift 2380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2381 fi 2382fi 2383fi 2384fi 2385CC=$ac_cv_prog_CC 2386if test -n "$CC"; then 2387 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2388$as_echo "$CC" >&6; } 2389else 2390 { $as_echo "$as_me:$LINENO: result: no" >&5 2391$as_echo "no" >&6; } 2392fi 2393 2394 2395fi 2396if test -z "$CC"; then 2397 if test -n "$ac_tool_prefix"; then 2398 for ac_prog in cl.exe 2399 do 2400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2401set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2403$as_echo_n "checking for $ac_word... " >&6; } 2404if test "${ac_cv_prog_CC+set}" = set; then 2405 $as_echo_n "(cached) " >&6 2406else 2407 if test -n "$CC"; then 2408 ac_cv_prog_CC="$CC" # Let the user override the test. 2409else 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 for ac_exec_ext in '' $ac_executable_extensions; do 2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2419 break 2 2420 fi 2421done 2422done 2423IFS=$as_save_IFS 2424 2425fi 2426fi 2427CC=$ac_cv_prog_CC 2428if test -n "$CC"; then 2429 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2430$as_echo "$CC" >&6; } 2431else 2432 { $as_echo "$as_me:$LINENO: result: no" >&5 2433$as_echo "no" >&6; } 2434fi 2435 2436 2437 test -n "$CC" && break 2438 done 2439fi 2440if test -z "$CC"; then 2441 ac_ct_CC=$CC 2442 for ac_prog in cl.exe 2443do 2444 # Extract the first word of "$ac_prog", so it can be a program name with args. 2445set dummy $ac_prog; ac_word=$2 2446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2447$as_echo_n "checking for $ac_word... " >&6; } 2448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test -n "$ac_ct_CC"; then 2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2453else 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2461 ac_cv_prog_ac_ct_CC="$ac_prog" 2462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2463 break 2 2464 fi 2465done 2466done 2467IFS=$as_save_IFS 2468 2469fi 2470fi 2471ac_ct_CC=$ac_cv_prog_ac_ct_CC 2472if test -n "$ac_ct_CC"; then 2473 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2474$as_echo "$ac_ct_CC" >&6; } 2475else 2476 { $as_echo "$as_me:$LINENO: result: no" >&5 2477$as_echo "no" >&6; } 2478fi 2479 2480 2481 test -n "$ac_ct_CC" && break 2482done 2483 2484 if test "x$ac_ct_CC" = x; then 2485 CC="" 2486 else 2487 case $cross_compiling:$ac_tool_warned in 2488yes:) 2489{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2490whose name does not start with the host triplet. If you think this 2491configuration is useful to you, please write to autoconf@gnu.org." >&5 2492$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2493whose name does not start with the host triplet. If you think this 2494configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2495ac_tool_warned=yes ;; 2496esac 2497 CC=$ac_ct_CC 2498 fi 2499fi 2500 2501fi 2502 2503 2504test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2505See \`config.log' for more details." >&5 2506$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2507See \`config.log' for more details." >&2;} 2508 { (exit 1); exit 1; }; } 2509 2510# Provide some information about the compiler. 2511$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2512set X $ac_compile 2513ac_compiler=$2 2514{ (ac_try="$ac_compiler --version >&5" 2515case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518esac 2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2520$as_echo "$ac_try_echo") >&5 2521 (eval "$ac_compiler --version >&5") 2>&5 2522 ac_status=$? 2523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); } 2525{ (ac_try="$ac_compiler -v >&5" 2526case "(($ac_try" in 2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 *) ac_try_echo=$ac_try;; 2529esac 2530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2531$as_echo "$ac_try_echo") >&5 2532 (eval "$ac_compiler -v >&5") 2>&5 2533 ac_status=$? 2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); } 2536{ (ac_try="$ac_compiler -V >&5" 2537case "(($ac_try" in 2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2539 *) ac_try_echo=$ac_try;; 2540esac 2541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2542$as_echo "$ac_try_echo") >&5 2543 (eval "$ac_compiler -V >&5") 2>&5 2544 ac_status=$? 2545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); } 2547 2548cat >conftest.$ac_ext <<_ACEOF 2549/* confdefs.h. */ 2550_ACEOF 2551cat confdefs.h >>conftest.$ac_ext 2552cat >>conftest.$ac_ext <<_ACEOF 2553/* end confdefs.h. */ 2554 2555int 2556main () 2557{ 2558 2559 ; 2560 return 0; 2561} 2562_ACEOF 2563ac_clean_files_save=$ac_clean_files 2564ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2565# Try to create an executable without -o first, disregard a.out. 2566# It will help us diagnose broken compilers, and finding out an intuition 2567# of exeext. 2568{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2569$as_echo_n "checking for C compiler default output file name... " >&6; } 2570ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2571 2572# The possible output files: 2573ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2574 2575ac_rmfiles= 2576for ac_file in $ac_files 2577do 2578 case $ac_file in 2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2580 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2581 esac 2582done 2583rm -f $ac_rmfiles 2584 2585if { (ac_try="$ac_link_default" 2586case "(($ac_try" in 2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2588 *) ac_try_echo=$ac_try;; 2589esac 2590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2591$as_echo "$ac_try_echo") >&5 2592 (eval "$ac_link_default") 2>&5 2593 ac_status=$? 2594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2595 (exit $ac_status); }; then 2596 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2597# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2598# in a Makefile. We should not override ac_cv_exeext if it was cached, 2599# so that the user can short-circuit this test for compilers unknown to 2600# Autoconf. 2601for ac_file in $ac_files '' 2602do 2603 test -f "$ac_file" || continue 2604 case $ac_file in 2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2606 ;; 2607 [ab].out ) 2608 # We found the default executable, but exeext='' is most 2609 # certainly right. 2610 break;; 2611 *.* ) 2612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2613 then :; else 2614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2615 fi 2616 # We set ac_cv_exeext here because the later test for it is not 2617 # safe: cross compilers may not add the suffix if given an `-o' 2618 # argument, so we may need to know it at that point already. 2619 # Even if this section looks crufty: it has the advantage of 2620 # actually working. 2621 break;; 2622 * ) 2623 break;; 2624 esac 2625done 2626test "$ac_cv_exeext" = no && ac_cv_exeext= 2627 2628else 2629 ac_file='' 2630fi 2631 2632{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2633$as_echo "$ac_file" >&6; } 2634if test -z "$ac_file"; then 2635 $as_echo "$as_me: failed program was:" >&5 2636sed 's/^/| /' conftest.$ac_ext >&5 2637 2638{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2639See \`config.log' for more details." >&5 2640$as_echo "$as_me: error: C compiler cannot create executables 2641See \`config.log' for more details." >&2;} 2642 { (exit 77); exit 77; }; } 2643fi 2644 2645ac_exeext=$ac_cv_exeext 2646 2647# Check that the compiler produces executables we can run. If not, either 2648# the compiler is broken, or we cross compile. 2649{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2650$as_echo_n "checking whether the C compiler works... " >&6; } 2651# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2652# If not cross compiling, check that we can run a simple program. 2653if test "$cross_compiling" != yes; then 2654 if { ac_try='./$ac_file' 2655 { (case "(($ac_try" in 2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2657 *) ac_try_echo=$ac_try;; 2658esac 2659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2660$as_echo "$ac_try_echo") >&5 2661 (eval "$ac_try") 2>&5 2662 ac_status=$? 2663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); }; }; then 2665 cross_compiling=no 2666 else 2667 if test "$cross_compiling" = maybe; then 2668 cross_compiling=yes 2669 else 2670 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2671If you meant to cross compile, use \`--host'. 2672See \`config.log' for more details." >&5 2673$as_echo "$as_me: error: cannot run C compiled programs. 2674If you meant to cross compile, use \`--host'. 2675See \`config.log' for more details." >&2;} 2676 { (exit 1); exit 1; }; } 2677 fi 2678 fi 2679fi 2680{ $as_echo "$as_me:$LINENO: result: yes" >&5 2681$as_echo "yes" >&6; } 2682 2683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2684ac_clean_files=$ac_clean_files_save 2685# Check that the compiler produces executables we can run. If not, either 2686# the compiler is broken, or we cross compile. 2687{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2688$as_echo_n "checking whether we are cross compiling... " >&6; } 2689{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2690$as_echo "$cross_compiling" >&6; } 2691 2692{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2693$as_echo_n "checking for suffix of executables... " >&6; } 2694if { (ac_try="$ac_link" 2695case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2700$as_echo "$ac_try_echo") >&5 2701 (eval "$ac_link") 2>&5 2702 ac_status=$? 2703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; then 2705 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2706# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2707# work properly (i.e., refer to `conftest.exe'), while it won't with 2708# `rm'. 2709for ac_file in conftest.exe conftest conftest.*; do 2710 test -f "$ac_file" || continue 2711 case $ac_file in 2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2714 break;; 2715 * ) break;; 2716 esac 2717done 2718else 2719 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2720See \`config.log' for more details." >&5 2721$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2722See \`config.log' for more details." >&2;} 2723 { (exit 1); exit 1; }; } 2724fi 2725 2726rm -f conftest$ac_cv_exeext 2727{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2728$as_echo "$ac_cv_exeext" >&6; } 2729 2730rm -f conftest.$ac_ext 2731EXEEXT=$ac_cv_exeext 2732ac_exeext=$EXEEXT 2733{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2734$as_echo_n "checking for suffix of object files... " >&6; } 2735if test "${ac_cv_objext+set}" = set; then 2736 $as_echo_n "(cached) " >&6 2737else 2738 cat >conftest.$ac_ext <<_ACEOF 2739/* confdefs.h. */ 2740_ACEOF 2741cat confdefs.h >>conftest.$ac_ext 2742cat >>conftest.$ac_ext <<_ACEOF 2743/* end confdefs.h. */ 2744 2745int 2746main () 2747{ 2748 2749 ; 2750 return 0; 2751} 2752_ACEOF 2753rm -f conftest.o conftest.obj 2754if { (ac_try="$ac_compile" 2755case "(($ac_try" in 2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2757 *) ac_try_echo=$ac_try;; 2758esac 2759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2760$as_echo "$ac_try_echo") >&5 2761 (eval "$ac_compile") 2>&5 2762 ac_status=$? 2763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; then 2765 for ac_file in conftest.o conftest.obj conftest.*; do 2766 test -f "$ac_file" || continue; 2767 case $ac_file in 2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2770 break;; 2771 esac 2772done 2773else 2774 $as_echo "$as_me: failed program was:" >&5 2775sed 's/^/| /' conftest.$ac_ext >&5 2776 2777{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2778See \`config.log' for more details." >&5 2779$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2780See \`config.log' for more details." >&2;} 2781 { (exit 1); exit 1; }; } 2782fi 2783 2784rm -f conftest.$ac_cv_objext conftest.$ac_ext 2785fi 2786{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2787$as_echo "$ac_cv_objext" >&6; } 2788OBJEXT=$ac_cv_objext 2789ac_objext=$OBJEXT 2790{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2791$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2792if test "${ac_cv_c_compiler_gnu+set}" = set; then 2793 $as_echo_n "(cached) " >&6 2794else 2795 cat >conftest.$ac_ext <<_ACEOF 2796/* confdefs.h. */ 2797_ACEOF 2798cat confdefs.h >>conftest.$ac_ext 2799cat >>conftest.$ac_ext <<_ACEOF 2800/* end confdefs.h. */ 2801 2802int 2803main () 2804{ 2805#ifndef __GNUC__ 2806 choke me 2807#endif 2808 2809 ; 2810 return 0; 2811} 2812_ACEOF 2813rm -f conftest.$ac_objext 2814if { (ac_try="$ac_compile" 2815case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2820$as_echo "$ac_try_echo") >&5 2821 (eval "$ac_compile") 2>conftest.er1 2822 ac_status=$? 2823 grep -v '^ *+' conftest.er1 >conftest.err 2824 rm -f conftest.er1 2825 cat conftest.err >&5 2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 (exit $ac_status); } && { 2828 test -z "$ac_c_werror_flag" || 2829 test ! -s conftest.err 2830 } && test -s conftest.$ac_objext; then 2831 ac_compiler_gnu=yes 2832else 2833 $as_echo "$as_me: failed program was:" >&5 2834sed 's/^/| /' conftest.$ac_ext >&5 2835 2836 ac_compiler_gnu=no 2837fi 2838 2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2840ac_cv_c_compiler_gnu=$ac_compiler_gnu 2841 2842fi 2843{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2844$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2845if test $ac_compiler_gnu = yes; then 2846 GCC=yes 2847else 2848 GCC= 2849fi 2850ac_test_CFLAGS=${CFLAGS+set} 2851ac_save_CFLAGS=$CFLAGS 2852{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2853$as_echo_n "checking whether $CC accepts -g... " >&6; } 2854if test "${ac_cv_prog_cc_g+set}" = set; then 2855 $as_echo_n "(cached) " >&6 2856else 2857 ac_save_c_werror_flag=$ac_c_werror_flag 2858 ac_c_werror_flag=yes 2859 ac_cv_prog_cc_g=no 2860 CFLAGS="-g" 2861 cat >conftest.$ac_ext <<_ACEOF 2862/* confdefs.h. */ 2863_ACEOF 2864cat confdefs.h >>conftest.$ac_ext 2865cat >>conftest.$ac_ext <<_ACEOF 2866/* end confdefs.h. */ 2867 2868int 2869main () 2870{ 2871 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876rm -f conftest.$ac_objext 2877if { (ac_try="$ac_compile" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2883$as_echo "$ac_try_echo") >&5 2884 (eval "$ac_compile") 2>conftest.er1 2885 ac_status=$? 2886 grep -v '^ *+' conftest.er1 >conftest.err 2887 rm -f conftest.er1 2888 cat conftest.err >&5 2889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); } && { 2891 test -z "$ac_c_werror_flag" || 2892 test ! -s conftest.err 2893 } && test -s conftest.$ac_objext; then 2894 ac_cv_prog_cc_g=yes 2895else 2896 $as_echo "$as_me: failed program was:" >&5 2897sed 's/^/| /' conftest.$ac_ext >&5 2898 2899 CFLAGS="" 2900 cat >conftest.$ac_ext <<_ACEOF 2901/* confdefs.h. */ 2902_ACEOF 2903cat confdefs.h >>conftest.$ac_ext 2904cat >>conftest.$ac_ext <<_ACEOF 2905/* end confdefs.h. */ 2906 2907int 2908main () 2909{ 2910 2911 ; 2912 return 0; 2913} 2914_ACEOF 2915rm -f conftest.$ac_objext 2916if { (ac_try="$ac_compile" 2917case "(($ac_try" in 2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2919 *) ac_try_echo=$ac_try;; 2920esac 2921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2922$as_echo "$ac_try_echo") >&5 2923 (eval "$ac_compile") 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } && { 2930 test -z "$ac_c_werror_flag" || 2931 test ! -s conftest.err 2932 } && test -s conftest.$ac_objext; then 2933 : 2934else 2935 $as_echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938 ac_c_werror_flag=$ac_save_c_werror_flag 2939 CFLAGS="-g" 2940 cat >conftest.$ac_ext <<_ACEOF 2941/* confdefs.h. */ 2942_ACEOF 2943cat confdefs.h >>conftest.$ac_ext 2944cat >>conftest.$ac_ext <<_ACEOF 2945/* end confdefs.h. */ 2946 2947int 2948main () 2949{ 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955rm -f conftest.$ac_objext 2956if { (ac_try="$ac_compile" 2957case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960esac 2961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2962$as_echo "$ac_try_echo") >&5 2963 (eval "$ac_compile") 2>conftest.er1 2964 ac_status=$? 2965 grep -v '^ *+' conftest.er1 >conftest.err 2966 rm -f conftest.er1 2967 cat conftest.err >&5 2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); } && { 2970 test -z "$ac_c_werror_flag" || 2971 test ! -s conftest.err 2972 } && test -s conftest.$ac_objext; then 2973 ac_cv_prog_cc_g=yes 2974else 2975 $as_echo "$as_me: failed program was:" >&5 2976sed 's/^/| /' conftest.$ac_ext >&5 2977 2978 2979fi 2980 2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2982fi 2983 2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2985fi 2986 2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2988 ac_c_werror_flag=$ac_save_c_werror_flag 2989fi 2990{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2991$as_echo "$ac_cv_prog_cc_g" >&6; } 2992if test "$ac_test_CFLAGS" = set; then 2993 CFLAGS=$ac_save_CFLAGS 2994elif test $ac_cv_prog_cc_g = yes; then 2995 if test "$GCC" = yes; then 2996 CFLAGS="-g -O2" 2997 else 2998 CFLAGS="-g" 2999 fi 3000else 3001 if test "$GCC" = yes; then 3002 CFLAGS="-O2" 3003 else 3004 CFLAGS= 3005 fi 3006fi 3007{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3008$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3009if test "${ac_cv_prog_cc_c89+set}" = set; then 3010 $as_echo_n "(cached) " >&6 3011else 3012 ac_cv_prog_cc_c89=no 3013ac_save_CC=$CC 3014cat >conftest.$ac_ext <<_ACEOF 3015/* confdefs.h. */ 3016_ACEOF 3017cat confdefs.h >>conftest.$ac_ext 3018cat >>conftest.$ac_ext <<_ACEOF 3019/* end confdefs.h. */ 3020#include <stdarg.h> 3021#include <stdio.h> 3022#include <sys/types.h> 3023#include <sys/stat.h> 3024/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3025struct buf { int x; }; 3026FILE * (*rcsopen) (struct buf *, struct stat *, int); 3027static char *e (p, i) 3028 char **p; 3029 int i; 3030{ 3031 return p[i]; 3032} 3033static char *f (char * (*g) (char **, int), char **p, ...) 3034{ 3035 char *s; 3036 va_list v; 3037 va_start (v,p); 3038 s = g (p, va_arg (v,int)); 3039 va_end (v); 3040 return s; 3041} 3042 3043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3044 function prototypes and stuff, but not '\xHH' hex character constants. 3045 These don't provoke an error unfortunately, instead are silently treated 3046 as 'x'. The following induces an error, until -std is added to get 3047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3048 array size at least. It's necessary to write '\x00'==0 to get something 3049 that's true only with -std. */ 3050int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3051 3052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3053 inside strings and character constants. */ 3054#define FOO(x) 'x' 3055int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3056 3057int test (int i, double x); 3058struct s1 {int (*f) (int a);}; 3059struct s2 {int (*f) (double a);}; 3060int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3061int argc; 3062char **argv; 3063int 3064main () 3065{ 3066return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3073do 3074 CC="$ac_save_CC $ac_arg" 3075 rm -f conftest.$ac_objext 3076if { (ac_try="$ac_compile" 3077case "(($ac_try" in 3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3079 *) ac_try_echo=$ac_try;; 3080esac 3081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3082$as_echo "$ac_try_echo") >&5 3083 (eval "$ac_compile") 2>conftest.er1 3084 ac_status=$? 3085 grep -v '^ *+' conftest.er1 >conftest.err 3086 rm -f conftest.er1 3087 cat conftest.err >&5 3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } && { 3090 test -z "$ac_c_werror_flag" || 3091 test ! -s conftest.err 3092 } && test -s conftest.$ac_objext; then 3093 ac_cv_prog_cc_c89=$ac_arg 3094else 3095 $as_echo "$as_me: failed program was:" >&5 3096sed 's/^/| /' conftest.$ac_ext >&5 3097 3098 3099fi 3100 3101rm -f core conftest.err conftest.$ac_objext 3102 test "x$ac_cv_prog_cc_c89" != "xno" && break 3103done 3104rm -f conftest.$ac_ext 3105CC=$ac_save_CC 3106 3107fi 3108# AC_CACHE_VAL 3109case "x$ac_cv_prog_cc_c89" in 3110 x) 3111 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3112$as_echo "none needed" >&6; } ;; 3113 xno) 3114 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3115$as_echo "unsupported" >&6; } ;; 3116 *) 3117 CC="$CC $ac_cv_prog_cc_c89" 3118 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3119$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3120esac 3121 3122 3123ac_ext=c 3124ac_cpp='$CPP $CPPFLAGS' 3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3127ac_compiler_gnu=$ac_cv_c_compiler_gnu 3128 3129{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3130$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3131if test "${ac_cv_path_SED+set}" = set; then 3132 $as_echo_n "(cached) " >&6 3133else 3134 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3135 for ac_i in 1 2 3 4 5 6 7; do 3136 ac_script="$ac_script$as_nl$ac_script" 3137 done 3138 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3139 $as_unset ac_script || ac_script= 3140 if test -z "$SED"; then 3141 ac_path_SED_found=false 3142 # Loop through the user's path and test for each of PROGNAME-LIST 3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_prog in sed gsed; do 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3151 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3152# Check for GNU ac_path_SED and select it if it is found. 3153 # Check for GNU $ac_path_SED 3154case `"$ac_path_SED" --version 2>&1` in 3155*GNU*) 3156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3157*) 3158 ac_count=0 3159 $as_echo_n 0123456789 >"conftest.in" 3160 while : 3161 do 3162 cat "conftest.in" "conftest.in" >"conftest.tmp" 3163 mv "conftest.tmp" "conftest.in" 3164 cp "conftest.in" "conftest.nl" 3165 $as_echo '' >> "conftest.nl" 3166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3168 ac_count=`expr $ac_count + 1` 3169 if test $ac_count -gt ${ac_path_SED_max-0}; then 3170 # Best one so far, save it but keep looking for a better one 3171 ac_cv_path_SED="$ac_path_SED" 3172 ac_path_SED_max=$ac_count 3173 fi 3174 # 10*(2^10) chars as input seems more than enough 3175 test $ac_count -gt 10 && break 3176 done 3177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3178esac 3179 3180 $ac_path_SED_found && break 3 3181 done 3182 done 3183done 3184IFS=$as_save_IFS 3185 if test -z "$ac_cv_path_SED"; then 3186 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3187$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3188 { (exit 1); exit 1; }; } 3189 fi 3190else 3191 ac_cv_path_SED=$SED 3192fi 3193 3194fi 3195{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3196$as_echo "$ac_cv_path_SED" >&6; } 3197 SED="$ac_cv_path_SED" 3198 rm -f conftest.sed 3199 3200test -z "$SED" && SED=sed 3201Xsed="$SED -e 1s/^X//" 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3214$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3215if test "${ac_cv_path_GREP+set}" = set; then 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -z "$GREP"; then 3219 ac_path_GREP_found=false 3220 # Loop through the user's path and test for each of PROGNAME-LIST 3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_prog in grep ggrep; do 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3230# Check for GNU ac_path_GREP and select it if it is found. 3231 # Check for GNU $ac_path_GREP 3232case `"$ac_path_GREP" --version 2>&1` in 3233*GNU*) 3234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3235*) 3236 ac_count=0 3237 $as_echo_n 0123456789 >"conftest.in" 3238 while : 3239 do 3240 cat "conftest.in" "conftest.in" >"conftest.tmp" 3241 mv "conftest.tmp" "conftest.in" 3242 cp "conftest.in" "conftest.nl" 3243 $as_echo 'GREP' >> "conftest.nl" 3244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3246 ac_count=`expr $ac_count + 1` 3247 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3248 # Best one so far, save it but keep looking for a better one 3249 ac_cv_path_GREP="$ac_path_GREP" 3250 ac_path_GREP_max=$ac_count 3251 fi 3252 # 10*(2^10) chars as input seems more than enough 3253 test $ac_count -gt 10 && break 3254 done 3255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3256esac 3257 3258 $ac_path_GREP_found && break 3 3259 done 3260 done 3261done 3262IFS=$as_save_IFS 3263 if test -z "$ac_cv_path_GREP"; then 3264 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3265$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3266 { (exit 1); exit 1; }; } 3267 fi 3268else 3269 ac_cv_path_GREP=$GREP 3270fi 3271 3272fi 3273{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3274$as_echo "$ac_cv_path_GREP" >&6; } 3275 GREP="$ac_cv_path_GREP" 3276 3277 3278{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3279$as_echo_n "checking for egrep... " >&6; } 3280if test "${ac_cv_path_EGREP+set}" = set; then 3281 $as_echo_n "(cached) " >&6 3282else 3283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3284 then ac_cv_path_EGREP="$GREP -E" 3285 else 3286 if test -z "$EGREP"; then 3287 ac_path_EGREP_found=false 3288 # Loop through the user's path and test for each of PROGNAME-LIST 3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_prog in egrep; do 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3298# Check for GNU ac_path_EGREP and select it if it is found. 3299 # Check for GNU $ac_path_EGREP 3300case `"$ac_path_EGREP" --version 2>&1` in 3301*GNU*) 3302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3303*) 3304 ac_count=0 3305 $as_echo_n 0123456789 >"conftest.in" 3306 while : 3307 do 3308 cat "conftest.in" "conftest.in" >"conftest.tmp" 3309 mv "conftest.tmp" "conftest.in" 3310 cp "conftest.in" "conftest.nl" 3311 $as_echo 'EGREP' >> "conftest.nl" 3312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3314 ac_count=`expr $ac_count + 1` 3315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3316 # Best one so far, save it but keep looking for a better one 3317 ac_cv_path_EGREP="$ac_path_EGREP" 3318 ac_path_EGREP_max=$ac_count 3319 fi 3320 # 10*(2^10) chars as input seems more than enough 3321 test $ac_count -gt 10 && break 3322 done 3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3324esac 3325 3326 $ac_path_EGREP_found && break 3 3327 done 3328 done 3329done 3330IFS=$as_save_IFS 3331 if test -z "$ac_cv_path_EGREP"; then 3332 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3333$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3334 { (exit 1); exit 1; }; } 3335 fi 3336else 3337 ac_cv_path_EGREP=$EGREP 3338fi 3339 3340 fi 3341fi 3342{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3343$as_echo "$ac_cv_path_EGREP" >&6; } 3344 EGREP="$ac_cv_path_EGREP" 3345 3346 3347{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3348$as_echo_n "checking for fgrep... " >&6; } 3349if test "${ac_cv_path_FGREP+set}" = set; then 3350 $as_echo_n "(cached) " >&6 3351else 3352 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3353 then ac_cv_path_FGREP="$GREP -F" 3354 else 3355 if test -z "$FGREP"; then 3356 ac_path_FGREP_found=false 3357 # Loop through the user's path and test for each of PROGNAME-LIST 3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_prog in fgrep; do 3364 for ac_exec_ext in '' $ac_executable_extensions; do 3365 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3366 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3367# Check for GNU ac_path_FGREP and select it if it is found. 3368 # Check for GNU $ac_path_FGREP 3369case `"$ac_path_FGREP" --version 2>&1` in 3370*GNU*) 3371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3372*) 3373 ac_count=0 3374 $as_echo_n 0123456789 >"conftest.in" 3375 while : 3376 do 3377 cat "conftest.in" "conftest.in" >"conftest.tmp" 3378 mv "conftest.tmp" "conftest.in" 3379 cp "conftest.in" "conftest.nl" 3380 $as_echo 'FGREP' >> "conftest.nl" 3381 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3383 ac_count=`expr $ac_count + 1` 3384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3385 # Best one so far, save it but keep looking for a better one 3386 ac_cv_path_FGREP="$ac_path_FGREP" 3387 ac_path_FGREP_max=$ac_count 3388 fi 3389 # 10*(2^10) chars as input seems more than enough 3390 test $ac_count -gt 10 && break 3391 done 3392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3393esac 3394 3395 $ac_path_FGREP_found && break 3 3396 done 3397 done 3398done 3399IFS=$as_save_IFS 3400 if test -z "$ac_cv_path_FGREP"; then 3401 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3402$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3403 { (exit 1); exit 1; }; } 3404 fi 3405else 3406 ac_cv_path_FGREP=$FGREP 3407fi 3408 3409 fi 3410fi 3411{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3412$as_echo "$ac_cv_path_FGREP" >&6; } 3413 FGREP="$ac_cv_path_FGREP" 3414 3415 3416test -z "$GREP" && GREP=grep 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436# Check whether --with-gnu-ld was given. 3437if test "${with_gnu_ld+set}" = set; then 3438 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3439else 3440 with_gnu_ld=no 3441fi 3442 3443ac_prog=ld 3444if test "$GCC" = yes; then 3445 # Check if gcc -print-prog-name=ld gives a path. 3446 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3447$as_echo_n "checking for ld used by $CC... " >&6; } 3448 case $host in 3449 *-*-mingw*) 3450 # gcc leaves a trailing carriage return which upsets mingw 3451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3452 *) 3453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3454 esac 3455 case $ac_prog in 3456 # Accept absolute paths. 3457 [\\/]* | ?:[\\/]*) 3458 re_direlt='/[^/][^/]*/\.\./' 3459 # Canonicalize the pathname of ld 3460 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3461 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3462 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3463 done 3464 test -z "$LD" && LD="$ac_prog" 3465 ;; 3466 "") 3467 # If it fails, then pretend we aren't using GCC. 3468 ac_prog=ld 3469 ;; 3470 *) 3471 # If it is relative, then search for the first ld in PATH. 3472 with_gnu_ld=unknown 3473 ;; 3474 esac 3475elif test "$with_gnu_ld" = yes; then 3476 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 3477$as_echo_n "checking for GNU ld... " >&6; } 3478else 3479 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3480$as_echo_n "checking for non-GNU ld... " >&6; } 3481fi 3482if test "${lt_cv_path_LD+set}" = set; then 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -z "$LD"; then 3486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3487 for ac_dir in $PATH; do 3488 IFS="$lt_save_ifs" 3489 test -z "$ac_dir" && ac_dir=. 3490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3491 lt_cv_path_LD="$ac_dir/$ac_prog" 3492 # Check to see if the program is GNU ld. I'd rather use --version, 3493 # but apparently some variants of GNU ld only accept -v. 3494 # Break only if it was the GNU/non-GNU ld that we prefer. 3495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3496 *GNU* | *'with BFD'*) 3497 test "$with_gnu_ld" != no && break 3498 ;; 3499 *) 3500 test "$with_gnu_ld" != yes && break 3501 ;; 3502 esac 3503 fi 3504 done 3505 IFS="$lt_save_ifs" 3506else 3507 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3508fi 3509fi 3510 3511LD="$lt_cv_path_LD" 3512if test -n "$LD"; then 3513 { $as_echo "$as_me:$LINENO: result: $LD" >&5 3514$as_echo "$LD" >&6; } 3515else 3516 { $as_echo "$as_me:$LINENO: result: no" >&5 3517$as_echo "no" >&6; } 3518fi 3519test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3520$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3521 { (exit 1); exit 1; }; } 3522{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3523$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3524if test "${lt_cv_prog_gnu_ld+set}" = set; then 3525 $as_echo_n "(cached) " >&6 3526else 3527 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3528case `$LD -v 2>&1 </dev/null` in 3529*GNU* | *'with BFD'*) 3530 lt_cv_prog_gnu_ld=yes 3531 ;; 3532*) 3533 lt_cv_prog_gnu_ld=no 3534 ;; 3535esac 3536fi 3537{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3538$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3539with_gnu_ld=$lt_cv_prog_gnu_ld 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 3550$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3551if test "${lt_cv_path_NM+set}" = set; then 3552 $as_echo_n "(cached) " >&6 3553else 3554 if test -n "$NM"; then 3555 # Let the user override the test. 3556 lt_cv_path_NM="$NM" 3557else 3558 lt_nm_to_check="${ac_tool_prefix}nm" 3559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3560 lt_nm_to_check="$lt_nm_to_check nm" 3561 fi 3562 for lt_tmp_nm in $lt_nm_to_check; do 3563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3565 IFS="$lt_save_ifs" 3566 test -z "$ac_dir" && ac_dir=. 3567 tmp_nm="$ac_dir/$lt_tmp_nm" 3568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3569 # Check to see if the nm accepts a BSD-compat flag. 3570 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3571 # nm: unknown option "B" ignored 3572 # Tru64's nm complains that /dev/null is an invalid object file 3573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3574 */dev/null* | *'Invalid file or object type'*) 3575 lt_cv_path_NM="$tmp_nm -B" 3576 break 3577 ;; 3578 *) 3579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3580 */dev/null*) 3581 lt_cv_path_NM="$tmp_nm -p" 3582 break 3583 ;; 3584 *) 3585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3586 continue # so that we can try to find one that supports BSD flags 3587 ;; 3588 esac 3589 ;; 3590 esac 3591 fi 3592 done 3593 IFS="$lt_save_ifs" 3594 done 3595 : ${lt_cv_path_NM=no} 3596fi 3597fi 3598{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3599$as_echo "$lt_cv_path_NM" >&6; } 3600if test "$lt_cv_path_NM" != "no"; then 3601 NM="$lt_cv_path_NM" 3602else 3603 # Didn't find any BSD compatible name lister, look for dumpbin. 3604 if test -n "$ac_tool_prefix"; then 3605 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3606 do 3607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3608set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3610$as_echo_n "checking for $ac_word... " >&6; } 3611if test "${ac_cv_prog_DUMPBIN+set}" = set; then 3612 $as_echo_n "(cached) " >&6 3613else 3614 if test -n "$DUMPBIN"; then 3615 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_exec_ext in '' $ac_executable_extensions; do 3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3624 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 break 2 3627 fi 3628done 3629done 3630IFS=$as_save_IFS 3631 3632fi 3633fi 3634DUMPBIN=$ac_cv_prog_DUMPBIN 3635if test -n "$DUMPBIN"; then 3636 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 3637$as_echo "$DUMPBIN" >&6; } 3638else 3639 { $as_echo "$as_me:$LINENO: result: no" >&5 3640$as_echo "no" >&6; } 3641fi 3642 3643 3644 test -n "$DUMPBIN" && break 3645 done 3646fi 3647if test -z "$DUMPBIN"; then 3648 ac_ct_DUMPBIN=$DUMPBIN 3649 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3650do 3651 # Extract the first word of "$ac_prog", so it can be a program name with args. 3652set dummy $ac_prog; ac_word=$2 3653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3654$as_echo_n "checking for $ac_word... " >&6; } 3655if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 3656 $as_echo_n "(cached) " >&6 3657else 3658 if test -n "$ac_ct_DUMPBIN"; then 3659 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3660else 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 test -z "$as_dir" && as_dir=. 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3668 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3670 break 2 3671 fi 3672done 3673done 3674IFS=$as_save_IFS 3675 3676fi 3677fi 3678ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3679if test -n "$ac_ct_DUMPBIN"; then 3680 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 3681$as_echo "$ac_ct_DUMPBIN" >&6; } 3682else 3683 { $as_echo "$as_me:$LINENO: result: no" >&5 3684$as_echo "no" >&6; } 3685fi 3686 3687 3688 test -n "$ac_ct_DUMPBIN" && break 3689done 3690 3691 if test "x$ac_ct_DUMPBIN" = x; then 3692 DUMPBIN=":" 3693 else 3694 case $cross_compiling:$ac_tool_warned in 3695yes:) 3696{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3697whose name does not start with the host triplet. If you think this 3698configuration is useful to you, please write to [email protected]." >&5 3699$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3700whose name does not start with the host triplet. If you think this 3701configuration is useful to you, please write to [email protected]." >&2;} 3702ac_tool_warned=yes ;; 3703esac 3704 DUMPBIN=$ac_ct_DUMPBIN 3705 fi 3706fi 3707 3708 3709 if test "$DUMPBIN" != ":"; then 3710 NM="$DUMPBIN" 3711 fi 3712fi 3713test -z "$NM" && NM=nm 3714 3715 3716 3717 3718 3719 3720{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 3721$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3722if test "${lt_cv_nm_interface+set}" = set; then 3723 $as_echo_n "(cached) " >&6 3724else 3725 lt_cv_nm_interface="BSD nm" 3726 echo "int some_variable = 0;" > conftest.$ac_ext 3727 (eval echo "\"\$as_me:3727: $ac_compile\"" >&5) 3728 (eval "$ac_compile" 2>conftest.err) 3729 cat conftest.err >&5 3730 (eval echo "\"\$as_me:3730: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3732 cat conftest.err >&5 3733 (eval echo "\"\$as_me:3733: output\"" >&5) 3734 cat conftest.out >&5 3735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3736 lt_cv_nm_interface="MS dumpbin" 3737 fi 3738 rm -f conftest* 3739fi 3740{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 3741$as_echo "$lt_cv_nm_interface" >&6; } 3742 3743{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3744$as_echo_n "checking whether ln -s works... " >&6; } 3745LN_S=$as_ln_s 3746if test "$LN_S" = "ln -s"; then 3747 { $as_echo "$as_me:$LINENO: result: yes" >&5 3748$as_echo "yes" >&6; } 3749else 3750 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3751$as_echo "no, using $LN_S" >&6; } 3752fi 3753 3754# find the maximum length of command line arguments 3755{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3756$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3757if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3758 $as_echo_n "(cached) " >&6 3759else 3760 i=0 3761 teststring="ABCD" 3762 3763 case $build_os in 3764 msdosdjgpp*) 3765 # On DJGPP, this test can blow up pretty badly due to problems in libc 3766 # (any single argument exceeding 2000 bytes causes a buffer overrun 3767 # during glob expansion). Even if it were fixed, the result of this 3768 # check would be larger than it should be. 3769 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3770 ;; 3771 3772 gnu*) 3773 # Under GNU Hurd, this test is not required because there is 3774 # no limit to the length of command line arguments. 3775 # Libtool will interpret -1 as no limit whatsoever 3776 lt_cv_sys_max_cmd_len=-1; 3777 ;; 3778 3779 cygwin* | mingw* | cegcc*) 3780 # On Win9x/ME, this test blows up -- it succeeds, but takes 3781 # about 5 minutes as the teststring grows exponentially. 3782 # Worse, since 9x/ME are not pre-emptively multitasking, 3783 # you end up with a "frozen" computer, even though with patience 3784 # the test eventually succeeds (with a max line length of 256k). 3785 # Instead, let's just punt: use the minimum linelength reported by 3786 # all of the supported platforms: 8192 (on NT/2K/XP). 3787 lt_cv_sys_max_cmd_len=8192; 3788 ;; 3789 3790 amigaos*) 3791 # On AmigaOS with pdksh, this test takes hours, literally. 3792 # So we just punt and use a minimum line length of 8192. 3793 lt_cv_sys_max_cmd_len=8192; 3794 ;; 3795 3796 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3797 # This has been around since 386BSD, at least. Likely further. 3798 if test -x /sbin/sysctl; then 3799 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3800 elif test -x /usr/sbin/sysctl; then 3801 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3802 else 3803 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3804 fi 3805 # And add a safety zone 3806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3808 ;; 3809 3810 interix*) 3811 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3812 lt_cv_sys_max_cmd_len=196608 3813 ;; 3814 3815 osf*) 3816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3818 # nice to cause kernel panics so lets avoid the loop below. 3819 # First set a reasonable default. 3820 lt_cv_sys_max_cmd_len=16384 3821 # 3822 if test -x /sbin/sysconfig; then 3823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3824 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3825 esac 3826 fi 3827 ;; 3828 sco3.2v5*) 3829 lt_cv_sys_max_cmd_len=102400 3830 ;; 3831 sysv5* | sco5v6* | sysv4.2uw2*) 3832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3833 if test -n "$kargmax"; then 3834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3835 else 3836 lt_cv_sys_max_cmd_len=32768 3837 fi 3838 ;; 3839 *) 3840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3841 if test -n "$lt_cv_sys_max_cmd_len"; then 3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3844 else 3845 # Make teststring a little bigger before we do anything with it. 3846 # a 1K string should be a reasonable start. 3847 for i in 1 2 3 4 5 6 7 8 ; do 3848 teststring=$teststring$teststring 3849 done 3850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3851 # If test is not a shell built-in, we'll probably end up computing a 3852 # maximum length that is only half of the actual maximum length, but 3853 # we can't tell. 3854 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3855 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3856 test $i != 17 # 1/2 MB should be enough 3857 do 3858 i=`expr $i + 1` 3859 teststring=$teststring$teststring 3860 done 3861 # Only check the string length outside the loop. 3862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3863 teststring= 3864 # Add a significant safety factor because C++ compilers can tack on 3865 # massive amounts of additional arguments before passing them to the 3866 # linker. It appears as though 1/2 is a usable value. 3867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3868 fi 3869 ;; 3870 esac 3871 3872fi 3873 3874if test -n $lt_cv_sys_max_cmd_len ; then 3875 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3876$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 3877else 3878 { $as_echo "$as_me:$LINENO: result: none" >&5 3879$as_echo "none" >&6; } 3880fi 3881max_cmd_len=$lt_cv_sys_max_cmd_len 3882 3883 3884 3885 3886 3887 3888: ${CP="cp -f"} 3889: ${MV="mv -f"} 3890: ${RM="rm -f"} 3891 3892{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3893$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 3894# Try some XSI features 3895xsi_shell=no 3896( _lt_dummy="a/b/c" 3897 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3898 = c,a/b,, \ 3899 && eval 'test $(( 1 + 1 )) -eq 2 \ 3900 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3901 && xsi_shell=yes 3902{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 3903$as_echo "$xsi_shell" >&6; } 3904 3905 3906{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3907$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 3908lt_shell_append=no 3909( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3910 >/dev/null 2>&1 \ 3911 && lt_shell_append=yes 3912{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3913$as_echo "$lt_shell_append" >&6; } 3914 3915 3916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3917 lt_unset=unset 3918else 3919 lt_unset=false 3920fi 3921 3922 3923 3924 3925 3926# test EBCDIC or ASCII 3927case `echo X|tr X '\101'` in 3928 A) # ASCII based system 3929 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3930 lt_SP2NL='tr \040 \012' 3931 lt_NL2SP='tr \015\012 \040\040' 3932 ;; 3933 *) # EBCDIC based system 3934 lt_SP2NL='tr \100 \n' 3935 lt_NL2SP='tr \r\n \100\100' 3936 ;; 3937esac 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3948$as_echo_n "checking for $LD option to reload object files... " >&6; } 3949if test "${lt_cv_ld_reload_flag+set}" = set; then 3950 $as_echo_n "(cached) " >&6 3951else 3952 lt_cv_ld_reload_flag='-r' 3953fi 3954{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3955$as_echo "$lt_cv_ld_reload_flag" >&6; } 3956reload_flag=$lt_cv_ld_reload_flag 3957case $reload_flag in 3958"" | " "*) ;; 3959*) reload_flag=" $reload_flag" ;; 3960esac 3961reload_cmds='$LD$reload_flag -o $output$reload_objs' 3962case $host_os in 3963 darwin*) 3964 if test "$GCC" = yes; then 3965 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3966 else 3967 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3968 fi 3969 ;; 3970esac 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980if test -n "$ac_tool_prefix"; then 3981 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3982set dummy ${ac_tool_prefix}objdump; ac_word=$2 3983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3984$as_echo_n "checking for $ac_word... " >&6; } 3985if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3986 $as_echo_n "(cached) " >&6 3987else 3988 if test -n "$OBJDUMP"; then 3989 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3990else 3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3992for as_dir in $PATH 3993do 3994 IFS=$as_save_IFS 3995 test -z "$as_dir" && as_dir=. 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3998 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4000 break 2 4001 fi 4002done 4003done 4004IFS=$as_save_IFS 4005 4006fi 4007fi 4008OBJDUMP=$ac_cv_prog_OBJDUMP 4009if test -n "$OBJDUMP"; then 4010 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4011$as_echo "$OBJDUMP" >&6; } 4012else 4013 { $as_echo "$as_me:$LINENO: result: no" >&5 4014$as_echo "no" >&6; } 4015fi 4016 4017 4018fi 4019if test -z "$ac_cv_prog_OBJDUMP"; then 4020 ac_ct_OBJDUMP=$OBJDUMP 4021 # Extract the first word of "objdump", so it can be a program name with args. 4022set dummy objdump; ac_word=$2 4023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4024$as_echo_n "checking for $ac_word... " >&6; } 4025if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4026 $as_echo_n "(cached) " >&6 4027else 4028 if test -n "$ac_ct_OBJDUMP"; then 4029 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4030else 4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4038 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043done 4044IFS=$as_save_IFS 4045 4046fi 4047fi 4048ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4049if test -n "$ac_ct_OBJDUMP"; then 4050 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4051$as_echo "$ac_ct_OBJDUMP" >&6; } 4052else 4053 { $as_echo "$as_me:$LINENO: result: no" >&5 4054$as_echo "no" >&6; } 4055fi 4056 4057 if test "x$ac_ct_OBJDUMP" = x; then 4058 OBJDUMP="false" 4059 else 4060 case $cross_compiling:$ac_tool_warned in 4061yes:) 4062{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4063whose name does not start with the host triplet. If you think this 4064configuration is useful to you, please write to [email protected]." >&5 4065$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4066whose name does not start with the host triplet. If you think this 4067configuration is useful to you, please write to [email protected]." >&2;} 4068ac_tool_warned=yes ;; 4069esac 4070 OBJDUMP=$ac_ct_OBJDUMP 4071 fi 4072else 4073 OBJDUMP="$ac_cv_prog_OBJDUMP" 4074fi 4075 4076test -z "$OBJDUMP" && OBJDUMP=objdump 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4087$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4088if test "${lt_cv_deplibs_check_method+set}" = set; then 4089 $as_echo_n "(cached) " >&6 4090else 4091 lt_cv_file_magic_cmd='$MAGIC_CMD' 4092lt_cv_file_magic_test_file= 4093lt_cv_deplibs_check_method='unknown' 4094# Need to set the preceding variable on all platforms that support 4095# interlibrary dependencies. 4096# 'none' -- dependencies not supported. 4097# `unknown' -- same as none, but documents that we really don't know. 4098# 'pass_all' -- all dependencies passed with no checks. 4099# 'test_compile' -- check by making test program. 4100# 'file_magic [[regex]]' -- check by looking for files in library path 4101# which responds to the $file_magic_cmd with a given extended regex. 4102# If you have `file' or equivalent on your system and you're not sure 4103# whether `pass_all' will *always* work, you probably want this one. 4104 4105case $host_os in 4106aix[4-9]*) 4107 lt_cv_deplibs_check_method=pass_all 4108 ;; 4109 4110beos*) 4111 lt_cv_deplibs_check_method=pass_all 4112 ;; 4113 4114bsdi[45]*) 4115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4116 lt_cv_file_magic_cmd='/usr/bin/file -L' 4117 lt_cv_file_magic_test_file=/shlib/libc.so 4118 ;; 4119 4120cygwin*) 4121 # func_win32_libid is a shell function defined in ltmain.sh 4122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4123 lt_cv_file_magic_cmd='func_win32_libid' 4124 ;; 4125 4126mingw* | pw32*) 4127 # Base MSYS/MinGW do not provide the 'file' command needed by 4128 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4129 # unless we find 'file', for example because we are cross-compiling. 4130 if ( file / ) >/dev/null 2>&1; then 4131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4132 lt_cv_file_magic_cmd='func_win32_libid' 4133 else 4134 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4135 lt_cv_file_magic_cmd='$OBJDUMP -f' 4136 fi 4137 ;; 4138 4139cegcc) 4140 # use the weaker test based on 'objdump'. See mingw*. 4141 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4142 lt_cv_file_magic_cmd='$OBJDUMP -f' 4143 ;; 4144 4145darwin* | rhapsody*) 4146 lt_cv_deplibs_check_method=pass_all 4147 ;; 4148 4149freebsd* | dragonfly*) 4150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4151 case $host_cpu in 4152 i*86 ) 4153 # Not sure whether the presence of OpenBSD here was a mistake. 4154 # Let's accept both of them until this is cleared up. 4155 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4156 lt_cv_file_magic_cmd=/usr/bin/file 4157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4158 ;; 4159 esac 4160 else 4161 lt_cv_deplibs_check_method=pass_all 4162 fi 4163 ;; 4164 4165gnu*) 4166 lt_cv_deplibs_check_method=pass_all 4167 ;; 4168 4169hpux10.20* | hpux11*) 4170 lt_cv_file_magic_cmd=/usr/bin/file 4171 case $host_cpu in 4172 ia64*) 4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4175 ;; 4176 hppa*64*) 4177 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]' 4178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4179 ;; 4180 *) 4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4182 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4183 ;; 4184 esac 4185 ;; 4186 4187interix[3-9]*) 4188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4190 ;; 4191 4192irix5* | irix6* | nonstopux*) 4193 case $LD in 4194 *-32|*"-32 ") libmagic=32-bit;; 4195 *-n32|*"-n32 ") libmagic=N32;; 4196 *-64|*"-64 ") libmagic=64-bit;; 4197 *) libmagic=never-match;; 4198 esac 4199 lt_cv_deplibs_check_method=pass_all 4200 ;; 4201 4202# This must be Linux ELF. 4203linux* | k*bsd*-gnu) 4204 lt_cv_deplibs_check_method=pass_all 4205 ;; 4206 4207netbsd*) 4208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4210 else 4211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4212 fi 4213 ;; 4214 4215newos6*) 4216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4217 lt_cv_file_magic_cmd=/usr/bin/file 4218 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4219 ;; 4220 4221*nto* | *qnx*) 4222 lt_cv_deplibs_check_method=pass_all 4223 ;; 4224 4225openbsd*) 4226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4228 else 4229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4230 fi 4231 ;; 4232 4233osf3* | osf4* | osf5*) 4234 lt_cv_deplibs_check_method=pass_all 4235 ;; 4236 4237rdos*) 4238 lt_cv_deplibs_check_method=pass_all 4239 ;; 4240 4241solaris*) 4242 lt_cv_deplibs_check_method=pass_all 4243 ;; 4244 4245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4246 lt_cv_deplibs_check_method=pass_all 4247 ;; 4248 4249sysv4 | sysv4.3*) 4250 case $host_vendor in 4251 motorola) 4252 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]' 4253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4254 ;; 4255 ncr) 4256 lt_cv_deplibs_check_method=pass_all 4257 ;; 4258 sequent) 4259 lt_cv_file_magic_cmd='/bin/file' 4260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4261 ;; 4262 sni) 4263 lt_cv_file_magic_cmd='/bin/file' 4264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4265 lt_cv_file_magic_test_file=/lib/libc.so 4266 ;; 4267 siemens) 4268 lt_cv_deplibs_check_method=pass_all 4269 ;; 4270 pc) 4271 lt_cv_deplibs_check_method=pass_all 4272 ;; 4273 esac 4274 ;; 4275 4276tpf*) 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279esac 4280 4281fi 4282{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4283$as_echo "$lt_cv_deplibs_check_method" >&6; } 4284file_magic_cmd=$lt_cv_file_magic_cmd 4285deplibs_check_method=$lt_cv_deplibs_check_method 4286test -z "$deplibs_check_method" && deplibs_check_method=unknown 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299if test -n "$ac_tool_prefix"; then 4300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4301set dummy ${ac_tool_prefix}ar; ac_word=$2 4302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4303$as_echo_n "checking for $ac_word... " >&6; } 4304if test "${ac_cv_prog_AR+set}" = set; then 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -n "$AR"; then 4308 ac_cv_prog_AR="$AR" # Let the user override the test. 4309else 4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4317 ac_cv_prog_AR="${ac_tool_prefix}ar" 4318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4319 break 2 4320 fi 4321done 4322done 4323IFS=$as_save_IFS 4324 4325fi 4326fi 4327AR=$ac_cv_prog_AR 4328if test -n "$AR"; then 4329 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4330$as_echo "$AR" >&6; } 4331else 4332 { $as_echo "$as_me:$LINENO: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 4337fi 4338if test -z "$ac_cv_prog_AR"; then 4339 ac_ct_AR=$AR 4340 # Extract the first word of "ar", so it can be a program name with args. 4341set dummy ar; ac_word=$2 4342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4343$as_echo_n "checking for $ac_word... " >&6; } 4344if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -n "$ac_ct_AR"; then 4348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4349else 4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4357 ac_cv_prog_ac_ct_AR="ar" 4358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361done 4362done 4363IFS=$as_save_IFS 4364 4365fi 4366fi 4367ac_ct_AR=$ac_cv_prog_ac_ct_AR 4368if test -n "$ac_ct_AR"; then 4369 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4370$as_echo "$ac_ct_AR" >&6; } 4371else 4372 { $as_echo "$as_me:$LINENO: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 if test "x$ac_ct_AR" = x; then 4377 AR="false" 4378 else 4379 case $cross_compiling:$ac_tool_warned in 4380yes:) 4381{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4382whose name does not start with the host triplet. If you think this 4383configuration is useful to you, please write to [email protected]." >&5 4384$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4385whose name does not start with the host triplet. If you think this 4386configuration is useful to you, please write to [email protected]." >&2;} 4387ac_tool_warned=yes ;; 4388esac 4389 AR=$ac_ct_AR 4390 fi 4391else 4392 AR="$ac_cv_prog_AR" 4393fi 4394 4395test -z "$AR" && AR=ar 4396test -z "$AR_FLAGS" && AR_FLAGS=cru 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408if test -n "$ac_tool_prefix"; then 4409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4410set dummy ${ac_tool_prefix}strip; ac_word=$2 4411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4412$as_echo_n "checking for $ac_word... " >&6; } 4413if test "${ac_cv_prog_STRIP+set}" = set; then 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -n "$STRIP"; then 4417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4418else 4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4426 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4428 break 2 4429 fi 4430done 4431done 4432IFS=$as_save_IFS 4433 4434fi 4435fi 4436STRIP=$ac_cv_prog_STRIP 4437if test -n "$STRIP"; then 4438 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4439$as_echo "$STRIP" >&6; } 4440else 4441 { $as_echo "$as_me:$LINENO: result: no" >&5 4442$as_echo "no" >&6; } 4443fi 4444 4445 4446fi 4447if test -z "$ac_cv_prog_STRIP"; then 4448 ac_ct_STRIP=$STRIP 4449 # Extract the first word of "strip", so it can be a program name with args. 4450set dummy strip; ac_word=$2 4451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4452$as_echo_n "checking for $ac_word... " >&6; } 4453if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -n "$ac_ct_STRIP"; then 4457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4458else 4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4466 ac_cv_prog_ac_ct_STRIP="strip" 4467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470done 4471done 4472IFS=$as_save_IFS 4473 4474fi 4475fi 4476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4477if test -n "$ac_ct_STRIP"; then 4478 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4479$as_echo "$ac_ct_STRIP" >&6; } 4480else 4481 { $as_echo "$as_me:$LINENO: result: no" >&5 4482$as_echo "no" >&6; } 4483fi 4484 4485 if test "x$ac_ct_STRIP" = x; then 4486 STRIP=":" 4487 else 4488 case $cross_compiling:$ac_tool_warned in 4489yes:) 4490{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4491whose name does not start with the host triplet. If you think this 4492configuration is useful to you, please write to [email protected]." >&5 4493$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4494whose name does not start with the host triplet. If you think this 4495configuration is useful to you, please write to [email protected]." >&2;} 4496ac_tool_warned=yes ;; 4497esac 4498 STRIP=$ac_ct_STRIP 4499 fi 4500else 4501 STRIP="$ac_cv_prog_STRIP" 4502fi 4503 4504test -z "$STRIP" && STRIP=: 4505 4506 4507 4508 4509 4510 4511if test -n "$ac_tool_prefix"; then 4512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4513set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4515$as_echo_n "checking for $ac_word... " >&6; } 4516if test "${ac_cv_prog_RANLIB+set}" = set; then 4517 $as_echo_n "(cached) " >&6 4518else 4519 if test -n "$RANLIB"; then 4520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4521else 4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523for as_dir in $PATH 4524do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4531 break 2 4532 fi 4533done 4534done 4535IFS=$as_save_IFS 4536 4537fi 4538fi 4539RANLIB=$ac_cv_prog_RANLIB 4540if test -n "$RANLIB"; then 4541 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4542$as_echo "$RANLIB" >&6; } 4543else 4544 { $as_echo "$as_me:$LINENO: result: no" >&5 4545$as_echo "no" >&6; } 4546fi 4547 4548 4549fi 4550if test -z "$ac_cv_prog_RANLIB"; then 4551 ac_ct_RANLIB=$RANLIB 4552 # Extract the first word of "ranlib", so it can be a program name with args. 4553set dummy ranlib; ac_word=$2 4554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4555$as_echo_n "checking for $ac_word... " >&6; } 4556if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -n "$ac_ct_RANLIB"; then 4560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4561else 4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4569 ac_cv_prog_ac_ct_RANLIB="ranlib" 4570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4580if test -n "$ac_ct_RANLIB"; then 4581 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4582$as_echo "$ac_ct_RANLIB" >&6; } 4583else 4584 { $as_echo "$as_me:$LINENO: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587 4588 if test "x$ac_ct_RANLIB" = x; then 4589 RANLIB=":" 4590 else 4591 case $cross_compiling:$ac_tool_warned in 4592yes:) 4593{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4594whose name does not start with the host triplet. If you think this 4595configuration is useful to you, please write to [email protected]." >&5 4596$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4597whose name does not start with the host triplet. If you think this 4598configuration is useful to you, please write to [email protected]." >&2;} 4599ac_tool_warned=yes ;; 4600esac 4601 RANLIB=$ac_ct_RANLIB 4602 fi 4603else 4604 RANLIB="$ac_cv_prog_RANLIB" 4605fi 4606 4607test -z "$RANLIB" && RANLIB=: 4608 4609 4610 4611 4612 4613 4614# Determine commands to create old-style static archives. 4615old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4616old_postinstall_cmds='chmod 644 $oldlib' 4617old_postuninstall_cmds= 4618 4619if test -n "$RANLIB"; then 4620 case $host_os in 4621 openbsd*) 4622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4623 ;; 4624 *) 4625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4626 ;; 4627 esac 4628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4629fi 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664# If no C compiler was specified, use CC. 4665LTCC=${LTCC-"$CC"} 4666 4667# If no C compiler flags were specified, use CFLAGS. 4668LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4669 4670# Allow CC to be a program name with arguments. 4671compiler=$CC 4672 4673 4674# Check for command to grab the raw symbol name followed by C symbol from nm. 4675{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4676$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4677if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4678 $as_echo_n "(cached) " >&6 4679else 4680 4681# These are sane defaults that work on at least a few old systems. 4682# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4683 4684# Character class describing NM global symbol codes. 4685symcode='[BCDEGRST]' 4686 4687# Regexp to match symbols that can be accessed directly from C. 4688sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4689 4690# Define system-specific variables. 4691case $host_os in 4692aix*) 4693 symcode='[BCDT]' 4694 ;; 4695cygwin* | mingw* | pw32* | cegcc*) 4696 symcode='[ABCDGISTW]' 4697 ;; 4698hpux*) 4699 if test "$host_cpu" = ia64; then 4700 symcode='[ABCDEGRST]' 4701 fi 4702 ;; 4703irix* | nonstopux*) 4704 symcode='[BCDEGRST]' 4705 ;; 4706osf*) 4707 symcode='[BCDEGQRST]' 4708 ;; 4709solaris*) 4710 symcode='[BDRT]' 4711 ;; 4712sco3.2v5*) 4713 symcode='[DT]' 4714 ;; 4715sysv4.2uw2*) 4716 symcode='[DT]' 4717 ;; 4718sysv5* | sco5v6* | unixware* | OpenUNIX*) 4719 symcode='[ABDT]' 4720 ;; 4721sysv4) 4722 symcode='[DFNSTU]' 4723 ;; 4724esac 4725 4726# If we're using GNU nm, then use its standard symbol codes. 4727case `$NM -V 2>&1` in 4728*GNU* | *'with BFD'*) 4729 symcode='[ABCDGIRSTW]' ;; 4730esac 4731 4732# Transform an extracted symbol line into a proper C declaration. 4733# Some systems (esp. on ia64) link data and code symbols differently, 4734# so use this general approach. 4735lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4736 4737# Transform an extracted symbol line into symbol name and symbol address 4738lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4739lt_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'" 4740 4741# Handle CRLF in mingw tool chain 4742opt_cr= 4743case $build_os in 4744mingw*) 4745 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4746 ;; 4747esac 4748 4749# Try without a prefix underscore, then with it. 4750for ac_symprfx in "" "_"; do 4751 4752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4753 symxfrm="\\1 $ac_symprfx\\2 \\2" 4754 4755 # Write the raw and C identifiers. 4756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4757 # Fake it for dumpbin and say T for any non-static function 4758 # and D for any global variable. 4759 # Also find C++ and __fastcall symbols from MSVC++, 4760 # which start with @ or ?. 4761 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4762" {last_section=section; section=\$ 3};"\ 4763" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4764" \$ 0!~/External *\|/{next};"\ 4765" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4766" {if(hide[section]) next};"\ 4767" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4768" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4769" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4770" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4771" ' prfx=^$ac_symprfx" 4772 else 4773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4774 fi 4775 4776 # Check to see that the pipe works correctly. 4777 pipe_works=no 4778 4779 rm -f conftest* 4780 cat > conftest.$ac_ext <<_LT_EOF 4781#ifdef __cplusplus 4782extern "C" { 4783#endif 4784char nm_test_var; 4785void nm_test_func(void); 4786void nm_test_func(void){} 4787#ifdef __cplusplus 4788} 4789#endif 4790int main(){nm_test_var='a';nm_test_func();return(0);} 4791_LT_EOF 4792 4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4794 (eval $ac_compile) 2>&5 4795 ac_status=$? 4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); }; then 4798 # Now try to grab the symbols. 4799 nlist=conftest.nm 4800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4802 ac_status=$? 4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4804 (exit $ac_status); } && test -s "$nlist"; then 4805 # Try sorting and uniquifying the output. 4806 if sort "$nlist" | uniq > "$nlist"T; then 4807 mv -f "$nlist"T "$nlist" 4808 else 4809 rm -f "$nlist"T 4810 fi 4811 4812 # Make sure that we snagged all the symbols we need. 4813 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4814 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4815 cat <<_LT_EOF > conftest.$ac_ext 4816#ifdef __cplusplus 4817extern "C" { 4818#endif 4819 4820_LT_EOF 4821 # Now generate the symbol file. 4822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4823 4824 cat <<_LT_EOF >> conftest.$ac_ext 4825 4826/* The mapping between symbol names and symbols. */ 4827const struct { 4828 const char *name; 4829 void *address; 4830} 4831lt__PROGRAM__LTX_preloaded_symbols[] = 4832{ 4833 { "@PROGRAM@", (void *) 0 }, 4834_LT_EOF 4835 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4836 cat <<\_LT_EOF >> conftest.$ac_ext 4837 {0, (void *) 0} 4838}; 4839 4840/* This works around a problem in FreeBSD linker */ 4841#ifdef FREEBSD_WORKAROUND 4842static const void *lt_preloaded_setup() { 4843 return lt__PROGRAM__LTX_preloaded_symbols; 4844} 4845#endif 4846 4847#ifdef __cplusplus 4848} 4849#endif 4850_LT_EOF 4851 # Now try linking the two files. 4852 mv conftest.$ac_objext conftstm.$ac_objext 4853 lt_save_LIBS="$LIBS" 4854 lt_save_CFLAGS="$CFLAGS" 4855 LIBS="conftstm.$ac_objext" 4856 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4858 (eval $ac_link) 2>&5 4859 ac_status=$? 4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4862 pipe_works=yes 4863 fi 4864 LIBS="$lt_save_LIBS" 4865 CFLAGS="$lt_save_CFLAGS" 4866 else 4867 echo "cannot find nm_test_func in $nlist" >&5 4868 fi 4869 else 4870 echo "cannot find nm_test_var in $nlist" >&5 4871 fi 4872 else 4873 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4874 fi 4875 else 4876 echo "$progname: failed program was:" >&5 4877 cat conftest.$ac_ext >&5 4878 fi 4879 rm -rf conftest* conftst* 4880 4881 # Do not use the global_symbol_pipe unless it works. 4882 if test "$pipe_works" = yes; then 4883 break 4884 else 4885 lt_cv_sys_global_symbol_pipe= 4886 fi 4887done 4888 4889fi 4890 4891if test -z "$lt_cv_sys_global_symbol_pipe"; then 4892 lt_cv_sys_global_symbol_to_cdecl= 4893fi 4894if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4895 { $as_echo "$as_me:$LINENO: result: failed" >&5 4896$as_echo "failed" >&6; } 4897else 4898 { $as_echo "$as_me:$LINENO: result: ok" >&5 4899$as_echo "ok" >&6; } 4900fi 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924# Check whether --enable-libtool-lock was given. 4925if test "${enable_libtool_lock+set}" = set; then 4926 enableval=$enable_libtool_lock; 4927fi 4928 4929test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4930 4931# Some flags need to be propagated to the compiler or linker for good 4932# libtool support. 4933case $host in 4934ia64-*-hpux*) 4935 # Find out which ABI we are using. 4936 echo 'int i;' > conftest.$ac_ext 4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4938 (eval $ac_compile) 2>&5 4939 ac_status=$? 4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4941 (exit $ac_status); }; then 4942 case `/usr/bin/file conftest.$ac_objext` in 4943 *ELF-32*) 4944 HPUX_IA64_MODE="32" 4945 ;; 4946 *ELF-64*) 4947 HPUX_IA64_MODE="64" 4948 ;; 4949 esac 4950 fi 4951 rm -rf conftest* 4952 ;; 4953*-*-irix6*) 4954 # Find out which ABI we are using. 4955 echo '#line 4955 "configure"' > conftest.$ac_ext 4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4957 (eval $ac_compile) 2>&5 4958 ac_status=$? 4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); }; then 4961 if test "$lt_cv_prog_gnu_ld" = yes; then 4962 case `/usr/bin/file conftest.$ac_objext` in 4963 *32-bit*) 4964 LD="${LD-ld} -melf32bsmip" 4965 ;; 4966 *N32*) 4967 LD="${LD-ld} -melf32bmipn32" 4968 ;; 4969 *64-bit*) 4970 LD="${LD-ld} -melf64bmip" 4971 ;; 4972 esac 4973 else 4974 case `/usr/bin/file conftest.$ac_objext` in 4975 *32-bit*) 4976 LD="${LD-ld} -32" 4977 ;; 4978 *N32*) 4979 LD="${LD-ld} -n32" 4980 ;; 4981 *64-bit*) 4982 LD="${LD-ld} -64" 4983 ;; 4984 esac 4985 fi 4986 fi 4987 rm -rf conftest* 4988 ;; 4989 4990x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4991s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4992 # Find out which ABI we are using. 4993 echo 'int i;' > conftest.$ac_ext 4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4995 (eval $ac_compile) 2>&5 4996 ac_status=$? 4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); }; then 4999 case `/usr/bin/file conftest.o` in 5000 *32-bit*) 5001 case $host in 5002 x86_64-*kfreebsd*-gnu) 5003 LD="${LD-ld} -m elf_i386_fbsd" 5004 ;; 5005 x86_64-*linux*) 5006 LD="${LD-ld} -m elf_i386" 5007 ;; 5008 ppc64-*linux*|powerpc64-*linux*) 5009 LD="${LD-ld} -m elf32ppclinux" 5010 ;; 5011 s390x-*linux*) 5012 LD="${LD-ld} -m elf_s390" 5013 ;; 5014 sparc64-*linux*) 5015 LD="${LD-ld} -m elf32_sparc" 5016 ;; 5017 esac 5018 ;; 5019 *64-bit*) 5020 case $host in 5021 x86_64-*kfreebsd*-gnu) 5022 LD="${LD-ld} -m elf_x86_64_fbsd" 5023 ;; 5024 x86_64-*linux*) 5025 LD="${LD-ld} -m elf_x86_64" 5026 ;; 5027 ppc*-*linux*|powerpc*-*linux*) 5028 LD="${LD-ld} -m elf64ppc" 5029 ;; 5030 s390*-*linux*|s390*-*tpf*) 5031 LD="${LD-ld} -m elf64_s390" 5032 ;; 5033 sparc*-*linux*) 5034 LD="${LD-ld} -m elf64_sparc" 5035 ;; 5036 esac 5037 ;; 5038 esac 5039 fi 5040 rm -rf conftest* 5041 ;; 5042 5043*-*-sco3.2v5*) 5044 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5045 SAVE_CFLAGS="$CFLAGS" 5046 CFLAGS="$CFLAGS -belf" 5047 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5048$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5049if test "${lt_cv_cc_needs_belf+set}" = set; then 5050 $as_echo_n "(cached) " >&6 5051else 5052 ac_ext=c 5053ac_cpp='$CPP $CPPFLAGS' 5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5056ac_compiler_gnu=$ac_cv_c_compiler_gnu 5057 5058 cat >conftest.$ac_ext <<_ACEOF 5059/* confdefs.h. */ 5060_ACEOF 5061cat confdefs.h >>conftest.$ac_ext 5062cat >>conftest.$ac_ext <<_ACEOF 5063/* end confdefs.h. */ 5064 5065int 5066main () 5067{ 5068 5069 ; 5070 return 0; 5071} 5072_ACEOF 5073rm -f conftest.$ac_objext conftest$ac_exeext 5074if { (ac_try="$ac_link" 5075case "(($ac_try" in 5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5077 *) ac_try_echo=$ac_try;; 5078esac 5079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5080$as_echo "$ac_try_echo") >&5 5081 (eval "$ac_link") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest$ac_exeext && { 5091 test "$cross_compiling" = yes || 5092 $as_test_x conftest$ac_exeext 5093 }; then 5094 lt_cv_cc_needs_belf=yes 5095else 5096 $as_echo "$as_me: failed program was:" >&5 5097sed 's/^/| /' conftest.$ac_ext >&5 5098 5099 lt_cv_cc_needs_belf=no 5100fi 5101 5102rm -rf conftest.dSYM 5103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5104 conftest$ac_exeext conftest.$ac_ext 5105 ac_ext=c 5106ac_cpp='$CPP $CPPFLAGS' 5107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5109ac_compiler_gnu=$ac_cv_c_compiler_gnu 5110 5111fi 5112{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5113$as_echo "$lt_cv_cc_needs_belf" >&6; } 5114 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5115 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5116 CFLAGS="$SAVE_CFLAGS" 5117 fi 5118 ;; 5119sparc*-*solaris*) 5120 # Find out which ABI we are using. 5121 echo 'int i;' > conftest.$ac_ext 5122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5123 (eval $ac_compile) 2>&5 5124 ac_status=$? 5125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); }; then 5127 case `/usr/bin/file conftest.o` in 5128 *64-bit*) 5129 case $lt_cv_prog_gnu_ld in 5130 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5131 *) 5132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5133 LD="${LD-ld} -64" 5134 fi 5135 ;; 5136 esac 5137 ;; 5138 esac 5139 fi 5140 rm -rf conftest* 5141 ;; 5142esac 5143 5144need_locks="$enable_libtool_lock" 5145 5146 5147 case $host_os in 5148 rhapsody* | darwin*) 5149 if test -n "$ac_tool_prefix"; then 5150 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5151set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5153$as_echo_n "checking for $ac_word... " >&6; } 5154if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -n "$DSYMUTIL"; then 5158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5159else 5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5169 break 2 5170 fi 5171done 5172done 5173IFS=$as_save_IFS 5174 5175fi 5176fi 5177DSYMUTIL=$ac_cv_prog_DSYMUTIL 5178if test -n "$DSYMUTIL"; then 5179 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5180$as_echo "$DSYMUTIL" >&6; } 5181else 5182 { $as_echo "$as_me:$LINENO: result: no" >&5 5183$as_echo "no" >&6; } 5184fi 5185 5186 5187fi 5188if test -z "$ac_cv_prog_DSYMUTIL"; then 5189 ac_ct_DSYMUTIL=$DSYMUTIL 5190 # Extract the first word of "dsymutil", so it can be a program name with args. 5191set dummy dsymutil; ac_word=$2 5192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5193$as_echo_n "checking for $ac_word... " >&6; } 5194if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5195 $as_echo_n "(cached) " >&6 5196else 5197 if test -n "$ac_ct_DSYMUTIL"; then 5198 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5199else 5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201for as_dir in $PATH 5202do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5207 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5209 break 2 5210 fi 5211done 5212done 5213IFS=$as_save_IFS 5214 5215fi 5216fi 5217ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5218if test -n "$ac_ct_DSYMUTIL"; then 5219 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5220$as_echo "$ac_ct_DSYMUTIL" >&6; } 5221else 5222 { $as_echo "$as_me:$LINENO: result: no" >&5 5223$as_echo "no" >&6; } 5224fi 5225 5226 if test "x$ac_ct_DSYMUTIL" = x; then 5227 DSYMUTIL=":" 5228 else 5229 case $cross_compiling:$ac_tool_warned in 5230yes:) 5231{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5232whose name does not start with the host triplet. If you think this 5233configuration is useful to you, please write to [email protected]." >&5 5234$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5235whose name does not start with the host triplet. If you think this 5236configuration is useful to you, please write to [email protected]." >&2;} 5237ac_tool_warned=yes ;; 5238esac 5239 DSYMUTIL=$ac_ct_DSYMUTIL 5240 fi 5241else 5242 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5243fi 5244 5245 if test -n "$ac_tool_prefix"; then 5246 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5247set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5249$as_echo_n "checking for $ac_word... " >&6; } 5250if test "${ac_cv_prog_NMEDIT+set}" = set; then 5251 $as_echo_n "(cached) " >&6 5252else 5253 if test -n "$NMEDIT"; then 5254 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5263 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273NMEDIT=$ac_cv_prog_NMEDIT 5274if test -n "$NMEDIT"; then 5275 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5276$as_echo "$NMEDIT" >&6; } 5277else 5278 { $as_echo "$as_me:$LINENO: result: no" >&5 5279$as_echo "no" >&6; } 5280fi 5281 5282 5283fi 5284if test -z "$ac_cv_prog_NMEDIT"; then 5285 ac_ct_NMEDIT=$NMEDIT 5286 # Extract the first word of "nmedit", so it can be a program name with args. 5287set dummy nmedit; ac_word=$2 5288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5289$as_echo_n "checking for $ac_word... " >&6; } 5290if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5291 $as_echo_n "(cached) " >&6 5292else 5293 if test -n "$ac_ct_NMEDIT"; then 5294 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5295else 5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297for as_dir in $PATH 5298do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5303 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307done 5308done 5309IFS=$as_save_IFS 5310 5311fi 5312fi 5313ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5314if test -n "$ac_ct_NMEDIT"; then 5315 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5316$as_echo "$ac_ct_NMEDIT" >&6; } 5317else 5318 { $as_echo "$as_me:$LINENO: result: no" >&5 5319$as_echo "no" >&6; } 5320fi 5321 5322 if test "x$ac_ct_NMEDIT" = x; then 5323 NMEDIT=":" 5324 else 5325 case $cross_compiling:$ac_tool_warned in 5326yes:) 5327{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5328whose name does not start with the host triplet. If you think this 5329configuration is useful to you, please write to [email protected]." >&5 5330$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5331whose name does not start with the host triplet. If you think this 5332configuration is useful to you, please write to [email protected]." >&2;} 5333ac_tool_warned=yes ;; 5334esac 5335 NMEDIT=$ac_ct_NMEDIT 5336 fi 5337else 5338 NMEDIT="$ac_cv_prog_NMEDIT" 5339fi 5340 5341 if test -n "$ac_tool_prefix"; then 5342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5343set dummy ${ac_tool_prefix}lipo; ac_word=$2 5344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5345$as_echo_n "checking for $ac_word... " >&6; } 5346if test "${ac_cv_prog_LIPO+set}" = set; then 5347 $as_echo_n "(cached) " >&6 5348else 5349 if test -n "$LIPO"; then 5350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5351else 5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363done 5364done 5365IFS=$as_save_IFS 5366 5367fi 5368fi 5369LIPO=$ac_cv_prog_LIPO 5370if test -n "$LIPO"; then 5371 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5372$as_echo "$LIPO" >&6; } 5373else 5374 { $as_echo "$as_me:$LINENO: result: no" >&5 5375$as_echo "no" >&6; } 5376fi 5377 5378 5379fi 5380if test -z "$ac_cv_prog_LIPO"; then 5381 ac_ct_LIPO=$LIPO 5382 # Extract the first word of "lipo", so it can be a program name with args. 5383set dummy lipo; ac_word=$2 5384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5385$as_echo_n "checking for $ac_word... " >&6; } 5386if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5387 $as_echo_n "(cached) " >&6 5388else 5389 if test -n "$ac_ct_LIPO"; then 5390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5391else 5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH 5394do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_exec_ext in '' $ac_executable_extensions; do 5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5399 ac_cv_prog_ac_ct_LIPO="lipo" 5400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5401 break 2 5402 fi 5403done 5404done 5405IFS=$as_save_IFS 5406 5407fi 5408fi 5409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5410if test -n "$ac_ct_LIPO"; then 5411 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5412$as_echo "$ac_ct_LIPO" >&6; } 5413else 5414 { $as_echo "$as_me:$LINENO: result: no" >&5 5415$as_echo "no" >&6; } 5416fi 5417 5418 if test "x$ac_ct_LIPO" = x; then 5419 LIPO=":" 5420 else 5421 case $cross_compiling:$ac_tool_warned in 5422yes:) 5423{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5424whose name does not start with the host triplet. If you think this 5425configuration is useful to you, please write to [email protected]." >&5 5426$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5427whose name does not start with the host triplet. If you think this 5428configuration is useful to you, please write to [email protected]." >&2;} 5429ac_tool_warned=yes ;; 5430esac 5431 LIPO=$ac_ct_LIPO 5432 fi 5433else 5434 LIPO="$ac_cv_prog_LIPO" 5435fi 5436 5437 if test -n "$ac_tool_prefix"; then 5438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5439set dummy ${ac_tool_prefix}otool; ac_word=$2 5440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5441$as_echo_n "checking for $ac_word... " >&6; } 5442if test "${ac_cv_prog_OTOOL+set}" = set; then 5443 $as_echo_n "(cached) " >&6 5444else 5445 if test -n "$OTOOL"; then 5446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5447else 5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5449for as_dir in $PATH 5450do 5451 IFS=$as_save_IFS 5452 test -z "$as_dir" && as_dir=. 5453 for ac_exec_ext in '' $ac_executable_extensions; do 5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5457 break 2 5458 fi 5459done 5460done 5461IFS=$as_save_IFS 5462 5463fi 5464fi 5465OTOOL=$ac_cv_prog_OTOOL 5466if test -n "$OTOOL"; then 5467 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 5468$as_echo "$OTOOL" >&6; } 5469else 5470 { $as_echo "$as_me:$LINENO: result: no" >&5 5471$as_echo "no" >&6; } 5472fi 5473 5474 5475fi 5476if test -z "$ac_cv_prog_OTOOL"; then 5477 ac_ct_OTOOL=$OTOOL 5478 # Extract the first word of "otool", so it can be a program name with args. 5479set dummy otool; ac_word=$2 5480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5481$as_echo_n "checking for $ac_word... " >&6; } 5482if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 5483 $as_echo_n "(cached) " >&6 5484else 5485 if test -n "$ac_ct_OTOOL"; then 5486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5487else 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5495 ac_cv_prog_ac_ct_OTOOL="otool" 5496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5497 break 2 5498 fi 5499done 5500done 5501IFS=$as_save_IFS 5502 5503fi 5504fi 5505ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5506if test -n "$ac_ct_OTOOL"; then 5507 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 5508$as_echo "$ac_ct_OTOOL" >&6; } 5509else 5510 { $as_echo "$as_me:$LINENO: result: no" >&5 5511$as_echo "no" >&6; } 5512fi 5513 5514 if test "x$ac_ct_OTOOL" = x; then 5515 OTOOL=":" 5516 else 5517 case $cross_compiling:$ac_tool_warned in 5518yes:) 5519{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5520whose name does not start with the host triplet. If you think this 5521configuration is useful to you, please write to [email protected]." >&5 5522$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5523whose name does not start with the host triplet. If you think this 5524configuration is useful to you, please write to [email protected]." >&2;} 5525ac_tool_warned=yes ;; 5526esac 5527 OTOOL=$ac_ct_OTOOL 5528 fi 5529else 5530 OTOOL="$ac_cv_prog_OTOOL" 5531fi 5532 5533 if test -n "$ac_tool_prefix"; then 5534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5535set dummy ${ac_tool_prefix}otool64; ac_word=$2 5536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5537$as_echo_n "checking for $ac_word... " >&6; } 5538if test "${ac_cv_prog_OTOOL64+set}" = set; then 5539 $as_echo_n "(cached) " >&6 5540else 5541 if test -n "$OTOOL64"; then 5542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5543else 5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5545for as_dir in $PATH 5546do 5547 IFS=$as_save_IFS 5548 test -z "$as_dir" && as_dir=. 5549 for ac_exec_ext in '' $ac_executable_extensions; do 5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5553 break 2 5554 fi 5555done 5556done 5557IFS=$as_save_IFS 5558 5559fi 5560fi 5561OTOOL64=$ac_cv_prog_OTOOL64 5562if test -n "$OTOOL64"; then 5563 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 5564$as_echo "$OTOOL64" >&6; } 5565else 5566 { $as_echo "$as_me:$LINENO: result: no" >&5 5567$as_echo "no" >&6; } 5568fi 5569 5570 5571fi 5572if test -z "$ac_cv_prog_OTOOL64"; then 5573 ac_ct_OTOOL64=$OTOOL64 5574 # Extract the first word of "otool64", so it can be a program name with args. 5575set dummy otool64; ac_word=$2 5576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5577$as_echo_n "checking for $ac_word... " >&6; } 5578if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test -n "$ac_ct_OTOOL64"; then 5582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5583else 5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585for as_dir in $PATH 5586do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5591 ac_cv_prog_ac_ct_OTOOL64="otool64" 5592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595done 5596done 5597IFS=$as_save_IFS 5598 5599fi 5600fi 5601ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5602if test -n "$ac_ct_OTOOL64"; then 5603 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 5604$as_echo "$ac_ct_OTOOL64" >&6; } 5605else 5606 { $as_echo "$as_me:$LINENO: result: no" >&5 5607$as_echo "no" >&6; } 5608fi 5609 5610 if test "x$ac_ct_OTOOL64" = x; then 5611 OTOOL64=":" 5612 else 5613 case $cross_compiling:$ac_tool_warned in 5614yes:) 5615{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5616whose name does not start with the host triplet. If you think this 5617configuration is useful to you, please write to [email protected]." >&5 5618$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5619whose name does not start with the host triplet. If you think this 5620configuration is useful to you, please write to [email protected]." >&2;} 5621ac_tool_warned=yes ;; 5622esac 5623 OTOOL64=$ac_ct_OTOOL64 5624 fi 5625else 5626 OTOOL64="$ac_cv_prog_OTOOL64" 5627fi 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 5656$as_echo_n "checking for -single_module linker flag... " >&6; } 5657if test "${lt_cv_apple_cc_single_mod+set}" = set; then 5658 $as_echo_n "(cached) " >&6 5659else 5660 lt_cv_apple_cc_single_mod=no 5661 if test -z "${LT_MULTI_MODULE}"; then 5662 # By default we will add the -single_module flag. You can override 5663 # by either setting the environment variable LT_MULTI_MODULE 5664 # non-empty at configure time, or by adding -multi_module to the 5665 # link flags. 5666 rm -rf libconftest.dylib* 5667 echo "int foo(void){return 1;}" > conftest.c 5668 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5669-dynamiclib -Wl,-single_module conftest.c" >&5 5670 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5671 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5672 _lt_result=$? 5673 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5674 lt_cv_apple_cc_single_mod=yes 5675 else 5676 cat conftest.err >&5 5677 fi 5678 rm -rf libconftest.dylib* 5679 rm -f conftest.* 5680 fi 5681fi 5682{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 5683$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5684 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 5685$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5686if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 5687 $as_echo_n "(cached) " >&6 5688else 5689 lt_cv_ld_exported_symbols_list=no 5690 save_LDFLAGS=$LDFLAGS 5691 echo "_main" > conftest.sym 5692 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5693 cat >conftest.$ac_ext <<_ACEOF 5694/* confdefs.h. */ 5695_ACEOF 5696cat confdefs.h >>conftest.$ac_ext 5697cat >>conftest.$ac_ext <<_ACEOF 5698/* end confdefs.h. */ 5699 5700int 5701main () 5702{ 5703 5704 ; 5705 return 0; 5706} 5707_ACEOF 5708rm -f conftest.$ac_objext conftest$ac_exeext 5709if { (ac_try="$ac_link" 5710case "(($ac_try" in 5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5712 *) ac_try_echo=$ac_try;; 5713esac 5714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5715$as_echo "$ac_try_echo") >&5 5716 (eval "$ac_link") 2>conftest.er1 5717 ac_status=$? 5718 grep -v '^ *+' conftest.er1 >conftest.err 5719 rm -f conftest.er1 5720 cat conftest.err >&5 5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5722 (exit $ac_status); } && { 5723 test -z "$ac_c_werror_flag" || 5724 test ! -s conftest.err 5725 } && test -s conftest$ac_exeext && { 5726 test "$cross_compiling" = yes || 5727 $as_test_x conftest$ac_exeext 5728 }; then 5729 lt_cv_ld_exported_symbols_list=yes 5730else 5731 $as_echo "$as_me: failed program was:" >&5 5732sed 's/^/| /' conftest.$ac_ext >&5 5733 5734 lt_cv_ld_exported_symbols_list=no 5735fi 5736 5737rm -rf conftest.dSYM 5738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5739 conftest$ac_exeext conftest.$ac_ext 5740 LDFLAGS="$save_LDFLAGS" 5741 5742fi 5743{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 5744$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5745 case $host_os in 5746 rhapsody* | darwin1.[012]) 5747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5748 darwin1.*) 5749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5750 darwin*) # darwin 5.x on 5751 # if running on 10.5 or later, the deployment target defaults 5752 # to the OS version, if on x86, and 10.4, the deployment 5753 # target defaults to 10.4. Don't you love it? 5754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5755 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5757 10.[012]*) 5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5759 10.*) 5760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5761 esac 5762 ;; 5763 esac 5764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5765 _lt_dar_single_mod='$single_module' 5766 fi 5767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5769 else 5770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5771 fi 5772 if test "$DSYMUTIL" != ":"; then 5773 _lt_dsymutil='~$DSYMUTIL $lib || :' 5774 else 5775 _lt_dsymutil= 5776 fi 5777 ;; 5778 esac 5779 5780ac_ext=c 5781ac_cpp='$CPP $CPPFLAGS' 5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5784ac_compiler_gnu=$ac_cv_c_compiler_gnu 5785{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5786$as_echo_n "checking how to run the C preprocessor... " >&6; } 5787# On Suns, sometimes $CPP names a directory. 5788if test -n "$CPP" && test -d "$CPP"; then 5789 CPP= 5790fi 5791if test -z "$CPP"; then 5792 if test "${ac_cv_prog_CPP+set}" = set; then 5793 $as_echo_n "(cached) " >&6 5794else 5795 # Double quotes because CPP needs to be expanded 5796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5797 do 5798 ac_preproc_ok=false 5799for ac_c_preproc_warn_flag in '' yes 5800do 5801 # Use a header file that comes with gcc, so configuring glibc 5802 # with a fresh cross-compiler works. 5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5804 # <limits.h> exists even on freestanding compilers. 5805 # On the NeXT, cc -E runs the code through the compiler's parser, 5806 # not just through cpp. "Syntax error" is here to catch this case. 5807 cat >conftest.$ac_ext <<_ACEOF 5808/* confdefs.h. */ 5809_ACEOF 5810cat confdefs.h >>conftest.$ac_ext 5811cat >>conftest.$ac_ext <<_ACEOF 5812/* end confdefs.h. */ 5813#ifdef __STDC__ 5814# include <limits.h> 5815#else 5816# include <assert.h> 5817#endif 5818 Syntax error 5819_ACEOF 5820if { (ac_try="$ac_cpp conftest.$ac_ext" 5821case "(($ac_try" in 5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5823 *) ac_try_echo=$ac_try;; 5824esac 5825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5826$as_echo "$ac_try_echo") >&5 5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5828 ac_status=$? 5829 grep -v '^ *+' conftest.er1 >conftest.err 5830 rm -f conftest.er1 5831 cat conftest.err >&5 5832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); } >/dev/null && { 5834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5835 test ! -s conftest.err 5836 }; then 5837 : 5838else 5839 $as_echo "$as_me: failed program was:" >&5 5840sed 's/^/| /' conftest.$ac_ext >&5 5841 5842 # Broken: fails on valid input. 5843continue 5844fi 5845 5846rm -f conftest.err conftest.$ac_ext 5847 5848 # OK, works on sane cases. Now check whether nonexistent headers 5849 # can be detected and how. 5850 cat >conftest.$ac_ext <<_ACEOF 5851/* confdefs.h. */ 5852_ACEOF 5853cat confdefs.h >>conftest.$ac_ext 5854cat >>conftest.$ac_ext <<_ACEOF 5855/* end confdefs.h. */ 5856#include <ac_nonexistent.h> 5857_ACEOF 5858if { (ac_try="$ac_cpp conftest.$ac_ext" 5859case "(($ac_try" in 5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5861 *) ac_try_echo=$ac_try;; 5862esac 5863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5864$as_echo "$ac_try_echo") >&5 5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5866 ac_status=$? 5867 grep -v '^ *+' conftest.er1 >conftest.err 5868 rm -f conftest.er1 5869 cat conftest.err >&5 5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); } >/dev/null && { 5872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5873 test ! -s conftest.err 5874 }; then 5875 # Broken: success on invalid input. 5876continue 5877else 5878 $as_echo "$as_me: failed program was:" >&5 5879sed 's/^/| /' conftest.$ac_ext >&5 5880 5881 # Passes both tests. 5882ac_preproc_ok=: 5883break 5884fi 5885 5886rm -f conftest.err conftest.$ac_ext 5887 5888done 5889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5890rm -f conftest.err conftest.$ac_ext 5891if $ac_preproc_ok; then 5892 break 5893fi 5894 5895 done 5896 ac_cv_prog_CPP=$CPP 5897 5898fi 5899 CPP=$ac_cv_prog_CPP 5900else 5901 ac_cv_prog_CPP=$CPP 5902fi 5903{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 5904$as_echo "$CPP" >&6; } 5905ac_preproc_ok=false 5906for ac_c_preproc_warn_flag in '' yes 5907do 5908 # Use a header file that comes with gcc, so configuring glibc 5909 # with a fresh cross-compiler works. 5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5911 # <limits.h> exists even on freestanding compilers. 5912 # On the NeXT, cc -E runs the code through the compiler's parser, 5913 # not just through cpp. "Syntax error" is here to catch this case. 5914 cat >conftest.$ac_ext <<_ACEOF 5915/* confdefs.h. */ 5916_ACEOF 5917cat confdefs.h >>conftest.$ac_ext 5918cat >>conftest.$ac_ext <<_ACEOF 5919/* end confdefs.h. */ 5920#ifdef __STDC__ 5921# include <limits.h> 5922#else 5923# include <assert.h> 5924#endif 5925 Syntax error 5926_ACEOF 5927if { (ac_try="$ac_cpp conftest.$ac_ext" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5933$as_echo "$ac_try_echo") >&5 5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5935 ac_status=$? 5936 grep -v '^ *+' conftest.er1 >conftest.err 5937 rm -f conftest.er1 5938 cat conftest.err >&5 5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } >/dev/null && { 5941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5942 test ! -s conftest.err 5943 }; then 5944 : 5945else 5946 $as_echo "$as_me: failed program was:" >&5 5947sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 # Broken: fails on valid input. 5950continue 5951fi 5952 5953rm -f conftest.err conftest.$ac_ext 5954 5955 # OK, works on sane cases. Now check whether nonexistent headers 5956 # can be detected and how. 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <ac_nonexistent.h> 5964_ACEOF 5965if { (ac_try="$ac_cpp conftest.$ac_ext" 5966case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5971$as_echo "$ac_try_echo") >&5 5972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5973 ac_status=$? 5974 grep -v '^ *+' conftest.er1 >conftest.err 5975 rm -f conftest.er1 5976 cat conftest.err >&5 5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5978 (exit $ac_status); } >/dev/null && { 5979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5980 test ! -s conftest.err 5981 }; then 5982 # Broken: success on invalid input. 5983continue 5984else 5985 $as_echo "$as_me: failed program was:" >&5 5986sed 's/^/| /' conftest.$ac_ext >&5 5987 5988 # Passes both tests. 5989ac_preproc_ok=: 5990break 5991fi 5992 5993rm -f conftest.err conftest.$ac_ext 5994 5995done 5996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5997rm -f conftest.err conftest.$ac_ext 5998if $ac_preproc_ok; then 5999 : 6000else 6001 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6002See \`config.log' for more details." >&5 6003$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6004See \`config.log' for more details." >&2;} 6005 { (exit 1); exit 1; }; } 6006fi 6007 6008ac_ext=c 6009ac_cpp='$CPP $CPPFLAGS' 6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6012ac_compiler_gnu=$ac_cv_c_compiler_gnu 6013 6014 6015{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6016$as_echo_n "checking for ANSI C header files... " >&6; } 6017if test "${ac_cv_header_stdc+set}" = set; then 6018 $as_echo_n "(cached) " >&6 6019else 6020 cat >conftest.$ac_ext <<_ACEOF 6021/* confdefs.h. */ 6022_ACEOF 6023cat confdefs.h >>conftest.$ac_ext 6024cat >>conftest.$ac_ext <<_ACEOF 6025/* end confdefs.h. */ 6026#include <stdlib.h> 6027#include <stdarg.h> 6028#include <string.h> 6029#include <float.h> 6030 6031int 6032main () 6033{ 6034 6035 ; 6036 return 0; 6037} 6038_ACEOF 6039rm -f conftest.$ac_objext 6040if { (ac_try="$ac_compile" 6041case "(($ac_try" in 6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6043 *) ac_try_echo=$ac_try;; 6044esac 6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6046$as_echo "$ac_try_echo") >&5 6047 (eval "$ac_compile") 2>conftest.er1 6048 ac_status=$? 6049 grep -v '^ *+' conftest.er1 >conftest.err 6050 rm -f conftest.er1 6051 cat conftest.err >&5 6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6053 (exit $ac_status); } && { 6054 test -z "$ac_c_werror_flag" || 6055 test ! -s conftest.err 6056 } && test -s conftest.$ac_objext; then 6057 ac_cv_header_stdc=yes 6058else 6059 $as_echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 ac_cv_header_stdc=no 6063fi 6064 6065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6066 6067if test $ac_cv_header_stdc = yes; then 6068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6069 cat >conftest.$ac_ext <<_ACEOF 6070/* confdefs.h. */ 6071_ACEOF 6072cat confdefs.h >>conftest.$ac_ext 6073cat >>conftest.$ac_ext <<_ACEOF 6074/* end confdefs.h. */ 6075#include <string.h> 6076 6077_ACEOF 6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6079 $EGREP "memchr" >/dev/null 2>&1; then 6080 : 6081else 6082 ac_cv_header_stdc=no 6083fi 6084rm -f conftest* 6085 6086fi 6087 6088if test $ac_cv_header_stdc = yes; then 6089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6090 cat >conftest.$ac_ext <<_ACEOF 6091/* confdefs.h. */ 6092_ACEOF 6093cat confdefs.h >>conftest.$ac_ext 6094cat >>conftest.$ac_ext <<_ACEOF 6095/* end confdefs.h. */ 6096#include <stdlib.h> 6097 6098_ACEOF 6099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6100 $EGREP "free" >/dev/null 2>&1; then 6101 : 6102else 6103 ac_cv_header_stdc=no 6104fi 6105rm -f conftest* 6106 6107fi 6108 6109if test $ac_cv_header_stdc = yes; then 6110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6111 if test "$cross_compiling" = yes; then 6112 : 6113else 6114 cat >conftest.$ac_ext <<_ACEOF 6115/* confdefs.h. */ 6116_ACEOF 6117cat confdefs.h >>conftest.$ac_ext 6118cat >>conftest.$ac_ext <<_ACEOF 6119/* end confdefs.h. */ 6120#include <ctype.h> 6121#include <stdlib.h> 6122#if ((' ' & 0x0FF) == 0x020) 6123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6125#else 6126# define ISLOWER(c) \ 6127 (('a' <= (c) && (c) <= 'i') \ 6128 || ('j' <= (c) && (c) <= 'r') \ 6129 || ('s' <= (c) && (c) <= 'z')) 6130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6131#endif 6132 6133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6134int 6135main () 6136{ 6137 int i; 6138 for (i = 0; i < 256; i++) 6139 if (XOR (islower (i), ISLOWER (i)) 6140 || toupper (i) != TOUPPER (i)) 6141 return 2; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest$ac_exeext 6146if { (ac_try="$ac_link" 6147case "(($ac_try" in 6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6149 *) ac_try_echo=$ac_try;; 6150esac 6151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6152$as_echo "$ac_try_echo") >&5 6153 (eval "$ac_link") 2>&5 6154 ac_status=$? 6155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6157 { (case "(($ac_try" in 6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6159 *) ac_try_echo=$ac_try;; 6160esac 6161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6162$as_echo "$ac_try_echo") >&5 6163 (eval "$ac_try") 2>&5 6164 ac_status=$? 6165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 (exit $ac_status); }; }; then 6167 : 6168else 6169 $as_echo "$as_me: program exited with status $ac_status" >&5 6170$as_echo "$as_me: failed program was:" >&5 6171sed 's/^/| /' conftest.$ac_ext >&5 6172 6173( exit $ac_status ) 6174ac_cv_header_stdc=no 6175fi 6176rm -rf conftest.dSYM 6177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6178fi 6179 6180 6181fi 6182fi 6183{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6184$as_echo "$ac_cv_header_stdc" >&6; } 6185if test $ac_cv_header_stdc = yes; then 6186 6187cat >>confdefs.h <<\_ACEOF 6188#define STDC_HEADERS 1 6189_ACEOF 6190 6191fi 6192 6193# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6204 inttypes.h stdint.h unistd.h 6205do 6206as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6207{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6208$as_echo_n "checking for $ac_header... " >&6; } 6209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6210 $as_echo_n "(cached) " >&6 6211else 6212 cat >conftest.$ac_ext <<_ACEOF 6213/* confdefs.h. */ 6214_ACEOF 6215cat confdefs.h >>conftest.$ac_ext 6216cat >>conftest.$ac_ext <<_ACEOF 6217/* end confdefs.h. */ 6218$ac_includes_default 6219 6220#include <$ac_header> 6221_ACEOF 6222rm -f conftest.$ac_objext 6223if { (ac_try="$ac_compile" 6224case "(($ac_try" in 6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6226 *) ac_try_echo=$ac_try;; 6227esac 6228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6229$as_echo "$ac_try_echo") >&5 6230 (eval "$ac_compile") 2>conftest.er1 6231 ac_status=$? 6232 grep -v '^ *+' conftest.er1 >conftest.err 6233 rm -f conftest.er1 6234 cat conftest.err >&5 6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && { 6237 test -z "$ac_c_werror_flag" || 6238 test ! -s conftest.err 6239 } && test -s conftest.$ac_objext; then 6240 eval "$as_ac_Header=yes" 6241else 6242 $as_echo "$as_me: failed program was:" >&5 6243sed 's/^/| /' conftest.$ac_ext >&5 6244 6245 eval "$as_ac_Header=no" 6246fi 6247 6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6249fi 6250ac_res=`eval 'as_val=${'$as_ac_Header'} 6251 $as_echo "$as_val"'` 6252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6253$as_echo "$ac_res" >&6; } 6254if test `eval 'as_val=${'$as_ac_Header'} 6255 $as_echo "$as_val"'` = yes; then 6256 cat >>confdefs.h <<_ACEOF 6257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6258_ACEOF 6259 6260fi 6261 6262done 6263 6264 6265 6266for ac_header in dlfcn.h 6267do 6268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6270$as_echo_n "checking for $ac_header... " >&6; } 6271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6272 $as_echo_n "(cached) " >&6 6273else 6274 cat >conftest.$ac_ext <<_ACEOF 6275/* confdefs.h. */ 6276_ACEOF 6277cat confdefs.h >>conftest.$ac_ext 6278cat >>conftest.$ac_ext <<_ACEOF 6279/* end confdefs.h. */ 6280$ac_includes_default 6281 6282#include <$ac_header> 6283_ACEOF 6284rm -f conftest.$ac_objext 6285if { (ac_try="$ac_compile" 6286case "(($ac_try" in 6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6288 *) ac_try_echo=$ac_try;; 6289esac 6290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6291$as_echo "$ac_try_echo") >&5 6292 (eval "$ac_compile") 2>conftest.er1 6293 ac_status=$? 6294 grep -v '^ *+' conftest.er1 >conftest.err 6295 rm -f conftest.er1 6296 cat conftest.err >&5 6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); } && { 6299 test -z "$ac_c_werror_flag" || 6300 test ! -s conftest.err 6301 } && test -s conftest.$ac_objext; then 6302 eval "$as_ac_Header=yes" 6303else 6304 $as_echo "$as_me: failed program was:" >&5 6305sed 's/^/| /' conftest.$ac_ext >&5 6306 6307 eval "$as_ac_Header=no" 6308fi 6309 6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6311fi 6312ac_res=`eval 'as_val=${'$as_ac_Header'} 6313 $as_echo "$as_val"'` 6314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6315$as_echo "$ac_res" >&6; } 6316if test `eval 'as_val=${'$as_ac_Header'} 6317 $as_echo "$as_val"'` = yes; then 6318 cat >>confdefs.h <<_ACEOF 6319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6320_ACEOF 6321 6322fi 6323 6324done 6325 6326 6327 6328# Set options 6329 6330 6331 6332 enable_dlopen=no 6333 6334 6335 enable_win32_dll=no 6336 6337 6338 # Check whether --enable-shared was given. 6339if test "${enable_shared+set}" = set; then 6340 enableval=$enable_shared; p=${PACKAGE-default} 6341 case $enableval in 6342 yes) enable_shared=yes ;; 6343 no) enable_shared=no ;; 6344 *) 6345 enable_shared=no 6346 # Look at the argument we got. We use all the common list separators. 6347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6348 for pkg in $enableval; do 6349 IFS="$lt_save_ifs" 6350 if test "X$pkg" = "X$p"; then 6351 enable_shared=yes 6352 fi 6353 done 6354 IFS="$lt_save_ifs" 6355 ;; 6356 esac 6357else 6358 enable_shared=yes 6359fi 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 # Check whether --enable-static was given. 6370if test "${enable_static+set}" = set; then 6371 enableval=$enable_static; p=${PACKAGE-default} 6372 case $enableval in 6373 yes) enable_static=yes ;; 6374 no) enable_static=no ;; 6375 *) 6376 enable_static=no 6377 # Look at the argument we got. We use all the common list separators. 6378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6379 for pkg in $enableval; do 6380 IFS="$lt_save_ifs" 6381 if test "X$pkg" = "X$p"; then 6382 enable_static=yes 6383 fi 6384 done 6385 IFS="$lt_save_ifs" 6386 ;; 6387 esac 6388else 6389 enable_static=yes 6390fi 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401# Check whether --with-pic was given. 6402if test "${with_pic+set}" = set; then 6403 withval=$with_pic; pic_mode="$withval" 6404else 6405 pic_mode=default 6406fi 6407 6408 6409test -z "$pic_mode" && pic_mode=default 6410 6411 6412 6413 6414 6415 6416 6417 # Check whether --enable-fast-install was given. 6418if test "${enable_fast_install+set}" = set; then 6419 enableval=$enable_fast_install; p=${PACKAGE-default} 6420 case $enableval in 6421 yes) enable_fast_install=yes ;; 6422 no) enable_fast_install=no ;; 6423 *) 6424 enable_fast_install=no 6425 # Look at the argument we got. We use all the common list separators. 6426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6427 for pkg in $enableval; do 6428 IFS="$lt_save_ifs" 6429 if test "X$pkg" = "X$p"; then 6430 enable_fast_install=yes 6431 fi 6432 done 6433 IFS="$lt_save_ifs" 6434 ;; 6435 esac 6436else 6437 enable_fast_install=yes 6438fi 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450# This can be used to rebuild libtool when needed 6451LIBTOOL_DEPS="$ltmain" 6452 6453# Always use our own libtool. 6454LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480test -z "$LN_S" && LN_S="ln -s" 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495if test -n "${ZSH_VERSION+set}" ; then 6496 setopt NO_GLOB_SUBST 6497fi 6498 6499{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6500$as_echo_n "checking for objdir... " >&6; } 6501if test "${lt_cv_objdir+set}" = set; then 6502 $as_echo_n "(cached) " >&6 6503else 6504 rm -f .libs 2>/dev/null 6505mkdir .libs 2>/dev/null 6506if test -d .libs; then 6507 lt_cv_objdir=.libs 6508else 6509 # MS-DOS does not allow filenames that begin with a dot. 6510 lt_cv_objdir=_libs 6511fi 6512rmdir .libs 2>/dev/null 6513fi 6514{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6515$as_echo "$lt_cv_objdir" >&6; } 6516objdir=$lt_cv_objdir 6517 6518 6519 6520 6521 6522cat >>confdefs.h <<_ACEOF 6523#define LT_OBJDIR "$lt_cv_objdir/" 6524_ACEOF 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542case $host_os in 6543aix3*) 6544 # AIX sometimes has problems with the GCC collect2 program. For some 6545 # reason, if we set the COLLECT_NAMES environment variable, the problems 6546 # vanish in a puff of smoke. 6547 if test "X${COLLECT_NAMES+set}" != Xset; then 6548 COLLECT_NAMES= 6549 export COLLECT_NAMES 6550 fi 6551 ;; 6552esac 6553 6554# Sed substitution that helps us do robust quoting. It backslashifies 6555# metacharacters that are still active within double-quoted strings. 6556sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6557 6558# Same as above, but do not quote variable references. 6559double_quote_subst='s/\(["`\\]\)/\\\1/g' 6560 6561# Sed substitution to delay expansion of an escaped shell variable in a 6562# double_quote_subst'ed string. 6563delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6564 6565# Sed substitution to delay expansion of an escaped single quote. 6566delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6567 6568# Sed substitution to avoid accidental globbing in evaled expressions 6569no_glob_subst='s/\*/\\\*/g' 6570 6571# Global variables: 6572ofile=libtool 6573can_build_shared=yes 6574 6575# All known linkers require a `.a' archive for static linking (except MSVC, 6576# which needs '.lib'). 6577libext=a 6578 6579with_gnu_ld="$lt_cv_prog_gnu_ld" 6580 6581old_CC="$CC" 6582old_CFLAGS="$CFLAGS" 6583 6584# Set sane defaults for various variables 6585test -z "$CC" && CC=cc 6586test -z "$LTCC" && LTCC=$CC 6587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6588test -z "$LD" && LD=ld 6589test -z "$ac_objext" && ac_objext=o 6590 6591for cc_temp in $compiler""; do 6592 case $cc_temp in 6593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6595 \-*) ;; 6596 *) break;; 6597 esac 6598done 6599cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6600 6601 6602# Only perform the check for file, if the check method requires it 6603test -z "$MAGIC_CMD" && MAGIC_CMD=file 6604case $deplibs_check_method in 6605file_magic*) 6606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6607 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6610 $as_echo_n "(cached) " >&6 6611else 6612 case $MAGIC_CMD in 6613[\\/*] | ?:[\\/]*) 6614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6615 ;; 6616*) 6617 lt_save_MAGIC_CMD="$MAGIC_CMD" 6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6620 for ac_dir in $ac_dummy; do 6621 IFS="$lt_save_ifs" 6622 test -z "$ac_dir" && ac_dir=. 6623 if test -f $ac_dir/${ac_tool_prefix}file; then 6624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6625 if test -n "$file_magic_test_file"; then 6626 case $deplibs_check_method in 6627 "file_magic "*) 6628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6631 $EGREP "$file_magic_regex" > /dev/null; then 6632 : 6633 else 6634 cat <<_LT_EOF 1>&2 6635 6636*** Warning: the command libtool uses to detect shared libraries, 6637*** $file_magic_cmd, produces output that libtool cannot recognize. 6638*** The result is that libtool may fail to recognize shared libraries 6639*** as such. This will affect the creation of libtool libraries that 6640*** depend on shared libraries, but programs linked with such libtool 6641*** libraries will work regardless of this problem. Nevertheless, you 6642*** may want to report the problem to your system manager and/or to 6643*** [email protected] 6644 6645_LT_EOF 6646 fi ;; 6647 esac 6648 fi 6649 break 6650 fi 6651 done 6652 IFS="$lt_save_ifs" 6653 MAGIC_CMD="$lt_save_MAGIC_CMD" 6654 ;; 6655esac 6656fi 6657 6658MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6659if test -n "$MAGIC_CMD"; then 6660 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6661$as_echo "$MAGIC_CMD" >&6; } 6662else 6663 { $as_echo "$as_me:$LINENO: result: no" >&5 6664$as_echo "no" >&6; } 6665fi 6666 6667 6668 6669 6670 6671if test -z "$lt_cv_path_MAGIC_CMD"; then 6672 if test -n "$ac_tool_prefix"; then 6673 { $as_echo "$as_me:$LINENO: checking for file" >&5 6674$as_echo_n "checking for file... " >&6; } 6675if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6676 $as_echo_n "(cached) " >&6 6677else 6678 case $MAGIC_CMD in 6679[\\/*] | ?:[\\/]*) 6680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6681 ;; 6682*) 6683 lt_save_MAGIC_CMD="$MAGIC_CMD" 6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6686 for ac_dir in $ac_dummy; do 6687 IFS="$lt_save_ifs" 6688 test -z "$ac_dir" && ac_dir=. 6689 if test -f $ac_dir/file; then 6690 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6691 if test -n "$file_magic_test_file"; then 6692 case $deplibs_check_method in 6693 "file_magic "*) 6694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6697 $EGREP "$file_magic_regex" > /dev/null; then 6698 : 6699 else 6700 cat <<_LT_EOF 1>&2 6701 6702*** Warning: the command libtool uses to detect shared libraries, 6703*** $file_magic_cmd, produces output that libtool cannot recognize. 6704*** The result is that libtool may fail to recognize shared libraries 6705*** as such. This will affect the creation of libtool libraries that 6706*** depend on shared libraries, but programs linked with such libtool 6707*** libraries will work regardless of this problem. Nevertheless, you 6708*** may want to report the problem to your system manager and/or to 6709*** [email protected] 6710 6711_LT_EOF 6712 fi ;; 6713 esac 6714 fi 6715 break 6716 fi 6717 done 6718 IFS="$lt_save_ifs" 6719 MAGIC_CMD="$lt_save_MAGIC_CMD" 6720 ;; 6721esac 6722fi 6723 6724MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6725if test -n "$MAGIC_CMD"; then 6726 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6727$as_echo "$MAGIC_CMD" >&6; } 6728else 6729 { $as_echo "$as_me:$LINENO: result: no" >&5 6730$as_echo "no" >&6; } 6731fi 6732 6733 6734 else 6735 MAGIC_CMD=: 6736 fi 6737fi 6738 6739 fi 6740 ;; 6741esac 6742 6743# Use C for the default configuration in the libtool script 6744 6745lt_save_CC="$CC" 6746ac_ext=c 6747ac_cpp='$CPP $CPPFLAGS' 6748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6750ac_compiler_gnu=$ac_cv_c_compiler_gnu 6751 6752 6753# Source file extension for C test sources. 6754ac_ext=c 6755 6756# Object file extension for compiled C test sources. 6757objext=o 6758objext=$objext 6759 6760# Code to be used in simple compile tests 6761lt_simple_compile_test_code="int some_variable = 0;" 6762 6763# Code to be used in simple link tests 6764lt_simple_link_test_code='int main(){return(0);}' 6765 6766 6767 6768 6769 6770 6771 6772# If no C compiler was specified, use CC. 6773LTCC=${LTCC-"$CC"} 6774 6775# If no C compiler flags were specified, use CFLAGS. 6776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6777 6778# Allow CC to be a program name with arguments. 6779compiler=$CC 6780 6781# Save the default compiler, since it gets overwritten when the other 6782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6783compiler_DEFAULT=$CC 6784 6785# save warnings/boilerplate of simple test code 6786ac_outfile=conftest.$ac_objext 6787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6789_lt_compiler_boilerplate=`cat conftest.err` 6790$RM conftest* 6791 6792ac_outfile=conftest.$ac_objext 6793echo "$lt_simple_link_test_code" >conftest.$ac_ext 6794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6795_lt_linker_boilerplate=`cat conftest.err` 6796$RM -r conftest* 6797 6798 6799if test -n "$compiler"; then 6800 6801lt_prog_compiler_no_builtin_flag= 6802 6803if test "$GCC" = yes; then 6804 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6805 6806 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6807$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6808if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6809 $as_echo_n "(cached) " >&6 6810else 6811 lt_cv_prog_compiler_rtti_exceptions=no 6812 ac_outfile=conftest.$ac_objext 6813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6814 lt_compiler_flag="-fno-rtti -fno-exceptions" 6815 # Insert the option either (1) after the last *FLAGS variable, or 6816 # (2) before a word containing "conftest.", or (3) at the end. 6817 # Note that $ac_compile itself does not contain backslashes and begins 6818 # with a dollar sign (not a hyphen), so the echo should work correctly. 6819 # The option is referenced via a variable to avoid confusing sed. 6820 lt_compile=`echo "$ac_compile" | $SED \ 6821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6823 -e 's:$: $lt_compiler_flag:'` 6824 (eval echo "\"\$as_me:6824: $lt_compile\"" >&5) 6825 (eval "$lt_compile" 2>conftest.err) 6826 ac_status=$? 6827 cat conftest.err >&5 6828 echo "$as_me:6828: \$? = $ac_status" >&5 6829 if (exit $ac_status) && test -s "$ac_outfile"; then 6830 # The compiler can only warn and ignore the option if not recognized 6831 # So say no if there are warnings other than the usual output. 6832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6835 lt_cv_prog_compiler_rtti_exceptions=yes 6836 fi 6837 fi 6838 $RM conftest* 6839 6840fi 6841{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6842$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6843 6844if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6846else 6847 : 6848fi 6849 6850fi 6851 6852 6853 6854 6855 6856 6857 lt_prog_compiler_wl= 6858lt_prog_compiler_pic= 6859lt_prog_compiler_static= 6860 6861{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6862$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6863 6864 if test "$GCC" = yes; then 6865 lt_prog_compiler_wl='-Wl,' 6866 lt_prog_compiler_static='-static' 6867 6868 case $host_os in 6869 aix*) 6870 # All AIX code is PIC. 6871 if test "$host_cpu" = ia64; then 6872 # AIX 5 now supports IA64 processor 6873 lt_prog_compiler_static='-Bstatic' 6874 fi 6875 ;; 6876 6877 amigaos*) 6878 case $host_cpu in 6879 powerpc) 6880 # see comment about AmigaOS4 .so support 6881 lt_prog_compiler_pic='-fPIC' 6882 ;; 6883 m68k) 6884 # FIXME: we need at least 68020 code to build shared libraries, but 6885 # adding the `-m68020' flag to GCC prevents building anything better, 6886 # like `-m68040'. 6887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6888 ;; 6889 esac 6890 ;; 6891 6892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6893 # PIC is the default for these OSes. 6894 ;; 6895 6896 mingw* | cygwin* | pw32* | os2* | cegcc*) 6897 # This hack is so that the source file can tell whether it is being 6898 # built for inclusion in a dll (and should export symbols for example). 6899 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6900 # (--disable-auto-import) libraries 6901 lt_prog_compiler_pic='-DDLL_EXPORT' 6902 ;; 6903 6904 darwin* | rhapsody*) 6905 # PIC is the default on this platform 6906 # Common symbols not allowed in MH_DYLIB files 6907 lt_prog_compiler_pic='-fno-common' 6908 ;; 6909 6910 hpux*) 6911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6913 # sets the default TLS model and affects inlining. 6914 case $host_cpu in 6915 hppa*64*) 6916 # +Z the default 6917 ;; 6918 *) 6919 lt_prog_compiler_pic='-fPIC' 6920 ;; 6921 esac 6922 ;; 6923 6924 interix[3-9]*) 6925 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6926 # Instead, we relocate shared libraries at runtime. 6927 ;; 6928 6929 msdosdjgpp*) 6930 # Just because we use GCC doesn't mean we suddenly get shared libraries 6931 # on systems that don't support them. 6932 lt_prog_compiler_can_build_shared=no 6933 enable_shared=no 6934 ;; 6935 6936 *nto* | *qnx*) 6937 # QNX uses GNU C++, but need to define -shared option too, otherwise 6938 # it will coredump. 6939 lt_prog_compiler_pic='-fPIC -shared' 6940 ;; 6941 6942 sysv4*MP*) 6943 if test -d /usr/nec; then 6944 lt_prog_compiler_pic=-Kconform_pic 6945 fi 6946 ;; 6947 6948 *) 6949 lt_prog_compiler_pic='-fPIC' 6950 ;; 6951 esac 6952 else 6953 # PORTME Check for flag to pass linker flags through the system compiler. 6954 case $host_os in 6955 aix*) 6956 lt_prog_compiler_wl='-Wl,' 6957 if test "$host_cpu" = ia64; then 6958 # AIX 5 now supports IA64 processor 6959 lt_prog_compiler_static='-Bstatic' 6960 else 6961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6962 fi 6963 ;; 6964 6965 mingw* | cygwin* | pw32* | os2* | cegcc*) 6966 # This hack is so that the source file can tell whether it is being 6967 # built for inclusion in a dll (and should export symbols for example). 6968 lt_prog_compiler_pic='-DDLL_EXPORT' 6969 ;; 6970 6971 hpux9* | hpux10* | hpux11*) 6972 lt_prog_compiler_wl='-Wl,' 6973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6974 # not for PA HP-UX. 6975 case $host_cpu in 6976 hppa*64*|ia64*) 6977 # +Z the default 6978 ;; 6979 *) 6980 lt_prog_compiler_pic='+Z' 6981 ;; 6982 esac 6983 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6984 lt_prog_compiler_static='${wl}-a ${wl}archive' 6985 ;; 6986 6987 irix5* | irix6* | nonstopux*) 6988 lt_prog_compiler_wl='-Wl,' 6989 # PIC (with -KPIC) is the default. 6990 lt_prog_compiler_static='-non_shared' 6991 ;; 6992 6993 linux* | k*bsd*-gnu) 6994 case $cc_basename in 6995 # old Intel for x86_64 which still supported -KPIC. 6996 ecc*) 6997 lt_prog_compiler_wl='-Wl,' 6998 lt_prog_compiler_pic='-KPIC' 6999 lt_prog_compiler_static='-static' 7000 ;; 7001 # icc used to be incompatible with GCC. 7002 # ICC 10 doesn't accept -KPIC any more. 7003 icc* | ifort*) 7004 lt_prog_compiler_wl='-Wl,' 7005 lt_prog_compiler_pic='-fPIC' 7006 lt_prog_compiler_static='-static' 7007 ;; 7008 # Lahey Fortran 8.1. 7009 lf95*) 7010 lt_prog_compiler_wl='-Wl,' 7011 lt_prog_compiler_pic='--shared' 7012 lt_prog_compiler_static='--static' 7013 ;; 7014 pgcc* | pgf77* | pgf90* | pgf95*) 7015 # Portland Group compilers (*not* the Pentium gcc compiler, 7016 # which looks to be a dead project) 7017 lt_prog_compiler_wl='-Wl,' 7018 lt_prog_compiler_pic='-fpic' 7019 lt_prog_compiler_static='-Bstatic' 7020 ;; 7021 ccc*) 7022 lt_prog_compiler_wl='-Wl,' 7023 # All Alpha code is PIC. 7024 lt_prog_compiler_static='-non_shared' 7025 ;; 7026 xl*) 7027 # IBM XL C 8.0/Fortran 10.1 on PPC 7028 lt_prog_compiler_wl='-Wl,' 7029 lt_prog_compiler_pic='-qpic' 7030 lt_prog_compiler_static='-qstaticlink' 7031 ;; 7032 *) 7033 case `$CC -V 2>&1 | sed 5q` in 7034 *Sun\ C*) 7035 # Sun C 5.9 7036 lt_prog_compiler_pic='-KPIC' 7037 lt_prog_compiler_static='-Bstatic' 7038 lt_prog_compiler_wl='-Wl,' 7039 ;; 7040 *Sun\ F*) 7041 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7042 lt_prog_compiler_pic='-KPIC' 7043 lt_prog_compiler_static='-Bstatic' 7044 lt_prog_compiler_wl='' 7045 ;; 7046 esac 7047 ;; 7048 esac 7049 ;; 7050 7051 newsos6) 7052 lt_prog_compiler_pic='-KPIC' 7053 lt_prog_compiler_static='-Bstatic' 7054 ;; 7055 7056 *nto* | *qnx*) 7057 # QNX uses GNU C++, but need to define -shared option too, otherwise 7058 # it will coredump. 7059 lt_prog_compiler_pic='-fPIC -shared' 7060 ;; 7061 7062 osf3* | osf4* | osf5*) 7063 lt_prog_compiler_wl='-Wl,' 7064 # All OSF/1 code is PIC. 7065 lt_prog_compiler_static='-non_shared' 7066 ;; 7067 7068 rdos*) 7069 lt_prog_compiler_static='-non_shared' 7070 ;; 7071 7072 solaris*) 7073 lt_prog_compiler_pic='-KPIC' 7074 lt_prog_compiler_static='-Bstatic' 7075 case $cc_basename in 7076 f77* | f90* | f95*) 7077 lt_prog_compiler_wl='-Qoption ld ';; 7078 *) 7079 lt_prog_compiler_wl='-Wl,';; 7080 esac 7081 ;; 7082 7083 sunos4*) 7084 lt_prog_compiler_wl='-Qoption ld ' 7085 lt_prog_compiler_pic='-PIC' 7086 lt_prog_compiler_static='-Bstatic' 7087 ;; 7088 7089 sysv4 | sysv4.2uw2* | sysv4.3*) 7090 lt_prog_compiler_wl='-Wl,' 7091 lt_prog_compiler_pic='-KPIC' 7092 lt_prog_compiler_static='-Bstatic' 7093 ;; 7094 7095 sysv4*MP*) 7096 if test -d /usr/nec ;then 7097 lt_prog_compiler_pic='-Kconform_pic' 7098 lt_prog_compiler_static='-Bstatic' 7099 fi 7100 ;; 7101 7102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7103 lt_prog_compiler_wl='-Wl,' 7104 lt_prog_compiler_pic='-KPIC' 7105 lt_prog_compiler_static='-Bstatic' 7106 ;; 7107 7108 unicos*) 7109 lt_prog_compiler_wl='-Wl,' 7110 lt_prog_compiler_can_build_shared=no 7111 ;; 7112 7113 uts4*) 7114 lt_prog_compiler_pic='-pic' 7115 lt_prog_compiler_static='-Bstatic' 7116 ;; 7117 7118 *) 7119 lt_prog_compiler_can_build_shared=no 7120 ;; 7121 esac 7122 fi 7123 7124case $host_os in 7125 # For platforms which do not support PIC, -DPIC is meaningless: 7126 *djgpp*) 7127 lt_prog_compiler_pic= 7128 ;; 7129 *) 7130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7131 ;; 7132esac 7133{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7134$as_echo "$lt_prog_compiler_pic" >&6; } 7135 7136 7137 7138 7139 7140 7141# 7142# Check to make sure the PIC flag actually works. 7143# 7144if test -n "$lt_prog_compiler_pic"; then 7145 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7147if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7148 $as_echo_n "(cached) " >&6 7149else 7150 lt_cv_prog_compiler_pic_works=no 7151 ac_outfile=conftest.$ac_objext 7152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7154 # Insert the option either (1) after the last *FLAGS variable, or 7155 # (2) before a word containing "conftest.", or (3) at the end. 7156 # Note that $ac_compile itself does not contain backslashes and begins 7157 # with a dollar sign (not a hyphen), so the echo should work correctly. 7158 # The option is referenced via a variable to avoid confusing sed. 7159 lt_compile=`echo "$ac_compile" | $SED \ 7160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7162 -e 's:$: $lt_compiler_flag:'` 7163 (eval echo "\"\$as_me:7163: $lt_compile\"" >&5) 7164 (eval "$lt_compile" 2>conftest.err) 7165 ac_status=$? 7166 cat conftest.err >&5 7167 echo "$as_me:7167: \$? = $ac_status" >&5 7168 if (exit $ac_status) && test -s "$ac_outfile"; then 7169 # The compiler can only warn and ignore the option if not recognized 7170 # So say no if there are warnings other than the usual output. 7171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7174 lt_cv_prog_compiler_pic_works=yes 7175 fi 7176 fi 7177 $RM conftest* 7178 7179fi 7180{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7182 7183if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7184 case $lt_prog_compiler_pic in 7185 "" | " "*) ;; 7186 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7187 esac 7188else 7189 lt_prog_compiler_pic= 7190 lt_prog_compiler_can_build_shared=no 7191fi 7192 7193fi 7194 7195 7196 7197 7198 7199 7200# 7201# Check to make sure the static flag actually works. 7202# 7203wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7204{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7205$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7206if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7207 $as_echo_n "(cached) " >&6 7208else 7209 lt_cv_prog_compiler_static_works=no 7210 save_LDFLAGS="$LDFLAGS" 7211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7212 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7214 # The linker can only warn and ignore the option if not recognized 7215 # So say no if there are warnings 7216 if test -s conftest.err; then 7217 # Append any errors to the config.log. 7218 cat conftest.err 1>&5 7219 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7221 if diff conftest.exp conftest.er2 >/dev/null; then 7222 lt_cv_prog_compiler_static_works=yes 7223 fi 7224 else 7225 lt_cv_prog_compiler_static_works=yes 7226 fi 7227 fi 7228 $RM -r conftest* 7229 LDFLAGS="$save_LDFLAGS" 7230 7231fi 7232{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7233$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7234 7235if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7236 : 7237else 7238 lt_prog_compiler_static= 7239fi 7240 7241 7242 7243 7244 7245 7246 7247 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7249if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7250 $as_echo_n "(cached) " >&6 7251else 7252 lt_cv_prog_compiler_c_o=no 7253 $RM -r conftest 2>/dev/null 7254 mkdir conftest 7255 cd conftest 7256 mkdir out 7257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7258 7259 lt_compiler_flag="-o out/conftest2.$ac_objext" 7260 # Insert the option either (1) after the last *FLAGS variable, or 7261 # (2) before a word containing "conftest.", or (3) at the end. 7262 # Note that $ac_compile itself does not contain backslashes and begins 7263 # with a dollar sign (not a hyphen), so the echo should work correctly. 7264 lt_compile=`echo "$ac_compile" | $SED \ 7265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7267 -e 's:$: $lt_compiler_flag:'` 7268 (eval echo "\"\$as_me:7268: $lt_compile\"" >&5) 7269 (eval "$lt_compile" 2>out/conftest.err) 7270 ac_status=$? 7271 cat out/conftest.err >&5 7272 echo "$as_me:7272: \$? = $ac_status" >&5 7273 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7274 then 7275 # The compiler can only warn and ignore the option if not recognized 7276 # So say no if there are warnings 7277 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7280 lt_cv_prog_compiler_c_o=yes 7281 fi 7282 fi 7283 chmod u+w . 2>&5 7284 $RM conftest* 7285 # SGI C++ compiler will create directory out/ii_files/ for 7286 # template instantiation 7287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7288 $RM out/* && rmdir out 7289 cd .. 7290 $RM -r conftest 7291 $RM conftest* 7292 7293fi 7294{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7295$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7296 7297 7298 7299 7300 7301 7302 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7304if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7305 $as_echo_n "(cached) " >&6 7306else 7307 lt_cv_prog_compiler_c_o=no 7308 $RM -r conftest 2>/dev/null 7309 mkdir conftest 7310 cd conftest 7311 mkdir out 7312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7313 7314 lt_compiler_flag="-o out/conftest2.$ac_objext" 7315 # Insert the option either (1) after the last *FLAGS variable, or 7316 # (2) before a word containing "conftest.", or (3) at the end. 7317 # Note that $ac_compile itself does not contain backslashes and begins 7318 # with a dollar sign (not a hyphen), so the echo should work correctly. 7319 lt_compile=`echo "$ac_compile" | $SED \ 7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7322 -e 's:$: $lt_compiler_flag:'` 7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5) 7324 (eval "$lt_compile" 2>out/conftest.err) 7325 ac_status=$? 7326 cat out/conftest.err >&5 7327 echo "$as_me:7327: \$? = $ac_status" >&5 7328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7329 then 7330 # The compiler can only warn and ignore the option if not recognized 7331 # So say no if there are warnings 7332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7335 lt_cv_prog_compiler_c_o=yes 7336 fi 7337 fi 7338 chmod u+w . 2>&5 7339 $RM conftest* 7340 # SGI C++ compiler will create directory out/ii_files/ for 7341 # template instantiation 7342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7343 $RM out/* && rmdir out 7344 cd .. 7345 $RM -r conftest 7346 $RM conftest* 7347 7348fi 7349{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7350$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7351 7352 7353 7354 7355hard_links="nottested" 7356if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7357 # do not overwrite the value of need_locks provided by the user 7358 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7359$as_echo_n "checking if we can lock with hard links... " >&6; } 7360 hard_links=yes 7361 $RM conftest* 7362 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7363 touch conftest.a 7364 ln conftest.a conftest.b 2>&5 || hard_links=no 7365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7366 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7367$as_echo "$hard_links" >&6; } 7368 if test "$hard_links" = no; then 7369 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7370$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7371 need_locks=warn 7372 fi 7373else 7374 need_locks=no 7375fi 7376 7377 7378 7379 7380 7381 7382 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7383$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7384 7385 runpath_var= 7386 allow_undefined_flag= 7387 always_export_symbols=no 7388 archive_cmds= 7389 archive_expsym_cmds= 7390 compiler_needs_object=no 7391 enable_shared_with_static_runtimes=no 7392 export_dynamic_flag_spec= 7393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7394 hardcode_automatic=no 7395 hardcode_direct=no 7396 hardcode_direct_absolute=no 7397 hardcode_libdir_flag_spec= 7398 hardcode_libdir_flag_spec_ld= 7399 hardcode_libdir_separator= 7400 hardcode_minus_L=no 7401 hardcode_shlibpath_var=unsupported 7402 inherit_rpath=no 7403 link_all_deplibs=unknown 7404 module_cmds= 7405 module_expsym_cmds= 7406 old_archive_from_new_cmds= 7407 old_archive_from_expsyms_cmds= 7408 thread_safe_flag_spec= 7409 whole_archive_flag_spec= 7410 # include_expsyms should be a list of space-separated symbols to be *always* 7411 # included in the symbol list 7412 include_expsyms= 7413 # exclude_expsyms can be an extended regexp of symbols to exclude 7414 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7416 # as well as any symbol that contains `d'. 7417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7419 # platforms (ab)use it in PIC code, but their linkers get confused if 7420 # the symbol is explicitly referenced. Since portable code cannot 7421 # rely on this symbol name, it's probably fine to never include it in 7422 # preloaded symbol tables. 7423 # Exclude shared library initialization/finalization symbols. 7424 extract_expsyms_cmds= 7425 7426 case $host_os in 7427 cygwin* | mingw* | pw32* | cegcc*) 7428 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7429 # When not using gcc, we currently assume that we are using 7430 # Microsoft Visual C++. 7431 if test "$GCC" != yes; then 7432 with_gnu_ld=no 7433 fi 7434 ;; 7435 interix*) 7436 # we just hope/assume this is gcc and not c89 (= MSVC++) 7437 with_gnu_ld=yes 7438 ;; 7439 openbsd*) 7440 with_gnu_ld=no 7441 ;; 7442 esac 7443 7444 ld_shlibs=yes 7445 if test "$with_gnu_ld" = yes; then 7446 # If archive_cmds runs LD, not CC, wlarc should be empty 7447 wlarc='${wl}' 7448 7449 # Set some defaults for GNU ld with shared library support. These 7450 # are reset later if shared libraries are not supported. Putting them 7451 # here allows them to be overridden if necessary. 7452 runpath_var=LD_RUN_PATH 7453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7454 export_dynamic_flag_spec='${wl}--export-dynamic' 7455 # ancient GNU ld didn't support --whole-archive et. al. 7456 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7457 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7458 else 7459 whole_archive_flag_spec= 7460 fi 7461 supports_anon_versioning=no 7462 case `$LD -v 2>&1` in 7463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7466 *\ 2.11.*) ;; # other 2.11 versions 7467 *) supports_anon_versioning=yes ;; 7468 esac 7469 7470 # See if GNU ld supports shared libraries. 7471 case $host_os in 7472 aix[3-9]*) 7473 # On AIX/PPC, the GNU linker is very broken 7474 if test "$host_cpu" != ia64; then 7475 ld_shlibs=no 7476 cat <<_LT_EOF 1>&2 7477 7478*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7479*** to be unable to reliably create shared libraries on AIX. 7480*** Therefore, libtool is disabling shared libraries support. If you 7481*** really care for shared libraries, you may want to modify your PATH 7482*** so that a non-GNU linker is found, and then restart. 7483 7484_LT_EOF 7485 fi 7486 ;; 7487 7488 amigaos*) 7489 case $host_cpu in 7490 powerpc) 7491 # see comment about AmigaOS4 .so support 7492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7493 archive_expsym_cmds='' 7494 ;; 7495 m68k) 7496 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)' 7497 hardcode_libdir_flag_spec='-L$libdir' 7498 hardcode_minus_L=yes 7499 ;; 7500 esac 7501 ;; 7502 7503 beos*) 7504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7505 allow_undefined_flag=unsupported 7506 # Joseph Beckenbach <[email protected]> says some releases of gcc 7507 # support --undefined. This deserves some investigation. FIXME 7508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7509 else 7510 ld_shlibs=no 7511 fi 7512 ;; 7513 7514 cygwin* | mingw* | pw32* | cegcc*) 7515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7516 # as there is no search path for DLLs. 7517 hardcode_libdir_flag_spec='-L$libdir' 7518 allow_undefined_flag=unsupported 7519 always_export_symbols=no 7520 enable_shared_with_static_runtimes=yes 7521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7522 7523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7525 # If the export-symbols file already is a .def file (1st line 7526 # is EXPORTS), use it as is; otherwise, prepend... 7527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7528 cp $export_symbols $output_objdir/$soname.def; 7529 else 7530 echo EXPORTS > $output_objdir/$soname.def; 7531 cat $export_symbols >> $output_objdir/$soname.def; 7532 fi~ 7533 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7534 else 7535 ld_shlibs=no 7536 fi 7537 ;; 7538 7539 interix[3-9]*) 7540 hardcode_direct=no 7541 hardcode_shlibpath_var=no 7542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7543 export_dynamic_flag_spec='${wl}-E' 7544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7545 # Instead, shared libraries are loaded at an image base (0x10000000 by 7546 # default) and relocated if they conflict, which is a slow very memory 7547 # consuming and fragmenting process. To avoid this, we pick a random, 7548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7549 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7551 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' 7552 ;; 7553 7554 gnu* | linux* | tpf* | k*bsd*-gnu) 7555 tmp_diet=no 7556 if test "$host_os" = linux-dietlibc; then 7557 case $cc_basename in 7558 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7559 esac 7560 fi 7561 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7562 && test "$tmp_diet" = no 7563 then 7564 tmp_addflag= 7565 tmp_sharedflag='-shared' 7566 case $cc_basename,$host_cpu in 7567 pgcc*) # Portland Group C compiler 7568 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' 7569 tmp_addflag=' $pic_flag' 7570 ;; 7571 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7572 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' 7573 tmp_addflag=' $pic_flag -Mnomain' ;; 7574 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7575 tmp_addflag=' -i_dynamic' ;; 7576 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7577 tmp_addflag=' -i_dynamic -nofor_main' ;; 7578 ifc* | ifort*) # Intel Fortran compiler 7579 tmp_addflag=' -nofor_main' ;; 7580 lf95*) # Lahey Fortran 8.1 7581 whole_archive_flag_spec= 7582 tmp_sharedflag='--shared' ;; 7583 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7584 tmp_sharedflag='-qmkshrobj' 7585 tmp_addflag= ;; 7586 esac 7587 case `$CC -V 2>&1 | sed 5q` in 7588 *Sun\ C*) # Sun C 5.9 7589 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' 7590 compiler_needs_object=yes 7591 tmp_sharedflag='-G' ;; 7592 *Sun\ F*) # Sun Fortran 8.3 7593 tmp_sharedflag='-G' ;; 7594 esac 7595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7596 7597 if test "x$supports_anon_versioning" = xyes; then 7598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7600 echo "local: *; };" >> $output_objdir/$libname.ver~ 7601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7602 fi 7603 7604 case $cc_basename in 7605 xlf*) 7606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7608 hardcode_libdir_flag_spec= 7609 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7611 if test "x$supports_anon_versioning" = xyes; then 7612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7614 echo "local: *; };" >> $output_objdir/$libname.ver~ 7615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7616 fi 7617 ;; 7618 esac 7619 else 7620 ld_shlibs=no 7621 fi 7622 ;; 7623 7624 netbsd*) 7625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7627 wlarc= 7628 else 7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7631 fi 7632 ;; 7633 7634 solaris*) 7635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7636 ld_shlibs=no 7637 cat <<_LT_EOF 1>&2 7638 7639*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7640*** create shared libraries on Solaris systems. Therefore, libtool 7641*** is disabling shared libraries support. We urge you to upgrade GNU 7642*** binutils to release 2.9.1 or newer. Another option is to modify 7643*** your PATH or compiler configuration so that the native linker is 7644*** used, and then restart. 7645 7646_LT_EOF 7647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7650 else 7651 ld_shlibs=no 7652 fi 7653 ;; 7654 7655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7656 case `$LD -v 2>&1` in 7657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7658 ld_shlibs=no 7659 cat <<_LT_EOF 1>&2 7660 7661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7662*** reliably create shared libraries on SCO systems. Therefore, libtool 7663*** is disabling shared libraries support. We urge you to upgrade GNU 7664*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7665*** your PATH or compiler configuration so that the native linker is 7666*** used, and then restart. 7667 7668_LT_EOF 7669 ;; 7670 *) 7671 # For security reasons, it is highly recommended that you always 7672 # use absolute paths for naming shared libraries, and exclude the 7673 # DT_RUNPATH tag from executables and libraries. But doing so 7674 # requires that you compile everything twice, which is a pain. 7675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7679 else 7680 ld_shlibs=no 7681 fi 7682 ;; 7683 esac 7684 ;; 7685 7686 sunos4*) 7687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7688 wlarc= 7689 hardcode_direct=yes 7690 hardcode_shlibpath_var=no 7691 ;; 7692 7693 *) 7694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7697 else 7698 ld_shlibs=no 7699 fi 7700 ;; 7701 esac 7702 7703 if test "$ld_shlibs" = no; then 7704 runpath_var= 7705 hardcode_libdir_flag_spec= 7706 export_dynamic_flag_spec= 7707 whole_archive_flag_spec= 7708 fi 7709 else 7710 # PORTME fill in a description of your system's linker (not GNU ld) 7711 case $host_os in 7712 aix3*) 7713 allow_undefined_flag=unsupported 7714 always_export_symbols=yes 7715 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' 7716 # Note: this linker hardcodes the directories in LIBPATH if there 7717 # are no directories specified by -L. 7718 hardcode_minus_L=yes 7719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7720 # Neither direct hardcoding nor static linking is supported with a 7721 # broken collect2. 7722 hardcode_direct=unsupported 7723 fi 7724 ;; 7725 7726 aix[4-9]*) 7727 if test "$host_cpu" = ia64; then 7728 # On IA64, the linker does run time linking by default, so we don't 7729 # have to do anything special. 7730 aix_use_runtimelinking=no 7731 exp_sym_flag='-Bexport' 7732 no_entry_flag="" 7733 else 7734 # If we're using GNU nm, then we don't want the "-C" option. 7735 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7736 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7737 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' 7738 else 7739 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' 7740 fi 7741 aix_use_runtimelinking=no 7742 7743 # Test if we are trying to use run time linking or normal 7744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7745 # need to do runtime linking. 7746 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7747 for ld_flag in $LDFLAGS; do 7748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7749 aix_use_runtimelinking=yes 7750 break 7751 fi 7752 done 7753 ;; 7754 esac 7755 7756 exp_sym_flag='-bexport' 7757 no_entry_flag='-bnoentry' 7758 fi 7759 7760 # When large executables or shared objects are built, AIX ld can 7761 # have problems creating the table of contents. If linking a library 7762 # or program results in "error TOC overflow" add -mminimal-toc to 7763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7765 7766 archive_cmds='' 7767 hardcode_direct=yes 7768 hardcode_direct_absolute=yes 7769 hardcode_libdir_separator=':' 7770 link_all_deplibs=yes 7771 file_list_spec='${wl}-f,' 7772 7773 if test "$GCC" = yes; then 7774 case $host_os in aix4.[012]|aix4.[012].*) 7775 # We only want to do this on AIX 4.2 and lower, the check 7776 # below for broken collect2 doesn't work under 4.3+ 7777 collect2name=`${CC} -print-prog-name=collect2` 7778 if test -f "$collect2name" && 7779 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7780 then 7781 # We have reworked collect2 7782 : 7783 else 7784 # We have old collect2 7785 hardcode_direct=unsupported 7786 # It fails to find uninstalled libraries when the uninstalled 7787 # path is not listed in the libpath. Setting hardcode_minus_L 7788 # to unsupported forces relinking 7789 hardcode_minus_L=yes 7790 hardcode_libdir_flag_spec='-L$libdir' 7791 hardcode_libdir_separator= 7792 fi 7793 ;; 7794 esac 7795 shared_flag='-shared' 7796 if test "$aix_use_runtimelinking" = yes; then 7797 shared_flag="$shared_flag "'${wl}-G' 7798 fi 7799 else 7800 # not using gcc 7801 if test "$host_cpu" = ia64; then 7802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7803 # chokes on -Wl,-G. The following line is correct: 7804 shared_flag='-G' 7805 else 7806 if test "$aix_use_runtimelinking" = yes; then 7807 shared_flag='${wl}-G' 7808 else 7809 shared_flag='${wl}-bM:SRE' 7810 fi 7811 fi 7812 fi 7813 7814 export_dynamic_flag_spec='${wl}-bexpall' 7815 # It seems that -bexpall does not export symbols beginning with 7816 # underscore (_), so it is better to generate a list of symbols to export. 7817 always_export_symbols=yes 7818 if test "$aix_use_runtimelinking" = yes; then 7819 # Warning - without using the other runtime loading flags (-brtl), 7820 # -berok will link without error, but may produce a broken library. 7821 allow_undefined_flag='-berok' 7822 # Determine the default libpath from the value encoded in an 7823 # empty executable. 7824 cat >conftest.$ac_ext <<_ACEOF 7825/* confdefs.h. */ 7826_ACEOF 7827cat confdefs.h >>conftest.$ac_ext 7828cat >>conftest.$ac_ext <<_ACEOF 7829/* end confdefs.h. */ 7830 7831int 7832main () 7833{ 7834 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839rm -f conftest.$ac_objext conftest$ac_exeext 7840if { (ac_try="$ac_link" 7841case "(($ac_try" in 7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7843 *) ac_try_echo=$ac_try;; 7844esac 7845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7846$as_echo "$ac_try_echo") >&5 7847 (eval "$ac_link") 2>conftest.er1 7848 ac_status=$? 7849 grep -v '^ *+' conftest.er1 >conftest.err 7850 rm -f conftest.er1 7851 cat conftest.err >&5 7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); } && { 7854 test -z "$ac_c_werror_flag" || 7855 test ! -s conftest.err 7856 } && test -s conftest$ac_exeext && { 7857 test "$cross_compiling" = yes || 7858 $as_test_x conftest$ac_exeext 7859 }; then 7860 7861lt_aix_libpath_sed=' 7862 /Import File Strings/,/^$/ { 7863 /^0/ { 7864 s/^0 *\(.*\)$/\1/ 7865 p 7866 } 7867 }' 7868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7869# Check for a 64-bit object if we didn't find anything. 7870if test -z "$aix_libpath"; then 7871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7872fi 7873else 7874 $as_echo "$as_me: failed program was:" >&5 7875sed 's/^/| /' conftest.$ac_ext >&5 7876 7877 7878fi 7879 7880rm -rf conftest.dSYM 7881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7882 conftest$ac_exeext conftest.$ac_ext 7883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7884 7885 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7886 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" 7887 else 7888 if test "$host_cpu" = ia64; then 7889 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7890 allow_undefined_flag="-z nodefs" 7891 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" 7892 else 7893 # Determine the default libpath from the value encoded in an 7894 # empty executable. 7895 cat >conftest.$ac_ext <<_ACEOF 7896/* confdefs.h. */ 7897_ACEOF 7898cat confdefs.h >>conftest.$ac_ext 7899cat >>conftest.$ac_ext <<_ACEOF 7900/* end confdefs.h. */ 7901 7902int 7903main () 7904{ 7905 7906 ; 7907 return 0; 7908} 7909_ACEOF 7910rm -f conftest.$ac_objext conftest$ac_exeext 7911if { (ac_try="$ac_link" 7912case "(($ac_try" in 7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7914 *) ac_try_echo=$ac_try;; 7915esac 7916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7917$as_echo "$ac_try_echo") >&5 7918 (eval "$ac_link") 2>conftest.er1 7919 ac_status=$? 7920 grep -v '^ *+' conftest.er1 >conftest.err 7921 rm -f conftest.er1 7922 cat conftest.err >&5 7923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7924 (exit $ac_status); } && { 7925 test -z "$ac_c_werror_flag" || 7926 test ! -s conftest.err 7927 } && test -s conftest$ac_exeext && { 7928 test "$cross_compiling" = yes || 7929 $as_test_x conftest$ac_exeext 7930 }; then 7931 7932lt_aix_libpath_sed=' 7933 /Import File Strings/,/^$/ { 7934 /^0/ { 7935 s/^0 *\(.*\)$/\1/ 7936 p 7937 } 7938 }' 7939aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7940# Check for a 64-bit object if we didn't find anything. 7941if test -z "$aix_libpath"; then 7942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7943fi 7944else 7945 $as_echo "$as_me: failed program was:" >&5 7946sed 's/^/| /' conftest.$ac_ext >&5 7947 7948 7949fi 7950 7951rm -rf conftest.dSYM 7952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7953 conftest$ac_exeext conftest.$ac_ext 7954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7955 7956 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7957 # Warning - without using the other run time loading flags, 7958 # -berok will link without error, but may produce a broken library. 7959 no_undefined_flag=' ${wl}-bernotok' 7960 allow_undefined_flag=' ${wl}-berok' 7961 # Exported symbols can be pulled into shared objects from archives 7962 whole_archive_flag_spec='$convenience' 7963 archive_cmds_need_lc=yes 7964 # This is similar to how AIX traditionally builds its shared libraries. 7965 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' 7966 fi 7967 fi 7968 ;; 7969 7970 amigaos*) 7971 case $host_cpu in 7972 powerpc) 7973 # see comment about AmigaOS4 .so support 7974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7975 archive_expsym_cmds='' 7976 ;; 7977 m68k) 7978 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)' 7979 hardcode_libdir_flag_spec='-L$libdir' 7980 hardcode_minus_L=yes 7981 ;; 7982 esac 7983 ;; 7984 7985 bsdi[45]*) 7986 export_dynamic_flag_spec=-rdynamic 7987 ;; 7988 7989 cygwin* | mingw* | pw32* | cegcc*) 7990 # When not using gcc, we currently assume that we are using 7991 # Microsoft Visual C++. 7992 # hardcode_libdir_flag_spec is actually meaningless, as there is 7993 # no search path for DLLs. 7994 hardcode_libdir_flag_spec=' ' 7995 allow_undefined_flag=unsupported 7996 # Tell ltmain to make .lib files, not .a files. 7997 libext=lib 7998 # Tell ltmain to make .dll files, not .so files. 7999 shrext_cmds=".dll" 8000 # FIXME: Setting linknames here is a bad hack. 8001 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8002 # The linker will automatically build a .lib file if we build a DLL. 8003 old_archive_from_new_cmds='true' 8004 # FIXME: Should let the user specify the lib program. 8005 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8006 fix_srcfile_path='`cygpath -w "$srcfile"`' 8007 enable_shared_with_static_runtimes=yes 8008 ;; 8009 8010 darwin* | rhapsody*) 8011 8012 8013 archive_cmds_need_lc=no 8014 hardcode_direct=no 8015 hardcode_automatic=yes 8016 hardcode_shlibpath_var=unsupported 8017 whole_archive_flag_spec='' 8018 link_all_deplibs=yes 8019 allow_undefined_flag="$_lt_dar_allow_undefined" 8020 case $cc_basename in 8021 ifort*) _lt_dar_can_shared=yes ;; 8022 *) _lt_dar_can_shared=$GCC ;; 8023 esac 8024 if test "$_lt_dar_can_shared" = "yes"; then 8025 output_verbose_link_cmd=echo 8026 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8027 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8028 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}" 8029 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}" 8030 8031 else 8032 ld_shlibs=no 8033 fi 8034 8035 ;; 8036 8037 dgux*) 8038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8039 hardcode_libdir_flag_spec='-L$libdir' 8040 hardcode_shlibpath_var=no 8041 ;; 8042 8043 freebsd1*) 8044 ld_shlibs=no 8045 ;; 8046 8047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8048 # support. Future versions do this automatically, but an explicit c++rt0.o 8049 # does not break anything, and helps significantly (at the cost of a little 8050 # extra space). 8051 freebsd2.2*) 8052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8053 hardcode_libdir_flag_spec='-R$libdir' 8054 hardcode_direct=yes 8055 hardcode_shlibpath_var=no 8056 ;; 8057 8058 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8059 freebsd2*) 8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8061 hardcode_direct=yes 8062 hardcode_minus_L=yes 8063 hardcode_shlibpath_var=no 8064 ;; 8065 8066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8067 freebsd* | dragonfly*) 8068 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8069 hardcode_libdir_flag_spec='-R$libdir' 8070 hardcode_direct=yes 8071 hardcode_shlibpath_var=no 8072 ;; 8073 8074 hpux9*) 8075 if test "$GCC" = yes; then 8076 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' 8077 else 8078 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' 8079 fi 8080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8081 hardcode_libdir_separator=: 8082 hardcode_direct=yes 8083 8084 # hardcode_minus_L: Not really in the search PATH, 8085 # but as the default location of the library. 8086 hardcode_minus_L=yes 8087 export_dynamic_flag_spec='${wl}-E' 8088 ;; 8089 8090 hpux10*) 8091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8093 else 8094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8095 fi 8096 if test "$with_gnu_ld" = no; then 8097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8098 hardcode_libdir_flag_spec_ld='+b $libdir' 8099 hardcode_libdir_separator=: 8100 hardcode_direct=yes 8101 hardcode_direct_absolute=yes 8102 export_dynamic_flag_spec='${wl}-E' 8103 # hardcode_minus_L: Not really in the search PATH, 8104 # but as the default location of the library. 8105 hardcode_minus_L=yes 8106 fi 8107 ;; 8108 8109 hpux11*) 8110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8111 case $host_cpu in 8112 hppa*64*) 8113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8114 ;; 8115 ia64*) 8116 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8117 ;; 8118 *) 8119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8120 ;; 8121 esac 8122 else 8123 case $host_cpu in 8124 hppa*64*) 8125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8126 ;; 8127 ia64*) 8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8129 ;; 8130 *) 8131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8132 ;; 8133 esac 8134 fi 8135 if test "$with_gnu_ld" = no; then 8136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8137 hardcode_libdir_separator=: 8138 8139 case $host_cpu in 8140 hppa*64*|ia64*) 8141 hardcode_direct=no 8142 hardcode_shlibpath_var=no 8143 ;; 8144 *) 8145 hardcode_direct=yes 8146 hardcode_direct_absolute=yes 8147 export_dynamic_flag_spec='${wl}-E' 8148 8149 # hardcode_minus_L: Not really in the search PATH, 8150 # but as the default location of the library. 8151 hardcode_minus_L=yes 8152 ;; 8153 esac 8154 fi 8155 ;; 8156 8157 irix5* | irix6* | nonstopux*) 8158 if test "$GCC" = yes; then 8159 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' 8160 # Try to use the -exported_symbol ld option, if it does not 8161 # work, assume that -exports_file does not work either and 8162 # implicitly export all symbols. 8163 save_LDFLAGS="$LDFLAGS" 8164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8165 cat >conftest.$ac_ext <<_ACEOF 8166int foo(void) {} 8167_ACEOF 8168rm -f conftest.$ac_objext conftest$ac_exeext 8169if { (ac_try="$ac_link" 8170case "(($ac_try" in 8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8172 *) ac_try_echo=$ac_try;; 8173esac 8174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8175$as_echo "$ac_try_echo") >&5 8176 (eval "$ac_link") 2>conftest.er1 8177 ac_status=$? 8178 grep -v '^ *+' conftest.er1 >conftest.err 8179 rm -f conftest.er1 8180 cat conftest.err >&5 8181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 (exit $ac_status); } && { 8183 test -z "$ac_c_werror_flag" || 8184 test ! -s conftest.err 8185 } && test -s conftest$ac_exeext && { 8186 test "$cross_compiling" = yes || 8187 $as_test_x conftest$ac_exeext 8188 }; then 8189 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' 8190 8191else 8192 $as_echo "$as_me: failed program was:" >&5 8193sed 's/^/| /' conftest.$ac_ext >&5 8194 8195 8196fi 8197 8198rm -rf conftest.dSYM 8199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8200 conftest$ac_exeext conftest.$ac_ext 8201 LDFLAGS="$save_LDFLAGS" 8202 else 8203 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' 8204 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' 8205 fi 8206 archive_cmds_need_lc='no' 8207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8208 hardcode_libdir_separator=: 8209 inherit_rpath=yes 8210 link_all_deplibs=yes 8211 ;; 8212 8213 netbsd*) 8214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8216 else 8217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8218 fi 8219 hardcode_libdir_flag_spec='-R$libdir' 8220 hardcode_direct=yes 8221 hardcode_shlibpath_var=no 8222 ;; 8223 8224 newsos6) 8225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8226 hardcode_direct=yes 8227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8228 hardcode_libdir_separator=: 8229 hardcode_shlibpath_var=no 8230 ;; 8231 8232 *nto* | *qnx*) 8233 ;; 8234 8235 openbsd*) 8236 if test -f /usr/libexec/ld.so; then 8237 hardcode_direct=yes 8238 hardcode_shlibpath_var=no 8239 hardcode_direct_absolute=yes 8240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8244 export_dynamic_flag_spec='${wl}-E' 8245 else 8246 case $host_os in 8247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8249 hardcode_libdir_flag_spec='-R$libdir' 8250 ;; 8251 *) 8252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8254 ;; 8255 esac 8256 fi 8257 else 8258 ld_shlibs=no 8259 fi 8260 ;; 8261 8262 os2*) 8263 hardcode_libdir_flag_spec='-L$libdir' 8264 hardcode_minus_L=yes 8265 allow_undefined_flag=unsupported 8266 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' 8267 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8268 ;; 8269 8270 osf3*) 8271 if test "$GCC" = yes; then 8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8273 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' 8274 else 8275 allow_undefined_flag=' -expect_unresolved \*' 8276 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' 8277 fi 8278 archive_cmds_need_lc='no' 8279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8280 hardcode_libdir_separator=: 8281 ;; 8282 8283 osf4* | osf5*) # as osf3* with the addition of -msym flag 8284 if test "$GCC" = yes; then 8285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8286 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' 8287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8288 else 8289 allow_undefined_flag=' -expect_unresolved \*' 8290 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' 8291 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~ 8292 $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' 8293 8294 # Both c and cxx compiler support -rpath directly 8295 hardcode_libdir_flag_spec='-rpath $libdir' 8296 fi 8297 archive_cmds_need_lc='no' 8298 hardcode_libdir_separator=: 8299 ;; 8300 8301 solaris*) 8302 no_undefined_flag=' -z defs' 8303 if test "$GCC" = yes; then 8304 wlarc='${wl}' 8305 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8307 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8308 else 8309 case `$CC -V 2>&1` in 8310 *"Compilers 5.0"*) 8311 wlarc='' 8312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8315 ;; 8316 *) 8317 wlarc='${wl}' 8318 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8320 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8321 ;; 8322 esac 8323 fi 8324 hardcode_libdir_flag_spec='-R$libdir' 8325 hardcode_shlibpath_var=no 8326 case $host_os in 8327 solaris2.[0-5] | solaris2.[0-5].*) ;; 8328 *) 8329 # The compiler driver will combine and reorder linker options, 8330 # but understands `-z linker_flag'. GCC discards it without `$wl', 8331 # but is careful enough not to reorder. 8332 # Supported since Solaris 2.6 (maybe 2.5.1?) 8333 if test "$GCC" = yes; then 8334 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8335 else 8336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8337 fi 8338 ;; 8339 esac 8340 link_all_deplibs=yes 8341 ;; 8342 8343 sunos4*) 8344 if test "x$host_vendor" = xsequent; then 8345 # Use $CC to link under sequent, because it throws in some extra .o 8346 # files that make .init and .fini sections work. 8347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8348 else 8349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8350 fi 8351 hardcode_libdir_flag_spec='-L$libdir' 8352 hardcode_direct=yes 8353 hardcode_minus_L=yes 8354 hardcode_shlibpath_var=no 8355 ;; 8356 8357 sysv4) 8358 case $host_vendor in 8359 sni) 8360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8361 hardcode_direct=yes # is this really true??? 8362 ;; 8363 siemens) 8364 ## LD is ld it makes a PLAMLIB 8365 ## CC just makes a GrossModule. 8366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8367 reload_cmds='$CC -r -o $output$reload_objs' 8368 hardcode_direct=no 8369 ;; 8370 motorola) 8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8373 ;; 8374 esac 8375 runpath_var='LD_RUN_PATH' 8376 hardcode_shlibpath_var=no 8377 ;; 8378 8379 sysv4.3*) 8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8381 hardcode_shlibpath_var=no 8382 export_dynamic_flag_spec='-Bexport' 8383 ;; 8384 8385 sysv4*MP*) 8386 if test -d /usr/nec; then 8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8388 hardcode_shlibpath_var=no 8389 runpath_var=LD_RUN_PATH 8390 hardcode_runpath_var=yes 8391 ld_shlibs=yes 8392 fi 8393 ;; 8394 8395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8396 no_undefined_flag='${wl}-z,text' 8397 archive_cmds_need_lc=no 8398 hardcode_shlibpath_var=no 8399 runpath_var='LD_RUN_PATH' 8400 8401 if test "$GCC" = yes; then 8402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8404 else 8405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8407 fi 8408 ;; 8409 8410 sysv5* | sco3.2v5* | sco5v6*) 8411 # Note: We can NOT use -z defs as we might desire, because we do not 8412 # link with -lc, and that would cause any symbols used from libc to 8413 # always be unresolved, which means just about no library would 8414 # ever link correctly. If we're not using GNU ld we use -z text 8415 # though, which does catch some bad symbols but isn't as heavy-handed 8416 # as -z defs. 8417 no_undefined_flag='${wl}-z,text' 8418 allow_undefined_flag='${wl}-z,nodefs' 8419 archive_cmds_need_lc=no 8420 hardcode_shlibpath_var=no 8421 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8422 hardcode_libdir_separator=':' 8423 link_all_deplibs=yes 8424 export_dynamic_flag_spec='${wl}-Bexport' 8425 runpath_var='LD_RUN_PATH' 8426 8427 if test "$GCC" = yes; then 8428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8430 else 8431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8433 fi 8434 ;; 8435 8436 uts4*) 8437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8438 hardcode_libdir_flag_spec='-L$libdir' 8439 hardcode_shlibpath_var=no 8440 ;; 8441 8442 *) 8443 ld_shlibs=no 8444 ;; 8445 esac 8446 8447 if test x$host_vendor = xsni; then 8448 case $host in 8449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8450 export_dynamic_flag_spec='${wl}-Blargedynsym' 8451 ;; 8452 esac 8453 fi 8454 fi 8455 8456{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8457$as_echo "$ld_shlibs" >&6; } 8458test "$ld_shlibs" = no && can_build_shared=no 8459 8460with_gnu_ld=$with_gnu_ld 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476# 8477# Do we need to explicitly link libc? 8478# 8479case "x$archive_cmds_need_lc" in 8480x|xyes) 8481 # Assume -lc should be added 8482 archive_cmds_need_lc=yes 8483 8484 if test "$enable_shared" = yes && test "$GCC" = yes; then 8485 case $archive_cmds in 8486 *'~'*) 8487 # FIXME: we may have to deal with multi-command sequences. 8488 ;; 8489 '$CC '*) 8490 # Test whether the compiler implicitly links with -lc since on some 8491 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8492 # to ld, don't add -lc before -lgcc. 8493 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8494$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8495 $RM conftest* 8496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8497 8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8499 (eval $ac_compile) 2>&5 8500 ac_status=$? 8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 (exit $ac_status); } 2>conftest.err; then 8503 soname=conftest 8504 lib=conftest 8505 libobjs=conftest.$ac_objext 8506 deplibs= 8507 wl=$lt_prog_compiler_wl 8508 pic_flag=$lt_prog_compiler_pic 8509 compiler_flags=-v 8510 linker_flags=-v 8511 verstring= 8512 output_objdir=. 8513 libname=conftest 8514 lt_save_allow_undefined_flag=$allow_undefined_flag 8515 allow_undefined_flag= 8516 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 8517 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8518 ac_status=$? 8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8520 (exit $ac_status); } 8521 then 8522 archive_cmds_need_lc=no 8523 else 8524 archive_cmds_need_lc=yes 8525 fi 8526 allow_undefined_flag=$lt_save_allow_undefined_flag 8527 else 8528 cat conftest.err 1>&5 8529 fi 8530 $RM conftest* 8531 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8532$as_echo "$archive_cmds_need_lc" >&6; } 8533 ;; 8534 esac 8535 fi 8536 ;; 8537esac 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8696$as_echo_n "checking dynamic linker characteristics... " >&6; } 8697 8698if test "$GCC" = yes; then 8699 case $host_os in 8700 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8701 *) lt_awk_arg="/^libraries:/" ;; 8702 esac 8703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8704 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8705 # if the path contains ";" then we assume it to be the separator 8706 # otherwise default to the standard path separator (i.e. ":") - it is 8707 # assumed that no part of a normal pathname contains ";" but that should 8708 # okay in the real world where ";" in dirpaths is itself problematic. 8709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8710 else 8711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8712 fi 8713 # Ok, now we have the path, separated by spaces, we can step through it 8714 # and add multilib dir if necessary. 8715 lt_tmp_lt_search_path_spec= 8716 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8717 for lt_sys_path in $lt_search_path_spec; do 8718 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8720 else 8721 test -d "$lt_sys_path" && \ 8722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8723 fi 8724 done 8725 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8726BEGIN {RS=" "; FS="/|\n";} { 8727 lt_foo=""; 8728 lt_count=0; 8729 for (lt_i = NF; lt_i > 0; lt_i--) { 8730 if ($lt_i != "" && $lt_i != ".") { 8731 if ($lt_i == "..") { 8732 lt_count++; 8733 } else { 8734 if (lt_count == 0) { 8735 lt_foo="/" $lt_i lt_foo; 8736 } else { 8737 lt_count--; 8738 } 8739 } 8740 } 8741 } 8742 if (lt_foo != "") { lt_freq[lt_foo]++; } 8743 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8744}'` 8745 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8746else 8747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8748fi 8749library_names_spec= 8750libname_spec='lib$name' 8751soname_spec= 8752shrext_cmds=".so" 8753postinstall_cmds= 8754postuninstall_cmds= 8755finish_cmds= 8756finish_eval= 8757shlibpath_var= 8758shlibpath_overrides_runpath=unknown 8759version_type=none 8760dynamic_linker="$host_os ld.so" 8761sys_lib_dlsearch_path_spec="/lib /usr/lib" 8762need_lib_prefix=unknown 8763hardcode_into_libs=no 8764 8765# when you set need_version to no, make sure it does not cause -set_version 8766# flags to be left without arguments 8767need_version=unknown 8768 8769case $host_os in 8770aix3*) 8771 version_type=linux 8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8773 shlibpath_var=LIBPATH 8774 8775 # AIX 3 has no versioning support, so we append a major version to the name. 8776 soname_spec='${libname}${release}${shared_ext}$major' 8777 ;; 8778 8779aix[4-9]*) 8780 version_type=linux 8781 need_lib_prefix=no 8782 need_version=no 8783 hardcode_into_libs=yes 8784 if test "$host_cpu" = ia64; then 8785 # AIX 5 supports IA64 8786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8787 shlibpath_var=LD_LIBRARY_PATH 8788 else 8789 # With GCC up to 2.95.x, collect2 would create an import file 8790 # for dependence libraries. The import file would start with 8791 # the line `#! .'. This would cause the generated library to 8792 # depend on `.', always an invalid library. This was fixed in 8793 # development snapshots of GCC prior to 3.0. 8794 case $host_os in 8795 aix4 | aix4.[01] | aix4.[01].*) 8796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8797 echo ' yes ' 8798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8799 : 8800 else 8801 can_build_shared=no 8802 fi 8803 ;; 8804 esac 8805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8806 # soname into executable. Probably we can add versioning support to 8807 # collect2, so additional links can be useful in future. 8808 if test "$aix_use_runtimelinking" = yes; then 8809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8810 # instead of lib<name>.a to let people know that these are not 8811 # typical AIX shared libraries. 8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8813 else 8814 # We preserve .a as extension for shared libraries through AIX4.2 8815 # and later when we are not doing run time linking. 8816 library_names_spec='${libname}${release}.a $libname.a' 8817 soname_spec='${libname}${release}${shared_ext}$major' 8818 fi 8819 shlibpath_var=LIBPATH 8820 fi 8821 ;; 8822 8823amigaos*) 8824 case $host_cpu in 8825 powerpc) 8826 # Since July 2007 AmigaOS4 officially supports .so libraries. 8827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8829 ;; 8830 m68k) 8831 library_names_spec='$libname.ixlibrary $libname.a' 8832 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8833 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' 8834 ;; 8835 esac 8836 ;; 8837 8838beos*) 8839 library_names_spec='${libname}${shared_ext}' 8840 dynamic_linker="$host_os ld.so" 8841 shlibpath_var=LIBRARY_PATH 8842 ;; 8843 8844bsdi[45]*) 8845 version_type=linux 8846 need_version=no 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8848 soname_spec='${libname}${release}${shared_ext}$major' 8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8850 shlibpath_var=LD_LIBRARY_PATH 8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8853 # the default ld.so.conf also contains /usr/contrib/lib and 8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8855 # libtool to hard-code these into programs 8856 ;; 8857 8858cygwin* | mingw* | pw32* | cegcc*) 8859 version_type=windows 8860 shrext_cmds=".dll" 8861 need_version=no 8862 need_lib_prefix=no 8863 8864 case $GCC,$host_os in 8865 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8866 library_names_spec='$libname.dll.a' 8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8868 postinstall_cmds='base_file=`basename \${file}`~ 8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8870 dldir=$destdir/`dirname \$dlpath`~ 8871 test -d \$dldir || mkdir -p \$dldir~ 8872 $install_prog $dir/$dlname \$dldir/$dlname~ 8873 chmod a+x \$dldir/$dlname~ 8874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8876 fi' 8877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8878 dlpath=$dir/\$dldll~ 8879 $RM \$dlpath' 8880 shlibpath_overrides_runpath=yes 8881 8882 case $host_os in 8883 cygwin*) 8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8887 ;; 8888 mingw* | cegcc*) 8889 # MinGW DLLs use traditional 'lib' prefix 8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8891 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8892 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8893 # It is most probably a Windows format PATH printed by 8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8895 # path with ; separators, and with drive letters. We can handle the 8896 # drive letters (cygwin fileutils understands them), so leave them, 8897 # especially as we might pass files found there to a mingw objdump, 8898 # which wouldn't understand a cygwinified path. Ahh. 8899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8900 else 8901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8902 fi 8903 ;; 8904 pw32*) 8905 # pw32 DLLs use 'pw' prefix rather than 'lib' 8906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8907 ;; 8908 esac 8909 ;; 8910 8911 *) 8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8913 ;; 8914 esac 8915 dynamic_linker='Win32 ld.exe' 8916 # FIXME: first we should search . and the directory the executable is in 8917 shlibpath_var=PATH 8918 ;; 8919 8920darwin* | rhapsody*) 8921 dynamic_linker="$host_os dyld" 8922 version_type=darwin 8923 need_lib_prefix=no 8924 need_version=no 8925 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8926 soname_spec='${libname}${release}${major}$shared_ext' 8927 shlibpath_overrides_runpath=yes 8928 shlibpath_var=DYLD_LIBRARY_PATH 8929 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8930 8931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8933 ;; 8934 8935dgux*) 8936 version_type=linux 8937 need_lib_prefix=no 8938 need_version=no 8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8940 soname_spec='${libname}${release}${shared_ext}$major' 8941 shlibpath_var=LD_LIBRARY_PATH 8942 ;; 8943 8944freebsd1*) 8945 dynamic_linker=no 8946 ;; 8947 8948freebsd* | dragonfly*) 8949 # DragonFly does not have aout. When/if they implement a new 8950 # versioning mechanism, adjust this. 8951 if test -x /usr/bin/objformat; then 8952 objformat=`/usr/bin/objformat` 8953 else 8954 case $host_os in 8955 freebsd[123]*) objformat=aout ;; 8956 *) objformat=elf ;; 8957 esac 8958 fi 8959 # Handle Gentoo/FreeBSD as it was Linux 8960 case $host_vendor in 8961 gentoo) 8962 version_type=linux ;; 8963 *) 8964 version_type=freebsd-$objformat ;; 8965 esac 8966 8967 case $version_type in 8968 freebsd-elf*) 8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8970 need_version=no 8971 need_lib_prefix=no 8972 ;; 8973 freebsd-*) 8974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8975 need_version=yes 8976 ;; 8977 linux) 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 need_lib_prefix=no 8981 need_version=no 8982 ;; 8983 esac 8984 shlibpath_var=LD_LIBRARY_PATH 8985 case $host_os in 8986 freebsd2*) 8987 shlibpath_overrides_runpath=yes 8988 ;; 8989 freebsd3.[01]* | freebsdelf3.[01]*) 8990 shlibpath_overrides_runpath=yes 8991 hardcode_into_libs=yes 8992 ;; 8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8995 shlibpath_overrides_runpath=no 8996 hardcode_into_libs=yes 8997 ;; 8998 *) # from 4.6 on, and DragonFly 8999 shlibpath_overrides_runpath=yes 9000 hardcode_into_libs=yes 9001 ;; 9002 esac 9003 ;; 9004 9005gnu*) 9006 version_type=linux 9007 need_lib_prefix=no 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 hardcode_into_libs=yes 9013 ;; 9014 9015hpux9* | hpux10* | hpux11*) 9016 # Give a soname corresponding to the major version so that dld.sl refuses to 9017 # link against other versions. 9018 version_type=sunos 9019 need_lib_prefix=no 9020 need_version=no 9021 case $host_cpu in 9022 ia64*) 9023 shrext_cmds='.so' 9024 hardcode_into_libs=yes 9025 dynamic_linker="$host_os dld.so" 9026 shlibpath_var=LD_LIBRARY_PATH 9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9029 soname_spec='${libname}${release}${shared_ext}$major' 9030 if test "X$HPUX_IA64_MODE" = X32; then 9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9032 else 9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9034 fi 9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9036 ;; 9037 hppa*64*) 9038 shrext_cmds='.sl' 9039 hardcode_into_libs=yes 9040 dynamic_linker="$host_os dld.sl" 9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 soname_spec='${libname}${release}${shared_ext}$major' 9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9047 ;; 9048 *) 9049 shrext_cmds='.sl' 9050 dynamic_linker="$host_os dld.sl" 9051 shlibpath_var=SHLIB_PATH 9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9054 soname_spec='${libname}${release}${shared_ext}$major' 9055 ;; 9056 esac 9057 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9058 postinstall_cmds='chmod 555 $lib' 9059 ;; 9060 9061interix[3-9]*) 9062 version_type=linux 9063 need_lib_prefix=no 9064 need_version=no 9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9066 soname_spec='${libname}${release}${shared_ext}$major' 9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9068 shlibpath_var=LD_LIBRARY_PATH 9069 shlibpath_overrides_runpath=no 9070 hardcode_into_libs=yes 9071 ;; 9072 9073irix5* | irix6* | nonstopux*) 9074 case $host_os in 9075 nonstopux*) version_type=nonstopux ;; 9076 *) 9077 if test "$lt_cv_prog_gnu_ld" = yes; then 9078 version_type=linux 9079 else 9080 version_type=irix 9081 fi ;; 9082 esac 9083 need_lib_prefix=no 9084 need_version=no 9085 soname_spec='${libname}${release}${shared_ext}$major' 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9087 case $host_os in 9088 irix5* | nonstopux*) 9089 libsuff= shlibsuff= 9090 ;; 9091 *) 9092 case $LD in # libtool.m4 will add one of these switches to LD 9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9094 libsuff= shlibsuff= libmagic=32-bit;; 9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9096 libsuff=32 shlibsuff=N32 libmagic=N32;; 9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9098 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9099 *) libsuff= shlibsuff= libmagic=never-match;; 9100 esac 9101 ;; 9102 esac 9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9104 shlibpath_overrides_runpath=no 9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9107 hardcode_into_libs=yes 9108 ;; 9109 9110# No shared lib support for Linux oldld, aout, or coff. 9111linux*oldld* | linux*aout* | linux*coff*) 9112 dynamic_linker=no 9113 ;; 9114 9115# This must be Linux ELF. 9116linux* | k*bsd*-gnu) 9117 version_type=linux 9118 need_lib_prefix=no 9119 need_version=no 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9121 soname_spec='${libname}${release}${shared_ext}$major' 9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9123 shlibpath_var=LD_LIBRARY_PATH 9124 shlibpath_overrides_runpath=no 9125 # Some binutils ld are patched to set DT_RUNPATH 9126 save_LDFLAGS=$LDFLAGS 9127 save_libdir=$libdir 9128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9130 cat >conftest.$ac_ext <<_ACEOF 9131/* confdefs.h. */ 9132_ACEOF 9133cat confdefs.h >>conftest.$ac_ext 9134cat >>conftest.$ac_ext <<_ACEOF 9135/* end confdefs.h. */ 9136 9137int 9138main () 9139{ 9140 9141 ; 9142 return 0; 9143} 9144_ACEOF 9145rm -f conftest.$ac_objext conftest$ac_exeext 9146if { (ac_try="$ac_link" 9147case "(($ac_try" in 9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9149 *) ac_try_echo=$ac_try;; 9150esac 9151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9152$as_echo "$ac_try_echo") >&5 9153 (eval "$ac_link") 2>conftest.er1 9154 ac_status=$? 9155 grep -v '^ *+' conftest.er1 >conftest.err 9156 rm -f conftest.er1 9157 cat conftest.err >&5 9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9159 (exit $ac_status); } && { 9160 test -z "$ac_c_werror_flag" || 9161 test ! -s conftest.err 9162 } && test -s conftest$ac_exeext && { 9163 test "$cross_compiling" = yes || 9164 $as_test_x conftest$ac_exeext 9165 }; then 9166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9167 shlibpath_overrides_runpath=yes 9168fi 9169 9170else 9171 $as_echo "$as_me: failed program was:" >&5 9172sed 's/^/| /' conftest.$ac_ext >&5 9173 9174 9175fi 9176 9177rm -rf conftest.dSYM 9178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9179 conftest$ac_exeext conftest.$ac_ext 9180 LDFLAGS=$save_LDFLAGS 9181 libdir=$save_libdir 9182 9183 # This implies no fast_install, which is unacceptable. 9184 # Some rework will be needed to allow for fast_install 9185 # before this can be enabled. 9186 hardcode_into_libs=yes 9187 9188 # Append ld.so.conf contents to the search path 9189 if test -f /etc/ld.so.conf; then 9190 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' ' '` 9191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9192 fi 9193 9194 # We used to test for /lib/ld.so.1 and disable shared libraries on 9195 # powerpc, because MkLinux only supported shared libraries with the 9196 # GNU dynamic linker. Since this was broken with cross compilers, 9197 # most powerpc-linux boxes support dynamic linking these days and 9198 # people can always --disable-shared, the test was removed, and we 9199 # assume the GNU/Linux dynamic linker is in use. 9200 dynamic_linker='GNU/Linux ld.so' 9201 ;; 9202 9203netbsd*) 9204 version_type=sunos 9205 need_lib_prefix=no 9206 need_version=no 9207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9210 dynamic_linker='NetBSD (a.out) ld.so' 9211 else 9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9213 soname_spec='${libname}${release}${shared_ext}$major' 9214 dynamic_linker='NetBSD ld.elf_so' 9215 fi 9216 shlibpath_var=LD_LIBRARY_PATH 9217 shlibpath_overrides_runpath=yes 9218 hardcode_into_libs=yes 9219 ;; 9220 9221newsos6) 9222 version_type=linux 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9224 shlibpath_var=LD_LIBRARY_PATH 9225 shlibpath_overrides_runpath=yes 9226 ;; 9227 9228*nto* | *qnx*) 9229 version_type=qnx 9230 need_lib_prefix=no 9231 need_version=no 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9233 soname_spec='${libname}${release}${shared_ext}$major' 9234 shlibpath_var=LD_LIBRARY_PATH 9235 shlibpath_overrides_runpath=no 9236 hardcode_into_libs=yes 9237 dynamic_linker='ldqnx.so' 9238 ;; 9239 9240openbsd*) 9241 version_type=sunos 9242 sys_lib_dlsearch_path_spec="/usr/lib" 9243 need_lib_prefix=no 9244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9245 case $host_os in 9246 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9247 *) need_version=no ;; 9248 esac 9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9251 shlibpath_var=LD_LIBRARY_PATH 9252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9253 case $host_os in 9254 openbsd2.[89] | openbsd2.[89].*) 9255 shlibpath_overrides_runpath=no 9256 ;; 9257 *) 9258 shlibpath_overrides_runpath=yes 9259 ;; 9260 esac 9261 else 9262 shlibpath_overrides_runpath=yes 9263 fi 9264 ;; 9265 9266os2*) 9267 libname_spec='$name' 9268 shrext_cmds=".dll" 9269 need_lib_prefix=no 9270 library_names_spec='$libname${shared_ext} $libname.a' 9271 dynamic_linker='OS/2 ld.exe' 9272 shlibpath_var=LIBPATH 9273 ;; 9274 9275osf3* | osf4* | osf5*) 9276 version_type=osf 9277 need_lib_prefix=no 9278 need_version=no 9279 soname_spec='${libname}${release}${shared_ext}$major' 9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9281 shlibpath_var=LD_LIBRARY_PATH 9282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9284 ;; 9285 9286rdos*) 9287 dynamic_linker=no 9288 ;; 9289 9290solaris*) 9291 version_type=linux 9292 need_lib_prefix=no 9293 need_version=no 9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9295 soname_spec='${libname}${release}${shared_ext}$major' 9296 shlibpath_var=LD_LIBRARY_PATH 9297 shlibpath_overrides_runpath=yes 9298 hardcode_into_libs=yes 9299 # ldd complains unless libraries are executable 9300 postinstall_cmds='chmod +x $lib' 9301 ;; 9302 9303sunos4*) 9304 version_type=sunos 9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9307 shlibpath_var=LD_LIBRARY_PATH 9308 shlibpath_overrides_runpath=yes 9309 if test "$with_gnu_ld" = yes; then 9310 need_lib_prefix=no 9311 fi 9312 need_version=yes 9313 ;; 9314 9315sysv4 | sysv4.3*) 9316 version_type=linux 9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9318 soname_spec='${libname}${release}${shared_ext}$major' 9319 shlibpath_var=LD_LIBRARY_PATH 9320 case $host_vendor in 9321 sni) 9322 shlibpath_overrides_runpath=no 9323 need_lib_prefix=no 9324 runpath_var=LD_RUN_PATH 9325 ;; 9326 siemens) 9327 need_lib_prefix=no 9328 ;; 9329 motorola) 9330 need_lib_prefix=no 9331 need_version=no 9332 shlibpath_overrides_runpath=no 9333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9334 ;; 9335 esac 9336 ;; 9337 9338sysv4*MP*) 9339 if test -d /usr/nec ;then 9340 version_type=linux 9341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9342 soname_spec='$libname${shared_ext}.$major' 9343 shlibpath_var=LD_LIBRARY_PATH 9344 fi 9345 ;; 9346 9347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9348 version_type=freebsd-elf 9349 need_lib_prefix=no 9350 need_version=no 9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9352 soname_spec='${libname}${release}${shared_ext}$major' 9353 shlibpath_var=LD_LIBRARY_PATH 9354 shlibpath_overrides_runpath=yes 9355 hardcode_into_libs=yes 9356 if test "$with_gnu_ld" = yes; then 9357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9358 else 9359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9360 case $host_os in 9361 sco3.2v5*) 9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9363 ;; 9364 esac 9365 fi 9366 sys_lib_dlsearch_path_spec='/usr/lib' 9367 ;; 9368 9369tpf*) 9370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9371 version_type=linux 9372 need_lib_prefix=no 9373 need_version=no 9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9375 shlibpath_var=LD_LIBRARY_PATH 9376 shlibpath_overrides_runpath=no 9377 hardcode_into_libs=yes 9378 ;; 9379 9380uts4*) 9381 version_type=linux 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 ;; 9386 9387*) 9388 dynamic_linker=no 9389 ;; 9390esac 9391{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9392$as_echo "$dynamic_linker" >&6; } 9393test "$dynamic_linker" = no && can_build_shared=no 9394 9395variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9396if test "$GCC" = yes; then 9397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9398fi 9399 9400if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9402fi 9403if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9405fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9494$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9495hardcode_action= 9496if test -n "$hardcode_libdir_flag_spec" || 9497 test -n "$runpath_var" || 9498 test "X$hardcode_automatic" = "Xyes" ; then 9499 9500 # We can hardcode non-existent directories. 9501 if test "$hardcode_direct" != no && 9502 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9503 # have to relink, otherwise we might link with an installed library 9504 # when we should be linking with a yet-to-be-installed one 9505 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9506 test "$hardcode_minus_L" != no; then 9507 # Linking always hardcodes the temporary library directory. 9508 hardcode_action=relink 9509 else 9510 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9511 hardcode_action=immediate 9512 fi 9513else 9514 # We cannot hardcode anything, or else we can only hardcode existing 9515 # directories. 9516 hardcode_action=unsupported 9517fi 9518{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9519$as_echo "$hardcode_action" >&6; } 9520 9521if test "$hardcode_action" = relink || 9522 test "$inherit_rpath" = yes; then 9523 # Fast installation is not supported 9524 enable_fast_install=no 9525elif test "$shlibpath_overrides_runpath" = yes || 9526 test "$enable_shared" = no; then 9527 # Fast installation is not necessary 9528 enable_fast_install=needless 9529fi 9530 9531 9532 9533 9534 9535 9536 if test "x$enable_dlopen" != xyes; then 9537 enable_dlopen=unknown 9538 enable_dlopen_self=unknown 9539 enable_dlopen_self_static=unknown 9540else 9541 lt_cv_dlopen=no 9542 lt_cv_dlopen_libs= 9543 9544 case $host_os in 9545 beos*) 9546 lt_cv_dlopen="load_add_on" 9547 lt_cv_dlopen_libs= 9548 lt_cv_dlopen_self=yes 9549 ;; 9550 9551 mingw* | pw32* | cegcc*) 9552 lt_cv_dlopen="LoadLibrary" 9553 lt_cv_dlopen_libs= 9554 ;; 9555 9556 cygwin*) 9557 lt_cv_dlopen="dlopen" 9558 lt_cv_dlopen_libs= 9559 ;; 9560 9561 darwin*) 9562 # if libdl is installed we need to link against it 9563 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9564$as_echo_n "checking for dlopen in -ldl... " >&6; } 9565if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9566 $as_echo_n "(cached) " >&6 9567else 9568 ac_check_lib_save_LIBS=$LIBS 9569LIBS="-ldl $LIBS" 9570cat >conftest.$ac_ext <<_ACEOF 9571/* confdefs.h. */ 9572_ACEOF 9573cat confdefs.h >>conftest.$ac_ext 9574cat >>conftest.$ac_ext <<_ACEOF 9575/* end confdefs.h. */ 9576 9577/* Override any GCC internal prototype to avoid an error. 9578 Use char because int might match the return type of a GCC 9579 builtin and then its argument prototype would still apply. */ 9580#ifdef __cplusplus 9581extern "C" 9582#endif 9583char dlopen (); 9584int 9585main () 9586{ 9587return dlopen (); 9588 ; 9589 return 0; 9590} 9591_ACEOF 9592rm -f conftest.$ac_objext conftest$ac_exeext 9593if { (ac_try="$ac_link" 9594case "(($ac_try" in 9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9596 *) ac_try_echo=$ac_try;; 9597esac 9598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9599$as_echo "$ac_try_echo") >&5 9600 (eval "$ac_link") 2>conftest.er1 9601 ac_status=$? 9602 grep -v '^ *+' conftest.er1 >conftest.err 9603 rm -f conftest.er1 9604 cat conftest.err >&5 9605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9606 (exit $ac_status); } && { 9607 test -z "$ac_c_werror_flag" || 9608 test ! -s conftest.err 9609 } && test -s conftest$ac_exeext && { 9610 test "$cross_compiling" = yes || 9611 $as_test_x conftest$ac_exeext 9612 }; then 9613 ac_cv_lib_dl_dlopen=yes 9614else 9615 $as_echo "$as_me: failed program was:" >&5 9616sed 's/^/| /' conftest.$ac_ext >&5 9617 9618 ac_cv_lib_dl_dlopen=no 9619fi 9620 9621rm -rf conftest.dSYM 9622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9623 conftest$ac_exeext conftest.$ac_ext 9624LIBS=$ac_check_lib_save_LIBS 9625fi 9626{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9627$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9628if test $ac_cv_lib_dl_dlopen = yes; then 9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9630else 9631 9632 lt_cv_dlopen="dyld" 9633 lt_cv_dlopen_libs= 9634 lt_cv_dlopen_self=yes 9635 9636fi 9637 9638 ;; 9639 9640 *) 9641 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9642$as_echo_n "checking for shl_load... " >&6; } 9643if test "${ac_cv_func_shl_load+set}" = set; then 9644 $as_echo_n "(cached) " >&6 9645else 9646 cat >conftest.$ac_ext <<_ACEOF 9647/* confdefs.h. */ 9648_ACEOF 9649cat confdefs.h >>conftest.$ac_ext 9650cat >>conftest.$ac_ext <<_ACEOF 9651/* end confdefs.h. */ 9652/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9653 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9654#define shl_load innocuous_shl_load 9655 9656/* System header to define __stub macros and hopefully few prototypes, 9657 which can conflict with char shl_load (); below. 9658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9659 <limits.h> exists even on freestanding compilers. */ 9660 9661#ifdef __STDC__ 9662# include <limits.h> 9663#else 9664# include <assert.h> 9665#endif 9666 9667#undef shl_load 9668 9669/* Override any GCC internal prototype to avoid an error. 9670 Use char because int might match the return type of a GCC 9671 builtin and then its argument prototype would still apply. */ 9672#ifdef __cplusplus 9673extern "C" 9674#endif 9675char shl_load (); 9676/* The GNU C library defines this for functions which it implements 9677 to always fail with ENOSYS. Some functions are actually named 9678 something starting with __ and the normal name is an alias. */ 9679#if defined __stub_shl_load || defined __stub___shl_load 9680choke me 9681#endif 9682 9683int 9684main () 9685{ 9686return shl_load (); 9687 ; 9688 return 0; 9689} 9690_ACEOF 9691rm -f conftest.$ac_objext conftest$ac_exeext 9692if { (ac_try="$ac_link" 9693case "(($ac_try" in 9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9695 *) ac_try_echo=$ac_try;; 9696esac 9697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9698$as_echo "$ac_try_echo") >&5 9699 (eval "$ac_link") 2>conftest.er1 9700 ac_status=$? 9701 grep -v '^ *+' conftest.er1 >conftest.err 9702 rm -f conftest.er1 9703 cat conftest.err >&5 9704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); } && { 9706 test -z "$ac_c_werror_flag" || 9707 test ! -s conftest.err 9708 } && test -s conftest$ac_exeext && { 9709 test "$cross_compiling" = yes || 9710 $as_test_x conftest$ac_exeext 9711 }; then 9712 ac_cv_func_shl_load=yes 9713else 9714 $as_echo "$as_me: failed program was:" >&5 9715sed 's/^/| /' conftest.$ac_ext >&5 9716 9717 ac_cv_func_shl_load=no 9718fi 9719 9720rm -rf conftest.dSYM 9721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9722 conftest$ac_exeext conftest.$ac_ext 9723fi 9724{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9725$as_echo "$ac_cv_func_shl_load" >&6; } 9726if test $ac_cv_func_shl_load = yes; then 9727 lt_cv_dlopen="shl_load" 9728else 9729 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9730$as_echo_n "checking for shl_load in -ldld... " >&6; } 9731if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9732 $as_echo_n "(cached) " >&6 9733else 9734 ac_check_lib_save_LIBS=$LIBS 9735LIBS="-ldld $LIBS" 9736cat >conftest.$ac_ext <<_ACEOF 9737/* confdefs.h. */ 9738_ACEOF 9739cat confdefs.h >>conftest.$ac_ext 9740cat >>conftest.$ac_ext <<_ACEOF 9741/* end confdefs.h. */ 9742 9743/* Override any GCC internal prototype to avoid an error. 9744 Use char because int might match the return type of a GCC 9745 builtin and then its argument prototype would still apply. */ 9746#ifdef __cplusplus 9747extern "C" 9748#endif 9749char shl_load (); 9750int 9751main () 9752{ 9753return shl_load (); 9754 ; 9755 return 0; 9756} 9757_ACEOF 9758rm -f conftest.$ac_objext conftest$ac_exeext 9759if { (ac_try="$ac_link" 9760case "(($ac_try" in 9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9762 *) ac_try_echo=$ac_try;; 9763esac 9764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9765$as_echo "$ac_try_echo") >&5 9766 (eval "$ac_link") 2>conftest.er1 9767 ac_status=$? 9768 grep -v '^ *+' conftest.er1 >conftest.err 9769 rm -f conftest.er1 9770 cat conftest.err >&5 9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9772 (exit $ac_status); } && { 9773 test -z "$ac_c_werror_flag" || 9774 test ! -s conftest.err 9775 } && test -s conftest$ac_exeext && { 9776 test "$cross_compiling" = yes || 9777 $as_test_x conftest$ac_exeext 9778 }; then 9779 ac_cv_lib_dld_shl_load=yes 9780else 9781 $as_echo "$as_me: failed program was:" >&5 9782sed 's/^/| /' conftest.$ac_ext >&5 9783 9784 ac_cv_lib_dld_shl_load=no 9785fi 9786 9787rm -rf conftest.dSYM 9788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9789 conftest$ac_exeext conftest.$ac_ext 9790LIBS=$ac_check_lib_save_LIBS 9791fi 9792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9793$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9794if test $ac_cv_lib_dld_shl_load = yes; then 9795 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9796else 9797 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9798$as_echo_n "checking for dlopen... " >&6; } 9799if test "${ac_cv_func_dlopen+set}" = set; then 9800 $as_echo_n "(cached) " >&6 9801else 9802 cat >conftest.$ac_ext <<_ACEOF 9803/* confdefs.h. */ 9804_ACEOF 9805cat confdefs.h >>conftest.$ac_ext 9806cat >>conftest.$ac_ext <<_ACEOF 9807/* end confdefs.h. */ 9808/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9810#define dlopen innocuous_dlopen 9811 9812/* System header to define __stub macros and hopefully few prototypes, 9813 which can conflict with char dlopen (); below. 9814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9815 <limits.h> exists even on freestanding compilers. */ 9816 9817#ifdef __STDC__ 9818# include <limits.h> 9819#else 9820# include <assert.h> 9821#endif 9822 9823#undef dlopen 9824 9825/* Override any GCC internal prototype to avoid an error. 9826 Use char because int might match the return type of a GCC 9827 builtin and then its argument prototype would still apply. */ 9828#ifdef __cplusplus 9829extern "C" 9830#endif 9831char dlopen (); 9832/* The GNU C library defines this for functions which it implements 9833 to always fail with ENOSYS. Some functions are actually named 9834 something starting with __ and the normal name is an alias. */ 9835#if defined __stub_dlopen || defined __stub___dlopen 9836choke me 9837#endif 9838 9839int 9840main () 9841{ 9842return dlopen (); 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847rm -f conftest.$ac_objext conftest$ac_exeext 9848if { (ac_try="$ac_link" 9849case "(($ac_try" in 9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9851 *) ac_try_echo=$ac_try;; 9852esac 9853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9854$as_echo "$ac_try_echo") >&5 9855 (eval "$ac_link") 2>conftest.er1 9856 ac_status=$? 9857 grep -v '^ *+' conftest.er1 >conftest.err 9858 rm -f conftest.er1 9859 cat conftest.err >&5 9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); } && { 9862 test -z "$ac_c_werror_flag" || 9863 test ! -s conftest.err 9864 } && test -s conftest$ac_exeext && { 9865 test "$cross_compiling" = yes || 9866 $as_test_x conftest$ac_exeext 9867 }; then 9868 ac_cv_func_dlopen=yes 9869else 9870 $as_echo "$as_me: failed program was:" >&5 9871sed 's/^/| /' conftest.$ac_ext >&5 9872 9873 ac_cv_func_dlopen=no 9874fi 9875 9876rm -rf conftest.dSYM 9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9878 conftest$ac_exeext conftest.$ac_ext 9879fi 9880{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9881$as_echo "$ac_cv_func_dlopen" >&6; } 9882if test $ac_cv_func_dlopen = yes; then 9883 lt_cv_dlopen="dlopen" 9884else 9885 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9886$as_echo_n "checking for dlopen in -ldl... " >&6; } 9887if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9888 $as_echo_n "(cached) " >&6 9889else 9890 ac_check_lib_save_LIBS=$LIBS 9891LIBS="-ldl $LIBS" 9892cat >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 9899/* Override any GCC internal prototype to avoid an error. 9900 Use char because int might match the return type of a GCC 9901 builtin and then its argument prototype would still apply. */ 9902#ifdef __cplusplus 9903extern "C" 9904#endif 9905char dlopen (); 9906int 9907main () 9908{ 9909return dlopen (); 9910 ; 9911 return 0; 9912} 9913_ACEOF 9914rm -f conftest.$ac_objext conftest$ac_exeext 9915if { (ac_try="$ac_link" 9916case "(($ac_try" in 9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9918 *) ac_try_echo=$ac_try;; 9919esac 9920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9921$as_echo "$ac_try_echo") >&5 9922 (eval "$ac_link") 2>conftest.er1 9923 ac_status=$? 9924 grep -v '^ *+' conftest.er1 >conftest.err 9925 rm -f conftest.er1 9926 cat conftest.err >&5 9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9928 (exit $ac_status); } && { 9929 test -z "$ac_c_werror_flag" || 9930 test ! -s conftest.err 9931 } && test -s conftest$ac_exeext && { 9932 test "$cross_compiling" = yes || 9933 $as_test_x conftest$ac_exeext 9934 }; then 9935 ac_cv_lib_dl_dlopen=yes 9936else 9937 $as_echo "$as_me: failed program was:" >&5 9938sed 's/^/| /' conftest.$ac_ext >&5 9939 9940 ac_cv_lib_dl_dlopen=no 9941fi 9942 9943rm -rf conftest.dSYM 9944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9945 conftest$ac_exeext conftest.$ac_ext 9946LIBS=$ac_check_lib_save_LIBS 9947fi 9948{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9949$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9950if test $ac_cv_lib_dl_dlopen = yes; then 9951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9952else 9953 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9954$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9955if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9956 $as_echo_n "(cached) " >&6 9957else 9958 ac_check_lib_save_LIBS=$LIBS 9959LIBS="-lsvld $LIBS" 9960cat >conftest.$ac_ext <<_ACEOF 9961/* confdefs.h. */ 9962_ACEOF 9963cat confdefs.h >>conftest.$ac_ext 9964cat >>conftest.$ac_ext <<_ACEOF 9965/* end confdefs.h. */ 9966 9967/* Override any GCC internal prototype to avoid an error. 9968 Use char because int might match the return type of a GCC 9969 builtin and then its argument prototype would still apply. */ 9970#ifdef __cplusplus 9971extern "C" 9972#endif 9973char dlopen (); 9974int 9975main () 9976{ 9977return dlopen (); 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982rm -f conftest.$ac_objext conftest$ac_exeext 9983if { (ac_try="$ac_link" 9984case "(($ac_try" in 9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9986 *) ac_try_echo=$ac_try;; 9987esac 9988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9989$as_echo "$ac_try_echo") >&5 9990 (eval "$ac_link") 2>conftest.er1 9991 ac_status=$? 9992 grep -v '^ *+' conftest.er1 >conftest.err 9993 rm -f conftest.er1 9994 cat conftest.err >&5 9995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); } && { 9997 test -z "$ac_c_werror_flag" || 9998 test ! -s conftest.err 9999 } && test -s conftest$ac_exeext && { 10000 test "$cross_compiling" = yes || 10001 $as_test_x conftest$ac_exeext 10002 }; then 10003 ac_cv_lib_svld_dlopen=yes 10004else 10005 $as_echo "$as_me: failed program was:" >&5 10006sed 's/^/| /' conftest.$ac_ext >&5 10007 10008 ac_cv_lib_svld_dlopen=no 10009fi 10010 10011rm -rf conftest.dSYM 10012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10013 conftest$ac_exeext conftest.$ac_ext 10014LIBS=$ac_check_lib_save_LIBS 10015fi 10016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10017$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10018if test $ac_cv_lib_svld_dlopen = yes; then 10019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10020else 10021 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10022$as_echo_n "checking for dld_link in -ldld... " >&6; } 10023if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10024 $as_echo_n "(cached) " >&6 10025else 10026 ac_check_lib_save_LIBS=$LIBS 10027LIBS="-ldld $LIBS" 10028cat >conftest.$ac_ext <<_ACEOF 10029/* confdefs.h. */ 10030_ACEOF 10031cat confdefs.h >>conftest.$ac_ext 10032cat >>conftest.$ac_ext <<_ACEOF 10033/* end confdefs.h. */ 10034 10035/* Override any GCC internal prototype to avoid an error. 10036 Use char because int might match the return type of a GCC 10037 builtin and then its argument prototype would still apply. */ 10038#ifdef __cplusplus 10039extern "C" 10040#endif 10041char dld_link (); 10042int 10043main () 10044{ 10045return dld_link (); 10046 ; 10047 return 0; 10048} 10049_ACEOF 10050rm -f conftest.$ac_objext conftest$ac_exeext 10051if { (ac_try="$ac_link" 10052case "(($ac_try" in 10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10054 *) ac_try_echo=$ac_try;; 10055esac 10056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10057$as_echo "$ac_try_echo") >&5 10058 (eval "$ac_link") 2>conftest.er1 10059 ac_status=$? 10060 grep -v '^ *+' conftest.er1 >conftest.err 10061 rm -f conftest.er1 10062 cat conftest.err >&5 10063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10064 (exit $ac_status); } && { 10065 test -z "$ac_c_werror_flag" || 10066 test ! -s conftest.err 10067 } && test -s conftest$ac_exeext && { 10068 test "$cross_compiling" = yes || 10069 $as_test_x conftest$ac_exeext 10070 }; then 10071 ac_cv_lib_dld_dld_link=yes 10072else 10073 $as_echo "$as_me: failed program was:" >&5 10074sed 's/^/| /' conftest.$ac_ext >&5 10075 10076 ac_cv_lib_dld_dld_link=no 10077fi 10078 10079rm -rf conftest.dSYM 10080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10081 conftest$ac_exeext conftest.$ac_ext 10082LIBS=$ac_check_lib_save_LIBS 10083fi 10084{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10085$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10086if test $ac_cv_lib_dld_dld_link = yes; then 10087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10088fi 10089 10090 10091fi 10092 10093 10094fi 10095 10096 10097fi 10098 10099 10100fi 10101 10102 10103fi 10104 10105 ;; 10106 esac 10107 10108 if test "x$lt_cv_dlopen" != xno; then 10109 enable_dlopen=yes 10110 else 10111 enable_dlopen=no 10112 fi 10113 10114 case $lt_cv_dlopen in 10115 dlopen) 10116 save_CPPFLAGS="$CPPFLAGS" 10117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10118 10119 save_LDFLAGS="$LDFLAGS" 10120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10121 10122 save_LIBS="$LIBS" 10123 LIBS="$lt_cv_dlopen_libs $LIBS" 10124 10125 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10126$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10127if test "${lt_cv_dlopen_self+set}" = set; then 10128 $as_echo_n "(cached) " >&6 10129else 10130 if test "$cross_compiling" = yes; then : 10131 lt_cv_dlopen_self=cross 10132else 10133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10134 lt_status=$lt_dlunknown 10135 cat > conftest.$ac_ext <<_LT_EOF 10136#line 10136 "configure" 10137#include "confdefs.h" 10138 10139#if HAVE_DLFCN_H 10140#include <dlfcn.h> 10141#endif 10142 10143#include <stdio.h> 10144 10145#ifdef RTLD_GLOBAL 10146# define LT_DLGLOBAL RTLD_GLOBAL 10147#else 10148# ifdef DL_GLOBAL 10149# define LT_DLGLOBAL DL_GLOBAL 10150# else 10151# define LT_DLGLOBAL 0 10152# endif 10153#endif 10154 10155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10156 find out it does not work in some platform. */ 10157#ifndef LT_DLLAZY_OR_NOW 10158# ifdef RTLD_LAZY 10159# define LT_DLLAZY_OR_NOW RTLD_LAZY 10160# else 10161# ifdef DL_LAZY 10162# define LT_DLLAZY_OR_NOW DL_LAZY 10163# else 10164# ifdef RTLD_NOW 10165# define LT_DLLAZY_OR_NOW RTLD_NOW 10166# else 10167# ifdef DL_NOW 10168# define LT_DLLAZY_OR_NOW DL_NOW 10169# else 10170# define LT_DLLAZY_OR_NOW 0 10171# endif 10172# endif 10173# endif 10174# endif 10175#endif 10176 10177void fnord() { int i=42;} 10178int main () 10179{ 10180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10181 int status = $lt_dlunknown; 10182 10183 if (self) 10184 { 10185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10187 /* dlclose (self); */ 10188 } 10189 else 10190 puts (dlerror ()); 10191 10192 return status; 10193} 10194_LT_EOF 10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10196 (eval $ac_link) 2>&5 10197 ac_status=$? 10198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10200 (./conftest; exit; ) >&5 2>/dev/null 10201 lt_status=$? 10202 case x$lt_status in 10203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10206 esac 10207 else : 10208 # compilation failed 10209 lt_cv_dlopen_self=no 10210 fi 10211fi 10212rm -fr conftest* 10213 10214 10215fi 10216{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10217$as_echo "$lt_cv_dlopen_self" >&6; } 10218 10219 if test "x$lt_cv_dlopen_self" = xyes; then 10220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10221 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10222$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10223if test "${lt_cv_dlopen_self_static+set}" = set; then 10224 $as_echo_n "(cached) " >&6 10225else 10226 if test "$cross_compiling" = yes; then : 10227 lt_cv_dlopen_self_static=cross 10228else 10229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10230 lt_status=$lt_dlunknown 10231 cat > conftest.$ac_ext <<_LT_EOF 10232#line 10232 "configure" 10233#include "confdefs.h" 10234 10235#if HAVE_DLFCN_H 10236#include <dlfcn.h> 10237#endif 10238 10239#include <stdio.h> 10240 10241#ifdef RTLD_GLOBAL 10242# define LT_DLGLOBAL RTLD_GLOBAL 10243#else 10244# ifdef DL_GLOBAL 10245# define LT_DLGLOBAL DL_GLOBAL 10246# else 10247# define LT_DLGLOBAL 0 10248# endif 10249#endif 10250 10251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10252 find out it does not work in some platform. */ 10253#ifndef LT_DLLAZY_OR_NOW 10254# ifdef RTLD_LAZY 10255# define LT_DLLAZY_OR_NOW RTLD_LAZY 10256# else 10257# ifdef DL_LAZY 10258# define LT_DLLAZY_OR_NOW DL_LAZY 10259# else 10260# ifdef RTLD_NOW 10261# define LT_DLLAZY_OR_NOW RTLD_NOW 10262# else 10263# ifdef DL_NOW 10264# define LT_DLLAZY_OR_NOW DL_NOW 10265# else 10266# define LT_DLLAZY_OR_NOW 0 10267# endif 10268# endif 10269# endif 10270# endif 10271#endif 10272 10273void fnord() { int i=42;} 10274int main () 10275{ 10276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10277 int status = $lt_dlunknown; 10278 10279 if (self) 10280 { 10281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10283 /* dlclose (self); */ 10284 } 10285 else 10286 puts (dlerror ()); 10287 10288 return status; 10289} 10290_LT_EOF 10291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10292 (eval $ac_link) 2>&5 10293 ac_status=$? 10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10296 (./conftest; exit; ) >&5 2>/dev/null 10297 lt_status=$? 10298 case x$lt_status in 10299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10302 esac 10303 else : 10304 # compilation failed 10305 lt_cv_dlopen_self_static=no 10306 fi 10307fi 10308rm -fr conftest* 10309 10310 10311fi 10312{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10313$as_echo "$lt_cv_dlopen_self_static" >&6; } 10314 fi 10315 10316 CPPFLAGS="$save_CPPFLAGS" 10317 LDFLAGS="$save_LDFLAGS" 10318 LIBS="$save_LIBS" 10319 ;; 10320 esac 10321 10322 case $lt_cv_dlopen_self in 10323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10324 *) enable_dlopen_self=unknown ;; 10325 esac 10326 10327 case $lt_cv_dlopen_self_static in 10328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10329 *) enable_dlopen_self_static=unknown ;; 10330 esac 10331fi 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349striplib= 10350old_striplib= 10351{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10352$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10353if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10355 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10356 { $as_echo "$as_me:$LINENO: result: yes" >&5 10357$as_echo "yes" >&6; } 10358else 10359# FIXME - insert some real tests, host_os isn't really good enough 10360 case $host_os in 10361 darwin*) 10362 if test -n "$STRIP" ; then 10363 striplib="$STRIP -x" 10364 old_striplib="$STRIP -S" 10365 { $as_echo "$as_me:$LINENO: result: yes" >&5 10366$as_echo "yes" >&6; } 10367 else 10368 { $as_echo "$as_me:$LINENO: result: no" >&5 10369$as_echo "no" >&6; } 10370 fi 10371 ;; 10372 *) 10373 { $as_echo "$as_me:$LINENO: result: no" >&5 10374$as_echo "no" >&6; } 10375 ;; 10376 esac 10377fi 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 # Report which library types will actually be built 10391 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10392$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10393 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10394$as_echo "$can_build_shared" >&6; } 10395 10396 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10397$as_echo_n "checking whether to build shared libraries... " >&6; } 10398 test "$can_build_shared" = "no" && enable_shared=no 10399 10400 # On AIX, shared libraries and static libraries use the same namespace, and 10401 # are all built from PIC. 10402 case $host_os in 10403 aix3*) 10404 test "$enable_shared" = yes && enable_static=no 10405 if test -n "$RANLIB"; then 10406 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10407 postinstall_cmds='$RANLIB $lib' 10408 fi 10409 ;; 10410 10411 aix[4-9]*) 10412 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10413 test "$enable_shared" = yes && enable_static=no 10414 fi 10415 ;; 10416 esac 10417 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10418$as_echo "$enable_shared" >&6; } 10419 10420 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10421$as_echo_n "checking whether to build static libraries... " >&6; } 10422 # Make sure either enable_shared or enable_static is yes. 10423 test "$enable_shared" = yes || enable_static=yes 10424 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10425$as_echo "$enable_static" >&6; } 10426 10427 10428 10429 10430fi 10431ac_ext=c 10432ac_cpp='$CPP $CPPFLAGS' 10433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10435ac_compiler_gnu=$ac_cv_c_compiler_gnu 10436 10437CC="$lt_save_CC" 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 ac_config_commands="$ac_config_commands libtool" 10452 10453 10454 10455 10456# Only expand once: 10457 10458 10459# Find a good install program. We prefer a C program (faster), 10460# so one script is as good as another. But avoid the broken or 10461# incompatible versions: 10462# SysV /etc/install, /usr/sbin/install 10463# SunOS /usr/etc/install 10464# IRIX /sbin/install 10465# AIX /bin/install 10466# AmigaOS /C/install, which installs bootblocks on floppy discs 10467# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10468# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10469# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10470# OS/2's system install, which has a completely different semantic 10471# ./install, which can be erroneously created by make from ./install.sh. 10472# Reject install programs that cannot install multiple files. 10473{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 10474$as_echo_n "checking for a BSD-compatible install... " >&6; } 10475if test -z "$INSTALL"; then 10476if test "${ac_cv_path_install+set}" = set; then 10477 $as_echo_n "(cached) " >&6 10478else 10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10480for as_dir in $PATH 10481do 10482 IFS=$as_save_IFS 10483 test -z "$as_dir" && as_dir=. 10484 # Account for people who put trailing slashes in PATH elements. 10485case $as_dir/ in 10486 ./ | .// | /cC/* | \ 10487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10488 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 10489 /usr/ucb/* ) ;; 10490 *) 10491 # OSF1 and SCO ODT 3.0 have their own names for install. 10492 # Don't use installbsd from OSF since it installs stuff as root 10493 # by default. 10494 for ac_prog in ginstall scoinst install; do 10495 for ac_exec_ext in '' $ac_executable_extensions; do 10496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 10497 if test $ac_prog = install && 10498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10499 # AIX install. It has an incompatible calling convention. 10500 : 10501 elif test $ac_prog = install && 10502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10503 # program-specific install script used by HP pwplus--don't use. 10504 : 10505 else 10506 rm -rf conftest.one conftest.two conftest.dir 10507 echo one > conftest.one 10508 echo two > conftest.two 10509 mkdir conftest.dir 10510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10511 test -s conftest.one && test -s conftest.two && 10512 test -s conftest.dir/conftest.one && 10513 test -s conftest.dir/conftest.two 10514 then 10515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10516 break 3 10517 fi 10518 fi 10519 fi 10520 done 10521 done 10522 ;; 10523esac 10524 10525done 10526IFS=$as_save_IFS 10527 10528rm -rf conftest.one conftest.two conftest.dir 10529 10530fi 10531 if test "${ac_cv_path_install+set}" = set; then 10532 INSTALL=$ac_cv_path_install 10533 else 10534 # As a last resort, use the slow shell script. Don't cache a 10535 # value for INSTALL within a source directory, because that will 10536 # break other packages using the cache if that directory is 10537 # removed, or if the value is a relative name. 10538 INSTALL=$ac_install_sh 10539 fi 10540fi 10541{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 10542$as_echo "$INSTALL" >&6; } 10543 10544# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10545# It thinks the first close brace ends the variable substitution. 10546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10547 10548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10549 10550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10551 10552for ac_prog in gawk mawk nawk awk 10553do 10554 # Extract the first word of "$ac_prog", so it can be a program name with args. 10555set dummy $ac_prog; ac_word=$2 10556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10557$as_echo_n "checking for $ac_word... " >&6; } 10558if test "${ac_cv_prog_AWK+set}" = set; then 10559 $as_echo_n "(cached) " >&6 10560else 10561 if test -n "$AWK"; then 10562 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10563else 10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10565for as_dir in $PATH 10566do 10567 IFS=$as_save_IFS 10568 test -z "$as_dir" && as_dir=. 10569 for ac_exec_ext in '' $ac_executable_extensions; do 10570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10571 ac_cv_prog_AWK="$ac_prog" 10572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10573 break 2 10574 fi 10575done 10576done 10577IFS=$as_save_IFS 10578 10579fi 10580fi 10581AWK=$ac_cv_prog_AWK 10582if test -n "$AWK"; then 10583 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 10584$as_echo "$AWK" >&6; } 10585else 10586 { $as_echo "$as_me:$LINENO: result: no" >&5 10587$as_echo "no" >&6; } 10588fi 10589 10590 10591 test -n "$AWK" && break 10592done 10593 10594 10595######### 10596# Enable large file support (if special flags are necessary) 10597# 10598# Check whether --enable-largefile was given. 10599if test "${enable_largefile+set}" = set; then 10600 enableval=$enable_largefile; 10601fi 10602 10603if test "$enable_largefile" != no; then 10604 10605 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 10606$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10607if test "${ac_cv_sys_largefile_CC+set}" = set; then 10608 $as_echo_n "(cached) " >&6 10609else 10610 ac_cv_sys_largefile_CC=no 10611 if test "$GCC" != yes; then 10612 ac_save_CC=$CC 10613 while :; do 10614 # IRIX 6.2 and later do not support large files by default, 10615 # so use the C compiler's -n32 option if that helps. 10616 cat >conftest.$ac_ext <<_ACEOF 10617/* confdefs.h. */ 10618_ACEOF 10619cat confdefs.h >>conftest.$ac_ext 10620cat >>conftest.$ac_ext <<_ACEOF 10621/* end confdefs.h. */ 10622#include <sys/types.h> 10623 /* Check that off_t can represent 2**63 - 1 correctly. 10624 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10625 since some C++ compilers masquerading as C compilers 10626 incorrectly reject 9223372036854775807. */ 10627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10629 && LARGE_OFF_T % 2147483647 == 1) 10630 ? 1 : -1]; 10631int 10632main () 10633{ 10634 10635 ; 10636 return 0; 10637} 10638_ACEOF 10639 rm -f conftest.$ac_objext 10640if { (ac_try="$ac_compile" 10641case "(($ac_try" in 10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10643 *) ac_try_echo=$ac_try;; 10644esac 10645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10646$as_echo "$ac_try_echo") >&5 10647 (eval "$ac_compile") 2>conftest.er1 10648 ac_status=$? 10649 grep -v '^ *+' conftest.er1 >conftest.err 10650 rm -f conftest.er1 10651 cat conftest.err >&5 10652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10653 (exit $ac_status); } && { 10654 test -z "$ac_c_werror_flag" || 10655 test ! -s conftest.err 10656 } && test -s conftest.$ac_objext; then 10657 break 10658else 10659 $as_echo "$as_me: failed program was:" >&5 10660sed 's/^/| /' conftest.$ac_ext >&5 10661 10662 10663fi 10664 10665rm -f core conftest.err conftest.$ac_objext 10666 CC="$CC -n32" 10667 rm -f conftest.$ac_objext 10668if { (ac_try="$ac_compile" 10669case "(($ac_try" in 10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10671 *) ac_try_echo=$ac_try;; 10672esac 10673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10674$as_echo "$ac_try_echo") >&5 10675 (eval "$ac_compile") 2>conftest.er1 10676 ac_status=$? 10677 grep -v '^ *+' conftest.er1 >conftest.err 10678 rm -f conftest.er1 10679 cat conftest.err >&5 10680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); } && { 10682 test -z "$ac_c_werror_flag" || 10683 test ! -s conftest.err 10684 } && test -s conftest.$ac_objext; then 10685 ac_cv_sys_largefile_CC=' -n32'; break 10686else 10687 $as_echo "$as_me: failed program was:" >&5 10688sed 's/^/| /' conftest.$ac_ext >&5 10689 10690 10691fi 10692 10693rm -f core conftest.err conftest.$ac_objext 10694 break 10695 done 10696 CC=$ac_save_CC 10697 rm -f conftest.$ac_ext 10698 fi 10699fi 10700{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 10701$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10702 if test "$ac_cv_sys_largefile_CC" != no; then 10703 CC=$CC$ac_cv_sys_largefile_CC 10704 fi 10705 10706 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10707$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10708if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10709 $as_echo_n "(cached) " >&6 10710else 10711 while :; do 10712 cat >conftest.$ac_ext <<_ACEOF 10713/* confdefs.h. */ 10714_ACEOF 10715cat confdefs.h >>conftest.$ac_ext 10716cat >>conftest.$ac_ext <<_ACEOF 10717/* end confdefs.h. */ 10718#include <sys/types.h> 10719 /* Check that off_t can represent 2**63 - 1 correctly. 10720 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10721 since some C++ compilers masquerading as C compilers 10722 incorrectly reject 9223372036854775807. */ 10723#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10725 && LARGE_OFF_T % 2147483647 == 1) 10726 ? 1 : -1]; 10727int 10728main () 10729{ 10730 10731 ; 10732 return 0; 10733} 10734_ACEOF 10735rm -f conftest.$ac_objext 10736if { (ac_try="$ac_compile" 10737case "(($ac_try" in 10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10739 *) ac_try_echo=$ac_try;; 10740esac 10741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10742$as_echo "$ac_try_echo") >&5 10743 (eval "$ac_compile") 2>conftest.er1 10744 ac_status=$? 10745 grep -v '^ *+' conftest.er1 >conftest.err 10746 rm -f conftest.er1 10747 cat conftest.err >&5 10748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); } && { 10750 test -z "$ac_c_werror_flag" || 10751 test ! -s conftest.err 10752 } && test -s conftest.$ac_objext; then 10753 ac_cv_sys_file_offset_bits=no; break 10754else 10755 $as_echo "$as_me: failed program was:" >&5 10756sed 's/^/| /' conftest.$ac_ext >&5 10757 10758 10759fi 10760 10761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10762 cat >conftest.$ac_ext <<_ACEOF 10763/* confdefs.h. */ 10764_ACEOF 10765cat confdefs.h >>conftest.$ac_ext 10766cat >>conftest.$ac_ext <<_ACEOF 10767/* end confdefs.h. */ 10768#define _FILE_OFFSET_BITS 64 10769#include <sys/types.h> 10770 /* Check that off_t can represent 2**63 - 1 correctly. 10771 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10772 since some C++ compilers masquerading as C compilers 10773 incorrectly reject 9223372036854775807. */ 10774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10776 && LARGE_OFF_T % 2147483647 == 1) 10777 ? 1 : -1]; 10778int 10779main () 10780{ 10781 10782 ; 10783 return 0; 10784} 10785_ACEOF 10786rm -f conftest.$ac_objext 10787if { (ac_try="$ac_compile" 10788case "(($ac_try" in 10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10790 *) ac_try_echo=$ac_try;; 10791esac 10792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10793$as_echo "$ac_try_echo") >&5 10794 (eval "$ac_compile") 2>conftest.er1 10795 ac_status=$? 10796 grep -v '^ *+' conftest.er1 >conftest.err 10797 rm -f conftest.er1 10798 cat conftest.err >&5 10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10800 (exit $ac_status); } && { 10801 test -z "$ac_c_werror_flag" || 10802 test ! -s conftest.err 10803 } && test -s conftest.$ac_objext; then 10804 ac_cv_sys_file_offset_bits=64; break 10805else 10806 $as_echo "$as_me: failed program was:" >&5 10807sed 's/^/| /' conftest.$ac_ext >&5 10808 10809 10810fi 10811 10812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10813 ac_cv_sys_file_offset_bits=unknown 10814 break 10815done 10816fi 10817{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 10818$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10819case $ac_cv_sys_file_offset_bits in #( 10820 no | unknown) ;; 10821 *) 10822cat >>confdefs.h <<_ACEOF 10823#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10824_ACEOF 10825;; 10826esac 10827rm -rf conftest* 10828 if test $ac_cv_sys_file_offset_bits = unknown; then 10829 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10830$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10831if test "${ac_cv_sys_large_files+set}" = set; then 10832 $as_echo_n "(cached) " >&6 10833else 10834 while :; do 10835 cat >conftest.$ac_ext <<_ACEOF 10836/* confdefs.h. */ 10837_ACEOF 10838cat confdefs.h >>conftest.$ac_ext 10839cat >>conftest.$ac_ext <<_ACEOF 10840/* end confdefs.h. */ 10841#include <sys/types.h> 10842 /* Check that off_t can represent 2**63 - 1 correctly. 10843 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10844 since some C++ compilers masquerading as C compilers 10845 incorrectly reject 9223372036854775807. */ 10846#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10848 && LARGE_OFF_T % 2147483647 == 1) 10849 ? 1 : -1]; 10850int 10851main () 10852{ 10853 10854 ; 10855 return 0; 10856} 10857_ACEOF 10858rm -f conftest.$ac_objext 10859if { (ac_try="$ac_compile" 10860case "(($ac_try" in 10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10862 *) ac_try_echo=$ac_try;; 10863esac 10864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10865$as_echo "$ac_try_echo") >&5 10866 (eval "$ac_compile") 2>conftest.er1 10867 ac_status=$? 10868 grep -v '^ *+' conftest.er1 >conftest.err 10869 rm -f conftest.er1 10870 cat conftest.err >&5 10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 (exit $ac_status); } && { 10873 test -z "$ac_c_werror_flag" || 10874 test ! -s conftest.err 10875 } && test -s conftest.$ac_objext; then 10876 ac_cv_sys_large_files=no; break 10877else 10878 $as_echo "$as_me: failed program was:" >&5 10879sed 's/^/| /' conftest.$ac_ext >&5 10880 10881 10882fi 10883 10884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10885 cat >conftest.$ac_ext <<_ACEOF 10886/* confdefs.h. */ 10887_ACEOF 10888cat confdefs.h >>conftest.$ac_ext 10889cat >>conftest.$ac_ext <<_ACEOF 10890/* end confdefs.h. */ 10891#define _LARGE_FILES 1 10892#include <sys/types.h> 10893 /* Check that off_t can represent 2**63 - 1 correctly. 10894 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10895 since some C++ compilers masquerading as C compilers 10896 incorrectly reject 9223372036854775807. */ 10897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10899 && LARGE_OFF_T % 2147483647 == 1) 10900 ? 1 : -1]; 10901int 10902main () 10903{ 10904 10905 ; 10906 return 0; 10907} 10908_ACEOF 10909rm -f conftest.$ac_objext 10910if { (ac_try="$ac_compile" 10911case "(($ac_try" in 10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10913 *) ac_try_echo=$ac_try;; 10914esac 10915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10916$as_echo "$ac_try_echo") >&5 10917 (eval "$ac_compile") 2>conftest.er1 10918 ac_status=$? 10919 grep -v '^ *+' conftest.er1 >conftest.err 10920 rm -f conftest.er1 10921 cat conftest.err >&5 10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10923 (exit $ac_status); } && { 10924 test -z "$ac_c_werror_flag" || 10925 test ! -s conftest.err 10926 } && test -s conftest.$ac_objext; then 10927 ac_cv_sys_large_files=1; break 10928else 10929 $as_echo "$as_me: failed program was:" >&5 10930sed 's/^/| /' conftest.$ac_ext >&5 10931 10932 10933fi 10934 10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10936 ac_cv_sys_large_files=unknown 10937 break 10938done 10939fi 10940{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10941$as_echo "$ac_cv_sys_large_files" >&6; } 10942case $ac_cv_sys_large_files in #( 10943 no | unknown) ;; 10944 *) 10945cat >>confdefs.h <<_ACEOF 10946#define _LARGE_FILES $ac_cv_sys_large_files 10947_ACEOF 10948;; 10949esac 10950rm -rf conftest* 10951 fi 10952fi 10953 10954 10955######### 10956# Check for needed/wanted data types 10957{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5 10958$as_echo_n "checking for int8_t... " >&6; } 10959if test "${ac_cv_type_int8_t+set}" = set; then 10960 $as_echo_n "(cached) " >&6 10961else 10962 ac_cv_type_int8_t=no 10963cat >conftest.$ac_ext <<_ACEOF 10964/* confdefs.h. */ 10965_ACEOF 10966cat confdefs.h >>conftest.$ac_ext 10967cat >>conftest.$ac_ext <<_ACEOF 10968/* end confdefs.h. */ 10969$ac_includes_default 10970int 10971main () 10972{ 10973if (sizeof (int8_t)) 10974 return 0; 10975 ; 10976 return 0; 10977} 10978_ACEOF 10979rm -f conftest.$ac_objext 10980if { (ac_try="$ac_compile" 10981case "(($ac_try" in 10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10983 *) ac_try_echo=$ac_try;; 10984esac 10985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10986$as_echo "$ac_try_echo") >&5 10987 (eval "$ac_compile") 2>conftest.er1 10988 ac_status=$? 10989 grep -v '^ *+' conftest.er1 >conftest.err 10990 rm -f conftest.er1 10991 cat conftest.err >&5 10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10993 (exit $ac_status); } && { 10994 test -z "$ac_c_werror_flag" || 10995 test ! -s conftest.err 10996 } && test -s conftest.$ac_objext; then 10997 cat >conftest.$ac_ext <<_ACEOF 10998/* confdefs.h. */ 10999_ACEOF 11000cat confdefs.h >>conftest.$ac_ext 11001cat >>conftest.$ac_ext <<_ACEOF 11002/* end confdefs.h. */ 11003$ac_includes_default 11004int 11005main () 11006{ 11007if (sizeof ((int8_t))) 11008 return 0; 11009 ; 11010 return 0; 11011} 11012_ACEOF 11013rm -f conftest.$ac_objext 11014if { (ac_try="$ac_compile" 11015case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018esac 11019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11020$as_echo "$ac_try_echo") >&5 11021 (eval "$ac_compile") 2>conftest.er1 11022 ac_status=$? 11023 grep -v '^ *+' conftest.er1 >conftest.err 11024 rm -f conftest.er1 11025 cat conftest.err >&5 11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11027 (exit $ac_status); } && { 11028 test -z "$ac_c_werror_flag" || 11029 test ! -s conftest.err 11030 } && test -s conftest.$ac_objext; then 11031 : 11032else 11033 $as_echo "$as_me: failed program was:" >&5 11034sed 's/^/| /' conftest.$ac_ext >&5 11035 11036 ac_cv_type_int8_t=yes 11037fi 11038 11039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11040else 11041 $as_echo "$as_me: failed program was:" >&5 11042sed 's/^/| /' conftest.$ac_ext >&5 11043 11044 11045fi 11046 11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11048fi 11049{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11050$as_echo "$ac_cv_type_int8_t" >&6; } 11051if test $ac_cv_type_int8_t = yes; then 11052 11053cat >>confdefs.h <<_ACEOF 11054#define HAVE_INT8_T 1 11055_ACEOF 11056 11057 11058fi 11059{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5 11060$as_echo_n "checking for int16_t... " >&6; } 11061if test "${ac_cv_type_int16_t+set}" = set; then 11062 $as_echo_n "(cached) " >&6 11063else 11064 ac_cv_type_int16_t=no 11065cat >conftest.$ac_ext <<_ACEOF 11066/* confdefs.h. */ 11067_ACEOF 11068cat confdefs.h >>conftest.$ac_ext 11069cat >>conftest.$ac_ext <<_ACEOF 11070/* end confdefs.h. */ 11071$ac_includes_default 11072int 11073main () 11074{ 11075if (sizeof (int16_t)) 11076 return 0; 11077 ; 11078 return 0; 11079} 11080_ACEOF 11081rm -f conftest.$ac_objext 11082if { (ac_try="$ac_compile" 11083case "(($ac_try" in 11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11085 *) ac_try_echo=$ac_try;; 11086esac 11087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11088$as_echo "$ac_try_echo") >&5 11089 (eval "$ac_compile") 2>conftest.er1 11090 ac_status=$? 11091 grep -v '^ *+' conftest.er1 >conftest.err 11092 rm -f conftest.er1 11093 cat conftest.err >&5 11094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11095 (exit $ac_status); } && { 11096 test -z "$ac_c_werror_flag" || 11097 test ! -s conftest.err 11098 } && test -s conftest.$ac_objext; then 11099 cat >conftest.$ac_ext <<_ACEOF 11100/* confdefs.h. */ 11101_ACEOF 11102cat confdefs.h >>conftest.$ac_ext 11103cat >>conftest.$ac_ext <<_ACEOF 11104/* end confdefs.h. */ 11105$ac_includes_default 11106int 11107main () 11108{ 11109if (sizeof ((int16_t))) 11110 return 0; 11111 ; 11112 return 0; 11113} 11114_ACEOF 11115rm -f conftest.$ac_objext 11116if { (ac_try="$ac_compile" 11117case "(($ac_try" in 11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11119 *) ac_try_echo=$ac_try;; 11120esac 11121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11122$as_echo "$ac_try_echo") >&5 11123 (eval "$ac_compile") 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && { 11130 test -z "$ac_c_werror_flag" || 11131 test ! -s conftest.err 11132 } && test -s conftest.$ac_objext; then 11133 : 11134else 11135 $as_echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 ac_cv_type_int16_t=yes 11139fi 11140 11141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11142else 11143 $as_echo "$as_me: failed program was:" >&5 11144sed 's/^/| /' conftest.$ac_ext >&5 11145 11146 11147fi 11148 11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11150fi 11151{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11152$as_echo "$ac_cv_type_int16_t" >&6; } 11153if test $ac_cv_type_int16_t = yes; then 11154 11155cat >>confdefs.h <<_ACEOF 11156#define HAVE_INT16_T 1 11157_ACEOF 11158 11159 11160fi 11161{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5 11162$as_echo_n "checking for int32_t... " >&6; } 11163if test "${ac_cv_type_int32_t+set}" = set; then 11164 $as_echo_n "(cached) " >&6 11165else 11166 ac_cv_type_int32_t=no 11167cat >conftest.$ac_ext <<_ACEOF 11168/* confdefs.h. */ 11169_ACEOF 11170cat confdefs.h >>conftest.$ac_ext 11171cat >>conftest.$ac_ext <<_ACEOF 11172/* end confdefs.h. */ 11173$ac_includes_default 11174int 11175main () 11176{ 11177if (sizeof (int32_t)) 11178 return 0; 11179 ; 11180 return 0; 11181} 11182_ACEOF 11183rm -f conftest.$ac_objext 11184if { (ac_try="$ac_compile" 11185case "(($ac_try" in 11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11187 *) ac_try_echo=$ac_try;; 11188esac 11189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11190$as_echo "$ac_try_echo") >&5 11191 (eval "$ac_compile") 2>conftest.er1 11192 ac_status=$? 11193 grep -v '^ *+' conftest.er1 >conftest.err 11194 rm -f conftest.er1 11195 cat conftest.err >&5 11196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11197 (exit $ac_status); } && { 11198 test -z "$ac_c_werror_flag" || 11199 test ! -s conftest.err 11200 } && test -s conftest.$ac_objext; then 11201 cat >conftest.$ac_ext <<_ACEOF 11202/* confdefs.h. */ 11203_ACEOF 11204cat confdefs.h >>conftest.$ac_ext 11205cat >>conftest.$ac_ext <<_ACEOF 11206/* end confdefs.h. */ 11207$ac_includes_default 11208int 11209main () 11210{ 11211if (sizeof ((int32_t))) 11212 return 0; 11213 ; 11214 return 0; 11215} 11216_ACEOF 11217rm -f conftest.$ac_objext 11218if { (ac_try="$ac_compile" 11219case "(($ac_try" in 11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11221 *) ac_try_echo=$ac_try;; 11222esac 11223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11224$as_echo "$ac_try_echo") >&5 11225 (eval "$ac_compile") 2>conftest.er1 11226 ac_status=$? 11227 grep -v '^ *+' conftest.er1 >conftest.err 11228 rm -f conftest.er1 11229 cat conftest.err >&5 11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11231 (exit $ac_status); } && { 11232 test -z "$ac_c_werror_flag" || 11233 test ! -s conftest.err 11234 } && test -s conftest.$ac_objext; then 11235 : 11236else 11237 $as_echo "$as_me: failed program was:" >&5 11238sed 's/^/| /' conftest.$ac_ext >&5 11239 11240 ac_cv_type_int32_t=yes 11241fi 11242 11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11244else 11245 $as_echo "$as_me: failed program was:" >&5 11246sed 's/^/| /' conftest.$ac_ext >&5 11247 11248 11249fi 11250 11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11252fi 11253{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11254$as_echo "$ac_cv_type_int32_t" >&6; } 11255if test $ac_cv_type_int32_t = yes; then 11256 11257cat >>confdefs.h <<_ACEOF 11258#define HAVE_INT32_T 1 11259_ACEOF 11260 11261 11262fi 11263{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5 11264$as_echo_n "checking for int64_t... " >&6; } 11265if test "${ac_cv_type_int64_t+set}" = set; then 11266 $as_echo_n "(cached) " >&6 11267else 11268 ac_cv_type_int64_t=no 11269cat >conftest.$ac_ext <<_ACEOF 11270/* confdefs.h. */ 11271_ACEOF 11272cat confdefs.h >>conftest.$ac_ext 11273cat >>conftest.$ac_ext <<_ACEOF 11274/* end confdefs.h. */ 11275$ac_includes_default 11276int 11277main () 11278{ 11279if (sizeof (int64_t)) 11280 return 0; 11281 ; 11282 return 0; 11283} 11284_ACEOF 11285rm -f conftest.$ac_objext 11286if { (ac_try="$ac_compile" 11287case "(($ac_try" in 11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11289 *) ac_try_echo=$ac_try;; 11290esac 11291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11292$as_echo "$ac_try_echo") >&5 11293 (eval "$ac_compile") 2>conftest.er1 11294 ac_status=$? 11295 grep -v '^ *+' conftest.er1 >conftest.err 11296 rm -f conftest.er1 11297 cat conftest.err >&5 11298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11299 (exit $ac_status); } && { 11300 test -z "$ac_c_werror_flag" || 11301 test ! -s conftest.err 11302 } && test -s conftest.$ac_objext; then 11303 cat >conftest.$ac_ext <<_ACEOF 11304/* confdefs.h. */ 11305_ACEOF 11306cat confdefs.h >>conftest.$ac_ext 11307cat >>conftest.$ac_ext <<_ACEOF 11308/* end confdefs.h. */ 11309$ac_includes_default 11310int 11311main () 11312{ 11313if (sizeof ((int64_t))) 11314 return 0; 11315 ; 11316 return 0; 11317} 11318_ACEOF 11319rm -f conftest.$ac_objext 11320if { (ac_try="$ac_compile" 11321case "(($ac_try" in 11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11323 *) ac_try_echo=$ac_try;; 11324esac 11325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11326$as_echo "$ac_try_echo") >&5 11327 (eval "$ac_compile") 2>conftest.er1 11328 ac_status=$? 11329 grep -v '^ *+' conftest.er1 >conftest.err 11330 rm -f conftest.er1 11331 cat conftest.err >&5 11332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11333 (exit $ac_status); } && { 11334 test -z "$ac_c_werror_flag" || 11335 test ! -s conftest.err 11336 } && test -s conftest.$ac_objext; then 11337 : 11338else 11339 $as_echo "$as_me: failed program was:" >&5 11340sed 's/^/| /' conftest.$ac_ext >&5 11341 11342 ac_cv_type_int64_t=yes 11343fi 11344 11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11346else 11347 $as_echo "$as_me: failed program was:" >&5 11348sed 's/^/| /' conftest.$ac_ext >&5 11349 11350 11351fi 11352 11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11354fi 11355{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11356$as_echo "$ac_cv_type_int64_t" >&6; } 11357if test $ac_cv_type_int64_t = yes; then 11358 11359cat >>confdefs.h <<_ACEOF 11360#define HAVE_INT64_T 1 11361_ACEOF 11362 11363 11364fi 11365{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 11366$as_echo_n "checking for intptr_t... " >&6; } 11367if test "${ac_cv_type_intptr_t+set}" = set; then 11368 $as_echo_n "(cached) " >&6 11369else 11370 ac_cv_type_intptr_t=no 11371cat >conftest.$ac_ext <<_ACEOF 11372/* confdefs.h. */ 11373_ACEOF 11374cat confdefs.h >>conftest.$ac_ext 11375cat >>conftest.$ac_ext <<_ACEOF 11376/* end confdefs.h. */ 11377$ac_includes_default 11378int 11379main () 11380{ 11381if (sizeof (intptr_t)) 11382 return 0; 11383 ; 11384 return 0; 11385} 11386_ACEOF 11387rm -f conftest.$ac_objext 11388if { (ac_try="$ac_compile" 11389case "(($ac_try" in 11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11391 *) ac_try_echo=$ac_try;; 11392esac 11393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11394$as_echo "$ac_try_echo") >&5 11395 (eval "$ac_compile") 2>conftest.er1 11396 ac_status=$? 11397 grep -v '^ *+' conftest.er1 >conftest.err 11398 rm -f conftest.er1 11399 cat conftest.err >&5 11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11401 (exit $ac_status); } && { 11402 test -z "$ac_c_werror_flag" || 11403 test ! -s conftest.err 11404 } && test -s conftest.$ac_objext; then 11405 cat >conftest.$ac_ext <<_ACEOF 11406/* confdefs.h. */ 11407_ACEOF 11408cat confdefs.h >>conftest.$ac_ext 11409cat >>conftest.$ac_ext <<_ACEOF 11410/* end confdefs.h. */ 11411$ac_includes_default 11412int 11413main () 11414{ 11415if (sizeof ((intptr_t))) 11416 return 0; 11417 ; 11418 return 0; 11419} 11420_ACEOF 11421rm -f conftest.$ac_objext 11422if { (ac_try="$ac_compile" 11423case "(($ac_try" in 11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11425 *) ac_try_echo=$ac_try;; 11426esac 11427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11428$as_echo "$ac_try_echo") >&5 11429 (eval "$ac_compile") 2>conftest.er1 11430 ac_status=$? 11431 grep -v '^ *+' conftest.er1 >conftest.err 11432 rm -f conftest.er1 11433 cat conftest.err >&5 11434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); } && { 11436 test -z "$ac_c_werror_flag" || 11437 test ! -s conftest.err 11438 } && test -s conftest.$ac_objext; then 11439 : 11440else 11441 $as_echo "$as_me: failed program was:" >&5 11442sed 's/^/| /' conftest.$ac_ext >&5 11443 11444 ac_cv_type_intptr_t=yes 11445fi 11446 11447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11448else 11449 $as_echo "$as_me: failed program was:" >&5 11450sed 's/^/| /' conftest.$ac_ext >&5 11451 11452 11453fi 11454 11455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11456fi 11457{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 11458$as_echo "$ac_cv_type_intptr_t" >&6; } 11459if test $ac_cv_type_intptr_t = yes; then 11460 11461cat >>confdefs.h <<_ACEOF 11462#define HAVE_INTPTR_T 1 11463_ACEOF 11464 11465 11466fi 11467{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 11468$as_echo_n "checking for uint8_t... " >&6; } 11469if test "${ac_cv_type_uint8_t+set}" = set; then 11470 $as_echo_n "(cached) " >&6 11471else 11472 ac_cv_type_uint8_t=no 11473cat >conftest.$ac_ext <<_ACEOF 11474/* confdefs.h. */ 11475_ACEOF 11476cat confdefs.h >>conftest.$ac_ext 11477cat >>conftest.$ac_ext <<_ACEOF 11478/* end confdefs.h. */ 11479$ac_includes_default 11480int 11481main () 11482{ 11483if (sizeof (uint8_t)) 11484 return 0; 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489rm -f conftest.$ac_objext 11490if { (ac_try="$ac_compile" 11491case "(($ac_try" in 11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11493 *) ac_try_echo=$ac_try;; 11494esac 11495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11496$as_echo "$ac_try_echo") >&5 11497 (eval "$ac_compile") 2>conftest.er1 11498 ac_status=$? 11499 grep -v '^ *+' conftest.er1 >conftest.err 11500 rm -f conftest.er1 11501 cat conftest.err >&5 11502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11503 (exit $ac_status); } && { 11504 test -z "$ac_c_werror_flag" || 11505 test ! -s conftest.err 11506 } && test -s conftest.$ac_objext; then 11507 cat >conftest.$ac_ext <<_ACEOF 11508/* confdefs.h. */ 11509_ACEOF 11510cat confdefs.h >>conftest.$ac_ext 11511cat >>conftest.$ac_ext <<_ACEOF 11512/* end confdefs.h. */ 11513$ac_includes_default 11514int 11515main () 11516{ 11517if (sizeof ((uint8_t))) 11518 return 0; 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523rm -f conftest.$ac_objext 11524if { (ac_try="$ac_compile" 11525case "(($ac_try" in 11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11527 *) ac_try_echo=$ac_try;; 11528esac 11529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11530$as_echo "$ac_try_echo") >&5 11531 (eval "$ac_compile") 2>conftest.er1 11532 ac_status=$? 11533 grep -v '^ *+' conftest.er1 >conftest.err 11534 rm -f conftest.er1 11535 cat conftest.err >&5 11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11537 (exit $ac_status); } && { 11538 test -z "$ac_c_werror_flag" || 11539 test ! -s conftest.err 11540 } && test -s conftest.$ac_objext; then 11541 : 11542else 11543 $as_echo "$as_me: failed program was:" >&5 11544sed 's/^/| /' conftest.$ac_ext >&5 11545 11546 ac_cv_type_uint8_t=yes 11547fi 11548 11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11550else 11551 $as_echo "$as_me: failed program was:" >&5 11552sed 's/^/| /' conftest.$ac_ext >&5 11553 11554 11555fi 11556 11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11558fi 11559{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11560$as_echo "$ac_cv_type_uint8_t" >&6; } 11561if test $ac_cv_type_uint8_t = yes; then 11562 11563cat >>confdefs.h <<_ACEOF 11564#define HAVE_UINT8_T 1 11565_ACEOF 11566 11567 11568fi 11569{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 11570$as_echo_n "checking for uint16_t... " >&6; } 11571if test "${ac_cv_type_uint16_t+set}" = set; then 11572 $as_echo_n "(cached) " >&6 11573else 11574 ac_cv_type_uint16_t=no 11575cat >conftest.$ac_ext <<_ACEOF 11576/* confdefs.h. */ 11577_ACEOF 11578cat confdefs.h >>conftest.$ac_ext 11579cat >>conftest.$ac_ext <<_ACEOF 11580/* end confdefs.h. */ 11581$ac_includes_default 11582int 11583main () 11584{ 11585if (sizeof (uint16_t)) 11586 return 0; 11587 ; 11588 return 0; 11589} 11590_ACEOF 11591rm -f conftest.$ac_objext 11592if { (ac_try="$ac_compile" 11593case "(($ac_try" in 11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11595 *) ac_try_echo=$ac_try;; 11596esac 11597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11598$as_echo "$ac_try_echo") >&5 11599 (eval "$ac_compile") 2>conftest.er1 11600 ac_status=$? 11601 grep -v '^ *+' conftest.er1 >conftest.err 11602 rm -f conftest.er1 11603 cat conftest.err >&5 11604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11605 (exit $ac_status); } && { 11606 test -z "$ac_c_werror_flag" || 11607 test ! -s conftest.err 11608 } && test -s conftest.$ac_objext; then 11609 cat >conftest.$ac_ext <<_ACEOF 11610/* confdefs.h. */ 11611_ACEOF 11612cat confdefs.h >>conftest.$ac_ext 11613cat >>conftest.$ac_ext <<_ACEOF 11614/* end confdefs.h. */ 11615$ac_includes_default 11616int 11617main () 11618{ 11619if (sizeof ((uint16_t))) 11620 return 0; 11621 ; 11622 return 0; 11623} 11624_ACEOF 11625rm -f conftest.$ac_objext 11626if { (ac_try="$ac_compile" 11627case "(($ac_try" in 11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11629 *) ac_try_echo=$ac_try;; 11630esac 11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11632$as_echo "$ac_try_echo") >&5 11633 (eval "$ac_compile") 2>conftest.er1 11634 ac_status=$? 11635 grep -v '^ *+' conftest.er1 >conftest.err 11636 rm -f conftest.er1 11637 cat conftest.err >&5 11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11639 (exit $ac_status); } && { 11640 test -z "$ac_c_werror_flag" || 11641 test ! -s conftest.err 11642 } && test -s conftest.$ac_objext; then 11643 : 11644else 11645 $as_echo "$as_me: failed program was:" >&5 11646sed 's/^/| /' conftest.$ac_ext >&5 11647 11648 ac_cv_type_uint16_t=yes 11649fi 11650 11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11652else 11653 $as_echo "$as_me: failed program was:" >&5 11654sed 's/^/| /' conftest.$ac_ext >&5 11655 11656 11657fi 11658 11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11660fi 11661{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11662$as_echo "$ac_cv_type_uint16_t" >&6; } 11663if test $ac_cv_type_uint16_t = yes; then 11664 11665cat >>confdefs.h <<_ACEOF 11666#define HAVE_UINT16_T 1 11667_ACEOF 11668 11669 11670fi 11671{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 11672$as_echo_n "checking for uint32_t... " >&6; } 11673if test "${ac_cv_type_uint32_t+set}" = set; then 11674 $as_echo_n "(cached) " >&6 11675else 11676 ac_cv_type_uint32_t=no 11677cat >conftest.$ac_ext <<_ACEOF 11678/* confdefs.h. */ 11679_ACEOF 11680cat confdefs.h >>conftest.$ac_ext 11681cat >>conftest.$ac_ext <<_ACEOF 11682/* end confdefs.h. */ 11683$ac_includes_default 11684int 11685main () 11686{ 11687if (sizeof (uint32_t)) 11688 return 0; 11689 ; 11690 return 0; 11691} 11692_ACEOF 11693rm -f conftest.$ac_objext 11694if { (ac_try="$ac_compile" 11695case "(($ac_try" in 11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11697 *) ac_try_echo=$ac_try;; 11698esac 11699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11700$as_echo "$ac_try_echo") >&5 11701 (eval "$ac_compile") 2>conftest.er1 11702 ac_status=$? 11703 grep -v '^ *+' conftest.er1 >conftest.err 11704 rm -f conftest.er1 11705 cat conftest.err >&5 11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11707 (exit $ac_status); } && { 11708 test -z "$ac_c_werror_flag" || 11709 test ! -s conftest.err 11710 } && test -s conftest.$ac_objext; then 11711 cat >conftest.$ac_ext <<_ACEOF 11712/* confdefs.h. */ 11713_ACEOF 11714cat confdefs.h >>conftest.$ac_ext 11715cat >>conftest.$ac_ext <<_ACEOF 11716/* end confdefs.h. */ 11717$ac_includes_default 11718int 11719main () 11720{ 11721if (sizeof ((uint32_t))) 11722 return 0; 11723 ; 11724 return 0; 11725} 11726_ACEOF 11727rm -f conftest.$ac_objext 11728if { (ac_try="$ac_compile" 11729case "(($ac_try" in 11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11731 *) ac_try_echo=$ac_try;; 11732esac 11733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11734$as_echo "$ac_try_echo") >&5 11735 (eval "$ac_compile") 2>conftest.er1 11736 ac_status=$? 11737 grep -v '^ *+' conftest.er1 >conftest.err 11738 rm -f conftest.er1 11739 cat conftest.err >&5 11740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11741 (exit $ac_status); } && { 11742 test -z "$ac_c_werror_flag" || 11743 test ! -s conftest.err 11744 } && test -s conftest.$ac_objext; then 11745 : 11746else 11747 $as_echo "$as_me: failed program was:" >&5 11748sed 's/^/| /' conftest.$ac_ext >&5 11749 11750 ac_cv_type_uint32_t=yes 11751fi 11752 11753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11754else 11755 $as_echo "$as_me: failed program was:" >&5 11756sed 's/^/| /' conftest.$ac_ext >&5 11757 11758 11759fi 11760 11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11762fi 11763{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11764$as_echo "$ac_cv_type_uint32_t" >&6; } 11765if test $ac_cv_type_uint32_t = yes; then 11766 11767cat >>confdefs.h <<_ACEOF 11768#define HAVE_UINT32_T 1 11769_ACEOF 11770 11771 11772fi 11773{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 11774$as_echo_n "checking for uint64_t... " >&6; } 11775if test "${ac_cv_type_uint64_t+set}" = set; then 11776 $as_echo_n "(cached) " >&6 11777else 11778 ac_cv_type_uint64_t=no 11779cat >conftest.$ac_ext <<_ACEOF 11780/* confdefs.h. */ 11781_ACEOF 11782cat confdefs.h >>conftest.$ac_ext 11783cat >>conftest.$ac_ext <<_ACEOF 11784/* end confdefs.h. */ 11785$ac_includes_default 11786int 11787main () 11788{ 11789if (sizeof (uint64_t)) 11790 return 0; 11791 ; 11792 return 0; 11793} 11794_ACEOF 11795rm -f conftest.$ac_objext 11796if { (ac_try="$ac_compile" 11797case "(($ac_try" in 11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11799 *) ac_try_echo=$ac_try;; 11800esac 11801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11802$as_echo "$ac_try_echo") >&5 11803 (eval "$ac_compile") 2>conftest.er1 11804 ac_status=$? 11805 grep -v '^ *+' conftest.er1 >conftest.err 11806 rm -f conftest.er1 11807 cat conftest.err >&5 11808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11809 (exit $ac_status); } && { 11810 test -z "$ac_c_werror_flag" || 11811 test ! -s conftest.err 11812 } && test -s conftest.$ac_objext; then 11813 cat >conftest.$ac_ext <<_ACEOF 11814/* confdefs.h. */ 11815_ACEOF 11816cat confdefs.h >>conftest.$ac_ext 11817cat >>conftest.$ac_ext <<_ACEOF 11818/* end confdefs.h. */ 11819$ac_includes_default 11820int 11821main () 11822{ 11823if (sizeof ((uint64_t))) 11824 return 0; 11825 ; 11826 return 0; 11827} 11828_ACEOF 11829rm -f conftest.$ac_objext 11830if { (ac_try="$ac_compile" 11831case "(($ac_try" in 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11833 *) ac_try_echo=$ac_try;; 11834esac 11835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11836$as_echo "$ac_try_echo") >&5 11837 (eval "$ac_compile") 2>conftest.er1 11838 ac_status=$? 11839 grep -v '^ *+' conftest.er1 >conftest.err 11840 rm -f conftest.er1 11841 cat conftest.err >&5 11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 (exit $ac_status); } && { 11844 test -z "$ac_c_werror_flag" || 11845 test ! -s conftest.err 11846 } && test -s conftest.$ac_objext; then 11847 : 11848else 11849 $as_echo "$as_me: failed program was:" >&5 11850sed 's/^/| /' conftest.$ac_ext >&5 11851 11852 ac_cv_type_uint64_t=yes 11853fi 11854 11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11856else 11857 $as_echo "$as_me: failed program was:" >&5 11858sed 's/^/| /' conftest.$ac_ext >&5 11859 11860 11861fi 11862 11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11864fi 11865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 11866$as_echo "$ac_cv_type_uint64_t" >&6; } 11867if test $ac_cv_type_uint64_t = yes; then 11868 11869cat >>confdefs.h <<_ACEOF 11870#define HAVE_UINT64_T 1 11871_ACEOF 11872 11873 11874fi 11875{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 11876$as_echo_n "checking for uintptr_t... " >&6; } 11877if test "${ac_cv_type_uintptr_t+set}" = set; then 11878 $as_echo_n "(cached) " >&6 11879else 11880 ac_cv_type_uintptr_t=no 11881cat >conftest.$ac_ext <<_ACEOF 11882/* confdefs.h. */ 11883_ACEOF 11884cat confdefs.h >>conftest.$ac_ext 11885cat >>conftest.$ac_ext <<_ACEOF 11886/* end confdefs.h. */ 11887$ac_includes_default 11888int 11889main () 11890{ 11891if (sizeof (uintptr_t)) 11892 return 0; 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897rm -f conftest.$ac_objext 11898if { (ac_try="$ac_compile" 11899case "(($ac_try" in 11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11901 *) ac_try_echo=$ac_try;; 11902esac 11903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11904$as_echo "$ac_try_echo") >&5 11905 (eval "$ac_compile") 2>conftest.er1 11906 ac_status=$? 11907 grep -v '^ *+' conftest.er1 >conftest.err 11908 rm -f conftest.er1 11909 cat conftest.err >&5 11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11911 (exit $ac_status); } && { 11912 test -z "$ac_c_werror_flag" || 11913 test ! -s conftest.err 11914 } && test -s conftest.$ac_objext; then 11915 cat >conftest.$ac_ext <<_ACEOF 11916/* confdefs.h. */ 11917_ACEOF 11918cat confdefs.h >>conftest.$ac_ext 11919cat >>conftest.$ac_ext <<_ACEOF 11920/* end confdefs.h. */ 11921$ac_includes_default 11922int 11923main () 11924{ 11925if (sizeof ((uintptr_t))) 11926 return 0; 11927 ; 11928 return 0; 11929} 11930_ACEOF 11931rm -f conftest.$ac_objext 11932if { (ac_try="$ac_compile" 11933case "(($ac_try" in 11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11935 *) ac_try_echo=$ac_try;; 11936esac 11937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11938$as_echo "$ac_try_echo") >&5 11939 (eval "$ac_compile") 2>conftest.er1 11940 ac_status=$? 11941 grep -v '^ *+' conftest.er1 >conftest.err 11942 rm -f conftest.er1 11943 cat conftest.err >&5 11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11945 (exit $ac_status); } && { 11946 test -z "$ac_c_werror_flag" || 11947 test ! -s conftest.err 11948 } && test -s conftest.$ac_objext; then 11949 : 11950else 11951 $as_echo "$as_me: failed program was:" >&5 11952sed 's/^/| /' conftest.$ac_ext >&5 11953 11954 ac_cv_type_uintptr_t=yes 11955fi 11956 11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11958else 11959 $as_echo "$as_me: failed program was:" >&5 11960sed 's/^/| /' conftest.$ac_ext >&5 11961 11962 11963fi 11964 11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11966fi 11967{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 11968$as_echo "$ac_cv_type_uintptr_t" >&6; } 11969if test $ac_cv_type_uintptr_t = yes; then 11970 11971cat >>confdefs.h <<_ACEOF 11972#define HAVE_UINTPTR_T 1 11973_ACEOF 11974 11975 11976fi 11977 11978 11979######### 11980# Check for needed/wanted headers 11981 11982 11983 11984 11985 11986for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 11987do 11988as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11991$as_echo_n "checking for $ac_header... " >&6; } 11992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11993 $as_echo_n "(cached) " >&6 11994fi 11995ac_res=`eval 'as_val=${'$as_ac_Header'} 11996 $as_echo "$as_val"'` 11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11998$as_echo "$ac_res" >&6; } 11999else 12000 # Is the header compilable? 12001{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12002$as_echo_n "checking $ac_header usability... " >&6; } 12003cat >conftest.$ac_ext <<_ACEOF 12004/* confdefs.h. */ 12005_ACEOF 12006cat confdefs.h >>conftest.$ac_ext 12007cat >>conftest.$ac_ext <<_ACEOF 12008/* end confdefs.h. */ 12009$ac_includes_default 12010#include <$ac_header> 12011_ACEOF 12012rm -f conftest.$ac_objext 12013if { (ac_try="$ac_compile" 12014case "(($ac_try" in 12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12016 *) ac_try_echo=$ac_try;; 12017esac 12018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12019$as_echo "$ac_try_echo") >&5 12020 (eval "$ac_compile") 2>conftest.er1 12021 ac_status=$? 12022 grep -v '^ *+' conftest.er1 >conftest.err 12023 rm -f conftest.er1 12024 cat conftest.err >&5 12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12026 (exit $ac_status); } && { 12027 test -z "$ac_c_werror_flag" || 12028 test ! -s conftest.err 12029 } && test -s conftest.$ac_objext; then 12030 ac_header_compiler=yes 12031else 12032 $as_echo "$as_me: failed program was:" >&5 12033sed 's/^/| /' conftest.$ac_ext >&5 12034 12035 ac_header_compiler=no 12036fi 12037 12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12039{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12040$as_echo "$ac_header_compiler" >&6; } 12041 12042# Is the header present? 12043{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12044$as_echo_n "checking $ac_header presence... " >&6; } 12045cat >conftest.$ac_ext <<_ACEOF 12046/* confdefs.h. */ 12047_ACEOF 12048cat confdefs.h >>conftest.$ac_ext 12049cat >>conftest.$ac_ext <<_ACEOF 12050/* end confdefs.h. */ 12051#include <$ac_header> 12052_ACEOF 12053if { (ac_try="$ac_cpp conftest.$ac_ext" 12054case "(($ac_try" in 12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12056 *) ac_try_echo=$ac_try;; 12057esac 12058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12059$as_echo "$ac_try_echo") >&5 12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12061 ac_status=$? 12062 grep -v '^ *+' conftest.er1 >conftest.err 12063 rm -f conftest.er1 12064 cat conftest.err >&5 12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12066 (exit $ac_status); } >/dev/null && { 12067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12068 test ! -s conftest.err 12069 }; then 12070 ac_header_preproc=yes 12071else 12072 $as_echo "$as_me: failed program was:" >&5 12073sed 's/^/| /' conftest.$ac_ext >&5 12074 12075 ac_header_preproc=no 12076fi 12077 12078rm -f conftest.err conftest.$ac_ext 12079{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12080$as_echo "$ac_header_preproc" >&6; } 12081 12082# So? What about this header? 12083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12084 yes:no: ) 12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12086$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12088$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12089 ac_header_preproc=yes 12090 ;; 12091 no:yes:* ) 12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12093$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12095$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12097$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12099$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12101$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12103$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12104 12105 ;; 12106esac 12107{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12108$as_echo_n "checking for $ac_header... " >&6; } 12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12110 $as_echo_n "(cached) " >&6 12111else 12112 eval "$as_ac_Header=\$ac_header_preproc" 12113fi 12114ac_res=`eval 'as_val=${'$as_ac_Header'} 12115 $as_echo "$as_val"'` 12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12117$as_echo "$ac_res" >&6; } 12118 12119fi 12120if test `eval 'as_val=${'$as_ac_Header'} 12121 $as_echo "$as_val"'` = yes; then 12122 cat >>confdefs.h <<_ACEOF 12123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12124_ACEOF 12125 12126fi 12127 12128done 12129 12130 12131######### 12132# Figure out whether or not we have these functions 12133# 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime 12144do 12145as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12146{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12147$as_echo_n "checking for $ac_func... " >&6; } 12148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12149 $as_echo_n "(cached) " >&6 12150else 12151 cat >conftest.$ac_ext <<_ACEOF 12152/* confdefs.h. */ 12153_ACEOF 12154cat confdefs.h >>conftest.$ac_ext 12155cat >>conftest.$ac_ext <<_ACEOF 12156/* end confdefs.h. */ 12157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12159#define $ac_func innocuous_$ac_func 12160 12161/* System header to define __stub macros and hopefully few prototypes, 12162 which can conflict with char $ac_func (); below. 12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12164 <limits.h> exists even on freestanding compilers. */ 12165 12166#ifdef __STDC__ 12167# include <limits.h> 12168#else 12169# include <assert.h> 12170#endif 12171 12172#undef $ac_func 12173 12174/* Override any GCC internal prototype to avoid an error. 12175 Use char because int might match the return type of a GCC 12176 builtin and then its argument prototype would still apply. */ 12177#ifdef __cplusplus 12178extern "C" 12179#endif 12180char $ac_func (); 12181/* The GNU C library defines this for functions which it implements 12182 to always fail with ENOSYS. Some functions are actually named 12183 something starting with __ and the normal name is an alias. */ 12184#if defined __stub_$ac_func || defined __stub___$ac_func 12185choke me 12186#endif 12187 12188int 12189main () 12190{ 12191return $ac_func (); 12192 ; 12193 return 0; 12194} 12195_ACEOF 12196rm -f conftest.$ac_objext conftest$ac_exeext 12197if { (ac_try="$ac_link" 12198case "(($ac_try" in 12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12200 *) ac_try_echo=$ac_try;; 12201esac 12202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12203$as_echo "$ac_try_echo") >&5 12204 (eval "$ac_link") 2>conftest.er1 12205 ac_status=$? 12206 grep -v '^ *+' conftest.er1 >conftest.err 12207 rm -f conftest.er1 12208 cat conftest.err >&5 12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12210 (exit $ac_status); } && { 12211 test -z "$ac_c_werror_flag" || 12212 test ! -s conftest.err 12213 } && test -s conftest$ac_exeext && { 12214 test "$cross_compiling" = yes || 12215 $as_test_x conftest$ac_exeext 12216 }; then 12217 eval "$as_ac_var=yes" 12218else 12219 $as_echo "$as_me: failed program was:" >&5 12220sed 's/^/| /' conftest.$ac_ext >&5 12221 12222 eval "$as_ac_var=no" 12223fi 12224 12225rm -rf conftest.dSYM 12226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12227 conftest$ac_exeext conftest.$ac_ext 12228fi 12229ac_res=`eval 'as_val=${'$as_ac_var'} 12230 $as_echo "$as_val"'` 12231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12232$as_echo "$ac_res" >&6; } 12233if test `eval 'as_val=${'$as_ac_var'} 12234 $as_echo "$as_val"'` = yes; then 12235 cat >>confdefs.h <<_ACEOF 12236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12237_ACEOF 12238 12239fi 12240done 12241 12242 12243######### 12244# By default, we use the amalgamation (this may be changed below...) 12245# 12246USE_AMALGAMATION=1 12247 12248######### 12249# See whether we can run specific tclsh versions known to work well; 12250# if not, then we fall back to plain tclsh. 12251# TODO: try other versions before falling back? 12252# 12253for ac_prog in tclsh8.6 tclsh8.5 tclsh 12254do 12255 # Extract the first word of "$ac_prog", so it can be a program name with args. 12256set dummy $ac_prog; ac_word=$2 12257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12258$as_echo_n "checking for $ac_word... " >&6; } 12259if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then 12260 $as_echo_n "(cached) " >&6 12261else 12262 if test -n "$TCLSH_CMD"; then 12263 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 12264else 12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12266for as_dir in $PATH 12267do 12268 IFS=$as_save_IFS 12269 test -z "$as_dir" && as_dir=. 12270 for ac_exec_ext in '' $ac_executable_extensions; do 12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12272 ac_cv_prog_TCLSH_CMD="$ac_prog" 12273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12274 break 2 12275 fi 12276done 12277done 12278IFS=$as_save_IFS 12279 12280fi 12281fi 12282TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 12283if test -n "$TCLSH_CMD"; then 12284 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 12285$as_echo "$TCLSH_CMD" >&6; } 12286else 12287 { $as_echo "$as_me:$LINENO: result: no" >&5 12288$as_echo "no" >&6; } 12289fi 12290 12291 12292 test -n "$TCLSH_CMD" && break 12293done 12294test -n "$TCLSH_CMD" || TCLSH_CMD="none" 12295 12296if test "$TCLSH_CMD" = "none"; then 12297 # If we can't find a local tclsh, then building the amalgamation will fail. 12298 # We act as though --disable-amalgamation has been used. 12299 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 12300 USE_AMALGAMATION=0 12301 TCLSH_CMD="tclsh" 12302fi 12303 12304 12305 12306if test "x${TCLLIBDIR+set}" != "xset" ; then 12307 TCLLIBDIR='$(libdir)' 12308 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 12309 TCLLIBDIR=$i 12310 break 12311 done 12312 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 12313fi 12314 12315 12316######### 12317# Set up an appropriate program prefix 12318# 12319if test "$program_prefix" = "NONE"; then 12320 program_prefix="" 12321fi 12322 12323 12324VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 12325{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5 12326$as_echo "$as_me: Version set to $VERSION" >&6;} 12327 12328RELEASE=`cat $srcdir/VERSION` 12329{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5 12330$as_echo "$as_me: Release set to $RELEASE" >&6;} 12331 12332VERSION_NUMBER=`cat $srcdir/VERSION \ 12333 | sed 's/[^0-9]/ /g' \ 12334 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 12335{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5 12336$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} 12337 12338 12339######### 12340# Locate a compiler for the build machine. This compiler should 12341# generate command-line programs that run on the build machine. 12342# 12343if test x"$cross_compiling" = xno; then 12344 BUILD_CC=$CC 12345 BUILD_CFLAGS=$CFLAGS 12346else 12347 if test "${BUILD_CC+set}" != set; then 12348 for ac_prog in gcc cc cl 12349do 12350 # Extract the first word of "$ac_prog", so it can be a program name with args. 12351set dummy $ac_prog; ac_word=$2 12352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12353$as_echo_n "checking for $ac_word... " >&6; } 12354if test "${ac_cv_prog_BUILD_CC+set}" = set; then 12355 $as_echo_n "(cached) " >&6 12356else 12357 if test -n "$BUILD_CC"; then 12358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 12359else 12360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12361for as_dir in $PATH 12362do 12363 IFS=$as_save_IFS 12364 test -z "$as_dir" && as_dir=. 12365 for ac_exec_ext in '' $ac_executable_extensions; do 12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12367 ac_cv_prog_BUILD_CC="$ac_prog" 12368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12369 break 2 12370 fi 12371done 12372done 12373IFS=$as_save_IFS 12374 12375fi 12376fi 12377BUILD_CC=$ac_cv_prog_BUILD_CC 12378if test -n "$BUILD_CC"; then 12379 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 12380$as_echo "$BUILD_CC" >&6; } 12381else 12382 { $as_echo "$as_me:$LINENO: result: no" >&5 12383$as_echo "no" >&6; } 12384fi 12385 12386 12387 test -n "$BUILD_CC" && break 12388done 12389 12390 fi 12391 if test "${BUILD_CFLAGS+set}" != set; then 12392 BUILD_CFLAGS="-g" 12393 fi 12394fi 12395 12396 12397########## 12398# Do we want to support multithreaded use of sqlite 12399# 12400# Check whether --enable-threadsafe was given. 12401if test "${enable_threadsafe+set}" = set; then 12402 enableval=$enable_threadsafe; 12403else 12404 enable_threadsafe=yes 12405fi 12406 12407{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 12408$as_echo_n "checking whether to support threadsafe operation... " >&6; } 12409if test "$enable_threadsafe" = "no"; then 12410 SQLITE_THREADSAFE=0 12411 { $as_echo "$as_me:$LINENO: result: no" >&5 12412$as_echo "no" >&6; } 12413else 12414 SQLITE_THREADSAFE=1 12415 { $as_echo "$as_me:$LINENO: result: yes" >&5 12416$as_echo "yes" >&6; } 12417fi 12418 12419 12420if test "$SQLITE_THREADSAFE" = "1"; then 12421 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 12422$as_echo_n "checking for library containing pthread_create... " >&6; } 12423if test "${ac_cv_search_pthread_create+set}" = set; then 12424 $as_echo_n "(cached) " >&6 12425else 12426 ac_func_search_save_LIBS=$LIBS 12427cat >conftest.$ac_ext <<_ACEOF 12428/* confdefs.h. */ 12429_ACEOF 12430cat confdefs.h >>conftest.$ac_ext 12431cat >>conftest.$ac_ext <<_ACEOF 12432/* end confdefs.h. */ 12433 12434/* Override any GCC internal prototype to avoid an error. 12435 Use char because int might match the return type of a GCC 12436 builtin and then its argument prototype would still apply. */ 12437#ifdef __cplusplus 12438extern "C" 12439#endif 12440char pthread_create (); 12441int 12442main () 12443{ 12444return pthread_create (); 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449for ac_lib in '' pthread; do 12450 if test -z "$ac_lib"; then 12451 ac_res="none required" 12452 else 12453 ac_res=-l$ac_lib 12454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12455 fi 12456 rm -f conftest.$ac_objext conftest$ac_exeext 12457if { (ac_try="$ac_link" 12458case "(($ac_try" in 12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12460 *) ac_try_echo=$ac_try;; 12461esac 12462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12463$as_echo "$ac_try_echo") >&5 12464 (eval "$ac_link") 2>conftest.er1 12465 ac_status=$? 12466 grep -v '^ *+' conftest.er1 >conftest.err 12467 rm -f conftest.er1 12468 cat conftest.err >&5 12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12470 (exit $ac_status); } && { 12471 test -z "$ac_c_werror_flag" || 12472 test ! -s conftest.err 12473 } && test -s conftest$ac_exeext && { 12474 test "$cross_compiling" = yes || 12475 $as_test_x conftest$ac_exeext 12476 }; then 12477 ac_cv_search_pthread_create=$ac_res 12478else 12479 $as_echo "$as_me: failed program was:" >&5 12480sed 's/^/| /' conftest.$ac_ext >&5 12481 12482 12483fi 12484 12485rm -rf conftest.dSYM 12486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12487 conftest$ac_exeext 12488 if test "${ac_cv_search_pthread_create+set}" = set; then 12489 break 12490fi 12491done 12492if test "${ac_cv_search_pthread_create+set}" = set; then 12493 : 12494else 12495 ac_cv_search_pthread_create=no 12496fi 12497rm conftest.$ac_ext 12498LIBS=$ac_func_search_save_LIBS 12499fi 12500{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 12501$as_echo "$ac_cv_search_pthread_create" >&6; } 12502ac_res=$ac_cv_search_pthread_create 12503if test "$ac_res" != no; then 12504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12505 12506fi 12507 12508fi 12509 12510########## 12511# Do we want to support release 12512# 12513# Check whether --enable-releasemode was given. 12514if test "${enable_releasemode+set}" = set; then 12515 enableval=$enable_releasemode; 12516else 12517 enable_releasemode=no 12518fi 12519 12520{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 12521$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 12522if test "$enable_releasemode" = "no"; then 12523 ALLOWRELEASE="" 12524 { $as_echo "$as_me:$LINENO: result: no" >&5 12525$as_echo "no" >&6; } 12526else 12527 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 12528 { $as_echo "$as_me:$LINENO: result: yes" >&5 12529$as_echo "yes" >&6; } 12530fi 12531 12532 12533########## 12534# Do we want temporary databases in memory 12535# 12536# Check whether --enable-tempstore was given. 12537if test "${enable_tempstore+set}" = set; then 12538 enableval=$enable_tempstore; 12539else 12540 enable_tempstore=no 12541fi 12542 12543{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 12544$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 12545case "$enable_tempstore" in 12546 never ) 12547 TEMP_STORE=0 12548 { $as_echo "$as_me:$LINENO: result: never" >&5 12549$as_echo "never" >&6; } 12550 ;; 12551 no ) 12552 TEMP_STORE=1 12553 { $as_echo "$as_me:$LINENO: result: no" >&5 12554$as_echo "no" >&6; } 12555 ;; 12556 yes ) 12557 TEMP_STORE=2 12558 { $as_echo "$as_me:$LINENO: result: yes" >&5 12559$as_echo "yes" >&6; } 12560 ;; 12561 always ) 12562 TEMP_STORE=3 12563 { $as_echo "$as_me:$LINENO: result: always" >&5 12564$as_echo "always" >&6; } 12565 ;; 12566 * ) 12567 TEMP_STORE=1 12568 { $as_echo "$as_me:$LINENO: result: no" >&5 12569$as_echo "no" >&6; } 12570 ;; 12571esac 12572 12573 12574 12575########### 12576# Lots of things are different if we are compiling for Windows using 12577# the CYGWIN environment. So check for that special case and handle 12578# things accordingly. 12579# 12580{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 12581$as_echo_n "checking if executables have the .exe suffix... " >&6; } 12582if test "$config_BUILD_EXEEXT" = ".exe"; then 12583 CYGWIN=yes 12584 { $as_echo "$as_me:$LINENO: result: yes" >&5 12585$as_echo "yes" >&6; } 12586else 12587 { $as_echo "$as_me:$LINENO: result: unknown" >&5 12588$as_echo "unknown" >&6; } 12589fi 12590if test "$CYGWIN" != "yes"; then 12591 { $as_echo "$as_me:$LINENO: checking host system type" >&5 12592$as_echo_n "checking host system type... " >&6; } 12593if test "${ac_cv_host+set}" = set; then 12594 $as_echo_n "(cached) " >&6 12595else 12596 if test "x$host_alias" = x; then 12597 ac_cv_host=$ac_cv_build 12598else 12599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 12600 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 12601$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 12602 { (exit 1); exit 1; }; } 12603fi 12604 12605fi 12606{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 12607$as_echo "$ac_cv_host" >&6; } 12608case $ac_cv_host in 12609*-*-*) ;; 12610*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 12611$as_echo "$as_me: error: invalid value of canonical host" >&2;} 12612 { (exit 1); exit 1; }; };; 12613esac 12614host=$ac_cv_host 12615ac_save_IFS=$IFS; IFS='-' 12616set x $ac_cv_host 12617shift 12618host_cpu=$1 12619host_vendor=$2 12620shift; shift 12621# Remember, the first character of IFS is used to create $*, 12622# except with old shells: 12623host_os=$* 12624IFS=$ac_save_IFS 12625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 12626 12627 12628case $host_os in 12629 *cygwin* ) CYGWIN=yes;; 12630 * ) CYGWIN=no;; 12631esac 12632 12633fi 12634if test "$CYGWIN" = "yes"; then 12635 BUILD_EXEEXT=.exe 12636else 12637 BUILD_EXEEXT=$EXEEXT 12638fi 12639if test x"$cross_compiling" = xno; then 12640 TARGET_EXEEXT=$BUILD_EXEEXT 12641else 12642 TARGET_EXEEXT=$config_TARGET_EXEEXT 12643fi 12644if test "$TARGET_EXEEXT" = ".exe"; then 12645 SQLITE_OS_UNIX=0 12646 SQLITE_OS_WIN=1 12647 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 12648else 12649 SQLITE_OS_UNIX=1 12650 SQLITE_OS_WIN=0 12651 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 12652fi 12653 12654 12655 12656 12657 12658 12659########## 12660# Figure out all the parameters needed to compile against Tcl. 12661# 12662# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 12663# macros in the in the tcl.m4 file of the standard TCL distribution. 12664# Those macros could not be used directly since we have to make some 12665# minor changes to accomodate systems that do not have TCL installed. 12666# 12667# Check whether --enable-tcl was given. 12668if test "${enable_tcl+set}" = set; then 12669 enableval=$enable_tcl; use_tcl=$enableval 12670else 12671 use_tcl=yes 12672fi 12673 12674if test "${use_tcl}" = "yes" ; then 12675 12676# Check whether --with-tcl was given. 12677if test "${with_tcl+set}" = set; then 12678 withval=$with_tcl; with_tclconfig=${withval} 12679fi 12680 12681 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 12682$as_echo_n "checking for Tcl configuration... " >&6; } 12683 if test "${ac_cv_c_tclconfig+set}" = set; then 12684 $as_echo_n "(cached) " >&6 12685else 12686 12687 # First check to see if --with-tcl was specified. 12688 if test x"${with_tclconfig}" != x ; then 12689 if test -f "${with_tclconfig}/tclConfig.sh" ; then 12690 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 12691 else 12692 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 12693$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 12694 { (exit 1); exit 1; }; } 12695 fi 12696 fi 12697 12698 # Start autosearch by asking tclsh 12699 if test x"${ac_cv_c_tclconfig}" = x ; then 12700 if test x"$cross_compiling" = xno; then 12701 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 12702 do 12703 if test -f "$i/tclConfig.sh" ; then 12704 ac_cv_c_tclconfig="$i" 12705 break 12706 fi 12707 done 12708 fi 12709 fi 12710 12711 # then check for a private Tcl installation 12712 if test x"${ac_cv_c_tclconfig}" = x ; then 12713 for i in \ 12714 ../tcl \ 12715 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12716 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 12717 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 12718 ../../tcl \ 12719 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12720 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 12721 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 12722 ../../../tcl \ 12723 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12724 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 12725 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 12726 do 12727 if test -f "$i/unix/tclConfig.sh" ; then 12728 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12729 break 12730 fi 12731 done 12732 fi 12733 12734 # check in a few common install locations 12735 if test x"${ac_cv_c_tclconfig}" = x ; then 12736 for i in \ 12737 `ls -d ${libdir} 2>/dev/null` \ 12738 `ls -d /usr/local/lib 2>/dev/null` \ 12739 `ls -d /usr/contrib/lib 2>/dev/null` \ 12740 `ls -d /usr/lib 2>/dev/null` 12741 do 12742 if test -f "$i/tclConfig.sh" ; then 12743 ac_cv_c_tclconfig=`(cd $i; pwd)` 12744 break 12745 fi 12746 done 12747 fi 12748 12749 # check in a few other private locations 12750 if test x"${ac_cv_c_tclconfig}" = x ; then 12751 for i in \ 12752 ${srcdir}/../tcl \ 12753 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12754 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 12755 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 12756 do 12757 if test -f "$i/unix/tclConfig.sh" ; then 12758 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12759 break 12760 fi 12761 done 12762 fi 12763 12764fi 12765 12766 12767 if test x"${ac_cv_c_tclconfig}" = x ; then 12768 use_tcl=no 12769 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 12770$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 12771 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 12772$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 12773 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 12774$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 12775 else 12776 TCL_BIN_DIR=${ac_cv_c_tclconfig} 12777 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 12778$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 12779 12780 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 12781$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 12782 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 12783 { $as_echo "$as_me:$LINENO: result: loading" >&5 12784$as_echo "loading" >&6; } 12785 . $TCL_BIN_DIR/tclConfig.sh 12786 else 12787 { $as_echo "$as_me:$LINENO: result: file not found" >&5 12788$as_echo "file not found" >&6; } 12789 fi 12790 12791 # 12792 # If the TCL_BIN_DIR is the build directory (not the install directory), 12793 # then set the common variable name to the value of the build variables. 12794 # For example, the variable TCL_LIB_SPEC will be set to the value 12795 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 12796 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 12797 # installed and uninstalled version of Tcl. 12798 # 12799 12800 if test -f $TCL_BIN_DIR/Makefile ; then 12801 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 12802 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 12803 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 12804 fi 12805 12806 # 12807 # eval is required to do the TCL_DBGX substitution 12808 # 12809 12810 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 12811 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 12812 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 12813 12814 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 12815 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 12816 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 fi 12831fi 12832if test "${use_tcl}" = "no" ; then 12833 HAVE_TCL="" 12834else 12835 HAVE_TCL=1 12836fi 12837 12838 12839########## 12840# Figure out what C libraries are required to compile programs 12841# that use "readline()" library. 12842# 12843TARGET_READLINE_LIBS="" 12844TARGET_READLINE_INC="" 12845TARGET_HAVE_READLINE=0 12846# Check whether --enable-readline was given. 12847if test "${enable_readline+set}" = set; then 12848 enableval=$enable_readline; with_readline=$enableval 12849else 12850 with_readline=auto 12851fi 12852 12853 12854if test x"$with_readline" != xno; then 12855 found="yes" 12856 12857 12858# Check whether --with-readline-lib was given. 12859if test "${with_readline_lib+set}" = set; then 12860 withval=$with_readline_lib; with_readline_lib=$withval 12861else 12862 with_readline_lib="auto" 12863fi 12864 12865 if test "x$with_readline_lib" = xauto; then 12866 save_LIBS="$LIBS" 12867 LIBS="" 12868 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 12869$as_echo_n "checking for library containing tgetent... " >&6; } 12870if test "${ac_cv_search_tgetent+set}" = set; then 12871 $as_echo_n "(cached) " >&6 12872else 12873 ac_func_search_save_LIBS=$LIBS 12874cat >conftest.$ac_ext <<_ACEOF 12875/* confdefs.h. */ 12876_ACEOF 12877cat confdefs.h >>conftest.$ac_ext 12878cat >>conftest.$ac_ext <<_ACEOF 12879/* end confdefs.h. */ 12880 12881/* Override any GCC internal prototype to avoid an error. 12882 Use char because int might match the return type of a GCC 12883 builtin and then its argument prototype would still apply. */ 12884#ifdef __cplusplus 12885extern "C" 12886#endif 12887char tgetent (); 12888int 12889main () 12890{ 12891return tgetent (); 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896for ac_lib in '' readline ncurses curses termcap; do 12897 if test -z "$ac_lib"; then 12898 ac_res="none required" 12899 else 12900 ac_res=-l$ac_lib 12901 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12902 fi 12903 rm -f conftest.$ac_objext conftest$ac_exeext 12904if { (ac_try="$ac_link" 12905case "(($ac_try" in 12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12907 *) ac_try_echo=$ac_try;; 12908esac 12909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12910$as_echo "$ac_try_echo") >&5 12911 (eval "$ac_link") 2>conftest.er1 12912 ac_status=$? 12913 grep -v '^ *+' conftest.er1 >conftest.err 12914 rm -f conftest.er1 12915 cat conftest.err >&5 12916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12917 (exit $ac_status); } && { 12918 test -z "$ac_c_werror_flag" || 12919 test ! -s conftest.err 12920 } && test -s conftest$ac_exeext && { 12921 test "$cross_compiling" = yes || 12922 $as_test_x conftest$ac_exeext 12923 }; then 12924 ac_cv_search_tgetent=$ac_res 12925else 12926 $as_echo "$as_me: failed program was:" >&5 12927sed 's/^/| /' conftest.$ac_ext >&5 12928 12929 12930fi 12931 12932rm -rf conftest.dSYM 12933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12934 conftest$ac_exeext 12935 if test "${ac_cv_search_tgetent+set}" = set; then 12936 break 12937fi 12938done 12939if test "${ac_cv_search_tgetent+set}" = set; then 12940 : 12941else 12942 ac_cv_search_tgetent=no 12943fi 12944rm conftest.$ac_ext 12945LIBS=$ac_func_search_save_LIBS 12946fi 12947{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 12948$as_echo "$ac_cv_search_tgetent" >&6; } 12949ac_res=$ac_cv_search_tgetent 12950if test "$ac_res" != no; then 12951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12952 term_LIBS="$LIBS" 12953else 12954 term_LIBS="" 12955fi 12956 12957 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 12958$as_echo_n "checking for readline in -lreadline... " >&6; } 12959if test "${ac_cv_lib_readline_readline+set}" = set; then 12960 $as_echo_n "(cached) " >&6 12961else 12962 ac_check_lib_save_LIBS=$LIBS 12963LIBS="-lreadline $LIBS" 12964cat >conftest.$ac_ext <<_ACEOF 12965/* confdefs.h. */ 12966_ACEOF 12967cat confdefs.h >>conftest.$ac_ext 12968cat >>conftest.$ac_ext <<_ACEOF 12969/* end confdefs.h. */ 12970 12971/* Override any GCC internal prototype to avoid an error. 12972 Use char because int might match the return type of a GCC 12973 builtin and then its argument prototype would still apply. */ 12974#ifdef __cplusplus 12975extern "C" 12976#endif 12977char readline (); 12978int 12979main () 12980{ 12981return readline (); 12982 ; 12983 return 0; 12984} 12985_ACEOF 12986rm -f conftest.$ac_objext conftest$ac_exeext 12987if { (ac_try="$ac_link" 12988case "(($ac_try" in 12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12990 *) ac_try_echo=$ac_try;; 12991esac 12992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12993$as_echo "$ac_try_echo") >&5 12994 (eval "$ac_link") 2>conftest.er1 12995 ac_status=$? 12996 grep -v '^ *+' conftest.er1 >conftest.err 12997 rm -f conftest.er1 12998 cat conftest.err >&5 12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13000 (exit $ac_status); } && { 13001 test -z "$ac_c_werror_flag" || 13002 test ! -s conftest.err 13003 } && test -s conftest$ac_exeext && { 13004 test "$cross_compiling" = yes || 13005 $as_test_x conftest$ac_exeext 13006 }; then 13007 ac_cv_lib_readline_readline=yes 13008else 13009 $as_echo "$as_me: failed program was:" >&5 13010sed 's/^/| /' conftest.$ac_ext >&5 13011 13012 ac_cv_lib_readline_readline=no 13013fi 13014 13015rm -rf conftest.dSYM 13016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13017 conftest$ac_exeext conftest.$ac_ext 13018LIBS=$ac_check_lib_save_LIBS 13019fi 13020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 13021$as_echo "$ac_cv_lib_readline_readline" >&6; } 13022if test $ac_cv_lib_readline_readline = yes; then 13023 TARGET_READLINE_LIBS="-lreadline" 13024else 13025 found="no" 13026fi 13027 13028 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 13029 LIBS="$save_LIBS" 13030 else 13031 TARGET_READLINE_LIBS="$with_readline_lib" 13032 fi 13033 13034 13035# Check whether --with-readline-inc was given. 13036if test "${with_readline_inc+set}" = set; then 13037 withval=$with_readline_inc; with_readline_inc=$withval 13038else 13039 with_readline_inc="auto" 13040fi 13041 13042 if test "x$with_readline_inc" = xauto; then 13043 if test "${ac_cv_header_readline_h+set}" = set; then 13044 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13045$as_echo_n "checking for readline.h... " >&6; } 13046if test "${ac_cv_header_readline_h+set}" = set; then 13047 $as_echo_n "(cached) " >&6 13048fi 13049{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13050$as_echo "$ac_cv_header_readline_h" >&6; } 13051else 13052 # Is the header compilable? 13053{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5 13054$as_echo_n "checking readline.h usability... " >&6; } 13055cat >conftest.$ac_ext <<_ACEOF 13056/* confdefs.h. */ 13057_ACEOF 13058cat confdefs.h >>conftest.$ac_ext 13059cat >>conftest.$ac_ext <<_ACEOF 13060/* end confdefs.h. */ 13061$ac_includes_default 13062#include <readline.h> 13063_ACEOF 13064rm -f conftest.$ac_objext 13065if { (ac_try="$ac_compile" 13066case "(($ac_try" in 13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13068 *) ac_try_echo=$ac_try;; 13069esac 13070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13071$as_echo "$ac_try_echo") >&5 13072 (eval "$ac_compile") 2>conftest.er1 13073 ac_status=$? 13074 grep -v '^ *+' conftest.er1 >conftest.err 13075 rm -f conftest.er1 13076 cat conftest.err >&5 13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13078 (exit $ac_status); } && { 13079 test -z "$ac_c_werror_flag" || 13080 test ! -s conftest.err 13081 } && test -s conftest.$ac_objext; then 13082 ac_header_compiler=yes 13083else 13084 $as_echo "$as_me: failed program was:" >&5 13085sed 's/^/| /' conftest.$ac_ext >&5 13086 13087 ac_header_compiler=no 13088fi 13089 13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13091{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13092$as_echo "$ac_header_compiler" >&6; } 13093 13094# Is the header present? 13095{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5 13096$as_echo_n "checking readline.h presence... " >&6; } 13097cat >conftest.$ac_ext <<_ACEOF 13098/* confdefs.h. */ 13099_ACEOF 13100cat confdefs.h >>conftest.$ac_ext 13101cat >>conftest.$ac_ext <<_ACEOF 13102/* end confdefs.h. */ 13103#include <readline.h> 13104_ACEOF 13105if { (ac_try="$ac_cpp conftest.$ac_ext" 13106case "(($ac_try" in 13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13108 *) ac_try_echo=$ac_try;; 13109esac 13110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13111$as_echo "$ac_try_echo") >&5 13112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13113 ac_status=$? 13114 grep -v '^ *+' conftest.er1 >conftest.err 13115 rm -f conftest.er1 13116 cat conftest.err >&5 13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13118 (exit $ac_status); } >/dev/null && { 13119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13120 test ! -s conftest.err 13121 }; then 13122 ac_header_preproc=yes 13123else 13124 $as_echo "$as_me: failed program was:" >&5 13125sed 's/^/| /' conftest.$ac_ext >&5 13126 13127 ac_header_preproc=no 13128fi 13129 13130rm -f conftest.err conftest.$ac_ext 13131{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13132$as_echo "$ac_header_preproc" >&6; } 13133 13134# So? What about this header? 13135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13136 yes:no: ) 13137 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 13138$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13139 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 13140$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 13141 ac_header_preproc=yes 13142 ;; 13143 no:yes:* ) 13144 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 13145$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 13146 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 13147$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 13148 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 13149$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 13150 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 13151$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 13152 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 13153$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 13154 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 13155$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 13156 13157 ;; 13158esac 13159{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13160$as_echo_n "checking for readline.h... " >&6; } 13161if test "${ac_cv_header_readline_h+set}" = set; then 13162 $as_echo_n "(cached) " >&6 13163else 13164 ac_cv_header_readline_h=$ac_header_preproc 13165fi 13166{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13167$as_echo "$ac_cv_header_readline_h" >&6; } 13168 13169fi 13170if test $ac_cv_header_readline_h = yes; then 13171 found="yes" 13172else 13173 13174 found="no" 13175 if test "$cross_compiling" != yes; then 13176 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 13177 for subdir in include include/readline; do 13178 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 13179{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 13180$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 13181if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13182 $as_echo_n "(cached) " >&6 13183else 13184 test "$cross_compiling" = yes && 13185 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13186$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13187 { (exit 1); exit 1; }; } 13188if test -r "$dir/$subdir/readline.h"; then 13189 eval "$as_ac_File=yes" 13190else 13191 eval "$as_ac_File=no" 13192fi 13193fi 13194ac_res=`eval 'as_val=${'$as_ac_File'} 13195 $as_echo "$as_val"'` 13196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13197$as_echo "$ac_res" >&6; } 13198if test `eval 'as_val=${'$as_ac_File'} 13199 $as_echo "$as_val"'` = yes; then 13200 found=yes 13201fi 13202 13203 if test "$found" = "yes"; then 13204 TARGET_READLINE_INC="-I$dir/$subdir" 13205 break 13206 fi 13207 done 13208 test "$found" = "yes" && break 13209 done 13210 fi 13211 13212fi 13213 13214 13215 else 13216 TARGET_READLINE_INC="$with_readline_inc" 13217 fi 13218 13219 if test x"$found" = xno; then 13220 TARGET_READLINE_LIBS="" 13221 TARGET_READLINE_INC="" 13222 TARGET_HAVE_READLINE=0 13223 else 13224 TARGET_HAVE_READLINE=1 13225 fi 13226fi 13227 13228 13229 13230 13231 13232########## 13233# Figure out what C libraries are required to compile programs 13234# that use "fdatasync()" function. 13235# 13236{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 13237$as_echo_n "checking for library containing fdatasync... " >&6; } 13238if test "${ac_cv_search_fdatasync+set}" = set; then 13239 $as_echo_n "(cached) " >&6 13240else 13241 ac_func_search_save_LIBS=$LIBS 13242cat >conftest.$ac_ext <<_ACEOF 13243/* confdefs.h. */ 13244_ACEOF 13245cat confdefs.h >>conftest.$ac_ext 13246cat >>conftest.$ac_ext <<_ACEOF 13247/* end confdefs.h. */ 13248 13249/* Override any GCC internal prototype to avoid an error. 13250 Use char because int might match the return type of a GCC 13251 builtin and then its argument prototype would still apply. */ 13252#ifdef __cplusplus 13253extern "C" 13254#endif 13255char fdatasync (); 13256int 13257main () 13258{ 13259return fdatasync (); 13260 ; 13261 return 0; 13262} 13263_ACEOF 13264for ac_lib in '' rt; do 13265 if test -z "$ac_lib"; then 13266 ac_res="none required" 13267 else 13268 ac_res=-l$ac_lib 13269 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13270 fi 13271 rm -f conftest.$ac_objext conftest$ac_exeext 13272if { (ac_try="$ac_link" 13273case "(($ac_try" in 13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13275 *) ac_try_echo=$ac_try;; 13276esac 13277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13278$as_echo "$ac_try_echo") >&5 13279 (eval "$ac_link") 2>conftest.er1 13280 ac_status=$? 13281 grep -v '^ *+' conftest.er1 >conftest.err 13282 rm -f conftest.er1 13283 cat conftest.err >&5 13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13285 (exit $ac_status); } && { 13286 test -z "$ac_c_werror_flag" || 13287 test ! -s conftest.err 13288 } && test -s conftest$ac_exeext && { 13289 test "$cross_compiling" = yes || 13290 $as_test_x conftest$ac_exeext 13291 }; then 13292 ac_cv_search_fdatasync=$ac_res 13293else 13294 $as_echo "$as_me: failed program was:" >&5 13295sed 's/^/| /' conftest.$ac_ext >&5 13296 13297 13298fi 13299 13300rm -rf conftest.dSYM 13301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13302 conftest$ac_exeext 13303 if test "${ac_cv_search_fdatasync+set}" = set; then 13304 break 13305fi 13306done 13307if test "${ac_cv_search_fdatasync+set}" = set; then 13308 : 13309else 13310 ac_cv_search_fdatasync=no 13311fi 13312rm conftest.$ac_ext 13313LIBS=$ac_func_search_save_LIBS 13314fi 13315{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 13316$as_echo "$ac_cv_search_fdatasync" >&6; } 13317ac_res=$ac_cv_search_fdatasync 13318if test "$ac_res" != no; then 13319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13320 13321fi 13322 13323 13324######### 13325# check for debug enabled 13326# Check whether --enable-debug was given. 13327if test "${enable_debug+set}" = set; then 13328 enableval=$enable_debug; use_debug=$enableval 13329else 13330 use_debug=no 13331fi 13332 13333if test "${use_debug}" = "yes" ; then 13334 TARGET_DEBUG="-DSQLITE_DEBUG=1" 13335else 13336 TARGET_DEBUG="-DNDEBUG" 13337fi 13338 13339 13340######### 13341# See whether we should use the amalgamation to build 13342# Check whether --enable-amalgamation was given. 13343if test "${enable_amalgamation+set}" = set; then 13344 enableval=$enable_amalgamation; use_amalgamation=$enableval 13345else 13346 use_amalgamation=yes 13347fi 13348 13349if test "${use_amalgamation}" != "yes" ; then 13350 USE_AMALGAMATION=0 13351fi 13352 13353 13354######### 13355# See whether we should allow loadable extensions 13356# Check whether --enable-load-extension was given. 13357if test "${enable_load_extension+set}" = set; then 13358 enableval=$enable_load_extension; use_loadextension=$enableval 13359else 13360 use_loadextension=yes 13361fi 13362 13363if test "${use_loadextension}" = "yes" ; then 13364 OPT_FEATURE_FLAGS="" 13365 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13366$as_echo_n "checking for library containing dlopen... " >&6; } 13367if test "${ac_cv_search_dlopen+set}" = set; then 13368 $as_echo_n "(cached) " >&6 13369else 13370 ac_func_search_save_LIBS=$LIBS 13371cat >conftest.$ac_ext <<_ACEOF 13372/* confdefs.h. */ 13373_ACEOF 13374cat confdefs.h >>conftest.$ac_ext 13375cat >>conftest.$ac_ext <<_ACEOF 13376/* end confdefs.h. */ 13377 13378/* Override any GCC internal prototype to avoid an error. 13379 Use char because int might match the return type of a GCC 13380 builtin and then its argument prototype would still apply. */ 13381#ifdef __cplusplus 13382extern "C" 13383#endif 13384char dlopen (); 13385int 13386main () 13387{ 13388return dlopen (); 13389 ; 13390 return 0; 13391} 13392_ACEOF 13393for ac_lib in '' dl; do 13394 if test -z "$ac_lib"; then 13395 ac_res="none required" 13396 else 13397 ac_res=-l$ac_lib 13398 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13399 fi 13400 rm -f conftest.$ac_objext conftest$ac_exeext 13401if { (ac_try="$ac_link" 13402case "(($ac_try" in 13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13404 *) ac_try_echo=$ac_try;; 13405esac 13406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13407$as_echo "$ac_try_echo") >&5 13408 (eval "$ac_link") 2>conftest.er1 13409 ac_status=$? 13410 grep -v '^ *+' conftest.er1 >conftest.err 13411 rm -f conftest.er1 13412 cat conftest.err >&5 13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13414 (exit $ac_status); } && { 13415 test -z "$ac_c_werror_flag" || 13416 test ! -s conftest.err 13417 } && test -s conftest$ac_exeext && { 13418 test "$cross_compiling" = yes || 13419 $as_test_x conftest$ac_exeext 13420 }; then 13421 ac_cv_search_dlopen=$ac_res 13422else 13423 $as_echo "$as_me: failed program was:" >&5 13424sed 's/^/| /' conftest.$ac_ext >&5 13425 13426 13427fi 13428 13429rm -rf conftest.dSYM 13430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13431 conftest$ac_exeext 13432 if test "${ac_cv_search_dlopen+set}" = set; then 13433 break 13434fi 13435done 13436if test "${ac_cv_search_dlopen+set}" = set; then 13437 : 13438else 13439 ac_cv_search_dlopen=no 13440fi 13441rm conftest.$ac_ext 13442LIBS=$ac_func_search_save_LIBS 13443fi 13444{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13445$as_echo "$ac_cv_search_dlopen" >&6; } 13446ac_res=$ac_cv_search_dlopen 13447if test "$ac_res" != no; then 13448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13449 13450fi 13451 13452else 13453 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 13454fi 13455 13456######### 13457# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter 13458for option in $CFLAGS $CPPFLAGS 13459do 13460 case $option in 13461 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13462 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13463 esac 13464done 13465 13466 13467 13468# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 13469ac_temp_CFLAGS="" 13470for option in $CFLAGS 13471do 13472 case $option in 13473 -DSQLITE_OMIT*) ;; 13474 -DSQLITE_ENABLE*) ;; 13475 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 13476 esac 13477done 13478CFLAGS=$ac_temp_CFLAGS 13479 13480 13481# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 13482ac_temp_CPPFLAGS="" 13483for option in $CPPFLAGS 13484do 13485 case $option in 13486 -DSQLITE_OMIT*) ;; 13487 -DSQLITE_ENABLE*) ;; 13488 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 13489 esac 13490done 13491CPPFLAGS=$ac_temp_CPPFLAGS 13492 13493 13494# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 13495ac_temp_BUILD_CFLAGS="" 13496for option in $BUILD_CFLAGS 13497do 13498 case $option in 13499 -DSQLITE_OMIT*) ;; 13500 -DSQLITE_ENABLE*) ;; 13501 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 13502 esac 13503done 13504BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 13505 13506 13507######### 13508# See whether we should use GCOV 13509# Check whether --enable-gcov was given. 13510if test "${enable_gcov+set}" = set; then 13511 enableval=$enable_gcov; use_gcov=$enableval 13512else 13513 use_gcov=no 13514fi 13515 13516if test "${use_gcov}" = "yes" ; then 13517 USE_GCOV=1 13518else 13519 USE_GCOV=0 13520fi 13521 13522 13523 13524######### 13525# Output the config header 13526ac_config_headers="$ac_config_headers config.h" 13527 13528 13529######### 13530# Generate the output files. 13531# 13532 13533ac_config_files="$ac_config_files Makefile sqlite3.pc" 13534 13535cat >confcache <<\_ACEOF 13536# This file is a shell script that caches the results of configure 13537# tests run on this system so they can be shared between configure 13538# scripts and configure runs, see configure's option --config-cache. 13539# It is not useful on other systems. If it contains results you don't 13540# want to keep, you may remove or edit it. 13541# 13542# config.status only pays attention to the cache file if you give it 13543# the --recheck option to rerun configure. 13544# 13545# `ac_cv_env_foo' variables (set or unset) will be overridden when 13546# loading this file, other *unset* `ac_cv_foo' will be assigned the 13547# following values. 13548 13549_ACEOF 13550 13551# The following way of writing the cache mishandles newlines in values, 13552# but we know of no workaround that is simple, portable, and efficient. 13553# So, we kill variables containing newlines. 13554# Ultrix sh set writes to stderr and can't be redirected directly, 13555# and sets the high bit in the cache file unless we assign to the vars. 13556( 13557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13558 eval ac_val=\$$ac_var 13559 case $ac_val in #( 13560 *${as_nl}*) 13561 case $ac_var in #( 13562 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13563$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13564 esac 13565 case $ac_var in #( 13566 _ | IFS | as_nl) ;; #( 13567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13568 *) $as_unset $ac_var ;; 13569 esac ;; 13570 esac 13571 done 13572 13573 (set) 2>&1 | 13574 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13575 *${as_nl}ac_space=\ *) 13576 # `set' does not quote correctly, so add quotes (double-quote 13577 # substitution turns \\\\ into \\, and sed turns \\ into \). 13578 sed -n \ 13579 "s/'/'\\\\''/g; 13580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13581 ;; #( 13582 *) 13583 # `set' quotes correctly as required by POSIX, so do not add quotes. 13584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13585 ;; 13586 esac | 13587 sort 13588) | 13589 sed ' 13590 /^ac_cv_env_/b end 13591 t clear 13592 :clear 13593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13594 t end 13595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13596 :end' >>confcache 13597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13598 if test -w "$cache_file"; then 13599 test "x$cache_file" != "x/dev/null" && 13600 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13601$as_echo "$as_me: updating cache $cache_file" >&6;} 13602 cat confcache >$cache_file 13603 else 13604 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13605$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13606 fi 13607fi 13608rm -f confcache 13609 13610test "x$prefix" = xNONE && prefix=$ac_default_prefix 13611# Let make expand exec_prefix. 13612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13613 13614DEFS=-DHAVE_CONFIG_H 13615 13616ac_libobjs= 13617ac_ltlibobjs= 13618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13619 # 1. Remove the extension, and $U if already installed. 13620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13623 # will be set to the directory where LIBOBJS objects are built. 13624 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13625 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13626done 13627LIBOBJS=$ac_libobjs 13628 13629LTLIBOBJS=$ac_ltlibobjs 13630 13631 13632 13633: ${CONFIG_STATUS=./config.status} 13634ac_write_fail=0 13635ac_clean_files_save=$ac_clean_files 13636ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13637{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13638$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13639cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13640#! $SHELL 13641# Generated by $as_me. 13642# Run this file to recreate the current configuration. 13643# Compiler output produced by configure, useful for debugging 13644# configure, is in config.log if it exists. 13645 13646debug=false 13647ac_cs_recheck=false 13648ac_cs_silent=false 13649SHELL=\${CONFIG_SHELL-$SHELL} 13650_ACEOF 13651 13652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13653## --------------------- ## 13654## M4sh Initialization. ## 13655## --------------------- ## 13656 13657# Be more Bourne compatible 13658DUALCASE=1; export DUALCASE # for MKS sh 13659if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13660 emulate sh 13661 NULLCMD=: 13662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13663 # is contrary to our usage. Disable this feature. 13664 alias -g '${1+"$@"}'='"$@"' 13665 setopt NO_GLOB_SUBST 13666else 13667 case `(set -o) 2>/dev/null` in 13668 *posix*) set -o posix ;; 13669esac 13670 13671fi 13672 13673 13674 13675 13676# PATH needs CR 13677# Avoid depending upon Character Ranges. 13678as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13680as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13681as_cr_digits='0123456789' 13682as_cr_alnum=$as_cr_Letters$as_cr_digits 13683 13684as_nl=' 13685' 13686export as_nl 13687# Printing a long string crashes Solaris 7 /usr/bin/printf. 13688as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13689as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13690as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13691if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13692 as_echo='printf %s\n' 13693 as_echo_n='printf %s' 13694else 13695 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13696 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13697 as_echo_n='/usr/ucb/echo -n' 13698 else 13699 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13700 as_echo_n_body='eval 13701 arg=$1; 13702 case $arg in 13703 *"$as_nl"*) 13704 expr "X$arg" : "X\\(.*\\)$as_nl"; 13705 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13706 esac; 13707 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13708 ' 13709 export as_echo_n_body 13710 as_echo_n='sh -c $as_echo_n_body as_echo' 13711 fi 13712 export as_echo_body 13713 as_echo='sh -c $as_echo_body as_echo' 13714fi 13715 13716# The user is always right. 13717if test "${PATH_SEPARATOR+set}" != set; then 13718 PATH_SEPARATOR=: 13719 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13720 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13721 PATH_SEPARATOR=';' 13722 } 13723fi 13724 13725# Support unset when possible. 13726if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13727 as_unset=unset 13728else 13729 as_unset=false 13730fi 13731 13732 13733# IFS 13734# We need space, tab and new line, in precisely that order. Quoting is 13735# there to prevent editors from complaining about space-tab. 13736# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13737# splitting by setting IFS to empty value.) 13738IFS=" "" $as_nl" 13739 13740# Find who we are. Look in the path if we contain no directory separator. 13741case $0 in 13742 *[\\/]* ) as_myself=$0 ;; 13743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13744for as_dir in $PATH 13745do 13746 IFS=$as_save_IFS 13747 test -z "$as_dir" && as_dir=. 13748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13749done 13750IFS=$as_save_IFS 13751 13752 ;; 13753esac 13754# We did not find ourselves, most probably we were run as `sh COMMAND' 13755# in which case we are not to be found in the path. 13756if test "x$as_myself" = x; then 13757 as_myself=$0 13758fi 13759if test ! -f "$as_myself"; then 13760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13761 { (exit 1); exit 1; } 13762fi 13763 13764# Work around bugs in pre-3.0 UWIN ksh. 13765for as_var in ENV MAIL MAILPATH 13766do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13767done 13768PS1='$ ' 13769PS2='> ' 13770PS4='+ ' 13771 13772# NLS nuisances. 13773LC_ALL=C 13774export LC_ALL 13775LANGUAGE=C 13776export LANGUAGE 13777 13778# Required to use basename. 13779if expr a : '\(a\)' >/dev/null 2>&1 && 13780 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13781 as_expr=expr 13782else 13783 as_expr=false 13784fi 13785 13786if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13787 as_basename=basename 13788else 13789 as_basename=false 13790fi 13791 13792 13793# Name of the executable. 13794as_me=`$as_basename -- "$0" || 13795$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13796 X"$0" : 'X\(//\)$' \| \ 13797 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13798$as_echo X/"$0" | 13799 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13800 s//\1/ 13801 q 13802 } 13803 /^X\/\(\/\/\)$/{ 13804 s//\1/ 13805 q 13806 } 13807 /^X\/\(\/\).*/{ 13808 s//\1/ 13809 q 13810 } 13811 s/.*/./; q'` 13812 13813# CDPATH. 13814$as_unset CDPATH 13815 13816 13817 13818 as_lineno_1=$LINENO 13819 as_lineno_2=$LINENO 13820 test "x$as_lineno_1" != "x$as_lineno_2" && 13821 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13822 13823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13824 # uniformly replaced by the line number. The first 'sed' inserts a 13825 # line-number line after each line using $LINENO; the second 'sed' 13826 # does the real work. The second script uses 'N' to pair each 13827 # line-number line with the line containing $LINENO, and appends 13828 # trailing '-' during substitution so that $LINENO is not a special 13829 # case at line end. 13830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13831 # scripts with optimization help from Paolo Bonzini. Blame Lee 13832 # E. McMahon (1931-1989) for sed's syntax. :-) 13833 sed -n ' 13834 p 13835 /[$]LINENO/= 13836 ' <$as_myself | 13837 sed ' 13838 s/[$]LINENO.*/&-/ 13839 t lineno 13840 b 13841 :lineno 13842 N 13843 :loop 13844 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13845 t loop 13846 s/-\n.*// 13847 ' >$as_me.lineno && 13848 chmod +x "$as_me.lineno" || 13849 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13850 { (exit 1); exit 1; }; } 13851 13852 # Don't try to exec as it changes $[0], causing all sort of problems 13853 # (the dirname of $[0] is not the place where we might find the 13854 # original and so on. Autoconf is especially sensitive to this). 13855 . "./$as_me.lineno" 13856 # Exit status is that of the last command. 13857 exit 13858} 13859 13860 13861if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13862 as_dirname=dirname 13863else 13864 as_dirname=false 13865fi 13866 13867ECHO_C= ECHO_N= ECHO_T= 13868case `echo -n x` in 13869-n*) 13870 case `echo 'x\c'` in 13871 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13872 *) ECHO_C='\c';; 13873 esac;; 13874*) 13875 ECHO_N='-n';; 13876esac 13877if expr a : '\(a\)' >/dev/null 2>&1 && 13878 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13879 as_expr=expr 13880else 13881 as_expr=false 13882fi 13883 13884rm -f conf$$ conf$$.exe conf$$.file 13885if test -d conf$$.dir; then 13886 rm -f conf$$.dir/conf$$.file 13887else 13888 rm -f conf$$.dir 13889 mkdir conf$$.dir 2>/dev/null 13890fi 13891if (echo >conf$$.file) 2>/dev/null; then 13892 if ln -s conf$$.file conf$$ 2>/dev/null; then 13893 as_ln_s='ln -s' 13894 # ... but there are two gotchas: 13895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13897 # In both cases, we have to default to `cp -p'. 13898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13899 as_ln_s='cp -p' 13900 elif ln conf$$.file conf$$ 2>/dev/null; then 13901 as_ln_s=ln 13902 else 13903 as_ln_s='cp -p' 13904 fi 13905else 13906 as_ln_s='cp -p' 13907fi 13908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13909rmdir conf$$.dir 2>/dev/null 13910 13911if mkdir -p . 2>/dev/null; then 13912 as_mkdir_p=: 13913else 13914 test -d ./-p && rmdir ./-p 13915 as_mkdir_p=false 13916fi 13917 13918if test -x / >/dev/null 2>&1; then 13919 as_test_x='test -x' 13920else 13921 if ls -dL / >/dev/null 2>&1; then 13922 as_ls_L_option=L 13923 else 13924 as_ls_L_option= 13925 fi 13926 as_test_x=' 13927 eval sh -c '\'' 13928 if test -d "$1"; then 13929 test -d "$1/."; 13930 else 13931 case $1 in 13932 -*)set "./$1";; 13933 esac; 13934 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13935 ???[sx]*):;;*)false;;esac;fi 13936 '\'' sh 13937 ' 13938fi 13939as_executable_p=$as_test_x 13940 13941# Sed expression to map a string onto a valid CPP name. 13942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13943 13944# Sed expression to map a string onto a valid variable name. 13945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13946 13947 13948exec 6>&1 13949 13950# Save the log message, to keep $[0] and so on meaningful, and to 13951# report actual input values of CONFIG_FILES etc. instead of their 13952# values after options handling. 13953ac_log=" 13954This file was extended by sqlite $as_me 3.8.9, which was 13955generated by GNU Autoconf 2.62. Invocation command line was 13956 13957 CONFIG_FILES = $CONFIG_FILES 13958 CONFIG_HEADERS = $CONFIG_HEADERS 13959 CONFIG_LINKS = $CONFIG_LINKS 13960 CONFIG_COMMANDS = $CONFIG_COMMANDS 13961 $ $0 $@ 13962 13963on `(hostname || uname -n) 2>/dev/null | sed 1q` 13964" 13965 13966_ACEOF 13967 13968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13969# Files that config.status was made for. 13970config_files="$ac_config_files" 13971config_headers="$ac_config_headers" 13972config_commands="$ac_config_commands" 13973 13974_ACEOF 13975 13976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13977ac_cs_usage="\ 13978\`$as_me' instantiates files from templates according to the 13979current configuration. 13980 13981Usage: $0 [OPTIONS] [FILE]... 13982 13983 -h, --help print this help, then exit 13984 -V, --version print version number and configuration settings, then exit 13985 -q, --quiet do not print progress messages 13986 -d, --debug don't remove temporary files 13987 --recheck update $as_me by reconfiguring in the same conditions 13988 --file=FILE[:TEMPLATE] 13989 instantiate the configuration file FILE 13990 --header=FILE[:TEMPLATE] 13991 instantiate the configuration header FILE 13992 13993Configuration files: 13994$config_files 13995 13996Configuration headers: 13997$config_headers 13998 13999Configuration commands: 14000$config_commands 14001 14002Report bugs to <[email protected]>." 14003 14004_ACEOF 14005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14006ac_cs_version="\\ 14007sqlite config.status 3.8.9 14008configured by $0, generated by GNU Autoconf 2.62, 14009 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14010 14011Copyright (C) 2008 Free Software Foundation, Inc. 14012This config.status script is free software; the Free Software Foundation 14013gives unlimited permission to copy, distribute and modify it." 14014 14015ac_pwd='$ac_pwd' 14016srcdir='$srcdir' 14017INSTALL='$INSTALL' 14018AWK='$AWK' 14019test -n "\$AWK" || AWK=awk 14020_ACEOF 14021 14022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14023# The default lists apply if the user does not specify any file. 14024ac_need_defaults=: 14025while test $# != 0 14026do 14027 case $1 in 14028 --*=*) 14029 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14030 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14031 ac_shift=: 14032 ;; 14033 *) 14034 ac_option=$1 14035 ac_optarg=$2 14036 ac_shift=shift 14037 ;; 14038 esac 14039 14040 case $ac_option in 14041 # Handling of the options. 14042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14043 ac_cs_recheck=: ;; 14044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14045 $as_echo "$ac_cs_version"; exit ;; 14046 --debug | --debu | --deb | --de | --d | -d ) 14047 debug=: ;; 14048 --file | --fil | --fi | --f ) 14049 $ac_shift 14050 case $ac_optarg in 14051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14052 esac 14053 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14054 ac_need_defaults=false;; 14055 --header | --heade | --head | --hea ) 14056 $ac_shift 14057 case $ac_optarg in 14058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14059 esac 14060 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14061 ac_need_defaults=false;; 14062 --he | --h) 14063 # Conflict between --help and --header 14064 { $as_echo "$as_me: error: ambiguous option: $1 14065Try \`$0 --help' for more information." >&2 14066 { (exit 1); exit 1; }; };; 14067 --help | --hel | -h ) 14068 $as_echo "$ac_cs_usage"; exit ;; 14069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14070 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14071 ac_cs_silent=: ;; 14072 14073 # This is an error. 14074 -*) { $as_echo "$as_me: error: unrecognized option: $1 14075Try \`$0 --help' for more information." >&2 14076 { (exit 1); exit 1; }; } ;; 14077 14078 *) ac_config_targets="$ac_config_targets $1" 14079 ac_need_defaults=false ;; 14080 14081 esac 14082 shift 14083done 14084 14085ac_configure_extra_args= 14086 14087if $ac_cs_silent; then 14088 exec 6>/dev/null 14089 ac_configure_extra_args="$ac_configure_extra_args --silent" 14090fi 14091 14092_ACEOF 14093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14094if \$ac_cs_recheck; then 14095 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14096 shift 14097 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14098 CONFIG_SHELL='$SHELL' 14099 export CONFIG_SHELL 14100 exec "\$@" 14101fi 14102 14103_ACEOF 14104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14105exec 5>>config.log 14106{ 14107 echo 14108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14109## Running $as_me. ## 14110_ASBOX 14111 $as_echo "$ac_log" 14112} >&5 14113 14114_ACEOF 14115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14116# 14117# INIT-COMMANDS 14118# 14119 14120 14121# The HP-UX ksh and POSIX shell print the target directory to stdout 14122# if CDPATH is set. 14123(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14124 14125sed_quote_subst='$sed_quote_subst' 14126double_quote_subst='$double_quote_subst' 14127delay_variable_subst='$delay_variable_subst' 14128macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14129macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14130enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14131enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14132pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14133enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14134host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14135host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14136host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14137build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14138build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14139build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14140SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14141Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14142GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14143EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14144FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14145LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14146NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14147LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14148max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14149ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14150exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14151lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14152lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14153lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14154reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14155reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14156OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14157deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14158file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14159AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14160AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14161STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14162RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14163old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14164old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14165old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14166CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14167CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14168compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14169GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14170lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14171lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14172lt_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"`' 14173lt_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"`' 14174objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14175SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14176ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14177MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14178lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14179lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14180lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14181lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14182lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14183need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14184DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14185NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14186LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14187OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14188OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14189libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14190shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14191extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14192archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14193enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14194export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14195whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14196compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14197old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14198old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14199archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14200archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14201module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14202module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14203with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14204allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14205no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14206hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14207hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14208hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14209hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14210hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14211hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14212hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14213hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14214inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14215link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14216fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14217always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14218export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14219exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14220include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14221prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14222file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14223variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14224need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14225need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14226version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14227runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14228shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14229shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14230libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14231library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14232soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14233postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14234postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14235finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14236finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14237hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14238sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14239sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14240hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14241enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14242enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14243enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14244old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14245striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14246 14247LTCC='$LTCC' 14248LTCFLAGS='$LTCFLAGS' 14249compiler='$compiler_DEFAULT' 14250 14251# Quote evaled strings. 14252for var in SED \ 14253GREP \ 14254EGREP \ 14255FGREP \ 14256LD \ 14257NM \ 14258LN_S \ 14259lt_SP2NL \ 14260lt_NL2SP \ 14261reload_flag \ 14262OBJDUMP \ 14263deplibs_check_method \ 14264file_magic_cmd \ 14265AR \ 14266AR_FLAGS \ 14267STRIP \ 14268RANLIB \ 14269CC \ 14270CFLAGS \ 14271compiler \ 14272lt_cv_sys_global_symbol_pipe \ 14273lt_cv_sys_global_symbol_to_cdecl \ 14274lt_cv_sys_global_symbol_to_c_name_address \ 14275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14276SHELL \ 14277ECHO \ 14278lt_prog_compiler_no_builtin_flag \ 14279lt_prog_compiler_wl \ 14280lt_prog_compiler_pic \ 14281lt_prog_compiler_static \ 14282lt_cv_prog_compiler_c_o \ 14283need_locks \ 14284DSYMUTIL \ 14285NMEDIT \ 14286LIPO \ 14287OTOOL \ 14288OTOOL64 \ 14289shrext_cmds \ 14290export_dynamic_flag_spec \ 14291whole_archive_flag_spec \ 14292compiler_needs_object \ 14293with_gnu_ld \ 14294allow_undefined_flag \ 14295no_undefined_flag \ 14296hardcode_libdir_flag_spec \ 14297hardcode_libdir_flag_spec_ld \ 14298hardcode_libdir_separator \ 14299fix_srcfile_path \ 14300exclude_expsyms \ 14301include_expsyms \ 14302file_list_spec \ 14303variables_saved_for_relink \ 14304libname_spec \ 14305library_names_spec \ 14306soname_spec \ 14307finish_eval \ 14308old_striplib \ 14309striplib; do 14310 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14311 *[\\\\\\\`\\"\\\$]*) 14312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14313 ;; 14314 *) 14315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14316 ;; 14317 esac 14318done 14319 14320# Double-quote double-evaled strings. 14321for var in reload_cmds \ 14322old_postinstall_cmds \ 14323old_postuninstall_cmds \ 14324old_archive_cmds \ 14325extract_expsyms_cmds \ 14326old_archive_from_new_cmds \ 14327old_archive_from_expsyms_cmds \ 14328archive_cmds \ 14329archive_expsym_cmds \ 14330module_cmds \ 14331module_expsym_cmds \ 14332export_symbols_cmds \ 14333prelink_cmds \ 14334postinstall_cmds \ 14335postuninstall_cmds \ 14336finish_cmds \ 14337sys_lib_search_path_spec \ 14338sys_lib_dlsearch_path_spec; do 14339 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14340 *[\\\\\\\`\\"\\\$]*) 14341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14342 ;; 14343 *) 14344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14345 ;; 14346 esac 14347done 14348 14349# Fix-up fallback echo if it was mangled by the above quoting rules. 14350case \$lt_ECHO in 14351*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14352 ;; 14353esac 14354 14355ac_aux_dir='$ac_aux_dir' 14356xsi_shell='$xsi_shell' 14357lt_shell_append='$lt_shell_append' 14358 14359# See if we are running on zsh, and set the options which allow our 14360# commands through without removal of \ escapes INIT. 14361if test -n "\${ZSH_VERSION+set}" ; then 14362 setopt NO_GLOB_SUBST 14363fi 14364 14365 14366 PACKAGE='$PACKAGE' 14367 VERSION='$VERSION' 14368 TIMESTAMP='$TIMESTAMP' 14369 RM='$RM' 14370 ofile='$ofile' 14371 14372 14373 14374 14375_ACEOF 14376 14377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14378 14379# Handling of arguments. 14380for ac_config_target in $ac_config_targets 14381do 14382 case $ac_config_target in 14383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14384 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14386 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 14387 14388 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14389$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14390 { (exit 1); exit 1; }; };; 14391 esac 14392done 14393 14394 14395# If the user did not use the arguments to specify the items to instantiate, 14396# then the envvar interface is used. Set only those that are not. 14397# We use the long form for the default assignment because of an extremely 14398# bizarre bug on SunOS 4.1.3. 14399if $ac_need_defaults; then 14400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14403fi 14404 14405# Have a temporary directory for convenience. Make it in the build tree 14406# simply because there is no reason against having it here, and in addition, 14407# creating and moving files from /tmp can sometimes cause problems. 14408# Hook for its removal unless debugging. 14409# Note that there is a small window in which the directory will not be cleaned: 14410# after its creation but before its name has been assigned to `$tmp'. 14411$debug || 14412{ 14413 tmp= 14414 trap 'exit_status=$? 14415 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14416' 0 14417 trap '{ (exit 1); exit 1; }' 1 2 13 15 14418} 14419# Create a (secure) tmp directory for tmp files. 14420 14421{ 14422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14423 test -n "$tmp" && test -d "$tmp" 14424} || 14425{ 14426 tmp=./conf$$-$RANDOM 14427 (umask 077 && mkdir "$tmp") 14428} || 14429{ 14430 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14431 { (exit 1); exit 1; } 14432} 14433 14434# Set up the scripts for CONFIG_FILES section. 14435# No need to generate them if there are no CONFIG_FILES. 14436# This happens for instance with `./config.status config.h'. 14437if test -n "$CONFIG_FILES"; then 14438 14439 14440ac_cr=' 14441' 14442ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14443if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14444 ac_cs_awk_cr='\\r' 14445else 14446 ac_cs_awk_cr=$ac_cr 14447fi 14448 14449echo 'BEGIN {' >"$tmp/subs1.awk" && 14450_ACEOF 14451 14452 14453{ 14454 echo "cat >conf$$subs.awk <<_ACEOF" && 14455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14456 echo "_ACEOF" 14457} >conf$$subs.sh || 14458 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14459$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14460 { (exit 1); exit 1; }; } 14461ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14462ac_delim='%!_!# ' 14463for ac_last_try in false false false false false :; do 14464 . ./conf$$subs.sh || 14465 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14466$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14467 { (exit 1); exit 1; }; } 14468 14469 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14470 break 14471 elif $ac_last_try; then 14472 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14473$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14474 { (exit 1); exit 1; }; } 14475 else 14476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14477 fi 14478done 14479rm -f conf$$subs.sh 14480 14481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14482cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14483_ACEOF 14484sed -n ' 14485h 14486s/^/S["/; s/!.*/"]=/ 14487p 14488g 14489s/^[^!]*!// 14490:repl 14491t repl 14492s/'"$ac_delim"'$// 14493t delim 14494:nl 14495h 14496s/\(.\{148\}\).*/\1/ 14497t more1 14498s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14499p 14500n 14501b repl 14502:more1 14503s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14504p 14505g 14506s/.\{148\}// 14507t nl 14508:delim 14509h 14510s/\(.\{148\}\).*/\1/ 14511t more2 14512s/["\\]/\\&/g; s/^/"/; s/$/"/ 14513p 14514b 14515:more2 14516s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14517p 14518g 14519s/.\{148\}// 14520t delim 14521' <conf$$subs.awk | sed ' 14522/^[^""]/{ 14523 N 14524 s/\n// 14525} 14526' >>$CONFIG_STATUS || ac_write_fail=1 14527rm -f conf$$subs.awk 14528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14529_ACAWK 14530cat >>"\$tmp/subs1.awk" <<_ACAWK && 14531 for (key in S) S_is_set[key] = 1 14532 FS = "" 14533 14534} 14535{ 14536 line = $ 0 14537 nfields = split(line, field, "@") 14538 substed = 0 14539 len = length(field[1]) 14540 for (i = 2; i < nfields; i++) { 14541 key = field[i] 14542 keylen = length(key) 14543 if (S_is_set[key]) { 14544 value = S[key] 14545 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14546 len += length(value) + length(field[++i]) 14547 substed = 1 14548 } else 14549 len += 1 + keylen 14550 } 14551 14552 print line 14553} 14554 14555_ACAWK 14556_ACEOF 14557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14558if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14559 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14560else 14561 cat 14562fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14563 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14564$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14565 { (exit 1); exit 1; }; } 14566_ACEOF 14567 14568# VPATH may cause trouble with some makes, so we remove $(srcdir), 14569# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14570# trailing colons and then remove the whole line if VPATH becomes empty 14571# (actually we leave an empty line to preserve line numbers). 14572if test "x$srcdir" = x.; then 14573 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14574s/:*\$(srcdir):*/:/ 14575s/:*\${srcdir}:*/:/ 14576s/:*@srcdir@:*/:/ 14577s/^\([^=]*=[ ]*\):*/\1/ 14578s/:*$// 14579s/^[^=]*=[ ]*$// 14580}' 14581fi 14582 14583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14584fi # test -n "$CONFIG_FILES" 14585 14586# Set up the scripts for CONFIG_HEADERS section. 14587# No need to generate them if there are no CONFIG_HEADERS. 14588# This happens for instance with `./config.status Makefile'. 14589if test -n "$CONFIG_HEADERS"; then 14590cat >"$tmp/defines.awk" <<\_ACAWK || 14591BEGIN { 14592_ACEOF 14593 14594# Transform confdefs.h into an awk script `defines.awk', embedded as 14595# here-document in config.status, that substitutes the proper values into 14596# config.h.in to produce config.h. 14597 14598# Create a delimiter string that does not exist in confdefs.h, to ease 14599# handling of long lines. 14600ac_delim='%!_!# ' 14601for ac_last_try in false false :; do 14602 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14603 if test -z "$ac_t"; then 14604 break 14605 elif $ac_last_try; then 14606 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14607$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14608 { (exit 1); exit 1; }; } 14609 else 14610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14611 fi 14612done 14613 14614# For the awk script, D is an array of macro values keyed by name, 14615# likewise P contains macro parameters if any. Preserve backslash 14616# newline sequences. 14617 14618ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14619sed -n ' 14620s/.\{148\}/&'"$ac_delim"'/g 14621t rset 14622:rset 14623s/^[ ]*#[ ]*define[ ][ ]*/ / 14624t def 14625d 14626:def 14627s/\\$// 14628t bsnl 14629s/["\\]/\\&/g 14630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14631D["\1"]=" \3"/p 14632s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14633d 14634:bsnl 14635s/["\\]/\\&/g 14636s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14637D["\1"]=" \3\\\\\\n"\\/p 14638t cont 14639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14640t cont 14641d 14642:cont 14643n 14644s/.\{148\}/&'"$ac_delim"'/g 14645t clear 14646:clear 14647s/\\$// 14648t bsnlc 14649s/["\\]/\\&/g; s/^/"/; s/$/"/p 14650d 14651:bsnlc 14652s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14653b cont 14654' <confdefs.h | sed ' 14655s/'"$ac_delim"'/"\\\ 14656"/g' >>$CONFIG_STATUS || ac_write_fail=1 14657 14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14659 for (key in D) D_is_set[key] = 1 14660 FS = "" 14661} 14662/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14663 line = \$ 0 14664 split(line, arg, " ") 14665 if (arg[1] == "#") { 14666 defundef = arg[2] 14667 mac1 = arg[3] 14668 } else { 14669 defundef = substr(arg[1], 2) 14670 mac1 = arg[2] 14671 } 14672 split(mac1, mac2, "(") #) 14673 macro = mac2[1] 14674 if (D_is_set[macro]) { 14675 # Preserve the white space surrounding the "#". 14676 prefix = substr(line, 1, index(line, defundef) - 1) 14677 print prefix "define", macro P[macro] D[macro] 14678 next 14679 } else { 14680 # Replace #undef with comments. This is necessary, for example, 14681 # in the case of _POSIX_SOURCE, which is predefined and required 14682 # on some systems where configure will not decide to define it. 14683 if (defundef == "undef") { 14684 print "/*", line, "*/" 14685 next 14686 } 14687 } 14688} 14689{ print } 14690_ACAWK 14691_ACEOF 14692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14693 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14694$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14695 { (exit 1); exit 1; }; } 14696fi # test -n "$CONFIG_HEADERS" 14697 14698 14699eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14700shift 14701for ac_tag 14702do 14703 case $ac_tag in 14704 :[FHLC]) ac_mode=$ac_tag; continue;; 14705 esac 14706 case $ac_mode$ac_tag in 14707 :[FHL]*:*);; 14708 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14709$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14710 { (exit 1); exit 1; }; };; 14711 :[FH]-) ac_tag=-:-;; 14712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14713 esac 14714 ac_save_IFS=$IFS 14715 IFS=: 14716 set x $ac_tag 14717 IFS=$ac_save_IFS 14718 shift 14719 ac_file=$1 14720 shift 14721 14722 case $ac_mode in 14723 :L) ac_source=$1;; 14724 :[FH]) 14725 ac_file_inputs= 14726 for ac_f 14727 do 14728 case $ac_f in 14729 -) ac_f="$tmp/stdin";; 14730 *) # Look for the file first in the build tree, then in the source tree 14731 # (if the path is not absolute). The absolute path cannot be DOS-style, 14732 # because $ac_f cannot contain `:'. 14733 test -f "$ac_f" || 14734 case $ac_f in 14735 [\\/$]*) false;; 14736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14737 esac || 14738 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14739$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14740 { (exit 1); exit 1; }; };; 14741 esac 14742 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14743 ac_file_inputs="$ac_file_inputs '$ac_f'" 14744 done 14745 14746 # Let's still pretend it is `configure' which instantiates (i.e., don't 14747 # use $as_me), people would be surprised to read: 14748 # /* config.h. Generated by config.status. */ 14749 configure_input='Generated from '` 14750 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14751 `' by configure.' 14752 if test x"$ac_file" != x-; then 14753 configure_input="$ac_file. $configure_input" 14754 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14755$as_echo "$as_me: creating $ac_file" >&6;} 14756 fi 14757 # Neutralize special characters interpreted by sed in replacement strings. 14758 case $configure_input in #( 14759 *\&* | *\|* | *\\* ) 14760 ac_sed_conf_input=`$as_echo "$configure_input" | 14761 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14762 *) ac_sed_conf_input=$configure_input;; 14763 esac 14764 14765 case $ac_tag in 14766 *:-:* | *:-) cat >"$tmp/stdin" \ 14767 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14768$as_echo "$as_me: error: could not create $ac_file" >&2;} 14769 { (exit 1); exit 1; }; } ;; 14770 esac 14771 ;; 14772 esac 14773 14774 ac_dir=`$as_dirname -- "$ac_file" || 14775$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14776 X"$ac_file" : 'X\(//\)[^/]' \| \ 14777 X"$ac_file" : 'X\(//\)$' \| \ 14778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14779$as_echo X"$ac_file" | 14780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14781 s//\1/ 14782 q 14783 } 14784 /^X\(\/\/\)[^/].*/{ 14785 s//\1/ 14786 q 14787 } 14788 /^X\(\/\/\)$/{ 14789 s//\1/ 14790 q 14791 } 14792 /^X\(\/\).*/{ 14793 s//\1/ 14794 q 14795 } 14796 s/.*/./; q'` 14797 { as_dir="$ac_dir" 14798 case $as_dir in #( 14799 -*) as_dir=./$as_dir;; 14800 esac 14801 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14802 as_dirs= 14803 while :; do 14804 case $as_dir in #( 14805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14806 *) as_qdir=$as_dir;; 14807 esac 14808 as_dirs="'$as_qdir' $as_dirs" 14809 as_dir=`$as_dirname -- "$as_dir" || 14810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14811 X"$as_dir" : 'X\(//\)[^/]' \| \ 14812 X"$as_dir" : 'X\(//\)$' \| \ 14813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14814$as_echo X"$as_dir" | 14815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14816 s//\1/ 14817 q 14818 } 14819 /^X\(\/\/\)[^/].*/{ 14820 s//\1/ 14821 q 14822 } 14823 /^X\(\/\/\)$/{ 14824 s//\1/ 14825 q 14826 } 14827 /^X\(\/\).*/{ 14828 s//\1/ 14829 q 14830 } 14831 s/.*/./; q'` 14832 test -d "$as_dir" && break 14833 done 14834 test -z "$as_dirs" || eval "mkdir $as_dirs" 14835 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14836$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14837 { (exit 1); exit 1; }; }; } 14838 ac_builddir=. 14839 14840case "$ac_dir" in 14841.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14842*) 14843 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14844 # A ".." for each directory in $ac_dir_suffix. 14845 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14846 case $ac_top_builddir_sub in 14847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14849 esac ;; 14850esac 14851ac_abs_top_builddir=$ac_pwd 14852ac_abs_builddir=$ac_pwd$ac_dir_suffix 14853# for backward compatibility: 14854ac_top_builddir=$ac_top_build_prefix 14855 14856case $srcdir in 14857 .) # We are building in place. 14858 ac_srcdir=. 14859 ac_top_srcdir=$ac_top_builddir_sub 14860 ac_abs_top_srcdir=$ac_pwd ;; 14861 [\\/]* | ?:[\\/]* ) # Absolute name. 14862 ac_srcdir=$srcdir$ac_dir_suffix; 14863 ac_top_srcdir=$srcdir 14864 ac_abs_top_srcdir=$srcdir ;; 14865 *) # Relative name. 14866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14867 ac_top_srcdir=$ac_top_build_prefix$srcdir 14868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14869esac 14870ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14871 14872 14873 case $ac_mode in 14874 :F) 14875 # 14876 # CONFIG_FILE 14877 # 14878 14879 case $INSTALL in 14880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14882 esac 14883_ACEOF 14884 14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14886# If the template does not know about datarootdir, expand it. 14887# FIXME: This hack should be removed a few years after 2.60. 14888ac_datarootdir_hack=; ac_datarootdir_seen= 14889 14890ac_sed_dataroot=' 14891/datarootdir/ { 14892 p 14893 q 14894} 14895/@datadir@/p 14896/@docdir@/p 14897/@infodir@/p 14898/@localedir@/p 14899/@mandir@/p 14900' 14901case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14902*datarootdir*) ac_datarootdir_seen=yes;; 14903*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14904 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14905$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14906_ACEOF 14907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14908 ac_datarootdir_hack=' 14909 s&@datadir@&$datadir&g 14910 s&@docdir@&$docdir&g 14911 s&@infodir@&$infodir&g 14912 s&@localedir@&$localedir&g 14913 s&@mandir@&$mandir&g 14914 s&\\\${datarootdir}&$datarootdir&g' ;; 14915esac 14916_ACEOF 14917 14918# Neutralize VPATH when `$srcdir' = `.'. 14919# Shell code in configure.ac might set extrasub. 14920# FIXME: do we really want to maintain this feature? 14921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14922ac_sed_extra="$ac_vpsub 14923$extrasub 14924_ACEOF 14925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14926:t 14927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14928s|@configure_input@|$ac_sed_conf_input|;t t 14929s&@top_builddir@&$ac_top_builddir_sub&;t t 14930s&@top_build_prefix@&$ac_top_build_prefix&;t t 14931s&@srcdir@&$ac_srcdir&;t t 14932s&@abs_srcdir@&$ac_abs_srcdir&;t t 14933s&@top_srcdir@&$ac_top_srcdir&;t t 14934s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14935s&@builddir@&$ac_builddir&;t t 14936s&@abs_builddir@&$ac_abs_builddir&;t t 14937s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14938s&@INSTALL@&$ac_INSTALL&;t t 14939$ac_datarootdir_hack 14940" 14941eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14943$as_echo "$as_me: error: could not create $ac_file" >&2;} 14944 { (exit 1); exit 1; }; } 14945 14946test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14949 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14950which seems to be undefined. Please make sure it is defined." >&5 14951$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14952which seems to be undefined. Please make sure it is defined." >&2;} 14953 14954 rm -f "$tmp/stdin" 14955 case $ac_file in 14956 -) cat "$tmp/out" && rm -f "$tmp/out";; 14957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14958 esac \ 14959 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14960$as_echo "$as_me: error: could not create $ac_file" >&2;} 14961 { (exit 1); exit 1; }; } 14962 ;; 14963 :H) 14964 # 14965 # CONFIG_HEADER 14966 # 14967 if test x"$ac_file" != x-; then 14968 { 14969 $as_echo "/* $configure_input */" \ 14970 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14971 } >"$tmp/config.h" \ 14972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14973$as_echo "$as_me: error: could not create $ac_file" >&2;} 14974 { (exit 1); exit 1; }; } 14975 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14976 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14977$as_echo "$as_me: $ac_file is unchanged" >&6;} 14978 else 14979 rm -f "$ac_file" 14980 mv "$tmp/config.h" "$ac_file" \ 14981 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14982$as_echo "$as_me: error: could not create $ac_file" >&2;} 14983 { (exit 1); exit 1; }; } 14984 fi 14985 else 14986 $as_echo "/* $configure_input */" \ 14987 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14988 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14989$as_echo "$as_me: error: could not create -" >&2;} 14990 { (exit 1); exit 1; }; } 14991 fi 14992 ;; 14993 14994 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14995$as_echo "$as_me: executing $ac_file commands" >&6;} 14996 ;; 14997 esac 14998 14999 15000 case $ac_file$ac_mode in 15001 "libtool":C) 15002 15003 # See if we are running on zsh, and set the options which allow our 15004 # commands through without removal of \ escapes. 15005 if test -n "${ZSH_VERSION+set}" ; then 15006 setopt NO_GLOB_SUBST 15007 fi 15008 15009 cfgfile="${ofile}T" 15010 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15011 $RM "$cfgfile" 15012 15013 cat <<_LT_EOF >> "$cfgfile" 15014#! $SHELL 15015 15016# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15017# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15018# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15019# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15020# 15021# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15022# 2006, 2007, 2008 Free Software Foundation, Inc. 15023# Written by Gordon Matzigkeit, 1996 15024# 15025# This file is part of GNU Libtool. 15026# 15027# GNU Libtool is free software; you can redistribute it and/or 15028# modify it under the terms of the GNU General Public License as 15029# published by the Free Software Foundation; either version 2 of 15030# the License, or (at your option) any later version. 15031# 15032# As a special exception to the GNU General Public License, 15033# if you distribute this file as part of a program or library that 15034# is built using GNU Libtool, you may include this file under the 15035# same distribution terms that you use for the rest of that program. 15036# 15037# GNU Libtool is distributed in the hope that it will be useful, 15038# but WITHOUT ANY WARRANTY; without even the implied warranty of 15039# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15040# GNU General Public License for more details. 15041# 15042# You should have received a copy of the GNU General Public License 15043# along with GNU Libtool; see the file COPYING. If not, a copy 15044# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15045# obtained by writing to the Free Software Foundation, Inc., 15046# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15047 15048 15049# The names of the tagged configurations supported by this script. 15050available_tags="" 15051 15052# ### BEGIN LIBTOOL CONFIG 15053 15054# Which release of libtool.m4 was used? 15055macro_version=$macro_version 15056macro_revision=$macro_revision 15057 15058# Whether or not to build shared libraries. 15059build_libtool_libs=$enable_shared 15060 15061# Whether or not to build static libraries. 15062build_old_libs=$enable_static 15063 15064# What type of objects to build. 15065pic_mode=$pic_mode 15066 15067# Whether or not to optimize for fast installation. 15068fast_install=$enable_fast_install 15069 15070# The host system. 15071host_alias=$host_alias 15072host=$host 15073host_os=$host_os 15074 15075# The build system. 15076build_alias=$build_alias 15077build=$build 15078build_os=$build_os 15079 15080# A sed program that does not truncate output. 15081SED=$lt_SED 15082 15083# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15084Xsed="\$SED -e 1s/^X//" 15085 15086# A grep program that handles long lines. 15087GREP=$lt_GREP 15088 15089# An ERE matcher. 15090EGREP=$lt_EGREP 15091 15092# A literal string matcher. 15093FGREP=$lt_FGREP 15094 15095# A BSD- or MS-compatible name lister. 15096NM=$lt_NM 15097 15098# Whether we need soft or hard links. 15099LN_S=$lt_LN_S 15100 15101# What is the maximum length of a command? 15102max_cmd_len=$max_cmd_len 15103 15104# Object file suffix (normally "o"). 15105objext=$ac_objext 15106 15107# Executable file suffix (normally ""). 15108exeext=$exeext 15109 15110# whether the shell understands "unset". 15111lt_unset=$lt_unset 15112 15113# turn spaces into newlines. 15114SP2NL=$lt_lt_SP2NL 15115 15116# turn newlines into spaces. 15117NL2SP=$lt_lt_NL2SP 15118 15119# How to create reloadable object files. 15120reload_flag=$lt_reload_flag 15121reload_cmds=$lt_reload_cmds 15122 15123# An object symbol dumper. 15124OBJDUMP=$lt_OBJDUMP 15125 15126# Method to check whether dependent libraries are shared objects. 15127deplibs_check_method=$lt_deplibs_check_method 15128 15129# Command to use when deplibs_check_method == "file_magic". 15130file_magic_cmd=$lt_file_magic_cmd 15131 15132# The archiver. 15133AR=$lt_AR 15134AR_FLAGS=$lt_AR_FLAGS 15135 15136# A symbol stripping program. 15137STRIP=$lt_STRIP 15138 15139# Commands used to install an old-style archive. 15140RANLIB=$lt_RANLIB 15141old_postinstall_cmds=$lt_old_postinstall_cmds 15142old_postuninstall_cmds=$lt_old_postuninstall_cmds 15143 15144# A C compiler. 15145LTCC=$lt_CC 15146 15147# LTCC compiler flags. 15148LTCFLAGS=$lt_CFLAGS 15149 15150# Take the output of nm and produce a listing of raw symbols and C names. 15151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15152 15153# Transform the output of nm in a proper C declaration. 15154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15155 15156# Transform the output of nm in a C name address pair. 15157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15158 15159# Transform the output of nm in a C name address pair when lib prefix is needed. 15160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15161 15162# The name of the directory that contains temporary libtool files. 15163objdir=$objdir 15164 15165# Shell to use when invoking shell scripts. 15166SHELL=$lt_SHELL 15167 15168# An echo program that does not interpret backslashes. 15169ECHO=$lt_ECHO 15170 15171# Used to examine libraries when file_magic_cmd begins with "file". 15172MAGIC_CMD=$MAGIC_CMD 15173 15174# Must we lock files when doing compilation? 15175need_locks=$lt_need_locks 15176 15177# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15178DSYMUTIL=$lt_DSYMUTIL 15179 15180# Tool to change global to local symbols on Mac OS X. 15181NMEDIT=$lt_NMEDIT 15182 15183# Tool to manipulate fat objects and archives on Mac OS X. 15184LIPO=$lt_LIPO 15185 15186# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15187OTOOL=$lt_OTOOL 15188 15189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15190OTOOL64=$lt_OTOOL64 15191 15192# Old archive suffix (normally "a"). 15193libext=$libext 15194 15195# Shared library suffix (normally ".so"). 15196shrext_cmds=$lt_shrext_cmds 15197 15198# The commands to extract the exported symbol list from a shared archive. 15199extract_expsyms_cmds=$lt_extract_expsyms_cmds 15200 15201# Variables whose values should be saved in libtool wrapper scripts and 15202# restored at link time. 15203variables_saved_for_relink=$lt_variables_saved_for_relink 15204 15205# Do we need the "lib" prefix for modules? 15206need_lib_prefix=$need_lib_prefix 15207 15208# Do we need a version for libraries? 15209need_version=$need_version 15210 15211# Library versioning type. 15212version_type=$version_type 15213 15214# Shared library runtime path variable. 15215runpath_var=$runpath_var 15216 15217# Shared library path variable. 15218shlibpath_var=$shlibpath_var 15219 15220# Is shlibpath searched before the hard-coded library search path? 15221shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15222 15223# Format of library name prefix. 15224libname_spec=$lt_libname_spec 15225 15226# List of archive names. First name is the real one, the rest are links. 15227# The last name is the one that the linker finds with -lNAME 15228library_names_spec=$lt_library_names_spec 15229 15230# The coded name of the library, if different from the real name. 15231soname_spec=$lt_soname_spec 15232 15233# Command to use after installation of a shared archive. 15234postinstall_cmds=$lt_postinstall_cmds 15235 15236# Command to use after uninstallation of a shared archive. 15237postuninstall_cmds=$lt_postuninstall_cmds 15238 15239# Commands used to finish a libtool library installation in a directory. 15240finish_cmds=$lt_finish_cmds 15241 15242# As "finish_cmds", except a single script fragment to be evaled but 15243# not shown. 15244finish_eval=$lt_finish_eval 15245 15246# Whether we should hardcode library paths into libraries. 15247hardcode_into_libs=$hardcode_into_libs 15248 15249# Compile-time system search path for libraries. 15250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15251 15252# Run-time system search path for libraries. 15253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15254 15255# Whether dlopen is supported. 15256dlopen_support=$enable_dlopen 15257 15258# Whether dlopen of programs is supported. 15259dlopen_self=$enable_dlopen_self 15260 15261# Whether dlopen of statically linked programs is supported. 15262dlopen_self_static=$enable_dlopen_self_static 15263 15264# Commands to strip libraries. 15265old_striplib=$lt_old_striplib 15266striplib=$lt_striplib 15267 15268 15269# The linker used to build libraries. 15270LD=$lt_LD 15271 15272# Commands used to build an old-style archive. 15273old_archive_cmds=$lt_old_archive_cmds 15274 15275# A language specific compiler. 15276CC=$lt_compiler 15277 15278# Is the compiler the GNU compiler? 15279with_gcc=$GCC 15280 15281# Compiler flag to turn off builtin functions. 15282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15283 15284# How to pass a linker flag through the compiler. 15285wl=$lt_lt_prog_compiler_wl 15286 15287# Additional compiler flags for building library objects. 15288pic_flag=$lt_lt_prog_compiler_pic 15289 15290# Compiler flag to prevent dynamic linking. 15291link_static_flag=$lt_lt_prog_compiler_static 15292 15293# Does compiler simultaneously support -c and -o options? 15294compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15295 15296# Whether or not to add -lc for building shared libraries. 15297build_libtool_need_lc=$archive_cmds_need_lc 15298 15299# Whether or not to disallow shared libs when runtime libs are static. 15300allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15301 15302# Compiler flag to allow reflexive dlopens. 15303export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15304 15305# Compiler flag to generate shared objects directly from archives. 15306whole_archive_flag_spec=$lt_whole_archive_flag_spec 15307 15308# Whether the compiler copes with passing no objects directly. 15309compiler_needs_object=$lt_compiler_needs_object 15310 15311# Create an old-style archive from a shared archive. 15312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15313 15314# Create a temporary old-style archive to link instead of a shared archive. 15315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15316 15317# Commands used to build a shared archive. 15318archive_cmds=$lt_archive_cmds 15319archive_expsym_cmds=$lt_archive_expsym_cmds 15320 15321# Commands used to build a loadable module if different from building 15322# a shared archive. 15323module_cmds=$lt_module_cmds 15324module_expsym_cmds=$lt_module_expsym_cmds 15325 15326# Whether we are building with GNU ld or not. 15327with_gnu_ld=$lt_with_gnu_ld 15328 15329# Flag that allows shared libraries with undefined symbols to be built. 15330allow_undefined_flag=$lt_allow_undefined_flag 15331 15332# Flag that enforces no undefined symbols. 15333no_undefined_flag=$lt_no_undefined_flag 15334 15335# Flag to hardcode \$libdir into a binary during linking. 15336# This must work even if \$libdir does not exist 15337hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15338 15339# If ld is used when linking, flag to hardcode \$libdir into a binary 15340# during linking. This must work even if \$libdir does not exist. 15341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15342 15343# Whether we need a single "-rpath" flag with a separated argument. 15344hardcode_libdir_separator=$lt_hardcode_libdir_separator 15345 15346# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15347# DIR into the resulting binary. 15348hardcode_direct=$hardcode_direct 15349 15350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15351# DIR into the resulting binary and the resulting library dependency is 15352# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15353# library is relocated. 15354hardcode_direct_absolute=$hardcode_direct_absolute 15355 15356# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15357# into the resulting binary. 15358hardcode_minus_L=$hardcode_minus_L 15359 15360# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15361# into the resulting binary. 15362hardcode_shlibpath_var=$hardcode_shlibpath_var 15363 15364# Set to "yes" if building a shared library automatically hardcodes DIR 15365# into the library and all subsequent libraries and executables linked 15366# against it. 15367hardcode_automatic=$hardcode_automatic 15368 15369# Set to yes if linker adds runtime paths of dependent libraries 15370# to runtime path list. 15371inherit_rpath=$inherit_rpath 15372 15373# Whether libtool must link a program against all its dependency libraries. 15374link_all_deplibs=$link_all_deplibs 15375 15376# Fix the shell variable \$srcfile for the compiler. 15377fix_srcfile_path=$lt_fix_srcfile_path 15378 15379# Set to "yes" if exported symbols are required. 15380always_export_symbols=$always_export_symbols 15381 15382# The commands to list exported symbols. 15383export_symbols_cmds=$lt_export_symbols_cmds 15384 15385# Symbols that should not be listed in the preloaded symbols. 15386exclude_expsyms=$lt_exclude_expsyms 15387 15388# Symbols that must always be exported. 15389include_expsyms=$lt_include_expsyms 15390 15391# Commands necessary for linking programs (against libraries) with templates. 15392prelink_cmds=$lt_prelink_cmds 15393 15394# Specify filename containing input files. 15395file_list_spec=$lt_file_list_spec 15396 15397# How to hardcode a shared library path into an executable. 15398hardcode_action=$hardcode_action 15399 15400# ### END LIBTOOL CONFIG 15401 15402_LT_EOF 15403 15404 case $host_os in 15405 aix3*) 15406 cat <<\_LT_EOF >> "$cfgfile" 15407# AIX sometimes has problems with the GCC collect2 program. For some 15408# reason, if we set the COLLECT_NAMES environment variable, the problems 15409# vanish in a puff of smoke. 15410if test "X${COLLECT_NAMES+set}" != Xset; then 15411 COLLECT_NAMES= 15412 export COLLECT_NAMES 15413fi 15414_LT_EOF 15415 ;; 15416 esac 15417 15418 15419ltmain="$ac_aux_dir/ltmain.sh" 15420 15421 15422 # We use sed instead of cat because bash on DJGPP gets confused if 15423 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15424 # text mode, it properly converts lines to CR/LF. This bash problem 15425 # is reportedly fixed, but why not run on old versions too? 15426 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15427 || (rm -f "$cfgfile"; exit 1) 15428 15429 case $xsi_shell in 15430 yes) 15431 cat << \_LT_EOF >> "$cfgfile" 15432 15433# func_dirname file append nondir_replacement 15434# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15435# otherwise set result to NONDIR_REPLACEMENT. 15436func_dirname () 15437{ 15438 case ${1} in 15439 */*) func_dirname_result="${1%/*}${2}" ;; 15440 * ) func_dirname_result="${3}" ;; 15441 esac 15442} 15443 15444# func_basename file 15445func_basename () 15446{ 15447 func_basename_result="${1##*/}" 15448} 15449 15450# func_dirname_and_basename file append nondir_replacement 15451# perform func_basename and func_dirname in a single function 15452# call: 15453# dirname: Compute the dirname of FILE. If nonempty, 15454# add APPEND to the result, otherwise set result 15455# to NONDIR_REPLACEMENT. 15456# value returned in "$func_dirname_result" 15457# basename: Compute filename of FILE. 15458# value retuned in "$func_basename_result" 15459# Implementation must be kept synchronized with func_dirname 15460# and func_basename. For efficiency, we do not delegate to 15461# those functions but instead duplicate the functionality here. 15462func_dirname_and_basename () 15463{ 15464 case ${1} in 15465 */*) func_dirname_result="${1%/*}${2}" ;; 15466 * ) func_dirname_result="${3}" ;; 15467 esac 15468 func_basename_result="${1##*/}" 15469} 15470 15471# func_stripname prefix suffix name 15472# strip PREFIX and SUFFIX off of NAME. 15473# PREFIX and SUFFIX must not contain globbing or regex special 15474# characters, hashes, percent signs, but SUFFIX may contain a leading 15475# dot (in which case that matches only a dot). 15476func_stripname () 15477{ 15478 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15479 # positional parameters, so assign one to ordinary parameter first. 15480 func_stripname_result=${3} 15481 func_stripname_result=${func_stripname_result#"${1}"} 15482 func_stripname_result=${func_stripname_result%"${2}"} 15483} 15484 15485# func_opt_split 15486func_opt_split () 15487{ 15488 func_opt_split_opt=${1%%=*} 15489 func_opt_split_arg=${1#*=} 15490} 15491 15492# func_lo2o object 15493func_lo2o () 15494{ 15495 case ${1} in 15496 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15497 *) func_lo2o_result=${1} ;; 15498 esac 15499} 15500 15501# func_xform libobj-or-source 15502func_xform () 15503{ 15504 func_xform_result=${1%.*}.lo 15505} 15506 15507# func_arith arithmetic-term... 15508func_arith () 15509{ 15510 func_arith_result=$(( $* )) 15511} 15512 15513# func_len string 15514# STRING may not start with a hyphen. 15515func_len () 15516{ 15517 func_len_result=${#1} 15518} 15519 15520_LT_EOF 15521 ;; 15522 *) # Bourne compatible functions. 15523 cat << \_LT_EOF >> "$cfgfile" 15524 15525# func_dirname file append nondir_replacement 15526# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15527# otherwise set result to NONDIR_REPLACEMENT. 15528func_dirname () 15529{ 15530 # Extract subdirectory from the argument. 15531 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15532 if test "X$func_dirname_result" = "X${1}"; then 15533 func_dirname_result="${3}" 15534 else 15535 func_dirname_result="$func_dirname_result${2}" 15536 fi 15537} 15538 15539# func_basename file 15540func_basename () 15541{ 15542 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15543} 15544 15545 15546# func_stripname prefix suffix name 15547# strip PREFIX and SUFFIX off of NAME. 15548# PREFIX and SUFFIX must not contain globbing or regex special 15549# characters, hashes, percent signs, but SUFFIX may contain a leading 15550# dot (in which case that matches only a dot). 15551# func_strip_suffix prefix name 15552func_stripname () 15553{ 15554 case ${2} in 15555 .*) func_stripname_result=`$ECHO "X${3}" \ 15556 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15557 *) func_stripname_result=`$ECHO "X${3}" \ 15558 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15559 esac 15560} 15561 15562# sed scripts: 15563my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15564my_sed_long_arg='1s/^-[^=]*=//' 15565 15566# func_opt_split 15567func_opt_split () 15568{ 15569 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15570 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15571} 15572 15573# func_lo2o object 15574func_lo2o () 15575{ 15576 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15577} 15578 15579# func_xform libobj-or-source 15580func_xform () 15581{ 15582 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15583} 15584 15585# func_arith arithmetic-term... 15586func_arith () 15587{ 15588 func_arith_result=`expr "$@"` 15589} 15590 15591# func_len string 15592# STRING may not start with a hyphen. 15593func_len () 15594{ 15595 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15596} 15597 15598_LT_EOF 15599esac 15600 15601case $lt_shell_append in 15602 yes) 15603 cat << \_LT_EOF >> "$cfgfile" 15604 15605# func_append var value 15606# Append VALUE to the end of shell variable VAR. 15607func_append () 15608{ 15609 eval "$1+=\$2" 15610} 15611_LT_EOF 15612 ;; 15613 *) 15614 cat << \_LT_EOF >> "$cfgfile" 15615 15616# func_append var value 15617# Append VALUE to the end of shell variable VAR. 15618func_append () 15619{ 15620 eval "$1=\$$1\$2" 15621} 15622 15623_LT_EOF 15624 ;; 15625 esac 15626 15627 15628 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15629 || (rm -f "$cfgfile"; exit 1) 15630 15631 mv -f "$cfgfile" "$ofile" || 15632 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15633 chmod +x "$ofile" 15634 15635 ;; 15636 15637 esac 15638done # for ac_tag 15639 15640 15641{ (exit 0); exit 0; } 15642_ACEOF 15643chmod +x $CONFIG_STATUS 15644ac_clean_files=$ac_clean_files_save 15645 15646test $ac_write_fail = 0 || 15647 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15648$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15649 { (exit 1); exit 1; }; } 15650 15651 15652# configure is writing to config.log, and then calls config.status. 15653# config.status does its own redirection, appending to config.log. 15654# Unfortunately, on DOS this fails, as config.log is still kept open 15655# by configure, so config.status won't be able to write to it; its 15656# output is simply discarded. So we exec the FD to /dev/null, 15657# effectively closing config.log, so it can be properly (re)opened and 15658# appended to by config.status. When coming back to configure, we 15659# need to make the FD available again. 15660if test "$no_create" != yes; then 15661 ac_cs_success=: 15662 ac_config_status_args= 15663 test "$silent" = yes && 15664 ac_config_status_args="$ac_config_status_args --quiet" 15665 exec 5>/dev/null 15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15667 exec 5>>config.log 15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15669 # would make configure fail if this is the last instruction. 15670 $ac_cs_success || { (exit 1); exit 1; } 15671fi 15672if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15673 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 15674$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 15675fi 15676 15677