1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for sqlite 3.7.16. 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.7.16' 747PACKAGE_STRING='sqlite 3.7.16' 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 871XTHREADCONNECT 872ALLOWRELEASE 873TEMP_STORE 874BUILD_EXEEXT 875SQLITE_OS_UNIX 876SQLITE_OS_WIN 877SQLITE_OS_OS2 878TARGET_EXEEXT 879TCL_VERSION 880TCL_BIN_DIR 881TCL_SRC_DIR 882TCL_INCLUDE_SPEC 883TCL_LIB_FILE 884TCL_LIB_FLAG 885TCL_LIB_SPEC 886TCL_STUB_LIB_FILE 887TCL_STUB_LIB_FLAG 888TCL_STUB_LIB_SPEC 889HAVE_TCL 890TARGET_READLINE_LIBS 891TARGET_READLINE_INC 892TARGET_HAVE_READLINE 893TARGET_DEBUG 894USE_AMALGAMATION 895OPT_FEATURE_FLAGS 896USE_GCOV 897BUILD_CFLAGS 898LIBOBJS 899LTLIBOBJS' 900ac_subst_files='' 901ac_user_opts=' 902enable_option_checking 903enable_shared 904enable_static 905with_pic 906enable_fast_install 907with_gnu_ld 908enable_libtool_lock 909enable_largefile 910with_hints 911enable_threadsafe 912enable_cross_thread_connections 913enable_releasemode 914enable_tempstore 915enable_tcl 916with_tcl 917enable_readline 918with_readline_lib 919with_readline_inc 920enable_debug 921enable_amalgamation 922enable_load_extension 923enable_gcov 924' 925 ac_precious_vars='build_alias 926host_alias 927target_alias 928CC 929CFLAGS 930LDFLAGS 931LIBS 932CPPFLAGS 933CPP 934TCLLIBDIR' 935 936 937# Initialize some variables set by options. 938ac_init_help= 939ac_init_version=false 940ac_unrecognized_opts= 941ac_unrecognized_sep= 942# The variables have the same names as the options, with 943# dashes changed to underlines. 944cache_file=/dev/null 945exec_prefix=NONE 946no_create= 947no_recursion= 948prefix=NONE 949program_prefix=NONE 950program_suffix=NONE 951program_transform_name=s,x,x, 952silent= 953site= 954srcdir= 955verbose= 956x_includes=NONE 957x_libraries=NONE 958 959# Installation directory options. 960# These are left unexpanded so users can "make install exec_prefix=/foo" 961# and all the variables that are supposed to be based on exec_prefix 962# by default will actually change. 963# Use braces instead of parens because sh, perl, etc. also accept them. 964# (The list follows the same order as the GNU Coding Standards.) 965bindir='${exec_prefix}/bin' 966sbindir='${exec_prefix}/sbin' 967libexecdir='${exec_prefix}/libexec' 968datarootdir='${prefix}/share' 969datadir='${datarootdir}' 970sysconfdir='${prefix}/etc' 971sharedstatedir='${prefix}/com' 972localstatedir='${prefix}/var' 973includedir='${prefix}/include' 974oldincludedir='/usr/include' 975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 976infodir='${datarootdir}/info' 977htmldir='${docdir}' 978dvidir='${docdir}' 979pdfdir='${docdir}' 980psdir='${docdir}' 981libdir='${exec_prefix}/lib' 982localedir='${datarootdir}/locale' 983mandir='${datarootdir}/man' 984 985ac_prev= 986ac_dashdash= 987for ac_option 988do 989 # If the previous option needs an argument, assign it. 990 if test -n "$ac_prev"; then 991 eval $ac_prev=\$ac_option 992 ac_prev= 993 continue 994 fi 995 996 case $ac_option in 997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 998 *) ac_optarg=yes ;; 999 esac 1000 1001 # Accept the important Cygnus configure options, so we can diagnose typos. 1002 1003 case $ac_dashdash$ac_option in 1004 --) 1005 ac_dashdash=yes ;; 1006 1007 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1008 ac_prev=bindir ;; 1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1010 bindir=$ac_optarg ;; 1011 1012 -build | --build | --buil | --bui | --bu) 1013 ac_prev=build_alias ;; 1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1015 build_alias=$ac_optarg ;; 1016 1017 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1019 ac_prev=cache_file ;; 1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1022 cache_file=$ac_optarg ;; 1023 1024 --config-cache | -C) 1025 cache_file=config.cache ;; 1026 1027 -datadir | --datadir | --datadi | --datad) 1028 ac_prev=datadir ;; 1029 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1030 datadir=$ac_optarg ;; 1031 1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1033 | --dataroo | --dataro | --datar) 1034 ac_prev=datarootdir ;; 1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1037 datarootdir=$ac_optarg ;; 1038 1039 -disable-* | --disable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1044 { (exit 1); exit 1; }; } 1045 ac_useropt_orig=$ac_useropt 1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1047 case $ac_user_opts in 1048 *" 1049"enable_$ac_useropt" 1050"*) ;; 1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1052 ac_unrecognized_sep=', ';; 1053 esac 1054 eval enable_$ac_useropt=no ;; 1055 1056 -docdir | --docdir | --docdi | --doc | --do) 1057 ac_prev=docdir ;; 1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1059 docdir=$ac_optarg ;; 1060 1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1062 ac_prev=dvidir ;; 1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1064 dvidir=$ac_optarg ;; 1065 1066 -enable-* | --enable-*) 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1071 { (exit 1); exit 1; }; } 1072 ac_useropt_orig=$ac_useropt 1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1074 case $ac_user_opts in 1075 *" 1076"enable_$ac_useropt" 1077"*) ;; 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1079 ac_unrecognized_sep=', ';; 1080 esac 1081 eval enable_$ac_useropt=\$ac_optarg ;; 1082 1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1085 | --exec | --exe | --ex) 1086 ac_prev=exec_prefix ;; 1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1089 | --exec=* | --exe=* | --ex=*) 1090 exec_prefix=$ac_optarg ;; 1091 1092 -gas | --gas | --ga | --g) 1093 # Obsolete; use --with-gas. 1094 with_gas=yes ;; 1095 1096 -help | --help | --hel | --he | -h) 1097 ac_init_help=long ;; 1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1099 ac_init_help=recursive ;; 1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1101 ac_init_help=short ;; 1102 1103 -host | --host | --hos | --ho) 1104 ac_prev=host_alias ;; 1105 -host=* | --host=* | --hos=* | --ho=*) 1106 host_alias=$ac_optarg ;; 1107 1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1109 ac_prev=htmldir ;; 1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1111 | --ht=*) 1112 htmldir=$ac_optarg ;; 1113 1114 -includedir | --includedir | --includedi | --included | --include \ 1115 | --includ | --inclu | --incl | --inc) 1116 ac_prev=includedir ;; 1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1118 | --includ=* | --inclu=* | --incl=* | --inc=*) 1119 includedir=$ac_optarg ;; 1120 1121 -infodir | --infodir | --infodi | --infod | --info | --inf) 1122 ac_prev=infodir ;; 1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1124 infodir=$ac_optarg ;; 1125 1126 -libdir | --libdir | --libdi | --libd) 1127 ac_prev=libdir ;; 1128 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1129 libdir=$ac_optarg ;; 1130 1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1132 | --libexe | --libex | --libe) 1133 ac_prev=libexecdir ;; 1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1135 | --libexe=* | --libex=* | --libe=*) 1136 libexecdir=$ac_optarg ;; 1137 1138 -localedir | --localedir | --localedi | --localed | --locale) 1139 ac_prev=localedir ;; 1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1141 localedir=$ac_optarg ;; 1142 1143 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1144 | --localstate | --localstat | --localsta | --localst | --locals) 1145 ac_prev=localstatedir ;; 1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1148 localstatedir=$ac_optarg ;; 1149 1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1151 ac_prev=mandir ;; 1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1153 mandir=$ac_optarg ;; 1154 1155 -nfp | --nfp | --nf) 1156 # Obsolete; use --without-fp. 1157 with_fp=no ;; 1158 1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1160 | --no-cr | --no-c | -n) 1161 no_create=yes ;; 1162 1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1165 no_recursion=yes ;; 1166 1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1169 | --oldin | --oldi | --old | --ol | --o) 1170 ac_prev=oldincludedir ;; 1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1174 oldincludedir=$ac_optarg ;; 1175 1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1177 ac_prev=prefix ;; 1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1179 prefix=$ac_optarg ;; 1180 1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1182 | --program-pre | --program-pr | --program-p) 1183 ac_prev=program_prefix ;; 1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1186 program_prefix=$ac_optarg ;; 1187 1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1189 | --program-suf | --program-su | --program-s) 1190 ac_prev=program_suffix ;; 1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1193 program_suffix=$ac_optarg ;; 1194 1195 -program-transform-name | --program-transform-name \ 1196 | --program-transform-nam | --program-transform-na \ 1197 | --program-transform-n | --program-transform- \ 1198 | --program-transform | --program-transfor \ 1199 | --program-transfo | --program-transf \ 1200 | --program-trans | --program-tran \ 1201 | --progr-tra | --program-tr | --program-t) 1202 ac_prev=program_transform_name ;; 1203 -program-transform-name=* | --program-transform-name=* \ 1204 | --program-transform-nam=* | --program-transform-na=* \ 1205 | --program-transform-n=* | --program-transform-=* \ 1206 | --program-transform=* | --program-transfor=* \ 1207 | --program-transfo=* | --program-transf=* \ 1208 | --program-trans=* | --program-tran=* \ 1209 | --progr-tra=* | --program-tr=* | --program-t=*) 1210 program_transform_name=$ac_optarg ;; 1211 1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1213 ac_prev=pdfdir ;; 1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1215 pdfdir=$ac_optarg ;; 1216 1217 -psdir | --psdir | --psdi | --psd | --ps) 1218 ac_prev=psdir ;; 1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1220 psdir=$ac_optarg ;; 1221 1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1223 | -silent | --silent | --silen | --sile | --sil) 1224 silent=yes ;; 1225 1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1227 ac_prev=sbindir ;; 1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1229 | --sbi=* | --sb=*) 1230 sbindir=$ac_optarg ;; 1231 1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1234 | --sharedst | --shareds | --shared | --share | --shar \ 1235 | --sha | --sh) 1236 ac_prev=sharedstatedir ;; 1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1240 | --sha=* | --sh=*) 1241 sharedstatedir=$ac_optarg ;; 1242 1243 -site | --site | --sit) 1244 ac_prev=site ;; 1245 -site=* | --site=* | --sit=*) 1246 site=$ac_optarg ;; 1247 1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1249 ac_prev=srcdir ;; 1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1251 srcdir=$ac_optarg ;; 1252 1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1254 | --syscon | --sysco | --sysc | --sys | --sy) 1255 ac_prev=sysconfdir ;; 1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1258 sysconfdir=$ac_optarg ;; 1259 1260 -target | --target | --targe | --targ | --tar | --ta | --t) 1261 ac_prev=target_alias ;; 1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1263 target_alias=$ac_optarg ;; 1264 1265 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1266 verbose=yes ;; 1267 1268 -version | --version | --versio | --versi | --vers | -V) 1269 ac_init_version=: ;; 1270 1271 -with-* | --with-*) 1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1276 { (exit 1); exit 1; }; } 1277 ac_useropt_orig=$ac_useropt 1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1279 case $ac_user_opts in 1280 *" 1281"with_$ac_useropt" 1282"*) ;; 1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1284 ac_unrecognized_sep=', ';; 1285 esac 1286 eval with_$ac_useropt=\$ac_optarg ;; 1287 1288 -without-* | --without-*) 1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1290 # Reject names that are not valid shell variable names. 1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1293 { (exit 1); exit 1; }; } 1294 ac_useropt_orig=$ac_useropt 1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1296 case $ac_user_opts in 1297 *" 1298"with_$ac_useropt" 1299"*) ;; 1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1301 ac_unrecognized_sep=', ';; 1302 esac 1303 eval with_$ac_useropt=no ;; 1304 1305 --x) 1306 # Obsolete; use --with-x. 1307 with_x=yes ;; 1308 1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1310 | --x-incl | --x-inc | --x-in | --x-i) 1311 ac_prev=x_includes ;; 1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1314 x_includes=$ac_optarg ;; 1315 1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1318 ac_prev=x_libraries ;; 1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1321 x_libraries=$ac_optarg ;; 1322 1323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1324Try \`$0 --help' for more information." >&2 1325 { (exit 1); exit 1; }; } 1326 ;; 1327 1328 *=*) 1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1330 # Reject names that are not valid shell variable names. 1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1333 { (exit 1); exit 1; }; } 1334 eval $ac_envvar=\$ac_optarg 1335 export $ac_envvar ;; 1336 1337 *) 1338 # FIXME: should be removed in autoconf 3.0. 1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1343 ;; 1344 1345 esac 1346done 1347 1348if test -n "$ac_prev"; then 1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1351 { (exit 1); exit 1; }; } 1352fi 1353 1354if test -n "$ac_unrecognized_opts"; then 1355 case $enable_option_checking in 1356 no) ;; 1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1358 { (exit 1); exit 1; }; } ;; 1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1360 esac 1361fi 1362 1363# Check all directory arguments for consistency. 1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1365 datadir sysconfdir sharedstatedir localstatedir includedir \ 1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1367 libdir localedir mandir 1368do 1369 eval ac_val=\$$ac_var 1370 # Remove trailing slashes. 1371 case $ac_val in 1372 */ ) 1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1374 eval $ac_var=\$ac_val;; 1375 esac 1376 # Be sure to have absolute directory names. 1377 case $ac_val in 1378 [\\/$]* | ?:[\\/]* ) continue;; 1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1380 esac 1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1382 { (exit 1); exit 1; }; } 1383done 1384 1385# There might be people who depend on the old broken behavior: `$host' 1386# used to hold the argument of --host etc. 1387# FIXME: To remove some day. 1388build=$build_alias 1389host=$host_alias 1390target=$target_alias 1391 1392# FIXME: To remove some day. 1393if test "x$host_alias" != x; then 1394 if test "x$build_alias" = x; then 1395 cross_compiling=maybe 1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1397 If a cross compiler is detected then cross compile mode will be used." >&2 1398 elif test "x$build_alias" != "x$host_alias"; then 1399 cross_compiling=yes 1400 fi 1401fi 1402 1403ac_tool_prefix= 1404test -n "$host_alias" && ac_tool_prefix=$host_alias- 1405 1406test "$silent" = yes && exec 6>/dev/null 1407 1408 1409ac_pwd=`pwd` && test -n "$ac_pwd" && 1410ac_ls_di=`ls -di .` && 1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1413 { (exit 1); exit 1; }; } 1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1416 { (exit 1); exit 1; }; } 1417 1418 1419# Find the source files, if location was not specified. 1420if test -z "$srcdir"; then 1421 ac_srcdir_defaulted=yes 1422 # Try the directory containing this script, then the parent directory. 1423 ac_confdir=`$as_dirname -- "$as_myself" || 1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1425 X"$as_myself" : 'X\(//\)[^/]' \| \ 1426 X"$as_myself" : 'X\(//\)$' \| \ 1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1428$as_echo X"$as_myself" | 1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)[^/].*/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\/\)$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\).*/{ 1442 s//\1/ 1443 q 1444 } 1445 s/.*/./; q'` 1446 srcdir=$ac_confdir 1447 if test ! -r "$srcdir/$ac_unique_file"; then 1448 srcdir=.. 1449 fi 1450else 1451 ac_srcdir_defaulted=no 1452fi 1453if test ! -r "$srcdir/$ac_unique_file"; then 1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1456 { (exit 1); exit 1; }; } 1457fi 1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1459ac_abs_confdir=`( 1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1461 { (exit 1); exit 1; }; } 1462 pwd)` 1463# When building in place, set srcdir=. 1464if test "$ac_abs_confdir" = "$ac_pwd"; then 1465 srcdir=. 1466fi 1467# Remove unnecessary trailing slashes from srcdir. 1468# Double slashes in file names in object file debugging info 1469# mess up M-x gdb in Emacs. 1470case $srcdir in 1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1472esac 1473for ac_var in $ac_precious_vars; do 1474 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_env_${ac_var}_value=\$${ac_var} 1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1477 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1478done 1479 1480# 1481# Report the --help message. 1482# 1483if test "$ac_init_help" = "long"; then 1484 # Omit some internal or obsolete options to make the list less imposing. 1485 # This message is too long to be a string in the A/UX 3.1 sh. 1486 cat <<_ACEOF 1487\`configure' configures sqlite 3.7.16 to adapt to many kinds of systems. 1488 1489Usage: $0 [OPTION]... [VAR=VALUE]... 1490 1491To assign environment variables (e.g., CC, CFLAGS...), specify them as 1492VAR=VALUE. See below for descriptions of some of the useful variables. 1493 1494Defaults for the options are specified in brackets. 1495 1496Configuration: 1497 -h, --help display this help and exit 1498 --help=short display options specific to this package 1499 --help=recursive display the short help of all the included packages 1500 -V, --version display version information and exit 1501 -q, --quiet, --silent do not print \`checking...' messages 1502 --cache-file=FILE cache test results in FILE [disabled] 1503 -C, --config-cache alias for \`--cache-file=config.cache' 1504 -n, --no-create do not create output files 1505 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1506 1507Installation directories: 1508 --prefix=PREFIX install architecture-independent files in PREFIX 1509 [$ac_default_prefix] 1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1511 [PREFIX] 1512 1513By default, \`make install' will install all the files in 1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1515an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1516for instance \`--prefix=\$HOME'. 1517 1518For better control, use the options below. 1519 1520Fine tuning of the installation directories: 1521 --bindir=DIR user executables [EPREFIX/bin] 1522 --sbindir=DIR system admin executables [EPREFIX/sbin] 1523 --libexecdir=DIR program executables [EPREFIX/libexec] 1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1527 --libdir=DIR object code libraries [EPREFIX/lib] 1528 --includedir=DIR C header files [PREFIX/include] 1529 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1532 --infodir=DIR info documentation [DATAROOTDIR/info] 1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1534 --mandir=DIR man documentation [DATAROOTDIR/man] 1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1536 --htmldir=DIR html documentation [DOCDIR] 1537 --dvidir=DIR dvi documentation [DOCDIR] 1538 --pdfdir=DIR pdf documentation [DOCDIR] 1539 --psdir=DIR ps documentation [DOCDIR] 1540_ACEOF 1541 1542 cat <<\_ACEOF 1543 1544System types: 1545 --build=BUILD configure for building on BUILD [guessed] 1546 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1547_ACEOF 1548fi 1549 1550if test -n "$ac_init_help"; then 1551 case $ac_init_help in 1552 short | recursive ) echo "Configuration of sqlite 3.7.16:";; 1553 esac 1554 cat <<\_ACEOF 1555 1556Optional Features: 1557 --disable-option-checking ignore unrecognized --enable/--with options 1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1560 --enable-shared[=PKGS] build shared libraries [default=yes] 1561 --enable-static[=PKGS] build static libraries [default=yes] 1562 --enable-fast-install[=PKGS] 1563 optimize for fast installation [default=yes] 1564 --disable-libtool-lock avoid locking (might break parallel builds) 1565 --disable-largefile omit support for large files 1566 --enable-threadsafe Support threadsafe operation 1567 --enable-cross-thread-connections 1568 Allow connection sharing across threads 1569 --enable-releasemode Support libtool link to release mode 1570 --enable-tempstore Use an in-ram database for temporary tables 1571 (never,no,yes,always) 1572 --disable-tcl do not build TCL extension 1573 --disable-readline disable readline support [default=detect] 1574 --enable-debug enable debugging & verbose explain 1575 --disable-amalgamation Disable the amalgamation and instead build all files 1576 separately 1577 --enable-load-extension Enable loading of external extensions 1578 --enable-gcov Enable coverage testing using gcov 1579 1580Optional Packages: 1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1583 --with-pic try to use only PIC/non-PIC objects [default=use 1584 both] 1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1586 --with-hints=FILE Read configuration options from FILE 1587 --with-tcl=DIR directory containing tcl configuration 1588 (tclConfig.sh) 1589 --with-readline-lib specify readline library 1590 --with-readline-inc specify readline include paths 1591 1592Some influential environment variables: 1593 CC C compiler command 1594 CFLAGS C compiler flags 1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1596 nonstandard directory <lib dir> 1597 LIBS libraries to pass to the linker, e.g. -l<library> 1598 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1599 you have headers in a nonstandard directory <include dir> 1600 CPP C preprocessor 1601 TCLLIBDIR Where to install tcl plugin 1602 1603Use these variables to override the choices made by `configure' or to help 1604it to find libraries and programs with nonstandard names/locations. 1605 1606_ACEOF 1607ac_status=$? 1608fi 1609 1610if test "$ac_init_help" = "recursive"; then 1611 # If there are subdirs, report their specific --help. 1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1613 test -d "$ac_dir" || 1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1615 continue 1616 ac_builddir=. 1617 1618case "$ac_dir" in 1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1620*) 1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1622 # A ".." for each directory in $ac_dir_suffix. 1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1624 case $ac_top_builddir_sub in 1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1627 esac ;; 1628esac 1629ac_abs_top_builddir=$ac_pwd 1630ac_abs_builddir=$ac_pwd$ac_dir_suffix 1631# for backward compatibility: 1632ac_top_builddir=$ac_top_build_prefix 1633 1634case $srcdir in 1635 .) # We are building in place. 1636 ac_srcdir=. 1637 ac_top_srcdir=$ac_top_builddir_sub 1638 ac_abs_top_srcdir=$ac_pwd ;; 1639 [\\/]* | ?:[\\/]* ) # Absolute name. 1640 ac_srcdir=$srcdir$ac_dir_suffix; 1641 ac_top_srcdir=$srcdir 1642 ac_abs_top_srcdir=$srcdir ;; 1643 *) # Relative name. 1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1645 ac_top_srcdir=$ac_top_build_prefix$srcdir 1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1647esac 1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1649 1650 cd "$ac_dir" || { ac_status=$?; continue; } 1651 # Check for guested configure. 1652 if test -f "$ac_srcdir/configure.gnu"; then 1653 echo && 1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1655 elif test -f "$ac_srcdir/configure"; then 1656 echo && 1657 $SHELL "$ac_srcdir/configure" --help=recursive 1658 else 1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1660 fi || ac_status=$? 1661 cd "$ac_pwd" || { ac_status=$?; break; } 1662 done 1663fi 1664 1665test -n "$ac_init_help" && exit $ac_status 1666if $ac_init_version; then 1667 cat <<\_ACEOF 1668sqlite configure 3.7.16 1669generated by GNU Autoconf 2.62 1670 1671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16722002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1673This configure script is free software; the Free Software Foundation 1674gives unlimited permission to copy, distribute and modify it. 1675_ACEOF 1676 exit 1677fi 1678cat >config.log <<_ACEOF 1679This file contains any messages produced by compilers while 1680running configure, to aid debugging if configure makes a mistake. 1681 1682It was created by sqlite $as_me 3.7.16, which was 1683generated by GNU Autoconf 2.62. Invocation command line was 1684 1685 $ $0 $@ 1686 1687_ACEOF 1688exec 5>>config.log 1689{ 1690cat <<_ASUNAME 1691## --------- ## 1692## Platform. ## 1693## --------- ## 1694 1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1696uname -m = `(uname -m) 2>/dev/null || echo unknown` 1697uname -r = `(uname -r) 2>/dev/null || echo unknown` 1698uname -s = `(uname -s) 2>/dev/null || echo unknown` 1699uname -v = `(uname -v) 2>/dev/null || echo unknown` 1700 1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1703 1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1711 1712_ASUNAME 1713 1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1715for as_dir in $PATH 1716do 1717 IFS=$as_save_IFS 1718 test -z "$as_dir" && as_dir=. 1719 $as_echo "PATH: $as_dir" 1720done 1721IFS=$as_save_IFS 1722 1723} >&5 1724 1725cat >&5 <<_ACEOF 1726 1727 1728## ----------- ## 1729## Core tests. ## 1730## ----------- ## 1731 1732_ACEOF 1733 1734 1735# Keep a trace of the command line. 1736# Strip out --no-create and --no-recursion so they do not pile up. 1737# Strip out --silent because we don't want to record it for future runs. 1738# Also quote any args containing shell meta-characters. 1739# Make two passes to allow for proper duplicate-argument suppression. 1740ac_configure_args= 1741ac_configure_args0= 1742ac_configure_args1= 1743ac_must_keep_next=false 1744for ac_pass in 1 2 1745do 1746 for ac_arg 1747 do 1748 case $ac_arg in 1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1751 | -silent | --silent | --silen | --sile | --sil) 1752 continue ;; 1753 *\'*) 1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1755 esac 1756 case $ac_pass in 1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1758 2) 1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1760 if test $ac_must_keep_next = true; then 1761 ac_must_keep_next=false # Got value, back to normal. 1762 else 1763 case $ac_arg in 1764 *=* | --config-cache | -C | -disable-* | --disable-* \ 1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1767 | -with-* | --with-* | -without-* | --without-* | --x) 1768 case "$ac_configure_args0 " in 1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1770 esac 1771 ;; 1772 -* ) ac_must_keep_next=true ;; 1773 esac 1774 fi 1775 ac_configure_args="$ac_configure_args '$ac_arg'" 1776 ;; 1777 esac 1778 done 1779done 1780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1781$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1782 1783# When interrupted or exit'd, cleanup temporary files, and complete 1784# config.log. We remove comments because anyway the quotes in there 1785# would cause problems or look ugly. 1786# WARNING: Use '\'' to represent an apostrophe within the trap. 1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1788trap 'exit_status=$? 1789 # Save into config.log some information that might help in debugging. 1790 { 1791 echo 1792 1793 cat <<\_ASBOX 1794## ---------------- ## 1795## Cache variables. ## 1796## ---------------- ## 1797_ASBOX 1798 echo 1799 # The following way of writing the cache mishandles newlines in values, 1800( 1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1802 eval ac_val=\$$ac_var 1803 case $ac_val in #( 1804 *${as_nl}*) 1805 case $ac_var in #( 1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1807$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1808 esac 1809 case $ac_var in #( 1810 _ | IFS | as_nl) ;; #( 1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1812 *) $as_unset $ac_var ;; 1813 esac ;; 1814 esac 1815 done 1816 (set) 2>&1 | 1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1818 *${as_nl}ac_space=\ *) 1819 sed -n \ 1820 "s/'\''/'\''\\\\'\'''\''/g; 1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1822 ;; #( 1823 *) 1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1825 ;; 1826 esac | 1827 sort 1828) 1829 echo 1830 1831 cat <<\_ASBOX 1832## ----------------- ## 1833## Output variables. ## 1834## ----------------- ## 1835_ASBOX 1836 echo 1837 for ac_var in $ac_subst_vars 1838 do 1839 eval ac_val=\$$ac_var 1840 case $ac_val in 1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1842 esac 1843 $as_echo "$ac_var='\''$ac_val'\''" 1844 done | sort 1845 echo 1846 1847 if test -n "$ac_subst_files"; then 1848 cat <<\_ASBOX 1849## ------------------- ## 1850## File substitutions. ## 1851## ------------------- ## 1852_ASBOX 1853 echo 1854 for ac_var in $ac_subst_files 1855 do 1856 eval ac_val=\$$ac_var 1857 case $ac_val in 1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1859 esac 1860 $as_echo "$ac_var='\''$ac_val'\''" 1861 done | sort 1862 echo 1863 fi 1864 1865 if test -s confdefs.h; then 1866 cat <<\_ASBOX 1867## ----------- ## 1868## confdefs.h. ## 1869## ----------- ## 1870_ASBOX 1871 echo 1872 cat confdefs.h 1873 echo 1874 fi 1875 test "$ac_signal" != 0 && 1876 $as_echo "$as_me: caught signal $ac_signal" 1877 $as_echo "$as_me: exit $exit_status" 1878 } >&5 1879 rm -f core *.core core.conftest.* && 1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1881 exit $exit_status 1882' 0 1883for ac_signal in 1 2 13 15; do 1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1885done 1886ac_signal=0 1887 1888# confdefs.h avoids OS command line length limits that DEFS can exceed. 1889rm -f -r conftest* confdefs.h 1890 1891# Predefined preprocessor variables. 1892 1893cat >>confdefs.h <<_ACEOF 1894#define PACKAGE_NAME "$PACKAGE_NAME" 1895_ACEOF 1896 1897 1898cat >>confdefs.h <<_ACEOF 1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1900_ACEOF 1901 1902 1903cat >>confdefs.h <<_ACEOF 1904#define PACKAGE_VERSION "$PACKAGE_VERSION" 1905_ACEOF 1906 1907 1908cat >>confdefs.h <<_ACEOF 1909#define PACKAGE_STRING "$PACKAGE_STRING" 1910_ACEOF 1911 1912 1913cat >>confdefs.h <<_ACEOF 1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1915_ACEOF 1916 1917 1918# Let the site file select an alternate cache file if it wants to. 1919# Prefer an explicitly selected file to automatically selected ones. 1920ac_site_file1=NONE 1921ac_site_file2=NONE 1922if test -n "$CONFIG_SITE"; then 1923 ac_site_file1=$CONFIG_SITE 1924elif test "x$prefix" != xNONE; then 1925 ac_site_file1=$prefix/share/config.site 1926 ac_site_file2=$prefix/etc/config.site 1927else 1928 ac_site_file1=$ac_default_prefix/share/config.site 1929 ac_site_file2=$ac_default_prefix/etc/config.site 1930fi 1931for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1932do 1933 test "x$ac_site_file" = xNONE && continue 1934 if test -r "$ac_site_file"; then 1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1936$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1937 sed 's/^/| /' "$ac_site_file" >&5 1938 . "$ac_site_file" 1939 fi 1940done 1941 1942if test -r "$cache_file"; then 1943 # Some versions of bash will fail to source /dev/null (special 1944 # files actually), so we avoid doing that. 1945 if test -f "$cache_file"; then 1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1947$as_echo "$as_me: loading cache $cache_file" >&6;} 1948 case $cache_file in 1949 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1950 *) . "./$cache_file";; 1951 esac 1952 fi 1953else 1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1955$as_echo "$as_me: creating cache $cache_file" >&6;} 1956 >$cache_file 1957fi 1958 1959# Check that the precious variables saved in the cache have kept the same 1960# value. 1961ac_cache_corrupted=false 1962for ac_var in $ac_precious_vars; do 1963 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1964 eval ac_new_set=\$ac_env_${ac_var}_set 1965 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1966 eval ac_new_val=\$ac_env_${ac_var}_value 1967 case $ac_old_set,$ac_new_set in 1968 set,) 1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1970$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1971 ac_cache_corrupted=: ;; 1972 ,set) 1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1974$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1975 ac_cache_corrupted=: ;; 1976 ,);; 1977 *) 1978 if test "x$ac_old_val" != "x$ac_new_val"; then 1979 # differences in whitespace do not lead to failure. 1980 ac_old_val_w=`echo x $ac_old_val` 1981 ac_new_val_w=`echo x $ac_new_val` 1982 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1984$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1985 ac_cache_corrupted=: 1986 else 1987 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1988$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1989 eval $ac_var=\$ac_old_val 1990 fi 1991 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1992$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1993 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1994$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1995 fi;; 1996 esac 1997 # Pass precious variables to config.status. 1998 if test "$ac_new_set" = set; then 1999 case $ac_new_val in 2000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2001 *) ac_arg=$ac_var=$ac_new_val ;; 2002 esac 2003 case " $ac_configure_args " in 2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2006 esac 2007 fi 2008done 2009if $ac_cache_corrupted; then 2010 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2011$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2012 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2013$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2014 { (exit 1); exit 1; }; } 2015fi 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041ac_ext=c 2042ac_cpp='$CPP $CPPFLAGS' 2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2045ac_compiler_gnu=$ac_cv_c_compiler_gnu 2046 2047 2048 2049sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2050if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2051{ { $as_echo "$as_me:$LINENO: error: configure script is out of date: 2052 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2053 top level VERSION file = $sqlite_version_sanity_check 2054please regen with autoconf" >&5 2055$as_echo "$as_me: error: configure script is out of date: 2056 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2057 top level VERSION file = $sqlite_version_sanity_check 2058please regen with autoconf" >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062# The following RCS revision string applies to configure.in 2063# $Revision: 1.56 $ 2064 2065######### 2066# Programs needed 2067# 2068case `pwd` in 2069 *\ * | *\ *) 2070 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2071$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2072esac 2073 2074 2075 2076macro_version='2.2.6' 2077macro_revision='1.3012' 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091ltmain="$ac_aux_dir/ltmain.sh" 2092 2093ac_aux_dir= 2094for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2095 if test -f "$ac_dir/install-sh"; then 2096 ac_aux_dir=$ac_dir 2097 ac_install_sh="$ac_aux_dir/install-sh -c" 2098 break 2099 elif test -f "$ac_dir/install.sh"; then 2100 ac_aux_dir=$ac_dir 2101 ac_install_sh="$ac_aux_dir/install.sh -c" 2102 break 2103 elif test -f "$ac_dir/shtool"; then 2104 ac_aux_dir=$ac_dir 2105 ac_install_sh="$ac_aux_dir/shtool install -c" 2106 break 2107 fi 2108done 2109if test -z "$ac_aux_dir"; then 2110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2111$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2112 { (exit 1); exit 1; }; } 2113fi 2114 2115# These three variables are undocumented and unsupported, 2116# and are intended to be withdrawn in a future Autoconf release. 2117# They can cause serious problems if a builder's source tree is in a directory 2118# whose full name contains unusual characters. 2119ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2120ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2121ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2122 2123 2124# Make sure we can run config.sub. 2125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2126 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2127$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2128 { (exit 1); exit 1; }; } 2129 2130{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2131$as_echo_n "checking build system type... " >&6; } 2132if test "${ac_cv_build+set}" = set; then 2133 $as_echo_n "(cached) " >&6 2134else 2135 ac_build_alias=$build_alias 2136test "x$ac_build_alias" = x && 2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2138test "x$ac_build_alias" = x && 2139 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2140$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2141 { (exit 1); exit 1; }; } 2142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2145 { (exit 1); exit 1; }; } 2146 2147fi 2148{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2149$as_echo "$ac_cv_build" >&6; } 2150case $ac_cv_build in 2151*-*-*) ;; 2152*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2153$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2154 { (exit 1); exit 1; }; };; 2155esac 2156build=$ac_cv_build 2157ac_save_IFS=$IFS; IFS='-' 2158set x $ac_cv_build 2159shift 2160build_cpu=$1 2161build_vendor=$2 2162shift; shift 2163# Remember, the first character of IFS is used to create $*, 2164# except with old shells: 2165build_os=$* 2166IFS=$ac_save_IFS 2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2168 2169 2170{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2171$as_echo_n "checking host system type... " >&6; } 2172if test "${ac_cv_host+set}" = set; then 2173 $as_echo_n "(cached) " >&6 2174else 2175 if test "x$host_alias" = x; then 2176 ac_cv_host=$ac_cv_build 2177else 2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2179 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2180$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2181 { (exit 1); exit 1; }; } 2182fi 2183 2184fi 2185{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2186$as_echo "$ac_cv_host" >&6; } 2187case $ac_cv_host in 2188*-*-*) ;; 2189*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2190$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2191 { (exit 1); exit 1; }; };; 2192esac 2193host=$ac_cv_host 2194ac_save_IFS=$IFS; IFS='-' 2195set x $ac_cv_host 2196shift 2197host_cpu=$1 2198host_vendor=$2 2199shift; shift 2200# Remember, the first character of IFS is used to create $*, 2201# except with old shells: 2202host_os=$* 2203IFS=$ac_save_IFS 2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2205 2206 2207ac_ext=c 2208ac_cpp='$CPP $CPPFLAGS' 2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2211ac_compiler_gnu=$ac_cv_c_compiler_gnu 2212if test -n "$ac_tool_prefix"; then 2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2214set dummy ${ac_tool_prefix}gcc; ac_word=$2 2215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2216$as_echo_n "checking for $ac_word... " >&6; } 2217if test "${ac_cv_prog_CC+set}" = set; then 2218 $as_echo_n "(cached) " >&6 2219else 2220 if test -n "$CC"; then 2221 ac_cv_prog_CC="$CC" # Let the user override the test. 2222else 2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224for as_dir in $PATH 2225do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 for ac_exec_ext in '' $ac_executable_extensions; do 2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2230 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2232 break 2 2233 fi 2234done 2235done 2236IFS=$as_save_IFS 2237 2238fi 2239fi 2240CC=$ac_cv_prog_CC 2241if test -n "$CC"; then 2242 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2243$as_echo "$CC" >&6; } 2244else 2245 { $as_echo "$as_me:$LINENO: result: no" >&5 2246$as_echo "no" >&6; } 2247fi 2248 2249 2250fi 2251if test -z "$ac_cv_prog_CC"; then 2252 ac_ct_CC=$CC 2253 # Extract the first word of "gcc", so it can be a program name with args. 2254set dummy gcc; ac_word=$2 2255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2256$as_echo_n "checking for $ac_word... " >&6; } 2257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2258 $as_echo_n "(cached) " >&6 2259else 2260 if test -n "$ac_ct_CC"; then 2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2262else 2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264for as_dir in $PATH 2265do 2266 IFS=$as_save_IFS 2267 test -z "$as_dir" && as_dir=. 2268 for ac_exec_ext in '' $ac_executable_extensions; do 2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2270 ac_cv_prog_ac_ct_CC="gcc" 2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2272 break 2 2273 fi 2274done 2275done 2276IFS=$as_save_IFS 2277 2278fi 2279fi 2280ac_ct_CC=$ac_cv_prog_ac_ct_CC 2281if test -n "$ac_ct_CC"; then 2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2283$as_echo "$ac_ct_CC" >&6; } 2284else 2285 { $as_echo "$as_me:$LINENO: result: no" >&5 2286$as_echo "no" >&6; } 2287fi 2288 2289 if test "x$ac_ct_CC" = x; then 2290 CC="" 2291 else 2292 case $cross_compiling:$ac_tool_warned in 2293yes:) 2294{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2295whose name does not start with the host triplet. If you think this 2296configuration is useful to you, please write to autoconf@gnu.org." >&5 2297$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2298whose name does not start with the host triplet. If you think this 2299configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2300ac_tool_warned=yes ;; 2301esac 2302 CC=$ac_ct_CC 2303 fi 2304else 2305 CC="$ac_cv_prog_CC" 2306fi 2307 2308if test -z "$CC"; then 2309 if test -n "$ac_tool_prefix"; then 2310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2311set dummy ${ac_tool_prefix}cc; ac_word=$2 2312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2313$as_echo_n "checking for $ac_word... " >&6; } 2314if test "${ac_cv_prog_CC+set}" = set; then 2315 $as_echo_n "(cached) " >&6 2316else 2317 if test -n "$CC"; then 2318 ac_cv_prog_CC="$CC" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2327 ac_cv_prog_CC="${ac_tool_prefix}cc" 2328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332done 2333IFS=$as_save_IFS 2334 2335fi 2336fi 2337CC=$ac_cv_prog_CC 2338if test -n "$CC"; then 2339 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2340$as_echo "$CC" >&6; } 2341else 2342 { $as_echo "$as_me:$LINENO: result: no" >&5 2343$as_echo "no" >&6; } 2344fi 2345 2346 2347 fi 2348fi 2349if test -z "$CC"; then 2350 # Extract the first word of "cc", so it can be a program name with args. 2351set dummy cc; ac_word=$2 2352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2353$as_echo_n "checking for $ac_word... " >&6; } 2354if test "${ac_cv_prog_CC+set}" = set; then 2355 $as_echo_n "(cached) " >&6 2356else 2357 if test -n "$CC"; then 2358 ac_cv_prog_CC="$CC" # Let the user override the test. 2359else 2360 ac_prog_rejected=no 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2369 ac_prog_rejected=yes 2370 continue 2371 fi 2372 ac_cv_prog_CC="cc" 2373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2374 break 2 2375 fi 2376done 2377done 2378IFS=$as_save_IFS 2379 2380if test $ac_prog_rejected = yes; then 2381 # We found a bogon in the path, so make sure we never use it. 2382 set dummy $ac_cv_prog_CC 2383 shift 2384 if test $# != 0; then 2385 # We chose a different compiler from the bogus one. 2386 # However, it has the same basename, so the bogon will be chosen 2387 # first if we set CC to just the basename; use the full file name. 2388 shift 2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2390 fi 2391fi 2392fi 2393fi 2394CC=$ac_cv_prog_CC 2395if test -n "$CC"; then 2396 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2397$as_echo "$CC" >&6; } 2398else 2399 { $as_echo "$as_me:$LINENO: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 2404fi 2405if test -z "$CC"; then 2406 if test -n "$ac_tool_prefix"; then 2407 for ac_prog in cl.exe 2408 do 2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2410set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2412$as_echo_n "checking for $ac_word... " >&6; } 2413if test "${ac_cv_prog_CC+set}" = set; then 2414 $as_echo_n "(cached) " >&6 2415else 2416 if test -n "$CC"; then 2417 ac_cv_prog_CC="$CC" # Let the user override the test. 2418else 2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2420for as_dir in $PATH 2421do 2422 IFS=$as_save_IFS 2423 test -z "$as_dir" && as_dir=. 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2428 break 2 2429 fi 2430done 2431done 2432IFS=$as_save_IFS 2433 2434fi 2435fi 2436CC=$ac_cv_prog_CC 2437if test -n "$CC"; then 2438 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2439$as_echo "$CC" >&6; } 2440else 2441 { $as_echo "$as_me:$LINENO: result: no" >&5 2442$as_echo "no" >&6; } 2443fi 2444 2445 2446 test -n "$CC" && break 2447 done 2448fi 2449if test -z "$CC"; then 2450 ac_ct_CC=$CC 2451 for ac_prog in cl.exe 2452do 2453 # Extract the first word of "$ac_prog", so it can be a program name with args. 2454set dummy $ac_prog; ac_word=$2 2455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$ac_ct_CC"; then 2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2470 ac_cv_prog_ac_ct_CC="$ac_prog" 2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480ac_ct_CC=$ac_cv_prog_ac_ct_CC 2481if test -n "$ac_ct_CC"; then 2482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2483$as_echo "$ac_ct_CC" >&6; } 2484else 2485 { $as_echo "$as_me:$LINENO: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 2490 test -n "$ac_ct_CC" && break 2491done 2492 2493 if test "x$ac_ct_CC" = x; then 2494 CC="" 2495 else 2496 case $cross_compiling:$ac_tool_warned in 2497yes:) 2498{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2499whose name does not start with the host triplet. If you think this 2500configuration is useful to you, please write to autoconf@gnu.org." >&5 2501$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2502whose name does not start with the host triplet. If you think this 2503configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2504ac_tool_warned=yes ;; 2505esac 2506 CC=$ac_ct_CC 2507 fi 2508fi 2509 2510fi 2511 2512 2513test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2514See \`config.log' for more details." >&5 2515$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2516See \`config.log' for more details." >&2;} 2517 { (exit 1); exit 1; }; } 2518 2519# Provide some information about the compiler. 2520$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2521set X $ac_compile 2522ac_compiler=$2 2523{ (ac_try="$ac_compiler --version >&5" 2524case "(($ac_try" in 2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2526 *) ac_try_echo=$ac_try;; 2527esac 2528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2529$as_echo "$ac_try_echo") >&5 2530 (eval "$ac_compiler --version >&5") 2>&5 2531 ac_status=$? 2532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2533 (exit $ac_status); } 2534{ (ac_try="$ac_compiler -v >&5" 2535case "(($ac_try" in 2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2537 *) ac_try_echo=$ac_try;; 2538esac 2539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2540$as_echo "$ac_try_echo") >&5 2541 (eval "$ac_compiler -v >&5") 2>&5 2542 ac_status=$? 2543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2544 (exit $ac_status); } 2545{ (ac_try="$ac_compiler -V >&5" 2546case "(($ac_try" in 2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2548 *) ac_try_echo=$ac_try;; 2549esac 2550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2551$as_echo "$ac_try_echo") >&5 2552 (eval "$ac_compiler -V >&5") 2>&5 2553 ac_status=$? 2554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); } 2556 2557cat >conftest.$ac_ext <<_ACEOF 2558/* confdefs.h. */ 2559_ACEOF 2560cat confdefs.h >>conftest.$ac_ext 2561cat >>conftest.$ac_ext <<_ACEOF 2562/* end confdefs.h. */ 2563 2564int 2565main () 2566{ 2567 2568 ; 2569 return 0; 2570} 2571_ACEOF 2572ac_clean_files_save=$ac_clean_files 2573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2574# Try to create an executable without -o first, disregard a.out. 2575# It will help us diagnose broken compilers, and finding out an intuition 2576# of exeext. 2577{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2578$as_echo_n "checking for C compiler default output file name... " >&6; } 2579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2580 2581# The possible output files: 2582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2583 2584ac_rmfiles= 2585for ac_file in $ac_files 2586do 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2590 esac 2591done 2592rm -f $ac_rmfiles 2593 2594if { (ac_try="$ac_link_default" 2595case "(($ac_try" in 2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2597 *) ac_try_echo=$ac_try;; 2598esac 2599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2600$as_echo "$ac_try_echo") >&5 2601 (eval "$ac_link_default") 2>&5 2602 ac_status=$? 2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 (exit $ac_status); }; then 2605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2607# in a Makefile. We should not override ac_cv_exeext if it was cached, 2608# so that the user can short-circuit this test for compilers unknown to 2609# Autoconf. 2610for ac_file in $ac_files '' 2611do 2612 test -f "$ac_file" || continue 2613 case $ac_file in 2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2615 ;; 2616 [ab].out ) 2617 # We found the default executable, but exeext='' is most 2618 # certainly right. 2619 break;; 2620 *.* ) 2621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2622 then :; else 2623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2624 fi 2625 # We set ac_cv_exeext here because the later test for it is not 2626 # safe: cross compilers may not add the suffix if given an `-o' 2627 # argument, so we may need to know it at that point already. 2628 # Even if this section looks crufty: it has the advantage of 2629 # actually working. 2630 break;; 2631 * ) 2632 break;; 2633 esac 2634done 2635test "$ac_cv_exeext" = no && ac_cv_exeext= 2636 2637else 2638 ac_file='' 2639fi 2640 2641{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2642$as_echo "$ac_file" >&6; } 2643if test -z "$ac_file"; then 2644 $as_echo "$as_me: failed program was:" >&5 2645sed 's/^/| /' conftest.$ac_ext >&5 2646 2647{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2648See \`config.log' for more details." >&5 2649$as_echo "$as_me: error: C compiler cannot create executables 2650See \`config.log' for more details." >&2;} 2651 { (exit 77); exit 77; }; } 2652fi 2653 2654ac_exeext=$ac_cv_exeext 2655 2656# Check that the compiler produces executables we can run. If not, either 2657# the compiler is broken, or we cross compile. 2658{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2659$as_echo_n "checking whether the C compiler works... " >&6; } 2660# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2661# If not cross compiling, check that we can run a simple program. 2662if test "$cross_compiling" != yes; then 2663 if { ac_try='./$ac_file' 2664 { (case "(($ac_try" in 2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2666 *) ac_try_echo=$ac_try;; 2667esac 2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2669$as_echo "$ac_try_echo") >&5 2670 (eval "$ac_try") 2>&5 2671 ac_status=$? 2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; }; then 2674 cross_compiling=no 2675 else 2676 if test "$cross_compiling" = maybe; then 2677 cross_compiling=yes 2678 else 2679 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2680If you meant to cross compile, use \`--host'. 2681See \`config.log' for more details." >&5 2682$as_echo "$as_me: error: cannot run C compiled programs. 2683If you meant to cross compile, use \`--host'. 2684See \`config.log' for more details." >&2;} 2685 { (exit 1); exit 1; }; } 2686 fi 2687 fi 2688fi 2689{ $as_echo "$as_me:$LINENO: result: yes" >&5 2690$as_echo "yes" >&6; } 2691 2692rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2693ac_clean_files=$ac_clean_files_save 2694# Check that the compiler produces executables we can run. If not, either 2695# the compiler is broken, or we cross compile. 2696{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2697$as_echo_n "checking whether we are cross compiling... " >&6; } 2698{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2699$as_echo "$cross_compiling" >&6; } 2700 2701{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2702$as_echo_n "checking for suffix of executables... " >&6; } 2703if { (ac_try="$ac_link" 2704case "(($ac_try" in 2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2706 *) ac_try_echo=$ac_try;; 2707esac 2708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2709$as_echo "$ac_try_echo") >&5 2710 (eval "$ac_link") 2>&5 2711 ac_status=$? 2712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); }; then 2714 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2715# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2716# work properly (i.e., refer to `conftest.exe'), while it won't with 2717# `rm'. 2718for ac_file in conftest.exe conftest conftest.*; do 2719 test -f "$ac_file" || continue 2720 case $ac_file in 2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2723 break;; 2724 * ) break;; 2725 esac 2726done 2727else 2728 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2729See \`config.log' for more details." >&5 2730$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2731See \`config.log' for more details." >&2;} 2732 { (exit 1); exit 1; }; } 2733fi 2734 2735rm -f conftest$ac_cv_exeext 2736{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2737$as_echo "$ac_cv_exeext" >&6; } 2738 2739rm -f conftest.$ac_ext 2740EXEEXT=$ac_cv_exeext 2741ac_exeext=$EXEEXT 2742{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2743$as_echo_n "checking for suffix of object files... " >&6; } 2744if test "${ac_cv_objext+set}" = set; then 2745 $as_echo_n "(cached) " >&6 2746else 2747 cat >conftest.$ac_ext <<_ACEOF 2748/* confdefs.h. */ 2749_ACEOF 2750cat confdefs.h >>conftest.$ac_ext 2751cat >>conftest.$ac_ext <<_ACEOF 2752/* end confdefs.h. */ 2753 2754int 2755main () 2756{ 2757 2758 ; 2759 return 0; 2760} 2761_ACEOF 2762rm -f conftest.o conftest.obj 2763if { (ac_try="$ac_compile" 2764case "(($ac_try" in 2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2766 *) ac_try_echo=$ac_try;; 2767esac 2768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2769$as_echo "$ac_try_echo") >&5 2770 (eval "$ac_compile") 2>&5 2771 ac_status=$? 2772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; then 2774 for ac_file in conftest.o conftest.obj conftest.*; do 2775 test -f "$ac_file" || continue; 2776 case $ac_file in 2777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2779 break;; 2780 esac 2781done 2782else 2783 $as_echo "$as_me: failed program was:" >&5 2784sed 's/^/| /' conftest.$ac_ext >&5 2785 2786{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2787See \`config.log' for more details." >&5 2788$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2789See \`config.log' for more details." >&2;} 2790 { (exit 1); exit 1; }; } 2791fi 2792 2793rm -f conftest.$ac_cv_objext conftest.$ac_ext 2794fi 2795{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2796$as_echo "$ac_cv_objext" >&6; } 2797OBJEXT=$ac_cv_objext 2798ac_objext=$OBJEXT 2799{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2800$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2801if test "${ac_cv_c_compiler_gnu+set}" = set; then 2802 $as_echo_n "(cached) " >&6 2803else 2804 cat >conftest.$ac_ext <<_ACEOF 2805/* confdefs.h. */ 2806_ACEOF 2807cat confdefs.h >>conftest.$ac_ext 2808cat >>conftest.$ac_ext <<_ACEOF 2809/* end confdefs.h. */ 2810 2811int 2812main () 2813{ 2814#ifndef __GNUC__ 2815 choke me 2816#endif 2817 2818 ; 2819 return 0; 2820} 2821_ACEOF 2822rm -f conftest.$ac_objext 2823if { (ac_try="$ac_compile" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2829$as_echo "$ac_try_echo") >&5 2830 (eval "$ac_compile") 2>conftest.er1 2831 ac_status=$? 2832 grep -v '^ *+' conftest.er1 >conftest.err 2833 rm -f conftest.er1 2834 cat conftest.err >&5 2835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836 (exit $ac_status); } && { 2837 test -z "$ac_c_werror_flag" || 2838 test ! -s conftest.err 2839 } && test -s conftest.$ac_objext; then 2840 ac_compiler_gnu=yes 2841else 2842 $as_echo "$as_me: failed program was:" >&5 2843sed 's/^/| /' conftest.$ac_ext >&5 2844 2845 ac_compiler_gnu=no 2846fi 2847 2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2849ac_cv_c_compiler_gnu=$ac_compiler_gnu 2850 2851fi 2852{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2853$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2854if test $ac_compiler_gnu = yes; then 2855 GCC=yes 2856else 2857 GCC= 2858fi 2859ac_test_CFLAGS=${CFLAGS+set} 2860ac_save_CFLAGS=$CFLAGS 2861{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2862$as_echo_n "checking whether $CC accepts -g... " >&6; } 2863if test "${ac_cv_prog_cc_g+set}" = set; then 2864 $as_echo_n "(cached) " >&6 2865else 2866 ac_save_c_werror_flag=$ac_c_werror_flag 2867 ac_c_werror_flag=yes 2868 ac_cv_prog_cc_g=no 2869 CFLAGS="-g" 2870 cat >conftest.$ac_ext <<_ACEOF 2871/* confdefs.h. */ 2872_ACEOF 2873cat confdefs.h >>conftest.$ac_ext 2874cat >>conftest.$ac_ext <<_ACEOF 2875/* end confdefs.h. */ 2876 2877int 2878main () 2879{ 2880 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885rm -f conftest.$ac_objext 2886if { (ac_try="$ac_compile" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2892$as_echo "$ac_try_echo") >&5 2893 (eval "$ac_compile") 2>conftest.er1 2894 ac_status=$? 2895 grep -v '^ *+' conftest.er1 >conftest.err 2896 rm -f conftest.er1 2897 cat conftest.err >&5 2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); } && { 2900 test -z "$ac_c_werror_flag" || 2901 test ! -s conftest.err 2902 } && test -s conftest.$ac_objext; then 2903 ac_cv_prog_cc_g=yes 2904else 2905 $as_echo "$as_me: failed program was:" >&5 2906sed 's/^/| /' conftest.$ac_ext >&5 2907 2908 CFLAGS="" 2909 cat >conftest.$ac_ext <<_ACEOF 2910/* confdefs.h. */ 2911_ACEOF 2912cat confdefs.h >>conftest.$ac_ext 2913cat >>conftest.$ac_ext <<_ACEOF 2914/* end confdefs.h. */ 2915 2916int 2917main () 2918{ 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924rm -f conftest.$ac_objext 2925if { (ac_try="$ac_compile" 2926case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929esac 2930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2931$as_echo "$ac_try_echo") >&5 2932 (eval "$ac_compile") 2>conftest.er1 2933 ac_status=$? 2934 grep -v '^ *+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } && { 2939 test -z "$ac_c_werror_flag" || 2940 test ! -s conftest.err 2941 } && test -s conftest.$ac_objext; then 2942 : 2943else 2944 $as_echo "$as_me: failed program was:" >&5 2945sed 's/^/| /' conftest.$ac_ext >&5 2946 2947 ac_c_werror_flag=$ac_save_c_werror_flag 2948 CFLAGS="-g" 2949 cat >conftest.$ac_ext <<_ACEOF 2950/* confdefs.h. */ 2951_ACEOF 2952cat confdefs.h >>conftest.$ac_ext 2953cat >>conftest.$ac_ext <<_ACEOF 2954/* end confdefs.h. */ 2955 2956int 2957main () 2958{ 2959 2960 ; 2961 return 0; 2962} 2963_ACEOF 2964rm -f conftest.$ac_objext 2965if { (ac_try="$ac_compile" 2966case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2971$as_echo "$ac_try_echo") >&5 2972 (eval "$ac_compile") 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } && { 2979 test -z "$ac_c_werror_flag" || 2980 test ! -s conftest.err 2981 } && test -s conftest.$ac_objext; then 2982 ac_cv_prog_cc_g=yes 2983else 2984 $as_echo "$as_me: failed program was:" >&5 2985sed 's/^/| /' conftest.$ac_ext >&5 2986 2987 2988fi 2989 2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2991fi 2992 2993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2994fi 2995 2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2997 ac_c_werror_flag=$ac_save_c_werror_flag 2998fi 2999{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3000$as_echo "$ac_cv_prog_cc_g" >&6; } 3001if test "$ac_test_CFLAGS" = set; then 3002 CFLAGS=$ac_save_CFLAGS 3003elif test $ac_cv_prog_cc_g = yes; then 3004 if test "$GCC" = yes; then 3005 CFLAGS="-g -O2" 3006 else 3007 CFLAGS="-g" 3008 fi 3009else 3010 if test "$GCC" = yes; then 3011 CFLAGS="-O2" 3012 else 3013 CFLAGS= 3014 fi 3015fi 3016{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3017$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3018if test "${ac_cv_prog_cc_c89+set}" = set; then 3019 $as_echo_n "(cached) " >&6 3020else 3021 ac_cv_prog_cc_c89=no 3022ac_save_CC=$CC 3023cat >conftest.$ac_ext <<_ACEOF 3024/* confdefs.h. */ 3025_ACEOF 3026cat confdefs.h >>conftest.$ac_ext 3027cat >>conftest.$ac_ext <<_ACEOF 3028/* end confdefs.h. */ 3029#include <stdarg.h> 3030#include <stdio.h> 3031#include <sys/types.h> 3032#include <sys/stat.h> 3033/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3034struct buf { int x; }; 3035FILE * (*rcsopen) (struct buf *, struct stat *, int); 3036static char *e (p, i) 3037 char **p; 3038 int i; 3039{ 3040 return p[i]; 3041} 3042static char *f (char * (*g) (char **, int), char **p, ...) 3043{ 3044 char *s; 3045 va_list v; 3046 va_start (v,p); 3047 s = g (p, va_arg (v,int)); 3048 va_end (v); 3049 return s; 3050} 3051 3052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3053 function prototypes and stuff, but not '\xHH' hex character constants. 3054 These don't provoke an error unfortunately, instead are silently treated 3055 as 'x'. The following induces an error, until -std is added to get 3056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3057 array size at least. It's necessary to write '\x00'==0 to get something 3058 that's true only with -std. */ 3059int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3060 3061/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3062 inside strings and character constants. */ 3063#define FOO(x) 'x' 3064int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3065 3066int test (int i, double x); 3067struct s1 {int (*f) (int a);}; 3068struct s2 {int (*f) (double a);}; 3069int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3070int argc; 3071char **argv; 3072int 3073main () 3074{ 3075return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3076 ; 3077 return 0; 3078} 3079_ACEOF 3080for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3082do 3083 CC="$ac_save_CC $ac_arg" 3084 rm -f conftest.$ac_objext 3085if { (ac_try="$ac_compile" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3091$as_echo "$ac_try_echo") >&5 3092 (eval "$ac_compile") 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } && { 3099 test -z "$ac_c_werror_flag" || 3100 test ! -s conftest.err 3101 } && test -s conftest.$ac_objext; then 3102 ac_cv_prog_cc_c89=$ac_arg 3103else 3104 $as_echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 3108fi 3109 3110rm -f core conftest.err conftest.$ac_objext 3111 test "x$ac_cv_prog_cc_c89" != "xno" && break 3112done 3113rm -f conftest.$ac_ext 3114CC=$ac_save_CC 3115 3116fi 3117# AC_CACHE_VAL 3118case "x$ac_cv_prog_cc_c89" in 3119 x) 3120 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3121$as_echo "none needed" >&6; } ;; 3122 xno) 3123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3124$as_echo "unsupported" >&6; } ;; 3125 *) 3126 CC="$CC $ac_cv_prog_cc_c89" 3127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3128$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3129esac 3130 3131 3132ac_ext=c 3133ac_cpp='$CPP $CPPFLAGS' 3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3136ac_compiler_gnu=$ac_cv_c_compiler_gnu 3137 3138{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3139$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3140if test "${ac_cv_path_SED+set}" = set; then 3141 $as_echo_n "(cached) " >&6 3142else 3143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3144 for ac_i in 1 2 3 4 5 6 7; do 3145 ac_script="$ac_script$as_nl$ac_script" 3146 done 3147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3148 $as_unset ac_script || ac_script= 3149 if test -z "$SED"; then 3150 ac_path_SED_found=false 3151 # Loop through the user's path and test for each of PROGNAME-LIST 3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_prog in sed gsed; do 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3161# Check for GNU ac_path_SED and select it if it is found. 3162 # Check for GNU $ac_path_SED 3163case `"$ac_path_SED" --version 2>&1` in 3164*GNU*) 3165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3166*) 3167 ac_count=0 3168 $as_echo_n 0123456789 >"conftest.in" 3169 while : 3170 do 3171 cat "conftest.in" "conftest.in" >"conftest.tmp" 3172 mv "conftest.tmp" "conftest.in" 3173 cp "conftest.in" "conftest.nl" 3174 $as_echo '' >> "conftest.nl" 3175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3177 ac_count=`expr $ac_count + 1` 3178 if test $ac_count -gt ${ac_path_SED_max-0}; then 3179 # Best one so far, save it but keep looking for a better one 3180 ac_cv_path_SED="$ac_path_SED" 3181 ac_path_SED_max=$ac_count 3182 fi 3183 # 10*(2^10) chars as input seems more than enough 3184 test $ac_count -gt 10 && break 3185 done 3186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3187esac 3188 3189 $ac_path_SED_found && break 3 3190 done 3191 done 3192done 3193IFS=$as_save_IFS 3194 if test -z "$ac_cv_path_SED"; then 3195 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3196$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3197 { (exit 1); exit 1; }; } 3198 fi 3199else 3200 ac_cv_path_SED=$SED 3201fi 3202 3203fi 3204{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3205$as_echo "$ac_cv_path_SED" >&6; } 3206 SED="$ac_cv_path_SED" 3207 rm -f conftest.sed 3208 3209test -z "$SED" && SED=sed 3210Xsed="$SED -e 1s/^X//" 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3223$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3224if test "${ac_cv_path_GREP+set}" = set; then 3225 $as_echo_n "(cached) " >&6 3226else 3227 if test -z "$GREP"; then 3228 ac_path_GREP_found=false 3229 # Loop through the user's path and test for each of PROGNAME-LIST 3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_prog in grep ggrep; do 3236 for ac_exec_ext in '' $ac_executable_extensions; do 3237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3238 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3239# Check for GNU ac_path_GREP and select it if it is found. 3240 # Check for GNU $ac_path_GREP 3241case `"$ac_path_GREP" --version 2>&1` in 3242*GNU*) 3243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3244*) 3245 ac_count=0 3246 $as_echo_n 0123456789 >"conftest.in" 3247 while : 3248 do 3249 cat "conftest.in" "conftest.in" >"conftest.tmp" 3250 mv "conftest.tmp" "conftest.in" 3251 cp "conftest.in" "conftest.nl" 3252 $as_echo 'GREP' >> "conftest.nl" 3253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3255 ac_count=`expr $ac_count + 1` 3256 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3257 # Best one so far, save it but keep looking for a better one 3258 ac_cv_path_GREP="$ac_path_GREP" 3259 ac_path_GREP_max=$ac_count 3260 fi 3261 # 10*(2^10) chars as input seems more than enough 3262 test $ac_count -gt 10 && break 3263 done 3264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3265esac 3266 3267 $ac_path_GREP_found && break 3 3268 done 3269 done 3270done 3271IFS=$as_save_IFS 3272 if test -z "$ac_cv_path_GREP"; then 3273 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3274$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3275 { (exit 1); exit 1; }; } 3276 fi 3277else 3278 ac_cv_path_GREP=$GREP 3279fi 3280 3281fi 3282{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3283$as_echo "$ac_cv_path_GREP" >&6; } 3284 GREP="$ac_cv_path_GREP" 3285 3286 3287{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3288$as_echo_n "checking for egrep... " >&6; } 3289if test "${ac_cv_path_EGREP+set}" = set; then 3290 $as_echo_n "(cached) " >&6 3291else 3292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3293 then ac_cv_path_EGREP="$GREP -E" 3294 else 3295 if test -z "$EGREP"; then 3296 ac_path_EGREP_found=false 3297 # Loop through the user's path and test for each of PROGNAME-LIST 3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3300do 3301 IFS=$as_save_IFS 3302 test -z "$as_dir" && as_dir=. 3303 for ac_prog in egrep; do 3304 for ac_exec_ext in '' $ac_executable_extensions; do 3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3307# Check for GNU ac_path_EGREP and select it if it is found. 3308 # Check for GNU $ac_path_EGREP 3309case `"$ac_path_EGREP" --version 2>&1` in 3310*GNU*) 3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3312*) 3313 ac_count=0 3314 $as_echo_n 0123456789 >"conftest.in" 3315 while : 3316 do 3317 cat "conftest.in" "conftest.in" >"conftest.tmp" 3318 mv "conftest.tmp" "conftest.in" 3319 cp "conftest.in" "conftest.nl" 3320 $as_echo 'EGREP' >> "conftest.nl" 3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3323 ac_count=`expr $ac_count + 1` 3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3325 # Best one so far, save it but keep looking for a better one 3326 ac_cv_path_EGREP="$ac_path_EGREP" 3327 ac_path_EGREP_max=$ac_count 3328 fi 3329 # 10*(2^10) chars as input seems more than enough 3330 test $ac_count -gt 10 && break 3331 done 3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3333esac 3334 3335 $ac_path_EGREP_found && break 3 3336 done 3337 done 3338done 3339IFS=$as_save_IFS 3340 if test -z "$ac_cv_path_EGREP"; then 3341 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3342$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3343 { (exit 1); exit 1; }; } 3344 fi 3345else 3346 ac_cv_path_EGREP=$EGREP 3347fi 3348 3349 fi 3350fi 3351{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3352$as_echo "$ac_cv_path_EGREP" >&6; } 3353 EGREP="$ac_cv_path_EGREP" 3354 3355 3356{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 3357$as_echo_n "checking for fgrep... " >&6; } 3358if test "${ac_cv_path_FGREP+set}" = set; then 3359 $as_echo_n "(cached) " >&6 3360else 3361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3362 then ac_cv_path_FGREP="$GREP -F" 3363 else 3364 if test -z "$FGREP"; then 3365 ac_path_FGREP_found=false 3366 # Loop through the user's path and test for each of PROGNAME-LIST 3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_prog in fgrep; do 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3375 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3376# Check for GNU ac_path_FGREP and select it if it is found. 3377 # Check for GNU $ac_path_FGREP 3378case `"$ac_path_FGREP" --version 2>&1` in 3379*GNU*) 3380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3381*) 3382 ac_count=0 3383 $as_echo_n 0123456789 >"conftest.in" 3384 while : 3385 do 3386 cat "conftest.in" "conftest.in" >"conftest.tmp" 3387 mv "conftest.tmp" "conftest.in" 3388 cp "conftest.in" "conftest.nl" 3389 $as_echo 'FGREP' >> "conftest.nl" 3390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3392 ac_count=`expr $ac_count + 1` 3393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3394 # Best one so far, save it but keep looking for a better one 3395 ac_cv_path_FGREP="$ac_path_FGREP" 3396 ac_path_FGREP_max=$ac_count 3397 fi 3398 # 10*(2^10) chars as input seems more than enough 3399 test $ac_count -gt 10 && break 3400 done 3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3402esac 3403 3404 $ac_path_FGREP_found && break 3 3405 done 3406 done 3407done 3408IFS=$as_save_IFS 3409 if test -z "$ac_cv_path_FGREP"; then 3410 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3411$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3412 { (exit 1); exit 1; }; } 3413 fi 3414else 3415 ac_cv_path_FGREP=$FGREP 3416fi 3417 3418 fi 3419fi 3420{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 3421$as_echo "$ac_cv_path_FGREP" >&6; } 3422 FGREP="$ac_cv_path_FGREP" 3423 3424 3425test -z "$GREP" && GREP=grep 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445# Check whether --with-gnu-ld was given. 3446if test "${with_gnu_ld+set}" = set; then 3447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3448else 3449 with_gnu_ld=no 3450fi 3451 3452ac_prog=ld 3453if test "$GCC" = yes; then 3454 # Check if gcc -print-prog-name=ld gives a path. 3455 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3456$as_echo_n "checking for ld used by $CC... " >&6; } 3457 case $host in 3458 *-*-mingw*) 3459 # gcc leaves a trailing carriage return which upsets mingw 3460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3461 *) 3462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3463 esac 3464 case $ac_prog in 3465 # Accept absolute paths. 3466 [\\/]* | ?:[\\/]*) 3467 re_direlt='/[^/][^/]*/\.\./' 3468 # Canonicalize the pathname of ld 3469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3472 done 3473 test -z "$LD" && LD="$ac_prog" 3474 ;; 3475 "") 3476 # If it fails, then pretend we aren't using GCC. 3477 ac_prog=ld 3478 ;; 3479 *) 3480 # If it is relative, then search for the first ld in PATH. 3481 with_gnu_ld=unknown 3482 ;; 3483 esac 3484elif test "$with_gnu_ld" = yes; then 3485 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 3486$as_echo_n "checking for GNU ld... " >&6; } 3487else 3488 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3489$as_echo_n "checking for non-GNU ld... " >&6; } 3490fi 3491if test "${lt_cv_path_LD+set}" = set; then 3492 $as_echo_n "(cached) " >&6 3493else 3494 if test -z "$LD"; then 3495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3496 for ac_dir in $PATH; do 3497 IFS="$lt_save_ifs" 3498 test -z "$ac_dir" && ac_dir=. 3499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3500 lt_cv_path_LD="$ac_dir/$ac_prog" 3501 # Check to see if the program is GNU ld. I'd rather use --version, 3502 # but apparently some variants of GNU ld only accept -v. 3503 # Break only if it was the GNU/non-GNU ld that we prefer. 3504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3505 *GNU* | *'with BFD'*) 3506 test "$with_gnu_ld" != no && break 3507 ;; 3508 *) 3509 test "$with_gnu_ld" != yes && break 3510 ;; 3511 esac 3512 fi 3513 done 3514 IFS="$lt_save_ifs" 3515else 3516 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3517fi 3518fi 3519 3520LD="$lt_cv_path_LD" 3521if test -n "$LD"; then 3522 { $as_echo "$as_me:$LINENO: result: $LD" >&5 3523$as_echo "$LD" >&6; } 3524else 3525 { $as_echo "$as_me:$LINENO: result: no" >&5 3526$as_echo "no" >&6; } 3527fi 3528test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3529$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3530 { (exit 1); exit 1; }; } 3531{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3532$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3533if test "${lt_cv_prog_gnu_ld+set}" = set; then 3534 $as_echo_n "(cached) " >&6 3535else 3536 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3537case `$LD -v 2>&1 </dev/null` in 3538*GNU* | *'with BFD'*) 3539 lt_cv_prog_gnu_ld=yes 3540 ;; 3541*) 3542 lt_cv_prog_gnu_ld=no 3543 ;; 3544esac 3545fi 3546{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3547$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3548with_gnu_ld=$lt_cv_prog_gnu_ld 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 3559$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3560if test "${lt_cv_path_NM+set}" = set; then 3561 $as_echo_n "(cached) " >&6 3562else 3563 if test -n "$NM"; then 3564 # Let the user override the test. 3565 lt_cv_path_NM="$NM" 3566else 3567 lt_nm_to_check="${ac_tool_prefix}nm" 3568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3569 lt_nm_to_check="$lt_nm_to_check nm" 3570 fi 3571 for lt_tmp_nm in $lt_nm_to_check; do 3572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3574 IFS="$lt_save_ifs" 3575 test -z "$ac_dir" && ac_dir=. 3576 tmp_nm="$ac_dir/$lt_tmp_nm" 3577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3578 # Check to see if the nm accepts a BSD-compat flag. 3579 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3580 # nm: unknown option "B" ignored 3581 # Tru64's nm complains that /dev/null is an invalid object file 3582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3583 */dev/null* | *'Invalid file or object type'*) 3584 lt_cv_path_NM="$tmp_nm -B" 3585 break 3586 ;; 3587 *) 3588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3589 */dev/null*) 3590 lt_cv_path_NM="$tmp_nm -p" 3591 break 3592 ;; 3593 *) 3594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3595 continue # so that we can try to find one that supports BSD flags 3596 ;; 3597 esac 3598 ;; 3599 esac 3600 fi 3601 done 3602 IFS="$lt_save_ifs" 3603 done 3604 : ${lt_cv_path_NM=no} 3605fi 3606fi 3607{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3608$as_echo "$lt_cv_path_NM" >&6; } 3609if test "$lt_cv_path_NM" != "no"; then 3610 NM="$lt_cv_path_NM" 3611else 3612 # Didn't find any BSD compatible name lister, look for dumpbin. 3613 if test -n "$ac_tool_prefix"; then 3614 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3615 do 3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3618{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3619$as_echo_n "checking for $ac_word... " >&6; } 3620if test "${ac_cv_prog_DUMPBIN+set}" = set; then 3621 $as_echo_n "(cached) " >&6 3622else 3623 if test -n "$DUMPBIN"; then 3624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3625else 3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3627for as_dir in $PATH 3628do 3629 IFS=$as_save_IFS 3630 test -z "$as_dir" && as_dir=. 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637done 3638done 3639IFS=$as_save_IFS 3640 3641fi 3642fi 3643DUMPBIN=$ac_cv_prog_DUMPBIN 3644if test -n "$DUMPBIN"; then 3645 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 3646$as_echo "$DUMPBIN" >&6; } 3647else 3648 { $as_echo "$as_me:$LINENO: result: no" >&5 3649$as_echo "no" >&6; } 3650fi 3651 3652 3653 test -n "$DUMPBIN" && break 3654 done 3655fi 3656if test -z "$DUMPBIN"; then 3657 ac_ct_DUMPBIN=$DUMPBIN 3658 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3659do 3660 # Extract the first word of "$ac_prog", so it can be a program name with args. 3661set dummy $ac_prog; ac_word=$2 3662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3663$as_echo_n "checking for $ac_word... " >&6; } 3664if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 3665 $as_echo_n "(cached) " >&6 3666else 3667 if test -n "$ac_ct_DUMPBIN"; then 3668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3669else 3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3671for as_dir in $PATH 3672do 3673 IFS=$as_save_IFS 3674 test -z "$as_dir" && as_dir=. 3675 for ac_exec_ext in '' $ac_executable_extensions; do 3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3679 break 2 3680 fi 3681done 3682done 3683IFS=$as_save_IFS 3684 3685fi 3686fi 3687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3688if test -n "$ac_ct_DUMPBIN"; then 3689 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 3690$as_echo "$ac_ct_DUMPBIN" >&6; } 3691else 3692 { $as_echo "$as_me:$LINENO: result: no" >&5 3693$as_echo "no" >&6; } 3694fi 3695 3696 3697 test -n "$ac_ct_DUMPBIN" && break 3698done 3699 3700 if test "x$ac_ct_DUMPBIN" = x; then 3701 DUMPBIN=":" 3702 else 3703 case $cross_compiling:$ac_tool_warned in 3704yes:) 3705{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3706whose name does not start with the host triplet. If you think this 3707configuration is useful to you, please write to [email protected]." >&5 3708$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3709whose name does not start with the host triplet. If you think this 3710configuration is useful to you, please write to [email protected]." >&2;} 3711ac_tool_warned=yes ;; 3712esac 3713 DUMPBIN=$ac_ct_DUMPBIN 3714 fi 3715fi 3716 3717 3718 if test "$DUMPBIN" != ":"; then 3719 NM="$DUMPBIN" 3720 fi 3721fi 3722test -z "$NM" && NM=nm 3723 3724 3725 3726 3727 3728 3729{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 3730$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3731if test "${lt_cv_nm_interface+set}" = set; then 3732 $as_echo_n "(cached) " >&6 3733else 3734 lt_cv_nm_interface="BSD nm" 3735 echo "int some_variable = 0;" > conftest.$ac_ext 3736 (eval echo "\"\$as_me:3736: $ac_compile\"" >&5) 3737 (eval "$ac_compile" 2>conftest.err) 3738 cat conftest.err >&5 3739 (eval echo "\"\$as_me:3739: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3741 cat conftest.err >&5 3742 (eval echo "\"\$as_me:3742: output\"" >&5) 3743 cat conftest.out >&5 3744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3745 lt_cv_nm_interface="MS dumpbin" 3746 fi 3747 rm -f conftest* 3748fi 3749{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 3750$as_echo "$lt_cv_nm_interface" >&6; } 3751 3752{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3753$as_echo_n "checking whether ln -s works... " >&6; } 3754LN_S=$as_ln_s 3755if test "$LN_S" = "ln -s"; then 3756 { $as_echo "$as_me:$LINENO: result: yes" >&5 3757$as_echo "yes" >&6; } 3758else 3759 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3760$as_echo "no, using $LN_S" >&6; } 3761fi 3762 3763# find the maximum length of command line arguments 3764{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3765$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3766if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3767 $as_echo_n "(cached) " >&6 3768else 3769 i=0 3770 teststring="ABCD" 3771 3772 case $build_os in 3773 msdosdjgpp*) 3774 # On DJGPP, this test can blow up pretty badly due to problems in libc 3775 # (any single argument exceeding 2000 bytes causes a buffer overrun 3776 # during glob expansion). Even if it were fixed, the result of this 3777 # check would be larger than it should be. 3778 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3779 ;; 3780 3781 gnu*) 3782 # Under GNU Hurd, this test is not required because there is 3783 # no limit to the length of command line arguments. 3784 # Libtool will interpret -1 as no limit whatsoever 3785 lt_cv_sys_max_cmd_len=-1; 3786 ;; 3787 3788 cygwin* | mingw* | cegcc*) 3789 # On Win9x/ME, this test blows up -- it succeeds, but takes 3790 # about 5 minutes as the teststring grows exponentially. 3791 # Worse, since 9x/ME are not pre-emptively multitasking, 3792 # you end up with a "frozen" computer, even though with patience 3793 # the test eventually succeeds (with a max line length of 256k). 3794 # Instead, let's just punt: use the minimum linelength reported by 3795 # all of the supported platforms: 8192 (on NT/2K/XP). 3796 lt_cv_sys_max_cmd_len=8192; 3797 ;; 3798 3799 amigaos*) 3800 # On AmigaOS with pdksh, this test takes hours, literally. 3801 # So we just punt and use a minimum line length of 8192. 3802 lt_cv_sys_max_cmd_len=8192; 3803 ;; 3804 3805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3806 # This has been around since 386BSD, at least. Likely further. 3807 if test -x /sbin/sysctl; then 3808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3809 elif test -x /usr/sbin/sysctl; then 3810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3811 else 3812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3813 fi 3814 # And add a safety zone 3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3817 ;; 3818 3819 interix*) 3820 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3821 lt_cv_sys_max_cmd_len=196608 3822 ;; 3823 3824 osf*) 3825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3827 # nice to cause kernel panics so lets avoid the loop below. 3828 # First set a reasonable default. 3829 lt_cv_sys_max_cmd_len=16384 3830 # 3831 if test -x /sbin/sysconfig; then 3832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3833 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3834 esac 3835 fi 3836 ;; 3837 sco3.2v5*) 3838 lt_cv_sys_max_cmd_len=102400 3839 ;; 3840 sysv5* | sco5v6* | sysv4.2uw2*) 3841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3842 if test -n "$kargmax"; then 3843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3844 else 3845 lt_cv_sys_max_cmd_len=32768 3846 fi 3847 ;; 3848 *) 3849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3850 if test -n "$lt_cv_sys_max_cmd_len"; then 3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3853 else 3854 # Make teststring a little bigger before we do anything with it. 3855 # a 1K string should be a reasonable start. 3856 for i in 1 2 3 4 5 6 7 8 ; do 3857 teststring=$teststring$teststring 3858 done 3859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3860 # If test is not a shell built-in, we'll probably end up computing a 3861 # maximum length that is only half of the actual maximum length, but 3862 # we can't tell. 3863 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3864 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3865 test $i != 17 # 1/2 MB should be enough 3866 do 3867 i=`expr $i + 1` 3868 teststring=$teststring$teststring 3869 done 3870 # Only check the string length outside the loop. 3871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3872 teststring= 3873 # Add a significant safety factor because C++ compilers can tack on 3874 # massive amounts of additional arguments before passing them to the 3875 # linker. It appears as though 1/2 is a usable value. 3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3877 fi 3878 ;; 3879 esac 3880 3881fi 3882 3883if test -n $lt_cv_sys_max_cmd_len ; then 3884 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3885$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 3886else 3887 { $as_echo "$as_me:$LINENO: result: none" >&5 3888$as_echo "none" >&6; } 3889fi 3890max_cmd_len=$lt_cv_sys_max_cmd_len 3891 3892 3893 3894 3895 3896 3897: ${CP="cp -f"} 3898: ${MV="mv -f"} 3899: ${RM="rm -f"} 3900 3901{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3902$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 3903# Try some XSI features 3904xsi_shell=no 3905( _lt_dummy="a/b/c" 3906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3907 = c,a/b,, \ 3908 && eval 'test $(( 1 + 1 )) -eq 2 \ 3909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 3910 && xsi_shell=yes 3911{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 3912$as_echo "$xsi_shell" >&6; } 3913 3914 3915{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3916$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 3917lt_shell_append=no 3918( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3919 >/dev/null 2>&1 \ 3920 && lt_shell_append=yes 3921{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3922$as_echo "$lt_shell_append" >&6; } 3923 3924 3925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3926 lt_unset=unset 3927else 3928 lt_unset=false 3929fi 3930 3931 3932 3933 3934 3935# test EBCDIC or ASCII 3936case `echo X|tr X '\101'` in 3937 A) # ASCII based system 3938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3939 lt_SP2NL='tr \040 \012' 3940 lt_NL2SP='tr \015\012 \040\040' 3941 ;; 3942 *) # EBCDIC based system 3943 lt_SP2NL='tr \100 \n' 3944 lt_NL2SP='tr \r\n \100\100' 3945 ;; 3946esac 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3957$as_echo_n "checking for $LD option to reload object files... " >&6; } 3958if test "${lt_cv_ld_reload_flag+set}" = set; then 3959 $as_echo_n "(cached) " >&6 3960else 3961 lt_cv_ld_reload_flag='-r' 3962fi 3963{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3964$as_echo "$lt_cv_ld_reload_flag" >&6; } 3965reload_flag=$lt_cv_ld_reload_flag 3966case $reload_flag in 3967"" | " "*) ;; 3968*) reload_flag=" $reload_flag" ;; 3969esac 3970reload_cmds='$LD$reload_flag -o $output$reload_objs' 3971case $host_os in 3972 darwin*) 3973 if test "$GCC" = yes; then 3974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3975 else 3976 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3977 fi 3978 ;; 3979esac 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989if test -n "$ac_tool_prefix"; then 3990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3991set dummy ${ac_tool_prefix}objdump; ac_word=$2 3992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3993$as_echo_n "checking for $ac_word... " >&6; } 3994if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -n "$OBJDUMP"; then 3998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3999else 4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012done 4013IFS=$as_save_IFS 4014 4015fi 4016fi 4017OBJDUMP=$ac_cv_prog_OBJDUMP 4018if test -n "$OBJDUMP"; then 4019 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4020$as_echo "$OBJDUMP" >&6; } 4021else 4022 { $as_echo "$as_me:$LINENO: result: no" >&5 4023$as_echo "no" >&6; } 4024fi 4025 4026 4027fi 4028if test -z "$ac_cv_prog_OBJDUMP"; then 4029 ac_ct_OBJDUMP=$OBJDUMP 4030 # Extract the first word of "objdump", so it can be a program name with args. 4031set dummy objdump; ac_word=$2 4032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4033$as_echo_n "checking for $ac_word... " >&6; } 4034if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4035 $as_echo_n "(cached) " >&6 4036else 4037 if test -n "$ac_ct_OBJDUMP"; then 4038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4039else 4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4047 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052done 4053IFS=$as_save_IFS 4054 4055fi 4056fi 4057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4058if test -n "$ac_ct_OBJDUMP"; then 4059 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4060$as_echo "$ac_ct_OBJDUMP" >&6; } 4061else 4062 { $as_echo "$as_me:$LINENO: result: no" >&5 4063$as_echo "no" >&6; } 4064fi 4065 4066 if test "x$ac_ct_OBJDUMP" = x; then 4067 OBJDUMP="false" 4068 else 4069 case $cross_compiling:$ac_tool_warned in 4070yes:) 4071{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4072whose name does not start with the host triplet. If you think this 4073configuration is useful to you, please write to [email protected]." >&5 4074$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4075whose name does not start with the host triplet. If you think this 4076configuration is useful to you, please write to [email protected]." >&2;} 4077ac_tool_warned=yes ;; 4078esac 4079 OBJDUMP=$ac_ct_OBJDUMP 4080 fi 4081else 4082 OBJDUMP="$ac_cv_prog_OBJDUMP" 4083fi 4084 4085test -z "$OBJDUMP" && OBJDUMP=objdump 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4096$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4097if test "${lt_cv_deplibs_check_method+set}" = set; then 4098 $as_echo_n "(cached) " >&6 4099else 4100 lt_cv_file_magic_cmd='$MAGIC_CMD' 4101lt_cv_file_magic_test_file= 4102lt_cv_deplibs_check_method='unknown' 4103# Need to set the preceding variable on all platforms that support 4104# interlibrary dependencies. 4105# 'none' -- dependencies not supported. 4106# `unknown' -- same as none, but documents that we really don't know. 4107# 'pass_all' -- all dependencies passed with no checks. 4108# 'test_compile' -- check by making test program. 4109# 'file_magic [[regex]]' -- check by looking for files in library path 4110# which responds to the $file_magic_cmd with a given extended regex. 4111# If you have `file' or equivalent on your system and you're not sure 4112# whether `pass_all' will *always* work, you probably want this one. 4113 4114case $host_os in 4115aix[4-9]*) 4116 lt_cv_deplibs_check_method=pass_all 4117 ;; 4118 4119beos*) 4120 lt_cv_deplibs_check_method=pass_all 4121 ;; 4122 4123bsdi[45]*) 4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4125 lt_cv_file_magic_cmd='/usr/bin/file -L' 4126 lt_cv_file_magic_test_file=/shlib/libc.so 4127 ;; 4128 4129cygwin*) 4130 # func_win32_libid is a shell function defined in ltmain.sh 4131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4132 lt_cv_file_magic_cmd='func_win32_libid' 4133 ;; 4134 4135mingw* | pw32*) 4136 # Base MSYS/MinGW do not provide the 'file' command needed by 4137 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4138 # unless we find 'file', for example because we are cross-compiling. 4139 if ( file / ) >/dev/null 2>&1; then 4140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4141 lt_cv_file_magic_cmd='func_win32_libid' 4142 else 4143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4144 lt_cv_file_magic_cmd='$OBJDUMP -f' 4145 fi 4146 ;; 4147 4148cegcc) 4149 # use the weaker test based on 'objdump'. See mingw*. 4150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4151 lt_cv_file_magic_cmd='$OBJDUMP -f' 4152 ;; 4153 4154darwin* | rhapsody*) 4155 lt_cv_deplibs_check_method=pass_all 4156 ;; 4157 4158freebsd* | dragonfly*) 4159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4160 case $host_cpu in 4161 i*86 ) 4162 # Not sure whether the presence of OpenBSD here was a mistake. 4163 # Let's accept both of them until this is cleared up. 4164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4165 lt_cv_file_magic_cmd=/usr/bin/file 4166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4167 ;; 4168 esac 4169 else 4170 lt_cv_deplibs_check_method=pass_all 4171 fi 4172 ;; 4173 4174gnu*) 4175 lt_cv_deplibs_check_method=pass_all 4176 ;; 4177 4178hpux10.20* | hpux11*) 4179 lt_cv_file_magic_cmd=/usr/bin/file 4180 case $host_cpu in 4181 ia64*) 4182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4184 ;; 4185 hppa*64*) 4186 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]' 4187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4188 ;; 4189 *) 4190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4191 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4192 ;; 4193 esac 4194 ;; 4195 4196interix[3-9]*) 4197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4199 ;; 4200 4201irix5* | irix6* | nonstopux*) 4202 case $LD in 4203 *-32|*"-32 ") libmagic=32-bit;; 4204 *-n32|*"-n32 ") libmagic=N32;; 4205 *-64|*"-64 ") libmagic=64-bit;; 4206 *) libmagic=never-match;; 4207 esac 4208 lt_cv_deplibs_check_method=pass_all 4209 ;; 4210 4211# This must be Linux ELF. 4212linux* | k*bsd*-gnu) 4213 lt_cv_deplibs_check_method=pass_all 4214 ;; 4215 4216netbsd*) 4217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4219 else 4220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4221 fi 4222 ;; 4223 4224newos6*) 4225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4226 lt_cv_file_magic_cmd=/usr/bin/file 4227 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4228 ;; 4229 4230*nto* | *qnx*) 4231 lt_cv_deplibs_check_method=pass_all 4232 ;; 4233 4234openbsd*) 4235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4237 else 4238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4239 fi 4240 ;; 4241 4242osf3* | osf4* | osf5*) 4243 lt_cv_deplibs_check_method=pass_all 4244 ;; 4245 4246rdos*) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250solaris*) 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 4254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4255 lt_cv_deplibs_check_method=pass_all 4256 ;; 4257 4258sysv4 | sysv4.3*) 4259 case $host_vendor in 4260 motorola) 4261 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]' 4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4263 ;; 4264 ncr) 4265 lt_cv_deplibs_check_method=pass_all 4266 ;; 4267 sequent) 4268 lt_cv_file_magic_cmd='/bin/file' 4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4270 ;; 4271 sni) 4272 lt_cv_file_magic_cmd='/bin/file' 4273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4274 lt_cv_file_magic_test_file=/lib/libc.so 4275 ;; 4276 siemens) 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279 pc) 4280 lt_cv_deplibs_check_method=pass_all 4281 ;; 4282 esac 4283 ;; 4284 4285tpf*) 4286 lt_cv_deplibs_check_method=pass_all 4287 ;; 4288esac 4289 4290fi 4291{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4292$as_echo "$lt_cv_deplibs_check_method" >&6; } 4293file_magic_cmd=$lt_cv_file_magic_cmd 4294deplibs_check_method=$lt_cv_deplibs_check_method 4295test -z "$deplibs_check_method" && deplibs_check_method=unknown 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308if test -n "$ac_tool_prefix"; then 4309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4310set dummy ${ac_tool_prefix}ar; ac_word=$2 4311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4312$as_echo_n "checking for $ac_word... " >&6; } 4313if test "${ac_cv_prog_AR+set}" = set; then 4314 $as_echo_n "(cached) " >&6 4315else 4316 if test -n "$AR"; then 4317 ac_cv_prog_AR="$AR" # Let the user override the test. 4318else 4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320for as_dir in $PATH 4321do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4326 ac_cv_prog_AR="${ac_tool_prefix}ar" 4327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330done 4331done 4332IFS=$as_save_IFS 4333 4334fi 4335fi 4336AR=$ac_cv_prog_AR 4337if test -n "$AR"; then 4338 { $as_echo "$as_me:$LINENO: result: $AR" >&5 4339$as_echo "$AR" >&6; } 4340else 4341 { $as_echo "$as_me:$LINENO: result: no" >&5 4342$as_echo "no" >&6; } 4343fi 4344 4345 4346fi 4347if test -z "$ac_cv_prog_AR"; then 4348 ac_ct_AR=$AR 4349 # Extract the first word of "ar", so it can be a program name with args. 4350set dummy ar; ac_word=$2 4351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4352$as_echo_n "checking for $ac_word... " >&6; } 4353if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -n "$ac_ct_AR"; then 4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4358else 4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4366 ac_cv_prog_ac_ct_AR="ar" 4367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4368 break 2 4369 fi 4370done 4371done 4372IFS=$as_save_IFS 4373 4374fi 4375fi 4376ac_ct_AR=$ac_cv_prog_ac_ct_AR 4377if test -n "$ac_ct_AR"; then 4378 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4379$as_echo "$ac_ct_AR" >&6; } 4380else 4381 { $as_echo "$as_me:$LINENO: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384 4385 if test "x$ac_ct_AR" = x; then 4386 AR="false" 4387 else 4388 case $cross_compiling:$ac_tool_warned in 4389yes:) 4390{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4391whose name does not start with the host triplet. If you think this 4392configuration is useful to you, please write to [email protected]." >&5 4393$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4394whose name does not start with the host triplet. If you think this 4395configuration is useful to you, please write to [email protected]." >&2;} 4396ac_tool_warned=yes ;; 4397esac 4398 AR=$ac_ct_AR 4399 fi 4400else 4401 AR="$ac_cv_prog_AR" 4402fi 4403 4404test -z "$AR" && AR=ar 4405test -z "$AR_FLAGS" && AR_FLAGS=cru 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417if test -n "$ac_tool_prefix"; then 4418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4419set dummy ${ac_tool_prefix}strip; ac_word=$2 4420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4421$as_echo_n "checking for $ac_word... " >&6; } 4422if test "${ac_cv_prog_STRIP+set}" = set; then 4423 $as_echo_n "(cached) " >&6 4424else 4425 if test -n "$STRIP"; then 4426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4427else 4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4435 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439done 4440done 4441IFS=$as_save_IFS 4442 4443fi 4444fi 4445STRIP=$ac_cv_prog_STRIP 4446if test -n "$STRIP"; then 4447 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4448$as_echo "$STRIP" >&6; } 4449else 4450 { $as_echo "$as_me:$LINENO: result: no" >&5 4451$as_echo "no" >&6; } 4452fi 4453 4454 4455fi 4456if test -z "$ac_cv_prog_STRIP"; then 4457 ac_ct_STRIP=$STRIP 4458 # Extract the first word of "strip", so it can be a program name with args. 4459set dummy strip; ac_word=$2 4460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4461$as_echo_n "checking for $ac_word... " >&6; } 4462if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -n "$ac_ct_STRIP"; then 4466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4467else 4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4475 ac_cv_prog_ac_ct_STRIP="strip" 4476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480done 4481IFS=$as_save_IFS 4482 4483fi 4484fi 4485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4486if test -n "$ac_ct_STRIP"; then 4487 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4488$as_echo "$ac_ct_STRIP" >&6; } 4489else 4490 { $as_echo "$as_me:$LINENO: result: no" >&5 4491$as_echo "no" >&6; } 4492fi 4493 4494 if test "x$ac_ct_STRIP" = x; then 4495 STRIP=":" 4496 else 4497 case $cross_compiling:$ac_tool_warned in 4498yes:) 4499{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4500whose name does not start with the host triplet. If you think this 4501configuration is useful to you, please write to [email protected]." >&5 4502$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4503whose name does not start with the host triplet. If you think this 4504configuration is useful to you, please write to [email protected]." >&2;} 4505ac_tool_warned=yes ;; 4506esac 4507 STRIP=$ac_ct_STRIP 4508 fi 4509else 4510 STRIP="$ac_cv_prog_STRIP" 4511fi 4512 4513test -z "$STRIP" && STRIP=: 4514 4515 4516 4517 4518 4519 4520if test -n "$ac_tool_prefix"; then 4521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4522set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4524$as_echo_n "checking for $ac_word... " >&6; } 4525if test "${ac_cv_prog_RANLIB+set}" = set; then 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -n "$RANLIB"; then 4529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4530else 4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532for as_dir in $PATH 4533do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543done 4544IFS=$as_save_IFS 4545 4546fi 4547fi 4548RANLIB=$ac_cv_prog_RANLIB 4549if test -n "$RANLIB"; then 4550 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 4551$as_echo "$RANLIB" >&6; } 4552else 4553 { $as_echo "$as_me:$LINENO: result: no" >&5 4554$as_echo "no" >&6; } 4555fi 4556 4557 4558fi 4559if test -z "$ac_cv_prog_RANLIB"; then 4560 ac_ct_RANLIB=$RANLIB 4561 # Extract the first word of "ranlib", so it can be a program name with args. 4562set dummy ranlib; ac_word=$2 4563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$ac_ct_RANLIB"; then 4569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4570else 4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4578 ac_cv_prog_ac_ct_RANLIB="ranlib" 4579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583done 4584IFS=$as_save_IFS 4585 4586fi 4587fi 4588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4589if test -n "$ac_ct_RANLIB"; then 4590 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4591$as_echo "$ac_ct_RANLIB" >&6; } 4592else 4593 { $as_echo "$as_me:$LINENO: result: no" >&5 4594$as_echo "no" >&6; } 4595fi 4596 4597 if test "x$ac_ct_RANLIB" = x; then 4598 RANLIB=":" 4599 else 4600 case $cross_compiling:$ac_tool_warned in 4601yes:) 4602{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4603whose name does not start with the host triplet. If you think this 4604configuration is useful to you, please write to [email protected]." >&5 4605$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4606whose name does not start with the host triplet. If you think this 4607configuration is useful to you, please write to [email protected]." >&2;} 4608ac_tool_warned=yes ;; 4609esac 4610 RANLIB=$ac_ct_RANLIB 4611 fi 4612else 4613 RANLIB="$ac_cv_prog_RANLIB" 4614fi 4615 4616test -z "$RANLIB" && RANLIB=: 4617 4618 4619 4620 4621 4622 4623# Determine commands to create old-style static archives. 4624old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4625old_postinstall_cmds='chmod 644 $oldlib' 4626old_postuninstall_cmds= 4627 4628if test -n "$RANLIB"; then 4629 case $host_os in 4630 openbsd*) 4631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4632 ;; 4633 *) 4634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4635 ;; 4636 esac 4637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4638fi 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 4666 4667 4668 4669 4670 4671 4672 4673# If no C compiler was specified, use CC. 4674LTCC=${LTCC-"$CC"} 4675 4676# If no C compiler flags were specified, use CFLAGS. 4677LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4678 4679# Allow CC to be a program name with arguments. 4680compiler=$CC 4681 4682 4683# Check for command to grab the raw symbol name followed by C symbol from nm. 4684{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4685$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4686if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4687 $as_echo_n "(cached) " >&6 4688else 4689 4690# These are sane defaults that work on at least a few old systems. 4691# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4692 4693# Character class describing NM global symbol codes. 4694symcode='[BCDEGRST]' 4695 4696# Regexp to match symbols that can be accessed directly from C. 4697sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4698 4699# Define system-specific variables. 4700case $host_os in 4701aix*) 4702 symcode='[BCDT]' 4703 ;; 4704cygwin* | mingw* | pw32* | cegcc*) 4705 symcode='[ABCDGISTW]' 4706 ;; 4707hpux*) 4708 if test "$host_cpu" = ia64; then 4709 symcode='[ABCDEGRST]' 4710 fi 4711 ;; 4712irix* | nonstopux*) 4713 symcode='[BCDEGRST]' 4714 ;; 4715osf*) 4716 symcode='[BCDEGQRST]' 4717 ;; 4718solaris*) 4719 symcode='[BDRT]' 4720 ;; 4721sco3.2v5*) 4722 symcode='[DT]' 4723 ;; 4724sysv4.2uw2*) 4725 symcode='[DT]' 4726 ;; 4727sysv5* | sco5v6* | unixware* | OpenUNIX*) 4728 symcode='[ABDT]' 4729 ;; 4730sysv4) 4731 symcode='[DFNSTU]' 4732 ;; 4733esac 4734 4735# If we're using GNU nm, then use its standard symbol codes. 4736case `$NM -V 2>&1` in 4737*GNU* | *'with BFD'*) 4738 symcode='[ABCDGIRSTW]' ;; 4739esac 4740 4741# Transform an extracted symbol line into a proper C declaration. 4742# Some systems (esp. on ia64) link data and code symbols differently, 4743# so use this general approach. 4744lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4745 4746# Transform an extracted symbol line into symbol name and symbol address 4747lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4748lt_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'" 4749 4750# Handle CRLF in mingw tool chain 4751opt_cr= 4752case $build_os in 4753mingw*) 4754 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4755 ;; 4756esac 4757 4758# Try without a prefix underscore, then with it. 4759for ac_symprfx in "" "_"; do 4760 4761 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4762 symxfrm="\\1 $ac_symprfx\\2 \\2" 4763 4764 # Write the raw and C identifiers. 4765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4766 # Fake it for dumpbin and say T for any non-static function 4767 # and D for any global variable. 4768 # Also find C++ and __fastcall symbols from MSVC++, 4769 # which start with @ or ?. 4770 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4771" {last_section=section; section=\$ 3};"\ 4772" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4773" \$ 0!~/External *\|/{next};"\ 4774" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4775" {if(hide[section]) next};"\ 4776" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4777" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4778" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4779" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4780" ' prfx=^$ac_symprfx" 4781 else 4782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4783 fi 4784 4785 # Check to see that the pipe works correctly. 4786 pipe_works=no 4787 4788 rm -f conftest* 4789 cat > conftest.$ac_ext <<_LT_EOF 4790#ifdef __cplusplus 4791extern "C" { 4792#endif 4793char nm_test_var; 4794void nm_test_func(void); 4795void nm_test_func(void){} 4796#ifdef __cplusplus 4797} 4798#endif 4799int main(){nm_test_var='a';nm_test_func();return(0);} 4800_LT_EOF 4801 4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4803 (eval $ac_compile) 2>&5 4804 ac_status=$? 4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); }; then 4807 # Now try to grab the symbols. 4808 nlist=conftest.nm 4809 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4810 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4811 ac_status=$? 4812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4813 (exit $ac_status); } && test -s "$nlist"; then 4814 # Try sorting and uniquifying the output. 4815 if sort "$nlist" | uniq > "$nlist"T; then 4816 mv -f "$nlist"T "$nlist" 4817 else 4818 rm -f "$nlist"T 4819 fi 4820 4821 # Make sure that we snagged all the symbols we need. 4822 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4823 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4824 cat <<_LT_EOF > conftest.$ac_ext 4825#ifdef __cplusplus 4826extern "C" { 4827#endif 4828 4829_LT_EOF 4830 # Now generate the symbol file. 4831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4832 4833 cat <<_LT_EOF >> conftest.$ac_ext 4834 4835/* The mapping between symbol names and symbols. */ 4836const struct { 4837 const char *name; 4838 void *address; 4839} 4840lt__PROGRAM__LTX_preloaded_symbols[] = 4841{ 4842 { "@PROGRAM@", (void *) 0 }, 4843_LT_EOF 4844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4845 cat <<\_LT_EOF >> conftest.$ac_ext 4846 {0, (void *) 0} 4847}; 4848 4849/* This works around a problem in FreeBSD linker */ 4850#ifdef FREEBSD_WORKAROUND 4851static const void *lt_preloaded_setup() { 4852 return lt__PROGRAM__LTX_preloaded_symbols; 4853} 4854#endif 4855 4856#ifdef __cplusplus 4857} 4858#endif 4859_LT_EOF 4860 # Now try linking the two files. 4861 mv conftest.$ac_objext conftstm.$ac_objext 4862 lt_save_LIBS="$LIBS" 4863 lt_save_CFLAGS="$CFLAGS" 4864 LIBS="conftstm.$ac_objext" 4865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4867 (eval $ac_link) 2>&5 4868 ac_status=$? 4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4871 pipe_works=yes 4872 fi 4873 LIBS="$lt_save_LIBS" 4874 CFLAGS="$lt_save_CFLAGS" 4875 else 4876 echo "cannot find nm_test_func in $nlist" >&5 4877 fi 4878 else 4879 echo "cannot find nm_test_var in $nlist" >&5 4880 fi 4881 else 4882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4883 fi 4884 else 4885 echo "$progname: failed program was:" >&5 4886 cat conftest.$ac_ext >&5 4887 fi 4888 rm -rf conftest* conftst* 4889 4890 # Do not use the global_symbol_pipe unless it works. 4891 if test "$pipe_works" = yes; then 4892 break 4893 else 4894 lt_cv_sys_global_symbol_pipe= 4895 fi 4896done 4897 4898fi 4899 4900if test -z "$lt_cv_sys_global_symbol_pipe"; then 4901 lt_cv_sys_global_symbol_to_cdecl= 4902fi 4903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4904 { $as_echo "$as_me:$LINENO: result: failed" >&5 4905$as_echo "failed" >&6; } 4906else 4907 { $as_echo "$as_me:$LINENO: result: ok" >&5 4908$as_echo "ok" >&6; } 4909fi 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933# Check whether --enable-libtool-lock was given. 4934if test "${enable_libtool_lock+set}" = set; then 4935 enableval=$enable_libtool_lock; 4936fi 4937 4938test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4939 4940# Some flags need to be propagated to the compiler or linker for good 4941# libtool support. 4942case $host in 4943ia64-*-hpux*) 4944 # Find out which ABI we are using. 4945 echo 'int i;' > conftest.$ac_ext 4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4947 (eval $ac_compile) 2>&5 4948 ac_status=$? 4949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; then 4951 case `/usr/bin/file conftest.$ac_objext` in 4952 *ELF-32*) 4953 HPUX_IA64_MODE="32" 4954 ;; 4955 *ELF-64*) 4956 HPUX_IA64_MODE="64" 4957 ;; 4958 esac 4959 fi 4960 rm -rf conftest* 4961 ;; 4962*-*-irix6*) 4963 # Find out which ABI we are using. 4964 echo '#line 4964 "configure"' > conftest.$ac_ext 4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4966 (eval $ac_compile) 2>&5 4967 ac_status=$? 4968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); }; then 4970 if test "$lt_cv_prog_gnu_ld" = yes; then 4971 case `/usr/bin/file conftest.$ac_objext` in 4972 *32-bit*) 4973 LD="${LD-ld} -melf32bsmip" 4974 ;; 4975 *N32*) 4976 LD="${LD-ld} -melf32bmipn32" 4977 ;; 4978 *64-bit*) 4979 LD="${LD-ld} -melf64bmip" 4980 ;; 4981 esac 4982 else 4983 case `/usr/bin/file conftest.$ac_objext` in 4984 *32-bit*) 4985 LD="${LD-ld} -32" 4986 ;; 4987 *N32*) 4988 LD="${LD-ld} -n32" 4989 ;; 4990 *64-bit*) 4991 LD="${LD-ld} -64" 4992 ;; 4993 esac 4994 fi 4995 fi 4996 rm -rf conftest* 4997 ;; 4998 4999x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5000s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5001 # Find out which ABI we are using. 5002 echo 'int i;' > conftest.$ac_ext 5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5004 (eval $ac_compile) 2>&5 5005 ac_status=$? 5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5007 (exit $ac_status); }; then 5008 case `/usr/bin/file conftest.o` in 5009 *32-bit*) 5010 case $host in 5011 x86_64-*kfreebsd*-gnu) 5012 LD="${LD-ld} -m elf_i386_fbsd" 5013 ;; 5014 x86_64-*linux*) 5015 LD="${LD-ld} -m elf_i386" 5016 ;; 5017 ppc64-*linux*|powerpc64-*linux*) 5018 LD="${LD-ld} -m elf32ppclinux" 5019 ;; 5020 s390x-*linux*) 5021 LD="${LD-ld} -m elf_s390" 5022 ;; 5023 sparc64-*linux*) 5024 LD="${LD-ld} -m elf32_sparc" 5025 ;; 5026 esac 5027 ;; 5028 *64-bit*) 5029 case $host in 5030 x86_64-*kfreebsd*-gnu) 5031 LD="${LD-ld} -m elf_x86_64_fbsd" 5032 ;; 5033 x86_64-*linux*) 5034 LD="${LD-ld} -m elf_x86_64" 5035 ;; 5036 ppc*-*linux*|powerpc*-*linux*) 5037 LD="${LD-ld} -m elf64ppc" 5038 ;; 5039 s390*-*linux*|s390*-*tpf*) 5040 LD="${LD-ld} -m elf64_s390" 5041 ;; 5042 sparc*-*linux*) 5043 LD="${LD-ld} -m elf64_sparc" 5044 ;; 5045 esac 5046 ;; 5047 esac 5048 fi 5049 rm -rf conftest* 5050 ;; 5051 5052*-*-sco3.2v5*) 5053 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5054 SAVE_CFLAGS="$CFLAGS" 5055 CFLAGS="$CFLAGS -belf" 5056 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5057$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5058if test "${lt_cv_cc_needs_belf+set}" = set; then 5059 $as_echo_n "(cached) " >&6 5060else 5061 ac_ext=c 5062ac_cpp='$CPP $CPPFLAGS' 5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5065ac_compiler_gnu=$ac_cv_c_compiler_gnu 5066 5067 cat >conftest.$ac_ext <<_ACEOF 5068/* confdefs.h. */ 5069_ACEOF 5070cat confdefs.h >>conftest.$ac_ext 5071cat >>conftest.$ac_ext <<_ACEOF 5072/* end confdefs.h. */ 5073 5074int 5075main () 5076{ 5077 5078 ; 5079 return 0; 5080} 5081_ACEOF 5082rm -f conftest.$ac_objext conftest$ac_exeext 5083if { (ac_try="$ac_link" 5084case "(($ac_try" in 5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5086 *) ac_try_echo=$ac_try;; 5087esac 5088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5089$as_echo "$ac_try_echo") >&5 5090 (eval "$ac_link") 2>conftest.er1 5091 ac_status=$? 5092 grep -v '^ *+' conftest.er1 >conftest.err 5093 rm -f conftest.er1 5094 cat conftest.err >&5 5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } && { 5097 test -z "$ac_c_werror_flag" || 5098 test ! -s conftest.err 5099 } && test -s conftest$ac_exeext && { 5100 test "$cross_compiling" = yes || 5101 $as_test_x conftest$ac_exeext 5102 }; then 5103 lt_cv_cc_needs_belf=yes 5104else 5105 $as_echo "$as_me: failed program was:" >&5 5106sed 's/^/| /' conftest.$ac_ext >&5 5107 5108 lt_cv_cc_needs_belf=no 5109fi 5110 5111rm -rf conftest.dSYM 5112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5113 conftest$ac_exeext conftest.$ac_ext 5114 ac_ext=c 5115ac_cpp='$CPP $CPPFLAGS' 5116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5118ac_compiler_gnu=$ac_cv_c_compiler_gnu 5119 5120fi 5121{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5122$as_echo "$lt_cv_cc_needs_belf" >&6; } 5123 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5125 CFLAGS="$SAVE_CFLAGS" 5126 fi 5127 ;; 5128sparc*-*solaris*) 5129 # Find out which ABI we are using. 5130 echo 'int i;' > conftest.$ac_ext 5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5132 (eval $ac_compile) 2>&5 5133 ac_status=$? 5134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); }; then 5136 case `/usr/bin/file conftest.o` in 5137 *64-bit*) 5138 case $lt_cv_prog_gnu_ld in 5139 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5140 *) 5141 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5142 LD="${LD-ld} -64" 5143 fi 5144 ;; 5145 esac 5146 ;; 5147 esac 5148 fi 5149 rm -rf conftest* 5150 ;; 5151esac 5152 5153need_locks="$enable_libtool_lock" 5154 5155 5156 case $host_os in 5157 rhapsody* | darwin*) 5158 if test -n "$ac_tool_prefix"; then 5159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5160set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5162$as_echo_n "checking for $ac_word... " >&6; } 5163if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5164 $as_echo_n "(cached) " >&6 5165else 5166 if test -n "$DSYMUTIL"; then 5167 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5168else 5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170for as_dir in $PATH 5171do 5172 IFS=$as_save_IFS 5173 test -z "$as_dir" && as_dir=. 5174 for ac_exec_ext in '' $ac_executable_extensions; do 5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5176 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5178 break 2 5179 fi 5180done 5181done 5182IFS=$as_save_IFS 5183 5184fi 5185fi 5186DSYMUTIL=$ac_cv_prog_DSYMUTIL 5187if test -n "$DSYMUTIL"; then 5188 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5189$as_echo "$DSYMUTIL" >&6; } 5190else 5191 { $as_echo "$as_me:$LINENO: result: no" >&5 5192$as_echo "no" >&6; } 5193fi 5194 5195 5196fi 5197if test -z "$ac_cv_prog_DSYMUTIL"; then 5198 ac_ct_DSYMUTIL=$DSYMUTIL 5199 # Extract the first word of "dsymutil", so it can be a program name with args. 5200set dummy dsymutil; ac_word=$2 5201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5202$as_echo_n "checking for $ac_word... " >&6; } 5203if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5204 $as_echo_n "(cached) " >&6 5205else 5206 if test -n "$ac_ct_DSYMUTIL"; then 5207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5208else 5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5210for as_dir in $PATH 5211do 5212 IFS=$as_save_IFS 5213 test -z "$as_dir" && as_dir=. 5214 for ac_exec_ext in '' $ac_executable_extensions; do 5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5216 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5218 break 2 5219 fi 5220done 5221done 5222IFS=$as_save_IFS 5223 5224fi 5225fi 5226ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5227if test -n "$ac_ct_DSYMUTIL"; then 5228 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5229$as_echo "$ac_ct_DSYMUTIL" >&6; } 5230else 5231 { $as_echo "$as_me:$LINENO: result: no" >&5 5232$as_echo "no" >&6; } 5233fi 5234 5235 if test "x$ac_ct_DSYMUTIL" = x; then 5236 DSYMUTIL=":" 5237 else 5238 case $cross_compiling:$ac_tool_warned in 5239yes:) 5240{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5241whose name does not start with the host triplet. If you think this 5242configuration is useful to you, please write to [email protected]." >&5 5243$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5244whose name does not start with the host triplet. If you think this 5245configuration is useful to you, please write to [email protected]." >&2;} 5246ac_tool_warned=yes ;; 5247esac 5248 DSYMUTIL=$ac_ct_DSYMUTIL 5249 fi 5250else 5251 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5252fi 5253 5254 if test -n "$ac_tool_prefix"; then 5255 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5256set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5258$as_echo_n "checking for $ac_word... " >&6; } 5259if test "${ac_cv_prog_NMEDIT+set}" = set; then 5260 $as_echo_n "(cached) " >&6 5261else 5262 if test -n "$NMEDIT"; then 5263 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5264else 5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5266for as_dir in $PATH 5267do 5268 IFS=$as_save_IFS 5269 test -z "$as_dir" && as_dir=. 5270 for ac_exec_ext in '' $ac_executable_extensions; do 5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5272 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5274 break 2 5275 fi 5276done 5277done 5278IFS=$as_save_IFS 5279 5280fi 5281fi 5282NMEDIT=$ac_cv_prog_NMEDIT 5283if test -n "$NMEDIT"; then 5284 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5285$as_echo "$NMEDIT" >&6; } 5286else 5287 { $as_echo "$as_me:$LINENO: result: no" >&5 5288$as_echo "no" >&6; } 5289fi 5290 5291 5292fi 5293if test -z "$ac_cv_prog_NMEDIT"; then 5294 ac_ct_NMEDIT=$NMEDIT 5295 # Extract the first word of "nmedit", so it can be a program name with args. 5296set dummy nmedit; ac_word=$2 5297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5298$as_echo_n "checking for $ac_word... " >&6; } 5299if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5300 $as_echo_n "(cached) " >&6 5301else 5302 if test -n "$ac_ct_NMEDIT"; then 5303 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5304else 5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5306for as_dir in $PATH 5307do 5308 IFS=$as_save_IFS 5309 test -z "$as_dir" && as_dir=. 5310 for ac_exec_ext in '' $ac_executable_extensions; do 5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5312 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5314 break 2 5315 fi 5316done 5317done 5318IFS=$as_save_IFS 5319 5320fi 5321fi 5322ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5323if test -n "$ac_ct_NMEDIT"; then 5324 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5325$as_echo "$ac_ct_NMEDIT" >&6; } 5326else 5327 { $as_echo "$as_me:$LINENO: result: no" >&5 5328$as_echo "no" >&6; } 5329fi 5330 5331 if test "x$ac_ct_NMEDIT" = x; then 5332 NMEDIT=":" 5333 else 5334 case $cross_compiling:$ac_tool_warned in 5335yes:) 5336{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5337whose name does not start with the host triplet. If you think this 5338configuration is useful to you, please write to [email protected]." >&5 5339$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5340whose name does not start with the host triplet. If you think this 5341configuration is useful to you, please write to [email protected]." >&2;} 5342ac_tool_warned=yes ;; 5343esac 5344 NMEDIT=$ac_ct_NMEDIT 5345 fi 5346else 5347 NMEDIT="$ac_cv_prog_NMEDIT" 5348fi 5349 5350 if test -n "$ac_tool_prefix"; then 5351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5352set dummy ${ac_tool_prefix}lipo; ac_word=$2 5353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5354$as_echo_n "checking for $ac_word... " >&6; } 5355if test "${ac_cv_prog_LIPO+set}" = set; then 5356 $as_echo_n "(cached) " >&6 5357else 5358 if test -n "$LIPO"; then 5359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5360else 5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5362for as_dir in $PATH 5363do 5364 IFS=$as_save_IFS 5365 test -z "$as_dir" && as_dir=. 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372done 5373done 5374IFS=$as_save_IFS 5375 5376fi 5377fi 5378LIPO=$ac_cv_prog_LIPO 5379if test -n "$LIPO"; then 5380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 5381$as_echo "$LIPO" >&6; } 5382else 5383 { $as_echo "$as_me:$LINENO: result: no" >&5 5384$as_echo "no" >&6; } 5385fi 5386 5387 5388fi 5389if test -z "$ac_cv_prog_LIPO"; then 5390 ac_ct_LIPO=$LIPO 5391 # Extract the first word of "lipo", so it can be a program name with args. 5392set dummy lipo; ac_word=$2 5393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5394$as_echo_n "checking for $ac_word... " >&6; } 5395if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 5396 $as_echo_n "(cached) " >&6 5397else 5398 if test -n "$ac_ct_LIPO"; then 5399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5400else 5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5402for as_dir in $PATH 5403do 5404 IFS=$as_save_IFS 5405 test -z "$as_dir" && as_dir=. 5406 for ac_exec_ext in '' $ac_executable_extensions; do 5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5408 ac_cv_prog_ac_ct_LIPO="lipo" 5409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5410 break 2 5411 fi 5412done 5413done 5414IFS=$as_save_IFS 5415 5416fi 5417fi 5418ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5419if test -n "$ac_ct_LIPO"; then 5420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 5421$as_echo "$ac_ct_LIPO" >&6; } 5422else 5423 { $as_echo "$as_me:$LINENO: result: no" >&5 5424$as_echo "no" >&6; } 5425fi 5426 5427 if test "x$ac_ct_LIPO" = x; then 5428 LIPO=":" 5429 else 5430 case $cross_compiling:$ac_tool_warned in 5431yes:) 5432{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5433whose name does not start with the host triplet. If you think this 5434configuration is useful to you, please write to [email protected]." >&5 5435$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5436whose name does not start with the host triplet. If you think this 5437configuration is useful to you, please write to [email protected]." >&2;} 5438ac_tool_warned=yes ;; 5439esac 5440 LIPO=$ac_ct_LIPO 5441 fi 5442else 5443 LIPO="$ac_cv_prog_LIPO" 5444fi 5445 5446 if test -n "$ac_tool_prefix"; then 5447 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5448set dummy ${ac_tool_prefix}otool; ac_word=$2 5449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if test "${ac_cv_prog_OTOOL+set}" = set; then 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$OTOOL"; then 5455 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5464 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474OTOOL=$ac_cv_prog_OTOOL 5475if test -n "$OTOOL"; then 5476 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 5477$as_echo "$OTOOL" >&6; } 5478else 5479 { $as_echo "$as_me:$LINENO: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 5484fi 5485if test -z "$ac_cv_prog_OTOOL"; then 5486 ac_ct_OTOOL=$OTOOL 5487 # Extract the first word of "otool", so it can be a program name with args. 5488set dummy otool; ac_word=$2 5489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$ac_ct_OTOOL"; then 5495 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5504 ac_cv_prog_ac_ct_OTOOL="otool" 5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5515if test -n "$ac_ct_OTOOL"; then 5516 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 5517$as_echo "$ac_ct_OTOOL" >&6; } 5518else 5519 { $as_echo "$as_me:$LINENO: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 if test "x$ac_ct_OTOOL" = x; then 5524 OTOOL=":" 5525 else 5526 case $cross_compiling:$ac_tool_warned in 5527yes:) 5528{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5529whose name does not start with the host triplet. If you think this 5530configuration is useful to you, please write to [email protected]." >&5 5531$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5532whose name does not start with the host triplet. If you think this 5533configuration is useful to you, please write to [email protected]." >&2;} 5534ac_tool_warned=yes ;; 5535esac 5536 OTOOL=$ac_ct_OTOOL 5537 fi 5538else 5539 OTOOL="$ac_cv_prog_OTOOL" 5540fi 5541 5542 if test -n "$ac_tool_prefix"; then 5543 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5544set dummy ${ac_tool_prefix}otool64; ac_word=$2 5545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5546$as_echo_n "checking for $ac_word... " >&6; } 5547if test "${ac_cv_prog_OTOOL64+set}" = set; then 5548 $as_echo_n "(cached) " >&6 5549else 5550 if test -n "$OTOOL64"; then 5551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5552else 5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554for as_dir in $PATH 5555do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5560 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564done 5565done 5566IFS=$as_save_IFS 5567 5568fi 5569fi 5570OTOOL64=$ac_cv_prog_OTOOL64 5571if test -n "$OTOOL64"; then 5572 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 5573$as_echo "$OTOOL64" >&6; } 5574else 5575 { $as_echo "$as_me:$LINENO: result: no" >&5 5576$as_echo "no" >&6; } 5577fi 5578 5579 5580fi 5581if test -z "$ac_cv_prog_OTOOL64"; then 5582 ac_ct_OTOOL64=$OTOOL64 5583 # Extract the first word of "otool64", so it can be a program name with args. 5584set dummy otool64; ac_word=$2 5585{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5586$as_echo_n "checking for $ac_word... " >&6; } 5587if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 5588 $as_echo_n "(cached) " >&6 5589else 5590 if test -n "$ac_ct_OTOOL64"; then 5591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5592else 5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5594for as_dir in $PATH 5595do 5596 IFS=$as_save_IFS 5597 test -z "$as_dir" && as_dir=. 5598 for ac_exec_ext in '' $ac_executable_extensions; do 5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5600 ac_cv_prog_ac_ct_OTOOL64="otool64" 5601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5602 break 2 5603 fi 5604done 5605done 5606IFS=$as_save_IFS 5607 5608fi 5609fi 5610ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5611if test -n "$ac_ct_OTOOL64"; then 5612 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 5613$as_echo "$ac_ct_OTOOL64" >&6; } 5614else 5615 { $as_echo "$as_me:$LINENO: result: no" >&5 5616$as_echo "no" >&6; } 5617fi 5618 5619 if test "x$ac_ct_OTOOL64" = x; then 5620 OTOOL64=":" 5621 else 5622 case $cross_compiling:$ac_tool_warned in 5623yes:) 5624{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5625whose name does not start with the host triplet. If you think this 5626configuration is useful to you, please write to [email protected]." >&5 5627$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5628whose name does not start with the host triplet. If you think this 5629configuration is useful to you, please write to [email protected]." >&2;} 5630ac_tool_warned=yes ;; 5631esac 5632 OTOOL64=$ac_ct_OTOOL64 5633 fi 5634else 5635 OTOOL64="$ac_cv_prog_OTOOL64" 5636fi 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 5665$as_echo_n "checking for -single_module linker flag... " >&6; } 5666if test "${lt_cv_apple_cc_single_mod+set}" = set; then 5667 $as_echo_n "(cached) " >&6 5668else 5669 lt_cv_apple_cc_single_mod=no 5670 if test -z "${LT_MULTI_MODULE}"; then 5671 # By default we will add the -single_module flag. You can override 5672 # by either setting the environment variable LT_MULTI_MODULE 5673 # non-empty at configure time, or by adding -multi_module to the 5674 # link flags. 5675 rm -rf libconftest.dylib* 5676 echo "int foo(void){return 1;}" > conftest.c 5677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5678-dynamiclib -Wl,-single_module conftest.c" >&5 5679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5681 _lt_result=$? 5682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5683 lt_cv_apple_cc_single_mod=yes 5684 else 5685 cat conftest.err >&5 5686 fi 5687 rm -rf libconftest.dylib* 5688 rm -f conftest.* 5689 fi 5690fi 5691{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 5692$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5693 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 5694$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5695if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 5696 $as_echo_n "(cached) " >&6 5697else 5698 lt_cv_ld_exported_symbols_list=no 5699 save_LDFLAGS=$LDFLAGS 5700 echo "_main" > conftest.sym 5701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5702 cat >conftest.$ac_ext <<_ACEOF 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708 5709int 5710main () 5711{ 5712 5713 ; 5714 return 0; 5715} 5716_ACEOF 5717rm -f conftest.$ac_objext conftest$ac_exeext 5718if { (ac_try="$ac_link" 5719case "(($ac_try" in 5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5721 *) ac_try_echo=$ac_try;; 5722esac 5723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5724$as_echo "$ac_try_echo") >&5 5725 (eval "$ac_link") 2>conftest.er1 5726 ac_status=$? 5727 grep -v '^ *+' conftest.er1 >conftest.err 5728 rm -f conftest.er1 5729 cat conftest.err >&5 5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); } && { 5732 test -z "$ac_c_werror_flag" || 5733 test ! -s conftest.err 5734 } && test -s conftest$ac_exeext && { 5735 test "$cross_compiling" = yes || 5736 $as_test_x conftest$ac_exeext 5737 }; then 5738 lt_cv_ld_exported_symbols_list=yes 5739else 5740 $as_echo "$as_me: failed program was:" >&5 5741sed 's/^/| /' conftest.$ac_ext >&5 5742 5743 lt_cv_ld_exported_symbols_list=no 5744fi 5745 5746rm -rf conftest.dSYM 5747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5748 conftest$ac_exeext conftest.$ac_ext 5749 LDFLAGS="$save_LDFLAGS" 5750 5751fi 5752{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 5753$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5754 case $host_os in 5755 rhapsody* | darwin1.[012]) 5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5757 darwin1.*) 5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5759 darwin*) # darwin 5.x on 5760 # if running on 10.5 or later, the deployment target defaults 5761 # to the OS version, if on x86, and 10.4, the deployment 5762 # target defaults to 10.4. Don't you love it? 5763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5764 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5766 10.[012]*) 5767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5768 10.*) 5769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5770 esac 5771 ;; 5772 esac 5773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5774 _lt_dar_single_mod='$single_module' 5775 fi 5776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5778 else 5779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5780 fi 5781 if test "$DSYMUTIL" != ":"; then 5782 _lt_dsymutil='~$DSYMUTIL $lib || :' 5783 else 5784 _lt_dsymutil= 5785 fi 5786 ;; 5787 esac 5788 5789ac_ext=c 5790ac_cpp='$CPP $CPPFLAGS' 5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5793ac_compiler_gnu=$ac_cv_c_compiler_gnu 5794{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5795$as_echo_n "checking how to run the C preprocessor... " >&6; } 5796# On Suns, sometimes $CPP names a directory. 5797if test -n "$CPP" && test -d "$CPP"; then 5798 CPP= 5799fi 5800if test -z "$CPP"; then 5801 if test "${ac_cv_prog_CPP+set}" = set; then 5802 $as_echo_n "(cached) " >&6 5803else 5804 # Double quotes because CPP needs to be expanded 5805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5806 do 5807 ac_preproc_ok=false 5808for ac_c_preproc_warn_flag in '' yes 5809do 5810 # Use a header file that comes with gcc, so configuring glibc 5811 # with a fresh cross-compiler works. 5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5813 # <limits.h> exists even on freestanding compilers. 5814 # On the NeXT, cc -E runs the code through the compiler's parser, 5815 # not just through cpp. "Syntax error" is here to catch this case. 5816 cat >conftest.$ac_ext <<_ACEOF 5817/* confdefs.h. */ 5818_ACEOF 5819cat confdefs.h >>conftest.$ac_ext 5820cat >>conftest.$ac_ext <<_ACEOF 5821/* end confdefs.h. */ 5822#ifdef __STDC__ 5823# include <limits.h> 5824#else 5825# include <assert.h> 5826#endif 5827 Syntax error 5828_ACEOF 5829if { (ac_try="$ac_cpp conftest.$ac_ext" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5835$as_echo "$ac_try_echo") >&5 5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5837 ac_status=$? 5838 grep -v '^ *+' conftest.er1 >conftest.err 5839 rm -f conftest.er1 5840 cat conftest.err >&5 5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); } >/dev/null && { 5843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5844 test ! -s conftest.err 5845 }; then 5846 : 5847else 5848 $as_echo "$as_me: failed program was:" >&5 5849sed 's/^/| /' conftest.$ac_ext >&5 5850 5851 # Broken: fails on valid input. 5852continue 5853fi 5854 5855rm -f conftest.err conftest.$ac_ext 5856 5857 # OK, works on sane cases. Now check whether nonexistent headers 5858 # can be detected and how. 5859 cat >conftest.$ac_ext <<_ACEOF 5860/* confdefs.h. */ 5861_ACEOF 5862cat confdefs.h >>conftest.$ac_ext 5863cat >>conftest.$ac_ext <<_ACEOF 5864/* end confdefs.h. */ 5865#include <ac_nonexistent.h> 5866_ACEOF 5867if { (ac_try="$ac_cpp conftest.$ac_ext" 5868case "(($ac_try" in 5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5870 *) ac_try_echo=$ac_try;; 5871esac 5872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5873$as_echo "$ac_try_echo") >&5 5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } >/dev/null && { 5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 }; then 5884 # Broken: success on invalid input. 5885continue 5886else 5887 $as_echo "$as_me: failed program was:" >&5 5888sed 's/^/| /' conftest.$ac_ext >&5 5889 5890 # Passes both tests. 5891ac_preproc_ok=: 5892break 5893fi 5894 5895rm -f conftest.err conftest.$ac_ext 5896 5897done 5898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5899rm -f conftest.err conftest.$ac_ext 5900if $ac_preproc_ok; then 5901 break 5902fi 5903 5904 done 5905 ac_cv_prog_CPP=$CPP 5906 5907fi 5908 CPP=$ac_cv_prog_CPP 5909else 5910 ac_cv_prog_CPP=$CPP 5911fi 5912{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 5913$as_echo "$CPP" >&6; } 5914ac_preproc_ok=false 5915for ac_c_preproc_warn_flag in '' yes 5916do 5917 # Use a header file that comes with gcc, so configuring glibc 5918 # with a fresh cross-compiler works. 5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5920 # <limits.h> exists even on freestanding compilers. 5921 # On the NeXT, cc -E runs the code through the compiler's parser, 5922 # not just through cpp. "Syntax error" is here to catch this case. 5923 cat >conftest.$ac_ext <<_ACEOF 5924/* confdefs.h. */ 5925_ACEOF 5926cat confdefs.h >>conftest.$ac_ext 5927cat >>conftest.$ac_ext <<_ACEOF 5928/* end confdefs.h. */ 5929#ifdef __STDC__ 5930# include <limits.h> 5931#else 5932# include <assert.h> 5933#endif 5934 Syntax error 5935_ACEOF 5936if { (ac_try="$ac_cpp conftest.$ac_ext" 5937case "(($ac_try" in 5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5939 *) ac_try_echo=$ac_try;; 5940esac 5941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5942$as_echo "$ac_try_echo") >&5 5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5944 ac_status=$? 5945 grep -v '^ *+' conftest.er1 >conftest.err 5946 rm -f conftest.er1 5947 cat conftest.err >&5 5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5949 (exit $ac_status); } >/dev/null && { 5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5951 test ! -s conftest.err 5952 }; then 5953 : 5954else 5955 $as_echo "$as_me: failed program was:" >&5 5956sed 's/^/| /' conftest.$ac_ext >&5 5957 5958 # Broken: fails on valid input. 5959continue 5960fi 5961 5962rm -f conftest.err conftest.$ac_ext 5963 5964 # OK, works on sane cases. Now check whether nonexistent headers 5965 # can be detected and how. 5966 cat >conftest.$ac_ext <<_ACEOF 5967/* confdefs.h. */ 5968_ACEOF 5969cat confdefs.h >>conftest.$ac_ext 5970cat >>conftest.$ac_ext <<_ACEOF 5971/* end confdefs.h. */ 5972#include <ac_nonexistent.h> 5973_ACEOF 5974if { (ac_try="$ac_cpp conftest.$ac_ext" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5980$as_echo "$ac_try_echo") >&5 5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5982 ac_status=$? 5983 grep -v '^ *+' conftest.er1 >conftest.err 5984 rm -f conftest.er1 5985 cat conftest.err >&5 5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); } >/dev/null && { 5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5989 test ! -s conftest.err 5990 }; then 5991 # Broken: success on invalid input. 5992continue 5993else 5994 $as_echo "$as_me: failed program was:" >&5 5995sed 's/^/| /' conftest.$ac_ext >&5 5996 5997 # Passes both tests. 5998ac_preproc_ok=: 5999break 6000fi 6001 6002rm -f conftest.err conftest.$ac_ext 6003 6004done 6005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6006rm -f conftest.err conftest.$ac_ext 6007if $ac_preproc_ok; then 6008 : 6009else 6010 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6011See \`config.log' for more details." >&5 6012$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6013See \`config.log' for more details." >&2;} 6014 { (exit 1); exit 1; }; } 6015fi 6016 6017ac_ext=c 6018ac_cpp='$CPP $CPPFLAGS' 6019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6021ac_compiler_gnu=$ac_cv_c_compiler_gnu 6022 6023 6024{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6025$as_echo_n "checking for ANSI C header files... " >&6; } 6026if test "${ac_cv_header_stdc+set}" = set; then 6027 $as_echo_n "(cached) " >&6 6028else 6029 cat >conftest.$ac_ext <<_ACEOF 6030/* confdefs.h. */ 6031_ACEOF 6032cat confdefs.h >>conftest.$ac_ext 6033cat >>conftest.$ac_ext <<_ACEOF 6034/* end confdefs.h. */ 6035#include <stdlib.h> 6036#include <stdarg.h> 6037#include <string.h> 6038#include <float.h> 6039 6040int 6041main () 6042{ 6043 6044 ; 6045 return 0; 6046} 6047_ACEOF 6048rm -f conftest.$ac_objext 6049if { (ac_try="$ac_compile" 6050case "(($ac_try" in 6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6052 *) ac_try_echo=$ac_try;; 6053esac 6054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6055$as_echo "$ac_try_echo") >&5 6056 (eval "$ac_compile") 2>conftest.er1 6057 ac_status=$? 6058 grep -v '^ *+' conftest.er1 >conftest.err 6059 rm -f conftest.er1 6060 cat conftest.err >&5 6061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } && { 6063 test -z "$ac_c_werror_flag" || 6064 test ! -s conftest.err 6065 } && test -s conftest.$ac_objext; then 6066 ac_cv_header_stdc=yes 6067else 6068 $as_echo "$as_me: failed program was:" >&5 6069sed 's/^/| /' conftest.$ac_ext >&5 6070 6071 ac_cv_header_stdc=no 6072fi 6073 6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6075 6076if test $ac_cv_header_stdc = yes; then 6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6078 cat >conftest.$ac_ext <<_ACEOF 6079/* confdefs.h. */ 6080_ACEOF 6081cat confdefs.h >>conftest.$ac_ext 6082cat >>conftest.$ac_ext <<_ACEOF 6083/* end confdefs.h. */ 6084#include <string.h> 6085 6086_ACEOF 6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6088 $EGREP "memchr" >/dev/null 2>&1; then 6089 : 6090else 6091 ac_cv_header_stdc=no 6092fi 6093rm -f conftest* 6094 6095fi 6096 6097if test $ac_cv_header_stdc = yes; then 6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6099 cat >conftest.$ac_ext <<_ACEOF 6100/* confdefs.h. */ 6101_ACEOF 6102cat confdefs.h >>conftest.$ac_ext 6103cat >>conftest.$ac_ext <<_ACEOF 6104/* end confdefs.h. */ 6105#include <stdlib.h> 6106 6107_ACEOF 6108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6109 $EGREP "free" >/dev/null 2>&1; then 6110 : 6111else 6112 ac_cv_header_stdc=no 6113fi 6114rm -f conftest* 6115 6116fi 6117 6118if test $ac_cv_header_stdc = yes; then 6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6120 if test "$cross_compiling" = yes; then 6121 : 6122else 6123 cat >conftest.$ac_ext <<_ACEOF 6124/* confdefs.h. */ 6125_ACEOF 6126cat confdefs.h >>conftest.$ac_ext 6127cat >>conftest.$ac_ext <<_ACEOF 6128/* end confdefs.h. */ 6129#include <ctype.h> 6130#include <stdlib.h> 6131#if ((' ' & 0x0FF) == 0x020) 6132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6134#else 6135# define ISLOWER(c) \ 6136 (('a' <= (c) && (c) <= 'i') \ 6137 || ('j' <= (c) && (c) <= 'r') \ 6138 || ('s' <= (c) && (c) <= 'z')) 6139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6140#endif 6141 6142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6143int 6144main () 6145{ 6146 int i; 6147 for (i = 0; i < 256; i++) 6148 if (XOR (islower (i), ISLOWER (i)) 6149 || toupper (i) != TOUPPER (i)) 6150 return 2; 6151 return 0; 6152} 6153_ACEOF 6154rm -f conftest$ac_exeext 6155if { (ac_try="$ac_link" 6156case "(($ac_try" in 6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6158 *) ac_try_echo=$ac_try;; 6159esac 6160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6161$as_echo "$ac_try_echo") >&5 6162 (eval "$ac_link") 2>&5 6163 ac_status=$? 6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6166 { (case "(($ac_try" in 6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6168 *) ac_try_echo=$ac_try;; 6169esac 6170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6171$as_echo "$ac_try_echo") >&5 6172 (eval "$ac_try") 2>&5 6173 ac_status=$? 6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6175 (exit $ac_status); }; }; then 6176 : 6177else 6178 $as_echo "$as_me: program exited with status $ac_status" >&5 6179$as_echo "$as_me: failed program was:" >&5 6180sed 's/^/| /' conftest.$ac_ext >&5 6181 6182( exit $ac_status ) 6183ac_cv_header_stdc=no 6184fi 6185rm -rf conftest.dSYM 6186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6187fi 6188 6189 6190fi 6191fi 6192{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6193$as_echo "$ac_cv_header_stdc" >&6; } 6194if test $ac_cv_header_stdc = yes; then 6195 6196cat >>confdefs.h <<\_ACEOF 6197#define STDC_HEADERS 1 6198_ACEOF 6199 6200fi 6201 6202# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6213 inttypes.h stdint.h unistd.h 6214do 6215as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6216{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6217$as_echo_n "checking for $ac_header... " >&6; } 6218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6219 $as_echo_n "(cached) " >&6 6220else 6221 cat >conftest.$ac_ext <<_ACEOF 6222/* confdefs.h. */ 6223_ACEOF 6224cat confdefs.h >>conftest.$ac_ext 6225cat >>conftest.$ac_ext <<_ACEOF 6226/* end confdefs.h. */ 6227$ac_includes_default 6228 6229#include <$ac_header> 6230_ACEOF 6231rm -f conftest.$ac_objext 6232if { (ac_try="$ac_compile" 6233case "(($ac_try" in 6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6235 *) ac_try_echo=$ac_try;; 6236esac 6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6238$as_echo "$ac_try_echo") >&5 6239 (eval "$ac_compile") 2>conftest.er1 6240 ac_status=$? 6241 grep -v '^ *+' conftest.er1 >conftest.err 6242 rm -f conftest.er1 6243 cat conftest.err >&5 6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6245 (exit $ac_status); } && { 6246 test -z "$ac_c_werror_flag" || 6247 test ! -s conftest.err 6248 } && test -s conftest.$ac_objext; then 6249 eval "$as_ac_Header=yes" 6250else 6251 $as_echo "$as_me: failed program was:" >&5 6252sed 's/^/| /' conftest.$ac_ext >&5 6253 6254 eval "$as_ac_Header=no" 6255fi 6256 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258fi 6259ac_res=`eval 'as_val=${'$as_ac_Header'} 6260 $as_echo "$as_val"'` 6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6262$as_echo "$ac_res" >&6; } 6263if test `eval 'as_val=${'$as_ac_Header'} 6264 $as_echo "$as_val"'` = yes; then 6265 cat >>confdefs.h <<_ACEOF 6266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6267_ACEOF 6268 6269fi 6270 6271done 6272 6273 6274 6275for ac_header in dlfcn.h 6276do 6277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6278{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6279$as_echo_n "checking for $ac_header... " >&6; } 6280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6281 $as_echo_n "(cached) " >&6 6282else 6283 cat >conftest.$ac_ext <<_ACEOF 6284/* confdefs.h. */ 6285_ACEOF 6286cat confdefs.h >>conftest.$ac_ext 6287cat >>conftest.$ac_ext <<_ACEOF 6288/* end confdefs.h. */ 6289$ac_includes_default 6290 6291#include <$ac_header> 6292_ACEOF 6293rm -f conftest.$ac_objext 6294if { (ac_try="$ac_compile" 6295case "(($ac_try" in 6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6297 *) ac_try_echo=$ac_try;; 6298esac 6299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6300$as_echo "$ac_try_echo") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 eval "$as_ac_Header=yes" 6312else 6313 $as_echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 eval "$as_ac_Header=no" 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320fi 6321ac_res=`eval 'as_val=${'$as_ac_Header'} 6322 $as_echo "$as_val"'` 6323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6324$as_echo "$ac_res" >&6; } 6325if test `eval 'as_val=${'$as_ac_Header'} 6326 $as_echo "$as_val"'` = yes; then 6327 cat >>confdefs.h <<_ACEOF 6328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6329_ACEOF 6330 6331fi 6332 6333done 6334 6335 6336 6337# Set options 6338 6339 6340 6341 enable_dlopen=no 6342 6343 6344 enable_win32_dll=no 6345 6346 6347 # Check whether --enable-shared was given. 6348if test "${enable_shared+set}" = set; then 6349 enableval=$enable_shared; p=${PACKAGE-default} 6350 case $enableval in 6351 yes) enable_shared=yes ;; 6352 no) enable_shared=no ;; 6353 *) 6354 enable_shared=no 6355 # Look at the argument we got. We use all the common list separators. 6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6357 for pkg in $enableval; do 6358 IFS="$lt_save_ifs" 6359 if test "X$pkg" = "X$p"; then 6360 enable_shared=yes 6361 fi 6362 done 6363 IFS="$lt_save_ifs" 6364 ;; 6365 esac 6366else 6367 enable_shared=yes 6368fi 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 # Check whether --enable-static was given. 6379if test "${enable_static+set}" = set; then 6380 enableval=$enable_static; p=${PACKAGE-default} 6381 case $enableval in 6382 yes) enable_static=yes ;; 6383 no) enable_static=no ;; 6384 *) 6385 enable_static=no 6386 # Look at the argument we got. We use all the common list separators. 6387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6388 for pkg in $enableval; do 6389 IFS="$lt_save_ifs" 6390 if test "X$pkg" = "X$p"; then 6391 enable_static=yes 6392 fi 6393 done 6394 IFS="$lt_save_ifs" 6395 ;; 6396 esac 6397else 6398 enable_static=yes 6399fi 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410# Check whether --with-pic was given. 6411if test "${with_pic+set}" = set; then 6412 withval=$with_pic; pic_mode="$withval" 6413else 6414 pic_mode=default 6415fi 6416 6417 6418test -z "$pic_mode" && pic_mode=default 6419 6420 6421 6422 6423 6424 6425 6426 # Check whether --enable-fast-install was given. 6427if test "${enable_fast_install+set}" = set; then 6428 enableval=$enable_fast_install; p=${PACKAGE-default} 6429 case $enableval in 6430 yes) enable_fast_install=yes ;; 6431 no) enable_fast_install=no ;; 6432 *) 6433 enable_fast_install=no 6434 # Look at the argument we got. We use all the common list separators. 6435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6436 for pkg in $enableval; do 6437 IFS="$lt_save_ifs" 6438 if test "X$pkg" = "X$p"; then 6439 enable_fast_install=yes 6440 fi 6441 done 6442 IFS="$lt_save_ifs" 6443 ;; 6444 esac 6445else 6446 enable_fast_install=yes 6447fi 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459# This can be used to rebuild libtool when needed 6460LIBTOOL_DEPS="$ltmain" 6461 6462# Always use our own libtool. 6463LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489test -z "$LN_S" && LN_S="ln -s" 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504if test -n "${ZSH_VERSION+set}" ; then 6505 setopt NO_GLOB_SUBST 6506fi 6507 6508{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6509$as_echo_n "checking for objdir... " >&6; } 6510if test "${lt_cv_objdir+set}" = set; then 6511 $as_echo_n "(cached) " >&6 6512else 6513 rm -f .libs 2>/dev/null 6514mkdir .libs 2>/dev/null 6515if test -d .libs; then 6516 lt_cv_objdir=.libs 6517else 6518 # MS-DOS does not allow filenames that begin with a dot. 6519 lt_cv_objdir=_libs 6520fi 6521rmdir .libs 2>/dev/null 6522fi 6523{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6524$as_echo "$lt_cv_objdir" >&6; } 6525objdir=$lt_cv_objdir 6526 6527 6528 6529 6530 6531cat >>confdefs.h <<_ACEOF 6532#define LT_OBJDIR "$lt_cv_objdir/" 6533_ACEOF 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551case $host_os in 6552aix3*) 6553 # AIX sometimes has problems with the GCC collect2 program. For some 6554 # reason, if we set the COLLECT_NAMES environment variable, the problems 6555 # vanish in a puff of smoke. 6556 if test "X${COLLECT_NAMES+set}" != Xset; then 6557 COLLECT_NAMES= 6558 export COLLECT_NAMES 6559 fi 6560 ;; 6561esac 6562 6563# Sed substitution that helps us do robust quoting. It backslashifies 6564# metacharacters that are still active within double-quoted strings. 6565sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6566 6567# Same as above, but do not quote variable references. 6568double_quote_subst='s/\(["`\\]\)/\\\1/g' 6569 6570# Sed substitution to delay expansion of an escaped shell variable in a 6571# double_quote_subst'ed string. 6572delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6573 6574# Sed substitution to delay expansion of an escaped single quote. 6575delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6576 6577# Sed substitution to avoid accidental globbing in evaled expressions 6578no_glob_subst='s/\*/\\\*/g' 6579 6580# Global variables: 6581ofile=libtool 6582can_build_shared=yes 6583 6584# All known linkers require a `.a' archive for static linking (except MSVC, 6585# which needs '.lib'). 6586libext=a 6587 6588with_gnu_ld="$lt_cv_prog_gnu_ld" 6589 6590old_CC="$CC" 6591old_CFLAGS="$CFLAGS" 6592 6593# Set sane defaults for various variables 6594test -z "$CC" && CC=cc 6595test -z "$LTCC" && LTCC=$CC 6596test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6597test -z "$LD" && LD=ld 6598test -z "$ac_objext" && ac_objext=o 6599 6600for cc_temp in $compiler""; do 6601 case $cc_temp in 6602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6604 \-*) ;; 6605 *) break;; 6606 esac 6607done 6608cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6609 6610 6611# Only perform the check for file, if the check method requires it 6612test -z "$MAGIC_CMD" && MAGIC_CMD=file 6613case $deplibs_check_method in 6614file_magic*) 6615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6616 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6617$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6618if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6619 $as_echo_n "(cached) " >&6 6620else 6621 case $MAGIC_CMD in 6622[\\/*] | ?:[\\/]*) 6623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6624 ;; 6625*) 6626 lt_save_MAGIC_CMD="$MAGIC_CMD" 6627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6629 for ac_dir in $ac_dummy; do 6630 IFS="$lt_save_ifs" 6631 test -z "$ac_dir" && ac_dir=. 6632 if test -f $ac_dir/${ac_tool_prefix}file; then 6633 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6634 if test -n "$file_magic_test_file"; then 6635 case $deplibs_check_method in 6636 "file_magic "*) 6637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6640 $EGREP "$file_magic_regex" > /dev/null; then 6641 : 6642 else 6643 cat <<_LT_EOF 1>&2 6644 6645*** Warning: the command libtool uses to detect shared libraries, 6646*** $file_magic_cmd, produces output that libtool cannot recognize. 6647*** The result is that libtool may fail to recognize shared libraries 6648*** as such. This will affect the creation of libtool libraries that 6649*** depend on shared libraries, but programs linked with such libtool 6650*** libraries will work regardless of this problem. Nevertheless, you 6651*** may want to report the problem to your system manager and/or to 6652*** [email protected] 6653 6654_LT_EOF 6655 fi ;; 6656 esac 6657 fi 6658 break 6659 fi 6660 done 6661 IFS="$lt_save_ifs" 6662 MAGIC_CMD="$lt_save_MAGIC_CMD" 6663 ;; 6664esac 6665fi 6666 6667MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6668if test -n "$MAGIC_CMD"; then 6669 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6670$as_echo "$MAGIC_CMD" >&6; } 6671else 6672 { $as_echo "$as_me:$LINENO: result: no" >&5 6673$as_echo "no" >&6; } 6674fi 6675 6676 6677 6678 6679 6680if test -z "$lt_cv_path_MAGIC_CMD"; then 6681 if test -n "$ac_tool_prefix"; then 6682 { $as_echo "$as_me:$LINENO: checking for file" >&5 6683$as_echo_n "checking for file... " >&6; } 6684if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6685 $as_echo_n "(cached) " >&6 6686else 6687 case $MAGIC_CMD in 6688[\\/*] | ?:[\\/]*) 6689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6690 ;; 6691*) 6692 lt_save_MAGIC_CMD="$MAGIC_CMD" 6693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6695 for ac_dir in $ac_dummy; do 6696 IFS="$lt_save_ifs" 6697 test -z "$ac_dir" && ac_dir=. 6698 if test -f $ac_dir/file; then 6699 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6700 if test -n "$file_magic_test_file"; then 6701 case $deplibs_check_method in 6702 "file_magic "*) 6703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6706 $EGREP "$file_magic_regex" > /dev/null; then 6707 : 6708 else 6709 cat <<_LT_EOF 1>&2 6710 6711*** Warning: the command libtool uses to detect shared libraries, 6712*** $file_magic_cmd, produces output that libtool cannot recognize. 6713*** The result is that libtool may fail to recognize shared libraries 6714*** as such. This will affect the creation of libtool libraries that 6715*** depend on shared libraries, but programs linked with such libtool 6716*** libraries will work regardless of this problem. Nevertheless, you 6717*** may want to report the problem to your system manager and/or to 6718*** [email protected] 6719 6720_LT_EOF 6721 fi ;; 6722 esac 6723 fi 6724 break 6725 fi 6726 done 6727 IFS="$lt_save_ifs" 6728 MAGIC_CMD="$lt_save_MAGIC_CMD" 6729 ;; 6730esac 6731fi 6732 6733MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6734if test -n "$MAGIC_CMD"; then 6735 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6736$as_echo "$MAGIC_CMD" >&6; } 6737else 6738 { $as_echo "$as_me:$LINENO: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 6743 else 6744 MAGIC_CMD=: 6745 fi 6746fi 6747 6748 fi 6749 ;; 6750esac 6751 6752# Use C for the default configuration in the libtool script 6753 6754lt_save_CC="$CC" 6755ac_ext=c 6756ac_cpp='$CPP $CPPFLAGS' 6757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6759ac_compiler_gnu=$ac_cv_c_compiler_gnu 6760 6761 6762# Source file extension for C test sources. 6763ac_ext=c 6764 6765# Object file extension for compiled C test sources. 6766objext=o 6767objext=$objext 6768 6769# Code to be used in simple compile tests 6770lt_simple_compile_test_code="int some_variable = 0;" 6771 6772# Code to be used in simple link tests 6773lt_simple_link_test_code='int main(){return(0);}' 6774 6775 6776 6777 6778 6779 6780 6781# If no C compiler was specified, use CC. 6782LTCC=${LTCC-"$CC"} 6783 6784# If no C compiler flags were specified, use CFLAGS. 6785LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6786 6787# Allow CC to be a program name with arguments. 6788compiler=$CC 6789 6790# Save the default compiler, since it gets overwritten when the other 6791# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6792compiler_DEFAULT=$CC 6793 6794# save warnings/boilerplate of simple test code 6795ac_outfile=conftest.$ac_objext 6796echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6798_lt_compiler_boilerplate=`cat conftest.err` 6799$RM conftest* 6800 6801ac_outfile=conftest.$ac_objext 6802echo "$lt_simple_link_test_code" >conftest.$ac_ext 6803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6804_lt_linker_boilerplate=`cat conftest.err` 6805$RM -r conftest* 6806 6807 6808if test -n "$compiler"; then 6809 6810lt_prog_compiler_no_builtin_flag= 6811 6812if test "$GCC" = yes; then 6813 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6814 6815 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6816$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6817if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6818 $as_echo_n "(cached) " >&6 6819else 6820 lt_cv_prog_compiler_rtti_exceptions=no 6821 ac_outfile=conftest.$ac_objext 6822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6823 lt_compiler_flag="-fno-rtti -fno-exceptions" 6824 # Insert the option either (1) after the last *FLAGS variable, or 6825 # (2) before a word containing "conftest.", or (3) at the end. 6826 # Note that $ac_compile itself does not contain backslashes and begins 6827 # with a dollar sign (not a hyphen), so the echo should work correctly. 6828 # The option is referenced via a variable to avoid confusing sed. 6829 lt_compile=`echo "$ac_compile" | $SED \ 6830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6832 -e 's:$: $lt_compiler_flag:'` 6833 (eval echo "\"\$as_me:6833: $lt_compile\"" >&5) 6834 (eval "$lt_compile" 2>conftest.err) 6835 ac_status=$? 6836 cat conftest.err >&5 6837 echo "$as_me:6837: \$? = $ac_status" >&5 6838 if (exit $ac_status) && test -s "$ac_outfile"; then 6839 # The compiler can only warn and ignore the option if not recognized 6840 # So say no if there are warnings other than the usual output. 6841 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6844 lt_cv_prog_compiler_rtti_exceptions=yes 6845 fi 6846 fi 6847 $RM conftest* 6848 6849fi 6850{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6851$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6852 6853if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6855else 6856 : 6857fi 6858 6859fi 6860 6861 6862 6863 6864 6865 6866 lt_prog_compiler_wl= 6867lt_prog_compiler_pic= 6868lt_prog_compiler_static= 6869 6870{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6871$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6872 6873 if test "$GCC" = yes; then 6874 lt_prog_compiler_wl='-Wl,' 6875 lt_prog_compiler_static='-static' 6876 6877 case $host_os in 6878 aix*) 6879 # All AIX code is PIC. 6880 if test "$host_cpu" = ia64; then 6881 # AIX 5 now supports IA64 processor 6882 lt_prog_compiler_static='-Bstatic' 6883 fi 6884 ;; 6885 6886 amigaos*) 6887 case $host_cpu in 6888 powerpc) 6889 # see comment about AmigaOS4 .so support 6890 lt_prog_compiler_pic='-fPIC' 6891 ;; 6892 m68k) 6893 # FIXME: we need at least 68020 code to build shared libraries, but 6894 # adding the `-m68020' flag to GCC prevents building anything better, 6895 # like `-m68040'. 6896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6897 ;; 6898 esac 6899 ;; 6900 6901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6902 # PIC is the default for these OSes. 6903 ;; 6904 6905 mingw* | cygwin* | pw32* | os2* | cegcc*) 6906 # This hack is so that the source file can tell whether it is being 6907 # built for inclusion in a dll (and should export symbols for example). 6908 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6909 # (--disable-auto-import) libraries 6910 lt_prog_compiler_pic='-DDLL_EXPORT' 6911 ;; 6912 6913 darwin* | rhapsody*) 6914 # PIC is the default on this platform 6915 # Common symbols not allowed in MH_DYLIB files 6916 lt_prog_compiler_pic='-fno-common' 6917 ;; 6918 6919 hpux*) 6920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6922 # sets the default TLS model and affects inlining. 6923 case $host_cpu in 6924 hppa*64*) 6925 # +Z the default 6926 ;; 6927 *) 6928 lt_prog_compiler_pic='-fPIC' 6929 ;; 6930 esac 6931 ;; 6932 6933 interix[3-9]*) 6934 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6935 # Instead, we relocate shared libraries at runtime. 6936 ;; 6937 6938 msdosdjgpp*) 6939 # Just because we use GCC doesn't mean we suddenly get shared libraries 6940 # on systems that don't support them. 6941 lt_prog_compiler_can_build_shared=no 6942 enable_shared=no 6943 ;; 6944 6945 *nto* | *qnx*) 6946 # QNX uses GNU C++, but need to define -shared option too, otherwise 6947 # it will coredump. 6948 lt_prog_compiler_pic='-fPIC -shared' 6949 ;; 6950 6951 sysv4*MP*) 6952 if test -d /usr/nec; then 6953 lt_prog_compiler_pic=-Kconform_pic 6954 fi 6955 ;; 6956 6957 *) 6958 lt_prog_compiler_pic='-fPIC' 6959 ;; 6960 esac 6961 else 6962 # PORTME Check for flag to pass linker flags through the system compiler. 6963 case $host_os in 6964 aix*) 6965 lt_prog_compiler_wl='-Wl,' 6966 if test "$host_cpu" = ia64; then 6967 # AIX 5 now supports IA64 processor 6968 lt_prog_compiler_static='-Bstatic' 6969 else 6970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6971 fi 6972 ;; 6973 6974 mingw* | cygwin* | pw32* | os2* | cegcc*) 6975 # This hack is so that the source file can tell whether it is being 6976 # built for inclusion in a dll (and should export symbols for example). 6977 lt_prog_compiler_pic='-DDLL_EXPORT' 6978 ;; 6979 6980 hpux9* | hpux10* | hpux11*) 6981 lt_prog_compiler_wl='-Wl,' 6982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6983 # not for PA HP-UX. 6984 case $host_cpu in 6985 hppa*64*|ia64*) 6986 # +Z the default 6987 ;; 6988 *) 6989 lt_prog_compiler_pic='+Z' 6990 ;; 6991 esac 6992 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6993 lt_prog_compiler_static='${wl}-a ${wl}archive' 6994 ;; 6995 6996 irix5* | irix6* | nonstopux*) 6997 lt_prog_compiler_wl='-Wl,' 6998 # PIC (with -KPIC) is the default. 6999 lt_prog_compiler_static='-non_shared' 7000 ;; 7001 7002 linux* | k*bsd*-gnu) 7003 case $cc_basename in 7004 # old Intel for x86_64 which still supported -KPIC. 7005 ecc*) 7006 lt_prog_compiler_wl='-Wl,' 7007 lt_prog_compiler_pic='-KPIC' 7008 lt_prog_compiler_static='-static' 7009 ;; 7010 # icc used to be incompatible with GCC. 7011 # ICC 10 doesn't accept -KPIC any more. 7012 icc* | ifort*) 7013 lt_prog_compiler_wl='-Wl,' 7014 lt_prog_compiler_pic='-fPIC' 7015 lt_prog_compiler_static='-static' 7016 ;; 7017 # Lahey Fortran 8.1. 7018 lf95*) 7019 lt_prog_compiler_wl='-Wl,' 7020 lt_prog_compiler_pic='--shared' 7021 lt_prog_compiler_static='--static' 7022 ;; 7023 pgcc* | pgf77* | pgf90* | pgf95*) 7024 # Portland Group compilers (*not* the Pentium gcc compiler, 7025 # which looks to be a dead project) 7026 lt_prog_compiler_wl='-Wl,' 7027 lt_prog_compiler_pic='-fpic' 7028 lt_prog_compiler_static='-Bstatic' 7029 ;; 7030 ccc*) 7031 lt_prog_compiler_wl='-Wl,' 7032 # All Alpha code is PIC. 7033 lt_prog_compiler_static='-non_shared' 7034 ;; 7035 xl*) 7036 # IBM XL C 8.0/Fortran 10.1 on PPC 7037 lt_prog_compiler_wl='-Wl,' 7038 lt_prog_compiler_pic='-qpic' 7039 lt_prog_compiler_static='-qstaticlink' 7040 ;; 7041 *) 7042 case `$CC -V 2>&1 | sed 5q` in 7043 *Sun\ C*) 7044 # Sun C 5.9 7045 lt_prog_compiler_pic='-KPIC' 7046 lt_prog_compiler_static='-Bstatic' 7047 lt_prog_compiler_wl='-Wl,' 7048 ;; 7049 *Sun\ F*) 7050 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7051 lt_prog_compiler_pic='-KPIC' 7052 lt_prog_compiler_static='-Bstatic' 7053 lt_prog_compiler_wl='' 7054 ;; 7055 esac 7056 ;; 7057 esac 7058 ;; 7059 7060 newsos6) 7061 lt_prog_compiler_pic='-KPIC' 7062 lt_prog_compiler_static='-Bstatic' 7063 ;; 7064 7065 *nto* | *qnx*) 7066 # QNX uses GNU C++, but need to define -shared option too, otherwise 7067 # it will coredump. 7068 lt_prog_compiler_pic='-fPIC -shared' 7069 ;; 7070 7071 osf3* | osf4* | osf5*) 7072 lt_prog_compiler_wl='-Wl,' 7073 # All OSF/1 code is PIC. 7074 lt_prog_compiler_static='-non_shared' 7075 ;; 7076 7077 rdos*) 7078 lt_prog_compiler_static='-non_shared' 7079 ;; 7080 7081 solaris*) 7082 lt_prog_compiler_pic='-KPIC' 7083 lt_prog_compiler_static='-Bstatic' 7084 case $cc_basename in 7085 f77* | f90* | f95*) 7086 lt_prog_compiler_wl='-Qoption ld ';; 7087 *) 7088 lt_prog_compiler_wl='-Wl,';; 7089 esac 7090 ;; 7091 7092 sunos4*) 7093 lt_prog_compiler_wl='-Qoption ld ' 7094 lt_prog_compiler_pic='-PIC' 7095 lt_prog_compiler_static='-Bstatic' 7096 ;; 7097 7098 sysv4 | sysv4.2uw2* | sysv4.3*) 7099 lt_prog_compiler_wl='-Wl,' 7100 lt_prog_compiler_pic='-KPIC' 7101 lt_prog_compiler_static='-Bstatic' 7102 ;; 7103 7104 sysv4*MP*) 7105 if test -d /usr/nec ;then 7106 lt_prog_compiler_pic='-Kconform_pic' 7107 lt_prog_compiler_static='-Bstatic' 7108 fi 7109 ;; 7110 7111 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7112 lt_prog_compiler_wl='-Wl,' 7113 lt_prog_compiler_pic='-KPIC' 7114 lt_prog_compiler_static='-Bstatic' 7115 ;; 7116 7117 unicos*) 7118 lt_prog_compiler_wl='-Wl,' 7119 lt_prog_compiler_can_build_shared=no 7120 ;; 7121 7122 uts4*) 7123 lt_prog_compiler_pic='-pic' 7124 lt_prog_compiler_static='-Bstatic' 7125 ;; 7126 7127 *) 7128 lt_prog_compiler_can_build_shared=no 7129 ;; 7130 esac 7131 fi 7132 7133case $host_os in 7134 # For platforms which do not support PIC, -DPIC is meaningless: 7135 *djgpp*) 7136 lt_prog_compiler_pic= 7137 ;; 7138 *) 7139 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7140 ;; 7141esac 7142{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7143$as_echo "$lt_prog_compiler_pic" >&6; } 7144 7145 7146 7147 7148 7149 7150# 7151# Check to make sure the PIC flag actually works. 7152# 7153if test -n "$lt_prog_compiler_pic"; then 7154 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7155$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7156if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7157 $as_echo_n "(cached) " >&6 7158else 7159 lt_cv_prog_compiler_pic_works=no 7160 ac_outfile=conftest.$ac_objext 7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7163 # Insert the option either (1) after the last *FLAGS variable, or 7164 # (2) before a word containing "conftest.", or (3) at the end. 7165 # Note that $ac_compile itself does not contain backslashes and begins 7166 # with a dollar sign (not a hyphen), so the echo should work correctly. 7167 # The option is referenced via a variable to avoid confusing sed. 7168 lt_compile=`echo "$ac_compile" | $SED \ 7169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7171 -e 's:$: $lt_compiler_flag:'` 7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5) 7173 (eval "$lt_compile" 2>conftest.err) 7174 ac_status=$? 7175 cat conftest.err >&5 7176 echo "$as_me:7176: \$? = $ac_status" >&5 7177 if (exit $ac_status) && test -s "$ac_outfile"; then 7178 # The compiler can only warn and ignore the option if not recognized 7179 # So say no if there are warnings other than the usual output. 7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7183 lt_cv_prog_compiler_pic_works=yes 7184 fi 7185 fi 7186 $RM conftest* 7187 7188fi 7189{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7190$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7191 7192if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7193 case $lt_prog_compiler_pic in 7194 "" | " "*) ;; 7195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7196 esac 7197else 7198 lt_prog_compiler_pic= 7199 lt_prog_compiler_can_build_shared=no 7200fi 7201 7202fi 7203 7204 7205 7206 7207 7208 7209# 7210# Check to make sure the static flag actually works. 7211# 7212wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7213{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7214$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7215if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7216 $as_echo_n "(cached) " >&6 7217else 7218 lt_cv_prog_compiler_static_works=no 7219 save_LDFLAGS="$LDFLAGS" 7220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7221 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7223 # The linker can only warn and ignore the option if not recognized 7224 # So say no if there are warnings 7225 if test -s conftest.err; then 7226 # Append any errors to the config.log. 7227 cat conftest.err 1>&5 7228 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7230 if diff conftest.exp conftest.er2 >/dev/null; then 7231 lt_cv_prog_compiler_static_works=yes 7232 fi 7233 else 7234 lt_cv_prog_compiler_static_works=yes 7235 fi 7236 fi 7237 $RM -r conftest* 7238 LDFLAGS="$save_LDFLAGS" 7239 7240fi 7241{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7242$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7243 7244if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7245 : 7246else 7247 lt_prog_compiler_static= 7248fi 7249 7250 7251 7252 7253 7254 7255 7256 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7257$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7258if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7259 $as_echo_n "(cached) " >&6 7260else 7261 lt_cv_prog_compiler_c_o=no 7262 $RM -r conftest 2>/dev/null 7263 mkdir conftest 7264 cd conftest 7265 mkdir out 7266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7267 7268 lt_compiler_flag="-o out/conftest2.$ac_objext" 7269 # Insert the option either (1) after the last *FLAGS variable, or 7270 # (2) before a word containing "conftest.", or (3) at the end. 7271 # Note that $ac_compile itself does not contain backslashes and begins 7272 # with a dollar sign (not a hyphen), so the echo should work correctly. 7273 lt_compile=`echo "$ac_compile" | $SED \ 7274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7276 -e 's:$: $lt_compiler_flag:'` 7277 (eval echo "\"\$as_me:7277: $lt_compile\"" >&5) 7278 (eval "$lt_compile" 2>out/conftest.err) 7279 ac_status=$? 7280 cat out/conftest.err >&5 7281 echo "$as_me:7281: \$? = $ac_status" >&5 7282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7283 then 7284 # The compiler can only warn and ignore the option if not recognized 7285 # So say no if there are warnings 7286 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7289 lt_cv_prog_compiler_c_o=yes 7290 fi 7291 fi 7292 chmod u+w . 2>&5 7293 $RM conftest* 7294 # SGI C++ compiler will create directory out/ii_files/ for 7295 # template instantiation 7296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7297 $RM out/* && rmdir out 7298 cd .. 7299 $RM -r conftest 7300 $RM conftest* 7301 7302fi 7303{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7304$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7305 7306 7307 7308 7309 7310 7311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7312$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7313if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7314 $as_echo_n "(cached) " >&6 7315else 7316 lt_cv_prog_compiler_c_o=no 7317 $RM -r conftest 2>/dev/null 7318 mkdir conftest 7319 cd conftest 7320 mkdir out 7321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7322 7323 lt_compiler_flag="-o out/conftest2.$ac_objext" 7324 # Insert the option either (1) after the last *FLAGS variable, or 7325 # (2) before a word containing "conftest.", or (3) at the end. 7326 # Note that $ac_compile itself does not contain backslashes and begins 7327 # with a dollar sign (not a hyphen), so the echo should work correctly. 7328 lt_compile=`echo "$ac_compile" | $SED \ 7329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7331 -e 's:$: $lt_compiler_flag:'` 7332 (eval echo "\"\$as_me:7332: $lt_compile\"" >&5) 7333 (eval "$lt_compile" 2>out/conftest.err) 7334 ac_status=$? 7335 cat out/conftest.err >&5 7336 echo "$as_me:7336: \$? = $ac_status" >&5 7337 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7338 then 7339 # The compiler can only warn and ignore the option if not recognized 7340 # So say no if there are warnings 7341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7344 lt_cv_prog_compiler_c_o=yes 7345 fi 7346 fi 7347 chmod u+w . 2>&5 7348 $RM conftest* 7349 # SGI C++ compiler will create directory out/ii_files/ for 7350 # template instantiation 7351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7352 $RM out/* && rmdir out 7353 cd .. 7354 $RM -r conftest 7355 $RM conftest* 7356 7357fi 7358{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7359$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7360 7361 7362 7363 7364hard_links="nottested" 7365if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7366 # do not overwrite the value of need_locks provided by the user 7367 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7368$as_echo_n "checking if we can lock with hard links... " >&6; } 7369 hard_links=yes 7370 $RM conftest* 7371 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7372 touch conftest.a 7373 ln conftest.a conftest.b 2>&5 || hard_links=no 7374 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7375 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7376$as_echo "$hard_links" >&6; } 7377 if test "$hard_links" = no; then 7378 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7379$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7380 need_locks=warn 7381 fi 7382else 7383 need_locks=no 7384fi 7385 7386 7387 7388 7389 7390 7391 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7392$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7393 7394 runpath_var= 7395 allow_undefined_flag= 7396 always_export_symbols=no 7397 archive_cmds= 7398 archive_expsym_cmds= 7399 compiler_needs_object=no 7400 enable_shared_with_static_runtimes=no 7401 export_dynamic_flag_spec= 7402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7403 hardcode_automatic=no 7404 hardcode_direct=no 7405 hardcode_direct_absolute=no 7406 hardcode_libdir_flag_spec= 7407 hardcode_libdir_flag_spec_ld= 7408 hardcode_libdir_separator= 7409 hardcode_minus_L=no 7410 hardcode_shlibpath_var=unsupported 7411 inherit_rpath=no 7412 link_all_deplibs=unknown 7413 module_cmds= 7414 module_expsym_cmds= 7415 old_archive_from_new_cmds= 7416 old_archive_from_expsyms_cmds= 7417 thread_safe_flag_spec= 7418 whole_archive_flag_spec= 7419 # include_expsyms should be a list of space-separated symbols to be *always* 7420 # included in the symbol list 7421 include_expsyms= 7422 # exclude_expsyms can be an extended regexp of symbols to exclude 7423 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7425 # as well as any symbol that contains `d'. 7426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7428 # platforms (ab)use it in PIC code, but their linkers get confused if 7429 # the symbol is explicitly referenced. Since portable code cannot 7430 # rely on this symbol name, it's probably fine to never include it in 7431 # preloaded symbol tables. 7432 # Exclude shared library initialization/finalization symbols. 7433 extract_expsyms_cmds= 7434 7435 case $host_os in 7436 cygwin* | mingw* | pw32* | cegcc*) 7437 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7438 # When not using gcc, we currently assume that we are using 7439 # Microsoft Visual C++. 7440 if test "$GCC" != yes; then 7441 with_gnu_ld=no 7442 fi 7443 ;; 7444 interix*) 7445 # we just hope/assume this is gcc and not c89 (= MSVC++) 7446 with_gnu_ld=yes 7447 ;; 7448 openbsd*) 7449 with_gnu_ld=no 7450 ;; 7451 esac 7452 7453 ld_shlibs=yes 7454 if test "$with_gnu_ld" = yes; then 7455 # If archive_cmds runs LD, not CC, wlarc should be empty 7456 wlarc='${wl}' 7457 7458 # Set some defaults for GNU ld with shared library support. These 7459 # are reset later if shared libraries are not supported. Putting them 7460 # here allows them to be overridden if necessary. 7461 runpath_var=LD_RUN_PATH 7462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7463 export_dynamic_flag_spec='${wl}--export-dynamic' 7464 # ancient GNU ld didn't support --whole-archive et. al. 7465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7467 else 7468 whole_archive_flag_spec= 7469 fi 7470 supports_anon_versioning=no 7471 case `$LD -v 2>&1` in 7472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7475 *\ 2.11.*) ;; # other 2.11 versions 7476 *) supports_anon_versioning=yes ;; 7477 esac 7478 7479 # See if GNU ld supports shared libraries. 7480 case $host_os in 7481 aix[3-9]*) 7482 # On AIX/PPC, the GNU linker is very broken 7483 if test "$host_cpu" != ia64; then 7484 ld_shlibs=no 7485 cat <<_LT_EOF 1>&2 7486 7487*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7488*** to be unable to reliably create shared libraries on AIX. 7489*** Therefore, libtool is disabling shared libraries support. If you 7490*** really care for shared libraries, you may want to modify your PATH 7491*** so that a non-GNU linker is found, and then restart. 7492 7493_LT_EOF 7494 fi 7495 ;; 7496 7497 amigaos*) 7498 case $host_cpu in 7499 powerpc) 7500 # see comment about AmigaOS4 .so support 7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7502 archive_expsym_cmds='' 7503 ;; 7504 m68k) 7505 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)' 7506 hardcode_libdir_flag_spec='-L$libdir' 7507 hardcode_minus_L=yes 7508 ;; 7509 esac 7510 ;; 7511 7512 beos*) 7513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7514 allow_undefined_flag=unsupported 7515 # Joseph Beckenbach <[email protected]> says some releases of gcc 7516 # support --undefined. This deserves some investigation. FIXME 7517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7518 else 7519 ld_shlibs=no 7520 fi 7521 ;; 7522 7523 cygwin* | mingw* | pw32* | cegcc*) 7524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7525 # as there is no search path for DLLs. 7526 hardcode_libdir_flag_spec='-L$libdir' 7527 allow_undefined_flag=unsupported 7528 always_export_symbols=no 7529 enable_shared_with_static_runtimes=yes 7530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7531 7532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7534 # If the export-symbols file already is a .def file (1st line 7535 # is EXPORTS), use it as is; otherwise, prepend... 7536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7537 cp $export_symbols $output_objdir/$soname.def; 7538 else 7539 echo EXPORTS > $output_objdir/$soname.def; 7540 cat $export_symbols >> $output_objdir/$soname.def; 7541 fi~ 7542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7543 else 7544 ld_shlibs=no 7545 fi 7546 ;; 7547 7548 interix[3-9]*) 7549 hardcode_direct=no 7550 hardcode_shlibpath_var=no 7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7552 export_dynamic_flag_spec='${wl}-E' 7553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7554 # Instead, shared libraries are loaded at an image base (0x10000000 by 7555 # default) and relocated if they conflict, which is a slow very memory 7556 # consuming and fragmenting process. To avoid this, we pick a random, 7557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7558 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7560 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' 7561 ;; 7562 7563 gnu* | linux* | tpf* | k*bsd*-gnu) 7564 tmp_diet=no 7565 if test "$host_os" = linux-dietlibc; then 7566 case $cc_basename in 7567 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7568 esac 7569 fi 7570 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7571 && test "$tmp_diet" = no 7572 then 7573 tmp_addflag= 7574 tmp_sharedflag='-shared' 7575 case $cc_basename,$host_cpu in 7576 pgcc*) # Portland Group C compiler 7577 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' 7578 tmp_addflag=' $pic_flag' 7579 ;; 7580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7581 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' 7582 tmp_addflag=' $pic_flag -Mnomain' ;; 7583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7584 tmp_addflag=' -i_dynamic' ;; 7585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7586 tmp_addflag=' -i_dynamic -nofor_main' ;; 7587 ifc* | ifort*) # Intel Fortran compiler 7588 tmp_addflag=' -nofor_main' ;; 7589 lf95*) # Lahey Fortran 8.1 7590 whole_archive_flag_spec= 7591 tmp_sharedflag='--shared' ;; 7592 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7593 tmp_sharedflag='-qmkshrobj' 7594 tmp_addflag= ;; 7595 esac 7596 case `$CC -V 2>&1 | sed 5q` in 7597 *Sun\ C*) # Sun C 5.9 7598 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' 7599 compiler_needs_object=yes 7600 tmp_sharedflag='-G' ;; 7601 *Sun\ F*) # Sun Fortran 8.3 7602 tmp_sharedflag='-G' ;; 7603 esac 7604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7605 7606 if test "x$supports_anon_versioning" = xyes; then 7607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7609 echo "local: *; };" >> $output_objdir/$libname.ver~ 7610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7611 fi 7612 7613 case $cc_basename in 7614 xlf*) 7615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7617 hardcode_libdir_flag_spec= 7618 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7619 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7620 if test "x$supports_anon_versioning" = xyes; then 7621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7623 echo "local: *; };" >> $output_objdir/$libname.ver~ 7624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7625 fi 7626 ;; 7627 esac 7628 else 7629 ld_shlibs=no 7630 fi 7631 ;; 7632 7633 netbsd*) 7634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7636 wlarc= 7637 else 7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7640 fi 7641 ;; 7642 7643 solaris*) 7644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7645 ld_shlibs=no 7646 cat <<_LT_EOF 1>&2 7647 7648*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7649*** create shared libraries on Solaris systems. Therefore, libtool 7650*** is disabling shared libraries support. We urge you to upgrade GNU 7651*** binutils to release 2.9.1 or newer. Another option is to modify 7652*** your PATH or compiler configuration so that the native linker is 7653*** used, and then restart. 7654 7655_LT_EOF 7656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7659 else 7660 ld_shlibs=no 7661 fi 7662 ;; 7663 7664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7665 case `$LD -v 2>&1` in 7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7667 ld_shlibs=no 7668 cat <<_LT_EOF 1>&2 7669 7670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7671*** reliably create shared libraries on SCO systems. Therefore, libtool 7672*** is disabling shared libraries support. We urge you to upgrade GNU 7673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7674*** your PATH or compiler configuration so that the native linker is 7675*** used, and then restart. 7676 7677_LT_EOF 7678 ;; 7679 *) 7680 # For security reasons, it is highly recommended that you always 7681 # use absolute paths for naming shared libraries, and exclude the 7682 # DT_RUNPATH tag from executables and libraries. But doing so 7683 # requires that you compile everything twice, which is a pain. 7684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7688 else 7689 ld_shlibs=no 7690 fi 7691 ;; 7692 esac 7693 ;; 7694 7695 sunos4*) 7696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7697 wlarc= 7698 hardcode_direct=yes 7699 hardcode_shlibpath_var=no 7700 ;; 7701 7702 *) 7703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7706 else 7707 ld_shlibs=no 7708 fi 7709 ;; 7710 esac 7711 7712 if test "$ld_shlibs" = no; then 7713 runpath_var= 7714 hardcode_libdir_flag_spec= 7715 export_dynamic_flag_spec= 7716 whole_archive_flag_spec= 7717 fi 7718 else 7719 # PORTME fill in a description of your system's linker (not GNU ld) 7720 case $host_os in 7721 aix3*) 7722 allow_undefined_flag=unsupported 7723 always_export_symbols=yes 7724 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' 7725 # Note: this linker hardcodes the directories in LIBPATH if there 7726 # are no directories specified by -L. 7727 hardcode_minus_L=yes 7728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7729 # Neither direct hardcoding nor static linking is supported with a 7730 # broken collect2. 7731 hardcode_direct=unsupported 7732 fi 7733 ;; 7734 7735 aix[4-9]*) 7736 if test "$host_cpu" = ia64; then 7737 # On IA64, the linker does run time linking by default, so we don't 7738 # have to do anything special. 7739 aix_use_runtimelinking=no 7740 exp_sym_flag='-Bexport' 7741 no_entry_flag="" 7742 else 7743 # If we're using GNU nm, then we don't want the "-C" option. 7744 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7746 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' 7747 else 7748 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' 7749 fi 7750 aix_use_runtimelinking=no 7751 7752 # Test if we are trying to use run time linking or normal 7753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7754 # need to do runtime linking. 7755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7756 for ld_flag in $LDFLAGS; do 7757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7758 aix_use_runtimelinking=yes 7759 break 7760 fi 7761 done 7762 ;; 7763 esac 7764 7765 exp_sym_flag='-bexport' 7766 no_entry_flag='-bnoentry' 7767 fi 7768 7769 # When large executables or shared objects are built, AIX ld can 7770 # have problems creating the table of contents. If linking a library 7771 # or program results in "error TOC overflow" add -mminimal-toc to 7772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7774 7775 archive_cmds='' 7776 hardcode_direct=yes 7777 hardcode_direct_absolute=yes 7778 hardcode_libdir_separator=':' 7779 link_all_deplibs=yes 7780 file_list_spec='${wl}-f,' 7781 7782 if test "$GCC" = yes; then 7783 case $host_os in aix4.[012]|aix4.[012].*) 7784 # We only want to do this on AIX 4.2 and lower, the check 7785 # below for broken collect2 doesn't work under 4.3+ 7786 collect2name=`${CC} -print-prog-name=collect2` 7787 if test -f "$collect2name" && 7788 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7789 then 7790 # We have reworked collect2 7791 : 7792 else 7793 # We have old collect2 7794 hardcode_direct=unsupported 7795 # It fails to find uninstalled libraries when the uninstalled 7796 # path is not listed in the libpath. Setting hardcode_minus_L 7797 # to unsupported forces relinking 7798 hardcode_minus_L=yes 7799 hardcode_libdir_flag_spec='-L$libdir' 7800 hardcode_libdir_separator= 7801 fi 7802 ;; 7803 esac 7804 shared_flag='-shared' 7805 if test "$aix_use_runtimelinking" = yes; then 7806 shared_flag="$shared_flag "'${wl}-G' 7807 fi 7808 else 7809 # not using gcc 7810 if test "$host_cpu" = ia64; then 7811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7812 # chokes on -Wl,-G. The following line is correct: 7813 shared_flag='-G' 7814 else 7815 if test "$aix_use_runtimelinking" = yes; then 7816 shared_flag='${wl}-G' 7817 else 7818 shared_flag='${wl}-bM:SRE' 7819 fi 7820 fi 7821 fi 7822 7823 export_dynamic_flag_spec='${wl}-bexpall' 7824 # It seems that -bexpall does not export symbols beginning with 7825 # underscore (_), so it is better to generate a list of symbols to export. 7826 always_export_symbols=yes 7827 if test "$aix_use_runtimelinking" = yes; then 7828 # Warning - without using the other runtime loading flags (-brtl), 7829 # -berok will link without error, but may produce a broken library. 7830 allow_undefined_flag='-berok' 7831 # Determine the default libpath from the value encoded in an 7832 # empty executable. 7833 cat >conftest.$ac_ext <<_ACEOF 7834/* confdefs.h. */ 7835_ACEOF 7836cat confdefs.h >>conftest.$ac_ext 7837cat >>conftest.$ac_ext <<_ACEOF 7838/* end confdefs.h. */ 7839 7840int 7841main () 7842{ 7843 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848rm -f conftest.$ac_objext conftest$ac_exeext 7849if { (ac_try="$ac_link" 7850case "(($ac_try" in 7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7852 *) ac_try_echo=$ac_try;; 7853esac 7854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7855$as_echo "$ac_try_echo") >&5 7856 (eval "$ac_link") 2>conftest.er1 7857 ac_status=$? 7858 grep -v '^ *+' conftest.er1 >conftest.err 7859 rm -f conftest.er1 7860 cat conftest.err >&5 7861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7862 (exit $ac_status); } && { 7863 test -z "$ac_c_werror_flag" || 7864 test ! -s conftest.err 7865 } && test -s conftest$ac_exeext && { 7866 test "$cross_compiling" = yes || 7867 $as_test_x conftest$ac_exeext 7868 }; then 7869 7870lt_aix_libpath_sed=' 7871 /Import File Strings/,/^$/ { 7872 /^0/ { 7873 s/^0 *\(.*\)$/\1/ 7874 p 7875 } 7876 }' 7877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7878# Check for a 64-bit object if we didn't find anything. 7879if test -z "$aix_libpath"; then 7880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7881fi 7882else 7883 $as_echo "$as_me: failed program was:" >&5 7884sed 's/^/| /' conftest.$ac_ext >&5 7885 7886 7887fi 7888 7889rm -rf conftest.dSYM 7890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7891 conftest$ac_exeext conftest.$ac_ext 7892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7893 7894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7895 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" 7896 else 7897 if test "$host_cpu" = ia64; then 7898 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7899 allow_undefined_flag="-z nodefs" 7900 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" 7901 else 7902 # Determine the default libpath from the value encoded in an 7903 # empty executable. 7904 cat >conftest.$ac_ext <<_ACEOF 7905/* confdefs.h. */ 7906_ACEOF 7907cat confdefs.h >>conftest.$ac_ext 7908cat >>conftest.$ac_ext <<_ACEOF 7909/* end confdefs.h. */ 7910 7911int 7912main () 7913{ 7914 7915 ; 7916 return 0; 7917} 7918_ACEOF 7919rm -f conftest.$ac_objext conftest$ac_exeext 7920if { (ac_try="$ac_link" 7921case "(($ac_try" in 7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7923 *) ac_try_echo=$ac_try;; 7924esac 7925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7926$as_echo "$ac_try_echo") >&5 7927 (eval "$ac_link") 2>conftest.er1 7928 ac_status=$? 7929 grep -v '^ *+' conftest.er1 >conftest.err 7930 rm -f conftest.er1 7931 cat conftest.err >&5 7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 (exit $ac_status); } && { 7934 test -z "$ac_c_werror_flag" || 7935 test ! -s conftest.err 7936 } && test -s conftest$ac_exeext && { 7937 test "$cross_compiling" = yes || 7938 $as_test_x conftest$ac_exeext 7939 }; then 7940 7941lt_aix_libpath_sed=' 7942 /Import File Strings/,/^$/ { 7943 /^0/ { 7944 s/^0 *\(.*\)$/\1/ 7945 p 7946 } 7947 }' 7948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7949# Check for a 64-bit object if we didn't find anything. 7950if test -z "$aix_libpath"; then 7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7952fi 7953else 7954 $as_echo "$as_me: failed program was:" >&5 7955sed 's/^/| /' conftest.$ac_ext >&5 7956 7957 7958fi 7959 7960rm -rf conftest.dSYM 7961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7962 conftest$ac_exeext conftest.$ac_ext 7963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7964 7965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7966 # Warning - without using the other run time loading flags, 7967 # -berok will link without error, but may produce a broken library. 7968 no_undefined_flag=' ${wl}-bernotok' 7969 allow_undefined_flag=' ${wl}-berok' 7970 # Exported symbols can be pulled into shared objects from archives 7971 whole_archive_flag_spec='$convenience' 7972 archive_cmds_need_lc=yes 7973 # This is similar to how AIX traditionally builds its shared libraries. 7974 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' 7975 fi 7976 fi 7977 ;; 7978 7979 amigaos*) 7980 case $host_cpu in 7981 powerpc) 7982 # see comment about AmigaOS4 .so support 7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7984 archive_expsym_cmds='' 7985 ;; 7986 m68k) 7987 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)' 7988 hardcode_libdir_flag_spec='-L$libdir' 7989 hardcode_minus_L=yes 7990 ;; 7991 esac 7992 ;; 7993 7994 bsdi[45]*) 7995 export_dynamic_flag_spec=-rdynamic 7996 ;; 7997 7998 cygwin* | mingw* | pw32* | cegcc*) 7999 # When not using gcc, we currently assume that we are using 8000 # Microsoft Visual C++. 8001 # hardcode_libdir_flag_spec is actually meaningless, as there is 8002 # no search path for DLLs. 8003 hardcode_libdir_flag_spec=' ' 8004 allow_undefined_flag=unsupported 8005 # Tell ltmain to make .lib files, not .a files. 8006 libext=lib 8007 # Tell ltmain to make .dll files, not .so files. 8008 shrext_cmds=".dll" 8009 # FIXME: Setting linknames here is a bad hack. 8010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8011 # The linker will automatically build a .lib file if we build a DLL. 8012 old_archive_from_new_cmds='true' 8013 # FIXME: Should let the user specify the lib program. 8014 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8015 fix_srcfile_path='`cygpath -w "$srcfile"`' 8016 enable_shared_with_static_runtimes=yes 8017 ;; 8018 8019 darwin* | rhapsody*) 8020 8021 8022 archive_cmds_need_lc=no 8023 hardcode_direct=no 8024 hardcode_automatic=yes 8025 hardcode_shlibpath_var=unsupported 8026 whole_archive_flag_spec='' 8027 link_all_deplibs=yes 8028 allow_undefined_flag="$_lt_dar_allow_undefined" 8029 case $cc_basename in 8030 ifort*) _lt_dar_can_shared=yes ;; 8031 *) _lt_dar_can_shared=$GCC ;; 8032 esac 8033 if test "$_lt_dar_can_shared" = "yes"; then 8034 output_verbose_link_cmd=echo 8035 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8036 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8037 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}" 8038 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}" 8039 8040 else 8041 ld_shlibs=no 8042 fi 8043 8044 ;; 8045 8046 dgux*) 8047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8048 hardcode_libdir_flag_spec='-L$libdir' 8049 hardcode_shlibpath_var=no 8050 ;; 8051 8052 freebsd1*) 8053 ld_shlibs=no 8054 ;; 8055 8056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8057 # support. Future versions do this automatically, but an explicit c++rt0.o 8058 # does not break anything, and helps significantly (at the cost of a little 8059 # extra space). 8060 freebsd2.2*) 8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8062 hardcode_libdir_flag_spec='-R$libdir' 8063 hardcode_direct=yes 8064 hardcode_shlibpath_var=no 8065 ;; 8066 8067 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8068 freebsd2*) 8069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8070 hardcode_direct=yes 8071 hardcode_minus_L=yes 8072 hardcode_shlibpath_var=no 8073 ;; 8074 8075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8076 freebsd* | dragonfly*) 8077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8078 hardcode_libdir_flag_spec='-R$libdir' 8079 hardcode_direct=yes 8080 hardcode_shlibpath_var=no 8081 ;; 8082 8083 hpux9*) 8084 if test "$GCC" = yes; then 8085 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' 8086 else 8087 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' 8088 fi 8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8090 hardcode_libdir_separator=: 8091 hardcode_direct=yes 8092 8093 # hardcode_minus_L: Not really in the search PATH, 8094 # but as the default location of the library. 8095 hardcode_minus_L=yes 8096 export_dynamic_flag_spec='${wl}-E' 8097 ;; 8098 8099 hpux10*) 8100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8102 else 8103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8104 fi 8105 if test "$with_gnu_ld" = no; then 8106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8107 hardcode_libdir_flag_spec_ld='+b $libdir' 8108 hardcode_libdir_separator=: 8109 hardcode_direct=yes 8110 hardcode_direct_absolute=yes 8111 export_dynamic_flag_spec='${wl}-E' 8112 # hardcode_minus_L: Not really in the search PATH, 8113 # but as the default location of the library. 8114 hardcode_minus_L=yes 8115 fi 8116 ;; 8117 8118 hpux11*) 8119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8120 case $host_cpu in 8121 hppa*64*) 8122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8123 ;; 8124 ia64*) 8125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8126 ;; 8127 *) 8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8129 ;; 8130 esac 8131 else 8132 case $host_cpu in 8133 hppa*64*) 8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8135 ;; 8136 ia64*) 8137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8138 ;; 8139 *) 8140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8141 ;; 8142 esac 8143 fi 8144 if test "$with_gnu_ld" = no; then 8145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8146 hardcode_libdir_separator=: 8147 8148 case $host_cpu in 8149 hppa*64*|ia64*) 8150 hardcode_direct=no 8151 hardcode_shlibpath_var=no 8152 ;; 8153 *) 8154 hardcode_direct=yes 8155 hardcode_direct_absolute=yes 8156 export_dynamic_flag_spec='${wl}-E' 8157 8158 # hardcode_minus_L: Not really in the search PATH, 8159 # but as the default location of the library. 8160 hardcode_minus_L=yes 8161 ;; 8162 esac 8163 fi 8164 ;; 8165 8166 irix5* | irix6* | nonstopux*) 8167 if test "$GCC" = yes; then 8168 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' 8169 # Try to use the -exported_symbol ld option, if it does not 8170 # work, assume that -exports_file does not work either and 8171 # implicitly export all symbols. 8172 save_LDFLAGS="$LDFLAGS" 8173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8174 cat >conftest.$ac_ext <<_ACEOF 8175int foo(void) {} 8176_ACEOF 8177rm -f conftest.$ac_objext conftest$ac_exeext 8178if { (ac_try="$ac_link" 8179case "(($ac_try" in 8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8181 *) ac_try_echo=$ac_try;; 8182esac 8183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8184$as_echo "$ac_try_echo") >&5 8185 (eval "$ac_link") 2>conftest.er1 8186 ac_status=$? 8187 grep -v '^ *+' conftest.er1 >conftest.err 8188 rm -f conftest.er1 8189 cat conftest.err >&5 8190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); } && { 8192 test -z "$ac_c_werror_flag" || 8193 test ! -s conftest.err 8194 } && test -s conftest$ac_exeext && { 8195 test "$cross_compiling" = yes || 8196 $as_test_x conftest$ac_exeext 8197 }; then 8198 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' 8199 8200else 8201 $as_echo "$as_me: failed program was:" >&5 8202sed 's/^/| /' conftest.$ac_ext >&5 8203 8204 8205fi 8206 8207rm -rf conftest.dSYM 8208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8209 conftest$ac_exeext conftest.$ac_ext 8210 LDFLAGS="$save_LDFLAGS" 8211 else 8212 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' 8213 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' 8214 fi 8215 archive_cmds_need_lc='no' 8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8217 hardcode_libdir_separator=: 8218 inherit_rpath=yes 8219 link_all_deplibs=yes 8220 ;; 8221 8222 netbsd*) 8223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8225 else 8226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8227 fi 8228 hardcode_libdir_flag_spec='-R$libdir' 8229 hardcode_direct=yes 8230 hardcode_shlibpath_var=no 8231 ;; 8232 8233 newsos6) 8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8235 hardcode_direct=yes 8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8237 hardcode_libdir_separator=: 8238 hardcode_shlibpath_var=no 8239 ;; 8240 8241 *nto* | *qnx*) 8242 ;; 8243 8244 openbsd*) 8245 if test -f /usr/libexec/ld.so; then 8246 hardcode_direct=yes 8247 hardcode_shlibpath_var=no 8248 hardcode_direct_absolute=yes 8249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8253 export_dynamic_flag_spec='${wl}-E' 8254 else 8255 case $host_os in 8256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8258 hardcode_libdir_flag_spec='-R$libdir' 8259 ;; 8260 *) 8261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8263 ;; 8264 esac 8265 fi 8266 else 8267 ld_shlibs=no 8268 fi 8269 ;; 8270 8271 os2*) 8272 hardcode_libdir_flag_spec='-L$libdir' 8273 hardcode_minus_L=yes 8274 allow_undefined_flag=unsupported 8275 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' 8276 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8277 ;; 8278 8279 osf3*) 8280 if test "$GCC" = yes; then 8281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8282 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' 8283 else 8284 allow_undefined_flag=' -expect_unresolved \*' 8285 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' 8286 fi 8287 archive_cmds_need_lc='no' 8288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8289 hardcode_libdir_separator=: 8290 ;; 8291 8292 osf4* | osf5*) # as osf3* with the addition of -msym flag 8293 if test "$GCC" = yes; then 8294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8295 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' 8296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8297 else 8298 allow_undefined_flag=' -expect_unresolved \*' 8299 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' 8300 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~ 8301 $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' 8302 8303 # Both c and cxx compiler support -rpath directly 8304 hardcode_libdir_flag_spec='-rpath $libdir' 8305 fi 8306 archive_cmds_need_lc='no' 8307 hardcode_libdir_separator=: 8308 ;; 8309 8310 solaris*) 8311 no_undefined_flag=' -z defs' 8312 if test "$GCC" = yes; then 8313 wlarc='${wl}' 8314 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8316 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8317 else 8318 case `$CC -V 2>&1` in 8319 *"Compilers 5.0"*) 8320 wlarc='' 8321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8324 ;; 8325 *) 8326 wlarc='${wl}' 8327 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8329 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8330 ;; 8331 esac 8332 fi 8333 hardcode_libdir_flag_spec='-R$libdir' 8334 hardcode_shlibpath_var=no 8335 case $host_os in 8336 solaris2.[0-5] | solaris2.[0-5].*) ;; 8337 *) 8338 # The compiler driver will combine and reorder linker options, 8339 # but understands `-z linker_flag'. GCC discards it without `$wl', 8340 # but is careful enough not to reorder. 8341 # Supported since Solaris 2.6 (maybe 2.5.1?) 8342 if test "$GCC" = yes; then 8343 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8344 else 8345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8346 fi 8347 ;; 8348 esac 8349 link_all_deplibs=yes 8350 ;; 8351 8352 sunos4*) 8353 if test "x$host_vendor" = xsequent; then 8354 # Use $CC to link under sequent, because it throws in some extra .o 8355 # files that make .init and .fini sections work. 8356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8357 else 8358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8359 fi 8360 hardcode_libdir_flag_spec='-L$libdir' 8361 hardcode_direct=yes 8362 hardcode_minus_L=yes 8363 hardcode_shlibpath_var=no 8364 ;; 8365 8366 sysv4) 8367 case $host_vendor in 8368 sni) 8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8370 hardcode_direct=yes # is this really true??? 8371 ;; 8372 siemens) 8373 ## LD is ld it makes a PLAMLIB 8374 ## CC just makes a GrossModule. 8375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8376 reload_cmds='$CC -r -o $output$reload_objs' 8377 hardcode_direct=no 8378 ;; 8379 motorola) 8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8382 ;; 8383 esac 8384 runpath_var='LD_RUN_PATH' 8385 hardcode_shlibpath_var=no 8386 ;; 8387 8388 sysv4.3*) 8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8390 hardcode_shlibpath_var=no 8391 export_dynamic_flag_spec='-Bexport' 8392 ;; 8393 8394 sysv4*MP*) 8395 if test -d /usr/nec; then 8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8397 hardcode_shlibpath_var=no 8398 runpath_var=LD_RUN_PATH 8399 hardcode_runpath_var=yes 8400 ld_shlibs=yes 8401 fi 8402 ;; 8403 8404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8405 no_undefined_flag='${wl}-z,text' 8406 archive_cmds_need_lc=no 8407 hardcode_shlibpath_var=no 8408 runpath_var='LD_RUN_PATH' 8409 8410 if test "$GCC" = yes; then 8411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8413 else 8414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8416 fi 8417 ;; 8418 8419 sysv5* | sco3.2v5* | sco5v6*) 8420 # Note: We can NOT use -z defs as we might desire, because we do not 8421 # link with -lc, and that would cause any symbols used from libc to 8422 # always be unresolved, which means just about no library would 8423 # ever link correctly. If we're not using GNU ld we use -z text 8424 # though, which does catch some bad symbols but isn't as heavy-handed 8425 # as -z defs. 8426 no_undefined_flag='${wl}-z,text' 8427 allow_undefined_flag='${wl}-z,nodefs' 8428 archive_cmds_need_lc=no 8429 hardcode_shlibpath_var=no 8430 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8431 hardcode_libdir_separator=':' 8432 link_all_deplibs=yes 8433 export_dynamic_flag_spec='${wl}-Bexport' 8434 runpath_var='LD_RUN_PATH' 8435 8436 if test "$GCC" = yes; then 8437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8439 else 8440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8442 fi 8443 ;; 8444 8445 uts4*) 8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8447 hardcode_libdir_flag_spec='-L$libdir' 8448 hardcode_shlibpath_var=no 8449 ;; 8450 8451 *) 8452 ld_shlibs=no 8453 ;; 8454 esac 8455 8456 if test x$host_vendor = xsni; then 8457 case $host in 8458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8459 export_dynamic_flag_spec='${wl}-Blargedynsym' 8460 ;; 8461 esac 8462 fi 8463 fi 8464 8465{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8466$as_echo "$ld_shlibs" >&6; } 8467test "$ld_shlibs" = no && can_build_shared=no 8468 8469with_gnu_ld=$with_gnu_ld 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485# 8486# Do we need to explicitly link libc? 8487# 8488case "x$archive_cmds_need_lc" in 8489x|xyes) 8490 # Assume -lc should be added 8491 archive_cmds_need_lc=yes 8492 8493 if test "$enable_shared" = yes && test "$GCC" = yes; then 8494 case $archive_cmds in 8495 *'~'*) 8496 # FIXME: we may have to deal with multi-command sequences. 8497 ;; 8498 '$CC '*) 8499 # Test whether the compiler implicitly links with -lc since on some 8500 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8501 # to ld, don't add -lc before -lgcc. 8502 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8503$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8504 $RM conftest* 8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8506 8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8508 (eval $ac_compile) 2>&5 8509 ac_status=$? 8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8511 (exit $ac_status); } 2>conftest.err; then 8512 soname=conftest 8513 lib=conftest 8514 libobjs=conftest.$ac_objext 8515 deplibs= 8516 wl=$lt_prog_compiler_wl 8517 pic_flag=$lt_prog_compiler_pic 8518 compiler_flags=-v 8519 linker_flags=-v 8520 verstring= 8521 output_objdir=. 8522 libname=conftest 8523 lt_save_allow_undefined_flag=$allow_undefined_flag 8524 allow_undefined_flag= 8525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 8526 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8527 ac_status=$? 8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); } 8530 then 8531 archive_cmds_need_lc=no 8532 else 8533 archive_cmds_need_lc=yes 8534 fi 8535 allow_undefined_flag=$lt_save_allow_undefined_flag 8536 else 8537 cat conftest.err 1>&5 8538 fi 8539 $RM conftest* 8540 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8541$as_echo "$archive_cmds_need_lc" >&6; } 8542 ;; 8543 esac 8544 fi 8545 ;; 8546esac 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 8697 8698 8699 8700 8701 8702 8703 8704 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8705$as_echo_n "checking dynamic linker characteristics... " >&6; } 8706 8707if test "$GCC" = yes; then 8708 case $host_os in 8709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8710 *) lt_awk_arg="/^libraries:/" ;; 8711 esac 8712 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8713 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8714 # if the path contains ";" then we assume it to be the separator 8715 # otherwise default to the standard path separator (i.e. ":") - it is 8716 # assumed that no part of a normal pathname contains ";" but that should 8717 # okay in the real world where ";" in dirpaths is itself problematic. 8718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8719 else 8720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8721 fi 8722 # Ok, now we have the path, separated by spaces, we can step through it 8723 # and add multilib dir if necessary. 8724 lt_tmp_lt_search_path_spec= 8725 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8726 for lt_sys_path in $lt_search_path_spec; do 8727 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8729 else 8730 test -d "$lt_sys_path" && \ 8731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8732 fi 8733 done 8734 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8735BEGIN {RS=" "; FS="/|\n";} { 8736 lt_foo=""; 8737 lt_count=0; 8738 for (lt_i = NF; lt_i > 0; lt_i--) { 8739 if ($lt_i != "" && $lt_i != ".") { 8740 if ($lt_i == "..") { 8741 lt_count++; 8742 } else { 8743 if (lt_count == 0) { 8744 lt_foo="/" $lt_i lt_foo; 8745 } else { 8746 lt_count--; 8747 } 8748 } 8749 } 8750 } 8751 if (lt_foo != "") { lt_freq[lt_foo]++; } 8752 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8753}'` 8754 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8755else 8756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8757fi 8758library_names_spec= 8759libname_spec='lib$name' 8760soname_spec= 8761shrext_cmds=".so" 8762postinstall_cmds= 8763postuninstall_cmds= 8764finish_cmds= 8765finish_eval= 8766shlibpath_var= 8767shlibpath_overrides_runpath=unknown 8768version_type=none 8769dynamic_linker="$host_os ld.so" 8770sys_lib_dlsearch_path_spec="/lib /usr/lib" 8771need_lib_prefix=unknown 8772hardcode_into_libs=no 8773 8774# when you set need_version to no, make sure it does not cause -set_version 8775# flags to be left without arguments 8776need_version=unknown 8777 8778case $host_os in 8779aix3*) 8780 version_type=linux 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8782 shlibpath_var=LIBPATH 8783 8784 # AIX 3 has no versioning support, so we append a major version to the name. 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 ;; 8787 8788aix[4-9]*) 8789 version_type=linux 8790 need_lib_prefix=no 8791 need_version=no 8792 hardcode_into_libs=yes 8793 if test "$host_cpu" = ia64; then 8794 # AIX 5 supports IA64 8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8796 shlibpath_var=LD_LIBRARY_PATH 8797 else 8798 # With GCC up to 2.95.x, collect2 would create an import file 8799 # for dependence libraries. The import file would start with 8800 # the line `#! .'. This would cause the generated library to 8801 # depend on `.', always an invalid library. This was fixed in 8802 # development snapshots of GCC prior to 3.0. 8803 case $host_os in 8804 aix4 | aix4.[01] | aix4.[01].*) 8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8806 echo ' yes ' 8807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8808 : 8809 else 8810 can_build_shared=no 8811 fi 8812 ;; 8813 esac 8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8815 # soname into executable. Probably we can add versioning support to 8816 # collect2, so additional links can be useful in future. 8817 if test "$aix_use_runtimelinking" = yes; then 8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8819 # instead of lib<name>.a to let people know that these are not 8820 # typical AIX shared libraries. 8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8822 else 8823 # We preserve .a as extension for shared libraries through AIX4.2 8824 # and later when we are not doing run time linking. 8825 library_names_spec='${libname}${release}.a $libname.a' 8826 soname_spec='${libname}${release}${shared_ext}$major' 8827 fi 8828 shlibpath_var=LIBPATH 8829 fi 8830 ;; 8831 8832amigaos*) 8833 case $host_cpu in 8834 powerpc) 8835 # Since July 2007 AmigaOS4 officially supports .so libraries. 8836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8838 ;; 8839 m68k) 8840 library_names_spec='$libname.ixlibrary $libname.a' 8841 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8842 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' 8843 ;; 8844 esac 8845 ;; 8846 8847beos*) 8848 library_names_spec='${libname}${shared_ext}' 8849 dynamic_linker="$host_os ld.so" 8850 shlibpath_var=LIBRARY_PATH 8851 ;; 8852 8853bsdi[45]*) 8854 version_type=linux 8855 need_version=no 8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8857 soname_spec='${libname}${release}${shared_ext}$major' 8858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8859 shlibpath_var=LD_LIBRARY_PATH 8860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8862 # the default ld.so.conf also contains /usr/contrib/lib and 8863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8864 # libtool to hard-code these into programs 8865 ;; 8866 8867cygwin* | mingw* | pw32* | cegcc*) 8868 version_type=windows 8869 shrext_cmds=".dll" 8870 need_version=no 8871 need_lib_prefix=no 8872 8873 case $GCC,$host_os in 8874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8875 library_names_spec='$libname.dll.a' 8876 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8877 postinstall_cmds='base_file=`basename \${file}`~ 8878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8879 dldir=$destdir/`dirname \$dlpath`~ 8880 test -d \$dldir || mkdir -p \$dldir~ 8881 $install_prog $dir/$dlname \$dldir/$dlname~ 8882 chmod a+x \$dldir/$dlname~ 8883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8885 fi' 8886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8887 dlpath=$dir/\$dldll~ 8888 $RM \$dlpath' 8889 shlibpath_overrides_runpath=yes 8890 8891 case $host_os in 8892 cygwin*) 8893 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8896 ;; 8897 mingw* | cegcc*) 8898 # MinGW DLLs use traditional 'lib' prefix 8899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8900 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8901 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8902 # It is most probably a Windows format PATH printed by 8903 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8904 # path with ; separators, and with drive letters. We can handle the 8905 # drive letters (cygwin fileutils understands them), so leave them, 8906 # especially as we might pass files found there to a mingw objdump, 8907 # which wouldn't understand a cygwinified path. Ahh. 8908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8909 else 8910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8911 fi 8912 ;; 8913 pw32*) 8914 # pw32 DLLs use 'pw' prefix rather than 'lib' 8915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8916 ;; 8917 esac 8918 ;; 8919 8920 *) 8921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8922 ;; 8923 esac 8924 dynamic_linker='Win32 ld.exe' 8925 # FIXME: first we should search . and the directory the executable is in 8926 shlibpath_var=PATH 8927 ;; 8928 8929darwin* | rhapsody*) 8930 dynamic_linker="$host_os dyld" 8931 version_type=darwin 8932 need_lib_prefix=no 8933 need_version=no 8934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8935 soname_spec='${libname}${release}${major}$shared_ext' 8936 shlibpath_overrides_runpath=yes 8937 shlibpath_var=DYLD_LIBRARY_PATH 8938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8939 8940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8942 ;; 8943 8944dgux*) 8945 version_type=linux 8946 need_lib_prefix=no 8947 need_version=no 8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8949 soname_spec='${libname}${release}${shared_ext}$major' 8950 shlibpath_var=LD_LIBRARY_PATH 8951 ;; 8952 8953freebsd1*) 8954 dynamic_linker=no 8955 ;; 8956 8957freebsd* | dragonfly*) 8958 # DragonFly does not have aout. When/if they implement a new 8959 # versioning mechanism, adjust this. 8960 if test -x /usr/bin/objformat; then 8961 objformat=`/usr/bin/objformat` 8962 else 8963 case $host_os in 8964 freebsd[123]*) objformat=aout ;; 8965 *) objformat=elf ;; 8966 esac 8967 fi 8968 # Handle Gentoo/FreeBSD as it was Linux 8969 case $host_vendor in 8970 gentoo) 8971 version_type=linux ;; 8972 *) 8973 version_type=freebsd-$objformat ;; 8974 esac 8975 8976 case $version_type in 8977 freebsd-elf*) 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8979 need_version=no 8980 need_lib_prefix=no 8981 ;; 8982 freebsd-*) 8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8984 need_version=yes 8985 ;; 8986 linux) 8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8988 soname_spec='${libname}${release}${shared_ext}$major' 8989 need_lib_prefix=no 8990 need_version=no 8991 ;; 8992 esac 8993 shlibpath_var=LD_LIBRARY_PATH 8994 case $host_os in 8995 freebsd2*) 8996 shlibpath_overrides_runpath=yes 8997 ;; 8998 freebsd3.[01]* | freebsdelf3.[01]*) 8999 shlibpath_overrides_runpath=yes 9000 hardcode_into_libs=yes 9001 ;; 9002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9004 shlibpath_overrides_runpath=no 9005 hardcode_into_libs=yes 9006 ;; 9007 *) # from 4.6 on, and DragonFly 9008 shlibpath_overrides_runpath=yes 9009 hardcode_into_libs=yes 9010 ;; 9011 esac 9012 ;; 9013 9014gnu*) 9015 version_type=linux 9016 need_lib_prefix=no 9017 need_version=no 9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9019 soname_spec='${libname}${release}${shared_ext}$major' 9020 shlibpath_var=LD_LIBRARY_PATH 9021 hardcode_into_libs=yes 9022 ;; 9023 9024hpux9* | hpux10* | hpux11*) 9025 # Give a soname corresponding to the major version so that dld.sl refuses to 9026 # link against other versions. 9027 version_type=sunos 9028 need_lib_prefix=no 9029 need_version=no 9030 case $host_cpu in 9031 ia64*) 9032 shrext_cmds='.so' 9033 hardcode_into_libs=yes 9034 dynamic_linker="$host_os dld.so" 9035 shlibpath_var=LD_LIBRARY_PATH 9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9038 soname_spec='${libname}${release}${shared_ext}$major' 9039 if test "X$HPUX_IA64_MODE" = X32; then 9040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9041 else 9042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9043 fi 9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9045 ;; 9046 hppa*64*) 9047 shrext_cmds='.sl' 9048 hardcode_into_libs=yes 9049 dynamic_linker="$host_os dld.sl" 9050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9053 soname_spec='${libname}${release}${shared_ext}$major' 9054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9056 ;; 9057 *) 9058 shrext_cmds='.sl' 9059 dynamic_linker="$host_os dld.sl" 9060 shlibpath_var=SHLIB_PATH 9061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9063 soname_spec='${libname}${release}${shared_ext}$major' 9064 ;; 9065 esac 9066 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9067 postinstall_cmds='chmod 555 $lib' 9068 ;; 9069 9070interix[3-9]*) 9071 version_type=linux 9072 need_lib_prefix=no 9073 need_version=no 9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9075 soname_spec='${libname}${release}${shared_ext}$major' 9076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9077 shlibpath_var=LD_LIBRARY_PATH 9078 shlibpath_overrides_runpath=no 9079 hardcode_into_libs=yes 9080 ;; 9081 9082irix5* | irix6* | nonstopux*) 9083 case $host_os in 9084 nonstopux*) version_type=nonstopux ;; 9085 *) 9086 if test "$lt_cv_prog_gnu_ld" = yes; then 9087 version_type=linux 9088 else 9089 version_type=irix 9090 fi ;; 9091 esac 9092 need_lib_prefix=no 9093 need_version=no 9094 soname_spec='${libname}${release}${shared_ext}$major' 9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9096 case $host_os in 9097 irix5* | nonstopux*) 9098 libsuff= shlibsuff= 9099 ;; 9100 *) 9101 case $LD in # libtool.m4 will add one of these switches to LD 9102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9103 libsuff= shlibsuff= libmagic=32-bit;; 9104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9105 libsuff=32 shlibsuff=N32 libmagic=N32;; 9106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9107 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9108 *) libsuff= shlibsuff= libmagic=never-match;; 9109 esac 9110 ;; 9111 esac 9112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9113 shlibpath_overrides_runpath=no 9114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9116 hardcode_into_libs=yes 9117 ;; 9118 9119# No shared lib support for Linux oldld, aout, or coff. 9120linux*oldld* | linux*aout* | linux*coff*) 9121 dynamic_linker=no 9122 ;; 9123 9124# This must be Linux ELF. 9125linux* | k*bsd*-gnu) 9126 version_type=linux 9127 need_lib_prefix=no 9128 need_version=no 9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9130 soname_spec='${libname}${release}${shared_ext}$major' 9131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9132 shlibpath_var=LD_LIBRARY_PATH 9133 shlibpath_overrides_runpath=no 9134 # Some binutils ld are patched to set DT_RUNPATH 9135 save_LDFLAGS=$LDFLAGS 9136 save_libdir=$libdir 9137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9139 cat >conftest.$ac_ext <<_ACEOF 9140/* confdefs.h. */ 9141_ACEOF 9142cat confdefs.h >>conftest.$ac_ext 9143cat >>conftest.$ac_ext <<_ACEOF 9144/* end confdefs.h. */ 9145 9146int 9147main () 9148{ 9149 9150 ; 9151 return 0; 9152} 9153_ACEOF 9154rm -f conftest.$ac_objext conftest$ac_exeext 9155if { (ac_try="$ac_link" 9156case "(($ac_try" in 9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9158 *) ac_try_echo=$ac_try;; 9159esac 9160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9161$as_echo "$ac_try_echo") >&5 9162 (eval "$ac_link") 2>conftest.er1 9163 ac_status=$? 9164 grep -v '^ *+' conftest.er1 >conftest.err 9165 rm -f conftest.er1 9166 cat conftest.err >&5 9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9168 (exit $ac_status); } && { 9169 test -z "$ac_c_werror_flag" || 9170 test ! -s conftest.err 9171 } && test -s conftest$ac_exeext && { 9172 test "$cross_compiling" = yes || 9173 $as_test_x conftest$ac_exeext 9174 }; then 9175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9176 shlibpath_overrides_runpath=yes 9177fi 9178 9179else 9180 $as_echo "$as_me: failed program was:" >&5 9181sed 's/^/| /' conftest.$ac_ext >&5 9182 9183 9184fi 9185 9186rm -rf conftest.dSYM 9187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9188 conftest$ac_exeext conftest.$ac_ext 9189 LDFLAGS=$save_LDFLAGS 9190 libdir=$save_libdir 9191 9192 # This implies no fast_install, which is unacceptable. 9193 # Some rework will be needed to allow for fast_install 9194 # before this can be enabled. 9195 hardcode_into_libs=yes 9196 9197 # Append ld.so.conf contents to the search path 9198 if test -f /etc/ld.so.conf; then 9199 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' ' '` 9200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9201 fi 9202 9203 # We used to test for /lib/ld.so.1 and disable shared libraries on 9204 # powerpc, because MkLinux only supported shared libraries with the 9205 # GNU dynamic linker. Since this was broken with cross compilers, 9206 # most powerpc-linux boxes support dynamic linking these days and 9207 # people can always --disable-shared, the test was removed, and we 9208 # assume the GNU/Linux dynamic linker is in use. 9209 dynamic_linker='GNU/Linux ld.so' 9210 ;; 9211 9212netbsd*) 9213 version_type=sunos 9214 need_lib_prefix=no 9215 need_version=no 9216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9219 dynamic_linker='NetBSD (a.out) ld.so' 9220 else 9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9222 soname_spec='${libname}${release}${shared_ext}$major' 9223 dynamic_linker='NetBSD ld.elf_so' 9224 fi 9225 shlibpath_var=LD_LIBRARY_PATH 9226 shlibpath_overrides_runpath=yes 9227 hardcode_into_libs=yes 9228 ;; 9229 9230newsos6) 9231 version_type=linux 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9233 shlibpath_var=LD_LIBRARY_PATH 9234 shlibpath_overrides_runpath=yes 9235 ;; 9236 9237*nto* | *qnx*) 9238 version_type=qnx 9239 need_lib_prefix=no 9240 need_version=no 9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9242 soname_spec='${libname}${release}${shared_ext}$major' 9243 shlibpath_var=LD_LIBRARY_PATH 9244 shlibpath_overrides_runpath=no 9245 hardcode_into_libs=yes 9246 dynamic_linker='ldqnx.so' 9247 ;; 9248 9249openbsd*) 9250 version_type=sunos 9251 sys_lib_dlsearch_path_spec="/usr/lib" 9252 need_lib_prefix=no 9253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9254 case $host_os in 9255 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9256 *) need_version=no ;; 9257 esac 9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9260 shlibpath_var=LD_LIBRARY_PATH 9261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9262 case $host_os in 9263 openbsd2.[89] | openbsd2.[89].*) 9264 shlibpath_overrides_runpath=no 9265 ;; 9266 *) 9267 shlibpath_overrides_runpath=yes 9268 ;; 9269 esac 9270 else 9271 shlibpath_overrides_runpath=yes 9272 fi 9273 ;; 9274 9275os2*) 9276 libname_spec='$name' 9277 shrext_cmds=".dll" 9278 need_lib_prefix=no 9279 library_names_spec='$libname${shared_ext} $libname.a' 9280 dynamic_linker='OS/2 ld.exe' 9281 shlibpath_var=LIBPATH 9282 ;; 9283 9284osf3* | osf4* | osf5*) 9285 version_type=osf 9286 need_lib_prefix=no 9287 need_version=no 9288 soname_spec='${libname}${release}${shared_ext}$major' 9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9290 shlibpath_var=LD_LIBRARY_PATH 9291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9293 ;; 9294 9295rdos*) 9296 dynamic_linker=no 9297 ;; 9298 9299solaris*) 9300 version_type=linux 9301 need_lib_prefix=no 9302 need_version=no 9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9304 soname_spec='${libname}${release}${shared_ext}$major' 9305 shlibpath_var=LD_LIBRARY_PATH 9306 shlibpath_overrides_runpath=yes 9307 hardcode_into_libs=yes 9308 # ldd complains unless libraries are executable 9309 postinstall_cmds='chmod +x $lib' 9310 ;; 9311 9312sunos4*) 9313 version_type=sunos 9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9316 shlibpath_var=LD_LIBRARY_PATH 9317 shlibpath_overrides_runpath=yes 9318 if test "$with_gnu_ld" = yes; then 9319 need_lib_prefix=no 9320 fi 9321 need_version=yes 9322 ;; 9323 9324sysv4 | sysv4.3*) 9325 version_type=linux 9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9327 soname_spec='${libname}${release}${shared_ext}$major' 9328 shlibpath_var=LD_LIBRARY_PATH 9329 case $host_vendor in 9330 sni) 9331 shlibpath_overrides_runpath=no 9332 need_lib_prefix=no 9333 runpath_var=LD_RUN_PATH 9334 ;; 9335 siemens) 9336 need_lib_prefix=no 9337 ;; 9338 motorola) 9339 need_lib_prefix=no 9340 need_version=no 9341 shlibpath_overrides_runpath=no 9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9343 ;; 9344 esac 9345 ;; 9346 9347sysv4*MP*) 9348 if test -d /usr/nec ;then 9349 version_type=linux 9350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9351 soname_spec='$libname${shared_ext}.$major' 9352 shlibpath_var=LD_LIBRARY_PATH 9353 fi 9354 ;; 9355 9356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9357 version_type=freebsd-elf 9358 need_lib_prefix=no 9359 need_version=no 9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9361 soname_spec='${libname}${release}${shared_ext}$major' 9362 shlibpath_var=LD_LIBRARY_PATH 9363 shlibpath_overrides_runpath=yes 9364 hardcode_into_libs=yes 9365 if test "$with_gnu_ld" = yes; then 9366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9367 else 9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9369 case $host_os in 9370 sco3.2v5*) 9371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9372 ;; 9373 esac 9374 fi 9375 sys_lib_dlsearch_path_spec='/usr/lib' 9376 ;; 9377 9378tpf*) 9379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9380 version_type=linux 9381 need_lib_prefix=no 9382 need_version=no 9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 shlibpath_overrides_runpath=no 9386 hardcode_into_libs=yes 9387 ;; 9388 9389uts4*) 9390 version_type=linux 9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 shlibpath_var=LD_LIBRARY_PATH 9394 ;; 9395 9396*) 9397 dynamic_linker=no 9398 ;; 9399esac 9400{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9401$as_echo "$dynamic_linker" >&6; } 9402test "$dynamic_linker" = no && can_build_shared=no 9403 9404variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9405if test "$GCC" = yes; then 9406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9407fi 9408 9409if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9410 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9411fi 9412if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9414fi 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9503$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9504hardcode_action= 9505if test -n "$hardcode_libdir_flag_spec" || 9506 test -n "$runpath_var" || 9507 test "X$hardcode_automatic" = "Xyes" ; then 9508 9509 # We can hardcode non-existent directories. 9510 if test "$hardcode_direct" != no && 9511 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9512 # have to relink, otherwise we might link with an installed library 9513 # when we should be linking with a yet-to-be-installed one 9514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9515 test "$hardcode_minus_L" != no; then 9516 # Linking always hardcodes the temporary library directory. 9517 hardcode_action=relink 9518 else 9519 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9520 hardcode_action=immediate 9521 fi 9522else 9523 # We cannot hardcode anything, or else we can only hardcode existing 9524 # directories. 9525 hardcode_action=unsupported 9526fi 9527{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9528$as_echo "$hardcode_action" >&6; } 9529 9530if test "$hardcode_action" = relink || 9531 test "$inherit_rpath" = yes; then 9532 # Fast installation is not supported 9533 enable_fast_install=no 9534elif test "$shlibpath_overrides_runpath" = yes || 9535 test "$enable_shared" = no; then 9536 # Fast installation is not necessary 9537 enable_fast_install=needless 9538fi 9539 9540 9541 9542 9543 9544 9545 if test "x$enable_dlopen" != xyes; then 9546 enable_dlopen=unknown 9547 enable_dlopen_self=unknown 9548 enable_dlopen_self_static=unknown 9549else 9550 lt_cv_dlopen=no 9551 lt_cv_dlopen_libs= 9552 9553 case $host_os in 9554 beos*) 9555 lt_cv_dlopen="load_add_on" 9556 lt_cv_dlopen_libs= 9557 lt_cv_dlopen_self=yes 9558 ;; 9559 9560 mingw* | pw32* | cegcc*) 9561 lt_cv_dlopen="LoadLibrary" 9562 lt_cv_dlopen_libs= 9563 ;; 9564 9565 cygwin*) 9566 lt_cv_dlopen="dlopen" 9567 lt_cv_dlopen_libs= 9568 ;; 9569 9570 darwin*) 9571 # if libdl is installed we need to link against it 9572 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9573$as_echo_n "checking for dlopen in -ldl... " >&6; } 9574if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9575 $as_echo_n "(cached) " >&6 9576else 9577 ac_check_lib_save_LIBS=$LIBS 9578LIBS="-ldl $LIBS" 9579cat >conftest.$ac_ext <<_ACEOF 9580/* confdefs.h. */ 9581_ACEOF 9582cat confdefs.h >>conftest.$ac_ext 9583cat >>conftest.$ac_ext <<_ACEOF 9584/* end confdefs.h. */ 9585 9586/* Override any GCC internal prototype to avoid an error. 9587 Use char because int might match the return type of a GCC 9588 builtin and then its argument prototype would still apply. */ 9589#ifdef __cplusplus 9590extern "C" 9591#endif 9592char dlopen (); 9593int 9594main () 9595{ 9596return dlopen (); 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601rm -f conftest.$ac_objext conftest$ac_exeext 9602if { (ac_try="$ac_link" 9603case "(($ac_try" in 9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9605 *) ac_try_echo=$ac_try;; 9606esac 9607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9608$as_echo "$ac_try_echo") >&5 9609 (eval "$ac_link") 2>conftest.er1 9610 ac_status=$? 9611 grep -v '^ *+' conftest.er1 >conftest.err 9612 rm -f conftest.er1 9613 cat conftest.err >&5 9614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } && { 9616 test -z "$ac_c_werror_flag" || 9617 test ! -s conftest.err 9618 } && test -s conftest$ac_exeext && { 9619 test "$cross_compiling" = yes || 9620 $as_test_x conftest$ac_exeext 9621 }; then 9622 ac_cv_lib_dl_dlopen=yes 9623else 9624 $as_echo "$as_me: failed program was:" >&5 9625sed 's/^/| /' conftest.$ac_ext >&5 9626 9627 ac_cv_lib_dl_dlopen=no 9628fi 9629 9630rm -rf conftest.dSYM 9631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9632 conftest$ac_exeext conftest.$ac_ext 9633LIBS=$ac_check_lib_save_LIBS 9634fi 9635{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9636$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9637if test $ac_cv_lib_dl_dlopen = yes; then 9638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9639else 9640 9641 lt_cv_dlopen="dyld" 9642 lt_cv_dlopen_libs= 9643 lt_cv_dlopen_self=yes 9644 9645fi 9646 9647 ;; 9648 9649 *) 9650 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9651$as_echo_n "checking for shl_load... " >&6; } 9652if test "${ac_cv_func_shl_load+set}" = set; then 9653 $as_echo_n "(cached) " >&6 9654else 9655 cat >conftest.$ac_ext <<_ACEOF 9656/* confdefs.h. */ 9657_ACEOF 9658cat confdefs.h >>conftest.$ac_ext 9659cat >>conftest.$ac_ext <<_ACEOF 9660/* end confdefs.h. */ 9661/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9662 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9663#define shl_load innocuous_shl_load 9664 9665/* System header to define __stub macros and hopefully few prototypes, 9666 which can conflict with char shl_load (); below. 9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9668 <limits.h> exists even on freestanding compilers. */ 9669 9670#ifdef __STDC__ 9671# include <limits.h> 9672#else 9673# include <assert.h> 9674#endif 9675 9676#undef shl_load 9677 9678/* Override any GCC internal prototype to avoid an error. 9679 Use char because int might match the return type of a GCC 9680 builtin and then its argument prototype would still apply. */ 9681#ifdef __cplusplus 9682extern "C" 9683#endif 9684char shl_load (); 9685/* The GNU C library defines this for functions which it implements 9686 to always fail with ENOSYS. Some functions are actually named 9687 something starting with __ and the normal name is an alias. */ 9688#if defined __stub_shl_load || defined __stub___shl_load 9689choke me 9690#endif 9691 9692int 9693main () 9694{ 9695return shl_load (); 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700rm -f conftest.$ac_objext conftest$ac_exeext 9701if { (ac_try="$ac_link" 9702case "(($ac_try" in 9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9704 *) ac_try_echo=$ac_try;; 9705esac 9706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9707$as_echo "$ac_try_echo") >&5 9708 (eval "$ac_link") 2>conftest.er1 9709 ac_status=$? 9710 grep -v '^ *+' conftest.er1 >conftest.err 9711 rm -f conftest.er1 9712 cat conftest.err >&5 9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9714 (exit $ac_status); } && { 9715 test -z "$ac_c_werror_flag" || 9716 test ! -s conftest.err 9717 } && test -s conftest$ac_exeext && { 9718 test "$cross_compiling" = yes || 9719 $as_test_x conftest$ac_exeext 9720 }; then 9721 ac_cv_func_shl_load=yes 9722else 9723 $as_echo "$as_me: failed program was:" >&5 9724sed 's/^/| /' conftest.$ac_ext >&5 9725 9726 ac_cv_func_shl_load=no 9727fi 9728 9729rm -rf conftest.dSYM 9730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9731 conftest$ac_exeext conftest.$ac_ext 9732fi 9733{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9734$as_echo "$ac_cv_func_shl_load" >&6; } 9735if test $ac_cv_func_shl_load = yes; then 9736 lt_cv_dlopen="shl_load" 9737else 9738 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9739$as_echo_n "checking for shl_load in -ldld... " >&6; } 9740if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9741 $as_echo_n "(cached) " >&6 9742else 9743 ac_check_lib_save_LIBS=$LIBS 9744LIBS="-ldld $LIBS" 9745cat >conftest.$ac_ext <<_ACEOF 9746/* confdefs.h. */ 9747_ACEOF 9748cat confdefs.h >>conftest.$ac_ext 9749cat >>conftest.$ac_ext <<_ACEOF 9750/* end confdefs.h. */ 9751 9752/* Override any GCC internal prototype to avoid an error. 9753 Use char because int might match the return type of a GCC 9754 builtin and then its argument prototype would still apply. */ 9755#ifdef __cplusplus 9756extern "C" 9757#endif 9758char shl_load (); 9759int 9760main () 9761{ 9762return shl_load (); 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767rm -f conftest.$ac_objext conftest$ac_exeext 9768if { (ac_try="$ac_link" 9769case "(($ac_try" in 9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9771 *) ac_try_echo=$ac_try;; 9772esac 9773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9774$as_echo "$ac_try_echo") >&5 9775 (eval "$ac_link") 2>conftest.er1 9776 ac_status=$? 9777 grep -v '^ *+' conftest.er1 >conftest.err 9778 rm -f conftest.er1 9779 cat conftest.err >&5 9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9781 (exit $ac_status); } && { 9782 test -z "$ac_c_werror_flag" || 9783 test ! -s conftest.err 9784 } && test -s conftest$ac_exeext && { 9785 test "$cross_compiling" = yes || 9786 $as_test_x conftest$ac_exeext 9787 }; then 9788 ac_cv_lib_dld_shl_load=yes 9789else 9790 $as_echo "$as_me: failed program was:" >&5 9791sed 's/^/| /' conftest.$ac_ext >&5 9792 9793 ac_cv_lib_dld_shl_load=no 9794fi 9795 9796rm -rf conftest.dSYM 9797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9798 conftest$ac_exeext conftest.$ac_ext 9799LIBS=$ac_check_lib_save_LIBS 9800fi 9801{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9802$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9803if test $ac_cv_lib_dld_shl_load = yes; then 9804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9805else 9806 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9807$as_echo_n "checking for dlopen... " >&6; } 9808if test "${ac_cv_func_dlopen+set}" = set; then 9809 $as_echo_n "(cached) " >&6 9810else 9811 cat >conftest.$ac_ext <<_ACEOF 9812/* confdefs.h. */ 9813_ACEOF 9814cat confdefs.h >>conftest.$ac_ext 9815cat >>conftest.$ac_ext <<_ACEOF 9816/* end confdefs.h. */ 9817/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9819#define dlopen innocuous_dlopen 9820 9821/* System header to define __stub macros and hopefully few prototypes, 9822 which can conflict with char dlopen (); below. 9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9824 <limits.h> exists even on freestanding compilers. */ 9825 9826#ifdef __STDC__ 9827# include <limits.h> 9828#else 9829# include <assert.h> 9830#endif 9831 9832#undef dlopen 9833 9834/* Override any GCC internal prototype to avoid an error. 9835 Use char because int might match the return type of a GCC 9836 builtin and then its argument prototype would still apply. */ 9837#ifdef __cplusplus 9838extern "C" 9839#endif 9840char dlopen (); 9841/* The GNU C library defines this for functions which it implements 9842 to always fail with ENOSYS. Some functions are actually named 9843 something starting with __ and the normal name is an alias. */ 9844#if defined __stub_dlopen || defined __stub___dlopen 9845choke me 9846#endif 9847 9848int 9849main () 9850{ 9851return dlopen (); 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856rm -f conftest.$ac_objext conftest$ac_exeext 9857if { (ac_try="$ac_link" 9858case "(($ac_try" in 9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9860 *) ac_try_echo=$ac_try;; 9861esac 9862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9863$as_echo "$ac_try_echo") >&5 9864 (eval "$ac_link") 2>conftest.er1 9865 ac_status=$? 9866 grep -v '^ *+' conftest.er1 >conftest.err 9867 rm -f conftest.er1 9868 cat conftest.err >&5 9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); } && { 9871 test -z "$ac_c_werror_flag" || 9872 test ! -s conftest.err 9873 } && test -s conftest$ac_exeext && { 9874 test "$cross_compiling" = yes || 9875 $as_test_x conftest$ac_exeext 9876 }; then 9877 ac_cv_func_dlopen=yes 9878else 9879 $as_echo "$as_me: failed program was:" >&5 9880sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 ac_cv_func_dlopen=no 9883fi 9884 9885rm -rf conftest.dSYM 9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9887 conftest$ac_exeext conftest.$ac_ext 9888fi 9889{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9890$as_echo "$ac_cv_func_dlopen" >&6; } 9891if test $ac_cv_func_dlopen = yes; then 9892 lt_cv_dlopen="dlopen" 9893else 9894 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9895$as_echo_n "checking for dlopen in -ldl... " >&6; } 9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9897 $as_echo_n "(cached) " >&6 9898else 9899 ac_check_lib_save_LIBS=$LIBS 9900LIBS="-ldl $LIBS" 9901cat >conftest.$ac_ext <<_ACEOF 9902/* confdefs.h. */ 9903_ACEOF 9904cat confdefs.h >>conftest.$ac_ext 9905cat >>conftest.$ac_ext <<_ACEOF 9906/* end confdefs.h. */ 9907 9908/* Override any GCC internal prototype to avoid an error. 9909 Use char because int might match the return type of a GCC 9910 builtin and then its argument prototype would still apply. */ 9911#ifdef __cplusplus 9912extern "C" 9913#endif 9914char dlopen (); 9915int 9916main () 9917{ 9918return dlopen (); 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923rm -f conftest.$ac_objext conftest$ac_exeext 9924if { (ac_try="$ac_link" 9925case "(($ac_try" in 9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9927 *) ac_try_echo=$ac_try;; 9928esac 9929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9930$as_echo "$ac_try_echo") >&5 9931 (eval "$ac_link") 2>conftest.er1 9932 ac_status=$? 9933 grep -v '^ *+' conftest.er1 >conftest.err 9934 rm -f conftest.er1 9935 cat conftest.err >&5 9936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9937 (exit $ac_status); } && { 9938 test -z "$ac_c_werror_flag" || 9939 test ! -s conftest.err 9940 } && test -s conftest$ac_exeext && { 9941 test "$cross_compiling" = yes || 9942 $as_test_x conftest$ac_exeext 9943 }; then 9944 ac_cv_lib_dl_dlopen=yes 9945else 9946 $as_echo "$as_me: failed program was:" >&5 9947sed 's/^/| /' conftest.$ac_ext >&5 9948 9949 ac_cv_lib_dl_dlopen=no 9950fi 9951 9952rm -rf conftest.dSYM 9953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9954 conftest$ac_exeext conftest.$ac_ext 9955LIBS=$ac_check_lib_save_LIBS 9956fi 9957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9958$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9959if test $ac_cv_lib_dl_dlopen = yes; then 9960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9961else 9962 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9963$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9964if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9965 $as_echo_n "(cached) " >&6 9966else 9967 ac_check_lib_save_LIBS=$LIBS 9968LIBS="-lsvld $LIBS" 9969cat >conftest.$ac_ext <<_ACEOF 9970/* confdefs.h. */ 9971_ACEOF 9972cat confdefs.h >>conftest.$ac_ext 9973cat >>conftest.$ac_ext <<_ACEOF 9974/* end confdefs.h. */ 9975 9976/* Override any GCC internal prototype to avoid an error. 9977 Use char because int might match the return type of a GCC 9978 builtin and then its argument prototype would still apply. */ 9979#ifdef __cplusplus 9980extern "C" 9981#endif 9982char dlopen (); 9983int 9984main () 9985{ 9986return dlopen (); 9987 ; 9988 return 0; 9989} 9990_ACEOF 9991rm -f conftest.$ac_objext conftest$ac_exeext 9992if { (ac_try="$ac_link" 9993case "(($ac_try" in 9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9995 *) ac_try_echo=$ac_try;; 9996esac 9997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9998$as_echo "$ac_try_echo") >&5 9999 (eval "$ac_link") 2>conftest.er1 10000 ac_status=$? 10001 grep -v '^ *+' conftest.er1 >conftest.err 10002 rm -f conftest.er1 10003 cat conftest.err >&5 10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10005 (exit $ac_status); } && { 10006 test -z "$ac_c_werror_flag" || 10007 test ! -s conftest.err 10008 } && test -s conftest$ac_exeext && { 10009 test "$cross_compiling" = yes || 10010 $as_test_x conftest$ac_exeext 10011 }; then 10012 ac_cv_lib_svld_dlopen=yes 10013else 10014 $as_echo "$as_me: failed program was:" >&5 10015sed 's/^/| /' conftest.$ac_ext >&5 10016 10017 ac_cv_lib_svld_dlopen=no 10018fi 10019 10020rm -rf conftest.dSYM 10021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10022 conftest$ac_exeext conftest.$ac_ext 10023LIBS=$ac_check_lib_save_LIBS 10024fi 10025{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10026$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10027if test $ac_cv_lib_svld_dlopen = yes; then 10028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10029else 10030 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10031$as_echo_n "checking for dld_link in -ldld... " >&6; } 10032if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10033 $as_echo_n "(cached) " >&6 10034else 10035 ac_check_lib_save_LIBS=$LIBS 10036LIBS="-ldld $LIBS" 10037cat >conftest.$ac_ext <<_ACEOF 10038/* confdefs.h. */ 10039_ACEOF 10040cat confdefs.h >>conftest.$ac_ext 10041cat >>conftest.$ac_ext <<_ACEOF 10042/* end confdefs.h. */ 10043 10044/* Override any GCC internal prototype to avoid an error. 10045 Use char because int might match the return type of a GCC 10046 builtin and then its argument prototype would still apply. */ 10047#ifdef __cplusplus 10048extern "C" 10049#endif 10050char dld_link (); 10051int 10052main () 10053{ 10054return dld_link (); 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059rm -f conftest.$ac_objext conftest$ac_exeext 10060if { (ac_try="$ac_link" 10061case "(($ac_try" in 10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10063 *) ac_try_echo=$ac_try;; 10064esac 10065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10066$as_echo "$ac_try_echo") >&5 10067 (eval "$ac_link") 2>conftest.er1 10068 ac_status=$? 10069 grep -v '^ *+' conftest.er1 >conftest.err 10070 rm -f conftest.er1 10071 cat conftest.err >&5 10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10073 (exit $ac_status); } && { 10074 test -z "$ac_c_werror_flag" || 10075 test ! -s conftest.err 10076 } && test -s conftest$ac_exeext && { 10077 test "$cross_compiling" = yes || 10078 $as_test_x conftest$ac_exeext 10079 }; then 10080 ac_cv_lib_dld_dld_link=yes 10081else 10082 $as_echo "$as_me: failed program was:" >&5 10083sed 's/^/| /' conftest.$ac_ext >&5 10084 10085 ac_cv_lib_dld_dld_link=no 10086fi 10087 10088rm -rf conftest.dSYM 10089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10090 conftest$ac_exeext conftest.$ac_ext 10091LIBS=$ac_check_lib_save_LIBS 10092fi 10093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10094$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10095if test $ac_cv_lib_dld_dld_link = yes; then 10096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10097fi 10098 10099 10100fi 10101 10102 10103fi 10104 10105 10106fi 10107 10108 10109fi 10110 10111 10112fi 10113 10114 ;; 10115 esac 10116 10117 if test "x$lt_cv_dlopen" != xno; then 10118 enable_dlopen=yes 10119 else 10120 enable_dlopen=no 10121 fi 10122 10123 case $lt_cv_dlopen in 10124 dlopen) 10125 save_CPPFLAGS="$CPPFLAGS" 10126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10127 10128 save_LDFLAGS="$LDFLAGS" 10129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10130 10131 save_LIBS="$LIBS" 10132 LIBS="$lt_cv_dlopen_libs $LIBS" 10133 10134 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10135$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10136if test "${lt_cv_dlopen_self+set}" = set; then 10137 $as_echo_n "(cached) " >&6 10138else 10139 if test "$cross_compiling" = yes; then : 10140 lt_cv_dlopen_self=cross 10141else 10142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10143 lt_status=$lt_dlunknown 10144 cat > conftest.$ac_ext <<_LT_EOF 10145#line 10145 "configure" 10146#include "confdefs.h" 10147 10148#if HAVE_DLFCN_H 10149#include <dlfcn.h> 10150#endif 10151 10152#include <stdio.h> 10153 10154#ifdef RTLD_GLOBAL 10155# define LT_DLGLOBAL RTLD_GLOBAL 10156#else 10157# ifdef DL_GLOBAL 10158# define LT_DLGLOBAL DL_GLOBAL 10159# else 10160# define LT_DLGLOBAL 0 10161# endif 10162#endif 10163 10164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10165 find out it does not work in some platform. */ 10166#ifndef LT_DLLAZY_OR_NOW 10167# ifdef RTLD_LAZY 10168# define LT_DLLAZY_OR_NOW RTLD_LAZY 10169# else 10170# ifdef DL_LAZY 10171# define LT_DLLAZY_OR_NOW DL_LAZY 10172# else 10173# ifdef RTLD_NOW 10174# define LT_DLLAZY_OR_NOW RTLD_NOW 10175# else 10176# ifdef DL_NOW 10177# define LT_DLLAZY_OR_NOW DL_NOW 10178# else 10179# define LT_DLLAZY_OR_NOW 0 10180# endif 10181# endif 10182# endif 10183# endif 10184#endif 10185 10186void fnord() { int i=42;} 10187int main () 10188{ 10189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10190 int status = $lt_dlunknown; 10191 10192 if (self) 10193 { 10194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10196 /* dlclose (self); */ 10197 } 10198 else 10199 puts (dlerror ()); 10200 10201 return status; 10202} 10203_LT_EOF 10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10205 (eval $ac_link) 2>&5 10206 ac_status=$? 10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10209 (./conftest; exit; ) >&5 2>/dev/null 10210 lt_status=$? 10211 case x$lt_status in 10212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10215 esac 10216 else : 10217 # compilation failed 10218 lt_cv_dlopen_self=no 10219 fi 10220fi 10221rm -fr conftest* 10222 10223 10224fi 10225{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10226$as_echo "$lt_cv_dlopen_self" >&6; } 10227 10228 if test "x$lt_cv_dlopen_self" = xyes; then 10229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10230 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10231$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10232if test "${lt_cv_dlopen_self_static+set}" = set; then 10233 $as_echo_n "(cached) " >&6 10234else 10235 if test "$cross_compiling" = yes; then : 10236 lt_cv_dlopen_self_static=cross 10237else 10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10239 lt_status=$lt_dlunknown 10240 cat > conftest.$ac_ext <<_LT_EOF 10241#line 10241 "configure" 10242#include "confdefs.h" 10243 10244#if HAVE_DLFCN_H 10245#include <dlfcn.h> 10246#endif 10247 10248#include <stdio.h> 10249 10250#ifdef RTLD_GLOBAL 10251# define LT_DLGLOBAL RTLD_GLOBAL 10252#else 10253# ifdef DL_GLOBAL 10254# define LT_DLGLOBAL DL_GLOBAL 10255# else 10256# define LT_DLGLOBAL 0 10257# endif 10258#endif 10259 10260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10261 find out it does not work in some platform. */ 10262#ifndef LT_DLLAZY_OR_NOW 10263# ifdef RTLD_LAZY 10264# define LT_DLLAZY_OR_NOW RTLD_LAZY 10265# else 10266# ifdef DL_LAZY 10267# define LT_DLLAZY_OR_NOW DL_LAZY 10268# else 10269# ifdef RTLD_NOW 10270# define LT_DLLAZY_OR_NOW RTLD_NOW 10271# else 10272# ifdef DL_NOW 10273# define LT_DLLAZY_OR_NOW DL_NOW 10274# else 10275# define LT_DLLAZY_OR_NOW 0 10276# endif 10277# endif 10278# endif 10279# endif 10280#endif 10281 10282void fnord() { int i=42;} 10283int main () 10284{ 10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10286 int status = $lt_dlunknown; 10287 10288 if (self) 10289 { 10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10292 /* dlclose (self); */ 10293 } 10294 else 10295 puts (dlerror ()); 10296 10297 return status; 10298} 10299_LT_EOF 10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10301 (eval $ac_link) 2>&5 10302 ac_status=$? 10303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10305 (./conftest; exit; ) >&5 2>/dev/null 10306 lt_status=$? 10307 case x$lt_status in 10308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10311 esac 10312 else : 10313 # compilation failed 10314 lt_cv_dlopen_self_static=no 10315 fi 10316fi 10317rm -fr conftest* 10318 10319 10320fi 10321{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10322$as_echo "$lt_cv_dlopen_self_static" >&6; } 10323 fi 10324 10325 CPPFLAGS="$save_CPPFLAGS" 10326 LDFLAGS="$save_LDFLAGS" 10327 LIBS="$save_LIBS" 10328 ;; 10329 esac 10330 10331 case $lt_cv_dlopen_self in 10332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10333 *) enable_dlopen_self=unknown ;; 10334 esac 10335 10336 case $lt_cv_dlopen_self_static in 10337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10338 *) enable_dlopen_self_static=unknown ;; 10339 esac 10340fi 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358striplib= 10359old_striplib= 10360{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10361$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10362if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10364 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10365 { $as_echo "$as_me:$LINENO: result: yes" >&5 10366$as_echo "yes" >&6; } 10367else 10368# FIXME - insert some real tests, host_os isn't really good enough 10369 case $host_os in 10370 darwin*) 10371 if test -n "$STRIP" ; then 10372 striplib="$STRIP -x" 10373 old_striplib="$STRIP -S" 10374 { $as_echo "$as_me:$LINENO: result: yes" >&5 10375$as_echo "yes" >&6; } 10376 else 10377 { $as_echo "$as_me:$LINENO: result: no" >&5 10378$as_echo "no" >&6; } 10379 fi 10380 ;; 10381 *) 10382 { $as_echo "$as_me:$LINENO: result: no" >&5 10383$as_echo "no" >&6; } 10384 ;; 10385 esac 10386fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 # Report which library types will actually be built 10400 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10401$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10402 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10403$as_echo "$can_build_shared" >&6; } 10404 10405 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10406$as_echo_n "checking whether to build shared libraries... " >&6; } 10407 test "$can_build_shared" = "no" && enable_shared=no 10408 10409 # On AIX, shared libraries and static libraries use the same namespace, and 10410 # are all built from PIC. 10411 case $host_os in 10412 aix3*) 10413 test "$enable_shared" = yes && enable_static=no 10414 if test -n "$RANLIB"; then 10415 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10416 postinstall_cmds='$RANLIB $lib' 10417 fi 10418 ;; 10419 10420 aix[4-9]*) 10421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10422 test "$enable_shared" = yes && enable_static=no 10423 fi 10424 ;; 10425 esac 10426 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10427$as_echo "$enable_shared" >&6; } 10428 10429 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10430$as_echo_n "checking whether to build static libraries... " >&6; } 10431 # Make sure either enable_shared or enable_static is yes. 10432 test "$enable_shared" = yes || enable_static=yes 10433 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10434$as_echo "$enable_static" >&6; } 10435 10436 10437 10438 10439fi 10440ac_ext=c 10441ac_cpp='$CPP $CPPFLAGS' 10442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10444ac_compiler_gnu=$ac_cv_c_compiler_gnu 10445 10446CC="$lt_save_CC" 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 ac_config_commands="$ac_config_commands libtool" 10461 10462 10463 10464 10465# Only expand once: 10466 10467 10468# Find a good install program. We prefer a C program (faster), 10469# so one script is as good as another. But avoid the broken or 10470# incompatible versions: 10471# SysV /etc/install, /usr/sbin/install 10472# SunOS /usr/etc/install 10473# IRIX /sbin/install 10474# AIX /bin/install 10475# AmigaOS /C/install, which installs bootblocks on floppy discs 10476# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10477# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10478# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10479# OS/2's system install, which has a completely different semantic 10480# ./install, which can be erroneously created by make from ./install.sh. 10481# Reject install programs that cannot install multiple files. 10482{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 10483$as_echo_n "checking for a BSD-compatible install... " >&6; } 10484if test -z "$INSTALL"; then 10485if test "${ac_cv_path_install+set}" = set; then 10486 $as_echo_n "(cached) " >&6 10487else 10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10489for as_dir in $PATH 10490do 10491 IFS=$as_save_IFS 10492 test -z "$as_dir" && as_dir=. 10493 # Account for people who put trailing slashes in PATH elements. 10494case $as_dir/ in 10495 ./ | .// | /cC/* | \ 10496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 10498 /usr/ucb/* ) ;; 10499 *) 10500 # OSF1 and SCO ODT 3.0 have their own names for install. 10501 # Don't use installbsd from OSF since it installs stuff as root 10502 # by default. 10503 for ac_prog in ginstall scoinst install; do 10504 for ac_exec_ext in '' $ac_executable_extensions; do 10505 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 10506 if test $ac_prog = install && 10507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10508 # AIX install. It has an incompatible calling convention. 10509 : 10510 elif test $ac_prog = install && 10511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10512 # program-specific install script used by HP pwplus--don't use. 10513 : 10514 else 10515 rm -rf conftest.one conftest.two conftest.dir 10516 echo one > conftest.one 10517 echo two > conftest.two 10518 mkdir conftest.dir 10519 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10520 test -s conftest.one && test -s conftest.two && 10521 test -s conftest.dir/conftest.one && 10522 test -s conftest.dir/conftest.two 10523 then 10524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10525 break 3 10526 fi 10527 fi 10528 fi 10529 done 10530 done 10531 ;; 10532esac 10533 10534done 10535IFS=$as_save_IFS 10536 10537rm -rf conftest.one conftest.two conftest.dir 10538 10539fi 10540 if test "${ac_cv_path_install+set}" = set; then 10541 INSTALL=$ac_cv_path_install 10542 else 10543 # As a last resort, use the slow shell script. Don't cache a 10544 # value for INSTALL within a source directory, because that will 10545 # break other packages using the cache if that directory is 10546 # removed, or if the value is a relative name. 10547 INSTALL=$ac_install_sh 10548 fi 10549fi 10550{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 10551$as_echo "$INSTALL" >&6; } 10552 10553# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10554# It thinks the first close brace ends the variable substitution. 10555test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10556 10557test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10558 10559test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10560 10561for ac_prog in gawk mawk nawk awk 10562do 10563 # Extract the first word of "$ac_prog", so it can be a program name with args. 10564set dummy $ac_prog; ac_word=$2 10565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10566$as_echo_n "checking for $ac_word... " >&6; } 10567if test "${ac_cv_prog_AWK+set}" = set; then 10568 $as_echo_n "(cached) " >&6 10569else 10570 if test -n "$AWK"; then 10571 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10572else 10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10574for as_dir in $PATH 10575do 10576 IFS=$as_save_IFS 10577 test -z "$as_dir" && as_dir=. 10578 for ac_exec_ext in '' $ac_executable_extensions; do 10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10580 ac_cv_prog_AWK="$ac_prog" 10581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10582 break 2 10583 fi 10584done 10585done 10586IFS=$as_save_IFS 10587 10588fi 10589fi 10590AWK=$ac_cv_prog_AWK 10591if test -n "$AWK"; then 10592 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 10593$as_echo "$AWK" >&6; } 10594else 10595 { $as_echo "$as_me:$LINENO: result: no" >&5 10596$as_echo "no" >&6; } 10597fi 10598 10599 10600 test -n "$AWK" && break 10601done 10602 10603 10604######### 10605# Enable large file support (if special flags are necessary) 10606# 10607# Check whether --enable-largefile was given. 10608if test "${enable_largefile+set}" = set; then 10609 enableval=$enable_largefile; 10610fi 10611 10612if test "$enable_largefile" != no; then 10613 10614 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 10615$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10616if test "${ac_cv_sys_largefile_CC+set}" = set; then 10617 $as_echo_n "(cached) " >&6 10618else 10619 ac_cv_sys_largefile_CC=no 10620 if test "$GCC" != yes; then 10621 ac_save_CC=$CC 10622 while :; do 10623 # IRIX 6.2 and later do not support large files by default, 10624 # so use the C compiler's -n32 option if that helps. 10625 cat >conftest.$ac_ext <<_ACEOF 10626/* confdefs.h. */ 10627_ACEOF 10628cat confdefs.h >>conftest.$ac_ext 10629cat >>conftest.$ac_ext <<_ACEOF 10630/* end confdefs.h. */ 10631#include <sys/types.h> 10632 /* Check that off_t can represent 2**63 - 1 correctly. 10633 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10634 since some C++ compilers masquerading as C compilers 10635 incorrectly reject 9223372036854775807. */ 10636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10638 && LARGE_OFF_T % 2147483647 == 1) 10639 ? 1 : -1]; 10640int 10641main () 10642{ 10643 10644 ; 10645 return 0; 10646} 10647_ACEOF 10648 rm -f conftest.$ac_objext 10649if { (ac_try="$ac_compile" 10650case "(($ac_try" in 10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10652 *) ac_try_echo=$ac_try;; 10653esac 10654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10655$as_echo "$ac_try_echo") >&5 10656 (eval "$ac_compile") 2>conftest.er1 10657 ac_status=$? 10658 grep -v '^ *+' conftest.er1 >conftest.err 10659 rm -f conftest.er1 10660 cat conftest.err >&5 10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10662 (exit $ac_status); } && { 10663 test -z "$ac_c_werror_flag" || 10664 test ! -s conftest.err 10665 } && test -s conftest.$ac_objext; then 10666 break 10667else 10668 $as_echo "$as_me: failed program was:" >&5 10669sed 's/^/| /' conftest.$ac_ext >&5 10670 10671 10672fi 10673 10674rm -f core conftest.err conftest.$ac_objext 10675 CC="$CC -n32" 10676 rm -f conftest.$ac_objext 10677if { (ac_try="$ac_compile" 10678case "(($ac_try" in 10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10680 *) ac_try_echo=$ac_try;; 10681esac 10682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10683$as_echo "$ac_try_echo") >&5 10684 (eval "$ac_compile") 2>conftest.er1 10685 ac_status=$? 10686 grep -v '^ *+' conftest.er1 >conftest.err 10687 rm -f conftest.er1 10688 cat conftest.err >&5 10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10690 (exit $ac_status); } && { 10691 test -z "$ac_c_werror_flag" || 10692 test ! -s conftest.err 10693 } && test -s conftest.$ac_objext; then 10694 ac_cv_sys_largefile_CC=' -n32'; break 10695else 10696 $as_echo "$as_me: failed program was:" >&5 10697sed 's/^/| /' conftest.$ac_ext >&5 10698 10699 10700fi 10701 10702rm -f core conftest.err conftest.$ac_objext 10703 break 10704 done 10705 CC=$ac_save_CC 10706 rm -f conftest.$ac_ext 10707 fi 10708fi 10709{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 10710$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10711 if test "$ac_cv_sys_largefile_CC" != no; then 10712 CC=$CC$ac_cv_sys_largefile_CC 10713 fi 10714 10715 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10716$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10717if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10718 $as_echo_n "(cached) " >&6 10719else 10720 while :; do 10721 cat >conftest.$ac_ext <<_ACEOF 10722/* confdefs.h. */ 10723_ACEOF 10724cat confdefs.h >>conftest.$ac_ext 10725cat >>conftest.$ac_ext <<_ACEOF 10726/* end confdefs.h. */ 10727#include <sys/types.h> 10728 /* Check that off_t can represent 2**63 - 1 correctly. 10729 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10730 since some C++ compilers masquerading as C compilers 10731 incorrectly reject 9223372036854775807. */ 10732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10734 && LARGE_OFF_T % 2147483647 == 1) 10735 ? 1 : -1]; 10736int 10737main () 10738{ 10739 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744rm -f conftest.$ac_objext 10745if { (ac_try="$ac_compile" 10746case "(($ac_try" in 10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10748 *) ac_try_echo=$ac_try;; 10749esac 10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10751$as_echo "$ac_try_echo") >&5 10752 (eval "$ac_compile") 2>conftest.er1 10753 ac_status=$? 10754 grep -v '^ *+' conftest.er1 >conftest.err 10755 rm -f conftest.er1 10756 cat conftest.err >&5 10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10758 (exit $ac_status); } && { 10759 test -z "$ac_c_werror_flag" || 10760 test ! -s conftest.err 10761 } && test -s conftest.$ac_objext; then 10762 ac_cv_sys_file_offset_bits=no; break 10763else 10764 $as_echo "$as_me: failed program was:" >&5 10765sed 's/^/| /' conftest.$ac_ext >&5 10766 10767 10768fi 10769 10770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10771 cat >conftest.$ac_ext <<_ACEOF 10772/* confdefs.h. */ 10773_ACEOF 10774cat confdefs.h >>conftest.$ac_ext 10775cat >>conftest.$ac_ext <<_ACEOF 10776/* end confdefs.h. */ 10777#define _FILE_OFFSET_BITS 64 10778#include <sys/types.h> 10779 /* Check that off_t can represent 2**63 - 1 correctly. 10780 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10781 since some C++ compilers masquerading as C compilers 10782 incorrectly reject 9223372036854775807. */ 10783#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10785 && LARGE_OFF_T % 2147483647 == 1) 10786 ? 1 : -1]; 10787int 10788main () 10789{ 10790 10791 ; 10792 return 0; 10793} 10794_ACEOF 10795rm -f conftest.$ac_objext 10796if { (ac_try="$ac_compile" 10797case "(($ac_try" in 10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10799 *) ac_try_echo=$ac_try;; 10800esac 10801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10802$as_echo "$ac_try_echo") >&5 10803 (eval "$ac_compile") 2>conftest.er1 10804 ac_status=$? 10805 grep -v '^ *+' conftest.er1 >conftest.err 10806 rm -f conftest.er1 10807 cat conftest.err >&5 10808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10809 (exit $ac_status); } && { 10810 test -z "$ac_c_werror_flag" || 10811 test ! -s conftest.err 10812 } && test -s conftest.$ac_objext; then 10813 ac_cv_sys_file_offset_bits=64; break 10814else 10815 $as_echo "$as_me: failed program was:" >&5 10816sed 's/^/| /' conftest.$ac_ext >&5 10817 10818 10819fi 10820 10821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10822 ac_cv_sys_file_offset_bits=unknown 10823 break 10824done 10825fi 10826{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 10827$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10828case $ac_cv_sys_file_offset_bits in #( 10829 no | unknown) ;; 10830 *) 10831cat >>confdefs.h <<_ACEOF 10832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10833_ACEOF 10834;; 10835esac 10836rm -rf conftest* 10837 if test $ac_cv_sys_file_offset_bits = unknown; then 10838 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10839$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10840if test "${ac_cv_sys_large_files+set}" = set; then 10841 $as_echo_n "(cached) " >&6 10842else 10843 while :; do 10844 cat >conftest.$ac_ext <<_ACEOF 10845/* confdefs.h. */ 10846_ACEOF 10847cat confdefs.h >>conftest.$ac_ext 10848cat >>conftest.$ac_ext <<_ACEOF 10849/* end confdefs.h. */ 10850#include <sys/types.h> 10851 /* Check that off_t can represent 2**63 - 1 correctly. 10852 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10853 since some C++ compilers masquerading as C compilers 10854 incorrectly reject 9223372036854775807. */ 10855#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10857 && LARGE_OFF_T % 2147483647 == 1) 10858 ? 1 : -1]; 10859int 10860main () 10861{ 10862 10863 ; 10864 return 0; 10865} 10866_ACEOF 10867rm -f conftest.$ac_objext 10868if { (ac_try="$ac_compile" 10869case "(($ac_try" in 10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10871 *) ac_try_echo=$ac_try;; 10872esac 10873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10874$as_echo "$ac_try_echo") >&5 10875 (eval "$ac_compile") 2>conftest.er1 10876 ac_status=$? 10877 grep -v '^ *+' conftest.er1 >conftest.err 10878 rm -f conftest.er1 10879 cat conftest.err >&5 10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); } && { 10882 test -z "$ac_c_werror_flag" || 10883 test ! -s conftest.err 10884 } && test -s conftest.$ac_objext; then 10885 ac_cv_sys_large_files=no; break 10886else 10887 $as_echo "$as_me: failed program was:" >&5 10888sed 's/^/| /' conftest.$ac_ext >&5 10889 10890 10891fi 10892 10893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10894 cat >conftest.$ac_ext <<_ACEOF 10895/* confdefs.h. */ 10896_ACEOF 10897cat confdefs.h >>conftest.$ac_ext 10898cat >>conftest.$ac_ext <<_ACEOF 10899/* end confdefs.h. */ 10900#define _LARGE_FILES 1 10901#include <sys/types.h> 10902 /* Check that off_t can represent 2**63 - 1 correctly. 10903 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10904 since some C++ compilers masquerading as C compilers 10905 incorrectly reject 9223372036854775807. */ 10906#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10908 && LARGE_OFF_T % 2147483647 == 1) 10909 ? 1 : -1]; 10910int 10911main () 10912{ 10913 10914 ; 10915 return 0; 10916} 10917_ACEOF 10918rm -f conftest.$ac_objext 10919if { (ac_try="$ac_compile" 10920case "(($ac_try" in 10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10922 *) ac_try_echo=$ac_try;; 10923esac 10924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10925$as_echo "$ac_try_echo") >&5 10926 (eval "$ac_compile") 2>conftest.er1 10927 ac_status=$? 10928 grep -v '^ *+' conftest.er1 >conftest.err 10929 rm -f conftest.er1 10930 cat conftest.err >&5 10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10932 (exit $ac_status); } && { 10933 test -z "$ac_c_werror_flag" || 10934 test ! -s conftest.err 10935 } && test -s conftest.$ac_objext; then 10936 ac_cv_sys_large_files=1; break 10937else 10938 $as_echo "$as_me: failed program was:" >&5 10939sed 's/^/| /' conftest.$ac_ext >&5 10940 10941 10942fi 10943 10944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10945 ac_cv_sys_large_files=unknown 10946 break 10947done 10948fi 10949{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10950$as_echo "$ac_cv_sys_large_files" >&6; } 10951case $ac_cv_sys_large_files in #( 10952 no | unknown) ;; 10953 *) 10954cat >>confdefs.h <<_ACEOF 10955#define _LARGE_FILES $ac_cv_sys_large_files 10956_ACEOF 10957;; 10958esac 10959rm -rf conftest* 10960 fi 10961fi 10962 10963 10964######### 10965# Check for needed/wanted data types 10966{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5 10967$as_echo_n "checking for int8_t... " >&6; } 10968if test "${ac_cv_type_int8_t+set}" = set; then 10969 $as_echo_n "(cached) " >&6 10970else 10971 ac_cv_type_int8_t=no 10972cat >conftest.$ac_ext <<_ACEOF 10973/* confdefs.h. */ 10974_ACEOF 10975cat confdefs.h >>conftest.$ac_ext 10976cat >>conftest.$ac_ext <<_ACEOF 10977/* end confdefs.h. */ 10978$ac_includes_default 10979int 10980main () 10981{ 10982if (sizeof (int8_t)) 10983 return 0; 10984 ; 10985 return 0; 10986} 10987_ACEOF 10988rm -f conftest.$ac_objext 10989if { (ac_try="$ac_compile" 10990case "(($ac_try" in 10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10992 *) ac_try_echo=$ac_try;; 10993esac 10994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10995$as_echo "$ac_try_echo") >&5 10996 (eval "$ac_compile") 2>conftest.er1 10997 ac_status=$? 10998 grep -v '^ *+' conftest.er1 >conftest.err 10999 rm -f conftest.er1 11000 cat conftest.err >&5 11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11002 (exit $ac_status); } && { 11003 test -z "$ac_c_werror_flag" || 11004 test ! -s conftest.err 11005 } && test -s conftest.$ac_objext; then 11006 cat >conftest.$ac_ext <<_ACEOF 11007/* confdefs.h. */ 11008_ACEOF 11009cat confdefs.h >>conftest.$ac_ext 11010cat >>conftest.$ac_ext <<_ACEOF 11011/* end confdefs.h. */ 11012$ac_includes_default 11013int 11014main () 11015{ 11016if (sizeof ((int8_t))) 11017 return 0; 11018 ; 11019 return 0; 11020} 11021_ACEOF 11022rm -f conftest.$ac_objext 11023if { (ac_try="$ac_compile" 11024case "(($ac_try" in 11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11026 *) ac_try_echo=$ac_try;; 11027esac 11028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11029$as_echo "$ac_try_echo") >&5 11030 (eval "$ac_compile") 2>conftest.er1 11031 ac_status=$? 11032 grep -v '^ *+' conftest.er1 >conftest.err 11033 rm -f conftest.er1 11034 cat conftest.err >&5 11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11036 (exit $ac_status); } && { 11037 test -z "$ac_c_werror_flag" || 11038 test ! -s conftest.err 11039 } && test -s conftest.$ac_objext; then 11040 : 11041else 11042 $as_echo "$as_me: failed program was:" >&5 11043sed 's/^/| /' conftest.$ac_ext >&5 11044 11045 ac_cv_type_int8_t=yes 11046fi 11047 11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11049else 11050 $as_echo "$as_me: failed program was:" >&5 11051sed 's/^/| /' conftest.$ac_ext >&5 11052 11053 11054fi 11055 11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11057fi 11058{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11059$as_echo "$ac_cv_type_int8_t" >&6; } 11060if test $ac_cv_type_int8_t = yes; then 11061 11062cat >>confdefs.h <<_ACEOF 11063#define HAVE_INT8_T 1 11064_ACEOF 11065 11066 11067fi 11068{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5 11069$as_echo_n "checking for int16_t... " >&6; } 11070if test "${ac_cv_type_int16_t+set}" = set; then 11071 $as_echo_n "(cached) " >&6 11072else 11073 ac_cv_type_int16_t=no 11074cat >conftest.$ac_ext <<_ACEOF 11075/* confdefs.h. */ 11076_ACEOF 11077cat confdefs.h >>conftest.$ac_ext 11078cat >>conftest.$ac_ext <<_ACEOF 11079/* end confdefs.h. */ 11080$ac_includes_default 11081int 11082main () 11083{ 11084if (sizeof (int16_t)) 11085 return 0; 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090rm -f conftest.$ac_objext 11091if { (ac_try="$ac_compile" 11092case "(($ac_try" in 11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11094 *) ac_try_echo=$ac_try;; 11095esac 11096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11097$as_echo "$ac_try_echo") >&5 11098 (eval "$ac_compile") 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } && { 11105 test -z "$ac_c_werror_flag" || 11106 test ! -s conftest.err 11107 } && test -s conftest.$ac_objext; then 11108 cat >conftest.$ac_ext <<_ACEOF 11109/* confdefs.h. */ 11110_ACEOF 11111cat confdefs.h >>conftest.$ac_ext 11112cat >>conftest.$ac_ext <<_ACEOF 11113/* end confdefs.h. */ 11114$ac_includes_default 11115int 11116main () 11117{ 11118if (sizeof ((int16_t))) 11119 return 0; 11120 ; 11121 return 0; 11122} 11123_ACEOF 11124rm -f conftest.$ac_objext 11125if { (ac_try="$ac_compile" 11126case "(($ac_try" in 11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11128 *) ac_try_echo=$ac_try;; 11129esac 11130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11131$as_echo "$ac_try_echo") >&5 11132 (eval "$ac_compile") 2>conftest.er1 11133 ac_status=$? 11134 grep -v '^ *+' conftest.er1 >conftest.err 11135 rm -f conftest.er1 11136 cat conftest.err >&5 11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11138 (exit $ac_status); } && { 11139 test -z "$ac_c_werror_flag" || 11140 test ! -s conftest.err 11141 } && test -s conftest.$ac_objext; then 11142 : 11143else 11144 $as_echo "$as_me: failed program was:" >&5 11145sed 's/^/| /' conftest.$ac_ext >&5 11146 11147 ac_cv_type_int16_t=yes 11148fi 11149 11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11151else 11152 $as_echo "$as_me: failed program was:" >&5 11153sed 's/^/| /' conftest.$ac_ext >&5 11154 11155 11156fi 11157 11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11159fi 11160{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11161$as_echo "$ac_cv_type_int16_t" >&6; } 11162if test $ac_cv_type_int16_t = yes; then 11163 11164cat >>confdefs.h <<_ACEOF 11165#define HAVE_INT16_T 1 11166_ACEOF 11167 11168 11169fi 11170{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5 11171$as_echo_n "checking for int32_t... " >&6; } 11172if test "${ac_cv_type_int32_t+set}" = set; then 11173 $as_echo_n "(cached) " >&6 11174else 11175 ac_cv_type_int32_t=no 11176cat >conftest.$ac_ext <<_ACEOF 11177/* confdefs.h. */ 11178_ACEOF 11179cat confdefs.h >>conftest.$ac_ext 11180cat >>conftest.$ac_ext <<_ACEOF 11181/* end confdefs.h. */ 11182$ac_includes_default 11183int 11184main () 11185{ 11186if (sizeof (int32_t)) 11187 return 0; 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192rm -f conftest.$ac_objext 11193if { (ac_try="$ac_compile" 11194case "(($ac_try" in 11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11196 *) ac_try_echo=$ac_try;; 11197esac 11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11199$as_echo "$ac_try_echo") >&5 11200 (eval "$ac_compile") 2>conftest.er1 11201 ac_status=$? 11202 grep -v '^ *+' conftest.er1 >conftest.err 11203 rm -f conftest.er1 11204 cat conftest.err >&5 11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11206 (exit $ac_status); } && { 11207 test -z "$ac_c_werror_flag" || 11208 test ! -s conftest.err 11209 } && test -s conftest.$ac_objext; then 11210 cat >conftest.$ac_ext <<_ACEOF 11211/* confdefs.h. */ 11212_ACEOF 11213cat confdefs.h >>conftest.$ac_ext 11214cat >>conftest.$ac_ext <<_ACEOF 11215/* end confdefs.h. */ 11216$ac_includes_default 11217int 11218main () 11219{ 11220if (sizeof ((int32_t))) 11221 return 0; 11222 ; 11223 return 0; 11224} 11225_ACEOF 11226rm -f conftest.$ac_objext 11227if { (ac_try="$ac_compile" 11228case "(($ac_try" in 11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11230 *) ac_try_echo=$ac_try;; 11231esac 11232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11233$as_echo "$ac_try_echo") >&5 11234 (eval "$ac_compile") 2>conftest.er1 11235 ac_status=$? 11236 grep -v '^ *+' conftest.er1 >conftest.err 11237 rm -f conftest.er1 11238 cat conftest.err >&5 11239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11240 (exit $ac_status); } && { 11241 test -z "$ac_c_werror_flag" || 11242 test ! -s conftest.err 11243 } && test -s conftest.$ac_objext; then 11244 : 11245else 11246 $as_echo "$as_me: failed program was:" >&5 11247sed 's/^/| /' conftest.$ac_ext >&5 11248 11249 ac_cv_type_int32_t=yes 11250fi 11251 11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11253else 11254 $as_echo "$as_me: failed program was:" >&5 11255sed 's/^/| /' conftest.$ac_ext >&5 11256 11257 11258fi 11259 11260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11261fi 11262{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11263$as_echo "$ac_cv_type_int32_t" >&6; } 11264if test $ac_cv_type_int32_t = yes; then 11265 11266cat >>confdefs.h <<_ACEOF 11267#define HAVE_INT32_T 1 11268_ACEOF 11269 11270 11271fi 11272{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5 11273$as_echo_n "checking for int64_t... " >&6; } 11274if test "${ac_cv_type_int64_t+set}" = set; then 11275 $as_echo_n "(cached) " >&6 11276else 11277 ac_cv_type_int64_t=no 11278cat >conftest.$ac_ext <<_ACEOF 11279/* confdefs.h. */ 11280_ACEOF 11281cat confdefs.h >>conftest.$ac_ext 11282cat >>conftest.$ac_ext <<_ACEOF 11283/* end confdefs.h. */ 11284$ac_includes_default 11285int 11286main () 11287{ 11288if (sizeof (int64_t)) 11289 return 0; 11290 ; 11291 return 0; 11292} 11293_ACEOF 11294rm -f conftest.$ac_objext 11295if { (ac_try="$ac_compile" 11296case "(($ac_try" in 11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11298 *) ac_try_echo=$ac_try;; 11299esac 11300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11301$as_echo "$ac_try_echo") >&5 11302 (eval "$ac_compile") 2>conftest.er1 11303 ac_status=$? 11304 grep -v '^ *+' conftest.er1 >conftest.err 11305 rm -f conftest.er1 11306 cat conftest.err >&5 11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11308 (exit $ac_status); } && { 11309 test -z "$ac_c_werror_flag" || 11310 test ! -s conftest.err 11311 } && test -s conftest.$ac_objext; then 11312 cat >conftest.$ac_ext <<_ACEOF 11313/* confdefs.h. */ 11314_ACEOF 11315cat confdefs.h >>conftest.$ac_ext 11316cat >>conftest.$ac_ext <<_ACEOF 11317/* end confdefs.h. */ 11318$ac_includes_default 11319int 11320main () 11321{ 11322if (sizeof ((int64_t))) 11323 return 0; 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328rm -f conftest.$ac_objext 11329if { (ac_try="$ac_compile" 11330case "(($ac_try" in 11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11332 *) ac_try_echo=$ac_try;; 11333esac 11334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11335$as_echo "$ac_try_echo") >&5 11336 (eval "$ac_compile") 2>conftest.er1 11337 ac_status=$? 11338 grep -v '^ *+' conftest.er1 >conftest.err 11339 rm -f conftest.er1 11340 cat conftest.err >&5 11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11342 (exit $ac_status); } && { 11343 test -z "$ac_c_werror_flag" || 11344 test ! -s conftest.err 11345 } && test -s conftest.$ac_objext; then 11346 : 11347else 11348 $as_echo "$as_me: failed program was:" >&5 11349sed 's/^/| /' conftest.$ac_ext >&5 11350 11351 ac_cv_type_int64_t=yes 11352fi 11353 11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11355else 11356 $as_echo "$as_me: failed program was:" >&5 11357sed 's/^/| /' conftest.$ac_ext >&5 11358 11359 11360fi 11361 11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11363fi 11364{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11365$as_echo "$ac_cv_type_int64_t" >&6; } 11366if test $ac_cv_type_int64_t = yes; then 11367 11368cat >>confdefs.h <<_ACEOF 11369#define HAVE_INT64_T 1 11370_ACEOF 11371 11372 11373fi 11374{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 11375$as_echo_n "checking for intptr_t... " >&6; } 11376if test "${ac_cv_type_intptr_t+set}" = set; then 11377 $as_echo_n "(cached) " >&6 11378else 11379 ac_cv_type_intptr_t=no 11380cat >conftest.$ac_ext <<_ACEOF 11381/* confdefs.h. */ 11382_ACEOF 11383cat confdefs.h >>conftest.$ac_ext 11384cat >>conftest.$ac_ext <<_ACEOF 11385/* end confdefs.h. */ 11386$ac_includes_default 11387int 11388main () 11389{ 11390if (sizeof (intptr_t)) 11391 return 0; 11392 ; 11393 return 0; 11394} 11395_ACEOF 11396rm -f conftest.$ac_objext 11397if { (ac_try="$ac_compile" 11398case "(($ac_try" in 11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11400 *) ac_try_echo=$ac_try;; 11401esac 11402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11403$as_echo "$ac_try_echo") >&5 11404 (eval "$ac_compile") 2>conftest.er1 11405 ac_status=$? 11406 grep -v '^ *+' conftest.er1 >conftest.err 11407 rm -f conftest.er1 11408 cat conftest.err >&5 11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11410 (exit $ac_status); } && { 11411 test -z "$ac_c_werror_flag" || 11412 test ! -s conftest.err 11413 } && test -s conftest.$ac_objext; then 11414 cat >conftest.$ac_ext <<_ACEOF 11415/* confdefs.h. */ 11416_ACEOF 11417cat confdefs.h >>conftest.$ac_ext 11418cat >>conftest.$ac_ext <<_ACEOF 11419/* end confdefs.h. */ 11420$ac_includes_default 11421int 11422main () 11423{ 11424if (sizeof ((intptr_t))) 11425 return 0; 11426 ; 11427 return 0; 11428} 11429_ACEOF 11430rm -f conftest.$ac_objext 11431if { (ac_try="$ac_compile" 11432case "(($ac_try" in 11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11434 *) ac_try_echo=$ac_try;; 11435esac 11436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11437$as_echo "$ac_try_echo") >&5 11438 (eval "$ac_compile") 2>conftest.er1 11439 ac_status=$? 11440 grep -v '^ *+' conftest.er1 >conftest.err 11441 rm -f conftest.er1 11442 cat conftest.err >&5 11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } && { 11445 test -z "$ac_c_werror_flag" || 11446 test ! -s conftest.err 11447 } && test -s conftest.$ac_objext; then 11448 : 11449else 11450 $as_echo "$as_me: failed program was:" >&5 11451sed 's/^/| /' conftest.$ac_ext >&5 11452 11453 ac_cv_type_intptr_t=yes 11454fi 11455 11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11457else 11458 $as_echo "$as_me: failed program was:" >&5 11459sed 's/^/| /' conftest.$ac_ext >&5 11460 11461 11462fi 11463 11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11465fi 11466{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 11467$as_echo "$ac_cv_type_intptr_t" >&6; } 11468if test $ac_cv_type_intptr_t = yes; then 11469 11470cat >>confdefs.h <<_ACEOF 11471#define HAVE_INTPTR_T 1 11472_ACEOF 11473 11474 11475fi 11476{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 11477$as_echo_n "checking for uint8_t... " >&6; } 11478if test "${ac_cv_type_uint8_t+set}" = set; then 11479 $as_echo_n "(cached) " >&6 11480else 11481 ac_cv_type_uint8_t=no 11482cat >conftest.$ac_ext <<_ACEOF 11483/* confdefs.h. */ 11484_ACEOF 11485cat confdefs.h >>conftest.$ac_ext 11486cat >>conftest.$ac_ext <<_ACEOF 11487/* end confdefs.h. */ 11488$ac_includes_default 11489int 11490main () 11491{ 11492if (sizeof (uint8_t)) 11493 return 0; 11494 ; 11495 return 0; 11496} 11497_ACEOF 11498rm -f conftest.$ac_objext 11499if { (ac_try="$ac_compile" 11500case "(($ac_try" in 11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11502 *) ac_try_echo=$ac_try;; 11503esac 11504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11505$as_echo "$ac_try_echo") >&5 11506 (eval "$ac_compile") 2>conftest.er1 11507 ac_status=$? 11508 grep -v '^ *+' conftest.er1 >conftest.err 11509 rm -f conftest.er1 11510 cat conftest.err >&5 11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11512 (exit $ac_status); } && { 11513 test -z "$ac_c_werror_flag" || 11514 test ! -s conftest.err 11515 } && test -s conftest.$ac_objext; then 11516 cat >conftest.$ac_ext <<_ACEOF 11517/* confdefs.h. */ 11518_ACEOF 11519cat confdefs.h >>conftest.$ac_ext 11520cat >>conftest.$ac_ext <<_ACEOF 11521/* end confdefs.h. */ 11522$ac_includes_default 11523int 11524main () 11525{ 11526if (sizeof ((uint8_t))) 11527 return 0; 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532rm -f conftest.$ac_objext 11533if { (ac_try="$ac_compile" 11534case "(($ac_try" in 11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11536 *) ac_try_echo=$ac_try;; 11537esac 11538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11539$as_echo "$ac_try_echo") >&5 11540 (eval "$ac_compile") 2>conftest.er1 11541 ac_status=$? 11542 grep -v '^ *+' conftest.er1 >conftest.err 11543 rm -f conftest.er1 11544 cat conftest.err >&5 11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11546 (exit $ac_status); } && { 11547 test -z "$ac_c_werror_flag" || 11548 test ! -s conftest.err 11549 } && test -s conftest.$ac_objext; then 11550 : 11551else 11552 $as_echo "$as_me: failed program was:" >&5 11553sed 's/^/| /' conftest.$ac_ext >&5 11554 11555 ac_cv_type_uint8_t=yes 11556fi 11557 11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11559else 11560 $as_echo "$as_me: failed program was:" >&5 11561sed 's/^/| /' conftest.$ac_ext >&5 11562 11563 11564fi 11565 11566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11567fi 11568{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11569$as_echo "$ac_cv_type_uint8_t" >&6; } 11570if test $ac_cv_type_uint8_t = yes; then 11571 11572cat >>confdefs.h <<_ACEOF 11573#define HAVE_UINT8_T 1 11574_ACEOF 11575 11576 11577fi 11578{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 11579$as_echo_n "checking for uint16_t... " >&6; } 11580if test "${ac_cv_type_uint16_t+set}" = set; then 11581 $as_echo_n "(cached) " >&6 11582else 11583 ac_cv_type_uint16_t=no 11584cat >conftest.$ac_ext <<_ACEOF 11585/* confdefs.h. */ 11586_ACEOF 11587cat confdefs.h >>conftest.$ac_ext 11588cat >>conftest.$ac_ext <<_ACEOF 11589/* end confdefs.h. */ 11590$ac_includes_default 11591int 11592main () 11593{ 11594if (sizeof (uint16_t)) 11595 return 0; 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext 11601if { (ac_try="$ac_compile" 11602case "(($ac_try" in 11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11604 *) ac_try_echo=$ac_try;; 11605esac 11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11607$as_echo "$ac_try_echo") >&5 11608 (eval "$ac_compile") 2>conftest.er1 11609 ac_status=$? 11610 grep -v '^ *+' conftest.er1 >conftest.err 11611 rm -f conftest.er1 11612 cat conftest.err >&5 11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && { 11615 test -z "$ac_c_werror_flag" || 11616 test ! -s conftest.err 11617 } && test -s conftest.$ac_objext; then 11618 cat >conftest.$ac_ext <<_ACEOF 11619/* confdefs.h. */ 11620_ACEOF 11621cat confdefs.h >>conftest.$ac_ext 11622cat >>conftest.$ac_ext <<_ACEOF 11623/* end confdefs.h. */ 11624$ac_includes_default 11625int 11626main () 11627{ 11628if (sizeof ((uint16_t))) 11629 return 0; 11630 ; 11631 return 0; 11632} 11633_ACEOF 11634rm -f conftest.$ac_objext 11635if { (ac_try="$ac_compile" 11636case "(($ac_try" in 11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11638 *) ac_try_echo=$ac_try;; 11639esac 11640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11641$as_echo "$ac_try_echo") >&5 11642 (eval "$ac_compile") 2>conftest.er1 11643 ac_status=$? 11644 grep -v '^ *+' conftest.er1 >conftest.err 11645 rm -f conftest.er1 11646 cat conftest.err >&5 11647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11648 (exit $ac_status); } && { 11649 test -z "$ac_c_werror_flag" || 11650 test ! -s conftest.err 11651 } && test -s conftest.$ac_objext; then 11652 : 11653else 11654 $as_echo "$as_me: failed program was:" >&5 11655sed 's/^/| /' conftest.$ac_ext >&5 11656 11657 ac_cv_type_uint16_t=yes 11658fi 11659 11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11661else 11662 $as_echo "$as_me: failed program was:" >&5 11663sed 's/^/| /' conftest.$ac_ext >&5 11664 11665 11666fi 11667 11668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11669fi 11670{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11671$as_echo "$ac_cv_type_uint16_t" >&6; } 11672if test $ac_cv_type_uint16_t = yes; then 11673 11674cat >>confdefs.h <<_ACEOF 11675#define HAVE_UINT16_T 1 11676_ACEOF 11677 11678 11679fi 11680{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 11681$as_echo_n "checking for uint32_t... " >&6; } 11682if test "${ac_cv_type_uint32_t+set}" = set; then 11683 $as_echo_n "(cached) " >&6 11684else 11685 ac_cv_type_uint32_t=no 11686cat >conftest.$ac_ext <<_ACEOF 11687/* confdefs.h. */ 11688_ACEOF 11689cat confdefs.h >>conftest.$ac_ext 11690cat >>conftest.$ac_ext <<_ACEOF 11691/* end confdefs.h. */ 11692$ac_includes_default 11693int 11694main () 11695{ 11696if (sizeof (uint32_t)) 11697 return 0; 11698 ; 11699 return 0; 11700} 11701_ACEOF 11702rm -f conftest.$ac_objext 11703if { (ac_try="$ac_compile" 11704case "(($ac_try" in 11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11706 *) ac_try_echo=$ac_try;; 11707esac 11708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11709$as_echo "$ac_try_echo") >&5 11710 (eval "$ac_compile") 2>conftest.er1 11711 ac_status=$? 11712 grep -v '^ *+' conftest.er1 >conftest.err 11713 rm -f conftest.er1 11714 cat conftest.err >&5 11715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11716 (exit $ac_status); } && { 11717 test -z "$ac_c_werror_flag" || 11718 test ! -s conftest.err 11719 } && test -s conftest.$ac_objext; then 11720 cat >conftest.$ac_ext <<_ACEOF 11721/* confdefs.h. */ 11722_ACEOF 11723cat confdefs.h >>conftest.$ac_ext 11724cat >>conftest.$ac_ext <<_ACEOF 11725/* end confdefs.h. */ 11726$ac_includes_default 11727int 11728main () 11729{ 11730if (sizeof ((uint32_t))) 11731 return 0; 11732 ; 11733 return 0; 11734} 11735_ACEOF 11736rm -f conftest.$ac_objext 11737if { (ac_try="$ac_compile" 11738case "(($ac_try" in 11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11740 *) ac_try_echo=$ac_try;; 11741esac 11742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11743$as_echo "$ac_try_echo") >&5 11744 (eval "$ac_compile") 2>conftest.er1 11745 ac_status=$? 11746 grep -v '^ *+' conftest.er1 >conftest.err 11747 rm -f conftest.er1 11748 cat conftest.err >&5 11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11750 (exit $ac_status); } && { 11751 test -z "$ac_c_werror_flag" || 11752 test ! -s conftest.err 11753 } && test -s conftest.$ac_objext; then 11754 : 11755else 11756 $as_echo "$as_me: failed program was:" >&5 11757sed 's/^/| /' conftest.$ac_ext >&5 11758 11759 ac_cv_type_uint32_t=yes 11760fi 11761 11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11763else 11764 $as_echo "$as_me: failed program was:" >&5 11765sed 's/^/| /' conftest.$ac_ext >&5 11766 11767 11768fi 11769 11770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11771fi 11772{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11773$as_echo "$ac_cv_type_uint32_t" >&6; } 11774if test $ac_cv_type_uint32_t = yes; then 11775 11776cat >>confdefs.h <<_ACEOF 11777#define HAVE_UINT32_T 1 11778_ACEOF 11779 11780 11781fi 11782{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 11783$as_echo_n "checking for uint64_t... " >&6; } 11784if test "${ac_cv_type_uint64_t+set}" = set; then 11785 $as_echo_n "(cached) " >&6 11786else 11787 ac_cv_type_uint64_t=no 11788cat >conftest.$ac_ext <<_ACEOF 11789/* confdefs.h. */ 11790_ACEOF 11791cat confdefs.h >>conftest.$ac_ext 11792cat >>conftest.$ac_ext <<_ACEOF 11793/* end confdefs.h. */ 11794$ac_includes_default 11795int 11796main () 11797{ 11798if (sizeof (uint64_t)) 11799 return 0; 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804rm -f conftest.$ac_objext 11805if { (ac_try="$ac_compile" 11806case "(($ac_try" in 11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11808 *) ac_try_echo=$ac_try;; 11809esac 11810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11811$as_echo "$ac_try_echo") >&5 11812 (eval "$ac_compile") 2>conftest.er1 11813 ac_status=$? 11814 grep -v '^ *+' conftest.er1 >conftest.err 11815 rm -f conftest.er1 11816 cat conftest.err >&5 11817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11818 (exit $ac_status); } && { 11819 test -z "$ac_c_werror_flag" || 11820 test ! -s conftest.err 11821 } && test -s conftest.$ac_objext; then 11822 cat >conftest.$ac_ext <<_ACEOF 11823/* confdefs.h. */ 11824_ACEOF 11825cat confdefs.h >>conftest.$ac_ext 11826cat >>conftest.$ac_ext <<_ACEOF 11827/* end confdefs.h. */ 11828$ac_includes_default 11829int 11830main () 11831{ 11832if (sizeof ((uint64_t))) 11833 return 0; 11834 ; 11835 return 0; 11836} 11837_ACEOF 11838rm -f conftest.$ac_objext 11839if { (ac_try="$ac_compile" 11840case "(($ac_try" in 11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11842 *) ac_try_echo=$ac_try;; 11843esac 11844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11845$as_echo "$ac_try_echo") >&5 11846 (eval "$ac_compile") 2>conftest.er1 11847 ac_status=$? 11848 grep -v '^ *+' conftest.er1 >conftest.err 11849 rm -f conftest.er1 11850 cat conftest.err >&5 11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11852 (exit $ac_status); } && { 11853 test -z "$ac_c_werror_flag" || 11854 test ! -s conftest.err 11855 } && test -s conftest.$ac_objext; then 11856 : 11857else 11858 $as_echo "$as_me: failed program was:" >&5 11859sed 's/^/| /' conftest.$ac_ext >&5 11860 11861 ac_cv_type_uint64_t=yes 11862fi 11863 11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11865else 11866 $as_echo "$as_me: failed program was:" >&5 11867sed 's/^/| /' conftest.$ac_ext >&5 11868 11869 11870fi 11871 11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11873fi 11874{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 11875$as_echo "$ac_cv_type_uint64_t" >&6; } 11876if test $ac_cv_type_uint64_t = yes; then 11877 11878cat >>confdefs.h <<_ACEOF 11879#define HAVE_UINT64_T 1 11880_ACEOF 11881 11882 11883fi 11884{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 11885$as_echo_n "checking for uintptr_t... " >&6; } 11886if test "${ac_cv_type_uintptr_t+set}" = set; then 11887 $as_echo_n "(cached) " >&6 11888else 11889 ac_cv_type_uintptr_t=no 11890cat >conftest.$ac_ext <<_ACEOF 11891/* confdefs.h. */ 11892_ACEOF 11893cat confdefs.h >>conftest.$ac_ext 11894cat >>conftest.$ac_ext <<_ACEOF 11895/* end confdefs.h. */ 11896$ac_includes_default 11897int 11898main () 11899{ 11900if (sizeof (uintptr_t)) 11901 return 0; 11902 ; 11903 return 0; 11904} 11905_ACEOF 11906rm -f conftest.$ac_objext 11907if { (ac_try="$ac_compile" 11908case "(($ac_try" in 11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11910 *) ac_try_echo=$ac_try;; 11911esac 11912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11913$as_echo "$ac_try_echo") >&5 11914 (eval "$ac_compile") 2>conftest.er1 11915 ac_status=$? 11916 grep -v '^ *+' conftest.er1 >conftest.err 11917 rm -f conftest.er1 11918 cat conftest.err >&5 11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11920 (exit $ac_status); } && { 11921 test -z "$ac_c_werror_flag" || 11922 test ! -s conftest.err 11923 } && test -s conftest.$ac_objext; then 11924 cat >conftest.$ac_ext <<_ACEOF 11925/* confdefs.h. */ 11926_ACEOF 11927cat confdefs.h >>conftest.$ac_ext 11928cat >>conftest.$ac_ext <<_ACEOF 11929/* end confdefs.h. */ 11930$ac_includes_default 11931int 11932main () 11933{ 11934if (sizeof ((uintptr_t))) 11935 return 0; 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940rm -f conftest.$ac_objext 11941if { (ac_try="$ac_compile" 11942case "(($ac_try" in 11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11944 *) ac_try_echo=$ac_try;; 11945esac 11946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11947$as_echo "$ac_try_echo") >&5 11948 (eval "$ac_compile") 2>conftest.er1 11949 ac_status=$? 11950 grep -v '^ *+' conftest.er1 >conftest.err 11951 rm -f conftest.er1 11952 cat conftest.err >&5 11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11954 (exit $ac_status); } && { 11955 test -z "$ac_c_werror_flag" || 11956 test ! -s conftest.err 11957 } && test -s conftest.$ac_objext; then 11958 : 11959else 11960 $as_echo "$as_me: failed program was:" >&5 11961sed 's/^/| /' conftest.$ac_ext >&5 11962 11963 ac_cv_type_uintptr_t=yes 11964fi 11965 11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11967else 11968 $as_echo "$as_me: failed program was:" >&5 11969sed 's/^/| /' conftest.$ac_ext >&5 11970 11971 11972fi 11973 11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11975fi 11976{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 11977$as_echo "$ac_cv_type_uintptr_t" >&6; } 11978if test $ac_cv_type_uintptr_t = yes; then 11979 11980cat >>confdefs.h <<_ACEOF 11981#define HAVE_UINTPTR_T 1 11982_ACEOF 11983 11984 11985fi 11986 11987 11988######### 11989# Check for needed/wanted headers 11990 11991 11992 11993 11994 11995for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 11996do 11997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12000$as_echo_n "checking for $ac_header... " >&6; } 12001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12002 $as_echo_n "(cached) " >&6 12003fi 12004ac_res=`eval 'as_val=${'$as_ac_Header'} 12005 $as_echo "$as_val"'` 12006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12007$as_echo "$ac_res" >&6; } 12008else 12009 # Is the header compilable? 12010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12011$as_echo_n "checking $ac_header usability... " >&6; } 12012cat >conftest.$ac_ext <<_ACEOF 12013/* confdefs.h. */ 12014_ACEOF 12015cat confdefs.h >>conftest.$ac_ext 12016cat >>conftest.$ac_ext <<_ACEOF 12017/* end confdefs.h. */ 12018$ac_includes_default 12019#include <$ac_header> 12020_ACEOF 12021rm -f conftest.$ac_objext 12022if { (ac_try="$ac_compile" 12023case "(($ac_try" in 12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12025 *) ac_try_echo=$ac_try;; 12026esac 12027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12028$as_echo "$ac_try_echo") >&5 12029 (eval "$ac_compile") 2>conftest.er1 12030 ac_status=$? 12031 grep -v '^ *+' conftest.er1 >conftest.err 12032 rm -f conftest.er1 12033 cat conftest.err >&5 12034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12035 (exit $ac_status); } && { 12036 test -z "$ac_c_werror_flag" || 12037 test ! -s conftest.err 12038 } && test -s conftest.$ac_objext; then 12039 ac_header_compiler=yes 12040else 12041 $as_echo "$as_me: failed program was:" >&5 12042sed 's/^/| /' conftest.$ac_ext >&5 12043 12044 ac_header_compiler=no 12045fi 12046 12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12049$as_echo "$ac_header_compiler" >&6; } 12050 12051# Is the header present? 12052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12053$as_echo_n "checking $ac_header presence... " >&6; } 12054cat >conftest.$ac_ext <<_ACEOF 12055/* confdefs.h. */ 12056_ACEOF 12057cat confdefs.h >>conftest.$ac_ext 12058cat >>conftest.$ac_ext <<_ACEOF 12059/* end confdefs.h. */ 12060#include <$ac_header> 12061_ACEOF 12062if { (ac_try="$ac_cpp conftest.$ac_ext" 12063case "(($ac_try" in 12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12065 *) ac_try_echo=$ac_try;; 12066esac 12067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12068$as_echo "$ac_try_echo") >&5 12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12070 ac_status=$? 12071 grep -v '^ *+' conftest.er1 >conftest.err 12072 rm -f conftest.er1 12073 cat conftest.err >&5 12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12075 (exit $ac_status); } >/dev/null && { 12076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12077 test ! -s conftest.err 12078 }; then 12079 ac_header_preproc=yes 12080else 12081 $as_echo "$as_me: failed program was:" >&5 12082sed 's/^/| /' conftest.$ac_ext >&5 12083 12084 ac_header_preproc=no 12085fi 12086 12087rm -f conftest.err conftest.$ac_ext 12088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12089$as_echo "$ac_header_preproc" >&6; } 12090 12091# So? What about this header? 12092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12093 yes:no: ) 12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12098 ac_header_preproc=yes 12099 ;; 12100 no:yes:* ) 12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12104$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12108$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12113 12114 ;; 12115esac 12116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12117$as_echo_n "checking for $ac_header... " >&6; } 12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12119 $as_echo_n "(cached) " >&6 12120else 12121 eval "$as_ac_Header=\$ac_header_preproc" 12122fi 12123ac_res=`eval 'as_val=${'$as_ac_Header'} 12124 $as_echo "$as_val"'` 12125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12126$as_echo "$ac_res" >&6; } 12127 12128fi 12129if test `eval 'as_val=${'$as_ac_Header'} 12130 $as_echo "$as_val"'` = yes; then 12131 cat >>confdefs.h <<_ACEOF 12132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12133_ACEOF 12134 12135fi 12136 12137done 12138 12139 12140######### 12141# Figure out whether or not we have these functions 12142# 12143 12144 12145 12146 12147 12148 12149 12150for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size 12151do 12152as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12153{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12154$as_echo_n "checking for $ac_func... " >&6; } 12155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12156 $as_echo_n "(cached) " >&6 12157else 12158 cat >conftest.$ac_ext <<_ACEOF 12159/* confdefs.h. */ 12160_ACEOF 12161cat confdefs.h >>conftest.$ac_ext 12162cat >>conftest.$ac_ext <<_ACEOF 12163/* end confdefs.h. */ 12164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12165 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12166#define $ac_func innocuous_$ac_func 12167 12168/* System header to define __stub macros and hopefully few prototypes, 12169 which can conflict with char $ac_func (); below. 12170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12171 <limits.h> exists even on freestanding compilers. */ 12172 12173#ifdef __STDC__ 12174# include <limits.h> 12175#else 12176# include <assert.h> 12177#endif 12178 12179#undef $ac_func 12180 12181/* Override any GCC internal prototype to avoid an error. 12182 Use char because int might match the return type of a GCC 12183 builtin and then its argument prototype would still apply. */ 12184#ifdef __cplusplus 12185extern "C" 12186#endif 12187char $ac_func (); 12188/* The GNU C library defines this for functions which it implements 12189 to always fail with ENOSYS. Some functions are actually named 12190 something starting with __ and the normal name is an alias. */ 12191#if defined __stub_$ac_func || defined __stub___$ac_func 12192choke me 12193#endif 12194 12195int 12196main () 12197{ 12198return $ac_func (); 12199 ; 12200 return 0; 12201} 12202_ACEOF 12203rm -f conftest.$ac_objext conftest$ac_exeext 12204if { (ac_try="$ac_link" 12205case "(($ac_try" in 12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12207 *) ac_try_echo=$ac_try;; 12208esac 12209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12210$as_echo "$ac_try_echo") >&5 12211 (eval "$ac_link") 2>conftest.er1 12212 ac_status=$? 12213 grep -v '^ *+' conftest.er1 >conftest.err 12214 rm -f conftest.er1 12215 cat conftest.err >&5 12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12217 (exit $ac_status); } && { 12218 test -z "$ac_c_werror_flag" || 12219 test ! -s conftest.err 12220 } && test -s conftest$ac_exeext && { 12221 test "$cross_compiling" = yes || 12222 $as_test_x conftest$ac_exeext 12223 }; then 12224 eval "$as_ac_var=yes" 12225else 12226 $as_echo "$as_me: failed program was:" >&5 12227sed 's/^/| /' conftest.$ac_ext >&5 12228 12229 eval "$as_ac_var=no" 12230fi 12231 12232rm -rf conftest.dSYM 12233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12234 conftest$ac_exeext conftest.$ac_ext 12235fi 12236ac_res=`eval 'as_val=${'$as_ac_var'} 12237 $as_echo "$as_val"'` 12238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12239$as_echo "$ac_res" >&6; } 12240if test `eval 'as_val=${'$as_ac_var'} 12241 $as_echo "$as_val"'` = yes; then 12242 cat >>confdefs.h <<_ACEOF 12243#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12244_ACEOF 12245 12246fi 12247done 12248 12249 12250######### 12251# By default, we use the amalgamation (this may be changed below...) 12252# 12253USE_AMALGAMATION=1 12254 12255######### 12256# See whether we can run specific tclsh versions known to work well; 12257# if not, then we fall back to plain tclsh. 12258# TODO: try other versions before falling back? 12259# 12260for ac_prog in tclsh8.5 tclsh 12261do 12262 # Extract the first word of "$ac_prog", so it can be a program name with args. 12263set dummy $ac_prog; ac_word=$2 12264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12265$as_echo_n "checking for $ac_word... " >&6; } 12266if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then 12267 $as_echo_n "(cached) " >&6 12268else 12269 if test -n "$TCLSH_CMD"; then 12270 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 12271else 12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12273for as_dir in $PATH 12274do 12275 IFS=$as_save_IFS 12276 test -z "$as_dir" && as_dir=. 12277 for ac_exec_ext in '' $ac_executable_extensions; do 12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12279 ac_cv_prog_TCLSH_CMD="$ac_prog" 12280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12281 break 2 12282 fi 12283done 12284done 12285IFS=$as_save_IFS 12286 12287fi 12288fi 12289TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 12290if test -n "$TCLSH_CMD"; then 12291 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 12292$as_echo "$TCLSH_CMD" >&6; } 12293else 12294 { $as_echo "$as_me:$LINENO: result: no" >&5 12295$as_echo "no" >&6; } 12296fi 12297 12298 12299 test -n "$TCLSH_CMD" && break 12300done 12301test -n "$TCLSH_CMD" || TCLSH_CMD="none" 12302 12303if test "$TCLSH_CMD" = "none"; then 12304 # If we can't find a local tclsh, then building the amalgamation will fail. 12305 # We act as though --disable-amalgamation has been used. 12306 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 12307 USE_AMALGAMATION=0 12308 TCLSH_CMD="tclsh" 12309fi 12310 12311 12312 12313if test "x${TCLLIBDIR+set}" != "xset" ; then 12314 TCLLIBDIR='$(libdir)' 12315 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 12316 TCLLIBDIR=$i 12317 break 12318 done 12319 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 12320fi 12321 12322 12323######### 12324# Set up an appropriate program prefix 12325# 12326if test "$program_prefix" = "NONE"; then 12327 program_prefix="" 12328fi 12329 12330 12331VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 12332{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5 12333$as_echo "$as_me: Version set to $VERSION" >&6;} 12334 12335RELEASE=`cat $srcdir/VERSION` 12336{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5 12337$as_echo "$as_me: Release set to $RELEASE" >&6;} 12338 12339VERSION_NUMBER=`cat $srcdir/VERSION \ 12340 | sed 's/[^0-9]/ /g' \ 12341 | awk '{printf "%d%03d%03d",$1,$2,$3}'` 12342{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5 12343$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} 12344 12345 12346######### 12347# Check to see if the --with-hints=FILE option is used. If there is none, 12348# then check for a files named "$host.hints" and ../$hosts.hints where 12349# $host is the hostname of the build system. If still no hints are 12350# found, try looking in $system.hints and ../$system.hints where 12351# $system is the result of uname -s. 12352# 12353 12354# Check whether --with-hints was given. 12355if test "${with_hints+set}" = set; then 12356 withval=$with_hints; hints=$withval 12357fi 12358 12359if test "$hints" = ""; then 12360 host=`hostname | sed 's/\..*//'` 12361 if test -r $host.hints; then 12362 hints=$host.hints 12363 else 12364 if test -r ../$host.hints; then 12365 hints=../$host.hints 12366 fi 12367 fi 12368fi 12369if test "$hints" = ""; then 12370 sys=`uname -s` 12371 if test -r $sys.hints; then 12372 hints=$sys.hints 12373 else 12374 if test -r ../$sys.hints; then 12375 hints=../$sys.hints 12376 fi 12377 fi 12378fi 12379if test "$hints" != ""; then 12380 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5 12381$as_echo "reading hints from $hints" >&6; } 12382 . $hints 12383fi 12384 12385######### 12386# Locate a compiler for the build machine. This compiler should 12387# generate command-line programs that run on the build machine. 12388# 12389if test x"$cross_compiling" = xno; then 12390 BUILD_CC=$CC 12391 BUILD_CFLAGS=$CFLAGS 12392else 12393 if test "${BUILD_CC+set}" != set; then 12394 for ac_prog in gcc cc cl 12395do 12396 # Extract the first word of "$ac_prog", so it can be a program name with args. 12397set dummy $ac_prog; ac_word=$2 12398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12399$as_echo_n "checking for $ac_word... " >&6; } 12400if test "${ac_cv_prog_BUILD_CC+set}" = set; then 12401 $as_echo_n "(cached) " >&6 12402else 12403 if test -n "$BUILD_CC"; then 12404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 12405else 12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12407for as_dir in $PATH 12408do 12409 IFS=$as_save_IFS 12410 test -z "$as_dir" && as_dir=. 12411 for ac_exec_ext in '' $ac_executable_extensions; do 12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12413 ac_cv_prog_BUILD_CC="$ac_prog" 12414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12415 break 2 12416 fi 12417done 12418done 12419IFS=$as_save_IFS 12420 12421fi 12422fi 12423BUILD_CC=$ac_cv_prog_BUILD_CC 12424if test -n "$BUILD_CC"; then 12425 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 12426$as_echo "$BUILD_CC" >&6; } 12427else 12428 { $as_echo "$as_me:$LINENO: result: no" >&5 12429$as_echo "no" >&6; } 12430fi 12431 12432 12433 test -n "$BUILD_CC" && break 12434done 12435 12436 fi 12437 if test "${BUILD_CFLAGS+set}" != set; then 12438 BUILD_CFLAGS="-g" 12439 fi 12440fi 12441 12442 12443########## 12444# Do we want to support multithreaded use of sqlite 12445# 12446# Check whether --enable-threadsafe was given. 12447if test "${enable_threadsafe+set}" = set; then 12448 enableval=$enable_threadsafe; 12449else 12450 enable_threadsafe=yes 12451fi 12452 12453{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 12454$as_echo_n "checking whether to support threadsafe operation... " >&6; } 12455if test "$enable_threadsafe" = "no"; then 12456 SQLITE_THREADSAFE=0 12457 { $as_echo "$as_me:$LINENO: result: no" >&5 12458$as_echo "no" >&6; } 12459else 12460 SQLITE_THREADSAFE=1 12461 { $as_echo "$as_me:$LINENO: result: yes" >&5 12462$as_echo "yes" >&6; } 12463fi 12464 12465 12466if test "$SQLITE_THREADSAFE" = "1"; then 12467 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 12468$as_echo_n "checking for library containing pthread_create... " >&6; } 12469if test "${ac_cv_search_pthread_create+set}" = set; then 12470 $as_echo_n "(cached) " >&6 12471else 12472 ac_func_search_save_LIBS=$LIBS 12473cat >conftest.$ac_ext <<_ACEOF 12474/* confdefs.h. */ 12475_ACEOF 12476cat confdefs.h >>conftest.$ac_ext 12477cat >>conftest.$ac_ext <<_ACEOF 12478/* end confdefs.h. */ 12479 12480/* Override any GCC internal prototype to avoid an error. 12481 Use char because int might match the return type of a GCC 12482 builtin and then its argument prototype would still apply. */ 12483#ifdef __cplusplus 12484extern "C" 12485#endif 12486char pthread_create (); 12487int 12488main () 12489{ 12490return pthread_create (); 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495for ac_lib in '' pthread; do 12496 if test -z "$ac_lib"; then 12497 ac_res="none required" 12498 else 12499 ac_res=-l$ac_lib 12500 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12501 fi 12502 rm -f conftest.$ac_objext conftest$ac_exeext 12503if { (ac_try="$ac_link" 12504case "(($ac_try" in 12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12506 *) ac_try_echo=$ac_try;; 12507esac 12508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12509$as_echo "$ac_try_echo") >&5 12510 (eval "$ac_link") 2>conftest.er1 12511 ac_status=$? 12512 grep -v '^ *+' conftest.er1 >conftest.err 12513 rm -f conftest.er1 12514 cat conftest.err >&5 12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); } && { 12517 test -z "$ac_c_werror_flag" || 12518 test ! -s conftest.err 12519 } && test -s conftest$ac_exeext && { 12520 test "$cross_compiling" = yes || 12521 $as_test_x conftest$ac_exeext 12522 }; then 12523 ac_cv_search_pthread_create=$ac_res 12524else 12525 $as_echo "$as_me: failed program was:" >&5 12526sed 's/^/| /' conftest.$ac_ext >&5 12527 12528 12529fi 12530 12531rm -rf conftest.dSYM 12532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12533 conftest$ac_exeext 12534 if test "${ac_cv_search_pthread_create+set}" = set; then 12535 break 12536fi 12537done 12538if test "${ac_cv_search_pthread_create+set}" = set; then 12539 : 12540else 12541 ac_cv_search_pthread_create=no 12542fi 12543rm conftest.$ac_ext 12544LIBS=$ac_func_search_save_LIBS 12545fi 12546{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 12547$as_echo "$ac_cv_search_pthread_create" >&6; } 12548ac_res=$ac_cv_search_pthread_create 12549if test "$ac_res" != no; then 12550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12551 12552fi 12553 12554fi 12555 12556########## 12557# Do we want to allow a connection created in one thread to be used 12558# in another thread. This does not work on many Linux systems (ex: RedHat 9) 12559# due to bugs in the threading implementations. This is thus off by default. 12560# 12561# Check whether --enable-cross-thread-connections was given. 12562if test "${enable_cross_thread_connections+set}" = set; then 12563 enableval=$enable_cross_thread_connections; 12564else 12565 enable_xthreadconnect=no 12566fi 12567 12568{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 12569$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; } 12570if test "$enable_xthreadconnect" = "no"; then 12571 XTHREADCONNECT='' 12572 { $as_echo "$as_me:$LINENO: result: no" >&5 12573$as_echo "no" >&6; } 12574else 12575 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' 12576 { $as_echo "$as_me:$LINENO: result: yes" >&5 12577$as_echo "yes" >&6; } 12578fi 12579 12580 12581########## 12582# Do we want to support release 12583# 12584# Check whether --enable-releasemode was given. 12585if test "${enable_releasemode+set}" = set; then 12586 enableval=$enable_releasemode; 12587else 12588 enable_releasemode=no 12589fi 12590 12591{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 12592$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 12593if test "$enable_releasemode" = "no"; then 12594 ALLOWRELEASE="" 12595 { $as_echo "$as_me:$LINENO: result: no" >&5 12596$as_echo "no" >&6; } 12597else 12598 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 12599 { $as_echo "$as_me:$LINENO: result: yes" >&5 12600$as_echo "yes" >&6; } 12601fi 12602 12603 12604########## 12605# Do we want temporary databases in memory 12606# 12607# Check whether --enable-tempstore was given. 12608if test "${enable_tempstore+set}" = set; then 12609 enableval=$enable_tempstore; 12610else 12611 enable_tempstore=no 12612fi 12613 12614{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 12615$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 12616case "$enable_tempstore" in 12617 never ) 12618 TEMP_STORE=0 12619 { $as_echo "$as_me:$LINENO: result: never" >&5 12620$as_echo "never" >&6; } 12621 ;; 12622 no ) 12623 TEMP_STORE=1 12624 { $as_echo "$as_me:$LINENO: result: no" >&5 12625$as_echo "no" >&6; } 12626 ;; 12627 yes ) 12628 TEMP_STORE=2 12629 { $as_echo "$as_me:$LINENO: result: yes" >&5 12630$as_echo "yes" >&6; } 12631 ;; 12632 always ) 12633 TEMP_STORE=3 12634 { $as_echo "$as_me:$LINENO: result: always" >&5 12635$as_echo "always" >&6; } 12636 ;; 12637 * ) 12638 TEMP_STORE=1 12639 { $as_echo "$as_me:$LINENO: result: no" >&5 12640$as_echo "no" >&6; } 12641 ;; 12642esac 12643 12644 12645 12646########### 12647# Lots of things are different if we are compiling for Windows using 12648# the CYGWIN environment. So check for that special case and handle 12649# things accordingly. 12650# 12651{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 12652$as_echo_n "checking if executables have the .exe suffix... " >&6; } 12653if test "$config_BUILD_EXEEXT" = ".exe"; then 12654 CYGWIN=yes 12655 { $as_echo "$as_me:$LINENO: result: yes" >&5 12656$as_echo "yes" >&6; } 12657else 12658 { $as_echo "$as_me:$LINENO: result: unknown" >&5 12659$as_echo "unknown" >&6; } 12660fi 12661if test "$CYGWIN" != "yes"; then 12662 { $as_echo "$as_me:$LINENO: checking host system type" >&5 12663$as_echo_n "checking host system type... " >&6; } 12664if test "${ac_cv_host+set}" = set; then 12665 $as_echo_n "(cached) " >&6 12666else 12667 if test "x$host_alias" = x; then 12668 ac_cv_host=$ac_cv_build 12669else 12670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 12671 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 12672$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 12673 { (exit 1); exit 1; }; } 12674fi 12675 12676fi 12677{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 12678$as_echo "$ac_cv_host" >&6; } 12679case $ac_cv_host in 12680*-*-*) ;; 12681*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 12682$as_echo "$as_me: error: invalid value of canonical host" >&2;} 12683 { (exit 1); exit 1; }; };; 12684esac 12685host=$ac_cv_host 12686ac_save_IFS=$IFS; IFS='-' 12687set x $ac_cv_host 12688shift 12689host_cpu=$1 12690host_vendor=$2 12691shift; shift 12692# Remember, the first character of IFS is used to create $*, 12693# except with old shells: 12694host_os=$* 12695IFS=$ac_save_IFS 12696case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 12697 12698 12699case $host_os in 12700 *cygwin* ) CYGWIN=yes;; 12701 * ) CYGWIN=no;; 12702esac 12703 12704fi 12705if test "$CYGWIN" = "yes"; then 12706 BUILD_EXEEXT=.exe 12707else 12708 BUILD_EXEEXT=$EXEEXT 12709fi 12710if test x"$cross_compiling" = xno; then 12711 TARGET_EXEEXT=$BUILD_EXEEXT 12712else 12713 TARGET_EXEEXT=$config_TARGET_EXEEXT 12714fi 12715if test "$TARGET_EXEEXT" = ".exe"; then 12716 if test $OS2_SHELL ; then 12717 SQLITE_OS_UNIX=0 12718 SQLITE_OS_WIN=0 12719 SQLITE_OS_OS2=1 12720 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1" 12721 else 12722 SQLITE_OS_UNIX=0 12723 SQLITE_OS_WIN=1 12724 SQLITE_OS_OS2=0 12725 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 12726 fi 12727else 12728 SQLITE_OS_UNIX=1 12729 SQLITE_OS_WIN=0 12730 SQLITE_OS_OS2=0 12731 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 12732fi 12733 12734 12735 12736 12737 12738 12739 12740########## 12741# Figure out all the parameters needed to compile against Tcl. 12742# 12743# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 12744# macros in the in the tcl.m4 file of the standard TCL distribution. 12745# Those macros could not be used directly since we have to make some 12746# minor changes to accomodate systems that do not have TCL installed. 12747# 12748# Check whether --enable-tcl was given. 12749if test "${enable_tcl+set}" = set; then 12750 enableval=$enable_tcl; use_tcl=$enableval 12751else 12752 use_tcl=yes 12753fi 12754 12755if test "${use_tcl}" = "yes" ; then 12756 12757# Check whether --with-tcl was given. 12758if test "${with_tcl+set}" = set; then 12759 withval=$with_tcl; with_tclconfig=${withval} 12760fi 12761 12762 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 12763$as_echo_n "checking for Tcl configuration... " >&6; } 12764 if test "${ac_cv_c_tclconfig+set}" = set; then 12765 $as_echo_n "(cached) " >&6 12766else 12767 12768 # First check to see if --with-tcl was specified. 12769 if test x"${with_tclconfig}" != x ; then 12770 if test -f "${with_tclconfig}/tclConfig.sh" ; then 12771 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 12772 else 12773 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 12774$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 12775 { (exit 1); exit 1; }; } 12776 fi 12777 fi 12778 12779 # Start autosearch by asking tclsh 12780 if test x"${ac_cv_c_tclconfig}" = x ; then 12781 if test x"$cross_compiling" = xno; then 12782 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 12783 do 12784 if test -f "$i/tclConfig.sh" ; then 12785 ac_cv_c_tclconfig="$i" 12786 break 12787 fi 12788 done 12789 fi 12790 fi 12791 12792 # then check for a private Tcl installation 12793 if test x"${ac_cv_c_tclconfig}" = x ; then 12794 for i in \ 12795 ../tcl \ 12796 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12797 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 12798 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 12799 ../../tcl \ 12800 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12801 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 12802 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 12803 ../../../tcl \ 12804 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12805 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 12806 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 12807 do 12808 if test -f "$i/unix/tclConfig.sh" ; then 12809 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12810 break 12811 fi 12812 done 12813 fi 12814 12815 # check in a few common install locations 12816 if test x"${ac_cv_c_tclconfig}" = x ; then 12817 for i in \ 12818 `ls -d ${libdir} 2>/dev/null` \ 12819 `ls -d /usr/local/lib 2>/dev/null` \ 12820 `ls -d /usr/contrib/lib 2>/dev/null` \ 12821 `ls -d /usr/lib 2>/dev/null` 12822 do 12823 if test -f "$i/tclConfig.sh" ; then 12824 ac_cv_c_tclconfig=`(cd $i; pwd)` 12825 break 12826 fi 12827 done 12828 fi 12829 12830 # check in a few other private locations 12831 if test x"${ac_cv_c_tclconfig}" = x ; then 12832 for i in \ 12833 ${srcdir}/../tcl \ 12834 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 12835 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 12836 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 12837 do 12838 if test -f "$i/unix/tclConfig.sh" ; then 12839 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 12840 break 12841 fi 12842 done 12843 fi 12844 12845fi 12846 12847 12848 if test x"${ac_cv_c_tclconfig}" = x ; then 12849 use_tcl=no 12850 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 12851$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 12852 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 12853$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 12854 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 12855$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 12856 else 12857 TCL_BIN_DIR=${ac_cv_c_tclconfig} 12858 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 12859$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 12860 12861 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 12862$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 12863 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 12864 { $as_echo "$as_me:$LINENO: result: loading" >&5 12865$as_echo "loading" >&6; } 12866 . $TCL_BIN_DIR/tclConfig.sh 12867 else 12868 { $as_echo "$as_me:$LINENO: result: file not found" >&5 12869$as_echo "file not found" >&6; } 12870 fi 12871 12872 # 12873 # If the TCL_BIN_DIR is the build directory (not the install directory), 12874 # then set the common variable name to the value of the build variables. 12875 # For example, the variable TCL_LIB_SPEC will be set to the value 12876 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 12877 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 12878 # installed and uninstalled version of Tcl. 12879 # 12880 12881 if test -f $TCL_BIN_DIR/Makefile ; then 12882 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 12883 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 12884 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 12885 fi 12886 12887 # 12888 # eval is required to do the TCL_DBGX substitution 12889 # 12890 12891 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 12892 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 12893 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 12894 12895 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 12896 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 12897 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 fi 12912fi 12913if test "${use_tcl}" = "no" ; then 12914 HAVE_TCL="" 12915else 12916 HAVE_TCL=1 12917fi 12918 12919 12920########## 12921# Figure out what C libraries are required to compile programs 12922# that use "readline()" library. 12923# 12924TARGET_READLINE_LIBS="" 12925TARGET_READLINE_INC="" 12926TARGET_HAVE_READLINE=0 12927# Check whether --enable-readline was given. 12928if test "${enable_readline+set}" = set; then 12929 enableval=$enable_readline; with_readline=$enableval 12930else 12931 with_readline=auto 12932fi 12933 12934 12935if test x"$with_readline" != xno; then 12936 found="yes" 12937 12938 12939# Check whether --with-readline-lib was given. 12940if test "${with_readline_lib+set}" = set; then 12941 withval=$with_readline_lib; with_readline_lib=$withval 12942else 12943 with_readline_lib="auto" 12944fi 12945 12946 if test "x$with_readline_lib" = xauto; then 12947 save_LIBS="$LIBS" 12948 LIBS="" 12949 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 12950$as_echo_n "checking for library containing tgetent... " >&6; } 12951if test "${ac_cv_search_tgetent+set}" = set; then 12952 $as_echo_n "(cached) " >&6 12953else 12954 ac_func_search_save_LIBS=$LIBS 12955cat >conftest.$ac_ext <<_ACEOF 12956/* confdefs.h. */ 12957_ACEOF 12958cat confdefs.h >>conftest.$ac_ext 12959cat >>conftest.$ac_ext <<_ACEOF 12960/* end confdefs.h. */ 12961 12962/* Override any GCC internal prototype to avoid an error. 12963 Use char because int might match the return type of a GCC 12964 builtin and then its argument prototype would still apply. */ 12965#ifdef __cplusplus 12966extern "C" 12967#endif 12968char tgetent (); 12969int 12970main () 12971{ 12972return tgetent (); 12973 ; 12974 return 0; 12975} 12976_ACEOF 12977for ac_lib in '' readline ncurses curses termcap; do 12978 if test -z "$ac_lib"; then 12979 ac_res="none required" 12980 else 12981 ac_res=-l$ac_lib 12982 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12983 fi 12984 rm -f conftest.$ac_objext conftest$ac_exeext 12985if { (ac_try="$ac_link" 12986case "(($ac_try" in 12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12988 *) ac_try_echo=$ac_try;; 12989esac 12990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12991$as_echo "$ac_try_echo") >&5 12992 (eval "$ac_link") 2>conftest.er1 12993 ac_status=$? 12994 grep -v '^ *+' conftest.er1 >conftest.err 12995 rm -f conftest.er1 12996 cat conftest.err >&5 12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12998 (exit $ac_status); } && { 12999 test -z "$ac_c_werror_flag" || 13000 test ! -s conftest.err 13001 } && test -s conftest$ac_exeext && { 13002 test "$cross_compiling" = yes || 13003 $as_test_x conftest$ac_exeext 13004 }; then 13005 ac_cv_search_tgetent=$ac_res 13006else 13007 $as_echo "$as_me: failed program was:" >&5 13008sed 's/^/| /' conftest.$ac_ext >&5 13009 13010 13011fi 13012 13013rm -rf conftest.dSYM 13014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13015 conftest$ac_exeext 13016 if test "${ac_cv_search_tgetent+set}" = set; then 13017 break 13018fi 13019done 13020if test "${ac_cv_search_tgetent+set}" = set; then 13021 : 13022else 13023 ac_cv_search_tgetent=no 13024fi 13025rm conftest.$ac_ext 13026LIBS=$ac_func_search_save_LIBS 13027fi 13028{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 13029$as_echo "$ac_cv_search_tgetent" >&6; } 13030ac_res=$ac_cv_search_tgetent 13031if test "$ac_res" != no; then 13032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13033 term_LIBS="$LIBS" 13034else 13035 term_LIBS="" 13036fi 13037 13038 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 13039$as_echo_n "checking for readline in -lreadline... " >&6; } 13040if test "${ac_cv_lib_readline_readline+set}" = set; then 13041 $as_echo_n "(cached) " >&6 13042else 13043 ac_check_lib_save_LIBS=$LIBS 13044LIBS="-lreadline $LIBS" 13045cat >conftest.$ac_ext <<_ACEOF 13046/* confdefs.h. */ 13047_ACEOF 13048cat confdefs.h >>conftest.$ac_ext 13049cat >>conftest.$ac_ext <<_ACEOF 13050/* end confdefs.h. */ 13051 13052/* Override any GCC internal prototype to avoid an error. 13053 Use char because int might match the return type of a GCC 13054 builtin and then its argument prototype would still apply. */ 13055#ifdef __cplusplus 13056extern "C" 13057#endif 13058char readline (); 13059int 13060main () 13061{ 13062return readline (); 13063 ; 13064 return 0; 13065} 13066_ACEOF 13067rm -f conftest.$ac_objext conftest$ac_exeext 13068if { (ac_try="$ac_link" 13069case "(($ac_try" in 13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13071 *) ac_try_echo=$ac_try;; 13072esac 13073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13074$as_echo "$ac_try_echo") >&5 13075 (eval "$ac_link") 2>conftest.er1 13076 ac_status=$? 13077 grep -v '^ *+' conftest.er1 >conftest.err 13078 rm -f conftest.er1 13079 cat conftest.err >&5 13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } && { 13082 test -z "$ac_c_werror_flag" || 13083 test ! -s conftest.err 13084 } && test -s conftest$ac_exeext && { 13085 test "$cross_compiling" = yes || 13086 $as_test_x conftest$ac_exeext 13087 }; then 13088 ac_cv_lib_readline_readline=yes 13089else 13090 $as_echo "$as_me: failed program was:" >&5 13091sed 's/^/| /' conftest.$ac_ext >&5 13092 13093 ac_cv_lib_readline_readline=no 13094fi 13095 13096rm -rf conftest.dSYM 13097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13098 conftest$ac_exeext conftest.$ac_ext 13099LIBS=$ac_check_lib_save_LIBS 13100fi 13101{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 13102$as_echo "$ac_cv_lib_readline_readline" >&6; } 13103if test $ac_cv_lib_readline_readline = yes; then 13104 TARGET_READLINE_LIBS="-lreadline" 13105else 13106 found="no" 13107fi 13108 13109 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 13110 LIBS="$save_LIBS" 13111 else 13112 TARGET_READLINE_LIBS="$with_readline_lib" 13113 fi 13114 13115 13116# Check whether --with-readline-inc was given. 13117if test "${with_readline_inc+set}" = set; then 13118 withval=$with_readline_inc; with_readline_inc=$withval 13119else 13120 with_readline_inc="auto" 13121fi 13122 13123 if test "x$with_readline_inc" = xauto; then 13124 if test "${ac_cv_header_readline_h+set}" = set; then 13125 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13126$as_echo_n "checking for readline.h... " >&6; } 13127if test "${ac_cv_header_readline_h+set}" = set; then 13128 $as_echo_n "(cached) " >&6 13129fi 13130{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13131$as_echo "$ac_cv_header_readline_h" >&6; } 13132else 13133 # Is the header compilable? 13134{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5 13135$as_echo_n "checking readline.h usability... " >&6; } 13136cat >conftest.$ac_ext <<_ACEOF 13137/* confdefs.h. */ 13138_ACEOF 13139cat confdefs.h >>conftest.$ac_ext 13140cat >>conftest.$ac_ext <<_ACEOF 13141/* end confdefs.h. */ 13142$ac_includes_default 13143#include <readline.h> 13144_ACEOF 13145rm -f conftest.$ac_objext 13146if { (ac_try="$ac_compile" 13147case "(($ac_try" in 13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13149 *) ac_try_echo=$ac_try;; 13150esac 13151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13152$as_echo "$ac_try_echo") >&5 13153 (eval "$ac_compile") 2>conftest.er1 13154 ac_status=$? 13155 grep -v '^ *+' conftest.er1 >conftest.err 13156 rm -f conftest.er1 13157 cat conftest.err >&5 13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13159 (exit $ac_status); } && { 13160 test -z "$ac_c_werror_flag" || 13161 test ! -s conftest.err 13162 } && test -s conftest.$ac_objext; then 13163 ac_header_compiler=yes 13164else 13165 $as_echo "$as_me: failed program was:" >&5 13166sed 's/^/| /' conftest.$ac_ext >&5 13167 13168 ac_header_compiler=no 13169fi 13170 13171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13172{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13173$as_echo "$ac_header_compiler" >&6; } 13174 13175# Is the header present? 13176{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5 13177$as_echo_n "checking readline.h presence... " >&6; } 13178cat >conftest.$ac_ext <<_ACEOF 13179/* confdefs.h. */ 13180_ACEOF 13181cat confdefs.h >>conftest.$ac_ext 13182cat >>conftest.$ac_ext <<_ACEOF 13183/* end confdefs.h. */ 13184#include <readline.h> 13185_ACEOF 13186if { (ac_try="$ac_cpp conftest.$ac_ext" 13187case "(($ac_try" in 13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13189 *) ac_try_echo=$ac_try;; 13190esac 13191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13192$as_echo "$ac_try_echo") >&5 13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13194 ac_status=$? 13195 grep -v '^ *+' conftest.er1 >conftest.err 13196 rm -f conftest.er1 13197 cat conftest.err >&5 13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13199 (exit $ac_status); } >/dev/null && { 13200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13201 test ! -s conftest.err 13202 }; then 13203 ac_header_preproc=yes 13204else 13205 $as_echo "$as_me: failed program was:" >&5 13206sed 's/^/| /' conftest.$ac_ext >&5 13207 13208 ac_header_preproc=no 13209fi 13210 13211rm -f conftest.err conftest.$ac_ext 13212{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13213$as_echo "$ac_header_preproc" >&6; } 13214 13215# So? What about this header? 13216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13217 yes:no: ) 13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 13219$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 13221$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} 13222 ac_header_preproc=yes 13223 ;; 13224 no:yes:* ) 13225 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 13226$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} 13227 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 13228$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} 13229 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 13230$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} 13231 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 13232$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 13233 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 13234$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} 13235 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 13236$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} 13237 13238 ;; 13239esac 13240{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5 13241$as_echo_n "checking for readline.h... " >&6; } 13242if test "${ac_cv_header_readline_h+set}" = set; then 13243 $as_echo_n "(cached) " >&6 13244else 13245 ac_cv_header_readline_h=$ac_header_preproc 13246fi 13247{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 13248$as_echo "$ac_cv_header_readline_h" >&6; } 13249 13250fi 13251if test $ac_cv_header_readline_h = yes; then 13252 found="yes" 13253else 13254 13255 found="no" 13256 if test "$cross_compiling" != yes; then 13257 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 13258 for subdir in include include/readline; do 13259 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 13260{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 13261$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 13262if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 13263 $as_echo_n "(cached) " >&6 13264else 13265 test "$cross_compiling" = yes && 13266 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13267$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13268 { (exit 1); exit 1; }; } 13269if test -r "$dir/$subdir/readline.h"; then 13270 eval "$as_ac_File=yes" 13271else 13272 eval "$as_ac_File=no" 13273fi 13274fi 13275ac_res=`eval 'as_val=${'$as_ac_File'} 13276 $as_echo "$as_val"'` 13277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13278$as_echo "$ac_res" >&6; } 13279if test `eval 'as_val=${'$as_ac_File'} 13280 $as_echo "$as_val"'` = yes; then 13281 found=yes 13282fi 13283 13284 if test "$found" = "yes"; then 13285 TARGET_READLINE_INC="-I$dir/$subdir" 13286 break 13287 fi 13288 done 13289 test "$found" = "yes" && break 13290 done 13291 fi 13292 13293fi 13294 13295 13296 else 13297 TARGET_READLINE_INC="$with_readline_inc" 13298 fi 13299 13300 if test x"$found" = xno; then 13301 TARGET_READLINE_LIBS="" 13302 TARGET_READLINE_INC="" 13303 TARGET_HAVE_READLINE=0 13304 else 13305 TARGET_HAVE_READLINE=1 13306 fi 13307fi 13308 13309 13310 13311 13312 13313########## 13314# Figure out what C libraries are required to compile programs 13315# that use "fdatasync()" function. 13316# 13317{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 13318$as_echo_n "checking for library containing fdatasync... " >&6; } 13319if test "${ac_cv_search_fdatasync+set}" = set; then 13320 $as_echo_n "(cached) " >&6 13321else 13322 ac_func_search_save_LIBS=$LIBS 13323cat >conftest.$ac_ext <<_ACEOF 13324/* confdefs.h. */ 13325_ACEOF 13326cat confdefs.h >>conftest.$ac_ext 13327cat >>conftest.$ac_ext <<_ACEOF 13328/* end confdefs.h. */ 13329 13330/* Override any GCC internal prototype to avoid an error. 13331 Use char because int might match the return type of a GCC 13332 builtin and then its argument prototype would still apply. */ 13333#ifdef __cplusplus 13334extern "C" 13335#endif 13336char fdatasync (); 13337int 13338main () 13339{ 13340return fdatasync (); 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345for ac_lib in '' rt; do 13346 if test -z "$ac_lib"; then 13347 ac_res="none required" 13348 else 13349 ac_res=-l$ac_lib 13350 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13351 fi 13352 rm -f conftest.$ac_objext conftest$ac_exeext 13353if { (ac_try="$ac_link" 13354case "(($ac_try" in 13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13356 *) ac_try_echo=$ac_try;; 13357esac 13358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13359$as_echo "$ac_try_echo") >&5 13360 (eval "$ac_link") 2>conftest.er1 13361 ac_status=$? 13362 grep -v '^ *+' conftest.er1 >conftest.err 13363 rm -f conftest.er1 13364 cat conftest.err >&5 13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13366 (exit $ac_status); } && { 13367 test -z "$ac_c_werror_flag" || 13368 test ! -s conftest.err 13369 } && test -s conftest$ac_exeext && { 13370 test "$cross_compiling" = yes || 13371 $as_test_x conftest$ac_exeext 13372 }; then 13373 ac_cv_search_fdatasync=$ac_res 13374else 13375 $as_echo "$as_me: failed program was:" >&5 13376sed 's/^/| /' conftest.$ac_ext >&5 13377 13378 13379fi 13380 13381rm -rf conftest.dSYM 13382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13383 conftest$ac_exeext 13384 if test "${ac_cv_search_fdatasync+set}" = set; then 13385 break 13386fi 13387done 13388if test "${ac_cv_search_fdatasync+set}" = set; then 13389 : 13390else 13391 ac_cv_search_fdatasync=no 13392fi 13393rm conftest.$ac_ext 13394LIBS=$ac_func_search_save_LIBS 13395fi 13396{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 13397$as_echo "$ac_cv_search_fdatasync" >&6; } 13398ac_res=$ac_cv_search_fdatasync 13399if test "$ac_res" != no; then 13400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13401 13402fi 13403 13404 13405######### 13406# check for debug enabled 13407# Check whether --enable-debug was given. 13408if test "${enable_debug+set}" = set; then 13409 enableval=$enable_debug; use_debug=$enableval 13410else 13411 use_debug=no 13412fi 13413 13414if test "${use_debug}" = "yes" ; then 13415 TARGET_DEBUG="-DSQLITE_DEBUG=1" 13416else 13417 TARGET_DEBUG="-DNDEBUG" 13418fi 13419 13420 13421######### 13422# See whether we should use the amalgamation to build 13423# Check whether --enable-amalgamation was given. 13424if test "${enable_amalgamation+set}" = set; then 13425 enableval=$enable_amalgamation; use_amalgamation=$enableval 13426else 13427 use_amalgamation=yes 13428fi 13429 13430if test "${use_amalgamation}" != "yes" ; then 13431 USE_AMALGAMATION=0 13432fi 13433 13434 13435######### 13436# See whether we should allow loadable extensions 13437# Check whether --enable-load-extension was given. 13438if test "${enable_load_extension+set}" = set; then 13439 enableval=$enable_load_extension; use_loadextension=$enableval 13440else 13441 use_loadextension=no 13442fi 13443 13444if test "${use_loadextension}" = "yes" ; then 13445 OPT_FEATURE_FLAGS="" 13446 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13447$as_echo_n "checking for library containing dlopen... " >&6; } 13448if test "${ac_cv_search_dlopen+set}" = set; then 13449 $as_echo_n "(cached) " >&6 13450else 13451 ac_func_search_save_LIBS=$LIBS 13452cat >conftest.$ac_ext <<_ACEOF 13453/* confdefs.h. */ 13454_ACEOF 13455cat confdefs.h >>conftest.$ac_ext 13456cat >>conftest.$ac_ext <<_ACEOF 13457/* end confdefs.h. */ 13458 13459/* Override any GCC internal prototype to avoid an error. 13460 Use char because int might match the return type of a GCC 13461 builtin and then its argument prototype would still apply. */ 13462#ifdef __cplusplus 13463extern "C" 13464#endif 13465char dlopen (); 13466int 13467main () 13468{ 13469return dlopen (); 13470 ; 13471 return 0; 13472} 13473_ACEOF 13474for ac_lib in '' dl; do 13475 if test -z "$ac_lib"; then 13476 ac_res="none required" 13477 else 13478 ac_res=-l$ac_lib 13479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13480 fi 13481 rm -f conftest.$ac_objext conftest$ac_exeext 13482if { (ac_try="$ac_link" 13483case "(($ac_try" in 13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13485 *) ac_try_echo=$ac_try;; 13486esac 13487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13488$as_echo "$ac_try_echo") >&5 13489 (eval "$ac_link") 2>conftest.er1 13490 ac_status=$? 13491 grep -v '^ *+' conftest.er1 >conftest.err 13492 rm -f conftest.er1 13493 cat conftest.err >&5 13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); } && { 13496 test -z "$ac_c_werror_flag" || 13497 test ! -s conftest.err 13498 } && test -s conftest$ac_exeext && { 13499 test "$cross_compiling" = yes || 13500 $as_test_x conftest$ac_exeext 13501 }; then 13502 ac_cv_search_dlopen=$ac_res 13503else 13504 $as_echo "$as_me: failed program was:" >&5 13505sed 's/^/| /' conftest.$ac_ext >&5 13506 13507 13508fi 13509 13510rm -rf conftest.dSYM 13511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13512 conftest$ac_exeext 13513 if test "${ac_cv_search_dlopen+set}" = set; then 13514 break 13515fi 13516done 13517if test "${ac_cv_search_dlopen+set}" = set; then 13518 : 13519else 13520 ac_cv_search_dlopen=no 13521fi 13522rm conftest.$ac_ext 13523LIBS=$ac_func_search_save_LIBS 13524fi 13525{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13526$as_echo "$ac_cv_search_dlopen" >&6; } 13527ac_res=$ac_cv_search_dlopen 13528if test "$ac_res" != no; then 13529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13530 13531fi 13532 13533else 13534 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 13535fi 13536 13537######### 13538# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter 13539for option in $CFLAGS $CPPFLAGS 13540do 13541 case $option in 13542 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13543 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 13544 esac 13545done 13546 13547 13548 13549# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 13550ac_temp_CFLAGS="" 13551for option in $CFLAGS 13552do 13553 case $option in 13554 -DSQLITE_OMIT*) ;; 13555 -DSQLITE_ENABLE*) ;; 13556 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 13557 esac 13558done 13559CFLAGS=$ac_temp_CFLAGS 13560 13561 13562# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 13563ac_temp_CPPFLAGS="" 13564for option in $CPPFLAGS 13565do 13566 case $option in 13567 -DSQLITE_OMIT*) ;; 13568 -DSQLITE_ENABLE*) ;; 13569 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 13570 esac 13571done 13572CPPFLAGS=$ac_temp_CPPFLAGS 13573 13574 13575# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 13576ac_temp_BUILD_CFLAGS="" 13577for option in $BUILD_CFLAGS 13578do 13579 case $option in 13580 -DSQLITE_OMIT*) ;; 13581 -DSQLITE_ENABLE*) ;; 13582 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 13583 esac 13584done 13585BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 13586 13587 13588######### 13589# See whether we should use GCOV 13590# Check whether --enable-gcov was given. 13591if test "${enable_gcov+set}" = set; then 13592 enableval=$enable_gcov; use_gcov=$enableval 13593else 13594 use_gcov=no 13595fi 13596 13597if test "${use_gcov}" = "yes" ; then 13598 USE_GCOV=1 13599else 13600 USE_GCOV=0 13601fi 13602 13603 13604 13605######### 13606# Output the config header 13607ac_config_headers="$ac_config_headers config.h" 13608 13609 13610######### 13611# Generate the output files. 13612# 13613 13614ac_config_files="$ac_config_files Makefile sqlite3.pc" 13615 13616cat >confcache <<\_ACEOF 13617# This file is a shell script that caches the results of configure 13618# tests run on this system so they can be shared between configure 13619# scripts and configure runs, see configure's option --config-cache. 13620# It is not useful on other systems. If it contains results you don't 13621# want to keep, you may remove or edit it. 13622# 13623# config.status only pays attention to the cache file if you give it 13624# the --recheck option to rerun configure. 13625# 13626# `ac_cv_env_foo' variables (set or unset) will be overridden when 13627# loading this file, other *unset* `ac_cv_foo' will be assigned the 13628# following values. 13629 13630_ACEOF 13631 13632# The following way of writing the cache mishandles newlines in values, 13633# but we know of no workaround that is simple, portable, and efficient. 13634# So, we kill variables containing newlines. 13635# Ultrix sh set writes to stderr and can't be redirected directly, 13636# and sets the high bit in the cache file unless we assign to the vars. 13637( 13638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13639 eval ac_val=\$$ac_var 13640 case $ac_val in #( 13641 *${as_nl}*) 13642 case $ac_var in #( 13643 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13644$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13645 esac 13646 case $ac_var in #( 13647 _ | IFS | as_nl) ;; #( 13648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13649 *) $as_unset $ac_var ;; 13650 esac ;; 13651 esac 13652 done 13653 13654 (set) 2>&1 | 13655 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13656 *${as_nl}ac_space=\ *) 13657 # `set' does not quote correctly, so add quotes (double-quote 13658 # substitution turns \\\\ into \\, and sed turns \\ into \). 13659 sed -n \ 13660 "s/'/'\\\\''/g; 13661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13662 ;; #( 13663 *) 13664 # `set' quotes correctly as required by POSIX, so do not add quotes. 13665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13666 ;; 13667 esac | 13668 sort 13669) | 13670 sed ' 13671 /^ac_cv_env_/b end 13672 t clear 13673 :clear 13674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13675 t end 13676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13677 :end' >>confcache 13678if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13679 if test -w "$cache_file"; then 13680 test "x$cache_file" != "x/dev/null" && 13681 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13682$as_echo "$as_me: updating cache $cache_file" >&6;} 13683 cat confcache >$cache_file 13684 else 13685 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13686$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13687 fi 13688fi 13689rm -f confcache 13690 13691test "x$prefix" = xNONE && prefix=$ac_default_prefix 13692# Let make expand exec_prefix. 13693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13694 13695DEFS=-DHAVE_CONFIG_H 13696 13697ac_libobjs= 13698ac_ltlibobjs= 13699for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13700 # 1. Remove the extension, and $U if already installed. 13701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13704 # will be set to the directory where LIBOBJS objects are built. 13705 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13706 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13707done 13708LIBOBJS=$ac_libobjs 13709 13710LTLIBOBJS=$ac_ltlibobjs 13711 13712 13713 13714: ${CONFIG_STATUS=./config.status} 13715ac_write_fail=0 13716ac_clean_files_save=$ac_clean_files 13717ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13718{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13720cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13721#! $SHELL 13722# Generated by $as_me. 13723# Run this file to recreate the current configuration. 13724# Compiler output produced by configure, useful for debugging 13725# configure, is in config.log if it exists. 13726 13727debug=false 13728ac_cs_recheck=false 13729ac_cs_silent=false 13730SHELL=\${CONFIG_SHELL-$SHELL} 13731_ACEOF 13732 13733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13734## --------------------- ## 13735## M4sh Initialization. ## 13736## --------------------- ## 13737 13738# Be more Bourne compatible 13739DUALCASE=1; export DUALCASE # for MKS sh 13740if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13741 emulate sh 13742 NULLCMD=: 13743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13744 # is contrary to our usage. Disable this feature. 13745 alias -g '${1+"$@"}'='"$@"' 13746 setopt NO_GLOB_SUBST 13747else 13748 case `(set -o) 2>/dev/null` in 13749 *posix*) set -o posix ;; 13750esac 13751 13752fi 13753 13754 13755 13756 13757# PATH needs CR 13758# Avoid depending upon Character Ranges. 13759as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13761as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13762as_cr_digits='0123456789' 13763as_cr_alnum=$as_cr_Letters$as_cr_digits 13764 13765as_nl=' 13766' 13767export as_nl 13768# Printing a long string crashes Solaris 7 /usr/bin/printf. 13769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13772if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13773 as_echo='printf %s\n' 13774 as_echo_n='printf %s' 13775else 13776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13778 as_echo_n='/usr/ucb/echo -n' 13779 else 13780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13781 as_echo_n_body='eval 13782 arg=$1; 13783 case $arg in 13784 *"$as_nl"*) 13785 expr "X$arg" : "X\\(.*\\)$as_nl"; 13786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13787 esac; 13788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13789 ' 13790 export as_echo_n_body 13791 as_echo_n='sh -c $as_echo_n_body as_echo' 13792 fi 13793 export as_echo_body 13794 as_echo='sh -c $as_echo_body as_echo' 13795fi 13796 13797# The user is always right. 13798if test "${PATH_SEPARATOR+set}" != set; then 13799 PATH_SEPARATOR=: 13800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13802 PATH_SEPARATOR=';' 13803 } 13804fi 13805 13806# Support unset when possible. 13807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13808 as_unset=unset 13809else 13810 as_unset=false 13811fi 13812 13813 13814# IFS 13815# We need space, tab and new line, in precisely that order. Quoting is 13816# there to prevent editors from complaining about space-tab. 13817# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13818# splitting by setting IFS to empty value.) 13819IFS=" "" $as_nl" 13820 13821# Find who we are. Look in the path if we contain no directory separator. 13822case $0 in 13823 *[\\/]* ) as_myself=$0 ;; 13824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13825for as_dir in $PATH 13826do 13827 IFS=$as_save_IFS 13828 test -z "$as_dir" && as_dir=. 13829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13830done 13831IFS=$as_save_IFS 13832 13833 ;; 13834esac 13835# We did not find ourselves, most probably we were run as `sh COMMAND' 13836# in which case we are not to be found in the path. 13837if test "x$as_myself" = x; then 13838 as_myself=$0 13839fi 13840if test ! -f "$as_myself"; then 13841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13842 { (exit 1); exit 1; } 13843fi 13844 13845# Work around bugs in pre-3.0 UWIN ksh. 13846for as_var in ENV MAIL MAILPATH 13847do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13848done 13849PS1='$ ' 13850PS2='> ' 13851PS4='+ ' 13852 13853# NLS nuisances. 13854LC_ALL=C 13855export LC_ALL 13856LANGUAGE=C 13857export LANGUAGE 13858 13859# Required to use basename. 13860if expr a : '\(a\)' >/dev/null 2>&1 && 13861 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13862 as_expr=expr 13863else 13864 as_expr=false 13865fi 13866 13867if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13868 as_basename=basename 13869else 13870 as_basename=false 13871fi 13872 13873 13874# Name of the executable. 13875as_me=`$as_basename -- "$0" || 13876$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13877 X"$0" : 'X\(//\)$' \| \ 13878 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13879$as_echo X/"$0" | 13880 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13881 s//\1/ 13882 q 13883 } 13884 /^X\/\(\/\/\)$/{ 13885 s//\1/ 13886 q 13887 } 13888 /^X\/\(\/\).*/{ 13889 s//\1/ 13890 q 13891 } 13892 s/.*/./; q'` 13893 13894# CDPATH. 13895$as_unset CDPATH 13896 13897 13898 13899 as_lineno_1=$LINENO 13900 as_lineno_2=$LINENO 13901 test "x$as_lineno_1" != "x$as_lineno_2" && 13902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13903 13904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13905 # uniformly replaced by the line number. The first 'sed' inserts a 13906 # line-number line after each line using $LINENO; the second 'sed' 13907 # does the real work. The second script uses 'N' to pair each 13908 # line-number line with the line containing $LINENO, and appends 13909 # trailing '-' during substitution so that $LINENO is not a special 13910 # case at line end. 13911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13912 # scripts with optimization help from Paolo Bonzini. Blame Lee 13913 # E. McMahon (1931-1989) for sed's syntax. :-) 13914 sed -n ' 13915 p 13916 /[$]LINENO/= 13917 ' <$as_myself | 13918 sed ' 13919 s/[$]LINENO.*/&-/ 13920 t lineno 13921 b 13922 :lineno 13923 N 13924 :loop 13925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13926 t loop 13927 s/-\n.*// 13928 ' >$as_me.lineno && 13929 chmod +x "$as_me.lineno" || 13930 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13931 { (exit 1); exit 1; }; } 13932 13933 # Don't try to exec as it changes $[0], causing all sort of problems 13934 # (the dirname of $[0] is not the place where we might find the 13935 # original and so on. Autoconf is especially sensitive to this). 13936 . "./$as_me.lineno" 13937 # Exit status is that of the last command. 13938 exit 13939} 13940 13941 13942if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13943 as_dirname=dirname 13944else 13945 as_dirname=false 13946fi 13947 13948ECHO_C= ECHO_N= ECHO_T= 13949case `echo -n x` in 13950-n*) 13951 case `echo 'x\c'` in 13952 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13953 *) ECHO_C='\c';; 13954 esac;; 13955*) 13956 ECHO_N='-n';; 13957esac 13958if expr a : '\(a\)' >/dev/null 2>&1 && 13959 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13960 as_expr=expr 13961else 13962 as_expr=false 13963fi 13964 13965rm -f conf$$ conf$$.exe conf$$.file 13966if test -d conf$$.dir; then 13967 rm -f conf$$.dir/conf$$.file 13968else 13969 rm -f conf$$.dir 13970 mkdir conf$$.dir 2>/dev/null 13971fi 13972if (echo >conf$$.file) 2>/dev/null; then 13973 if ln -s conf$$.file conf$$ 2>/dev/null; then 13974 as_ln_s='ln -s' 13975 # ... but there are two gotchas: 13976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13978 # In both cases, we have to default to `cp -p'. 13979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13980 as_ln_s='cp -p' 13981 elif ln conf$$.file conf$$ 2>/dev/null; then 13982 as_ln_s=ln 13983 else 13984 as_ln_s='cp -p' 13985 fi 13986else 13987 as_ln_s='cp -p' 13988fi 13989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13990rmdir conf$$.dir 2>/dev/null 13991 13992if mkdir -p . 2>/dev/null; then 13993 as_mkdir_p=: 13994else 13995 test -d ./-p && rmdir ./-p 13996 as_mkdir_p=false 13997fi 13998 13999if test -x / >/dev/null 2>&1; then 14000 as_test_x='test -x' 14001else 14002 if ls -dL / >/dev/null 2>&1; then 14003 as_ls_L_option=L 14004 else 14005 as_ls_L_option= 14006 fi 14007 as_test_x=' 14008 eval sh -c '\'' 14009 if test -d "$1"; then 14010 test -d "$1/."; 14011 else 14012 case $1 in 14013 -*)set "./$1";; 14014 esac; 14015 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14016 ???[sx]*):;;*)false;;esac;fi 14017 '\'' sh 14018 ' 14019fi 14020as_executable_p=$as_test_x 14021 14022# Sed expression to map a string onto a valid CPP name. 14023as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14024 14025# Sed expression to map a string onto a valid variable name. 14026as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14027 14028 14029exec 6>&1 14030 14031# Save the log message, to keep $[0] and so on meaningful, and to 14032# report actual input values of CONFIG_FILES etc. instead of their 14033# values after options handling. 14034ac_log=" 14035This file was extended by sqlite $as_me 3.7.16, which was 14036generated by GNU Autoconf 2.62. Invocation command line was 14037 14038 CONFIG_FILES = $CONFIG_FILES 14039 CONFIG_HEADERS = $CONFIG_HEADERS 14040 CONFIG_LINKS = $CONFIG_LINKS 14041 CONFIG_COMMANDS = $CONFIG_COMMANDS 14042 $ $0 $@ 14043 14044on `(hostname || uname -n) 2>/dev/null | sed 1q` 14045" 14046 14047_ACEOF 14048 14049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14050# Files that config.status was made for. 14051config_files="$ac_config_files" 14052config_headers="$ac_config_headers" 14053config_commands="$ac_config_commands" 14054 14055_ACEOF 14056 14057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14058ac_cs_usage="\ 14059\`$as_me' instantiates files from templates according to the 14060current configuration. 14061 14062Usage: $0 [OPTIONS] [FILE]... 14063 14064 -h, --help print this help, then exit 14065 -V, --version print version number and configuration settings, then exit 14066 -q, --quiet do not print progress messages 14067 -d, --debug don't remove temporary files 14068 --recheck update $as_me by reconfiguring in the same conditions 14069 --file=FILE[:TEMPLATE] 14070 instantiate the configuration file FILE 14071 --header=FILE[:TEMPLATE] 14072 instantiate the configuration header FILE 14073 14074Configuration files: 14075$config_files 14076 14077Configuration headers: 14078$config_headers 14079 14080Configuration commands: 14081$config_commands 14082 14083Report bugs to <[email protected]>." 14084 14085_ACEOF 14086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14087ac_cs_version="\\ 14088sqlite config.status 3.7.16 14089configured by $0, generated by GNU Autoconf 2.62, 14090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14091 14092Copyright (C) 2008 Free Software Foundation, Inc. 14093This config.status script is free software; the Free Software Foundation 14094gives unlimited permission to copy, distribute and modify it." 14095 14096ac_pwd='$ac_pwd' 14097srcdir='$srcdir' 14098INSTALL='$INSTALL' 14099AWK='$AWK' 14100test -n "\$AWK" || AWK=awk 14101_ACEOF 14102 14103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14104# The default lists apply if the user does not specify any file. 14105ac_need_defaults=: 14106while test $# != 0 14107do 14108 case $1 in 14109 --*=*) 14110 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14112 ac_shift=: 14113 ;; 14114 *) 14115 ac_option=$1 14116 ac_optarg=$2 14117 ac_shift=shift 14118 ;; 14119 esac 14120 14121 case $ac_option in 14122 # Handling of the options. 14123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14124 ac_cs_recheck=: ;; 14125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14126 $as_echo "$ac_cs_version"; exit ;; 14127 --debug | --debu | --deb | --de | --d | -d ) 14128 debug=: ;; 14129 --file | --fil | --fi | --f ) 14130 $ac_shift 14131 case $ac_optarg in 14132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14133 esac 14134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14135 ac_need_defaults=false;; 14136 --header | --heade | --head | --hea ) 14137 $ac_shift 14138 case $ac_optarg in 14139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14140 esac 14141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14142 ac_need_defaults=false;; 14143 --he | --h) 14144 # Conflict between --help and --header 14145 { $as_echo "$as_me: error: ambiguous option: $1 14146Try \`$0 --help' for more information." >&2 14147 { (exit 1); exit 1; }; };; 14148 --help | --hel | -h ) 14149 $as_echo "$ac_cs_usage"; exit ;; 14150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14151 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14152 ac_cs_silent=: ;; 14153 14154 # This is an error. 14155 -*) { $as_echo "$as_me: error: unrecognized option: $1 14156Try \`$0 --help' for more information." >&2 14157 { (exit 1); exit 1; }; } ;; 14158 14159 *) ac_config_targets="$ac_config_targets $1" 14160 ac_need_defaults=false ;; 14161 14162 esac 14163 shift 14164done 14165 14166ac_configure_extra_args= 14167 14168if $ac_cs_silent; then 14169 exec 6>/dev/null 14170 ac_configure_extra_args="$ac_configure_extra_args --silent" 14171fi 14172 14173_ACEOF 14174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14175if \$ac_cs_recheck; then 14176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14177 shift 14178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14179 CONFIG_SHELL='$SHELL' 14180 export CONFIG_SHELL 14181 exec "\$@" 14182fi 14183 14184_ACEOF 14185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14186exec 5>>config.log 14187{ 14188 echo 14189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14190## Running $as_me. ## 14191_ASBOX 14192 $as_echo "$ac_log" 14193} >&5 14194 14195_ACEOF 14196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14197# 14198# INIT-COMMANDS 14199# 14200 14201 14202# The HP-UX ksh and POSIX shell print the target directory to stdout 14203# if CDPATH is set. 14204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14205 14206sed_quote_subst='$sed_quote_subst' 14207double_quote_subst='$double_quote_subst' 14208delay_variable_subst='$delay_variable_subst' 14209macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14210macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14211enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14212enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14213pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14214enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14215host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14216host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14217host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14218build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14219build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14220build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14221SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14222Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14223GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14224EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14225FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14226LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14227NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14228LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14229max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14230ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14231exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14232lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14233lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14234lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14235reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14236reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14237OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14238deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14239file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14240AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14241AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14242STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14243RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14244old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14245old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14246old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14247CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14248CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14249compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14250GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14251lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14252lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14253lt_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"`' 14254lt_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"`' 14255objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14256SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14257ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14258MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14259lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14260lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14261lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14262lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14263lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14264need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14265DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14266NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14267LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14268OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14269OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14270libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14271shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14272extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14273archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14274enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14275export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14276whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14277compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14278old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14279old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14280archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14281archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14282module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14283module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14284with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14285allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14286no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14287hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14288hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14289hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14290hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14291hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14292hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14293hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14294hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14295inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14296link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14297fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14298always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14299export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14300exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14301include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14302prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14303file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14304variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14305need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14306need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14307version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14308runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14309shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14310shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14311libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14312library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14313soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14314postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14315postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14316finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14317finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14318hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14319sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14320sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14321hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14322enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14323enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14324enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14325old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14326striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14327 14328LTCC='$LTCC' 14329LTCFLAGS='$LTCFLAGS' 14330compiler='$compiler_DEFAULT' 14331 14332# Quote evaled strings. 14333for var in SED \ 14334GREP \ 14335EGREP \ 14336FGREP \ 14337LD \ 14338NM \ 14339LN_S \ 14340lt_SP2NL \ 14341lt_NL2SP \ 14342reload_flag \ 14343OBJDUMP \ 14344deplibs_check_method \ 14345file_magic_cmd \ 14346AR \ 14347AR_FLAGS \ 14348STRIP \ 14349RANLIB \ 14350CC \ 14351CFLAGS \ 14352compiler \ 14353lt_cv_sys_global_symbol_pipe \ 14354lt_cv_sys_global_symbol_to_cdecl \ 14355lt_cv_sys_global_symbol_to_c_name_address \ 14356lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14357SHELL \ 14358ECHO \ 14359lt_prog_compiler_no_builtin_flag \ 14360lt_prog_compiler_wl \ 14361lt_prog_compiler_pic \ 14362lt_prog_compiler_static \ 14363lt_cv_prog_compiler_c_o \ 14364need_locks \ 14365DSYMUTIL \ 14366NMEDIT \ 14367LIPO \ 14368OTOOL \ 14369OTOOL64 \ 14370shrext_cmds \ 14371export_dynamic_flag_spec \ 14372whole_archive_flag_spec \ 14373compiler_needs_object \ 14374with_gnu_ld \ 14375allow_undefined_flag \ 14376no_undefined_flag \ 14377hardcode_libdir_flag_spec \ 14378hardcode_libdir_flag_spec_ld \ 14379hardcode_libdir_separator \ 14380fix_srcfile_path \ 14381exclude_expsyms \ 14382include_expsyms \ 14383file_list_spec \ 14384variables_saved_for_relink \ 14385libname_spec \ 14386library_names_spec \ 14387soname_spec \ 14388finish_eval \ 14389old_striplib \ 14390striplib; do 14391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14392 *[\\\\\\\`\\"\\\$]*) 14393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14394 ;; 14395 *) 14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14397 ;; 14398 esac 14399done 14400 14401# Double-quote double-evaled strings. 14402for var in reload_cmds \ 14403old_postinstall_cmds \ 14404old_postuninstall_cmds \ 14405old_archive_cmds \ 14406extract_expsyms_cmds \ 14407old_archive_from_new_cmds \ 14408old_archive_from_expsyms_cmds \ 14409archive_cmds \ 14410archive_expsym_cmds \ 14411module_cmds \ 14412module_expsym_cmds \ 14413export_symbols_cmds \ 14414prelink_cmds \ 14415postinstall_cmds \ 14416postuninstall_cmds \ 14417finish_cmds \ 14418sys_lib_search_path_spec \ 14419sys_lib_dlsearch_path_spec; do 14420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14421 *[\\\\\\\`\\"\\\$]*) 14422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14423 ;; 14424 *) 14425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14426 ;; 14427 esac 14428done 14429 14430# Fix-up fallback echo if it was mangled by the above quoting rules. 14431case \$lt_ECHO in 14432*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14433 ;; 14434esac 14435 14436ac_aux_dir='$ac_aux_dir' 14437xsi_shell='$xsi_shell' 14438lt_shell_append='$lt_shell_append' 14439 14440# See if we are running on zsh, and set the options which allow our 14441# commands through without removal of \ escapes INIT. 14442if test -n "\${ZSH_VERSION+set}" ; then 14443 setopt NO_GLOB_SUBST 14444fi 14445 14446 14447 PACKAGE='$PACKAGE' 14448 VERSION='$VERSION' 14449 TIMESTAMP='$TIMESTAMP' 14450 RM='$RM' 14451 ofile='$ofile' 14452 14453 14454 14455 14456_ACEOF 14457 14458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14459 14460# Handling of arguments. 14461for ac_config_target in $ac_config_targets 14462do 14463 case $ac_config_target in 14464 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14466 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14467 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 14468 14469 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14470$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14471 { (exit 1); exit 1; }; };; 14472 esac 14473done 14474 14475 14476# If the user did not use the arguments to specify the items to instantiate, 14477# then the envvar interface is used. Set only those that are not. 14478# We use the long form for the default assignment because of an extremely 14479# bizarre bug on SunOS 4.1.3. 14480if $ac_need_defaults; then 14481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14484fi 14485 14486# Have a temporary directory for convenience. Make it in the build tree 14487# simply because there is no reason against having it here, and in addition, 14488# creating and moving files from /tmp can sometimes cause problems. 14489# Hook for its removal unless debugging. 14490# Note that there is a small window in which the directory will not be cleaned: 14491# after its creation but before its name has been assigned to `$tmp'. 14492$debug || 14493{ 14494 tmp= 14495 trap 'exit_status=$? 14496 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14497' 0 14498 trap '{ (exit 1); exit 1; }' 1 2 13 15 14499} 14500# Create a (secure) tmp directory for tmp files. 14501 14502{ 14503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14504 test -n "$tmp" && test -d "$tmp" 14505} || 14506{ 14507 tmp=./conf$$-$RANDOM 14508 (umask 077 && mkdir "$tmp") 14509} || 14510{ 14511 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14512 { (exit 1); exit 1; } 14513} 14514 14515# Set up the scripts for CONFIG_FILES section. 14516# No need to generate them if there are no CONFIG_FILES. 14517# This happens for instance with `./config.status config.h'. 14518if test -n "$CONFIG_FILES"; then 14519 14520 14521ac_cr=' 14522' 14523ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14524if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14525 ac_cs_awk_cr='\\r' 14526else 14527 ac_cs_awk_cr=$ac_cr 14528fi 14529 14530echo 'BEGIN {' >"$tmp/subs1.awk" && 14531_ACEOF 14532 14533 14534{ 14535 echo "cat >conf$$subs.awk <<_ACEOF" && 14536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14537 echo "_ACEOF" 14538} >conf$$subs.sh || 14539 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14540$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14541 { (exit 1); exit 1; }; } 14542ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14543ac_delim='%!_!# ' 14544for ac_last_try in false false false false false :; do 14545 . ./conf$$subs.sh || 14546 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14547$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14548 { (exit 1); exit 1; }; } 14549 14550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14551 break 14552 elif $ac_last_try; then 14553 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14554$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14555 { (exit 1); exit 1; }; } 14556 else 14557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14558 fi 14559done 14560rm -f conf$$subs.sh 14561 14562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14563cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14564_ACEOF 14565sed -n ' 14566h 14567s/^/S["/; s/!.*/"]=/ 14568p 14569g 14570s/^[^!]*!// 14571:repl 14572t repl 14573s/'"$ac_delim"'$// 14574t delim 14575:nl 14576h 14577s/\(.\{148\}\).*/\1/ 14578t more1 14579s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14580p 14581n 14582b repl 14583:more1 14584s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14585p 14586g 14587s/.\{148\}// 14588t nl 14589:delim 14590h 14591s/\(.\{148\}\).*/\1/ 14592t more2 14593s/["\\]/\\&/g; s/^/"/; s/$/"/ 14594p 14595b 14596:more2 14597s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14598p 14599g 14600s/.\{148\}// 14601t delim 14602' <conf$$subs.awk | sed ' 14603/^[^""]/{ 14604 N 14605 s/\n// 14606} 14607' >>$CONFIG_STATUS || ac_write_fail=1 14608rm -f conf$$subs.awk 14609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14610_ACAWK 14611cat >>"\$tmp/subs1.awk" <<_ACAWK && 14612 for (key in S) S_is_set[key] = 1 14613 FS = "" 14614 14615} 14616{ 14617 line = $ 0 14618 nfields = split(line, field, "@") 14619 substed = 0 14620 len = length(field[1]) 14621 for (i = 2; i < nfields; i++) { 14622 key = field[i] 14623 keylen = length(key) 14624 if (S_is_set[key]) { 14625 value = S[key] 14626 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14627 len += length(value) + length(field[++i]) 14628 substed = 1 14629 } else 14630 len += 1 + keylen 14631 } 14632 14633 print line 14634} 14635 14636_ACAWK 14637_ACEOF 14638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14639if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14641else 14642 cat 14643fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14644 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14645$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14646 { (exit 1); exit 1; }; } 14647_ACEOF 14648 14649# VPATH may cause trouble with some makes, so we remove $(srcdir), 14650# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14651# trailing colons and then remove the whole line if VPATH becomes empty 14652# (actually we leave an empty line to preserve line numbers). 14653if test "x$srcdir" = x.; then 14654 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14655s/:*\$(srcdir):*/:/ 14656s/:*\${srcdir}:*/:/ 14657s/:*@srcdir@:*/:/ 14658s/^\([^=]*=[ ]*\):*/\1/ 14659s/:*$// 14660s/^[^=]*=[ ]*$// 14661}' 14662fi 14663 14664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14665fi # test -n "$CONFIG_FILES" 14666 14667# Set up the scripts for CONFIG_HEADERS section. 14668# No need to generate them if there are no CONFIG_HEADERS. 14669# This happens for instance with `./config.status Makefile'. 14670if test -n "$CONFIG_HEADERS"; then 14671cat >"$tmp/defines.awk" <<\_ACAWK || 14672BEGIN { 14673_ACEOF 14674 14675# Transform confdefs.h into an awk script `defines.awk', embedded as 14676# here-document in config.status, that substitutes the proper values into 14677# config.h.in to produce config.h. 14678 14679# Create a delimiter string that does not exist in confdefs.h, to ease 14680# handling of long lines. 14681ac_delim='%!_!# ' 14682for ac_last_try in false false :; do 14683 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14684 if test -z "$ac_t"; then 14685 break 14686 elif $ac_last_try; then 14687 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14688$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14689 { (exit 1); exit 1; }; } 14690 else 14691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14692 fi 14693done 14694 14695# For the awk script, D is an array of macro values keyed by name, 14696# likewise P contains macro parameters if any. Preserve backslash 14697# newline sequences. 14698 14699ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14700sed -n ' 14701s/.\{148\}/&'"$ac_delim"'/g 14702t rset 14703:rset 14704s/^[ ]*#[ ]*define[ ][ ]*/ / 14705t def 14706d 14707:def 14708s/\\$// 14709t bsnl 14710s/["\\]/\\&/g 14711s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14712D["\1"]=" \3"/p 14713s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14714d 14715:bsnl 14716s/["\\]/\\&/g 14717s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14718D["\1"]=" \3\\\\\\n"\\/p 14719t cont 14720s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14721t cont 14722d 14723:cont 14724n 14725s/.\{148\}/&'"$ac_delim"'/g 14726t clear 14727:clear 14728s/\\$// 14729t bsnlc 14730s/["\\]/\\&/g; s/^/"/; s/$/"/p 14731d 14732:bsnlc 14733s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14734b cont 14735' <confdefs.h | sed ' 14736s/'"$ac_delim"'/"\\\ 14737"/g' >>$CONFIG_STATUS || ac_write_fail=1 14738 14739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14740 for (key in D) D_is_set[key] = 1 14741 FS = "" 14742} 14743/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14744 line = \$ 0 14745 split(line, arg, " ") 14746 if (arg[1] == "#") { 14747 defundef = arg[2] 14748 mac1 = arg[3] 14749 } else { 14750 defundef = substr(arg[1], 2) 14751 mac1 = arg[2] 14752 } 14753 split(mac1, mac2, "(") #) 14754 macro = mac2[1] 14755 if (D_is_set[macro]) { 14756 # Preserve the white space surrounding the "#". 14757 prefix = substr(line, 1, index(line, defundef) - 1) 14758 print prefix "define", macro P[macro] D[macro] 14759 next 14760 } else { 14761 # Replace #undef with comments. This is necessary, for example, 14762 # in the case of _POSIX_SOURCE, which is predefined and required 14763 # on some systems where configure will not decide to define it. 14764 if (defundef == "undef") { 14765 print "/*", line, "*/" 14766 next 14767 } 14768 } 14769} 14770{ print } 14771_ACAWK 14772_ACEOF 14773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14774 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14775$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14776 { (exit 1); exit 1; }; } 14777fi # test -n "$CONFIG_HEADERS" 14778 14779 14780eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14781shift 14782for ac_tag 14783do 14784 case $ac_tag in 14785 :[FHLC]) ac_mode=$ac_tag; continue;; 14786 esac 14787 case $ac_mode$ac_tag in 14788 :[FHL]*:*);; 14789 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14790$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14791 { (exit 1); exit 1; }; };; 14792 :[FH]-) ac_tag=-:-;; 14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14794 esac 14795 ac_save_IFS=$IFS 14796 IFS=: 14797 set x $ac_tag 14798 IFS=$ac_save_IFS 14799 shift 14800 ac_file=$1 14801 shift 14802 14803 case $ac_mode in 14804 :L) ac_source=$1;; 14805 :[FH]) 14806 ac_file_inputs= 14807 for ac_f 14808 do 14809 case $ac_f in 14810 -) ac_f="$tmp/stdin";; 14811 *) # Look for the file first in the build tree, then in the source tree 14812 # (if the path is not absolute). The absolute path cannot be DOS-style, 14813 # because $ac_f cannot contain `:'. 14814 test -f "$ac_f" || 14815 case $ac_f in 14816 [\\/$]*) false;; 14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14818 esac || 14819 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14820$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14821 { (exit 1); exit 1; }; };; 14822 esac 14823 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14824 ac_file_inputs="$ac_file_inputs '$ac_f'" 14825 done 14826 14827 # Let's still pretend it is `configure' which instantiates (i.e., don't 14828 # use $as_me), people would be surprised to read: 14829 # /* config.h. Generated by config.status. */ 14830 configure_input='Generated from '` 14831 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14832 `' by configure.' 14833 if test x"$ac_file" != x-; then 14834 configure_input="$ac_file. $configure_input" 14835 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14836$as_echo "$as_me: creating $ac_file" >&6;} 14837 fi 14838 # Neutralize special characters interpreted by sed in replacement strings. 14839 case $configure_input in #( 14840 *\&* | *\|* | *\\* ) 14841 ac_sed_conf_input=`$as_echo "$configure_input" | 14842 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14843 *) ac_sed_conf_input=$configure_input;; 14844 esac 14845 14846 case $ac_tag in 14847 *:-:* | *:-) cat >"$tmp/stdin" \ 14848 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14849$as_echo "$as_me: error: could not create $ac_file" >&2;} 14850 { (exit 1); exit 1; }; } ;; 14851 esac 14852 ;; 14853 esac 14854 14855 ac_dir=`$as_dirname -- "$ac_file" || 14856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14857 X"$ac_file" : 'X\(//\)[^/]' \| \ 14858 X"$ac_file" : 'X\(//\)$' \| \ 14859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14860$as_echo X"$ac_file" | 14861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14862 s//\1/ 14863 q 14864 } 14865 /^X\(\/\/\)[^/].*/{ 14866 s//\1/ 14867 q 14868 } 14869 /^X\(\/\/\)$/{ 14870 s//\1/ 14871 q 14872 } 14873 /^X\(\/\).*/{ 14874 s//\1/ 14875 q 14876 } 14877 s/.*/./; q'` 14878 { as_dir="$ac_dir" 14879 case $as_dir in #( 14880 -*) as_dir=./$as_dir;; 14881 esac 14882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14883 as_dirs= 14884 while :; do 14885 case $as_dir in #( 14886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14887 *) as_qdir=$as_dir;; 14888 esac 14889 as_dirs="'$as_qdir' $as_dirs" 14890 as_dir=`$as_dirname -- "$as_dir" || 14891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14892 X"$as_dir" : 'X\(//\)[^/]' \| \ 14893 X"$as_dir" : 'X\(//\)$' \| \ 14894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14895$as_echo X"$as_dir" | 14896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14897 s//\1/ 14898 q 14899 } 14900 /^X\(\/\/\)[^/].*/{ 14901 s//\1/ 14902 q 14903 } 14904 /^X\(\/\/\)$/{ 14905 s//\1/ 14906 q 14907 } 14908 /^X\(\/\).*/{ 14909 s//\1/ 14910 q 14911 } 14912 s/.*/./; q'` 14913 test -d "$as_dir" && break 14914 done 14915 test -z "$as_dirs" || eval "mkdir $as_dirs" 14916 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14917$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14918 { (exit 1); exit 1; }; }; } 14919 ac_builddir=. 14920 14921case "$ac_dir" in 14922.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14923*) 14924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14925 # A ".." for each directory in $ac_dir_suffix. 14926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14927 case $ac_top_builddir_sub in 14928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14930 esac ;; 14931esac 14932ac_abs_top_builddir=$ac_pwd 14933ac_abs_builddir=$ac_pwd$ac_dir_suffix 14934# for backward compatibility: 14935ac_top_builddir=$ac_top_build_prefix 14936 14937case $srcdir in 14938 .) # We are building in place. 14939 ac_srcdir=. 14940 ac_top_srcdir=$ac_top_builddir_sub 14941 ac_abs_top_srcdir=$ac_pwd ;; 14942 [\\/]* | ?:[\\/]* ) # Absolute name. 14943 ac_srcdir=$srcdir$ac_dir_suffix; 14944 ac_top_srcdir=$srcdir 14945 ac_abs_top_srcdir=$srcdir ;; 14946 *) # Relative name. 14947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14948 ac_top_srcdir=$ac_top_build_prefix$srcdir 14949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14950esac 14951ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14952 14953 14954 case $ac_mode in 14955 :F) 14956 # 14957 # CONFIG_FILE 14958 # 14959 14960 case $INSTALL in 14961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14962 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14963 esac 14964_ACEOF 14965 14966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14967# If the template does not know about datarootdir, expand it. 14968# FIXME: This hack should be removed a few years after 2.60. 14969ac_datarootdir_hack=; ac_datarootdir_seen= 14970 14971ac_sed_dataroot=' 14972/datarootdir/ { 14973 p 14974 q 14975} 14976/@datadir@/p 14977/@docdir@/p 14978/@infodir@/p 14979/@localedir@/p 14980/@mandir@/p 14981' 14982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14983*datarootdir*) ac_datarootdir_seen=yes;; 14984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14985 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14986$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14987_ACEOF 14988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14989 ac_datarootdir_hack=' 14990 s&@datadir@&$datadir&g 14991 s&@docdir@&$docdir&g 14992 s&@infodir@&$infodir&g 14993 s&@localedir@&$localedir&g 14994 s&@mandir@&$mandir&g 14995 s&\\\${datarootdir}&$datarootdir&g' ;; 14996esac 14997_ACEOF 14998 14999# Neutralize VPATH when `$srcdir' = `.'. 15000# Shell code in configure.ac might set extrasub. 15001# FIXME: do we really want to maintain this feature? 15002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15003ac_sed_extra="$ac_vpsub 15004$extrasub 15005_ACEOF 15006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15007:t 15008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15009s|@configure_input@|$ac_sed_conf_input|;t t 15010s&@top_builddir@&$ac_top_builddir_sub&;t t 15011s&@top_build_prefix@&$ac_top_build_prefix&;t t 15012s&@srcdir@&$ac_srcdir&;t t 15013s&@abs_srcdir@&$ac_abs_srcdir&;t t 15014s&@top_srcdir@&$ac_top_srcdir&;t t 15015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15016s&@builddir@&$ac_builddir&;t t 15017s&@abs_builddir@&$ac_abs_builddir&;t t 15018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15019s&@INSTALL@&$ac_INSTALL&;t t 15020$ac_datarootdir_hack 15021" 15022eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15023 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15024$as_echo "$as_me: error: could not create $ac_file" >&2;} 15025 { (exit 1); exit 1; }; } 15026 15027test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15028 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15030 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15031which seems to be undefined. Please make sure it is defined." >&5 15032$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15033which seems to be undefined. Please make sure it is defined." >&2;} 15034 15035 rm -f "$tmp/stdin" 15036 case $ac_file in 15037 -) cat "$tmp/out" && rm -f "$tmp/out";; 15038 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15039 esac \ 15040 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15041$as_echo "$as_me: error: could not create $ac_file" >&2;} 15042 { (exit 1); exit 1; }; } 15043 ;; 15044 :H) 15045 # 15046 # CONFIG_HEADER 15047 # 15048 if test x"$ac_file" != x-; then 15049 { 15050 $as_echo "/* $configure_input */" \ 15051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15052 } >"$tmp/config.h" \ 15053 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15054$as_echo "$as_me: error: could not create $ac_file" >&2;} 15055 { (exit 1); exit 1; }; } 15056 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15057 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15058$as_echo "$as_me: $ac_file is unchanged" >&6;} 15059 else 15060 rm -f "$ac_file" 15061 mv "$tmp/config.h" "$ac_file" \ 15062 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15063$as_echo "$as_me: error: could not create $ac_file" >&2;} 15064 { (exit 1); exit 1; }; } 15065 fi 15066 else 15067 $as_echo "/* $configure_input */" \ 15068 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15069 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15070$as_echo "$as_me: error: could not create -" >&2;} 15071 { (exit 1); exit 1; }; } 15072 fi 15073 ;; 15074 15075 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15076$as_echo "$as_me: executing $ac_file commands" >&6;} 15077 ;; 15078 esac 15079 15080 15081 case $ac_file$ac_mode in 15082 "libtool":C) 15083 15084 # See if we are running on zsh, and set the options which allow our 15085 # commands through without removal of \ escapes. 15086 if test -n "${ZSH_VERSION+set}" ; then 15087 setopt NO_GLOB_SUBST 15088 fi 15089 15090 cfgfile="${ofile}T" 15091 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15092 $RM "$cfgfile" 15093 15094 cat <<_LT_EOF >> "$cfgfile" 15095#! $SHELL 15096 15097# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15098# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15099# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15100# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15101# 15102# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15103# 2006, 2007, 2008 Free Software Foundation, Inc. 15104# Written by Gordon Matzigkeit, 1996 15105# 15106# This file is part of GNU Libtool. 15107# 15108# GNU Libtool is free software; you can redistribute it and/or 15109# modify it under the terms of the GNU General Public License as 15110# published by the Free Software Foundation; either version 2 of 15111# the License, or (at your option) any later version. 15112# 15113# As a special exception to the GNU General Public License, 15114# if you distribute this file as part of a program or library that 15115# is built using GNU Libtool, you may include this file under the 15116# same distribution terms that you use for the rest of that program. 15117# 15118# GNU Libtool is distributed in the hope that it will be useful, 15119# but WITHOUT ANY WARRANTY; without even the implied warranty of 15120# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15121# GNU General Public License for more details. 15122# 15123# You should have received a copy of the GNU General Public License 15124# along with GNU Libtool; see the file COPYING. If not, a copy 15125# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15126# obtained by writing to the Free Software Foundation, Inc., 15127# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15128 15129 15130# The names of the tagged configurations supported by this script. 15131available_tags="" 15132 15133# ### BEGIN LIBTOOL CONFIG 15134 15135# Which release of libtool.m4 was used? 15136macro_version=$macro_version 15137macro_revision=$macro_revision 15138 15139# Whether or not to build shared libraries. 15140build_libtool_libs=$enable_shared 15141 15142# Whether or not to build static libraries. 15143build_old_libs=$enable_static 15144 15145# What type of objects to build. 15146pic_mode=$pic_mode 15147 15148# Whether or not to optimize for fast installation. 15149fast_install=$enable_fast_install 15150 15151# The host system. 15152host_alias=$host_alias 15153host=$host 15154host_os=$host_os 15155 15156# The build system. 15157build_alias=$build_alias 15158build=$build 15159build_os=$build_os 15160 15161# A sed program that does not truncate output. 15162SED=$lt_SED 15163 15164# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15165Xsed="\$SED -e 1s/^X//" 15166 15167# A grep program that handles long lines. 15168GREP=$lt_GREP 15169 15170# An ERE matcher. 15171EGREP=$lt_EGREP 15172 15173# A literal string matcher. 15174FGREP=$lt_FGREP 15175 15176# A BSD- or MS-compatible name lister. 15177NM=$lt_NM 15178 15179# Whether we need soft or hard links. 15180LN_S=$lt_LN_S 15181 15182# What is the maximum length of a command? 15183max_cmd_len=$max_cmd_len 15184 15185# Object file suffix (normally "o"). 15186objext=$ac_objext 15187 15188# Executable file suffix (normally ""). 15189exeext=$exeext 15190 15191# whether the shell understands "unset". 15192lt_unset=$lt_unset 15193 15194# turn spaces into newlines. 15195SP2NL=$lt_lt_SP2NL 15196 15197# turn newlines into spaces. 15198NL2SP=$lt_lt_NL2SP 15199 15200# How to create reloadable object files. 15201reload_flag=$lt_reload_flag 15202reload_cmds=$lt_reload_cmds 15203 15204# An object symbol dumper. 15205OBJDUMP=$lt_OBJDUMP 15206 15207# Method to check whether dependent libraries are shared objects. 15208deplibs_check_method=$lt_deplibs_check_method 15209 15210# Command to use when deplibs_check_method == "file_magic". 15211file_magic_cmd=$lt_file_magic_cmd 15212 15213# The archiver. 15214AR=$lt_AR 15215AR_FLAGS=$lt_AR_FLAGS 15216 15217# A symbol stripping program. 15218STRIP=$lt_STRIP 15219 15220# Commands used to install an old-style archive. 15221RANLIB=$lt_RANLIB 15222old_postinstall_cmds=$lt_old_postinstall_cmds 15223old_postuninstall_cmds=$lt_old_postuninstall_cmds 15224 15225# A C compiler. 15226LTCC=$lt_CC 15227 15228# LTCC compiler flags. 15229LTCFLAGS=$lt_CFLAGS 15230 15231# Take the output of nm and produce a listing of raw symbols and C names. 15232global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15233 15234# Transform the output of nm in a proper C declaration. 15235global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15236 15237# Transform the output of nm in a C name address pair. 15238global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15239 15240# Transform the output of nm in a C name address pair when lib prefix is needed. 15241global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15242 15243# The name of the directory that contains temporary libtool files. 15244objdir=$objdir 15245 15246# Shell to use when invoking shell scripts. 15247SHELL=$lt_SHELL 15248 15249# An echo program that does not interpret backslashes. 15250ECHO=$lt_ECHO 15251 15252# Used to examine libraries when file_magic_cmd begins with "file". 15253MAGIC_CMD=$MAGIC_CMD 15254 15255# Must we lock files when doing compilation? 15256need_locks=$lt_need_locks 15257 15258# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15259DSYMUTIL=$lt_DSYMUTIL 15260 15261# Tool to change global to local symbols on Mac OS X. 15262NMEDIT=$lt_NMEDIT 15263 15264# Tool to manipulate fat objects and archives on Mac OS X. 15265LIPO=$lt_LIPO 15266 15267# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15268OTOOL=$lt_OTOOL 15269 15270# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15271OTOOL64=$lt_OTOOL64 15272 15273# Old archive suffix (normally "a"). 15274libext=$libext 15275 15276# Shared library suffix (normally ".so"). 15277shrext_cmds=$lt_shrext_cmds 15278 15279# The commands to extract the exported symbol list from a shared archive. 15280extract_expsyms_cmds=$lt_extract_expsyms_cmds 15281 15282# Variables whose values should be saved in libtool wrapper scripts and 15283# restored at link time. 15284variables_saved_for_relink=$lt_variables_saved_for_relink 15285 15286# Do we need the "lib" prefix for modules? 15287need_lib_prefix=$need_lib_prefix 15288 15289# Do we need a version for libraries? 15290need_version=$need_version 15291 15292# Library versioning type. 15293version_type=$version_type 15294 15295# Shared library runtime path variable. 15296runpath_var=$runpath_var 15297 15298# Shared library path variable. 15299shlibpath_var=$shlibpath_var 15300 15301# Is shlibpath searched before the hard-coded library search path? 15302shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15303 15304# Format of library name prefix. 15305libname_spec=$lt_libname_spec 15306 15307# List of archive names. First name is the real one, the rest are links. 15308# The last name is the one that the linker finds with -lNAME 15309library_names_spec=$lt_library_names_spec 15310 15311# The coded name of the library, if different from the real name. 15312soname_spec=$lt_soname_spec 15313 15314# Command to use after installation of a shared archive. 15315postinstall_cmds=$lt_postinstall_cmds 15316 15317# Command to use after uninstallation of a shared archive. 15318postuninstall_cmds=$lt_postuninstall_cmds 15319 15320# Commands used to finish a libtool library installation in a directory. 15321finish_cmds=$lt_finish_cmds 15322 15323# As "finish_cmds", except a single script fragment to be evaled but 15324# not shown. 15325finish_eval=$lt_finish_eval 15326 15327# Whether we should hardcode library paths into libraries. 15328hardcode_into_libs=$hardcode_into_libs 15329 15330# Compile-time system search path for libraries. 15331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15332 15333# Run-time system search path for libraries. 15334sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15335 15336# Whether dlopen is supported. 15337dlopen_support=$enable_dlopen 15338 15339# Whether dlopen of programs is supported. 15340dlopen_self=$enable_dlopen_self 15341 15342# Whether dlopen of statically linked programs is supported. 15343dlopen_self_static=$enable_dlopen_self_static 15344 15345# Commands to strip libraries. 15346old_striplib=$lt_old_striplib 15347striplib=$lt_striplib 15348 15349 15350# The linker used to build libraries. 15351LD=$lt_LD 15352 15353# Commands used to build an old-style archive. 15354old_archive_cmds=$lt_old_archive_cmds 15355 15356# A language specific compiler. 15357CC=$lt_compiler 15358 15359# Is the compiler the GNU compiler? 15360with_gcc=$GCC 15361 15362# Compiler flag to turn off builtin functions. 15363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15364 15365# How to pass a linker flag through the compiler. 15366wl=$lt_lt_prog_compiler_wl 15367 15368# Additional compiler flags for building library objects. 15369pic_flag=$lt_lt_prog_compiler_pic 15370 15371# Compiler flag to prevent dynamic linking. 15372link_static_flag=$lt_lt_prog_compiler_static 15373 15374# Does compiler simultaneously support -c and -o options? 15375compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15376 15377# Whether or not to add -lc for building shared libraries. 15378build_libtool_need_lc=$archive_cmds_need_lc 15379 15380# Whether or not to disallow shared libs when runtime libs are static. 15381allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15382 15383# Compiler flag to allow reflexive dlopens. 15384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15385 15386# Compiler flag to generate shared objects directly from archives. 15387whole_archive_flag_spec=$lt_whole_archive_flag_spec 15388 15389# Whether the compiler copes with passing no objects directly. 15390compiler_needs_object=$lt_compiler_needs_object 15391 15392# Create an old-style archive from a shared archive. 15393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15394 15395# Create a temporary old-style archive to link instead of a shared archive. 15396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15397 15398# Commands used to build a shared archive. 15399archive_cmds=$lt_archive_cmds 15400archive_expsym_cmds=$lt_archive_expsym_cmds 15401 15402# Commands used to build a loadable module if different from building 15403# a shared archive. 15404module_cmds=$lt_module_cmds 15405module_expsym_cmds=$lt_module_expsym_cmds 15406 15407# Whether we are building with GNU ld or not. 15408with_gnu_ld=$lt_with_gnu_ld 15409 15410# Flag that allows shared libraries with undefined symbols to be built. 15411allow_undefined_flag=$lt_allow_undefined_flag 15412 15413# Flag that enforces no undefined symbols. 15414no_undefined_flag=$lt_no_undefined_flag 15415 15416# Flag to hardcode \$libdir into a binary during linking. 15417# This must work even if \$libdir does not exist 15418hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15419 15420# If ld is used when linking, flag to hardcode \$libdir into a binary 15421# during linking. This must work even if \$libdir does not exist. 15422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15423 15424# Whether we need a single "-rpath" flag with a separated argument. 15425hardcode_libdir_separator=$lt_hardcode_libdir_separator 15426 15427# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15428# DIR into the resulting binary. 15429hardcode_direct=$hardcode_direct 15430 15431# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15432# DIR into the resulting binary and the resulting library dependency is 15433# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15434# library is relocated. 15435hardcode_direct_absolute=$hardcode_direct_absolute 15436 15437# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15438# into the resulting binary. 15439hardcode_minus_L=$hardcode_minus_L 15440 15441# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15442# into the resulting binary. 15443hardcode_shlibpath_var=$hardcode_shlibpath_var 15444 15445# Set to "yes" if building a shared library automatically hardcodes DIR 15446# into the library and all subsequent libraries and executables linked 15447# against it. 15448hardcode_automatic=$hardcode_automatic 15449 15450# Set to yes if linker adds runtime paths of dependent libraries 15451# to runtime path list. 15452inherit_rpath=$inherit_rpath 15453 15454# Whether libtool must link a program against all its dependency libraries. 15455link_all_deplibs=$link_all_deplibs 15456 15457# Fix the shell variable \$srcfile for the compiler. 15458fix_srcfile_path=$lt_fix_srcfile_path 15459 15460# Set to "yes" if exported symbols are required. 15461always_export_symbols=$always_export_symbols 15462 15463# The commands to list exported symbols. 15464export_symbols_cmds=$lt_export_symbols_cmds 15465 15466# Symbols that should not be listed in the preloaded symbols. 15467exclude_expsyms=$lt_exclude_expsyms 15468 15469# Symbols that must always be exported. 15470include_expsyms=$lt_include_expsyms 15471 15472# Commands necessary for linking programs (against libraries) with templates. 15473prelink_cmds=$lt_prelink_cmds 15474 15475# Specify filename containing input files. 15476file_list_spec=$lt_file_list_spec 15477 15478# How to hardcode a shared library path into an executable. 15479hardcode_action=$hardcode_action 15480 15481# ### END LIBTOOL CONFIG 15482 15483_LT_EOF 15484 15485 case $host_os in 15486 aix3*) 15487 cat <<\_LT_EOF >> "$cfgfile" 15488# AIX sometimes has problems with the GCC collect2 program. For some 15489# reason, if we set the COLLECT_NAMES environment variable, the problems 15490# vanish in a puff of smoke. 15491if test "X${COLLECT_NAMES+set}" != Xset; then 15492 COLLECT_NAMES= 15493 export COLLECT_NAMES 15494fi 15495_LT_EOF 15496 ;; 15497 esac 15498 15499 15500ltmain="$ac_aux_dir/ltmain.sh" 15501 15502 15503 # We use sed instead of cat because bash on DJGPP gets confused if 15504 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15505 # text mode, it properly converts lines to CR/LF. This bash problem 15506 # is reportedly fixed, but why not run on old versions too? 15507 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15508 || (rm -f "$cfgfile"; exit 1) 15509 15510 case $xsi_shell in 15511 yes) 15512 cat << \_LT_EOF >> "$cfgfile" 15513 15514# func_dirname file append nondir_replacement 15515# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15516# otherwise set result to NONDIR_REPLACEMENT. 15517func_dirname () 15518{ 15519 case ${1} in 15520 */*) func_dirname_result="${1%/*}${2}" ;; 15521 * ) func_dirname_result="${3}" ;; 15522 esac 15523} 15524 15525# func_basename file 15526func_basename () 15527{ 15528 func_basename_result="${1##*/}" 15529} 15530 15531# func_dirname_and_basename file append nondir_replacement 15532# perform func_basename and func_dirname in a single function 15533# call: 15534# dirname: Compute the dirname of FILE. If nonempty, 15535# add APPEND to the result, otherwise set result 15536# to NONDIR_REPLACEMENT. 15537# value returned in "$func_dirname_result" 15538# basename: Compute filename of FILE. 15539# value retuned in "$func_basename_result" 15540# Implementation must be kept synchronized with func_dirname 15541# and func_basename. For efficiency, we do not delegate to 15542# those functions but instead duplicate the functionality here. 15543func_dirname_and_basename () 15544{ 15545 case ${1} in 15546 */*) func_dirname_result="${1%/*}${2}" ;; 15547 * ) func_dirname_result="${3}" ;; 15548 esac 15549 func_basename_result="${1##*/}" 15550} 15551 15552# func_stripname prefix suffix name 15553# strip PREFIX and SUFFIX off of NAME. 15554# PREFIX and SUFFIX must not contain globbing or regex special 15555# characters, hashes, percent signs, but SUFFIX may contain a leading 15556# dot (in which case that matches only a dot). 15557func_stripname () 15558{ 15559 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15560 # positional parameters, so assign one to ordinary parameter first. 15561 func_stripname_result=${3} 15562 func_stripname_result=${func_stripname_result#"${1}"} 15563 func_stripname_result=${func_stripname_result%"${2}"} 15564} 15565 15566# func_opt_split 15567func_opt_split () 15568{ 15569 func_opt_split_opt=${1%%=*} 15570 func_opt_split_arg=${1#*=} 15571} 15572 15573# func_lo2o object 15574func_lo2o () 15575{ 15576 case ${1} in 15577 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15578 *) func_lo2o_result=${1} ;; 15579 esac 15580} 15581 15582# func_xform libobj-or-source 15583func_xform () 15584{ 15585 func_xform_result=${1%.*}.lo 15586} 15587 15588# func_arith arithmetic-term... 15589func_arith () 15590{ 15591 func_arith_result=$(( $* )) 15592} 15593 15594# func_len string 15595# STRING may not start with a hyphen. 15596func_len () 15597{ 15598 func_len_result=${#1} 15599} 15600 15601_LT_EOF 15602 ;; 15603 *) # Bourne compatible functions. 15604 cat << \_LT_EOF >> "$cfgfile" 15605 15606# func_dirname file append nondir_replacement 15607# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15608# otherwise set result to NONDIR_REPLACEMENT. 15609func_dirname () 15610{ 15611 # Extract subdirectory from the argument. 15612 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15613 if test "X$func_dirname_result" = "X${1}"; then 15614 func_dirname_result="${3}" 15615 else 15616 func_dirname_result="$func_dirname_result${2}" 15617 fi 15618} 15619 15620# func_basename file 15621func_basename () 15622{ 15623 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15624} 15625 15626 15627# func_stripname prefix suffix name 15628# strip PREFIX and SUFFIX off of NAME. 15629# PREFIX and SUFFIX must not contain globbing or regex special 15630# characters, hashes, percent signs, but SUFFIX may contain a leading 15631# dot (in which case that matches only a dot). 15632# func_strip_suffix prefix name 15633func_stripname () 15634{ 15635 case ${2} in 15636 .*) func_stripname_result=`$ECHO "X${3}" \ 15637 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15638 *) func_stripname_result=`$ECHO "X${3}" \ 15639 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15640 esac 15641} 15642 15643# sed scripts: 15644my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15645my_sed_long_arg='1s/^-[^=]*=//' 15646 15647# func_opt_split 15648func_opt_split () 15649{ 15650 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15651 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15652} 15653 15654# func_lo2o object 15655func_lo2o () 15656{ 15657 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15658} 15659 15660# func_xform libobj-or-source 15661func_xform () 15662{ 15663 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15664} 15665 15666# func_arith arithmetic-term... 15667func_arith () 15668{ 15669 func_arith_result=`expr "$@"` 15670} 15671 15672# func_len string 15673# STRING may not start with a hyphen. 15674func_len () 15675{ 15676 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15677} 15678 15679_LT_EOF 15680esac 15681 15682case $lt_shell_append in 15683 yes) 15684 cat << \_LT_EOF >> "$cfgfile" 15685 15686# func_append var value 15687# Append VALUE to the end of shell variable VAR. 15688func_append () 15689{ 15690 eval "$1+=\$2" 15691} 15692_LT_EOF 15693 ;; 15694 *) 15695 cat << \_LT_EOF >> "$cfgfile" 15696 15697# func_append var value 15698# Append VALUE to the end of shell variable VAR. 15699func_append () 15700{ 15701 eval "$1=\$$1\$2" 15702} 15703 15704_LT_EOF 15705 ;; 15706 esac 15707 15708 15709 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15710 || (rm -f "$cfgfile"; exit 1) 15711 15712 mv -f "$cfgfile" "$ofile" || 15713 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15714 chmod +x "$ofile" 15715 15716 ;; 15717 15718 esac 15719done # for ac_tag 15720 15721 15722{ (exit 0); exit 0; } 15723_ACEOF 15724chmod +x $CONFIG_STATUS 15725ac_clean_files=$ac_clean_files_save 15726 15727test $ac_write_fail = 0 || 15728 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15729$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15730 { (exit 1); exit 1; }; } 15731 15732 15733# configure is writing to config.log, and then calls config.status. 15734# config.status does its own redirection, appending to config.log. 15735# Unfortunately, on DOS this fails, as config.log is still kept open 15736# by configure, so config.status won't be able to write to it; its 15737# output is simply discarded. So we exec the FD to /dev/null, 15738# effectively closing config.log, so it can be properly (re)opened and 15739# appended to by config.status. When coming back to configure, we 15740# need to make the FD available again. 15741if test "$no_create" != yes; then 15742 ac_cs_success=: 15743 ac_config_status_args= 15744 test "$silent" = yes && 15745 ac_config_status_args="$ac_config_status_args --quiet" 15746 exec 5>/dev/null 15747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15748 exec 5>>config.log 15749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15750 # would make configure fail if this is the last instruction. 15751 $ac_cs_success || { (exit 1); exit 1; } 15752fi 15753if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15754 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 15755$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 15756fi 15757 15758