1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sqlite 3.37.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (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 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 558# Check that we are running under the correct shell. 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561case X$lt_ECHO in 562X*--fallback-echo) 563 # Remove one level of quotation (which was required for Make). 564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 565 ;; 566esac 567 568ECHO=${lt_ECHO-echo} 569if test "X$1" = X--no-reexec; then 570 # Discard the --no-reexec flag, and continue. 571 shift 572elif test "X$1" = X--fallback-echo; then 573 # Avoid inline document here, it may be left over 574 : 575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 576 # Yippee, $ECHO works! 577 : 578else 579 # Restart under the correct shell. 580 exec $SHELL "$0" --no-reexec ${1+"$@"} 581fi 582 583if test "X$1" = X--fallback-echo; then 584 # used as fallback echo 585 shift 586 cat <<_LT_EOF 587$* 588_LT_EOF 589 exit 0 590fi 591 592# The HP-UX ksh and POSIX shell print the target directory to stdout 593# if CDPATH is set. 594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 595 596if test -z "$lt_ECHO"; then 597 if test "X${echo_test_string+set}" != Xset; then 598 # find a string as large as possible, as long as the shell can cope with it 599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 601 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 603 then 604 break 605 fi 606 done 607 fi 608 609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 : 613 else 614 # The Solaris, AIX, and Digital Unix default echo programs unquote 615 # backslashes. This makes it impossible to quote backslashes using 616 # echo "$something" | sed 's/\\/\\\\/g' 617 # 618 # So, first we look for a working echo in the user's PATH. 619 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 621 for dir in $PATH /usr/ucb; do 622 IFS="$lt_save_ifs" 623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 ECHO="$dir/echo" 628 break 629 fi 630 done 631 IFS="$lt_save_ifs" 632 633 if test "X$ECHO" = Xecho; then 634 # We didn't find a better echo, so look for alternatives. 635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 637 test "X$echo_testing_string" = "X$echo_test_string"; then 638 # This shell has a builtin print -r that does the trick. 639 ECHO='print -r' 640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 641 test "X$CONFIG_SHELL" != X/bin/ksh; then 642 # If we have ksh, try running configure again with it. 643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 644 export ORIGINAL_CONFIG_SHELL 645 CONFIG_SHELL=/bin/ksh 646 export CONFIG_SHELL 647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 648 else 649 # Try using printf. 650 ECHO='printf %s\n' 651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 653 test "X$echo_testing_string" = "X$echo_test_string"; then 654 # Cool, printf works 655 : 656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 657 test "X$echo_testing_string" = 'X\t' && 658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 659 test "X$echo_testing_string" = "X$echo_test_string"; then 660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 661 export CONFIG_SHELL 662 SHELL="$CONFIG_SHELL" 663 export SHELL 664 ECHO="$CONFIG_SHELL $0 --fallback-echo" 665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 666 test "X$echo_testing_string" = 'X\t' && 667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 668 test "X$echo_testing_string" = "X$echo_test_string"; then 669 ECHO="$CONFIG_SHELL $0 --fallback-echo" 670 else 671 # maybe with a smaller string... 672 prev=: 673 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 676 then 677 break 678 fi 679 prev="$cmd" 680 done 681 682 if test "$prev" != 'sed 50q "$0"'; then 683 echo_test_string=`eval $prev` 684 export echo_test_string 685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 686 else 687 # Oops. We lost completely, so just stick with echo. 688 ECHO=echo 689 fi 690 fi 691 fi 692 fi 693 fi 694fi 695 696# Copy echo and quote the copy suitably for passing to libtool from 697# the Makefile, instead of quoting the original, which is used later. 698lt_ECHO=$ECHO 699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 701fi 702 703 704 705 706test -n "$DJDIR" || exec 7<&0 </dev/null 707exec 6>&1 708 709# Name of the host. 710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 711# so uname gets run too. 712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714# 715# Initializations. 716# 717ac_default_prefix=/usr/local 718ac_clean_files= 719ac_config_libobj_dir=. 720LIBOBJS= 721cross_compiling=no 722subdirs= 723MFLAGS= 724MAKEFLAGS= 725 726# Identity of this package. 727PACKAGE_NAME='sqlite' 728PACKAGE_TARNAME='sqlite' 729PACKAGE_VERSION='3.37.0' 730PACKAGE_STRING='sqlite 3.37.0' 731PACKAGE_BUGREPORT='' 732PACKAGE_URL='' 733 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='LTLIBOBJS 771LIBOBJS 772BUILD_CFLAGS 773USE_GCOV 774OPT_FEATURE_FLAGS 775HAVE_ZLIB 776USE_AMALGAMATION 777AMALGAMATION_LINE_MACROS 778TARGET_DEBUG 779TARGET_HAVE_EDITLINE 780TARGET_HAVE_READLINE 781TARGET_READLINE_INC 782TARGET_READLINE_LIBS 783HAVE_TCL 784TCL_SHLIB_SUFFIX 785TCL_STUB_LIB_SPEC 786TCL_STUB_LIB_FLAG 787TCL_STUB_LIB_FILE 788TCL_LIB_SPEC 789TCL_LIB_FLAG 790TCL_LIB_FILE 791TCL_INCLUDE_SPEC 792TCL_SRC_DIR 793TCL_BIN_DIR 794TCL_VERSION 795TARGET_EXEEXT 796SQLITE_OS_WIN 797SQLITE_OS_UNIX 798BUILD_EXEEXT 799TEMP_STORE 800ALLOWRELEASE 801SQLITE_THREADSAFE 802BUILD_CC 803RELEASE 804VERSION 805program_prefix 806TCLLIBDIR 807TCLSH_CMD 808INSTALL_DATA 809INSTALL_SCRIPT 810INSTALL_PROGRAM 811CPP 812OTOOL64 813OTOOL 814LIPO 815NMEDIT 816DSYMUTIL 817lt_ECHO 818RANLIB 819STRIP 820AR 821OBJDUMP 822LN_S 823NM 824ac_ct_DUMPBIN 825DUMPBIN 826LD 827FGREP 828EGREP 829GREP 830SED 831OBJEXT 832EXEEXT 833ac_ct_CC 834CPPFLAGS 835LDFLAGS 836CFLAGS 837CC 838host_os 839host_vendor 840host_cpu 841host 842build_os 843build_vendor 844build_cpu 845build 846LIBTOOL 847target_alias 848host_alias 849build_alias 850LIBS 851ECHO_T 852ECHO_N 853ECHO_C 854DEFS 855mandir 856localedir 857libdir 858psdir 859pdfdir 860dvidir 861htmldir 862infodir 863docdir 864oldincludedir 865includedir 866localstatedir 867sharedstatedir 868sysconfdir 869datadir 870datarootdir 871libexecdir 872sbindir 873bindir 874program_transform_name 875prefix 876exec_prefix 877PACKAGE_URL 878PACKAGE_BUGREPORT 879PACKAGE_STRING 880PACKAGE_VERSION 881PACKAGE_TARNAME 882PACKAGE_NAME 883PATH_SEPARATOR 884SHELL' 885ac_subst_files='' 886ac_user_opts=' 887enable_option_checking 888enable_shared 889enable_static 890with_pic 891enable_fast_install 892with_gnu_ld 893enable_libtool_lock 894enable_largefile 895enable_threadsafe 896enable_releasemode 897enable_tempstore 898enable_tcl 899with_tcl 900enable_editline 901enable_readline 902with_readline_lib 903with_readline_inc 904enable_debug 905enable_amalgamation 906amalgamation_line_macros 907enable_load_extension 908enable_math 909enable_all 910enable_memsys5 911enable_memsys3 912enable_fts3 913enable_fts4 914enable_fts5 915enable_json1 916enable_update_limit 917enable_geopoly 918enable_rtree 919enable_session 920enable_gcov 921' 922 ac_precious_vars='build_alias 923host_alias 924target_alias 925CC 926CFLAGS 927LDFLAGS 928LIBS 929CPPFLAGS 930CPP 931TCLLIBDIR' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970includedir='${prefix}/include' 971oldincludedir='/usr/include' 972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 973infodir='${datarootdir}/info' 974htmldir='${docdir}' 975dvidir='${docdir}' 976pdfdir='${docdir}' 977psdir='${docdir}' 978libdir='${exec_prefix}/lib' 979localedir='${datarootdir}/locale' 980mandir='${datarootdir}/man' 981 982ac_prev= 983ac_dashdash= 984for ac_option 985do 986 # If the previous option needs an argument, assign it. 987 if test -n "$ac_prev"; then 988 eval $ac_prev=\$ac_option 989 ac_prev= 990 continue 991 fi 992 993 case $ac_option in 994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 995 *=) ac_optarg= ;; 996 *) ac_optarg=yes ;; 997 esac 998 999 # Accept the important Cygnus configure options, so we can diagnose typos. 1000 1001 case $ac_dashdash$ac_option in 1002 --) 1003 ac_dashdash=yes ;; 1004 1005 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1006 ac_prev=bindir ;; 1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1008 bindir=$ac_optarg ;; 1009 1010 -build | --build | --buil | --bui | --bu) 1011 ac_prev=build_alias ;; 1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1013 build_alias=$ac_optarg ;; 1014 1015 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1017 ac_prev=cache_file ;; 1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1020 cache_file=$ac_optarg ;; 1021 1022 --config-cache | -C) 1023 cache_file=config.cache ;; 1024 1025 -datadir | --datadir | --datadi | --datad) 1026 ac_prev=datadir ;; 1027 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1028 datadir=$ac_optarg ;; 1029 1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1031 | --dataroo | --dataro | --datar) 1032 ac_prev=datarootdir ;; 1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1035 datarootdir=$ac_optarg ;; 1036 1037 -disable-* | --disable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=no ;; 1052 1053 -docdir | --docdir | --docdi | --doc | --do) 1054 ac_prev=docdir ;; 1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1056 docdir=$ac_optarg ;; 1057 1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1059 ac_prev=dvidir ;; 1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1061 dvidir=$ac_optarg ;; 1062 1063 -enable-* | --enable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 as_fn_error $? "invalid feature name: $ac_useropt" 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072"enable_$ac_useropt" 1073"*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=\$ac_optarg ;; 1078 1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1081 | --exec | --exe | --ex) 1082 ac_prev=exec_prefix ;; 1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1085 | --exec=* | --exe=* | --ex=*) 1086 exec_prefix=$ac_optarg ;; 1087 1088 -gas | --gas | --ga | --g) 1089 # Obsolete; use --with-gas. 1090 with_gas=yes ;; 1091 1092 -help | --help | --hel | --he | -h) 1093 ac_init_help=long ;; 1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1095 ac_init_help=recursive ;; 1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1097 ac_init_help=short ;; 1098 1099 -host | --host | --hos | --ho) 1100 ac_prev=host_alias ;; 1101 -host=* | --host=* | --hos=* | --ho=*) 1102 host_alias=$ac_optarg ;; 1103 1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1105 ac_prev=htmldir ;; 1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1107 | --ht=*) 1108 htmldir=$ac_optarg ;; 1109 1110 -includedir | --includedir | --includedi | --included | --include \ 1111 | --includ | --inclu | --incl | --inc) 1112 ac_prev=includedir ;; 1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1114 | --includ=* | --inclu=* | --incl=* | --inc=*) 1115 includedir=$ac_optarg ;; 1116 1117 -infodir | --infodir | --infodi | --infod | --info | --inf) 1118 ac_prev=infodir ;; 1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1120 infodir=$ac_optarg ;; 1121 1122 -libdir | --libdir | --libdi | --libd) 1123 ac_prev=libdir ;; 1124 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1125 libdir=$ac_optarg ;; 1126 1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1128 | --libexe | --libex | --libe) 1129 ac_prev=libexecdir ;; 1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1131 | --libexe=* | --libex=* | --libe=*) 1132 libexecdir=$ac_optarg ;; 1133 1134 -localedir | --localedir | --localedi | --localed | --locale) 1135 ac_prev=localedir ;; 1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1137 localedir=$ac_optarg ;; 1138 1139 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1140 | --localstate | --localstat | --localsta | --localst | --locals) 1141 ac_prev=localstatedir ;; 1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1144 localstatedir=$ac_optarg ;; 1145 1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1147 ac_prev=mandir ;; 1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1149 mandir=$ac_optarg ;; 1150 1151 -nfp | --nfp | --nf) 1152 # Obsolete; use --without-fp. 1153 with_fp=no ;; 1154 1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1156 | --no-cr | --no-c | -n) 1157 no_create=yes ;; 1158 1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1161 no_recursion=yes ;; 1162 1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1165 | --oldin | --oldi | --old | --ol | --o) 1166 ac_prev=oldincludedir ;; 1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1170 oldincludedir=$ac_optarg ;; 1171 1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1173 ac_prev=prefix ;; 1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1175 prefix=$ac_optarg ;; 1176 1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1178 | --program-pre | --program-pr | --program-p) 1179 ac_prev=program_prefix ;; 1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1182 program_prefix=$ac_optarg ;; 1183 1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1185 | --program-suf | --program-su | --program-s) 1186 ac_prev=program_suffix ;; 1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1189 program_suffix=$ac_optarg ;; 1190 1191 -program-transform-name | --program-transform-name \ 1192 | --program-transform-nam | --program-transform-na \ 1193 | --program-transform-n | --program-transform- \ 1194 | --program-transform | --program-transfor \ 1195 | --program-transfo | --program-transf \ 1196 | --program-trans | --program-tran \ 1197 | --progr-tra | --program-tr | --program-t) 1198 ac_prev=program_transform_name ;; 1199 -program-transform-name=* | --program-transform-name=* \ 1200 | --program-transform-nam=* | --program-transform-na=* \ 1201 | --program-transform-n=* | --program-transform-=* \ 1202 | --program-transform=* | --program-transfor=* \ 1203 | --program-transfo=* | --program-transf=* \ 1204 | --program-trans=* | --program-tran=* \ 1205 | --progr-tra=* | --program-tr=* | --program-t=*) 1206 program_transform_name=$ac_optarg ;; 1207 1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1209 ac_prev=pdfdir ;; 1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1211 pdfdir=$ac_optarg ;; 1212 1213 -psdir | --psdir | --psdi | --psd | --ps) 1214 ac_prev=psdir ;; 1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1216 psdir=$ac_optarg ;; 1217 1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1219 | -silent | --silent | --silen | --sile | --sil) 1220 silent=yes ;; 1221 1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1223 ac_prev=sbindir ;; 1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1225 | --sbi=* | --sb=*) 1226 sbindir=$ac_optarg ;; 1227 1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1230 | --sharedst | --shareds | --shared | --share | --shar \ 1231 | --sha | --sh) 1232 ac_prev=sharedstatedir ;; 1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1236 | --sha=* | --sh=*) 1237 sharedstatedir=$ac_optarg ;; 1238 1239 -site | --site | --sit) 1240 ac_prev=site ;; 1241 -site=* | --site=* | --sit=*) 1242 site=$ac_optarg ;; 1243 1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1245 ac_prev=srcdir ;; 1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1247 srcdir=$ac_optarg ;; 1248 1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1250 | --syscon | --sysco | --sysc | --sys | --sy) 1251 ac_prev=sysconfdir ;; 1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1254 sysconfdir=$ac_optarg ;; 1255 1256 -target | --target | --targe | --targ | --tar | --ta | --t) 1257 ac_prev=target_alias ;; 1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1259 target_alias=$ac_optarg ;; 1260 1261 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1262 verbose=yes ;; 1263 1264 -version | --version | --versio | --versi | --vers | -V) 1265 ac_init_version=: ;; 1266 1267 -with-* | --with-*) 1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1269 # Reject names that are not valid shell variable names. 1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1271 as_fn_error $? "invalid package name: $ac_useropt" 1272 ac_useropt_orig=$ac_useropt 1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1274 case $ac_user_opts in 1275 *" 1276"with_$ac_useropt" 1277"*) ;; 1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1279 ac_unrecognized_sep=', ';; 1280 esac 1281 eval with_$ac_useropt=\$ac_optarg ;; 1282 1283 -without-* | --without-*) 1284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1287 as_fn_error $? "invalid package name: $ac_useropt" 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292"with_$ac_useropt" 1293"*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=no ;; 1298 1299 --x) 1300 # Obsolete; use --with-x. 1301 with_x=yes ;; 1302 1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1304 | --x-incl | --x-inc | --x-in | --x-i) 1305 ac_prev=x_includes ;; 1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1308 x_includes=$ac_optarg ;; 1309 1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1312 ac_prev=x_libraries ;; 1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1315 x_libraries=$ac_optarg ;; 1316 1317 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1318Try \`$0 --help' for more information" 1319 ;; 1320 1321 *=*) 1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1323 # Reject names that are not valid shell variable names. 1324 case $ac_envvar in #( 1325 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1326 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1327 esac 1328 eval $ac_envvar=\$ac_optarg 1329 export $ac_envvar ;; 1330 1331 *) 1332 # FIXME: should be removed in autoconf 3.0. 1333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1336 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1337 ;; 1338 1339 esac 1340done 1341 1342if test -n "$ac_prev"; then 1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1344 as_fn_error $? "missing argument to $ac_option" 1345fi 1346 1347if test -n "$ac_unrecognized_opts"; then 1348 case $enable_option_checking in 1349 no) ;; 1350 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1352 esac 1353fi 1354 1355# Check all directory arguments for consistency. 1356for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1357 datadir sysconfdir sharedstatedir localstatedir includedir \ 1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1359 libdir localedir mandir 1360do 1361 eval ac_val=\$$ac_var 1362 # Remove trailing slashes. 1363 case $ac_val in 1364 */ ) 1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1366 eval $ac_var=\$ac_val;; 1367 esac 1368 # Be sure to have absolute directory names. 1369 case $ac_val in 1370 [\\/$]* | ?:[\\/]* ) continue;; 1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1372 esac 1373 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1374done 1375 1376# There might be people who depend on the old broken behavior: `$host' 1377# used to hold the argument of --host etc. 1378# FIXME: To remove some day. 1379build=$build_alias 1380host=$host_alias 1381target=$target_alias 1382 1383# FIXME: To remove some day. 1384if test "x$host_alias" != x; then 1385 if test "x$build_alias" = x; then 1386 cross_compiling=maybe 1387 elif test "x$build_alias" != "x$host_alias"; then 1388 cross_compiling=yes 1389 fi 1390fi 1391 1392ac_tool_prefix= 1393test -n "$host_alias" && ac_tool_prefix=$host_alias- 1394 1395test "$silent" = yes && exec 6>/dev/null 1396 1397 1398ac_pwd=`pwd` && test -n "$ac_pwd" && 1399ac_ls_di=`ls -di .` && 1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1401 as_fn_error $? "working directory cannot be determined" 1402test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1403 as_fn_error $? "pwd does not report name of working directory" 1404 1405 1406# Find the source files, if location was not specified. 1407if test -z "$srcdir"; then 1408 ac_srcdir_defaulted=yes 1409 # Try the directory containing this script, then the parent directory. 1410 ac_confdir=`$as_dirname -- "$as_myself" || 1411$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1412 X"$as_myself" : 'X\(//\)[^/]' \| \ 1413 X"$as_myself" : 'X\(//\)$' \| \ 1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1415$as_echo X"$as_myself" | 1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1417 s//\1/ 1418 q 1419 } 1420 /^X\(\/\/\)[^/].*/{ 1421 s//\1/ 1422 q 1423 } 1424 /^X\(\/\/\)$/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\).*/{ 1429 s//\1/ 1430 q 1431 } 1432 s/.*/./; q'` 1433 srcdir=$ac_confdir 1434 if test ! -r "$srcdir/$ac_unique_file"; then 1435 srcdir=.. 1436 fi 1437else 1438 ac_srcdir_defaulted=no 1439fi 1440if test ! -r "$srcdir/$ac_unique_file"; then 1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1442 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1443fi 1444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1445ac_abs_confdir=`( 1446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1447 pwd)` 1448# When building in place, set srcdir=. 1449if test "$ac_abs_confdir" = "$ac_pwd"; then 1450 srcdir=. 1451fi 1452# Remove unnecessary trailing slashes from srcdir. 1453# Double slashes in file names in object file debugging info 1454# mess up M-x gdb in Emacs. 1455case $srcdir in 1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1457esac 1458for ac_var in $ac_precious_vars; do 1459 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1460 eval ac_env_${ac_var}_value=\$${ac_var} 1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1462 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1463done 1464 1465# 1466# Report the --help message. 1467# 1468if test "$ac_init_help" = "long"; then 1469 # Omit some internal or obsolete options to make the list less imposing. 1470 # This message is too long to be a string in the A/UX 3.1 sh. 1471 cat <<_ACEOF 1472\`configure' configures sqlite 3.37.0 to adapt to many kinds of systems. 1473 1474Usage: $0 [OPTION]... [VAR=VALUE]... 1475 1476To assign environment variables (e.g., CC, CFLAGS...), specify them as 1477VAR=VALUE. See below for descriptions of some of the useful variables. 1478 1479Defaults for the options are specified in brackets. 1480 1481Configuration: 1482 -h, --help display this help and exit 1483 --help=short display options specific to this package 1484 --help=recursive display the short help of all the included packages 1485 -V, --version display version information and exit 1486 -q, --quiet, --silent do not print \`checking ...' messages 1487 --cache-file=FILE cache test results in FILE [disabled] 1488 -C, --config-cache alias for \`--cache-file=config.cache' 1489 -n, --no-create do not create output files 1490 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1491 1492Installation directories: 1493 --prefix=PREFIX install architecture-independent files in PREFIX 1494 [$ac_default_prefix] 1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1496 [PREFIX] 1497 1498By default, \`make install' will install all the files in 1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1500an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1501for instance \`--prefix=\$HOME'. 1502 1503For better control, use the options below. 1504 1505Fine tuning of the installation directories: 1506 --bindir=DIR user executables [EPREFIX/bin] 1507 --sbindir=DIR system admin executables [EPREFIX/sbin] 1508 --libexecdir=DIR program executables [EPREFIX/libexec] 1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1512 --libdir=DIR object code libraries [EPREFIX/lib] 1513 --includedir=DIR C header files [PREFIX/include] 1514 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1517 --infodir=DIR info documentation [DATAROOTDIR/info] 1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1519 --mandir=DIR man documentation [DATAROOTDIR/man] 1520 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1521 --htmldir=DIR html documentation [DOCDIR] 1522 --dvidir=DIR dvi documentation [DOCDIR] 1523 --pdfdir=DIR pdf documentation [DOCDIR] 1524 --psdir=DIR ps documentation [DOCDIR] 1525_ACEOF 1526 1527 cat <<\_ACEOF 1528 1529System types: 1530 --build=BUILD configure for building on BUILD [guessed] 1531 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1532_ACEOF 1533fi 1534 1535if test -n "$ac_init_help"; then 1536 case $ac_init_help in 1537 short | recursive ) echo "Configuration of sqlite 3.37.0:";; 1538 esac 1539 cat <<\_ACEOF 1540 1541Optional Features: 1542 --disable-option-checking ignore unrecognized --enable/--with options 1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1545 --enable-shared[=PKGS] build shared libraries [default=yes] 1546 --enable-static[=PKGS] build static libraries [default=yes] 1547 --enable-fast-install[=PKGS] 1548 optimize for fast installation [default=yes] 1549 --disable-libtool-lock avoid locking (might break parallel builds) 1550 --disable-largefile omit support for large files 1551 --disable-threadsafe Disable mutexing 1552 --enable-releasemode Support libtool link to release mode 1553 --enable-tempstore Use an in-ram database for temporary tables 1554 (never,no,yes,always) 1555 --disable-tcl do not build TCL extension 1556 --enable-editline enable BSD editline support 1557 --disable-readline disable readline support 1558 --enable-debug enable debugging & verbose explain 1559 --disable-amalgamation Disable the amalgamation and instead build all files 1560 separately 1561 --disable-load-extension 1562 Disable loading of external extensions 1563 --disable-math Disable math functions 1564 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions 1565 --enable-memsys5 Enable MEMSYS5 1566 --enable-memsys3 Enable MEMSYS3 1567 --enable-fts3 Enable the FTS3 extension 1568 --enable-fts4 Enable the FTS4 extension 1569 --enable-fts5 Enable the FTS5 extension 1570 --enable-json1 Enable the JSON1 extension 1571 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause 1572 --enable-geopoly Enable the GEOPOLY extension 1573 --enable-rtree Enable the RTREE extension 1574 --enable-session Enable the SESSION extension 1575 --enable-gcov Enable coverage testing using gcov 1576 1577Optional Packages: 1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1580 --with-pic try to use only PIC/non-PIC objects [default=use 1581 both] 1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1583 --with-tcl=DIR directory containing tcl configuration 1584 (tclConfig.sh) 1585 --with-readline-lib specify readline library 1586 --with-readline-inc specify readline include paths 1587 1588Some influential environment variables: 1589 CC C compiler command 1590 CFLAGS C compiler flags 1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1592 nonstandard directory <lib dir> 1593 LIBS libraries to pass to the linker, e.g. -l<library> 1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1595 you have headers in a nonstandard directory <include dir> 1596 CPP C preprocessor 1597 TCLLIBDIR Where to install tcl plugin 1598 1599Use these variables to override the choices made by `configure' or to help 1600it to find libraries and programs with nonstandard names/locations. 1601 1602Report bugs to the package provider. 1603_ACEOF 1604ac_status=$? 1605fi 1606 1607if test "$ac_init_help" = "recursive"; then 1608 # If there are subdirs, report their specific --help. 1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1610 test -d "$ac_dir" || 1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1612 continue 1613 ac_builddir=. 1614 1615case "$ac_dir" in 1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617*) 1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1619 # A ".." for each directory in $ac_dir_suffix. 1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1621 case $ac_top_builddir_sub in 1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1624 esac ;; 1625esac 1626ac_abs_top_builddir=$ac_pwd 1627ac_abs_builddir=$ac_pwd$ac_dir_suffix 1628# for backward compatibility: 1629ac_top_builddir=$ac_top_build_prefix 1630 1631case $srcdir in 1632 .) # We are building in place. 1633 ac_srcdir=. 1634 ac_top_srcdir=$ac_top_builddir_sub 1635 ac_abs_top_srcdir=$ac_pwd ;; 1636 [\\/]* | ?:[\\/]* ) # Absolute name. 1637 ac_srcdir=$srcdir$ac_dir_suffix; 1638 ac_top_srcdir=$srcdir 1639 ac_abs_top_srcdir=$srcdir ;; 1640 *) # Relative name. 1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1642 ac_top_srcdir=$ac_top_build_prefix$srcdir 1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1644esac 1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1646 1647 cd "$ac_dir" || { ac_status=$?; continue; } 1648 # Check for guested configure. 1649 if test -f "$ac_srcdir/configure.gnu"; then 1650 echo && 1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1652 elif test -f "$ac_srcdir/configure"; then 1653 echo && 1654 $SHELL "$ac_srcdir/configure" --help=recursive 1655 else 1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1657 fi || ac_status=$? 1658 cd "$ac_pwd" || { ac_status=$?; break; } 1659 done 1660fi 1661 1662test -n "$ac_init_help" && exit $ac_status 1663if $ac_init_version; then 1664 cat <<\_ACEOF 1665sqlite configure 3.37.0 1666generated by GNU Autoconf 2.69 1667 1668Copyright (C) 2012 Free Software Foundation, Inc. 1669This configure script is free software; the Free Software Foundation 1670gives unlimited permission to copy, distribute and modify it. 1671_ACEOF 1672 exit 1673fi 1674 1675## ------------------------ ## 1676## Autoconf initialization. ## 1677## ------------------------ ## 1678 1679# ac_fn_c_try_compile LINENO 1680# -------------------------- 1681# Try to compile conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_compile () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext 1686 if { { ac_try="$ac_compile" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_compile") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest.$ac_objext; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_compile 1716 1717# ac_fn_c_try_link LINENO 1718# ----------------------- 1719# Try to link conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_link () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 rm -f conftest.$ac_objext conftest$ac_exeext 1724 if { { ac_try="$ac_link" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { 1740 test -z "$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 } && test -s conftest$ac_exeext && { 1743 test "$cross_compiling" = yes || 1744 test -x conftest$ac_exeext 1745 }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1755 # interfere with the next link command; also delete a directory that is 1756 # left behind by Apple's compiler. We do this before executing the actions. 1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_link 1762 1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1764# ------------------------------------------------------- 1765# Tests whether HEADER exists and can be compiled using the include files in 1766# INCLUDES, setting the cache variable VAR accordingly. 1767ac_fn_c_check_header_compile () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771$as_echo_n "checking for $2... " >&6; } 1772if eval \${$3+:} false; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778#include <$2> 1779_ACEOF 1780if ac_fn_c_try_compile "$LINENO"; then : 1781 eval "$3=yes" 1782else 1783 eval "$3=no" 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_header_compile 1793 1794# ac_fn_c_try_cpp LINENO 1795# ---------------------- 1796# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1797ac_fn_c_try_cpp () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 if { { ac_try="$ac_cpp conftest.$ac_ext" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } > conftest.i && { 1816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1817 test ! -s conftest.err 1818 }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_cpp 1830 1831# ac_fn_c_try_run LINENO 1832# ---------------------- 1833# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1834# that executables *can* be run. 1835ac_fn_c_try_run () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 if { { ac_try="$ac_link" 1839case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_link") 2>&5 1846 ac_status=$? 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1849 { { case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_try") 2>&5 1856 ac_status=$? 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; }; }; then : 1859 ac_retval=0 1860else 1861 $as_echo "$as_me: program exited with status $ac_status" >&5 1862 $as_echo "$as_me: failed program was:" >&5 1863sed 's/^/| /' conftest.$ac_ext >&5 1864 1865 ac_retval=$ac_status 1866fi 1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 as_fn_set_status $ac_retval 1870 1871} # ac_fn_c_try_run 1872 1873# ac_fn_c_check_func LINENO FUNC VAR 1874# ---------------------------------- 1875# Tests whether FUNC exists, setting the cache variable VAR accordingly 1876ac_fn_c_check_func () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1888#define $2 innocuous_$2 1889 1890/* System header to define __stub macros and hopefully few prototypes, 1891 which can conflict with char $2 (); below. 1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1893 <limits.h> exists even on freestanding compilers. */ 1894 1895#ifdef __STDC__ 1896# include <limits.h> 1897#else 1898# include <assert.h> 1899#endif 1900 1901#undef $2 1902 1903/* Override any GCC internal prototype to avoid an error. 1904 Use char because int might match the return type of a GCC 1905 builtin and then its argument prototype would still apply. */ 1906#ifdef __cplusplus 1907extern "C" 1908#endif 1909char $2 (); 1910/* The GNU C library defines this for functions which it implements 1911 to always fail with ENOSYS. Some functions are actually named 1912 something starting with __ and the normal name is an alias. */ 1913#if defined __stub_$2 || defined __stub___$2 1914choke me 1915#endif 1916 1917int 1918main () 1919{ 1920return $2 (); 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925if ac_fn_c_try_link "$LINENO"; then : 1926 eval "$3=yes" 1927else 1928 eval "$3=no" 1929fi 1930rm -f core conftest.err conftest.$ac_objext \ 1931 conftest$ac_exeext conftest.$ac_ext 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 1938} # ac_fn_c_check_func 1939 1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1941# ------------------------------------------- 1942# Tests whether TYPE exists after having included INCLUDES, setting cache 1943# variable VAR accordingly. 1944ac_fn_c_check_type () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948$as_echo_n "checking for $2... " >&6; } 1949if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951else 1952 eval "$3=no" 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956int 1957main () 1958{ 1959if (sizeof ($2)) 1960 return 0; 1961 ; 1962 return 0; 1963} 1964_ACEOF 1965if ac_fn_c_try_compile "$LINENO"; then : 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968$4 1969int 1970main () 1971{ 1972if (sizeof (($2))) 1973 return 0; 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978if ac_fn_c_try_compile "$LINENO"; then : 1979 1980else 1981 eval "$3=yes" 1982fi 1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1984fi 1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1986fi 1987eval ac_res=\$$3 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989$as_echo "$ac_res" >&6; } 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 1992} # ac_fn_c_check_type 1993 1994# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1995# ------------------------------------------------------- 1996# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1997# the include files in INCLUDES and setting the cache variable VAR 1998# accordingly. 1999ac_fn_c_check_header_mongrel () 2000{ 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 if eval \${$3+:} false; then : 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2004$as_echo_n "checking for $2... " >&6; } 2005if eval \${$3+:} false; then : 2006 $as_echo_n "(cached) " >&6 2007fi 2008eval ac_res=\$$3 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010$as_echo "$ac_res" >&6; } 2011else 2012 # Is the header compilable? 2013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2014$as_echo_n "checking $2 usability... " >&6; } 2015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018#include <$2> 2019_ACEOF 2020if ac_fn_c_try_compile "$LINENO"; then : 2021 ac_header_compiler=yes 2022else 2023 ac_header_compiler=no 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2027$as_echo "$ac_header_compiler" >&6; } 2028 2029# Is the header present? 2030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2031$as_echo_n "checking $2 presence... " >&6; } 2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033/* end confdefs.h. */ 2034#include <$2> 2035_ACEOF 2036if ac_fn_c_try_cpp "$LINENO"; then : 2037 ac_header_preproc=yes 2038else 2039 ac_header_preproc=no 2040fi 2041rm -f conftest.err conftest.i conftest.$ac_ext 2042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2043$as_echo "$ac_header_preproc" >&6; } 2044 2045# So? What about this header? 2046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2047 yes:no: ) 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2049$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2052 ;; 2053 no:yes:* ) 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2055$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2057$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2059$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2061$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2063$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2064 ;; 2065esac 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2067$as_echo_n "checking for $2... " >&6; } 2068if eval \${$3+:} false; then : 2069 $as_echo_n "(cached) " >&6 2070else 2071 eval "$3=\$ac_header_compiler" 2072fi 2073eval ac_res=\$$3 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2075$as_echo "$ac_res" >&6; } 2076fi 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 2079} # ac_fn_c_check_header_mongrel 2080cat >config.log <<_ACEOF 2081This file contains any messages produced by compilers while 2082running configure, to aid debugging if configure makes a mistake. 2083 2084It was created by sqlite $as_me 3.37.0, which was 2085generated by GNU Autoconf 2.69. Invocation command line was 2086 2087 $ $0 $@ 2088 2089_ACEOF 2090exec 5>>config.log 2091{ 2092cat <<_ASUNAME 2093## --------- ## 2094## Platform. ## 2095## --------- ## 2096 2097hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2098uname -m = `(uname -m) 2>/dev/null || echo unknown` 2099uname -r = `(uname -r) 2>/dev/null || echo unknown` 2100uname -s = `(uname -s) 2>/dev/null || echo unknown` 2101uname -v = `(uname -v) 2>/dev/null || echo unknown` 2102 2103/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2104/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2105 2106/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2107/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2108/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2109/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2110/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2111/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2112/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2113 2114_ASUNAME 2115 2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2117for as_dir in $PATH 2118do 2119 IFS=$as_save_IFS 2120 test -z "$as_dir" && as_dir=. 2121 $as_echo "PATH: $as_dir" 2122 done 2123IFS=$as_save_IFS 2124 2125} >&5 2126 2127cat >&5 <<_ACEOF 2128 2129 2130## ----------- ## 2131## Core tests. ## 2132## ----------- ## 2133 2134_ACEOF 2135 2136 2137# Keep a trace of the command line. 2138# Strip out --no-create and --no-recursion so they do not pile up. 2139# Strip out --silent because we don't want to record it for future runs. 2140# Also quote any args containing shell meta-characters. 2141# Make two passes to allow for proper duplicate-argument suppression. 2142ac_configure_args= 2143ac_configure_args0= 2144ac_configure_args1= 2145ac_must_keep_next=false 2146for ac_pass in 1 2 2147do 2148 for ac_arg 2149 do 2150 case $ac_arg in 2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2153 | -silent | --silent | --silen | --sile | --sil) 2154 continue ;; 2155 *\'*) 2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2157 esac 2158 case $ac_pass in 2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2160 2) 2161 as_fn_append ac_configure_args1 " '$ac_arg'" 2162 if test $ac_must_keep_next = true; then 2163 ac_must_keep_next=false # Got value, back to normal. 2164 else 2165 case $ac_arg in 2166 *=* | --config-cache | -C | -disable-* | --disable-* \ 2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2169 | -with-* | --with-* | -without-* | --without-* | --x) 2170 case "$ac_configure_args0 " in 2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2172 esac 2173 ;; 2174 -* ) ac_must_keep_next=true ;; 2175 esac 2176 fi 2177 as_fn_append ac_configure_args " '$ac_arg'" 2178 ;; 2179 esac 2180 done 2181done 2182{ ac_configure_args0=; unset ac_configure_args0;} 2183{ ac_configure_args1=; unset ac_configure_args1;} 2184 2185# When interrupted or exit'd, cleanup temporary files, and complete 2186# config.log. We remove comments because anyway the quotes in there 2187# would cause problems or look ugly. 2188# WARNING: Use '\'' to represent an apostrophe within the trap. 2189# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2190trap 'exit_status=$? 2191 # Save into config.log some information that might help in debugging. 2192 { 2193 echo 2194 2195 $as_echo "## ---------------- ## 2196## Cache variables. ## 2197## ---------------- ##" 2198 echo 2199 # The following way of writing the cache mishandles newlines in values, 2200( 2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2202 eval ac_val=\$$ac_var 2203 case $ac_val in #( 2204 *${as_nl}*) 2205 case $ac_var in #( 2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2208 esac 2209 case $ac_var in #( 2210 _ | IFS | as_nl) ;; #( 2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2212 *) { eval $ac_var=; unset $ac_var;} ;; 2213 esac ;; 2214 esac 2215 done 2216 (set) 2>&1 | 2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2218 *${as_nl}ac_space=\ *) 2219 sed -n \ 2220 "s/'\''/'\''\\\\'\'''\''/g; 2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2222 ;; #( 2223 *) 2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2225 ;; 2226 esac | 2227 sort 2228) 2229 echo 2230 2231 $as_echo "## ----------------- ## 2232## Output variables. ## 2233## ----------------- ##" 2234 echo 2235 for ac_var in $ac_subst_vars 2236 do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in 2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2240 esac 2241 $as_echo "$ac_var='\''$ac_val'\''" 2242 done | sort 2243 echo 2244 2245 if test -n "$ac_subst_files"; then 2246 $as_echo "## ------------------- ## 2247## File substitutions. ## 2248## ------------------- ##" 2249 echo 2250 for ac_var in $ac_subst_files 2251 do 2252 eval ac_val=\$$ac_var 2253 case $ac_val in 2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2255 esac 2256 $as_echo "$ac_var='\''$ac_val'\''" 2257 done | sort 2258 echo 2259 fi 2260 2261 if test -s confdefs.h; then 2262 $as_echo "## ----------- ## 2263## confdefs.h. ## 2264## ----------- ##" 2265 echo 2266 cat confdefs.h 2267 echo 2268 fi 2269 test "$ac_signal" != 0 && 2270 $as_echo "$as_me: caught signal $ac_signal" 2271 $as_echo "$as_me: exit $exit_status" 2272 } >&5 2273 rm -f core *.core core.conftest.* && 2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2275 exit $exit_status 2276' 0 2277for ac_signal in 1 2 13 15; do 2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2279done 2280ac_signal=0 2281 2282# confdefs.h avoids OS command line length limits that DEFS can exceed. 2283rm -f -r conftest* confdefs.h 2284 2285$as_echo "/* confdefs.h */" > confdefs.h 2286 2287# Predefined preprocessor variables. 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_NAME "$PACKAGE_NAME" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2295_ACEOF 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_VERSION "$PACKAGE_VERSION" 2299_ACEOF 2300 2301cat >>confdefs.h <<_ACEOF 2302#define PACKAGE_STRING "$PACKAGE_STRING" 2303_ACEOF 2304 2305cat >>confdefs.h <<_ACEOF 2306#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2307_ACEOF 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE_URL "$PACKAGE_URL" 2311_ACEOF 2312 2313 2314# Let the site file select an alternate cache file if it wants to. 2315# Prefer an explicitly selected file to automatically selected ones. 2316ac_site_file1=NONE 2317ac_site_file2=NONE 2318if test -n "$CONFIG_SITE"; then 2319 # We do not want a PATH search for config.site. 2320 case $CONFIG_SITE in #(( 2321 -*) ac_site_file1=./$CONFIG_SITE;; 2322 */*) ac_site_file1=$CONFIG_SITE;; 2323 *) ac_site_file1=./$CONFIG_SITE;; 2324 esac 2325elif test "x$prefix" != xNONE; then 2326 ac_site_file1=$prefix/share/config.site 2327 ac_site_file2=$prefix/etc/config.site 2328else 2329 ac_site_file1=$ac_default_prefix/share/config.site 2330 ac_site_file2=$ac_default_prefix/etc/config.site 2331fi 2332for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2333do 2334 test "x$ac_site_file" = xNONE && continue 2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2337$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2338 sed 's/^/| /' "$ac_site_file" >&5 2339 . "$ac_site_file" \ 2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2342as_fn_error $? "failed to load site script $ac_site_file 2343See \`config.log' for more details" "$LINENO" 5; } 2344 fi 2345done 2346 2347if test -r "$cache_file"; then 2348 # Some versions of bash will fail to source /dev/null (special files 2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2352$as_echo "$as_me: loading cache $cache_file" >&6;} 2353 case $cache_file in 2354 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2355 *) . "./$cache_file";; 2356 esac 2357 fi 2358else 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2360$as_echo "$as_me: creating cache $cache_file" >&6;} 2361 >$cache_file 2362fi 2363 2364# Check that the precious variables saved in the cache have kept the same 2365# value. 2366ac_cache_corrupted=false 2367for ac_var in $ac_precious_vars; do 2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2369 eval ac_new_set=\$ac_env_${ac_var}_set 2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2371 eval ac_new_val=\$ac_env_${ac_var}_value 2372 case $ac_old_set,$ac_new_set in 2373 set,) 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2375$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2376 ac_cache_corrupted=: ;; 2377 ,set) 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2379$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2380 ac_cache_corrupted=: ;; 2381 ,);; 2382 *) 2383 if test "x$ac_old_val" != "x$ac_new_val"; then 2384 # differences in whitespace do not lead to failure. 2385 ac_old_val_w=`echo x $ac_old_val` 2386 ac_new_val_w=`echo x $ac_new_val` 2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2389$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2390 ac_cache_corrupted=: 2391 else 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2393$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2394 eval $ac_var=\$ac_old_val 2395 fi 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2397$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2399$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2400 fi;; 2401 esac 2402 # Pass precious variables to config.status. 2403 if test "$ac_new_set" = set; then 2404 case $ac_new_val in 2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2406 *) ac_arg=$ac_var=$ac_new_val ;; 2407 esac 2408 case " $ac_configure_args " in 2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2411 esac 2412 fi 2413done 2414if $ac_cache_corrupted; then 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2418$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2420fi 2421## -------------------- ## 2422## Main body of script. ## 2423## -------------------- ## 2424 2425ac_ext=c 2426ac_cpp='$CPP $CPPFLAGS' 2427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2429ac_compiler_gnu=$ac_cv_c_compiler_gnu 2430 2431 2432 2433sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2434if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then 2435as_fn_error $? "configure script is out of date: 2436 configure \$PACKAGE_VERSION = $PACKAGE_VERSION 2437 top level VERSION file = $sqlite_version_sanity_check 2438please regen with autoconf" "$LINENO" 5 2439fi 2440 2441######### 2442# Programs needed 2443# 2444case `pwd` in 2445 *\ * | *\ *) 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2447$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2448esac 2449 2450 2451 2452macro_version='2.2.6' 2453macro_revision='1.3012' 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467ltmain="$ac_aux_dir/ltmain.sh" 2468 2469ac_aux_dir= 2470for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2471 if test -f "$ac_dir/install-sh"; then 2472 ac_aux_dir=$ac_dir 2473 ac_install_sh="$ac_aux_dir/install-sh -c" 2474 break 2475 elif test -f "$ac_dir/install.sh"; then 2476 ac_aux_dir=$ac_dir 2477 ac_install_sh="$ac_aux_dir/install.sh -c" 2478 break 2479 elif test -f "$ac_dir/shtool"; then 2480 ac_aux_dir=$ac_dir 2481 ac_install_sh="$ac_aux_dir/shtool install -c" 2482 break 2483 fi 2484done 2485if test -z "$ac_aux_dir"; then 2486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2487fi 2488 2489# These three variables are undocumented and unsupported, 2490# and are intended to be withdrawn in a future Autoconf release. 2491# They can cause serious problems if a builder's source tree is in a directory 2492# whose full name contains unusual characters. 2493ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2494ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2495ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2496 2497 2498# Make sure we can run config.sub. 2499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2503$as_echo_n "checking build system type... " >&6; } 2504if ${ac_cv_build+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506else 2507 ac_build_alias=$build_alias 2508test "x$ac_build_alias" = x && 2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2510test "x$ac_build_alias" = x && 2511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2514 2515fi 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2517$as_echo "$ac_cv_build" >&6; } 2518case $ac_cv_build in 2519*-*-*) ;; 2520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2521esac 2522build=$ac_cv_build 2523ac_save_IFS=$IFS; IFS='-' 2524set x $ac_cv_build 2525shift 2526build_cpu=$1 2527build_vendor=$2 2528shift; shift 2529# Remember, the first character of IFS is used to create $*, 2530# except with old shells: 2531build_os=$* 2532IFS=$ac_save_IFS 2533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2534 2535 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2537$as_echo_n "checking host system type... " >&6; } 2538if ${ac_cv_host+:} false; then : 2539 $as_echo_n "(cached) " >&6 2540else 2541 if test "x$host_alias" = x; then 2542 ac_cv_host=$ac_cv_build 2543else 2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2546fi 2547 2548fi 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2550$as_echo "$ac_cv_host" >&6; } 2551case $ac_cv_host in 2552*-*-*) ;; 2553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2554esac 2555host=$ac_cv_host 2556ac_save_IFS=$IFS; IFS='-' 2557set x $ac_cv_host 2558shift 2559host_cpu=$1 2560host_vendor=$2 2561shift; shift 2562# Remember, the first character of IFS is used to create $*, 2563# except with old shells: 2564host_os=$* 2565IFS=$ac_save_IFS 2566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2567 2568 2569ac_ext=c 2570ac_cpp='$CPP $CPPFLAGS' 2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2573ac_compiler_gnu=$ac_cv_c_compiler_gnu 2574if test -n "$ac_tool_prefix"; then 2575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2576set dummy ${ac_tool_prefix}gcc; ac_word=$2 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2578$as_echo_n "checking for $ac_word... " >&6; } 2579if ${ac_cv_prog_CC+:} false; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 if test -n "$CC"; then 2583 ac_cv_prog_CC="$CC" # Let the user override the test. 2584else 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586for as_dir in $PATH 2587do 2588 IFS=$as_save_IFS 2589 test -z "$as_dir" && as_dir=. 2590 for ac_exec_ext in '' $ac_executable_extensions; do 2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2592 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2594 break 2 2595 fi 2596done 2597 done 2598IFS=$as_save_IFS 2599 2600fi 2601fi 2602CC=$ac_cv_prog_CC 2603if test -n "$CC"; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2605$as_echo "$CC" >&6; } 2606else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2608$as_echo "no" >&6; } 2609fi 2610 2611 2612fi 2613if test -z "$ac_cv_prog_CC"; then 2614 ac_ct_CC=$CC 2615 # Extract the first word of "gcc", so it can be a program name with args. 2616set dummy gcc; ac_word=$2 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618$as_echo_n "checking for $ac_word... " >&6; } 2619if ${ac_cv_prog_ac_ct_CC+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test -n "$ac_ct_CC"; then 2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2632 ac_cv_prog_ac_ct_CC="gcc" 2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642ac_ct_CC=$ac_cv_prog_ac_ct_CC 2643if test -n "$ac_ct_CC"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2645$as_echo "$ac_ct_CC" >&6; } 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649fi 2650 2651 if test "x$ac_ct_CC" = x; then 2652 CC="" 2653 else 2654 case $cross_compiling:$ac_tool_warned in 2655yes:) 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2658ac_tool_warned=yes ;; 2659esac 2660 CC=$ac_ct_CC 2661 fi 2662else 2663 CC="$ac_cv_prog_CC" 2664fi 2665 2666if test -z "$CC"; then 2667 if test -n "$ac_tool_prefix"; then 2668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2669set dummy ${ac_tool_prefix}cc; ac_word=$2 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2671$as_echo_n "checking for $ac_word... " >&6; } 2672if ${ac_cv_prog_CC+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 if test -n "$CC"; then 2676 ac_cv_prog_CC="$CC" # Let the user override the test. 2677else 2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2685 ac_cv_prog_CC="${ac_tool_prefix}cc" 2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690 done 2691IFS=$as_save_IFS 2692 2693fi 2694fi 2695CC=$ac_cv_prog_CC 2696if test -n "$CC"; then 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2698$as_echo "$CC" >&6; } 2699else 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2701$as_echo "no" >&6; } 2702fi 2703 2704 2705 fi 2706fi 2707if test -z "$CC"; then 2708 # Extract the first word of "cc", so it can be a program name with args. 2709set dummy cc; ac_word=$2 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2711$as_echo_n "checking for $ac_word... " >&6; } 2712if ${ac_cv_prog_CC+:} false; then : 2713 $as_echo_n "(cached) " >&6 2714else 2715 if test -n "$CC"; then 2716 ac_cv_prog_CC="$CC" # Let the user override the test. 2717else 2718 ac_prog_rejected=no 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2727 ac_prog_rejected=yes 2728 continue 2729 fi 2730 ac_cv_prog_CC="cc" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738if test $ac_prog_rejected = yes; then 2739 # We found a bogon in the path, so make sure we never use it. 2740 set dummy $ac_cv_prog_CC 2741 shift 2742 if test $# != 0; then 2743 # We chose a different compiler from the bogus one. 2744 # However, it has the same basename, so the bogon will be chosen 2745 # first if we set CC to just the basename; use the full file name. 2746 shift 2747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2748 fi 2749fi 2750fi 2751fi 2752CC=$ac_cv_prog_CC 2753if test -n "$CC"; then 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2755$as_echo "$CC" >&6; } 2756else 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2758$as_echo "no" >&6; } 2759fi 2760 2761 2762fi 2763if test -z "$CC"; then 2764 if test -n "$ac_tool_prefix"; then 2765 for ac_prog in cl.exe 2766 do 2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if ${ac_cv_prog_CC+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804 test -n "$CC" && break 2805 done 2806fi 2807if test -z "$CC"; then 2808 ac_ct_CC=$CC 2809 for ac_prog in cl.exe 2810do 2811 # Extract the first word of "$ac_prog", so it can be a program name with args. 2812set dummy $ac_prog; ac_word=$2 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2814$as_echo_n "checking for $ac_word... " >&6; } 2815if ${ac_cv_prog_ac_ct_CC+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if test -n "$ac_ct_CC"; then 2819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2828 ac_cv_prog_ac_ct_CC="$ac_prog" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838ac_ct_CC=$ac_cv_prog_ac_ct_CC 2839if test -n "$ac_ct_CC"; then 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2841$as_echo "$ac_ct_CC" >&6; } 2842else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2844$as_echo "no" >&6; } 2845fi 2846 2847 2848 test -n "$ac_ct_CC" && break 2849done 2850 2851 if test "x$ac_ct_CC" = x; then 2852 CC="" 2853 else 2854 case $cross_compiling:$ac_tool_warned in 2855yes:) 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2858ac_tool_warned=yes ;; 2859esac 2860 CC=$ac_ct_CC 2861 fi 2862fi 2863 2864fi 2865 2866 2867test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2869as_fn_error $? "no acceptable C compiler found in \$PATH 2870See \`config.log' for more details" "$LINENO" 5; } 2871 2872# Provide some information about the compiler. 2873$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2874set X $ac_compile 2875ac_compiler=$2 2876for ac_option in --version -v -V -qversion; do 2877 { { ac_try="$ac_compiler $ac_option >&5" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2883$as_echo "$ac_try_echo"; } >&5 2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2885 ac_status=$? 2886 if test -s conftest.err; then 2887 sed '10a\ 2888... rest of stderr output deleted ... 2889 10q' conftest.err >conftest.er1 2890 cat conftest.er1 >&5 2891 fi 2892 rm -f conftest.er1 conftest.err 2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2894 test $ac_status = 0; } 2895done 2896 2897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2898/* end confdefs.h. */ 2899 2900int 2901main () 2902{ 2903 2904 ; 2905 return 0; 2906} 2907_ACEOF 2908ac_clean_files_save=$ac_clean_files 2909ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2910# Try to create an executable without -o first, disregard a.out. 2911# It will help us diagnose broken compilers, and finding out an intuition 2912# of exeext. 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2914$as_echo_n "checking whether the C compiler works... " >&6; } 2915ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2916 2917# The possible output files: 2918ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2919 2920ac_rmfiles= 2921for ac_file in $ac_files 2922do 2923 case $ac_file in 2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2926 esac 2927done 2928rm -f $ac_rmfiles 2929 2930if { { ac_try="$ac_link_default" 2931case "(($ac_try" in 2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2933 *) ac_try_echo=$ac_try;; 2934esac 2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2936$as_echo "$ac_try_echo"; } >&5 2937 (eval "$ac_link_default") 2>&5 2938 ac_status=$? 2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2940 test $ac_status = 0; }; then : 2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2942# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2943# in a Makefile. We should not override ac_cv_exeext if it was cached, 2944# so that the user can short-circuit this test for compilers unknown to 2945# Autoconf. 2946for ac_file in $ac_files '' 2947do 2948 test -f "$ac_file" || continue 2949 case $ac_file in 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2951 ;; 2952 [ab].out ) 2953 # We found the default executable, but exeext='' is most 2954 # certainly right. 2955 break;; 2956 *.* ) 2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2958 then :; else 2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2960 fi 2961 # We set ac_cv_exeext here because the later test for it is not 2962 # safe: cross compilers may not add the suffix if given an `-o' 2963 # argument, so we may need to know it at that point already. 2964 # Even if this section looks crufty: it has the advantage of 2965 # actually working. 2966 break;; 2967 * ) 2968 break;; 2969 esac 2970done 2971test "$ac_cv_exeext" = no && ac_cv_exeext= 2972 2973else 2974 ac_file='' 2975fi 2976if test -z "$ac_file"; then : 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979$as_echo "$as_me: failed program was:" >&5 2980sed 's/^/| /' conftest.$ac_ext >&5 2981 2982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2984as_fn_error 77 "C compiler cannot create executables 2985See \`config.log' for more details" "$LINENO" 5; } 2986else 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2988$as_echo "yes" >&6; } 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2991$as_echo_n "checking for C compiler default output file name... " >&6; } 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2993$as_echo "$ac_file" >&6; } 2994ac_exeext=$ac_cv_exeext 2995 2996rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2997ac_clean_files=$ac_clean_files_save 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2999$as_echo_n "checking for suffix of executables... " >&6; } 3000if { { ac_try="$ac_link" 3001case "(($ac_try" in 3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3003 *) ac_try_echo=$ac_try;; 3004esac 3005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3006$as_echo "$ac_try_echo"; } >&5 3007 (eval "$ac_link") 2>&5 3008 ac_status=$? 3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3010 test $ac_status = 0; }; then : 3011 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3013# work properly (i.e., refer to `conftest.exe'), while it won't with 3014# `rm'. 3015for ac_file in conftest.exe conftest conftest.*; do 3016 test -f "$ac_file" || continue 3017 case $ac_file in 3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3020 break;; 3021 * ) break;; 3022 esac 3023done 3024else 3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3027as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3028See \`config.log' for more details" "$LINENO" 5; } 3029fi 3030rm -f conftest conftest$ac_cv_exeext 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3032$as_echo "$ac_cv_exeext" >&6; } 3033 3034rm -f conftest.$ac_ext 3035EXEEXT=$ac_cv_exeext 3036ac_exeext=$EXEEXT 3037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3038/* end confdefs.h. */ 3039#include <stdio.h> 3040int 3041main () 3042{ 3043FILE *f = fopen ("conftest.out", "w"); 3044 return ferror (f) || fclose (f) != 0; 3045 3046 ; 3047 return 0; 3048} 3049_ACEOF 3050ac_clean_files="$ac_clean_files conftest.out" 3051# Check that the compiler produces executables we can run. If not, either 3052# the compiler is broken, or we cross compile. 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3054$as_echo_n "checking whether we are cross compiling... " >&6; } 3055if test "$cross_compiling" != yes; then 3056 { { ac_try="$ac_link" 3057case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060esac 3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3062$as_echo "$ac_try_echo"; } >&5 3063 (eval "$ac_link") 2>&5 3064 ac_status=$? 3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3066 test $ac_status = 0; } 3067 if { ac_try='./conftest$ac_cv_exeext' 3068 { { case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3073$as_echo "$ac_try_echo"; } >&5 3074 (eval "$ac_try") 2>&5 3075 ac_status=$? 3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3077 test $ac_status = 0; }; }; then 3078 cross_compiling=no 3079 else 3080 if test "$cross_compiling" = maybe; then 3081 cross_compiling=yes 3082 else 3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3085as_fn_error $? "cannot run C compiled programs. 3086If you meant to cross compile, use \`--host'. 3087See \`config.log' for more details" "$LINENO" 5; } 3088 fi 3089 fi 3090fi 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3092$as_echo "$cross_compiling" >&6; } 3093 3094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3095ac_clean_files=$ac_clean_files_save 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3097$as_echo_n "checking for suffix of object files... " >&6; } 3098if ${ac_cv_objext+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112rm -f conftest.o conftest.obj 3113if { { ac_try="$ac_compile" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3119$as_echo "$ac_try_echo"; } >&5 3120 (eval "$ac_compile") 2>&5 3121 ac_status=$? 3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3123 test $ac_status = 0; }; then : 3124 for ac_file in conftest.o conftest.obj conftest.*; do 3125 test -f "$ac_file" || continue; 3126 case $ac_file in 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3129 break;; 3130 esac 3131done 3132else 3133 $as_echo "$as_me: failed program was:" >&5 3134sed 's/^/| /' conftest.$ac_ext >&5 3135 3136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3138as_fn_error $? "cannot compute suffix of object files: cannot compile 3139See \`config.log' for more details" "$LINENO" 5; } 3140fi 3141rm -f conftest.$ac_cv_objext conftest.$ac_ext 3142fi 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3144$as_echo "$ac_cv_objext" >&6; } 3145OBJEXT=$ac_cv_objext 3146ac_objext=$OBJEXT 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3148$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3149if ${ac_cv_c_compiler_gnu+:} false; then : 3150 $as_echo_n "(cached) " >&6 3151else 3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3153/* end confdefs.h. */ 3154 3155int 3156main () 3157{ 3158#ifndef __GNUC__ 3159 choke me 3160#endif 3161 3162 ; 3163 return 0; 3164} 3165_ACEOF 3166if ac_fn_c_try_compile "$LINENO"; then : 3167 ac_compiler_gnu=yes 3168else 3169 ac_compiler_gnu=no 3170fi 3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3172ac_cv_c_compiler_gnu=$ac_compiler_gnu 3173 3174fi 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3176$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3177if test $ac_compiler_gnu = yes; then 3178 GCC=yes 3179else 3180 GCC= 3181fi 3182ac_test_CFLAGS=${CFLAGS+set} 3183ac_save_CFLAGS=$CFLAGS 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3185$as_echo_n "checking whether $CC accepts -g... " >&6; } 3186if ${ac_cv_prog_cc_g+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 ac_save_c_werror_flag=$ac_c_werror_flag 3190 ac_c_werror_flag=yes 3191 ac_cv_prog_cc_g=no 3192 CFLAGS="-g" 3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3194/* end confdefs.h. */ 3195 3196int 3197main () 3198{ 3199 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204if ac_fn_c_try_compile "$LINENO"; then : 3205 ac_cv_prog_cc_g=yes 3206else 3207 CFLAGS="" 3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3209/* end confdefs.h. */ 3210 3211int 3212main () 3213{ 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219if ac_fn_c_try_compile "$LINENO"; then : 3220 3221else 3222 ac_c_werror_flag=$ac_save_c_werror_flag 3223 CFLAGS="-g" 3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3225/* end confdefs.h. */ 3226 3227int 3228main () 3229{ 3230 3231 ; 3232 return 0; 3233} 3234_ACEOF 3235if ac_fn_c_try_compile "$LINENO"; then : 3236 ac_cv_prog_cc_g=yes 3237fi 3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3239fi 3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3241fi 3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3243 ac_c_werror_flag=$ac_save_c_werror_flag 3244fi 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3246$as_echo "$ac_cv_prog_cc_g" >&6; } 3247if test "$ac_test_CFLAGS" = set; then 3248 CFLAGS=$ac_save_CFLAGS 3249elif test $ac_cv_prog_cc_g = yes; then 3250 if test "$GCC" = yes; then 3251 CFLAGS="-g -O2" 3252 else 3253 CFLAGS="-g" 3254 fi 3255else 3256 if test "$GCC" = yes; then 3257 CFLAGS="-O2" 3258 else 3259 CFLAGS= 3260 fi 3261fi 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3264if ${ac_cv_prog_cc_c89+:} false; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 ac_cv_prog_cc_c89=no 3268ac_save_CC=$CC 3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3270/* end confdefs.h. */ 3271#include <stdarg.h> 3272#include <stdio.h> 3273struct stat; 3274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3275struct buf { int x; }; 3276FILE * (*rcsopen) (struct buf *, struct stat *, int); 3277static char *e (p, i) 3278 char **p; 3279 int i; 3280{ 3281 return p[i]; 3282} 3283static char *f (char * (*g) (char **, int), char **p, ...) 3284{ 3285 char *s; 3286 va_list v; 3287 va_start (v,p); 3288 s = g (p, va_arg (v,int)); 3289 va_end (v); 3290 return s; 3291} 3292 3293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3294 function prototypes and stuff, but not '\xHH' hex character constants. 3295 These don't provoke an error unfortunately, instead are silently treated 3296 as 'x'. The following induces an error, until -std is added to get 3297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3298 array size at least. It's necessary to write '\x00'==0 to get something 3299 that's true only with -std. */ 3300int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3301 3302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3303 inside strings and character constants. */ 3304#define FOO(x) 'x' 3305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3306 3307int test (int i, double x); 3308struct s1 {int (*f) (int a);}; 3309struct s2 {int (*f) (double a);}; 3310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3311int argc; 3312char **argv; 3313int 3314main () 3315{ 3316return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3323do 3324 CC="$ac_save_CC $ac_arg" 3325 if ac_fn_c_try_compile "$LINENO"; then : 3326 ac_cv_prog_cc_c89=$ac_arg 3327fi 3328rm -f core conftest.err conftest.$ac_objext 3329 test "x$ac_cv_prog_cc_c89" != "xno" && break 3330done 3331rm -f conftest.$ac_ext 3332CC=$ac_save_CC 3333 3334fi 3335# AC_CACHE_VAL 3336case "x$ac_cv_prog_cc_c89" in 3337 x) 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3339$as_echo "none needed" >&6; } ;; 3340 xno) 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3342$as_echo "unsupported" >&6; } ;; 3343 *) 3344 CC="$CC $ac_cv_prog_cc_c89" 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3347esac 3348if test "x$ac_cv_prog_cc_c89" != xno; then : 3349 3350fi 3351 3352ac_ext=c 3353ac_cpp='$CPP $CPPFLAGS' 3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3356ac_compiler_gnu=$ac_cv_c_compiler_gnu 3357 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3359$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3360if ${ac_cv_path_SED+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3364 for ac_i in 1 2 3 4 5 6 7; do 3365 ac_script="$ac_script$as_nl$ac_script" 3366 done 3367 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3368 { ac_script=; unset ac_script;} 3369 if test -z "$SED"; then 3370 ac_path_SED_found=false 3371 # Loop through the user's path and test for each of PROGNAME-LIST 3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_prog in sed gsed; do 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3380 as_fn_executable_p "$ac_path_SED" || continue 3381# Check for GNU ac_path_SED and select it if it is found. 3382 # Check for GNU $ac_path_SED 3383case `"$ac_path_SED" --version 2>&1` in 3384*GNU*) 3385 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3386*) 3387 ac_count=0 3388 $as_echo_n 0123456789 >"conftest.in" 3389 while : 3390 do 3391 cat "conftest.in" "conftest.in" >"conftest.tmp" 3392 mv "conftest.tmp" "conftest.in" 3393 cp "conftest.in" "conftest.nl" 3394 $as_echo '' >> "conftest.nl" 3395 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3397 as_fn_arith $ac_count + 1 && ac_count=$as_val 3398 if test $ac_count -gt ${ac_path_SED_max-0}; then 3399 # Best one so far, save it but keep looking for a better one 3400 ac_cv_path_SED="$ac_path_SED" 3401 ac_path_SED_max=$ac_count 3402 fi 3403 # 10*(2^10) chars as input seems more than enough 3404 test $ac_count -gt 10 && break 3405 done 3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3407esac 3408 3409 $ac_path_SED_found && break 3 3410 done 3411 done 3412 done 3413IFS=$as_save_IFS 3414 if test -z "$ac_cv_path_SED"; then 3415 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3416 fi 3417else 3418 ac_cv_path_SED=$SED 3419fi 3420 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3423$as_echo "$ac_cv_path_SED" >&6; } 3424 SED="$ac_cv_path_SED" 3425 rm -f conftest.sed 3426 3427test -z "$SED" && SED=sed 3428Xsed="$SED -e 1s/^X//" 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3441$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3442if ${ac_cv_path_GREP+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 if test -z "$GREP"; then 3446 ac_path_GREP_found=false 3447 # Loop through the user's path and test for each of PROGNAME-LIST 3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3450do 3451 IFS=$as_save_IFS 3452 test -z "$as_dir" && as_dir=. 3453 for ac_prog in grep ggrep; do 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3456 as_fn_executable_p "$ac_path_GREP" || continue 3457# Check for GNU ac_path_GREP and select it if it is found. 3458 # Check for GNU $ac_path_GREP 3459case `"$ac_path_GREP" --version 2>&1` in 3460*GNU*) 3461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3462*) 3463 ac_count=0 3464 $as_echo_n 0123456789 >"conftest.in" 3465 while : 3466 do 3467 cat "conftest.in" "conftest.in" >"conftest.tmp" 3468 mv "conftest.tmp" "conftest.in" 3469 cp "conftest.in" "conftest.nl" 3470 $as_echo 'GREP' >> "conftest.nl" 3471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3473 as_fn_arith $ac_count + 1 && ac_count=$as_val 3474 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3475 # Best one so far, save it but keep looking for a better one 3476 ac_cv_path_GREP="$ac_path_GREP" 3477 ac_path_GREP_max=$ac_count 3478 fi 3479 # 10*(2^10) chars as input seems more than enough 3480 test $ac_count -gt 10 && break 3481 done 3482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3483esac 3484 3485 $ac_path_GREP_found && break 3 3486 done 3487 done 3488 done 3489IFS=$as_save_IFS 3490 if test -z "$ac_cv_path_GREP"; then 3491 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3492 fi 3493else 3494 ac_cv_path_GREP=$GREP 3495fi 3496 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3499$as_echo "$ac_cv_path_GREP" >&6; } 3500 GREP="$ac_cv_path_GREP" 3501 3502 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3504$as_echo_n "checking for egrep... " >&6; } 3505if ${ac_cv_path_EGREP+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3509 then ac_cv_path_EGREP="$GREP -E" 3510 else 3511 if test -z "$EGREP"; then 3512 ac_path_EGREP_found=false 3513 # Loop through the user's path and test for each of PROGNAME-LIST 3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 for ac_prog in egrep; do 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3522 as_fn_executable_p "$ac_path_EGREP" || continue 3523# Check for GNU ac_path_EGREP and select it if it is found. 3524 # Check for GNU $ac_path_EGREP 3525case `"$ac_path_EGREP" --version 2>&1` in 3526*GNU*) 3527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3528*) 3529 ac_count=0 3530 $as_echo_n 0123456789 >"conftest.in" 3531 while : 3532 do 3533 cat "conftest.in" "conftest.in" >"conftest.tmp" 3534 mv "conftest.tmp" "conftest.in" 3535 cp "conftest.in" "conftest.nl" 3536 $as_echo 'EGREP' >> "conftest.nl" 3537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3539 as_fn_arith $ac_count + 1 && ac_count=$as_val 3540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3541 # Best one so far, save it but keep looking for a better one 3542 ac_cv_path_EGREP="$ac_path_EGREP" 3543 ac_path_EGREP_max=$ac_count 3544 fi 3545 # 10*(2^10) chars as input seems more than enough 3546 test $ac_count -gt 10 && break 3547 done 3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3549esac 3550 3551 $ac_path_EGREP_found && break 3 3552 done 3553 done 3554 done 3555IFS=$as_save_IFS 3556 if test -z "$ac_cv_path_EGREP"; then 3557 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3558 fi 3559else 3560 ac_cv_path_EGREP=$EGREP 3561fi 3562 3563 fi 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3566$as_echo "$ac_cv_path_EGREP" >&6; } 3567 EGREP="$ac_cv_path_EGREP" 3568 3569 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3571$as_echo_n "checking for fgrep... " >&6; } 3572if ${ac_cv_path_FGREP+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3576 then ac_cv_path_FGREP="$GREP -F" 3577 else 3578 if test -z "$FGREP"; then 3579 ac_path_FGREP_found=false 3580 # Loop through the user's path and test for each of PROGNAME-LIST 3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_prog in fgrep; do 3587 for ac_exec_ext in '' $ac_executable_extensions; do 3588 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3589 as_fn_executable_p "$ac_path_FGREP" || continue 3590# Check for GNU ac_path_FGREP and select it if it is found. 3591 # Check for GNU $ac_path_FGREP 3592case `"$ac_path_FGREP" --version 2>&1` in 3593*GNU*) 3594 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3595*) 3596 ac_count=0 3597 $as_echo_n 0123456789 >"conftest.in" 3598 while : 3599 do 3600 cat "conftest.in" "conftest.in" >"conftest.tmp" 3601 mv "conftest.tmp" "conftest.in" 3602 cp "conftest.in" "conftest.nl" 3603 $as_echo 'FGREP' >> "conftest.nl" 3604 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3606 as_fn_arith $ac_count + 1 && ac_count=$as_val 3607 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3608 # Best one so far, save it but keep looking for a better one 3609 ac_cv_path_FGREP="$ac_path_FGREP" 3610 ac_path_FGREP_max=$ac_count 3611 fi 3612 # 10*(2^10) chars as input seems more than enough 3613 test $ac_count -gt 10 && break 3614 done 3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3616esac 3617 3618 $ac_path_FGREP_found && break 3 3619 done 3620 done 3621 done 3622IFS=$as_save_IFS 3623 if test -z "$ac_cv_path_FGREP"; then 3624 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3625 fi 3626else 3627 ac_cv_path_FGREP=$FGREP 3628fi 3629 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3633$as_echo "$ac_cv_path_FGREP" >&6; } 3634 FGREP="$ac_cv_path_FGREP" 3635 3636 3637test -z "$GREP" && GREP=grep 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657# Check whether --with-gnu-ld was given. 3658if test "${with_gnu_ld+set}" = set; then : 3659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3660else 3661 with_gnu_ld=no 3662fi 3663 3664ac_prog=ld 3665if test "$GCC" = yes; then 3666 # Check if gcc -print-prog-name=ld gives a path. 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3668$as_echo_n "checking for ld used by $CC... " >&6; } 3669 case $host in 3670 *-*-mingw*) 3671 # gcc leaves a trailing carriage return which upsets mingw 3672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3673 *) 3674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3675 esac 3676 case $ac_prog in 3677 # Accept absolute paths. 3678 [\\/]* | ?:[\\/]*) 3679 re_direlt='/[^/][^/]*/\.\./' 3680 # Canonicalize the pathname of ld 3681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3684 done 3685 test -z "$LD" && LD="$ac_prog" 3686 ;; 3687 "") 3688 # If it fails, then pretend we aren't using GCC. 3689 ac_prog=ld 3690 ;; 3691 *) 3692 # If it is relative, then search for the first ld in PATH. 3693 with_gnu_ld=unknown 3694 ;; 3695 esac 3696elif test "$with_gnu_ld" = yes; then 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3698$as_echo_n "checking for GNU ld... " >&6; } 3699else 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3701$as_echo_n "checking for non-GNU ld... " >&6; } 3702fi 3703if ${lt_cv_path_LD+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 if test -z "$LD"; then 3707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3708 for ac_dir in $PATH; do 3709 IFS="$lt_save_ifs" 3710 test -z "$ac_dir" && ac_dir=. 3711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3712 lt_cv_path_LD="$ac_dir/$ac_prog" 3713 # Check to see if the program is GNU ld. I'd rather use --version, 3714 # but apparently some variants of GNU ld only accept -v. 3715 # Break only if it was the GNU/non-GNU ld that we prefer. 3716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3717 *GNU* | *'with BFD'*) 3718 test "$with_gnu_ld" != no && break 3719 ;; 3720 *) 3721 test "$with_gnu_ld" != yes && break 3722 ;; 3723 esac 3724 fi 3725 done 3726 IFS="$lt_save_ifs" 3727else 3728 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3729fi 3730fi 3731 3732LD="$lt_cv_path_LD" 3733if test -n "$LD"; then 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3735$as_echo "$LD" >&6; } 3736else 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3738$as_echo "no" >&6; } 3739fi 3740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3743if ${lt_cv_prog_gnu_ld+:} false; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3747case `$LD -v 2>&1 </dev/null` in 3748*GNU* | *'with BFD'*) 3749 lt_cv_prog_gnu_ld=yes 3750 ;; 3751*) 3752 lt_cv_prog_gnu_ld=no 3753 ;; 3754esac 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3757$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3758with_gnu_ld=$lt_cv_prog_gnu_ld 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3769$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3770if ${lt_cv_path_NM+:} false; then : 3771 $as_echo_n "(cached) " >&6 3772else 3773 if test -n "$NM"; then 3774 # Let the user override the test. 3775 lt_cv_path_NM="$NM" 3776else 3777 lt_nm_to_check="${ac_tool_prefix}nm" 3778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3779 lt_nm_to_check="$lt_nm_to_check nm" 3780 fi 3781 for lt_tmp_nm in $lt_nm_to_check; do 3782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3784 IFS="$lt_save_ifs" 3785 test -z "$ac_dir" && ac_dir=. 3786 tmp_nm="$ac_dir/$lt_tmp_nm" 3787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3788 # Check to see if the nm accepts a BSD-compat flag. 3789 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3790 # nm: unknown option "B" ignored 3791 # Tru64's nm complains that /dev/null is an invalid object file 3792 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3793 */dev/null* | *'Invalid file or object type'*) 3794 lt_cv_path_NM="$tmp_nm -B" 3795 break 3796 ;; 3797 *) 3798 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3799 */dev/null*) 3800 lt_cv_path_NM="$tmp_nm -p" 3801 break 3802 ;; 3803 *) 3804 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3805 continue # so that we can try to find one that supports BSD flags 3806 ;; 3807 esac 3808 ;; 3809 esac 3810 fi 3811 done 3812 IFS="$lt_save_ifs" 3813 done 3814 : ${lt_cv_path_NM=no} 3815fi 3816fi 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3818$as_echo "$lt_cv_path_NM" >&6; } 3819if test "$lt_cv_path_NM" != "no"; then 3820 NM="$lt_cv_path_NM" 3821else 3822 # Didn't find any BSD compatible name lister, look for dumpbin. 3823 if test -n "$ac_tool_prefix"; then 3824 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3825 do 3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3829$as_echo_n "checking for $ac_word... " >&6; } 3830if ${ac_cv_prog_DUMPBIN+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 if test -n "$DUMPBIN"; then 3834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3835else 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH 3838do 3839 IFS=$as_save_IFS 3840 test -z "$as_dir" && as_dir=. 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851fi 3852fi 3853DUMPBIN=$ac_cv_prog_DUMPBIN 3854if test -n "$DUMPBIN"; then 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3856$as_echo "$DUMPBIN" >&6; } 3857else 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859$as_echo "no" >&6; } 3860fi 3861 3862 3863 test -n "$DUMPBIN" && break 3864 done 3865fi 3866if test -z "$DUMPBIN"; then 3867 ac_ct_DUMPBIN=$DUMPBIN 3868 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3869do 3870 # Extract the first word of "$ac_prog", so it can be a program name with args. 3871set dummy $ac_prog; ac_word=$2 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3873$as_echo_n "checking for $ac_word... " >&6; } 3874if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 if test -n "$ac_ct_DUMPBIN"; then 3878 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3879else 3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3881for as_dir in $PATH 3882do 3883 IFS=$as_save_IFS 3884 test -z "$as_dir" && as_dir=. 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891done 3892 done 3893IFS=$as_save_IFS 3894 3895fi 3896fi 3897ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3898if test -n "$ac_ct_DUMPBIN"; then 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3900$as_echo "$ac_ct_DUMPBIN" >&6; } 3901else 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903$as_echo "no" >&6; } 3904fi 3905 3906 3907 test -n "$ac_ct_DUMPBIN" && break 3908done 3909 3910 if test "x$ac_ct_DUMPBIN" = x; then 3911 DUMPBIN=":" 3912 else 3913 case $cross_compiling:$ac_tool_warned in 3914yes:) 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3917ac_tool_warned=yes ;; 3918esac 3919 DUMPBIN=$ac_ct_DUMPBIN 3920 fi 3921fi 3922 3923 3924 if test "$DUMPBIN" != ":"; then 3925 NM="$DUMPBIN" 3926 fi 3927fi 3928test -z "$NM" && NM=nm 3929 3930 3931 3932 3933 3934 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3936$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3937if ${lt_cv_nm_interface+:} false; then : 3938 $as_echo_n "(cached) " >&6 3939else 3940 lt_cv_nm_interface="BSD nm" 3941 echo "int some_variable = 0;" > conftest.$ac_ext 3942 (eval echo "\"\$as_me:3940: $ac_compile\"" >&5) 3943 (eval "$ac_compile" 2>conftest.err) 3944 cat conftest.err >&5 3945 (eval echo "\"\$as_me:3943: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3946 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3947 cat conftest.err >&5 3948 (eval echo "\"\$as_me:3946: output\"" >&5) 3949 cat conftest.out >&5 3950 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3951 lt_cv_nm_interface="MS dumpbin" 3952 fi 3953 rm -f conftest* 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3956$as_echo "$lt_cv_nm_interface" >&6; } 3957 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3959$as_echo_n "checking whether ln -s works... " >&6; } 3960LN_S=$as_ln_s 3961if test "$LN_S" = "ln -s"; then 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3963$as_echo "yes" >&6; } 3964else 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3966$as_echo "no, using $LN_S" >&6; } 3967fi 3968 3969# find the maximum length of command line arguments 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3971$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3972if ${lt_cv_sys_max_cmd_len+:} false; then : 3973 $as_echo_n "(cached) " >&6 3974else 3975 i=0 3976 teststring="ABCD" 3977 3978 case $build_os in 3979 msdosdjgpp*) 3980 # On DJGPP, this test can blow up pretty badly due to problems in libc 3981 # (any single argument exceeding 2000 bytes causes a buffer overrun 3982 # during glob expansion). Even if it were fixed, the result of this 3983 # check would be larger than it should be. 3984 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3985 ;; 3986 3987 gnu*) 3988 # Under GNU Hurd, this test is not required because there is 3989 # no limit to the length of command line arguments. 3990 # Libtool will interpret -1 as no limit whatsoever 3991 lt_cv_sys_max_cmd_len=-1; 3992 ;; 3993 3994 cygwin* | mingw* | cegcc*) 3995 # On Win9x/ME, this test blows up -- it succeeds, but takes 3996 # about 5 minutes as the teststring grows exponentially. 3997 # Worse, since 9x/ME are not pre-emptively multitasking, 3998 # you end up with a "frozen" computer, even though with patience 3999 # the test eventually succeeds (with a max line length of 256k). 4000 # Instead, let's just punt: use the minimum linelength reported by 4001 # all of the supported platforms: 8192 (on NT/2K/XP). 4002 lt_cv_sys_max_cmd_len=8192; 4003 ;; 4004 4005 amigaos*) 4006 # On AmigaOS with pdksh, this test takes hours, literally. 4007 # So we just punt and use a minimum line length of 8192. 4008 lt_cv_sys_max_cmd_len=8192; 4009 ;; 4010 4011 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4012 # This has been around since 386BSD, at least. Likely further. 4013 if test -x /sbin/sysctl; then 4014 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4015 elif test -x /usr/sbin/sysctl; then 4016 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4017 else 4018 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4019 fi 4020 # And add a safety zone 4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4023 ;; 4024 4025 interix*) 4026 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4027 lt_cv_sys_max_cmd_len=196608 4028 ;; 4029 4030 osf*) 4031 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4032 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4033 # nice to cause kernel panics so lets avoid the loop below. 4034 # First set a reasonable default. 4035 lt_cv_sys_max_cmd_len=16384 4036 # 4037 if test -x /sbin/sysconfig; then 4038 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4039 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4040 esac 4041 fi 4042 ;; 4043 sco3.2v5*) 4044 lt_cv_sys_max_cmd_len=102400 4045 ;; 4046 sysv5* | sco5v6* | sysv4.2uw2*) 4047 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4048 if test -n "$kargmax"; then 4049 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4050 else 4051 lt_cv_sys_max_cmd_len=32768 4052 fi 4053 ;; 4054 *) 4055 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4056 if test -n "$lt_cv_sys_max_cmd_len"; then 4057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4059 else 4060 # Make teststring a little bigger before we do anything with it. 4061 # a 1K string should be a reasonable start. 4062 for i in 1 2 3 4 5 6 7 8 ; do 4063 teststring=$teststring$teststring 4064 done 4065 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4066 # If test is not a shell built-in, we'll probably end up computing a 4067 # maximum length that is only half of the actual maximum length, but 4068 # we can't tell. 4069 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4070 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4071 test $i != 17 # 1/2 MB should be enough 4072 do 4073 i=`expr $i + 1` 4074 teststring=$teststring$teststring 4075 done 4076 # Only check the string length outside the loop. 4077 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4078 teststring= 4079 # Add a significant safety factor because C++ compilers can tack on 4080 # massive amounts of additional arguments before passing them to the 4081 # linker. It appears as though 1/2 is a usable value. 4082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4083 fi 4084 ;; 4085 esac 4086 4087fi 4088 4089if test -n $lt_cv_sys_max_cmd_len ; then 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4091$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4092else 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4094$as_echo "none" >&6; } 4095fi 4096max_cmd_len=$lt_cv_sys_max_cmd_len 4097 4098 4099 4100 4101 4102 4103: ${CP="cp -f"} 4104: ${MV="mv -f"} 4105: ${RM="rm -f"} 4106 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4108$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4109# Try some XSI features 4110xsi_shell=no 4111( _lt_dummy="a/b/c" 4112 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4113 = c,a/b,, \ 4114 && eval 'test $(( 1 + 1 )) -eq 2 \ 4115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4116 && xsi_shell=yes 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4118$as_echo "$xsi_shell" >&6; } 4119 4120 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4122$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4123lt_shell_append=no 4124( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4125 >/dev/null 2>&1 \ 4126 && lt_shell_append=yes 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4128$as_echo "$lt_shell_append" >&6; } 4129 4130 4131if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4132 lt_unset=unset 4133else 4134 lt_unset=false 4135fi 4136 4137 4138 4139 4140 4141# test EBCDIC or ASCII 4142case `echo X|tr X '\101'` in 4143 A) # ASCII based system 4144 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4145 lt_SP2NL='tr \040 \012' 4146 lt_NL2SP='tr \015\012 \040\040' 4147 ;; 4148 *) # EBCDIC based system 4149 lt_SP2NL='tr \100 \n' 4150 lt_NL2SP='tr \r\n \100\100' 4151 ;; 4152esac 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4163$as_echo_n "checking for $LD option to reload object files... " >&6; } 4164if ${lt_cv_ld_reload_flag+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 lt_cv_ld_reload_flag='-r' 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4170$as_echo "$lt_cv_ld_reload_flag" >&6; } 4171reload_flag=$lt_cv_ld_reload_flag 4172case $reload_flag in 4173"" | " "*) ;; 4174*) reload_flag=" $reload_flag" ;; 4175esac 4176reload_cmds='$LD$reload_flag -o $output$reload_objs' 4177case $host_os in 4178 darwin*) 4179 if test "$GCC" = yes; then 4180 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4181 else 4182 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4183 fi 4184 ;; 4185esac 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195if test -n "$ac_tool_prefix"; then 4196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4197set dummy ${ac_tool_prefix}objdump; ac_word=$2 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4199$as_echo_n "checking for $ac_word... " >&6; } 4200if ${ac_cv_prog_OBJDUMP+:} false; then : 4201 $as_echo_n "(cached) " >&6 4202else 4203 if test -n "$OBJDUMP"; then 4204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4205else 4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4207for as_dir in $PATH 4208do 4209 IFS=$as_save_IFS 4210 test -z "$as_dir" && as_dir=. 4211 for ac_exec_ext in '' $ac_executable_extensions; do 4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4215 break 2 4216 fi 4217done 4218 done 4219IFS=$as_save_IFS 4220 4221fi 4222fi 4223OBJDUMP=$ac_cv_prog_OBJDUMP 4224if test -n "$OBJDUMP"; then 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4226$as_echo "$OBJDUMP" >&6; } 4227else 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4229$as_echo "no" >&6; } 4230fi 4231 4232 4233fi 4234if test -z "$ac_cv_prog_OBJDUMP"; then 4235 ac_ct_OBJDUMP=$OBJDUMP 4236 # Extract the first word of "objdump", so it can be a program name with args. 4237set dummy objdump; ac_word=$2 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4239$as_echo_n "checking for $ac_word... " >&6; } 4240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 if test -n "$ac_ct_OBJDUMP"; then 4244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258 done 4259IFS=$as_save_IFS 4260 4261fi 4262fi 4263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4264if test -n "$ac_ct_OBJDUMP"; then 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4266$as_echo "$ac_ct_OBJDUMP" >&6; } 4267else 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269$as_echo "no" >&6; } 4270fi 4271 4272 if test "x$ac_ct_OBJDUMP" = x; then 4273 OBJDUMP="false" 4274 else 4275 case $cross_compiling:$ac_tool_warned in 4276yes:) 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4279ac_tool_warned=yes ;; 4280esac 4281 OBJDUMP=$ac_ct_OBJDUMP 4282 fi 4283else 4284 OBJDUMP="$ac_cv_prog_OBJDUMP" 4285fi 4286 4287test -z "$OBJDUMP" && OBJDUMP=objdump 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4298$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4299if ${lt_cv_deplibs_check_method+:} false; then : 4300 $as_echo_n "(cached) " >&6 4301else 4302 lt_cv_file_magic_cmd='$MAGIC_CMD' 4303lt_cv_file_magic_test_file= 4304lt_cv_deplibs_check_method='unknown' 4305# Need to set the preceding variable on all platforms that support 4306# interlibrary dependencies. 4307# 'none' -- dependencies not supported. 4308# `unknown' -- same as none, but documents that we really don't know. 4309# 'pass_all' -- all dependencies passed with no checks. 4310# 'test_compile' -- check by making test program. 4311# 'file_magic [[regex]]' -- check by looking for files in library path 4312# which responds to the $file_magic_cmd with a given extended regex. 4313# If you have `file' or equivalent on your system and you're not sure 4314# whether `pass_all' will *always* work, you probably want this one. 4315 4316case $host_os in 4317aix[4-9]*) 4318 lt_cv_deplibs_check_method=pass_all 4319 ;; 4320 4321beos*) 4322 lt_cv_deplibs_check_method=pass_all 4323 ;; 4324 4325bsdi[45]*) 4326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4327 lt_cv_file_magic_cmd='/usr/bin/file -L' 4328 lt_cv_file_magic_test_file=/shlib/libc.so 4329 ;; 4330 4331cygwin*) 4332 # func_win32_libid is a shell function defined in ltmain.sh 4333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4334 lt_cv_file_magic_cmd='func_win32_libid' 4335 ;; 4336 4337mingw* | pw32*) 4338 # Base MSYS/MinGW do not provide the 'file' command needed by 4339 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4340 # unless we find 'file', for example because we are cross-compiling. 4341 if ( file / ) >/dev/null 2>&1; then 4342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4343 lt_cv_file_magic_cmd='func_win32_libid' 4344 else 4345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4346 lt_cv_file_magic_cmd='$OBJDUMP -f' 4347 fi 4348 ;; 4349 4350cegcc) 4351 # use the weaker test based on 'objdump'. See mingw*. 4352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4353 lt_cv_file_magic_cmd='$OBJDUMP -f' 4354 ;; 4355 4356darwin* | rhapsody*) 4357 lt_cv_deplibs_check_method=pass_all 4358 ;; 4359 4360freebsd* | dragonfly*) 4361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4362 case $host_cpu in 4363 i*86 ) 4364 # Not sure whether the presence of OpenBSD here was a mistake. 4365 # Let's accept both of them until this is cleared up. 4366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4367 lt_cv_file_magic_cmd=/usr/bin/file 4368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4369 ;; 4370 esac 4371 else 4372 lt_cv_deplibs_check_method=pass_all 4373 fi 4374 ;; 4375 4376gnu*) 4377 lt_cv_deplibs_check_method=pass_all 4378 ;; 4379 4380hpux10.20* | hpux11*) 4381 lt_cv_file_magic_cmd=/usr/bin/file 4382 case $host_cpu in 4383 ia64*) 4384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4386 ;; 4387 hppa*64*) 4388 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]' 4389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4390 ;; 4391 *) 4392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4393 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4394 ;; 4395 esac 4396 ;; 4397 4398interix[3-9]*) 4399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4401 ;; 4402 4403irix5* | irix6* | nonstopux*) 4404 case $LD in 4405 *-32|*"-32 ") libmagic=32-bit;; 4406 *-n32|*"-n32 ") libmagic=N32;; 4407 *-64|*"-64 ") libmagic=64-bit;; 4408 *) libmagic=never-match;; 4409 esac 4410 lt_cv_deplibs_check_method=pass_all 4411 ;; 4412 4413# This must be Linux ELF. 4414linux* | k*bsd*-gnu) 4415 lt_cv_deplibs_check_method=pass_all 4416 ;; 4417 4418netbsd*) 4419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4421 else 4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4423 fi 4424 ;; 4425 4426newos6*) 4427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4428 lt_cv_file_magic_cmd=/usr/bin/file 4429 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4430 ;; 4431 4432*nto* | *qnx*) 4433 lt_cv_deplibs_check_method=pass_all 4434 ;; 4435 4436openbsd*) 4437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4439 else 4440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4441 fi 4442 ;; 4443 4444osf3* | osf4* | osf5*) 4445 lt_cv_deplibs_check_method=pass_all 4446 ;; 4447 4448rdos*) 4449 lt_cv_deplibs_check_method=pass_all 4450 ;; 4451 4452solaris*) 4453 lt_cv_deplibs_check_method=pass_all 4454 ;; 4455 4456sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4457 lt_cv_deplibs_check_method=pass_all 4458 ;; 4459 4460sysv4 | sysv4.3*) 4461 case $host_vendor in 4462 motorola) 4463 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]' 4464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4465 ;; 4466 ncr) 4467 lt_cv_deplibs_check_method=pass_all 4468 ;; 4469 sequent) 4470 lt_cv_file_magic_cmd='/bin/file' 4471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4472 ;; 4473 sni) 4474 lt_cv_file_magic_cmd='/bin/file' 4475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4476 lt_cv_file_magic_test_file=/lib/libc.so 4477 ;; 4478 siemens) 4479 lt_cv_deplibs_check_method=pass_all 4480 ;; 4481 pc) 4482 lt_cv_deplibs_check_method=pass_all 4483 ;; 4484 esac 4485 ;; 4486 4487tpf*) 4488 lt_cv_deplibs_check_method=pass_all 4489 ;; 4490esac 4491 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4494$as_echo "$lt_cv_deplibs_check_method" >&6; } 4495file_magic_cmd=$lt_cv_file_magic_cmd 4496deplibs_check_method=$lt_cv_deplibs_check_method 4497test -z "$deplibs_check_method" && deplibs_check_method=unknown 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510if test -n "$ac_tool_prefix"; then 4511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4512set dummy ${ac_tool_prefix}ar; ac_word=$2 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4514$as_echo_n "checking for $ac_word... " >&6; } 4515if ${ac_cv_prog_AR+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test -n "$AR"; then 4519 ac_cv_prog_AR="$AR" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4528 ac_cv_prog_AR="${ac_tool_prefix}ar" 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533 done 4534IFS=$as_save_IFS 4535 4536fi 4537fi 4538AR=$ac_cv_prog_AR 4539if test -n "$AR"; then 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4541$as_echo "$AR" >&6; } 4542else 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548fi 4549if test -z "$ac_cv_prog_AR"; then 4550 ac_ct_AR=$AR 4551 # Extract the first word of "ar", so it can be a program name with args. 4552set dummy ar; ac_word=$2 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4554$as_echo_n "checking for $ac_word... " >&6; } 4555if ${ac_cv_prog_ac_ct_AR+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 if test -n "$ac_ct_AR"; then 4559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4560else 4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562for as_dir in $PATH 4563do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4568 ac_cv_prog_ac_ct_AR="ar" 4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573 done 4574IFS=$as_save_IFS 4575 4576fi 4577fi 4578ac_ct_AR=$ac_cv_prog_ac_ct_AR 4579if test -n "$ac_ct_AR"; then 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4581$as_echo "$ac_ct_AR" >&6; } 4582else 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4584$as_echo "no" >&6; } 4585fi 4586 4587 if test "x$ac_ct_AR" = x; then 4588 AR="false" 4589 else 4590 case $cross_compiling:$ac_tool_warned in 4591yes:) 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4594ac_tool_warned=yes ;; 4595esac 4596 AR=$ac_ct_AR 4597 fi 4598else 4599 AR="$ac_cv_prog_AR" 4600fi 4601 4602test -z "$AR" && AR=ar 4603test -z "$AR_FLAGS" && AR_FLAGS=cru 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615if test -n "$ac_tool_prefix"; then 4616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4617set dummy ${ac_tool_prefix}strip; ac_word=$2 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4619$as_echo_n "checking for $ac_word... " >&6; } 4620if ${ac_cv_prog_STRIP+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 if test -n "$STRIP"; then 4624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4625else 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4635 break 2 4636 fi 4637done 4638 done 4639IFS=$as_save_IFS 4640 4641fi 4642fi 4643STRIP=$ac_cv_prog_STRIP 4644if test -n "$STRIP"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4646$as_echo "$STRIP" >&6; } 4647else 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649$as_echo "no" >&6; } 4650fi 4651 4652 4653fi 4654if test -z "$ac_cv_prog_STRIP"; then 4655 ac_ct_STRIP=$STRIP 4656 # Extract the first word of "strip", so it can be a program name with args. 4657set dummy strip; ac_word=$2 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4659$as_echo_n "checking for $ac_word... " >&6; } 4660if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 if test -n "$ac_ct_STRIP"; then 4664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4665else 4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4673 ac_cv_prog_ac_ct_STRIP="strip" 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678 done 4679IFS=$as_save_IFS 4680 4681fi 4682fi 4683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4684if test -n "$ac_ct_STRIP"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4686$as_echo "$ac_ct_STRIP" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689$as_echo "no" >&6; } 4690fi 4691 4692 if test "x$ac_ct_STRIP" = x; then 4693 STRIP=":" 4694 else 4695 case $cross_compiling:$ac_tool_warned in 4696yes:) 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4699ac_tool_warned=yes ;; 4700esac 4701 STRIP=$ac_ct_STRIP 4702 fi 4703else 4704 STRIP="$ac_cv_prog_STRIP" 4705fi 4706 4707test -z "$STRIP" && STRIP=: 4708 4709 4710 4711 4712 4713 4714if test -n "$ac_tool_prefix"; then 4715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4716set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4718$as_echo_n "checking for $ac_word... " >&6; } 4719if ${ac_cv_prog_RANLIB+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 if test -n "$RANLIB"; then 4723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4724else 4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 test -z "$as_dir" && as_dir=. 4730 for ac_exec_ext in '' $ac_executable_extensions; do 4731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4734 break 2 4735 fi 4736done 4737 done 4738IFS=$as_save_IFS 4739 4740fi 4741fi 4742RANLIB=$ac_cv_prog_RANLIB 4743if test -n "$RANLIB"; then 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4745$as_echo "$RANLIB" >&6; } 4746else 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4748$as_echo "no" >&6; } 4749fi 4750 4751 4752fi 4753if test -z "$ac_cv_prog_RANLIB"; then 4754 ac_ct_RANLIB=$RANLIB 4755 # Extract the first word of "ranlib", so it can be a program name with args. 4756set dummy ranlib; ac_word=$2 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4758$as_echo_n "checking for $ac_word... " >&6; } 4759if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761else 4762 if test -n "$ac_ct_RANLIB"; then 4763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4764else 4765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4766for as_dir in $PATH 4767do 4768 IFS=$as_save_IFS 4769 test -z "$as_dir" && as_dir=. 4770 for ac_exec_ext in '' $ac_executable_extensions; do 4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4772 ac_cv_prog_ac_ct_RANLIB="ranlib" 4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4774 break 2 4775 fi 4776done 4777 done 4778IFS=$as_save_IFS 4779 4780fi 4781fi 4782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4783if test -n "$ac_ct_RANLIB"; then 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4785$as_echo "$ac_ct_RANLIB" >&6; } 4786else 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4788$as_echo "no" >&6; } 4789fi 4790 4791 if test "x$ac_ct_RANLIB" = x; then 4792 RANLIB=":" 4793 else 4794 case $cross_compiling:$ac_tool_warned in 4795yes:) 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4798ac_tool_warned=yes ;; 4799esac 4800 RANLIB=$ac_ct_RANLIB 4801 fi 4802else 4803 RANLIB="$ac_cv_prog_RANLIB" 4804fi 4805 4806test -z "$RANLIB" && RANLIB=: 4807 4808 4809 4810 4811 4812 4813# Determine commands to create old-style static archives. 4814old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4815old_postinstall_cmds='chmod 644 $oldlib' 4816old_postuninstall_cmds= 4817 4818if test -n "$RANLIB"; then 4819 case $host_os in 4820 openbsd*) 4821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4822 ;; 4823 *) 4824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4825 ;; 4826 esac 4827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4828fi 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863# If no C compiler was specified, use CC. 4864LTCC=${LTCC-"$CC"} 4865 4866# If no C compiler flags were specified, use CFLAGS. 4867LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4868 4869# Allow CC to be a program name with arguments. 4870compiler=$CC 4871 4872 4873# Check for command to grab the raw symbol name followed by C symbol from nm. 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4875$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4876if ${lt_cv_sys_global_symbol_pipe+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 4880# These are sane defaults that work on at least a few old systems. 4881# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4882 4883# Character class describing NM global symbol codes. 4884symcode='[BCDEGRST]' 4885 4886# Regexp to match symbols that can be accessed directly from C. 4887sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4888 4889# Define system-specific variables. 4890case $host_os in 4891aix*) 4892 symcode='[BCDT]' 4893 ;; 4894cygwin* | mingw* | pw32* | cegcc*) 4895 symcode='[ABCDGISTW]' 4896 ;; 4897hpux*) 4898 if test "$host_cpu" = ia64; then 4899 symcode='[ABCDEGRST]' 4900 fi 4901 ;; 4902irix* | nonstopux*) 4903 symcode='[BCDEGRST]' 4904 ;; 4905osf*) 4906 symcode='[BCDEGQRST]' 4907 ;; 4908solaris*) 4909 symcode='[BDRT]' 4910 ;; 4911sco3.2v5*) 4912 symcode='[DT]' 4913 ;; 4914sysv4.2uw2*) 4915 symcode='[DT]' 4916 ;; 4917sysv5* | sco5v6* | unixware* | OpenUNIX*) 4918 symcode='[ABDT]' 4919 ;; 4920sysv4) 4921 symcode='[DFNSTU]' 4922 ;; 4923esac 4924 4925# If we're using GNU nm, then use its standard symbol codes. 4926case `$NM -V 2>&1` in 4927*GNU* | *'with BFD'*) 4928 symcode='[ABCDGIRSTW]' ;; 4929esac 4930 4931# Transform an extracted symbol line into a proper C declaration. 4932# Some systems (esp. on ia64) link data and code symbols differently, 4933# so use this general approach. 4934lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4935 4936# Transform an extracted symbol line into symbol name and symbol address 4937lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4938lt_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'" 4939 4940# Handle CRLF in mingw tool chain 4941opt_cr= 4942case $build_os in 4943mingw*) 4944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4945 ;; 4946esac 4947 4948# Try without a prefix underscore, then with it. 4949for ac_symprfx in "" "_"; do 4950 4951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4952 symxfrm="\\1 $ac_symprfx\\2 \\2" 4953 4954 # Write the raw and C identifiers. 4955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4956 # Fake it for dumpbin and say T for any non-static function 4957 # and D for any global variable. 4958 # Also find C++ and __fastcall symbols from MSVC++, 4959 # which start with @ or ?. 4960 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4961" {last_section=section; section=\$ 3};"\ 4962" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4963" \$ 0!~/External *\|/{next};"\ 4964" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4965" {if(hide[section]) next};"\ 4966" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4967" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4968" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4969" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4970" ' prfx=^$ac_symprfx" 4971 else 4972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4973 fi 4974 4975 # Check to see that the pipe works correctly. 4976 pipe_works=no 4977 4978 rm -f conftest* 4979 cat > conftest.$ac_ext <<_LT_EOF 4980#ifdef __cplusplus 4981extern "C" { 4982#endif 4983char nm_test_var; 4984void nm_test_func(void); 4985void nm_test_func(void){} 4986#ifdef __cplusplus 4987} 4988#endif 4989int main(){nm_test_var='a';nm_test_func();return(0);} 4990_LT_EOF 4991 4992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4993 (eval $ac_compile) 2>&5 4994 ac_status=$? 4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4996 test $ac_status = 0; }; then 4997 # Now try to grab the symbols. 4998 nlist=conftest.nm 4999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5000 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5001 ac_status=$? 5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5003 test $ac_status = 0; } && test -s "$nlist"; then 5004 # Try sorting and uniquifying the output. 5005 if sort "$nlist" | uniq > "$nlist"T; then 5006 mv -f "$nlist"T "$nlist" 5007 else 5008 rm -f "$nlist"T 5009 fi 5010 5011 # Make sure that we snagged all the symbols we need. 5012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5014 cat <<_LT_EOF > conftest.$ac_ext 5015#ifdef __cplusplus 5016extern "C" { 5017#endif 5018 5019_LT_EOF 5020 # Now generate the symbol file. 5021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5022 5023 cat <<_LT_EOF >> conftest.$ac_ext 5024 5025/* The mapping between symbol names and symbols. */ 5026const struct { 5027 const char *name; 5028 void *address; 5029} 5030lt__PROGRAM__LTX_preloaded_symbols[] = 5031{ 5032 { "@PROGRAM@", (void *) 0 }, 5033_LT_EOF 5034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5035 cat <<\_LT_EOF >> conftest.$ac_ext 5036 {0, (void *) 0} 5037}; 5038 5039/* This works around a problem in FreeBSD linker */ 5040#ifdef FREEBSD_WORKAROUND 5041static const void *lt_preloaded_setup() { 5042 return lt__PROGRAM__LTX_preloaded_symbols; 5043} 5044#endif 5045 5046#ifdef __cplusplus 5047} 5048#endif 5049_LT_EOF 5050 # Now try linking the two files. 5051 mv conftest.$ac_objext conftstm.$ac_objext 5052 lt_save_LIBS="$LIBS" 5053 lt_save_CFLAGS="$CFLAGS" 5054 LIBS="conftstm.$ac_objext" 5055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5057 (eval $ac_link) 2>&5 5058 ac_status=$? 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5061 pipe_works=yes 5062 fi 5063 LIBS="$lt_save_LIBS" 5064 CFLAGS="$lt_save_CFLAGS" 5065 else 5066 echo "cannot find nm_test_func in $nlist" >&5 5067 fi 5068 else 5069 echo "cannot find nm_test_var in $nlist" >&5 5070 fi 5071 else 5072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5073 fi 5074 else 5075 echo "$progname: failed program was:" >&5 5076 cat conftest.$ac_ext >&5 5077 fi 5078 rm -rf conftest* conftst* 5079 5080 # Do not use the global_symbol_pipe unless it works. 5081 if test "$pipe_works" = yes; then 5082 break 5083 else 5084 lt_cv_sys_global_symbol_pipe= 5085 fi 5086done 5087 5088fi 5089 5090if test -z "$lt_cv_sys_global_symbol_pipe"; then 5091 lt_cv_sys_global_symbol_to_cdecl= 5092fi 5093if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5095$as_echo "failed" >&6; } 5096else 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5098$as_echo "ok" >&6; } 5099fi 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123# Check whether --enable-libtool-lock was given. 5124if test "${enable_libtool_lock+set}" = set; then : 5125 enableval=$enable_libtool_lock; 5126fi 5127 5128test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5129 5130# Some flags need to be propagated to the compiler or linker for good 5131# libtool support. 5132case $host in 5133ia64-*-hpux*) 5134 # Find out which ABI we are using. 5135 echo 'int i;' > conftest.$ac_ext 5136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5137 (eval $ac_compile) 2>&5 5138 ac_status=$? 5139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5140 test $ac_status = 0; }; then 5141 case `/usr/bin/file conftest.$ac_objext` in 5142 *ELF-32*) 5143 HPUX_IA64_MODE="32" 5144 ;; 5145 *ELF-64*) 5146 HPUX_IA64_MODE="64" 5147 ;; 5148 esac 5149 fi 5150 rm -rf conftest* 5151 ;; 5152*-*-irix6*) 5153 # Find out which ABI we are using. 5154 echo '#line 5152 "configure"' > conftest.$ac_ext 5155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5156 (eval $ac_compile) 2>&5 5157 ac_status=$? 5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5159 test $ac_status = 0; }; then 5160 if test "$lt_cv_prog_gnu_ld" = yes; then 5161 case `/usr/bin/file conftest.$ac_objext` in 5162 *32-bit*) 5163 LD="${LD-ld} -melf32bsmip" 5164 ;; 5165 *N32*) 5166 LD="${LD-ld} -melf32bmipn32" 5167 ;; 5168 *64-bit*) 5169 LD="${LD-ld} -melf64bmip" 5170 ;; 5171 esac 5172 else 5173 case `/usr/bin/file conftest.$ac_objext` in 5174 *32-bit*) 5175 LD="${LD-ld} -32" 5176 ;; 5177 *N32*) 5178 LD="${LD-ld} -n32" 5179 ;; 5180 *64-bit*) 5181 LD="${LD-ld} -64" 5182 ;; 5183 esac 5184 fi 5185 fi 5186 rm -rf conftest* 5187 ;; 5188 5189x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5190s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5191 # Find out which ABI we are using. 5192 echo 'int i;' > conftest.$ac_ext 5193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5194 (eval $ac_compile) 2>&5 5195 ac_status=$? 5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5197 test $ac_status = 0; }; then 5198 case `/usr/bin/file conftest.o` in 5199 *32-bit*) 5200 case $host in 5201 x86_64-*kfreebsd*-gnu) 5202 LD="${LD-ld} -m elf_i386_fbsd" 5203 ;; 5204 x86_64-*linux*) 5205 LD="${LD-ld} -m elf_i386" 5206 ;; 5207 ppc64-*linux*|powerpc64-*linux*) 5208 LD="${LD-ld} -m elf32ppclinux" 5209 ;; 5210 s390x-*linux*) 5211 LD="${LD-ld} -m elf_s390" 5212 ;; 5213 sparc64-*linux*) 5214 LD="${LD-ld} -m elf32_sparc" 5215 ;; 5216 esac 5217 ;; 5218 *64-bit*) 5219 case $host in 5220 x86_64-*kfreebsd*-gnu) 5221 LD="${LD-ld} -m elf_x86_64_fbsd" 5222 ;; 5223 x86_64-*linux*) 5224 LD="${LD-ld} -m elf_x86_64" 5225 ;; 5226 ppc*-*linux*|powerpc*-*linux*) 5227 LD="${LD-ld} -m elf64ppc" 5228 ;; 5229 s390*-*linux*|s390*-*tpf*) 5230 LD="${LD-ld} -m elf64_s390" 5231 ;; 5232 sparc*-*linux*) 5233 LD="${LD-ld} -m elf64_sparc" 5234 ;; 5235 esac 5236 ;; 5237 esac 5238 fi 5239 rm -rf conftest* 5240 ;; 5241 5242*-*-sco3.2v5*) 5243 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5244 SAVE_CFLAGS="$CFLAGS" 5245 CFLAGS="$CFLAGS -belf" 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5247$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5248if ${lt_cv_cc_needs_belf+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 ac_ext=c 5252ac_cpp='$CPP $CPPFLAGS' 5253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5255ac_compiler_gnu=$ac_cv_c_compiler_gnu 5256 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259 5260int 5261main () 5262{ 5263 5264 ; 5265 return 0; 5266} 5267_ACEOF 5268if ac_fn_c_try_link "$LINENO"; then : 5269 lt_cv_cc_needs_belf=yes 5270else 5271 lt_cv_cc_needs_belf=no 5272fi 5273rm -f core conftest.err conftest.$ac_objext \ 5274 conftest$ac_exeext conftest.$ac_ext 5275 ac_ext=c 5276ac_cpp='$CPP $CPPFLAGS' 5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5279ac_compiler_gnu=$ac_cv_c_compiler_gnu 5280 5281fi 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5283$as_echo "$lt_cv_cc_needs_belf" >&6; } 5284 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5285 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5286 CFLAGS="$SAVE_CFLAGS" 5287 fi 5288 ;; 5289sparc*-*solaris*) 5290 # Find out which ABI we are using. 5291 echo 'int i;' > conftest.$ac_ext 5292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5293 (eval $ac_compile) 2>&5 5294 ac_status=$? 5295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5296 test $ac_status = 0; }; then 5297 case `/usr/bin/file conftest.o` in 5298 *64-bit*) 5299 case $lt_cv_prog_gnu_ld in 5300 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5301 *) 5302 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5303 LD="${LD-ld} -64" 5304 fi 5305 ;; 5306 esac 5307 ;; 5308 esac 5309 fi 5310 rm -rf conftest* 5311 ;; 5312esac 5313 5314need_locks="$enable_libtool_lock" 5315 5316 5317 case $host_os in 5318 rhapsody* | darwin*) 5319 if test -n "$ac_tool_prefix"; then 5320 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5321set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5323$as_echo_n "checking for $ac_word... " >&6; } 5324if ${ac_cv_prog_DSYMUTIL+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 if test -n "$DSYMUTIL"; then 5328 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5329else 5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5337 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341done 5342 done 5343IFS=$as_save_IFS 5344 5345fi 5346fi 5347DSYMUTIL=$ac_cv_prog_DSYMUTIL 5348if test -n "$DSYMUTIL"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5350$as_echo "$DSYMUTIL" >&6; } 5351else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353$as_echo "no" >&6; } 5354fi 5355 5356 5357fi 5358if test -z "$ac_cv_prog_DSYMUTIL"; then 5359 ac_ct_DSYMUTIL=$DSYMUTIL 5360 # Extract the first word of "dsymutil", so it can be a program name with args. 5361set dummy dsymutil; ac_word=$2 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363$as_echo_n "checking for $ac_word... " >&6; } 5364if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if test -n "$ac_ct_DSYMUTIL"; then 5368 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5369else 5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371for as_dir in $PATH 5372do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5377 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381done 5382 done 5383IFS=$as_save_IFS 5384 5385fi 5386fi 5387ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5388if test -n "$ac_ct_DSYMUTIL"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5390$as_echo "$ac_ct_DSYMUTIL" >&6; } 5391else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393$as_echo "no" >&6; } 5394fi 5395 5396 if test "x$ac_ct_DSYMUTIL" = x; then 5397 DSYMUTIL=":" 5398 else 5399 case $cross_compiling:$ac_tool_warned in 5400yes:) 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5403ac_tool_warned=yes ;; 5404esac 5405 DSYMUTIL=$ac_ct_DSYMUTIL 5406 fi 5407else 5408 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5409fi 5410 5411 if test -n "$ac_tool_prefix"; then 5412 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5413set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5415$as_echo_n "checking for $ac_word... " >&6; } 5416if ${ac_cv_prog_NMEDIT+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 if test -n "$NMEDIT"; then 5420 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5421else 5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5423for as_dir in $PATH 5424do 5425 IFS=$as_save_IFS 5426 test -z "$as_dir" && as_dir=. 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5429 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5431 break 2 5432 fi 5433done 5434 done 5435IFS=$as_save_IFS 5436 5437fi 5438fi 5439NMEDIT=$ac_cv_prog_NMEDIT 5440if test -n "$NMEDIT"; then 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5442$as_echo "$NMEDIT" >&6; } 5443else 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5445$as_echo "no" >&6; } 5446fi 5447 5448 5449fi 5450if test -z "$ac_cv_prog_NMEDIT"; then 5451 ac_ct_NMEDIT=$NMEDIT 5452 # Extract the first word of "nmedit", so it can be a program name with args. 5453set dummy nmedit; ac_word=$2 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455$as_echo_n "checking for $ac_word... " >&6; } 5456if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 if test -n "$ac_ct_NMEDIT"; then 5460 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5461else 5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463for as_dir in $PATH 5464do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5469 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473done 5474 done 5475IFS=$as_save_IFS 5476 5477fi 5478fi 5479ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5480if test -n "$ac_ct_NMEDIT"; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5482$as_echo "$ac_ct_NMEDIT" >&6; } 5483else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485$as_echo "no" >&6; } 5486fi 5487 5488 if test "x$ac_ct_NMEDIT" = x; then 5489 NMEDIT=":" 5490 else 5491 case $cross_compiling:$ac_tool_warned in 5492yes:) 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5495ac_tool_warned=yes ;; 5496esac 5497 NMEDIT=$ac_ct_NMEDIT 5498 fi 5499else 5500 NMEDIT="$ac_cv_prog_NMEDIT" 5501fi 5502 5503 if test -n "$ac_tool_prefix"; then 5504 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5505set dummy ${ac_tool_prefix}lipo; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_prog_LIPO+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$LIPO"; then 5512 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526 done 5527IFS=$as_save_IFS 5528 5529fi 5530fi 5531LIPO=$ac_cv_prog_LIPO 5532if test -n "$LIPO"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5534$as_echo "$LIPO" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541fi 5542if test -z "$ac_cv_prog_LIPO"; then 5543 ac_ct_LIPO=$LIPO 5544 # Extract the first word of "lipo", so it can be a program name with args. 5545set dummy lipo; ac_word=$2 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5547$as_echo_n "checking for $ac_word... " >&6; } 5548if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 if test -n "$ac_ct_LIPO"; then 5552 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5553else 5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5555for as_dir in $PATH 5556do 5557 IFS=$as_save_IFS 5558 test -z "$as_dir" && as_dir=. 5559 for ac_exec_ext in '' $ac_executable_extensions; do 5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5561 ac_cv_prog_ac_ct_LIPO="lipo" 5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5563 break 2 5564 fi 5565done 5566 done 5567IFS=$as_save_IFS 5568 5569fi 5570fi 5571ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5572if test -n "$ac_ct_LIPO"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5574$as_echo "$ac_ct_LIPO" >&6; } 5575else 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5577$as_echo "no" >&6; } 5578fi 5579 5580 if test "x$ac_ct_LIPO" = x; then 5581 LIPO=":" 5582 else 5583 case $cross_compiling:$ac_tool_warned in 5584yes:) 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5587ac_tool_warned=yes ;; 5588esac 5589 LIPO=$ac_ct_LIPO 5590 fi 5591else 5592 LIPO="$ac_cv_prog_LIPO" 5593fi 5594 5595 if test -n "$ac_tool_prefix"; then 5596 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5597set dummy ${ac_tool_prefix}otool; ac_word=$2 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5599$as_echo_n "checking for $ac_word... " >&6; } 5600if ${ac_cv_prog_OTOOL+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602else 5603 if test -n "$OTOOL"; then 5604 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5605else 5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5607for as_dir in $PATH 5608do 5609 IFS=$as_save_IFS 5610 test -z "$as_dir" && as_dir=. 5611 for ac_exec_ext in '' $ac_executable_extensions; do 5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5613 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5615 break 2 5616 fi 5617done 5618 done 5619IFS=$as_save_IFS 5620 5621fi 5622fi 5623OTOOL=$ac_cv_prog_OTOOL 5624if test -n "$OTOOL"; then 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5626$as_echo "$OTOOL" >&6; } 5627else 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5629$as_echo "no" >&6; } 5630fi 5631 5632 5633fi 5634if test -z "$ac_cv_prog_OTOOL"; then 5635 ac_ct_OTOOL=$OTOOL 5636 # Extract the first word of "otool", so it can be a program name with args. 5637set dummy otool; ac_word=$2 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5639$as_echo_n "checking for $ac_word... " >&6; } 5640if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642else 5643 if test -n "$ac_ct_OTOOL"; then 5644 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5645else 5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5647for as_dir in $PATH 5648do 5649 IFS=$as_save_IFS 5650 test -z "$as_dir" && as_dir=. 5651 for ac_exec_ext in '' $ac_executable_extensions; do 5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5653 ac_cv_prog_ac_ct_OTOOL="otool" 5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5655 break 2 5656 fi 5657done 5658 done 5659IFS=$as_save_IFS 5660 5661fi 5662fi 5663ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5664if test -n "$ac_ct_OTOOL"; then 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5666$as_echo "$ac_ct_OTOOL" >&6; } 5667else 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5669$as_echo "no" >&6; } 5670fi 5671 5672 if test "x$ac_ct_OTOOL" = x; then 5673 OTOOL=":" 5674 else 5675 case $cross_compiling:$ac_tool_warned in 5676yes:) 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5679ac_tool_warned=yes ;; 5680esac 5681 OTOOL=$ac_ct_OTOOL 5682 fi 5683else 5684 OTOOL="$ac_cv_prog_OTOOL" 5685fi 5686 5687 if test -n "$ac_tool_prefix"; then 5688 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5689set dummy ${ac_tool_prefix}otool64; ac_word=$2 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691$as_echo_n "checking for $ac_word... " >&6; } 5692if ${ac_cv_prog_OTOOL64+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 if test -n "$OTOOL64"; then 5696 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5697else 5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713fi 5714fi 5715OTOOL64=$ac_cv_prog_OTOOL64 5716if test -n "$OTOOL64"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5718$as_echo "$OTOOL64" >&6; } 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722fi 5723 5724 5725fi 5726if test -z "$ac_cv_prog_OTOOL64"; then 5727 ac_ct_OTOOL64=$OTOOL64 5728 # Extract the first word of "otool64", so it can be a program name with args. 5729set dummy otool64; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_OTOOL64"; then 5736 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_OTOOL64="otool64" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5756if test -n "$ac_ct_OTOOL64"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5758$as_echo "$ac_ct_OTOOL64" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 if test "x$ac_ct_OTOOL64" = x; then 5765 OTOOL64=":" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768yes:) 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771ac_tool_warned=yes ;; 5772esac 5773 OTOOL64=$ac_ct_OTOOL64 5774 fi 5775else 5776 OTOOL64="$ac_cv_prog_OTOOL64" 5777fi 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5806$as_echo_n "checking for -single_module linker flag... " >&6; } 5807if ${lt_cv_apple_cc_single_mod+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 lt_cv_apple_cc_single_mod=no 5811 if test -z "${LT_MULTI_MODULE}"; then 5812 # By default we will add the -single_module flag. You can override 5813 # by either setting the environment variable LT_MULTI_MODULE 5814 # non-empty at configure time, or by adding -multi_module to the 5815 # link flags. 5816 rm -rf libconftest.dylib* 5817 echo "int foo(void){return 1;}" > conftest.c 5818 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5819-dynamiclib -Wl,-single_module conftest.c" >&5 5820 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5821 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5822 _lt_result=$? 5823 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5824 lt_cv_apple_cc_single_mod=yes 5825 else 5826 cat conftest.err >&5 5827 fi 5828 rm -rf libconftest.dylib* 5829 rm -f conftest.* 5830 fi 5831fi 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5833$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5835$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5836if ${lt_cv_ld_exported_symbols_list+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 lt_cv_ld_exported_symbols_list=no 5840 save_LDFLAGS=$LDFLAGS 5841 echo "_main" > conftest.sym 5842 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845 5846int 5847main () 5848{ 5849 5850 ; 5851 return 0; 5852} 5853_ACEOF 5854if ac_fn_c_try_link "$LINENO"; then : 5855 lt_cv_ld_exported_symbols_list=yes 5856else 5857 lt_cv_ld_exported_symbols_list=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext \ 5860 conftest$ac_exeext conftest.$ac_ext 5861 LDFLAGS="$save_LDFLAGS" 5862 5863fi 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5865$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5866 case $host_os in 5867 rhapsody* | darwin1.[012]) 5868 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5869 darwin1.*) 5870 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5871 darwin*) # darwin 5.x on 5872 # if running on 10.5 or later, the deployment target defaults 5873 # to the OS version, if on x86, and 10.4, the deployment 5874 # target defaults to 10.4. Don't you love it? 5875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5876 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5878 10.[012]*) 5879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5880 10.*) 5881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5882 esac 5883 ;; 5884 esac 5885 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5886 _lt_dar_single_mod='$single_module' 5887 fi 5888 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5889 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5890 else 5891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5892 fi 5893 if test "$DSYMUTIL" != ":"; then 5894 _lt_dsymutil='~$DSYMUTIL $lib || :' 5895 else 5896 _lt_dsymutil= 5897 fi 5898 ;; 5899 esac 5900 5901ac_ext=c 5902ac_cpp='$CPP $CPPFLAGS' 5903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5905ac_compiler_gnu=$ac_cv_c_compiler_gnu 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5907$as_echo_n "checking how to run the C preprocessor... " >&6; } 5908# On Suns, sometimes $CPP names a directory. 5909if test -n "$CPP" && test -d "$CPP"; then 5910 CPP= 5911fi 5912if test -z "$CPP"; then 5913 if ${ac_cv_prog_CPP+:} false; then : 5914 $as_echo_n "(cached) " >&6 5915else 5916 # Double quotes because CPP needs to be expanded 5917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5918 do 5919 ac_preproc_ok=false 5920for ac_c_preproc_warn_flag in '' yes 5921do 5922 # Use a header file that comes with gcc, so configuring glibc 5923 # with a fresh cross-compiler works. 5924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5925 # <limits.h> exists even on freestanding compilers. 5926 # On the NeXT, cc -E runs the code through the compiler's parser, 5927 # not just through cpp. "Syntax error" is here to catch this case. 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930#ifdef __STDC__ 5931# include <limits.h> 5932#else 5933# include <assert.h> 5934#endif 5935 Syntax error 5936_ACEOF 5937if ac_fn_c_try_cpp "$LINENO"; then : 5938 5939else 5940 # Broken: fails on valid input. 5941continue 5942fi 5943rm -f conftest.err conftest.i conftest.$ac_ext 5944 5945 # OK, works on sane cases. Now check whether nonexistent headers 5946 # can be detected and how. 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948/* end confdefs.h. */ 5949#include <ac_nonexistent.h> 5950_ACEOF 5951if ac_fn_c_try_cpp "$LINENO"; then : 5952 # Broken: success on invalid input. 5953continue 5954else 5955 # Passes both tests. 5956ac_preproc_ok=: 5957break 5958fi 5959rm -f conftest.err conftest.i conftest.$ac_ext 5960 5961done 5962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5963rm -f conftest.i conftest.err conftest.$ac_ext 5964if $ac_preproc_ok; then : 5965 break 5966fi 5967 5968 done 5969 ac_cv_prog_CPP=$CPP 5970 5971fi 5972 CPP=$ac_cv_prog_CPP 5973else 5974 ac_cv_prog_CPP=$CPP 5975fi 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5977$as_echo "$CPP" >&6; } 5978ac_preproc_ok=false 5979for ac_c_preproc_warn_flag in '' yes 5980do 5981 # Use a header file that comes with gcc, so configuring glibc 5982 # with a fresh cross-compiler works. 5983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5984 # <limits.h> exists even on freestanding compilers. 5985 # On the NeXT, cc -E runs the code through the compiler's parser, 5986 # not just through cpp. "Syntax error" is here to catch this case. 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988/* end confdefs.h. */ 5989#ifdef __STDC__ 5990# include <limits.h> 5991#else 5992# include <assert.h> 5993#endif 5994 Syntax error 5995_ACEOF 5996if ac_fn_c_try_cpp "$LINENO"; then : 5997 5998else 5999 # Broken: fails on valid input. 6000continue 6001fi 6002rm -f conftest.err conftest.i conftest.$ac_ext 6003 6004 # OK, works on sane cases. Now check whether nonexistent headers 6005 # can be detected and how. 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007/* end confdefs.h. */ 6008#include <ac_nonexistent.h> 6009_ACEOF 6010if ac_fn_c_try_cpp "$LINENO"; then : 6011 # Broken: success on invalid input. 6012continue 6013else 6014 # Passes both tests. 6015ac_preproc_ok=: 6016break 6017fi 6018rm -f conftest.err conftest.i conftest.$ac_ext 6019 6020done 6021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6022rm -f conftest.i conftest.err conftest.$ac_ext 6023if $ac_preproc_ok; then : 6024 6025else 6026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6028as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6029See \`config.log' for more details" "$LINENO" 5; } 6030fi 6031 6032ac_ext=c 6033ac_cpp='$CPP $CPPFLAGS' 6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6036ac_compiler_gnu=$ac_cv_c_compiler_gnu 6037 6038 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6040$as_echo_n "checking for ANSI C header files... " >&6; } 6041if ${ac_cv_header_stdc+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045/* end confdefs.h. */ 6046#include <stdlib.h> 6047#include <stdarg.h> 6048#include <string.h> 6049#include <float.h> 6050 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_compile "$LINENO"; then : 6060 ac_cv_header_stdc=yes 6061else 6062 ac_cv_header_stdc=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6065 6066if test $ac_cv_header_stdc = yes; then 6067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069/* end confdefs.h. */ 6070#include <string.h> 6071 6072_ACEOF 6073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6074 $EGREP "memchr" >/dev/null 2>&1; then : 6075 6076else 6077 ac_cv_header_stdc=no 6078fi 6079rm -f conftest* 6080 6081fi 6082 6083if test $ac_cv_header_stdc = yes; then 6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087#include <stdlib.h> 6088 6089_ACEOF 6090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6091 $EGREP "free" >/dev/null 2>&1; then : 6092 6093else 6094 ac_cv_header_stdc=no 6095fi 6096rm -f conftest* 6097 6098fi 6099 6100if test $ac_cv_header_stdc = yes; then 6101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6102 if test "$cross_compiling" = yes; then : 6103 : 6104else 6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107#include <ctype.h> 6108#include <stdlib.h> 6109#if ((' ' & 0x0FF) == 0x020) 6110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6112#else 6113# define ISLOWER(c) \ 6114 (('a' <= (c) && (c) <= 'i') \ 6115 || ('j' <= (c) && (c) <= 'r') \ 6116 || ('s' <= (c) && (c) <= 'z')) 6117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6118#endif 6119 6120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6121int 6122main () 6123{ 6124 int i; 6125 for (i = 0; i < 256; i++) 6126 if (XOR (islower (i), ISLOWER (i)) 6127 || toupper (i) != TOUPPER (i)) 6128 return 2; 6129 return 0; 6130} 6131_ACEOF 6132if ac_fn_c_try_run "$LINENO"; then : 6133 6134else 6135 ac_cv_header_stdc=no 6136fi 6137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6138 conftest.$ac_objext conftest.beam conftest.$ac_ext 6139fi 6140 6141fi 6142fi 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6144$as_echo "$ac_cv_header_stdc" >&6; } 6145if test $ac_cv_header_stdc = yes; then 6146 6147$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6148 6149fi 6150 6151# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6153 inttypes.h stdint.h unistd.h 6154do : 6155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6157" 6158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6159 cat >>confdefs.h <<_ACEOF 6160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6161_ACEOF 6162 6163fi 6164 6165done 6166 6167 6168for ac_header in dlfcn.h 6169do : 6170 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6171" 6172if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6173 cat >>confdefs.h <<_ACEOF 6174#define HAVE_DLFCN_H 1 6175_ACEOF 6176 6177fi 6178 6179done 6180 6181 6182 6183# Set options 6184 6185 6186 6187 enable_dlopen=no 6188 6189 6190 enable_win32_dll=no 6191 6192 6193 # Check whether --enable-shared was given. 6194if test "${enable_shared+set}" = set; then : 6195 enableval=$enable_shared; p=${PACKAGE-default} 6196 case $enableval in 6197 yes) enable_shared=yes ;; 6198 no) enable_shared=no ;; 6199 *) 6200 enable_shared=no 6201 # Look at the argument we got. We use all the common list separators. 6202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6203 for pkg in $enableval; do 6204 IFS="$lt_save_ifs" 6205 if test "X$pkg" = "X$p"; then 6206 enable_shared=yes 6207 fi 6208 done 6209 IFS="$lt_save_ifs" 6210 ;; 6211 esac 6212else 6213 enable_shared=yes 6214fi 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 # Check whether --enable-static was given. 6225if test "${enable_static+set}" = set; then : 6226 enableval=$enable_static; p=${PACKAGE-default} 6227 case $enableval in 6228 yes) enable_static=yes ;; 6229 no) enable_static=no ;; 6230 *) 6231 enable_static=no 6232 # Look at the argument we got. We use all the common list separators. 6233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6234 for pkg in $enableval; do 6235 IFS="$lt_save_ifs" 6236 if test "X$pkg" = "X$p"; then 6237 enable_static=yes 6238 fi 6239 done 6240 IFS="$lt_save_ifs" 6241 ;; 6242 esac 6243else 6244 enable_static=yes 6245fi 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256# Check whether --with-pic was given. 6257if test "${with_pic+set}" = set; then : 6258 withval=$with_pic; pic_mode="$withval" 6259else 6260 pic_mode=default 6261fi 6262 6263 6264test -z "$pic_mode" && pic_mode=default 6265 6266 6267 6268 6269 6270 6271 6272 # Check whether --enable-fast-install was given. 6273if test "${enable_fast_install+set}" = set; then : 6274 enableval=$enable_fast_install; p=${PACKAGE-default} 6275 case $enableval in 6276 yes) enable_fast_install=yes ;; 6277 no) enable_fast_install=no ;; 6278 *) 6279 enable_fast_install=no 6280 # Look at the argument we got. We use all the common list separators. 6281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6282 for pkg in $enableval; do 6283 IFS="$lt_save_ifs" 6284 if test "X$pkg" = "X$p"; then 6285 enable_fast_install=yes 6286 fi 6287 done 6288 IFS="$lt_save_ifs" 6289 ;; 6290 esac 6291else 6292 enable_fast_install=yes 6293fi 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305# This can be used to rebuild libtool when needed 6306LIBTOOL_DEPS="$ltmain" 6307 6308# Always use our own libtool. 6309LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335test -z "$LN_S" && LN_S="ln -s" 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350if test -n "${ZSH_VERSION+set}" ; then 6351 setopt NO_GLOB_SUBST 6352fi 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6355$as_echo_n "checking for objdir... " >&6; } 6356if ${lt_cv_objdir+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 rm -f .libs 2>/dev/null 6360mkdir .libs 2>/dev/null 6361if test -d .libs; then 6362 lt_cv_objdir=.libs 6363else 6364 # MS-DOS does not allow filenames that begin with a dot. 6365 lt_cv_objdir=_libs 6366fi 6367rmdir .libs 2>/dev/null 6368fi 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6370$as_echo "$lt_cv_objdir" >&6; } 6371objdir=$lt_cv_objdir 6372 6373 6374 6375 6376 6377cat >>confdefs.h <<_ACEOF 6378#define LT_OBJDIR "$lt_cv_objdir/" 6379_ACEOF 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397case $host_os in 6398aix3*) 6399 # AIX sometimes has problems with the GCC collect2 program. For some 6400 # reason, if we set the COLLECT_NAMES environment variable, the problems 6401 # vanish in a puff of smoke. 6402 if test "X${COLLECT_NAMES+set}" != Xset; then 6403 COLLECT_NAMES= 6404 export COLLECT_NAMES 6405 fi 6406 ;; 6407esac 6408 6409# Sed substitution that helps us do robust quoting. It backslashifies 6410# metacharacters that are still active within double-quoted strings. 6411sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6412 6413# Same as above, but do not quote variable references. 6414double_quote_subst='s/\(["`\\]\)/\\\1/g' 6415 6416# Sed substitution to delay expansion of an escaped shell variable in a 6417# double_quote_subst'ed string. 6418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6419 6420# Sed substitution to delay expansion of an escaped single quote. 6421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6422 6423# Sed substitution to avoid accidental globbing in evaled expressions 6424no_glob_subst='s/\*/\\\*/g' 6425 6426# Global variables: 6427ofile=libtool 6428can_build_shared=yes 6429 6430# All known linkers require a `.a' archive for static linking (except MSVC, 6431# which needs '.lib'). 6432libext=a 6433 6434with_gnu_ld="$lt_cv_prog_gnu_ld" 6435 6436old_CC="$CC" 6437old_CFLAGS="$CFLAGS" 6438 6439# Set sane defaults for various variables 6440test -z "$CC" && CC=cc 6441test -z "$LTCC" && LTCC=$CC 6442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6443test -z "$LD" && LD=ld 6444test -z "$ac_objext" && ac_objext=o 6445 6446for cc_temp in $compiler""; do 6447 case $cc_temp in 6448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6450 \-*) ;; 6451 *) break;; 6452 esac 6453done 6454cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6455 6456 6457# Only perform the check for file, if the check method requires it 6458test -z "$MAGIC_CMD" && MAGIC_CMD=file 6459case $deplibs_check_method in 6460file_magic*) 6461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6463$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6464if ${lt_cv_path_MAGIC_CMD+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 case $MAGIC_CMD in 6468[\\/*] | ?:[\\/]*) 6469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6470 ;; 6471*) 6472 lt_save_MAGIC_CMD="$MAGIC_CMD" 6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6475 for ac_dir in $ac_dummy; do 6476 IFS="$lt_save_ifs" 6477 test -z "$ac_dir" && ac_dir=. 6478 if test -f $ac_dir/${ac_tool_prefix}file; then 6479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6480 if test -n "$file_magic_test_file"; then 6481 case $deplibs_check_method in 6482 "file_magic "*) 6483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6486 $EGREP "$file_magic_regex" > /dev/null; then 6487 : 6488 else 6489 cat <<_LT_EOF 1>&2 6490 6491*** Warning: the command libtool uses to detect shared libraries, 6492*** $file_magic_cmd, produces output that libtool cannot recognize. 6493*** The result is that libtool may fail to recognize shared libraries 6494*** as such. This will affect the creation of libtool libraries that 6495*** depend on shared libraries, but programs linked with such libtool 6496*** libraries will work regardless of this problem. Nevertheless, you 6497*** may want to report the problem to your system manager and/or to 6498*** [email protected] 6499 6500_LT_EOF 6501 fi ;; 6502 esac 6503 fi 6504 break 6505 fi 6506 done 6507 IFS="$lt_save_ifs" 6508 MAGIC_CMD="$lt_save_MAGIC_CMD" 6509 ;; 6510esac 6511fi 6512 6513MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6514if test -n "$MAGIC_CMD"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6516$as_echo "$MAGIC_CMD" >&6; } 6517else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; } 6520fi 6521 6522 6523 6524 6525 6526if test -z "$lt_cv_path_MAGIC_CMD"; then 6527 if test -n "$ac_tool_prefix"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6529$as_echo_n "checking for file... " >&6; } 6530if ${lt_cv_path_MAGIC_CMD+:} false; then : 6531 $as_echo_n "(cached) " >&6 6532else 6533 case $MAGIC_CMD in 6534[\\/*] | ?:[\\/]*) 6535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6536 ;; 6537*) 6538 lt_save_MAGIC_CMD="$MAGIC_CMD" 6539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6541 for ac_dir in $ac_dummy; do 6542 IFS="$lt_save_ifs" 6543 test -z "$ac_dir" && ac_dir=. 6544 if test -f $ac_dir/file; then 6545 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6546 if test -n "$file_magic_test_file"; then 6547 case $deplibs_check_method in 6548 "file_magic "*) 6549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6552 $EGREP "$file_magic_regex" > /dev/null; then 6553 : 6554 else 6555 cat <<_LT_EOF 1>&2 6556 6557*** Warning: the command libtool uses to detect shared libraries, 6558*** $file_magic_cmd, produces output that libtool cannot recognize. 6559*** The result is that libtool may fail to recognize shared libraries 6560*** as such. This will affect the creation of libtool libraries that 6561*** depend on shared libraries, but programs linked with such libtool 6562*** libraries will work regardless of this problem. Nevertheless, you 6563*** may want to report the problem to your system manager and/or to 6564*** [email protected] 6565 6566_LT_EOF 6567 fi ;; 6568 esac 6569 fi 6570 break 6571 fi 6572 done 6573 IFS="$lt_save_ifs" 6574 MAGIC_CMD="$lt_save_MAGIC_CMD" 6575 ;; 6576esac 6577fi 6578 6579MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6580if test -n "$MAGIC_CMD"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6582$as_echo "$MAGIC_CMD" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 6589 else 6590 MAGIC_CMD=: 6591 fi 6592fi 6593 6594 fi 6595 ;; 6596esac 6597 6598# Use C for the default configuration in the libtool script 6599 6600lt_save_CC="$CC" 6601ac_ext=c 6602ac_cpp='$CPP $CPPFLAGS' 6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6605ac_compiler_gnu=$ac_cv_c_compiler_gnu 6606 6607 6608# Source file extension for C test sources. 6609ac_ext=c 6610 6611# Object file extension for compiled C test sources. 6612objext=o 6613objext=$objext 6614 6615# Code to be used in simple compile tests 6616lt_simple_compile_test_code="int some_variable = 0;" 6617 6618# Code to be used in simple link tests 6619lt_simple_link_test_code='int main(){return(0);}' 6620 6621 6622 6623 6624 6625 6626 6627# If no C compiler was specified, use CC. 6628LTCC=${LTCC-"$CC"} 6629 6630# If no C compiler flags were specified, use CFLAGS. 6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6632 6633# Allow CC to be a program name with arguments. 6634compiler=$CC 6635 6636# Save the default compiler, since it gets overwritten when the other 6637# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6638compiler_DEFAULT=$CC 6639 6640# save warnings/boilerplate of simple test code 6641ac_outfile=conftest.$ac_objext 6642echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6644_lt_compiler_boilerplate=`cat conftest.err` 6645$RM conftest* 6646 6647ac_outfile=conftest.$ac_objext 6648echo "$lt_simple_link_test_code" >conftest.$ac_ext 6649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6650_lt_linker_boilerplate=`cat conftest.err` 6651$RM -r conftest* 6652 6653 6654if test -n "$compiler"; then 6655 6656lt_prog_compiler_no_builtin_flag= 6657 6658if test "$GCC" = yes; then 6659 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6660 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6662$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6663if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 6664 $as_echo_n "(cached) " >&6 6665else 6666 lt_cv_prog_compiler_rtti_exceptions=no 6667 ac_outfile=conftest.$ac_objext 6668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6669 lt_compiler_flag="-fno-rtti -fno-exceptions" 6670 # Insert the option either (1) after the last *FLAGS variable, or 6671 # (2) before a word containing "conftest.", or (3) at the end. 6672 # Note that $ac_compile itself does not contain backslashes and begins 6673 # with a dollar sign (not a hyphen), so the echo should work correctly. 6674 # The option is referenced via a variable to avoid confusing sed. 6675 lt_compile=`echo "$ac_compile" | $SED \ 6676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6678 -e 's:$: $lt_compiler_flag:'` 6679 (eval echo "\"\$as_me:6677: $lt_compile\"" >&5) 6680 (eval "$lt_compile" 2>conftest.err) 6681 ac_status=$? 6682 cat conftest.err >&5 6683 echo "$as_me:6681: \$? = $ac_status" >&5 6684 if (exit $ac_status) && test -s "$ac_outfile"; then 6685 # The compiler can only warn and ignore the option if not recognized 6686 # So say no if there are warnings other than the usual output. 6687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6690 lt_cv_prog_compiler_rtti_exceptions=yes 6691 fi 6692 fi 6693 $RM conftest* 6694 6695fi 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6697$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6698 6699if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6701else 6702 : 6703fi 6704 6705fi 6706 6707 6708 6709 6710 6711 6712 lt_prog_compiler_wl= 6713lt_prog_compiler_pic= 6714lt_prog_compiler_static= 6715 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6717$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6718 6719 if test "$GCC" = yes; then 6720 lt_prog_compiler_wl='-Wl,' 6721 lt_prog_compiler_static='-static' 6722 6723 case $host_os in 6724 aix*) 6725 # All AIX code is PIC. 6726 if test "$host_cpu" = ia64; then 6727 # AIX 5 now supports IA64 processor 6728 lt_prog_compiler_static='-Bstatic' 6729 fi 6730 ;; 6731 6732 amigaos*) 6733 case $host_cpu in 6734 powerpc) 6735 # see comment about AmigaOS4 .so support 6736 lt_prog_compiler_pic='-fPIC' 6737 ;; 6738 m68k) 6739 # FIXME: we need at least 68020 code to build shared libraries, but 6740 # adding the `-m68020' flag to GCC prevents building anything better, 6741 # like `-m68040'. 6742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6743 ;; 6744 esac 6745 ;; 6746 6747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6748 # PIC is the default for these OSes. 6749 ;; 6750 6751 mingw* | cygwin* | pw32* | os2* | cegcc*) 6752 # This hack is so that the source file can tell whether it is being 6753 # built for inclusion in a dll (and should export symbols for example). 6754 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6755 # (--disable-auto-import) libraries 6756 lt_prog_compiler_pic='-DDLL_EXPORT' 6757 ;; 6758 6759 darwin* | rhapsody*) 6760 # PIC is the default on this platform 6761 # Common symbols not allowed in MH_DYLIB files 6762 lt_prog_compiler_pic='-fno-common' 6763 ;; 6764 6765 hpux*) 6766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6768 # sets the default TLS model and affects inlining. 6769 case $host_cpu in 6770 hppa*64*) 6771 # +Z the default 6772 ;; 6773 *) 6774 lt_prog_compiler_pic='-fPIC' 6775 ;; 6776 esac 6777 ;; 6778 6779 interix[3-9]*) 6780 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6781 # Instead, we relocate shared libraries at runtime. 6782 ;; 6783 6784 msdosdjgpp*) 6785 # Just because we use GCC doesn't mean we suddenly get shared libraries 6786 # on systems that don't support them. 6787 lt_prog_compiler_can_build_shared=no 6788 enable_shared=no 6789 ;; 6790 6791 *nto* | *qnx*) 6792 # QNX uses GNU C++, but need to define -shared option too, otherwise 6793 # it will coredump. 6794 lt_prog_compiler_pic='-fPIC -shared' 6795 ;; 6796 6797 sysv4*MP*) 6798 if test -d /usr/nec; then 6799 lt_prog_compiler_pic=-Kconform_pic 6800 fi 6801 ;; 6802 6803 *) 6804 lt_prog_compiler_pic='-fPIC' 6805 ;; 6806 esac 6807 else 6808 # PORTME Check for flag to pass linker flags through the system compiler. 6809 case $host_os in 6810 aix*) 6811 lt_prog_compiler_wl='-Wl,' 6812 if test "$host_cpu" = ia64; then 6813 # AIX 5 now supports IA64 processor 6814 lt_prog_compiler_static='-Bstatic' 6815 else 6816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6817 fi 6818 ;; 6819 6820 mingw* | cygwin* | pw32* | os2* | cegcc*) 6821 # This hack is so that the source file can tell whether it is being 6822 # built for inclusion in a dll (and should export symbols for example). 6823 lt_prog_compiler_pic='-DDLL_EXPORT' 6824 ;; 6825 6826 hpux9* | hpux10* | hpux11*) 6827 lt_prog_compiler_wl='-Wl,' 6828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6829 # not for PA HP-UX. 6830 case $host_cpu in 6831 hppa*64*|ia64*) 6832 # +Z the default 6833 ;; 6834 *) 6835 lt_prog_compiler_pic='+Z' 6836 ;; 6837 esac 6838 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6839 lt_prog_compiler_static='${wl}-a ${wl}archive' 6840 ;; 6841 6842 irix5* | irix6* | nonstopux*) 6843 lt_prog_compiler_wl='-Wl,' 6844 # PIC (with -KPIC) is the default. 6845 lt_prog_compiler_static='-non_shared' 6846 ;; 6847 6848 linux* | k*bsd*-gnu) 6849 case $cc_basename in 6850 # old Intel for x86_64 which still supported -KPIC. 6851 ecc*) 6852 lt_prog_compiler_wl='-Wl,' 6853 lt_prog_compiler_pic='-KPIC' 6854 lt_prog_compiler_static='-static' 6855 ;; 6856 # icc used to be incompatible with GCC. 6857 # ICC 10 doesn't accept -KPIC any more. 6858 icc* | ifort*) 6859 lt_prog_compiler_wl='-Wl,' 6860 lt_prog_compiler_pic='-fPIC' 6861 lt_prog_compiler_static='-static' 6862 ;; 6863 # Lahey Fortran 8.1. 6864 lf95*) 6865 lt_prog_compiler_wl='-Wl,' 6866 lt_prog_compiler_pic='--shared' 6867 lt_prog_compiler_static='--static' 6868 ;; 6869 pgcc* | pgf77* | pgf90* | pgf95*) 6870 # Portland Group compilers (*not* the Pentium gcc compiler, 6871 # which looks to be a dead project) 6872 lt_prog_compiler_wl='-Wl,' 6873 lt_prog_compiler_pic='-fpic' 6874 lt_prog_compiler_static='-Bstatic' 6875 ;; 6876 ccc*) 6877 lt_prog_compiler_wl='-Wl,' 6878 # All Alpha code is PIC. 6879 lt_prog_compiler_static='-non_shared' 6880 ;; 6881 xl*) 6882 # IBM XL C 8.0/Fortran 10.1 on PPC 6883 lt_prog_compiler_wl='-Wl,' 6884 lt_prog_compiler_pic='-qpic' 6885 lt_prog_compiler_static='-qstaticlink' 6886 ;; 6887 *) 6888 case `$CC -V 2>&1 | sed 5q` in 6889 *Sun\ C*) 6890 # Sun C 5.9 6891 lt_prog_compiler_pic='-KPIC' 6892 lt_prog_compiler_static='-Bstatic' 6893 lt_prog_compiler_wl='-Wl,' 6894 ;; 6895 *Sun\ F*) 6896 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6897 lt_prog_compiler_pic='-KPIC' 6898 lt_prog_compiler_static='-Bstatic' 6899 lt_prog_compiler_wl='' 6900 ;; 6901 esac 6902 ;; 6903 esac 6904 ;; 6905 6906 newsos6) 6907 lt_prog_compiler_pic='-KPIC' 6908 lt_prog_compiler_static='-Bstatic' 6909 ;; 6910 6911 *nto* | *qnx*) 6912 # QNX uses GNU C++, but need to define -shared option too, otherwise 6913 # it will coredump. 6914 lt_prog_compiler_pic='-fPIC -shared' 6915 ;; 6916 6917 osf3* | osf4* | osf5*) 6918 lt_prog_compiler_wl='-Wl,' 6919 # All OSF/1 code is PIC. 6920 lt_prog_compiler_static='-non_shared' 6921 ;; 6922 6923 rdos*) 6924 lt_prog_compiler_static='-non_shared' 6925 ;; 6926 6927 solaris*) 6928 lt_prog_compiler_pic='-KPIC' 6929 lt_prog_compiler_static='-Bstatic' 6930 case $cc_basename in 6931 f77* | f90* | f95*) 6932 lt_prog_compiler_wl='-Qoption ld ';; 6933 *) 6934 lt_prog_compiler_wl='-Wl,';; 6935 esac 6936 ;; 6937 6938 sunos4*) 6939 lt_prog_compiler_wl='-Qoption ld ' 6940 lt_prog_compiler_pic='-PIC' 6941 lt_prog_compiler_static='-Bstatic' 6942 ;; 6943 6944 sysv4 | sysv4.2uw2* | sysv4.3*) 6945 lt_prog_compiler_wl='-Wl,' 6946 lt_prog_compiler_pic='-KPIC' 6947 lt_prog_compiler_static='-Bstatic' 6948 ;; 6949 6950 sysv4*MP*) 6951 if test -d /usr/nec ;then 6952 lt_prog_compiler_pic='-Kconform_pic' 6953 lt_prog_compiler_static='-Bstatic' 6954 fi 6955 ;; 6956 6957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6958 lt_prog_compiler_wl='-Wl,' 6959 lt_prog_compiler_pic='-KPIC' 6960 lt_prog_compiler_static='-Bstatic' 6961 ;; 6962 6963 unicos*) 6964 lt_prog_compiler_wl='-Wl,' 6965 lt_prog_compiler_can_build_shared=no 6966 ;; 6967 6968 uts4*) 6969 lt_prog_compiler_pic='-pic' 6970 lt_prog_compiler_static='-Bstatic' 6971 ;; 6972 6973 *) 6974 lt_prog_compiler_can_build_shared=no 6975 ;; 6976 esac 6977 fi 6978 6979case $host_os in 6980 # For platforms which do not support PIC, -DPIC is meaningless: 6981 *djgpp*) 6982 lt_prog_compiler_pic= 6983 ;; 6984 *) 6985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6986 ;; 6987esac 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 6989$as_echo "$lt_prog_compiler_pic" >&6; } 6990 6991 6992 6993 6994 6995 6996# 6997# Check to make sure the PIC flag actually works. 6998# 6999if test -n "$lt_prog_compiler_pic"; then 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7001$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7002if ${lt_cv_prog_compiler_pic_works+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 lt_cv_prog_compiler_pic_works=no 7006 ac_outfile=conftest.$ac_objext 7007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7009 # Insert the option either (1) after the last *FLAGS variable, or 7010 # (2) before a word containing "conftest.", or (3) at the end. 7011 # Note that $ac_compile itself does not contain backslashes and begins 7012 # with a dollar sign (not a hyphen), so the echo should work correctly. 7013 # The option is referenced via a variable to avoid confusing sed. 7014 lt_compile=`echo "$ac_compile" | $SED \ 7015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7017 -e 's:$: $lt_compiler_flag:'` 7018 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5) 7019 (eval "$lt_compile" 2>conftest.err) 7020 ac_status=$? 7021 cat conftest.err >&5 7022 echo "$as_me:7020: \$? = $ac_status" >&5 7023 if (exit $ac_status) && test -s "$ac_outfile"; then 7024 # The compiler can only warn and ignore the option if not recognized 7025 # So say no if there are warnings other than the usual output. 7026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7029 lt_cv_prog_compiler_pic_works=yes 7030 fi 7031 fi 7032 $RM conftest* 7033 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7036$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7037 7038if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7039 case $lt_prog_compiler_pic in 7040 "" | " "*) ;; 7041 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7042 esac 7043else 7044 lt_prog_compiler_pic= 7045 lt_prog_compiler_can_build_shared=no 7046fi 7047 7048fi 7049 7050 7051 7052 7053 7054 7055# 7056# Check to make sure the static flag actually works. 7057# 7058wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7060$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7061if ${lt_cv_prog_compiler_static_works+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 lt_cv_prog_compiler_static_works=no 7065 save_LDFLAGS="$LDFLAGS" 7066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7067 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7069 # The linker can only warn and ignore the option if not recognized 7070 # So say no if there are warnings 7071 if test -s conftest.err; then 7072 # Append any errors to the config.log. 7073 cat conftest.err 1>&5 7074 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7076 if diff conftest.exp conftest.er2 >/dev/null; then 7077 lt_cv_prog_compiler_static_works=yes 7078 fi 7079 else 7080 lt_cv_prog_compiler_static_works=yes 7081 fi 7082 fi 7083 $RM -r conftest* 7084 LDFLAGS="$save_LDFLAGS" 7085 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7088$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7089 7090if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7091 : 7092else 7093 lt_prog_compiler_static= 7094fi 7095 7096 7097 7098 7099 7100 7101 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7103$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7104if ${lt_cv_prog_compiler_c_o+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 lt_cv_prog_compiler_c_o=no 7108 $RM -r conftest 2>/dev/null 7109 mkdir conftest 7110 cd conftest 7111 mkdir out 7112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7113 7114 lt_compiler_flag="-o out/conftest2.$ac_objext" 7115 # Insert the option either (1) after the last *FLAGS variable, or 7116 # (2) before a word containing "conftest.", or (3) at the end. 7117 # Note that $ac_compile itself does not contain backslashes and begins 7118 # with a dollar sign (not a hyphen), so the echo should work correctly. 7119 lt_compile=`echo "$ac_compile" | $SED \ 7120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7122 -e 's:$: $lt_compiler_flag:'` 7123 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5) 7124 (eval "$lt_compile" 2>out/conftest.err) 7125 ac_status=$? 7126 cat out/conftest.err >&5 7127 echo "$as_me:7125: \$? = $ac_status" >&5 7128 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7129 then 7130 # The compiler can only warn and ignore the option if not recognized 7131 # So say no if there are warnings 7132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7135 lt_cv_prog_compiler_c_o=yes 7136 fi 7137 fi 7138 chmod u+w . 2>&5 7139 $RM conftest* 7140 # SGI C++ compiler will create directory out/ii_files/ for 7141 # template instantiation 7142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7143 $RM out/* && rmdir out 7144 cd .. 7145 $RM -r conftest 7146 $RM conftest* 7147 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7150$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7151 7152 7153 7154 7155 7156 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7159if ${lt_cv_prog_compiler_c_o+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161else 7162 lt_cv_prog_compiler_c_o=no 7163 $RM -r conftest 2>/dev/null 7164 mkdir conftest 7165 cd conftest 7166 mkdir out 7167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7168 7169 lt_compiler_flag="-o out/conftest2.$ac_objext" 7170 # Insert the option either (1) after the last *FLAGS variable, or 7171 # (2) before a word containing "conftest.", or (3) at the end. 7172 # Note that $ac_compile itself does not contain backslashes and begins 7173 # with a dollar sign (not a hyphen), so the echo should work correctly. 7174 lt_compile=`echo "$ac_compile" | $SED \ 7175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7177 -e 's:$: $lt_compiler_flag:'` 7178 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5) 7179 (eval "$lt_compile" 2>out/conftest.err) 7180 ac_status=$? 7181 cat out/conftest.err >&5 7182 echo "$as_me:7180: \$? = $ac_status" >&5 7183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7184 then 7185 # The compiler can only warn and ignore the option if not recognized 7186 # So say no if there are warnings 7187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7190 lt_cv_prog_compiler_c_o=yes 7191 fi 7192 fi 7193 chmod u+w . 2>&5 7194 $RM conftest* 7195 # SGI C++ compiler will create directory out/ii_files/ for 7196 # template instantiation 7197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7198 $RM out/* && rmdir out 7199 cd .. 7200 $RM -r conftest 7201 $RM conftest* 7202 7203fi 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7205$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7206 7207 7208 7209 7210hard_links="nottested" 7211if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7212 # do not overwrite the value of need_locks provided by the user 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7214$as_echo_n "checking if we can lock with hard links... " >&6; } 7215 hard_links=yes 7216 $RM conftest* 7217 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7218 touch conftest.a 7219 ln conftest.a conftest.b 2>&5 || hard_links=no 7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7222$as_echo "$hard_links" >&6; } 7223 if test "$hard_links" = no; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7225$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7226 need_locks=warn 7227 fi 7228else 7229 need_locks=no 7230fi 7231 7232 7233 7234 7235 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7238$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7239 7240 runpath_var= 7241 allow_undefined_flag= 7242 always_export_symbols=no 7243 archive_cmds= 7244 archive_expsym_cmds= 7245 compiler_needs_object=no 7246 enable_shared_with_static_runtimes=no 7247 export_dynamic_flag_spec= 7248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7249 hardcode_automatic=no 7250 hardcode_direct=no 7251 hardcode_direct_absolute=no 7252 hardcode_libdir_flag_spec= 7253 hardcode_libdir_flag_spec_ld= 7254 hardcode_libdir_separator= 7255 hardcode_minus_L=no 7256 hardcode_shlibpath_var=unsupported 7257 inherit_rpath=no 7258 link_all_deplibs=unknown 7259 module_cmds= 7260 module_expsym_cmds= 7261 old_archive_from_new_cmds= 7262 old_archive_from_expsyms_cmds= 7263 thread_safe_flag_spec= 7264 whole_archive_flag_spec= 7265 # include_expsyms should be a list of space-separated symbols to be *always* 7266 # included in the symbol list 7267 include_expsyms= 7268 # exclude_expsyms can be an extended regexp of symbols to exclude 7269 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7271 # as well as any symbol that contains `d'. 7272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7274 # platforms (ab)use it in PIC code, but their linkers get confused if 7275 # the symbol is explicitly referenced. Since portable code cannot 7276 # rely on this symbol name, it's probably fine to never include it in 7277 # preloaded symbol tables. 7278 # Exclude shared library initialization/finalization symbols. 7279 extract_expsyms_cmds= 7280 7281 case $host_os in 7282 cygwin* | mingw* | pw32* | cegcc*) 7283 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7284 # When not using gcc, we currently assume that we are using 7285 # Microsoft Visual C++. 7286 if test "$GCC" != yes; then 7287 with_gnu_ld=no 7288 fi 7289 ;; 7290 interix*) 7291 # we just hope/assume this is gcc and not c89 (= MSVC++) 7292 with_gnu_ld=yes 7293 ;; 7294 openbsd*) 7295 with_gnu_ld=no 7296 ;; 7297 esac 7298 7299 ld_shlibs=yes 7300 if test "$with_gnu_ld" = yes; then 7301 # If archive_cmds runs LD, not CC, wlarc should be empty 7302 wlarc='${wl}' 7303 7304 # Set some defaults for GNU ld with shared library support. These 7305 # are reset later if shared libraries are not supported. Putting them 7306 # here allows them to be overridden if necessary. 7307 runpath_var=LD_RUN_PATH 7308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7309 export_dynamic_flag_spec='${wl}--export-dynamic' 7310 # ancient GNU ld didn't support --whole-archive et. al. 7311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7313 else 7314 whole_archive_flag_spec= 7315 fi 7316 supports_anon_versioning=no 7317 case `$LD -v 2>&1` in 7318 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7319 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7320 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7321 *\ 2.11.*) ;; # other 2.11 versions 7322 *) supports_anon_versioning=yes ;; 7323 esac 7324 7325 # See if GNU ld supports shared libraries. 7326 case $host_os in 7327 aix[3-9]*) 7328 # On AIX/PPC, the GNU linker is very broken 7329 if test "$host_cpu" != ia64; then 7330 ld_shlibs=no 7331 cat <<_LT_EOF 1>&2 7332 7333*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7334*** to be unable to reliably create shared libraries on AIX. 7335*** Therefore, libtool is disabling shared libraries support. If you 7336*** really care for shared libraries, you may want to modify your PATH 7337*** so that a non-GNU linker is found, and then restart. 7338 7339_LT_EOF 7340 fi 7341 ;; 7342 7343 amigaos*) 7344 case $host_cpu in 7345 powerpc) 7346 # see comment about AmigaOS4 .so support 7347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7348 archive_expsym_cmds='' 7349 ;; 7350 m68k) 7351 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)' 7352 hardcode_libdir_flag_spec='-L$libdir' 7353 hardcode_minus_L=yes 7354 ;; 7355 esac 7356 ;; 7357 7358 beos*) 7359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7360 allow_undefined_flag=unsupported 7361 # Joseph Beckenbach <[email protected]> says some releases of gcc 7362 # support --undefined. This deserves some investigation. FIXME 7363 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7364 else 7365 ld_shlibs=no 7366 fi 7367 ;; 7368 7369 cygwin* | mingw* | pw32* | cegcc*) 7370 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7371 # as there is no search path for DLLs. 7372 hardcode_libdir_flag_spec='-L$libdir' 7373 allow_undefined_flag=unsupported 7374 always_export_symbols=no 7375 enable_shared_with_static_runtimes=yes 7376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7377 7378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7380 # If the export-symbols file already is a .def file (1st line 7381 # is EXPORTS), use it as is; otherwise, prepend... 7382 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7383 cp $export_symbols $output_objdir/$soname.def; 7384 else 7385 echo EXPORTS > $output_objdir/$soname.def; 7386 cat $export_symbols >> $output_objdir/$soname.def; 7387 fi~ 7388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7389 else 7390 ld_shlibs=no 7391 fi 7392 ;; 7393 7394 interix[3-9]*) 7395 hardcode_direct=no 7396 hardcode_shlibpath_var=no 7397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7398 export_dynamic_flag_spec='${wl}-E' 7399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7400 # Instead, shared libraries are loaded at an image base (0x10000000 by 7401 # default) and relocated if they conflict, which is a slow very memory 7402 # consuming and fragmenting process. To avoid this, we pick a random, 7403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7404 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7406 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' 7407 ;; 7408 7409 gnu* | linux* | tpf* | k*bsd*-gnu) 7410 tmp_diet=no 7411 if test "$host_os" = linux-dietlibc; then 7412 case $cc_basename in 7413 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7414 esac 7415 fi 7416 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7417 && test "$tmp_diet" = no 7418 then 7419 tmp_addflag= 7420 tmp_sharedflag='-shared' 7421 case $cc_basename,$host_cpu in 7422 pgcc*) # Portland Group C compiler 7423 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' 7424 tmp_addflag=' $pic_flag' 7425 ;; 7426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7427 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' 7428 tmp_addflag=' $pic_flag -Mnomain' ;; 7429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7430 tmp_addflag=' -i_dynamic' ;; 7431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7432 tmp_addflag=' -i_dynamic -nofor_main' ;; 7433 ifc* | ifort*) # Intel Fortran compiler 7434 tmp_addflag=' -nofor_main' ;; 7435 lf95*) # Lahey Fortran 8.1 7436 whole_archive_flag_spec= 7437 tmp_sharedflag='--shared' ;; 7438 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7439 tmp_sharedflag='-qmkshrobj' 7440 tmp_addflag= ;; 7441 esac 7442 case `$CC -V 2>&1 | sed 5q` in 7443 *Sun\ C*) # Sun C 5.9 7444 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' 7445 compiler_needs_object=yes 7446 tmp_sharedflag='-G' ;; 7447 *Sun\ F*) # Sun Fortran 8.3 7448 tmp_sharedflag='-G' ;; 7449 esac 7450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7451 7452 if test "x$supports_anon_versioning" = xyes; then 7453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7455 echo "local: *; };" >> $output_objdir/$libname.ver~ 7456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7457 fi 7458 7459 case $cc_basename in 7460 xlf*) 7461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7463 hardcode_libdir_flag_spec= 7464 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7465 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7466 if test "x$supports_anon_versioning" = xyes; then 7467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7469 echo "local: *; };" >> $output_objdir/$libname.ver~ 7470 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7471 fi 7472 ;; 7473 esac 7474 else 7475 ld_shlibs=no 7476 fi 7477 ;; 7478 7479 netbsd*) 7480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7482 wlarc= 7483 else 7484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7486 fi 7487 ;; 7488 7489 solaris*) 7490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7491 ld_shlibs=no 7492 cat <<_LT_EOF 1>&2 7493 7494*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7495*** create shared libraries on Solaris systems. Therefore, libtool 7496*** is disabling shared libraries support. We urge you to upgrade GNU 7497*** binutils to release 2.9.1 or newer. Another option is to modify 7498*** your PATH or compiler configuration so that the native linker is 7499*** used, and then restart. 7500 7501_LT_EOF 7502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7505 else 7506 ld_shlibs=no 7507 fi 7508 ;; 7509 7510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7511 case `$LD -v 2>&1` in 7512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7513 ld_shlibs=no 7514 cat <<_LT_EOF 1>&2 7515 7516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7517*** reliably create shared libraries on SCO systems. Therefore, libtool 7518*** is disabling shared libraries support. We urge you to upgrade GNU 7519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7520*** your PATH or compiler configuration so that the native linker is 7521*** used, and then restart. 7522 7523_LT_EOF 7524 ;; 7525 *) 7526 # For security reasons, it is highly recommended that you always 7527 # use absolute paths for naming shared libraries, and exclude the 7528 # DT_RUNPATH tag from executables and libraries. But doing so 7529 # requires that you compile everything twice, which is a pain. 7530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7534 else 7535 ld_shlibs=no 7536 fi 7537 ;; 7538 esac 7539 ;; 7540 7541 sunos4*) 7542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7543 wlarc= 7544 hardcode_direct=yes 7545 hardcode_shlibpath_var=no 7546 ;; 7547 7548 *) 7549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7552 else 7553 ld_shlibs=no 7554 fi 7555 ;; 7556 esac 7557 7558 if test "$ld_shlibs" = no; then 7559 runpath_var= 7560 hardcode_libdir_flag_spec= 7561 export_dynamic_flag_spec= 7562 whole_archive_flag_spec= 7563 fi 7564 else 7565 # PORTME fill in a description of your system's linker (not GNU ld) 7566 case $host_os in 7567 aix3*) 7568 allow_undefined_flag=unsupported 7569 always_export_symbols=yes 7570 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' 7571 # Note: this linker hardcodes the directories in LIBPATH if there 7572 # are no directories specified by -L. 7573 hardcode_minus_L=yes 7574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7575 # Neither direct hardcoding nor static linking is supported with a 7576 # broken collect2. 7577 hardcode_direct=unsupported 7578 fi 7579 ;; 7580 7581 aix[4-9]*) 7582 if test "$host_cpu" = ia64; then 7583 # On IA64, the linker does run time linking by default, so we don't 7584 # have to do anything special. 7585 aix_use_runtimelinking=no 7586 exp_sym_flag='-Bexport' 7587 no_entry_flag="" 7588 else 7589 # If we're using GNU nm, then we don't want the "-C" option. 7590 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7592 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' 7593 else 7594 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' 7595 fi 7596 aix_use_runtimelinking=no 7597 7598 # Test if we are trying to use run time linking or normal 7599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7600 # need to do runtime linking. 7601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7602 for ld_flag in $LDFLAGS; do 7603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7604 aix_use_runtimelinking=yes 7605 break 7606 fi 7607 done 7608 ;; 7609 esac 7610 7611 exp_sym_flag='-bexport' 7612 no_entry_flag='-bnoentry' 7613 fi 7614 7615 # When large executables or shared objects are built, AIX ld can 7616 # have problems creating the table of contents. If linking a library 7617 # or program results in "error TOC overflow" add -mminimal-toc to 7618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7620 7621 archive_cmds='' 7622 hardcode_direct=yes 7623 hardcode_direct_absolute=yes 7624 hardcode_libdir_separator=':' 7625 link_all_deplibs=yes 7626 file_list_spec='${wl}-f,' 7627 7628 if test "$GCC" = yes; then 7629 case $host_os in aix4.[012]|aix4.[012].*) 7630 # We only want to do this on AIX 4.2 and lower, the check 7631 # below for broken collect2 doesn't work under 4.3+ 7632 collect2name=`${CC} -print-prog-name=collect2` 7633 if test -f "$collect2name" && 7634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7635 then 7636 # We have reworked collect2 7637 : 7638 else 7639 # We have old collect2 7640 hardcode_direct=unsupported 7641 # It fails to find uninstalled libraries when the uninstalled 7642 # path is not listed in the libpath. Setting hardcode_minus_L 7643 # to unsupported forces relinking 7644 hardcode_minus_L=yes 7645 hardcode_libdir_flag_spec='-L$libdir' 7646 hardcode_libdir_separator= 7647 fi 7648 ;; 7649 esac 7650 shared_flag='-shared' 7651 if test "$aix_use_runtimelinking" = yes; then 7652 shared_flag="$shared_flag "'${wl}-G' 7653 fi 7654 else 7655 # not using gcc 7656 if test "$host_cpu" = ia64; then 7657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7658 # chokes on -Wl,-G. The following line is correct: 7659 shared_flag='-G' 7660 else 7661 if test "$aix_use_runtimelinking" = yes; then 7662 shared_flag='${wl}-G' 7663 else 7664 shared_flag='${wl}-bM:SRE' 7665 fi 7666 fi 7667 fi 7668 7669 export_dynamic_flag_spec='${wl}-bexpall' 7670 # It seems that -bexpall does not export symbols beginning with 7671 # underscore (_), so it is better to generate a list of symbols to export. 7672 always_export_symbols=yes 7673 if test "$aix_use_runtimelinking" = yes; then 7674 # Warning - without using the other runtime loading flags (-brtl), 7675 # -berok will link without error, but may produce a broken library. 7676 allow_undefined_flag='-berok' 7677 # Determine the default libpath from the value encoded in an 7678 # empty executable. 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681 7682int 7683main () 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_link "$LINENO"; then : 7691 7692lt_aix_libpath_sed=' 7693 /Import File Strings/,/^$/ { 7694 /^0/ { 7695 s/^0 *\(.*\)$/\1/ 7696 p 7697 } 7698 }' 7699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7700# Check for a 64-bit object if we didn't find anything. 7701if test -z "$aix_libpath"; then 7702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7703fi 7704fi 7705rm -f core conftest.err conftest.$ac_objext \ 7706 conftest$ac_exeext conftest.$ac_ext 7707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7708 7709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7710 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" 7711 else 7712 if test "$host_cpu" = ia64; then 7713 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7714 allow_undefined_flag="-z nodefs" 7715 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" 7716 else 7717 # Determine the default libpath from the value encoded in an 7718 # empty executable. 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721 7722int 7723main () 7724{ 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730if ac_fn_c_try_link "$LINENO"; then : 7731 7732lt_aix_libpath_sed=' 7733 /Import File Strings/,/^$/ { 7734 /^0/ { 7735 s/^0 *\(.*\)$/\1/ 7736 p 7737 } 7738 }' 7739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7740# Check for a 64-bit object if we didn't find anything. 7741if test -z "$aix_libpath"; then 7742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7743fi 7744fi 7745rm -f core conftest.err conftest.$ac_objext \ 7746 conftest$ac_exeext conftest.$ac_ext 7747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7748 7749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7750 # Warning - without using the other run time loading flags, 7751 # -berok will link without error, but may produce a broken library. 7752 no_undefined_flag=' ${wl}-bernotok' 7753 allow_undefined_flag=' ${wl}-berok' 7754 # Exported symbols can be pulled into shared objects from archives 7755 whole_archive_flag_spec='$convenience' 7756 archive_cmds_need_lc=yes 7757 # This is similar to how AIX traditionally builds its shared libraries. 7758 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' 7759 fi 7760 fi 7761 ;; 7762 7763 amigaos*) 7764 case $host_cpu in 7765 powerpc) 7766 # see comment about AmigaOS4 .so support 7767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7768 archive_expsym_cmds='' 7769 ;; 7770 m68k) 7771 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)' 7772 hardcode_libdir_flag_spec='-L$libdir' 7773 hardcode_minus_L=yes 7774 ;; 7775 esac 7776 ;; 7777 7778 bsdi[45]*) 7779 export_dynamic_flag_spec=-rdynamic 7780 ;; 7781 7782 cygwin* | mingw* | pw32* | cegcc*) 7783 # When not using gcc, we currently assume that we are using 7784 # Microsoft Visual C++. 7785 # hardcode_libdir_flag_spec is actually meaningless, as there is 7786 # no search path for DLLs. 7787 hardcode_libdir_flag_spec=' ' 7788 allow_undefined_flag=unsupported 7789 # Tell ltmain to make .lib files, not .a files. 7790 libext=lib 7791 # Tell ltmain to make .dll files, not .so files. 7792 shrext_cmds=".dll" 7793 # FIXME: Setting linknames here is a bad hack. 7794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7795 # The linker will automatically build a .lib file if we build a DLL. 7796 old_archive_from_new_cmds='true' 7797 # FIXME: Should let the user specify the lib program. 7798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7799 fix_srcfile_path='`cygpath -w "$srcfile"`' 7800 enable_shared_with_static_runtimes=yes 7801 ;; 7802 7803 darwin* | rhapsody*) 7804 7805 7806 archive_cmds_need_lc=no 7807 hardcode_direct=no 7808 hardcode_automatic=yes 7809 hardcode_shlibpath_var=unsupported 7810 whole_archive_flag_spec='' 7811 link_all_deplibs=yes 7812 allow_undefined_flag="$_lt_dar_allow_undefined" 7813 case $cc_basename in 7814 ifort*) _lt_dar_can_shared=yes ;; 7815 *) _lt_dar_can_shared=$GCC ;; 7816 esac 7817 if test "$_lt_dar_can_shared" = "yes"; then 7818 output_verbose_link_cmd=echo 7819 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7820 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7821 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}" 7822 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}" 7823 7824 else 7825 ld_shlibs=no 7826 fi 7827 7828 ;; 7829 7830 dgux*) 7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7832 hardcode_libdir_flag_spec='-L$libdir' 7833 hardcode_shlibpath_var=no 7834 ;; 7835 7836 freebsd1*) 7837 ld_shlibs=no 7838 ;; 7839 7840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7841 # support. Future versions do this automatically, but an explicit c++rt0.o 7842 # does not break anything, and helps significantly (at the cost of a little 7843 # extra space). 7844 freebsd2.2*) 7845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7846 hardcode_libdir_flag_spec='-R$libdir' 7847 hardcode_direct=yes 7848 hardcode_shlibpath_var=no 7849 ;; 7850 7851 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7852 freebsd2*) 7853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7854 hardcode_direct=yes 7855 hardcode_minus_L=yes 7856 hardcode_shlibpath_var=no 7857 ;; 7858 7859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7860 freebsd* | dragonfly*) 7861 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7862 hardcode_libdir_flag_spec='-R$libdir' 7863 hardcode_direct=yes 7864 hardcode_shlibpath_var=no 7865 ;; 7866 7867 hpux9*) 7868 if test "$GCC" = yes; then 7869 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' 7870 else 7871 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' 7872 fi 7873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7874 hardcode_libdir_separator=: 7875 hardcode_direct=yes 7876 7877 # hardcode_minus_L: Not really in the search PATH, 7878 # but as the default location of the library. 7879 hardcode_minus_L=yes 7880 export_dynamic_flag_spec='${wl}-E' 7881 ;; 7882 7883 hpux10*) 7884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7885 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7886 else 7887 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7888 fi 7889 if test "$with_gnu_ld" = no; then 7890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7891 hardcode_libdir_flag_spec_ld='+b $libdir' 7892 hardcode_libdir_separator=: 7893 hardcode_direct=yes 7894 hardcode_direct_absolute=yes 7895 export_dynamic_flag_spec='${wl}-E' 7896 # hardcode_minus_L: Not really in the search PATH, 7897 # but as the default location of the library. 7898 hardcode_minus_L=yes 7899 fi 7900 ;; 7901 7902 hpux11*) 7903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7904 case $host_cpu in 7905 hppa*64*) 7906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7907 ;; 7908 ia64*) 7909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7910 ;; 7911 *) 7912 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7913 ;; 7914 esac 7915 else 7916 case $host_cpu in 7917 hppa*64*) 7918 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7919 ;; 7920 ia64*) 7921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7922 ;; 7923 *) 7924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7925 ;; 7926 esac 7927 fi 7928 if test "$with_gnu_ld" = no; then 7929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7930 hardcode_libdir_separator=: 7931 7932 case $host_cpu in 7933 hppa*64*|ia64*) 7934 hardcode_direct=no 7935 hardcode_shlibpath_var=no 7936 ;; 7937 *) 7938 hardcode_direct=yes 7939 hardcode_direct_absolute=yes 7940 export_dynamic_flag_spec='${wl}-E' 7941 7942 # hardcode_minus_L: Not really in the search PATH, 7943 # but as the default location of the library. 7944 hardcode_minus_L=yes 7945 ;; 7946 esac 7947 fi 7948 ;; 7949 7950 irix5* | irix6* | nonstopux*) 7951 if test "$GCC" = yes; then 7952 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' 7953 # Try to use the -exported_symbol ld option, if it does not 7954 # work, assume that -exports_file does not work either and 7955 # implicitly export all symbols. 7956 save_LDFLAGS="$LDFLAGS" 7957 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7959/* end confdefs.h. */ 7960int foo(void) {} 7961_ACEOF 7962if ac_fn_c_try_link "$LINENO"; then : 7963 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' 7964 7965fi 7966rm -f core conftest.err conftest.$ac_objext \ 7967 conftest$ac_exeext conftest.$ac_ext 7968 LDFLAGS="$save_LDFLAGS" 7969 else 7970 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' 7971 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' 7972 fi 7973 archive_cmds_need_lc='no' 7974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7975 hardcode_libdir_separator=: 7976 inherit_rpath=yes 7977 link_all_deplibs=yes 7978 ;; 7979 7980 netbsd*) 7981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7983 else 7984 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7985 fi 7986 hardcode_libdir_flag_spec='-R$libdir' 7987 hardcode_direct=yes 7988 hardcode_shlibpath_var=no 7989 ;; 7990 7991 newsos6) 7992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7993 hardcode_direct=yes 7994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7995 hardcode_libdir_separator=: 7996 hardcode_shlibpath_var=no 7997 ;; 7998 7999 *nto* | *qnx*) 8000 ;; 8001 8002 openbsd*) 8003 if test -f /usr/libexec/ld.so; then 8004 hardcode_direct=yes 8005 hardcode_shlibpath_var=no 8006 hardcode_direct_absolute=yes 8007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8009 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8011 export_dynamic_flag_spec='${wl}-E' 8012 else 8013 case $host_os in 8014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8016 hardcode_libdir_flag_spec='-R$libdir' 8017 ;; 8018 *) 8019 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8020 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8021 ;; 8022 esac 8023 fi 8024 else 8025 ld_shlibs=no 8026 fi 8027 ;; 8028 8029 os2*) 8030 hardcode_libdir_flag_spec='-L$libdir' 8031 hardcode_minus_L=yes 8032 allow_undefined_flag=unsupported 8033 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' 8034 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8035 ;; 8036 8037 osf3*) 8038 if test "$GCC" = yes; then 8039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8040 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' 8041 else 8042 allow_undefined_flag=' -expect_unresolved \*' 8043 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' 8044 fi 8045 archive_cmds_need_lc='no' 8046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8047 hardcode_libdir_separator=: 8048 ;; 8049 8050 osf4* | osf5*) # as osf3* with the addition of -msym flag 8051 if test "$GCC" = yes; then 8052 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8053 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' 8054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8055 else 8056 allow_undefined_flag=' -expect_unresolved \*' 8057 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' 8058 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~ 8059 $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' 8060 8061 # Both c and cxx compiler support -rpath directly 8062 hardcode_libdir_flag_spec='-rpath $libdir' 8063 fi 8064 archive_cmds_need_lc='no' 8065 hardcode_libdir_separator=: 8066 ;; 8067 8068 solaris*) 8069 no_undefined_flag=' -z defs' 8070 if test "$GCC" = yes; then 8071 wlarc='${wl}' 8072 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8074 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8075 else 8076 case `$CC -V 2>&1` in 8077 *"Compilers 5.0"*) 8078 wlarc='' 8079 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8082 ;; 8083 *) 8084 wlarc='${wl}' 8085 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8087 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8088 ;; 8089 esac 8090 fi 8091 hardcode_libdir_flag_spec='-R$libdir' 8092 hardcode_shlibpath_var=no 8093 case $host_os in 8094 solaris2.[0-5] | solaris2.[0-5].*) ;; 8095 *) 8096 # The compiler driver will combine and reorder linker options, 8097 # but understands `-z linker_flag'. GCC discards it without `$wl', 8098 # but is careful enough not to reorder. 8099 # Supported since Solaris 2.6 (maybe 2.5.1?) 8100 if test "$GCC" = yes; then 8101 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8102 else 8103 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8104 fi 8105 ;; 8106 esac 8107 link_all_deplibs=yes 8108 ;; 8109 8110 sunos4*) 8111 if test "x$host_vendor" = xsequent; then 8112 # Use $CC to link under sequent, because it throws in some extra .o 8113 # files that make .init and .fini sections work. 8114 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8115 else 8116 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8117 fi 8118 hardcode_libdir_flag_spec='-L$libdir' 8119 hardcode_direct=yes 8120 hardcode_minus_L=yes 8121 hardcode_shlibpath_var=no 8122 ;; 8123 8124 sysv4) 8125 case $host_vendor in 8126 sni) 8127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8128 hardcode_direct=yes # is this really true??? 8129 ;; 8130 siemens) 8131 ## LD is ld it makes a PLAMLIB 8132 ## CC just makes a GrossModule. 8133 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8134 reload_cmds='$CC -r -o $output$reload_objs' 8135 hardcode_direct=no 8136 ;; 8137 motorola) 8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8139 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8140 ;; 8141 esac 8142 runpath_var='LD_RUN_PATH' 8143 hardcode_shlibpath_var=no 8144 ;; 8145 8146 sysv4.3*) 8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8148 hardcode_shlibpath_var=no 8149 export_dynamic_flag_spec='-Bexport' 8150 ;; 8151 8152 sysv4*MP*) 8153 if test -d /usr/nec; then 8154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8155 hardcode_shlibpath_var=no 8156 runpath_var=LD_RUN_PATH 8157 hardcode_runpath_var=yes 8158 ld_shlibs=yes 8159 fi 8160 ;; 8161 8162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8163 no_undefined_flag='${wl}-z,text' 8164 archive_cmds_need_lc=no 8165 hardcode_shlibpath_var=no 8166 runpath_var='LD_RUN_PATH' 8167 8168 if test "$GCC" = yes; then 8169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8171 else 8172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8174 fi 8175 ;; 8176 8177 sysv5* | sco3.2v5* | sco5v6*) 8178 # Note: We can NOT use -z defs as we might desire, because we do not 8179 # link with -lc, and that would cause any symbols used from libc to 8180 # always be unresolved, which means just about no library would 8181 # ever link correctly. If we're not using GNU ld we use -z text 8182 # though, which does catch some bad symbols but isn't as heavy-handed 8183 # as -z defs. 8184 no_undefined_flag='${wl}-z,text' 8185 allow_undefined_flag='${wl}-z,nodefs' 8186 archive_cmds_need_lc=no 8187 hardcode_shlibpath_var=no 8188 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8189 hardcode_libdir_separator=':' 8190 link_all_deplibs=yes 8191 export_dynamic_flag_spec='${wl}-Bexport' 8192 runpath_var='LD_RUN_PATH' 8193 8194 if test "$GCC" = yes; then 8195 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8196 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8197 else 8198 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8199 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8200 fi 8201 ;; 8202 8203 uts4*) 8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8205 hardcode_libdir_flag_spec='-L$libdir' 8206 hardcode_shlibpath_var=no 8207 ;; 8208 8209 *) 8210 ld_shlibs=no 8211 ;; 8212 esac 8213 8214 if test x$host_vendor = xsni; then 8215 case $host in 8216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8217 export_dynamic_flag_spec='${wl}-Blargedynsym' 8218 ;; 8219 esac 8220 fi 8221 fi 8222 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8224$as_echo "$ld_shlibs" >&6; } 8225test "$ld_shlibs" = no && can_build_shared=no 8226 8227with_gnu_ld=$with_gnu_ld 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243# 8244# Do we need to explicitly link libc? 8245# 8246case "x$archive_cmds_need_lc" in 8247x|xyes) 8248 # Assume -lc should be added 8249 archive_cmds_need_lc=yes 8250 8251 if test "$enable_shared" = yes && test "$GCC" = yes; then 8252 case $archive_cmds in 8253 *'~'*) 8254 # FIXME: we may have to deal with multi-command sequences. 8255 ;; 8256 '$CC '*) 8257 # Test whether the compiler implicitly links with -lc since on some 8258 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8259 # to ld, don't add -lc before -lgcc. 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8261$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8262 $RM conftest* 8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8264 8265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8266 (eval $ac_compile) 2>&5 8267 ac_status=$? 8268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8269 test $ac_status = 0; } 2>conftest.err; then 8270 soname=conftest 8271 lib=conftest 8272 libobjs=conftest.$ac_objext 8273 deplibs= 8274 wl=$lt_prog_compiler_wl 8275 pic_flag=$lt_prog_compiler_pic 8276 compiler_flags=-v 8277 linker_flags=-v 8278 verstring= 8279 output_objdir=. 8280 libname=conftest 8281 lt_save_allow_undefined_flag=$allow_undefined_flag 8282 allow_undefined_flag= 8283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8285 ac_status=$? 8286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8287 test $ac_status = 0; } 8288 then 8289 archive_cmds_need_lc=no 8290 else 8291 archive_cmds_need_lc=yes 8292 fi 8293 allow_undefined_flag=$lt_save_allow_undefined_flag 8294 else 8295 cat conftest.err 1>&5 8296 fi 8297 $RM conftest* 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8299$as_echo "$archive_cmds_need_lc" >&6; } 8300 ;; 8301 esac 8302 fi 8303 ;; 8304esac 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8463$as_echo_n "checking dynamic linker characteristics... " >&6; } 8464 8465if test "$GCC" = yes; then 8466 case $host_os in 8467 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8468 *) lt_awk_arg="/^libraries:/" ;; 8469 esac 8470 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8471 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8472 # if the path contains ";" then we assume it to be the separator 8473 # otherwise default to the standard path separator (i.e. ":") - it is 8474 # assumed that no part of a normal pathname contains ";" but that should 8475 # okay in the real world where ";" in dirpaths is itself problematic. 8476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8477 else 8478 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8479 fi 8480 # Ok, now we have the path, separated by spaces, we can step through it 8481 # and add multilib dir if necessary. 8482 lt_tmp_lt_search_path_spec= 8483 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8484 for lt_sys_path in $lt_search_path_spec; do 8485 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8487 else 8488 test -d "$lt_sys_path" && \ 8489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8490 fi 8491 done 8492 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8493BEGIN {RS=" "; FS="/|\n";} { 8494 lt_foo=""; 8495 lt_count=0; 8496 for (lt_i = NF; lt_i > 0; lt_i--) { 8497 if ($lt_i != "" && $lt_i != ".") { 8498 if ($lt_i == "..") { 8499 lt_count++; 8500 } else { 8501 if (lt_count == 0) { 8502 lt_foo="/" $lt_i lt_foo; 8503 } else { 8504 lt_count--; 8505 } 8506 } 8507 } 8508 } 8509 if (lt_foo != "") { lt_freq[lt_foo]++; } 8510 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8511}'` 8512 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8513else 8514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8515fi 8516library_names_spec= 8517libname_spec='lib$name' 8518soname_spec= 8519shrext_cmds=".so" 8520postinstall_cmds= 8521postuninstall_cmds= 8522finish_cmds= 8523finish_eval= 8524shlibpath_var= 8525shlibpath_overrides_runpath=unknown 8526version_type=none 8527dynamic_linker="$host_os ld.so" 8528sys_lib_dlsearch_path_spec="/lib /usr/lib" 8529need_lib_prefix=unknown 8530hardcode_into_libs=no 8531 8532# when you set need_version to no, make sure it does not cause -set_version 8533# flags to be left without arguments 8534need_version=unknown 8535 8536case $host_os in 8537aix3*) 8538 version_type=linux 8539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8540 shlibpath_var=LIBPATH 8541 8542 # AIX 3 has no versioning support, so we append a major version to the name. 8543 soname_spec='${libname}${release}${shared_ext}$major' 8544 ;; 8545 8546aix[4-9]*) 8547 version_type=linux 8548 need_lib_prefix=no 8549 need_version=no 8550 hardcode_into_libs=yes 8551 if test "$host_cpu" = ia64; then 8552 # AIX 5 supports IA64 8553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8554 shlibpath_var=LD_LIBRARY_PATH 8555 else 8556 # With GCC up to 2.95.x, collect2 would create an import file 8557 # for dependence libraries. The import file would start with 8558 # the line `#! .'. This would cause the generated library to 8559 # depend on `.', always an invalid library. This was fixed in 8560 # development snapshots of GCC prior to 3.0. 8561 case $host_os in 8562 aix4 | aix4.[01] | aix4.[01].*) 8563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8564 echo ' yes ' 8565 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8566 : 8567 else 8568 can_build_shared=no 8569 fi 8570 ;; 8571 esac 8572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8573 # soname into executable. Probably we can add versioning support to 8574 # collect2, so additional links can be useful in future. 8575 if test "$aix_use_runtimelinking" = yes; then 8576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8577 # instead of lib<name>.a to let people know that these are not 8578 # typical AIX shared libraries. 8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8580 else 8581 # We preserve .a as extension for shared libraries through AIX4.2 8582 # and later when we are not doing run time linking. 8583 library_names_spec='${libname}${release}.a $libname.a' 8584 soname_spec='${libname}${release}${shared_ext}$major' 8585 fi 8586 shlibpath_var=LIBPATH 8587 fi 8588 ;; 8589 8590amigaos*) 8591 case $host_cpu in 8592 powerpc) 8593 # Since July 2007 AmigaOS4 officially supports .so libraries. 8594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8596 ;; 8597 m68k) 8598 library_names_spec='$libname.ixlibrary $libname.a' 8599 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8600 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' 8601 ;; 8602 esac 8603 ;; 8604 8605beos*) 8606 library_names_spec='${libname}${shared_ext}' 8607 dynamic_linker="$host_os ld.so" 8608 shlibpath_var=LIBRARY_PATH 8609 ;; 8610 8611bsdi[45]*) 8612 version_type=linux 8613 need_version=no 8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8615 soname_spec='${libname}${release}${shared_ext}$major' 8616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8617 shlibpath_var=LD_LIBRARY_PATH 8618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8620 # the default ld.so.conf also contains /usr/contrib/lib and 8621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8622 # libtool to hard-code these into programs 8623 ;; 8624 8625cygwin* | mingw* | pw32* | cegcc*) 8626 version_type=windows 8627 shrext_cmds=".dll" 8628 need_version=no 8629 need_lib_prefix=no 8630 8631 case $GCC,$host_os in 8632 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8633 library_names_spec='$libname.dll.a' 8634 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8635 postinstall_cmds='base_file=`basename \${file}`~ 8636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8637 dldir=$destdir/`dirname \$dlpath`~ 8638 test -d \$dldir || mkdir -p \$dldir~ 8639 $install_prog $dir/$dlname \$dldir/$dlname~ 8640 chmod a+x \$dldir/$dlname~ 8641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8643 fi' 8644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8645 dlpath=$dir/\$dldll~ 8646 $RM \$dlpath' 8647 shlibpath_overrides_runpath=yes 8648 8649 case $host_os in 8650 cygwin*) 8651 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8653 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8654 ;; 8655 mingw* | cegcc*) 8656 # MinGW DLLs use traditional 'lib' prefix 8657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8658 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8659 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8660 # It is most probably a Windows format PATH printed by 8661 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8662 # path with ; separators, and with drive letters. We can handle the 8663 # drive letters (cygwin fileutils understands them), so leave them, 8664 # especially as we might pass files found there to a mingw objdump, 8665 # which wouldn't understand a cygwinified path. Ahh. 8666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8667 else 8668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8669 fi 8670 ;; 8671 pw32*) 8672 # pw32 DLLs use 'pw' prefix rather than 'lib' 8673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8674 ;; 8675 esac 8676 ;; 8677 8678 *) 8679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8680 ;; 8681 esac 8682 dynamic_linker='Win32 ld.exe' 8683 # FIXME: first we should search . and the directory the executable is in 8684 shlibpath_var=PATH 8685 ;; 8686 8687darwin* | rhapsody*) 8688 dynamic_linker="$host_os dyld" 8689 version_type=darwin 8690 need_lib_prefix=no 8691 need_version=no 8692 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8693 soname_spec='${libname}${release}${major}$shared_ext' 8694 shlibpath_overrides_runpath=yes 8695 shlibpath_var=DYLD_LIBRARY_PATH 8696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8697 8698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8700 ;; 8701 8702dgux*) 8703 version_type=linux 8704 need_lib_prefix=no 8705 need_version=no 8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8707 soname_spec='${libname}${release}${shared_ext}$major' 8708 shlibpath_var=LD_LIBRARY_PATH 8709 ;; 8710 8711freebsd1*) 8712 dynamic_linker=no 8713 ;; 8714 8715freebsd* | dragonfly*) 8716 # DragonFly does not have aout. When/if they implement a new 8717 # versioning mechanism, adjust this. 8718 if test -x /usr/bin/objformat; then 8719 objformat=`/usr/bin/objformat` 8720 else 8721 case $host_os in 8722 freebsd[123]*) objformat=aout ;; 8723 *) objformat=elf ;; 8724 esac 8725 fi 8726 # Handle Gentoo/FreeBSD as it was Linux 8727 case $host_vendor in 8728 gentoo) 8729 version_type=linux ;; 8730 *) 8731 version_type=freebsd-$objformat ;; 8732 esac 8733 8734 case $version_type in 8735 freebsd-elf*) 8736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8737 need_version=no 8738 need_lib_prefix=no 8739 ;; 8740 freebsd-*) 8741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8742 need_version=yes 8743 ;; 8744 linux) 8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8746 soname_spec='${libname}${release}${shared_ext}$major' 8747 need_lib_prefix=no 8748 need_version=no 8749 ;; 8750 esac 8751 shlibpath_var=LD_LIBRARY_PATH 8752 case $host_os in 8753 freebsd2*) 8754 shlibpath_overrides_runpath=yes 8755 ;; 8756 freebsd3.[01]* | freebsdelf3.[01]*) 8757 shlibpath_overrides_runpath=yes 8758 hardcode_into_libs=yes 8759 ;; 8760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8762 shlibpath_overrides_runpath=no 8763 hardcode_into_libs=yes 8764 ;; 8765 *) # from 4.6 on, and DragonFly 8766 shlibpath_overrides_runpath=yes 8767 hardcode_into_libs=yes 8768 ;; 8769 esac 8770 ;; 8771 8772gnu*) 8773 version_type=linux 8774 need_lib_prefix=no 8775 need_version=no 8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8777 soname_spec='${libname}${release}${shared_ext}$major' 8778 shlibpath_var=LD_LIBRARY_PATH 8779 hardcode_into_libs=yes 8780 ;; 8781 8782hpux9* | hpux10* | hpux11*) 8783 # Give a soname corresponding to the major version so that dld.sl refuses to 8784 # link against other versions. 8785 version_type=sunos 8786 need_lib_prefix=no 8787 need_version=no 8788 case $host_cpu in 8789 ia64*) 8790 shrext_cmds='.so' 8791 hardcode_into_libs=yes 8792 dynamic_linker="$host_os dld.so" 8793 shlibpath_var=LD_LIBRARY_PATH 8794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8796 soname_spec='${libname}${release}${shared_ext}$major' 8797 if test "X$HPUX_IA64_MODE" = X32; then 8798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8799 else 8800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8801 fi 8802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8803 ;; 8804 hppa*64*) 8805 shrext_cmds='.sl' 8806 hardcode_into_libs=yes 8807 dynamic_linker="$host_os dld.sl" 8808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8811 soname_spec='${libname}${release}${shared_ext}$major' 8812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8814 ;; 8815 *) 8816 shrext_cmds='.sl' 8817 dynamic_linker="$host_os dld.sl" 8818 shlibpath_var=SHLIB_PATH 8819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 ;; 8823 esac 8824 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8825 postinstall_cmds='chmod 555 $lib' 8826 ;; 8827 8828interix[3-9]*) 8829 version_type=linux 8830 need_lib_prefix=no 8831 need_version=no 8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8833 soname_spec='${libname}${release}${shared_ext}$major' 8834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8835 shlibpath_var=LD_LIBRARY_PATH 8836 shlibpath_overrides_runpath=no 8837 hardcode_into_libs=yes 8838 ;; 8839 8840irix5* | irix6* | nonstopux*) 8841 case $host_os in 8842 nonstopux*) version_type=nonstopux ;; 8843 *) 8844 if test "$lt_cv_prog_gnu_ld" = yes; then 8845 version_type=linux 8846 else 8847 version_type=irix 8848 fi ;; 8849 esac 8850 need_lib_prefix=no 8851 need_version=no 8852 soname_spec='${libname}${release}${shared_ext}$major' 8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8854 case $host_os in 8855 irix5* | nonstopux*) 8856 libsuff= shlibsuff= 8857 ;; 8858 *) 8859 case $LD in # libtool.m4 will add one of these switches to LD 8860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8861 libsuff= shlibsuff= libmagic=32-bit;; 8862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8863 libsuff=32 shlibsuff=N32 libmagic=N32;; 8864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8865 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8866 *) libsuff= shlibsuff= libmagic=never-match;; 8867 esac 8868 ;; 8869 esac 8870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8871 shlibpath_overrides_runpath=no 8872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8874 hardcode_into_libs=yes 8875 ;; 8876 8877# No shared lib support for Linux oldld, aout, or coff. 8878linux*oldld* | linux*aout* | linux*coff*) 8879 dynamic_linker=no 8880 ;; 8881 8882# This must be Linux ELF. 8883linux* | k*bsd*-gnu) 8884 version_type=linux 8885 need_lib_prefix=no 8886 need_version=no 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8888 soname_spec='${libname}${release}${shared_ext}$major' 8889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8890 shlibpath_var=LD_LIBRARY_PATH 8891 shlibpath_overrides_runpath=no 8892 # Some binutils ld are patched to set DT_RUNPATH 8893 save_LDFLAGS=$LDFLAGS 8894 save_libdir=$libdir 8895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899 8900int 8901main () 8902{ 8903 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908if ac_fn_c_try_link "$LINENO"; then : 8909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 8910 shlibpath_overrides_runpath=yes 8911fi 8912fi 8913rm -f core conftest.err conftest.$ac_objext \ 8914 conftest$ac_exeext conftest.$ac_ext 8915 LDFLAGS=$save_LDFLAGS 8916 libdir=$save_libdir 8917 8918 # This implies no fast_install, which is unacceptable. 8919 # Some rework will be needed to allow for fast_install 8920 # before this can be enabled. 8921 hardcode_into_libs=yes 8922 8923 # Append ld.so.conf contents to the search path 8924 if test -f /etc/ld.so.conf; then 8925 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' ' '` 8926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8927 fi 8928 8929 # We used to test for /lib/ld.so.1 and disable shared libraries on 8930 # powerpc, because MkLinux only supported shared libraries with the 8931 # GNU dynamic linker. Since this was broken with cross compilers, 8932 # most powerpc-linux boxes support dynamic linking these days and 8933 # people can always --disable-shared, the test was removed, and we 8934 # assume the GNU/Linux dynamic linker is in use. 8935 dynamic_linker='GNU/Linux ld.so' 8936 ;; 8937 8938netbsd*) 8939 version_type=sunos 8940 need_lib_prefix=no 8941 need_version=no 8942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8945 dynamic_linker='NetBSD (a.out) ld.so' 8946 else 8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 dynamic_linker='NetBSD ld.elf_so' 8950 fi 8951 shlibpath_var=LD_LIBRARY_PATH 8952 shlibpath_overrides_runpath=yes 8953 hardcode_into_libs=yes 8954 ;; 8955 8956newsos6) 8957 version_type=linux 8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8959 shlibpath_var=LD_LIBRARY_PATH 8960 shlibpath_overrides_runpath=yes 8961 ;; 8962 8963*nto* | *qnx*) 8964 version_type=qnx 8965 need_lib_prefix=no 8966 need_version=no 8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8968 soname_spec='${libname}${release}${shared_ext}$major' 8969 shlibpath_var=LD_LIBRARY_PATH 8970 shlibpath_overrides_runpath=no 8971 hardcode_into_libs=yes 8972 dynamic_linker='ldqnx.so' 8973 ;; 8974 8975openbsd*) 8976 version_type=sunos 8977 sys_lib_dlsearch_path_spec="/usr/lib" 8978 need_lib_prefix=no 8979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8980 case $host_os in 8981 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8982 *) need_version=no ;; 8983 esac 8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8986 shlibpath_var=LD_LIBRARY_PATH 8987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8988 case $host_os in 8989 openbsd2.[89] | openbsd2.[89].*) 8990 shlibpath_overrides_runpath=no 8991 ;; 8992 *) 8993 shlibpath_overrides_runpath=yes 8994 ;; 8995 esac 8996 else 8997 shlibpath_overrides_runpath=yes 8998 fi 8999 ;; 9000 9001os2*) 9002 libname_spec='$name' 9003 shrext_cmds=".dll" 9004 need_lib_prefix=no 9005 library_names_spec='$libname${shared_ext} $libname.a' 9006 dynamic_linker='OS/2 ld.exe' 9007 shlibpath_var=LIBPATH 9008 ;; 9009 9010osf3* | osf4* | osf5*) 9011 version_type=osf 9012 need_lib_prefix=no 9013 need_version=no 9014 soname_spec='${libname}${release}${shared_ext}$major' 9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9016 shlibpath_var=LD_LIBRARY_PATH 9017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9019 ;; 9020 9021rdos*) 9022 dynamic_linker=no 9023 ;; 9024 9025solaris*) 9026 version_type=linux 9027 need_lib_prefix=no 9028 need_version=no 9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9030 soname_spec='${libname}${release}${shared_ext}$major' 9031 shlibpath_var=LD_LIBRARY_PATH 9032 shlibpath_overrides_runpath=yes 9033 hardcode_into_libs=yes 9034 # ldd complains unless libraries are executable 9035 postinstall_cmds='chmod +x $lib' 9036 ;; 9037 9038sunos4*) 9039 version_type=sunos 9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9042 shlibpath_var=LD_LIBRARY_PATH 9043 shlibpath_overrides_runpath=yes 9044 if test "$with_gnu_ld" = yes; then 9045 need_lib_prefix=no 9046 fi 9047 need_version=yes 9048 ;; 9049 9050sysv4 | sysv4.3*) 9051 version_type=linux 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 shlibpath_var=LD_LIBRARY_PATH 9055 case $host_vendor in 9056 sni) 9057 shlibpath_overrides_runpath=no 9058 need_lib_prefix=no 9059 runpath_var=LD_RUN_PATH 9060 ;; 9061 siemens) 9062 need_lib_prefix=no 9063 ;; 9064 motorola) 9065 need_lib_prefix=no 9066 need_version=no 9067 shlibpath_overrides_runpath=no 9068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9069 ;; 9070 esac 9071 ;; 9072 9073sysv4*MP*) 9074 if test -d /usr/nec ;then 9075 version_type=linux 9076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9077 soname_spec='$libname${shared_ext}.$major' 9078 shlibpath_var=LD_LIBRARY_PATH 9079 fi 9080 ;; 9081 9082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9083 version_type=freebsd-elf 9084 need_lib_prefix=no 9085 need_version=no 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9087 soname_spec='${libname}${release}${shared_ext}$major' 9088 shlibpath_var=LD_LIBRARY_PATH 9089 shlibpath_overrides_runpath=yes 9090 hardcode_into_libs=yes 9091 if test "$with_gnu_ld" = yes; then 9092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9093 else 9094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9095 case $host_os in 9096 sco3.2v5*) 9097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9098 ;; 9099 esac 9100 fi 9101 sys_lib_dlsearch_path_spec='/usr/lib' 9102 ;; 9103 9104tpf*) 9105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9106 version_type=linux 9107 need_lib_prefix=no 9108 need_version=no 9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9110 shlibpath_var=LD_LIBRARY_PATH 9111 shlibpath_overrides_runpath=no 9112 hardcode_into_libs=yes 9113 ;; 9114 9115uts4*) 9116 version_type=linux 9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9118 soname_spec='${libname}${release}${shared_ext}$major' 9119 shlibpath_var=LD_LIBRARY_PATH 9120 ;; 9121 9122*) 9123 dynamic_linker=no 9124 ;; 9125esac 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9127$as_echo "$dynamic_linker" >&6; } 9128test "$dynamic_linker" = no && can_build_shared=no 9129 9130variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9131if test "$GCC" = yes; then 9132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9133fi 9134 9135if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9137fi 9138if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9140fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9229$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9230hardcode_action= 9231if test -n "$hardcode_libdir_flag_spec" || 9232 test -n "$runpath_var" || 9233 test "X$hardcode_automatic" = "Xyes" ; then 9234 9235 # We can hardcode non-existent directories. 9236 if test "$hardcode_direct" != no && 9237 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9238 # have to relink, otherwise we might link with an installed library 9239 # when we should be linking with a yet-to-be-installed one 9240 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9241 test "$hardcode_minus_L" != no; then 9242 # Linking always hardcodes the temporary library directory. 9243 hardcode_action=relink 9244 else 9245 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9246 hardcode_action=immediate 9247 fi 9248else 9249 # We cannot hardcode anything, or else we can only hardcode existing 9250 # directories. 9251 hardcode_action=unsupported 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9254$as_echo "$hardcode_action" >&6; } 9255 9256if test "$hardcode_action" = relink || 9257 test "$inherit_rpath" = yes; then 9258 # Fast installation is not supported 9259 enable_fast_install=no 9260elif test "$shlibpath_overrides_runpath" = yes || 9261 test "$enable_shared" = no; then 9262 # Fast installation is not necessary 9263 enable_fast_install=needless 9264fi 9265 9266 9267 9268 9269 9270 9271 if test "x$enable_dlopen" != xyes; then 9272 enable_dlopen=unknown 9273 enable_dlopen_self=unknown 9274 enable_dlopen_self_static=unknown 9275else 9276 lt_cv_dlopen=no 9277 lt_cv_dlopen_libs= 9278 9279 case $host_os in 9280 beos*) 9281 lt_cv_dlopen="load_add_on" 9282 lt_cv_dlopen_libs= 9283 lt_cv_dlopen_self=yes 9284 ;; 9285 9286 mingw* | pw32* | cegcc*) 9287 lt_cv_dlopen="LoadLibrary" 9288 lt_cv_dlopen_libs= 9289 ;; 9290 9291 cygwin*) 9292 lt_cv_dlopen="dlopen" 9293 lt_cv_dlopen_libs= 9294 ;; 9295 9296 darwin*) 9297 # if libdl is installed we need to link against it 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9299$as_echo_n "checking for dlopen in -ldl... " >&6; } 9300if ${ac_cv_lib_dl_dlopen+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 ac_check_lib_save_LIBS=$LIBS 9304LIBS="-ldl $LIBS" 9305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307 9308/* Override any GCC internal prototype to avoid an error. 9309 Use char because int might match the return type of a GCC 9310 builtin and then its argument prototype would still apply. */ 9311#ifdef __cplusplus 9312extern "C" 9313#endif 9314char dlopen (); 9315int 9316main () 9317{ 9318return dlopen (); 9319 ; 9320 return 0; 9321} 9322_ACEOF 9323if ac_fn_c_try_link "$LINENO"; then : 9324 ac_cv_lib_dl_dlopen=yes 9325else 9326 ac_cv_lib_dl_dlopen=no 9327fi 9328rm -f core conftest.err conftest.$ac_objext \ 9329 conftest$ac_exeext conftest.$ac_ext 9330LIBS=$ac_check_lib_save_LIBS 9331fi 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9333$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9334if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9336else 9337 9338 lt_cv_dlopen="dyld" 9339 lt_cv_dlopen_libs= 9340 lt_cv_dlopen_self=yes 9341 9342fi 9343 9344 ;; 9345 9346 *) 9347 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9348if test "x$ac_cv_func_shl_load" = xyes; then : 9349 lt_cv_dlopen="shl_load" 9350else 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9352$as_echo_n "checking for shl_load in -ldld... " >&6; } 9353if ${ac_cv_lib_dld_shl_load+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 ac_check_lib_save_LIBS=$LIBS 9357LIBS="-ldld $LIBS" 9358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9359/* end confdefs.h. */ 9360 9361/* Override any GCC internal prototype to avoid an error. 9362 Use char because int might match the return type of a GCC 9363 builtin and then its argument prototype would still apply. */ 9364#ifdef __cplusplus 9365extern "C" 9366#endif 9367char shl_load (); 9368int 9369main () 9370{ 9371return shl_load (); 9372 ; 9373 return 0; 9374} 9375_ACEOF 9376if ac_fn_c_try_link "$LINENO"; then : 9377 ac_cv_lib_dld_shl_load=yes 9378else 9379 ac_cv_lib_dld_shl_load=no 9380fi 9381rm -f core conftest.err conftest.$ac_objext \ 9382 conftest$ac_exeext conftest.$ac_ext 9383LIBS=$ac_check_lib_save_LIBS 9384fi 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9386$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9387if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9388 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9389else 9390 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9391if test "x$ac_cv_func_dlopen" = xyes; then : 9392 lt_cv_dlopen="dlopen" 9393else 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9395$as_echo_n "checking for dlopen in -ldl... " >&6; } 9396if ${ac_cv_lib_dl_dlopen+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 ac_check_lib_save_LIBS=$LIBS 9400LIBS="-ldl $LIBS" 9401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402/* end confdefs.h. */ 9403 9404/* Override any GCC internal prototype to avoid an error. 9405 Use char because int might match the return type of a GCC 9406 builtin and then its argument prototype would still apply. */ 9407#ifdef __cplusplus 9408extern "C" 9409#endif 9410char dlopen (); 9411int 9412main () 9413{ 9414return dlopen (); 9415 ; 9416 return 0; 9417} 9418_ACEOF 9419if ac_fn_c_try_link "$LINENO"; then : 9420 ac_cv_lib_dl_dlopen=yes 9421else 9422 ac_cv_lib_dl_dlopen=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext \ 9425 conftest$ac_exeext conftest.$ac_ext 9426LIBS=$ac_check_lib_save_LIBS 9427fi 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9429$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9430if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9432else 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9434$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9435if ${ac_cv_lib_svld_dlopen+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 ac_check_lib_save_LIBS=$LIBS 9439LIBS="-lsvld $LIBS" 9440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442 9443/* Override any GCC internal prototype to avoid an error. 9444 Use char because int might match the return type of a GCC 9445 builtin and then its argument prototype would still apply. */ 9446#ifdef __cplusplus 9447extern "C" 9448#endif 9449char dlopen (); 9450int 9451main () 9452{ 9453return dlopen (); 9454 ; 9455 return 0; 9456} 9457_ACEOF 9458if ac_fn_c_try_link "$LINENO"; then : 9459 ac_cv_lib_svld_dlopen=yes 9460else 9461 ac_cv_lib_svld_dlopen=no 9462fi 9463rm -f core conftest.err conftest.$ac_objext \ 9464 conftest$ac_exeext conftest.$ac_ext 9465LIBS=$ac_check_lib_save_LIBS 9466fi 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9468$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9469if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 9470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9471else 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9473$as_echo_n "checking for dld_link in -ldld... " >&6; } 9474if ${ac_cv_lib_dld_dld_link+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 ac_check_lib_save_LIBS=$LIBS 9478LIBS="-ldld $LIBS" 9479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481 9482/* Override any GCC internal prototype to avoid an error. 9483 Use char because int might match the return type of a GCC 9484 builtin and then its argument prototype would still apply. */ 9485#ifdef __cplusplus 9486extern "C" 9487#endif 9488char dld_link (); 9489int 9490main () 9491{ 9492return dld_link (); 9493 ; 9494 return 0; 9495} 9496_ACEOF 9497if ac_fn_c_try_link "$LINENO"; then : 9498 ac_cv_lib_dld_dld_link=yes 9499else 9500 ac_cv_lib_dld_dld_link=no 9501fi 9502rm -f core conftest.err conftest.$ac_objext \ 9503 conftest$ac_exeext conftest.$ac_ext 9504LIBS=$ac_check_lib_save_LIBS 9505fi 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9507$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9508if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 9509 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9510fi 9511 9512 9513fi 9514 9515 9516fi 9517 9518 9519fi 9520 9521 9522fi 9523 9524 9525fi 9526 9527 ;; 9528 esac 9529 9530 if test "x$lt_cv_dlopen" != xno; then 9531 enable_dlopen=yes 9532 else 9533 enable_dlopen=no 9534 fi 9535 9536 case $lt_cv_dlopen in 9537 dlopen) 9538 save_CPPFLAGS="$CPPFLAGS" 9539 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9540 9541 save_LDFLAGS="$LDFLAGS" 9542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9543 9544 save_LIBS="$LIBS" 9545 LIBS="$lt_cv_dlopen_libs $LIBS" 9546 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9548$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9549if ${lt_cv_dlopen_self+:} false; then : 9550 $as_echo_n "(cached) " >&6 9551else 9552 if test "$cross_compiling" = yes; then : 9553 lt_cv_dlopen_self=cross 9554else 9555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9556 lt_status=$lt_dlunknown 9557 cat > conftest.$ac_ext <<_LT_EOF 9558#line 9556 "configure" 9559#include "confdefs.h" 9560 9561#if HAVE_DLFCN_H 9562#include <dlfcn.h> 9563#endif 9564 9565#include <stdio.h> 9566 9567#ifdef RTLD_GLOBAL 9568# define LT_DLGLOBAL RTLD_GLOBAL 9569#else 9570# ifdef DL_GLOBAL 9571# define LT_DLGLOBAL DL_GLOBAL 9572# else 9573# define LT_DLGLOBAL 0 9574# endif 9575#endif 9576 9577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9578 find out it does not work in some platform. */ 9579#ifndef LT_DLLAZY_OR_NOW 9580# ifdef RTLD_LAZY 9581# define LT_DLLAZY_OR_NOW RTLD_LAZY 9582# else 9583# ifdef DL_LAZY 9584# define LT_DLLAZY_OR_NOW DL_LAZY 9585# else 9586# ifdef RTLD_NOW 9587# define LT_DLLAZY_OR_NOW RTLD_NOW 9588# else 9589# ifdef DL_NOW 9590# define LT_DLLAZY_OR_NOW DL_NOW 9591# else 9592# define LT_DLLAZY_OR_NOW 0 9593# endif 9594# endif 9595# endif 9596# endif 9597#endif 9598 9599void fnord() { int i=42;} 9600int main () 9601{ 9602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9603 int status = $lt_dlunknown; 9604 9605 if (self) 9606 { 9607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9609 /* dlclose (self); */ 9610 } 9611 else 9612 puts (dlerror ()); 9613 9614 return status; 9615} 9616_LT_EOF 9617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9618 (eval $ac_link) 2>&5 9619 ac_status=$? 9620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9621 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9622 (./conftest; exit; ) >&5 2>/dev/null 9623 lt_status=$? 9624 case x$lt_status in 9625 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9626 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9627 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9628 esac 9629 else : 9630 # compilation failed 9631 lt_cv_dlopen_self=no 9632 fi 9633fi 9634rm -fr conftest* 9635 9636 9637fi 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9639$as_echo "$lt_cv_dlopen_self" >&6; } 9640 9641 if test "x$lt_cv_dlopen_self" = xyes; then 9642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9644$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9645if ${lt_cv_dlopen_self_static+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647else 9648 if test "$cross_compiling" = yes; then : 9649 lt_cv_dlopen_self_static=cross 9650else 9651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9652 lt_status=$lt_dlunknown 9653 cat > conftest.$ac_ext <<_LT_EOF 9654#line 9652 "configure" 9655#include "confdefs.h" 9656 9657#if HAVE_DLFCN_H 9658#include <dlfcn.h> 9659#endif 9660 9661#include <stdio.h> 9662 9663#ifdef RTLD_GLOBAL 9664# define LT_DLGLOBAL RTLD_GLOBAL 9665#else 9666# ifdef DL_GLOBAL 9667# define LT_DLGLOBAL DL_GLOBAL 9668# else 9669# define LT_DLGLOBAL 0 9670# endif 9671#endif 9672 9673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9674 find out it does not work in some platform. */ 9675#ifndef LT_DLLAZY_OR_NOW 9676# ifdef RTLD_LAZY 9677# define LT_DLLAZY_OR_NOW RTLD_LAZY 9678# else 9679# ifdef DL_LAZY 9680# define LT_DLLAZY_OR_NOW DL_LAZY 9681# else 9682# ifdef RTLD_NOW 9683# define LT_DLLAZY_OR_NOW RTLD_NOW 9684# else 9685# ifdef DL_NOW 9686# define LT_DLLAZY_OR_NOW DL_NOW 9687# else 9688# define LT_DLLAZY_OR_NOW 0 9689# endif 9690# endif 9691# endif 9692# endif 9693#endif 9694 9695void fnord() { int i=42;} 9696int main () 9697{ 9698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9699 int status = $lt_dlunknown; 9700 9701 if (self) 9702 { 9703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9705 /* dlclose (self); */ 9706 } 9707 else 9708 puts (dlerror ()); 9709 9710 return status; 9711} 9712_LT_EOF 9713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9714 (eval $ac_link) 2>&5 9715 ac_status=$? 9716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9718 (./conftest; exit; ) >&5 2>/dev/null 9719 lt_status=$? 9720 case x$lt_status in 9721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9724 esac 9725 else : 9726 # compilation failed 9727 lt_cv_dlopen_self_static=no 9728 fi 9729fi 9730rm -fr conftest* 9731 9732 9733fi 9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 9735$as_echo "$lt_cv_dlopen_self_static" >&6; } 9736 fi 9737 9738 CPPFLAGS="$save_CPPFLAGS" 9739 LDFLAGS="$save_LDFLAGS" 9740 LIBS="$save_LIBS" 9741 ;; 9742 esac 9743 9744 case $lt_cv_dlopen_self in 9745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9746 *) enable_dlopen_self=unknown ;; 9747 esac 9748 9749 case $lt_cv_dlopen_self_static in 9750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9751 *) enable_dlopen_self_static=unknown ;; 9752 esac 9753fi 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771striplib= 9772old_striplib= 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 9774$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9775if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9777 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9779$as_echo "yes" >&6; } 9780else 9781# FIXME - insert some real tests, host_os isn't really good enough 9782 case $host_os in 9783 darwin*) 9784 if test -n "$STRIP" ; then 9785 striplib="$STRIP -x" 9786 old_striplib="$STRIP -S" 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9788$as_echo "yes" >&6; } 9789 else 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9791$as_echo "no" >&6; } 9792 fi 9793 ;; 9794 *) 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9796$as_echo "no" >&6; } 9797 ;; 9798 esac 9799fi 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 # Report which library types will actually be built 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 9814$as_echo_n "checking if libtool supports shared libraries... " >&6; } 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 9816$as_echo "$can_build_shared" >&6; } 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 9819$as_echo_n "checking whether to build shared libraries... " >&6; } 9820 test "$can_build_shared" = "no" && enable_shared=no 9821 9822 # On AIX, shared libraries and static libraries use the same namespace, and 9823 # are all built from PIC. 9824 case $host_os in 9825 aix3*) 9826 test "$enable_shared" = yes && enable_static=no 9827 if test -n "$RANLIB"; then 9828 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9829 postinstall_cmds='$RANLIB $lib' 9830 fi 9831 ;; 9832 9833 aix[4-9]*) 9834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9835 test "$enable_shared" = yes && enable_static=no 9836 fi 9837 ;; 9838 esac 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 9840$as_echo "$enable_shared" >&6; } 9841 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 9843$as_echo_n "checking whether to build static libraries... " >&6; } 9844 # Make sure either enable_shared or enable_static is yes. 9845 test "$enable_shared" = yes || enable_static=yes 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 9847$as_echo "$enable_static" >&6; } 9848 9849 9850 9851 9852fi 9853ac_ext=c 9854ac_cpp='$CPP $CPPFLAGS' 9855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9857ac_compiler_gnu=$ac_cv_c_compiler_gnu 9858 9859CC="$lt_save_CC" 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 ac_config_commands="$ac_config_commands libtool" 9874 9875 9876 9877 9878# Only expand once: 9879 9880 9881# Find a good install program. We prefer a C program (faster), 9882# so one script is as good as another. But avoid the broken or 9883# incompatible versions: 9884# SysV /etc/install, /usr/sbin/install 9885# SunOS /usr/etc/install 9886# IRIX /sbin/install 9887# AIX /bin/install 9888# AmigaOS /C/install, which installs bootblocks on floppy discs 9889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9890# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9892# OS/2's system install, which has a completely different semantic 9893# ./install, which can be erroneously created by make from ./install.sh. 9894# Reject install programs that cannot install multiple files. 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9896$as_echo_n "checking for a BSD-compatible install... " >&6; } 9897if test -z "$INSTALL"; then 9898if ${ac_cv_path_install+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9902for as_dir in $PATH 9903do 9904 IFS=$as_save_IFS 9905 test -z "$as_dir" && as_dir=. 9906 # Account for people who put trailing slashes in PATH elements. 9907case $as_dir/ in #(( 9908 ./ | .// | /[cC]/* | \ 9909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9911 /usr/ucb/* ) ;; 9912 *) 9913 # OSF1 and SCO ODT 3.0 have their own names for install. 9914 # Don't use installbsd from OSF since it installs stuff as root 9915 # by default. 9916 for ac_prog in ginstall scoinst install; do 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9919 if test $ac_prog = install && 9920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9921 # AIX install. It has an incompatible calling convention. 9922 : 9923 elif test $ac_prog = install && 9924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9925 # program-specific install script used by HP pwplus--don't use. 9926 : 9927 else 9928 rm -rf conftest.one conftest.two conftest.dir 9929 echo one > conftest.one 9930 echo two > conftest.two 9931 mkdir conftest.dir 9932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9933 test -s conftest.one && test -s conftest.two && 9934 test -s conftest.dir/conftest.one && 9935 test -s conftest.dir/conftest.two 9936 then 9937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9938 break 3 9939 fi 9940 fi 9941 fi 9942 done 9943 done 9944 ;; 9945esac 9946 9947 done 9948IFS=$as_save_IFS 9949 9950rm -rf conftest.one conftest.two conftest.dir 9951 9952fi 9953 if test "${ac_cv_path_install+set}" = set; then 9954 INSTALL=$ac_cv_path_install 9955 else 9956 # As a last resort, use the slow shell script. Don't cache a 9957 # value for INSTALL within a source directory, because that will 9958 # break other packages using the cache if that directory is 9959 # removed, or if the value is a relative name. 9960 INSTALL=$ac_install_sh 9961 fi 9962fi 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9964$as_echo "$INSTALL" >&6; } 9965 9966# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9967# It thinks the first close brace ends the variable substitution. 9968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9969 9970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9971 9972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9973 9974 9975######### 9976# Enable large file support (if special flags are necessary) 9977# 9978# Check whether --enable-largefile was given. 9979if test "${enable_largefile+set}" = set; then : 9980 enableval=$enable_largefile; 9981fi 9982 9983if test "$enable_largefile" != no; then 9984 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9986$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 9987if ${ac_cv_sys_largefile_CC+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 ac_cv_sys_largefile_CC=no 9991 if test "$GCC" != yes; then 9992 ac_save_CC=$CC 9993 while :; do 9994 # IRIX 6.2 and later do not support large files by default, 9995 # so use the C compiler's -n32 option if that helps. 9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998#include <sys/types.h> 9999 /* Check that off_t can represent 2**63 - 1 correctly. 10000 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10001 since some C++ compilers masquerading as C compilers 10002 incorrectly reject 9223372036854775807. */ 10003#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10005 && LARGE_OFF_T % 2147483647 == 1) 10006 ? 1 : -1]; 10007int 10008main () 10009{ 10010 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015 if ac_fn_c_try_compile "$LINENO"; then : 10016 break 10017fi 10018rm -f core conftest.err conftest.$ac_objext 10019 CC="$CC -n32" 10020 if ac_fn_c_try_compile "$LINENO"; then : 10021 ac_cv_sys_largefile_CC=' -n32'; break 10022fi 10023rm -f core conftest.err conftest.$ac_objext 10024 break 10025 done 10026 CC=$ac_save_CC 10027 rm -f conftest.$ac_ext 10028 fi 10029fi 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10031$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10032 if test "$ac_cv_sys_largefile_CC" != no; then 10033 CC=$CC$ac_cv_sys_largefile_CC 10034 fi 10035 10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10037$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10038if ${ac_cv_sys_file_offset_bits+:} false; then : 10039 $as_echo_n "(cached) " >&6 10040else 10041 while :; do 10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10043/* end confdefs.h. */ 10044#include <sys/types.h> 10045 /* Check that off_t can represent 2**63 - 1 correctly. 10046 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10047 since some C++ compilers masquerading as C compilers 10048 incorrectly reject 9223372036854775807. */ 10049#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10051 && LARGE_OFF_T % 2147483647 == 1) 10052 ? 1 : -1]; 10053int 10054main () 10055{ 10056 10057 ; 10058 return 0; 10059} 10060_ACEOF 10061if ac_fn_c_try_compile "$LINENO"; then : 10062 ac_cv_sys_file_offset_bits=no; break 10063fi 10064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067#define _FILE_OFFSET_BITS 64 10068#include <sys/types.h> 10069 /* Check that off_t can represent 2**63 - 1 correctly. 10070 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10071 since some C++ compilers masquerading as C compilers 10072 incorrectly reject 9223372036854775807. */ 10073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10075 && LARGE_OFF_T % 2147483647 == 1) 10076 ? 1 : -1]; 10077int 10078main () 10079{ 10080 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085if ac_fn_c_try_compile "$LINENO"; then : 10086 ac_cv_sys_file_offset_bits=64; break 10087fi 10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10089 ac_cv_sys_file_offset_bits=unknown 10090 break 10091done 10092fi 10093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10094$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10095case $ac_cv_sys_file_offset_bits in #( 10096 no | unknown) ;; 10097 *) 10098cat >>confdefs.h <<_ACEOF 10099#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10100_ACEOF 10101;; 10102esac 10103rm -rf conftest* 10104 if test $ac_cv_sys_file_offset_bits = unknown; then 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10106$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10107if ${ac_cv_sys_large_files+:} false; then : 10108 $as_echo_n "(cached) " >&6 10109else 10110 while :; do 10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113#include <sys/types.h> 10114 /* Check that off_t can represent 2**63 - 1 correctly. 10115 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10116 since some C++ compilers masquerading as C compilers 10117 incorrectly reject 9223372036854775807. */ 10118#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10120 && LARGE_OFF_T % 2147483647 == 1) 10121 ? 1 : -1]; 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_compile "$LINENO"; then : 10131 ac_cv_sys_large_files=no; break 10132fi 10133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136#define _LARGE_FILES 1 10137#include <sys/types.h> 10138 /* Check that off_t can represent 2**63 - 1 correctly. 10139 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10140 since some C++ compilers masquerading as C compilers 10141 incorrectly reject 9223372036854775807. */ 10142#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10144 && LARGE_OFF_T % 2147483647 == 1) 10145 ? 1 : -1]; 10146int 10147main () 10148{ 10149 10150 ; 10151 return 0; 10152} 10153_ACEOF 10154if ac_fn_c_try_compile "$LINENO"; then : 10155 ac_cv_sys_large_files=1; break 10156fi 10157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10158 ac_cv_sys_large_files=unknown 10159 break 10160done 10161fi 10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10163$as_echo "$ac_cv_sys_large_files" >&6; } 10164case $ac_cv_sys_large_files in #( 10165 no | unknown) ;; 10166 *) 10167cat >>confdefs.h <<_ACEOF 10168#define _LARGE_FILES $ac_cv_sys_large_files 10169_ACEOF 10170;; 10171esac 10172rm -rf conftest* 10173 fi 10174 10175 10176fi 10177 10178 10179######### 10180# Check for needed/wanted data types 10181ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 10182if test "x$ac_cv_type_int8_t" = xyes; then : 10183 10184cat >>confdefs.h <<_ACEOF 10185#define HAVE_INT8_T 1 10186_ACEOF 10187 10188 10189fi 10190ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 10191if test "x$ac_cv_type_int16_t" = xyes; then : 10192 10193cat >>confdefs.h <<_ACEOF 10194#define HAVE_INT16_T 1 10195_ACEOF 10196 10197 10198fi 10199ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 10200if test "x$ac_cv_type_int32_t" = xyes; then : 10201 10202cat >>confdefs.h <<_ACEOF 10203#define HAVE_INT32_T 1 10204_ACEOF 10205 10206 10207fi 10208ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 10209if test "x$ac_cv_type_int64_t" = xyes; then : 10210 10211cat >>confdefs.h <<_ACEOF 10212#define HAVE_INT64_T 1 10213_ACEOF 10214 10215 10216fi 10217ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 10218if test "x$ac_cv_type_intptr_t" = xyes; then : 10219 10220cat >>confdefs.h <<_ACEOF 10221#define HAVE_INTPTR_T 1 10222_ACEOF 10223 10224 10225fi 10226ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 10227if test "x$ac_cv_type_uint8_t" = xyes; then : 10228 10229cat >>confdefs.h <<_ACEOF 10230#define HAVE_UINT8_T 1 10231_ACEOF 10232 10233 10234fi 10235ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 10236if test "x$ac_cv_type_uint16_t" = xyes; then : 10237 10238cat >>confdefs.h <<_ACEOF 10239#define HAVE_UINT16_T 1 10240_ACEOF 10241 10242 10243fi 10244ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 10245if test "x$ac_cv_type_uint32_t" = xyes; then : 10246 10247cat >>confdefs.h <<_ACEOF 10248#define HAVE_UINT32_T 1 10249_ACEOF 10250 10251 10252fi 10253ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 10254if test "x$ac_cv_type_uint64_t" = xyes; then : 10255 10256cat >>confdefs.h <<_ACEOF 10257#define HAVE_UINT64_T 1 10258_ACEOF 10259 10260 10261fi 10262ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 10263if test "x$ac_cv_type_uintptr_t" = xyes; then : 10264 10265cat >>confdefs.h <<_ACEOF 10266#define HAVE_UINTPTR_T 1 10267_ACEOF 10268 10269 10270fi 10271 10272 10273######### 10274# Check for needed/wanted headers 10275for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h 10276do : 10277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10280 cat >>confdefs.h <<_ACEOF 10281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10282_ACEOF 10283 10284fi 10285 10286done 10287 10288 10289######### 10290# Figure out whether or not we have these functions 10291# 10292for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64 10293do : 10294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10296if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10297 cat >>confdefs.h <<_ACEOF 10298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10299_ACEOF 10300 10301fi 10302done 10303 10304 10305######### 10306# By default, we use the amalgamation (this may be changed below...) 10307# 10308USE_AMALGAMATION=1 10309 10310######### 10311# By default, amalgamation sqlite3.c will have #line directives. 10312# This is a build option not shown by ./configure --help 10313# To control it, use configure option: amalgamation_line_macros=? 10314# where ? is no to suppress #line directives or yes to create them. 10315AMALGAMATION_LINE_MACROS=--linemacros=0 10316 10317######### 10318# See whether we can run specific tclsh versions known to work well; 10319# if not, then we fall back to plain tclsh. 10320# TODO: try other versions before falling back? 10321# 10322for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh 10323do 10324 # Extract the first word of "$ac_prog", so it can be a program name with args. 10325set dummy $ac_prog; ac_word=$2 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10327$as_echo_n "checking for $ac_word... " >&6; } 10328if ${ac_cv_prog_TCLSH_CMD+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 if test -n "$TCLSH_CMD"; then 10332 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 10333else 10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10335for as_dir in $PATH 10336do 10337 IFS=$as_save_IFS 10338 test -z "$as_dir" && as_dir=. 10339 for ac_exec_ext in '' $ac_executable_extensions; do 10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10341 ac_cv_prog_TCLSH_CMD="$ac_prog" 10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10343 break 2 10344 fi 10345done 10346 done 10347IFS=$as_save_IFS 10348 10349fi 10350fi 10351TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 10352if test -n "$TCLSH_CMD"; then 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 10354$as_echo "$TCLSH_CMD" >&6; } 10355else 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10357$as_echo "no" >&6; } 10358fi 10359 10360 10361 test -n "$TCLSH_CMD" && break 10362done 10363test -n "$TCLSH_CMD" || TCLSH_CMD="none" 10364 10365if test "$TCLSH_CMD" = "none"; then 10366 # If we can't find a local tclsh, then building the amalgamation will fail. 10367 # We act as though --disable-amalgamation has been used. 10368 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 10369 USE_AMALGAMATION=0 10370 TCLSH_CMD="tclsh" 10371fi 10372 10373 10374 10375if test "x${TCLLIBDIR+set}" != "xset" ; then 10376 TCLLIBDIR='$(libdir)' 10377 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do 10378 if test -d $i ; then 10379 TCLLIBDIR=$i 10380 break 10381 fi 10382 done 10383 TCLLIBDIR="${TCLLIBDIR}/sqlite3" 10384fi 10385 10386 10387######### 10388# Set up an appropriate program prefix 10389# 10390if test "$program_prefix" = "NONE"; then 10391 program_prefix="" 10392fi 10393 10394 10395VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5 10397$as_echo "$as_me: Version set to $VERSION" >&6;} 10398 10399RELEASE=`cat $srcdir/VERSION` 10400{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5 10401$as_echo "$as_me: Release set to $RELEASE" >&6;} 10402 10403 10404######### 10405# Locate a compiler for the build machine. This compiler should 10406# generate command-line programs that run on the build machine. 10407# 10408if test x"$cross_compiling" = xno; then 10409 BUILD_CC=$CC 10410 BUILD_CFLAGS=$CFLAGS 10411else 10412 if test "${BUILD_CC+set}" != set; then 10413 for ac_prog in gcc cc cl 10414do 10415 # Extract the first word of "$ac_prog", so it can be a program name with args. 10416set dummy $ac_prog; ac_word=$2 10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10418$as_echo_n "checking for $ac_word... " >&6; } 10419if ${ac_cv_prog_BUILD_CC+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 if test -n "$BUILD_CC"; then 10423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10424else 10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10426for as_dir in $PATH 10427do 10428 IFS=$as_save_IFS 10429 test -z "$as_dir" && as_dir=. 10430 for ac_exec_ext in '' $ac_executable_extensions; do 10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10432 ac_cv_prog_BUILD_CC="$ac_prog" 10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10434 break 2 10435 fi 10436done 10437 done 10438IFS=$as_save_IFS 10439 10440fi 10441fi 10442BUILD_CC=$ac_cv_prog_BUILD_CC 10443if test -n "$BUILD_CC"; then 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 10445$as_echo "$BUILD_CC" >&6; } 10446else 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10448$as_echo "no" >&6; } 10449fi 10450 10451 10452 test -n "$BUILD_CC" && break 10453done 10454 10455 fi 10456 if test "${BUILD_CFLAGS+set}" != set; then 10457 BUILD_CFLAGS="-g" 10458 fi 10459fi 10460 10461 10462########## 10463# Do we want to support multithreaded use of sqlite 10464# 10465# Check whether --enable-threadsafe was given. 10466if test "${enable_threadsafe+set}" = set; then : 10467 enableval=$enable_threadsafe; 10468fi 10469 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5 10471$as_echo_n "checking whether to support threadsafe operation... " >&6; } 10472if test "$enable_threadsafe" = "no"; then 10473 SQLITE_THREADSAFE=0 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10475$as_echo "no" >&6; } 10476else 10477 SQLITE_THREADSAFE=1 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10479$as_echo "yes" >&6; } 10480fi 10481 10482 10483if test "$SQLITE_THREADSAFE" = "1"; then 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 10485$as_echo_n "checking for library containing pthread_create... " >&6; } 10486if ${ac_cv_search_pthread_create+:} false; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 ac_func_search_save_LIBS=$LIBS 10490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492 10493/* Override any GCC internal prototype to avoid an error. 10494 Use char because int might match the return type of a GCC 10495 builtin and then its argument prototype would still apply. */ 10496#ifdef __cplusplus 10497extern "C" 10498#endif 10499char pthread_create (); 10500int 10501main () 10502{ 10503return pthread_create (); 10504 ; 10505 return 0; 10506} 10507_ACEOF 10508for ac_lib in '' pthread; do 10509 if test -z "$ac_lib"; then 10510 ac_res="none required" 10511 else 10512 ac_res=-l$ac_lib 10513 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10514 fi 10515 if ac_fn_c_try_link "$LINENO"; then : 10516 ac_cv_search_pthread_create=$ac_res 10517fi 10518rm -f core conftest.err conftest.$ac_objext \ 10519 conftest$ac_exeext 10520 if ${ac_cv_search_pthread_create+:} false; then : 10521 break 10522fi 10523done 10524if ${ac_cv_search_pthread_create+:} false; then : 10525 10526else 10527 ac_cv_search_pthread_create=no 10528fi 10529rm conftest.$ac_ext 10530LIBS=$ac_func_search_save_LIBS 10531fi 10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 10533$as_echo "$ac_cv_search_pthread_create" >&6; } 10534ac_res=$ac_cv_search_pthread_create 10535if test "$ac_res" != no; then : 10536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10537 10538fi 10539 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5 10541$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; } 10542if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10543 $as_echo_n "(cached) " >&6 10544else 10545 ac_func_search_save_LIBS=$LIBS 10546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547/* end confdefs.h. */ 10548 10549/* Override any GCC internal prototype to avoid an error. 10550 Use char because int might match the return type of a GCC 10551 builtin and then its argument prototype would still apply. */ 10552#ifdef __cplusplus 10553extern "C" 10554#endif 10555char pthread_mutexattr_init (); 10556int 10557main () 10558{ 10559return pthread_mutexattr_init (); 10560 ; 10561 return 0; 10562} 10563_ACEOF 10564for ac_lib in '' pthread; do 10565 if test -z "$ac_lib"; then 10566 ac_res="none required" 10567 else 10568 ac_res=-l$ac_lib 10569 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10570 fi 10571 if ac_fn_c_try_link "$LINENO"; then : 10572 ac_cv_search_pthread_mutexattr_init=$ac_res 10573fi 10574rm -f core conftest.err conftest.$ac_objext \ 10575 conftest$ac_exeext 10576 if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10577 break 10578fi 10579done 10580if ${ac_cv_search_pthread_mutexattr_init+:} false; then : 10581 10582else 10583 ac_cv_search_pthread_mutexattr_init=no 10584fi 10585rm conftest.$ac_ext 10586LIBS=$ac_func_search_save_LIBS 10587fi 10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5 10589$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; } 10590ac_res=$ac_cv_search_pthread_mutexattr_init 10591if test "$ac_res" != no; then : 10592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10593 10594fi 10595 10596fi 10597 10598########## 10599# Do we want to support release 10600# 10601# Check whether --enable-releasemode was given. 10602if test "${enable_releasemode+set}" = set; then : 10603 enableval=$enable_releasemode; 10604else 10605 enable_releasemode=no 10606fi 10607 10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5 10609$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } 10610if test "$enable_releasemode" = "no"; then 10611 ALLOWRELEASE="" 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10613$as_echo "no" >&6; } 10614else 10615 ALLOWRELEASE="-release `cat $srcdir/VERSION`" 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10617$as_echo "yes" >&6; } 10618fi 10619 10620 10621########## 10622# Do we want temporary databases in memory 10623# 10624# Check whether --enable-tempstore was given. 10625if test "${enable_tempstore+set}" = set; then : 10626 enableval=$enable_tempstore; 10627else 10628 enable_tempstore=no 10629fi 10630 10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5 10632$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } 10633case "$enable_tempstore" in 10634 never ) 10635 TEMP_STORE=0 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5 10637$as_echo "never" >&6; } 10638 ;; 10639 no ) 10640 TEMP_STORE=1 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10642$as_echo "no" >&6; } 10643 ;; 10644 yes ) 10645 TEMP_STORE=2 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10647$as_echo "yes" >&6; } 10648 ;; 10649 always ) 10650 TEMP_STORE=3 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5 10652$as_echo "always" >&6; } 10653 ;; 10654 * ) 10655 TEMP_STORE=1 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10657$as_echo "no" >&6; } 10658 ;; 10659esac 10660 10661 10662 10663########### 10664# Lots of things are different if we are compiling for Windows using 10665# the CYGWIN environment. So check for that special case and handle 10666# things accordingly. 10667# 10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5 10669$as_echo_n "checking if executables have the .exe suffix... " >&6; } 10670if test "$config_BUILD_EXEEXT" = ".exe"; then 10671 CYGWIN=yes 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10673$as_echo "yes" >&6; } 10674else 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 10676$as_echo "unknown" >&6; } 10677fi 10678if test "$CYGWIN" != "yes"; then 10679 10680case $host_os in 10681 *cygwin* ) CYGWIN=yes;; 10682 * ) CYGWIN=no;; 10683esac 10684 10685fi 10686if test "$CYGWIN" = "yes"; then 10687 BUILD_EXEEXT=.exe 10688else 10689 BUILD_EXEEXT=$EXEEXT 10690fi 10691if test x"$cross_compiling" = xno; then 10692 TARGET_EXEEXT=$BUILD_EXEEXT 10693else 10694 TARGET_EXEEXT=$config_TARGET_EXEEXT 10695fi 10696if test "$TARGET_EXEEXT" = ".exe"; then 10697 SQLITE_OS_UNIX=0 10698 SQLITE_OS_WIN=1 10699 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" 10700else 10701 SQLITE_OS_UNIX=1 10702 SQLITE_OS_WIN=0 10703 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" 10704fi 10705 10706 10707 10708 10709 10710 10711########## 10712# Figure out all the parameters needed to compile against Tcl. 10713# 10714# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG 10715# macros in the in the tcl.m4 file of the standard TCL distribution. 10716# Those macros could not be used directly since we have to make some 10717# minor changes to accomodate systems that do not have TCL installed. 10718# 10719# Check whether --enable-tcl was given. 10720if test "${enable_tcl+set}" = set; then : 10721 enableval=$enable_tcl; use_tcl=$enableval 10722else 10723 use_tcl=yes 10724fi 10725 10726if test "${use_tcl}" = "yes" ; then 10727 10728# Check whether --with-tcl was given. 10729if test "${with_tcl+set}" = set; then : 10730 withval=$with_tcl; with_tclconfig=${withval} 10731fi 10732 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 10734$as_echo_n "checking for Tcl configuration... " >&6; } 10735 if ${ac_cv_c_tclconfig+:} false; then : 10736 $as_echo_n "(cached) " >&6 10737else 10738 10739 # First check to see if --with-tcl was specified. 10740 if test x"${with_tclconfig}" != x ; then 10741 if test -f "${with_tclconfig}/tclConfig.sh" ; then 10742 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 10743 else 10744 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 10745 fi 10746 fi 10747 10748 # Start autosearch by asking tclsh 10749 if test x"${ac_cv_c_tclconfig}" = x ; then 10750 if test x"$cross_compiling" = xno; then 10751 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` 10752 do 10753 if test -f "$i/tclConfig.sh" ; then 10754 ac_cv_c_tclconfig="$i" 10755 break 10756 fi 10757 done 10758 fi 10759 fi 10760 10761 # On ubuntu 14.10, $auto_path on tclsh is not quite correct. 10762 # So try again after applying corrections. 10763 if test x"${ac_cv_c_tclconfig}" = x ; then 10764 if test x"$cross_compiling" = xno; then 10765 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'` 10766 do 10767 if test -f "$i/tclConfig.sh" ; then 10768 ac_cv_c_tclconfig="$i" 10769 break 10770 fi 10771 done 10772 fi 10773 fi 10774 10775 # Recent versions of Xcode on Macs hid the tclConfig.sh file 10776 # in a strange place. 10777 if test x"${ac_cv_c_tclconfig}" = x ; then 10778 if test x"$cross_compiling" = xno; then 10779 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib 10780 do 10781 if test -f "$i/tclConfig.sh" ; then 10782 ac_cv_c_tclconfig="$i" 10783 break 10784 fi 10785 done 10786 fi 10787 fi 10788 10789 # then check for a private Tcl installation 10790 if test x"${ac_cv_c_tclconfig}" = x ; then 10791 for i in \ 10792 ../tcl \ 10793 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10794 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 10795 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 10796 ../../tcl \ 10797 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10798 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 10799 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 10800 ../../../tcl \ 10801 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10802 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 10803 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` 10804 do 10805 if test -f "$i/unix/tclConfig.sh" ; then 10806 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10807 break 10808 fi 10809 done 10810 fi 10811 10812 # check in a few common install locations 10813 if test x"${ac_cv_c_tclconfig}" = x ; then 10814 for i in \ 10815 `ls -d ${libdir} 2>/dev/null` \ 10816 `ls -d /usr/local/lib 2>/dev/null` \ 10817 `ls -d /usr/contrib/lib 2>/dev/null` \ 10818 `ls -d /usr/lib 2>/dev/null` 10819 do 10820 if test -f "$i/tclConfig.sh" ; then 10821 ac_cv_c_tclconfig=`(cd $i; pwd)` 10822 break 10823 fi 10824 done 10825 fi 10826 10827 # check in a few other private locations 10828 if test x"${ac_cv_c_tclconfig}" = x ; then 10829 for i in \ 10830 ${srcdir}/../tcl \ 10831 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 10832 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 10833 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` 10834 do 10835 if test -f "$i/unix/tclConfig.sh" ; then 10836 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 10837 break 10838 fi 10839 done 10840 fi 10841 10842fi 10843 10844 10845 if test x"${ac_cv_c_tclconfig}" = x ; then 10846 use_tcl=no 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 10848$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 10850$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 10852$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} 10853 else 10854 TCL_BIN_DIR=${ac_cv_c_tclconfig} 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 10856$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } 10857 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 10859$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } 10860 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 10862$as_echo "loading" >&6; } 10863 . $TCL_BIN_DIR/tclConfig.sh 10864 else 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 10866$as_echo "file not found" >&6; } 10867 fi 10868 10869 # 10870 # If the TCL_BIN_DIR is the build directory (not the install directory), 10871 # then set the common variable name to the value of the build variables. 10872 # For example, the variable TCL_LIB_SPEC will be set to the value 10873 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 10874 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 10875 # installed and uninstalled version of Tcl. 10876 # 10877 10878 if test -f $TCL_BIN_DIR/Makefile ; then 10879 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 10880 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 10881 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 10882 fi 10883 10884 # 10885 # eval is required to do the TCL_DBGX substitution 10886 # 10887 10888 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 10889 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 10890 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 10891 10892 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 10893 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 10894 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 fi 10910fi 10911if test "${use_tcl}" = "no" ; then 10912 HAVE_TCL="" 10913else 10914 HAVE_TCL=1 10915fi 10916 10917 10918########## 10919# Figure out what C libraries are required to compile programs 10920# that use "readline()" library. 10921# 10922TARGET_READLINE_LIBS="" 10923TARGET_READLINE_INC="" 10924TARGET_HAVE_READLINE=0 10925TARGET_HAVE_EDITLINE=0 10926# Check whether --enable-editline was given. 10927if test "${enable_editline+set}" = set; then : 10928 enableval=$enable_editline; with_editline=$enableval 10929else 10930 with_editline=auto 10931fi 10932 10933# Check whether --enable-readline was given. 10934if test "${enable_readline+set}" = set; then : 10935 enableval=$enable_readline; with_readline=$enableval 10936else 10937 with_readline=auto 10938fi 10939 10940 10941if test x"$with_editline" != xno; then 10942 sLIBS=$LIBS 10943 LIBS="" 10944 TARGET_HAVE_EDITLINE=1 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 10946$as_echo_n "checking for library containing readline... " >&6; } 10947if ${ac_cv_search_readline+:} false; then : 10948 $as_echo_n "(cached) " >&6 10949else 10950 ac_func_search_save_LIBS=$LIBS 10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952/* end confdefs.h. */ 10953 10954/* Override any GCC internal prototype to avoid an error. 10955 Use char because int might match the return type of a GCC 10956 builtin and then its argument prototype would still apply. */ 10957#ifdef __cplusplus 10958extern "C" 10959#endif 10960char readline (); 10961int 10962main () 10963{ 10964return readline (); 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969for ac_lib in '' edit; do 10970 if test -z "$ac_lib"; then 10971 ac_res="none required" 10972 else 10973 ac_res=-l$ac_lib 10974 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10975 fi 10976 if ac_fn_c_try_link "$LINENO"; then : 10977 ac_cv_search_readline=$ac_res 10978fi 10979rm -f core conftest.err conftest.$ac_objext \ 10980 conftest$ac_exeext 10981 if ${ac_cv_search_readline+:} false; then : 10982 break 10983fi 10984done 10985if ${ac_cv_search_readline+:} false; then : 10986 10987else 10988 ac_cv_search_readline=no 10989fi 10990rm conftest.$ac_ext 10991LIBS=$ac_func_search_save_LIBS 10992fi 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 10994$as_echo "$ac_cv_search_readline" >&6; } 10995ac_res=$ac_cv_search_readline 10996if test "$ac_res" != no; then : 10997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10998 with_readline=no 10999else 11000 TARGET_HAVE_EDITLINE=0 11001fi 11002 11003 TARGET_READLINE_LIBS=$LIBS 11004 LIBS=$sLIBS 11005fi 11006if test x"$with_readline" != xno; then 11007 found="yes" 11008 11009 11010# Check whether --with-readline-lib was given. 11011if test "${with_readline_lib+set}" = set; then : 11012 withval=$with_readline_lib; with_readline_lib=$withval 11013else 11014 with_readline_lib="auto" 11015fi 11016 11017 if test "x$with_readline_lib" = xauto; then 11018 save_LIBS="$LIBS" 11019 LIBS="" 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 11021$as_echo_n "checking for library containing tgetent... " >&6; } 11022if ${ac_cv_search_tgetent+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024else 11025 ac_func_search_save_LIBS=$LIBS 11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11027/* end confdefs.h. */ 11028 11029/* Override any GCC internal prototype to avoid an error. 11030 Use char because int might match the return type of a GCC 11031 builtin and then its argument prototype would still apply. */ 11032#ifdef __cplusplus 11033extern "C" 11034#endif 11035char tgetent (); 11036int 11037main () 11038{ 11039return tgetent (); 11040 ; 11041 return 0; 11042} 11043_ACEOF 11044for ac_lib in '' readline ncurses curses termcap; do 11045 if test -z "$ac_lib"; then 11046 ac_res="none required" 11047 else 11048 ac_res=-l$ac_lib 11049 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11050 fi 11051 if ac_fn_c_try_link "$LINENO"; then : 11052 ac_cv_search_tgetent=$ac_res 11053fi 11054rm -f core conftest.err conftest.$ac_objext \ 11055 conftest$ac_exeext 11056 if ${ac_cv_search_tgetent+:} false; then : 11057 break 11058fi 11059done 11060if ${ac_cv_search_tgetent+:} false; then : 11061 11062else 11063 ac_cv_search_tgetent=no 11064fi 11065rm conftest.$ac_ext 11066LIBS=$ac_func_search_save_LIBS 11067fi 11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 11069$as_echo "$ac_cv_search_tgetent" >&6; } 11070ac_res=$ac_cv_search_tgetent 11071if test "$ac_res" != no; then : 11072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11073 term_LIBS="$LIBS" 11074else 11075 term_LIBS="" 11076fi 11077 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 11079$as_echo_n "checking for readline in -lreadline... " >&6; } 11080if ${ac_cv_lib_readline_readline+:} false; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 ac_check_lib_save_LIBS=$LIBS 11084LIBS="-lreadline $LIBS" 11085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087 11088/* Override any GCC internal prototype to avoid an error. 11089 Use char because int might match the return type of a GCC 11090 builtin and then its argument prototype would still apply. */ 11091#ifdef __cplusplus 11092extern "C" 11093#endif 11094char readline (); 11095int 11096main () 11097{ 11098return readline (); 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103if ac_fn_c_try_link "$LINENO"; then : 11104 ac_cv_lib_readline_readline=yes 11105else 11106 ac_cv_lib_readline_readline=no 11107fi 11108rm -f core conftest.err conftest.$ac_objext \ 11109 conftest$ac_exeext conftest.$ac_ext 11110LIBS=$ac_check_lib_save_LIBS 11111fi 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 11113$as_echo "$ac_cv_lib_readline_readline" >&6; } 11114if test "x$ac_cv_lib_readline_readline" = xyes; then : 11115 TARGET_READLINE_LIBS="-lreadline" 11116else 11117 found="no" 11118fi 11119 11120 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 11121 LIBS="$save_LIBS" 11122 else 11123 TARGET_READLINE_LIBS="$with_readline_lib" 11124 fi 11125 11126 11127# Check whether --with-readline-inc was given. 11128if test "${with_readline_inc+set}" = set; then : 11129 withval=$with_readline_inc; with_readline_inc=$withval 11130else 11131 with_readline_inc="auto" 11132fi 11133 11134 if test "x$with_readline_inc" = xauto; then 11135 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 11136if test "x$ac_cv_header_readline_h" = xyes; then : 11137 found="yes" 11138else 11139 11140 found="no" 11141 if test "$cross_compiling" != yes; then 11142 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do 11143 for subdir in include include/readline; do 11144 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` 11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5 11146$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 11147if eval \${$as_ac_File+:} false; then : 11148 $as_echo_n "(cached) " >&6 11149else 11150 test "$cross_compiling" = yes && 11151 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11152if test -r "$dir/$subdir/readline.h"; then 11153 eval "$as_ac_File=yes" 11154else 11155 eval "$as_ac_File=no" 11156fi 11157fi 11158eval ac_res=\$$as_ac_File 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11160$as_echo "$ac_res" >&6; } 11161if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 11162 found=yes 11163fi 11164 11165 if test "$found" = "yes"; then 11166 TARGET_READLINE_INC="-I$dir/$subdir" 11167 break 11168 fi 11169 done 11170 test "$found" = "yes" && break 11171 done 11172 fi 11173 11174fi 11175 11176 11177 else 11178 TARGET_READLINE_INC="$with_readline_inc" 11179 fi 11180 11181 if test x"$found" = xno; then 11182 TARGET_READLINE_LIBS="" 11183 TARGET_READLINE_INC="" 11184 TARGET_HAVE_READLINE=0 11185 else 11186 TARGET_HAVE_READLINE=1 11187 fi 11188fi 11189 11190 11191 11192 11193 11194 11195########## 11196# Figure out what C libraries are required to compile programs 11197# that use "fdatasync()" function. 11198# 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 11200$as_echo_n "checking for library containing fdatasync... " >&6; } 11201if ${ac_cv_search_fdatasync+:} false; then : 11202 $as_echo_n "(cached) " >&6 11203else 11204 ac_func_search_save_LIBS=$LIBS 11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207 11208/* Override any GCC internal prototype to avoid an error. 11209 Use char because int might match the return type of a GCC 11210 builtin and then its argument prototype would still apply. */ 11211#ifdef __cplusplus 11212extern "C" 11213#endif 11214char fdatasync (); 11215int 11216main () 11217{ 11218return fdatasync (); 11219 ; 11220 return 0; 11221} 11222_ACEOF 11223for ac_lib in '' rt; do 11224 if test -z "$ac_lib"; then 11225 ac_res="none required" 11226 else 11227 ac_res=-l$ac_lib 11228 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11229 fi 11230 if ac_fn_c_try_link "$LINENO"; then : 11231 ac_cv_search_fdatasync=$ac_res 11232fi 11233rm -f core conftest.err conftest.$ac_objext \ 11234 conftest$ac_exeext 11235 if ${ac_cv_search_fdatasync+:} false; then : 11236 break 11237fi 11238done 11239if ${ac_cv_search_fdatasync+:} false; then : 11240 11241else 11242 ac_cv_search_fdatasync=no 11243fi 11244rm conftest.$ac_ext 11245LIBS=$ac_func_search_save_LIBS 11246fi 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 11248$as_echo "$ac_cv_search_fdatasync" >&6; } 11249ac_res=$ac_cv_search_fdatasync 11250if test "$ac_res" != no; then : 11251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11252 11253fi 11254 11255 11256######### 11257# check for debug enabled 11258# Check whether --enable-debug was given. 11259if test "${enable_debug+set}" = set; then : 11260 enableval=$enable_debug; 11261fi 11262 11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5 11264$as_echo_n "checking build type... " >&6; } 11265if test "${enable_debug}" = "yes" ; then 11266 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0" 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 11268$as_echo "debug" >&6; } 11269else 11270 TARGET_DEBUG="-DNDEBUG" 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5 11272$as_echo "release" >&6; } 11273fi 11274 11275 11276######### 11277# See whether we should use the amalgamation to build 11278# Check whether --enable-amalgamation was given. 11279if test "${enable_amalgamation+set}" = set; then : 11280 enableval=$enable_amalgamation; 11281fi 11282 11283if test "${enable_amalgamation}" = "no" ; then 11284 USE_AMALGAMATION=0 11285fi 11286 11287######## 11288# See whether --disable 11289if test "${amalgamation_line_macros+set}" = set; then : 11290 enableval=$amalgamation_line_macros; 11291fi 11292 11293if test "${amalgamation_line_macros}" = "yes" ; then 11294 AMALGAMATION_LINE_MACROS=--linemacros=1 11295fi 11296if test "${amalgamation_line_macros}" = "no" ; then 11297 AMALGAMATION_LINE_MACROS=--linemacros=0 11298fi 11299 11300 11301######### 11302# Look for zlib. Only needed by extensions and by the sqlite3.exe shell 11303for ac_header in zlib.h 11304do : 11305 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 11306if test "x$ac_cv_header_zlib_h" = xyes; then : 11307 cat >>confdefs.h <<_ACEOF 11308#define HAVE_ZLIB_H 1 11309_ACEOF 11310 11311fi 11312 11313done 11314 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 11316$as_echo_n "checking for library containing deflate... " >&6; } 11317if ${ac_cv_search_deflate+:} false; then : 11318 $as_echo_n "(cached) " >&6 11319else 11320 ac_func_search_save_LIBS=$LIBS 11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323 11324/* Override any GCC internal prototype to avoid an error. 11325 Use char because int might match the return type of a GCC 11326 builtin and then its argument prototype would still apply. */ 11327#ifdef __cplusplus 11328extern "C" 11329#endif 11330char deflate (); 11331int 11332main () 11333{ 11334return deflate (); 11335 ; 11336 return 0; 11337} 11338_ACEOF 11339for ac_lib in '' z; do 11340 if test -z "$ac_lib"; then 11341 ac_res="none required" 11342 else 11343 ac_res=-l$ac_lib 11344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11345 fi 11346 if ac_fn_c_try_link "$LINENO"; then : 11347 ac_cv_search_deflate=$ac_res 11348fi 11349rm -f core conftest.err conftest.$ac_objext \ 11350 conftest$ac_exeext 11351 if ${ac_cv_search_deflate+:} false; then : 11352 break 11353fi 11354done 11355if ${ac_cv_search_deflate+:} false; then : 11356 11357else 11358 ac_cv_search_deflate=no 11359fi 11360rm conftest.$ac_ext 11361LIBS=$ac_func_search_save_LIBS 11362fi 11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 11364$as_echo "$ac_cv_search_deflate" >&6; } 11365ac_res=$ac_cv_search_deflate 11366if test "$ac_res" != no; then : 11367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11368 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1" 11369else 11370 HAVE_ZLIB="" 11371fi 11372 11373 11374 11375######### 11376# See whether we should allow loadable extensions 11377# Check whether --enable-load-extension was given. 11378if test "${enable_load_extension+set}" = set; then : 11379 enableval=$enable_load_extension; 11380else 11381 enable_load_extension=yes 11382fi 11383 11384if test "${enable_load_extension}" = "yes" ; then 11385 OPT_FEATURE_FLAGS="" 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11387$as_echo_n "checking for library containing dlopen... " >&6; } 11388if ${ac_cv_search_dlopen+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390else 11391 ac_func_search_save_LIBS=$LIBS 11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11393/* end confdefs.h. */ 11394 11395/* Override any GCC internal prototype to avoid an error. 11396 Use char because int might match the return type of a GCC 11397 builtin and then its argument prototype would still apply. */ 11398#ifdef __cplusplus 11399extern "C" 11400#endif 11401char dlopen (); 11402int 11403main () 11404{ 11405return dlopen (); 11406 ; 11407 return 0; 11408} 11409_ACEOF 11410for ac_lib in '' dl; do 11411 if test -z "$ac_lib"; then 11412 ac_res="none required" 11413 else 11414 ac_res=-l$ac_lib 11415 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11416 fi 11417 if ac_fn_c_try_link "$LINENO"; then : 11418 ac_cv_search_dlopen=$ac_res 11419fi 11420rm -f core conftest.err conftest.$ac_objext \ 11421 conftest$ac_exeext 11422 if ${ac_cv_search_dlopen+:} false; then : 11423 break 11424fi 11425done 11426if ${ac_cv_search_dlopen+:} false; then : 11427 11428else 11429 ac_cv_search_dlopen=no 11430fi 11431rm conftest.$ac_ext 11432LIBS=$ac_func_search_save_LIBS 11433fi 11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11435$as_echo "$ac_cv_search_dlopen" >&6; } 11436ac_res=$ac_cv_search_dlopen 11437if test "$ac_res" != no; then : 11438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11439 11440fi 11441 11442else 11443 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" 11444fi 11445 11446########## 11447# Do we want to support math functions 11448# 11449# Check whether --enable-math was given. 11450if test "${enable_math+set}" = set; then : 11451 enableval=$enable_math; 11452fi 11453 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5 11455$as_echo_n "checking whether to support math functions... " >&6; } 11456if test "$enable_math" = "no"; then 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11458$as_echo "no" >&6; } 11459else 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11461$as_echo "yes" >&6; } 11462 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS" 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5 11464$as_echo_n "checking for library containing ceil... " >&6; } 11465if ${ac_cv_search_ceil+:} false; then : 11466 $as_echo_n "(cached) " >&6 11467else 11468 ac_func_search_save_LIBS=$LIBS 11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472/* Override any GCC internal prototype to avoid an error. 11473 Use char because int might match the return type of a GCC 11474 builtin and then its argument prototype would still apply. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478char ceil (); 11479int 11480main () 11481{ 11482return ceil (); 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487for ac_lib in '' m; do 11488 if test -z "$ac_lib"; then 11489 ac_res="none required" 11490 else 11491 ac_res=-l$ac_lib 11492 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11493 fi 11494 if ac_fn_c_try_link "$LINENO"; then : 11495 ac_cv_search_ceil=$ac_res 11496fi 11497rm -f core conftest.err conftest.$ac_objext \ 11498 conftest$ac_exeext 11499 if ${ac_cv_search_ceil+:} false; then : 11500 break 11501fi 11502done 11503if ${ac_cv_search_ceil+:} false; then : 11504 11505else 11506 ac_cv_search_ceil=no 11507fi 11508rm conftest.$ac_ext 11509LIBS=$ac_func_search_save_LIBS 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5 11512$as_echo "$ac_cv_search_ceil" >&6; } 11513ac_res=$ac_cv_search_ceil 11514if test "$ac_res" != no; then : 11515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11516 11517fi 11518 11519fi 11520 11521 11522######## 11523# The --enable-all argument is short-hand to enable 11524# multiple extensions. 11525# Check whether --enable-all was given. 11526if test "${enable_all+set}" = set; then : 11527 enableval=$enable_all; 11528fi 11529 11530 11531########## 11532# Do we want to support memsys3 and/or memsys5 11533# 11534# Check whether --enable-memsys5 was given. 11535if test "${enable_memsys5+set}" = set; then : 11536 enableval=$enable_memsys5; 11537fi 11538 11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5 11540$as_echo_n "checking whether to support MEMSYS5... " >&6; } 11541if test "${enable_memsys5}" = "yes"; then 11542 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5" 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11544$as_echo "yes" >&6; } 11545else 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11547$as_echo "no" >&6; } 11548fi 11549# Check whether --enable-memsys3 was given. 11550if test "${enable_memsys3+set}" = set; then : 11551 enableval=$enable_memsys3; 11552fi 11553 11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5 11555$as_echo_n "checking whether to support MEMSYS3... " >&6; } 11556if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then 11557 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3" 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11559$as_echo "yes" >&6; } 11560else 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11562$as_echo "no" >&6; } 11563fi 11564 11565######### 11566# See whether we should enable Full Text Search extensions 11567# Check whether --enable-fts3 was given. 11568if test "${enable_fts3+set}" = set; then : 11569 enableval=$enable_fts3; 11570fi 11571 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5 11573$as_echo_n "checking whether to support FTS3... " >&6; } 11574if test "${enable_fts3}" = "yes" ; then 11575 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3" 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11577$as_echo "yes" >&6; } 11578else 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11580$as_echo "no" >&6; } 11581fi 11582# Check whether --enable-fts4 was given. 11583if test "${enable_fts4+set}" = set; then : 11584 enableval=$enable_fts4; 11585fi 11586 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5 11588$as_echo_n "checking whether to support FTS4... " >&6; } 11589if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11591$as_echo "yes" >&6; } 11592 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4" 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11594$as_echo_n "checking for library containing log... " >&6; } 11595if ${ac_cv_search_log+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597else 11598 ac_func_search_save_LIBS=$LIBS 11599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11600/* end confdefs.h. */ 11601 11602/* Override any GCC internal prototype to avoid an error. 11603 Use char because int might match the return type of a GCC 11604 builtin and then its argument prototype would still apply. */ 11605#ifdef __cplusplus 11606extern "C" 11607#endif 11608char log (); 11609int 11610main () 11611{ 11612return log (); 11613 ; 11614 return 0; 11615} 11616_ACEOF 11617for ac_lib in '' m; do 11618 if test -z "$ac_lib"; then 11619 ac_res="none required" 11620 else 11621 ac_res=-l$ac_lib 11622 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11623 fi 11624 if ac_fn_c_try_link "$LINENO"; then : 11625 ac_cv_search_log=$ac_res 11626fi 11627rm -f core conftest.err conftest.$ac_objext \ 11628 conftest$ac_exeext 11629 if ${ac_cv_search_log+:} false; then : 11630 break 11631fi 11632done 11633if ${ac_cv_search_log+:} false; then : 11634 11635else 11636 ac_cv_search_log=no 11637fi 11638rm conftest.$ac_ext 11639LIBS=$ac_func_search_save_LIBS 11640fi 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11642$as_echo "$ac_cv_search_log" >&6; } 11643ac_res=$ac_cv_search_log 11644if test "$ac_res" != no; then : 11645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11646 11647fi 11648 11649else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651$as_echo "no" >&6; } 11652fi 11653# Check whether --enable-fts5 was given. 11654if test "${enable_fts5+set}" = set; then : 11655 enableval=$enable_fts5; 11656fi 11657 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5 11659$as_echo_n "checking whether to support FTS5... " >&6; } 11660if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11662$as_echo "yes" >&6; } 11663 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5" 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 11665$as_echo_n "checking for library containing log... " >&6; } 11666if ${ac_cv_search_log+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 ac_func_search_save_LIBS=$LIBS 11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671/* end confdefs.h. */ 11672 11673/* Override any GCC internal prototype to avoid an error. 11674 Use char because int might match the return type of a GCC 11675 builtin and then its argument prototype would still apply. */ 11676#ifdef __cplusplus 11677extern "C" 11678#endif 11679char log (); 11680int 11681main () 11682{ 11683return log (); 11684 ; 11685 return 0; 11686} 11687_ACEOF 11688for ac_lib in '' m; do 11689 if test -z "$ac_lib"; then 11690 ac_res="none required" 11691 else 11692 ac_res=-l$ac_lib 11693 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11694 fi 11695 if ac_fn_c_try_link "$LINENO"; then : 11696 ac_cv_search_log=$ac_res 11697fi 11698rm -f core conftest.err conftest.$ac_objext \ 11699 conftest$ac_exeext 11700 if ${ac_cv_search_log+:} false; then : 11701 break 11702fi 11703done 11704if ${ac_cv_search_log+:} false; then : 11705 11706else 11707 ac_cv_search_log=no 11708fi 11709rm conftest.$ac_ext 11710LIBS=$ac_func_search_save_LIBS 11711fi 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 11713$as_echo "$ac_cv_search_log" >&6; } 11714ac_res=$ac_cv_search_log 11715if test "$ac_res" != no; then : 11716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11717 11718fi 11719 11720else 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11722$as_echo "no" >&6; } 11723fi 11724 11725######### 11726# See whether we should enable JSON1 11727# Check whether --enable-json1 was given. 11728if test "${enable_json1+set}" = set; then : 11729 enableval=$enable_json1; 11730fi 11731 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON" >&5 11733$as_echo_n "checking whether to support JSON... " >&6; } 11734if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then 11735 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1" 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11737$as_echo "yes" >&6; } 11738else 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11740$as_echo "no" >&6; } 11741fi 11742 11743######### 11744# See whether we should enable the LIMIT clause on UPDATE and DELETE 11745# statements. 11746# Check whether --enable-update-limit was given. 11747if test "${enable_update_limit+set}" = set; then : 11748 enableval=$enable_update_limit; 11749fi 11750 11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5 11752$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; } 11753if test "${enable_update_limit}" = "yes" ; then 11754 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT" 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11756$as_echo "yes" >&6; } 11757else 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11759$as_echo "no" >&6; } 11760fi 11761 11762######### 11763# See whether we should enable GEOPOLY 11764# Check whether --enable-geopoly was given. 11765if test "${enable_geopoly+set}" = set; then : 11766 enableval=$enable_geopoly; enable_geopoly=yes 11767else 11768 enable_geopoly=no 11769fi 11770 11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5 11772$as_echo_n "checking whether to support GEOPOLY... " >&6; } 11773if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then 11774 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY" 11775 enable_rtree=yes 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11777$as_echo "yes" >&6; } 11778else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11780$as_echo "no" >&6; } 11781fi 11782 11783######### 11784# See whether we should enable RTREE 11785# Check whether --enable-rtree was given. 11786if test "${enable_rtree+set}" = set; then : 11787 enableval=$enable_rtree; 11788fi 11789 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5 11791$as_echo_n "checking whether to support RTREE... " >&6; } 11792if test "${enable_rtree}" = "yes" ; then 11793 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE" 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11795$as_echo "yes" >&6; } 11796else 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11798$as_echo "no" >&6; } 11799fi 11800 11801######### 11802# See whether we should enable the SESSION extension 11803# Check whether --enable-session was given. 11804if test "${enable_session+set}" = set; then : 11805 enableval=$enable_session; 11806fi 11807 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5 11809$as_echo_n "checking whether to support SESSION... " >&6; } 11810if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then 11811 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION" 11812 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK" 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11814$as_echo "yes" >&6; } 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11817$as_echo "no" >&6; } 11818fi 11819 11820######### 11821# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter 11822for option in $CFLAGS $CPPFLAGS 11823do 11824 case $option in 11825 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11826 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; 11827 esac 11828done 11829 11830 11831 11832# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter 11833ac_temp_CFLAGS="" 11834for option in $CFLAGS 11835do 11836 case $option in 11837 -DSQLITE_OMIT*) ;; 11838 -DSQLITE_ENABLE*) ;; 11839 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; 11840 esac 11841done 11842CFLAGS=$ac_temp_CFLAGS 11843 11844 11845# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter 11846ac_temp_CPPFLAGS="" 11847for option in $CPPFLAGS 11848do 11849 case $option in 11850 -DSQLITE_OMIT*) ;; 11851 -DSQLITE_ENABLE*) ;; 11852 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; 11853 esac 11854done 11855CPPFLAGS=$ac_temp_CPPFLAGS 11856 11857 11858# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter 11859ac_temp_BUILD_CFLAGS="" 11860for option in $BUILD_CFLAGS 11861do 11862 case $option in 11863 -DSQLITE_OMIT*) ;; 11864 -DSQLITE_ENABLE*) ;; 11865 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; 11866 esac 11867done 11868BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS 11869 11870 11871######### 11872# See whether we should use GCOV 11873# Check whether --enable-gcov was given. 11874if test "${enable_gcov+set}" = set; then : 11875 enableval=$enable_gcov; 11876fi 11877 11878if test "${use_gcov}" = "yes" ; then 11879 USE_GCOV=1 11880else 11881 USE_GCOV=0 11882fi 11883 11884 11885 11886######### 11887# Output the config header 11888ac_config_headers="$ac_config_headers config.h" 11889 11890 11891######### 11892# Generate the output files. 11893# 11894 11895ac_config_files="$ac_config_files Makefile sqlite3.pc" 11896 11897cat >confcache <<\_ACEOF 11898# This file is a shell script that caches the results of configure 11899# tests run on this system so they can be shared between configure 11900# scripts and configure runs, see configure's option --config-cache. 11901# It is not useful on other systems. If it contains results you don't 11902# want to keep, you may remove or edit it. 11903# 11904# config.status only pays attention to the cache file if you give it 11905# the --recheck option to rerun configure. 11906# 11907# `ac_cv_env_foo' variables (set or unset) will be overridden when 11908# loading this file, other *unset* `ac_cv_foo' will be assigned the 11909# following values. 11910 11911_ACEOF 11912 11913# The following way of writing the cache mishandles newlines in values, 11914# but we know of no workaround that is simple, portable, and efficient. 11915# So, we kill variables containing newlines. 11916# Ultrix sh set writes to stderr and can't be redirected directly, 11917# and sets the high bit in the cache file unless we assign to the vars. 11918( 11919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11920 eval ac_val=\$$ac_var 11921 case $ac_val in #( 11922 *${as_nl}*) 11923 case $ac_var in #( 11924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11926 esac 11927 case $ac_var in #( 11928 _ | IFS | as_nl) ;; #( 11929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11930 *) { eval $ac_var=; unset $ac_var;} ;; 11931 esac ;; 11932 esac 11933 done 11934 11935 (set) 2>&1 | 11936 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11937 *${as_nl}ac_space=\ *) 11938 # `set' does not quote correctly, so add quotes: double-quote 11939 # substitution turns \\\\ into \\, and sed turns \\ into \. 11940 sed -n \ 11941 "s/'/'\\\\''/g; 11942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11943 ;; #( 11944 *) 11945 # `set' quotes correctly as required by POSIX, so do not add quotes. 11946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11947 ;; 11948 esac | 11949 sort 11950) | 11951 sed ' 11952 /^ac_cv_env_/b end 11953 t clear 11954 :clear 11955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11956 t end 11957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11958 :end' >>confcache 11959if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11960 if test -w "$cache_file"; then 11961 if test "x$cache_file" != "x/dev/null"; then 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11963$as_echo "$as_me: updating cache $cache_file" >&6;} 11964 if test ! -f "$cache_file" || test -h "$cache_file"; then 11965 cat confcache >"$cache_file" 11966 else 11967 case $cache_file in #( 11968 */* | ?:*) 11969 mv -f confcache "$cache_file"$$ && 11970 mv -f "$cache_file"$$ "$cache_file" ;; #( 11971 *) 11972 mv -f confcache "$cache_file" ;; 11973 esac 11974 fi 11975 fi 11976 else 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11978$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11979 fi 11980fi 11981rm -f confcache 11982 11983test "x$prefix" = xNONE && prefix=$ac_default_prefix 11984# Let make expand exec_prefix. 11985test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11986 11987DEFS=-DHAVE_CONFIG_H 11988 11989ac_libobjs= 11990ac_ltlibobjs= 11991U= 11992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11993 # 1. Remove the extension, and $U if already installed. 11994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11997 # will be set to the directory where LIBOBJS objects are built. 11998 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11999 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12000done 12001LIBOBJS=$ac_libobjs 12002 12003LTLIBOBJS=$ac_ltlibobjs 12004 12005 12006 12007: "${CONFIG_STATUS=./config.status}" 12008ac_write_fail=0 12009ac_clean_files_save=$ac_clean_files 12010ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12012$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12013as_write_fail=0 12014cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12015#! $SHELL 12016# Generated by $as_me. 12017# Run this file to recreate the current configuration. 12018# Compiler output produced by configure, useful for debugging 12019# configure, is in config.log if it exists. 12020 12021debug=false 12022ac_cs_recheck=false 12023ac_cs_silent=false 12024 12025SHELL=\${CONFIG_SHELL-$SHELL} 12026export SHELL 12027_ASEOF 12028cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12029## -------------------- ## 12030## M4sh Initialization. ## 12031## -------------------- ## 12032 12033# Be more Bourne compatible 12034DUALCASE=1; export DUALCASE # for MKS sh 12035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12036 emulate sh 12037 NULLCMD=: 12038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12039 # is contrary to our usage. Disable this feature. 12040 alias -g '${1+"$@"}'='"$@"' 12041 setopt NO_GLOB_SUBST 12042else 12043 case `(set -o) 2>/dev/null` in #( 12044 *posix*) : 12045 set -o posix ;; #( 12046 *) : 12047 ;; 12048esac 12049fi 12050 12051 12052as_nl=' 12053' 12054export as_nl 12055# Printing a long string crashes Solaris 7 /usr/bin/printf. 12056as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12057as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12059# Prefer a ksh shell builtin over an external printf program on Solaris, 12060# but without wasting forks for bash or zsh. 12061if test -z "$BASH_VERSION$ZSH_VERSION" \ 12062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12063 as_echo='print -r --' 12064 as_echo_n='print -rn --' 12065elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12066 as_echo='printf %s\n' 12067 as_echo_n='printf %s' 12068else 12069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12071 as_echo_n='/usr/ucb/echo -n' 12072 else 12073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12074 as_echo_n_body='eval 12075 arg=$1; 12076 case $arg in #( 12077 *"$as_nl"*) 12078 expr "X$arg" : "X\\(.*\\)$as_nl"; 12079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12080 esac; 12081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12082 ' 12083 export as_echo_n_body 12084 as_echo_n='sh -c $as_echo_n_body as_echo' 12085 fi 12086 export as_echo_body 12087 as_echo='sh -c $as_echo_body as_echo' 12088fi 12089 12090# The user is always right. 12091if test "${PATH_SEPARATOR+set}" != set; then 12092 PATH_SEPARATOR=: 12093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12095 PATH_SEPARATOR=';' 12096 } 12097fi 12098 12099 12100# IFS 12101# We need space, tab and new line, in precisely that order. Quoting is 12102# there to prevent editors from complaining about space-tab. 12103# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12104# splitting by setting IFS to empty value.) 12105IFS=" "" $as_nl" 12106 12107# Find who we are. Look in the path if we contain no directory separator. 12108as_myself= 12109case $0 in #(( 12110 *[\\/]* ) as_myself=$0 ;; 12111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12112for as_dir in $PATH 12113do 12114 IFS=$as_save_IFS 12115 test -z "$as_dir" && as_dir=. 12116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12117 done 12118IFS=$as_save_IFS 12119 12120 ;; 12121esac 12122# We did not find ourselves, most probably we were run as `sh COMMAND' 12123# in which case we are not to be found in the path. 12124if test "x$as_myself" = x; then 12125 as_myself=$0 12126fi 12127if test ! -f "$as_myself"; then 12128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12129 exit 1 12130fi 12131 12132# Unset variables that we do not need and which cause bugs (e.g. in 12133# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12134# suppresses any "Segmentation fault" message there. '((' could 12135# trigger a bug in pdksh 5.2.14. 12136for as_var in BASH_ENV ENV MAIL MAILPATH 12137do eval test x\${$as_var+set} = xset \ 12138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12139done 12140PS1='$ ' 12141PS2='> ' 12142PS4='+ ' 12143 12144# NLS nuisances. 12145LC_ALL=C 12146export LC_ALL 12147LANGUAGE=C 12148export LANGUAGE 12149 12150# CDPATH. 12151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12152 12153 12154# as_fn_error STATUS ERROR [LINENO LOG_FD] 12155# ---------------------------------------- 12156# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12157# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12158# script with STATUS, using 1 if that was 0. 12159as_fn_error () 12160{ 12161 as_status=$1; test $as_status -eq 0 && as_status=1 12162 if test "$4"; then 12163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12165 fi 12166 $as_echo "$as_me: error: $2" >&2 12167 as_fn_exit $as_status 12168} # as_fn_error 12169 12170 12171# as_fn_set_status STATUS 12172# ----------------------- 12173# Set $? to STATUS, without forking. 12174as_fn_set_status () 12175{ 12176 return $1 12177} # as_fn_set_status 12178 12179# as_fn_exit STATUS 12180# ----------------- 12181# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12182as_fn_exit () 12183{ 12184 set +e 12185 as_fn_set_status $1 12186 exit $1 12187} # as_fn_exit 12188 12189# as_fn_unset VAR 12190# --------------- 12191# Portably unset VAR. 12192as_fn_unset () 12193{ 12194 { eval $1=; unset $1;} 12195} 12196as_unset=as_fn_unset 12197# as_fn_append VAR VALUE 12198# ---------------------- 12199# Append the text in VALUE to the end of the definition contained in VAR. Take 12200# advantage of any shell optimizations that allow amortized linear growth over 12201# repeated appends, instead of the typical quadratic growth present in naive 12202# implementations. 12203if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12204 eval 'as_fn_append () 12205 { 12206 eval $1+=\$2 12207 }' 12208else 12209 as_fn_append () 12210 { 12211 eval $1=\$$1\$2 12212 } 12213fi # as_fn_append 12214 12215# as_fn_arith ARG... 12216# ------------------ 12217# Perform arithmetic evaluation on the ARGs, and store the result in the 12218# global $as_val. Take advantage of shells that can avoid forks. The arguments 12219# must be portable across $(()) and expr. 12220if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12221 eval 'as_fn_arith () 12222 { 12223 as_val=$(( $* )) 12224 }' 12225else 12226 as_fn_arith () 12227 { 12228 as_val=`expr "$@" || test $? -eq 1` 12229 } 12230fi # as_fn_arith 12231 12232 12233if expr a : '\(a\)' >/dev/null 2>&1 && 12234 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12235 as_expr=expr 12236else 12237 as_expr=false 12238fi 12239 12240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12241 as_basename=basename 12242else 12243 as_basename=false 12244fi 12245 12246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12247 as_dirname=dirname 12248else 12249 as_dirname=false 12250fi 12251 12252as_me=`$as_basename -- "$0" || 12253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12254 X"$0" : 'X\(//\)$' \| \ 12255 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12256$as_echo X/"$0" | 12257 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\/\(\/\/\)$/{ 12262 s//\1/ 12263 q 12264 } 12265 /^X\/\(\/\).*/{ 12266 s//\1/ 12267 q 12268 } 12269 s/.*/./; q'` 12270 12271# Avoid depending upon Character Ranges. 12272as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12274as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12275as_cr_digits='0123456789' 12276as_cr_alnum=$as_cr_Letters$as_cr_digits 12277 12278ECHO_C= ECHO_N= ECHO_T= 12279case `echo -n x` in #((((( 12280-n*) 12281 case `echo 'xy\c'` in 12282 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12283 xy) ECHO_C='\c';; 12284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12285 ECHO_T=' ';; 12286 esac;; 12287*) 12288 ECHO_N='-n';; 12289esac 12290 12291rm -f conf$$ conf$$.exe conf$$.file 12292if test -d conf$$.dir; then 12293 rm -f conf$$.dir/conf$$.file 12294else 12295 rm -f conf$$.dir 12296 mkdir conf$$.dir 2>/dev/null 12297fi 12298if (echo >conf$$.file) 2>/dev/null; then 12299 if ln -s conf$$.file conf$$ 2>/dev/null; then 12300 as_ln_s='ln -s' 12301 # ... but there are two gotchas: 12302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12304 # In both cases, we have to default to `cp -pR'. 12305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12306 as_ln_s='cp -pR' 12307 elif ln conf$$.file conf$$ 2>/dev/null; then 12308 as_ln_s=ln 12309 else 12310 as_ln_s='cp -pR' 12311 fi 12312else 12313 as_ln_s='cp -pR' 12314fi 12315rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12316rmdir conf$$.dir 2>/dev/null 12317 12318 12319# as_fn_mkdir_p 12320# ------------- 12321# Create "$as_dir" as a directory, including parents if necessary. 12322as_fn_mkdir_p () 12323{ 12324 12325 case $as_dir in #( 12326 -*) as_dir=./$as_dir;; 12327 esac 12328 test -d "$as_dir" || eval $as_mkdir_p || { 12329 as_dirs= 12330 while :; do 12331 case $as_dir in #( 12332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12333 *) as_qdir=$as_dir;; 12334 esac 12335 as_dirs="'$as_qdir' $as_dirs" 12336 as_dir=`$as_dirname -- "$as_dir" || 12337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12338 X"$as_dir" : 'X\(//\)[^/]' \| \ 12339 X"$as_dir" : 'X\(//\)$' \| \ 12340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12341$as_echo X"$as_dir" | 12342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12343 s//\1/ 12344 q 12345 } 12346 /^X\(\/\/\)[^/].*/{ 12347 s//\1/ 12348 q 12349 } 12350 /^X\(\/\/\)$/{ 12351 s//\1/ 12352 q 12353 } 12354 /^X\(\/\).*/{ 12355 s//\1/ 12356 q 12357 } 12358 s/.*/./; q'` 12359 test -d "$as_dir" && break 12360 done 12361 test -z "$as_dirs" || eval "mkdir $as_dirs" 12362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12363 12364 12365} # as_fn_mkdir_p 12366if mkdir -p . 2>/dev/null; then 12367 as_mkdir_p='mkdir -p "$as_dir"' 12368else 12369 test -d ./-p && rmdir ./-p 12370 as_mkdir_p=false 12371fi 12372 12373 12374# as_fn_executable_p FILE 12375# ----------------------- 12376# Test if FILE is an executable regular file. 12377as_fn_executable_p () 12378{ 12379 test -f "$1" && test -x "$1" 12380} # as_fn_executable_p 12381as_test_x='test -x' 12382as_executable_p=as_fn_executable_p 12383 12384# Sed expression to map a string onto a valid CPP name. 12385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12386 12387# Sed expression to map a string onto a valid variable name. 12388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12389 12390 12391exec 6>&1 12392## ----------------------------------- ## 12393## Main body of $CONFIG_STATUS script. ## 12394## ----------------------------------- ## 12395_ASEOF 12396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12397 12398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12399# Save the log message, to keep $0 and so on meaningful, and to 12400# report actual input values of CONFIG_FILES etc. instead of their 12401# values after options handling. 12402ac_log=" 12403This file was extended by sqlite $as_me 3.37.0, which was 12404generated by GNU Autoconf 2.69. Invocation command line was 12405 12406 CONFIG_FILES = $CONFIG_FILES 12407 CONFIG_HEADERS = $CONFIG_HEADERS 12408 CONFIG_LINKS = $CONFIG_LINKS 12409 CONFIG_COMMANDS = $CONFIG_COMMANDS 12410 $ $0 $@ 12411 12412on `(hostname || uname -n) 2>/dev/null | sed 1q` 12413" 12414 12415_ACEOF 12416 12417case $ac_config_files in *" 12418"*) set x $ac_config_files; shift; ac_config_files=$*;; 12419esac 12420 12421case $ac_config_headers in *" 12422"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12423esac 12424 12425 12426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12427# Files that config.status was made for. 12428config_files="$ac_config_files" 12429config_headers="$ac_config_headers" 12430config_commands="$ac_config_commands" 12431 12432_ACEOF 12433 12434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12435ac_cs_usage="\ 12436\`$as_me' instantiates files and other configuration actions 12437from templates according to the current configuration. Unless the files 12438and actions are specified as TAGs, all are instantiated by default. 12439 12440Usage: $0 [OPTION]... [TAG]... 12441 12442 -h, --help print this help, then exit 12443 -V, --version print version number and configuration settings, then exit 12444 --config print configuration, then exit 12445 -q, --quiet, --silent 12446 do not print progress messages 12447 -d, --debug don't remove temporary files 12448 --recheck update $as_me by reconfiguring in the same conditions 12449 --file=FILE[:TEMPLATE] 12450 instantiate the configuration file FILE 12451 --header=FILE[:TEMPLATE] 12452 instantiate the configuration header FILE 12453 12454Configuration files: 12455$config_files 12456 12457Configuration headers: 12458$config_headers 12459 12460Configuration commands: 12461$config_commands 12462 12463Report bugs to the package provider." 12464 12465_ACEOF 12466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12468ac_cs_version="\\ 12469sqlite config.status 3.37.0 12470configured by $0, generated by GNU Autoconf 2.69, 12471 with options \\"\$ac_cs_config\\" 12472 12473Copyright (C) 2012 Free Software Foundation, Inc. 12474This config.status script is free software; the Free Software Foundation 12475gives unlimited permission to copy, distribute and modify it." 12476 12477ac_pwd='$ac_pwd' 12478srcdir='$srcdir' 12479INSTALL='$INSTALL' 12480test -n "\$AWK" || AWK=awk 12481_ACEOF 12482 12483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12484# The default lists apply if the user does not specify any file. 12485ac_need_defaults=: 12486while test $# != 0 12487do 12488 case $1 in 12489 --*=?*) 12490 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12492 ac_shift=: 12493 ;; 12494 --*=) 12495 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12496 ac_optarg= 12497 ac_shift=: 12498 ;; 12499 *) 12500 ac_option=$1 12501 ac_optarg=$2 12502 ac_shift=shift 12503 ;; 12504 esac 12505 12506 case $ac_option in 12507 # Handling of the options. 12508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12509 ac_cs_recheck=: ;; 12510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12511 $as_echo "$ac_cs_version"; exit ;; 12512 --config | --confi | --conf | --con | --co | --c ) 12513 $as_echo "$ac_cs_config"; exit ;; 12514 --debug | --debu | --deb | --de | --d | -d ) 12515 debug=: ;; 12516 --file | --fil | --fi | --f ) 12517 $ac_shift 12518 case $ac_optarg in 12519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12520 '') as_fn_error $? "missing file argument" ;; 12521 esac 12522 as_fn_append CONFIG_FILES " '$ac_optarg'" 12523 ac_need_defaults=false;; 12524 --header | --heade | --head | --hea ) 12525 $ac_shift 12526 case $ac_optarg in 12527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12528 esac 12529 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12530 ac_need_defaults=false;; 12531 --he | --h) 12532 # Conflict between --help and --header 12533 as_fn_error $? "ambiguous option: \`$1' 12534Try \`$0 --help' for more information.";; 12535 --help | --hel | -h ) 12536 $as_echo "$ac_cs_usage"; exit ;; 12537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12538 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12539 ac_cs_silent=: ;; 12540 12541 # This is an error. 12542 -*) as_fn_error $? "unrecognized option: \`$1' 12543Try \`$0 --help' for more information." ;; 12544 12545 *) as_fn_append ac_config_targets " $1" 12546 ac_need_defaults=false ;; 12547 12548 esac 12549 shift 12550done 12551 12552ac_configure_extra_args= 12553 12554if $ac_cs_silent; then 12555 exec 6>/dev/null 12556 ac_configure_extra_args="$ac_configure_extra_args --silent" 12557fi 12558 12559_ACEOF 12560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12561if \$ac_cs_recheck; then 12562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12563 shift 12564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12565 CONFIG_SHELL='$SHELL' 12566 export CONFIG_SHELL 12567 exec "\$@" 12568fi 12569 12570_ACEOF 12571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572exec 5>>config.log 12573{ 12574 echo 12575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12576## Running $as_me. ## 12577_ASBOX 12578 $as_echo "$ac_log" 12579} >&5 12580 12581_ACEOF 12582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12583# 12584# INIT-COMMANDS 12585# 12586 12587 12588# The HP-UX ksh and POSIX shell print the target directory to stdout 12589# if CDPATH is set. 12590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12591 12592sed_quote_subst='$sed_quote_subst' 12593double_quote_subst='$double_quote_subst' 12594delay_variable_subst='$delay_variable_subst' 12595macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12596macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12597enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12598enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12599pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12600enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12601host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12602host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12603host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12604build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12605build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12606build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12607SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12608Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12609GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12610EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12611FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12612LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12613NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12614LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12615max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12616ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12617exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12618lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12619lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12620lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12621reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12622reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12623OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12624deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12625file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12626AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12627AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12628STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12629RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12630old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12631old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12632old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12633CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12634CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12635compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12636GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12637lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12638lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12639lt_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"`' 12640lt_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"`' 12641objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12642SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12643ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12644MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12645lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12646lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12647lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12648lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12649lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12650need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12651DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12652NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12653LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12654OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12655OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12656libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12657shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12658extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12659archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12660enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12661export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12662whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12663compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12664old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12665old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12666archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12667archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12668module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12669module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12670with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12671allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12672no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12673hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12674hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12675hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12676hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12677hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12678hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12679hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12680hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12681inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12682link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12683fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12684always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12685export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12686exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12687include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12688prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12689file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12690variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12691need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12692need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12693version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12694runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12695shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12696shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12697libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12698library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12699soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12700postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12701postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12702finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12703finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12704hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12705sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12706sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12707hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12708enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12709enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12710enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12711old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12712striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12713 12714LTCC='$LTCC' 12715LTCFLAGS='$LTCFLAGS' 12716compiler='$compiler_DEFAULT' 12717 12718# Quote evaled strings. 12719for var in SED \ 12720GREP \ 12721EGREP \ 12722FGREP \ 12723LD \ 12724NM \ 12725LN_S \ 12726lt_SP2NL \ 12727lt_NL2SP \ 12728reload_flag \ 12729OBJDUMP \ 12730deplibs_check_method \ 12731file_magic_cmd \ 12732AR \ 12733AR_FLAGS \ 12734STRIP \ 12735RANLIB \ 12736CC \ 12737CFLAGS \ 12738compiler \ 12739lt_cv_sys_global_symbol_pipe \ 12740lt_cv_sys_global_symbol_to_cdecl \ 12741lt_cv_sys_global_symbol_to_c_name_address \ 12742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12743SHELL \ 12744ECHO \ 12745lt_prog_compiler_no_builtin_flag \ 12746lt_prog_compiler_wl \ 12747lt_prog_compiler_pic \ 12748lt_prog_compiler_static \ 12749lt_cv_prog_compiler_c_o \ 12750need_locks \ 12751DSYMUTIL \ 12752NMEDIT \ 12753LIPO \ 12754OTOOL \ 12755OTOOL64 \ 12756shrext_cmds \ 12757export_dynamic_flag_spec \ 12758whole_archive_flag_spec \ 12759compiler_needs_object \ 12760with_gnu_ld \ 12761allow_undefined_flag \ 12762no_undefined_flag \ 12763hardcode_libdir_flag_spec \ 12764hardcode_libdir_flag_spec_ld \ 12765hardcode_libdir_separator \ 12766fix_srcfile_path \ 12767exclude_expsyms \ 12768include_expsyms \ 12769file_list_spec \ 12770variables_saved_for_relink \ 12771libname_spec \ 12772library_names_spec \ 12773soname_spec \ 12774finish_eval \ 12775old_striplib \ 12776striplib; do 12777 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12778 *[\\\\\\\`\\"\\\$]*) 12779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12780 ;; 12781 *) 12782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12783 ;; 12784 esac 12785done 12786 12787# Double-quote double-evaled strings. 12788for var in reload_cmds \ 12789old_postinstall_cmds \ 12790old_postuninstall_cmds \ 12791old_archive_cmds \ 12792extract_expsyms_cmds \ 12793old_archive_from_new_cmds \ 12794old_archive_from_expsyms_cmds \ 12795archive_cmds \ 12796archive_expsym_cmds \ 12797module_cmds \ 12798module_expsym_cmds \ 12799export_symbols_cmds \ 12800prelink_cmds \ 12801postinstall_cmds \ 12802postuninstall_cmds \ 12803finish_cmds \ 12804sys_lib_search_path_spec \ 12805sys_lib_dlsearch_path_spec; do 12806 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12807 *[\\\\\\\`\\"\\\$]*) 12808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12809 ;; 12810 *) 12811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12812 ;; 12813 esac 12814done 12815 12816# Fix-up fallback echo if it was mangled by the above quoting rules. 12817case \$lt_ECHO in 12818*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12819 ;; 12820esac 12821 12822ac_aux_dir='$ac_aux_dir' 12823xsi_shell='$xsi_shell' 12824lt_shell_append='$lt_shell_append' 12825 12826# See if we are running on zsh, and set the options which allow our 12827# commands through without removal of \ escapes INIT. 12828if test -n "\${ZSH_VERSION+set}" ; then 12829 setopt NO_GLOB_SUBST 12830fi 12831 12832 12833 PACKAGE='$PACKAGE' 12834 VERSION='$VERSION' 12835 TIMESTAMP='$TIMESTAMP' 12836 RM='$RM' 12837 ofile='$ofile' 12838 12839 12840 12841 12842_ACEOF 12843 12844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12845 12846# Handling of arguments. 12847for ac_config_target in $ac_config_targets 12848do 12849 case $ac_config_target in 12850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12853 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 12854 12855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12856 esac 12857done 12858 12859 12860# If the user did not use the arguments to specify the items to instantiate, 12861# then the envvar interface is used. Set only those that are not. 12862# We use the long form for the default assignment because of an extremely 12863# bizarre bug on SunOS 4.1.3. 12864if $ac_need_defaults; then 12865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12868fi 12869 12870# Have a temporary directory for convenience. Make it in the build tree 12871# simply because there is no reason against having it here, and in addition, 12872# creating and moving files from /tmp can sometimes cause problems. 12873# Hook for its removal unless debugging. 12874# Note that there is a small window in which the directory will not be cleaned: 12875# after its creation but before its name has been assigned to `$tmp'. 12876$debug || 12877{ 12878 tmp= ac_tmp= 12879 trap 'exit_status=$? 12880 : "${ac_tmp:=$tmp}" 12881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12882' 0 12883 trap 'as_fn_exit 1' 1 2 13 15 12884} 12885# Create a (secure) tmp directory for tmp files. 12886 12887{ 12888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12889 test -d "$tmp" 12890} || 12891{ 12892 tmp=./conf$$-$RANDOM 12893 (umask 077 && mkdir "$tmp") 12894} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12895ac_tmp=$tmp 12896 12897# Set up the scripts for CONFIG_FILES section. 12898# No need to generate them if there are no CONFIG_FILES. 12899# This happens for instance with `./config.status config.h'. 12900if test -n "$CONFIG_FILES"; then 12901 12902 12903ac_cr=`echo X | tr X '\015'` 12904# On cygwin, bash can eat \r inside `` if the user requested igncr. 12905# But we know of no other shell where ac_cr would be empty at this 12906# point, so we can use a bashism as a fallback. 12907if test "x$ac_cr" = x; then 12908 eval ac_cr=\$\'\\r\' 12909fi 12910ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12911if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12912 ac_cs_awk_cr='\\r' 12913else 12914 ac_cs_awk_cr=$ac_cr 12915fi 12916 12917echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12918_ACEOF 12919 12920 12921{ 12922 echo "cat >conf$$subs.awk <<_ACEOF" && 12923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12924 echo "_ACEOF" 12925} >conf$$subs.sh || 12926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12927ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12928ac_delim='%!_!# ' 12929for ac_last_try in false false false false false :; do 12930 . ./conf$$subs.sh || 12931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12932 12933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12934 if test $ac_delim_n = $ac_delim_num; then 12935 break 12936 elif $ac_last_try; then 12937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12938 else 12939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12940 fi 12941done 12942rm -f conf$$subs.sh 12943 12944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12945cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12946_ACEOF 12947sed -n ' 12948h 12949s/^/S["/; s/!.*/"]=/ 12950p 12951g 12952s/^[^!]*!// 12953:repl 12954t repl 12955s/'"$ac_delim"'$// 12956t delim 12957:nl 12958h 12959s/\(.\{148\}\)..*/\1/ 12960t more1 12961s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12962p 12963n 12964b repl 12965:more1 12966s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12967p 12968g 12969s/.\{148\}// 12970t nl 12971:delim 12972h 12973s/\(.\{148\}\)..*/\1/ 12974t more2 12975s/["\\]/\\&/g; s/^/"/; s/$/"/ 12976p 12977b 12978:more2 12979s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12980p 12981g 12982s/.\{148\}// 12983t delim 12984' <conf$$subs.awk | sed ' 12985/^[^""]/{ 12986 N 12987 s/\n// 12988} 12989' >>$CONFIG_STATUS || ac_write_fail=1 12990rm -f conf$$subs.awk 12991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12992_ACAWK 12993cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12994 for (key in S) S_is_set[key] = 1 12995 FS = "" 12996 12997} 12998{ 12999 line = $ 0 13000 nfields = split(line, field, "@") 13001 substed = 0 13002 len = length(field[1]) 13003 for (i = 2; i < nfields; i++) { 13004 key = field[i] 13005 keylen = length(key) 13006 if (S_is_set[key]) { 13007 value = S[key] 13008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13009 len += length(value) + length(field[++i]) 13010 substed = 1 13011 } else 13012 len += 1 + keylen 13013 } 13014 13015 print line 13016} 13017 13018_ACAWK 13019_ACEOF 13020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13023else 13024 cat 13025fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13026 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13027_ACEOF 13028 13029# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13030# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13031# trailing colons and then remove the whole line if VPATH becomes empty 13032# (actually we leave an empty line to preserve line numbers). 13033if test "x$srcdir" = x.; then 13034 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13035h 13036s/// 13037s/^/:/ 13038s/[ ]*$/:/ 13039s/:\$(srcdir):/:/g 13040s/:\${srcdir}:/:/g 13041s/:@srcdir@:/:/g 13042s/^:*// 13043s/:*$// 13044x 13045s/\(=[ ]*\).*/\1/ 13046G 13047s/\n// 13048s/^[^=]*=[ ]*$// 13049}' 13050fi 13051 13052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13053fi # test -n "$CONFIG_FILES" 13054 13055# Set up the scripts for CONFIG_HEADERS section. 13056# No need to generate them if there are no CONFIG_HEADERS. 13057# This happens for instance with `./config.status Makefile'. 13058if test -n "$CONFIG_HEADERS"; then 13059cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13060BEGIN { 13061_ACEOF 13062 13063# Transform confdefs.h into an awk script `defines.awk', embedded as 13064# here-document in config.status, that substitutes the proper values into 13065# config.h.in to produce config.h. 13066 13067# Create a delimiter string that does not exist in confdefs.h, to ease 13068# handling of long lines. 13069ac_delim='%!_!# ' 13070for ac_last_try in false false :; do 13071 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13072 if test -z "$ac_tt"; then 13073 break 13074 elif $ac_last_try; then 13075 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13076 else 13077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13078 fi 13079done 13080 13081# For the awk script, D is an array of macro values keyed by name, 13082# likewise P contains macro parameters if any. Preserve backslash 13083# newline sequences. 13084 13085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13086sed -n ' 13087s/.\{148\}/&'"$ac_delim"'/g 13088t rset 13089:rset 13090s/^[ ]*#[ ]*define[ ][ ]*/ / 13091t def 13092d 13093:def 13094s/\\$// 13095t bsnl 13096s/["\\]/\\&/g 13097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13098D["\1"]=" \3"/p 13099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13100d 13101:bsnl 13102s/["\\]/\\&/g 13103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13104D["\1"]=" \3\\\\\\n"\\/p 13105t cont 13106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13107t cont 13108d 13109:cont 13110n 13111s/.\{148\}/&'"$ac_delim"'/g 13112t clear 13113:clear 13114s/\\$// 13115t bsnlc 13116s/["\\]/\\&/g; s/^/"/; s/$/"/p 13117d 13118:bsnlc 13119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13120b cont 13121' <confdefs.h | sed ' 13122s/'"$ac_delim"'/"\\\ 13123"/g' >>$CONFIG_STATUS || ac_write_fail=1 13124 13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13126 for (key in D) D_is_set[key] = 1 13127 FS = "" 13128} 13129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13130 line = \$ 0 13131 split(line, arg, " ") 13132 if (arg[1] == "#") { 13133 defundef = arg[2] 13134 mac1 = arg[3] 13135 } else { 13136 defundef = substr(arg[1], 2) 13137 mac1 = arg[2] 13138 } 13139 split(mac1, mac2, "(") #) 13140 macro = mac2[1] 13141 prefix = substr(line, 1, index(line, defundef) - 1) 13142 if (D_is_set[macro]) { 13143 # Preserve the white space surrounding the "#". 13144 print prefix "define", macro P[macro] D[macro] 13145 next 13146 } else { 13147 # Replace #undef with comments. This is necessary, for example, 13148 # in the case of _POSIX_SOURCE, which is predefined and required 13149 # on some systems where configure will not decide to define it. 13150 if (defundef == "undef") { 13151 print "/*", prefix defundef, macro, "*/" 13152 next 13153 } 13154 } 13155} 13156{ print } 13157_ACAWK 13158_ACEOF 13159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13160 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13161fi # test -n "$CONFIG_HEADERS" 13162 13163 13164eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13165shift 13166for ac_tag 13167do 13168 case $ac_tag in 13169 :[FHLC]) ac_mode=$ac_tag; continue;; 13170 esac 13171 case $ac_mode$ac_tag in 13172 :[FHL]*:*);; 13173 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13174 :[FH]-) ac_tag=-:-;; 13175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13176 esac 13177 ac_save_IFS=$IFS 13178 IFS=: 13179 set x $ac_tag 13180 IFS=$ac_save_IFS 13181 shift 13182 ac_file=$1 13183 shift 13184 13185 case $ac_mode in 13186 :L) ac_source=$1;; 13187 :[FH]) 13188 ac_file_inputs= 13189 for ac_f 13190 do 13191 case $ac_f in 13192 -) ac_f="$ac_tmp/stdin";; 13193 *) # Look for the file first in the build tree, then in the source tree 13194 # (if the path is not absolute). The absolute path cannot be DOS-style, 13195 # because $ac_f cannot contain `:'. 13196 test -f "$ac_f" || 13197 case $ac_f in 13198 [\\/$]*) false;; 13199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13200 esac || 13201 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13202 esac 13203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13204 as_fn_append ac_file_inputs " '$ac_f'" 13205 done 13206 13207 # Let's still pretend it is `configure' which instantiates (i.e., don't 13208 # use $as_me), people would be surprised to read: 13209 # /* config.h. Generated by config.status. */ 13210 configure_input='Generated from '` 13211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13212 `' by configure.' 13213 if test x"$ac_file" != x-; then 13214 configure_input="$ac_file. $configure_input" 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13216$as_echo "$as_me: creating $ac_file" >&6;} 13217 fi 13218 # Neutralize special characters interpreted by sed in replacement strings. 13219 case $configure_input in #( 13220 *\&* | *\|* | *\\* ) 13221 ac_sed_conf_input=`$as_echo "$configure_input" | 13222 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13223 *) ac_sed_conf_input=$configure_input;; 13224 esac 13225 13226 case $ac_tag in 13227 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13229 esac 13230 ;; 13231 esac 13232 13233 ac_dir=`$as_dirname -- "$ac_file" || 13234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13235 X"$ac_file" : 'X\(//\)[^/]' \| \ 13236 X"$ac_file" : 'X\(//\)$' \| \ 13237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13238$as_echo X"$ac_file" | 13239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13240 s//\1/ 13241 q 13242 } 13243 /^X\(\/\/\)[^/].*/{ 13244 s//\1/ 13245 q 13246 } 13247 /^X\(\/\/\)$/{ 13248 s//\1/ 13249 q 13250 } 13251 /^X\(\/\).*/{ 13252 s//\1/ 13253 q 13254 } 13255 s/.*/./; q'` 13256 as_dir="$ac_dir"; as_fn_mkdir_p 13257 ac_builddir=. 13258 13259case "$ac_dir" in 13260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13261*) 13262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13263 # A ".." for each directory in $ac_dir_suffix. 13264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13265 case $ac_top_builddir_sub in 13266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13268 esac ;; 13269esac 13270ac_abs_top_builddir=$ac_pwd 13271ac_abs_builddir=$ac_pwd$ac_dir_suffix 13272# for backward compatibility: 13273ac_top_builddir=$ac_top_build_prefix 13274 13275case $srcdir in 13276 .) # We are building in place. 13277 ac_srcdir=. 13278 ac_top_srcdir=$ac_top_builddir_sub 13279 ac_abs_top_srcdir=$ac_pwd ;; 13280 [\\/]* | ?:[\\/]* ) # Absolute name. 13281 ac_srcdir=$srcdir$ac_dir_suffix; 13282 ac_top_srcdir=$srcdir 13283 ac_abs_top_srcdir=$srcdir ;; 13284 *) # Relative name. 13285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13286 ac_top_srcdir=$ac_top_build_prefix$srcdir 13287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13288esac 13289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13290 13291 13292 case $ac_mode in 13293 :F) 13294 # 13295 # CONFIG_FILE 13296 # 13297 13298 case $INSTALL in 13299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13301 esac 13302_ACEOF 13303 13304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13305# If the template does not know about datarootdir, expand it. 13306# FIXME: This hack should be removed a few years after 2.60. 13307ac_datarootdir_hack=; ac_datarootdir_seen= 13308ac_sed_dataroot=' 13309/datarootdir/ { 13310 p 13311 q 13312} 13313/@datadir@/p 13314/@docdir@/p 13315/@infodir@/p 13316/@localedir@/p 13317/@mandir@/p' 13318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13319*datarootdir*) ac_datarootdir_seen=yes;; 13320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13322$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13323_ACEOF 13324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13325 ac_datarootdir_hack=' 13326 s&@datadir@&$datadir&g 13327 s&@docdir@&$docdir&g 13328 s&@infodir@&$infodir&g 13329 s&@localedir@&$localedir&g 13330 s&@mandir@&$mandir&g 13331 s&\\\${datarootdir}&$datarootdir&g' ;; 13332esac 13333_ACEOF 13334 13335# Neutralize VPATH when `$srcdir' = `.'. 13336# Shell code in configure.ac might set extrasub. 13337# FIXME: do we really want to maintain this feature? 13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13339ac_sed_extra="$ac_vpsub 13340$extrasub 13341_ACEOF 13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13343:t 13344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13345s|@configure_input@|$ac_sed_conf_input|;t t 13346s&@top_builddir@&$ac_top_builddir_sub&;t t 13347s&@top_build_prefix@&$ac_top_build_prefix&;t t 13348s&@srcdir@&$ac_srcdir&;t t 13349s&@abs_srcdir@&$ac_abs_srcdir&;t t 13350s&@top_srcdir@&$ac_top_srcdir&;t t 13351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13352s&@builddir@&$ac_builddir&;t t 13353s&@abs_builddir@&$ac_abs_builddir&;t t 13354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13355s&@INSTALL@&$ac_INSTALL&;t t 13356$ac_datarootdir_hack 13357" 13358eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13360 13361test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13364 "$ac_tmp/out"`; test -z "$ac_out"; } && 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13366which seems to be undefined. Please make sure it is defined" >&5 13367$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13368which seems to be undefined. Please make sure it is defined" >&2;} 13369 13370 rm -f "$ac_tmp/stdin" 13371 case $ac_file in 13372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13374 esac \ 13375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13376 ;; 13377 :H) 13378 # 13379 # CONFIG_HEADER 13380 # 13381 if test x"$ac_file" != x-; then 13382 { 13383 $as_echo "/* $configure_input */" \ 13384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13385 } >"$ac_tmp/config.h" \ 13386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13389$as_echo "$as_me: $ac_file is unchanged" >&6;} 13390 else 13391 rm -f "$ac_file" 13392 mv "$ac_tmp/config.h" "$ac_file" \ 13393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13394 fi 13395 else 13396 $as_echo "/* $configure_input */" \ 13397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13398 || as_fn_error $? "could not create -" "$LINENO" 5 13399 fi 13400 ;; 13401 13402 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13403$as_echo "$as_me: executing $ac_file commands" >&6;} 13404 ;; 13405 esac 13406 13407 13408 case $ac_file$ac_mode in 13409 "libtool":C) 13410 13411 # See if we are running on zsh, and set the options which allow our 13412 # commands through without removal of \ escapes. 13413 if test -n "${ZSH_VERSION+set}" ; then 13414 setopt NO_GLOB_SUBST 13415 fi 13416 13417 cfgfile="${ofile}T" 13418 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13419 $RM "$cfgfile" 13420 13421 cat <<_LT_EOF >> "$cfgfile" 13422#! $SHELL 13423 13424# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13425# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13427# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13428# 13429# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13430# 2006, 2007, 2008 Free Software Foundation, Inc. 13431# Written by Gordon Matzigkeit, 1996 13432# 13433# This file is part of GNU Libtool. 13434# 13435# GNU Libtool is free software; you can redistribute it and/or 13436# modify it under the terms of the GNU General Public License as 13437# published by the Free Software Foundation; either version 2 of 13438# the License, or (at your option) any later version. 13439# 13440# As a special exception to the GNU General Public License, 13441# if you distribute this file as part of a program or library that 13442# is built using GNU Libtool, you may include this file under the 13443# same distribution terms that you use for the rest of that program. 13444# 13445# GNU Libtool is distributed in the hope that it will be useful, 13446# but WITHOUT ANY WARRANTY; without even the implied warranty of 13447# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13448# GNU General Public License for more details. 13449# 13450# You should have received a copy of the GNU General Public License 13451# along with GNU Libtool; see the file COPYING. If not, a copy 13452# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13453# obtained by writing to the Free Software Foundation, Inc., 13454# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13455 13456 13457# The names of the tagged configurations supported by this script. 13458available_tags="" 13459 13460# ### BEGIN LIBTOOL CONFIG 13461 13462# Which release of libtool.m4 was used? 13463macro_version=$macro_version 13464macro_revision=$macro_revision 13465 13466# Whether or not to build shared libraries. 13467build_libtool_libs=$enable_shared 13468 13469# Whether or not to build static libraries. 13470build_old_libs=$enable_static 13471 13472# What type of objects to build. 13473pic_mode=$pic_mode 13474 13475# Whether or not to optimize for fast installation. 13476fast_install=$enable_fast_install 13477 13478# The host system. 13479host_alias=$host_alias 13480host=$host 13481host_os=$host_os 13482 13483# The build system. 13484build_alias=$build_alias 13485build=$build 13486build_os=$build_os 13487 13488# A sed program that does not truncate output. 13489SED=$lt_SED 13490 13491# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13492Xsed="\$SED -e 1s/^X//" 13493 13494# A grep program that handles long lines. 13495GREP=$lt_GREP 13496 13497# An ERE matcher. 13498EGREP=$lt_EGREP 13499 13500# A literal string matcher. 13501FGREP=$lt_FGREP 13502 13503# A BSD- or MS-compatible name lister. 13504NM=$lt_NM 13505 13506# Whether we need soft or hard links. 13507LN_S=$lt_LN_S 13508 13509# What is the maximum length of a command? 13510max_cmd_len=$max_cmd_len 13511 13512# Object file suffix (normally "o"). 13513objext=$ac_objext 13514 13515# Executable file suffix (normally ""). 13516exeext=$exeext 13517 13518# whether the shell understands "unset". 13519lt_unset=$lt_unset 13520 13521# turn spaces into newlines. 13522SP2NL=$lt_lt_SP2NL 13523 13524# turn newlines into spaces. 13525NL2SP=$lt_lt_NL2SP 13526 13527# How to create reloadable object files. 13528reload_flag=$lt_reload_flag 13529reload_cmds=$lt_reload_cmds 13530 13531# An object symbol dumper. 13532OBJDUMP=$lt_OBJDUMP 13533 13534# Method to check whether dependent libraries are shared objects. 13535deplibs_check_method=$lt_deplibs_check_method 13536 13537# Command to use when deplibs_check_method == "file_magic". 13538file_magic_cmd=$lt_file_magic_cmd 13539 13540# The archiver. 13541AR=$lt_AR 13542AR_FLAGS=$lt_AR_FLAGS 13543 13544# A symbol stripping program. 13545STRIP=$lt_STRIP 13546 13547# Commands used to install an old-style archive. 13548RANLIB=$lt_RANLIB 13549old_postinstall_cmds=$lt_old_postinstall_cmds 13550old_postuninstall_cmds=$lt_old_postuninstall_cmds 13551 13552# A C compiler. 13553LTCC=$lt_CC 13554 13555# LTCC compiler flags. 13556LTCFLAGS=$lt_CFLAGS 13557 13558# Take the output of nm and produce a listing of raw symbols and C names. 13559global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13560 13561# Transform the output of nm in a proper C declaration. 13562global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13563 13564# Transform the output of nm in a C name address pair. 13565global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13566 13567# Transform the output of nm in a C name address pair when lib prefix is needed. 13568global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13569 13570# The name of the directory that contains temporary libtool files. 13571objdir=$objdir 13572 13573# Shell to use when invoking shell scripts. 13574SHELL=$lt_SHELL 13575 13576# An echo program that does not interpret backslashes. 13577ECHO=$lt_ECHO 13578 13579# Used to examine libraries when file_magic_cmd begins with "file". 13580MAGIC_CMD=$MAGIC_CMD 13581 13582# Must we lock files when doing compilation? 13583need_locks=$lt_need_locks 13584 13585# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13586DSYMUTIL=$lt_DSYMUTIL 13587 13588# Tool to change global to local symbols on Mac OS X. 13589NMEDIT=$lt_NMEDIT 13590 13591# Tool to manipulate fat objects and archives on Mac OS X. 13592LIPO=$lt_LIPO 13593 13594# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13595OTOOL=$lt_OTOOL 13596 13597# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13598OTOOL64=$lt_OTOOL64 13599 13600# Old archive suffix (normally "a"). 13601libext=$libext 13602 13603# Shared library suffix (normally ".so"). 13604shrext_cmds=$lt_shrext_cmds 13605 13606# The commands to extract the exported symbol list from a shared archive. 13607extract_expsyms_cmds=$lt_extract_expsyms_cmds 13608 13609# Variables whose values should be saved in libtool wrapper scripts and 13610# restored at link time. 13611variables_saved_for_relink=$lt_variables_saved_for_relink 13612 13613# Do we need the "lib" prefix for modules? 13614need_lib_prefix=$need_lib_prefix 13615 13616# Do we need a version for libraries? 13617need_version=$need_version 13618 13619# Library versioning type. 13620version_type=$version_type 13621 13622# Shared library runtime path variable. 13623runpath_var=$runpath_var 13624 13625# Shared library path variable. 13626shlibpath_var=$shlibpath_var 13627 13628# Is shlibpath searched before the hard-coded library search path? 13629shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13630 13631# Format of library name prefix. 13632libname_spec=$lt_libname_spec 13633 13634# List of archive names. First name is the real one, the rest are links. 13635# The last name is the one that the linker finds with -lNAME 13636library_names_spec=$lt_library_names_spec 13637 13638# The coded name of the library, if different from the real name. 13639soname_spec=$lt_soname_spec 13640 13641# Command to use after installation of a shared archive. 13642postinstall_cmds=$lt_postinstall_cmds 13643 13644# Command to use after uninstallation of a shared archive. 13645postuninstall_cmds=$lt_postuninstall_cmds 13646 13647# Commands used to finish a libtool library installation in a directory. 13648finish_cmds=$lt_finish_cmds 13649 13650# As "finish_cmds", except a single script fragment to be evaled but 13651# not shown. 13652finish_eval=$lt_finish_eval 13653 13654# Whether we should hardcode library paths into libraries. 13655hardcode_into_libs=$hardcode_into_libs 13656 13657# Compile-time system search path for libraries. 13658sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13659 13660# Run-time system search path for libraries. 13661sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13662 13663# Whether dlopen is supported. 13664dlopen_support=$enable_dlopen 13665 13666# Whether dlopen of programs is supported. 13667dlopen_self=$enable_dlopen_self 13668 13669# Whether dlopen of statically linked programs is supported. 13670dlopen_self_static=$enable_dlopen_self_static 13671 13672# Commands to strip libraries. 13673old_striplib=$lt_old_striplib 13674striplib=$lt_striplib 13675 13676 13677# The linker used to build libraries. 13678LD=$lt_LD 13679 13680# Commands used to build an old-style archive. 13681old_archive_cmds=$lt_old_archive_cmds 13682 13683# A language specific compiler. 13684CC=$lt_compiler 13685 13686# Is the compiler the GNU compiler? 13687with_gcc=$GCC 13688 13689# Compiler flag to turn off builtin functions. 13690no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13691 13692# How to pass a linker flag through the compiler. 13693wl=$lt_lt_prog_compiler_wl 13694 13695# Additional compiler flags for building library objects. 13696pic_flag=$lt_lt_prog_compiler_pic 13697 13698# Compiler flag to prevent dynamic linking. 13699link_static_flag=$lt_lt_prog_compiler_static 13700 13701# Does compiler simultaneously support -c and -o options? 13702compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13703 13704# Whether or not to add -lc for building shared libraries. 13705build_libtool_need_lc=$archive_cmds_need_lc 13706 13707# Whether or not to disallow shared libs when runtime libs are static. 13708allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13709 13710# Compiler flag to allow reflexive dlopens. 13711export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13712 13713# Compiler flag to generate shared objects directly from archives. 13714whole_archive_flag_spec=$lt_whole_archive_flag_spec 13715 13716# Whether the compiler copes with passing no objects directly. 13717compiler_needs_object=$lt_compiler_needs_object 13718 13719# Create an old-style archive from a shared archive. 13720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13721 13722# Create a temporary old-style archive to link instead of a shared archive. 13723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13724 13725# Commands used to build a shared archive. 13726archive_cmds=$lt_archive_cmds 13727archive_expsym_cmds=$lt_archive_expsym_cmds 13728 13729# Commands used to build a loadable module if different from building 13730# a shared archive. 13731module_cmds=$lt_module_cmds 13732module_expsym_cmds=$lt_module_expsym_cmds 13733 13734# Whether we are building with GNU ld or not. 13735with_gnu_ld=$lt_with_gnu_ld 13736 13737# Flag that allows shared libraries with undefined symbols to be built. 13738allow_undefined_flag=$lt_allow_undefined_flag 13739 13740# Flag that enforces no undefined symbols. 13741no_undefined_flag=$lt_no_undefined_flag 13742 13743# Flag to hardcode \$libdir into a binary during linking. 13744# This must work even if \$libdir does not exist 13745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13746 13747# If ld is used when linking, flag to hardcode \$libdir into a binary 13748# during linking. This must work even if \$libdir does not exist. 13749hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13750 13751# Whether we need a single "-rpath" flag with a separated argument. 13752hardcode_libdir_separator=$lt_hardcode_libdir_separator 13753 13754# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13755# DIR into the resulting binary. 13756hardcode_direct=$hardcode_direct 13757 13758# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13759# DIR into the resulting binary and the resulting library dependency is 13760# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13761# library is relocated. 13762hardcode_direct_absolute=$hardcode_direct_absolute 13763 13764# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13765# into the resulting binary. 13766hardcode_minus_L=$hardcode_minus_L 13767 13768# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13769# into the resulting binary. 13770hardcode_shlibpath_var=$hardcode_shlibpath_var 13771 13772# Set to "yes" if building a shared library automatically hardcodes DIR 13773# into the library and all subsequent libraries and executables linked 13774# against it. 13775hardcode_automatic=$hardcode_automatic 13776 13777# Set to yes if linker adds runtime paths of dependent libraries 13778# to runtime path list. 13779inherit_rpath=$inherit_rpath 13780 13781# Whether libtool must link a program against all its dependency libraries. 13782link_all_deplibs=$link_all_deplibs 13783 13784# Fix the shell variable \$srcfile for the compiler. 13785fix_srcfile_path=$lt_fix_srcfile_path 13786 13787# Set to "yes" if exported symbols are required. 13788always_export_symbols=$always_export_symbols 13789 13790# The commands to list exported symbols. 13791export_symbols_cmds=$lt_export_symbols_cmds 13792 13793# Symbols that should not be listed in the preloaded symbols. 13794exclude_expsyms=$lt_exclude_expsyms 13795 13796# Symbols that must always be exported. 13797include_expsyms=$lt_include_expsyms 13798 13799# Commands necessary for linking programs (against libraries) with templates. 13800prelink_cmds=$lt_prelink_cmds 13801 13802# Specify filename containing input files. 13803file_list_spec=$lt_file_list_spec 13804 13805# How to hardcode a shared library path into an executable. 13806hardcode_action=$hardcode_action 13807 13808# ### END LIBTOOL CONFIG 13809 13810_LT_EOF 13811 13812 case $host_os in 13813 aix3*) 13814 cat <<\_LT_EOF >> "$cfgfile" 13815# AIX sometimes has problems with the GCC collect2 program. For some 13816# reason, if we set the COLLECT_NAMES environment variable, the problems 13817# vanish in a puff of smoke. 13818if test "X${COLLECT_NAMES+set}" != Xset; then 13819 COLLECT_NAMES= 13820 export COLLECT_NAMES 13821fi 13822_LT_EOF 13823 ;; 13824 esac 13825 13826 13827ltmain="$ac_aux_dir/ltmain.sh" 13828 13829 13830 # We use sed instead of cat because bash on DJGPP gets confused if 13831 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13832 # text mode, it properly converts lines to CR/LF. This bash problem 13833 # is reportedly fixed, but why not run on old versions too? 13834 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13835 || (rm -f "$cfgfile"; exit 1) 13836 13837 case $xsi_shell in 13838 yes) 13839 cat << \_LT_EOF >> "$cfgfile" 13840 13841# func_dirname file append nondir_replacement 13842# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13843# otherwise set result to NONDIR_REPLACEMENT. 13844func_dirname () 13845{ 13846 case ${1} in 13847 */*) func_dirname_result="${1%/*}${2}" ;; 13848 * ) func_dirname_result="${3}" ;; 13849 esac 13850} 13851 13852# func_basename file 13853func_basename () 13854{ 13855 func_basename_result="${1##*/}" 13856} 13857 13858# func_dirname_and_basename file append nondir_replacement 13859# perform func_basename and func_dirname in a single function 13860# call: 13861# dirname: Compute the dirname of FILE. If nonempty, 13862# add APPEND to the result, otherwise set result 13863# to NONDIR_REPLACEMENT. 13864# value returned in "$func_dirname_result" 13865# basename: Compute filename of FILE. 13866# value retuned in "$func_basename_result" 13867# Implementation must be kept synchronized with func_dirname 13868# and func_basename. For efficiency, we do not delegate to 13869# those functions but instead duplicate the functionality here. 13870func_dirname_and_basename () 13871{ 13872 case ${1} in 13873 */*) func_dirname_result="${1%/*}${2}" ;; 13874 * ) func_dirname_result="${3}" ;; 13875 esac 13876 func_basename_result="${1##*/}" 13877} 13878 13879# func_stripname prefix suffix name 13880# strip PREFIX and SUFFIX off of NAME. 13881# PREFIX and SUFFIX must not contain globbing or regex special 13882# characters, hashes, percent signs, but SUFFIX may contain a leading 13883# dot (in which case that matches only a dot). 13884func_stripname () 13885{ 13886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13887 # positional parameters, so assign one to ordinary parameter first. 13888 func_stripname_result=${3} 13889 func_stripname_result=${func_stripname_result#"${1}"} 13890 func_stripname_result=${func_stripname_result%"${2}"} 13891} 13892 13893# func_opt_split 13894func_opt_split () 13895{ 13896 func_opt_split_opt=${1%%=*} 13897 func_opt_split_arg=${1#*=} 13898} 13899 13900# func_lo2o object 13901func_lo2o () 13902{ 13903 case ${1} in 13904 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13905 *) func_lo2o_result=${1} ;; 13906 esac 13907} 13908 13909# func_xform libobj-or-source 13910func_xform () 13911{ 13912 func_xform_result=${1%.*}.lo 13913} 13914 13915# func_arith arithmetic-term... 13916func_arith () 13917{ 13918 func_arith_result=$(( $* )) 13919} 13920 13921# func_len string 13922# STRING may not start with a hyphen. 13923func_len () 13924{ 13925 func_len_result=${#1} 13926} 13927 13928_LT_EOF 13929 ;; 13930 *) # Bourne compatible functions. 13931 cat << \_LT_EOF >> "$cfgfile" 13932 13933# func_dirname file append nondir_replacement 13934# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13935# otherwise set result to NONDIR_REPLACEMENT. 13936func_dirname () 13937{ 13938 # Extract subdirectory from the argument. 13939 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13940 if test "X$func_dirname_result" = "X${1}"; then 13941 func_dirname_result="${3}" 13942 else 13943 func_dirname_result="$func_dirname_result${2}" 13944 fi 13945} 13946 13947# func_basename file 13948func_basename () 13949{ 13950 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13951} 13952 13953 13954# func_stripname prefix suffix name 13955# strip PREFIX and SUFFIX off of NAME. 13956# PREFIX and SUFFIX must not contain globbing or regex special 13957# characters, hashes, percent signs, but SUFFIX may contain a leading 13958# dot (in which case that matches only a dot). 13959# func_strip_suffix prefix name 13960func_stripname () 13961{ 13962 case ${2} in 13963 .*) func_stripname_result=`$ECHO "X${3}" \ 13964 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13965 *) func_stripname_result=`$ECHO "X${3}" \ 13966 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13967 esac 13968} 13969 13970# sed scripts: 13971my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13972my_sed_long_arg='1s/^-[^=]*=//' 13973 13974# func_opt_split 13975func_opt_split () 13976{ 13977 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13978 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13979} 13980 13981# func_lo2o object 13982func_lo2o () 13983{ 13984 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13985} 13986 13987# func_xform libobj-or-source 13988func_xform () 13989{ 13990 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13991} 13992 13993# func_arith arithmetic-term... 13994func_arith () 13995{ 13996 func_arith_result=`expr "$@"` 13997} 13998 13999# func_len string 14000# STRING may not start with a hyphen. 14001func_len () 14002{ 14003 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14004} 14005 14006_LT_EOF 14007esac 14008 14009case $lt_shell_append in 14010 yes) 14011 cat << \_LT_EOF >> "$cfgfile" 14012 14013# func_append var value 14014# Append VALUE to the end of shell variable VAR. 14015func_append () 14016{ 14017 eval "$1+=\$2" 14018} 14019_LT_EOF 14020 ;; 14021 *) 14022 cat << \_LT_EOF >> "$cfgfile" 14023 14024# func_append var value 14025# Append VALUE to the end of shell variable VAR. 14026func_append () 14027{ 14028 eval "$1=\$$1\$2" 14029} 14030 14031_LT_EOF 14032 ;; 14033 esac 14034 14035 14036 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14037 || (rm -f "$cfgfile"; exit 1) 14038 14039 mv -f "$cfgfile" "$ofile" || 14040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14041 chmod +x "$ofile" 14042 14043 ;; 14044 14045 esac 14046done # for ac_tag 14047 14048 14049as_fn_exit 0 14050_ACEOF 14051ac_clean_files=$ac_clean_files_save 14052 14053test $ac_write_fail = 0 || 14054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14055 14056 14057# configure is writing to config.log, and then calls config.status. 14058# config.status does its own redirection, appending to config.log. 14059# Unfortunately, on DOS this fails, as config.log is still kept open 14060# by configure, so config.status won't be able to write to it; its 14061# output is simply discarded. So we exec the FD to /dev/null, 14062# effectively closing config.log, so it can be properly (re)opened and 14063# appended to by config.status. When coming back to configure, we 14064# need to make the FD available again. 14065if test "$no_create" != yes; then 14066 ac_cs_success=: 14067 ac_config_status_args= 14068 test "$silent" = yes && 14069 ac_config_status_args="$ac_config_status_args --quiet" 14070 exec 5>/dev/null 14071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14072 exec 5>>config.log 14073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14074 # would make configure fail if this is the last instruction. 14075 $ac_cs_success || as_fn_exit 1 14076fi 14077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14080fi 14081 14082