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 887TCL_SHLIB_SUFFIX 888HAVE_TCL 889TARGET_READLINE_LIBS 890TARGET_READLINE_INC 891TARGET_HAVE_READLINE 892TARGET_DEBUG 893USE_AMALGAMATION 894OPT_FEATURE_FLAGS 895USE_GCOV 896BUILD_CFLAGS 897LIBOBJS 898LTLIBOBJS' 899ac_subst_files='' 900ac_user_opts=' 901enable_option_checking 902enable_shared 903enable_static 904with_pic 905enable_fast_install 906with_gnu_ld 907enable_libtool_lock 908enable_largefile 909enable_threadsafe 910enable_releasemode 911enable_tempstore 912enable_tcl 913with_tcl 914enable_readline 915with_readline_lib 916with_readline_inc 917enable_debug 918enable_amalgamation 919enable_load_extension 920enable_gcov 921' 922 ac_precious_vars='build_alias 923host_alias 924target_alias 925CC 926CFLAGS 927LDFLAGS 928LIBS 929CPPFLAGS 930CPP 931TCLLIBDIR' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970includedir='${prefix}/include' 971oldincludedir='/usr/include' 972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 973infodir='${datarootdir}/info' 974htmldir='${docdir}' 975dvidir='${docdir}' 976pdfdir='${docdir}' 977psdir='${docdir}' 978libdir='${exec_prefix}/lib' 979localedir='${datarootdir}/locale' 980mandir='${datarootdir}/man' 981 982ac_prev= 983ac_dashdash= 984for ac_option 985do 986 # If the previous option needs an argument, assign it. 987 if test -n "$ac_prev"; then 988 eval $ac_prev=\$ac_option 989 ac_prev= 990 continue 991 fi 992 993 case $ac_option in 994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 # Accept the important Cygnus configure options, so we can diagnose typos. 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1041 { (exit 1); exit 1; }; } 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=no ;; 1052 1053 -docdir | --docdir | --docdi | --doc | --do) 1054 ac_prev=docdir ;; 1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1056 docdir=$ac_optarg ;; 1057 1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1059 ac_prev=dvidir ;; 1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1061 dvidir=$ac_optarg ;; 1062 1063 -enable-* | --enable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=\$ac_optarg ;; 1079 1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1082 | --exec | --exe | --ex) 1083 ac_prev=exec_prefix ;; 1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1086 | --exec=* | --exe=* | --ex=*) 1087 exec_prefix=$ac_optarg ;; 1088 1089 -gas | --gas | --ga | --g) 1090 # Obsolete; use --with-gas. 1091 with_gas=yes ;; 1092 1093 -help | --help | --hel | --he | -h) 1094 ac_init_help=long ;; 1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1096 ac_init_help=recursive ;; 1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1098 ac_init_help=short ;; 1099 1100 -host | --host | --hos | --ho) 1101 ac_prev=host_alias ;; 1102 -host=* | --host=* | --hos=* | --ho=*) 1103 host_alias=$ac_optarg ;; 1104 1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1106 ac_prev=htmldir ;; 1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1108 | --ht=*) 1109 htmldir=$ac_optarg ;; 1110 1111 -includedir | --includedir | --includedi | --included | --include \ 1112 | --includ | --inclu | --incl | --inc) 1113 ac_prev=includedir ;; 1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1115 | --includ=* | --inclu=* | --incl=* | --inc=*) 1116 includedir=$ac_optarg ;; 1117 1118 -infodir | --infodir | --infodi | --infod | --info | --inf) 1119 ac_prev=infodir ;; 1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1121 infodir=$ac_optarg ;; 1122 1123 -libdir | --libdir | --libdi | --libd) 1124 ac_prev=libdir ;; 1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1126 libdir=$ac_optarg ;; 1127 1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1129 | --libexe | --libex | --libe) 1130 ac_prev=libexecdir ;; 1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1132 | --libexe=* | --libex=* | --libe=*) 1133 libexecdir=$ac_optarg ;; 1134 1135 -localedir | --localedir | --localedi | --localed | --locale) 1136 ac_prev=localedir ;; 1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1138 localedir=$ac_optarg ;; 1139 1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1141 | --localstate | --localstat | --localsta | --localst | --locals) 1142 ac_prev=localstatedir ;; 1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1145 localstatedir=$ac_optarg ;; 1146 1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1148 ac_prev=mandir ;; 1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1150 mandir=$ac_optarg ;; 1151 1152 -nfp | --nfp | --nf) 1153 # Obsolete; use --without-fp. 1154 with_fp=no ;; 1155 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n) 1158 no_create=yes ;; 1159 1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1162 no_recursion=yes ;; 1163 1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1166 | --oldin | --oldi | --old | --ol | --o) 1167 ac_prev=oldincludedir ;; 1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1171 oldincludedir=$ac_optarg ;; 1172 1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1174 ac_prev=prefix ;; 1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1176 prefix=$ac_optarg ;; 1177 1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1179 | --program-pre | --program-pr | --program-p) 1180 ac_prev=program_prefix ;; 1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1183 program_prefix=$ac_optarg ;; 1184 1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1186 | --program-suf | --program-su | --program-s) 1187 ac_prev=program_suffix ;; 1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1190 program_suffix=$ac_optarg ;; 1191 1192 -program-transform-name | --program-transform-name \ 1193 | --program-transform-nam | --program-transform-na \ 1194 | --program-transform-n | --program-transform- \ 1195 | --program-transform | --program-transfor \ 1196 | --program-transfo | --program-transf \ 1197 | --program-trans | --program-tran \ 1198 | --progr-tra | --program-tr | --program-t) 1199 ac_prev=program_transform_name ;; 1200 -program-transform-name=* | --program-transform-name=* \ 1201 | --program-transform-nam=* | --program-transform-na=* \ 1202 | --program-transform-n=* | --program-transform-=* \ 1203 | --program-transform=* | --program-transfor=* \ 1204 | --program-transfo=* | --program-transf=* \ 1205 | --program-trans=* | --program-tran=* \ 1206 | --progr-tra=* | --program-tr=* | --program-t=*) 1207 program_transform_name=$ac_optarg ;; 1208 1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1210 ac_prev=pdfdir ;; 1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1212 pdfdir=$ac_optarg ;; 1213 1214 -psdir | --psdir | --psdi | --psd | --ps) 1215 ac_prev=psdir ;; 1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1217 psdir=$ac_optarg ;; 1218 1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1220 | -silent | --silent | --silen | --sile | --sil) 1221 silent=yes ;; 1222 1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1224 ac_prev=sbindir ;; 1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1226 | --sbi=* | --sb=*) 1227 sbindir=$ac_optarg ;; 1228 1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1231 | --sharedst | --shareds | --shared | --share | --shar \ 1232 | --sha | --sh) 1233 ac_prev=sharedstatedir ;; 1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1237 | --sha=* | --sh=*) 1238 sharedstatedir=$ac_optarg ;; 1239 1240 -site | --site | --sit) 1241 ac_prev=site ;; 1242 -site=* | --site=* | --sit=*) 1243 site=$ac_optarg ;; 1244 1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1246 ac_prev=srcdir ;; 1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1248 srcdir=$ac_optarg ;; 1249 1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1251 | --syscon | --sysco | --sysc | --sys | --sy) 1252 ac_prev=sysconfdir ;; 1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1255 sysconfdir=$ac_optarg ;; 1256 1257 -target | --target | --targe | --targ | --tar | --ta | --t) 1258 ac_prev=target_alias ;; 1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1260 target_alias=$ac_optarg ;; 1261 1262 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1263 verbose=yes ;; 1264 1265 -version | --version | --versio | --versi | --vers | -V) 1266 ac_init_version=: ;; 1267 1268 -with-* | --with-*) 1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1272 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1273 { (exit 1); exit 1; }; } 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278"with_$ac_useropt" 1279"*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=\$ac_optarg ;; 1284 1285 -without-* | --without-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1290 { (exit 1); exit 1; }; } 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=no ;; 1301 1302 --x) 1303 # Obsolete; use --with-x. 1304 with_x=yes ;; 1305 1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1307 | --x-incl | --x-inc | --x-in | --x-i) 1308 ac_prev=x_includes ;; 1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1311 x_includes=$ac_optarg ;; 1312 1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1315 ac_prev=x_libraries ;; 1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1318 x_libraries=$ac_optarg ;; 1319 1320 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1321Try \`$0 --help' for more information." >&2 1322 { (exit 1); exit 1; }; } 1323 ;; 1324 1325 *=*) 1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1329 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1330 { (exit 1); exit 1; }; } 1331 eval $ac_envvar=\$ac_optarg 1332 export $ac_envvar ;; 1333 1334 *) 1335 # FIXME: should be removed in autoconf 3.0. 1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1340 ;; 1341 1342 esac 1343done 1344 1345if test -n "$ac_prev"; then 1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1347 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1348 { (exit 1); exit 1; }; } 1349fi 1350 1351if test -n "$ac_unrecognized_opts"; then 1352 case $enable_option_checking in 1353 no) ;; 1354 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1355 { (exit 1); exit 1; }; } ;; 1356 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1357 esac 1358fi 1359 1360# Check all directory arguments for consistency. 1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1362 datadir sysconfdir sharedstatedir localstatedir includedir \ 1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1364 libdir localedir mandir 1365do 1366 eval ac_val=\$$ac_var 1367 # Remove trailing slashes. 1368 case $ac_val in 1369 */ ) 1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1371 eval $ac_var=\$ac_val;; 1372 esac 1373 # Be sure to have absolute directory names. 1374 case $ac_val in 1375 [\\/$]* | ?:[\\/]* ) continue;; 1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1377 esac 1378 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1379 { (exit 1); exit 1; }; } 1380done 1381 1382# There might be people who depend on the old broken behavior: `$host' 1383# used to hold the argument of --host etc. 1384# FIXME: To remove some day. 1385build=$build_alias 1386host=$host_alias 1387target=$target_alias 1388 1389# FIXME: To remove some day. 1390if test "x$host_alias" != x; then 1391 if test "x$build_alias" = x; then 1392 cross_compiling=maybe 1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1394 If a cross compiler is detected then cross compile mode will be used." >&2 1395 elif test "x$build_alias" != "x$host_alias"; then 1396 cross_compiling=yes 1397 fi 1398fi 1399 1400ac_tool_prefix= 1401test -n "$host_alias" && ac_tool_prefix=$host_alias- 1402 1403test "$silent" = yes && exec 6>/dev/null 1404 1405 1406ac_pwd=`pwd` && test -n "$ac_pwd" && 1407ac_ls_di=`ls -di .` && 1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1409 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1410 { (exit 1); exit 1; }; } 1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1412 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1413 { (exit 1); exit 1; }; } 1414 1415 1416# Find the source files, if location was not specified. 1417if test -z "$srcdir"; then 1418 ac_srcdir_defaulted=yes 1419 # Try the directory containing this script, then the parent directory. 1420 ac_confdir=`$as_dirname -- "$as_myself" || 1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1422 X"$as_myself" : 'X\(//\)[^/]' \| \ 1423 X"$as_myself" : 'X\(//\)$' \| \ 1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1425$as_echo X"$as_myself" | 1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)[^/].*/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\/\)$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\).*/{ 1439 s//\1/ 1440 q 1441 } 1442 s/.*/./; q'` 1443 srcdir=$ac_confdir 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 srcdir=.. 1446 fi 1447else 1448 ac_srcdir_defaulted=no 1449fi 1450if test ! -r "$srcdir/$ac_unique_file"; then 1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1452 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1453 { (exit 1); exit 1; }; } 1454fi 1455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1456ac_abs_confdir=`( 1457 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1458 { (exit 1); exit 1; }; } 1459 pwd)` 1460# When building in place, set srcdir=. 1461if test "$ac_abs_confdir" = "$ac_pwd"; then 1462 srcdir=. 1463fi 1464# Remove unnecessary trailing slashes from srcdir. 1465# Double slashes in file names in object file debugging info 1466# mess up M-x gdb in Emacs. 1467case $srcdir in 1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1469esac 1470for ac_var in $ac_precious_vars; do 1471 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_env_${ac_var}_value=\$${ac_var} 1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1475done 1476 1477# 1478# Report the --help message. 1479# 1480if test "$ac_init_help" = "long"; then 1481 # Omit some internal or obsolete options to make the list less imposing. 1482 # This message is too long to be a string in the A/UX 3.1 sh. 1483 cat <<_ACEOF 1484\`configure' configures sqlite 3.8.9 to adapt to many kinds of systems. 1485 1486Usage: $0 [OPTION]... [VAR=VALUE]... 1487 1488To assign environment variables (e.g., CC, CFLAGS...), specify them as 1489VAR=VALUE. See below for descriptions of some of the useful variables. 1490 1491Defaults for the options are specified in brackets. 1492 1493Configuration: 1494 -h, --help display this help and exit 1495 --help=short display options specific to this package 1496 --help=recursive display the short help of all the included packages 1497 -V, --version display version information and exit 1498 -q, --quiet, --silent do not print \`checking...' messages 1499 --cache-file=FILE cache test results in FILE [disabled] 1500 -C, --config-cache alias for \`--cache-file=config.cache' 1501 -n, --no-create do not create output files 1502 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1503 1504Installation directories: 1505 --prefix=PREFIX install architecture-independent files in PREFIX 1506 [$ac_default_prefix] 1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1508 [PREFIX] 1509 1510By default, \`make install' will install all the files in 1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1512an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1513for instance \`--prefix=\$HOME'. 1514 1515For better control, use the options below. 1516 1517Fine tuning of the installation directories: 1518 --bindir=DIR user executables [EPREFIX/bin] 1519 --sbindir=DIR system admin executables [EPREFIX/sbin] 1520 --libexecdir=DIR program executables [EPREFIX/libexec] 1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1524 --libdir=DIR object code libraries [EPREFIX/lib] 1525 --includedir=DIR C header files [PREFIX/include] 1526 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1529 --infodir=DIR info documentation [DATAROOTDIR/info] 1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1531 --mandir=DIR man documentation [DATAROOTDIR/man] 1532 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1533 --htmldir=DIR html documentation [DOCDIR] 1534 --dvidir=DIR dvi documentation [DOCDIR] 1535 --pdfdir=DIR pdf documentation [DOCDIR] 1536 --psdir=DIR ps documentation [DOCDIR] 1537_ACEOF 1538 1539 cat <<\_ACEOF 1540 1541System types: 1542 --build=BUILD configure for building on BUILD [guessed] 1543 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1544_ACEOF 1545fi 1546 1547if test -n "$ac_init_help"; then 1548 case $ac_init_help in 1549 short | recursive ) echo "Configuration of sqlite 3.8.9:";; 1550 esac 1551 cat <<\_ACEOF 1552 1553Optional Features: 1554 --disable-option-checking ignore unrecognized --enable/--with options 1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1557 --enable-shared[=PKGS] build shared libraries [default=yes] 1558 --enable-static[=PKGS] build static libraries [default=yes] 1559 --enable-fast-install[=PKGS] 1560 optimize for fast installation [default=yes] 1561 --disable-libtool-lock avoid locking (might break parallel builds) 1562 --disable-largefile omit support for large files 1563 --disable-threadsafe Disable mutexing 1564 --enable-releasemode Support libtool link to release mode 1565 --enable-tempstore Use an in-ram database for temporary tables 1566 (never,no,yes,always) 1567 --disable-tcl do not build TCL extension 1568 --disable-readline disable readline support [default=detect] 1569 --enable-debug enable debugging & verbose explain 1570 --disable-amalgamation Disable the amalgamation and instead build all files 1571 separately 1572 --disable-load-extension 1573 Disable loading of external extensions 1574 --enable-gcov Enable coverage testing using gcov 1575 1576Optional Packages: 1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1579 --with-pic try to use only PIC/non-PIC objects [default=use 1580 both] 1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1582 --with-tcl=DIR directory containing tcl configuration 1583 (tclConfig.sh) 1584 --with-readline-lib specify readline library 1585 --with-readline-inc specify readline include paths 1586 1587Some influential environment variables: 1588 CC C compiler command 1589 CFLAGS C compiler flags 1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1591 nonstandard directory <lib dir> 1592 LIBS libraries to pass to the linker, e.g. -l<library> 1593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1594 you have headers in a nonstandard directory <include dir> 1595 CPP C preprocessor 1596 TCLLIBDIR Where to install tcl plugin 1597 1598Use these variables to override the choices made by `configure' or to help 1599it to find libraries and programs with nonstandard names/locations. 1600 1601_ACEOF 1602ac_status=$? 1603fi 1604 1605if test "$ac_init_help" = "recursive"; then 1606 # If there are subdirs, report their specific --help. 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1608 test -d "$ac_dir" || 1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1610 continue 1611 ac_builddir=. 1612 1613case "$ac_dir" in 1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615*) 1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1617 # A ".." for each directory in $ac_dir_suffix. 1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1619 case $ac_top_builddir_sub in 1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1622 esac ;; 1623esac 1624ac_abs_top_builddir=$ac_pwd 1625ac_abs_builddir=$ac_pwd$ac_dir_suffix 1626# for backward compatibility: 1627ac_top_builddir=$ac_top_build_prefix 1628 1629case $srcdir in 1630 .) # We are building in place. 1631 ac_srcdir=. 1632 ac_top_srcdir=$ac_top_builddir_sub 1633 ac_abs_top_srcdir=$ac_pwd ;; 1634 [\\/]* | ?:[\\/]* ) # Absolute name. 1635 ac_srcdir=$srcdir$ac_dir_suffix; 1636 ac_top_srcdir=$srcdir 1637 ac_abs_top_srcdir=$srcdir ;; 1638 *) # Relative name. 1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1640 ac_top_srcdir=$ac_top_build_prefix$srcdir 1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1642esac 1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1644 1645 cd "$ac_dir" || { ac_status=$?; continue; } 1646 # Check for guested configure. 1647 if test -f "$ac_srcdir/configure.gnu"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1650 elif test -f "$ac_srcdir/configure"; then 1651 echo && 1652 $SHELL "$ac_srcdir/configure" --help=recursive 1653 else 1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1655 fi || ac_status=$? 1656 cd "$ac_pwd" || { ac_status=$?; break; } 1657 done 1658fi 1659 1660test -n "$ac_init_help" && exit $ac_status 1661if $ac_init_version; then 1662 cat <<\_ACEOF 1663sqlite configure 3.8.9 1664generated by GNU Autoconf 2.62 1665 1666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16672002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1668This configure script is free software; the Free Software Foundation 1669gives unlimited permission to copy, distribute and modify it. 1670_ACEOF 1671 exit 1672fi 1673cat >config.log <<_ACEOF 1674This file contains any messages produced by compilers while 1675running configure, to aid debugging if configure makes a mistake. 1676 1677It was created by sqlite $as_me 3.8.9, which was 1678generated by GNU Autoconf 2.62. Invocation command line was 1679 1680 $ $0 $@ 1681 1682_ACEOF 1683exec 5>>config.log 1684{ 1685cat <<_ASUNAME 1686## --------- ## 1687## Platform. ## 1688## --------- ## 1689 1690hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1691uname -m = `(uname -m) 2>/dev/null || echo unknown` 1692uname -r = `(uname -r) 2>/dev/null || echo unknown` 1693uname -s = `(uname -s) 2>/dev/null || echo unknown` 1694uname -v = `(uname -v) 2>/dev/null || echo unknown` 1695 1696/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1697/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1698 1699/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1700/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1701/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1702/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1703/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1704/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1705/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1706 1707_ASUNAME 1708 1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1710for as_dir in $PATH 1711do 1712 IFS=$as_save_IFS 1713 test -z "$as_dir" && as_dir=. 1714 $as_echo "PATH: $as_dir" 1715done 1716IFS=$as_save_IFS 1717 1718} >&5 1719 1720cat >&5 <<_ACEOF 1721 1722 1723## ----------- ## 1724## Core tests. ## 1725## ----------- ## 1726 1727_ACEOF 1728 1729 1730# Keep a trace of the command line. 1731# Strip out --no-create and --no-recursion so they do not pile up. 1732# Strip out --silent because we don't want to record it for future runs. 1733# Also quote any args containing shell meta-characters. 1734# Make two passes to allow for proper duplicate-argument suppression. 1735ac_configure_args= 1736ac_configure_args0= 1737ac_configure_args1= 1738ac_must_keep_next=false 1739for ac_pass in 1 2 1740do 1741 for ac_arg 1742 do 1743 case $ac_arg in 1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1746 | -silent | --silent | --silen | --sile | --sil) 1747 continue ;; 1748 *\'*) 1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1750 esac 1751 case $ac_pass in 1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1753 2) 1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1755 if test $ac_must_keep_next = true; then 1756 ac_must_keep_next=false # Got value, back to normal. 1757 else 1758 case $ac_arg in 1759 *=* | --config-cache | -C | -disable-* | --disable-* \ 1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1762 | -with-* | --with-* | -without-* | --without-* | --x) 1763 case "$ac_configure_args0 " in 1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1765 esac 1766 ;; 1767 -* ) ac_must_keep_next=true ;; 1768 esac 1769 fi 1770 ac_configure_args="$ac_configure_args '$ac_arg'" 1771 ;; 1772 esac 1773 done 1774done 1775$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1776$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1777 1778# When interrupted or exit'd, cleanup temporary files, and complete 1779# config.log. We remove comments because anyway the quotes in there 1780# would cause problems or look ugly. 1781# WARNING: Use '\'' to represent an apostrophe within the trap. 1782# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1783trap 'exit_status=$? 1784 # Save into config.log some information that might help in debugging. 1785 { 1786 echo 1787 1788 cat <<\_ASBOX 1789## ---------------- ## 1790## Cache variables. ## 1791## ---------------- ## 1792_ASBOX 1793 echo 1794 # The following way of writing the cache mishandles newlines in values, 1795( 1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1797 eval ac_val=\$$ac_var 1798 case $ac_val in #( 1799 *${as_nl}*) 1800 case $ac_var in #( 1801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1802$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1803 esac 1804 case $ac_var in #( 1805 _ | IFS | as_nl) ;; #( 1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1807 *) $as_unset $ac_var ;; 1808 esac ;; 1809 esac 1810 done 1811 (set) 2>&1 | 1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1813 *${as_nl}ac_space=\ *) 1814 sed -n \ 1815 "s/'\''/'\''\\\\'\'''\''/g; 1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1817 ;; #( 1818 *) 1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1820 ;; 1821 esac | 1822 sort 1823) 1824 echo 1825 1826 cat <<\_ASBOX 1827## ----------------- ## 1828## Output variables. ## 1829## ----------------- ## 1830_ASBOX 1831 echo 1832 for ac_var in $ac_subst_vars 1833 do 1834 eval ac_val=\$$ac_var 1835 case $ac_val in 1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1837 esac 1838 $as_echo "$ac_var='\''$ac_val'\''" 1839 done | sort 1840 echo 1841 1842 if test -n "$ac_subst_files"; then 1843 cat <<\_ASBOX 1844## ------------------- ## 1845## File substitutions. ## 1846## ------------------- ## 1847_ASBOX 1848 echo 1849 for ac_var in $ac_subst_files 1850 do 1851 eval ac_val=\$$ac_var 1852 case $ac_val in 1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1854 esac 1855 $as_echo "$ac_var='\''$ac_val'\''" 1856 done | sort 1857 echo 1858 fi 1859 1860 if test -s confdefs.h; then 1861 cat <<\_ASBOX 1862## ----------- ## 1863## confdefs.h. ## 1864## ----------- ## 1865_ASBOX 1866 echo 1867 cat confdefs.h 1868 echo 1869 fi 1870 test "$ac_signal" != 0 && 1871 $as_echo "$as_me: caught signal $ac_signal" 1872 $as_echo "$as_me: exit $exit_status" 1873 } >&5 1874 rm -f core *.core core.conftest.* && 1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1876 exit $exit_status 1877' 0 1878for ac_signal in 1 2 13 15; do 1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1880done 1881ac_signal=0 1882 1883# confdefs.h avoids OS command line length limits that DEFS can exceed. 1884rm -f -r conftest* confdefs.h 1885 1886# Predefined preprocessor variables. 1887 1888cat >>confdefs.h <<_ACEOF 1889#define PACKAGE_NAME "$PACKAGE_NAME" 1890_ACEOF 1891 1892 1893cat >>confdefs.h <<_ACEOF 1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1895_ACEOF 1896 1897 1898cat >>confdefs.h <<_ACEOF 1899#define PACKAGE_VERSION "$PACKAGE_VERSION" 1900_ACEOF 1901 1902 1903cat >>confdefs.h <<_ACEOF 1904#define PACKAGE_STRING "$PACKAGE_STRING" 1905_ACEOF 1906 1907 1908cat >>confdefs.h <<_ACEOF 1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1910_ACEOF 1911 1912 1913# Let the site file select an alternate cache file if it wants to. 1914# Prefer an explicitly selected file to automatically selected ones. 1915ac_site_file1=NONE 1916ac_site_file2=NONE 1917if test -n "$CONFIG_SITE"; then 1918 ac_site_file1=$CONFIG_SITE 1919elif test "x$prefix" != xNONE; then 1920 ac_site_file1=$prefix/share/config.site 1921 ac_site_file2=$prefix/etc/config.site 1922else 1923 ac_site_file1=$ac_default_prefix/share/config.site 1924 ac_site_file2=$ac_default_prefix/etc/config.site 1925fi 1926for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1927do 1928 test "x$ac_site_file" = xNONE && continue 1929 if test -r "$ac_site_file"; then 1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1931$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1932 sed 's/^/| /' "$ac_site_file" >&5 1933 . "$ac_site_file" 1934 fi 1935done 1936 1937if test -r "$cache_file"; then 1938 # Some versions of bash will fail to source /dev/null (special 1939 # files actually), so we avoid doing that. 1940 if test -f "$cache_file"; then 1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1942$as_echo "$as_me: loading cache $cache_file" >&6;} 1943 case $cache_file in 1944 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1945 *) . "./$cache_file";; 1946 esac 1947 fi 1948else 1949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1950$as_echo "$as_me: creating cache $cache_file" >&6;} 1951 >$cache_file 1952fi 1953 1954# Check that the precious variables saved in the cache have kept the same 1955# value. 1956ac_cache_corrupted=false 1957for ac_var in $ac_precious_vars; do 1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1959 eval ac_new_set=\$ac_env_${ac_var}_set 1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1961 eval ac_new_val=\$ac_env_${ac_var}_value 1962 case $ac_old_set,$ac_new_set in 1963 set,) 1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1965$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1966 ac_cache_corrupted=: ;; 1967 ,set) 1968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1969$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1970 ac_cache_corrupted=: ;; 1971 ,);; 1972 *) 1973 if test "x$ac_old_val" != "x$ac_new_val"; then 1974 # differences in whitespace do not lead to failure. 1975 ac_old_val_w=`echo x $ac_old_val` 1976 ac_new_val_w=`echo x $ac_new_val` 1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1979$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1980 ac_cache_corrupted=: 1981 else 1982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1983$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1984 eval $ac_var=\$ac_old_val 1985 fi 1986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1987$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1989$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1990 fi;; 1991 esac 1992 # Pass precious variables to config.status. 1993 if test "$ac_new_set" = set; then 1994 case $ac_new_val in 1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1996 *) ac_arg=$ac_var=$ac_new_val ;; 1997 esac 1998 case " $ac_configure_args " in 1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2001 esac 2002 fi 2003done 2004if $ac_cache_corrupted; then 2005 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2006$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2007 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2008$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2009 { (exit 1); exit 1; }; } 2010fi 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036ac_ext=c 2037ac_cpp='$CPP $CPPFLAGS' 2038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2040ac_compiler_gnu=$ac_cv_c_compiler_gnu 2041 2042 2043 2044sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2045if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2046{ { $as_echo "$as_me:$LINENO: error: configure script is out of date: 2047 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2048 top level VERSION file = $sqlite_version_sanity_check 2049please regen with autoconf" >&5 2050$as_echo "$as_me: error: configure script is out of date: 2051 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2052 top level VERSION file = $sqlite_version_sanity_check 2053please regen with autoconf" >&2;} 2054 { (exit 1); exit 1; }; } 2055fi 2056 2057######### 2058# Programs needed 2059# 2060case `pwd` in 2061 *\ * | *\ *) 2062 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2063$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2064esac 2065 2066 2067 2068macro_version='2.2.6' 2069macro_revision='1.3012' 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083ltmain="$ac_aux_dir/ltmain.sh" 2084 2085ac_aux_dir= 2086for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2087 if test -f "$ac_dir/install-sh"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/install-sh -c" 2090 break 2091 elif test -f "$ac_dir/install.sh"; then 2092 ac_aux_dir=$ac_dir 2093 ac_install_sh="$ac_aux_dir/install.sh -c" 2094 break 2095 elif test -f "$ac_dir/shtool"; then 2096 ac_aux_dir=$ac_dir 2097 ac_install_sh="$ac_aux_dir/shtool install -c" 2098 break 2099 fi 2100done 2101if test -z "$ac_aux_dir"; then 2102 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2103$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2104 { (exit 1); exit 1; }; } 2105fi 2106 2107# These three variables are undocumented and unsupported, 2108# and are intended to be withdrawn in a future Autoconf release. 2109# They can cause serious problems if a builder's source tree is in a directory 2110# whose full name contains unusual characters. 2111ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2112ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2113ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2114 2115 2116# Make sure we can run config.sub. 2117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2118 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2119$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2120 { (exit 1); exit 1; }; } 2121 2122{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2123$as_echo_n "checking build system type... " >&6; } 2124if test "${ac_cv_build+set}" = set; then 2125 $as_echo_n "(cached) " >&6 2126else 2127 ac_build_alias=$build_alias 2128test "x$ac_build_alias" = x && 2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2130test "x$ac_build_alias" = x && 2131 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2132$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2133 { (exit 1); exit 1; }; } 2134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2135 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2136$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2137 { (exit 1); exit 1; }; } 2138 2139fi 2140{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2141$as_echo "$ac_cv_build" >&6; } 2142case $ac_cv_build in 2143*-*-*) ;; 2144*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2145$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2146 { (exit 1); exit 1; }; };; 2147esac 2148build=$ac_cv_build 2149ac_save_IFS=$IFS; IFS='-' 2150set x $ac_cv_build 2151shift 2152build_cpu=$1 2153build_vendor=$2 2154shift; shift 2155# Remember, the first character of IFS is used to create $*, 2156# except with old shells: 2157build_os=$* 2158IFS=$ac_save_IFS 2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2160 2161 2162{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2163$as_echo_n "checking host system type... " >&6; } 2164if test "${ac_cv_host+set}" = set; then 2165 $as_echo_n "(cached) " >&6 2166else 2167 if test "x$host_alias" = x; then 2168 ac_cv_host=$ac_cv_build 2169else 2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2171 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2172$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2173 { (exit 1); exit 1; }; } 2174fi 2175 2176fi 2177{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2178$as_echo "$ac_cv_host" >&6; } 2179case $ac_cv_host in 2180*-*-*) ;; 2181*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2182$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2183 { (exit 1); exit 1; }; };; 2184esac 2185host=$ac_cv_host 2186ac_save_IFS=$IFS; IFS='-' 2187set x $ac_cv_host 2188shift 2189host_cpu=$1 2190host_vendor=$2 2191shift; shift 2192# Remember, the first character of IFS is used to create $*, 2193# except with old shells: 2194host_os=$* 2195IFS=$ac_save_IFS 2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2197 2198 2199ac_ext=c 2200ac_cpp='$CPP $CPPFLAGS' 2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2203ac_compiler_gnu=$ac_cv_c_compiler_gnu 2204if test -n "$ac_tool_prefix"; then 2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2206set dummy ${ac_tool_prefix}gcc; ac_word=$2 2207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2208$as_echo_n "checking for $ac_word... " >&6; } 2209if test "${ac_cv_prog_CC+set}" = set; then 2210 $as_echo_n "(cached) " >&6 2211else 2212 if test -n "$CC"; then 2213 ac_cv_prog_CC="$CC" # Let the user override the test. 2214else 2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2216for as_dir in $PATH 2217do 2218 IFS=$as_save_IFS 2219 test -z "$as_dir" && as_dir=. 2220 for ac_exec_ext in '' $ac_executable_extensions; do 2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2222 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2224 break 2 2225 fi 2226done 2227done 2228IFS=$as_save_IFS 2229 2230fi 2231fi 2232CC=$ac_cv_prog_CC 2233if test -n "$CC"; then 2234 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2235$as_echo "$CC" >&6; } 2236else 2237 { $as_echo "$as_me:$LINENO: result: no" >&5 2238$as_echo "no" >&6; } 2239fi 2240 2241 2242fi 2243if test -z "$ac_cv_prog_CC"; then 2244 ac_ct_CC=$CC 2245 # Extract the first word of "gcc", so it can be a program name with args. 2246set dummy gcc; ac_word=$2 2247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2248$as_echo_n "checking for $ac_word... " >&6; } 2249if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2250 $as_echo_n "(cached) " >&6 2251else 2252 if test -n "$ac_ct_CC"; then 2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2254else 2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2256for as_dir in $PATH 2257do 2258 IFS=$as_save_IFS 2259 test -z "$as_dir" && as_dir=. 2260 for ac_exec_ext in '' $ac_executable_extensions; do 2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2262 ac_cv_prog_ac_ct_CC="gcc" 2263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2264 break 2 2265 fi 2266done 2267done 2268IFS=$as_save_IFS 2269 2270fi 2271fi 2272ac_ct_CC=$ac_cv_prog_ac_ct_CC 2273if test -n "$ac_ct_CC"; then 2274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2275$as_echo "$ac_ct_CC" >&6; } 2276else 2277 { $as_echo "$as_me:$LINENO: result: no" >&5 2278$as_echo "no" >&6; } 2279fi 2280 2281 if test "x$ac_ct_CC" = x; then 2282 CC="" 2283 else 2284 case $cross_compiling:$ac_tool_warned in 2285yes:) 2286{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2287whose name does not start with the host triplet. If you think this 2288configuration is useful to you, please write to autoconf@gnu.org." >&5 2289$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2290whose name does not start with the host triplet. If you think this 2291configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2292ac_tool_warned=yes ;; 2293esac 2294 CC=$ac_ct_CC 2295 fi 2296else 2297 CC="$ac_cv_prog_CC" 2298fi 2299 2300if test -z "$CC"; then 2301 if test -n "$ac_tool_prefix"; then 2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2303set dummy ${ac_tool_prefix}cc; ac_word=$2 2304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2305$as_echo_n "checking for $ac_word... " >&6; } 2306if test "${ac_cv_prog_CC+set}" = set; then 2307 $as_echo_n "(cached) " >&6 2308else 2309 if test -n "$CC"; then 2310 ac_cv_prog_CC="$CC" # Let the user override the test. 2311else 2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313for as_dir in $PATH 2314do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 for ac_exec_ext in '' $ac_executable_extensions; do 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2319 ac_cv_prog_CC="${ac_tool_prefix}cc" 2320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323done 2324done 2325IFS=$as_save_IFS 2326 2327fi 2328fi 2329CC=$ac_cv_prog_CC 2330if test -n "$CC"; then 2331 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2332$as_echo "$CC" >&6; } 2333else 2334 { $as_echo "$as_me:$LINENO: result: no" >&5 2335$as_echo "no" >&6; } 2336fi 2337 2338 2339 fi 2340fi 2341if test -z "$CC"; then 2342 # Extract the first word of "cc", so it can be a program name with args. 2343set dummy cc; ac_word=$2 2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if test "${ac_cv_prog_CC+set}" = set; then 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$CC"; then 2350 ac_cv_prog_CC="$CC" # Let the user override the test. 2351else 2352 ac_prog_rejected=no 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2361 ac_prog_rejected=yes 2362 continue 2363 fi 2364 ac_cv_prog_CC="cc" 2365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370IFS=$as_save_IFS 2371 2372if test $ac_prog_rejected = yes; then 2373 # We found a bogon in the path, so make sure we never use it. 2374 set dummy $ac_cv_prog_CC 2375 shift 2376 if test $# != 0; then 2377 # We chose a different compiler from the bogus one. 2378 # However, it has the same basename, so the bogon will be chosen 2379 # first if we set CC to just the basename; use the full file name. 2380 shift 2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2382 fi 2383fi 2384fi 2385fi 2386CC=$ac_cv_prog_CC 2387if test -n "$CC"; then 2388 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2389$as_echo "$CC" >&6; } 2390else 2391 { $as_echo "$as_me:$LINENO: result: no" >&5 2392$as_echo "no" >&6; } 2393fi 2394 2395 2396fi 2397if test -z "$CC"; then 2398 if test -n "$ac_tool_prefix"; then 2399 for ac_prog in cl.exe 2400 do 2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2402set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2404$as_echo_n "checking for $ac_word... " >&6; } 2405if test "${ac_cv_prog_CC+set}" = set; then 2406 $as_echo_n "(cached) " >&6 2407else 2408 if test -n "$CC"; then 2409 ac_cv_prog_CC="$CC" # Let the user override the test. 2410else 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_exec_ext in '' $ac_executable_extensions; do 2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2420 break 2 2421 fi 2422done 2423done 2424IFS=$as_save_IFS 2425 2426fi 2427fi 2428CC=$ac_cv_prog_CC 2429if test -n "$CC"; then 2430 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2431$as_echo "$CC" >&6; } 2432else 2433 { $as_echo "$as_me:$LINENO: result: no" >&5 2434$as_echo "no" >&6; } 2435fi 2436 2437 2438 test -n "$CC" && break 2439 done 2440fi 2441if test -z "$CC"; then 2442 ac_ct_CC=$CC 2443 for ac_prog in cl.exe 2444do 2445 # Extract the first word of "$ac_prog", so it can be a program name with args. 2446set dummy $ac_prog; ac_word=$2 2447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2448$as_echo_n "checking for $ac_word... " >&6; } 2449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2450 $as_echo_n "(cached) " >&6 2451else 2452 if test -n "$ac_ct_CC"; then 2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2454else 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2462 ac_cv_prog_ac_ct_CC="$ac_prog" 2463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2464 break 2 2465 fi 2466done 2467done 2468IFS=$as_save_IFS 2469 2470fi 2471fi 2472ac_ct_CC=$ac_cv_prog_ac_ct_CC 2473if test -n "$ac_ct_CC"; then 2474 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2475$as_echo "$ac_ct_CC" >&6; } 2476else 2477 { $as_echo "$as_me:$LINENO: result: no" >&5 2478$as_echo "no" >&6; } 2479fi 2480 2481 2482 test -n "$ac_ct_CC" && break 2483done 2484 2485 if test "x$ac_ct_CC" = x; then 2486 CC="" 2487 else 2488 case $cross_compiling:$ac_tool_warned in 2489yes:) 2490{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2491whose name does not start with the host triplet. If you think this 2492configuration is useful to you, please write to autoconf@gnu.org." >&5 2493$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2494whose name does not start with the host triplet. If you think this 2495configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 CC=$ac_ct_CC 2499 fi 2500fi 2501 2502fi 2503 2504 2505test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2506See \`config.log' for more details." >&5 2507$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2508See \`config.log' for more details." >&2;} 2509 { (exit 1); exit 1; }; } 2510 2511# Provide some information about the compiler. 2512$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2513set X $ac_compile 2514ac_compiler=$2 2515{ (ac_try="$ac_compiler --version >&5" 2516case "(($ac_try" in 2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2518 *) ac_try_echo=$ac_try;; 2519esac 2520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2521$as_echo "$ac_try_echo") >&5 2522 (eval "$ac_compiler --version >&5") 2>&5 2523 ac_status=$? 2524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } 2526{ (ac_try="$ac_compiler -v >&5" 2527case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530esac 2531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2532$as_echo "$ac_try_echo") >&5 2533 (eval "$ac_compiler -v >&5") 2>&5 2534 ac_status=$? 2535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); } 2537{ (ac_try="$ac_compiler -V >&5" 2538case "(($ac_try" in 2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2540 *) ac_try_echo=$ac_try;; 2541esac 2542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2543$as_echo "$ac_try_echo") >&5 2544 (eval "$ac_compiler -V >&5") 2>&5 2545 ac_status=$? 2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } 2548 2549cat >conftest.$ac_ext <<_ACEOF 2550/* confdefs.h. */ 2551_ACEOF 2552cat confdefs.h >>conftest.$ac_ext 2553cat >>conftest.$ac_ext <<_ACEOF 2554/* end confdefs.h. */ 2555 2556int 2557main () 2558{ 2559 2560 ; 2561 return 0; 2562} 2563_ACEOF 2564ac_clean_files_save=$ac_clean_files 2565ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2566# Try to create an executable without -o first, disregard a.out. 2567# It will help us diagnose broken compilers, and finding out an intuition 2568# of exeext. 2569{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2570$as_echo_n "checking for C compiler default output file name... " >&6; } 2571ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2572 2573# The possible output files: 2574ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2575 2576ac_rmfiles= 2577for ac_file in $ac_files 2578do 2579 case $ac_file in 2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2581 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2582 esac 2583done 2584rm -f $ac_rmfiles 2585 2586if { (ac_try="$ac_link_default" 2587case "(($ac_try" in 2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2589 *) ac_try_echo=$ac_try;; 2590esac 2591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2592$as_echo "$ac_try_echo") >&5 2593 (eval "$ac_link_default") 2>&5 2594 ac_status=$? 2595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; then 2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2598# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2599# in a Makefile. We should not override ac_cv_exeext if it was cached, 2600# so that the user can short-circuit this test for compilers unknown to 2601# Autoconf. 2602for ac_file in $ac_files '' 2603do 2604 test -f "$ac_file" || continue 2605 case $ac_file in 2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2607 ;; 2608 [ab].out ) 2609 # We found the default executable, but exeext='' is most 2610 # certainly right. 2611 break;; 2612 *.* ) 2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2614 then :; else 2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2616 fi 2617 # We set ac_cv_exeext here because the later test for it is not 2618 # safe: cross compilers may not add the suffix if given an `-o' 2619 # argument, so we may need to know it at that point already. 2620 # Even if this section looks crufty: it has the advantage of 2621 # actually working. 2622 break;; 2623 * ) 2624 break;; 2625 esac 2626done 2627test "$ac_cv_exeext" = no && ac_cv_exeext= 2628 2629else 2630 ac_file='' 2631fi 2632 2633{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2634$as_echo "$ac_file" >&6; } 2635if test -z "$ac_file"; then 2636 $as_echo "$as_me: failed program was:" >&5 2637sed 's/^/| /' conftest.$ac_ext >&5 2638 2639{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2640See \`config.log' for more details." >&5 2641$as_echo "$as_me: error: C compiler cannot create executables 2642See \`config.log' for more details." >&2;} 2643 { (exit 77); exit 77; }; } 2644fi 2645 2646ac_exeext=$ac_cv_exeext 2647 2648# Check that the compiler produces executables we can run. If not, either 2649# the compiler is broken, or we cross compile. 2650{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2651$as_echo_n "checking whether the C compiler works... " >&6; } 2652# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2653# If not cross compiling, check that we can run a simple program. 2654if test "$cross_compiling" != yes; then 2655 if { ac_try='./$ac_file' 2656 { (case "(($ac_try" in 2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2658 *) ac_try_echo=$ac_try;; 2659esac 2660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2661$as_echo "$ac_try_echo") >&5 2662 (eval "$ac_try") 2>&5 2663 ac_status=$? 2664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2665 (exit $ac_status); }; }; then 2666 cross_compiling=no 2667 else 2668 if test "$cross_compiling" = maybe; then 2669 cross_compiling=yes 2670 else 2671 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2672If you meant to cross compile, use \`--host'. 2673See \`config.log' for more details." >&5 2674$as_echo "$as_me: error: cannot run C compiled programs. 2675If you meant to cross compile, use \`--host'. 2676See \`config.log' for more details." >&2;} 2677 { (exit 1); exit 1; }; } 2678 fi 2679 fi 2680fi 2681{ $as_echo "$as_me:$LINENO: result: yes" >&5 2682$as_echo "yes" >&6; } 2683 2684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2685ac_clean_files=$ac_clean_files_save 2686# Check that the compiler produces executables we can run. If not, either 2687# the compiler is broken, or we cross compile. 2688{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2689$as_echo_n "checking whether we are cross compiling... " >&6; } 2690{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2691$as_echo "$cross_compiling" >&6; } 2692 2693{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2694$as_echo_n "checking for suffix of executables... " >&6; } 2695if { (ac_try="$ac_link" 2696case "(($ac_try" in 2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2698 *) ac_try_echo=$ac_try;; 2699esac 2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2701$as_echo "$ac_try_echo") >&5 2702 (eval "$ac_link") 2>&5 2703 ac_status=$? 2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); }; then 2706 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2707# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2708# work properly (i.e., refer to `conftest.exe'), while it won't with 2709# `rm'. 2710for ac_file in conftest.exe conftest conftest.*; do 2711 test -f "$ac_file" || continue 2712 case $ac_file in 2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2715 break;; 2716 * ) break;; 2717 esac 2718done 2719else 2720 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2721See \`config.log' for more details." >&5 2722$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2723See \`config.log' for more details." >&2;} 2724 { (exit 1); exit 1; }; } 2725fi 2726 2727rm -f conftest$ac_cv_exeext 2728{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2729$as_echo "$ac_cv_exeext" >&6; } 2730 2731rm -f conftest.$ac_ext 2732EXEEXT=$ac_cv_exeext 2733ac_exeext=$EXEEXT 2734{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2735$as_echo_n "checking for suffix of object files... " >&6; } 2736if test "${ac_cv_objext+set}" = set; then 2737 $as_echo_n "(cached) " >&6 2738else 2739 cat >conftest.$ac_ext <<_ACEOF 2740/* confdefs.h. */ 2741_ACEOF 2742cat confdefs.h >>conftest.$ac_ext 2743cat >>conftest.$ac_ext <<_ACEOF 2744/* end confdefs.h. */ 2745 2746int 2747main () 2748{ 2749 2750 ; 2751 return 0; 2752} 2753_ACEOF 2754rm -f conftest.o conftest.obj 2755if { (ac_try="$ac_compile" 2756case "(($ac_try" in 2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2758 *) ac_try_echo=$ac_try;; 2759esac 2760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2761$as_echo "$ac_try_echo") >&5 2762 (eval "$ac_compile") 2>&5 2763 ac_status=$? 2764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2765 (exit $ac_status); }; then 2766 for ac_file in conftest.o conftest.obj conftest.*; do 2767 test -f "$ac_file" || continue; 2768 case $ac_file in 2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2770 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2771 break;; 2772 esac 2773done 2774else 2775 $as_echo "$as_me: failed program was:" >&5 2776sed 's/^/| /' conftest.$ac_ext >&5 2777 2778{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2779See \`config.log' for more details." >&5 2780$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2781See \`config.log' for more details." >&2;} 2782 { (exit 1); exit 1; }; } 2783fi 2784 2785rm -f conftest.$ac_cv_objext conftest.$ac_ext 2786fi 2787{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2788$as_echo "$ac_cv_objext" >&6; } 2789OBJEXT=$ac_cv_objext 2790ac_objext=$OBJEXT 2791{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2793if test "${ac_cv_c_compiler_gnu+set}" = set; then 2794 $as_echo_n "(cached) " >&6 2795else 2796 cat >conftest.$ac_ext <<_ACEOF 2797/* confdefs.h. */ 2798_ACEOF 2799cat confdefs.h >>conftest.$ac_ext 2800cat >>conftest.$ac_ext <<_ACEOF 2801/* end confdefs.h. */ 2802 2803int 2804main () 2805{ 2806#ifndef __GNUC__ 2807 choke me 2808#endif 2809 2810 ; 2811 return 0; 2812} 2813_ACEOF 2814rm -f conftest.$ac_objext 2815if { (ac_try="$ac_compile" 2816case "(($ac_try" in 2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2818 *) ac_try_echo=$ac_try;; 2819esac 2820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2821$as_echo "$ac_try_echo") >&5 2822 (eval "$ac_compile") 2>conftest.er1 2823 ac_status=$? 2824 grep -v '^ *+' conftest.er1 >conftest.err 2825 rm -f conftest.er1 2826 cat conftest.err >&5 2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2828 (exit $ac_status); } && { 2829 test -z "$ac_c_werror_flag" || 2830 test ! -s conftest.err 2831 } && test -s conftest.$ac_objext; then 2832 ac_compiler_gnu=yes 2833else 2834 $as_echo "$as_me: failed program was:" >&5 2835sed 's/^/| /' conftest.$ac_ext >&5 2836 2837 ac_compiler_gnu=no 2838fi 2839 2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2841ac_cv_c_compiler_gnu=$ac_compiler_gnu 2842 2843fi 2844{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2845$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2846if test $ac_compiler_gnu = yes; then 2847 GCC=yes 2848else 2849 GCC= 2850fi 2851ac_test_CFLAGS=${CFLAGS+set} 2852ac_save_CFLAGS=$CFLAGS 2853{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2854$as_echo_n "checking whether $CC accepts -g... " >&6; } 2855if test "${ac_cv_prog_cc_g+set}" = set; then 2856 $as_echo_n "(cached) " >&6 2857else 2858 ac_save_c_werror_flag=$ac_c_werror_flag 2859 ac_c_werror_flag=yes 2860 ac_cv_prog_cc_g=no 2861 CFLAGS="-g" 2862 cat >conftest.$ac_ext <<_ACEOF 2863/* confdefs.h. */ 2864_ACEOF 2865cat confdefs.h >>conftest.$ac_ext 2866cat >>conftest.$ac_ext <<_ACEOF 2867/* end confdefs.h. */ 2868 2869int 2870main () 2871{ 2872 2873 ; 2874 return 0; 2875} 2876_ACEOF 2877rm -f conftest.$ac_objext 2878if { (ac_try="$ac_compile" 2879case "(($ac_try" in 2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2881 *) ac_try_echo=$ac_try;; 2882esac 2883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2884$as_echo "$ac_try_echo") >&5 2885 (eval "$ac_compile") 2>conftest.er1 2886 ac_status=$? 2887 grep -v '^ *+' conftest.er1 >conftest.err 2888 rm -f conftest.er1 2889 cat conftest.err >&5 2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); } && { 2892 test -z "$ac_c_werror_flag" || 2893 test ! -s conftest.err 2894 } && test -s conftest.$ac_objext; then 2895 ac_cv_prog_cc_g=yes 2896else 2897 $as_echo "$as_me: failed program was:" >&5 2898sed 's/^/| /' conftest.$ac_ext >&5 2899 2900 CFLAGS="" 2901 cat >conftest.$ac_ext <<_ACEOF 2902/* confdefs.h. */ 2903_ACEOF 2904cat confdefs.h >>conftest.$ac_ext 2905cat >>conftest.$ac_ext <<_ACEOF 2906/* end confdefs.h. */ 2907 2908int 2909main () 2910{ 2911 2912 ; 2913 return 0; 2914} 2915_ACEOF 2916rm -f conftest.$ac_objext 2917if { (ac_try="$ac_compile" 2918case "(($ac_try" in 2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2920 *) ac_try_echo=$ac_try;; 2921esac 2922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2923$as_echo "$ac_try_echo") >&5 2924 (eval "$ac_compile") 2>conftest.er1 2925 ac_status=$? 2926 grep -v '^ *+' conftest.er1 >conftest.err 2927 rm -f conftest.er1 2928 cat conftest.err >&5 2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); } && { 2931 test -z "$ac_c_werror_flag" || 2932 test ! -s conftest.err 2933 } && test -s conftest.$ac_objext; then 2934 : 2935else 2936 $as_echo "$as_me: failed program was:" >&5 2937sed 's/^/| /' conftest.$ac_ext >&5 2938 2939 ac_c_werror_flag=$ac_save_c_werror_flag 2940 CFLAGS="-g" 2941 cat >conftest.$ac_ext <<_ACEOF 2942/* confdefs.h. */ 2943_ACEOF 2944cat confdefs.h >>conftest.$ac_ext 2945cat >>conftest.$ac_ext <<_ACEOF 2946/* end confdefs.h. */ 2947 2948int 2949main () 2950{ 2951 2952 ; 2953 return 0; 2954} 2955_ACEOF 2956rm -f conftest.$ac_objext 2957if { (ac_try="$ac_compile" 2958case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961esac 2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2963$as_echo "$ac_try_echo") >&5 2964 (eval "$ac_compile") 2>conftest.er1 2965 ac_status=$? 2966 grep -v '^ *+' conftest.er1 >conftest.err 2967 rm -f conftest.er1 2968 cat conftest.err >&5 2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); } && { 2971 test -z "$ac_c_werror_flag" || 2972 test ! -s conftest.err 2973 } && test -s conftest.$ac_objext; then 2974 ac_cv_prog_cc_g=yes 2975else 2976 $as_echo "$as_me: failed program was:" >&5 2977sed 's/^/| /' conftest.$ac_ext >&5 2978 2979 2980fi 2981 2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2983fi 2984 2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2986fi 2987 2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2989 ac_c_werror_flag=$ac_save_c_werror_flag 2990fi 2991{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2992$as_echo "$ac_cv_prog_cc_g" >&6; } 2993if test "$ac_test_CFLAGS" = set; then 2994 CFLAGS=$ac_save_CFLAGS 2995elif test $ac_cv_prog_cc_g = yes; then 2996 if test "$GCC" = yes; then 2997 CFLAGS="-g -O2" 2998 else 2999 CFLAGS="-g" 3000 fi 3001else 3002 if test "$GCC" = yes; then 3003 CFLAGS="-O2" 3004 else 3005 CFLAGS= 3006 fi 3007fi 3008{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3009$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3010if test "${ac_cv_prog_cc_c89+set}" = set; then 3011 $as_echo_n "(cached) " >&6 3012else 3013 ac_cv_prog_cc_c89=no 3014ac_save_CC=$CC 3015cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021#include <stdarg.h> 3022#include <stdio.h> 3023#include <sys/types.h> 3024#include <sys/stat.h> 3025/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3026struct buf { int x; }; 3027FILE * (*rcsopen) (struct buf *, struct stat *, int); 3028static char *e (p, i) 3029 char **p; 3030 int i; 3031{ 3032 return p[i]; 3033} 3034static char *f (char * (*g) (char **, int), char **p, ...) 3035{ 3036 char *s; 3037 va_list v; 3038 va_start (v,p); 3039 s = g (p, va_arg (v,int)); 3040 va_end (v); 3041 return s; 3042} 3043 3044/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3045 function prototypes and stuff, but not '\xHH' hex character constants. 3046 These don't provoke an error unfortunately, instead are silently treated 3047 as 'x'. The following induces an error, until -std is added to get 3048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3049 array size at least. It's necessary to write '\x00'==0 to get something 3050 that's true only with -std. */ 3051int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3052 3053/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3054 inside strings and character constants. */ 3055#define FOO(x) 'x' 3056int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3057 3058int test (int i, double x); 3059struct s1 {int (*f) (int a);}; 3060struct s2 {int (*f) (double a);}; 3061int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3062int argc; 3063char **argv; 3064int 3065main () 3066{ 3067return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3068 ; 3069 return 0; 3070} 3071_ACEOF 3072for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3073 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3074do 3075 CC="$ac_save_CC $ac_arg" 3076 rm -f conftest.$ac_objext 3077if { (ac_try="$ac_compile" 3078case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081esac 3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3083$as_echo "$ac_try_echo") >&5 3084 (eval "$ac_compile") 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } && { 3091 test -z "$ac_c_werror_flag" || 3092 test ! -s conftest.err 3093 } && test -s conftest.$ac_objext; then 3094 ac_cv_prog_cc_c89=$ac_arg 3095else 3096 $as_echo "$as_me: failed program was:" >&5 3097sed 's/^/| /' conftest.$ac_ext >&5 3098 3099 3100fi 3101 3102rm -f core conftest.err conftest.$ac_objext 3103 test "x$ac_cv_prog_cc_c89" != "xno" && break 3104done 3105rm -f conftest.$ac_ext 3106CC=$ac_save_CC 3107 3108fi 3109# AC_CACHE_VAL 3110case "x$ac_cv_prog_cc_c89" in 3111 x) 3112 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3113$as_echo "none needed" >&6; } ;; 3114 xno) 3115 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3116$as_echo "unsupported" >&6; } ;; 3117 *) 3118 CC="$CC $ac_cv_prog_cc_c89" 3119 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3120$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3121esac 3122 3123 3124ac_ext=c 3125ac_cpp='$CPP $CPPFLAGS' 3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3128ac_compiler_gnu=$ac_cv_c_compiler_gnu 3129 3130{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3131$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3132if test "${ac_cv_path_SED+set}" = set; then 3133 $as_echo_n "(cached) " >&6 3134else 3135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3136 for ac_i in 1 2 3 4 5 6 7; do 3137 ac_script="$ac_script$as_nl$ac_script" 3138 done 3139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3140 $as_unset ac_script || ac_script= 3141 if test -z "$SED"; then 3142 ac_path_SED_found=false 3143 # Loop through the user's path and test for each of PROGNAME-LIST 3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_prog in sed gsed; do 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3152 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3153# Check for GNU ac_path_SED and select it if it is found. 3154 # Check for GNU $ac_path_SED 3155case `"$ac_path_SED" --version 2>&1` in 3156*GNU*) 3157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3158*) 3159 ac_count=0 3160 $as_echo_n 0123456789 >"conftest.in" 3161 while : 3162 do 3163 cat "conftest.in" "conftest.in" >"conftest.tmp" 3164 mv "conftest.tmp" "conftest.in" 3165 cp "conftest.in" "conftest.nl" 3166 $as_echo '' >> "conftest.nl" 3167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3169 ac_count=`expr $ac_count + 1` 3170 if test $ac_count -gt ${ac_path_SED_max-0}; then 3171 # Best one so far, save it but keep looking for a better one 3172 ac_cv_path_SED="$ac_path_SED" 3173 ac_path_SED_max=$ac_count 3174 fi 3175 # 10*(2^10) chars as input seems more than enough 3176 test $ac_count -gt 10 && break 3177 done 3178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3179esac 3180 3181 $ac_path_SED_found && break 3 3182 done 3183 done 3184done 3185IFS=$as_save_IFS 3186 if test -z "$ac_cv_path_SED"; then 3187 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3188$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3189 { (exit 1); exit 1; }; } 3190 fi 3191else 3192 ac_cv_path_SED=$SED 3193fi 3194 3195fi 3196{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3197$as_echo "$ac_cv_path_SED" >&6; } 3198 SED="$ac_cv_path_SED" 3199 rm -f conftest.sed 3200 3201test -z "$SED" && SED=sed 3202Xsed="$SED -e 1s/^X//" 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3215$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3216if test "${ac_cv_path_GREP+set}" = set; then 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -z "$GREP"; then 3220 ac_path_GREP_found=false 3221 # Loop through the user's path and test for each of PROGNAME-LIST 3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_prog in grep ggrep; do 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3230 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3231# Check for GNU ac_path_GREP and select it if it is found. 3232 # Check for GNU $ac_path_GREP 3233case `"$ac_path_GREP" --version 2>&1` in 3234*GNU*) 3235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3236*) 3237 ac_count=0 3238 $as_echo_n 0123456789 >"conftest.in" 3239 while : 3240 do 3241 cat "conftest.in" "conftest.in" >"conftest.tmp" 3242 mv "conftest.tmp" "conftest.in" 3243 cp "conftest.in" "conftest.nl" 3244 $as_echo 'GREP' >> "conftest.nl" 3245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3247 ac_count=`expr $ac_count + 1` 3248 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3249 # Best one so far, save it but keep looking for a better one 3250 ac_cv_path_GREP="$ac_path_GREP" 3251 ac_path_GREP_max=$ac_count 3252 fi 3253 # 10*(2^10) chars as input seems more than enough 3254 test $ac_count -gt 10 && break 3255 done 3256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3257esac 3258 3259 $ac_path_GREP_found && break 3 3260 done 3261 done 3262done 3263IFS=$as_save_IFS 3264 if test -z "$ac_cv_path_GREP"; then 3265 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3266$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3267 { (exit 1); exit 1; }; } 3268 fi 3269else 3270 ac_cv_path_GREP=$GREP 3271fi 3272 3273fi 3274{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3275$as_echo "$ac_cv_path_GREP" >&6; } 3276 GREP="$ac_cv_path_GREP" 3277 3278 3279{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3280$as_echo_n "checking for egrep... " >&6; } 3281if test "${ac_cv_path_EGREP+set}" = set; then 3282 $as_echo_n "(cached) " >&6 3283else 3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3285 then ac_cv_path_EGREP="$GREP -E" 3286 else 3287 if test -z "$EGREP"; then 3288 ac_path_EGREP_found=false 3289 # Loop through the user's path and test for each of PROGNAME-LIST 3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_prog in egrep; do 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3299# Check for GNU ac_path_EGREP and select it if it is found. 3300 # Check for GNU $ac_path_EGREP 3301case `"$ac_path_EGREP" --version 2>&1` in 3302*GNU*) 3303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3304*) 3305 ac_count=0 3306 $as_echo_n 0123456789 >"conftest.in" 3307 while : 3308 do 3309 cat "conftest.in" "conftest.in" >"conftest.tmp" 3310 mv "conftest.tmp" "conftest.in" 3311 cp "conftest.in" "conftest.nl" 3312 $as_echo 'EGREP' >> "conftest.nl" 3313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3315 ac_count=`expr $ac_count + 1` 3316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3317 # Best one so far, save it but keep looking for a better one 3318 ac_cv_path_EGREP="$ac_path_EGREP" 3319 ac_path_EGREP_max=$ac_count 3320 fi 3321 # 10*(2^10) chars as input seems more than enough 3322 test $ac_count -gt 10 && break 3323 done 3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3325esac 3326 3327 $ac_path_EGREP_found && break 3 3328 done 3329 done 3330done 3331IFS=$as_save_IFS 3332 if test -z "$ac_cv_path_EGREP"; then 3333 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3334$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3335 { (exit 1); exit 1; }; } 3336 fi 3337else 3338 ac_cv_path_EGREP=$EGREP 3339fi 3340 3341 fi 3342fi 3343{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3344$as_echo "$ac_cv_path_EGREP" >&6; } 3345 EGREP="$ac_cv_path_EGREP" 3346 3347 3348{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3349$as_echo_n "checking for fgrep... " >&6; } 3350if test "${ac_cv_path_FGREP+set}" = set; then 3351 $as_echo_n "(cached) " >&6 3352else 3353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3354 then ac_cv_path_FGREP="$GREP -F" 3355 else 3356 if test -z "$FGREP"; then 3357 ac_path_FGREP_found=false 3358 # Loop through the user's path and test for each of PROGNAME-LIST 3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3361do 3362 IFS=$as_save_IFS 3363 test -z "$as_dir" && as_dir=. 3364 for ac_prog in fgrep; do 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3367 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3368# Check for GNU ac_path_FGREP and select it if it is found. 3369 # Check for GNU $ac_path_FGREP 3370case `"$ac_path_FGREP" --version 2>&1` in 3371*GNU*) 3372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3373*) 3374 ac_count=0 3375 $as_echo_n 0123456789 >"conftest.in" 3376 while : 3377 do 3378 cat "conftest.in" "conftest.in" >"conftest.tmp" 3379 mv "conftest.tmp" "conftest.in" 3380 cp "conftest.in" "conftest.nl" 3381 $as_echo 'FGREP' >> "conftest.nl" 3382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3384 ac_count=`expr $ac_count + 1` 3385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3386 # Best one so far, save it but keep looking for a better one 3387 ac_cv_path_FGREP="$ac_path_FGREP" 3388 ac_path_FGREP_max=$ac_count 3389 fi 3390 # 10*(2^10) chars as input seems more than enough 3391 test $ac_count -gt 10 && break 3392 done 3393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3394esac 3395 3396 $ac_path_FGREP_found && break 3 3397 done 3398 done 3399done 3400IFS=$as_save_IFS 3401 if test -z "$ac_cv_path_FGREP"; then 3402 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3403$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3404 { (exit 1); exit 1; }; } 3405 fi 3406else 3407 ac_cv_path_FGREP=$FGREP 3408fi 3409 3410 fi 3411fi 3412{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3413$as_echo "$ac_cv_path_FGREP" >&6; } 3414 FGREP="$ac_cv_path_FGREP" 3415 3416 3417test -z "$GREP" && GREP=grep 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437# Check whether --with-gnu-ld was given. 3438if test "${with_gnu_ld+set}" = set; then 3439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3440else 3441 with_gnu_ld=no 3442fi 3443 3444ac_prog=ld 3445if test "$GCC" = yes; then 3446 # Check if gcc -print-prog-name=ld gives a path. 3447 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3448$as_echo_n "checking for ld used by $CC... " >&6; } 3449 case $host in 3450 *-*-mingw*) 3451 # gcc leaves a trailing carriage return which upsets mingw 3452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3453 *) 3454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3455 esac 3456 case $ac_prog in 3457 # Accept absolute paths. 3458 [\\/]* | ?:[\\/]*) 3459 re_direlt='/[^/][^/]*/\.\./' 3460 # Canonicalize the pathname of ld 3461 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3462 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3463 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3464 done 3465 test -z "$LD" && LD="$ac_prog" 3466 ;; 3467 "") 3468 # If it fails, then pretend we aren't using GCC. 3469 ac_prog=ld 3470 ;; 3471 *) 3472 # If it is relative, then search for the first ld in PATH. 3473 with_gnu_ld=unknown 3474 ;; 3475 esac 3476elif test "$with_gnu_ld" = yes; then 3477 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 3478$as_echo_n "checking for GNU ld... " >&6; } 3479else 3480 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3481$as_echo_n "checking for non-GNU ld... " >&6; } 3482fi 3483if test "${lt_cv_path_LD+set}" = set; then 3484 $as_echo_n "(cached) " >&6 3485else 3486 if test -z "$LD"; then 3487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3488 for ac_dir in $PATH; do 3489 IFS="$lt_save_ifs" 3490 test -z "$ac_dir" && ac_dir=. 3491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3492 lt_cv_path_LD="$ac_dir/$ac_prog" 3493 # Check to see if the program is GNU ld. I'd rather use --version, 3494 # but apparently some variants of GNU ld only accept -v. 3495 # Break only if it was the GNU/non-GNU ld that we prefer. 3496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3497 *GNU* | *'with BFD'*) 3498 test "$with_gnu_ld" != no && break 3499 ;; 3500 *) 3501 test "$with_gnu_ld" != yes && break 3502 ;; 3503 esac 3504 fi 3505 done 3506 IFS="$lt_save_ifs" 3507else 3508 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3509fi 3510fi 3511 3512LD="$lt_cv_path_LD" 3513if test -n "$LD"; then 3514 { $as_echo "$as_me:$LINENO: result: $LD" >&5 3515$as_echo "$LD" >&6; } 3516else 3517 { $as_echo "$as_me:$LINENO: result: no" >&5 3518$as_echo "no" >&6; } 3519fi 3520test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3521$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3522 { (exit 1); exit 1; }; } 3523{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3524$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3525if test "${lt_cv_prog_gnu_ld+set}" = set; then 3526 $as_echo_n "(cached) " >&6 3527else 3528 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3529case `$LD -v 2>&1 </dev/null` in 3530*GNU* | *'with BFD'*) 3531 lt_cv_prog_gnu_ld=yes 3532 ;; 3533*) 3534 lt_cv_prog_gnu_ld=no 3535 ;; 3536esac 3537fi 3538{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3539$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3540with_gnu_ld=$lt_cv_prog_gnu_ld 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 3551$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3552if test "${lt_cv_path_NM+set}" = set; then 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$NM"; then 3556 # Let the user override the test. 3557 lt_cv_path_NM="$NM" 3558else 3559 lt_nm_to_check="${ac_tool_prefix}nm" 3560 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3561 lt_nm_to_check="$lt_nm_to_check nm" 3562 fi 3563 for lt_tmp_nm in $lt_nm_to_check; do 3564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3565 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3566 IFS="$lt_save_ifs" 3567 test -z "$ac_dir" && ac_dir=. 3568 tmp_nm="$ac_dir/$lt_tmp_nm" 3569 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3570 # Check to see if the nm accepts a BSD-compat flag. 3571 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3572 # nm: unknown option "B" ignored 3573 # Tru64's nm complains that /dev/null is an invalid object file 3574 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3575 */dev/null* | *'Invalid file or object type'*) 3576 lt_cv_path_NM="$tmp_nm -B" 3577 break 3578 ;; 3579 *) 3580 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3581 */dev/null*) 3582 lt_cv_path_NM="$tmp_nm -p" 3583 break 3584 ;; 3585 *) 3586 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3587 continue # so that we can try to find one that supports BSD flags 3588 ;; 3589 esac 3590 ;; 3591 esac 3592 fi 3593 done 3594 IFS="$lt_save_ifs" 3595 done 3596 : ${lt_cv_path_NM=no} 3597fi 3598fi 3599{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3600$as_echo "$lt_cv_path_NM" >&6; } 3601if test "$lt_cv_path_NM" != "no"; then 3602 NM="$lt_cv_path_NM" 3603else 3604 # Didn't find any BSD compatible name lister, look for dumpbin. 3605 if test -n "$ac_tool_prefix"; then 3606 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3607 do 3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3609set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3611$as_echo_n "checking for $ac_word... " >&6; } 3612if test "${ac_cv_prog_DUMPBIN+set}" = set; then 3613 $as_echo_n "(cached) " >&6 3614else 3615 if test -n "$DUMPBIN"; then 3616 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3617else 3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3619for as_dir in $PATH 3620do 3621 IFS=$as_save_IFS 3622 test -z "$as_dir" && as_dir=. 3623 for ac_exec_ext in '' $ac_executable_extensions; do 3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3625 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3627 break 2 3628 fi 3629done 3630done 3631IFS=$as_save_IFS 3632 3633fi 3634fi 3635DUMPBIN=$ac_cv_prog_DUMPBIN 3636if test -n "$DUMPBIN"; then 3637 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 3638$as_echo "$DUMPBIN" >&6; } 3639else 3640 { $as_echo "$as_me:$LINENO: result: no" >&5 3641$as_echo "no" >&6; } 3642fi 3643 3644 3645 test -n "$DUMPBIN" && break 3646 done 3647fi 3648if test -z "$DUMPBIN"; then 3649 ac_ct_DUMPBIN=$DUMPBIN 3650 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3651do 3652 # Extract the first word of "$ac_prog", so it can be a program name with args. 3653set dummy $ac_prog; ac_word=$2 3654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3655$as_echo_n "checking for $ac_word... " >&6; } 3656if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 3657 $as_echo_n "(cached) " >&6 3658else 3659 if test -n "$ac_ct_DUMPBIN"; then 3660 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3661else 3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3663for as_dir in $PATH 3664do 3665 IFS=$as_save_IFS 3666 test -z "$as_dir" && as_dir=. 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3669 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3671 break 2 3672 fi 3673done 3674done 3675IFS=$as_save_IFS 3676 3677fi 3678fi 3679ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3680if test -n "$ac_ct_DUMPBIN"; then 3681 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 3682$as_echo "$ac_ct_DUMPBIN" >&6; } 3683else 3684 { $as_echo "$as_me:$LINENO: result: no" >&5 3685$as_echo "no" >&6; } 3686fi 3687 3688 3689 test -n "$ac_ct_DUMPBIN" && break 3690done 3691 3692 if test "x$ac_ct_DUMPBIN" = x; then 3693 DUMPBIN=":" 3694 else 3695 case $cross_compiling:$ac_tool_warned in 3696yes:) 3697{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3698whose name does not start with the host triplet. If you think this 3699configuration is useful to you, please write to [email protected]." >&5 3700$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3701whose name does not start with the host triplet. If you think this 3702configuration is useful to you, please write to [email protected]." >&2;} 3703ac_tool_warned=yes ;; 3704esac 3705 DUMPBIN=$ac_ct_DUMPBIN 3706 fi 3707fi 3708 3709 3710 if test "$DUMPBIN" != ":"; then 3711 NM="$DUMPBIN" 3712 fi 3713fi 3714test -z "$NM" && NM=nm 3715 3716 3717 3718 3719 3720 3721{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 3722$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3723if test "${lt_cv_nm_interface+set}" = set; then 3724 $as_echo_n "(cached) " >&6 3725else 3726 lt_cv_nm_interface="BSD nm" 3727 echo "int some_variable = 0;" > conftest.$ac_ext 3728 (eval echo "\"\$as_me:3728: $ac_compile\"" >&5) 3729 (eval "$ac_compile" 2>conftest.err) 3730 cat conftest.err >&5 3731 (eval echo "\"\$as_me:3731: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3733 cat conftest.err >&5 3734 (eval echo "\"\$as_me:3734: output\"" >&5) 3735 cat conftest.out >&5 3736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3737 lt_cv_nm_interface="MS dumpbin" 3738 fi 3739 rm -f conftest* 3740fi 3741{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 3742$as_echo "$lt_cv_nm_interface" >&6; } 3743 3744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3745$as_echo_n "checking whether ln -s works... " >&6; } 3746LN_S=$as_ln_s 3747if test "$LN_S" = "ln -s"; then 3748 { $as_echo "$as_me:$LINENO: result: yes" >&5 3749$as_echo "yes" >&6; } 3750else 3751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3752$as_echo "no, using $LN_S" >&6; } 3753fi 3754 3755# find the maximum length of command line arguments 3756{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3757$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3758if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3759 $as_echo_n "(cached) " >&6 3760else 3761 i=0 3762 teststring="ABCD" 3763 3764 case $build_os in 3765 msdosdjgpp*) 3766 # On DJGPP, this test can blow up pretty badly due to problems in libc 3767 # (any single argument exceeding 2000 bytes causes a buffer overrun 3768 # during glob expansion). Even if it were fixed, the result of this 3769 # check would be larger than it should be. 3770 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3771 ;; 3772 3773 gnu*) 3774 # Under GNU Hurd, this test is not required because there is 3775 # no limit to the length of command line arguments. 3776 # Libtool will interpret -1 as no limit whatsoever 3777 lt_cv_sys_max_cmd_len=-1; 3778 ;; 3779 3780 cygwin* | mingw* | cegcc*) 3781 # On Win9x/ME, this test blows up -- it succeeds, but takes 3782 # about 5 minutes as the teststring grows exponentially. 3783 # Worse, since 9x/ME are not pre-emptively multitasking, 3784 # you end up with a "frozen" computer, even though with patience 3785 # the test eventually succeeds (with a max line length of 256k). 3786 # Instead, let's just punt: use the minimum linelength reported by 3787 # all of the supported platforms: 8192 (on NT/2K/XP). 3788 lt_cv_sys_max_cmd_len=8192; 3789 ;; 3790 3791 amigaos*) 3792 # On AmigaOS with pdksh, this test takes hours, literally. 3793 # So we just punt and use a minimum line length of 8192. 3794 lt_cv_sys_max_cmd_len=8192; 3795 ;; 3796 3797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3798 # This has been around since 386BSD, at least. Likely further. 3799 if test -x /sbin/sysctl; then 3800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3801 elif test -x /usr/sbin/sysctl; then 3802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3803 else 3804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3805 fi 3806 # And add a safety zone 3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3809 ;; 3810 3811 interix*) 3812 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3813 lt_cv_sys_max_cmd_len=196608 3814 ;; 3815 3816 osf*) 3817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3819 # nice to cause kernel panics so lets avoid the loop below. 3820 # First set a reasonable default. 3821 lt_cv_sys_max_cmd_len=16384 3822 # 3823 if test -x /sbin/sysconfig; then 3824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3825 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3826 esac 3827 fi 3828 ;; 3829 sco3.2v5*) 3830 lt_cv_sys_max_cmd_len=102400 3831 ;; 3832 sysv5* | sco5v6* | sysv4.2uw2*) 3833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3834 if test -n "$kargmax"; then 3835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3836 else 3837 lt_cv_sys_max_cmd_len=32768 3838 fi 3839 ;; 3840 *) 3841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3842 if test -n "$lt_cv_sys_max_cmd_len"; then 3843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3845 else 3846 # Make teststring a little bigger before we do anything with it. 3847 # a 1K string should be a reasonable start. 3848 for i in 1 2 3 4 5 6 7 8 ; do 3849 teststring=$teststring$teststring 3850 done 3851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3852 # If test is not a shell built-in, we'll probably end up computing a 3853 # maximum length that is only half of the actual maximum length, but 3854 # we can't tell. 3855 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3856 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3857 test $i != 17 # 1/2 MB should be enough 3858 do 3859 i=`expr $i + 1` 3860 teststring=$teststring$teststring 3861 done 3862 # Only check the string length outside the loop. 3863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3864 teststring= 3865 # Add a significant safety factor because C++ compilers can tack on 3866 # massive amounts of additional arguments before passing them to the 3867 # linker. It appears as though 1/2 is a usable value. 3868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3869 fi 3870 ;; 3871 esac 3872 3873fi 3874 3875if test -n $lt_cv_sys_max_cmd_len ; then 3876 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3877$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 3878else 3879 { $as_echo "$as_me:$LINENO: result: none" >&5 3880$as_echo "none" >&6; } 3881fi 3882max_cmd_len=$lt_cv_sys_max_cmd_len 3883 3884 3885 3886 3887 3888 3889: ${CP="cp -f"} 3890: ${MV="mv -f"} 3891: ${RM="rm -f"} 3892 3893{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3894$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 3895# Try some XSI features 3896xsi_shell=no 3897( _lt_dummy="a/b/c" 3898 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3899 = c,a/b,, \ 3900 && eval 'test $(( 1 + 1 )) -eq 2 \ 3901 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3902 && xsi_shell=yes 3903{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 3904$as_echo "$xsi_shell" >&6; } 3905 3906 3907{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3908$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 3909lt_shell_append=no 3910( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3911 >/dev/null 2>&1 \ 3912 && lt_shell_append=yes 3913{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3914$as_echo "$lt_shell_append" >&6; } 3915 3916 3917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3918 lt_unset=unset 3919else 3920 lt_unset=false 3921fi 3922 3923 3924 3925 3926 3927# test EBCDIC or ASCII 3928case `echo X|tr X '\101'` in 3929 A) # ASCII based system 3930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3931 lt_SP2NL='tr \040 \012' 3932 lt_NL2SP='tr \015\012 \040\040' 3933 ;; 3934 *) # EBCDIC based system 3935 lt_SP2NL='tr \100 \n' 3936 lt_NL2SP='tr \r\n \100\100' 3937 ;; 3938esac 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3949$as_echo_n "checking for $LD option to reload object files... " >&6; } 3950if test "${lt_cv_ld_reload_flag+set}" = set; then 3951 $as_echo_n "(cached) " >&6 3952else 3953 lt_cv_ld_reload_flag='-r' 3954fi 3955{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3956$as_echo "$lt_cv_ld_reload_flag" >&6; } 3957reload_flag=$lt_cv_ld_reload_flag 3958case $reload_flag in 3959"" | " "*) ;; 3960*) reload_flag=" $reload_flag" ;; 3961esac 3962reload_cmds='$LD$reload_flag -o $output$reload_objs' 3963case $host_os in 3964 darwin*) 3965 if test "$GCC" = yes; then 3966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3967 else 3968 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3969 fi 3970 ;; 3971esac 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981if test -n "$ac_tool_prefix"; then 3982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3983set dummy ${ac_tool_prefix}objdump; ac_word=$2 3984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3985$as_echo_n "checking for $ac_word... " >&6; } 3986if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3987 $as_echo_n "(cached) " >&6 3988else 3989 if test -n "$OBJDUMP"; then 3990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3991else 3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3993for as_dir in $PATH 3994do 3995 IFS=$as_save_IFS 3996 test -z "$as_dir" && as_dir=. 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3999 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4001 break 2 4002 fi 4003done 4004done 4005IFS=$as_save_IFS 4006 4007fi 4008fi 4009OBJDUMP=$ac_cv_prog_OBJDUMP 4010if test -n "$OBJDUMP"; then 4011 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4012$as_echo "$OBJDUMP" >&6; } 4013else 4014 { $as_echo "$as_me:$LINENO: result: no" >&5 4015$as_echo "no" >&6; } 4016fi 4017 4018 4019fi 4020if test -z "$ac_cv_prog_OBJDUMP"; then 4021 ac_ct_OBJDUMP=$OBJDUMP 4022 # Extract the first word of "objdump", so it can be a program name with args. 4023set dummy objdump; ac_word=$2 4024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4025$as_echo_n "checking for $ac_word... " >&6; } 4026if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4027 $as_echo_n "(cached) " >&6 4028else 4029 if test -n "$ac_ct_OBJDUMP"; then 4030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4031else 4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4033for as_dir in $PATH 4034do 4035 IFS=$as_save_IFS 4036 test -z "$as_dir" && as_dir=. 4037 for ac_exec_ext in '' $ac_executable_extensions; do 4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4039 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4041 break 2 4042 fi 4043done 4044done 4045IFS=$as_save_IFS 4046 4047fi 4048fi 4049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4050if test -n "$ac_ct_OBJDUMP"; then 4051 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4052$as_echo "$ac_ct_OBJDUMP" >&6; } 4053else 4054 { $as_echo "$as_me:$LINENO: result: no" >&5 4055$as_echo "no" >&6; } 4056fi 4057 4058 if test "x$ac_ct_OBJDUMP" = x; then 4059 OBJDUMP="false" 4060 else 4061 case $cross_compiling:$ac_tool_warned in 4062yes:) 4063{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4064whose name does not start with the host triplet. If you think this 4065configuration is useful to you, please write to [email protected]." >&5 4066$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4067whose name does not start with the host triplet. If you think this 4068configuration is useful to you, please write to [email protected]." >&2;} 4069ac_tool_warned=yes ;; 4070esac 4071 OBJDUMP=$ac_ct_OBJDUMP 4072 fi 4073else 4074 OBJDUMP="$ac_cv_prog_OBJDUMP" 4075fi 4076 4077test -z "$OBJDUMP" && OBJDUMP=objdump 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4088$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4089if test "${lt_cv_deplibs_check_method+set}" = set; then 4090 $as_echo_n "(cached) " >&6 4091else 4092 lt_cv_file_magic_cmd='$MAGIC_CMD' 4093lt_cv_file_magic_test_file= 4094lt_cv_deplibs_check_method='unknown' 4095# Need to set the preceding variable on all platforms that support 4096# interlibrary dependencies. 4097# 'none' -- dependencies not supported. 4098# `unknown' -- same as none, but documents that we really don't know. 4099# 'pass_all' -- all dependencies passed with no checks. 4100# 'test_compile' -- check by making test program. 4101# 'file_magic [[regex]]' -- check by looking for files in library path 4102# which responds to the $file_magic_cmd with a given extended regex. 4103# If you have `file' or equivalent on your system and you're not sure 4104# whether `pass_all' will *always* work, you probably want this one. 4105 4106case $host_os in 4107aix[4-9]*) 4108 lt_cv_deplibs_check_method=pass_all 4109 ;; 4110 4111beos*) 4112 lt_cv_deplibs_check_method=pass_all 4113 ;; 4114 4115bsdi[45]*) 4116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4117 lt_cv_file_magic_cmd='/usr/bin/file -L' 4118 lt_cv_file_magic_test_file=/shlib/libc.so 4119 ;; 4120 4121cygwin*) 4122 # func_win32_libid is a shell function defined in ltmain.sh 4123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4124 lt_cv_file_magic_cmd='func_win32_libid' 4125 ;; 4126 4127mingw* | pw32*) 4128 # Base MSYS/MinGW do not provide the 'file' command needed by 4129 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4130 # unless we find 'file', for example because we are cross-compiling. 4131 if ( file / ) >/dev/null 2>&1; then 4132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4133 lt_cv_file_magic_cmd='func_win32_libid' 4134 else 4135 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4136 lt_cv_file_magic_cmd='$OBJDUMP -f' 4137 fi 4138 ;; 4139 4140cegcc) 4141 # use the weaker test based on 'objdump'. See mingw*. 4142 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4143 lt_cv_file_magic_cmd='$OBJDUMP -f' 4144 ;; 4145 4146darwin* | rhapsody*) 4147 lt_cv_deplibs_check_method=pass_all 4148 ;; 4149 4150freebsd* | dragonfly*) 4151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4152 case $host_cpu in 4153 i*86 ) 4154 # Not sure whether the presence of OpenBSD here was a mistake. 4155 # Let's accept both of them until this is cleared up. 4156 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4157 lt_cv_file_magic_cmd=/usr/bin/file 4158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4159 ;; 4160 esac 4161 else 4162 lt_cv_deplibs_check_method=pass_all 4163 fi 4164 ;; 4165 4166gnu*) 4167 lt_cv_deplibs_check_method=pass_all 4168 ;; 4169 4170hpux10.20* | hpux11*) 4171 lt_cv_file_magic_cmd=/usr/bin/file 4172 case $host_cpu in 4173 ia64*) 4174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4175 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4176 ;; 4177 hppa*64*) 4178 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]' 4179 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4180 ;; 4181 *) 4182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4183 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4184 ;; 4185 esac 4186 ;; 4187 4188interix[3-9]*) 4189 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4191 ;; 4192 4193irix5* | irix6* | nonstopux*) 4194 case $LD in 4195 *-32|*"-32 ") libmagic=32-bit;; 4196 *-n32|*"-n32 ") libmagic=N32;; 4197 *-64|*"-64 ") libmagic=64-bit;; 4198 *) libmagic=never-match;; 4199 esac 4200 lt_cv_deplibs_check_method=pass_all 4201 ;; 4202 4203# This must be Linux ELF. 4204linux* | k*bsd*-gnu) 4205 lt_cv_deplibs_check_method=pass_all 4206 ;; 4207 4208netbsd*) 4209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4211 else 4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4213 fi 4214 ;; 4215 4216newos6*) 4217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4218 lt_cv_file_magic_cmd=/usr/bin/file 4219 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4220 ;; 4221 4222*nto* | *qnx*) 4223 lt_cv_deplibs_check_method=pass_all 4224 ;; 4225 4226openbsd*) 4227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4229 else 4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4231 fi 4232 ;; 4233 4234osf3* | osf4* | osf5*) 4235 lt_cv_deplibs_check_method=pass_all 4236 ;; 4237 4238rdos*) 4239 lt_cv_deplibs_check_method=pass_all 4240 ;; 4241 4242solaris*) 4243 lt_cv_deplibs_check_method=pass_all 4244 ;; 4245 4246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250sysv4 | sysv4.3*) 4251 case $host_vendor in 4252 motorola) 4253 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]' 4254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4255 ;; 4256 ncr) 4257 lt_cv_deplibs_check_method=pass_all 4258 ;; 4259 sequent) 4260 lt_cv_file_magic_cmd='/bin/file' 4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4262 ;; 4263 sni) 4264 lt_cv_file_magic_cmd='/bin/file' 4265 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4266 lt_cv_file_magic_test_file=/lib/libc.so 4267 ;; 4268 siemens) 4269 lt_cv_deplibs_check_method=pass_all 4270 ;; 4271 pc) 4272 lt_cv_deplibs_check_method=pass_all 4273 ;; 4274 esac 4275 ;; 4276 4277tpf*) 4278 lt_cv_deplibs_check_method=pass_all 4279 ;; 4280esac 4281 4282fi 4283{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4284$as_echo "$lt_cv_deplibs_check_method" >&6; } 4285file_magic_cmd=$lt_cv_file_magic_cmd 4286deplibs_check_method=$lt_cv_deplibs_check_method 4287test -z "$deplibs_check_method" && deplibs_check_method=unknown 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300if test -n "$ac_tool_prefix"; then 4301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4302set dummy ${ac_tool_prefix}ar; ac_word=$2 4303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4304$as_echo_n "checking for $ac_word... " >&6; } 4305if test "${ac_cv_prog_AR+set}" = set; then 4306 $as_echo_n "(cached) " >&6 4307else 4308 if test -n "$AR"; then 4309 ac_cv_prog_AR="$AR" # Let the user override the test. 4310else 4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4312for as_dir in $PATH 4313do 4314 IFS=$as_save_IFS 4315 test -z "$as_dir" && as_dir=. 4316 for ac_exec_ext in '' $ac_executable_extensions; do 4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4318 ac_cv_prog_AR="${ac_tool_prefix}ar" 4319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4320 break 2 4321 fi 4322done 4323done 4324IFS=$as_save_IFS 4325 4326fi 4327fi 4328AR=$ac_cv_prog_AR 4329if test -n "$AR"; then 4330 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4331$as_echo "$AR" >&6; } 4332else 4333 { $as_echo "$as_me:$LINENO: result: no" >&5 4334$as_echo "no" >&6; } 4335fi 4336 4337 4338fi 4339if test -z "$ac_cv_prog_AR"; then 4340 ac_ct_AR=$AR 4341 # Extract the first word of "ar", so it can be a program name with args. 4342set dummy ar; ac_word=$2 4343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4344$as_echo_n "checking for $ac_word... " >&6; } 4345if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test -n "$ac_ct_AR"; then 4349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4350else 4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4358 ac_cv_prog_ac_ct_AR="ar" 4359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4360 break 2 4361 fi 4362done 4363done 4364IFS=$as_save_IFS 4365 4366fi 4367fi 4368ac_ct_AR=$ac_cv_prog_ac_ct_AR 4369if test -n "$ac_ct_AR"; then 4370 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4371$as_echo "$ac_ct_AR" >&6; } 4372else 4373 { $as_echo "$as_me:$LINENO: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376 4377 if test "x$ac_ct_AR" = x; then 4378 AR="false" 4379 else 4380 case $cross_compiling:$ac_tool_warned in 4381yes:) 4382{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4383whose name does not start with the host triplet. If you think this 4384configuration is useful to you, please write to [email protected]." >&5 4385$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4386whose name does not start with the host triplet. If you think this 4387configuration is useful to you, please write to [email protected]." >&2;} 4388ac_tool_warned=yes ;; 4389esac 4390 AR=$ac_ct_AR 4391 fi 4392else 4393 AR="$ac_cv_prog_AR" 4394fi 4395 4396test -z "$AR" && AR=ar 4397test -z "$AR_FLAGS" && AR_FLAGS=cru 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409if test -n "$ac_tool_prefix"; then 4410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4411set dummy ${ac_tool_prefix}strip; ac_word=$2 4412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4413$as_echo_n "checking for $ac_word... " >&6; } 4414if test "${ac_cv_prog_STRIP+set}" = set; then 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -n "$STRIP"; then 4418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4419else 4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4427 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431done 4432done 4433IFS=$as_save_IFS 4434 4435fi 4436fi 4437STRIP=$ac_cv_prog_STRIP 4438if test -n "$STRIP"; then 4439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4440$as_echo "$STRIP" >&6; } 4441else 4442 { $as_echo "$as_me:$LINENO: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 4447fi 4448if test -z "$ac_cv_prog_STRIP"; then 4449 ac_ct_STRIP=$STRIP 4450 # Extract the first word of "strip", so it can be a program name with args. 4451set dummy strip; ac_word=$2 4452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4453$as_echo_n "checking for $ac_word... " >&6; } 4454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -n "$ac_ct_STRIP"; then 4458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4459else 4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_exec_ext in '' $ac_executable_extensions; do 4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4467 ac_cv_prog_ac_ct_STRIP="strip" 4468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4469 break 2 4470 fi 4471done 4472done 4473IFS=$as_save_IFS 4474 4475fi 4476fi 4477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4478if test -n "$ac_ct_STRIP"; then 4479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4480$as_echo "$ac_ct_STRIP" >&6; } 4481else 4482 { $as_echo "$as_me:$LINENO: result: no" >&5 4483$as_echo "no" >&6; } 4484fi 4485 4486 if test "x$ac_ct_STRIP" = x; then 4487 STRIP=":" 4488 else 4489 case $cross_compiling:$ac_tool_warned in 4490yes:) 4491{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4492whose name does not start with the host triplet. If you think this 4493configuration is useful to you, please write to [email protected]." >&5 4494$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4495whose name does not start with the host triplet. If you think this 4496configuration is useful to you, please write to [email protected]." >&2;} 4497ac_tool_warned=yes ;; 4498esac 4499 STRIP=$ac_ct_STRIP 4500 fi 4501else 4502 STRIP="$ac_cv_prog_STRIP" 4503fi 4504 4505test -z "$STRIP" && STRIP=: 4506 4507 4508 4509 4510 4511 4512if test -n "$ac_tool_prefix"; then 4513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4514set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4516$as_echo_n "checking for $ac_word... " >&6; } 4517if test "${ac_cv_prog_RANLIB+set}" = set; then 4518 $as_echo_n "(cached) " >&6 4519else 4520 if test -n "$RANLIB"; then 4521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4522else 4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524for as_dir in $PATH 4525do 4526 IFS=$as_save_IFS 4527 test -z "$as_dir" && as_dir=. 4528 for ac_exec_ext in '' $ac_executable_extensions; do 4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4532 break 2 4533 fi 4534done 4535done 4536IFS=$as_save_IFS 4537 4538fi 4539fi 4540RANLIB=$ac_cv_prog_RANLIB 4541if test -n "$RANLIB"; then 4542 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4543$as_echo "$RANLIB" >&6; } 4544else 4545 { $as_echo "$as_me:$LINENO: result: no" >&5 4546$as_echo "no" >&6; } 4547fi 4548 4549 4550fi 4551if test -z "$ac_cv_prog_RANLIB"; then 4552 ac_ct_RANLIB=$RANLIB 4553 # Extract the first word of "ranlib", so it can be a program name with args. 4554set dummy ranlib; ac_word=$2 4555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4556$as_echo_n "checking for $ac_word... " >&6; } 4557if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4558 $as_echo_n "(cached) " >&6 4559else 4560 if test -n "$ac_ct_RANLIB"; then 4561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4562else 4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564for as_dir in $PATH 4565do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4570 ac_cv_prog_ac_ct_RANLIB="ranlib" 4571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4572 break 2 4573 fi 4574done 4575done 4576IFS=$as_save_IFS 4577 4578fi 4579fi 4580ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4581if test -n "$ac_ct_RANLIB"; then 4582 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4583$as_echo "$ac_ct_RANLIB" >&6; } 4584else 4585 { $as_echo "$as_me:$LINENO: result: no" >&5 4586$as_echo "no" >&6; } 4587fi 4588 4589 if test "x$ac_ct_RANLIB" = x; then 4590 RANLIB=":" 4591 else 4592 case $cross_compiling:$ac_tool_warned in 4593yes:) 4594{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4595whose name does not start with the host triplet. If you think this 4596configuration is useful to you, please write to [email protected]." >&5 4597$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4598whose name does not start with the host triplet. If you think this 4599configuration is useful to you, please write to [email protected]." >&2;} 4600ac_tool_warned=yes ;; 4601esac 4602 RANLIB=$ac_ct_RANLIB 4603 fi 4604else 4605 RANLIB="$ac_cv_prog_RANLIB" 4606fi 4607 4608test -z "$RANLIB" && RANLIB=: 4609 4610 4611 4612 4613 4614 4615# Determine commands to create old-style static archives. 4616old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4617old_postinstall_cmds='chmod 644 $oldlib' 4618old_postuninstall_cmds= 4619 4620if test -n "$RANLIB"; then 4621 case $host_os in 4622 openbsd*) 4623 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4624 ;; 4625 *) 4626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4627 ;; 4628 esac 4629 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4630fi 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 4665# If no C compiler was specified, use CC. 4666LTCC=${LTCC-"$CC"} 4667 4668# If no C compiler flags were specified, use CFLAGS. 4669LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4670 4671# Allow CC to be a program name with arguments. 4672compiler=$CC 4673 4674 4675# Check for command to grab the raw symbol name followed by C symbol from nm. 4676{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4677$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4678if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4679 $as_echo_n "(cached) " >&6 4680else 4681 4682# These are sane defaults that work on at least a few old systems. 4683# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4684 4685# Character class describing NM global symbol codes. 4686symcode='[BCDEGRST]' 4687 4688# Regexp to match symbols that can be accessed directly from C. 4689sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4690 4691# Define system-specific variables. 4692case $host_os in 4693aix*) 4694 symcode='[BCDT]' 4695 ;; 4696cygwin* | mingw* | pw32* | cegcc*) 4697 symcode='[ABCDGISTW]' 4698 ;; 4699hpux*) 4700 if test "$host_cpu" = ia64; then 4701 symcode='[ABCDEGRST]' 4702 fi 4703 ;; 4704irix* | nonstopux*) 4705 symcode='[BCDEGRST]' 4706 ;; 4707osf*) 4708 symcode='[BCDEGQRST]' 4709 ;; 4710solaris*) 4711 symcode='[BDRT]' 4712 ;; 4713sco3.2v5*) 4714 symcode='[DT]' 4715 ;; 4716sysv4.2uw2*) 4717 symcode='[DT]' 4718 ;; 4719sysv5* | sco5v6* | unixware* | OpenUNIX*) 4720 symcode='[ABDT]' 4721 ;; 4722sysv4) 4723 symcode='[DFNSTU]' 4724 ;; 4725esac 4726 4727# If we're using GNU nm, then use its standard symbol codes. 4728case `$NM -V 2>&1` in 4729*GNU* | *'with BFD'*) 4730 symcode='[ABCDGIRSTW]' ;; 4731esac 4732 4733# Transform an extracted symbol line into a proper C declaration. 4734# Some systems (esp. on ia64) link data and code symbols differently, 4735# so use this general approach. 4736lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4737 4738# Transform an extracted symbol line into symbol name and symbol address 4739lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4740lt_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'" 4741 4742# Handle CRLF in mingw tool chain 4743opt_cr= 4744case $build_os in 4745mingw*) 4746 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4747 ;; 4748esac 4749 4750# Try without a prefix underscore, then with it. 4751for ac_symprfx in "" "_"; do 4752 4753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4754 symxfrm="\\1 $ac_symprfx\\2 \\2" 4755 4756 # Write the raw and C identifiers. 4757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4758 # Fake it for dumpbin and say T for any non-static function 4759 # and D for any global variable. 4760 # Also find C++ and __fastcall symbols from MSVC++, 4761 # which start with @ or ?. 4762 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4763" {last_section=section; section=\$ 3};"\ 4764" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4765" \$ 0!~/External *\|/{next};"\ 4766" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4767" {if(hide[section]) next};"\ 4768" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4769" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4770" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4771" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4772" ' prfx=^$ac_symprfx" 4773 else 4774 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4775 fi 4776 4777 # Check to see that the pipe works correctly. 4778 pipe_works=no 4779 4780 rm -f conftest* 4781 cat > conftest.$ac_ext <<_LT_EOF 4782#ifdef __cplusplus 4783extern "C" { 4784#endif 4785char nm_test_var; 4786void nm_test_func(void); 4787void nm_test_func(void){} 4788#ifdef __cplusplus 4789} 4790#endif 4791int main(){nm_test_var='a';nm_test_func();return(0);} 4792_LT_EOF 4793 4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4795 (eval $ac_compile) 2>&5 4796 ac_status=$? 4797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 (exit $ac_status); }; then 4799 # Now try to grab the symbols. 4800 nlist=conftest.nm 4801 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4802 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4803 ac_status=$? 4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && test -s "$nlist"; then 4806 # Try sorting and uniquifying the output. 4807 if sort "$nlist" | uniq > "$nlist"T; then 4808 mv -f "$nlist"T "$nlist" 4809 else 4810 rm -f "$nlist"T 4811 fi 4812 4813 # Make sure that we snagged all the symbols we need. 4814 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4815 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4816 cat <<_LT_EOF > conftest.$ac_ext 4817#ifdef __cplusplus 4818extern "C" { 4819#endif 4820 4821_LT_EOF 4822 # Now generate the symbol file. 4823 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4824 4825 cat <<_LT_EOF >> conftest.$ac_ext 4826 4827/* The mapping between symbol names and symbols. */ 4828const struct { 4829 const char *name; 4830 void *address; 4831} 4832lt__PROGRAM__LTX_preloaded_symbols[] = 4833{ 4834 { "@PROGRAM@", (void *) 0 }, 4835_LT_EOF 4836 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4837 cat <<\_LT_EOF >> conftest.$ac_ext 4838 {0, (void *) 0} 4839}; 4840 4841/* This works around a problem in FreeBSD linker */ 4842#ifdef FREEBSD_WORKAROUND 4843static const void *lt_preloaded_setup() { 4844 return lt__PROGRAM__LTX_preloaded_symbols; 4845} 4846#endif 4847 4848#ifdef __cplusplus 4849} 4850#endif 4851_LT_EOF 4852 # Now try linking the two files. 4853 mv conftest.$ac_objext conftstm.$ac_objext 4854 lt_save_LIBS="$LIBS" 4855 lt_save_CFLAGS="$CFLAGS" 4856 LIBS="conftstm.$ac_objext" 4857 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4859 (eval $ac_link) 2>&5 4860 ac_status=$? 4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4863 pipe_works=yes 4864 fi 4865 LIBS="$lt_save_LIBS" 4866 CFLAGS="$lt_save_CFLAGS" 4867 else 4868 echo "cannot find nm_test_func in $nlist" >&5 4869 fi 4870 else 4871 echo "cannot find nm_test_var in $nlist" >&5 4872 fi 4873 else 4874 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4875 fi 4876 else 4877 echo "$progname: failed program was:" >&5 4878 cat conftest.$ac_ext >&5 4879 fi 4880 rm -rf conftest* conftst* 4881 4882 # Do not use the global_symbol_pipe unless it works. 4883 if test "$pipe_works" = yes; then 4884 break 4885 else 4886 lt_cv_sys_global_symbol_pipe= 4887 fi 4888done 4889 4890fi 4891 4892if test -z "$lt_cv_sys_global_symbol_pipe"; then 4893 lt_cv_sys_global_symbol_to_cdecl= 4894fi 4895if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4896 { $as_echo "$as_me:$LINENO: result: failed" >&5 4897$as_echo "failed" >&6; } 4898else 4899 { $as_echo "$as_me:$LINENO: result: ok" >&5 4900$as_echo "ok" >&6; } 4901fi 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925# Check whether --enable-libtool-lock was given. 4926if test "${enable_libtool_lock+set}" = set; then 4927 enableval=$enable_libtool_lock; 4928fi 4929 4930test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4931 4932# Some flags need to be propagated to the compiler or linker for good 4933# libtool support. 4934case $host in 4935ia64-*-hpux*) 4936 # Find out which ABI we are using. 4937 echo 'int i;' > conftest.$ac_ext 4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4939 (eval $ac_compile) 2>&5 4940 ac_status=$? 4941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); }; then 4943 case `/usr/bin/file conftest.$ac_objext` in 4944 *ELF-32*) 4945 HPUX_IA64_MODE="32" 4946 ;; 4947 *ELF-64*) 4948 HPUX_IA64_MODE="64" 4949 ;; 4950 esac 4951 fi 4952 rm -rf conftest* 4953 ;; 4954*-*-irix6*) 4955 # Find out which ABI we are using. 4956 echo '#line 4956 "configure"' > conftest.$ac_ext 4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4958 (eval $ac_compile) 2>&5 4959 ac_status=$? 4960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); }; then 4962 if test "$lt_cv_prog_gnu_ld" = yes; then 4963 case `/usr/bin/file conftest.$ac_objext` in 4964 *32-bit*) 4965 LD="${LD-ld} -melf32bsmip" 4966 ;; 4967 *N32*) 4968 LD="${LD-ld} -melf32bmipn32" 4969 ;; 4970 *64-bit*) 4971 LD="${LD-ld} -melf64bmip" 4972 ;; 4973 esac 4974 else 4975 case `/usr/bin/file conftest.$ac_objext` in 4976 *32-bit*) 4977 LD="${LD-ld} -32" 4978 ;; 4979 *N32*) 4980 LD="${LD-ld} -n32" 4981 ;; 4982 *64-bit*) 4983 LD="${LD-ld} -64" 4984 ;; 4985 esac 4986 fi 4987 fi 4988 rm -rf conftest* 4989 ;; 4990 4991x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4992s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4993 # Find out which ABI we are using. 4994 echo 'int i;' > conftest.$ac_ext 4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4996 (eval $ac_compile) 2>&5 4997 ac_status=$? 4998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; then 5000 case `/usr/bin/file conftest.o` in 5001 *32-bit*) 5002 case $host in 5003 x86_64-*kfreebsd*-gnu) 5004 LD="${LD-ld} -m elf_i386_fbsd" 5005 ;; 5006 x86_64-*linux*) 5007 LD="${LD-ld} -m elf_i386" 5008 ;; 5009 ppc64-*linux*|powerpc64-*linux*) 5010 LD="${LD-ld} -m elf32ppclinux" 5011 ;; 5012 s390x-*linux*) 5013 LD="${LD-ld} -m elf_s390" 5014 ;; 5015 sparc64-*linux*) 5016 LD="${LD-ld} -m elf32_sparc" 5017 ;; 5018 esac 5019 ;; 5020 *64-bit*) 5021 case $host in 5022 x86_64-*kfreebsd*-gnu) 5023 LD="${LD-ld} -m elf_x86_64_fbsd" 5024 ;; 5025 x86_64-*linux*) 5026 LD="${LD-ld} -m elf_x86_64" 5027 ;; 5028 ppc*-*linux*|powerpc*-*linux*) 5029 LD="${LD-ld} -m elf64ppc" 5030 ;; 5031 s390*-*linux*|s390*-*tpf*) 5032 LD="${LD-ld} -m elf64_s390" 5033 ;; 5034 sparc*-*linux*) 5035 LD="${LD-ld} -m elf64_sparc" 5036 ;; 5037 esac 5038 ;; 5039 esac 5040 fi 5041 rm -rf conftest* 5042 ;; 5043 5044*-*-sco3.2v5*) 5045 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5046 SAVE_CFLAGS="$CFLAGS" 5047 CFLAGS="$CFLAGS -belf" 5048 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5049$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5050if test "${lt_cv_cc_needs_belf+set}" = set; then 5051 $as_echo_n "(cached) " >&6 5052else 5053 ac_ext=c 5054ac_cpp='$CPP $CPPFLAGS' 5055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5057ac_compiler_gnu=$ac_cv_c_compiler_gnu 5058 5059 cat >conftest.$ac_ext <<_ACEOF 5060/* confdefs.h. */ 5061_ACEOF 5062cat confdefs.h >>conftest.$ac_ext 5063cat >>conftest.$ac_ext <<_ACEOF 5064/* end confdefs.h. */ 5065 5066int 5067main () 5068{ 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext conftest$ac_exeext 5075if { (ac_try="$ac_link" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5081$as_echo "$ac_try_echo") >&5 5082 (eval "$ac_link") 2>conftest.er1 5083 ac_status=$? 5084 grep -v '^ *+' conftest.er1 >conftest.err 5085 rm -f conftest.er1 5086 cat conftest.err >&5 5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); } && { 5089 test -z "$ac_c_werror_flag" || 5090 test ! -s conftest.err 5091 } && test -s conftest$ac_exeext && { 5092 test "$cross_compiling" = yes || 5093 $as_test_x conftest$ac_exeext 5094 }; then 5095 lt_cv_cc_needs_belf=yes 5096else 5097 $as_echo "$as_me: failed program was:" >&5 5098sed 's/^/| /' conftest.$ac_ext >&5 5099 5100 lt_cv_cc_needs_belf=no 5101fi 5102 5103rm -rf conftest.dSYM 5104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5105 conftest$ac_exeext conftest.$ac_ext 5106 ac_ext=c 5107ac_cpp='$CPP $CPPFLAGS' 5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5110ac_compiler_gnu=$ac_cv_c_compiler_gnu 5111 5112fi 5113{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5114$as_echo "$lt_cv_cc_needs_belf" >&6; } 5115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5117 CFLAGS="$SAVE_CFLAGS" 5118 fi 5119 ;; 5120sparc*-*solaris*) 5121 # Find out which ABI we are using. 5122 echo 'int i;' > conftest.$ac_ext 5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5124 (eval $ac_compile) 2>&5 5125 ac_status=$? 5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); }; then 5128 case `/usr/bin/file conftest.o` in 5129 *64-bit*) 5130 case $lt_cv_prog_gnu_ld in 5131 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5132 *) 5133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5134 LD="${LD-ld} -64" 5135 fi 5136 ;; 5137 esac 5138 ;; 5139 esac 5140 fi 5141 rm -rf conftest* 5142 ;; 5143esac 5144 5145need_locks="$enable_libtool_lock" 5146 5147 5148 case $host_os in 5149 rhapsody* | darwin*) 5150 if test -n "$ac_tool_prefix"; then 5151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5154$as_echo_n "checking for $ac_word... " >&6; } 5155if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5156 $as_echo_n "(cached) " >&6 5157else 5158 if test -n "$DSYMUTIL"; then 5159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5160else 5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_exec_ext in '' $ac_executable_extensions; do 5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5170 break 2 5171 fi 5172done 5173done 5174IFS=$as_save_IFS 5175 5176fi 5177fi 5178DSYMUTIL=$ac_cv_prog_DSYMUTIL 5179if test -n "$DSYMUTIL"; then 5180 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5181$as_echo "$DSYMUTIL" >&6; } 5182else 5183 { $as_echo "$as_me:$LINENO: result: no" >&5 5184$as_echo "no" >&6; } 5185fi 5186 5187 5188fi 5189if test -z "$ac_cv_prog_DSYMUTIL"; then 5190 ac_ct_DSYMUTIL=$DSYMUTIL 5191 # Extract the first word of "dsymutil", so it can be a program name with args. 5192set dummy dsymutil; ac_word=$2 5193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5194$as_echo_n "checking for $ac_word... " >&6; } 5195if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5196 $as_echo_n "(cached) " >&6 5197else 5198 if test -n "$ac_ct_DSYMUTIL"; then 5199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5200else 5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5202for as_dir in $PATH 5203do 5204 IFS=$as_save_IFS 5205 test -z "$as_dir" && as_dir=. 5206 for ac_exec_ext in '' $ac_executable_extensions; do 5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5210 break 2 5211 fi 5212done 5213done 5214IFS=$as_save_IFS 5215 5216fi 5217fi 5218ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5219if test -n "$ac_ct_DSYMUTIL"; then 5220 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5221$as_echo "$ac_ct_DSYMUTIL" >&6; } 5222else 5223 { $as_echo "$as_me:$LINENO: result: no" >&5 5224$as_echo "no" >&6; } 5225fi 5226 5227 if test "x$ac_ct_DSYMUTIL" = x; then 5228 DSYMUTIL=":" 5229 else 5230 case $cross_compiling:$ac_tool_warned in 5231yes:) 5232{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5233whose name does not start with the host triplet. If you think this 5234configuration is useful to you, please write to [email protected]." >&5 5235$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5236whose name does not start with the host triplet. If you think this 5237configuration is useful to you, please write to [email protected]." >&2;} 5238ac_tool_warned=yes ;; 5239esac 5240 DSYMUTIL=$ac_ct_DSYMUTIL 5241 fi 5242else 5243 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5244fi 5245 5246 if test -n "$ac_tool_prefix"; then 5247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5248set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if test "${ac_cv_prog_NMEDIT+set}" = set; then 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -n "$NMEDIT"; then 5255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5256else 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274NMEDIT=$ac_cv_prog_NMEDIT 5275if test -n "$NMEDIT"; then 5276 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5277$as_echo "$NMEDIT" >&6; } 5278else 5279 { $as_echo "$as_me:$LINENO: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 5284fi 5285if test -z "$ac_cv_prog_NMEDIT"; then 5286 ac_ct_NMEDIT=$NMEDIT 5287 # Extract the first word of "nmedit", so it can be a program name with args. 5288set dummy nmedit; ac_word=$2 5289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5290$as_echo_n "checking for $ac_word... " >&6; } 5291if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -n "$ac_ct_NMEDIT"; then 5295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5296else 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5304 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308done 5309done 5310IFS=$as_save_IFS 5311 5312fi 5313fi 5314ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5315if test -n "$ac_ct_NMEDIT"; then 5316 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5317$as_echo "$ac_ct_NMEDIT" >&6; } 5318else 5319 { $as_echo "$as_me:$LINENO: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 if test "x$ac_ct_NMEDIT" = x; then 5324 NMEDIT=":" 5325 else 5326 case $cross_compiling:$ac_tool_warned in 5327yes:) 5328{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5329whose name does not start with the host triplet. If you think this 5330configuration is useful to you, please write to [email protected]." >&5 5331$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5332whose name does not start with the host triplet. If you think this 5333configuration is useful to you, please write to [email protected]." >&2;} 5334ac_tool_warned=yes ;; 5335esac 5336 NMEDIT=$ac_ct_NMEDIT 5337 fi 5338else 5339 NMEDIT="$ac_cv_prog_NMEDIT" 5340fi 5341 5342 if test -n "$ac_tool_prefix"; then 5343 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5344set dummy ${ac_tool_prefix}lipo; ac_word=$2 5345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if test "${ac_cv_prog_LIPO+set}" = set; then 5348 $as_echo_n "(cached) " >&6 5349else 5350 if test -n "$LIPO"; then 5351 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5360 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365done 5366IFS=$as_save_IFS 5367 5368fi 5369fi 5370LIPO=$ac_cv_prog_LIPO 5371if test -n "$LIPO"; then 5372 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5373$as_echo "$LIPO" >&6; } 5374else 5375 { $as_echo "$as_me:$LINENO: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378 5379 5380fi 5381if test -z "$ac_cv_prog_LIPO"; then 5382 ac_ct_LIPO=$LIPO 5383 # Extract the first word of "lipo", so it can be a program name with args. 5384set dummy lipo; ac_word=$2 5385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5386$as_echo_n "checking for $ac_word... " >&6; } 5387if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5388 $as_echo_n "(cached) " >&6 5389else 5390 if test -n "$ac_ct_LIPO"; then 5391 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5392else 5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5400 ac_cv_prog_ac_ct_LIPO="lipo" 5401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404done 5405done 5406IFS=$as_save_IFS 5407 5408fi 5409fi 5410ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5411if test -n "$ac_ct_LIPO"; then 5412 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5413$as_echo "$ac_ct_LIPO" >&6; } 5414else 5415 { $as_echo "$as_me:$LINENO: result: no" >&5 5416$as_echo "no" >&6; } 5417fi 5418 5419 if test "x$ac_ct_LIPO" = x; then 5420 LIPO=":" 5421 else 5422 case $cross_compiling:$ac_tool_warned in 5423yes:) 5424{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5425whose name does not start with the host triplet. If you think this 5426configuration is useful to you, please write to [email protected]." >&5 5427$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5428whose name does not start with the host triplet. If you think this 5429configuration is useful to you, please write to [email protected]." >&2;} 5430ac_tool_warned=yes ;; 5431esac 5432 LIPO=$ac_ct_LIPO 5433 fi 5434else 5435 LIPO="$ac_cv_prog_LIPO" 5436fi 5437 5438 if test -n "$ac_tool_prefix"; then 5439 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5440set dummy ${ac_tool_prefix}otool; ac_word=$2 5441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5442$as_echo_n "checking for $ac_word... " >&6; } 5443if test "${ac_cv_prog_OTOOL+set}" = set; then 5444 $as_echo_n "(cached) " >&6 5445else 5446 if test -n "$OTOOL"; then 5447 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5456 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466OTOOL=$ac_cv_prog_OTOOL 5467if test -n "$OTOOL"; then 5468 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 5469$as_echo "$OTOOL" >&6; } 5470else 5471 { $as_echo "$as_me:$LINENO: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476fi 5477if test -z "$ac_cv_prog_OTOOL"; then 5478 ac_ct_OTOOL=$OTOOL 5479 # Extract the first word of "otool", so it can be a program name with args. 5480set dummy otool; ac_word=$2 5481{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5482$as_echo_n "checking for $ac_word... " >&6; } 5483if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 5484 $as_echo_n "(cached) " >&6 5485else 5486 if test -n "$ac_ct_OTOOL"; then 5487 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5488else 5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490for as_dir in $PATH 5491do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5496 ac_cv_prog_ac_ct_OTOOL="otool" 5497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5498 break 2 5499 fi 5500done 5501done 5502IFS=$as_save_IFS 5503 5504fi 5505fi 5506ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5507if test -n "$ac_ct_OTOOL"; then 5508 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 5509$as_echo "$ac_ct_OTOOL" >&6; } 5510else 5511 { $as_echo "$as_me:$LINENO: result: no" >&5 5512$as_echo "no" >&6; } 5513fi 5514 5515 if test "x$ac_ct_OTOOL" = x; then 5516 OTOOL=":" 5517 else 5518 case $cross_compiling:$ac_tool_warned in 5519yes:) 5520{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5521whose name does not start with the host triplet. If you think this 5522configuration is useful to you, please write to [email protected]." >&5 5523$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5524whose name does not start with the host triplet. If you think this 5525configuration is useful to you, please write to [email protected]." >&2;} 5526ac_tool_warned=yes ;; 5527esac 5528 OTOOL=$ac_ct_OTOOL 5529 fi 5530else 5531 OTOOL="$ac_cv_prog_OTOOL" 5532fi 5533 5534 if test -n "$ac_tool_prefix"; then 5535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5536set dummy ${ac_tool_prefix}otool64; ac_word=$2 5537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5538$as_echo_n "checking for $ac_word... " >&6; } 5539if test "${ac_cv_prog_OTOOL64+set}" = set; then 5540 $as_echo_n "(cached) " >&6 5541else 5542 if test -n "$OTOOL64"; then 5543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5544else 5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5546for as_dir in $PATH 5547do 5548 IFS=$as_save_IFS 5549 test -z "$as_dir" && as_dir=. 5550 for ac_exec_ext in '' $ac_executable_extensions; do 5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5554 break 2 5555 fi 5556done 5557done 5558IFS=$as_save_IFS 5559 5560fi 5561fi 5562OTOOL64=$ac_cv_prog_OTOOL64 5563if test -n "$OTOOL64"; then 5564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 5565$as_echo "$OTOOL64" >&6; } 5566else 5567 { $as_echo "$as_me:$LINENO: result: no" >&5 5568$as_echo "no" >&6; } 5569fi 5570 5571 5572fi 5573if test -z "$ac_cv_prog_OTOOL64"; then 5574 ac_ct_OTOOL64=$OTOOL64 5575 # Extract the first word of "otool64", so it can be a program name with args. 5576set dummy otool64; ac_word=$2 5577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5578$as_echo_n "checking for $ac_word... " >&6; } 5579if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 5580 $as_echo_n "(cached) " >&6 5581else 5582 if test -n "$ac_ct_OTOOL64"; then 5583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5584else 5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5586for as_dir in $PATH 5587do 5588 IFS=$as_save_IFS 5589 test -z "$as_dir" && as_dir=. 5590 for ac_exec_ext in '' $ac_executable_extensions; do 5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5592 ac_cv_prog_ac_ct_OTOOL64="otool64" 5593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5594 break 2 5595 fi 5596done 5597done 5598IFS=$as_save_IFS 5599 5600fi 5601fi 5602ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5603if test -n "$ac_ct_OTOOL64"; then 5604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 5605$as_echo "$ac_ct_OTOOL64" >&6; } 5606else 5607 { $as_echo "$as_me:$LINENO: result: no" >&5 5608$as_echo "no" >&6; } 5609fi 5610 5611 if test "x$ac_ct_OTOOL64" = x; then 5612 OTOOL64=":" 5613 else 5614 case $cross_compiling:$ac_tool_warned in 5615yes:) 5616{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5617whose name does not start with the host triplet. If you think this 5618configuration is useful to you, please write to [email protected]." >&5 5619$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5620whose name does not start with the host triplet. If you think this 5621configuration is useful to you, please write to [email protected]." >&2;} 5622ac_tool_warned=yes ;; 5623esac 5624 OTOOL64=$ac_ct_OTOOL64 5625 fi 5626else 5627 OTOOL64="$ac_cv_prog_OTOOL64" 5628fi 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 5656 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 5657$as_echo_n "checking for -single_module linker flag... " >&6; } 5658if test "${lt_cv_apple_cc_single_mod+set}" = set; then 5659 $as_echo_n "(cached) " >&6 5660else 5661 lt_cv_apple_cc_single_mod=no 5662 if test -z "${LT_MULTI_MODULE}"; then 5663 # By default we will add the -single_module flag. You can override 5664 # by either setting the environment variable LT_MULTI_MODULE 5665 # non-empty at configure time, or by adding -multi_module to the 5666 # link flags. 5667 rm -rf libconftest.dylib* 5668 echo "int foo(void){return 1;}" > conftest.c 5669 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5670-dynamiclib -Wl,-single_module conftest.c" >&5 5671 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5672 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5673 _lt_result=$? 5674 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5675 lt_cv_apple_cc_single_mod=yes 5676 else 5677 cat conftest.err >&5 5678 fi 5679 rm -rf libconftest.dylib* 5680 rm -f conftest.* 5681 fi 5682fi 5683{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 5684$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5685 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 5686$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5687if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 5688 $as_echo_n "(cached) " >&6 5689else 5690 lt_cv_ld_exported_symbols_list=no 5691 save_LDFLAGS=$LDFLAGS 5692 echo "_main" > conftest.sym 5693 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5694 cat >conftest.$ac_ext <<_ACEOF 5695/* confdefs.h. */ 5696_ACEOF 5697cat confdefs.h >>conftest.$ac_ext 5698cat >>conftest.$ac_ext <<_ACEOF 5699/* end confdefs.h. */ 5700 5701int 5702main () 5703{ 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709rm -f conftest.$ac_objext conftest$ac_exeext 5710if { (ac_try="$ac_link" 5711case "(($ac_try" in 5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 *) ac_try_echo=$ac_try;; 5714esac 5715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5716$as_echo "$ac_try_echo") >&5 5717 (eval "$ac_link") 2>conftest.er1 5718 ac_status=$? 5719 grep -v '^ *+' conftest.er1 >conftest.err 5720 rm -f conftest.er1 5721 cat conftest.err >&5 5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); } && { 5724 test -z "$ac_c_werror_flag" || 5725 test ! -s conftest.err 5726 } && test -s conftest$ac_exeext && { 5727 test "$cross_compiling" = yes || 5728 $as_test_x conftest$ac_exeext 5729 }; then 5730 lt_cv_ld_exported_symbols_list=yes 5731else 5732 $as_echo "$as_me: failed program was:" >&5 5733sed 's/^/| /' conftest.$ac_ext >&5 5734 5735 lt_cv_ld_exported_symbols_list=no 5736fi 5737 5738rm -rf conftest.dSYM 5739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5740 conftest$ac_exeext conftest.$ac_ext 5741 LDFLAGS="$save_LDFLAGS" 5742 5743fi 5744{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 5745$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5746 case $host_os in 5747 rhapsody* | darwin1.[012]) 5748 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5749 darwin1.*) 5750 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5751 darwin*) # darwin 5.x on 5752 # if running on 10.5 or later, the deployment target defaults 5753 # to the OS version, if on x86, and 10.4, the deployment 5754 # target defaults to 10.4. Don't you love it? 5755 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5756 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5758 10.[012]*) 5759 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5760 10.*) 5761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5762 esac 5763 ;; 5764 esac 5765 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5766 _lt_dar_single_mod='$single_module' 5767 fi 5768 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5769 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5770 else 5771 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5772 fi 5773 if test "$DSYMUTIL" != ":"; then 5774 _lt_dsymutil='~$DSYMUTIL $lib || :' 5775 else 5776 _lt_dsymutil= 5777 fi 5778 ;; 5779 esac 5780 5781ac_ext=c 5782ac_cpp='$CPP $CPPFLAGS' 5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5785ac_compiler_gnu=$ac_cv_c_compiler_gnu 5786{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5787$as_echo_n "checking how to run the C preprocessor... " >&6; } 5788# On Suns, sometimes $CPP names a directory. 5789if test -n "$CPP" && test -d "$CPP"; then 5790 CPP= 5791fi 5792if test -z "$CPP"; then 5793 if test "${ac_cv_prog_CPP+set}" = set; then 5794 $as_echo_n "(cached) " >&6 5795else 5796 # Double quotes because CPP needs to be expanded 5797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5798 do 5799 ac_preproc_ok=false 5800for ac_c_preproc_warn_flag in '' yes 5801do 5802 # Use a header file that comes with gcc, so configuring glibc 5803 # with a fresh cross-compiler works. 5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5805 # <limits.h> exists even on freestanding compilers. 5806 # On the NeXT, cc -E runs the code through the compiler's parser, 5807 # not just through cpp. "Syntax error" is here to catch this case. 5808 cat >conftest.$ac_ext <<_ACEOF 5809/* confdefs.h. */ 5810_ACEOF 5811cat confdefs.h >>conftest.$ac_ext 5812cat >>conftest.$ac_ext <<_ACEOF 5813/* end confdefs.h. */ 5814#ifdef __STDC__ 5815# include <limits.h> 5816#else 5817# include <assert.h> 5818#endif 5819 Syntax error 5820_ACEOF 5821if { (ac_try="$ac_cpp conftest.$ac_ext" 5822case "(($ac_try" in 5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5824 *) ac_try_echo=$ac_try;; 5825esac 5826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5827$as_echo "$ac_try_echo") >&5 5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5829 ac_status=$? 5830 grep -v '^ *+' conftest.er1 >conftest.err 5831 rm -f conftest.er1 5832 cat conftest.err >&5 5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5834 (exit $ac_status); } >/dev/null && { 5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5836 test ! -s conftest.err 5837 }; then 5838 : 5839else 5840 $as_echo "$as_me: failed program was:" >&5 5841sed 's/^/| /' conftest.$ac_ext >&5 5842 5843 # Broken: fails on valid input. 5844continue 5845fi 5846 5847rm -f conftest.err conftest.$ac_ext 5848 5849 # OK, works on sane cases. Now check whether nonexistent headers 5850 # can be detected and how. 5851 cat >conftest.$ac_ext <<_ACEOF 5852/* confdefs.h. */ 5853_ACEOF 5854cat confdefs.h >>conftest.$ac_ext 5855cat >>conftest.$ac_ext <<_ACEOF 5856/* end confdefs.h. */ 5857#include <ac_nonexistent.h> 5858_ACEOF 5859if { (ac_try="$ac_cpp conftest.$ac_ext" 5860case "(($ac_try" in 5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5862 *) ac_try_echo=$ac_try;; 5863esac 5864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5865$as_echo "$ac_try_echo") >&5 5866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5867 ac_status=$? 5868 grep -v '^ *+' conftest.er1 >conftest.err 5869 rm -f conftest.er1 5870 cat conftest.err >&5 5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5872 (exit $ac_status); } >/dev/null && { 5873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5874 test ! -s conftest.err 5875 }; then 5876 # Broken: success on invalid input. 5877continue 5878else 5879 $as_echo "$as_me: failed program was:" >&5 5880sed 's/^/| /' conftest.$ac_ext >&5 5881 5882 # Passes both tests. 5883ac_preproc_ok=: 5884break 5885fi 5886 5887rm -f conftest.err conftest.$ac_ext 5888 5889done 5890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5891rm -f conftest.err conftest.$ac_ext 5892if $ac_preproc_ok; then 5893 break 5894fi 5895 5896 done 5897 ac_cv_prog_CPP=$CPP 5898 5899fi 5900 CPP=$ac_cv_prog_CPP 5901else 5902 ac_cv_prog_CPP=$CPP 5903fi 5904{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 5905$as_echo "$CPP" >&6; } 5906ac_preproc_ok=false 5907for ac_c_preproc_warn_flag in '' yes 5908do 5909 # Use a header file that comes with gcc, so configuring glibc 5910 # with a fresh cross-compiler works. 5911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5912 # <limits.h> exists even on freestanding compilers. 5913 # On the NeXT, cc -E runs the code through the compiler's parser, 5914 # not just through cpp. "Syntax error" is here to catch this case. 5915 cat >conftest.$ac_ext <<_ACEOF 5916/* confdefs.h. */ 5917_ACEOF 5918cat confdefs.h >>conftest.$ac_ext 5919cat >>conftest.$ac_ext <<_ACEOF 5920/* end confdefs.h. */ 5921#ifdef __STDC__ 5922# include <limits.h> 5923#else 5924# include <assert.h> 5925#endif 5926 Syntax error 5927_ACEOF 5928if { (ac_try="$ac_cpp conftest.$ac_ext" 5929case "(($ac_try" in 5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5931 *) ac_try_echo=$ac_try;; 5932esac 5933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5934$as_echo "$ac_try_echo") >&5 5935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5936 ac_status=$? 5937 grep -v '^ *+' conftest.er1 >conftest.err 5938 rm -f conftest.er1 5939 cat conftest.err >&5 5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); } >/dev/null && { 5942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5943 test ! -s conftest.err 5944 }; then 5945 : 5946else 5947 $as_echo "$as_me: failed program was:" >&5 5948sed 's/^/| /' conftest.$ac_ext >&5 5949 5950 # Broken: fails on valid input. 5951continue 5952fi 5953 5954rm -f conftest.err conftest.$ac_ext 5955 5956 # OK, works on sane cases. Now check whether nonexistent headers 5957 # can be detected and how. 5958 cat >conftest.$ac_ext <<_ACEOF 5959/* confdefs.h. */ 5960_ACEOF 5961cat confdefs.h >>conftest.$ac_ext 5962cat >>conftest.$ac_ext <<_ACEOF 5963/* end confdefs.h. */ 5964#include <ac_nonexistent.h> 5965_ACEOF 5966if { (ac_try="$ac_cpp conftest.$ac_ext" 5967case "(($ac_try" in 5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5969 *) ac_try_echo=$ac_try;; 5970esac 5971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5972$as_echo "$ac_try_echo") >&5 5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5974 ac_status=$? 5975 grep -v '^ *+' conftest.er1 >conftest.err 5976 rm -f conftest.er1 5977 cat conftest.err >&5 5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5979 (exit $ac_status); } >/dev/null && { 5980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5981 test ! -s conftest.err 5982 }; then 5983 # Broken: success on invalid input. 5984continue 5985else 5986 $as_echo "$as_me: failed program was:" >&5 5987sed 's/^/| /' conftest.$ac_ext >&5 5988 5989 # Passes both tests. 5990ac_preproc_ok=: 5991break 5992fi 5993 5994rm -f conftest.err conftest.$ac_ext 5995 5996done 5997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5998rm -f conftest.err conftest.$ac_ext 5999if $ac_preproc_ok; then 6000 : 6001else 6002 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6003See \`config.log' for more details." >&5 6004$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6005See \`config.log' for more details." >&2;} 6006 { (exit 1); exit 1; }; } 6007fi 6008 6009ac_ext=c 6010ac_cpp='$CPP $CPPFLAGS' 6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6013ac_compiler_gnu=$ac_cv_c_compiler_gnu 6014 6015 6016{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6017$as_echo_n "checking for ANSI C header files... " >&6; } 6018if test "${ac_cv_header_stdc+set}" = set; then 6019 $as_echo_n "(cached) " >&6 6020else 6021 cat >conftest.$ac_ext <<_ACEOF 6022/* confdefs.h. */ 6023_ACEOF 6024cat confdefs.h >>conftest.$ac_ext 6025cat >>conftest.$ac_ext <<_ACEOF 6026/* end confdefs.h. */ 6027#include <stdlib.h> 6028#include <stdarg.h> 6029#include <string.h> 6030#include <float.h> 6031 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040rm -f conftest.$ac_objext 6041if { (ac_try="$ac_compile" 6042case "(($ac_try" in 6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6044 *) ac_try_echo=$ac_try;; 6045esac 6046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6047$as_echo "$ac_try_echo") >&5 6048 (eval "$ac_compile") 2>conftest.er1 6049 ac_status=$? 6050 grep -v '^ *+' conftest.er1 >conftest.err 6051 rm -f conftest.er1 6052 cat conftest.err >&5 6053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6054 (exit $ac_status); } && { 6055 test -z "$ac_c_werror_flag" || 6056 test ! -s conftest.err 6057 } && test -s conftest.$ac_objext; then 6058 ac_cv_header_stdc=yes 6059else 6060 $as_echo "$as_me: failed program was:" >&5 6061sed 's/^/| /' conftest.$ac_ext >&5 6062 6063 ac_cv_header_stdc=no 6064fi 6065 6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6067 6068if test $ac_cv_header_stdc = yes; then 6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6070 cat >conftest.$ac_ext <<_ACEOF 6071/* confdefs.h. */ 6072_ACEOF 6073cat confdefs.h >>conftest.$ac_ext 6074cat >>conftest.$ac_ext <<_ACEOF 6075/* end confdefs.h. */ 6076#include <string.h> 6077 6078_ACEOF 6079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6080 $EGREP "memchr" >/dev/null 2>&1; then 6081 : 6082else 6083 ac_cv_header_stdc=no 6084fi 6085rm -f conftest* 6086 6087fi 6088 6089if test $ac_cv_header_stdc = yes; then 6090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6091 cat >conftest.$ac_ext <<_ACEOF 6092/* confdefs.h. */ 6093_ACEOF 6094cat confdefs.h >>conftest.$ac_ext 6095cat >>conftest.$ac_ext <<_ACEOF 6096/* end confdefs.h. */ 6097#include <stdlib.h> 6098 6099_ACEOF 6100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6101 $EGREP "free" >/dev/null 2>&1; then 6102 : 6103else 6104 ac_cv_header_stdc=no 6105fi 6106rm -f conftest* 6107 6108fi 6109 6110if test $ac_cv_header_stdc = yes; then 6111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6112 if test "$cross_compiling" = yes; then 6113 : 6114else 6115 cat >conftest.$ac_ext <<_ACEOF 6116/* confdefs.h. */ 6117_ACEOF 6118cat confdefs.h >>conftest.$ac_ext 6119cat >>conftest.$ac_ext <<_ACEOF 6120/* end confdefs.h. */ 6121#include <ctype.h> 6122#include <stdlib.h> 6123#if ((' ' & 0x0FF) == 0x020) 6124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6126#else 6127# define ISLOWER(c) \ 6128 (('a' <= (c) && (c) <= 'i') \ 6129 || ('j' <= (c) && (c) <= 'r') \ 6130 || ('s' <= (c) && (c) <= 'z')) 6131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6132#endif 6133 6134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6135int 6136main () 6137{ 6138 int i; 6139 for (i = 0; i < 256; i++) 6140 if (XOR (islower (i), ISLOWER (i)) 6141 || toupper (i) != TOUPPER (i)) 6142 return 2; 6143 return 0; 6144} 6145_ACEOF 6146rm -f conftest$ac_exeext 6147if { (ac_try="$ac_link" 6148case "(($ac_try" in 6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6150 *) ac_try_echo=$ac_try;; 6151esac 6152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6153$as_echo "$ac_try_echo") >&5 6154 (eval "$ac_link") 2>&5 6155 ac_status=$? 6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6158 { (case "(($ac_try" in 6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6160 *) ac_try_echo=$ac_try;; 6161esac 6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6163$as_echo "$ac_try_echo") >&5 6164 (eval "$ac_try") 2>&5 6165 ac_status=$? 6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); }; }; then 6168 : 6169else 6170 $as_echo "$as_me: program exited with status $ac_status" >&5 6171$as_echo "$as_me: failed program was:" >&5 6172sed 's/^/| /' conftest.$ac_ext >&5 6173 6174( exit $ac_status ) 6175ac_cv_header_stdc=no 6176fi 6177rm -rf conftest.dSYM 6178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6179fi 6180 6181 6182fi 6183fi 6184{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6185$as_echo "$ac_cv_header_stdc" >&6; } 6186if test $ac_cv_header_stdc = yes; then 6187 6188cat >>confdefs.h <<\_ACEOF 6189#define STDC_HEADERS 1 6190_ACEOF 6191 6192fi 6193 6194# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6205 inttypes.h stdint.h unistd.h 6206do 6207as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6208{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6209$as_echo_n "checking for $ac_header... " >&6; } 6210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6211 $as_echo_n "(cached) " >&6 6212else 6213 cat >conftest.$ac_ext <<_ACEOF 6214/* confdefs.h. */ 6215_ACEOF 6216cat confdefs.h >>conftest.$ac_ext 6217cat >>conftest.$ac_ext <<_ACEOF 6218/* end confdefs.h. */ 6219$ac_includes_default 6220 6221#include <$ac_header> 6222_ACEOF 6223rm -f conftest.$ac_objext 6224if { (ac_try="$ac_compile" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6230$as_echo "$ac_try_echo") >&5 6231 (eval "$ac_compile") 2>conftest.er1 6232 ac_status=$? 6233 grep -v '^ *+' conftest.er1 >conftest.err 6234 rm -f conftest.er1 6235 cat conftest.err >&5 6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6237 (exit $ac_status); } && { 6238 test -z "$ac_c_werror_flag" || 6239 test ! -s conftest.err 6240 } && test -s conftest.$ac_objext; then 6241 eval "$as_ac_Header=yes" 6242else 6243 $as_echo "$as_me: failed program was:" >&5 6244sed 's/^/| /' conftest.$ac_ext >&5 6245 6246 eval "$as_ac_Header=no" 6247fi 6248 6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6250fi 6251ac_res=`eval 'as_val=${'$as_ac_Header'} 6252 $as_echo "$as_val"'` 6253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6254$as_echo "$ac_res" >&6; } 6255if test `eval 'as_val=${'$as_ac_Header'} 6256 $as_echo "$as_val"'` = yes; then 6257 cat >>confdefs.h <<_ACEOF 6258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6259_ACEOF 6260 6261fi 6262 6263done 6264 6265 6266 6267for ac_header in dlfcn.h 6268do 6269as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6270{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6271$as_echo_n "checking for $ac_header... " >&6; } 6272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6273 $as_echo_n "(cached) " >&6 6274else 6275 cat >conftest.$ac_ext <<_ACEOF 6276/* confdefs.h. */ 6277_ACEOF 6278cat confdefs.h >>conftest.$ac_ext 6279cat >>conftest.$ac_ext <<_ACEOF 6280/* end confdefs.h. */ 6281$ac_includes_default 6282 6283#include <$ac_header> 6284_ACEOF 6285rm -f conftest.$ac_objext 6286if { (ac_try="$ac_compile" 6287case "(($ac_try" in 6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6289 *) ac_try_echo=$ac_try;; 6290esac 6291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6292$as_echo "$ac_try_echo") >&5 6293 (eval "$ac_compile") 2>conftest.er1 6294 ac_status=$? 6295 grep -v '^ *+' conftest.er1 >conftest.err 6296 rm -f conftest.er1 6297 cat conftest.err >&5 6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && { 6300 test -z "$ac_c_werror_flag" || 6301 test ! -s conftest.err 6302 } && test -s conftest.$ac_objext; then 6303 eval "$as_ac_Header=yes" 6304else 6305 $as_echo "$as_me: failed program was:" >&5 6306sed 's/^/| /' conftest.$ac_ext >&5 6307 6308 eval "$as_ac_Header=no" 6309fi 6310 6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6312fi 6313ac_res=`eval 'as_val=${'$as_ac_Header'} 6314 $as_echo "$as_val"'` 6315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6316$as_echo "$ac_res" >&6; } 6317if test `eval 'as_val=${'$as_ac_Header'} 6318 $as_echo "$as_val"'` = yes; then 6319 cat >>confdefs.h <<_ACEOF 6320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6321_ACEOF 6322 6323fi 6324 6325done 6326 6327 6328 6329# Set options 6330 6331 6332 6333 enable_dlopen=no 6334 6335 6336 enable_win32_dll=no 6337 6338 6339 # Check whether --enable-shared was given. 6340if test "${enable_shared+set}" = set; then 6341 enableval=$enable_shared; p=${PACKAGE-default} 6342 case $enableval in 6343 yes) enable_shared=yes ;; 6344 no) enable_shared=no ;; 6345 *) 6346 enable_shared=no 6347 # Look at the argument we got. We use all the common list separators. 6348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6349 for pkg in $enableval; do 6350 IFS="$lt_save_ifs" 6351 if test "X$pkg" = "X$p"; then 6352 enable_shared=yes 6353 fi 6354 done 6355 IFS="$lt_save_ifs" 6356 ;; 6357 esac 6358else 6359 enable_shared=yes 6360fi 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 # Check whether --enable-static was given. 6371if test "${enable_static+set}" = set; then 6372 enableval=$enable_static; p=${PACKAGE-default} 6373 case $enableval in 6374 yes) enable_static=yes ;; 6375 no) enable_static=no ;; 6376 *) 6377 enable_static=no 6378 # Look at the argument we got. We use all the common list separators. 6379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6380 for pkg in $enableval; do 6381 IFS="$lt_save_ifs" 6382 if test "X$pkg" = "X$p"; then 6383 enable_static=yes 6384 fi 6385 done 6386 IFS="$lt_save_ifs" 6387 ;; 6388 esac 6389else 6390 enable_static=yes 6391fi 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402# Check whether --with-pic was given. 6403if test "${with_pic+set}" = set; then 6404 withval=$with_pic; pic_mode="$withval" 6405else 6406 pic_mode=default 6407fi 6408 6409 6410test -z "$pic_mode" && pic_mode=default 6411 6412 6413 6414 6415 6416 6417 6418 # Check whether --enable-fast-install was given. 6419if test "${enable_fast_install+set}" = set; then 6420 enableval=$enable_fast_install; p=${PACKAGE-default} 6421 case $enableval in 6422 yes) enable_fast_install=yes ;; 6423 no) enable_fast_install=no ;; 6424 *) 6425 enable_fast_install=no 6426 # Look at the argument we got. We use all the common list separators. 6427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6428 for pkg in $enableval; do 6429 IFS="$lt_save_ifs" 6430 if test "X$pkg" = "X$p"; then 6431 enable_fast_install=yes 6432 fi 6433 done 6434 IFS="$lt_save_ifs" 6435 ;; 6436 esac 6437else 6438 enable_fast_install=yes 6439fi 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451# This can be used to rebuild libtool when needed 6452LIBTOOL_DEPS="$ltmain" 6453 6454# Always use our own libtool. 6455LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481test -z "$LN_S" && LN_S="ln -s" 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496if test -n "${ZSH_VERSION+set}" ; then 6497 setopt NO_GLOB_SUBST 6498fi 6499 6500{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6501$as_echo_n "checking for objdir... " >&6; } 6502if test "${lt_cv_objdir+set}" = set; then 6503 $as_echo_n "(cached) " >&6 6504else 6505 rm -f .libs 2>/dev/null 6506mkdir .libs 2>/dev/null 6507if test -d .libs; then 6508 lt_cv_objdir=.libs 6509else 6510 # MS-DOS does not allow filenames that begin with a dot. 6511 lt_cv_objdir=_libs 6512fi 6513rmdir .libs 2>/dev/null 6514fi 6515{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6516$as_echo "$lt_cv_objdir" >&6; } 6517objdir=$lt_cv_objdir 6518 6519 6520 6521 6522 6523cat >>confdefs.h <<_ACEOF 6524#define LT_OBJDIR "$lt_cv_objdir/" 6525_ACEOF 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543case $host_os in 6544aix3*) 6545 # AIX sometimes has problems with the GCC collect2 program. For some 6546 # reason, if we set the COLLECT_NAMES environment variable, the problems 6547 # vanish in a puff of smoke. 6548 if test "X${COLLECT_NAMES+set}" != Xset; then 6549 COLLECT_NAMES= 6550 export COLLECT_NAMES 6551 fi 6552 ;; 6553esac 6554 6555# Sed substitution that helps us do robust quoting. It backslashifies 6556# metacharacters that are still active within double-quoted strings. 6557sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6558 6559# Same as above, but do not quote variable references. 6560double_quote_subst='s/\(["`\\]\)/\\\1/g' 6561 6562# Sed substitution to delay expansion of an escaped shell variable in a 6563# double_quote_subst'ed string. 6564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6565 6566# Sed substitution to delay expansion of an escaped single quote. 6567delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6568 6569# Sed substitution to avoid accidental globbing in evaled expressions 6570no_glob_subst='s/\*/\\\*/g' 6571 6572# Global variables: 6573ofile=libtool 6574can_build_shared=yes 6575 6576# All known linkers require a `.a' archive for static linking (except MSVC, 6577# which needs '.lib'). 6578libext=a 6579 6580with_gnu_ld="$lt_cv_prog_gnu_ld" 6581 6582old_CC="$CC" 6583old_CFLAGS="$CFLAGS" 6584 6585# Set sane defaults for various variables 6586test -z "$CC" && CC=cc 6587test -z "$LTCC" && LTCC=$CC 6588test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6589test -z "$LD" && LD=ld 6590test -z "$ac_objext" && ac_objext=o 6591 6592for cc_temp in $compiler""; do 6593 case $cc_temp in 6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6596 \-*) ;; 6597 *) break;; 6598 esac 6599done 6600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6601 6602 6603# Only perform the check for file, if the check method requires it 6604test -z "$MAGIC_CMD" && MAGIC_CMD=file 6605case $deplibs_check_method in 6606file_magic*) 6607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6609$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6611 $as_echo_n "(cached) " >&6 6612else 6613 case $MAGIC_CMD in 6614[\\/*] | ?:[\\/]*) 6615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6616 ;; 6617*) 6618 lt_save_MAGIC_CMD="$MAGIC_CMD" 6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6621 for ac_dir in $ac_dummy; do 6622 IFS="$lt_save_ifs" 6623 test -z "$ac_dir" && ac_dir=. 6624 if test -f $ac_dir/${ac_tool_prefix}file; then 6625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6626 if test -n "$file_magic_test_file"; then 6627 case $deplibs_check_method in 6628 "file_magic "*) 6629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6632 $EGREP "$file_magic_regex" > /dev/null; then 6633 : 6634 else 6635 cat <<_LT_EOF 1>&2 6636 6637*** Warning: the command libtool uses to detect shared libraries, 6638*** $file_magic_cmd, produces output that libtool cannot recognize. 6639*** The result is that libtool may fail to recognize shared libraries 6640*** as such. This will affect the creation of libtool libraries that 6641*** depend on shared libraries, but programs linked with such libtool 6642*** libraries will work regardless of this problem. Nevertheless, you 6643*** may want to report the problem to your system manager and/or to 6644*** [email protected] 6645 6646_LT_EOF 6647 fi ;; 6648 esac 6649 fi 6650 break 6651 fi 6652 done 6653 IFS="$lt_save_ifs" 6654 MAGIC_CMD="$lt_save_MAGIC_CMD" 6655 ;; 6656esac 6657fi 6658 6659MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6660if test -n "$MAGIC_CMD"; then 6661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6662$as_echo "$MAGIC_CMD" >&6; } 6663else 6664 { $as_echo "$as_me:$LINENO: result: no" >&5 6665$as_echo "no" >&6; } 6666fi 6667 6668 6669 6670 6671 6672if test -z "$lt_cv_path_MAGIC_CMD"; then 6673 if test -n "$ac_tool_prefix"; then 6674 { $as_echo "$as_me:$LINENO: checking for file" >&5 6675$as_echo_n "checking for file... " >&6; } 6676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6677 $as_echo_n "(cached) " >&6 6678else 6679 case $MAGIC_CMD in 6680[\\/*] | ?:[\\/]*) 6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6682 ;; 6683*) 6684 lt_save_MAGIC_CMD="$MAGIC_CMD" 6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6687 for ac_dir in $ac_dummy; do 6688 IFS="$lt_save_ifs" 6689 test -z "$ac_dir" && ac_dir=. 6690 if test -f $ac_dir/file; then 6691 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6692 if test -n "$file_magic_test_file"; then 6693 case $deplibs_check_method in 6694 "file_magic "*) 6695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6698 $EGREP "$file_magic_regex" > /dev/null; then 6699 : 6700 else 6701 cat <<_LT_EOF 1>&2 6702 6703*** Warning: the command libtool uses to detect shared libraries, 6704*** $file_magic_cmd, produces output that libtool cannot recognize. 6705*** The result is that libtool may fail to recognize shared libraries 6706*** as such. This will affect the creation of libtool libraries that 6707*** depend on shared libraries, but programs linked with such libtool 6708*** libraries will work regardless of this problem. Nevertheless, you 6709*** may want to report the problem to your system manager and/or to 6710*** [email protected] 6711 6712_LT_EOF 6713 fi ;; 6714 esac 6715 fi 6716 break 6717 fi 6718 done 6719 IFS="$lt_save_ifs" 6720 MAGIC_CMD="$lt_save_MAGIC_CMD" 6721 ;; 6722esac 6723fi 6724 6725MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6726if test -n "$MAGIC_CMD"; then 6727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6728$as_echo "$MAGIC_CMD" >&6; } 6729else 6730 { $as_echo "$as_me:$LINENO: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733 6734 6735 else 6736 MAGIC_CMD=: 6737 fi 6738fi 6739 6740 fi 6741 ;; 6742esac 6743 6744# Use C for the default configuration in the libtool script 6745 6746lt_save_CC="$CC" 6747ac_ext=c 6748ac_cpp='$CPP $CPPFLAGS' 6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6751ac_compiler_gnu=$ac_cv_c_compiler_gnu 6752 6753 6754# Source file extension for C test sources. 6755ac_ext=c 6756 6757# Object file extension for compiled C test sources. 6758objext=o 6759objext=$objext 6760 6761# Code to be used in simple compile tests 6762lt_simple_compile_test_code="int some_variable = 0;" 6763 6764# Code to be used in simple link tests 6765lt_simple_link_test_code='int main(){return(0);}' 6766 6767 6768 6769 6770 6771 6772 6773# If no C compiler was specified, use CC. 6774LTCC=${LTCC-"$CC"} 6775 6776# If no C compiler flags were specified, use CFLAGS. 6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6778 6779# Allow CC to be a program name with arguments. 6780compiler=$CC 6781 6782# Save the default compiler, since it gets overwritten when the other 6783# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6784compiler_DEFAULT=$CC 6785 6786# save warnings/boilerplate of simple test code 6787ac_outfile=conftest.$ac_objext 6788echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6790_lt_compiler_boilerplate=`cat conftest.err` 6791$RM conftest* 6792 6793ac_outfile=conftest.$ac_objext 6794echo "$lt_simple_link_test_code" >conftest.$ac_ext 6795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6796_lt_linker_boilerplate=`cat conftest.err` 6797$RM -r conftest* 6798 6799 6800if test -n "$compiler"; then 6801 6802lt_prog_compiler_no_builtin_flag= 6803 6804if test "$GCC" = yes; then 6805 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6806 6807 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6808$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6809if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6810 $as_echo_n "(cached) " >&6 6811else 6812 lt_cv_prog_compiler_rtti_exceptions=no 6813 ac_outfile=conftest.$ac_objext 6814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6815 lt_compiler_flag="-fno-rtti -fno-exceptions" 6816 # Insert the option either (1) after the last *FLAGS variable, or 6817 # (2) before a word containing "conftest.", or (3) at the end. 6818 # Note that $ac_compile itself does not contain backslashes and begins 6819 # with a dollar sign (not a hyphen), so the echo should work correctly. 6820 # The option is referenced via a variable to avoid confusing sed. 6821 lt_compile=`echo "$ac_compile" | $SED \ 6822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6824 -e 's:$: $lt_compiler_flag:'` 6825 (eval echo "\"\$as_me:6825: $lt_compile\"" >&5) 6826 (eval "$lt_compile" 2>conftest.err) 6827 ac_status=$? 6828 cat conftest.err >&5 6829 echo "$as_me:6829: \$? = $ac_status" >&5 6830 if (exit $ac_status) && test -s "$ac_outfile"; then 6831 # The compiler can only warn and ignore the option if not recognized 6832 # So say no if there are warnings other than the usual output. 6833 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6836 lt_cv_prog_compiler_rtti_exceptions=yes 6837 fi 6838 fi 6839 $RM conftest* 6840 6841fi 6842{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6843$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6844 6845if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6846 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6847else 6848 : 6849fi 6850 6851fi 6852 6853 6854 6855 6856 6857 6858 lt_prog_compiler_wl= 6859lt_prog_compiler_pic= 6860lt_prog_compiler_static= 6861 6862{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6863$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6864 6865 if test "$GCC" = yes; then 6866 lt_prog_compiler_wl='-Wl,' 6867 lt_prog_compiler_static='-static' 6868 6869 case $host_os in 6870 aix*) 6871 # All AIX code is PIC. 6872 if test "$host_cpu" = ia64; then 6873 # AIX 5 now supports IA64 processor 6874 lt_prog_compiler_static='-Bstatic' 6875 fi 6876 ;; 6877 6878 amigaos*) 6879 case $host_cpu in 6880 powerpc) 6881 # see comment about AmigaOS4 .so support 6882 lt_prog_compiler_pic='-fPIC' 6883 ;; 6884 m68k) 6885 # FIXME: we need at least 68020 code to build shared libraries, but 6886 # adding the `-m68020' flag to GCC prevents building anything better, 6887 # like `-m68040'. 6888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6889 ;; 6890 esac 6891 ;; 6892 6893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6894 # PIC is the default for these OSes. 6895 ;; 6896 6897 mingw* | cygwin* | pw32* | os2* | cegcc*) 6898 # This hack is so that the source file can tell whether it is being 6899 # built for inclusion in a dll (and should export symbols for example). 6900 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6901 # (--disable-auto-import) libraries 6902 lt_prog_compiler_pic='-DDLL_EXPORT' 6903 ;; 6904 6905 darwin* | rhapsody*) 6906 # PIC is the default on this platform 6907 # Common symbols not allowed in MH_DYLIB files 6908 lt_prog_compiler_pic='-fno-common' 6909 ;; 6910 6911 hpux*) 6912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6914 # sets the default TLS model and affects inlining. 6915 case $host_cpu in 6916 hppa*64*) 6917 # +Z the default 6918 ;; 6919 *) 6920 lt_prog_compiler_pic='-fPIC' 6921 ;; 6922 esac 6923 ;; 6924 6925 interix[3-9]*) 6926 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6927 # Instead, we relocate shared libraries at runtime. 6928 ;; 6929 6930 msdosdjgpp*) 6931 # Just because we use GCC doesn't mean we suddenly get shared libraries 6932 # on systems that don't support them. 6933 lt_prog_compiler_can_build_shared=no 6934 enable_shared=no 6935 ;; 6936 6937 *nto* | *qnx*) 6938 # QNX uses GNU C++, but need to define -shared option too, otherwise 6939 # it will coredump. 6940 lt_prog_compiler_pic='-fPIC -shared' 6941 ;; 6942 6943 sysv4*MP*) 6944 if test -d /usr/nec; then 6945 lt_prog_compiler_pic=-Kconform_pic 6946 fi 6947 ;; 6948 6949 *) 6950 lt_prog_compiler_pic='-fPIC' 6951 ;; 6952 esac 6953 else 6954 # PORTME Check for flag to pass linker flags through the system compiler. 6955 case $host_os in 6956 aix*) 6957 lt_prog_compiler_wl='-Wl,' 6958 if test "$host_cpu" = ia64; then 6959 # AIX 5 now supports IA64 processor 6960 lt_prog_compiler_static='-Bstatic' 6961 else 6962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6963 fi 6964 ;; 6965 6966 mingw* | cygwin* | pw32* | os2* | cegcc*) 6967 # This hack is so that the source file can tell whether it is being 6968 # built for inclusion in a dll (and should export symbols for example). 6969 lt_prog_compiler_pic='-DDLL_EXPORT' 6970 ;; 6971 6972 hpux9* | hpux10* | hpux11*) 6973 lt_prog_compiler_wl='-Wl,' 6974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6975 # not for PA HP-UX. 6976 case $host_cpu in 6977 hppa*64*|ia64*) 6978 # +Z the default 6979 ;; 6980 *) 6981 lt_prog_compiler_pic='+Z' 6982 ;; 6983 esac 6984 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6985 lt_prog_compiler_static='${wl}-a ${wl}archive' 6986 ;; 6987 6988 irix5* | irix6* | nonstopux*) 6989 lt_prog_compiler_wl='-Wl,' 6990 # PIC (with -KPIC) is the default. 6991 lt_prog_compiler_static='-non_shared' 6992 ;; 6993 6994 linux* | k*bsd*-gnu) 6995 case $cc_basename in 6996 # old Intel for x86_64 which still supported -KPIC. 6997 ecc*) 6998 lt_prog_compiler_wl='-Wl,' 6999 lt_prog_compiler_pic='-KPIC' 7000 lt_prog_compiler_static='-static' 7001 ;; 7002 # icc used to be incompatible with GCC. 7003 # ICC 10 doesn't accept -KPIC any more. 7004 icc* | ifort*) 7005 lt_prog_compiler_wl='-Wl,' 7006 lt_prog_compiler_pic='-fPIC' 7007 lt_prog_compiler_static='-static' 7008 ;; 7009 # Lahey Fortran 8.1. 7010 lf95*) 7011 lt_prog_compiler_wl='-Wl,' 7012 lt_prog_compiler_pic='--shared' 7013 lt_prog_compiler_static='--static' 7014 ;; 7015 pgcc* | pgf77* | pgf90* | pgf95*) 7016 # Portland Group compilers (*not* the Pentium gcc compiler, 7017 # which looks to be a dead project) 7018 lt_prog_compiler_wl='-Wl,' 7019 lt_prog_compiler_pic='-fpic' 7020 lt_prog_compiler_static='-Bstatic' 7021 ;; 7022 ccc*) 7023 lt_prog_compiler_wl='-Wl,' 7024 # All Alpha code is PIC. 7025 lt_prog_compiler_static='-non_shared' 7026 ;; 7027 xl*) 7028 # IBM XL C 8.0/Fortran 10.1 on PPC 7029 lt_prog_compiler_wl='-Wl,' 7030 lt_prog_compiler_pic='-qpic' 7031 lt_prog_compiler_static='-qstaticlink' 7032 ;; 7033 *) 7034 case `$CC -V 2>&1 | sed 5q` in 7035 *Sun\ C*) 7036 # Sun C 5.9 7037 lt_prog_compiler_pic='-KPIC' 7038 lt_prog_compiler_static='-Bstatic' 7039 lt_prog_compiler_wl='-Wl,' 7040 ;; 7041 *Sun\ F*) 7042 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7043 lt_prog_compiler_pic='-KPIC' 7044 lt_prog_compiler_static='-Bstatic' 7045 lt_prog_compiler_wl='' 7046 ;; 7047 esac 7048 ;; 7049 esac 7050 ;; 7051 7052 newsos6) 7053 lt_prog_compiler_pic='-KPIC' 7054 lt_prog_compiler_static='-Bstatic' 7055 ;; 7056 7057 *nto* | *qnx*) 7058 # QNX uses GNU C++, but need to define -shared option too, otherwise 7059 # it will coredump. 7060 lt_prog_compiler_pic='-fPIC -shared' 7061 ;; 7062 7063 osf3* | osf4* | osf5*) 7064 lt_prog_compiler_wl='-Wl,' 7065 # All OSF/1 code is PIC. 7066 lt_prog_compiler_static='-non_shared' 7067 ;; 7068 7069 rdos*) 7070 lt_prog_compiler_static='-non_shared' 7071 ;; 7072 7073 solaris*) 7074 lt_prog_compiler_pic='-KPIC' 7075 lt_prog_compiler_static='-Bstatic' 7076 case $cc_basename in 7077 f77* | f90* | f95*) 7078 lt_prog_compiler_wl='-Qoption ld ';; 7079 *) 7080 lt_prog_compiler_wl='-Wl,';; 7081 esac 7082 ;; 7083 7084 sunos4*) 7085 lt_prog_compiler_wl='-Qoption ld ' 7086 lt_prog_compiler_pic='-PIC' 7087 lt_prog_compiler_static='-Bstatic' 7088 ;; 7089 7090 sysv4 | sysv4.2uw2* | sysv4.3*) 7091 lt_prog_compiler_wl='-Wl,' 7092 lt_prog_compiler_pic='-KPIC' 7093 lt_prog_compiler_static='-Bstatic' 7094 ;; 7095 7096 sysv4*MP*) 7097 if test -d /usr/nec ;then 7098 lt_prog_compiler_pic='-Kconform_pic' 7099 lt_prog_compiler_static='-Bstatic' 7100 fi 7101 ;; 7102 7103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7104 lt_prog_compiler_wl='-Wl,' 7105 lt_prog_compiler_pic='-KPIC' 7106 lt_prog_compiler_static='-Bstatic' 7107 ;; 7108 7109 unicos*) 7110 lt_prog_compiler_wl='-Wl,' 7111 lt_prog_compiler_can_build_shared=no 7112 ;; 7113 7114 uts4*) 7115 lt_prog_compiler_pic='-pic' 7116 lt_prog_compiler_static='-Bstatic' 7117 ;; 7118 7119 *) 7120 lt_prog_compiler_can_build_shared=no 7121 ;; 7122 esac 7123 fi 7124 7125case $host_os in 7126 # For platforms which do not support PIC, -DPIC is meaningless: 7127 *djgpp*) 7128 lt_prog_compiler_pic= 7129 ;; 7130 *) 7131 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7132 ;; 7133esac 7134{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7135$as_echo "$lt_prog_compiler_pic" >&6; } 7136 7137 7138 7139 7140 7141 7142# 7143# Check to make sure the PIC flag actually works. 7144# 7145if test -n "$lt_prog_compiler_pic"; then 7146 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7147$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7148if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7149 $as_echo_n "(cached) " >&6 7150else 7151 lt_cv_prog_compiler_pic_works=no 7152 ac_outfile=conftest.$ac_objext 7153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7155 # Insert the option either (1) after the last *FLAGS variable, or 7156 # (2) before a word containing "conftest.", or (3) at the end. 7157 # Note that $ac_compile itself does not contain backslashes and begins 7158 # with a dollar sign (not a hyphen), so the echo should work correctly. 7159 # The option is referenced via a variable to avoid confusing sed. 7160 lt_compile=`echo "$ac_compile" | $SED \ 7161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7163 -e 's:$: $lt_compiler_flag:'` 7164 (eval echo "\"\$as_me:7164: $lt_compile\"" >&5) 7165 (eval "$lt_compile" 2>conftest.err) 7166 ac_status=$? 7167 cat conftest.err >&5 7168 echo "$as_me:7168: \$? = $ac_status" >&5 7169 if (exit $ac_status) && test -s "$ac_outfile"; then 7170 # The compiler can only warn and ignore the option if not recognized 7171 # So say no if there are warnings other than the usual output. 7172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7175 lt_cv_prog_compiler_pic_works=yes 7176 fi 7177 fi 7178 $RM conftest* 7179 7180fi 7181{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7182$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7183 7184if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7185 case $lt_prog_compiler_pic in 7186 "" | " "*) ;; 7187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7188 esac 7189else 7190 lt_prog_compiler_pic= 7191 lt_prog_compiler_can_build_shared=no 7192fi 7193 7194fi 7195 7196 7197 7198 7199 7200 7201# 7202# Check to make sure the static flag actually works. 7203# 7204wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7205{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7206$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7207if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7208 $as_echo_n "(cached) " >&6 7209else 7210 lt_cv_prog_compiler_static_works=no 7211 save_LDFLAGS="$LDFLAGS" 7212 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7213 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7215 # The linker can only warn and ignore the option if not recognized 7216 # So say no if there are warnings 7217 if test -s conftest.err; then 7218 # Append any errors to the config.log. 7219 cat conftest.err 1>&5 7220 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7222 if diff conftest.exp conftest.er2 >/dev/null; then 7223 lt_cv_prog_compiler_static_works=yes 7224 fi 7225 else 7226 lt_cv_prog_compiler_static_works=yes 7227 fi 7228 fi 7229 $RM -r conftest* 7230 LDFLAGS="$save_LDFLAGS" 7231 7232fi 7233{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7234$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7235 7236if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7237 : 7238else 7239 lt_prog_compiler_static= 7240fi 7241 7242 7243 7244 7245 7246 7247 7248 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7250if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7251 $as_echo_n "(cached) " >&6 7252else 7253 lt_cv_prog_compiler_c_o=no 7254 $RM -r conftest 2>/dev/null 7255 mkdir conftest 7256 cd conftest 7257 mkdir out 7258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7259 7260 lt_compiler_flag="-o out/conftest2.$ac_objext" 7261 # Insert the option either (1) after the last *FLAGS variable, or 7262 # (2) before a word containing "conftest.", or (3) at the end. 7263 # Note that $ac_compile itself does not contain backslashes and begins 7264 # with a dollar sign (not a hyphen), so the echo should work correctly. 7265 lt_compile=`echo "$ac_compile" | $SED \ 7266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7268 -e 's:$: $lt_compiler_flag:'` 7269 (eval echo "\"\$as_me:7269: $lt_compile\"" >&5) 7270 (eval "$lt_compile" 2>out/conftest.err) 7271 ac_status=$? 7272 cat out/conftest.err >&5 7273 echo "$as_me:7273: \$? = $ac_status" >&5 7274 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7275 then 7276 # The compiler can only warn and ignore the option if not recognized 7277 # So say no if there are warnings 7278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7281 lt_cv_prog_compiler_c_o=yes 7282 fi 7283 fi 7284 chmod u+w . 2>&5 7285 $RM conftest* 7286 # SGI C++ compiler will create directory out/ii_files/ for 7287 # template instantiation 7288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7289 $RM out/* && rmdir out 7290 cd .. 7291 $RM -r conftest 7292 $RM conftest* 7293 7294fi 7295{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7296$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7297 7298 7299 7300 7301 7302 7303 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7304$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7305if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7306 $as_echo_n "(cached) " >&6 7307else 7308 lt_cv_prog_compiler_c_o=no 7309 $RM -r conftest 2>/dev/null 7310 mkdir conftest 7311 cd conftest 7312 mkdir out 7313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7314 7315 lt_compiler_flag="-o out/conftest2.$ac_objext" 7316 # Insert the option either (1) after the last *FLAGS variable, or 7317 # (2) before a word containing "conftest.", or (3) at the end. 7318 # Note that $ac_compile itself does not contain backslashes and begins 7319 # with a dollar sign (not a hyphen), so the echo should work correctly. 7320 lt_compile=`echo "$ac_compile" | $SED \ 7321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7323 -e 's:$: $lt_compiler_flag:'` 7324 (eval echo "\"\$as_me:7324: $lt_compile\"" >&5) 7325 (eval "$lt_compile" 2>out/conftest.err) 7326 ac_status=$? 7327 cat out/conftest.err >&5 7328 echo "$as_me:7328: \$? = $ac_status" >&5 7329 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7330 then 7331 # The compiler can only warn and ignore the option if not recognized 7332 # So say no if there are warnings 7333 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7336 lt_cv_prog_compiler_c_o=yes 7337 fi 7338 fi 7339 chmod u+w . 2>&5 7340 $RM conftest* 7341 # SGI C++ compiler will create directory out/ii_files/ for 7342 # template instantiation 7343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7344 $RM out/* && rmdir out 7345 cd .. 7346 $RM -r conftest 7347 $RM conftest* 7348 7349fi 7350{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7351$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7352 7353 7354 7355 7356hard_links="nottested" 7357if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7358 # do not overwrite the value of need_locks provided by the user 7359 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7360$as_echo_n "checking if we can lock with hard links... " >&6; } 7361 hard_links=yes 7362 $RM conftest* 7363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7364 touch conftest.a 7365 ln conftest.a conftest.b 2>&5 || hard_links=no 7366 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7367 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7368$as_echo "$hard_links" >&6; } 7369 if test "$hard_links" = no; then 7370 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7371$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7372 need_locks=warn 7373 fi 7374else 7375 need_locks=no 7376fi 7377 7378 7379 7380 7381 7382 7383 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7384$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7385 7386 runpath_var= 7387 allow_undefined_flag= 7388 always_export_symbols=no 7389 archive_cmds= 7390 archive_expsym_cmds= 7391 compiler_needs_object=no 7392 enable_shared_with_static_runtimes=no 7393 export_dynamic_flag_spec= 7394 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7395 hardcode_automatic=no 7396 hardcode_direct=no 7397 hardcode_direct_absolute=no 7398 hardcode_libdir_flag_spec= 7399 hardcode_libdir_flag_spec_ld= 7400 hardcode_libdir_separator= 7401 hardcode_minus_L=no 7402 hardcode_shlibpath_var=unsupported 7403 inherit_rpath=no 7404 link_all_deplibs=unknown 7405 module_cmds= 7406 module_expsym_cmds= 7407 old_archive_from_new_cmds= 7408 old_archive_from_expsyms_cmds= 7409 thread_safe_flag_spec= 7410 whole_archive_flag_spec= 7411 # include_expsyms should be a list of space-separated symbols to be *always* 7412 # included in the symbol list 7413 include_expsyms= 7414 # exclude_expsyms can be an extended regexp of symbols to exclude 7415 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7416 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7417 # as well as any symbol that contains `d'. 7418 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7419 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7420 # platforms (ab)use it in PIC code, but their linkers get confused if 7421 # the symbol is explicitly referenced. Since portable code cannot 7422 # rely on this symbol name, it's probably fine to never include it in 7423 # preloaded symbol tables. 7424 # Exclude shared library initialization/finalization symbols. 7425 extract_expsyms_cmds= 7426 7427 case $host_os in 7428 cygwin* | mingw* | pw32* | cegcc*) 7429 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7430 # When not using gcc, we currently assume that we are using 7431 # Microsoft Visual C++. 7432 if test "$GCC" != yes; then 7433 with_gnu_ld=no 7434 fi 7435 ;; 7436 interix*) 7437 # we just hope/assume this is gcc and not c89 (= MSVC++) 7438 with_gnu_ld=yes 7439 ;; 7440 openbsd*) 7441 with_gnu_ld=no 7442 ;; 7443 esac 7444 7445 ld_shlibs=yes 7446 if test "$with_gnu_ld" = yes; then 7447 # If archive_cmds runs LD, not CC, wlarc should be empty 7448 wlarc='${wl}' 7449 7450 # Set some defaults for GNU ld with shared library support. These 7451 # are reset later if shared libraries are not supported. Putting them 7452 # here allows them to be overridden if necessary. 7453 runpath_var=LD_RUN_PATH 7454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7455 export_dynamic_flag_spec='${wl}--export-dynamic' 7456 # ancient GNU ld didn't support --whole-archive et. al. 7457 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7458 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7459 else 7460 whole_archive_flag_spec= 7461 fi 7462 supports_anon_versioning=no 7463 case `$LD -v 2>&1` in 7464 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7465 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7466 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7467 *\ 2.11.*) ;; # other 2.11 versions 7468 *) supports_anon_versioning=yes ;; 7469 esac 7470 7471 # See if GNU ld supports shared libraries. 7472 case $host_os in 7473 aix[3-9]*) 7474 # On AIX/PPC, the GNU linker is very broken 7475 if test "$host_cpu" != ia64; then 7476 ld_shlibs=no 7477 cat <<_LT_EOF 1>&2 7478 7479*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7480*** to be unable to reliably create shared libraries on AIX. 7481*** Therefore, libtool is disabling shared libraries support. If you 7482*** really care for shared libraries, you may want to modify your PATH 7483*** so that a non-GNU linker is found, and then restart. 7484 7485_LT_EOF 7486 fi 7487 ;; 7488 7489 amigaos*) 7490 case $host_cpu in 7491 powerpc) 7492 # see comment about AmigaOS4 .so support 7493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7494 archive_expsym_cmds='' 7495 ;; 7496 m68k) 7497 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)' 7498 hardcode_libdir_flag_spec='-L$libdir' 7499 hardcode_minus_L=yes 7500 ;; 7501 esac 7502 ;; 7503 7504 beos*) 7505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7506 allow_undefined_flag=unsupported 7507 # Joseph Beckenbach <[email protected]> says some releases of gcc 7508 # support --undefined. This deserves some investigation. FIXME 7509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7510 else 7511 ld_shlibs=no 7512 fi 7513 ;; 7514 7515 cygwin* | mingw* | pw32* | cegcc*) 7516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7517 # as there is no search path for DLLs. 7518 hardcode_libdir_flag_spec='-L$libdir' 7519 allow_undefined_flag=unsupported 7520 always_export_symbols=no 7521 enable_shared_with_static_runtimes=yes 7522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7523 7524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7526 # If the export-symbols file already is a .def file (1st line 7527 # is EXPORTS), use it as is; otherwise, prepend... 7528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7529 cp $export_symbols $output_objdir/$soname.def; 7530 else 7531 echo EXPORTS > $output_objdir/$soname.def; 7532 cat $export_symbols >> $output_objdir/$soname.def; 7533 fi~ 7534 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7535 else 7536 ld_shlibs=no 7537 fi 7538 ;; 7539 7540 interix[3-9]*) 7541 hardcode_direct=no 7542 hardcode_shlibpath_var=no 7543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7544 export_dynamic_flag_spec='${wl}-E' 7545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7546 # Instead, shared libraries are loaded at an image base (0x10000000 by 7547 # default) and relocated if they conflict, which is a slow very memory 7548 # consuming and fragmenting process. To avoid this, we pick a random, 7549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7550 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7552 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' 7553 ;; 7554 7555 gnu* | linux* | tpf* | k*bsd*-gnu) 7556 tmp_diet=no 7557 if test "$host_os" = linux-dietlibc; then 7558 case $cc_basename in 7559 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7560 esac 7561 fi 7562 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7563 && test "$tmp_diet" = no 7564 then 7565 tmp_addflag= 7566 tmp_sharedflag='-shared' 7567 case $cc_basename,$host_cpu in 7568 pgcc*) # Portland Group C compiler 7569 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' 7570 tmp_addflag=' $pic_flag' 7571 ;; 7572 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7573 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' 7574 tmp_addflag=' $pic_flag -Mnomain' ;; 7575 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7576 tmp_addflag=' -i_dynamic' ;; 7577 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7578 tmp_addflag=' -i_dynamic -nofor_main' ;; 7579 ifc* | ifort*) # Intel Fortran compiler 7580 tmp_addflag=' -nofor_main' ;; 7581 lf95*) # Lahey Fortran 8.1 7582 whole_archive_flag_spec= 7583 tmp_sharedflag='--shared' ;; 7584 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7585 tmp_sharedflag='-qmkshrobj' 7586 tmp_addflag= ;; 7587 esac 7588 case `$CC -V 2>&1 | sed 5q` in 7589 *Sun\ C*) # Sun C 5.9 7590 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' 7591 compiler_needs_object=yes 7592 tmp_sharedflag='-G' ;; 7593 *Sun\ F*) # Sun Fortran 8.3 7594 tmp_sharedflag='-G' ;; 7595 esac 7596 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7597 7598 if test "x$supports_anon_versioning" = xyes; then 7599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7601 echo "local: *; };" >> $output_objdir/$libname.ver~ 7602 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7603 fi 7604 7605 case $cc_basename in 7606 xlf*) 7607 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7608 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7609 hardcode_libdir_flag_spec= 7610 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7611 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7612 if test "x$supports_anon_versioning" = xyes; then 7613 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7615 echo "local: *; };" >> $output_objdir/$libname.ver~ 7616 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7617 fi 7618 ;; 7619 esac 7620 else 7621 ld_shlibs=no 7622 fi 7623 ;; 7624 7625 netbsd*) 7626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7627 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7628 wlarc= 7629 else 7630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7632 fi 7633 ;; 7634 7635 solaris*) 7636 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7637 ld_shlibs=no 7638 cat <<_LT_EOF 1>&2 7639 7640*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7641*** create shared libraries on Solaris systems. Therefore, libtool 7642*** is disabling shared libraries support. We urge you to upgrade GNU 7643*** binutils to release 2.9.1 or newer. Another option is to modify 7644*** your PATH or compiler configuration so that the native linker is 7645*** used, and then restart. 7646 7647_LT_EOF 7648 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7651 else 7652 ld_shlibs=no 7653 fi 7654 ;; 7655 7656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7657 case `$LD -v 2>&1` in 7658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7659 ld_shlibs=no 7660 cat <<_LT_EOF 1>&2 7661 7662*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7663*** reliably create shared libraries on SCO systems. Therefore, libtool 7664*** is disabling shared libraries support. We urge you to upgrade GNU 7665*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7666*** your PATH or compiler configuration so that the native linker is 7667*** used, and then restart. 7668 7669_LT_EOF 7670 ;; 7671 *) 7672 # For security reasons, it is highly recommended that you always 7673 # use absolute paths for naming shared libraries, and exclude the 7674 # DT_RUNPATH tag from executables and libraries. But doing so 7675 # requires that you compile everything twice, which is a pain. 7676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7680 else 7681 ld_shlibs=no 7682 fi 7683 ;; 7684 esac 7685 ;; 7686 7687 sunos4*) 7688 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7689 wlarc= 7690 hardcode_direct=yes 7691 hardcode_shlibpath_var=no 7692 ;; 7693 7694 *) 7695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7698 else 7699 ld_shlibs=no 7700 fi 7701 ;; 7702 esac 7703 7704 if test "$ld_shlibs" = no; then 7705 runpath_var= 7706 hardcode_libdir_flag_spec= 7707 export_dynamic_flag_spec= 7708 whole_archive_flag_spec= 7709 fi 7710 else 7711 # PORTME fill in a description of your system's linker (not GNU ld) 7712 case $host_os in 7713 aix3*) 7714 allow_undefined_flag=unsupported 7715 always_export_symbols=yes 7716 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' 7717 # Note: this linker hardcodes the directories in LIBPATH if there 7718 # are no directories specified by -L. 7719 hardcode_minus_L=yes 7720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7721 # Neither direct hardcoding nor static linking is supported with a 7722 # broken collect2. 7723 hardcode_direct=unsupported 7724 fi 7725 ;; 7726 7727 aix[4-9]*) 7728 if test "$host_cpu" = ia64; then 7729 # On IA64, the linker does run time linking by default, so we don't 7730 # have to do anything special. 7731 aix_use_runtimelinking=no 7732 exp_sym_flag='-Bexport' 7733 no_entry_flag="" 7734 else 7735 # If we're using GNU nm, then we don't want the "-C" option. 7736 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7737 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7738 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' 7739 else 7740 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' 7741 fi 7742 aix_use_runtimelinking=no 7743 7744 # Test if we are trying to use run time linking or normal 7745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7746 # need to do runtime linking. 7747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7748 for ld_flag in $LDFLAGS; do 7749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7750 aix_use_runtimelinking=yes 7751 break 7752 fi 7753 done 7754 ;; 7755 esac 7756 7757 exp_sym_flag='-bexport' 7758 no_entry_flag='-bnoentry' 7759 fi 7760 7761 # When large executables or shared objects are built, AIX ld can 7762 # have problems creating the table of contents. If linking a library 7763 # or program results in "error TOC overflow" add -mminimal-toc to 7764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7766 7767 archive_cmds='' 7768 hardcode_direct=yes 7769 hardcode_direct_absolute=yes 7770 hardcode_libdir_separator=':' 7771 link_all_deplibs=yes 7772 file_list_spec='${wl}-f,' 7773 7774 if test "$GCC" = yes; then 7775 case $host_os in aix4.[012]|aix4.[012].*) 7776 # We only want to do this on AIX 4.2 and lower, the check 7777 # below for broken collect2 doesn't work under 4.3+ 7778 collect2name=`${CC} -print-prog-name=collect2` 7779 if test -f "$collect2name" && 7780 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7781 then 7782 # We have reworked collect2 7783 : 7784 else 7785 # We have old collect2 7786 hardcode_direct=unsupported 7787 # It fails to find uninstalled libraries when the uninstalled 7788 # path is not listed in the libpath. Setting hardcode_minus_L 7789 # to unsupported forces relinking 7790 hardcode_minus_L=yes 7791 hardcode_libdir_flag_spec='-L$libdir' 7792 hardcode_libdir_separator= 7793 fi 7794 ;; 7795 esac 7796 shared_flag='-shared' 7797 if test "$aix_use_runtimelinking" = yes; then 7798 shared_flag="$shared_flag "'${wl}-G' 7799 fi 7800 else 7801 # not using gcc 7802 if test "$host_cpu" = ia64; then 7803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7804 # chokes on -Wl,-G. The following line is correct: 7805 shared_flag='-G' 7806 else 7807 if test "$aix_use_runtimelinking" = yes; then 7808 shared_flag='${wl}-G' 7809 else 7810 shared_flag='${wl}-bM:SRE' 7811 fi 7812 fi 7813 fi 7814 7815 export_dynamic_flag_spec='${wl}-bexpall' 7816 # It seems that -bexpall does not export symbols beginning with 7817 # underscore (_), so it is better to generate a list of symbols to export. 7818 always_export_symbols=yes 7819 if test "$aix_use_runtimelinking" = yes; then 7820 # Warning - without using the other runtime loading flags (-brtl), 7821 # -berok will link without error, but may produce a broken library. 7822 allow_undefined_flag='-berok' 7823 # Determine the default libpath from the value encoded in an 7824 # empty executable. 7825 cat >conftest.$ac_ext <<_ACEOF 7826/* confdefs.h. */ 7827_ACEOF 7828cat confdefs.h >>conftest.$ac_ext 7829cat >>conftest.$ac_ext <<_ACEOF 7830/* end confdefs.h. */ 7831 7832int 7833main () 7834{ 7835 7836 ; 7837 return 0; 7838} 7839_ACEOF 7840rm -f conftest.$ac_objext conftest$ac_exeext 7841if { (ac_try="$ac_link" 7842case "(($ac_try" in 7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7844 *) ac_try_echo=$ac_try;; 7845esac 7846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7847$as_echo "$ac_try_echo") >&5 7848 (eval "$ac_link") 2>conftest.er1 7849 ac_status=$? 7850 grep -v '^ *+' conftest.er1 >conftest.err 7851 rm -f conftest.er1 7852 cat conftest.err >&5 7853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7854 (exit $ac_status); } && { 7855 test -z "$ac_c_werror_flag" || 7856 test ! -s conftest.err 7857 } && test -s conftest$ac_exeext && { 7858 test "$cross_compiling" = yes || 7859 $as_test_x conftest$ac_exeext 7860 }; then 7861 7862lt_aix_libpath_sed=' 7863 /Import File Strings/,/^$/ { 7864 /^0/ { 7865 s/^0 *\(.*\)$/\1/ 7866 p 7867 } 7868 }' 7869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7870# Check for a 64-bit object if we didn't find anything. 7871if test -z "$aix_libpath"; then 7872 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7873fi 7874else 7875 $as_echo "$as_me: failed program was:" >&5 7876sed 's/^/| /' conftest.$ac_ext >&5 7877 7878 7879fi 7880 7881rm -rf conftest.dSYM 7882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7883 conftest$ac_exeext conftest.$ac_ext 7884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7885 7886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7887 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" 7888 else 7889 if test "$host_cpu" = ia64; then 7890 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7891 allow_undefined_flag="-z nodefs" 7892 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" 7893 else 7894 # Determine the default libpath from the value encoded in an 7895 # empty executable. 7896 cat >conftest.$ac_ext <<_ACEOF 7897/* confdefs.h. */ 7898_ACEOF 7899cat confdefs.h >>conftest.$ac_ext 7900cat >>conftest.$ac_ext <<_ACEOF 7901/* end confdefs.h. */ 7902 7903int 7904main () 7905{ 7906 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911rm -f conftest.$ac_objext conftest$ac_exeext 7912if { (ac_try="$ac_link" 7913case "(($ac_try" in 7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7915 *) ac_try_echo=$ac_try;; 7916esac 7917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7918$as_echo "$ac_try_echo") >&5 7919 (eval "$ac_link") 2>conftest.er1 7920 ac_status=$? 7921 grep -v '^ *+' conftest.er1 >conftest.err 7922 rm -f conftest.er1 7923 cat conftest.err >&5 7924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 (exit $ac_status); } && { 7926 test -z "$ac_c_werror_flag" || 7927 test ! -s conftest.err 7928 } && test -s conftest$ac_exeext && { 7929 test "$cross_compiling" = yes || 7930 $as_test_x conftest$ac_exeext 7931 }; then 7932 7933lt_aix_libpath_sed=' 7934 /Import File Strings/,/^$/ { 7935 /^0/ { 7936 s/^0 *\(.*\)$/\1/ 7937 p 7938 } 7939 }' 7940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7941# Check for a 64-bit object if we didn't find anything. 7942if test -z "$aix_libpath"; then 7943 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7944fi 7945else 7946 $as_echo "$as_me: failed program was:" >&5 7947sed 's/^/| /' conftest.$ac_ext >&5 7948 7949 7950fi 7951 7952rm -rf conftest.dSYM 7953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7954 conftest$ac_exeext conftest.$ac_ext 7955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7956 7957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7958 # Warning - without using the other run time loading flags, 7959 # -berok will link without error, but may produce a broken library. 7960 no_undefined_flag=' ${wl}-bernotok' 7961 allow_undefined_flag=' ${wl}-berok' 7962 # Exported symbols can be pulled into shared objects from archives 7963 whole_archive_flag_spec='$convenience' 7964 archive_cmds_need_lc=yes 7965 # This is similar to how AIX traditionally builds its shared libraries. 7966 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' 7967 fi 7968 fi 7969 ;; 7970 7971 amigaos*) 7972 case $host_cpu in 7973 powerpc) 7974 # see comment about AmigaOS4 .so support 7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7976 archive_expsym_cmds='' 7977 ;; 7978 m68k) 7979 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)' 7980 hardcode_libdir_flag_spec='-L$libdir' 7981 hardcode_minus_L=yes 7982 ;; 7983 esac 7984 ;; 7985 7986 bsdi[45]*) 7987 export_dynamic_flag_spec=-rdynamic 7988 ;; 7989 7990 cygwin* | mingw* | pw32* | cegcc*) 7991 # When not using gcc, we currently assume that we are using 7992 # Microsoft Visual C++. 7993 # hardcode_libdir_flag_spec is actually meaningless, as there is 7994 # no search path for DLLs. 7995 hardcode_libdir_flag_spec=' ' 7996 allow_undefined_flag=unsupported 7997 # Tell ltmain to make .lib files, not .a files. 7998 libext=lib 7999 # Tell ltmain to make .dll files, not .so files. 8000 shrext_cmds=".dll" 8001 # FIXME: Setting linknames here is a bad hack. 8002 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8003 # The linker will automatically build a .lib file if we build a DLL. 8004 old_archive_from_new_cmds='true' 8005 # FIXME: Should let the user specify the lib program. 8006 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8007 fix_srcfile_path='`cygpath -w "$srcfile"`' 8008 enable_shared_with_static_runtimes=yes 8009 ;; 8010 8011 darwin* | rhapsody*) 8012 8013 8014 archive_cmds_need_lc=no 8015 hardcode_direct=no 8016 hardcode_automatic=yes 8017 hardcode_shlibpath_var=unsupported 8018 whole_archive_flag_spec='' 8019 link_all_deplibs=yes 8020 allow_undefined_flag="$_lt_dar_allow_undefined" 8021 case $cc_basename in 8022 ifort*) _lt_dar_can_shared=yes ;; 8023 *) _lt_dar_can_shared=$GCC ;; 8024 esac 8025 if test "$_lt_dar_can_shared" = "yes"; then 8026 output_verbose_link_cmd=echo 8027 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8028 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8029 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}" 8030 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}" 8031 8032 else 8033 ld_shlibs=no 8034 fi 8035 8036 ;; 8037 8038 dgux*) 8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8040 hardcode_libdir_flag_spec='-L$libdir' 8041 hardcode_shlibpath_var=no 8042 ;; 8043 8044 freebsd1*) 8045 ld_shlibs=no 8046 ;; 8047 8048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8049 # support. Future versions do this automatically, but an explicit c++rt0.o 8050 # does not break anything, and helps significantly (at the cost of a little 8051 # extra space). 8052 freebsd2.2*) 8053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8054 hardcode_libdir_flag_spec='-R$libdir' 8055 hardcode_direct=yes 8056 hardcode_shlibpath_var=no 8057 ;; 8058 8059 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8060 freebsd2*) 8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8062 hardcode_direct=yes 8063 hardcode_minus_L=yes 8064 hardcode_shlibpath_var=no 8065 ;; 8066 8067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8068 freebsd* | dragonfly*) 8069 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8070 hardcode_libdir_flag_spec='-R$libdir' 8071 hardcode_direct=yes 8072 hardcode_shlibpath_var=no 8073 ;; 8074 8075 hpux9*) 8076 if test "$GCC" = yes; then 8077 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' 8078 else 8079 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' 8080 fi 8081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8082 hardcode_libdir_separator=: 8083 hardcode_direct=yes 8084 8085 # hardcode_minus_L: Not really in the search PATH, 8086 # but as the default location of the library. 8087 hardcode_minus_L=yes 8088 export_dynamic_flag_spec='${wl}-E' 8089 ;; 8090 8091 hpux10*) 8092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8094 else 8095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8096 fi 8097 if test "$with_gnu_ld" = no; then 8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8099 hardcode_libdir_flag_spec_ld='+b $libdir' 8100 hardcode_libdir_separator=: 8101 hardcode_direct=yes 8102 hardcode_direct_absolute=yes 8103 export_dynamic_flag_spec='${wl}-E' 8104 # hardcode_minus_L: Not really in the search PATH, 8105 # but as the default location of the library. 8106 hardcode_minus_L=yes 8107 fi 8108 ;; 8109 8110 hpux11*) 8111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8112 case $host_cpu in 8113 hppa*64*) 8114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8115 ;; 8116 ia64*) 8117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8118 ;; 8119 *) 8120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8121 ;; 8122 esac 8123 else 8124 case $host_cpu in 8125 hppa*64*) 8126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8127 ;; 8128 ia64*) 8129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8130 ;; 8131 *) 8132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8133 ;; 8134 esac 8135 fi 8136 if test "$with_gnu_ld" = no; then 8137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8138 hardcode_libdir_separator=: 8139 8140 case $host_cpu in 8141 hppa*64*|ia64*) 8142 hardcode_direct=no 8143 hardcode_shlibpath_var=no 8144 ;; 8145 *) 8146 hardcode_direct=yes 8147 hardcode_direct_absolute=yes 8148 export_dynamic_flag_spec='${wl}-E' 8149 8150 # hardcode_minus_L: Not really in the search PATH, 8151 # but as the default location of the library. 8152 hardcode_minus_L=yes 8153 ;; 8154 esac 8155 fi 8156 ;; 8157 8158 irix5* | irix6* | nonstopux*) 8159 if test "$GCC" = yes; then 8160 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' 8161 # Try to use the -exported_symbol ld option, if it does not 8162 # work, assume that -exports_file does not work either and 8163 # implicitly export all symbols. 8164 save_LDFLAGS="$LDFLAGS" 8165 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8166 cat >conftest.$ac_ext <<_ACEOF 8167int foo(void) {} 8168_ACEOF 8169rm -f conftest.$ac_objext conftest$ac_exeext 8170if { (ac_try="$ac_link" 8171case "(($ac_try" in 8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8173 *) ac_try_echo=$ac_try;; 8174esac 8175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8176$as_echo "$ac_try_echo") >&5 8177 (eval "$ac_link") 2>conftest.er1 8178 ac_status=$? 8179 grep -v '^ *+' conftest.er1 >conftest.err 8180 rm -f conftest.er1 8181 cat conftest.err >&5 8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); } && { 8184 test -z "$ac_c_werror_flag" || 8185 test ! -s conftest.err 8186 } && test -s conftest$ac_exeext && { 8187 test "$cross_compiling" = yes || 8188 $as_test_x conftest$ac_exeext 8189 }; then 8190 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' 8191 8192else 8193 $as_echo "$as_me: failed program was:" >&5 8194sed 's/^/| /' conftest.$ac_ext >&5 8195 8196 8197fi 8198 8199rm -rf conftest.dSYM 8200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8201 conftest$ac_exeext conftest.$ac_ext 8202 LDFLAGS="$save_LDFLAGS" 8203 else 8204 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' 8205 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' 8206 fi 8207 archive_cmds_need_lc='no' 8208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8209 hardcode_libdir_separator=: 8210 inherit_rpath=yes 8211 link_all_deplibs=yes 8212 ;; 8213 8214 netbsd*) 8215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8217 else 8218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8219 fi 8220 hardcode_libdir_flag_spec='-R$libdir' 8221 hardcode_direct=yes 8222 hardcode_shlibpath_var=no 8223 ;; 8224 8225 newsos6) 8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8227 hardcode_direct=yes 8228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8229 hardcode_libdir_separator=: 8230 hardcode_shlibpath_var=no 8231 ;; 8232 8233 *nto* | *qnx*) 8234 ;; 8235 8236 openbsd*) 8237 if test -f /usr/libexec/ld.so; then 8238 hardcode_direct=yes 8239 hardcode_shlibpath_var=no 8240 hardcode_direct_absolute=yes 8241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8243 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8245 export_dynamic_flag_spec='${wl}-E' 8246 else 8247 case $host_os in 8248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8250 hardcode_libdir_flag_spec='-R$libdir' 8251 ;; 8252 *) 8253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8255 ;; 8256 esac 8257 fi 8258 else 8259 ld_shlibs=no 8260 fi 8261 ;; 8262 8263 os2*) 8264 hardcode_libdir_flag_spec='-L$libdir' 8265 hardcode_minus_L=yes 8266 allow_undefined_flag=unsupported 8267 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' 8268 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8269 ;; 8270 8271 osf3*) 8272 if test "$GCC" = yes; then 8273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8274 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' 8275 else 8276 allow_undefined_flag=' -expect_unresolved \*' 8277 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' 8278 fi 8279 archive_cmds_need_lc='no' 8280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8281 hardcode_libdir_separator=: 8282 ;; 8283 8284 osf4* | osf5*) # as osf3* with the addition of -msym flag 8285 if test "$GCC" = yes; then 8286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8287 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' 8288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8289 else 8290 allow_undefined_flag=' -expect_unresolved \*' 8291 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' 8292 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~ 8293 $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' 8294 8295 # Both c and cxx compiler support -rpath directly 8296 hardcode_libdir_flag_spec='-rpath $libdir' 8297 fi 8298 archive_cmds_need_lc='no' 8299 hardcode_libdir_separator=: 8300 ;; 8301 8302 solaris*) 8303 no_undefined_flag=' -z defs' 8304 if test "$GCC" = yes; then 8305 wlarc='${wl}' 8306 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8308 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8309 else 8310 case `$CC -V 2>&1` in 8311 *"Compilers 5.0"*) 8312 wlarc='' 8313 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8316 ;; 8317 *) 8318 wlarc='${wl}' 8319 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8321 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8322 ;; 8323 esac 8324 fi 8325 hardcode_libdir_flag_spec='-R$libdir' 8326 hardcode_shlibpath_var=no 8327 case $host_os in 8328 solaris2.[0-5] | solaris2.[0-5].*) ;; 8329 *) 8330 # The compiler driver will combine and reorder linker options, 8331 # but understands `-z linker_flag'. GCC discards it without `$wl', 8332 # but is careful enough not to reorder. 8333 # Supported since Solaris 2.6 (maybe 2.5.1?) 8334 if test "$GCC" = yes; then 8335 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8336 else 8337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8338 fi 8339 ;; 8340 esac 8341 link_all_deplibs=yes 8342 ;; 8343 8344 sunos4*) 8345 if test "x$host_vendor" = xsequent; then 8346 # Use $CC to link under sequent, because it throws in some extra .o 8347 # files that make .init and .fini sections work. 8348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8349 else 8350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8351 fi 8352 hardcode_libdir_flag_spec='-L$libdir' 8353 hardcode_direct=yes 8354 hardcode_minus_L=yes 8355 hardcode_shlibpath_var=no 8356 ;; 8357 8358 sysv4) 8359 case $host_vendor in 8360 sni) 8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8362 hardcode_direct=yes # is this really true??? 8363 ;; 8364 siemens) 8365 ## LD is ld it makes a PLAMLIB 8366 ## CC just makes a GrossModule. 8367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8368 reload_cmds='$CC -r -o $output$reload_objs' 8369 hardcode_direct=no 8370 ;; 8371 motorola) 8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8374 ;; 8375 esac 8376 runpath_var='LD_RUN_PATH' 8377 hardcode_shlibpath_var=no 8378 ;; 8379 8380 sysv4.3*) 8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8382 hardcode_shlibpath_var=no 8383 export_dynamic_flag_spec='-Bexport' 8384 ;; 8385 8386 sysv4*MP*) 8387 if test -d /usr/nec; then 8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8389 hardcode_shlibpath_var=no 8390 runpath_var=LD_RUN_PATH 8391 hardcode_runpath_var=yes 8392 ld_shlibs=yes 8393 fi 8394 ;; 8395 8396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8397 no_undefined_flag='${wl}-z,text' 8398 archive_cmds_need_lc=no 8399 hardcode_shlibpath_var=no 8400 runpath_var='LD_RUN_PATH' 8401 8402 if test "$GCC" = yes; then 8403 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8404 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8405 else 8406 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8407 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8408 fi 8409 ;; 8410 8411 sysv5* | sco3.2v5* | sco5v6*) 8412 # Note: We can NOT use -z defs as we might desire, because we do not 8413 # link with -lc, and that would cause any symbols used from libc to 8414 # always be unresolved, which means just about no library would 8415 # ever link correctly. If we're not using GNU ld we use -z text 8416 # though, which does catch some bad symbols but isn't as heavy-handed 8417 # as -z defs. 8418 no_undefined_flag='${wl}-z,text' 8419 allow_undefined_flag='${wl}-z,nodefs' 8420 archive_cmds_need_lc=no 8421 hardcode_shlibpath_var=no 8422 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8423 hardcode_libdir_separator=':' 8424 link_all_deplibs=yes 8425 export_dynamic_flag_spec='${wl}-Bexport' 8426 runpath_var='LD_RUN_PATH' 8427 8428 if test "$GCC" = yes; then 8429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8431 else 8432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8434 fi 8435 ;; 8436 8437 uts4*) 8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8439 hardcode_libdir_flag_spec='-L$libdir' 8440 hardcode_shlibpath_var=no 8441 ;; 8442 8443 *) 8444 ld_shlibs=no 8445 ;; 8446 esac 8447 8448 if test x$host_vendor = xsni; then 8449 case $host in 8450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8451 export_dynamic_flag_spec='${wl}-Blargedynsym' 8452 ;; 8453 esac 8454 fi 8455 fi 8456 8457{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8458$as_echo "$ld_shlibs" >&6; } 8459test "$ld_shlibs" = no && can_build_shared=no 8460 8461with_gnu_ld=$with_gnu_ld 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477# 8478# Do we need to explicitly link libc? 8479# 8480case "x$archive_cmds_need_lc" in 8481x|xyes) 8482 # Assume -lc should be added 8483 archive_cmds_need_lc=yes 8484 8485 if test "$enable_shared" = yes && test "$GCC" = yes; then 8486 case $archive_cmds in 8487 *'~'*) 8488 # FIXME: we may have to deal with multi-command sequences. 8489 ;; 8490 '$CC '*) 8491 # Test whether the compiler implicitly links with -lc since on some 8492 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8493 # to ld, don't add -lc before -lgcc. 8494 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8495$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8496 $RM conftest* 8497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8498 8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8500 (eval $ac_compile) 2>&5 8501 ac_status=$? 8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); } 2>conftest.err; then 8504 soname=conftest 8505 lib=conftest 8506 libobjs=conftest.$ac_objext 8507 deplibs= 8508 wl=$lt_prog_compiler_wl 8509 pic_flag=$lt_prog_compiler_pic 8510 compiler_flags=-v 8511 linker_flags=-v 8512 verstring= 8513 output_objdir=. 8514 libname=conftest 8515 lt_save_allow_undefined_flag=$allow_undefined_flag 8516 allow_undefined_flag= 8517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 8518 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8519 ac_status=$? 8520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8521 (exit $ac_status); } 8522 then 8523 archive_cmds_need_lc=no 8524 else 8525 archive_cmds_need_lc=yes 8526 fi 8527 allow_undefined_flag=$lt_save_allow_undefined_flag 8528 else 8529 cat conftest.err 1>&5 8530 fi 8531 $RM conftest* 8532 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8533$as_echo "$archive_cmds_need_lc" >&6; } 8534 ;; 8535 esac 8536 fi 8537 ;; 8538esac 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 8696 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8697$as_echo_n "checking dynamic linker characteristics... " >&6; } 8698 8699if test "$GCC" = yes; then 8700 case $host_os in 8701 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8702 *) lt_awk_arg="/^libraries:/" ;; 8703 esac 8704 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8705 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8706 # if the path contains ";" then we assume it to be the separator 8707 # otherwise default to the standard path separator (i.e. ":") - it is 8708 # assumed that no part of a normal pathname contains ";" but that should 8709 # okay in the real world where ";" in dirpaths is itself problematic. 8710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8711 else 8712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8713 fi 8714 # Ok, now we have the path, separated by spaces, we can step through it 8715 # and add multilib dir if necessary. 8716 lt_tmp_lt_search_path_spec= 8717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8718 for lt_sys_path in $lt_search_path_spec; do 8719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8721 else 8722 test -d "$lt_sys_path" && \ 8723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8724 fi 8725 done 8726 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8727BEGIN {RS=" "; FS="/|\n";} { 8728 lt_foo=""; 8729 lt_count=0; 8730 for (lt_i = NF; lt_i > 0; lt_i--) { 8731 if ($lt_i != "" && $lt_i != ".") { 8732 if ($lt_i == "..") { 8733 lt_count++; 8734 } else { 8735 if (lt_count == 0) { 8736 lt_foo="/" $lt_i lt_foo; 8737 } else { 8738 lt_count--; 8739 } 8740 } 8741 } 8742 } 8743 if (lt_foo != "") { lt_freq[lt_foo]++; } 8744 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8745}'` 8746 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8747else 8748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8749fi 8750library_names_spec= 8751libname_spec='lib$name' 8752soname_spec= 8753shrext_cmds=".so" 8754postinstall_cmds= 8755postuninstall_cmds= 8756finish_cmds= 8757finish_eval= 8758shlibpath_var= 8759shlibpath_overrides_runpath=unknown 8760version_type=none 8761dynamic_linker="$host_os ld.so" 8762sys_lib_dlsearch_path_spec="/lib /usr/lib" 8763need_lib_prefix=unknown 8764hardcode_into_libs=no 8765 8766# when you set need_version to no, make sure it does not cause -set_version 8767# flags to be left without arguments 8768need_version=unknown 8769 8770case $host_os in 8771aix3*) 8772 version_type=linux 8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8774 shlibpath_var=LIBPATH 8775 8776 # AIX 3 has no versioning support, so we append a major version to the name. 8777 soname_spec='${libname}${release}${shared_ext}$major' 8778 ;; 8779 8780aix[4-9]*) 8781 version_type=linux 8782 need_lib_prefix=no 8783 need_version=no 8784 hardcode_into_libs=yes 8785 if test "$host_cpu" = ia64; then 8786 # AIX 5 supports IA64 8787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8788 shlibpath_var=LD_LIBRARY_PATH 8789 else 8790 # With GCC up to 2.95.x, collect2 would create an import file 8791 # for dependence libraries. The import file would start with 8792 # the line `#! .'. This would cause the generated library to 8793 # depend on `.', always an invalid library. This was fixed in 8794 # development snapshots of GCC prior to 3.0. 8795 case $host_os in 8796 aix4 | aix4.[01] | aix4.[01].*) 8797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8798 echo ' yes ' 8799 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8800 : 8801 else 8802 can_build_shared=no 8803 fi 8804 ;; 8805 esac 8806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8807 # soname into executable. Probably we can add versioning support to 8808 # collect2, so additional links can be useful in future. 8809 if test "$aix_use_runtimelinking" = yes; then 8810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8811 # instead of lib<name>.a to let people know that these are not 8812 # typical AIX shared libraries. 8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8814 else 8815 # We preserve .a as extension for shared libraries through AIX4.2 8816 # and later when we are not doing run time linking. 8817 library_names_spec='${libname}${release}.a $libname.a' 8818 soname_spec='${libname}${release}${shared_ext}$major' 8819 fi 8820 shlibpath_var=LIBPATH 8821 fi 8822 ;; 8823 8824amigaos*) 8825 case $host_cpu in 8826 powerpc) 8827 # Since July 2007 AmigaOS4 officially supports .so libraries. 8828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8830 ;; 8831 m68k) 8832 library_names_spec='$libname.ixlibrary $libname.a' 8833 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8834 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' 8835 ;; 8836 esac 8837 ;; 8838 8839beos*) 8840 library_names_spec='${libname}${shared_ext}' 8841 dynamic_linker="$host_os ld.so" 8842 shlibpath_var=LIBRARY_PATH 8843 ;; 8844 8845bsdi[45]*) 8846 version_type=linux 8847 need_version=no 8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8849 soname_spec='${libname}${release}${shared_ext}$major' 8850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8851 shlibpath_var=LD_LIBRARY_PATH 8852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8854 # the default ld.so.conf also contains /usr/contrib/lib and 8855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8856 # libtool to hard-code these into programs 8857 ;; 8858 8859cygwin* | mingw* | pw32* | cegcc*) 8860 version_type=windows 8861 shrext_cmds=".dll" 8862 need_version=no 8863 need_lib_prefix=no 8864 8865 case $GCC,$host_os in 8866 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8867 library_names_spec='$libname.dll.a' 8868 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8869 postinstall_cmds='base_file=`basename \${file}`~ 8870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8871 dldir=$destdir/`dirname \$dlpath`~ 8872 test -d \$dldir || mkdir -p \$dldir~ 8873 $install_prog $dir/$dlname \$dldir/$dlname~ 8874 chmod a+x \$dldir/$dlname~ 8875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8877 fi' 8878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8879 dlpath=$dir/\$dldll~ 8880 $RM \$dlpath' 8881 shlibpath_overrides_runpath=yes 8882 8883 case $host_os in 8884 cygwin*) 8885 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8888 ;; 8889 mingw* | cegcc*) 8890 # MinGW DLLs use traditional 'lib' prefix 8891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8892 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8893 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8894 # It is most probably a Windows format PATH printed by 8895 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8896 # path with ; separators, and with drive letters. We can handle the 8897 # drive letters (cygwin fileutils understands them), so leave them, 8898 # especially as we might pass files found there to a mingw objdump, 8899 # which wouldn't understand a cygwinified path. Ahh. 8900 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8901 else 8902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8903 fi 8904 ;; 8905 pw32*) 8906 # pw32 DLLs use 'pw' prefix rather than 'lib' 8907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8908 ;; 8909 esac 8910 ;; 8911 8912 *) 8913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8914 ;; 8915 esac 8916 dynamic_linker='Win32 ld.exe' 8917 # FIXME: first we should search . and the directory the executable is in 8918 shlibpath_var=PATH 8919 ;; 8920 8921darwin* | rhapsody*) 8922 dynamic_linker="$host_os dyld" 8923 version_type=darwin 8924 need_lib_prefix=no 8925 need_version=no 8926 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8927 soname_spec='${libname}${release}${major}$shared_ext' 8928 shlibpath_overrides_runpath=yes 8929 shlibpath_var=DYLD_LIBRARY_PATH 8930 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8931 8932 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8934 ;; 8935 8936dgux*) 8937 version_type=linux 8938 need_lib_prefix=no 8939 need_version=no 8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8941 soname_spec='${libname}${release}${shared_ext}$major' 8942 shlibpath_var=LD_LIBRARY_PATH 8943 ;; 8944 8945freebsd1*) 8946 dynamic_linker=no 8947 ;; 8948 8949freebsd* | dragonfly*) 8950 # DragonFly does not have aout. When/if they implement a new 8951 # versioning mechanism, adjust this. 8952 if test -x /usr/bin/objformat; then 8953 objformat=`/usr/bin/objformat` 8954 else 8955 case $host_os in 8956 freebsd[123]*) objformat=aout ;; 8957 *) objformat=elf ;; 8958 esac 8959 fi 8960 # Handle Gentoo/FreeBSD as it was Linux 8961 case $host_vendor in 8962 gentoo) 8963 version_type=linux ;; 8964 *) 8965 version_type=freebsd-$objformat ;; 8966 esac 8967 8968 case $version_type in 8969 freebsd-elf*) 8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8971 need_version=no 8972 need_lib_prefix=no 8973 ;; 8974 freebsd-*) 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8976 need_version=yes 8977 ;; 8978 linux) 8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8980 soname_spec='${libname}${release}${shared_ext}$major' 8981 need_lib_prefix=no 8982 need_version=no 8983 ;; 8984 esac 8985 shlibpath_var=LD_LIBRARY_PATH 8986 case $host_os in 8987 freebsd2*) 8988 shlibpath_overrides_runpath=yes 8989 ;; 8990 freebsd3.[01]* | freebsdelf3.[01]*) 8991 shlibpath_overrides_runpath=yes 8992 hardcode_into_libs=yes 8993 ;; 8994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8996 shlibpath_overrides_runpath=no 8997 hardcode_into_libs=yes 8998 ;; 8999 *) # from 4.6 on, and DragonFly 9000 shlibpath_overrides_runpath=yes 9001 hardcode_into_libs=yes 9002 ;; 9003 esac 9004 ;; 9005 9006gnu*) 9007 version_type=linux 9008 need_lib_prefix=no 9009 need_version=no 9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9011 soname_spec='${libname}${release}${shared_ext}$major' 9012 shlibpath_var=LD_LIBRARY_PATH 9013 hardcode_into_libs=yes 9014 ;; 9015 9016hpux9* | hpux10* | hpux11*) 9017 # Give a soname corresponding to the major version so that dld.sl refuses to 9018 # link against other versions. 9019 version_type=sunos 9020 need_lib_prefix=no 9021 need_version=no 9022 case $host_cpu in 9023 ia64*) 9024 shrext_cmds='.so' 9025 hardcode_into_libs=yes 9026 dynamic_linker="$host_os dld.so" 9027 shlibpath_var=LD_LIBRARY_PATH 9028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9030 soname_spec='${libname}${release}${shared_ext}$major' 9031 if test "X$HPUX_IA64_MODE" = X32; then 9032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9033 else 9034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9035 fi 9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9037 ;; 9038 hppa*64*) 9039 shrext_cmds='.sl' 9040 hardcode_into_libs=yes 9041 dynamic_linker="$host_os dld.sl" 9042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9045 soname_spec='${libname}${release}${shared_ext}$major' 9046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9048 ;; 9049 *) 9050 shrext_cmds='.sl' 9051 dynamic_linker="$host_os dld.sl" 9052 shlibpath_var=SHLIB_PATH 9053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9055 soname_spec='${libname}${release}${shared_ext}$major' 9056 ;; 9057 esac 9058 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9059 postinstall_cmds='chmod 555 $lib' 9060 ;; 9061 9062interix[3-9]*) 9063 version_type=linux 9064 need_lib_prefix=no 9065 need_version=no 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9067 soname_spec='${libname}${release}${shared_ext}$major' 9068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9069 shlibpath_var=LD_LIBRARY_PATH 9070 shlibpath_overrides_runpath=no 9071 hardcode_into_libs=yes 9072 ;; 9073 9074irix5* | irix6* | nonstopux*) 9075 case $host_os in 9076 nonstopux*) version_type=nonstopux ;; 9077 *) 9078 if test "$lt_cv_prog_gnu_ld" = yes; then 9079 version_type=linux 9080 else 9081 version_type=irix 9082 fi ;; 9083 esac 9084 need_lib_prefix=no 9085 need_version=no 9086 soname_spec='${libname}${release}${shared_ext}$major' 9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9088 case $host_os in 9089 irix5* | nonstopux*) 9090 libsuff= shlibsuff= 9091 ;; 9092 *) 9093 case $LD in # libtool.m4 will add one of these switches to LD 9094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9095 libsuff= shlibsuff= libmagic=32-bit;; 9096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9097 libsuff=32 shlibsuff=N32 libmagic=N32;; 9098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9099 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9100 *) libsuff= shlibsuff= libmagic=never-match;; 9101 esac 9102 ;; 9103 esac 9104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9105 shlibpath_overrides_runpath=no 9106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9108 hardcode_into_libs=yes 9109 ;; 9110 9111# No shared lib support for Linux oldld, aout, or coff. 9112linux*oldld* | linux*aout* | linux*coff*) 9113 dynamic_linker=no 9114 ;; 9115 9116# This must be Linux ELF. 9117linux* | k*bsd*-gnu) 9118 version_type=linux 9119 need_lib_prefix=no 9120 need_version=no 9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9122 soname_spec='${libname}${release}${shared_ext}$major' 9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9124 shlibpath_var=LD_LIBRARY_PATH 9125 shlibpath_overrides_runpath=no 9126 # Some binutils ld are patched to set DT_RUNPATH 9127 save_LDFLAGS=$LDFLAGS 9128 save_libdir=$libdir 9129 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9130 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9131 cat >conftest.$ac_ext <<_ACEOF 9132/* confdefs.h. */ 9133_ACEOF 9134cat confdefs.h >>conftest.$ac_ext 9135cat >>conftest.$ac_ext <<_ACEOF 9136/* end confdefs.h. */ 9137 9138int 9139main () 9140{ 9141 9142 ; 9143 return 0; 9144} 9145_ACEOF 9146rm -f conftest.$ac_objext conftest$ac_exeext 9147if { (ac_try="$ac_link" 9148case "(($ac_try" in 9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9150 *) ac_try_echo=$ac_try;; 9151esac 9152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9153$as_echo "$ac_try_echo") >&5 9154 (eval "$ac_link") 2>conftest.er1 9155 ac_status=$? 9156 grep -v '^ *+' conftest.er1 >conftest.err 9157 rm -f conftest.er1 9158 cat conftest.err >&5 9159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9160 (exit $ac_status); } && { 9161 test -z "$ac_c_werror_flag" || 9162 test ! -s conftest.err 9163 } && test -s conftest$ac_exeext && { 9164 test "$cross_compiling" = yes || 9165 $as_test_x conftest$ac_exeext 9166 }; then 9167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9168 shlibpath_overrides_runpath=yes 9169fi 9170 9171else 9172 $as_echo "$as_me: failed program was:" >&5 9173sed 's/^/| /' conftest.$ac_ext >&5 9174 9175 9176fi 9177 9178rm -rf conftest.dSYM 9179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9180 conftest$ac_exeext conftest.$ac_ext 9181 LDFLAGS=$save_LDFLAGS 9182 libdir=$save_libdir 9183 9184 # This implies no fast_install, which is unacceptable. 9185 # Some rework will be needed to allow for fast_install 9186 # before this can be enabled. 9187 hardcode_into_libs=yes 9188 9189 # Append ld.so.conf contents to the search path 9190 if test -f /etc/ld.so.conf; then 9191 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' ' '` 9192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9193 fi 9194 9195 # We used to test for /lib/ld.so.1 and disable shared libraries on 9196 # powerpc, because MkLinux only supported shared libraries with the 9197 # GNU dynamic linker. Since this was broken with cross compilers, 9198 # most powerpc-linux boxes support dynamic linking these days and 9199 # people can always --disable-shared, the test was removed, and we 9200 # assume the GNU/Linux dynamic linker is in use. 9201 dynamic_linker='GNU/Linux ld.so' 9202 ;; 9203 9204netbsd*) 9205 version_type=sunos 9206 need_lib_prefix=no 9207 need_version=no 9208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9211 dynamic_linker='NetBSD (a.out) ld.so' 9212 else 9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9214 soname_spec='${libname}${release}${shared_ext}$major' 9215 dynamic_linker='NetBSD ld.elf_so' 9216 fi 9217 shlibpath_var=LD_LIBRARY_PATH 9218 shlibpath_overrides_runpath=yes 9219 hardcode_into_libs=yes 9220 ;; 9221 9222newsos6) 9223 version_type=linux 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9225 shlibpath_var=LD_LIBRARY_PATH 9226 shlibpath_overrides_runpath=yes 9227 ;; 9228 9229*nto* | *qnx*) 9230 version_type=qnx 9231 need_lib_prefix=no 9232 need_version=no 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 shlibpath_var=LD_LIBRARY_PATH 9236 shlibpath_overrides_runpath=no 9237 hardcode_into_libs=yes 9238 dynamic_linker='ldqnx.so' 9239 ;; 9240 9241openbsd*) 9242 version_type=sunos 9243 sys_lib_dlsearch_path_spec="/usr/lib" 9244 need_lib_prefix=no 9245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9246 case $host_os in 9247 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9248 *) need_version=no ;; 9249 esac 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9252 shlibpath_var=LD_LIBRARY_PATH 9253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9254 case $host_os in 9255 openbsd2.[89] | openbsd2.[89].*) 9256 shlibpath_overrides_runpath=no 9257 ;; 9258 *) 9259 shlibpath_overrides_runpath=yes 9260 ;; 9261 esac 9262 else 9263 shlibpath_overrides_runpath=yes 9264 fi 9265 ;; 9266 9267os2*) 9268 libname_spec='$name' 9269 shrext_cmds=".dll" 9270 need_lib_prefix=no 9271 library_names_spec='$libname${shared_ext} $libname.a' 9272 dynamic_linker='OS/2 ld.exe' 9273 shlibpath_var=LIBPATH 9274 ;; 9275 9276osf3* | osf4* | osf5*) 9277 version_type=osf 9278 need_lib_prefix=no 9279 need_version=no 9280 soname_spec='${libname}${release}${shared_ext}$major' 9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9282 shlibpath_var=LD_LIBRARY_PATH 9283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9285 ;; 9286 9287rdos*) 9288 dynamic_linker=no 9289 ;; 9290 9291solaris*) 9292 version_type=linux 9293 need_lib_prefix=no 9294 need_version=no 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9296 soname_spec='${libname}${release}${shared_ext}$major' 9297 shlibpath_var=LD_LIBRARY_PATH 9298 shlibpath_overrides_runpath=yes 9299 hardcode_into_libs=yes 9300 # ldd complains unless libraries are executable 9301 postinstall_cmds='chmod +x $lib' 9302 ;; 9303 9304sunos4*) 9305 version_type=sunos 9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9308 shlibpath_var=LD_LIBRARY_PATH 9309 shlibpath_overrides_runpath=yes 9310 if test "$with_gnu_ld" = yes; then 9311 need_lib_prefix=no 9312 fi 9313 need_version=yes 9314 ;; 9315 9316sysv4 | sysv4.3*) 9317 version_type=linux 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9319 soname_spec='${libname}${release}${shared_ext}$major' 9320 shlibpath_var=LD_LIBRARY_PATH 9321 case $host_vendor in 9322 sni) 9323 shlibpath_overrides_runpath=no 9324 need_lib_prefix=no 9325 runpath_var=LD_RUN_PATH 9326 ;; 9327 siemens) 9328 need_lib_prefix=no 9329 ;; 9330 motorola) 9331 need_lib_prefix=no 9332 need_version=no 9333 shlibpath_overrides_runpath=no 9334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9335 ;; 9336 esac 9337 ;; 9338 9339sysv4*MP*) 9340 if test -d /usr/nec ;then 9341 version_type=linux 9342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9343 soname_spec='$libname${shared_ext}.$major' 9344 shlibpath_var=LD_LIBRARY_PATH 9345 fi 9346 ;; 9347 9348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9349 version_type=freebsd-elf 9350 need_lib_prefix=no 9351 need_version=no 9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9353 soname_spec='${libname}${release}${shared_ext}$major' 9354 shlibpath_var=LD_LIBRARY_PATH 9355 shlibpath_overrides_runpath=yes 9356 hardcode_into_libs=yes 9357 if test "$with_gnu_ld" = yes; then 9358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9359 else 9360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9361 case $host_os in 9362 sco3.2v5*) 9363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9364 ;; 9365 esac 9366 fi 9367 sys_lib_dlsearch_path_spec='/usr/lib' 9368 ;; 9369 9370tpf*) 9371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9372 version_type=linux 9373 need_lib_prefix=no 9374 need_version=no 9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9376 shlibpath_var=LD_LIBRARY_PATH 9377 shlibpath_overrides_runpath=no 9378 hardcode_into_libs=yes 9379 ;; 9380 9381uts4*) 9382 version_type=linux 9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9384 soname_spec='${libname}${release}${shared_ext}$major' 9385 shlibpath_var=LD_LIBRARY_PATH 9386 ;; 9387 9388*) 9389 dynamic_linker=no 9390 ;; 9391esac 9392{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9393$as_echo "$dynamic_linker" >&6; } 9394test "$dynamic_linker" = no && can_build_shared=no 9395 9396variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9397if test "$GCC" = yes; then 9398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9399fi 9400 9401if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9403fi 9404if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9405 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9406fi 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9495$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9496hardcode_action= 9497if test -n "$hardcode_libdir_flag_spec" || 9498 test -n "$runpath_var" || 9499 test "X$hardcode_automatic" = "Xyes" ; then 9500 9501 # We can hardcode non-existent directories. 9502 if test "$hardcode_direct" != no && 9503 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9504 # have to relink, otherwise we might link with an installed library 9505 # when we should be linking with a yet-to-be-installed one 9506 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9507 test "$hardcode_minus_L" != no; then 9508 # Linking always hardcodes the temporary library directory. 9509 hardcode_action=relink 9510 else 9511 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9512 hardcode_action=immediate 9513 fi 9514else 9515 # We cannot hardcode anything, or else we can only hardcode existing 9516 # directories. 9517 hardcode_action=unsupported 9518fi 9519{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9520$as_echo "$hardcode_action" >&6; } 9521 9522if test "$hardcode_action" = relink || 9523 test "$inherit_rpath" = yes; then 9524 # Fast installation is not supported 9525 enable_fast_install=no 9526elif test "$shlibpath_overrides_runpath" = yes || 9527 test "$enable_shared" = no; then 9528 # Fast installation is not necessary 9529 enable_fast_install=needless 9530fi 9531 9532 9533 9534 9535 9536 9537 if test "x$enable_dlopen" != xyes; then 9538 enable_dlopen=unknown 9539 enable_dlopen_self=unknown 9540 enable_dlopen_self_static=unknown 9541else 9542 lt_cv_dlopen=no 9543 lt_cv_dlopen_libs= 9544 9545 case $host_os in 9546 beos*) 9547 lt_cv_dlopen="load_add_on" 9548 lt_cv_dlopen_libs= 9549 lt_cv_dlopen_self=yes 9550 ;; 9551 9552 mingw* | pw32* | cegcc*) 9553 lt_cv_dlopen="LoadLibrary" 9554 lt_cv_dlopen_libs= 9555 ;; 9556 9557 cygwin*) 9558 lt_cv_dlopen="dlopen" 9559 lt_cv_dlopen_libs= 9560 ;; 9561 9562 darwin*) 9563 # if libdl is installed we need to link against it 9564 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9565$as_echo_n "checking for dlopen in -ldl... " >&6; } 9566if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9567 $as_echo_n "(cached) " >&6 9568else 9569 ac_check_lib_save_LIBS=$LIBS 9570LIBS="-ldl $LIBS" 9571cat >conftest.$ac_ext <<_ACEOF 9572/* confdefs.h. */ 9573_ACEOF 9574cat confdefs.h >>conftest.$ac_ext 9575cat >>conftest.$ac_ext <<_ACEOF 9576/* end confdefs.h. */ 9577 9578/* Override any GCC internal prototype to avoid an error. 9579 Use char because int might match the return type of a GCC 9580 builtin and then its argument prototype would still apply. */ 9581#ifdef __cplusplus 9582extern "C" 9583#endif 9584char dlopen (); 9585int 9586main () 9587{ 9588return dlopen (); 9589 ; 9590 return 0; 9591} 9592_ACEOF 9593rm -f conftest.$ac_objext conftest$ac_exeext 9594if { (ac_try="$ac_link" 9595case "(($ac_try" in 9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9597 *) ac_try_echo=$ac_try;; 9598esac 9599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9600$as_echo "$ac_try_echo") >&5 9601 (eval "$ac_link") 2>conftest.er1 9602 ac_status=$? 9603 grep -v '^ *+' conftest.er1 >conftest.err 9604 rm -f conftest.er1 9605 cat conftest.err >&5 9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 (exit $ac_status); } && { 9608 test -z "$ac_c_werror_flag" || 9609 test ! -s conftest.err 9610 } && test -s conftest$ac_exeext && { 9611 test "$cross_compiling" = yes || 9612 $as_test_x conftest$ac_exeext 9613 }; then 9614 ac_cv_lib_dl_dlopen=yes 9615else 9616 $as_echo "$as_me: failed program was:" >&5 9617sed 's/^/| /' conftest.$ac_ext >&5 9618 9619 ac_cv_lib_dl_dlopen=no 9620fi 9621 9622rm -rf conftest.dSYM 9623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9624 conftest$ac_exeext conftest.$ac_ext 9625LIBS=$ac_check_lib_save_LIBS 9626fi 9627{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9628$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9629if test $ac_cv_lib_dl_dlopen = yes; then 9630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9631else 9632 9633 lt_cv_dlopen="dyld" 9634 lt_cv_dlopen_libs= 9635 lt_cv_dlopen_self=yes 9636 9637fi 9638 9639 ;; 9640 9641 *) 9642 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9643$as_echo_n "checking for shl_load... " >&6; } 9644if test "${ac_cv_func_shl_load+set}" = set; then 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat >conftest.$ac_ext <<_ACEOF 9648/* confdefs.h. */ 9649_ACEOF 9650cat confdefs.h >>conftest.$ac_ext 9651cat >>conftest.$ac_ext <<_ACEOF 9652/* end confdefs.h. */ 9653/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9654 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9655#define shl_load innocuous_shl_load 9656 9657/* System header to define __stub macros and hopefully few prototypes, 9658 which can conflict with char shl_load (); below. 9659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9660 <limits.h> exists even on freestanding compilers. */ 9661 9662#ifdef __STDC__ 9663# include <limits.h> 9664#else 9665# include <assert.h> 9666#endif 9667 9668#undef shl_load 9669 9670/* Override any GCC internal prototype to avoid an error. 9671 Use char because int might match the return type of a GCC 9672 builtin and then its argument prototype would still apply. */ 9673#ifdef __cplusplus 9674extern "C" 9675#endif 9676char shl_load (); 9677/* The GNU C library defines this for functions which it implements 9678 to always fail with ENOSYS. Some functions are actually named 9679 something starting with __ and the normal name is an alias. */ 9680#if defined __stub_shl_load || defined __stub___shl_load 9681choke me 9682#endif 9683 9684int 9685main () 9686{ 9687return shl_load (); 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692rm -f conftest.$ac_objext conftest$ac_exeext 9693if { (ac_try="$ac_link" 9694case "(($ac_try" in 9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9696 *) ac_try_echo=$ac_try;; 9697esac 9698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9699$as_echo "$ac_try_echo") >&5 9700 (eval "$ac_link") 2>conftest.er1 9701 ac_status=$? 9702 grep -v '^ *+' conftest.er1 >conftest.err 9703 rm -f conftest.er1 9704 cat conftest.err >&5 9705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); } && { 9707 test -z "$ac_c_werror_flag" || 9708 test ! -s conftest.err 9709 } && test -s conftest$ac_exeext && { 9710 test "$cross_compiling" = yes || 9711 $as_test_x conftest$ac_exeext 9712 }; then 9713 ac_cv_func_shl_load=yes 9714else 9715 $as_echo "$as_me: failed program was:" >&5 9716sed 's/^/| /' conftest.$ac_ext >&5 9717 9718 ac_cv_func_shl_load=no 9719fi 9720 9721rm -rf conftest.dSYM 9722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9723 conftest$ac_exeext conftest.$ac_ext 9724fi 9725{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9726$as_echo "$ac_cv_func_shl_load" >&6; } 9727if test $ac_cv_func_shl_load = yes; then 9728 lt_cv_dlopen="shl_load" 9729else 9730 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9731$as_echo_n "checking for shl_load in -ldld... " >&6; } 9732if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9733 $as_echo_n "(cached) " >&6 9734else 9735 ac_check_lib_save_LIBS=$LIBS 9736LIBS="-ldld $LIBS" 9737cat >conftest.$ac_ext <<_ACEOF 9738/* confdefs.h. */ 9739_ACEOF 9740cat confdefs.h >>conftest.$ac_ext 9741cat >>conftest.$ac_ext <<_ACEOF 9742/* end confdefs.h. */ 9743 9744/* Override any GCC internal prototype to avoid an error. 9745 Use char because int might match the return type of a GCC 9746 builtin and then its argument prototype would still apply. */ 9747#ifdef __cplusplus 9748extern "C" 9749#endif 9750char shl_load (); 9751int 9752main () 9753{ 9754return shl_load (); 9755 ; 9756 return 0; 9757} 9758_ACEOF 9759rm -f conftest.$ac_objext conftest$ac_exeext 9760if { (ac_try="$ac_link" 9761case "(($ac_try" in 9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9763 *) ac_try_echo=$ac_try;; 9764esac 9765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9766$as_echo "$ac_try_echo") >&5 9767 (eval "$ac_link") 2>conftest.er1 9768 ac_status=$? 9769 grep -v '^ *+' conftest.er1 >conftest.err 9770 rm -f conftest.er1 9771 cat conftest.err >&5 9772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 (exit $ac_status); } && { 9774 test -z "$ac_c_werror_flag" || 9775 test ! -s conftest.err 9776 } && test -s conftest$ac_exeext && { 9777 test "$cross_compiling" = yes || 9778 $as_test_x conftest$ac_exeext 9779 }; then 9780 ac_cv_lib_dld_shl_load=yes 9781else 9782 $as_echo "$as_me: failed program was:" >&5 9783sed 's/^/| /' conftest.$ac_ext >&5 9784 9785 ac_cv_lib_dld_shl_load=no 9786fi 9787 9788rm -rf conftest.dSYM 9789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9790 conftest$ac_exeext conftest.$ac_ext 9791LIBS=$ac_check_lib_save_LIBS 9792fi 9793{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9794$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9795if test $ac_cv_lib_dld_shl_load = yes; then 9796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9797else 9798 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9799$as_echo_n "checking for dlopen... " >&6; } 9800if test "${ac_cv_func_dlopen+set}" = set; then 9801 $as_echo_n "(cached) " >&6 9802else 9803 cat >conftest.$ac_ext <<_ACEOF 9804/* confdefs.h. */ 9805_ACEOF 9806cat confdefs.h >>conftest.$ac_ext 9807cat >>conftest.$ac_ext <<_ACEOF 9808/* end confdefs.h. */ 9809/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9811#define dlopen innocuous_dlopen 9812 9813/* System header to define __stub macros and hopefully few prototypes, 9814 which can conflict with char dlopen (); below. 9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9816 <limits.h> exists even on freestanding compilers. */ 9817 9818#ifdef __STDC__ 9819# include <limits.h> 9820#else 9821# include <assert.h> 9822#endif 9823 9824#undef dlopen 9825 9826/* Override any GCC internal prototype to avoid an error. 9827 Use char because int might match the return type of a GCC 9828 builtin and then its argument prototype would still apply. */ 9829#ifdef __cplusplus 9830extern "C" 9831#endif 9832char dlopen (); 9833/* The GNU C library defines this for functions which it implements 9834 to always fail with ENOSYS. Some functions are actually named 9835 something starting with __ and the normal name is an alias. */ 9836#if defined __stub_dlopen || defined __stub___dlopen 9837choke me 9838#endif 9839 9840int 9841main () 9842{ 9843return dlopen (); 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848rm -f conftest.$ac_objext conftest$ac_exeext 9849if { (ac_try="$ac_link" 9850case "(($ac_try" in 9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9852 *) ac_try_echo=$ac_try;; 9853esac 9854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9855$as_echo "$ac_try_echo") >&5 9856 (eval "$ac_link") 2>conftest.er1 9857 ac_status=$? 9858 grep -v '^ *+' conftest.er1 >conftest.err 9859 rm -f conftest.er1 9860 cat conftest.err >&5 9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9862 (exit $ac_status); } && { 9863 test -z "$ac_c_werror_flag" || 9864 test ! -s conftest.err 9865 } && test -s conftest$ac_exeext && { 9866 test "$cross_compiling" = yes || 9867 $as_test_x conftest$ac_exeext 9868 }; then 9869 ac_cv_func_dlopen=yes 9870else 9871 $as_echo "$as_me: failed program was:" >&5 9872sed 's/^/| /' conftest.$ac_ext >&5 9873 9874 ac_cv_func_dlopen=no 9875fi 9876 9877rm -rf conftest.dSYM 9878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9879 conftest$ac_exeext conftest.$ac_ext 9880fi 9881{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9882$as_echo "$ac_cv_func_dlopen" >&6; } 9883if test $ac_cv_func_dlopen = yes; then 9884 lt_cv_dlopen="dlopen" 9885else 9886 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9887$as_echo_n "checking for dlopen in -ldl... " >&6; } 9888if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9889 $as_echo_n "(cached) " >&6 9890else 9891 ac_check_lib_save_LIBS=$LIBS 9892LIBS="-ldl $LIBS" 9893cat >conftest.$ac_ext <<_ACEOF 9894/* confdefs.h. */ 9895_ACEOF 9896cat confdefs.h >>conftest.$ac_ext 9897cat >>conftest.$ac_ext <<_ACEOF 9898/* end confdefs.h. */ 9899 9900/* Override any GCC internal prototype to avoid an error. 9901 Use char because int might match the return type of a GCC 9902 builtin and then its argument prototype would still apply. */ 9903#ifdef __cplusplus 9904extern "C" 9905#endif 9906char dlopen (); 9907int 9908main () 9909{ 9910return dlopen (); 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915rm -f conftest.$ac_objext conftest$ac_exeext 9916if { (ac_try="$ac_link" 9917case "(($ac_try" in 9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9919 *) ac_try_echo=$ac_try;; 9920esac 9921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9922$as_echo "$ac_try_echo") >&5 9923 (eval "$ac_link") 2>conftest.er1 9924 ac_status=$? 9925 grep -v '^ *+' conftest.er1 >conftest.err 9926 rm -f conftest.er1 9927 cat conftest.err >&5 9928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9929 (exit $ac_status); } && { 9930 test -z "$ac_c_werror_flag" || 9931 test ! -s conftest.err 9932 } && test -s conftest$ac_exeext && { 9933 test "$cross_compiling" = yes || 9934 $as_test_x conftest$ac_exeext 9935 }; then 9936 ac_cv_lib_dl_dlopen=yes 9937else 9938 $as_echo "$as_me: failed program was:" >&5 9939sed 's/^/| /' conftest.$ac_ext >&5 9940 9941 ac_cv_lib_dl_dlopen=no 9942fi 9943 9944rm -rf conftest.dSYM 9945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9946 conftest$ac_exeext conftest.$ac_ext 9947LIBS=$ac_check_lib_save_LIBS 9948fi 9949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9950$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9951if test $ac_cv_lib_dl_dlopen = yes; then 9952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9953else 9954 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9955$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9956if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9957 $as_echo_n "(cached) " >&6 9958else 9959 ac_check_lib_save_LIBS=$LIBS 9960LIBS="-lsvld $LIBS" 9961cat >conftest.$ac_ext <<_ACEOF 9962/* confdefs.h. */ 9963_ACEOF 9964cat confdefs.h >>conftest.$ac_ext 9965cat >>conftest.$ac_ext <<_ACEOF 9966/* end confdefs.h. */ 9967 9968/* Override any GCC internal prototype to avoid an error. 9969 Use char because int might match the return type of a GCC 9970 builtin and then its argument prototype would still apply. */ 9971#ifdef __cplusplus 9972extern "C" 9973#endif 9974char dlopen (); 9975int 9976main () 9977{ 9978return dlopen (); 9979 ; 9980 return 0; 9981} 9982_ACEOF 9983rm -f conftest.$ac_objext conftest$ac_exeext 9984if { (ac_try="$ac_link" 9985case "(($ac_try" in 9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9987 *) ac_try_echo=$ac_try;; 9988esac 9989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9990$as_echo "$ac_try_echo") >&5 9991 (eval "$ac_link") 2>conftest.er1 9992 ac_status=$? 9993 grep -v '^ *+' conftest.er1 >conftest.err 9994 rm -f conftest.er1 9995 cat conftest.err >&5 9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); } && { 9998 test -z "$ac_c_werror_flag" || 9999 test ! -s conftest.err 10000 } && test -s conftest$ac_exeext && { 10001 test "$cross_compiling" = yes || 10002 $as_test_x conftest$ac_exeext 10003 }; then 10004 ac_cv_lib_svld_dlopen=yes 10005else 10006 $as_echo "$as_me: failed program was:" >&5 10007sed 's/^/| /' conftest.$ac_ext >&5 10008 10009 ac_cv_lib_svld_dlopen=no 10010fi 10011 10012rm -rf conftest.dSYM 10013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10014 conftest$ac_exeext conftest.$ac_ext 10015LIBS=$ac_check_lib_save_LIBS 10016fi 10017{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10018$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10019if test $ac_cv_lib_svld_dlopen = yes; then 10020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10021else 10022 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10023$as_echo_n "checking for dld_link in -ldld... " >&6; } 10024if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10025 $as_echo_n "(cached) " >&6 10026else 10027 ac_check_lib_save_LIBS=$LIBS 10028LIBS="-ldld $LIBS" 10029cat >conftest.$ac_ext <<_ACEOF 10030/* confdefs.h. */ 10031_ACEOF 10032cat confdefs.h >>conftest.$ac_ext 10033cat >>conftest.$ac_ext <<_ACEOF 10034/* end confdefs.h. */ 10035 10036/* Override any GCC internal prototype to avoid an error. 10037 Use char because int might match the return type of a GCC 10038 builtin and then its argument prototype would still apply. */ 10039#ifdef __cplusplus 10040extern "C" 10041#endif 10042char dld_link (); 10043int 10044main () 10045{ 10046return dld_link (); 10047 ; 10048 return 0; 10049} 10050_ACEOF 10051rm -f conftest.$ac_objext conftest$ac_exeext 10052if { (ac_try="$ac_link" 10053case "(($ac_try" in 10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10055 *) ac_try_echo=$ac_try;; 10056esac 10057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10058$as_echo "$ac_try_echo") >&5 10059 (eval "$ac_link") 2>conftest.er1 10060 ac_status=$? 10061 grep -v '^ *+' conftest.er1 >conftest.err 10062 rm -f conftest.er1 10063 cat conftest.err >&5 10064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10065 (exit $ac_status); } && { 10066 test -z "$ac_c_werror_flag" || 10067 test ! -s conftest.err 10068 } && test -s conftest$ac_exeext && { 10069 test "$cross_compiling" = yes || 10070 $as_test_x conftest$ac_exeext 10071 }; then 10072 ac_cv_lib_dld_dld_link=yes 10073else 10074 $as_echo "$as_me: failed program was:" >&5 10075sed 's/^/| /' conftest.$ac_ext >&5 10076 10077 ac_cv_lib_dld_dld_link=no 10078fi 10079 10080rm -rf conftest.dSYM 10081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10082 conftest$ac_exeext conftest.$ac_ext 10083LIBS=$ac_check_lib_save_LIBS 10084fi 10085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10086$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10087if test $ac_cv_lib_dld_dld_link = yes; then 10088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10089fi 10090 10091 10092fi 10093 10094 10095fi 10096 10097 10098fi 10099 10100 10101fi 10102 10103 10104fi 10105 10106 ;; 10107 esac 10108 10109 if test "x$lt_cv_dlopen" != xno; then 10110 enable_dlopen=yes 10111 else 10112 enable_dlopen=no 10113 fi 10114 10115 case $lt_cv_dlopen in 10116 dlopen) 10117 save_CPPFLAGS="$CPPFLAGS" 10118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10119 10120 save_LDFLAGS="$LDFLAGS" 10121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10122 10123 save_LIBS="$LIBS" 10124 LIBS="$lt_cv_dlopen_libs $LIBS" 10125 10126 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10127$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10128if test "${lt_cv_dlopen_self+set}" = set; then 10129 $as_echo_n "(cached) " >&6 10130else 10131 if test "$cross_compiling" = yes; then : 10132 lt_cv_dlopen_self=cross 10133else 10134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10135 lt_status=$lt_dlunknown 10136 cat > conftest.$ac_ext <<_LT_EOF 10137#line 10137 "configure" 10138#include "confdefs.h" 10139 10140#if HAVE_DLFCN_H 10141#include <dlfcn.h> 10142#endif 10143 10144#include <stdio.h> 10145 10146#ifdef RTLD_GLOBAL 10147# define LT_DLGLOBAL RTLD_GLOBAL 10148#else 10149# ifdef DL_GLOBAL 10150# define LT_DLGLOBAL DL_GLOBAL 10151# else 10152# define LT_DLGLOBAL 0 10153# endif 10154#endif 10155 10156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10157 find out it does not work in some platform. */ 10158#ifndef LT_DLLAZY_OR_NOW 10159# ifdef RTLD_LAZY 10160# define LT_DLLAZY_OR_NOW RTLD_LAZY 10161# else 10162# ifdef DL_LAZY 10163# define LT_DLLAZY_OR_NOW DL_LAZY 10164# else 10165# ifdef RTLD_NOW 10166# define LT_DLLAZY_OR_NOW RTLD_NOW 10167# else 10168# ifdef DL_NOW 10169# define LT_DLLAZY_OR_NOW DL_NOW 10170# else 10171# define LT_DLLAZY_OR_NOW 0 10172# endif 10173# endif 10174# endif 10175# endif 10176#endif 10177 10178void fnord() { int i=42;} 10179int main () 10180{ 10181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10182 int status = $lt_dlunknown; 10183 10184 if (self) 10185 { 10186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10188 /* dlclose (self); */ 10189 } 10190 else 10191 puts (dlerror ()); 10192 10193 return status; 10194} 10195_LT_EOF 10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10197 (eval $ac_link) 2>&5 10198 ac_status=$? 10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10200 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10201 (./conftest; exit; ) >&5 2>/dev/null 10202 lt_status=$? 10203 case x$lt_status in 10204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10207 esac 10208 else : 10209 # compilation failed 10210 lt_cv_dlopen_self=no 10211 fi 10212fi 10213rm -fr conftest* 10214 10215 10216fi 10217{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10218$as_echo "$lt_cv_dlopen_self" >&6; } 10219 10220 if test "x$lt_cv_dlopen_self" = xyes; then 10221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10222 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10223$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10224if test "${lt_cv_dlopen_self_static+set}" = set; then 10225 $as_echo_n "(cached) " >&6 10226else 10227 if test "$cross_compiling" = yes; then : 10228 lt_cv_dlopen_self_static=cross 10229else 10230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10231 lt_status=$lt_dlunknown 10232 cat > conftest.$ac_ext <<_LT_EOF 10233#line 10233 "configure" 10234#include "confdefs.h" 10235 10236#if HAVE_DLFCN_H 10237#include <dlfcn.h> 10238#endif 10239 10240#include <stdio.h> 10241 10242#ifdef RTLD_GLOBAL 10243# define LT_DLGLOBAL RTLD_GLOBAL 10244#else 10245# ifdef DL_GLOBAL 10246# define LT_DLGLOBAL DL_GLOBAL 10247# else 10248# define LT_DLGLOBAL 0 10249# endif 10250#endif 10251 10252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10253 find out it does not work in some platform. */ 10254#ifndef LT_DLLAZY_OR_NOW 10255# ifdef RTLD_LAZY 10256# define LT_DLLAZY_OR_NOW RTLD_LAZY 10257# else 10258# ifdef DL_LAZY 10259# define LT_DLLAZY_OR_NOW DL_LAZY 10260# else 10261# ifdef RTLD_NOW 10262# define LT_DLLAZY_OR_NOW RTLD_NOW 10263# else 10264# ifdef DL_NOW 10265# define LT_DLLAZY_OR_NOW DL_NOW 10266# else 10267# define LT_DLLAZY_OR_NOW 0 10268# endif 10269# endif 10270# endif 10271# endif 10272#endif 10273 10274void fnord() { int i=42;} 10275int main () 10276{ 10277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10278 int status = $lt_dlunknown; 10279 10280 if (self) 10281 { 10282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10284 /* dlclose (self); */ 10285 } 10286 else 10287 puts (dlerror ()); 10288 10289 return status; 10290} 10291_LT_EOF 10292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10293 (eval $ac_link) 2>&5 10294 ac_status=$? 10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10297 (./conftest; exit; ) >&5 2>/dev/null 10298 lt_status=$? 10299 case x$lt_status in 10300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10303 esac 10304 else : 10305 # compilation failed 10306 lt_cv_dlopen_self_static=no 10307 fi 10308fi 10309rm -fr conftest* 10310 10311 10312fi 10313{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10314$as_echo "$lt_cv_dlopen_self_static" >&6; } 10315 fi 10316 10317 CPPFLAGS="$save_CPPFLAGS" 10318 LDFLAGS="$save_LDFLAGS" 10319 LIBS="$save_LIBS" 10320 ;; 10321 esac 10322 10323 case $lt_cv_dlopen_self in 10324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10325 *) enable_dlopen_self=unknown ;; 10326 esac 10327 10328 case $lt_cv_dlopen_self_static in 10329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10330 *) enable_dlopen_self_static=unknown ;; 10331 esac 10332fi 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350striplib= 10351old_striplib= 10352{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10353$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10354if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10356 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10357 { $as_echo "$as_me:$LINENO: result: yes" >&5 10358$as_echo "yes" >&6; } 10359else 10360# FIXME - insert some real tests, host_os isn't really good enough 10361 case $host_os in 10362 darwin*) 10363 if test -n "$STRIP" ; then 10364 striplib="$STRIP -x" 10365 old_striplib="$STRIP -S" 10366 { $as_echo "$as_me:$LINENO: result: yes" >&5 10367$as_echo "yes" >&6; } 10368 else 10369 { $as_echo "$as_me:$LINENO: result: no" >&5 10370$as_echo "no" >&6; } 10371 fi 10372 ;; 10373 *) 10374 { $as_echo "$as_me:$LINENO: result: no" >&5 10375$as_echo "no" >&6; } 10376 ;; 10377 esac 10378fi 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 # Report which library types will actually be built 10392 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10393$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10394 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10395$as_echo "$can_build_shared" >&6; } 10396 10397 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10398$as_echo_n "checking whether to build shared libraries... " >&6; } 10399 test "$can_build_shared" = "no" && enable_shared=no 10400 10401 # On AIX, shared libraries and static libraries use the same namespace, and 10402 # are all built from PIC. 10403 case $host_os in 10404 aix3*) 10405 test "$enable_shared" = yes && enable_static=no 10406 if test -n "$RANLIB"; then 10407 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10408 postinstall_cmds='$RANLIB $lib' 10409 fi 10410 ;; 10411 10412 aix[4-9]*) 10413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10414 test "$enable_shared" = yes && enable_static=no 10415 fi 10416 ;; 10417 esac 10418 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10419$as_echo "$enable_shared" >&6; } 10420 10421 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10422$as_echo_n "checking whether to build static libraries... " >&6; } 10423 # Make sure either enable_shared or enable_static is yes. 10424 test "$enable_shared" = yes || enable_static=yes 10425 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10426$as_echo "$enable_static" >&6; } 10427 10428 10429 10430 10431fi 10432ac_ext=c 10433ac_cpp='$CPP $CPPFLAGS' 10434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10436ac_compiler_gnu=$ac_cv_c_compiler_gnu 10437 10438CC="$lt_save_CC" 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 ac_config_commands="$ac_config_commands libtool" 10453 10454 10455 10456 10457# Only expand once: 10458 10459 10460# Find a good install program. We prefer a C program (faster), 10461# so one script is as good as another. But avoid the broken or 10462# incompatible versions: 10463# SysV /etc/install, /usr/sbin/install 10464# SunOS /usr/etc/install 10465# IRIX /sbin/install 10466# AIX /bin/install 10467# AmigaOS /C/install, which installs bootblocks on floppy discs 10468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10469# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10471# OS/2's system install, which has a completely different semantic 10472# ./install, which can be erroneously created by make from ./install.sh. 10473# Reject install programs that cannot install multiple files. 10474{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 10475$as_echo_n "checking for a BSD-compatible install... " >&6; } 10476if test -z "$INSTALL"; then 10477if test "${ac_cv_path_install+set}" = set; then 10478 $as_echo_n "(cached) " >&6 10479else 10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10481for as_dir in $PATH 10482do 10483 IFS=$as_save_IFS 10484 test -z "$as_dir" && as_dir=. 10485 # Account for people who put trailing slashes in PATH elements. 10486case $as_dir/ in 10487 ./ | .// | /cC/* | \ 10488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 10490 /usr/ucb/* ) ;; 10491 *) 10492 # OSF1 and SCO ODT 3.0 have their own names for install. 10493 # Don't use installbsd from OSF since it installs stuff as root 10494 # by default. 10495 for ac_prog in ginstall scoinst install; do 10496 for ac_exec_ext in '' $ac_executable_extensions; do 10497 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 10498 if test $ac_prog = install && 10499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10500 # AIX install. It has an incompatible calling convention. 10501 : 10502 elif test $ac_prog = install && 10503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10504 # program-specific install script used by HP pwplus--don't use. 10505 : 10506 else 10507 rm -rf conftest.one conftest.two conftest.dir 10508 echo one > conftest.one 10509 echo two > conftest.two 10510 mkdir conftest.dir 10511 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10512 test -s conftest.one && test -s conftest.two && 10513 test -s conftest.dir/conftest.one && 10514 test -s conftest.dir/conftest.two 10515 then 10516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10517 break 3 10518 fi 10519 fi 10520 fi 10521 done 10522 done 10523 ;; 10524esac 10525 10526done 10527IFS=$as_save_IFS 10528 10529rm -rf conftest.one conftest.two conftest.dir 10530 10531fi 10532 if test "${ac_cv_path_install+set}" = set; then 10533 INSTALL=$ac_cv_path_install 10534 else 10535 # As a last resort, use the slow shell script. Don't cache a 10536 # value for INSTALL within a source directory, because that will 10537 # break other packages using the cache if that directory is 10538 # removed, or if the value is a relative name. 10539 INSTALL=$ac_install_sh 10540 fi 10541fi 10542{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 10543$as_echo "$INSTALL" >&6; } 10544 10545# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10546# It thinks the first close brace ends the variable substitution. 10547test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10548 10549test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10550 10551test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10552 10553for ac_prog in gawk mawk nawk awk 10554do 10555 # Extract the first word of "$ac_prog", so it can be a program name with args. 10556set dummy $ac_prog; ac_word=$2 10557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10558$as_echo_n "checking for $ac_word... " >&6; } 10559if test "${ac_cv_prog_AWK+set}" = set; then 10560 $as_echo_n "(cached) " >&6 10561else 10562 if test -n "$AWK"; then 10563 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10564else 10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10566for as_dir in $PATH 10567do 10568 IFS=$as_save_IFS 10569 test -z "$as_dir" && as_dir=. 10570 for ac_exec_ext in '' $ac_executable_extensions; do 10571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10572 ac_cv_prog_AWK="$ac_prog" 10573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10574 break 2 10575 fi 10576done 10577done 10578IFS=$as_save_IFS 10579 10580fi 10581fi 10582AWK=$ac_cv_prog_AWK 10583if test -n "$AWK"; then 10584 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 10585$as_echo "$AWK" >&6; } 10586else 10587 { $as_echo "$as_me:$LINENO: result: no" >&5 10588$as_echo "no" >&6; } 10589fi 10590 10591 10592 test -n "$AWK" && break 10593done 10594 10595 10596######### 10597# Enable large file support (if special flags are necessary) 10598# 10599# Check whether --enable-largefile was given. 10600if test "${enable_largefile+set}" = set; then 10601 enableval=$enable_largefile; 10602fi 10603 10604if test "$enable_largefile" != no; then 10605 10606 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 10607$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10608if test "${ac_cv_sys_largefile_CC+set}" = set; then 10609 $as_echo_n "(cached) " >&6 10610else 10611 ac_cv_sys_largefile_CC=no 10612 if test "$GCC" != yes; then 10613 ac_save_CC=$CC 10614 while :; do 10615 # IRIX 6.2 and later do not support large files by default, 10616 # so use the C compiler's -n32 option if that helps. 10617 cat >conftest.$ac_ext <<_ACEOF 10618/* confdefs.h. */ 10619_ACEOF 10620cat confdefs.h >>conftest.$ac_ext 10621cat >>conftest.$ac_ext <<_ACEOF 10622/* end confdefs.h. */ 10623#include <sys/types.h> 10624 /* Check that off_t can represent 2**63 - 1 correctly. 10625 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10626 since some C++ compilers masquerading as C compilers 10627 incorrectly reject 9223372036854775807. */ 10628#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10630 && LARGE_OFF_T % 2147483647 == 1) 10631 ? 1 : -1]; 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640 rm -f conftest.$ac_objext 10641if { (ac_try="$ac_compile" 10642case "(($ac_try" in 10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10644 *) ac_try_echo=$ac_try;; 10645esac 10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10647$as_echo "$ac_try_echo") >&5 10648 (eval "$ac_compile") 2>conftest.er1 10649 ac_status=$? 10650 grep -v '^ *+' conftest.er1 >conftest.err 10651 rm -f conftest.er1 10652 cat conftest.err >&5 10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10654 (exit $ac_status); } && { 10655 test -z "$ac_c_werror_flag" || 10656 test ! -s conftest.err 10657 } && test -s conftest.$ac_objext; then 10658 break 10659else 10660 $as_echo "$as_me: failed program was:" >&5 10661sed 's/^/| /' conftest.$ac_ext >&5 10662 10663 10664fi 10665 10666rm -f core conftest.err conftest.$ac_objext 10667 CC="$CC -n32" 10668 rm -f conftest.$ac_objext 10669if { (ac_try="$ac_compile" 10670case "(($ac_try" in 10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10672 *) ac_try_echo=$ac_try;; 10673esac 10674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10675$as_echo "$ac_try_echo") >&5 10676 (eval "$ac_compile") 2>conftest.er1 10677 ac_status=$? 10678 grep -v '^ *+' conftest.er1 >conftest.err 10679 rm -f conftest.er1 10680 cat conftest.err >&5 10681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 (exit $ac_status); } && { 10683 test -z "$ac_c_werror_flag" || 10684 test ! -s conftest.err 10685 } && test -s conftest.$ac_objext; then 10686 ac_cv_sys_largefile_CC=' -n32'; break 10687else 10688 $as_echo "$as_me: failed program was:" >&5 10689sed 's/^/| /' conftest.$ac_ext >&5 10690 10691 10692fi 10693 10694rm -f core conftest.err conftest.$ac_objext 10695 break 10696 done 10697 CC=$ac_save_CC 10698 rm -f conftest.$ac_ext 10699 fi 10700fi 10701{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 10702$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10703 if test "$ac_cv_sys_largefile_CC" != no; then 10704 CC=$CC$ac_cv_sys_largefile_CC 10705 fi 10706 10707 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10708$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10709if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10710 $as_echo_n "(cached) " >&6 10711else 10712 while :; do 10713 cat >conftest.$ac_ext <<_ACEOF 10714/* confdefs.h. */ 10715_ACEOF 10716cat confdefs.h >>conftest.$ac_ext 10717cat >>conftest.$ac_ext <<_ACEOF 10718/* end confdefs.h. */ 10719#include <sys/types.h> 10720 /* Check that off_t can represent 2**63 - 1 correctly. 10721 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10722 since some C++ compilers masquerading as C compilers 10723 incorrectly reject 9223372036854775807. */ 10724#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10726 && LARGE_OFF_T % 2147483647 == 1) 10727 ? 1 : -1]; 10728int 10729main () 10730{ 10731 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736rm -f conftest.$ac_objext 10737if { (ac_try="$ac_compile" 10738case "(($ac_try" in 10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10740 *) ac_try_echo=$ac_try;; 10741esac 10742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10743$as_echo "$ac_try_echo") >&5 10744 (eval "$ac_compile") 2>conftest.er1 10745 ac_status=$? 10746 grep -v '^ *+' conftest.er1 >conftest.err 10747 rm -f conftest.er1 10748 cat conftest.err >&5 10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); } && { 10751 test -z "$ac_c_werror_flag" || 10752 test ! -s conftest.err 10753 } && test -s conftest.$ac_objext; then 10754 ac_cv_sys_file_offset_bits=no; break 10755else 10756 $as_echo "$as_me: failed program was:" >&5 10757sed 's/^/| /' conftest.$ac_ext >&5 10758 10759 10760fi 10761 10762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10763 cat >conftest.$ac_ext <<_ACEOF 10764/* confdefs.h. */ 10765_ACEOF 10766cat confdefs.h >>conftest.$ac_ext 10767cat >>conftest.$ac_ext <<_ACEOF 10768/* end confdefs.h. */ 10769#define _FILE_OFFSET_BITS 64 10770#include <sys/types.h> 10771 /* Check that off_t can represent 2**63 - 1 correctly. 10772 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10773 since some C++ compilers masquerading as C compilers 10774 incorrectly reject 9223372036854775807. */ 10775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10777 && LARGE_OFF_T % 2147483647 == 1) 10778 ? 1 : -1]; 10779int 10780main () 10781{ 10782 10783 ; 10784 return 0; 10785} 10786_ACEOF 10787rm -f conftest.$ac_objext 10788if { (ac_try="$ac_compile" 10789case "(($ac_try" in 10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10791 *) ac_try_echo=$ac_try;; 10792esac 10793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10794$as_echo "$ac_try_echo") >&5 10795 (eval "$ac_compile") 2>conftest.er1 10796 ac_status=$? 10797 grep -v '^ *+' conftest.er1 >conftest.err 10798 rm -f conftest.er1 10799 cat conftest.err >&5 10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10801 (exit $ac_status); } && { 10802 test -z "$ac_c_werror_flag" || 10803 test ! -s conftest.err 10804 } && test -s conftest.$ac_objext; then 10805 ac_cv_sys_file_offset_bits=64; break 10806else 10807 $as_echo "$as_me: failed program was:" >&5 10808sed 's/^/| /' conftest.$ac_ext >&5 10809 10810 10811fi 10812 10813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10814 ac_cv_sys_file_offset_bits=unknown 10815 break 10816done 10817fi 10818{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 10819$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10820case $ac_cv_sys_file_offset_bits in #( 10821 no | unknown) ;; 10822 *) 10823cat >>confdefs.h <<_ACEOF 10824#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10825_ACEOF 10826;; 10827esac 10828rm -rf conftest* 10829 if test $ac_cv_sys_file_offset_bits = unknown; then 10830 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10831$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10832if test "${ac_cv_sys_large_files+set}" = set; then 10833 $as_echo_n "(cached) " >&6 10834else 10835 while :; do 10836 cat >conftest.$ac_ext <<_ACEOF 10837/* confdefs.h. */ 10838_ACEOF 10839cat confdefs.h >>conftest.$ac_ext 10840cat >>conftest.$ac_ext <<_ACEOF 10841/* end confdefs.h. */ 10842#include <sys/types.h> 10843 /* Check that off_t can represent 2**63 - 1 correctly. 10844 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10845 since some C++ compilers masquerading as C compilers 10846 incorrectly reject 9223372036854775807. */ 10847#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10849 && LARGE_OFF_T % 2147483647 == 1) 10850 ? 1 : -1]; 10851int 10852main () 10853{ 10854 10855 ; 10856 return 0; 10857} 10858_ACEOF 10859rm -f conftest.$ac_objext 10860if { (ac_try="$ac_compile" 10861case "(($ac_try" in 10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10863 *) ac_try_echo=$ac_try;; 10864esac 10865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10866$as_echo "$ac_try_echo") >&5 10867 (eval "$ac_compile") 2>conftest.er1 10868 ac_status=$? 10869 grep -v '^ *+' conftest.er1 >conftest.err 10870 rm -f conftest.er1 10871 cat conftest.err >&5 10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10873 (exit $ac_status); } && { 10874 test -z "$ac_c_werror_flag" || 10875 test ! -s conftest.err 10876 } && test -s conftest.$ac_objext; then 10877 ac_cv_sys_large_files=no; break 10878else 10879 $as_echo "$as_me: failed program was:" >&5 10880sed 's/^/| /' conftest.$ac_ext >&5 10881 10882 10883fi 10884 10885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10886 cat >conftest.$ac_ext <<_ACEOF 10887/* confdefs.h. */ 10888_ACEOF 10889cat confdefs.h >>conftest.$ac_ext 10890cat >>conftest.$ac_ext <<_ACEOF 10891/* end confdefs.h. */ 10892#define _LARGE_FILES 1 10893#include <sys/types.h> 10894 /* Check that off_t can represent 2**63 - 1 correctly. 10895 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10896 since some C++ compilers masquerading as C compilers 10897 incorrectly reject 9223372036854775807. */ 10898#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10900 && LARGE_OFF_T % 2147483647 == 1) 10901 ? 1 : -1]; 10902int 10903main () 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910rm -f conftest.$ac_objext 10911if { (ac_try="$ac_compile" 10912case "(($ac_try" in 10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10914 *) ac_try_echo=$ac_try;; 10915esac 10916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10917$as_echo "$ac_try_echo") >&5 10918 (eval "$ac_compile") 2>conftest.er1 10919 ac_status=$? 10920 grep -v '^ *+' conftest.er1 >conftest.err 10921 rm -f conftest.er1 10922 cat conftest.err >&5 10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10924 (exit $ac_status); } && { 10925 test -z "$ac_c_werror_flag" || 10926 test ! -s conftest.err 10927 } && test -s conftest.$ac_objext; then 10928 ac_cv_sys_large_files=1; break 10929else 10930 $as_echo "$as_me: failed program was:" >&5 10931sed 's/^/| /' conftest.$ac_ext >&5 10932 10933 10934fi 10935 10936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10937 ac_cv_sys_large_files=unknown 10938 break 10939done 10940fi 10941{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10942$as_echo "$ac_cv_sys_large_files" >&6; } 10943case $ac_cv_sys_large_files in #( 10944 no | unknown) ;; 10945 *) 10946cat >>confdefs.h <<_ACEOF 10947#define _LARGE_FILES $ac_cv_sys_large_files 10948_ACEOF 10949;; 10950esac 10951rm -rf conftest* 10952 fi 10953fi 10954 10955 10956######### 10957# Check for needed/wanted data types 10958{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5 10959$as_echo_n "checking for int8_t... " >&6; } 10960if test "${ac_cv_type_int8_t+set}" = set; then 10961 $as_echo_n "(cached) " >&6 10962else 10963 ac_cv_type_int8_t=no 10964cat >conftest.$ac_ext <<_ACEOF 10965/* confdefs.h. */ 10966_ACEOF 10967cat confdefs.h >>conftest.$ac_ext 10968cat >>conftest.$ac_ext <<_ACEOF 10969/* end confdefs.h. */ 10970$ac_includes_default 10971int 10972main () 10973{ 10974if (sizeof (int8_t)) 10975 return 0; 10976 ; 10977 return 0; 10978} 10979_ACEOF 10980rm -f conftest.$ac_objext 10981if { (ac_try="$ac_compile" 10982case "(($ac_try" in 10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10984 *) ac_try_echo=$ac_try;; 10985esac 10986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10987$as_echo "$ac_try_echo") >&5 10988 (eval "$ac_compile") 2>conftest.er1 10989 ac_status=$? 10990 grep -v '^ *+' conftest.er1 >conftest.err 10991 rm -f conftest.er1 10992 cat conftest.err >&5 10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10994 (exit $ac_status); } && { 10995 test -z "$ac_c_werror_flag" || 10996 test ! -s conftest.err 10997 } && test -s conftest.$ac_objext; then 10998 cat >conftest.$ac_ext <<_ACEOF 10999/* confdefs.h. */ 11000_ACEOF 11001cat confdefs.h >>conftest.$ac_ext 11002cat >>conftest.$ac_ext <<_ACEOF 11003/* end confdefs.h. */ 11004$ac_includes_default 11005int 11006main () 11007{ 11008if (sizeof ((int8_t))) 11009 return 0; 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014rm -f conftest.$ac_objext 11015if { (ac_try="$ac_compile" 11016case "(($ac_try" in 11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11018 *) ac_try_echo=$ac_try;; 11019esac 11020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11021$as_echo "$ac_try_echo") >&5 11022 (eval "$ac_compile") 2>conftest.er1 11023 ac_status=$? 11024 grep -v '^ *+' conftest.er1 >conftest.err 11025 rm -f conftest.er1 11026 cat conftest.err >&5 11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11028 (exit $ac_status); } && { 11029 test -z "$ac_c_werror_flag" || 11030 test ! -s conftest.err 11031 } && test -s conftest.$ac_objext; then 11032 : 11033else 11034 $as_echo "$as_me: failed program was:" >&5 11035sed 's/^/| /' conftest.$ac_ext >&5 11036 11037 ac_cv_type_int8_t=yes 11038fi 11039 11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11041else 11042 $as_echo "$as_me: failed program was:" >&5 11043sed 's/^/| /' conftest.$ac_ext >&5 11044 11045 11046fi 11047 11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11049fi 11050{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11051$as_echo "$ac_cv_type_int8_t" >&6; } 11052if test $ac_cv_type_int8_t = yes; then 11053 11054cat >>confdefs.h <<_ACEOF 11055#define HAVE_INT8_T 1 11056_ACEOF 11057 11058 11059fi 11060{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5 11061$as_echo_n "checking for int16_t... " >&6; } 11062if test "${ac_cv_type_int16_t+set}" = set; then 11063 $as_echo_n "(cached) " >&6 11064else 11065 ac_cv_type_int16_t=no 11066cat >conftest.$ac_ext <<_ACEOF 11067/* confdefs.h. */ 11068_ACEOF 11069cat confdefs.h >>conftest.$ac_ext 11070cat >>conftest.$ac_ext <<_ACEOF 11071/* end confdefs.h. */ 11072$ac_includes_default 11073int 11074main () 11075{ 11076if (sizeof (int16_t)) 11077 return 0; 11078 ; 11079 return 0; 11080} 11081_ACEOF 11082rm -f conftest.$ac_objext 11083if { (ac_try="$ac_compile" 11084case "(($ac_try" in 11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11086 *) ac_try_echo=$ac_try;; 11087esac 11088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11089$as_echo "$ac_try_echo") >&5 11090 (eval "$ac_compile") 2>conftest.er1 11091 ac_status=$? 11092 grep -v '^ *+' conftest.er1 >conftest.err 11093 rm -f conftest.er1 11094 cat conftest.err >&5 11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11096 (exit $ac_status); } && { 11097 test -z "$ac_c_werror_flag" || 11098 test ! -s conftest.err 11099 } && test -s conftest.$ac_objext; then 11100 cat >conftest.$ac_ext <<_ACEOF 11101/* confdefs.h. */ 11102_ACEOF 11103cat confdefs.h >>conftest.$ac_ext 11104cat >>conftest.$ac_ext <<_ACEOF 11105/* end confdefs.h. */ 11106$ac_includes_default 11107int 11108main () 11109{ 11110if (sizeof ((int16_t))) 11111 return 0; 11112 ; 11113 return 0; 11114} 11115_ACEOF 11116rm -f conftest.$ac_objext 11117if { (ac_try="$ac_compile" 11118case "(($ac_try" in 11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11120 *) ac_try_echo=$ac_try;; 11121esac 11122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11123$as_echo "$ac_try_echo") >&5 11124 (eval "$ac_compile") 2>conftest.er1 11125 ac_status=$? 11126 grep -v '^ *+' conftest.er1 >conftest.err 11127 rm -f conftest.er1 11128 cat conftest.err >&5 11129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 (exit $ac_status); } && { 11131 test -z "$ac_c_werror_flag" || 11132 test ! -s conftest.err 11133 } && test -s conftest.$ac_objext; then 11134 : 11135else 11136 $as_echo "$as_me: failed program was:" >&5 11137sed 's/^/| /' conftest.$ac_ext >&5 11138 11139 ac_cv_type_int16_t=yes 11140fi 11141 11142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11143else 11144 $as_echo "$as_me: failed program was:" >&5 11145sed 's/^/| /' conftest.$ac_ext >&5 11146 11147 11148fi 11149 11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11151fi 11152{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11153$as_echo "$ac_cv_type_int16_t" >&6; } 11154if test $ac_cv_type_int16_t = yes; then 11155 11156cat >>confdefs.h <<_ACEOF 11157#define HAVE_INT16_T 1 11158_ACEOF 11159 11160 11161fi 11162{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5 11163$as_echo_n "checking for int32_t... " >&6; } 11164if test "${ac_cv_type_int32_t+set}" = set; then 11165 $as_echo_n "(cached) " >&6 11166else 11167 ac_cv_type_int32_t=no 11168cat >conftest.$ac_ext <<_ACEOF 11169/* confdefs.h. */ 11170_ACEOF 11171cat confdefs.h >>conftest.$ac_ext 11172cat >>conftest.$ac_ext <<_ACEOF 11173/* end confdefs.h. */ 11174$ac_includes_default 11175int 11176main () 11177{ 11178if (sizeof (int32_t)) 11179 return 0; 11180 ; 11181 return 0; 11182} 11183_ACEOF 11184rm -f conftest.$ac_objext 11185if { (ac_try="$ac_compile" 11186case "(($ac_try" in 11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11188 *) ac_try_echo=$ac_try;; 11189esac 11190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11191$as_echo "$ac_try_echo") >&5 11192 (eval "$ac_compile") 2>conftest.er1 11193 ac_status=$? 11194 grep -v '^ *+' conftest.er1 >conftest.err 11195 rm -f conftest.er1 11196 cat conftest.err >&5 11197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11198 (exit $ac_status); } && { 11199 test -z "$ac_c_werror_flag" || 11200 test ! -s conftest.err 11201 } && test -s conftest.$ac_objext; then 11202 cat >conftest.$ac_ext <<_ACEOF 11203/* confdefs.h. */ 11204_ACEOF 11205cat confdefs.h >>conftest.$ac_ext 11206cat >>conftest.$ac_ext <<_ACEOF 11207/* end confdefs.h. */ 11208$ac_includes_default 11209int 11210main () 11211{ 11212if (sizeof ((int32_t))) 11213 return 0; 11214 ; 11215 return 0; 11216} 11217_ACEOF 11218rm -f conftest.$ac_objext 11219if { (ac_try="$ac_compile" 11220case "(($ac_try" in 11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11222 *) ac_try_echo=$ac_try;; 11223esac 11224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11225$as_echo "$ac_try_echo") >&5 11226 (eval "$ac_compile") 2>conftest.er1 11227 ac_status=$? 11228 grep -v '^ *+' conftest.er1 >conftest.err 11229 rm -f conftest.er1 11230 cat conftest.err >&5 11231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11232 (exit $ac_status); } && { 11233 test -z "$ac_c_werror_flag" || 11234 test ! -s conftest.err 11235 } && test -s conftest.$ac_objext; then 11236 : 11237else 11238 $as_echo "$as_me: failed program was:" >&5 11239sed 's/^/| /' conftest.$ac_ext >&5 11240 11241 ac_cv_type_int32_t=yes 11242fi 11243 11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11245else 11246 $as_echo "$as_me: failed program was:" >&5 11247sed 's/^/| /' conftest.$ac_ext >&5 11248 11249 11250fi 11251 11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11253fi 11254{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11255$as_echo "$ac_cv_type_int32_t" >&6; } 11256if test $ac_cv_type_int32_t = yes; then 11257 11258cat >>confdefs.h <<_ACEOF 11259#define HAVE_INT32_T 1 11260_ACEOF 11261 11262 11263fi 11264{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5 11265$as_echo_n "checking for int64_t... " >&6; } 11266if test "${ac_cv_type_int64_t+set}" = set; then 11267 $as_echo_n "(cached) " >&6 11268else 11269 ac_cv_type_int64_t=no 11270cat >conftest.$ac_ext <<_ACEOF 11271/* confdefs.h. */ 11272_ACEOF 11273cat confdefs.h >>conftest.$ac_ext 11274cat >>conftest.$ac_ext <<_ACEOF 11275/* end confdefs.h. */ 11276$ac_includes_default 11277int 11278main () 11279{ 11280if (sizeof (int64_t)) 11281 return 0; 11282 ; 11283 return 0; 11284} 11285_ACEOF 11286rm -f conftest.$ac_objext 11287if { (ac_try="$ac_compile" 11288case "(($ac_try" in 11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11290 *) ac_try_echo=$ac_try;; 11291esac 11292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11293$as_echo "$ac_try_echo") >&5 11294 (eval "$ac_compile") 2>conftest.er1 11295 ac_status=$? 11296 grep -v '^ *+' conftest.er1 >conftest.err 11297 rm -f conftest.er1 11298 cat conftest.err >&5 11299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11300 (exit $ac_status); } && { 11301 test -z "$ac_c_werror_flag" || 11302 test ! -s conftest.err 11303 } && test -s conftest.$ac_objext; then 11304 cat >conftest.$ac_ext <<_ACEOF 11305/* confdefs.h. */ 11306_ACEOF 11307cat confdefs.h >>conftest.$ac_ext 11308cat >>conftest.$ac_ext <<_ACEOF 11309/* end confdefs.h. */ 11310$ac_includes_default 11311int 11312main () 11313{ 11314if (sizeof ((int64_t))) 11315 return 0; 11316 ; 11317 return 0; 11318} 11319_ACEOF 11320rm -f conftest.$ac_objext 11321if { (ac_try="$ac_compile" 11322case "(($ac_try" in 11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11324 *) ac_try_echo=$ac_try;; 11325esac 11326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11327$as_echo "$ac_try_echo") >&5 11328 (eval "$ac_compile") 2>conftest.er1 11329 ac_status=$? 11330 grep -v '^ *+' conftest.er1 >conftest.err 11331 rm -f conftest.er1 11332 cat conftest.err >&5 11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11334 (exit $ac_status); } && { 11335 test -z "$ac_c_werror_flag" || 11336 test ! -s conftest.err 11337 } && test -s conftest.$ac_objext; then 11338 : 11339else 11340 $as_echo "$as_me: failed program was:" >&5 11341sed 's/^/| /' conftest.$ac_ext >&5 11342 11343 ac_cv_type_int64_t=yes 11344fi 11345 11346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11347else 11348 $as_echo "$as_me: failed program was:" >&5 11349sed 's/^/| /' conftest.$ac_ext >&5 11350 11351 11352fi 11353 11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11355fi 11356{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11357$as_echo "$ac_cv_type_int64_t" >&6; } 11358if test $ac_cv_type_int64_t = yes; then 11359 11360cat >>confdefs.h <<_ACEOF 11361#define HAVE_INT64_T 1 11362_ACEOF 11363 11364 11365fi 11366{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 11367$as_echo_n "checking for intptr_t... " >&6; } 11368if test "${ac_cv_type_intptr_t+set}" = set; then 11369 $as_echo_n "(cached) " >&6 11370else 11371 ac_cv_type_intptr_t=no 11372cat >conftest.$ac_ext <<_ACEOF 11373/* confdefs.h. */ 11374_ACEOF 11375cat confdefs.h >>conftest.$ac_ext 11376cat >>conftest.$ac_ext <<_ACEOF 11377/* end confdefs.h. */ 11378$ac_includes_default 11379int 11380main () 11381{ 11382if (sizeof (intptr_t)) 11383 return 0; 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388rm -f conftest.$ac_objext 11389if { (ac_try="$ac_compile" 11390case "(($ac_try" in 11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11392 *) ac_try_echo=$ac_try;; 11393esac 11394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11395$as_echo "$ac_try_echo") >&5 11396 (eval "$ac_compile") 2>conftest.er1 11397 ac_status=$? 11398 grep -v '^ *+' conftest.er1 >conftest.err 11399 rm -f conftest.er1 11400 cat conftest.err >&5 11401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11402 (exit $ac_status); } && { 11403 test -z "$ac_c_werror_flag" || 11404 test ! -s conftest.err 11405 } && test -s conftest.$ac_objext; then 11406 cat >conftest.$ac_ext <<_ACEOF 11407/* confdefs.h. */ 11408_ACEOF 11409cat confdefs.h >>conftest.$ac_ext 11410cat >>conftest.$ac_ext <<_ACEOF 11411/* end confdefs.h. */ 11412$ac_includes_default 11413int 11414main () 11415{ 11416if (sizeof ((intptr_t))) 11417 return 0; 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422rm -f conftest.$ac_objext 11423if { (ac_try="$ac_compile" 11424case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427esac 11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11429$as_echo "$ac_try_echo") >&5 11430 (eval "$ac_compile") 2>conftest.er1 11431 ac_status=$? 11432 grep -v '^ *+' conftest.er1 >conftest.err 11433 rm -f conftest.er1 11434 cat conftest.err >&5 11435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11436 (exit $ac_status); } && { 11437 test -z "$ac_c_werror_flag" || 11438 test ! -s conftest.err 11439 } && test -s conftest.$ac_objext; then 11440 : 11441else 11442 $as_echo "$as_me: failed program was:" >&5 11443sed 's/^/| /' conftest.$ac_ext >&5 11444 11445 ac_cv_type_intptr_t=yes 11446fi 11447 11448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11449else 11450 $as_echo "$as_me: failed program was:" >&5 11451sed 's/^/| /' conftest.$ac_ext >&5 11452 11453 11454fi 11455 11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11457fi 11458{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 11459$as_echo "$ac_cv_type_intptr_t" >&6; } 11460if test $ac_cv_type_intptr_t = yes; then 11461 11462cat >>confdefs.h <<_ACEOF 11463#define HAVE_INTPTR_T 1 11464_ACEOF 11465 11466 11467fi 11468{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 11469$as_echo_n "checking for uint8_t... " >&6; } 11470if test "${ac_cv_type_uint8_t+set}" = set; then 11471 $as_echo_n "(cached) " >&6 11472else 11473 ac_cv_type_uint8_t=no 11474cat >conftest.$ac_ext <<_ACEOF 11475/* confdefs.h. */ 11476_ACEOF 11477cat confdefs.h >>conftest.$ac_ext 11478cat >>conftest.$ac_ext <<_ACEOF 11479/* end confdefs.h. */ 11480$ac_includes_default 11481int 11482main () 11483{ 11484if (sizeof (uint8_t)) 11485 return 0; 11486 ; 11487 return 0; 11488} 11489_ACEOF 11490rm -f conftest.$ac_objext 11491if { (ac_try="$ac_compile" 11492case "(($ac_try" in 11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11494 *) ac_try_echo=$ac_try;; 11495esac 11496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11497$as_echo "$ac_try_echo") >&5 11498 (eval "$ac_compile") 2>conftest.er1 11499 ac_status=$? 11500 grep -v '^ *+' conftest.er1 >conftest.err 11501 rm -f conftest.er1 11502 cat conftest.err >&5 11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); } && { 11505 test -z "$ac_c_werror_flag" || 11506 test ! -s conftest.err 11507 } && test -s conftest.$ac_objext; then 11508 cat >conftest.$ac_ext <<_ACEOF 11509/* confdefs.h. */ 11510_ACEOF 11511cat confdefs.h >>conftest.$ac_ext 11512cat >>conftest.$ac_ext <<_ACEOF 11513/* end confdefs.h. */ 11514$ac_includes_default 11515int 11516main () 11517{ 11518if (sizeof ((uint8_t))) 11519 return 0; 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524rm -f conftest.$ac_objext 11525if { (ac_try="$ac_compile" 11526case "(($ac_try" in 11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11528 *) ac_try_echo=$ac_try;; 11529esac 11530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11531$as_echo "$ac_try_echo") >&5 11532 (eval "$ac_compile") 2>conftest.er1 11533 ac_status=$? 11534 grep -v '^ *+' conftest.er1 >conftest.err 11535 rm -f conftest.er1 11536 cat conftest.err >&5 11537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11538 (exit $ac_status); } && { 11539 test -z "$ac_c_werror_flag" || 11540 test ! -s conftest.err 11541 } && test -s conftest.$ac_objext; then 11542 : 11543else 11544 $as_echo "$as_me: failed program was:" >&5 11545sed 's/^/| /' conftest.$ac_ext >&5 11546 11547 ac_cv_type_uint8_t=yes 11548fi 11549 11550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11551else 11552 $as_echo "$as_me: failed program was:" >&5 11553sed 's/^/| /' conftest.$ac_ext >&5 11554 11555 11556fi 11557 11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11559fi 11560{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11561$as_echo "$ac_cv_type_uint8_t" >&6; } 11562if test $ac_cv_type_uint8_t = yes; then 11563 11564cat >>confdefs.h <<_ACEOF 11565#define HAVE_UINT8_T 1 11566_ACEOF 11567 11568 11569fi 11570{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 11571$as_echo_n "checking for uint16_t... " >&6; } 11572if test "${ac_cv_type_uint16_t+set}" = set; then 11573 $as_echo_n "(cached) " >&6 11574else 11575 ac_cv_type_uint16_t=no 11576cat >conftest.$ac_ext <<_ACEOF 11577/* confdefs.h. */ 11578_ACEOF 11579cat confdefs.h >>conftest.$ac_ext 11580cat >>conftest.$ac_ext <<_ACEOF 11581/* end confdefs.h. */ 11582$ac_includes_default 11583int 11584main () 11585{ 11586if (sizeof (uint16_t)) 11587 return 0; 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592rm -f conftest.$ac_objext 11593if { (ac_try="$ac_compile" 11594case "(($ac_try" in 11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11596 *) ac_try_echo=$ac_try;; 11597esac 11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11599$as_echo "$ac_try_echo") >&5 11600 (eval "$ac_compile") 2>conftest.er1 11601 ac_status=$? 11602 grep -v '^ *+' conftest.er1 >conftest.err 11603 rm -f conftest.er1 11604 cat conftest.err >&5 11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11606 (exit $ac_status); } && { 11607 test -z "$ac_c_werror_flag" || 11608 test ! -s conftest.err 11609 } && test -s conftest.$ac_objext; then 11610 cat >conftest.$ac_ext <<_ACEOF 11611/* confdefs.h. */ 11612_ACEOF 11613cat confdefs.h >>conftest.$ac_ext 11614cat >>conftest.$ac_ext <<_ACEOF 11615/* end confdefs.h. */ 11616$ac_includes_default 11617int 11618main () 11619{ 11620if (sizeof ((uint16_t))) 11621 return 0; 11622 ; 11623 return 0; 11624} 11625_ACEOF 11626rm -f conftest.$ac_objext 11627if { (ac_try="$ac_compile" 11628case "(($ac_try" in 11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11630 *) ac_try_echo=$ac_try;; 11631esac 11632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11633$as_echo "$ac_try_echo") >&5 11634 (eval "$ac_compile") 2>conftest.er1 11635 ac_status=$? 11636 grep -v '^ *+' conftest.er1 >conftest.err 11637 rm -f conftest.er1 11638 cat conftest.err >&5 11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && { 11641 test -z "$ac_c_werror_flag" || 11642 test ! -s conftest.err 11643 } && test -s conftest.$ac_objext; then 11644 : 11645else 11646 $as_echo "$as_me: failed program was:" >&5 11647sed 's/^/| /' conftest.$ac_ext >&5 11648 11649 ac_cv_type_uint16_t=yes 11650fi 11651 11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11653else 11654 $as_echo "$as_me: failed program was:" >&5 11655sed 's/^/| /' conftest.$ac_ext >&5 11656 11657 11658fi 11659 11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11661fi 11662{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11663$as_echo "$ac_cv_type_uint16_t" >&6; } 11664if test $ac_cv_type_uint16_t = yes; then 11665 11666cat >>confdefs.h <<_ACEOF 11667#define HAVE_UINT16_T 1 11668_ACEOF 11669 11670 11671fi 11672{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 11673$as_echo_n "checking for uint32_t... " >&6; } 11674if test "${ac_cv_type_uint32_t+set}" = set; then 11675 $as_echo_n "(cached) " >&6 11676else 11677 ac_cv_type_uint32_t=no 11678cat >conftest.$ac_ext <<_ACEOF 11679/* confdefs.h. */ 11680_ACEOF 11681cat confdefs.h >>conftest.$ac_ext 11682cat >>conftest.$ac_ext <<_ACEOF 11683/* end confdefs.h. */ 11684$ac_includes_default 11685int 11686main () 11687{ 11688if (sizeof (uint32_t)) 11689 return 0; 11690 ; 11691 return 0; 11692} 11693_ACEOF 11694rm -f conftest.$ac_objext 11695if { (ac_try="$ac_compile" 11696case "(($ac_try" in 11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11698 *) ac_try_echo=$ac_try;; 11699esac 11700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11701$as_echo "$ac_try_echo") >&5 11702 (eval "$ac_compile") 2>conftest.er1 11703 ac_status=$? 11704 grep -v '^ *+' conftest.er1 >conftest.err 11705 rm -f conftest.er1 11706 cat conftest.err >&5 11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11708 (exit $ac_status); } && { 11709 test -z "$ac_c_werror_flag" || 11710 test ! -s conftest.err 11711 } && test -s conftest.$ac_objext; then 11712 cat >conftest.$ac_ext <<_ACEOF 11713/* confdefs.h. */ 11714_ACEOF 11715cat confdefs.h >>conftest.$ac_ext 11716cat >>conftest.$ac_ext <<_ACEOF 11717/* end confdefs.h. */ 11718$ac_includes_default 11719int 11720main () 11721{ 11722if (sizeof ((uint32_t))) 11723 return 0; 11724 ; 11725 return 0; 11726} 11727_ACEOF 11728rm -f conftest.$ac_objext 11729if { (ac_try="$ac_compile" 11730case "(($ac_try" in 11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11732 *) ac_try_echo=$ac_try;; 11733esac 11734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11735$as_echo "$ac_try_echo") >&5 11736 (eval "$ac_compile") 2>conftest.er1 11737 ac_status=$? 11738 grep -v '^ *+' conftest.er1 >conftest.err 11739 rm -f conftest.er1 11740 cat conftest.err >&5 11741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); } && { 11743 test -z "$ac_c_werror_flag" || 11744 test ! -s conftest.err 11745 } && test -s conftest.$ac_objext; then 11746 : 11747else 11748 $as_echo "$as_me: failed program was:" >&5 11749sed 's/^/| /' conftest.$ac_ext >&5 11750 11751 ac_cv_type_uint32_t=yes 11752fi 11753 11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755else 11756 $as_echo "$as_me: failed program was:" >&5 11757sed 's/^/| /' conftest.$ac_ext >&5 11758 11759 11760fi 11761 11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11763fi 11764{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11765$as_echo "$ac_cv_type_uint32_t" >&6; } 11766if test $ac_cv_type_uint32_t = yes; then 11767 11768cat >>confdefs.h <<_ACEOF 11769#define HAVE_UINT32_T 1 11770_ACEOF 11771 11772 11773fi 11774{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 11775$as_echo_n "checking for uint64_t... " >&6; } 11776if test "${ac_cv_type_uint64_t+set}" = set; then 11777 $as_echo_n "(cached) " >&6 11778else 11779 ac_cv_type_uint64_t=no 11780cat >conftest.$ac_ext <<_ACEOF 11781/* confdefs.h. */ 11782_ACEOF 11783cat confdefs.h >>conftest.$ac_ext 11784cat >>conftest.$ac_ext <<_ACEOF 11785/* end confdefs.h. */ 11786$ac_includes_default 11787int 11788main () 11789{ 11790if (sizeof (uint64_t)) 11791 return 0; 11792 ; 11793 return 0; 11794} 11795_ACEOF 11796rm -f conftest.$ac_objext 11797if { (ac_try="$ac_compile" 11798case "(($ac_try" in 11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11800 *) ac_try_echo=$ac_try;; 11801esac 11802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11803$as_echo "$ac_try_echo") >&5 11804 (eval "$ac_compile") 2>conftest.er1 11805 ac_status=$? 11806 grep -v '^ *+' conftest.er1 >conftest.err 11807 rm -f conftest.er1 11808 cat conftest.err >&5 11809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11810 (exit $ac_status); } && { 11811 test -z "$ac_c_werror_flag" || 11812 test ! -s conftest.err 11813 } && test -s conftest.$ac_objext; then 11814 cat >conftest.$ac_ext <<_ACEOF 11815/* confdefs.h. */ 11816_ACEOF 11817cat confdefs.h >>conftest.$ac_ext 11818cat >>conftest.$ac_ext <<_ACEOF 11819/* end confdefs.h. */ 11820$ac_includes_default 11821int 11822main () 11823{ 11824if (sizeof ((uint64_t))) 11825 return 0; 11826 ; 11827 return 0; 11828} 11829_ACEOF 11830rm -f conftest.$ac_objext 11831if { (ac_try="$ac_compile" 11832case "(($ac_try" in 11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11834 *) ac_try_echo=$ac_try;; 11835esac 11836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11837$as_echo "$ac_try_echo") >&5 11838 (eval "$ac_compile") 2>conftest.er1 11839 ac_status=$? 11840 grep -v '^ *+' conftest.er1 >conftest.err 11841 rm -f conftest.er1 11842 cat conftest.err >&5 11843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 (exit $ac_status); } && { 11845 test -z "$ac_c_werror_flag" || 11846 test ! -s conftest.err 11847 } && test -s conftest.$ac_objext; then 11848 : 11849else 11850 $as_echo "$as_me: failed program was:" >&5 11851sed 's/^/| /' conftest.$ac_ext >&5 11852 11853 ac_cv_type_uint64_t=yes 11854fi 11855 11856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11857else 11858 $as_echo "$as_me: failed program was:" >&5 11859sed 's/^/| /' conftest.$ac_ext >&5 11860 11861 11862fi 11863 11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11865fi 11866{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 11867$as_echo "$ac_cv_type_uint64_t" >&6; } 11868if test $ac_cv_type_uint64_t = yes; then 11869 11870cat >>confdefs.h <<_ACEOF 11871#define HAVE_UINT64_T 1 11872_ACEOF 11873 11874 11875fi 11876{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 11877$as_echo_n "checking for uintptr_t... " >&6; } 11878if test "${ac_cv_type_uintptr_t+set}" = set; then 11879 $as_echo_n "(cached) " >&6 11880else 11881 ac_cv_type_uintptr_t=no 11882cat >conftest.$ac_ext <<_ACEOF 11883/* confdefs.h. */ 11884_ACEOF 11885cat confdefs.h >>conftest.$ac_ext 11886cat >>conftest.$ac_ext <<_ACEOF 11887/* end confdefs.h. */ 11888$ac_includes_default 11889int 11890main () 11891{ 11892if (sizeof (uintptr_t)) 11893 return 0; 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898rm -f conftest.$ac_objext 11899if { (ac_try="$ac_compile" 11900case "(($ac_try" in 11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11902 *) ac_try_echo=$ac_try;; 11903esac 11904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11905$as_echo "$ac_try_echo") >&5 11906 (eval "$ac_compile") 2>conftest.er1 11907 ac_status=$? 11908 grep -v '^ *+' conftest.er1 >conftest.err 11909 rm -f conftest.er1 11910 cat conftest.err >&5 11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11912 (exit $ac_status); } && { 11913 test -z "$ac_c_werror_flag" || 11914 test ! -s conftest.err 11915 } && test -s conftest.$ac_objext; then 11916 cat >conftest.$ac_ext <<_ACEOF 11917/* confdefs.h. */ 11918_ACEOF 11919cat confdefs.h >>conftest.$ac_ext 11920cat >>conftest.$ac_ext <<_ACEOF 11921/* end confdefs.h. */ 11922$ac_includes_default 11923int 11924main () 11925{ 11926if (sizeof ((uintptr_t))) 11927 return 0; 11928 ; 11929 return 0; 11930} 11931_ACEOF 11932rm -f conftest.$ac_objext 11933if { (ac_try="$ac_compile" 11934case "(($ac_try" in 11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11936 *) ac_try_echo=$ac_try;; 11937esac 11938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11939$as_echo "$ac_try_echo") >&5 11940 (eval "$ac_compile") 2>conftest.er1 11941 ac_status=$? 11942 grep -v '^ *+' conftest.er1 >conftest.err 11943 rm -f conftest.er1 11944 cat conftest.err >&5 11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11946 (exit $ac_status); } && { 11947 test -z "$ac_c_werror_flag" || 11948 test ! -s conftest.err 11949 } && test -s conftest.$ac_objext; then 11950 : 11951else 11952 $as_echo "$as_me: failed program was:" >&5 11953sed 's/^/| /' conftest.$ac_ext >&5 11954 11955 ac_cv_type_uintptr_t=yes 11956fi 11957 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11959else 11960 $as_echo "$as_me: failed program was:" >&5 11961sed 's/^/| /' conftest.$ac_ext >&5 11962 11963 11964fi 11965 11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11967fi 11968{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 11969$as_echo "$ac_cv_type_uintptr_t" >&6; } 11970if test $ac_cv_type_uintptr_t = yes; then 11971 11972cat >>confdefs.h <<_ACEOF 11973#define HAVE_UINTPTR_T 1 11974_ACEOF 11975 11976 11977fi 11978 11979 11980######### 11981# Check for needed/wanted headers 11982 11983 11984 11985 11986 11987for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 11988do 11989as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11992$as_echo_n "checking for $ac_header... " >&6; } 11993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11994 $as_echo_n "(cached) " >&6 11995fi 11996ac_res=`eval 'as_val=${'$as_ac_Header'} 11997 $as_echo "$as_val"'` 11998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11999$as_echo "$ac_res" >&6; } 12000else 12001 # Is the header compilable? 12002{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12003$as_echo_n "checking $ac_header usability... " >&6; } 12004cat >conftest.$ac_ext <<_ACEOF 12005/* confdefs.h. */ 12006_ACEOF 12007cat confdefs.h >>conftest.$ac_ext 12008cat >>conftest.$ac_ext <<_ACEOF 12009/* end confdefs.h. */ 12010$ac_includes_default 12011#include <$ac_header> 12012_ACEOF 12013rm -f conftest.$ac_objext 12014if { (ac_try="$ac_compile" 12015case "(($ac_try" in 12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12017 *) ac_try_echo=$ac_try;; 12018esac 12019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12020$as_echo "$ac_try_echo") >&5 12021 (eval "$ac_compile") 2>conftest.er1 12022 ac_status=$? 12023 grep -v '^ *+' conftest.er1 >conftest.err 12024 rm -f conftest.er1 12025 cat conftest.err >&5 12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12027 (exit $ac_status); } && { 12028 test -z "$ac_c_werror_flag" || 12029 test ! -s conftest.err 12030 } && test -s conftest.$ac_objext; then 12031 ac_header_compiler=yes 12032else 12033 $as_echo "$as_me: failed program was:" >&5 12034sed 's/^/| /' conftest.$ac_ext >&5 12035 12036 ac_header_compiler=no 12037fi 12038 12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12040{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12041$as_echo "$ac_header_compiler" >&6; } 12042 12043# Is the header present? 12044{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12045$as_echo_n "checking $ac_header presence... " >&6; } 12046cat >conftest.$ac_ext <<_ACEOF 12047/* confdefs.h. */ 12048_ACEOF 12049cat confdefs.h >>conftest.$ac_ext 12050cat >>conftest.$ac_ext <<_ACEOF 12051/* end confdefs.h. */ 12052#include <$ac_header> 12053_ACEOF 12054if { (ac_try="$ac_cpp conftest.$ac_ext" 12055case "(($ac_try" in 12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12057 *) ac_try_echo=$ac_try;; 12058esac 12059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12060$as_echo "$ac_try_echo") >&5 12061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12062 ac_status=$? 12063 grep -v '^ *+' conftest.er1 >conftest.err 12064 rm -f conftest.er1 12065 cat conftest.err >&5 12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12067 (exit $ac_status); } >/dev/null && { 12068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12069 test ! -s conftest.err 12070 }; then 12071 ac_header_preproc=yes 12072else 12073 $as_echo "$as_me: failed program was:" >&5 12074sed 's/^/| /' conftest.$ac_ext >&5 12075 12076 ac_header_preproc=no 12077fi 12078 12079rm -f conftest.err conftest.$ac_ext 12080{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12081$as_echo "$ac_header_preproc" >&6; } 12082 12083# So? What about this header? 12084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12085 yes:no: ) 12086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12087$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12089$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12090 ac_header_preproc=yes 12091 ;; 12092 no:yes:* ) 12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12094$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12096$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12098$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12100$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12102$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12104$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12105 12106 ;; 12107esac 12108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12109$as_echo_n "checking for $ac_header... " >&6; } 12110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12111 $as_echo_n "(cached) " >&6 12112else 12113 eval "$as_ac_Header=\$ac_header_preproc" 12114fi 12115ac_res=`eval 'as_val=${'$as_ac_Header'} 12116 $as_echo "$as_val"'` 12117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12118$as_echo "$ac_res" >&6; } 12119 12120fi 12121if test `eval 'as_val=${'$as_ac_Header'} 12122 $as_echo "$as_val"'` = yes; then 12123 cat >>confdefs.h <<_ACEOF 12124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12125_ACEOF 12126 12127fi 12128 12129done 12130 12131 12132######### 12133# Figure out whether or not we have these functions 12134# 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime 12145do 12146as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12147{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12148$as_echo_n "checking for $ac_func... " >&6; } 12149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12150 $as_echo_n "(cached) " >&6 12151else 12152 cat >conftest.$ac_ext <<_ACEOF 12153/* confdefs.h. */ 12154_ACEOF 12155cat confdefs.h >>conftest.$ac_ext 12156cat >>conftest.$ac_ext <<_ACEOF 12157/* end confdefs.h. */ 12158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12159 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12160#define $ac_func innocuous_$ac_func 12161 12162/* System header to define __stub macros and hopefully few prototypes, 12163 which can conflict with char $ac_func (); below. 12164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12165 <limits.h> exists even on freestanding compilers. */ 12166 12167#ifdef __STDC__ 12168# include <limits.h> 12169#else 12170# include <assert.h> 12171#endif 12172 12173#undef $ac_func 12174 12175/* Override any GCC internal prototype to avoid an error. 12176 Use char because int might match the return type of a GCC 12177 builtin and then its argument prototype would still apply. */ 12178#ifdef __cplusplus 12179extern "C" 12180#endif 12181char $ac_func (); 12182/* The GNU C library defines this for functions which it implements 12183 to always fail with ENOSYS. Some functions are actually named 12184 something starting with __ and the normal name is an alias. */ 12185#if defined __stub_$ac_func || defined __stub___$ac_func 12186choke me 12187#endif 12188 12189int 12190main () 12191{ 12192return $ac_func (); 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197rm -f conftest.$ac_objext conftest$ac_exeext 12198if { (ac_try="$ac_link" 12199case "(($ac_try" in 12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12201 *) ac_try_echo=$ac_try;; 12202esac 12203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12204$as_echo "$ac_try_echo") >&5 12205 (eval "$ac_link") 2>conftest.er1 12206 ac_status=$? 12207 grep -v '^ *+' conftest.er1 >conftest.err 12208 rm -f conftest.er1 12209 cat conftest.err >&5 12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12211 (exit $ac_status); } && { 12212 test -z "$ac_c_werror_flag" || 12213 test ! -s conftest.err 12214 } && test -s conftest$ac_exeext && { 12215 test "$cross_compiling" = yes || 12216 $as_test_x conftest$ac_exeext 12217 }; then 12218 eval "$as_ac_var=yes" 12219else 12220 $as_echo "$as_me: failed program was:" >&5 12221sed 's/^/| /' conftest.$ac_ext >&5 12222 12223 eval "$as_ac_var=no" 12224fi 12225 12226rm -rf conftest.dSYM 12227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12228 conftest$ac_exeext conftest.$ac_ext 12229fi 12230ac_res=`eval 'as_val=${'$as_ac_var'} 12231 $as_echo "$as_val"'` 12232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12233$as_echo "$ac_res" >&6; } 12234if test `eval 'as_val=${'$as_ac_var'} 12235 $as_echo "$as_val"'` = yes; then 12236 cat >>confdefs.h <<_ACEOF 12237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12238_ACEOF 12239 12240fi 12241done 12242 12243 12244######### 12245# By default, we use the amalgamation (this may be changed below...) 12246# 12247USE_AMALGAMATION=1 12248 12249######### 12250# See whether we can run specific tclsh versions known to work well; 12251# if not, then we fall back to plain tclsh. 12252# TODO: try other versions before falling back? 12253# 12254for ac_prog in tclsh8.6 tclsh8.5 tclsh 12255do 12256 # Extract the first word of "$ac_prog", so it can be a program name with args. 12257set dummy $ac_prog; ac_word=$2 12258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12259$as_echo_n "checking for $ac_word... " >&6; } 12260if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then 12261 $as_echo_n "(cached) " >&6 12262else 12263 if test -n "$TCLSH_CMD"; then 12264 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 12265else 12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12267for as_dir in $PATH 12268do 12269 IFS=$as_save_IFS 12270 test -z "$as_dir" && as_dir=. 12271 for ac_exec_ext in '' $ac_executable_extensions; do 12272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12273 ac_cv_prog_TCLSH_CMD="$ac_prog" 12274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12275 break 2 12276 fi 12277done 12278done 12279IFS=$as_save_IFS 12280 12281fi 12282fi 12283TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 12284if test -n "$TCLSH_CMD"; then 12285 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 12286$as_echo "$TCLSH_CMD" >&6; } 12287else 12288 { $as_echo "$as_me:$LINENO: result: no" >&5 12289$as_echo "no" >&6; } 12290fi 12291 12292 12293 test -n "$TCLSH_CMD" && break 12294done 12295test -n "$TCLSH_CMD" || TCLSH_CMD="none" 12296 12297if test "$TCLSH_CMD" = "none"; then 12298 # If we can't find a local tclsh, then building the amalgamation will fail. 12299 # We act as though --disable-amalgamation has been used. 12300 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 12301 USE_AMALGAMATION=0 12302 TCLSH_CMD="tclsh" 12303fi 12304 12305 12306 12307if test "x${TCLLIBDIR+set}" != "xset" ; then 12308 TCLLIBDIR='$(libdir)' 12309 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 12310 TCLLIBDIR=$i 12311 break 12312 done 12313 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 12314fi 12315 12316 12317######### 12318# Set up an appropriate program prefix 12319# 12320if test "$program_prefix" = "NONE"; then 12321 program_prefix="" 12322fi 12323 12324 12325VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 12326{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5 12327$as_echo "$as_me: Version set to $VERSION" >&6;} 12328 12329RELEASE=`cat $srcdir/VERSION` 12330{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5 12331$as_echo "$as_me: Release set to $RELEASE" >&6;} 12332 12333VERSION_NUMBER=`cat $srcdir/VERSION \ 12334 | sed 's/[^0-9]/ /g' \ 12335 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 12336{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5 12337$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} 12338 12339 12340######### 12341# Locate a compiler for the build machine. This compiler should 12342# generate command-line programs that run on the build machine. 12343# 12344if test x"$cross_compiling" = xno; then 12345 BUILD_CC=$CC 12346 BUILD_CFLAGS=$CFLAGS 12347else 12348 if test "${BUILD_CC+set}" != set; then 12349 for ac_prog in gcc cc cl 12350do 12351 # Extract the first word of "$ac_prog", so it can be a program name with args. 12352set dummy $ac_prog; ac_word=$2 12353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12354$as_echo_n "checking for $ac_word... " >&6; } 12355if test "${ac_cv_prog_BUILD_CC+set}" = set; then 12356 $as_echo_n "(cached) " >&6 12357else 12358 if test -n "$BUILD_CC"; then 12359 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 12360else 12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12362for as_dir in $PATH 12363do 12364 IFS=$as_save_IFS 12365 test -z "$as_dir" && as_dir=. 12366 for ac_exec_ext in '' $ac_executable_extensions; do 12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12368 ac_cv_prog_BUILD_CC="$ac_prog" 12369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12370 break 2 12371 fi 12372done 12373done 12374IFS=$as_save_IFS 12375 12376fi 12377fi 12378BUILD_CC=$ac_cv_prog_BUILD_CC 12379if test -n "$BUILD_CC"; then 12380 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 12381$as_echo "$BUILD_CC" >&6; } 12382else 12383 { $as_echo "$as_me:$LINENO: result: no" >&5 12384$as_echo "no" >&6; } 12385fi 12386 12387 12388 test -n "$BUILD_CC" && break 12389done 12390 12391 fi 12392 if test "${BUILD_CFLAGS+set}" != set; then 12393 BUILD_CFLAGS="-g" 12394 fi 12395fi 12396 12397 12398########## 12399# Do we want to support multithreaded use of sqlite 12400# 12401# Check whether --enable-threadsafe was given. 12402if test "${enable_threadsafe+set}" = set; then 12403 enableval=$enable_threadsafe; 12404else 12405 enable_threadsafe=yes 12406fi 12407 12408{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 12409$as_echo_n "checking whether to support threadsafe operation... " >&6; } 12410if test "$enable_threadsafe" = "no"; then 12411 SQLITE_THREADSAFE=0 12412 { $as_echo "$as_me:$LINENO: result: no" >&5 12413$as_echo "no" >&6; } 12414else 12415 SQLITE_THREADSAFE=1 12416 { $as_echo "$as_me:$LINENO: result: yes" >&5 12417$as_echo "yes" >&6; } 12418fi 12419 12420 12421if test "$SQLITE_THREADSAFE" = "1"; then 12422 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 12423$as_echo_n "checking for library containing pthread_create... " >&6; } 12424if test "${ac_cv_search_pthread_create+set}" = set; then 12425 $as_echo_n "(cached) " >&6 12426else 12427 ac_func_search_save_LIBS=$LIBS 12428cat >conftest.$ac_ext <<_ACEOF 12429/* confdefs.h. */ 12430_ACEOF 12431cat confdefs.h >>conftest.$ac_ext 12432cat >>conftest.$ac_ext <<_ACEOF 12433/* end confdefs.h. */ 12434 12435/* Override any GCC internal prototype to avoid an error. 12436 Use char because int might match the return type of a GCC 12437 builtin and then its argument prototype would still apply. */ 12438#ifdef __cplusplus 12439extern "C" 12440#endif 12441char pthread_create (); 12442int 12443main () 12444{ 12445return pthread_create (); 12446 ; 12447 return 0; 12448} 12449_ACEOF 12450for ac_lib in '' pthread; do 12451 if test -z "$ac_lib"; then 12452 ac_res="none required" 12453 else 12454 ac_res=-l$ac_lib 12455 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12456 fi 12457 rm -f conftest.$ac_objext conftest$ac_exeext 12458if { (ac_try="$ac_link" 12459case "(($ac_try" in 12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12461 *) ac_try_echo=$ac_try;; 12462esac 12463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12464$as_echo "$ac_try_echo") >&5 12465 (eval "$ac_link") 2>conftest.er1 12466 ac_status=$? 12467 grep -v '^ *+' conftest.er1 >conftest.err 12468 rm -f conftest.er1 12469 cat conftest.err >&5 12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12471 (exit $ac_status); } && { 12472 test -z "$ac_c_werror_flag" || 12473 test ! -s conftest.err 12474 } && test -s conftest$ac_exeext && { 12475 test "$cross_compiling" = yes || 12476 $as_test_x conftest$ac_exeext 12477 }; then 12478 ac_cv_search_pthread_create=$ac_res 12479else 12480 $as_echo "$as_me: failed program was:" >&5 12481sed 's/^/| /' conftest.$ac_ext >&5 12482 12483 12484fi 12485 12486rm -rf conftest.dSYM 12487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12488 conftest$ac_exeext 12489 if test "${ac_cv_search_pthread_create+set}" = set; then 12490 break 12491fi 12492done 12493if test "${ac_cv_search_pthread_create+set}" = set; then 12494 : 12495else 12496 ac_cv_search_pthread_create=no 12497fi 12498rm conftest.$ac_ext 12499LIBS=$ac_func_search_save_LIBS 12500fi 12501{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 12502$as_echo "$ac_cv_search_pthread_create" >&6; } 12503ac_res=$ac_cv_search_pthread_create 12504if test "$ac_res" != no; then 12505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12506 12507fi 12508 12509fi 12510 12511########## 12512# Do we want to support release 12513# 12514# Check whether --enable-releasemode was given. 12515if test "${enable_releasemode+set}" = set; then 12516 enableval=$enable_releasemode; 12517else 12518 enable_releasemode=no 12519fi 12520 12521{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 12522$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 12523if test "$enable_releasemode" = "no"; then 12524 ALLOWRELEASE="" 12525 { $as_echo "$as_me:$LINENO: result: no" >&5 12526$as_echo "no" >&6; } 12527else 12528 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 12529 { $as_echo "$as_me:$LINENO: result: yes" >&5 12530$as_echo "yes" >&6; } 12531fi 12532 12533 12534########## 12535# Do we want temporary databases in memory 12536# 12537# Check whether --enable-tempstore was given. 12538if test "${enable_tempstore+set}" = set; then 12539 enableval=$enable_tempstore; 12540else 12541 enable_tempstore=no 12542fi 12543 12544{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 12545$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 12546case "$enable_tempstore" in 12547 never ) 12548 TEMP_STORE=0 12549 { $as_echo "$as_me:$LINENO: result: never" >&5 12550$as_echo "never" >&6; } 12551 ;; 12552 no ) 12553 TEMP_STORE=1 12554 { $as_echo "$as_me:$LINENO: result: no" >&5 12555$as_echo "no" >&6; } 12556 ;; 12557 yes ) 12558 TEMP_STORE=2 12559 { $as_echo "$as_me:$LINENO: result: yes" >&5 12560$as_echo "yes" >&6; } 12561 ;; 12562 always ) 12563 TEMP_STORE=3 12564 { $as_echo "$as_me:$LINENO: result: always" >&5 12565$as_echo "always" >&6; } 12566 ;; 12567 * ) 12568 TEMP_STORE=1 12569 { $as_echo "$as_me:$LINENO: result: no" >&5 12570$as_echo "no" >&6; } 12571 ;; 12572esac 12573 12574 12575 12576########### 12577# Lots of things are different if we are compiling for Windows using 12578# the CYGWIN environment. So check for that special case and handle 12579# things accordingly. 12580# 12581{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 12582$as_echo_n "checking if executables have the .exe suffix... " >&6; } 12583if test "$config_BUILD_EXEEXT" = ".exe"; then 12584 CYGWIN=yes 12585 { $as_echo "$as_me:$LINENO: result: yes" >&5 12586$as_echo "yes" >&6; } 12587else 12588 { $as_echo "$as_me:$LINENO: result: unknown" >&5 12589$as_echo "unknown" >&6; } 12590fi 12591if test "$CYGWIN" != "yes"; then 12592 { $as_echo "$as_me:$LINENO: checking host system type" >&5 12593$as_echo_n "checking host system type... " >&6; } 12594if test "${ac_cv_host+set}" = set; then 12595 $as_echo_n "(cached) " >&6 12596else 12597 if test "x$host_alias" = x; then 12598 ac_cv_host=$ac_cv_build 12599else 12600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 12601 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 12602$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 12603 { (exit 1); exit 1; }; } 12604fi 12605 12606fi 12607{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 12608$as_echo "$ac_cv_host" >&6; } 12609case $ac_cv_host in 12610*-*-*) ;; 12611*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 12612$as_echo "$as_me: error: invalid value of canonical host" >&2;} 12613 { (exit 1); exit 1; }; };; 12614esac 12615host=$ac_cv_host 12616ac_save_IFS=$IFS; IFS='-' 12617set x $ac_cv_host 12618shift 12619host_cpu=$1 12620host_vendor=$2 12621shift; shift 12622# Remember, the first character of IFS is used to create $*, 12623# except with old shells: 12624host_os=$* 12625IFS=$ac_save_IFS 12626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 12627 12628 12629case $host_os in 12630 *cygwin* ) CYGWIN=yes;; 12631 * ) CYGWIN=no;; 12632esac 12633 12634fi 12635if test "$CYGWIN" = "yes"; then 12636 BUILD_EXEEXT=.exe 12637else 12638 BUILD_EXEEXT=$EXEEXT 12639fi 12640if test x"$cross_compiling" = xno; then 12641 TARGET_EXEEXT=$BUILD_EXEEXT 12642else 12643 TARGET_EXEEXT=$config_TARGET_EXEEXT 12644fi 12645if test "$TARGET_EXEEXT" = ".exe"; then 12646 SQLITE_OS_UNIX=0 12647 SQLITE_OS_WIN=1 12648 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 12649else 12650 SQLITE_OS_UNIX=1 12651 SQLITE_OS_WIN=0 12652 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 12653fi 12654 12655 12656 12657 12658 12659 12660########## 12661# Figure out all the parameters needed to compile against Tcl. 12662# 12663# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 12664# macros in the in the tcl.m4 file of the standard TCL distribution. 12665# Those macros could not be used directly since we have to make some 12666# minor changes to accomodate systems that do not have TCL installed. 12667# 12668# Check whether --enable-tcl was given. 12669if test "${enable_tcl+set}" = set; then 12670 enableval=$enable_tcl; use_tcl=$enableval 12671else 12672 use_tcl=yes 12673fi 12674 12675if test "${use_tcl}" = "yes" ; then 12676 12677# Check whether --with-tcl was given. 12678if test "${with_tcl+set}" = set; then 12679 withval=$with_tcl; with_tclconfig=${withval} 12680fi 12681 12682 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 12683$as_echo_n "checking for Tcl configuration... " >&6; } 12684 if test "${ac_cv_c_tclconfig+set}" = set; then 12685 $as_echo_n "(cached) " >&6 12686else 12687 12688 # First check to see if --with-tcl was specified. 12689 if test x"${with_tclconfig}" != x ; then 12690 if test -f "${with_tclconfig}/tclConfig.sh" ; then 12691 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 12692 else 12693 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 12694$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 12695 { (exit 1); exit 1; }; } 12696 fi 12697 fi 12698 12699 # Start autosearch by asking tclsh 12700 if test x"${ac_cv_c_tclconfig}" = x ; then 12701 if test x"$cross_compiling" = xno; then 12702 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 12703 do 12704 if test -f "$i/tclConfig.sh" ; then 12705 ac_cv_c_tclconfig="$i" 12706 break 12707 fi 12708 done 12709 fi 12710 fi 12711 12712 # then check for a private Tcl installation 12713 if test x"${ac_cv_c_tclconfig}" = x ; then 12714 for i in \ 12715 ../tcl \ 12716 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12717 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 12718 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 12719 ../../tcl \ 12720 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12721 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 12722 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 12723 ../../../tcl \ 12724 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12725 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 12726 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 12727 do 12728 if test -f "$i/unix/tclConfig.sh" ; then 12729 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12730 break 12731 fi 12732 done 12733 fi 12734 12735 # check in a few common install locations 12736 if test x"${ac_cv_c_tclconfig}" = x ; then 12737 for i in \ 12738 `ls -d ${libdir} 2>/dev/null` \ 12739 `ls -d /usr/local/lib 2>/dev/null` \ 12740 `ls -d /usr/contrib/lib 2>/dev/null` \ 12741 `ls -d /usr/lib 2>/dev/null` 12742 do 12743 if test -f "$i/tclConfig.sh" ; then 12744 ac_cv_c_tclconfig=`(cd $i; pwd)` 12745 break 12746 fi 12747 done 12748 fi 12749 12750 # check in a few other private locations 12751 if test x"${ac_cv_c_tclconfig}" = x ; then 12752 for i in \ 12753 ${srcdir}/../tcl \ 12754 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12755 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 12756 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 12757 do 12758 if test -f "$i/unix/tclConfig.sh" ; then 12759 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12760 break 12761 fi 12762 done 12763 fi 12764 12765fi 12766 12767 12768 if test x"${ac_cv_c_tclconfig}" = x ; then 12769 use_tcl=no 12770 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 12771$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 12772 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 12773$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 12774 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 12775$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 12776 else 12777 TCL_BIN_DIR=${ac_cv_c_tclconfig} 12778 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 12779$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 12780 12781 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 12782$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 12783 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 12784 { $as_echo "$as_me:$LINENO: result: loading" >&5 12785$as_echo "loading" >&6; } 12786 . $TCL_BIN_DIR/tclConfig.sh 12787 else 12788 { $as_echo "$as_me:$LINENO: result: file not found" >&5 12789$as_echo "file not found" >&6; } 12790 fi 12791 12792 # 12793 # If the TCL_BIN_DIR is the build directory (not the install directory), 12794 # then set the common variable name to the value of the build variables. 12795 # For example, the variable TCL_LIB_SPEC will be set to the value 12796 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 12797 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 12798 # installed and uninstalled version of Tcl. 12799 # 12800 12801 if test -f $TCL_BIN_DIR/Makefile ; then 12802 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 12803 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 12804 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 12805 fi 12806 12807 # 12808 # eval is required to do the TCL_DBGX substitution 12809 # 12810 12811 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 12812 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 12813 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 12814 12815 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 12816 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 12817 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 fi 12833fi 12834if test "${use_tcl}" = "no" ; then 12835 HAVE_TCL="" 12836else 12837 HAVE_TCL=1 12838fi 12839 12840 12841########## 12842# Figure out what C libraries are required to compile programs 12843# that use "readline()" library. 12844# 12845TARGET_READLINE_LIBS="" 12846TARGET_READLINE_INC="" 12847TARGET_HAVE_READLINE=0 12848# Check whether --enable-readline was given. 12849if test "${enable_readline+set}" = set; then 12850 enableval=$enable_readline; with_readline=$enableval 12851else 12852 with_readline=auto 12853fi 12854 12855 12856if test x"$with_readline" != xno; then 12857 found="yes" 12858 12859 12860# Check whether --with-readline-lib was given. 12861if test "${with_readline_lib+set}" = set; then 12862 withval=$with_readline_lib; with_readline_lib=$withval 12863else 12864 with_readline_lib="auto" 12865fi 12866 12867 if test "x$with_readline_lib" = xauto; then 12868 save_LIBS="$LIBS" 12869 LIBS="" 12870 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 12871$as_echo_n "checking for library containing tgetent... " >&6; } 12872if test "${ac_cv_search_tgetent+set}" = set; then 12873 $as_echo_n "(cached) " >&6 12874else 12875 ac_func_search_save_LIBS=$LIBS 12876cat >conftest.$ac_ext <<_ACEOF 12877/* confdefs.h. */ 12878_ACEOF 12879cat confdefs.h >>conftest.$ac_ext 12880cat >>conftest.$ac_ext <<_ACEOF 12881/* end confdefs.h. */ 12882 12883/* Override any GCC internal prototype to avoid an error. 12884 Use char because int might match the return type of a GCC 12885 builtin and then its argument prototype would still apply. */ 12886#ifdef __cplusplus 12887extern "C" 12888#endif 12889char tgetent (); 12890int 12891main () 12892{ 12893return tgetent (); 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898for ac_lib in '' readline ncurses curses termcap; do 12899 if test -z "$ac_lib"; then 12900 ac_res="none required" 12901 else 12902 ac_res=-l$ac_lib 12903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12904 fi 12905 rm -f conftest.$ac_objext conftest$ac_exeext 12906if { (ac_try="$ac_link" 12907case "(($ac_try" in 12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12909 *) ac_try_echo=$ac_try;; 12910esac 12911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12912$as_echo "$ac_try_echo") >&5 12913 (eval "$ac_link") 2>conftest.er1 12914 ac_status=$? 12915 grep -v '^ *+' conftest.er1 >conftest.err 12916 rm -f conftest.er1 12917 cat conftest.err >&5 12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12919 (exit $ac_status); } && { 12920 test -z "$ac_c_werror_flag" || 12921 test ! -s conftest.err 12922 } && test -s conftest$ac_exeext && { 12923 test "$cross_compiling" = yes || 12924 $as_test_x conftest$ac_exeext 12925 }; then 12926 ac_cv_search_tgetent=$ac_res 12927else 12928 $as_echo "$as_me: failed program was:" >&5 12929sed 's/^/| /' conftest.$ac_ext >&5 12930 12931 12932fi 12933 12934rm -rf conftest.dSYM 12935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12936 conftest$ac_exeext 12937 if test "${ac_cv_search_tgetent+set}" = set; then 12938 break 12939fi 12940done 12941if test "${ac_cv_search_tgetent+set}" = set; then 12942 : 12943else 12944 ac_cv_search_tgetent=no 12945fi 12946rm conftest.$ac_ext 12947LIBS=$ac_func_search_save_LIBS 12948fi 12949{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 12950$as_echo "$ac_cv_search_tgetent" >&6; } 12951ac_res=$ac_cv_search_tgetent 12952if test "$ac_res" != no; then 12953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12954 term_LIBS="$LIBS" 12955else 12956 term_LIBS="" 12957fi 12958 12959 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 12960$as_echo_n "checking for readline in -lreadline... " >&6; } 12961if test "${ac_cv_lib_readline_readline+set}" = set; then 12962 $as_echo_n "(cached) " >&6 12963else 12964 ac_check_lib_save_LIBS=$LIBS 12965LIBS="-lreadline $LIBS" 12966cat >conftest.$ac_ext <<_ACEOF 12967/* confdefs.h. */ 12968_ACEOF 12969cat confdefs.h >>conftest.$ac_ext 12970cat >>conftest.$ac_ext <<_ACEOF 12971/* end confdefs.h. */ 12972 12973/* Override any GCC internal prototype to avoid an error. 12974 Use char because int might match the return type of a GCC 12975 builtin and then its argument prototype would still apply. */ 12976#ifdef __cplusplus 12977extern "C" 12978#endif 12979char readline (); 12980int 12981main () 12982{ 12983return readline (); 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988rm -f conftest.$ac_objext conftest$ac_exeext 12989if { (ac_try="$ac_link" 12990case "(($ac_try" in 12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12992 *) ac_try_echo=$ac_try;; 12993esac 12994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12995$as_echo "$ac_try_echo") >&5 12996 (eval "$ac_link") 2>conftest.er1 12997 ac_status=$? 12998 grep -v '^ *+' conftest.er1 >conftest.err 12999 rm -f conftest.er1 13000 cat conftest.err >&5 13001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13002 (exit $ac_status); } && { 13003 test -z "$ac_c_werror_flag" || 13004 test ! -s conftest.err 13005 } && test -s conftest$ac_exeext && { 13006 test "$cross_compiling" = yes || 13007 $as_test_x conftest$ac_exeext 13008 }; then 13009 ac_cv_lib_readline_readline=yes 13010else 13011 $as_echo "$as_me: failed program was:" >&5 13012sed 's/^/| /' conftest.$ac_ext >&5 13013 13014 ac_cv_lib_readline_readline=no 13015fi 13016 13017rm -rf conftest.dSYM 13018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13019 conftest$ac_exeext conftest.$ac_ext 13020LIBS=$ac_check_lib_save_LIBS 13021fi 13022{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 13023$as_echo "$ac_cv_lib_readline_readline" >&6; } 13024if test $ac_cv_lib_readline_readline = yes; then 13025 TARGET_READLINE_LIBS="-lreadline" 13026else 13027 found="no" 13028fi 13029 13030 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 13031 LIBS="$save_LIBS" 13032 else 13033 TARGET_READLINE_LIBS="$with_readline_lib" 13034 fi 13035 13036 13037# Check whether --with-readline-inc was given. 13038if test "${with_readline_inc+set}" = set; then 13039 withval=$with_readline_inc; with_readline_inc=$withval 13040else 13041 with_readline_inc="auto" 13042fi 13043 13044 if test "x$with_readline_inc" = xauto; then 13045 if test "${ac_cv_header_readline_h+set}" = set; then 13046 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13047$as_echo_n "checking for readline.h... " >&6; } 13048if test "${ac_cv_header_readline_h+set}" = set; then 13049 $as_echo_n "(cached) " >&6 13050fi 13051{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13052$as_echo "$ac_cv_header_readline_h" >&6; } 13053else 13054 # Is the header compilable? 13055{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5 13056$as_echo_n "checking readline.h usability... " >&6; } 13057cat >conftest.$ac_ext <<_ACEOF 13058/* confdefs.h. */ 13059_ACEOF 13060cat confdefs.h >>conftest.$ac_ext 13061cat >>conftest.$ac_ext <<_ACEOF 13062/* end confdefs.h. */ 13063$ac_includes_default 13064#include <readline.h> 13065_ACEOF 13066rm -f conftest.$ac_objext 13067if { (ac_try="$ac_compile" 13068case "(($ac_try" in 13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13070 *) ac_try_echo=$ac_try;; 13071esac 13072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13073$as_echo "$ac_try_echo") >&5 13074 (eval "$ac_compile") 2>conftest.er1 13075 ac_status=$? 13076 grep -v '^ *+' conftest.er1 >conftest.err 13077 rm -f conftest.er1 13078 cat conftest.err >&5 13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13080 (exit $ac_status); } && { 13081 test -z "$ac_c_werror_flag" || 13082 test ! -s conftest.err 13083 } && test -s conftest.$ac_objext; then 13084 ac_header_compiler=yes 13085else 13086 $as_echo "$as_me: failed program was:" >&5 13087sed 's/^/| /' conftest.$ac_ext >&5 13088 13089 ac_header_compiler=no 13090fi 13091 13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13093{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13094$as_echo "$ac_header_compiler" >&6; } 13095 13096# Is the header present? 13097{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5 13098$as_echo_n "checking readline.h presence... " >&6; } 13099cat >conftest.$ac_ext <<_ACEOF 13100/* confdefs.h. */ 13101_ACEOF 13102cat confdefs.h >>conftest.$ac_ext 13103cat >>conftest.$ac_ext <<_ACEOF 13104/* end confdefs.h. */ 13105#include <readline.h> 13106_ACEOF 13107if { (ac_try="$ac_cpp conftest.$ac_ext" 13108case "(($ac_try" in 13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13110 *) ac_try_echo=$ac_try;; 13111esac 13112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13113$as_echo "$ac_try_echo") >&5 13114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13115 ac_status=$? 13116 grep -v '^ *+' conftest.er1 >conftest.err 13117 rm -f conftest.er1 13118 cat conftest.err >&5 13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13120 (exit $ac_status); } >/dev/null && { 13121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13122 test ! -s conftest.err 13123 }; then 13124 ac_header_preproc=yes 13125else 13126 $as_echo "$as_me: failed program was:" >&5 13127sed 's/^/| /' conftest.$ac_ext >&5 13128 13129 ac_header_preproc=no 13130fi 13131 13132rm -f conftest.err conftest.$ac_ext 13133{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13134$as_echo "$ac_header_preproc" >&6; } 13135 13136# So? What about this header? 13137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13138 yes:no: ) 13139 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 13140$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13141 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 13142$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 13143 ac_header_preproc=yes 13144 ;; 13145 no:yes:* ) 13146 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 13147$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 13148 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 13149$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 13150 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 13151$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 13152 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 13153$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 13154 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 13155$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 13156 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 13157$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 13158 13159 ;; 13160esac 13161{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13162$as_echo_n "checking for readline.h... " >&6; } 13163if test "${ac_cv_header_readline_h+set}" = set; then 13164 $as_echo_n "(cached) " >&6 13165else 13166 ac_cv_header_readline_h=$ac_header_preproc 13167fi 13168{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13169$as_echo "$ac_cv_header_readline_h" >&6; } 13170 13171fi 13172if test $ac_cv_header_readline_h = yes; then 13173 found="yes" 13174else 13175 13176 found="no" 13177 if test "$cross_compiling" != yes; then 13178 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 13179 for subdir in include include/readline; do 13180 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 13181{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 13182$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 13183if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13184 $as_echo_n "(cached) " >&6 13185else 13186 test "$cross_compiling" = yes && 13187 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13188$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13189 { (exit 1); exit 1; }; } 13190if test -r "$dir/$subdir/readline.h"; then 13191 eval "$as_ac_File=yes" 13192else 13193 eval "$as_ac_File=no" 13194fi 13195fi 13196ac_res=`eval 'as_val=${'$as_ac_File'} 13197 $as_echo "$as_val"'` 13198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13199$as_echo "$ac_res" >&6; } 13200if test `eval 'as_val=${'$as_ac_File'} 13201 $as_echo "$as_val"'` = yes; then 13202 found=yes 13203fi 13204 13205 if test "$found" = "yes"; then 13206 TARGET_READLINE_INC="-I$dir/$subdir" 13207 break 13208 fi 13209 done 13210 test "$found" = "yes" && break 13211 done 13212 fi 13213 13214fi 13215 13216 13217 else 13218 TARGET_READLINE_INC="$with_readline_inc" 13219 fi 13220 13221 if test x"$found" = xno; then 13222 TARGET_READLINE_LIBS="" 13223 TARGET_READLINE_INC="" 13224 TARGET_HAVE_READLINE=0 13225 else 13226 TARGET_HAVE_READLINE=1 13227 fi 13228fi 13229 13230 13231 13232 13233 13234########## 13235# Figure out what C libraries are required to compile programs 13236# that use "fdatasync()" function. 13237# 13238{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 13239$as_echo_n "checking for library containing fdatasync... " >&6; } 13240if test "${ac_cv_search_fdatasync+set}" = set; then 13241 $as_echo_n "(cached) " >&6 13242else 13243 ac_func_search_save_LIBS=$LIBS 13244cat >conftest.$ac_ext <<_ACEOF 13245/* confdefs.h. */ 13246_ACEOF 13247cat confdefs.h >>conftest.$ac_ext 13248cat >>conftest.$ac_ext <<_ACEOF 13249/* end confdefs.h. */ 13250 13251/* Override any GCC internal prototype to avoid an error. 13252 Use char because int might match the return type of a GCC 13253 builtin and then its argument prototype would still apply. */ 13254#ifdef __cplusplus 13255extern "C" 13256#endif 13257char fdatasync (); 13258int 13259main () 13260{ 13261return fdatasync (); 13262 ; 13263 return 0; 13264} 13265_ACEOF 13266for ac_lib in '' rt; do 13267 if test -z "$ac_lib"; then 13268 ac_res="none required" 13269 else 13270 ac_res=-l$ac_lib 13271 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13272 fi 13273 rm -f conftest.$ac_objext conftest$ac_exeext 13274if { (ac_try="$ac_link" 13275case "(($ac_try" in 13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13277 *) ac_try_echo=$ac_try;; 13278esac 13279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13280$as_echo "$ac_try_echo") >&5 13281 (eval "$ac_link") 2>conftest.er1 13282 ac_status=$? 13283 grep -v '^ *+' conftest.er1 >conftest.err 13284 rm -f conftest.er1 13285 cat conftest.err >&5 13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13287 (exit $ac_status); } && { 13288 test -z "$ac_c_werror_flag" || 13289 test ! -s conftest.err 13290 } && test -s conftest$ac_exeext && { 13291 test "$cross_compiling" = yes || 13292 $as_test_x conftest$ac_exeext 13293 }; then 13294 ac_cv_search_fdatasync=$ac_res 13295else 13296 $as_echo "$as_me: failed program was:" >&5 13297sed 's/^/| /' conftest.$ac_ext >&5 13298 13299 13300fi 13301 13302rm -rf conftest.dSYM 13303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13304 conftest$ac_exeext 13305 if test "${ac_cv_search_fdatasync+set}" = set; then 13306 break 13307fi 13308done 13309if test "${ac_cv_search_fdatasync+set}" = set; then 13310 : 13311else 13312 ac_cv_search_fdatasync=no 13313fi 13314rm conftest.$ac_ext 13315LIBS=$ac_func_search_save_LIBS 13316fi 13317{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 13318$as_echo "$ac_cv_search_fdatasync" >&6; } 13319ac_res=$ac_cv_search_fdatasync 13320if test "$ac_res" != no; then 13321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13322 13323fi 13324 13325 13326######### 13327# check for debug enabled 13328# Check whether --enable-debug was given. 13329if test "${enable_debug+set}" = set; then 13330 enableval=$enable_debug; use_debug=$enableval 13331else 13332 use_debug=no 13333fi 13334 13335if test "${use_debug}" = "yes" ; then 13336 TARGET_DEBUG="-DSQLITE_DEBUG=1" 13337else 13338 TARGET_DEBUG="-DNDEBUG" 13339fi 13340 13341 13342######### 13343# See whether we should use the amalgamation to build 13344# Check whether --enable-amalgamation was given. 13345if test "${enable_amalgamation+set}" = set; then 13346 enableval=$enable_amalgamation; use_amalgamation=$enableval 13347else 13348 use_amalgamation=yes 13349fi 13350 13351if test "${use_amalgamation}" != "yes" ; then 13352 USE_AMALGAMATION=0 13353fi 13354 13355 13356######### 13357# See whether we should allow loadable extensions 13358# Check whether --enable-load-extension was given. 13359if test "${enable_load_extension+set}" = set; then 13360 enableval=$enable_load_extension; use_loadextension=$enableval 13361else 13362 use_loadextension=yes 13363fi 13364 13365if test "${use_loadextension}" = "yes" ; then 13366 OPT_FEATURE_FLAGS="" 13367 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13368$as_echo_n "checking for library containing dlopen... " >&6; } 13369if test "${ac_cv_search_dlopen+set}" = set; then 13370 $as_echo_n "(cached) " >&6 13371else 13372 ac_func_search_save_LIBS=$LIBS 13373cat >conftest.$ac_ext <<_ACEOF 13374/* confdefs.h. */ 13375_ACEOF 13376cat confdefs.h >>conftest.$ac_ext 13377cat >>conftest.$ac_ext <<_ACEOF 13378/* end confdefs.h. */ 13379 13380/* Override any GCC internal prototype to avoid an error. 13381 Use char because int might match the return type of a GCC 13382 builtin and then its argument prototype would still apply. */ 13383#ifdef __cplusplus 13384extern "C" 13385#endif 13386char dlopen (); 13387int 13388main () 13389{ 13390return dlopen (); 13391 ; 13392 return 0; 13393} 13394_ACEOF 13395for ac_lib in '' dl; do 13396 if test -z "$ac_lib"; then 13397 ac_res="none required" 13398 else 13399 ac_res=-l$ac_lib 13400 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13401 fi 13402 rm -f conftest.$ac_objext conftest$ac_exeext 13403if { (ac_try="$ac_link" 13404case "(($ac_try" in 13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13406 *) ac_try_echo=$ac_try;; 13407esac 13408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13409$as_echo "$ac_try_echo") >&5 13410 (eval "$ac_link") 2>conftest.er1 13411 ac_status=$? 13412 grep -v '^ *+' conftest.er1 >conftest.err 13413 rm -f conftest.er1 13414 cat conftest.err >&5 13415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13416 (exit $ac_status); } && { 13417 test -z "$ac_c_werror_flag" || 13418 test ! -s conftest.err 13419 } && test -s conftest$ac_exeext && { 13420 test "$cross_compiling" = yes || 13421 $as_test_x conftest$ac_exeext 13422 }; then 13423 ac_cv_search_dlopen=$ac_res 13424else 13425 $as_echo "$as_me: failed program was:" >&5 13426sed 's/^/| /' conftest.$ac_ext >&5 13427 13428 13429fi 13430 13431rm -rf conftest.dSYM 13432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13433 conftest$ac_exeext 13434 if test "${ac_cv_search_dlopen+set}" = set; then 13435 break 13436fi 13437done 13438if test "${ac_cv_search_dlopen+set}" = set; then 13439 : 13440else 13441 ac_cv_search_dlopen=no 13442fi 13443rm conftest.$ac_ext 13444LIBS=$ac_func_search_save_LIBS 13445fi 13446{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13447$as_echo "$ac_cv_search_dlopen" >&6; } 13448ac_res=$ac_cv_search_dlopen 13449if test "$ac_res" != no; then 13450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13451 13452fi 13453 13454else 13455 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 13456fi 13457 13458######### 13459# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter 13460for option in $CFLAGS $CPPFLAGS 13461do 13462 case $option in 13463 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13464 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13465 esac 13466done 13467 13468 13469 13470# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 13471ac_temp_CFLAGS="" 13472for option in $CFLAGS 13473do 13474 case $option in 13475 -DSQLITE_OMIT*) ;; 13476 -DSQLITE_ENABLE*) ;; 13477 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 13478 esac 13479done 13480CFLAGS=$ac_temp_CFLAGS 13481 13482 13483# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 13484ac_temp_CPPFLAGS="" 13485for option in $CPPFLAGS 13486do 13487 case $option in 13488 -DSQLITE_OMIT*) ;; 13489 -DSQLITE_ENABLE*) ;; 13490 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 13491 esac 13492done 13493CPPFLAGS=$ac_temp_CPPFLAGS 13494 13495 13496# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 13497ac_temp_BUILD_CFLAGS="" 13498for option in $BUILD_CFLAGS 13499do 13500 case $option in 13501 -DSQLITE_OMIT*) ;; 13502 -DSQLITE_ENABLE*) ;; 13503 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 13504 esac 13505done 13506BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 13507 13508 13509######### 13510# See whether we should use GCOV 13511# Check whether --enable-gcov was given. 13512if test "${enable_gcov+set}" = set; then 13513 enableval=$enable_gcov; use_gcov=$enableval 13514else 13515 use_gcov=no 13516fi 13517 13518if test "${use_gcov}" = "yes" ; then 13519 USE_GCOV=1 13520else 13521 USE_GCOV=0 13522fi 13523 13524 13525 13526######### 13527# Output the config header 13528ac_config_headers="$ac_config_headers config.h" 13529 13530 13531######### 13532# Generate the output files. 13533# 13534 13535ac_config_files="$ac_config_files Makefile sqlite3.pc" 13536 13537cat >confcache <<\_ACEOF 13538# This file is a shell script that caches the results of configure 13539# tests run on this system so they can be shared between configure 13540# scripts and configure runs, see configure's option --config-cache. 13541# It is not useful on other systems. If it contains results you don't 13542# want to keep, you may remove or edit it. 13543# 13544# config.status only pays attention to the cache file if you give it 13545# the --recheck option to rerun configure. 13546# 13547# `ac_cv_env_foo' variables (set or unset) will be overridden when 13548# loading this file, other *unset* `ac_cv_foo' will be assigned the 13549# following values. 13550 13551_ACEOF 13552 13553# The following way of writing the cache mishandles newlines in values, 13554# but we know of no workaround that is simple, portable, and efficient. 13555# So, we kill variables containing newlines. 13556# Ultrix sh set writes to stderr and can't be redirected directly, 13557# and sets the high bit in the cache file unless we assign to the vars. 13558( 13559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13560 eval ac_val=\$$ac_var 13561 case $ac_val in #( 13562 *${as_nl}*) 13563 case $ac_var in #( 13564 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13565$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13566 esac 13567 case $ac_var in #( 13568 _ | IFS | as_nl) ;; #( 13569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13570 *) $as_unset $ac_var ;; 13571 esac ;; 13572 esac 13573 done 13574 13575 (set) 2>&1 | 13576 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13577 *${as_nl}ac_space=\ *) 13578 # `set' does not quote correctly, so add quotes (double-quote 13579 # substitution turns \\\\ into \\, and sed turns \\ into \). 13580 sed -n \ 13581 "s/'/'\\\\''/g; 13582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13583 ;; #( 13584 *) 13585 # `set' quotes correctly as required by POSIX, so do not add quotes. 13586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13587 ;; 13588 esac | 13589 sort 13590) | 13591 sed ' 13592 /^ac_cv_env_/b end 13593 t clear 13594 :clear 13595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13596 t end 13597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13598 :end' >>confcache 13599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13600 if test -w "$cache_file"; then 13601 test "x$cache_file" != "x/dev/null" && 13602 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13603$as_echo "$as_me: updating cache $cache_file" >&6;} 13604 cat confcache >$cache_file 13605 else 13606 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13607$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13608 fi 13609fi 13610rm -f confcache 13611 13612test "x$prefix" = xNONE && prefix=$ac_default_prefix 13613# Let make expand exec_prefix. 13614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13615 13616DEFS=-DHAVE_CONFIG_H 13617 13618ac_libobjs= 13619ac_ltlibobjs= 13620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13621 # 1. Remove the extension, and $U if already installed. 13622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13625 # will be set to the directory where LIBOBJS objects are built. 13626 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13627 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13628done 13629LIBOBJS=$ac_libobjs 13630 13631LTLIBOBJS=$ac_ltlibobjs 13632 13633 13634 13635: ${CONFIG_STATUS=./config.status} 13636ac_write_fail=0 13637ac_clean_files_save=$ac_clean_files 13638ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13639{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13640$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13641cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13642#! $SHELL 13643# Generated by $as_me. 13644# Run this file to recreate the current configuration. 13645# Compiler output produced by configure, useful for debugging 13646# configure, is in config.log if it exists. 13647 13648debug=false 13649ac_cs_recheck=false 13650ac_cs_silent=false 13651SHELL=\${CONFIG_SHELL-$SHELL} 13652_ACEOF 13653 13654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13655## --------------------- ## 13656## M4sh Initialization. ## 13657## --------------------- ## 13658 13659# Be more Bourne compatible 13660DUALCASE=1; export DUALCASE # for MKS sh 13661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13662 emulate sh 13663 NULLCMD=: 13664 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13665 # is contrary to our usage. Disable this feature. 13666 alias -g '${1+"$@"}'='"$@"' 13667 setopt NO_GLOB_SUBST 13668else 13669 case `(set -o) 2>/dev/null` in 13670 *posix*) set -o posix ;; 13671esac 13672 13673fi 13674 13675 13676 13677 13678# PATH needs CR 13679# Avoid depending upon Character Ranges. 13680as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13682as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13683as_cr_digits='0123456789' 13684as_cr_alnum=$as_cr_Letters$as_cr_digits 13685 13686as_nl=' 13687' 13688export as_nl 13689# Printing a long string crashes Solaris 7 /usr/bin/printf. 13690as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13693if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13694 as_echo='printf %s\n' 13695 as_echo_n='printf %s' 13696else 13697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13698 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13699 as_echo_n='/usr/ucb/echo -n' 13700 else 13701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13702 as_echo_n_body='eval 13703 arg=$1; 13704 case $arg in 13705 *"$as_nl"*) 13706 expr "X$arg" : "X\\(.*\\)$as_nl"; 13707 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13708 esac; 13709 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13710 ' 13711 export as_echo_n_body 13712 as_echo_n='sh -c $as_echo_n_body as_echo' 13713 fi 13714 export as_echo_body 13715 as_echo='sh -c $as_echo_body as_echo' 13716fi 13717 13718# The user is always right. 13719if test "${PATH_SEPARATOR+set}" != set; then 13720 PATH_SEPARATOR=: 13721 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13722 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13723 PATH_SEPARATOR=';' 13724 } 13725fi 13726 13727# Support unset when possible. 13728if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13729 as_unset=unset 13730else 13731 as_unset=false 13732fi 13733 13734 13735# IFS 13736# We need space, tab and new line, in precisely that order. Quoting is 13737# there to prevent editors from complaining about space-tab. 13738# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13739# splitting by setting IFS to empty value.) 13740IFS=" "" $as_nl" 13741 13742# Find who we are. Look in the path if we contain no directory separator. 13743case $0 in 13744 *[\\/]* ) as_myself=$0 ;; 13745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13746for as_dir in $PATH 13747do 13748 IFS=$as_save_IFS 13749 test -z "$as_dir" && as_dir=. 13750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13751done 13752IFS=$as_save_IFS 13753 13754 ;; 13755esac 13756# We did not find ourselves, most probably we were run as `sh COMMAND' 13757# in which case we are not to be found in the path. 13758if test "x$as_myself" = x; then 13759 as_myself=$0 13760fi 13761if test ! -f "$as_myself"; then 13762 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13763 { (exit 1); exit 1; } 13764fi 13765 13766# Work around bugs in pre-3.0 UWIN ksh. 13767for as_var in ENV MAIL MAILPATH 13768do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13769done 13770PS1='$ ' 13771PS2='> ' 13772PS4='+ ' 13773 13774# NLS nuisances. 13775LC_ALL=C 13776export LC_ALL 13777LANGUAGE=C 13778export LANGUAGE 13779 13780# Required to use basename. 13781if expr a : '\(a\)' >/dev/null 2>&1 && 13782 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13783 as_expr=expr 13784else 13785 as_expr=false 13786fi 13787 13788if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13789 as_basename=basename 13790else 13791 as_basename=false 13792fi 13793 13794 13795# Name of the executable. 13796as_me=`$as_basename -- "$0" || 13797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13798 X"$0" : 'X\(//\)$' \| \ 13799 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13800$as_echo X/"$0" | 13801 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13802 s//\1/ 13803 q 13804 } 13805 /^X\/\(\/\/\)$/{ 13806 s//\1/ 13807 q 13808 } 13809 /^X\/\(\/\).*/{ 13810 s//\1/ 13811 q 13812 } 13813 s/.*/./; q'` 13814 13815# CDPATH. 13816$as_unset CDPATH 13817 13818 13819 13820 as_lineno_1=$LINENO 13821 as_lineno_2=$LINENO 13822 test "x$as_lineno_1" != "x$as_lineno_2" && 13823 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13824 13825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13826 # uniformly replaced by the line number. The first 'sed' inserts a 13827 # line-number line after each line using $LINENO; the second 'sed' 13828 # does the real work. The second script uses 'N' to pair each 13829 # line-number line with the line containing $LINENO, and appends 13830 # trailing '-' during substitution so that $LINENO is not a special 13831 # case at line end. 13832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13833 # scripts with optimization help from Paolo Bonzini. Blame Lee 13834 # E. McMahon (1931-1989) for sed's syntax. :-) 13835 sed -n ' 13836 p 13837 /[$]LINENO/= 13838 ' <$as_myself | 13839 sed ' 13840 s/[$]LINENO.*/&-/ 13841 t lineno 13842 b 13843 :lineno 13844 N 13845 :loop 13846 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13847 t loop 13848 s/-\n.*// 13849 ' >$as_me.lineno && 13850 chmod +x "$as_me.lineno" || 13851 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13852 { (exit 1); exit 1; }; } 13853 13854 # Don't try to exec as it changes $[0], causing all sort of problems 13855 # (the dirname of $[0] is not the place where we might find the 13856 # original and so on. Autoconf is especially sensitive to this). 13857 . "./$as_me.lineno" 13858 # Exit status is that of the last command. 13859 exit 13860} 13861 13862 13863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13864 as_dirname=dirname 13865else 13866 as_dirname=false 13867fi 13868 13869ECHO_C= ECHO_N= ECHO_T= 13870case `echo -n x` in 13871-n*) 13872 case `echo 'x\c'` in 13873 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13874 *) ECHO_C='\c';; 13875 esac;; 13876*) 13877 ECHO_N='-n';; 13878esac 13879if expr a : '\(a\)' >/dev/null 2>&1 && 13880 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13881 as_expr=expr 13882else 13883 as_expr=false 13884fi 13885 13886rm -f conf$$ conf$$.exe conf$$.file 13887if test -d conf$$.dir; then 13888 rm -f conf$$.dir/conf$$.file 13889else 13890 rm -f conf$$.dir 13891 mkdir conf$$.dir 2>/dev/null 13892fi 13893if (echo >conf$$.file) 2>/dev/null; then 13894 if ln -s conf$$.file conf$$ 2>/dev/null; then 13895 as_ln_s='ln -s' 13896 # ... but there are two gotchas: 13897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13899 # In both cases, we have to default to `cp -p'. 13900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13901 as_ln_s='cp -p' 13902 elif ln conf$$.file conf$$ 2>/dev/null; then 13903 as_ln_s=ln 13904 else 13905 as_ln_s='cp -p' 13906 fi 13907else 13908 as_ln_s='cp -p' 13909fi 13910rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13911rmdir conf$$.dir 2>/dev/null 13912 13913if mkdir -p . 2>/dev/null; then 13914 as_mkdir_p=: 13915else 13916 test -d ./-p && rmdir ./-p 13917 as_mkdir_p=false 13918fi 13919 13920if test -x / >/dev/null 2>&1; then 13921 as_test_x='test -x' 13922else 13923 if ls -dL / >/dev/null 2>&1; then 13924 as_ls_L_option=L 13925 else 13926 as_ls_L_option= 13927 fi 13928 as_test_x=' 13929 eval sh -c '\'' 13930 if test -d "$1"; then 13931 test -d "$1/."; 13932 else 13933 case $1 in 13934 -*)set "./$1";; 13935 esac; 13936 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13937 ???[sx]*):;;*)false;;esac;fi 13938 '\'' sh 13939 ' 13940fi 13941as_executable_p=$as_test_x 13942 13943# Sed expression to map a string onto a valid CPP name. 13944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13945 13946# Sed expression to map a string onto a valid variable name. 13947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13948 13949 13950exec 6>&1 13951 13952# Save the log message, to keep $[0] and so on meaningful, and to 13953# report actual input values of CONFIG_FILES etc. instead of their 13954# values after options handling. 13955ac_log=" 13956This file was extended by sqlite $as_me 3.8.9, which was 13957generated by GNU Autoconf 2.62. Invocation command line was 13958 13959 CONFIG_FILES = $CONFIG_FILES 13960 CONFIG_HEADERS = $CONFIG_HEADERS 13961 CONFIG_LINKS = $CONFIG_LINKS 13962 CONFIG_COMMANDS = $CONFIG_COMMANDS 13963 $ $0 $@ 13964 13965on `(hostname || uname -n) 2>/dev/null | sed 1q` 13966" 13967 13968_ACEOF 13969 13970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13971# Files that config.status was made for. 13972config_files="$ac_config_files" 13973config_headers="$ac_config_headers" 13974config_commands="$ac_config_commands" 13975 13976_ACEOF 13977 13978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13979ac_cs_usage="\ 13980\`$as_me' instantiates files from templates according to the 13981current configuration. 13982 13983Usage: $0 [OPTIONS] [FILE]... 13984 13985 -h, --help print this help, then exit 13986 -V, --version print version number and configuration settings, then exit 13987 -q, --quiet do not print progress messages 13988 -d, --debug don't remove temporary files 13989 --recheck update $as_me by reconfiguring in the same conditions 13990 --file=FILE[:TEMPLATE] 13991 instantiate the configuration file FILE 13992 --header=FILE[:TEMPLATE] 13993 instantiate the configuration header FILE 13994 13995Configuration files: 13996$config_files 13997 13998Configuration headers: 13999$config_headers 14000 14001Configuration commands: 14002$config_commands 14003 14004Report bugs to <[email protected]>." 14005 14006_ACEOF 14007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14008ac_cs_version="\\ 14009sqlite config.status 3.8.9 14010configured by $0, generated by GNU Autoconf 2.62, 14011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14012 14013Copyright (C) 2008 Free Software Foundation, Inc. 14014This config.status script is free software; the Free Software Foundation 14015gives unlimited permission to copy, distribute and modify it." 14016 14017ac_pwd='$ac_pwd' 14018srcdir='$srcdir' 14019INSTALL='$INSTALL' 14020AWK='$AWK' 14021test -n "\$AWK" || AWK=awk 14022_ACEOF 14023 14024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14025# The default lists apply if the user does not specify any file. 14026ac_need_defaults=: 14027while test $# != 0 14028do 14029 case $1 in 14030 --*=*) 14031 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14033 ac_shift=: 14034 ;; 14035 *) 14036 ac_option=$1 14037 ac_optarg=$2 14038 ac_shift=shift 14039 ;; 14040 esac 14041 14042 case $ac_option in 14043 # Handling of the options. 14044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14045 ac_cs_recheck=: ;; 14046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14047 $as_echo "$ac_cs_version"; exit ;; 14048 --debug | --debu | --deb | --de | --d | -d ) 14049 debug=: ;; 14050 --file | --fil | --fi | --f ) 14051 $ac_shift 14052 case $ac_optarg in 14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14054 esac 14055 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14056 ac_need_defaults=false;; 14057 --header | --heade | --head | --hea ) 14058 $ac_shift 14059 case $ac_optarg in 14060 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14061 esac 14062 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14063 ac_need_defaults=false;; 14064 --he | --h) 14065 # Conflict between --help and --header 14066 { $as_echo "$as_me: error: ambiguous option: $1 14067Try \`$0 --help' for more information." >&2 14068 { (exit 1); exit 1; }; };; 14069 --help | --hel | -h ) 14070 $as_echo "$ac_cs_usage"; exit ;; 14071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14072 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14073 ac_cs_silent=: ;; 14074 14075 # This is an error. 14076 -*) { $as_echo "$as_me: error: unrecognized option: $1 14077Try \`$0 --help' for more information." >&2 14078 { (exit 1); exit 1; }; } ;; 14079 14080 *) ac_config_targets="$ac_config_targets $1" 14081 ac_need_defaults=false ;; 14082 14083 esac 14084 shift 14085done 14086 14087ac_configure_extra_args= 14088 14089if $ac_cs_silent; then 14090 exec 6>/dev/null 14091 ac_configure_extra_args="$ac_configure_extra_args --silent" 14092fi 14093 14094_ACEOF 14095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14096if \$ac_cs_recheck; then 14097 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14098 shift 14099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14100 CONFIG_SHELL='$SHELL' 14101 export CONFIG_SHELL 14102 exec "\$@" 14103fi 14104 14105_ACEOF 14106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14107exec 5>>config.log 14108{ 14109 echo 14110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14111## Running $as_me. ## 14112_ASBOX 14113 $as_echo "$ac_log" 14114} >&5 14115 14116_ACEOF 14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14118# 14119# INIT-COMMANDS 14120# 14121 14122 14123# The HP-UX ksh and POSIX shell print the target directory to stdout 14124# if CDPATH is set. 14125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14126 14127sed_quote_subst='$sed_quote_subst' 14128double_quote_subst='$double_quote_subst' 14129delay_variable_subst='$delay_variable_subst' 14130macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14131macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14132enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14133enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14134pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14135enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14136host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14137host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14138host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14139build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14140build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14141build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14142SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14143Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14144GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14145EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14146FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14147LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14148NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14149LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14150max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14151ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14152exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14153lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14154lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14155lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14156reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14157reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14158OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14159deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14160file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14161AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14162AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14163STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14164RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14165old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14166old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14167old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14168CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14169CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14170compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14171GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14172lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14174lt_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"`' 14175lt_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"`' 14176objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14177SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14178ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14179MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14180lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14181lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14182lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14183lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14184lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14185need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14186DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14187NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14188LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14189OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14190OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14191libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14192shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14193extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14194archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14195enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14196export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14197whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14198compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14199old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14200old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14201archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14202archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14203module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14204module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14205with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14206allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14207no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14208hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14209hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14210hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14211hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14212hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14213hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14214hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14215hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14216inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14217link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14218fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14219always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14220export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14221exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14222include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14223prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14224file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14225variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14226need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14227need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14228version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14229runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14230shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14231shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14232libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14233library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14234soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14235postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14236postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14237finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14238finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14239hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14240sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14241sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14242hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14243enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14244enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14245enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14246old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14247striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14248 14249LTCC='$LTCC' 14250LTCFLAGS='$LTCFLAGS' 14251compiler='$compiler_DEFAULT' 14252 14253# Quote evaled strings. 14254for var in SED \ 14255GREP \ 14256EGREP \ 14257FGREP \ 14258LD \ 14259NM \ 14260LN_S \ 14261lt_SP2NL \ 14262lt_NL2SP \ 14263reload_flag \ 14264OBJDUMP \ 14265deplibs_check_method \ 14266file_magic_cmd \ 14267AR \ 14268AR_FLAGS \ 14269STRIP \ 14270RANLIB \ 14271CC \ 14272CFLAGS \ 14273compiler \ 14274lt_cv_sys_global_symbol_pipe \ 14275lt_cv_sys_global_symbol_to_cdecl \ 14276lt_cv_sys_global_symbol_to_c_name_address \ 14277lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14278SHELL \ 14279ECHO \ 14280lt_prog_compiler_no_builtin_flag \ 14281lt_prog_compiler_wl \ 14282lt_prog_compiler_pic \ 14283lt_prog_compiler_static \ 14284lt_cv_prog_compiler_c_o \ 14285need_locks \ 14286DSYMUTIL \ 14287NMEDIT \ 14288LIPO \ 14289OTOOL \ 14290OTOOL64 \ 14291shrext_cmds \ 14292export_dynamic_flag_spec \ 14293whole_archive_flag_spec \ 14294compiler_needs_object \ 14295with_gnu_ld \ 14296allow_undefined_flag \ 14297no_undefined_flag \ 14298hardcode_libdir_flag_spec \ 14299hardcode_libdir_flag_spec_ld \ 14300hardcode_libdir_separator \ 14301fix_srcfile_path \ 14302exclude_expsyms \ 14303include_expsyms \ 14304file_list_spec \ 14305variables_saved_for_relink \ 14306libname_spec \ 14307library_names_spec \ 14308soname_spec \ 14309finish_eval \ 14310old_striplib \ 14311striplib; do 14312 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14313 *[\\\\\\\`\\"\\\$]*) 14314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14315 ;; 14316 *) 14317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14318 ;; 14319 esac 14320done 14321 14322# Double-quote double-evaled strings. 14323for var in reload_cmds \ 14324old_postinstall_cmds \ 14325old_postuninstall_cmds \ 14326old_archive_cmds \ 14327extract_expsyms_cmds \ 14328old_archive_from_new_cmds \ 14329old_archive_from_expsyms_cmds \ 14330archive_cmds \ 14331archive_expsym_cmds \ 14332module_cmds \ 14333module_expsym_cmds \ 14334export_symbols_cmds \ 14335prelink_cmds \ 14336postinstall_cmds \ 14337postuninstall_cmds \ 14338finish_cmds \ 14339sys_lib_search_path_spec \ 14340sys_lib_dlsearch_path_spec; do 14341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14342 *[\\\\\\\`\\"\\\$]*) 14343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14344 ;; 14345 *) 14346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14347 ;; 14348 esac 14349done 14350 14351# Fix-up fallback echo if it was mangled by the above quoting rules. 14352case \$lt_ECHO in 14353*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14354 ;; 14355esac 14356 14357ac_aux_dir='$ac_aux_dir' 14358xsi_shell='$xsi_shell' 14359lt_shell_append='$lt_shell_append' 14360 14361# See if we are running on zsh, and set the options which allow our 14362# commands through without removal of \ escapes INIT. 14363if test -n "\${ZSH_VERSION+set}" ; then 14364 setopt NO_GLOB_SUBST 14365fi 14366 14367 14368 PACKAGE='$PACKAGE' 14369 VERSION='$VERSION' 14370 TIMESTAMP='$TIMESTAMP' 14371 RM='$RM' 14372 ofile='$ofile' 14373 14374 14375 14376 14377_ACEOF 14378 14379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14380 14381# Handling of arguments. 14382for ac_config_target in $ac_config_targets 14383do 14384 case $ac_config_target in 14385 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14388 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 14389 14390 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14391$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14392 { (exit 1); exit 1; }; };; 14393 esac 14394done 14395 14396 14397# If the user did not use the arguments to specify the items to instantiate, 14398# then the envvar interface is used. Set only those that are not. 14399# We use the long form for the default assignment because of an extremely 14400# bizarre bug on SunOS 4.1.3. 14401if $ac_need_defaults; then 14402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14405fi 14406 14407# Have a temporary directory for convenience. Make it in the build tree 14408# simply because there is no reason against having it here, and in addition, 14409# creating and moving files from /tmp can sometimes cause problems. 14410# Hook for its removal unless debugging. 14411# Note that there is a small window in which the directory will not be cleaned: 14412# after its creation but before its name has been assigned to `$tmp'. 14413$debug || 14414{ 14415 tmp= 14416 trap 'exit_status=$? 14417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14418' 0 14419 trap '{ (exit 1); exit 1; }' 1 2 13 15 14420} 14421# Create a (secure) tmp directory for tmp files. 14422 14423{ 14424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14425 test -n "$tmp" && test -d "$tmp" 14426} || 14427{ 14428 tmp=./conf$$-$RANDOM 14429 (umask 077 && mkdir "$tmp") 14430} || 14431{ 14432 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14433 { (exit 1); exit 1; } 14434} 14435 14436# Set up the scripts for CONFIG_FILES section. 14437# No need to generate them if there are no CONFIG_FILES. 14438# This happens for instance with `./config.status config.h'. 14439if test -n "$CONFIG_FILES"; then 14440 14441 14442ac_cr=' 14443' 14444ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14445if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14446 ac_cs_awk_cr='\\r' 14447else 14448 ac_cs_awk_cr=$ac_cr 14449fi 14450 14451echo 'BEGIN {' >"$tmp/subs1.awk" && 14452_ACEOF 14453 14454 14455{ 14456 echo "cat >conf$$subs.awk <<_ACEOF" && 14457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14458 echo "_ACEOF" 14459} >conf$$subs.sh || 14460 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14461$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14462 { (exit 1); exit 1; }; } 14463ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14464ac_delim='%!_!# ' 14465for ac_last_try in false false false false false :; do 14466 . ./conf$$subs.sh || 14467 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14468$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14469 { (exit 1); exit 1; }; } 14470 14471 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14472 break 14473 elif $ac_last_try; then 14474 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14475$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14476 { (exit 1); exit 1; }; } 14477 else 14478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14479 fi 14480done 14481rm -f conf$$subs.sh 14482 14483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14484cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14485_ACEOF 14486sed -n ' 14487h 14488s/^/S["/; s/!.*/"]=/ 14489p 14490g 14491s/^[^!]*!// 14492:repl 14493t repl 14494s/'"$ac_delim"'$// 14495t delim 14496:nl 14497h 14498s/\(.\{148\}\).*/\1/ 14499t more1 14500s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14501p 14502n 14503b repl 14504:more1 14505s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14506p 14507g 14508s/.\{148\}// 14509t nl 14510:delim 14511h 14512s/\(.\{148\}\).*/\1/ 14513t more2 14514s/["\\]/\\&/g; s/^/"/; s/$/"/ 14515p 14516b 14517:more2 14518s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14519p 14520g 14521s/.\{148\}// 14522t delim 14523' <conf$$subs.awk | sed ' 14524/^[^""]/{ 14525 N 14526 s/\n// 14527} 14528' >>$CONFIG_STATUS || ac_write_fail=1 14529rm -f conf$$subs.awk 14530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14531_ACAWK 14532cat >>"\$tmp/subs1.awk" <<_ACAWK && 14533 for (key in S) S_is_set[key] = 1 14534 FS = "" 14535 14536} 14537{ 14538 line = $ 0 14539 nfields = split(line, field, "@") 14540 substed = 0 14541 len = length(field[1]) 14542 for (i = 2; i < nfields; i++) { 14543 key = field[i] 14544 keylen = length(key) 14545 if (S_is_set[key]) { 14546 value = S[key] 14547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14548 len += length(value) + length(field[++i]) 14549 substed = 1 14550 } else 14551 len += 1 + keylen 14552 } 14553 14554 print line 14555} 14556 14557_ACAWK 14558_ACEOF 14559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14560if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14562else 14563 cat 14564fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14565 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14566$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14567 { (exit 1); exit 1; }; } 14568_ACEOF 14569 14570# VPATH may cause trouble with some makes, so we remove $(srcdir), 14571# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14572# trailing colons and then remove the whole line if VPATH becomes empty 14573# (actually we leave an empty line to preserve line numbers). 14574if test "x$srcdir" = x.; then 14575 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14576s/:*\$(srcdir):*/:/ 14577s/:*\${srcdir}:*/:/ 14578s/:*@srcdir@:*/:/ 14579s/^\([^=]*=[ ]*\):*/\1/ 14580s/:*$// 14581s/^[^=]*=[ ]*$// 14582}' 14583fi 14584 14585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14586fi # test -n "$CONFIG_FILES" 14587 14588# Set up the scripts for CONFIG_HEADERS section. 14589# No need to generate them if there are no CONFIG_HEADERS. 14590# This happens for instance with `./config.status Makefile'. 14591if test -n "$CONFIG_HEADERS"; then 14592cat >"$tmp/defines.awk" <<\_ACAWK || 14593BEGIN { 14594_ACEOF 14595 14596# Transform confdefs.h into an awk script `defines.awk', embedded as 14597# here-document in config.status, that substitutes the proper values into 14598# config.h.in to produce config.h. 14599 14600# Create a delimiter string that does not exist in confdefs.h, to ease 14601# handling of long lines. 14602ac_delim='%!_!# ' 14603for ac_last_try in false false :; do 14604 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14605 if test -z "$ac_t"; then 14606 break 14607 elif $ac_last_try; then 14608 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14609$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14610 { (exit 1); exit 1; }; } 14611 else 14612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14613 fi 14614done 14615 14616# For the awk script, D is an array of macro values keyed by name, 14617# likewise P contains macro parameters if any. Preserve backslash 14618# newline sequences. 14619 14620ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14621sed -n ' 14622s/.\{148\}/&'"$ac_delim"'/g 14623t rset 14624:rset 14625s/^[ ]*#[ ]*define[ ][ ]*/ / 14626t def 14627d 14628:def 14629s/\\$// 14630t bsnl 14631s/["\\]/\\&/g 14632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14633D["\1"]=" \3"/p 14634s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14635d 14636:bsnl 14637s/["\\]/\\&/g 14638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14639D["\1"]=" \3\\\\\\n"\\/p 14640t cont 14641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14642t cont 14643d 14644:cont 14645n 14646s/.\{148\}/&'"$ac_delim"'/g 14647t clear 14648:clear 14649s/\\$// 14650t bsnlc 14651s/["\\]/\\&/g; s/^/"/; s/$/"/p 14652d 14653:bsnlc 14654s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14655b cont 14656' <confdefs.h | sed ' 14657s/'"$ac_delim"'/"\\\ 14658"/g' >>$CONFIG_STATUS || ac_write_fail=1 14659 14660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14661 for (key in D) D_is_set[key] = 1 14662 FS = "" 14663} 14664/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14665 line = \$ 0 14666 split(line, arg, " ") 14667 if (arg[1] == "#") { 14668 defundef = arg[2] 14669 mac1 = arg[3] 14670 } else { 14671 defundef = substr(arg[1], 2) 14672 mac1 = arg[2] 14673 } 14674 split(mac1, mac2, "(") #) 14675 macro = mac2[1] 14676 if (D_is_set[macro]) { 14677 # Preserve the white space surrounding the "#". 14678 prefix = substr(line, 1, index(line, defundef) - 1) 14679 print prefix "define", macro P[macro] D[macro] 14680 next 14681 } else { 14682 # Replace #undef with comments. This is necessary, for example, 14683 # in the case of _POSIX_SOURCE, which is predefined and required 14684 # on some systems where configure will not decide to define it. 14685 if (defundef == "undef") { 14686 print "/*", line, "*/" 14687 next 14688 } 14689 } 14690} 14691{ print } 14692_ACAWK 14693_ACEOF 14694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14695 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14696$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14697 { (exit 1); exit 1; }; } 14698fi # test -n "$CONFIG_HEADERS" 14699 14700 14701eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14702shift 14703for ac_tag 14704do 14705 case $ac_tag in 14706 :[FHLC]) ac_mode=$ac_tag; continue;; 14707 esac 14708 case $ac_mode$ac_tag in 14709 :[FHL]*:*);; 14710 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14711$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14712 { (exit 1); exit 1; }; };; 14713 :[FH]-) ac_tag=-:-;; 14714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14715 esac 14716 ac_save_IFS=$IFS 14717 IFS=: 14718 set x $ac_tag 14719 IFS=$ac_save_IFS 14720 shift 14721 ac_file=$1 14722 shift 14723 14724 case $ac_mode in 14725 :L) ac_source=$1;; 14726 :[FH]) 14727 ac_file_inputs= 14728 for ac_f 14729 do 14730 case $ac_f in 14731 -) ac_f="$tmp/stdin";; 14732 *) # Look for the file first in the build tree, then in the source tree 14733 # (if the path is not absolute). The absolute path cannot be DOS-style, 14734 # because $ac_f cannot contain `:'. 14735 test -f "$ac_f" || 14736 case $ac_f in 14737 [\\/$]*) false;; 14738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14739 esac || 14740 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14741$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14742 { (exit 1); exit 1; }; };; 14743 esac 14744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14745 ac_file_inputs="$ac_file_inputs '$ac_f'" 14746 done 14747 14748 # Let's still pretend it is `configure' which instantiates (i.e., don't 14749 # use $as_me), people would be surprised to read: 14750 # /* config.h. Generated by config.status. */ 14751 configure_input='Generated from '` 14752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14753 `' by configure.' 14754 if test x"$ac_file" != x-; then 14755 configure_input="$ac_file. $configure_input" 14756 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14757$as_echo "$as_me: creating $ac_file" >&6;} 14758 fi 14759 # Neutralize special characters interpreted by sed in replacement strings. 14760 case $configure_input in #( 14761 *\&* | *\|* | *\\* ) 14762 ac_sed_conf_input=`$as_echo "$configure_input" | 14763 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14764 *) ac_sed_conf_input=$configure_input;; 14765 esac 14766 14767 case $ac_tag in 14768 *:-:* | *:-) cat >"$tmp/stdin" \ 14769 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14770$as_echo "$as_me: error: could not create $ac_file" >&2;} 14771 { (exit 1); exit 1; }; } ;; 14772 esac 14773 ;; 14774 esac 14775 14776 ac_dir=`$as_dirname -- "$ac_file" || 14777$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14778 X"$ac_file" : 'X\(//\)[^/]' \| \ 14779 X"$ac_file" : 'X\(//\)$' \| \ 14780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14781$as_echo X"$ac_file" | 14782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14783 s//\1/ 14784 q 14785 } 14786 /^X\(\/\/\)[^/].*/{ 14787 s//\1/ 14788 q 14789 } 14790 /^X\(\/\/\)$/{ 14791 s//\1/ 14792 q 14793 } 14794 /^X\(\/\).*/{ 14795 s//\1/ 14796 q 14797 } 14798 s/.*/./; q'` 14799 { as_dir="$ac_dir" 14800 case $as_dir in #( 14801 -*) as_dir=./$as_dir;; 14802 esac 14803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14804 as_dirs= 14805 while :; do 14806 case $as_dir in #( 14807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14808 *) as_qdir=$as_dir;; 14809 esac 14810 as_dirs="'$as_qdir' $as_dirs" 14811 as_dir=`$as_dirname -- "$as_dir" || 14812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14813 X"$as_dir" : 'X\(//\)[^/]' \| \ 14814 X"$as_dir" : 'X\(//\)$' \| \ 14815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14816$as_echo X"$as_dir" | 14817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14818 s//\1/ 14819 q 14820 } 14821 /^X\(\/\/\)[^/].*/{ 14822 s//\1/ 14823 q 14824 } 14825 /^X\(\/\/\)$/{ 14826 s//\1/ 14827 q 14828 } 14829 /^X\(\/\).*/{ 14830 s//\1/ 14831 q 14832 } 14833 s/.*/./; q'` 14834 test -d "$as_dir" && break 14835 done 14836 test -z "$as_dirs" || eval "mkdir $as_dirs" 14837 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14838$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14839 { (exit 1); exit 1; }; }; } 14840 ac_builddir=. 14841 14842case "$ac_dir" in 14843.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14844*) 14845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14846 # A ".." for each directory in $ac_dir_suffix. 14847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14848 case $ac_top_builddir_sub in 14849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14851 esac ;; 14852esac 14853ac_abs_top_builddir=$ac_pwd 14854ac_abs_builddir=$ac_pwd$ac_dir_suffix 14855# for backward compatibility: 14856ac_top_builddir=$ac_top_build_prefix 14857 14858case $srcdir in 14859 .) # We are building in place. 14860 ac_srcdir=. 14861 ac_top_srcdir=$ac_top_builddir_sub 14862 ac_abs_top_srcdir=$ac_pwd ;; 14863 [\\/]* | ?:[\\/]* ) # Absolute name. 14864 ac_srcdir=$srcdir$ac_dir_suffix; 14865 ac_top_srcdir=$srcdir 14866 ac_abs_top_srcdir=$srcdir ;; 14867 *) # Relative name. 14868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14869 ac_top_srcdir=$ac_top_build_prefix$srcdir 14870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14871esac 14872ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14873 14874 14875 case $ac_mode in 14876 :F) 14877 # 14878 # CONFIG_FILE 14879 # 14880 14881 case $INSTALL in 14882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14884 esac 14885_ACEOF 14886 14887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14888# If the template does not know about datarootdir, expand it. 14889# FIXME: This hack should be removed a few years after 2.60. 14890ac_datarootdir_hack=; ac_datarootdir_seen= 14891 14892ac_sed_dataroot=' 14893/datarootdir/ { 14894 p 14895 q 14896} 14897/@datadir@/p 14898/@docdir@/p 14899/@infodir@/p 14900/@localedir@/p 14901/@mandir@/p 14902' 14903case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14904*datarootdir*) ac_datarootdir_seen=yes;; 14905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14906 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14907$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14908_ACEOF 14909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14910 ac_datarootdir_hack=' 14911 s&@datadir@&$datadir&g 14912 s&@docdir@&$docdir&g 14913 s&@infodir@&$infodir&g 14914 s&@localedir@&$localedir&g 14915 s&@mandir@&$mandir&g 14916 s&\\\${datarootdir}&$datarootdir&g' ;; 14917esac 14918_ACEOF 14919 14920# Neutralize VPATH when `$srcdir' = `.'. 14921# Shell code in configure.ac might set extrasub. 14922# FIXME: do we really want to maintain this feature? 14923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14924ac_sed_extra="$ac_vpsub 14925$extrasub 14926_ACEOF 14927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14928:t 14929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14930s|@configure_input@|$ac_sed_conf_input|;t t 14931s&@top_builddir@&$ac_top_builddir_sub&;t t 14932s&@top_build_prefix@&$ac_top_build_prefix&;t t 14933s&@srcdir@&$ac_srcdir&;t t 14934s&@abs_srcdir@&$ac_abs_srcdir&;t t 14935s&@top_srcdir@&$ac_top_srcdir&;t t 14936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14937s&@builddir@&$ac_builddir&;t t 14938s&@abs_builddir@&$ac_abs_builddir&;t t 14939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14940s&@INSTALL@&$ac_INSTALL&;t t 14941$ac_datarootdir_hack 14942" 14943eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14944 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14945$as_echo "$as_me: error: could not create $ac_file" >&2;} 14946 { (exit 1); exit 1; }; } 14947 14948test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14949 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14951 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14952which seems to be undefined. Please make sure it is defined." >&5 14953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14954which seems to be undefined. Please make sure it is defined." >&2;} 14955 14956 rm -f "$tmp/stdin" 14957 case $ac_file in 14958 -) cat "$tmp/out" && rm -f "$tmp/out";; 14959 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14960 esac \ 14961 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14962$as_echo "$as_me: error: could not create $ac_file" >&2;} 14963 { (exit 1); exit 1; }; } 14964 ;; 14965 :H) 14966 # 14967 # CONFIG_HEADER 14968 # 14969 if test x"$ac_file" != x-; then 14970 { 14971 $as_echo "/* $configure_input */" \ 14972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14973 } >"$tmp/config.h" \ 14974 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14975$as_echo "$as_me: error: could not create $ac_file" >&2;} 14976 { (exit 1); exit 1; }; } 14977 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14978 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14979$as_echo "$as_me: $ac_file is unchanged" >&6;} 14980 else 14981 rm -f "$ac_file" 14982 mv "$tmp/config.h" "$ac_file" \ 14983 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14984$as_echo "$as_me: error: could not create $ac_file" >&2;} 14985 { (exit 1); exit 1; }; } 14986 fi 14987 else 14988 $as_echo "/* $configure_input */" \ 14989 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14990 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14991$as_echo "$as_me: error: could not create -" >&2;} 14992 { (exit 1); exit 1; }; } 14993 fi 14994 ;; 14995 14996 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14997$as_echo "$as_me: executing $ac_file commands" >&6;} 14998 ;; 14999 esac 15000 15001 15002 case $ac_file$ac_mode in 15003 "libtool":C) 15004 15005 # See if we are running on zsh, and set the options which allow our 15006 # commands through without removal of \ escapes. 15007 if test -n "${ZSH_VERSION+set}" ; then 15008 setopt NO_GLOB_SUBST 15009 fi 15010 15011 cfgfile="${ofile}T" 15012 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15013 $RM "$cfgfile" 15014 15015 cat <<_LT_EOF >> "$cfgfile" 15016#! $SHELL 15017 15018# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15019# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15021# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15022# 15023# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15024# 2006, 2007, 2008 Free Software Foundation, Inc. 15025# Written by Gordon Matzigkeit, 1996 15026# 15027# This file is part of GNU Libtool. 15028# 15029# GNU Libtool is free software; you can redistribute it and/or 15030# modify it under the terms of the GNU General Public License as 15031# published by the Free Software Foundation; either version 2 of 15032# the License, or (at your option) any later version. 15033# 15034# As a special exception to the GNU General Public License, 15035# if you distribute this file as part of a program or library that 15036# is built using GNU Libtool, you may include this file under the 15037# same distribution terms that you use for the rest of that program. 15038# 15039# GNU Libtool is distributed in the hope that it will be useful, 15040# but WITHOUT ANY WARRANTY; without even the implied warranty of 15041# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15042# GNU General Public License for more details. 15043# 15044# You should have received a copy of the GNU General Public License 15045# along with GNU Libtool; see the file COPYING. If not, a copy 15046# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15047# obtained by writing to the Free Software Foundation, Inc., 15048# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15049 15050 15051# The names of the tagged configurations supported by this script. 15052available_tags="" 15053 15054# ### BEGIN LIBTOOL CONFIG 15055 15056# Which release of libtool.m4 was used? 15057macro_version=$macro_version 15058macro_revision=$macro_revision 15059 15060# Whether or not to build shared libraries. 15061build_libtool_libs=$enable_shared 15062 15063# Whether or not to build static libraries. 15064build_old_libs=$enable_static 15065 15066# What type of objects to build. 15067pic_mode=$pic_mode 15068 15069# Whether or not to optimize for fast installation. 15070fast_install=$enable_fast_install 15071 15072# The host system. 15073host_alias=$host_alias 15074host=$host 15075host_os=$host_os 15076 15077# The build system. 15078build_alias=$build_alias 15079build=$build 15080build_os=$build_os 15081 15082# A sed program that does not truncate output. 15083SED=$lt_SED 15084 15085# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15086Xsed="\$SED -e 1s/^X//" 15087 15088# A grep program that handles long lines. 15089GREP=$lt_GREP 15090 15091# An ERE matcher. 15092EGREP=$lt_EGREP 15093 15094# A literal string matcher. 15095FGREP=$lt_FGREP 15096 15097# A BSD- or MS-compatible name lister. 15098NM=$lt_NM 15099 15100# Whether we need soft or hard links. 15101LN_S=$lt_LN_S 15102 15103# What is the maximum length of a command? 15104max_cmd_len=$max_cmd_len 15105 15106# Object file suffix (normally "o"). 15107objext=$ac_objext 15108 15109# Executable file suffix (normally ""). 15110exeext=$exeext 15111 15112# whether the shell understands "unset". 15113lt_unset=$lt_unset 15114 15115# turn spaces into newlines. 15116SP2NL=$lt_lt_SP2NL 15117 15118# turn newlines into spaces. 15119NL2SP=$lt_lt_NL2SP 15120 15121# How to create reloadable object files. 15122reload_flag=$lt_reload_flag 15123reload_cmds=$lt_reload_cmds 15124 15125# An object symbol dumper. 15126OBJDUMP=$lt_OBJDUMP 15127 15128# Method to check whether dependent libraries are shared objects. 15129deplibs_check_method=$lt_deplibs_check_method 15130 15131# Command to use when deplibs_check_method == "file_magic". 15132file_magic_cmd=$lt_file_magic_cmd 15133 15134# The archiver. 15135AR=$lt_AR 15136AR_FLAGS=$lt_AR_FLAGS 15137 15138# A symbol stripping program. 15139STRIP=$lt_STRIP 15140 15141# Commands used to install an old-style archive. 15142RANLIB=$lt_RANLIB 15143old_postinstall_cmds=$lt_old_postinstall_cmds 15144old_postuninstall_cmds=$lt_old_postuninstall_cmds 15145 15146# A C compiler. 15147LTCC=$lt_CC 15148 15149# LTCC compiler flags. 15150LTCFLAGS=$lt_CFLAGS 15151 15152# Take the output of nm and produce a listing of raw symbols and C names. 15153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15154 15155# Transform the output of nm in a proper C declaration. 15156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15157 15158# Transform the output of nm in a C name address pair. 15159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15160 15161# Transform the output of nm in a C name address pair when lib prefix is needed. 15162global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15163 15164# The name of the directory that contains temporary libtool files. 15165objdir=$objdir 15166 15167# Shell to use when invoking shell scripts. 15168SHELL=$lt_SHELL 15169 15170# An echo program that does not interpret backslashes. 15171ECHO=$lt_ECHO 15172 15173# Used to examine libraries when file_magic_cmd begins with "file". 15174MAGIC_CMD=$MAGIC_CMD 15175 15176# Must we lock files when doing compilation? 15177need_locks=$lt_need_locks 15178 15179# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15180DSYMUTIL=$lt_DSYMUTIL 15181 15182# Tool to change global to local symbols on Mac OS X. 15183NMEDIT=$lt_NMEDIT 15184 15185# Tool to manipulate fat objects and archives on Mac OS X. 15186LIPO=$lt_LIPO 15187 15188# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15189OTOOL=$lt_OTOOL 15190 15191# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15192OTOOL64=$lt_OTOOL64 15193 15194# Old archive suffix (normally "a"). 15195libext=$libext 15196 15197# Shared library suffix (normally ".so"). 15198shrext_cmds=$lt_shrext_cmds 15199 15200# The commands to extract the exported symbol list from a shared archive. 15201extract_expsyms_cmds=$lt_extract_expsyms_cmds 15202 15203# Variables whose values should be saved in libtool wrapper scripts and 15204# restored at link time. 15205variables_saved_for_relink=$lt_variables_saved_for_relink 15206 15207# Do we need the "lib" prefix for modules? 15208need_lib_prefix=$need_lib_prefix 15209 15210# Do we need a version for libraries? 15211need_version=$need_version 15212 15213# Library versioning type. 15214version_type=$version_type 15215 15216# Shared library runtime path variable. 15217runpath_var=$runpath_var 15218 15219# Shared library path variable. 15220shlibpath_var=$shlibpath_var 15221 15222# Is shlibpath searched before the hard-coded library search path? 15223shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15224 15225# Format of library name prefix. 15226libname_spec=$lt_libname_spec 15227 15228# List of archive names. First name is the real one, the rest are links. 15229# The last name is the one that the linker finds with -lNAME 15230library_names_spec=$lt_library_names_spec 15231 15232# The coded name of the library, if different from the real name. 15233soname_spec=$lt_soname_spec 15234 15235# Command to use after installation of a shared archive. 15236postinstall_cmds=$lt_postinstall_cmds 15237 15238# Command to use after uninstallation of a shared archive. 15239postuninstall_cmds=$lt_postuninstall_cmds 15240 15241# Commands used to finish a libtool library installation in a directory. 15242finish_cmds=$lt_finish_cmds 15243 15244# As "finish_cmds", except a single script fragment to be evaled but 15245# not shown. 15246finish_eval=$lt_finish_eval 15247 15248# Whether we should hardcode library paths into libraries. 15249hardcode_into_libs=$hardcode_into_libs 15250 15251# Compile-time system search path for libraries. 15252sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15253 15254# Run-time system search path for libraries. 15255sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15256 15257# Whether dlopen is supported. 15258dlopen_support=$enable_dlopen 15259 15260# Whether dlopen of programs is supported. 15261dlopen_self=$enable_dlopen_self 15262 15263# Whether dlopen of statically linked programs is supported. 15264dlopen_self_static=$enable_dlopen_self_static 15265 15266# Commands to strip libraries. 15267old_striplib=$lt_old_striplib 15268striplib=$lt_striplib 15269 15270 15271# The linker used to build libraries. 15272LD=$lt_LD 15273 15274# Commands used to build an old-style archive. 15275old_archive_cmds=$lt_old_archive_cmds 15276 15277# A language specific compiler. 15278CC=$lt_compiler 15279 15280# Is the compiler the GNU compiler? 15281with_gcc=$GCC 15282 15283# Compiler flag to turn off builtin functions. 15284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15285 15286# How to pass a linker flag through the compiler. 15287wl=$lt_lt_prog_compiler_wl 15288 15289# Additional compiler flags for building library objects. 15290pic_flag=$lt_lt_prog_compiler_pic 15291 15292# Compiler flag to prevent dynamic linking. 15293link_static_flag=$lt_lt_prog_compiler_static 15294 15295# Does compiler simultaneously support -c and -o options? 15296compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15297 15298# Whether or not to add -lc for building shared libraries. 15299build_libtool_need_lc=$archive_cmds_need_lc 15300 15301# Whether or not to disallow shared libs when runtime libs are static. 15302allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15303 15304# Compiler flag to allow reflexive dlopens. 15305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15306 15307# Compiler flag to generate shared objects directly from archives. 15308whole_archive_flag_spec=$lt_whole_archive_flag_spec 15309 15310# Whether the compiler copes with passing no objects directly. 15311compiler_needs_object=$lt_compiler_needs_object 15312 15313# Create an old-style archive from a shared archive. 15314old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15315 15316# Create a temporary old-style archive to link instead of a shared archive. 15317old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15318 15319# Commands used to build a shared archive. 15320archive_cmds=$lt_archive_cmds 15321archive_expsym_cmds=$lt_archive_expsym_cmds 15322 15323# Commands used to build a loadable module if different from building 15324# a shared archive. 15325module_cmds=$lt_module_cmds 15326module_expsym_cmds=$lt_module_expsym_cmds 15327 15328# Whether we are building with GNU ld or not. 15329with_gnu_ld=$lt_with_gnu_ld 15330 15331# Flag that allows shared libraries with undefined symbols to be built. 15332allow_undefined_flag=$lt_allow_undefined_flag 15333 15334# Flag that enforces no undefined symbols. 15335no_undefined_flag=$lt_no_undefined_flag 15336 15337# Flag to hardcode \$libdir into a binary during linking. 15338# This must work even if \$libdir does not exist 15339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15340 15341# If ld is used when linking, flag to hardcode \$libdir into a binary 15342# during linking. This must work even if \$libdir does not exist. 15343hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15344 15345# Whether we need a single "-rpath" flag with a separated argument. 15346hardcode_libdir_separator=$lt_hardcode_libdir_separator 15347 15348# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15349# DIR into the resulting binary. 15350hardcode_direct=$hardcode_direct 15351 15352# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15353# DIR into the resulting binary and the resulting library dependency is 15354# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15355# library is relocated. 15356hardcode_direct_absolute=$hardcode_direct_absolute 15357 15358# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15359# into the resulting binary. 15360hardcode_minus_L=$hardcode_minus_L 15361 15362# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15363# into the resulting binary. 15364hardcode_shlibpath_var=$hardcode_shlibpath_var 15365 15366# Set to "yes" if building a shared library automatically hardcodes DIR 15367# into the library and all subsequent libraries and executables linked 15368# against it. 15369hardcode_automatic=$hardcode_automatic 15370 15371# Set to yes if linker adds runtime paths of dependent libraries 15372# to runtime path list. 15373inherit_rpath=$inherit_rpath 15374 15375# Whether libtool must link a program against all its dependency libraries. 15376link_all_deplibs=$link_all_deplibs 15377 15378# Fix the shell variable \$srcfile for the compiler. 15379fix_srcfile_path=$lt_fix_srcfile_path 15380 15381# Set to "yes" if exported symbols are required. 15382always_export_symbols=$always_export_symbols 15383 15384# The commands to list exported symbols. 15385export_symbols_cmds=$lt_export_symbols_cmds 15386 15387# Symbols that should not be listed in the preloaded symbols. 15388exclude_expsyms=$lt_exclude_expsyms 15389 15390# Symbols that must always be exported. 15391include_expsyms=$lt_include_expsyms 15392 15393# Commands necessary for linking programs (against libraries) with templates. 15394prelink_cmds=$lt_prelink_cmds 15395 15396# Specify filename containing input files. 15397file_list_spec=$lt_file_list_spec 15398 15399# How to hardcode a shared library path into an executable. 15400hardcode_action=$hardcode_action 15401 15402# ### END LIBTOOL CONFIG 15403 15404_LT_EOF 15405 15406 case $host_os in 15407 aix3*) 15408 cat <<\_LT_EOF >> "$cfgfile" 15409# AIX sometimes has problems with the GCC collect2 program. For some 15410# reason, if we set the COLLECT_NAMES environment variable, the problems 15411# vanish in a puff of smoke. 15412if test "X${COLLECT_NAMES+set}" != Xset; then 15413 COLLECT_NAMES= 15414 export COLLECT_NAMES 15415fi 15416_LT_EOF 15417 ;; 15418 esac 15419 15420 15421ltmain="$ac_aux_dir/ltmain.sh" 15422 15423 15424 # We use sed instead of cat because bash on DJGPP gets confused if 15425 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15426 # text mode, it properly converts lines to CR/LF. This bash problem 15427 # is reportedly fixed, but why not run on old versions too? 15428 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15429 || (rm -f "$cfgfile"; exit 1) 15430 15431 case $xsi_shell in 15432 yes) 15433 cat << \_LT_EOF >> "$cfgfile" 15434 15435# func_dirname file append nondir_replacement 15436# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15437# otherwise set result to NONDIR_REPLACEMENT. 15438func_dirname () 15439{ 15440 case ${1} in 15441 */*) func_dirname_result="${1%/*}${2}" ;; 15442 * ) func_dirname_result="${3}" ;; 15443 esac 15444} 15445 15446# func_basename file 15447func_basename () 15448{ 15449 func_basename_result="${1##*/}" 15450} 15451 15452# func_dirname_and_basename file append nondir_replacement 15453# perform func_basename and func_dirname in a single function 15454# call: 15455# dirname: Compute the dirname of FILE. If nonempty, 15456# add APPEND to the result, otherwise set result 15457# to NONDIR_REPLACEMENT. 15458# value returned in "$func_dirname_result" 15459# basename: Compute filename of FILE. 15460# value retuned in "$func_basename_result" 15461# Implementation must be kept synchronized with func_dirname 15462# and func_basename. For efficiency, we do not delegate to 15463# those functions but instead duplicate the functionality here. 15464func_dirname_and_basename () 15465{ 15466 case ${1} in 15467 */*) func_dirname_result="${1%/*}${2}" ;; 15468 * ) func_dirname_result="${3}" ;; 15469 esac 15470 func_basename_result="${1##*/}" 15471} 15472 15473# func_stripname prefix suffix name 15474# strip PREFIX and SUFFIX off of NAME. 15475# PREFIX and SUFFIX must not contain globbing or regex special 15476# characters, hashes, percent signs, but SUFFIX may contain a leading 15477# dot (in which case that matches only a dot). 15478func_stripname () 15479{ 15480 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15481 # positional parameters, so assign one to ordinary parameter first. 15482 func_stripname_result=${3} 15483 func_stripname_result=${func_stripname_result#"${1}"} 15484 func_stripname_result=${func_stripname_result%"${2}"} 15485} 15486 15487# func_opt_split 15488func_opt_split () 15489{ 15490 func_opt_split_opt=${1%%=*} 15491 func_opt_split_arg=${1#*=} 15492} 15493 15494# func_lo2o object 15495func_lo2o () 15496{ 15497 case ${1} in 15498 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15499 *) func_lo2o_result=${1} ;; 15500 esac 15501} 15502 15503# func_xform libobj-or-source 15504func_xform () 15505{ 15506 func_xform_result=${1%.*}.lo 15507} 15508 15509# func_arith arithmetic-term... 15510func_arith () 15511{ 15512 func_arith_result=$(( $* )) 15513} 15514 15515# func_len string 15516# STRING may not start with a hyphen. 15517func_len () 15518{ 15519 func_len_result=${#1} 15520} 15521 15522_LT_EOF 15523 ;; 15524 *) # Bourne compatible functions. 15525 cat << \_LT_EOF >> "$cfgfile" 15526 15527# func_dirname file append nondir_replacement 15528# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15529# otherwise set result to NONDIR_REPLACEMENT. 15530func_dirname () 15531{ 15532 # Extract subdirectory from the argument. 15533 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15534 if test "X$func_dirname_result" = "X${1}"; then 15535 func_dirname_result="${3}" 15536 else 15537 func_dirname_result="$func_dirname_result${2}" 15538 fi 15539} 15540 15541# func_basename file 15542func_basename () 15543{ 15544 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15545} 15546 15547 15548# func_stripname prefix suffix name 15549# strip PREFIX and SUFFIX off of NAME. 15550# PREFIX and SUFFIX must not contain globbing or regex special 15551# characters, hashes, percent signs, but SUFFIX may contain a leading 15552# dot (in which case that matches only a dot). 15553# func_strip_suffix prefix name 15554func_stripname () 15555{ 15556 case ${2} in 15557 .*) func_stripname_result=`$ECHO "X${3}" \ 15558 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15559 *) func_stripname_result=`$ECHO "X${3}" \ 15560 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15561 esac 15562} 15563 15564# sed scripts: 15565my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15566my_sed_long_arg='1s/^-[^=]*=//' 15567 15568# func_opt_split 15569func_opt_split () 15570{ 15571 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15572 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15573} 15574 15575# func_lo2o object 15576func_lo2o () 15577{ 15578 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15579} 15580 15581# func_xform libobj-or-source 15582func_xform () 15583{ 15584 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15585} 15586 15587# func_arith arithmetic-term... 15588func_arith () 15589{ 15590 func_arith_result=`expr "$@"` 15591} 15592 15593# func_len string 15594# STRING may not start with a hyphen. 15595func_len () 15596{ 15597 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15598} 15599 15600_LT_EOF 15601esac 15602 15603case $lt_shell_append in 15604 yes) 15605 cat << \_LT_EOF >> "$cfgfile" 15606 15607# func_append var value 15608# Append VALUE to the end of shell variable VAR. 15609func_append () 15610{ 15611 eval "$1+=\$2" 15612} 15613_LT_EOF 15614 ;; 15615 *) 15616 cat << \_LT_EOF >> "$cfgfile" 15617 15618# func_append var value 15619# Append VALUE to the end of shell variable VAR. 15620func_append () 15621{ 15622 eval "$1=\$$1\$2" 15623} 15624 15625_LT_EOF 15626 ;; 15627 esac 15628 15629 15630 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15631 || (rm -f "$cfgfile"; exit 1) 15632 15633 mv -f "$cfgfile" "$ofile" || 15634 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15635 chmod +x "$ofile" 15636 15637 ;; 15638 15639 esac 15640done # for ac_tag 15641 15642 15643{ (exit 0); exit 0; } 15644_ACEOF 15645chmod +x $CONFIG_STATUS 15646ac_clean_files=$ac_clean_files_save 15647 15648test $ac_write_fail = 0 || 15649 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15650$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15651 { (exit 1); exit 1; }; } 15652 15653 15654# configure is writing to config.log, and then calls config.status. 15655# config.status does its own redirection, appending to config.log. 15656# Unfortunately, on DOS this fails, as config.log is still kept open 15657# by configure, so config.status won't be able to write to it; its 15658# output is simply discarded. So we exec the FD to /dev/null, 15659# effectively closing config.log, so it can be properly (re)opened and 15660# appended to by config.status. When coming back to configure, we 15661# need to make the FD available again. 15662if test "$no_create" != yes; then 15663 ac_cs_success=: 15664 ac_config_status_args= 15665 test "$silent" = yes && 15666 ac_config_status_args="$ac_config_status_args --quiet" 15667 exec 5>/dev/null 15668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15669 exec 5>>config.log 15670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15671 # would make configure fail if this is the last instruction. 15672 $ac_cs_success || { (exit 1); exit 1; } 15673fi 15674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15675 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 15676$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 15677fi 15678 15679